Skip to content

Commit

Permalink
SWI-5803 Update SDK Based on Recent Spec Changes (#39)
Browse files Browse the repository at this point in the history
* Generate SDK with OpenAPI Generator Version 7.6.0

* add unit test

---------

Co-authored-by: DX-Bandwidth <[email protected]>
Co-authored-by: ckoegel <[email protected]>
  • Loading branch information
3 people authored Aug 12, 2024
1 parent d0c7c76 commit 1f4018f
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bandwidth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2802,6 +2802,8 @@ components:
$ref: '#/components/schemas/mediaUrl'
transcription:
$ref: '#/components/schemas/recordingTranscriptionMetadata'
recordingName:
$ref: '#/components/schemas/recordingName'
conference:
type: object
properties:
Expand Down Expand Up @@ -3041,6 +3043,8 @@ components:
$ref: '#/components/schemas/status'
mediaUrl:
$ref: '#/components/schemas/mediaUrl'
recordingName:
$ref: '#/components/schemas/recordingName'
machineDetectionConfiguration:
type: object
description: >-
Expand Down Expand Up @@ -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.
Expand Down
6 changes: 6 additions & 0 deletions models/call-recording-metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,12 @@ export interface CallRecordingMetadata {
* @memberof CallRecordingMetadata
*/
'transcription'?: RecordingTranscriptionMetadata | null;
/**
* A name to identify this recording.
* @type {string}
* @memberof CallRecordingMetadata
*/
'recordingName'?: string;
}


Expand Down
6 changes: 6 additions & 0 deletions models/conference-recording-metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ export interface ConferenceRecordingMetadata {
* @memberof ConferenceRecordingMetadata
*/
'mediaUrl'?: string | null;
/**
* A name to identify this recording.
* @type {string}
* @memberof ConferenceRecordingMetadata
*/
'recordingName'?: string;
}


Expand Down
3 changes: 3 additions & 0 deletions tests/unit/api/recordings-api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
});

Expand Down Expand Up @@ -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();
});
});

Expand Down Expand Up @@ -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();
});
});

Expand Down

0 comments on commit 1f4018f

Please sign in to comment.