From 4f5b762302deae993cdc735571806b7161a59e69 Mon Sep 17 00:00:00 2001 From: JayaBharat-plivo Date: Mon, 16 Sep 2024 15:39:26 +0530 Subject: [PATCH 1/4] Added changes for single party session. --- CHANGELOG.md | 3 +++ lib/resources/maskingSession.js | 3 +++ package.json | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b14cbef8..764ddc9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ # Change Log +## [v4.67.0](https://github.com/plivo/plivo-node/tree/v4.67.0) (2024-09-10) +**Feature - Adding new param support for Number Masking session with single party ** +- Added `create_session_with_single_party`, `virtual_number_cooloff_period` and `force_pin_authentication` attributes in Masking Session ## [v4.68.3](https://github.com/plivo/plivo-node/tree/v4.68.3) (2024-09-06) **Feature - Adding more attribute on mdr object** diff --git a/lib/resources/maskingSession.js b/lib/resources/maskingSession.js index 460c69f7..6e3dfa48 100644 --- a/lib/resources/maskingSession.js +++ b/lib/resources/maskingSession.js @@ -117,6 +117,9 @@ export class MaskingSessionInterface extends PlivoResourceInterface { * @param {boolean} [params.unknownCallerPlay] - Sound url to play for unknown caller. * @param {string} [params.subAccount] - SubAccount to create session. * @param {boolean} [params.geoMatch] - GeoMatch to filter no. + * @param {number} [params.virtualNumberCooloffPeriod] - Specifies the cool-off period for reallocating the number to a new session. Must be a positive integer between 0 and 3600. + * @param {boolean} [params.forcePinAuthentication] - Indicates if PIN is needed, even from the registered mobile number. + * @param {boolean} [params.createSessionWithSingleParty] - Indicates if a session requires one party. Either first_party or second_party is mandatory. * @promise {object} returns PlivoGenericResponse Object * @fail {Error} returns Error */ diff --git a/package.json b/package.json index 74d27f92..f050065a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plivo", - "version": "4.68.3", + "version": "4.67.0", "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": [ From 90799974a6fc2a6155658b2619c9a06ecd6964c4 Mon Sep 17 00:00:00 2001 From: JayaBharat-plivo Date: Thu, 19 Sep 2024 16:20:45 +0530 Subject: [PATCH 2/4] Removed isrequired validations for firstparty and secondparty. --- lib/resources/maskingSession.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/resources/maskingSession.js b/lib/resources/maskingSession.js index 6e3dfa48..540360b2 100644 --- a/lib/resources/maskingSession.js +++ b/lib/resources/maskingSession.js @@ -127,12 +127,12 @@ export class MaskingSessionInterface extends PlivoResourceInterface { let errors = validate([{ field: 'first_party', value: firstParty, - validators: ['isRequired'] + validators: [] }, { field: 'second_party', value: secondParty, - validators: ['isRequired'] + validators: [] } ]); params.firstParty = firstParty; From dce6c4a56b34abdd178d690bee3aeb2efa4a1b11 Mon Sep 17 00:00:00 2001 From: Manjunath Shanbhog Plivo <85923934+manjunath-plivo@users.noreply.github.com> Date: Mon, 30 Sep 2024 14:42:32 +0530 Subject: [PATCH 3/4] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 764ddc9d..d0d2655d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,5 @@ # Change Log -## [v4.67.0](https://github.com/plivo/plivo-node/tree/v4.67.0) (2024-09-10) +## [v4.69.0](https://github.com/plivo/plivo-node/tree/v4.69.0) (2024-09-30) **Feature - Adding new param support for Number Masking session with single party ** - Added `create_session_with_single_party`, `virtual_number_cooloff_period` and `force_pin_authentication` attributes in Masking Session From ed967280d15848dc2f8bc43b1fc009b3174b32e5 Mon Sep 17 00:00:00 2001 From: Manjunath Shanbhog Plivo <85923934+manjunath-plivo@users.noreply.github.com> Date: Mon, 30 Sep 2024 14:42:56 +0530 Subject: [PATCH 4/4] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f050065a..1ca53595 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plivo", - "version": "4.67.0", + "version": "4.69.0", "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": [