@takaro/apiclient 0.3.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/generated/api.js
CHANGED
|
@@ -9952,10 +9952,11 @@ export const ShopCategoryApiAxiosParamCreator = function (configuration) {
|
|
|
9952
9952
|
/**
|
|
9953
9953
|
* Get all shop categories<br> OperationId: `ShopCategoryControllerGetAll`
|
|
9954
9954
|
* @summary Get all
|
|
9955
|
+
* @param {string} [gameServerId]
|
|
9955
9956
|
* @param {*} [options] Override http request option.
|
|
9956
9957
|
* @throws {RequiredError}
|
|
9957
9958
|
*/
|
|
9958
|
-
shopCategoryControllerGetAll: async (options = {}) => {
|
|
9959
|
+
shopCategoryControllerGetAll: async (gameServerId, options = {}) => {
|
|
9959
9960
|
const localVarPath = `/shop/category/`;
|
|
9960
9961
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9961
9962
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -9967,6 +9968,9 @@ export const ShopCategoryApiAxiosParamCreator = function (configuration) {
|
|
|
9967
9968
|
const localVarHeaderParameter = {};
|
|
9968
9969
|
const localVarQueryParameter = {};
|
|
9969
9970
|
// authentication domainAuth required
|
|
9971
|
+
if (gameServerId !== undefined) {
|
|
9972
|
+
localVarQueryParameter['gameServerId'] = gameServerId;
|
|
9973
|
+
}
|
|
9970
9974
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9971
9975
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9972
9976
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -9979,10 +9983,11 @@ export const ShopCategoryApiAxiosParamCreator = function (configuration) {
|
|
|
9979
9983
|
* Get a shop category by id<br> OperationId: `ShopCategoryControllerGetOne`
|
|
9980
9984
|
* @summary Get one
|
|
9981
9985
|
* @param {string} id
|
|
9986
|
+
* @param {string} [gameServerId]
|
|
9982
9987
|
* @param {*} [options] Override http request option.
|
|
9983
9988
|
* @throws {RequiredError}
|
|
9984
9989
|
*/
|
|
9985
|
-
shopCategoryControllerGetOne: async (id, options = {}) => {
|
|
9990
|
+
shopCategoryControllerGetOne: async (id, gameServerId, options = {}) => {
|
|
9986
9991
|
// verify required parameter 'id' is not null or undefined
|
|
9987
9992
|
assertParamExists('shopCategoryControllerGetOne', 'id', id);
|
|
9988
9993
|
const localVarPath = `/shop/category/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -9996,6 +10001,9 @@ export const ShopCategoryApiAxiosParamCreator = function (configuration) {
|
|
|
9996
10001
|
const localVarHeaderParameter = {};
|
|
9997
10002
|
const localVarQueryParameter = {};
|
|
9998
10003
|
// authentication domainAuth required
|
|
10004
|
+
if (gameServerId !== undefined) {
|
|
10005
|
+
localVarQueryParameter['gameServerId'] = gameServerId;
|
|
10006
|
+
}
|
|
9999
10007
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10000
10008
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10001
10009
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -10164,11 +10172,12 @@ export const ShopCategoryApiFp = function (configuration) {
|
|
|
10164
10172
|
/**
|
|
10165
10173
|
* Get all shop categories<br> OperationId: `ShopCategoryControllerGetAll`
|
|
10166
10174
|
* @summary Get all
|
|
10175
|
+
* @param {string} [gameServerId]
|
|
10167
10176
|
* @param {*} [options] Override http request option.
|
|
10168
10177
|
* @throws {RequiredError}
|
|
10169
10178
|
*/
|
|
10170
|
-
async shopCategoryControllerGetAll(options) {
|
|
10171
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.shopCategoryControllerGetAll(options);
|
|
10179
|
+
async shopCategoryControllerGetAll(gameServerId, options) {
|
|
10180
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.shopCategoryControllerGetAll(gameServerId, options);
|
|
10172
10181
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10173
10182
|
const localVarOperationServerBasePath = operationServerMap['ShopCategoryApi.shopCategoryControllerGetAll']?.[localVarOperationServerIndex]?.url;
|
|
10174
10183
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -10177,11 +10186,12 @@ export const ShopCategoryApiFp = function (configuration) {
|
|
|
10177
10186
|
* Get a shop category by id<br> OperationId: `ShopCategoryControllerGetOne`
|
|
10178
10187
|
* @summary Get one
|
|
10179
10188
|
* @param {string} id
|
|
10189
|
+
* @param {string} [gameServerId]
|
|
10180
10190
|
* @param {*} [options] Override http request option.
|
|
10181
10191
|
* @throws {RequiredError}
|
|
10182
10192
|
*/
|
|
10183
|
-
async shopCategoryControllerGetOne(id, options) {
|
|
10184
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.shopCategoryControllerGetOne(id, options);
|
|
10193
|
+
async shopCategoryControllerGetOne(id, gameServerId, options) {
|
|
10194
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.shopCategoryControllerGetOne(id, gameServerId, options);
|
|
10185
10195
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10186
10196
|
const localVarOperationServerBasePath = operationServerMap['ShopCategoryApi.shopCategoryControllerGetOne']?.[localVarOperationServerIndex]?.url;
|
|
10187
10197
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -10276,21 +10286,25 @@ export const ShopCategoryApiFactory = function (configuration, basePath, axios)
|
|
|
10276
10286
|
/**
|
|
10277
10287
|
* Get all shop categories<br> OperationId: `ShopCategoryControllerGetAll`
|
|
10278
10288
|
* @summary Get all
|
|
10289
|
+
* @param {string} [gameServerId]
|
|
10279
10290
|
* @param {*} [options] Override http request option.
|
|
10280
10291
|
* @throws {RequiredError}
|
|
10281
10292
|
*/
|
|
10282
|
-
shopCategoryControllerGetAll(options) {
|
|
10283
|
-
return localVarFp.shopCategoryControllerGetAll(options).then((request) => request(axios, basePath));
|
|
10293
|
+
shopCategoryControllerGetAll(gameServerId, options) {
|
|
10294
|
+
return localVarFp.shopCategoryControllerGetAll(gameServerId, options).then((request) => request(axios, basePath));
|
|
10284
10295
|
},
|
|
10285
10296
|
/**
|
|
10286
10297
|
* Get a shop category by id<br> OperationId: `ShopCategoryControllerGetOne`
|
|
10287
10298
|
* @summary Get one
|
|
10288
10299
|
* @param {string} id
|
|
10300
|
+
* @param {string} [gameServerId]
|
|
10289
10301
|
* @param {*} [options] Override http request option.
|
|
10290
10302
|
* @throws {RequiredError}
|
|
10291
10303
|
*/
|
|
10292
|
-
shopCategoryControllerGetOne(id, options) {
|
|
10293
|
-
return localVarFp
|
|
10304
|
+
shopCategoryControllerGetOne(id, gameServerId, options) {
|
|
10305
|
+
return localVarFp
|
|
10306
|
+
.shopCategoryControllerGetOne(id, gameServerId, options)
|
|
10307
|
+
.then((request) => request(axios, basePath));
|
|
10294
10308
|
},
|
|
10295
10309
|
/**
|
|
10296
10310
|
* Move a shop category to a different parent Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `ShopCategoryControllerMove`
|
|
@@ -10378,26 +10392,28 @@ export class ShopCategoryApi extends BaseAPI {
|
|
|
10378
10392
|
/**
|
|
10379
10393
|
* Get all shop categories<br> OperationId: `ShopCategoryControllerGetAll`
|
|
10380
10394
|
* @summary Get all
|
|
10395
|
+
* @param {string} [gameServerId]
|
|
10381
10396
|
* @param {*} [options] Override http request option.
|
|
10382
10397
|
* @throws {RequiredError}
|
|
10383
10398
|
* @memberof ShopCategoryApi
|
|
10384
10399
|
*/
|
|
10385
|
-
shopCategoryControllerGetAll(options) {
|
|
10400
|
+
shopCategoryControllerGetAll(gameServerId, options) {
|
|
10386
10401
|
return ShopCategoryApiFp(this.configuration)
|
|
10387
|
-
.shopCategoryControllerGetAll(options)
|
|
10402
|
+
.shopCategoryControllerGetAll(gameServerId, options)
|
|
10388
10403
|
.then((request) => request(this.axios, this.basePath));
|
|
10389
10404
|
}
|
|
10390
10405
|
/**
|
|
10391
10406
|
* Get a shop category by id<br> OperationId: `ShopCategoryControllerGetOne`
|
|
10392
10407
|
* @summary Get one
|
|
10393
10408
|
* @param {string} id
|
|
10409
|
+
* @param {string} [gameServerId]
|
|
10394
10410
|
* @param {*} [options] Override http request option.
|
|
10395
10411
|
* @throws {RequiredError}
|
|
10396
10412
|
* @memberof ShopCategoryApi
|
|
10397
10413
|
*/
|
|
10398
|
-
shopCategoryControllerGetOne(id, options) {
|
|
10414
|
+
shopCategoryControllerGetOne(id, gameServerId, options) {
|
|
10399
10415
|
return ShopCategoryApiFp(this.configuration)
|
|
10400
|
-
.shopCategoryControllerGetOne(id, options)
|
|
10416
|
+
.shopCategoryControllerGetOne(id, gameServerId, options)
|
|
10401
10417
|
.then((request) => request(this.axios, this.basePath));
|
|
10402
10418
|
}
|
|
10403
10419
|
/**
|