@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/package.json
CHANGED
|
@@ -113,6 +113,7 @@ docs/FunctionSearchInputDTO.md
|
|
|
113
113
|
docs/FunctionUpdateDTO.md
|
|
114
114
|
docs/GameServerApi.md
|
|
115
115
|
docs/GameServerCreateDTO.md
|
|
116
|
+
docs/GameServerIdQueryParam.md
|
|
116
117
|
docs/GameServerOutputArrayDTOAPI.md
|
|
117
118
|
docs/GameServerOutputDTO.md
|
|
118
119
|
docs/GameServerOutputDTOAPI.md
|
package/src/generated/api.ts
CHANGED
|
@@ -3807,6 +3807,19 @@ export const GameServerCreateDTOTypeEnum = {
|
|
|
3807
3807
|
export type GameServerCreateDTOTypeEnum =
|
|
3808
3808
|
(typeof GameServerCreateDTOTypeEnum)[keyof typeof GameServerCreateDTOTypeEnum];
|
|
3809
3809
|
|
|
3810
|
+
/**
|
|
3811
|
+
*
|
|
3812
|
+
* @export
|
|
3813
|
+
* @interface GameServerIdQueryParam
|
|
3814
|
+
*/
|
|
3815
|
+
export interface GameServerIdQueryParam {
|
|
3816
|
+
/**
|
|
3817
|
+
*
|
|
3818
|
+
* @type {string}
|
|
3819
|
+
* @memberof GameServerIdQueryParam
|
|
3820
|
+
*/
|
|
3821
|
+
gameServerId?: string;
|
|
3822
|
+
}
|
|
3810
3823
|
/**
|
|
3811
3824
|
*
|
|
3812
3825
|
* @export
|
|
@@ -10530,6 +10543,12 @@ export interface ShopCategorySearchInputAllowedFilters {
|
|
|
10530
10543
|
* @memberof ShopCategorySearchInputAllowedFilters
|
|
10531
10544
|
*/
|
|
10532
10545
|
parentId?: Array<string>;
|
|
10546
|
+
/**
|
|
10547
|
+
*
|
|
10548
|
+
* @type {Array<string>}
|
|
10549
|
+
* @memberof ShopCategorySearchInputAllowedFilters
|
|
10550
|
+
*/
|
|
10551
|
+
gameServerId?: Array<string>;
|
|
10533
10552
|
}
|
|
10534
10553
|
/**
|
|
10535
10554
|
*
|
|
@@ -25549,10 +25568,14 @@ export const ShopCategoryApiAxiosParamCreator = function (configuration?: Config
|
|
|
25549
25568
|
/**
|
|
25550
25569
|
* Get all shop categories<br> OperationId: `ShopCategoryControllerGetAll`
|
|
25551
25570
|
* @summary Get all
|
|
25571
|
+
* @param {string} [gameServerId]
|
|
25552
25572
|
* @param {*} [options] Override http request option.
|
|
25553
25573
|
* @throws {RequiredError}
|
|
25554
25574
|
*/
|
|
25555
|
-
shopCategoryControllerGetAll: async (
|
|
25575
|
+
shopCategoryControllerGetAll: async (
|
|
25576
|
+
gameServerId?: string,
|
|
25577
|
+
options: RawAxiosRequestConfig = {},
|
|
25578
|
+
): Promise<RequestArgs> => {
|
|
25556
25579
|
const localVarPath = `/shop/category/`;
|
|
25557
25580
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25558
25581
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -25567,6 +25590,10 @@ export const ShopCategoryApiAxiosParamCreator = function (configuration?: Config
|
|
|
25567
25590
|
|
|
25568
25591
|
// authentication domainAuth required
|
|
25569
25592
|
|
|
25593
|
+
if (gameServerId !== undefined) {
|
|
25594
|
+
localVarQueryParameter['gameServerId'] = gameServerId;
|
|
25595
|
+
}
|
|
25596
|
+
|
|
25570
25597
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
25571
25598
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25572
25599
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -25580,10 +25607,15 @@ export const ShopCategoryApiAxiosParamCreator = function (configuration?: Config
|
|
|
25580
25607
|
* Get a shop category by id<br> OperationId: `ShopCategoryControllerGetOne`
|
|
25581
25608
|
* @summary Get one
|
|
25582
25609
|
* @param {string} id
|
|
25610
|
+
* @param {string} [gameServerId]
|
|
25583
25611
|
* @param {*} [options] Override http request option.
|
|
25584
25612
|
* @throws {RequiredError}
|
|
25585
25613
|
*/
|
|
25586
|
-
shopCategoryControllerGetOne: async (
|
|
25614
|
+
shopCategoryControllerGetOne: async (
|
|
25615
|
+
id: string,
|
|
25616
|
+
gameServerId?: string,
|
|
25617
|
+
options: RawAxiosRequestConfig = {},
|
|
25618
|
+
): Promise<RequestArgs> => {
|
|
25587
25619
|
// verify required parameter 'id' is not null or undefined
|
|
25588
25620
|
assertParamExists('shopCategoryControllerGetOne', 'id', id);
|
|
25589
25621
|
const localVarPath = `/shop/category/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -25600,6 +25632,10 @@ export const ShopCategoryApiAxiosParamCreator = function (configuration?: Config
|
|
|
25600
25632
|
|
|
25601
25633
|
// authentication domainAuth required
|
|
25602
25634
|
|
|
25635
|
+
if (gameServerId !== undefined) {
|
|
25636
|
+
localVarQueryParameter['gameServerId'] = gameServerId;
|
|
25637
|
+
}
|
|
25638
|
+
|
|
25603
25639
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
25604
25640
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25605
25641
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -25830,13 +25866,15 @@ export const ShopCategoryApiFp = function (configuration?: Configuration) {
|
|
|
25830
25866
|
/**
|
|
25831
25867
|
* Get all shop categories<br> OperationId: `ShopCategoryControllerGetAll`
|
|
25832
25868
|
* @summary Get all
|
|
25869
|
+
* @param {string} [gameServerId]
|
|
25833
25870
|
* @param {*} [options] Override http request option.
|
|
25834
25871
|
* @throws {RequiredError}
|
|
25835
25872
|
*/
|
|
25836
25873
|
async shopCategoryControllerGetAll(
|
|
25874
|
+
gameServerId?: string,
|
|
25837
25875
|
options?: RawAxiosRequestConfig,
|
|
25838
25876
|
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShopCategoryOutputArrayDTOAPI>> {
|
|
25839
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.shopCategoryControllerGetAll(options);
|
|
25877
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.shopCategoryControllerGetAll(gameServerId, options);
|
|
25840
25878
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
25841
25879
|
const localVarOperationServerBasePath =
|
|
25842
25880
|
operationServerMap['ShopCategoryApi.shopCategoryControllerGetAll']?.[localVarOperationServerIndex]?.url;
|
|
@@ -25852,14 +25890,16 @@ export const ShopCategoryApiFp = function (configuration?: Configuration) {
|
|
|
25852
25890
|
* Get a shop category by id<br> OperationId: `ShopCategoryControllerGetOne`
|
|
25853
25891
|
* @summary Get one
|
|
25854
25892
|
* @param {string} id
|
|
25893
|
+
* @param {string} [gameServerId]
|
|
25855
25894
|
* @param {*} [options] Override http request option.
|
|
25856
25895
|
* @throws {RequiredError}
|
|
25857
25896
|
*/
|
|
25858
25897
|
async shopCategoryControllerGetOne(
|
|
25859
25898
|
id: string,
|
|
25899
|
+
gameServerId?: string,
|
|
25860
25900
|
options?: RawAxiosRequestConfig,
|
|
25861
25901
|
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShopCategoryOutputDTOAPI>> {
|
|
25862
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.shopCategoryControllerGetOne(id, options);
|
|
25902
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.shopCategoryControllerGetOne(id, gameServerId, options);
|
|
25863
25903
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
25864
25904
|
const localVarOperationServerBasePath =
|
|
25865
25905
|
operationServerMap['ShopCategoryApi.shopCategoryControllerGetOne']?.[localVarOperationServerIndex]?.url;
|
|
@@ -26025,21 +26065,32 @@ export const ShopCategoryApiFactory = function (
|
|
|
26025
26065
|
/**
|
|
26026
26066
|
* Get all shop categories<br> OperationId: `ShopCategoryControllerGetAll`
|
|
26027
26067
|
* @summary Get all
|
|
26068
|
+
* @param {string} [gameServerId]
|
|
26028
26069
|
* @param {*} [options] Override http request option.
|
|
26029
26070
|
* @throws {RequiredError}
|
|
26030
26071
|
*/
|
|
26031
|
-
shopCategoryControllerGetAll(
|
|
26032
|
-
|
|
26072
|
+
shopCategoryControllerGetAll(
|
|
26073
|
+
gameServerId?: string,
|
|
26074
|
+
options?: RawAxiosRequestConfig,
|
|
26075
|
+
): AxiosPromise<ShopCategoryOutputArrayDTOAPI> {
|
|
26076
|
+
return localVarFp.shopCategoryControllerGetAll(gameServerId, options).then((request) => request(axios, basePath));
|
|
26033
26077
|
},
|
|
26034
26078
|
/**
|
|
26035
26079
|
* Get a shop category by id<br> OperationId: `ShopCategoryControllerGetOne`
|
|
26036
26080
|
* @summary Get one
|
|
26037
26081
|
* @param {string} id
|
|
26082
|
+
* @param {string} [gameServerId]
|
|
26038
26083
|
* @param {*} [options] Override http request option.
|
|
26039
26084
|
* @throws {RequiredError}
|
|
26040
26085
|
*/
|
|
26041
|
-
shopCategoryControllerGetOne(
|
|
26042
|
-
|
|
26086
|
+
shopCategoryControllerGetOne(
|
|
26087
|
+
id: string,
|
|
26088
|
+
gameServerId?: string,
|
|
26089
|
+
options?: RawAxiosRequestConfig,
|
|
26090
|
+
): AxiosPromise<ShopCategoryOutputDTOAPI> {
|
|
26091
|
+
return localVarFp
|
|
26092
|
+
.shopCategoryControllerGetOne(id, gameServerId, options)
|
|
26093
|
+
.then((request) => request(axios, basePath));
|
|
26043
26094
|
},
|
|
26044
26095
|
/**
|
|
26045
26096
|
* Move a shop category to a different parent Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `ShopCategoryControllerMove`
|
|
@@ -26144,13 +26195,14 @@ export class ShopCategoryApi extends BaseAPI {
|
|
|
26144
26195
|
/**
|
|
26145
26196
|
* Get all shop categories<br> OperationId: `ShopCategoryControllerGetAll`
|
|
26146
26197
|
* @summary Get all
|
|
26198
|
+
* @param {string} [gameServerId]
|
|
26147
26199
|
* @param {*} [options] Override http request option.
|
|
26148
26200
|
* @throws {RequiredError}
|
|
26149
26201
|
* @memberof ShopCategoryApi
|
|
26150
26202
|
*/
|
|
26151
|
-
public shopCategoryControllerGetAll(options?: RawAxiosRequestConfig) {
|
|
26203
|
+
public shopCategoryControllerGetAll(gameServerId?: string, options?: RawAxiosRequestConfig) {
|
|
26152
26204
|
return ShopCategoryApiFp(this.configuration)
|
|
26153
|
-
.shopCategoryControllerGetAll(options)
|
|
26205
|
+
.shopCategoryControllerGetAll(gameServerId, options)
|
|
26154
26206
|
.then((request) => request(this.axios, this.basePath));
|
|
26155
26207
|
}
|
|
26156
26208
|
|
|
@@ -26158,13 +26210,14 @@ export class ShopCategoryApi extends BaseAPI {
|
|
|
26158
26210
|
* Get a shop category by id<br> OperationId: `ShopCategoryControllerGetOne`
|
|
26159
26211
|
* @summary Get one
|
|
26160
26212
|
* @param {string} id
|
|
26213
|
+
* @param {string} [gameServerId]
|
|
26161
26214
|
* @param {*} [options] Override http request option.
|
|
26162
26215
|
* @throws {RequiredError}
|
|
26163
26216
|
* @memberof ShopCategoryApi
|
|
26164
26217
|
*/
|
|
26165
|
-
public shopCategoryControllerGetOne(id: string, options?: RawAxiosRequestConfig) {
|
|
26218
|
+
public shopCategoryControllerGetOne(id: string, gameServerId?: string, options?: RawAxiosRequestConfig) {
|
|
26166
26219
|
return ShopCategoryApiFp(this.configuration)
|
|
26167
|
-
.shopCategoryControllerGetOne(id, options)
|
|
26220
|
+
.shopCategoryControllerGetOne(id, gameServerId, options)
|
|
26168
26221
|
.then((request) => request(this.axios, this.basePath));
|
|
26169
26222
|
}
|
|
26170
26223
|
|