Skip to content

Commit

Permalink
re-generate server api
Browse files Browse the repository at this point in the history
  • Loading branch information
uidp committed Sep 20, 2024
1 parent 2ef8081 commit 9b67d09
Showing 1 changed file with 263 additions and 32 deletions.
295 changes: 263 additions & 32 deletions src/serverApi/v3/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6390,82 +6390,151 @@ export enum RoleName {
/**
*
* @export
* @interface RoomListResponse
* @enum {string}
*/
export interface RoomListResponse {
export enum RoomColor {
BlueGrey = 'blue-grey',
Pink = 'pink',
Red = 'red',
Orange = 'orange',
Olive = 'olive',
Green = 'green',
Turquoise = 'turquoise',
LightBlue = 'light-blue',
Blue = 'blue',
Magenta = 'magenta',
Purple = 'purple',
Brown = 'brown'
}

/**
*
* @export
* @interface RoomDetailsResponse
*/
export interface RoomDetailsResponse {
/**
* The items for the current page.
* @type {Array<RoomResponse>}
* @memberof RoomListResponse
*
* @type {string}
* @memberof RoomDetailsResponse
*/
data: Array<RoomResponse>;
id: string;
/**
* The total amount of items.
* @type {number}
* @memberof RoomListResponse
*
* @type {string}
* @memberof RoomDetailsResponse
*/
total: number;
name: string;
/**
* The amount of items skipped from the start.
* @type {number}
* @memberof RoomListResponse
*
* @type {RoomColor}
* @memberof RoomDetailsResponse
*/
skip: number;
color: RoomColor;
/**
* The page size of the response.
* @type {number}
* @memberof RoomListResponse
*
* @type {string}
* @memberof RoomDetailsResponse
*/
limit: number;
startDate?: string;
/**
*
* @type {string}
* @memberof RoomDetailsResponse
*/
endDate?: string;
/**
*
* @type {string}
* @memberof RoomDetailsResponse
*/
createdAt: string;
/**
*
* @type {string}
* @memberof RoomDetailsResponse
*/
updatedAt: string;
}
/**
*
* @export
* @interface RoomResponse
* @interface RoomItemResponse
*/
export interface RoomResponse {
export interface RoomItemResponse {
/**
*
* @type {string}
* @memberof RoomResponse
* @memberof RoomItemResponse
*/
id: string;
/**
*
* @type {string}
* @memberof RoomResponse
* @memberof RoomItemResponse
*/
name: string;
/**
*
* @type {string}
* @memberof RoomResponse
* @type {RoomColor}
* @memberof RoomItemResponse
*/
color: string;
color: RoomColor;
/**
*
* @type {string}
* @memberof RoomResponse
* @memberof RoomItemResponse
*/
startDate?: string;
/**
*
* @type {string}
* @memberof RoomResponse
* @memberof RoomItemResponse
*/
untilDate?: string;
endDate?: string;
/**
*
* @type {string}
* @memberof RoomResponse
* @memberof RoomItemResponse
*/
createdAt?: string;
createdAt: string;
/**
*
* @type {string}
* @memberof RoomResponse
* @memberof RoomItemResponse
*/
updatedAt: string;
}
/**
*
* @export
* @interface RoomListResponse
*/
export interface RoomListResponse {
/**
* The items for the current page.
* @type {Array<RoomItemResponse>}
* @memberof RoomListResponse
*/
data: Array<RoomItemResponse>;
/**
* The total amount of items.
* @type {number}
* @memberof RoomListResponse
*/
total: number;
/**
* The amount of items skipped from the start.
* @type {number}
* @memberof RoomListResponse
*/
skip: number;
/**
* The page size of the response.
* @type {number}
* @memberof RoomListResponse
*/
updatedAt?: string;
limit: number;
}
/**
*
Expand Down Expand Up @@ -19005,6 +19074,82 @@ export class PseudonymApi extends BaseAPI implements PseudonymApiInterface {
*/
export const RoomApiAxiosParamCreator = function (configuration?: Configuration) {
return {
/**
*
* @summary Delete a room
* @param {string} roomId
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
roomControllerDeleteRoom: async (roomId: string, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'roomId' is not null or undefined
assertParamExists('roomControllerDeleteRoom', 'roomId', roomId)
const localVarPath = `/rooms/{roomId}`
.replace(`{${"roomId"}}`, encodeURIComponent(String(roomId)));
// 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: 'DELETE', ...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,
};
},
/**
*
* @summary Get the details of a room
* @param {string} roomId
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
roomControllerGetRoomDetails: async (roomId: string, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'roomId' is not null or undefined
assertParamExists('roomControllerGetRoomDetails', 'roomId', roomId)
const localVarPath = `/rooms/{roomId}`
.replace(`{${"roomId"}}`, encodeURIComponent(String(roomId)));
// 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,
};
},
/**
*
* @summary Get a list of rooms.
Expand Down Expand Up @@ -19059,6 +19204,28 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration)
export const RoomApiFp = function(configuration?: Configuration) {
const localVarAxiosParamCreator = RoomApiAxiosParamCreator(configuration)
return {
/**
*
* @summary Delete a room
* @param {string} roomId
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async roomControllerDeleteRoom(roomId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.roomControllerDeleteRoom(roomId, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
*
* @summary Get the details of a room
* @param {string} roomId
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async roomControllerGetRoomDetails(roomId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoomDetailsResponse>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.roomControllerGetRoomDetails(roomId, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
*
* @summary Get a list of rooms.
Expand All @@ -19081,6 +19248,26 @@ export const RoomApiFp = function(configuration?: Configuration) {
export const RoomApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
const localVarFp = RoomApiFp(configuration)
return {
/**
*
* @summary Delete a room
* @param {string} roomId
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
roomControllerDeleteRoom(roomId: string, options?: any): AxiosPromise<void> {
return localVarFp.roomControllerDeleteRoom(roomId, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Get the details of a room
* @param {string} roomId
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
roomControllerGetRoomDetails(roomId: string, options?: any): AxiosPromise<RoomDetailsResponse> {
return localVarFp.roomControllerGetRoomDetails(roomId, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Get a list of rooms.
Expand All @@ -19101,6 +19288,26 @@ export const RoomApiFactory = function (configuration?: Configuration, basePath?
* @interface RoomApi
*/
export interface RoomApiInterface {
/**
*
* @summary Delete a room
* @param {string} roomId
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof RoomApiInterface
*/
roomControllerDeleteRoom(roomId: string, options?: any): AxiosPromise<void>;

/**
*
* @summary Get the details of a room
* @param {string} roomId
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof RoomApiInterface
*/
roomControllerGetRoomDetails(roomId: string, options?: any): AxiosPromise<RoomDetailsResponse>;

/**
*
* @summary Get a list of rooms.
Expand All @@ -19121,6 +19328,30 @@ export interface RoomApiInterface {
* @extends {BaseAPI}
*/
export class RoomApi extends BaseAPI implements RoomApiInterface {
/**
*
* @summary Delete a room
* @param {string} roomId
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof RoomApi
*/
public roomControllerDeleteRoom(roomId: string, options?: any) {
return RoomApiFp(this.configuration).roomControllerDeleteRoom(roomId, options).then((request) => request(this.axios, this.basePath));
}

/**
*
* @summary Get the details of a room
* @param {string} roomId
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof RoomApi
*/
public roomControllerGetRoomDetails(roomId: string, options?: any) {
return RoomApiFp(this.configuration).roomControllerGetRoomDetails(roomId, options).then((request) => request(this.axios, this.basePath));
}

/**
*
* @summary Get a list of rooms.
Expand Down

0 comments on commit 9b67d09

Please sign in to comment.