Skip to content

Commit

Permalink
N21-1887 Generate API (#3231)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinOehlerkingCap authored May 3, 2024
1 parent 1b6e439 commit 5cbd53b
Showing 1 changed file with 124 additions and 0 deletions.
124 changes: 124 additions & 0 deletions src/serverApi/v3/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1490,6 +1490,7 @@ export interface CopyApiResponse {
export enum CopyApiResponseTypeEnum {
Board = 'BOARD',
Card = 'CARD',
CollaborativeTextEditorElement = 'COLLABORATIVE_TEXT_EDITOR_ELEMENT',
Column = 'COLUMN',
Columnboard = 'COLUMNBOARD',
Content = 'CONTENT',
Expand Down Expand Up @@ -1545,6 +1546,7 @@ export enum CopyApiResponseStatusEnum {
export enum CopyApiResponseElementsTypesEnum {
Board = 'BOARD',
Card = 'CARD',
CollaborativeTextEditorElement = 'COLLABORATIVE_TEXT_EDITOR_ELEMENT',
Column = 'COLUMN',
Columnboard = 'COLUMNBOARD',
Content = 'CONTENT',
Expand Down Expand Up @@ -23501,6 +23503,128 @@ export class UserLoginMigrationApi extends BaseAPI implements UserLoginMigration
}


/**
* UserLoginMigrationRollbackApi - axios parameter creator
* @export
*/
export const UserLoginMigrationRollbackApiAxiosParamCreator = function (configuration?: Configuration) {
return {
/**
*
* @param {string} userId
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
userLoginMigrationRollbackControllerMigrateUserLogin: async (userId: string, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'userId' is not null or undefined
assertParamExists('userLoginMigrationRollbackControllerMigrateUserLogin', 'userId', userId)
const localVarPath = `/user-login-migrations/users/{userId}/rollback-migration`
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
// 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)



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

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

/**
* UserLoginMigrationRollbackApi - functional programming interface
* @export
*/
export const UserLoginMigrationRollbackApiFp = function(configuration?: Configuration) {
const localVarAxiosParamCreator = UserLoginMigrationRollbackApiAxiosParamCreator(configuration)
return {
/**
*
* @param {string} userId
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async userLoginMigrationRollbackControllerMigrateUserLogin(userId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.userLoginMigrationRollbackControllerMigrateUserLogin(userId, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
}
};

/**
* UserLoginMigrationRollbackApi - factory interface
* @export
*/
export const UserLoginMigrationRollbackApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
const localVarFp = UserLoginMigrationRollbackApiFp(configuration)
return {
/**
*
* @param {string} userId
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
userLoginMigrationRollbackControllerMigrateUserLogin(userId: string, options?: any): AxiosPromise<void> {
return localVarFp.userLoginMigrationRollbackControllerMigrateUserLogin(userId, options).then((request) => request(axios, basePath));
},
};
};

/**
* UserLoginMigrationRollbackApi - interface
* @export
* @interface UserLoginMigrationRollbackApi
*/
export interface UserLoginMigrationRollbackApiInterface {
/**
*
* @param {string} userId
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof UserLoginMigrationRollbackApiInterface
*/
userLoginMigrationRollbackControllerMigrateUserLogin(userId: string, options?: any): AxiosPromise<void>;

}

/**
* UserLoginMigrationRollbackApi - object-oriented interface
* @export
* @class UserLoginMigrationRollbackApi
* @extends {BaseAPI}
*/
export class UserLoginMigrationRollbackApi extends BaseAPI implements UserLoginMigrationRollbackApiInterface {
/**
*
* @param {string} userId
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof UserLoginMigrationRollbackApi
*/
public userLoginMigrationRollbackControllerMigrateUserLogin(userId: string, options?: any) {
return UserLoginMigrationRollbackApiFp(this.configuration).userLoginMigrationRollbackControllerMigrateUserLogin(userId, options).then((request) => request(this.axios, this.basePath));
}
}


/**
* VideoConferenceApi - axios parameter creator
* @export
Expand Down

0 comments on commit 5cbd53b

Please sign in to comment.