From 328dea4151ca4163de44067afcd02204434db548 Mon Sep 17 00:00:00 2001 From: narayana-plivo Date: Tue, 8 Oct 2024 23:22:40 +0530 Subject: [PATCH 1/2] dtmf changes --- CHANGELOG.md | 5 +++++ lib/resources/verify.js | 6 +++++- package.json | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d0d2655d..d2b3d153 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ # Change Log +## [v4.69.1](https://github.com/plivo/plivo-go/tree/v4.69.1) (2024-10-10) +**Feature - Dtmf param in Create, Get and List Session** +- Support for the `dtmf` parameter in voice verify session request +- Added support for `dtmf` in GET and LIST verify session. +- ## [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 diff --git a/lib/resources/verify.js b/lib/resources/verify.js index 01083a52..4b2a1aab 100644 --- a/lib/resources/verify.js +++ b/lib/resources/verify.js @@ -140,7 +140,7 @@ export class SessionInterface extends PlivoResourceInterface { create(sessionReq){ var isObject = arguments.length; - var app_uuid, recipient, url, method, channel, locale , brand_name, app_hash , code_length + var app_uuid, recipient, url, method, channel, locale , brand_name, app_hash , code_length, dtmf if (isObject === 1) { app_uuid = sessionReq.app_uuid @@ -152,6 +152,7 @@ export class SessionInterface extends PlivoResourceInterface { brand_name = sessionReq.brand_name app_hash = sessionReq.app_hash code_length = sessionReq.code_length + dtmf = sessionReq.dtmf } let errors = validate([{ @@ -194,6 +195,9 @@ export class SessionInterface extends PlivoResourceInterface { if (code_length) { params.code_length = code_length } + if (dtmf){ + params.dtmf = dtmf + } } let client = this[clientKey]; diff --git a/package.json b/package.json index 1ca53595..d1e065ec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plivo", - "version": "4.69.0", + "version": "4.69.1", "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 8fe54d62c375b14cedc5d368278b43d39ec8df1c Mon Sep 17 00:00:00 2001 From: narayana-plivo Date: Wed, 9 Oct 2024 07:55:47 +0530 Subject: [PATCH 2/2] change log update --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d2b3d153..bdf1f6fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,5 @@ # Change Log -## [v4.69.1](https://github.com/plivo/plivo-go/tree/v4.69.1) (2024-10-10) +## [v4.69.1](https://github.com/plivo/plivo-node/tree/v4.69.1) (2024-10-10) **Feature - Dtmf param in Create, Get and List Session** - Support for the `dtmf` parameter in voice verify session request - Added support for `dtmf` in GET and LIST verify session.