diff --git a/packages/lib-apiclient/src/generated/api.ts b/packages/lib-apiclient/src/generated/api.ts index f07ba8f83..347ee4ae8 100644 --- a/packages/lib-apiclient/src/generated/api.ts +++ b/packages/lib-apiclient/src/generated/api.ts @@ -4,7 +4,7 @@ * Takaro API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: unset - unset + * The version of the OpenAPI document: unset - unset * Contact: support@takaro.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -12,5151 +12,5225 @@ * Do not edit the class manually. */ - import type { Configuration } from './configuration.js'; 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.js'; +import { + DUMMY_BASE_URL, + assertParamExists, + setApiKeyToObject, + setBasicAuthToObject, + setBearerAuthToObject, + setOAuthToObject, + setSearchParams, + serializeDataIfNeeded, + toPathString, + createRequestFunction, +} from './common.js'; import type { RequestArgs } from './base.js'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base.js'; /** - * + * * @export * @interface APIOutput */ export interface APIOutput { - /** - * - * @type {MetadataOutput} - * @memberof APIOutput - */ - 'meta': MetadataOutput; + /** + * + * @type {MetadataOutput} + * @memberof APIOutput + */ + meta: MetadataOutput; } /** - * + * * @export * @interface ActivityInputDTO */ export interface ActivityInputDTO { - /** - * - * @type {string} - * @memberof ActivityInputDTO - */ - 'gameServerId'?: string; - /** - * - * @type {string} - * @memberof ActivityInputDTO - */ - 'timeType': ActivityInputDTOTimeTypeEnum; - /** - * - * @type {string} - * @memberof ActivityInputDTO - */ - 'dataType': ActivityInputDTODataTypeEnum; - /** - * - * @type {StatsControllerGetPingStatsStartDateParameter} - * @memberof ActivityInputDTO - */ - 'startDate'?: StatsControllerGetPingStatsStartDateParameter; - /** - * - * @type {StatsControllerGetPingStatsStartDateParameter} - * @memberof ActivityInputDTO - */ - 'endDate'?: StatsControllerGetPingStatsStartDateParameter; + /** + * + * @type {string} + * @memberof ActivityInputDTO + */ + gameServerId?: string; + /** + * + * @type {string} + * @memberof ActivityInputDTO + */ + timeType: ActivityInputDTOTimeTypeEnum; + /** + * + * @type {string} + * @memberof ActivityInputDTO + */ + dataType: ActivityInputDTODataTypeEnum; + /** + * + * @type {StatsControllerGetPingStatsStartDateParameter} + * @memberof ActivityInputDTO + */ + startDate?: StatsControllerGetPingStatsStartDateParameter; + /** + * + * @type {StatsControllerGetPingStatsStartDateParameter} + * @memberof ActivityInputDTO + */ + endDate?: StatsControllerGetPingStatsStartDateParameter; } export const ActivityInputDTOTimeTypeEnum = { - Daily: 'daily', - Weekly: 'weekly', - Monthly: 'monthly' + Daily: 'daily', + Weekly: 'weekly', + Monthly: 'monthly', } as const; -export type ActivityInputDTOTimeTypeEnum = typeof ActivityInputDTOTimeTypeEnum[keyof typeof ActivityInputDTOTimeTypeEnum]; +export type ActivityInputDTOTimeTypeEnum = + (typeof ActivityInputDTOTimeTypeEnum)[keyof typeof ActivityInputDTOTimeTypeEnum]; export const ActivityInputDTODataTypeEnum = { - Users: 'users', - Players: 'players' + Users: 'users', + Players: 'players', } as const; -export type ActivityInputDTODataTypeEnum = typeof ActivityInputDTODataTypeEnum[keyof typeof ActivityInputDTODataTypeEnum]; +export type ActivityInputDTODataTypeEnum = + (typeof ActivityInputDTODataTypeEnum)[keyof typeof ActivityInputDTODataTypeEnum]; /** - * + * * @export * @interface AllowedFilters */ export interface AllowedFilters { - /** - * - * @type {Array} - * @memberof AllowedFilters - */ - 'id'?: Array; + /** + * + * @type {Array} + * @memberof AllowedFilters + */ + id?: Array; } /** - * + * * @export * @interface BanCreateDTO */ export interface BanCreateDTO { - /** - * - * @type {string} - * @memberof BanCreateDTO - */ - 'gameServerId'?: string; - /** - * - * @type {string} - * @memberof BanCreateDTO - */ - 'playerId': string; - /** - * - * @type {boolean} - * @memberof BanCreateDTO - */ - 'takaroManaged'?: boolean; - /** - * - * @type {boolean} - * @memberof BanCreateDTO - */ - 'isGlobal'?: boolean; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof BanCreateDTO - */ - 'until'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {string} - * @memberof BanCreateDTO - */ - 'reason'?: string; + /** + * + * @type {string} + * @memberof BanCreateDTO + */ + gameServerId?: string; + /** + * + * @type {string} + * @memberof BanCreateDTO + */ + playerId: string; + /** + * + * @type {boolean} + * @memberof BanCreateDTO + */ + takaroManaged?: boolean; + /** + * + * @type {boolean} + * @memberof BanCreateDTO + */ + isGlobal?: boolean; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof BanCreateDTO + */ + until?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof BanCreateDTO + */ + reason?: string; } /** - * + * * @export * @interface BanDTO */ export interface BanDTO { - /** - * - * @type {IGamePlayer} - * @memberof BanDTO - */ - 'player': IGamePlayer; - /** - * - * @type {string} - * @memberof BanDTO - */ - 'reason': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof BanDTO - */ - 'expiresAt'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {IGamePlayer} + * @memberof BanDTO + */ + player: IGamePlayer; + /** + * + * @type {string} + * @memberof BanDTO + */ + reason: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof BanDTO + */ + expiresAt?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface BanOutputArrayDTOAPI */ export interface BanOutputArrayDTOAPI { - /** - * - * @type {Array} - * @memberof BanOutputArrayDTOAPI - */ - 'data': Array; - /** - * - * @type {MetadataOutput} - * @memberof BanOutputArrayDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {Array} + * @memberof BanOutputArrayDTOAPI + */ + data: Array; + /** + * + * @type {MetadataOutput} + * @memberof BanOutputArrayDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface BanOutputDTO */ export interface BanOutputDTO { - /** - * - * @type {string} - * @memberof BanOutputDTO - */ - 'id': string; - /** - * - * @type {string} - * @memberof BanOutputDTO - */ - 'gameServerId': string; - /** - * - * @type {string} - * @memberof BanOutputDTO - */ - 'playerId': string; - /** - * - * @type {boolean} - * @memberof BanOutputDTO - */ - 'takaroManaged': boolean; - /** - * - * @type {boolean} - * @memberof BanOutputDTO - */ - 'isGlobal': boolean; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof BanOutputDTO - */ - 'until'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {string} - * @memberof BanOutputDTO - */ - 'reason'?: string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof BanOutputDTO - */ - 'createdAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof BanOutputDTO - */ - 'updatedAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof BanOutputDTO + */ + id: string; + /** + * + * @type {string} + * @memberof BanOutputDTO + */ + gameServerId: string; + /** + * + * @type {string} + * @memberof BanOutputDTO + */ + playerId: string; + /** + * + * @type {boolean} + * @memberof BanOutputDTO + */ + takaroManaged: boolean; + /** + * + * @type {boolean} + * @memberof BanOutputDTO + */ + isGlobal: boolean; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof BanOutputDTO + */ + until?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof BanOutputDTO + */ + reason?: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof BanOutputDTO + */ + createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof BanOutputDTO + */ + updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface BanOutputDTOAPI */ export interface BanOutputDTOAPI { - /** - * - * @type {BanOutputDTO} - * @memberof BanOutputDTOAPI - */ - 'data': BanOutputDTO; - /** - * - * @type {MetadataOutput} - * @memberof BanOutputDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {BanOutputDTO} + * @memberof BanOutputDTOAPI + */ + data: BanOutputDTO; + /** + * + * @type {MetadataOutput} + * @memberof BanOutputDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface BanPlayerInputDTO */ export interface BanPlayerInputDTO { - /** - * - * @type {string} - * @memberof BanPlayerInputDTO - */ - 'reason'?: string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof BanPlayerInputDTO - */ - 'expiresAt'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof BanPlayerInputDTO + */ + reason?: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof BanPlayerInputDTO + */ + expiresAt?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface BanPlayerOutputDTO */ export interface BanPlayerOutputDTO { - /** - * - * @type {Array} - * @memberof BanPlayerOutputDTO - */ - 'data': Array; - /** - * - * @type {MetadataOutput} - * @memberof BanPlayerOutputDTO - */ - 'meta': MetadataOutput; + /** + * + * @type {Array} + * @memberof BanPlayerOutputDTO + */ + data: Array; + /** + * + * @type {MetadataOutput} + * @memberof BanPlayerOutputDTO + */ + meta: MetadataOutput; } /** - * + * * @export * @interface BanSearchInputAllowedFilters */ export interface BanSearchInputAllowedFilters { - /** - * - * @type {Array} - * @memberof BanSearchInputAllowedFilters - */ - 'gameServerId'?: Array; - /** - * - * @type {Array} - * @memberof BanSearchInputAllowedFilters - */ - 'playerId'?: Array; - /** - * - * @type {Array} - * @memberof BanSearchInputAllowedFilters - */ - 'takaroManaged'?: Array; - /** - * - * @type {Array} - * @memberof BanSearchInputAllowedFilters - */ - 'isGlobal'?: Array; - /** - * - * @type {Array} - * @memberof BanSearchInputAllowedFilters - */ - 'id'?: Array; + /** + * + * @type {Array} + * @memberof BanSearchInputAllowedFilters + */ + gameServerId?: Array; + /** + * + * @type {Array} + * @memberof BanSearchInputAllowedFilters + */ + playerId?: Array; + /** + * + * @type {Array} + * @memberof BanSearchInputAllowedFilters + */ + takaroManaged?: Array; + /** + * + * @type {Array} + * @memberof BanSearchInputAllowedFilters + */ + isGlobal?: Array; + /** + * + * @type {Array} + * @memberof BanSearchInputAllowedFilters + */ + id?: Array; } /** - * + * * @export * @interface BanSearchInputAllowedRangeFilter */ export interface BanSearchInputAllowedRangeFilter { - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof BanSearchInputAllowedRangeFilter - */ - 'until'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof BanSearchInputAllowedRangeFilter - */ - 'createdAt'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof BanSearchInputAllowedRangeFilter - */ - 'updatedAt'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof BanSearchInputAllowedRangeFilter + */ + until?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof BanSearchInputAllowedRangeFilter + */ + createdAt?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof BanSearchInputAllowedRangeFilter + */ + updatedAt?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface BanSearchInputDTO */ export interface BanSearchInputDTO { - /** - * - * @type {BanSearchInputAllowedFilters} - * @memberof BanSearchInputDTO - */ - 'filters'?: BanSearchInputAllowedFilters; - /** - * - * @type {BanSearchInputAllowedFilters} - * @memberof BanSearchInputDTO - */ - 'search'?: BanSearchInputAllowedFilters; - /** - * - * @type {BanSearchInputAllowedRangeFilter} - * @memberof BanSearchInputDTO - */ - 'greaterThan'?: BanSearchInputAllowedRangeFilter; - /** - * - * @type {BanSearchInputAllowedRangeFilter} - * @memberof BanSearchInputDTO - */ - 'lessThan'?: BanSearchInputAllowedRangeFilter; - /** - * - * @type {number} - * @memberof BanSearchInputDTO - */ - 'page'?: number; - /** - * - * @type {number} - * @memberof BanSearchInputDTO - */ - 'limit'?: number; - /** - * - * @type {string} - * @memberof BanSearchInputDTO - */ - 'sortBy'?: string; - /** - * - * @type {string} - * @memberof BanSearchInputDTO - */ - 'sortDirection'?: BanSearchInputDTOSortDirectionEnum; - /** - * - * @type {Array} - * @memberof BanSearchInputDTO - */ - 'extend'?: Array; + /** + * + * @type {BanSearchInputAllowedFilters} + * @memberof BanSearchInputDTO + */ + filters?: BanSearchInputAllowedFilters; + /** + * + * @type {BanSearchInputAllowedFilters} + * @memberof BanSearchInputDTO + */ + search?: BanSearchInputAllowedFilters; + /** + * + * @type {BanSearchInputAllowedRangeFilter} + * @memberof BanSearchInputDTO + */ + greaterThan?: BanSearchInputAllowedRangeFilter; + /** + * + * @type {BanSearchInputAllowedRangeFilter} + * @memberof BanSearchInputDTO + */ + lessThan?: BanSearchInputAllowedRangeFilter; + /** + * + * @type {number} + * @memberof BanSearchInputDTO + */ + page?: number; + /** + * + * @type {number} + * @memberof BanSearchInputDTO + */ + limit?: number; + /** + * + * @type {string} + * @memberof BanSearchInputDTO + */ + sortBy?: string; + /** + * + * @type {string} + * @memberof BanSearchInputDTO + */ + sortDirection?: BanSearchInputDTOSortDirectionEnum; + /** + * + * @type {Array} + * @memberof BanSearchInputDTO + */ + extend?: Array; } export const BanSearchInputDTOSortDirectionEnum = { - Asc: 'asc', - Desc: 'desc' + Asc: 'asc', + Desc: 'desc', } as const; -export type BanSearchInputDTOSortDirectionEnum = typeof BanSearchInputDTOSortDirectionEnum[keyof typeof BanSearchInputDTOSortDirectionEnum]; +export type BanSearchInputDTOSortDirectionEnum = + (typeof BanSearchInputDTOSortDirectionEnum)[keyof typeof BanSearchInputDTOSortDirectionEnum]; /** - * + * * @export * @interface BanUpdateDTO */ export interface BanUpdateDTO { - /** - * - * @type {string} - * @memberof BanUpdateDTO - */ - 'gameServerId': string; - /** - * - * @type {string} - * @memberof BanUpdateDTO - */ - 'playerId': string; - /** - * - * @type {boolean} - * @memberof BanUpdateDTO - */ - 'takaroManaged'?: boolean; - /** - * - * @type {boolean} - * @memberof BanUpdateDTO - */ - 'isGlobal'?: boolean; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof BanUpdateDTO - */ - 'until'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {string} - * @memberof BanUpdateDTO - */ - 'reason'?: string; + /** + * + * @type {string} + * @memberof BanUpdateDTO + */ + gameServerId: string; + /** + * + * @type {string} + * @memberof BanUpdateDTO + */ + playerId: string; + /** + * + * @type {boolean} + * @memberof BanUpdateDTO + */ + takaroManaged?: boolean; + /** + * + * @type {boolean} + * @memberof BanUpdateDTO + */ + isGlobal?: boolean; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof BanUpdateDTO + */ + until?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof BanUpdateDTO + */ + reason?: string; } /** - * + * * @export * @interface BaseDiscordEvent */ export interface BaseDiscordEvent { - /** - * - * @type {string} - * @memberof BaseDiscordEvent - */ - 'msg': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof BaseDiscordEvent - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof BaseDiscordEvent + */ + msg: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof BaseDiscordEvent + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface BaseEvent */ export interface BaseEvent { - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof BaseEvent - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof BaseEvent + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface BaseGameEvent */ export interface BaseGameEvent { - /** - * - * @type {string} - * @memberof BaseGameEvent - */ - 'msg'?: string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof BaseGameEvent - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof BaseGameEvent + */ + msg?: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof BaseGameEvent + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface BaseStatsInputDTO */ export interface BaseStatsInputDTO { - /** - * - * @type {StatsControllerGetPingStatsStartDateParameter} - * @memberof BaseStatsInputDTO - */ - 'startDate'?: StatsControllerGetPingStatsStartDateParameter; - /** - * - * @type {StatsControllerGetPingStatsStartDateParameter} - * @memberof BaseStatsInputDTO - */ - 'endDate'?: StatsControllerGetPingStatsStartDateParameter; + /** + * + * @type {StatsControllerGetPingStatsStartDateParameter} + * @memberof BaseStatsInputDTO + */ + startDate?: StatsControllerGetPingStatsStartDateParameter; + /** + * + * @type {StatsControllerGetPingStatsStartDateParameter} + * @memberof BaseStatsInputDTO + */ + endDate?: StatsControllerGetPingStatsStartDateParameter; } /** - * + * * @export * @interface BaseTakaroEvent */ export interface BaseTakaroEvent { - /** - * - * @type {string} - * @memberof BaseTakaroEvent - */ - 'msg': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof BaseTakaroEvent - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof BaseTakaroEvent + */ + msg: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof BaseTakaroEvent + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface BuiltinModule */ export interface BuiltinModule { - /** - * - * @type {string} - * @memberof BuiltinModule - */ - 'name': string; - /** - * - * @type {string} - * @memberof BuiltinModule - */ - 'version': string; - /** - * - * @type {string} - * @memberof BuiltinModule - */ - 'description': string; - /** - * - * @type {string} - * @memberof BuiltinModule - */ - 'configSchema': string; - /** - * - * @type {string} - * @memberof BuiltinModule - */ - 'uiSchema': string; - /** - * - * @type {Array} - * @memberof BuiltinModule - */ - 'commands': Array; - /** - * - * @type {Array} - * @memberof BuiltinModule - */ - 'hooks': Array; - /** - * - * @type {Array} - * @memberof BuiltinModule - */ - 'cronJobs': Array; - /** - * - * @type {Array} - * @memberof BuiltinModule - */ - 'functions': Array; - /** - * - * @type {Array} - * @memberof BuiltinModule - */ - 'permissions': Array; + /** + * + * @type {string} + * @memberof BuiltinModule + */ + name: string; + /** + * + * @type {string} + * @memberof BuiltinModule + */ + version: string; + /** + * + * @type {string} + * @memberof BuiltinModule + */ + description: string; + /** + * + * @type {string} + * @memberof BuiltinModule + */ + configSchema: string; + /** + * + * @type {string} + * @memberof BuiltinModule + */ + uiSchema: string; + /** + * + * @type {Array} + * @memberof BuiltinModule + */ + commands: Array; + /** + * + * @type {Array} + * @memberof BuiltinModule + */ + hooks: Array; + /** + * + * @type {Array} + * @memberof BuiltinModule + */ + cronJobs: Array; + /** + * + * @type {Array} + * @memberof BuiltinModule + */ + functions: Array; + /** + * + * @type {Array} + * @memberof BuiltinModule + */ + permissions: Array; } /** - * + * * @export * @interface CommandArgumentCreateDTO */ export interface CommandArgumentCreateDTO { - /** - * - * @type {string} - * @memberof CommandArgumentCreateDTO - */ - 'name': string; - /** - * - * @type {string} - * @memberof CommandArgumentCreateDTO - */ - 'type': string; - /** - * - * @type {string} - * @memberof CommandArgumentCreateDTO - */ - 'helpText'?: string; - /** - * - * @type {string} - * @memberof CommandArgumentCreateDTO - */ - 'defaultValue'?: string; - /** - * - * @type {number} - * @memberof CommandArgumentCreateDTO - */ - 'position': number; - /** - * - * @type {string} - * @memberof CommandArgumentCreateDTO - */ - 'commandId'?: string; + /** + * + * @type {string} + * @memberof CommandArgumentCreateDTO + */ + name: string; + /** + * + * @type {string} + * @memberof CommandArgumentCreateDTO + */ + type: string; + /** + * + * @type {string} + * @memberof CommandArgumentCreateDTO + */ + helpText?: string; + /** + * + * @type {string} + * @memberof CommandArgumentCreateDTO + */ + defaultValue?: string; + /** + * + * @type {number} + * @memberof CommandArgumentCreateDTO + */ + position: number; + /** + * + * @type {string} + * @memberof CommandArgumentCreateDTO + */ + commandId?: string; } /** - * + * * @export * @interface CommandArgumentDTOAPI */ export interface CommandArgumentDTOAPI { - /** - * - * @type {CommandArgumentOutputDTO} - * @memberof CommandArgumentDTOAPI - */ - 'data': CommandArgumentOutputDTO; - /** - * - * @type {MetadataOutput} - * @memberof CommandArgumentDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {CommandArgumentOutputDTO} + * @memberof CommandArgumentDTOAPI + */ + data: CommandArgumentOutputDTO; + /** + * + * @type {MetadataOutput} + * @memberof CommandArgumentDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface CommandArgumentOutputDTO */ export interface CommandArgumentOutputDTO { - /** - * - * @type {string} - * @memberof CommandArgumentOutputDTO - */ - 'name': string; - /** - * - * @type {string} - * @memberof CommandArgumentOutputDTO - */ - 'type': string; - /** - * - * @type {string} - * @memberof CommandArgumentOutputDTO - */ - 'helpText': string; - /** - * - * @type {string} - * @memberof CommandArgumentOutputDTO - */ - 'defaultValue'?: string; - /** - * - * @type {number} - * @memberof CommandArgumentOutputDTO - */ - 'position': number; - /** - * - * @type {string} - * @memberof CommandArgumentOutputDTO - */ - 'id': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof CommandArgumentOutputDTO - */ - 'createdAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof CommandArgumentOutputDTO - */ - 'updatedAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof CommandArgumentOutputDTO + */ + name: string; + /** + * + * @type {string} + * @memberof CommandArgumentOutputDTO + */ + type: string; + /** + * + * @type {string} + * @memberof CommandArgumentOutputDTO + */ + helpText: string; + /** + * + * @type {string} + * @memberof CommandArgumentOutputDTO + */ + defaultValue?: string; + /** + * + * @type {number} + * @memberof CommandArgumentOutputDTO + */ + position: number; + /** + * + * @type {string} + * @memberof CommandArgumentOutputDTO + */ + id: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof CommandArgumentOutputDTO + */ + createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof CommandArgumentOutputDTO + */ + updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface CommandArgumentUpdateDTO */ export interface CommandArgumentUpdateDTO { - /** - * - * @type {string} - * @memberof CommandArgumentUpdateDTO - */ - 'name'?: string; - /** - * - * @type {string} - * @memberof CommandArgumentUpdateDTO - */ - 'type'?: string; - /** - * - * @type {string} - * @memberof CommandArgumentUpdateDTO - */ - 'helpText'?: string; - /** - * - * @type {string} - * @memberof CommandArgumentUpdateDTO - */ - 'defaultValue'?: string; + /** + * + * @type {string} + * @memberof CommandArgumentUpdateDTO + */ + name?: string; + /** + * + * @type {string} + * @memberof CommandArgumentUpdateDTO + */ + type?: string; + /** + * + * @type {string} + * @memberof CommandArgumentUpdateDTO + */ + helpText?: string; + /** + * + * @type {string} + * @memberof CommandArgumentUpdateDTO + */ + defaultValue?: string; } /** - * + * * @export * @interface CommandCreateDTO */ export interface CommandCreateDTO { - /** - * - * @type {string} - * @memberof CommandCreateDTO - */ - 'name': string; - /** - * - * @type {string} - * @memberof CommandCreateDTO - */ - 'trigger': string; - /** - * - * @type {string} - * @memberof CommandCreateDTO - */ - 'helpText'?: string; - /** - * - * @type {string} - * @memberof CommandCreateDTO - */ - 'versionId': string; - /** - * - * @type {string} - * @memberof CommandCreateDTO - */ - 'function'?: string; - /** - * - * @type {Array} - * @memberof CommandCreateDTO - */ - 'arguments'?: Array; + /** + * + * @type {string} + * @memberof CommandCreateDTO + */ + name: string; + /** + * + * @type {string} + * @memberof CommandCreateDTO + */ + trigger: string; + /** + * + * @type {string} + * @memberof CommandCreateDTO + */ + helpText?: string; + /** + * + * @type {string} + * @memberof CommandCreateDTO + */ + versionId: string; + /** + * + * @type {string} + * @memberof CommandCreateDTO + */ + function?: string; + /** + * + * @type {Array} + * @memberof CommandCreateDTO + */ + arguments?: Array; } /** - * + * * @export * @interface CommandExecuteDTOAPI */ export interface CommandExecuteDTOAPI { - /** - * - * @type {CommandOutput} - * @memberof CommandExecuteDTOAPI - */ - 'data': CommandOutput; - /** - * - * @type {MetadataOutput} - * @memberof CommandExecuteDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {CommandOutput} + * @memberof CommandExecuteDTOAPI + */ + data: CommandOutput; + /** + * + * @type {MetadataOutput} + * @memberof CommandExecuteDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface CommandExecuteInputDTO */ export interface CommandExecuteInputDTO { - /** - * - * @type {string} - * @memberof CommandExecuteInputDTO - */ - 'command': string; + /** + * + * @type {string} + * @memberof CommandExecuteInputDTO + */ + command: string; } /** - * + * * @export * @interface CommandOutput */ export interface CommandOutput { - /** - * - * @type {string} - * @memberof CommandOutput - */ - 'rawResult': string; - /** - * - * @type {boolean} - * @memberof CommandOutput - */ - 'success': boolean; - /** - * - * @type {string} - * @memberof CommandOutput - */ - 'errorMessage'?: string; + /** + * + * @type {string} + * @memberof CommandOutput + */ + rawResult: string; + /** + * + * @type {boolean} + * @memberof CommandOutput + */ + success: boolean; + /** + * + * @type {string} + * @memberof CommandOutput + */ + errorMessage?: string; } /** - * + * * @export * @interface CommandOutputArrayDTOAPI */ export interface CommandOutputArrayDTOAPI { - /** - * - * @type {Array} - * @memberof CommandOutputArrayDTOAPI - */ - 'data': Array; - /** - * - * @type {MetadataOutput} - * @memberof CommandOutputArrayDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {Array} + * @memberof CommandOutputArrayDTOAPI + */ + data: Array; + /** + * + * @type {MetadataOutput} + * @memberof CommandOutputArrayDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface CommandOutputDTO */ export interface CommandOutputDTO { - /** - * - * @type {string} - * @memberof CommandOutputDTO - */ - 'name': string; - /** - * - * @type {string} - * @memberof CommandOutputDTO - */ - 'trigger': string; - /** - * - * @type {string} - * @memberof CommandOutputDTO - */ - 'helpText': string; - /** - * - * @type {FunctionOutputDTO} - * @memberof CommandOutputDTO - */ - 'function': FunctionOutputDTO; - /** - * - * @type {string} - * @memberof CommandOutputDTO - */ - 'functionId': string; - /** - * - * @type {string} - * @memberof CommandOutputDTO - */ - 'versionId': string; - /** - * - * @type {Array} - * @memberof CommandOutputDTO - */ - 'arguments': Array; - /** - * - * @type {string} - * @memberof CommandOutputDTO - */ - 'id': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof CommandOutputDTO - */ - 'createdAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof CommandOutputDTO - */ - 'updatedAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof CommandOutputDTO + */ + name: string; + /** + * + * @type {string} + * @memberof CommandOutputDTO + */ + trigger: string; + /** + * + * @type {string} + * @memberof CommandOutputDTO + */ + helpText: string; + /** + * + * @type {FunctionOutputDTO} + * @memberof CommandOutputDTO + */ + function: FunctionOutputDTO; + /** + * + * @type {string} + * @memberof CommandOutputDTO + */ + functionId: string; + /** + * + * @type {string} + * @memberof CommandOutputDTO + */ + versionId: string; + /** + * + * @type {Array} + * @memberof CommandOutputDTO + */ + arguments: Array; + /** + * + * @type {string} + * @memberof CommandOutputDTO + */ + id: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof CommandOutputDTO + */ + createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof CommandOutputDTO + */ + updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface CommandOutputDTOAPI */ export interface CommandOutputDTOAPI { - /** - * - * @type {CommandOutputDTO} - * @memberof CommandOutputDTOAPI - */ - 'data': CommandOutputDTO; - /** - * - * @type {MetadataOutput} - * @memberof CommandOutputDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {CommandOutputDTO} + * @memberof CommandOutputDTOAPI + */ + data: CommandOutputDTO; + /** + * + * @type {MetadataOutput} + * @memberof CommandOutputDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface CommandSearchInputAllowedFilters */ export interface CommandSearchInputAllowedFilters { - /** - * - * @type {Array} - * @memberof CommandSearchInputAllowedFilters - */ - 'moduleId'?: Array; - /** - * - * @type {Array} - * @memberof CommandSearchInputAllowedFilters - */ - 'name'?: Array; - /** - * - * @type {Array} - * @memberof CommandSearchInputAllowedFilters - */ - 'enabled'?: Array; - /** - * - * @type {Array} - * @memberof CommandSearchInputAllowedFilters - */ - 'id'?: Array; + /** + * + * @type {Array} + * @memberof CommandSearchInputAllowedFilters + */ + moduleId?: Array; + /** + * + * @type {Array} + * @memberof CommandSearchInputAllowedFilters + */ + name?: Array; + /** + * + * @type {Array} + * @memberof CommandSearchInputAllowedFilters + */ + enabled?: Array; + /** + * + * @type {Array} + * @memberof CommandSearchInputAllowedFilters + */ + id?: Array; } /** - * + * * @export * @interface CommandSearchInputDTO */ export interface CommandSearchInputDTO { - /** - * - * @type {CommandSearchInputAllowedFilters} - * @memberof CommandSearchInputDTO - */ - 'filters'?: CommandSearchInputAllowedFilters; - /** - * - * @type {CommandSearchInputAllowedFilters} - * @memberof CommandSearchInputDTO - */ - 'search'?: CommandSearchInputAllowedFilters; - /** - * - * @type {any} - * @memberof CommandSearchInputDTO - */ - 'greaterThan'?: any; - /** - * - * @type {any} - * @memberof CommandSearchInputDTO - */ - 'lessThan'?: any; - /** - * - * @type {number} - * @memberof CommandSearchInputDTO - */ - 'page'?: number; - /** - * - * @type {number} - * @memberof CommandSearchInputDTO - */ - 'limit'?: number; - /** - * - * @type {string} - * @memberof CommandSearchInputDTO - */ - 'sortBy'?: string; - /** - * - * @type {string} - * @memberof CommandSearchInputDTO - */ - 'sortDirection'?: CommandSearchInputDTOSortDirectionEnum; - /** - * - * @type {Array} - * @memberof CommandSearchInputDTO - */ - 'extend'?: Array; + /** + * + * @type {CommandSearchInputAllowedFilters} + * @memberof CommandSearchInputDTO + */ + filters?: CommandSearchInputAllowedFilters; + /** + * + * @type {CommandSearchInputAllowedFilters} + * @memberof CommandSearchInputDTO + */ + search?: CommandSearchInputAllowedFilters; + /** + * + * @type {any} + * @memberof CommandSearchInputDTO + */ + greaterThan?: any; + /** + * + * @type {any} + * @memberof CommandSearchInputDTO + */ + lessThan?: any; + /** + * + * @type {number} + * @memberof CommandSearchInputDTO + */ + page?: number; + /** + * + * @type {number} + * @memberof CommandSearchInputDTO + */ + limit?: number; + /** + * + * @type {string} + * @memberof CommandSearchInputDTO + */ + sortBy?: string; + /** + * + * @type {string} + * @memberof CommandSearchInputDTO + */ + sortDirection?: CommandSearchInputDTOSortDirectionEnum; + /** + * + * @type {Array} + * @memberof CommandSearchInputDTO + */ + extend?: Array; } export const CommandSearchInputDTOSortDirectionEnum = { - Asc: 'asc', - Desc: 'desc' + Asc: 'asc', + Desc: 'desc', } as const; -export type CommandSearchInputDTOSortDirectionEnum = typeof CommandSearchInputDTOSortDirectionEnum[keyof typeof CommandSearchInputDTOSortDirectionEnum]; +export type CommandSearchInputDTOSortDirectionEnum = + (typeof CommandSearchInputDTOSortDirectionEnum)[keyof typeof CommandSearchInputDTOSortDirectionEnum]; /** - * + * * @export * @interface CommandTriggerDTO */ export interface CommandTriggerDTO { - /** - * - * @type {string} - * @memberof CommandTriggerDTO - */ - 'playerId': string; - /** - * - * @type {string} - * @memberof CommandTriggerDTO - */ - 'msg': string; + /** + * + * @type {string} + * @memberof CommandTriggerDTO + */ + playerId: string; + /** + * + * @type {string} + * @memberof CommandTriggerDTO + */ + msg: string; } /** - * + * * @export * @interface CommandUpdateDTO */ export interface CommandUpdateDTO { - /** - * - * @type {string} - * @memberof CommandUpdateDTO - */ - 'name'?: string; - /** - * - * @type {string} - * @memberof CommandUpdateDTO - */ - 'trigger'?: string; - /** - * - * @type {string} - * @memberof CommandUpdateDTO - */ - 'helpText'?: string; - /** - * - * @type {string} - * @memberof CommandUpdateDTO - */ - 'function'?: string; - /** - * - * @type {Array} - * @memberof CommandUpdateDTO - */ - 'arguments'?: Array; + /** + * + * @type {string} + * @memberof CommandUpdateDTO + */ + name?: string; + /** + * + * @type {string} + * @memberof CommandUpdateDTO + */ + trigger?: string; + /** + * + * @type {string} + * @memberof CommandUpdateDTO + */ + helpText?: string; + /** + * + * @type {string} + * @memberof CommandUpdateDTO + */ + function?: string; + /** + * + * @type {Array} + * @memberof CommandUpdateDTO + */ + arguments?: Array; } /** - * + * * @export * @interface CountryStatsInputDTO */ export interface CountryStatsInputDTO { - /** - * - * @type {Array} - * @memberof CountryStatsInputDTO - */ - 'gameServerId'?: Array; + /** + * + * @type {Array} + * @memberof CountryStatsInputDTO + */ + gameServerId?: Array; } /** - * + * * @export * @interface CronJobCreateDTO */ export interface CronJobCreateDTO { - /** - * - * @type {string} - * @memberof CronJobCreateDTO - */ - 'name': string; - /** - * - * @type {string} - * @memberof CronJobCreateDTO - */ - 'temporalValue': string; - /** - * - * @type {string} - * @memberof CronJobCreateDTO - */ - 'versionId': string; - /** - * - * @type {string} - * @memberof CronJobCreateDTO - */ - 'function'?: string; + /** + * + * @type {string} + * @memberof CronJobCreateDTO + */ + name: string; + /** + * + * @type {string} + * @memberof CronJobCreateDTO + */ + temporalValue: string; + /** + * + * @type {string} + * @memberof CronJobCreateDTO + */ + versionId: string; + /** + * + * @type {string} + * @memberof CronJobCreateDTO + */ + function?: string; } /** - * + * * @export * @interface CronJobOutputArrayDTOAPI */ export interface CronJobOutputArrayDTOAPI { - /** - * - * @type {Array} - * @memberof CronJobOutputArrayDTOAPI - */ - 'data': Array; - /** - * - * @type {MetadataOutput} - * @memberof CronJobOutputArrayDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {Array} + * @memberof CronJobOutputArrayDTOAPI + */ + data: Array; + /** + * + * @type {MetadataOutput} + * @memberof CronJobOutputArrayDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface CronJobOutputDTO */ export interface CronJobOutputDTO { - /** - * - * @type {string} - * @memberof CronJobOutputDTO - */ - 'name': string; - /** - * - * @type {string} - * @memberof CronJobOutputDTO - */ - 'temporalValue': string; - /** - * - * @type {FunctionOutputDTO} - * @memberof CronJobOutputDTO - */ - 'function': FunctionOutputDTO; - /** - * - * @type {string} - * @memberof CronJobOutputDTO - */ - 'versionId': string; - /** - * - * @type {string} - * @memberof CronJobOutputDTO - */ - 'id': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof CronJobOutputDTO - */ - 'createdAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof CronJobOutputDTO - */ - 'updatedAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof CronJobOutputDTO + */ + name: string; + /** + * + * @type {string} + * @memberof CronJobOutputDTO + */ + temporalValue: string; + /** + * + * @type {FunctionOutputDTO} + * @memberof CronJobOutputDTO + */ + function: FunctionOutputDTO; + /** + * + * @type {string} + * @memberof CronJobOutputDTO + */ + versionId: string; + /** + * + * @type {string} + * @memberof CronJobOutputDTO + */ + id: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof CronJobOutputDTO + */ + createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof CronJobOutputDTO + */ + updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface CronJobOutputDTOAPI */ export interface CronJobOutputDTOAPI { - /** - * - * @type {CronJobOutputDTO} - * @memberof CronJobOutputDTOAPI - */ - 'data': CronJobOutputDTO; - /** - * - * @type {MetadataOutput} - * @memberof CronJobOutputDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {CronJobOutputDTO} + * @memberof CronJobOutputDTOAPI + */ + data: CronJobOutputDTO; + /** + * + * @type {MetadataOutput} + * @memberof CronJobOutputDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface CronJobSearchInputAllowedFilters */ export interface CronJobSearchInputAllowedFilters { - /** - * - * @type {Array} - * @memberof CronJobSearchInputAllowedFilters - */ - 'moduleId'?: Array; - /** - * - * @type {Array} - * @memberof CronJobSearchInputAllowedFilters - */ - 'name'?: Array; - /** - * - * @type {Array} - * @memberof CronJobSearchInputAllowedFilters - */ - 'id'?: Array; + /** + * + * @type {Array} + * @memberof CronJobSearchInputAllowedFilters + */ + moduleId?: Array; + /** + * + * @type {Array} + * @memberof CronJobSearchInputAllowedFilters + */ + name?: Array; + /** + * + * @type {Array} + * @memberof CronJobSearchInputAllowedFilters + */ + id?: Array; } /** - * + * * @export * @interface CronJobSearchInputDTO */ export interface CronJobSearchInputDTO { - /** - * - * @type {CronJobSearchInputAllowedFilters} - * @memberof CronJobSearchInputDTO - */ - 'filters'?: CronJobSearchInputAllowedFilters; - /** - * - * @type {CronJobSearchInputAllowedFilters} - * @memberof CronJobSearchInputDTO - */ - 'search'?: CronJobSearchInputAllowedFilters; - /** - * - * @type {any} - * @memberof CronJobSearchInputDTO - */ - 'greaterThan'?: any; - /** - * - * @type {any} - * @memberof CronJobSearchInputDTO - */ - 'lessThan'?: any; - /** - * - * @type {number} - * @memberof CronJobSearchInputDTO - */ - 'page'?: number; - /** - * - * @type {number} - * @memberof CronJobSearchInputDTO - */ - 'limit'?: number; - /** - * - * @type {string} - * @memberof CronJobSearchInputDTO - */ - 'sortBy'?: string; - /** - * - * @type {string} - * @memberof CronJobSearchInputDTO - */ - 'sortDirection'?: CronJobSearchInputDTOSortDirectionEnum; - /** - * - * @type {Array} - * @memberof CronJobSearchInputDTO - */ - 'extend'?: Array; + /** + * + * @type {CronJobSearchInputAllowedFilters} + * @memberof CronJobSearchInputDTO + */ + filters?: CronJobSearchInputAllowedFilters; + /** + * + * @type {CronJobSearchInputAllowedFilters} + * @memberof CronJobSearchInputDTO + */ + search?: CronJobSearchInputAllowedFilters; + /** + * + * @type {any} + * @memberof CronJobSearchInputDTO + */ + greaterThan?: any; + /** + * + * @type {any} + * @memberof CronJobSearchInputDTO + */ + lessThan?: any; + /** + * + * @type {number} + * @memberof CronJobSearchInputDTO + */ + page?: number; + /** + * + * @type {number} + * @memberof CronJobSearchInputDTO + */ + limit?: number; + /** + * + * @type {string} + * @memberof CronJobSearchInputDTO + */ + sortBy?: string; + /** + * + * @type {string} + * @memberof CronJobSearchInputDTO + */ + sortDirection?: CronJobSearchInputDTOSortDirectionEnum; + /** + * + * @type {Array} + * @memberof CronJobSearchInputDTO + */ + extend?: Array; } export const CronJobSearchInputDTOSortDirectionEnum = { - Asc: 'asc', - Desc: 'desc' + Asc: 'asc', + Desc: 'desc', } as const; -export type CronJobSearchInputDTOSortDirectionEnum = typeof CronJobSearchInputDTOSortDirectionEnum[keyof typeof CronJobSearchInputDTOSortDirectionEnum]; +export type CronJobSearchInputDTOSortDirectionEnum = + (typeof CronJobSearchInputDTOSortDirectionEnum)[keyof typeof CronJobSearchInputDTOSortDirectionEnum]; /** - * + * * @export * @interface CronJobTriggerDTO */ export interface CronJobTriggerDTO { - /** - * - * @type {string} - * @memberof CronJobTriggerDTO - */ - 'gameServerId': string; - /** - * - * @type {string} - * @memberof CronJobTriggerDTO - */ - 'cronjobId': string; - /** - * - * @type {string} - * @memberof CronJobTriggerDTO - */ - 'moduleId': string; + /** + * + * @type {string} + * @memberof CronJobTriggerDTO + */ + gameServerId: string; + /** + * + * @type {string} + * @memberof CronJobTriggerDTO + */ + cronjobId: string; + /** + * + * @type {string} + * @memberof CronJobTriggerDTO + */ + moduleId: string; } /** - * + * * @export * @interface CronJobUpdateDTO */ export interface CronJobUpdateDTO { - /** - * - * @type {string} - * @memberof CronJobUpdateDTO - */ - 'name'?: string; - /** - * - * @type {string} - * @memberof CronJobUpdateDTO - */ - 'temporalValue'?: string; - /** - * - * @type {string} - * @memberof CronJobUpdateDTO - */ - 'function'?: string; + /** + * + * @type {string} + * @memberof CronJobUpdateDTO + */ + name?: string; + /** + * + * @type {string} + * @memberof CronJobUpdateDTO + */ + temporalValue?: string; + /** + * + * @type {string} + * @memberof CronJobUpdateDTO + */ + function?: string; } /** - * + * * @export * @interface DiscordInviteOutputDTO */ export interface DiscordInviteOutputDTO { - /** - * - * @type {InviteOutputDTO} - * @memberof DiscordInviteOutputDTO - */ - 'data': InviteOutputDTO; - /** - * - * @type {MetadataOutput} - * @memberof DiscordInviteOutputDTO - */ - 'meta': MetadataOutput; + /** + * + * @type {InviteOutputDTO} + * @memberof DiscordInviteOutputDTO + */ + data: InviteOutputDTO; + /** + * + * @type {MetadataOutput} + * @memberof DiscordInviteOutputDTO + */ + meta: MetadataOutput; } /** - * + * * @export * @interface DiscordParamId */ export interface DiscordParamId { - /** - * - * @type {string} - * @memberof DiscordParamId - */ - 'id': string; + /** + * + * @type {string} + * @memberof DiscordParamId + */ + id: string; } /** - * + * * @export * @interface DomainCreateInputDTO */ export interface DomainCreateInputDTO { - /** - * - * @type {string} - * @memberof DomainCreateInputDTO - */ - 'name': string; - /** - * - * @type {string} - * @memberof DomainCreateInputDTO - */ - 'id'?: string; - /** - * - * @type {string} - * @memberof DomainCreateInputDTO - */ - 'state'?: DomainCreateInputDTOStateEnum; - /** - * - * @type {string} - * @memberof DomainCreateInputDTO - */ - 'externalReference'?: string; + /** + * + * @type {string} + * @memberof DomainCreateInputDTO + */ + name: string; + /** + * + * @type {string} + * @memberof DomainCreateInputDTO + */ + id?: string; + /** + * + * @type {string} + * @memberof DomainCreateInputDTO + */ + state?: DomainCreateInputDTOStateEnum; + /** + * + * @type {string} + * @memberof DomainCreateInputDTO + */ + externalReference?: string; } export const DomainCreateInputDTOStateEnum = { - Active: 'ACTIVE', - Disabled: 'DISABLED', - Maintenance: 'MAINTENANCE' + Active: 'ACTIVE', + Disabled: 'DISABLED', + Maintenance: 'MAINTENANCE', } as const; -export type DomainCreateInputDTOStateEnum = typeof DomainCreateInputDTOStateEnum[keyof typeof DomainCreateInputDTOStateEnum]; +export type DomainCreateInputDTOStateEnum = + (typeof DomainCreateInputDTOStateEnum)[keyof typeof DomainCreateInputDTOStateEnum]; /** - * + * * @export * @interface DomainCreateOutputDTO */ export interface DomainCreateOutputDTO { - /** - * - * @type {DomainOutputDTO} - * @memberof DomainCreateOutputDTO - */ - 'createdDomain': DomainOutputDTO; - /** - * - * @type {UserOutputDTO} - * @memberof DomainCreateOutputDTO - */ - 'rootUser': UserOutputDTO; - /** - * - * @type {RoleOutputDTO} - * @memberof DomainCreateOutputDTO - */ - 'rootRole': RoleOutputDTO; - /** - * - * @type {string} - * @memberof DomainCreateOutputDTO - */ - 'password': string; + /** + * + * @type {DomainOutputDTO} + * @memberof DomainCreateOutputDTO + */ + createdDomain: DomainOutputDTO; + /** + * + * @type {UserOutputDTO} + * @memberof DomainCreateOutputDTO + */ + rootUser: UserOutputDTO; + /** + * + * @type {RoleOutputDTO} + * @memberof DomainCreateOutputDTO + */ + rootRole: RoleOutputDTO; + /** + * + * @type {string} + * @memberof DomainCreateOutputDTO + */ + password: string; } /** - * + * * @export * @interface DomainCreateOutputDTOAPI */ export interface DomainCreateOutputDTOAPI { - /** - * - * @type {DomainCreateOutputDTO} - * @memberof DomainCreateOutputDTOAPI - */ - 'data': DomainCreateOutputDTO; - /** - * - * @type {MetadataOutput} - * @memberof DomainCreateOutputDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {DomainCreateOutputDTO} + * @memberof DomainCreateOutputDTOAPI + */ + data: DomainCreateOutputDTO; + /** + * + * @type {MetadataOutput} + * @memberof DomainCreateOutputDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface DomainOutputArrayDTOAPI */ export interface DomainOutputArrayDTOAPI { - /** - * - * @type {Array} - * @memberof DomainOutputArrayDTOAPI - */ - 'data': Array; - /** - * - * @type {MetadataOutput} - * @memberof DomainOutputArrayDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {Array} + * @memberof DomainOutputArrayDTOAPI + */ + data: Array; + /** + * + * @type {MetadataOutput} + * @memberof DomainOutputArrayDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface DomainOutputDTO */ export interface DomainOutputDTO { - /** - * - * @type {string} - * @memberof DomainOutputDTO - */ - 'name': string; - /** - * - * @type {string} - * @memberof DomainOutputDTO - */ - 'externalReference': string; - /** - * - * @type {string} - * @memberof DomainOutputDTO - */ - 'state': DomainOutputDTOStateEnum; - /** - * - * @type {number} - * @memberof DomainOutputDTO - */ - 'rateLimitPoints': number; - /** - * - * @type {number} - * @memberof DomainOutputDTO - */ - 'rateLimitDuration': number; - /** - * - * @type {string} - * @memberof DomainOutputDTO - */ - 'id': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof DomainOutputDTO - */ - 'createdAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof DomainOutputDTO - */ - 'updatedAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof DomainOutputDTO + */ + name: string; + /** + * + * @type {string} + * @memberof DomainOutputDTO + */ + externalReference: string; + /** + * + * @type {string} + * @memberof DomainOutputDTO + */ + state: DomainOutputDTOStateEnum; + /** + * + * @type {number} + * @memberof DomainOutputDTO + */ + rateLimitPoints: number; + /** + * + * @type {number} + * @memberof DomainOutputDTO + */ + rateLimitDuration: number; + /** + * + * @type {string} + * @memberof DomainOutputDTO + */ + id: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof DomainOutputDTO + */ + createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof DomainOutputDTO + */ + updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } export const DomainOutputDTOStateEnum = { - Active: 'ACTIVE', - Disabled: 'DISABLED', - Maintenance: 'MAINTENANCE' + Active: 'ACTIVE', + Disabled: 'DISABLED', + Maintenance: 'MAINTENANCE', } as const; -export type DomainOutputDTOStateEnum = typeof DomainOutputDTOStateEnum[keyof typeof DomainOutputDTOStateEnum]; +export type DomainOutputDTOStateEnum = (typeof DomainOutputDTOStateEnum)[keyof typeof DomainOutputDTOStateEnum]; /** - * + * * @export * @interface DomainOutputDTOAPI */ export interface DomainOutputDTOAPI { - /** - * - * @type {DomainOutputDTO} - * @memberof DomainOutputDTOAPI - */ - 'data': DomainOutputDTO; - /** - * - * @type {MetadataOutput} - * @memberof DomainOutputDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {DomainOutputDTO} + * @memberof DomainOutputDTOAPI + */ + data: DomainOutputDTO; + /** + * + * @type {MetadataOutput} + * @memberof DomainOutputDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface DomainSearchInputAllowedFilters */ export interface DomainSearchInputAllowedFilters { - /** - * - * @type {Array} - * @memberof DomainSearchInputAllowedFilters - */ - 'id'?: Array; - /** - * - * @type {Array} - * @memberof DomainSearchInputAllowedFilters - */ - 'name'?: Array; - /** - * - * @type {Array} - * @memberof DomainSearchInputAllowedFilters - */ - 'state'?: Array; - /** - * - * @type {Array} - * @memberof DomainSearchInputAllowedFilters - */ - 'externalReference'?: Array; + /** + * + * @type {Array} + * @memberof DomainSearchInputAllowedFilters + */ + id?: Array; + /** + * + * @type {Array} + * @memberof DomainSearchInputAllowedFilters + */ + name?: Array; + /** + * + * @type {Array} + * @memberof DomainSearchInputAllowedFilters + */ + state?: Array; + /** + * + * @type {Array} + * @memberof DomainSearchInputAllowedFilters + */ + externalReference?: Array; } export const DomainSearchInputAllowedFiltersStateEnum = { - Active: 'ACTIVE', - Disabled: 'DISABLED', - Maintenance: 'MAINTENANCE' + Active: 'ACTIVE', + Disabled: 'DISABLED', + Maintenance: 'MAINTENANCE', } as const; -export type DomainSearchInputAllowedFiltersStateEnum = typeof DomainSearchInputAllowedFiltersStateEnum[keyof typeof DomainSearchInputAllowedFiltersStateEnum]; +export type DomainSearchInputAllowedFiltersStateEnum = + (typeof DomainSearchInputAllowedFiltersStateEnum)[keyof typeof DomainSearchInputAllowedFiltersStateEnum]; /** - * + * * @export * @interface DomainSearchInputDTO */ export interface DomainSearchInputDTO { - /** - * - * @type {DomainSearchInputAllowedFilters} - * @memberof DomainSearchInputDTO - */ - 'filters'?: DomainSearchInputAllowedFilters; - /** - * - * @type {DomainSearchInputAllowedFilters} - * @memberof DomainSearchInputDTO - */ - 'search'?: DomainSearchInputAllowedFilters; - /** - * - * @type {any} - * @memberof DomainSearchInputDTO - */ - 'greaterThan'?: any; - /** - * - * @type {any} - * @memberof DomainSearchInputDTO - */ - 'lessThan'?: any; - /** - * - * @type {number} - * @memberof DomainSearchInputDTO - */ - 'page'?: number; - /** - * - * @type {number} - * @memberof DomainSearchInputDTO - */ - 'limit'?: number; - /** - * - * @type {string} - * @memberof DomainSearchInputDTO - */ - 'sortBy'?: string; - /** - * - * @type {string} - * @memberof DomainSearchInputDTO - */ - 'sortDirection'?: DomainSearchInputDTOSortDirectionEnum; - /** - * - * @type {Array} - * @memberof DomainSearchInputDTO - */ - 'extend'?: Array; + /** + * + * @type {DomainSearchInputAllowedFilters} + * @memberof DomainSearchInputDTO + */ + filters?: DomainSearchInputAllowedFilters; + /** + * + * @type {DomainSearchInputAllowedFilters} + * @memberof DomainSearchInputDTO + */ + search?: DomainSearchInputAllowedFilters; + /** + * + * @type {any} + * @memberof DomainSearchInputDTO + */ + greaterThan?: any; + /** + * + * @type {any} + * @memberof DomainSearchInputDTO + */ + lessThan?: any; + /** + * + * @type {number} + * @memberof DomainSearchInputDTO + */ + page?: number; + /** + * + * @type {number} + * @memberof DomainSearchInputDTO + */ + limit?: number; + /** + * + * @type {string} + * @memberof DomainSearchInputDTO + */ + sortBy?: string; + /** + * + * @type {string} + * @memberof DomainSearchInputDTO + */ + sortDirection?: DomainSearchInputDTOSortDirectionEnum; + /** + * + * @type {Array} + * @memberof DomainSearchInputDTO + */ + extend?: Array; } export const DomainSearchInputDTOSortDirectionEnum = { - Asc: 'asc', - Desc: 'desc' + Asc: 'asc', + Desc: 'desc', } as const; -export type DomainSearchInputDTOSortDirectionEnum = typeof DomainSearchInputDTOSortDirectionEnum[keyof typeof DomainSearchInputDTOSortDirectionEnum]; +export type DomainSearchInputDTOSortDirectionEnum = + (typeof DomainSearchInputDTOSortDirectionEnum)[keyof typeof DomainSearchInputDTOSortDirectionEnum]; /** - * + * * @export * @interface DomainUpdateInputDTO */ export interface DomainUpdateInputDTO { - /** - * - * @type {string} - * @memberof DomainUpdateInputDTO - */ - 'name'?: string; - /** - * - * @type {string} - * @memberof DomainUpdateInputDTO - */ - 'externalReference'?: string; - /** - * - * @type {string} - * @memberof DomainUpdateInputDTO - */ - 'state'?: DomainUpdateInputDTOStateEnum; + /** + * + * @type {string} + * @memberof DomainUpdateInputDTO + */ + name?: string; + /** + * + * @type {string} + * @memberof DomainUpdateInputDTO + */ + externalReference?: string; + /** + * + * @type {string} + * @memberof DomainUpdateInputDTO + */ + state?: DomainUpdateInputDTOStateEnum; } export const DomainUpdateInputDTOStateEnum = { - Active: 'ACTIVE', - Disabled: 'DISABLED', - Maintenance: 'MAINTENANCE' + Active: 'ACTIVE', + Disabled: 'DISABLED', + Maintenance: 'MAINTENANCE', } as const; -export type DomainUpdateInputDTOStateEnum = typeof DomainUpdateInputDTOStateEnum[keyof typeof DomainUpdateInputDTOStateEnum]; +export type DomainUpdateInputDTOStateEnum = + (typeof DomainUpdateInputDTOStateEnum)[keyof typeof DomainUpdateInputDTOStateEnum]; /** - * + * * @export * @interface ErrorOutput */ export interface ErrorOutput { - /** - * - * @type {string} - * @memberof ErrorOutput - */ - 'code': string; - /** - * - * @type {string} - * @memberof ErrorOutput - */ - 'message': string; - /** - * - * @type {string} - * @memberof ErrorOutput - */ - 'details': string; + /** + * + * @type {string} + * @memberof ErrorOutput + */ + code: string; + /** + * + * @type {string} + * @memberof ErrorOutput + */ + message: string; + /** + * + * @type {string} + * @memberof ErrorOutput + */ + details: string; } /** - * + * * @export * @interface EventChatMessage */ export interface EventChatMessage { - /** - * - * @type {IGamePlayer} - * @memberof EventChatMessage - */ - 'player': IGamePlayer; - /** - * - * @type {string} - * @memberof EventChatMessage - */ - 'channel': EventChatMessageChannelEnum; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof EventChatMessage - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {string} - * @memberof EventChatMessage - */ - 'msg'?: string; + /** + * + * @type {IGamePlayer} + * @memberof EventChatMessage + */ + player: IGamePlayer; + /** + * + * @type {string} + * @memberof EventChatMessage + */ + channel: EventChatMessageChannelEnum; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof EventChatMessage + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof EventChatMessage + */ + msg?: string; } export const EventChatMessageChannelEnum = { - Global: 'global', - Team: 'team', - Friends: 'friends', - Whisper: 'whisper' + Global: 'global', + Team: 'team', + Friends: 'friends', + Whisper: 'whisper', } as const; -export type EventChatMessageChannelEnum = typeof EventChatMessageChannelEnum[keyof typeof EventChatMessageChannelEnum]; +export type EventChatMessageChannelEnum = + (typeof EventChatMessageChannelEnum)[keyof typeof EventChatMessageChannelEnum]; /** - * + * * @export * @interface EventCreateDTO */ export interface EventCreateDTO { - /** - * - * @type {string} - * @memberof EventCreateDTO - */ - 'eventName': EventCreateDTOEventNameEnum; - /** - * - * @type {string} - * @memberof EventCreateDTO - */ - 'moduleId'?: string; - /** - * - * @type {string} - * @memberof EventCreateDTO - */ - 'playerId'?: string; - /** - * - * @type {string} - * @memberof EventCreateDTO - */ - 'userId'?: string; - /** - * - * @type {string} - * @memberof EventCreateDTO - */ - 'gameserverId'?: string; - /** - * - * @type {string} - * @memberof EventCreateDTO - */ - 'actingUserId'?: string; - /** - * - * @type {string} - * @memberof EventCreateDTO - */ - 'actingModuleId'?: string; - /** - * - * @type {object} - * @memberof EventCreateDTO - */ - 'meta'?: object; + /** + * + * @type {string} + * @memberof EventCreateDTO + */ + eventName: EventCreateDTOEventNameEnum; + /** + * + * @type {string} + * @memberof EventCreateDTO + */ + moduleId?: string; + /** + * + * @type {string} + * @memberof EventCreateDTO + */ + playerId?: string; + /** + * + * @type {string} + * @memberof EventCreateDTO + */ + userId?: string; + /** + * + * @type {string} + * @memberof EventCreateDTO + */ + gameserverId?: string; + /** + * + * @type {string} + * @memberof EventCreateDTO + */ + actingUserId?: string; + /** + * + * @type {string} + * @memberof EventCreateDTO + */ + actingModuleId?: string; + /** + * + * @type {object} + * @memberof EventCreateDTO + */ + meta?: object; } export const EventCreateDTOEventNameEnum = { - RoleAssigned: 'role-assigned', - RoleRemoved: 'role-removed', - RoleCreated: 'role-created', - RoleUpdated: 'role-updated', - RoleDeleted: 'role-deleted', - CommandExecuted: 'command-executed', - HookExecuted: 'hook-executed', - CronjobExecuted: 'cronjob-executed', - CurrencyAdded: 'currency-added', - CurrencyDeducted: 'currency-deducted', - SettingsSet: 'settings-set', - PlayerNewIpDetected: 'player-new-ip-detected', - ServerStatusChanged: 'server-status-changed', - ModuleCreated: 'module-created', - ModuleUpdated: 'module-updated', - ModuleDeleted: 'module-deleted', - ModuleInstalled: 'module-installed', - ModuleUninstalled: 'module-uninstalled', - PlayerCreated: 'player-created', - ShopListingCreated: 'shop-listing-created', - ShopListingUpdated: 'shop-listing-updated', - ShopListingDeleted: 'shop-listing-deleted', - ShopOrderCreated: 'shop-order-created', - ShopOrderStatusChanged: 'shop-order-status-changed', - PlayerLinked: 'player-linked', - PlayerConnected: 'player-connected', - PlayerDisconnected: 'player-disconnected', - ChatMessage: 'chat-message', - PlayerDeath: 'player-death', - EntityKilled: 'entity-killed' + RoleAssigned: 'role-assigned', + RoleRemoved: 'role-removed', + RoleCreated: 'role-created', + RoleUpdated: 'role-updated', + RoleDeleted: 'role-deleted', + CommandExecuted: 'command-executed', + HookExecuted: 'hook-executed', + CronjobExecuted: 'cronjob-executed', + CurrencyAdded: 'currency-added', + CurrencyDeducted: 'currency-deducted', + SettingsSet: 'settings-set', + PlayerNewIpDetected: 'player-new-ip-detected', + ServerStatusChanged: 'server-status-changed', + ModuleCreated: 'module-created', + ModuleUpdated: 'module-updated', + ModuleDeleted: 'module-deleted', + ModuleInstalled: 'module-installed', + ModuleUninstalled: 'module-uninstalled', + PlayerCreated: 'player-created', + ShopListingCreated: 'shop-listing-created', + ShopListingUpdated: 'shop-listing-updated', + ShopListingDeleted: 'shop-listing-deleted', + ShopOrderCreated: 'shop-order-created', + ShopOrderStatusChanged: 'shop-order-status-changed', + PlayerLinked: 'player-linked', + PlayerConnected: 'player-connected', + PlayerDisconnected: 'player-disconnected', + ChatMessage: 'chat-message', + PlayerDeath: 'player-death', + EntityKilled: 'entity-killed', } as const; -export type EventCreateDTOEventNameEnum = typeof EventCreateDTOEventNameEnum[keyof typeof EventCreateDTOEventNameEnum]; +export type EventCreateDTOEventNameEnum = + (typeof EventCreateDTOEventNameEnum)[keyof typeof EventCreateDTOEventNameEnum]; /** - * + * * @export * @interface EventDiscordChannel */ export interface EventDiscordChannel { - /** - * - * @type {string} - * @memberof EventDiscordChannel - */ - 'id': string; - /** - * - * @type {string} - * @memberof EventDiscordChannel - */ - 'name': string; + /** + * + * @type {string} + * @memberof EventDiscordChannel + */ + id: string; + /** + * + * @type {string} + * @memberof EventDiscordChannel + */ + name: string; } /** - * + * * @export * @interface EventDiscordUser */ export interface EventDiscordUser { - /** - * - * @type {string} - * @memberof EventDiscordUser - */ - 'id': string; - /** - * - * @type {string} - * @memberof EventDiscordUser - */ - 'username': string; - /** - * - * @type {string} - * @memberof EventDiscordUser - */ - 'displayName': string; - /** - * - * @type {boolean} - * @memberof EventDiscordUser - */ - 'isBot': boolean; - /** - * - * @type {boolean} - * @memberof EventDiscordUser - */ - 'isTakaroBot': boolean; + /** + * + * @type {string} + * @memberof EventDiscordUser + */ + id: string; + /** + * + * @type {string} + * @memberof EventDiscordUser + */ + username: string; + /** + * + * @type {string} + * @memberof EventDiscordUser + */ + displayName: string; + /** + * + * @type {boolean} + * @memberof EventDiscordUser + */ + isBot: boolean; + /** + * + * @type {boolean} + * @memberof EventDiscordUser + */ + isTakaroBot: boolean; } /** - * + * * @export * @interface EventEntityKilled */ export interface EventEntityKilled { - /** - * - * @type {IGamePlayer} - * @memberof EventEntityKilled - */ - 'player': IGamePlayer; - /** - * - * @type {string} - * @memberof EventEntityKilled - */ - 'entity': string; - /** - * - * @type {string} - * @memberof EventEntityKilled - */ - 'weapon': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof EventEntityKilled - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {string} - * @memberof EventEntityKilled - */ - 'msg'?: string; + /** + * + * @type {IGamePlayer} + * @memberof EventEntityKilled + */ + player: IGamePlayer; + /** + * + * @type {string} + * @memberof EventEntityKilled + */ + entity: string; + /** + * + * @type {string} + * @memberof EventEntityKilled + */ + weapon: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof EventEntityKilled + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof EventEntityKilled + */ + msg?: string; } /** - * + * * @export * @interface EventLogLine */ export interface EventLogLine { - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof EventLogLine - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {string} - * @memberof EventLogLine - */ - 'msg'?: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof EventLogLine + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof EventLogLine + */ + msg?: string; } /** - * + * * @export * @interface EventOutputArrayDTOAPI */ export interface EventOutputArrayDTOAPI { - /** - * - * @type {Array} - * @memberof EventOutputArrayDTOAPI - */ - 'data': Array; - /** - * - * @type {MetadataOutput} - * @memberof EventOutputArrayDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {Array} + * @memberof EventOutputArrayDTOAPI + */ + data: Array; + /** + * + * @type {MetadataOutput} + * @memberof EventOutputArrayDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface EventOutputDTO */ export interface EventOutputDTO { - /** - * - * @type {string} - * @memberof EventOutputDTO - */ - 'eventName': EventOutputDTOEventNameEnum; - /** - * - * @type {string} - * @memberof EventOutputDTO - */ - 'moduleId'?: string; - /** - * - * @type {string} - * @memberof EventOutputDTO - */ - 'playerId'?: string; - /** - * - * @type {string} - * @memberof EventOutputDTO - */ - 'userId'?: string; - /** - * - * @type {string} - * @memberof EventOutputDTO - */ - 'gameserverId'?: string; - /** - * - * @type {string} - * @memberof EventOutputDTO - */ - 'actingUserId'?: string; - /** - * - * @type {string} - * @memberof EventOutputDTO - */ - 'actingModuleId'?: string; - /** - * - * @type {EventOutputDTOMeta} - * @memberof EventOutputDTO - */ - 'meta'?: EventOutputDTOMeta; - /** - * - * @type {PlayerOutputDTO} - * @memberof EventOutputDTO - */ - 'player'?: PlayerOutputDTO; - /** - * - * @type {GameServerOutputDTO} - * @memberof EventOutputDTO - */ - 'gameServer'?: GameServerOutputDTO; - /** - * - * @type {ModuleOutputDTO} - * @memberof EventOutputDTO - */ - 'module'?: ModuleOutputDTO; - /** - * - * @type {UserOutputDTO} - * @memberof EventOutputDTO - */ - 'user'?: UserOutputDTO; - /** - * - * @type {string} - * @memberof EventOutputDTO - */ - 'id': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof EventOutputDTO - */ - 'createdAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof EventOutputDTO - */ - 'updatedAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof EventOutputDTO + */ + eventName: EventOutputDTOEventNameEnum; + /** + * + * @type {string} + * @memberof EventOutputDTO + */ + moduleId?: string; + /** + * + * @type {string} + * @memberof EventOutputDTO + */ + playerId?: string; + /** + * + * @type {string} + * @memberof EventOutputDTO + */ + userId?: string; + /** + * + * @type {string} + * @memberof EventOutputDTO + */ + gameserverId?: string; + /** + * + * @type {string} + * @memberof EventOutputDTO + */ + actingUserId?: string; + /** + * + * @type {string} + * @memberof EventOutputDTO + */ + actingModuleId?: string; + /** + * + * @type {EventOutputDTOMeta} + * @memberof EventOutputDTO + */ + meta?: EventOutputDTOMeta; + /** + * + * @type {PlayerOutputDTO} + * @memberof EventOutputDTO + */ + player?: PlayerOutputDTO; + /** + * + * @type {GameServerOutputDTO} + * @memberof EventOutputDTO + */ + gameServer?: GameServerOutputDTO; + /** + * + * @type {ModuleOutputDTO} + * @memberof EventOutputDTO + */ + module?: ModuleOutputDTO; + /** + * + * @type {UserOutputDTO} + * @memberof EventOutputDTO + */ + user?: UserOutputDTO; + /** + * + * @type {string} + * @memberof EventOutputDTO + */ + id: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof EventOutputDTO + */ + createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof EventOutputDTO + */ + updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } export const EventOutputDTOEventNameEnum = { - RoleAssigned: 'role-assigned', - RoleRemoved: 'role-removed', - RoleCreated: 'role-created', - RoleUpdated: 'role-updated', - RoleDeleted: 'role-deleted', - CommandExecuted: 'command-executed', - HookExecuted: 'hook-executed', - CronjobExecuted: 'cronjob-executed', - CurrencyAdded: 'currency-added', - CurrencyDeducted: 'currency-deducted', - SettingsSet: 'settings-set', - PlayerNewIpDetected: 'player-new-ip-detected', - ServerStatusChanged: 'server-status-changed', - ModuleCreated: 'module-created', - ModuleUpdated: 'module-updated', - ModuleDeleted: 'module-deleted', - ModuleInstalled: 'module-installed', - ModuleUninstalled: 'module-uninstalled', - PlayerCreated: 'player-created', - ShopListingCreated: 'shop-listing-created', - ShopListingUpdated: 'shop-listing-updated', - ShopListingDeleted: 'shop-listing-deleted', - ShopOrderCreated: 'shop-order-created', - ShopOrderStatusChanged: 'shop-order-status-changed', - PlayerLinked: 'player-linked', - PlayerConnected: 'player-connected', - PlayerDisconnected: 'player-disconnected', - ChatMessage: 'chat-message', - PlayerDeath: 'player-death', - EntityKilled: 'entity-killed' + RoleAssigned: 'role-assigned', + RoleRemoved: 'role-removed', + RoleCreated: 'role-created', + RoleUpdated: 'role-updated', + RoleDeleted: 'role-deleted', + CommandExecuted: 'command-executed', + HookExecuted: 'hook-executed', + CronjobExecuted: 'cronjob-executed', + CurrencyAdded: 'currency-added', + CurrencyDeducted: 'currency-deducted', + SettingsSet: 'settings-set', + PlayerNewIpDetected: 'player-new-ip-detected', + ServerStatusChanged: 'server-status-changed', + ModuleCreated: 'module-created', + ModuleUpdated: 'module-updated', + ModuleDeleted: 'module-deleted', + ModuleInstalled: 'module-installed', + ModuleUninstalled: 'module-uninstalled', + PlayerCreated: 'player-created', + ShopListingCreated: 'shop-listing-created', + ShopListingUpdated: 'shop-listing-updated', + ShopListingDeleted: 'shop-listing-deleted', + ShopOrderCreated: 'shop-order-created', + ShopOrderStatusChanged: 'shop-order-status-changed', + PlayerLinked: 'player-linked', + PlayerConnected: 'player-connected', + PlayerDisconnected: 'player-disconnected', + ChatMessage: 'chat-message', + PlayerDeath: 'player-death', + EntityKilled: 'entity-killed', } as const; -export type EventOutputDTOEventNameEnum = typeof EventOutputDTOEventNameEnum[keyof typeof EventOutputDTOEventNameEnum]; +export type EventOutputDTOEventNameEnum = + (typeof EventOutputDTOEventNameEnum)[keyof typeof EventOutputDTOEventNameEnum]; /** * @type EventOutputDTOMeta * @export */ -export type EventOutputDTOMeta = EventChatMessage | EventEntityKilled | EventLogLine | EventPlayerConnected | EventPlayerDeath | EventPlayerDisconnected | HookEventDiscordMessage | TakaroEventCommandExecuted | TakaroEventCronjobExecuted | TakaroEventCurrencyAdded | TakaroEventCurrencyDeducted | TakaroEventHookExecuted | TakaroEventModuleCreated | TakaroEventModuleDeleted | TakaroEventModuleInstalled | TakaroEventModuleUninstalled | TakaroEventModuleUpdated | TakaroEventPlayerCreated | TakaroEventPlayerLinked | TakaroEventPlayerNewIpDetected | TakaroEventRoleAssigned | TakaroEventRoleCreated | TakaroEventRoleDeleted | TakaroEventRoleRemoved | TakaroEventRoleUpdated | TakaroEventServerStatusChanged | TakaroEventSettingsSet | TakaroEventShopListingCreated | TakaroEventShopListingDeleted | TakaroEventShopListingUpdated | TakaroEventShopOrderCreated | TakaroEventShopOrderStatusChanged; +export type EventOutputDTOMeta = + | EventChatMessage + | EventEntityKilled + | EventLogLine + | EventPlayerConnected + | EventPlayerDeath + | EventPlayerDisconnected + | HookEventDiscordMessage + | TakaroEventCommandExecuted + | TakaroEventCronjobExecuted + | TakaroEventCurrencyAdded + | TakaroEventCurrencyDeducted + | TakaroEventHookExecuted + | TakaroEventModuleCreated + | TakaroEventModuleDeleted + | TakaroEventModuleInstalled + | TakaroEventModuleUninstalled + | TakaroEventModuleUpdated + | TakaroEventPlayerCreated + | TakaroEventPlayerLinked + | TakaroEventPlayerNewIpDetected + | TakaroEventRoleAssigned + | TakaroEventRoleCreated + | TakaroEventRoleDeleted + | TakaroEventRoleRemoved + | TakaroEventRoleUpdated + | TakaroEventServerStatusChanged + | TakaroEventSettingsSet + | TakaroEventShopListingCreated + | TakaroEventShopListingDeleted + | TakaroEventShopListingUpdated + | TakaroEventShopOrderCreated + | TakaroEventShopOrderStatusChanged; /** - * + * * @export * @interface EventPlayerConnected */ export interface EventPlayerConnected { - /** - * - * @type {IGamePlayer} - * @memberof EventPlayerConnected - */ - 'player': IGamePlayer; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof EventPlayerConnected - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {string} - * @memberof EventPlayerConnected - */ - 'msg'?: string; + /** + * + * @type {IGamePlayer} + * @memberof EventPlayerConnected + */ + player: IGamePlayer; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof EventPlayerConnected + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof EventPlayerConnected + */ + msg?: string; } /** - * + * * @export * @interface EventPlayerDeath */ export interface EventPlayerDeath { - /** - * - * @type {IGamePlayer} - * @memberof EventPlayerDeath - */ - 'player': IGamePlayer; - /** - * - * @type {IGamePlayer} - * @memberof EventPlayerDeath - */ - 'attacker'?: IGamePlayer; - /** - * - * @type {IPosition} - * @memberof EventPlayerDeath - */ - 'position'?: IPosition; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof EventPlayerDeath - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {string} - * @memberof EventPlayerDeath - */ - 'msg'?: string; + /** + * + * @type {IGamePlayer} + * @memberof EventPlayerDeath + */ + player: IGamePlayer; + /** + * + * @type {IGamePlayer} + * @memberof EventPlayerDeath + */ + attacker?: IGamePlayer; + /** + * + * @type {IPosition} + * @memberof EventPlayerDeath + */ + position?: IPosition; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof EventPlayerDeath + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof EventPlayerDeath + */ + msg?: string; } /** - * + * * @export * @interface EventPlayerDisconnected */ export interface EventPlayerDisconnected { - /** - * - * @type {IGamePlayer} - * @memberof EventPlayerDisconnected - */ - 'player': IGamePlayer; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof EventPlayerDisconnected - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {string} - * @memberof EventPlayerDisconnected - */ - 'msg'?: string; + /** + * + * @type {IGamePlayer} + * @memberof EventPlayerDisconnected + */ + player: IGamePlayer; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof EventPlayerDisconnected + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof EventPlayerDisconnected + */ + msg?: string; } /** - * + * * @export * @interface EventSearchInputAllowedFilters */ export interface EventSearchInputAllowedFilters { - /** - * - * @type {Array} - * @memberof EventSearchInputAllowedFilters - */ - 'id'?: Array; - /** - * - * @type {Array} - * @memberof EventSearchInputAllowedFilters - */ - 'eventName'?: Array; - /** - * - * @type {Array} - * @memberof EventSearchInputAllowedFilters - */ - 'moduleId'?: Array; - /** - * - * @type {Array} - * @memberof EventSearchInputAllowedFilters - */ - 'playerId'?: Array; - /** - * - * @type {Array} - * @memberof EventSearchInputAllowedFilters - */ - 'gameserverId'?: Array; - /** - * - * @type {Array} - * @memberof EventSearchInputAllowedFilters - */ - 'actingUserId'?: Array; - /** - * - * @type {Array} - * @memberof EventSearchInputAllowedFilters - */ - 'actingModuleId'?: Array; + /** + * + * @type {Array} + * @memberof EventSearchInputAllowedFilters + */ + id?: Array; + /** + * + * @type {Array} + * @memberof EventSearchInputAllowedFilters + */ + eventName?: Array; + /** + * + * @type {Array} + * @memberof EventSearchInputAllowedFilters + */ + moduleId?: Array; + /** + * + * @type {Array} + * @memberof EventSearchInputAllowedFilters + */ + playerId?: Array; + /** + * + * @type {Array} + * @memberof EventSearchInputAllowedFilters + */ + gameserverId?: Array; + /** + * + * @type {Array} + * @memberof EventSearchInputAllowedFilters + */ + actingUserId?: Array; + /** + * + * @type {Array} + * @memberof EventSearchInputAllowedFilters + */ + actingModuleId?: Array; } export const EventSearchInputAllowedFiltersEventNameEnum = { - RoleAssigned: 'role-assigned', - RoleRemoved: 'role-removed', - RoleCreated: 'role-created', - RoleUpdated: 'role-updated', - RoleDeleted: 'role-deleted', - CommandExecuted: 'command-executed', - HookExecuted: 'hook-executed', - CronjobExecuted: 'cronjob-executed', - CurrencyAdded: 'currency-added', - CurrencyDeducted: 'currency-deducted', - SettingsSet: 'settings-set', - PlayerNewIpDetected: 'player-new-ip-detected', - ServerStatusChanged: 'server-status-changed', - ModuleCreated: 'module-created', - ModuleUpdated: 'module-updated', - ModuleDeleted: 'module-deleted', - ModuleInstalled: 'module-installed', - ModuleUninstalled: 'module-uninstalled', - PlayerCreated: 'player-created', - ShopListingCreated: 'shop-listing-created', - ShopListingUpdated: 'shop-listing-updated', - ShopListingDeleted: 'shop-listing-deleted', - ShopOrderCreated: 'shop-order-created', - ShopOrderStatusChanged: 'shop-order-status-changed', - PlayerLinked: 'player-linked', - PlayerConnected: 'player-connected', - PlayerDisconnected: 'player-disconnected', - ChatMessage: 'chat-message', - PlayerDeath: 'player-death', - EntityKilled: 'entity-killed' + RoleAssigned: 'role-assigned', + RoleRemoved: 'role-removed', + RoleCreated: 'role-created', + RoleUpdated: 'role-updated', + RoleDeleted: 'role-deleted', + CommandExecuted: 'command-executed', + HookExecuted: 'hook-executed', + CronjobExecuted: 'cronjob-executed', + CurrencyAdded: 'currency-added', + CurrencyDeducted: 'currency-deducted', + SettingsSet: 'settings-set', + PlayerNewIpDetected: 'player-new-ip-detected', + ServerStatusChanged: 'server-status-changed', + ModuleCreated: 'module-created', + ModuleUpdated: 'module-updated', + ModuleDeleted: 'module-deleted', + ModuleInstalled: 'module-installed', + ModuleUninstalled: 'module-uninstalled', + PlayerCreated: 'player-created', + ShopListingCreated: 'shop-listing-created', + ShopListingUpdated: 'shop-listing-updated', + ShopListingDeleted: 'shop-listing-deleted', + ShopOrderCreated: 'shop-order-created', + ShopOrderStatusChanged: 'shop-order-status-changed', + PlayerLinked: 'player-linked', + PlayerConnected: 'player-connected', + PlayerDisconnected: 'player-disconnected', + ChatMessage: 'chat-message', + PlayerDeath: 'player-death', + EntityKilled: 'entity-killed', } as const; -export type EventSearchInputAllowedFiltersEventNameEnum = typeof EventSearchInputAllowedFiltersEventNameEnum[keyof typeof EventSearchInputAllowedFiltersEventNameEnum]; +export type EventSearchInputAllowedFiltersEventNameEnum = + (typeof EventSearchInputAllowedFiltersEventNameEnum)[keyof typeof EventSearchInputAllowedFiltersEventNameEnum]; /** - * + * * @export * @interface EventSearchInputDTO */ export interface EventSearchInputDTO { - /** - * - * @type {EventSearchInputAllowedFilters} - * @memberof EventSearchInputDTO - */ - 'filters'?: EventSearchInputAllowedFilters; - /** - * - * @type {EventSearchInputAllowedFilters} - * @memberof EventSearchInputDTO - */ - 'search'?: EventSearchInputAllowedFilters; - /** - * - * @type {RangeFilterCreatedAndUpdatedAt} - * @memberof EventSearchInputDTO - */ - 'greaterThan'?: RangeFilterCreatedAndUpdatedAt; - /** - * - * @type {RangeFilterCreatedAndUpdatedAt} - * @memberof EventSearchInputDTO - */ - 'lessThan'?: RangeFilterCreatedAndUpdatedAt; - /** - * - * @type {number} - * @memberof EventSearchInputDTO - */ - 'page'?: number; - /** - * - * @type {number} - * @memberof EventSearchInputDTO - */ - 'limit'?: number; - /** - * - * @type {string} - * @memberof EventSearchInputDTO - */ - 'sortBy'?: string; - /** - * - * @type {string} - * @memberof EventSearchInputDTO - */ - 'sortDirection'?: EventSearchInputDTOSortDirectionEnum; - /** - * - * @type {Array} - * @memberof EventSearchInputDTO - */ - 'extend'?: Array; + /** + * + * @type {EventSearchInputAllowedFilters} + * @memberof EventSearchInputDTO + */ + filters?: EventSearchInputAllowedFilters; + /** + * + * @type {EventSearchInputAllowedFilters} + * @memberof EventSearchInputDTO + */ + search?: EventSearchInputAllowedFilters; + /** + * + * @type {RangeFilterCreatedAndUpdatedAt} + * @memberof EventSearchInputDTO + */ + greaterThan?: RangeFilterCreatedAndUpdatedAt; + /** + * + * @type {RangeFilterCreatedAndUpdatedAt} + * @memberof EventSearchInputDTO + */ + lessThan?: RangeFilterCreatedAndUpdatedAt; + /** + * + * @type {number} + * @memberof EventSearchInputDTO + */ + page?: number; + /** + * + * @type {number} + * @memberof EventSearchInputDTO + */ + limit?: number; + /** + * + * @type {string} + * @memberof EventSearchInputDTO + */ + sortBy?: string; + /** + * + * @type {string} + * @memberof EventSearchInputDTO + */ + sortDirection?: EventSearchInputDTOSortDirectionEnum; + /** + * + * @type {Array} + * @memberof EventSearchInputDTO + */ + extend?: Array; } export const EventSearchInputDTOSortDirectionEnum = { - Asc: 'asc', - Desc: 'desc' + Asc: 'asc', + Desc: 'desc', } as const; -export type EventSearchInputDTOSortDirectionEnum = typeof EventSearchInputDTOSortDirectionEnum[keyof typeof EventSearchInputDTOSortDirectionEnum]; +export type EventSearchInputDTOSortDirectionEnum = + (typeof EventSearchInputDTOSortDirectionEnum)[keyof typeof EventSearchInputDTOSortDirectionEnum]; /** - * + * * @export * @interface EventsCountInputDTO */ export interface EventsCountInputDTO { - /** - * - * @type {string} - * @memberof EventsCountInputDTO - */ - 'eventName': EventsCountInputDTOEventNameEnum; - /** - * - * @type {Array} - * @memberof EventsCountInputDTO - */ - 'sumBy'?: Array; - /** - * - * @type {string} - * @memberof EventsCountInputDTO - */ - 'gameServerId'?: string; - /** - * - * @type {string} - * @memberof EventsCountInputDTO - */ - 'moduleId'?: string; - /** - * - * @type {string} - * @memberof EventsCountInputDTO - */ - 'playerId'?: string; - /** - * - * @type {string} - * @memberof EventsCountInputDTO - */ - 'userId'?: string; - /** - * - * @type {string} - * @memberof EventsCountInputDTO - */ - 'bucketStep': EventsCountInputDTOBucketStepEnum; - /** - * - * @type {StatsControllerGetPingStatsStartDateParameter} - * @memberof EventsCountInputDTO - */ - 'startDate'?: StatsControllerGetPingStatsStartDateParameter; - /** - * - * @type {StatsControllerGetPingStatsStartDateParameter} - * @memberof EventsCountInputDTO - */ - 'endDate'?: StatsControllerGetPingStatsStartDateParameter; + /** + * + * @type {string} + * @memberof EventsCountInputDTO + */ + eventName: EventsCountInputDTOEventNameEnum; + /** + * + * @type {Array} + * @memberof EventsCountInputDTO + */ + sumBy?: Array; + /** + * + * @type {string} + * @memberof EventsCountInputDTO + */ + gameServerId?: string; + /** + * + * @type {string} + * @memberof EventsCountInputDTO + */ + moduleId?: string; + /** + * + * @type {string} + * @memberof EventsCountInputDTO + */ + playerId?: string; + /** + * + * @type {string} + * @memberof EventsCountInputDTO + */ + userId?: string; + /** + * + * @type {string} + * @memberof EventsCountInputDTO + */ + bucketStep: EventsCountInputDTOBucketStepEnum; + /** + * + * @type {StatsControllerGetPingStatsStartDateParameter} + * @memberof EventsCountInputDTO + */ + startDate?: StatsControllerGetPingStatsStartDateParameter; + /** + * + * @type {StatsControllerGetPingStatsStartDateParameter} + * @memberof EventsCountInputDTO + */ + endDate?: StatsControllerGetPingStatsStartDateParameter; } export const EventsCountInputDTOEventNameEnum = { - RoleAssigned: 'role-assigned', - RoleRemoved: 'role-removed', - RoleCreated: 'role-created', - RoleUpdated: 'role-updated', - RoleDeleted: 'role-deleted', - CommandExecuted: 'command-executed', - HookExecuted: 'hook-executed', - CronjobExecuted: 'cronjob-executed', - CurrencyAdded: 'currency-added', - CurrencyDeducted: 'currency-deducted', - SettingsSet: 'settings-set', - PlayerNewIpDetected: 'player-new-ip-detected', - ServerStatusChanged: 'server-status-changed', - ModuleCreated: 'module-created', - ModuleUpdated: 'module-updated', - ModuleDeleted: 'module-deleted', - ModuleInstalled: 'module-installed', - ModuleUninstalled: 'module-uninstalled', - PlayerCreated: 'player-created', - ShopListingCreated: 'shop-listing-created', - ShopListingUpdated: 'shop-listing-updated', - ShopListingDeleted: 'shop-listing-deleted', - ShopOrderCreated: 'shop-order-created', - ShopOrderStatusChanged: 'shop-order-status-changed', - PlayerLinked: 'player-linked', - PlayerConnected: 'player-connected', - PlayerDisconnected: 'player-disconnected', - ChatMessage: 'chat-message', - PlayerDeath: 'player-death', - EntityKilled: 'entity-killed' + RoleAssigned: 'role-assigned', + RoleRemoved: 'role-removed', + RoleCreated: 'role-created', + RoleUpdated: 'role-updated', + RoleDeleted: 'role-deleted', + CommandExecuted: 'command-executed', + HookExecuted: 'hook-executed', + CronjobExecuted: 'cronjob-executed', + CurrencyAdded: 'currency-added', + CurrencyDeducted: 'currency-deducted', + SettingsSet: 'settings-set', + PlayerNewIpDetected: 'player-new-ip-detected', + ServerStatusChanged: 'server-status-changed', + ModuleCreated: 'module-created', + ModuleUpdated: 'module-updated', + ModuleDeleted: 'module-deleted', + ModuleInstalled: 'module-installed', + ModuleUninstalled: 'module-uninstalled', + PlayerCreated: 'player-created', + ShopListingCreated: 'shop-listing-created', + ShopListingUpdated: 'shop-listing-updated', + ShopListingDeleted: 'shop-listing-deleted', + ShopOrderCreated: 'shop-order-created', + ShopOrderStatusChanged: 'shop-order-status-changed', + PlayerLinked: 'player-linked', + PlayerConnected: 'player-connected', + PlayerDisconnected: 'player-disconnected', + ChatMessage: 'chat-message', + PlayerDeath: 'player-death', + EntityKilled: 'entity-killed', } as const; -export type EventsCountInputDTOEventNameEnum = typeof EventsCountInputDTOEventNameEnum[keyof typeof EventsCountInputDTOEventNameEnum]; +export type EventsCountInputDTOEventNameEnum = + (typeof EventsCountInputDTOEventNameEnum)[keyof typeof EventsCountInputDTOEventNameEnum]; export const EventsCountInputDTOSumByEnum = { - Player: 'player', - Module: 'module', - User: 'user', - Gameserver: 'gameserver' + Player: 'player', + Module: 'module', + User: 'user', + Gameserver: 'gameserver', } as const; -export type EventsCountInputDTOSumByEnum = typeof EventsCountInputDTOSumByEnum[keyof typeof EventsCountInputDTOSumByEnum]; +export type EventsCountInputDTOSumByEnum = + (typeof EventsCountInputDTOSumByEnum)[keyof typeof EventsCountInputDTOSumByEnum]; export const EventsCountInputDTOBucketStepEnum = { - _5m: '5m', - _30m: '30m', - _1h: '1h', - _6h: '6h', - _12h: '12h', - _24h: '24h' + _5m: '5m', + _30m: '30m', + _1h: '1h', + _6h: '6h', + _12h: '12h', + _24h: '24h', } as const; -export type EventsCountInputDTOBucketStepEnum = typeof EventsCountInputDTOBucketStepEnum[keyof typeof EventsCountInputDTOBucketStepEnum]; +export type EventsCountInputDTOBucketStepEnum = + (typeof EventsCountInputDTOBucketStepEnum)[keyof typeof EventsCountInputDTOBucketStepEnum]; /** - * + * * @export * @interface FunctionCreateDTO */ export interface FunctionCreateDTO { - /** - * - * @type {string} - * @memberof FunctionCreateDTO - */ - 'code'?: string; - /** - * - * @type {string} - * @memberof FunctionCreateDTO - */ - 'name'?: string; - /** - * - * @type {string} - * @memberof FunctionCreateDTO - */ - 'versionId'?: string; + /** + * + * @type {string} + * @memberof FunctionCreateDTO + */ + code?: string; + /** + * + * @type {string} + * @memberof FunctionCreateDTO + */ + name?: string; + /** + * + * @type {string} + * @memberof FunctionCreateDTO + */ + versionId?: string; } /** - * + * * @export * @interface FunctionOutputArrayDTOAPI */ export interface FunctionOutputArrayDTOAPI { - /** - * - * @type {Array} - * @memberof FunctionOutputArrayDTOAPI - */ - 'data': Array; - /** - * - * @type {MetadataOutput} - * @memberof FunctionOutputArrayDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {Array} + * @memberof FunctionOutputArrayDTOAPI + */ + data: Array; + /** + * + * @type {MetadataOutput} + * @memberof FunctionOutputArrayDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface FunctionOutputDTO */ export interface FunctionOutputDTO { - /** - * - * @type {string} - * @memberof FunctionOutputDTO - */ - 'code': string; - /** - * - * @type {string} - * @memberof FunctionOutputDTO - */ - 'name'?: string; - /** - * - * @type {string} - * @memberof FunctionOutputDTO - */ - 'versionId'?: string; - /** - * - * @type {string} - * @memberof FunctionOutputDTO - */ - 'id': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof FunctionOutputDTO - */ - 'createdAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof FunctionOutputDTO - */ - 'updatedAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof FunctionOutputDTO + */ + code: string; + /** + * + * @type {string} + * @memberof FunctionOutputDTO + */ + name?: string; + /** + * + * @type {string} + * @memberof FunctionOutputDTO + */ + versionId?: string; + /** + * + * @type {string} + * @memberof FunctionOutputDTO + */ + id: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof FunctionOutputDTO + */ + createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof FunctionOutputDTO + */ + updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface FunctionOutputDTOAPI */ export interface FunctionOutputDTOAPI { - /** - * - * @type {FunctionOutputDTO} - * @memberof FunctionOutputDTOAPI - */ - 'data': FunctionOutputDTO; - /** - * - * @type {MetadataOutput} - * @memberof FunctionOutputDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {FunctionOutputDTO} + * @memberof FunctionOutputDTOAPI + */ + data: FunctionOutputDTO; + /** + * + * @type {MetadataOutput} + * @memberof FunctionOutputDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface FunctionSearchInputAllowedFilters */ export interface FunctionSearchInputAllowedFilters { - /** - * - * @type {Array} - * @memberof FunctionSearchInputAllowedFilters - */ - 'moduleId'?: Array; - /** - * - * @type {Array} - * @memberof FunctionSearchInputAllowedFilters - */ - 'name'?: Array; - /** - * - * @type {Array} - * @memberof FunctionSearchInputAllowedFilters - */ - 'id'?: Array; + /** + * + * @type {Array} + * @memberof FunctionSearchInputAllowedFilters + */ + moduleId?: Array; + /** + * + * @type {Array} + * @memberof FunctionSearchInputAllowedFilters + */ + name?: Array; + /** + * + * @type {Array} + * @memberof FunctionSearchInputAllowedFilters + */ + id?: Array; } /** - * + * * @export * @interface FunctionSearchInputDTO */ export interface FunctionSearchInputDTO { - /** - * - * @type {FunctionSearchInputAllowedFilters} - * @memberof FunctionSearchInputDTO - */ - 'filters'?: FunctionSearchInputAllowedFilters; - /** - * - * @type {FunctionSearchInputAllowedFilters} - * @memberof FunctionSearchInputDTO - */ - 'search'?: FunctionSearchInputAllowedFilters; - /** - * - * @type {any} - * @memberof FunctionSearchInputDTO - */ - 'greaterThan'?: any; - /** - * - * @type {any} - * @memberof FunctionSearchInputDTO - */ - 'lessThan'?: any; - /** - * - * @type {number} - * @memberof FunctionSearchInputDTO - */ - 'page'?: number; - /** - * - * @type {number} - * @memberof FunctionSearchInputDTO - */ - 'limit'?: number; - /** - * - * @type {string} - * @memberof FunctionSearchInputDTO - */ - 'sortBy'?: string; - /** - * - * @type {string} - * @memberof FunctionSearchInputDTO - */ - 'sortDirection'?: FunctionSearchInputDTOSortDirectionEnum; - /** - * - * @type {Array} - * @memberof FunctionSearchInputDTO - */ - 'extend'?: Array; + /** + * + * @type {FunctionSearchInputAllowedFilters} + * @memberof FunctionSearchInputDTO + */ + filters?: FunctionSearchInputAllowedFilters; + /** + * + * @type {FunctionSearchInputAllowedFilters} + * @memberof FunctionSearchInputDTO + */ + search?: FunctionSearchInputAllowedFilters; + /** + * + * @type {any} + * @memberof FunctionSearchInputDTO + */ + greaterThan?: any; + /** + * + * @type {any} + * @memberof FunctionSearchInputDTO + */ + lessThan?: any; + /** + * + * @type {number} + * @memberof FunctionSearchInputDTO + */ + page?: number; + /** + * + * @type {number} + * @memberof FunctionSearchInputDTO + */ + limit?: number; + /** + * + * @type {string} + * @memberof FunctionSearchInputDTO + */ + sortBy?: string; + /** + * + * @type {string} + * @memberof FunctionSearchInputDTO + */ + sortDirection?: FunctionSearchInputDTOSortDirectionEnum; + /** + * + * @type {Array} + * @memberof FunctionSearchInputDTO + */ + extend?: Array; } export const FunctionSearchInputDTOSortDirectionEnum = { - Asc: 'asc', - Desc: 'desc' + Asc: 'asc', + Desc: 'desc', } as const; -export type FunctionSearchInputDTOSortDirectionEnum = typeof FunctionSearchInputDTOSortDirectionEnum[keyof typeof FunctionSearchInputDTOSortDirectionEnum]; +export type FunctionSearchInputDTOSortDirectionEnum = + (typeof FunctionSearchInputDTOSortDirectionEnum)[keyof typeof FunctionSearchInputDTOSortDirectionEnum]; /** - * + * * @export * @interface FunctionUpdateDTO */ export interface FunctionUpdateDTO { - /** - * - * @type {string} - * @memberof FunctionUpdateDTO - */ - 'code'?: string; - /** - * - * @type {string} - * @memberof FunctionUpdateDTO - */ - 'name'?: string; + /** + * + * @type {string} + * @memberof FunctionUpdateDTO + */ + code?: string; + /** + * + * @type {string} + * @memberof FunctionUpdateDTO + */ + name?: string; } /** - * + * * @export * @interface GameServerCreateDTO */ export interface GameServerCreateDTO { - /** - * - * @type {string} - * @memberof GameServerCreateDTO - */ - 'name': string; - /** - * - * @type {string} - * @memberof GameServerCreateDTO - */ - 'connectionInfo': string; - /** - * - * @type {string} - * @memberof GameServerCreateDTO - */ - 'type': GameServerCreateDTOTypeEnum; + /** + * + * @type {string} + * @memberof GameServerCreateDTO + */ + name: string; + /** + * + * @type {string} + * @memberof GameServerCreateDTO + */ + connectionInfo: string; + /** + * + * @type {string} + * @memberof GameServerCreateDTO + */ + type: GameServerCreateDTOTypeEnum; } export const GameServerCreateDTOTypeEnum = { - Mock: 'MOCK', - Sevendaystodie: 'SEVENDAYSTODIE', - Rust: 'RUST' + Mock: 'MOCK', + Sevendaystodie: 'SEVENDAYSTODIE', + Rust: 'RUST', } as const; -export type GameServerCreateDTOTypeEnum = typeof GameServerCreateDTOTypeEnum[keyof typeof GameServerCreateDTOTypeEnum]; +export type GameServerCreateDTOTypeEnum = + (typeof GameServerCreateDTOTypeEnum)[keyof typeof GameServerCreateDTOTypeEnum]; /** - * + * * @export * @interface GameServerOutputArrayDTOAPI */ export interface GameServerOutputArrayDTOAPI { - /** - * - * @type {Array} - * @memberof GameServerOutputArrayDTOAPI - */ - 'data': Array; - /** - * - * @type {MetadataOutput} - * @memberof GameServerOutputArrayDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {Array} + * @memberof GameServerOutputArrayDTOAPI + */ + data: Array; + /** + * + * @type {MetadataOutput} + * @memberof GameServerOutputArrayDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface GameServerOutputDTO */ export interface GameServerOutputDTO { - /** - * - * @type {string} - * @memberof GameServerOutputDTO - */ - 'name': string; - /** - * - * @type {object} - * @memberof GameServerOutputDTO - */ - 'connectionInfo': object; - /** - * - * @type {string} - * @memberof GameServerOutputDTO - */ - 'type': GameServerOutputDTOTypeEnum; - /** - * - * @type {boolean} - * @memberof GameServerOutputDTO - */ - 'reachable': boolean; - /** - * - * @type {boolean} - * @memberof GameServerOutputDTO - */ - 'enabled': boolean; - /** - * - * @type {string} - * @memberof GameServerOutputDTO - */ - 'id': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof GameServerOutputDTO - */ - 'createdAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof GameServerOutputDTO - */ - 'updatedAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof GameServerOutputDTO + */ + name: string; + /** + * + * @type {object} + * @memberof GameServerOutputDTO + */ + connectionInfo: object; + /** + * + * @type {string} + * @memberof GameServerOutputDTO + */ + type: GameServerOutputDTOTypeEnum; + /** + * + * @type {boolean} + * @memberof GameServerOutputDTO + */ + reachable: boolean; + /** + * + * @type {boolean} + * @memberof GameServerOutputDTO + */ + enabled: boolean; + /** + * + * @type {string} + * @memberof GameServerOutputDTO + */ + id: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof GameServerOutputDTO + */ + createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof GameServerOutputDTO + */ + updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } export const GameServerOutputDTOTypeEnum = { - Mock: 'MOCK', - Sevendaystodie: 'SEVENDAYSTODIE', - Rust: 'RUST' + Mock: 'MOCK', + Sevendaystodie: 'SEVENDAYSTODIE', + Rust: 'RUST', } as const; -export type GameServerOutputDTOTypeEnum = typeof GameServerOutputDTOTypeEnum[keyof typeof GameServerOutputDTOTypeEnum]; +export type GameServerOutputDTOTypeEnum = + (typeof GameServerOutputDTOTypeEnum)[keyof typeof GameServerOutputDTOTypeEnum]; /** - * + * * @export * @interface GameServerOutputDTOAPI */ export interface GameServerOutputDTOAPI { - /** - * - * @type {GameServerOutputDTO} - * @memberof GameServerOutputDTOAPI - */ - 'data': GameServerOutputDTO; - /** - * - * @type {MetadataOutput} - * @memberof GameServerOutputDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {GameServerOutputDTO} + * @memberof GameServerOutputDTOAPI + */ + data: GameServerOutputDTO; + /** + * + * @type {MetadataOutput} + * @memberof GameServerOutputDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface GameServerSearchInputAllowedFilters */ export interface GameServerSearchInputAllowedFilters { - /** - * - * @type {Array} - * @memberof GameServerSearchInputAllowedFilters - */ - 'name'?: Array; - /** - * - * @type {Array} - * @memberof GameServerSearchInputAllowedFilters - */ - 'type'?: Array; - /** - * - * @type {Array} - * @memberof GameServerSearchInputAllowedFilters - */ - 'reachable'?: Array; - /** - * - * @type {Array} - * @memberof GameServerSearchInputAllowedFilters - */ - 'enabled'?: Array; - /** - * - * @type {Array} - * @memberof GameServerSearchInputAllowedFilters - */ - 'id'?: Array; + /** + * + * @type {Array} + * @memberof GameServerSearchInputAllowedFilters + */ + name?: Array; + /** + * + * @type {Array} + * @memberof GameServerSearchInputAllowedFilters + */ + type?: Array; + /** + * + * @type {Array} + * @memberof GameServerSearchInputAllowedFilters + */ + reachable?: Array; + /** + * + * @type {Array} + * @memberof GameServerSearchInputAllowedFilters + */ + enabled?: Array; + /** + * + * @type {Array} + * @memberof GameServerSearchInputAllowedFilters + */ + id?: Array; } export const GameServerSearchInputAllowedFiltersTypeEnum = { - Mock: 'MOCK', - Sevendaystodie: 'SEVENDAYSTODIE', - Rust: 'RUST' + Mock: 'MOCK', + Sevendaystodie: 'SEVENDAYSTODIE', + Rust: 'RUST', } as const; -export type GameServerSearchInputAllowedFiltersTypeEnum = typeof GameServerSearchInputAllowedFiltersTypeEnum[keyof typeof GameServerSearchInputAllowedFiltersTypeEnum]; +export type GameServerSearchInputAllowedFiltersTypeEnum = + (typeof GameServerSearchInputAllowedFiltersTypeEnum)[keyof typeof GameServerSearchInputAllowedFiltersTypeEnum]; /** - * + * * @export * @interface GameServerSearchInputDTO */ export interface GameServerSearchInputDTO { - /** - * - * @type {GameServerSearchInputAllowedFilters} - * @memberof GameServerSearchInputDTO - */ - 'filters'?: GameServerSearchInputAllowedFilters; - /** - * - * @type {GameServerSearchInputAllowedFilters} - * @memberof GameServerSearchInputDTO - */ - 'search'?: GameServerSearchInputAllowedFilters; - /** - * - * @type {any} - * @memberof GameServerSearchInputDTO - */ - 'greaterThan'?: any; - /** - * - * @type {any} - * @memberof GameServerSearchInputDTO - */ - 'lessThan'?: any; - /** - * - * @type {number} - * @memberof GameServerSearchInputDTO - */ - 'page'?: number; - /** - * - * @type {number} - * @memberof GameServerSearchInputDTO - */ - 'limit'?: number; - /** - * - * @type {string} - * @memberof GameServerSearchInputDTO - */ - 'sortBy'?: string; - /** - * - * @type {string} - * @memberof GameServerSearchInputDTO - */ - 'sortDirection'?: GameServerSearchInputDTOSortDirectionEnum; - /** - * - * @type {Array} - * @memberof GameServerSearchInputDTO - */ - 'extend'?: Array; + /** + * + * @type {GameServerSearchInputAllowedFilters} + * @memberof GameServerSearchInputDTO + */ + filters?: GameServerSearchInputAllowedFilters; + /** + * + * @type {GameServerSearchInputAllowedFilters} + * @memberof GameServerSearchInputDTO + */ + search?: GameServerSearchInputAllowedFilters; + /** + * + * @type {any} + * @memberof GameServerSearchInputDTO + */ + greaterThan?: any; + /** + * + * @type {any} + * @memberof GameServerSearchInputDTO + */ + lessThan?: any; + /** + * + * @type {number} + * @memberof GameServerSearchInputDTO + */ + page?: number; + /** + * + * @type {number} + * @memberof GameServerSearchInputDTO + */ + limit?: number; + /** + * + * @type {string} + * @memberof GameServerSearchInputDTO + */ + sortBy?: string; + /** + * + * @type {string} + * @memberof GameServerSearchInputDTO + */ + sortDirection?: GameServerSearchInputDTOSortDirectionEnum; + /** + * + * @type {Array} + * @memberof GameServerSearchInputDTO + */ + extend?: Array; } export const GameServerSearchInputDTOSortDirectionEnum = { - Asc: 'asc', - Desc: 'desc' + Asc: 'asc', + Desc: 'desc', } as const; -export type GameServerSearchInputDTOSortDirectionEnum = typeof GameServerSearchInputDTOSortDirectionEnum[keyof typeof GameServerSearchInputDTOSortDirectionEnum]; +export type GameServerSearchInputDTOSortDirectionEnum = + (typeof GameServerSearchInputDTOSortDirectionEnum)[keyof typeof GameServerSearchInputDTOSortDirectionEnum]; /** - * + * * @export * @interface GameServerTestReachabilityDTOAPI */ export interface GameServerTestReachabilityDTOAPI { - /** - * - * @type {TestReachabilityOutputDTO} - * @memberof GameServerTestReachabilityDTOAPI - */ - 'data': TestReachabilityOutputDTO; - /** - * - * @type {MetadataOutput} - * @memberof GameServerTestReachabilityDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {TestReachabilityOutputDTO} + * @memberof GameServerTestReachabilityDTOAPI + */ + data: TestReachabilityOutputDTO; + /** + * + * @type {MetadataOutput} + * @memberof GameServerTestReachabilityDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface GameServerTestReachabilityInputDTO */ export interface GameServerTestReachabilityInputDTO { - /** - * - * @type {string} - * @memberof GameServerTestReachabilityInputDTO - */ - 'connectionInfo': string; - /** - * - * @type {string} - * @memberof GameServerTestReachabilityInputDTO - */ - 'type': GameServerTestReachabilityInputDTOTypeEnum; + /** + * + * @type {string} + * @memberof GameServerTestReachabilityInputDTO + */ + connectionInfo: string; + /** + * + * @type {string} + * @memberof GameServerTestReachabilityInputDTO + */ + type: GameServerTestReachabilityInputDTOTypeEnum; } export const GameServerTestReachabilityInputDTOTypeEnum = { - Mock: 'MOCK', - Sevendaystodie: 'SEVENDAYSTODIE', - Rust: 'RUST' + Mock: 'MOCK', + Sevendaystodie: 'SEVENDAYSTODIE', + Rust: 'RUST', } as const; -export type GameServerTestReachabilityInputDTOTypeEnum = typeof GameServerTestReachabilityInputDTOTypeEnum[keyof typeof GameServerTestReachabilityInputDTOTypeEnum]; +export type GameServerTestReachabilityInputDTOTypeEnum = + (typeof GameServerTestReachabilityInputDTOTypeEnum)[keyof typeof GameServerTestReachabilityInputDTOTypeEnum]; /** - * + * * @export * @interface GameServerTypesOutputDTO */ export interface GameServerTypesOutputDTO { - /** - * - * @type {string} - * @memberof GameServerTypesOutputDTO - */ - 'type': GameServerTypesOutputDTOTypeEnum; - /** - * - * @type {string} - * @memberof GameServerTypesOutputDTO - */ - 'connectionInfoSchema': string; + /** + * + * @type {string} + * @memberof GameServerTypesOutputDTO + */ + type: GameServerTypesOutputDTOTypeEnum; + /** + * + * @type {string} + * @memberof GameServerTypesOutputDTO + */ + connectionInfoSchema: string; } export const GameServerTypesOutputDTOTypeEnum = { - Mock: 'MOCK', - Sevendaystodie: 'SEVENDAYSTODIE', - Rust: 'RUST' + Mock: 'MOCK', + Sevendaystodie: 'SEVENDAYSTODIE', + Rust: 'RUST', } as const; -export type GameServerTypesOutputDTOTypeEnum = typeof GameServerTypesOutputDTOTypeEnum[keyof typeof GameServerTypesOutputDTOTypeEnum]; +export type GameServerTypesOutputDTOTypeEnum = + (typeof GameServerTypesOutputDTOTypeEnum)[keyof typeof GameServerTypesOutputDTOTypeEnum]; /** - * + * * @export * @interface GameServerTypesOutputDTOAPI */ export interface GameServerTypesOutputDTOAPI { - /** - * - * @type {Array} - * @memberof GameServerTypesOutputDTOAPI - */ - 'data': Array; - /** - * - * @type {MetadataOutput} - * @memberof GameServerTypesOutputDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {Array} + * @memberof GameServerTypesOutputDTOAPI + */ + data: Array; + /** + * + * @type {MetadataOutput} + * @memberof GameServerTypesOutputDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface GameServerUpdateDTO */ export interface GameServerUpdateDTO { - /** - * - * @type {string} - * @memberof GameServerUpdateDTO - */ - 'name': string; - /** - * - * @type {string} - * @memberof GameServerUpdateDTO - */ - 'connectionInfo': string; - /** - * - * @type {string} - * @memberof GameServerUpdateDTO - */ - 'type': GameServerUpdateDTOTypeEnum; - /** - * - * @type {boolean} - * @memberof GameServerUpdateDTO - */ - 'reachable'?: boolean; - /** - * - * @type {boolean} - * @memberof GameServerUpdateDTO - */ - 'enabled'?: boolean; + /** + * + * @type {string} + * @memberof GameServerUpdateDTO + */ + name: string; + /** + * + * @type {string} + * @memberof GameServerUpdateDTO + */ + connectionInfo: string; + /** + * + * @type {string} + * @memberof GameServerUpdateDTO + */ + type: GameServerUpdateDTOTypeEnum; + /** + * + * @type {boolean} + * @memberof GameServerUpdateDTO + */ + reachable?: boolean; + /** + * + * @type {boolean} + * @memberof GameServerUpdateDTO + */ + enabled?: boolean; } export const GameServerUpdateDTOTypeEnum = { - Mock: 'MOCK', - Sevendaystodie: 'SEVENDAYSTODIE', - Rust: 'RUST' + Mock: 'MOCK', + Sevendaystodie: 'SEVENDAYSTODIE', + Rust: 'RUST', } as const; -export type GameServerUpdateDTOTypeEnum = typeof GameServerUpdateDTOTypeEnum[keyof typeof GameServerUpdateDTOTypeEnum]; +export type GameServerUpdateDTOTypeEnum = + (typeof GameServerUpdateDTOTypeEnum)[keyof typeof GameServerUpdateDTOTypeEnum]; /** - * + * * @export * @interface GetSettingsInput */ export interface GetSettingsInput { - /** - * - * @type {Array} - * @memberof GetSettingsInput - */ - 'keys'?: Array; - /** - * - * @type {string} - * @memberof GetSettingsInput - */ - 'gameServerId'?: string; + /** + * + * @type {Array} + * @memberof GetSettingsInput + */ + keys?: Array; + /** + * + * @type {string} + * @memberof GetSettingsInput + */ + gameServerId?: string; } export const GetSettingsInputKeysEnum = { - CommandPrefix: 'commandPrefix', - ServerChatName: 'serverChatName', - EconomyEnabled: 'economyEnabled', - CurrencyName: 'currencyName', - DeveloperMode: 'developerMode' + CommandPrefix: 'commandPrefix', + ServerChatName: 'serverChatName', + EconomyEnabled: 'economyEnabled', + CurrencyName: 'currencyName', + DeveloperMode: 'developerMode', } as const; -export type GetSettingsInputKeysEnum = typeof GetSettingsInputKeysEnum[keyof typeof GetSettingsInputKeysEnum]; +export type GetSettingsInputKeysEnum = (typeof GetSettingsInputKeysEnum)[keyof typeof GetSettingsInputKeysEnum]; /** - * + * * @export * @interface GetSettingsOneInput */ export interface GetSettingsOneInput { - /** - * - * @type {string} - * @memberof GetSettingsOneInput - */ - 'gameServerId'?: string; + /** + * + * @type {string} + * @memberof GetSettingsOneInput + */ + gameServerId?: string; } /** - * + * * @export * @interface GetUserDTO */ export interface GetUserDTO { - /** - * - * @type {string} - * @memberof GetUserDTO - */ - 'name': string; + /** + * + * @type {string} + * @memberof GetUserDTO + */ + name: string; } /** - * + * * @export * @interface GiveItemInputDTO */ export interface GiveItemInputDTO { - /** - * - * @type {string} - * @memberof GiveItemInputDTO - */ - 'name': string; - /** - * - * @type {number} - * @memberof GiveItemInputDTO - */ - 'amount': number; - /** - * - * @type {string} - * @memberof GiveItemInputDTO - */ - 'quality': string; + /** + * + * @type {string} + * @memberof GiveItemInputDTO + */ + name: string; + /** + * + * @type {number} + * @memberof GiveItemInputDTO + */ + amount: number; + /** + * + * @type {string} + * @memberof GiveItemInputDTO + */ + quality: string; } /** - * + * * @export * @interface GuildApiUpdateDTO */ export interface GuildApiUpdateDTO { - /** - * - * @type {boolean} - * @memberof GuildApiUpdateDTO - */ - 'takaroEnabled'?: boolean; + /** + * + * @type {boolean} + * @memberof GuildApiUpdateDTO + */ + takaroEnabled?: boolean; } /** - * + * * @export * @interface GuildCreateInputDTO */ export interface GuildCreateInputDTO { - /** - * - * @type {string} - * @memberof GuildCreateInputDTO - */ - 'name': string; - /** - * - * @type {string} - * @memberof GuildCreateInputDTO - */ - 'discordId': string; - /** - * - * @type {string} - * @memberof GuildCreateInputDTO - */ - 'icon'?: string; + /** + * + * @type {string} + * @memberof GuildCreateInputDTO + */ + name: string; + /** + * + * @type {string} + * @memberof GuildCreateInputDTO + */ + discordId: string; + /** + * + * @type {string} + * @memberof GuildCreateInputDTO + */ + icon?: string; } /** - * + * * @export * @interface GuildOutputArrayDTOAPI */ export interface GuildOutputArrayDTOAPI { - /** - * - * @type {Array} - * @memberof GuildOutputArrayDTOAPI - */ - 'data': Array; - /** - * - * @type {MetadataOutput} - * @memberof GuildOutputArrayDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {Array} + * @memberof GuildOutputArrayDTOAPI + */ + data: Array; + /** + * + * @type {MetadataOutput} + * @memberof GuildOutputArrayDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface GuildOutputDTO */ export interface GuildOutputDTO { - /** - * - * @type {string} - * @memberof GuildOutputDTO - */ - 'id': string; - /** - * - * @type {string} - * @memberof GuildOutputDTO - */ - 'name': string; - /** - * - * @type {string} - * @memberof GuildOutputDTO - */ - 'discordId': string; - /** - * - * @type {boolean} - * @memberof GuildOutputDTO - */ - 'takaroEnabled': boolean; - /** - * - * @type {string} - * @memberof GuildOutputDTO - */ - 'icon'?: string; + /** + * + * @type {string} + * @memberof GuildOutputDTO + */ + id: string; + /** + * + * @type {string} + * @memberof GuildOutputDTO + */ + name: string; + /** + * + * @type {string} + * @memberof GuildOutputDTO + */ + discordId: string; + /** + * + * @type {boolean} + * @memberof GuildOutputDTO + */ + takaroEnabled: boolean; + /** + * + * @type {string} + * @memberof GuildOutputDTO + */ + icon?: string; } /** - * + * * @export * @interface GuildOutputDTOAPI */ export interface GuildOutputDTOAPI { - /** - * - * @type {GuildOutputDTO} - * @memberof GuildOutputDTOAPI - */ - 'data': GuildOutputDTO; - /** - * - * @type {MetadataOutput} - * @memberof GuildOutputDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {GuildOutputDTO} + * @memberof GuildOutputDTOAPI + */ + data: GuildOutputDTO; + /** + * + * @type {MetadataOutput} + * @memberof GuildOutputDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface GuildSearchInputAllowedFilters */ export interface GuildSearchInputAllowedFilters { - /** - * - * @type {Array} - * @memberof GuildSearchInputAllowedFilters - */ - 'name'?: Array; - /** - * - * @type {Array} - * @memberof GuildSearchInputAllowedFilters - */ - 'discordId'?: Array; - /** - * - * @type {Array} - * @memberof GuildSearchInputAllowedFilters - */ - 'takaroEnabled'?: Array; - /** - * - * @type {Array} - * @memberof GuildSearchInputAllowedFilters - */ - 'id'?: Array; + /** + * + * @type {Array} + * @memberof GuildSearchInputAllowedFilters + */ + name?: Array; + /** + * + * @type {Array} + * @memberof GuildSearchInputAllowedFilters + */ + discordId?: Array; + /** + * + * @type {Array} + * @memberof GuildSearchInputAllowedFilters + */ + takaroEnabled?: Array; + /** + * + * @type {Array} + * @memberof GuildSearchInputAllowedFilters + */ + id?: Array; } /** - * + * * @export * @interface GuildSearchInputDTO */ export interface GuildSearchInputDTO { - /** - * - * @type {GuildSearchInputAllowedFilters} - * @memberof GuildSearchInputDTO - */ - 'filters'?: GuildSearchInputAllowedFilters; - /** - * - * @type {GuildSearchInputAllowedFilters} - * @memberof GuildSearchInputDTO - */ - 'search'?: GuildSearchInputAllowedFilters; - /** - * - * @type {any} - * @memberof GuildSearchInputDTO - */ - 'greaterThan'?: any; - /** - * - * @type {any} - * @memberof GuildSearchInputDTO - */ - 'lessThan'?: any; - /** - * - * @type {number} - * @memberof GuildSearchInputDTO - */ - 'page'?: number; - /** - * - * @type {number} - * @memberof GuildSearchInputDTO - */ - 'limit'?: number; - /** - * - * @type {string} - * @memberof GuildSearchInputDTO - */ - 'sortBy'?: string; - /** - * - * @type {string} - * @memberof GuildSearchInputDTO - */ - 'sortDirection'?: GuildSearchInputDTOSortDirectionEnum; - /** - * - * @type {Array} - * @memberof GuildSearchInputDTO - */ - 'extend'?: Array; + /** + * + * @type {GuildSearchInputAllowedFilters} + * @memberof GuildSearchInputDTO + */ + filters?: GuildSearchInputAllowedFilters; + /** + * + * @type {GuildSearchInputAllowedFilters} + * @memberof GuildSearchInputDTO + */ + search?: GuildSearchInputAllowedFilters; + /** + * + * @type {any} + * @memberof GuildSearchInputDTO + */ + greaterThan?: any; + /** + * + * @type {any} + * @memberof GuildSearchInputDTO + */ + lessThan?: any; + /** + * + * @type {number} + * @memberof GuildSearchInputDTO + */ + page?: number; + /** + * + * @type {number} + * @memberof GuildSearchInputDTO + */ + limit?: number; + /** + * + * @type {string} + * @memberof GuildSearchInputDTO + */ + sortBy?: string; + /** + * + * @type {string} + * @memberof GuildSearchInputDTO + */ + sortDirection?: GuildSearchInputDTOSortDirectionEnum; + /** + * + * @type {Array} + * @memberof GuildSearchInputDTO + */ + extend?: Array; } export const GuildSearchInputDTOSortDirectionEnum = { - Asc: 'asc', - Desc: 'desc' + Asc: 'asc', + Desc: 'desc', } as const; -export type GuildSearchInputDTOSortDirectionEnum = typeof GuildSearchInputDTOSortDirectionEnum[keyof typeof GuildSearchInputDTOSortDirectionEnum]; +export type GuildSearchInputDTOSortDirectionEnum = + (typeof GuildSearchInputDTOSortDirectionEnum)[keyof typeof GuildSearchInputDTOSortDirectionEnum]; /** - * + * * @export * @interface GuildUpdateDTO */ export interface GuildUpdateDTO { - /** - * - * @type {string} - * @memberof GuildUpdateDTO - */ - 'name'?: string; - /** - * - * @type {string} - * @memberof GuildUpdateDTO - */ - 'icon'?: string; - /** - * - * @type {boolean} - * @memberof GuildUpdateDTO - */ - 'takaroEnabled'?: boolean; + /** + * + * @type {string} + * @memberof GuildUpdateDTO + */ + name?: string; + /** + * + * @type {string} + * @memberof GuildUpdateDTO + */ + icon?: string; + /** + * + * @type {boolean} + * @memberof GuildUpdateDTO + */ + takaroEnabled?: boolean; } /** - * + * * @export * @interface HealthOutputDTO */ export interface HealthOutputDTO { - /** - * - * @type {boolean} - * @memberof HealthOutputDTO - */ - 'healthy': boolean; + /** + * + * @type {boolean} + * @memberof HealthOutputDTO + */ + healthy: boolean; } /** - * + * * @export * @interface HookCreateDTO */ export interface HookCreateDTO { - /** - * - * @type {string} - * @memberof HookCreateDTO - */ - 'name': string; - /** - * - * @type {string} - * @memberof HookCreateDTO - */ - 'regex': string; - /** - * - * @type {string} - * @memberof HookCreateDTO - */ - 'versionId': string; - /** - * - * @type {string} - * @memberof HookCreateDTO - */ - 'eventType': HookCreateDTOEventTypeEnum; - /** - * - * @type {string} - * @memberof HookCreateDTO - */ - 'function'?: string; + /** + * + * @type {string} + * @memberof HookCreateDTO + */ + name: string; + /** + * + * @type {string} + * @memberof HookCreateDTO + */ + regex: string; + /** + * + * @type {string} + * @memberof HookCreateDTO + */ + versionId: string; + /** + * + * @type {string} + * @memberof HookCreateDTO + */ + eventType: HookCreateDTOEventTypeEnum; + /** + * + * @type {string} + * @memberof HookCreateDTO + */ + function?: string; } export const HookCreateDTOEventTypeEnum = { - Log: 'log', - PlayerConnected: 'player-connected', - PlayerDisconnected: 'player-disconnected', - ChatMessage: 'chat-message', - PlayerDeath: 'player-death', - EntityKilled: 'entity-killed', - DiscordMessage: 'discord-message', - RoleAssigned: 'role-assigned', - RoleRemoved: 'role-removed', - RoleCreated: 'role-created', - RoleUpdated: 'role-updated', - RoleDeleted: 'role-deleted', - CommandExecuted: 'command-executed', - HookExecuted: 'hook-executed', - CronjobExecuted: 'cronjob-executed', - CurrencyAdded: 'currency-added', - CurrencyDeducted: 'currency-deducted', - SettingsSet: 'settings-set', - PlayerNewIpDetected: 'player-new-ip-detected', - ServerStatusChanged: 'server-status-changed', - ModuleCreated: 'module-created', - ModuleUpdated: 'module-updated', - ModuleDeleted: 'module-deleted', - ModuleInstalled: 'module-installed', - ModuleUninstalled: 'module-uninstalled', - PlayerCreated: 'player-created', - ShopListingCreated: 'shop-listing-created', - ShopListingUpdated: 'shop-listing-updated', - ShopListingDeleted: 'shop-listing-deleted', - ShopOrderCreated: 'shop-order-created', - ShopOrderStatusChanged: 'shop-order-status-changed', - PlayerLinked: 'player-linked' + Log: 'log', + PlayerConnected: 'player-connected', + PlayerDisconnected: 'player-disconnected', + ChatMessage: 'chat-message', + PlayerDeath: 'player-death', + EntityKilled: 'entity-killed', + DiscordMessage: 'discord-message', + RoleAssigned: 'role-assigned', + RoleRemoved: 'role-removed', + RoleCreated: 'role-created', + RoleUpdated: 'role-updated', + RoleDeleted: 'role-deleted', + CommandExecuted: 'command-executed', + HookExecuted: 'hook-executed', + CronjobExecuted: 'cronjob-executed', + CurrencyAdded: 'currency-added', + CurrencyDeducted: 'currency-deducted', + SettingsSet: 'settings-set', + PlayerNewIpDetected: 'player-new-ip-detected', + ServerStatusChanged: 'server-status-changed', + ModuleCreated: 'module-created', + ModuleUpdated: 'module-updated', + ModuleDeleted: 'module-deleted', + ModuleInstalled: 'module-installed', + ModuleUninstalled: 'module-uninstalled', + PlayerCreated: 'player-created', + ShopListingCreated: 'shop-listing-created', + ShopListingUpdated: 'shop-listing-updated', + ShopListingDeleted: 'shop-listing-deleted', + ShopOrderCreated: 'shop-order-created', + ShopOrderStatusChanged: 'shop-order-status-changed', + PlayerLinked: 'player-linked', } as const; -export type HookCreateDTOEventTypeEnum = typeof HookCreateDTOEventTypeEnum[keyof typeof HookCreateDTOEventTypeEnum]; +export type HookCreateDTOEventTypeEnum = (typeof HookCreateDTOEventTypeEnum)[keyof typeof HookCreateDTOEventTypeEnum]; /** - * + * * @export * @interface HookEventDiscordMessage */ export interface HookEventDiscordMessage { - /** - * - * @type {string} - * @memberof HookEventDiscordMessage - */ - 'msg': string; - /** - * - * @type {EventDiscordUser} - * @memberof HookEventDiscordMessage - */ - 'author': EventDiscordUser; - /** - * - * @type {EventDiscordChannel} - * @memberof HookEventDiscordMessage - */ - 'channel': EventDiscordChannel; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof HookEventDiscordMessage - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof HookEventDiscordMessage + */ + msg: string; + /** + * + * @type {EventDiscordUser} + * @memberof HookEventDiscordMessage + */ + author: EventDiscordUser; + /** + * + * @type {EventDiscordChannel} + * @memberof HookEventDiscordMessage + */ + channel: EventDiscordChannel; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof HookEventDiscordMessage + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface HookOutputArrayDTOAPI */ export interface HookOutputArrayDTOAPI { - /** - * - * @type {Array} - * @memberof HookOutputArrayDTOAPI - */ - 'data': Array; - /** - * - * @type {MetadataOutput} - * @memberof HookOutputArrayDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {Array} + * @memberof HookOutputArrayDTOAPI + */ + data: Array; + /** + * + * @type {MetadataOutput} + * @memberof HookOutputArrayDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface HookOutputDTO */ export interface HookOutputDTO { - /** - * - * @type {string} - * @memberof HookOutputDTO - */ - 'name': string; - /** - * - * @type {string} - * @memberof HookOutputDTO - */ - 'regex': string; - /** - * - * @type {FunctionOutputDTO} - * @memberof HookOutputDTO - */ - 'function': FunctionOutputDTO; - /** - * - * @type {string} - * @memberof HookOutputDTO - */ - 'eventType': HookOutputDTOEventTypeEnum; - /** - * - * @type {string} - * @memberof HookOutputDTO - */ - 'versionId': string; - /** - * - * @type {string} - * @memberof HookOutputDTO - */ - 'id': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof HookOutputDTO - */ - 'createdAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof HookOutputDTO - */ - 'updatedAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof HookOutputDTO + */ + name: string; + /** + * + * @type {string} + * @memberof HookOutputDTO + */ + regex: string; + /** + * + * @type {FunctionOutputDTO} + * @memberof HookOutputDTO + */ + function: FunctionOutputDTO; + /** + * + * @type {string} + * @memberof HookOutputDTO + */ + eventType: HookOutputDTOEventTypeEnum; + /** + * + * @type {string} + * @memberof HookOutputDTO + */ + versionId: string; + /** + * + * @type {string} + * @memberof HookOutputDTO + */ + id: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof HookOutputDTO + */ + createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof HookOutputDTO + */ + updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } export const HookOutputDTOEventTypeEnum = { - Log: 'log', - PlayerConnected: 'player-connected', - PlayerDisconnected: 'player-disconnected', - ChatMessage: 'chat-message', - PlayerDeath: 'player-death', - EntityKilled: 'entity-killed', - DiscordMessage: 'discord-message', - RoleAssigned: 'role-assigned', - RoleRemoved: 'role-removed', - RoleCreated: 'role-created', - RoleUpdated: 'role-updated', - RoleDeleted: 'role-deleted', - CommandExecuted: 'command-executed', - HookExecuted: 'hook-executed', - CronjobExecuted: 'cronjob-executed', - CurrencyAdded: 'currency-added', - CurrencyDeducted: 'currency-deducted', - SettingsSet: 'settings-set', - PlayerNewIpDetected: 'player-new-ip-detected', - ServerStatusChanged: 'server-status-changed', - ModuleCreated: 'module-created', - ModuleUpdated: 'module-updated', - ModuleDeleted: 'module-deleted', - ModuleInstalled: 'module-installed', - ModuleUninstalled: 'module-uninstalled', - PlayerCreated: 'player-created', - ShopListingCreated: 'shop-listing-created', - ShopListingUpdated: 'shop-listing-updated', - ShopListingDeleted: 'shop-listing-deleted', - ShopOrderCreated: 'shop-order-created', - ShopOrderStatusChanged: 'shop-order-status-changed', - PlayerLinked: 'player-linked' + Log: 'log', + PlayerConnected: 'player-connected', + PlayerDisconnected: 'player-disconnected', + ChatMessage: 'chat-message', + PlayerDeath: 'player-death', + EntityKilled: 'entity-killed', + DiscordMessage: 'discord-message', + RoleAssigned: 'role-assigned', + RoleRemoved: 'role-removed', + RoleCreated: 'role-created', + RoleUpdated: 'role-updated', + RoleDeleted: 'role-deleted', + CommandExecuted: 'command-executed', + HookExecuted: 'hook-executed', + CronjobExecuted: 'cronjob-executed', + CurrencyAdded: 'currency-added', + CurrencyDeducted: 'currency-deducted', + SettingsSet: 'settings-set', + PlayerNewIpDetected: 'player-new-ip-detected', + ServerStatusChanged: 'server-status-changed', + ModuleCreated: 'module-created', + ModuleUpdated: 'module-updated', + ModuleDeleted: 'module-deleted', + ModuleInstalled: 'module-installed', + ModuleUninstalled: 'module-uninstalled', + PlayerCreated: 'player-created', + ShopListingCreated: 'shop-listing-created', + ShopListingUpdated: 'shop-listing-updated', + ShopListingDeleted: 'shop-listing-deleted', + ShopOrderCreated: 'shop-order-created', + ShopOrderStatusChanged: 'shop-order-status-changed', + PlayerLinked: 'player-linked', } as const; -export type HookOutputDTOEventTypeEnum = typeof HookOutputDTOEventTypeEnum[keyof typeof HookOutputDTOEventTypeEnum]; +export type HookOutputDTOEventTypeEnum = (typeof HookOutputDTOEventTypeEnum)[keyof typeof HookOutputDTOEventTypeEnum]; /** - * + * * @export * @interface HookOutputDTOAPI */ export interface HookOutputDTOAPI { - /** - * - * @type {HookOutputDTO} - * @memberof HookOutputDTOAPI - */ - 'data': HookOutputDTO; - /** - * - * @type {MetadataOutput} - * @memberof HookOutputDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {HookOutputDTO} + * @memberof HookOutputDTOAPI + */ + data: HookOutputDTO; + /** + * + * @type {MetadataOutput} + * @memberof HookOutputDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface HookSearchInputAllowedFilters */ export interface HookSearchInputAllowedFilters { - /** - * - * @type {Array} - * @memberof HookSearchInputAllowedFilters - */ - 'moduleId'?: Array; - /** - * - * @type {Array} - * @memberof HookSearchInputAllowedFilters - */ - 'name'?: Array; - /** - * - * @type {Array} - * @memberof HookSearchInputAllowedFilters - */ - 'eventType'?: Array; - /** - * - * @type {Array} - * @memberof HookSearchInputAllowedFilters - */ - 'id'?: Array; + /** + * + * @type {Array} + * @memberof HookSearchInputAllowedFilters + */ + moduleId?: Array; + /** + * + * @type {Array} + * @memberof HookSearchInputAllowedFilters + */ + name?: Array; + /** + * + * @type {Array} + * @memberof HookSearchInputAllowedFilters + */ + eventType?: Array; + /** + * + * @type {Array} + * @memberof HookSearchInputAllowedFilters + */ + id?: Array; } export const HookSearchInputAllowedFiltersEventTypeEnum = { - Log: 'log', - PlayerConnected: 'player-connected', - PlayerDisconnected: 'player-disconnected', - ChatMessage: 'chat-message', - PlayerDeath: 'player-death', - EntityKilled: 'entity-killed', - DiscordMessage: 'discord-message', - RoleAssigned: 'role-assigned', - RoleRemoved: 'role-removed', - RoleCreated: 'role-created', - RoleUpdated: 'role-updated', - RoleDeleted: 'role-deleted', - CommandExecuted: 'command-executed', - HookExecuted: 'hook-executed', - CronjobExecuted: 'cronjob-executed', - CurrencyAdded: 'currency-added', - CurrencyDeducted: 'currency-deducted', - SettingsSet: 'settings-set', - PlayerNewIpDetected: 'player-new-ip-detected', - ServerStatusChanged: 'server-status-changed', - ModuleCreated: 'module-created', - ModuleUpdated: 'module-updated', - ModuleDeleted: 'module-deleted', - ModuleInstalled: 'module-installed', - ModuleUninstalled: 'module-uninstalled', - PlayerCreated: 'player-created', - ShopListingCreated: 'shop-listing-created', - ShopListingUpdated: 'shop-listing-updated', - ShopListingDeleted: 'shop-listing-deleted', - ShopOrderCreated: 'shop-order-created', - ShopOrderStatusChanged: 'shop-order-status-changed', - PlayerLinked: 'player-linked' + Log: 'log', + PlayerConnected: 'player-connected', + PlayerDisconnected: 'player-disconnected', + ChatMessage: 'chat-message', + PlayerDeath: 'player-death', + EntityKilled: 'entity-killed', + DiscordMessage: 'discord-message', + RoleAssigned: 'role-assigned', + RoleRemoved: 'role-removed', + RoleCreated: 'role-created', + RoleUpdated: 'role-updated', + RoleDeleted: 'role-deleted', + CommandExecuted: 'command-executed', + HookExecuted: 'hook-executed', + CronjobExecuted: 'cronjob-executed', + CurrencyAdded: 'currency-added', + CurrencyDeducted: 'currency-deducted', + SettingsSet: 'settings-set', + PlayerNewIpDetected: 'player-new-ip-detected', + ServerStatusChanged: 'server-status-changed', + ModuleCreated: 'module-created', + ModuleUpdated: 'module-updated', + ModuleDeleted: 'module-deleted', + ModuleInstalled: 'module-installed', + ModuleUninstalled: 'module-uninstalled', + PlayerCreated: 'player-created', + ShopListingCreated: 'shop-listing-created', + ShopListingUpdated: 'shop-listing-updated', + ShopListingDeleted: 'shop-listing-deleted', + ShopOrderCreated: 'shop-order-created', + ShopOrderStatusChanged: 'shop-order-status-changed', + PlayerLinked: 'player-linked', } as const; -export type HookSearchInputAllowedFiltersEventTypeEnum = typeof HookSearchInputAllowedFiltersEventTypeEnum[keyof typeof HookSearchInputAllowedFiltersEventTypeEnum]; +export type HookSearchInputAllowedFiltersEventTypeEnum = + (typeof HookSearchInputAllowedFiltersEventTypeEnum)[keyof typeof HookSearchInputAllowedFiltersEventTypeEnum]; /** - * + * * @export * @interface HookSearchInputDTO */ export interface HookSearchInputDTO { - /** - * - * @type {HookSearchInputAllowedFilters} - * @memberof HookSearchInputDTO - */ - 'filters'?: HookSearchInputAllowedFilters; - /** - * - * @type {HookSearchInputAllowedFilters} - * @memberof HookSearchInputDTO - */ - 'search'?: HookSearchInputAllowedFilters; - /** - * - * @type {any} - * @memberof HookSearchInputDTO - */ - 'greaterThan'?: any; - /** - * - * @type {any} - * @memberof HookSearchInputDTO - */ - 'lessThan'?: any; - /** - * - * @type {number} - * @memberof HookSearchInputDTO - */ - 'page'?: number; - /** - * - * @type {number} - * @memberof HookSearchInputDTO - */ - 'limit'?: number; - /** - * - * @type {string} - * @memberof HookSearchInputDTO - */ - 'sortBy'?: string; - /** - * - * @type {string} - * @memberof HookSearchInputDTO - */ - 'sortDirection'?: HookSearchInputDTOSortDirectionEnum; - /** - * - * @type {Array} - * @memberof HookSearchInputDTO - */ - 'extend'?: Array; + /** + * + * @type {HookSearchInputAllowedFilters} + * @memberof HookSearchInputDTO + */ + filters?: HookSearchInputAllowedFilters; + /** + * + * @type {HookSearchInputAllowedFilters} + * @memberof HookSearchInputDTO + */ + search?: HookSearchInputAllowedFilters; + /** + * + * @type {any} + * @memberof HookSearchInputDTO + */ + greaterThan?: any; + /** + * + * @type {any} + * @memberof HookSearchInputDTO + */ + lessThan?: any; + /** + * + * @type {number} + * @memberof HookSearchInputDTO + */ + page?: number; + /** + * + * @type {number} + * @memberof HookSearchInputDTO + */ + limit?: number; + /** + * + * @type {string} + * @memberof HookSearchInputDTO + */ + sortBy?: string; + /** + * + * @type {string} + * @memberof HookSearchInputDTO + */ + sortDirection?: HookSearchInputDTOSortDirectionEnum; + /** + * + * @type {Array} + * @memberof HookSearchInputDTO + */ + extend?: Array; } export const HookSearchInputDTOSortDirectionEnum = { - Asc: 'asc', - Desc: 'desc' + Asc: 'asc', + Desc: 'desc', } as const; -export type HookSearchInputDTOSortDirectionEnum = typeof HookSearchInputDTOSortDirectionEnum[keyof typeof HookSearchInputDTOSortDirectionEnum]; +export type HookSearchInputDTOSortDirectionEnum = + (typeof HookSearchInputDTOSortDirectionEnum)[keyof typeof HookSearchInputDTOSortDirectionEnum]; /** - * + * * @export * @interface HookTriggerDTO */ export interface HookTriggerDTO { - /** - * - * @type {string} - * @memberof HookTriggerDTO - */ - 'gameServerId': string; - /** - * - * @type {string} - * @memberof HookTriggerDTO - */ - 'playerId'?: string; - /** - * - * @type {string} - * @memberof HookTriggerDTO - */ - 'moduleId'?: string; - /** - * - * @type {string} - * @memberof HookTriggerDTO - */ - 'eventType': HookTriggerDTOEventTypeEnum; - /** - * - * @type {object} - * @memberof HookTriggerDTO - */ - 'eventMeta': object; + /** + * + * @type {string} + * @memberof HookTriggerDTO + */ + gameServerId: string; + /** + * + * @type {string} + * @memberof HookTriggerDTO + */ + playerId?: string; + /** + * + * @type {string} + * @memberof HookTriggerDTO + */ + moduleId?: string; + /** + * + * @type {string} + * @memberof HookTriggerDTO + */ + eventType: HookTriggerDTOEventTypeEnum; + /** + * + * @type {object} + * @memberof HookTriggerDTO + */ + eventMeta: object; } export const HookTriggerDTOEventTypeEnum = { - Log: 'log', - PlayerConnected: 'player-connected', - PlayerDisconnected: 'player-disconnected', - ChatMessage: 'chat-message', - PlayerDeath: 'player-death', - EntityKilled: 'entity-killed', - DiscordMessage: 'discord-message', - RoleAssigned: 'role-assigned', - RoleRemoved: 'role-removed', - RoleCreated: 'role-created', - RoleUpdated: 'role-updated', - RoleDeleted: 'role-deleted', - CommandExecuted: 'command-executed', - HookExecuted: 'hook-executed', - CronjobExecuted: 'cronjob-executed', - CurrencyAdded: 'currency-added', - CurrencyDeducted: 'currency-deducted', - SettingsSet: 'settings-set', - PlayerNewIpDetected: 'player-new-ip-detected', - ServerStatusChanged: 'server-status-changed', - ModuleCreated: 'module-created', - ModuleUpdated: 'module-updated', - ModuleDeleted: 'module-deleted', - ModuleInstalled: 'module-installed', - ModuleUninstalled: 'module-uninstalled', - PlayerCreated: 'player-created', - ShopListingCreated: 'shop-listing-created', - ShopListingUpdated: 'shop-listing-updated', - ShopListingDeleted: 'shop-listing-deleted', - ShopOrderCreated: 'shop-order-created', - ShopOrderStatusChanged: 'shop-order-status-changed', - PlayerLinked: 'player-linked' + Log: 'log', + PlayerConnected: 'player-connected', + PlayerDisconnected: 'player-disconnected', + ChatMessage: 'chat-message', + PlayerDeath: 'player-death', + EntityKilled: 'entity-killed', + DiscordMessage: 'discord-message', + RoleAssigned: 'role-assigned', + RoleRemoved: 'role-removed', + RoleCreated: 'role-created', + RoleUpdated: 'role-updated', + RoleDeleted: 'role-deleted', + CommandExecuted: 'command-executed', + HookExecuted: 'hook-executed', + CronjobExecuted: 'cronjob-executed', + CurrencyAdded: 'currency-added', + CurrencyDeducted: 'currency-deducted', + SettingsSet: 'settings-set', + PlayerNewIpDetected: 'player-new-ip-detected', + ServerStatusChanged: 'server-status-changed', + ModuleCreated: 'module-created', + ModuleUpdated: 'module-updated', + ModuleDeleted: 'module-deleted', + ModuleInstalled: 'module-installed', + ModuleUninstalled: 'module-uninstalled', + PlayerCreated: 'player-created', + ShopListingCreated: 'shop-listing-created', + ShopListingUpdated: 'shop-listing-updated', + ShopListingDeleted: 'shop-listing-deleted', + ShopOrderCreated: 'shop-order-created', + ShopOrderStatusChanged: 'shop-order-status-changed', + PlayerLinked: 'player-linked', } as const; -export type HookTriggerDTOEventTypeEnum = typeof HookTriggerDTOEventTypeEnum[keyof typeof HookTriggerDTOEventTypeEnum]; +export type HookTriggerDTOEventTypeEnum = + (typeof HookTriggerDTOEventTypeEnum)[keyof typeof HookTriggerDTOEventTypeEnum]; /** - * + * * @export * @interface HookUpdateDTO */ export interface HookUpdateDTO { - /** - * - * @type {string} - * @memberof HookUpdateDTO - */ - 'name'?: string; - /** - * - * @type {string} - * @memberof HookUpdateDTO - */ - 'regex'?: string; - /** - * - * @type {string} - * @memberof HookUpdateDTO - */ - 'eventType'?: HookUpdateDTOEventTypeEnum; - /** - * - * @type {string} - * @memberof HookUpdateDTO - */ - 'function'?: string; + /** + * + * @type {string} + * @memberof HookUpdateDTO + */ + name?: string; + /** + * + * @type {string} + * @memberof HookUpdateDTO + */ + regex?: string; + /** + * + * @type {string} + * @memberof HookUpdateDTO + */ + eventType?: HookUpdateDTOEventTypeEnum; + /** + * + * @type {string} + * @memberof HookUpdateDTO + */ + function?: string; } export const HookUpdateDTOEventTypeEnum = { - Log: 'log', - PlayerConnected: 'player-connected', - PlayerDisconnected: 'player-disconnected', - ChatMessage: 'chat-message', - PlayerDeath: 'player-death', - EntityKilled: 'entity-killed', - DiscordMessage: 'discord-message', - RoleAssigned: 'role-assigned', - RoleRemoved: 'role-removed', - RoleCreated: 'role-created', - RoleUpdated: 'role-updated', - RoleDeleted: 'role-deleted', - CommandExecuted: 'command-executed', - HookExecuted: 'hook-executed', - CronjobExecuted: 'cronjob-executed', - CurrencyAdded: 'currency-added', - CurrencyDeducted: 'currency-deducted', - SettingsSet: 'settings-set', - PlayerNewIpDetected: 'player-new-ip-detected', - ServerStatusChanged: 'server-status-changed', - ModuleCreated: 'module-created', - ModuleUpdated: 'module-updated', - ModuleDeleted: 'module-deleted', - ModuleInstalled: 'module-installed', - ModuleUninstalled: 'module-uninstalled', - PlayerCreated: 'player-created', - ShopListingCreated: 'shop-listing-created', - ShopListingUpdated: 'shop-listing-updated', - ShopListingDeleted: 'shop-listing-deleted', - ShopOrderCreated: 'shop-order-created', - ShopOrderStatusChanged: 'shop-order-status-changed', - PlayerLinked: 'player-linked' + Log: 'log', + PlayerConnected: 'player-connected', + PlayerDisconnected: 'player-disconnected', + ChatMessage: 'chat-message', + PlayerDeath: 'player-death', + EntityKilled: 'entity-killed', + DiscordMessage: 'discord-message', + RoleAssigned: 'role-assigned', + RoleRemoved: 'role-removed', + RoleCreated: 'role-created', + RoleUpdated: 'role-updated', + RoleDeleted: 'role-deleted', + CommandExecuted: 'command-executed', + HookExecuted: 'hook-executed', + CronjobExecuted: 'cronjob-executed', + CurrencyAdded: 'currency-added', + CurrencyDeducted: 'currency-deducted', + SettingsSet: 'settings-set', + PlayerNewIpDetected: 'player-new-ip-detected', + ServerStatusChanged: 'server-status-changed', + ModuleCreated: 'module-created', + ModuleUpdated: 'module-updated', + ModuleDeleted: 'module-deleted', + ModuleInstalled: 'module-installed', + ModuleUninstalled: 'module-uninstalled', + PlayerCreated: 'player-created', + ShopListingCreated: 'shop-listing-created', + ShopListingUpdated: 'shop-listing-updated', + ShopListingDeleted: 'shop-listing-deleted', + ShopOrderCreated: 'shop-order-created', + ShopOrderStatusChanged: 'shop-order-status-changed', + PlayerLinked: 'player-linked', } as const; -export type HookUpdateDTOEventTypeEnum = typeof HookUpdateDTOEventTypeEnum[keyof typeof HookUpdateDTOEventTypeEnum]; +export type HookUpdateDTOEventTypeEnum = (typeof HookUpdateDTOEventTypeEnum)[keyof typeof HookUpdateDTOEventTypeEnum]; /** - * + * * @export * @interface ICommand */ export interface ICommand { - /** - * - * @type {string} - * @memberof ICommand - */ - 'name': string; - /** - * - * @type {string} - * @memberof ICommand - */ - 'function': string; - /** - * - * @type {string} - * @memberof ICommand - */ - 'trigger': string; - /** - * - * @type {string} - * @memberof ICommand - */ - 'helpText'?: string; - /** - * - * @type {Array} - * @memberof ICommand - */ - 'arguments'?: Array; + /** + * + * @type {string} + * @memberof ICommand + */ + name: string; + /** + * + * @type {string} + * @memberof ICommand + */ + function: string; + /** + * + * @type {string} + * @memberof ICommand + */ + trigger: string; + /** + * + * @type {string} + * @memberof ICommand + */ + helpText?: string; + /** + * + * @type {Array} + * @memberof ICommand + */ + arguments?: Array; } /** - * + * * @export * @interface ICommandArgument */ export interface ICommandArgument { - /** - * - * @type {string} - * @memberof ICommandArgument - */ - 'name': string; - /** - * - * @type {string} - * @memberof ICommandArgument - */ - 'type': string; - /** - * - * @type {string} - * @memberof ICommandArgument - */ - 'helpText'?: string; - /** - * - * @type {string} - * @memberof ICommandArgument - */ - 'defaultValue'?: string; - /** - * - * @type {number} - * @memberof ICommandArgument - */ - 'position'?: number; + /** + * + * @type {string} + * @memberof ICommandArgument + */ + name: string; + /** + * + * @type {string} + * @memberof ICommandArgument + */ + type: string; + /** + * + * @type {string} + * @memberof ICommandArgument + */ + helpText?: string; + /** + * + * @type {string} + * @memberof ICommandArgument + */ + defaultValue?: string; + /** + * + * @type {number} + * @memberof ICommandArgument + */ + position?: number; } /** - * + * * @export * @interface ICronJob */ export interface ICronJob { - /** - * - * @type {string} - * @memberof ICronJob - */ - 'name': string; - /** - * - * @type {string} - * @memberof ICronJob - */ - 'function': string; - /** - * - * @type {string} - * @memberof ICronJob - */ - 'temporalValue': string; + /** + * + * @type {string} + * @memberof ICronJob + */ + name: string; + /** + * + * @type {string} + * @memberof ICronJob + */ + function: string; + /** + * + * @type {string} + * @memberof ICronJob + */ + temporalValue: string; } /** - * + * * @export * @interface IFunction */ export interface IFunction { - /** - * - * @type {string} - * @memberof IFunction - */ - 'name': string; - /** - * - * @type {string} - * @memberof IFunction - */ - 'function': string; + /** + * + * @type {string} + * @memberof IFunction + */ + name: string; + /** + * + * @type {string} + * @memberof IFunction + */ + function: string; } /** - * + * * @export * @interface IGamePlayer */ export interface IGamePlayer { - /** - * - * @type {string} - * @memberof IGamePlayer - */ - 'gameId': string; - /** - * - * @type {string} - * @memberof IGamePlayer - */ - 'name': string; - /** - * - * @type {string} - * @memberof IGamePlayer - */ - 'steamId'?: string; - /** - * - * @type {string} - * @memberof IGamePlayer - */ - 'epicOnlineServicesId'?: string; - /** - * - * @type {string} - * @memberof IGamePlayer - */ - 'xboxLiveId'?: string; - /** - * - * @type {string} - * @memberof IGamePlayer - */ - 'platformId'?: string; - /** - * - * @type {string} - * @memberof IGamePlayer - */ - 'ip'?: string; - /** - * - * @type {number} - * @memberof IGamePlayer - */ - 'ping'?: number; + /** + * + * @type {string} + * @memberof IGamePlayer + */ + gameId: string; + /** + * + * @type {string} + * @memberof IGamePlayer + */ + name: string; + /** + * + * @type {string} + * @memberof IGamePlayer + */ + steamId?: string; + /** + * + * @type {string} + * @memberof IGamePlayer + */ + epicOnlineServicesId?: string; + /** + * + * @type {string} + * @memberof IGamePlayer + */ + xboxLiveId?: string; + /** + * + * @type {string} + * @memberof IGamePlayer + */ + platformId?: string; + /** + * + * @type {string} + * @memberof IGamePlayer + */ + ip?: string; + /** + * + * @type {number} + * @memberof IGamePlayer + */ + ping?: number; } /** - * + * * @export * @interface IHook */ export interface IHook { - /** - * - * @type {string} - * @memberof IHook - */ - 'name': string; - /** - * - * @type {string} - * @memberof IHook - */ - 'function': string; - /** - * - * @type {string} - * @memberof IHook - */ - 'eventType': IHookEventTypeEnum; + /** + * + * @type {string} + * @memberof IHook + */ + name: string; + /** + * + * @type {string} + * @memberof IHook + */ + function: string; + /** + * + * @type {string} + * @memberof IHook + */ + eventType: IHookEventTypeEnum; } export const IHookEventTypeEnum = { - Log: 'log', - PlayerConnected: 'player-connected', - PlayerDisconnected: 'player-disconnected', - ChatMessage: 'chat-message', - PlayerDeath: 'player-death', - EntityKilled: 'entity-killed', - DiscordMessage: 'discord-message', - RoleAssigned: 'role-assigned', - RoleRemoved: 'role-removed', - RoleCreated: 'role-created', - RoleUpdated: 'role-updated', - RoleDeleted: 'role-deleted', - CommandExecuted: 'command-executed', - HookExecuted: 'hook-executed', - CronjobExecuted: 'cronjob-executed', - CurrencyAdded: 'currency-added', - CurrencyDeducted: 'currency-deducted', - SettingsSet: 'settings-set', - PlayerNewIpDetected: 'player-new-ip-detected', - ServerStatusChanged: 'server-status-changed', - ModuleCreated: 'module-created', - ModuleUpdated: 'module-updated', - ModuleDeleted: 'module-deleted', - ModuleInstalled: 'module-installed', - ModuleUninstalled: 'module-uninstalled', - PlayerCreated: 'player-created', - ShopListingCreated: 'shop-listing-created', - ShopListingUpdated: 'shop-listing-updated', - ShopListingDeleted: 'shop-listing-deleted', - ShopOrderCreated: 'shop-order-created', - ShopOrderStatusChanged: 'shop-order-status-changed', - PlayerLinked: 'player-linked' + Log: 'log', + PlayerConnected: 'player-connected', + PlayerDisconnected: 'player-disconnected', + ChatMessage: 'chat-message', + PlayerDeath: 'player-death', + EntityKilled: 'entity-killed', + DiscordMessage: 'discord-message', + RoleAssigned: 'role-assigned', + RoleRemoved: 'role-removed', + RoleCreated: 'role-created', + RoleUpdated: 'role-updated', + RoleDeleted: 'role-deleted', + CommandExecuted: 'command-executed', + HookExecuted: 'hook-executed', + CronjobExecuted: 'cronjob-executed', + CurrencyAdded: 'currency-added', + CurrencyDeducted: 'currency-deducted', + SettingsSet: 'settings-set', + PlayerNewIpDetected: 'player-new-ip-detected', + ServerStatusChanged: 'server-status-changed', + ModuleCreated: 'module-created', + ModuleUpdated: 'module-updated', + ModuleDeleted: 'module-deleted', + ModuleInstalled: 'module-installed', + ModuleUninstalled: 'module-uninstalled', + PlayerCreated: 'player-created', + ShopListingCreated: 'shop-listing-created', + ShopListingUpdated: 'shop-listing-updated', + ShopListingDeleted: 'shop-listing-deleted', + ShopOrderCreated: 'shop-order-created', + ShopOrderStatusChanged: 'shop-order-status-changed', + PlayerLinked: 'player-linked', } as const; -export type IHookEventTypeEnum = typeof IHookEventTypeEnum[keyof typeof IHookEventTypeEnum]; +export type IHookEventTypeEnum = (typeof IHookEventTypeEnum)[keyof typeof IHookEventTypeEnum]; /** - * + * * @export * @interface IItemDTO */ export interface IItemDTO { - /** - * - * @type {string} - * @memberof IItemDTO - */ - 'name': string; - /** - * - * @type {string} - * @memberof IItemDTO - */ - 'code': string; - /** - * - * @type {string} - * @memberof IItemDTO - */ - 'description'?: string; - /** - * - * @type {number} - * @memberof IItemDTO - */ - 'amount'?: number; - /** - * - * @type {string} - * @memberof IItemDTO - */ - 'quality'?: string; + /** + * + * @type {string} + * @memberof IItemDTO + */ + name: string; + /** + * + * @type {string} + * @memberof IItemDTO + */ + code: string; + /** + * + * @type {string} + * @memberof IItemDTO + */ + description?: string; + /** + * + * @type {number} + * @memberof IItemDTO + */ + amount?: number; + /** + * + * @type {string} + * @memberof IItemDTO + */ + quality?: string; } /** - * + * * @export * @interface IMessageOptsDTO */ export interface IMessageOptsDTO { - /** - * - * @type {IPlayerReferenceDTO} - * @memberof IMessageOptsDTO - */ - 'recipient': IPlayerReferenceDTO; + /** + * + * @type {IPlayerReferenceDTO} + * @memberof IMessageOptsDTO + */ + recipient: IPlayerReferenceDTO; } /** - * + * * @export * @interface IPermission */ export interface IPermission { - /** - * - * @type {string} - * @memberof IPermission - */ - 'permission': string; - /** - * - * @type {string} - * @memberof IPermission - */ - 'description': string; - /** - * - * @type {string} - * @memberof IPermission - */ - 'friendlyName': string; - /** - * - * @type {boolean} - * @memberof IPermission - */ - 'canHaveCount'?: boolean; + /** + * + * @type {string} + * @memberof IPermission + */ + permission: string; + /** + * + * @type {string} + * @memberof IPermission + */ + description: string; + /** + * + * @type {string} + * @memberof IPermission + */ + friendlyName: string; + /** + * + * @type {boolean} + * @memberof IPermission + */ + canHaveCount?: boolean; } /** - * + * * @export * @interface IPlayerReferenceDTO */ export interface IPlayerReferenceDTO { - /** - * - * @type {string} - * @memberof IPlayerReferenceDTO - */ - 'gameId': string; + /** + * + * @type {string} + * @memberof IPlayerReferenceDTO + */ + gameId: string; } /** - * + * * @export * @interface IPosition */ export interface IPosition { - /** - * - * @type {number} - * @memberof IPosition - */ - 'x': number; - /** - * - * @type {number} - * @memberof IPosition - */ - 'y': number; - /** - * - * @type {number} - * @memberof IPosition - */ - 'z': number; + /** + * + * @type {number} + * @memberof IPosition + */ + x: number; + /** + * + * @type {number} + * @memberof IPosition + */ + y: number; + /** + * + * @type {number} + * @memberof IPosition + */ + z: number; } /** - * + * * @export * @interface ITakaroQuery */ export interface ITakaroQuery { - /** - * - * @type {any} - * @memberof ITakaroQuery - */ - 'filters'?: any; - /** - * - * @type {any} - * @memberof ITakaroQuery - */ - 'search'?: any; - /** - * - * @type {any} - * @memberof ITakaroQuery - */ - 'greaterThan'?: any; - /** - * - * @type {any} - * @memberof ITakaroQuery - */ - 'lessThan'?: any; - /** - * - * @type {number} - * @memberof ITakaroQuery - */ - 'page'?: number; - /** - * - * @type {number} - * @memberof ITakaroQuery - */ - 'limit'?: number; - /** - * - * @type {string} - * @memberof ITakaroQuery - */ - 'sortBy'?: string; - /** - * - * @type {string} - * @memberof ITakaroQuery - */ - 'sortDirection'?: ITakaroQuerySortDirectionEnum; - /** - * - * @type {Array} - * @memberof ITakaroQuery - */ - 'extend'?: Array; + /** + * + * @type {any} + * @memberof ITakaroQuery + */ + filters?: any; + /** + * + * @type {any} + * @memberof ITakaroQuery + */ + search?: any; + /** + * + * @type {any} + * @memberof ITakaroQuery + */ + greaterThan?: any; + /** + * + * @type {any} + * @memberof ITakaroQuery + */ + lessThan?: any; + /** + * + * @type {number} + * @memberof ITakaroQuery + */ + page?: number; + /** + * + * @type {number} + * @memberof ITakaroQuery + */ + limit?: number; + /** + * + * @type {string} + * @memberof ITakaroQuery + */ + sortBy?: string; + /** + * + * @type {string} + * @memberof ITakaroQuery + */ + sortDirection?: ITakaroQuerySortDirectionEnum; + /** + * + * @type {Array} + * @memberof ITakaroQuery + */ + extend?: Array; } export const ITakaroQuerySortDirectionEnum = { - Asc: 'asc', - Desc: 'desc' + Asc: 'asc', + Desc: 'desc', } as const; -export type ITakaroQuerySortDirectionEnum = typeof ITakaroQuerySortDirectionEnum[keyof typeof ITakaroQuerySortDirectionEnum]; +export type ITakaroQuerySortDirectionEnum = + (typeof ITakaroQuerySortDirectionEnum)[keyof typeof ITakaroQuerySortDirectionEnum]; /** - * + * * @export * @interface ImportInputDTO */ export interface ImportInputDTO { - /** - * - * @type {boolean} - * @memberof ImportInputDTO - */ - 'roles': boolean; - /** - * - * @type {boolean} - * @memberof ImportInputDTO - */ - 'players': boolean; - /** - * - * @type {boolean} - * @memberof ImportInputDTO - */ - 'currency': boolean; - /** - * - * @type {boolean} - * @memberof ImportInputDTO - */ - 'shop': boolean; + /** + * + * @type {boolean} + * @memberof ImportInputDTO + */ + roles: boolean; + /** + * + * @type {boolean} + * @memberof ImportInputDTO + */ + players: boolean; + /** + * + * @type {boolean} + * @memberof ImportInputDTO + */ + currency: boolean; + /** + * + * @type {boolean} + * @memberof ImportInputDTO + */ + shop: boolean; } /** - * + * * @export * @interface ImportOutputDTO */ export interface ImportOutputDTO { - /** - * - * @type {string} - * @memberof ImportOutputDTO - */ - 'id': string; + /** + * + * @type {string} + * @memberof ImportOutputDTO + */ + id: string; } /** - * + * * @export * @interface ImportOutputDTOAPI */ export interface ImportOutputDTOAPI { - /** - * - * @type {ImportOutputDTO} - * @memberof ImportOutputDTOAPI - */ - 'data': ImportOutputDTO; - /** - * - * @type {MetadataOutput} - * @memberof ImportOutputDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {ImportOutputDTO} + * @memberof ImportOutputDTOAPI + */ + data: ImportOutputDTO; + /** + * + * @type {MetadataOutput} + * @memberof ImportOutputDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface ImportStatusOutputDTO */ export interface ImportStatusOutputDTO { - /** - * - * @type {string} - * @memberof ImportStatusOutputDTO - */ - 'id': string; - /** - * - * @type {string} - * @memberof ImportStatusOutputDTO - */ - 'status': ImportStatusOutputDTOStatusEnum; - /** - * - * @type {string} - * @memberof ImportStatusOutputDTO - */ - 'failedReason'?: string; + /** + * + * @type {string} + * @memberof ImportStatusOutputDTO + */ + id: string; + /** + * + * @type {string} + * @memberof ImportStatusOutputDTO + */ + status: ImportStatusOutputDTOStatusEnum; + /** + * + * @type {string} + * @memberof ImportStatusOutputDTO + */ + failedReason?: string; } export const ImportStatusOutputDTOStatusEnum = { - Pending: 'pending', - Completed: 'completed', - Failed: 'failed' + Pending: 'pending', + Completed: 'completed', + Failed: 'failed', } as const; -export type ImportStatusOutputDTOStatusEnum = typeof ImportStatusOutputDTOStatusEnum[keyof typeof ImportStatusOutputDTOStatusEnum]; +export type ImportStatusOutputDTOStatusEnum = + (typeof ImportStatusOutputDTOStatusEnum)[keyof typeof ImportStatusOutputDTOStatusEnum]; /** - * + * * @export * @interface ImportStatusOutputDTOAPI */ export interface ImportStatusOutputDTOAPI { - /** - * - * @type {ImportStatusOutputDTO} - * @memberof ImportStatusOutputDTOAPI - */ - 'data': ImportStatusOutputDTO; - /** - * - * @type {MetadataOutput} - * @memberof ImportStatusOutputDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {ImportStatusOutputDTO} + * @memberof ImportStatusOutputDTOAPI + */ + data: ImportStatusOutputDTO; + /** + * + * @type {MetadataOutput} + * @memberof ImportStatusOutputDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface InstallModuleDTO */ export interface InstallModuleDTO { - /** - * - * @type {string} - * @memberof InstallModuleDTO - */ - 'versionId': string; - /** - * - * @type {string} - * @memberof InstallModuleDTO - */ - 'gameServerId': string; - /** - * - * @type {string} - * @memberof InstallModuleDTO - */ - 'userConfig'?: string; - /** - * - * @type {string} - * @memberof InstallModuleDTO - */ - 'systemConfig'?: string; + /** + * + * @type {string} + * @memberof InstallModuleDTO + */ + versionId: string; + /** + * + * @type {string} + * @memberof InstallModuleDTO + */ + gameServerId: string; + /** + * + * @type {string} + * @memberof InstallModuleDTO + */ + userConfig?: string; + /** + * + * @type {string} + * @memberof InstallModuleDTO + */ + systemConfig?: string; } /** - * + * * @export * @interface InviteCreateDTO */ export interface InviteCreateDTO { - /** - * - * @type {string} - * @memberof InviteCreateDTO - */ - 'email': string; + /** + * + * @type {string} + * @memberof InviteCreateDTO + */ + email: string; } /** - * + * * @export * @interface InviteOutputDTO */ export interface InviteOutputDTO { - /** - * - * @type {string} - * @memberof InviteOutputDTO - */ - 'botInvite': string; - /** - * - * @type {string} - * @memberof InviteOutputDTO - */ - 'devServer': string; + /** + * + * @type {string} + * @memberof InviteOutputDTO + */ + botInvite: string; + /** + * + * @type {string} + * @memberof InviteOutputDTO + */ + devServer: string; } /** - * + * * @export * @interface IpHistoryOutputDTO */ export interface IpHistoryOutputDTO { - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof IpHistoryOutputDTO - */ - 'createdAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {string} - * @memberof IpHistoryOutputDTO - */ - 'ip': string; - /** - * - * @type {string} - * @memberof IpHistoryOutputDTO - */ - 'country'?: string; - /** - * - * @type {string} - * @memberof IpHistoryOutputDTO - */ - 'city'?: string; - /** - * - * @type {string} - * @memberof IpHistoryOutputDTO - */ - 'latitude'?: string; - /** - * - * @type {string} - * @memberof IpHistoryOutputDTO - */ - 'longitude'?: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof IpHistoryOutputDTO + */ + createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof IpHistoryOutputDTO + */ + ip: string; + /** + * + * @type {string} + * @memberof IpHistoryOutputDTO + */ + country?: string; + /** + * + * @type {string} + * @memberof IpHistoryOutputDTO + */ + city?: string; + /** + * + * @type {string} + * @memberof IpHistoryOutputDTO + */ + latitude?: string; + /** + * + * @type {string} + * @memberof IpHistoryOutputDTO + */ + longitude?: string; } /** - * + * * @export * @interface ItemCreateDTO */ export interface ItemCreateDTO { - /** - * - * @type {string} - * @memberof ItemCreateDTO - */ - 'name': string; - /** - * - * @type {string} - * @memberof ItemCreateDTO - */ - 'code': string; - /** - * - * @type {string} - * @memberof ItemCreateDTO - */ - 'description'?: string; - /** - * - * @type {string} - * @memberof ItemCreateDTO - */ - 'icon'?: string; - /** - * - * @type {string} - * @memberof ItemCreateDTO - */ - 'gameserverId': string; + /** + * + * @type {string} + * @memberof ItemCreateDTO + */ + name: string; + /** + * + * @type {string} + * @memberof ItemCreateDTO + */ + code: string; + /** + * + * @type {string} + * @memberof ItemCreateDTO + */ + description?: string; + /** + * + * @type {string} + * @memberof ItemCreateDTO + */ + icon?: string; + /** + * + * @type {string} + * @memberof ItemCreateDTO + */ + gameserverId: string; } /** - * + * * @export * @interface ItemOutputArrayDTOAPI */ export interface ItemOutputArrayDTOAPI { - /** - * - * @type {Array} - * @memberof ItemOutputArrayDTOAPI - */ - 'data': Array; - /** - * - * @type {MetadataOutput} - * @memberof ItemOutputArrayDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {Array} + * @memberof ItemOutputArrayDTOAPI + */ + data: Array; + /** + * + * @type {MetadataOutput} + * @memberof ItemOutputArrayDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface ItemOutputDTOAPI */ export interface ItemOutputDTOAPI { - /** - * - * @type {ItemsOutputDTO} - * @memberof ItemOutputDTOAPI - */ - 'data': ItemsOutputDTO; - /** - * - * @type {MetadataOutput} - * @memberof ItemOutputDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {ItemsOutputDTO} + * @memberof ItemOutputDTOAPI + */ + data: ItemsOutputDTO; + /** + * + * @type {MetadataOutput} + * @memberof ItemOutputDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface ItemSearchInputAllowedFilters */ export interface ItemSearchInputAllowedFilters { - /** - * - * @type {Array} - * @memberof ItemSearchInputAllowedFilters - */ - 'name'?: Array; - /** - * - * @type {Array} - * @memberof ItemSearchInputAllowedFilters - */ - 'code'?: Array; - /** - * - * @type {Array} - * @memberof ItemSearchInputAllowedFilters - */ - 'gameserverId'?: Array; - /** - * - * @type {Array} - * @memberof ItemSearchInputAllowedFilters - */ - 'id'?: Array; + /** + * + * @type {Array} + * @memberof ItemSearchInputAllowedFilters + */ + name?: Array; + /** + * + * @type {Array} + * @memberof ItemSearchInputAllowedFilters + */ + code?: Array; + /** + * + * @type {Array} + * @memberof ItemSearchInputAllowedFilters + */ + gameserverId?: Array; + /** + * + * @type {Array} + * @memberof ItemSearchInputAllowedFilters + */ + id?: Array; } /** - * + * * @export * @interface ItemSearchInputDTO */ export interface ItemSearchInputDTO { - /** - * - * @type {ItemSearchInputAllowedFilters} - * @memberof ItemSearchInputDTO - */ - 'filters'?: ItemSearchInputAllowedFilters; - /** - * - * @type {ItemSearchInputAllowedFilters} - * @memberof ItemSearchInputDTO - */ - 'search'?: ItemSearchInputAllowedFilters; - /** - * - * @type {any} - * @memberof ItemSearchInputDTO - */ - 'greaterThan'?: any; - /** - * - * @type {any} - * @memberof ItemSearchInputDTO - */ - 'lessThan'?: any; - /** - * - * @type {number} - * @memberof ItemSearchInputDTO - */ - 'page'?: number; - /** - * - * @type {number} - * @memberof ItemSearchInputDTO - */ - 'limit'?: number; - /** - * - * @type {string} - * @memberof ItemSearchInputDTO - */ - 'sortBy'?: string; - /** - * - * @type {string} - * @memberof ItemSearchInputDTO - */ - 'sortDirection'?: ItemSearchInputDTOSortDirectionEnum; - /** - * - * @type {Array} - * @memberof ItemSearchInputDTO - */ - 'extend'?: Array; + /** + * + * @type {ItemSearchInputAllowedFilters} + * @memberof ItemSearchInputDTO + */ + filters?: ItemSearchInputAllowedFilters; + /** + * + * @type {ItemSearchInputAllowedFilters} + * @memberof ItemSearchInputDTO + */ + search?: ItemSearchInputAllowedFilters; + /** + * + * @type {any} + * @memberof ItemSearchInputDTO + */ + greaterThan?: any; + /** + * + * @type {any} + * @memberof ItemSearchInputDTO + */ + lessThan?: any; + /** + * + * @type {number} + * @memberof ItemSearchInputDTO + */ + page?: number; + /** + * + * @type {number} + * @memberof ItemSearchInputDTO + */ + limit?: number; + /** + * + * @type {string} + * @memberof ItemSearchInputDTO + */ + sortBy?: string; + /** + * + * @type {string} + * @memberof ItemSearchInputDTO + */ + sortDirection?: ItemSearchInputDTOSortDirectionEnum; + /** + * + * @type {Array} + * @memberof ItemSearchInputDTO + */ + extend?: Array; } export const ItemSearchInputDTOSortDirectionEnum = { - Asc: 'asc', - Desc: 'desc' + Asc: 'asc', + Desc: 'desc', } as const; -export type ItemSearchInputDTOSortDirectionEnum = typeof ItemSearchInputDTOSortDirectionEnum[keyof typeof ItemSearchInputDTOSortDirectionEnum]; +export type ItemSearchInputDTOSortDirectionEnum = + (typeof ItemSearchInputDTOSortDirectionEnum)[keyof typeof ItemSearchInputDTOSortDirectionEnum]; /** - * + * * @export * @interface ItemUpdateDTO */ export interface ItemUpdateDTO { - /** - * - * @type {string} - * @memberof ItemUpdateDTO - */ - 'name'?: string; - /** - * - * @type {string} - * @memberof ItemUpdateDTO - */ - 'code'?: string; - /** - * - * @type {string} - * @memberof ItemUpdateDTO - */ - 'description'?: string; - /** - * - * @type {string} - * @memberof ItemUpdateDTO - */ - 'icon'?: string; + /** + * + * @type {string} + * @memberof ItemUpdateDTO + */ + name?: string; + /** + * + * @type {string} + * @memberof ItemUpdateDTO + */ + code?: string; + /** + * + * @type {string} + * @memberof ItemUpdateDTO + */ + description?: string; + /** + * + * @type {string} + * @memberof ItemUpdateDTO + */ + icon?: string; } /** - * + * * @export * @interface ItemsOutputDTO */ export interface ItemsOutputDTO { - /** - * - * @type {string} - * @memberof ItemsOutputDTO - */ - 'name': string; - /** - * - * @type {string} - * @memberof ItemsOutputDTO - */ - 'code': string; - /** - * - * @type {string} - * @memberof ItemsOutputDTO - */ - 'description'?: string; - /** - * - * @type {string} - * @memberof ItemsOutputDTO - */ - 'icon'?: string; - /** - * - * @type {string} - * @memberof ItemsOutputDTO - */ - 'gameserverId': string; - /** - * - * @type {string} - * @memberof ItemsOutputDTO - */ - 'id': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof ItemsOutputDTO - */ - 'createdAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof ItemsOutputDTO - */ - 'updatedAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof ItemsOutputDTO + */ + name: string; + /** + * + * @type {string} + * @memberof ItemsOutputDTO + */ + code: string; + /** + * + * @type {string} + * @memberof ItemsOutputDTO + */ + description?: string; + /** + * + * @type {string} + * @memberof ItemsOutputDTO + */ + icon?: string; + /** + * + * @type {string} + * @memberof ItemsOutputDTO + */ + gameserverId: string; + /** + * + * @type {string} + * @memberof ItemsOutputDTO + */ + id: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof ItemsOutputDTO + */ + createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof ItemsOutputDTO + */ + updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface KickPlayerInputDTO */ export interface KickPlayerInputDTO { - /** - * - * @type {string} - * @memberof KickPlayerInputDTO - */ - 'reason': string; + /** + * + * @type {string} + * @memberof KickPlayerInputDTO + */ + reason: string; } /** - * + * * @export * @interface LatencyInputDTO */ export interface LatencyInputDTO { - /** - * - * @type {string} - * @memberof LatencyInputDTO - */ - 'gameServerId': string; - /** - * - * @type {StatsControllerGetPingStatsStartDateParameter} - * @memberof LatencyInputDTO - */ - 'startDate'?: StatsControllerGetPingStatsStartDateParameter; - /** - * - * @type {StatsControllerGetPingStatsStartDateParameter} - * @memberof LatencyInputDTO - */ - 'endDate'?: StatsControllerGetPingStatsStartDateParameter; + /** + * + * @type {string} + * @memberof LatencyInputDTO + */ + gameServerId: string; + /** + * + * @type {StatsControllerGetPingStatsStartDateParameter} + * @memberof LatencyInputDTO + */ + startDate?: StatsControllerGetPingStatsStartDateParameter; + /** + * + * @type {StatsControllerGetPingStatsStartDateParameter} + * @memberof LatencyInputDTO + */ + endDate?: StatsControllerGetPingStatsStartDateParameter; } /** - * + * * @export * @interface LinkPlayerUnauthedInputDTO */ export interface LinkPlayerUnauthedInputDTO { - /** - * - * @type {string} - * @memberof LinkPlayerUnauthedInputDTO - */ - 'email': string; - /** - * - * @type {string} - * @memberof LinkPlayerUnauthedInputDTO - */ - 'code': string; + /** + * + * @type {string} + * @memberof LinkPlayerUnauthedInputDTO + */ + email: string; + /** + * + * @type {string} + * @memberof LinkPlayerUnauthedInputDTO + */ + code: string; } /** - * + * * @export * @interface LoginDTO */ export interface LoginDTO { - /** - * - * @type {string} - * @memberof LoginDTO - */ - 'username': string; - /** - * - * @type {string} - * @memberof LoginDTO - */ - 'password': string; + /** + * + * @type {string} + * @memberof LoginDTO + */ + username: string; + /** + * + * @type {string} + * @memberof LoginDTO + */ + password: string; } /** - * + * * @export * @interface LoginOutputDTO */ export interface LoginOutputDTO { - /** - * - * @type {string} - * @memberof LoginOutputDTO - */ - 'token': string; + /** + * + * @type {string} + * @memberof LoginOutputDTO + */ + token: string; } /** - * + * * @export * @interface LoginOutputDTOAPI */ export interface LoginOutputDTOAPI { - /** - * - * @type {LoginOutputDTO} - * @memberof LoginOutputDTOAPI - */ - 'data': LoginOutputDTO; - /** - * - * @type {MetadataOutput} - * @memberof LoginOutputDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {LoginOutputDTO} + * @memberof LoginOutputDTOAPI + */ + data: LoginOutputDTO; + /** + * + * @type {MetadataOutput} + * @memberof LoginOutputDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface MeOutoutDTOAPI */ export interface MeOutoutDTOAPI { - /** - * - * @type {MeOutputDTO} - * @memberof MeOutoutDTOAPI - */ - 'data': MeOutputDTO; - /** - * - * @type {MetadataOutput} - * @memberof MeOutoutDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {MeOutputDTO} + * @memberof MeOutoutDTOAPI + */ + data: MeOutputDTO; + /** + * + * @type {MetadataOutput} + * @memberof MeOutoutDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface MeOutputDTO */ export interface MeOutputDTO { - /** - * - * @type {UserOutputWithRolesDTO} - * @memberof MeOutputDTO - */ - 'user': UserOutputWithRolesDTO; - /** - * - * @type {Array} - * @memberof MeOutputDTO - */ - 'domains': Array; - /** - * - * @type {string} - * @memberof MeOutputDTO - */ - 'domain': string; - /** - * - * @type {PlayerOutputWithRolesDTO} - * @memberof MeOutputDTO - */ - 'player'?: PlayerOutputWithRolesDTO; - /** - * - * @type {Array} - * @memberof MeOutputDTO - */ - 'pogs': Array; + /** + * + * @type {UserOutputWithRolesDTO} + * @memberof MeOutputDTO + */ + user: UserOutputWithRolesDTO; + /** + * + * @type {Array} + * @memberof MeOutputDTO + */ + domains: Array; + /** + * + * @type {string} + * @memberof MeOutputDTO + */ + domain: string; + /** + * + * @type {PlayerOutputWithRolesDTO} + * @memberof MeOutputDTO + */ + player?: PlayerOutputWithRolesDTO; + /** + * + * @type {Array} + * @memberof MeOutputDTO + */ + pogs: Array; } /** - * + * * @export * @interface MessageSendInputDTO */ export interface MessageSendInputDTO { - /** - * - * @type {string} - * @memberof MessageSendInputDTO - */ - 'message': string; - /** - * - * @type {IMessageOptsDTO} - * @memberof MessageSendInputDTO - */ - 'opts'?: IMessageOptsDTO; + /** + * + * @type {string} + * @memberof MessageSendInputDTO + */ + message: string; + /** + * + * @type {IMessageOptsDTO} + * @memberof MessageSendInputDTO + */ + opts?: IMessageOptsDTO; } /** - * + * * @export * @interface MetadataOutput */ export interface MetadataOutput { - /** - * - * @type {MetadataOutputServerTime} - * @memberof MetadataOutput - */ - 'serverTime': MetadataOutputServerTime; - /** - * - * @type {ErrorOutput} - * @memberof MetadataOutput - */ - 'error': ErrorOutput; - /** - * - * @type {number} - * @memberof MetadataOutput - */ - 'page'?: number; - /** - * - * @type {number} - * @memberof MetadataOutput - */ - 'limit'?: number; - /** - * - * @type {number} - * @memberof MetadataOutput - */ - 'total'?: number; + /** + * + * @type {MetadataOutputServerTime} + * @memberof MetadataOutput + */ + serverTime: MetadataOutputServerTime; + /** + * + * @type {ErrorOutput} + * @memberof MetadataOutput + */ + error: ErrorOutput; + /** + * + * @type {number} + * @memberof MetadataOutput + */ + page?: number; + /** + * + * @type {number} + * @memberof MetadataOutput + */ + limit?: number; + /** + * + * @type {number} + * @memberof MetadataOutput + */ + total?: number; } /** * @type MetadataOutputServerTime @@ -5165,893 +5239,896 @@ export interface MetadataOutput { export type MetadataOutputServerTime = string; /** - * + * * @export * @interface MockConnectionInfo */ export interface MockConnectionInfo { - /** - * - * @type {string} - * @memberof MockConnectionInfo - */ - 'host': string; - /** - * - * @type {string} - * @memberof MockConnectionInfo - */ - 'name': string; + /** + * + * @type {string} + * @memberof MockConnectionInfo + */ + host: string; + /** + * + * @type {string} + * @memberof MockConnectionInfo + */ + name: string; } /** - * + * * @export * @interface ModuleCreateAPIDTO */ export interface ModuleCreateAPIDTO { - /** - * - * @type {string} - * @memberof ModuleCreateAPIDTO - */ - 'name': string; - /** - * - * @type {string} - * @memberof ModuleCreateAPIDTO - */ - 'description'?: string; - /** - * - * @type {string} - * @memberof ModuleCreateAPIDTO - */ - 'configSchema'?: string; - /** - * - * @type {string} - * @memberof ModuleCreateAPIDTO - */ - 'uiSchema'?: string; - /** - * - * @type {Array} - * @memberof ModuleCreateAPIDTO - */ - 'permissions'?: Array; - /** - * - * @type {Array} - * @memberof ModuleCreateAPIDTO - */ - 'functions'?: Array; - /** - * - * @type {Array} - * @memberof ModuleCreateAPIDTO - */ - 'commands'?: Array; - /** - * - * @type {Array} - * @memberof ModuleCreateAPIDTO - */ - 'hooks'?: Array; - /** - * - * @type {Array} - * @memberof ModuleCreateAPIDTO - */ - 'cronJobs'?: Array; + /** + * + * @type {string} + * @memberof ModuleCreateAPIDTO + */ + name: string; + /** + * + * @type {string} + * @memberof ModuleCreateAPIDTO + */ + description?: string; + /** + * + * @type {string} + * @memberof ModuleCreateAPIDTO + */ + configSchema?: string; + /** + * + * @type {string} + * @memberof ModuleCreateAPIDTO + */ + uiSchema?: string; + /** + * + * @type {Array} + * @memberof ModuleCreateAPIDTO + */ + permissions?: Array; + /** + * + * @type {Array} + * @memberof ModuleCreateAPIDTO + */ + functions?: Array; + /** + * + * @type {Array} + * @memberof ModuleCreateAPIDTO + */ + commands?: Array; + /** + * + * @type {Array} + * @memberof ModuleCreateAPIDTO + */ + hooks?: Array; + /** + * + * @type {Array} + * @memberof ModuleCreateAPIDTO + */ + cronJobs?: Array; } /** - * + * * @export * @interface ModuleCreateDTO */ export interface ModuleCreateDTO { - /** - * - * @type {string} - * @memberof ModuleCreateDTO - */ - 'name': string; - /** - * - * @type {string} - * @memberof ModuleCreateDTO - */ - 'builtin'?: string; + /** + * + * @type {string} + * @memberof ModuleCreateDTO + */ + name: string; + /** + * + * @type {string} + * @memberof ModuleCreateDTO + */ + builtin?: string; } /** - * + * * @export * @interface ModuleCreateInternalDTO */ export interface ModuleCreateInternalDTO { - /** - * - * @type {string} - * @memberof ModuleCreateInternalDTO - */ - 'builtin'?: string; - /** - * - * @type {string} - * @memberof ModuleCreateInternalDTO - */ - 'name': string; - /** - * - * @type {string} - * @memberof ModuleCreateInternalDTO - */ - 'description'?: string; - /** - * - * @type {string} - * @memberof ModuleCreateInternalDTO - */ - 'configSchema'?: string; - /** - * - * @type {string} - * @memberof ModuleCreateInternalDTO - */ - 'uiSchema'?: string; - /** - * - * @type {Array} - * @memberof ModuleCreateInternalDTO - */ - 'permissions'?: Array; - /** - * - * @type {Array} - * @memberof ModuleCreateInternalDTO - */ - 'functions'?: Array; - /** - * - * @type {Array} - * @memberof ModuleCreateInternalDTO - */ - 'commands'?: Array; - /** - * - * @type {Array} - * @memberof ModuleCreateInternalDTO - */ - 'hooks'?: Array; - /** - * - * @type {Array} - * @memberof ModuleCreateInternalDTO - */ - 'cronJobs'?: Array; + /** + * + * @type {string} + * @memberof ModuleCreateInternalDTO + */ + builtin?: string; + /** + * + * @type {string} + * @memberof ModuleCreateInternalDTO + */ + name: string; + /** + * + * @type {string} + * @memberof ModuleCreateInternalDTO + */ + description?: string; + /** + * + * @type {string} + * @memberof ModuleCreateInternalDTO + */ + configSchema?: string; + /** + * + * @type {string} + * @memberof ModuleCreateInternalDTO + */ + uiSchema?: string; + /** + * + * @type {Array} + * @memberof ModuleCreateInternalDTO + */ + permissions?: Array; + /** + * + * @type {Array} + * @memberof ModuleCreateInternalDTO + */ + functions?: Array; + /** + * + * @type {Array} + * @memberof ModuleCreateInternalDTO + */ + commands?: Array; + /** + * + * @type {Array} + * @memberof ModuleCreateInternalDTO + */ + hooks?: Array; + /** + * + * @type {Array} + * @memberof ModuleCreateInternalDTO + */ + cronJobs?: Array; } /** - * + * * @export * @interface ModuleExportDTOAPI */ export interface ModuleExportDTOAPI { - /** - * - * @type {BuiltinModule} - * @memberof ModuleExportDTOAPI - */ - 'data': BuiltinModule; - /** - * - * @type {MetadataOutput} - * @memberof ModuleExportDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {BuiltinModule} + * @memberof ModuleExportDTOAPI + */ + data: BuiltinModule; + /** + * + * @type {MetadataOutput} + * @memberof ModuleExportDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface ModuleExportInputDTO */ export interface ModuleExportInputDTO { - /** - * - * @type {string} - * @memberof ModuleExportInputDTO - */ - 'versionId': string; + /** + * + * @type {string} + * @memberof ModuleExportInputDTO + */ + versionId: string; } /** - * + * * @export * @interface ModuleInstallationOutputArrayDTOAPI */ export interface ModuleInstallationOutputArrayDTOAPI { - /** - * - * @type {Array} - * @memberof ModuleInstallationOutputArrayDTOAPI - */ - 'data': Array; - /** - * - * @type {MetadataOutput} - * @memberof ModuleInstallationOutputArrayDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {Array} + * @memberof ModuleInstallationOutputArrayDTOAPI + */ + data: Array; + /** + * + * @type {MetadataOutput} + * @memberof ModuleInstallationOutputArrayDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface ModuleInstallationOutputDTO */ export interface ModuleInstallationOutputDTO { - /** - * - * @type {string} - * @memberof ModuleInstallationOutputDTO - */ - 'gameserverId': string; - /** - * - * @type {string} - * @memberof ModuleInstallationOutputDTO - */ - 'versionId': string; - /** - * - * @type {string} - * @memberof ModuleInstallationOutputDTO - */ - 'moduleId': string; - /** - * - * @type {ModuleVersionOutputDTO} - * @memberof ModuleInstallationOutputDTO - */ - 'version': ModuleVersionOutputDTO; - /** - * - * @type {ModuleOutputDTO} - * @memberof ModuleInstallationOutputDTO - */ - 'module': ModuleOutputDTO; - /** - * - * @type {object} - * @memberof ModuleInstallationOutputDTO - */ - 'userConfig': object; - /** - * - * @type {object} - * @memberof ModuleInstallationOutputDTO - */ - 'systemConfig': object; - /** - * - * @type {string} - * @memberof ModuleInstallationOutputDTO - */ - 'id': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof ModuleInstallationOutputDTO - */ - 'createdAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof ModuleInstallationOutputDTO - */ - 'updatedAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof ModuleInstallationOutputDTO + */ + gameserverId: string; + /** + * + * @type {string} + * @memberof ModuleInstallationOutputDTO + */ + versionId: string; + /** + * + * @type {string} + * @memberof ModuleInstallationOutputDTO + */ + moduleId: string; + /** + * + * @type {ModuleVersionOutputDTO} + * @memberof ModuleInstallationOutputDTO + */ + version: ModuleVersionOutputDTO; + /** + * + * @type {ModuleOutputDTO} + * @memberof ModuleInstallationOutputDTO + */ + module: ModuleOutputDTO; + /** + * + * @type {object} + * @memberof ModuleInstallationOutputDTO + */ + userConfig: object; + /** + * + * @type {object} + * @memberof ModuleInstallationOutputDTO + */ + systemConfig: object; + /** + * + * @type {string} + * @memberof ModuleInstallationOutputDTO + */ + id: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof ModuleInstallationOutputDTO + */ + createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof ModuleInstallationOutputDTO + */ + updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface ModuleInstallationOutputDTOAPI */ export interface ModuleInstallationOutputDTOAPI { - /** - * - * @type {ModuleInstallationOutputDTO} - * @memberof ModuleInstallationOutputDTOAPI - */ - 'data': ModuleInstallationOutputDTO; - /** - * - * @type {MetadataOutput} - * @memberof ModuleInstallationOutputDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {ModuleInstallationOutputDTO} + * @memberof ModuleInstallationOutputDTOAPI + */ + data: ModuleInstallationOutputDTO; + /** + * + * @type {MetadataOutput} + * @memberof ModuleInstallationOutputDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface ModuleInstallationSearchInputAllowedFilters */ export interface ModuleInstallationSearchInputAllowedFilters { - /** - * - * @type {Array} - * @memberof ModuleInstallationSearchInputAllowedFilters - */ - 'versionId'?: Array; - /** - * - * @type {Array} - * @memberof ModuleInstallationSearchInputAllowedFilters - */ - 'moduleId'?: Array; - /** - * - * @type {Array} - * @memberof ModuleInstallationSearchInputAllowedFilters - */ - 'gameServerId'?: Array; - /** - * - * @type {Array} - * @memberof ModuleInstallationSearchInputAllowedFilters - */ - 'id'?: Array; + /** + * + * @type {Array} + * @memberof ModuleInstallationSearchInputAllowedFilters + */ + versionId?: Array; + /** + * + * @type {Array} + * @memberof ModuleInstallationSearchInputAllowedFilters + */ + moduleId?: Array; + /** + * + * @type {Array} + * @memberof ModuleInstallationSearchInputAllowedFilters + */ + gameServerId?: Array; + /** + * + * @type {Array} + * @memberof ModuleInstallationSearchInputAllowedFilters + */ + id?: Array; } /** - * + * * @export * @interface ModuleInstallationSearchInputDTO */ export interface ModuleInstallationSearchInputDTO { - /** - * - * @type {ModuleInstallationSearchInputAllowedFilters} - * @memberof ModuleInstallationSearchInputDTO - */ - 'filters'?: ModuleInstallationSearchInputAllowedFilters; - /** - * - * @type {ModuleInstallationSearchInputAllowedFilters} - * @memberof ModuleInstallationSearchInputDTO - */ - 'search'?: ModuleInstallationSearchInputAllowedFilters; - /** - * - * @type {any} - * @memberof ModuleInstallationSearchInputDTO - */ - 'greaterThan'?: any; - /** - * - * @type {any} - * @memberof ModuleInstallationSearchInputDTO - */ - 'lessThan'?: any; - /** - * - * @type {number} - * @memberof ModuleInstallationSearchInputDTO - */ - 'page'?: number; - /** - * - * @type {number} - * @memberof ModuleInstallationSearchInputDTO - */ - 'limit'?: number; - /** - * - * @type {string} - * @memberof ModuleInstallationSearchInputDTO - */ - 'sortBy'?: string; - /** - * - * @type {string} - * @memberof ModuleInstallationSearchInputDTO - */ - 'sortDirection'?: ModuleInstallationSearchInputDTOSortDirectionEnum; - /** - * - * @type {Array} - * @memberof ModuleInstallationSearchInputDTO - */ - 'extend'?: Array; + /** + * + * @type {ModuleInstallationSearchInputAllowedFilters} + * @memberof ModuleInstallationSearchInputDTO + */ + filters?: ModuleInstallationSearchInputAllowedFilters; + /** + * + * @type {ModuleInstallationSearchInputAllowedFilters} + * @memberof ModuleInstallationSearchInputDTO + */ + search?: ModuleInstallationSearchInputAllowedFilters; + /** + * + * @type {any} + * @memberof ModuleInstallationSearchInputDTO + */ + greaterThan?: any; + /** + * + * @type {any} + * @memberof ModuleInstallationSearchInputDTO + */ + lessThan?: any; + /** + * + * @type {number} + * @memberof ModuleInstallationSearchInputDTO + */ + page?: number; + /** + * + * @type {number} + * @memberof ModuleInstallationSearchInputDTO + */ + limit?: number; + /** + * + * @type {string} + * @memberof ModuleInstallationSearchInputDTO + */ + sortBy?: string; + /** + * + * @type {string} + * @memberof ModuleInstallationSearchInputDTO + */ + sortDirection?: ModuleInstallationSearchInputDTOSortDirectionEnum; + /** + * + * @type {Array} + * @memberof ModuleInstallationSearchInputDTO + */ + extend?: Array; } export const ModuleInstallationSearchInputDTOSortDirectionEnum = { - Asc: 'asc', - Desc: 'desc' + Asc: 'asc', + Desc: 'desc', } as const; -export type ModuleInstallationSearchInputDTOSortDirectionEnum = typeof ModuleInstallationSearchInputDTOSortDirectionEnum[keyof typeof ModuleInstallationSearchInputDTOSortDirectionEnum]; +export type ModuleInstallationSearchInputDTOSortDirectionEnum = + (typeof ModuleInstallationSearchInputDTOSortDirectionEnum)[keyof typeof ModuleInstallationSearchInputDTOSortDirectionEnum]; /** - * + * * @export * @interface ModuleOutputArrayDTOAPI */ export interface ModuleOutputArrayDTOAPI { - /** - * - * @type {Array} - * @memberof ModuleOutputArrayDTOAPI - */ - 'data': Array; - /** - * - * @type {MetadataOutput} - * @memberof ModuleOutputArrayDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {Array} + * @memberof ModuleOutputArrayDTOAPI + */ + data: Array; + /** + * + * @type {MetadataOutput} + * @memberof ModuleOutputArrayDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface ModuleOutputDTO */ export interface ModuleOutputDTO { - /** - * - * @type {string} - * @memberof ModuleOutputDTO - */ - 'name': string; - /** - * - * @type {string} - * @memberof ModuleOutputDTO - */ - 'builtin'?: string; - /** - * - * @type {ModuleVersionOutputDTO} - * @memberof ModuleOutputDTO - */ - 'latestVersion': ModuleVersionOutputDTO; - /** - * - * @type {string} - * @memberof ModuleOutputDTO - */ - 'id': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof ModuleOutputDTO - */ - 'createdAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof ModuleOutputDTO - */ - 'updatedAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof ModuleOutputDTO + */ + name: string; + /** + * + * @type {string} + * @memberof ModuleOutputDTO + */ + builtin?: string; + /** + * + * @type {ModuleVersionOutputDTO} + * @memberof ModuleOutputDTO + */ + latestVersion: ModuleVersionOutputDTO; + /** + * + * @type {string} + * @memberof ModuleOutputDTO + */ + id: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof ModuleOutputDTO + */ + createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof ModuleOutputDTO + */ + updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface ModuleOutputDTOAPI */ export interface ModuleOutputDTOAPI { - /** - * - * @type {ModuleOutputDTO} - * @memberof ModuleOutputDTOAPI - */ - 'data': ModuleOutputDTO; - /** - * - * @type {MetadataOutput} - * @memberof ModuleOutputDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {ModuleOutputDTO} + * @memberof ModuleOutputDTOAPI + */ + data: ModuleOutputDTO; + /** + * + * @type {MetadataOutput} + * @memberof ModuleOutputDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface ModuleSearchInputAllowedFilters */ export interface ModuleSearchInputAllowedFilters { - /** - * - * @type {Array} - * @memberof ModuleSearchInputAllowedFilters - */ - 'name'?: Array; - /** - * - * @type {Array} - * @memberof ModuleSearchInputAllowedFilters - */ - 'builtin'?: Array; - /** - * - * @type {Array} - * @memberof ModuleSearchInputAllowedFilters - */ - 'id'?: Array; + /** + * + * @type {Array} + * @memberof ModuleSearchInputAllowedFilters + */ + name?: Array; + /** + * + * @type {Array} + * @memberof ModuleSearchInputAllowedFilters + */ + builtin?: Array; + /** + * + * @type {Array} + * @memberof ModuleSearchInputAllowedFilters + */ + id?: Array; } /** - * + * * @export * @interface ModuleSearchInputDTO */ export interface ModuleSearchInputDTO { - /** - * - * @type {ModuleSearchInputAllowedFilters} - * @memberof ModuleSearchInputDTO - */ - 'filters'?: ModuleSearchInputAllowedFilters; - /** - * - * @type {ModuleSearchInputAllowedFilters} - * @memberof ModuleSearchInputDTO - */ - 'search'?: ModuleSearchInputAllowedFilters; - /** - * - * @type {RangeFilterCreatedAndUpdatedAt} - * @memberof ModuleSearchInputDTO - */ - 'greaterThan'?: RangeFilterCreatedAndUpdatedAt; - /** - * - * @type {RangeFilterCreatedAndUpdatedAt} - * @memberof ModuleSearchInputDTO - */ - 'lessThan'?: RangeFilterCreatedAndUpdatedAt; - /** - * - * @type {number} - * @memberof ModuleSearchInputDTO - */ - 'page'?: number; - /** - * - * @type {number} - * @memberof ModuleSearchInputDTO - */ - 'limit'?: number; - /** - * - * @type {string} - * @memberof ModuleSearchInputDTO - */ - 'sortBy'?: string; - /** - * - * @type {string} - * @memberof ModuleSearchInputDTO - */ - 'sortDirection'?: ModuleSearchInputDTOSortDirectionEnum; - /** - * - * @type {Array} - * @memberof ModuleSearchInputDTO - */ - 'extend'?: Array; + /** + * + * @type {ModuleSearchInputAllowedFilters} + * @memberof ModuleSearchInputDTO + */ + filters?: ModuleSearchInputAllowedFilters; + /** + * + * @type {ModuleSearchInputAllowedFilters} + * @memberof ModuleSearchInputDTO + */ + search?: ModuleSearchInputAllowedFilters; + /** + * + * @type {RangeFilterCreatedAndUpdatedAt} + * @memberof ModuleSearchInputDTO + */ + greaterThan?: RangeFilterCreatedAndUpdatedAt; + /** + * + * @type {RangeFilterCreatedAndUpdatedAt} + * @memberof ModuleSearchInputDTO + */ + lessThan?: RangeFilterCreatedAndUpdatedAt; + /** + * + * @type {number} + * @memberof ModuleSearchInputDTO + */ + page?: number; + /** + * + * @type {number} + * @memberof ModuleSearchInputDTO + */ + limit?: number; + /** + * + * @type {string} + * @memberof ModuleSearchInputDTO + */ + sortBy?: string; + /** + * + * @type {string} + * @memberof ModuleSearchInputDTO + */ + sortDirection?: ModuleSearchInputDTOSortDirectionEnum; + /** + * + * @type {Array} + * @memberof ModuleSearchInputDTO + */ + extend?: Array; } export const ModuleSearchInputDTOSortDirectionEnum = { - Asc: 'asc', - Desc: 'desc' + Asc: 'asc', + Desc: 'desc', } as const; -export type ModuleSearchInputDTOSortDirectionEnum = typeof ModuleSearchInputDTOSortDirectionEnum[keyof typeof ModuleSearchInputDTOSortDirectionEnum]; +export type ModuleSearchInputDTOSortDirectionEnum = + (typeof ModuleSearchInputDTOSortDirectionEnum)[keyof typeof ModuleSearchInputDTOSortDirectionEnum]; /** - * + * * @export * @interface ModuleUpdateDTO */ export interface ModuleUpdateDTO { - /** - * - * @type {string} - * @memberof ModuleUpdateDTO - */ - 'name'?: string; + /** + * + * @type {string} + * @memberof ModuleUpdateDTO + */ + name?: string; } /** - * + * * @export * @interface ModuleVersionCreateAPIDTO */ export interface ModuleVersionCreateAPIDTO { - /** - * - * @type {string} - * @memberof ModuleVersionCreateAPIDTO - */ - 'tag': string; - /** - * - * @type {string} - * @memberof ModuleVersionCreateAPIDTO - */ - 'moduleId': string; + /** + * + * @type {string} + * @memberof ModuleVersionCreateAPIDTO + */ + tag: string; + /** + * + * @type {string} + * @memberof ModuleVersionCreateAPIDTO + */ + moduleId: string; } /** - * + * * @export * @interface ModuleVersionOutputArrayDTOAPI */ export interface ModuleVersionOutputArrayDTOAPI { - /** - * - * @type {Array} - * @memberof ModuleVersionOutputArrayDTOAPI - */ - 'data': Array; - /** - * - * @type {MetadataOutput} - * @memberof ModuleVersionOutputArrayDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {Array} + * @memberof ModuleVersionOutputArrayDTOAPI + */ + data: Array; + /** + * + * @type {MetadataOutput} + * @memberof ModuleVersionOutputArrayDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface ModuleVersionOutputDTO */ export interface ModuleVersionOutputDTO { - /** - * - * @type {string} - * @memberof ModuleVersionOutputDTO - */ - 'tag': string; - /** - * - * @type {string} - * @memberof ModuleVersionOutputDTO - */ - 'description': string; - /** - * - * @type {string} - * @memberof ModuleVersionOutputDTO - */ - 'configSchema': string; - /** - * - * @type {string} - * @memberof ModuleVersionOutputDTO - */ - 'uiSchema': string; - /** - * - * @type {string} - * @memberof ModuleVersionOutputDTO - */ - 'systemConfigSchema': string; - /** - * - * @type {string} - * @memberof ModuleVersionOutputDTO - */ - 'moduleId': string; - /** - * - * @type {Array} - * @memberof ModuleVersionOutputDTO - */ - 'cronJobs': Array; - /** - * - * @type {Array} - * @memberof ModuleVersionOutputDTO - */ - 'hooks': Array; - /** - * - * @type {Array} - * @memberof ModuleVersionOutputDTO - */ - 'commands': Array; - /** - * - * @type {Array} - * @memberof ModuleVersionOutputDTO - */ - 'functions': Array; - /** - * - * @type {Array} - * @memberof ModuleVersionOutputDTO - */ - 'permissions': Array; - /** - * - * @type {string} - * @memberof ModuleVersionOutputDTO - */ - 'id': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof ModuleVersionOutputDTO - */ - 'createdAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof ModuleVersionOutputDTO - */ - 'updatedAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof ModuleVersionOutputDTO + */ + tag: string; + /** + * + * @type {string} + * @memberof ModuleVersionOutputDTO + */ + description: string; + /** + * + * @type {string} + * @memberof ModuleVersionOutputDTO + */ + configSchema: string; + /** + * + * @type {string} + * @memberof ModuleVersionOutputDTO + */ + uiSchema: string; + /** + * + * @type {string} + * @memberof ModuleVersionOutputDTO + */ + systemConfigSchema: string; + /** + * + * @type {string} + * @memberof ModuleVersionOutputDTO + */ + moduleId: string; + /** + * + * @type {Array} + * @memberof ModuleVersionOutputDTO + */ + cronJobs: Array; + /** + * + * @type {Array} + * @memberof ModuleVersionOutputDTO + */ + hooks: Array; + /** + * + * @type {Array} + * @memberof ModuleVersionOutputDTO + */ + commands: Array; + /** + * + * @type {Array} + * @memberof ModuleVersionOutputDTO + */ + functions: Array; + /** + * + * @type {Array} + * @memberof ModuleVersionOutputDTO + */ + permissions: Array; + /** + * + * @type {string} + * @memberof ModuleVersionOutputDTO + */ + id: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof ModuleVersionOutputDTO + */ + createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof ModuleVersionOutputDTO + */ + updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface ModuleVersionOutputDTOAPI */ export interface ModuleVersionOutputDTOAPI { - /** - * - * @type {ModuleVersionOutputDTO} - * @memberof ModuleVersionOutputDTOAPI - */ - 'data': ModuleVersionOutputDTO; - /** - * - * @type {MetadataOutput} - * @memberof ModuleVersionOutputDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {ModuleVersionOutputDTO} + * @memberof ModuleVersionOutputDTOAPI + */ + data: ModuleVersionOutputDTO; + /** + * + * @type {MetadataOutput} + * @memberof ModuleVersionOutputDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface ModuleVersionSearchInputAllowedFilters */ export interface ModuleVersionSearchInputAllowedFilters { - /** - * - * @type {Array} - * @memberof ModuleVersionSearchInputAllowedFilters - */ - 'version'?: Array; - /** - * - * @type {Array} - * @memberof ModuleVersionSearchInputAllowedFilters - */ - 'moduleId'?: Array; - /** - * - * @type {Array} - * @memberof ModuleVersionSearchInputAllowedFilters - */ - 'id'?: Array; + /** + * + * @type {Array} + * @memberof ModuleVersionSearchInputAllowedFilters + */ + version?: Array; + /** + * + * @type {Array} + * @memberof ModuleVersionSearchInputAllowedFilters + */ + moduleId?: Array; + /** + * + * @type {Array} + * @memberof ModuleVersionSearchInputAllowedFilters + */ + id?: Array; } /** - * + * * @export * @interface ModuleVersionSearchInputDTO */ export interface ModuleVersionSearchInputDTO { - /** - * - * @type {ModuleVersionSearchInputAllowedFilters} - * @memberof ModuleVersionSearchInputDTO - */ - 'filters'?: ModuleVersionSearchInputAllowedFilters; - /** - * - * @type {ModuleVersionSearchInputAllowedFilters} - * @memberof ModuleVersionSearchInputDTO - */ - 'search'?: ModuleVersionSearchInputAllowedFilters; - /** - * - * @type {RangeFilterCreatedAndUpdatedAt} - * @memberof ModuleVersionSearchInputDTO - */ - 'greaterThan'?: RangeFilterCreatedAndUpdatedAt; - /** - * - * @type {RangeFilterCreatedAndUpdatedAt} - * @memberof ModuleVersionSearchInputDTO - */ - 'lessThan'?: RangeFilterCreatedAndUpdatedAt; - /** - * - * @type {number} - * @memberof ModuleVersionSearchInputDTO - */ - 'page'?: number; - /** - * - * @type {number} - * @memberof ModuleVersionSearchInputDTO - */ - 'limit'?: number; - /** - * - * @type {string} - * @memberof ModuleVersionSearchInputDTO - */ - 'sortBy'?: string; - /** - * - * @type {string} - * @memberof ModuleVersionSearchInputDTO - */ - 'sortDirection'?: ModuleVersionSearchInputDTOSortDirectionEnum; - /** - * - * @type {Array} - * @memberof ModuleVersionSearchInputDTO - */ - 'extend'?: Array; + /** + * + * @type {ModuleVersionSearchInputAllowedFilters} + * @memberof ModuleVersionSearchInputDTO + */ + filters?: ModuleVersionSearchInputAllowedFilters; + /** + * + * @type {ModuleVersionSearchInputAllowedFilters} + * @memberof ModuleVersionSearchInputDTO + */ + search?: ModuleVersionSearchInputAllowedFilters; + /** + * + * @type {RangeFilterCreatedAndUpdatedAt} + * @memberof ModuleVersionSearchInputDTO + */ + greaterThan?: RangeFilterCreatedAndUpdatedAt; + /** + * + * @type {RangeFilterCreatedAndUpdatedAt} + * @memberof ModuleVersionSearchInputDTO + */ + lessThan?: RangeFilterCreatedAndUpdatedAt; + /** + * + * @type {number} + * @memberof ModuleVersionSearchInputDTO + */ + page?: number; + /** + * + * @type {number} + * @memberof ModuleVersionSearchInputDTO + */ + limit?: number; + /** + * + * @type {string} + * @memberof ModuleVersionSearchInputDTO + */ + sortBy?: string; + /** + * + * @type {string} + * @memberof ModuleVersionSearchInputDTO + */ + sortDirection?: ModuleVersionSearchInputDTOSortDirectionEnum; + /** + * + * @type {Array} + * @memberof ModuleVersionSearchInputDTO + */ + extend?: Array; } export const ModuleVersionSearchInputDTOSortDirectionEnum = { - Asc: 'asc', - Desc: 'desc' + Asc: 'asc', + Desc: 'desc', } as const; -export type ModuleVersionSearchInputDTOSortDirectionEnum = typeof ModuleVersionSearchInputDTOSortDirectionEnum[keyof typeof ModuleVersionSearchInputDTOSortDirectionEnum]; +export type ModuleVersionSearchInputDTOSortDirectionEnum = + (typeof ModuleVersionSearchInputDTOSortDirectionEnum)[keyof typeof ModuleVersionSearchInputDTOSortDirectionEnum]; /** - * + * * @export * @interface ModuleVersionUpdateDTO */ export interface ModuleVersionUpdateDTO { - /** - * - * @type {string} - * @memberof ModuleVersionUpdateDTO - */ - 'description'?: string; - /** - * - * @type {string} - * @memberof ModuleVersionUpdateDTO - */ - 'configSchema'?: string; - /** - * - * @type {string} - * @memberof ModuleVersionUpdateDTO - */ - 'uiSchema'?: string; - /** - * - * @type {Array} - * @memberof ModuleVersionUpdateDTO - */ - 'permissions'?: Array; + /** + * + * @type {string} + * @memberof ModuleVersionUpdateDTO + */ + description?: string; + /** + * + * @type {string} + * @memberof ModuleVersionUpdateDTO + */ + configSchema?: string; + /** + * + * @type {string} + * @memberof ModuleVersionUpdateDTO + */ + uiSchema?: string; + /** + * + * @type {Array} + * @memberof ModuleVersionUpdateDTO + */ + permissions?: Array; } /** - * + * * @export * @interface NOTDOMAINSCOPEDTakaroModelDTO */ export interface NOTDOMAINSCOPEDTakaroModelDTO { - /** - * - * @type {string} - * @memberof NOTDOMAINSCOPEDTakaroModelDTO - */ - 'id': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof NOTDOMAINSCOPEDTakaroModelDTO - */ - 'createdAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof NOTDOMAINSCOPEDTakaroModelDTO - */ - 'updatedAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof NOTDOMAINSCOPEDTakaroModelDTO + */ + id: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof NOTDOMAINSCOPEDTakaroModelDTO + */ + createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof NOTDOMAINSCOPEDTakaroModelDTO + */ + updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** * @type NOTDOMAINSCOPEDTakaroModelDTOCreatedAt @@ -6060,2888 +6137,2894 @@ export interface NOTDOMAINSCOPEDTakaroModelDTO { export type NOTDOMAINSCOPEDTakaroModelDTOCreatedAt = string; /** - * + * * @export * @interface OptionalPogStatsInputDTO */ export interface OptionalPogStatsInputDTO { - /** - * - * @type {string} - * @memberof OptionalPogStatsInputDTO - */ - 'gameServerId': string; - /** - * - * @type {string} - * @memberof OptionalPogStatsInputDTO - */ - 'playerId'?: string; - /** - * - * @type {StatsControllerGetPingStatsStartDateParameter} - * @memberof OptionalPogStatsInputDTO - */ - 'startDate'?: StatsControllerGetPingStatsStartDateParameter; - /** - * - * @type {StatsControllerGetPingStatsStartDateParameter} - * @memberof OptionalPogStatsInputDTO - */ - 'endDate'?: StatsControllerGetPingStatsStartDateParameter; + /** + * + * @type {string} + * @memberof OptionalPogStatsInputDTO + */ + gameServerId: string; + /** + * + * @type {string} + * @memberof OptionalPogStatsInputDTO + */ + playerId?: string; + /** + * + * @type {StatsControllerGetPingStatsStartDateParameter} + * @memberof OptionalPogStatsInputDTO + */ + startDate?: StatsControllerGetPingStatsStartDateParameter; + /** + * + * @type {StatsControllerGetPingStatsStartDateParameter} + * @memberof OptionalPogStatsInputDTO + */ + endDate?: StatsControllerGetPingStatsStartDateParameter; } /** - * + * * @export * @enum {string} */ export const PERMISSIONS = { - Root: 'ROOT', - ManageUsers: 'MANAGE_USERS', - ReadUsers: 'READ_USERS', - ManageRoles: 'MANAGE_ROLES', - ReadRoles: 'READ_ROLES', - ManageGameservers: 'MANAGE_GAMESERVERS', - ReadModules: 'READ_MODULES', - ManageModules: 'MANAGE_MODULES', - ReadPlayers: 'READ_PLAYERS', - ManagePlayers: 'MANAGE_PLAYERS', - ManageSettings: 'MANAGE_SETTINGS', - ReadSettings: 'READ_SETTINGS', - ReadVariables: 'READ_VARIABLES', - ManageVariables: 'MANAGE_VARIABLES', - ReadEvents: 'READ_EVENTS', - ManageEvents: 'MANAGE_EVENTS', - ReadItems: 'READ_ITEMS', - ManageItems: 'MANAGE_ITEMS', - ManageShopListings: 'MANAGE_SHOP_LISTINGS', - ManageShopOrders: 'MANAGE_SHOP_ORDERS' + Root: 'ROOT', + ManageUsers: 'MANAGE_USERS', + ReadUsers: 'READ_USERS', + ManageRoles: 'MANAGE_ROLES', + ReadRoles: 'READ_ROLES', + ManageGameservers: 'MANAGE_GAMESERVERS', + ReadModules: 'READ_MODULES', + ManageModules: 'MANAGE_MODULES', + ReadPlayers: 'READ_PLAYERS', + ManagePlayers: 'MANAGE_PLAYERS', + ManageSettings: 'MANAGE_SETTINGS', + ReadSettings: 'READ_SETTINGS', + ReadVariables: 'READ_VARIABLES', + ManageVariables: 'MANAGE_VARIABLES', + ReadEvents: 'READ_EVENTS', + ManageEvents: 'MANAGE_EVENTS', + ReadItems: 'READ_ITEMS', + ManageItems: 'MANAGE_ITEMS', + ManageShopListings: 'MANAGE_SHOP_LISTINGS', + ManageShopOrders: 'MANAGE_SHOP_ORDERS', } as const; -export type PERMISSIONS = typeof PERMISSIONS[keyof typeof PERMISSIONS]; - +export type PERMISSIONS = (typeof PERMISSIONS)[keyof typeof PERMISSIONS]; /** - * + * * @export * @interface PaginationParams */ export interface PaginationParams { - /** - * - * @type {number} - * @memberof PaginationParams - */ - 'page'?: number; - /** - * - * @type {number} - * @memberof PaginationParams - */ - 'limit'?: number; + /** + * + * @type {number} + * @memberof PaginationParams + */ + page?: number; + /** + * + * @type {number} + * @memberof PaginationParams + */ + limit?: number; } /** - * + * * @export * @interface PaginationParamsWithGameServer */ export interface PaginationParamsWithGameServer { - /** - * - * @type {string} - * @memberof PaginationParamsWithGameServer - */ - 'gameServerId'?: string; - /** - * - * @type {number} - * @memberof PaginationParamsWithGameServer - */ - 'page'?: number; - /** - * - * @type {number} - * @memberof PaginationParamsWithGameServer - */ - 'limit'?: number; + /** + * + * @type {string} + * @memberof PaginationParamsWithGameServer + */ + gameServerId?: string; + /** + * + * @type {number} + * @memberof PaginationParamsWithGameServer + */ + page?: number; + /** + * + * @type {number} + * @memberof PaginationParamsWithGameServer + */ + limit?: number; } /** - * + * * @export * @interface ParamId */ export interface ParamId { - /** - * - * @type {string} - * @memberof ParamId - */ - 'id': string; + /** + * + * @type {string} + * @memberof ParamId + */ + id: string; } /** - * + * * @export * @interface ParamIdAndRoleId */ export interface ParamIdAndRoleId { - /** - * - * @type {string} - * @memberof ParamIdAndRoleId - */ - 'roleId': string; - /** - * - * @type {string} - * @memberof ParamIdAndRoleId - */ - 'id': string; + /** + * + * @type {string} + * @memberof ParamIdAndRoleId + */ + roleId: string; + /** + * + * @type {string} + * @memberof ParamIdAndRoleId + */ + id: string; } /** - * + * * @export * @interface ParamKey */ export interface ParamKey { - /** - * - * @type {string} - * @memberof ParamKey - */ - 'key': ParamKeyKeyEnum; + /** + * + * @type {string} + * @memberof ParamKey + */ + key: ParamKeyKeyEnum; } export const ParamKeyKeyEnum = { - CommandPrefix: 'commandPrefix', - ServerChatName: 'serverChatName', - EconomyEnabled: 'economyEnabled', - CurrencyName: 'currencyName', - DeveloperMode: 'developerMode' + CommandPrefix: 'commandPrefix', + ServerChatName: 'serverChatName', + EconomyEnabled: 'economyEnabled', + CurrencyName: 'currencyName', + DeveloperMode: 'developerMode', } as const; -export type ParamKeyKeyEnum = typeof ParamKeyKeyEnum[keyof typeof ParamKeyKeyEnum]; +export type ParamKeyKeyEnum = (typeof ParamKeyKeyEnum)[keyof typeof ParamKeyKeyEnum]; /** - * + * * @export * @interface ParamSenderReceiver */ export interface ParamSenderReceiver { - /** - * - * @type {string} - * @memberof ParamSenderReceiver - */ - 'gameServerId': string; - /** - * - * @type {string} - * @memberof ParamSenderReceiver - */ - 'sender': string; - /** - * - * @type {string} - * @memberof ParamSenderReceiver - */ - 'receiver': string; + /** + * + * @type {string} + * @memberof ParamSenderReceiver + */ + gameServerId: string; + /** + * + * @type {string} + * @memberof ParamSenderReceiver + */ + sender: string; + /** + * + * @type {string} + * @memberof ParamSenderReceiver + */ + receiver: string; } /** - * + * * @export * @interface PermissionCreateDTO */ export interface PermissionCreateDTO { - /** - * - * @type {string} - * @memberof PermissionCreateDTO - */ - 'permission': string; - /** - * - * @type {string} - * @memberof PermissionCreateDTO - */ - 'friendlyName': string; - /** - * - * @type {string} - * @memberof PermissionCreateDTO - */ - 'description': string; - /** - * - * @type {boolean} - * @memberof PermissionCreateDTO - */ - 'canHaveCount'?: boolean; + /** + * + * @type {string} + * @memberof PermissionCreateDTO + */ + permission: string; + /** + * + * @type {string} + * @memberof PermissionCreateDTO + */ + friendlyName: string; + /** + * + * @type {string} + * @memberof PermissionCreateDTO + */ + description: string; + /** + * + * @type {boolean} + * @memberof PermissionCreateDTO + */ + canHaveCount?: boolean; } /** - * + * * @export * @interface PermissionInputDTO */ export interface PermissionInputDTO { - /** - * - * @type {string} - * @memberof PermissionInputDTO - */ - 'permissionId': string; - /** - * - * @type {number} - * @memberof PermissionInputDTO - */ - 'count'?: number; + /** + * + * @type {string} + * @memberof PermissionInputDTO + */ + permissionId: string; + /** + * + * @type {number} + * @memberof PermissionInputDTO + */ + count?: number; } /** - * + * * @export * @interface PermissionModuleDTO */ export interface PermissionModuleDTO { - /** - * - * @type {string} - * @memberof PermissionModuleDTO - */ - 'id': string; - /** - * - * @type {string} - * @memberof PermissionModuleDTO - */ - 'name': string; + /** + * + * @type {string} + * @memberof PermissionModuleDTO + */ + id: string; + /** + * + * @type {string} + * @memberof PermissionModuleDTO + */ + name: string; } /** - * + * * @export * @interface PermissionOnRoleDTO */ export interface PermissionOnRoleDTO { - /** - * - * @type {string} - * @memberof PermissionOnRoleDTO - */ - 'permissionId': string; - /** - * - * @type {PermissionOutputDTO} - * @memberof PermissionOnRoleDTO - */ - 'permission': PermissionOutputDTO; - /** - * - * @type {number} - * @memberof PermissionOnRoleDTO - */ - 'count': number; - /** - * - * @type {string} - * @memberof PermissionOnRoleDTO - */ - 'id': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof PermissionOnRoleDTO - */ - 'createdAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof PermissionOnRoleDTO - */ - 'updatedAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof PermissionOnRoleDTO + */ + permissionId: string; + /** + * + * @type {PermissionOutputDTO} + * @memberof PermissionOnRoleDTO + */ + permission: PermissionOutputDTO; + /** + * + * @type {number} + * @memberof PermissionOnRoleDTO + */ + count: number; + /** + * + * @type {string} + * @memberof PermissionOnRoleDTO + */ + id: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof PermissionOnRoleDTO + */ + createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof PermissionOnRoleDTO + */ + updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface PermissionOutputDTO */ export interface PermissionOutputDTO { - /** - * - * @type {PermissionModuleDTO} - * @memberof PermissionOutputDTO - */ - 'module'?: PermissionModuleDTO; - /** - * - * @type {string} - * @memberof PermissionOutputDTO - */ - 'permission': string; - /** - * - * @type {string} - * @memberof PermissionOutputDTO - */ - 'friendlyName': string; - /** - * - * @type {string} - * @memberof PermissionOutputDTO - */ - 'description': string; - /** - * - * @type {boolean} - * @memberof PermissionOutputDTO - */ - 'canHaveCount'?: boolean; - /** - * - * @type {string} - * @memberof PermissionOutputDTO - */ - 'id': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof PermissionOutputDTO - */ - 'createdAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof PermissionOutputDTO - */ - 'updatedAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {PermissionModuleDTO} + * @memberof PermissionOutputDTO + */ + module?: PermissionModuleDTO; + /** + * + * @type {string} + * @memberof PermissionOutputDTO + */ + permission: string; + /** + * + * @type {string} + * @memberof PermissionOutputDTO + */ + friendlyName: string; + /** + * + * @type {string} + * @memberof PermissionOutputDTO + */ + description: string; + /** + * + * @type {boolean} + * @memberof PermissionOutputDTO + */ + canHaveCount?: boolean; + /** + * + * @type {string} + * @memberof PermissionOutputDTO + */ + id: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof PermissionOutputDTO + */ + createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof PermissionOutputDTO + */ + updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface PermissionOutputDTOAPI */ export interface PermissionOutputDTOAPI { - /** - * - * @type {Array} - * @memberof PermissionOutputDTOAPI - */ - 'data': Array; - /** - * - * @type {MetadataOutput} - * @memberof PermissionOutputDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {Array} + * @memberof PermissionOutputDTOAPI + */ + data: Array; + /** + * + * @type {MetadataOutput} + * @memberof PermissionOutputDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface PlayerCreateDTO */ export interface PlayerCreateDTO { - /** - * - * @type {string} - * @memberof PlayerCreateDTO - */ - 'name': string; - /** - * - * @type {string} - * @memberof PlayerCreateDTO - */ - 'steamId'?: string; - /** - * - * @type {string} - * @memberof PlayerCreateDTO - */ - 'xboxLiveId'?: string; - /** - * - * @type {string} - * @memberof PlayerCreateDTO - */ - 'epicOnlineServicesId'?: string; + /** + * + * @type {string} + * @memberof PlayerCreateDTO + */ + name: string; + /** + * + * @type {string} + * @memberof PlayerCreateDTO + */ + steamId?: string; + /** + * + * @type {string} + * @memberof PlayerCreateDTO + */ + xboxLiveId?: string; + /** + * + * @type {string} + * @memberof PlayerCreateDTO + */ + epicOnlineServicesId?: string; } /** - * + * * @export * @interface PlayerMeOutputDTO */ export interface PlayerMeOutputDTO { - /** - * - * @type {PlayerOutputWithRolesDTO} - * @memberof PlayerMeOutputDTO - */ - 'player': PlayerOutputWithRolesDTO; - /** - * - * @type {Array} - * @memberof PlayerMeOutputDTO - */ - 'pogs': Array; + /** + * + * @type {PlayerOutputWithRolesDTO} + * @memberof PlayerMeOutputDTO + */ + player: PlayerOutputWithRolesDTO; + /** + * + * @type {Array} + * @memberof PlayerMeOutputDTO + */ + pogs: Array; } /** - * + * * @export * @interface PlayerOnGameServerCreateDTO */ export interface PlayerOnGameServerCreateDTO { - /** - * - * @type {string} - * @memberof PlayerOnGameServerCreateDTO - */ - 'gameServerId': string; - /** - * - * @type {string} - * @memberof PlayerOnGameServerCreateDTO - */ - 'playerId': string; - /** - * - * @type {string} - * @memberof PlayerOnGameServerCreateDTO - */ - 'gameId': string; + /** + * + * @type {string} + * @memberof PlayerOnGameServerCreateDTO + */ + gameServerId: string; + /** + * + * @type {string} + * @memberof PlayerOnGameServerCreateDTO + */ + playerId: string; + /** + * + * @type {string} + * @memberof PlayerOnGameServerCreateDTO + */ + gameId: string; } /** - * + * * @export * @interface PlayerOnGameServerSearchInputAllowedFilters */ export interface PlayerOnGameServerSearchInputAllowedFilters { - /** - * - * @type {Array} - * @memberof PlayerOnGameServerSearchInputAllowedFilters - */ - 'gameId'?: Array; - /** - * - * @type {Array} - * @memberof PlayerOnGameServerSearchInputAllowedFilters - */ - 'gameServerId'?: Array; - /** - * - * @type {Array} - * @memberof PlayerOnGameServerSearchInputAllowedFilters - */ - 'playerId'?: Array; - /** - * - * @type {Array} - * @memberof PlayerOnGameServerSearchInputAllowedFilters - */ - 'online'?: Array; - /** - * - * @type {Array} - * @memberof PlayerOnGameServerSearchInputAllowedFilters - */ - 'id'?: Array; + /** + * + * @type {Array} + * @memberof PlayerOnGameServerSearchInputAllowedFilters + */ + gameId?: Array; + /** + * + * @type {Array} + * @memberof PlayerOnGameServerSearchInputAllowedFilters + */ + gameServerId?: Array; + /** + * + * @type {Array} + * @memberof PlayerOnGameServerSearchInputAllowedFilters + */ + playerId?: Array; + /** + * + * @type {Array} + * @memberof PlayerOnGameServerSearchInputAllowedFilters + */ + online?: Array; + /** + * + * @type {Array} + * @memberof PlayerOnGameServerSearchInputAllowedFilters + */ + id?: Array; } /** - * + * * @export * @interface PlayerOnGameServerSearchInputAllowedRangeFilter */ export interface PlayerOnGameServerSearchInputAllowedRangeFilter { - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof PlayerOnGameServerSearchInputAllowedRangeFilter - */ - 'lastSeen'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {number} - * @memberof PlayerOnGameServerSearchInputAllowedRangeFilter - */ - 'playtimeSeconds'?: number; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof PlayerOnGameServerSearchInputAllowedRangeFilter - */ - 'createdAt'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof PlayerOnGameServerSearchInputAllowedRangeFilter - */ - 'updatedAt'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof PlayerOnGameServerSearchInputAllowedRangeFilter + */ + lastSeen?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {number} + * @memberof PlayerOnGameServerSearchInputAllowedRangeFilter + */ + playtimeSeconds?: number; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof PlayerOnGameServerSearchInputAllowedRangeFilter + */ + createdAt?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof PlayerOnGameServerSearchInputAllowedRangeFilter + */ + updatedAt?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface PlayerOnGameServerSearchInputDTO */ export interface PlayerOnGameServerSearchInputDTO { - /** - * - * @type {PlayerOnGameServerSearchInputAllowedFilters} - * @memberof PlayerOnGameServerSearchInputDTO - */ - 'filters'?: PlayerOnGameServerSearchInputAllowedFilters; - /** - * - * @type {PlayerOnGameServerSearchInputAllowedFilters} - * @memberof PlayerOnGameServerSearchInputDTO - */ - 'search'?: PlayerOnGameServerSearchInputAllowedFilters; - /** - * - * @type {PlayerOnGameServerSearchInputAllowedRangeFilter} - * @memberof PlayerOnGameServerSearchInputDTO - */ - 'greaterThan'?: PlayerOnGameServerSearchInputAllowedRangeFilter; - /** - * - * @type {PlayerOnGameServerSearchInputAllowedRangeFilter} - * @memberof PlayerOnGameServerSearchInputDTO - */ - 'lessThan'?: PlayerOnGameServerSearchInputAllowedRangeFilter; - /** - * - * @type {number} - * @memberof PlayerOnGameServerSearchInputDTO - */ - 'page'?: number; - /** - * - * @type {number} - * @memberof PlayerOnGameServerSearchInputDTO - */ - 'limit'?: number; - /** - * - * @type {string} - * @memberof PlayerOnGameServerSearchInputDTO - */ - 'sortBy'?: string; - /** - * - * @type {string} - * @memberof PlayerOnGameServerSearchInputDTO - */ - 'sortDirection'?: PlayerOnGameServerSearchInputDTOSortDirectionEnum; - /** - * - * @type {Array} - * @memberof PlayerOnGameServerSearchInputDTO - */ - 'extend'?: Array; + /** + * + * @type {PlayerOnGameServerSearchInputAllowedFilters} + * @memberof PlayerOnGameServerSearchInputDTO + */ + filters?: PlayerOnGameServerSearchInputAllowedFilters; + /** + * + * @type {PlayerOnGameServerSearchInputAllowedFilters} + * @memberof PlayerOnGameServerSearchInputDTO + */ + search?: PlayerOnGameServerSearchInputAllowedFilters; + /** + * + * @type {PlayerOnGameServerSearchInputAllowedRangeFilter} + * @memberof PlayerOnGameServerSearchInputDTO + */ + greaterThan?: PlayerOnGameServerSearchInputAllowedRangeFilter; + /** + * + * @type {PlayerOnGameServerSearchInputAllowedRangeFilter} + * @memberof PlayerOnGameServerSearchInputDTO + */ + lessThan?: PlayerOnGameServerSearchInputAllowedRangeFilter; + /** + * + * @type {number} + * @memberof PlayerOnGameServerSearchInputDTO + */ + page?: number; + /** + * + * @type {number} + * @memberof PlayerOnGameServerSearchInputDTO + */ + limit?: number; + /** + * + * @type {string} + * @memberof PlayerOnGameServerSearchInputDTO + */ + sortBy?: string; + /** + * + * @type {string} + * @memberof PlayerOnGameServerSearchInputDTO + */ + sortDirection?: PlayerOnGameServerSearchInputDTOSortDirectionEnum; + /** + * + * @type {Array} + * @memberof PlayerOnGameServerSearchInputDTO + */ + extend?: Array; } export const PlayerOnGameServerSearchInputDTOSortDirectionEnum = { - Asc: 'asc', - Desc: 'desc' + Asc: 'asc', + Desc: 'desc', } as const; -export type PlayerOnGameServerSearchInputDTOSortDirectionEnum = typeof PlayerOnGameServerSearchInputDTOSortDirectionEnum[keyof typeof PlayerOnGameServerSearchInputDTOSortDirectionEnum]; +export type PlayerOnGameServerSearchInputDTOSortDirectionEnum = + (typeof PlayerOnGameServerSearchInputDTOSortDirectionEnum)[keyof typeof PlayerOnGameServerSearchInputDTOSortDirectionEnum]; /** - * + * * @export * @interface PlayerOnGameServerSetCurrencyInputDTO */ export interface PlayerOnGameServerSetCurrencyInputDTO { - /** - * - * @type {number} - * @memberof PlayerOnGameServerSetCurrencyInputDTO - */ - 'currency': number; + /** + * + * @type {number} + * @memberof PlayerOnGameServerSetCurrencyInputDTO + */ + currency: number; } /** - * + * * @export * @interface PlayerOnGameServerUpdateDTO */ export interface PlayerOnGameServerUpdateDTO { - /** - * - * @type {number} - * @memberof PlayerOnGameServerUpdateDTO - */ - 'positionX'?: number; - /** - * - * @type {number} - * @memberof PlayerOnGameServerUpdateDTO - */ - 'positionY'?: number; - /** - * - * @type {number} - * @memberof PlayerOnGameServerUpdateDTO - */ - 'positionZ'?: number; - /** - * - * @type {string} - * @memberof PlayerOnGameServerUpdateDTO - */ - 'ip'?: string; - /** - * - * @type {number} - * @memberof PlayerOnGameServerUpdateDTO - */ - 'ping'?: number; - /** - * - * @type {number} - * @memberof PlayerOnGameServerUpdateDTO - */ - 'currency'?: number; - /** - * - * @type {boolean} - * @memberof PlayerOnGameServerUpdateDTO - */ - 'online': boolean; - /** - * - * @type {number} - * @memberof PlayerOnGameServerUpdateDTO - */ - 'playtimeSeconds'?: number; + /** + * + * @type {number} + * @memberof PlayerOnGameServerUpdateDTO + */ + positionX?: number; + /** + * + * @type {number} + * @memberof PlayerOnGameServerUpdateDTO + */ + positionY?: number; + /** + * + * @type {number} + * @memberof PlayerOnGameServerUpdateDTO + */ + positionZ?: number; + /** + * + * @type {string} + * @memberof PlayerOnGameServerUpdateDTO + */ + ip?: string; + /** + * + * @type {number} + * @memberof PlayerOnGameServerUpdateDTO + */ + ping?: number; + /** + * + * @type {number} + * @memberof PlayerOnGameServerUpdateDTO + */ + currency?: number; + /** + * + * @type {boolean} + * @memberof PlayerOnGameServerUpdateDTO + */ + online: boolean; + /** + * + * @type {number} + * @memberof PlayerOnGameServerUpdateDTO + */ + playtimeSeconds?: number; } /** - * + * * @export * @interface PlayerOnGameserverOutputArrayDTOAPI */ export interface PlayerOnGameserverOutputArrayDTOAPI { - /** - * - * @type {Array} - * @memberof PlayerOnGameserverOutputArrayDTOAPI - */ - 'data': Array; - /** - * - * @type {MetadataOutput} - * @memberof PlayerOnGameserverOutputArrayDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {Array} + * @memberof PlayerOnGameserverOutputArrayDTOAPI + */ + data: Array; + /** + * + * @type {MetadataOutput} + * @memberof PlayerOnGameserverOutputArrayDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface PlayerOnGameserverOutputDTO */ export interface PlayerOnGameserverOutputDTO { - /** - * - * @type {string} - * @memberof PlayerOnGameserverOutputDTO - */ - 'gameServerId': string; - /** - * - * @type {string} - * @memberof PlayerOnGameserverOutputDTO - */ - 'playerId': string; - /** - * - * @type {string} - * @memberof PlayerOnGameserverOutputDTO - */ - 'gameId': string; - /** - * - * @type {number} - * @memberof PlayerOnGameserverOutputDTO - */ - 'positionX'?: number; - /** - * - * @type {number} - * @memberof PlayerOnGameserverOutputDTO - */ - 'positionY'?: number; - /** - * - * @type {number} - * @memberof PlayerOnGameserverOutputDTO - */ - 'positionZ'?: number; - /** - * - * @type {string} - * @memberof PlayerOnGameserverOutputDTO - */ - 'ip'?: string; - /** - * - * @type {number} - * @memberof PlayerOnGameserverOutputDTO - */ - 'ping'?: number; - /** - * - * @type {number} - * @memberof PlayerOnGameserverOutputDTO - */ - 'currency': number; - /** - * - * @type {boolean} - * @memberof PlayerOnGameserverOutputDTO - */ - 'online': boolean; - /** - * - * @type {Array} - * @memberof PlayerOnGameserverOutputDTO - */ - 'inventory': Array; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof PlayerOnGameserverOutputDTO - */ - 'lastSeen': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {number} - * @memberof PlayerOnGameserverOutputDTO - */ - 'playtimeSeconds': number; - /** - * - * @type {string} - * @memberof PlayerOnGameserverOutputDTO - */ - 'id': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof PlayerOnGameserverOutputDTO - */ - 'createdAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof PlayerOnGameserverOutputDTO - */ - 'updatedAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof PlayerOnGameserverOutputDTO + */ + gameServerId: string; + /** + * + * @type {string} + * @memberof PlayerOnGameserverOutputDTO + */ + playerId: string; + /** + * + * @type {string} + * @memberof PlayerOnGameserverOutputDTO + */ + gameId: string; + /** + * + * @type {number} + * @memberof PlayerOnGameserverOutputDTO + */ + positionX?: number; + /** + * + * @type {number} + * @memberof PlayerOnGameserverOutputDTO + */ + positionY?: number; + /** + * + * @type {number} + * @memberof PlayerOnGameserverOutputDTO + */ + positionZ?: number; + /** + * + * @type {string} + * @memberof PlayerOnGameserverOutputDTO + */ + ip?: string; + /** + * + * @type {number} + * @memberof PlayerOnGameserverOutputDTO + */ + ping?: number; + /** + * + * @type {number} + * @memberof PlayerOnGameserverOutputDTO + */ + currency: number; + /** + * + * @type {boolean} + * @memberof PlayerOnGameserverOutputDTO + */ + online: boolean; + /** + * + * @type {Array} + * @memberof PlayerOnGameserverOutputDTO + */ + inventory: Array; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof PlayerOnGameserverOutputDTO + */ + lastSeen: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {number} + * @memberof PlayerOnGameserverOutputDTO + */ + playtimeSeconds: number; + /** + * + * @type {string} + * @memberof PlayerOnGameserverOutputDTO + */ + id: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof PlayerOnGameserverOutputDTO + */ + createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof PlayerOnGameserverOutputDTO + */ + updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface PlayerOnGameserverOutputDTOAPI */ export interface PlayerOnGameserverOutputDTOAPI { - /** - * - * @type {PlayerOnGameserverOutputWithRolesDTO} - * @memberof PlayerOnGameserverOutputDTOAPI - */ - 'data': PlayerOnGameserverOutputWithRolesDTO; - /** - * - * @type {MetadataOutput} - * @memberof PlayerOnGameserverOutputDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {PlayerOnGameserverOutputWithRolesDTO} + * @memberof PlayerOnGameserverOutputDTOAPI + */ + data: PlayerOnGameserverOutputWithRolesDTO; + /** + * + * @type {MetadataOutput} + * @memberof PlayerOnGameserverOutputDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface PlayerOnGameserverOutputWithRolesDTO */ export interface PlayerOnGameserverOutputWithRolesDTO { - /** - * - * @type {Array} - * @memberof PlayerOnGameserverOutputWithRolesDTO - */ - 'roles': Array; - /** - * - * @type {string} - * @memberof PlayerOnGameserverOutputWithRolesDTO - */ - 'id': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof PlayerOnGameserverOutputWithRolesDTO - */ - 'createdAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof PlayerOnGameserverOutputWithRolesDTO - */ - 'updatedAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {string} - * @memberof PlayerOnGameserverOutputWithRolesDTO - */ - 'gameServerId': string; - /** - * - * @type {string} - * @memberof PlayerOnGameserverOutputWithRolesDTO - */ - 'playerId': string; - /** - * - * @type {string} - * @memberof PlayerOnGameserverOutputWithRolesDTO - */ - 'gameId': string; - /** - * - * @type {number} - * @memberof PlayerOnGameserverOutputWithRolesDTO - */ - 'positionX'?: number; - /** - * - * @type {number} - * @memberof PlayerOnGameserverOutputWithRolesDTO - */ - 'positionY'?: number; - /** - * - * @type {number} - * @memberof PlayerOnGameserverOutputWithRolesDTO - */ - 'positionZ'?: number; - /** - * - * @type {string} - * @memberof PlayerOnGameserverOutputWithRolesDTO - */ - 'ip'?: string; - /** - * - * @type {number} - * @memberof PlayerOnGameserverOutputWithRolesDTO - */ - 'ping'?: number; - /** - * - * @type {number} - * @memberof PlayerOnGameserverOutputWithRolesDTO - */ - 'currency': number; - /** - * - * @type {boolean} - * @memberof PlayerOnGameserverOutputWithRolesDTO - */ - 'online': boolean; - /** - * - * @type {Array} - * @memberof PlayerOnGameserverOutputWithRolesDTO - */ - 'inventory': Array; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof PlayerOnGameserverOutputWithRolesDTO - */ - 'lastSeen': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {number} - * @memberof PlayerOnGameserverOutputWithRolesDTO - */ - 'playtimeSeconds': number; + /** + * + * @type {Array} + * @memberof PlayerOnGameserverOutputWithRolesDTO + */ + roles: Array; + /** + * + * @type {string} + * @memberof PlayerOnGameserverOutputWithRolesDTO + */ + id: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof PlayerOnGameserverOutputWithRolesDTO + */ + createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof PlayerOnGameserverOutputWithRolesDTO + */ + updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof PlayerOnGameserverOutputWithRolesDTO + */ + gameServerId: string; + /** + * + * @type {string} + * @memberof PlayerOnGameserverOutputWithRolesDTO + */ + playerId: string; + /** + * + * @type {string} + * @memberof PlayerOnGameserverOutputWithRolesDTO + */ + gameId: string; + /** + * + * @type {number} + * @memberof PlayerOnGameserverOutputWithRolesDTO + */ + positionX?: number; + /** + * + * @type {number} + * @memberof PlayerOnGameserverOutputWithRolesDTO + */ + positionY?: number; + /** + * + * @type {number} + * @memberof PlayerOnGameserverOutputWithRolesDTO + */ + positionZ?: number; + /** + * + * @type {string} + * @memberof PlayerOnGameserverOutputWithRolesDTO + */ + ip?: string; + /** + * + * @type {number} + * @memberof PlayerOnGameserverOutputWithRolesDTO + */ + ping?: number; + /** + * + * @type {number} + * @memberof PlayerOnGameserverOutputWithRolesDTO + */ + currency: number; + /** + * + * @type {boolean} + * @memberof PlayerOnGameserverOutputWithRolesDTO + */ + online: boolean; + /** + * + * @type {Array} + * @memberof PlayerOnGameserverOutputWithRolesDTO + */ + inventory: Array; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof PlayerOnGameserverOutputWithRolesDTO + */ + lastSeen: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {number} + * @memberof PlayerOnGameserverOutputWithRolesDTO + */ + playtimeSeconds: number; } /** - * + * * @export * @interface PlayerOutputArrayDTOAPI */ export interface PlayerOutputArrayDTOAPI { - /** - * - * @type {Array} - * @memberof PlayerOutputArrayDTOAPI - */ - 'data': Array; - /** - * - * @type {MetadataOutput} - * @memberof PlayerOutputArrayDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {Array} + * @memberof PlayerOutputArrayDTOAPI + */ + data: Array; + /** + * + * @type {MetadataOutput} + * @memberof PlayerOutputArrayDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface PlayerOutputDTO */ export interface PlayerOutputDTO { - /** - * - * @type {string} - * @memberof PlayerOutputDTO - */ - 'name': string; - /** - * - * @type {string} - * @memberof PlayerOutputDTO - */ - 'steamId'?: string; - /** - * - * @type {string} - * @memberof PlayerOutputDTO - */ - 'xboxLiveId'?: string; - /** - * - * @type {string} - * @memberof PlayerOutputDTO - */ - 'epicOnlineServicesId'?: string; - /** - * - * @type {string} - * @memberof PlayerOutputDTO - */ - 'steamAvatar'?: string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof PlayerOutputDTO - */ - 'steamAccountCreated'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {boolean} - * @memberof PlayerOutputDTO - */ - 'steamCommunityBanned'?: boolean; - /** - * - * @type {string} - * @memberof PlayerOutputDTO - */ - 'steamEconomyBan'?: string; - /** - * - * @type {boolean} - * @memberof PlayerOutputDTO - */ - 'steamVacBanned'?: boolean; - /** - * - * @type {number} - * @memberof PlayerOutputDTO - */ - 'steamsDaysSinceLastBan'?: number; - /** - * - * @type {number} - * @memberof PlayerOutputDTO - */ - 'steamNumberOfVACBans'?: number; - /** - * - * @type {number} - * @memberof PlayerOutputDTO - */ - 'steamLevel'?: number; - /** - * - * @type {number} - * @memberof PlayerOutputDTO - */ - 'playtimeSeconds': number; - /** - * - * @type {Array} - * @memberof PlayerOutputDTO - */ - 'playerOnGameServers'?: Array; - /** - * - * @type {Array} - * @memberof PlayerOutputDTO - */ - 'ipHistory': Array; - /** - * - * @type {string} - * @memberof PlayerOutputDTO - */ - 'id': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof PlayerOutputDTO - */ - 'createdAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof PlayerOutputDTO - */ - 'updatedAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof PlayerOutputDTO + */ + name: string; + /** + * + * @type {string} + * @memberof PlayerOutputDTO + */ + steamId?: string; + /** + * + * @type {string} + * @memberof PlayerOutputDTO + */ + xboxLiveId?: string; + /** + * + * @type {string} + * @memberof PlayerOutputDTO + */ + epicOnlineServicesId?: string; + /** + * + * @type {string} + * @memberof PlayerOutputDTO + */ + steamAvatar?: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof PlayerOutputDTO + */ + steamAccountCreated?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {boolean} + * @memberof PlayerOutputDTO + */ + steamCommunityBanned?: boolean; + /** + * + * @type {string} + * @memberof PlayerOutputDTO + */ + steamEconomyBan?: string; + /** + * + * @type {boolean} + * @memberof PlayerOutputDTO + */ + steamVacBanned?: boolean; + /** + * + * @type {number} + * @memberof PlayerOutputDTO + */ + steamsDaysSinceLastBan?: number; + /** + * + * @type {number} + * @memberof PlayerOutputDTO + */ + steamNumberOfVACBans?: number; + /** + * + * @type {number} + * @memberof PlayerOutputDTO + */ + steamLevel?: number; + /** + * + * @type {number} + * @memberof PlayerOutputDTO + */ + playtimeSeconds: number; + /** + * + * @type {Array} + * @memberof PlayerOutputDTO + */ + playerOnGameServers?: Array; + /** + * + * @type {Array} + * @memberof PlayerOutputDTO + */ + ipHistory: Array; + /** + * + * @type {string} + * @memberof PlayerOutputDTO + */ + id: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof PlayerOutputDTO + */ + createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof PlayerOutputDTO + */ + updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface PlayerOutputDTOAPI */ export interface PlayerOutputDTOAPI { - /** - * - * @type {PlayerOutputWithRolesDTO} - * @memberof PlayerOutputDTOAPI - */ - 'data': PlayerOutputWithRolesDTO; - /** - * - * @type {MetadataOutput} - * @memberof PlayerOutputDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {PlayerOutputWithRolesDTO} + * @memberof PlayerOutputDTOAPI + */ + data: PlayerOutputWithRolesDTO; + /** + * + * @type {MetadataOutput} + * @memberof PlayerOutputDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface PlayerOutputWithRolesDTO */ export interface PlayerOutputWithRolesDTO { - /** - * - * @type {Array} - * @memberof PlayerOutputWithRolesDTO - */ - 'roleAssignments': Array; - /** - * - * @type {string} - * @memberof PlayerOutputWithRolesDTO - */ - 'id': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof PlayerOutputWithRolesDTO - */ - 'createdAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof PlayerOutputWithRolesDTO - */ - 'updatedAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {string} - * @memberof PlayerOutputWithRolesDTO - */ - 'name': string; - /** - * - * @type {string} - * @memberof PlayerOutputWithRolesDTO - */ - 'steamId'?: string; - /** - * - * @type {string} - * @memberof PlayerOutputWithRolesDTO - */ - 'xboxLiveId'?: string; - /** - * - * @type {string} - * @memberof PlayerOutputWithRolesDTO - */ - 'epicOnlineServicesId'?: string; - /** - * - * @type {string} - * @memberof PlayerOutputWithRolesDTO - */ - 'steamAvatar'?: string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof PlayerOutputWithRolesDTO - */ - 'steamAccountCreated'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {boolean} - * @memberof PlayerOutputWithRolesDTO - */ - 'steamCommunityBanned'?: boolean; - /** - * - * @type {string} - * @memberof PlayerOutputWithRolesDTO - */ - 'steamEconomyBan'?: string; - /** - * - * @type {boolean} - * @memberof PlayerOutputWithRolesDTO - */ - 'steamVacBanned'?: boolean; - /** - * - * @type {number} - * @memberof PlayerOutputWithRolesDTO - */ - 'steamsDaysSinceLastBan'?: number; - /** - * - * @type {number} - * @memberof PlayerOutputWithRolesDTO - */ - 'steamNumberOfVACBans'?: number; - /** - * - * @type {number} - * @memberof PlayerOutputWithRolesDTO - */ - 'steamLevel'?: number; - /** - * - * @type {number} - * @memberof PlayerOutputWithRolesDTO - */ - 'playtimeSeconds': number; - /** - * - * @type {Array} - * @memberof PlayerOutputWithRolesDTO - */ - 'playerOnGameServers'?: Array; - /** - * - * @type {Array} - * @memberof PlayerOutputWithRolesDTO - */ - 'ipHistory': Array; + /** + * + * @type {Array} + * @memberof PlayerOutputWithRolesDTO + */ + roleAssignments: Array; + /** + * + * @type {string} + * @memberof PlayerOutputWithRolesDTO + */ + id: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof PlayerOutputWithRolesDTO + */ + createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof PlayerOutputWithRolesDTO + */ + updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof PlayerOutputWithRolesDTO + */ + name: string; + /** + * + * @type {string} + * @memberof PlayerOutputWithRolesDTO + */ + steamId?: string; + /** + * + * @type {string} + * @memberof PlayerOutputWithRolesDTO + */ + xboxLiveId?: string; + /** + * + * @type {string} + * @memberof PlayerOutputWithRolesDTO + */ + epicOnlineServicesId?: string; + /** + * + * @type {string} + * @memberof PlayerOutputWithRolesDTO + */ + steamAvatar?: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof PlayerOutputWithRolesDTO + */ + steamAccountCreated?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {boolean} + * @memberof PlayerOutputWithRolesDTO + */ + steamCommunityBanned?: boolean; + /** + * + * @type {string} + * @memberof PlayerOutputWithRolesDTO + */ + steamEconomyBan?: string; + /** + * + * @type {boolean} + * @memberof PlayerOutputWithRolesDTO + */ + steamVacBanned?: boolean; + /** + * + * @type {number} + * @memberof PlayerOutputWithRolesDTO + */ + steamsDaysSinceLastBan?: number; + /** + * + * @type {number} + * @memberof PlayerOutputWithRolesDTO + */ + steamNumberOfVACBans?: number; + /** + * + * @type {number} + * @memberof PlayerOutputWithRolesDTO + */ + steamLevel?: number; + /** + * + * @type {number} + * @memberof PlayerOutputWithRolesDTO + */ + playtimeSeconds: number; + /** + * + * @type {Array} + * @memberof PlayerOutputWithRolesDTO + */ + playerOnGameServers?: Array; + /** + * + * @type {Array} + * @memberof PlayerOutputWithRolesDTO + */ + ipHistory: Array; } /** - * + * * @export * @interface PlayerOutputWithRolesDTOAPI */ export interface PlayerOutputWithRolesDTOAPI { - /** - * - * @type {PlayerOutputWithRolesDTO} - * @memberof PlayerOutputWithRolesDTOAPI - */ - 'data': PlayerOutputWithRolesDTO; - /** - * - * @type {MetadataOutput} - * @memberof PlayerOutputWithRolesDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {PlayerOutputWithRolesDTO} + * @memberof PlayerOutputWithRolesDTOAPI + */ + data: PlayerOutputWithRolesDTO; + /** + * + * @type {MetadataOutput} + * @memberof PlayerOutputWithRolesDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface PlayerRoleAssignChangeDTO */ export interface PlayerRoleAssignChangeDTO { - /** - * - * @type {string} - * @memberof PlayerRoleAssignChangeDTO - */ - 'gameServerId'?: string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof PlayerRoleAssignChangeDTO - */ - 'expiresAt'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof PlayerRoleAssignChangeDTO + */ + gameServerId?: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof PlayerRoleAssignChangeDTO + */ + expiresAt?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface PlayerRoleAssignmentOutputDTO */ export interface PlayerRoleAssignmentOutputDTO { - /** - * - * @type {string} - * @memberof PlayerRoleAssignmentOutputDTO - */ - 'playerId': string; - /** - * - * @type {string} - * @memberof PlayerRoleAssignmentOutputDTO - */ - 'roleId': string; - /** - * - * @type {string} - * @memberof PlayerRoleAssignmentOutputDTO - */ - 'gameServerId'?: string; - /** - * - * @type {RoleOutputDTO} - * @memberof PlayerRoleAssignmentOutputDTO - */ - 'role': RoleOutputDTO; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof PlayerRoleAssignmentOutputDTO - */ - 'expiresAt'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {string} - * @memberof PlayerRoleAssignmentOutputDTO - */ - 'id': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof PlayerRoleAssignmentOutputDTO - */ - 'createdAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof PlayerRoleAssignmentOutputDTO - */ - 'updatedAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof PlayerRoleAssignmentOutputDTO + */ + playerId: string; + /** + * + * @type {string} + * @memberof PlayerRoleAssignmentOutputDTO + */ + roleId: string; + /** + * + * @type {string} + * @memberof PlayerRoleAssignmentOutputDTO + */ + gameServerId?: string; + /** + * + * @type {RoleOutputDTO} + * @memberof PlayerRoleAssignmentOutputDTO + */ + role: RoleOutputDTO; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof PlayerRoleAssignmentOutputDTO + */ + expiresAt?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof PlayerRoleAssignmentOutputDTO + */ + id: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof PlayerRoleAssignmentOutputDTO + */ + createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof PlayerRoleAssignmentOutputDTO + */ + updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface PlayerSearchInputAllowedFilters */ export interface PlayerSearchInputAllowedFilters { - /** - * - * @type {Array} - * @memberof PlayerSearchInputAllowedFilters - */ - 'name'?: Array; - /** - * - * @type {Array} - * @memberof PlayerSearchInputAllowedFilters - */ - 'steamId'?: Array; - /** - * - * @type {Array} - * @memberof PlayerSearchInputAllowedFilters - */ - 'epicOnlineServicesId'?: Array; - /** - * - * @type {Array} - * @memberof PlayerSearchInputAllowedFilters - */ - 'xboxLiveId'?: Array; - /** - * - * @type {Array} - * @memberof PlayerSearchInputAllowedFilters - */ - 'steamCommunityBanned'?: Array; - /** - * - * @type {Array} - * @memberof PlayerSearchInputAllowedFilters - */ - 'steamVacBanned'?: Array; - /** - * - * @type {Array} - * @memberof PlayerSearchInputAllowedFilters - */ - 'roleId'?: Array; - /** - * - * @type {Array} - * @memberof PlayerSearchInputAllowedFilters - */ - 'id'?: Array; + /** + * + * @type {Array} + * @memberof PlayerSearchInputAllowedFilters + */ + name?: Array; + /** + * + * @type {Array} + * @memberof PlayerSearchInputAllowedFilters + */ + steamId?: Array; + /** + * + * @type {Array} + * @memberof PlayerSearchInputAllowedFilters + */ + epicOnlineServicesId?: Array; + /** + * + * @type {Array} + * @memberof PlayerSearchInputAllowedFilters + */ + xboxLiveId?: Array; + /** + * + * @type {Array} + * @memberof PlayerSearchInputAllowedFilters + */ + steamCommunityBanned?: Array; + /** + * + * @type {Array} + * @memberof PlayerSearchInputAllowedFilters + */ + steamVacBanned?: Array; + /** + * + * @type {Array} + * @memberof PlayerSearchInputAllowedFilters + */ + roleId?: Array; + /** + * + * @type {Array} + * @memberof PlayerSearchInputAllowedFilters + */ + id?: Array; } /** - * + * * @export * @interface PlayerSearchInputAllowedRangeFilter */ export interface PlayerSearchInputAllowedRangeFilter { - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof PlayerSearchInputAllowedRangeFilter - */ - 'steamAccountCreated'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {number} - * @memberof PlayerSearchInputAllowedRangeFilter - */ - 'steamDaysSinceLastBan'?: number; - /** - * - * @type {number} - * @memberof PlayerSearchInputAllowedRangeFilter - */ - 'steamNumberOfVACBans'?: number; - /** - * - * @type {number} - * @memberof PlayerSearchInputAllowedRangeFilter - */ - 'steamLevel'?: number; - /** - * - * @type {number} - * @memberof PlayerSearchInputAllowedRangeFilter - */ - 'playtimeSeconds'?: number; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof PlayerSearchInputAllowedRangeFilter - */ - 'createdAt'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof PlayerSearchInputAllowedRangeFilter - */ - 'updatedAt'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof PlayerSearchInputAllowedRangeFilter + */ + steamAccountCreated?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {number} + * @memberof PlayerSearchInputAllowedRangeFilter + */ + steamDaysSinceLastBan?: number; + /** + * + * @type {number} + * @memberof PlayerSearchInputAllowedRangeFilter + */ + steamNumberOfVACBans?: number; + /** + * + * @type {number} + * @memberof PlayerSearchInputAllowedRangeFilter + */ + steamLevel?: number; + /** + * + * @type {number} + * @memberof PlayerSearchInputAllowedRangeFilter + */ + playtimeSeconds?: number; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof PlayerSearchInputAllowedRangeFilter + */ + createdAt?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof PlayerSearchInputAllowedRangeFilter + */ + updatedAt?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface PlayerSearchInputDTO */ export interface PlayerSearchInputDTO { - /** - * - * @type {PlayerSearchInputAllowedFilters} - * @memberof PlayerSearchInputDTO - */ - 'filters'?: PlayerSearchInputAllowedFilters; - /** - * - * @type {PlayerSearchInputAllowedFilters} - * @memberof PlayerSearchInputDTO - */ - 'search'?: PlayerSearchInputAllowedFilters; - /** - * - * @type {PlayerSearchInputAllowedRangeFilter} - * @memberof PlayerSearchInputDTO - */ - 'greaterThan'?: PlayerSearchInputAllowedRangeFilter; - /** - * - * @type {PlayerSearchInputAllowedRangeFilter} - * @memberof PlayerSearchInputDTO - */ - 'lessThan'?: PlayerSearchInputAllowedRangeFilter; - /** - * - * @type {number} - * @memberof PlayerSearchInputDTO - */ - 'page'?: number; - /** - * - * @type {number} - * @memberof PlayerSearchInputDTO - */ - 'limit'?: number; - /** - * - * @type {string} - * @memberof PlayerSearchInputDTO - */ - 'sortBy'?: string; - /** - * - * @type {string} - * @memberof PlayerSearchInputDTO - */ - 'sortDirection'?: PlayerSearchInputDTOSortDirectionEnum; - /** - * - * @type {Array} - * @memberof PlayerSearchInputDTO - */ - 'extend'?: Array; + /** + * + * @type {PlayerSearchInputAllowedFilters} + * @memberof PlayerSearchInputDTO + */ + filters?: PlayerSearchInputAllowedFilters; + /** + * + * @type {PlayerSearchInputAllowedFilters} + * @memberof PlayerSearchInputDTO + */ + search?: PlayerSearchInputAllowedFilters; + /** + * + * @type {PlayerSearchInputAllowedRangeFilter} + * @memberof PlayerSearchInputDTO + */ + greaterThan?: PlayerSearchInputAllowedRangeFilter; + /** + * + * @type {PlayerSearchInputAllowedRangeFilter} + * @memberof PlayerSearchInputDTO + */ + lessThan?: PlayerSearchInputAllowedRangeFilter; + /** + * + * @type {number} + * @memberof PlayerSearchInputDTO + */ + page?: number; + /** + * + * @type {number} + * @memberof PlayerSearchInputDTO + */ + limit?: number; + /** + * + * @type {string} + * @memberof PlayerSearchInputDTO + */ + sortBy?: string; + /** + * + * @type {string} + * @memberof PlayerSearchInputDTO + */ + sortDirection?: PlayerSearchInputDTOSortDirectionEnum; + /** + * + * @type {Array} + * @memberof PlayerSearchInputDTO + */ + extend?: Array; } export const PlayerSearchInputDTOSortDirectionEnum = { - Asc: 'asc', - Desc: 'desc' + Asc: 'asc', + Desc: 'desc', } as const; -export type PlayerSearchInputDTOSortDirectionEnum = typeof PlayerSearchInputDTOSortDirectionEnum[keyof typeof PlayerSearchInputDTOSortDirectionEnum]; +export type PlayerSearchInputDTOSortDirectionEnum = + (typeof PlayerSearchInputDTOSortDirectionEnum)[keyof typeof PlayerSearchInputDTOSortDirectionEnum]; /** - * + * * @export * @interface PlayerUpdateDTO */ export interface PlayerUpdateDTO { - /** - * - * @type {string} - * @memberof PlayerUpdateDTO - */ - 'name': string; - /** - * - * @type {string} - * @memberof PlayerUpdateDTO - */ - 'steamId'?: string; - /** - * - * @type {string} - * @memberof PlayerUpdateDTO - */ - 'xboxLiveId'?: string; - /** - * - * @type {string} - * @memberof PlayerUpdateDTO - */ - 'epicOnlineServicesId'?: string; - /** - * - * @type {number} - * @memberof PlayerUpdateDTO - */ - 'playtimeSeconds'?: number; + /** + * + * @type {string} + * @memberof PlayerUpdateDTO + */ + name: string; + /** + * + * @type {string} + * @memberof PlayerUpdateDTO + */ + steamId?: string; + /** + * + * @type {string} + * @memberof PlayerUpdateDTO + */ + xboxLiveId?: string; + /** + * + * @type {string} + * @memberof PlayerUpdateDTO + */ + epicOnlineServicesId?: string; + /** + * + * @type {number} + * @memberof PlayerUpdateDTO + */ + playtimeSeconds?: number; } /** - * + * * @export * @interface PlayersOnlineInputDTO */ export interface PlayersOnlineInputDTO { - /** - * - * @type {string} - * @memberof PlayersOnlineInputDTO - */ - 'gameServerId'?: string; - /** - * - * @type {StatsControllerGetPingStatsStartDateParameter} - * @memberof PlayersOnlineInputDTO - */ - 'startDate'?: StatsControllerGetPingStatsStartDateParameter; - /** - * - * @type {StatsControllerGetPingStatsStartDateParameter} - * @memberof PlayersOnlineInputDTO - */ - 'endDate'?: StatsControllerGetPingStatsStartDateParameter; + /** + * + * @type {string} + * @memberof PlayersOnlineInputDTO + */ + gameServerId?: string; + /** + * + * @type {StatsControllerGetPingStatsStartDateParameter} + * @memberof PlayersOnlineInputDTO + */ + startDate?: StatsControllerGetPingStatsStartDateParameter; + /** + * + * @type {StatsControllerGetPingStatsStartDateParameter} + * @memberof PlayersOnlineInputDTO + */ + endDate?: StatsControllerGetPingStatsStartDateParameter; } /** - * + * * @export * @interface PogParam */ export interface PogParam { - /** - * - * @type {string} - * @memberof PogParam - */ - 'gameServerId': string; - /** - * - * @type {string} - * @memberof PogParam - */ - 'playerId': string; + /** + * + * @type {string} + * @memberof PogParam + */ + gameServerId: string; + /** + * + * @type {string} + * @memberof PogParam + */ + playerId: string; } /** - * + * * @export * @interface PogStatsInputDTO */ export interface PogStatsInputDTO { - /** - * - * @type {string} - * @memberof PogStatsInputDTO - */ - 'gameServerId': string; - /** - * - * @type {string} - * @memberof PogStatsInputDTO - */ - 'playerId': string; - /** - * - * @type {StatsControllerGetPingStatsStartDateParameter} - * @memberof PogStatsInputDTO - */ - 'startDate'?: StatsControllerGetPingStatsStartDateParameter; - /** - * - * @type {StatsControllerGetPingStatsStartDateParameter} - * @memberof PogStatsInputDTO - */ - 'endDate'?: StatsControllerGetPingStatsStartDateParameter; + /** + * + * @type {string} + * @memberof PogStatsInputDTO + */ + gameServerId: string; + /** + * + * @type {string} + * @memberof PogStatsInputDTO + */ + playerId: string; + /** + * + * @type {StatsControllerGetPingStatsStartDateParameter} + * @memberof PogStatsInputDTO + */ + startDate?: StatsControllerGetPingStatsStartDateParameter; + /** + * + * @type {StatsControllerGetPingStatsStartDateParameter} + * @memberof PogStatsInputDTO + */ + endDate?: StatsControllerGetPingStatsStartDateParameter; } /** - * + * * @export * @interface RangeFilterCreatedAndUpdatedAt */ export interface RangeFilterCreatedAndUpdatedAt { - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof RangeFilterCreatedAndUpdatedAt - */ - 'createdAt'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof RangeFilterCreatedAndUpdatedAt - */ - 'updatedAt'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof RangeFilterCreatedAndUpdatedAt + */ + createdAt?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof RangeFilterCreatedAndUpdatedAt + */ + updatedAt?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface RedirectQs */ export interface RedirectQs { - /** - * - * @type {string} - * @memberof RedirectQs - */ - 'redirect': string; + /** + * + * @type {string} + * @memberof RedirectQs + */ + redirect: string; } /** - * + * * @export * @interface RoleCreateInputDTO */ export interface RoleCreateInputDTO { - /** - * - * @type {string} - * @memberof RoleCreateInputDTO - */ - 'name': string; - /** - * - * @type {Array} - * @memberof RoleCreateInputDTO - */ - 'permissions': Array; + /** + * + * @type {string} + * @memberof RoleCreateInputDTO + */ + name: string; + /** + * + * @type {Array} + * @memberof RoleCreateInputDTO + */ + permissions: Array; } /** - * + * * @export * @interface RoleMembersOutputDTO */ export interface RoleMembersOutputDTO { - /** - * - * @type {RoleMembersPlayersOutputDTO} - * @memberof RoleMembersOutputDTO - */ - 'players': RoleMembersPlayersOutputDTO; - /** - * - * @type {RoleMembersUsersOutputDTO} - * @memberof RoleMembersOutputDTO - */ - 'users': RoleMembersUsersOutputDTO; + /** + * + * @type {RoleMembersPlayersOutputDTO} + * @memberof RoleMembersOutputDTO + */ + players: RoleMembersPlayersOutputDTO; + /** + * + * @type {RoleMembersUsersOutputDTO} + * @memberof RoleMembersOutputDTO + */ + users: RoleMembersUsersOutputDTO; } /** - * + * * @export * @interface RoleMembersOutputDTOAPI */ export interface RoleMembersOutputDTOAPI { - /** - * - * @type {RoleMembersOutputDTO} - * @memberof RoleMembersOutputDTOAPI - */ - 'data': RoleMembersOutputDTO; - /** - * - * @type {MetadataOutput} - * @memberof RoleMembersOutputDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {RoleMembersOutputDTO} + * @memberof RoleMembersOutputDTOAPI + */ + data: RoleMembersOutputDTO; + /** + * + * @type {MetadataOutput} + * @memberof RoleMembersOutputDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface RoleMembersPlayersOutputDTO */ export interface RoleMembersPlayersOutputDTO { - /** - * - * @type {number} - * @memberof RoleMembersPlayersOutputDTO - */ - 'total': number; - /** - * - * @type {Array} - * @memberof RoleMembersPlayersOutputDTO - */ - 'results': Array; + /** + * + * @type {number} + * @memberof RoleMembersPlayersOutputDTO + */ + total: number; + /** + * + * @type {Array} + * @memberof RoleMembersPlayersOutputDTO + */ + results: Array; } /** - * + * * @export * @interface RoleMembersUsersOutputDTO */ export interface RoleMembersUsersOutputDTO { - /** - * - * @type {number} - * @memberof RoleMembersUsersOutputDTO - */ - 'total': number; - /** - * - * @type {Array} - * @memberof RoleMembersUsersOutputDTO - */ - 'results': Array; + /** + * + * @type {number} + * @memberof RoleMembersUsersOutputDTO + */ + total: number; + /** + * + * @type {Array} + * @memberof RoleMembersUsersOutputDTO + */ + results: Array; } /** - * + * * @export * @interface RoleOutputArrayDTOAPI */ export interface RoleOutputArrayDTOAPI { - /** - * - * @type {Array} - * @memberof RoleOutputArrayDTOAPI - */ - 'data': Array; - /** - * - * @type {MetadataOutput} - * @memberof RoleOutputArrayDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {Array} + * @memberof RoleOutputArrayDTOAPI + */ + data: Array; + /** + * + * @type {MetadataOutput} + * @memberof RoleOutputArrayDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface RoleOutputDTO */ export interface RoleOutputDTO { - /** - * - * @type {string} - * @memberof RoleOutputDTO - */ - 'name': string; - /** - * - * @type {Array} - * @memberof RoleOutputDTO - */ - 'permissions': Array; - /** - * - * @type {boolean} - * @memberof RoleOutputDTO - */ - 'system': boolean; - /** - * - * @type {string} - * @memberof RoleOutputDTO - */ - 'id': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof RoleOutputDTO - */ - 'createdAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof RoleOutputDTO - */ - 'updatedAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof RoleOutputDTO + */ + name: string; + /** + * + * @type {Array} + * @memberof RoleOutputDTO + */ + permissions: Array; + /** + * + * @type {boolean} + * @memberof RoleOutputDTO + */ + system: boolean; + /** + * + * @type {string} + * @memberof RoleOutputDTO + */ + id: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof RoleOutputDTO + */ + createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof RoleOutputDTO + */ + updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface RoleOutputDTOAPI */ export interface RoleOutputDTOAPI { - /** - * - * @type {RoleOutputDTO} - * @memberof RoleOutputDTOAPI - */ - 'data': RoleOutputDTO; - /** - * - * @type {MetadataOutput} - * @memberof RoleOutputDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {RoleOutputDTO} + * @memberof RoleOutputDTOAPI + */ + data: RoleOutputDTO; + /** + * + * @type {MetadataOutput} + * @memberof RoleOutputDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface RoleSearchInputAllowedFilters */ export interface RoleSearchInputAllowedFilters { - /** - * - * @type {Array} - * @memberof RoleSearchInputAllowedFilters - */ - 'name'?: Array; - /** - * - * @type {Array} - * @memberof RoleSearchInputAllowedFilters - */ - 'id'?: Array; + /** + * + * @type {Array} + * @memberof RoleSearchInputAllowedFilters + */ + name?: Array; + /** + * + * @type {Array} + * @memberof RoleSearchInputAllowedFilters + */ + id?: Array; } /** - * + * * @export * @interface RoleSearchInputDTO */ export interface RoleSearchInputDTO { - /** - * - * @type {RoleSearchInputAllowedFilters} - * @memberof RoleSearchInputDTO - */ - 'filters'?: RoleSearchInputAllowedFilters; - /** - * - * @type {RoleSearchInputAllowedFilters} - * @memberof RoleSearchInputDTO - */ - 'search'?: RoleSearchInputAllowedFilters; - /** - * - * @type {any} - * @memberof RoleSearchInputDTO - */ - 'greaterThan'?: any; - /** - * - * @type {any} - * @memberof RoleSearchInputDTO - */ - 'lessThan'?: any; - /** - * - * @type {number} - * @memberof RoleSearchInputDTO - */ - 'page'?: number; - /** - * - * @type {number} - * @memberof RoleSearchInputDTO - */ - 'limit'?: number; - /** - * - * @type {string} - * @memberof RoleSearchInputDTO - */ - 'sortBy'?: string; - /** - * - * @type {string} - * @memberof RoleSearchInputDTO - */ - 'sortDirection'?: RoleSearchInputDTOSortDirectionEnum; - /** - * - * @type {Array} - * @memberof RoleSearchInputDTO - */ - 'extend'?: Array; + /** + * + * @type {RoleSearchInputAllowedFilters} + * @memberof RoleSearchInputDTO + */ + filters?: RoleSearchInputAllowedFilters; + /** + * + * @type {RoleSearchInputAllowedFilters} + * @memberof RoleSearchInputDTO + */ + search?: RoleSearchInputAllowedFilters; + /** + * + * @type {any} + * @memberof RoleSearchInputDTO + */ + greaterThan?: any; + /** + * + * @type {any} + * @memberof RoleSearchInputDTO + */ + lessThan?: any; + /** + * + * @type {number} + * @memberof RoleSearchInputDTO + */ + page?: number; + /** + * + * @type {number} + * @memberof RoleSearchInputDTO + */ + limit?: number; + /** + * + * @type {string} + * @memberof RoleSearchInputDTO + */ + sortBy?: string; + /** + * + * @type {string} + * @memberof RoleSearchInputDTO + */ + sortDirection?: RoleSearchInputDTOSortDirectionEnum; + /** + * + * @type {Array} + * @memberof RoleSearchInputDTO + */ + extend?: Array; } export const RoleSearchInputDTOSortDirectionEnum = { - Asc: 'asc', - Desc: 'desc' + Asc: 'asc', + Desc: 'desc', } as const; -export type RoleSearchInputDTOSortDirectionEnum = typeof RoleSearchInputDTOSortDirectionEnum[keyof typeof RoleSearchInputDTOSortDirectionEnum]; +export type RoleSearchInputDTOSortDirectionEnum = + (typeof RoleSearchInputDTOSortDirectionEnum)[keyof typeof RoleSearchInputDTOSortDirectionEnum]; /** - * + * * @export * @interface RoleUpdateInputDTO */ export interface RoleUpdateInputDTO { - /** - * - * @type {string} - * @memberof RoleUpdateInputDTO - */ - 'name'?: string; - /** - * - * @type {Array} - * @memberof RoleUpdateInputDTO - */ - 'permissions'?: Array; + /** + * + * @type {string} + * @memberof RoleUpdateInputDTO + */ + name?: string; + /** + * + * @type {Array} + * @memberof RoleUpdateInputDTO + */ + permissions?: Array; } /** - * + * * @export * @interface RustConnectionInfo */ export interface RustConnectionInfo { - /** - * - * @type {string} - * @memberof RustConnectionInfo - */ - 'host': string; - /** - * - * @type {number} - * @memberof RustConnectionInfo - */ - 'rconPort': number; - /** - * - * @type {string} - * @memberof RustConnectionInfo - */ - 'rconPassword': string; - /** - * - * @type {boolean} - * @memberof RustConnectionInfo - */ - 'useTls': boolean; + /** + * + * @type {string} + * @memberof RustConnectionInfo + */ + host: string; + /** + * + * @type {number} + * @memberof RustConnectionInfo + */ + rconPort: number; + /** + * + * @type {string} + * @memberof RustConnectionInfo + */ + rconPassword: string; + /** + * + * @type {boolean} + * @memberof RustConnectionInfo + */ + useTls: boolean; } /** - * + * * @export * @interface SdtdConnectionInfo */ export interface SdtdConnectionInfo { - /** - * - * @type {string} - * @memberof SdtdConnectionInfo - */ - 'host': string; - /** - * - * @type {string} - * @memberof SdtdConnectionInfo - */ - 'adminUser': string; - /** - * - * @type {string} - * @memberof SdtdConnectionInfo - */ - 'adminToken': string; - /** - * - * @type {boolean} - * @memberof SdtdConnectionInfo - */ - 'useTls': boolean; - /** - * - * @type {boolean} - * @memberof SdtdConnectionInfo - */ - 'useCPM': boolean; - /** - * - * @type {boolean} - * @memberof SdtdConnectionInfo - */ - 'useLegacy': boolean; + /** + * + * @type {string} + * @memberof SdtdConnectionInfo + */ + host: string; + /** + * + * @type {string} + * @memberof SdtdConnectionInfo + */ + adminUser: string; + /** + * + * @type {string} + * @memberof SdtdConnectionInfo + */ + adminToken: string; + /** + * + * @type {boolean} + * @memberof SdtdConnectionInfo + */ + useTls: boolean; + /** + * + * @type {boolean} + * @memberof SdtdConnectionInfo + */ + useCPM: boolean; + /** + * + * @type {boolean} + * @memberof SdtdConnectionInfo + */ + useLegacy: boolean; } /** - * + * * @export * @interface SearchRoleInputDTO */ export interface SearchRoleInputDTO { - /** - * - * @type {string} - * @memberof SearchRoleInputDTO - */ - 'name': string; + /** + * + * @type {string} + * @memberof SearchRoleInputDTO + */ + name: string; } /** - * + * * @export * @interface SendMessageInputDTO */ export interface SendMessageInputDTO { - /** - * - * @type {string} - * @memberof SendMessageInputDTO - */ - 'message': string; + /** + * + * @type {string} + * @memberof SendMessageInputDTO + */ + message: string; } /** - * + * * @export * @interface ServiceRoleCreateInputDTO */ export interface ServiceRoleCreateInputDTO { - /** - * - * @type {string} - * @memberof ServiceRoleCreateInputDTO - */ - 'name': string; - /** - * - * @type {Array} - * @memberof ServiceRoleCreateInputDTO - */ - 'permissions': Array; - /** - * - * @type {boolean} - * @memberof ServiceRoleCreateInputDTO - */ - 'system'?: boolean; + /** + * + * @type {string} + * @memberof ServiceRoleCreateInputDTO + */ + name: string; + /** + * + * @type {Array} + * @memberof ServiceRoleCreateInputDTO + */ + permissions: Array; + /** + * + * @type {boolean} + * @memberof ServiceRoleCreateInputDTO + */ + system?: boolean; } /** - * + * * @export * @interface Settings */ export interface Settings { - /** - * - * @type {string} - * @memberof Settings - */ - 'commandPrefix': string; - /** - * - * @type {string} - * @memberof Settings - */ - 'serverChatName': string; - /** - * - * @type {string} - * @memberof Settings - */ - 'economyEnabled': string; - /** - * - * @type {string} - * @memberof Settings - */ - 'currencyName': string; - /** - * - * @type {string} - * @memberof Settings - */ - 'developerMode': string; - /** - * - * @type {string} - * @memberof Settings - */ - 'id': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof Settings - */ - 'createdAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof Settings - */ - 'updatedAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof Settings + */ + commandPrefix: string; + /** + * + * @type {string} + * @memberof Settings + */ + serverChatName: string; + /** + * + * @type {string} + * @memberof Settings + */ + economyEnabled: string; + /** + * + * @type {string} + * @memberof Settings + */ + currencyName: string; + /** + * + * @type {string} + * @memberof Settings + */ + developerMode: string; + /** + * + * @type {string} + * @memberof Settings + */ + id: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof Settings + */ + createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof Settings + */ + updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface SettingsOutputArrayDTOAPI */ export interface SettingsOutputArrayDTOAPI { - /** - * - * @type {Array} - * @memberof SettingsOutputArrayDTOAPI - */ - 'data': Array; - /** - * - * @type {MetadataOutput} - * @memberof SettingsOutputArrayDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {Array} + * @memberof SettingsOutputArrayDTOAPI + */ + data: Array; + /** + * + * @type {MetadataOutput} + * @memberof SettingsOutputArrayDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface SettingsOutputDTO */ export interface SettingsOutputDTO { - /** - * - * @type {string} - * @memberof SettingsOutputDTO - */ - 'key': SettingsOutputDTOKeyEnum; - /** - * - * @type {string} - * @memberof SettingsOutputDTO - */ - 'value': string; - /** - * - * @type {string} - * @memberof SettingsOutputDTO - */ - 'type': SettingsOutputDTOTypeEnum; + /** + * + * @type {string} + * @memberof SettingsOutputDTO + */ + key: SettingsOutputDTOKeyEnum; + /** + * + * @type {string} + * @memberof SettingsOutputDTO + */ + value: string; + /** + * + * @type {string} + * @memberof SettingsOutputDTO + */ + type: SettingsOutputDTOTypeEnum; } export const SettingsOutputDTOKeyEnum = { - CommandPrefix: 'commandPrefix', - ServerChatName: 'serverChatName', - EconomyEnabled: 'economyEnabled', - CurrencyName: 'currencyName', - DeveloperMode: 'developerMode' + CommandPrefix: 'commandPrefix', + ServerChatName: 'serverChatName', + EconomyEnabled: 'economyEnabled', + CurrencyName: 'currencyName', + DeveloperMode: 'developerMode', } as const; -export type SettingsOutputDTOKeyEnum = typeof SettingsOutputDTOKeyEnum[keyof typeof SettingsOutputDTOKeyEnum]; +export type SettingsOutputDTOKeyEnum = (typeof SettingsOutputDTOKeyEnum)[keyof typeof SettingsOutputDTOKeyEnum]; export const SettingsOutputDTOTypeEnum = { - Override: 'override', - Inherit: 'inherit', - Global: 'global', - Default: 'default' + Override: 'override', + Inherit: 'inherit', + Global: 'global', + Default: 'default', } as const; -export type SettingsOutputDTOTypeEnum = typeof SettingsOutputDTOTypeEnum[keyof typeof SettingsOutputDTOTypeEnum]; +export type SettingsOutputDTOTypeEnum = (typeof SettingsOutputDTOTypeEnum)[keyof typeof SettingsOutputDTOTypeEnum]; /** - * + * * @export * @interface SettingsOutputDTOAPI */ export interface SettingsOutputDTOAPI { - /** - * - * @type {SettingsOutputDTO} - * @memberof SettingsOutputDTOAPI - */ - 'data': SettingsOutputDTO; - /** - * - * @type {MetadataOutput} - * @memberof SettingsOutputDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {SettingsOutputDTO} + * @memberof SettingsOutputDTOAPI + */ + data: SettingsOutputDTO; + /** + * + * @type {MetadataOutput} + * @memberof SettingsOutputDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface SettingsSetDTO */ export interface SettingsSetDTO { - /** - * - * @type {string} - * @memberof SettingsSetDTO - */ - 'gameServerId'?: string; - /** - * - * @type {any} - * @memberof SettingsSetDTO - */ - 'value': any; + /** + * + * @type {string} + * @memberof SettingsSetDTO + */ + gameServerId?: string; + /** + * + * @type {any} + * @memberof SettingsSetDTO + */ + value: any; } /** - * + * * @export * @interface ShopImportOptions */ export interface ShopImportOptions { - /** - * - * @type {boolean} - * @memberof ShopImportOptions - */ - 'replace'?: boolean; - /** - * - * @type {boolean} - * @memberof ShopImportOptions - */ - 'draft'?: boolean; - /** - * - * @type {string} - * @memberof ShopImportOptions - */ - 'gameServerId': string; + /** + * + * @type {boolean} + * @memberof ShopImportOptions + */ + replace?: boolean; + /** + * + * @type {boolean} + * @memberof ShopImportOptions + */ + draft?: boolean; + /** + * + * @type {string} + * @memberof ShopImportOptions + */ + gameServerId: string; } /** - * + * * @export * @interface ShopListingCreateDTO */ export interface ShopListingCreateDTO { - /** - * - * @type {string} - * @memberof ShopListingCreateDTO - */ - 'gameServerId': string; - /** - * - * @type {Array} - * @memberof ShopListingCreateDTO - */ - 'items': Array; - /** - * - * @type {number} - * @memberof ShopListingCreateDTO - */ - 'price': number; - /** - * - * @type {string} - * @memberof ShopListingCreateDTO - */ - 'name': string; - /** - * - * @type {boolean} - * @memberof ShopListingCreateDTO - */ - 'draft'?: boolean; + /** + * + * @type {string} + * @memberof ShopListingCreateDTO + */ + gameServerId: string; + /** + * + * @type {Array} + * @memberof ShopListingCreateDTO + */ + items: Array; + /** + * + * @type {number} + * @memberof ShopListingCreateDTO + */ + price: number; + /** + * + * @type {string} + * @memberof ShopListingCreateDTO + */ + name: string; + /** + * + * @type {boolean} + * @memberof ShopListingCreateDTO + */ + draft?: boolean; } /** - * + * * @export * @interface ShopListingItemMetaInputDTO */ export interface ShopListingItemMetaInputDTO { - /** - * - * @type {number} - * @memberof ShopListingItemMetaInputDTO - */ - 'amount': number; - /** - * - * @type {string} - * @memberof ShopListingItemMetaInputDTO - */ - 'quality'?: string; - /** - * - * @type {string} - * @memberof ShopListingItemMetaInputDTO - */ - 'itemId': string; + /** + * + * @type {number} + * @memberof ShopListingItemMetaInputDTO + */ + amount: number; + /** + * + * @type {string} + * @memberof ShopListingItemMetaInputDTO + */ + quality?: string; + /** + * + * @type {string} + * @memberof ShopListingItemMetaInputDTO + */ + itemId: string; } /** - * + * * @export * @interface ShopListingItemMetaOutputDTO */ export interface ShopListingItemMetaOutputDTO { - /** - * - * @type {number} - * @memberof ShopListingItemMetaOutputDTO - */ - 'amount': number; - /** - * - * @type {string} - * @memberof ShopListingItemMetaOutputDTO - */ - 'quality'?: string; - /** - * - * @type {ItemsOutputDTO} - * @memberof ShopListingItemMetaOutputDTO - */ - 'item': ItemsOutputDTO; - /** - * - * @type {string} - * @memberof ShopListingItemMetaOutputDTO - */ - 'id': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof ShopListingItemMetaOutputDTO - */ - 'createdAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof ShopListingItemMetaOutputDTO - */ - 'updatedAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {number} + * @memberof ShopListingItemMetaOutputDTO + */ + amount: number; + /** + * + * @type {string} + * @memberof ShopListingItemMetaOutputDTO + */ + quality?: string; + /** + * + * @type {ItemsOutputDTO} + * @memberof ShopListingItemMetaOutputDTO + */ + item: ItemsOutputDTO; + /** + * + * @type {string} + * @memberof ShopListingItemMetaOutputDTO + */ + id: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof ShopListingItemMetaOutputDTO + */ + createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof ShopListingItemMetaOutputDTO + */ + updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface ShopListingOutputArrayDTOAPI */ export interface ShopListingOutputArrayDTOAPI { - /** - * - * @type {Array} - * @memberof ShopListingOutputArrayDTOAPI - */ - 'data': Array; - /** - * - * @type {MetadataOutput} - * @memberof ShopListingOutputArrayDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {Array} + * @memberof ShopListingOutputArrayDTOAPI + */ + data: Array; + /** + * + * @type {MetadataOutput} + * @memberof ShopListingOutputArrayDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface ShopListingOutputDTO */ export interface ShopListingOutputDTO { - /** - * - * @type {string} - * @memberof ShopListingOutputDTO - */ - 'id': string; - /** - * - * @type {string} - * @memberof ShopListingOutputDTO - */ - 'gameServerId': string; - /** - * - * @type {Array} - * @memberof ShopListingOutputDTO - */ - 'items': Array; - /** - * - * @type {number} - * @memberof ShopListingOutputDTO - */ - 'price': number; - /** - * - * @type {string} - * @memberof ShopListingOutputDTO - */ - 'name': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof ShopListingOutputDTO - */ - 'deletedAt'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {boolean} - * @memberof ShopListingOutputDTO - */ - 'draft': boolean; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof ShopListingOutputDTO - */ - 'createdAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof ShopListingOutputDTO - */ - 'updatedAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof ShopListingOutputDTO + */ + id: string; + /** + * + * @type {string} + * @memberof ShopListingOutputDTO + */ + gameServerId: string; + /** + * + * @type {Array} + * @memberof ShopListingOutputDTO + */ + items: Array; + /** + * + * @type {number} + * @memberof ShopListingOutputDTO + */ + price: number; + /** + * + * @type {string} + * @memberof ShopListingOutputDTO + */ + name: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof ShopListingOutputDTO + */ + deletedAt?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {boolean} + * @memberof ShopListingOutputDTO + */ + draft: boolean; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof ShopListingOutputDTO + */ + createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof ShopListingOutputDTO + */ + updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface ShopListingOutputDTOAPI */ export interface ShopListingOutputDTOAPI { - /** - * - * @type {ShopListingOutputDTO} - * @memberof ShopListingOutputDTOAPI - */ - 'data': ShopListingOutputDTO; - /** - * - * @type {MetadataOutput} - * @memberof ShopListingOutputDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {ShopListingOutputDTO} + * @memberof ShopListingOutputDTOAPI + */ + data: ShopListingOutputDTO; + /** + * + * @type {MetadataOutput} + * @memberof ShopListingOutputDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface ShopListingSearchInputAllowedFilters */ export interface ShopListingSearchInputAllowedFilters { - /** - * - * @type {Array} - * @memberof ShopListingSearchInputAllowedFilters - */ - 'id'?: Array; - /** - * - * @type {Array} - * @memberof ShopListingSearchInputAllowedFilters - */ - 'gameServerId'?: Array; - /** - * - * @type {Array} - * @memberof ShopListingSearchInputAllowedFilters - */ - 'price'?: Array; - /** - * - * @type {Array} - * @memberof ShopListingSearchInputAllowedFilters - */ - 'name'?: Array; - /** - * - * @type {boolean} - * @memberof ShopListingSearchInputAllowedFilters - */ - 'draft'?: boolean; + /** + * + * @type {Array} + * @memberof ShopListingSearchInputAllowedFilters + */ + id?: Array; + /** + * + * @type {Array} + * @memberof ShopListingSearchInputAllowedFilters + */ + gameServerId?: Array; + /** + * + * @type {Array} + * @memberof ShopListingSearchInputAllowedFilters + */ + price?: Array; + /** + * + * @type {Array} + * @memberof ShopListingSearchInputAllowedFilters + */ + name?: Array; + /** + * + * @type {boolean} + * @memberof ShopListingSearchInputAllowedFilters + */ + draft?: boolean; } /** - * + * * @export * @interface ShopListingSearchInputDTO */ export interface ShopListingSearchInputDTO { - /** - * - * @type {ShopListingSearchInputAllowedFilters} - * @memberof ShopListingSearchInputDTO - */ - 'filters'?: ShopListingSearchInputAllowedFilters; - /** - * - * @type {ShopListingSearchInputAllowedFilters} - * @memberof ShopListingSearchInputDTO - */ - 'search'?: ShopListingSearchInputAllowedFilters; - /** - * - * @type {ShopSearchInputAllowedRangeFilter} - * @memberof ShopListingSearchInputDTO - */ - 'greaterThan'?: ShopSearchInputAllowedRangeFilter; - /** - * - * @type {ShopSearchInputAllowedRangeFilter} - * @memberof ShopListingSearchInputDTO - */ - 'lessThan'?: ShopSearchInputAllowedRangeFilter; - /** - * - * @type {number} - * @memberof ShopListingSearchInputDTO - */ - 'page'?: number; - /** - * - * @type {number} - * @memberof ShopListingSearchInputDTO - */ - 'limit'?: number; - /** - * - * @type {string} - * @memberof ShopListingSearchInputDTO - */ - 'sortBy'?: string; - /** - * - * @type {string} - * @memberof ShopListingSearchInputDTO - */ - 'sortDirection'?: ShopListingSearchInputDTOSortDirectionEnum; - /** - * - * @type {Array} - * @memberof ShopListingSearchInputDTO - */ - 'extend'?: Array; + /** + * + * @type {ShopListingSearchInputAllowedFilters} + * @memberof ShopListingSearchInputDTO + */ + filters?: ShopListingSearchInputAllowedFilters; + /** + * + * @type {ShopListingSearchInputAllowedFilters} + * @memberof ShopListingSearchInputDTO + */ + search?: ShopListingSearchInputAllowedFilters; + /** + * + * @type {ShopSearchInputAllowedRangeFilter} + * @memberof ShopListingSearchInputDTO + */ + greaterThan?: ShopSearchInputAllowedRangeFilter; + /** + * + * @type {ShopSearchInputAllowedRangeFilter} + * @memberof ShopListingSearchInputDTO + */ + lessThan?: ShopSearchInputAllowedRangeFilter; + /** + * + * @type {number} + * @memberof ShopListingSearchInputDTO + */ + page?: number; + /** + * + * @type {number} + * @memberof ShopListingSearchInputDTO + */ + limit?: number; + /** + * + * @type {string} + * @memberof ShopListingSearchInputDTO + */ + sortBy?: string; + /** + * + * @type {string} + * @memberof ShopListingSearchInputDTO + */ + sortDirection?: ShopListingSearchInputDTOSortDirectionEnum; + /** + * + * @type {Array} + * @memberof ShopListingSearchInputDTO + */ + extend?: Array; } export const ShopListingSearchInputDTOSortDirectionEnum = { - Asc: 'asc', - Desc: 'desc' + Asc: 'asc', + Desc: 'desc', } as const; -export type ShopListingSearchInputDTOSortDirectionEnum = typeof ShopListingSearchInputDTOSortDirectionEnum[keyof typeof ShopListingSearchInputDTOSortDirectionEnum]; +export type ShopListingSearchInputDTOSortDirectionEnum = + (typeof ShopListingSearchInputDTOSortDirectionEnum)[keyof typeof ShopListingSearchInputDTOSortDirectionEnum]; /** - * + * * @export * @interface ShopListingUpdateDTO */ export interface ShopListingUpdateDTO { - /** - * - * @type {string} - * @memberof ShopListingUpdateDTO - */ - 'gameServerId'?: string; - /** - * - * @type {Array} - * @memberof ShopListingUpdateDTO - */ - 'items'?: Array; - /** - * - * @type {number} - * @memberof ShopListingUpdateDTO - */ - 'price'?: number; - /** - * - * @type {string} - * @memberof ShopListingUpdateDTO - */ - 'name'?: string; - /** - * - * @type {boolean} - * @memberof ShopListingUpdateDTO - */ - 'draft'?: boolean; + /** + * + * @type {string} + * @memberof ShopListingUpdateDTO + */ + gameServerId?: string; + /** + * + * @type {Array} + * @memberof ShopListingUpdateDTO + */ + items?: Array; + /** + * + * @type {number} + * @memberof ShopListingUpdateDTO + */ + price?: number; + /** + * + * @type {string} + * @memberof ShopListingUpdateDTO + */ + name?: string; + /** + * + * @type {boolean} + * @memberof ShopListingUpdateDTO + */ + draft?: boolean; } /** - * + * * @export * @interface ShopOrderCreateDTO */ export interface ShopOrderCreateDTO { - /** - * - * @type {string} - * @memberof ShopOrderCreateDTO - */ - 'listingId': string; - /** - * - * @type {string} - * @memberof ShopOrderCreateDTO - */ - 'playerId'?: string; - /** - * - * @type {number} - * @memberof ShopOrderCreateDTO - */ - 'amount': number; + /** + * + * @type {string} + * @memberof ShopOrderCreateDTO + */ + listingId: string; + /** + * + * @type {string} + * @memberof ShopOrderCreateDTO + */ + playerId?: string; + /** + * + * @type {number} + * @memberof ShopOrderCreateDTO + */ + amount: number; } /** - * + * * @export * @interface ShopOrderCreateInternalDTO */ export interface ShopOrderCreateInternalDTO { - /** - * - * @type {string} - * @memberof ShopOrderCreateInternalDTO - */ - 'playerId'?: string; - /** - * - * @type {string} - * @memberof ShopOrderCreateInternalDTO - */ - 'gameServerId': string; - /** - * - * @type {string} - * @memberof ShopOrderCreateInternalDTO - */ - 'listingId': string; - /** - * - * @type {number} - * @memberof ShopOrderCreateInternalDTO - */ - 'amount': number; + /** + * + * @type {string} + * @memberof ShopOrderCreateInternalDTO + */ + playerId?: string; + /** + * + * @type {string} + * @memberof ShopOrderCreateInternalDTO + */ + gameServerId: string; + /** + * + * @type {string} + * @memberof ShopOrderCreateInternalDTO + */ + listingId: string; + /** + * + * @type {number} + * @memberof ShopOrderCreateInternalDTO + */ + amount: number; } /** - * + * * @export * @interface ShopOrderOutputArrayDTOAPI */ export interface ShopOrderOutputArrayDTOAPI { - /** - * - * @type {Array} - * @memberof ShopOrderOutputArrayDTOAPI - */ - 'data': Array; - /** - * - * @type {MetadataOutput} - * @memberof ShopOrderOutputArrayDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {Array} + * @memberof ShopOrderOutputArrayDTOAPI + */ + data: Array; + /** + * + * @type {MetadataOutput} + * @memberof ShopOrderOutputArrayDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface ShopOrderOutputDTO */ export interface ShopOrderOutputDTO { - /** - * - * @type {string} - * @memberof ShopOrderOutputDTO - */ - 'id': string; - /** - * - * @type {string} - * @memberof ShopOrderOutputDTO - */ - 'listingId': string; - /** - * - * @type {string} - * @memberof ShopOrderOutputDTO - */ - 'playerId': string; - /** - * - * @type {string} - * @memberof ShopOrderOutputDTO - */ - 'gameServerId': string; - /** - * - * @type {number} - * @memberof ShopOrderOutputDTO - */ - 'amount': number; - /** - * - * @type {string} - * @memberof ShopOrderOutputDTO - */ - 'status': ShopOrderOutputDTOStatusEnum; - /** - * - * @type {ShopListingOutputDTO} - * @memberof ShopOrderOutputDTO - */ - 'listing'?: ShopListingOutputDTO; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof ShopOrderOutputDTO - */ - 'createdAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof ShopOrderOutputDTO - */ - 'updatedAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof ShopOrderOutputDTO + */ + id: string; + /** + * + * @type {string} + * @memberof ShopOrderOutputDTO + */ + listingId: string; + /** + * + * @type {string} + * @memberof ShopOrderOutputDTO + */ + playerId: string; + /** + * + * @type {string} + * @memberof ShopOrderOutputDTO + */ + gameServerId: string; + /** + * + * @type {number} + * @memberof ShopOrderOutputDTO + */ + amount: number; + /** + * + * @type {string} + * @memberof ShopOrderOutputDTO + */ + status: ShopOrderOutputDTOStatusEnum; + /** + * + * @type {ShopListingOutputDTO} + * @memberof ShopOrderOutputDTO + */ + listing?: ShopListingOutputDTO; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof ShopOrderOutputDTO + */ + createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof ShopOrderOutputDTO + */ + updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } export const ShopOrderOutputDTOStatusEnum = { - Completed: 'COMPLETED', - Paid: 'PAID', - Canceled: 'CANCELED' + Completed: 'COMPLETED', + Paid: 'PAID', + Canceled: 'CANCELED', } as const; -export type ShopOrderOutputDTOStatusEnum = typeof ShopOrderOutputDTOStatusEnum[keyof typeof ShopOrderOutputDTOStatusEnum]; +export type ShopOrderOutputDTOStatusEnum = + (typeof ShopOrderOutputDTOStatusEnum)[keyof typeof ShopOrderOutputDTOStatusEnum]; /** - * + * * @export * @interface ShopOrderOutputDTOAPI */ export interface ShopOrderOutputDTOAPI { - /** - * - * @type {ShopOrderOutputDTO} - * @memberof ShopOrderOutputDTOAPI - */ - 'data': ShopOrderOutputDTO; - /** - * - * @type {MetadataOutput} - * @memberof ShopOrderOutputDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {ShopOrderOutputDTO} + * @memberof ShopOrderOutputDTOAPI + */ + data: ShopOrderOutputDTO; + /** + * + * @type {MetadataOutput} + * @memberof ShopOrderOutputDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface ShopOrderSearchInputAllowedFilters */ export interface ShopOrderSearchInputAllowedFilters { - /** - * - * @type {Array} - * @memberof ShopOrderSearchInputAllowedFilters - */ - 'listingId'?: Array; - /** - * - * @type {Array} - * @memberof ShopOrderSearchInputAllowedFilters - */ - 'gameServerId'?: Array; - /** - * - * @type {Array} - * @memberof ShopOrderSearchInputAllowedFilters - */ - 'playerId'?: Array; - /** - * - * @type {Array} - * @memberof ShopOrderSearchInputAllowedFilters - */ - 'userId'?: Array; - /** - * - * @type {Array} - * @memberof ShopOrderSearchInputAllowedFilters - */ - 'amount'?: Array; - /** - * - * @type {Array} - * @memberof ShopOrderSearchInputAllowedFilters - */ - 'status'?: Array; - /** - * - * @type {Array} - * @memberof ShopOrderSearchInputAllowedFilters - */ - 'id'?: Array; + /** + * + * @type {Array} + * @memberof ShopOrderSearchInputAllowedFilters + */ + listingId?: Array; + /** + * + * @type {Array} + * @memberof ShopOrderSearchInputAllowedFilters + */ + gameServerId?: Array; + /** + * + * @type {Array} + * @memberof ShopOrderSearchInputAllowedFilters + */ + playerId?: Array; + /** + * + * @type {Array} + * @memberof ShopOrderSearchInputAllowedFilters + */ + userId?: Array; + /** + * + * @type {Array} + * @memberof ShopOrderSearchInputAllowedFilters + */ + amount?: Array; + /** + * + * @type {Array} + * @memberof ShopOrderSearchInputAllowedFilters + */ + status?: Array; + /** + * + * @type {Array} + * @memberof ShopOrderSearchInputAllowedFilters + */ + id?: Array; } /** - * + * * @export * @interface ShopOrderSearchInputAllowedRangeFilter */ export interface ShopOrderSearchInputAllowedRangeFilter { - /** - * - * @type {number} - * @memberof ShopOrderSearchInputAllowedRangeFilter - */ - 'amount'?: number; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof ShopOrderSearchInputAllowedRangeFilter - */ - 'createdAt'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof ShopOrderSearchInputAllowedRangeFilter - */ - 'updatedAt'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {number} + * @memberof ShopOrderSearchInputAllowedRangeFilter + */ + amount?: number; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof ShopOrderSearchInputAllowedRangeFilter + */ + createdAt?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof ShopOrderSearchInputAllowedRangeFilter + */ + updatedAt?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface ShopOrderSearchInputDTO */ export interface ShopOrderSearchInputDTO { - /** - * - * @type {ShopOrderSearchInputAllowedFilters} - * @memberof ShopOrderSearchInputDTO - */ - 'filters'?: ShopOrderSearchInputAllowedFilters; - /** - * - * @type {ShopOrderSearchInputAllowedFilters} - * @memberof ShopOrderSearchInputDTO - */ - 'search'?: ShopOrderSearchInputAllowedFilters; - /** - * - * @type {ShopOrderSearchInputAllowedRangeFilter} - * @memberof ShopOrderSearchInputDTO - */ - 'greaterThan'?: ShopOrderSearchInputAllowedRangeFilter; - /** - * - * @type {ShopOrderSearchInputAllowedRangeFilter} - * @memberof ShopOrderSearchInputDTO - */ - 'lessThan'?: ShopOrderSearchInputAllowedRangeFilter; - /** - * - * @type {number} - * @memberof ShopOrderSearchInputDTO - */ - 'page'?: number; - /** - * - * @type {number} - * @memberof ShopOrderSearchInputDTO - */ - 'limit'?: number; - /** - * - * @type {string} - * @memberof ShopOrderSearchInputDTO - */ - 'sortBy'?: string; - /** - * - * @type {string} - * @memberof ShopOrderSearchInputDTO - */ - 'sortDirection'?: ShopOrderSearchInputDTOSortDirectionEnum; - /** - * - * @type {Array} - * @memberof ShopOrderSearchInputDTO - */ - 'extend'?: Array; + /** + * + * @type {ShopOrderSearchInputAllowedFilters} + * @memberof ShopOrderSearchInputDTO + */ + filters?: ShopOrderSearchInputAllowedFilters; + /** + * + * @type {ShopOrderSearchInputAllowedFilters} + * @memberof ShopOrderSearchInputDTO + */ + search?: ShopOrderSearchInputAllowedFilters; + /** + * + * @type {ShopOrderSearchInputAllowedRangeFilter} + * @memberof ShopOrderSearchInputDTO + */ + greaterThan?: ShopOrderSearchInputAllowedRangeFilter; + /** + * + * @type {ShopOrderSearchInputAllowedRangeFilter} + * @memberof ShopOrderSearchInputDTO + */ + lessThan?: ShopOrderSearchInputAllowedRangeFilter; + /** + * + * @type {number} + * @memberof ShopOrderSearchInputDTO + */ + page?: number; + /** + * + * @type {number} + * @memberof ShopOrderSearchInputDTO + */ + limit?: number; + /** + * + * @type {string} + * @memberof ShopOrderSearchInputDTO + */ + sortBy?: string; + /** + * + * @type {string} + * @memberof ShopOrderSearchInputDTO + */ + sortDirection?: ShopOrderSearchInputDTOSortDirectionEnum; + /** + * + * @type {Array} + * @memberof ShopOrderSearchInputDTO + */ + extend?: Array; } export const ShopOrderSearchInputDTOSortDirectionEnum = { - Asc: 'asc', - Desc: 'desc' + Asc: 'asc', + Desc: 'desc', } as const; -export type ShopOrderSearchInputDTOSortDirectionEnum = typeof ShopOrderSearchInputDTOSortDirectionEnum[keyof typeof ShopOrderSearchInputDTOSortDirectionEnum]; +export type ShopOrderSearchInputDTOSortDirectionEnum = + (typeof ShopOrderSearchInputDTOSortDirectionEnum)[keyof typeof ShopOrderSearchInputDTOSortDirectionEnum]; /** - * + * * @export * @interface ShopOrderUpdateDTO */ export interface ShopOrderUpdateDTO { - /** - * - * @type {string} - * @memberof ShopOrderUpdateDTO - */ - 'status': ShopOrderUpdateDTOStatusEnum; + /** + * + * @type {string} + * @memberof ShopOrderUpdateDTO + */ + status: ShopOrderUpdateDTOStatusEnum; } export const ShopOrderUpdateDTOStatusEnum = { - Completed: 'COMPLETED', - Paid: 'PAID', - Canceled: 'CANCELED' + Completed: 'COMPLETED', + Paid: 'PAID', + Canceled: 'CANCELED', } as const; -export type ShopOrderUpdateDTOStatusEnum = typeof ShopOrderUpdateDTOStatusEnum[keyof typeof ShopOrderUpdateDTOStatusEnum]; +export type ShopOrderUpdateDTOStatusEnum = + (typeof ShopOrderUpdateDTOStatusEnum)[keyof typeof ShopOrderUpdateDTOStatusEnum]; /** - * + * * @export * @interface ShopSearchInputAllowedRangeFilter */ export interface ShopSearchInputAllowedRangeFilter { - /** - * - * @type {number} - * @memberof ShopSearchInputAllowedRangeFilter - */ - 'price'?: number; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof ShopSearchInputAllowedRangeFilter - */ - 'deletedAt'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof ShopSearchInputAllowedRangeFilter - */ - 'createdAt'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof ShopSearchInputAllowedRangeFilter - */ - 'updatedAt'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {number} + * @memberof ShopSearchInputAllowedRangeFilter + */ + price?: number; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof ShopSearchInputAllowedRangeFilter + */ + deletedAt?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof ShopSearchInputAllowedRangeFilter + */ + createdAt?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof ShopSearchInputAllowedRangeFilter + */ + updatedAt?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** * @type StatsControllerGetPingStatsStartDateParameter @@ -8950,1536 +9033,1538 @@ export interface ShopSearchInputAllowedRangeFilter { export type StatsControllerGetPingStatsStartDateParameter = string; /** - * + * * @export * @interface StatsOutputDTO */ export interface StatsOutputDTO { - /** - * - * @type {object} - * @memberof StatsOutputDTO - */ - 'values': object; + /** + * + * @type {object} + * @memberof StatsOutputDTO + */ + values: object; } /** - * + * * @export * @interface StatsOutputDTOAPI */ export interface StatsOutputDTOAPI { - /** - * - * @type {StatsOutputDTO} - * @memberof StatsOutputDTOAPI - */ - 'data': StatsOutputDTO; - /** - * - * @type {MetadataOutput} - * @memberof StatsOutputDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {StatsOutputDTO} + * @memberof StatsOutputDTOAPI + */ + data: StatsOutputDTO; + /** + * + * @type {MetadataOutput} + * @memberof StatsOutputDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface TakaroEventCommandDetails */ export interface TakaroEventCommandDetails { - /** - * - * @type {string} - * @memberof TakaroEventCommandDetails - */ - 'id': string; - /** - * - * @type {string} - * @memberof TakaroEventCommandDetails - */ - 'name': string; - /** - * - * @type {object} - * @memberof TakaroEventCommandDetails - */ - 'arguments': object; + /** + * + * @type {string} + * @memberof TakaroEventCommandDetails + */ + id: string; + /** + * + * @type {string} + * @memberof TakaroEventCommandDetails + */ + name: string; + /** + * + * @type {object} + * @memberof TakaroEventCommandDetails + */ + arguments: object; } /** - * + * * @export * @interface TakaroEventCommandExecuted */ export interface TakaroEventCommandExecuted { - /** - * - * @type {TakaroEventFunctionResult} - * @memberof TakaroEventCommandExecuted - */ - 'result': TakaroEventFunctionResult; - /** - * - * @type {TakaroEventCommandDetails} - * @memberof TakaroEventCommandExecuted - */ - 'command'?: TakaroEventCommandDetails; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof TakaroEventCommandExecuted - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {TakaroEventFunctionResult} + * @memberof TakaroEventCommandExecuted + */ + result: TakaroEventFunctionResult; + /** + * + * @type {TakaroEventCommandDetails} + * @memberof TakaroEventCommandExecuted + */ + command?: TakaroEventCommandDetails; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof TakaroEventCommandExecuted + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface TakaroEventCronjobDetails */ export interface TakaroEventCronjobDetails { - /** - * - * @type {string} - * @memberof TakaroEventCronjobDetails - */ - 'id': string; - /** - * - * @type {string} - * @memberof TakaroEventCronjobDetails - */ - 'name': string; + /** + * + * @type {string} + * @memberof TakaroEventCronjobDetails + */ + id: string; + /** + * + * @type {string} + * @memberof TakaroEventCronjobDetails + */ + name: string; } /** - * + * * @export * @interface TakaroEventCronjobExecuted */ export interface TakaroEventCronjobExecuted { - /** - * - * @type {TakaroEventFunctionResult} - * @memberof TakaroEventCronjobExecuted - */ - 'result': TakaroEventFunctionResult; - /** - * - * @type {TakaroEventCronjobDetails} - * @memberof TakaroEventCronjobExecuted - */ - 'cronjob'?: TakaroEventCronjobDetails; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof TakaroEventCronjobExecuted - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {TakaroEventFunctionResult} + * @memberof TakaroEventCronjobExecuted + */ + result: TakaroEventFunctionResult; + /** + * + * @type {TakaroEventCronjobDetails} + * @memberof TakaroEventCronjobExecuted + */ + cronjob?: TakaroEventCronjobDetails; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof TakaroEventCronjobExecuted + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface TakaroEventCurrencyAdded */ export interface TakaroEventCurrencyAdded { - /** - * - * @type {number} - * @memberof TakaroEventCurrencyAdded - */ - 'amount': number; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof TakaroEventCurrencyAdded - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {number} + * @memberof TakaroEventCurrencyAdded + */ + amount: number; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof TakaroEventCurrencyAdded + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface TakaroEventCurrencyDeducted */ export interface TakaroEventCurrencyDeducted { - /** - * - * @type {number} - * @memberof TakaroEventCurrencyDeducted - */ - 'amount': number; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof TakaroEventCurrencyDeducted - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {number} + * @memberof TakaroEventCurrencyDeducted + */ + amount: number; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof TakaroEventCurrencyDeducted + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface TakaroEventFunctionLog */ export interface TakaroEventFunctionLog { - /** - * - * @type {string} - * @memberof TakaroEventFunctionLog - */ - 'msg': string; - /** - * - * @type {any} - * @memberof TakaroEventFunctionLog - */ - 'details'?: any; + /** + * + * @type {string} + * @memberof TakaroEventFunctionLog + */ + msg: string; + /** + * + * @type {any} + * @memberof TakaroEventFunctionLog + */ + details?: any; } /** - * + * * @export * @interface TakaroEventFunctionResult */ export interface TakaroEventFunctionResult { - /** - * - * @type {Array} - * @memberof TakaroEventFunctionResult - */ - 'logs': Array; - /** - * - * @type {boolean} - * @memberof TakaroEventFunctionResult - */ - 'success': boolean; - /** - * - * @type {string} - * @memberof TakaroEventFunctionResult - */ - 'reason'?: string; - /** - * - * @type {number} - * @memberof TakaroEventFunctionResult - */ - 'tryAgainIn'?: number; + /** + * + * @type {Array} + * @memberof TakaroEventFunctionResult + */ + logs: Array; + /** + * + * @type {boolean} + * @memberof TakaroEventFunctionResult + */ + success: boolean; + /** + * + * @type {string} + * @memberof TakaroEventFunctionResult + */ + reason?: string; + /** + * + * @type {number} + * @memberof TakaroEventFunctionResult + */ + tryAgainIn?: number; } /** - * + * * @export * @interface TakaroEventHookDetails */ export interface TakaroEventHookDetails { - /** - * - * @type {string} - * @memberof TakaroEventHookDetails - */ - 'id': string; - /** - * - * @type {string} - * @memberof TakaroEventHookDetails - */ - 'name': string; + /** + * + * @type {string} + * @memberof TakaroEventHookDetails + */ + id: string; + /** + * + * @type {string} + * @memberof TakaroEventHookDetails + */ + name: string; } /** - * + * * @export * @interface TakaroEventHookExecuted */ export interface TakaroEventHookExecuted { - /** - * - * @type {TakaroEventFunctionResult} - * @memberof TakaroEventHookExecuted - */ - 'result': TakaroEventFunctionResult; - /** - * - * @type {TakaroEventHookDetails} - * @memberof TakaroEventHookExecuted - */ - 'hook'?: TakaroEventHookDetails; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof TakaroEventHookExecuted - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {TakaroEventFunctionResult} + * @memberof TakaroEventHookExecuted + */ + result: TakaroEventFunctionResult; + /** + * + * @type {TakaroEventHookDetails} + * @memberof TakaroEventHookExecuted + */ + hook?: TakaroEventHookDetails; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof TakaroEventHookExecuted + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface TakaroEventModuleCreated */ export interface TakaroEventModuleCreated { - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof TakaroEventModuleCreated - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof TakaroEventModuleCreated + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface TakaroEventModuleDeleted */ export interface TakaroEventModuleDeleted { - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof TakaroEventModuleDeleted - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof TakaroEventModuleDeleted + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface TakaroEventModuleInstalled */ export interface TakaroEventModuleInstalled { - /** - * - * @type {string} - * @memberof TakaroEventModuleInstalled - */ - 'userConfig': string; - /** - * - * @type {string} - * @memberof TakaroEventModuleInstalled - */ - 'systemConfig': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof TakaroEventModuleInstalled - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof TakaroEventModuleInstalled + */ + userConfig: string; + /** + * + * @type {string} + * @memberof TakaroEventModuleInstalled + */ + systemConfig: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof TakaroEventModuleInstalled + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface TakaroEventModuleUninstalled */ export interface TakaroEventModuleUninstalled { - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof TakaroEventModuleUninstalled - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof TakaroEventModuleUninstalled + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface TakaroEventModuleUpdated */ export interface TakaroEventModuleUpdated { - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof TakaroEventModuleUpdated - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof TakaroEventModuleUpdated + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface TakaroEventPlayerCreated */ export interface TakaroEventPlayerCreated { - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof TakaroEventPlayerCreated - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof TakaroEventPlayerCreated + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface TakaroEventPlayerLinked */ export interface TakaroEventPlayerLinked { - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof TakaroEventPlayerLinked - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof TakaroEventPlayerLinked + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface TakaroEventPlayerNewIpDetected */ export interface TakaroEventPlayerNewIpDetected { - /** - * - * @type {string} - * @memberof TakaroEventPlayerNewIpDetected - */ - 'country': string; - /** - * - * @type {string} - * @memberof TakaroEventPlayerNewIpDetected - */ - 'city': string; - /** - * - * @type {string} - * @memberof TakaroEventPlayerNewIpDetected - */ - 'longitude': string; - /** - * - * @type {string} - * @memberof TakaroEventPlayerNewIpDetected - */ - 'latitude': string; - /** - * - * @type {string} - * @memberof TakaroEventPlayerNewIpDetected - */ - 'ip': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof TakaroEventPlayerNewIpDetected - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof TakaroEventPlayerNewIpDetected + */ + country: string; + /** + * + * @type {string} + * @memberof TakaroEventPlayerNewIpDetected + */ + city: string; + /** + * + * @type {string} + * @memberof TakaroEventPlayerNewIpDetected + */ + longitude: string; + /** + * + * @type {string} + * @memberof TakaroEventPlayerNewIpDetected + */ + latitude: string; + /** + * + * @type {string} + * @memberof TakaroEventPlayerNewIpDetected + */ + ip: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof TakaroEventPlayerNewIpDetected + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface TakaroEventRoleAssigned */ export interface TakaroEventRoleAssigned { - /** - * - * @type {TakaroEventRoleMeta} - * @memberof TakaroEventRoleAssigned - */ - 'role': TakaroEventRoleMeta; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof TakaroEventRoleAssigned - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {TakaroEventRoleMeta} + * @memberof TakaroEventRoleAssigned + */ + role: TakaroEventRoleMeta; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof TakaroEventRoleAssigned + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface TakaroEventRoleCreated */ export interface TakaroEventRoleCreated { - /** - * - * @type {TakaroEventRoleMeta} - * @memberof TakaroEventRoleCreated - */ - 'role': TakaroEventRoleMeta; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof TakaroEventRoleCreated - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {TakaroEventRoleMeta} + * @memberof TakaroEventRoleCreated + */ + role: TakaroEventRoleMeta; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof TakaroEventRoleCreated + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface TakaroEventRoleDeleted */ export interface TakaroEventRoleDeleted { - /** - * - * @type {TakaroEventRoleMeta} - * @memberof TakaroEventRoleDeleted - */ - 'role': TakaroEventRoleMeta; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof TakaroEventRoleDeleted - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {TakaroEventRoleMeta} + * @memberof TakaroEventRoleDeleted + */ + role: TakaroEventRoleMeta; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof TakaroEventRoleDeleted + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface TakaroEventRoleMeta */ export interface TakaroEventRoleMeta { - /** - * - * @type {string} - * @memberof TakaroEventRoleMeta - */ - 'id': string; - /** - * - * @type {string} - * @memberof TakaroEventRoleMeta - */ - 'name': string; + /** + * + * @type {string} + * @memberof TakaroEventRoleMeta + */ + id: string; + /** + * + * @type {string} + * @memberof TakaroEventRoleMeta + */ + name: string; } /** - * + * * @export * @interface TakaroEventRoleRemoved */ export interface TakaroEventRoleRemoved { - /** - * - * @type {TakaroEventRoleMeta} - * @memberof TakaroEventRoleRemoved - */ - 'role': TakaroEventRoleMeta; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof TakaroEventRoleRemoved - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {TakaroEventRoleMeta} + * @memberof TakaroEventRoleRemoved + */ + role: TakaroEventRoleMeta; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof TakaroEventRoleRemoved + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface TakaroEventRoleUpdated */ export interface TakaroEventRoleUpdated { - /** - * - * @type {TakaroEventRoleMeta} - * @memberof TakaroEventRoleUpdated - */ - 'role': TakaroEventRoleMeta; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof TakaroEventRoleUpdated - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {TakaroEventRoleMeta} + * @memberof TakaroEventRoleUpdated + */ + role: TakaroEventRoleMeta; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof TakaroEventRoleUpdated + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface TakaroEventServerStatusChanged */ export interface TakaroEventServerStatusChanged { - /** - * - * @type {string} - * @memberof TakaroEventServerStatusChanged - */ - 'status': string; - /** - * - * @type {any} - * @memberof TakaroEventServerStatusChanged - */ - 'details'?: any; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof TakaroEventServerStatusChanged - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof TakaroEventServerStatusChanged + */ + status: string; + /** + * + * @type {any} + * @memberof TakaroEventServerStatusChanged + */ + details?: any; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof TakaroEventServerStatusChanged + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface TakaroEventSettingsSet */ export interface TakaroEventSettingsSet { - /** - * - * @type {string} - * @memberof TakaroEventSettingsSet - */ - 'key': string; - /** - * - * @type {string} - * @memberof TakaroEventSettingsSet - */ - 'value'?: string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof TakaroEventSettingsSet - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof TakaroEventSettingsSet + */ + key: string; + /** + * + * @type {string} + * @memberof TakaroEventSettingsSet + */ + value?: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof TakaroEventSettingsSet + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface TakaroEventShopListingCreated */ export interface TakaroEventShopListingCreated { - /** - * - * @type {string} - * @memberof TakaroEventShopListingCreated - */ - 'id': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof TakaroEventShopListingCreated - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof TakaroEventShopListingCreated + */ + id: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof TakaroEventShopListingCreated + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface TakaroEventShopListingDeleted */ export interface TakaroEventShopListingDeleted { - /** - * - * @type {string} - * @memberof TakaroEventShopListingDeleted - */ - 'id': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof TakaroEventShopListingDeleted - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof TakaroEventShopListingDeleted + */ + id: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof TakaroEventShopListingDeleted + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface TakaroEventShopListingUpdated */ export interface TakaroEventShopListingUpdated { - /** - * - * @type {string} - * @memberof TakaroEventShopListingUpdated - */ - 'id': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof TakaroEventShopListingUpdated - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof TakaroEventShopListingUpdated + */ + id: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof TakaroEventShopListingUpdated + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface TakaroEventShopOrderCreated */ export interface TakaroEventShopOrderCreated { - /** - * - * @type {string} - * @memberof TakaroEventShopOrderCreated - */ - 'id': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof TakaroEventShopOrderCreated - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof TakaroEventShopOrderCreated + */ + id: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof TakaroEventShopOrderCreated + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface TakaroEventShopOrderStatusChanged */ export interface TakaroEventShopOrderStatusChanged { - /** - * - * @type {string} - * @memberof TakaroEventShopOrderStatusChanged - */ - 'id': string; - /** - * - * @type {string} - * @memberof TakaroEventShopOrderStatusChanged - */ - 'status': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof TakaroEventShopOrderStatusChanged - */ - 'timestamp': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof TakaroEventShopOrderStatusChanged + */ + id: string; + /** + * + * @type {string} + * @memberof TakaroEventShopOrderStatusChanged + */ + status: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof TakaroEventShopOrderStatusChanged + */ + timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface TakaroModelDTO */ export interface TakaroModelDTO { - /** - * - * @type {string} - * @memberof TakaroModelDTO - */ - 'id': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof TakaroModelDTO - */ - 'createdAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof TakaroModelDTO - */ - 'updatedAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof TakaroModelDTO + */ + id: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof TakaroModelDTO + */ + createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof TakaroModelDTO + */ + updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface TeleportPlayerInputDTO */ export interface TeleportPlayerInputDTO { - /** - * - * @type {number} - * @memberof TeleportPlayerInputDTO - */ - 'x': number; - /** - * - * @type {number} - * @memberof TeleportPlayerInputDTO - */ - 'y': number; - /** - * - * @type {number} - * @memberof TeleportPlayerInputDTO - */ - 'z': number; + /** + * + * @type {number} + * @memberof TeleportPlayerInputDTO + */ + x: number; + /** + * + * @type {number} + * @memberof TeleportPlayerInputDTO + */ + y: number; + /** + * + * @type {number} + * @memberof TeleportPlayerInputDTO + */ + z: number; } /** - * + * * @export * @interface TestReachabilityOutputDTO */ export interface TestReachabilityOutputDTO { - /** - * - * @type {boolean} - * @memberof TestReachabilityOutputDTO - */ - 'connectable': boolean; - /** - * - * @type {string} - * @memberof TestReachabilityOutputDTO - */ - 'reason'?: string; - /** - * - * @type {number} - * @memberof TestReachabilityOutputDTO - */ - 'latency'?: number; + /** + * + * @type {boolean} + * @memberof TestReachabilityOutputDTO + */ + connectable: boolean; + /** + * + * @type {string} + * @memberof TestReachabilityOutputDTO + */ + reason?: string; + /** + * + * @type {number} + * @memberof TestReachabilityOutputDTO + */ + latency?: number; } /** - * + * * @export * @interface TokenInputDTO */ export interface TokenInputDTO { - /** - * - * @type {string} - * @memberof TokenInputDTO - */ - 'domainId': string; + /** + * + * @type {string} + * @memberof TokenInputDTO + */ + domainId: string; } /** - * + * * @export * @interface TokenOutputDTO */ export interface TokenOutputDTO { - /** - * - * @type {string} - * @memberof TokenOutputDTO - */ - 'token': string; + /** + * + * @type {string} + * @memberof TokenOutputDTO + */ + token: string; } /** - * + * * @export * @interface TokenOutputDTOAPI */ export interface TokenOutputDTOAPI { - /** - * - * @type {TokenOutputDTO} - * @memberof TokenOutputDTOAPI - */ - 'data': TokenOutputDTO; - /** - * - * @type {MetadataOutput} - * @memberof TokenOutputDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {TokenOutputDTO} + * @memberof TokenOutputDTOAPI + */ + data: TokenOutputDTO; + /** + * + * @type {MetadataOutput} + * @memberof TokenOutputDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface UserAssignmentOutputDTO */ export interface UserAssignmentOutputDTO { - /** - * - * @type {string} - * @memberof UserAssignmentOutputDTO - */ - 'userId': string; - /** - * - * @type {string} - * @memberof UserAssignmentOutputDTO - */ - 'roleId': string; - /** - * - * @type {string} - * @memberof UserAssignmentOutputDTO - */ - 'gameServerId'?: string; - /** - * - * @type {RoleOutputDTO} - * @memberof UserAssignmentOutputDTO - */ - 'role': RoleOutputDTO; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof UserAssignmentOutputDTO - */ - 'expiresAt'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {string} - * @memberof UserAssignmentOutputDTO - */ - 'id': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof UserAssignmentOutputDTO - */ - 'createdAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof UserAssignmentOutputDTO - */ - 'updatedAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof UserAssignmentOutputDTO + */ + userId: string; + /** + * + * @type {string} + * @memberof UserAssignmentOutputDTO + */ + roleId: string; + /** + * + * @type {string} + * @memberof UserAssignmentOutputDTO + */ + gameServerId?: string; + /** + * + * @type {RoleOutputDTO} + * @memberof UserAssignmentOutputDTO + */ + role: RoleOutputDTO; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof UserAssignmentOutputDTO + */ + expiresAt?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof UserAssignmentOutputDTO + */ + id: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof UserAssignmentOutputDTO + */ + createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof UserAssignmentOutputDTO + */ + updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface UserCreateInputDTO */ export interface UserCreateInputDTO { - /** - * - * @type {string} - * @memberof UserCreateInputDTO - */ - 'name': string; - /** - * - * @type {string} - * @memberof UserCreateInputDTO - */ - 'email': string; - /** - * - * @type {string} - * @memberof UserCreateInputDTO - */ - 'password': string; - /** - * - * @type {string} - * @memberof UserCreateInputDTO - */ - 'idpId'?: string; + /** + * + * @type {string} + * @memberof UserCreateInputDTO + */ + name: string; + /** + * + * @type {string} + * @memberof UserCreateInputDTO + */ + email: string; + /** + * + * @type {string} + * @memberof UserCreateInputDTO + */ + password: string; + /** + * + * @type {string} + * @memberof UserCreateInputDTO + */ + idpId?: string; } /** - * + * * @export * @interface UserOutputArrayDTOAPI */ export interface UserOutputArrayDTOAPI { - /** - * - * @type {Array} - * @memberof UserOutputArrayDTOAPI - */ - 'data': Array; - /** - * - * @type {MetadataOutput} - * @memberof UserOutputArrayDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {Array} + * @memberof UserOutputArrayDTOAPI + */ + data: Array; + /** + * + * @type {MetadataOutput} + * @memberof UserOutputArrayDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface UserOutputDTO */ export interface UserOutputDTO { - /** - * - * @type {string} - * @memberof UserOutputDTO - */ - 'name': string; - /** - * - * @type {string} - * @memberof UserOutputDTO - */ - 'email': string; - /** - * - * @type {string} - * @memberof UserOutputDTO - */ - 'idpId': string; - /** - * - * @type {string} - * @memberof UserOutputDTO - */ - 'discordId'?: string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof UserOutputDTO - */ - 'lastSeen': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {string} - * @memberof UserOutputDTO - */ - 'playerId'?: string; - /** - * - * @type {string} - * @memberof UserOutputDTO - */ - 'id': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof UserOutputDTO - */ - 'createdAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof UserOutputDTO - */ - 'updatedAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof UserOutputDTO + */ + name: string; + /** + * + * @type {string} + * @memberof UserOutputDTO + */ + email: string; + /** + * + * @type {string} + * @memberof UserOutputDTO + */ + idpId: string; + /** + * + * @type {string} + * @memberof UserOutputDTO + */ + discordId?: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof UserOutputDTO + */ + lastSeen: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof UserOutputDTO + */ + playerId?: string; + /** + * + * @type {string} + * @memberof UserOutputDTO + */ + id: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof UserOutputDTO + */ + createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof UserOutputDTO + */ + updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface UserOutputDTOAPI */ export interface UserOutputDTOAPI { - /** - * - * @type {UserOutputWithRolesDTO} - * @memberof UserOutputDTOAPI - */ - 'data': UserOutputWithRolesDTO; - /** - * - * @type {MetadataOutput} - * @memberof UserOutputDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {UserOutputWithRolesDTO} + * @memberof UserOutputDTOAPI + */ + data: UserOutputWithRolesDTO; + /** + * + * @type {MetadataOutput} + * @memberof UserOutputDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface UserOutputWithRolesDTO */ export interface UserOutputWithRolesDTO { - /** - * - * @type {Array} - * @memberof UserOutputWithRolesDTO - */ - 'roles': Array; - /** - * - * @type {string} - * @memberof UserOutputWithRolesDTO - */ - 'id': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof UserOutputWithRolesDTO - */ - 'createdAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof UserOutputWithRolesDTO - */ - 'updatedAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {string} - * @memberof UserOutputWithRolesDTO - */ - 'name': string; - /** - * - * @type {string} - * @memberof UserOutputWithRolesDTO - */ - 'email': string; - /** - * - * @type {string} - * @memberof UserOutputWithRolesDTO - */ - 'idpId': string; - /** - * - * @type {string} - * @memberof UserOutputWithRolesDTO - */ - 'discordId'?: string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof UserOutputWithRolesDTO - */ - 'lastSeen': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {string} - * @memberof UserOutputWithRolesDTO - */ - 'playerId'?: string; + /** + * + * @type {Array} + * @memberof UserOutputWithRolesDTO + */ + roles: Array; + /** + * + * @type {string} + * @memberof UserOutputWithRolesDTO + */ + id: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof UserOutputWithRolesDTO + */ + createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof UserOutputWithRolesDTO + */ + updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof UserOutputWithRolesDTO + */ + name: string; + /** + * + * @type {string} + * @memberof UserOutputWithRolesDTO + */ + email: string; + /** + * + * @type {string} + * @memberof UserOutputWithRolesDTO + */ + idpId: string; + /** + * + * @type {string} + * @memberof UserOutputWithRolesDTO + */ + discordId?: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof UserOutputWithRolesDTO + */ + lastSeen: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof UserOutputWithRolesDTO + */ + playerId?: string; } /** - * + * * @export * @interface UserRoleAssignChangeDTO */ export interface UserRoleAssignChangeDTO { - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof UserRoleAssignChangeDTO - */ - 'expiresAt'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof UserRoleAssignChangeDTO + */ + expiresAt?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface UserSearchInputAllowedFilters */ export interface UserSearchInputAllowedFilters { - /** - * - * @type {Array} - * @memberof UserSearchInputAllowedFilters - */ - 'name'?: Array; - /** - * - * @type {Array} - * @memberof UserSearchInputAllowedFilters - */ - 'idpId'?: Array; - /** - * - * @type {Array} - * @memberof UserSearchInputAllowedFilters - */ - 'discordId'?: Array; - /** - * - * @type {Array} - * @memberof UserSearchInputAllowedFilters - */ - 'playerId'?: Array; - /** - * - * @type {Array} - * @memberof UserSearchInputAllowedFilters - */ - 'roleId'?: Array; - /** - * - * @type {Array} - * @memberof UserSearchInputAllowedFilters - */ - 'id'?: Array; + /** + * + * @type {Array} + * @memberof UserSearchInputAllowedFilters + */ + name?: Array; + /** + * + * @type {Array} + * @memberof UserSearchInputAllowedFilters + */ + idpId?: Array; + /** + * + * @type {Array} + * @memberof UserSearchInputAllowedFilters + */ + discordId?: Array; + /** + * + * @type {Array} + * @memberof UserSearchInputAllowedFilters + */ + playerId?: Array; + /** + * + * @type {Array} + * @memberof UserSearchInputAllowedFilters + */ + roleId?: Array; + /** + * + * @type {Array} + * @memberof UserSearchInputAllowedFilters + */ + id?: Array; } /** - * + * * @export * @interface UserSearchInputAllowedRangeFilter */ export interface UserSearchInputAllowedRangeFilter { - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof UserSearchInputAllowedRangeFilter - */ - 'lastSeen'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof UserSearchInputAllowedRangeFilter - */ - 'createdAt'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof UserSearchInputAllowedRangeFilter - */ - 'updatedAt'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof UserSearchInputAllowedRangeFilter + */ + lastSeen?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof UserSearchInputAllowedRangeFilter + */ + createdAt?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof UserSearchInputAllowedRangeFilter + */ + updatedAt?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface UserSearchInputDTO */ export interface UserSearchInputDTO { - /** - * - * @type {UserSearchInputAllowedFilters} - * @memberof UserSearchInputDTO - */ - 'filters'?: UserSearchInputAllowedFilters; - /** - * - * @type {UserSearchInputAllowedFilters} - * @memberof UserSearchInputDTO - */ - 'search'?: UserSearchInputAllowedFilters; - /** - * - * @type {UserSearchInputAllowedRangeFilter} - * @memberof UserSearchInputDTO - */ - 'greaterThan'?: UserSearchInputAllowedRangeFilter; - /** - * - * @type {UserSearchInputAllowedRangeFilter} - * @memberof UserSearchInputDTO - */ - 'lessThan'?: UserSearchInputAllowedRangeFilter; - /** - * - * @type {number} - * @memberof UserSearchInputDTO - */ - 'page'?: number; - /** - * - * @type {number} - * @memberof UserSearchInputDTO - */ - 'limit'?: number; - /** - * - * @type {string} - * @memberof UserSearchInputDTO - */ - 'sortBy'?: string; - /** - * - * @type {string} - * @memberof UserSearchInputDTO - */ - 'sortDirection'?: UserSearchInputDTOSortDirectionEnum; - /** - * - * @type {Array} - * @memberof UserSearchInputDTO - */ - 'extend'?: Array; + /** + * + * @type {UserSearchInputAllowedFilters} + * @memberof UserSearchInputDTO + */ + filters?: UserSearchInputAllowedFilters; + /** + * + * @type {UserSearchInputAllowedFilters} + * @memberof UserSearchInputDTO + */ + search?: UserSearchInputAllowedFilters; + /** + * + * @type {UserSearchInputAllowedRangeFilter} + * @memberof UserSearchInputDTO + */ + greaterThan?: UserSearchInputAllowedRangeFilter; + /** + * + * @type {UserSearchInputAllowedRangeFilter} + * @memberof UserSearchInputDTO + */ + lessThan?: UserSearchInputAllowedRangeFilter; + /** + * + * @type {number} + * @memberof UserSearchInputDTO + */ + page?: number; + /** + * + * @type {number} + * @memberof UserSearchInputDTO + */ + limit?: number; + /** + * + * @type {string} + * @memberof UserSearchInputDTO + */ + sortBy?: string; + /** + * + * @type {string} + * @memberof UserSearchInputDTO + */ + sortDirection?: UserSearchInputDTOSortDirectionEnum; + /** + * + * @type {Array} + * @memberof UserSearchInputDTO + */ + extend?: Array; } export const UserSearchInputDTOSortDirectionEnum = { - Asc: 'asc', - Desc: 'desc' + Asc: 'asc', + Desc: 'desc', } as const; -export type UserSearchInputDTOSortDirectionEnum = typeof UserSearchInputDTOSortDirectionEnum[keyof typeof UserSearchInputDTOSortDirectionEnum]; +export type UserSearchInputDTOSortDirectionEnum = + (typeof UserSearchInputDTOSortDirectionEnum)[keyof typeof UserSearchInputDTOSortDirectionEnum]; /** - * + * * @export * @interface UserUpdateAuthDTO */ export interface UserUpdateAuthDTO { - /** - * - * @type {string} - * @memberof UserUpdateAuthDTO - */ - 'discordId'?: string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof UserUpdateAuthDTO - */ - 'lastSeen'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof UserUpdateAuthDTO + */ + discordId?: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof UserUpdateAuthDTO + */ + lastSeen?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface UserUpdateDTO */ export interface UserUpdateDTO { - /** - * - * @type {string} - * @memberof UserUpdateDTO - */ - 'name'?: string; + /** + * + * @type {string} + * @memberof UserUpdateDTO + */ + name?: string; } /** - * + * * @export * @interface VariableCreateDTO */ export interface VariableCreateDTO { - /** - * - * @type {string} - * @memberof VariableCreateDTO - */ - 'key': string; - /** - * - * @type {string} - * @memberof VariableCreateDTO - */ - 'value': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof VariableCreateDTO - */ - 'expiresAt'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {string} - * @memberof VariableCreateDTO - */ - 'gameServerId'?: string; - /** - * - * @type {string} - * @memberof VariableCreateDTO - */ - 'playerId'?: string; - /** - * - * @type {string} - * @memberof VariableCreateDTO - */ - 'moduleId'?: string; + /** + * + * @type {string} + * @memberof VariableCreateDTO + */ + key: string; + /** + * + * @type {string} + * @memberof VariableCreateDTO + */ + value: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof VariableCreateDTO + */ + expiresAt?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof VariableCreateDTO + */ + gameServerId?: string; + /** + * + * @type {string} + * @memberof VariableCreateDTO + */ + playerId?: string; + /** + * + * @type {string} + * @memberof VariableCreateDTO + */ + moduleId?: string; } /** - * + * * @export * @interface VariableOutputArrayDTOAPI */ export interface VariableOutputArrayDTOAPI { - /** - * - * @type {Array} - * @memberof VariableOutputArrayDTOAPI - */ - 'data': Array; - /** - * - * @type {MetadataOutput} - * @memberof VariableOutputArrayDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {Array} + * @memberof VariableOutputArrayDTOAPI + */ + data: Array; + /** + * + * @type {MetadataOutput} + * @memberof VariableOutputArrayDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface VariableOutputDTO */ export interface VariableOutputDTO { - /** - * - * @type {string} - * @memberof VariableOutputDTO - */ - 'key': string; - /** - * - * @type {string} - * @memberof VariableOutputDTO - */ - 'value': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof VariableOutputDTO - */ - 'expiresAt'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {string} - * @memberof VariableOutputDTO - */ - 'gameServerId'?: string; - /** - * - * @type {string} - * @memberof VariableOutputDTO - */ - 'playerId'?: string; - /** - * - * @type {string} - * @memberof VariableOutputDTO - */ - 'moduleId'?: string; - /** - * - * @type {GameServerOutputDTO} - * @memberof VariableOutputDTO - */ - 'gameServer'?: GameServerOutputDTO; - /** - * - * @type {ModuleOutputDTO} - * @memberof VariableOutputDTO - */ - 'module'?: ModuleOutputDTO; - /** - * - * @type {PlayerOutputDTO} - * @memberof VariableOutputDTO - */ - 'player'?: PlayerOutputDTO; - /** - * - * @type {string} - * @memberof VariableOutputDTO - */ - 'id': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof VariableOutputDTO - */ - 'createdAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof VariableOutputDTO - */ - 'updatedAt': NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof VariableOutputDTO + */ + key: string; + /** + * + * @type {string} + * @memberof VariableOutputDTO + */ + value: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof VariableOutputDTO + */ + expiresAt?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof VariableOutputDTO + */ + gameServerId?: string; + /** + * + * @type {string} + * @memberof VariableOutputDTO + */ + playerId?: string; + /** + * + * @type {string} + * @memberof VariableOutputDTO + */ + moduleId?: string; + /** + * + * @type {GameServerOutputDTO} + * @memberof VariableOutputDTO + */ + gameServer?: GameServerOutputDTO; + /** + * + * @type {ModuleOutputDTO} + * @memberof VariableOutputDTO + */ + module?: ModuleOutputDTO; + /** + * + * @type {PlayerOutputDTO} + * @memberof VariableOutputDTO + */ + player?: PlayerOutputDTO; + /** + * + * @type {string} + * @memberof VariableOutputDTO + */ + id: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof VariableOutputDTO + */ + createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof VariableOutputDTO + */ + updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; } /** - * + * * @export * @interface VariableOutputDTOAPI */ export interface VariableOutputDTOAPI { - /** - * - * @type {VariableOutputDTO} - * @memberof VariableOutputDTOAPI - */ - 'data': VariableOutputDTO; - /** - * - * @type {MetadataOutput} - * @memberof VariableOutputDTOAPI - */ - 'meta': MetadataOutput; + /** + * + * @type {VariableOutputDTO} + * @memberof VariableOutputDTOAPI + */ + data: VariableOutputDTO; + /** + * + * @type {MetadataOutput} + * @memberof VariableOutputDTOAPI + */ + meta: MetadataOutput; } /** - * + * * @export * @interface VariableSearchInputAllowedFilters */ export interface VariableSearchInputAllowedFilters { - /** - * - * @type {Array} - * @memberof VariableSearchInputAllowedFilters - */ - 'key'?: Array; - /** - * - * @type {Array} - * @memberof VariableSearchInputAllowedFilters - */ - 'gameServerId'?: Array; - /** - * - * @type {Array} - * @memberof VariableSearchInputAllowedFilters - */ - 'playerId'?: Array; - /** - * - * @type {Array} - * @memberof VariableSearchInputAllowedFilters - */ - 'moduleId'?: Array; - /** - * - * @type {Array} - * @memberof VariableSearchInputAllowedFilters - */ - 'id'?: Array; + /** + * + * @type {Array} + * @memberof VariableSearchInputAllowedFilters + */ + key?: Array; + /** + * + * @type {Array} + * @memberof VariableSearchInputAllowedFilters + */ + gameServerId?: Array; + /** + * + * @type {Array} + * @memberof VariableSearchInputAllowedFilters + */ + playerId?: Array; + /** + * + * @type {Array} + * @memberof VariableSearchInputAllowedFilters + */ + moduleId?: Array; + /** + * + * @type {Array} + * @memberof VariableSearchInputAllowedFilters + */ + id?: Array; } /** - * + * * @export * @interface VariableSearchInputDTO */ export interface VariableSearchInputDTO { - /** - * - * @type {VariableSearchInputAllowedFilters} - * @memberof VariableSearchInputDTO - */ - 'filters'?: VariableSearchInputAllowedFilters; - /** - * - * @type {VariableSearchInputAllowedFilters} - * @memberof VariableSearchInputDTO - */ - 'search'?: VariableSearchInputAllowedFilters; - /** - * - * @type {any} - * @memberof VariableSearchInputDTO - */ - 'greaterThan'?: any; - /** - * - * @type {any} - * @memberof VariableSearchInputDTO - */ - 'lessThan'?: any; - /** - * - * @type {number} - * @memberof VariableSearchInputDTO - */ - 'page'?: number; - /** - * - * @type {number} - * @memberof VariableSearchInputDTO - */ - 'limit'?: number; - /** - * - * @type {string} - * @memberof VariableSearchInputDTO - */ - 'sortBy'?: string; - /** - * - * @type {string} - * @memberof VariableSearchInputDTO - */ - 'sortDirection'?: VariableSearchInputDTOSortDirectionEnum; - /** - * - * @type {Array} - * @memberof VariableSearchInputDTO - */ - 'extend'?: Array; + /** + * + * @type {VariableSearchInputAllowedFilters} + * @memberof VariableSearchInputDTO + */ + filters?: VariableSearchInputAllowedFilters; + /** + * + * @type {VariableSearchInputAllowedFilters} + * @memberof VariableSearchInputDTO + */ + search?: VariableSearchInputAllowedFilters; + /** + * + * @type {any} + * @memberof VariableSearchInputDTO + */ + greaterThan?: any; + /** + * + * @type {any} + * @memberof VariableSearchInputDTO + */ + lessThan?: any; + /** + * + * @type {number} + * @memberof VariableSearchInputDTO + */ + page?: number; + /** + * + * @type {number} + * @memberof VariableSearchInputDTO + */ + limit?: number; + /** + * + * @type {string} + * @memberof VariableSearchInputDTO + */ + sortBy?: string; + /** + * + * @type {string} + * @memberof VariableSearchInputDTO + */ + sortDirection?: VariableSearchInputDTOSortDirectionEnum; + /** + * + * @type {Array} + * @memberof VariableSearchInputDTO + */ + extend?: Array; } export const VariableSearchInputDTOSortDirectionEnum = { - Asc: 'asc', - Desc: 'desc' + Asc: 'asc', + Desc: 'desc', } as const; -export type VariableSearchInputDTOSortDirectionEnum = typeof VariableSearchInputDTOSortDirectionEnum[keyof typeof VariableSearchInputDTOSortDirectionEnum]; +export type VariableSearchInputDTOSortDirectionEnum = + (typeof VariableSearchInputDTOSortDirectionEnum)[keyof typeof VariableSearchInputDTOSortDirectionEnum]; /** - * + * * @export * @interface VariableUpdateDTO */ export interface VariableUpdateDTO { - /** - * - * @type {string} - * @memberof VariableUpdateDTO - */ - 'key'?: string; - /** - * - * @type {string} - * @memberof VariableUpdateDTO - */ - 'value': string; - /** - * - * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} - * @memberof VariableUpdateDTO - */ - 'expiresAt'?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; - /** - * - * @type {string} - * @memberof VariableUpdateDTO - */ - 'gameServerId'?: string; - /** - * - * @type {string} - * @memberof VariableUpdateDTO - */ - 'playerId'?: string; - /** - * - * @type {string} - * @memberof VariableUpdateDTO - */ - 'moduleId'?: string; + /** + * + * @type {string} + * @memberof VariableUpdateDTO + */ + key?: string; + /** + * + * @type {string} + * @memberof VariableUpdateDTO + */ + value: string; + /** + * + * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt} + * @memberof VariableUpdateDTO + */ + expiresAt?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt; + /** + * + * @type {string} + * @memberof VariableUpdateDTO + */ + gameServerId?: string; + /** + * + * @type {string} + * @memberof VariableUpdateDTO + */ + playerId?: string; + /** + * + * @type {string} + * @memberof VariableUpdateDTO + */ + moduleId?: string; } /** @@ -10487,11385 +10572,13950 @@ export interface VariableUpdateDTO { * @export */ export const CommandApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * Required permissions: `MANAGE_MODULES` - * @summary Create - * @param {CommandCreateDTO} [commandCreateDTO] CommandCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - commandControllerCreate: async (commandCreateDTO?: CommandCreateDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/command`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(commandCreateDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Create argument - * @param {CommandArgumentCreateDTO} [commandArgumentCreateDTO] CommandArgumentCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - commandControllerCreateArgument: async (commandArgumentCreateDTO?: CommandArgumentCreateDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/command/argument`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(commandArgumentCreateDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `READ_MODULES` - * @summary Get executions - * @param {string} id - * @param {any} [success] - * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - commandControllerGetExecutions: async (id: string, success?: any, eventSearchInputDTO?: EventSearchInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('commandControllerGetExecutions', 'id', id) - const localVarPath = `/command/{id}/executions` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - if (success !== undefined) { - for (const [key, value] of Object.entries(success)) { - localVarQueryParameter[key] = value; - } - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(eventSearchInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `READ_MODULES` - * @summary Get one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - commandControllerGetOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('commandControllerGetOne', 'id', id) - const localVarPath = `/command/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Remove - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - commandControllerRemove: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('commandControllerRemove', 'id', id) - const localVarPath = `/command/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Remove argument - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - commandControllerRemoveArgument: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('commandControllerRemoveArgument', 'id', id) - const localVarPath = `/command/argument/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `READ_MODULES` - * @summary Search - * @param {CommandSearchInputDTO} [commandSearchInputDTO] CommandSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - commandControllerSearch: async (commandSearchInputDTO?: CommandSearchInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/command/search`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(commandSearchInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Trigger - * @param {string} id - * @param {CommandTriggerDTO} [commandTriggerDTO] CommandTriggerDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - commandControllerTrigger: async (id: string, commandTriggerDTO?: CommandTriggerDTO, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('commandControllerTrigger', 'id', id) - const localVarPath = `/command/{id}/trigger` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(commandTriggerDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Update - * @param {string} id - * @param {CommandUpdateDTO} [commandUpdateDTO] CommandUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - commandControllerUpdate: async (id: string, commandUpdateDTO?: CommandUpdateDTO, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('commandControllerUpdate', 'id', id) - const localVarPath = `/command/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(commandUpdateDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Update argument - * @param {string} id - * @param {CommandArgumentUpdateDTO} [commandArgumentUpdateDTO] CommandArgumentUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - commandControllerUpdateArgument: async (id: string, commandArgumentUpdateDTO?: CommandArgumentUpdateDTO, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('commandControllerUpdateArgument', 'id', id) - const localVarPath = `/command/argument/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(commandArgumentUpdateDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * CommandApi - functional programming interface - * @export - */ -export const CommandApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = CommandApiAxiosParamCreator(configuration) - return { - /** - * Required permissions: `MANAGE_MODULES` - * @summary Create - * @param {CommandCreateDTO} [commandCreateDTO] CommandCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async commandControllerCreate(commandCreateDTO?: CommandCreateDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.commandControllerCreate(commandCreateDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['CommandApi.commandControllerCreate']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Create argument - * @param {CommandArgumentCreateDTO} [commandArgumentCreateDTO] CommandArgumentCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async commandControllerCreateArgument(commandArgumentCreateDTO?: CommandArgumentCreateDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.commandControllerCreateArgument(commandArgumentCreateDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['CommandApi.commandControllerCreateArgument']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `READ_MODULES` - * @summary Get executions - * @param {string} id - * @param {any} [success] - * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async commandControllerGetExecutions(id: string, success?: any, eventSearchInputDTO?: EventSearchInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.commandControllerGetExecutions(id, success, eventSearchInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['CommandApi.commandControllerGetExecutions']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `READ_MODULES` - * @summary Get one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async commandControllerGetOne(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.commandControllerGetOne(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['CommandApi.commandControllerGetOne']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Remove - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async commandControllerRemove(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.commandControllerRemove(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['CommandApi.commandControllerRemove']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Remove argument - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async commandControllerRemoveArgument(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.commandControllerRemoveArgument(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['CommandApi.commandControllerRemoveArgument']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `READ_MODULES` - * @summary Search - * @param {CommandSearchInputDTO} [commandSearchInputDTO] CommandSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async commandControllerSearch(commandSearchInputDTO?: CommandSearchInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.commandControllerSearch(commandSearchInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['CommandApi.commandControllerSearch']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Trigger - * @param {string} id - * @param {CommandTriggerDTO} [commandTriggerDTO] CommandTriggerDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async commandControllerTrigger(id: string, commandTriggerDTO?: CommandTriggerDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.commandControllerTrigger(id, commandTriggerDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['CommandApi.commandControllerTrigger']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Update - * @param {string} id - * @param {CommandUpdateDTO} [commandUpdateDTO] CommandUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async commandControllerUpdate(id: string, commandUpdateDTO?: CommandUpdateDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.commandControllerUpdate(id, commandUpdateDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['CommandApi.commandControllerUpdate']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Update argument - * @param {string} id - * @param {CommandArgumentUpdateDTO} [commandArgumentUpdateDTO] CommandArgumentUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async commandControllerUpdateArgument(id: string, commandArgumentUpdateDTO?: CommandArgumentUpdateDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.commandControllerUpdateArgument(id, commandArgumentUpdateDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['CommandApi.commandControllerUpdateArgument']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - } -}; - -/** - * CommandApi - factory interface - * @export - */ -export const CommandApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = CommandApiFp(configuration) - return { - /** - * Required permissions: `MANAGE_MODULES` - * @summary Create - * @param {CommandCreateDTO} [commandCreateDTO] CommandCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - commandControllerCreate(commandCreateDTO?: CommandCreateDTO, options?: any): AxiosPromise { - return localVarFp.commandControllerCreate(commandCreateDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Create argument - * @param {CommandArgumentCreateDTO} [commandArgumentCreateDTO] CommandArgumentCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - commandControllerCreateArgument(commandArgumentCreateDTO?: CommandArgumentCreateDTO, options?: any): AxiosPromise { - return localVarFp.commandControllerCreateArgument(commandArgumentCreateDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `READ_MODULES` - * @summary Get executions - * @param {string} id - * @param {any} [success] - * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - commandControllerGetExecutions(id: string, success?: any, eventSearchInputDTO?: EventSearchInputDTO, options?: any): AxiosPromise { - return localVarFp.commandControllerGetExecutions(id, success, eventSearchInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `READ_MODULES` - * @summary Get one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - commandControllerGetOne(id: string, options?: any): AxiosPromise { - return localVarFp.commandControllerGetOne(id, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Remove - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - commandControllerRemove(id: string, options?: any): AxiosPromise { - return localVarFp.commandControllerRemove(id, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Remove argument - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - commandControllerRemoveArgument(id: string, options?: any): AxiosPromise { - return localVarFp.commandControllerRemoveArgument(id, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `READ_MODULES` - * @summary Search - * @param {CommandSearchInputDTO} [commandSearchInputDTO] CommandSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - commandControllerSearch(commandSearchInputDTO?: CommandSearchInputDTO, options?: any): AxiosPromise { - return localVarFp.commandControllerSearch(commandSearchInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Trigger - * @param {string} id - * @param {CommandTriggerDTO} [commandTriggerDTO] CommandTriggerDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - commandControllerTrigger(id: string, commandTriggerDTO?: CommandTriggerDTO, options?: any): AxiosPromise { - return localVarFp.commandControllerTrigger(id, commandTriggerDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Update - * @param {string} id - * @param {CommandUpdateDTO} [commandUpdateDTO] CommandUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - commandControllerUpdate(id: string, commandUpdateDTO?: CommandUpdateDTO, options?: any): AxiosPromise { - return localVarFp.commandControllerUpdate(id, commandUpdateDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Update argument - * @param {string} id - * @param {CommandArgumentUpdateDTO} [commandArgumentUpdateDTO] CommandArgumentUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - commandControllerUpdateArgument(id: string, commandArgumentUpdateDTO?: CommandArgumentUpdateDTO, options?: any): AxiosPromise { - return localVarFp.commandControllerUpdateArgument(id, commandArgumentUpdateDTO, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * CommandApi - object-oriented interface - * @export - * @class CommandApi - * @extends {BaseAPI} - */ -export class CommandApi extends BaseAPI { + return { /** * Required permissions: `MANAGE_MODULES` * @summary Create * @param {CommandCreateDTO} [commandCreateDTO] CommandCreateDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof CommandApi */ - public commandControllerCreate(commandCreateDTO?: CommandCreateDTO, options?: RawAxiosRequestConfig) { - return CommandApiFp(this.configuration).commandControllerCreate(commandCreateDTO, options).then((request) => request(this.axios, this.basePath)); - } - + commandControllerCreate: async ( + commandCreateDTO?: CommandCreateDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/command`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(commandCreateDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** * Required permissions: `MANAGE_MODULES` * @summary Create argument * @param {CommandArgumentCreateDTO} [commandArgumentCreateDTO] CommandArgumentCreateDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof CommandApi */ - public commandControllerCreateArgument(commandArgumentCreateDTO?: CommandArgumentCreateDTO, options?: RawAxiosRequestConfig) { - return CommandApiFp(this.configuration).commandControllerCreateArgument(commandArgumentCreateDTO, options).then((request) => request(this.axios, this.basePath)); - } - + commandControllerCreateArgument: async ( + commandArgumentCreateDTO?: CommandArgumentCreateDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/command/argument`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded( + commandArgumentCreateDTO, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** * Required permissions: `READ_MODULES` * @summary Get executions - * @param {string} id - * @param {any} [success] + * @param {string} id + * @param {any} [success] * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof CommandApi */ - public commandControllerGetExecutions(id: string, success?: any, eventSearchInputDTO?: EventSearchInputDTO, options?: RawAxiosRequestConfig) { - return CommandApiFp(this.configuration).commandControllerGetExecutions(id, success, eventSearchInputDTO, options).then((request) => request(this.axios, this.basePath)); - } - + commandControllerGetExecutions: async ( + id: string, + success?: any, + eventSearchInputDTO?: EventSearchInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('commandControllerGetExecutions', 'id', id); + const localVarPath = `/command/{id}/executions`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + if (success !== undefined) { + for (const [key, value] of Object.entries(success)) { + localVarQueryParameter[key] = value; + } + } + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(eventSearchInputDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** * Required permissions: `READ_MODULES` * @summary Get one - * @param {string} id + * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof CommandApi */ - public commandControllerGetOne(id: string, options?: RawAxiosRequestConfig) { - return CommandApiFp(this.configuration).commandControllerGetOne(id, options).then((request) => request(this.axios, this.basePath)); - } - + commandControllerGetOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('commandControllerGetOne', 'id', id); + const localVarPath = `/command/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** * Required permissions: `MANAGE_MODULES` * @summary Remove - * @param {string} id + * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof CommandApi */ - public commandControllerRemove(id: string, options?: RawAxiosRequestConfig) { - return CommandApiFp(this.configuration).commandControllerRemove(id, options).then((request) => request(this.axios, this.basePath)); - } - + commandControllerRemove: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('commandControllerRemove', 'id', id); + const localVarPath = `/command/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** * Required permissions: `MANAGE_MODULES` * @summary Remove argument - * @param {string} id + * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof CommandApi */ - public commandControllerRemoveArgument(id: string, options?: RawAxiosRequestConfig) { - return CommandApiFp(this.configuration).commandControllerRemoveArgument(id, options).then((request) => request(this.axios, this.basePath)); - } - + commandControllerRemoveArgument: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('commandControllerRemoveArgument', 'id', id); + const localVarPath = `/command/argument/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** * Required permissions: `READ_MODULES` * @summary Search * @param {CommandSearchInputDTO} [commandSearchInputDTO] CommandSearchInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof CommandApi */ - public commandControllerSearch(commandSearchInputDTO?: CommandSearchInputDTO, options?: RawAxiosRequestConfig) { - return CommandApiFp(this.configuration).commandControllerSearch(commandSearchInputDTO, options).then((request) => request(this.axios, this.basePath)); - } - + commandControllerSearch: async ( + commandSearchInputDTO?: CommandSearchInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/command/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(commandSearchInputDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** * Required permissions: `MANAGE_MODULES` * @summary Trigger - * @param {string} id + * @param {string} id * @param {CommandTriggerDTO} [commandTriggerDTO] CommandTriggerDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof CommandApi */ - public commandControllerTrigger(id: string, commandTriggerDTO?: CommandTriggerDTO, options?: RawAxiosRequestConfig) { - return CommandApiFp(this.configuration).commandControllerTrigger(id, commandTriggerDTO, options).then((request) => request(this.axios, this.basePath)); - } - + commandControllerTrigger: async ( + id: string, + commandTriggerDTO?: CommandTriggerDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('commandControllerTrigger', 'id', id); + const localVarPath = `/command/{id}/trigger`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(commandTriggerDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** * Required permissions: `MANAGE_MODULES` * @summary Update - * @param {string} id + * @param {string} id * @param {CommandUpdateDTO} [commandUpdateDTO] CommandUpdateDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof CommandApi */ - public commandControllerUpdate(id: string, commandUpdateDTO?: CommandUpdateDTO, options?: RawAxiosRequestConfig) { - return CommandApiFp(this.configuration).commandControllerUpdate(id, commandUpdateDTO, options).then((request) => request(this.axios, this.basePath)); - } - + commandControllerUpdate: async ( + id: string, + commandUpdateDTO?: CommandUpdateDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('commandControllerUpdate', 'id', id); + const localVarPath = `/command/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(commandUpdateDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** * Required permissions: `MANAGE_MODULES` * @summary Update argument - * @param {string} id + * @param {string} id * @param {CommandArgumentUpdateDTO} [commandArgumentUpdateDTO] CommandArgumentUpdateDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof CommandApi */ - public commandControllerUpdateArgument(id: string, commandArgumentUpdateDTO?: CommandArgumentUpdateDTO, options?: RawAxiosRequestConfig) { - return CommandApiFp(this.configuration).commandControllerUpdateArgument(id, commandArgumentUpdateDTO, options).then((request) => request(this.axios, this.basePath)); - } -} - - - -/** - * CronJobApi - axios parameter creator - * @export - */ -export const CronJobApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * Required permissions: `MANAGE_MODULES` - * @summary Create - * @param {CronJobCreateDTO} [cronJobCreateDTO] CronJobCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - cronJobControllerCreate: async (cronJobCreateDTO?: CronJobCreateDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/cronjob`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(cronJobCreateDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `READ_MODULES` - * @summary Get executions - * @param {string} id - * @param {any} [success] - * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - cronJobControllerGetExecutions: async (id: string, success?: any, eventSearchInputDTO?: EventSearchInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('cronJobControllerGetExecutions', 'id', id) - const localVarPath = `/cronjob/{id}/executions` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - if (success !== undefined) { - for (const [key, value] of Object.entries(success)) { - localVarQueryParameter[key] = value; - } - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(eventSearchInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `READ_MODULES` - * @summary Get one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - cronJobControllerGetOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('cronJobControllerGetOne', 'id', id) - const localVarPath = `/cronjob/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Remove - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - cronJobControllerRemove: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('cronJobControllerRemove', 'id', id) - const localVarPath = `/cronjob/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `READ_MODULES` - * @summary Search - * @param {CronJobSearchInputDTO} [cronJobSearchInputDTO] CronJobSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - cronJobControllerSearch: async (cronJobSearchInputDTO?: CronJobSearchInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/cronjob/search`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(cronJobSearchInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Trigger - * @param {CronJobTriggerDTO} [cronJobTriggerDTO] CronJobTriggerDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - cronJobControllerTrigger: async (cronJobTriggerDTO?: CronJobTriggerDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/cronjob/trigger`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(cronJobTriggerDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Update - * @param {string} id - * @param {CronJobUpdateDTO} [cronJobUpdateDTO] CronJobUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - cronJobControllerUpdate: async (id: string, cronJobUpdateDTO?: CronJobUpdateDTO, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('cronJobControllerUpdate', 'id', id) - const localVarPath = `/cronjob/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(cronJobUpdateDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * CronJobApi - functional programming interface - * @export - */ -export const CronJobApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = CronJobApiAxiosParamCreator(configuration) - return { - /** - * Required permissions: `MANAGE_MODULES` - * @summary Create - * @param {CronJobCreateDTO} [cronJobCreateDTO] CronJobCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async cronJobControllerCreate(cronJobCreateDTO?: CronJobCreateDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.cronJobControllerCreate(cronJobCreateDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['CronJobApi.cronJobControllerCreate']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `READ_MODULES` - * @summary Get executions - * @param {string} id - * @param {any} [success] - * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async cronJobControllerGetExecutions(id: string, success?: any, eventSearchInputDTO?: EventSearchInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.cronJobControllerGetExecutions(id, success, eventSearchInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['CronJobApi.cronJobControllerGetExecutions']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `READ_MODULES` - * @summary Get one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async cronJobControllerGetOne(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.cronJobControllerGetOne(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['CronJobApi.cronJobControllerGetOne']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Remove - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async cronJobControllerRemove(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.cronJobControllerRemove(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['CronJobApi.cronJobControllerRemove']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `READ_MODULES` - * @summary Search - * @param {CronJobSearchInputDTO} [cronJobSearchInputDTO] CronJobSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async cronJobControllerSearch(cronJobSearchInputDTO?: CronJobSearchInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.cronJobControllerSearch(cronJobSearchInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['CronJobApi.cronJobControllerSearch']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Trigger - * @param {CronJobTriggerDTO} [cronJobTriggerDTO] CronJobTriggerDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async cronJobControllerTrigger(cronJobTriggerDTO?: CronJobTriggerDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.cronJobControllerTrigger(cronJobTriggerDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['CronJobApi.cronJobControllerTrigger']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Update - * @param {string} id - * @param {CronJobUpdateDTO} [cronJobUpdateDTO] CronJobUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async cronJobControllerUpdate(id: string, cronJobUpdateDTO?: CronJobUpdateDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.cronJobControllerUpdate(id, cronJobUpdateDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['CronJobApi.cronJobControllerUpdate']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - } -}; - -/** - * CronJobApi - factory interface - * @export - */ -export const CronJobApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = CronJobApiFp(configuration) - return { - /** - * Required permissions: `MANAGE_MODULES` - * @summary Create - * @param {CronJobCreateDTO} [cronJobCreateDTO] CronJobCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - cronJobControllerCreate(cronJobCreateDTO?: CronJobCreateDTO, options?: any): AxiosPromise { - return localVarFp.cronJobControllerCreate(cronJobCreateDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `READ_MODULES` - * @summary Get executions - * @param {string} id - * @param {any} [success] - * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - cronJobControllerGetExecutions(id: string, success?: any, eventSearchInputDTO?: EventSearchInputDTO, options?: any): AxiosPromise { - return localVarFp.cronJobControllerGetExecutions(id, success, eventSearchInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `READ_MODULES` - * @summary Get one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - cronJobControllerGetOne(id: string, options?: any): AxiosPromise { - return localVarFp.cronJobControllerGetOne(id, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Remove - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - cronJobControllerRemove(id: string, options?: any): AxiosPromise { - return localVarFp.cronJobControllerRemove(id, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `READ_MODULES` - * @summary Search - * @param {CronJobSearchInputDTO} [cronJobSearchInputDTO] CronJobSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - cronJobControllerSearch(cronJobSearchInputDTO?: CronJobSearchInputDTO, options?: any): AxiosPromise { - return localVarFp.cronJobControllerSearch(cronJobSearchInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Trigger - * @param {CronJobTriggerDTO} [cronJobTriggerDTO] CronJobTriggerDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - cronJobControllerTrigger(cronJobTriggerDTO?: CronJobTriggerDTO, options?: any): AxiosPromise { - return localVarFp.cronJobControllerTrigger(cronJobTriggerDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Update - * @param {string} id - * @param {CronJobUpdateDTO} [cronJobUpdateDTO] CronJobUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - cronJobControllerUpdate(id: string, cronJobUpdateDTO?: CronJobUpdateDTO, options?: any): AxiosPromise { - return localVarFp.cronJobControllerUpdate(id, cronJobUpdateDTO, options).then((request) => request(axios, basePath)); - }, - }; + commandControllerUpdateArgument: async ( + id: string, + commandArgumentUpdateDTO?: CommandArgumentUpdateDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('commandControllerUpdateArgument', 'id', id); + const localVarPath = `/command/argument/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded( + commandArgumentUpdateDTO, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; }; /** - * CronJobApi - object-oriented interface + * CommandApi - functional programming interface * @export - * @class CronJobApi - * @extends {BaseAPI} */ -export class CronJobApi extends BaseAPI { +export const CommandApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = CommandApiAxiosParamCreator(configuration); + return { /** * Required permissions: `MANAGE_MODULES` * @summary Create - * @param {CronJobCreateDTO} [cronJobCreateDTO] CronJobCreateDTO + * @param {CommandCreateDTO} [commandCreateDTO] CommandCreateDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof CronJobApi */ - public cronJobControllerCreate(cronJobCreateDTO?: CronJobCreateDTO, options?: RawAxiosRequestConfig) { - return CronJobApiFp(this.configuration).cronJobControllerCreate(cronJobCreateDTO, options).then((request) => request(this.axios, this.basePath)); - } - + async commandControllerCreate( + commandCreateDTO?: CommandCreateDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.commandControllerCreate(commandCreateDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['CommandApi.commandControllerCreate']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `MANAGE_MODULES` + * @summary Create argument + * @param {CommandArgumentCreateDTO} [commandArgumentCreateDTO] CommandArgumentCreateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async commandControllerCreateArgument( + commandArgumentCreateDTO?: CommandArgumentCreateDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.commandControllerCreateArgument( + commandArgumentCreateDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['CommandApi.commandControllerCreateArgument']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, /** * Required permissions: `READ_MODULES` * @summary Get executions - * @param {string} id - * @param {any} [success] + * @param {string} id + * @param {any} [success] * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof CronJobApi */ - public cronJobControllerGetExecutions(id: string, success?: any, eventSearchInputDTO?: EventSearchInputDTO, options?: RawAxiosRequestConfig) { - return CronJobApiFp(this.configuration).cronJobControllerGetExecutions(id, success, eventSearchInputDTO, options).then((request) => request(this.axios, this.basePath)); - } - + async commandControllerGetExecutions( + id: string, + success?: any, + eventSearchInputDTO?: EventSearchInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.commandControllerGetExecutions( + id, + success, + eventSearchInputDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['CommandApi.commandControllerGetExecutions']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, /** * Required permissions: `READ_MODULES` * @summary Get one - * @param {string} id + * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof CronJobApi */ - public cronJobControllerGetOne(id: string, options?: RawAxiosRequestConfig) { - return CronJobApiFp(this.configuration).cronJobControllerGetOne(id, options).then((request) => request(this.axios, this.basePath)); - } - + async commandControllerGetOne( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.commandControllerGetOne(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['CommandApi.commandControllerGetOne']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, /** * Required permissions: `MANAGE_MODULES` * @summary Remove - * @param {string} id + * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof CronJobApi */ - public cronJobControllerRemove(id: string, options?: RawAxiosRequestConfig) { - return CronJobApiFp(this.configuration).cronJobControllerRemove(id, options).then((request) => request(this.axios, this.basePath)); - } - + async commandControllerRemove( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.commandControllerRemove(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['CommandApi.commandControllerRemove']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `MANAGE_MODULES` + * @summary Remove argument + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async commandControllerRemoveArgument( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.commandControllerRemoveArgument(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['CommandApi.commandControllerRemoveArgument']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, /** * Required permissions: `READ_MODULES` * @summary Search - * @param {CronJobSearchInputDTO} [cronJobSearchInputDTO] CronJobSearchInputDTO + * @param {CommandSearchInputDTO} [commandSearchInputDTO] CommandSearchInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof CronJobApi */ - public cronJobControllerSearch(cronJobSearchInputDTO?: CronJobSearchInputDTO, options?: RawAxiosRequestConfig) { - return CronJobApiFp(this.configuration).cronJobControllerSearch(cronJobSearchInputDTO, options).then((request) => request(this.axios, this.basePath)); - } - + async commandControllerSearch( + commandSearchInputDTO?: CommandSearchInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.commandControllerSearch(commandSearchInputDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['CommandApi.commandControllerSearch']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, /** * Required permissions: `MANAGE_MODULES` * @summary Trigger - * @param {CronJobTriggerDTO} [cronJobTriggerDTO] CronJobTriggerDTO + * @param {string} id + * @param {CommandTriggerDTO} [commandTriggerDTO] CommandTriggerDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof CronJobApi */ - public cronJobControllerTrigger(cronJobTriggerDTO?: CronJobTriggerDTO, options?: RawAxiosRequestConfig) { - return CronJobApiFp(this.configuration).cronJobControllerTrigger(cronJobTriggerDTO, options).then((request) => request(this.axios, this.basePath)); - } - + async commandControllerTrigger( + id: string, + commandTriggerDTO?: CommandTriggerDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.commandControllerTrigger( + id, + commandTriggerDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['CommandApi.commandControllerTrigger']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, /** * Required permissions: `MANAGE_MODULES` * @summary Update - * @param {string} id - * @param {CronJobUpdateDTO} [cronJobUpdateDTO] CronJobUpdateDTO + * @param {string} id + * @param {CommandUpdateDTO} [commandUpdateDTO] CommandUpdateDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof CronJobApi */ - public cronJobControllerUpdate(id: string, cronJobUpdateDTO?: CronJobUpdateDTO, options?: RawAxiosRequestConfig) { - return CronJobApiFp(this.configuration).cronJobControllerUpdate(id, cronJobUpdateDTO, options).then((request) => request(this.axios, this.basePath)); - } -} - - - -/** - * DiscordApi - axios parameter creator - * @export - */ -export const DiscordApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * - * @summary Get invite - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - discordControllerGetInvite: async (options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/discord/invite`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Search - * @param {GuildSearchInputDTO} [guildSearchInputDTO] GuildSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - discordControllerSearch: async (guildSearchInputDTO?: GuildSearchInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/discord/guilds/search`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(guildSearchInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Send message - * @param {string} id - * @param {SendMessageInputDTO} [sendMessageInputDTO] SendMessageInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - discordControllerSendMessage: async (id: string, sendMessageInputDTO?: SendMessageInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('discordControllerSendMessage', 'id', id) - const localVarPath = `/discord/channels/{id}/message` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(sendMessageInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Update guild - * @param {string} id - * @param {GuildApiUpdateDTO} [guildApiUpdateDTO] GuildApiUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - discordControllerUpdateGuild: async (id: string, guildApiUpdateDTO?: GuildApiUpdateDTO, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('discordControllerUpdateGuild', 'id', id) - const localVarPath = `/discord/guilds/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(guildApiUpdateDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * DiscordApi - functional programming interface - * @export - */ -export const DiscordApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = DiscordApiAxiosParamCreator(configuration) - return { - /** - * - * @summary Get invite - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async discordControllerGetInvite(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.discordControllerGetInvite(options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['DiscordApi.discordControllerGetInvite']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * - * @summary Search - * @param {GuildSearchInputDTO} [guildSearchInputDTO] GuildSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async discordControllerSearch(guildSearchInputDTO?: GuildSearchInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.discordControllerSearch(guildSearchInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['DiscordApi.discordControllerSearch']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * - * @summary Send message - * @param {string} id - * @param {SendMessageInputDTO} [sendMessageInputDTO] SendMessageInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async discordControllerSendMessage(id: string, sendMessageInputDTO?: SendMessageInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.discordControllerSendMessage(id, sendMessageInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['DiscordApi.discordControllerSendMessage']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * - * @summary Update guild - * @param {string} id - * @param {GuildApiUpdateDTO} [guildApiUpdateDTO] GuildApiUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async discordControllerUpdateGuild(id: string, guildApiUpdateDTO?: GuildApiUpdateDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.discordControllerUpdateGuild(id, guildApiUpdateDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['DiscordApi.discordControllerUpdateGuild']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - } -}; - -/** - * DiscordApi - factory interface - * @export - */ -export const DiscordApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = DiscordApiFp(configuration) - return { - /** - * - * @summary Get invite - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - discordControllerGetInvite(options?: any): AxiosPromise { - return localVarFp.discordControllerGetInvite(options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Search - * @param {GuildSearchInputDTO} [guildSearchInputDTO] GuildSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - discordControllerSearch(guildSearchInputDTO?: GuildSearchInputDTO, options?: any): AxiosPromise { - return localVarFp.discordControllerSearch(guildSearchInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Send message - * @param {string} id - * @param {SendMessageInputDTO} [sendMessageInputDTO] SendMessageInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - discordControllerSendMessage(id: string, sendMessageInputDTO?: SendMessageInputDTO, options?: any): AxiosPromise { - return localVarFp.discordControllerSendMessage(id, sendMessageInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Update guild - * @param {string} id - * @param {GuildApiUpdateDTO} [guildApiUpdateDTO] GuildApiUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - discordControllerUpdateGuild(id: string, guildApiUpdateDTO?: GuildApiUpdateDTO, options?: any): AxiosPromise { - return localVarFp.discordControllerUpdateGuild(id, guildApiUpdateDTO, options).then((request) => request(axios, basePath)); - }, - }; + async commandControllerUpdate( + id: string, + commandUpdateDTO?: CommandUpdateDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.commandControllerUpdate(id, commandUpdateDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['CommandApi.commandControllerUpdate']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `MANAGE_MODULES` + * @summary Update argument + * @param {string} id + * @param {CommandArgumentUpdateDTO} [commandArgumentUpdateDTO] CommandArgumentUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async commandControllerUpdateArgument( + id: string, + commandArgumentUpdateDTO?: CommandArgumentUpdateDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.commandControllerUpdateArgument( + id, + commandArgumentUpdateDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['CommandApi.commandControllerUpdateArgument']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + }; }; /** - * DiscordApi - object-oriented interface + * CommandApi - factory interface * @export - * @class DiscordApi - * @extends {BaseAPI} */ -export class DiscordApi extends BaseAPI { +export const CommandApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = CommandApiFp(configuration); + return { /** - * - * @summary Get invite + * Required permissions: `MANAGE_MODULES` + * @summary Create + * @param {CommandCreateDTO} [commandCreateDTO] CommandCreateDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof DiscordApi */ - public discordControllerGetInvite(options?: RawAxiosRequestConfig) { - return DiscordApiFp(this.configuration).discordControllerGetInvite(options).then((request) => request(this.axios, this.basePath)); - } - + commandControllerCreate(commandCreateDTO?: CommandCreateDTO, options?: any): AxiosPromise { + return localVarFp.commandControllerCreate(commandCreateDTO, options).then((request) => request(axios, basePath)); + }, /** - * - * @summary Search - * @param {GuildSearchInputDTO} [guildSearchInputDTO] GuildSearchInputDTO + * Required permissions: `MANAGE_MODULES` + * @summary Create argument + * @param {CommandArgumentCreateDTO} [commandArgumentCreateDTO] CommandArgumentCreateDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof DiscordApi */ - public discordControllerSearch(guildSearchInputDTO?: GuildSearchInputDTO, options?: RawAxiosRequestConfig) { - return DiscordApiFp(this.configuration).discordControllerSearch(guildSearchInputDTO, options).then((request) => request(this.axios, this.basePath)); - } - + commandControllerCreateArgument( + commandArgumentCreateDTO?: CommandArgumentCreateDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .commandControllerCreateArgument(commandArgumentCreateDTO, options) + .then((request) => request(axios, basePath)); + }, /** - * - * @summary Send message - * @param {string} id - * @param {SendMessageInputDTO} [sendMessageInputDTO] SendMessageInputDTO + * Required permissions: `READ_MODULES` + * @summary Get executions + * @param {string} id + * @param {any} [success] + * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof DiscordApi */ - public discordControllerSendMessage(id: string, sendMessageInputDTO?: SendMessageInputDTO, options?: RawAxiosRequestConfig) { - return DiscordApiFp(this.configuration).discordControllerSendMessage(id, sendMessageInputDTO, options).then((request) => request(this.axios, this.basePath)); - } - + commandControllerGetExecutions( + id: string, + success?: any, + eventSearchInputDTO?: EventSearchInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .commandControllerGetExecutions(id, success, eventSearchInputDTO, options) + .then((request) => request(axios, basePath)); + }, /** - * - * @summary Update guild - * @param {string} id - * @param {GuildApiUpdateDTO} [guildApiUpdateDTO] GuildApiUpdateDTO + * Required permissions: `READ_MODULES` + * @summary Get one + * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof DiscordApi */ - public discordControllerUpdateGuild(id: string, guildApiUpdateDTO?: GuildApiUpdateDTO, options?: RawAxiosRequestConfig) { - return DiscordApiFp(this.configuration).discordControllerUpdateGuild(id, guildApiUpdateDTO, options).then((request) => request(this.axios, this.basePath)); - } -} - - - -/** - * DomainApi - axios parameter creator - * @export - */ -export const DomainApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * - * @summary Create - * @param {DomainCreateInputDTO} [domainCreateInputDTO] DomainCreateInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - domainControllerCreate: async (domainCreateInputDTO?: DomainCreateInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/domain`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication adminAuth required - await setApiKeyToObject(localVarHeaderParameter, "x-takaro-admin-token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(domainCreateInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - domainControllerGetOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('domainControllerGetOne', 'id', id) - const localVarPath = `/domain/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication adminAuth required - await setApiKeyToObject(localVarHeaderParameter, "x-takaro-admin-token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get token - * @param {TokenInputDTO} [tokenInputDTO] TokenInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - domainControllerGetToken: async (tokenInputDTO?: TokenInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/token`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication adminAuth required - await setApiKeyToObject(localVarHeaderParameter, "x-takaro-admin-token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(tokenInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Remove - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - domainControllerRemove: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('domainControllerRemove', 'id', id) - const localVarPath = `/domain/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication adminAuth required - await setApiKeyToObject(localVarHeaderParameter, "x-takaro-admin-token", configuration) - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Search - * @param {DomainSearchInputDTO} [domainSearchInputDTO] DomainSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - domainControllerSearch: async (domainSearchInputDTO?: DomainSearchInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/domain/search`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication adminAuth required - await setApiKeyToObject(localVarHeaderParameter, "x-takaro-admin-token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(domainSearchInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Update - * @param {string} id - * @param {DomainUpdateInputDTO} [domainUpdateInputDTO] DomainUpdateInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - domainControllerUpdate: async (id: string, domainUpdateInputDTO?: DomainUpdateInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('domainControllerUpdate', 'id', id) - const localVarPath = `/domain/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication adminAuth required - await setApiKeyToObject(localVarHeaderParameter, "x-takaro-admin-token", configuration) - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(domainUpdateInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * DomainApi - functional programming interface - * @export - */ -export const DomainApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = DomainApiAxiosParamCreator(configuration) - return { - /** - * - * @summary Create - * @param {DomainCreateInputDTO} [domainCreateInputDTO] DomainCreateInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async domainControllerCreate(domainCreateInputDTO?: DomainCreateInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerCreate(domainCreateInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['DomainApi.domainControllerCreate']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * - * @summary Get one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async domainControllerGetOne(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerGetOne(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['DomainApi.domainControllerGetOne']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * - * @summary Get token - * @param {TokenInputDTO} [tokenInputDTO] TokenInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async domainControllerGetToken(tokenInputDTO?: TokenInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerGetToken(tokenInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['DomainApi.domainControllerGetToken']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * - * @summary Remove - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async domainControllerRemove(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerRemove(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['DomainApi.domainControllerRemove']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * - * @summary Search - * @param {DomainSearchInputDTO} [domainSearchInputDTO] DomainSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async domainControllerSearch(domainSearchInputDTO?: DomainSearchInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerSearch(domainSearchInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['DomainApi.domainControllerSearch']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * - * @summary Update - * @param {string} id - * @param {DomainUpdateInputDTO} [domainUpdateInputDTO] DomainUpdateInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async domainControllerUpdate(id: string, domainUpdateInputDTO?: DomainUpdateInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerUpdate(id, domainUpdateInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['DomainApi.domainControllerUpdate']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - } -}; - -/** - * DomainApi - factory interface - * @export - */ -export const DomainApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = DomainApiFp(configuration) - return { - /** - * - * @summary Create - * @param {DomainCreateInputDTO} [domainCreateInputDTO] DomainCreateInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - domainControllerCreate(domainCreateInputDTO?: DomainCreateInputDTO, options?: any): AxiosPromise { - return localVarFp.domainControllerCreate(domainCreateInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - domainControllerGetOne(id: string, options?: any): AxiosPromise { - return localVarFp.domainControllerGetOne(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get token - * @param {TokenInputDTO} [tokenInputDTO] TokenInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - domainControllerGetToken(tokenInputDTO?: TokenInputDTO, options?: any): AxiosPromise { - return localVarFp.domainControllerGetToken(tokenInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Remove - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - domainControllerRemove(id: string, options?: any): AxiosPromise { - return localVarFp.domainControllerRemove(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Search - * @param {DomainSearchInputDTO} [domainSearchInputDTO] DomainSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - domainControllerSearch(domainSearchInputDTO?: DomainSearchInputDTO, options?: any): AxiosPromise { - return localVarFp.domainControllerSearch(domainSearchInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Update - * @param {string} id - * @param {DomainUpdateInputDTO} [domainUpdateInputDTO] DomainUpdateInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - domainControllerUpdate(id: string, domainUpdateInputDTO?: DomainUpdateInputDTO, options?: any): AxiosPromise { - return localVarFp.domainControllerUpdate(id, domainUpdateInputDTO, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * DomainApi - object-oriented interface - * @export - * @class DomainApi - * @extends {BaseAPI} - */ -export class DomainApi extends BaseAPI { + commandControllerGetOne(id: string, options?: any): AxiosPromise { + return localVarFp.commandControllerGetOne(id, options).then((request) => request(axios, basePath)); + }, /** - * - * @summary Create - * @param {DomainCreateInputDTO} [domainCreateInputDTO] DomainCreateInputDTO + * Required permissions: `MANAGE_MODULES` + * @summary Remove + * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof DomainApi */ - public domainControllerCreate(domainCreateInputDTO?: DomainCreateInputDTO, options?: RawAxiosRequestConfig) { - return DomainApiFp(this.configuration).domainControllerCreate(domainCreateInputDTO, options).then((request) => request(this.axios, this.basePath)); - } - + commandControllerRemove(id: string, options?: any): AxiosPromise { + return localVarFp.commandControllerRemove(id, options).then((request) => request(axios, basePath)); + }, /** - * - * @summary Get one - * @param {string} id + * Required permissions: `MANAGE_MODULES` + * @summary Remove argument + * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof DomainApi */ - public domainControllerGetOne(id: string, options?: RawAxiosRequestConfig) { - return DomainApiFp(this.configuration).domainControllerGetOne(id, options).then((request) => request(this.axios, this.basePath)); - } - + commandControllerRemoveArgument(id: string, options?: any): AxiosPromise { + return localVarFp.commandControllerRemoveArgument(id, options).then((request) => request(axios, basePath)); + }, /** - * - * @summary Get token - * @param {TokenInputDTO} [tokenInputDTO] TokenInputDTO + * Required permissions: `READ_MODULES` + * @summary Search + * @param {CommandSearchInputDTO} [commandSearchInputDTO] CommandSearchInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof DomainApi */ - public domainControllerGetToken(tokenInputDTO?: TokenInputDTO, options?: RawAxiosRequestConfig) { - return DomainApiFp(this.configuration).domainControllerGetToken(tokenInputDTO, options).then((request) => request(this.axios, this.basePath)); - } - + commandControllerSearch( + commandSearchInputDTO?: CommandSearchInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .commandControllerSearch(commandSearchInputDTO, options) + .then((request) => request(axios, basePath)); + }, /** - * - * @summary Remove - * @param {string} id + * Required permissions: `MANAGE_MODULES` + * @summary Trigger + * @param {string} id + * @param {CommandTriggerDTO} [commandTriggerDTO] CommandTriggerDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof DomainApi */ - public domainControllerRemove(id: string, options?: RawAxiosRequestConfig) { - return DomainApiFp(this.configuration).domainControllerRemove(id, options).then((request) => request(this.axios, this.basePath)); - } - + commandControllerTrigger(id: string, commandTriggerDTO?: CommandTriggerDTO, options?: any): AxiosPromise { + return localVarFp + .commandControllerTrigger(id, commandTriggerDTO, options) + .then((request) => request(axios, basePath)); + }, /** - * - * @summary Search - * @param {DomainSearchInputDTO} [domainSearchInputDTO] DomainSearchInputDTO + * Required permissions: `MANAGE_MODULES` + * @summary Update + * @param {string} id + * @param {CommandUpdateDTO} [commandUpdateDTO] CommandUpdateDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof DomainApi */ - public domainControllerSearch(domainSearchInputDTO?: DomainSearchInputDTO, options?: RawAxiosRequestConfig) { - return DomainApiFp(this.configuration).domainControllerSearch(domainSearchInputDTO, options).then((request) => request(this.axios, this.basePath)); - } - + commandControllerUpdate( + id: string, + commandUpdateDTO?: CommandUpdateDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .commandControllerUpdate(id, commandUpdateDTO, options) + .then((request) => request(axios, basePath)); + }, /** - * - * @summary Update - * @param {string} id - * @param {DomainUpdateInputDTO} [domainUpdateInputDTO] DomainUpdateInputDTO + * Required permissions: `MANAGE_MODULES` + * @summary Update argument + * @param {string} id + * @param {CommandArgumentUpdateDTO} [commandArgumentUpdateDTO] CommandArgumentUpdateDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof DomainApi */ - public domainControllerUpdate(id: string, domainUpdateInputDTO?: DomainUpdateInputDTO, options?: RawAxiosRequestConfig) { - return DomainApiFp(this.configuration).domainControllerUpdate(id, domainUpdateInputDTO, options).then((request) => request(this.axios, this.basePath)); - } -} - - - -/** - * EventApi - axios parameter creator - * @export - */ -export const EventApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * Required permissions: `MANAGE_EVENTS` - * @summary Create - * @param {EventCreateDTO} [eventCreateDTO] EventCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - eventControllerCreate: async (eventCreateDTO?: EventCreateDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/event`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(eventCreateDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Fetches events where cronjob, hook and command failed. Supports all the common query parameters Required permissions: `READ_MODULES`, `READ_EVENTS` - * @summary Get failed functions - * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - eventControllerGetFailedFunctions: async (eventSearchInputDTO?: EventSearchInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/event/filter/failed-functions`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(eventSearchInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `READ_EVENTS` - * @summary Get one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - eventControllerGetOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('eventControllerGetOne', 'id', id) - const localVarPath = `/event/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `READ_EVENTS` - * @summary Search - * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - eventControllerSearch: async (eventSearchInputDTO?: EventSearchInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/event/search`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(eventSearchInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * EventApi - functional programming interface - * @export - */ -export const EventApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = EventApiAxiosParamCreator(configuration) - return { - /** - * Required permissions: `MANAGE_EVENTS` - * @summary Create - * @param {EventCreateDTO} [eventCreateDTO] EventCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async eventControllerCreate(eventCreateDTO?: EventCreateDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.eventControllerCreate(eventCreateDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['EventApi.eventControllerCreate']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Fetches events where cronjob, hook and command failed. Supports all the common query parameters Required permissions: `READ_MODULES`, `READ_EVENTS` - * @summary Get failed functions - * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async eventControllerGetFailedFunctions(eventSearchInputDTO?: EventSearchInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.eventControllerGetFailedFunctions(eventSearchInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['EventApi.eventControllerGetFailedFunctions']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `READ_EVENTS` - * @summary Get one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async eventControllerGetOne(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.eventControllerGetOne(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['EventApi.eventControllerGetOne']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `READ_EVENTS` - * @summary Search - * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async eventControllerSearch(eventSearchInputDTO?: EventSearchInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.eventControllerSearch(eventSearchInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['EventApi.eventControllerSearch']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - } + commandControllerUpdateArgument( + id: string, + commandArgumentUpdateDTO?: CommandArgumentUpdateDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .commandControllerUpdateArgument(id, commandArgumentUpdateDTO, options) + .then((request) => request(axios, basePath)); + }, + }; }; /** - * EventApi - factory interface + * CommandApi - object-oriented interface * @export + * @class CommandApi + * @extends {BaseAPI} */ -export const EventApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = EventApiFp(configuration) - return { - /** - * Required permissions: `MANAGE_EVENTS` - * @summary Create - * @param {EventCreateDTO} [eventCreateDTO] EventCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - eventControllerCreate(eventCreateDTO?: EventCreateDTO, options?: any): AxiosPromise { - return localVarFp.eventControllerCreate(eventCreateDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Fetches events where cronjob, hook and command failed. Supports all the common query parameters Required permissions: `READ_MODULES`, `READ_EVENTS` - * @summary Get failed functions - * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - eventControllerGetFailedFunctions(eventSearchInputDTO?: EventSearchInputDTO, options?: any): AxiosPromise { - return localVarFp.eventControllerGetFailedFunctions(eventSearchInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `READ_EVENTS` - * @summary Get one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - eventControllerGetOne(id: string, options?: any): AxiosPromise { - return localVarFp.eventControllerGetOne(id, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `READ_EVENTS` - * @summary Search - * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - eventControllerSearch(eventSearchInputDTO?: EventSearchInputDTO, options?: any): AxiosPromise { - return localVarFp.eventControllerSearch(eventSearchInputDTO, options).then((request) => request(axios, basePath)); - }, - }; -}; +export class CommandApi extends BaseAPI { + /** + * Required permissions: `MANAGE_MODULES` + * @summary Create + * @param {CommandCreateDTO} [commandCreateDTO] CommandCreateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CommandApi + */ + public commandControllerCreate(commandCreateDTO?: CommandCreateDTO, options?: RawAxiosRequestConfig) { + return CommandApiFp(this.configuration) + .commandControllerCreate(commandCreateDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `MANAGE_MODULES` + * @summary Create argument + * @param {CommandArgumentCreateDTO} [commandArgumentCreateDTO] CommandArgumentCreateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CommandApi + */ + public commandControllerCreateArgument( + commandArgumentCreateDTO?: CommandArgumentCreateDTO, + options?: RawAxiosRequestConfig, + ) { + return CommandApiFp(this.configuration) + .commandControllerCreateArgument(commandArgumentCreateDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `READ_MODULES` + * @summary Get executions + * @param {string} id + * @param {any} [success] + * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CommandApi + */ + public commandControllerGetExecutions( + id: string, + success?: any, + eventSearchInputDTO?: EventSearchInputDTO, + options?: RawAxiosRequestConfig, + ) { + return CommandApiFp(this.configuration) + .commandControllerGetExecutions(id, success, eventSearchInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `READ_MODULES` + * @summary Get one + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CommandApi + */ + public commandControllerGetOne(id: string, options?: RawAxiosRequestConfig) { + return CommandApiFp(this.configuration) + .commandControllerGetOne(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `MANAGE_MODULES` + * @summary Remove + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CommandApi + */ + public commandControllerRemove(id: string, options?: RawAxiosRequestConfig) { + return CommandApiFp(this.configuration) + .commandControllerRemove(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `MANAGE_MODULES` + * @summary Remove argument + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CommandApi + */ + public commandControllerRemoveArgument(id: string, options?: RawAxiosRequestConfig) { + return CommandApiFp(this.configuration) + .commandControllerRemoveArgument(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `READ_MODULES` + * @summary Search + * @param {CommandSearchInputDTO} [commandSearchInputDTO] CommandSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CommandApi + */ + public commandControllerSearch(commandSearchInputDTO?: CommandSearchInputDTO, options?: RawAxiosRequestConfig) { + return CommandApiFp(this.configuration) + .commandControllerSearch(commandSearchInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `MANAGE_MODULES` + * @summary Trigger + * @param {string} id + * @param {CommandTriggerDTO} [commandTriggerDTO] CommandTriggerDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CommandApi + */ + public commandControllerTrigger(id: string, commandTriggerDTO?: CommandTriggerDTO, options?: RawAxiosRequestConfig) { + return CommandApiFp(this.configuration) + .commandControllerTrigger(id, commandTriggerDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `MANAGE_MODULES` + * @summary Update + * @param {string} id + * @param {CommandUpdateDTO} [commandUpdateDTO] CommandUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CommandApi + */ + public commandControllerUpdate(id: string, commandUpdateDTO?: CommandUpdateDTO, options?: RawAxiosRequestConfig) { + return CommandApiFp(this.configuration) + .commandControllerUpdate(id, commandUpdateDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `MANAGE_MODULES` + * @summary Update argument + * @param {string} id + * @param {CommandArgumentUpdateDTO} [commandArgumentUpdateDTO] CommandArgumentUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CommandApi + */ + public commandControllerUpdateArgument( + id: string, + commandArgumentUpdateDTO?: CommandArgumentUpdateDTO, + options?: RawAxiosRequestConfig, + ) { + return CommandApiFp(this.configuration) + .commandControllerUpdateArgument(id, commandArgumentUpdateDTO, options) + .then((request) => request(this.axios, this.basePath)); + } +} /** - * EventApi - object-oriented interface + * CronJobApi - axios parameter creator * @export - * @class EventApi - * @extends {BaseAPI} */ -export class EventApi extends BaseAPI { +export const CronJobApiAxiosParamCreator = function (configuration?: Configuration) { + return { /** - * Required permissions: `MANAGE_EVENTS` + * Required permissions: `MANAGE_MODULES` * @summary Create - * @param {EventCreateDTO} [eventCreateDTO] EventCreateDTO + * @param {CronJobCreateDTO} [cronJobCreateDTO] CronJobCreateDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof EventApi */ - public eventControllerCreate(eventCreateDTO?: EventCreateDTO, options?: RawAxiosRequestConfig) { - return EventApiFp(this.configuration).eventControllerCreate(eventCreateDTO, options).then((request) => request(this.axios, this.basePath)); - } - + cronJobControllerCreate: async ( + cronJobCreateDTO?: CronJobCreateDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/cronjob`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(cronJobCreateDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** - * Fetches events where cronjob, hook and command failed. Supports all the common query parameters Required permissions: `READ_MODULES`, `READ_EVENTS` - * @summary Get failed functions + * Required permissions: `READ_MODULES` + * @summary Get executions + * @param {string} id + * @param {any} [success] * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof EventApi */ - public eventControllerGetFailedFunctions(eventSearchInputDTO?: EventSearchInputDTO, options?: RawAxiosRequestConfig) { - return EventApiFp(this.configuration).eventControllerGetFailedFunctions(eventSearchInputDTO, options).then((request) => request(this.axios, this.basePath)); - } - + cronJobControllerGetExecutions: async ( + id: string, + success?: any, + eventSearchInputDTO?: EventSearchInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('cronJobControllerGetExecutions', 'id', id); + const localVarPath = `/cronjob/{id}/executions`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + if (success !== undefined) { + for (const [key, value] of Object.entries(success)) { + localVarQueryParameter[key] = value; + } + } + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(eventSearchInputDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** - * Required permissions: `READ_EVENTS` + * Required permissions: `READ_MODULES` * @summary Get one - * @param {string} id + * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof EventApi */ - public eventControllerGetOne(id: string, options?: RawAxiosRequestConfig) { - return EventApiFp(this.configuration).eventControllerGetOne(id, options).then((request) => request(this.axios, this.basePath)); - } - + cronJobControllerGetOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('cronJobControllerGetOne', 'id', id); + const localVarPath = `/cronjob/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** - * Required permissions: `READ_EVENTS` + * Required permissions: `MANAGE_MODULES` + * @summary Remove + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + cronJobControllerRemove: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('cronJobControllerRemove', 'id', id); + const localVarPath = `/cronjob/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `READ_MODULES` * @summary Search - * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO + * @param {CronJobSearchInputDTO} [cronJobSearchInputDTO] CronJobSearchInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof EventApi */ - public eventControllerSearch(eventSearchInputDTO?: EventSearchInputDTO, options?: RawAxiosRequestConfig) { - return EventApiFp(this.configuration).eventControllerSearch(eventSearchInputDTO, options).then((request) => request(this.axios, this.basePath)); - } -} - - - -/** - * ExternalAuthApi - axios parameter creator - * @export - */ -export const ExternalAuthApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * - * @summary Auth discord - * @param {string} redirect - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - externalAuthControllerAuthDiscord: async (redirect: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'redirect' is not null or undefined - assertParamExists('externalAuthControllerAuthDiscord', 'redirect', redirect) - const localVarPath = `/auth/discord`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - if (redirect !== undefined) { - localVarQueryParameter['redirect'] = redirect; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Auth discord return - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - externalAuthControllerAuthDiscordReturn: async (options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/auth/discord/return`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * ExternalAuthApi - functional programming interface - * @export - */ -export const ExternalAuthApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = ExternalAuthApiAxiosParamCreator(configuration) - return { - /** - * - * @summary Auth discord - * @param {string} redirect - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async externalAuthControllerAuthDiscord(redirect: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.externalAuthControllerAuthDiscord(redirect, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ExternalAuthApi.externalAuthControllerAuthDiscord']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * - * @summary Auth discord return - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async externalAuthControllerAuthDiscordReturn(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.externalAuthControllerAuthDiscordReturn(options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ExternalAuthApi.externalAuthControllerAuthDiscordReturn']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - } -}; - -/** - * ExternalAuthApi - factory interface - * @export - */ -export const ExternalAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = ExternalAuthApiFp(configuration) - return { - /** - * - * @summary Auth discord - * @param {string} redirect - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - externalAuthControllerAuthDiscord(redirect: string, options?: any): AxiosPromise { - return localVarFp.externalAuthControllerAuthDiscord(redirect, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Auth discord return - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - externalAuthControllerAuthDiscordReturn(options?: any): AxiosPromise { - return localVarFp.externalAuthControllerAuthDiscordReturn(options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * ExternalAuthApi - object-oriented interface - * @export - * @class ExternalAuthApi - * @extends {BaseAPI} - */ -export class ExternalAuthApi extends BaseAPI { + cronJobControllerSearch: async ( + cronJobSearchInputDTO?: CronJobSearchInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/cronjob/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(cronJobSearchInputDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** - * - * @summary Auth discord - * @param {string} redirect + * Required permissions: `MANAGE_MODULES` + * @summary Trigger + * @param {CronJobTriggerDTO} [cronJobTriggerDTO] CronJobTriggerDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof ExternalAuthApi */ - public externalAuthControllerAuthDiscord(redirect: string, options?: RawAxiosRequestConfig) { - return ExternalAuthApiFp(this.configuration).externalAuthControllerAuthDiscord(redirect, options).then((request) => request(this.axios, this.basePath)); - } - + cronJobControllerTrigger: async ( + cronJobTriggerDTO?: CronJobTriggerDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/cronjob/trigger`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(cronJobTriggerDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** - * - * @summary Auth discord return + * Required permissions: `MANAGE_MODULES` + * @summary Update + * @param {string} id + * @param {CronJobUpdateDTO} [cronJobUpdateDTO] CronJobUpdateDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof ExternalAuthApi */ - public externalAuthControllerAuthDiscordReturn(options?: RawAxiosRequestConfig) { - return ExternalAuthApiFp(this.configuration).externalAuthControllerAuthDiscordReturn(options).then((request) => request(this.axios, this.basePath)); - } -} - - - -/** - * FunctionApi - axios parameter creator - * @export - */ -export const FunctionApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * Required permissions: `MANAGE_MODULES` - * @summary Create - * @param {FunctionCreateDTO} [functionCreateDTO] FunctionCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - functionControllerCreate: async (functionCreateDTO?: FunctionCreateDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/function`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(functionCreateDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `READ_MODULES` - * @summary Get one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - functionControllerGetOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('functionControllerGetOne', 'id', id) - const localVarPath = `/function/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Remove - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - functionControllerRemove: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('functionControllerRemove', 'id', id) - const localVarPath = `/function/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `READ_MODULES` - * @summary Search - * @param {FunctionSearchInputDTO} [functionSearchInputDTO] FunctionSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - functionControllerSearch: async (functionSearchInputDTO?: FunctionSearchInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/function/search`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(functionSearchInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Update - * @param {string} id - * @param {FunctionUpdateDTO} [functionUpdateDTO] FunctionUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - functionControllerUpdate: async (id: string, functionUpdateDTO?: FunctionUpdateDTO, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('functionControllerUpdate', 'id', id) - const localVarPath = `/function/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(functionUpdateDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * FunctionApi - functional programming interface - * @export - */ -export const FunctionApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = FunctionApiAxiosParamCreator(configuration) - return { - /** - * Required permissions: `MANAGE_MODULES` - * @summary Create - * @param {FunctionCreateDTO} [functionCreateDTO] FunctionCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async functionControllerCreate(functionCreateDTO?: FunctionCreateDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.functionControllerCreate(functionCreateDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['FunctionApi.functionControllerCreate']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `READ_MODULES` - * @summary Get one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async functionControllerGetOne(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.functionControllerGetOne(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['FunctionApi.functionControllerGetOne']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Remove - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async functionControllerRemove(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.functionControllerRemove(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['FunctionApi.functionControllerRemove']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `READ_MODULES` - * @summary Search - * @param {FunctionSearchInputDTO} [functionSearchInputDTO] FunctionSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async functionControllerSearch(functionSearchInputDTO?: FunctionSearchInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.functionControllerSearch(functionSearchInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['FunctionApi.functionControllerSearch']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Update - * @param {string} id - * @param {FunctionUpdateDTO} [functionUpdateDTO] FunctionUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async functionControllerUpdate(id: string, functionUpdateDTO?: FunctionUpdateDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.functionControllerUpdate(id, functionUpdateDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['FunctionApi.functionControllerUpdate']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - } -}; - -/** - * FunctionApi - factory interface - * @export - */ -export const FunctionApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = FunctionApiFp(configuration) - return { - /** - * Required permissions: `MANAGE_MODULES` - * @summary Create - * @param {FunctionCreateDTO} [functionCreateDTO] FunctionCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - functionControllerCreate(functionCreateDTO?: FunctionCreateDTO, options?: any): AxiosPromise { - return localVarFp.functionControllerCreate(functionCreateDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `READ_MODULES` - * @summary Get one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - functionControllerGetOne(id: string, options?: any): AxiosPromise { - return localVarFp.functionControllerGetOne(id, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Remove - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - functionControllerRemove(id: string, options?: any): AxiosPromise { - return localVarFp.functionControllerRemove(id, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `READ_MODULES` - * @summary Search - * @param {FunctionSearchInputDTO} [functionSearchInputDTO] FunctionSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - functionControllerSearch(functionSearchInputDTO?: FunctionSearchInputDTO, options?: any): AxiosPromise { - return localVarFp.functionControllerSearch(functionSearchInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Update - * @param {string} id - * @param {FunctionUpdateDTO} [functionUpdateDTO] FunctionUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - functionControllerUpdate(id: string, functionUpdateDTO?: FunctionUpdateDTO, options?: any): AxiosPromise { - return localVarFp.functionControllerUpdate(id, functionUpdateDTO, options).then((request) => request(axios, basePath)); - }, - }; + cronJobControllerUpdate: async ( + id: string, + cronJobUpdateDTO?: CronJobUpdateDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('cronJobControllerUpdate', 'id', id); + const localVarPath = `/cronjob/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(cronJobUpdateDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; }; /** - * FunctionApi - object-oriented interface + * CronJobApi - functional programming interface * @export - * @class FunctionApi - * @extends {BaseAPI} */ -export class FunctionApi extends BaseAPI { +export const CronJobApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = CronJobApiAxiosParamCreator(configuration); + return { /** * Required permissions: `MANAGE_MODULES` * @summary Create - * @param {FunctionCreateDTO} [functionCreateDTO] FunctionCreateDTO + * @param {CronJobCreateDTO} [cronJobCreateDTO] CronJobCreateDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof FunctionApi */ - public functionControllerCreate(functionCreateDTO?: FunctionCreateDTO, options?: RawAxiosRequestConfig) { - return FunctionApiFp(this.configuration).functionControllerCreate(functionCreateDTO, options).then((request) => request(this.axios, this.basePath)); - } - + async cronJobControllerCreate( + cronJobCreateDTO?: CronJobCreateDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.cronJobControllerCreate(cronJobCreateDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['CronJobApi.cronJobControllerCreate']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `READ_MODULES` + * @summary Get executions + * @param {string} id + * @param {any} [success] + * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async cronJobControllerGetExecutions( + id: string, + success?: any, + eventSearchInputDTO?: EventSearchInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.cronJobControllerGetExecutions( + id, + success, + eventSearchInputDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['CronJobApi.cronJobControllerGetExecutions']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, /** * Required permissions: `READ_MODULES` * @summary Get one - * @param {string} id + * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof FunctionApi */ - public functionControllerGetOne(id: string, options?: RawAxiosRequestConfig) { - return FunctionApiFp(this.configuration).functionControllerGetOne(id, options).then((request) => request(this.axios, this.basePath)); - } - + async cronJobControllerGetOne( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.cronJobControllerGetOne(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['CronJobApi.cronJobControllerGetOne']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, /** * Required permissions: `MANAGE_MODULES` * @summary Remove - * @param {string} id + * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof FunctionApi */ - public functionControllerRemove(id: string, options?: RawAxiosRequestConfig) { - return FunctionApiFp(this.configuration).functionControllerRemove(id, options).then((request) => request(this.axios, this.basePath)); - } - + async cronJobControllerRemove( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.cronJobControllerRemove(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['CronJobApi.cronJobControllerRemove']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, /** * Required permissions: `READ_MODULES` * @summary Search - * @param {FunctionSearchInputDTO} [functionSearchInputDTO] FunctionSearchInputDTO + * @param {CronJobSearchInputDTO} [cronJobSearchInputDTO] CronJobSearchInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof FunctionApi */ - public functionControllerSearch(functionSearchInputDTO?: FunctionSearchInputDTO, options?: RawAxiosRequestConfig) { - return FunctionApiFp(this.configuration).functionControllerSearch(functionSearchInputDTO, options).then((request) => request(this.axios, this.basePath)); - } - + async cronJobControllerSearch( + cronJobSearchInputDTO?: CronJobSearchInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.cronJobControllerSearch(cronJobSearchInputDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['CronJobApi.cronJobControllerSearch']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `MANAGE_MODULES` + * @summary Trigger + * @param {CronJobTriggerDTO} [cronJobTriggerDTO] CronJobTriggerDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async cronJobControllerTrigger( + cronJobTriggerDTO?: CronJobTriggerDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.cronJobControllerTrigger(cronJobTriggerDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['CronJobApi.cronJobControllerTrigger']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, /** * Required permissions: `MANAGE_MODULES` * @summary Update - * @param {string} id - * @param {FunctionUpdateDTO} [functionUpdateDTO] FunctionUpdateDTO + * @param {string} id + * @param {CronJobUpdateDTO} [cronJobUpdateDTO] CronJobUpdateDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof FunctionApi */ - public functionControllerUpdate(id: string, functionUpdateDTO?: FunctionUpdateDTO, options?: RawAxiosRequestConfig) { - return FunctionApiFp(this.configuration).functionControllerUpdate(id, functionUpdateDTO, options).then((request) => request(this.axios, this.basePath)); - } -} - - - -/** - * GameServerApi - axios parameter creator - * @export - */ -export const GameServerApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * Ban a player from a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` - * @summary Ban player - * @param {string} gameServerId - * @param {string} playerId - * @param {BanPlayerInputDTO} [banPlayerInputDTO] BanPlayerInputDTO - * @param {*} [options] Override http request option. - * @deprecated - * @throws {RequiredError} - */ - gameServerControllerBanPlayer: async (gameServerId: string, playerId: string, banPlayerInputDTO?: BanPlayerInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'gameServerId' is not null or undefined - assertParamExists('gameServerControllerBanPlayer', 'gameServerId', gameServerId) - // verify required parameter 'playerId' is not null or undefined - assertParamExists('gameServerControllerBanPlayer', 'playerId', playerId) - const localVarPath = `/gameserver/{gameServerId}/player/{playerId}/ban` - .replace(`{${"gameServerId"}}`, encodeURIComponent(String(gameServerId))) - .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(banPlayerInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Create a gameserver Required permissions: `MANAGE_GAMESERVERS` - * @summary Create - * @param {GameServerCreateDTO} [gameServerCreateDTO] GameServerCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - gameServerControllerCreate: async (gameServerCreateDTO?: GameServerCreateDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/gameserver`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(gameServerCreateDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Execute a raw command on a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` - * @summary Execute command - * @param {string} id - * @param {CommandExecuteInputDTO} [commandExecuteInputDTO] CommandExecuteInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - gameServerControllerExecuteCommand: async (id: string, commandExecuteInputDTO?: CommandExecuteInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('gameServerControllerExecuteCommand', 'id', id) - const localVarPath = `/gameserver/{id}/command` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(commandExecuteInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Fetch status of an import from CSMM Required permissions: `MANAGE_GAMESERVERS` - * @summary Get import - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - gameServerControllerGetImport: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('gameServerControllerGetImport', 'id', id) - const localVarPath = `/gameserver/import/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Fetch a gameserver by id - * @summary Get one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - gameServerControllerGetOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('gameServerControllerGetOne', 'id', id) - const localVarPath = `/gameserver/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Fetch a list of players on a gameserver. Requires gameserver to be online and reachable. Required permissions: `READ_PLAYERS` - * @summary Get players - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - gameServerControllerGetPlayers: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('gameServerControllerGetPlayers', 'id', id) - const localVarPath = `/gameserver/{id}/players` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Fetch gameserver types (7dtd, Rust, ...) - * @summary Get types - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - gameServerControllerGetTypes: async (options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/gameserver/types`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Give an item to a player. Requires gameserver to be online and reachable. Depending on the underlying game implementation, it\'s possible that the item is dropped on the ground instead of placed directly in the player\'s inventory. Required permissions: `MANAGE_GAMESERVERS` - * @summary Give item - * @param {string} gameServerId - * @param {string} playerId - * @param {GiveItemInputDTO} [giveItemInputDTO] GiveItemInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - gameServerControllerGiveItem: async (gameServerId: string, playerId: string, giveItemInputDTO?: GiveItemInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'gameServerId' is not null or undefined - assertParamExists('gameServerControllerGiveItem', 'gameServerId', gameServerId) - // verify required parameter 'playerId' is not null or undefined - assertParamExists('gameServerControllerGiveItem', 'playerId', playerId) - const localVarPath = `/gameserver/{gameServerId}/player/{playerId}/giveItem` - .replace(`{${"gameServerId"}}`, encodeURIComponent(String(gameServerId))) - .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(giveItemInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Import a gameserver from CSMM. Required permissions: `MANAGE_GAMESERVERS` - * @summary Import from csmm - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - gameServerControllerImportFromCSMM: async (options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/gameserver/import`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Kick a player from a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` - * @summary Kick player - * @param {string} gameServerId - * @param {string} playerId - * @param {KickPlayerInputDTO} [kickPlayerInputDTO] KickPlayerInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - gameServerControllerKickPlayer: async (gameServerId: string, playerId: string, kickPlayerInputDTO?: KickPlayerInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'gameServerId' is not null or undefined - assertParamExists('gameServerControllerKickPlayer', 'gameServerId', gameServerId) - // verify required parameter 'playerId' is not null or undefined - assertParamExists('gameServerControllerKickPlayer', 'playerId', playerId) - const localVarPath = `/gameserver/{gameServerId}/player/{playerId}/kick` - .replace(`{${"gameServerId"}}`, encodeURIComponent(String(gameServerId))) - .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(kickPlayerInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List bans for a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` - * @summary List bans - * @param {string} id - * @param {*} [options] Override http request option. - * @deprecated - * @throws {RequiredError} - */ - gameServerControllerListBans: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('gameServerControllerListBans', 'id', id) - const localVarPath = `/gameserver/{id}/bans` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Delete a gameserver Required permissions: `MANAGE_GAMESERVERS` - * @summary Remove - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - gameServerControllerRemove: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('gameServerControllerRemove', 'id', id) - const localVarPath = `/gameserver/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Fetch gameservers - * @summary Search - * @param {GameServerSearchInputDTO} [gameServerSearchInputDTO] GameServerSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - gameServerControllerSearch: async (gameServerSearchInputDTO?: GameServerSearchInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/gameserver/search`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(gameServerSearchInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Send a message in gameserver chat. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` - * @summary Send message - * @param {string} id - * @param {MessageSendInputDTO} [messageSendInputDTO] MessageSendInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - gameServerControllerSendMessage: async (id: string, messageSendInputDTO?: MessageSendInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('gameServerControllerSendMessage', 'id', id) - const localVarPath = `/gameserver/{id}/message` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(messageSendInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Shuts down the gameserver. This is a \'soft\' shutdown, meaning the gameserver will be stopped gracefully. If the gameserver is not reachable, this will have no effect. Note that most hosting providers will automatically restart the gameserver after a shutdown, which makes this operation act as a \'restart\' instead. Required permissions: `MANAGE_GAMESERVERS` - * @summary Shutdown - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - gameServerControllerShutdown: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('gameServerControllerShutdown', 'id', id) - const localVarPath = `/gameserver/{id}/shutdown` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Teleport a player to a location. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` - * @summary Teleport player - * @param {string} gameServerId - * @param {string} playerId - * @param {TeleportPlayerInputDTO} [teleportPlayerInputDTO] TeleportPlayerInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - gameServerControllerTeleportPlayer: async (gameServerId: string, playerId: string, teleportPlayerInputDTO?: TeleportPlayerInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'gameServerId' is not null or undefined - assertParamExists('gameServerControllerTeleportPlayer', 'gameServerId', gameServerId) - // verify required parameter 'playerId' is not null or undefined - assertParamExists('gameServerControllerTeleportPlayer', 'playerId', playerId) - const localVarPath = `/gameserver/{gameServerId}/player/{playerId}/teleport` - .replace(`{${"gameServerId"}}`, encodeURIComponent(String(gameServerId))) - .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(teleportPlayerInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Test if Takaro can connect to a gameserver. Will do a thorough check and report details. - * @summary Test reachability - * @param {GameServerTestReachabilityInputDTO} [gameServerTestReachabilityInputDTO] GameServerTestReachabilityInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - gameServerControllerTestReachability: async (gameServerTestReachabilityInputDTO?: GameServerTestReachabilityInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/gameserver/reachability`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(gameServerTestReachabilityInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Test if Takaro can connect to a gameserver. Will do a thorough check and report details. - * @summary Test reachability for id - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - gameServerControllerTestReachabilityForId: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('gameServerControllerTestReachabilityForId', 'id', id) - const localVarPath = `/gameserver/{id}/reachability` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Unban a player from a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` - * @summary Unban player - * @param {string} gameServerId - * @param {string} playerId - * @param {*} [options] Override http request option. - * @deprecated - * @throws {RequiredError} - */ - gameServerControllerUnbanPlayer: async (gameServerId: string, playerId: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'gameServerId' is not null or undefined - assertParamExists('gameServerControllerUnbanPlayer', 'gameServerId', gameServerId) - // verify required parameter 'playerId' is not null or undefined - assertParamExists('gameServerControllerUnbanPlayer', 'playerId', playerId) - const localVarPath = `/gameserver/{gameServerId}/player/{playerId}/unban` - .replace(`{${"gameServerId"}}`, encodeURIComponent(String(gameServerId))) - .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update a gameserver Required permissions: `MANAGE_GAMESERVERS` - * @summary Update - * @param {string} id - * @param {GameServerUpdateDTO} [gameServerUpdateDTO] GameServerUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - gameServerControllerUpdate: async (id: string, gameServerUpdateDTO?: GameServerUpdateDTO, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('gameServerControllerUpdate', 'id', id) - const localVarPath = `/gameserver/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(gameServerUpdateDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * GameServerApi - functional programming interface - * @export - */ -export const GameServerApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = GameServerApiAxiosParamCreator(configuration) - return { - /** - * Ban a player from a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` - * @summary Ban player - * @param {string} gameServerId - * @param {string} playerId - * @param {BanPlayerInputDTO} [banPlayerInputDTO] BanPlayerInputDTO - * @param {*} [options] Override http request option. - * @deprecated - * @throws {RequiredError} - */ - async gameServerControllerBanPlayer(gameServerId: string, playerId: string, banPlayerInputDTO?: BanPlayerInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerBanPlayer(gameServerId, playerId, banPlayerInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['GameServerApi.gameServerControllerBanPlayer']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Create a gameserver Required permissions: `MANAGE_GAMESERVERS` - * @summary Create - * @param {GameServerCreateDTO} [gameServerCreateDTO] GameServerCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async gameServerControllerCreate(gameServerCreateDTO?: GameServerCreateDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerCreate(gameServerCreateDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['GameServerApi.gameServerControllerCreate']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Execute a raw command on a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` - * @summary Execute command - * @param {string} id - * @param {CommandExecuteInputDTO} [commandExecuteInputDTO] CommandExecuteInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async gameServerControllerExecuteCommand(id: string, commandExecuteInputDTO?: CommandExecuteInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerExecuteCommand(id, commandExecuteInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['GameServerApi.gameServerControllerExecuteCommand']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Fetch status of an import from CSMM Required permissions: `MANAGE_GAMESERVERS` - * @summary Get import - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async gameServerControllerGetImport(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerGetImport(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['GameServerApi.gameServerControllerGetImport']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Fetch a gameserver by id - * @summary Get one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async gameServerControllerGetOne(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerGetOne(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['GameServerApi.gameServerControllerGetOne']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Fetch a list of players on a gameserver. Requires gameserver to be online and reachable. Required permissions: `READ_PLAYERS` - * @summary Get players - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async gameServerControllerGetPlayers(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerGetPlayers(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['GameServerApi.gameServerControllerGetPlayers']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Fetch gameserver types (7dtd, Rust, ...) - * @summary Get types - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async gameServerControllerGetTypes(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerGetTypes(options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['GameServerApi.gameServerControllerGetTypes']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Give an item to a player. Requires gameserver to be online and reachable. Depending on the underlying game implementation, it\'s possible that the item is dropped on the ground instead of placed directly in the player\'s inventory. Required permissions: `MANAGE_GAMESERVERS` - * @summary Give item - * @param {string} gameServerId - * @param {string} playerId - * @param {GiveItemInputDTO} [giveItemInputDTO] GiveItemInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async gameServerControllerGiveItem(gameServerId: string, playerId: string, giveItemInputDTO?: GiveItemInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerGiveItem(gameServerId, playerId, giveItemInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['GameServerApi.gameServerControllerGiveItem']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Import a gameserver from CSMM. Required permissions: `MANAGE_GAMESERVERS` - * @summary Import from csmm - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async gameServerControllerImportFromCSMM(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerImportFromCSMM(options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['GameServerApi.gameServerControllerImportFromCSMM']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Kick a player from a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` - * @summary Kick player - * @param {string} gameServerId - * @param {string} playerId - * @param {KickPlayerInputDTO} [kickPlayerInputDTO] KickPlayerInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async gameServerControllerKickPlayer(gameServerId: string, playerId: string, kickPlayerInputDTO?: KickPlayerInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerKickPlayer(gameServerId, playerId, kickPlayerInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['GameServerApi.gameServerControllerKickPlayer']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * List bans for a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` - * @summary List bans - * @param {string} id - * @param {*} [options] Override http request option. - * @deprecated - * @throws {RequiredError} - */ - async gameServerControllerListBans(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerListBans(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['GameServerApi.gameServerControllerListBans']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Delete a gameserver Required permissions: `MANAGE_GAMESERVERS` - * @summary Remove - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async gameServerControllerRemove(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerRemove(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['GameServerApi.gameServerControllerRemove']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Fetch gameservers - * @summary Search - * @param {GameServerSearchInputDTO} [gameServerSearchInputDTO] GameServerSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async gameServerControllerSearch(gameServerSearchInputDTO?: GameServerSearchInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerSearch(gameServerSearchInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['GameServerApi.gameServerControllerSearch']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Send a message in gameserver chat. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` - * @summary Send message - * @param {string} id - * @param {MessageSendInputDTO} [messageSendInputDTO] MessageSendInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async gameServerControllerSendMessage(id: string, messageSendInputDTO?: MessageSendInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerSendMessage(id, messageSendInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['GameServerApi.gameServerControllerSendMessage']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Shuts down the gameserver. This is a \'soft\' shutdown, meaning the gameserver will be stopped gracefully. If the gameserver is not reachable, this will have no effect. Note that most hosting providers will automatically restart the gameserver after a shutdown, which makes this operation act as a \'restart\' instead. Required permissions: `MANAGE_GAMESERVERS` - * @summary Shutdown - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async gameServerControllerShutdown(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerShutdown(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['GameServerApi.gameServerControllerShutdown']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Teleport a player to a location. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` - * @summary Teleport player - * @param {string} gameServerId - * @param {string} playerId - * @param {TeleportPlayerInputDTO} [teleportPlayerInputDTO] TeleportPlayerInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async gameServerControllerTeleportPlayer(gameServerId: string, playerId: string, teleportPlayerInputDTO?: TeleportPlayerInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerTeleportPlayer(gameServerId, playerId, teleportPlayerInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['GameServerApi.gameServerControllerTeleportPlayer']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Test if Takaro can connect to a gameserver. Will do a thorough check and report details. - * @summary Test reachability - * @param {GameServerTestReachabilityInputDTO} [gameServerTestReachabilityInputDTO] GameServerTestReachabilityInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async gameServerControllerTestReachability(gameServerTestReachabilityInputDTO?: GameServerTestReachabilityInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerTestReachability(gameServerTestReachabilityInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['GameServerApi.gameServerControllerTestReachability']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Test if Takaro can connect to a gameserver. Will do a thorough check and report details. - * @summary Test reachability for id - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async gameServerControllerTestReachabilityForId(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerTestReachabilityForId(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['GameServerApi.gameServerControllerTestReachabilityForId']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Unban a player from a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` - * @summary Unban player - * @param {string} gameServerId - * @param {string} playerId - * @param {*} [options] Override http request option. - * @deprecated - * @throws {RequiredError} - */ - async gameServerControllerUnbanPlayer(gameServerId: string, playerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerUnbanPlayer(gameServerId, playerId, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['GameServerApi.gameServerControllerUnbanPlayer']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Update a gameserver Required permissions: `MANAGE_GAMESERVERS` - * @summary Update - * @param {string} id - * @param {GameServerUpdateDTO} [gameServerUpdateDTO] GameServerUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async gameServerControllerUpdate(id: string, gameServerUpdateDTO?: GameServerUpdateDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerUpdate(id, gameServerUpdateDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['GameServerApi.gameServerControllerUpdate']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - } -}; - -/** - * GameServerApi - factory interface - * @export - */ -export const GameServerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = GameServerApiFp(configuration) - return { - /** - * Ban a player from a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` - * @summary Ban player - * @param {string} gameServerId - * @param {string} playerId - * @param {BanPlayerInputDTO} [banPlayerInputDTO] BanPlayerInputDTO - * @param {*} [options] Override http request option. - * @deprecated - * @throws {RequiredError} - */ - gameServerControllerBanPlayer(gameServerId: string, playerId: string, banPlayerInputDTO?: BanPlayerInputDTO, options?: any): AxiosPromise { - return localVarFp.gameServerControllerBanPlayer(gameServerId, playerId, banPlayerInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Create a gameserver Required permissions: `MANAGE_GAMESERVERS` - * @summary Create - * @param {GameServerCreateDTO} [gameServerCreateDTO] GameServerCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - gameServerControllerCreate(gameServerCreateDTO?: GameServerCreateDTO, options?: any): AxiosPromise { - return localVarFp.gameServerControllerCreate(gameServerCreateDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Execute a raw command on a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` - * @summary Execute command - * @param {string} id - * @param {CommandExecuteInputDTO} [commandExecuteInputDTO] CommandExecuteInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - gameServerControllerExecuteCommand(id: string, commandExecuteInputDTO?: CommandExecuteInputDTO, options?: any): AxiosPromise { - return localVarFp.gameServerControllerExecuteCommand(id, commandExecuteInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Fetch status of an import from CSMM Required permissions: `MANAGE_GAMESERVERS` - * @summary Get import - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - gameServerControllerGetImport(id: string, options?: any): AxiosPromise { - return localVarFp.gameServerControllerGetImport(id, options).then((request) => request(axios, basePath)); - }, - /** - * Fetch a gameserver by id - * @summary Get one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - gameServerControllerGetOne(id: string, options?: any): AxiosPromise { - return localVarFp.gameServerControllerGetOne(id, options).then((request) => request(axios, basePath)); - }, - /** - * Fetch a list of players on a gameserver. Requires gameserver to be online and reachable. Required permissions: `READ_PLAYERS` - * @summary Get players - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - gameServerControllerGetPlayers(id: string, options?: any): AxiosPromise { - return localVarFp.gameServerControllerGetPlayers(id, options).then((request) => request(axios, basePath)); - }, - /** - * Fetch gameserver types (7dtd, Rust, ...) - * @summary Get types - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - gameServerControllerGetTypes(options?: any): AxiosPromise { - return localVarFp.gameServerControllerGetTypes(options).then((request) => request(axios, basePath)); - }, - /** - * Give an item to a player. Requires gameserver to be online and reachable. Depending on the underlying game implementation, it\'s possible that the item is dropped on the ground instead of placed directly in the player\'s inventory. Required permissions: `MANAGE_GAMESERVERS` - * @summary Give item - * @param {string} gameServerId - * @param {string} playerId - * @param {GiveItemInputDTO} [giveItemInputDTO] GiveItemInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - gameServerControllerGiveItem(gameServerId: string, playerId: string, giveItemInputDTO?: GiveItemInputDTO, options?: any): AxiosPromise { - return localVarFp.gameServerControllerGiveItem(gameServerId, playerId, giveItemInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Import a gameserver from CSMM. Required permissions: `MANAGE_GAMESERVERS` - * @summary Import from csmm - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - gameServerControllerImportFromCSMM(options?: any): AxiosPromise { - return localVarFp.gameServerControllerImportFromCSMM(options).then((request) => request(axios, basePath)); - }, - /** - * Kick a player from a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` - * @summary Kick player - * @param {string} gameServerId - * @param {string} playerId - * @param {KickPlayerInputDTO} [kickPlayerInputDTO] KickPlayerInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - gameServerControllerKickPlayer(gameServerId: string, playerId: string, kickPlayerInputDTO?: KickPlayerInputDTO, options?: any): AxiosPromise { - return localVarFp.gameServerControllerKickPlayer(gameServerId, playerId, kickPlayerInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * List bans for a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` - * @summary List bans - * @param {string} id - * @param {*} [options] Override http request option. - * @deprecated - * @throws {RequiredError} - */ - gameServerControllerListBans(id: string, options?: any): AxiosPromise { - return localVarFp.gameServerControllerListBans(id, options).then((request) => request(axios, basePath)); - }, - /** - * Delete a gameserver Required permissions: `MANAGE_GAMESERVERS` - * @summary Remove - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - gameServerControllerRemove(id: string, options?: any): AxiosPromise { - return localVarFp.gameServerControllerRemove(id, options).then((request) => request(axios, basePath)); - }, - /** - * Fetch gameservers - * @summary Search - * @param {GameServerSearchInputDTO} [gameServerSearchInputDTO] GameServerSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - gameServerControllerSearch(gameServerSearchInputDTO?: GameServerSearchInputDTO, options?: any): AxiosPromise { - return localVarFp.gameServerControllerSearch(gameServerSearchInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Send a message in gameserver chat. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` - * @summary Send message - * @param {string} id - * @param {MessageSendInputDTO} [messageSendInputDTO] MessageSendInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - gameServerControllerSendMessage(id: string, messageSendInputDTO?: MessageSendInputDTO, options?: any): AxiosPromise { - return localVarFp.gameServerControllerSendMessage(id, messageSendInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Shuts down the gameserver. This is a \'soft\' shutdown, meaning the gameserver will be stopped gracefully. If the gameserver is not reachable, this will have no effect. Note that most hosting providers will automatically restart the gameserver after a shutdown, which makes this operation act as a \'restart\' instead. Required permissions: `MANAGE_GAMESERVERS` - * @summary Shutdown - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - gameServerControllerShutdown(id: string, options?: any): AxiosPromise { - return localVarFp.gameServerControllerShutdown(id, options).then((request) => request(axios, basePath)); - }, - /** - * Teleport a player to a location. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` - * @summary Teleport player - * @param {string} gameServerId - * @param {string} playerId - * @param {TeleportPlayerInputDTO} [teleportPlayerInputDTO] TeleportPlayerInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - gameServerControllerTeleportPlayer(gameServerId: string, playerId: string, teleportPlayerInputDTO?: TeleportPlayerInputDTO, options?: any): AxiosPromise { - return localVarFp.gameServerControllerTeleportPlayer(gameServerId, playerId, teleportPlayerInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Test if Takaro can connect to a gameserver. Will do a thorough check and report details. - * @summary Test reachability - * @param {GameServerTestReachabilityInputDTO} [gameServerTestReachabilityInputDTO] GameServerTestReachabilityInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - gameServerControllerTestReachability(gameServerTestReachabilityInputDTO?: GameServerTestReachabilityInputDTO, options?: any): AxiosPromise { - return localVarFp.gameServerControllerTestReachability(gameServerTestReachabilityInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Test if Takaro can connect to a gameserver. Will do a thorough check and report details. - * @summary Test reachability for id - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - gameServerControllerTestReachabilityForId(id: string, options?: any): AxiosPromise { - return localVarFp.gameServerControllerTestReachabilityForId(id, options).then((request) => request(axios, basePath)); - }, - /** - * Unban a player from a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` - * @summary Unban player - * @param {string} gameServerId - * @param {string} playerId - * @param {*} [options] Override http request option. - * @deprecated - * @throws {RequiredError} - */ - gameServerControllerUnbanPlayer(gameServerId: string, playerId: string, options?: any): AxiosPromise { - return localVarFp.gameServerControllerUnbanPlayer(gameServerId, playerId, options).then((request) => request(axios, basePath)); - }, - /** - * Update a gameserver Required permissions: `MANAGE_GAMESERVERS` - * @summary Update - * @param {string} id - * @param {GameServerUpdateDTO} [gameServerUpdateDTO] GameServerUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - gameServerControllerUpdate(id: string, gameServerUpdateDTO?: GameServerUpdateDTO, options?: any): AxiosPromise { - return localVarFp.gameServerControllerUpdate(id, gameServerUpdateDTO, options).then((request) => request(axios, basePath)); - }, - }; + async cronJobControllerUpdate( + id: string, + cronJobUpdateDTO?: CronJobUpdateDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.cronJobControllerUpdate(id, cronJobUpdateDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['CronJobApi.cronJobControllerUpdate']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + }; }; /** - * GameServerApi - object-oriented interface + * CronJobApi - factory interface * @export - * @class GameServerApi - * @extends {BaseAPI} */ -export class GameServerApi extends BaseAPI { +export const CronJobApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = CronJobApiFp(configuration); + return { /** - * Ban a player from a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` - * @summary Ban player - * @param {string} gameServerId - * @param {string} playerId - * @param {BanPlayerInputDTO} [banPlayerInputDTO] BanPlayerInputDTO + * Required permissions: `MANAGE_MODULES` + * @summary Create + * @param {CronJobCreateDTO} [cronJobCreateDTO] CronJobCreateDTO * @param {*} [options] Override http request option. - * @deprecated * @throws {RequiredError} - * @memberof GameServerApi */ - public gameServerControllerBanPlayer(gameServerId: string, playerId: string, banPlayerInputDTO?: BanPlayerInputDTO, options?: RawAxiosRequestConfig) { - return GameServerApiFp(this.configuration).gameServerControllerBanPlayer(gameServerId, playerId, banPlayerInputDTO, options).then((request) => request(this.axios, this.basePath)); - } - + cronJobControllerCreate(cronJobCreateDTO?: CronJobCreateDTO, options?: any): AxiosPromise { + return localVarFp.cronJobControllerCreate(cronJobCreateDTO, options).then((request) => request(axios, basePath)); + }, /** - * Create a gameserver Required permissions: `MANAGE_GAMESERVERS` - * @summary Create - * @param {GameServerCreateDTO} [gameServerCreateDTO] GameServerCreateDTO + * Required permissions: `READ_MODULES` + * @summary Get executions + * @param {string} id + * @param {any} [success] + * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof GameServerApi */ - public gameServerControllerCreate(gameServerCreateDTO?: GameServerCreateDTO, options?: RawAxiosRequestConfig) { - return GameServerApiFp(this.configuration).gameServerControllerCreate(gameServerCreateDTO, options).then((request) => request(this.axios, this.basePath)); - } - + cronJobControllerGetExecutions( + id: string, + success?: any, + eventSearchInputDTO?: EventSearchInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .cronJobControllerGetExecutions(id, success, eventSearchInputDTO, options) + .then((request) => request(axios, basePath)); + }, /** - * Execute a raw command on a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` - * @summary Execute command - * @param {string} id - * @param {CommandExecuteInputDTO} [commandExecuteInputDTO] CommandExecuteInputDTO + * Required permissions: `READ_MODULES` + * @summary Get one + * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof GameServerApi */ - public gameServerControllerExecuteCommand(id: string, commandExecuteInputDTO?: CommandExecuteInputDTO, options?: RawAxiosRequestConfig) { - return GameServerApiFp(this.configuration).gameServerControllerExecuteCommand(id, commandExecuteInputDTO, options).then((request) => request(this.axios, this.basePath)); - } - + cronJobControllerGetOne(id: string, options?: any): AxiosPromise { + return localVarFp.cronJobControllerGetOne(id, options).then((request) => request(axios, basePath)); + }, /** - * Fetch status of an import from CSMM Required permissions: `MANAGE_GAMESERVERS` - * @summary Get import - * @param {string} id + * Required permissions: `MANAGE_MODULES` + * @summary Remove + * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof GameServerApi */ - public gameServerControllerGetImport(id: string, options?: RawAxiosRequestConfig) { - return GameServerApiFp(this.configuration).gameServerControllerGetImport(id, options).then((request) => request(this.axios, this.basePath)); - } - + cronJobControllerRemove(id: string, options?: any): AxiosPromise { + return localVarFp.cronJobControllerRemove(id, options).then((request) => request(axios, basePath)); + }, /** - * Fetch a gameserver by id - * @summary Get one - * @param {string} id + * Required permissions: `READ_MODULES` + * @summary Search + * @param {CronJobSearchInputDTO} [cronJobSearchInputDTO] CronJobSearchInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof GameServerApi */ - public gameServerControllerGetOne(id: string, options?: RawAxiosRequestConfig) { - return GameServerApiFp(this.configuration).gameServerControllerGetOne(id, options).then((request) => request(this.axios, this.basePath)); - } - + cronJobControllerSearch( + cronJobSearchInputDTO?: CronJobSearchInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .cronJobControllerSearch(cronJobSearchInputDTO, options) + .then((request) => request(axios, basePath)); + }, /** - * Fetch a list of players on a gameserver. Requires gameserver to be online and reachable. Required permissions: `READ_PLAYERS` - * @summary Get players - * @param {string} id + * Required permissions: `MANAGE_MODULES` + * @summary Trigger + * @param {CronJobTriggerDTO} [cronJobTriggerDTO] CronJobTriggerDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof GameServerApi */ - public gameServerControllerGetPlayers(id: string, options?: RawAxiosRequestConfig) { - return GameServerApiFp(this.configuration).gameServerControllerGetPlayers(id, options).then((request) => request(this.axios, this.basePath)); - } - + cronJobControllerTrigger(cronJobTriggerDTO?: CronJobTriggerDTO, options?: any): AxiosPromise { + return localVarFp + .cronJobControllerTrigger(cronJobTriggerDTO, options) + .then((request) => request(axios, basePath)); + }, /** - * Fetch gameserver types (7dtd, Rust, ...) - * @summary Get types + * Required permissions: `MANAGE_MODULES` + * @summary Update + * @param {string} id + * @param {CronJobUpdateDTO} [cronJobUpdateDTO] CronJobUpdateDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof GameServerApi */ - public gameServerControllerGetTypes(options?: RawAxiosRequestConfig) { - return GameServerApiFp(this.configuration).gameServerControllerGetTypes(options).then((request) => request(this.axios, this.basePath)); - } + cronJobControllerUpdate( + id: string, + cronJobUpdateDTO?: CronJobUpdateDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .cronJobControllerUpdate(id, cronJobUpdateDTO, options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * CronJobApi - object-oriented interface + * @export + * @class CronJobApi + * @extends {BaseAPI} + */ +export class CronJobApi extends BaseAPI { + /** + * Required permissions: `MANAGE_MODULES` + * @summary Create + * @param {CronJobCreateDTO} [cronJobCreateDTO] CronJobCreateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CronJobApi + */ + public cronJobControllerCreate(cronJobCreateDTO?: CronJobCreateDTO, options?: RawAxiosRequestConfig) { + return CronJobApiFp(this.configuration) + .cronJobControllerCreate(cronJobCreateDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `READ_MODULES` + * @summary Get executions + * @param {string} id + * @param {any} [success] + * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CronJobApi + */ + public cronJobControllerGetExecutions( + id: string, + success?: any, + eventSearchInputDTO?: EventSearchInputDTO, + options?: RawAxiosRequestConfig, + ) { + return CronJobApiFp(this.configuration) + .cronJobControllerGetExecutions(id, success, eventSearchInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `READ_MODULES` + * @summary Get one + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CronJobApi + */ + public cronJobControllerGetOne(id: string, options?: RawAxiosRequestConfig) { + return CronJobApiFp(this.configuration) + .cronJobControllerGetOne(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `MANAGE_MODULES` + * @summary Remove + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CronJobApi + */ + public cronJobControllerRemove(id: string, options?: RawAxiosRequestConfig) { + return CronJobApiFp(this.configuration) + .cronJobControllerRemove(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `READ_MODULES` + * @summary Search + * @param {CronJobSearchInputDTO} [cronJobSearchInputDTO] CronJobSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CronJobApi + */ + public cronJobControllerSearch(cronJobSearchInputDTO?: CronJobSearchInputDTO, options?: RawAxiosRequestConfig) { + return CronJobApiFp(this.configuration) + .cronJobControllerSearch(cronJobSearchInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `MANAGE_MODULES` + * @summary Trigger + * @param {CronJobTriggerDTO} [cronJobTriggerDTO] CronJobTriggerDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CronJobApi + */ + public cronJobControllerTrigger(cronJobTriggerDTO?: CronJobTriggerDTO, options?: RawAxiosRequestConfig) { + return CronJobApiFp(this.configuration) + .cronJobControllerTrigger(cronJobTriggerDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `MANAGE_MODULES` + * @summary Update + * @param {string} id + * @param {CronJobUpdateDTO} [cronJobUpdateDTO] CronJobUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CronJobApi + */ + public cronJobControllerUpdate(id: string, cronJobUpdateDTO?: CronJobUpdateDTO, options?: RawAxiosRequestConfig) { + return CronJobApiFp(this.configuration) + .cronJobControllerUpdate(id, cronJobUpdateDTO, options) + .then((request) => request(this.axios, this.basePath)); + } +} +/** + * DiscordApi - axios parameter creator + * @export + */ +export const DiscordApiAxiosParamCreator = function (configuration?: Configuration) { + return { /** - * Give an item to a player. Requires gameserver to be online and reachable. Depending on the underlying game implementation, it\'s possible that the item is dropped on the ground instead of placed directly in the player\'s inventory. Required permissions: `MANAGE_GAMESERVERS` - * @summary Give item - * @param {string} gameServerId - * @param {string} playerId - * @param {GiveItemInputDTO} [giveItemInputDTO] GiveItemInputDTO + * + * @summary Get invite * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof GameServerApi */ - public gameServerControllerGiveItem(gameServerId: string, playerId: string, giveItemInputDTO?: GiveItemInputDTO, options?: RawAxiosRequestConfig) { - return GameServerApiFp(this.configuration).gameServerControllerGiveItem(gameServerId, playerId, giveItemInputDTO, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * Import a gameserver from CSMM. Required permissions: `MANAGE_GAMESERVERS` - * @summary Import from csmm + discordControllerGetInvite: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/discord/invite`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Search + * @param {GuildSearchInputDTO} [guildSearchInputDTO] GuildSearchInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof GameServerApi */ - public gameServerControllerImportFromCSMM(options?: RawAxiosRequestConfig) { - return GameServerApiFp(this.configuration).gameServerControllerImportFromCSMM(options).then((request) => request(this.axios, this.basePath)); - } - - /** - * Kick a player from a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` - * @summary Kick player - * @param {string} gameServerId - * @param {string} playerId - * @param {KickPlayerInputDTO} [kickPlayerInputDTO] KickPlayerInputDTO + discordControllerSearch: async ( + guildSearchInputDTO?: GuildSearchInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/discord/guilds/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(guildSearchInputDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Send message + * @param {string} id + * @param {SendMessageInputDTO} [sendMessageInputDTO] SendMessageInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof GameServerApi */ - public gameServerControllerKickPlayer(gameServerId: string, playerId: string, kickPlayerInputDTO?: KickPlayerInputDTO, options?: RawAxiosRequestConfig) { - return GameServerApiFp(this.configuration).gameServerControllerKickPlayer(gameServerId, playerId, kickPlayerInputDTO, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * List bans for a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` - * @summary List bans - * @param {string} id + discordControllerSendMessage: async ( + id: string, + sendMessageInputDTO?: SendMessageInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('discordControllerSendMessage', 'id', id); + const localVarPath = `/discord/channels/{id}/message`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(sendMessageInputDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Update guild + * @param {string} id + * @param {GuildApiUpdateDTO} [guildApiUpdateDTO] GuildApiUpdateDTO * @param {*} [options] Override http request option. - * @deprecated * @throws {RequiredError} - * @memberof GameServerApi */ - public gameServerControllerListBans(id: string, options?: RawAxiosRequestConfig) { - return GameServerApiFp(this.configuration).gameServerControllerListBans(id, options).then((request) => request(this.axios, this.basePath)); - } + discordControllerUpdateGuild: async ( + id: string, + guildApiUpdateDTO?: GuildApiUpdateDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('discordControllerUpdateGuild', 'id', id); + const localVarPath = `/discord/guilds/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(guildApiUpdateDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; +/** + * DiscordApi - functional programming interface + * @export + */ +export const DiscordApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = DiscordApiAxiosParamCreator(configuration); + return { /** - * Delete a gameserver Required permissions: `MANAGE_GAMESERVERS` - * @summary Remove - * @param {string} id + * + * @summary Get invite * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof GameServerApi */ - public gameServerControllerRemove(id: string, options?: RawAxiosRequestConfig) { - return GameServerApiFp(this.configuration).gameServerControllerRemove(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * Fetch gameservers + async discordControllerGetInvite( + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.discordControllerGetInvite(options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['DiscordApi.discordControllerGetInvite']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * * @summary Search - * @param {GameServerSearchInputDTO} [gameServerSearchInputDTO] GameServerSearchInputDTO + * @param {GuildSearchInputDTO} [guildSearchInputDTO] GuildSearchInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof GameServerApi */ - public gameServerControllerSearch(gameServerSearchInputDTO?: GameServerSearchInputDTO, options?: RawAxiosRequestConfig) { - return GameServerApiFp(this.configuration).gameServerControllerSearch(gameServerSearchInputDTO, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * Send a message in gameserver chat. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` + async discordControllerSearch( + guildSearchInputDTO?: GuildSearchInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.discordControllerSearch(guildSearchInputDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['DiscordApi.discordControllerSearch']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * * @summary Send message - * @param {string} id - * @param {MessageSendInputDTO} [messageSendInputDTO] MessageSendInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof GameServerApi - */ - public gameServerControllerSendMessage(id: string, messageSendInputDTO?: MessageSendInputDTO, options?: RawAxiosRequestConfig) { - return GameServerApiFp(this.configuration).gameServerControllerSendMessage(id, messageSendInputDTO, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * Shuts down the gameserver. This is a \'soft\' shutdown, meaning the gameserver will be stopped gracefully. If the gameserver is not reachable, this will have no effect. Note that most hosting providers will automatically restart the gameserver after a shutdown, which makes this operation act as a \'restart\' instead. Required permissions: `MANAGE_GAMESERVERS` - * @summary Shutdown - * @param {string} id + * @param {string} id + * @param {SendMessageInputDTO} [sendMessageInputDTO] SendMessageInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof GameServerApi */ - public gameServerControllerShutdown(id: string, options?: RawAxiosRequestConfig) { - return GameServerApiFp(this.configuration).gameServerControllerShutdown(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * Teleport a player to a location. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` - * @summary Teleport player - * @param {string} gameServerId - * @param {string} playerId - * @param {TeleportPlayerInputDTO} [teleportPlayerInputDTO] TeleportPlayerInputDTO + async discordControllerSendMessage( + id: string, + sendMessageInputDTO?: SendMessageInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.discordControllerSendMessage( + id, + sendMessageInputDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['DiscordApi.discordControllerSendMessage']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * + * @summary Update guild + * @param {string} id + * @param {GuildApiUpdateDTO} [guildApiUpdateDTO] GuildApiUpdateDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof GameServerApi */ - public gameServerControllerTeleportPlayer(gameServerId: string, playerId: string, teleportPlayerInputDTO?: TeleportPlayerInputDTO, options?: RawAxiosRequestConfig) { - return GameServerApiFp(this.configuration).gameServerControllerTeleportPlayer(gameServerId, playerId, teleportPlayerInputDTO, options).then((request) => request(this.axios, this.basePath)); - } + async discordControllerUpdateGuild( + id: string, + guildApiUpdateDTO?: GuildApiUpdateDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.discordControllerUpdateGuild( + id, + guildApiUpdateDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['DiscordApi.discordControllerUpdateGuild']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + }; +}; +/** + * DiscordApi - factory interface + * @export + */ +export const DiscordApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = DiscordApiFp(configuration); + return { /** - * Test if Takaro can connect to a gameserver. Will do a thorough check and report details. - * @summary Test reachability - * @param {GameServerTestReachabilityInputDTO} [gameServerTestReachabilityInputDTO] GameServerTestReachabilityInputDTO + * + * @summary Get invite * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof GameServerApi */ - public gameServerControllerTestReachability(gameServerTestReachabilityInputDTO?: GameServerTestReachabilityInputDTO, options?: RawAxiosRequestConfig) { - return GameServerApiFp(this.configuration).gameServerControllerTestReachability(gameServerTestReachabilityInputDTO, options).then((request) => request(this.axios, this.basePath)); - } - + discordControllerGetInvite(options?: any): AxiosPromise { + return localVarFp.discordControllerGetInvite(options).then((request) => request(axios, basePath)); + }, /** - * Test if Takaro can connect to a gameserver. Will do a thorough check and report details. - * @summary Test reachability for id - * @param {string} id + * + * @summary Search + * @param {GuildSearchInputDTO} [guildSearchInputDTO] GuildSearchInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof GameServerApi */ - public gameServerControllerTestReachabilityForId(id: string, options?: RawAxiosRequestConfig) { - return GameServerApiFp(this.configuration).gameServerControllerTestReachabilityForId(id, options).then((request) => request(this.axios, this.basePath)); - } - + discordControllerSearch( + guildSearchInputDTO?: GuildSearchInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .discordControllerSearch(guildSearchInputDTO, options) + .then((request) => request(axios, basePath)); + }, /** - * Unban a player from a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` - * @summary Unban player - * @param {string} gameServerId - * @param {string} playerId + * + * @summary Send message + * @param {string} id + * @param {SendMessageInputDTO} [sendMessageInputDTO] SendMessageInputDTO * @param {*} [options] Override http request option. - * @deprecated * @throws {RequiredError} - * @memberof GameServerApi */ - public gameServerControllerUnbanPlayer(gameServerId: string, playerId: string, options?: RawAxiosRequestConfig) { - return GameServerApiFp(this.configuration).gameServerControllerUnbanPlayer(gameServerId, playerId, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * Update a gameserver Required permissions: `MANAGE_GAMESERVERS` - * @summary Update - * @param {string} id - * @param {GameServerUpdateDTO} [gameServerUpdateDTO] GameServerUpdateDTO + discordControllerSendMessage( + id: string, + sendMessageInputDTO?: SendMessageInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .discordControllerSendMessage(id, sendMessageInputDTO, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Update guild + * @param {string} id + * @param {GuildApiUpdateDTO} [guildApiUpdateDTO] GuildApiUpdateDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof GameServerApi */ - public gameServerControllerUpdate(id: string, gameServerUpdateDTO?: GameServerUpdateDTO, options?: RawAxiosRequestConfig) { - return GameServerApiFp(this.configuration).gameServerControllerUpdate(id, gameServerUpdateDTO, options).then((request) => request(this.axios, this.basePath)); - } -} - - + discordControllerUpdateGuild( + id: string, + guildApiUpdateDTO?: GuildApiUpdateDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .discordControllerUpdateGuild(id, guildApiUpdateDTO, options) + .then((request) => request(axios, basePath)); + }, + }; +}; /** - * HookApi - axios parameter creator - * @export - */ -export const HookApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * Required permissions: `MANAGE_MODULES` - * @summary Create - * @param {HookCreateDTO} [hookCreateDTO] HookCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - hookControllerCreate: async (hookCreateDTO?: HookCreateDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/hook`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(hookCreateDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `READ_MODULES` - * @summary Get executions - * @param {string} id - * @param {any} [success] - * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - hookControllerGetExecutions: async (id: string, success?: any, eventSearchInputDTO?: EventSearchInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('hookControllerGetExecutions', 'id', id) - const localVarPath = `/hook/{id}/executions` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - if (success !== undefined) { - for (const [key, value] of Object.entries(success)) { - localVarQueryParameter[key] = value; - } - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(eventSearchInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `READ_MODULES` - * @summary Get one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - hookControllerGetOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('hookControllerGetOne', 'id', id) - const localVarPath = `/hook/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Remove - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - hookControllerRemove: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('hookControllerRemove', 'id', id) - const localVarPath = `/hook/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `READ_MODULES` - * @summary Search - * @param {HookSearchInputDTO} [hookSearchInputDTO] HookSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - hookControllerSearch: async (hookSearchInputDTO?: HookSearchInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/hook/search`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(hookSearchInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Trigger a hook. This is used for testing purposes, the event will not actually be created but the hook-logic will be executed. You can pass any data you want, but it must validate against the corresponding event metadata. Eg to trigger the `chat-message` event, you must pass an object with a `message` property Required permissions: `MANAGE_MODULES` - * @summary Trigger - * @param {HookTriggerDTO} [hookTriggerDTO] HookTriggerDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - hookControllerTrigger: async (hookTriggerDTO?: HookTriggerDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/hook/trigger`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(hookTriggerDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Update - * @param {string} id - * @param {HookUpdateDTO} [hookUpdateDTO] HookUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - hookControllerUpdate: async (id: string, hookUpdateDTO?: HookUpdateDTO, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('hookControllerUpdate', 'id', id) - const localVarPath = `/hook/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(hookUpdateDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * HookApi - functional programming interface - * @export - */ -export const HookApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = HookApiAxiosParamCreator(configuration) - return { - /** - * Required permissions: `MANAGE_MODULES` - * @summary Create - * @param {HookCreateDTO} [hookCreateDTO] HookCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async hookControllerCreate(hookCreateDTO?: HookCreateDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.hookControllerCreate(hookCreateDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['HookApi.hookControllerCreate']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `READ_MODULES` - * @summary Get executions - * @param {string} id - * @param {any} [success] - * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async hookControllerGetExecutions(id: string, success?: any, eventSearchInputDTO?: EventSearchInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.hookControllerGetExecutions(id, success, eventSearchInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['HookApi.hookControllerGetExecutions']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `READ_MODULES` - * @summary Get one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async hookControllerGetOne(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.hookControllerGetOne(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['HookApi.hookControllerGetOne']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Remove - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async hookControllerRemove(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.hookControllerRemove(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['HookApi.hookControllerRemove']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `READ_MODULES` - * @summary Search - * @param {HookSearchInputDTO} [hookSearchInputDTO] HookSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async hookControllerSearch(hookSearchInputDTO?: HookSearchInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.hookControllerSearch(hookSearchInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['HookApi.hookControllerSearch']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Trigger a hook. This is used for testing purposes, the event will not actually be created but the hook-logic will be executed. You can pass any data you want, but it must validate against the corresponding event metadata. Eg to trigger the `chat-message` event, you must pass an object with a `message` property Required permissions: `MANAGE_MODULES` - * @summary Trigger - * @param {HookTriggerDTO} [hookTriggerDTO] HookTriggerDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async hookControllerTrigger(hookTriggerDTO?: HookTriggerDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.hookControllerTrigger(hookTriggerDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['HookApi.hookControllerTrigger']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Update - * @param {string} id - * @param {HookUpdateDTO} [hookUpdateDTO] HookUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async hookControllerUpdate(id: string, hookUpdateDTO?: HookUpdateDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.hookControllerUpdate(id, hookUpdateDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['HookApi.hookControllerUpdate']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - } -}; - -/** - * HookApi - factory interface + * DiscordApi - object-oriented interface * @export + * @class DiscordApi + * @extends {BaseAPI} */ -export const HookApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = HookApiFp(configuration) - return { - /** - * Required permissions: `MANAGE_MODULES` - * @summary Create - * @param {HookCreateDTO} [hookCreateDTO] HookCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - hookControllerCreate(hookCreateDTO?: HookCreateDTO, options?: any): AxiosPromise { - return localVarFp.hookControllerCreate(hookCreateDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `READ_MODULES` - * @summary Get executions - * @param {string} id - * @param {any} [success] - * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - hookControllerGetExecutions(id: string, success?: any, eventSearchInputDTO?: EventSearchInputDTO, options?: any): AxiosPromise { - return localVarFp.hookControllerGetExecutions(id, success, eventSearchInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `READ_MODULES` - * @summary Get one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - hookControllerGetOne(id: string, options?: any): AxiosPromise { - return localVarFp.hookControllerGetOne(id, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Remove - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - hookControllerRemove(id: string, options?: any): AxiosPromise { - return localVarFp.hookControllerRemove(id, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `READ_MODULES` - * @summary Search - * @param {HookSearchInputDTO} [hookSearchInputDTO] HookSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - hookControllerSearch(hookSearchInputDTO?: HookSearchInputDTO, options?: any): AxiosPromise { - return localVarFp.hookControllerSearch(hookSearchInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Trigger a hook. This is used for testing purposes, the event will not actually be created but the hook-logic will be executed. You can pass any data you want, but it must validate against the corresponding event metadata. Eg to trigger the `chat-message` event, you must pass an object with a `message` property Required permissions: `MANAGE_MODULES` - * @summary Trigger - * @param {HookTriggerDTO} [hookTriggerDTO] HookTriggerDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - hookControllerTrigger(hookTriggerDTO?: HookTriggerDTO, options?: any): AxiosPromise { - return localVarFp.hookControllerTrigger(hookTriggerDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Update - * @param {string} id - * @param {HookUpdateDTO} [hookUpdateDTO] HookUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - hookControllerUpdate(id: string, hookUpdateDTO?: HookUpdateDTO, options?: any): AxiosPromise { - return localVarFp.hookControllerUpdate(id, hookUpdateDTO, options).then((request) => request(axios, basePath)); - }, - }; -}; +export class DiscordApi extends BaseAPI { + /** + * + * @summary Get invite + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DiscordApi + */ + public discordControllerGetInvite(options?: RawAxiosRequestConfig) { + return DiscordApiFp(this.configuration) + .discordControllerGetInvite(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Search + * @param {GuildSearchInputDTO} [guildSearchInputDTO] GuildSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DiscordApi + */ + public discordControllerSearch(guildSearchInputDTO?: GuildSearchInputDTO, options?: RawAxiosRequestConfig) { + return DiscordApiFp(this.configuration) + .discordControllerSearch(guildSearchInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Send message + * @param {string} id + * @param {SendMessageInputDTO} [sendMessageInputDTO] SendMessageInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DiscordApi + */ + public discordControllerSendMessage( + id: string, + sendMessageInputDTO?: SendMessageInputDTO, + options?: RawAxiosRequestConfig, + ) { + return DiscordApiFp(this.configuration) + .discordControllerSendMessage(id, sendMessageInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Update guild + * @param {string} id + * @param {GuildApiUpdateDTO} [guildApiUpdateDTO] GuildApiUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DiscordApi + */ + public discordControllerUpdateGuild( + id: string, + guildApiUpdateDTO?: GuildApiUpdateDTO, + options?: RawAxiosRequestConfig, + ) { + return DiscordApiFp(this.configuration) + .discordControllerUpdateGuild(id, guildApiUpdateDTO, options) + .then((request) => request(this.axios, this.basePath)); + } +} /** - * HookApi - object-oriented interface + * DomainApi - axios parameter creator * @export - * @class HookApi - * @extends {BaseAPI} */ -export class HookApi extends BaseAPI { +export const DomainApiAxiosParamCreator = function (configuration?: Configuration) { + return { /** - * Required permissions: `MANAGE_MODULES` + * * @summary Create - * @param {HookCreateDTO} [hookCreateDTO] HookCreateDTO + * @param {DomainCreateInputDTO} [domainCreateInputDTO] DomainCreateInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof HookApi */ - public hookControllerCreate(hookCreateDTO?: HookCreateDTO, options?: RawAxiosRequestConfig) { - return HookApiFp(this.configuration).hookControllerCreate(hookCreateDTO, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * Required permissions: `READ_MODULES` - * @summary Get executions - * @param {string} id - * @param {any} [success] - * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO + domainControllerCreate: async ( + domainCreateInputDTO?: DomainCreateInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/domain`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication adminAuth required + await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration); + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(domainCreateInputDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get one + * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof HookApi */ - public hookControllerGetExecutions(id: string, success?: any, eventSearchInputDTO?: EventSearchInputDTO, options?: RawAxiosRequestConfig) { - return HookApiFp(this.configuration).hookControllerGetExecutions(id, success, eventSearchInputDTO, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * Required permissions: `READ_MODULES` - * @summary Get one - * @param {string} id + domainControllerGetOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('domainControllerGetOne', 'id', id); + const localVarPath = `/domain/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication adminAuth required + await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get token + * @param {TokenInputDTO} [tokenInputDTO] TokenInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof HookApi */ - public hookControllerGetOne(id: string, options?: RawAxiosRequestConfig) { - return HookApiFp(this.configuration).hookControllerGetOne(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * Required permissions: `MANAGE_MODULES` + domainControllerGetToken: async ( + tokenInputDTO?: TokenInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/token`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication adminAuth required + await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration); + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(tokenInputDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * * @summary Remove - * @param {string} id + * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof HookApi */ - public hookControllerRemove(id: string, options?: RawAxiosRequestConfig) { - return HookApiFp(this.configuration).hookControllerRemove(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * Required permissions: `READ_MODULES` + domainControllerRemove: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('domainControllerRemove', 'id', id); + const localVarPath = `/domain/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication adminAuth required + await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * * @summary Search - * @param {HookSearchInputDTO} [hookSearchInputDTO] HookSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof HookApi - */ - public hookControllerSearch(hookSearchInputDTO?: HookSearchInputDTO, options?: RawAxiosRequestConfig) { - return HookApiFp(this.configuration).hookControllerSearch(hookSearchInputDTO, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * Trigger a hook. This is used for testing purposes, the event will not actually be created but the hook-logic will be executed. You can pass any data you want, but it must validate against the corresponding event metadata. Eg to trigger the `chat-message` event, you must pass an object with a `message` property Required permissions: `MANAGE_MODULES` - * @summary Trigger - * @param {HookTriggerDTO} [hookTriggerDTO] HookTriggerDTO + * @param {DomainSearchInputDTO} [domainSearchInputDTO] DomainSearchInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof HookApi */ - public hookControllerTrigger(hookTriggerDTO?: HookTriggerDTO, options?: RawAxiosRequestConfig) { - return HookApiFp(this.configuration).hookControllerTrigger(hookTriggerDTO, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * Required permissions: `MANAGE_MODULES` + domainControllerSearch: async ( + domainSearchInputDTO?: DomainSearchInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/domain/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication adminAuth required + await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration); + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(domainSearchInputDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * * @summary Update - * @param {string} id - * @param {HookUpdateDTO} [hookUpdateDTO] HookUpdateDTO + * @param {string} id + * @param {DomainUpdateInputDTO} [domainUpdateInputDTO] DomainUpdateInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof HookApi */ - public hookControllerUpdate(id: string, hookUpdateDTO?: HookUpdateDTO, options?: RawAxiosRequestConfig) { - return HookApiFp(this.configuration).hookControllerUpdate(id, hookUpdateDTO, options).then((request) => request(this.axios, this.basePath)); - } -} - - - -/** - * ItemApi - axios parameter creator - * @export - */ -export const ItemApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * Required permissions: `READ_ITEMS` - * @summary Find one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - itemControllerFindOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('itemControllerFindOne', 'id', id) - const localVarPath = `/items/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `READ_ITEMS` - * @summary Search - * @param {ItemSearchInputDTO} [itemSearchInputDTO] ItemSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - itemControllerSearch: async (itemSearchInputDTO?: ItemSearchInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/items/search`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(itemSearchInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * ItemApi - functional programming interface - * @export - */ -export const ItemApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = ItemApiAxiosParamCreator(configuration) - return { - /** - * Required permissions: `READ_ITEMS` - * @summary Find one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async itemControllerFindOne(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.itemControllerFindOne(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ItemApi.itemControllerFindOne']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `READ_ITEMS` - * @summary Search - * @param {ItemSearchInputDTO} [itemSearchInputDTO] ItemSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async itemControllerSearch(itemSearchInputDTO?: ItemSearchInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.itemControllerSearch(itemSearchInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ItemApi.itemControllerSearch']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - } -}; - -/** - * ItemApi - factory interface - * @export - */ -export const ItemApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = ItemApiFp(configuration) - return { - /** - * Required permissions: `READ_ITEMS` - * @summary Find one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - itemControllerFindOne(id: string, options?: any): AxiosPromise { - return localVarFp.itemControllerFindOne(id, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `READ_ITEMS` - * @summary Search - * @param {ItemSearchInputDTO} [itemSearchInputDTO] ItemSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - itemControllerSearch(itemSearchInputDTO?: ItemSearchInputDTO, options?: any): AxiosPromise { - return localVarFp.itemControllerSearch(itemSearchInputDTO, options).then((request) => request(axios, basePath)); - }, - }; + domainControllerUpdate: async ( + id: string, + domainUpdateInputDTO?: DomainUpdateInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('domainControllerUpdate', 'id', id); + const localVarPath = `/domain/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication adminAuth required + await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration); + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(domainUpdateInputDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; }; /** - * ItemApi - object-oriented interface + * DomainApi - functional programming interface * @export - * @class ItemApi - * @extends {BaseAPI} */ -export class ItemApi extends BaseAPI { +export const DomainApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = DomainApiAxiosParamCreator(configuration); + return { /** - * Required permissions: `READ_ITEMS` - * @summary Find one - * @param {string} id + * + * @summary Create + * @param {DomainCreateInputDTO} [domainCreateInputDTO] DomainCreateInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof ItemApi */ - public itemControllerFindOne(id: string, options?: RawAxiosRequestConfig) { - return ItemApiFp(this.configuration).itemControllerFindOne(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * Required permissions: `READ_ITEMS` + async domainControllerCreate( + domainCreateInputDTO?: DomainCreateInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerCreate(domainCreateInputDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['DomainApi.domainControllerCreate']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * + * @summary Get one + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async domainControllerGetOne( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerGetOne(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['DomainApi.domainControllerGetOne']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * + * @summary Get token + * @param {TokenInputDTO} [tokenInputDTO] TokenInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async domainControllerGetToken( + tokenInputDTO?: TokenInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerGetToken(tokenInputDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['DomainApi.domainControllerGetToken']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * + * @summary Remove + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async domainControllerRemove( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerRemove(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['DomainApi.domainControllerRemove']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * * @summary Search - * @param {ItemSearchInputDTO} [itemSearchInputDTO] ItemSearchInputDTO + * @param {DomainSearchInputDTO} [domainSearchInputDTO] DomainSearchInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof ItemApi */ - public itemControllerSearch(itemSearchInputDTO?: ItemSearchInputDTO, options?: RawAxiosRequestConfig) { - return ItemApiFp(this.configuration).itemControllerSearch(itemSearchInputDTO, options).then((request) => request(this.axios, this.basePath)); - } -} - - - -/** - * MetaApi - axios parameter creator - * @export - */ -export const MetaApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * - * @summary Get health - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - metaGetHealth: async (options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/healthz`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get metrics - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - metaGetMetrics: async (options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/metrics`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get open api - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - metaGetOpenApi: async (options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/openapi.json`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get open api html - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - metaGetOpenApiHtml: async (options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/api.html`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get readiness - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - metaGetReadiness: async (options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/readyz`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * MetaApi - functional programming interface - * @export - */ -export const MetaApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = MetaApiAxiosParamCreator(configuration) - return { - /** - * - * @summary Get health - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async metaGetHealth(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetHealth(options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['MetaApi.metaGetHealth']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * - * @summary Get metrics - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async metaGetMetrics(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetMetrics(options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['MetaApi.metaGetMetrics']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * - * @summary Get open api - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async metaGetOpenApi(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetOpenApi(options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['MetaApi.metaGetOpenApi']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * - * @summary Get open api html - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async metaGetOpenApiHtml(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetOpenApiHtml(options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['MetaApi.metaGetOpenApiHtml']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * - * @summary Get readiness - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async metaGetReadiness(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetReadiness(options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['MetaApi.metaGetReadiness']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - } -}; - -/** - * MetaApi - factory interface - * @export - */ -export const MetaApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = MetaApiFp(configuration) - return { - /** - * - * @summary Get health - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - metaGetHealth(options?: any): AxiosPromise { - return localVarFp.metaGetHealth(options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get metrics - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - metaGetMetrics(options?: any): AxiosPromise { - return localVarFp.metaGetMetrics(options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get open api - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - metaGetOpenApi(options?: any): AxiosPromise { - return localVarFp.metaGetOpenApi(options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get open api html - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - metaGetOpenApiHtml(options?: any): AxiosPromise { - return localVarFp.metaGetOpenApiHtml(options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get readiness - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - metaGetReadiness(options?: any): AxiosPromise { - return localVarFp.metaGetReadiness(options).then((request) => request(axios, basePath)); - }, - }; + async domainControllerSearch( + domainSearchInputDTO?: DomainSearchInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerSearch(domainSearchInputDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['DomainApi.domainControllerSearch']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * + * @summary Update + * @param {string} id + * @param {DomainUpdateInputDTO} [domainUpdateInputDTO] DomainUpdateInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async domainControllerUpdate( + id: string, + domainUpdateInputDTO?: DomainUpdateInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerUpdate( + id, + domainUpdateInputDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['DomainApi.domainControllerUpdate']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + }; }; /** - * MetaApi - object-oriented interface + * DomainApi - factory interface * @export - * @class MetaApi - * @extends {BaseAPI} */ -export class MetaApi extends BaseAPI { +export const DomainApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = DomainApiFp(configuration); + return { /** - * - * @summary Get health + * + * @summary Create + * @param {DomainCreateInputDTO} [domainCreateInputDTO] DomainCreateInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof MetaApi */ - public metaGetHealth(options?: RawAxiosRequestConfig) { - return MetaApiFp(this.configuration).metaGetHealth(options).then((request) => request(this.axios, this.basePath)); - } - + domainControllerCreate( + domainCreateInputDTO?: DomainCreateInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .domainControllerCreate(domainCreateInputDTO, options) + .then((request) => request(axios, basePath)); + }, /** - * - * @summary Get metrics + * + * @summary Get one + * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof MetaApi */ - public metaGetMetrics(options?: RawAxiosRequestConfig) { - return MetaApiFp(this.configuration).metaGetMetrics(options).then((request) => request(this.axios, this.basePath)); - } - + domainControllerGetOne(id: string, options?: any): AxiosPromise { + return localVarFp.domainControllerGetOne(id, options).then((request) => request(axios, basePath)); + }, /** - * - * @summary Get open api + * + * @summary Get token + * @param {TokenInputDTO} [tokenInputDTO] TokenInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof MetaApi */ - public metaGetOpenApi(options?: RawAxiosRequestConfig) { - return MetaApiFp(this.configuration).metaGetOpenApi(options).then((request) => request(this.axios, this.basePath)); - } - + domainControllerGetToken(tokenInputDTO?: TokenInputDTO, options?: any): AxiosPromise { + return localVarFp.domainControllerGetToken(tokenInputDTO, options).then((request) => request(axios, basePath)); + }, /** - * - * @summary Get open api html + * + * @summary Remove + * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof MetaApi */ - public metaGetOpenApiHtml(options?: RawAxiosRequestConfig) { - return MetaApiFp(this.configuration).metaGetOpenApiHtml(options).then((request) => request(this.axios, this.basePath)); - } - + domainControllerRemove(id: string, options?: any): AxiosPromise { + return localVarFp.domainControllerRemove(id, options).then((request) => request(axios, basePath)); + }, /** - * - * @summary Get readiness + * + * @summary Search + * @param {DomainSearchInputDTO} [domainSearchInputDTO] DomainSearchInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof MetaApi */ - public metaGetReadiness(options?: RawAxiosRequestConfig) { - return MetaApiFp(this.configuration).metaGetReadiness(options).then((request) => request(this.axios, this.basePath)); - } -} - - - -/** - * ModuleApi - axios parameter creator - * @export - */ -export const ModuleApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * Create a new module Required permissions: `MANAGE_MODULES` - * @summary Create a new module - * @param {ModuleCreateAPIDTO} [moduleCreateAPIDTO] ModuleCreateAPIDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moduleControllerCreate: async (moduleCreateAPIDTO?: ModuleCreateAPIDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/module`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(moduleCreateAPIDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `READ_MODULES` - * @summary Get one module - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moduleControllerGetOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('moduleControllerGetOne', 'id', id) - const localVarPath = `/module/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Removes a module, including all versions and config Required permissions: `MANAGE_MODULES` - * @summary Remove a module - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moduleControllerRemove: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('moduleControllerRemove', 'id', id) - const localVarPath = `/module/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `READ_MODULES` - * @summary Search modules - * @param {ModuleSearchInputDTO} [moduleSearchInputDTO] ModuleSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moduleControllerSearch: async (moduleSearchInputDTO?: ModuleSearchInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/module/search`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(moduleSearchInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Update - * @param {string} id - * @param {ModuleUpdateDTO} [moduleUpdateDTO] ModuleUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moduleControllerUpdate: async (id: string, moduleUpdateDTO?: ModuleUpdateDTO, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('moduleControllerUpdate', 'id', id) - const localVarPath = `/module/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(moduleUpdateDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `READ_MODULES` - * @summary Search module installations - * @param {ModuleInstallationSearchInputDTO} [moduleInstallationSearchInputDTO] ModuleInstallationSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moduleInstallationsControllerGetInstalledModules: async (moduleInstallationSearchInputDTO?: ModuleInstallationSearchInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/module/installation/search`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(moduleInstallationSearchInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `READ_MODULES` - * @summary Get one installation - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moduleInstallationsControllerGetModuleInstallation: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('moduleInstallationsControllerGetModuleInstallation', 'id', id) - const localVarPath = `/module/installation/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Install a module on a gameserver. You can have multiple installations of the same module on the same gameserver. Required permissions: `MANAGE_GAMESERVERS` - * @summary Install module - * @param {InstallModuleDTO} [installModuleDTO] InstallModuleDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moduleInstallationsControllerInstallModule: async (installModuleDTO?: InstallModuleDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/module/installation/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(installModuleDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Uninstall a module from a gameserver. This will not delete the module from the database. Required permissions: `MANAGE_GAMESERVERS` - * @summary Uninstall module - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moduleInstallationsControllerUninstallModule: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('moduleInstallationsControllerUninstallModule', 'id', id) - const localVarPath = `/module/installation/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Exports a module to a format that can be imported into another Takaro instance Required permissions: `READ_MODULES` - * @summary Export a module version - * @param {ModuleExportInputDTO} [moduleExportInputDTO] ModuleExportInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moduleVersionControllerExport: async (moduleExportInputDTO?: ModuleExportInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/module/version/export`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(moduleExportInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `READ_MODULES` - * @summary Get one version - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moduleVersionControllerGetModuleVersion: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('moduleVersionControllerGetModuleVersion', 'id', id) - const localVarPath = `/module/version/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Imports a module from a format that was exported from another Takaro instance Required permissions: `MANAGE_MODULES` - * @summary Import a module version - * @param {BuiltinModule} [builtinModule] BuiltinModule - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moduleVersionControllerImport: async (builtinModule?: BuiltinModule, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/module/version/import`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(builtinModule, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Removes a version of a module, including all config that is linked to this version Required permissions: `MANAGE_MODULES` - * @summary Remove a version - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moduleVersionControllerRemoveVersion: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('moduleVersionControllerRemoveVersion', 'id', id) - const localVarPath = `/module/version/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `READ_MODULES` - * @summary Search module versions - * @param {ModuleVersionSearchInputDTO} [moduleVersionSearchInputDTO] ModuleVersionSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moduleVersionControllerSearchVersions: async (moduleVersionSearchInputDTO?: ModuleVersionSearchInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/module/version/search`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(moduleVersionSearchInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Creates a new version of a module, copying all config (commands,hooks,cronjobs,...) from the \"latest\" version into a new, immutable version Required permissions: `MANAGE_MODULES` - * @summary Tag a new version - * @param {ModuleVersionCreateAPIDTO} [moduleVersionCreateAPIDTO] ModuleVersionCreateAPIDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moduleVersionControllerTagVersion: async (moduleVersionCreateAPIDTO?: ModuleVersionCreateAPIDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/module/version/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(moduleVersionCreateAPIDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update a version of a module, note that you can only update the \"latest\" version. Tagged versions are immutable Required permissions: `MANAGE_MODULES` - * @summary Update a version - * @param {string} id - * @param {ModuleVersionUpdateDTO} [moduleVersionUpdateDTO] ModuleVersionUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moduleVersionControllerUpdateVersion: async (id: string, moduleVersionUpdateDTO?: ModuleVersionUpdateDTO, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('moduleVersionControllerUpdateVersion', 'id', id) - const localVarPath = `/module/version/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(moduleVersionUpdateDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * ModuleApi - functional programming interface - * @export - */ -export const ModuleApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = ModuleApiAxiosParamCreator(configuration) - return { - /** - * Create a new module Required permissions: `MANAGE_MODULES` - * @summary Create a new module - * @param {ModuleCreateAPIDTO} [moduleCreateAPIDTO] ModuleCreateAPIDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async moduleControllerCreate(moduleCreateAPIDTO?: ModuleCreateAPIDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.moduleControllerCreate(moduleCreateAPIDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ModuleApi.moduleControllerCreate']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `READ_MODULES` - * @summary Get one module - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async moduleControllerGetOne(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.moduleControllerGetOne(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ModuleApi.moduleControllerGetOne']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Removes a module, including all versions and config Required permissions: `MANAGE_MODULES` - * @summary Remove a module - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async moduleControllerRemove(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.moduleControllerRemove(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ModuleApi.moduleControllerRemove']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `READ_MODULES` - * @summary Search modules - * @param {ModuleSearchInputDTO} [moduleSearchInputDTO] ModuleSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async moduleControllerSearch(moduleSearchInputDTO?: ModuleSearchInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.moduleControllerSearch(moduleSearchInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ModuleApi.moduleControllerSearch']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Update - * @param {string} id - * @param {ModuleUpdateDTO} [moduleUpdateDTO] ModuleUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async moduleControllerUpdate(id: string, moduleUpdateDTO?: ModuleUpdateDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.moduleControllerUpdate(id, moduleUpdateDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ModuleApi.moduleControllerUpdate']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `READ_MODULES` - * @summary Search module installations - * @param {ModuleInstallationSearchInputDTO} [moduleInstallationSearchInputDTO] ModuleInstallationSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async moduleInstallationsControllerGetInstalledModules(moduleInstallationSearchInputDTO?: ModuleInstallationSearchInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.moduleInstallationsControllerGetInstalledModules(moduleInstallationSearchInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ModuleApi.moduleInstallationsControllerGetInstalledModules']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `READ_MODULES` - * @summary Get one installation - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async moduleInstallationsControllerGetModuleInstallation(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.moduleInstallationsControllerGetModuleInstallation(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ModuleApi.moduleInstallationsControllerGetModuleInstallation']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Install a module on a gameserver. You can have multiple installations of the same module on the same gameserver. Required permissions: `MANAGE_GAMESERVERS` - * @summary Install module - * @param {InstallModuleDTO} [installModuleDTO] InstallModuleDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async moduleInstallationsControllerInstallModule(installModuleDTO?: InstallModuleDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.moduleInstallationsControllerInstallModule(installModuleDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ModuleApi.moduleInstallationsControllerInstallModule']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Uninstall a module from a gameserver. This will not delete the module from the database. Required permissions: `MANAGE_GAMESERVERS` - * @summary Uninstall module - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async moduleInstallationsControllerUninstallModule(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.moduleInstallationsControllerUninstallModule(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ModuleApi.moduleInstallationsControllerUninstallModule']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Exports a module to a format that can be imported into another Takaro instance Required permissions: `READ_MODULES` - * @summary Export a module version - * @param {ModuleExportInputDTO} [moduleExportInputDTO] ModuleExportInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async moduleVersionControllerExport(moduleExportInputDTO?: ModuleExportInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.moduleVersionControllerExport(moduleExportInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ModuleApi.moduleVersionControllerExport']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `READ_MODULES` - * @summary Get one version - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async moduleVersionControllerGetModuleVersion(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.moduleVersionControllerGetModuleVersion(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ModuleApi.moduleVersionControllerGetModuleVersion']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Imports a module from a format that was exported from another Takaro instance Required permissions: `MANAGE_MODULES` - * @summary Import a module version - * @param {BuiltinModule} [builtinModule] BuiltinModule - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async moduleVersionControllerImport(builtinModule?: BuiltinModule, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.moduleVersionControllerImport(builtinModule, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ModuleApi.moduleVersionControllerImport']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Removes a version of a module, including all config that is linked to this version Required permissions: `MANAGE_MODULES` - * @summary Remove a version - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async moduleVersionControllerRemoveVersion(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.moduleVersionControllerRemoveVersion(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ModuleApi.moduleVersionControllerRemoveVersion']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `READ_MODULES` - * @summary Search module versions - * @param {ModuleVersionSearchInputDTO} [moduleVersionSearchInputDTO] ModuleVersionSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async moduleVersionControllerSearchVersions(moduleVersionSearchInputDTO?: ModuleVersionSearchInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.moduleVersionControllerSearchVersions(moduleVersionSearchInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ModuleApi.moduleVersionControllerSearchVersions']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Creates a new version of a module, copying all config (commands,hooks,cronjobs,...) from the \"latest\" version into a new, immutable version Required permissions: `MANAGE_MODULES` - * @summary Tag a new version - * @param {ModuleVersionCreateAPIDTO} [moduleVersionCreateAPIDTO] ModuleVersionCreateAPIDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async moduleVersionControllerTagVersion(moduleVersionCreateAPIDTO?: ModuleVersionCreateAPIDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.moduleVersionControllerTagVersion(moduleVersionCreateAPIDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ModuleApi.moduleVersionControllerTagVersion']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Update a version of a module, note that you can only update the \"latest\" version. Tagged versions are immutable Required permissions: `MANAGE_MODULES` - * @summary Update a version - * @param {string} id - * @param {ModuleVersionUpdateDTO} [moduleVersionUpdateDTO] ModuleVersionUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async moduleVersionControllerUpdateVersion(id: string, moduleVersionUpdateDTO?: ModuleVersionUpdateDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.moduleVersionControllerUpdateVersion(id, moduleVersionUpdateDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ModuleApi.moduleVersionControllerUpdateVersion']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - } + domainControllerSearch( + domainSearchInputDTO?: DomainSearchInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .domainControllerSearch(domainSearchInputDTO, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Update + * @param {string} id + * @param {DomainUpdateInputDTO} [domainUpdateInputDTO] DomainUpdateInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + domainControllerUpdate( + id: string, + domainUpdateInputDTO?: DomainUpdateInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .domainControllerUpdate(id, domainUpdateInputDTO, options) + .then((request) => request(axios, basePath)); + }, + }; }; /** - * ModuleApi - factory interface + * DomainApi - object-oriented interface * @export + * @class DomainApi + * @extends {BaseAPI} */ -export const ModuleApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = ModuleApiFp(configuration) - return { - /** - * Create a new module Required permissions: `MANAGE_MODULES` - * @summary Create a new module - * @param {ModuleCreateAPIDTO} [moduleCreateAPIDTO] ModuleCreateAPIDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moduleControllerCreate(moduleCreateAPIDTO?: ModuleCreateAPIDTO, options?: any): AxiosPromise { - return localVarFp.moduleControllerCreate(moduleCreateAPIDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `READ_MODULES` - * @summary Get one module - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moduleControllerGetOne(id: string, options?: any): AxiosPromise { - return localVarFp.moduleControllerGetOne(id, options).then((request) => request(axios, basePath)); - }, - /** - * Removes a module, including all versions and config Required permissions: `MANAGE_MODULES` - * @summary Remove a module - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moduleControllerRemove(id: string, options?: any): AxiosPromise { - return localVarFp.moduleControllerRemove(id, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `READ_MODULES` - * @summary Search modules - * @param {ModuleSearchInputDTO} [moduleSearchInputDTO] ModuleSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moduleControllerSearch(moduleSearchInputDTO?: ModuleSearchInputDTO, options?: any): AxiosPromise { - return localVarFp.moduleControllerSearch(moduleSearchInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `MANAGE_MODULES` - * @summary Update - * @param {string} id - * @param {ModuleUpdateDTO} [moduleUpdateDTO] ModuleUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moduleControllerUpdate(id: string, moduleUpdateDTO?: ModuleUpdateDTO, options?: any): AxiosPromise { - return localVarFp.moduleControllerUpdate(id, moduleUpdateDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `READ_MODULES` - * @summary Search module installations - * @param {ModuleInstallationSearchInputDTO} [moduleInstallationSearchInputDTO] ModuleInstallationSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moduleInstallationsControllerGetInstalledModules(moduleInstallationSearchInputDTO?: ModuleInstallationSearchInputDTO, options?: any): AxiosPromise { - return localVarFp.moduleInstallationsControllerGetInstalledModules(moduleInstallationSearchInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `READ_MODULES` - * @summary Get one installation - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moduleInstallationsControllerGetModuleInstallation(id: string, options?: any): AxiosPromise { - return localVarFp.moduleInstallationsControllerGetModuleInstallation(id, options).then((request) => request(axios, basePath)); - }, - /** - * Install a module on a gameserver. You can have multiple installations of the same module on the same gameserver. Required permissions: `MANAGE_GAMESERVERS` - * @summary Install module - * @param {InstallModuleDTO} [installModuleDTO] InstallModuleDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moduleInstallationsControllerInstallModule(installModuleDTO?: InstallModuleDTO, options?: any): AxiosPromise { - return localVarFp.moduleInstallationsControllerInstallModule(installModuleDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Uninstall a module from a gameserver. This will not delete the module from the database. Required permissions: `MANAGE_GAMESERVERS` - * @summary Uninstall module - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moduleInstallationsControllerUninstallModule(id: string, options?: any): AxiosPromise { - return localVarFp.moduleInstallationsControllerUninstallModule(id, options).then((request) => request(axios, basePath)); - }, - /** - * Exports a module to a format that can be imported into another Takaro instance Required permissions: `READ_MODULES` - * @summary Export a module version - * @param {ModuleExportInputDTO} [moduleExportInputDTO] ModuleExportInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moduleVersionControllerExport(moduleExportInputDTO?: ModuleExportInputDTO, options?: any): AxiosPromise { - return localVarFp.moduleVersionControllerExport(moduleExportInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `READ_MODULES` - * @summary Get one version - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moduleVersionControllerGetModuleVersion(id: string, options?: any): AxiosPromise { - return localVarFp.moduleVersionControllerGetModuleVersion(id, options).then((request) => request(axios, basePath)); - }, - /** - * Imports a module from a format that was exported from another Takaro instance Required permissions: `MANAGE_MODULES` - * @summary Import a module version - * @param {BuiltinModule} [builtinModule] BuiltinModule - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moduleVersionControllerImport(builtinModule?: BuiltinModule, options?: any): AxiosPromise { - return localVarFp.moduleVersionControllerImport(builtinModule, options).then((request) => request(axios, basePath)); - }, - /** - * Removes a version of a module, including all config that is linked to this version Required permissions: `MANAGE_MODULES` - * @summary Remove a version - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moduleVersionControllerRemoveVersion(id: string, options?: any): AxiosPromise { - return localVarFp.moduleVersionControllerRemoveVersion(id, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `READ_MODULES` - * @summary Search module versions - * @param {ModuleVersionSearchInputDTO} [moduleVersionSearchInputDTO] ModuleVersionSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moduleVersionControllerSearchVersions(moduleVersionSearchInputDTO?: ModuleVersionSearchInputDTO, options?: any): AxiosPromise { - return localVarFp.moduleVersionControllerSearchVersions(moduleVersionSearchInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Creates a new version of a module, copying all config (commands,hooks,cronjobs,...) from the \"latest\" version into a new, immutable version Required permissions: `MANAGE_MODULES` - * @summary Tag a new version - * @param {ModuleVersionCreateAPIDTO} [moduleVersionCreateAPIDTO] ModuleVersionCreateAPIDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moduleVersionControllerTagVersion(moduleVersionCreateAPIDTO?: ModuleVersionCreateAPIDTO, options?: any): AxiosPromise { - return localVarFp.moduleVersionControllerTagVersion(moduleVersionCreateAPIDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Update a version of a module, note that you can only update the \"latest\" version. Tagged versions are immutable Required permissions: `MANAGE_MODULES` - * @summary Update a version - * @param {string} id - * @param {ModuleVersionUpdateDTO} [moduleVersionUpdateDTO] ModuleVersionUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moduleVersionControllerUpdateVersion(id: string, moduleVersionUpdateDTO?: ModuleVersionUpdateDTO, options?: any): AxiosPromise { - return localVarFp.moduleVersionControllerUpdateVersion(id, moduleVersionUpdateDTO, options).then((request) => request(axios, basePath)); - }, - }; -}; +export class DomainApi extends BaseAPI { + /** + * + * @summary Create + * @param {DomainCreateInputDTO} [domainCreateInputDTO] DomainCreateInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DomainApi + */ + public domainControllerCreate(domainCreateInputDTO?: DomainCreateInputDTO, options?: RawAxiosRequestConfig) { + return DomainApiFp(this.configuration) + .domainControllerCreate(domainCreateInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get one + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DomainApi + */ + public domainControllerGetOne(id: string, options?: RawAxiosRequestConfig) { + return DomainApiFp(this.configuration) + .domainControllerGetOne(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get token + * @param {TokenInputDTO} [tokenInputDTO] TokenInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DomainApi + */ + public domainControllerGetToken(tokenInputDTO?: TokenInputDTO, options?: RawAxiosRequestConfig) { + return DomainApiFp(this.configuration) + .domainControllerGetToken(tokenInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Remove + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DomainApi + */ + public domainControllerRemove(id: string, options?: RawAxiosRequestConfig) { + return DomainApiFp(this.configuration) + .domainControllerRemove(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Search + * @param {DomainSearchInputDTO} [domainSearchInputDTO] DomainSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DomainApi + */ + public domainControllerSearch(domainSearchInputDTO?: DomainSearchInputDTO, options?: RawAxiosRequestConfig) { + return DomainApiFp(this.configuration) + .domainControllerSearch(domainSearchInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Update + * @param {string} id + * @param {DomainUpdateInputDTO} [domainUpdateInputDTO] DomainUpdateInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DomainApi + */ + public domainControllerUpdate( + id: string, + domainUpdateInputDTO?: DomainUpdateInputDTO, + options?: RawAxiosRequestConfig, + ) { + return DomainApiFp(this.configuration) + .domainControllerUpdate(id, domainUpdateInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } +} /** - * ModuleApi - object-oriented interface + * EventApi - axios parameter creator * @export - * @class ModuleApi - * @extends {BaseAPI} */ -export class ModuleApi extends BaseAPI { +export const EventApiAxiosParamCreator = function (configuration?: Configuration) { + return { /** - * Create a new module Required permissions: `MANAGE_MODULES` - * @summary Create a new module - * @param {ModuleCreateAPIDTO} [moduleCreateAPIDTO] ModuleCreateAPIDTO + * Required permissions: `MANAGE_EVENTS` + * @summary Create + * @param {EventCreateDTO} [eventCreateDTO] EventCreateDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof ModuleApi */ - public moduleControllerCreate(moduleCreateAPIDTO?: ModuleCreateAPIDTO, options?: RawAxiosRequestConfig) { - return ModuleApiFp(this.configuration).moduleControllerCreate(moduleCreateAPIDTO, options).then((request) => request(this.axios, this.basePath)); - } - + eventControllerCreate: async ( + eventCreateDTO?: EventCreateDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/event`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(eventCreateDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** - * Required permissions: `READ_MODULES` - * @summary Get one module - * @param {string} id + * Fetches events where cronjob, hook and command failed. Supports all the common query parameters Required permissions: `READ_MODULES`, `READ_EVENTS` + * @summary Get failed functions + * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof ModuleApi */ - public moduleControllerGetOne(id: string, options?: RawAxiosRequestConfig) { - return ModuleApiFp(this.configuration).moduleControllerGetOne(id, options).then((request) => request(this.axios, this.basePath)); - } - + eventControllerGetFailedFunctions: async ( + eventSearchInputDTO?: EventSearchInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/event/filter/failed-functions`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(eventSearchInputDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** - * Removes a module, including all versions and config Required permissions: `MANAGE_MODULES` - * @summary Remove a module - * @param {string} id + * Required permissions: `READ_EVENTS` + * @summary Get one + * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof ModuleApi */ - public moduleControllerRemove(id: string, options?: RawAxiosRequestConfig) { - return ModuleApiFp(this.configuration).moduleControllerRemove(id, options).then((request) => request(this.axios, this.basePath)); - } - + eventControllerGetOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('eventControllerGetOne', 'id', id); + const localVarPath = `/event/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** - * Required permissions: `READ_MODULES` - * @summary Search modules - * @param {ModuleSearchInputDTO} [moduleSearchInputDTO] ModuleSearchInputDTO + * Required permissions: `READ_EVENTS` + * @summary Search + * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof ModuleApi */ - public moduleControllerSearch(moduleSearchInputDTO?: ModuleSearchInputDTO, options?: RawAxiosRequestConfig) { - return ModuleApiFp(this.configuration).moduleControllerSearch(moduleSearchInputDTO, options).then((request) => request(this.axios, this.basePath)); - } + eventControllerSearch: async ( + eventSearchInputDTO?: EventSearchInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/event/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(eventSearchInputDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; +/** + * EventApi - functional programming interface + * @export + */ +export const EventApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = EventApiAxiosParamCreator(configuration); + return { /** - * Required permissions: `MANAGE_MODULES` - * @summary Update - * @param {string} id - * @param {ModuleUpdateDTO} [moduleUpdateDTO] ModuleUpdateDTO + * Required permissions: `MANAGE_EVENTS` + * @summary Create + * @param {EventCreateDTO} [eventCreateDTO] EventCreateDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof ModuleApi */ - public moduleControllerUpdate(id: string, moduleUpdateDTO?: ModuleUpdateDTO, options?: RawAxiosRequestConfig) { - return ModuleApiFp(this.configuration).moduleControllerUpdate(id, moduleUpdateDTO, options).then((request) => request(this.axios, this.basePath)); - } - + async eventControllerCreate( + eventCreateDTO?: EventCreateDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.eventControllerCreate(eventCreateDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['EventApi.eventControllerCreate']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, /** - * Required permissions: `READ_MODULES` - * @summary Search module installations - * @param {ModuleInstallationSearchInputDTO} [moduleInstallationSearchInputDTO] ModuleInstallationSearchInputDTO + * Fetches events where cronjob, hook and command failed. Supports all the common query parameters Required permissions: `READ_MODULES`, `READ_EVENTS` + * @summary Get failed functions + * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof ModuleApi */ - public moduleInstallationsControllerGetInstalledModules(moduleInstallationSearchInputDTO?: ModuleInstallationSearchInputDTO, options?: RawAxiosRequestConfig) { - return ModuleApiFp(this.configuration).moduleInstallationsControllerGetInstalledModules(moduleInstallationSearchInputDTO, options).then((request) => request(this.axios, this.basePath)); - } - + async eventControllerGetFailedFunctions( + eventSearchInputDTO?: EventSearchInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.eventControllerGetFailedFunctions( + eventSearchInputDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['EventApi.eventControllerGetFailedFunctions']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, /** - * Required permissions: `READ_MODULES` - * @summary Get one installation - * @param {string} id + * Required permissions: `READ_EVENTS` + * @summary Get one + * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof ModuleApi */ - public moduleInstallationsControllerGetModuleInstallation(id: string, options?: RawAxiosRequestConfig) { - return ModuleApiFp(this.configuration).moduleInstallationsControllerGetModuleInstallation(id, options).then((request) => request(this.axios, this.basePath)); - } - + async eventControllerGetOne( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.eventControllerGetOne(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['EventApi.eventControllerGetOne']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, /** - * Install a module on a gameserver. You can have multiple installations of the same module on the same gameserver. Required permissions: `MANAGE_GAMESERVERS` - * @summary Install module - * @param {InstallModuleDTO} [installModuleDTO] InstallModuleDTO + * Required permissions: `READ_EVENTS` + * @summary Search + * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof ModuleApi */ - public moduleInstallationsControllerInstallModule(installModuleDTO?: InstallModuleDTO, options?: RawAxiosRequestConfig) { - return ModuleApiFp(this.configuration).moduleInstallationsControllerInstallModule(installModuleDTO, options).then((request) => request(this.axios, this.basePath)); - } + async eventControllerSearch( + eventSearchInputDTO?: EventSearchInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.eventControllerSearch(eventSearchInputDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['EventApi.eventControllerSearch']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + }; +}; +/** + * EventApi - factory interface + * @export + */ +export const EventApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = EventApiFp(configuration); + return { /** - * Uninstall a module from a gameserver. This will not delete the module from the database. Required permissions: `MANAGE_GAMESERVERS` - * @summary Uninstall module - * @param {string} id + * Required permissions: `MANAGE_EVENTS` + * @summary Create + * @param {EventCreateDTO} [eventCreateDTO] EventCreateDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof ModuleApi */ - public moduleInstallationsControllerUninstallModule(id: string, options?: RawAxiosRequestConfig) { - return ModuleApiFp(this.configuration).moduleInstallationsControllerUninstallModule(id, options).then((request) => request(this.axios, this.basePath)); - } - + eventControllerCreate(eventCreateDTO?: EventCreateDTO, options?: any): AxiosPromise { + return localVarFp.eventControllerCreate(eventCreateDTO, options).then((request) => request(axios, basePath)); + }, /** - * Exports a module to a format that can be imported into another Takaro instance Required permissions: `READ_MODULES` - * @summary Export a module version - * @param {ModuleExportInputDTO} [moduleExportInputDTO] ModuleExportInputDTO + * Fetches events where cronjob, hook and command failed. Supports all the common query parameters Required permissions: `READ_MODULES`, `READ_EVENTS` + * @summary Get failed functions + * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof ModuleApi */ - public moduleVersionControllerExport(moduleExportInputDTO?: ModuleExportInputDTO, options?: RawAxiosRequestConfig) { - return ModuleApiFp(this.configuration).moduleVersionControllerExport(moduleExportInputDTO, options).then((request) => request(this.axios, this.basePath)); - } - + eventControllerGetFailedFunctions( + eventSearchInputDTO?: EventSearchInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .eventControllerGetFailedFunctions(eventSearchInputDTO, options) + .then((request) => request(axios, basePath)); + }, /** - * Required permissions: `READ_MODULES` - * @summary Get one version - * @param {string} id + * Required permissions: `READ_EVENTS` + * @summary Get one + * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof ModuleApi */ - public moduleVersionControllerGetModuleVersion(id: string, options?: RawAxiosRequestConfig) { - return ModuleApiFp(this.configuration).moduleVersionControllerGetModuleVersion(id, options).then((request) => request(this.axios, this.basePath)); - } - + eventControllerGetOne(id: string, options?: any): AxiosPromise { + return localVarFp.eventControllerGetOne(id, options).then((request) => request(axios, basePath)); + }, /** - * Imports a module from a format that was exported from another Takaro instance Required permissions: `MANAGE_MODULES` - * @summary Import a module version - * @param {BuiltinModule} [builtinModule] BuiltinModule + * Required permissions: `READ_EVENTS` + * @summary Search + * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof ModuleApi */ - public moduleVersionControllerImport(builtinModule?: BuiltinModule, options?: RawAxiosRequestConfig) { - return ModuleApiFp(this.configuration).moduleVersionControllerImport(builtinModule, options).then((request) => request(this.axios, this.basePath)); - } + eventControllerSearch( + eventSearchInputDTO?: EventSearchInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp.eventControllerSearch(eventSearchInputDTO, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * EventApi - object-oriented interface + * @export + * @class EventApi + * @extends {BaseAPI} + */ +export class EventApi extends BaseAPI { + /** + * Required permissions: `MANAGE_EVENTS` + * @summary Create + * @param {EventCreateDTO} [eventCreateDTO] EventCreateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof EventApi + */ + public eventControllerCreate(eventCreateDTO?: EventCreateDTO, options?: RawAxiosRequestConfig) { + return EventApiFp(this.configuration) + .eventControllerCreate(eventCreateDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Fetches events where cronjob, hook and command failed. Supports all the common query parameters Required permissions: `READ_MODULES`, `READ_EVENTS` + * @summary Get failed functions + * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof EventApi + */ + public eventControllerGetFailedFunctions(eventSearchInputDTO?: EventSearchInputDTO, options?: RawAxiosRequestConfig) { + return EventApiFp(this.configuration) + .eventControllerGetFailedFunctions(eventSearchInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `READ_EVENTS` + * @summary Get one + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof EventApi + */ + public eventControllerGetOne(id: string, options?: RawAxiosRequestConfig) { + return EventApiFp(this.configuration) + .eventControllerGetOne(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `READ_EVENTS` + * @summary Search + * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof EventApi + */ + public eventControllerSearch(eventSearchInputDTO?: EventSearchInputDTO, options?: RawAxiosRequestConfig) { + return EventApiFp(this.configuration) + .eventControllerSearch(eventSearchInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } +} +/** + * ExternalAuthApi - axios parameter creator + * @export + */ +export const ExternalAuthApiAxiosParamCreator = function (configuration?: Configuration) { + return { /** - * Removes a version of a module, including all config that is linked to this version Required permissions: `MANAGE_MODULES` - * @summary Remove a version - * @param {string} id + * + * @summary Auth discord + * @param {string} redirect * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof ModuleApi */ - public moduleVersionControllerRemoveVersion(id: string, options?: RawAxiosRequestConfig) { - return ModuleApiFp(this.configuration).moduleVersionControllerRemoveVersion(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * Required permissions: `READ_MODULES` - * @summary Search module versions - * @param {ModuleVersionSearchInputDTO} [moduleVersionSearchInputDTO] ModuleVersionSearchInputDTO + externalAuthControllerAuthDiscord: async ( + redirect: string, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'redirect' is not null or undefined + assertParamExists('externalAuthControllerAuthDiscord', 'redirect', redirect); + const localVarPath = `/auth/discord`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (redirect !== undefined) { + localVarQueryParameter['redirect'] = redirect; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Auth discord return * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof ModuleApi */ - public moduleVersionControllerSearchVersions(moduleVersionSearchInputDTO?: ModuleVersionSearchInputDTO, options?: RawAxiosRequestConfig) { - return ModuleApiFp(this.configuration).moduleVersionControllerSearchVersions(moduleVersionSearchInputDTO, options).then((request) => request(this.axios, this.basePath)); - } + externalAuthControllerAuthDiscordReturn: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/auth/discord/return`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; +/** + * ExternalAuthApi - functional programming interface + * @export + */ +export const ExternalAuthApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = ExternalAuthApiAxiosParamCreator(configuration); + return { /** - * Creates a new version of a module, copying all config (commands,hooks,cronjobs,...) from the \"latest\" version into a new, immutable version Required permissions: `MANAGE_MODULES` - * @summary Tag a new version - * @param {ModuleVersionCreateAPIDTO} [moduleVersionCreateAPIDTO] ModuleVersionCreateAPIDTO + * + * @summary Auth discord + * @param {string} redirect * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof ModuleApi */ - public moduleVersionControllerTagVersion(moduleVersionCreateAPIDTO?: ModuleVersionCreateAPIDTO, options?: RawAxiosRequestConfig) { - return ModuleApiFp(this.configuration).moduleVersionControllerTagVersion(moduleVersionCreateAPIDTO, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * Update a version of a module, note that you can only update the \"latest\" version. Tagged versions are immutable Required permissions: `MANAGE_MODULES` - * @summary Update a version - * @param {string} id - * @param {ModuleVersionUpdateDTO} [moduleVersionUpdateDTO] ModuleVersionUpdateDTO + async externalAuthControllerAuthDiscord( + redirect: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.externalAuthControllerAuthDiscord(redirect, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ExternalAuthApi.externalAuthControllerAuthDiscord']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * + * @summary Auth discord return * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof ModuleApi */ - public moduleVersionControllerUpdateVersion(id: string, moduleVersionUpdateDTO?: ModuleVersionUpdateDTO, options?: RawAxiosRequestConfig) { - return ModuleApiFp(this.configuration).moduleVersionControllerUpdateVersion(id, moduleVersionUpdateDTO, options).then((request) => request(this.axios, this.basePath)); - } -} - - - -/** - * PlayerApi - axios parameter creator - * @export - */ -export const PlayerApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * Create a new ban, creating a ban via the API will always make it takaro managed. Required permissions: `MANAGE_PLAYERS` - * @summary Ban player - * @param {BanCreateDTO} [banCreateDTO] BanCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - banControllerCreate: async (banCreateDTO?: BanCreateDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/player/ban`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(banCreateDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Unban player. This will remove the ban from Takaro and the gameserver(s) Required permissions: `MANAGE_PLAYERS` - * @summary Unban player - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - banControllerDelete: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('banControllerDelete', 'id', id) - const localVarPath = `/player/ban/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get a single ban Required permissions: `READ_PLAYERS` - * @summary Get a single ban - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - banControllerGetOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('banControllerGetOne', 'id', id) - const localVarPath = `/player/ban/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Search for bans Required permissions: `READ_PLAYERS` - * @summary Search for bans - * @param {BanSearchInputDTO} [banSearchInputDTO] BanSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - banControllerSearch: async (banSearchInputDTO?: BanSearchInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/player/ban/search`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(banSearchInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Update an existing ban, updating a ban via the API will always make it takaro managed. Required permissions: `MANAGE_PLAYERS` - * @summary Update ban - * @param {string} id - * @param {BanUpdateDTO} [banUpdateDTO] BanUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - banControllerUpdate: async (id: string, banUpdateDTO?: BanUpdateDTO, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('banControllerUpdate', 'id', id) - const localVarPath = `/player/ban/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(banUpdateDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `MANAGE_PLAYERS`, `MANAGE_ROLES` - * @summary Assign role - * @param {string} id - * @param {string} roleId - * @param {PlayerRoleAssignChangeDTO} [playerRoleAssignChangeDTO] PlayerRoleAssignChangeDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - playerControllerAssignRole: async (id: string, roleId: string, playerRoleAssignChangeDTO?: PlayerRoleAssignChangeDTO, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('playerControllerAssignRole', 'id', id) - // verify required parameter 'roleId' is not null or undefined - assertParamExists('playerControllerAssignRole', 'roleId', roleId) - const localVarPath = `/player/{id}/role/{roleId}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"roleId"}}`, encodeURIComponent(String(roleId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(playerRoleAssignChangeDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get the player that is currently authenticated. This is a low-privilege route, returning limited data. - * @summary Get current player - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - playerControllerGetMe: async (options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/player/me`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `READ_PLAYERS` - * @summary Get one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - playerControllerGetOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('playerControllerGetOne', 'id', id) - const localVarPath = `/player/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `MANAGE_PLAYERS`, `MANAGE_ROLES` - * @summary Remove role - * @param {string} id - * @param {string} roleId - * @param {PlayerRoleAssignChangeDTO} [playerRoleAssignChangeDTO] PlayerRoleAssignChangeDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - playerControllerRemoveRole: async (id: string, roleId: string, playerRoleAssignChangeDTO?: PlayerRoleAssignChangeDTO, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('playerControllerRemoveRole', 'id', id) - // verify required parameter 'roleId' is not null or undefined - assertParamExists('playerControllerRemoveRole', 'roleId', roleId) - const localVarPath = `/player/{id}/role/{roleId}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"roleId"}}`, encodeURIComponent(String(roleId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(playerRoleAssignChangeDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `READ_PLAYERS` - * @summary Search - * @param {PlayerSearchInputDTO} [playerSearchInputDTO] PlayerSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - playerControllerSearch: async (playerSearchInputDTO?: PlayerSearchInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/player/search`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(playerSearchInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } + async externalAuthControllerAuthDiscordReturn( + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.externalAuthControllerAuthDiscordReturn(options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = + operationServerMap['ExternalAuthApi.externalAuthControllerAuthDiscordReturn']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + }; }; /** - * PlayerApi - functional programming interface + * ExternalAuthApi - factory interface * @export */ -export const PlayerApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = PlayerApiAxiosParamCreator(configuration) - return { - /** - * Create a new ban, creating a ban via the API will always make it takaro managed. Required permissions: `MANAGE_PLAYERS` - * @summary Ban player - * @param {BanCreateDTO} [banCreateDTO] BanCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async banControllerCreate(banCreateDTO?: BanCreateDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.banControllerCreate(banCreateDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['PlayerApi.banControllerCreate']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Unban player. This will remove the ban from Takaro and the gameserver(s) Required permissions: `MANAGE_PLAYERS` - * @summary Unban player - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async banControllerDelete(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.banControllerDelete(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['PlayerApi.banControllerDelete']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Get a single ban Required permissions: `READ_PLAYERS` - * @summary Get a single ban - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async banControllerGetOne(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.banControllerGetOne(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['PlayerApi.banControllerGetOne']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Search for bans Required permissions: `READ_PLAYERS` - * @summary Search for bans - * @param {BanSearchInputDTO} [banSearchInputDTO] BanSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async banControllerSearch(banSearchInputDTO?: BanSearchInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.banControllerSearch(banSearchInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['PlayerApi.banControllerSearch']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Update an existing ban, updating a ban via the API will always make it takaro managed. Required permissions: `MANAGE_PLAYERS` - * @summary Update ban - * @param {string} id - * @param {BanUpdateDTO} [banUpdateDTO] BanUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async banControllerUpdate(id: string, banUpdateDTO?: BanUpdateDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.banControllerUpdate(id, banUpdateDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['PlayerApi.banControllerUpdate']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `MANAGE_PLAYERS`, `MANAGE_ROLES` - * @summary Assign role - * @param {string} id - * @param {string} roleId - * @param {PlayerRoleAssignChangeDTO} [playerRoleAssignChangeDTO] PlayerRoleAssignChangeDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async playerControllerAssignRole(id: string, roleId: string, playerRoleAssignChangeDTO?: PlayerRoleAssignChangeDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.playerControllerAssignRole(id, roleId, playerRoleAssignChangeDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['PlayerApi.playerControllerAssignRole']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Get the player that is currently authenticated. This is a low-privilege route, returning limited data. - * @summary Get current player - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async playerControllerGetMe(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.playerControllerGetMe(options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['PlayerApi.playerControllerGetMe']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `READ_PLAYERS` - * @summary Get one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async playerControllerGetOne(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.playerControllerGetOne(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['PlayerApi.playerControllerGetOne']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `MANAGE_PLAYERS`, `MANAGE_ROLES` - * @summary Remove role - * @param {string} id - * @param {string} roleId - * @param {PlayerRoleAssignChangeDTO} [playerRoleAssignChangeDTO] PlayerRoleAssignChangeDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async playerControllerRemoveRole(id: string, roleId: string, playerRoleAssignChangeDTO?: PlayerRoleAssignChangeDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.playerControllerRemoveRole(id, roleId, playerRoleAssignChangeDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['PlayerApi.playerControllerRemoveRole']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `READ_PLAYERS` - * @summary Search - * @param {PlayerSearchInputDTO} [playerSearchInputDTO] PlayerSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async playerControllerSearch(playerSearchInputDTO?: PlayerSearchInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.playerControllerSearch(playerSearchInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['PlayerApi.playerControllerSearch']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - } +export const ExternalAuthApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance, +) { + const localVarFp = ExternalAuthApiFp(configuration); + return { + /** + * + * @summary Auth discord + * @param {string} redirect + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + externalAuthControllerAuthDiscord(redirect: string, options?: any): AxiosPromise { + return localVarFp + .externalAuthControllerAuthDiscord(redirect, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Auth discord return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + externalAuthControllerAuthDiscordReturn(options?: any): AxiosPromise { + return localVarFp.externalAuthControllerAuthDiscordReturn(options).then((request) => request(axios, basePath)); + }, + }; }; /** - * PlayerApi - factory interface + * ExternalAuthApi - object-oriented interface * @export + * @class ExternalAuthApi + * @extends {BaseAPI} */ -export const PlayerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = PlayerApiFp(configuration) - return { - /** - * Create a new ban, creating a ban via the API will always make it takaro managed. Required permissions: `MANAGE_PLAYERS` - * @summary Ban player - * @param {BanCreateDTO} [banCreateDTO] BanCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - banControllerCreate(banCreateDTO?: BanCreateDTO, options?: any): AxiosPromise { - return localVarFp.banControllerCreate(banCreateDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Unban player. This will remove the ban from Takaro and the gameserver(s) Required permissions: `MANAGE_PLAYERS` - * @summary Unban player - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - banControllerDelete(id: string, options?: any): AxiosPromise { - return localVarFp.banControllerDelete(id, options).then((request) => request(axios, basePath)); - }, - /** - * Get a single ban Required permissions: `READ_PLAYERS` - * @summary Get a single ban - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - banControllerGetOne(id: string, options?: any): AxiosPromise { - return localVarFp.banControllerGetOne(id, options).then((request) => request(axios, basePath)); - }, - /** - * Search for bans Required permissions: `READ_PLAYERS` - * @summary Search for bans - * @param {BanSearchInputDTO} [banSearchInputDTO] BanSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - banControllerSearch(banSearchInputDTO?: BanSearchInputDTO, options?: any): AxiosPromise { - return localVarFp.banControllerSearch(banSearchInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Update an existing ban, updating a ban via the API will always make it takaro managed. Required permissions: `MANAGE_PLAYERS` - * @summary Update ban - * @param {string} id - * @param {BanUpdateDTO} [banUpdateDTO] BanUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - banControllerUpdate(id: string, banUpdateDTO?: BanUpdateDTO, options?: any): AxiosPromise { - return localVarFp.banControllerUpdate(id, banUpdateDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `MANAGE_PLAYERS`, `MANAGE_ROLES` - * @summary Assign role - * @param {string} id - * @param {string} roleId - * @param {PlayerRoleAssignChangeDTO} [playerRoleAssignChangeDTO] PlayerRoleAssignChangeDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - playerControllerAssignRole(id: string, roleId: string, playerRoleAssignChangeDTO?: PlayerRoleAssignChangeDTO, options?: any): AxiosPromise { - return localVarFp.playerControllerAssignRole(id, roleId, playerRoleAssignChangeDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Get the player that is currently authenticated. This is a low-privilege route, returning limited data. - * @summary Get current player - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - playerControllerGetMe(options?: any): AxiosPromise { - return localVarFp.playerControllerGetMe(options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `READ_PLAYERS` - * @summary Get one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - playerControllerGetOne(id: string, options?: any): AxiosPromise { - return localVarFp.playerControllerGetOne(id, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `MANAGE_PLAYERS`, `MANAGE_ROLES` - * @summary Remove role - * @param {string} id - * @param {string} roleId - * @param {PlayerRoleAssignChangeDTO} [playerRoleAssignChangeDTO] PlayerRoleAssignChangeDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - playerControllerRemoveRole(id: string, roleId: string, playerRoleAssignChangeDTO?: PlayerRoleAssignChangeDTO, options?: any): AxiosPromise { - return localVarFp.playerControllerRemoveRole(id, roleId, playerRoleAssignChangeDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `READ_PLAYERS` - * @summary Search - * @param {PlayerSearchInputDTO} [playerSearchInputDTO] PlayerSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - playerControllerSearch(playerSearchInputDTO?: PlayerSearchInputDTO, options?: any): AxiosPromise { - return localVarFp.playerControllerSearch(playerSearchInputDTO, options).then((request) => request(axios, basePath)); - }, - }; -}; +export class ExternalAuthApi extends BaseAPI { + /** + * + * @summary Auth discord + * @param {string} redirect + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ExternalAuthApi + */ + public externalAuthControllerAuthDiscord(redirect: string, options?: RawAxiosRequestConfig) { + return ExternalAuthApiFp(this.configuration) + .externalAuthControllerAuthDiscord(redirect, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Auth discord return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ExternalAuthApi + */ + public externalAuthControllerAuthDiscordReturn(options?: RawAxiosRequestConfig) { + return ExternalAuthApiFp(this.configuration) + .externalAuthControllerAuthDiscordReturn(options) + .then((request) => request(this.axios, this.basePath)); + } +} /** - * PlayerApi - object-oriented interface + * FunctionApi - axios parameter creator * @export - * @class PlayerApi - * @extends {BaseAPI} */ -export class PlayerApi extends BaseAPI { +export const FunctionApiAxiosParamCreator = function (configuration?: Configuration) { + return { /** - * Create a new ban, creating a ban via the API will always make it takaro managed. Required permissions: `MANAGE_PLAYERS` - * @summary Ban player - * @param {BanCreateDTO} [banCreateDTO] BanCreateDTO + * Required permissions: `MANAGE_MODULES` + * @summary Create + * @param {FunctionCreateDTO} [functionCreateDTO] FunctionCreateDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof PlayerApi */ - public banControllerCreate(banCreateDTO?: BanCreateDTO, options?: RawAxiosRequestConfig) { - return PlayerApiFp(this.configuration).banControllerCreate(banCreateDTO, options).then((request) => request(this.axios, this.basePath)); - } - + functionControllerCreate: async ( + functionCreateDTO?: FunctionCreateDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/function`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(functionCreateDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** - * Unban player. This will remove the ban from Takaro and the gameserver(s) Required permissions: `MANAGE_PLAYERS` - * @summary Unban player - * @param {string} id + * Required permissions: `READ_MODULES` + * @summary Get one + * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof PlayerApi */ - public banControllerDelete(id: string, options?: RawAxiosRequestConfig) { - return PlayerApiFp(this.configuration).banControllerDelete(id, options).then((request) => request(this.axios, this.basePath)); - } - + functionControllerGetOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('functionControllerGetOne', 'id', id); + const localVarPath = `/function/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** - * Get a single ban Required permissions: `READ_PLAYERS` - * @summary Get a single ban - * @param {string} id + * Required permissions: `MANAGE_MODULES` + * @summary Remove + * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof PlayerApi */ - public banControllerGetOne(id: string, options?: RawAxiosRequestConfig) { - return PlayerApiFp(this.configuration).banControllerGetOne(id, options).then((request) => request(this.axios, this.basePath)); - } - + functionControllerRemove: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('functionControllerRemove', 'id', id); + const localVarPath = `/function/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** - * Search for bans Required permissions: `READ_PLAYERS` - * @summary Search for bans - * @param {BanSearchInputDTO} [banSearchInputDTO] BanSearchInputDTO + * Required permissions: `READ_MODULES` + * @summary Search + * @param {FunctionSearchInputDTO} [functionSearchInputDTO] FunctionSearchInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof PlayerApi */ - public banControllerSearch(banSearchInputDTO?: BanSearchInputDTO, options?: RawAxiosRequestConfig) { - return PlayerApiFp(this.configuration).banControllerSearch(banSearchInputDTO, options).then((request) => request(this.axios, this.basePath)); - } - + functionControllerSearch: async ( + functionSearchInputDTO?: FunctionSearchInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/function/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded( + functionSearchInputDTO, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** - * Update an existing ban, updating a ban via the API will always make it takaro managed. Required permissions: `MANAGE_PLAYERS` - * @summary Update ban - * @param {string} id - * @param {BanUpdateDTO} [banUpdateDTO] BanUpdateDTO + * Required permissions: `MANAGE_MODULES` + * @summary Update + * @param {string} id + * @param {FunctionUpdateDTO} [functionUpdateDTO] FunctionUpdateDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof PlayerApi */ - public banControllerUpdate(id: string, banUpdateDTO?: BanUpdateDTO, options?: RawAxiosRequestConfig) { - return PlayerApiFp(this.configuration).banControllerUpdate(id, banUpdateDTO, options).then((request) => request(this.axios, this.basePath)); - } + functionControllerUpdate: async ( + id: string, + functionUpdateDTO?: FunctionUpdateDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('functionControllerUpdate', 'id', id); + const localVarPath = `/function/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(functionUpdateDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; +/** + * FunctionApi - functional programming interface + * @export + */ +export const FunctionApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = FunctionApiAxiosParamCreator(configuration); + return { /** - * Required permissions: `MANAGE_PLAYERS`, `MANAGE_ROLES` - * @summary Assign role - * @param {string} id - * @param {string} roleId - * @param {PlayerRoleAssignChangeDTO} [playerRoleAssignChangeDTO] PlayerRoleAssignChangeDTO + * Required permissions: `MANAGE_MODULES` + * @summary Create + * @param {FunctionCreateDTO} [functionCreateDTO] FunctionCreateDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof PlayerApi */ - public playerControllerAssignRole(id: string, roleId: string, playerRoleAssignChangeDTO?: PlayerRoleAssignChangeDTO, options?: RawAxiosRequestConfig) { - return PlayerApiFp(this.configuration).playerControllerAssignRole(id, roleId, playerRoleAssignChangeDTO, options).then((request) => request(this.axios, this.basePath)); - } - + async functionControllerCreate( + functionCreateDTO?: FunctionCreateDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.functionControllerCreate(functionCreateDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['FunctionApi.functionControllerCreate']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, /** - * Get the player that is currently authenticated. This is a low-privilege route, returning limited data. - * @summary Get current player + * Required permissions: `READ_MODULES` + * @summary Get one + * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof PlayerApi */ - public playerControllerGetMe(options?: RawAxiosRequestConfig) { - return PlayerApiFp(this.configuration).playerControllerGetMe(options).then((request) => request(this.axios, this.basePath)); - } - + async functionControllerGetOne( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.functionControllerGetOne(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['FunctionApi.functionControllerGetOne']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, /** - * Required permissions: `READ_PLAYERS` - * @summary Get one - * @param {string} id + * Required permissions: `MANAGE_MODULES` + * @summary Remove + * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof PlayerApi */ - public playerControllerGetOne(id: string, options?: RawAxiosRequestConfig) { - return PlayerApiFp(this.configuration).playerControllerGetOne(id, options).then((request) => request(this.axios, this.basePath)); - } - + async functionControllerRemove( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.functionControllerRemove(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['FunctionApi.functionControllerRemove']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, /** - * Required permissions: `MANAGE_PLAYERS`, `MANAGE_ROLES` - * @summary Remove role - * @param {string} id - * @param {string} roleId - * @param {PlayerRoleAssignChangeDTO} [playerRoleAssignChangeDTO] PlayerRoleAssignChangeDTO + * Required permissions: `READ_MODULES` + * @summary Search + * @param {FunctionSearchInputDTO} [functionSearchInputDTO] FunctionSearchInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof PlayerApi */ - public playerControllerRemoveRole(id: string, roleId: string, playerRoleAssignChangeDTO?: PlayerRoleAssignChangeDTO, options?: RawAxiosRequestConfig) { - return PlayerApiFp(this.configuration).playerControllerRemoveRole(id, roleId, playerRoleAssignChangeDTO, options).then((request) => request(this.axios, this.basePath)); - } - + async functionControllerSearch( + functionSearchInputDTO?: FunctionSearchInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.functionControllerSearch( + functionSearchInputDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['FunctionApi.functionControllerSearch']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, /** - * Required permissions: `READ_PLAYERS` - * @summary Search - * @param {PlayerSearchInputDTO} [playerSearchInputDTO] PlayerSearchInputDTO + * Required permissions: `MANAGE_MODULES` + * @summary Update + * @param {string} id + * @param {FunctionUpdateDTO} [functionUpdateDTO] FunctionUpdateDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof PlayerApi */ - public playerControllerSearch(playerSearchInputDTO?: PlayerSearchInputDTO, options?: RawAxiosRequestConfig) { - return PlayerApiFp(this.configuration).playerControllerSearch(playerSearchInputDTO, options).then((request) => request(this.axios, this.basePath)); - } -} - - - -/** - * PlayerOnGameServerApi - axios parameter creator - * @export - */ -export const PlayerOnGameServerApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * Required permissions: `MANAGE_PLAYERS` - * @summary Add currency - * @param {string} gameServerId - * @param {string} playerId - * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - playerOnGameServerControllerAddCurrency: async (gameServerId: string, playerId: string, playerOnGameServerSetCurrencyInputDTO?: PlayerOnGameServerSetCurrencyInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'gameServerId' is not null or undefined - assertParamExists('playerOnGameServerControllerAddCurrency', 'gameServerId', gameServerId) - // verify required parameter 'playerId' is not null or undefined - assertParamExists('playerOnGameServerControllerAddCurrency', 'playerId', playerId) - const localVarPath = `/gameserver/{gameServerId}/player/{playerId}/add-currency` - .replace(`{${"gameServerId"}}`, encodeURIComponent(String(gameServerId))) - .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(playerOnGameServerSetCurrencyInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `MANAGE_PLAYERS` - * @summary Deduct currency - * @param {string} gameServerId - * @param {string} playerId - * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - playerOnGameServerControllerDeductCurrency: async (gameServerId: string, playerId: string, playerOnGameServerSetCurrencyInputDTO?: PlayerOnGameServerSetCurrencyInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'gameServerId' is not null or undefined - assertParamExists('playerOnGameServerControllerDeductCurrency', 'gameServerId', gameServerId) - // verify required parameter 'playerId' is not null or undefined - assertParamExists('playerOnGameServerControllerDeductCurrency', 'playerId', playerId) - const localVarPath = `/gameserver/{gameServerId}/player/{playerId}/deduct-currency` - .replace(`{${"gameServerId"}}`, encodeURIComponent(String(gameServerId))) - .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(playerOnGameServerSetCurrencyInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `READ_PLAYERS` - * @summary Get one - * @param {string} gameServerId - * @param {string} playerId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - playerOnGameServerControllerGetOne: async (gameServerId: string, playerId: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'gameServerId' is not null or undefined - assertParamExists('playerOnGameServerControllerGetOne', 'gameServerId', gameServerId) - // verify required parameter 'playerId' is not null or undefined - assertParamExists('playerOnGameServerControllerGetOne', 'playerId', playerId) - const localVarPath = `/gameserver/{gameServerId}/player/{playerId}` - .replace(`{${"gameServerId"}}`, encodeURIComponent(String(gameServerId))) - .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `READ_PLAYERS` - * @summary Search - * @param {PlayerOnGameServerSearchInputDTO} [playerOnGameServerSearchInputDTO] PlayerOnGameServerSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - playerOnGameServerControllerSearch: async (playerOnGameServerSearchInputDTO?: PlayerOnGameServerSearchInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/gameserver/player/search`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(playerOnGameServerSearchInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `MANAGE_PLAYERS` - * @summary Set currency - * @param {string} gameServerId - * @param {string} playerId - * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - playerOnGameServerControllerSetCurrency: async (gameServerId: string, playerId: string, playerOnGameServerSetCurrencyInputDTO?: PlayerOnGameServerSetCurrencyInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'gameServerId' is not null or undefined - assertParamExists('playerOnGameServerControllerSetCurrency', 'gameServerId', gameServerId) - // verify required parameter 'playerId' is not null or undefined - assertParamExists('playerOnGameServerControllerSetCurrency', 'playerId', playerId) - const localVarPath = `/gameserver/{gameServerId}/player/{playerId}/currency` - .replace(`{${"gameServerId"}}`, encodeURIComponent(String(gameServerId))) - .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(playerOnGameServerSetCurrencyInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `MANAGE_PLAYERS` - * @summary Transact between players - * @param {string} gameServerId - * @param {string} sender - * @param {string} receiver - * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - playerOnGameServerControllerTransactBetweenPlayers: async (gameServerId: string, sender: string, receiver: string, playerOnGameServerSetCurrencyInputDTO?: PlayerOnGameServerSetCurrencyInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'gameServerId' is not null or undefined - assertParamExists('playerOnGameServerControllerTransactBetweenPlayers', 'gameServerId', gameServerId) - // verify required parameter 'sender' is not null or undefined - assertParamExists('playerOnGameServerControllerTransactBetweenPlayers', 'sender', sender) - // verify required parameter 'receiver' is not null or undefined - assertParamExists('playerOnGameServerControllerTransactBetweenPlayers', 'receiver', receiver) - const localVarPath = `/gameserver/{gameServerId}/player/{sender}/{receiver}/transfer` - .replace(`{${"gameServerId"}}`, encodeURIComponent(String(gameServerId))) - .replace(`{${"sender"}}`, encodeURIComponent(String(sender))) - .replace(`{${"receiver"}}`, encodeURIComponent(String(receiver))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(playerOnGameServerSetCurrencyInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * PlayerOnGameServerApi - functional programming interface - * @export - */ -export const PlayerOnGameServerApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = PlayerOnGameServerApiAxiosParamCreator(configuration) - return { - /** - * Required permissions: `MANAGE_PLAYERS` - * @summary Add currency - * @param {string} gameServerId - * @param {string} playerId - * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async playerOnGameServerControllerAddCurrency(gameServerId: string, playerId: string, playerOnGameServerSetCurrencyInputDTO?: PlayerOnGameServerSetCurrencyInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.playerOnGameServerControllerAddCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['PlayerOnGameServerApi.playerOnGameServerControllerAddCurrency']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `MANAGE_PLAYERS` - * @summary Deduct currency - * @param {string} gameServerId - * @param {string} playerId - * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async playerOnGameServerControllerDeductCurrency(gameServerId: string, playerId: string, playerOnGameServerSetCurrencyInputDTO?: PlayerOnGameServerSetCurrencyInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.playerOnGameServerControllerDeductCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['PlayerOnGameServerApi.playerOnGameServerControllerDeductCurrency']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `READ_PLAYERS` - * @summary Get one - * @param {string} gameServerId - * @param {string} playerId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async playerOnGameServerControllerGetOne(gameServerId: string, playerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.playerOnGameServerControllerGetOne(gameServerId, playerId, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['PlayerOnGameServerApi.playerOnGameServerControllerGetOne']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `READ_PLAYERS` - * @summary Search - * @param {PlayerOnGameServerSearchInputDTO} [playerOnGameServerSearchInputDTO] PlayerOnGameServerSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async playerOnGameServerControllerSearch(playerOnGameServerSearchInputDTO?: PlayerOnGameServerSearchInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.playerOnGameServerControllerSearch(playerOnGameServerSearchInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['PlayerOnGameServerApi.playerOnGameServerControllerSearch']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `MANAGE_PLAYERS` - * @summary Set currency - * @param {string} gameServerId - * @param {string} playerId - * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async playerOnGameServerControllerSetCurrency(gameServerId: string, playerId: string, playerOnGameServerSetCurrencyInputDTO?: PlayerOnGameServerSetCurrencyInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.playerOnGameServerControllerSetCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['PlayerOnGameServerApi.playerOnGameServerControllerSetCurrency']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `MANAGE_PLAYERS` - * @summary Transact between players - * @param {string} gameServerId - * @param {string} sender - * @param {string} receiver - * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async playerOnGameServerControllerTransactBetweenPlayers(gameServerId: string, sender: string, receiver: string, playerOnGameServerSetCurrencyInputDTO?: PlayerOnGameServerSetCurrencyInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.playerOnGameServerControllerTransactBetweenPlayers(gameServerId, sender, receiver, playerOnGameServerSetCurrencyInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['PlayerOnGameServerApi.playerOnGameServerControllerTransactBetweenPlayers']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - } + async functionControllerUpdate( + id: string, + functionUpdateDTO?: FunctionUpdateDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.functionControllerUpdate( + id, + functionUpdateDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['FunctionApi.functionControllerUpdate']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + }; }; /** - * PlayerOnGameServerApi - factory interface - * @export - */ -export const PlayerOnGameServerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = PlayerOnGameServerApiFp(configuration) - return { - /** - * Required permissions: `MANAGE_PLAYERS` - * @summary Add currency - * @param {string} gameServerId - * @param {string} playerId - * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - playerOnGameServerControllerAddCurrency(gameServerId: string, playerId: string, playerOnGameServerSetCurrencyInputDTO?: PlayerOnGameServerSetCurrencyInputDTO, options?: any): AxiosPromise { - return localVarFp.playerOnGameServerControllerAddCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `MANAGE_PLAYERS` - * @summary Deduct currency - * @param {string} gameServerId - * @param {string} playerId - * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - playerOnGameServerControllerDeductCurrency(gameServerId: string, playerId: string, playerOnGameServerSetCurrencyInputDTO?: PlayerOnGameServerSetCurrencyInputDTO, options?: any): AxiosPromise { - return localVarFp.playerOnGameServerControllerDeductCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `READ_PLAYERS` - * @summary Get one - * @param {string} gameServerId - * @param {string} playerId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - playerOnGameServerControllerGetOne(gameServerId: string, playerId: string, options?: any): AxiosPromise { - return localVarFp.playerOnGameServerControllerGetOne(gameServerId, playerId, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `READ_PLAYERS` - * @summary Search - * @param {PlayerOnGameServerSearchInputDTO} [playerOnGameServerSearchInputDTO] PlayerOnGameServerSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - playerOnGameServerControllerSearch(playerOnGameServerSearchInputDTO?: PlayerOnGameServerSearchInputDTO, options?: any): AxiosPromise { - return localVarFp.playerOnGameServerControllerSearch(playerOnGameServerSearchInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `MANAGE_PLAYERS` - * @summary Set currency - * @param {string} gameServerId - * @param {string} playerId - * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - playerOnGameServerControllerSetCurrency(gameServerId: string, playerId: string, playerOnGameServerSetCurrencyInputDTO?: PlayerOnGameServerSetCurrencyInputDTO, options?: any): AxiosPromise { - return localVarFp.playerOnGameServerControllerSetCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `MANAGE_PLAYERS` - * @summary Transact between players - * @param {string} gameServerId - * @param {string} sender - * @param {string} receiver - * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - playerOnGameServerControllerTransactBetweenPlayers(gameServerId: string, sender: string, receiver: string, playerOnGameServerSetCurrencyInputDTO?: PlayerOnGameServerSetCurrencyInputDTO, options?: any): AxiosPromise { - return localVarFp.playerOnGameServerControllerTransactBetweenPlayers(gameServerId, sender, receiver, playerOnGameServerSetCurrencyInputDTO, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * PlayerOnGameServerApi - object-oriented interface + * FunctionApi - factory interface * @export - * @class PlayerOnGameServerApi - * @extends {BaseAPI} */ -export class PlayerOnGameServerApi extends BaseAPI { - /** - * Required permissions: `MANAGE_PLAYERS` - * @summary Add currency - * @param {string} gameServerId - * @param {string} playerId - * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof PlayerOnGameServerApi - */ - public playerOnGameServerControllerAddCurrency(gameServerId: string, playerId: string, playerOnGameServerSetCurrencyInputDTO?: PlayerOnGameServerSetCurrencyInputDTO, options?: RawAxiosRequestConfig) { - return PlayerOnGameServerApiFp(this.configuration).playerOnGameServerControllerAddCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options).then((request) => request(this.axios, this.basePath)); - } - +export const FunctionApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = FunctionApiFp(configuration); + return { /** - * Required permissions: `MANAGE_PLAYERS` - * @summary Deduct currency - * @param {string} gameServerId - * @param {string} playerId - * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO + * Required permissions: `MANAGE_MODULES` + * @summary Create + * @param {FunctionCreateDTO} [functionCreateDTO] FunctionCreateDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof PlayerOnGameServerApi */ - public playerOnGameServerControllerDeductCurrency(gameServerId: string, playerId: string, playerOnGameServerSetCurrencyInputDTO?: PlayerOnGameServerSetCurrencyInputDTO, options?: RawAxiosRequestConfig) { - return PlayerOnGameServerApiFp(this.configuration).playerOnGameServerControllerDeductCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options).then((request) => request(this.axios, this.basePath)); - } - + functionControllerCreate(functionCreateDTO?: FunctionCreateDTO, options?: any): AxiosPromise { + return localVarFp + .functionControllerCreate(functionCreateDTO, options) + .then((request) => request(axios, basePath)); + }, /** - * Required permissions: `READ_PLAYERS` + * Required permissions: `READ_MODULES` * @summary Get one - * @param {string} gameServerId - * @param {string} playerId + * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof PlayerOnGameServerApi */ - public playerOnGameServerControllerGetOne(gameServerId: string, playerId: string, options?: RawAxiosRequestConfig) { - return PlayerOnGameServerApiFp(this.configuration).playerOnGameServerControllerGetOne(gameServerId, playerId, options).then((request) => request(this.axios, this.basePath)); - } - + functionControllerGetOne(id: string, options?: any): AxiosPromise { + return localVarFp.functionControllerGetOne(id, options).then((request) => request(axios, basePath)); + }, /** - * Required permissions: `READ_PLAYERS` - * @summary Search - * @param {PlayerOnGameServerSearchInputDTO} [playerOnGameServerSearchInputDTO] PlayerOnGameServerSearchInputDTO + * Required permissions: `MANAGE_MODULES` + * @summary Remove + * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof PlayerOnGameServerApi */ - public playerOnGameServerControllerSearch(playerOnGameServerSearchInputDTO?: PlayerOnGameServerSearchInputDTO, options?: RawAxiosRequestConfig) { - return PlayerOnGameServerApiFp(this.configuration).playerOnGameServerControllerSearch(playerOnGameServerSearchInputDTO, options).then((request) => request(this.axios, this.basePath)); - } - + functionControllerRemove(id: string, options?: any): AxiosPromise { + return localVarFp.functionControllerRemove(id, options).then((request) => request(axios, basePath)); + }, /** - * Required permissions: `MANAGE_PLAYERS` - * @summary Set currency - * @param {string} gameServerId - * @param {string} playerId - * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO + * Required permissions: `READ_MODULES` + * @summary Search + * @param {FunctionSearchInputDTO} [functionSearchInputDTO] FunctionSearchInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof PlayerOnGameServerApi */ - public playerOnGameServerControllerSetCurrency(gameServerId: string, playerId: string, playerOnGameServerSetCurrencyInputDTO?: PlayerOnGameServerSetCurrencyInputDTO, options?: RawAxiosRequestConfig) { - return PlayerOnGameServerApiFp(this.configuration).playerOnGameServerControllerSetCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options).then((request) => request(this.axios, this.basePath)); - } - + functionControllerSearch( + functionSearchInputDTO?: FunctionSearchInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .functionControllerSearch(functionSearchInputDTO, options) + .then((request) => request(axios, basePath)); + }, /** - * Required permissions: `MANAGE_PLAYERS` - * @summary Transact between players - * @param {string} gameServerId - * @param {string} sender - * @param {string} receiver - * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO + * Required permissions: `MANAGE_MODULES` + * @summary Update + * @param {string} id + * @param {FunctionUpdateDTO} [functionUpdateDTO] FunctionUpdateDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof PlayerOnGameServerApi */ - public playerOnGameServerControllerTransactBetweenPlayers(gameServerId: string, sender: string, receiver: string, playerOnGameServerSetCurrencyInputDTO?: PlayerOnGameServerSetCurrencyInputDTO, options?: RawAxiosRequestConfig) { - return PlayerOnGameServerApiFp(this.configuration).playerOnGameServerControllerTransactBetweenPlayers(gameServerId, sender, receiver, playerOnGameServerSetCurrencyInputDTO, options).then((request) => request(this.axios, this.basePath)); - } -} - - - -/** - * RoleApi - axios parameter creator - * @export - */ -export const RoleApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * Required permissions: `MANAGE_ROLES` - * @summary Create - * @param {RoleCreateInputDTO} [roleCreateInputDTO] RoleCreateInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - roleControllerCreate: async (roleCreateInputDTO?: RoleCreateInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/role`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(roleCreateInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `READ_ROLES` - * @summary Get one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - roleControllerGetOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('roleControllerGetOne', 'id', id) - const localVarPath = `/role/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get permissions - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - roleControllerGetPermissions: async (options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/permissions`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `MANAGE_ROLES` - * @summary Remove - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - roleControllerRemove: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('roleControllerRemove', 'id', id) - const localVarPath = `/role/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `READ_ROLES` - * @summary Search - * @param {RoleSearchInputDTO} [roleSearchInputDTO] RoleSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - roleControllerSearch: async (roleSearchInputDTO?: RoleSearchInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/role/search`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(roleSearchInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `MANAGE_ROLES` - * @summary Update - * @param {string} id - * @param {RoleUpdateInputDTO} [roleUpdateInputDTO] RoleUpdateInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - roleControllerUpdate: async (id: string, roleUpdateInputDTO?: RoleUpdateInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('roleControllerUpdate', 'id', id) - const localVarPath = `/role/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(roleUpdateInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * RoleApi - functional programming interface - * @export - */ -export const RoleApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = RoleApiAxiosParamCreator(configuration) - return { - /** - * Required permissions: `MANAGE_ROLES` - * @summary Create - * @param {RoleCreateInputDTO} [roleCreateInputDTO] RoleCreateInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async roleControllerCreate(roleCreateInputDTO?: RoleCreateInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.roleControllerCreate(roleCreateInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['RoleApi.roleControllerCreate']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `READ_ROLES` - * @summary Get one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async roleControllerGetOne(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.roleControllerGetOne(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['RoleApi.roleControllerGetOne']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * - * @summary Get permissions - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async roleControllerGetPermissions(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.roleControllerGetPermissions(options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['RoleApi.roleControllerGetPermissions']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `MANAGE_ROLES` - * @summary Remove - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async roleControllerRemove(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.roleControllerRemove(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['RoleApi.roleControllerRemove']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `READ_ROLES` - * @summary Search - * @param {RoleSearchInputDTO} [roleSearchInputDTO] RoleSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async roleControllerSearch(roleSearchInputDTO?: RoleSearchInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.roleControllerSearch(roleSearchInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['RoleApi.roleControllerSearch']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `MANAGE_ROLES` - * @summary Update - * @param {string} id - * @param {RoleUpdateInputDTO} [roleUpdateInputDTO] RoleUpdateInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async roleControllerUpdate(id: string, roleUpdateInputDTO?: RoleUpdateInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.roleControllerUpdate(id, roleUpdateInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['RoleApi.roleControllerUpdate']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - } + functionControllerUpdate( + id: string, + functionUpdateDTO?: FunctionUpdateDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .functionControllerUpdate(id, functionUpdateDTO, options) + .then((request) => request(axios, basePath)); + }, + }; }; /** - * RoleApi - factory interface + * FunctionApi - object-oriented interface * @export + * @class FunctionApi + * @extends {BaseAPI} */ -export const RoleApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = RoleApiFp(configuration) - return { - /** - * Required permissions: `MANAGE_ROLES` - * @summary Create - * @param {RoleCreateInputDTO} [roleCreateInputDTO] RoleCreateInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - roleControllerCreate(roleCreateInputDTO?: RoleCreateInputDTO, options?: any): AxiosPromise { - return localVarFp.roleControllerCreate(roleCreateInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `READ_ROLES` - * @summary Get one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - roleControllerGetOne(id: string, options?: any): AxiosPromise { - return localVarFp.roleControllerGetOne(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get permissions - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - roleControllerGetPermissions(options?: any): AxiosPromise { - return localVarFp.roleControllerGetPermissions(options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `MANAGE_ROLES` - * @summary Remove - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - roleControllerRemove(id: string, options?: any): AxiosPromise { - return localVarFp.roleControllerRemove(id, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `READ_ROLES` - * @summary Search - * @param {RoleSearchInputDTO} [roleSearchInputDTO] RoleSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - roleControllerSearch(roleSearchInputDTO?: RoleSearchInputDTO, options?: any): AxiosPromise { - return localVarFp.roleControllerSearch(roleSearchInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `MANAGE_ROLES` - * @summary Update - * @param {string} id - * @param {RoleUpdateInputDTO} [roleUpdateInputDTO] RoleUpdateInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - roleControllerUpdate(id: string, roleUpdateInputDTO?: RoleUpdateInputDTO, options?: any): AxiosPromise { - return localVarFp.roleControllerUpdate(id, roleUpdateInputDTO, options).then((request) => request(axios, basePath)); - }, - }; -}; +export class FunctionApi extends BaseAPI { + /** + * Required permissions: `MANAGE_MODULES` + * @summary Create + * @param {FunctionCreateDTO} [functionCreateDTO] FunctionCreateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FunctionApi + */ + public functionControllerCreate(functionCreateDTO?: FunctionCreateDTO, options?: RawAxiosRequestConfig) { + return FunctionApiFp(this.configuration) + .functionControllerCreate(functionCreateDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `READ_MODULES` + * @summary Get one + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FunctionApi + */ + public functionControllerGetOne(id: string, options?: RawAxiosRequestConfig) { + return FunctionApiFp(this.configuration) + .functionControllerGetOne(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `MANAGE_MODULES` + * @summary Remove + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FunctionApi + */ + public functionControllerRemove(id: string, options?: RawAxiosRequestConfig) { + return FunctionApiFp(this.configuration) + .functionControllerRemove(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `READ_MODULES` + * @summary Search + * @param {FunctionSearchInputDTO} [functionSearchInputDTO] FunctionSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FunctionApi + */ + public functionControllerSearch(functionSearchInputDTO?: FunctionSearchInputDTO, options?: RawAxiosRequestConfig) { + return FunctionApiFp(this.configuration) + .functionControllerSearch(functionSearchInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `MANAGE_MODULES` + * @summary Update + * @param {string} id + * @param {FunctionUpdateDTO} [functionUpdateDTO] FunctionUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof FunctionApi + */ + public functionControllerUpdate(id: string, functionUpdateDTO?: FunctionUpdateDTO, options?: RawAxiosRequestConfig) { + return FunctionApiFp(this.configuration) + .functionControllerUpdate(id, functionUpdateDTO, options) + .then((request) => request(this.axios, this.basePath)); + } +} /** - * RoleApi - object-oriented interface + * GameServerApi - axios parameter creator * @export - * @class RoleApi - * @extends {BaseAPI} */ -export class RoleApi extends BaseAPI { +export const GameServerApiAxiosParamCreator = function (configuration?: Configuration) { + return { /** - * Required permissions: `MANAGE_ROLES` - * @summary Create + * Ban a player from a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` + * @summary Ban player + * @param {string} gameServerId + * @param {string} playerId + * @param {BanPlayerInputDTO} [banPlayerInputDTO] BanPlayerInputDTO + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + gameServerControllerBanPlayer: async ( + gameServerId: string, + playerId: string, + banPlayerInputDTO?: BanPlayerInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'gameServerId' is not null or undefined + assertParamExists('gameServerControllerBanPlayer', 'gameServerId', gameServerId); + // verify required parameter 'playerId' is not null or undefined + assertParamExists('gameServerControllerBanPlayer', 'playerId', playerId); + const localVarPath = `/gameserver/{gameServerId}/player/{playerId}/ban` + .replace(`{${'gameServerId'}}`, encodeURIComponent(String(gameServerId))) + .replace(`{${'playerId'}}`, encodeURIComponent(String(playerId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(banPlayerInputDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Create a gameserver Required permissions: `MANAGE_GAMESERVERS` + * @summary Create + * @param {GameServerCreateDTO} [gameServerCreateDTO] GameServerCreateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + gameServerControllerCreate: async ( + gameServerCreateDTO?: GameServerCreateDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/gameserver`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(gameServerCreateDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Execute a raw command on a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` + * @summary Execute command + * @param {string} id + * @param {CommandExecuteInputDTO} [commandExecuteInputDTO] CommandExecuteInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + gameServerControllerExecuteCommand: async ( + id: string, + commandExecuteInputDTO?: CommandExecuteInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('gameServerControllerExecuteCommand', 'id', id); + const localVarPath = `/gameserver/{id}/command`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded( + commandExecuteInputDTO, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Fetch status of an import from CSMM Required permissions: `MANAGE_GAMESERVERS` + * @summary Get import + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + gameServerControllerGetImport: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('gameServerControllerGetImport', 'id', id); + const localVarPath = `/gameserver/import/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Fetch a gameserver by id + * @summary Get one + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + gameServerControllerGetOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('gameServerControllerGetOne', 'id', id); + const localVarPath = `/gameserver/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Fetch a list of players on a gameserver. Requires gameserver to be online and reachable. Required permissions: `READ_PLAYERS` + * @summary Get players + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + gameServerControllerGetPlayers: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('gameServerControllerGetPlayers', 'id', id); + const localVarPath = `/gameserver/{id}/players`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Fetch gameserver types (7dtd, Rust, ...) + * @summary Get types + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + gameServerControllerGetTypes: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/gameserver/types`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Give an item to a player. Requires gameserver to be online and reachable. Depending on the underlying game implementation, it\'s possible that the item is dropped on the ground instead of placed directly in the player\'s inventory. Required permissions: `MANAGE_GAMESERVERS` + * @summary Give item + * @param {string} gameServerId + * @param {string} playerId + * @param {GiveItemInputDTO} [giveItemInputDTO] GiveItemInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + gameServerControllerGiveItem: async ( + gameServerId: string, + playerId: string, + giveItemInputDTO?: GiveItemInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'gameServerId' is not null or undefined + assertParamExists('gameServerControllerGiveItem', 'gameServerId', gameServerId); + // verify required parameter 'playerId' is not null or undefined + assertParamExists('gameServerControllerGiveItem', 'playerId', playerId); + const localVarPath = `/gameserver/{gameServerId}/player/{playerId}/giveItem` + .replace(`{${'gameServerId'}}`, encodeURIComponent(String(gameServerId))) + .replace(`{${'playerId'}}`, encodeURIComponent(String(playerId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(giveItemInputDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Import a gameserver from CSMM. Required permissions: `MANAGE_GAMESERVERS` + * @summary Import from csmm + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + gameServerControllerImportFromCSMM: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/gameserver/import`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Kick a player from a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` + * @summary Kick player + * @param {string} gameServerId + * @param {string} playerId + * @param {KickPlayerInputDTO} [kickPlayerInputDTO] KickPlayerInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + gameServerControllerKickPlayer: async ( + gameServerId: string, + playerId: string, + kickPlayerInputDTO?: KickPlayerInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'gameServerId' is not null or undefined + assertParamExists('gameServerControllerKickPlayer', 'gameServerId', gameServerId); + // verify required parameter 'playerId' is not null or undefined + assertParamExists('gameServerControllerKickPlayer', 'playerId', playerId); + const localVarPath = `/gameserver/{gameServerId}/player/{playerId}/kick` + .replace(`{${'gameServerId'}}`, encodeURIComponent(String(gameServerId))) + .replace(`{${'playerId'}}`, encodeURIComponent(String(playerId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(kickPlayerInputDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List bans for a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` + * @summary List bans + * @param {string} id + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + gameServerControllerListBans: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('gameServerControllerListBans', 'id', id); + const localVarPath = `/gameserver/{id}/bans`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete a gameserver Required permissions: `MANAGE_GAMESERVERS` + * @summary Remove + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + gameServerControllerRemove: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('gameServerControllerRemove', 'id', id); + const localVarPath = `/gameserver/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Fetch gameservers + * @summary Search + * @param {GameServerSearchInputDTO} [gameServerSearchInputDTO] GameServerSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + gameServerControllerSearch: async ( + gameServerSearchInputDTO?: GameServerSearchInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/gameserver/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded( + gameServerSearchInputDTO, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Send a message in gameserver chat. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` + * @summary Send message + * @param {string} id + * @param {MessageSendInputDTO} [messageSendInputDTO] MessageSendInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + gameServerControllerSendMessage: async ( + id: string, + messageSendInputDTO?: MessageSendInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('gameServerControllerSendMessage', 'id', id); + const localVarPath = `/gameserver/{id}/message`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(messageSendInputDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Shuts down the gameserver. This is a \'soft\' shutdown, meaning the gameserver will be stopped gracefully. If the gameserver is not reachable, this will have no effect. Note that most hosting providers will automatically restart the gameserver after a shutdown, which makes this operation act as a \'restart\' instead. Required permissions: `MANAGE_GAMESERVERS` + * @summary Shutdown + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + gameServerControllerShutdown: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('gameServerControllerShutdown', 'id', id); + const localVarPath = `/gameserver/{id}/shutdown`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Teleport a player to a location. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` + * @summary Teleport player + * @param {string} gameServerId + * @param {string} playerId + * @param {TeleportPlayerInputDTO} [teleportPlayerInputDTO] TeleportPlayerInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + gameServerControllerTeleportPlayer: async ( + gameServerId: string, + playerId: string, + teleportPlayerInputDTO?: TeleportPlayerInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'gameServerId' is not null or undefined + assertParamExists('gameServerControllerTeleportPlayer', 'gameServerId', gameServerId); + // verify required parameter 'playerId' is not null or undefined + assertParamExists('gameServerControllerTeleportPlayer', 'playerId', playerId); + const localVarPath = `/gameserver/{gameServerId}/player/{playerId}/teleport` + .replace(`{${'gameServerId'}}`, encodeURIComponent(String(gameServerId))) + .replace(`{${'playerId'}}`, encodeURIComponent(String(playerId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded( + teleportPlayerInputDTO, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Test if Takaro can connect to a gameserver. Will do a thorough check and report details. + * @summary Test reachability + * @param {GameServerTestReachabilityInputDTO} [gameServerTestReachabilityInputDTO] GameServerTestReachabilityInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + gameServerControllerTestReachability: async ( + gameServerTestReachabilityInputDTO?: GameServerTestReachabilityInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/gameserver/reachability`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded( + gameServerTestReachabilityInputDTO, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Test if Takaro can connect to a gameserver. Will do a thorough check and report details. + * @summary Test reachability for id + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + gameServerControllerTestReachabilityForId: async ( + id: string, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('gameServerControllerTestReachabilityForId', 'id', id); + const localVarPath = `/gameserver/{id}/reachability`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Unban a player from a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` + * @summary Unban player + * @param {string} gameServerId + * @param {string} playerId + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + gameServerControllerUnbanPlayer: async ( + gameServerId: string, + playerId: string, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'gameServerId' is not null or undefined + assertParamExists('gameServerControllerUnbanPlayer', 'gameServerId', gameServerId); + // verify required parameter 'playerId' is not null or undefined + assertParamExists('gameServerControllerUnbanPlayer', 'playerId', playerId); + const localVarPath = `/gameserver/{gameServerId}/player/{playerId}/unban` + .replace(`{${'gameServerId'}}`, encodeURIComponent(String(gameServerId))) + .replace(`{${'playerId'}}`, encodeURIComponent(String(playerId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update a gameserver Required permissions: `MANAGE_GAMESERVERS` + * @summary Update + * @param {string} id + * @param {GameServerUpdateDTO} [gameServerUpdateDTO] GameServerUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + gameServerControllerUpdate: async ( + id: string, + gameServerUpdateDTO?: GameServerUpdateDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('gameServerControllerUpdate', 'id', id); + const localVarPath = `/gameserver/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(gameServerUpdateDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * GameServerApi - functional programming interface + * @export + */ +export const GameServerApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = GameServerApiAxiosParamCreator(configuration); + return { + /** + * Ban a player from a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` + * @summary Ban player + * @param {string} gameServerId + * @param {string} playerId + * @param {BanPlayerInputDTO} [banPlayerInputDTO] BanPlayerInputDTO + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + async gameServerControllerBanPlayer( + gameServerId: string, + playerId: string, + banPlayerInputDTO?: BanPlayerInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerBanPlayer( + gameServerId, + playerId, + banPlayerInputDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['GameServerApi.gameServerControllerBanPlayer']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Create a gameserver Required permissions: `MANAGE_GAMESERVERS` + * @summary Create + * @param {GameServerCreateDTO} [gameServerCreateDTO] GameServerCreateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async gameServerControllerCreate( + gameServerCreateDTO?: GameServerCreateDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerCreate( + gameServerCreateDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['GameServerApi.gameServerControllerCreate']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Execute a raw command on a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` + * @summary Execute command + * @param {string} id + * @param {CommandExecuteInputDTO} [commandExecuteInputDTO] CommandExecuteInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async gameServerControllerExecuteCommand( + id: string, + commandExecuteInputDTO?: CommandExecuteInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerExecuteCommand( + id, + commandExecuteInputDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['GameServerApi.gameServerControllerExecuteCommand']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Fetch status of an import from CSMM Required permissions: `MANAGE_GAMESERVERS` + * @summary Get import + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async gameServerControllerGetImport( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerGetImport(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['GameServerApi.gameServerControllerGetImport']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Fetch a gameserver by id + * @summary Get one + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async gameServerControllerGetOne( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerGetOne(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['GameServerApi.gameServerControllerGetOne']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Fetch a list of players on a gameserver. Requires gameserver to be online and reachable. Required permissions: `READ_PLAYERS` + * @summary Get players + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async gameServerControllerGetPlayers( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerGetPlayers(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['GameServerApi.gameServerControllerGetPlayers']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Fetch gameserver types (7dtd, Rust, ...) + * @summary Get types + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async gameServerControllerGetTypes( + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerGetTypes(options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['GameServerApi.gameServerControllerGetTypes']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Give an item to a player. Requires gameserver to be online and reachable. Depending on the underlying game implementation, it\'s possible that the item is dropped on the ground instead of placed directly in the player\'s inventory. Required permissions: `MANAGE_GAMESERVERS` + * @summary Give item + * @param {string} gameServerId + * @param {string} playerId + * @param {GiveItemInputDTO} [giveItemInputDTO] GiveItemInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async gameServerControllerGiveItem( + gameServerId: string, + playerId: string, + giveItemInputDTO?: GiveItemInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerGiveItem( + gameServerId, + playerId, + giveItemInputDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['GameServerApi.gameServerControllerGiveItem']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Import a gameserver from CSMM. Required permissions: `MANAGE_GAMESERVERS` + * @summary Import from csmm + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async gameServerControllerImportFromCSMM( + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerImportFromCSMM(options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['GameServerApi.gameServerControllerImportFromCSMM']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Kick a player from a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` + * @summary Kick player + * @param {string} gameServerId + * @param {string} playerId + * @param {KickPlayerInputDTO} [kickPlayerInputDTO] KickPlayerInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async gameServerControllerKickPlayer( + gameServerId: string, + playerId: string, + kickPlayerInputDTO?: KickPlayerInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerKickPlayer( + gameServerId, + playerId, + kickPlayerInputDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['GameServerApi.gameServerControllerKickPlayer']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * List bans for a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` + * @summary List bans + * @param {string} id + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + async gameServerControllerListBans( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerListBans(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['GameServerApi.gameServerControllerListBans']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Delete a gameserver Required permissions: `MANAGE_GAMESERVERS` + * @summary Remove + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async gameServerControllerRemove( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerRemove(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['GameServerApi.gameServerControllerRemove']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Fetch gameservers + * @summary Search + * @param {GameServerSearchInputDTO} [gameServerSearchInputDTO] GameServerSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async gameServerControllerSearch( + gameServerSearchInputDTO?: GameServerSearchInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerSearch( + gameServerSearchInputDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['GameServerApi.gameServerControllerSearch']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Send a message in gameserver chat. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` + * @summary Send message + * @param {string} id + * @param {MessageSendInputDTO} [messageSendInputDTO] MessageSendInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async gameServerControllerSendMessage( + id: string, + messageSendInputDTO?: MessageSendInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerSendMessage( + id, + messageSendInputDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['GameServerApi.gameServerControllerSendMessage']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Shuts down the gameserver. This is a \'soft\' shutdown, meaning the gameserver will be stopped gracefully. If the gameserver is not reachable, this will have no effect. Note that most hosting providers will automatically restart the gameserver after a shutdown, which makes this operation act as a \'restart\' instead. Required permissions: `MANAGE_GAMESERVERS` + * @summary Shutdown + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async gameServerControllerShutdown( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerShutdown(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['GameServerApi.gameServerControllerShutdown']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Teleport a player to a location. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` + * @summary Teleport player + * @param {string} gameServerId + * @param {string} playerId + * @param {TeleportPlayerInputDTO} [teleportPlayerInputDTO] TeleportPlayerInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async gameServerControllerTeleportPlayer( + gameServerId: string, + playerId: string, + teleportPlayerInputDTO?: TeleportPlayerInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerTeleportPlayer( + gameServerId, + playerId, + teleportPlayerInputDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['GameServerApi.gameServerControllerTeleportPlayer']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Test if Takaro can connect to a gameserver. Will do a thorough check and report details. + * @summary Test reachability + * @param {GameServerTestReachabilityInputDTO} [gameServerTestReachabilityInputDTO] GameServerTestReachabilityInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async gameServerControllerTestReachability( + gameServerTestReachabilityInputDTO?: GameServerTestReachabilityInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerTestReachability( + gameServerTestReachabilityInputDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['GameServerApi.gameServerControllerTestReachability']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Test if Takaro can connect to a gameserver. Will do a thorough check and report details. + * @summary Test reachability for id + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async gameServerControllerTestReachabilityForId( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerTestReachabilityForId(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = + operationServerMap['GameServerApi.gameServerControllerTestReachabilityForId']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Unban a player from a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` + * @summary Unban player + * @param {string} gameServerId + * @param {string} playerId + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + async gameServerControllerUnbanPlayer( + gameServerId: string, + playerId: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerUnbanPlayer( + gameServerId, + playerId, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['GameServerApi.gameServerControllerUnbanPlayer']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Update a gameserver Required permissions: `MANAGE_GAMESERVERS` + * @summary Update + * @param {string} id + * @param {GameServerUpdateDTO} [gameServerUpdateDTO] GameServerUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async gameServerControllerUpdate( + id: string, + gameServerUpdateDTO?: GameServerUpdateDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerUpdate( + id, + gameServerUpdateDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['GameServerApi.gameServerControllerUpdate']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + }; +}; + +/** + * GameServerApi - factory interface + * @export + */ +export const GameServerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = GameServerApiFp(configuration); + return { + /** + * Ban a player from a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` + * @summary Ban player + * @param {string} gameServerId + * @param {string} playerId + * @param {BanPlayerInputDTO} [banPlayerInputDTO] BanPlayerInputDTO + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + gameServerControllerBanPlayer( + gameServerId: string, + playerId: string, + banPlayerInputDTO?: BanPlayerInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .gameServerControllerBanPlayer(gameServerId, playerId, banPlayerInputDTO, options) + .then((request) => request(axios, basePath)); + }, + /** + * Create a gameserver Required permissions: `MANAGE_GAMESERVERS` + * @summary Create + * @param {GameServerCreateDTO} [gameServerCreateDTO] GameServerCreateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + gameServerControllerCreate( + gameServerCreateDTO?: GameServerCreateDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .gameServerControllerCreate(gameServerCreateDTO, options) + .then((request) => request(axios, basePath)); + }, + /** + * Execute a raw command on a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` + * @summary Execute command + * @param {string} id + * @param {CommandExecuteInputDTO} [commandExecuteInputDTO] CommandExecuteInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + gameServerControllerExecuteCommand( + id: string, + commandExecuteInputDTO?: CommandExecuteInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .gameServerControllerExecuteCommand(id, commandExecuteInputDTO, options) + .then((request) => request(axios, basePath)); + }, + /** + * Fetch status of an import from CSMM Required permissions: `MANAGE_GAMESERVERS` + * @summary Get import + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + gameServerControllerGetImport(id: string, options?: any): AxiosPromise { + return localVarFp.gameServerControllerGetImport(id, options).then((request) => request(axios, basePath)); + }, + /** + * Fetch a gameserver by id + * @summary Get one + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + gameServerControllerGetOne(id: string, options?: any): AxiosPromise { + return localVarFp.gameServerControllerGetOne(id, options).then((request) => request(axios, basePath)); + }, + /** + * Fetch a list of players on a gameserver. Requires gameserver to be online and reachable. Required permissions: `READ_PLAYERS` + * @summary Get players + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + gameServerControllerGetPlayers(id: string, options?: any): AxiosPromise { + return localVarFp.gameServerControllerGetPlayers(id, options).then((request) => request(axios, basePath)); + }, + /** + * Fetch gameserver types (7dtd, Rust, ...) + * @summary Get types + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + gameServerControllerGetTypes(options?: any): AxiosPromise { + return localVarFp.gameServerControllerGetTypes(options).then((request) => request(axios, basePath)); + }, + /** + * Give an item to a player. Requires gameserver to be online and reachable. Depending on the underlying game implementation, it\'s possible that the item is dropped on the ground instead of placed directly in the player\'s inventory. Required permissions: `MANAGE_GAMESERVERS` + * @summary Give item + * @param {string} gameServerId + * @param {string} playerId + * @param {GiveItemInputDTO} [giveItemInputDTO] GiveItemInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + gameServerControllerGiveItem( + gameServerId: string, + playerId: string, + giveItemInputDTO?: GiveItemInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .gameServerControllerGiveItem(gameServerId, playerId, giveItemInputDTO, options) + .then((request) => request(axios, basePath)); + }, + /** + * Import a gameserver from CSMM. Required permissions: `MANAGE_GAMESERVERS` + * @summary Import from csmm + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + gameServerControllerImportFromCSMM(options?: any): AxiosPromise { + return localVarFp.gameServerControllerImportFromCSMM(options).then((request) => request(axios, basePath)); + }, + /** + * Kick a player from a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` + * @summary Kick player + * @param {string} gameServerId + * @param {string} playerId + * @param {KickPlayerInputDTO} [kickPlayerInputDTO] KickPlayerInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + gameServerControllerKickPlayer( + gameServerId: string, + playerId: string, + kickPlayerInputDTO?: KickPlayerInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .gameServerControllerKickPlayer(gameServerId, playerId, kickPlayerInputDTO, options) + .then((request) => request(axios, basePath)); + }, + /** + * List bans for a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` + * @summary List bans + * @param {string} id + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + gameServerControllerListBans(id: string, options?: any): AxiosPromise { + return localVarFp.gameServerControllerListBans(id, options).then((request) => request(axios, basePath)); + }, + /** + * Delete a gameserver Required permissions: `MANAGE_GAMESERVERS` + * @summary Remove + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + gameServerControllerRemove(id: string, options?: any): AxiosPromise { + return localVarFp.gameServerControllerRemove(id, options).then((request) => request(axios, basePath)); + }, + /** + * Fetch gameservers + * @summary Search + * @param {GameServerSearchInputDTO} [gameServerSearchInputDTO] GameServerSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + gameServerControllerSearch( + gameServerSearchInputDTO?: GameServerSearchInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .gameServerControllerSearch(gameServerSearchInputDTO, options) + .then((request) => request(axios, basePath)); + }, + /** + * Send a message in gameserver chat. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` + * @summary Send message + * @param {string} id + * @param {MessageSendInputDTO} [messageSendInputDTO] MessageSendInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + gameServerControllerSendMessage( + id: string, + messageSendInputDTO?: MessageSendInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .gameServerControllerSendMessage(id, messageSendInputDTO, options) + .then((request) => request(axios, basePath)); + }, + /** + * Shuts down the gameserver. This is a \'soft\' shutdown, meaning the gameserver will be stopped gracefully. If the gameserver is not reachable, this will have no effect. Note that most hosting providers will automatically restart the gameserver after a shutdown, which makes this operation act as a \'restart\' instead. Required permissions: `MANAGE_GAMESERVERS` + * @summary Shutdown + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + gameServerControllerShutdown(id: string, options?: any): AxiosPromise { + return localVarFp.gameServerControllerShutdown(id, options).then((request) => request(axios, basePath)); + }, + /** + * Teleport a player to a location. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` + * @summary Teleport player + * @param {string} gameServerId + * @param {string} playerId + * @param {TeleportPlayerInputDTO} [teleportPlayerInputDTO] TeleportPlayerInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + gameServerControllerTeleportPlayer( + gameServerId: string, + playerId: string, + teleportPlayerInputDTO?: TeleportPlayerInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .gameServerControllerTeleportPlayer(gameServerId, playerId, teleportPlayerInputDTO, options) + .then((request) => request(axios, basePath)); + }, + /** + * Test if Takaro can connect to a gameserver. Will do a thorough check and report details. + * @summary Test reachability + * @param {GameServerTestReachabilityInputDTO} [gameServerTestReachabilityInputDTO] GameServerTestReachabilityInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + gameServerControllerTestReachability( + gameServerTestReachabilityInputDTO?: GameServerTestReachabilityInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .gameServerControllerTestReachability(gameServerTestReachabilityInputDTO, options) + .then((request) => request(axios, basePath)); + }, + /** + * Test if Takaro can connect to a gameserver. Will do a thorough check and report details. + * @summary Test reachability for id + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + gameServerControllerTestReachabilityForId( + id: string, + options?: any, + ): AxiosPromise { + return localVarFp + .gameServerControllerTestReachabilityForId(id, options) + .then((request) => request(axios, basePath)); + }, + /** + * Unban a player from a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` + * @summary Unban player + * @param {string} gameServerId + * @param {string} playerId + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + */ + gameServerControllerUnbanPlayer(gameServerId: string, playerId: string, options?: any): AxiosPromise { + return localVarFp + .gameServerControllerUnbanPlayer(gameServerId, playerId, options) + .then((request) => request(axios, basePath)); + }, + /** + * Update a gameserver Required permissions: `MANAGE_GAMESERVERS` + * @summary Update + * @param {string} id + * @param {GameServerUpdateDTO} [gameServerUpdateDTO] GameServerUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + gameServerControllerUpdate( + id: string, + gameServerUpdateDTO?: GameServerUpdateDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .gameServerControllerUpdate(id, gameServerUpdateDTO, options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * GameServerApi - object-oriented interface + * @export + * @class GameServerApi + * @extends {BaseAPI} + */ +export class GameServerApi extends BaseAPI { + /** + * Ban a player from a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` + * @summary Ban player + * @param {string} gameServerId + * @param {string} playerId + * @param {BanPlayerInputDTO} [banPlayerInputDTO] BanPlayerInputDTO + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + * @memberof GameServerApi + */ + public gameServerControllerBanPlayer( + gameServerId: string, + playerId: string, + banPlayerInputDTO?: BanPlayerInputDTO, + options?: RawAxiosRequestConfig, + ) { + return GameServerApiFp(this.configuration) + .gameServerControllerBanPlayer(gameServerId, playerId, banPlayerInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Create a gameserver Required permissions: `MANAGE_GAMESERVERS` + * @summary Create + * @param {GameServerCreateDTO} [gameServerCreateDTO] GameServerCreateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof GameServerApi + */ + public gameServerControllerCreate(gameServerCreateDTO?: GameServerCreateDTO, options?: RawAxiosRequestConfig) { + return GameServerApiFp(this.configuration) + .gameServerControllerCreate(gameServerCreateDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Execute a raw command on a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` + * @summary Execute command + * @param {string} id + * @param {CommandExecuteInputDTO} [commandExecuteInputDTO] CommandExecuteInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof GameServerApi + */ + public gameServerControllerExecuteCommand( + id: string, + commandExecuteInputDTO?: CommandExecuteInputDTO, + options?: RawAxiosRequestConfig, + ) { + return GameServerApiFp(this.configuration) + .gameServerControllerExecuteCommand(id, commandExecuteInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Fetch status of an import from CSMM Required permissions: `MANAGE_GAMESERVERS` + * @summary Get import + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof GameServerApi + */ + public gameServerControllerGetImport(id: string, options?: RawAxiosRequestConfig) { + return GameServerApiFp(this.configuration) + .gameServerControllerGetImport(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Fetch a gameserver by id + * @summary Get one + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof GameServerApi + */ + public gameServerControllerGetOne(id: string, options?: RawAxiosRequestConfig) { + return GameServerApiFp(this.configuration) + .gameServerControllerGetOne(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Fetch a list of players on a gameserver. Requires gameserver to be online and reachable. Required permissions: `READ_PLAYERS` + * @summary Get players + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof GameServerApi + */ + public gameServerControllerGetPlayers(id: string, options?: RawAxiosRequestConfig) { + return GameServerApiFp(this.configuration) + .gameServerControllerGetPlayers(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Fetch gameserver types (7dtd, Rust, ...) + * @summary Get types + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof GameServerApi + */ + public gameServerControllerGetTypes(options?: RawAxiosRequestConfig) { + return GameServerApiFp(this.configuration) + .gameServerControllerGetTypes(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Give an item to a player. Requires gameserver to be online and reachable. Depending on the underlying game implementation, it\'s possible that the item is dropped on the ground instead of placed directly in the player\'s inventory. Required permissions: `MANAGE_GAMESERVERS` + * @summary Give item + * @param {string} gameServerId + * @param {string} playerId + * @param {GiveItemInputDTO} [giveItemInputDTO] GiveItemInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof GameServerApi + */ + public gameServerControllerGiveItem( + gameServerId: string, + playerId: string, + giveItemInputDTO?: GiveItemInputDTO, + options?: RawAxiosRequestConfig, + ) { + return GameServerApiFp(this.configuration) + .gameServerControllerGiveItem(gameServerId, playerId, giveItemInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Import a gameserver from CSMM. Required permissions: `MANAGE_GAMESERVERS` + * @summary Import from csmm + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof GameServerApi + */ + public gameServerControllerImportFromCSMM(options?: RawAxiosRequestConfig) { + return GameServerApiFp(this.configuration) + .gameServerControllerImportFromCSMM(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Kick a player from a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` + * @summary Kick player + * @param {string} gameServerId + * @param {string} playerId + * @param {KickPlayerInputDTO} [kickPlayerInputDTO] KickPlayerInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof GameServerApi + */ + public gameServerControllerKickPlayer( + gameServerId: string, + playerId: string, + kickPlayerInputDTO?: KickPlayerInputDTO, + options?: RawAxiosRequestConfig, + ) { + return GameServerApiFp(this.configuration) + .gameServerControllerKickPlayer(gameServerId, playerId, kickPlayerInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * List bans for a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` + * @summary List bans + * @param {string} id + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + * @memberof GameServerApi + */ + public gameServerControllerListBans(id: string, options?: RawAxiosRequestConfig) { + return GameServerApiFp(this.configuration) + .gameServerControllerListBans(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Delete a gameserver Required permissions: `MANAGE_GAMESERVERS` + * @summary Remove + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof GameServerApi + */ + public gameServerControllerRemove(id: string, options?: RawAxiosRequestConfig) { + return GameServerApiFp(this.configuration) + .gameServerControllerRemove(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Fetch gameservers + * @summary Search + * @param {GameServerSearchInputDTO} [gameServerSearchInputDTO] GameServerSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof GameServerApi + */ + public gameServerControllerSearch( + gameServerSearchInputDTO?: GameServerSearchInputDTO, + options?: RawAxiosRequestConfig, + ) { + return GameServerApiFp(this.configuration) + .gameServerControllerSearch(gameServerSearchInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Send a message in gameserver chat. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` + * @summary Send message + * @param {string} id + * @param {MessageSendInputDTO} [messageSendInputDTO] MessageSendInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof GameServerApi + */ + public gameServerControllerSendMessage( + id: string, + messageSendInputDTO?: MessageSendInputDTO, + options?: RawAxiosRequestConfig, + ) { + return GameServerApiFp(this.configuration) + .gameServerControllerSendMessage(id, messageSendInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Shuts down the gameserver. This is a \'soft\' shutdown, meaning the gameserver will be stopped gracefully. If the gameserver is not reachable, this will have no effect. Note that most hosting providers will automatically restart the gameserver after a shutdown, which makes this operation act as a \'restart\' instead. Required permissions: `MANAGE_GAMESERVERS` + * @summary Shutdown + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof GameServerApi + */ + public gameServerControllerShutdown(id: string, options?: RawAxiosRequestConfig) { + return GameServerApiFp(this.configuration) + .gameServerControllerShutdown(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Teleport a player to a location. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` + * @summary Teleport player + * @param {string} gameServerId + * @param {string} playerId + * @param {TeleportPlayerInputDTO} [teleportPlayerInputDTO] TeleportPlayerInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof GameServerApi + */ + public gameServerControllerTeleportPlayer( + gameServerId: string, + playerId: string, + teleportPlayerInputDTO?: TeleportPlayerInputDTO, + options?: RawAxiosRequestConfig, + ) { + return GameServerApiFp(this.configuration) + .gameServerControllerTeleportPlayer(gameServerId, playerId, teleportPlayerInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Test if Takaro can connect to a gameserver. Will do a thorough check and report details. + * @summary Test reachability + * @param {GameServerTestReachabilityInputDTO} [gameServerTestReachabilityInputDTO] GameServerTestReachabilityInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof GameServerApi + */ + public gameServerControllerTestReachability( + gameServerTestReachabilityInputDTO?: GameServerTestReachabilityInputDTO, + options?: RawAxiosRequestConfig, + ) { + return GameServerApiFp(this.configuration) + .gameServerControllerTestReachability(gameServerTestReachabilityInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Test if Takaro can connect to a gameserver. Will do a thorough check and report details. + * @summary Test reachability for id + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof GameServerApi + */ + public gameServerControllerTestReachabilityForId(id: string, options?: RawAxiosRequestConfig) { + return GameServerApiFp(this.configuration) + .gameServerControllerTestReachabilityForId(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Unban a player from a gameserver. Requires gameserver to be online and reachable. Required permissions: `MANAGE_GAMESERVERS` + * @summary Unban player + * @param {string} gameServerId + * @param {string} playerId + * @param {*} [options] Override http request option. + * @deprecated + * @throws {RequiredError} + * @memberof GameServerApi + */ + public gameServerControllerUnbanPlayer(gameServerId: string, playerId: string, options?: RawAxiosRequestConfig) { + return GameServerApiFp(this.configuration) + .gameServerControllerUnbanPlayer(gameServerId, playerId, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Update a gameserver Required permissions: `MANAGE_GAMESERVERS` + * @summary Update + * @param {string} id + * @param {GameServerUpdateDTO} [gameServerUpdateDTO] GameServerUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof GameServerApi + */ + public gameServerControllerUpdate( + id: string, + gameServerUpdateDTO?: GameServerUpdateDTO, + options?: RawAxiosRequestConfig, + ) { + return GameServerApiFp(this.configuration) + .gameServerControllerUpdate(id, gameServerUpdateDTO, options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * HookApi - axios parameter creator + * @export + */ +export const HookApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Required permissions: `MANAGE_MODULES` + * @summary Create + * @param {HookCreateDTO} [hookCreateDTO] HookCreateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + hookControllerCreate: async ( + hookCreateDTO?: HookCreateDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/hook`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(hookCreateDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `READ_MODULES` + * @summary Get executions + * @param {string} id + * @param {any} [success] + * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + hookControllerGetExecutions: async ( + id: string, + success?: any, + eventSearchInputDTO?: EventSearchInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('hookControllerGetExecutions', 'id', id); + const localVarPath = `/hook/{id}/executions`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + if (success !== undefined) { + for (const [key, value] of Object.entries(success)) { + localVarQueryParameter[key] = value; + } + } + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(eventSearchInputDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `READ_MODULES` + * @summary Get one + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + hookControllerGetOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('hookControllerGetOne', 'id', id); + const localVarPath = `/hook/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `MANAGE_MODULES` + * @summary Remove + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + hookControllerRemove: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('hookControllerRemove', 'id', id); + const localVarPath = `/hook/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `READ_MODULES` + * @summary Search + * @param {HookSearchInputDTO} [hookSearchInputDTO] HookSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + hookControllerSearch: async ( + hookSearchInputDTO?: HookSearchInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/hook/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(hookSearchInputDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Trigger a hook. This is used for testing purposes, the event will not actually be created but the hook-logic will be executed. You can pass any data you want, but it must validate against the corresponding event metadata. Eg to trigger the `chat-message` event, you must pass an object with a `message` property Required permissions: `MANAGE_MODULES` + * @summary Trigger + * @param {HookTriggerDTO} [hookTriggerDTO] HookTriggerDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + hookControllerTrigger: async ( + hookTriggerDTO?: HookTriggerDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/hook/trigger`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(hookTriggerDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `MANAGE_MODULES` + * @summary Update + * @param {string} id + * @param {HookUpdateDTO} [hookUpdateDTO] HookUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + hookControllerUpdate: async ( + id: string, + hookUpdateDTO?: HookUpdateDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('hookControllerUpdate', 'id', id); + const localVarPath = `/hook/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(hookUpdateDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * HookApi - functional programming interface + * @export + */ +export const HookApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = HookApiAxiosParamCreator(configuration); + return { + /** + * Required permissions: `MANAGE_MODULES` + * @summary Create + * @param {HookCreateDTO} [hookCreateDTO] HookCreateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async hookControllerCreate( + hookCreateDTO?: HookCreateDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.hookControllerCreate(hookCreateDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['HookApi.hookControllerCreate']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `READ_MODULES` + * @summary Get executions + * @param {string} id + * @param {any} [success] + * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async hookControllerGetExecutions( + id: string, + success?: any, + eventSearchInputDTO?: EventSearchInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.hookControllerGetExecutions( + id, + success, + eventSearchInputDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['HookApi.hookControllerGetExecutions']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `READ_MODULES` + * @summary Get one + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async hookControllerGetOne( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.hookControllerGetOne(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['HookApi.hookControllerGetOne']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `MANAGE_MODULES` + * @summary Remove + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async hookControllerRemove( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.hookControllerRemove(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['HookApi.hookControllerRemove']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `READ_MODULES` + * @summary Search + * @param {HookSearchInputDTO} [hookSearchInputDTO] HookSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async hookControllerSearch( + hookSearchInputDTO?: HookSearchInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.hookControllerSearch(hookSearchInputDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['HookApi.hookControllerSearch']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Trigger a hook. This is used for testing purposes, the event will not actually be created but the hook-logic will be executed. You can pass any data you want, but it must validate against the corresponding event metadata. Eg to trigger the `chat-message` event, you must pass an object with a `message` property Required permissions: `MANAGE_MODULES` + * @summary Trigger + * @param {HookTriggerDTO} [hookTriggerDTO] HookTriggerDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async hookControllerTrigger( + hookTriggerDTO?: HookTriggerDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.hookControllerTrigger(hookTriggerDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['HookApi.hookControllerTrigger']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `MANAGE_MODULES` + * @summary Update + * @param {string} id + * @param {HookUpdateDTO} [hookUpdateDTO] HookUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async hookControllerUpdate( + id: string, + hookUpdateDTO?: HookUpdateDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.hookControllerUpdate(id, hookUpdateDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['HookApi.hookControllerUpdate']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + }; +}; + +/** + * HookApi - factory interface + * @export + */ +export const HookApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = HookApiFp(configuration); + return { + /** + * Required permissions: `MANAGE_MODULES` + * @summary Create + * @param {HookCreateDTO} [hookCreateDTO] HookCreateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + hookControllerCreate(hookCreateDTO?: HookCreateDTO, options?: any): AxiosPromise { + return localVarFp.hookControllerCreate(hookCreateDTO, options).then((request) => request(axios, basePath)); + }, + /** + * Required permissions: `READ_MODULES` + * @summary Get executions + * @param {string} id + * @param {any} [success] + * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + hookControllerGetExecutions( + id: string, + success?: any, + eventSearchInputDTO?: EventSearchInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .hookControllerGetExecutions(id, success, eventSearchInputDTO, options) + .then((request) => request(axios, basePath)); + }, + /** + * Required permissions: `READ_MODULES` + * @summary Get one + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + hookControllerGetOne(id: string, options?: any): AxiosPromise { + return localVarFp.hookControllerGetOne(id, options).then((request) => request(axios, basePath)); + }, + /** + * Required permissions: `MANAGE_MODULES` + * @summary Remove + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + hookControllerRemove(id: string, options?: any): AxiosPromise { + return localVarFp.hookControllerRemove(id, options).then((request) => request(axios, basePath)); + }, + /** + * Required permissions: `READ_MODULES` + * @summary Search + * @param {HookSearchInputDTO} [hookSearchInputDTO] HookSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + hookControllerSearch(hookSearchInputDTO?: HookSearchInputDTO, options?: any): AxiosPromise { + return localVarFp.hookControllerSearch(hookSearchInputDTO, options).then((request) => request(axios, basePath)); + }, + /** + * Trigger a hook. This is used for testing purposes, the event will not actually be created but the hook-logic will be executed. You can pass any data you want, but it must validate against the corresponding event metadata. Eg to trigger the `chat-message` event, you must pass an object with a `message` property Required permissions: `MANAGE_MODULES` + * @summary Trigger + * @param {HookTriggerDTO} [hookTriggerDTO] HookTriggerDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + hookControllerTrigger(hookTriggerDTO?: HookTriggerDTO, options?: any): AxiosPromise { + return localVarFp.hookControllerTrigger(hookTriggerDTO, options).then((request) => request(axios, basePath)); + }, + /** + * Required permissions: `MANAGE_MODULES` + * @summary Update + * @param {string} id + * @param {HookUpdateDTO} [hookUpdateDTO] HookUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + hookControllerUpdate(id: string, hookUpdateDTO?: HookUpdateDTO, options?: any): AxiosPromise { + return localVarFp.hookControllerUpdate(id, hookUpdateDTO, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * HookApi - object-oriented interface + * @export + * @class HookApi + * @extends {BaseAPI} + */ +export class HookApi extends BaseAPI { + /** + * Required permissions: `MANAGE_MODULES` + * @summary Create + * @param {HookCreateDTO} [hookCreateDTO] HookCreateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof HookApi + */ + public hookControllerCreate(hookCreateDTO?: HookCreateDTO, options?: RawAxiosRequestConfig) { + return HookApiFp(this.configuration) + .hookControllerCreate(hookCreateDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `READ_MODULES` + * @summary Get executions + * @param {string} id + * @param {any} [success] + * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof HookApi + */ + public hookControllerGetExecutions( + id: string, + success?: any, + eventSearchInputDTO?: EventSearchInputDTO, + options?: RawAxiosRequestConfig, + ) { + return HookApiFp(this.configuration) + .hookControllerGetExecutions(id, success, eventSearchInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `READ_MODULES` + * @summary Get one + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof HookApi + */ + public hookControllerGetOne(id: string, options?: RawAxiosRequestConfig) { + return HookApiFp(this.configuration) + .hookControllerGetOne(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `MANAGE_MODULES` + * @summary Remove + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof HookApi + */ + public hookControllerRemove(id: string, options?: RawAxiosRequestConfig) { + return HookApiFp(this.configuration) + .hookControllerRemove(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `READ_MODULES` + * @summary Search + * @param {HookSearchInputDTO} [hookSearchInputDTO] HookSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof HookApi + */ + public hookControllerSearch(hookSearchInputDTO?: HookSearchInputDTO, options?: RawAxiosRequestConfig) { + return HookApiFp(this.configuration) + .hookControllerSearch(hookSearchInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Trigger a hook. This is used for testing purposes, the event will not actually be created but the hook-logic will be executed. You can pass any data you want, but it must validate against the corresponding event metadata. Eg to trigger the `chat-message` event, you must pass an object with a `message` property Required permissions: `MANAGE_MODULES` + * @summary Trigger + * @param {HookTriggerDTO} [hookTriggerDTO] HookTriggerDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof HookApi + */ + public hookControllerTrigger(hookTriggerDTO?: HookTriggerDTO, options?: RawAxiosRequestConfig) { + return HookApiFp(this.configuration) + .hookControllerTrigger(hookTriggerDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `MANAGE_MODULES` + * @summary Update + * @param {string} id + * @param {HookUpdateDTO} [hookUpdateDTO] HookUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof HookApi + */ + public hookControllerUpdate(id: string, hookUpdateDTO?: HookUpdateDTO, options?: RawAxiosRequestConfig) { + return HookApiFp(this.configuration) + .hookControllerUpdate(id, hookUpdateDTO, options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * ItemApi - axios parameter creator + * @export + */ +export const ItemApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Required permissions: `READ_ITEMS` + * @summary Find one + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + itemControllerFindOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('itemControllerFindOne', 'id', id); + const localVarPath = `/items/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `READ_ITEMS` + * @summary Search + * @param {ItemSearchInputDTO} [itemSearchInputDTO] ItemSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + itemControllerSearch: async ( + itemSearchInputDTO?: ItemSearchInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/items/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(itemSearchInputDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * ItemApi - functional programming interface + * @export + */ +export const ItemApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = ItemApiAxiosParamCreator(configuration); + return { + /** + * Required permissions: `READ_ITEMS` + * @summary Find one + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async itemControllerFindOne( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.itemControllerFindOne(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ItemApi.itemControllerFindOne']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `READ_ITEMS` + * @summary Search + * @param {ItemSearchInputDTO} [itemSearchInputDTO] ItemSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async itemControllerSearch( + itemSearchInputDTO?: ItemSearchInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.itemControllerSearch(itemSearchInputDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ItemApi.itemControllerSearch']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + }; +}; + +/** + * ItemApi - factory interface + * @export + */ +export const ItemApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ItemApiFp(configuration); + return { + /** + * Required permissions: `READ_ITEMS` + * @summary Find one + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + itemControllerFindOne(id: string, options?: any): AxiosPromise { + return localVarFp.itemControllerFindOne(id, options).then((request) => request(axios, basePath)); + }, + /** + * Required permissions: `READ_ITEMS` + * @summary Search + * @param {ItemSearchInputDTO} [itemSearchInputDTO] ItemSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + itemControllerSearch(itemSearchInputDTO?: ItemSearchInputDTO, options?: any): AxiosPromise { + return localVarFp.itemControllerSearch(itemSearchInputDTO, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * ItemApi - object-oriented interface + * @export + * @class ItemApi + * @extends {BaseAPI} + */ +export class ItemApi extends BaseAPI { + /** + * Required permissions: `READ_ITEMS` + * @summary Find one + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ItemApi + */ + public itemControllerFindOne(id: string, options?: RawAxiosRequestConfig) { + return ItemApiFp(this.configuration) + .itemControllerFindOne(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `READ_ITEMS` + * @summary Search + * @param {ItemSearchInputDTO} [itemSearchInputDTO] ItemSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ItemApi + */ + public itemControllerSearch(itemSearchInputDTO?: ItemSearchInputDTO, options?: RawAxiosRequestConfig) { + return ItemApiFp(this.configuration) + .itemControllerSearch(itemSearchInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * MetaApi - axios parameter creator + * @export + */ +export const MetaApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * + * @summary Get health + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + metaGetHealth: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/healthz`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get metrics + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + metaGetMetrics: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/metrics`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get open api + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + metaGetOpenApi: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/openapi.json`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get open api html + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + metaGetOpenApiHtml: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/api.html`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get readiness + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + metaGetReadiness: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/readyz`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * MetaApi - functional programming interface + * @export + */ +export const MetaApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = MetaApiAxiosParamCreator(configuration); + return { + /** + * + * @summary Get health + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async metaGetHealth( + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetHealth(options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['MetaApi.metaGetHealth']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * + * @summary Get metrics + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async metaGetMetrics( + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetMetrics(options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['MetaApi.metaGetMetrics']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * + * @summary Get open api + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async metaGetOpenApi( + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetOpenApi(options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['MetaApi.metaGetOpenApi']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * + * @summary Get open api html + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async metaGetOpenApiHtml( + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetOpenApiHtml(options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['MetaApi.metaGetOpenApiHtml']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * + * @summary Get readiness + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async metaGetReadiness( + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetReadiness(options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['MetaApi.metaGetReadiness']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + }; +}; + +/** + * MetaApi - factory interface + * @export + */ +export const MetaApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = MetaApiFp(configuration); + return { + /** + * + * @summary Get health + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + metaGetHealth(options?: any): AxiosPromise { + return localVarFp.metaGetHealth(options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get metrics + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + metaGetMetrics(options?: any): AxiosPromise { + return localVarFp.metaGetMetrics(options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get open api + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + metaGetOpenApi(options?: any): AxiosPromise { + return localVarFp.metaGetOpenApi(options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get open api html + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + metaGetOpenApiHtml(options?: any): AxiosPromise { + return localVarFp.metaGetOpenApiHtml(options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get readiness + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + metaGetReadiness(options?: any): AxiosPromise { + return localVarFp.metaGetReadiness(options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * MetaApi - object-oriented interface + * @export + * @class MetaApi + * @extends {BaseAPI} + */ +export class MetaApi extends BaseAPI { + /** + * + * @summary Get health + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MetaApi + */ + public metaGetHealth(options?: RawAxiosRequestConfig) { + return MetaApiFp(this.configuration) + .metaGetHealth(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get metrics + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MetaApi + */ + public metaGetMetrics(options?: RawAxiosRequestConfig) { + return MetaApiFp(this.configuration) + .metaGetMetrics(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get open api + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MetaApi + */ + public metaGetOpenApi(options?: RawAxiosRequestConfig) { + return MetaApiFp(this.configuration) + .metaGetOpenApi(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get open api html + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MetaApi + */ + public metaGetOpenApiHtml(options?: RawAxiosRequestConfig) { + return MetaApiFp(this.configuration) + .metaGetOpenApiHtml(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get readiness + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof MetaApi + */ + public metaGetReadiness(options?: RawAxiosRequestConfig) { + return MetaApiFp(this.configuration) + .metaGetReadiness(options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * ModuleApi - axios parameter creator + * @export + */ +export const ModuleApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create a new module Required permissions: `MANAGE_MODULES` + * @summary Create a new module + * @param {ModuleCreateAPIDTO} [moduleCreateAPIDTO] ModuleCreateAPIDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + moduleControllerCreate: async ( + moduleCreateAPIDTO?: ModuleCreateAPIDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/module`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(moduleCreateAPIDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `READ_MODULES` + * @summary Get one module + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + moduleControllerGetOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('moduleControllerGetOne', 'id', id); + const localVarPath = `/module/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Removes a module, including all versions and config Required permissions: `MANAGE_MODULES` + * @summary Remove a module + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + moduleControllerRemove: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('moduleControllerRemove', 'id', id); + const localVarPath = `/module/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `READ_MODULES` + * @summary Search modules + * @param {ModuleSearchInputDTO} [moduleSearchInputDTO] ModuleSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + moduleControllerSearch: async ( + moduleSearchInputDTO?: ModuleSearchInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/module/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(moduleSearchInputDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `MANAGE_MODULES` + * @summary Update + * @param {string} id + * @param {ModuleUpdateDTO} [moduleUpdateDTO] ModuleUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + moduleControllerUpdate: async ( + id: string, + moduleUpdateDTO?: ModuleUpdateDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('moduleControllerUpdate', 'id', id); + const localVarPath = `/module/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(moduleUpdateDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `READ_MODULES` + * @summary Search module installations + * @param {ModuleInstallationSearchInputDTO} [moduleInstallationSearchInputDTO] ModuleInstallationSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + moduleInstallationsControllerGetInstalledModules: async ( + moduleInstallationSearchInputDTO?: ModuleInstallationSearchInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/module/installation/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded( + moduleInstallationSearchInputDTO, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `READ_MODULES` + * @summary Get one installation + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + moduleInstallationsControllerGetModuleInstallation: async ( + id: string, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('moduleInstallationsControllerGetModuleInstallation', 'id', id); + const localVarPath = `/module/installation/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Install a module on a gameserver. You can have multiple installations of the same module on the same gameserver. Required permissions: `MANAGE_GAMESERVERS` + * @summary Install module + * @param {InstallModuleDTO} [installModuleDTO] InstallModuleDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + moduleInstallationsControllerInstallModule: async ( + installModuleDTO?: InstallModuleDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/module/installation/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(installModuleDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Uninstall a module from a gameserver. This will not delete the module from the database. Required permissions: `MANAGE_GAMESERVERS` + * @summary Uninstall module + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + moduleInstallationsControllerUninstallModule: async ( + id: string, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('moduleInstallationsControllerUninstallModule', 'id', id); + const localVarPath = `/module/installation/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Exports a module to a format that can be imported into another Takaro instance Required permissions: `READ_MODULES` + * @summary Export a module version + * @param {ModuleExportInputDTO} [moduleExportInputDTO] ModuleExportInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + moduleVersionControllerExport: async ( + moduleExportInputDTO?: ModuleExportInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/module/version/export`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(moduleExportInputDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `READ_MODULES` + * @summary Get one version + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + moduleVersionControllerGetModuleVersion: async ( + id: string, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('moduleVersionControllerGetModuleVersion', 'id', id); + const localVarPath = `/module/version/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Imports a module from a format that was exported from another Takaro instance Required permissions: `MANAGE_MODULES` + * @summary Import a module version + * @param {BuiltinModule} [builtinModule] BuiltinModule + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + moduleVersionControllerImport: async ( + builtinModule?: BuiltinModule, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/module/version/import`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(builtinModule, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Removes a version of a module, including all config that is linked to this version Required permissions: `MANAGE_MODULES` + * @summary Remove a version + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + moduleVersionControllerRemoveVersion: async ( + id: string, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('moduleVersionControllerRemoveVersion', 'id', id); + const localVarPath = `/module/version/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `READ_MODULES` + * @summary Search module versions + * @param {ModuleVersionSearchInputDTO} [moduleVersionSearchInputDTO] ModuleVersionSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + moduleVersionControllerSearchVersions: async ( + moduleVersionSearchInputDTO?: ModuleVersionSearchInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/module/version/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded( + moduleVersionSearchInputDTO, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Creates a new version of a module, copying all config (commands,hooks,cronjobs,...) from the \"latest\" version into a new, immutable version Required permissions: `MANAGE_MODULES` + * @summary Tag a new version + * @param {ModuleVersionCreateAPIDTO} [moduleVersionCreateAPIDTO] ModuleVersionCreateAPIDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + moduleVersionControllerTagVersion: async ( + moduleVersionCreateAPIDTO?: ModuleVersionCreateAPIDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/module/version/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded( + moduleVersionCreateAPIDTO, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update a version of a module, note that you can only update the \"latest\" version. Tagged versions are immutable Required permissions: `MANAGE_MODULES` + * @summary Update a version + * @param {string} id + * @param {ModuleVersionUpdateDTO} [moduleVersionUpdateDTO] ModuleVersionUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + moduleVersionControllerUpdateVersion: async ( + id: string, + moduleVersionUpdateDTO?: ModuleVersionUpdateDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('moduleVersionControllerUpdateVersion', 'id', id); + const localVarPath = `/module/version/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded( + moduleVersionUpdateDTO, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * ModuleApi - functional programming interface + * @export + */ +export const ModuleApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = ModuleApiAxiosParamCreator(configuration); + return { + /** + * Create a new module Required permissions: `MANAGE_MODULES` + * @summary Create a new module + * @param {ModuleCreateAPIDTO} [moduleCreateAPIDTO] ModuleCreateAPIDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async moduleControllerCreate( + moduleCreateAPIDTO?: ModuleCreateAPIDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.moduleControllerCreate(moduleCreateAPIDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ModuleApi.moduleControllerCreate']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `READ_MODULES` + * @summary Get one module + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async moduleControllerGetOne( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.moduleControllerGetOne(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ModuleApi.moduleControllerGetOne']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Removes a module, including all versions and config Required permissions: `MANAGE_MODULES` + * @summary Remove a module + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async moduleControllerRemove( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.moduleControllerRemove(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ModuleApi.moduleControllerRemove']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `READ_MODULES` + * @summary Search modules + * @param {ModuleSearchInputDTO} [moduleSearchInputDTO] ModuleSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async moduleControllerSearch( + moduleSearchInputDTO?: ModuleSearchInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.moduleControllerSearch(moduleSearchInputDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ModuleApi.moduleControllerSearch']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `MANAGE_MODULES` + * @summary Update + * @param {string} id + * @param {ModuleUpdateDTO} [moduleUpdateDTO] ModuleUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async moduleControllerUpdate( + id: string, + moduleUpdateDTO?: ModuleUpdateDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.moduleControllerUpdate(id, moduleUpdateDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ModuleApi.moduleControllerUpdate']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `READ_MODULES` + * @summary Search module installations + * @param {ModuleInstallationSearchInputDTO} [moduleInstallationSearchInputDTO] ModuleInstallationSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async moduleInstallationsControllerGetInstalledModules( + moduleInstallationSearchInputDTO?: ModuleInstallationSearchInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.moduleInstallationsControllerGetInstalledModules( + moduleInstallationSearchInputDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = + operationServerMap['ModuleApi.moduleInstallationsControllerGetInstalledModules']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `READ_MODULES` + * @summary Get one installation + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async moduleInstallationsControllerGetModuleInstallation( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.moduleInstallationsControllerGetModuleInstallation( + id, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = + operationServerMap['ModuleApi.moduleInstallationsControllerGetModuleInstallation']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Install a module on a gameserver. You can have multiple installations of the same module on the same gameserver. Required permissions: `MANAGE_GAMESERVERS` + * @summary Install module + * @param {InstallModuleDTO} [installModuleDTO] InstallModuleDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async moduleInstallationsControllerInstallModule( + installModuleDTO?: InstallModuleDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.moduleInstallationsControllerInstallModule( + installModuleDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = + operationServerMap['ModuleApi.moduleInstallationsControllerInstallModule']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Uninstall a module from a gameserver. This will not delete the module from the database. Required permissions: `MANAGE_GAMESERVERS` + * @summary Uninstall module + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async moduleInstallationsControllerUninstallModule( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.moduleInstallationsControllerUninstallModule( + id, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = + operationServerMap['ModuleApi.moduleInstallationsControllerUninstallModule']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Exports a module to a format that can be imported into another Takaro instance Required permissions: `READ_MODULES` + * @summary Export a module version + * @param {ModuleExportInputDTO} [moduleExportInputDTO] ModuleExportInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async moduleVersionControllerExport( + moduleExportInputDTO?: ModuleExportInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.moduleVersionControllerExport( + moduleExportInputDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ModuleApi.moduleVersionControllerExport']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `READ_MODULES` + * @summary Get one version + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async moduleVersionControllerGetModuleVersion( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.moduleVersionControllerGetModuleVersion(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ModuleApi.moduleVersionControllerGetModuleVersion']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Imports a module from a format that was exported from another Takaro instance Required permissions: `MANAGE_MODULES` + * @summary Import a module version + * @param {BuiltinModule} [builtinModule] BuiltinModule + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async moduleVersionControllerImport( + builtinModule?: BuiltinModule, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.moduleVersionControllerImport(builtinModule, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ModuleApi.moduleVersionControllerImport']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Removes a version of a module, including all config that is linked to this version Required permissions: `MANAGE_MODULES` + * @summary Remove a version + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async moduleVersionControllerRemoveVersion( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.moduleVersionControllerRemoveVersion(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ModuleApi.moduleVersionControllerRemoveVersion']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `READ_MODULES` + * @summary Search module versions + * @param {ModuleVersionSearchInputDTO} [moduleVersionSearchInputDTO] ModuleVersionSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async moduleVersionControllerSearchVersions( + moduleVersionSearchInputDTO?: ModuleVersionSearchInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.moduleVersionControllerSearchVersions( + moduleVersionSearchInputDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ModuleApi.moduleVersionControllerSearchVersions']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Creates a new version of a module, copying all config (commands,hooks,cronjobs,...) from the \"latest\" version into a new, immutable version Required permissions: `MANAGE_MODULES` + * @summary Tag a new version + * @param {ModuleVersionCreateAPIDTO} [moduleVersionCreateAPIDTO] ModuleVersionCreateAPIDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async moduleVersionControllerTagVersion( + moduleVersionCreateAPIDTO?: ModuleVersionCreateAPIDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.moduleVersionControllerTagVersion( + moduleVersionCreateAPIDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ModuleApi.moduleVersionControllerTagVersion']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Update a version of a module, note that you can only update the \"latest\" version. Tagged versions are immutable Required permissions: `MANAGE_MODULES` + * @summary Update a version + * @param {string} id + * @param {ModuleVersionUpdateDTO} [moduleVersionUpdateDTO] ModuleVersionUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async moduleVersionControllerUpdateVersion( + id: string, + moduleVersionUpdateDTO?: ModuleVersionUpdateDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.moduleVersionControllerUpdateVersion( + id, + moduleVersionUpdateDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ModuleApi.moduleVersionControllerUpdateVersion']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + }; +}; + +/** + * ModuleApi - factory interface + * @export + */ +export const ModuleApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ModuleApiFp(configuration); + return { + /** + * Create a new module Required permissions: `MANAGE_MODULES` + * @summary Create a new module + * @param {ModuleCreateAPIDTO} [moduleCreateAPIDTO] ModuleCreateAPIDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + moduleControllerCreate(moduleCreateAPIDTO?: ModuleCreateAPIDTO, options?: any): AxiosPromise { + return localVarFp.moduleControllerCreate(moduleCreateAPIDTO, options).then((request) => request(axios, basePath)); + }, + /** + * Required permissions: `READ_MODULES` + * @summary Get one module + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + moduleControllerGetOne(id: string, options?: any): AxiosPromise { + return localVarFp.moduleControllerGetOne(id, options).then((request) => request(axios, basePath)); + }, + /** + * Removes a module, including all versions and config Required permissions: `MANAGE_MODULES` + * @summary Remove a module + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + moduleControllerRemove(id: string, options?: any): AxiosPromise { + return localVarFp.moduleControllerRemove(id, options).then((request) => request(axios, basePath)); + }, + /** + * Required permissions: `READ_MODULES` + * @summary Search modules + * @param {ModuleSearchInputDTO} [moduleSearchInputDTO] ModuleSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + moduleControllerSearch( + moduleSearchInputDTO?: ModuleSearchInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .moduleControllerSearch(moduleSearchInputDTO, options) + .then((request) => request(axios, basePath)); + }, + /** + * Required permissions: `MANAGE_MODULES` + * @summary Update + * @param {string} id + * @param {ModuleUpdateDTO} [moduleUpdateDTO] ModuleUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + moduleControllerUpdate( + id: string, + moduleUpdateDTO?: ModuleUpdateDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .moduleControllerUpdate(id, moduleUpdateDTO, options) + .then((request) => request(axios, basePath)); + }, + /** + * Required permissions: `READ_MODULES` + * @summary Search module installations + * @param {ModuleInstallationSearchInputDTO} [moduleInstallationSearchInputDTO] ModuleInstallationSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + moduleInstallationsControllerGetInstalledModules( + moduleInstallationSearchInputDTO?: ModuleInstallationSearchInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .moduleInstallationsControllerGetInstalledModules(moduleInstallationSearchInputDTO, options) + .then((request) => request(axios, basePath)); + }, + /** + * Required permissions: `READ_MODULES` + * @summary Get one installation + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + moduleInstallationsControllerGetModuleInstallation( + id: string, + options?: any, + ): AxiosPromise { + return localVarFp + .moduleInstallationsControllerGetModuleInstallation(id, options) + .then((request) => request(axios, basePath)); + }, + /** + * Install a module on a gameserver. You can have multiple installations of the same module on the same gameserver. Required permissions: `MANAGE_GAMESERVERS` + * @summary Install module + * @param {InstallModuleDTO} [installModuleDTO] InstallModuleDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + moduleInstallationsControllerInstallModule( + installModuleDTO?: InstallModuleDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .moduleInstallationsControllerInstallModule(installModuleDTO, options) + .then((request) => request(axios, basePath)); + }, + /** + * Uninstall a module from a gameserver. This will not delete the module from the database. Required permissions: `MANAGE_GAMESERVERS` + * @summary Uninstall module + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + moduleInstallationsControllerUninstallModule( + id: string, + options?: any, + ): AxiosPromise { + return localVarFp + .moduleInstallationsControllerUninstallModule(id, options) + .then((request) => request(axios, basePath)); + }, + /** + * Exports a module to a format that can be imported into another Takaro instance Required permissions: `READ_MODULES` + * @summary Export a module version + * @param {ModuleExportInputDTO} [moduleExportInputDTO] ModuleExportInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + moduleVersionControllerExport( + moduleExportInputDTO?: ModuleExportInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .moduleVersionControllerExport(moduleExportInputDTO, options) + .then((request) => request(axios, basePath)); + }, + /** + * Required permissions: `READ_MODULES` + * @summary Get one version + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + moduleVersionControllerGetModuleVersion(id: string, options?: any): AxiosPromise { + return localVarFp + .moduleVersionControllerGetModuleVersion(id, options) + .then((request) => request(axios, basePath)); + }, + /** + * Imports a module from a format that was exported from another Takaro instance Required permissions: `MANAGE_MODULES` + * @summary Import a module version + * @param {BuiltinModule} [builtinModule] BuiltinModule + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + moduleVersionControllerImport(builtinModule?: BuiltinModule, options?: any): AxiosPromise { + return localVarFp + .moduleVersionControllerImport(builtinModule, options) + .then((request) => request(axios, basePath)); + }, + /** + * Removes a version of a module, including all config that is linked to this version Required permissions: `MANAGE_MODULES` + * @summary Remove a version + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + moduleVersionControllerRemoveVersion(id: string, options?: any): AxiosPromise { + return localVarFp.moduleVersionControllerRemoveVersion(id, options).then((request) => request(axios, basePath)); + }, + /** + * Required permissions: `READ_MODULES` + * @summary Search module versions + * @param {ModuleVersionSearchInputDTO} [moduleVersionSearchInputDTO] ModuleVersionSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + moduleVersionControllerSearchVersions( + moduleVersionSearchInputDTO?: ModuleVersionSearchInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .moduleVersionControllerSearchVersions(moduleVersionSearchInputDTO, options) + .then((request) => request(axios, basePath)); + }, + /** + * Creates a new version of a module, copying all config (commands,hooks,cronjobs,...) from the \"latest\" version into a new, immutable version Required permissions: `MANAGE_MODULES` + * @summary Tag a new version + * @param {ModuleVersionCreateAPIDTO} [moduleVersionCreateAPIDTO] ModuleVersionCreateAPIDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + moduleVersionControllerTagVersion( + moduleVersionCreateAPIDTO?: ModuleVersionCreateAPIDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .moduleVersionControllerTagVersion(moduleVersionCreateAPIDTO, options) + .then((request) => request(axios, basePath)); + }, + /** + * Update a version of a module, note that you can only update the \"latest\" version. Tagged versions are immutable Required permissions: `MANAGE_MODULES` + * @summary Update a version + * @param {string} id + * @param {ModuleVersionUpdateDTO} [moduleVersionUpdateDTO] ModuleVersionUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + moduleVersionControllerUpdateVersion( + id: string, + moduleVersionUpdateDTO?: ModuleVersionUpdateDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .moduleVersionControllerUpdateVersion(id, moduleVersionUpdateDTO, options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * ModuleApi - object-oriented interface + * @export + * @class ModuleApi + * @extends {BaseAPI} + */ +export class ModuleApi extends BaseAPI { + /** + * Create a new module Required permissions: `MANAGE_MODULES` + * @summary Create a new module + * @param {ModuleCreateAPIDTO} [moduleCreateAPIDTO] ModuleCreateAPIDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ModuleApi + */ + public moduleControllerCreate(moduleCreateAPIDTO?: ModuleCreateAPIDTO, options?: RawAxiosRequestConfig) { + return ModuleApiFp(this.configuration) + .moduleControllerCreate(moduleCreateAPIDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `READ_MODULES` + * @summary Get one module + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ModuleApi + */ + public moduleControllerGetOne(id: string, options?: RawAxiosRequestConfig) { + return ModuleApiFp(this.configuration) + .moduleControllerGetOne(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Removes a module, including all versions and config Required permissions: `MANAGE_MODULES` + * @summary Remove a module + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ModuleApi + */ + public moduleControllerRemove(id: string, options?: RawAxiosRequestConfig) { + return ModuleApiFp(this.configuration) + .moduleControllerRemove(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `READ_MODULES` + * @summary Search modules + * @param {ModuleSearchInputDTO} [moduleSearchInputDTO] ModuleSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ModuleApi + */ + public moduleControllerSearch(moduleSearchInputDTO?: ModuleSearchInputDTO, options?: RawAxiosRequestConfig) { + return ModuleApiFp(this.configuration) + .moduleControllerSearch(moduleSearchInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `MANAGE_MODULES` + * @summary Update + * @param {string} id + * @param {ModuleUpdateDTO} [moduleUpdateDTO] ModuleUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ModuleApi + */ + public moduleControllerUpdate(id: string, moduleUpdateDTO?: ModuleUpdateDTO, options?: RawAxiosRequestConfig) { + return ModuleApiFp(this.configuration) + .moduleControllerUpdate(id, moduleUpdateDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `READ_MODULES` + * @summary Search module installations + * @param {ModuleInstallationSearchInputDTO} [moduleInstallationSearchInputDTO] ModuleInstallationSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ModuleApi + */ + public moduleInstallationsControllerGetInstalledModules( + moduleInstallationSearchInputDTO?: ModuleInstallationSearchInputDTO, + options?: RawAxiosRequestConfig, + ) { + return ModuleApiFp(this.configuration) + .moduleInstallationsControllerGetInstalledModules(moduleInstallationSearchInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `READ_MODULES` + * @summary Get one installation + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ModuleApi + */ + public moduleInstallationsControllerGetModuleInstallation(id: string, options?: RawAxiosRequestConfig) { + return ModuleApiFp(this.configuration) + .moduleInstallationsControllerGetModuleInstallation(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Install a module on a gameserver. You can have multiple installations of the same module on the same gameserver. Required permissions: `MANAGE_GAMESERVERS` + * @summary Install module + * @param {InstallModuleDTO} [installModuleDTO] InstallModuleDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ModuleApi + */ + public moduleInstallationsControllerInstallModule( + installModuleDTO?: InstallModuleDTO, + options?: RawAxiosRequestConfig, + ) { + return ModuleApiFp(this.configuration) + .moduleInstallationsControllerInstallModule(installModuleDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Uninstall a module from a gameserver. This will not delete the module from the database. Required permissions: `MANAGE_GAMESERVERS` + * @summary Uninstall module + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ModuleApi + */ + public moduleInstallationsControllerUninstallModule(id: string, options?: RawAxiosRequestConfig) { + return ModuleApiFp(this.configuration) + .moduleInstallationsControllerUninstallModule(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Exports a module to a format that can be imported into another Takaro instance Required permissions: `READ_MODULES` + * @summary Export a module version + * @param {ModuleExportInputDTO} [moduleExportInputDTO] ModuleExportInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ModuleApi + */ + public moduleVersionControllerExport(moduleExportInputDTO?: ModuleExportInputDTO, options?: RawAxiosRequestConfig) { + return ModuleApiFp(this.configuration) + .moduleVersionControllerExport(moduleExportInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `READ_MODULES` + * @summary Get one version + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ModuleApi + */ + public moduleVersionControllerGetModuleVersion(id: string, options?: RawAxiosRequestConfig) { + return ModuleApiFp(this.configuration) + .moduleVersionControllerGetModuleVersion(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Imports a module from a format that was exported from another Takaro instance Required permissions: `MANAGE_MODULES` + * @summary Import a module version + * @param {BuiltinModule} [builtinModule] BuiltinModule + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ModuleApi + */ + public moduleVersionControllerImport(builtinModule?: BuiltinModule, options?: RawAxiosRequestConfig) { + return ModuleApiFp(this.configuration) + .moduleVersionControllerImport(builtinModule, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Removes a version of a module, including all config that is linked to this version Required permissions: `MANAGE_MODULES` + * @summary Remove a version + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ModuleApi + */ + public moduleVersionControllerRemoveVersion(id: string, options?: RawAxiosRequestConfig) { + return ModuleApiFp(this.configuration) + .moduleVersionControllerRemoveVersion(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `READ_MODULES` + * @summary Search module versions + * @param {ModuleVersionSearchInputDTO} [moduleVersionSearchInputDTO] ModuleVersionSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ModuleApi + */ + public moduleVersionControllerSearchVersions( + moduleVersionSearchInputDTO?: ModuleVersionSearchInputDTO, + options?: RawAxiosRequestConfig, + ) { + return ModuleApiFp(this.configuration) + .moduleVersionControllerSearchVersions(moduleVersionSearchInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Creates a new version of a module, copying all config (commands,hooks,cronjobs,...) from the \"latest\" version into a new, immutable version Required permissions: `MANAGE_MODULES` + * @summary Tag a new version + * @param {ModuleVersionCreateAPIDTO} [moduleVersionCreateAPIDTO] ModuleVersionCreateAPIDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ModuleApi + */ + public moduleVersionControllerTagVersion( + moduleVersionCreateAPIDTO?: ModuleVersionCreateAPIDTO, + options?: RawAxiosRequestConfig, + ) { + return ModuleApiFp(this.configuration) + .moduleVersionControllerTagVersion(moduleVersionCreateAPIDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Update a version of a module, note that you can only update the \"latest\" version. Tagged versions are immutable Required permissions: `MANAGE_MODULES` + * @summary Update a version + * @param {string} id + * @param {ModuleVersionUpdateDTO} [moduleVersionUpdateDTO] ModuleVersionUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ModuleApi + */ + public moduleVersionControllerUpdateVersion( + id: string, + moduleVersionUpdateDTO?: ModuleVersionUpdateDTO, + options?: RawAxiosRequestConfig, + ) { + return ModuleApiFp(this.configuration) + .moduleVersionControllerUpdateVersion(id, moduleVersionUpdateDTO, options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * PlayerApi - axios parameter creator + * @export + */ +export const PlayerApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create a new ban, creating a ban via the API will always make it takaro managed. Required permissions: `MANAGE_PLAYERS` + * @summary Ban player + * @param {BanCreateDTO} [banCreateDTO] BanCreateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + banControllerCreate: async ( + banCreateDTO?: BanCreateDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/player/ban`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(banCreateDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Unban player. This will remove the ban from Takaro and the gameserver(s) Required permissions: `MANAGE_PLAYERS` + * @summary Unban player + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + banControllerDelete: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('banControllerDelete', 'id', id); + const localVarPath = `/player/ban/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get a single ban Required permissions: `READ_PLAYERS` + * @summary Get a single ban + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + banControllerGetOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('banControllerGetOne', 'id', id); + const localVarPath = `/player/ban/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Search for bans Required permissions: `READ_PLAYERS` + * @summary Search for bans + * @param {BanSearchInputDTO} [banSearchInputDTO] BanSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + banControllerSearch: async ( + banSearchInputDTO?: BanSearchInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/player/ban/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(banSearchInputDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update an existing ban, updating a ban via the API will always make it takaro managed. Required permissions: `MANAGE_PLAYERS` + * @summary Update ban + * @param {string} id + * @param {BanUpdateDTO} [banUpdateDTO] BanUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + banControllerUpdate: async ( + id: string, + banUpdateDTO?: BanUpdateDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('banControllerUpdate', 'id', id); + const localVarPath = `/player/ban/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(banUpdateDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `MANAGE_PLAYERS`, `MANAGE_ROLES` + * @summary Assign role + * @param {string} id + * @param {string} roleId + * @param {PlayerRoleAssignChangeDTO} [playerRoleAssignChangeDTO] PlayerRoleAssignChangeDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + playerControllerAssignRole: async ( + id: string, + roleId: string, + playerRoleAssignChangeDTO?: PlayerRoleAssignChangeDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('playerControllerAssignRole', 'id', id); + // verify required parameter 'roleId' is not null or undefined + assertParamExists('playerControllerAssignRole', 'roleId', roleId); + const localVarPath = `/player/{id}/role/{roleId}` + .replace(`{${'id'}}`, encodeURIComponent(String(id))) + .replace(`{${'roleId'}}`, encodeURIComponent(String(roleId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded( + playerRoleAssignChangeDTO, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get the player that is currently authenticated. This is a low-privilege route, returning limited data. + * @summary Get current player + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + playerControllerGetMe: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/player/me`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `READ_PLAYERS` + * @summary Get one + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + playerControllerGetOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('playerControllerGetOne', 'id', id); + const localVarPath = `/player/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `MANAGE_PLAYERS`, `MANAGE_ROLES` + * @summary Remove role + * @param {string} id + * @param {string} roleId + * @param {PlayerRoleAssignChangeDTO} [playerRoleAssignChangeDTO] PlayerRoleAssignChangeDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + playerControllerRemoveRole: async ( + id: string, + roleId: string, + playerRoleAssignChangeDTO?: PlayerRoleAssignChangeDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('playerControllerRemoveRole', 'id', id); + // verify required parameter 'roleId' is not null or undefined + assertParamExists('playerControllerRemoveRole', 'roleId', roleId); + const localVarPath = `/player/{id}/role/{roleId}` + .replace(`{${'id'}}`, encodeURIComponent(String(id))) + .replace(`{${'roleId'}}`, encodeURIComponent(String(roleId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded( + playerRoleAssignChangeDTO, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `READ_PLAYERS` + * @summary Search + * @param {PlayerSearchInputDTO} [playerSearchInputDTO] PlayerSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + playerControllerSearch: async ( + playerSearchInputDTO?: PlayerSearchInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/player/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(playerSearchInputDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * PlayerApi - functional programming interface + * @export + */ +export const PlayerApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = PlayerApiAxiosParamCreator(configuration); + return { + /** + * Create a new ban, creating a ban via the API will always make it takaro managed. Required permissions: `MANAGE_PLAYERS` + * @summary Ban player + * @param {BanCreateDTO} [banCreateDTO] BanCreateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async banControllerCreate( + banCreateDTO?: BanCreateDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.banControllerCreate(banCreateDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['PlayerApi.banControllerCreate']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Unban player. This will remove the ban from Takaro and the gameserver(s) Required permissions: `MANAGE_PLAYERS` + * @summary Unban player + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async banControllerDelete( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.banControllerDelete(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['PlayerApi.banControllerDelete']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Get a single ban Required permissions: `READ_PLAYERS` + * @summary Get a single ban + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async banControllerGetOne( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.banControllerGetOne(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['PlayerApi.banControllerGetOne']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Search for bans Required permissions: `READ_PLAYERS` + * @summary Search for bans + * @param {BanSearchInputDTO} [banSearchInputDTO] BanSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async banControllerSearch( + banSearchInputDTO?: BanSearchInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.banControllerSearch(banSearchInputDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['PlayerApi.banControllerSearch']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Update an existing ban, updating a ban via the API will always make it takaro managed. Required permissions: `MANAGE_PLAYERS` + * @summary Update ban + * @param {string} id + * @param {BanUpdateDTO} [banUpdateDTO] BanUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async banControllerUpdate( + id: string, + banUpdateDTO?: BanUpdateDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.banControllerUpdate(id, banUpdateDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['PlayerApi.banControllerUpdate']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `MANAGE_PLAYERS`, `MANAGE_ROLES` + * @summary Assign role + * @param {string} id + * @param {string} roleId + * @param {PlayerRoleAssignChangeDTO} [playerRoleAssignChangeDTO] PlayerRoleAssignChangeDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async playerControllerAssignRole( + id: string, + roleId: string, + playerRoleAssignChangeDTO?: PlayerRoleAssignChangeDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.playerControllerAssignRole( + id, + roleId, + playerRoleAssignChangeDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['PlayerApi.playerControllerAssignRole']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Get the player that is currently authenticated. This is a low-privilege route, returning limited data. + * @summary Get current player + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async playerControllerGetMe( + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.playerControllerGetMe(options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['PlayerApi.playerControllerGetMe']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `READ_PLAYERS` + * @summary Get one + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async playerControllerGetOne( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.playerControllerGetOne(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['PlayerApi.playerControllerGetOne']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `MANAGE_PLAYERS`, `MANAGE_ROLES` + * @summary Remove role + * @param {string} id + * @param {string} roleId + * @param {PlayerRoleAssignChangeDTO} [playerRoleAssignChangeDTO] PlayerRoleAssignChangeDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async playerControllerRemoveRole( + id: string, + roleId: string, + playerRoleAssignChangeDTO?: PlayerRoleAssignChangeDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.playerControllerRemoveRole( + id, + roleId, + playerRoleAssignChangeDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['PlayerApi.playerControllerRemoveRole']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `READ_PLAYERS` + * @summary Search + * @param {PlayerSearchInputDTO} [playerSearchInputDTO] PlayerSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async playerControllerSearch( + playerSearchInputDTO?: PlayerSearchInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.playerControllerSearch(playerSearchInputDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['PlayerApi.playerControllerSearch']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + }; +}; + +/** + * PlayerApi - factory interface + * @export + */ +export const PlayerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = PlayerApiFp(configuration); + return { + /** + * Create a new ban, creating a ban via the API will always make it takaro managed. Required permissions: `MANAGE_PLAYERS` + * @summary Ban player + * @param {BanCreateDTO} [banCreateDTO] BanCreateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + banControllerCreate(banCreateDTO?: BanCreateDTO, options?: any): AxiosPromise { + return localVarFp.banControllerCreate(banCreateDTO, options).then((request) => request(axios, basePath)); + }, + /** + * Unban player. This will remove the ban from Takaro and the gameserver(s) Required permissions: `MANAGE_PLAYERS` + * @summary Unban player + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + banControllerDelete(id: string, options?: any): AxiosPromise { + return localVarFp.banControllerDelete(id, options).then((request) => request(axios, basePath)); + }, + /** + * Get a single ban Required permissions: `READ_PLAYERS` + * @summary Get a single ban + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + banControllerGetOne(id: string, options?: any): AxiosPromise { + return localVarFp.banControllerGetOne(id, options).then((request) => request(axios, basePath)); + }, + /** + * Search for bans Required permissions: `READ_PLAYERS` + * @summary Search for bans + * @param {BanSearchInputDTO} [banSearchInputDTO] BanSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + banControllerSearch(banSearchInputDTO?: BanSearchInputDTO, options?: any): AxiosPromise { + return localVarFp.banControllerSearch(banSearchInputDTO, options).then((request) => request(axios, basePath)); + }, + /** + * Update an existing ban, updating a ban via the API will always make it takaro managed. Required permissions: `MANAGE_PLAYERS` + * @summary Update ban + * @param {string} id + * @param {BanUpdateDTO} [banUpdateDTO] BanUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + banControllerUpdate(id: string, banUpdateDTO?: BanUpdateDTO, options?: any): AxiosPromise { + return localVarFp.banControllerUpdate(id, banUpdateDTO, options).then((request) => request(axios, basePath)); + }, + /** + * Required permissions: `MANAGE_PLAYERS`, `MANAGE_ROLES` + * @summary Assign role + * @param {string} id + * @param {string} roleId + * @param {PlayerRoleAssignChangeDTO} [playerRoleAssignChangeDTO] PlayerRoleAssignChangeDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + playerControllerAssignRole( + id: string, + roleId: string, + playerRoleAssignChangeDTO?: PlayerRoleAssignChangeDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .playerControllerAssignRole(id, roleId, playerRoleAssignChangeDTO, options) + .then((request) => request(axios, basePath)); + }, + /** + * Get the player that is currently authenticated. This is a low-privilege route, returning limited data. + * @summary Get current player + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + playerControllerGetMe(options?: any): AxiosPromise { + return localVarFp.playerControllerGetMe(options).then((request) => request(axios, basePath)); + }, + /** + * Required permissions: `READ_PLAYERS` + * @summary Get one + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + playerControllerGetOne(id: string, options?: any): AxiosPromise { + return localVarFp.playerControllerGetOne(id, options).then((request) => request(axios, basePath)); + }, + /** + * Required permissions: `MANAGE_PLAYERS`, `MANAGE_ROLES` + * @summary Remove role + * @param {string} id + * @param {string} roleId + * @param {PlayerRoleAssignChangeDTO} [playerRoleAssignChangeDTO] PlayerRoleAssignChangeDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + playerControllerRemoveRole( + id: string, + roleId: string, + playerRoleAssignChangeDTO?: PlayerRoleAssignChangeDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .playerControllerRemoveRole(id, roleId, playerRoleAssignChangeDTO, options) + .then((request) => request(axios, basePath)); + }, + /** + * Required permissions: `READ_PLAYERS` + * @summary Search + * @param {PlayerSearchInputDTO} [playerSearchInputDTO] PlayerSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + playerControllerSearch( + playerSearchInputDTO?: PlayerSearchInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .playerControllerSearch(playerSearchInputDTO, options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * PlayerApi - object-oriented interface + * @export + * @class PlayerApi + * @extends {BaseAPI} + */ +export class PlayerApi extends BaseAPI { + /** + * Create a new ban, creating a ban via the API will always make it takaro managed. Required permissions: `MANAGE_PLAYERS` + * @summary Ban player + * @param {BanCreateDTO} [banCreateDTO] BanCreateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PlayerApi + */ + public banControllerCreate(banCreateDTO?: BanCreateDTO, options?: RawAxiosRequestConfig) { + return PlayerApiFp(this.configuration) + .banControllerCreate(banCreateDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Unban player. This will remove the ban from Takaro and the gameserver(s) Required permissions: `MANAGE_PLAYERS` + * @summary Unban player + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PlayerApi + */ + public banControllerDelete(id: string, options?: RawAxiosRequestConfig) { + return PlayerApiFp(this.configuration) + .banControllerDelete(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Get a single ban Required permissions: `READ_PLAYERS` + * @summary Get a single ban + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PlayerApi + */ + public banControllerGetOne(id: string, options?: RawAxiosRequestConfig) { + return PlayerApiFp(this.configuration) + .banControllerGetOne(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Search for bans Required permissions: `READ_PLAYERS` + * @summary Search for bans + * @param {BanSearchInputDTO} [banSearchInputDTO] BanSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PlayerApi + */ + public banControllerSearch(banSearchInputDTO?: BanSearchInputDTO, options?: RawAxiosRequestConfig) { + return PlayerApiFp(this.configuration) + .banControllerSearch(banSearchInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Update an existing ban, updating a ban via the API will always make it takaro managed. Required permissions: `MANAGE_PLAYERS` + * @summary Update ban + * @param {string} id + * @param {BanUpdateDTO} [banUpdateDTO] BanUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PlayerApi + */ + public banControllerUpdate(id: string, banUpdateDTO?: BanUpdateDTO, options?: RawAxiosRequestConfig) { + return PlayerApiFp(this.configuration) + .banControllerUpdate(id, banUpdateDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `MANAGE_PLAYERS`, `MANAGE_ROLES` + * @summary Assign role + * @param {string} id + * @param {string} roleId + * @param {PlayerRoleAssignChangeDTO} [playerRoleAssignChangeDTO] PlayerRoleAssignChangeDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PlayerApi + */ + public playerControllerAssignRole( + id: string, + roleId: string, + playerRoleAssignChangeDTO?: PlayerRoleAssignChangeDTO, + options?: RawAxiosRequestConfig, + ) { + return PlayerApiFp(this.configuration) + .playerControllerAssignRole(id, roleId, playerRoleAssignChangeDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Get the player that is currently authenticated. This is a low-privilege route, returning limited data. + * @summary Get current player + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PlayerApi + */ + public playerControllerGetMe(options?: RawAxiosRequestConfig) { + return PlayerApiFp(this.configuration) + .playerControllerGetMe(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `READ_PLAYERS` + * @summary Get one + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PlayerApi + */ + public playerControllerGetOne(id: string, options?: RawAxiosRequestConfig) { + return PlayerApiFp(this.configuration) + .playerControllerGetOne(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `MANAGE_PLAYERS`, `MANAGE_ROLES` + * @summary Remove role + * @param {string} id + * @param {string} roleId + * @param {PlayerRoleAssignChangeDTO} [playerRoleAssignChangeDTO] PlayerRoleAssignChangeDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PlayerApi + */ + public playerControllerRemoveRole( + id: string, + roleId: string, + playerRoleAssignChangeDTO?: PlayerRoleAssignChangeDTO, + options?: RawAxiosRequestConfig, + ) { + return PlayerApiFp(this.configuration) + .playerControllerRemoveRole(id, roleId, playerRoleAssignChangeDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `READ_PLAYERS` + * @summary Search + * @param {PlayerSearchInputDTO} [playerSearchInputDTO] PlayerSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PlayerApi + */ + public playerControllerSearch(playerSearchInputDTO?: PlayerSearchInputDTO, options?: RawAxiosRequestConfig) { + return PlayerApiFp(this.configuration) + .playerControllerSearch(playerSearchInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * PlayerOnGameServerApi - axios parameter creator + * @export + */ +export const PlayerOnGameServerApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Required permissions: `MANAGE_PLAYERS` + * @summary Add currency + * @param {string} gameServerId + * @param {string} playerId + * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + playerOnGameServerControllerAddCurrency: async ( + gameServerId: string, + playerId: string, + playerOnGameServerSetCurrencyInputDTO?: PlayerOnGameServerSetCurrencyInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'gameServerId' is not null or undefined + assertParamExists('playerOnGameServerControllerAddCurrency', 'gameServerId', gameServerId); + // verify required parameter 'playerId' is not null or undefined + assertParamExists('playerOnGameServerControllerAddCurrency', 'playerId', playerId); + const localVarPath = `/gameserver/{gameServerId}/player/{playerId}/add-currency` + .replace(`{${'gameServerId'}}`, encodeURIComponent(String(gameServerId))) + .replace(`{${'playerId'}}`, encodeURIComponent(String(playerId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded( + playerOnGameServerSetCurrencyInputDTO, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `MANAGE_PLAYERS` + * @summary Deduct currency + * @param {string} gameServerId + * @param {string} playerId + * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + playerOnGameServerControllerDeductCurrency: async ( + gameServerId: string, + playerId: string, + playerOnGameServerSetCurrencyInputDTO?: PlayerOnGameServerSetCurrencyInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'gameServerId' is not null or undefined + assertParamExists('playerOnGameServerControllerDeductCurrency', 'gameServerId', gameServerId); + // verify required parameter 'playerId' is not null or undefined + assertParamExists('playerOnGameServerControllerDeductCurrency', 'playerId', playerId); + const localVarPath = `/gameserver/{gameServerId}/player/{playerId}/deduct-currency` + .replace(`{${'gameServerId'}}`, encodeURIComponent(String(gameServerId))) + .replace(`{${'playerId'}}`, encodeURIComponent(String(playerId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded( + playerOnGameServerSetCurrencyInputDTO, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `READ_PLAYERS` + * @summary Get one + * @param {string} gameServerId + * @param {string} playerId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + playerOnGameServerControllerGetOne: async ( + gameServerId: string, + playerId: string, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'gameServerId' is not null or undefined + assertParamExists('playerOnGameServerControllerGetOne', 'gameServerId', gameServerId); + // verify required parameter 'playerId' is not null or undefined + assertParamExists('playerOnGameServerControllerGetOne', 'playerId', playerId); + const localVarPath = `/gameserver/{gameServerId}/player/{playerId}` + .replace(`{${'gameServerId'}}`, encodeURIComponent(String(gameServerId))) + .replace(`{${'playerId'}}`, encodeURIComponent(String(playerId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `READ_PLAYERS` + * @summary Search + * @param {PlayerOnGameServerSearchInputDTO} [playerOnGameServerSearchInputDTO] PlayerOnGameServerSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + playerOnGameServerControllerSearch: async ( + playerOnGameServerSearchInputDTO?: PlayerOnGameServerSearchInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/gameserver/player/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded( + playerOnGameServerSearchInputDTO, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `MANAGE_PLAYERS` + * @summary Set currency + * @param {string} gameServerId + * @param {string} playerId + * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + playerOnGameServerControllerSetCurrency: async ( + gameServerId: string, + playerId: string, + playerOnGameServerSetCurrencyInputDTO?: PlayerOnGameServerSetCurrencyInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'gameServerId' is not null or undefined + assertParamExists('playerOnGameServerControllerSetCurrency', 'gameServerId', gameServerId); + // verify required parameter 'playerId' is not null or undefined + assertParamExists('playerOnGameServerControllerSetCurrency', 'playerId', playerId); + const localVarPath = `/gameserver/{gameServerId}/player/{playerId}/currency` + .replace(`{${'gameServerId'}}`, encodeURIComponent(String(gameServerId))) + .replace(`{${'playerId'}}`, encodeURIComponent(String(playerId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded( + playerOnGameServerSetCurrencyInputDTO, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `MANAGE_PLAYERS` + * @summary Transact between players + * @param {string} gameServerId + * @param {string} sender + * @param {string} receiver + * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + playerOnGameServerControllerTransactBetweenPlayers: async ( + gameServerId: string, + sender: string, + receiver: string, + playerOnGameServerSetCurrencyInputDTO?: PlayerOnGameServerSetCurrencyInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'gameServerId' is not null or undefined + assertParamExists('playerOnGameServerControllerTransactBetweenPlayers', 'gameServerId', gameServerId); + // verify required parameter 'sender' is not null or undefined + assertParamExists('playerOnGameServerControllerTransactBetweenPlayers', 'sender', sender); + // verify required parameter 'receiver' is not null or undefined + assertParamExists('playerOnGameServerControllerTransactBetweenPlayers', 'receiver', receiver); + const localVarPath = `/gameserver/{gameServerId}/player/{sender}/{receiver}/transfer` + .replace(`{${'gameServerId'}}`, encodeURIComponent(String(gameServerId))) + .replace(`{${'sender'}}`, encodeURIComponent(String(sender))) + .replace(`{${'receiver'}}`, encodeURIComponent(String(receiver))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded( + playerOnGameServerSetCurrencyInputDTO, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * PlayerOnGameServerApi - functional programming interface + * @export + */ +export const PlayerOnGameServerApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = PlayerOnGameServerApiAxiosParamCreator(configuration); + return { + /** + * Required permissions: `MANAGE_PLAYERS` + * @summary Add currency + * @param {string} gameServerId + * @param {string} playerId + * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async playerOnGameServerControllerAddCurrency( + gameServerId: string, + playerId: string, + playerOnGameServerSetCurrencyInputDTO?: PlayerOnGameServerSetCurrencyInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.playerOnGameServerControllerAddCurrency( + gameServerId, + playerId, + playerOnGameServerSetCurrencyInputDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = + operationServerMap['PlayerOnGameServerApi.playerOnGameServerControllerAddCurrency']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `MANAGE_PLAYERS` + * @summary Deduct currency + * @param {string} gameServerId + * @param {string} playerId + * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async playerOnGameServerControllerDeductCurrency( + gameServerId: string, + playerId: string, + playerOnGameServerSetCurrencyInputDTO?: PlayerOnGameServerSetCurrencyInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.playerOnGameServerControllerDeductCurrency( + gameServerId, + playerId, + playerOnGameServerSetCurrencyInputDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = + operationServerMap['PlayerOnGameServerApi.playerOnGameServerControllerDeductCurrency']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `READ_PLAYERS` + * @summary Get one + * @param {string} gameServerId + * @param {string} playerId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async playerOnGameServerControllerGetOne( + gameServerId: string, + playerId: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.playerOnGameServerControllerGetOne( + gameServerId, + playerId, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = + operationServerMap['PlayerOnGameServerApi.playerOnGameServerControllerGetOne']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `READ_PLAYERS` + * @summary Search + * @param {PlayerOnGameServerSearchInputDTO} [playerOnGameServerSearchInputDTO] PlayerOnGameServerSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async playerOnGameServerControllerSearch( + playerOnGameServerSearchInputDTO?: PlayerOnGameServerSearchInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.playerOnGameServerControllerSearch( + playerOnGameServerSearchInputDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = + operationServerMap['PlayerOnGameServerApi.playerOnGameServerControllerSearch']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `MANAGE_PLAYERS` + * @summary Set currency + * @param {string} gameServerId + * @param {string} playerId + * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async playerOnGameServerControllerSetCurrency( + gameServerId: string, + playerId: string, + playerOnGameServerSetCurrencyInputDTO?: PlayerOnGameServerSetCurrencyInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.playerOnGameServerControllerSetCurrency( + gameServerId, + playerId, + playerOnGameServerSetCurrencyInputDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = + operationServerMap['PlayerOnGameServerApi.playerOnGameServerControllerSetCurrency']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `MANAGE_PLAYERS` + * @summary Transact between players + * @param {string} gameServerId + * @param {string} sender + * @param {string} receiver + * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async playerOnGameServerControllerTransactBetweenPlayers( + gameServerId: string, + sender: string, + receiver: string, + playerOnGameServerSetCurrencyInputDTO?: PlayerOnGameServerSetCurrencyInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.playerOnGameServerControllerTransactBetweenPlayers( + gameServerId, + sender, + receiver, + playerOnGameServerSetCurrencyInputDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = + operationServerMap['PlayerOnGameServerApi.playerOnGameServerControllerTransactBetweenPlayers']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + }; +}; + +/** + * PlayerOnGameServerApi - factory interface + * @export + */ +export const PlayerOnGameServerApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance, +) { + const localVarFp = PlayerOnGameServerApiFp(configuration); + return { + /** + * Required permissions: `MANAGE_PLAYERS` + * @summary Add currency + * @param {string} gameServerId + * @param {string} playerId + * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + playerOnGameServerControllerAddCurrency( + gameServerId: string, + playerId: string, + playerOnGameServerSetCurrencyInputDTO?: PlayerOnGameServerSetCurrencyInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .playerOnGameServerControllerAddCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options) + .then((request) => request(axios, basePath)); + }, + /** + * Required permissions: `MANAGE_PLAYERS` + * @summary Deduct currency + * @param {string} gameServerId + * @param {string} playerId + * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + playerOnGameServerControllerDeductCurrency( + gameServerId: string, + playerId: string, + playerOnGameServerSetCurrencyInputDTO?: PlayerOnGameServerSetCurrencyInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .playerOnGameServerControllerDeductCurrency( + gameServerId, + playerId, + playerOnGameServerSetCurrencyInputDTO, + options, + ) + .then((request) => request(axios, basePath)); + }, + /** + * Required permissions: `READ_PLAYERS` + * @summary Get one + * @param {string} gameServerId + * @param {string} playerId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + playerOnGameServerControllerGetOne( + gameServerId: string, + playerId: string, + options?: any, + ): AxiosPromise { + return localVarFp + .playerOnGameServerControllerGetOne(gameServerId, playerId, options) + .then((request) => request(axios, basePath)); + }, + /** + * Required permissions: `READ_PLAYERS` + * @summary Search + * @param {PlayerOnGameServerSearchInputDTO} [playerOnGameServerSearchInputDTO] PlayerOnGameServerSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + playerOnGameServerControllerSearch( + playerOnGameServerSearchInputDTO?: PlayerOnGameServerSearchInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .playerOnGameServerControllerSearch(playerOnGameServerSearchInputDTO, options) + .then((request) => request(axios, basePath)); + }, + /** + * Required permissions: `MANAGE_PLAYERS` + * @summary Set currency + * @param {string} gameServerId + * @param {string} playerId + * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + playerOnGameServerControllerSetCurrency( + gameServerId: string, + playerId: string, + playerOnGameServerSetCurrencyInputDTO?: PlayerOnGameServerSetCurrencyInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .playerOnGameServerControllerSetCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options) + .then((request) => request(axios, basePath)); + }, + /** + * Required permissions: `MANAGE_PLAYERS` + * @summary Transact between players + * @param {string} gameServerId + * @param {string} sender + * @param {string} receiver + * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + playerOnGameServerControllerTransactBetweenPlayers( + gameServerId: string, + sender: string, + receiver: string, + playerOnGameServerSetCurrencyInputDTO?: PlayerOnGameServerSetCurrencyInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .playerOnGameServerControllerTransactBetweenPlayers( + gameServerId, + sender, + receiver, + playerOnGameServerSetCurrencyInputDTO, + options, + ) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * PlayerOnGameServerApi - object-oriented interface + * @export + * @class PlayerOnGameServerApi + * @extends {BaseAPI} + */ +export class PlayerOnGameServerApi extends BaseAPI { + /** + * Required permissions: `MANAGE_PLAYERS` + * @summary Add currency + * @param {string} gameServerId + * @param {string} playerId + * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PlayerOnGameServerApi + */ + public playerOnGameServerControllerAddCurrency( + gameServerId: string, + playerId: string, + playerOnGameServerSetCurrencyInputDTO?: PlayerOnGameServerSetCurrencyInputDTO, + options?: RawAxiosRequestConfig, + ) { + return PlayerOnGameServerApiFp(this.configuration) + .playerOnGameServerControllerAddCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `MANAGE_PLAYERS` + * @summary Deduct currency + * @param {string} gameServerId + * @param {string} playerId + * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PlayerOnGameServerApi + */ + public playerOnGameServerControllerDeductCurrency( + gameServerId: string, + playerId: string, + playerOnGameServerSetCurrencyInputDTO?: PlayerOnGameServerSetCurrencyInputDTO, + options?: RawAxiosRequestConfig, + ) { + return PlayerOnGameServerApiFp(this.configuration) + .playerOnGameServerControllerDeductCurrency( + gameServerId, + playerId, + playerOnGameServerSetCurrencyInputDTO, + options, + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `READ_PLAYERS` + * @summary Get one + * @param {string} gameServerId + * @param {string} playerId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PlayerOnGameServerApi + */ + public playerOnGameServerControllerGetOne(gameServerId: string, playerId: string, options?: RawAxiosRequestConfig) { + return PlayerOnGameServerApiFp(this.configuration) + .playerOnGameServerControllerGetOne(gameServerId, playerId, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `READ_PLAYERS` + * @summary Search + * @param {PlayerOnGameServerSearchInputDTO} [playerOnGameServerSearchInputDTO] PlayerOnGameServerSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PlayerOnGameServerApi + */ + public playerOnGameServerControllerSearch( + playerOnGameServerSearchInputDTO?: PlayerOnGameServerSearchInputDTO, + options?: RawAxiosRequestConfig, + ) { + return PlayerOnGameServerApiFp(this.configuration) + .playerOnGameServerControllerSearch(playerOnGameServerSearchInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `MANAGE_PLAYERS` + * @summary Set currency + * @param {string} gameServerId + * @param {string} playerId + * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PlayerOnGameServerApi + */ + public playerOnGameServerControllerSetCurrency( + gameServerId: string, + playerId: string, + playerOnGameServerSetCurrencyInputDTO?: PlayerOnGameServerSetCurrencyInputDTO, + options?: RawAxiosRequestConfig, + ) { + return PlayerOnGameServerApiFp(this.configuration) + .playerOnGameServerControllerSetCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `MANAGE_PLAYERS` + * @summary Transact between players + * @param {string} gameServerId + * @param {string} sender + * @param {string} receiver + * @param {PlayerOnGameServerSetCurrencyInputDTO} [playerOnGameServerSetCurrencyInputDTO] PlayerOnGameServerSetCurrencyInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PlayerOnGameServerApi + */ + public playerOnGameServerControllerTransactBetweenPlayers( + gameServerId: string, + sender: string, + receiver: string, + playerOnGameServerSetCurrencyInputDTO?: PlayerOnGameServerSetCurrencyInputDTO, + options?: RawAxiosRequestConfig, + ) { + return PlayerOnGameServerApiFp(this.configuration) + .playerOnGameServerControllerTransactBetweenPlayers( + gameServerId, + sender, + receiver, + playerOnGameServerSetCurrencyInputDTO, + options, + ) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * RoleApi - axios parameter creator + * @export + */ +export const RoleApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Required permissions: `MANAGE_ROLES` + * @summary Create + * @param {RoleCreateInputDTO} [roleCreateInputDTO] RoleCreateInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + roleControllerCreate: async ( + roleCreateInputDTO?: RoleCreateInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/role`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(roleCreateInputDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `READ_ROLES` + * @summary Get one + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + roleControllerGetOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('roleControllerGetOne', 'id', id); + const localVarPath = `/role/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get permissions + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + roleControllerGetPermissions: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/permissions`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `MANAGE_ROLES` + * @summary Remove + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + roleControllerRemove: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('roleControllerRemove', 'id', id); + const localVarPath = `/role/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `READ_ROLES` + * @summary Search + * @param {RoleSearchInputDTO} [roleSearchInputDTO] RoleSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + roleControllerSearch: async ( + roleSearchInputDTO?: RoleSearchInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/role/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(roleSearchInputDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `MANAGE_ROLES` + * @summary Update + * @param {string} id + * @param {RoleUpdateInputDTO} [roleUpdateInputDTO] RoleUpdateInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + roleControllerUpdate: async ( + id: string, + roleUpdateInputDTO?: RoleUpdateInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('roleControllerUpdate', 'id', id); + const localVarPath = `/role/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(roleUpdateInputDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * RoleApi - functional programming interface + * @export + */ +export const RoleApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = RoleApiAxiosParamCreator(configuration); + return { + /** + * Required permissions: `MANAGE_ROLES` + * @summary Create + * @param {RoleCreateInputDTO} [roleCreateInputDTO] RoleCreateInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async roleControllerCreate( + roleCreateInputDTO?: RoleCreateInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.roleControllerCreate(roleCreateInputDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['RoleApi.roleControllerCreate']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `READ_ROLES` + * @summary Get one + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async roleControllerGetOne( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.roleControllerGetOne(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['RoleApi.roleControllerGetOne']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * + * @summary Get permissions + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async roleControllerGetPermissions( + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.roleControllerGetPermissions(options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['RoleApi.roleControllerGetPermissions']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `MANAGE_ROLES` + * @summary Remove + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async roleControllerRemove( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.roleControllerRemove(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['RoleApi.roleControllerRemove']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `READ_ROLES` + * @summary Search + * @param {RoleSearchInputDTO} [roleSearchInputDTO] RoleSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async roleControllerSearch( + roleSearchInputDTO?: RoleSearchInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.roleControllerSearch(roleSearchInputDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['RoleApi.roleControllerSearch']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `MANAGE_ROLES` + * @summary Update + * @param {string} id + * @param {RoleUpdateInputDTO} [roleUpdateInputDTO] RoleUpdateInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async roleControllerUpdate( + id: string, + roleUpdateInputDTO?: RoleUpdateInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.roleControllerUpdate(id, roleUpdateInputDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['RoleApi.roleControllerUpdate']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + }; +}; + +/** + * RoleApi - factory interface + * @export + */ +export const RoleApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = RoleApiFp(configuration); + return { + /** + * Required permissions: `MANAGE_ROLES` + * @summary Create * @param {RoleCreateInputDTO} [roleCreateInputDTO] RoleCreateInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof RoleApi */ - public roleControllerCreate(roleCreateInputDTO?: RoleCreateInputDTO, options?: RawAxiosRequestConfig) { - return RoleApiFp(this.configuration).roleControllerCreate(roleCreateInputDTO, options).then((request) => request(this.axios, this.basePath)); - } - + roleControllerCreate(roleCreateInputDTO?: RoleCreateInputDTO, options?: any): AxiosPromise { + return localVarFp.roleControllerCreate(roleCreateInputDTO, options).then((request) => request(axios, basePath)); + }, + /** + * Required permissions: `READ_ROLES` + * @summary Get one + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + roleControllerGetOne(id: string, options?: any): AxiosPromise { + return localVarFp.roleControllerGetOne(id, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get permissions + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + roleControllerGetPermissions(options?: any): AxiosPromise { + return localVarFp.roleControllerGetPermissions(options).then((request) => request(axios, basePath)); + }, + /** + * Required permissions: `MANAGE_ROLES` + * @summary Remove + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + roleControllerRemove(id: string, options?: any): AxiosPromise { + return localVarFp.roleControllerRemove(id, options).then((request) => request(axios, basePath)); + }, + /** + * Required permissions: `READ_ROLES` + * @summary Search + * @param {RoleSearchInputDTO} [roleSearchInputDTO] RoleSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + roleControllerSearch(roleSearchInputDTO?: RoleSearchInputDTO, options?: any): AxiosPromise { + return localVarFp.roleControllerSearch(roleSearchInputDTO, options).then((request) => request(axios, basePath)); + }, + /** + * Required permissions: `MANAGE_ROLES` + * @summary Update + * @param {string} id + * @param {RoleUpdateInputDTO} [roleUpdateInputDTO] RoleUpdateInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + roleControllerUpdate( + id: string, + roleUpdateInputDTO?: RoleUpdateInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .roleControllerUpdate(id, roleUpdateInputDTO, options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * RoleApi - object-oriented interface + * @export + * @class RoleApi + * @extends {BaseAPI} + */ +export class RoleApi extends BaseAPI { + /** + * Required permissions: `MANAGE_ROLES` + * @summary Create + * @param {RoleCreateInputDTO} [roleCreateInputDTO] RoleCreateInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RoleApi + */ + public roleControllerCreate(roleCreateInputDTO?: RoleCreateInputDTO, options?: RawAxiosRequestConfig) { + return RoleApiFp(this.configuration) + .roleControllerCreate(roleCreateInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `READ_ROLES` + * @summary Get one + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RoleApi + */ + public roleControllerGetOne(id: string, options?: RawAxiosRequestConfig) { + return RoleApiFp(this.configuration) + .roleControllerGetOne(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get permissions + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RoleApi + */ + public roleControllerGetPermissions(options?: RawAxiosRequestConfig) { + return RoleApiFp(this.configuration) + .roleControllerGetPermissions(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `MANAGE_ROLES` + * @summary Remove + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RoleApi + */ + public roleControllerRemove(id: string, options?: RawAxiosRequestConfig) { + return RoleApiFp(this.configuration) + .roleControllerRemove(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `READ_ROLES` + * @summary Search + * @param {RoleSearchInputDTO} [roleSearchInputDTO] RoleSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RoleApi + */ + public roleControllerSearch(roleSearchInputDTO?: RoleSearchInputDTO, options?: RawAxiosRequestConfig) { + return RoleApiFp(this.configuration) + .roleControllerSearch(roleSearchInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `MANAGE_ROLES` + * @summary Update + * @param {string} id + * @param {RoleUpdateInputDTO} [roleUpdateInputDTO] RoleUpdateInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RoleApi + */ + public roleControllerUpdate(id: string, roleUpdateInputDTO?: RoleUpdateInputDTO, options?: RawAxiosRequestConfig) { + return RoleApiFp(this.configuration) + .roleControllerUpdate(id, roleUpdateInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * SettingsApi - axios parameter creator + * @export + */ +export const SettingsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Required permissions: `MANAGE_SETTINGS` + * @summary Delete + * @param {string} key + * @param {string} [gameServerId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + settingsControllerDelete: async ( + key: string, + gameServerId?: string, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'key' is not null or undefined + assertParamExists('settingsControllerDelete', 'key', key); + const localVarPath = `/settings/{key}`.replace(`{${'key'}}`, encodeURIComponent(String(key))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + if (gameServerId !== undefined) { + localVarQueryParameter['gameServerId'] = gameServerId; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get + * @param {Array} [keys] + * @param {string} [gameServerId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + settingsControllerGet: async ( + keys?: Array, + gameServerId?: string, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/settings`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + if (keys) { + localVarQueryParameter['keys'] = keys; + } + + if (gameServerId !== undefined) { + localVarQueryParameter['gameServerId'] = gameServerId; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get one + * @param {string} key + * @param {string} [gameServerId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + settingsControllerGetOne: async ( + key: string, + gameServerId?: string, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'key' is not null or undefined + assertParamExists('settingsControllerGetOne', 'key', key); + const localVarPath = `/settings/{key}`.replace(`{${'key'}}`, encodeURIComponent(String(key))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + if (gameServerId !== undefined) { + localVarQueryParameter['gameServerId'] = gameServerId; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `MANAGE_SETTINGS` + * @summary Set + * @param {string} key + * @param {SettingsSetDTO} [settingsSetDTO] SettingsSetDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + settingsControllerSet: async ( + key: string, + settingsSetDTO?: SettingsSetDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'key' is not null or undefined + assertParamExists('settingsControllerSet', 'key', key); + const localVarPath = `/settings/{key}`.replace(`{${'key'}}`, encodeURIComponent(String(key))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(settingsSetDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * SettingsApi - functional programming interface + * @export + */ +export const SettingsApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = SettingsApiAxiosParamCreator(configuration); + return { + /** + * Required permissions: `MANAGE_SETTINGS` + * @summary Delete + * @param {string} key + * @param {string} [gameServerId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async settingsControllerDelete( + key: string, + gameServerId?: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.settingsControllerDelete(key, gameServerId, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['SettingsApi.settingsControllerDelete']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * + * @summary Get + * @param {Array} [keys] + * @param {string} [gameServerId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async settingsControllerGet( + keys?: Array, + gameServerId?: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.settingsControllerGet(keys, gameServerId, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['SettingsApi.settingsControllerGet']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * + * @summary Get one + * @param {string} key + * @param {string} [gameServerId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async settingsControllerGetOne( + key: string, + gameServerId?: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.settingsControllerGetOne(key, gameServerId, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['SettingsApi.settingsControllerGetOne']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `MANAGE_SETTINGS` + * @summary Set + * @param {string} key + * @param {SettingsSetDTO} [settingsSetDTO] SettingsSetDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async settingsControllerSet( + key: string, + settingsSetDTO?: SettingsSetDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.settingsControllerSet(key, settingsSetDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['SettingsApi.settingsControllerSet']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + }; +}; + +/** + * SettingsApi - factory interface + * @export + */ +export const SettingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = SettingsApiFp(configuration); + return { + /** + * Required permissions: `MANAGE_SETTINGS` + * @summary Delete + * @param {string} key + * @param {string} [gameServerId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + settingsControllerDelete(key: string, gameServerId?: string, options?: any): AxiosPromise { + return localVarFp + .settingsControllerDelete(key, gameServerId, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get + * @param {Array} [keys] + * @param {string} [gameServerId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + settingsControllerGet( + keys?: Array, + gameServerId?: string, + options?: any, + ): AxiosPromise { + return localVarFp.settingsControllerGet(keys, gameServerId, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get one + * @param {string} key + * @param {string} [gameServerId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + settingsControllerGetOne(key: string, gameServerId?: string, options?: any): AxiosPromise { + return localVarFp + .settingsControllerGetOne(key, gameServerId, options) + .then((request) => request(axios, basePath)); + }, + /** + * Required permissions: `MANAGE_SETTINGS` + * @summary Set + * @param {string} key + * @param {SettingsSetDTO} [settingsSetDTO] SettingsSetDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + settingsControllerSet( + key: string, + settingsSetDTO?: SettingsSetDTO, + options?: any, + ): AxiosPromise { + return localVarFp.settingsControllerSet(key, settingsSetDTO, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * SettingsApi - object-oriented interface + * @export + * @class SettingsApi + * @extends {BaseAPI} + */ +export class SettingsApi extends BaseAPI { + /** + * Required permissions: `MANAGE_SETTINGS` + * @summary Delete + * @param {string} key + * @param {string} [gameServerId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SettingsApi + */ + public settingsControllerDelete(key: string, gameServerId?: string, options?: RawAxiosRequestConfig) { + return SettingsApiFp(this.configuration) + .settingsControllerDelete(key, gameServerId, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get + * @param {Array} [keys] + * @param {string} [gameServerId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SettingsApi + */ + public settingsControllerGet( + keys?: Array, + gameServerId?: string, + options?: RawAxiosRequestConfig, + ) { + return SettingsApiFp(this.configuration) + .settingsControllerGet(keys, gameServerId, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get one + * @param {string} key + * @param {string} [gameServerId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SettingsApi + */ + public settingsControllerGetOne(key: string, gameServerId?: string, options?: RawAxiosRequestConfig) { + return SettingsApiFp(this.configuration) + .settingsControllerGetOne(key, gameServerId, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `MANAGE_SETTINGS` + * @summary Set + * @param {string} key + * @param {SettingsSetDTO} [settingsSetDTO] SettingsSetDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SettingsApi + */ + public settingsControllerSet(key: string, settingsSetDTO?: SettingsSetDTO, options?: RawAxiosRequestConfig) { + return SettingsApiFp(this.configuration) + .settingsControllerSet(key, settingsSetDTO, options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * @export + */ +export const SettingsControllerGetKeysEnum = { + CommandPrefix: 'commandPrefix', + ServerChatName: 'serverChatName', + EconomyEnabled: 'economyEnabled', + CurrencyName: 'currencyName', + DeveloperMode: 'developerMode', +} as const; +export type SettingsControllerGetKeysEnum = + (typeof SettingsControllerGetKeysEnum)[keyof typeof SettingsControllerGetKeysEnum]; + +/** + * ShopListingApi - axios parameter creator + * @export + */ +export const ShopListingApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Required permissions: `MANAGE_SHOP_LISTINGS` + * @summary Create + * @param {ShopListingCreateDTO} [shopListingCreateDTO] ShopListingCreateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + shopListingControllerCreate: async ( + shopListingCreateDTO?: ShopListingCreateDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/shop/listing/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(shopListingCreateDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `MANAGE_SHOP_LISTINGS` + * @summary Delete + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + shopListingControllerDelete: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('shopListingControllerDelete', 'id', id); + const localVarPath = `/shop/listing/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Get one + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + shopListingControllerGetOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('shopListingControllerGetOne', 'id', id); + const localVarPath = `/shop/listing/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `MANAGE_SHOP_LISTINGS` + * @summary Import listings + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + shopListingControllerImportListings: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/shop/listing/import`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Search + * @param {ShopListingSearchInputDTO} [shopListingSearchInputDTO] ShopListingSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + shopListingControllerSearch: async ( + shopListingSearchInputDTO?: ShopListingSearchInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/shop/listing/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded( + shopListingSearchInputDTO, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `MANAGE_SHOP_LISTINGS` + * @summary Update + * @param {string} id + * @param {ShopListingUpdateDTO} [shopListingUpdateDTO] ShopListingUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + shopListingControllerUpdate: async ( + id: string, + shopListingUpdateDTO?: ShopListingUpdateDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('shopListingControllerUpdate', 'id', id); + const localVarPath = `/shop/listing/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(shopListingUpdateDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * ShopListingApi - functional programming interface + * @export + */ +export const ShopListingApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = ShopListingApiAxiosParamCreator(configuration); + return { + /** + * Required permissions: `MANAGE_SHOP_LISTINGS` + * @summary Create + * @param {ShopListingCreateDTO} [shopListingCreateDTO] ShopListingCreateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async shopListingControllerCreate( + shopListingCreateDTO?: ShopListingCreateDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.shopListingControllerCreate( + shopListingCreateDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ShopListingApi.shopListingControllerCreate']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `MANAGE_SHOP_LISTINGS` + * @summary Delete + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async shopListingControllerDelete( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.shopListingControllerDelete(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ShopListingApi.shopListingControllerDelete']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * + * @summary Get one + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async shopListingControllerGetOne( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.shopListingControllerGetOne(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ShopListingApi.shopListingControllerGetOne']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `MANAGE_SHOP_LISTINGS` + * @summary Import listings + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async shopListingControllerImportListings( + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.shopListingControllerImportListings(options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ShopListingApi.shopListingControllerImportListings']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * + * @summary Search + * @param {ShopListingSearchInputDTO} [shopListingSearchInputDTO] ShopListingSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async shopListingControllerSearch( + shopListingSearchInputDTO?: ShopListingSearchInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.shopListingControllerSearch( + shopListingSearchInputDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ShopListingApi.shopListingControllerSearch']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `MANAGE_SHOP_LISTINGS` + * @summary Update + * @param {string} id + * @param {ShopListingUpdateDTO} [shopListingUpdateDTO] ShopListingUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async shopListingControllerUpdate( + id: string, + shopListingUpdateDTO?: ShopListingUpdateDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.shopListingControllerUpdate( + id, + shopListingUpdateDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ShopListingApi.shopListingControllerUpdate']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + }; +}; + +/** + * ShopListingApi - factory interface + * @export + */ +export const ShopListingApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance, +) { + const localVarFp = ShopListingApiFp(configuration); + return { + /** + * Required permissions: `MANAGE_SHOP_LISTINGS` + * @summary Create + * @param {ShopListingCreateDTO} [shopListingCreateDTO] ShopListingCreateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + shopListingControllerCreate( + shopListingCreateDTO?: ShopListingCreateDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .shopListingControllerCreate(shopListingCreateDTO, options) + .then((request) => request(axios, basePath)); + }, + /** + * Required permissions: `MANAGE_SHOP_LISTINGS` + * @summary Delete + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + shopListingControllerDelete(id: string, options?: any): AxiosPromise { + return localVarFp.shopListingControllerDelete(id, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get one + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + shopListingControllerGetOne(id: string, options?: any): AxiosPromise { + return localVarFp.shopListingControllerGetOne(id, options).then((request) => request(axios, basePath)); + }, + /** + * Required permissions: `MANAGE_SHOP_LISTINGS` + * @summary Import listings + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + shopListingControllerImportListings(options?: any): AxiosPromise { + return localVarFp.shopListingControllerImportListings(options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Search + * @param {ShopListingSearchInputDTO} [shopListingSearchInputDTO] ShopListingSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + shopListingControllerSearch( + shopListingSearchInputDTO?: ShopListingSearchInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .shopListingControllerSearch(shopListingSearchInputDTO, options) + .then((request) => request(axios, basePath)); + }, + /** + * Required permissions: `MANAGE_SHOP_LISTINGS` + * @summary Update + * @param {string} id + * @param {ShopListingUpdateDTO} [shopListingUpdateDTO] ShopListingUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + shopListingControllerUpdate( + id: string, + shopListingUpdateDTO?: ShopListingUpdateDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .shopListingControllerUpdate(id, shopListingUpdateDTO, options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * ShopListingApi - object-oriented interface + * @export + * @class ShopListingApi + * @extends {BaseAPI} + */ +export class ShopListingApi extends BaseAPI { + /** + * Required permissions: `MANAGE_SHOP_LISTINGS` + * @summary Create + * @param {ShopListingCreateDTO} [shopListingCreateDTO] ShopListingCreateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ShopListingApi + */ + public shopListingControllerCreate(shopListingCreateDTO?: ShopListingCreateDTO, options?: RawAxiosRequestConfig) { + return ShopListingApiFp(this.configuration) + .shopListingControllerCreate(shopListingCreateDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `MANAGE_SHOP_LISTINGS` + * @summary Delete + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ShopListingApi + */ + public shopListingControllerDelete(id: string, options?: RawAxiosRequestConfig) { + return ShopListingApiFp(this.configuration) + .shopListingControllerDelete(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get one + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ShopListingApi + */ + public shopListingControllerGetOne(id: string, options?: RawAxiosRequestConfig) { + return ShopListingApiFp(this.configuration) + .shopListingControllerGetOne(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `MANAGE_SHOP_LISTINGS` + * @summary Import listings + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ShopListingApi + */ + public shopListingControllerImportListings(options?: RawAxiosRequestConfig) { + return ShopListingApiFp(this.configuration) + .shopListingControllerImportListings(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Search + * @param {ShopListingSearchInputDTO} [shopListingSearchInputDTO] ShopListingSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ShopListingApi + */ + public shopListingControllerSearch( + shopListingSearchInputDTO?: ShopListingSearchInputDTO, + options?: RawAxiosRequestConfig, + ) { + return ShopListingApiFp(this.configuration) + .shopListingControllerSearch(shopListingSearchInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `MANAGE_SHOP_LISTINGS` + * @summary Update + * @param {string} id + * @param {ShopListingUpdateDTO} [shopListingUpdateDTO] ShopListingUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ShopListingApi + */ + public shopListingControllerUpdate( + id: string, + shopListingUpdateDTO?: ShopListingUpdateDTO, + options?: RawAxiosRequestConfig, + ) { + return ShopListingApiFp(this.configuration) + .shopListingControllerUpdate(id, shopListingUpdateDTO, options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * ShopOrderApi - axios parameter creator + * @export + */ +export const ShopOrderApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * + * @summary Cancel + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + shopOrderControllerCancel: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('shopOrderControllerCancel', 'id', id); + const localVarPath = `/shop/order/{id}/cancel`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Claiming an order will mark it as completed and give the user the item in-game + * @summary Claim an order + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + shopOrderControllerClaim: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('shopOrderControllerClaim', 'id', id); + const localVarPath = `/shop/order/{id}/claim`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Create + * @param {ShopOrderCreateDTO} [shopOrderCreateDTO] ShopOrderCreateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + shopOrderControllerCreate: async ( + shopOrderCreateDTO?: ShopOrderCreateDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/shop/order/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(shopOrderCreateDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get an order by its ID. This endpoint only returns orders that belong to the caller. When the caller has permission to view all orders, they can get any order. + * @summary Get order by ID + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + shopOrderControllerGetOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('shopOrderControllerGetOne', 'id', id); + const localVarPath = `/shop/order/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Search for orders. By default, this endpoint only returns your own orders. When the caller has permission to view all orders, they can search for all orders. + * @summary Search orders + * @param {ShopOrderSearchInputDTO} [shopOrderSearchInputDTO] ShopOrderSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + shopOrderControllerSearch: async ( + shopOrderSearchInputDTO?: ShopOrderSearchInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/shop/order/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded( + shopOrderSearchInputDTO, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * ShopOrderApi - functional programming interface + * @export + */ +export const ShopOrderApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = ShopOrderApiAxiosParamCreator(configuration); + return { + /** + * + * @summary Cancel + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async shopOrderControllerCancel( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.shopOrderControllerCancel(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ShopOrderApi.shopOrderControllerCancel']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Claiming an order will mark it as completed and give the user the item in-game + * @summary Claim an order + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async shopOrderControllerClaim( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.shopOrderControllerClaim(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ShopOrderApi.shopOrderControllerClaim']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * + * @summary Create + * @param {ShopOrderCreateDTO} [shopOrderCreateDTO] ShopOrderCreateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async shopOrderControllerCreate( + shopOrderCreateDTO?: ShopOrderCreateDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.shopOrderControllerCreate(shopOrderCreateDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ShopOrderApi.shopOrderControllerCreate']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Get an order by its ID. This endpoint only returns orders that belong to the caller. When the caller has permission to view all orders, they can get any order. + * @summary Get order by ID + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async shopOrderControllerGetOne( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.shopOrderControllerGetOne(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ShopOrderApi.shopOrderControllerGetOne']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Search for orders. By default, this endpoint only returns your own orders. When the caller has permission to view all orders, they can search for all orders. + * @summary Search orders + * @param {ShopOrderSearchInputDTO} [shopOrderSearchInputDTO] ShopOrderSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async shopOrderControllerSearch( + shopOrderSearchInputDTO?: ShopOrderSearchInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.shopOrderControllerSearch( + shopOrderSearchInputDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['ShopOrderApi.shopOrderControllerSearch']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + }; +}; + +/** + * ShopOrderApi - factory interface + * @export + */ +export const ShopOrderApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ShopOrderApiFp(configuration); + return { + /** + * + * @summary Cancel + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + shopOrderControllerCancel(id: string, options?: any): AxiosPromise { + return localVarFp.shopOrderControllerCancel(id, options).then((request) => request(axios, basePath)); + }, + /** + * Claiming an order will mark it as completed and give the user the item in-game + * @summary Claim an order + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + shopOrderControllerClaim(id: string, options?: any): AxiosPromise { + return localVarFp.shopOrderControllerClaim(id, options).then((request) => request(axios, basePath)); + }, + /** + * + * @summary Create + * @param {ShopOrderCreateDTO} [shopOrderCreateDTO] ShopOrderCreateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + shopOrderControllerCreate( + shopOrderCreateDTO?: ShopOrderCreateDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .shopOrderControllerCreate(shopOrderCreateDTO, options) + .then((request) => request(axios, basePath)); + }, + /** + * Get an order by its ID. This endpoint only returns orders that belong to the caller. When the caller has permission to view all orders, they can get any order. + * @summary Get order by ID + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + shopOrderControllerGetOne(id: string, options?: any): AxiosPromise { + return localVarFp.shopOrderControllerGetOne(id, options).then((request) => request(axios, basePath)); + }, + /** + * Search for orders. By default, this endpoint only returns your own orders. When the caller has permission to view all orders, they can search for all orders. + * @summary Search orders + * @param {ShopOrderSearchInputDTO} [shopOrderSearchInputDTO] ShopOrderSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + shopOrderControllerSearch( + shopOrderSearchInputDTO?: ShopOrderSearchInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .shopOrderControllerSearch(shopOrderSearchInputDTO, options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * ShopOrderApi - object-oriented interface + * @export + * @class ShopOrderApi + * @extends {BaseAPI} + */ +export class ShopOrderApi extends BaseAPI { + /** + * + * @summary Cancel + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ShopOrderApi + */ + public shopOrderControllerCancel(id: string, options?: RawAxiosRequestConfig) { + return ShopOrderApiFp(this.configuration) + .shopOrderControllerCancel(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Claiming an order will mark it as completed and give the user the item in-game + * @summary Claim an order + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ShopOrderApi + */ + public shopOrderControllerClaim(id: string, options?: RawAxiosRequestConfig) { + return ShopOrderApiFp(this.configuration) + .shopOrderControllerClaim(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Create + * @param {ShopOrderCreateDTO} [shopOrderCreateDTO] ShopOrderCreateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ShopOrderApi + */ + public shopOrderControllerCreate(shopOrderCreateDTO?: ShopOrderCreateDTO, options?: RawAxiosRequestConfig) { + return ShopOrderApiFp(this.configuration) + .shopOrderControllerCreate(shopOrderCreateDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Get an order by its ID. This endpoint only returns orders that belong to the caller. When the caller has permission to view all orders, they can get any order. + * @summary Get order by ID + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ShopOrderApi + */ + public shopOrderControllerGetOne(id: string, options?: RawAxiosRequestConfig) { + return ShopOrderApiFp(this.configuration) + .shopOrderControllerGetOne(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Search for orders. By default, this endpoint only returns your own orders. When the caller has permission to view all orders, they can search for all orders. + * @summary Search orders + * @param {ShopOrderSearchInputDTO} [shopOrderSearchInputDTO] ShopOrderSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ShopOrderApi + */ + public shopOrderControllerSearch(shopOrderSearchInputDTO?: ShopOrderSearchInputDTO, options?: RawAxiosRequestConfig) { + return ShopOrderApiFp(this.configuration) + .shopOrderControllerSearch(shopOrderSearchInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } +} + +/** + * StatsApi - axios parameter creator + * @export + */ +export const StatsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Required permissions: `READ_PLAYERS` + * @summary Get activity stats + * @param {StatsControllerGetActivityStatsTimeTypeEnum} timeType + * @param {StatsControllerGetActivityStatsDataTypeEnum} dataType + * @param {string} [gameServerId] + * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] + * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + statsControllerGetActivityStats: async ( + timeType: StatsControllerGetActivityStatsTimeTypeEnum, + dataType: StatsControllerGetActivityStatsDataTypeEnum, + gameServerId?: string, + startDate?: StatsControllerGetPingStatsStartDateParameter, + endDate?: StatsControllerGetPingStatsStartDateParameter, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'timeType' is not null or undefined + assertParamExists('statsControllerGetActivityStats', 'timeType', timeType); + // verify required parameter 'dataType' is not null or undefined + assertParamExists('statsControllerGetActivityStats', 'dataType', dataType); + const localVarPath = `/stats/activity`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + if (gameServerId !== undefined) { + localVarQueryParameter['gameServerId'] = gameServerId; + } + + if (timeType !== undefined) { + localVarQueryParameter['timeType'] = timeType; + } + + if (dataType !== undefined) { + localVarQueryParameter['dataType'] = dataType; + } + + if (startDate !== undefined) { + localVarQueryParameter['startDate'] = startDate; + } + + if (endDate !== undefined) { + localVarQueryParameter['endDate'] = endDate; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Calculates how many players are from each country. Returns a count per country (ISO3166). Required permissions: `READ_PLAYERS` + * @summary Get statistics about the countries of the players + * @param {Array} [gameServerId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + statsControllerGetCountryStats: async ( + gameServerId?: Array, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/stats/countries`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + if (gameServerId) { + localVarQueryParameter['gameServerId'] = gameServerId; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `READ_PLAYERS` + * @summary Get currency stats + * @param {string} gameServerId + * @param {string} [playerId] + * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] + * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + statsControllerGetCurrencyStats: async ( + gameServerId: string, + playerId?: string, + startDate?: StatsControllerGetPingStatsStartDateParameter, + endDate?: StatsControllerGetPingStatsStartDateParameter, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'gameServerId' is not null or undefined + assertParamExists('statsControllerGetCurrencyStats', 'gameServerId', gameServerId); + const localVarPath = `/stats/currency`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + if (gameServerId !== undefined) { + localVarQueryParameter['gameServerId'] = gameServerId; + } + + if (playerId !== undefined) { + localVarQueryParameter['playerId'] = playerId; + } + + if (startDate !== undefined) { + localVarQueryParameter['startDate'] = startDate; + } + + if (endDate !== undefined) { + localVarQueryParameter['endDate'] = endDate; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Calculates how many times an event type has occured over `bucketStep` time. Supports different filters and can return multiple series at a time. Required permissions: `READ_PLAYERS` + * @summary Get event count over time + * @param {StatsControllerGetEventsCountEventNameEnum} eventName + * @param {StatsControllerGetEventsCountBucketStepEnum} bucketStep + * @param {Array} [sumBy] + * @param {string} [gameServerId] + * @param {string} [moduleId] + * @param {string} [playerId] + * @param {string} [userId] + * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] + * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + statsControllerGetEventsCount: async ( + eventName: StatsControllerGetEventsCountEventNameEnum, + bucketStep: StatsControllerGetEventsCountBucketStepEnum, + sumBy?: Array, + gameServerId?: string, + moduleId?: string, + playerId?: string, + userId?: string, + startDate?: StatsControllerGetPingStatsStartDateParameter, + endDate?: StatsControllerGetPingStatsStartDateParameter, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'eventName' is not null or undefined + assertParamExists('statsControllerGetEventsCount', 'eventName', eventName); + // verify required parameter 'bucketStep' is not null or undefined + assertParamExists('statsControllerGetEventsCount', 'bucketStep', bucketStep); + const localVarPath = `/stats/events-count`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + if (eventName !== undefined) { + localVarQueryParameter['eventName'] = eventName; + } + + if (sumBy) { + localVarQueryParameter['sumBy'] = sumBy; + } + + if (gameServerId !== undefined) { + localVarQueryParameter['gameServerId'] = gameServerId; + } + + if (moduleId !== undefined) { + localVarQueryParameter['moduleId'] = moduleId; + } + + if (playerId !== undefined) { + localVarQueryParameter['playerId'] = playerId; + } + + if (userId !== undefined) { + localVarQueryParameter['userId'] = userId; + } + + if (bucketStep !== undefined) { + localVarQueryParameter['bucketStep'] = bucketStep; + } + + if (startDate !== undefined) { + localVarQueryParameter['startDate'] = startDate; + } + + if (endDate !== undefined) { + localVarQueryParameter['endDate'] = endDate; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * The roundtrip time for reachability tests between Takaro and the game server + * @summary Get latency stats + * @param {string} gameServerId + * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] + * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + statsControllerGetLatencyStats: async ( + gameServerId: string, + startDate?: StatsControllerGetPingStatsStartDateParameter, + endDate?: StatsControllerGetPingStatsStartDateParameter, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'gameServerId' is not null or undefined + assertParamExists('statsControllerGetLatencyStats', 'gameServerId', gameServerId); + const localVarPath = `/stats/latency`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + if (gameServerId !== undefined) { + localVarQueryParameter['gameServerId'] = gameServerId; + } + + if (startDate !== undefined) { + localVarQueryParameter['startDate'] = startDate; + } + + if (endDate !== undefined) { + localVarQueryParameter['endDate'] = endDate; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `READ_PLAYERS` + * @summary Get ping stats + * @param {string} gameServerId + * @param {string} playerId + * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] + * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + statsControllerGetPingStats: async ( + gameServerId: string, + playerId: string, + startDate?: StatsControllerGetPingStatsStartDateParameter, + endDate?: StatsControllerGetPingStatsStartDateParameter, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'gameServerId' is not null or undefined + assertParamExists('statsControllerGetPingStats', 'gameServerId', gameServerId); + // verify required parameter 'playerId' is not null or undefined + assertParamExists('statsControllerGetPingStats', 'playerId', playerId); + const localVarPath = `/stats/ping`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + if (gameServerId !== undefined) { + localVarQueryParameter['gameServerId'] = gameServerId; + } + + if (playerId !== undefined) { + localVarQueryParameter['playerId'] = playerId; + } + + if (startDate !== undefined) { + localVarQueryParameter['startDate'] = startDate; + } + + if (endDate !== undefined) { + localVarQueryParameter['endDate'] = endDate; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `READ_PLAYERS` + * @summary Get player online stats + * @param {string} [gameServerId] + * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] + * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + statsControllerGetPlayerOnlineStats: async ( + gameServerId?: string, + startDate?: StatsControllerGetPingStatsStartDateParameter, + endDate?: StatsControllerGetPingStatsStartDateParameter, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/stats/players-online`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + if (gameServerId !== undefined) { + localVarQueryParameter['gameServerId'] = gameServerId; + } + + if (startDate !== undefined) { + localVarQueryParameter['startDate'] = startDate; + } + + if (endDate !== undefined) { + localVarQueryParameter['endDate'] = endDate; + } + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * StatsApi - functional programming interface + * @export + */ +export const StatsApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = StatsApiAxiosParamCreator(configuration); + return { + /** + * Required permissions: `READ_PLAYERS` + * @summary Get activity stats + * @param {StatsControllerGetActivityStatsTimeTypeEnum} timeType + * @param {StatsControllerGetActivityStatsDataTypeEnum} dataType + * @param {string} [gameServerId] + * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] + * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async statsControllerGetActivityStats( + timeType: StatsControllerGetActivityStatsTimeTypeEnum, + dataType: StatsControllerGetActivityStatsDataTypeEnum, + gameServerId?: string, + startDate?: StatsControllerGetPingStatsStartDateParameter, + endDate?: StatsControllerGetPingStatsStartDateParameter, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.statsControllerGetActivityStats( + timeType, + dataType, + gameServerId, + startDate, + endDate, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['StatsApi.statsControllerGetActivityStats']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Calculates how many players are from each country. Returns a count per country (ISO3166). Required permissions: `READ_PLAYERS` + * @summary Get statistics about the countries of the players + * @param {Array} [gameServerId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async statsControllerGetCountryStats( + gameServerId?: Array, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.statsControllerGetCountryStats(gameServerId, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['StatsApi.statsControllerGetCountryStats']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, /** - * Required permissions: `READ_ROLES` - * @summary Get one - * @param {string} id + * Required permissions: `READ_PLAYERS` + * @summary Get currency stats + * @param {string} gameServerId + * @param {string} [playerId] + * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] + * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof RoleApi */ - public roleControllerGetOne(id: string, options?: RawAxiosRequestConfig) { - return RoleApiFp(this.configuration).roleControllerGetOne(id, options).then((request) => request(this.axios, this.basePath)); - } - + async statsControllerGetCurrencyStats( + gameServerId: string, + playerId?: string, + startDate?: StatsControllerGetPingStatsStartDateParameter, + endDate?: StatsControllerGetPingStatsStartDateParameter, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.statsControllerGetCurrencyStats( + gameServerId, + playerId, + startDate, + endDate, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['StatsApi.statsControllerGetCurrencyStats']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, /** - * - * @summary Get permissions + * Calculates how many times an event type has occured over `bucketStep` time. Supports different filters and can return multiple series at a time. Required permissions: `READ_PLAYERS` + * @summary Get event count over time + * @param {StatsControllerGetEventsCountEventNameEnum} eventName + * @param {StatsControllerGetEventsCountBucketStepEnum} bucketStep + * @param {Array} [sumBy] + * @param {string} [gameServerId] + * @param {string} [moduleId] + * @param {string} [playerId] + * @param {string} [userId] + * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] + * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof RoleApi */ - public roleControllerGetPermissions(options?: RawAxiosRequestConfig) { - return RoleApiFp(this.configuration).roleControllerGetPermissions(options).then((request) => request(this.axios, this.basePath)); - } - + async statsControllerGetEventsCount( + eventName: StatsControllerGetEventsCountEventNameEnum, + bucketStep: StatsControllerGetEventsCountBucketStepEnum, + sumBy?: Array, + gameServerId?: string, + moduleId?: string, + playerId?: string, + userId?: string, + startDate?: StatsControllerGetPingStatsStartDateParameter, + endDate?: StatsControllerGetPingStatsStartDateParameter, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.statsControllerGetEventsCount( + eventName, + bucketStep, + sumBy, + gameServerId, + moduleId, + playerId, + userId, + startDate, + endDate, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['StatsApi.statsControllerGetEventsCount']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, /** - * Required permissions: `MANAGE_ROLES` - * @summary Remove - * @param {string} id + * The roundtrip time for reachability tests between Takaro and the game server + * @summary Get latency stats + * @param {string} gameServerId + * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] + * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof RoleApi */ - public roleControllerRemove(id: string, options?: RawAxiosRequestConfig) { - return RoleApiFp(this.configuration).roleControllerRemove(id, options).then((request) => request(this.axios, this.basePath)); - } - + async statsControllerGetLatencyStats( + gameServerId: string, + startDate?: StatsControllerGetPingStatsStartDateParameter, + endDate?: StatsControllerGetPingStatsStartDateParameter, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.statsControllerGetLatencyStats( + gameServerId, + startDate, + endDate, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['StatsApi.statsControllerGetLatencyStats']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, /** - * Required permissions: `READ_ROLES` - * @summary Search - * @param {RoleSearchInputDTO} [roleSearchInputDTO] RoleSearchInputDTO + * Required permissions: `READ_PLAYERS` + * @summary Get ping stats + * @param {string} gameServerId + * @param {string} playerId + * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] + * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof RoleApi */ - public roleControllerSearch(roleSearchInputDTO?: RoleSearchInputDTO, options?: RawAxiosRequestConfig) { - return RoleApiFp(this.configuration).roleControllerSearch(roleSearchInputDTO, options).then((request) => request(this.axios, this.basePath)); - } - + async statsControllerGetPingStats( + gameServerId: string, + playerId: string, + startDate?: StatsControllerGetPingStatsStartDateParameter, + endDate?: StatsControllerGetPingStatsStartDateParameter, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.statsControllerGetPingStats( + gameServerId, + playerId, + startDate, + endDate, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['StatsApi.statsControllerGetPingStats']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, /** - * Required permissions: `MANAGE_ROLES` - * @summary Update - * @param {string} id - * @param {RoleUpdateInputDTO} [roleUpdateInputDTO] RoleUpdateInputDTO + * Required permissions: `READ_PLAYERS` + * @summary Get player online stats + * @param {string} [gameServerId] + * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] + * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof RoleApi */ - public roleControllerUpdate(id: string, roleUpdateInputDTO?: RoleUpdateInputDTO, options?: RawAxiosRequestConfig) { - return RoleApiFp(this.configuration).roleControllerUpdate(id, roleUpdateInputDTO, options).then((request) => request(this.axios, this.basePath)); - } -} - - - -/** - * SettingsApi - axios parameter creator - * @export - */ -export const SettingsApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * Required permissions: `MANAGE_SETTINGS` - * @summary Delete - * @param {string} key - * @param {string} [gameServerId] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - settingsControllerDelete: async (key: string, gameServerId?: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'key' is not null or undefined - assertParamExists('settingsControllerDelete', 'key', key) - const localVarPath = `/settings/{key}` - .replace(`{${"key"}}`, encodeURIComponent(String(key))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - if (gameServerId !== undefined) { - localVarQueryParameter['gameServerId'] = gameServerId; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get - * @param {Array} [keys] - * @param {string} [gameServerId] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - settingsControllerGet: async (keys?: Array, gameServerId?: string, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/settings`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - if (keys) { - localVarQueryParameter['keys'] = keys; - } - - if (gameServerId !== undefined) { - localVarQueryParameter['gameServerId'] = gameServerId; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get one - * @param {string} key - * @param {string} [gameServerId] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - settingsControllerGetOne: async (key: string, gameServerId?: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'key' is not null or undefined - assertParamExists('settingsControllerGetOne', 'key', key) - const localVarPath = `/settings/{key}` - .replace(`{${"key"}}`, encodeURIComponent(String(key))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - if (gameServerId !== undefined) { - localVarQueryParameter['gameServerId'] = gameServerId; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `MANAGE_SETTINGS` - * @summary Set - * @param {string} key - * @param {SettingsSetDTO} [settingsSetDTO] SettingsSetDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - settingsControllerSet: async (key: string, settingsSetDTO?: SettingsSetDTO, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'key' is not null or undefined - assertParamExists('settingsControllerSet', 'key', key) - const localVarPath = `/settings/{key}` - .replace(`{${"key"}}`, encodeURIComponent(String(key))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(settingsSetDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * SettingsApi - functional programming interface - * @export - */ -export const SettingsApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = SettingsApiAxiosParamCreator(configuration) - return { - /** - * Required permissions: `MANAGE_SETTINGS` - * @summary Delete - * @param {string} key - * @param {string} [gameServerId] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async settingsControllerDelete(key: string, gameServerId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.settingsControllerDelete(key, gameServerId, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['SettingsApi.settingsControllerDelete']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * - * @summary Get - * @param {Array} [keys] - * @param {string} [gameServerId] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async settingsControllerGet(keys?: Array, gameServerId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.settingsControllerGet(keys, gameServerId, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['SettingsApi.settingsControllerGet']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * - * @summary Get one - * @param {string} key - * @param {string} [gameServerId] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async settingsControllerGetOne(key: string, gameServerId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.settingsControllerGetOne(key, gameServerId, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['SettingsApi.settingsControllerGetOne']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `MANAGE_SETTINGS` - * @summary Set - * @param {string} key - * @param {SettingsSetDTO} [settingsSetDTO] SettingsSetDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async settingsControllerSet(key: string, settingsSetDTO?: SettingsSetDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.settingsControllerSet(key, settingsSetDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['SettingsApi.settingsControllerSet']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - } -}; - -/** - * SettingsApi - factory interface - * @export - */ -export const SettingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = SettingsApiFp(configuration) - return { - /** - * Required permissions: `MANAGE_SETTINGS` - * @summary Delete - * @param {string} key - * @param {string} [gameServerId] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - settingsControllerDelete(key: string, gameServerId?: string, options?: any): AxiosPromise { - return localVarFp.settingsControllerDelete(key, gameServerId, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get - * @param {Array} [keys] - * @param {string} [gameServerId] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - settingsControllerGet(keys?: Array, gameServerId?: string, options?: any): AxiosPromise { - return localVarFp.settingsControllerGet(keys, gameServerId, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get one - * @param {string} key - * @param {string} [gameServerId] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - settingsControllerGetOne(key: string, gameServerId?: string, options?: any): AxiosPromise { - return localVarFp.settingsControllerGetOne(key, gameServerId, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `MANAGE_SETTINGS` - * @summary Set - * @param {string} key - * @param {SettingsSetDTO} [settingsSetDTO] SettingsSetDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - settingsControllerSet(key: string, settingsSetDTO?: SettingsSetDTO, options?: any): AxiosPromise { - return localVarFp.settingsControllerSet(key, settingsSetDTO, options).then((request) => request(axios, basePath)); - }, - }; + async statsControllerGetPlayerOnlineStats( + gameServerId?: string, + startDate?: StatsControllerGetPingStatsStartDateParameter, + endDate?: StatsControllerGetPingStatsStartDateParameter, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.statsControllerGetPlayerOnlineStats( + gameServerId, + startDate, + endDate, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['StatsApi.statsControllerGetPlayerOnlineStats']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + }; }; /** - * SettingsApi - object-oriented interface + * StatsApi - factory interface * @export - * @class SettingsApi - * @extends {BaseAPI} */ -export class SettingsApi extends BaseAPI { +export const StatsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = StatsApiFp(configuration); + return { /** - * Required permissions: `MANAGE_SETTINGS` - * @summary Delete - * @param {string} key - * @param {string} [gameServerId] + * Required permissions: `READ_PLAYERS` + * @summary Get activity stats + * @param {StatsControllerGetActivityStatsTimeTypeEnum} timeType + * @param {StatsControllerGetActivityStatsDataTypeEnum} dataType + * @param {string} [gameServerId] + * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] + * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof SettingsApi */ - public settingsControllerDelete(key: string, gameServerId?: string, options?: RawAxiosRequestConfig) { - return SettingsApiFp(this.configuration).settingsControllerDelete(key, gameServerId, options).then((request) => request(this.axios, this.basePath)); - } - + statsControllerGetActivityStats( + timeType: StatsControllerGetActivityStatsTimeTypeEnum, + dataType: StatsControllerGetActivityStatsDataTypeEnum, + gameServerId?: string, + startDate?: StatsControllerGetPingStatsStartDateParameter, + endDate?: StatsControllerGetPingStatsStartDateParameter, + options?: any, + ): AxiosPromise { + return localVarFp + .statsControllerGetActivityStats(timeType, dataType, gameServerId, startDate, endDate, options) + .then((request) => request(axios, basePath)); + }, /** - * - * @summary Get - * @param {Array} [keys] - * @param {string} [gameServerId] + * Calculates how many players are from each country. Returns a count per country (ISO3166). Required permissions: `READ_PLAYERS` + * @summary Get statistics about the countries of the players + * @param {Array} [gameServerId] * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof SettingsApi */ - public settingsControllerGet(keys?: Array, gameServerId?: string, options?: RawAxiosRequestConfig) { - return SettingsApiFp(this.configuration).settingsControllerGet(keys, gameServerId, options).then((request) => request(this.axios, this.basePath)); - } - + statsControllerGetCountryStats(gameServerId?: Array, options?: any): AxiosPromise { + return localVarFp + .statsControllerGetCountryStats(gameServerId, options) + .then((request) => request(axios, basePath)); + }, /** - * - * @summary Get one - * @param {string} key - * @param {string} [gameServerId] + * Required permissions: `READ_PLAYERS` + * @summary Get currency stats + * @param {string} gameServerId + * @param {string} [playerId] + * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] + * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof SettingsApi */ - public settingsControllerGetOne(key: string, gameServerId?: string, options?: RawAxiosRequestConfig) { - return SettingsApiFp(this.configuration).settingsControllerGetOne(key, gameServerId, options).then((request) => request(this.axios, this.basePath)); - } - + statsControllerGetCurrencyStats( + gameServerId: string, + playerId?: string, + startDate?: StatsControllerGetPingStatsStartDateParameter, + endDate?: StatsControllerGetPingStatsStartDateParameter, + options?: any, + ): AxiosPromise { + return localVarFp + .statsControllerGetCurrencyStats(gameServerId, playerId, startDate, endDate, options) + .then((request) => request(axios, basePath)); + }, /** - * Required permissions: `MANAGE_SETTINGS` - * @summary Set - * @param {string} key - * @param {SettingsSetDTO} [settingsSetDTO] SettingsSetDTO + * Calculates how many times an event type has occured over `bucketStep` time. Supports different filters and can return multiple series at a time. Required permissions: `READ_PLAYERS` + * @summary Get event count over time + * @param {StatsControllerGetEventsCountEventNameEnum} eventName + * @param {StatsControllerGetEventsCountBucketStepEnum} bucketStep + * @param {Array} [sumBy] + * @param {string} [gameServerId] + * @param {string} [moduleId] + * @param {string} [playerId] + * @param {string} [userId] + * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] + * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + statsControllerGetEventsCount( + eventName: StatsControllerGetEventsCountEventNameEnum, + bucketStep: StatsControllerGetEventsCountBucketStepEnum, + sumBy?: Array, + gameServerId?: string, + moduleId?: string, + playerId?: string, + userId?: string, + startDate?: StatsControllerGetPingStatsStartDateParameter, + endDate?: StatsControllerGetPingStatsStartDateParameter, + options?: any, + ): AxiosPromise { + return localVarFp + .statsControllerGetEventsCount( + eventName, + bucketStep, + sumBy, + gameServerId, + moduleId, + playerId, + userId, + startDate, + endDate, + options, + ) + .then((request) => request(axios, basePath)); + }, + /** + * The roundtrip time for reachability tests between Takaro and the game server + * @summary Get latency stats + * @param {string} gameServerId + * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] + * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + statsControllerGetLatencyStats( + gameServerId: string, + startDate?: StatsControllerGetPingStatsStartDateParameter, + endDate?: StatsControllerGetPingStatsStartDateParameter, + options?: any, + ): AxiosPromise { + return localVarFp + .statsControllerGetLatencyStats(gameServerId, startDate, endDate, options) + .then((request) => request(axios, basePath)); + }, + /** + * Required permissions: `READ_PLAYERS` + * @summary Get ping stats + * @param {string} gameServerId + * @param {string} playerId + * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] + * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + statsControllerGetPingStats( + gameServerId: string, + playerId: string, + startDate?: StatsControllerGetPingStatsStartDateParameter, + endDate?: StatsControllerGetPingStatsStartDateParameter, + options?: any, + ): AxiosPromise { + return localVarFp + .statsControllerGetPingStats(gameServerId, playerId, startDate, endDate, options) + .then((request) => request(axios, basePath)); + }, + /** + * Required permissions: `READ_PLAYERS` + * @summary Get player online stats + * @param {string} [gameServerId] + * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] + * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof SettingsApi */ - public settingsControllerSet(key: string, settingsSetDTO?: SettingsSetDTO, options?: RawAxiosRequestConfig) { - return SettingsApiFp(this.configuration).settingsControllerSet(key, settingsSetDTO, options).then((request) => request(this.axios, this.basePath)); - } + statsControllerGetPlayerOnlineStats( + gameServerId?: string, + startDate?: StatsControllerGetPingStatsStartDateParameter, + endDate?: StatsControllerGetPingStatsStartDateParameter, + options?: any, + ): AxiosPromise { + return localVarFp + .statsControllerGetPlayerOnlineStats(gameServerId, startDate, endDate, options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * StatsApi - object-oriented interface + * @export + * @class StatsApi + * @extends {BaseAPI} + */ +export class StatsApi extends BaseAPI { + /** + * Required permissions: `READ_PLAYERS` + * @summary Get activity stats + * @param {StatsControllerGetActivityStatsTimeTypeEnum} timeType + * @param {StatsControllerGetActivityStatsDataTypeEnum} dataType + * @param {string} [gameServerId] + * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] + * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StatsApi + */ + public statsControllerGetActivityStats( + timeType: StatsControllerGetActivityStatsTimeTypeEnum, + dataType: StatsControllerGetActivityStatsDataTypeEnum, + gameServerId?: string, + startDate?: StatsControllerGetPingStatsStartDateParameter, + endDate?: StatsControllerGetPingStatsStartDateParameter, + options?: RawAxiosRequestConfig, + ) { + return StatsApiFp(this.configuration) + .statsControllerGetActivityStats(timeType, dataType, gameServerId, startDate, endDate, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Calculates how many players are from each country. Returns a count per country (ISO3166). Required permissions: `READ_PLAYERS` + * @summary Get statistics about the countries of the players + * @param {Array} [gameServerId] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StatsApi + */ + public statsControllerGetCountryStats(gameServerId?: Array, options?: RawAxiosRequestConfig) { + return StatsApiFp(this.configuration) + .statsControllerGetCountryStats(gameServerId, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `READ_PLAYERS` + * @summary Get currency stats + * @param {string} gameServerId + * @param {string} [playerId] + * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] + * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StatsApi + */ + public statsControllerGetCurrencyStats( + gameServerId: string, + playerId?: string, + startDate?: StatsControllerGetPingStatsStartDateParameter, + endDate?: StatsControllerGetPingStatsStartDateParameter, + options?: RawAxiosRequestConfig, + ) { + return StatsApiFp(this.configuration) + .statsControllerGetCurrencyStats(gameServerId, playerId, startDate, endDate, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Calculates how many times an event type has occured over `bucketStep` time. Supports different filters and can return multiple series at a time. Required permissions: `READ_PLAYERS` + * @summary Get event count over time + * @param {StatsControllerGetEventsCountEventNameEnum} eventName + * @param {StatsControllerGetEventsCountBucketStepEnum} bucketStep + * @param {Array} [sumBy] + * @param {string} [gameServerId] + * @param {string} [moduleId] + * @param {string} [playerId] + * @param {string} [userId] + * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] + * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StatsApi + */ + public statsControllerGetEventsCount( + eventName: StatsControllerGetEventsCountEventNameEnum, + bucketStep: StatsControllerGetEventsCountBucketStepEnum, + sumBy?: Array, + gameServerId?: string, + moduleId?: string, + playerId?: string, + userId?: string, + startDate?: StatsControllerGetPingStatsStartDateParameter, + endDate?: StatsControllerGetPingStatsStartDateParameter, + options?: RawAxiosRequestConfig, + ) { + return StatsApiFp(this.configuration) + .statsControllerGetEventsCount( + eventName, + bucketStep, + sumBy, + gameServerId, + moduleId, + playerId, + userId, + startDate, + endDate, + options, + ) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * The roundtrip time for reachability tests between Takaro and the game server + * @summary Get latency stats + * @param {string} gameServerId + * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] + * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StatsApi + */ + public statsControllerGetLatencyStats( + gameServerId: string, + startDate?: StatsControllerGetPingStatsStartDateParameter, + endDate?: StatsControllerGetPingStatsStartDateParameter, + options?: RawAxiosRequestConfig, + ) { + return StatsApiFp(this.configuration) + .statsControllerGetLatencyStats(gameServerId, startDate, endDate, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `READ_PLAYERS` + * @summary Get ping stats + * @param {string} gameServerId + * @param {string} playerId + * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] + * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StatsApi + */ + public statsControllerGetPingStats( + gameServerId: string, + playerId: string, + startDate?: StatsControllerGetPingStatsStartDateParameter, + endDate?: StatsControllerGetPingStatsStartDateParameter, + options?: RawAxiosRequestConfig, + ) { + return StatsApiFp(this.configuration) + .statsControllerGetPingStats(gameServerId, playerId, startDate, endDate, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `READ_PLAYERS` + * @summary Get player online stats + * @param {string} [gameServerId] + * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] + * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StatsApi + */ + public statsControllerGetPlayerOnlineStats( + gameServerId?: string, + startDate?: StatsControllerGetPingStatsStartDateParameter, + endDate?: StatsControllerGetPingStatsStartDateParameter, + options?: RawAxiosRequestConfig, + ) { + return StatsApiFp(this.configuration) + .statsControllerGetPlayerOnlineStats(gameServerId, startDate, endDate, options) + .then((request) => request(this.axios, this.basePath)); + } } /** * @export */ -export const SettingsControllerGetKeysEnum = { - CommandPrefix: 'commandPrefix', - ServerChatName: 'serverChatName', - EconomyEnabled: 'economyEnabled', - CurrencyName: 'currencyName', - DeveloperMode: 'developerMode' +export const StatsControllerGetActivityStatsTimeTypeEnum = { + Daily: 'daily', + Weekly: 'weekly', + Monthly: 'monthly', } as const; -export type SettingsControllerGetKeysEnum = typeof SettingsControllerGetKeysEnum[keyof typeof SettingsControllerGetKeysEnum]; - - +export type StatsControllerGetActivityStatsTimeTypeEnum = + (typeof StatsControllerGetActivityStatsTimeTypeEnum)[keyof typeof StatsControllerGetActivityStatsTimeTypeEnum]; /** - * ShopListingApi - axios parameter creator * @export */ -export const ShopListingApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * Required permissions: `MANAGE_SHOP_LISTINGS` - * @summary Create - * @param {ShopListingCreateDTO} [shopListingCreateDTO] ShopListingCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - shopListingControllerCreate: async (shopListingCreateDTO?: ShopListingCreateDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/shop/listing/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(shopListingCreateDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `MANAGE_SHOP_LISTINGS` - * @summary Delete - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - shopListingControllerDelete: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('shopListingControllerDelete', 'id', id) - const localVarPath = `/shop/listing/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - shopListingControllerGetOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('shopListingControllerGetOne', 'id', id) - const localVarPath = `/shop/listing/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `MANAGE_SHOP_LISTINGS` - * @summary Import listings - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - shopListingControllerImportListings: async (options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/shop/listing/import`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Search - * @param {ShopListingSearchInputDTO} [shopListingSearchInputDTO] ShopListingSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - shopListingControllerSearch: async (shopListingSearchInputDTO?: ShopListingSearchInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/shop/listing/search`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(shopListingSearchInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `MANAGE_SHOP_LISTINGS` - * @summary Update - * @param {string} id - * @param {ShopListingUpdateDTO} [shopListingUpdateDTO] ShopListingUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - shopListingControllerUpdate: async (id: string, shopListingUpdateDTO?: ShopListingUpdateDTO, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('shopListingControllerUpdate', 'id', id) - const localVarPath = `/shop/listing/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(shopListingUpdateDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - +export const StatsControllerGetActivityStatsDataTypeEnum = { + Users: 'users', + Players: 'players', +} as const; +export type StatsControllerGetActivityStatsDataTypeEnum = + (typeof StatsControllerGetActivityStatsDataTypeEnum)[keyof typeof StatsControllerGetActivityStatsDataTypeEnum]; /** - * ShopListingApi - functional programming interface * @export */ -export const ShopListingApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = ShopListingApiAxiosParamCreator(configuration) - return { - /** - * Required permissions: `MANAGE_SHOP_LISTINGS` - * @summary Create - * @param {ShopListingCreateDTO} [shopListingCreateDTO] ShopListingCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async shopListingControllerCreate(shopListingCreateDTO?: ShopListingCreateDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.shopListingControllerCreate(shopListingCreateDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ShopListingApi.shopListingControllerCreate']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `MANAGE_SHOP_LISTINGS` - * @summary Delete - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async shopListingControllerDelete(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.shopListingControllerDelete(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ShopListingApi.shopListingControllerDelete']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * - * @summary Get one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async shopListingControllerGetOne(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.shopListingControllerGetOne(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ShopListingApi.shopListingControllerGetOne']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `MANAGE_SHOP_LISTINGS` - * @summary Import listings - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async shopListingControllerImportListings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.shopListingControllerImportListings(options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ShopListingApi.shopListingControllerImportListings']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * - * @summary Search - * @param {ShopListingSearchInputDTO} [shopListingSearchInputDTO] ShopListingSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async shopListingControllerSearch(shopListingSearchInputDTO?: ShopListingSearchInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.shopListingControllerSearch(shopListingSearchInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ShopListingApi.shopListingControllerSearch']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `MANAGE_SHOP_LISTINGS` - * @summary Update - * @param {string} id - * @param {ShopListingUpdateDTO} [shopListingUpdateDTO] ShopListingUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async shopListingControllerUpdate(id: string, shopListingUpdateDTO?: ShopListingUpdateDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.shopListingControllerUpdate(id, shopListingUpdateDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ShopListingApi.shopListingControllerUpdate']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - } -}; - +export const StatsControllerGetEventsCountEventNameEnum = { + RoleAssigned: 'role-assigned', + RoleRemoved: 'role-removed', + RoleCreated: 'role-created', + RoleUpdated: 'role-updated', + RoleDeleted: 'role-deleted', + CommandExecuted: 'command-executed', + HookExecuted: 'hook-executed', + CronjobExecuted: 'cronjob-executed', + CurrencyAdded: 'currency-added', + CurrencyDeducted: 'currency-deducted', + SettingsSet: 'settings-set', + PlayerNewIpDetected: 'player-new-ip-detected', + ServerStatusChanged: 'server-status-changed', + ModuleCreated: 'module-created', + ModuleUpdated: 'module-updated', + ModuleDeleted: 'module-deleted', + ModuleInstalled: 'module-installed', + ModuleUninstalled: 'module-uninstalled', + PlayerCreated: 'player-created', + ShopListingCreated: 'shop-listing-created', + ShopListingUpdated: 'shop-listing-updated', + ShopListingDeleted: 'shop-listing-deleted', + ShopOrderCreated: 'shop-order-created', + ShopOrderStatusChanged: 'shop-order-status-changed', + PlayerLinked: 'player-linked', + PlayerConnected: 'player-connected', + PlayerDisconnected: 'player-disconnected', + ChatMessage: 'chat-message', + PlayerDeath: 'player-death', + EntityKilled: 'entity-killed', +} as const; +export type StatsControllerGetEventsCountEventNameEnum = + (typeof StatsControllerGetEventsCountEventNameEnum)[keyof typeof StatsControllerGetEventsCountEventNameEnum]; /** - * ShopListingApi - factory interface * @export */ -export const ShopListingApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = ShopListingApiFp(configuration) - return { - /** - * Required permissions: `MANAGE_SHOP_LISTINGS` - * @summary Create - * @param {ShopListingCreateDTO} [shopListingCreateDTO] ShopListingCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - shopListingControllerCreate(shopListingCreateDTO?: ShopListingCreateDTO, options?: any): AxiosPromise { - return localVarFp.shopListingControllerCreate(shopListingCreateDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `MANAGE_SHOP_LISTINGS` - * @summary Delete - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - shopListingControllerDelete(id: string, options?: any): AxiosPromise { - return localVarFp.shopListingControllerDelete(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - shopListingControllerGetOne(id: string, options?: any): AxiosPromise { - return localVarFp.shopListingControllerGetOne(id, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `MANAGE_SHOP_LISTINGS` - * @summary Import listings - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - shopListingControllerImportListings(options?: any): AxiosPromise { - return localVarFp.shopListingControllerImportListings(options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Search - * @param {ShopListingSearchInputDTO} [shopListingSearchInputDTO] ShopListingSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - shopListingControllerSearch(shopListingSearchInputDTO?: ShopListingSearchInputDTO, options?: any): AxiosPromise { - return localVarFp.shopListingControllerSearch(shopListingSearchInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `MANAGE_SHOP_LISTINGS` - * @summary Update - * @param {string} id - * @param {ShopListingUpdateDTO} [shopListingUpdateDTO] ShopListingUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - shopListingControllerUpdate(id: string, shopListingUpdateDTO?: ShopListingUpdateDTO, options?: any): AxiosPromise { - return localVarFp.shopListingControllerUpdate(id, shopListingUpdateDTO, options).then((request) => request(axios, basePath)); - }, - }; -}; +export const StatsControllerGetEventsCountBucketStepEnum = { + _5m: '5m', + _30m: '30m', + _1h: '1h', + _6h: '6h', + _12h: '12h', + _24h: '24h', +} as const; +export type StatsControllerGetEventsCountBucketStepEnum = + (typeof StatsControllerGetEventsCountBucketStepEnum)[keyof typeof StatsControllerGetEventsCountBucketStepEnum]; +/** + * @export + */ +export const StatsControllerGetEventsCountSumByEnum = { + Player: 'player', + Module: 'module', + User: 'user', + Gameserver: 'gameserver', +} as const; +export type StatsControllerGetEventsCountSumByEnum = + (typeof StatsControllerGetEventsCountSumByEnum)[keyof typeof StatsControllerGetEventsCountSumByEnum]; /** - * ShopListingApi - object-oriented interface + * UserApi - axios parameter creator * @export - * @class ShopListingApi - * @extends {BaseAPI} */ -export class ShopListingApi extends BaseAPI { +export const UserApiAxiosParamCreator = function (configuration?: Configuration) { + return { /** - * Required permissions: `MANAGE_SHOP_LISTINGS` + * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES` + * @summary Assign role + * @param {string} id + * @param {string} roleId + * @param {UserRoleAssignChangeDTO} [userRoleAssignChangeDTO] UserRoleAssignChangeDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + userControllerAssignRole: async ( + id: string, + roleId: string, + userRoleAssignChangeDTO?: UserRoleAssignChangeDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('userControllerAssignRole', 'id', id); + // verify required parameter 'roleId' is not null or undefined + assertParamExists('userControllerAssignRole', 'roleId', roleId); + const localVarPath = `/user/{id}/role/{roleId}` + .replace(`{${'id'}}`, encodeURIComponent(String(id))) + .replace(`{${'roleId'}}`, encodeURIComponent(String(roleId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded( + userRoleAssignChangeDTO, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `MANAGE_USERS` * @summary Create - * @param {ShopListingCreateDTO} [shopListingCreateDTO] ShopListingCreateDTO + * @param {UserCreateInputDTO} [userCreateInputDTO] UserCreateInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof ShopListingApi */ - public shopListingControllerCreate(shopListingCreateDTO?: ShopListingCreateDTO, options?: RawAxiosRequestConfig) { - return ShopListingApiFp(this.configuration).shopListingControllerCreate(shopListingCreateDTO, options).then((request) => request(this.axios, this.basePath)); - } - + userControllerCreate: async ( + userCreateInputDTO?: UserCreateInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/user`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(userCreateInputDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** - * Required permissions: `MANAGE_SHOP_LISTINGS` - * @summary Delete - * @param {string} id + * Unset the selected domain for the user, this will clear the domain cookie. On the next request, the backend will set this again. + * @summary Unset the selected domain for the user * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof ShopListingApi */ - public shopListingControllerDelete(id: string, options?: RawAxiosRequestConfig) { - return ShopListingApiFp(this.configuration).shopListingControllerDelete(id, options).then((request) => request(this.axios, this.basePath)); - } + userControllerDeleteSelectedDomainCookie: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/selected-domain`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** - * + * Required permissions: `READ_USERS` * @summary Get one - * @param {string} id + * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof ShopListingApi */ - public shopListingControllerGetOne(id: string, options?: RawAxiosRequestConfig) { - return ShopListingApiFp(this.configuration).shopListingControllerGetOne(id, options).then((request) => request(this.axios, this.basePath)); - } - + userControllerGetOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('userControllerGetOne', 'id', id); + const localVarPath = `/user/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** - * Required permissions: `MANAGE_SHOP_LISTINGS` - * @summary Import listings + * Required permissions: `MANAGE_USERS` + * @summary Invite + * @param {InviteCreateDTO} [inviteCreateDTO] InviteCreateDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof ShopListingApi */ - public shopListingControllerImportListings(options?: RawAxiosRequestConfig) { - return ShopListingApiFp(this.configuration).shopListingControllerImportListings(options).then((request) => request(this.axios, this.basePath)); - } - + userControllerInvite: async ( + inviteCreateDTO?: InviteCreateDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/user/invite`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(inviteCreateDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** - * - * @summary Search - * @param {ShopListingSearchInputDTO} [shopListingSearchInputDTO] ShopListingSearchInputDTO + * Link your player profile to Takaro, allowing web access for things like shop and stats. To get the code, use the /link command in the game. + * @summary Link player profile + * @param {LinkPlayerUnauthedInputDTO} [linkPlayerUnauthedInputDTO] LinkPlayerUnauthedInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + userControllerLinkPlayerProfile: async ( + linkPlayerUnauthedInputDTO?: LinkPlayerUnauthedInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/user/player`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded( + linkPlayerUnauthedInputDTO, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary Login + * @param {LoginDTO} [loginDTO] LoginDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof ShopListingApi */ - public shopListingControllerSearch(shopListingSearchInputDTO?: ShopListingSearchInputDTO, options?: RawAxiosRequestConfig) { - return ShopListingApiFp(this.configuration).shopListingControllerSearch(shopListingSearchInputDTO, options).then((request) => request(this.axios, this.basePath)); - } + userControllerLogin: async (loginDTO?: LoginDTO, options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/login`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(loginDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** - * Required permissions: `MANAGE_SHOP_LISTINGS` - * @summary Update - * @param {string} id - * @param {ShopListingUpdateDTO} [shopListingUpdateDTO] ShopListingUpdateDTO + * + * @summary Logout * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof ShopListingApi */ - public shopListingControllerUpdate(id: string, shopListingUpdateDTO?: ShopListingUpdateDTO, options?: RawAxiosRequestConfig) { - return ShopListingApiFp(this.configuration).shopListingControllerUpdate(id, shopListingUpdateDTO, options).then((request) => request(this.axios, this.basePath)); - } -} + userControllerLogout: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/logout`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + // authentication domainAuth required -/** - * ShopOrderApi - axios parameter creator - * @export - */ -export const ShopOrderApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * - * @summary Cancel - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - shopOrderControllerCancel: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('shopOrderControllerCancel', 'id', id) - const localVarPath = `/shop/order/{id}/cancel` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Claiming an order will mark it as completed and give the user the item in-game - * @summary Claim an order - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - shopOrderControllerClaim: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('shopOrderControllerClaim', 'id', id) - const localVarPath = `/shop/order/{id}/claim` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Create - * @param {ShopOrderCreateDTO} [shopOrderCreateDTO] ShopOrderCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - shopOrderControllerCreate: async (shopOrderCreateDTO?: ShopOrderCreateDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/shop/order/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(shopOrderCreateDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get an order by its ID. This endpoint only returns orders that belong to the caller. When the caller has permission to view all orders, they can get any order. - * @summary Get order by ID - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - shopOrderControllerGetOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('shopOrderControllerGetOne', 'id', id) - const localVarPath = `/shop/order/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Search for orders. By default, this endpoint only returns your own orders. When the caller has permission to view all orders, they can search for all orders. - * @summary Search orders - * @param {ShopOrderSearchInputDTO} [shopOrderSearchInputDTO] ShopOrderSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - shopOrderControllerSearch: async (shopOrderSearchInputDTO?: ShopOrderSearchInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/shop/order/search`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(shopOrderSearchInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; -/** - * ShopOrderApi - functional programming interface - * @export - */ -export const ShopOrderApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = ShopOrderApiAxiosParamCreator(configuration) - return { - /** - * - * @summary Cancel - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async shopOrderControllerCancel(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.shopOrderControllerCancel(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ShopOrderApi.shopOrderControllerCancel']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Claiming an order will mark it as completed and give the user the item in-game - * @summary Claim an order - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async shopOrderControllerClaim(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.shopOrderControllerClaim(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ShopOrderApi.shopOrderControllerClaim']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * - * @summary Create - * @param {ShopOrderCreateDTO} [shopOrderCreateDTO] ShopOrderCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async shopOrderControllerCreate(shopOrderCreateDTO?: ShopOrderCreateDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.shopOrderControllerCreate(shopOrderCreateDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ShopOrderApi.shopOrderControllerCreate']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Get an order by its ID. This endpoint only returns orders that belong to the caller. When the caller has permission to view all orders, they can get any order. - * @summary Get order by ID - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async shopOrderControllerGetOne(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.shopOrderControllerGetOne(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ShopOrderApi.shopOrderControllerGetOne']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Search for orders. By default, this endpoint only returns your own orders. When the caller has permission to view all orders, they can search for all orders. - * @summary Search orders - * @param {ShopOrderSearchInputDTO} [shopOrderSearchInputDTO] ShopOrderSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async shopOrderControllerSearch(shopOrderSearchInputDTO?: ShopOrderSearchInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.shopOrderControllerSearch(shopOrderSearchInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['ShopOrderApi.shopOrderControllerSearch']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - } -}; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Get the current user and the domains that the user has access to. Note that you can only make requests in the scope of a single domain. In order to switch the domain, you need to use the domain selection endpoints + * @summary Get the current logged in user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + userControllerMe: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/me`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } -/** - * ShopOrderApi - factory interface - * @export - */ -export const ShopOrderApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = ShopOrderApiFp(configuration) - return { - /** - * - * @summary Cancel - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - shopOrderControllerCancel(id: string, options?: any): AxiosPromise { - return localVarFp.shopOrderControllerCancel(id, options).then((request) => request(axios, basePath)); - }, - /** - * Claiming an order will mark it as completed and give the user the item in-game - * @summary Claim an order - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - shopOrderControllerClaim(id: string, options?: any): AxiosPromise { - return localVarFp.shopOrderControllerClaim(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Create - * @param {ShopOrderCreateDTO} [shopOrderCreateDTO] ShopOrderCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - shopOrderControllerCreate(shopOrderCreateDTO?: ShopOrderCreateDTO, options?: any): AxiosPromise { - return localVarFp.shopOrderControllerCreate(shopOrderCreateDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Get an order by its ID. This endpoint only returns orders that belong to the caller. When the caller has permission to view all orders, they can get any order. - * @summary Get order by ID - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - shopOrderControllerGetOne(id: string, options?: any): AxiosPromise { - return localVarFp.shopOrderControllerGetOne(id, options).then((request) => request(axios, basePath)); - }, - /** - * Search for orders. By default, this endpoint only returns your own orders. When the caller has permission to view all orders, they can search for all orders. - * @summary Search orders - * @param {ShopOrderSearchInputDTO} [shopOrderSearchInputDTO] ShopOrderSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - shopOrderControllerSearch(shopOrderSearchInputDTO?: ShopOrderSearchInputDTO, options?: any): AxiosPromise { - return localVarFp.shopOrderControllerSearch(shopOrderSearchInputDTO, options).then((request) => request(axios, basePath)); - }, - }; + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `MANAGE_USERS` + * @summary Remove + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + userControllerRemove: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('userControllerRemove', 'id', id); + const localVarPath = `/user/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES` + * @summary Remove role + * @param {string} id + * @param {string} roleId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + userControllerRemoveRole: async ( + id: string, + roleId: string, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('userControllerRemoveRole', 'id', id); + // verify required parameter 'roleId' is not null or undefined + assertParamExists('userControllerRemoveRole', 'roleId', roleId); + const localVarPath = `/user/{id}/role/{roleId}` + .replace(`{${'id'}}`, encodeURIComponent(String(id))) + .replace(`{${'roleId'}}`, encodeURIComponent(String(roleId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `READ_USERS` + * @summary Search + * @param {UserSearchInputDTO} [userSearchInputDTO] UserSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + userControllerSearch: async ( + userSearchInputDTO?: UserSearchInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/user/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(userSearchInputDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * One user can have multiple domains, this endpoint is a helper to set the selected domain for the user + * @summary Set the selected domain for the user + * @param {string} domainId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + userControllerSetSelectedDomain: async ( + domainId: string, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'domainId' is not null or undefined + assertParamExists('userControllerSetSelectedDomain', 'domainId', domainId); + const localVarPath = `/selected-domain/{domainId}`.replace( + `{${'domainId'}}`, + encodeURIComponent(String(domainId)), + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `MANAGE_USERS` + * @summary Update + * @param {string} id + * @param {UserUpdateDTO} [userUpdateDTO] UserUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + userControllerUpdate: async ( + id: string, + userUpdateDTO?: UserUpdateDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('userControllerUpdate', 'id', id); + const localVarPath = `/user/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(userUpdateDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; }; /** - * ShopOrderApi - object-oriented interface + * UserApi - functional programming interface * @export - * @class ShopOrderApi - * @extends {BaseAPI} */ -export class ShopOrderApi extends BaseAPI { +export const UserApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration); + return { /** - * - * @summary Cancel - * @param {string} id + * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES` + * @summary Assign role + * @param {string} id + * @param {string} roleId + * @param {UserRoleAssignChangeDTO} [userRoleAssignChangeDTO] UserRoleAssignChangeDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async userControllerAssignRole( + id: string, + roleId: string, + userRoleAssignChangeDTO?: UserRoleAssignChangeDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerAssignRole( + id, + roleId, + userRoleAssignChangeDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['UserApi.userControllerAssignRole']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `MANAGE_USERS` + * @summary Create + * @param {UserCreateInputDTO} [userCreateInputDTO] UserCreateInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async userControllerCreate( + userCreateInputDTO?: UserCreateInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerCreate(userCreateInputDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['UserApi.userControllerCreate']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Unset the selected domain for the user, this will clear the domain cookie. On the next request, the backend will set this again. + * @summary Unset the selected domain for the user * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof ShopOrderApi */ - public shopOrderControllerCancel(id: string, options?: RawAxiosRequestConfig) { - return ShopOrderApiFp(this.configuration).shopOrderControllerCancel(id, options).then((request) => request(this.axios, this.basePath)); - } - + async userControllerDeleteSelectedDomainCookie( + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerDeleteSelectedDomainCookie(options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['UserApi.userControllerDeleteSelectedDomainCookie']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, /** - * Claiming an order will mark it as completed and give the user the item in-game - * @summary Claim an order - * @param {string} id + * Required permissions: `READ_USERS` + * @summary Get one + * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof ShopOrderApi */ - public shopOrderControllerClaim(id: string, options?: RawAxiosRequestConfig) { - return ShopOrderApiFp(this.configuration).shopOrderControllerClaim(id, options).then((request) => request(this.axios, this.basePath)); - } - + async userControllerGetOne( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerGetOne(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['UserApi.userControllerGetOne']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, /** - * - * @summary Create - * @param {ShopOrderCreateDTO} [shopOrderCreateDTO] ShopOrderCreateDTO + * Required permissions: `MANAGE_USERS` + * @summary Invite + * @param {InviteCreateDTO} [inviteCreateDTO] InviteCreateDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof ShopOrderApi */ - public shopOrderControllerCreate(shopOrderCreateDTO?: ShopOrderCreateDTO, options?: RawAxiosRequestConfig) { - return ShopOrderApiFp(this.configuration).shopOrderControllerCreate(shopOrderCreateDTO, options).then((request) => request(this.axios, this.basePath)); - } - + async userControllerInvite( + inviteCreateDTO?: InviteCreateDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerInvite(inviteCreateDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['UserApi.userControllerInvite']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, /** - * Get an order by its ID. This endpoint only returns orders that belong to the caller. When the caller has permission to view all orders, they can get any order. - * @summary Get order by ID - * @param {string} id + * Link your player profile to Takaro, allowing web access for things like shop and stats. To get the code, use the /link command in the game. + * @summary Link player profile + * @param {LinkPlayerUnauthedInputDTO} [linkPlayerUnauthedInputDTO] LinkPlayerUnauthedInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof ShopOrderApi */ - public shopOrderControllerGetOne(id: string, options?: RawAxiosRequestConfig) { - return ShopOrderApiFp(this.configuration).shopOrderControllerGetOne(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * Search for orders. By default, this endpoint only returns your own orders. When the caller has permission to view all orders, they can search for all orders. - * @summary Search orders - * @param {ShopOrderSearchInputDTO} [shopOrderSearchInputDTO] ShopOrderSearchInputDTO + async userControllerLinkPlayerProfile( + linkPlayerUnauthedInputDTO?: LinkPlayerUnauthedInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerLinkPlayerProfile( + linkPlayerUnauthedInputDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['UserApi.userControllerLinkPlayerProfile']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * + * @summary Login + * @param {LoginDTO} [loginDTO] LoginDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof ShopOrderApi */ - public shopOrderControllerSearch(shopOrderSearchInputDTO?: ShopOrderSearchInputDTO, options?: RawAxiosRequestConfig) { - return ShopOrderApiFp(this.configuration).shopOrderControllerSearch(shopOrderSearchInputDTO, options).then((request) => request(this.axios, this.basePath)); - } -} - - - -/** - * StatsApi - axios parameter creator - * @export - */ -export const StatsApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * Required permissions: `READ_PLAYERS` - * @summary Get activity stats - * @param {StatsControllerGetActivityStatsTimeTypeEnum} timeType - * @param {StatsControllerGetActivityStatsDataTypeEnum} dataType - * @param {string} [gameServerId] - * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] - * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - statsControllerGetActivityStats: async (timeType: StatsControllerGetActivityStatsTimeTypeEnum, dataType: StatsControllerGetActivityStatsDataTypeEnum, gameServerId?: string, startDate?: StatsControllerGetPingStatsStartDateParameter, endDate?: StatsControllerGetPingStatsStartDateParameter, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'timeType' is not null or undefined - assertParamExists('statsControllerGetActivityStats', 'timeType', timeType) - // verify required parameter 'dataType' is not null or undefined - assertParamExists('statsControllerGetActivityStats', 'dataType', dataType) - const localVarPath = `/stats/activity`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - if (gameServerId !== undefined) { - localVarQueryParameter['gameServerId'] = gameServerId; - } - - if (timeType !== undefined) { - localVarQueryParameter['timeType'] = timeType; - } - - if (dataType !== undefined) { - localVarQueryParameter['dataType'] = dataType; - } - - if (startDate !== undefined) { - localVarQueryParameter['startDate'] = startDate; - } - - if (endDate !== undefined) { - localVarQueryParameter['endDate'] = endDate; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Calculates how many players are from each country. Returns a count per country (ISO3166). Required permissions: `READ_PLAYERS` - * @summary Get statistics about the countries of the players - * @param {Array} [gameServerId] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - statsControllerGetCountryStats: async (gameServerId?: Array, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/stats/countries`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - if (gameServerId) { - localVarQueryParameter['gameServerId'] = gameServerId; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `READ_PLAYERS` - * @summary Get currency stats - * @param {string} gameServerId - * @param {string} [playerId] - * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] - * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - statsControllerGetCurrencyStats: async (gameServerId: string, playerId?: string, startDate?: StatsControllerGetPingStatsStartDateParameter, endDate?: StatsControllerGetPingStatsStartDateParameter, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'gameServerId' is not null or undefined - assertParamExists('statsControllerGetCurrencyStats', 'gameServerId', gameServerId) - const localVarPath = `/stats/currency`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - if (gameServerId !== undefined) { - localVarQueryParameter['gameServerId'] = gameServerId; - } - - if (playerId !== undefined) { - localVarQueryParameter['playerId'] = playerId; - } - - if (startDate !== undefined) { - localVarQueryParameter['startDate'] = startDate; - } - - if (endDate !== undefined) { - localVarQueryParameter['endDate'] = endDate; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Calculates how many times an event type has occured over `bucketStep` time. Supports different filters and can return multiple series at a time. Required permissions: `READ_PLAYERS` - * @summary Get event count over time - * @param {StatsControllerGetEventsCountEventNameEnum} eventName - * @param {StatsControllerGetEventsCountBucketStepEnum} bucketStep - * @param {Array} [sumBy] - * @param {string} [gameServerId] - * @param {string} [moduleId] - * @param {string} [playerId] - * @param {string} [userId] - * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] - * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - statsControllerGetEventsCount: async (eventName: StatsControllerGetEventsCountEventNameEnum, bucketStep: StatsControllerGetEventsCountBucketStepEnum, sumBy?: Array, gameServerId?: string, moduleId?: string, playerId?: string, userId?: string, startDate?: StatsControllerGetPingStatsStartDateParameter, endDate?: StatsControllerGetPingStatsStartDateParameter, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'eventName' is not null or undefined - assertParamExists('statsControllerGetEventsCount', 'eventName', eventName) - // verify required parameter 'bucketStep' is not null or undefined - assertParamExists('statsControllerGetEventsCount', 'bucketStep', bucketStep) - const localVarPath = `/stats/events-count`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - if (eventName !== undefined) { - localVarQueryParameter['eventName'] = eventName; - } - - if (sumBy) { - localVarQueryParameter['sumBy'] = sumBy; - } - - if (gameServerId !== undefined) { - localVarQueryParameter['gameServerId'] = gameServerId; - } - - if (moduleId !== undefined) { - localVarQueryParameter['moduleId'] = moduleId; - } - - if (playerId !== undefined) { - localVarQueryParameter['playerId'] = playerId; - } - - if (userId !== undefined) { - localVarQueryParameter['userId'] = userId; - } - - if (bucketStep !== undefined) { - localVarQueryParameter['bucketStep'] = bucketStep; - } - - if (startDate !== undefined) { - localVarQueryParameter['startDate'] = startDate; - } - - if (endDate !== undefined) { - localVarQueryParameter['endDate'] = endDate; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * The roundtrip time for reachability tests between Takaro and the game server - * @summary Get latency stats - * @param {string} gameServerId - * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] - * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - statsControllerGetLatencyStats: async (gameServerId: string, startDate?: StatsControllerGetPingStatsStartDateParameter, endDate?: StatsControllerGetPingStatsStartDateParameter, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'gameServerId' is not null or undefined - assertParamExists('statsControllerGetLatencyStats', 'gameServerId', gameServerId) - const localVarPath = `/stats/latency`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - if (gameServerId !== undefined) { - localVarQueryParameter['gameServerId'] = gameServerId; - } - - if (startDate !== undefined) { - localVarQueryParameter['startDate'] = startDate; - } - - if (endDate !== undefined) { - localVarQueryParameter['endDate'] = endDate; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `READ_PLAYERS` - * @summary Get ping stats - * @param {string} gameServerId - * @param {string} playerId - * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] - * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - statsControllerGetPingStats: async (gameServerId: string, playerId: string, startDate?: StatsControllerGetPingStatsStartDateParameter, endDate?: StatsControllerGetPingStatsStartDateParameter, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'gameServerId' is not null or undefined - assertParamExists('statsControllerGetPingStats', 'gameServerId', gameServerId) - // verify required parameter 'playerId' is not null or undefined - assertParamExists('statsControllerGetPingStats', 'playerId', playerId) - const localVarPath = `/stats/ping`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - if (gameServerId !== undefined) { - localVarQueryParameter['gameServerId'] = gameServerId; - } - - if (playerId !== undefined) { - localVarQueryParameter['playerId'] = playerId; - } - - if (startDate !== undefined) { - localVarQueryParameter['startDate'] = startDate; - } - - if (endDate !== undefined) { - localVarQueryParameter['endDate'] = endDate; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `READ_PLAYERS` - * @summary Get player online stats - * @param {string} [gameServerId] - * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] - * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - statsControllerGetPlayerOnlineStats: async (gameServerId?: string, startDate?: StatsControllerGetPingStatsStartDateParameter, endDate?: StatsControllerGetPingStatsStartDateParameter, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/stats/players-online`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - if (gameServerId !== undefined) { - localVarQueryParameter['gameServerId'] = gameServerId; - } - - if (startDate !== undefined) { - localVarQueryParameter['startDate'] = startDate; - } - - if (endDate !== undefined) { - localVarQueryParameter['endDate'] = endDate; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * StatsApi - functional programming interface - * @export - */ -export const StatsApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = StatsApiAxiosParamCreator(configuration) - return { - /** - * Required permissions: `READ_PLAYERS` - * @summary Get activity stats - * @param {StatsControllerGetActivityStatsTimeTypeEnum} timeType - * @param {StatsControllerGetActivityStatsDataTypeEnum} dataType - * @param {string} [gameServerId] - * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] - * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async statsControllerGetActivityStats(timeType: StatsControllerGetActivityStatsTimeTypeEnum, dataType: StatsControllerGetActivityStatsDataTypeEnum, gameServerId?: string, startDate?: StatsControllerGetPingStatsStartDateParameter, endDate?: StatsControllerGetPingStatsStartDateParameter, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.statsControllerGetActivityStats(timeType, dataType, gameServerId, startDate, endDate, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['StatsApi.statsControllerGetActivityStats']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Calculates how many players are from each country. Returns a count per country (ISO3166). Required permissions: `READ_PLAYERS` - * @summary Get statistics about the countries of the players - * @param {Array} [gameServerId] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async statsControllerGetCountryStats(gameServerId?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.statsControllerGetCountryStats(gameServerId, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['StatsApi.statsControllerGetCountryStats']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `READ_PLAYERS` - * @summary Get currency stats - * @param {string} gameServerId - * @param {string} [playerId] - * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] - * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async statsControllerGetCurrencyStats(gameServerId: string, playerId?: string, startDate?: StatsControllerGetPingStatsStartDateParameter, endDate?: StatsControllerGetPingStatsStartDateParameter, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.statsControllerGetCurrencyStats(gameServerId, playerId, startDate, endDate, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['StatsApi.statsControllerGetCurrencyStats']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Calculates how many times an event type has occured over `bucketStep` time. Supports different filters and can return multiple series at a time. Required permissions: `READ_PLAYERS` - * @summary Get event count over time - * @param {StatsControllerGetEventsCountEventNameEnum} eventName - * @param {StatsControllerGetEventsCountBucketStepEnum} bucketStep - * @param {Array} [sumBy] - * @param {string} [gameServerId] - * @param {string} [moduleId] - * @param {string} [playerId] - * @param {string} [userId] - * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] - * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async statsControllerGetEventsCount(eventName: StatsControllerGetEventsCountEventNameEnum, bucketStep: StatsControllerGetEventsCountBucketStepEnum, sumBy?: Array, gameServerId?: string, moduleId?: string, playerId?: string, userId?: string, startDate?: StatsControllerGetPingStatsStartDateParameter, endDate?: StatsControllerGetPingStatsStartDateParameter, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.statsControllerGetEventsCount(eventName, bucketStep, sumBy, gameServerId, moduleId, playerId, userId, startDate, endDate, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['StatsApi.statsControllerGetEventsCount']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * The roundtrip time for reachability tests between Takaro and the game server - * @summary Get latency stats - * @param {string} gameServerId - * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] - * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async statsControllerGetLatencyStats(gameServerId: string, startDate?: StatsControllerGetPingStatsStartDateParameter, endDate?: StatsControllerGetPingStatsStartDateParameter, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.statsControllerGetLatencyStats(gameServerId, startDate, endDate, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['StatsApi.statsControllerGetLatencyStats']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `READ_PLAYERS` - * @summary Get ping stats - * @param {string} gameServerId - * @param {string} playerId - * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] - * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async statsControllerGetPingStats(gameServerId: string, playerId: string, startDate?: StatsControllerGetPingStatsStartDateParameter, endDate?: StatsControllerGetPingStatsStartDateParameter, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.statsControllerGetPingStats(gameServerId, playerId, startDate, endDate, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['StatsApi.statsControllerGetPingStats']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `READ_PLAYERS` - * @summary Get player online stats - * @param {string} [gameServerId] - * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] - * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async statsControllerGetPlayerOnlineStats(gameServerId?: string, startDate?: StatsControllerGetPingStatsStartDateParameter, endDate?: StatsControllerGetPingStatsStartDateParameter, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.statsControllerGetPlayerOnlineStats(gameServerId, startDate, endDate, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['StatsApi.statsControllerGetPlayerOnlineStats']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - } -}; - -/** - * StatsApi - factory interface - * @export - */ -export const StatsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = StatsApiFp(configuration) - return { - /** - * Required permissions: `READ_PLAYERS` - * @summary Get activity stats - * @param {StatsControllerGetActivityStatsTimeTypeEnum} timeType - * @param {StatsControllerGetActivityStatsDataTypeEnum} dataType - * @param {string} [gameServerId] - * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] - * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - statsControllerGetActivityStats(timeType: StatsControllerGetActivityStatsTimeTypeEnum, dataType: StatsControllerGetActivityStatsDataTypeEnum, gameServerId?: string, startDate?: StatsControllerGetPingStatsStartDateParameter, endDate?: StatsControllerGetPingStatsStartDateParameter, options?: any): AxiosPromise { - return localVarFp.statsControllerGetActivityStats(timeType, dataType, gameServerId, startDate, endDate, options).then((request) => request(axios, basePath)); - }, - /** - * Calculates how many players are from each country. Returns a count per country (ISO3166). Required permissions: `READ_PLAYERS` - * @summary Get statistics about the countries of the players - * @param {Array} [gameServerId] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - statsControllerGetCountryStats(gameServerId?: Array, options?: any): AxiosPromise { - return localVarFp.statsControllerGetCountryStats(gameServerId, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `READ_PLAYERS` - * @summary Get currency stats - * @param {string} gameServerId - * @param {string} [playerId] - * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] - * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - statsControllerGetCurrencyStats(gameServerId: string, playerId?: string, startDate?: StatsControllerGetPingStatsStartDateParameter, endDate?: StatsControllerGetPingStatsStartDateParameter, options?: any): AxiosPromise { - return localVarFp.statsControllerGetCurrencyStats(gameServerId, playerId, startDate, endDate, options).then((request) => request(axios, basePath)); - }, - /** - * Calculates how many times an event type has occured over `bucketStep` time. Supports different filters and can return multiple series at a time. Required permissions: `READ_PLAYERS` - * @summary Get event count over time - * @param {StatsControllerGetEventsCountEventNameEnum} eventName - * @param {StatsControllerGetEventsCountBucketStepEnum} bucketStep - * @param {Array} [sumBy] - * @param {string} [gameServerId] - * @param {string} [moduleId] - * @param {string} [playerId] - * @param {string} [userId] - * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] - * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - statsControllerGetEventsCount(eventName: StatsControllerGetEventsCountEventNameEnum, bucketStep: StatsControllerGetEventsCountBucketStepEnum, sumBy?: Array, gameServerId?: string, moduleId?: string, playerId?: string, userId?: string, startDate?: StatsControllerGetPingStatsStartDateParameter, endDate?: StatsControllerGetPingStatsStartDateParameter, options?: any): AxiosPromise { - return localVarFp.statsControllerGetEventsCount(eventName, bucketStep, sumBy, gameServerId, moduleId, playerId, userId, startDate, endDate, options).then((request) => request(axios, basePath)); - }, - /** - * The roundtrip time for reachability tests between Takaro and the game server - * @summary Get latency stats - * @param {string} gameServerId - * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] - * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - statsControllerGetLatencyStats(gameServerId: string, startDate?: StatsControllerGetPingStatsStartDateParameter, endDate?: StatsControllerGetPingStatsStartDateParameter, options?: any): AxiosPromise { - return localVarFp.statsControllerGetLatencyStats(gameServerId, startDate, endDate, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `READ_PLAYERS` - * @summary Get ping stats - * @param {string} gameServerId - * @param {string} playerId - * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] - * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - statsControllerGetPingStats(gameServerId: string, playerId: string, startDate?: StatsControllerGetPingStatsStartDateParameter, endDate?: StatsControllerGetPingStatsStartDateParameter, options?: any): AxiosPromise { - return localVarFp.statsControllerGetPingStats(gameServerId, playerId, startDate, endDate, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `READ_PLAYERS` - * @summary Get player online stats - * @param {string} [gameServerId] - * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] - * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - statsControllerGetPlayerOnlineStats(gameServerId?: string, startDate?: StatsControllerGetPingStatsStartDateParameter, endDate?: StatsControllerGetPingStatsStartDateParameter, options?: any): AxiosPromise { - return localVarFp.statsControllerGetPlayerOnlineStats(gameServerId, startDate, endDate, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * StatsApi - object-oriented interface - * @export - * @class StatsApi - * @extends {BaseAPI} - */ -export class StatsApi extends BaseAPI { - /** - * Required permissions: `READ_PLAYERS` - * @summary Get activity stats - * @param {StatsControllerGetActivityStatsTimeTypeEnum} timeType - * @param {StatsControllerGetActivityStatsDataTypeEnum} dataType - * @param {string} [gameServerId] - * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] - * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] + async userControllerLogin( + loginDTO?: LoginDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerLogin(loginDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['UserApi.userControllerLogin']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * + * @summary Logout * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof StatsApi */ - public statsControllerGetActivityStats(timeType: StatsControllerGetActivityStatsTimeTypeEnum, dataType: StatsControllerGetActivityStatsDataTypeEnum, gameServerId?: string, startDate?: StatsControllerGetPingStatsStartDateParameter, endDate?: StatsControllerGetPingStatsStartDateParameter, options?: RawAxiosRequestConfig) { - return StatsApiFp(this.configuration).statsControllerGetActivityStats(timeType, dataType, gameServerId, startDate, endDate, options).then((request) => request(this.axios, this.basePath)); - } - + async userControllerLogout( + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerLogout(options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['UserApi.userControllerLogout']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, /** - * Calculates how many players are from each country. Returns a count per country (ISO3166). Required permissions: `READ_PLAYERS` - * @summary Get statistics about the countries of the players - * @param {Array} [gameServerId] + * Get the current user and the domains that the user has access to. Note that you can only make requests in the scope of a single domain. In order to switch the domain, you need to use the domain selection endpoints + * @summary Get the current logged in user * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof StatsApi */ - public statsControllerGetCountryStats(gameServerId?: Array, options?: RawAxiosRequestConfig) { - return StatsApiFp(this.configuration).statsControllerGetCountryStats(gameServerId, options).then((request) => request(this.axios, this.basePath)); - } - + async userControllerMe( + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerMe(options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['UserApi.userControllerMe']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, /** - * Required permissions: `READ_PLAYERS` - * @summary Get currency stats - * @param {string} gameServerId - * @param {string} [playerId] - * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] - * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] + * Required permissions: `MANAGE_USERS` + * @summary Remove + * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof StatsApi */ - public statsControllerGetCurrencyStats(gameServerId: string, playerId?: string, startDate?: StatsControllerGetPingStatsStartDateParameter, endDate?: StatsControllerGetPingStatsStartDateParameter, options?: RawAxiosRequestConfig) { - return StatsApiFp(this.configuration).statsControllerGetCurrencyStats(gameServerId, playerId, startDate, endDate, options).then((request) => request(this.axios, this.basePath)); - } - + async userControllerRemove( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerRemove(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['UserApi.userControllerRemove']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, /** - * Calculates how many times an event type has occured over `bucketStep` time. Supports different filters and can return multiple series at a time. Required permissions: `READ_PLAYERS` - * @summary Get event count over time - * @param {StatsControllerGetEventsCountEventNameEnum} eventName - * @param {StatsControllerGetEventsCountBucketStepEnum} bucketStep - * @param {Array} [sumBy] - * @param {string} [gameServerId] - * @param {string} [moduleId] - * @param {string} [playerId] - * @param {string} [userId] - * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] - * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] + * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES` + * @summary Remove role + * @param {string} id + * @param {string} roleId * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof StatsApi */ - public statsControllerGetEventsCount(eventName: StatsControllerGetEventsCountEventNameEnum, bucketStep: StatsControllerGetEventsCountBucketStepEnum, sumBy?: Array, gameServerId?: string, moduleId?: string, playerId?: string, userId?: string, startDate?: StatsControllerGetPingStatsStartDateParameter, endDate?: StatsControllerGetPingStatsStartDateParameter, options?: RawAxiosRequestConfig) { - return StatsApiFp(this.configuration).statsControllerGetEventsCount(eventName, bucketStep, sumBy, gameServerId, moduleId, playerId, userId, startDate, endDate, options).then((request) => request(this.axios, this.basePath)); - } - + async userControllerRemoveRole( + id: string, + roleId: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerRemoveRole(id, roleId, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['UserApi.userControllerRemoveRole']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, /** - * The roundtrip time for reachability tests between Takaro and the game server - * @summary Get latency stats - * @param {string} gameServerId - * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] - * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] + * Required permissions: `READ_USERS` + * @summary Search + * @param {UserSearchInputDTO} [userSearchInputDTO] UserSearchInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof StatsApi */ - public statsControllerGetLatencyStats(gameServerId: string, startDate?: StatsControllerGetPingStatsStartDateParameter, endDate?: StatsControllerGetPingStatsStartDateParameter, options?: RawAxiosRequestConfig) { - return StatsApiFp(this.configuration).statsControllerGetLatencyStats(gameServerId, startDate, endDate, options).then((request) => request(this.axios, this.basePath)); - } - + async userControllerSearch( + userSearchInputDTO?: UserSearchInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerSearch(userSearchInputDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['UserApi.userControllerSearch']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, /** - * Required permissions: `READ_PLAYERS` - * @summary Get ping stats - * @param {string} gameServerId - * @param {string} playerId - * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] - * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] + * One user can have multiple domains, this endpoint is a helper to set the selected domain for the user + * @summary Set the selected domain for the user + * @param {string} domainId * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof StatsApi */ - public statsControllerGetPingStats(gameServerId: string, playerId: string, startDate?: StatsControllerGetPingStatsStartDateParameter, endDate?: StatsControllerGetPingStatsStartDateParameter, options?: RawAxiosRequestConfig) { - return StatsApiFp(this.configuration).statsControllerGetPingStats(gameServerId, playerId, startDate, endDate, options).then((request) => request(this.axios, this.basePath)); - } - + async userControllerSetSelectedDomain( + domainId: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerSetSelectedDomain(domainId, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['UserApi.userControllerSetSelectedDomain']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, /** - * Required permissions: `READ_PLAYERS` - * @summary Get player online stats - * @param {string} [gameServerId] - * @param {StatsControllerGetPingStatsStartDateParameter} [startDate] - * @param {StatsControllerGetPingStatsStartDateParameter} [endDate] + * Required permissions: `MANAGE_USERS` + * @summary Update + * @param {string} id + * @param {UserUpdateDTO} [userUpdateDTO] UserUpdateDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof StatsApi */ - public statsControllerGetPlayerOnlineStats(gameServerId?: string, startDate?: StatsControllerGetPingStatsStartDateParameter, endDate?: StatsControllerGetPingStatsStartDateParameter, options?: RawAxiosRequestConfig) { - return StatsApiFp(this.configuration).statsControllerGetPlayerOnlineStats(gameServerId, startDate, endDate, options).then((request) => request(this.axios, this.basePath)); - } -} - -/** - * @export - */ -export const StatsControllerGetActivityStatsTimeTypeEnum = { - Daily: 'daily', - Weekly: 'weekly', - Monthly: 'monthly' -} as const; -export type StatsControllerGetActivityStatsTimeTypeEnum = typeof StatsControllerGetActivityStatsTimeTypeEnum[keyof typeof StatsControllerGetActivityStatsTimeTypeEnum]; -/** - * @export - */ -export const StatsControllerGetActivityStatsDataTypeEnum = { - Users: 'users', - Players: 'players' -} as const; -export type StatsControllerGetActivityStatsDataTypeEnum = typeof StatsControllerGetActivityStatsDataTypeEnum[keyof typeof StatsControllerGetActivityStatsDataTypeEnum]; -/** - * @export - */ -export const StatsControllerGetEventsCountEventNameEnum = { - RoleAssigned: 'role-assigned', - RoleRemoved: 'role-removed', - RoleCreated: 'role-created', - RoleUpdated: 'role-updated', - RoleDeleted: 'role-deleted', - CommandExecuted: 'command-executed', - HookExecuted: 'hook-executed', - CronjobExecuted: 'cronjob-executed', - CurrencyAdded: 'currency-added', - CurrencyDeducted: 'currency-deducted', - SettingsSet: 'settings-set', - PlayerNewIpDetected: 'player-new-ip-detected', - ServerStatusChanged: 'server-status-changed', - ModuleCreated: 'module-created', - ModuleUpdated: 'module-updated', - ModuleDeleted: 'module-deleted', - ModuleInstalled: 'module-installed', - ModuleUninstalled: 'module-uninstalled', - PlayerCreated: 'player-created', - ShopListingCreated: 'shop-listing-created', - ShopListingUpdated: 'shop-listing-updated', - ShopListingDeleted: 'shop-listing-deleted', - ShopOrderCreated: 'shop-order-created', - ShopOrderStatusChanged: 'shop-order-status-changed', - PlayerLinked: 'player-linked', - PlayerConnected: 'player-connected', - PlayerDisconnected: 'player-disconnected', - ChatMessage: 'chat-message', - PlayerDeath: 'player-death', - EntityKilled: 'entity-killed' -} as const; -export type StatsControllerGetEventsCountEventNameEnum = typeof StatsControllerGetEventsCountEventNameEnum[keyof typeof StatsControllerGetEventsCountEventNameEnum]; -/** - * @export - */ -export const StatsControllerGetEventsCountBucketStepEnum = { - _5m: '5m', - _30m: '30m', - _1h: '1h', - _6h: '6h', - _12h: '12h', - _24h: '24h' -} as const; -export type StatsControllerGetEventsCountBucketStepEnum = typeof StatsControllerGetEventsCountBucketStepEnum[keyof typeof StatsControllerGetEventsCountBucketStepEnum]; -/** - * @export - */ -export const StatsControllerGetEventsCountSumByEnum = { - Player: 'player', - Module: 'module', - User: 'user', - Gameserver: 'gameserver' -} as const; -export type StatsControllerGetEventsCountSumByEnum = typeof StatsControllerGetEventsCountSumByEnum[keyof typeof StatsControllerGetEventsCountSumByEnum]; - - -/** - * UserApi - axios parameter creator - * @export - */ -export const UserApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES` - * @summary Assign role - * @param {string} id - * @param {string} roleId - * @param {UserRoleAssignChangeDTO} [userRoleAssignChangeDTO] UserRoleAssignChangeDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - userControllerAssignRole: async (id: string, roleId: string, userRoleAssignChangeDTO?: UserRoleAssignChangeDTO, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('userControllerAssignRole', 'id', id) - // verify required parameter 'roleId' is not null or undefined - assertParamExists('userControllerAssignRole', 'roleId', roleId) - const localVarPath = `/user/{id}/role/{roleId}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"roleId"}}`, encodeURIComponent(String(roleId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(userRoleAssignChangeDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `MANAGE_USERS` - * @summary Create - * @param {UserCreateInputDTO} [userCreateInputDTO] UserCreateInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - userControllerCreate: async (userCreateInputDTO?: UserCreateInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/user`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(userCreateInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Unset the selected domain for the user, this will clear the domain cookie. On the next request, the backend will set this again. - * @summary Unset the selected domain for the user - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - userControllerDeleteSelectedDomainCookie: async (options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/selected-domain`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `READ_USERS` - * @summary Get one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - userControllerGetOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('userControllerGetOne', 'id', id) - const localVarPath = `/user/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `MANAGE_USERS` - * @summary Invite - * @param {InviteCreateDTO} [inviteCreateDTO] InviteCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - userControllerInvite: async (inviteCreateDTO?: InviteCreateDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/user/invite`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(inviteCreateDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Link your player profile to Takaro, allowing web access for things like shop and stats. To get the code, use the /link command in the game. - * @summary Link player profile - * @param {LinkPlayerUnauthedInputDTO} [linkPlayerUnauthedInputDTO] LinkPlayerUnauthedInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - userControllerLinkPlayerProfile: async (linkPlayerUnauthedInputDTO?: LinkPlayerUnauthedInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/user/player`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(linkPlayerUnauthedInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Login - * @param {LoginDTO} [loginDTO] LoginDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - userControllerLogin: async (loginDTO?: LoginDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/login`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(loginDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Logout - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - userControllerLogout: async (options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/logout`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Get the current user and the domains that the user has access to. Note that you can only make requests in the scope of a single domain. In order to switch the domain, you need to use the domain selection endpoints - * @summary Get the current logged in user - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - userControllerMe: async (options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/me`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `MANAGE_USERS` - * @summary Remove - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - userControllerRemove: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('userControllerRemove', 'id', id) - const localVarPath = `/user/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES` - * @summary Remove role - * @param {string} id - * @param {string} roleId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - userControllerRemoveRole: async (id: string, roleId: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('userControllerRemoveRole', 'id', id) - // verify required parameter 'roleId' is not null or undefined - assertParamExists('userControllerRemoveRole', 'roleId', roleId) - const localVarPath = `/user/{id}/role/{roleId}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"roleId"}}`, encodeURIComponent(String(roleId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `READ_USERS` - * @summary Search - * @param {UserSearchInputDTO} [userSearchInputDTO] UserSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - userControllerSearch: async (userSearchInputDTO?: UserSearchInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/user/search`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(userSearchInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * One user can have multiple domains, this endpoint is a helper to set the selected domain for the user - * @summary Set the selected domain for the user - * @param {string} domainId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - userControllerSetSelectedDomain: async (domainId: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'domainId' is not null or undefined - assertParamExists('userControllerSetSelectedDomain', 'domainId', domainId) - const localVarPath = `/selected-domain/{domainId}` - .replace(`{${"domainId"}}`, encodeURIComponent(String(domainId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `MANAGE_USERS` - * @summary Update - * @param {string} id - * @param {UserUpdateDTO} [userUpdateDTO] UserUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - userControllerUpdate: async (id: string, userUpdateDTO?: UserUpdateDTO, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('userControllerUpdate', 'id', id) - const localVarPath = `/user/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(userUpdateDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * UserApi - functional programming interface - * @export - */ -export const UserApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration) - return { - /** - * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES` - * @summary Assign role - * @param {string} id - * @param {string} roleId - * @param {UserRoleAssignChangeDTO} [userRoleAssignChangeDTO] UserRoleAssignChangeDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async userControllerAssignRole(id: string, roleId: string, userRoleAssignChangeDTO?: UserRoleAssignChangeDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerAssignRole(id, roleId, userRoleAssignChangeDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['UserApi.userControllerAssignRole']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `MANAGE_USERS` - * @summary Create - * @param {UserCreateInputDTO} [userCreateInputDTO] UserCreateInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async userControllerCreate(userCreateInputDTO?: UserCreateInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerCreate(userCreateInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['UserApi.userControllerCreate']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Unset the selected domain for the user, this will clear the domain cookie. On the next request, the backend will set this again. - * @summary Unset the selected domain for the user - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async userControllerDeleteSelectedDomainCookie(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerDeleteSelectedDomainCookie(options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['UserApi.userControllerDeleteSelectedDomainCookie']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `READ_USERS` - * @summary Get one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async userControllerGetOne(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerGetOne(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['UserApi.userControllerGetOne']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `MANAGE_USERS` - * @summary Invite - * @param {InviteCreateDTO} [inviteCreateDTO] InviteCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async userControllerInvite(inviteCreateDTO?: InviteCreateDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerInvite(inviteCreateDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['UserApi.userControllerInvite']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Link your player profile to Takaro, allowing web access for things like shop and stats. To get the code, use the /link command in the game. - * @summary Link player profile - * @param {LinkPlayerUnauthedInputDTO} [linkPlayerUnauthedInputDTO] LinkPlayerUnauthedInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async userControllerLinkPlayerProfile(linkPlayerUnauthedInputDTO?: LinkPlayerUnauthedInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerLinkPlayerProfile(linkPlayerUnauthedInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['UserApi.userControllerLinkPlayerProfile']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * - * @summary Login - * @param {LoginDTO} [loginDTO] LoginDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async userControllerLogin(loginDTO?: LoginDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerLogin(loginDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['UserApi.userControllerLogin']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * - * @summary Logout - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async userControllerLogout(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerLogout(options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['UserApi.userControllerLogout']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Get the current user and the domains that the user has access to. Note that you can only make requests in the scope of a single domain. In order to switch the domain, you need to use the domain selection endpoints - * @summary Get the current logged in user - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async userControllerMe(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerMe(options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['UserApi.userControllerMe']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `MANAGE_USERS` - * @summary Remove - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async userControllerRemove(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerRemove(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['UserApi.userControllerRemove']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES` - * @summary Remove role - * @param {string} id - * @param {string} roleId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async userControllerRemoveRole(id: string, roleId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerRemoveRole(id, roleId, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['UserApi.userControllerRemoveRole']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `READ_USERS` - * @summary Search - * @param {UserSearchInputDTO} [userSearchInputDTO] UserSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async userControllerSearch(userSearchInputDTO?: UserSearchInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerSearch(userSearchInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['UserApi.userControllerSearch']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * One user can have multiple domains, this endpoint is a helper to set the selected domain for the user - * @summary Set the selected domain for the user - * @param {string} domainId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async userControllerSetSelectedDomain(domainId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerSetSelectedDomain(domainId, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['UserApi.userControllerSetSelectedDomain']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `MANAGE_USERS` - * @summary Update - * @param {string} id - * @param {UserUpdateDTO} [userUpdateDTO] UserUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async userControllerUpdate(id: string, userUpdateDTO?: UserUpdateDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerUpdate(id, userUpdateDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['UserApi.userControllerUpdate']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - } + async userControllerUpdate( + id: string, + userUpdateDTO?: UserUpdateDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerUpdate(id, userUpdateDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['UserApi.userControllerUpdate']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + }; }; /** @@ -21873,598 +24523,698 @@ export const UserApiFp = function(configuration?: Configuration) { * @export */ export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = UserApiFp(configuration) - return { - /** - * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES` - * @summary Assign role - * @param {string} id - * @param {string} roleId - * @param {UserRoleAssignChangeDTO} [userRoleAssignChangeDTO] UserRoleAssignChangeDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - userControllerAssignRole(id: string, roleId: string, userRoleAssignChangeDTO?: UserRoleAssignChangeDTO, options?: any): AxiosPromise { - return localVarFp.userControllerAssignRole(id, roleId, userRoleAssignChangeDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `MANAGE_USERS` - * @summary Create - * @param {UserCreateInputDTO} [userCreateInputDTO] UserCreateInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - userControllerCreate(userCreateInputDTO?: UserCreateInputDTO, options?: any): AxiosPromise { - return localVarFp.userControllerCreate(userCreateInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Unset the selected domain for the user, this will clear the domain cookie. On the next request, the backend will set this again. - * @summary Unset the selected domain for the user - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - userControllerDeleteSelectedDomainCookie(options?: any): AxiosPromise { - return localVarFp.userControllerDeleteSelectedDomainCookie(options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `READ_USERS` - * @summary Get one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - userControllerGetOne(id: string, options?: any): AxiosPromise { - return localVarFp.userControllerGetOne(id, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `MANAGE_USERS` - * @summary Invite - * @param {InviteCreateDTO} [inviteCreateDTO] InviteCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - userControllerInvite(inviteCreateDTO?: InviteCreateDTO, options?: any): AxiosPromise { - return localVarFp.userControllerInvite(inviteCreateDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Link your player profile to Takaro, allowing web access for things like shop and stats. To get the code, use the /link command in the game. - * @summary Link player profile - * @param {LinkPlayerUnauthedInputDTO} [linkPlayerUnauthedInputDTO] LinkPlayerUnauthedInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - userControllerLinkPlayerProfile(linkPlayerUnauthedInputDTO?: LinkPlayerUnauthedInputDTO, options?: any): AxiosPromise { - return localVarFp.userControllerLinkPlayerProfile(linkPlayerUnauthedInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Login - * @param {LoginDTO} [loginDTO] LoginDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - userControllerLogin(loginDTO?: LoginDTO, options?: any): AxiosPromise { - return localVarFp.userControllerLogin(loginDTO, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Logout - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - userControllerLogout(options?: any): AxiosPromise { - return localVarFp.userControllerLogout(options).then((request) => request(axios, basePath)); - }, - /** - * Get the current user and the domains that the user has access to. Note that you can only make requests in the scope of a single domain. In order to switch the domain, you need to use the domain selection endpoints - * @summary Get the current logged in user - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - userControllerMe(options?: any): AxiosPromise { - return localVarFp.userControllerMe(options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `MANAGE_USERS` - * @summary Remove - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - userControllerRemove(id: string, options?: any): AxiosPromise { - return localVarFp.userControllerRemove(id, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES` - * @summary Remove role - * @param {string} id - * @param {string} roleId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - userControllerRemoveRole(id: string, roleId: string, options?: any): AxiosPromise { - return localVarFp.userControllerRemoveRole(id, roleId, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `READ_USERS` - * @summary Search - * @param {UserSearchInputDTO} [userSearchInputDTO] UserSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - userControllerSearch(userSearchInputDTO?: UserSearchInputDTO, options?: any): AxiosPromise { - return localVarFp.userControllerSearch(userSearchInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * One user can have multiple domains, this endpoint is a helper to set the selected domain for the user - * @summary Set the selected domain for the user - * @param {string} domainId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - userControllerSetSelectedDomain(domainId: string, options?: any): AxiosPromise { - return localVarFp.userControllerSetSelectedDomain(domainId, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `MANAGE_USERS` - * @summary Update - * @param {string} id - * @param {UserUpdateDTO} [userUpdateDTO] UserUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - userControllerUpdate(id: string, userUpdateDTO?: UserUpdateDTO, options?: any): AxiosPromise { - return localVarFp.userControllerUpdate(id, userUpdateDTO, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * UserApi - object-oriented interface - * @export - * @class UserApi - * @extends {BaseAPI} - */ -export class UserApi extends BaseAPI { + const localVarFp = UserApiFp(configuration); + return { /** * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES` * @summary Assign role - * @param {string} id - * @param {string} roleId + * @param {string} id + * @param {string} roleId * @param {UserRoleAssignChangeDTO} [userRoleAssignChangeDTO] UserRoleAssignChangeDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof UserApi */ - public userControllerAssignRole(id: string, roleId: string, userRoleAssignChangeDTO?: UserRoleAssignChangeDTO, options?: RawAxiosRequestConfig) { - return UserApiFp(this.configuration).userControllerAssignRole(id, roleId, userRoleAssignChangeDTO, options).then((request) => request(this.axios, this.basePath)); - } - + userControllerAssignRole( + id: string, + roleId: string, + userRoleAssignChangeDTO?: UserRoleAssignChangeDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .userControllerAssignRole(id, roleId, userRoleAssignChangeDTO, options) + .then((request) => request(axios, basePath)); + }, /** * Required permissions: `MANAGE_USERS` * @summary Create * @param {UserCreateInputDTO} [userCreateInputDTO] UserCreateInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof UserApi */ - public userControllerCreate(userCreateInputDTO?: UserCreateInputDTO, options?: RawAxiosRequestConfig) { - return UserApiFp(this.configuration).userControllerCreate(userCreateInputDTO, options).then((request) => request(this.axios, this.basePath)); - } - + userControllerCreate(userCreateInputDTO?: UserCreateInputDTO, options?: any): AxiosPromise { + return localVarFp.userControllerCreate(userCreateInputDTO, options).then((request) => request(axios, basePath)); + }, /** * Unset the selected domain for the user, this will clear the domain cookie. On the next request, the backend will set this again. * @summary Unset the selected domain for the user * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof UserApi */ - public userControllerDeleteSelectedDomainCookie(options?: RawAxiosRequestConfig) { - return UserApiFp(this.configuration).userControllerDeleteSelectedDomainCookie(options).then((request) => request(this.axios, this.basePath)); - } - + userControllerDeleteSelectedDomainCookie(options?: any): AxiosPromise { + return localVarFp.userControllerDeleteSelectedDomainCookie(options).then((request) => request(axios, basePath)); + }, /** * Required permissions: `READ_USERS` * @summary Get one - * @param {string} id + * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof UserApi */ - public userControllerGetOne(id: string, options?: RawAxiosRequestConfig) { - return UserApiFp(this.configuration).userControllerGetOne(id, options).then((request) => request(this.axios, this.basePath)); - } - + userControllerGetOne(id: string, options?: any): AxiosPromise { + return localVarFp.userControllerGetOne(id, options).then((request) => request(axios, basePath)); + }, /** * Required permissions: `MANAGE_USERS` * @summary Invite * @param {InviteCreateDTO} [inviteCreateDTO] InviteCreateDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof UserApi */ - public userControllerInvite(inviteCreateDTO?: InviteCreateDTO, options?: RawAxiosRequestConfig) { - return UserApiFp(this.configuration).userControllerInvite(inviteCreateDTO, options).then((request) => request(this.axios, this.basePath)); - } - + userControllerInvite(inviteCreateDTO?: InviteCreateDTO, options?: any): AxiosPromise { + return localVarFp.userControllerInvite(inviteCreateDTO, options).then((request) => request(axios, basePath)); + }, /** * Link your player profile to Takaro, allowing web access for things like shop and stats. To get the code, use the /link command in the game. * @summary Link player profile * @param {LinkPlayerUnauthedInputDTO} [linkPlayerUnauthedInputDTO] LinkPlayerUnauthedInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof UserApi */ - public userControllerLinkPlayerProfile(linkPlayerUnauthedInputDTO?: LinkPlayerUnauthedInputDTO, options?: RawAxiosRequestConfig) { - return UserApiFp(this.configuration).userControllerLinkPlayerProfile(linkPlayerUnauthedInputDTO, options).then((request) => request(this.axios, this.basePath)); - } - + userControllerLinkPlayerProfile( + linkPlayerUnauthedInputDTO?: LinkPlayerUnauthedInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .userControllerLinkPlayerProfile(linkPlayerUnauthedInputDTO, options) + .then((request) => request(axios, basePath)); + }, /** - * + * * @summary Login * @param {LoginDTO} [loginDTO] LoginDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof UserApi */ - public userControllerLogin(loginDTO?: LoginDTO, options?: RawAxiosRequestConfig) { - return UserApiFp(this.configuration).userControllerLogin(loginDTO, options).then((request) => request(this.axios, this.basePath)); - } - + userControllerLogin(loginDTO?: LoginDTO, options?: any): AxiosPromise { + return localVarFp.userControllerLogin(loginDTO, options).then((request) => request(axios, basePath)); + }, /** - * + * * @summary Logout * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof UserApi */ - public userControllerLogout(options?: RawAxiosRequestConfig) { - return UserApiFp(this.configuration).userControllerLogout(options).then((request) => request(this.axios, this.basePath)); - } - + userControllerLogout(options?: any): AxiosPromise { + return localVarFp.userControllerLogout(options).then((request) => request(axios, basePath)); + }, /** * Get the current user and the domains that the user has access to. Note that you can only make requests in the scope of a single domain. In order to switch the domain, you need to use the domain selection endpoints * @summary Get the current logged in user * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof UserApi */ - public userControllerMe(options?: RawAxiosRequestConfig) { - return UserApiFp(this.configuration).userControllerMe(options).then((request) => request(this.axios, this.basePath)); - } - + userControllerMe(options?: any): AxiosPromise { + return localVarFp.userControllerMe(options).then((request) => request(axios, basePath)); + }, /** * Required permissions: `MANAGE_USERS` * @summary Remove - * @param {string} id + * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof UserApi */ - public userControllerRemove(id: string, options?: RawAxiosRequestConfig) { - return UserApiFp(this.configuration).userControllerRemove(id, options).then((request) => request(this.axios, this.basePath)); - } - + userControllerRemove(id: string, options?: any): AxiosPromise { + return localVarFp.userControllerRemove(id, options).then((request) => request(axios, basePath)); + }, /** * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES` * @summary Remove role - * @param {string} id - * @param {string} roleId + * @param {string} id + * @param {string} roleId * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof UserApi */ - public userControllerRemoveRole(id: string, roleId: string, options?: RawAxiosRequestConfig) { - return UserApiFp(this.configuration).userControllerRemoveRole(id, roleId, options).then((request) => request(this.axios, this.basePath)); - } - + userControllerRemoveRole(id: string, roleId: string, options?: any): AxiosPromise { + return localVarFp.userControllerRemoveRole(id, roleId, options).then((request) => request(axios, basePath)); + }, /** * Required permissions: `READ_USERS` * @summary Search * @param {UserSearchInputDTO} [userSearchInputDTO] UserSearchInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof UserApi */ - public userControllerSearch(userSearchInputDTO?: UserSearchInputDTO, options?: RawAxiosRequestConfig) { - return UserApiFp(this.configuration).userControllerSearch(userSearchInputDTO, options).then((request) => request(this.axios, this.basePath)); - } - + userControllerSearch(userSearchInputDTO?: UserSearchInputDTO, options?: any): AxiosPromise { + return localVarFp.userControllerSearch(userSearchInputDTO, options).then((request) => request(axios, basePath)); + }, /** * One user can have multiple domains, this endpoint is a helper to set the selected domain for the user * @summary Set the selected domain for the user - * @param {string} domainId + * @param {string} domainId * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof UserApi */ - public userControllerSetSelectedDomain(domainId: string, options?: RawAxiosRequestConfig) { - return UserApiFp(this.configuration).userControllerSetSelectedDomain(domainId, options).then((request) => request(this.axios, this.basePath)); - } - + userControllerSetSelectedDomain(domainId: string, options?: any): AxiosPromise { + return localVarFp.userControllerSetSelectedDomain(domainId, options).then((request) => request(axios, basePath)); + }, /** * Required permissions: `MANAGE_USERS` * @summary Update - * @param {string} id + * @param {string} id * @param {UserUpdateDTO} [userUpdateDTO] UserUpdateDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof UserApi */ - public userControllerUpdate(id: string, userUpdateDTO?: UserUpdateDTO, options?: RawAxiosRequestConfig) { - return UserApiFp(this.configuration).userControllerUpdate(id, userUpdateDTO, options).then((request) => request(this.axios, this.basePath)); - } -} - + userControllerUpdate(id: string, userUpdateDTO?: UserUpdateDTO, options?: any): AxiosPromise { + return localVarFp.userControllerUpdate(id, userUpdateDTO, options).then((request) => request(axios, basePath)); + }, + }; +}; +/** + * UserApi - object-oriented interface + * @export + * @class UserApi + * @extends {BaseAPI} + */ +export class UserApi extends BaseAPI { + /** + * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES` + * @summary Assign role + * @param {string} id + * @param {string} roleId + * @param {UserRoleAssignChangeDTO} [userRoleAssignChangeDTO] UserRoleAssignChangeDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + public userControllerAssignRole( + id: string, + roleId: string, + userRoleAssignChangeDTO?: UserRoleAssignChangeDTO, + options?: RawAxiosRequestConfig, + ) { + return UserApiFp(this.configuration) + .userControllerAssignRole(id, roleId, userRoleAssignChangeDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `MANAGE_USERS` + * @summary Create + * @param {UserCreateInputDTO} [userCreateInputDTO] UserCreateInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + public userControllerCreate(userCreateInputDTO?: UserCreateInputDTO, options?: RawAxiosRequestConfig) { + return UserApiFp(this.configuration) + .userControllerCreate(userCreateInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Unset the selected domain for the user, this will clear the domain cookie. On the next request, the backend will set this again. + * @summary Unset the selected domain for the user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + public userControllerDeleteSelectedDomainCookie(options?: RawAxiosRequestConfig) { + return UserApiFp(this.configuration) + .userControllerDeleteSelectedDomainCookie(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `READ_USERS` + * @summary Get one + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + public userControllerGetOne(id: string, options?: RawAxiosRequestConfig) { + return UserApiFp(this.configuration) + .userControllerGetOne(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `MANAGE_USERS` + * @summary Invite + * @param {InviteCreateDTO} [inviteCreateDTO] InviteCreateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + public userControllerInvite(inviteCreateDTO?: InviteCreateDTO, options?: RawAxiosRequestConfig) { + return UserApiFp(this.configuration) + .userControllerInvite(inviteCreateDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Link your player profile to Takaro, allowing web access for things like shop and stats. To get the code, use the /link command in the game. + * @summary Link player profile + * @param {LinkPlayerUnauthedInputDTO} [linkPlayerUnauthedInputDTO] LinkPlayerUnauthedInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + public userControllerLinkPlayerProfile( + linkPlayerUnauthedInputDTO?: LinkPlayerUnauthedInputDTO, + options?: RawAxiosRequestConfig, + ) { + return UserApiFp(this.configuration) + .userControllerLinkPlayerProfile(linkPlayerUnauthedInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Login + * @param {LoginDTO} [loginDTO] LoginDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + public userControllerLogin(loginDTO?: LoginDTO, options?: RawAxiosRequestConfig) { + return UserApiFp(this.configuration) + .userControllerLogin(loginDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Logout + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + public userControllerLogout(options?: RawAxiosRequestConfig) { + return UserApiFp(this.configuration) + .userControllerLogout(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Get the current user and the domains that the user has access to. Note that you can only make requests in the scope of a single domain. In order to switch the domain, you need to use the domain selection endpoints + * @summary Get the current logged in user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + public userControllerMe(options?: RawAxiosRequestConfig) { + return UserApiFp(this.configuration) + .userControllerMe(options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `MANAGE_USERS` + * @summary Remove + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + public userControllerRemove(id: string, options?: RawAxiosRequestConfig) { + return UserApiFp(this.configuration) + .userControllerRemove(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES` + * @summary Remove role + * @param {string} id + * @param {string} roleId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + public userControllerRemoveRole(id: string, roleId: string, options?: RawAxiosRequestConfig) { + return UserApiFp(this.configuration) + .userControllerRemoveRole(id, roleId, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `READ_USERS` + * @summary Search + * @param {UserSearchInputDTO} [userSearchInputDTO] UserSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + public userControllerSearch(userSearchInputDTO?: UserSearchInputDTO, options?: RawAxiosRequestConfig) { + return UserApiFp(this.configuration) + .userControllerSearch(userSearchInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * One user can have multiple domains, this endpoint is a helper to set the selected domain for the user + * @summary Set the selected domain for the user + * @param {string} domainId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + public userControllerSetSelectedDomain(domainId: string, options?: RawAxiosRequestConfig) { + return UserApiFp(this.configuration) + .userControllerSetSelectedDomain(domainId, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `MANAGE_USERS` + * @summary Update + * @param {string} id + * @param {UserUpdateDTO} [userUpdateDTO] UserUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApi + */ + public userControllerUpdate(id: string, userUpdateDTO?: UserUpdateDTO, options?: RawAxiosRequestConfig) { + return UserApiFp(this.configuration) + .userControllerUpdate(id, userUpdateDTO, options) + .then((request) => request(this.axios, this.basePath)); + } +} /** * VariableApi - axios parameter creator * @export */ export const VariableApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * Required permissions: `MANAGE_VARIABLES` - * @summary Create - * @param {VariableCreateDTO} [variableCreateDTO] VariableCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - variableControllerCreate: async (variableCreateDTO?: VariableCreateDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/variables`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(variableCreateDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `MANAGE_VARIABLES` - * @summary Delete - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - variableControllerDelete: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('variableControllerDelete', 'id', id) - const localVarPath = `/variables/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `READ_VARIABLES` - * @summary Find one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - variableControllerFindOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('variableControllerFindOne', 'id', id) - const localVarPath = `/variables/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `READ_VARIABLES` - * @summary Search - * @param {VariableSearchInputDTO} [variableSearchInputDTO] VariableSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - variableControllerSearch: async (variableSearchInputDTO?: VariableSearchInputDTO, options: RawAxiosRequestConfig = {}): Promise => { - const localVarPath = `/variables/search`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(variableSearchInputDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * Required permissions: `MANAGE_VARIABLES` - * @summary Update - * @param {string} id - * @param {VariableUpdateDTO} [variableUpdateDTO] VariableUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - variableControllerUpdate: async (id: string, variableUpdateDTO?: VariableUpdateDTO, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('variableControllerUpdate', 'id', id) - const localVarPath = `/variables/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication domainAuth required - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(variableUpdateDTO, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } + return { + /** + * Required permissions: `MANAGE_VARIABLES` + * @summary Create + * @param {VariableCreateDTO} [variableCreateDTO] VariableCreateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + variableControllerCreate: async ( + variableCreateDTO?: VariableCreateDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/variables`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(variableCreateDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `MANAGE_VARIABLES` + * @summary Delete + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + variableControllerDelete: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('variableControllerDelete', 'id', id); + const localVarPath = `/variables/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `READ_VARIABLES` + * @summary Find one + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + variableControllerFindOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('variableControllerFindOne', 'id', id); + const localVarPath = `/variables/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `READ_VARIABLES` + * @summary Search + * @param {VariableSearchInputDTO} [variableSearchInputDTO] VariableSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + variableControllerSearch: async ( + variableSearchInputDTO?: VariableSearchInputDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/variables/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded( + variableSearchInputDTO, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Required permissions: `MANAGE_VARIABLES` + * @summary Update + * @param {string} id + * @param {VariableUpdateDTO} [variableUpdateDTO] VariableUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + variableControllerUpdate: async ( + id: string, + variableUpdateDTO?: VariableUpdateDTO, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('variableControllerUpdate', 'id', id); + const localVarPath = `/variables/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication domainAuth required + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; + localVarRequestOptions.data = serializeDataIfNeeded(variableUpdateDTO, localVarRequestOptions, configuration); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; }; /** * VariableApi - functional programming interface * @export */ -export const VariableApiFp = function(configuration?: Configuration) { - const localVarAxiosParamCreator = VariableApiAxiosParamCreator(configuration) - return { - /** - * Required permissions: `MANAGE_VARIABLES` - * @summary Create - * @param {VariableCreateDTO} [variableCreateDTO] VariableCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async variableControllerCreate(variableCreateDTO?: VariableCreateDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.variableControllerCreate(variableCreateDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['VariableApi.variableControllerCreate']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `MANAGE_VARIABLES` - * @summary Delete - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async variableControllerDelete(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.variableControllerDelete(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['VariableApi.variableControllerDelete']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `READ_VARIABLES` - * @summary Find one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async variableControllerFindOne(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.variableControllerFindOne(id, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['VariableApi.variableControllerFindOne']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `READ_VARIABLES` - * @summary Search - * @param {VariableSearchInputDTO} [variableSearchInputDTO] VariableSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async variableControllerSearch(variableSearchInputDTO?: VariableSearchInputDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.variableControllerSearch(variableSearchInputDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['VariableApi.variableControllerSearch']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - /** - * Required permissions: `MANAGE_VARIABLES` - * @summary Update - * @param {string} id - * @param {VariableUpdateDTO} [variableUpdateDTO] VariableUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async variableControllerUpdate(id: string, variableUpdateDTO?: VariableUpdateDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.variableControllerUpdate(id, variableUpdateDTO, options); - const index = configuration?.serverIndex ?? 0; - const operationBasePath = operationServerMap['VariableApi.variableControllerUpdate']?.[index]?.url; - return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); - }, - } +export const VariableApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = VariableApiAxiosParamCreator(configuration); + return { + /** + * Required permissions: `MANAGE_VARIABLES` + * @summary Create + * @param {VariableCreateDTO} [variableCreateDTO] VariableCreateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async variableControllerCreate( + variableCreateDTO?: VariableCreateDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.variableControllerCreate(variableCreateDTO, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['VariableApi.variableControllerCreate']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `MANAGE_VARIABLES` + * @summary Delete + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async variableControllerDelete( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.variableControllerDelete(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['VariableApi.variableControllerDelete']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `READ_VARIABLES` + * @summary Find one + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async variableControllerFindOne( + id: string, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.variableControllerFindOne(id, options); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['VariableApi.variableControllerFindOne']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `READ_VARIABLES` + * @summary Search + * @param {VariableSearchInputDTO} [variableSearchInputDTO] VariableSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async variableControllerSearch( + variableSearchInputDTO?: VariableSearchInputDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.variableControllerSearch( + variableSearchInputDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['VariableApi.variableControllerSearch']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + /** + * Required permissions: `MANAGE_VARIABLES` + * @summary Update + * @param {string} id + * @param {VariableUpdateDTO} [variableUpdateDTO] VariableUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async variableControllerUpdate( + id: string, + variableUpdateDTO?: VariableUpdateDTO, + options?: RawAxiosRequestConfig, + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.variableControllerUpdate( + id, + variableUpdateDTO, + options, + ); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['VariableApi.variableControllerUpdate']?.[index]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, operationBasePath || basePath); + }, + }; }; /** @@ -22472,130 +25222,150 @@ export const VariableApiFp = function(configuration?: Configuration) { * @export */ export const VariableApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - const localVarFp = VariableApiFp(configuration) - return { - /** - * Required permissions: `MANAGE_VARIABLES` - * @summary Create - * @param {VariableCreateDTO} [variableCreateDTO] VariableCreateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - variableControllerCreate(variableCreateDTO?: VariableCreateDTO, options?: any): AxiosPromise { - return localVarFp.variableControllerCreate(variableCreateDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `MANAGE_VARIABLES` - * @summary Delete - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - variableControllerDelete(id: string, options?: any): AxiosPromise { - return localVarFp.variableControllerDelete(id, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `READ_VARIABLES` - * @summary Find one - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - variableControllerFindOne(id: string, options?: any): AxiosPromise { - return localVarFp.variableControllerFindOne(id, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `READ_VARIABLES` - * @summary Search - * @param {VariableSearchInputDTO} [variableSearchInputDTO] VariableSearchInputDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - variableControllerSearch(variableSearchInputDTO?: VariableSearchInputDTO, options?: any): AxiosPromise { - return localVarFp.variableControllerSearch(variableSearchInputDTO, options).then((request) => request(axios, basePath)); - }, - /** - * Required permissions: `MANAGE_VARIABLES` - * @summary Update - * @param {string} id - * @param {VariableUpdateDTO} [variableUpdateDTO] VariableUpdateDTO - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - variableControllerUpdate(id: string, variableUpdateDTO?: VariableUpdateDTO, options?: any): AxiosPromise { - return localVarFp.variableControllerUpdate(id, variableUpdateDTO, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * VariableApi - object-oriented interface - * @export - * @class VariableApi - * @extends {BaseAPI} - */ -export class VariableApi extends BaseAPI { + const localVarFp = VariableApiFp(configuration); + return { /** * Required permissions: `MANAGE_VARIABLES` * @summary Create * @param {VariableCreateDTO} [variableCreateDTO] VariableCreateDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof VariableApi */ - public variableControllerCreate(variableCreateDTO?: VariableCreateDTO, options?: RawAxiosRequestConfig) { - return VariableApiFp(this.configuration).variableControllerCreate(variableCreateDTO, options).then((request) => request(this.axios, this.basePath)); - } - + variableControllerCreate(variableCreateDTO?: VariableCreateDTO, options?: any): AxiosPromise { + return localVarFp + .variableControllerCreate(variableCreateDTO, options) + .then((request) => request(axios, basePath)); + }, /** * Required permissions: `MANAGE_VARIABLES` * @summary Delete - * @param {string} id + * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof VariableApi */ - public variableControllerDelete(id: string, options?: RawAxiosRequestConfig) { - return VariableApiFp(this.configuration).variableControllerDelete(id, options).then((request) => request(this.axios, this.basePath)); - } - + variableControllerDelete(id: string, options?: any): AxiosPromise { + return localVarFp.variableControllerDelete(id, options).then((request) => request(axios, basePath)); + }, /** * Required permissions: `READ_VARIABLES` * @summary Find one - * @param {string} id + * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof VariableApi */ - public variableControllerFindOne(id: string, options?: RawAxiosRequestConfig) { - return VariableApiFp(this.configuration).variableControllerFindOne(id, options).then((request) => request(this.axios, this.basePath)); - } - + variableControllerFindOne(id: string, options?: any): AxiosPromise { + return localVarFp.variableControllerFindOne(id, options).then((request) => request(axios, basePath)); + }, /** * Required permissions: `READ_VARIABLES` * @summary Search * @param {VariableSearchInputDTO} [variableSearchInputDTO] VariableSearchInputDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof VariableApi */ - public variableControllerSearch(variableSearchInputDTO?: VariableSearchInputDTO, options?: RawAxiosRequestConfig) { - return VariableApiFp(this.configuration).variableControllerSearch(variableSearchInputDTO, options).then((request) => request(this.axios, this.basePath)); - } - + variableControllerSearch( + variableSearchInputDTO?: VariableSearchInputDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .variableControllerSearch(variableSearchInputDTO, options) + .then((request) => request(axios, basePath)); + }, /** * Required permissions: `MANAGE_VARIABLES` * @summary Update - * @param {string} id + * @param {string} id * @param {VariableUpdateDTO} [variableUpdateDTO] VariableUpdateDTO * @param {*} [options] Override http request option. * @throws {RequiredError} - * @memberof VariableApi */ - public variableControllerUpdate(id: string, variableUpdateDTO?: VariableUpdateDTO, options?: RawAxiosRequestConfig) { - return VariableApiFp(this.configuration).variableControllerUpdate(id, variableUpdateDTO, options).then((request) => request(this.axios, this.basePath)); - } -} - - + variableControllerUpdate( + id: string, + variableUpdateDTO?: VariableUpdateDTO, + options?: any, + ): AxiosPromise { + return localVarFp + .variableControllerUpdate(id, variableUpdateDTO, options) + .then((request) => request(axios, basePath)); + }, + }; +}; +/** + * VariableApi - object-oriented interface + * @export + * @class VariableApi + * @extends {BaseAPI} + */ +export class VariableApi extends BaseAPI { + /** + * Required permissions: `MANAGE_VARIABLES` + * @summary Create + * @param {VariableCreateDTO} [variableCreateDTO] VariableCreateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VariableApi + */ + public variableControllerCreate(variableCreateDTO?: VariableCreateDTO, options?: RawAxiosRequestConfig) { + return VariableApiFp(this.configuration) + .variableControllerCreate(variableCreateDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `MANAGE_VARIABLES` + * @summary Delete + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VariableApi + */ + public variableControllerDelete(id: string, options?: RawAxiosRequestConfig) { + return VariableApiFp(this.configuration) + .variableControllerDelete(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `READ_VARIABLES` + * @summary Find one + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VariableApi + */ + public variableControllerFindOne(id: string, options?: RawAxiosRequestConfig) { + return VariableApiFp(this.configuration) + .variableControllerFindOne(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `READ_VARIABLES` + * @summary Search + * @param {VariableSearchInputDTO} [variableSearchInputDTO] VariableSearchInputDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VariableApi + */ + public variableControllerSearch(variableSearchInputDTO?: VariableSearchInputDTO, options?: RawAxiosRequestConfig) { + return VariableApiFp(this.configuration) + .variableControllerSearch(variableSearchInputDTO, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Required permissions: `MANAGE_VARIABLES` + * @summary Update + * @param {string} id + * @param {VariableUpdateDTO} [variableUpdateDTO] VariableUpdateDTO + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VariableApi + */ + public variableControllerUpdate(id: string, variableUpdateDTO?: VariableUpdateDTO, options?: RawAxiosRequestConfig) { + return VariableApiFp(this.configuration) + .variableControllerUpdate(id, variableUpdateDTO, options) + .then((request) => request(this.axios, this.basePath)); + } +} diff --git a/packages/lib-apiclient/src/generated/base.ts b/packages/lib-apiclient/src/generated/base.ts index 7d6ec885f..b8bd4230c 100644 --- a/packages/lib-apiclient/src/generated/base.ts +++ b/packages/lib-apiclient/src/generated/base.ts @@ -4,7 +4,7 @@ * Takaro API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: unset - unset + * The version of the OpenAPI document: unset - unset * Contact: support@takaro.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -12,24 +12,23 @@ * Do not edit the class manually. */ - import type { Configuration } from './configuration.js'; // Some imports not used depending on template conditions // @ts-ignore import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; -export const BASE_PATH = "http://localhost".replace(/\/+$/, ""); +export const BASE_PATH = 'http://localhost'.replace(/\/+$/, ''); /** * * @export */ export const COLLECTION_FORMATS = { - csv: ",", - ssv: " ", - tsv: "\t", - pipes: "|", + csv: ',', + ssv: ' ', + tsv: '\t', + pipes: '|', }; /** @@ -38,8 +37,8 @@ export const COLLECTION_FORMATS = { * @interface RequestArgs */ export interface RequestArgs { - url: string; - options: RawAxiosRequestConfig; + url: string; + options: RawAxiosRequestConfig; } /** @@ -48,15 +47,19 @@ export interface RequestArgs { * @class BaseAPI */ export class BaseAPI { - protected configuration: Configuration | undefined; + protected configuration: Configuration | undefined; - constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { - if (configuration) { - this.configuration = configuration; - this.basePath = configuration.basePath ?? basePath; - } + constructor( + configuration?: Configuration, + protected basePath: string = BASE_PATH, + protected axios: AxiosInstance = globalAxios, + ) { + if (configuration) { + this.configuration = configuration; + this.basePath = configuration.basePath ?? basePath; } -}; + } +} /** * @@ -65,22 +68,24 @@ export class BaseAPI { * @extends {Error} */ export class RequiredError extends Error { - constructor(public field: string, msg?: string) { - super(msg); - this.name = "RequiredError" - } + constructor( + public field: string, + msg?: string, + ) { + super(msg); + this.name = 'RequiredError'; + } } interface ServerMap { - [key: string]: { - url: string, - description: string, - }[]; + [key: string]: { + url: string; + description: string; + }[]; } /** * * @export */ -export const operationServerMap: ServerMap = { -} +export const operationServerMap: ServerMap = {}; diff --git a/packages/lib-apiclient/src/generated/common.ts b/packages/lib-apiclient/src/generated/common.ts index 0685163dd..f2f7f5a3a 100644 --- a/packages/lib-apiclient/src/generated/common.ts +++ b/packages/lib-apiclient/src/generated/common.ts @@ -4,7 +4,7 @@ * Takaro API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: unset - unset + * The version of the OpenAPI document: unset - unset * Contact: support@takaro.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -12,17 +12,16 @@ * Do not edit the class manually. */ - -import type { Configuration } from "./configuration.js"; -import type { RequestArgs } from "./base.js"; +import type { Configuration } from './configuration.js'; +import type { RequestArgs } from './base.js'; import type { AxiosInstance, AxiosResponse } from 'axios'; -import { RequiredError } from "./base.js"; +import { RequiredError } from './base.js'; /** * * @export */ -export const DUMMY_BASE_URL = 'https://example.com' +export const DUMMY_BASE_URL = 'https://example.com'; /** * @@ -30,80 +29,88 @@ export const DUMMY_BASE_URL = 'https://example.com' * @export */ export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) { - if (paramValue === null || paramValue === undefined) { - throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`); - } -} + if (paramValue === null || paramValue === undefined) { + throw new RequiredError( + paramName, + `Required parameter ${paramName} was null or undefined when calling ${functionName}.`, + ); + } +}; /** * * @export */ export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) { - if (configuration && configuration.apiKey) { - const localVarApiKeyValue = typeof configuration.apiKey === 'function' - ? await configuration.apiKey(keyParamName) - : await configuration.apiKey; - object[keyParamName] = localVarApiKeyValue; - } -} + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = + typeof configuration.apiKey === 'function' + ? await configuration.apiKey(keyParamName) + : await configuration.apiKey; + object[keyParamName] = localVarApiKeyValue; + } +}; /** * * @export */ export const setBasicAuthToObject = function (object: any, configuration?: Configuration) { - if (configuration && (configuration.username || configuration.password)) { - object["auth"] = { username: configuration.username, password: configuration.password }; - } -} + if (configuration && (configuration.username || configuration.password)) { + object['auth'] = { username: configuration.username, password: configuration.password }; + } +}; /** * * @export */ export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) { - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? await configuration.accessToken() - : await configuration.accessToken; - object["Authorization"] = "Bearer " + accessToken; - } -} + if (configuration && configuration.accessToken) { + const accessToken = + typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + object['Authorization'] = 'Bearer ' + accessToken; + } +}; /** * * @export */ -export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) { - if (configuration && configuration.accessToken) { - const localVarAccessTokenValue = typeof configuration.accessToken === 'function' - ? await configuration.accessToken(name, scopes) - : await configuration.accessToken; - object["Authorization"] = "Bearer " + localVarAccessTokenValue; - } -} +export const setOAuthToObject = async function ( + object: any, + name: string, + scopes: string[], + configuration?: Configuration, +) { + if (configuration && configuration.accessToken) { + const localVarAccessTokenValue = + typeof configuration.accessToken === 'function' + ? await configuration.accessToken(name, scopes) + : await configuration.accessToken; + object['Authorization'] = 'Bearer ' + localVarAccessTokenValue; + } +}; -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); - } +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); } + } } /** @@ -111,40 +118,47 @@ function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: an * @export */ export const setSearchParams = function (url: URL, ...objects: any[]) { - const searchParams = new URLSearchParams(url.search); - setFlattenedQueryParams(searchParams, objects); - url.search = searchParams.toString(); -} + const searchParams = new URLSearchParams(url.search); + setFlattenedQueryParams(searchParams, objects); + url.search = searchParams.toString(); +}; /** * * @export */ export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) { - const nonString = typeof value !== 'string'; - const needsSerialization = nonString && configuration && configuration.isJsonMime - ? configuration.isJsonMime(requestOptions.headers['Content-Type']) - : nonString; - return needsSerialization - ? JSON.stringify(value !== undefined ? value : {}) - : (value || ""); -} + const nonString = typeof value !== 'string'; + const needsSerialization = + nonString && configuration && configuration.isJsonMime + ? configuration.isJsonMime(requestOptions.headers['Content-Type']) + : nonString; + return needsSerialization ? JSON.stringify(value !== undefined ? value : {}) : value || ''; +}; /** * * @export */ export const toPathString = function (url: URL) { - return url.pathname + url.search + url.hash -} + return url.pathname + url.search + url.hash; +}; /** * * @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: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url}; - return axios.request(axiosRequestArgs); +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: (axios.defaults.baseURL ? '' : (configuration?.basePath ?? basePath)) + axiosArgs.url, }; -} + return axios.request(axiosRequestArgs); + }; +}; diff --git a/packages/lib-apiclient/src/generated/configuration.ts b/packages/lib-apiclient/src/generated/configuration.ts index 51fe2b885..2c85febd6 100644 --- a/packages/lib-apiclient/src/generated/configuration.ts +++ b/packages/lib-apiclient/src/generated/configuration.ts @@ -4,7 +4,7 @@ * Takaro API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: unset - unset + * The version of the OpenAPI document: unset - unset * Contact: support@takaro.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -12,99 +12,106 @@ * Do not edit the class manually. */ - export interface ConfigurationParameters { - apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); - username?: string; - password?: string; - accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); - basePath?: string; - serverIndex?: number; - baseOptions?: any; - formDataCtor?: new () => any; + apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); + username?: string; + password?: string; + accessToken?: + | string + | Promise + | ((name?: string, scopes?: string[]) => string) + | ((name?: string, scopes?: string[]) => Promise); + basePath?: string; + serverIndex?: number; + baseOptions?: any; + formDataCtor?: new () => any; } export class Configuration { - /** - * parameter for apiKey security - * @param name security name - * @memberof Configuration - */ - apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); - /** - * parameter for basic security - * - * @type {string} - * @memberof Configuration - */ - username?: string; - /** - * parameter for basic security - * - * @type {string} - * @memberof Configuration - */ - password?: string; - /** - * parameter for oauth2 security - * @param name security name - * @param scopes oauth2 scope - * @memberof Configuration - */ - accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); - /** - * override base path - * - * @type {string} - * @memberof Configuration - */ - basePath?: string; - /** - * override server index - * - * @type {number} - * @memberof Configuration - */ - serverIndex?: number; - /** - * base options for axios calls - * - * @type {any} - * @memberof Configuration - */ - baseOptions?: any; - /** - * The FormData constructor that will be used to create multipart form data - * requests. You can inject this here so that execution environments that - * do not support the FormData class can still run the generated client. - * - * @type {new () => FormData} - */ - formDataCtor?: new () => any; + /** + * parameter for apiKey security + * @param name security name + * @memberof Configuration + */ + apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + username?: string; + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + password?: string; + /** + * parameter for oauth2 security + * @param name security name + * @param scopes oauth2 scope + * @memberof Configuration + */ + accessToken?: + | string + | Promise + | ((name?: string, scopes?: string[]) => string) + | ((name?: string, scopes?: string[]) => Promise); + /** + * override base path + * + * @type {string} + * @memberof Configuration + */ + basePath?: string; + /** + * override server index + * + * @type {number} + * @memberof Configuration + */ + serverIndex?: number; + /** + * base options for axios calls + * + * @type {any} + * @memberof Configuration + */ + baseOptions?: any; + /** + * The FormData constructor that will be used to create multipart form data + * requests. You can inject this here so that execution environments that + * do not support the FormData class can still run the generated client. + * + * @type {new () => FormData} + */ + formDataCtor?: new () => any; - constructor(param: ConfigurationParameters = {}) { - this.apiKey = param.apiKey; - this.username = param.username; - this.password = param.password; - this.accessToken = param.accessToken; - this.basePath = param.basePath; - this.serverIndex = param.serverIndex; - this.baseOptions = param.baseOptions; - this.formDataCtor = param.formDataCtor; - } + constructor(param: ConfigurationParameters = {}) { + this.apiKey = param.apiKey; + this.username = param.username; + this.password = param.password; + this.accessToken = param.accessToken; + this.basePath = param.basePath; + this.serverIndex = param.serverIndex; + this.baseOptions = param.baseOptions; + this.formDataCtor = param.formDataCtor; + } - /** - * Check if the given MIME is a JSON MIME. - * JSON MIME examples: - * application/json - * application/json; charset=UTF8 - * APPLICATION/JSON - * application/vnd.company+json - * @param mime - MIME (Multipurpose Internet Mail Extensions) - * @return True if the given MIME is JSON, false otherwise. - */ - public isJsonMime(mime: string): boolean { - const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i'); - return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json'); - } + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + public isJsonMime(mime: string): boolean { + const jsonMime: RegExp = new RegExp('^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i'); + return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json'); + } } diff --git a/packages/lib-apiclient/src/generated/index.ts b/packages/lib-apiclient/src/generated/index.ts index 06ba5d88d..ff32b04e2 100644 --- a/packages/lib-apiclient/src/generated/index.ts +++ b/packages/lib-apiclient/src/generated/index.ts @@ -4,7 +4,7 @@ * Takaro API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: unset - unset + * The version of the OpenAPI document: unset - unset * Contact: support@takaro.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -12,7 +12,5 @@ * Do not edit the class manually. */ - -export * from "./api.js"; -export * from "./configuration.js"; - +export * from './api.js'; +export * from './configuration.js';