From a0786d9b9b51d25edbb1955b3dffa874c7e420a5 Mon Sep 17 00:00:00 2001 From: mohsin-plivo Date: Wed, 26 Apr 2023 17:21:49 +0530 Subject: [PATCH] Add api_id to list mdr response --- CHANGELOG.md | 1 + lib/resources/messages.js | 4 ++++ setup_sdk.sh | 1 + 3 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b0a8741..9d583e46 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## [4.45.0](https://github.com/plivo/plivo-node/tree/v4.45.0) (2023-04-25) **Adding new attribute - 'isDomestic' in Get Message and List Message APIs** - Add `replacedSender` to the response for the [list all messages API](https://www.plivo.com/docs/sms/api/message/list-all-messages/) and the [get message details API](https://www.plivo.com/docs/sms/api/message#retrieve-a-message) +- Add `apiId` to the response for the list all messages API ## [v4.44.0](https://github.com/plivo/plivo-node/tree/v4.44.0) (2023-04-11) **Feature - Added New Param 'source_ip' in GetCall and ListCalls** diff --git a/lib/resources/messages.js b/lib/resources/messages.js index d2d95df7..2c1d0b3f 100644 --- a/lib/resources/messages.js +++ b/lib/resources/messages.js @@ -333,6 +333,10 @@ export class MessageInterface extends PlivoResourceInterface { value: response.body.meta, enumerable: true }); + Object.defineProperty(objects, 'apiId', { + value: response.body.apiId, + enumerable: true + }) response.body.objects.forEach(item => { objects.push(new MessageListResponse(item, client)); }); diff --git a/setup_sdk.sh b/setup_sdk.sh index 67868d69..a6a9fe16 100755 --- a/setup_sdk.sh +++ b/setup_sdk.sh @@ -38,6 +38,7 @@ rm -rf package*.json node_modules npm init -y npm install $package rm $package +cd - echo -e "\n\nSDK setup complete! You can test changes either on host or inside the docker container:" echo -e "\ta. To test your changes ON HOST:"