@takaro/apiclient 0.3.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/api.d.ts +1290 -28
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/generated/api.js +566 -14
- package/dist/generated/api.js.map +1 -1
- package/dist/lib/client.d.ts +2 -1
- package/dist/lib/client.d.ts.map +1 -1
- package/dist/lib/client.js +6 -1
- package/dist/lib/client.js.map +1 -1
- package/package.json +1 -1
- package/src/generated/api.ts +1734 -43
- package/src/lib/client.ts +11 -0
- package/src/generated/.openapi-generator/FILES +0 -422
- package/src/generated/.openapi-generator/VERSION +0 -1
package/dist/generated/api.js
CHANGED
|
@@ -117,8 +117,10 @@ export const EventCreateDTOEventNameEnum = {
|
|
|
117
117
|
CronjobExecuted: 'cronjob-executed',
|
|
118
118
|
CurrencyAdded: 'currency-added',
|
|
119
119
|
CurrencyDeducted: 'currency-deducted',
|
|
120
|
+
CurrencyResetAll: 'currency-reset-all',
|
|
120
121
|
SettingsSet: 'settings-set',
|
|
121
122
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
123
|
+
PlayerNewNameDetected: 'player-new-name-detected',
|
|
122
124
|
ServerStatusChanged: 'server-status-changed',
|
|
123
125
|
ModuleCreated: 'module-created',
|
|
124
126
|
ModuleUpdated: 'module-updated',
|
|
@@ -138,6 +140,7 @@ export const EventCreateDTOEventNameEnum = {
|
|
|
138
140
|
GameserverDeleted: 'gameserver-deleted',
|
|
139
141
|
PlayerBanned: 'player-banned',
|
|
140
142
|
PlayerUnbanned: 'player-unbanned',
|
|
143
|
+
PlayerDeleted: 'player-deleted',
|
|
141
144
|
PlayerConnected: 'player-connected',
|
|
142
145
|
PlayerDisconnected: 'player-disconnected',
|
|
143
146
|
ChatMessage: 'chat-message',
|
|
@@ -156,8 +159,10 @@ export const EventOutputDTOEventNameEnum = {
|
|
|
156
159
|
CronjobExecuted: 'cronjob-executed',
|
|
157
160
|
CurrencyAdded: 'currency-added',
|
|
158
161
|
CurrencyDeducted: 'currency-deducted',
|
|
162
|
+
CurrencyResetAll: 'currency-reset-all',
|
|
159
163
|
SettingsSet: 'settings-set',
|
|
160
164
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
165
|
+
PlayerNewNameDetected: 'player-new-name-detected',
|
|
161
166
|
ServerStatusChanged: 'server-status-changed',
|
|
162
167
|
ModuleCreated: 'module-created',
|
|
163
168
|
ModuleUpdated: 'module-updated',
|
|
@@ -177,6 +182,7 @@ export const EventOutputDTOEventNameEnum = {
|
|
|
177
182
|
GameserverDeleted: 'gameserver-deleted',
|
|
178
183
|
PlayerBanned: 'player-banned',
|
|
179
184
|
PlayerUnbanned: 'player-unbanned',
|
|
185
|
+
PlayerDeleted: 'player-deleted',
|
|
180
186
|
PlayerConnected: 'player-connected',
|
|
181
187
|
PlayerDisconnected: 'player-disconnected',
|
|
182
188
|
ChatMessage: 'chat-message',
|
|
@@ -195,8 +201,10 @@ export const EventSearchInputAllowedFiltersEventNameEnum = {
|
|
|
195
201
|
CronjobExecuted: 'cronjob-executed',
|
|
196
202
|
CurrencyAdded: 'currency-added',
|
|
197
203
|
CurrencyDeducted: 'currency-deducted',
|
|
204
|
+
CurrencyResetAll: 'currency-reset-all',
|
|
198
205
|
SettingsSet: 'settings-set',
|
|
199
206
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
207
|
+
PlayerNewNameDetected: 'player-new-name-detected',
|
|
200
208
|
ServerStatusChanged: 'server-status-changed',
|
|
201
209
|
ModuleCreated: 'module-created',
|
|
202
210
|
ModuleUpdated: 'module-updated',
|
|
@@ -216,6 +224,7 @@ export const EventSearchInputAllowedFiltersEventNameEnum = {
|
|
|
216
224
|
GameserverDeleted: 'gameserver-deleted',
|
|
217
225
|
PlayerBanned: 'player-banned',
|
|
218
226
|
PlayerUnbanned: 'player-unbanned',
|
|
227
|
+
PlayerDeleted: 'player-deleted',
|
|
219
228
|
PlayerConnected: 'player-connected',
|
|
220
229
|
PlayerDisconnected: 'player-disconnected',
|
|
221
230
|
ChatMessage: 'chat-message',
|
|
@@ -244,8 +253,10 @@ export const EventsCountInputDTOEventNameEnum = {
|
|
|
244
253
|
CronjobExecuted: 'cronjob-executed',
|
|
245
254
|
CurrencyAdded: 'currency-added',
|
|
246
255
|
CurrencyDeducted: 'currency-deducted',
|
|
256
|
+
CurrencyResetAll: 'currency-reset-all',
|
|
247
257
|
SettingsSet: 'settings-set',
|
|
248
258
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
259
|
+
PlayerNewNameDetected: 'player-new-name-detected',
|
|
249
260
|
ServerStatusChanged: 'server-status-changed',
|
|
250
261
|
ModuleCreated: 'module-created',
|
|
251
262
|
ModuleUpdated: 'module-updated',
|
|
@@ -265,6 +276,7 @@ export const EventsCountInputDTOEventNameEnum = {
|
|
|
265
276
|
GameserverDeleted: 'gameserver-deleted',
|
|
266
277
|
PlayerBanned: 'player-banned',
|
|
267
278
|
PlayerUnbanned: 'player-unbanned',
|
|
279
|
+
PlayerDeleted: 'player-deleted',
|
|
268
280
|
PlayerConnected: 'player-connected',
|
|
269
281
|
PlayerDisconnected: 'player-disconnected',
|
|
270
282
|
ChatMessage: 'chat-message',
|
|
@@ -350,6 +362,7 @@ export const GetJobInputDTOTypeEnum = {
|
|
|
350
362
|
SyncEntities: 'syncEntities',
|
|
351
363
|
SyncBans: 'syncBans',
|
|
352
364
|
SyncSteam: 'syncSteam',
|
|
365
|
+
SyncDiscordRoles: 'syncDiscordRoles',
|
|
353
366
|
};
|
|
354
367
|
export const GetSettingsInputKeysEnum = {
|
|
355
368
|
CommandPrefix: 'commandPrefix',
|
|
@@ -359,6 +372,8 @@ export const GetSettingsInputKeysEnum = {
|
|
|
359
372
|
DeveloperMode: 'developerMode',
|
|
360
373
|
MessagePrefix: 'messagePrefix',
|
|
361
374
|
DomainName: 'domainName',
|
|
375
|
+
DiscordRoleSyncEnabled: 'discordRoleSyncEnabled',
|
|
376
|
+
DiscordRoleSyncPreferDiscord: 'discordRoleSyncPreferDiscord',
|
|
362
377
|
};
|
|
363
378
|
export const GuildSearchInputDTOSortDirectionEnum = {
|
|
364
379
|
Asc: 'asc',
|
|
@@ -383,8 +398,10 @@ export const HookCreateDTOEventTypeEnum = {
|
|
|
383
398
|
CronjobExecuted: 'cronjob-executed',
|
|
384
399
|
CurrencyAdded: 'currency-added',
|
|
385
400
|
CurrencyDeducted: 'currency-deducted',
|
|
401
|
+
CurrencyResetAll: 'currency-reset-all',
|
|
386
402
|
SettingsSet: 'settings-set',
|
|
387
403
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
404
|
+
PlayerNewNameDetected: 'player-new-name-detected',
|
|
388
405
|
ServerStatusChanged: 'server-status-changed',
|
|
389
406
|
ModuleCreated: 'module-created',
|
|
390
407
|
ModuleUpdated: 'module-updated',
|
|
@@ -404,6 +421,7 @@ export const HookCreateDTOEventTypeEnum = {
|
|
|
404
421
|
GameserverDeleted: 'gameserver-deleted',
|
|
405
422
|
PlayerBanned: 'player-banned',
|
|
406
423
|
PlayerUnbanned: 'player-unbanned',
|
|
424
|
+
PlayerDeleted: 'player-deleted',
|
|
407
425
|
};
|
|
408
426
|
export const HookOutputDTOEventTypeEnum = {
|
|
409
427
|
Log: 'log',
|
|
@@ -424,8 +442,10 @@ export const HookOutputDTOEventTypeEnum = {
|
|
|
424
442
|
CronjobExecuted: 'cronjob-executed',
|
|
425
443
|
CurrencyAdded: 'currency-added',
|
|
426
444
|
CurrencyDeducted: 'currency-deducted',
|
|
445
|
+
CurrencyResetAll: 'currency-reset-all',
|
|
427
446
|
SettingsSet: 'settings-set',
|
|
428
447
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
448
|
+
PlayerNewNameDetected: 'player-new-name-detected',
|
|
429
449
|
ServerStatusChanged: 'server-status-changed',
|
|
430
450
|
ModuleCreated: 'module-created',
|
|
431
451
|
ModuleUpdated: 'module-updated',
|
|
@@ -445,6 +465,7 @@ export const HookOutputDTOEventTypeEnum = {
|
|
|
445
465
|
GameserverDeleted: 'gameserver-deleted',
|
|
446
466
|
PlayerBanned: 'player-banned',
|
|
447
467
|
PlayerUnbanned: 'player-unbanned',
|
|
468
|
+
PlayerDeleted: 'player-deleted',
|
|
448
469
|
};
|
|
449
470
|
export const HookSearchInputAllowedFiltersEventTypeEnum = {
|
|
450
471
|
Log: 'log',
|
|
@@ -465,8 +486,10 @@ export const HookSearchInputAllowedFiltersEventTypeEnum = {
|
|
|
465
486
|
CronjobExecuted: 'cronjob-executed',
|
|
466
487
|
CurrencyAdded: 'currency-added',
|
|
467
488
|
CurrencyDeducted: 'currency-deducted',
|
|
489
|
+
CurrencyResetAll: 'currency-reset-all',
|
|
468
490
|
SettingsSet: 'settings-set',
|
|
469
491
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
492
|
+
PlayerNewNameDetected: 'player-new-name-detected',
|
|
470
493
|
ServerStatusChanged: 'server-status-changed',
|
|
471
494
|
ModuleCreated: 'module-created',
|
|
472
495
|
ModuleUpdated: 'module-updated',
|
|
@@ -486,6 +509,7 @@ export const HookSearchInputAllowedFiltersEventTypeEnum = {
|
|
|
486
509
|
GameserverDeleted: 'gameserver-deleted',
|
|
487
510
|
PlayerBanned: 'player-banned',
|
|
488
511
|
PlayerUnbanned: 'player-unbanned',
|
|
512
|
+
PlayerDeleted: 'player-deleted',
|
|
489
513
|
};
|
|
490
514
|
export const HookSearchInputDTOExtendEnum = {
|
|
491
515
|
Module: 'module',
|
|
@@ -514,8 +538,10 @@ export const HookTriggerDTOEventTypeEnum = {
|
|
|
514
538
|
CronjobExecuted: 'cronjob-executed',
|
|
515
539
|
CurrencyAdded: 'currency-added',
|
|
516
540
|
CurrencyDeducted: 'currency-deducted',
|
|
541
|
+
CurrencyResetAll: 'currency-reset-all',
|
|
517
542
|
SettingsSet: 'settings-set',
|
|
518
543
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
544
|
+
PlayerNewNameDetected: 'player-new-name-detected',
|
|
519
545
|
ServerStatusChanged: 'server-status-changed',
|
|
520
546
|
ModuleCreated: 'module-created',
|
|
521
547
|
ModuleUpdated: 'module-updated',
|
|
@@ -535,6 +561,7 @@ export const HookTriggerDTOEventTypeEnum = {
|
|
|
535
561
|
GameserverDeleted: 'gameserver-deleted',
|
|
536
562
|
PlayerBanned: 'player-banned',
|
|
537
563
|
PlayerUnbanned: 'player-unbanned',
|
|
564
|
+
PlayerDeleted: 'player-deleted',
|
|
538
565
|
};
|
|
539
566
|
export const HookUpdateDTOEventTypeEnum = {
|
|
540
567
|
Log: 'log',
|
|
@@ -555,8 +582,10 @@ export const HookUpdateDTOEventTypeEnum = {
|
|
|
555
582
|
CronjobExecuted: 'cronjob-executed',
|
|
556
583
|
CurrencyAdded: 'currency-added',
|
|
557
584
|
CurrencyDeducted: 'currency-deducted',
|
|
585
|
+
CurrencyResetAll: 'currency-reset-all',
|
|
558
586
|
SettingsSet: 'settings-set',
|
|
559
587
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
588
|
+
PlayerNewNameDetected: 'player-new-name-detected',
|
|
560
589
|
ServerStatusChanged: 'server-status-changed',
|
|
561
590
|
ModuleCreated: 'module-created',
|
|
562
591
|
ModuleUpdated: 'module-updated',
|
|
@@ -576,6 +605,7 @@ export const HookUpdateDTOEventTypeEnum = {
|
|
|
576
605
|
GameserverDeleted: 'gameserver-deleted',
|
|
577
606
|
PlayerBanned: 'player-banned',
|
|
578
607
|
PlayerUnbanned: 'player-unbanned',
|
|
608
|
+
PlayerDeleted: 'player-deleted',
|
|
579
609
|
};
|
|
580
610
|
export const IEntityDTOTypeEnum = {
|
|
581
611
|
Hostile: 'hostile',
|
|
@@ -601,8 +631,10 @@ export const IHookEventTypeEnum = {
|
|
|
601
631
|
CronjobExecuted: 'cronjob-executed',
|
|
602
632
|
CurrencyAdded: 'currency-added',
|
|
603
633
|
CurrencyDeducted: 'currency-deducted',
|
|
634
|
+
CurrencyResetAll: 'currency-reset-all',
|
|
604
635
|
SettingsSet: 'settings-set',
|
|
605
636
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
637
|
+
PlayerNewNameDetected: 'player-new-name-detected',
|
|
606
638
|
ServerStatusChanged: 'server-status-changed',
|
|
607
639
|
ModuleCreated: 'module-created',
|
|
608
640
|
ModuleUpdated: 'module-updated',
|
|
@@ -622,6 +654,7 @@ export const IHookEventTypeEnum = {
|
|
|
622
654
|
GameserverDeleted: 'gameserver-deleted',
|
|
623
655
|
PlayerBanned: 'player-banned',
|
|
624
656
|
PlayerUnbanned: 'player-unbanned',
|
|
657
|
+
PlayerDeleted: 'player-deleted',
|
|
625
658
|
};
|
|
626
659
|
export const ITakaroQuerySortDirectionEnum = {
|
|
627
660
|
Asc: 'asc',
|
|
@@ -656,6 +689,11 @@ export const ModuleVersionSearchInputDTOSortDirectionEnum = {
|
|
|
656
689
|
Asc: 'asc',
|
|
657
690
|
Desc: 'desc',
|
|
658
691
|
};
|
|
692
|
+
export const OrderStatusCountDTOStatusEnum = {
|
|
693
|
+
Completed: 'COMPLETED',
|
|
694
|
+
Paid: 'PAID',
|
|
695
|
+
Canceled: 'CANCELED',
|
|
696
|
+
};
|
|
659
697
|
/**
|
|
660
698
|
*
|
|
661
699
|
* @export
|
|
@@ -695,6 +733,8 @@ export const ParamKeyKeyEnum = {
|
|
|
695
733
|
DeveloperMode: 'developerMode',
|
|
696
734
|
MessagePrefix: 'messagePrefix',
|
|
697
735
|
DomainName: 'domainName',
|
|
736
|
+
DiscordRoleSyncEnabled: 'discordRoleSyncEnabled',
|
|
737
|
+
DiscordRoleSyncPreferDiscord: 'discordRoleSyncPreferDiscord',
|
|
698
738
|
};
|
|
699
739
|
export const PlayerOnGameServerSearchInputDTOExtendEnum = {
|
|
700
740
|
GameServer: 'gameServer',
|
|
@@ -714,6 +754,11 @@ export const PlayerSearchInputDTOSortDirectionEnum = {
|
|
|
714
754
|
Asc: 'asc',
|
|
715
755
|
Desc: 'desc',
|
|
716
756
|
};
|
|
757
|
+
export const RecentOrderDTOStatusEnum = {
|
|
758
|
+
Completed: 'COMPLETED',
|
|
759
|
+
Paid: 'PAID',
|
|
760
|
+
Canceled: 'CANCELED',
|
|
761
|
+
};
|
|
717
762
|
export const RoleSearchInputDTOExtendEnum = {
|
|
718
763
|
Permissions: 'permissions',
|
|
719
764
|
};
|
|
@@ -729,6 +774,8 @@ export const SettingsOutputDTOKeyEnum = {
|
|
|
729
774
|
DeveloperMode: 'developerMode',
|
|
730
775
|
MessagePrefix: 'messagePrefix',
|
|
731
776
|
DomainName: 'domainName',
|
|
777
|
+
DiscordRoleSyncEnabled: 'discordRoleSyncEnabled',
|
|
778
|
+
DiscordRoleSyncPreferDiscord: 'discordRoleSyncPreferDiscord',
|
|
732
779
|
};
|
|
733
780
|
export const SettingsOutputDTOTypeEnum = {
|
|
734
781
|
Override: 'override',
|
|
@@ -736,6 +783,12 @@ export const SettingsOutputDTOTypeEnum = {
|
|
|
736
783
|
Global: 'global',
|
|
737
784
|
Default: 'default',
|
|
738
785
|
};
|
|
786
|
+
export const ShopAnalyticsQueryDTOPeriodEnum = {
|
|
787
|
+
Last24Hours: 'last24Hours',
|
|
788
|
+
Last7Days: 'last7Days',
|
|
789
|
+
Last30Days: 'last30Days',
|
|
790
|
+
Last90Days: 'last90Days',
|
|
791
|
+
};
|
|
739
792
|
export const ShopCategorySearchInputDTOSortDirectionEnum = {
|
|
740
793
|
Asc: 'asc',
|
|
741
794
|
Desc: 'desc',
|
|
@@ -785,6 +838,124 @@ export const VariableSearchInputDTOSortDirectionEnum = {
|
|
|
785
838
|
Asc: 'asc',
|
|
786
839
|
Desc: 'desc',
|
|
787
840
|
};
|
|
841
|
+
/**
|
|
842
|
+
* AnalyticsApi - axios parameter creator
|
|
843
|
+
* @export
|
|
844
|
+
*/
|
|
845
|
+
export const AnalyticsApiAxiosParamCreator = function (configuration) {
|
|
846
|
+
return {
|
|
847
|
+
/**
|
|
848
|
+
* Retrieve comprehensive analytics for shop performance across selected game servers Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `AnalyticsControllerGetShopAnalytics`
|
|
849
|
+
* @summary Get shop analytics
|
|
850
|
+
* @param {Array<string>} [gameServerIds]
|
|
851
|
+
* @param {AnalyticsControllerGetShopAnalyticsPeriodEnum} [period]
|
|
852
|
+
* @param {*} [options] Override http request option.
|
|
853
|
+
* @throws {RequiredError}
|
|
854
|
+
*/
|
|
855
|
+
analyticsControllerGetShopAnalytics: async (gameServerIds, period, options = {}) => {
|
|
856
|
+
const localVarPath = `/analytics/shop`;
|
|
857
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
858
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
859
|
+
let baseOptions;
|
|
860
|
+
if (configuration) {
|
|
861
|
+
baseOptions = configuration.baseOptions;
|
|
862
|
+
}
|
|
863
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
864
|
+
const localVarHeaderParameter = {};
|
|
865
|
+
const localVarQueryParameter = {};
|
|
866
|
+
// authentication domainAuth required
|
|
867
|
+
if (gameServerIds) {
|
|
868
|
+
localVarQueryParameter['gameServerIds'] = gameServerIds;
|
|
869
|
+
}
|
|
870
|
+
if (period !== undefined) {
|
|
871
|
+
localVarQueryParameter['period'] = period;
|
|
872
|
+
}
|
|
873
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
874
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
875
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
876
|
+
return {
|
|
877
|
+
url: toPathString(localVarUrlObj),
|
|
878
|
+
options: localVarRequestOptions,
|
|
879
|
+
};
|
|
880
|
+
},
|
|
881
|
+
};
|
|
882
|
+
};
|
|
883
|
+
/**
|
|
884
|
+
* AnalyticsApi - functional programming interface
|
|
885
|
+
* @export
|
|
886
|
+
*/
|
|
887
|
+
export const AnalyticsApiFp = function (configuration) {
|
|
888
|
+
const localVarAxiosParamCreator = AnalyticsApiAxiosParamCreator(configuration);
|
|
889
|
+
return {
|
|
890
|
+
/**
|
|
891
|
+
* Retrieve comprehensive analytics for shop performance across selected game servers Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `AnalyticsControllerGetShopAnalytics`
|
|
892
|
+
* @summary Get shop analytics
|
|
893
|
+
* @param {Array<string>} [gameServerIds]
|
|
894
|
+
* @param {AnalyticsControllerGetShopAnalyticsPeriodEnum} [period]
|
|
895
|
+
* @param {*} [options] Override http request option.
|
|
896
|
+
* @throws {RequiredError}
|
|
897
|
+
*/
|
|
898
|
+
async analyticsControllerGetShopAnalytics(gameServerIds, period, options) {
|
|
899
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.analyticsControllerGetShopAnalytics(gameServerIds, period, options);
|
|
900
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
901
|
+
const localVarOperationServerBasePath = operationServerMap['AnalyticsApi.analyticsControllerGetShopAnalytics']?.[localVarOperationServerIndex]?.url;
|
|
902
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
903
|
+
},
|
|
904
|
+
};
|
|
905
|
+
};
|
|
906
|
+
/**
|
|
907
|
+
* AnalyticsApi - factory interface
|
|
908
|
+
* @export
|
|
909
|
+
*/
|
|
910
|
+
export const AnalyticsApiFactory = function (configuration, basePath, axios) {
|
|
911
|
+
const localVarFp = AnalyticsApiFp(configuration);
|
|
912
|
+
return {
|
|
913
|
+
/**
|
|
914
|
+
* Retrieve comprehensive analytics for shop performance across selected game servers Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `AnalyticsControllerGetShopAnalytics`
|
|
915
|
+
* @summary Get shop analytics
|
|
916
|
+
* @param {Array<string>} [gameServerIds]
|
|
917
|
+
* @param {AnalyticsControllerGetShopAnalyticsPeriodEnum} [period]
|
|
918
|
+
* @param {*} [options] Override http request option.
|
|
919
|
+
* @throws {RequiredError}
|
|
920
|
+
*/
|
|
921
|
+
analyticsControllerGetShopAnalytics(gameServerIds, period, options) {
|
|
922
|
+
return localVarFp
|
|
923
|
+
.analyticsControllerGetShopAnalytics(gameServerIds, period, options)
|
|
924
|
+
.then((request) => request(axios, basePath));
|
|
925
|
+
},
|
|
926
|
+
};
|
|
927
|
+
};
|
|
928
|
+
/**
|
|
929
|
+
* AnalyticsApi - object-oriented interface
|
|
930
|
+
* @export
|
|
931
|
+
* @class AnalyticsApi
|
|
932
|
+
* @extends {BaseAPI}
|
|
933
|
+
*/
|
|
934
|
+
export class AnalyticsApi extends BaseAPI {
|
|
935
|
+
/**
|
|
936
|
+
* Retrieve comprehensive analytics for shop performance across selected game servers Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `AnalyticsControllerGetShopAnalytics`
|
|
937
|
+
* @summary Get shop analytics
|
|
938
|
+
* @param {Array<string>} [gameServerIds]
|
|
939
|
+
* @param {AnalyticsControllerGetShopAnalyticsPeriodEnum} [period]
|
|
940
|
+
* @param {*} [options] Override http request option.
|
|
941
|
+
* @throws {RequiredError}
|
|
942
|
+
* @memberof AnalyticsApi
|
|
943
|
+
*/
|
|
944
|
+
analyticsControllerGetShopAnalytics(gameServerIds, period, options) {
|
|
945
|
+
return AnalyticsApiFp(this.configuration)
|
|
946
|
+
.analyticsControllerGetShopAnalytics(gameServerIds, period, options)
|
|
947
|
+
.then((request) => request(this.axios, this.basePath));
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
/**
|
|
951
|
+
* @export
|
|
952
|
+
*/
|
|
953
|
+
export const AnalyticsControllerGetShopAnalyticsPeriodEnum = {
|
|
954
|
+
Last24Hours: 'last24Hours',
|
|
955
|
+
Last7Days: 'last7Days',
|
|
956
|
+
Last30Days: 'last30Days',
|
|
957
|
+
Last90Days: 'last90Days',
|
|
958
|
+
};
|
|
788
959
|
/**
|
|
789
960
|
* CommandApi - axios parameter creator
|
|
790
961
|
* @export
|
|
@@ -2038,6 +2209,39 @@ export class CronJobApi extends BaseAPI {
|
|
|
2038
2209
|
*/
|
|
2039
2210
|
export const DiscordApiAxiosParamCreator = function (configuration) {
|
|
2040
2211
|
return {
|
|
2212
|
+
/**
|
|
2213
|
+
* Delete a Discord message. The bot must have sent the original message or have appropriate permissions. Returns an empty response on success. Required permissions: `SEND_DISCORD_MESSAGE`<br> OperationId: `DiscordControllerDeleteMessage`
|
|
2214
|
+
* @summary Delete Discord message
|
|
2215
|
+
* @param {string} channelId
|
|
2216
|
+
* @param {string} messageId
|
|
2217
|
+
* @param {*} [options] Override http request option.
|
|
2218
|
+
* @throws {RequiredError}
|
|
2219
|
+
*/
|
|
2220
|
+
discordControllerDeleteMessage: async (channelId, messageId, options = {}) => {
|
|
2221
|
+
// verify required parameter 'channelId' is not null or undefined
|
|
2222
|
+
assertParamExists('discordControllerDeleteMessage', 'channelId', channelId);
|
|
2223
|
+
// verify required parameter 'messageId' is not null or undefined
|
|
2224
|
+
assertParamExists('discordControllerDeleteMessage', 'messageId', messageId);
|
|
2225
|
+
const localVarPath = `/discord/channels/{channelId}/messages/{messageId}`
|
|
2226
|
+
.replace(`{${'channelId'}}`, encodeURIComponent(String(channelId)))
|
|
2227
|
+
.replace(`{${'messageId'}}`, encodeURIComponent(String(messageId)));
|
|
2228
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2229
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2230
|
+
let baseOptions;
|
|
2231
|
+
if (configuration) {
|
|
2232
|
+
baseOptions = configuration.baseOptions;
|
|
2233
|
+
}
|
|
2234
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
2235
|
+
const localVarHeaderParameter = {};
|
|
2236
|
+
const localVarQueryParameter = {};
|
|
2237
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2238
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2239
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2240
|
+
return {
|
|
2241
|
+
url: toPathString(localVarUrlObj),
|
|
2242
|
+
options: localVarRequestOptions,
|
|
2243
|
+
};
|
|
2244
|
+
},
|
|
2041
2245
|
/**
|
|
2042
2246
|
* Retrieve all channels (text, voice, etc.) in a specific Discord guild. Useful for selecting channels for notifications or commands. Required permissions: `VIEW_DISCORD_INFO`<br> OperationId: `DiscordControllerGetChannels`
|
|
2043
2247
|
* @summary Get guild channels
|
|
@@ -2209,6 +2413,42 @@ export const DiscordApiAxiosParamCreator = function (configuration) {
|
|
|
2209
2413
|
options: localVarRequestOptions,
|
|
2210
2414
|
};
|
|
2211
2415
|
},
|
|
2416
|
+
/**
|
|
2417
|
+
* Update an existing Discord message with new content or embed. Requires the bot to have sent the original message. Required permissions: `SEND_DISCORD_MESSAGE`<br> OperationId: `DiscordControllerUpdateMessage`
|
|
2418
|
+
* @summary Update Discord message
|
|
2419
|
+
* @param {string} channelId
|
|
2420
|
+
* @param {string} messageId
|
|
2421
|
+
* @param {SendMessageInputDTO} [sendMessageInputDTO] SendMessageInputDTO
|
|
2422
|
+
* @param {*} [options] Override http request option.
|
|
2423
|
+
* @throws {RequiredError}
|
|
2424
|
+
*/
|
|
2425
|
+
discordControllerUpdateMessage: async (channelId, messageId, sendMessageInputDTO, options = {}) => {
|
|
2426
|
+
// verify required parameter 'channelId' is not null or undefined
|
|
2427
|
+
assertParamExists('discordControllerUpdateMessage', 'channelId', channelId);
|
|
2428
|
+
// verify required parameter 'messageId' is not null or undefined
|
|
2429
|
+
assertParamExists('discordControllerUpdateMessage', 'messageId', messageId);
|
|
2430
|
+
const localVarPath = `/discord/channels/{channelId}/messages/{messageId}`
|
|
2431
|
+
.replace(`{${'channelId'}}`, encodeURIComponent(String(channelId)))
|
|
2432
|
+
.replace(`{${'messageId'}}`, encodeURIComponent(String(messageId)));
|
|
2433
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2434
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2435
|
+
let baseOptions;
|
|
2436
|
+
if (configuration) {
|
|
2437
|
+
baseOptions = configuration.baseOptions;
|
|
2438
|
+
}
|
|
2439
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
2440
|
+
const localVarHeaderParameter = {};
|
|
2441
|
+
const localVarQueryParameter = {};
|
|
2442
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2443
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2444
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2445
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2446
|
+
localVarRequestOptions.data = serializeDataIfNeeded(sendMessageInputDTO, localVarRequestOptions, configuration);
|
|
2447
|
+
return {
|
|
2448
|
+
url: toPathString(localVarUrlObj),
|
|
2449
|
+
options: localVarRequestOptions,
|
|
2450
|
+
};
|
|
2451
|
+
},
|
|
2212
2452
|
};
|
|
2213
2453
|
};
|
|
2214
2454
|
/**
|
|
@@ -2218,6 +2458,20 @@ export const DiscordApiAxiosParamCreator = function (configuration) {
|
|
|
2218
2458
|
export const DiscordApiFp = function (configuration) {
|
|
2219
2459
|
const localVarAxiosParamCreator = DiscordApiAxiosParamCreator(configuration);
|
|
2220
2460
|
return {
|
|
2461
|
+
/**
|
|
2462
|
+
* Delete a Discord message. The bot must have sent the original message or have appropriate permissions. Returns an empty response on success. Required permissions: `SEND_DISCORD_MESSAGE`<br> OperationId: `DiscordControllerDeleteMessage`
|
|
2463
|
+
* @summary Delete Discord message
|
|
2464
|
+
* @param {string} channelId
|
|
2465
|
+
* @param {string} messageId
|
|
2466
|
+
* @param {*} [options] Override http request option.
|
|
2467
|
+
* @throws {RequiredError}
|
|
2468
|
+
*/
|
|
2469
|
+
async discordControllerDeleteMessage(channelId, messageId, options) {
|
|
2470
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.discordControllerDeleteMessage(channelId, messageId, options);
|
|
2471
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2472
|
+
const localVarOperationServerBasePath = operationServerMap['DiscordApi.discordControllerDeleteMessage']?.[localVarOperationServerIndex]?.url;
|
|
2473
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2474
|
+
},
|
|
2221
2475
|
/**
|
|
2222
2476
|
* Retrieve all channels (text, voice, etc.) in a specific Discord guild. Useful for selecting channels for notifications or commands. Required permissions: `VIEW_DISCORD_INFO`<br> OperationId: `DiscordControllerGetChannels`
|
|
2223
2477
|
* @summary Get guild channels
|
|
@@ -2297,6 +2551,21 @@ export const DiscordApiFp = function (configuration) {
|
|
|
2297
2551
|
const localVarOperationServerBasePath = operationServerMap['DiscordApi.discordControllerUpdateGuild']?.[localVarOperationServerIndex]?.url;
|
|
2298
2552
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2299
2553
|
},
|
|
2554
|
+
/**
|
|
2555
|
+
* Update an existing Discord message with new content or embed. Requires the bot to have sent the original message. Required permissions: `SEND_DISCORD_MESSAGE`<br> OperationId: `DiscordControllerUpdateMessage`
|
|
2556
|
+
* @summary Update Discord message
|
|
2557
|
+
* @param {string} channelId
|
|
2558
|
+
* @param {string} messageId
|
|
2559
|
+
* @param {SendMessageInputDTO} [sendMessageInputDTO] SendMessageInputDTO
|
|
2560
|
+
* @param {*} [options] Override http request option.
|
|
2561
|
+
* @throws {RequiredError}
|
|
2562
|
+
*/
|
|
2563
|
+
async discordControllerUpdateMessage(channelId, messageId, sendMessageInputDTO, options) {
|
|
2564
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.discordControllerUpdateMessage(channelId, messageId, sendMessageInputDTO, options);
|
|
2565
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2566
|
+
const localVarOperationServerBasePath = operationServerMap['DiscordApi.discordControllerUpdateMessage']?.[localVarOperationServerIndex]?.url;
|
|
2567
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2568
|
+
},
|
|
2300
2569
|
};
|
|
2301
2570
|
};
|
|
2302
2571
|
/**
|
|
@@ -2306,6 +2575,19 @@ export const DiscordApiFp = function (configuration) {
|
|
|
2306
2575
|
export const DiscordApiFactory = function (configuration, basePath, axios) {
|
|
2307
2576
|
const localVarFp = DiscordApiFp(configuration);
|
|
2308
2577
|
return {
|
|
2578
|
+
/**
|
|
2579
|
+
* Delete a Discord message. The bot must have sent the original message or have appropriate permissions. Returns an empty response on success. Required permissions: `SEND_DISCORD_MESSAGE`<br> OperationId: `DiscordControllerDeleteMessage`
|
|
2580
|
+
* @summary Delete Discord message
|
|
2581
|
+
* @param {string} channelId
|
|
2582
|
+
* @param {string} messageId
|
|
2583
|
+
* @param {*} [options] Override http request option.
|
|
2584
|
+
* @throws {RequiredError}
|
|
2585
|
+
*/
|
|
2586
|
+
discordControllerDeleteMessage(channelId, messageId, options) {
|
|
2587
|
+
return localVarFp
|
|
2588
|
+
.discordControllerDeleteMessage(channelId, messageId, options)
|
|
2589
|
+
.then((request) => request(axios, basePath));
|
|
2590
|
+
},
|
|
2309
2591
|
/**
|
|
2310
2592
|
* Retrieve all channels (text, voice, etc.) in a specific Discord guild. Useful for selecting channels for notifications or commands. Required permissions: `VIEW_DISCORD_INFO`<br> OperationId: `DiscordControllerGetChannels`
|
|
2311
2593
|
* @summary Get guild channels
|
|
@@ -2373,6 +2655,20 @@ export const DiscordApiFactory = function (configuration, basePath, axios) {
|
|
|
2373
2655
|
.discordControllerUpdateGuild(id, guildApiUpdateDTO, options)
|
|
2374
2656
|
.then((request) => request(axios, basePath));
|
|
2375
2657
|
},
|
|
2658
|
+
/**
|
|
2659
|
+
* Update an existing Discord message with new content or embed. Requires the bot to have sent the original message. Required permissions: `SEND_DISCORD_MESSAGE`<br> OperationId: `DiscordControllerUpdateMessage`
|
|
2660
|
+
* @summary Update Discord message
|
|
2661
|
+
* @param {string} channelId
|
|
2662
|
+
* @param {string} messageId
|
|
2663
|
+
* @param {SendMessageInputDTO} [sendMessageInputDTO] SendMessageInputDTO
|
|
2664
|
+
* @param {*} [options] Override http request option.
|
|
2665
|
+
* @throws {RequiredError}
|
|
2666
|
+
*/
|
|
2667
|
+
discordControllerUpdateMessage(channelId, messageId, sendMessageInputDTO, options) {
|
|
2668
|
+
return localVarFp
|
|
2669
|
+
.discordControllerUpdateMessage(channelId, messageId, sendMessageInputDTO, options)
|
|
2670
|
+
.then((request) => request(axios, basePath));
|
|
2671
|
+
},
|
|
2376
2672
|
};
|
|
2377
2673
|
};
|
|
2378
2674
|
/**
|
|
@@ -2382,6 +2678,20 @@ export const DiscordApiFactory = function (configuration, basePath, axios) {
|
|
|
2382
2678
|
* @extends {BaseAPI}
|
|
2383
2679
|
*/
|
|
2384
2680
|
export class DiscordApi extends BaseAPI {
|
|
2681
|
+
/**
|
|
2682
|
+
* Delete a Discord message. The bot must have sent the original message or have appropriate permissions. Returns an empty response on success. Required permissions: `SEND_DISCORD_MESSAGE`<br> OperationId: `DiscordControllerDeleteMessage`
|
|
2683
|
+
* @summary Delete Discord message
|
|
2684
|
+
* @param {string} channelId
|
|
2685
|
+
* @param {string} messageId
|
|
2686
|
+
* @param {*} [options] Override http request option.
|
|
2687
|
+
* @throws {RequiredError}
|
|
2688
|
+
* @memberof DiscordApi
|
|
2689
|
+
*/
|
|
2690
|
+
discordControllerDeleteMessage(channelId, messageId, options) {
|
|
2691
|
+
return DiscordApiFp(this.configuration)
|
|
2692
|
+
.discordControllerDeleteMessage(channelId, messageId, options)
|
|
2693
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2694
|
+
}
|
|
2385
2695
|
/**
|
|
2386
2696
|
* Retrieve all channels (text, voice, etc.) in a specific Discord guild. Useful for selecting channels for notifications or commands. Required permissions: `VIEW_DISCORD_INFO`<br> OperationId: `DiscordControllerGetChannels`
|
|
2387
2697
|
* @summary Get guild channels
|
|
@@ -2461,6 +2771,21 @@ export class DiscordApi extends BaseAPI {
|
|
|
2461
2771
|
.discordControllerUpdateGuild(id, guildApiUpdateDTO, options)
|
|
2462
2772
|
.then((request) => request(this.axios, this.basePath));
|
|
2463
2773
|
}
|
|
2774
|
+
/**
|
|
2775
|
+
* Update an existing Discord message with new content or embed. Requires the bot to have sent the original message. Required permissions: `SEND_DISCORD_MESSAGE`<br> OperationId: `DiscordControllerUpdateMessage`
|
|
2776
|
+
* @summary Update Discord message
|
|
2777
|
+
* @param {string} channelId
|
|
2778
|
+
* @param {string} messageId
|
|
2779
|
+
* @param {SendMessageInputDTO} [sendMessageInputDTO] SendMessageInputDTO
|
|
2780
|
+
* @param {*} [options] Override http request option.
|
|
2781
|
+
* @throws {RequiredError}
|
|
2782
|
+
* @memberof DiscordApi
|
|
2783
|
+
*/
|
|
2784
|
+
discordControllerUpdateMessage(channelId, messageId, sendMessageInputDTO, options) {
|
|
2785
|
+
return DiscordApiFp(this.configuration)
|
|
2786
|
+
.discordControllerUpdateMessage(channelId, messageId, sendMessageInputDTO, options)
|
|
2787
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2788
|
+
}
|
|
2464
2789
|
}
|
|
2465
2790
|
/**
|
|
2466
2791
|
* DomainApi - axios parameter creator
|
|
@@ -4542,6 +4867,35 @@ export const GameServerApiAxiosParamCreator = function (configuration) {
|
|
|
4542
4867
|
options: localVarRequestOptions,
|
|
4543
4868
|
};
|
|
4544
4869
|
},
|
|
4870
|
+
/**
|
|
4871
|
+
* Resets all players\' currency to 0 on the specified game server. This action is irreversible. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerResetCurrency`
|
|
4872
|
+
* @summary Reset currency
|
|
4873
|
+
* @param {string} id
|
|
4874
|
+
* @param {*} [options] Override http request option.
|
|
4875
|
+
* @throws {RequiredError}
|
|
4876
|
+
*/
|
|
4877
|
+
gameServerControllerResetCurrency: async (id, options = {}) => {
|
|
4878
|
+
// verify required parameter 'id' is not null or undefined
|
|
4879
|
+
assertParamExists('gameServerControllerResetCurrency', 'id', id);
|
|
4880
|
+
const localVarPath = `/gameserver/{id}/reset-currency`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
4881
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4882
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4883
|
+
let baseOptions;
|
|
4884
|
+
if (configuration) {
|
|
4885
|
+
baseOptions = configuration.baseOptions;
|
|
4886
|
+
}
|
|
4887
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
4888
|
+
const localVarHeaderParameter = {};
|
|
4889
|
+
const localVarQueryParameter = {};
|
|
4890
|
+
// authentication domainAuth required
|
|
4891
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4892
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4893
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4894
|
+
return {
|
|
4895
|
+
url: toPathString(localVarUrlObj),
|
|
4896
|
+
options: localVarRequestOptions,
|
|
4897
|
+
};
|
|
4898
|
+
},
|
|
4545
4899
|
/**
|
|
4546
4900
|
* Fetch gameservers<br> OperationId: `GameServerControllerSearch`
|
|
4547
4901
|
* @summary Search
|
|
@@ -5057,6 +5411,19 @@ export const GameServerApiFp = function (configuration) {
|
|
|
5057
5411
|
const localVarOperationServerBasePath = operationServerMap['GameServerApi.gameServerControllerRemove']?.[localVarOperationServerIndex]?.url;
|
|
5058
5412
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5059
5413
|
},
|
|
5414
|
+
/**
|
|
5415
|
+
* Resets all players\' currency to 0 on the specified game server. This action is irreversible. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerResetCurrency`
|
|
5416
|
+
* @summary Reset currency
|
|
5417
|
+
* @param {string} id
|
|
5418
|
+
* @param {*} [options] Override http request option.
|
|
5419
|
+
* @throws {RequiredError}
|
|
5420
|
+
*/
|
|
5421
|
+
async gameServerControllerResetCurrency(id, options) {
|
|
5422
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerResetCurrency(id, options);
|
|
5423
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5424
|
+
const localVarOperationServerBasePath = operationServerMap['GameServerApi.gameServerControllerResetCurrency']?.[localVarOperationServerIndex]?.url;
|
|
5425
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5426
|
+
},
|
|
5060
5427
|
/**
|
|
5061
5428
|
* Fetch gameservers<br> OperationId: `GameServerControllerSearch`
|
|
5062
5429
|
* @summary Search
|
|
@@ -5377,6 +5744,16 @@ export const GameServerApiFactory = function (configuration, basePath, axios) {
|
|
|
5377
5744
|
gameServerControllerRemove(id, options) {
|
|
5378
5745
|
return localVarFp.gameServerControllerRemove(id, options).then((request) => request(axios, basePath));
|
|
5379
5746
|
},
|
|
5747
|
+
/**
|
|
5748
|
+
* Resets all players\' currency to 0 on the specified game server. This action is irreversible. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerResetCurrency`
|
|
5749
|
+
* @summary Reset currency
|
|
5750
|
+
* @param {string} id
|
|
5751
|
+
* @param {*} [options] Override http request option.
|
|
5752
|
+
* @throws {RequiredError}
|
|
5753
|
+
*/
|
|
5754
|
+
gameServerControllerResetCurrency(id, options) {
|
|
5755
|
+
return localVarFp.gameServerControllerResetCurrency(id, options).then((request) => request(axios, basePath));
|
|
5756
|
+
},
|
|
5380
5757
|
/**
|
|
5381
5758
|
* Fetch gameservers<br> OperationId: `GameServerControllerSearch`
|
|
5382
5759
|
* @summary Search
|
|
@@ -5717,6 +6094,19 @@ export class GameServerApi extends BaseAPI {
|
|
|
5717
6094
|
.gameServerControllerRemove(id, options)
|
|
5718
6095
|
.then((request) => request(this.axios, this.basePath));
|
|
5719
6096
|
}
|
|
6097
|
+
/**
|
|
6098
|
+
* Resets all players\' currency to 0 on the specified game server. This action is irreversible. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerResetCurrency`
|
|
6099
|
+
* @summary Reset currency
|
|
6100
|
+
* @param {string} id
|
|
6101
|
+
* @param {*} [options] Override http request option.
|
|
6102
|
+
* @throws {RequiredError}
|
|
6103
|
+
* @memberof GameServerApi
|
|
6104
|
+
*/
|
|
6105
|
+
gameServerControllerResetCurrency(id, options) {
|
|
6106
|
+
return GameServerApiFp(this.configuration)
|
|
6107
|
+
.gameServerControllerResetCurrency(id, options)
|
|
6108
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6109
|
+
}
|
|
5720
6110
|
/**
|
|
5721
6111
|
* Fetch gameservers<br> OperationId: `GameServerControllerSearch`
|
|
5722
6112
|
* @summary Search
|
|
@@ -8085,6 +8475,35 @@ export const PlayerApiAxiosParamCreator = function (configuration) {
|
|
|
8085
8475
|
options: localVarRequestOptions,
|
|
8086
8476
|
};
|
|
8087
8477
|
},
|
|
8478
|
+
/**
|
|
8479
|
+
* Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerControllerDelete`
|
|
8480
|
+
* @summary Delete
|
|
8481
|
+
* @param {string} id
|
|
8482
|
+
* @param {*} [options] Override http request option.
|
|
8483
|
+
* @throws {RequiredError}
|
|
8484
|
+
*/
|
|
8485
|
+
playerControllerDelete: async (id, options = {}) => {
|
|
8486
|
+
// verify required parameter 'id' is not null or undefined
|
|
8487
|
+
assertParamExists('playerControllerDelete', 'id', id);
|
|
8488
|
+
const localVarPath = `/player/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
8489
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8490
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8491
|
+
let baseOptions;
|
|
8492
|
+
if (configuration) {
|
|
8493
|
+
baseOptions = configuration.baseOptions;
|
|
8494
|
+
}
|
|
8495
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
8496
|
+
const localVarHeaderParameter = {};
|
|
8497
|
+
const localVarQueryParameter = {};
|
|
8498
|
+
// authentication domainAuth required
|
|
8499
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8500
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8501
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
8502
|
+
return {
|
|
8503
|
+
url: toPathString(localVarUrlObj),
|
|
8504
|
+
options: localVarRequestOptions,
|
|
8505
|
+
};
|
|
8506
|
+
},
|
|
8088
8507
|
/**
|
|
8089
8508
|
* Get the player that is currently authenticated. This is a low-privilege route, returning limited data.<br> OperationId: `PlayerControllerGetMe`
|
|
8090
8509
|
* @summary Get current player
|
|
@@ -8296,6 +8715,19 @@ export const PlayerApiFp = function (configuration) {
|
|
|
8296
8715
|
const localVarOperationServerBasePath = operationServerMap['PlayerApi.playerControllerAssignRole']?.[localVarOperationServerIndex]?.url;
|
|
8297
8716
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8298
8717
|
},
|
|
8718
|
+
/**
|
|
8719
|
+
* Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerControllerDelete`
|
|
8720
|
+
* @summary Delete
|
|
8721
|
+
* @param {string} id
|
|
8722
|
+
* @param {*} [options] Override http request option.
|
|
8723
|
+
* @throws {RequiredError}
|
|
8724
|
+
*/
|
|
8725
|
+
async playerControllerDelete(id, options) {
|
|
8726
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.playerControllerDelete(id, options);
|
|
8727
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8728
|
+
const localVarOperationServerBasePath = operationServerMap['PlayerApi.playerControllerDelete']?.[localVarOperationServerIndex]?.url;
|
|
8729
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8730
|
+
},
|
|
8299
8731
|
/**
|
|
8300
8732
|
* Get the player that is currently authenticated. This is a low-privilege route, returning limited data.<br> OperationId: `PlayerControllerGetMe`
|
|
8301
8733
|
* @summary Get current player
|
|
@@ -8423,6 +8855,16 @@ export const PlayerApiFactory = function (configuration, basePath, axios) {
|
|
|
8423
8855
|
.playerControllerAssignRole(id, roleId, playerRoleAssignChangeDTO, options)
|
|
8424
8856
|
.then((request) => request(axios, basePath));
|
|
8425
8857
|
},
|
|
8858
|
+
/**
|
|
8859
|
+
* Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerControllerDelete`
|
|
8860
|
+
* @summary Delete
|
|
8861
|
+
* @param {string} id
|
|
8862
|
+
* @param {*} [options] Override http request option.
|
|
8863
|
+
* @throws {RequiredError}
|
|
8864
|
+
*/
|
|
8865
|
+
playerControllerDelete(id, options) {
|
|
8866
|
+
return localVarFp.playerControllerDelete(id, options).then((request) => request(axios, basePath));
|
|
8867
|
+
},
|
|
8426
8868
|
/**
|
|
8427
8869
|
* Get the player that is currently authenticated. This is a low-privilege route, returning limited data.<br> OperationId: `PlayerControllerGetMe`
|
|
8428
8870
|
* @summary Get current player
|
|
@@ -8558,6 +9000,19 @@ export class PlayerApi extends BaseAPI {
|
|
|
8558
9000
|
.playerControllerAssignRole(id, roleId, playerRoleAssignChangeDTO, options)
|
|
8559
9001
|
.then((request) => request(this.axios, this.basePath));
|
|
8560
9002
|
}
|
|
9003
|
+
/**
|
|
9004
|
+
* Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerControllerDelete`
|
|
9005
|
+
* @summary Delete
|
|
9006
|
+
* @param {string} id
|
|
9007
|
+
* @param {*} [options] Override http request option.
|
|
9008
|
+
* @throws {RequiredError}
|
|
9009
|
+
* @memberof PlayerApi
|
|
9010
|
+
*/
|
|
9011
|
+
playerControllerDelete(id, options) {
|
|
9012
|
+
return PlayerApiFp(this.configuration)
|
|
9013
|
+
.playerControllerDelete(id, options)
|
|
9014
|
+
.then((request) => request(this.axios, this.basePath));
|
|
9015
|
+
}
|
|
8561
9016
|
/**
|
|
8562
9017
|
* Get the player that is currently authenticated. This is a low-privilege route, returning limited data.<br> OperationId: `PlayerControllerGetMe`
|
|
8563
9018
|
* @summary Get current player
|
|
@@ -8692,6 +9147,40 @@ export const PlayerOnGameServerApiAxiosParamCreator = function (configuration) {
|
|
|
8692
9147
|
options: localVarRequestOptions,
|
|
8693
9148
|
};
|
|
8694
9149
|
},
|
|
9150
|
+
/**
|
|
9151
|
+
* Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerDelete`
|
|
9152
|
+
* @summary Delete
|
|
9153
|
+
* @param {string} gameServerId
|
|
9154
|
+
* @param {string} playerId
|
|
9155
|
+
* @param {*} [options] Override http request option.
|
|
9156
|
+
* @throws {RequiredError}
|
|
9157
|
+
*/
|
|
9158
|
+
playerOnGameServerControllerDelete: async (gameServerId, playerId, options = {}) => {
|
|
9159
|
+
// verify required parameter 'gameServerId' is not null or undefined
|
|
9160
|
+
assertParamExists('playerOnGameServerControllerDelete', 'gameServerId', gameServerId);
|
|
9161
|
+
// verify required parameter 'playerId' is not null or undefined
|
|
9162
|
+
assertParamExists('playerOnGameServerControllerDelete', 'playerId', playerId);
|
|
9163
|
+
const localVarPath = `/gameserver/{gameServerId}/player/{playerId}`
|
|
9164
|
+
.replace(`{${'gameServerId'}}`, encodeURIComponent(String(gameServerId)))
|
|
9165
|
+
.replace(`{${'playerId'}}`, encodeURIComponent(String(playerId)));
|
|
9166
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9167
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9168
|
+
let baseOptions;
|
|
9169
|
+
if (configuration) {
|
|
9170
|
+
baseOptions = configuration.baseOptions;
|
|
9171
|
+
}
|
|
9172
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
9173
|
+
const localVarHeaderParameter = {};
|
|
9174
|
+
const localVarQueryParameter = {};
|
|
9175
|
+
// authentication domainAuth required
|
|
9176
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9177
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9178
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
9179
|
+
return {
|
|
9180
|
+
url: toPathString(localVarUrlObj),
|
|
9181
|
+
options: localVarRequestOptions,
|
|
9182
|
+
};
|
|
9183
|
+
},
|
|
8695
9184
|
/**
|
|
8696
9185
|
* Required permissions: `READ_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerGetOne`
|
|
8697
9186
|
* @summary Get one
|
|
@@ -8872,6 +9361,21 @@ export const PlayerOnGameServerApiFp = function (configuration) {
|
|
|
8872
9361
|
const localVarOperationServerBasePath = operationServerMap['PlayerOnGameServerApi.playerOnGameServerControllerDeductCurrency']?.[localVarOperationServerIndex]?.url;
|
|
8873
9362
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8874
9363
|
},
|
|
9364
|
+
/**
|
|
9365
|
+
* Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerDelete`
|
|
9366
|
+
* @summary Delete
|
|
9367
|
+
* @param {string} gameServerId
|
|
9368
|
+
* @param {string} playerId
|
|
9369
|
+
* @param {*} [options] Override http request option.
|
|
9370
|
+
* @throws {RequiredError}
|
|
9371
|
+
*/
|
|
9372
|
+
async playerOnGameServerControllerDelete(gameServerId, playerId, options) {
|
|
9373
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.playerOnGameServerControllerDelete(gameServerId, playerId, options);
|
|
9374
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9375
|
+
const localVarOperationServerBasePath = operationServerMap['PlayerOnGameServerApi.playerOnGameServerControllerDelete']?.[localVarOperationServerIndex]
|
|
9376
|
+
?.url;
|
|
9377
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9378
|
+
},
|
|
8875
9379
|
/**
|
|
8876
9380
|
* Required permissions: `READ_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerGetOne`
|
|
8877
9381
|
* @summary Get one
|
|
@@ -8969,6 +9473,19 @@ export const PlayerOnGameServerApiFactory = function (configuration, basePath, a
|
|
|
8969
9473
|
.playerOnGameServerControllerDeductCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options)
|
|
8970
9474
|
.then((request) => request(axios, basePath));
|
|
8971
9475
|
},
|
|
9476
|
+
/**
|
|
9477
|
+
* Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerDelete`
|
|
9478
|
+
* @summary Delete
|
|
9479
|
+
* @param {string} gameServerId
|
|
9480
|
+
* @param {string} playerId
|
|
9481
|
+
* @param {*} [options] Override http request option.
|
|
9482
|
+
* @throws {RequiredError}
|
|
9483
|
+
*/
|
|
9484
|
+
playerOnGameServerControllerDelete(gameServerId, playerId, options) {
|
|
9485
|
+
return localVarFp
|
|
9486
|
+
.playerOnGameServerControllerDelete(gameServerId, playerId, options)
|
|
9487
|
+
.then((request) => request(axios, basePath));
|
|
9488
|
+
},
|
|
8972
9489
|
/**
|
|
8973
9490
|
* Required permissions: `READ_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerGetOne`
|
|
8974
9491
|
* @summary Get one
|
|
@@ -9062,6 +9579,20 @@ export class PlayerOnGameServerApi extends BaseAPI {
|
|
|
9062
9579
|
.playerOnGameServerControllerDeductCurrency(gameServerId, playerId, playerOnGameServerSetCurrencyInputDTO, options)
|
|
9063
9580
|
.then((request) => request(this.axios, this.basePath));
|
|
9064
9581
|
}
|
|
9582
|
+
/**
|
|
9583
|
+
* Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerDelete`
|
|
9584
|
+
* @summary Delete
|
|
9585
|
+
* @param {string} gameServerId
|
|
9586
|
+
* @param {string} playerId
|
|
9587
|
+
* @param {*} [options] Override http request option.
|
|
9588
|
+
* @throws {RequiredError}
|
|
9589
|
+
* @memberof PlayerOnGameServerApi
|
|
9590
|
+
*/
|
|
9591
|
+
playerOnGameServerControllerDelete(gameServerId, playerId, options) {
|
|
9592
|
+
return PlayerOnGameServerApiFp(this.configuration)
|
|
9593
|
+
.playerOnGameServerControllerDelete(gameServerId, playerId, options)
|
|
9594
|
+
.then((request) => request(this.axios, this.basePath));
|
|
9595
|
+
}
|
|
9065
9596
|
/**
|
|
9066
9597
|
* Required permissions: `READ_PLAYERS`<br> OperationId: `PlayerOnGameServerControllerGetOne`
|
|
9067
9598
|
* @summary Get one
|
|
@@ -9884,6 +10415,8 @@ export const SettingsControllerGetKeysEnum = {
|
|
|
9884
10415
|
DeveloperMode: 'developerMode',
|
|
9885
10416
|
MessagePrefix: 'messagePrefix',
|
|
9886
10417
|
DomainName: 'domainName',
|
|
10418
|
+
DiscordRoleSyncEnabled: 'discordRoleSyncEnabled',
|
|
10419
|
+
DiscordRoleSyncPreferDiscord: 'discordRoleSyncPreferDiscord',
|
|
9887
10420
|
};
|
|
9888
10421
|
/**
|
|
9889
10422
|
* ShopCategoryApi - axios parameter creator
|
|
@@ -9952,10 +10485,11 @@ export const ShopCategoryApiAxiosParamCreator = function (configuration) {
|
|
|
9952
10485
|
/**
|
|
9953
10486
|
* Get all shop categories<br> OperationId: `ShopCategoryControllerGetAll`
|
|
9954
10487
|
* @summary Get all
|
|
10488
|
+
* @param {string} [gameServerId]
|
|
9955
10489
|
* @param {*} [options] Override http request option.
|
|
9956
10490
|
* @throws {RequiredError}
|
|
9957
10491
|
*/
|
|
9958
|
-
shopCategoryControllerGetAll: async (options = {}) => {
|
|
10492
|
+
shopCategoryControllerGetAll: async (gameServerId, options = {}) => {
|
|
9959
10493
|
const localVarPath = `/shop/category/`;
|
|
9960
10494
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9961
10495
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -9967,6 +10501,9 @@ export const ShopCategoryApiAxiosParamCreator = function (configuration) {
|
|
|
9967
10501
|
const localVarHeaderParameter = {};
|
|
9968
10502
|
const localVarQueryParameter = {};
|
|
9969
10503
|
// authentication domainAuth required
|
|
10504
|
+
if (gameServerId !== undefined) {
|
|
10505
|
+
localVarQueryParameter['gameServerId'] = gameServerId;
|
|
10506
|
+
}
|
|
9970
10507
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9971
10508
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9972
10509
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -9979,10 +10516,11 @@ export const ShopCategoryApiAxiosParamCreator = function (configuration) {
|
|
|
9979
10516
|
* Get a shop category by id<br> OperationId: `ShopCategoryControllerGetOne`
|
|
9980
10517
|
* @summary Get one
|
|
9981
10518
|
* @param {string} id
|
|
10519
|
+
* @param {string} [gameServerId]
|
|
9982
10520
|
* @param {*} [options] Override http request option.
|
|
9983
10521
|
* @throws {RequiredError}
|
|
9984
10522
|
*/
|
|
9985
|
-
shopCategoryControllerGetOne: async (id, options = {}) => {
|
|
10523
|
+
shopCategoryControllerGetOne: async (id, gameServerId, options = {}) => {
|
|
9986
10524
|
// verify required parameter 'id' is not null or undefined
|
|
9987
10525
|
assertParamExists('shopCategoryControllerGetOne', 'id', id);
|
|
9988
10526
|
const localVarPath = `/shop/category/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -9996,6 +10534,9 @@ export const ShopCategoryApiAxiosParamCreator = function (configuration) {
|
|
|
9996
10534
|
const localVarHeaderParameter = {};
|
|
9997
10535
|
const localVarQueryParameter = {};
|
|
9998
10536
|
// authentication domainAuth required
|
|
10537
|
+
if (gameServerId !== undefined) {
|
|
10538
|
+
localVarQueryParameter['gameServerId'] = gameServerId;
|
|
10539
|
+
}
|
|
9999
10540
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10000
10541
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10001
10542
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -10164,11 +10705,12 @@ export const ShopCategoryApiFp = function (configuration) {
|
|
|
10164
10705
|
/**
|
|
10165
10706
|
* Get all shop categories<br> OperationId: `ShopCategoryControllerGetAll`
|
|
10166
10707
|
* @summary Get all
|
|
10708
|
+
* @param {string} [gameServerId]
|
|
10167
10709
|
* @param {*} [options] Override http request option.
|
|
10168
10710
|
* @throws {RequiredError}
|
|
10169
10711
|
*/
|
|
10170
|
-
async shopCategoryControllerGetAll(options) {
|
|
10171
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.shopCategoryControllerGetAll(options);
|
|
10712
|
+
async shopCategoryControllerGetAll(gameServerId, options) {
|
|
10713
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.shopCategoryControllerGetAll(gameServerId, options);
|
|
10172
10714
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10173
10715
|
const localVarOperationServerBasePath = operationServerMap['ShopCategoryApi.shopCategoryControllerGetAll']?.[localVarOperationServerIndex]?.url;
|
|
10174
10716
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -10177,11 +10719,12 @@ export const ShopCategoryApiFp = function (configuration) {
|
|
|
10177
10719
|
* Get a shop category by id<br> OperationId: `ShopCategoryControllerGetOne`
|
|
10178
10720
|
* @summary Get one
|
|
10179
10721
|
* @param {string} id
|
|
10722
|
+
* @param {string} [gameServerId]
|
|
10180
10723
|
* @param {*} [options] Override http request option.
|
|
10181
10724
|
* @throws {RequiredError}
|
|
10182
10725
|
*/
|
|
10183
|
-
async shopCategoryControllerGetOne(id, options) {
|
|
10184
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.shopCategoryControllerGetOne(id, options);
|
|
10726
|
+
async shopCategoryControllerGetOne(id, gameServerId, options) {
|
|
10727
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.shopCategoryControllerGetOne(id, gameServerId, options);
|
|
10185
10728
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10186
10729
|
const localVarOperationServerBasePath = operationServerMap['ShopCategoryApi.shopCategoryControllerGetOne']?.[localVarOperationServerIndex]?.url;
|
|
10187
10730
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -10276,21 +10819,25 @@ export const ShopCategoryApiFactory = function (configuration, basePath, axios)
|
|
|
10276
10819
|
/**
|
|
10277
10820
|
* Get all shop categories<br> OperationId: `ShopCategoryControllerGetAll`
|
|
10278
10821
|
* @summary Get all
|
|
10822
|
+
* @param {string} [gameServerId]
|
|
10279
10823
|
* @param {*} [options] Override http request option.
|
|
10280
10824
|
* @throws {RequiredError}
|
|
10281
10825
|
*/
|
|
10282
|
-
shopCategoryControllerGetAll(options) {
|
|
10283
|
-
return localVarFp.shopCategoryControllerGetAll(options).then((request) => request(axios, basePath));
|
|
10826
|
+
shopCategoryControllerGetAll(gameServerId, options) {
|
|
10827
|
+
return localVarFp.shopCategoryControllerGetAll(gameServerId, options).then((request) => request(axios, basePath));
|
|
10284
10828
|
},
|
|
10285
10829
|
/**
|
|
10286
10830
|
* Get a shop category by id<br> OperationId: `ShopCategoryControllerGetOne`
|
|
10287
10831
|
* @summary Get one
|
|
10288
10832
|
* @param {string} id
|
|
10833
|
+
* @param {string} [gameServerId]
|
|
10289
10834
|
* @param {*} [options] Override http request option.
|
|
10290
10835
|
* @throws {RequiredError}
|
|
10291
10836
|
*/
|
|
10292
|
-
shopCategoryControllerGetOne(id, options) {
|
|
10293
|
-
return localVarFp
|
|
10837
|
+
shopCategoryControllerGetOne(id, gameServerId, options) {
|
|
10838
|
+
return localVarFp
|
|
10839
|
+
.shopCategoryControllerGetOne(id, gameServerId, options)
|
|
10840
|
+
.then((request) => request(axios, basePath));
|
|
10294
10841
|
},
|
|
10295
10842
|
/**
|
|
10296
10843
|
* Move a shop category to a different parent Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `ShopCategoryControllerMove`
|
|
@@ -10378,26 +10925,28 @@ export class ShopCategoryApi extends BaseAPI {
|
|
|
10378
10925
|
/**
|
|
10379
10926
|
* Get all shop categories<br> OperationId: `ShopCategoryControllerGetAll`
|
|
10380
10927
|
* @summary Get all
|
|
10928
|
+
* @param {string} [gameServerId]
|
|
10381
10929
|
* @param {*} [options] Override http request option.
|
|
10382
10930
|
* @throws {RequiredError}
|
|
10383
10931
|
* @memberof ShopCategoryApi
|
|
10384
10932
|
*/
|
|
10385
|
-
shopCategoryControllerGetAll(options) {
|
|
10933
|
+
shopCategoryControllerGetAll(gameServerId, options) {
|
|
10386
10934
|
return ShopCategoryApiFp(this.configuration)
|
|
10387
|
-
.shopCategoryControllerGetAll(options)
|
|
10935
|
+
.shopCategoryControllerGetAll(gameServerId, options)
|
|
10388
10936
|
.then((request) => request(this.axios, this.basePath));
|
|
10389
10937
|
}
|
|
10390
10938
|
/**
|
|
10391
10939
|
* Get a shop category by id<br> OperationId: `ShopCategoryControllerGetOne`
|
|
10392
10940
|
* @summary Get one
|
|
10393
10941
|
* @param {string} id
|
|
10942
|
+
* @param {string} [gameServerId]
|
|
10394
10943
|
* @param {*} [options] Override http request option.
|
|
10395
10944
|
* @throws {RequiredError}
|
|
10396
10945
|
* @memberof ShopCategoryApi
|
|
10397
10946
|
*/
|
|
10398
|
-
shopCategoryControllerGetOne(id, options) {
|
|
10947
|
+
shopCategoryControllerGetOne(id, gameServerId, options) {
|
|
10399
10948
|
return ShopCategoryApiFp(this.configuration)
|
|
10400
|
-
.shopCategoryControllerGetOne(id, options)
|
|
10949
|
+
.shopCategoryControllerGetOne(id, gameServerId, options)
|
|
10401
10950
|
.then((request) => request(this.axios, this.basePath));
|
|
10402
10951
|
}
|
|
10403
10952
|
/**
|
|
@@ -11958,8 +12507,10 @@ export const StatsControllerGetEventsCountEventNameEnum = {
|
|
|
11958
12507
|
CronjobExecuted: 'cronjob-executed',
|
|
11959
12508
|
CurrencyAdded: 'currency-added',
|
|
11960
12509
|
CurrencyDeducted: 'currency-deducted',
|
|
12510
|
+
CurrencyResetAll: 'currency-reset-all',
|
|
11961
12511
|
SettingsSet: 'settings-set',
|
|
11962
12512
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
12513
|
+
PlayerNewNameDetected: 'player-new-name-detected',
|
|
11963
12514
|
ServerStatusChanged: 'server-status-changed',
|
|
11964
12515
|
ModuleCreated: 'module-created',
|
|
11965
12516
|
ModuleUpdated: 'module-updated',
|
|
@@ -11979,6 +12530,7 @@ export const StatsControllerGetEventsCountEventNameEnum = {
|
|
|
11979
12530
|
GameserverDeleted: 'gameserver-deleted',
|
|
11980
12531
|
PlayerBanned: 'player-banned',
|
|
11981
12532
|
PlayerUnbanned: 'player-unbanned',
|
|
12533
|
+
PlayerDeleted: 'player-deleted',
|
|
11982
12534
|
PlayerConnected: 'player-connected',
|
|
11983
12535
|
PlayerDisconnected: 'player-disconnected',
|
|
11984
12536
|
ChatMessage: 'chat-message',
|