From c817c63986ba1458e9a8f651c455e671f4254771 Mon Sep 17 00:00:00 2001 From: narayana Date: Sun, 26 Sep 2021 20:08:12 +0530 Subject: [PATCH 1/2] logs removed --- CHANGELOG.md | 3 +++ lib/resources/messages.js | 4 +++- package.json | 2 +- types/resources/messages.d.ts | 1 + 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ab9e2ecf..bfb19a61 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ # Change Log +## [v4.22.4](https://github.com/plivo/plivo-node/tree/v4.22.4) (2021-09-27) +**Bug Fix** + - Fix Invalid Destination number response on send sms. ## [v4.22.3](https://github.com/plivo/plivo-node/tree/v4.22.3) (2021-09-22) **Bug Fix** diff --git a/lib/resources/messages.js b/lib/resources/messages.js index 2218d4a6..57bba6c1 100644 --- a/lib/resources/messages.js +++ b/lib/resources/messages.js @@ -22,7 +22,9 @@ export class MessageResponse { this.apiId = params.apiId; this.message = params.message; this.messageUuid = params.messageUuid; - + if (params.invalidNumber != undefined ){ + this.invalid_number = params.invalidNumber; + } } } diff --git a/package.json b/package.json index fdd54272..e0851d5a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plivo", - "version": "4.22.3", + "version": "4.22.4", "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": [ diff --git a/types/resources/messages.d.ts b/types/resources/messages.d.ts index 052ac6dd..7537e709 100644 --- a/types/resources/messages.d.ts +++ b/types/resources/messages.d.ts @@ -3,6 +3,7 @@ export class MessageResponse { apiId: string; message: string; messageUuid: Array; + invalidNumber?: Array; } export class MessageGetResponse { constructor(params: object); From cf55ef5feef8fd5a030c26f05d236fe31536f8de Mon Sep 17 00:00:00 2001 From: huzaif-plivo Date: Mon, 27 Sep 2021 20:12:08 +0530 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bfb19a61..d1ff29eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,8 @@ # Change Log + ## [v4.22.4](https://github.com/plivo/plivo-node/tree/v4.22.4) (2021-09-27) **Bug Fix** - - Fix Invalid Destination number response on send sms. + - Handle invalid destination number API response for send [SMS API](https://www.plivo.com/docs/sms/api/message/send-a-message/). ## [v4.22.3](https://github.com/plivo/plivo-node/tree/v4.22.3) (2021-09-22) **Bug Fix**