From fb39ebddda9fcca3a899771ae3c62e7a168a6276 Mon Sep 17 00:00:00 2001 From: Cedric Evers <12080057+CeEv@users.noreply.github.com> Date: Thu, 26 Sep 2024 09:43:27 +0200 Subject: [PATCH] BC-8018 Update open api client with shd route (#3408) --- src/serverApi/v3/api.ts | 142 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 142 insertions(+) diff --git a/src/serverApi/v3/api.ts b/src/serverApi/v3/api.ts index d108bf6e67..f8befc09d3 100644 --- a/src/serverApi/v3/api.ts +++ b/src/serverApi/v3/api.ts @@ -7629,6 +7629,19 @@ export interface TargetInfoResponse { */ name: string; } +/** + * + * @export + * @interface TargetUserIdParams + */ +export interface TargetUserIdParams { + /** + * + * @type {string} + * @memberof TargetUserIdParams + */ + userId: string; +} /** * * @export @@ -20404,6 +20417,135 @@ export class ShareTokenApi extends BaseAPI implements ShareTokenApiInterface { } +/** + * ShdApi - axios parameter creator + * @export + */ +export const ShdApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * + * @summary Create a support jwt for a user. + * @param {TargetUserIdParams} targetUserIdParams + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + shdControllerSupportJwt: async (targetUserIdParams: TargetUserIdParams, options: any = {}): Promise => { + // verify required parameter 'targetUserIdParams' is not null or undefined + assertParamExists('shdControllerSupportJwt', 'targetUserIdParams', targetUserIdParams) + const localVarPath = `/shd/supportJwt`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication bearer required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(targetUserIdParams, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * ShdApi - functional programming interface + * @export + */ +export const ShdApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ShdApiAxiosParamCreator(configuration) + return { + /** + * + * @summary Create a support jwt for a user. + * @param {TargetUserIdParams} targetUserIdParams + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async shdControllerSupportJwt(targetUserIdParams: TargetUserIdParams, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.shdControllerSupportJwt(targetUserIdParams, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * ShdApi - factory interface + * @export + */ +export const ShdApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ShdApiFp(configuration) + return { + /** + * + * @summary Create a support jwt for a user. + * @param {TargetUserIdParams} targetUserIdParams + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + shdControllerSupportJwt(targetUserIdParams: TargetUserIdParams, options?: any): AxiosPromise { + return localVarFp.shdControllerSupportJwt(targetUserIdParams, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * ShdApi - interface + * @export + * @interface ShdApi + */ +export interface ShdApiInterface { + /** + * + * @summary Create a support jwt for a user. + * @param {TargetUserIdParams} targetUserIdParams + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ShdApiInterface + */ + shdControllerSupportJwt(targetUserIdParams: TargetUserIdParams, options?: any): AxiosPromise; + +} + +/** + * ShdApi - object-oriented interface + * @export + * @class ShdApi + * @extends {BaseAPI} + */ +export class ShdApi extends BaseAPI implements ShdApiInterface { + /** + * + * @summary Create a support jwt for a user. + * @param {TargetUserIdParams} targetUserIdParams + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ShdApi + */ + public shdControllerSupportJwt(targetUserIdParams: TargetUserIdParams, options?: any) { + return ShdApiFp(this.configuration).shdControllerSupportJwt(targetUserIdParams, options).then((request) => request(this.axios, this.basePath)); + } +} + + /** * SubmissionApi - axios parameter creator * @export