Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vonage/pricing

Package Overview
Dependencies
Maintainers
37
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vonage/pricing - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

7

dist/enums/ServiceType.js

@@ -1,2 +0,5 @@

export var ServiceType;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ServiceType = void 0;
var ServiceType;
(function (ServiceType) {

@@ -6,3 +9,3 @@ ServiceType["SMS"] = "sms";

ServiceType["VOICE"] = "voice,";
})(ServiceType || (ServiceType = {}));
})(ServiceType = exports.ServiceType || (exports.ServiceType = {}));
//# sourceMappingURL=ServiceType.js.map

@@ -1,2 +0,6 @@

export { Pricing } from './pricing';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Pricing = void 0;
var pricing_1 = require("./pricing");
Object.defineProperty(exports, "Pricing", { enumerable: true, get: function () { return pricing_1.Pricing; } });
//# sourceMappingURL=index.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=Network.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=PricingResponse.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=OutboundAllCountriesPricingResponse.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=OutboundCountryPricingResponse.js.map

@@ -1,20 +0,31 @@

import { AuthenticationType, Client } from '@vonage/server-client';
export class Pricing extends Client {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Pricing = void 0;
const tslib_1 = require("tslib");
const server_client_1 = require("@vonage/server-client");
class Pricing extends server_client_1.Client {
constructor() {
super(...arguments);
this.authType = AuthenticationType.QUERY_KEY_SECRET;
this.authType = server_client_1.AuthenticationType.QUERY_KEY_SECRET;
}
async listCountryPricing(type, country) {
const resp = await this.sendGetRequest(`${this.config.restHost}/account/get-pricing/outbound/${type}`, { country });
return resp.data;
listCountryPricing(type, country) {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
const resp = yield this.sendGetRequest(`${this.config.restHost}/account/get-pricing/outbound/${type}`, { country });
return resp.data;
});
}
async listAllCountriesPricing(type) {
const resp = await this.sendGetRequest(`${this.config.restHost}/account/get-full-pricing/outbound/${type}`);
return resp.data;
listAllCountriesPricing(type) {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
const resp = yield this.sendGetRequest(`${this.config.restHost}/account/get-full-pricing/outbound/${type}`);
return resp.data;
});
}
async listPrefixPricing(type, prefix) {
const resp = await this.sendGetRequest(`${this.config.restHost}/account/get-prefix-pricing/outbound/${type}`, { prefix });
return resp.data;
listPrefixPricing(type, prefix) {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
const resp = yield this.sendGetRequest(`${this.config.restHost}/account/get-prefix-pricing/outbound/${type}`, { prefix });
return resp.data;
});
}
}
exports.Pricing = Pricing;
//# sourceMappingURL=pricing.js.map

@@ -1,2 +0,3 @@

export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=PricingClassParameters.js.map
{
"name": "@vonage/pricing",
"version": "1.0.7",
"version": "1.0.8",
"description": "Vonage API for pricing",

@@ -30,5 +30,6 @@ "homepage": "https://developer.vonage.com",

"dependencies": {
"@vonage/auth": "^1.0.4",
"@vonage/server-client": "^1.0.7",
"@vonage/vetch": "^1.0.5"
"@vonage/auth": "^1.0.5",
"@vonage/server-client": "^1.0.8",
"@vonage/vetch": "^1.0.6",
"tslib": "^2.4.1"
},

@@ -35,0 +36,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc