From 1015feaebc7a748d505847cfb9f80eb4f17592c8 Mon Sep 17 00:00:00 2001 From: Rajneesh Katkam Date: Thu, 20 Jun 2024 18:47:28 +0530 Subject: [PATCH 1/4] Add locale param for create session --- CHANGELOG.md | 4 ++++ lib/resources/verify.js | 6 +++++- package.json | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index acf73596..0a54de4b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## [v4.68.0](https://github.com/plivo/plivo-node/tree/v4.68.0) (2024-06-22) +**Feature - Locale param supported for Create Verify Session API's** +- Added new param 'locale' to Create Session API + ## [v4.67.0](https://github.com/plivo/plivo-node/tree/v4.67.0) (2024-05-22) **Feature - Adding support for participant level recording** - Added new param `recordParticipantTrack` to [add participant API](https://www.plivo.com/docs/voice/api/multiparty-call/participants#add-a-participant) to support `participant` level recording diff --git a/lib/resources/verify.js b/lib/resources/verify.js index de04d586..6ae57682 100644 --- a/lib/resources/verify.js +++ b/lib/resources/verify.js @@ -138,7 +138,7 @@ export class SessionInterface extends PlivoResourceInterface { create(sessionReq){ var isObject = arguments.length; - var app_uuid, recipient, url, method, channel + var app_uuid, recipient, url, method, channel, locale if (isObject === 1) { app_uuid = sessionReq.app_uuid @@ -146,6 +146,7 @@ export class SessionInterface extends PlivoResourceInterface { url = sessionReq.url method = sessionReq.method channel = sessionReq.channel + locale = sessionReq.locale } let errors = validate([{ @@ -170,6 +171,9 @@ export class SessionInterface extends PlivoResourceInterface { if(channel) { params.channel = channel } + if(locale) { + params.locale = locale + } if(url) { params.url = url } diff --git a/package.json b/package.json index f050065a..541921e3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plivo", - "version": "4.67.0", + "version": "4.68.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 e7005c7a89e8a33e41e9116dbdb9e4892ec411b6 Mon Sep 17 00:00:00 2001 From: Rajneesh Katkam Date: Tue, 9 Jul 2024 11:59:15 +0530 Subject: [PATCH 2/4] Added locale param support for list and get session --- CHANGELOG.md | 4 ++-- lib/resources/verify.js | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a54de4b..99f4f902 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,8 @@ # Change Log ## [v4.68.0](https://github.com/plivo/plivo-node/tree/v4.68.0) (2024-06-22) -**Feature - Locale param supported for Create Verify Session API's** -- Added new param 'locale' to Create Session API +**Feature - Locale param supported for Create, Get and List Verify Session API's** +- Added new param 'locale' to create, get and list Session API ## [v4.67.0](https://github.com/plivo/plivo-node/tree/v4.67.0) (2024-05-22) **Feature - Adding support for participant level recording** diff --git a/lib/resources/verify.js b/lib/resources/verify.js index 6ae57682..ef5d604d 100644 --- a/lib/resources/verify.js +++ b/lib/resources/verify.js @@ -49,6 +49,7 @@ export class SessionGetResponse { this.alias = params.alias; this.recipient = params.recipient; this.channel = params.channel; + this.locale = params.locale; this.status = params.status; this.count = params.count; this.requestor_ip = params.requestorIp; @@ -74,6 +75,7 @@ export class SessionListResponse { this.recipient = params.recipient; this.alias = params.alias; this.channel = params.channel; + this.locale = params.locale; this.status = params.status; this.count = params.count; this.requestor_ip = params.requestorIp; From 4d3d36cfaf44a28b4fb5e9bf19ee47a7c6fff142 Mon Sep 17 00:00:00 2001 From: Rajneesh Katkam Date: Tue, 9 Jul 2024 12:39:29 +0530 Subject: [PATCH 3/4] Updated changelog --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 99f4f902..19dc767f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,8 @@ ## [v4.68.0](https://github.com/plivo/plivo-node/tree/v4.68.0) (2024-06-22) **Feature - Locale param supported for Create, Get and List Verify Session API's** -- Added new param 'locale' to create, get and list Session API +- Added new request param `locale` in create Session API +- Added support for `locale` param in get and list Session response ## [v4.67.0](https://github.com/plivo/plivo-node/tree/v4.67.0) (2024-05-22) **Feature - Adding support for participant level recording** From 72fbe6f2724f79271c720259c890ee8ebcb3b703 Mon Sep 17 00:00:00 2001 From: Rajneesh Katkam Date: Thu, 11 Jul 2024 11:19:31 +0530 Subject: [PATCH 4/4] Date updated --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 19dc767f..d1f1a95c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Change Log -## [v4.68.0](https://github.com/plivo/plivo-node/tree/v4.68.0) (2024-06-22) +## [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 - Added support for `locale` param in get and list Session response