/* tslint:disable */ /* eslint-disable */ /** * TwitchGameApi * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: 1.0 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios'; import { Configuration } from '../configuration'; // Some imports not used depending on template conditions // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; import { AddReservesModel } from '../models'; import { EnterTournamentModel } from '../models'; import { GameModeDivisionModel } from '../models'; import { GameModeModel } from '../models'; import { GameModel } from '../models'; import { TournamentDonationModel } from '../models'; import { TournamentModel } from '../models'; import { TournamentScoreMatchPlayerModel } from '../models'; import { TournamentScoreModel } from '../models'; import { TournamentTeamModel } from '../models'; /** * TournamentApi - axios parameter creator * @export */ export const TournamentApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ tournamentAllGet: async (options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/Tournament/All`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {string} orderId * @param {*} [options] Override http request option. * @throws {RequiredError} */ tournamentDonateOrderIdGet: async (orderId: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'orderId' is not null or undefined if (orderId === null || orderId === undefined) { throw new RequiredError('orderId','Required parameter orderId was null or undefined when calling tournamentDonateOrderIdGet.'); } const localVarPath = `/Tournament/donate/{orderId}` .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {number} tournamentId * @param {*} [options] Override http request option. * @throws {RequiredError} */ tournamentDonationsTournamentIdGet: async (tournamentId: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'tournamentId' is not null or undefined if (tournamentId === null || tournamentId === undefined) { throw new RequiredError('tournamentId','Required parameter tournamentId was null or undefined when calling tournamentDonationsTournamentIdGet.'); } const localVarPath = `/Tournament/donations/{tournamentId}` .replace(`{${"tournamentId"}}`, encodeURIComponent(String(tournamentId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {number} gameModeId * @param {*} [options] Override http request option. * @throws {RequiredError} */ tournamentGameModeDivisionsGameModeIdGet: async (gameModeId: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'gameModeId' is not null or undefined if (gameModeId === null || gameModeId === undefined) { throw new RequiredError('gameModeId','Required parameter gameModeId was null or undefined when calling tournamentGameModeDivisionsGameModeIdGet.'); } const localVarPath = `/Tournament/GameModeDivisions/{gameModeId}` .replace(`{${"gameModeId"}}`, encodeURIComponent(String(gameModeId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ tournamentGameModesAllGet: async (options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/Tournament/GameModes/All`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {number} gameId * @param {*} [options] Override http request option. * @throws {RequiredError} */ tournamentGameModesGameIdGet: async (gameId: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'gameId' is not null or undefined if (gameId === null || gameId === undefined) { throw new RequiredError('gameId','Required parameter gameId was null or undefined when calling tournamentGameModesGameIdGet.'); } const localVarPath = `/Tournament/GameModes/{gameId}` .replace(`{${"gameId"}}`, encodeURIComponent(String(gameId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ tournamentGamesGet: async (options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/Tournament/Games`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ tournamentIdGet: async (id: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling tournamentIdGet.'); } const localVarPath = `/Tournament/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ tournamentIdPlayersGet: async (id: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling tournamentIdPlayersGet.'); } const localVarPath = `/Tournament/{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, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ tournamentIdTeamsGet: async (id: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined if (id === null || id === undefined) { throw new RequiredError('id','Required parameter id was null or undefined when calling tournamentIdTeamsGet.'); } const localVarPath = `/Tournament/{id}/teams` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ tournamentPastGet: async (options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/Tournament/Past`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ tournamentPaymentsUpdateGet: async (options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/Tournament/payments/update`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ tournamentScoresUpdateGet: async (options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/Tournament/scores/update`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {number} tournamentId * @param {boolean} forceReset * @param {*} [options] Override http request option. * @throws {RequiredError} */ tournamentSetTournamentDivisionsTournamentIdForceResetGet: async (tournamentId: number, forceReset: boolean, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'tournamentId' is not null or undefined if (tournamentId === null || tournamentId === undefined) { throw new RequiredError('tournamentId','Required parameter tournamentId was null or undefined when calling tournamentSetTournamentDivisionsTournamentIdForceResetGet.'); } // verify required parameter 'forceReset' is not null or undefined if (forceReset === null || forceReset === undefined) { throw new RequiredError('forceReset','Required parameter forceReset was null or undefined when calling tournamentSetTournamentDivisionsTournamentIdForceResetGet.'); } const localVarPath = `/Tournament/SetTournamentDivisions/{tournamentId}/{forceReset}` .replace(`{${"tournamentId"}}`, encodeURIComponent(String(tournamentId))) .replace(`{${"forceReset"}}`, encodeURIComponent(String(forceReset))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {string} teamId * @param {TournamentScoreMatchPlayerModel} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ tournamentTeamAddScoresTeamIdPost: async (teamId: string, body?: TournamentScoreMatchPlayerModel, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'teamId' is not null or undefined if (teamId === null || teamId === undefined) { throw new RequiredError('teamId','Required parameter teamId was null or undefined when calling tournamentTeamAddScoresTeamIdPost.'); } const localVarPath = `/Tournament/Team/AddScores/{teamId}` .replace(`{${"teamId"}}`, encodeURIComponent(String(teamId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || ""); return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {number} teamUserId * @param {*} [options] Override http request option. * @throws {RequiredError} */ tournamentTeamRemovePlayerTeamUserIdDelete: async (teamUserId: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'teamUserId' is not null or undefined if (teamUserId === null || teamUserId === undefined) { throw new RequiredError('teamUserId','Required parameter teamUserId was null or undefined when calling tournamentTeamRemovePlayerTeamUserIdDelete.'); } const localVarPath = `/Tournament/Team/RemovePlayer/{teamUserId}` .replace(`{${"teamUserId"}}`, encodeURIComponent(String(teamUserId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {number} scoreId * @param {*} [options] Override http request option. * @throws {RequiredError} */ tournamentTeamRemoveScoreScoreIdDelete: async (scoreId: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'scoreId' is not null or undefined if (scoreId === null || scoreId === undefined) { throw new RequiredError('scoreId','Required parameter scoreId was null or undefined when calling tournamentTeamRemoveScoreScoreIdDelete.'); } const localVarPath = `/Tournament/Team/RemoveScore/{scoreId}` .replace(`{${"scoreId"}}`, encodeURIComponent(String(scoreId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {number} teamId * @param {*} [options] Override http request option. * @throws {RequiredError} */ tournamentTeamRemoveTeamTeamIdDelete: async (teamId: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'teamId' is not null or undefined if (teamId === null || teamId === undefined) { throw new RequiredError('teamId','Required parameter teamId was null or undefined when calling tournamentTeamRemoveTeamTeamIdDelete.'); } const localVarPath = `/Tournament/Team/RemoveTeam/{teamId}` .replace(`{${"teamId"}}`, encodeURIComponent(String(teamId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {number} teamId * @param {number} newCaptainId * @param {*} [options] Override http request option. * @throws {RequiredError} */ tournamentTeamTeamIdChangeCaptainNewCaptainIdPost: async (teamId: number, newCaptainId: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'teamId' is not null or undefined if (teamId === null || teamId === undefined) { throw new RequiredError('teamId','Required parameter teamId was null or undefined when calling tournamentTeamTeamIdChangeCaptainNewCaptainIdPost.'); } // verify required parameter 'newCaptainId' is not null or undefined if (newCaptainId === null || newCaptainId === undefined) { throw new RequiredError('newCaptainId','Required parameter newCaptainId was null or undefined when calling tournamentTeamTeamIdChangeCaptainNewCaptainIdPost.'); } const localVarPath = `/Tournament/Team/{teamId}/ChangeCaptain/{newCaptainId}` .replace(`{${"teamId"}}`, encodeURIComponent(String(teamId))) .replace(`{${"newCaptainId"}}`, encodeURIComponent(String(newCaptainId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {number} tournamentId * @param {*} [options] Override http request option. * @throws {RequiredError} */ tournamentTournamentAddScoresTournamentIdPost: async (tournamentId: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'tournamentId' is not null or undefined if (tournamentId === null || tournamentId === undefined) { throw new RequiredError('tournamentId','Required parameter tournamentId was null or undefined when calling tournamentTournamentAddScoresTournamentIdPost.'); } const localVarPath = `/Tournament/Tournament/AddScores/{tournamentId}` .replace(`{${"tournamentId"}}`, encodeURIComponent(String(tournamentId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {number} tournamentId * @param {EnterTournamentModel} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ tournamentTournamentIdEnterPost: async (tournamentId: number, body?: EnterTournamentModel, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'tournamentId' is not null or undefined if (tournamentId === null || tournamentId === undefined) { throw new RequiredError('tournamentId','Required parameter tournamentId was null or undefined when calling tournamentTournamentIdEnterPost.'); } const localVarPath = `/Tournament/{tournamentId}/enter` .replace(`{${"tournamentId"}}`, encodeURIComponent(String(tournamentId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || ""); return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {number} tournamentId * @param {*} [options] Override http request option. * @throws {RequiredError} */ tournamentTournamentIdJoinPost: async (tournamentId: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'tournamentId' is not null or undefined if (tournamentId === null || tournamentId === undefined) { throw new RequiredError('tournamentId','Required parameter tournamentId was null or undefined when calling tournamentTournamentIdJoinPost.'); } const localVarPath = `/Tournament/{tournamentId}/join` .replace(`{${"tournamentId"}}`, encodeURIComponent(String(tournamentId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {number} tournamentId * @param {AddReservesModel} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ tournamentTournamentIdReservesAddPost: async (tournamentId: number, body?: AddReservesModel, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'tournamentId' is not null or undefined if (tournamentId === null || tournamentId === undefined) { throw new RequiredError('tournamentId','Required parameter tournamentId was null or undefined when calling tournamentTournamentIdReservesAddPost.'); } const localVarPath = `/Tournament/{tournamentId}/reserves/add` .replace(`{${"tournamentId"}}`, encodeURIComponent(String(tournamentId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || ""); return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {number} tournamentId * @param {*} [options] Override http request option. * @throws {RequiredError} */ tournamentTournamentIdScoresGet: async (tournamentId: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'tournamentId' is not null or undefined if (tournamentId === null || tournamentId === undefined) { throw new RequiredError('tournamentId','Required parameter tournamentId was null or undefined when calling tournamentTournamentIdScoresGet.'); } const localVarPath = `/Tournament/{tournamentId}/scores` .replace(`{${"tournamentId"}}`, encodeURIComponent(String(tournamentId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {number} tournamentId * @param {number} [status] * @param {*} [options] Override http request option. * @throws {RequiredError} */ tournamentTournamentIdTeammemberStatusPost: async (tournamentId: number, status?: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'tournamentId' is not null or undefined if (tournamentId === null || tournamentId === undefined) { throw new RequiredError('tournamentId','Required parameter tournamentId was null or undefined when calling tournamentTournamentIdTeammemberStatusPost.'); } const localVarPath = `/Tournament/{tournamentId}/teammember/status` .replace(`{${"tournamentId"}}`, encodeURIComponent(String(tournamentId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (status !== undefined) { localVarQueryParameter['status'] = status; } const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {number} tournamentId * @param {TournamentModel} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ tournamentTournamentIdUpdatePost: async (tournamentId: number, body?: TournamentModel, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'tournamentId' is not null or undefined if (tournamentId === null || tournamentId === undefined) { throw new RequiredError('tournamentId','Required parameter tournamentId was null or undefined when calling tournamentTournamentIdUpdatePost.'); } const localVarPath = `/Tournament/{tournamentId}/update` .replace(`{${"tournamentId"}}`, encodeURIComponent(String(tournamentId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || ""); return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {number} teamId * @param {*} [options] Override http request option. * @throws {RequiredError} */ tournamentTournamentTeamScoresTeamIdGet: async (teamId: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'teamId' is not null or undefined if (teamId === null || teamId === undefined) { throw new RequiredError('teamId','Required parameter teamId was null or undefined when calling tournamentTournamentTeamScoresTeamIdGet.'); } const localVarPath = `/Tournament/TournamentTeamScores/{teamId}` .replace(`{${"teamId"}}`, encodeURIComponent(String(teamId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {number} teamId * @param {*} [options] Override http request option. * @throws {RequiredError} */ tournamentTournamentTeamTeamIdGet: async (teamId: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'teamId' is not null or undefined if (teamId === null || teamId === undefined) { throw new RequiredError('teamId','Required parameter teamId was null or undefined when calling tournamentTournamentTeamTeamIdGet.'); } const localVarPath = `/Tournament/TournamentTeam/{teamId}` .replace(`{${"teamId"}}`, encodeURIComponent(String(teamId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {TournamentModel} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ tournamentTournamentsCreatePost: async (body?: TournamentModel, options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/Tournament/Tournaments/create`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || ""); return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ tournamentUpcomingGet: async (options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/Tournament/Upcoming`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {number} tournamentTeamUserId * @param {*} [options] Override http request option. * @throws {RequiredError} */ tournamentUpdateKdTournamentTeamUserIdGet: async (tournamentTeamUserId: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'tournamentTeamUserId' is not null or undefined if (tournamentTeamUserId === null || tournamentTeamUserId === undefined) { throw new RequiredError('tournamentTeamUserId','Required parameter tournamentTeamUserId was null or undefined when calling tournamentUpdateKdTournamentTeamUserIdGet.'); } const localVarPath = `/Tournament/updateKd/{tournamentTeamUserId}` .replace(`{${"tournamentTeamUserId"}}`, encodeURIComponent(String(tournamentTeamUserId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {number} tournamentTeamId * @param {boolean} forceReset * @param {*} [options] Override http request option. * @throws {RequiredError} */ tournamentUpdateTournamentTeamStatsTournamentTeamIdForceResetGet: async (tournamentTeamId: number, forceReset: boolean, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'tournamentTeamId' is not null or undefined if (tournamentTeamId === null || tournamentTeamId === undefined) { throw new RequiredError('tournamentTeamId','Required parameter tournamentTeamId was null or undefined when calling tournamentUpdateTournamentTeamStatsTournamentTeamIdForceResetGet.'); } // verify required parameter 'forceReset' is not null or undefined if (forceReset === null || forceReset === undefined) { throw new RequiredError('forceReset','Required parameter forceReset was null or undefined when calling tournamentUpdateTournamentTeamStatsTournamentTeamIdForceResetGet.'); } const localVarPath = `/Tournament/UpdateTournamentTeamStats/{tournamentTeamId}/{forceReset}` .replace(`{${"tournamentTeamId"}}`, encodeURIComponent(String(tournamentTeamId))) .replace(`{${"forceReset"}}`, encodeURIComponent(String(forceReset))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {number} tournamentTeamUserId * @param {*} [options] Override http request option. * @throws {RequiredError} */ tournamentUpdateTournamentTeamUserStatsTournamentTeamUserIdGet: async (tournamentTeamUserId: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'tournamentTeamUserId' is not null or undefined if (tournamentTeamUserId === null || tournamentTeamUserId === undefined) { throw new RequiredError('tournamentTeamUserId','Required parameter tournamentTeamUserId was null or undefined when calling tournamentUpdateTournamentTeamUserStatsTournamentTeamUserIdGet.'); } const localVarPath = `/Tournament/UpdateTournamentTeamUserStats/{tournamentTeamUserId}` .replace(`{${"tournamentTeamUserId"}}`, encodeURIComponent(String(tournamentTeamUserId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {number} tournamentId * @param {number} maxUsers * @param {*} [options] Override http request option. * @throws {RequiredError} */ tournamentUpdateUnprocessedUserStatsInTournamentTournamentIdMaxUsersGet: async (tournamentId: number, maxUsers: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'tournamentId' is not null or undefined if (tournamentId === null || tournamentId === undefined) { throw new RequiredError('tournamentId','Required parameter tournamentId was null or undefined when calling tournamentUpdateUnprocessedUserStatsInTournamentTournamentIdMaxUsersGet.'); } // verify required parameter 'maxUsers' is not null or undefined if (maxUsers === null || maxUsers === undefined) { throw new RequiredError('maxUsers','Required parameter maxUsers was null or undefined when calling tournamentUpdateUnprocessedUserStatsInTournamentTournamentIdMaxUsersGet.'); } const localVarPath = `/Tournament/UpdateUnprocessedUserStatsInTournament/{tournamentId}/{maxUsers}` .replace(`{${"tournamentId"}}`, encodeURIComponent(String(tournamentId))) .replace(`{${"maxUsers"}}`, encodeURIComponent(String(maxUsers))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, } }; /** * TournamentApi - functional programming interface * @export */ export const TournamentApiFp = function(configuration?: Configuration) { return { /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentAllGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>> { const localVarAxiosArgs = await TournamentApiAxiosParamCreator(configuration).tournamentAllGet(options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {string} orderId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentDonateOrderIdGet(orderId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await TournamentApiAxiosParamCreator(configuration).tournamentDonateOrderIdGet(orderId, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} tournamentId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentDonationsTournamentIdGet(tournamentId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>> { const localVarAxiosArgs = await TournamentApiAxiosParamCreator(configuration).tournamentDonationsTournamentIdGet(tournamentId, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} gameModeId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentGameModeDivisionsGameModeIdGet(gameModeId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>> { const localVarAxiosArgs = await TournamentApiAxiosParamCreator(configuration).tournamentGameModeDivisionsGameModeIdGet(gameModeId, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentGameModesAllGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>> { const localVarAxiosArgs = await TournamentApiAxiosParamCreator(configuration).tournamentGameModesAllGet(options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} gameId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentGameModesGameIdGet(gameId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>> { const localVarAxiosArgs = await TournamentApiAxiosParamCreator(configuration).tournamentGameModesGameIdGet(gameId, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentGamesGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>> { const localVarAxiosArgs = await TournamentApiAxiosParamCreator(configuration).tournamentGamesGet(options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentIdGet(id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await TournamentApiAxiosParamCreator(configuration).tournamentIdGet(id, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentIdPlayersGet(id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await TournamentApiAxiosParamCreator(configuration).tournamentIdPlayersGet(id, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentIdTeamsGet(id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>> { const localVarAxiosArgs = await TournamentApiAxiosParamCreator(configuration).tournamentIdTeamsGet(id, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentPastGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>> { const localVarAxiosArgs = await TournamentApiAxiosParamCreator(configuration).tournamentPastGet(options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentPaymentsUpdateGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await TournamentApiAxiosParamCreator(configuration).tournamentPaymentsUpdateGet(options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentScoresUpdateGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await TournamentApiAxiosParamCreator(configuration).tournamentScoresUpdateGet(options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} tournamentId * @param {boolean} forceReset * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentSetTournamentDivisionsTournamentIdForceResetGet(tournamentId: number, forceReset: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await TournamentApiAxiosParamCreator(configuration).tournamentSetTournamentDivisionsTournamentIdForceResetGet(tournamentId, forceReset, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {string} teamId * @param {TournamentScoreMatchPlayerModel} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentTeamAddScoresTeamIdPost(teamId: string, body?: TournamentScoreMatchPlayerModel, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await TournamentApiAxiosParamCreator(configuration).tournamentTeamAddScoresTeamIdPost(teamId, body, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} teamUserId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentTeamRemovePlayerTeamUserIdDelete(teamUserId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await TournamentApiAxiosParamCreator(configuration).tournamentTeamRemovePlayerTeamUserIdDelete(teamUserId, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} scoreId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentTeamRemoveScoreScoreIdDelete(scoreId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await TournamentApiAxiosParamCreator(configuration).tournamentTeamRemoveScoreScoreIdDelete(scoreId, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} teamId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentTeamRemoveTeamTeamIdDelete(teamId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await TournamentApiAxiosParamCreator(configuration).tournamentTeamRemoveTeamTeamIdDelete(teamId, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} teamId * @param {number} newCaptainId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentTeamTeamIdChangeCaptainNewCaptainIdPost(teamId: number, newCaptainId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await TournamentApiAxiosParamCreator(configuration).tournamentTeamTeamIdChangeCaptainNewCaptainIdPost(teamId, newCaptainId, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} tournamentId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentTournamentAddScoresTournamentIdPost(tournamentId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await TournamentApiAxiosParamCreator(configuration).tournamentTournamentAddScoresTournamentIdPost(tournamentId, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} tournamentId * @param {EnterTournamentModel} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentTournamentIdEnterPost(tournamentId: number, body?: EnterTournamentModel, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await TournamentApiAxiosParamCreator(configuration).tournamentTournamentIdEnterPost(tournamentId, body, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} tournamentId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentTournamentIdJoinPost(tournamentId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await TournamentApiAxiosParamCreator(configuration).tournamentTournamentIdJoinPost(tournamentId, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} tournamentId * @param {AddReservesModel} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentTournamentIdReservesAddPost(tournamentId: number, body?: AddReservesModel, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await TournamentApiAxiosParamCreator(configuration).tournamentTournamentIdReservesAddPost(tournamentId, body, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} tournamentId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentTournamentIdScoresGet(tournamentId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>> { const localVarAxiosArgs = await TournamentApiAxiosParamCreator(configuration).tournamentTournamentIdScoresGet(tournamentId, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} tournamentId * @param {number} [status] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentTournamentIdTeammemberStatusPost(tournamentId: number, status?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await TournamentApiAxiosParamCreator(configuration).tournamentTournamentIdTeammemberStatusPost(tournamentId, status, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} tournamentId * @param {TournamentModel} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentTournamentIdUpdatePost(tournamentId: number, body?: TournamentModel, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await TournamentApiAxiosParamCreator(configuration).tournamentTournamentIdUpdatePost(tournamentId, body, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} teamId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentTournamentTeamScoresTeamIdGet(teamId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>> { const localVarAxiosArgs = await TournamentApiAxiosParamCreator(configuration).tournamentTournamentTeamScoresTeamIdGet(teamId, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} teamId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentTournamentTeamTeamIdGet(teamId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await TournamentApiAxiosParamCreator(configuration).tournamentTournamentTeamTeamIdGet(teamId, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {TournamentModel} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentTournamentsCreatePost(body?: TournamentModel, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await TournamentApiAxiosParamCreator(configuration).tournamentTournamentsCreatePost(body, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentUpcomingGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>> { const localVarAxiosArgs = await TournamentApiAxiosParamCreator(configuration).tournamentUpcomingGet(options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} tournamentTeamUserId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentUpdateKdTournamentTeamUserIdGet(tournamentTeamUserId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await TournamentApiAxiosParamCreator(configuration).tournamentUpdateKdTournamentTeamUserIdGet(tournamentTeamUserId, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} tournamentTeamId * @param {boolean} forceReset * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentUpdateTournamentTeamStatsTournamentTeamIdForceResetGet(tournamentTeamId: number, forceReset: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await TournamentApiAxiosParamCreator(configuration).tournamentUpdateTournamentTeamStatsTournamentTeamIdForceResetGet(tournamentTeamId, forceReset, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} tournamentTeamUserId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentUpdateTournamentTeamUserStatsTournamentTeamUserIdGet(tournamentTeamUserId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await TournamentApiAxiosParamCreator(configuration).tournamentUpdateTournamentTeamUserStatsTournamentTeamUserIdGet(tournamentTeamUserId, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} tournamentId * @param {number} maxUsers * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentUpdateUnprocessedUserStatsInTournamentTournamentIdMaxUsersGet(tournamentId: number, maxUsers: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await TournamentApiAxiosParamCreator(configuration).tournamentUpdateUnprocessedUserStatsInTournamentTournamentIdMaxUsersGet(tournamentId, maxUsers, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, } }; /** * TournamentApi - factory interface * @export */ export const TournamentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { return { /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentAllGet(options?: AxiosRequestConfig): Promise>> { return TournamentApiFp(configuration).tournamentAllGet(options).then((request) => request(axios, basePath)); }, /** * * @param {string} orderId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentDonateOrderIdGet(orderId: string, options?: AxiosRequestConfig): Promise> { return TournamentApiFp(configuration).tournamentDonateOrderIdGet(orderId, options).then((request) => request(axios, basePath)); }, /** * * @param {number} tournamentId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentDonationsTournamentIdGet(tournamentId: number, options?: AxiosRequestConfig): Promise>> { return TournamentApiFp(configuration).tournamentDonationsTournamentIdGet(tournamentId, options).then((request) => request(axios, basePath)); }, /** * * @param {number} gameModeId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentGameModeDivisionsGameModeIdGet(gameModeId: number, options?: AxiosRequestConfig): Promise>> { return TournamentApiFp(configuration).tournamentGameModeDivisionsGameModeIdGet(gameModeId, options).then((request) => request(axios, basePath)); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentGameModesAllGet(options?: AxiosRequestConfig): Promise>> { return TournamentApiFp(configuration).tournamentGameModesAllGet(options).then((request) => request(axios, basePath)); }, /** * * @param {number} gameId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentGameModesGameIdGet(gameId: number, options?: AxiosRequestConfig): Promise>> { return TournamentApiFp(configuration).tournamentGameModesGameIdGet(gameId, options).then((request) => request(axios, basePath)); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentGamesGet(options?: AxiosRequestConfig): Promise>> { return TournamentApiFp(configuration).tournamentGamesGet(options).then((request) => request(axios, basePath)); }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentIdGet(id: number, options?: AxiosRequestConfig): Promise> { return TournamentApiFp(configuration).tournamentIdGet(id, options).then((request) => request(axios, basePath)); }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentIdPlayersGet(id: number, options?: AxiosRequestConfig): Promise> { return TournamentApiFp(configuration).tournamentIdPlayersGet(id, options).then((request) => request(axios, basePath)); }, /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentIdTeamsGet(id: number, options?: AxiosRequestConfig): Promise>> { return TournamentApiFp(configuration).tournamentIdTeamsGet(id, options).then((request) => request(axios, basePath)); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentPastGet(options?: AxiosRequestConfig): Promise>> { return TournamentApiFp(configuration).tournamentPastGet(options).then((request) => request(axios, basePath)); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentPaymentsUpdateGet(options?: AxiosRequestConfig): Promise> { return TournamentApiFp(configuration).tournamentPaymentsUpdateGet(options).then((request) => request(axios, basePath)); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentScoresUpdateGet(options?: AxiosRequestConfig): Promise> { return TournamentApiFp(configuration).tournamentScoresUpdateGet(options).then((request) => request(axios, basePath)); }, /** * * @param {number} tournamentId * @param {boolean} forceReset * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentSetTournamentDivisionsTournamentIdForceResetGet(tournamentId: number, forceReset: boolean, options?: AxiosRequestConfig): Promise> { return TournamentApiFp(configuration).tournamentSetTournamentDivisionsTournamentIdForceResetGet(tournamentId, forceReset, options).then((request) => request(axios, basePath)); }, /** * * @param {string} teamId * @param {TournamentScoreMatchPlayerModel} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentTeamAddScoresTeamIdPost(teamId: string, body?: TournamentScoreMatchPlayerModel, options?: AxiosRequestConfig): Promise> { return TournamentApiFp(configuration).tournamentTeamAddScoresTeamIdPost(teamId, body, options).then((request) => request(axios, basePath)); }, /** * * @param {number} teamUserId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentTeamRemovePlayerTeamUserIdDelete(teamUserId: number, options?: AxiosRequestConfig): Promise> { return TournamentApiFp(configuration).tournamentTeamRemovePlayerTeamUserIdDelete(teamUserId, options).then((request) => request(axios, basePath)); }, /** * * @param {number} scoreId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentTeamRemoveScoreScoreIdDelete(scoreId: number, options?: AxiosRequestConfig): Promise> { return TournamentApiFp(configuration).tournamentTeamRemoveScoreScoreIdDelete(scoreId, options).then((request) => request(axios, basePath)); }, /** * * @param {number} teamId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentTeamRemoveTeamTeamIdDelete(teamId: number, options?: AxiosRequestConfig): Promise> { return TournamentApiFp(configuration).tournamentTeamRemoveTeamTeamIdDelete(teamId, options).then((request) => request(axios, basePath)); }, /** * * @param {number} teamId * @param {number} newCaptainId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentTeamTeamIdChangeCaptainNewCaptainIdPost(teamId: number, newCaptainId: number, options?: AxiosRequestConfig): Promise> { return TournamentApiFp(configuration).tournamentTeamTeamIdChangeCaptainNewCaptainIdPost(teamId, newCaptainId, options).then((request) => request(axios, basePath)); }, /** * * @param {number} tournamentId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentTournamentAddScoresTournamentIdPost(tournamentId: number, options?: AxiosRequestConfig): Promise> { return TournamentApiFp(configuration).tournamentTournamentAddScoresTournamentIdPost(tournamentId, options).then((request) => request(axios, basePath)); }, /** * * @param {number} tournamentId * @param {EnterTournamentModel} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentTournamentIdEnterPost(tournamentId: number, body?: EnterTournamentModel, options?: AxiosRequestConfig): Promise> { return TournamentApiFp(configuration).tournamentTournamentIdEnterPost(tournamentId, body, options).then((request) => request(axios, basePath)); }, /** * * @param {number} tournamentId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentTournamentIdJoinPost(tournamentId: number, options?: AxiosRequestConfig): Promise> { return TournamentApiFp(configuration).tournamentTournamentIdJoinPost(tournamentId, options).then((request) => request(axios, basePath)); }, /** * * @param {number} tournamentId * @param {AddReservesModel} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentTournamentIdReservesAddPost(tournamentId: number, body?: AddReservesModel, options?: AxiosRequestConfig): Promise> { return TournamentApiFp(configuration).tournamentTournamentIdReservesAddPost(tournamentId, body, options).then((request) => request(axios, basePath)); }, /** * * @param {number} tournamentId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentTournamentIdScoresGet(tournamentId: number, options?: AxiosRequestConfig): Promise>> { return TournamentApiFp(configuration).tournamentTournamentIdScoresGet(tournamentId, options).then((request) => request(axios, basePath)); }, /** * * @param {number} tournamentId * @param {number} [status] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentTournamentIdTeammemberStatusPost(tournamentId: number, status?: number, options?: AxiosRequestConfig): Promise> { return TournamentApiFp(configuration).tournamentTournamentIdTeammemberStatusPost(tournamentId, status, options).then((request) => request(axios, basePath)); }, /** * * @param {number} tournamentId * @param {TournamentModel} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentTournamentIdUpdatePost(tournamentId: number, body?: TournamentModel, options?: AxiosRequestConfig): Promise> { return TournamentApiFp(configuration).tournamentTournamentIdUpdatePost(tournamentId, body, options).then((request) => request(axios, basePath)); }, /** * * @param {number} teamId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentTournamentTeamScoresTeamIdGet(teamId: number, options?: AxiosRequestConfig): Promise>> { return TournamentApiFp(configuration).tournamentTournamentTeamScoresTeamIdGet(teamId, options).then((request) => request(axios, basePath)); }, /** * * @param {number} teamId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentTournamentTeamTeamIdGet(teamId: number, options?: AxiosRequestConfig): Promise> { return TournamentApiFp(configuration).tournamentTournamentTeamTeamIdGet(teamId, options).then((request) => request(axios, basePath)); }, /** * * @param {TournamentModel} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentTournamentsCreatePost(body?: TournamentModel, options?: AxiosRequestConfig): Promise> { return TournamentApiFp(configuration).tournamentTournamentsCreatePost(body, options).then((request) => request(axios, basePath)); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentUpcomingGet(options?: AxiosRequestConfig): Promise>> { return TournamentApiFp(configuration).tournamentUpcomingGet(options).then((request) => request(axios, basePath)); }, /** * * @param {number} tournamentTeamUserId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentUpdateKdTournamentTeamUserIdGet(tournamentTeamUserId: number, options?: AxiosRequestConfig): Promise> { return TournamentApiFp(configuration).tournamentUpdateKdTournamentTeamUserIdGet(tournamentTeamUserId, options).then((request) => request(axios, basePath)); }, /** * * @param {number} tournamentTeamId * @param {boolean} forceReset * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentUpdateTournamentTeamStatsTournamentTeamIdForceResetGet(tournamentTeamId: number, forceReset: boolean, options?: AxiosRequestConfig): Promise> { return TournamentApiFp(configuration).tournamentUpdateTournamentTeamStatsTournamentTeamIdForceResetGet(tournamentTeamId, forceReset, options).then((request) => request(axios, basePath)); }, /** * * @param {number} tournamentTeamUserId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentUpdateTournamentTeamUserStatsTournamentTeamUserIdGet(tournamentTeamUserId: number, options?: AxiosRequestConfig): Promise> { return TournamentApiFp(configuration).tournamentUpdateTournamentTeamUserStatsTournamentTeamUserIdGet(tournamentTeamUserId, options).then((request) => request(axios, basePath)); }, /** * * @param {number} tournamentId * @param {number} maxUsers * @param {*} [options] Override http request option. * @throws {RequiredError} */ async tournamentUpdateUnprocessedUserStatsInTournamentTournamentIdMaxUsersGet(tournamentId: number, maxUsers: number, options?: AxiosRequestConfig): Promise> { return TournamentApiFp(configuration).tournamentUpdateUnprocessedUserStatsInTournamentTournamentIdMaxUsersGet(tournamentId, maxUsers, options).then((request) => request(axios, basePath)); }, }; }; /** * TournamentApi - object-oriented interface * @export * @class TournamentApi * @extends {BaseAPI} */ export class TournamentApi extends BaseAPI { /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApi */ public async tournamentAllGet(options?: AxiosRequestConfig) : Promise>> { return TournamentApiFp(this.configuration).tournamentAllGet(options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} orderId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApi */ public async tournamentDonateOrderIdGet(orderId: string, options?: AxiosRequestConfig) : Promise> { return TournamentApiFp(this.configuration).tournamentDonateOrderIdGet(orderId, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} tournamentId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApi */ public async tournamentDonationsTournamentIdGet(tournamentId: number, options?: AxiosRequestConfig) : Promise>> { return TournamentApiFp(this.configuration).tournamentDonationsTournamentIdGet(tournamentId, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} gameModeId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApi */ public async tournamentGameModeDivisionsGameModeIdGet(gameModeId: number, options?: AxiosRequestConfig) : Promise>> { return TournamentApiFp(this.configuration).tournamentGameModeDivisionsGameModeIdGet(gameModeId, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApi */ public async tournamentGameModesAllGet(options?: AxiosRequestConfig) : Promise>> { return TournamentApiFp(this.configuration).tournamentGameModesAllGet(options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} gameId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApi */ public async tournamentGameModesGameIdGet(gameId: number, options?: AxiosRequestConfig) : Promise>> { return TournamentApiFp(this.configuration).tournamentGameModesGameIdGet(gameId, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApi */ public async tournamentGamesGet(options?: AxiosRequestConfig) : Promise>> { return TournamentApiFp(this.configuration).tournamentGamesGet(options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApi */ public async tournamentIdGet(id: number, options?: AxiosRequestConfig) : Promise> { return TournamentApiFp(this.configuration).tournamentIdGet(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApi */ public async tournamentIdPlayersGet(id: number, options?: AxiosRequestConfig) : Promise> { return TournamentApiFp(this.configuration).tournamentIdPlayersGet(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApi */ public async tournamentIdTeamsGet(id: number, options?: AxiosRequestConfig) : Promise>> { return TournamentApiFp(this.configuration).tournamentIdTeamsGet(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApi */ public async tournamentPastGet(options?: AxiosRequestConfig) : Promise>> { return TournamentApiFp(this.configuration).tournamentPastGet(options).then((request) => request(this.axios, this.basePath)); } /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApi */ public async tournamentPaymentsUpdateGet(options?: AxiosRequestConfig) : Promise> { return TournamentApiFp(this.configuration).tournamentPaymentsUpdateGet(options).then((request) => request(this.axios, this.basePath)); } /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApi */ public async tournamentScoresUpdateGet(options?: AxiosRequestConfig) : Promise> { return TournamentApiFp(this.configuration).tournamentScoresUpdateGet(options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} tournamentId * @param {boolean} forceReset * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApi */ public async tournamentSetTournamentDivisionsTournamentIdForceResetGet(tournamentId: number, forceReset: boolean, options?: AxiosRequestConfig) : Promise> { return TournamentApiFp(this.configuration).tournamentSetTournamentDivisionsTournamentIdForceResetGet(tournamentId, forceReset, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} teamId * @param {TournamentScoreMatchPlayerModel} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApi */ public async tournamentTeamAddScoresTeamIdPost(teamId: string, body?: TournamentScoreMatchPlayerModel, options?: AxiosRequestConfig) : Promise> { return TournamentApiFp(this.configuration).tournamentTeamAddScoresTeamIdPost(teamId, body, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} teamUserId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApi */ public async tournamentTeamRemovePlayerTeamUserIdDelete(teamUserId: number, options?: AxiosRequestConfig) : Promise> { return TournamentApiFp(this.configuration).tournamentTeamRemovePlayerTeamUserIdDelete(teamUserId, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} scoreId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApi */ public async tournamentTeamRemoveScoreScoreIdDelete(scoreId: number, options?: AxiosRequestConfig) : Promise> { return TournamentApiFp(this.configuration).tournamentTeamRemoveScoreScoreIdDelete(scoreId, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} teamId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApi */ public async tournamentTeamRemoveTeamTeamIdDelete(teamId: number, options?: AxiosRequestConfig) : Promise> { return TournamentApiFp(this.configuration).tournamentTeamRemoveTeamTeamIdDelete(teamId, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} teamId * @param {number} newCaptainId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApi */ public async tournamentTeamTeamIdChangeCaptainNewCaptainIdPost(teamId: number, newCaptainId: number, options?: AxiosRequestConfig) : Promise> { return TournamentApiFp(this.configuration).tournamentTeamTeamIdChangeCaptainNewCaptainIdPost(teamId, newCaptainId, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} tournamentId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApi */ public async tournamentTournamentAddScoresTournamentIdPost(tournamentId: number, options?: AxiosRequestConfig) : Promise> { return TournamentApiFp(this.configuration).tournamentTournamentAddScoresTournamentIdPost(tournamentId, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} tournamentId * @param {EnterTournamentModel} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApi */ public async tournamentTournamentIdEnterPost(tournamentId: number, body?: EnterTournamentModel, options?: AxiosRequestConfig) : Promise> { return TournamentApiFp(this.configuration).tournamentTournamentIdEnterPost(tournamentId, body, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} tournamentId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApi */ public async tournamentTournamentIdJoinPost(tournamentId: number, options?: AxiosRequestConfig) : Promise> { return TournamentApiFp(this.configuration).tournamentTournamentIdJoinPost(tournamentId, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} tournamentId * @param {AddReservesModel} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApi */ public async tournamentTournamentIdReservesAddPost(tournamentId: number, body?: AddReservesModel, options?: AxiosRequestConfig) : Promise> { return TournamentApiFp(this.configuration).tournamentTournamentIdReservesAddPost(tournamentId, body, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} tournamentId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApi */ public async tournamentTournamentIdScoresGet(tournamentId: number, options?: AxiosRequestConfig) : Promise>> { return TournamentApiFp(this.configuration).tournamentTournamentIdScoresGet(tournamentId, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} tournamentId * @param {number} [status] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApi */ public async tournamentTournamentIdTeammemberStatusPost(tournamentId: number, status?: number, options?: AxiosRequestConfig) : Promise> { return TournamentApiFp(this.configuration).tournamentTournamentIdTeammemberStatusPost(tournamentId, status, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} tournamentId * @param {TournamentModel} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApi */ public async tournamentTournamentIdUpdatePost(tournamentId: number, body?: TournamentModel, options?: AxiosRequestConfig) : Promise> { return TournamentApiFp(this.configuration).tournamentTournamentIdUpdatePost(tournamentId, body, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} teamId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApi */ public async tournamentTournamentTeamScoresTeamIdGet(teamId: number, options?: AxiosRequestConfig) : Promise>> { return TournamentApiFp(this.configuration).tournamentTournamentTeamScoresTeamIdGet(teamId, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} teamId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApi */ public async tournamentTournamentTeamTeamIdGet(teamId: number, options?: AxiosRequestConfig) : Promise> { return TournamentApiFp(this.configuration).tournamentTournamentTeamTeamIdGet(teamId, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {TournamentModel} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApi */ public async tournamentTournamentsCreatePost(body?: TournamentModel, options?: AxiosRequestConfig) : Promise> { return TournamentApiFp(this.configuration).tournamentTournamentsCreatePost(body, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApi */ public async tournamentUpcomingGet(options?: AxiosRequestConfig) : Promise>> { return TournamentApiFp(this.configuration).tournamentUpcomingGet(options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} tournamentTeamUserId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApi */ public async tournamentUpdateKdTournamentTeamUserIdGet(tournamentTeamUserId: number, options?: AxiosRequestConfig) : Promise> { return TournamentApiFp(this.configuration).tournamentUpdateKdTournamentTeamUserIdGet(tournamentTeamUserId, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} tournamentTeamId * @param {boolean} forceReset * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApi */ public async tournamentUpdateTournamentTeamStatsTournamentTeamIdForceResetGet(tournamentTeamId: number, forceReset: boolean, options?: AxiosRequestConfig) : Promise> { return TournamentApiFp(this.configuration).tournamentUpdateTournamentTeamStatsTournamentTeamIdForceResetGet(tournamentTeamId, forceReset, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} tournamentTeamUserId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApi */ public async tournamentUpdateTournamentTeamUserStatsTournamentTeamUserIdGet(tournamentTeamUserId: number, options?: AxiosRequestConfig) : Promise> { return TournamentApiFp(this.configuration).tournamentUpdateTournamentTeamUserStatsTournamentTeamUserIdGet(tournamentTeamUserId, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} tournamentId * @param {number} maxUsers * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TournamentApi */ public async tournamentUpdateUnprocessedUserStatsInTournamentTournamentIdMaxUsersGet(tournamentId: number, maxUsers: number, options?: AxiosRequestConfig) : Promise> { return TournamentApiFp(this.configuration).tournamentUpdateUnprocessedUserStatsInTournamentTournamentIdMaxUsersGet(tournamentId, maxUsers, options).then((request) => request(this.axios, this.basePath)); } }