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-1887 Generate API #3231

Merged
merged 2 commits into from
May 3, 2024
Merged
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
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',
MarvinOehlerkingCap marked this conversation as resolved.
Show resolved Hide resolved
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
Loading