diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/.openapi-generator-ignore b/apps/server/src/infra/etherpad-client/etherpad-api-client/.openapi-generator-ignore new file mode 100644 index 00000000000..7e756049ca0 --- /dev/null +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/.openapi-generator-ignore @@ -0,0 +1,28 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md +.gitignore +.npmignore +git_push.sh +FILES +VERSION \ No newline at end of file diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/.openapi-generator/FILES b/apps/server/src/infra/etherpad-client/etherpad-api-client/.openapi-generator/FILES new file mode 100644 index 00000000000..ebe1865426c --- /dev/null +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/.openapi-generator/FILES @@ -0,0 +1,60 @@ +api.ts +api/author-api.ts +api/default-api.ts +api/group-api.ts +api/pad-api.ts +api/session-api.ts +base.ts +common.ts +configuration.ts +index.ts +models/create-author-using-get200-response-data.ts +models/create-author-using-get200-response.ts +models/create-diff-htmlusing-get200-response.ts +models/create-group-using-get200-response-data.ts +models/create-group-using-get200-response.ts +models/create-group-using-get400-response.ts +models/create-group-using-get401-response.ts +models/create-group-using-get500-response.ts +models/create-session-using-get200-response-data.ts +models/create-session-using-get200-response.ts +models/delete-group-using-get200-response.ts +models/get-author-name-using-get200-response-data-info.ts +models/get-author-name-using-get200-response-data.ts +models/get-author-name-using-get200-response.ts +models/get-chat-head-using-get200-response-data.ts +models/get-chat-head-using-get200-response.ts +models/get-chat-history-using-get200-response-data-messages-inner.ts +models/get-chat-history-using-get200-response-data.ts +models/get-chat-history-using-get200-response.ts +models/get-htmlusing-get200-response-data.ts +models/get-htmlusing-get200-response.ts +models/get-last-edited-using-get200-response-data.ts +models/get-last-edited-using-get200-response.ts +models/get-public-status-using-get200-response-data.ts +models/get-public-status-using-get200-response.ts +models/get-read-only-idusing-get200-response-data.ts +models/get-read-only-idusing-get200-response.ts +models/get-revisions-count-using-get200-response-data.ts +models/get-revisions-count-using-get200-response.ts +models/get-session-info-using-get200-response-data-info.ts +models/get-session-info-using-get200-response-data.ts +models/get-session-info-using-get200-response.ts +models/get-text-using-get200-response-data.ts +models/get-text-using-get200-response.ts +models/index.ts +models/list-all-groups-using-get200-response-data.ts +models/list-all-groups-using-get200-response.ts +models/list-authors-of-pad-using-get200-response-data.ts +models/list-authors-of-pad-using-get200-response.ts +models/list-pads-using-get200-response-data.ts +models/list-pads-using-get200-response.ts +models/list-sessions-of-group-using-get200-response-data.ts +models/list-sessions-of-group-using-get200-response.ts +models/message.ts +models/pad-users-count-using-get200-response-data.ts +models/pad-users-count-using-get200-response.ts +models/pad-users-using-get200-response-data.ts +models/pad-users-using-get200-response.ts +models/session-info.ts +models/user-info.ts diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/.openapi-generator/VERSION b/apps/server/src/infra/etherpad-client/etherpad-api-client/.openapi-generator/VERSION new file mode 100644 index 00000000000..93c8ddab9fe --- /dev/null +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/.openapi-generator/VERSION @@ -0,0 +1 @@ +7.6.0 diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/api/author-api.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/api/author-api.ts index 58cb162042f..af95d37c2d7 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/api/author-api.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/api/author-api.ts @@ -13,27 +13,28 @@ */ -import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; -import { Configuration } from '../configuration'; +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } 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'; +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { InlineResponse20015 } from '../models'; +import type { CreateAuthorUsingGET200Response } from '../models'; // @ts-ignore -import { InlineResponse2002 } from '../models'; +import type { CreateGroupUsingGET400Response } from '../models'; // @ts-ignore -import { InlineResponse2003 } from '../models'; +import type { CreateGroupUsingGET401Response } from '../models'; // @ts-ignore -import { InlineResponse2006 } from '../models'; +import type { CreateGroupUsingGET500Response } from '../models'; // @ts-ignore -import { InlineResponse400 } from '../models'; +import type { GetAuthorNameUsingGET200Response } from '../models'; // @ts-ignore -import { InlineResponse401 } from '../models'; +import type { ListPadsUsingGET200Response } from '../models'; // @ts-ignore -import { InlineResponse500 } from '../models'; +import type { ListSessionsOfGroupUsingGET200Response } from '../models'; /** * AuthorApi - axios parameter creator * @export @@ -48,7 +49,7 @@ export const AuthorApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createAuthorIfNotExistsForUsingGET: async (authorMapper?: string, name?: string, options: any = {}): Promise => { + createAuthorIfNotExistsForUsingGET: async (authorMapper?: string, name?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/createAuthorIfNotExistsFor`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -74,7 +75,7 @@ export const AuthorApiAxiosParamCreator = function (configuration?: Configuratio - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -91,7 +92,7 @@ export const AuthorApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createAuthorIfNotExistsForUsingPOST: async (authorMapper?: string, name?: string, options: any = {}): Promise => { + createAuthorIfNotExistsForUsingPOST: async (authorMapper?: string, name?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/createAuthorIfNotExistsFor`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -117,7 +118,7 @@ export const AuthorApiAxiosParamCreator = function (configuration?: Configuratio - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -133,7 +134,7 @@ export const AuthorApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createAuthorUsingGET: async (name?: string, options: any = {}): Promise => { + createAuthorUsingGET: async (name?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/createAuthor`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -155,7 +156,7 @@ export const AuthorApiAxiosParamCreator = function (configuration?: Configuratio - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -171,7 +172,7 @@ export const AuthorApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createAuthorUsingPOST: async (name?: string, options: any = {}): Promise => { + createAuthorUsingPOST: async (name?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/createAuthor`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -193,7 +194,7 @@ export const AuthorApiAxiosParamCreator = function (configuration?: Configuratio - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -209,7 +210,7 @@ export const AuthorApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAuthorNameUsingGET: async (authorID?: string, options: any = {}): Promise => { + getAuthorNameUsingGET: async (authorID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/getAuthorName`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -231,7 +232,7 @@ export const AuthorApiAxiosParamCreator = function (configuration?: Configuratio - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -247,7 +248,7 @@ export const AuthorApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAuthorNameUsingPOST: async (authorID?: string, options: any = {}): Promise => { + getAuthorNameUsingPOST: async (authorID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/getAuthorName`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -269,7 +270,7 @@ export const AuthorApiAxiosParamCreator = function (configuration?: Configuratio - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -285,7 +286,7 @@ export const AuthorApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listPadsOfAuthorUsingGET: async (authorID?: string, options: any = {}): Promise => { + listPadsOfAuthorUsingGET: async (authorID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/listPadsOfAuthor`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -307,7 +308,7 @@ export const AuthorApiAxiosParamCreator = function (configuration?: Configuratio - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -323,7 +324,7 @@ export const AuthorApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listPadsOfAuthorUsingPOST: async (authorID?: string, options: any = {}): Promise => { + listPadsOfAuthorUsingPOST: async (authorID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/listPadsOfAuthor`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -345,7 +346,7 @@ export const AuthorApiAxiosParamCreator = function (configuration?: Configuratio - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -361,7 +362,7 @@ export const AuthorApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listSessionsOfAuthorUsingGET: async (authorID?: string, options: any = {}): Promise => { + listSessionsOfAuthorUsingGET: async (authorID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/listSessionsOfAuthor`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -383,7 +384,7 @@ export const AuthorApiAxiosParamCreator = function (configuration?: Configuratio - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -399,7 +400,7 @@ export const AuthorApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listSessionsOfAuthorUsingPOST: async (authorID?: string, options: any = {}): Promise => { + listSessionsOfAuthorUsingPOST: async (authorID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/listSessionsOfAuthor`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -421,7 +422,7 @@ export const AuthorApiAxiosParamCreator = function (configuration?: Configuratio - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -448,9 +449,11 @@ export const AuthorApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createAuthorIfNotExistsForUsingGET(authorMapper?: string, name?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createAuthorIfNotExistsForUsingGET(authorMapper?: string, name?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createAuthorIfNotExistsForUsingGET(authorMapper, name, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthorApi.createAuthorIfNotExistsForUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -460,9 +463,11 @@ export const AuthorApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createAuthorIfNotExistsForUsingPOST(authorMapper?: string, name?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createAuthorIfNotExistsForUsingPOST(authorMapper?: string, name?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createAuthorIfNotExistsForUsingPOST(authorMapper, name, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthorApi.createAuthorIfNotExistsForUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -471,9 +476,11 @@ export const AuthorApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createAuthorUsingGET(name?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createAuthorUsingGET(name?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createAuthorUsingGET(name, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthorApi.createAuthorUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -482,9 +489,11 @@ export const AuthorApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createAuthorUsingPOST(name?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createAuthorUsingPOST(name?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createAuthorUsingPOST(name, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthorApi.createAuthorUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -493,9 +502,11 @@ export const AuthorApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAuthorNameUsingGET(authorID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getAuthorNameUsingGET(authorID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthorNameUsingGET(authorID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthorApi.getAuthorNameUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -504,9 +515,11 @@ export const AuthorApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAuthorNameUsingPOST(authorID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getAuthorNameUsingPOST(authorID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthorNameUsingPOST(authorID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthorApi.getAuthorNameUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -515,9 +528,11 @@ export const AuthorApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listPadsOfAuthorUsingGET(authorID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async listPadsOfAuthorUsingGET(authorID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listPadsOfAuthorUsingGET(authorID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthorApi.listPadsOfAuthorUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -526,9 +541,11 @@ export const AuthorApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listPadsOfAuthorUsingPOST(authorID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async listPadsOfAuthorUsingPOST(authorID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listPadsOfAuthorUsingPOST(authorID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthorApi.listPadsOfAuthorUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -537,9 +554,11 @@ export const AuthorApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listSessionsOfAuthorUsingGET(authorID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async listSessionsOfAuthorUsingGET(authorID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listSessionsOfAuthorUsingGET(authorID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthorApi.listSessionsOfAuthorUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -548,9 +567,11 @@ export const AuthorApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listSessionsOfAuthorUsingPOST(authorID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async listSessionsOfAuthorUsingPOST(authorID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listSessionsOfAuthorUsingPOST(authorID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['AuthorApi.listSessionsOfAuthorUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; @@ -570,7 +591,7 @@ export const AuthorApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createAuthorIfNotExistsForUsingGET(authorMapper?: string, name?: string, options?: any): AxiosPromise { + createAuthorIfNotExistsForUsingGET(authorMapper?: string, name?: string, options?: any): AxiosPromise { return localVarFp.createAuthorIfNotExistsForUsingGET(authorMapper, name, options).then((request) => request(axios, basePath)); }, /** @@ -581,7 +602,7 @@ export const AuthorApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createAuthorIfNotExistsForUsingPOST(authorMapper?: string, name?: string, options?: any): AxiosPromise { + createAuthorIfNotExistsForUsingPOST(authorMapper?: string, name?: string, options?: any): AxiosPromise { return localVarFp.createAuthorIfNotExistsForUsingPOST(authorMapper, name, options).then((request) => request(axios, basePath)); }, /** @@ -591,7 +612,7 @@ export const AuthorApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createAuthorUsingGET(name?: string, options?: any): AxiosPromise { + createAuthorUsingGET(name?: string, options?: any): AxiosPromise { return localVarFp.createAuthorUsingGET(name, options).then((request) => request(axios, basePath)); }, /** @@ -601,7 +622,7 @@ export const AuthorApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createAuthorUsingPOST(name?: string, options?: any): AxiosPromise { + createAuthorUsingPOST(name?: string, options?: any): AxiosPromise { return localVarFp.createAuthorUsingPOST(name, options).then((request) => request(axios, basePath)); }, /** @@ -611,7 +632,7 @@ export const AuthorApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAuthorNameUsingGET(authorID?: string, options?: any): AxiosPromise { + getAuthorNameUsingGET(authorID?: string, options?: any): AxiosPromise { return localVarFp.getAuthorNameUsingGET(authorID, options).then((request) => request(axios, basePath)); }, /** @@ -621,7 +642,7 @@ export const AuthorApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAuthorNameUsingPOST(authorID?: string, options?: any): AxiosPromise { + getAuthorNameUsingPOST(authorID?: string, options?: any): AxiosPromise { return localVarFp.getAuthorNameUsingPOST(authorID, options).then((request) => request(axios, basePath)); }, /** @@ -631,7 +652,7 @@ export const AuthorApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listPadsOfAuthorUsingGET(authorID?: string, options?: any): AxiosPromise { + listPadsOfAuthorUsingGET(authorID?: string, options?: any): AxiosPromise { return localVarFp.listPadsOfAuthorUsingGET(authorID, options).then((request) => request(axios, basePath)); }, /** @@ -641,7 +662,7 @@ export const AuthorApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listPadsOfAuthorUsingPOST(authorID?: string, options?: any): AxiosPromise { + listPadsOfAuthorUsingPOST(authorID?: string, options?: any): AxiosPromise { return localVarFp.listPadsOfAuthorUsingPOST(authorID, options).then((request) => request(axios, basePath)); }, /** @@ -651,7 +672,7 @@ export const AuthorApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listSessionsOfAuthorUsingGET(authorID?: string, options?: any): AxiosPromise { + listSessionsOfAuthorUsingGET(authorID?: string, options?: any): AxiosPromise { return localVarFp.listSessionsOfAuthorUsingGET(authorID, options).then((request) => request(axios, basePath)); }, /** @@ -661,7 +682,7 @@ export const AuthorApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listSessionsOfAuthorUsingPOST(authorID?: string, options?: any): AxiosPromise { + listSessionsOfAuthorUsingPOST(authorID?: string, options?: any): AxiosPromise { return localVarFp.listSessionsOfAuthorUsingPOST(authorID, options).then((request) => request(axios, basePath)); }, }; @@ -682,7 +703,7 @@ export interface AuthorApiInterface { * @throws {RequiredError} * @memberof AuthorApiInterface */ - createAuthorIfNotExistsForUsingGET(authorMapper?: string, name?: string, options?: any): AxiosPromise; + createAuthorIfNotExistsForUsingGET(authorMapper?: string, name?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -693,7 +714,7 @@ export interface AuthorApiInterface { * @throws {RequiredError} * @memberof AuthorApiInterface */ - createAuthorIfNotExistsForUsingPOST(authorMapper?: string, name?: string, options?: any): AxiosPromise; + createAuthorIfNotExistsForUsingPOST(authorMapper?: string, name?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -703,7 +724,7 @@ export interface AuthorApiInterface { * @throws {RequiredError} * @memberof AuthorApiInterface */ - createAuthorUsingGET(name?: string, options?: any): AxiosPromise; + createAuthorUsingGET(name?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -713,7 +734,7 @@ export interface AuthorApiInterface { * @throws {RequiredError} * @memberof AuthorApiInterface */ - createAuthorUsingPOST(name?: string, options?: any): AxiosPromise; + createAuthorUsingPOST(name?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -723,7 +744,7 @@ export interface AuthorApiInterface { * @throws {RequiredError} * @memberof AuthorApiInterface */ - getAuthorNameUsingGET(authorID?: string, options?: any): AxiosPromise; + getAuthorNameUsingGET(authorID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -733,7 +754,7 @@ export interface AuthorApiInterface { * @throws {RequiredError} * @memberof AuthorApiInterface */ - getAuthorNameUsingPOST(authorID?: string, options?: any): AxiosPromise; + getAuthorNameUsingPOST(authorID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -743,7 +764,7 @@ export interface AuthorApiInterface { * @throws {RequiredError} * @memberof AuthorApiInterface */ - listPadsOfAuthorUsingGET(authorID?: string, options?: any): AxiosPromise; + listPadsOfAuthorUsingGET(authorID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -753,7 +774,7 @@ export interface AuthorApiInterface { * @throws {RequiredError} * @memberof AuthorApiInterface */ - listPadsOfAuthorUsingPOST(authorID?: string, options?: any): AxiosPromise; + listPadsOfAuthorUsingPOST(authorID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -763,7 +784,7 @@ export interface AuthorApiInterface { * @throws {RequiredError} * @memberof AuthorApiInterface */ - listSessionsOfAuthorUsingGET(authorID?: string, options?: any): AxiosPromise; + listSessionsOfAuthorUsingGET(authorID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -773,7 +794,7 @@ export interface AuthorApiInterface { * @throws {RequiredError} * @memberof AuthorApiInterface */ - listSessionsOfAuthorUsingPOST(authorID?: string, options?: any): AxiosPromise; + listSessionsOfAuthorUsingPOST(authorID?: string, options?: RawAxiosRequestConfig): AxiosPromise; } @@ -793,7 +814,7 @@ export class AuthorApi extends BaseAPI implements AuthorApiInterface { * @throws {RequiredError} * @memberof AuthorApi */ - public createAuthorIfNotExistsForUsingGET(authorMapper?: string, name?: string, options?: any) { + public createAuthorIfNotExistsForUsingGET(authorMapper?: string, name?: string, options?: RawAxiosRequestConfig) { return AuthorApiFp(this.configuration).createAuthorIfNotExistsForUsingGET(authorMapper, name, options).then((request) => request(this.axios, this.basePath)); } @@ -806,7 +827,7 @@ export class AuthorApi extends BaseAPI implements AuthorApiInterface { * @throws {RequiredError} * @memberof AuthorApi */ - public createAuthorIfNotExistsForUsingPOST(authorMapper?: string, name?: string, options?: any) { + public createAuthorIfNotExistsForUsingPOST(authorMapper?: string, name?: string, options?: RawAxiosRequestConfig) { return AuthorApiFp(this.configuration).createAuthorIfNotExistsForUsingPOST(authorMapper, name, options).then((request) => request(this.axios, this.basePath)); } @@ -818,7 +839,7 @@ export class AuthorApi extends BaseAPI implements AuthorApiInterface { * @throws {RequiredError} * @memberof AuthorApi */ - public createAuthorUsingGET(name?: string, options?: any) { + public createAuthorUsingGET(name?: string, options?: RawAxiosRequestConfig) { return AuthorApiFp(this.configuration).createAuthorUsingGET(name, options).then((request) => request(this.axios, this.basePath)); } @@ -830,7 +851,7 @@ export class AuthorApi extends BaseAPI implements AuthorApiInterface { * @throws {RequiredError} * @memberof AuthorApi */ - public createAuthorUsingPOST(name?: string, options?: any) { + public createAuthorUsingPOST(name?: string, options?: RawAxiosRequestConfig) { return AuthorApiFp(this.configuration).createAuthorUsingPOST(name, options).then((request) => request(this.axios, this.basePath)); } @@ -842,7 +863,7 @@ export class AuthorApi extends BaseAPI implements AuthorApiInterface { * @throws {RequiredError} * @memberof AuthorApi */ - public getAuthorNameUsingGET(authorID?: string, options?: any) { + public getAuthorNameUsingGET(authorID?: string, options?: RawAxiosRequestConfig) { return AuthorApiFp(this.configuration).getAuthorNameUsingGET(authorID, options).then((request) => request(this.axios, this.basePath)); } @@ -854,7 +875,7 @@ export class AuthorApi extends BaseAPI implements AuthorApiInterface { * @throws {RequiredError} * @memberof AuthorApi */ - public getAuthorNameUsingPOST(authorID?: string, options?: any) { + public getAuthorNameUsingPOST(authorID?: string, options?: RawAxiosRequestConfig) { return AuthorApiFp(this.configuration).getAuthorNameUsingPOST(authorID, options).then((request) => request(this.axios, this.basePath)); } @@ -866,7 +887,7 @@ export class AuthorApi extends BaseAPI implements AuthorApiInterface { * @throws {RequiredError} * @memberof AuthorApi */ - public listPadsOfAuthorUsingGET(authorID?: string, options?: any) { + public listPadsOfAuthorUsingGET(authorID?: string, options?: RawAxiosRequestConfig) { return AuthorApiFp(this.configuration).listPadsOfAuthorUsingGET(authorID, options).then((request) => request(this.axios, this.basePath)); } @@ -878,7 +899,7 @@ export class AuthorApi extends BaseAPI implements AuthorApiInterface { * @throws {RequiredError} * @memberof AuthorApi */ - public listPadsOfAuthorUsingPOST(authorID?: string, options?: any) { + public listPadsOfAuthorUsingPOST(authorID?: string, options?: RawAxiosRequestConfig) { return AuthorApiFp(this.configuration).listPadsOfAuthorUsingPOST(authorID, options).then((request) => request(this.axios, this.basePath)); } @@ -890,7 +911,7 @@ export class AuthorApi extends BaseAPI implements AuthorApiInterface { * @throws {RequiredError} * @memberof AuthorApi */ - public listSessionsOfAuthorUsingGET(authorID?: string, options?: any) { + public listSessionsOfAuthorUsingGET(authorID?: string, options?: RawAxiosRequestConfig) { return AuthorApiFp(this.configuration).listSessionsOfAuthorUsingGET(authorID, options).then((request) => request(this.axios, this.basePath)); } @@ -902,7 +923,8 @@ export class AuthorApi extends BaseAPI implements AuthorApiInterface { * @throws {RequiredError} * @memberof AuthorApi */ - public listSessionsOfAuthorUsingPOST(authorID?: string, options?: any) { + public listSessionsOfAuthorUsingPOST(authorID?: string, options?: RawAxiosRequestConfig) { return AuthorApiFp(this.configuration).listSessionsOfAuthorUsingPOST(authorID, options).then((request) => request(this.axios, this.basePath)); } } + diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/api/default-api.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/api/default-api.ts index 9c9e7559233..dfb2b51a12a 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/api/default-api.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/api/default-api.ts @@ -13,21 +13,22 @@ */ -import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; -import { Configuration } from '../configuration'; +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } 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'; +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { InlineResponse2001 } from '../models'; +import type { CreateGroupUsingGET400Response } from '../models'; // @ts-ignore -import { InlineResponse400 } from '../models'; +import type { CreateGroupUsingGET401Response } from '../models'; // @ts-ignore -import { InlineResponse401 } from '../models'; +import type { CreateGroupUsingGET500Response } from '../models'; // @ts-ignore -import { InlineResponse500 } from '../models'; +import type { DeleteGroupUsingGET200Response } from '../models'; /** * DefaultApi - axios parameter creator * @export @@ -42,7 +43,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - appendTextUsingGET: async (padID?: string, text?: string, authorId?: string, options: any = {}): Promise => { + appendTextUsingGET: async (padID?: string, text?: string, authorId?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/appendText`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -72,7 +73,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -89,7 +90,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - appendTextUsingPOST: async (padID?: string, text?: string, authorId?: string, options: any = {}): Promise => { + appendTextUsingPOST: async (padID?: string, text?: string, authorId?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/appendText`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -119,7 +120,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -136,7 +137,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - copyPadUsingGET: async (sourceID?: string, destinationID?: string, force?: string, options: any = {}): Promise => { + copyPadUsingGET: async (sourceID?: string, destinationID?: string, force?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/copyPad`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -166,7 +167,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -183,7 +184,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - copyPadUsingPOST: async (sourceID?: string, destinationID?: string, force?: string, options: any = {}): Promise => { + copyPadUsingPOST: async (sourceID?: string, destinationID?: string, force?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/copyPad`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -213,7 +214,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -231,7 +232,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - copyPadWithoutHistoryUsingGET: async (sourceID?: string, destinationID?: string, force?: string, authorId?: string, options: any = {}): Promise => { + copyPadWithoutHistoryUsingGET: async (sourceID?: string, destinationID?: string, force?: string, authorId?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/copyPadWithoutHistory`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -265,7 +266,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -283,7 +284,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - copyPadWithoutHistoryUsingPOST: async (sourceID?: string, destinationID?: string, force?: string, authorId?: string, options: any = {}): Promise => { + copyPadWithoutHistoryUsingPOST: async (sourceID?: string, destinationID?: string, force?: string, authorId?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/copyPadWithoutHistory`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -317,7 +318,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -332,7 +333,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAttributePoolUsingGET: async (padID?: string, options: any = {}): Promise => { + getAttributePoolUsingGET: async (padID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/getAttributePool`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -354,7 +355,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -369,7 +370,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAttributePoolUsingPOST: async (padID?: string, options: any = {}): Promise => { + getAttributePoolUsingPOST: async (padID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/getAttributePool`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -391,7 +392,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -406,7 +407,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getPadIDUsingGET: async (roID?: string, options: any = {}): Promise => { + getPadIDUsingGET: async (roID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/getPadID`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -428,7 +429,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -443,7 +444,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getPadIDUsingPOST: async (roID?: string, options: any = {}): Promise => { + getPadIDUsingPOST: async (roID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/getPadID`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -465,7 +466,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -481,7 +482,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getRevisionChangesetUsingGET: async (padID?: string, rev?: string, options: any = {}): Promise => { + getRevisionChangesetUsingGET: async (padID?: string, rev?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/getRevisionChangeset`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -507,7 +508,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -523,7 +524,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getRevisionChangesetUsingPOST: async (padID?: string, rev?: string, options: any = {}): Promise => { + getRevisionChangesetUsingPOST: async (padID?: string, rev?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/getRevisionChangeset`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -549,7 +550,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -564,7 +565,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getSavedRevisionsCountUsingGET: async (padID?: string, options: any = {}): Promise => { + getSavedRevisionsCountUsingGET: async (padID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/getSavedRevisionsCount`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -586,7 +587,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -601,7 +602,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getSavedRevisionsCountUsingPOST: async (padID?: string, options: any = {}): Promise => { + getSavedRevisionsCountUsingPOST: async (padID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/getSavedRevisionsCount`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -623,7 +624,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -637,7 +638,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getStatsUsingGET: async (options: any = {}): Promise => { + getStatsUsingGET: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/getStats`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -655,7 +656,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -669,7 +670,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getStatsUsingPOST: async (options: any = {}): Promise => { + getStatsUsingPOST: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/getStats`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -687,7 +688,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -702,7 +703,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listSavedRevisionsUsingGET: async (padID?: string, options: any = {}): Promise => { + listSavedRevisionsUsingGET: async (padID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/listSavedRevisions`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -724,7 +725,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -739,7 +740,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listSavedRevisionsUsingPOST: async (padID?: string, options: any = {}): Promise => { + listSavedRevisionsUsingPOST: async (padID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/listSavedRevisions`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -761,7 +762,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -778,7 +779,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - movePadUsingGET: async (sourceID?: string, destinationID?: string, force?: string, options: any = {}): Promise => { + movePadUsingGET: async (sourceID?: string, destinationID?: string, force?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/movePad`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -808,7 +809,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -825,7 +826,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - movePadUsingPOST: async (sourceID?: string, destinationID?: string, force?: string, options: any = {}): Promise => { + movePadUsingPOST: async (sourceID?: string, destinationID?: string, force?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/movePad`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -855,7 +856,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -872,7 +873,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - restoreRevisionUsingGET: async (padID?: string, rev?: string, authorId?: string, options: any = {}): Promise => { + restoreRevisionUsingGET: async (padID?: string, rev?: string, authorId?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/restoreRevision`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -902,7 +903,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -919,7 +920,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - restoreRevisionUsingPOST: async (padID?: string, rev?: string, authorId?: string, options: any = {}): Promise => { + restoreRevisionUsingPOST: async (padID?: string, rev?: string, authorId?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/restoreRevision`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -949,7 +950,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -965,7 +966,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - saveRevisionUsingGET: async (padID?: string, rev?: string, options: any = {}): Promise => { + saveRevisionUsingGET: async (padID?: string, rev?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/saveRevision`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -991,7 +992,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1007,7 +1008,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - saveRevisionUsingPOST: async (padID?: string, rev?: string, options: any = {}): Promise => { + saveRevisionUsingPOST: async (padID?: string, rev?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/saveRevision`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -1033,7 +1034,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1060,9 +1061,11 @@ export const DefaultApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async appendTextUsingGET(padID?: string, text?: string, authorId?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async appendTextUsingGET(padID?: string, text?: string, authorId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.appendTextUsingGET(padID, text, authorId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DefaultApi.appendTextUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -1072,9 +1075,11 @@ export const DefaultApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async appendTextUsingPOST(padID?: string, text?: string, authorId?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async appendTextUsingPOST(padID?: string, text?: string, authorId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.appendTextUsingPOST(padID, text, authorId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DefaultApi.appendTextUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -1084,9 +1089,11 @@ export const DefaultApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async copyPadUsingGET(sourceID?: string, destinationID?: string, force?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async copyPadUsingGET(sourceID?: string, destinationID?: string, force?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.copyPadUsingGET(sourceID, destinationID, force, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DefaultApi.copyPadUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -1096,9 +1103,11 @@ export const DefaultApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async copyPadUsingPOST(sourceID?: string, destinationID?: string, force?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async copyPadUsingPOST(sourceID?: string, destinationID?: string, force?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.copyPadUsingPOST(sourceID, destinationID, force, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DefaultApi.copyPadUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -1109,9 +1118,11 @@ export const DefaultApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async copyPadWithoutHistoryUsingGET(sourceID?: string, destinationID?: string, force?: string, authorId?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async copyPadWithoutHistoryUsingGET(sourceID?: string, destinationID?: string, force?: string, authorId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.copyPadWithoutHistoryUsingGET(sourceID, destinationID, force, authorId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DefaultApi.copyPadWithoutHistoryUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -1122,9 +1133,11 @@ export const DefaultApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async copyPadWithoutHistoryUsingPOST(sourceID?: string, destinationID?: string, force?: string, authorId?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async copyPadWithoutHistoryUsingPOST(sourceID?: string, destinationID?: string, force?: string, authorId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.copyPadWithoutHistoryUsingPOST(sourceID, destinationID, force, authorId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DefaultApi.copyPadWithoutHistoryUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -1132,9 +1145,11 @@ export const DefaultApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAttributePoolUsingGET(padID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getAttributePoolUsingGET(padID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAttributePoolUsingGET(padID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DefaultApi.getAttributePoolUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -1142,9 +1157,11 @@ export const DefaultApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getAttributePoolUsingPOST(padID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getAttributePoolUsingPOST(padID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getAttributePoolUsingPOST(padID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DefaultApi.getAttributePoolUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -1152,9 +1169,11 @@ export const DefaultApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getPadIDUsingGET(roID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getPadIDUsingGET(roID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPadIDUsingGET(roID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DefaultApi.getPadIDUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -1162,9 +1181,11 @@ export const DefaultApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getPadIDUsingPOST(roID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getPadIDUsingPOST(roID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPadIDUsingPOST(roID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DefaultApi.getPadIDUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -1173,9 +1194,11 @@ export const DefaultApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getRevisionChangesetUsingGET(padID?: string, rev?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getRevisionChangesetUsingGET(padID?: string, rev?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getRevisionChangesetUsingGET(padID, rev, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DefaultApi.getRevisionChangesetUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -1184,9 +1207,11 @@ export const DefaultApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getRevisionChangesetUsingPOST(padID?: string, rev?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getRevisionChangesetUsingPOST(padID?: string, rev?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getRevisionChangesetUsingPOST(padID, rev, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DefaultApi.getRevisionChangesetUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -1194,9 +1219,11 @@ export const DefaultApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getSavedRevisionsCountUsingGET(padID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getSavedRevisionsCountUsingGET(padID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getSavedRevisionsCountUsingGET(padID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DefaultApi.getSavedRevisionsCountUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -1204,27 +1231,33 @@ export const DefaultApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getSavedRevisionsCountUsingPOST(padID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getSavedRevisionsCountUsingPOST(padID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getSavedRevisionsCountUsingPOST(padID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DefaultApi.getSavedRevisionsCountUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getStatsUsingGET(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getStatsUsingGET(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getStatsUsingGET(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DefaultApi.getStatsUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getStatsUsingPOST(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getStatsUsingPOST(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getStatsUsingPOST(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DefaultApi.getStatsUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -1232,9 +1265,11 @@ export const DefaultApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listSavedRevisionsUsingGET(padID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async listSavedRevisionsUsingGET(padID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listSavedRevisionsUsingGET(padID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DefaultApi.listSavedRevisionsUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -1242,9 +1277,11 @@ export const DefaultApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listSavedRevisionsUsingPOST(padID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async listSavedRevisionsUsingPOST(padID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listSavedRevisionsUsingPOST(padID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DefaultApi.listSavedRevisionsUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -1254,9 +1291,11 @@ export const DefaultApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async movePadUsingGET(sourceID?: string, destinationID?: string, force?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async movePadUsingGET(sourceID?: string, destinationID?: string, force?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.movePadUsingGET(sourceID, destinationID, force, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DefaultApi.movePadUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -1266,9 +1305,11 @@ export const DefaultApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async movePadUsingPOST(sourceID?: string, destinationID?: string, force?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async movePadUsingPOST(sourceID?: string, destinationID?: string, force?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.movePadUsingPOST(sourceID, destinationID, force, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DefaultApi.movePadUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -1278,9 +1319,11 @@ export const DefaultApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async restoreRevisionUsingGET(padID?: string, rev?: string, authorId?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async restoreRevisionUsingGET(padID?: string, rev?: string, authorId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.restoreRevisionUsingGET(padID, rev, authorId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DefaultApi.restoreRevisionUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -1290,9 +1333,11 @@ export const DefaultApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async restoreRevisionUsingPOST(padID?: string, rev?: string, authorId?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async restoreRevisionUsingPOST(padID?: string, rev?: string, authorId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.restoreRevisionUsingPOST(padID, rev, authorId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DefaultApi.restoreRevisionUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -1301,9 +1346,11 @@ export const DefaultApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async saveRevisionUsingGET(padID?: string, rev?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async saveRevisionUsingGET(padID?: string, rev?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.saveRevisionUsingGET(padID, rev, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DefaultApi.saveRevisionUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -1312,9 +1359,11 @@ export const DefaultApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async saveRevisionUsingPOST(padID?: string, rev?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async saveRevisionUsingPOST(padID?: string, rev?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.saveRevisionUsingPOST(padID, rev, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DefaultApi.saveRevisionUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; @@ -1334,7 +1383,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - appendTextUsingGET(padID?: string, text?: string, authorId?: string, options?: any): AxiosPromise { + appendTextUsingGET(padID?: string, text?: string, authorId?: string, options?: any): AxiosPromise { return localVarFp.appendTextUsingGET(padID, text, authorId, options).then((request) => request(axios, basePath)); }, /** @@ -1345,7 +1394,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - appendTextUsingPOST(padID?: string, text?: string, authorId?: string, options?: any): AxiosPromise { + appendTextUsingPOST(padID?: string, text?: string, authorId?: string, options?: any): AxiosPromise { return localVarFp.appendTextUsingPOST(padID, text, authorId, options).then((request) => request(axios, basePath)); }, /** @@ -1356,7 +1405,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - copyPadUsingGET(sourceID?: string, destinationID?: string, force?: string, options?: any): AxiosPromise { + copyPadUsingGET(sourceID?: string, destinationID?: string, force?: string, options?: any): AxiosPromise { return localVarFp.copyPadUsingGET(sourceID, destinationID, force, options).then((request) => request(axios, basePath)); }, /** @@ -1367,7 +1416,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - copyPadUsingPOST(sourceID?: string, destinationID?: string, force?: string, options?: any): AxiosPromise { + copyPadUsingPOST(sourceID?: string, destinationID?: string, force?: string, options?: any): AxiosPromise { return localVarFp.copyPadUsingPOST(sourceID, destinationID, force, options).then((request) => request(axios, basePath)); }, /** @@ -1379,7 +1428,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - copyPadWithoutHistoryUsingGET(sourceID?: string, destinationID?: string, force?: string, authorId?: string, options?: any): AxiosPromise { + copyPadWithoutHistoryUsingGET(sourceID?: string, destinationID?: string, force?: string, authorId?: string, options?: any): AxiosPromise { return localVarFp.copyPadWithoutHistoryUsingGET(sourceID, destinationID, force, authorId, options).then((request) => request(axios, basePath)); }, /** @@ -1391,7 +1440,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - copyPadWithoutHistoryUsingPOST(sourceID?: string, destinationID?: string, force?: string, authorId?: string, options?: any): AxiosPromise { + copyPadWithoutHistoryUsingPOST(sourceID?: string, destinationID?: string, force?: string, authorId?: string, options?: any): AxiosPromise { return localVarFp.copyPadWithoutHistoryUsingPOST(sourceID, destinationID, force, authorId, options).then((request) => request(axios, basePath)); }, /** @@ -1400,7 +1449,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAttributePoolUsingGET(padID?: string, options?: any): AxiosPromise { + getAttributePoolUsingGET(padID?: string, options?: any): AxiosPromise { return localVarFp.getAttributePoolUsingGET(padID, options).then((request) => request(axios, basePath)); }, /** @@ -1409,7 +1458,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getAttributePoolUsingPOST(padID?: string, options?: any): AxiosPromise { + getAttributePoolUsingPOST(padID?: string, options?: any): AxiosPromise { return localVarFp.getAttributePoolUsingPOST(padID, options).then((request) => request(axios, basePath)); }, /** @@ -1418,7 +1467,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getPadIDUsingGET(roID?: string, options?: any): AxiosPromise { + getPadIDUsingGET(roID?: string, options?: any): AxiosPromise { return localVarFp.getPadIDUsingGET(roID, options).then((request) => request(axios, basePath)); }, /** @@ -1427,7 +1476,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getPadIDUsingPOST(roID?: string, options?: any): AxiosPromise { + getPadIDUsingPOST(roID?: string, options?: any): AxiosPromise { return localVarFp.getPadIDUsingPOST(roID, options).then((request) => request(axios, basePath)); }, /** @@ -1437,7 +1486,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getRevisionChangesetUsingGET(padID?: string, rev?: string, options?: any): AxiosPromise { + getRevisionChangesetUsingGET(padID?: string, rev?: string, options?: any): AxiosPromise { return localVarFp.getRevisionChangesetUsingGET(padID, rev, options).then((request) => request(axios, basePath)); }, /** @@ -1447,7 +1496,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getRevisionChangesetUsingPOST(padID?: string, rev?: string, options?: any): AxiosPromise { + getRevisionChangesetUsingPOST(padID?: string, rev?: string, options?: any): AxiosPromise { return localVarFp.getRevisionChangesetUsingPOST(padID, rev, options).then((request) => request(axios, basePath)); }, /** @@ -1456,7 +1505,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getSavedRevisionsCountUsingGET(padID?: string, options?: any): AxiosPromise { + getSavedRevisionsCountUsingGET(padID?: string, options?: any): AxiosPromise { return localVarFp.getSavedRevisionsCountUsingGET(padID, options).then((request) => request(axios, basePath)); }, /** @@ -1465,7 +1514,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getSavedRevisionsCountUsingPOST(padID?: string, options?: any): AxiosPromise { + getSavedRevisionsCountUsingPOST(padID?: string, options?: any): AxiosPromise { return localVarFp.getSavedRevisionsCountUsingPOST(padID, options).then((request) => request(axios, basePath)); }, /** @@ -1473,7 +1522,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getStatsUsingGET(options?: any): AxiosPromise { + getStatsUsingGET(options?: any): AxiosPromise { return localVarFp.getStatsUsingGET(options).then((request) => request(axios, basePath)); }, /** @@ -1481,7 +1530,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getStatsUsingPOST(options?: any): AxiosPromise { + getStatsUsingPOST(options?: any): AxiosPromise { return localVarFp.getStatsUsingPOST(options).then((request) => request(axios, basePath)); }, /** @@ -1490,7 +1539,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listSavedRevisionsUsingGET(padID?: string, options?: any): AxiosPromise { + listSavedRevisionsUsingGET(padID?: string, options?: any): AxiosPromise { return localVarFp.listSavedRevisionsUsingGET(padID, options).then((request) => request(axios, basePath)); }, /** @@ -1499,7 +1548,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listSavedRevisionsUsingPOST(padID?: string, options?: any): AxiosPromise { + listSavedRevisionsUsingPOST(padID?: string, options?: any): AxiosPromise { return localVarFp.listSavedRevisionsUsingPOST(padID, options).then((request) => request(axios, basePath)); }, /** @@ -1510,7 +1559,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - movePadUsingGET(sourceID?: string, destinationID?: string, force?: string, options?: any): AxiosPromise { + movePadUsingGET(sourceID?: string, destinationID?: string, force?: string, options?: any): AxiosPromise { return localVarFp.movePadUsingGET(sourceID, destinationID, force, options).then((request) => request(axios, basePath)); }, /** @@ -1521,7 +1570,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - movePadUsingPOST(sourceID?: string, destinationID?: string, force?: string, options?: any): AxiosPromise { + movePadUsingPOST(sourceID?: string, destinationID?: string, force?: string, options?: any): AxiosPromise { return localVarFp.movePadUsingPOST(sourceID, destinationID, force, options).then((request) => request(axios, basePath)); }, /** @@ -1532,7 +1581,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - restoreRevisionUsingGET(padID?: string, rev?: string, authorId?: string, options?: any): AxiosPromise { + restoreRevisionUsingGET(padID?: string, rev?: string, authorId?: string, options?: any): AxiosPromise { return localVarFp.restoreRevisionUsingGET(padID, rev, authorId, options).then((request) => request(axios, basePath)); }, /** @@ -1543,7 +1592,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - restoreRevisionUsingPOST(padID?: string, rev?: string, authorId?: string, options?: any): AxiosPromise { + restoreRevisionUsingPOST(padID?: string, rev?: string, authorId?: string, options?: any): AxiosPromise { return localVarFp.restoreRevisionUsingPOST(padID, rev, authorId, options).then((request) => request(axios, basePath)); }, /** @@ -1553,7 +1602,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - saveRevisionUsingGET(padID?: string, rev?: string, options?: any): AxiosPromise { + saveRevisionUsingGET(padID?: string, rev?: string, options?: any): AxiosPromise { return localVarFp.saveRevisionUsingGET(padID, rev, options).then((request) => request(axios, basePath)); }, /** @@ -1563,7 +1612,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - saveRevisionUsingPOST(padID?: string, rev?: string, options?: any): AxiosPromise { + saveRevisionUsingPOST(padID?: string, rev?: string, options?: any): AxiosPromise { return localVarFp.saveRevisionUsingPOST(padID, rev, options).then((request) => request(axios, basePath)); }, }; @@ -1584,7 +1633,7 @@ export interface DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApiInterface */ - appendTextUsingGET(padID?: string, text?: string, authorId?: string, options?: any): AxiosPromise; + appendTextUsingGET(padID?: string, text?: string, authorId?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -1595,7 +1644,7 @@ export interface DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApiInterface */ - appendTextUsingPOST(padID?: string, text?: string, authorId?: string, options?: any): AxiosPromise; + appendTextUsingPOST(padID?: string, text?: string, authorId?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -1606,7 +1655,7 @@ export interface DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApiInterface */ - copyPadUsingGET(sourceID?: string, destinationID?: string, force?: string, options?: any): AxiosPromise; + copyPadUsingGET(sourceID?: string, destinationID?: string, force?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -1617,7 +1666,7 @@ export interface DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApiInterface */ - copyPadUsingPOST(sourceID?: string, destinationID?: string, force?: string, options?: any): AxiosPromise; + copyPadUsingPOST(sourceID?: string, destinationID?: string, force?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -1629,7 +1678,7 @@ export interface DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApiInterface */ - copyPadWithoutHistoryUsingGET(sourceID?: string, destinationID?: string, force?: string, authorId?: string, options?: any): AxiosPromise; + copyPadWithoutHistoryUsingGET(sourceID?: string, destinationID?: string, force?: string, authorId?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -1641,7 +1690,7 @@ export interface DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApiInterface */ - copyPadWithoutHistoryUsingPOST(sourceID?: string, destinationID?: string, force?: string, authorId?: string, options?: any): AxiosPromise; + copyPadWithoutHistoryUsingPOST(sourceID?: string, destinationID?: string, force?: string, authorId?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -1650,7 +1699,7 @@ export interface DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApiInterface */ - getAttributePoolUsingGET(padID?: string, options?: any): AxiosPromise; + getAttributePoolUsingGET(padID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -1659,7 +1708,7 @@ export interface DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApiInterface */ - getAttributePoolUsingPOST(padID?: string, options?: any): AxiosPromise; + getAttributePoolUsingPOST(padID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -1668,7 +1717,7 @@ export interface DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApiInterface */ - getPadIDUsingGET(roID?: string, options?: any): AxiosPromise; + getPadIDUsingGET(roID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -1677,7 +1726,7 @@ export interface DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApiInterface */ - getPadIDUsingPOST(roID?: string, options?: any): AxiosPromise; + getPadIDUsingPOST(roID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -1687,7 +1736,7 @@ export interface DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApiInterface */ - getRevisionChangesetUsingGET(padID?: string, rev?: string, options?: any): AxiosPromise; + getRevisionChangesetUsingGET(padID?: string, rev?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -1697,7 +1746,7 @@ export interface DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApiInterface */ - getRevisionChangesetUsingPOST(padID?: string, rev?: string, options?: any): AxiosPromise; + getRevisionChangesetUsingPOST(padID?: string, rev?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -1706,7 +1755,7 @@ export interface DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApiInterface */ - getSavedRevisionsCountUsingGET(padID?: string, options?: any): AxiosPromise; + getSavedRevisionsCountUsingGET(padID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -1715,7 +1764,7 @@ export interface DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApiInterface */ - getSavedRevisionsCountUsingPOST(padID?: string, options?: any): AxiosPromise; + getSavedRevisionsCountUsingPOST(padID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -1723,7 +1772,7 @@ export interface DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApiInterface */ - getStatsUsingGET(options?: any): AxiosPromise; + getStatsUsingGET(options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -1731,7 +1780,7 @@ export interface DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApiInterface */ - getStatsUsingPOST(options?: any): AxiosPromise; + getStatsUsingPOST(options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -1740,7 +1789,7 @@ export interface DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApiInterface */ - listSavedRevisionsUsingGET(padID?: string, options?: any): AxiosPromise; + listSavedRevisionsUsingGET(padID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -1749,7 +1798,7 @@ export interface DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApiInterface */ - listSavedRevisionsUsingPOST(padID?: string, options?: any): AxiosPromise; + listSavedRevisionsUsingPOST(padID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -1760,7 +1809,7 @@ export interface DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApiInterface */ - movePadUsingGET(sourceID?: string, destinationID?: string, force?: string, options?: any): AxiosPromise; + movePadUsingGET(sourceID?: string, destinationID?: string, force?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -1771,7 +1820,7 @@ export interface DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApiInterface */ - movePadUsingPOST(sourceID?: string, destinationID?: string, force?: string, options?: any): AxiosPromise; + movePadUsingPOST(sourceID?: string, destinationID?: string, force?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -1782,7 +1831,7 @@ export interface DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApiInterface */ - restoreRevisionUsingGET(padID?: string, rev?: string, authorId?: string, options?: any): AxiosPromise; + restoreRevisionUsingGET(padID?: string, rev?: string, authorId?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -1793,7 +1842,7 @@ export interface DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApiInterface */ - restoreRevisionUsingPOST(padID?: string, rev?: string, authorId?: string, options?: any): AxiosPromise; + restoreRevisionUsingPOST(padID?: string, rev?: string, authorId?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -1803,7 +1852,7 @@ export interface DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApiInterface */ - saveRevisionUsingGET(padID?: string, rev?: string, options?: any): AxiosPromise; + saveRevisionUsingGET(padID?: string, rev?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -1813,7 +1862,7 @@ export interface DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApiInterface */ - saveRevisionUsingPOST(padID?: string, rev?: string, options?: any): AxiosPromise; + saveRevisionUsingPOST(padID?: string, rev?: string, options?: RawAxiosRequestConfig): AxiosPromise; } @@ -1833,7 +1882,7 @@ export class DefaultApi extends BaseAPI implements DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApi */ - public appendTextUsingGET(padID?: string, text?: string, authorId?: string, options?: any) { + public appendTextUsingGET(padID?: string, text?: string, authorId?: string, options?: RawAxiosRequestConfig) { return DefaultApiFp(this.configuration).appendTextUsingGET(padID, text, authorId, options).then((request) => request(this.axios, this.basePath)); } @@ -1846,7 +1895,7 @@ export class DefaultApi extends BaseAPI implements DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApi */ - public appendTextUsingPOST(padID?: string, text?: string, authorId?: string, options?: any) { + public appendTextUsingPOST(padID?: string, text?: string, authorId?: string, options?: RawAxiosRequestConfig) { return DefaultApiFp(this.configuration).appendTextUsingPOST(padID, text, authorId, options).then((request) => request(this.axios, this.basePath)); } @@ -1859,7 +1908,7 @@ export class DefaultApi extends BaseAPI implements DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApi */ - public copyPadUsingGET(sourceID?: string, destinationID?: string, force?: string, options?: any) { + public copyPadUsingGET(sourceID?: string, destinationID?: string, force?: string, options?: RawAxiosRequestConfig) { return DefaultApiFp(this.configuration).copyPadUsingGET(sourceID, destinationID, force, options).then((request) => request(this.axios, this.basePath)); } @@ -1872,7 +1921,7 @@ export class DefaultApi extends BaseAPI implements DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApi */ - public copyPadUsingPOST(sourceID?: string, destinationID?: string, force?: string, options?: any) { + public copyPadUsingPOST(sourceID?: string, destinationID?: string, force?: string, options?: RawAxiosRequestConfig) { return DefaultApiFp(this.configuration).copyPadUsingPOST(sourceID, destinationID, force, options).then((request) => request(this.axios, this.basePath)); } @@ -1886,7 +1935,7 @@ export class DefaultApi extends BaseAPI implements DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApi */ - public copyPadWithoutHistoryUsingGET(sourceID?: string, destinationID?: string, force?: string, authorId?: string, options?: any) { + public copyPadWithoutHistoryUsingGET(sourceID?: string, destinationID?: string, force?: string, authorId?: string, options?: RawAxiosRequestConfig) { return DefaultApiFp(this.configuration).copyPadWithoutHistoryUsingGET(sourceID, destinationID, force, authorId, options).then((request) => request(this.axios, this.basePath)); } @@ -1900,7 +1949,7 @@ export class DefaultApi extends BaseAPI implements DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApi */ - public copyPadWithoutHistoryUsingPOST(sourceID?: string, destinationID?: string, force?: string, authorId?: string, options?: any) { + public copyPadWithoutHistoryUsingPOST(sourceID?: string, destinationID?: string, force?: string, authorId?: string, options?: RawAxiosRequestConfig) { return DefaultApiFp(this.configuration).copyPadWithoutHistoryUsingPOST(sourceID, destinationID, force, authorId, options).then((request) => request(this.axios, this.basePath)); } @@ -1911,7 +1960,7 @@ export class DefaultApi extends BaseAPI implements DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApi */ - public getAttributePoolUsingGET(padID?: string, options?: any) { + public getAttributePoolUsingGET(padID?: string, options?: RawAxiosRequestConfig) { return DefaultApiFp(this.configuration).getAttributePoolUsingGET(padID, options).then((request) => request(this.axios, this.basePath)); } @@ -1922,7 +1971,7 @@ export class DefaultApi extends BaseAPI implements DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApi */ - public getAttributePoolUsingPOST(padID?: string, options?: any) { + public getAttributePoolUsingPOST(padID?: string, options?: RawAxiosRequestConfig) { return DefaultApiFp(this.configuration).getAttributePoolUsingPOST(padID, options).then((request) => request(this.axios, this.basePath)); } @@ -1933,7 +1982,7 @@ export class DefaultApi extends BaseAPI implements DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApi */ - public getPadIDUsingGET(roID?: string, options?: any) { + public getPadIDUsingGET(roID?: string, options?: RawAxiosRequestConfig) { return DefaultApiFp(this.configuration).getPadIDUsingGET(roID, options).then((request) => request(this.axios, this.basePath)); } @@ -1944,7 +1993,7 @@ export class DefaultApi extends BaseAPI implements DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApi */ - public getPadIDUsingPOST(roID?: string, options?: any) { + public getPadIDUsingPOST(roID?: string, options?: RawAxiosRequestConfig) { return DefaultApiFp(this.configuration).getPadIDUsingPOST(roID, options).then((request) => request(this.axios, this.basePath)); } @@ -1956,7 +2005,7 @@ export class DefaultApi extends BaseAPI implements DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApi */ - public getRevisionChangesetUsingGET(padID?: string, rev?: string, options?: any) { + public getRevisionChangesetUsingGET(padID?: string, rev?: string, options?: RawAxiosRequestConfig) { return DefaultApiFp(this.configuration).getRevisionChangesetUsingGET(padID, rev, options).then((request) => request(this.axios, this.basePath)); } @@ -1968,7 +2017,7 @@ export class DefaultApi extends BaseAPI implements DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApi */ - public getRevisionChangesetUsingPOST(padID?: string, rev?: string, options?: any) { + public getRevisionChangesetUsingPOST(padID?: string, rev?: string, options?: RawAxiosRequestConfig) { return DefaultApiFp(this.configuration).getRevisionChangesetUsingPOST(padID, rev, options).then((request) => request(this.axios, this.basePath)); } @@ -1979,7 +2028,7 @@ export class DefaultApi extends BaseAPI implements DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApi */ - public getSavedRevisionsCountUsingGET(padID?: string, options?: any) { + public getSavedRevisionsCountUsingGET(padID?: string, options?: RawAxiosRequestConfig) { return DefaultApiFp(this.configuration).getSavedRevisionsCountUsingGET(padID, options).then((request) => request(this.axios, this.basePath)); } @@ -1990,7 +2039,7 @@ export class DefaultApi extends BaseAPI implements DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApi */ - public getSavedRevisionsCountUsingPOST(padID?: string, options?: any) { + public getSavedRevisionsCountUsingPOST(padID?: string, options?: RawAxiosRequestConfig) { return DefaultApiFp(this.configuration).getSavedRevisionsCountUsingPOST(padID, options).then((request) => request(this.axios, this.basePath)); } @@ -2000,7 +2049,7 @@ export class DefaultApi extends BaseAPI implements DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApi */ - public getStatsUsingGET(options?: any) { + public getStatsUsingGET(options?: RawAxiosRequestConfig) { return DefaultApiFp(this.configuration).getStatsUsingGET(options).then((request) => request(this.axios, this.basePath)); } @@ -2010,7 +2059,7 @@ export class DefaultApi extends BaseAPI implements DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApi */ - public getStatsUsingPOST(options?: any) { + public getStatsUsingPOST(options?: RawAxiosRequestConfig) { return DefaultApiFp(this.configuration).getStatsUsingPOST(options).then((request) => request(this.axios, this.basePath)); } @@ -2021,7 +2070,7 @@ export class DefaultApi extends BaseAPI implements DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApi */ - public listSavedRevisionsUsingGET(padID?: string, options?: any) { + public listSavedRevisionsUsingGET(padID?: string, options?: RawAxiosRequestConfig) { return DefaultApiFp(this.configuration).listSavedRevisionsUsingGET(padID, options).then((request) => request(this.axios, this.basePath)); } @@ -2032,7 +2081,7 @@ export class DefaultApi extends BaseAPI implements DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApi */ - public listSavedRevisionsUsingPOST(padID?: string, options?: any) { + public listSavedRevisionsUsingPOST(padID?: string, options?: RawAxiosRequestConfig) { return DefaultApiFp(this.configuration).listSavedRevisionsUsingPOST(padID, options).then((request) => request(this.axios, this.basePath)); } @@ -2045,7 +2094,7 @@ export class DefaultApi extends BaseAPI implements DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApi */ - public movePadUsingGET(sourceID?: string, destinationID?: string, force?: string, options?: any) { + public movePadUsingGET(sourceID?: string, destinationID?: string, force?: string, options?: RawAxiosRequestConfig) { return DefaultApiFp(this.configuration).movePadUsingGET(sourceID, destinationID, force, options).then((request) => request(this.axios, this.basePath)); } @@ -2058,7 +2107,7 @@ export class DefaultApi extends BaseAPI implements DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApi */ - public movePadUsingPOST(sourceID?: string, destinationID?: string, force?: string, options?: any) { + public movePadUsingPOST(sourceID?: string, destinationID?: string, force?: string, options?: RawAxiosRequestConfig) { return DefaultApiFp(this.configuration).movePadUsingPOST(sourceID, destinationID, force, options).then((request) => request(this.axios, this.basePath)); } @@ -2071,7 +2120,7 @@ export class DefaultApi extends BaseAPI implements DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApi */ - public restoreRevisionUsingGET(padID?: string, rev?: string, authorId?: string, options?: any) { + public restoreRevisionUsingGET(padID?: string, rev?: string, authorId?: string, options?: RawAxiosRequestConfig) { return DefaultApiFp(this.configuration).restoreRevisionUsingGET(padID, rev, authorId, options).then((request) => request(this.axios, this.basePath)); } @@ -2084,7 +2133,7 @@ export class DefaultApi extends BaseAPI implements DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApi */ - public restoreRevisionUsingPOST(padID?: string, rev?: string, authorId?: string, options?: any) { + public restoreRevisionUsingPOST(padID?: string, rev?: string, authorId?: string, options?: RawAxiosRequestConfig) { return DefaultApiFp(this.configuration).restoreRevisionUsingPOST(padID, rev, authorId, options).then((request) => request(this.axios, this.basePath)); } @@ -2096,7 +2145,7 @@ export class DefaultApi extends BaseAPI implements DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApi */ - public saveRevisionUsingGET(padID?: string, rev?: string, options?: any) { + public saveRevisionUsingGET(padID?: string, rev?: string, options?: RawAxiosRequestConfig) { return DefaultApiFp(this.configuration).saveRevisionUsingGET(padID, rev, options).then((request) => request(this.axios, this.basePath)); } @@ -2108,7 +2157,8 @@ export class DefaultApi extends BaseAPI implements DefaultApiInterface { * @throws {RequiredError} * @memberof DefaultApi */ - public saveRevisionUsingPOST(padID?: string, rev?: string, options?: any) { + public saveRevisionUsingPOST(padID?: string, rev?: string, options?: RawAxiosRequestConfig) { return DefaultApiFp(this.configuration).saveRevisionUsingPOST(padID, rev, options).then((request) => request(this.axios, this.basePath)); } } + diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/api/group-api.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/api/group-api.ts index cbb4db16de1..93c08588c43 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/api/group-api.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/api/group-api.ts @@ -13,29 +13,30 @@ */ -import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; -import { Configuration } from '../configuration'; +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } 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'; +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { InlineResponse200 } from '../models'; +import type { CreateGroupUsingGET200Response } from '../models'; // @ts-ignore -import { InlineResponse2001 } from '../models'; +import type { CreateGroupUsingGET400Response } from '../models'; // @ts-ignore -import { InlineResponse20017 } from '../models'; +import type { CreateGroupUsingGET401Response } from '../models'; // @ts-ignore -import { InlineResponse2002 } from '../models'; +import type { CreateGroupUsingGET500Response } from '../models'; // @ts-ignore -import { InlineResponse2006 } from '../models'; +import type { DeleteGroupUsingGET200Response } from '../models'; // @ts-ignore -import { InlineResponse400 } from '../models'; +import type { ListAllGroupsUsingGET200Response } from '../models'; // @ts-ignore -import { InlineResponse401 } from '../models'; +import type { ListPadsUsingGET200Response } from '../models'; // @ts-ignore -import { InlineResponse500 } from '../models'; +import type { ListSessionsOfGroupUsingGET200Response } from '../models'; /** * GroupApi - axios parameter creator * @export @@ -49,7 +50,7 @@ export const GroupApiAxiosParamCreator = function (configuration?: Configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createGroupIfNotExistsForUsingGET: async (groupMapper?: string, options: any = {}): Promise => { + createGroupIfNotExistsForUsingGET: async (groupMapper?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/createGroupIfNotExistsFor`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -71,7 +72,7 @@ export const GroupApiAxiosParamCreator = function (configuration?: Configuration - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -87,7 +88,7 @@ export const GroupApiAxiosParamCreator = function (configuration?: Configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createGroupIfNotExistsForUsingPOST: async (groupMapper?: string, options: any = {}): Promise => { + createGroupIfNotExistsForUsingPOST: async (groupMapper?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/createGroupIfNotExistsFor`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -109,7 +110,7 @@ export const GroupApiAxiosParamCreator = function (configuration?: Configuration - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -128,7 +129,7 @@ export const GroupApiAxiosParamCreator = function (configuration?: Configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createGroupPadUsingGET: async (groupID?: string, padName?: string, text?: string, authorId?: string, options: any = {}): Promise => { + createGroupPadUsingGET: async (groupID?: string, padName?: string, text?: string, authorId?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/createGroupPad`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -162,7 +163,7 @@ export const GroupApiAxiosParamCreator = function (configuration?: Configuration - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -181,7 +182,7 @@ export const GroupApiAxiosParamCreator = function (configuration?: Configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createGroupPadUsingPOST: async (groupID?: string, padName?: string, text?: string, authorId?: string, options: any = {}): Promise => { + createGroupPadUsingPOST: async (groupID?: string, padName?: string, text?: string, authorId?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/createGroupPad`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -215,7 +216,7 @@ export const GroupApiAxiosParamCreator = function (configuration?: Configuration - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -230,7 +231,7 @@ export const GroupApiAxiosParamCreator = function (configuration?: Configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createGroupUsingGET: async (options: any = {}): Promise => { + createGroupUsingGET: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/createGroup`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -248,7 +249,7 @@ export const GroupApiAxiosParamCreator = function (configuration?: Configuration - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -263,7 +264,7 @@ export const GroupApiAxiosParamCreator = function (configuration?: Configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createGroupUsingPOST: async (options: any = {}): Promise => { + createGroupUsingPOST: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/createGroup`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -281,7 +282,7 @@ export const GroupApiAxiosParamCreator = function (configuration?: Configuration - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -297,7 +298,7 @@ export const GroupApiAxiosParamCreator = function (configuration?: Configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteGroupUsingGET: async (groupID?: string, options: any = {}): Promise => { + deleteGroupUsingGET: async (groupID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/deleteGroup`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -319,7 +320,7 @@ export const GroupApiAxiosParamCreator = function (configuration?: Configuration - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -335,7 +336,7 @@ export const GroupApiAxiosParamCreator = function (configuration?: Configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteGroupUsingPOST: async (groupID?: string, options: any = {}): Promise => { + deleteGroupUsingPOST: async (groupID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/deleteGroup`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -357,7 +358,7 @@ export const GroupApiAxiosParamCreator = function (configuration?: Configuration - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -368,10 +369,11 @@ export const GroupApiAxiosParamCreator = function (configuration?: Configuration }, /** * + * @summary * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listAllGroupsUsingGET: async (options: any = {}): Promise => { + listAllGroupsUsingGET: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/listAllGroups`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -389,7 +391,7 @@ export const GroupApiAxiosParamCreator = function (configuration?: Configuration - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -400,10 +402,11 @@ export const GroupApiAxiosParamCreator = function (configuration?: Configuration }, /** * + * @summary * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listAllGroupsUsingPOST: async (options: any = {}): Promise => { + listAllGroupsUsingPOST: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/listAllGroups`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -421,7 +424,7 @@ export const GroupApiAxiosParamCreator = function (configuration?: Configuration - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -437,7 +440,7 @@ export const GroupApiAxiosParamCreator = function (configuration?: Configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listPadsUsingGET: async (groupID?: string, options: any = {}): Promise => { + listPadsUsingGET: async (groupID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/listPads`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -459,7 +462,7 @@ export const GroupApiAxiosParamCreator = function (configuration?: Configuration - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -475,7 +478,7 @@ export const GroupApiAxiosParamCreator = function (configuration?: Configuration * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listPadsUsingPOST: async (groupID?: string, options: any = {}): Promise => { + listPadsUsingPOST: async (groupID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/listPads`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -497,7 +500,7 @@ export const GroupApiAxiosParamCreator = function (configuration?: Configuration - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -508,11 +511,12 @@ export const GroupApiAxiosParamCreator = function (configuration?: Configuration }, /** * + * @summary * @param {string} [groupID] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listSessionsOfGroupUsingGET: async (groupID?: string, options: any = {}): Promise => { + listSessionsOfGroupUsingGET: async (groupID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/listSessionsOfGroup`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -534,7 +538,7 @@ export const GroupApiAxiosParamCreator = function (configuration?: Configuration - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -545,11 +549,12 @@ export const GroupApiAxiosParamCreator = function (configuration?: Configuration }, /** * + * @summary * @param {string} [groupID] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listSessionsOfGroupUsingPOST: async (groupID?: string, options: any = {}): Promise => { + listSessionsOfGroupUsingPOST: async (groupID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/listSessionsOfGroup`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -571,7 +576,7 @@ export const GroupApiAxiosParamCreator = function (configuration?: Configuration - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -597,9 +602,11 @@ export const GroupApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createGroupIfNotExistsForUsingGET(groupMapper?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createGroupIfNotExistsForUsingGET(groupMapper?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createGroupIfNotExistsForUsingGET(groupMapper, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['GroupApi.createGroupIfNotExistsForUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -608,9 +615,11 @@ export const GroupApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createGroupIfNotExistsForUsingPOST(groupMapper?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createGroupIfNotExistsForUsingPOST(groupMapper?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createGroupIfNotExistsForUsingPOST(groupMapper, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['GroupApi.createGroupIfNotExistsForUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -622,9 +631,11 @@ export const GroupApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createGroupPadUsingGET(groupID?: string, padName?: string, text?: string, authorId?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createGroupPadUsingGET(groupID?: string, padName?: string, text?: string, authorId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createGroupPadUsingGET(groupID, padName, text, authorId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['GroupApi.createGroupPadUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -636,9 +647,11 @@ export const GroupApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createGroupPadUsingPOST(groupID?: string, padName?: string, text?: string, authorId?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createGroupPadUsingPOST(groupID?: string, padName?: string, text?: string, authorId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createGroupPadUsingPOST(groupID, padName, text, authorId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['GroupApi.createGroupPadUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -646,9 +659,11 @@ export const GroupApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createGroupUsingGET(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createGroupUsingGET(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createGroupUsingGET(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['GroupApi.createGroupUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -656,9 +671,11 @@ export const GroupApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createGroupUsingPOST(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createGroupUsingPOST(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createGroupUsingPOST(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['GroupApi.createGroupUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -667,9 +684,11 @@ export const GroupApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteGroupUsingGET(groupID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteGroupUsingGET(groupID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteGroupUsingGET(groupID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['GroupApi.deleteGroupUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -678,27 +697,35 @@ export const GroupApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteGroupUsingPOST(groupID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteGroupUsingPOST(groupID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteGroupUsingPOST(groupID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['GroupApi.deleteGroupUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * + * @summary * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listAllGroupsUsingGET(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async listAllGroupsUsingGET(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listAllGroupsUsingGET(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['GroupApi.listAllGroupsUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * + * @summary * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listAllGroupsUsingPOST(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async listAllGroupsUsingPOST(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listAllGroupsUsingPOST(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['GroupApi.listAllGroupsUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -707,9 +734,11 @@ export const GroupApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listPadsUsingGET(groupID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async listPadsUsingGET(groupID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listPadsUsingGET(groupID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['GroupApi.listPadsUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -718,29 +747,37 @@ export const GroupApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listPadsUsingPOST(groupID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async listPadsUsingPOST(groupID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listPadsUsingPOST(groupID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['GroupApi.listPadsUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * + * @summary * @param {string} [groupID] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listSessionsOfGroupUsingGET(groupID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async listSessionsOfGroupUsingGET(groupID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listSessionsOfGroupUsingGET(groupID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['GroupApi.listSessionsOfGroupUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * + * @summary * @param {string} [groupID] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listSessionsOfGroupUsingPOST(groupID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async listSessionsOfGroupUsingPOST(groupID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listSessionsOfGroupUsingPOST(groupID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['GroupApi.listSessionsOfGroupUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; @@ -759,7 +796,7 @@ export const GroupApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createGroupIfNotExistsForUsingGET(groupMapper?: string, options?: any): AxiosPromise { + createGroupIfNotExistsForUsingGET(groupMapper?: string, options?: any): AxiosPromise { return localVarFp.createGroupIfNotExistsForUsingGET(groupMapper, options).then((request) => request(axios, basePath)); }, /** @@ -769,7 +806,7 @@ export const GroupApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createGroupIfNotExistsForUsingPOST(groupMapper?: string, options?: any): AxiosPromise { + createGroupIfNotExistsForUsingPOST(groupMapper?: string, options?: any): AxiosPromise { return localVarFp.createGroupIfNotExistsForUsingPOST(groupMapper, options).then((request) => request(axios, basePath)); }, /** @@ -782,7 +819,7 @@ export const GroupApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createGroupPadUsingGET(groupID?: string, padName?: string, text?: string, authorId?: string, options?: any): AxiosPromise { + createGroupPadUsingGET(groupID?: string, padName?: string, text?: string, authorId?: string, options?: any): AxiosPromise { return localVarFp.createGroupPadUsingGET(groupID, padName, text, authorId, options).then((request) => request(axios, basePath)); }, /** @@ -795,7 +832,7 @@ export const GroupApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createGroupPadUsingPOST(groupID?: string, padName?: string, text?: string, authorId?: string, options?: any): AxiosPromise { + createGroupPadUsingPOST(groupID?: string, padName?: string, text?: string, authorId?: string, options?: any): AxiosPromise { return localVarFp.createGroupPadUsingPOST(groupID, padName, text, authorId, options).then((request) => request(axios, basePath)); }, /** @@ -804,7 +841,7 @@ export const GroupApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createGroupUsingGET(options?: any): AxiosPromise { + createGroupUsingGET(options?: any): AxiosPromise { return localVarFp.createGroupUsingGET(options).then((request) => request(axios, basePath)); }, /** @@ -813,7 +850,7 @@ export const GroupApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createGroupUsingPOST(options?: any): AxiosPromise { + createGroupUsingPOST(options?: any): AxiosPromise { return localVarFp.createGroupUsingPOST(options).then((request) => request(axios, basePath)); }, /** @@ -823,7 +860,7 @@ export const GroupApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteGroupUsingGET(groupID?: string, options?: any): AxiosPromise { + deleteGroupUsingGET(groupID?: string, options?: any): AxiosPromise { return localVarFp.deleteGroupUsingGET(groupID, options).then((request) => request(axios, basePath)); }, /** @@ -833,23 +870,25 @@ export const GroupApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteGroupUsingPOST(groupID?: string, options?: any): AxiosPromise { + deleteGroupUsingPOST(groupID?: string, options?: any): AxiosPromise { return localVarFp.deleteGroupUsingPOST(groupID, options).then((request) => request(axios, basePath)); }, /** * + * @summary * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listAllGroupsUsingGET(options?: any): AxiosPromise { + listAllGroupsUsingGET(options?: any): AxiosPromise { return localVarFp.listAllGroupsUsingGET(options).then((request) => request(axios, basePath)); }, /** * + * @summary * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listAllGroupsUsingPOST(options?: any): AxiosPromise { + listAllGroupsUsingPOST(options?: any): AxiosPromise { return localVarFp.listAllGroupsUsingPOST(options).then((request) => request(axios, basePath)); }, /** @@ -859,7 +898,7 @@ export const GroupApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listPadsUsingGET(groupID?: string, options?: any): AxiosPromise { + listPadsUsingGET(groupID?: string, options?: any): AxiosPromise { return localVarFp.listPadsUsingGET(groupID, options).then((request) => request(axios, basePath)); }, /** @@ -869,25 +908,27 @@ export const GroupApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listPadsUsingPOST(groupID?: string, options?: any): AxiosPromise { + listPadsUsingPOST(groupID?: string, options?: any): AxiosPromise { return localVarFp.listPadsUsingPOST(groupID, options).then((request) => request(axios, basePath)); }, /** * + * @summary * @param {string} [groupID] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listSessionsOfGroupUsingGET(groupID?: string, options?: any): AxiosPromise { + listSessionsOfGroupUsingGET(groupID?: string, options?: any): AxiosPromise { return localVarFp.listSessionsOfGroupUsingGET(groupID, options).then((request) => request(axios, basePath)); }, /** * + * @summary * @param {string} [groupID] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listSessionsOfGroupUsingPOST(groupID?: string, options?: any): AxiosPromise { + listSessionsOfGroupUsingPOST(groupID?: string, options?: any): AxiosPromise { return localVarFp.listSessionsOfGroupUsingPOST(groupID, options).then((request) => request(axios, basePath)); }, }; @@ -907,7 +948,7 @@ export interface GroupApiInterface { * @throws {RequiredError} * @memberof GroupApiInterface */ - createGroupIfNotExistsForUsingGET(groupMapper?: string, options?: any): AxiosPromise; + createGroupIfNotExistsForUsingGET(groupMapper?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -917,7 +958,7 @@ export interface GroupApiInterface { * @throws {RequiredError} * @memberof GroupApiInterface */ - createGroupIfNotExistsForUsingPOST(groupMapper?: string, options?: any): AxiosPromise; + createGroupIfNotExistsForUsingPOST(groupMapper?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -930,7 +971,7 @@ export interface GroupApiInterface { * @throws {RequiredError} * @memberof GroupApiInterface */ - createGroupPadUsingGET(groupID?: string, padName?: string, text?: string, authorId?: string, options?: any): AxiosPromise; + createGroupPadUsingGET(groupID?: string, padName?: string, text?: string, authorId?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -943,7 +984,7 @@ export interface GroupApiInterface { * @throws {RequiredError} * @memberof GroupApiInterface */ - createGroupPadUsingPOST(groupID?: string, padName?: string, text?: string, authorId?: string, options?: any): AxiosPromise; + createGroupPadUsingPOST(groupID?: string, padName?: string, text?: string, authorId?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -952,7 +993,7 @@ export interface GroupApiInterface { * @throws {RequiredError} * @memberof GroupApiInterface */ - createGroupUsingGET(options?: any): AxiosPromise; + createGroupUsingGET(options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -961,7 +1002,7 @@ export interface GroupApiInterface { * @throws {RequiredError} * @memberof GroupApiInterface */ - createGroupUsingPOST(options?: any): AxiosPromise; + createGroupUsingPOST(options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -971,7 +1012,7 @@ export interface GroupApiInterface { * @throws {RequiredError} * @memberof GroupApiInterface */ - deleteGroupUsingGET(groupID?: string, options?: any): AxiosPromise; + deleteGroupUsingGET(groupID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -981,23 +1022,25 @@ export interface GroupApiInterface { * @throws {RequiredError} * @memberof GroupApiInterface */ - deleteGroupUsingPOST(groupID?: string, options?: any): AxiosPromise; + deleteGroupUsingPOST(groupID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * + * @summary * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GroupApiInterface */ - listAllGroupsUsingGET(options?: any): AxiosPromise; + listAllGroupsUsingGET(options?: RawAxiosRequestConfig): AxiosPromise; /** * + * @summary * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GroupApiInterface */ - listAllGroupsUsingPOST(options?: any): AxiosPromise; + listAllGroupsUsingPOST(options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -1007,7 +1050,7 @@ export interface GroupApiInterface { * @throws {RequiredError} * @memberof GroupApiInterface */ - listPadsUsingGET(groupID?: string, options?: any): AxiosPromise; + listPadsUsingGET(groupID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -1017,25 +1060,27 @@ export interface GroupApiInterface { * @throws {RequiredError} * @memberof GroupApiInterface */ - listPadsUsingPOST(groupID?: string, options?: any): AxiosPromise; + listPadsUsingPOST(groupID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * + * @summary * @param {string} [groupID] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GroupApiInterface */ - listSessionsOfGroupUsingGET(groupID?: string, options?: any): AxiosPromise; + listSessionsOfGroupUsingGET(groupID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * + * @summary * @param {string} [groupID] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GroupApiInterface */ - listSessionsOfGroupUsingPOST(groupID?: string, options?: any): AxiosPromise; + listSessionsOfGroupUsingPOST(groupID?: string, options?: RawAxiosRequestConfig): AxiosPromise; } @@ -1054,7 +1099,7 @@ export class GroupApi extends BaseAPI implements GroupApiInterface { * @throws {RequiredError} * @memberof GroupApi */ - public createGroupIfNotExistsForUsingGET(groupMapper?: string, options?: any) { + public createGroupIfNotExistsForUsingGET(groupMapper?: string, options?: RawAxiosRequestConfig) { return GroupApiFp(this.configuration).createGroupIfNotExistsForUsingGET(groupMapper, options).then((request) => request(this.axios, this.basePath)); } @@ -1066,7 +1111,7 @@ export class GroupApi extends BaseAPI implements GroupApiInterface { * @throws {RequiredError} * @memberof GroupApi */ - public createGroupIfNotExistsForUsingPOST(groupMapper?: string, options?: any) { + public createGroupIfNotExistsForUsingPOST(groupMapper?: string, options?: RawAxiosRequestConfig) { return GroupApiFp(this.configuration).createGroupIfNotExistsForUsingPOST(groupMapper, options).then((request) => request(this.axios, this.basePath)); } @@ -1081,7 +1126,7 @@ export class GroupApi extends BaseAPI implements GroupApiInterface { * @throws {RequiredError} * @memberof GroupApi */ - public createGroupPadUsingGET(groupID?: string, padName?: string, text?: string, authorId?: string, options?: any) { + public createGroupPadUsingGET(groupID?: string, padName?: string, text?: string, authorId?: string, options?: RawAxiosRequestConfig) { return GroupApiFp(this.configuration).createGroupPadUsingGET(groupID, padName, text, authorId, options).then((request) => request(this.axios, this.basePath)); } @@ -1096,7 +1141,7 @@ export class GroupApi extends BaseAPI implements GroupApiInterface { * @throws {RequiredError} * @memberof GroupApi */ - public createGroupPadUsingPOST(groupID?: string, padName?: string, text?: string, authorId?: string, options?: any) { + public createGroupPadUsingPOST(groupID?: string, padName?: string, text?: string, authorId?: string, options?: RawAxiosRequestConfig) { return GroupApiFp(this.configuration).createGroupPadUsingPOST(groupID, padName, text, authorId, options).then((request) => request(this.axios, this.basePath)); } @@ -1107,7 +1152,7 @@ export class GroupApi extends BaseAPI implements GroupApiInterface { * @throws {RequiredError} * @memberof GroupApi */ - public createGroupUsingGET(options?: any) { + public createGroupUsingGET(options?: RawAxiosRequestConfig) { return GroupApiFp(this.configuration).createGroupUsingGET(options).then((request) => request(this.axios, this.basePath)); } @@ -1118,7 +1163,7 @@ export class GroupApi extends BaseAPI implements GroupApiInterface { * @throws {RequiredError} * @memberof GroupApi */ - public createGroupUsingPOST(options?: any) { + public createGroupUsingPOST(options?: RawAxiosRequestConfig) { return GroupApiFp(this.configuration).createGroupUsingPOST(options).then((request) => request(this.axios, this.basePath)); } @@ -1130,7 +1175,7 @@ export class GroupApi extends BaseAPI implements GroupApiInterface { * @throws {RequiredError} * @memberof GroupApi */ - public deleteGroupUsingGET(groupID?: string, options?: any) { + public deleteGroupUsingGET(groupID?: string, options?: RawAxiosRequestConfig) { return GroupApiFp(this.configuration).deleteGroupUsingGET(groupID, options).then((request) => request(this.axios, this.basePath)); } @@ -1142,27 +1187,29 @@ export class GroupApi extends BaseAPI implements GroupApiInterface { * @throws {RequiredError} * @memberof GroupApi */ - public deleteGroupUsingPOST(groupID?: string, options?: any) { + public deleteGroupUsingPOST(groupID?: string, options?: RawAxiosRequestConfig) { return GroupApiFp(this.configuration).deleteGroupUsingPOST(groupID, options).then((request) => request(this.axios, this.basePath)); } /** * + * @summary * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GroupApi */ - public listAllGroupsUsingGET(options?: any) { + public listAllGroupsUsingGET(options?: RawAxiosRequestConfig) { return GroupApiFp(this.configuration).listAllGroupsUsingGET(options).then((request) => request(this.axios, this.basePath)); } /** * + * @summary * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GroupApi */ - public listAllGroupsUsingPOST(options?: any) { + public listAllGroupsUsingPOST(options?: RawAxiosRequestConfig) { return GroupApiFp(this.configuration).listAllGroupsUsingPOST(options).then((request) => request(this.axios, this.basePath)); } @@ -1174,7 +1221,7 @@ export class GroupApi extends BaseAPI implements GroupApiInterface { * @throws {RequiredError} * @memberof GroupApi */ - public listPadsUsingGET(groupID?: string, options?: any) { + public listPadsUsingGET(groupID?: string, options?: RawAxiosRequestConfig) { return GroupApiFp(this.configuration).listPadsUsingGET(groupID, options).then((request) => request(this.axios, this.basePath)); } @@ -1186,29 +1233,32 @@ export class GroupApi extends BaseAPI implements GroupApiInterface { * @throws {RequiredError} * @memberof GroupApi */ - public listPadsUsingPOST(groupID?: string, options?: any) { + public listPadsUsingPOST(groupID?: string, options?: RawAxiosRequestConfig) { return GroupApiFp(this.configuration).listPadsUsingPOST(groupID, options).then((request) => request(this.axios, this.basePath)); } /** * + * @summary * @param {string} [groupID] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GroupApi */ - public listSessionsOfGroupUsingGET(groupID?: string, options?: any) { + public listSessionsOfGroupUsingGET(groupID?: string, options?: RawAxiosRequestConfig) { return GroupApiFp(this.configuration).listSessionsOfGroupUsingGET(groupID, options).then((request) => request(this.axios, this.basePath)); } /** * + * @summary * @param {string} [groupID] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof GroupApi */ - public listSessionsOfGroupUsingPOST(groupID?: string, options?: any) { + public listSessionsOfGroupUsingPOST(groupID?: string, options?: RawAxiosRequestConfig) { return GroupApiFp(this.configuration).listSessionsOfGroupUsingPOST(groupID, options).then((request) => request(this.axios, this.basePath)); } } + diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/api/pad-api.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/api/pad-api.ts index da7fd948c7f..5dd621ae811 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/api/pad-api.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/api/pad-api.ts @@ -13,47 +13,48 @@ */ -import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; -import { Configuration } from '../configuration'; +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } 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'; +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { InlineResponse2001 } from '../models'; +import type { CreateDiffHTMLUsingGET200Response } from '../models'; // @ts-ignore -import { InlineResponse20010 } from '../models'; +import type { CreateGroupUsingGET400Response } from '../models'; // @ts-ignore -import { InlineResponse20011 } from '../models'; +import type { CreateGroupUsingGET401Response } from '../models'; // @ts-ignore -import { InlineResponse20012 } from '../models'; +import type { CreateGroupUsingGET500Response } from '../models'; // @ts-ignore -import { InlineResponse20013 } from '../models'; +import type { DeleteGroupUsingGET200Response } from '../models'; // @ts-ignore -import { InlineResponse20014 } from '../models'; +import type { GetChatHeadUsingGET200Response } from '../models'; // @ts-ignore -import { InlineResponse20016 } from '../models'; +import type { GetChatHistoryUsingGET200Response } from '../models'; // @ts-ignore -import { InlineResponse20018 } from '../models'; +import type { GetHTMLUsingGET200Response } from '../models'; // @ts-ignore -import { InlineResponse20019 } from '../models'; +import type { GetLastEditedUsingGET200Response } from '../models'; // @ts-ignore -import { InlineResponse2002 } from '../models'; +import type { GetPublicStatusUsingGET200Response } from '../models'; // @ts-ignore -import { InlineResponse20020 } from '../models'; +import type { GetReadOnlyIDUsingGET200Response } from '../models'; // @ts-ignore -import { InlineResponse2007 } from '../models'; +import type { GetRevisionsCountUsingGET200Response } from '../models'; // @ts-ignore -import { InlineResponse2008 } from '../models'; +import type { GetTextUsingGET200Response } from '../models'; // @ts-ignore -import { InlineResponse2009 } from '../models'; +import type { ListAuthorsOfPadUsingGET200Response } from '../models'; // @ts-ignore -import { InlineResponse400 } from '../models'; +import type { ListPadsUsingGET200Response } from '../models'; // @ts-ignore -import { InlineResponse401 } from '../models'; +import type { PadUsersCountUsingGET200Response } from '../models'; // @ts-ignore -import { InlineResponse500 } from '../models'; +import type { PadUsersUsingGET200Response } from '../models'; /** * PadApi - axios parameter creator * @export @@ -70,7 +71,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - appendChatMessageUsingGET: async (padID?: string, text?: string, authorID?: string, time?: string, options: any = {}): Promise => { + appendChatMessageUsingGET: async (padID?: string, text?: string, authorID?: string, time?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/appendChatMessage`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -104,7 +105,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -123,7 +124,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - appendChatMessageUsingPOST: async (padID?: string, text?: string, authorID?: string, time?: string, options: any = {}): Promise => { + appendChatMessageUsingPOST: async (padID?: string, text?: string, authorID?: string, time?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/appendChatMessage`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -157,7 +158,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -172,7 +173,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - checkTokenUsingGET: async (options: any = {}): Promise => { + checkTokenUsingGET: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/checkToken`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -190,7 +191,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -205,7 +206,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - checkTokenUsingPOST: async (options: any = {}): Promise => { + checkTokenUsingPOST: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/checkToken`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -223,7 +224,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -234,13 +235,14 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) }, /** * + * @summary * @param {string} [padID] * @param {string} [startRev] * @param {string} [endRev] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createDiffHTMLUsingGET: async (padID?: string, startRev?: string, endRev?: string, options: any = {}): Promise => { + createDiffHTMLUsingGET: async (padID?: string, startRev?: string, endRev?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/createDiffHTML`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -270,7 +272,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -281,13 +283,14 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) }, /** * + * @summary * @param {string} [padID] * @param {string} [startRev] * @param {string} [endRev] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createDiffHTMLUsingPOST: async (padID?: string, startRev?: string, endRev?: string, options: any = {}): Promise => { + createDiffHTMLUsingPOST: async (padID?: string, startRev?: string, endRev?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/createDiffHTML`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -317,7 +320,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -334,7 +337,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createPadUsingGET: async (padID?: string, text?: string, authorId?: string, options: any = {}): Promise => { + createPadUsingGET: async (padID?: string, text?: string, authorId?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/createPad`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -364,7 +367,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -381,7 +384,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createPadUsingPOST: async (padID?: string, text?: string, authorId?: string, options: any = {}): Promise => { + createPadUsingPOST: async (padID?: string, text?: string, authorId?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/createPad`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -411,7 +414,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -427,7 +430,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deletePadUsingGET: async (padID?: string, options: any = {}): Promise => { + deletePadUsingGET: async (padID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/deletePad`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -449,7 +452,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -465,7 +468,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deletePadUsingPOST: async (padID?: string, options: any = {}): Promise => { + deletePadUsingPOST: async (padID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/deletePad`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -487,7 +490,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -503,7 +506,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getChatHeadUsingGET: async (padID?: string, options: any = {}): Promise => { + getChatHeadUsingGET: async (padID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/getChatHead`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -525,7 +528,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -541,7 +544,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getChatHeadUsingPOST: async (padID?: string, options: any = {}): Promise => { + getChatHeadUsingPOST: async (padID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/getChatHead`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -563,7 +566,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -581,7 +584,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getChatHistoryUsingGET: async (padID?: string, start?: string, end?: string, options: any = {}): Promise => { + getChatHistoryUsingGET: async (padID?: string, start?: string, end?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/getChatHistory`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -611,7 +614,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -629,7 +632,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getChatHistoryUsingPOST: async (padID?: string, start?: string, end?: string, options: any = {}): Promise => { + getChatHistoryUsingPOST: async (padID?: string, start?: string, end?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/getChatHistory`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -659,7 +662,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -676,7 +679,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getHTMLUsingGET: async (padID?: string, rev?: string, options: any = {}): Promise => { + getHTMLUsingGET: async (padID?: string, rev?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/getHTML`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -702,7 +705,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -719,7 +722,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getHTMLUsingPOST: async (padID?: string, rev?: string, options: any = {}): Promise => { + getHTMLUsingPOST: async (padID?: string, rev?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/getHTML`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -745,7 +748,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -761,7 +764,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getLastEditedUsingGET: async (padID?: string, options: any = {}): Promise => { + getLastEditedUsingGET: async (padID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/getLastEdited`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -783,7 +786,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -799,7 +802,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getLastEditedUsingPOST: async (padID?: string, options: any = {}): Promise => { + getLastEditedUsingPOST: async (padID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/getLastEdited`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -821,7 +824,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -837,7 +840,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getPublicStatusUsingGET: async (padID?: string, options: any = {}): Promise => { + getPublicStatusUsingGET: async (padID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/getPublicStatus`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -859,7 +862,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -875,7 +878,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getPublicStatusUsingPOST: async (padID?: string, options: any = {}): Promise => { + getPublicStatusUsingPOST: async (padID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/getPublicStatus`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -897,7 +900,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -913,7 +916,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getReadOnlyIDUsingGET: async (padID?: string, options: any = {}): Promise => { + getReadOnlyIDUsingGET: async (padID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/getReadOnlyID`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -935,7 +938,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -951,7 +954,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getReadOnlyIDUsingPOST: async (padID?: string, options: any = {}): Promise => { + getReadOnlyIDUsingPOST: async (padID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/getReadOnlyID`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -973,7 +976,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -989,7 +992,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getRevisionsCountUsingGET: async (padID?: string, options: any = {}): Promise => { + getRevisionsCountUsingGET: async (padID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/getRevisionsCount`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -1011,7 +1014,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1027,7 +1030,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getRevisionsCountUsingPOST: async (padID?: string, options: any = {}): Promise => { + getRevisionsCountUsingPOST: async (padID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/getRevisionsCount`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -1049,7 +1052,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1066,7 +1069,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getTextUsingGET: async (padID?: string, rev?: string, options: any = {}): Promise => { + getTextUsingGET: async (padID?: string, rev?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/getText`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -1092,7 +1095,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1109,7 +1112,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getTextUsingPOST: async (padID?: string, rev?: string, options: any = {}): Promise => { + getTextUsingPOST: async (padID?: string, rev?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/getText`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -1135,7 +1138,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1150,7 +1153,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listAllPadsUsingGET: async (options: any = {}): Promise => { + listAllPadsUsingGET: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/listAllPads`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -1168,7 +1171,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1183,7 +1186,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listAllPadsUsingPOST: async (options: any = {}): Promise => { + listAllPadsUsingPOST: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/listAllPads`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -1201,7 +1204,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1217,7 +1220,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listAuthorsOfPadUsingGET: async (padID?: string, options: any = {}): Promise => { + listAuthorsOfPadUsingGET: async (padID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/listAuthorsOfPad`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -1239,7 +1242,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1255,7 +1258,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listAuthorsOfPadUsingPOST: async (padID?: string, options: any = {}): Promise => { + listAuthorsOfPadUsingPOST: async (padID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/listAuthorsOfPad`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -1277,7 +1280,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1293,7 +1296,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - padUsersCountUsingGET: async (padID?: string, options: any = {}): Promise => { + padUsersCountUsingGET: async (padID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/padUsersCount`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -1315,7 +1318,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1331,7 +1334,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - padUsersCountUsingPOST: async (padID?: string, options: any = {}): Promise => { + padUsersCountUsingPOST: async (padID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/padUsersCount`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -1353,7 +1356,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1369,7 +1372,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - padUsersUsingGET: async (padID?: string, options: any = {}): Promise => { + padUsersUsingGET: async (padID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/padUsers`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -1391,7 +1394,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1407,7 +1410,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - padUsersUsingPOST: async (padID?: string, options: any = {}): Promise => { + padUsersUsingPOST: async (padID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/padUsers`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -1429,7 +1432,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1446,7 +1449,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - sendClientsMessageUsingGET: async (padID?: string, msg?: string, options: any = {}): Promise => { + sendClientsMessageUsingGET: async (padID?: string, msg?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/sendClientsMessage`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -1472,7 +1475,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1489,7 +1492,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - sendClientsMessageUsingPOST: async (padID?: string, msg?: string, options: any = {}): Promise => { + sendClientsMessageUsingPOST: async (padID?: string, msg?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/sendClientsMessage`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -1515,7 +1518,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1533,7 +1536,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setHTMLUsingGET: async (padID?: string, html?: string, authorId?: string, options: any = {}): Promise => { + setHTMLUsingGET: async (padID?: string, html?: string, authorId?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/setHTML`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -1563,7 +1566,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1581,7 +1584,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setHTMLUsingPOST: async (padID?: string, html?: string, authorId?: string, options: any = {}): Promise => { + setHTMLUsingPOST: async (padID?: string, html?: string, authorId?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/setHTML`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -1611,7 +1614,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1628,7 +1631,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setPublicStatusUsingGET: async (padID?: string, publicStatus?: string, options: any = {}): Promise => { + setPublicStatusUsingGET: async (padID?: string, publicStatus?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/setPublicStatus`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -1654,7 +1657,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1671,7 +1674,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setPublicStatusUsingPOST: async (padID?: string, publicStatus?: string, options: any = {}): Promise => { + setPublicStatusUsingPOST: async (padID?: string, publicStatus?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/setPublicStatus`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -1697,7 +1700,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1715,7 +1718,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setTextUsingGET: async (padID?: string, text?: string, authorId?: string, options: any = {}): Promise => { + setTextUsingGET: async (padID?: string, text?: string, authorId?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/setText`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -1745,7 +1748,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1763,7 +1766,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setTextUsingPOST: async (padID?: string, text?: string, authorId?: string, options: any = {}): Promise => { + setTextUsingPOST: async (padID?: string, text?: string, authorId?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/setText`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -1793,7 +1796,7 @@ export const PadApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -1822,9 +1825,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async appendChatMessageUsingGET(padID?: string, text?: string, authorID?: string, time?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async appendChatMessageUsingGET(padID?: string, text?: string, authorID?: string, time?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.appendChatMessageUsingGET(padID, text, authorID, time, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.appendChatMessageUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -1836,9 +1841,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async appendChatMessageUsingPOST(padID?: string, text?: string, authorID?: string, time?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async appendChatMessageUsingPOST(padID?: string, text?: string, authorID?: string, time?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.appendChatMessageUsingPOST(padID, text, authorID, time, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.appendChatMessageUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -1846,9 +1853,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async checkTokenUsingGET(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async checkTokenUsingGET(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.checkTokenUsingGET(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.checkTokenUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -1856,33 +1865,41 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async checkTokenUsingPOST(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async checkTokenUsingPOST(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.checkTokenUsingPOST(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.checkTokenUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * + * @summary * @param {string} [padID] * @param {string} [startRev] * @param {string} [endRev] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createDiffHTMLUsingGET(padID?: string, startRev?: string, endRev?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createDiffHTMLUsingGET(padID?: string, startRev?: string, endRev?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createDiffHTMLUsingGET(padID, startRev, endRev, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.createDiffHTMLUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * + * @summary * @param {string} [padID] * @param {string} [startRev] * @param {string} [endRev] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createDiffHTMLUsingPOST(padID?: string, startRev?: string, endRev?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createDiffHTMLUsingPOST(padID?: string, startRev?: string, endRev?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createDiffHTMLUsingPOST(padID, startRev, endRev, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.createDiffHTMLUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * creates a new (non-group) pad. Note that if you need to create a group Pad, you should call createGroupPad @@ -1892,9 +1909,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createPadUsingGET(padID?: string, text?: string, authorId?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createPadUsingGET(padID?: string, text?: string, authorId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createPadUsingGET(padID, text, authorId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.createPadUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * creates a new (non-group) pad. Note that if you need to create a group Pad, you should call createGroupPad @@ -1904,9 +1923,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createPadUsingPOST(padID?: string, text?: string, authorId?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createPadUsingPOST(padID?: string, text?: string, authorId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createPadUsingPOST(padID, text, authorId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.createPadUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -1915,9 +1936,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deletePadUsingGET(padID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deletePadUsingGET(padID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deletePadUsingGET(padID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.deletePadUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -1926,9 +1949,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deletePadUsingPOST(padID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deletePadUsingPOST(padID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deletePadUsingPOST(padID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.deletePadUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -1937,9 +1962,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getChatHeadUsingGET(padID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getChatHeadUsingGET(padID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getChatHeadUsingGET(padID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.getChatHeadUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -1948,9 +1975,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getChatHeadUsingPOST(padID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getChatHeadUsingPOST(padID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getChatHeadUsingPOST(padID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.getChatHeadUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -1961,9 +1990,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getChatHistoryUsingGET(padID?: string, start?: string, end?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getChatHistoryUsingGET(padID?: string, start?: string, end?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getChatHistoryUsingGET(padID, start, end, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.getChatHistoryUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -1974,9 +2005,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getChatHistoryUsingPOST(padID?: string, start?: string, end?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getChatHistoryUsingPOST(padID?: string, start?: string, end?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getChatHistoryUsingPOST(padID, start, end, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.getChatHistoryUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -1986,9 +2019,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getHTMLUsingGET(padID?: string, rev?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getHTMLUsingGET(padID?: string, rev?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getHTMLUsingGET(padID, rev, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.getHTMLUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -1998,9 +2033,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getHTMLUsingPOST(padID?: string, rev?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getHTMLUsingPOST(padID?: string, rev?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getHTMLUsingPOST(padID, rev, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.getHTMLUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -2009,9 +2046,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getLastEditedUsingGET(padID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getLastEditedUsingGET(padID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getLastEditedUsingGET(padID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.getLastEditedUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -2020,9 +2059,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getLastEditedUsingPOST(padID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getLastEditedUsingPOST(padID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getLastEditedUsingPOST(padID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.getLastEditedUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -2031,9 +2072,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getPublicStatusUsingGET(padID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getPublicStatusUsingGET(padID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicStatusUsingGET(padID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.getPublicStatusUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -2042,9 +2085,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getPublicStatusUsingPOST(padID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getPublicStatusUsingPOST(padID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicStatusUsingPOST(padID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.getPublicStatusUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -2053,9 +2098,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getReadOnlyIDUsingGET(padID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getReadOnlyIDUsingGET(padID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getReadOnlyIDUsingGET(padID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.getReadOnlyIDUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -2064,9 +2111,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getReadOnlyIDUsingPOST(padID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getReadOnlyIDUsingPOST(padID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getReadOnlyIDUsingPOST(padID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.getReadOnlyIDUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -2075,9 +2124,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getRevisionsCountUsingGET(padID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getRevisionsCountUsingGET(padID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getRevisionsCountUsingGET(padID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.getRevisionsCountUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -2086,9 +2137,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getRevisionsCountUsingPOST(padID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getRevisionsCountUsingPOST(padID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getRevisionsCountUsingPOST(padID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.getRevisionsCountUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -2098,9 +2151,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getTextUsingGET(padID?: string, rev?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getTextUsingGET(padID?: string, rev?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getTextUsingGET(padID, rev, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.getTextUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -2110,9 +2165,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getTextUsingPOST(padID?: string, rev?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getTextUsingPOST(padID?: string, rev?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getTextUsingPOST(padID, rev, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.getTextUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -2120,9 +2177,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listAllPadsUsingGET(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async listAllPadsUsingGET(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listAllPadsUsingGET(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.listAllPadsUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -2130,9 +2189,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listAllPadsUsingPOST(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async listAllPadsUsingPOST(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listAllPadsUsingPOST(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.listAllPadsUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -2141,9 +2202,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listAuthorsOfPadUsingGET(padID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async listAuthorsOfPadUsingGET(padID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listAuthorsOfPadUsingGET(padID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.listAuthorsOfPadUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -2152,9 +2215,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listAuthorsOfPadUsingPOST(padID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async listAuthorsOfPadUsingPOST(padID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listAuthorsOfPadUsingPOST(padID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.listAuthorsOfPadUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -2163,9 +2228,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async padUsersCountUsingGET(padID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async padUsersCountUsingGET(padID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.padUsersCountUsingGET(padID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.padUsersCountUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -2174,9 +2241,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async padUsersCountUsingPOST(padID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async padUsersCountUsingPOST(padID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.padUsersCountUsingPOST(padID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.padUsersCountUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -2185,9 +2254,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async padUsersUsingGET(padID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async padUsersUsingGET(padID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.padUsersUsingGET(padID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.padUsersUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -2196,9 +2267,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async padUsersUsingPOST(padID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async padUsersUsingPOST(padID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.padUsersUsingPOST(padID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.padUsersUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -2208,9 +2281,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async sendClientsMessageUsingGET(padID?: string, msg?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async sendClientsMessageUsingGET(padID?: string, msg?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.sendClientsMessageUsingGET(padID, msg, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.sendClientsMessageUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -2220,9 +2295,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async sendClientsMessageUsingPOST(padID?: string, msg?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async sendClientsMessageUsingPOST(padID?: string, msg?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.sendClientsMessageUsingPOST(padID, msg, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.sendClientsMessageUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -2233,9 +2310,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async setHTMLUsingGET(padID?: string, html?: string, authorId?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async setHTMLUsingGET(padID?: string, html?: string, authorId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.setHTMLUsingGET(padID, html, authorId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.setHTMLUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -2246,9 +2325,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async setHTMLUsingPOST(padID?: string, html?: string, authorId?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async setHTMLUsingPOST(padID?: string, html?: string, authorId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.setHTMLUsingPOST(padID, html, authorId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.setHTMLUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -2258,9 +2339,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async setPublicStatusUsingGET(padID?: string, publicStatus?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async setPublicStatusUsingGET(padID?: string, publicStatus?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.setPublicStatusUsingGET(padID, publicStatus, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.setPublicStatusUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -2270,9 +2353,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async setPublicStatusUsingPOST(padID?: string, publicStatus?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async setPublicStatusUsingPOST(padID?: string, publicStatus?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.setPublicStatusUsingPOST(padID, publicStatus, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.setPublicStatusUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -2283,9 +2368,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async setTextUsingGET(padID?: string, text?: string, authorId?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async setTextUsingGET(padID?: string, text?: string, authorId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.setTextUsingGET(padID, text, authorId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.setTextUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -2296,9 +2383,11 @@ export const PadApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async setTextUsingPOST(padID?: string, text?: string, authorId?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async setTextUsingPOST(padID?: string, text?: string, authorId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.setTextUsingPOST(padID, text, authorId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['PadApi.setTextUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; @@ -2320,7 +2409,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - appendChatMessageUsingGET(padID?: string, text?: string, authorID?: string, time?: string, options?: any): AxiosPromise { + appendChatMessageUsingGET(padID?: string, text?: string, authorID?: string, time?: string, options?: any): AxiosPromise { return localVarFp.appendChatMessageUsingGET(padID, text, authorID, time, options).then((request) => request(axios, basePath)); }, /** @@ -2333,7 +2422,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - appendChatMessageUsingPOST(padID?: string, text?: string, authorID?: string, time?: string, options?: any): AxiosPromise { + appendChatMessageUsingPOST(padID?: string, text?: string, authorID?: string, time?: string, options?: any): AxiosPromise { return localVarFp.appendChatMessageUsingPOST(padID, text, authorID, time, options).then((request) => request(axios, basePath)); }, /** @@ -2342,7 +2431,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - checkTokenUsingGET(options?: any): AxiosPromise { + checkTokenUsingGET(options?: any): AxiosPromise { return localVarFp.checkTokenUsingGET(options).then((request) => request(axios, basePath)); }, /** @@ -2351,29 +2440,31 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - checkTokenUsingPOST(options?: any): AxiosPromise { + checkTokenUsingPOST(options?: any): AxiosPromise { return localVarFp.checkTokenUsingPOST(options).then((request) => request(axios, basePath)); }, /** * + * @summary * @param {string} [padID] * @param {string} [startRev] * @param {string} [endRev] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createDiffHTMLUsingGET(padID?: string, startRev?: string, endRev?: string, options?: any): AxiosPromise { + createDiffHTMLUsingGET(padID?: string, startRev?: string, endRev?: string, options?: any): AxiosPromise { return localVarFp.createDiffHTMLUsingGET(padID, startRev, endRev, options).then((request) => request(axios, basePath)); }, /** * + * @summary * @param {string} [padID] * @param {string} [startRev] * @param {string} [endRev] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createDiffHTMLUsingPOST(padID?: string, startRev?: string, endRev?: string, options?: any): AxiosPromise { + createDiffHTMLUsingPOST(padID?: string, startRev?: string, endRev?: string, options?: any): AxiosPromise { return localVarFp.createDiffHTMLUsingPOST(padID, startRev, endRev, options).then((request) => request(axios, basePath)); }, /** @@ -2384,7 +2475,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createPadUsingGET(padID?: string, text?: string, authorId?: string, options?: any): AxiosPromise { + createPadUsingGET(padID?: string, text?: string, authorId?: string, options?: any): AxiosPromise { return localVarFp.createPadUsingGET(padID, text, authorId, options).then((request) => request(axios, basePath)); }, /** @@ -2395,7 +2486,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createPadUsingPOST(padID?: string, text?: string, authorId?: string, options?: any): AxiosPromise { + createPadUsingPOST(padID?: string, text?: string, authorId?: string, options?: any): AxiosPromise { return localVarFp.createPadUsingPOST(padID, text, authorId, options).then((request) => request(axios, basePath)); }, /** @@ -2405,7 +2496,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deletePadUsingGET(padID?: string, options?: any): AxiosPromise { + deletePadUsingGET(padID?: string, options?: any): AxiosPromise { return localVarFp.deletePadUsingGET(padID, options).then((request) => request(axios, basePath)); }, /** @@ -2415,7 +2506,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deletePadUsingPOST(padID?: string, options?: any): AxiosPromise { + deletePadUsingPOST(padID?: string, options?: any): AxiosPromise { return localVarFp.deletePadUsingPOST(padID, options).then((request) => request(axios, basePath)); }, /** @@ -2425,7 +2516,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getChatHeadUsingGET(padID?: string, options?: any): AxiosPromise { + getChatHeadUsingGET(padID?: string, options?: any): AxiosPromise { return localVarFp.getChatHeadUsingGET(padID, options).then((request) => request(axios, basePath)); }, /** @@ -2435,7 +2526,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getChatHeadUsingPOST(padID?: string, options?: any): AxiosPromise { + getChatHeadUsingPOST(padID?: string, options?: any): AxiosPromise { return localVarFp.getChatHeadUsingPOST(padID, options).then((request) => request(axios, basePath)); }, /** @@ -2447,7 +2538,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getChatHistoryUsingGET(padID?: string, start?: string, end?: string, options?: any): AxiosPromise { + getChatHistoryUsingGET(padID?: string, start?: string, end?: string, options?: any): AxiosPromise { return localVarFp.getChatHistoryUsingGET(padID, start, end, options).then((request) => request(axios, basePath)); }, /** @@ -2459,7 +2550,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getChatHistoryUsingPOST(padID?: string, start?: string, end?: string, options?: any): AxiosPromise { + getChatHistoryUsingPOST(padID?: string, start?: string, end?: string, options?: any): AxiosPromise { return localVarFp.getChatHistoryUsingPOST(padID, start, end, options).then((request) => request(axios, basePath)); }, /** @@ -2470,7 +2561,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getHTMLUsingGET(padID?: string, rev?: string, options?: any): AxiosPromise { + getHTMLUsingGET(padID?: string, rev?: string, options?: any): AxiosPromise { return localVarFp.getHTMLUsingGET(padID, rev, options).then((request) => request(axios, basePath)); }, /** @@ -2481,7 +2572,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getHTMLUsingPOST(padID?: string, rev?: string, options?: any): AxiosPromise { + getHTMLUsingPOST(padID?: string, rev?: string, options?: any): AxiosPromise { return localVarFp.getHTMLUsingPOST(padID, rev, options).then((request) => request(axios, basePath)); }, /** @@ -2491,7 +2582,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getLastEditedUsingGET(padID?: string, options?: any): AxiosPromise { + getLastEditedUsingGET(padID?: string, options?: any): AxiosPromise { return localVarFp.getLastEditedUsingGET(padID, options).then((request) => request(axios, basePath)); }, /** @@ -2501,7 +2592,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getLastEditedUsingPOST(padID?: string, options?: any): AxiosPromise { + getLastEditedUsingPOST(padID?: string, options?: any): AxiosPromise { return localVarFp.getLastEditedUsingPOST(padID, options).then((request) => request(axios, basePath)); }, /** @@ -2511,7 +2602,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getPublicStatusUsingGET(padID?: string, options?: any): AxiosPromise { + getPublicStatusUsingGET(padID?: string, options?: any): AxiosPromise { return localVarFp.getPublicStatusUsingGET(padID, options).then((request) => request(axios, basePath)); }, /** @@ -2521,7 +2612,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getPublicStatusUsingPOST(padID?: string, options?: any): AxiosPromise { + getPublicStatusUsingPOST(padID?: string, options?: any): AxiosPromise { return localVarFp.getPublicStatusUsingPOST(padID, options).then((request) => request(axios, basePath)); }, /** @@ -2531,7 +2622,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getReadOnlyIDUsingGET(padID?: string, options?: any): AxiosPromise { + getReadOnlyIDUsingGET(padID?: string, options?: any): AxiosPromise { return localVarFp.getReadOnlyIDUsingGET(padID, options).then((request) => request(axios, basePath)); }, /** @@ -2541,7 +2632,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getReadOnlyIDUsingPOST(padID?: string, options?: any): AxiosPromise { + getReadOnlyIDUsingPOST(padID?: string, options?: any): AxiosPromise { return localVarFp.getReadOnlyIDUsingPOST(padID, options).then((request) => request(axios, basePath)); }, /** @@ -2551,7 +2642,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getRevisionsCountUsingGET(padID?: string, options?: any): AxiosPromise { + getRevisionsCountUsingGET(padID?: string, options?: any): AxiosPromise { return localVarFp.getRevisionsCountUsingGET(padID, options).then((request) => request(axios, basePath)); }, /** @@ -2561,7 +2652,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getRevisionsCountUsingPOST(padID?: string, options?: any): AxiosPromise { + getRevisionsCountUsingPOST(padID?: string, options?: any): AxiosPromise { return localVarFp.getRevisionsCountUsingPOST(padID, options).then((request) => request(axios, basePath)); }, /** @@ -2572,7 +2663,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getTextUsingGET(padID?: string, rev?: string, options?: any): AxiosPromise { + getTextUsingGET(padID?: string, rev?: string, options?: any): AxiosPromise { return localVarFp.getTextUsingGET(padID, rev, options).then((request) => request(axios, basePath)); }, /** @@ -2583,7 +2674,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getTextUsingPOST(padID?: string, rev?: string, options?: any): AxiosPromise { + getTextUsingPOST(padID?: string, rev?: string, options?: any): AxiosPromise { return localVarFp.getTextUsingPOST(padID, rev, options).then((request) => request(axios, basePath)); }, /** @@ -2592,7 +2683,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listAllPadsUsingGET(options?: any): AxiosPromise { + listAllPadsUsingGET(options?: any): AxiosPromise { return localVarFp.listAllPadsUsingGET(options).then((request) => request(axios, basePath)); }, /** @@ -2601,7 +2692,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listAllPadsUsingPOST(options?: any): AxiosPromise { + listAllPadsUsingPOST(options?: any): AxiosPromise { return localVarFp.listAllPadsUsingPOST(options).then((request) => request(axios, basePath)); }, /** @@ -2611,7 +2702,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listAuthorsOfPadUsingGET(padID?: string, options?: any): AxiosPromise { + listAuthorsOfPadUsingGET(padID?: string, options?: any): AxiosPromise { return localVarFp.listAuthorsOfPadUsingGET(padID, options).then((request) => request(axios, basePath)); }, /** @@ -2621,7 +2712,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listAuthorsOfPadUsingPOST(padID?: string, options?: any): AxiosPromise { + listAuthorsOfPadUsingPOST(padID?: string, options?: any): AxiosPromise { return localVarFp.listAuthorsOfPadUsingPOST(padID, options).then((request) => request(axios, basePath)); }, /** @@ -2631,7 +2722,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - padUsersCountUsingGET(padID?: string, options?: any): AxiosPromise { + padUsersCountUsingGET(padID?: string, options?: any): AxiosPromise { return localVarFp.padUsersCountUsingGET(padID, options).then((request) => request(axios, basePath)); }, /** @@ -2641,7 +2732,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - padUsersCountUsingPOST(padID?: string, options?: any): AxiosPromise { + padUsersCountUsingPOST(padID?: string, options?: any): AxiosPromise { return localVarFp.padUsersCountUsingPOST(padID, options).then((request) => request(axios, basePath)); }, /** @@ -2651,7 +2742,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - padUsersUsingGET(padID?: string, options?: any): AxiosPromise { + padUsersUsingGET(padID?: string, options?: any): AxiosPromise { return localVarFp.padUsersUsingGET(padID, options).then((request) => request(axios, basePath)); }, /** @@ -2661,7 +2752,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - padUsersUsingPOST(padID?: string, options?: any): AxiosPromise { + padUsersUsingPOST(padID?: string, options?: any): AxiosPromise { return localVarFp.padUsersUsingPOST(padID, options).then((request) => request(axios, basePath)); }, /** @@ -2672,7 +2763,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - sendClientsMessageUsingGET(padID?: string, msg?: string, options?: any): AxiosPromise { + sendClientsMessageUsingGET(padID?: string, msg?: string, options?: any): AxiosPromise { return localVarFp.sendClientsMessageUsingGET(padID, msg, options).then((request) => request(axios, basePath)); }, /** @@ -2683,7 +2774,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - sendClientsMessageUsingPOST(padID?: string, msg?: string, options?: any): AxiosPromise { + sendClientsMessageUsingPOST(padID?: string, msg?: string, options?: any): AxiosPromise { return localVarFp.sendClientsMessageUsingPOST(padID, msg, options).then((request) => request(axios, basePath)); }, /** @@ -2695,7 +2786,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setHTMLUsingGET(padID?: string, html?: string, authorId?: string, options?: any): AxiosPromise { + setHTMLUsingGET(padID?: string, html?: string, authorId?: string, options?: any): AxiosPromise { return localVarFp.setHTMLUsingGET(padID, html, authorId, options).then((request) => request(axios, basePath)); }, /** @@ -2707,7 +2798,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setHTMLUsingPOST(padID?: string, html?: string, authorId?: string, options?: any): AxiosPromise { + setHTMLUsingPOST(padID?: string, html?: string, authorId?: string, options?: any): AxiosPromise { return localVarFp.setHTMLUsingPOST(padID, html, authorId, options).then((request) => request(axios, basePath)); }, /** @@ -2718,7 +2809,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setPublicStatusUsingGET(padID?: string, publicStatus?: string, options?: any): AxiosPromise { + setPublicStatusUsingGET(padID?: string, publicStatus?: string, options?: any): AxiosPromise { return localVarFp.setPublicStatusUsingGET(padID, publicStatus, options).then((request) => request(axios, basePath)); }, /** @@ -2729,7 +2820,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setPublicStatusUsingPOST(padID?: string, publicStatus?: string, options?: any): AxiosPromise { + setPublicStatusUsingPOST(padID?: string, publicStatus?: string, options?: any): AxiosPromise { return localVarFp.setPublicStatusUsingPOST(padID, publicStatus, options).then((request) => request(axios, basePath)); }, /** @@ -2741,7 +2832,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setTextUsingGET(padID?: string, text?: string, authorId?: string, options?: any): AxiosPromise { + setTextUsingGET(padID?: string, text?: string, authorId?: string, options?: any): AxiosPromise { return localVarFp.setTextUsingGET(padID, text, authorId, options).then((request) => request(axios, basePath)); }, /** @@ -2753,7 +2844,7 @@ export const PadApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setTextUsingPOST(padID?: string, text?: string, authorId?: string, options?: any): AxiosPromise { + setTextUsingPOST(padID?: string, text?: string, authorId?: string, options?: any): AxiosPromise { return localVarFp.setTextUsingPOST(padID, text, authorId, options).then((request) => request(axios, basePath)); }, }; @@ -2776,7 +2867,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - appendChatMessageUsingGET(padID?: string, text?: string, authorID?: string, time?: string, options?: any): AxiosPromise; + appendChatMessageUsingGET(padID?: string, text?: string, authorID?: string, time?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -2789,7 +2880,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - appendChatMessageUsingPOST(padID?: string, text?: string, authorID?: string, time?: string, options?: any): AxiosPromise; + appendChatMessageUsingPOST(padID?: string, text?: string, authorID?: string, time?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -2798,7 +2889,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - checkTokenUsingGET(options?: any): AxiosPromise; + checkTokenUsingGET(options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -2807,10 +2898,11 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - checkTokenUsingPOST(options?: any): AxiosPromise; + checkTokenUsingPOST(options?: RawAxiosRequestConfig): AxiosPromise; /** * + * @summary * @param {string} [padID] * @param {string} [startRev] * @param {string} [endRev] @@ -2818,10 +2910,11 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - createDiffHTMLUsingGET(padID?: string, startRev?: string, endRev?: string, options?: any): AxiosPromise; + createDiffHTMLUsingGET(padID?: string, startRev?: string, endRev?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * + * @summary * @param {string} [padID] * @param {string} [startRev] * @param {string} [endRev] @@ -2829,7 +2922,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - createDiffHTMLUsingPOST(padID?: string, startRev?: string, endRev?: string, options?: any): AxiosPromise; + createDiffHTMLUsingPOST(padID?: string, startRev?: string, endRev?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * creates a new (non-group) pad. Note that if you need to create a group Pad, you should call createGroupPad @@ -2840,7 +2933,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - createPadUsingGET(padID?: string, text?: string, authorId?: string, options?: any): AxiosPromise; + createPadUsingGET(padID?: string, text?: string, authorId?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * creates a new (non-group) pad. Note that if you need to create a group Pad, you should call createGroupPad @@ -2851,7 +2944,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - createPadUsingPOST(padID?: string, text?: string, authorId?: string, options?: any): AxiosPromise; + createPadUsingPOST(padID?: string, text?: string, authorId?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -2861,7 +2954,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - deletePadUsingGET(padID?: string, options?: any): AxiosPromise; + deletePadUsingGET(padID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -2871,7 +2964,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - deletePadUsingPOST(padID?: string, options?: any): AxiosPromise; + deletePadUsingPOST(padID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -2881,7 +2974,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - getChatHeadUsingGET(padID?: string, options?: any): AxiosPromise; + getChatHeadUsingGET(padID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -2891,7 +2984,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - getChatHeadUsingPOST(padID?: string, options?: any): AxiosPromise; + getChatHeadUsingPOST(padID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -2903,7 +2996,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - getChatHistoryUsingGET(padID?: string, start?: string, end?: string, options?: any): AxiosPromise; + getChatHistoryUsingGET(padID?: string, start?: string, end?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -2915,7 +3008,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - getChatHistoryUsingPOST(padID?: string, start?: string, end?: string, options?: any): AxiosPromise; + getChatHistoryUsingPOST(padID?: string, start?: string, end?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -2926,7 +3019,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - getHTMLUsingGET(padID?: string, rev?: string, options?: any): AxiosPromise; + getHTMLUsingGET(padID?: string, rev?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -2937,7 +3030,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - getHTMLUsingPOST(padID?: string, rev?: string, options?: any): AxiosPromise; + getHTMLUsingPOST(padID?: string, rev?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -2947,7 +3040,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - getLastEditedUsingGET(padID?: string, options?: any): AxiosPromise; + getLastEditedUsingGET(padID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -2957,7 +3050,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - getLastEditedUsingPOST(padID?: string, options?: any): AxiosPromise; + getLastEditedUsingPOST(padID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -2967,7 +3060,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - getPublicStatusUsingGET(padID?: string, options?: any): AxiosPromise; + getPublicStatusUsingGET(padID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -2977,7 +3070,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - getPublicStatusUsingPOST(padID?: string, options?: any): AxiosPromise; + getPublicStatusUsingPOST(padID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -2987,7 +3080,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - getReadOnlyIDUsingGET(padID?: string, options?: any): AxiosPromise; + getReadOnlyIDUsingGET(padID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -2997,7 +3090,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - getReadOnlyIDUsingPOST(padID?: string, options?: any): AxiosPromise; + getReadOnlyIDUsingPOST(padID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -3007,7 +3100,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - getRevisionsCountUsingGET(padID?: string, options?: any): AxiosPromise; + getRevisionsCountUsingGET(padID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -3017,7 +3110,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - getRevisionsCountUsingPOST(padID?: string, options?: any): AxiosPromise; + getRevisionsCountUsingPOST(padID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -3028,7 +3121,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - getTextUsingGET(padID?: string, rev?: string, options?: any): AxiosPromise; + getTextUsingGET(padID?: string, rev?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -3039,7 +3132,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - getTextUsingPOST(padID?: string, rev?: string, options?: any): AxiosPromise; + getTextUsingPOST(padID?: string, rev?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -3048,7 +3141,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - listAllPadsUsingGET(options?: any): AxiosPromise; + listAllPadsUsingGET(options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -3057,7 +3150,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - listAllPadsUsingPOST(options?: any): AxiosPromise; + listAllPadsUsingPOST(options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -3067,7 +3160,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - listAuthorsOfPadUsingGET(padID?: string, options?: any): AxiosPromise; + listAuthorsOfPadUsingGET(padID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -3077,7 +3170,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - listAuthorsOfPadUsingPOST(padID?: string, options?: any): AxiosPromise; + listAuthorsOfPadUsingPOST(padID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -3087,7 +3180,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - padUsersCountUsingGET(padID?: string, options?: any): AxiosPromise; + padUsersCountUsingGET(padID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -3097,7 +3190,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - padUsersCountUsingPOST(padID?: string, options?: any): AxiosPromise; + padUsersCountUsingPOST(padID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -3107,7 +3200,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - padUsersUsingGET(padID?: string, options?: any): AxiosPromise; + padUsersUsingGET(padID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -3117,7 +3210,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - padUsersUsingPOST(padID?: string, options?: any): AxiosPromise; + padUsersUsingPOST(padID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -3128,7 +3221,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - sendClientsMessageUsingGET(padID?: string, msg?: string, options?: any): AxiosPromise; + sendClientsMessageUsingGET(padID?: string, msg?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -3139,7 +3232,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - sendClientsMessageUsingPOST(padID?: string, msg?: string, options?: any): AxiosPromise; + sendClientsMessageUsingPOST(padID?: string, msg?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -3151,7 +3244,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - setHTMLUsingGET(padID?: string, html?: string, authorId?: string, options?: any): AxiosPromise; + setHTMLUsingGET(padID?: string, html?: string, authorId?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -3163,7 +3256,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - setHTMLUsingPOST(padID?: string, html?: string, authorId?: string, options?: any): AxiosPromise; + setHTMLUsingPOST(padID?: string, html?: string, authorId?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -3174,7 +3267,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - setPublicStatusUsingGET(padID?: string, publicStatus?: string, options?: any): AxiosPromise; + setPublicStatusUsingGET(padID?: string, publicStatus?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -3185,7 +3278,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - setPublicStatusUsingPOST(padID?: string, publicStatus?: string, options?: any): AxiosPromise; + setPublicStatusUsingPOST(padID?: string, publicStatus?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -3197,7 +3290,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - setTextUsingGET(padID?: string, text?: string, authorId?: string, options?: any): AxiosPromise; + setTextUsingGET(padID?: string, text?: string, authorId?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -3209,7 +3302,7 @@ export interface PadApiInterface { * @throws {RequiredError} * @memberof PadApiInterface */ - setTextUsingPOST(padID?: string, text?: string, authorId?: string, options?: any): AxiosPromise; + setTextUsingPOST(padID?: string, text?: string, authorId?: string, options?: RawAxiosRequestConfig): AxiosPromise; } @@ -3231,7 +3324,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public appendChatMessageUsingGET(padID?: string, text?: string, authorID?: string, time?: string, options?: any) { + public appendChatMessageUsingGET(padID?: string, text?: string, authorID?: string, time?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).appendChatMessageUsingGET(padID, text, authorID, time, options).then((request) => request(this.axios, this.basePath)); } @@ -3246,7 +3339,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public appendChatMessageUsingPOST(padID?: string, text?: string, authorID?: string, time?: string, options?: any) { + public appendChatMessageUsingPOST(padID?: string, text?: string, authorID?: string, time?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).appendChatMessageUsingPOST(padID, text, authorID, time, options).then((request) => request(this.axios, this.basePath)); } @@ -3257,7 +3350,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public checkTokenUsingGET(options?: any) { + public checkTokenUsingGET(options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).checkTokenUsingGET(options).then((request) => request(this.axios, this.basePath)); } @@ -3268,12 +3361,13 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public checkTokenUsingPOST(options?: any) { + public checkTokenUsingPOST(options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).checkTokenUsingPOST(options).then((request) => request(this.axios, this.basePath)); } /** * + * @summary * @param {string} [padID] * @param {string} [startRev] * @param {string} [endRev] @@ -3281,12 +3375,13 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public createDiffHTMLUsingGET(padID?: string, startRev?: string, endRev?: string, options?: any) { + public createDiffHTMLUsingGET(padID?: string, startRev?: string, endRev?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).createDiffHTMLUsingGET(padID, startRev, endRev, options).then((request) => request(this.axios, this.basePath)); } /** * + * @summary * @param {string} [padID] * @param {string} [startRev] * @param {string} [endRev] @@ -3294,7 +3389,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public createDiffHTMLUsingPOST(padID?: string, startRev?: string, endRev?: string, options?: any) { + public createDiffHTMLUsingPOST(padID?: string, startRev?: string, endRev?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).createDiffHTMLUsingPOST(padID, startRev, endRev, options).then((request) => request(this.axios, this.basePath)); } @@ -3307,7 +3402,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public createPadUsingGET(padID?: string, text?: string, authorId?: string, options?: any) { + public createPadUsingGET(padID?: string, text?: string, authorId?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).createPadUsingGET(padID, text, authorId, options).then((request) => request(this.axios, this.basePath)); } @@ -3320,7 +3415,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public createPadUsingPOST(padID?: string, text?: string, authorId?: string, options?: any) { + public createPadUsingPOST(padID?: string, text?: string, authorId?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).createPadUsingPOST(padID, text, authorId, options).then((request) => request(this.axios, this.basePath)); } @@ -3332,7 +3427,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public deletePadUsingGET(padID?: string, options?: any) { + public deletePadUsingGET(padID?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).deletePadUsingGET(padID, options).then((request) => request(this.axios, this.basePath)); } @@ -3344,7 +3439,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public deletePadUsingPOST(padID?: string, options?: any) { + public deletePadUsingPOST(padID?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).deletePadUsingPOST(padID, options).then((request) => request(this.axios, this.basePath)); } @@ -3356,7 +3451,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public getChatHeadUsingGET(padID?: string, options?: any) { + public getChatHeadUsingGET(padID?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).getChatHeadUsingGET(padID, options).then((request) => request(this.axios, this.basePath)); } @@ -3368,7 +3463,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public getChatHeadUsingPOST(padID?: string, options?: any) { + public getChatHeadUsingPOST(padID?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).getChatHeadUsingPOST(padID, options).then((request) => request(this.axios, this.basePath)); } @@ -3382,7 +3477,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public getChatHistoryUsingGET(padID?: string, start?: string, end?: string, options?: any) { + public getChatHistoryUsingGET(padID?: string, start?: string, end?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).getChatHistoryUsingGET(padID, start, end, options).then((request) => request(this.axios, this.basePath)); } @@ -3396,7 +3491,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public getChatHistoryUsingPOST(padID?: string, start?: string, end?: string, options?: any) { + public getChatHistoryUsingPOST(padID?: string, start?: string, end?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).getChatHistoryUsingPOST(padID, start, end, options).then((request) => request(this.axios, this.basePath)); } @@ -3409,7 +3504,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public getHTMLUsingGET(padID?: string, rev?: string, options?: any) { + public getHTMLUsingGET(padID?: string, rev?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).getHTMLUsingGET(padID, rev, options).then((request) => request(this.axios, this.basePath)); } @@ -3422,7 +3517,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public getHTMLUsingPOST(padID?: string, rev?: string, options?: any) { + public getHTMLUsingPOST(padID?: string, rev?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).getHTMLUsingPOST(padID, rev, options).then((request) => request(this.axios, this.basePath)); } @@ -3434,7 +3529,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public getLastEditedUsingGET(padID?: string, options?: any) { + public getLastEditedUsingGET(padID?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).getLastEditedUsingGET(padID, options).then((request) => request(this.axios, this.basePath)); } @@ -3446,7 +3541,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public getLastEditedUsingPOST(padID?: string, options?: any) { + public getLastEditedUsingPOST(padID?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).getLastEditedUsingPOST(padID, options).then((request) => request(this.axios, this.basePath)); } @@ -3458,7 +3553,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public getPublicStatusUsingGET(padID?: string, options?: any) { + public getPublicStatusUsingGET(padID?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).getPublicStatusUsingGET(padID, options).then((request) => request(this.axios, this.basePath)); } @@ -3470,7 +3565,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public getPublicStatusUsingPOST(padID?: string, options?: any) { + public getPublicStatusUsingPOST(padID?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).getPublicStatusUsingPOST(padID, options).then((request) => request(this.axios, this.basePath)); } @@ -3482,7 +3577,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public getReadOnlyIDUsingGET(padID?: string, options?: any) { + public getReadOnlyIDUsingGET(padID?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).getReadOnlyIDUsingGET(padID, options).then((request) => request(this.axios, this.basePath)); } @@ -3494,7 +3589,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public getReadOnlyIDUsingPOST(padID?: string, options?: any) { + public getReadOnlyIDUsingPOST(padID?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).getReadOnlyIDUsingPOST(padID, options).then((request) => request(this.axios, this.basePath)); } @@ -3506,7 +3601,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public getRevisionsCountUsingGET(padID?: string, options?: any) { + public getRevisionsCountUsingGET(padID?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).getRevisionsCountUsingGET(padID, options).then((request) => request(this.axios, this.basePath)); } @@ -3518,7 +3613,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public getRevisionsCountUsingPOST(padID?: string, options?: any) { + public getRevisionsCountUsingPOST(padID?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).getRevisionsCountUsingPOST(padID, options).then((request) => request(this.axios, this.basePath)); } @@ -3531,7 +3626,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public getTextUsingGET(padID?: string, rev?: string, options?: any) { + public getTextUsingGET(padID?: string, rev?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).getTextUsingGET(padID, rev, options).then((request) => request(this.axios, this.basePath)); } @@ -3544,7 +3639,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public getTextUsingPOST(padID?: string, rev?: string, options?: any) { + public getTextUsingPOST(padID?: string, rev?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).getTextUsingPOST(padID, rev, options).then((request) => request(this.axios, this.basePath)); } @@ -3555,7 +3650,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public listAllPadsUsingGET(options?: any) { + public listAllPadsUsingGET(options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).listAllPadsUsingGET(options).then((request) => request(this.axios, this.basePath)); } @@ -3566,7 +3661,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public listAllPadsUsingPOST(options?: any) { + public listAllPadsUsingPOST(options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).listAllPadsUsingPOST(options).then((request) => request(this.axios, this.basePath)); } @@ -3578,7 +3673,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public listAuthorsOfPadUsingGET(padID?: string, options?: any) { + public listAuthorsOfPadUsingGET(padID?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).listAuthorsOfPadUsingGET(padID, options).then((request) => request(this.axios, this.basePath)); } @@ -3590,7 +3685,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public listAuthorsOfPadUsingPOST(padID?: string, options?: any) { + public listAuthorsOfPadUsingPOST(padID?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).listAuthorsOfPadUsingPOST(padID, options).then((request) => request(this.axios, this.basePath)); } @@ -3602,7 +3697,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public padUsersCountUsingGET(padID?: string, options?: any) { + public padUsersCountUsingGET(padID?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).padUsersCountUsingGET(padID, options).then((request) => request(this.axios, this.basePath)); } @@ -3614,7 +3709,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public padUsersCountUsingPOST(padID?: string, options?: any) { + public padUsersCountUsingPOST(padID?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).padUsersCountUsingPOST(padID, options).then((request) => request(this.axios, this.basePath)); } @@ -3626,7 +3721,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public padUsersUsingGET(padID?: string, options?: any) { + public padUsersUsingGET(padID?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).padUsersUsingGET(padID, options).then((request) => request(this.axios, this.basePath)); } @@ -3638,7 +3733,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public padUsersUsingPOST(padID?: string, options?: any) { + public padUsersUsingPOST(padID?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).padUsersUsingPOST(padID, options).then((request) => request(this.axios, this.basePath)); } @@ -3651,7 +3746,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public sendClientsMessageUsingGET(padID?: string, msg?: string, options?: any) { + public sendClientsMessageUsingGET(padID?: string, msg?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).sendClientsMessageUsingGET(padID, msg, options).then((request) => request(this.axios, this.basePath)); } @@ -3664,7 +3759,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public sendClientsMessageUsingPOST(padID?: string, msg?: string, options?: any) { + public sendClientsMessageUsingPOST(padID?: string, msg?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).sendClientsMessageUsingPOST(padID, msg, options).then((request) => request(this.axios, this.basePath)); } @@ -3678,7 +3773,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public setHTMLUsingGET(padID?: string, html?: string, authorId?: string, options?: any) { + public setHTMLUsingGET(padID?: string, html?: string, authorId?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).setHTMLUsingGET(padID, html, authorId, options).then((request) => request(this.axios, this.basePath)); } @@ -3692,7 +3787,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public setHTMLUsingPOST(padID?: string, html?: string, authorId?: string, options?: any) { + public setHTMLUsingPOST(padID?: string, html?: string, authorId?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).setHTMLUsingPOST(padID, html, authorId, options).then((request) => request(this.axios, this.basePath)); } @@ -3705,7 +3800,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public setPublicStatusUsingGET(padID?: string, publicStatus?: string, options?: any) { + public setPublicStatusUsingGET(padID?: string, publicStatus?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).setPublicStatusUsingGET(padID, publicStatus, options).then((request) => request(this.axios, this.basePath)); } @@ -3718,7 +3813,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public setPublicStatusUsingPOST(padID?: string, publicStatus?: string, options?: any) { + public setPublicStatusUsingPOST(padID?: string, publicStatus?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).setPublicStatusUsingPOST(padID, publicStatus, options).then((request) => request(this.axios, this.basePath)); } @@ -3732,7 +3827,7 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public setTextUsingGET(padID?: string, text?: string, authorId?: string, options?: any) { + public setTextUsingGET(padID?: string, text?: string, authorId?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).setTextUsingGET(padID, text, authorId, options).then((request) => request(this.axios, this.basePath)); } @@ -3746,7 +3841,8 @@ export class PadApi extends BaseAPI implements PadApiInterface { * @throws {RequiredError} * @memberof PadApi */ - public setTextUsingPOST(padID?: string, text?: string, authorId?: string, options?: any) { + public setTextUsingPOST(padID?: string, text?: string, authorId?: string, options?: RawAxiosRequestConfig) { return PadApiFp(this.configuration).setTextUsingPOST(padID, text, authorId, options).then((request) => request(this.axios, this.basePath)); } } + diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/api/session-api.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/api/session-api.ts index e43546095ce..6a5f0b3bfb6 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/api/session-api.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/api/session-api.ts @@ -13,25 +13,26 @@ */ -import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; -import { Configuration } from '../configuration'; +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } 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'; +import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore -import { InlineResponse2001 } from '../models'; +import type { CreateGroupUsingGET400Response } from '../models'; // @ts-ignore -import { InlineResponse2004 } from '../models'; +import type { CreateGroupUsingGET401Response } from '../models'; // @ts-ignore -import { InlineResponse2005 } from '../models'; +import type { CreateGroupUsingGET500Response } from '../models'; // @ts-ignore -import { InlineResponse400 } from '../models'; +import type { CreateSessionUsingGET200Response } from '../models'; // @ts-ignore -import { InlineResponse401 } from '../models'; +import type { DeleteGroupUsingGET200Response } from '../models'; // @ts-ignore -import { InlineResponse500 } from '../models'; +import type { GetSessionInfoUsingGET200Response } from '../models'; /** * SessionApi - axios parameter creator * @export @@ -47,7 +48,7 @@ export const SessionApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createSessionUsingGET: async (groupID?: string, authorID?: string, validUntil?: string, options: any = {}): Promise => { + createSessionUsingGET: async (groupID?: string, authorID?: string, validUntil?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/createSession`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -77,7 +78,7 @@ export const SessionApiAxiosParamCreator = function (configuration?: Configurati - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -95,7 +96,7 @@ export const SessionApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createSessionUsingPOST: async (groupID?: string, authorID?: string, validUntil?: string, options: any = {}): Promise => { + createSessionUsingPOST: async (groupID?: string, authorID?: string, validUntil?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/createSession`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -125,7 +126,7 @@ export const SessionApiAxiosParamCreator = function (configuration?: Configurati - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -141,7 +142,7 @@ export const SessionApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteSessionUsingGET: async (sessionID?: string, options: any = {}): Promise => { + deleteSessionUsingGET: async (sessionID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/deleteSession`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -163,7 +164,7 @@ export const SessionApiAxiosParamCreator = function (configuration?: Configurati - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -179,7 +180,7 @@ export const SessionApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteSessionUsingPOST: async (sessionID?: string, options: any = {}): Promise => { + deleteSessionUsingPOST: async (sessionID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/deleteSession`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -201,7 +202,7 @@ export const SessionApiAxiosParamCreator = function (configuration?: Configurati - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -217,7 +218,7 @@ export const SessionApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getSessionInfoUsingGET: async (sessionID?: string, options: any = {}): Promise => { + getSessionInfoUsingGET: async (sessionID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/getSessionInfo`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -239,7 +240,7 @@ export const SessionApiAxiosParamCreator = function (configuration?: Configurati - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -255,7 +256,7 @@ export const SessionApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getSessionInfoUsingPOST: async (sessionID?: string, options: any = {}): Promise => { + getSessionInfoUsingPOST: async (sessionID?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/getSessionInfo`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -277,7 +278,7 @@ export const SessionApiAxiosParamCreator = function (configuration?: Configurati - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -305,9 +306,11 @@ export const SessionApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createSessionUsingGET(groupID?: string, authorID?: string, validUntil?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createSessionUsingGET(groupID?: string, authorID?: string, validUntil?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createSessionUsingGET(groupID, authorID, validUntil, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['SessionApi.createSessionUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -318,9 +321,11 @@ export const SessionApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createSessionUsingPOST(groupID?: string, authorID?: string, validUntil?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createSessionUsingPOST(groupID?: string, authorID?: string, validUntil?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createSessionUsingPOST(groupID, authorID, validUntil, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['SessionApi.createSessionUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -329,9 +334,11 @@ export const SessionApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteSessionUsingGET(sessionID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteSessionUsingGET(sessionID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSessionUsingGET(sessionID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['SessionApi.deleteSessionUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -340,9 +347,11 @@ export const SessionApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteSessionUsingPOST(sessionID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteSessionUsingPOST(sessionID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSessionUsingPOST(sessionID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['SessionApi.deleteSessionUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -351,9 +360,11 @@ export const SessionApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getSessionInfoUsingGET(sessionID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getSessionInfoUsingGET(sessionID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getSessionInfoUsingGET(sessionID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['SessionApi.getSessionInfoUsingGET']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * @@ -362,9 +373,11 @@ export const SessionApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getSessionInfoUsingPOST(sessionID?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getSessionInfoUsingPOST(sessionID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getSessionInfoUsingPOST(sessionID, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['SessionApi.getSessionInfoUsingPOST']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; @@ -385,7 +398,7 @@ export const SessionApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createSessionUsingGET(groupID?: string, authorID?: string, validUntil?: string, options?: any): AxiosPromise { + createSessionUsingGET(groupID?: string, authorID?: string, validUntil?: string, options?: any): AxiosPromise { return localVarFp.createSessionUsingGET(groupID, authorID, validUntil, options).then((request) => request(axios, basePath)); }, /** @@ -397,7 +410,7 @@ export const SessionApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createSessionUsingPOST(groupID?: string, authorID?: string, validUntil?: string, options?: any): AxiosPromise { + createSessionUsingPOST(groupID?: string, authorID?: string, validUntil?: string, options?: any): AxiosPromise { return localVarFp.createSessionUsingPOST(groupID, authorID, validUntil, options).then((request) => request(axios, basePath)); }, /** @@ -407,7 +420,7 @@ export const SessionApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteSessionUsingGET(sessionID?: string, options?: any): AxiosPromise { + deleteSessionUsingGET(sessionID?: string, options?: any): AxiosPromise { return localVarFp.deleteSessionUsingGET(sessionID, options).then((request) => request(axios, basePath)); }, /** @@ -417,7 +430,7 @@ export const SessionApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteSessionUsingPOST(sessionID?: string, options?: any): AxiosPromise { + deleteSessionUsingPOST(sessionID?: string, options?: any): AxiosPromise { return localVarFp.deleteSessionUsingPOST(sessionID, options).then((request) => request(axios, basePath)); }, /** @@ -427,7 +440,7 @@ export const SessionApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getSessionInfoUsingGET(sessionID?: string, options?: any): AxiosPromise { + getSessionInfoUsingGET(sessionID?: string, options?: any): AxiosPromise { return localVarFp.getSessionInfoUsingGET(sessionID, options).then((request) => request(axios, basePath)); }, /** @@ -437,7 +450,7 @@ export const SessionApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getSessionInfoUsingPOST(sessionID?: string, options?: any): AxiosPromise { + getSessionInfoUsingPOST(sessionID?: string, options?: any): AxiosPromise { return localVarFp.getSessionInfoUsingPOST(sessionID, options).then((request) => request(axios, basePath)); }, }; @@ -459,7 +472,7 @@ export interface SessionApiInterface { * @throws {RequiredError} * @memberof SessionApiInterface */ - createSessionUsingGET(groupID?: string, authorID?: string, validUntil?: string, options?: any): AxiosPromise; + createSessionUsingGET(groupID?: string, authorID?: string, validUntil?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -471,7 +484,7 @@ export interface SessionApiInterface { * @throws {RequiredError} * @memberof SessionApiInterface */ - createSessionUsingPOST(groupID?: string, authorID?: string, validUntil?: string, options?: any): AxiosPromise; + createSessionUsingPOST(groupID?: string, authorID?: string, validUntil?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -481,7 +494,7 @@ export interface SessionApiInterface { * @throws {RequiredError} * @memberof SessionApiInterface */ - deleteSessionUsingGET(sessionID?: string, options?: any): AxiosPromise; + deleteSessionUsingGET(sessionID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -491,7 +504,7 @@ export interface SessionApiInterface { * @throws {RequiredError} * @memberof SessionApiInterface */ - deleteSessionUsingPOST(sessionID?: string, options?: any): AxiosPromise; + deleteSessionUsingPOST(sessionID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -501,7 +514,7 @@ export interface SessionApiInterface { * @throws {RequiredError} * @memberof SessionApiInterface */ - getSessionInfoUsingGET(sessionID?: string, options?: any): AxiosPromise; + getSessionInfoUsingGET(sessionID?: string, options?: RawAxiosRequestConfig): AxiosPromise; /** * @@ -511,7 +524,7 @@ export interface SessionApiInterface { * @throws {RequiredError} * @memberof SessionApiInterface */ - getSessionInfoUsingPOST(sessionID?: string, options?: any): AxiosPromise; + getSessionInfoUsingPOST(sessionID?: string, options?: RawAxiosRequestConfig): AxiosPromise; } @@ -532,7 +545,7 @@ export class SessionApi extends BaseAPI implements SessionApiInterface { * @throws {RequiredError} * @memberof SessionApi */ - public createSessionUsingGET(groupID?: string, authorID?: string, validUntil?: string, options?: any) { + public createSessionUsingGET(groupID?: string, authorID?: string, validUntil?: string, options?: RawAxiosRequestConfig) { return SessionApiFp(this.configuration).createSessionUsingGET(groupID, authorID, validUntil, options).then((request) => request(this.axios, this.basePath)); } @@ -546,7 +559,7 @@ export class SessionApi extends BaseAPI implements SessionApiInterface { * @throws {RequiredError} * @memberof SessionApi */ - public createSessionUsingPOST(groupID?: string, authorID?: string, validUntil?: string, options?: any) { + public createSessionUsingPOST(groupID?: string, authorID?: string, validUntil?: string, options?: RawAxiosRequestConfig) { return SessionApiFp(this.configuration).createSessionUsingPOST(groupID, authorID, validUntil, options).then((request) => request(this.axios, this.basePath)); } @@ -558,7 +571,7 @@ export class SessionApi extends BaseAPI implements SessionApiInterface { * @throws {RequiredError} * @memberof SessionApi */ - public deleteSessionUsingGET(sessionID?: string, options?: any) { + public deleteSessionUsingGET(sessionID?: string, options?: RawAxiosRequestConfig) { return SessionApiFp(this.configuration).deleteSessionUsingGET(sessionID, options).then((request) => request(this.axios, this.basePath)); } @@ -570,7 +583,7 @@ export class SessionApi extends BaseAPI implements SessionApiInterface { * @throws {RequiredError} * @memberof SessionApi */ - public deleteSessionUsingPOST(sessionID?: string, options?: any) { + public deleteSessionUsingPOST(sessionID?: string, options?: RawAxiosRequestConfig) { return SessionApiFp(this.configuration).deleteSessionUsingPOST(sessionID, options).then((request) => request(this.axios, this.basePath)); } @@ -582,7 +595,7 @@ export class SessionApi extends BaseAPI implements SessionApiInterface { * @throws {RequiredError} * @memberof SessionApi */ - public getSessionInfoUsingGET(sessionID?: string, options?: any) { + public getSessionInfoUsingGET(sessionID?: string, options?: RawAxiosRequestConfig) { return SessionApiFp(this.configuration).getSessionInfoUsingGET(sessionID, options).then((request) => request(this.axios, this.basePath)); } @@ -594,7 +607,8 @@ export class SessionApi extends BaseAPI implements SessionApiInterface { * @throws {RequiredError} * @memberof SessionApi */ - public getSessionInfoUsingPOST(sessionID?: string, options?: any) { + public getSessionInfoUsingPOST(sessionID?: string, options?: RawAxiosRequestConfig) { return SessionApiFp(this.configuration).getSessionInfoUsingPOST(sessionID, options).then((request) => request(this.axios, this.basePath)); } } + diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/base.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/base.ts index 4ec85a45e09..f6fa38f6091 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/base.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/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 } from 'axios'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; export const BASE_PATH = "http://localhost:9001/api/1.3.0".replace(/\/+$/, ""); @@ -38,7 +39,7 @@ export const COLLECTION_FORMATS = { */ export interface RequestArgs { url: string; - options: any; + options: RawAxiosRequestConfig; } /** @@ -52,7 +53,7 @@ export class BaseAPI { constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { if (configuration) { this.configuration = configuration; - this.basePath = configuration.basePath || this.basePath; + this.basePath = configuration.basePath ?? basePath; } } }; @@ -64,8 +65,22 @@ export class BaseAPI { * @extends {Error} */ export class RequiredError extends Error { - name: "RequiredError" = "RequiredError"; constructor(public field: string, msg?: string) { super(msg); + this.name = "RequiredError" } } + +interface ServerMap { + [key: string]: { + url: string, + description: string, + }[]; +} + +/** + * + * @export + */ +export const operationServerMap: ServerMap = { +} diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/common.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/common.ts index 6da22d106a8..3636236081f 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/common.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/common.ts @@ -13,9 +13,10 @@ */ -import { Configuration } from "./configuration"; -import { RequiredError, RequestArgs } from "./base"; -import { AxiosInstance } 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(); } @@ -131,8 +143,8 @@ export const toPathString = function (url: URL) { * @export */ export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) { - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url}; - return axios.request(axiosRequestArgs); + return >(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url}; + return axios.request(axiosRequestArgs); }; } diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/configuration.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/configuration.ts index b43bb03fda6..f350f7b5587 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/configuration.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/configuration.ts @@ -19,6 +19,7 @@ export interface ConfigurationParameters { password?: string; accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); basePath?: string; + serverIndex?: number; baseOptions?: any; formDataCtor?: new () => any; } @@ -58,6 +59,13 @@ export class Configuration { * @memberof Configuration */ basePath?: string; + /** + * override server index + * + * @type {number} + * @memberof Configuration + */ + serverIndex?: number; /** * base options for axios calls * @@ -80,6 +88,7 @@ export class Configuration { this.password = param.password; this.accessToken = param.accessToken; this.basePath = param.basePath; + this.serverIndex = param.serverIndex; this.baseOptions = param.baseOptions; this.formDataCtor = param.formDataCtor; } diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2004-data.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/create-author-using-get200-response-data.ts similarity index 75% rename from apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2004-data.ts rename to apps/server/src/infra/etherpad-client/etherpad-api-client/models/create-author-using-get200-response-data.ts index c04b243eaa0..ddd593edb9d 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2004-data.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/create-author-using-get200-response-data.ts @@ -17,15 +17,14 @@ /** * * @export - * @interface InlineResponse2004Data + * @interface CreateAuthorUsingGET200ResponseData */ -export interface InlineResponse2004Data { +export interface CreateAuthorUsingGET200ResponseData { /** * * @type {string} - * @memberof InlineResponse2004Data + * @memberof CreateAuthorUsingGET200ResponseData */ - sessionID?: string; + 'authorID'?: string; } - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/create-author-using-get200-response.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/create-author-using-get200-response.ts new file mode 100644 index 00000000000..97dd3060306 --- /dev/null +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/create-author-using-get200-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Etherpad API + * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. + * + * The version of the OpenAPI document: 1.3.0 + * Contact: support@example.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { CreateAuthorUsingGET200ResponseData } from './create-author-using-get200-response-data'; + +/** + * + * @export + * @interface CreateAuthorUsingGET200Response + */ +export interface CreateAuthorUsingGET200Response { + /** + * + * @type {number} + * @memberof CreateAuthorUsingGET200Response + */ + 'code'?: number; + /** + * + * @type {string} + * @memberof CreateAuthorUsingGET200Response + */ + 'message'?: string; + /** + * + * @type {CreateAuthorUsingGET200ResponseData} + * @memberof CreateAuthorUsingGET200Response + */ + 'data'?: CreateAuthorUsingGET200ResponseData; +} + diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/create-diff-htmlusing-get200-response.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/create-diff-htmlusing-get200-response.ts new file mode 100644 index 00000000000..7362c902506 --- /dev/null +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/create-diff-htmlusing-get200-response.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Etherpad API + * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. + * + * The version of the OpenAPI document: 1.3.0 + * Contact: support@example.com + * + * 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 CreateDiffHTMLUsingGET200Response + */ +export interface CreateDiffHTMLUsingGET200Response { + /** + * + * @type {number} + * @memberof CreateDiffHTMLUsingGET200Response + */ + 'code'?: number; + /** + * + * @type {string} + * @memberof CreateDiffHTMLUsingGET200Response + */ + 'message'?: string; + /** + * + * @type {object} + * @memberof CreateDiffHTMLUsingGET200Response + */ + 'data'?: object; +} + diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2003-data.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/create-group-using-get200-response-data.ts similarity index 76% rename from apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2003-data.ts rename to apps/server/src/infra/etherpad-client/etherpad-api-client/models/create-group-using-get200-response-data.ts index a9b18e69b58..b4b15640aa6 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2003-data.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/create-group-using-get200-response-data.ts @@ -17,15 +17,14 @@ /** * * @export - * @interface InlineResponse2003Data + * @interface CreateGroupUsingGET200ResponseData */ -export interface InlineResponse2003Data { +export interface CreateGroupUsingGET200ResponseData { /** * * @type {string} - * @memberof InlineResponse2003Data + * @memberof CreateGroupUsingGET200ResponseData */ - authorID?: string; + 'groupID'?: string; } - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/create-group-using-get200-response.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/create-group-using-get200-response.ts new file mode 100644 index 00000000000..d07df7cf8a5 --- /dev/null +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/create-group-using-get200-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Etherpad API + * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. + * + * The version of the OpenAPI document: 1.3.0 + * Contact: support@example.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { CreateGroupUsingGET200ResponseData } from './create-group-using-get200-response-data'; + +/** + * + * @export + * @interface CreateGroupUsingGET200Response + */ +export interface CreateGroupUsingGET200Response { + /** + * + * @type {number} + * @memberof CreateGroupUsingGET200Response + */ + 'code'?: number; + /** + * + * @type {string} + * @memberof CreateGroupUsingGET200Response + */ + 'message'?: string; + /** + * + * @type {CreateGroupUsingGET200ResponseData} + * @memberof CreateGroupUsingGET200Response + */ + 'data'?: CreateGroupUsingGET200ResponseData; +} + diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20018.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/create-group-using-get400-response.ts similarity index 68% rename from apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20018.ts rename to apps/server/src/infra/etherpad-client/etherpad-api-client/models/create-group-using-get400-response.ts index ae6fe679f95..1802bcf593a 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20018.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/create-group-using-get400-response.ts @@ -17,27 +17,26 @@ /** * * @export - * @interface InlineResponse20018 + * @interface CreateGroupUsingGET400Response */ -export interface InlineResponse20018 { +export interface CreateGroupUsingGET400Response { /** * * @type {number} - * @memberof InlineResponse20018 + * @memberof CreateGroupUsingGET400Response */ - code?: number; + 'code'?: number; /** * * @type {string} - * @memberof InlineResponse20018 + * @memberof CreateGroupUsingGET400Response */ - message?: string; + 'message'?: string; /** * * @type {object} - * @memberof InlineResponse20018 + * @memberof CreateGroupUsingGET400Response */ - data?: object; + 'data'?: object; } - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response401.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/create-group-using-get401-response.ts similarity index 68% rename from apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response401.ts rename to apps/server/src/infra/etherpad-client/etherpad-api-client/models/create-group-using-get401-response.ts index aae7fca505c..a0b43c2e4e0 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response401.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/create-group-using-get401-response.ts @@ -17,27 +17,26 @@ /** * * @export - * @interface InlineResponse401 + * @interface CreateGroupUsingGET401Response */ -export interface InlineResponse401 { +export interface CreateGroupUsingGET401Response { /** * * @type {number} - * @memberof InlineResponse401 + * @memberof CreateGroupUsingGET401Response */ - code?: number; + 'code'?: number; /** * * @type {string} - * @memberof InlineResponse401 + * @memberof CreateGroupUsingGET401Response */ - message?: string; + 'message'?: string; /** * * @type {object} - * @memberof InlineResponse401 + * @memberof CreateGroupUsingGET401Response */ - data?: object; + 'data'?: object; } - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2001.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/create-group-using-get500-response.ts similarity index 68% rename from apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2001.ts rename to apps/server/src/infra/etherpad-client/etherpad-api-client/models/create-group-using-get500-response.ts index 7f0f7922127..fdd7923a2ca 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2001.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/create-group-using-get500-response.ts @@ -17,27 +17,26 @@ /** * * @export - * @interface InlineResponse2001 + * @interface CreateGroupUsingGET500Response */ -export interface InlineResponse2001 { +export interface CreateGroupUsingGET500Response { /** * * @type {number} - * @memberof InlineResponse2001 + * @memberof CreateGroupUsingGET500Response */ - code?: number; + 'code'?: number; /** * * @type {string} - * @memberof InlineResponse2001 + * @memberof CreateGroupUsingGET500Response */ - message?: string; + 'message'?: string; /** * * @type {object} - * @memberof InlineResponse2001 + * @memberof CreateGroupUsingGET500Response */ - data?: object; + 'data'?: object; } - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/create-session-using-get200-response-data.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/create-session-using-get200-response-data.ts new file mode 100644 index 00000000000..66535540fd6 --- /dev/null +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/create-session-using-get200-response-data.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Etherpad API + * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. + * + * The version of the OpenAPI document: 1.3.0 + * Contact: support@example.com + * + * 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 CreateSessionUsingGET200ResponseData + */ +export interface CreateSessionUsingGET200ResponseData { + /** + * + * @type {string} + * @memberof CreateSessionUsingGET200ResponseData + */ + 'sessionID'?: string; +} + diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/create-session-using-get200-response.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/create-session-using-get200-response.ts new file mode 100644 index 00000000000..335f7cb0eb0 --- /dev/null +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/create-session-using-get200-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Etherpad API + * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. + * + * The version of the OpenAPI document: 1.3.0 + * Contact: support@example.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { CreateSessionUsingGET200ResponseData } from './create-session-using-get200-response-data'; + +/** + * + * @export + * @interface CreateSessionUsingGET200Response + */ +export interface CreateSessionUsingGET200Response { + /** + * + * @type {number} + * @memberof CreateSessionUsingGET200Response + */ + 'code'?: number; + /** + * + * @type {string} + * @memberof CreateSessionUsingGET200Response + */ + 'message'?: string; + /** + * + * @type {CreateSessionUsingGET200ResponseData} + * @memberof CreateSessionUsingGET200Response + */ + 'data'?: CreateSessionUsingGET200ResponseData; +} + diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response400.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/delete-group-using-get200-response.ts similarity index 68% rename from apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response400.ts rename to apps/server/src/infra/etherpad-client/etherpad-api-client/models/delete-group-using-get200-response.ts index e789c1914af..ece71579e45 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response400.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/delete-group-using-get200-response.ts @@ -17,27 +17,26 @@ /** * * @export - * @interface InlineResponse400 + * @interface DeleteGroupUsingGET200Response */ -export interface InlineResponse400 { +export interface DeleteGroupUsingGET200Response { /** * * @type {number} - * @memberof InlineResponse400 + * @memberof DeleteGroupUsingGET200Response */ - code?: number; + 'code'?: number; /** * * @type {string} - * @memberof InlineResponse400 + * @memberof DeleteGroupUsingGET200Response */ - message?: string; + 'message'?: string; /** * * @type {object} - * @memberof InlineResponse400 + * @memberof DeleteGroupUsingGET200Response */ - data?: object; + 'data'?: object; } - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20015-data-info.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-author-name-using-get200-response-data-info.ts similarity index 62% rename from apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20015-data-info.ts rename to apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-author-name-using-get200-response-data-info.ts index 2108f3be2af..37f64c2a751 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20015-data-info.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-author-name-using-get200-response-data-info.ts @@ -17,33 +17,32 @@ /** * * @export - * @interface InlineResponse20015DataInfo + * @interface GetAuthorNameUsingGET200ResponseDataInfo */ -export interface InlineResponse20015DataInfo { +export interface GetAuthorNameUsingGET200ResponseDataInfo { /** * * @type {string} - * @memberof InlineResponse20015DataInfo + * @memberof GetAuthorNameUsingGET200ResponseDataInfo */ - id?: string; + 'id'?: string; /** * * @type {string} - * @memberof InlineResponse20015DataInfo + * @memberof GetAuthorNameUsingGET200ResponseDataInfo */ - colorId?: string; + 'colorId'?: string; /** * * @type {string} - * @memberof InlineResponse20015DataInfo + * @memberof GetAuthorNameUsingGET200ResponseDataInfo */ - name?: string; + 'name'?: string; /** * * @type {number} - * @memberof InlineResponse20015DataInfo + * @memberof GetAuthorNameUsingGET200ResponseDataInfo */ - timestamp?: number; + 'timestamp'?: number; } - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-author-name-using-get200-response-data.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-author-name-using-get200-response-data.ts new file mode 100644 index 00000000000..0c54beeffc5 --- /dev/null +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-author-name-using-get200-response-data.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Etherpad API + * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. + * + * The version of the OpenAPI document: 1.3.0 + * Contact: support@example.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { GetAuthorNameUsingGET200ResponseDataInfo } from './get-author-name-using-get200-response-data-info'; + +/** + * + * @export + * @interface GetAuthorNameUsingGET200ResponseData + */ +export interface GetAuthorNameUsingGET200ResponseData { + /** + * + * @type {GetAuthorNameUsingGET200ResponseDataInfo} + * @memberof GetAuthorNameUsingGET200ResponseData + */ + 'info'?: GetAuthorNameUsingGET200ResponseDataInfo; +} + diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-author-name-using-get200-response.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-author-name-using-get200-response.ts new file mode 100644 index 00000000000..03fe4f658b6 --- /dev/null +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-author-name-using-get200-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Etherpad API + * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. + * + * The version of the OpenAPI document: 1.3.0 + * Contact: support@example.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { GetAuthorNameUsingGET200ResponseData } from './get-author-name-using-get200-response-data'; + +/** + * + * @export + * @interface GetAuthorNameUsingGET200Response + */ +export interface GetAuthorNameUsingGET200Response { + /** + * + * @type {number} + * @memberof GetAuthorNameUsingGET200Response + */ + 'code'?: number; + /** + * + * @type {string} + * @memberof GetAuthorNameUsingGET200Response + */ + 'message'?: string; + /** + * + * @type {GetAuthorNameUsingGET200ResponseData} + * @memberof GetAuthorNameUsingGET200Response + */ + 'data'?: GetAuthorNameUsingGET200ResponseData; +} + diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-chat-head-using-get200-response-data.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-chat-head-using-get200-response-data.ts new file mode 100644 index 00000000000..8e16393c314 --- /dev/null +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-chat-head-using-get200-response-data.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Etherpad API + * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. + * + * The version of the OpenAPI document: 1.3.0 + * Contact: support@example.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { GetChatHistoryUsingGET200ResponseDataMessagesInner } from './get-chat-history-using-get200-response-data-messages-inner'; + +/** + * + * @export + * @interface GetChatHeadUsingGET200ResponseData + */ +export interface GetChatHeadUsingGET200ResponseData { + /** + * + * @type {GetChatHistoryUsingGET200ResponseDataMessagesInner} + * @memberof GetChatHeadUsingGET200ResponseData + */ + 'chatHead'?: GetChatHistoryUsingGET200ResponseDataMessagesInner; +} + diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-chat-head-using-get200-response.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-chat-head-using-get200-response.ts new file mode 100644 index 00000000000..32e4a61c194 --- /dev/null +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-chat-head-using-get200-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Etherpad API + * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. + * + * The version of the OpenAPI document: 1.3.0 + * Contact: support@example.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { GetChatHeadUsingGET200ResponseData } from './get-chat-head-using-get200-response-data'; + +/** + * + * @export + * @interface GetChatHeadUsingGET200Response + */ +export interface GetChatHeadUsingGET200Response { + /** + * + * @type {number} + * @memberof GetChatHeadUsingGET200Response + */ + 'code'?: number; + /** + * + * @type {string} + * @memberof GetChatHeadUsingGET200Response + */ + 'message'?: string; + /** + * + * @type {GetChatHeadUsingGET200ResponseData} + * @memberof GetChatHeadUsingGET200Response + */ + 'data'?: GetChatHeadUsingGET200ResponseData; +} + diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2005-data-info.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-chat-history-using-get200-response-data-messages-inner.ts similarity index 59% rename from apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2005-data-info.ts rename to apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-chat-history-using-get200-response-data-messages-inner.ts index 9fb27c355dd..f82e5d41a54 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2005-data-info.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-chat-history-using-get200-response-data-messages-inner.ts @@ -17,33 +17,32 @@ /** * * @export - * @interface InlineResponse2005DataInfo + * @interface GetChatHistoryUsingGET200ResponseDataMessagesInner */ -export interface InlineResponse2005DataInfo { +export interface GetChatHistoryUsingGET200ResponseDataMessagesInner { /** * * @type {string} - * @memberof InlineResponse2005DataInfo + * @memberof GetChatHistoryUsingGET200ResponseDataMessagesInner */ - id?: string; + 'text'?: string; /** * * @type {string} - * @memberof InlineResponse2005DataInfo + * @memberof GetChatHistoryUsingGET200ResponseDataMessagesInner */ - authorID?: string; + 'userId'?: string; /** * * @type {string} - * @memberof InlineResponse2005DataInfo + * @memberof GetChatHistoryUsingGET200ResponseDataMessagesInner */ - groupID?: string; + 'userName'?: string; /** * * @type {number} - * @memberof InlineResponse2005DataInfo + * @memberof GetChatHistoryUsingGET200ResponseDataMessagesInner */ - validUntil?: number; + 'time'?: number; } - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-chat-history-using-get200-response-data.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-chat-history-using-get200-response-data.ts new file mode 100644 index 00000000000..e8a1006d9c7 --- /dev/null +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-chat-history-using-get200-response-data.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Etherpad API + * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. + * + * The version of the OpenAPI document: 1.3.0 + * Contact: support@example.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { GetChatHistoryUsingGET200ResponseDataMessagesInner } from './get-chat-history-using-get200-response-data-messages-inner'; + +/** + * + * @export + * @interface GetChatHistoryUsingGET200ResponseData + */ +export interface GetChatHistoryUsingGET200ResponseData { + /** + * + * @type {Array} + * @memberof GetChatHistoryUsingGET200ResponseData + */ + 'messages'?: Array; +} + diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-chat-history-using-get200-response.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-chat-history-using-get200-response.ts new file mode 100644 index 00000000000..ace345f579d --- /dev/null +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-chat-history-using-get200-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Etherpad API + * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. + * + * The version of the OpenAPI document: 1.3.0 + * Contact: support@example.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { GetChatHistoryUsingGET200ResponseData } from './get-chat-history-using-get200-response-data'; + +/** + * + * @export + * @interface GetChatHistoryUsingGET200Response + */ +export interface GetChatHistoryUsingGET200Response { + /** + * + * @type {number} + * @memberof GetChatHistoryUsingGET200Response + */ + 'code'?: number; + /** + * + * @type {string} + * @memberof GetChatHistoryUsingGET200Response + */ + 'message'?: string; + /** + * + * @type {GetChatHistoryUsingGET200ResponseData} + * @memberof GetChatHistoryUsingGET200Response + */ + 'data'?: GetChatHistoryUsingGET200ResponseData; +} + diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response200-data.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-htmlusing-get200-response-data.ts similarity index 77% rename from apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response200-data.ts rename to apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-htmlusing-get200-response-data.ts index 735b422f0a0..cbb48cdbebf 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response200-data.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-htmlusing-get200-response-data.ts @@ -17,15 +17,14 @@ /** * * @export - * @interface InlineResponse200Data + * @interface GetHTMLUsingGET200ResponseData */ -export interface InlineResponse200Data { +export interface GetHTMLUsingGET200ResponseData { /** * * @type {string} - * @memberof InlineResponse200Data + * @memberof GetHTMLUsingGET200ResponseData */ - groupID?: string; + 'html'?: string; } - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20010.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-htmlusing-get200-response.ts similarity index 56% rename from apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20010.ts rename to apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-htmlusing-get200-response.ts index 1e337932d5a..bdae9780e79 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20010.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-htmlusing-get200-response.ts @@ -13,32 +13,33 @@ */ -import { InlineResponse20010Data } from './inline-response20010-data'; +// May contain unused imports in some cases +// @ts-ignore +import type { GetHTMLUsingGET200ResponseData } from './get-htmlusing-get200-response-data'; /** * * @export - * @interface InlineResponse20010 + * @interface GetHTMLUsingGET200Response */ -export interface InlineResponse20010 { +export interface GetHTMLUsingGET200Response { /** * * @type {number} - * @memberof InlineResponse20010 + * @memberof GetHTMLUsingGET200Response */ - code?: number; + 'code'?: number; /** * * @type {string} - * @memberof InlineResponse20010 + * @memberof GetHTMLUsingGET200Response */ - message?: string; + 'message'?: string; /** * - * @type {InlineResponse20010Data} - * @memberof InlineResponse20010 + * @type {GetHTMLUsingGET200ResponseData} + * @memberof GetHTMLUsingGET200Response */ - data?: InlineResponse20010Data; + 'data'?: GetHTMLUsingGET200ResponseData; } - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20014-data.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-last-edited-using-get200-response-data.ts similarity index 75% rename from apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20014-data.ts rename to apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-last-edited-using-get200-response-data.ts index 8cfede0f0c0..5e4d6bf9f35 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20014-data.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-last-edited-using-get200-response-data.ts @@ -17,15 +17,14 @@ /** * * @export - * @interface InlineResponse20014Data + * @interface GetLastEditedUsingGET200ResponseData */ -export interface InlineResponse20014Data { +export interface GetLastEditedUsingGET200ResponseData { /** * * @type {number} - * @memberof InlineResponse20014Data + * @memberof GetLastEditedUsingGET200ResponseData */ - padUsersCount?: number; + 'lastEdited'?: number; } - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-last-edited-using-get200-response.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-last-edited-using-get200-response.ts new file mode 100644 index 00000000000..c4b8b02eef0 --- /dev/null +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-last-edited-using-get200-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Etherpad API + * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. + * + * The version of the OpenAPI document: 1.3.0 + * Contact: support@example.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { GetLastEditedUsingGET200ResponseData } from './get-last-edited-using-get200-response-data'; + +/** + * + * @export + * @interface GetLastEditedUsingGET200Response + */ +export interface GetLastEditedUsingGET200Response { + /** + * + * @type {number} + * @memberof GetLastEditedUsingGET200Response + */ + 'code'?: number; + /** + * + * @type {string} + * @memberof GetLastEditedUsingGET200Response + */ + 'message'?: string; + /** + * + * @type {GetLastEditedUsingGET200ResponseData} + * @memberof GetLastEditedUsingGET200Response + */ + 'data'?: GetLastEditedUsingGET200ResponseData; +} + diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20012-data.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-public-status-using-get200-response-data.ts similarity index 74% rename from apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20012-data.ts rename to apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-public-status-using-get200-response-data.ts index 5d7ca35e17d..1503a2631ff 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20012-data.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-public-status-using-get200-response-data.ts @@ -17,15 +17,14 @@ /** * * @export - * @interface InlineResponse20012Data + * @interface GetPublicStatusUsingGET200ResponseData */ -export interface InlineResponse20012Data { +export interface GetPublicStatusUsingGET200ResponseData { /** * * @type {boolean} - * @memberof InlineResponse20012Data + * @memberof GetPublicStatusUsingGET200ResponseData */ - publicStatus?: boolean; + 'publicStatus'?: boolean; } - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-public-status-using-get200-response.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-public-status-using-get200-response.ts new file mode 100644 index 00000000000..e1a52ab269c --- /dev/null +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-public-status-using-get200-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Etherpad API + * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. + * + * The version of the OpenAPI document: 1.3.0 + * Contact: support@example.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { GetPublicStatusUsingGET200ResponseData } from './get-public-status-using-get200-response-data'; + +/** + * + * @export + * @interface GetPublicStatusUsingGET200Response + */ +export interface GetPublicStatusUsingGET200Response { + /** + * + * @type {number} + * @memberof GetPublicStatusUsingGET200Response + */ + 'code'?: number; + /** + * + * @type {string} + * @memberof GetPublicStatusUsingGET200Response + */ + 'message'?: string; + /** + * + * @type {GetPublicStatusUsingGET200ResponseData} + * @memberof GetPublicStatusUsingGET200Response + */ + 'data'?: GetPublicStatusUsingGET200ResponseData; +} + diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-read-only-idusing-get200-response-data.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-read-only-idusing-get200-response-data.ts new file mode 100644 index 00000000000..0438348165e --- /dev/null +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-read-only-idusing-get200-response-data.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Etherpad API + * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. + * + * The version of the OpenAPI document: 1.3.0 + * Contact: support@example.com + * + * 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 GetReadOnlyIDUsingGET200ResponseData + */ +export interface GetReadOnlyIDUsingGET200ResponseData { + /** + * + * @type {string} + * @memberof GetReadOnlyIDUsingGET200ResponseData + */ + 'readOnlyID'?: string; +} + diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-read-only-idusing-get200-response.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-read-only-idusing-get200-response.ts new file mode 100644 index 00000000000..c4c28b3ed2e --- /dev/null +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-read-only-idusing-get200-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Etherpad API + * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. + * + * The version of the OpenAPI document: 1.3.0 + * Contact: support@example.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { GetReadOnlyIDUsingGET200ResponseData } from './get-read-only-idusing-get200-response-data'; + +/** + * + * @export + * @interface GetReadOnlyIDUsingGET200Response + */ +export interface GetReadOnlyIDUsingGET200Response { + /** + * + * @type {number} + * @memberof GetReadOnlyIDUsingGET200Response + */ + 'code'?: number; + /** + * + * @type {string} + * @memberof GetReadOnlyIDUsingGET200Response + */ + 'message'?: string; + /** + * + * @type {GetReadOnlyIDUsingGET200ResponseData} + * @memberof GetReadOnlyIDUsingGET200Response + */ + 'data'?: GetReadOnlyIDUsingGET200ResponseData; +} + diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20010-data.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-revisions-count-using-get200-response-data.ts similarity index 74% rename from apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20010-data.ts rename to apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-revisions-count-using-get200-response-data.ts index 217dce4b49c..aaae5980868 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20010-data.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-revisions-count-using-get200-response-data.ts @@ -17,15 +17,14 @@ /** * * @export - * @interface InlineResponse20010Data + * @interface GetRevisionsCountUsingGET200ResponseData */ -export interface InlineResponse20010Data { +export interface GetRevisionsCountUsingGET200ResponseData { /** * * @type {number} - * @memberof InlineResponse20010Data + * @memberof GetRevisionsCountUsingGET200ResponseData */ - lastEdited?: number; + 'revisions'?: number; } - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-revisions-count-using-get200-response.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-revisions-count-using-get200-response.ts new file mode 100644 index 00000000000..8f76d0b3454 --- /dev/null +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-revisions-count-using-get200-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Etherpad API + * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. + * + * The version of the OpenAPI document: 1.3.0 + * Contact: support@example.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { GetRevisionsCountUsingGET200ResponseData } from './get-revisions-count-using-get200-response-data'; + +/** + * + * @export + * @interface GetRevisionsCountUsingGET200Response + */ +export interface GetRevisionsCountUsingGET200Response { + /** + * + * @type {number} + * @memberof GetRevisionsCountUsingGET200Response + */ + 'code'?: number; + /** + * + * @type {string} + * @memberof GetRevisionsCountUsingGET200Response + */ + 'message'?: string; + /** + * + * @type {GetRevisionsCountUsingGET200ResponseData} + * @memberof GetRevisionsCountUsingGET200Response + */ + 'data'?: GetRevisionsCountUsingGET200ResponseData; +} + diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20019-data-messages.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-session-info-using-get200-response-data-info.ts similarity index 61% rename from apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20019-data-messages.ts rename to apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-session-info-using-get200-response-data-info.ts index 54faf8189a9..ab67df8330b 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20019-data-messages.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-session-info-using-get200-response-data-info.ts @@ -17,33 +17,32 @@ /** * * @export - * @interface InlineResponse20019DataMessages + * @interface GetSessionInfoUsingGET200ResponseDataInfo */ -export interface InlineResponse20019DataMessages { +export interface GetSessionInfoUsingGET200ResponseDataInfo { /** * * @type {string} - * @memberof InlineResponse20019DataMessages + * @memberof GetSessionInfoUsingGET200ResponseDataInfo */ - text?: string; + 'id'?: string; /** * * @type {string} - * @memberof InlineResponse20019DataMessages + * @memberof GetSessionInfoUsingGET200ResponseDataInfo */ - userId?: string; + 'authorID'?: string; /** * * @type {string} - * @memberof InlineResponse20019DataMessages + * @memberof GetSessionInfoUsingGET200ResponseDataInfo */ - userName?: string; + 'groupID'?: string; /** * * @type {number} - * @memberof InlineResponse20019DataMessages + * @memberof GetSessionInfoUsingGET200ResponseDataInfo */ - time?: number; + 'validUntil'?: number; } - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-session-info-using-get200-response-data.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-session-info-using-get200-response-data.ts new file mode 100644 index 00000000000..51d00742474 --- /dev/null +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-session-info-using-get200-response-data.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Etherpad API + * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. + * + * The version of the OpenAPI document: 1.3.0 + * Contact: support@example.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { GetSessionInfoUsingGET200ResponseDataInfo } from './get-session-info-using-get200-response-data-info'; + +/** + * + * @export + * @interface GetSessionInfoUsingGET200ResponseData + */ +export interface GetSessionInfoUsingGET200ResponseData { + /** + * + * @type {GetSessionInfoUsingGET200ResponseDataInfo} + * @memberof GetSessionInfoUsingGET200ResponseData + */ + 'info'?: GetSessionInfoUsingGET200ResponseDataInfo; +} + diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-session-info-using-get200-response.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-session-info-using-get200-response.ts new file mode 100644 index 00000000000..700dc4de52f --- /dev/null +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-session-info-using-get200-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Etherpad API + * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. + * + * The version of the OpenAPI document: 1.3.0 + * Contact: support@example.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { GetSessionInfoUsingGET200ResponseData } from './get-session-info-using-get200-response-data'; + +/** + * + * @export + * @interface GetSessionInfoUsingGET200Response + */ +export interface GetSessionInfoUsingGET200Response { + /** + * + * @type {number} + * @memberof GetSessionInfoUsingGET200Response + */ + 'code'?: number; + /** + * + * @type {string} + * @memberof GetSessionInfoUsingGET200Response + */ + 'message'?: string; + /** + * + * @type {GetSessionInfoUsingGET200ResponseData} + * @memberof GetSessionInfoUsingGET200Response + */ + 'data'?: GetSessionInfoUsingGET200ResponseData; +} + diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20011-data.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-text-using-get200-response-data.ts similarity index 77% rename from apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20011-data.ts rename to apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-text-using-get200-response-data.ts index 5434d57d16c..4c55e4752f6 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20011-data.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-text-using-get200-response-data.ts @@ -17,15 +17,14 @@ /** * * @export - * @interface InlineResponse20011Data + * @interface GetTextUsingGET200ResponseData */ -export interface InlineResponse20011Data { +export interface GetTextUsingGET200ResponseData { /** * * @type {string} - * @memberof InlineResponse20011Data + * @memberof GetTextUsingGET200ResponseData */ - readOnlyID?: string; + 'text'?: string; } - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response200.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-text-using-get200-response.ts similarity index 56% rename from apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response200.ts rename to apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-text-using-get200-response.ts index d4420b0eb50..5d48f809a6c 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response200.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/get-text-using-get200-response.ts @@ -13,32 +13,33 @@ */ -import { InlineResponse200Data } from './inline-response200-data'; +// May contain unused imports in some cases +// @ts-ignore +import type { GetTextUsingGET200ResponseData } from './get-text-using-get200-response-data'; /** * * @export - * @interface InlineResponse200 + * @interface GetTextUsingGET200Response */ -export interface InlineResponse200 { +export interface GetTextUsingGET200Response { /** * * @type {number} - * @memberof InlineResponse200 + * @memberof GetTextUsingGET200Response */ - code?: number; + 'code'?: number; /** * * @type {string} - * @memberof InlineResponse200 + * @memberof GetTextUsingGET200Response */ - message?: string; + 'message'?: string; /** * - * @type {InlineResponse200Data} - * @memberof InlineResponse200 + * @type {GetTextUsingGET200ResponseData} + * @memberof GetTextUsingGET200Response */ - data?: InlineResponse200Data; + 'data'?: GetTextUsingGET200ResponseData; } - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/index.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/index.ts index 36a926c85d9..a7242f913cf 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/index.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/index.ts @@ -1,49 +1,49 @@ -export * from './inline-response200'; -export * from './inline-response2001'; -export * from './inline-response20010'; -export * from './inline-response20010-data'; -export * from './inline-response20011'; -export * from './inline-response20011-data'; -export * from './inline-response20012'; -export * from './inline-response20012-data'; -export * from './inline-response20013'; -export * from './inline-response20013-data'; -export * from './inline-response20014'; -export * from './inline-response20014-data'; -export * from './inline-response20015'; -export * from './inline-response20015-data'; -export * from './inline-response20015-data-info'; -export * from './inline-response20016'; -export * from './inline-response20016-data'; -export * from './inline-response20017'; -export * from './inline-response20017-data'; -export * from './inline-response20018'; -export * from './inline-response20019'; -export * from './inline-response20019-data'; -export * from './inline-response20019-data-messages'; -export * from './inline-response2002'; -export * from './inline-response20020'; -export * from './inline-response20020-data'; -export * from './inline-response2002-data'; -export * from './inline-response2003'; -export * from './inline-response2003-data'; -export * from './inline-response2004'; -export * from './inline-response2004-data'; -export * from './inline-response2005'; -export * from './inline-response2005-data'; -export * from './inline-response2005-data-info'; -export * from './inline-response2006'; -export * from './inline-response2006-data'; -export * from './inline-response2007'; -export * from './inline-response2007-data'; -export * from './inline-response2008'; -export * from './inline-response2008-data'; -export * from './inline-response2009'; -export * from './inline-response2009-data'; -export * from './inline-response200-data'; -export * from './inline-response400'; -export * from './inline-response401'; -export * from './inline-response500'; +export * from './create-author-using-get200-response'; +export * from './create-author-using-get200-response-data'; +export * from './create-diff-htmlusing-get200-response'; +export * from './create-group-using-get200-response'; +export * from './create-group-using-get200-response-data'; +export * from './create-group-using-get400-response'; +export * from './create-group-using-get401-response'; +export * from './create-group-using-get500-response'; +export * from './create-session-using-get200-response'; +export * from './create-session-using-get200-response-data'; +export * from './delete-group-using-get200-response'; +export * from './get-author-name-using-get200-response'; +export * from './get-author-name-using-get200-response-data'; +export * from './get-author-name-using-get200-response-data-info'; +export * from './get-chat-head-using-get200-response'; +export * from './get-chat-head-using-get200-response-data'; +export * from './get-chat-history-using-get200-response'; +export * from './get-chat-history-using-get200-response-data'; +export * from './get-chat-history-using-get200-response-data-messages-inner'; +export * from './get-htmlusing-get200-response'; +export * from './get-htmlusing-get200-response-data'; +export * from './get-last-edited-using-get200-response'; +export * from './get-last-edited-using-get200-response-data'; +export * from './get-public-status-using-get200-response'; +export * from './get-public-status-using-get200-response-data'; +export * from './get-read-only-idusing-get200-response'; +export * from './get-read-only-idusing-get200-response-data'; +export * from './get-revisions-count-using-get200-response'; +export * from './get-revisions-count-using-get200-response-data'; +export * from './get-session-info-using-get200-response'; +export * from './get-session-info-using-get200-response-data'; +export * from './get-session-info-using-get200-response-data-info'; +export * from './get-text-using-get200-response'; +export * from './get-text-using-get200-response-data'; +export * from './list-all-groups-using-get200-response'; +export * from './list-all-groups-using-get200-response-data'; +export * from './list-authors-of-pad-using-get200-response'; +export * from './list-authors-of-pad-using-get200-response-data'; +export * from './list-pads-using-get200-response'; +export * from './list-pads-using-get200-response-data'; +export * from './list-sessions-of-group-using-get200-response'; +export * from './list-sessions-of-group-using-get200-response-data'; export * from './message'; +export * from './pad-users-count-using-get200-response'; +export * from './pad-users-count-using-get200-response-data'; +export * from './pad-users-using-get200-response'; +export * from './pad-users-using-get200-response-data'; export * from './session-info'; export * from './user-info'; diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20012.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20012.ts deleted file mode 100644 index d53101a7622..00000000000 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20012.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Etherpad API - * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. - * - * The version of the OpenAPI document: 1.3.0 - * Contact: support@example.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { InlineResponse20012Data } from './inline-response20012-data'; - -/** - * - * @export - * @interface InlineResponse20012 - */ -export interface InlineResponse20012 { - /** - * - * @type {number} - * @memberof InlineResponse20012 - */ - code?: number; - /** - * - * @type {string} - * @memberof InlineResponse20012 - */ - message?: string; - /** - * - * @type {InlineResponse20012Data} - * @memberof InlineResponse20012 - */ - data?: InlineResponse20012Data; -} - - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20013.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20013.ts deleted file mode 100644 index 6c115592623..00000000000 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20013.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Etherpad API - * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. - * - * The version of the OpenAPI document: 1.3.0 - * Contact: support@example.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { InlineResponse20013Data } from './inline-response20013-data'; - -/** - * - * @export - * @interface InlineResponse20013 - */ -export interface InlineResponse20013 { - /** - * - * @type {number} - * @memberof InlineResponse20013 - */ - code?: number; - /** - * - * @type {string} - * @memberof InlineResponse20013 - */ - message?: string; - /** - * - * @type {InlineResponse20013Data} - * @memberof InlineResponse20013 - */ - data?: InlineResponse20013Data; -} - - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20014.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20014.ts deleted file mode 100644 index c72f9dfb6ef..00000000000 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20014.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Etherpad API - * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. - * - * The version of the OpenAPI document: 1.3.0 - * Contact: support@example.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { InlineResponse20014Data } from './inline-response20014-data'; - -/** - * - * @export - * @interface InlineResponse20014 - */ -export interface InlineResponse20014 { - /** - * - * @type {number} - * @memberof InlineResponse20014 - */ - code?: number; - /** - * - * @type {string} - * @memberof InlineResponse20014 - */ - message?: string; - /** - * - * @type {InlineResponse20014Data} - * @memberof InlineResponse20014 - */ - data?: InlineResponse20014Data; -} - - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20015-data.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20015-data.ts deleted file mode 100644 index a35c1e49871..00000000000 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20015-data.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Etherpad API - * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. - * - * The version of the OpenAPI document: 1.3.0 - * Contact: support@example.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { InlineResponse20015DataInfo } from './inline-response20015-data-info'; - -/** - * - * @export - * @interface InlineResponse20015Data - */ -export interface InlineResponse20015Data { - /** - * - * @type {InlineResponse20015DataInfo} - * @memberof InlineResponse20015Data - */ - info?: InlineResponse20015DataInfo; -} - - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20015.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20015.ts deleted file mode 100644 index f898636471b..00000000000 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20015.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Etherpad API - * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. - * - * The version of the OpenAPI document: 1.3.0 - * Contact: support@example.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { InlineResponse20015Data } from './inline-response20015-data'; - -/** - * - * @export - * @interface InlineResponse20015 - */ -export interface InlineResponse20015 { - /** - * - * @type {number} - * @memberof InlineResponse20015 - */ - code?: number; - /** - * - * @type {string} - * @memberof InlineResponse20015 - */ - message?: string; - /** - * - * @type {InlineResponse20015Data} - * @memberof InlineResponse20015 - */ - data?: InlineResponse20015Data; -} - - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20016-data.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20016-data.ts deleted file mode 100644 index b2020e36332..00000000000 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20016-data.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Etherpad API - * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. - * - * The version of the OpenAPI document: 1.3.0 - * Contact: support@example.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { InlineResponse20015DataInfo } from './inline-response20015-data-info'; - -/** - * - * @export - * @interface InlineResponse20016Data - */ -export interface InlineResponse20016Data { - /** - * - * @type {Array} - * @memberof InlineResponse20016Data - */ - padUsers?: Array; -} - - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20016.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20016.ts deleted file mode 100644 index 20ab5a260a9..00000000000 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20016.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Etherpad API - * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. - * - * The version of the OpenAPI document: 1.3.0 - * Contact: support@example.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { InlineResponse20016Data } from './inline-response20016-data'; - -/** - * - * @export - * @interface InlineResponse20016 - */ -export interface InlineResponse20016 { - /** - * - * @type {number} - * @memberof InlineResponse20016 - */ - code?: number; - /** - * - * @type {string} - * @memberof InlineResponse20016 - */ - message?: string; - /** - * - * @type {InlineResponse20016Data} - * @memberof InlineResponse20016 - */ - data?: InlineResponse20016Data; -} - - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20017.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20017.ts deleted file mode 100644 index 1aad51e9d7d..00000000000 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20017.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Etherpad API - * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. - * - * The version of the OpenAPI document: 1.3.0 - * Contact: support@example.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { InlineResponse20017Data } from './inline-response20017-data'; - -/** - * - * @export - * @interface InlineResponse20017 - */ -export interface InlineResponse20017 { - /** - * - * @type {number} - * @memberof InlineResponse20017 - */ - code?: number; - /** - * - * @type {string} - * @memberof InlineResponse20017 - */ - message?: string; - /** - * - * @type {InlineResponse20017Data} - * @memberof InlineResponse20017 - */ - data?: InlineResponse20017Data; -} - - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20019-data.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20019-data.ts deleted file mode 100644 index a994048ded6..00000000000 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20019-data.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Etherpad API - * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. - * - * The version of the OpenAPI document: 1.3.0 - * Contact: support@example.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { InlineResponse20019DataMessages } from './inline-response20019-data-messages'; - -/** - * - * @export - * @interface InlineResponse20019Data - */ -export interface InlineResponse20019Data { - /** - * - * @type {Array} - * @memberof InlineResponse20019Data - */ - messages?: Array; -} - - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20019.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20019.ts deleted file mode 100644 index f61c085a5db..00000000000 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20019.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Etherpad API - * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. - * - * The version of the OpenAPI document: 1.3.0 - * Contact: support@example.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { InlineResponse20019Data } from './inline-response20019-data'; - -/** - * - * @export - * @interface InlineResponse20019 - */ -export interface InlineResponse20019 { - /** - * - * @type {number} - * @memberof InlineResponse20019 - */ - code?: number; - /** - * - * @type {string} - * @memberof InlineResponse20019 - */ - message?: string; - /** - * - * @type {InlineResponse20019Data} - * @memberof InlineResponse20019 - */ - data?: InlineResponse20019Data; -} - - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2002.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2002.ts deleted file mode 100644 index 71457ee02a9..00000000000 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2002.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Etherpad API - * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. - * - * The version of the OpenAPI document: 1.3.0 - * Contact: support@example.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { InlineResponse2002Data } from './inline-response2002-data'; - -/** - * - * @export - * @interface InlineResponse2002 - */ -export interface InlineResponse2002 { - /** - * - * @type {number} - * @memberof InlineResponse2002 - */ - code?: number; - /** - * - * @type {string} - * @memberof InlineResponse2002 - */ - message?: string; - /** - * - * @type {InlineResponse2002Data} - * @memberof InlineResponse2002 - */ - data?: InlineResponse2002Data; -} - - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20020-data.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20020-data.ts deleted file mode 100644 index 8d04eb06af2..00000000000 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20020-data.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Etherpad API - * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. - * - * The version of the OpenAPI document: 1.3.0 - * Contact: support@example.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { InlineResponse20019DataMessages } from './inline-response20019-data-messages'; - -/** - * - * @export - * @interface InlineResponse20020Data - */ -export interface InlineResponse20020Data { - /** - * - * @type {InlineResponse20019DataMessages} - * @memberof InlineResponse20020Data - */ - chatHead?: InlineResponse20019DataMessages; -} - - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20020.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20020.ts deleted file mode 100644 index 075caa51d44..00000000000 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20020.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Etherpad API - * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. - * - * The version of the OpenAPI document: 1.3.0 - * Contact: support@example.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { InlineResponse20020Data } from './inline-response20020-data'; - -/** - * - * @export - * @interface InlineResponse20020 - */ -export interface InlineResponse20020 { - /** - * - * @type {number} - * @memberof InlineResponse20020 - */ - code?: number; - /** - * - * @type {string} - * @memberof InlineResponse20020 - */ - message?: string; - /** - * - * @type {InlineResponse20020Data} - * @memberof InlineResponse20020 - */ - data?: InlineResponse20020Data; -} - - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2003.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2003.ts deleted file mode 100644 index 36564956f1c..00000000000 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2003.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Etherpad API - * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. - * - * The version of the OpenAPI document: 1.3.0 - * Contact: support@example.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { InlineResponse2003Data } from './inline-response2003-data'; - -/** - * - * @export - * @interface InlineResponse2003 - */ -export interface InlineResponse2003 { - /** - * - * @type {number} - * @memberof InlineResponse2003 - */ - code?: number; - /** - * - * @type {string} - * @memberof InlineResponse2003 - */ - message?: string; - /** - * - * @type {InlineResponse2003Data} - * @memberof InlineResponse2003 - */ - data?: InlineResponse2003Data; -} - - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2004.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2004.ts deleted file mode 100644 index dac37c9ef04..00000000000 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2004.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Etherpad API - * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. - * - * The version of the OpenAPI document: 1.3.0 - * Contact: support@example.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { InlineResponse2004Data } from './inline-response2004-data'; - -/** - * - * @export - * @interface InlineResponse2004 - */ -export interface InlineResponse2004 { - /** - * - * @type {number} - * @memberof InlineResponse2004 - */ - code?: number; - /** - * - * @type {string} - * @memberof InlineResponse2004 - */ - message?: string; - /** - * - * @type {InlineResponse2004Data} - * @memberof InlineResponse2004 - */ - data?: InlineResponse2004Data; -} - - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2005-data.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2005-data.ts deleted file mode 100644 index 04d51fc9b1e..00000000000 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2005-data.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Etherpad API - * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. - * - * The version of the OpenAPI document: 1.3.0 - * Contact: support@example.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { InlineResponse2005DataInfo } from './inline-response2005-data-info'; - -/** - * - * @export - * @interface InlineResponse2005Data - */ -export interface InlineResponse2005Data { - /** - * - * @type {InlineResponse2005DataInfo} - * @memberof InlineResponse2005Data - */ - info?: InlineResponse2005DataInfo; -} - - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2005.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2005.ts deleted file mode 100644 index d832070a651..00000000000 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2005.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Etherpad API - * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. - * - * The version of the OpenAPI document: 1.3.0 - * Contact: support@example.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { InlineResponse2005Data } from './inline-response2005-data'; - -/** - * - * @export - * @interface InlineResponse2005 - */ -export interface InlineResponse2005 { - /** - * - * @type {number} - * @memberof InlineResponse2005 - */ - code?: number; - /** - * - * @type {string} - * @memberof InlineResponse2005 - */ - message?: string; - /** - * - * @type {InlineResponse2005Data} - * @memberof InlineResponse2005 - */ - data?: InlineResponse2005Data; -} - - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2006-data.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2006-data.ts deleted file mode 100644 index 4803681884e..00000000000 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2006-data.ts +++ /dev/null @@ -1,32 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Etherpad API - * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. - * - * The version of the OpenAPI document: 1.3.0 - * Contact: support@example.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { InlineResponse2005DataInfo } from './inline-response2005-data-info'; - -/** - * - * @export - * @interface InlineResponse2006Data - */ -export interface InlineResponse2006Data { - /** - * - * @type {Array} - * @memberof InlineResponse2006Data - */ - sessions?: Array; -} - - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2006.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2006.ts deleted file mode 100644 index 65daa063bb3..00000000000 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2006.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Etherpad API - * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. - * - * The version of the OpenAPI document: 1.3.0 - * Contact: support@example.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { InlineResponse2006Data } from './inline-response2006-data'; - -/** - * - * @export - * @interface InlineResponse2006 - */ -export interface InlineResponse2006 { - /** - * - * @type {number} - * @memberof InlineResponse2006 - */ - code?: number; - /** - * - * @type {string} - * @memberof InlineResponse2006 - */ - message?: string; - /** - * - * @type {InlineResponse2006Data} - * @memberof InlineResponse2006 - */ - data?: InlineResponse2006Data; -} - - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2007-data.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2007-data.ts deleted file mode 100644 index deb4fde87a6..00000000000 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2007-data.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Etherpad API - * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. - * - * The version of the OpenAPI document: 1.3.0 - * Contact: support@example.com - * - * 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 InlineResponse2007Data - */ -export interface InlineResponse2007Data { - /** - * - * @type {string} - * @memberof InlineResponse2007Data - */ - text?: string; -} - - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2007.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2007.ts deleted file mode 100644 index b6a65b833b4..00000000000 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2007.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Etherpad API - * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. - * - * The version of the OpenAPI document: 1.3.0 - * Contact: support@example.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { InlineResponse2007Data } from './inline-response2007-data'; - -/** - * - * @export - * @interface InlineResponse2007 - */ -export interface InlineResponse2007 { - /** - * - * @type {number} - * @memberof InlineResponse2007 - */ - code?: number; - /** - * - * @type {string} - * @memberof InlineResponse2007 - */ - message?: string; - /** - * - * @type {InlineResponse2007Data} - * @memberof InlineResponse2007 - */ - data?: InlineResponse2007Data; -} - - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2008-data.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2008-data.ts deleted file mode 100644 index e07512e1148..00000000000 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2008-data.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Etherpad API - * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. - * - * The version of the OpenAPI document: 1.3.0 - * Contact: support@example.com - * - * 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 InlineResponse2008Data - */ -export interface InlineResponse2008Data { - /** - * - * @type {string} - * @memberof InlineResponse2008Data - */ - html?: string; -} - - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2008.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2008.ts deleted file mode 100644 index ad763fff549..00000000000 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2008.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Etherpad API - * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. - * - * The version of the OpenAPI document: 1.3.0 - * Contact: support@example.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { InlineResponse2008Data } from './inline-response2008-data'; - -/** - * - * @export - * @interface InlineResponse2008 - */ -export interface InlineResponse2008 { - /** - * - * @type {number} - * @memberof InlineResponse2008 - */ - code?: number; - /** - * - * @type {string} - * @memberof InlineResponse2008 - */ - message?: string; - /** - * - * @type {InlineResponse2008Data} - * @memberof InlineResponse2008 - */ - data?: InlineResponse2008Data; -} - - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2009.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2009.ts deleted file mode 100644 index 12c4d4ba1d9..00000000000 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2009.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Etherpad API - * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. - * - * The version of the OpenAPI document: 1.3.0 - * Contact: support@example.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -import { InlineResponse2009Data } from './inline-response2009-data'; - -/** - * - * @export - * @interface InlineResponse2009 - */ -export interface InlineResponse2009 { - /** - * - * @type {number} - * @memberof InlineResponse2009 - */ - code?: number; - /** - * - * @type {string} - * @memberof InlineResponse2009 - */ - message?: string; - /** - * - * @type {InlineResponse2009Data} - * @memberof InlineResponse2009 - */ - data?: InlineResponse2009Data; -} - - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response500.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response500.ts deleted file mode 100644 index 7d49e7559c6..00000000000 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response500.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Etherpad API - * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. - * - * The version of the OpenAPI document: 1.3.0 - * Contact: support@example.com - * - * 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 InlineResponse500 - */ -export interface InlineResponse500 { - /** - * - * @type {number} - * @memberof InlineResponse500 - */ - code?: number; - /** - * - * @type {string} - * @memberof InlineResponse500 - */ - message?: string; - /** - * - * @type {object} - * @memberof InlineResponse500 - */ - data?: object; -} - - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20017-data.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/list-all-groups-using-get200-response-data.ts similarity index 75% rename from apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20017-data.ts rename to apps/server/src/infra/etherpad-client/etherpad-api-client/models/list-all-groups-using-get200-response-data.ts index 215b1588eda..e821a58abe6 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20017-data.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/list-all-groups-using-get200-response-data.ts @@ -17,15 +17,14 @@ /** * * @export - * @interface InlineResponse20017Data + * @interface ListAllGroupsUsingGET200ResponseData */ -export interface InlineResponse20017Data { +export interface ListAllGroupsUsingGET200ResponseData { /** * * @type {Array} - * @memberof InlineResponse20017Data + * @memberof ListAllGroupsUsingGET200ResponseData */ - groupIDs?: Array; + 'groupIDs'?: Array; } - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/list-all-groups-using-get200-response.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/list-all-groups-using-get200-response.ts new file mode 100644 index 00000000000..7decbea0e85 --- /dev/null +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/list-all-groups-using-get200-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Etherpad API + * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. + * + * The version of the OpenAPI document: 1.3.0 + * Contact: support@example.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ListAllGroupsUsingGET200ResponseData } from './list-all-groups-using-get200-response-data'; + +/** + * + * @export + * @interface ListAllGroupsUsingGET200Response + */ +export interface ListAllGroupsUsingGET200Response { + /** + * + * @type {number} + * @memberof ListAllGroupsUsingGET200Response + */ + 'code'?: number; + /** + * + * @type {string} + * @memberof ListAllGroupsUsingGET200Response + */ + 'message'?: string; + /** + * + * @type {ListAllGroupsUsingGET200ResponseData} + * @memberof ListAllGroupsUsingGET200Response + */ + 'data'?: ListAllGroupsUsingGET200ResponseData; +} + diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2002-data.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/list-authors-of-pad-using-get200-response-data.ts similarity index 74% rename from apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2002-data.ts rename to apps/server/src/infra/etherpad-client/etherpad-api-client/models/list-authors-of-pad-using-get200-response-data.ts index b6a0cd73889..b19b2ddab28 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2002-data.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/list-authors-of-pad-using-get200-response-data.ts @@ -17,15 +17,14 @@ /** * * @export - * @interface InlineResponse2002Data + * @interface ListAuthorsOfPadUsingGET200ResponseData */ -export interface InlineResponse2002Data { +export interface ListAuthorsOfPadUsingGET200ResponseData { /** * * @type {Array} - * @memberof InlineResponse2002Data + * @memberof ListAuthorsOfPadUsingGET200ResponseData */ - padIDs?: Array; + 'authorIDs'?: Array; } - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/list-authors-of-pad-using-get200-response.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/list-authors-of-pad-using-get200-response.ts new file mode 100644 index 00000000000..ac2b7b01707 --- /dev/null +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/list-authors-of-pad-using-get200-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Etherpad API + * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. + * + * The version of the OpenAPI document: 1.3.0 + * Contact: support@example.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ListAuthorsOfPadUsingGET200ResponseData } from './list-authors-of-pad-using-get200-response-data'; + +/** + * + * @export + * @interface ListAuthorsOfPadUsingGET200Response + */ +export interface ListAuthorsOfPadUsingGET200Response { + /** + * + * @type {number} + * @memberof ListAuthorsOfPadUsingGET200Response + */ + 'code'?: number; + /** + * + * @type {string} + * @memberof ListAuthorsOfPadUsingGET200Response + */ + 'message'?: string; + /** + * + * @type {ListAuthorsOfPadUsingGET200ResponseData} + * @memberof ListAuthorsOfPadUsingGET200Response + */ + 'data'?: ListAuthorsOfPadUsingGET200ResponseData; +} + diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20013-data.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/list-pads-using-get200-response-data.ts similarity index 76% rename from apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20013-data.ts rename to apps/server/src/infra/etherpad-client/etherpad-api-client/models/list-pads-using-get200-response-data.ts index 6f14430430f..78d0ad25aae 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20013-data.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/list-pads-using-get200-response-data.ts @@ -17,15 +17,14 @@ /** * * @export - * @interface InlineResponse20013Data + * @interface ListPadsUsingGET200ResponseData */ -export interface InlineResponse20013Data { +export interface ListPadsUsingGET200ResponseData { /** * * @type {Array} - * @memberof InlineResponse20013Data + * @memberof ListPadsUsingGET200ResponseData */ - authorIDs?: Array; + 'padIDs'?: Array; } - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20011.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/list-pads-using-get200-response.ts similarity index 55% rename from apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20011.ts rename to apps/server/src/infra/etherpad-client/etherpad-api-client/models/list-pads-using-get200-response.ts index 7cdc7fd7d69..1a2ee3ecb76 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response20011.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/list-pads-using-get200-response.ts @@ -13,32 +13,33 @@ */ -import { InlineResponse20011Data } from './inline-response20011-data'; +// May contain unused imports in some cases +// @ts-ignore +import type { ListPadsUsingGET200ResponseData } from './list-pads-using-get200-response-data'; /** * * @export - * @interface InlineResponse20011 + * @interface ListPadsUsingGET200Response */ -export interface InlineResponse20011 { +export interface ListPadsUsingGET200Response { /** * * @type {number} - * @memberof InlineResponse20011 + * @memberof ListPadsUsingGET200Response */ - code?: number; + 'code'?: number; /** * * @type {string} - * @memberof InlineResponse20011 + * @memberof ListPadsUsingGET200Response */ - message?: string; + 'message'?: string; /** * - * @type {InlineResponse20011Data} - * @memberof InlineResponse20011 + * @type {ListPadsUsingGET200ResponseData} + * @memberof ListPadsUsingGET200Response */ - data?: InlineResponse20011Data; + 'data'?: ListPadsUsingGET200ResponseData; } - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/list-sessions-of-group-using-get200-response-data.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/list-sessions-of-group-using-get200-response-data.ts new file mode 100644 index 00000000000..35486959579 --- /dev/null +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/list-sessions-of-group-using-get200-response-data.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Etherpad API + * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. + * + * The version of the OpenAPI document: 1.3.0 + * Contact: support@example.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { GetSessionInfoUsingGET200ResponseDataInfo } from './get-session-info-using-get200-response-data-info'; + +/** + * + * @export + * @interface ListSessionsOfGroupUsingGET200ResponseData + */ +export interface ListSessionsOfGroupUsingGET200ResponseData { + /** + * + * @type {Array} + * @memberof ListSessionsOfGroupUsingGET200ResponseData + */ + 'sessions'?: Array; +} + diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/list-sessions-of-group-using-get200-response.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/list-sessions-of-group-using-get200-response.ts new file mode 100644 index 00000000000..1600eb689a1 --- /dev/null +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/list-sessions-of-group-using-get200-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Etherpad API + * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. + * + * The version of the OpenAPI document: 1.3.0 + * Contact: support@example.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { ListSessionsOfGroupUsingGET200ResponseData } from './list-sessions-of-group-using-get200-response-data'; + +/** + * + * @export + * @interface ListSessionsOfGroupUsingGET200Response + */ +export interface ListSessionsOfGroupUsingGET200Response { + /** + * + * @type {number} + * @memberof ListSessionsOfGroupUsingGET200Response + */ + 'code'?: number; + /** + * + * @type {string} + * @memberof ListSessionsOfGroupUsingGET200Response + */ + 'message'?: string; + /** + * + * @type {ListSessionsOfGroupUsingGET200ResponseData} + * @memberof ListSessionsOfGroupUsingGET200Response + */ + 'data'?: ListSessionsOfGroupUsingGET200ResponseData; +} + diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/message.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/message.ts index ffb1c4a66c1..fb0a4fd6bc6 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/message.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/message.ts @@ -25,25 +25,24 @@ export interface Message { * @type {string} * @memberof Message */ - text?: string; + 'text'?: string; /** * * @type {string} * @memberof Message */ - userId?: string; + 'userId'?: string; /** * * @type {string} * @memberof Message */ - userName?: string; + 'userName'?: string; /** * * @type {number} * @memberof Message */ - time?: number; + 'time'?: number; } - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2009-data.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/pad-users-count-using-get200-response-data.ts similarity index 75% rename from apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2009-data.ts rename to apps/server/src/infra/etherpad-client/etherpad-api-client/models/pad-users-count-using-get200-response-data.ts index 6e8f853ca4e..28f51b9a436 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/inline-response2009-data.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/pad-users-count-using-get200-response-data.ts @@ -17,15 +17,14 @@ /** * * @export - * @interface InlineResponse2009Data + * @interface PadUsersCountUsingGET200ResponseData */ -export interface InlineResponse2009Data { +export interface PadUsersCountUsingGET200ResponseData { /** * * @type {number} - * @memberof InlineResponse2009Data + * @memberof PadUsersCountUsingGET200ResponseData */ - revisions?: number; + 'padUsersCount'?: number; } - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/pad-users-count-using-get200-response.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/pad-users-count-using-get200-response.ts new file mode 100644 index 00000000000..1c9cc7fedef --- /dev/null +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/pad-users-count-using-get200-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Etherpad API + * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. + * + * The version of the OpenAPI document: 1.3.0 + * Contact: support@example.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { PadUsersCountUsingGET200ResponseData } from './pad-users-count-using-get200-response-data'; + +/** + * + * @export + * @interface PadUsersCountUsingGET200Response + */ +export interface PadUsersCountUsingGET200Response { + /** + * + * @type {number} + * @memberof PadUsersCountUsingGET200Response + */ + 'code'?: number; + /** + * + * @type {string} + * @memberof PadUsersCountUsingGET200Response + */ + 'message'?: string; + /** + * + * @type {PadUsersCountUsingGET200ResponseData} + * @memberof PadUsersCountUsingGET200Response + */ + 'data'?: PadUsersCountUsingGET200ResponseData; +} + diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/pad-users-using-get200-response-data.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/pad-users-using-get200-response-data.ts new file mode 100644 index 00000000000..794598ce887 --- /dev/null +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/pad-users-using-get200-response-data.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Etherpad API + * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. + * + * The version of the OpenAPI document: 1.3.0 + * Contact: support@example.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { GetAuthorNameUsingGET200ResponseDataInfo } from './get-author-name-using-get200-response-data-info'; + +/** + * + * @export + * @interface PadUsersUsingGET200ResponseData + */ +export interface PadUsersUsingGET200ResponseData { + /** + * + * @type {Array} + * @memberof PadUsersUsingGET200ResponseData + */ + 'padUsers'?: Array; +} + diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/pad-users-using-get200-response.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/pad-users-using-get200-response.ts new file mode 100644 index 00000000000..fb9b2827e1a --- /dev/null +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/pad-users-using-get200-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Etherpad API + * Etherpad is a real-time collaborative editor scalable to thousands of simultaneous real time users. It provides full data export capabilities, and runs on your server, under your control. + * + * The version of the OpenAPI document: 1.3.0 + * Contact: support@example.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import type { PadUsersUsingGET200ResponseData } from './pad-users-using-get200-response-data'; + +/** + * + * @export + * @interface PadUsersUsingGET200Response + */ +export interface PadUsersUsingGET200Response { + /** + * + * @type {number} + * @memberof PadUsersUsingGET200Response + */ + 'code'?: number; + /** + * + * @type {string} + * @memberof PadUsersUsingGET200Response + */ + 'message'?: string; + /** + * + * @type {PadUsersUsingGET200ResponseData} + * @memberof PadUsersUsingGET200Response + */ + 'data'?: PadUsersUsingGET200ResponseData; +} + diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/session-info.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/session-info.ts index 17c8fa938c0..02d0573c94d 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/session-info.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/session-info.ts @@ -25,25 +25,24 @@ export interface SessionInfo { * @type {string} * @memberof SessionInfo */ - id?: string; + 'id'?: string; /** * * @type {string} * @memberof SessionInfo */ - authorID?: string; + 'authorID'?: string; /** * * @type {string} * @memberof SessionInfo */ - groupID?: string; + 'groupID'?: string; /** * * @type {number} * @memberof SessionInfo */ - validUntil?: number; + 'validUntil'?: number; } - diff --git a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/user-info.ts b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/user-info.ts index a659aa73e6d..3ed2eb45ba4 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-api-client/models/user-info.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-api-client/models/user-info.ts @@ -25,25 +25,24 @@ export interface UserInfo { * @type {string} * @memberof UserInfo */ - id?: string; + 'id'?: string; /** * * @type {string} * @memberof UserInfo */ - colorId?: string; + 'colorId'?: string; /** * * @type {string} * @memberof UserInfo */ - name?: string; + 'name'?: string; /** * * @type {number} * @memberof UserInfo */ - timestamp?: number; + 'timestamp'?: number; } - diff --git a/apps/server/src/infra/etherpad-client/etherpad-client.adapter.spec.ts b/apps/server/src/infra/etherpad-client/etherpad-client.adapter.spec.ts index d730c6c26d5..a85501f9357 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-client.adapter.spec.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-client.adapter.spec.ts @@ -4,14 +4,14 @@ import { Test, TestingModule } from '@nestjs/testing'; import { AxiosResponse } from 'axios'; import { AuthorApi, + CreateAuthorUsingGET200Response, + CreateGroupUsingGET200Response, + CreateSessionUsingGET200Response, + DeleteGroupUsingGET200Response, GroupApi, - InlineResponse200, - InlineResponse2001, - InlineResponse20013, - InlineResponse2002, - InlineResponse2003, - InlineResponse2004, - InlineResponse2006, + ListAuthorsOfPadUsingGET200Response, + ListPadsUsingGET200Response, + ListSessionsOfGroupUsingGET200Response, PadApi, SessionApi, } from './etherpad-api-client'; @@ -75,7 +75,7 @@ describe(EtherpadClientAdapter.name, () => { const setup = () => { const userId = 'userId'; const username = 'username'; - const response = createMock>({ + const response = createMock>({ data: { code: EtherpadResponseCode.OK, data: { authorID: 'authorId' }, @@ -127,7 +127,7 @@ describe(EtherpadClientAdapter.name, () => { const setup = () => { const userId = 'userId'; const username = 'username'; - const response = createMock>({ + const response = createMock>({ data: { code: EtherpadResponseCode.OK, data: {}, @@ -174,7 +174,7 @@ describe(EtherpadClientAdapter.name, () => { const parentId = 'parentId'; const sessionCookieExpire = new Date(); - const listSessionsResponse = createMock>({ + const listSessionsResponse = createMock>({ data: { code: EtherpadResponseCode.OK, data: { @@ -228,14 +228,14 @@ describe(EtherpadClientAdapter.name, () => { const authorId = 'authorId'; const parentId = 'parentId'; const sessionCookieExpire = new Date(); - const response = createMock>({ + const response = createMock>({ data: { code: EtherpadResponseCode.OK, data: { sessionID: 'sessionId' }, }, }); - const listSessionsResponse = createMock>({ + const listSessionsResponse = createMock>({ data: { code: EtherpadResponseCode.OK, data: { @@ -293,14 +293,14 @@ describe(EtherpadClientAdapter.name, () => { const authorId = 'authorId'; const parentId = 'parentId'; const sessionCookieExpire = new Date(); - const response = createMock>({ + const response = createMock>({ data: { code: EtherpadResponseCode.OK, data: { sessionID: 'sessionId' }, }, }); - const listSessionsResponse = createMock>({ + const listSessionsResponse = createMock>({ data: { code: EtherpadResponseCode.OK, data: { @@ -341,14 +341,14 @@ describe(EtherpadClientAdapter.name, () => { const authorId = 'authorId'; const parentId = 'parentId'; const sessionCookieExpire = new Date(); - const response = createMock>({ + const response = createMock>({ data: { code: EtherpadResponseCode.OK, data: { sessionID: 'sessionId' }, }, }); - const listSessionsResponse = createMock>({ + const listSessionsResponse = createMock>({ data: { code: EtherpadResponseCode.OK, data: {}, @@ -399,7 +399,7 @@ describe(EtherpadClientAdapter.name, () => { const authorId = 'authorId'; const parentId = 'parentId'; const sessionCookieExpire = new Date(); - const listSessionsResponse = createMock>({ + const listSessionsResponse = createMock>({ data: { code: EtherpadResponseCode.OK, data: {}, @@ -408,7 +408,7 @@ describe(EtherpadClientAdapter.name, () => { authorApi.listSessionsOfAuthorUsingGET.mockResolvedValue(listSessionsResponse); - const response = createMock>({ + const response = createMock>({ data: { code: EtherpadResponseCode.OK, data: {}, @@ -442,7 +442,7 @@ describe(EtherpadClientAdapter.name, () => { const authorId = 'authorId'; const parentId = 'parentId'; const sessionCookieExpire = new Date(); - const listSessionsResponse = createMock>({ + const listSessionsResponse = createMock>({ data: { code: EtherpadResponseCode.OK, data: {}, @@ -476,7 +476,7 @@ describe(EtherpadClientAdapter.name, () => { describe('when author has sessions', () => { const setup = () => { const authorId = 'authorId'; - const response = createMock>({ + const response = createMock>({ data: { code: EtherpadResponseCode.OK, // @ts-expect-error wrong type mapping @@ -500,7 +500,7 @@ describe(EtherpadClientAdapter.name, () => { describe('when author has no sessions', () => { const setup = () => { const authorId = 'authorId'; - const response = createMock>({ + const response = createMock>({ data: { code: EtherpadResponseCode.OK, data: {}, @@ -536,10 +536,10 @@ describe(EtherpadClientAdapter.name, () => { }); }); - describe('when InlineResponse2006Data is not an object', () => { + describe('when ListSessionsOfGroupUsingGET200ResponseData is not an object', () => { const setup = () => { const authorId = 'authorId'; - const response = createMock>({ + const response = createMock>({ data: { code: EtherpadResponseCode.OK, // @ts-expect-error wrong type mapping @@ -565,7 +565,7 @@ describe(EtherpadClientAdapter.name, () => { describe('when author has pads', () => { const setup = () => { const authorId = 'authorId'; - const response = createMock>({ + const response = createMock>({ data: { code: EtherpadResponseCode.OK, data: { padIDs: ['g.s8oes9dhwrvt0zif$test', 'g.s8oejklhwrvt0zif$foo'] }, @@ -588,7 +588,7 @@ describe(EtherpadClientAdapter.name, () => { describe('when author has no pads', () => { const setup = () => { const authorId = 'authorId'; - const response = createMock>({ + const response = createMock>({ data: { code: EtherpadResponseCode.OK, data: { padIDs: [] }, @@ -624,10 +624,10 @@ describe(EtherpadClientAdapter.name, () => { }); }); - describe('when InlineResponse2002Data is not an object', () => { + describe('when ListPadsUsingGET200ResponseData is not an object', () => { const setup = () => { const authorId = 'authorId'; - const response = createMock>({ + const response = createMock>({ data: { code: EtherpadResponseCode.OK, // @ts-expect-error wrong type mapping @@ -653,7 +653,7 @@ describe(EtherpadClientAdapter.name, () => { describe('when pad has author', () => { const setup = () => { const padId = 'padId'; - const response = createMock>({ + const response = createMock>({ data: { code: EtherpadResponseCode.OK, data: { authorIDs: ['a.s8oes9dhwrvt0zif', 'a.akf8finncvomlqva'] }, @@ -676,7 +676,7 @@ describe(EtherpadClientAdapter.name, () => { describe('when pad has no authors', () => { const setup = () => { const padId = 'padId'; - const response = createMock>({ + const response = createMock>({ data: { code: EtherpadResponseCode.OK, data: { authorIDs: [] }, @@ -712,10 +712,10 @@ describe(EtherpadClientAdapter.name, () => { }); }); - describe('when InlineResponse20013Data is not an object', () => { + describe('when ListAuthorsOfPadUsingGET200ResponseData is not an object', () => { const setup = () => { const authorId = 'authorId'; - const response = createMock>({ + const response = createMock>({ data: { code: EtherpadResponseCode.OK, // @ts-expect-error wrong type mapping @@ -741,7 +741,7 @@ describe(EtherpadClientAdapter.name, () => { describe('when group does not exist', () => { const setup = () => { const parentId = 'parentId'; - const response = createMock>({ + const response = createMock>({ data: { code: EtherpadResponseCode.OK, data: { groupID: 'groupId' }, @@ -772,7 +772,7 @@ describe(EtherpadClientAdapter.name, () => { describe('when createGroupIfNotExistsForUsingGET response is empty', () => { const setup = () => { const parentId = 'parentId'; - const response = createMock>({ + const response = createMock>({ data: { code: EtherpadResponseCode.OK }, }); @@ -809,14 +809,14 @@ describe(EtherpadClientAdapter.name, () => { const setup = () => { const groupId = 'groupId'; const parentId = 'parentId'; - const response = createMock>({ + const response = createMock>({ data: { code: EtherpadResponseCode.OK, data: { padID: 'padId' }, }, }); - const listPadsResponse = createMock>({ + const listPadsResponse = createMock>({ data: { code: EtherpadResponseCode.OK, data: { padIDs: [] }, @@ -849,7 +849,7 @@ describe(EtherpadClientAdapter.name, () => { const setup = () => { const groupId = 'groupId'; const parentId = 'parentId'; - const response = createMock>({ + const response = createMock>({ data: { code: EtherpadResponseCode.OK, data: { padIDs: ['groupId$parentId'] }, @@ -881,13 +881,13 @@ describe(EtherpadClientAdapter.name, () => { const setup = () => { const groupId = 'groupId'; const parentId = 'parentId'; - const listPadsResponse = createMock>({ + const listPadsResponse = createMock>({ data: { code: EtherpadResponseCode.OK, data: { padIDs: [] }, }, }); - const response = createMock>({ + const response = createMock>({ data: { code: EtherpadResponseCode.OK, data: {}, @@ -910,7 +910,7 @@ describe(EtherpadClientAdapter.name, () => { const setup = () => { const groupId = 'groupId'; const parentId = 'parentId'; - const listPadsResponse = createMock>({ + const listPadsResponse = createMock>({ data: { code: EtherpadResponseCode.OK, data: { padIDs: [] }, @@ -956,7 +956,7 @@ describe(EtherpadClientAdapter.name, () => { describe('when deleteGroupUsingPOST returns successfull', () => { const setup = () => { const groupId = 'groupId'; - const response = createMock>({ + const response = createMock>({ data: { code: EtherpadResponseCode.OK, data: {}, @@ -980,7 +980,7 @@ describe(EtherpadClientAdapter.name, () => { describe('when deleteGroupUsingPOST returns valid etherpad error', () => { const setup = () => { const groupId = 'groupId'; - const response = createMock>({ + const response = createMock>({ data: { code: EtherpadResponseCode.INTERNAL_ERROR, data: {}, @@ -1003,7 +1003,7 @@ describe(EtherpadClientAdapter.name, () => { describe('when deleteGroupUsingPOST returns invalid etherpad error', () => { const setup = () => { const groupId = 'groupId'; - const response = createMock>({ + const response = createMock>({ data: { code: EtherpadResponseCode.BAD_REQUEST, message: 'sessionID does not exist', @@ -1044,7 +1044,7 @@ describe(EtherpadClientAdapter.name, () => { describe('when deleteSessionUsingPOST returns successfull', () => { const setup = () => { const sessionId = 'sessionId'; - const response = createMock>({ + const response = createMock>({ data: { code: EtherpadResponseCode.OK, message: 'ok', @@ -1069,7 +1069,7 @@ describe(EtherpadClientAdapter.name, () => { describe('when deleteSessionUsingPOST returns etherpad error code', () => { const setup = () => { const sessionId = 'sessionId'; - const response = createMock>({ + const response = createMock>({ data: { code: EtherpadResponseCode.BAD_REQUEST, data: {}, @@ -1110,7 +1110,7 @@ describe(EtherpadClientAdapter.name, () => { describe('when deletePadUsingPOST returns successfull', () => { const setup = () => { const padId = 'padId'; - const response = createMock>({ + const response = createMock>({ data: { code: EtherpadResponseCode.OK, message: 'ok', @@ -1135,7 +1135,7 @@ describe(EtherpadClientAdapter.name, () => { describe('when deleteSessionUsingPOST returns etherpad error code', () => { const setup = () => { const padId = 'padId'; - const response = createMock>({ + const response = createMock>({ data: { code: EtherpadResponseCode.BAD_REQUEST, data: {}, @@ -1175,7 +1175,7 @@ describe(EtherpadClientAdapter.name, () => { describe('handleEtherpadResponse', () => { const setup = (code: number) => { const parentId = 'parentId'; - const response = createMock>({ + const response = createMock>({ data: { code, data: { groupID: 'groupId' }, diff --git a/apps/server/src/infra/etherpad-client/etherpad-client.adapter.ts b/apps/server/src/infra/etherpad-client/etherpad-client.adapter.ts index 3b87606ddbc..134becdfd68 100644 --- a/apps/server/src/infra/etherpad-client/etherpad-client.adapter.ts +++ b/apps/server/src/infra/etherpad-client/etherpad-client.adapter.ts @@ -4,14 +4,14 @@ import { EntityId } from '@shared/domain/types'; import { AxiosResponse } from 'axios'; import { AuthorApi, + CreateAuthorUsingGET200Response, + CreateGroupUsingGET200Response, + CreateSessionUsingGET200Response, + DeleteGroupUsingGET200Response, GroupApi, - InlineResponse200, - InlineResponse2001, - InlineResponse20013, - InlineResponse2002, - InlineResponse2003, - InlineResponse2004, - InlineResponse2006, + ListAuthorsOfPadUsingGET200Response, + ListPadsUsingGET200Response, + ListSessionsOfGroupUsingGET200Response, PadApi, SessionApi, } from './etherpad-api-client'; @@ -40,14 +40,17 @@ export class EtherpadClientAdapter { public async getOrCreateAuthorId(userId: EntityId, username?: string): Promise { const response = await this.tryCreateAuthor(userId, username); - const user = this.handleEtherpadResponse(response, { userId }); + const user = this.handleEtherpadResponse(response, { userId }); const authorId = EtherpadResponseMapper.mapToAuthorResponse(user); return authorId; } - private async tryCreateAuthor(userId: string, username?: string): Promise> { + private async tryCreateAuthor( + userId: string, + username?: string + ): Promise> { try { const response = await this.authorApi.createAuthorIfNotExistsForUsingGET(userId, username); @@ -59,7 +62,7 @@ export class EtherpadClientAdapter { public async listPadsOfAuthor(authorId: AuthorId): Promise { const response = await this.tryGetPadsOfAuthor(authorId); - const pads = this.handleEtherpadResponse(response, { authorId }); + const pads = this.handleEtherpadResponse(response, { authorId }); if (!TypeGuard.isObject(pads)) { throw new InternalServerErrorException('Etherpad listPadsOfAuthor response is not an object'); @@ -70,7 +73,7 @@ export class EtherpadClientAdapter { return padIds; } - private async tryGetPadsOfAuthor(authorId: AuthorId): Promise> { + private async tryGetPadsOfAuthor(authorId: AuthorId): Promise> { try { const response = await this.authorApi.listPadsOfAuthorUsingGET(authorId); @@ -94,7 +97,7 @@ export class EtherpadClientAdapter { } const response = await this.tryCreateSession(groupId, authorId, sessionCookieExpire); - const newSession = this.handleEtherpadResponse(response, { parentId }); + const newSession = this.handleEtherpadResponse(response, { parentId }); const sessionId = EtherpadResponseMapper.mapToSessionResponse(newSession); @@ -113,7 +116,7 @@ export class EtherpadClientAdapter { groupId: string, authorId: string, sessionCookieExpire: Date - ): Promise> { + ): Promise> { try { const unixTimeInSeconds = Math.floor(sessionCookieExpire.getTime() / 1000); const response = await this.sessionApi.createSessionUsingGET(groupId, authorId, unixTimeInSeconds.toString()); @@ -126,7 +129,9 @@ export class EtherpadClientAdapter { private async getSessionByGroupAndAuthor(groupId: GroupId, authorId: AuthorId): Promise { const response = await this.tryListSessionsOfAuthor(authorId); - const etherpadSessions = this.handleEtherpadResponse(response, { authorId }); + const etherpadSessions = this.handleEtherpadResponse(response, { + authorId, + }); const sessions = EtherpadResponseMapper.mapEtherpadSessionsToSessions(etherpadSessions); const session = this.findSession(sessions, groupId, authorId); @@ -146,7 +151,9 @@ export class EtherpadClientAdapter { public async listSessionIdsOfAuthor(authorId: AuthorId): Promise { const response = await this.tryListSessionsOfAuthor(authorId); - const etherpadSessions = this.handleEtherpadResponse(response, { authorId }); + const etherpadSessions = this.handleEtherpadResponse(response, { + authorId, + }); const sessions = EtherpadResponseMapper.mapEtherpadSessionsToSessions(etherpadSessions); const sessionIds = sessions.map((session) => session.id); @@ -154,7 +161,9 @@ export class EtherpadClientAdapter { return sessionIds; } - private async tryListSessionsOfAuthor(authorId: AuthorId): Promise> { + private async tryListSessionsOfAuthor( + authorId: AuthorId + ): Promise> { try { const response = await this.authorApi.listSessionsOfAuthorUsingGET(authorId); @@ -166,14 +175,14 @@ export class EtherpadClientAdapter { public async getOrCreateGroupId(parentId: EntityId): Promise { const groupResponse = await this.tryGetOrCreateGroup(parentId); - const group = this.handleEtherpadResponse(groupResponse, { parentId }); + const group = this.handleEtherpadResponse(groupResponse, { parentId }); const groupId = EtherpadResponseMapper.mapToGroupResponse(group); return groupId; } - private async tryGetOrCreateGroup(parentId: string): Promise> { + private async tryGetOrCreateGroup(parentId: string): Promise> { try { const response = await this.groupApi.createGroupIfNotExistsForUsingGET(parentId); @@ -190,7 +199,7 @@ export class EtherpadClientAdapter { if (!padId) { const padResponse = await this.tryCreateEtherpad(groupId, parentId); - const pad = this.handleEtherpadResponse(padResponse, { parentId }); + const pad = this.handleEtherpadResponse(padResponse, { parentId }); padId = EtherpadResponseMapper.mapToPadResponse(pad); } @@ -198,7 +207,10 @@ export class EtherpadClientAdapter { return padId; } - private async tryCreateEtherpad(groupId: string, parentId: string): Promise> { + private async tryCreateEtherpad( + groupId: string, + parentId: string + ): Promise> { try { const response = await this.groupApi.createGroupPadUsingGET(groupId, parentId); @@ -210,14 +222,14 @@ export class EtherpadClientAdapter { private async getPadId(groupId: GroupId, parentId: EntityId): Promise { const padsResponse = await this.tryListPads(groupId); - const pads = this.handleEtherpadResponse(padsResponse, { parentId }); + const pads = this.handleEtherpadResponse(padsResponse, { parentId }); const padId = pads?.padIDs?.find((id: string) => id.includes(`${groupId}$${parentId}`)); return padId; } - private async tryListPads(groupId: string): Promise> { + private async tryListPads(groupId: string): Promise> { try { const response = await this.groupApi.listPadsUsingGET(groupId); @@ -231,7 +243,7 @@ export class EtherpadClientAdapter { const response = await this.tryDeleteGroup(groupId); try { - this.handleEtherpadResponse(response, { groupId }); + this.handleEtherpadResponse(response, { groupId }); } catch (error) { this.throwIfValidError(error); } @@ -254,7 +266,7 @@ export class EtherpadClientAdapter { ); } - private async tryDeleteGroup(groupId: string): Promise> { + private async tryDeleteGroup(groupId: string): Promise> { try { const response = await this.groupApi.deleteGroupUsingPOST(groupId); @@ -266,7 +278,7 @@ export class EtherpadClientAdapter { public async listAuthorsOfPad(padId: PadId): Promise { const response = await this.tryGetAuthorsOfPad(padId); - const authors = this.handleEtherpadResponse(response, { padId }); + const authors = this.handleEtherpadResponse(response, { padId }); if (!TypeGuard.isObject(authors)) { throw new InternalServerErrorException('Etherpad listAuthorsOfPad response is not an object'); @@ -277,7 +289,7 @@ export class EtherpadClientAdapter { return authorIds; } - private async tryGetAuthorsOfPad(padId: PadId): Promise> { + private async tryGetAuthorsOfPad(padId: PadId): Promise> { try { const response = await this.padApi.listAuthorsOfPadUsingGET(padId); @@ -289,10 +301,10 @@ export class EtherpadClientAdapter { public async deleteSession(sessionId: SessionId): Promise { const response = await this.tryDeleteSession(sessionId); - this.handleEtherpadResponse(response, { sessionId }); + this.handleEtherpadResponse(response, { sessionId }); } - private async tryDeleteSession(sessionId: SessionId): Promise> { + private async tryDeleteSession(sessionId: SessionId): Promise> { try { const response = await this.sessionApi.deleteSessionUsingPOST(sessionId); @@ -302,14 +314,14 @@ export class EtherpadClientAdapter { } } - public async deletePad(padId: EntityId): Promise { + public async deletePad(padId: EntityId): Promise { const response = await this.tryDeletePad(padId); - const responseData = this.handleEtherpadResponse(response, { padId }); + const responseData = this.handleEtherpadResponse(response, { padId }); return responseData; } - private async tryDeletePad(padId: PadId): Promise> { + private async tryDeletePad(padId: PadId): Promise> { try { const response = await this.padApi.deletePadUsingPOST(padId); diff --git a/apps/server/src/infra/etherpad-client/mappers/etherpad-response.mapper.ts b/apps/server/src/infra/etherpad-client/mappers/etherpad-response.mapper.ts index bb714f42ad3..8743d8d7b3e 100644 --- a/apps/server/src/infra/etherpad-client/mappers/etherpad-response.mapper.ts +++ b/apps/server/src/infra/etherpad-client/mappers/etherpad-response.mapper.ts @@ -1,7 +1,11 @@ import { InternalServerErrorException } from '@nestjs/common'; import { TypeGuard } from '@shared/common'; import { ErrorUtils } from '@src/core/error/utils'; -import { InlineResponse2003Data, InlineResponse2004Data, InlineResponse200Data } from '../etherpad-api-client'; +import { + CreateAuthorUsingGET200ResponseData, + CreateGroupUsingGET200ResponseData, + CreateSessionUsingGET200ResponseData, +} from '../etherpad-api-client'; import { AuthorId, EtherpadErrorType, @@ -15,7 +19,7 @@ import { import { EtherpadErrorLoggableException } from '../loggable'; export class EtherpadResponseMapper { - static mapToSessionResponse(session?: InlineResponse2004Data): SessionId { + static mapToSessionResponse(session?: CreateSessionUsingGET200ResponseData): SessionId { if (!session?.sessionID) { throw new Error('Session could not be created'); } @@ -24,7 +28,7 @@ export class EtherpadResponseMapper { return sessionId; } - static mapToAuthorResponse(author?: InlineResponse2003Data): AuthorId { + static mapToAuthorResponse(author?: CreateAuthorUsingGET200ResponseData): AuthorId { if (!author?.authorID) { throw new Error('Author could not be created'); } @@ -33,7 +37,7 @@ export class EtherpadResponseMapper { return authorId; } - static mapToGroupResponse(group?: InlineResponse200Data): GroupId { + static mapToGroupResponse(group?: CreateGroupUsingGET200ResponseData): GroupId { if (!group?.groupID) { throw new Error('Group could not be created'); } @@ -43,7 +47,7 @@ export class EtherpadResponseMapper { } static mapToPadResponse(pad?: object): PadId { - // InlineResponse2001 has wrong type definition + // DeleteGroupUsingGET200Response has wrong type definition if (pad && 'padID' in pad && pad.padID) { const padId = pad.padID as string; diff --git a/openapitools-config.json b/openapitools-config.json new file mode 100644 index 00000000000..3570d978fe3 --- /dev/null +++ b/openapitools-config.json @@ -0,0 +1,9 @@ +{ + "apiPackage": "api", + "enumNameSuffix": "", + "enumPropertyNaming": "UPPERCASE", + "modelPackage": "models", + "supportsES6": true, + "withInterfaces": true, + "withSeparateModelsAndApi": true +} diff --git a/openapitools.json b/openapitools.json new file mode 100644 index 00000000000..97d49682b51 --- /dev/null +++ b/openapitools.json @@ -0,0 +1,7 @@ +{ + "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", + "spaces": 2, + "generator-cli": { + "version": "7.6.0" + } +} diff --git a/package-lock.json b/package-lock.json index 5547abc9647..0d4bcc30648 100644 --- a/package-lock.json +++ b/package-lock.json @@ -155,6 +155,7 @@ "@nestjs/cli": "^10.1.17", "@nestjs/schematics": "^10.0.2", "@nestjs/testing": "^10.2.4", + "@openapitools/openapi-generator-cli": "^2.13.4", "@types/adm-zip": "^0.5.0", "@types/amqplib": "^0.8.2", "@types/bcryptjs": "^2.4.2", @@ -4403,12 +4404,12 @@ } }, "node_modules/@nestjs/axios": { - "version": "3.0.0", - "license": "MIT", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@nestjs/axios/-/axios-3.0.2.tgz", + "integrity": "sha512-Z6GuOUdNQjP7FX+OuV2Ybyamse+/e0BFdTWBX5JxpBDKA+YkdLynDgG6HTF04zy6e9zPa19UX0WA2VDoehwhXQ==", "peerDependencies": { "@nestjs/common": "^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0", "axios": "^1.3.1", - "reflect-metadata": "^0.1.12", "rxjs": "^6.0.0 || ^7.0.0" } }, @@ -4649,8 +4650,9 @@ } }, "node_modules/@nestjs/common": { - "version": "10.2.4", - "license": "MIT", + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/@nestjs/common/-/common-10.3.0.tgz", + "integrity": "sha512-DGv34UHsZBxCM3H5QGE2XE/+oLJzz5+714JQjBhjD9VccFlQs3LRxo/epso4l7nJIiNlZkPyIUC8WzfU/5RTsQ==", "dependencies": { "iterare": "1.2.1", "tslib": "2.6.2", @@ -4707,9 +4709,10 @@ } }, "node_modules/@nestjs/core": { - "version": "10.2.4", + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/@nestjs/core/-/core-10.3.0.tgz", + "integrity": "sha512-N06P5ncknW/Pm8bj964WvLIZn2gNhHliCBoAO1LeBvNImYkecqKcrmLbY49Fa1rmMfEM3MuBHeDys3edeuYAOA==", "hasInstallScript": true, - "license": "MIT", "dependencies": { "@nuxtjs/opencollective": "0.3.2", "fast-safe-stringify": "2.1.1", @@ -5183,6 +5186,207 @@ "node": ">=8" } }, + "node_modules/@openapitools/openapi-generator-cli": { + "version": "2.13.4", + "resolved": "https://registry.npmjs.org/@openapitools/openapi-generator-cli/-/openapi-generator-cli-2.13.4.tgz", + "integrity": "sha512-4JKyrk55ohQK2FcuZbPdNvxdyXD14jjOIvE8hYjJ+E1cHbRbfXQXbYnjTODFE52Gx8eAxz8C9icuhDYDLn7nww==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "@nestjs/axios": "3.0.2", + "@nestjs/common": "10.3.0", + "@nestjs/core": "10.3.0", + "@nuxtjs/opencollective": "0.3.2", + "axios": "1.6.8", + "chalk": "4.1.2", + "commander": "8.3.0", + "compare-versions": "4.1.4", + "concurrently": "6.5.1", + "console.table": "0.10.0", + "fs-extra": "10.1.0", + "glob": "7.2.3", + "https-proxy-agent": "7.0.4", + "inquirer": "8.2.6", + "lodash": "4.17.21", + "reflect-metadata": "0.1.13", + "rxjs": "7.8.1", + "tslib": "2.6.2" + }, + "bin": { + "openapi-generator-cli": "main.js" + }, + "engines": { + "node": ">=10.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/openapi_generator" + } + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/agent-base": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.1.tgz", + "integrity": "sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==", + "dev": true, + "dependencies": { + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/debug": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.5.tgz", + "integrity": "sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/https-proxy-agent": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.4.tgz", + "integrity": "sha512-wlwpilI7YdjSkWaQ/7omYBMTliDcmCN8OLihO6I9B86g06lMyAoqgoDpV0XqoaPOKj+0DIdAvnsWfyAAhmimcg==", + "dev": true, + "dependencies": { + "agent-base": "^7.0.2", + "debug": "4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/inquirer": { + "version": "8.2.6", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.6.tgz", + "integrity": "sha512-M1WuAmb7pn9zdFRtQYk26ZBoY043Sse0wVDdk4Bppr+JOXyQYybdtvK+l9wUibhtjdjvtoiNy8tk+EgsYIUqKg==", + "dev": true, + "dependencies": { + "ansi-escapes": "^4.2.1", + "chalk": "^4.1.1", + "cli-cursor": "^3.1.0", + "cli-width": "^3.0.0", + "external-editor": "^3.0.3", + "figures": "^3.0.0", + "lodash": "^4.17.21", + "mute-stream": "0.0.8", + "ora": "^5.4.1", + "run-async": "^2.4.0", + "rxjs": "^7.5.5", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0", + "through": "^2.3.6", + "wrap-ansi": "^6.0.1" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@openapitools/openapi-generator-cli/node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/@panva/asn1.js": { "version": "1.0.0", "license": "MIT", @@ -7144,10 +7348,11 @@ } }, "node_modules/axios": { - "version": "1.6.2", - "license": "MIT", + "version": "1.6.8", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.8.tgz", + "integrity": "sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ==", "dependencies": { - "follow-redirects": "^1.15.0", + "follow-redirects": "^1.15.6", "form-data": "^4.0.0", "proxy-from-env": "^1.1.0" } @@ -8530,6 +8735,12 @@ "version": "1.0.1", "license": "MIT" }, + "node_modules/compare-versions": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-4.1.4.tgz", + "integrity": "sha512-FemMreK9xNyL8gQevsdRMrvO4lFCkQP7qbuktn1q8ndcNk1+0mz7lgE7b/sNvbhVgY4w6tMN1FDp6aADjqw2rw==", + "dev": true + }, "node_modules/component-emitter": { "version": "1.3.0", "dev": true, @@ -8761,6 +8972,18 @@ "version": "2.15.3", "license": "MIT" }, + "node_modules/console.table": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/console.table/-/console.table-0.10.0.tgz", + "integrity": "sha512-dPyZofqggxuvSf7WXvNjuRfnsOk1YazkVP8FdxH4tcH2c37wc79/Yl6Bhr7Lsu00KMgy2ql/qCMuNu8xctZM8g==", + "dev": true, + "dependencies": { + "easy-table": "1.1.0" + }, + "engines": { + "node": "> 0.10" + } + }, "node_modules/content-disposition": { "version": "0.5.4", "license": "MIT", @@ -9510,6 +9733,15 @@ "safe-buffer": "~5.1.0" } }, + "node_modules/easy-table": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/easy-table/-/easy-table-1.1.0.tgz", + "integrity": "sha512-oq33hWOSSnl2Hoh00tZWaIPi1ievrD9aFG82/IgjlycAnW9hHx5PkJiXpxPsgEE+H7BsbVQXFVFST8TEXS6/pA==", + "dev": true, + "optionalDependencies": { + "wcwidth": ">=1.0.1" + } + }, "node_modules/ecc-jsbn": { "version": "0.1.2", "license": "MIT", diff --git a/package.json b/package.json index ed99d072020..55f490ed236 100644 --- a/package.json +++ b/package.json @@ -119,7 +119,8 @@ "syncIndexes": "node ./scripts/syncIndexes.js", "ensureIndexes": "npm run nest:start:console -- database sync-indexes", "schoolExport": "node ./scripts/schoolExport.js", - "schoolImport": "node ./scripts/schoolImport.js" + "schoolImport": "node ./scripts/schoolImport.js", + "generate-client:etherpad": "node ./scripts/generate-client.js -u 'http://localhost:9001/api/openapi.json' -p 'apps/server/src/infra/etherpad-client/etherpad-api-client' -c 'openapitools-config.json'" }, "dependencies": { "@aws-sdk/lib-storage": "^3.100.0", @@ -269,6 +270,7 @@ "@nestjs/cli": "^10.1.17", "@nestjs/schematics": "^10.0.2", "@nestjs/testing": "^10.2.4", + "@openapitools/openapi-generator-cli": "^2.13.4", "@types/adm-zip": "^0.5.0", "@types/amqplib": "^0.8.2", "@types/bcryptjs": "^2.4.2", diff --git a/scripts/generate-client.js b/scripts/generate-client.js new file mode 100644 index 00000000000..1c33627238f --- /dev/null +++ b/scripts/generate-client.js @@ -0,0 +1,83 @@ +#!/usr/bin/env node + +const arg = require('arg'); +const { exec } = require('child_process'); +const { log, error } = console; + +const args = arg( + { + '--help': Boolean, + '-h': '--help', + + '--url': String, + '-u': '--url', + + '--path': String, + '-p': '--path', + + '--config': String, + '-c': '--config', + }, + { + argv: process.argv.slice(2), + } +); + +if ('--help' in args) { + log(`Usage: node generate-client.js [opts] +OPTIONS: + --help (-h) Show this help. + --path (-p) Path to the newly created client's directory. + --url (-u) URL/path to the spec file in yml/json format. + --config (-c) path to the additional-properties config file in yml/json format +`); + process.exit(0); +} + +const params = { + /** url to load the open-api definition from */ + url: args._[0] || args['--url'], + /** folder to save the open-api client */ + path: args._[1] || args['--path'], + + config: args._[2] || args['--config'] || '', +}; + +const errorMessageContains = (includedString, error) => + error && error.message && typeof error.message === 'string' && error.message.includes(includedString); + +const getOpenApiCommand = (params) => { + const { url, path, config } = params; + const configFile = config ? `-c ${config}` : ''; + const command = `openapi-generator-cli generate -i ${url} -g typescript-axios -o ${path} ${configFile} --skip-validate-spec`; + + return command; +}; + +const asyncExec = (command) => + new Promise((resolve, reject) => { + exec(command, (error, stdout, stderr) => { + if (error) { + return reject(error); + } + return resolve(stdout || stderr); + }); + }); + +const generateClient = () => { + const cmd = getOpenApiCommand(params); + log(`Try updating the openapi client in the folder ${params.path} from ${params.url} ...`); + asyncExec(cmd) + .then((stdout) => log(stdout)) + .catch((stderr) => { + if (errorMessageContains('ConnectException', stderr)) { + error(`Failed to connect to ${params.url}, is the server started at this url?`); + } else error(stderr.message); + }); +}; + +const main = () => { + generateClient(); +}; + +main();