From cf5e0765f26489c59150e81ed37e1cda0e8bf924 Mon Sep 17 00:00:00 2001 From: "anindya.mahajan" Date: Tue, 28 Feb 2023 18:57:33 +0530 Subject: [PATCH 1/6] added new params --- lib/resources/recordings.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/resources/recordings.js b/lib/resources/recordings.js index 91bf16c7..9c6917b0 100644 --- a/lib/resources/recordings.js +++ b/lib/resources/recordings.js @@ -29,6 +29,9 @@ export class RetrieveRecordingResponse { this.resourceUri = params.resourceUri; this.fromNumber = params.fromNumber; this.toNumber = params.toNumber; + this.cost = params.cost; + this.roundedDuration = params.roundedDuration; + this.daysOfStorage = params.daysOfStorage; } } @@ -52,6 +55,9 @@ export class ListRecordingResponse { this.mpcName = params.mpcName; this.conferenceUuid = params.conferenceUuid; this.mpcUuid = params.mpcUuid; + this.cost = params.cost; + this.roundedDuration = params.roundedDuration; + this.daysOfStorage = params.daysOfStorage; } } @@ -156,6 +162,7 @@ export class RecordingInterface extends PlivoResourceInterface { * @param {string} [params.addTime] - Filter based on the timings they were added * @param {string} [params.limit] - Display no of results per page * @param {string} [params.offset] - No of value items by which results should be offset + * @param {string} [params.roundedDuration] - Rounded duration of recording in seconds. valid values - multiples of 60 */ list(params = {}) { params.isVoiceRequest = 'true'; From c827d4435eb79d6897473b38233d4b32e59a7641 Mon Sep 17 00:00:00 2001 From: "anindya.mahajan" Date: Wed, 8 Mar 2023 16:48:27 +0530 Subject: [PATCH 2/6] changed version merged from master --- CHANGELOG.md | 7 +++++-- package.json | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e8a5b9b..0f2bbada 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## [4.47.0](https://github.com/plivo/plivo-node/tree/v4.47.0) (2023-05-26) +- Added `monthly_recording_storage_amount`, `recording_storage_rate`, `rounded_recording_duration`, and `recording_storage_duration` parameters to the response for [get single recording API](https://www.plivo.com/docs/voice/api/recording#retrieve-a-recording) and [get all recordings API](https://www.plivo.com/docs/voice/api/recording#list-all-recordings) +- Added `recording_storage_duration` parameter as a filter option for [get all recordings API](https://www.plivo.com/docs/voice/api/recording#list-all-recordings) + ## [v4.46.1](https://github.com/plivo/plivo-node/tree/v4.46.1) (2023-05-08) **Chore - Bump xml2js from 0.4.19 to 0.5.0** - Resolves [xml2js is vulnerable to prototype pollution](https://github.com/advisories/GHSA-776f-qx25-q3cc) @@ -35,8 +39,7 @@ **Feature - Enhance MDR filtering capabilities ** - Added new fields on MDR object response - -## [v4.39.0](https://github.com/plivo/plivo-node/tree/v4.39.0) (2022-01-25) +## [4.39.0](https://github.com/plivo/plivo-node/tree/v4.39.0) (2022-01-25) **Feature - Added New Param(requesterIP) in Get Message and List Mssage APIs** - Add `requesterIP` to the response for the [list all messages API](https://www.plivo.com/docs/sms/api/message/list-all-messages/) and the [get message details API](https://www.plivo.com/docs/sms/api/message#retrieve-a-message) diff --git a/package.json b/package.json index f86ad8c3..9624f194 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plivo", - "version": "4.46.1", + "version": "4.47.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 ecc45a9d38f4eeb85ff0c7827f82ced14f9ec01d Mon Sep 17 00:00:00 2001 From: "anindya.mahajan" Date: Wed, 5 Apr 2023 16:37:50 +0530 Subject: [PATCH 3/6] added params and filter --- lib/resources/recordings.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/lib/resources/recordings.js b/lib/resources/recordings.js index 9c6917b0..0e26b73c 100644 --- a/lib/resources/recordings.js +++ b/lib/resources/recordings.js @@ -29,9 +29,10 @@ export class RetrieveRecordingResponse { this.resourceUri = params.resourceUri; this.fromNumber = params.fromNumber; this.toNumber = params.toNumber; - this.cost = params.cost; - this.roundedDuration = params.roundedDuration; - this.daysOfStorage = params.daysOfStorage; + this.monthlyRecordingStorageAmount = params.monthlyRecordingStorageAmount; + this.roundedRecordingDuration = params.roundedRecordingDuration; + this.recordingStorageDuration = params.recordingStorageDuration; + this.recordingStorageRate = params.recordingStorageRate; } } @@ -55,9 +56,10 @@ export class ListRecordingResponse { this.mpcName = params.mpcName; this.conferenceUuid = params.conferenceUuid; this.mpcUuid = params.mpcUuid; - this.cost = params.cost; - this.roundedDuration = params.roundedDuration; - this.daysOfStorage = params.daysOfStorage; + this.monthlyRecordingStorageAmount = params.monthlyRecordingStorageAmount; + this.roundedRecordingDuration = params.roundedRecordingDuration; + this.recordingStorageDuration = params.recordingStorageDuration; + this.recordingStorageRate = params.recordingStorageRate; } } @@ -162,7 +164,7 @@ export class RecordingInterface extends PlivoResourceInterface { * @param {string} [params.addTime] - Filter based on the timings they were added * @param {string} [params.limit] - Display no of results per page * @param {string} [params.offset] - No of value items by which results should be offset - * @param {string} [params.roundedDuration] - Rounded duration of recording in seconds. valid values - multiples of 60 + * @param {string} [params.recordingStorageDuration] - Filter based on how old the recordings are */ list(params = {}) { params.isVoiceRequest = 'true'; From dffae0d192401971fccc74eecb843b44f79e5782 Mon Sep 17 00:00:00 2001 From: anindya-plivo Date: Thu, 11 May 2023 10:37:01 +0530 Subject: [PATCH 4/6] added new params --- lib/rest/utils.js | 2 ++ types/resources/recordings.d.ts | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/lib/rest/utils.js b/lib/rest/utils.js index fafa95c8..d37d5720 100644 --- a/lib/rest/utils.js +++ b/lib/rest/utils.js @@ -40,6 +40,8 @@ export function camelCaseRequestWrapper(requestFunc) { 'add_time__lt', 'add_time__lte', 'renewal_date__gte','renewal_date__gt', 'renewal_date__lte','renewal_date__lt', + 'recording_storage_duration__gt', 'recording_storage_duration__gte', + 'recording_storage_duration__lt', 'recording_storage_duration__lte' ] if (skipParamsFromSnakeCasing.indexOf(key) >= 0) { return key; diff --git a/types/resources/recordings.d.ts b/types/resources/recordings.d.ts index 9e291dc0..c134ab6a 100644 --- a/types/resources/recordings.d.ts +++ b/types/resources/recordings.d.ts @@ -14,6 +14,10 @@ export class RetrieveRecordingResponse { resourceUri: string; fromNumber: string; toNumber: string; + monthlyRecordingStorageAmount: string; + roundedRecordingDuration: string; + recordingStorageDuration: string; + recordingStorageRate: string; } export class ListRecordingResponse { constructor(params: object); @@ -34,6 +38,11 @@ export class ListRecordingResponse { conferenceUuid: string; mpcName: string; mpcUuid: string; + monthlyRecordingStorageAmount: string; + roundedRecordingDuration: string; + recordingStorageDuration: string; + recordingStorageRate: string; + } /** * Represents a Recording @@ -80,6 +89,7 @@ export class RecordingInterface extends PlivoResourceInterface { * @param {string} [params.addTime] - Filter based on the timings they were added * @param {string} [params.limit] - Display no of results per page * @param {string} [params.offset] - No of value items by which results should be offset + * @param {string} [params.recordingStorageDuration] - Filter based on how old the recordings are */ list(params?: {}): Promise; } From a418cf6bc0662212165d7168e09ddae9fb9bf18d Mon Sep 17 00:00:00 2001 From: anindya-plivo Date: Sat, 27 May 2023 01:50:04 +0530 Subject: [PATCH 5/6] changed date --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f2bbada..1bd4439f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Change Log -## [4.47.0](https://github.com/plivo/plivo-node/tree/v4.47.0) (2023-05-26) +## [4.47.0](https://github.com/plivo/plivo-node/tree/v4.47.0) (2023-05-29) - Added `monthly_recording_storage_amount`, `recording_storage_rate`, `rounded_recording_duration`, and `recording_storage_duration` parameters to the response for [get single recording API](https://www.plivo.com/docs/voice/api/recording#retrieve-a-recording) and [get all recordings API](https://www.plivo.com/docs/voice/api/recording#list-all-recordings) - Added `recording_storage_duration` parameter as a filter option for [get all recordings API](https://www.plivo.com/docs/voice/api/recording#list-all-recordings) From 85b71c35bf6713704c2b9a0c0865c1d69ba3ac8a Mon Sep 17 00:00:00 2001 From: abhishekGupta-Plivo Date: Wed, 31 May 2023 11:49:54 +0530 Subject: [PATCH 6/6] fix versions on changelog.md --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1bd4439f..bafd0230 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Change Log -## [4.47.0](https://github.com/plivo/plivo-node/tree/v4.47.0) (2023-05-29) +## [v4.47.0](https://github.com/plivo/plivo-node/tree/v4.47.0) (2023-05-29) - Added `monthly_recording_storage_amount`, `recording_storage_rate`, `rounded_recording_duration`, and `recording_storage_duration` parameters to the response for [get single recording API](https://www.plivo.com/docs/voice/api/recording#retrieve-a-recording) and [get all recordings API](https://www.plivo.com/docs/voice/api/recording#list-all-recordings) - Added `recording_storage_duration` parameter as a filter option for [get all recordings API](https://www.plivo.com/docs/voice/api/recording#list-all-recordings) @@ -39,7 +39,7 @@ **Feature - Enhance MDR filtering capabilities ** - Added new fields on MDR object response -## [4.39.0](https://github.com/plivo/plivo-node/tree/v4.39.0) (2022-01-25) +## [v4.39.0](https://github.com/plivo/plivo-node/tree/v4.39.0) (2022-01-25) **Feature - Added New Param(requesterIP) in Get Message and List Mssage APIs** - Add `requesterIP` to the response for the [list all messages API](https://www.plivo.com/docs/sms/api/message/list-all-messages/) and the [get message details API](https://www.plivo.com/docs/sms/api/message#retrieve-a-message)