@takaro/apiclient 0.0.0-dev.8ea579d → 0.0.0-dev.9efccf4

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.
@@ -1,7 +1,7 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * Takaro app-api
4
+ * Takaro API
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
7
  * The version of the OpenAPI document: 0.0.0
@@ -2934,6 +2934,7 @@ export const EventCreateDTOEventNameEnum = {
2934
2934
  PlayerBanned: 'player-banned',
2935
2935
  PlayerUnbanned: 'player-unbanned',
2936
2936
  PlayerDeleted: 'player-deleted',
2937
+ ShopActionExecuted: 'shop-action-executed',
2937
2938
  PlayerConnected: 'player-connected',
2938
2939
  PlayerDisconnected: 'player-disconnected',
2939
2940
  ChatMessage: 'chat-message',
@@ -3209,6 +3210,7 @@ export const EventOutputDTOEventNameEnum = {
3209
3210
  PlayerBanned: 'player-banned',
3210
3211
  PlayerUnbanned: 'player-unbanned',
3211
3212
  PlayerDeleted: 'player-deleted',
3213
+ ShopActionExecuted: 'shop-action-executed',
3212
3214
  PlayerConnected: 'player-connected',
3213
3215
  PlayerDisconnected: 'player-disconnected',
3214
3216
  ChatMessage: 'chat-message',
@@ -3260,6 +3262,7 @@ export type EventOutputDTOMeta =
3260
3262
  | TakaroEventRoleUpdated
3261
3263
  | TakaroEventServerStatusChanged
3262
3264
  | TakaroEventSettingsSet
3265
+ | TakaroEventShopActionExecuted
3263
3266
  | TakaroEventShopListingCreated
3264
3267
  | TakaroEventShopListingDeleted
3265
3268
  | TakaroEventShopListingUpdated
@@ -3440,6 +3443,7 @@ export const EventSearchInputAllowedFiltersEventNameEnum = {
3440
3443
  PlayerBanned: 'player-banned',
3441
3444
  PlayerUnbanned: 'player-unbanned',
3442
3445
  PlayerDeleted: 'player-deleted',
3446
+ ShopActionExecuted: 'shop-action-executed',
3443
3447
  PlayerConnected: 'player-connected',
3444
3448
  PlayerDisconnected: 'player-disconnected',
3445
3449
  ChatMessage: 'chat-message',
@@ -3627,6 +3631,7 @@ export const EventsCountInputDTOEventNameEnum = {
3627
3631
  PlayerBanned: 'player-banned',
3628
3632
  PlayerUnbanned: 'player-unbanned',
3629
3633
  PlayerDeleted: 'player-deleted',
3634
+ ShopActionExecuted: 'shop-action-executed',
3630
3635
  PlayerConnected: 'player-connected',
3631
3636
  PlayerDisconnected: 'player-disconnected',
3632
3637
  ChatMessage: 'chat-message',
@@ -4898,6 +4903,7 @@ export const HookCreateDTOEventTypeEnum = {
4898
4903
  PlayerBanned: 'player-banned',
4899
4904
  PlayerUnbanned: 'player-unbanned',
4900
4905
  PlayerDeleted: 'player-deleted',
4906
+ ShopActionExecuted: 'shop-action-executed',
4901
4907
  } as const;
4902
4908
 
4903
4909
  export type HookCreateDTOEventTypeEnum = (typeof HookCreateDTOEventTypeEnum)[keyof typeof HookCreateDTOEventTypeEnum];
@@ -5057,6 +5063,7 @@ export const HookOutputDTOEventTypeEnum = {
5057
5063
  PlayerBanned: 'player-banned',
5058
5064
  PlayerUnbanned: 'player-unbanned',
5059
5065
  PlayerDeleted: 'player-deleted',
5066
+ ShopActionExecuted: 'shop-action-executed',
5060
5067
  } as const;
5061
5068
 
5062
5069
  export type HookOutputDTOEventTypeEnum = (typeof HookOutputDTOEventTypeEnum)[keyof typeof HookOutputDTOEventTypeEnum];
@@ -5161,6 +5168,7 @@ export const HookSearchInputAllowedFiltersEventTypeEnum = {
5161
5168
  PlayerBanned: 'player-banned',
5162
5169
  PlayerUnbanned: 'player-unbanned',
5163
5170
  PlayerDeleted: 'player-deleted',
5171
+ ShopActionExecuted: 'shop-action-executed',
5164
5172
  } as const;
5165
5173
 
5166
5174
  export type HookSearchInputAllowedFiltersEventTypeEnum =
@@ -5337,6 +5345,7 @@ export const HookTriggerDTOEventTypeEnum = {
5337
5345
  PlayerBanned: 'player-banned',
5338
5346
  PlayerUnbanned: 'player-unbanned',
5339
5347
  PlayerDeleted: 'player-deleted',
5348
+ ShopActionExecuted: 'shop-action-executed',
5340
5349
  } as const;
5341
5350
 
5342
5351
  export type HookTriggerDTOEventTypeEnum =
@@ -5423,6 +5432,7 @@ export const HookUpdateDTOEventTypeEnum = {
5423
5432
  PlayerBanned: 'player-banned',
5424
5433
  PlayerUnbanned: 'player-unbanned',
5425
5434
  PlayerDeleted: 'player-deleted',
5435
+ ShopActionExecuted: 'shop-action-executed',
5426
5436
  } as const;
5427
5437
 
5428
5438
  export type HookUpdateDTOEventTypeEnum = (typeof HookUpdateDTOEventTypeEnum)[keyof typeof HookUpdateDTOEventTypeEnum];
@@ -5751,6 +5761,7 @@ export const IHookEventTypeEnum = {
5751
5761
  PlayerBanned: 'player-banned',
5752
5762
  PlayerUnbanned: 'player-unbanned',
5753
5763
  PlayerDeleted: 'player-deleted',
5764
+ ShopActionExecuted: 'shop-action-executed',
5754
5765
  } as const;
5755
5766
 
5756
5767
  export type IHookEventTypeEnum = (typeof IHookEventTypeEnum)[keyof typeof IHookEventTypeEnum];
@@ -5941,6 +5952,31 @@ export interface IPosition {
5941
5952
  */
5942
5953
  dimension?: string;
5943
5954
  }
5955
+ /**
5956
+ *
5957
+ * @export
5958
+ * @interface IShopAction
5959
+ */
5960
+ export interface IShopAction {
5961
+ /**
5962
+ *
5963
+ * @type {string}
5964
+ * @memberof IShopAction
5965
+ */
5966
+ name: string;
5967
+ /**
5968
+ *
5969
+ * @type {string}
5970
+ * @memberof IShopAction
5971
+ */
5972
+ description?: string;
5973
+ /**
5974
+ *
5975
+ * @type {string}
5976
+ * @memberof IShopAction
5977
+ */
5978
+ function: string;
5979
+ }
5944
5980
  /**
5945
5981
  *
5946
5982
  * @export
@@ -7696,6 +7732,12 @@ export interface ModuleTransferVersionDTO {
7696
7732
  * @memberof ModuleTransferVersionDTO
7697
7733
  */
7698
7734
  permissions?: Array<IPermission>;
7735
+ /**
7736
+ *
7737
+ * @type {Array<IShopAction>}
7738
+ * @memberof ModuleTransferVersionDTO
7739
+ */
7740
+ shopActions?: Array<IShopAction>;
7699
7741
  }
7700
7742
  /**
7701
7743
  *
@@ -7844,6 +7886,12 @@ export interface ModuleVersionOutputDTO {
7844
7886
  * @memberof ModuleVersionOutputDTO
7845
7887
  */
7846
7888
  permissions: Array<PermissionOutputDTO>;
7889
+ /**
7890
+ *
7891
+ * @type {Array<ShopActionOutputDTO>}
7892
+ * @memberof ModuleVersionOutputDTO
7893
+ */
7894
+ shopActions: Array<ShopActionOutputDTO>;
7847
7895
  /**
7848
7896
  *
7849
7897
  * @type {string}
@@ -8265,6 +8313,19 @@ export interface PaginationParamsWithGameServer {
8265
8313
  */
8266
8314
  limit?: number;
8267
8315
  }
8316
+ /**
8317
+ *
8318
+ * @export
8319
+ * @interface ParamGameServerId
8320
+ */
8321
+ export interface ParamGameServerId {
8322
+ /**
8323
+ *
8324
+ * @type {string}
8325
+ * @memberof ParamGameServerId
8326
+ */
8327
+ gameServerId: string;
8328
+ }
8268
8329
  /**
8269
8330
  *
8270
8331
  * @export
@@ -11197,6 +11258,263 @@ export interface SettingsSetDTO {
11197
11258
  */
11198
11259
  value: any;
11199
11260
  }
11261
+ /**
11262
+ *
11263
+ * @export
11264
+ * @interface ShopActionCreateDTO
11265
+ */
11266
+ export interface ShopActionCreateDTO {
11267
+ /**
11268
+ *
11269
+ * @type {string}
11270
+ * @memberof ShopActionCreateDTO
11271
+ */
11272
+ name: string;
11273
+ /**
11274
+ *
11275
+ * @type {string}
11276
+ * @memberof ShopActionCreateDTO
11277
+ */
11278
+ description?: string;
11279
+ /**
11280
+ *
11281
+ * @type {string}
11282
+ * @memberof ShopActionCreateDTO
11283
+ */
11284
+ versionId: string;
11285
+ /**
11286
+ *
11287
+ * @type {string}
11288
+ * @memberof ShopActionCreateDTO
11289
+ */
11290
+ function?: string;
11291
+ }
11292
+ /**
11293
+ *
11294
+ * @export
11295
+ * @interface ShopActionOutputArrayDTOAPI
11296
+ */
11297
+ export interface ShopActionOutputArrayDTOAPI {
11298
+ /**
11299
+ *
11300
+ * @type {Array<ShopActionOutputDTO>}
11301
+ * @memberof ShopActionOutputArrayDTOAPI
11302
+ */
11303
+ data: Array<ShopActionOutputDTO>;
11304
+ /**
11305
+ *
11306
+ * @type {MetadataOutput}
11307
+ * @memberof ShopActionOutputArrayDTOAPI
11308
+ */
11309
+ meta: MetadataOutput;
11310
+ }
11311
+ /**
11312
+ *
11313
+ * @export
11314
+ * @interface ShopActionOutputDTO
11315
+ */
11316
+ export interface ShopActionOutputDTO {
11317
+ /**
11318
+ *
11319
+ * @type {string}
11320
+ * @memberof ShopActionOutputDTO
11321
+ */
11322
+ name: string;
11323
+ /**
11324
+ *
11325
+ * @type {string}
11326
+ * @memberof ShopActionOutputDTO
11327
+ */
11328
+ description?: string;
11329
+ /**
11330
+ *
11331
+ * @type {FunctionOutputDTO}
11332
+ * @memberof ShopActionOutputDTO
11333
+ */
11334
+ function: FunctionOutputDTO;
11335
+ /**
11336
+ *
11337
+ * @type {string}
11338
+ * @memberof ShopActionOutputDTO
11339
+ */
11340
+ versionId: string;
11341
+ /**
11342
+ *
11343
+ * @type {string}
11344
+ * @memberof ShopActionOutputDTO
11345
+ */
11346
+ id: string;
11347
+ /**
11348
+ *
11349
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
11350
+ * @memberof ShopActionOutputDTO
11351
+ */
11352
+ createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
11353
+ /**
11354
+ *
11355
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
11356
+ * @memberof ShopActionOutputDTO
11357
+ */
11358
+ updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
11359
+ }
11360
+ /**
11361
+ *
11362
+ * @export
11363
+ * @interface ShopActionOutputDTOAPI
11364
+ */
11365
+ export interface ShopActionOutputDTOAPI {
11366
+ /**
11367
+ *
11368
+ * @type {ShopActionOutputDTO}
11369
+ * @memberof ShopActionOutputDTOAPI
11370
+ */
11371
+ data: ShopActionOutputDTO;
11372
+ /**
11373
+ *
11374
+ * @type {MetadataOutput}
11375
+ * @memberof ShopActionOutputDTOAPI
11376
+ */
11377
+ meta: MetadataOutput;
11378
+ }
11379
+ /**
11380
+ *
11381
+ * @export
11382
+ * @interface ShopActionSearchInputAllowedFilters
11383
+ */
11384
+ export interface ShopActionSearchInputAllowedFilters {
11385
+ /**
11386
+ *
11387
+ * @type {Array<string>}
11388
+ * @memberof ShopActionSearchInputAllowedFilters
11389
+ */
11390
+ moduleId?: Array<string>;
11391
+ /**
11392
+ *
11393
+ * @type {Array<string>}
11394
+ * @memberof ShopActionSearchInputAllowedFilters
11395
+ */
11396
+ versionId?: Array<string>;
11397
+ /**
11398
+ *
11399
+ * @type {Array<string>}
11400
+ * @memberof ShopActionSearchInputAllowedFilters
11401
+ */
11402
+ name?: Array<string>;
11403
+ /**
11404
+ *
11405
+ * @type {Array<string>}
11406
+ * @memberof ShopActionSearchInputAllowedFilters
11407
+ */
11408
+ id?: Array<string>;
11409
+ }
11410
+ /**
11411
+ *
11412
+ * @export
11413
+ * @interface ShopActionSearchInputAllowedSearch
11414
+ */
11415
+ export interface ShopActionSearchInputAllowedSearch {
11416
+ /**
11417
+ *
11418
+ * @type {Array<string>}
11419
+ * @memberof ShopActionSearchInputAllowedSearch
11420
+ */
11421
+ name?: Array<string>;
11422
+ }
11423
+ /**
11424
+ *
11425
+ * @export
11426
+ * @interface ShopActionSearchInputDTO
11427
+ */
11428
+ export interface ShopActionSearchInputDTO {
11429
+ /**
11430
+ *
11431
+ * @type {ShopActionSearchInputAllowedFilters}
11432
+ * @memberof ShopActionSearchInputDTO
11433
+ */
11434
+ filters?: ShopActionSearchInputAllowedFilters;
11435
+ /**
11436
+ *
11437
+ * @type {ShopActionSearchInputAllowedSearch}
11438
+ * @memberof ShopActionSearchInputDTO
11439
+ */
11440
+ search?: ShopActionSearchInputAllowedSearch;
11441
+ /**
11442
+ *
11443
+ * @type {any}
11444
+ * @memberof ShopActionSearchInputDTO
11445
+ */
11446
+ greaterThan?: any;
11447
+ /**
11448
+ *
11449
+ * @type {any}
11450
+ * @memberof ShopActionSearchInputDTO
11451
+ */
11452
+ lessThan?: any;
11453
+ /**
11454
+ *
11455
+ * @type {number}
11456
+ * @memberof ShopActionSearchInputDTO
11457
+ */
11458
+ page?: number;
11459
+ /**
11460
+ *
11461
+ * @type {number}
11462
+ * @memberof ShopActionSearchInputDTO
11463
+ */
11464
+ limit?: number;
11465
+ /**
11466
+ *
11467
+ * @type {string}
11468
+ * @memberof ShopActionSearchInputDTO
11469
+ */
11470
+ sortBy?: string;
11471
+ /**
11472
+ *
11473
+ * @type {string}
11474
+ * @memberof ShopActionSearchInputDTO
11475
+ */
11476
+ sortDirection?: ShopActionSearchInputDTOSortDirectionEnum;
11477
+ /**
11478
+ *
11479
+ * @type {Array<string>}
11480
+ * @memberof ShopActionSearchInputDTO
11481
+ */
11482
+ extend?: Array<string>;
11483
+ }
11484
+
11485
+ export const ShopActionSearchInputDTOSortDirectionEnum = {
11486
+ Asc: 'asc',
11487
+ Desc: 'desc',
11488
+ } as const;
11489
+
11490
+ export type ShopActionSearchInputDTOSortDirectionEnum =
11491
+ (typeof ShopActionSearchInputDTOSortDirectionEnum)[keyof typeof ShopActionSearchInputDTOSortDirectionEnum];
11492
+
11493
+ /**
11494
+ *
11495
+ * @export
11496
+ * @interface ShopActionUpdateDTO
11497
+ */
11498
+ export interface ShopActionUpdateDTO {
11499
+ /**
11500
+ *
11501
+ * @type {string}
11502
+ * @memberof ShopActionUpdateDTO
11503
+ */
11504
+ name?: string;
11505
+ /**
11506
+ *
11507
+ * @type {string}
11508
+ * @memberof ShopActionUpdateDTO
11509
+ */
11510
+ description?: string;
11511
+ /**
11512
+ *
11513
+ * @type {string}
11514
+ * @memberof ShopActionUpdateDTO
11515
+ */
11516
+ function?: string;
11517
+ }
11200
11518
  /**
11201
11519
  *
11202
11520
  * @export
@@ -11675,7 +11993,7 @@ export interface ShopListingCreateDTO {
11675
11993
  * @type {Array<ShopListingItemMetaInputDTO>}
11676
11994
  * @memberof ShopListingCreateDTO
11677
11995
  */
11678
- items: Array<ShopListingItemMetaInputDTO>;
11996
+ items?: Array<ShopListingItemMetaInputDTO>;
11679
11997
  /**
11680
11998
  *
11681
11999
  * @type {number}
@@ -11694,6 +12012,12 @@ export interface ShopListingCreateDTO {
11694
12012
  * @memberof ShopListingCreateDTO
11695
12013
  */
11696
12014
  draft?: boolean;
12015
+ /**
12016
+ *
12017
+ * @type {string}
12018
+ * @memberof ShopListingCreateDTO
12019
+ */
12020
+ shopActionId?: string;
11697
12021
  /**
11698
12022
  *
11699
12023
  * @type {Array<string>}
@@ -11842,6 +12166,12 @@ export interface ShopListingOutputDTO {
11842
12166
  * @memberof ShopListingOutputDTO
11843
12167
  */
11844
12168
  draft: boolean;
12169
+ /**
12170
+ *
12171
+ * @type {string}
12172
+ * @memberof ShopListingOutputDTO
12173
+ */
12174
+ shopActionId?: string;
11845
12175
  /**
11846
12176
  *
11847
12177
  * @type {Array<ShopCategoryOutputDTO>}
@@ -12056,6 +12386,12 @@ export interface ShopListingUpdateDTO {
12056
12386
  * @memberof ShopListingUpdateDTO
12057
12387
  */
12058
12388
  draft?: boolean;
12389
+ /**
12390
+ *
12391
+ * @type {string}
12392
+ * @memberof ShopListingUpdateDTO
12393
+ */
12394
+ shopActionId?: string;
12059
12395
  /**
12060
12396
  *
12061
12397
  * @type {Array<string>}
@@ -13268,15 +13604,59 @@ export interface TakaroEventSettingsSet {
13268
13604
  /**
13269
13605
  *
13270
13606
  * @export
13271
- * @interface TakaroEventShopItem
13607
+ * @interface TakaroEventShopActionDetails
13272
13608
  */
13273
- export interface TakaroEventShopItem {
13609
+ export interface TakaroEventShopActionDetails {
13274
13610
  /**
13275
13611
  *
13276
13612
  * @type {string}
13277
- * @memberof TakaroEventShopItem
13613
+ * @memberof TakaroEventShopActionDetails
13278
13614
  */
13279
- name: string;
13615
+ id: string;
13616
+ /**
13617
+ *
13618
+ * @type {string}
13619
+ * @memberof TakaroEventShopActionDetails
13620
+ */
13621
+ name: string;
13622
+ }
13623
+ /**
13624
+ *
13625
+ * @export
13626
+ * @interface TakaroEventShopActionExecuted
13627
+ */
13628
+ export interface TakaroEventShopActionExecuted {
13629
+ /**
13630
+ *
13631
+ * @type {TakaroEventFunctionResult}
13632
+ * @memberof TakaroEventShopActionExecuted
13633
+ */
13634
+ result: TakaroEventFunctionResult;
13635
+ /**
13636
+ *
13637
+ * @type {TakaroEventShopActionDetails}
13638
+ * @memberof TakaroEventShopActionExecuted
13639
+ */
13640
+ shopAction?: TakaroEventShopActionDetails;
13641
+ /**
13642
+ *
13643
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
13644
+ * @memberof TakaroEventShopActionExecuted
13645
+ */
13646
+ timestamp: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
13647
+ }
13648
+ /**
13649
+ *
13650
+ * @export
13651
+ * @interface TakaroEventShopItem
13652
+ */
13653
+ export interface TakaroEventShopItem {
13654
+ /**
13655
+ *
13656
+ * @type {string}
13657
+ * @memberof TakaroEventShopItem
13658
+ */
13659
+ name: string;
13280
13660
  /**
13281
13661
  *
13282
13662
  * @type {string}
@@ -27513,6 +27893,712 @@ export const SettingsControllerGetKeysEnum = {
27513
27893
  export type SettingsControllerGetKeysEnum =
27514
27894
  (typeof SettingsControllerGetKeysEnum)[keyof typeof SettingsControllerGetKeysEnum];
27515
27895
 
27896
+ /**
27897
+ * ShopActionApi - axios parameter creator
27898
+ * @export
27899
+ */
27900
+ export const ShopActionApiAxiosParamCreator = function (configuration?: Configuration) {
27901
+ return {
27902
+ /**
27903
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `ShopActionControllerCreate`
27904
+ * @summary Create
27905
+ * @param {ShopActionCreateDTO} [shopActionCreateDTO] ShopActionCreateDTO
27906
+ * @param {*} [options] Override http request option.
27907
+ * @throws {RequiredError}
27908
+ */
27909
+ shopActionControllerCreate: async (
27910
+ shopActionCreateDTO?: ShopActionCreateDTO,
27911
+ options: RawAxiosRequestConfig = {},
27912
+ ): Promise<RequestArgs> => {
27913
+ const localVarPath = `/shopaction`;
27914
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27915
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27916
+ let baseOptions;
27917
+ if (configuration) {
27918
+ baseOptions = configuration.baseOptions;
27919
+ }
27920
+
27921
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
27922
+ const localVarHeaderParameter = {} as any;
27923
+ const localVarQueryParameter = {} as any;
27924
+
27925
+ // authentication domainAuth required
27926
+
27927
+ localVarHeaderParameter['Content-Type'] = 'application/json';
27928
+
27929
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
27930
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27931
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
27932
+ localVarRequestOptions.data = serializeDataIfNeeded(shopActionCreateDTO, localVarRequestOptions, configuration);
27933
+
27934
+ return {
27935
+ url: toPathString(localVarUrlObj),
27936
+ options: localVarRequestOptions,
27937
+ };
27938
+ },
27939
+ /**
27940
+ * Get available shop actions for a game server (from installed modules) Required permissions: `READ_MODULES`<br> OperationId: `ShopActionControllerGetAvailable`
27941
+ * @summary Get available
27942
+ * @param {string} gameServerId
27943
+ * @param {*} [options] Override http request option.
27944
+ * @throws {RequiredError}
27945
+ */
27946
+ shopActionControllerGetAvailable: async (
27947
+ gameServerId: string,
27948
+ options: RawAxiosRequestConfig = {},
27949
+ ): Promise<RequestArgs> => {
27950
+ // verify required parameter 'gameServerId' is not null or undefined
27951
+ assertParamExists('shopActionControllerGetAvailable', 'gameServerId', gameServerId);
27952
+ const localVarPath = `/shopaction/gameserver/{gameServerId}/available`.replace(
27953
+ `{${'gameServerId'}}`,
27954
+ encodeURIComponent(String(gameServerId)),
27955
+ );
27956
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27957
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27958
+ let baseOptions;
27959
+ if (configuration) {
27960
+ baseOptions = configuration.baseOptions;
27961
+ }
27962
+
27963
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
27964
+ const localVarHeaderParameter = {} as any;
27965
+ const localVarQueryParameter = {} as any;
27966
+
27967
+ // authentication domainAuth required
27968
+
27969
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
27970
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27971
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
27972
+
27973
+ return {
27974
+ url: toPathString(localVarUrlObj),
27975
+ options: localVarRequestOptions,
27976
+ };
27977
+ },
27978
+ /**
27979
+ * Required permissions: `READ_MODULES`<br> OperationId: `ShopActionControllerGetExecutions`
27980
+ * @summary Get executions
27981
+ * @param {string} id
27982
+ * @param {any} [success]
27983
+ * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO
27984
+ * @param {*} [options] Override http request option.
27985
+ * @throws {RequiredError}
27986
+ */
27987
+ shopActionControllerGetExecutions: async (
27988
+ id: string,
27989
+ success?: any,
27990
+ eventSearchInputDTO?: EventSearchInputDTO,
27991
+ options: RawAxiosRequestConfig = {},
27992
+ ): Promise<RequestArgs> => {
27993
+ // verify required parameter 'id' is not null or undefined
27994
+ assertParamExists('shopActionControllerGetExecutions', 'id', id);
27995
+ const localVarPath = `/shopaction/{id}/executions`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
27996
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27997
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27998
+ let baseOptions;
27999
+ if (configuration) {
28000
+ baseOptions = configuration.baseOptions;
28001
+ }
28002
+
28003
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
28004
+ const localVarHeaderParameter = {} as any;
28005
+ const localVarQueryParameter = {} as any;
28006
+
28007
+ // authentication domainAuth required
28008
+
28009
+ if (success !== undefined) {
28010
+ for (const [key, value] of Object.entries(success)) {
28011
+ localVarQueryParameter[key] = value;
28012
+ }
28013
+ }
28014
+
28015
+ localVarHeaderParameter['Content-Type'] = 'application/json';
28016
+
28017
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28018
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28019
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
28020
+ localVarRequestOptions.data = serializeDataIfNeeded(eventSearchInputDTO, localVarRequestOptions, configuration);
28021
+
28022
+ return {
28023
+ url: toPathString(localVarUrlObj),
28024
+ options: localVarRequestOptions,
28025
+ };
28026
+ },
28027
+ /**
28028
+ * Required permissions: `READ_MODULES`<br> OperationId: `ShopActionControllerGetOne`
28029
+ * @summary Get one
28030
+ * @param {string} id
28031
+ * @param {*} [options] Override http request option.
28032
+ * @throws {RequiredError}
28033
+ */
28034
+ shopActionControllerGetOne: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28035
+ // verify required parameter 'id' is not null or undefined
28036
+ assertParamExists('shopActionControllerGetOne', 'id', id);
28037
+ const localVarPath = `/shopaction/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
28038
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28039
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28040
+ let baseOptions;
28041
+ if (configuration) {
28042
+ baseOptions = configuration.baseOptions;
28043
+ }
28044
+
28045
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
28046
+ const localVarHeaderParameter = {} as any;
28047
+ const localVarQueryParameter = {} as any;
28048
+
28049
+ // authentication domainAuth required
28050
+
28051
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28052
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28053
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
28054
+
28055
+ return {
28056
+ url: toPathString(localVarUrlObj),
28057
+ options: localVarRequestOptions,
28058
+ };
28059
+ },
28060
+ /**
28061
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `ShopActionControllerRemove`
28062
+ * @summary Remove
28063
+ * @param {string} id
28064
+ * @param {*} [options] Override http request option.
28065
+ * @throws {RequiredError}
28066
+ */
28067
+ shopActionControllerRemove: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28068
+ // verify required parameter 'id' is not null or undefined
28069
+ assertParamExists('shopActionControllerRemove', 'id', id);
28070
+ const localVarPath = `/shopaction/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
28071
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28072
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28073
+ let baseOptions;
28074
+ if (configuration) {
28075
+ baseOptions = configuration.baseOptions;
28076
+ }
28077
+
28078
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
28079
+ const localVarHeaderParameter = {} as any;
28080
+ const localVarQueryParameter = {} as any;
28081
+
28082
+ // authentication domainAuth required
28083
+
28084
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28085
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28086
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
28087
+
28088
+ return {
28089
+ url: toPathString(localVarUrlObj),
28090
+ options: localVarRequestOptions,
28091
+ };
28092
+ },
28093
+ /**
28094
+ * Search shop actions Required permissions: `READ_MODULES`<br> OperationId: `ShopActionControllerSearch`
28095
+ * @summary Search
28096
+ * @param {ShopActionSearchInputDTO} [shopActionSearchInputDTO] ShopActionSearchInputDTO
28097
+ * @param {*} [options] Override http request option.
28098
+ * @throws {RequiredError}
28099
+ */
28100
+ shopActionControllerSearch: async (
28101
+ shopActionSearchInputDTO?: ShopActionSearchInputDTO,
28102
+ options: RawAxiosRequestConfig = {},
28103
+ ): Promise<RequestArgs> => {
28104
+ const localVarPath = `/shopaction/search`;
28105
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28106
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28107
+ let baseOptions;
28108
+ if (configuration) {
28109
+ baseOptions = configuration.baseOptions;
28110
+ }
28111
+
28112
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
28113
+ const localVarHeaderParameter = {} as any;
28114
+ const localVarQueryParameter = {} as any;
28115
+
28116
+ // authentication domainAuth required
28117
+
28118
+ localVarHeaderParameter['Content-Type'] = 'application/json';
28119
+
28120
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28121
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28122
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
28123
+ localVarRequestOptions.data = serializeDataIfNeeded(
28124
+ shopActionSearchInputDTO,
28125
+ localVarRequestOptions,
28126
+ configuration,
28127
+ );
28128
+
28129
+ return {
28130
+ url: toPathString(localVarUrlObj),
28131
+ options: localVarRequestOptions,
28132
+ };
28133
+ },
28134
+ /**
28135
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `ShopActionControllerUpdate`
28136
+ * @summary Update
28137
+ * @param {string} id
28138
+ * @param {ShopActionUpdateDTO} [shopActionUpdateDTO] ShopActionUpdateDTO
28139
+ * @param {*} [options] Override http request option.
28140
+ * @throws {RequiredError}
28141
+ */
28142
+ shopActionControllerUpdate: async (
28143
+ id: string,
28144
+ shopActionUpdateDTO?: ShopActionUpdateDTO,
28145
+ options: RawAxiosRequestConfig = {},
28146
+ ): Promise<RequestArgs> => {
28147
+ // verify required parameter 'id' is not null or undefined
28148
+ assertParamExists('shopActionControllerUpdate', 'id', id);
28149
+ const localVarPath = `/shopaction/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
28150
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28151
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28152
+ let baseOptions;
28153
+ if (configuration) {
28154
+ baseOptions = configuration.baseOptions;
28155
+ }
28156
+
28157
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
28158
+ const localVarHeaderParameter = {} as any;
28159
+ const localVarQueryParameter = {} as any;
28160
+
28161
+ // authentication domainAuth required
28162
+
28163
+ localVarHeaderParameter['Content-Type'] = 'application/json';
28164
+
28165
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28166
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28167
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
28168
+ localVarRequestOptions.data = serializeDataIfNeeded(shopActionUpdateDTO, localVarRequestOptions, configuration);
28169
+
28170
+ return {
28171
+ url: toPathString(localVarUrlObj),
28172
+ options: localVarRequestOptions,
28173
+ };
28174
+ },
28175
+ };
28176
+ };
28177
+
28178
+ /**
28179
+ * ShopActionApi - functional programming interface
28180
+ * @export
28181
+ */
28182
+ export const ShopActionApiFp = function (configuration?: Configuration) {
28183
+ const localVarAxiosParamCreator = ShopActionApiAxiosParamCreator(configuration);
28184
+ return {
28185
+ /**
28186
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `ShopActionControllerCreate`
28187
+ * @summary Create
28188
+ * @param {ShopActionCreateDTO} [shopActionCreateDTO] ShopActionCreateDTO
28189
+ * @param {*} [options] Override http request option.
28190
+ * @throws {RequiredError}
28191
+ */
28192
+ async shopActionControllerCreate(
28193
+ shopActionCreateDTO?: ShopActionCreateDTO,
28194
+ options?: RawAxiosRequestConfig,
28195
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShopActionOutputDTOAPI>> {
28196
+ const localVarAxiosArgs = await localVarAxiosParamCreator.shopActionControllerCreate(
28197
+ shopActionCreateDTO,
28198
+ options,
28199
+ );
28200
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
28201
+ const localVarOperationServerBasePath =
28202
+ operationServerMap['ShopActionApi.shopActionControllerCreate']?.[localVarOperationServerIndex]?.url;
28203
+ return (axios, basePath) =>
28204
+ createRequestFunction(
28205
+ localVarAxiosArgs,
28206
+ globalAxios,
28207
+ BASE_PATH,
28208
+ configuration,
28209
+ )(axios, localVarOperationServerBasePath || basePath);
28210
+ },
28211
+ /**
28212
+ * Get available shop actions for a game server (from installed modules) Required permissions: `READ_MODULES`<br> OperationId: `ShopActionControllerGetAvailable`
28213
+ * @summary Get available
28214
+ * @param {string} gameServerId
28215
+ * @param {*} [options] Override http request option.
28216
+ * @throws {RequiredError}
28217
+ */
28218
+ async shopActionControllerGetAvailable(
28219
+ gameServerId: string,
28220
+ options?: RawAxiosRequestConfig,
28221
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShopActionOutputArrayDTOAPI>> {
28222
+ const localVarAxiosArgs = await localVarAxiosParamCreator.shopActionControllerGetAvailable(gameServerId, options);
28223
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
28224
+ const localVarOperationServerBasePath =
28225
+ operationServerMap['ShopActionApi.shopActionControllerGetAvailable']?.[localVarOperationServerIndex]?.url;
28226
+ return (axios, basePath) =>
28227
+ createRequestFunction(
28228
+ localVarAxiosArgs,
28229
+ globalAxios,
28230
+ BASE_PATH,
28231
+ configuration,
28232
+ )(axios, localVarOperationServerBasePath || basePath);
28233
+ },
28234
+ /**
28235
+ * Required permissions: `READ_MODULES`<br> OperationId: `ShopActionControllerGetExecutions`
28236
+ * @summary Get executions
28237
+ * @param {string} id
28238
+ * @param {any} [success]
28239
+ * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO
28240
+ * @param {*} [options] Override http request option.
28241
+ * @throws {RequiredError}
28242
+ */
28243
+ async shopActionControllerGetExecutions(
28244
+ id: string,
28245
+ success?: any,
28246
+ eventSearchInputDTO?: EventSearchInputDTO,
28247
+ options?: RawAxiosRequestConfig,
28248
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventOutputArrayDTOAPI>> {
28249
+ const localVarAxiosArgs = await localVarAxiosParamCreator.shopActionControllerGetExecutions(
28250
+ id,
28251
+ success,
28252
+ eventSearchInputDTO,
28253
+ options,
28254
+ );
28255
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
28256
+ const localVarOperationServerBasePath =
28257
+ operationServerMap['ShopActionApi.shopActionControllerGetExecutions']?.[localVarOperationServerIndex]?.url;
28258
+ return (axios, basePath) =>
28259
+ createRequestFunction(
28260
+ localVarAxiosArgs,
28261
+ globalAxios,
28262
+ BASE_PATH,
28263
+ configuration,
28264
+ )(axios, localVarOperationServerBasePath || basePath);
28265
+ },
28266
+ /**
28267
+ * Required permissions: `READ_MODULES`<br> OperationId: `ShopActionControllerGetOne`
28268
+ * @summary Get one
28269
+ * @param {string} id
28270
+ * @param {*} [options] Override http request option.
28271
+ * @throws {RequiredError}
28272
+ */
28273
+ async shopActionControllerGetOne(
28274
+ id: string,
28275
+ options?: RawAxiosRequestConfig,
28276
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShopActionOutputDTOAPI>> {
28277
+ const localVarAxiosArgs = await localVarAxiosParamCreator.shopActionControllerGetOne(id, options);
28278
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
28279
+ const localVarOperationServerBasePath =
28280
+ operationServerMap['ShopActionApi.shopActionControllerGetOne']?.[localVarOperationServerIndex]?.url;
28281
+ return (axios, basePath) =>
28282
+ createRequestFunction(
28283
+ localVarAxiosArgs,
28284
+ globalAxios,
28285
+ BASE_PATH,
28286
+ configuration,
28287
+ )(axios, localVarOperationServerBasePath || basePath);
28288
+ },
28289
+ /**
28290
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `ShopActionControllerRemove`
28291
+ * @summary Remove
28292
+ * @param {string} id
28293
+ * @param {*} [options] Override http request option.
28294
+ * @throws {RequiredError}
28295
+ */
28296
+ async shopActionControllerRemove(
28297
+ id: string,
28298
+ options?: RawAxiosRequestConfig,
28299
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>> {
28300
+ const localVarAxiosArgs = await localVarAxiosParamCreator.shopActionControllerRemove(id, options);
28301
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
28302
+ const localVarOperationServerBasePath =
28303
+ operationServerMap['ShopActionApi.shopActionControllerRemove']?.[localVarOperationServerIndex]?.url;
28304
+ return (axios, basePath) =>
28305
+ createRequestFunction(
28306
+ localVarAxiosArgs,
28307
+ globalAxios,
28308
+ BASE_PATH,
28309
+ configuration,
28310
+ )(axios, localVarOperationServerBasePath || basePath);
28311
+ },
28312
+ /**
28313
+ * Search shop actions Required permissions: `READ_MODULES`<br> OperationId: `ShopActionControllerSearch`
28314
+ * @summary Search
28315
+ * @param {ShopActionSearchInputDTO} [shopActionSearchInputDTO] ShopActionSearchInputDTO
28316
+ * @param {*} [options] Override http request option.
28317
+ * @throws {RequiredError}
28318
+ */
28319
+ async shopActionControllerSearch(
28320
+ shopActionSearchInputDTO?: ShopActionSearchInputDTO,
28321
+ options?: RawAxiosRequestConfig,
28322
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShopActionOutputArrayDTOAPI>> {
28323
+ const localVarAxiosArgs = await localVarAxiosParamCreator.shopActionControllerSearch(
28324
+ shopActionSearchInputDTO,
28325
+ options,
28326
+ );
28327
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
28328
+ const localVarOperationServerBasePath =
28329
+ operationServerMap['ShopActionApi.shopActionControllerSearch']?.[localVarOperationServerIndex]?.url;
28330
+ return (axios, basePath) =>
28331
+ createRequestFunction(
28332
+ localVarAxiosArgs,
28333
+ globalAxios,
28334
+ BASE_PATH,
28335
+ configuration,
28336
+ )(axios, localVarOperationServerBasePath || basePath);
28337
+ },
28338
+ /**
28339
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `ShopActionControllerUpdate`
28340
+ * @summary Update
28341
+ * @param {string} id
28342
+ * @param {ShopActionUpdateDTO} [shopActionUpdateDTO] ShopActionUpdateDTO
28343
+ * @param {*} [options] Override http request option.
28344
+ * @throws {RequiredError}
28345
+ */
28346
+ async shopActionControllerUpdate(
28347
+ id: string,
28348
+ shopActionUpdateDTO?: ShopActionUpdateDTO,
28349
+ options?: RawAxiosRequestConfig,
28350
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShopActionOutputDTOAPI>> {
28351
+ const localVarAxiosArgs = await localVarAxiosParamCreator.shopActionControllerUpdate(
28352
+ id,
28353
+ shopActionUpdateDTO,
28354
+ options,
28355
+ );
28356
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
28357
+ const localVarOperationServerBasePath =
28358
+ operationServerMap['ShopActionApi.shopActionControllerUpdate']?.[localVarOperationServerIndex]?.url;
28359
+ return (axios, basePath) =>
28360
+ createRequestFunction(
28361
+ localVarAxiosArgs,
28362
+ globalAxios,
28363
+ BASE_PATH,
28364
+ configuration,
28365
+ )(axios, localVarOperationServerBasePath || basePath);
28366
+ },
28367
+ };
28368
+ };
28369
+
28370
+ /**
28371
+ * ShopActionApi - factory interface
28372
+ * @export
28373
+ */
28374
+ export const ShopActionApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
28375
+ const localVarFp = ShopActionApiFp(configuration);
28376
+ return {
28377
+ /**
28378
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `ShopActionControllerCreate`
28379
+ * @summary Create
28380
+ * @param {ShopActionCreateDTO} [shopActionCreateDTO] ShopActionCreateDTO
28381
+ * @param {*} [options] Override http request option.
28382
+ * @throws {RequiredError}
28383
+ */
28384
+ shopActionControllerCreate(
28385
+ shopActionCreateDTO?: ShopActionCreateDTO,
28386
+ options?: RawAxiosRequestConfig,
28387
+ ): AxiosPromise<ShopActionOutputDTOAPI> {
28388
+ return localVarFp
28389
+ .shopActionControllerCreate(shopActionCreateDTO, options)
28390
+ .then((request) => request(axios, basePath));
28391
+ },
28392
+ /**
28393
+ * Get available shop actions for a game server (from installed modules) Required permissions: `READ_MODULES`<br> OperationId: `ShopActionControllerGetAvailable`
28394
+ * @summary Get available
28395
+ * @param {string} gameServerId
28396
+ * @param {*} [options] Override http request option.
28397
+ * @throws {RequiredError}
28398
+ */
28399
+ shopActionControllerGetAvailable(
28400
+ gameServerId: string,
28401
+ options?: RawAxiosRequestConfig,
28402
+ ): AxiosPromise<ShopActionOutputArrayDTOAPI> {
28403
+ return localVarFp
28404
+ .shopActionControllerGetAvailable(gameServerId, options)
28405
+ .then((request) => request(axios, basePath));
28406
+ },
28407
+ /**
28408
+ * Required permissions: `READ_MODULES`<br> OperationId: `ShopActionControllerGetExecutions`
28409
+ * @summary Get executions
28410
+ * @param {string} id
28411
+ * @param {any} [success]
28412
+ * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO
28413
+ * @param {*} [options] Override http request option.
28414
+ * @throws {RequiredError}
28415
+ */
28416
+ shopActionControllerGetExecutions(
28417
+ id: string,
28418
+ success?: any,
28419
+ eventSearchInputDTO?: EventSearchInputDTO,
28420
+ options?: RawAxiosRequestConfig,
28421
+ ): AxiosPromise<EventOutputArrayDTOAPI> {
28422
+ return localVarFp
28423
+ .shopActionControllerGetExecutions(id, success, eventSearchInputDTO, options)
28424
+ .then((request) => request(axios, basePath));
28425
+ },
28426
+ /**
28427
+ * Required permissions: `READ_MODULES`<br> OperationId: `ShopActionControllerGetOne`
28428
+ * @summary Get one
28429
+ * @param {string} id
28430
+ * @param {*} [options] Override http request option.
28431
+ * @throws {RequiredError}
28432
+ */
28433
+ shopActionControllerGetOne(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ShopActionOutputDTOAPI> {
28434
+ return localVarFp.shopActionControllerGetOne(id, options).then((request) => request(axios, basePath));
28435
+ },
28436
+ /**
28437
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `ShopActionControllerRemove`
28438
+ * @summary Remove
28439
+ * @param {string} id
28440
+ * @param {*} [options] Override http request option.
28441
+ * @throws {RequiredError}
28442
+ */
28443
+ shopActionControllerRemove(id: string, options?: RawAxiosRequestConfig): AxiosPromise<APIOutput> {
28444
+ return localVarFp.shopActionControllerRemove(id, options).then((request) => request(axios, basePath));
28445
+ },
28446
+ /**
28447
+ * Search shop actions Required permissions: `READ_MODULES`<br> OperationId: `ShopActionControllerSearch`
28448
+ * @summary Search
28449
+ * @param {ShopActionSearchInputDTO} [shopActionSearchInputDTO] ShopActionSearchInputDTO
28450
+ * @param {*} [options] Override http request option.
28451
+ * @throws {RequiredError}
28452
+ */
28453
+ shopActionControllerSearch(
28454
+ shopActionSearchInputDTO?: ShopActionSearchInputDTO,
28455
+ options?: RawAxiosRequestConfig,
28456
+ ): AxiosPromise<ShopActionOutputArrayDTOAPI> {
28457
+ return localVarFp
28458
+ .shopActionControllerSearch(shopActionSearchInputDTO, options)
28459
+ .then((request) => request(axios, basePath));
28460
+ },
28461
+ /**
28462
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `ShopActionControllerUpdate`
28463
+ * @summary Update
28464
+ * @param {string} id
28465
+ * @param {ShopActionUpdateDTO} [shopActionUpdateDTO] ShopActionUpdateDTO
28466
+ * @param {*} [options] Override http request option.
28467
+ * @throws {RequiredError}
28468
+ */
28469
+ shopActionControllerUpdate(
28470
+ id: string,
28471
+ shopActionUpdateDTO?: ShopActionUpdateDTO,
28472
+ options?: RawAxiosRequestConfig,
28473
+ ): AxiosPromise<ShopActionOutputDTOAPI> {
28474
+ return localVarFp
28475
+ .shopActionControllerUpdate(id, shopActionUpdateDTO, options)
28476
+ .then((request) => request(axios, basePath));
28477
+ },
28478
+ };
28479
+ };
28480
+
28481
+ /**
28482
+ * ShopActionApi - object-oriented interface
28483
+ * @export
28484
+ * @class ShopActionApi
28485
+ * @extends {BaseAPI}
28486
+ */
28487
+ export class ShopActionApi extends BaseAPI {
28488
+ /**
28489
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `ShopActionControllerCreate`
28490
+ * @summary Create
28491
+ * @param {ShopActionCreateDTO} [shopActionCreateDTO] ShopActionCreateDTO
28492
+ * @param {*} [options] Override http request option.
28493
+ * @throws {RequiredError}
28494
+ * @memberof ShopActionApi
28495
+ */
28496
+ public shopActionControllerCreate(shopActionCreateDTO?: ShopActionCreateDTO, options?: RawAxiosRequestConfig) {
28497
+ return ShopActionApiFp(this.configuration)
28498
+ .shopActionControllerCreate(shopActionCreateDTO, options)
28499
+ .then((request) => request(this.axios, this.basePath));
28500
+ }
28501
+
28502
+ /**
28503
+ * Get available shop actions for a game server (from installed modules) Required permissions: `READ_MODULES`<br> OperationId: `ShopActionControllerGetAvailable`
28504
+ * @summary Get available
28505
+ * @param {string} gameServerId
28506
+ * @param {*} [options] Override http request option.
28507
+ * @throws {RequiredError}
28508
+ * @memberof ShopActionApi
28509
+ */
28510
+ public shopActionControllerGetAvailable(gameServerId: string, options?: RawAxiosRequestConfig) {
28511
+ return ShopActionApiFp(this.configuration)
28512
+ .shopActionControllerGetAvailable(gameServerId, options)
28513
+ .then((request) => request(this.axios, this.basePath));
28514
+ }
28515
+
28516
+ /**
28517
+ * Required permissions: `READ_MODULES`<br> OperationId: `ShopActionControllerGetExecutions`
28518
+ * @summary Get executions
28519
+ * @param {string} id
28520
+ * @param {any} [success]
28521
+ * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO
28522
+ * @param {*} [options] Override http request option.
28523
+ * @throws {RequiredError}
28524
+ * @memberof ShopActionApi
28525
+ */
28526
+ public shopActionControllerGetExecutions(
28527
+ id: string,
28528
+ success?: any,
28529
+ eventSearchInputDTO?: EventSearchInputDTO,
28530
+ options?: RawAxiosRequestConfig,
28531
+ ) {
28532
+ return ShopActionApiFp(this.configuration)
28533
+ .shopActionControllerGetExecutions(id, success, eventSearchInputDTO, options)
28534
+ .then((request) => request(this.axios, this.basePath));
28535
+ }
28536
+
28537
+ /**
28538
+ * Required permissions: `READ_MODULES`<br> OperationId: `ShopActionControllerGetOne`
28539
+ * @summary Get one
28540
+ * @param {string} id
28541
+ * @param {*} [options] Override http request option.
28542
+ * @throws {RequiredError}
28543
+ * @memberof ShopActionApi
28544
+ */
28545
+ public shopActionControllerGetOne(id: string, options?: RawAxiosRequestConfig) {
28546
+ return ShopActionApiFp(this.configuration)
28547
+ .shopActionControllerGetOne(id, options)
28548
+ .then((request) => request(this.axios, this.basePath));
28549
+ }
28550
+
28551
+ /**
28552
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `ShopActionControllerRemove`
28553
+ * @summary Remove
28554
+ * @param {string} id
28555
+ * @param {*} [options] Override http request option.
28556
+ * @throws {RequiredError}
28557
+ * @memberof ShopActionApi
28558
+ */
28559
+ public shopActionControllerRemove(id: string, options?: RawAxiosRequestConfig) {
28560
+ return ShopActionApiFp(this.configuration)
28561
+ .shopActionControllerRemove(id, options)
28562
+ .then((request) => request(this.axios, this.basePath));
28563
+ }
28564
+
28565
+ /**
28566
+ * Search shop actions Required permissions: `READ_MODULES`<br> OperationId: `ShopActionControllerSearch`
28567
+ * @summary Search
28568
+ * @param {ShopActionSearchInputDTO} [shopActionSearchInputDTO] ShopActionSearchInputDTO
28569
+ * @param {*} [options] Override http request option.
28570
+ * @throws {RequiredError}
28571
+ * @memberof ShopActionApi
28572
+ */
28573
+ public shopActionControllerSearch(
28574
+ shopActionSearchInputDTO?: ShopActionSearchInputDTO,
28575
+ options?: RawAxiosRequestConfig,
28576
+ ) {
28577
+ return ShopActionApiFp(this.configuration)
28578
+ .shopActionControllerSearch(shopActionSearchInputDTO, options)
28579
+ .then((request) => request(this.axios, this.basePath));
28580
+ }
28581
+
28582
+ /**
28583
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `ShopActionControllerUpdate`
28584
+ * @summary Update
28585
+ * @param {string} id
28586
+ * @param {ShopActionUpdateDTO} [shopActionUpdateDTO] ShopActionUpdateDTO
28587
+ * @param {*} [options] Override http request option.
28588
+ * @throws {RequiredError}
28589
+ * @memberof ShopActionApi
28590
+ */
28591
+ public shopActionControllerUpdate(
28592
+ id: string,
28593
+ shopActionUpdateDTO?: ShopActionUpdateDTO,
28594
+ options?: RawAxiosRequestConfig,
28595
+ ) {
28596
+ return ShopActionApiFp(this.configuration)
28597
+ .shopActionControllerUpdate(id, shopActionUpdateDTO, options)
28598
+ .then((request) => request(this.axios, this.basePath));
28599
+ }
28600
+ }
28601
+
27516
28602
  /**
27517
28603
  * ShopCategoryApi - axios parameter creator
27518
28604
  * @export
@@ -30441,6 +31527,7 @@ export const StatsControllerGetEventsCountEventNameEnum = {
30441
31527
  PlayerBanned: 'player-banned',
30442
31528
  PlayerUnbanned: 'player-unbanned',
30443
31529
  PlayerDeleted: 'player-deleted',
31530
+ ShopActionExecuted: 'shop-action-executed',
30444
31531
  PlayerConnected: 'player-connected',
30445
31532
  PlayerDisconnected: 'player-disconnected',
30446
31533
  ChatMessage: 'chat-message',