-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fc99f56
commit 9f1f1b1
Showing
5 changed files
with
278 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* Takaro app-api | ||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
* | ||
* The version of the OpenAPI document: development - 6ab7a6f6b7cb278165265c7cafdf2b3c3ca9d90a | ||
* The version of the OpenAPI document: development - fc99f56c09f7f05a31693d60784c28ce6aa08d1e | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
@@ -5095,6 +5095,80 @@ export interface LoginOutputDTOAPI { | |
*/ | ||
meta: MetadataOutput; | ||
} | ||
/** | ||
* | ||
* @export | ||
* @interface MapInfoDTO | ||
*/ | ||
export interface MapInfoDTO { | ||
/** | ||
* | ||
* @type {boolean} | ||
* @memberof MapInfoDTO | ||
*/ | ||
enabled: boolean; | ||
/** | ||
* | ||
* @type {number} | ||
* @memberof MapInfoDTO | ||
*/ | ||
mapBlockSize: number; | ||
/** | ||
* | ||
* @type {number} | ||
* @memberof MapInfoDTO | ||
*/ | ||
maxZoom: number; | ||
/** | ||
* | ||
* @type {number} | ||
* @memberof MapInfoDTO | ||
*/ | ||
mapSizeX: number; | ||
/** | ||
* | ||
* @type {number} | ||
* @memberof MapInfoDTO | ||
*/ | ||
mapSizeY: number; | ||
/** | ||
* | ||
* @type {number} | ||
* @memberof MapInfoDTO | ||
*/ | ||
mapSizeZ: number; | ||
} | ||
/** | ||
* | ||
* @export | ||
* @interface MapTileInputDTO | ||
*/ | ||
export interface MapTileInputDTO { | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof MapTileInputDTO | ||
*/ | ||
id: string; | ||
/** | ||
* | ||
* @type {number} | ||
* @memberof MapTileInputDTO | ||
*/ | ||
z: number; | ||
/** | ||
* | ||
* @type {number} | ||
* @memberof MapTileInputDTO | ||
*/ | ||
x: number; | ||
/** | ||
* | ||
* @type {number} | ||
* @memberof MapTileInputDTO | ||
*/ | ||
y: number; | ||
} | ||
/** | ||
* | ||
* @export | ||
|
@@ -14080,6 +14154,91 @@ export const GameServerApiAxiosParamCreator = function (configuration?: Configur | |
options: localVarRequestOptions, | ||
}; | ||
}, | ||
/** | ||
* Get map metadata for Leaflet | ||
* @summary Get map info | ||
* @param {string} id | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
gameServerControllerGetMapInfo: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
// verify required parameter 'id' is not null or undefined | ||
assertParamExists('gameServerControllerGetMapInfo', 'id', id); | ||
const localVarPath = `/gameserver/{id}/map/info`.replace(`{${'id'}}`, encodeURIComponent(String(id))); | ||
// use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); | ||
let baseOptions; | ||
if (configuration) { | ||
baseOptions = configuration.baseOptions; | ||
} | ||
|
||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; | ||
const localVarHeaderParameter = {} as any; | ||
const localVarQueryParameter = {} as any; | ||
|
||
// authentication domainAuth required | ||
|
||
setSearchParams(localVarUrlObj, localVarQueryParameter); | ||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; | ||
|
||
return { | ||
url: toPathString(localVarUrlObj), | ||
options: localVarRequestOptions, | ||
}; | ||
}, | ||
/** | ||
* Get a map tile for Leaflet | ||
* @summary Get map tile | ||
* @param {string} id | ||
* @param {string} x | ||
* @param {string} y | ||
* @param {string} z | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
gameServerControllerGetMapTile: async ( | ||
id: string, | ||
x: string, | ||
y: string, | ||
z: string, | ||
options: RawAxiosRequestConfig = {}, | ||
): Promise<RequestArgs> => { | ||
// verify required parameter 'id' is not null or undefined | ||
assertParamExists('gameServerControllerGetMapTile', 'id', id); | ||
// verify required parameter 'x' is not null or undefined | ||
assertParamExists('gameServerControllerGetMapTile', 'x', x); | ||
// verify required parameter 'y' is not null or undefined | ||
assertParamExists('gameServerControllerGetMapTile', 'y', y); | ||
// verify required parameter 'z' is not null or undefined | ||
assertParamExists('gameServerControllerGetMapTile', 'z', z); | ||
const localVarPath = `/gameserver/{id}/map/tile/{x}/{y}/{z}` | ||
.replace(`{${'id'}}`, encodeURIComponent(String(id))) | ||
.replace(`{${'x'}}`, encodeURIComponent(String(x))) | ||
.replace(`{${'y'}}`, encodeURIComponent(String(y))) | ||
.replace(`{${'z'}}`, encodeURIComponent(String(z))); | ||
// use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); | ||
let baseOptions; | ||
if (configuration) { | ||
baseOptions = configuration.baseOptions; | ||
} | ||
|
||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }; | ||
const localVarHeaderParameter = {} as any; | ||
const localVarQueryParameter = {} as any; | ||
|
||
// authentication domainAuth required | ||
|
||
setSearchParams(localVarUrlObj, localVarQueryParameter); | ||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }; | ||
|
||
return { | ||
url: toPathString(localVarUrlObj), | ||
options: localVarRequestOptions, | ||
}; | ||
}, | ||
/** | ||
* Get a module installation by id | ||
* @summary Get module installation | ||
|
@@ -14970,6 +15129,58 @@ export const GameServerApiFp = function (configuration?: Configuration) { | |
configuration, | ||
)(axios, localVarOperationServerBasePath || basePath); | ||
}, | ||
/** | ||
* Get map metadata for Leaflet | ||
* @summary Get map info | ||
* @param {string} id | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async gameServerControllerGetMapInfo( | ||
id: string, | ||
options?: RawAxiosRequestConfig, | ||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerGetMapInfo(id, options); | ||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; | ||
const localVarOperationServerBasePath = | ||
operationServerMap['GameServerApi.gameServerControllerGetMapInfo']?.[localVarOperationServerIndex]?.url; | ||
return (axios, basePath) => | ||
createRequestFunction( | ||
localVarAxiosArgs, | ||
globalAxios, | ||
BASE_PATH, | ||
configuration, | ||
)(axios, localVarOperationServerBasePath || basePath); | ||
}, | ||
/** | ||
* Get a map tile for Leaflet | ||
* @summary Get map tile | ||
* @param {string} id | ||
* @param {string} x | ||
* @param {string} y | ||
* @param {string} z | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async gameServerControllerGetMapTile( | ||
id: string, | ||
x: string, | ||
y: string, | ||
z: string, | ||
options?: RawAxiosRequestConfig, | ||
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerGetMapTile(id, x, y, z, options); | ||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; | ||
const localVarOperationServerBasePath = | ||
operationServerMap['GameServerApi.gameServerControllerGetMapTile']?.[localVarOperationServerIndex]?.url; | ||
return (axios, basePath) => | ||
createRequestFunction( | ||
localVarAxiosArgs, | ||
globalAxios, | ||
BASE_PATH, | ||
configuration, | ||
)(axios, localVarOperationServerBasePath || basePath); | ||
}, | ||
/** | ||
* Get a module installation by id | ||
* @summary Get module installation | ||
|
@@ -15566,6 +15777,37 @@ export const GameServerApiFactory = function (configuration?: Configuration, bas | |
.gameServerControllerGetInstalledModules(id, options) | ||
.then((request) => request(axios, basePath)); | ||
}, | ||
/** | ||
* Get map metadata for Leaflet | ||
* @summary Get map info | ||
* @param {string} id | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
gameServerControllerGetMapInfo(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> { | ||
return localVarFp.gameServerControllerGetMapInfo(id, options).then((request) => request(axios, basePath)); | ||
}, | ||
/** | ||
* Get a map tile for Leaflet | ||
* @summary Get map tile | ||
* @param {string} id | ||
* @param {string} x | ||
* @param {string} y | ||
* @param {string} z | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
gameServerControllerGetMapTile( | ||
id: string, | ||
x: string, | ||
y: string, | ||
z: string, | ||
options?: RawAxiosRequestConfig, | ||
): AxiosPromise<void> { | ||
return localVarFp | ||
.gameServerControllerGetMapTile(id, x, y, z, options) | ||
.then((request) => request(axios, basePath)); | ||
}, | ||
/** | ||
* Get a module installation by id | ||
* @summary Get module installation | ||
|
@@ -15938,6 +16180,37 @@ export class GameServerApi extends BaseAPI { | |
.then((request) => request(this.axios, this.basePath)); | ||
} | ||
|
||
/** | ||
* Get map metadata for Leaflet | ||
* @summary Get map info | ||
* @param {string} id | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof GameServerApi | ||
*/ | ||
public gameServerControllerGetMapInfo(id: string, options?: RawAxiosRequestConfig) { | ||
return GameServerApiFp(this.configuration) | ||
.gameServerControllerGetMapInfo(id, options) | ||
.then((request) => request(this.axios, this.basePath)); | ||
} | ||
|
||
/** | ||
* Get a map tile for Leaflet | ||
* @summary Get map tile | ||
* @param {string} id | ||
* @param {string} x | ||
* @param {string} y | ||
* @param {string} z | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof GameServerApi | ||
*/ | ||
public gameServerControllerGetMapTile(id: string, x: string, y: string, z: string, options?: RawAxiosRequestConfig) { | ||
return GameServerApiFp(this.configuration) | ||
.gameServerControllerGetMapTile(id, x, y, z, options) | ||
.then((request) => request(this.axios, this.basePath)); | ||
} | ||
|
||
/** | ||
* Get a module installation by id | ||
* @summary Get module installation | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* Takaro app-api | ||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
* | ||
* The version of the OpenAPI document: development - 6ab7a6f6b7cb278165265c7cafdf2b3c3ca9d90a | ||
* The version of the OpenAPI document: development - fc99f56c09f7f05a31693d60784c28ce6aa08d1e | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* Takaro app-api | ||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
* | ||
* The version of the OpenAPI document: development - 6ab7a6f6b7cb278165265c7cafdf2b3c3ca9d90a | ||
* The version of the OpenAPI document: development - fc99f56c09f7f05a31693d60784c28ce6aa08d1e | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* Takaro app-api | ||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
* | ||
* The version of the OpenAPI document: development - 6ab7a6f6b7cb278165265c7cafdf2b3c3ca9d90a | ||
* The version of the OpenAPI document: development - fc99f56c09f7f05a31693d60784c28ce6aa08d1e | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* Takaro app-api | ||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
* | ||
* The version of the OpenAPI document: development - 6ab7a6f6b7cb278165265c7cafdf2b3c3ca9d90a | ||
* The version of the OpenAPI document: development - fc99f56c09f7f05a31693d60784c28ce6aa08d1e | ||
* Contact: [email protected] | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
|