Merge pull request #215 from plivo/invalid_dst

handle invalid number response on bulk send sms
This commit is contained in:
Mohammed Huzaif 2021-09-27 20:13:12 +05:30 committed by GitHub
commit 8c728cab05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 2 deletions

View file

@ -1,5 +1,9 @@
# Change Log
## [v4.22.4](https://github.com/plivo/plivo-node/tree/v4.22.4) (2021-09-27)
**Bug Fix**
- 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**
- Fix Typings for `Make call` & `Send SMS` API response.

View file

@ -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;
}
}
}

View file

@ -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": [

View file

@ -3,6 +3,7 @@ export class MessageResponse {
apiId: string;
message: string;
messageUuid: Array<string>;
invalidNumber?: Array<string>;
}
export class MessageGetResponse {
constructor(params: object);