From 0ee63af66b7ef2b66f2f13e240226bd177b82fbe Mon Sep 17 00:00:00 2001 From: huzaif Date: Wed, 3 Feb 2021 10:51:59 +0530 Subject: [PATCH 1/3] TS Client fix --- types/rest/client.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/rest/client.d.ts b/types/rest/client.d.ts index a49d75a..ced5bb3 100644 --- a/types/rest/client.d.ts +++ b/types/rest/client.d.ts @@ -7,7 +7,7 @@ export function validateSignature(uri: string, nonce: string, signature: string, * You can also pass in additional parameters accepted by the node requests module. */ export class Client { - constructor(authId: string, authToken: string, options?: string); + constructor(authId?: string, authToken?: string, options?: string); calls: CallInterface; accounts: AccountInterface; subaccounts: SubaccountInterface; From 26d7762be2d6d52f4d2c597c78519a861627e565 Mon Sep 17 00:00:00 2001 From: huzaif Date: Wed, 3 Feb 2021 18:44:20 +0530 Subject: [PATCH 2/3] Fix Buy number --- lib/resources/numbers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/resources/numbers.js b/lib/resources/numbers.js index 8822b1c..eae18c8 100644 --- a/lib/resources/numbers.js +++ b/lib/resources/numbers.js @@ -116,7 +116,7 @@ export class PhoneNumberInterface extends PlivoResourceInterface { let client = this[clientKey]; return new Promise((resolve, reject) => { - client('POST', action + number + '/', params) + client('POST', 'PhoneNumber/' + number + '/', params) .then(response => { resolve(new BuyNumberResponse(response.body, idField)); }) From 708c21cb27d2ec996acb10e886769f7228e50b3c Mon Sep 17 00:00:00 2001 From: huzaif Date: Tue, 9 Feb 2021 17:24:07 +0530 Subject: [PATCH 3/3] bump version to 4.14.1 --- CHANGELOG.md | 5 ++++- package.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c23c7b3..0f6f7c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,13 @@ # Change Log +## [4.14.1](https://github.com/plivo/plivo-node/releases/tag/v4.14.1)(2021-02-09) +- Fix Buy Number API & env variables support for TypeScript. + ## [4.14.0](https://github.com/plivo/plivo-node/releases/tag/v4.14.0)(2021-01-29) - Add axios as HTTP client library. ## [4.13.0](https://github.com/plivo/plivo-node/releases/tag/v4.13.0)(2021-01-19) -- Add Typescript support. +- Add TypeScript support. ## [4.12.0](https://github.com/plivo/plivo-node/releases/tag/v4.12.0)(2020-11-17) - Add number_priority support for Powerpack API. diff --git a/package.json b/package.json index 9ff90b7..705d749 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plivo", - "version": "4.14.0", + "version": "4.14.1", "description": "A Node.js SDK to make voice calls and send SMS using Plivo and to generate Plivo XML", "homepage": "https://github.com/plivo/plivo-node", "files": [