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

N21-1269 api client generation #2810

Merged
merged 9 commits into from
Sep 22, 2023
164 changes: 152 additions & 12 deletions src/serverApi/v3/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1573,12 +1573,6 @@ export interface FileContentBody {
* @memberof FileContentBody
*/
caption: string;
/**
*
* @type {string}
* @memberof FileContentBody
*/
alternativeText?: string;
}
/**
*
Expand All @@ -1592,12 +1586,6 @@ export interface FileElementContent {
* @memberof FileElementContent
*/
caption: string;
/**
*
* @type {string}
* @memberof FileElementContent
*/
alternativeText?: string;
}
/**
*
Expand Down Expand Up @@ -3161,6 +3149,31 @@ export interface PatchVisibilityParams {
*/
visibility: boolean;
}
/**
*
* @export
* @interface PseudonymResponse
*/
export interface PseudonymResponse {
/**
*
* @type {string}
* @memberof PseudonymResponse
*/
id: string;
/**
*
* @type {string}
* @memberof PseudonymResponse
*/
toolId: string;
/**
*
* @type {string}
* @memberof PseudonymResponse
*/
userId: string;
}
/**
*
* @export
Expand Down Expand Up @@ -10309,6 +10322,133 @@ export class Oauth2Api extends BaseAPI implements Oauth2ApiInterface {
}


/**
* PseudonymApi - axios parameter creator
* @export
*/
export const PseudonymApiAxiosParamCreator = function (configuration?: Configuration) {
return {
/**
*
* @summary Returns Pseudonym
* @param {string} pseudonym
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
pseudonymControllerGetPseudonym: async (pseudonym: string, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'pseudonym' is not null or undefined
assertParamExists('pseudonymControllerGetPseudonym', 'pseudonym', pseudonym)
const localVarPath = `/pseudonyms/{pseudonym}`
.replace(`{${"pseudonym"}}`, encodeURIComponent(String(pseudonym)));
// 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: 'GET', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;

// authentication bearer required
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration)



setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};

return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
}
};

/**
* PseudonymApi - functional programming interface
* @export
*/
export const PseudonymApiFp = function(configuration?: Configuration) {
const localVarAxiosParamCreator = PseudonymApiAxiosParamCreator(configuration)
return {
/**
*
* @summary Returns Pseudonym
* @param {string} pseudonym
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async pseudonymControllerGetPseudonym(pseudonym: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PseudonymResponse>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.pseudonymControllerGetPseudonym(pseudonym, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
}
};

/**
* PseudonymApi - factory interface
* @export
*/
export const PseudonymApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
const localVarFp = PseudonymApiFp(configuration)
return {
/**
*
* @summary Returns Pseudonym
* @param {string} pseudonym
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
pseudonymControllerGetPseudonym(pseudonym: string, options?: any): AxiosPromise<PseudonymResponse> {
return localVarFp.pseudonymControllerGetPseudonym(pseudonym, options).then((request) => request(axios, basePath));
},
};
};

/**
* PseudonymApi - interface
* @export
* @interface PseudonymApi
*/
export interface PseudonymApiInterface {
/**
*
* @summary Returns Pseudonym
* @param {string} pseudonym
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PseudonymApiInterface
*/
pseudonymControllerGetPseudonym(pseudonym: string, options?: any): AxiosPromise<PseudonymResponse>;

}

/**
* PseudonymApi - object-oriented interface
* @export
* @class PseudonymApi
* @extends {BaseAPI}
*/
export class PseudonymApi extends BaseAPI implements PseudonymApiInterface {
/**
*
* @summary Returns Pseudonym
* @param {string} pseudonym
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof PseudonymApi
*/
public pseudonymControllerGetPseudonym(pseudonym: string, options?: any) {
return PseudonymApiFp(this.configuration).pseudonymControllerGetPseudonym(pseudonym, options).then((request) => request(this.axios, this.basePath));
}
}


/**
* RoomsApi - axios parameter creator
* @export
Expand Down
Loading