Skip to content

Commit

Permalink
Rerun OpenAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec committed Jan 17, 2025
1 parent ce0dd51 commit 6a9cb60
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 79 deletions.
78 changes: 46 additions & 32 deletions src/api/api/speaker-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,22 +49,23 @@ export const SpeakerApiAxiosParamCreator = function (
/**
*
* @param {string} projectId
* @param {string} name
* @param {string} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createSpeaker: async (
projectId: string,
name: string,
body: string,
options: any = {}
): Promise<RequestArgs> => {
// verify required parameter 'projectId' is not null or undefined
assertParamExists("createSpeaker", "projectId", projectId);
// verify required parameter 'name' is not null or undefined
assertParamExists("createSpeaker", "name", name);
const localVarPath = `/v1/projects/{projectId}/speakers/create/{name}`
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
// verify required parameter 'body' is not null or undefined
assertParamExists("createSpeaker", "body", body);
const localVarPath = `/v1/projects/{projectId}/speakers/create`.replace(
`{${"projectId"}}`,
encodeURIComponent(String(projectId))
);
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
Expand All @@ -73,13 +74,15 @@ export const SpeakerApiAxiosParamCreator = function (
}

const localVarRequestOptions = {
method: "GET",
method: "PUT",
...baseOptions,
...options,
};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;

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

setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
Expand All @@ -88,6 +91,11 @@ export const SpeakerApiAxiosParamCreator = function (
...headersFromBaseOptions,
...options.headers,
};
localVarRequestOptions.data = serializeDataIfNeeded(
body,
localVarRequestOptions,
configuration
);

return {
url: toPathString(localVarUrlObj),
Expand Down Expand Up @@ -382,27 +390,26 @@ export const SpeakerApiAxiosParamCreator = function (
*
* @param {string} projectId
* @param {string} speakerId
* @param {string} name
* @param {string} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateSpeakerName: async (
projectId: string,
speakerId: string,
name: string,
body: string,
options: any = {}
): Promise<RequestArgs> => {
// verify required parameter 'projectId' is not null or undefined
assertParamExists("updateSpeakerName", "projectId", projectId);
// verify required parameter 'speakerId' is not null or undefined
assertParamExists("updateSpeakerName", "speakerId", speakerId);
// verify required parameter 'name' is not null or undefined
assertParamExists("updateSpeakerName", "name", name);
// verify required parameter 'body' is not null or undefined
assertParamExists("updateSpeakerName", "body", body);
const localVarPath =
`/v1/projects/{projectId}/speakers/update/{speakerId}/{name}`
`/v1/projects/{projectId}/speakers/update/{speakerId}`
.replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
.replace(`{${"speakerId"}}`, encodeURIComponent(String(speakerId)))
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
.replace(`{${"speakerId"}}`, encodeURIComponent(String(speakerId)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
Expand All @@ -411,13 +418,15 @@ export const SpeakerApiAxiosParamCreator = function (
}

const localVarRequestOptions = {
method: "GET",
method: "PUT",
...baseOptions,
...options,
};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;

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

setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {};
Expand All @@ -426,6 +435,11 @@ export const SpeakerApiAxiosParamCreator = function (
...headersFromBaseOptions,
...options.headers,
};
localVarRequestOptions.data = serializeDataIfNeeded(
body,
localVarRequestOptions,
configuration
);

return {
url: toPathString(localVarUrlObj),
Expand Down Expand Up @@ -506,20 +520,20 @@ export const SpeakerApiFp = function (configuration?: Configuration) {
/**
*
* @param {string} projectId
* @param {string} name
* @param {string} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async createSpeaker(
projectId: string,
name: string,
body: string,
options?: any
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>
> {
const localVarAxiosArgs = await localVarAxiosParamCreator.createSpeaker(
projectId,
name,
body,
options
);
return createRequestFunction(
Expand Down Expand Up @@ -682,14 +696,14 @@ export const SpeakerApiFp = function (configuration?: Configuration) {
*
* @param {string} projectId
* @param {string} speakerId
* @param {string} name
* @param {string} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async updateSpeakerName(
projectId: string,
speakerId: string,
name: string,
body: string,
options?: any
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>
Expand All @@ -698,7 +712,7 @@ export const SpeakerApiFp = function (configuration?: Configuration) {
await localVarAxiosParamCreator.updateSpeakerName(
projectId,
speakerId,
name,
body,
options
);
return createRequestFunction(
Expand Down Expand Up @@ -754,17 +768,17 @@ export const SpeakerApiFactory = function (
/**
*
* @param {string} projectId
* @param {string} name
* @param {string} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createSpeaker(
projectId: string,
name: string,
body: string,
options?: any
): AxiosPromise<string> {
return localVarFp
.createSpeaker(projectId, name, options)
.createSpeaker(projectId, body, options)
.then((request) => request(axios, basePath));
},
/**
Expand Down Expand Up @@ -863,18 +877,18 @@ export const SpeakerApiFactory = function (
*
* @param {string} projectId
* @param {string} speakerId
* @param {string} name
* @param {string} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateSpeakerName(
projectId: string,
speakerId: string,
name: string,
body: string,
options?: any
): AxiosPromise<string> {
return localVarFp
.updateSpeakerName(projectId, speakerId, name, options)
.updateSpeakerName(projectId, speakerId, body, options)
.then((request) => request(axios, basePath));
},
/**
Expand Down Expand Up @@ -916,7 +930,7 @@ export interface SpeakerApiCreateSpeakerRequest {
* @type {string}
* @memberof SpeakerApiCreateSpeaker
*/
readonly name: string;
readonly body: string;
}

/**
Expand Down Expand Up @@ -1056,7 +1070,7 @@ export interface SpeakerApiUpdateSpeakerNameRequest {
* @type {string}
* @memberof SpeakerApiUpdateSpeakerName
*/
readonly name: string;
readonly body: string;
}

/**
Expand Down Expand Up @@ -1108,7 +1122,7 @@ export class SpeakerApi extends BaseAPI {
return SpeakerApiFp(this.configuration)
.createSpeaker(
requestParameters.projectId,
requestParameters.name,
requestParameters.body,
options
)
.then((request) => request(this.axios, this.basePath));
Expand Down Expand Up @@ -1241,7 +1255,7 @@ export class SpeakerApi extends BaseAPI {
.updateSpeakerName(
requestParameters.projectId,
requestParameters.speakerId,
requestParameters.name,
requestParameters.body,
options
)
.then((request) => request(this.axios, this.basePath));
Expand Down
Loading

0 comments on commit 6a9cb60

Please sign in to comment.