mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
update api.
This commit is contained in:
parent
af5aefd669
commit
0f9679d6d6
@ -11,6 +11,8 @@ common.ts
|
|||||||
configuration.ts
|
configuration.ts
|
||||||
git_push.sh
|
git_push.sh
|
||||||
index.ts
|
index.ts
|
||||||
|
models/batch-request.ts
|
||||||
|
models/batch-response.ts
|
||||||
models/broadcast-status.ts
|
models/broadcast-status.ts
|
||||||
models/clipboard-text.ts
|
models/clipboard-text.ts
|
||||||
models/control-status.ts
|
models/control-status.ts
|
||||||
|
@ -1 +1 @@
|
|||||||
6.0.0-SNAPSHOT
|
6.6.0-SNAPSHOT
|
@ -13,19 +13,69 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
import type { Configuration } from '../configuration';
|
||||||
import { Configuration } from '../configuration';
|
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
||||||
|
import globalAxios from 'axios';
|
||||||
// Some imports not used depending on template conditions
|
// Some imports not used depending on template conditions
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
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
|
* DefaultApi - axios parameter creator
|
||||||
* @export
|
* @export
|
||||||
*/
|
*/
|
||||||
export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
|
export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||||
return {
|
return {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary batch
|
||||||
|
* @param {Array<BatchRequest>} batchRequest
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
batch: async (batchRequest: Array<BatchRequest>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||||
|
// 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
|
* @summary healthcheck
|
||||||
@ -33,7 +83,37 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
*/
|
*/
|
||||||
healthcheck: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
healthcheck: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||||
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<RequestArgs> => {
|
||||||
|
const localVarPath = `/metrics`;
|
||||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||||
let baseOptions;
|
let baseOptions;
|
||||||
@ -66,6 +146,17 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|||||||
export const DefaultApiFp = function(configuration?: Configuration) {
|
export const DefaultApiFp = function(configuration?: Configuration) {
|
||||||
const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
|
const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
|
||||||
return {
|
return {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary batch
|
||||||
|
* @param {Array<BatchRequest>} batchRequest
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
async batch(batchRequest: Array<BatchRequest>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BatchResponse>>> {
|
||||||
|
const localVarAxiosArgs = await localVarAxiosParamCreator.batch(batchRequest, options);
|
||||||
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @summary healthcheck
|
* @summary healthcheck
|
||||||
@ -76,6 +167,16 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|||||||
const localVarAxiosArgs = await localVarAxiosParamCreator.healthcheck(options);
|
const localVarAxiosArgs = await localVarAxiosParamCreator.healthcheck(options);
|
||||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
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<void>> {
|
||||||
|
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) {
|
export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
||||||
const localVarFp = DefaultApiFp(configuration)
|
const localVarFp = DefaultApiFp(configuration)
|
||||||
return {
|
return {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary batch
|
||||||
|
* @param {Array<BatchRequest>} batchRequest
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
batch(batchRequest: Array<BatchRequest>, options?: any): AxiosPromise<Array<BatchResponse>> {
|
||||||
|
return localVarFp.batch(batchRequest, options).then((request) => request(axios, basePath));
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @summary healthcheck
|
* @summary healthcheck
|
||||||
@ -95,6 +206,15 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|||||||
healthcheck(options?: any): AxiosPromise<void> {
|
healthcheck(options?: any): AxiosPromise<void> {
|
||||||
return localVarFp.healthcheck(options).then((request) => request(axios, basePath));
|
return localVarFp.healthcheck(options).then((request) => request(axios, basePath));
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary metrics
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
*/
|
||||||
|
metrics(options?: any): AxiosPromise<void> {
|
||||||
|
return localVarFp.metrics(options).then((request) => request(axios, basePath));
|
||||||
|
},
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -105,6 +225,18 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|||||||
* @extends {BaseAPI}
|
* @extends {BaseAPI}
|
||||||
*/
|
*/
|
||||||
export class DefaultApi extends BaseAPI {
|
export class DefaultApi extends BaseAPI {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @summary batch
|
||||||
|
* @param {Array<BatchRequest>} batchRequest
|
||||||
|
* @param {*} [options] Override http request option.
|
||||||
|
* @throws {RequiredError}
|
||||||
|
* @memberof DefaultApi
|
||||||
|
*/
|
||||||
|
public batch(batchRequest: Array<BatchRequest>, options?: AxiosRequestConfig) {
|
||||||
|
return DefaultApiFp(this.configuration).batch(batchRequest, options).then((request) => request(this.axios, this.basePath));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @summary healthcheck
|
* @summary healthcheck
|
||||||
@ -115,4 +247,15 @@ export class DefaultApi extends BaseAPI {
|
|||||||
public healthcheck(options?: AxiosRequestConfig) {
|
public healthcheck(options?: AxiosRequestConfig) {
|
||||||
return DefaultApiFp(this.configuration).healthcheck(options).then((request) => request(this.axios, this.basePath));
|
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));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,8 +13,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
import type { Configuration } from '../configuration';
|
||||||
import { Configuration } from '../configuration';
|
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
||||||
|
import globalAxios from 'axios';
|
||||||
// Some imports not used depending on template conditions
|
// Some imports not used depending on template conditions
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
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 localVarHeaderParameter = {} as any;
|
||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
localVarHeaderParameter['Content-Type'] = 'application/json';
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||||
@ -105,15 +106,15 @@ export const MembersApiAxiosParamCreator = function (configuration?: Configurati
|
|||||||
const localVarHeaderParameter = {} as any;
|
const localVarHeaderParameter = {} as any;
|
||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
localVarHeaderParameter['Content-Type'] = 'application/json';
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||||
@ -151,15 +152,15 @@ export const MembersApiAxiosParamCreator = function (configuration?: Configurati
|
|||||||
const localVarHeaderParameter = {} as any;
|
const localVarHeaderParameter = {} as any;
|
||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
@ -192,15 +193,15 @@ export const MembersApiAxiosParamCreator = function (configuration?: Configurati
|
|||||||
const localVarHeaderParameter = {} as any;
|
const localVarHeaderParameter = {} as any;
|
||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
if (limit !== undefined) {
|
if (limit !== undefined) {
|
||||||
localVarQueryParameter['limit'] = limit;
|
localVarQueryParameter['limit'] = limit;
|
||||||
}
|
}
|
||||||
@ -243,15 +244,15 @@ export const MembersApiAxiosParamCreator = function (configuration?: Configurati
|
|||||||
const localVarHeaderParameter = {} as any;
|
const localVarHeaderParameter = {} as any;
|
||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
@ -289,15 +290,15 @@ export const MembersApiAxiosParamCreator = function (configuration?: Configurati
|
|||||||
const localVarHeaderParameter = {} as any;
|
const localVarHeaderParameter = {} as any;
|
||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
localVarHeaderParameter['Content-Type'] = 'application/json';
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||||
@ -338,15 +339,15 @@ export const MembersApiAxiosParamCreator = function (configuration?: Configurati
|
|||||||
const localVarHeaderParameter = {} as any;
|
const localVarHeaderParameter = {} as any;
|
||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
localVarHeaderParameter['Content-Type'] = 'application/json';
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||||
|
@ -13,8 +13,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
import type { Configuration } from '../configuration';
|
||||||
import { Configuration } from '../configuration';
|
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
||||||
|
import globalAxios from 'axios';
|
||||||
// Some imports not used depending on template conditions
|
// Some imports not used depending on template conditions
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
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 localVarHeaderParameter = {} as any;
|
||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
localVarHeaderParameter['Content-Type'] = 'application/json';
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||||
@ -106,15 +107,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration)
|
|||||||
const localVarHeaderParameter = {} as any;
|
const localVarHeaderParameter = {} as any;
|
||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
@ -145,15 +146,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration)
|
|||||||
const localVarHeaderParameter = {} as any;
|
const localVarHeaderParameter = {} as any;
|
||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
@ -184,15 +185,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration)
|
|||||||
const localVarHeaderParameter = {} as any;
|
const localVarHeaderParameter = {} as any;
|
||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
@ -223,15 +224,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration)
|
|||||||
const localVarHeaderParameter = {} as any;
|
const localVarHeaderParameter = {} as any;
|
||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
@ -265,15 +266,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration)
|
|||||||
const localVarHeaderParameter = {} as any;
|
const localVarHeaderParameter = {} as any;
|
||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
localVarHeaderParameter['Content-Type'] = 'application/json';
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||||
@ -311,15 +312,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration)
|
|||||||
const localVarHeaderParameter = {} as any;
|
const localVarHeaderParameter = {} as any;
|
||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
@ -350,15 +351,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration)
|
|||||||
const localVarHeaderParameter = {} as any;
|
const localVarHeaderParameter = {} as any;
|
||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
@ -389,15 +390,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration)
|
|||||||
const localVarHeaderParameter = {} as any;
|
const localVarHeaderParameter = {} as any;
|
||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
@ -428,15 +429,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration)
|
|||||||
const localVarHeaderParameter = {} as any;
|
const localVarHeaderParameter = {} as any;
|
||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
@ -467,15 +468,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration)
|
|||||||
const localVarHeaderParameter = {} as any;
|
const localVarHeaderParameter = {} as any;
|
||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
@ -506,15 +507,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration)
|
|||||||
const localVarHeaderParameter = {} as any;
|
const localVarHeaderParameter = {} as any;
|
||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
@ -545,15 +546,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration)
|
|||||||
const localVarHeaderParameter = {} as any;
|
const localVarHeaderParameter = {} as any;
|
||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
@ -587,15 +588,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration)
|
|||||||
const localVarHeaderParameter = {} as any;
|
const localVarHeaderParameter = {} as any;
|
||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
localVarHeaderParameter['Content-Type'] = 'application/json';
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||||
@ -629,15 +630,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration)
|
|||||||
const localVarHeaderParameter = {} as any;
|
const localVarHeaderParameter = {} as any;
|
||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
@ -671,15 +672,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration)
|
|||||||
const localVarHeaderParameter = {} as any;
|
const localVarHeaderParameter = {} as any;
|
||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
localVarHeaderParameter['Content-Type'] = 'application/json';
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||||
@ -713,15 +714,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration)
|
|||||||
const localVarHeaderParameter = {} as any;
|
const localVarHeaderParameter = {} as any;
|
||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
@ -752,15 +753,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration)
|
|||||||
const localVarHeaderParameter = {} as any;
|
const localVarHeaderParameter = {} as any;
|
||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
@ -794,15 +795,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration)
|
|||||||
const localVarHeaderParameter = {} as any;
|
const localVarHeaderParameter = {} as any;
|
||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
localVarHeaderParameter['Content-Type'] = 'application/json';
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||||
@ -836,15 +837,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration)
|
|||||||
const localVarHeaderParameter = {} as any;
|
const localVarHeaderParameter = {} as any;
|
||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
@ -875,15 +876,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration)
|
|||||||
const localVarHeaderParameter = {} as any;
|
const localVarHeaderParameter = {} as any;
|
||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
@ -914,15 +915,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration)
|
|||||||
const localVarHeaderParameter = {} as any;
|
const localVarHeaderParameter = {} as any;
|
||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
@ -956,15 +957,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration)
|
|||||||
const localVarHeaderParameter = {} as any;
|
const localVarHeaderParameter = {} as any;
|
||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
localVarHeaderParameter['Content-Type'] = 'application/json';
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
||||||
@ -982,11 +983,11 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration)
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @summary upload file to a dialog
|
* @summary upload file to a dialog
|
||||||
* @param {Array<any>} [files] files to be uploaded
|
* @param {Array<File>} [files] files to be uploaded
|
||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
*/
|
*/
|
||||||
uploadDialog: async (files?: Array<any>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
uploadDialog: async (files?: Array<File>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||||
const localVarPath = `/api/room/upload/dialog`;
|
const localVarPath = `/api/room/upload/dialog`;
|
||||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||||
@ -1000,15 +1001,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration)
|
|||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
if (files) {
|
if (files) {
|
||||||
files.forEach((element) => {
|
files.forEach((element) => {
|
||||||
localVarFormParams.append('files', element as any);
|
localVarFormParams.append('files', element as any);
|
||||||
@ -1048,15 +1049,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration)
|
|||||||
const localVarHeaderParameter = {} as any;
|
const localVarHeaderParameter = {} as any;
|
||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
@ -1073,11 +1074,11 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration)
|
|||||||
* @summary upload and drop file
|
* @summary upload and drop file
|
||||||
* @param {number} [x] X coordinate of drop
|
* @param {number} [x] X coordinate of drop
|
||||||
* @param {number} [y] Y coordinate of drop
|
* @param {number} [y] Y coordinate of drop
|
||||||
* @param {Array<any>} [files] files to be uploaded
|
* @param {Array<File>} [files] files to be uploaded
|
||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
*/
|
*/
|
||||||
uploadDrop: async (x?: number, y?: number, files?: Array<any>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
uploadDrop: async (x?: number, y?: number, files?: Array<File>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||||
const localVarPath = `/api/room/upload/drop`;
|
const localVarPath = `/api/room/upload/drop`;
|
||||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||||
@ -1091,15 +1092,15 @@ export const RoomApiAxiosParamCreator = function (configuration?: Configuration)
|
|||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
|
|
||||||
if (x !== undefined) {
|
if (x !== undefined) {
|
||||||
localVarFormParams.append('x', x as any);
|
localVarFormParams.append('x', x as any);
|
||||||
@ -1175,7 +1176,7 @@ export const RoomApiFp = function(configuration?: Configuration) {
|
|||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
*/
|
*/
|
||||||
async clipboardGetImage(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
async clipboardGetImage(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
|
||||||
const localVarAxiosArgs = await localVarAxiosParamCreator.clipboardGetImage(options);
|
const localVarAxiosArgs = await localVarAxiosParamCreator.clipboardGetImage(options);
|
||||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||||
},
|
},
|
||||||
@ -1309,7 +1310,7 @@ export const RoomApiFp = function(configuration?: Configuration) {
|
|||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
*/
|
*/
|
||||||
async screenCastImage(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
async screenCastImage(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
|
||||||
const localVarAxiosArgs = await localVarAxiosParamCreator.screenCastImage(options);
|
const localVarAxiosArgs = await localVarAxiosParamCreator.screenCastImage(options);
|
||||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||||
},
|
},
|
||||||
@ -1350,7 +1351,7 @@ export const RoomApiFp = function(configuration?: Configuration) {
|
|||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
*/
|
*/
|
||||||
async screenShotImage(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
async screenShotImage(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
|
||||||
const localVarAxiosArgs = await localVarAxiosParamCreator.screenShotImage(options);
|
const localVarAxiosArgs = await localVarAxiosParamCreator.screenShotImage(options);
|
||||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||||
},
|
},
|
||||||
@ -1378,11 +1379,11 @@ export const RoomApiFp = function(configuration?: Configuration) {
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @summary upload file to a dialog
|
* @summary upload file to a dialog
|
||||||
* @param {Array<any>} [files] files to be uploaded
|
* @param {Array<File>} [files] files to be uploaded
|
||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
*/
|
*/
|
||||||
async uploadDialog(files?: Array<any>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
async uploadDialog(files?: Array<File>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||||
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadDialog(files, options);
|
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadDialog(files, options);
|
||||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||||
},
|
},
|
||||||
@ -1401,11 +1402,11 @@ export const RoomApiFp = function(configuration?: Configuration) {
|
|||||||
* @summary upload and drop file
|
* @summary upload and drop file
|
||||||
* @param {number} [x] X coordinate of drop
|
* @param {number} [x] X coordinate of drop
|
||||||
* @param {number} [y] Y coordinate of drop
|
* @param {number} [y] Y coordinate of drop
|
||||||
* @param {Array<any>} [files] files to be uploaded
|
* @param {Array<File>} [files] files to be uploaded
|
||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
*/
|
*/
|
||||||
async uploadDrop(x?: number, y?: number, files?: Array<any>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
async uploadDrop(x?: number, y?: number, files?: Array<File>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
||||||
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadDrop(x, y, files, options);
|
const localVarAxiosArgs = await localVarAxiosParamCreator.uploadDrop(x, y, files, options);
|
||||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||||
},
|
},
|
||||||
@ -1453,7 +1454,7 @@ export const RoomApiFactory = function (configuration?: Configuration, basePath?
|
|||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
*/
|
*/
|
||||||
clipboardGetImage(options?: any): AxiosPromise<any> {
|
clipboardGetImage(options?: any): AxiosPromise<File> {
|
||||||
return localVarFp.clipboardGetImage(options).then((request) => request(axios, basePath));
|
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.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
*/
|
*/
|
||||||
screenCastImage(options?: any): AxiosPromise<any> {
|
screenCastImage(options?: any): AxiosPromise<File> {
|
||||||
return localVarFp.screenCastImage(options).then((request) => request(axios, basePath));
|
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.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
*/
|
*/
|
||||||
screenShotImage(options?: any): AxiosPromise<any> {
|
screenShotImage(options?: any): AxiosPromise<File> {
|
||||||
return localVarFp.screenShotImage(options).then((request) => request(axios, basePath));
|
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
|
* @summary upload file to a dialog
|
||||||
* @param {Array<any>} [files] files to be uploaded
|
* @param {Array<File>} [files] files to be uploaded
|
||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
*/
|
*/
|
||||||
uploadDialog(files?: Array<any>, options?: any): AxiosPromise<void> {
|
uploadDialog(files?: Array<File>, options?: any): AxiosPromise<void> {
|
||||||
return localVarFp.uploadDialog(files, options).then((request) => request(axios, basePath));
|
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
|
* @summary upload and drop file
|
||||||
* @param {number} [x] X coordinate of drop
|
* @param {number} [x] X coordinate of drop
|
||||||
* @param {number} [y] Y coordinate of drop
|
* @param {number} [y] Y coordinate of drop
|
||||||
* @param {Array<any>} [files] files to be uploaded
|
* @param {Array<File>} [files] files to be uploaded
|
||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
*/
|
*/
|
||||||
uploadDrop(x?: number, y?: number, files?: Array<any>, options?: any): AxiosPromise<void> {
|
uploadDrop(x?: number, y?: number, files?: Array<File>, options?: any): AxiosPromise<void> {
|
||||||
return localVarFp.uploadDrop(x, y, files, options).then((request) => request(axios, basePath));
|
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
|
* @summary upload file to a dialog
|
||||||
* @param {Array<any>} [files] files to be uploaded
|
* @param {Array<File>} [files] files to be uploaded
|
||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
* @memberof RoomApi
|
* @memberof RoomApi
|
||||||
*/
|
*/
|
||||||
public uploadDialog(files?: Array<any>, options?: AxiosRequestConfig) {
|
public uploadDialog(files?: Array<File>, options?: AxiosRequestConfig) {
|
||||||
return RoomApiFp(this.configuration).uploadDialog(files, options).then((request) => request(this.axios, this.basePath));
|
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
|
* @summary upload and drop file
|
||||||
* @param {number} [x] X coordinate of drop
|
* @param {number} [x] X coordinate of drop
|
||||||
* @param {number} [y] Y coordinate of drop
|
* @param {number} [y] Y coordinate of drop
|
||||||
* @param {Array<any>} [files] files to be uploaded
|
* @param {Array<File>} [files] files to be uploaded
|
||||||
* @param {*} [options] Override http request option.
|
* @param {*} [options] Override http request option.
|
||||||
* @throws {RequiredError}
|
* @throws {RequiredError}
|
||||||
* @memberof RoomApi
|
* @memberof RoomApi
|
||||||
*/
|
*/
|
||||||
public uploadDrop(x?: number, y?: number, files?: Array<any>, options?: AxiosRequestConfig) {
|
public uploadDrop(x?: number, y?: number, files?: Array<File>, options?: AxiosRequestConfig) {
|
||||||
return RoomApiFp(this.configuration).uploadDrop(x, y, files, options).then((request) => request(this.axios, this.basePath));
|
return RoomApiFp(this.configuration).uploadDrop(x, y, files, options).then((request) => request(this.axios, this.basePath));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,8 +13,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
import type { Configuration } from '../configuration';
|
||||||
import { Configuration } from '../configuration';
|
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
||||||
|
import globalAxios from 'axios';
|
||||||
// Some imports not used depending on template conditions
|
// Some imports not used depending on template conditions
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
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 localVarHeaderParameter = {} as any;
|
||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
@ -126,15 +127,15 @@ export const SessionApiAxiosParamCreator = function (configuration?: Configurati
|
|||||||
const localVarHeaderParameter = {} as any;
|
const localVarHeaderParameter = {} as any;
|
||||||
const localVarQueryParameter = {} as any;
|
const localVarQueryParameter = {} as any;
|
||||||
|
|
||||||
// authentication BearerAuth required
|
|
||||||
// http bearer authentication required
|
|
||||||
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
||||||
|
|
||||||
// authentication CookieAuth required
|
// authentication CookieAuth required
|
||||||
|
|
||||||
// authentication TokenAuth required
|
// authentication TokenAuth required
|
||||||
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
await setApiKeyToObject(localVarQueryParameter, "token", configuration)
|
||||||
|
|
||||||
|
// authentication BearerAuth required
|
||||||
|
// http bearer authentication required
|
||||||
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||||
|
@ -13,10 +13,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import { Configuration } from "./configuration";
|
import type { Configuration } from './configuration';
|
||||||
// Some imports not used depending on template conditions
|
// Some imports not used depending on template conditions
|
||||||
// @ts-ignore
|
// @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(/\/+$/, "");
|
export const BASE_PATH = "http://localhost:3000".replace(/\/+$/, "");
|
||||||
|
|
||||||
@ -64,8 +65,8 @@ export class BaseAPI {
|
|||||||
* @extends {Error}
|
* @extends {Error}
|
||||||
*/
|
*/
|
||||||
export class RequiredError extends Error {
|
export class RequiredError extends Error {
|
||||||
name: "RequiredError" = "RequiredError";
|
|
||||||
constructor(public field: string, msg?: string) {
|
constructor(public field: string, msg?: string) {
|
||||||
super(msg);
|
super(msg);
|
||||||
|
this.name = "RequiredError"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,9 +13,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
import { Configuration } from "./configuration";
|
import type { Configuration } from "./configuration";
|
||||||
import { RequiredError, RequestArgs } from "./base";
|
import type { RequestArgs } from "./base";
|
||||||
import { AxiosInstance, AxiosResponse } from 'axios';
|
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
|
||||||
*/
|
*/
|
||||||
export const setSearchParams = function (url: URL, ...objects: any[]) {
|
export const setSearchParams = function (url: URL, ...objects: any[]) {
|
||||||
const searchParams = new URLSearchParams(url.search);
|
const searchParams = new URLSearchParams(url.search);
|
||||||
for (const object of objects) {
|
setFlattenedQueryParams(searchParams, 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]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
url.search = searchParams.toString();
|
url.search = searchParams.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
51
src/component/api/models/batch-request.ts
Normal file
51
src/component/api/models/batch-request.ts
Normal file
@ -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];
|
||||||
|
|
||||||
|
|
57
src/component/api/models/batch-response.ts
Normal file
57
src/component/api/models/batch-response.ts
Normal file
@ -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];
|
||||||
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
|||||||
|
export * from './batch-request'
|
||||||
|
export * from './batch-response'
|
||||||
export * from './broadcast-status'
|
export * from './broadcast-status'
|
||||||
export * from './clipboard-text'
|
export * from './clipboard-text'
|
||||||
export * from './control-status'
|
export * from './control-status'
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
// May contain unused imports in some cases
|
||||||
|
// @ts-ignore
|
||||||
import { MemberProfile } from './member-profile';
|
import { MemberProfile } from './member-profile';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
// May contain unused imports in some cases
|
||||||
|
// @ts-ignore
|
||||||
import { MemberProfile } from './member-profile';
|
import { MemberProfile } from './member-profile';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
// May contain unused imports in some cases
|
||||||
|
// @ts-ignore
|
||||||
import { MemberProfile } from './member-profile';
|
import { MemberProfile } from './member-profile';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -13,7 +13,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
// May contain unused imports in some cases
|
||||||
|
// @ts-ignore
|
||||||
import { MemberProfile } from './member-profile';
|
import { MemberProfile } from './member-profile';
|
||||||
|
// May contain unused imports in some cases
|
||||||
|
// @ts-ignore
|
||||||
import { SessionState } from './session-state';
|
import { SessionState } from './session-state';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -26,6 +26,12 @@ export interface Settings {
|
|||||||
* @memberof Settings
|
* @memberof Settings
|
||||||
*/
|
*/
|
||||||
'private_mode'?: boolean;
|
'private_mode'?: boolean;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {boolean}
|
||||||
|
* @memberof Settings
|
||||||
|
*/
|
||||||
|
'locked_controls'?: boolean;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
@ -44,5 +50,11 @@ export interface Settings {
|
|||||||
* @memberof Settings
|
* @memberof Settings
|
||||||
*/
|
*/
|
||||||
'merciful_reconnect'?: boolean;
|
'merciful_reconnect'?: boolean;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @type {{ [key: string]: any; }}
|
||||||
|
* @memberof Settings
|
||||||
|
*/
|
||||||
|
'plugins'?: { [key: string]: any; };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -550,7 +550,7 @@
|
|||||||
return this.api.members
|
return this.api.members
|
||||||
}
|
}
|
||||||
|
|
||||||
async uploadDrop({ x, y, files }: { x: number; y: number; files: Array<Blob> }) {
|
async uploadDrop({ x, y, files }: { x: number; y: number; files: Array<File> }) {
|
||||||
try {
|
try {
|
||||||
this.events.emit('upload.drop.started')
|
this.events.emit('upload.drop.started')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user