@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
@@ -141,6 +141,7 @@ export const EventCreateDTOEventNameEnum = {
141
141
  PlayerBanned: 'player-banned',
142
142
  PlayerUnbanned: 'player-unbanned',
143
143
  PlayerDeleted: 'player-deleted',
144
+ ShopActionExecuted: 'shop-action-executed',
144
145
  PlayerConnected: 'player-connected',
145
146
  PlayerDisconnected: 'player-disconnected',
146
147
  ChatMessage: 'chat-message',
@@ -183,6 +184,7 @@ export const EventOutputDTOEventNameEnum = {
183
184
  PlayerBanned: 'player-banned',
184
185
  PlayerUnbanned: 'player-unbanned',
185
186
  PlayerDeleted: 'player-deleted',
187
+ ShopActionExecuted: 'shop-action-executed',
186
188
  PlayerConnected: 'player-connected',
187
189
  PlayerDisconnected: 'player-disconnected',
188
190
  ChatMessage: 'chat-message',
@@ -225,6 +227,7 @@ export const EventSearchInputAllowedFiltersEventNameEnum = {
225
227
  PlayerBanned: 'player-banned',
226
228
  PlayerUnbanned: 'player-unbanned',
227
229
  PlayerDeleted: 'player-deleted',
230
+ ShopActionExecuted: 'shop-action-executed',
228
231
  PlayerConnected: 'player-connected',
229
232
  PlayerDisconnected: 'player-disconnected',
230
233
  ChatMessage: 'chat-message',
@@ -277,6 +280,7 @@ export const EventsCountInputDTOEventNameEnum = {
277
280
  PlayerBanned: 'player-banned',
278
281
  PlayerUnbanned: 'player-unbanned',
279
282
  PlayerDeleted: 'player-deleted',
283
+ ShopActionExecuted: 'shop-action-executed',
280
284
  PlayerConnected: 'player-connected',
281
285
  PlayerDisconnected: 'player-disconnected',
282
286
  ChatMessage: 'chat-message',
@@ -424,6 +428,7 @@ export const HookCreateDTOEventTypeEnum = {
424
428
  PlayerBanned: 'player-banned',
425
429
  PlayerUnbanned: 'player-unbanned',
426
430
  PlayerDeleted: 'player-deleted',
431
+ ShopActionExecuted: 'shop-action-executed',
427
432
  };
428
433
  export const HookOutputDTOEventTypeEnum = {
429
434
  Log: 'log',
@@ -468,6 +473,7 @@ export const HookOutputDTOEventTypeEnum = {
468
473
  PlayerBanned: 'player-banned',
469
474
  PlayerUnbanned: 'player-unbanned',
470
475
  PlayerDeleted: 'player-deleted',
476
+ ShopActionExecuted: 'shop-action-executed',
471
477
  };
472
478
  export const HookSearchInputAllowedFiltersEventTypeEnum = {
473
479
  Log: 'log',
@@ -512,6 +518,7 @@ export const HookSearchInputAllowedFiltersEventTypeEnum = {
512
518
  PlayerBanned: 'player-banned',
513
519
  PlayerUnbanned: 'player-unbanned',
514
520
  PlayerDeleted: 'player-deleted',
521
+ ShopActionExecuted: 'shop-action-executed',
515
522
  };
516
523
  export const HookSearchInputDTOExtendEnum = {
517
524
  Module: 'module',
@@ -564,6 +571,7 @@ export const HookTriggerDTOEventTypeEnum = {
564
571
  PlayerBanned: 'player-banned',
565
572
  PlayerUnbanned: 'player-unbanned',
566
573
  PlayerDeleted: 'player-deleted',
574
+ ShopActionExecuted: 'shop-action-executed',
567
575
  };
568
576
  export const HookUpdateDTOEventTypeEnum = {
569
577
  Log: 'log',
@@ -608,6 +616,7 @@ export const HookUpdateDTOEventTypeEnum = {
608
616
  PlayerBanned: 'player-banned',
609
617
  PlayerUnbanned: 'player-unbanned',
610
618
  PlayerDeleted: 'player-deleted',
619
+ ShopActionExecuted: 'shop-action-executed',
611
620
  };
612
621
  export const IEntityDTOTypeEnum = {
613
622
  Hostile: 'hostile',
@@ -657,6 +666,7 @@ export const IHookEventTypeEnum = {
657
666
  PlayerBanned: 'player-banned',
658
667
  PlayerUnbanned: 'player-unbanned',
659
668
  PlayerDeleted: 'player-deleted',
669
+ ShopActionExecuted: 'shop-action-executed',
660
670
  };
661
671
  export const ITakaroQuerySortDirectionEnum = {
662
672
  Asc: 'asc',
@@ -789,6 +799,10 @@ export const SettingsOutputDTOTypeEnum = {
789
799
  Global: 'global',
790
800
  Default: 'default',
791
801
  };
802
+ export const ShopActionSearchInputDTOSortDirectionEnum = {
803
+ Asc: 'asc',
804
+ Desc: 'desc',
805
+ };
792
806
  export const ShopAnalyticsQueryDTOPeriodEnum = {
793
807
  Last24Hours: 'last24Hours',
794
808
  Last7Days: 'last7Days',
@@ -10574,6 +10588,526 @@ export const SettingsControllerGetKeysEnum = {
10574
10588
  UnknownCommandFeedbackEnabled: 'unknownCommandFeedbackEnabled',
10575
10589
  UnknownCommandFeedbackMessage: 'unknownCommandFeedbackMessage',
10576
10590
  };
10591
+ /**
10592
+ * ShopActionApi - axios parameter creator
10593
+ * @export
10594
+ */
10595
+ export const ShopActionApiAxiosParamCreator = function (configuration) {
10596
+ return {
10597
+ /**
10598
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `ShopActionControllerCreate`
10599
+ * @summary Create
10600
+ * @param {ShopActionCreateDTO} [shopActionCreateDTO] ShopActionCreateDTO
10601
+ * @param {*} [options] Override http request option.
10602
+ * @throws {RequiredError}
10603
+ */
10604
+ shopActionControllerCreate: async (shopActionCreateDTO, options = {}) => {
10605
+ const localVarPath = `/shopaction`;
10606
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10607
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10608
+ let baseOptions;
10609
+ if (configuration) {
10610
+ baseOptions = configuration.baseOptions;
10611
+ }
10612
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
10613
+ const localVarHeaderParameter = {};
10614
+ const localVarQueryParameter = {};
10615
+ // authentication domainAuth required
10616
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10617
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10618
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10619
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
10620
+ localVarRequestOptions.data = serializeDataIfNeeded(shopActionCreateDTO, localVarRequestOptions, configuration);
10621
+ return {
10622
+ url: toPathString(localVarUrlObj),
10623
+ options: localVarRequestOptions,
10624
+ };
10625
+ },
10626
+ /**
10627
+ * Get available shop actions for a game server (from installed modules) Required permissions: `READ_MODULES`<br> OperationId: `ShopActionControllerGetAvailable`
10628
+ * @summary Get available
10629
+ * @param {string} gameServerId
10630
+ * @param {*} [options] Override http request option.
10631
+ * @throws {RequiredError}
10632
+ */
10633
+ shopActionControllerGetAvailable: async (gameServerId, options = {}) => {
10634
+ // verify required parameter 'gameServerId' is not null or undefined
10635
+ assertParamExists('shopActionControllerGetAvailable', 'gameServerId', gameServerId);
10636
+ const localVarPath = `/shopaction/gameserver/{gameServerId}/available`.replace(`{${'gameServerId'}}`, encodeURIComponent(String(gameServerId)));
10637
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10638
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10639
+ let baseOptions;
10640
+ if (configuration) {
10641
+ baseOptions = configuration.baseOptions;
10642
+ }
10643
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
10644
+ const localVarHeaderParameter = {};
10645
+ const localVarQueryParameter = {};
10646
+ // authentication domainAuth required
10647
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10648
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10649
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
10650
+ return {
10651
+ url: toPathString(localVarUrlObj),
10652
+ options: localVarRequestOptions,
10653
+ };
10654
+ },
10655
+ /**
10656
+ * Required permissions: `READ_MODULES`<br> OperationId: `ShopActionControllerGetExecutions`
10657
+ * @summary Get executions
10658
+ * @param {string} id
10659
+ * @param {any} [success]
10660
+ * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO
10661
+ * @param {*} [options] Override http request option.
10662
+ * @throws {RequiredError}
10663
+ */
10664
+ shopActionControllerGetExecutions: async (id, success, eventSearchInputDTO, options = {}) => {
10665
+ // verify required parameter 'id' is not null or undefined
10666
+ assertParamExists('shopActionControllerGetExecutions', 'id', id);
10667
+ const localVarPath = `/shopaction/{id}/executions`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
10668
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10669
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10670
+ let baseOptions;
10671
+ if (configuration) {
10672
+ baseOptions = configuration.baseOptions;
10673
+ }
10674
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
10675
+ const localVarHeaderParameter = {};
10676
+ const localVarQueryParameter = {};
10677
+ // authentication domainAuth required
10678
+ if (success !== undefined) {
10679
+ for (const [key, value] of Object.entries(success)) {
10680
+ localVarQueryParameter[key] = value;
10681
+ }
10682
+ }
10683
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10684
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10685
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10686
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
10687
+ localVarRequestOptions.data = serializeDataIfNeeded(eventSearchInputDTO, localVarRequestOptions, configuration);
10688
+ return {
10689
+ url: toPathString(localVarUrlObj),
10690
+ options: localVarRequestOptions,
10691
+ };
10692
+ },
10693
+ /**
10694
+ * Required permissions: `READ_MODULES`<br> OperationId: `ShopActionControllerGetOne`
10695
+ * @summary Get one
10696
+ * @param {string} id
10697
+ * @param {*} [options] Override http request option.
10698
+ * @throws {RequiredError}
10699
+ */
10700
+ shopActionControllerGetOne: async (id, options = {}) => {
10701
+ // verify required parameter 'id' is not null or undefined
10702
+ assertParamExists('shopActionControllerGetOne', 'id', id);
10703
+ const localVarPath = `/shopaction/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
10704
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10705
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10706
+ let baseOptions;
10707
+ if (configuration) {
10708
+ baseOptions = configuration.baseOptions;
10709
+ }
10710
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
10711
+ const localVarHeaderParameter = {};
10712
+ const localVarQueryParameter = {};
10713
+ // authentication domainAuth required
10714
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10715
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10716
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
10717
+ return {
10718
+ url: toPathString(localVarUrlObj),
10719
+ options: localVarRequestOptions,
10720
+ };
10721
+ },
10722
+ /**
10723
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `ShopActionControllerRemove`
10724
+ * @summary Remove
10725
+ * @param {string} id
10726
+ * @param {*} [options] Override http request option.
10727
+ * @throws {RequiredError}
10728
+ */
10729
+ shopActionControllerRemove: async (id, options = {}) => {
10730
+ // verify required parameter 'id' is not null or undefined
10731
+ assertParamExists('shopActionControllerRemove', 'id', id);
10732
+ const localVarPath = `/shopaction/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
10733
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10734
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10735
+ let baseOptions;
10736
+ if (configuration) {
10737
+ baseOptions = configuration.baseOptions;
10738
+ }
10739
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
10740
+ const localVarHeaderParameter = {};
10741
+ const localVarQueryParameter = {};
10742
+ // authentication domainAuth required
10743
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10744
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10745
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
10746
+ return {
10747
+ url: toPathString(localVarUrlObj),
10748
+ options: localVarRequestOptions,
10749
+ };
10750
+ },
10751
+ /**
10752
+ * Search shop actions Required permissions: `READ_MODULES`<br> OperationId: `ShopActionControllerSearch`
10753
+ * @summary Search
10754
+ * @param {ShopActionSearchInputDTO} [shopActionSearchInputDTO] ShopActionSearchInputDTO
10755
+ * @param {*} [options] Override http request option.
10756
+ * @throws {RequiredError}
10757
+ */
10758
+ shopActionControllerSearch: async (shopActionSearchInputDTO, options = {}) => {
10759
+ const localVarPath = `/shopaction/search`;
10760
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10761
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10762
+ let baseOptions;
10763
+ if (configuration) {
10764
+ baseOptions = configuration.baseOptions;
10765
+ }
10766
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
10767
+ const localVarHeaderParameter = {};
10768
+ const localVarQueryParameter = {};
10769
+ // authentication domainAuth required
10770
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10771
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10772
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10773
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
10774
+ localVarRequestOptions.data = serializeDataIfNeeded(shopActionSearchInputDTO, localVarRequestOptions, configuration);
10775
+ return {
10776
+ url: toPathString(localVarUrlObj),
10777
+ options: localVarRequestOptions,
10778
+ };
10779
+ },
10780
+ /**
10781
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `ShopActionControllerUpdate`
10782
+ * @summary Update
10783
+ * @param {string} id
10784
+ * @param {ShopActionUpdateDTO} [shopActionUpdateDTO] ShopActionUpdateDTO
10785
+ * @param {*} [options] Override http request option.
10786
+ * @throws {RequiredError}
10787
+ */
10788
+ shopActionControllerUpdate: async (id, shopActionUpdateDTO, options = {}) => {
10789
+ // verify required parameter 'id' is not null or undefined
10790
+ assertParamExists('shopActionControllerUpdate', 'id', id);
10791
+ const localVarPath = `/shopaction/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
10792
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10793
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10794
+ let baseOptions;
10795
+ if (configuration) {
10796
+ baseOptions = configuration.baseOptions;
10797
+ }
10798
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
10799
+ const localVarHeaderParameter = {};
10800
+ const localVarQueryParameter = {};
10801
+ // authentication domainAuth required
10802
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10803
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10804
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10805
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
10806
+ localVarRequestOptions.data = serializeDataIfNeeded(shopActionUpdateDTO, localVarRequestOptions, configuration);
10807
+ return {
10808
+ url: toPathString(localVarUrlObj),
10809
+ options: localVarRequestOptions,
10810
+ };
10811
+ },
10812
+ };
10813
+ };
10814
+ /**
10815
+ * ShopActionApi - functional programming interface
10816
+ * @export
10817
+ */
10818
+ export const ShopActionApiFp = function (configuration) {
10819
+ const localVarAxiosParamCreator = ShopActionApiAxiosParamCreator(configuration);
10820
+ return {
10821
+ /**
10822
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `ShopActionControllerCreate`
10823
+ * @summary Create
10824
+ * @param {ShopActionCreateDTO} [shopActionCreateDTO] ShopActionCreateDTO
10825
+ * @param {*} [options] Override http request option.
10826
+ * @throws {RequiredError}
10827
+ */
10828
+ async shopActionControllerCreate(shopActionCreateDTO, options) {
10829
+ const localVarAxiosArgs = await localVarAxiosParamCreator.shopActionControllerCreate(shopActionCreateDTO, options);
10830
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10831
+ const localVarOperationServerBasePath = operationServerMap['ShopActionApi.shopActionControllerCreate']?.[localVarOperationServerIndex]?.url;
10832
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10833
+ },
10834
+ /**
10835
+ * Get available shop actions for a game server (from installed modules) Required permissions: `READ_MODULES`<br> OperationId: `ShopActionControllerGetAvailable`
10836
+ * @summary Get available
10837
+ * @param {string} gameServerId
10838
+ * @param {*} [options] Override http request option.
10839
+ * @throws {RequiredError}
10840
+ */
10841
+ async shopActionControllerGetAvailable(gameServerId, options) {
10842
+ const localVarAxiosArgs = await localVarAxiosParamCreator.shopActionControllerGetAvailable(gameServerId, options);
10843
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10844
+ const localVarOperationServerBasePath = operationServerMap['ShopActionApi.shopActionControllerGetAvailable']?.[localVarOperationServerIndex]?.url;
10845
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10846
+ },
10847
+ /**
10848
+ * Required permissions: `READ_MODULES`<br> OperationId: `ShopActionControllerGetExecutions`
10849
+ * @summary Get executions
10850
+ * @param {string} id
10851
+ * @param {any} [success]
10852
+ * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO
10853
+ * @param {*} [options] Override http request option.
10854
+ * @throws {RequiredError}
10855
+ */
10856
+ async shopActionControllerGetExecutions(id, success, eventSearchInputDTO, options) {
10857
+ const localVarAxiosArgs = await localVarAxiosParamCreator.shopActionControllerGetExecutions(id, success, eventSearchInputDTO, options);
10858
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10859
+ const localVarOperationServerBasePath = operationServerMap['ShopActionApi.shopActionControllerGetExecutions']?.[localVarOperationServerIndex]?.url;
10860
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10861
+ },
10862
+ /**
10863
+ * Required permissions: `READ_MODULES`<br> OperationId: `ShopActionControllerGetOne`
10864
+ * @summary Get one
10865
+ * @param {string} id
10866
+ * @param {*} [options] Override http request option.
10867
+ * @throws {RequiredError}
10868
+ */
10869
+ async shopActionControllerGetOne(id, options) {
10870
+ const localVarAxiosArgs = await localVarAxiosParamCreator.shopActionControllerGetOne(id, options);
10871
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10872
+ const localVarOperationServerBasePath = operationServerMap['ShopActionApi.shopActionControllerGetOne']?.[localVarOperationServerIndex]?.url;
10873
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10874
+ },
10875
+ /**
10876
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `ShopActionControllerRemove`
10877
+ * @summary Remove
10878
+ * @param {string} id
10879
+ * @param {*} [options] Override http request option.
10880
+ * @throws {RequiredError}
10881
+ */
10882
+ async shopActionControllerRemove(id, options) {
10883
+ const localVarAxiosArgs = await localVarAxiosParamCreator.shopActionControllerRemove(id, options);
10884
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10885
+ const localVarOperationServerBasePath = operationServerMap['ShopActionApi.shopActionControllerRemove']?.[localVarOperationServerIndex]?.url;
10886
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10887
+ },
10888
+ /**
10889
+ * Search shop actions Required permissions: `READ_MODULES`<br> OperationId: `ShopActionControllerSearch`
10890
+ * @summary Search
10891
+ * @param {ShopActionSearchInputDTO} [shopActionSearchInputDTO] ShopActionSearchInputDTO
10892
+ * @param {*} [options] Override http request option.
10893
+ * @throws {RequiredError}
10894
+ */
10895
+ async shopActionControllerSearch(shopActionSearchInputDTO, options) {
10896
+ const localVarAxiosArgs = await localVarAxiosParamCreator.shopActionControllerSearch(shopActionSearchInputDTO, options);
10897
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10898
+ const localVarOperationServerBasePath = operationServerMap['ShopActionApi.shopActionControllerSearch']?.[localVarOperationServerIndex]?.url;
10899
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10900
+ },
10901
+ /**
10902
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `ShopActionControllerUpdate`
10903
+ * @summary Update
10904
+ * @param {string} id
10905
+ * @param {ShopActionUpdateDTO} [shopActionUpdateDTO] ShopActionUpdateDTO
10906
+ * @param {*} [options] Override http request option.
10907
+ * @throws {RequiredError}
10908
+ */
10909
+ async shopActionControllerUpdate(id, shopActionUpdateDTO, options) {
10910
+ const localVarAxiosArgs = await localVarAxiosParamCreator.shopActionControllerUpdate(id, shopActionUpdateDTO, options);
10911
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10912
+ const localVarOperationServerBasePath = operationServerMap['ShopActionApi.shopActionControllerUpdate']?.[localVarOperationServerIndex]?.url;
10913
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10914
+ },
10915
+ };
10916
+ };
10917
+ /**
10918
+ * ShopActionApi - factory interface
10919
+ * @export
10920
+ */
10921
+ export const ShopActionApiFactory = function (configuration, basePath, axios) {
10922
+ const localVarFp = ShopActionApiFp(configuration);
10923
+ return {
10924
+ /**
10925
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `ShopActionControllerCreate`
10926
+ * @summary Create
10927
+ * @param {ShopActionCreateDTO} [shopActionCreateDTO] ShopActionCreateDTO
10928
+ * @param {*} [options] Override http request option.
10929
+ * @throws {RequiredError}
10930
+ */
10931
+ shopActionControllerCreate(shopActionCreateDTO, options) {
10932
+ return localVarFp
10933
+ .shopActionControllerCreate(shopActionCreateDTO, options)
10934
+ .then((request) => request(axios, basePath));
10935
+ },
10936
+ /**
10937
+ * Get available shop actions for a game server (from installed modules) Required permissions: `READ_MODULES`<br> OperationId: `ShopActionControllerGetAvailable`
10938
+ * @summary Get available
10939
+ * @param {string} gameServerId
10940
+ * @param {*} [options] Override http request option.
10941
+ * @throws {RequiredError}
10942
+ */
10943
+ shopActionControllerGetAvailable(gameServerId, options) {
10944
+ return localVarFp
10945
+ .shopActionControllerGetAvailable(gameServerId, options)
10946
+ .then((request) => request(axios, basePath));
10947
+ },
10948
+ /**
10949
+ * Required permissions: `READ_MODULES`<br> OperationId: `ShopActionControllerGetExecutions`
10950
+ * @summary Get executions
10951
+ * @param {string} id
10952
+ * @param {any} [success]
10953
+ * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO
10954
+ * @param {*} [options] Override http request option.
10955
+ * @throws {RequiredError}
10956
+ */
10957
+ shopActionControllerGetExecutions(id, success, eventSearchInputDTO, options) {
10958
+ return localVarFp
10959
+ .shopActionControllerGetExecutions(id, success, eventSearchInputDTO, options)
10960
+ .then((request) => request(axios, basePath));
10961
+ },
10962
+ /**
10963
+ * Required permissions: `READ_MODULES`<br> OperationId: `ShopActionControllerGetOne`
10964
+ * @summary Get one
10965
+ * @param {string} id
10966
+ * @param {*} [options] Override http request option.
10967
+ * @throws {RequiredError}
10968
+ */
10969
+ shopActionControllerGetOne(id, options) {
10970
+ return localVarFp.shopActionControllerGetOne(id, options).then((request) => request(axios, basePath));
10971
+ },
10972
+ /**
10973
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `ShopActionControllerRemove`
10974
+ * @summary Remove
10975
+ * @param {string} id
10976
+ * @param {*} [options] Override http request option.
10977
+ * @throws {RequiredError}
10978
+ */
10979
+ shopActionControllerRemove(id, options) {
10980
+ return localVarFp.shopActionControllerRemove(id, options).then((request) => request(axios, basePath));
10981
+ },
10982
+ /**
10983
+ * Search shop actions Required permissions: `READ_MODULES`<br> OperationId: `ShopActionControllerSearch`
10984
+ * @summary Search
10985
+ * @param {ShopActionSearchInputDTO} [shopActionSearchInputDTO] ShopActionSearchInputDTO
10986
+ * @param {*} [options] Override http request option.
10987
+ * @throws {RequiredError}
10988
+ */
10989
+ shopActionControllerSearch(shopActionSearchInputDTO, options) {
10990
+ return localVarFp
10991
+ .shopActionControllerSearch(shopActionSearchInputDTO, options)
10992
+ .then((request) => request(axios, basePath));
10993
+ },
10994
+ /**
10995
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `ShopActionControllerUpdate`
10996
+ * @summary Update
10997
+ * @param {string} id
10998
+ * @param {ShopActionUpdateDTO} [shopActionUpdateDTO] ShopActionUpdateDTO
10999
+ * @param {*} [options] Override http request option.
11000
+ * @throws {RequiredError}
11001
+ */
11002
+ shopActionControllerUpdate(id, shopActionUpdateDTO, options) {
11003
+ return localVarFp
11004
+ .shopActionControllerUpdate(id, shopActionUpdateDTO, options)
11005
+ .then((request) => request(axios, basePath));
11006
+ },
11007
+ };
11008
+ };
11009
+ /**
11010
+ * ShopActionApi - object-oriented interface
11011
+ * @export
11012
+ * @class ShopActionApi
11013
+ * @extends {BaseAPI}
11014
+ */
11015
+ export class ShopActionApi extends BaseAPI {
11016
+ /**
11017
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `ShopActionControllerCreate`
11018
+ * @summary Create
11019
+ * @param {ShopActionCreateDTO} [shopActionCreateDTO] ShopActionCreateDTO
11020
+ * @param {*} [options] Override http request option.
11021
+ * @throws {RequiredError}
11022
+ * @memberof ShopActionApi
11023
+ */
11024
+ shopActionControllerCreate(shopActionCreateDTO, options) {
11025
+ return ShopActionApiFp(this.configuration)
11026
+ .shopActionControllerCreate(shopActionCreateDTO, options)
11027
+ .then((request) => request(this.axios, this.basePath));
11028
+ }
11029
+ /**
11030
+ * Get available shop actions for a game server (from installed modules) Required permissions: `READ_MODULES`<br> OperationId: `ShopActionControllerGetAvailable`
11031
+ * @summary Get available
11032
+ * @param {string} gameServerId
11033
+ * @param {*} [options] Override http request option.
11034
+ * @throws {RequiredError}
11035
+ * @memberof ShopActionApi
11036
+ */
11037
+ shopActionControllerGetAvailable(gameServerId, options) {
11038
+ return ShopActionApiFp(this.configuration)
11039
+ .shopActionControllerGetAvailable(gameServerId, options)
11040
+ .then((request) => request(this.axios, this.basePath));
11041
+ }
11042
+ /**
11043
+ * Required permissions: `READ_MODULES`<br> OperationId: `ShopActionControllerGetExecutions`
11044
+ * @summary Get executions
11045
+ * @param {string} id
11046
+ * @param {any} [success]
11047
+ * @param {EventSearchInputDTO} [eventSearchInputDTO] EventSearchInputDTO
11048
+ * @param {*} [options] Override http request option.
11049
+ * @throws {RequiredError}
11050
+ * @memberof ShopActionApi
11051
+ */
11052
+ shopActionControllerGetExecutions(id, success, eventSearchInputDTO, options) {
11053
+ return ShopActionApiFp(this.configuration)
11054
+ .shopActionControllerGetExecutions(id, success, eventSearchInputDTO, options)
11055
+ .then((request) => request(this.axios, this.basePath));
11056
+ }
11057
+ /**
11058
+ * Required permissions: `READ_MODULES`<br> OperationId: `ShopActionControllerGetOne`
11059
+ * @summary Get one
11060
+ * @param {string} id
11061
+ * @param {*} [options] Override http request option.
11062
+ * @throws {RequiredError}
11063
+ * @memberof ShopActionApi
11064
+ */
11065
+ shopActionControllerGetOne(id, options) {
11066
+ return ShopActionApiFp(this.configuration)
11067
+ .shopActionControllerGetOne(id, options)
11068
+ .then((request) => request(this.axios, this.basePath));
11069
+ }
11070
+ /**
11071
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `ShopActionControllerRemove`
11072
+ * @summary Remove
11073
+ * @param {string} id
11074
+ * @param {*} [options] Override http request option.
11075
+ * @throws {RequiredError}
11076
+ * @memberof ShopActionApi
11077
+ */
11078
+ shopActionControllerRemove(id, options) {
11079
+ return ShopActionApiFp(this.configuration)
11080
+ .shopActionControllerRemove(id, options)
11081
+ .then((request) => request(this.axios, this.basePath));
11082
+ }
11083
+ /**
11084
+ * Search shop actions Required permissions: `READ_MODULES`<br> OperationId: `ShopActionControllerSearch`
11085
+ * @summary Search
11086
+ * @param {ShopActionSearchInputDTO} [shopActionSearchInputDTO] ShopActionSearchInputDTO
11087
+ * @param {*} [options] Override http request option.
11088
+ * @throws {RequiredError}
11089
+ * @memberof ShopActionApi
11090
+ */
11091
+ shopActionControllerSearch(shopActionSearchInputDTO, options) {
11092
+ return ShopActionApiFp(this.configuration)
11093
+ .shopActionControllerSearch(shopActionSearchInputDTO, options)
11094
+ .then((request) => request(this.axios, this.basePath));
11095
+ }
11096
+ /**
11097
+ * Required permissions: `MANAGE_MODULES`<br> OperationId: `ShopActionControllerUpdate`
11098
+ * @summary Update
11099
+ * @param {string} id
11100
+ * @param {ShopActionUpdateDTO} [shopActionUpdateDTO] ShopActionUpdateDTO
11101
+ * @param {*} [options] Override http request option.
11102
+ * @throws {RequiredError}
11103
+ * @memberof ShopActionApi
11104
+ */
11105
+ shopActionControllerUpdate(id, shopActionUpdateDTO, options) {
11106
+ return ShopActionApiFp(this.configuration)
11107
+ .shopActionControllerUpdate(id, shopActionUpdateDTO, options)
11108
+ .then((request) => request(this.axios, this.basePath));
11109
+ }
11110
+ }
10577
11111
  /**
10578
11112
  * ShopCategoryApi - axios parameter creator
10579
11113
  * @export
@@ -12687,6 +13221,7 @@ export const StatsControllerGetEventsCountEventNameEnum = {
12687
13221
  PlayerBanned: 'player-banned',
12688
13222
  PlayerUnbanned: 'player-unbanned',
12689
13223
  PlayerDeleted: 'player-deleted',
13224
+ ShopActionExecuted: 'shop-action-executed',
12690
13225
  PlayerConnected: 'player-connected',
12691
13226
  PlayerDisconnected: 'player-disconnected',
12692
13227
  ChatMessage: 'chat-message',