From 1f4018f95a63383644bd7cd4923d471717d8e514 Mon Sep 17 00:00:00 2001 From: "band-swi[bot]" <143147434+band-swi[bot]@users.noreply.github.com> Date: Mon, 12 Aug 2024 15:51:34 -0400 Subject: [PATCH] SWI-5803 Update SDK Based on Recent Spec Changes (#39) * Generate SDK with OpenAPI Generator Version 7.6.0 * add unit test --------- Co-authored-by: DX-Bandwidth Co-authored-by: ckoegel --- bandwidth.yml | 8 ++++++++ models/call-recording-metadata.ts | 6 ++++++ models/conference-recording-metadata.ts | 6 ++++++ tests/unit/api/recordings-api.test.ts | 3 +++ 4 files changed, 23 insertions(+) diff --git a/bandwidth.yml b/bandwidth.yml index 9c67eaf..e0b5f0d 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -2802,6 +2802,8 @@ components: $ref: '#/components/schemas/mediaUrl' transcription: $ref: '#/components/schemas/recordingTranscriptionMetadata' + recordingName: + $ref: '#/components/schemas/recordingName' conference: type: object properties: @@ -3041,6 +3043,8 @@ components: $ref: '#/components/schemas/status' mediaUrl: $ref: '#/components/schemas/mediaUrl' + recordingName: + $ref: '#/components/schemas/recordingName' machineDetectionConfiguration: type: object description: >- @@ -4266,6 +4270,10 @@ components: type: string description: The call id associated with the event. example: c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85 + recordingName: + type: string + description: A name to identify this recording. + example: my-recording-name callUrl: type: string description: The URL of the call associated with the event. diff --git a/models/call-recording-metadata.ts b/models/call-recording-metadata.ts index a3f65b8..a0cf258 100644 --- a/models/call-recording-metadata.ts +++ b/models/call-recording-metadata.ts @@ -137,6 +137,12 @@ export interface CallRecordingMetadata { * @memberof CallRecordingMetadata */ 'transcription'?: RecordingTranscriptionMetadata | null; + /** + * A name to identify this recording. + * @type {string} + * @memberof CallRecordingMetadata + */ + 'recordingName'?: string; } diff --git a/models/conference-recording-metadata.ts b/models/conference-recording-metadata.ts index eba4837..60819bb 100644 --- a/models/conference-recording-metadata.ts +++ b/models/conference-recording-metadata.ts @@ -89,6 +89,12 @@ export interface ConferenceRecordingMetadata { * @memberof ConferenceRecordingMetadata */ 'mediaUrl'?: string | null; + /** + * A name to identify this recording. + * @type {string} + * @memberof ConferenceRecordingMetadata + */ + 'recordingName'?: string; } diff --git a/tests/unit/api/recordings-api.test.ts b/tests/unit/api/recordings-api.test.ts index 52e3fcc..ada6b30 100644 --- a/tests/unit/api/recordings-api.test.ts +++ b/tests/unit/api/recordings-api.test.ts @@ -52,6 +52,7 @@ describe('RecordingsApi', () => { expect(data[0].transcription!.status).toBeString(); expect(data[0].transcription!.completedTime).toBeDateString(); expect(data[0].transcription!.url).toStartWith('http'); + expect(data[0].recordingName).toBeString(); }); }); @@ -83,6 +84,7 @@ describe('RecordingsApi', () => { expect(data[0].transcription!.status).toBeString(); expect(data[0].transcription!.completedTime).toBeDateString(); expect(data[0].transcription!.url).toStartWith('http'); + expect(data[0].recordingName).toBeString(); }); }); @@ -113,6 +115,7 @@ describe('RecordingsApi', () => { expect(data.transcription!.status).toBeString(); expect(data.transcription!.completedTime).toBeDateString(); expect(data.transcription!.url).toStartWith('http'); + expect(data.recordingName).toBeString(); }); });