Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SWI-6496 Fix Media Tests #48

Merged
merged 4 commits into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.6.0
7.9.0
10 changes: 5 additions & 5 deletions api/calls-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ export const CallsApiFactory = function (configuration?: Configuration, basePath
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createCall(accountId: string, createCall: CreateCall, options?: any): AxiosPromise<CreateCallResponse> {
createCall(accountId: string, createCall: CreateCall, options?: RawAxiosRequestConfig): AxiosPromise<CreateCallResponse> {
return localVarFp.createCall(accountId, createCall, options).then((request) => request(axios, basePath));
},
/**
Expand All @@ -409,7 +409,7 @@ export const CallsApiFactory = function (configuration?: Configuration, basePath
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCallState(accountId: string, callId: string, options?: any): AxiosPromise<CallState> {
getCallState(accountId: string, callId: string, options?: RawAxiosRequestConfig): AxiosPromise<CallState> {
return localVarFp.getCallState(accountId, callId, options).then((request) => request(axios, basePath));
},
/**
Expand All @@ -426,7 +426,7 @@ export const CallsApiFactory = function (configuration?: Configuration, basePath
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listCalls(accountId: string, to?: string, from?: string, minStartTime?: string, maxStartTime?: string, disconnectCause?: string, pageSize?: number, pageToken?: string, options?: any): AxiosPromise<Array<CallState>> {
listCalls(accountId: string, to?: string, from?: string, minStartTime?: string, maxStartTime?: string, disconnectCause?: string, pageSize?: number, pageToken?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<CallState>> {
return localVarFp.listCalls(accountId, to, from, minStartTime, maxStartTime, disconnectCause, pageSize, pageToken, options).then((request) => request(axios, basePath));
},
/**
Expand All @@ -438,7 +438,7 @@ export const CallsApiFactory = function (configuration?: Configuration, basePath
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateCall(accountId: string, callId: string, updateCall: UpdateCall, options?: any): AxiosPromise<void> {
updateCall(accountId: string, callId: string, updateCall: UpdateCall, options?: RawAxiosRequestConfig): AxiosPromise<void> {
return localVarFp.updateCall(accountId, callId, updateCall, options).then((request) => request(axios, basePath));
},
/**
Expand All @@ -450,7 +450,7 @@ export const CallsApiFactory = function (configuration?: Configuration, basePath
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateCallBxml(accountId: string, callId: string, body: string, options?: any): AxiosPromise<void> {
updateCallBxml(accountId: string, callId: string, body: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
return localVarFp.updateCallBxml(accountId, callId, body, options).then((request) => request(axios, basePath));
},
};
Expand Down
18 changes: 9 additions & 9 deletions api/conferences-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ export const ConferencesApiFactory = function (configuration?: Configuration, ba
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
downloadConferenceRecording(accountId: string, conferenceId: string, recordingId: string, options?: any): AxiosPromise<File> {
downloadConferenceRecording(accountId: string, conferenceId: string, recordingId: string, options?: RawAxiosRequestConfig): AxiosPromise<File> {
return localVarFp.downloadConferenceRecording(accountId, conferenceId, recordingId, options).then((request) => request(axios, basePath));
},
/**
Expand All @@ -649,7 +649,7 @@ export const ConferencesApiFactory = function (configuration?: Configuration, ba
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getConference(accountId: string, conferenceId: string, options?: any): AxiosPromise<Conference> {
getConference(accountId: string, conferenceId: string, options?: RawAxiosRequestConfig): AxiosPromise<Conference> {
return localVarFp.getConference(accountId, conferenceId, options).then((request) => request(axios, basePath));
},
/**
Expand All @@ -661,7 +661,7 @@ export const ConferencesApiFactory = function (configuration?: Configuration, ba
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getConferenceMember(accountId: string, conferenceId: string, memberId: string, options?: any): AxiosPromise<ConferenceMember> {
getConferenceMember(accountId: string, conferenceId: string, memberId: string, options?: RawAxiosRequestConfig): AxiosPromise<ConferenceMember> {
return localVarFp.getConferenceMember(accountId, conferenceId, memberId, options).then((request) => request(axios, basePath));
},
/**
Expand All @@ -673,7 +673,7 @@ export const ConferencesApiFactory = function (configuration?: Configuration, ba
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getConferenceRecording(accountId: string, conferenceId: string, recordingId: string, options?: any): AxiosPromise<ConferenceRecordingMetadata> {
getConferenceRecording(accountId: string, conferenceId: string, recordingId: string, options?: RawAxiosRequestConfig): AxiosPromise<ConferenceRecordingMetadata> {
return localVarFp.getConferenceRecording(accountId, conferenceId, recordingId, options).then((request) => request(axios, basePath));
},
/**
Expand All @@ -684,7 +684,7 @@ export const ConferencesApiFactory = function (configuration?: Configuration, ba
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listConferenceRecordings(accountId: string, conferenceId: string, options?: any): AxiosPromise<Array<ConferenceRecordingMetadata>> {
listConferenceRecordings(accountId: string, conferenceId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ConferenceRecordingMetadata>> {
return localVarFp.listConferenceRecordings(accountId, conferenceId, options).then((request) => request(axios, basePath));
},
/**
Expand All @@ -699,7 +699,7 @@ export const ConferencesApiFactory = function (configuration?: Configuration, ba
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listConferences(accountId: string, name?: string, minCreatedTime?: string, maxCreatedTime?: string, pageSize?: number, pageToken?: string, options?: any): AxiosPromise<Array<Conference>> {
listConferences(accountId: string, name?: string, minCreatedTime?: string, maxCreatedTime?: string, pageSize?: number, pageToken?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Conference>> {
return localVarFp.listConferences(accountId, name, minCreatedTime, maxCreatedTime, pageSize, pageToken, options).then((request) => request(axios, basePath));
},
/**
Expand All @@ -711,7 +711,7 @@ export const ConferencesApiFactory = function (configuration?: Configuration, ba
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateConference(accountId: string, conferenceId: string, updateConference: UpdateConference, options?: any): AxiosPromise<void> {
updateConference(accountId: string, conferenceId: string, updateConference: UpdateConference, options?: RawAxiosRequestConfig): AxiosPromise<void> {
return localVarFp.updateConference(accountId, conferenceId, updateConference, options).then((request) => request(axios, basePath));
},
/**
Expand All @@ -723,7 +723,7 @@ export const ConferencesApiFactory = function (configuration?: Configuration, ba
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateConferenceBxml(accountId: string, conferenceId: string, body: string, options?: any): AxiosPromise<void> {
updateConferenceBxml(accountId: string, conferenceId: string, body: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
return localVarFp.updateConferenceBxml(accountId, conferenceId, body, options).then((request) => request(axios, basePath));
},
/**
Expand All @@ -736,7 +736,7 @@ export const ConferencesApiFactory = function (configuration?: Configuration, ba
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateConferenceMember(accountId: string, conferenceId: string, memberId: string, updateConferenceMember: UpdateConferenceMember, options?: any): AxiosPromise<void> {
updateConferenceMember(accountId: string, conferenceId: string, memberId: string, updateConferenceMember: UpdateConferenceMember, options?: RawAxiosRequestConfig): AxiosPromise<void> {
return localVarFp.updateConferenceMember(accountId, conferenceId, memberId, updateConferenceMember, options).then((request) => request(axios, basePath));
},
};
Expand Down
23 changes: 10 additions & 13 deletions api/media-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,11 @@ export const MediaApiAxiosParamCreator = function (configuration?: Configuration
// http basic authentication required
setBasicAuthToObject(localVarRequestOptions, configuration)



if (continuationToken != null) {
localVarHeaderParameter['Continuation-Token'] = String(continuationToken);
}



setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
Expand Down Expand Up @@ -194,18 +193,16 @@ export const MediaApiAxiosParamCreator = function (configuration?: Configuration
// http basic authentication required
setBasicAuthToObject(localVarRequestOptions, configuration)



localVarHeaderParameter['Content-Type'] = 'application/json';

if (contentType != null) {
localVarHeaderParameter['Content-Type'] = String(contentType);
}

if (cacheControl != null) {
localVarHeaderParameter['Cache-Control'] = String(cacheControl);
}



localVarHeaderParameter['Content-Type'] = 'application/json';

setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
Expand Down Expand Up @@ -303,7 +300,7 @@ export const MediaApiFactory = function (configuration?: Configuration, basePath
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
deleteMedia(accountId: string, mediaId: string, options?: any): AxiosPromise<void> {
deleteMedia(accountId: string, mediaId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
return localVarFp.deleteMedia(accountId, mediaId, options).then((request) => request(axios, basePath));
},
/**
Expand All @@ -314,7 +311,7 @@ export const MediaApiFactory = function (configuration?: Configuration, basePath
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getMedia(accountId: string, mediaId: string, options?: any): AxiosPromise<File> {
getMedia(accountId: string, mediaId: string, options?: RawAxiosRequestConfig): AxiosPromise<File> {
return localVarFp.getMedia(accountId, mediaId, options).then((request) => request(axios, basePath));
},
/**
Expand All @@ -325,7 +322,7 @@ export const MediaApiFactory = function (configuration?: Configuration, basePath
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listMedia(accountId: string, continuationToken?: string, options?: any): AxiosPromise<Array<Media>> {
listMedia(accountId: string, continuationToken?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Media>> {
return localVarFp.listMedia(accountId, continuationToken, options).then((request) => request(axios, basePath));
},
/**
Expand All @@ -339,7 +336,7 @@ export const MediaApiFactory = function (configuration?: Configuration, basePath
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
uploadMedia(accountId: string, mediaId: string, body: File, contentType?: string, cacheControl?: string, options?: any): AxiosPromise<void> {
uploadMedia(accountId: string, mediaId: string, body: File, contentType?: string, cacheControl?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
return localVarFp.uploadMedia(accountId, mediaId, body, contentType, cacheControl, options).then((request) => request(axios, basePath));
},
};
Expand Down
4 changes: 2 additions & 2 deletions api/messages-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ export const MessagesApiFactory = function (configuration?: Configuration, baseP
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createMessage(accountId: string, messageRequest: MessageRequest, options?: any): AxiosPromise<Message> {
createMessage(accountId: string, messageRequest: MessageRequest, options?: RawAxiosRequestConfig): AxiosPromise<Message> {
return localVarFp.createMessage(accountId, messageRequest, options).then((request) => request(axios, basePath));
},
/**
Expand All @@ -295,7 +295,7 @@ export const MessagesApiFactory = function (configuration?: Configuration, baseP
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listMessages(accountId: string, messageId?: string, sourceTn?: string, destinationTn?: string, messageStatus?: MessageStatusEnum, messageDirection?: ListMessageDirectionEnum, carrierName?: string, messageType?: MessageTypeEnum, errorCode?: number, fromDateTime?: string, toDateTime?: string, campaignId?: string, sort?: string, pageToken?: string, limit?: number, limitTotalCount?: boolean, options?: any): AxiosPromise<MessagesList> {
listMessages(accountId: string, messageId?: string, sourceTn?: string, destinationTn?: string, messageStatus?: MessageStatusEnum, messageDirection?: ListMessageDirectionEnum, carrierName?: string, messageType?: MessageTypeEnum, errorCode?: number, fromDateTime?: string, toDateTime?: string, campaignId?: string, sort?: string, pageToken?: string, limit?: number, limitTotalCount?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<MessagesList> {
return localVarFp.listMessages(accountId, messageId, sourceTn, destinationTn, messageStatus, messageDirection, carrierName, messageType, errorCode, fromDateTime, toDateTime, campaignId, sort, pageToken, limit, limitTotalCount, options).then((request) => request(axios, basePath));
},
};
Expand Down
6 changes: 3 additions & 3 deletions api/mfaapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export const MFAApiFactory = function (configuration?: Configuration, basePath?:
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
generateMessagingCode(accountId: string, codeRequest: CodeRequest, options?: any): AxiosPromise<MessagingCodeResponse> {
generateMessagingCode(accountId: string, codeRequest: CodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<MessagingCodeResponse> {
return localVarFp.generateMessagingCode(accountId, codeRequest, options).then((request) => request(axios, basePath));
},
/**
Expand All @@ -256,7 +256,7 @@ export const MFAApiFactory = function (configuration?: Configuration, basePath?:
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
generateVoiceCode(accountId: string, codeRequest: CodeRequest, options?: any): AxiosPromise<VoiceCodeResponse> {
generateVoiceCode(accountId: string, codeRequest: CodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<VoiceCodeResponse> {
return localVarFp.generateVoiceCode(accountId, codeRequest, options).then((request) => request(axios, basePath));
},
/**
Expand All @@ -267,7 +267,7 @@ export const MFAApiFactory = function (configuration?: Configuration, basePath?:
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
verifyCode(accountId: string, verifyCodeRequest: VerifyCodeRequest, options?: any): AxiosPromise<VerifyCodeResponse> {
verifyCode(accountId: string, verifyCodeRequest: VerifyCodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<VerifyCodeResponse> {
return localVarFp.verifyCode(accountId, verifyCodeRequest, options).then((request) => request(axios, basePath));
},
};
Expand Down
4 changes: 2 additions & 2 deletions api/phone-number-lookup-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export const PhoneNumberLookupApiFactory = function (configuration?: Configurati
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createLookup(accountId: string, lookupRequest: LookupRequest, options?: any): AxiosPromise<CreateLookupResponse> {
createLookup(accountId: string, lookupRequest: LookupRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateLookupResponse> {
return localVarFp.createLookup(accountId, lookupRequest, options).then((request) => request(axios, basePath));
},
/**
Expand All @@ -188,7 +188,7 @@ export const PhoneNumberLookupApiFactory = function (configuration?: Configurati
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getLookupStatus(accountId: string, requestId: string, options?: any): AxiosPromise<LookupStatus> {
getLookupStatus(accountId: string, requestId: string, options?: RawAxiosRequestConfig): AxiosPromise<LookupStatus> {
return localVarFp.getLookupStatus(accountId, requestId, options).then((request) => request(axios, basePath));
},
};
Expand Down
Loading