@vonage/pricing
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11135
102
4
+ Addedtslib@^2.4.1
+ Addedtslib@2.8.1(transitive)
Updated@vonage/auth@^1.0.5
Updated@vonage/server-client@^1.0.8
Updated@vonage/vetch@^1.0.6