From c990d581be7203bd386111a13351967dcf43a6b3 Mon Sep 17 00:00:00 2001 From: ashutoshkumar-plivo Date: Mon, 12 Aug 2024 12:05:42 +0530 Subject: [PATCH 1/5] SMS-6997: add brand_name and app_hash in create and get/list session response --- lib/resources/verify.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/resources/verify.js b/lib/resources/verify.js index ef5d604d..17d04db2 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 + var app_uuid, recipient, url, method, channel, locale , brand_name, app_hash if (isObject === 1) { app_uuid = sessionReq.app_uuid @@ -149,6 +149,8 @@ export class SessionInterface extends PlivoResourceInterface { method = sessionReq.method channel = sessionReq.channel locale = sessionReq.locale + brand_name = sessionReq.brand_name + app_hash = sessionReq.app_hash } let errors = validate([{ @@ -182,6 +184,12 @@ export class SessionInterface extends PlivoResourceInterface { if(method) { params.method = method } + if(brand_name) { + params.brand_name = brand_name + } + if(app_hash) { + params.app_hash = app_hash + } } let client = this[clientKey]; From 13c9014bd5e25085b3535f6d8e34eb2d9f1b8cd5 Mon Sep 17 00:00:00 2001 From: ashutoshkumar-plivo Date: Mon, 12 Aug 2024 12:07:31 +0530 Subject: [PATCH 2/5] add version --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d1f1a95c..231cb1e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## [v4.68.1](https://github.com/plivo/plivo-node/tree/v4.68.1) (2024-08-12) +**Feature - Adding support for brand_name and app_hash in Create,Get and List Session** +- Added new request param `brand_name` and `app_hash` in create Session API +- Added support for `brand_name` and `app_hash` param in get and list Session response + ## [v4.68.0](https://github.com/plivo/plivo-node/tree/v4.68.0) (2024-07-11) **Feature - Locale param supported for Create, Get and List Verify Session API's** - Added new request param `locale` in create Session API From 4aa58d84d8188139d2aa2fbdcbfe03f9a8ad20b3 Mon Sep 17 00:00:00 2001 From: ashutoshkumar-plivo Date: Mon, 12 Aug 2024 12:07:47 +0530 Subject: [PATCH 3/5] fix --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 541921e3..2bac4caa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plivo", - "version": "4.68.0", + "version": "4.68.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 19f3de98f81aee21155fd1a2a1565128dbf55d25 Mon Sep 17 00:00:00 2001 From: narayana-plivo Date: Tue, 13 Aug 2024 19:13:50 +0530 Subject: [PATCH 4/5] Adding code length for verify session request --- lib/resources/verify.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/resources/verify.js b/lib/resources/verify.js index 17d04db2..01083a52 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 + var app_uuid, recipient, url, method, channel, locale , brand_name, app_hash , code_length if (isObject === 1) { app_uuid = sessionReq.app_uuid @@ -151,6 +151,7 @@ export class SessionInterface extends PlivoResourceInterface { locale = sessionReq.locale brand_name = sessionReq.brand_name app_hash = sessionReq.app_hash + code_length = sessionReq.code_length } let errors = validate([{ @@ -190,6 +191,9 @@ export class SessionInterface extends PlivoResourceInterface { if(app_hash) { params.app_hash = app_hash } + if (code_length) { + params.code_length = code_length + } } let client = this[clientKey]; From 57e74ea8b5ccd5bcb2d8ba9dba56becb4157a945 Mon Sep 17 00:00:00 2001 From: narayana-plivo Date: Fri, 6 Sep 2024 14:31:46 +0530 Subject: [PATCH 5/5] version upgrade --- CHANGELOG.md | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 231cb1e1..504df228 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Change Log -## [v4.68.1](https://github.com/plivo/plivo-node/tree/v4.68.1) (2024-08-12) +## [v4.68.2](https://github.com/plivo/plivo-node/tree/v4.68.2) (2024-09-06) **Feature - Adding support for brand_name and app_hash in Create,Get and List Session** - Added new request param `brand_name` and `app_hash` in create Session API - Added support for `brand_name` and `app_hash` param in get and list Session response diff --git a/package.json b/package.json index 2bac4caa..9c79c5b2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plivo", - "version": "4.68.1", + "version": "4.68.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": [