Skip to content

Commit

Permalink
Merge pull request #325 from plivo/SMS-6589
Browse files Browse the repository at this point in the history
SMS-6589: Log redaction
  • Loading branch information
Vishnukumarpg authored Feb 29, 2024
2 parents 5790175 + 2d81bed commit c1397c7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Log

## [v4.60.2](https://github.com/plivo/plivo-node/tree/v4.60.2) (2024-02-29)
**Feature - Log Redaction Enhancement**
- Added log attribute in GET and List MDR response
- Change log field from bool to string in send SMS

## [v4.60.1](https://github.com/plivo/plivo-node/tree/v4.60.1) (2023-11-28)
**Bug Fix - JWT Token Creation Issues**
- Fix for incorrect token getting created when generated using TypeScript
Expand Down
6 changes: 4 additions & 2 deletions lib/resources/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export class MessageGetResponse {
this.destinationNetwork = params.destinationNetwork;
this.carrierFees = params.carrierFees;
this.carrierFeesRate = params.carrierFeesRate;
this.log = params.log;
}
}

Expand Down Expand Up @@ -96,6 +97,7 @@ export class MessageListResponse {
this.destinationNetwork = params.destinationNetwork;
this.carrierFees = params.carrierFees;
this.carrierFeesRate = params.carrierFeesRate;
this.log = params.log;
}
}

Expand Down Expand Up @@ -188,7 +190,7 @@ export class MessageInterface extends PlivoResourceInterface {
* @param {string} [optionalParams.method] The method used to call the url. Defaults to POST.
* @param {list} [optionalParams.media_urls] For sending mms, specify the media urls in list of string
* @param {int} [optionalParams.message_expiry] The method used to expiry the message specified time.
* @param {boolean} [optionalParams.log] If set to false, the content of this message will not be logged on the Plivo infrastructure and the dst value will be masked (e.g., 141XXXXX528). Default is set to true.
* @param {string} [optionalParams.log] If set to false, the content of this message will not be logged on the Plivo infrastructure and the dst value will be masked (e.g., 141XXXXX528),if set to content_only only number will be masked, if set to number_only only text would be masked .Default is set to true.
* @param {string} [optionalParams.dlt_entity_id] This is the DLT entity id passed in the message request.
* @param {string} [optionalParams.dlt_template_id] This is the DLT template id passed in the message request.
* @param {string} [optionalParams.dlt_template_category] This is the DLT template category passed in the message request.
Expand All @@ -211,7 +213,7 @@ export class MessageInterface extends PlivoResourceInterface {
* @param {string} [optionalParams.type] - The type of message. Should be `sms` `whatsapp` or `mms`. Defaults to `sms`.
* @param {string} [optionalParams.url] The URL to which with the status of the message is sent.
* @param {string} [optionalParams.method] The method used to call the url. Defaults to POST.
* @param {boolean} [optionalParams.log] If set to false, the content of this message will not be logged on the Plivo infrastructure and the dst value will be masked (e.g., 141XXXXX528). Default is set to true.
* @param {string} [optionalParams.log] If set to false, the content of this message will not be logged on the Plivo infrastructure and the dst value will be masked (e.g., 141XXXXX528),if set to content_only only number will be masked, if set to number_only only text would be masked .Default is set to true.
* @param {Array} [optionalParams.media_urls] For sending mms, specify the media urls in list of string
* @param {Template} [optionalParams.template] //For sending templated whatsapp messages
* @param {string} [optionalParams.dlt_entity_id] This is the DLT entity id passed in the message request.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "plivo",
"version": "4.60.1",
"version": "4.60.2",
"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": [
Expand Down

0 comments on commit c1397c7

Please sign in to comment.