Skip to content

Commit

Permalink
Add api_id to list mdr response
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsin-plivo committed May 2, 2023
1 parent 7f7b6c5 commit a0786d9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**
Expand Down
4 changes: 4 additions & 0 deletions lib/resources/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
});
Expand Down
1 change: 1 addition & 0 deletions setup_sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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:"
Expand Down

0 comments on commit a0786d9

Please sign in to comment.