From 9b67d09f330b5f11222b09cafe440fc2e5cda7f2 Mon Sep 17 00:00:00 2001 From: Uwe Ilgenstein Date: Fri, 20 Sep 2024 10:48:56 +0200 Subject: [PATCH] re-generate server api --- src/serverApi/v3/api.ts | 295 +++++++++++++++++++++++++++++++++++----- 1 file changed, 263 insertions(+), 32 deletions(-) diff --git a/src/serverApi/v3/api.ts b/src/serverApi/v3/api.ts index d108bf6e67..9b68547bf7 100644 --- a/src/serverApi/v3/api.ts +++ b/src/serverApi/v3/api.ts @@ -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} - * @memberof RoomListResponse + * + * @type {string} + * @memberof RoomDetailsResponse */ - data: Array; + 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} + * @memberof RoomListResponse + */ + data: Array; + /** + * 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; } /** * @@ -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 => { + // 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 => { + // 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. @@ -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> { + 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> { + const localVarAxiosArgs = await localVarAxiosParamCreator.roomControllerGetRoomDetails(roomId, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, /** * * @summary Get a list of rooms. @@ -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 { + 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 { + return localVarFp.roomControllerGetRoomDetails(roomId, options).then((request) => request(axios, basePath)); + }, /** * * @summary Get a list of rooms. @@ -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; + + /** + * + * @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; + /** * * @summary Get a list of rooms. @@ -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.