diff --git a/src/component/api/.gitkeep b/src/component/api/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/src/component/api/.openapi-generator/FILES b/src/component/api/.openapi-generator/FILES index 76293770..b4bcf436 100644 --- a/src/component/api/.openapi-generator/FILES +++ b/src/component/api/.openapi-generator/FILES @@ -11,6 +11,8 @@ common.ts configuration.ts git_push.sh index.ts +models/batch-request.ts +models/batch-response.ts models/broadcast-status.ts models/clipboard-text.ts models/control-status.ts diff --git a/src/component/api/.openapi-generator/VERSION b/src/component/api/.openapi-generator/VERSION index 5f68295f..ba8a874d 100644 --- a/src/component/api/.openapi-generator/VERSION +++ b/src/component/api/.openapi-generator/VERSION @@ -1 +1 @@ -6.0.0-SNAPSHOT \ No newline at end of file +6.6.0-SNAPSHOT \ No newline at end of file diff --git a/src/component/api/api/default-api.ts b/src/component/api/api/default-api.ts index 9781bdab..c0429690 100644 --- a/src/component/api/api/default-api.ts +++ b/src/component/api/api/default-api.ts @@ -13,19 +13,69 @@ */ -import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; -import { Configuration } from '../configuration'; +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { BatchRequest } from '../models'; +// @ts-ignore +import { BatchResponse } from '../models'; /** * DefaultApi - axios parameter creator * @export */ export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) { return { + /** + * + * @summary batch + * @param {Array} batchRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + batch: async (batchRequest: Array, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'batchRequest' is not null or undefined + assertParamExists('batch', 'batchRequest', batchRequest) + const localVarPath = `/api/batch`; + // 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 CookieAuth required + + // authentication TokenAuth required + await setApiKeyToObject(localVarQueryParameter, "token", configuration) + + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(batchRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** * * @summary healthcheck @@ -33,7 +83,37 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati * @throws {RequiredError} */ healthcheck: async (options: AxiosRequestConfig = {}): Promise => { - const localVarPath = `/api/health`; + const localVarPath = `/health`; + // 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; + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary metrics + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + metrics: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/metrics`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -66,6 +146,17 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati export const DefaultApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration) return { + /** + * + * @summary batch + * @param {Array} batchRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async batch(batchRequest: Array, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.batch(batchRequest, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, /** * * @summary healthcheck @@ -76,6 +167,16 @@ export const DefaultApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.healthcheck(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, + /** + * + * @summary metrics + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async metrics(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.metrics(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, } }; @@ -86,6 +187,16 @@ export const DefaultApiFp = function(configuration?: Configuration) { export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = DefaultApiFp(configuration) return { + /** + * + * @summary batch + * @param {Array} batchRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + batch(batchRequest: Array, options?: any): AxiosPromise> { + return localVarFp.batch(batchRequest, options).then((request) => request(axios, basePath)); + }, /** * * @summary healthcheck @@ -95,6 +206,15 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa healthcheck(options?: any): AxiosPromise { return localVarFp.healthcheck(options).then((request) => request(axios, basePath)); }, + /** + * + * @summary metrics + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + metrics(options?: any): AxiosPromise { + return localVarFp.metrics(options).then((request) => request(axios, basePath)); + }, }; }; @@ -105,6 +225,18 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @extends {BaseAPI} */ export class DefaultApi extends BaseAPI { + /** + * + * @summary batch + * @param {Array} batchRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public batch(batchRequest: Array, options?: AxiosRequestConfig) { + return DefaultApiFp(this.configuration).batch(batchRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** * * @summary healthcheck @@ -115,4 +247,15 @@ export class DefaultApi extends BaseAPI { public healthcheck(options?: AxiosRequestConfig) { return DefaultApiFp(this.configuration).healthcheck(options).then((request) => request(this.axios, this.basePath)); } + + /** + * + * @summary metrics + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public metrics(options?: AxiosRequestConfig) { + return DefaultApiFp(this.configuration).metrics(options).then((request) => request(this.axios, this.basePath)); + } } diff --git a/src/component/api/api/members-api.ts b/src/component/api/api/members-api.ts index 6bf418f9..8e48056e 100644 --- a/src/component/api/api/members-api.ts +++ b/src/component/api/api/members-api.ts @@ -13,8 +13,9 @@ */ -import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; -import { Configuration } from '../configuration'; +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; @@ -60,15 +61,15 @@ export const MembersApiAxiosParamCreator = function (configuration?: Configurati const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; @@ -105,15 +106,15 @@ export const MembersApiAxiosParamCreator = function (configuration?: Configurati const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; @@ -151,15 +152,15 @@ export const MembersApiAxiosParamCreator = function (configuration?: Configurati const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -192,15 +193,15 @@ export const MembersApiAxiosParamCreator = function (configuration?: Configurati const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } @@ -243,15 +244,15 @@ export const MembersApiAxiosParamCreator = function (configuration?: Configurati const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -289,15 +290,15 @@ export const MembersApiAxiosParamCreator = function (configuration?: Configurati const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; @@ -338,15 +339,15 @@ export const MembersApiAxiosParamCreator = function (configuration?: Configurati const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; diff --git a/src/component/api/api/room-api.ts b/src/component/api/api/room-api.ts index b2c2a054..1054b5f2 100644 --- a/src/component/api/api/room-api.ts +++ b/src/component/api/api/room-api.ts @@ -13,8 +13,9 @@ */ -import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; -import { Configuration } from '../configuration'; +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; @@ -64,15 +65,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; @@ -106,15 +107,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -145,15 +146,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -184,15 +185,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -223,15 +224,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -265,15 +266,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; @@ -311,15 +312,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -350,15 +351,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -389,15 +390,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -428,15 +429,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -467,15 +468,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -506,15 +507,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -545,15 +546,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -587,15 +588,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; @@ -629,15 +630,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -671,15 +672,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; @@ -713,15 +714,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -752,15 +753,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -794,15 +795,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; @@ -836,15 +837,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -875,15 +876,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -914,15 +915,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -956,15 +957,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; @@ -982,11 +983,11 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration) /** * * @summary upload file to a dialog - * @param {Array} [files] files to be uploaded + * @param {Array} [files] files to be uploaded * @param {*} [options] Override http request option. * @throws {RequiredError} */ - uploadDialog: async (files?: Array, options: AxiosRequestConfig = {}): Promise => { + uploadDialog: async (files?: Array, options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/api/room/upload/dialog`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -1000,15 +1001,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration) const localVarQueryParameter = {} as any; const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)(); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + if (files) { files.forEach((element) => { localVarFormParams.append('files', element as any); @@ -1048,15 +1049,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -1073,11 +1074,11 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration) * @summary upload and drop file * @param {number} [x] X coordinate of drop * @param {number} [y] Y coordinate of drop - * @param {Array} [files] files to be uploaded + * @param {Array} [files] files to be uploaded * @param {*} [options] Override http request option. * @throws {RequiredError} */ - uploadDrop: async (x?: number, y?: number, files?: Array, options: AxiosRequestConfig = {}): Promise => { + uploadDrop: async (x?: number, y?: number, files?: Array, options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/api/room/upload/drop`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -1091,15 +1092,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration) const localVarQueryParameter = {} as any; const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)(); - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + if (x !== undefined) { localVarFormParams.append('x', x as any); @@ -1175,7 +1176,7 @@ export const RoomApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async clipboardGetImage(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async clipboardGetImage(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.clipboardGetImage(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, @@ -1309,7 +1310,7 @@ export const RoomApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async screenCastImage(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async screenCastImage(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.screenCastImage(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, @@ -1350,7 +1351,7 @@ export const RoomApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async screenShotImage(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async screenShotImage(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.screenShotImage(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, @@ -1378,11 +1379,11 @@ export const RoomApiFp = function(configuration?: Configuration) { /** * * @summary upload file to a dialog - * @param {Array} [files] files to be uploaded + * @param {Array} [files] files to be uploaded * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async uploadDialog(files?: Array, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async uploadDialog(files?: Array, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.uploadDialog(files, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, @@ -1401,11 +1402,11 @@ export const RoomApiFp = function(configuration?: Configuration) { * @summary upload and drop file * @param {number} [x] X coordinate of drop * @param {number} [y] Y coordinate of drop - * @param {Array} [files] files to be uploaded + * @param {Array} [files] files to be uploaded * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async uploadDrop(x?: number, y?: number, files?: Array, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async uploadDrop(x?: number, y?: number, files?: Array, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.uploadDrop(x, y, files, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, @@ -1453,7 +1454,7 @@ export const RoomApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - clipboardGetImage(options?: any): AxiosPromise { + clipboardGetImage(options?: any): AxiosPromise { return localVarFp.clipboardGetImage(options).then((request) => request(axios, basePath)); }, /** @@ -1574,7 +1575,7 @@ export const RoomApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - screenCastImage(options?: any): AxiosPromise { + screenCastImage(options?: any): AxiosPromise { return localVarFp.screenCastImage(options).then((request) => request(axios, basePath)); }, /** @@ -1611,7 +1612,7 @@ export const RoomApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - screenShotImage(options?: any): AxiosPromise { + screenShotImage(options?: any): AxiosPromise { return localVarFp.screenShotImage(options).then((request) => request(axios, basePath)); }, /** @@ -1636,11 +1637,11 @@ export const RoomApiFactory = function (configuration?: Configuration, basePath? /** * * @summary upload file to a dialog - * @param {Array} [files] files to be uploaded + * @param {Array} [files] files to be uploaded * @param {*} [options] Override http request option. * @throws {RequiredError} */ - uploadDialog(files?: Array, options?: any): AxiosPromise { + uploadDialog(files?: Array, options?: any): AxiosPromise { return localVarFp.uploadDialog(files, options).then((request) => request(axios, basePath)); }, /** @@ -1657,11 +1658,11 @@ export const RoomApiFactory = function (configuration?: Configuration, basePath? * @summary upload and drop file * @param {number} [x] X coordinate of drop * @param {number} [y] Y coordinate of drop - * @param {Array} [files] files to be uploaded + * @param {Array} [files] files to be uploaded * @param {*} [options] Override http request option. * @throws {RequiredError} */ - uploadDrop(x?: number, y?: number, files?: Array, options?: any): AxiosPromise { + uploadDrop(x?: number, y?: number, files?: Array, options?: any): AxiosPromise { return localVarFp.uploadDrop(x, y, files, options).then((request) => request(axios, basePath)); }, }; @@ -1937,12 +1938,12 @@ export class RoomApi extends BaseAPI { /** * * @summary upload file to a dialog - * @param {Array} [files] files to be uploaded + * @param {Array} [files] files to be uploaded * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof RoomApi */ - public uploadDialog(files?: Array, options?: AxiosRequestConfig) { + public uploadDialog(files?: Array, options?: AxiosRequestConfig) { return RoomApiFp(this.configuration).uploadDialog(files, options).then((request) => request(this.axios, this.basePath)); } @@ -1962,12 +1963,12 @@ export class RoomApi extends BaseAPI { * @summary upload and drop file * @param {number} [x] X coordinate of drop * @param {number} [y] Y coordinate of drop - * @param {Array} [files] files to be uploaded + * @param {Array} [files] files to be uploaded * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof RoomApi */ - public uploadDrop(x?: number, y?: number, files?: Array, options?: AxiosRequestConfig) { + public uploadDrop(x?: number, y?: number, files?: Array, options?: AxiosRequestConfig) { return RoomApiFp(this.configuration).uploadDrop(x, y, files, options).then((request) => request(this.axios, this.basePath)); } } diff --git a/src/component/api/api/session-api.ts b/src/component/api/api/session-api.ts index 87d821ec..7476d5f7 100644 --- a/src/component/api/api/session-api.ts +++ b/src/component/api/api/session-api.ts @@ -13,8 +13,9 @@ */ -import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; -import { Configuration } from '../configuration'; +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; @@ -87,15 +88,15 @@ export const SessionApiAxiosParamCreator = function (configuration?: Configurati const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -126,15 +127,15 @@ export const SessionApiAxiosParamCreator = function (configuration?: Configurati const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - // authentication BearerAuth required - // http bearer authentication required - await setBearerAuthToObject(localVarHeaderParameter, configuration) - // authentication CookieAuth required // authentication TokenAuth required await setApiKeyToObject(localVarQueryParameter, "token", configuration) + // authentication BearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); diff --git a/src/component/api/base.ts b/src/component/api/base.ts index 325446c1..a53d92e8 100644 --- a/src/component/api/base.ts +++ b/src/component/api/base.ts @@ -13,10 +13,11 @@ */ -import { Configuration } from "./configuration"; +import type { Configuration } from './configuration'; // Some imports not used depending on template conditions // @ts-ignore -import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; export const BASE_PATH = "http://localhost:3000".replace(/\/+$/, ""); @@ -64,8 +65,8 @@ export class BaseAPI { * @extends {Error} */ export class RequiredError extends Error { - name: "RequiredError" = "RequiredError"; constructor(public field: string, msg?: string) { super(msg); + this.name = "RequiredError" } } diff --git a/src/component/api/common.ts b/src/component/api/common.ts index 562a3ced..b55a9f0a 100644 --- a/src/component/api/common.ts +++ b/src/component/api/common.ts @@ -13,9 +13,10 @@ */ -import { Configuration } from "./configuration"; -import { RequiredError, RequestArgs } from "./base"; -import { AxiosInstance, AxiosResponse } from 'axios'; +import type { Configuration } from "./configuration"; +import type { RequestArgs } from "./base"; +import type { AxiosInstance, AxiosResponse } from 'axios'; +import { RequiredError } from "./base"; /** * @@ -83,24 +84,35 @@ export const setOAuthToObject = async function (object: any, name: string, scope } } +function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ""): void { + if (parameter == null) return; + if (typeof parameter === "object") { + if (Array.isArray(parameter)) { + (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key)); + } + else { + Object.keys(parameter).forEach(currentKey => + setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`) + ); + } + } + else { + if (urlSearchParams.has(key)) { + urlSearchParams.append(key, parameter); + } + else { + urlSearchParams.set(key, parameter); + } + } +} + /** * * @export */ export const setSearchParams = function (url: URL, ...objects: any[]) { const searchParams = new URLSearchParams(url.search); - for (const object of objects) { - for (const key in object) { - if (Array.isArray(object[key])) { - searchParams.delete(key); - for (const item of object[key]) { - searchParams.append(key, item); - } - } else { - searchParams.set(key, object[key]); - } - } - } + setFlattenedQueryParams(searchParams, objects); url.search = searchParams.toString(); } diff --git a/src/component/api/models/batch-request.ts b/src/component/api/models/batch-request.ts new file mode 100644 index 00000000..4b818305 --- /dev/null +++ b/src/component/api/models/batch-request.ts @@ -0,0 +1,51 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * n.eko REST API + * Next Gen Renderer. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface BatchRequest + */ +export interface BatchRequest { + /** + * + * @type {string} + * @memberof BatchRequest + */ + 'path'?: string; + /** + * + * @type {string} + * @memberof BatchRequest + */ + 'method'?: BatchRequestMethodEnum; + /** + * Request body + * @type {any} + * @memberof BatchRequest + */ + 'body'?: any; +} + +export const BatchRequestMethodEnum = { + GET: 'GET', + POST: 'POST', + DELETE: 'DELETE' +} as const; + +export type BatchRequestMethodEnum = typeof BatchRequestMethodEnum[keyof typeof BatchRequestMethodEnum]; + + diff --git a/src/component/api/models/batch-response.ts b/src/component/api/models/batch-response.ts new file mode 100644 index 00000000..6a1cd77f --- /dev/null +++ b/src/component/api/models/batch-response.ts @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * n.eko REST API + * Next Gen Renderer. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface BatchResponse + */ +export interface BatchResponse { + /** + * + * @type {string} + * @memberof BatchResponse + */ + 'path'?: string; + /** + * + * @type {string} + * @memberof BatchResponse + */ + 'method'?: BatchResponseMethodEnum; + /** + * Response body + * @type {any} + * @memberof BatchResponse + */ + 'body'?: any; + /** + * + * @type {number} + * @memberof BatchResponse + */ + 'status'?: number; +} + +export const BatchResponseMethodEnum = { + GET: 'GET', + POST: 'POST', + DELETE: 'DELETE' +} as const; + +export type BatchResponseMethodEnum = typeof BatchResponseMethodEnum[keyof typeof BatchResponseMethodEnum]; + + diff --git a/src/component/api/models/index.ts b/src/component/api/models/index.ts index 06224169..7516baf4 100644 --- a/src/component/api/models/index.ts +++ b/src/component/api/models/index.ts @@ -1,3 +1,5 @@ +export * from './batch-request' +export * from './batch-response' export * from './broadcast-status' export * from './clipboard-text' export * from './control-status' diff --git a/src/component/api/models/member-bulk-update.ts b/src/component/api/models/member-bulk-update.ts index 17ffbcc7..df1e2f0d 100644 --- a/src/component/api/models/member-bulk-update.ts +++ b/src/component/api/models/member-bulk-update.ts @@ -13,6 +13,8 @@ */ +// May contain unused imports in some cases +// @ts-ignore import { MemberProfile } from './member-profile'; /** diff --git a/src/component/api/models/member-create.ts b/src/component/api/models/member-create.ts index 3e71df5d..639007fe 100644 --- a/src/component/api/models/member-create.ts +++ b/src/component/api/models/member-create.ts @@ -13,6 +13,8 @@ */ +// May contain unused imports in some cases +// @ts-ignore import { MemberProfile } from './member-profile'; /** diff --git a/src/component/api/models/member-data.ts b/src/component/api/models/member-data.ts index 5cf2ea38..c4b332bf 100644 --- a/src/component/api/models/member-data.ts +++ b/src/component/api/models/member-data.ts @@ -13,6 +13,8 @@ */ +// May contain unused imports in some cases +// @ts-ignore import { MemberProfile } from './member-profile'; /** diff --git a/src/component/api/models/session-data.ts b/src/component/api/models/session-data.ts index 3f70d4fb..f54cd6d1 100644 --- a/src/component/api/models/session-data.ts +++ b/src/component/api/models/session-data.ts @@ -13,7 +13,11 @@ */ +// May contain unused imports in some cases +// @ts-ignore import { MemberProfile } from './member-profile'; +// May contain unused imports in some cases +// @ts-ignore import { SessionState } from './session-state'; /** diff --git a/src/component/api/models/settings.ts b/src/component/api/models/settings.ts index 6d5d6fac..8c57ba74 100644 --- a/src/component/api/models/settings.ts +++ b/src/component/api/models/settings.ts @@ -26,6 +26,12 @@ export interface Settings { * @memberof Settings */ 'private_mode'?: boolean; + /** + * + * @type {boolean} + * @memberof Settings + */ + 'locked_controls'?: boolean; /** * * @type {boolean} @@ -44,5 +50,11 @@ export interface Settings { * @memberof Settings */ 'merciful_reconnect'?: boolean; + /** + * + * @type {{ [key: string]: any; }} + * @memberof Settings + */ + 'plugins'?: { [key: string]: any; }; } diff --git a/src/component/main.vue b/src/component/main.vue index aeafdc3a..3a000f32 100644 --- a/src/component/main.vue +++ b/src/component/main.vue @@ -550,7 +550,7 @@ return this.api.members } - async uploadDrop({ x, y, files }: { x: number; y: number; files: Array }) { + async uploadDrop({ x, y, files }: { x: number; y: number; files: Array }) { try { this.events.emit('upload.drop.started')