@takaro/apiclient 0.0.0-dev.8c1ae27 → 0.0.0-dev.8d097ab
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/.source-hash +1 -1
- package/dist/generated/api.d.ts +7336 -1860
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/generated/api.js +2815 -655
- package/dist/generated/api.js.map +1 -1
- package/dist/generated/base.d.ts.map +1 -1
- package/dist/generated/base.js.map +1 -1
- package/dist/generated/common.d.ts.map +1 -1
- package/dist/generated/common.js.map +1 -1
- package/dist/generated/configuration.d.ts.map +1 -1
- package/dist/generated/configuration.js.map +1 -1
- package/dist/generated-management/api.d.ts +9986 -5959
- package/dist/generated-management/api.d.ts.map +1 -1
- package/dist/generated-management/api.js +1444 -118
- package/dist/generated-management/api.js.map +1 -1
- package/dist/generated-management/base.d.ts.map +1 -1
- package/dist/generated-management/base.js.map +1 -1
- package/dist/generated-management/common.d.ts.map +1 -1
- package/dist/generated-management/common.js.map +1 -1
- package/dist/generated-management/configuration.d.ts.map +1 -1
- package/dist/generated-management/configuration.js.map +1 -1
- package/dist/lib/adminClient.d.ts +3 -1
- package/dist/lib/adminClient.d.ts.map +1 -1
- package/dist/lib/adminClient.js +7 -1
- package/dist/lib/adminClient.js.map +1 -1
- package/dist/lib/baseClient.d.ts.map +1 -1
- package/dist/lib/client.d.ts +3 -1
- package/dist/lib/client.d.ts.map +1 -1
- package/dist/lib/client.js +22 -11
- package/dist/lib/client.js.map +1 -1
- package/dist/lib/distributorClient.d.ts.map +1 -1
- package/dist/lib/staffClient.d.ts +3 -1
- package/dist/lib/staffClient.d.ts.map +1 -1
- package/dist/lib/staffClient.js +5 -1
- package/dist/lib/staffClient.js.map +1 -1
- package/dist/main.d.ts +3 -3
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/package.json +5 -4
|
@@ -59,15 +59,6 @@ export const ConnectorMigrationOutputDTOLegacyTypeEnum = {
|
|
|
59
59
|
Generic: 'GENERIC',
|
|
60
60
|
Mock: 'MOCK',
|
|
61
61
|
};
|
|
62
|
-
export const DistributorBackedDomainOutputDTOStateEnum = {
|
|
63
|
-
Active: 'ACTIVE',
|
|
64
|
-
Disabled: 'DISABLED',
|
|
65
|
-
Maintenance: 'MAINTENANCE',
|
|
66
|
-
};
|
|
67
|
-
export const DistributorBackedDomainSearchInputDTOSortDirectionEnum = {
|
|
68
|
-
Asc: 'asc',
|
|
69
|
-
Desc: 'desc',
|
|
70
|
-
};
|
|
71
62
|
export const DistributorDomainSearchInputAllowedFiltersStateEnum = {
|
|
72
63
|
Active: 'ACTIVE',
|
|
73
64
|
Disabled: 'DISABLED',
|
|
@@ -98,6 +89,21 @@ export const DomainCreateInputDTOStateEnum = {
|
|
|
98
89
|
Disabled: 'DISABLED',
|
|
99
90
|
Maintenance: 'MAINTENANCE',
|
|
100
91
|
};
|
|
92
|
+
export const DomainLimitOutputDTOSourceEnum = {
|
|
93
|
+
Plan: 'plan',
|
|
94
|
+
Override: 'override',
|
|
95
|
+
Adoption: 'adoption',
|
|
96
|
+
Unmanaged: 'unmanaged',
|
|
97
|
+
};
|
|
98
|
+
export const DomainLimitOverrideChangeOutputDTOActionEnum = {
|
|
99
|
+
Set: 'set',
|
|
100
|
+
Clear: 'clear',
|
|
101
|
+
};
|
|
102
|
+
export const DomainLimitOverrideChangeOutputDTOActorKindEnum = {
|
|
103
|
+
StaffSession: 'staffSession',
|
|
104
|
+
AdminSecret: 'adminSecret',
|
|
105
|
+
System: 'system',
|
|
106
|
+
};
|
|
101
107
|
export const DomainOutputDTOStateEnum = {
|
|
102
108
|
Active: 'ACTIVE',
|
|
103
109
|
Disabled: 'DISABLED',
|
|
@@ -164,6 +170,7 @@ export const EventCreateDTOEventNameEnum = {
|
|
|
164
170
|
SettingsSet: 'settings-set',
|
|
165
171
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
166
172
|
PlayerNewNameDetected: 'player-new-name-detected',
|
|
173
|
+
PlayerIdentityConflict: 'player-identity-conflict',
|
|
167
174
|
ServerStatusChanged: 'server-status-changed',
|
|
168
175
|
ModuleCreated: 'module-created',
|
|
169
176
|
ModuleUpdated: 'module-updated',
|
|
@@ -178,14 +185,18 @@ export const EventCreateDTOEventNameEnum = {
|
|
|
178
185
|
ShopOrderStatusChanged: 'shop-order-status-changed',
|
|
179
186
|
ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
|
|
180
187
|
PlayerLinked: 'player-linked',
|
|
188
|
+
PlayerUnlinked: 'player-unlinked',
|
|
189
|
+
PlayerMerged: 'player-merged',
|
|
181
190
|
GameserverCreated: 'gameserver-created',
|
|
182
191
|
GameserverUpdated: 'gameserver-updated',
|
|
192
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
183
193
|
GameserverDeleted: 'gameserver-deleted',
|
|
184
194
|
PlayerBanned: 'player-banned',
|
|
185
195
|
PlayerUnbanned: 'player-unbanned',
|
|
186
196
|
PlayerDeleted: 'player-deleted',
|
|
187
197
|
ShopActionExecuted: 'shop-action-executed',
|
|
188
198
|
PlayerInventoryChanged: 'player-inventory-changed',
|
|
199
|
+
PlayerLevelChanged: 'player-level-changed',
|
|
189
200
|
EventRateLimited: 'event-rate-limited',
|
|
190
201
|
PlayerSyncSnapshot: 'player-sync-snapshot',
|
|
191
202
|
InviteLinkCreated: 'invite-link-created',
|
|
@@ -207,6 +218,15 @@ export const EventCreateDTOEventNameEnum = {
|
|
|
207
218
|
PlayerDeath: 'player-death',
|
|
208
219
|
EntityKilled: 'entity-killed',
|
|
209
220
|
};
|
|
221
|
+
export const EventInventoryChangedCauseEnum = {
|
|
222
|
+
Pickup: 'pickup',
|
|
223
|
+
Drop: 'drop',
|
|
224
|
+
Craft: 'craft',
|
|
225
|
+
Loot: 'loot',
|
|
226
|
+
Trade: 'trade',
|
|
227
|
+
Death: 'death',
|
|
228
|
+
Other: 'other',
|
|
229
|
+
};
|
|
210
230
|
export const EventOutputDTOEventNameEnum = {
|
|
211
231
|
RoleAssigned: 'role-assigned',
|
|
212
232
|
RoleRemoved: 'role-removed',
|
|
@@ -223,6 +243,7 @@ export const EventOutputDTOEventNameEnum = {
|
|
|
223
243
|
SettingsSet: 'settings-set',
|
|
224
244
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
225
245
|
PlayerNewNameDetected: 'player-new-name-detected',
|
|
246
|
+
PlayerIdentityConflict: 'player-identity-conflict',
|
|
226
247
|
ServerStatusChanged: 'server-status-changed',
|
|
227
248
|
ModuleCreated: 'module-created',
|
|
228
249
|
ModuleUpdated: 'module-updated',
|
|
@@ -237,14 +258,18 @@ export const EventOutputDTOEventNameEnum = {
|
|
|
237
258
|
ShopOrderStatusChanged: 'shop-order-status-changed',
|
|
238
259
|
ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
|
|
239
260
|
PlayerLinked: 'player-linked',
|
|
261
|
+
PlayerUnlinked: 'player-unlinked',
|
|
262
|
+
PlayerMerged: 'player-merged',
|
|
240
263
|
GameserverCreated: 'gameserver-created',
|
|
241
264
|
GameserverUpdated: 'gameserver-updated',
|
|
265
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
242
266
|
GameserverDeleted: 'gameserver-deleted',
|
|
243
267
|
PlayerBanned: 'player-banned',
|
|
244
268
|
PlayerUnbanned: 'player-unbanned',
|
|
245
269
|
PlayerDeleted: 'player-deleted',
|
|
246
270
|
ShopActionExecuted: 'shop-action-executed',
|
|
247
271
|
PlayerInventoryChanged: 'player-inventory-changed',
|
|
272
|
+
PlayerLevelChanged: 'player-level-changed',
|
|
248
273
|
EventRateLimited: 'event-rate-limited',
|
|
249
274
|
PlayerSyncSnapshot: 'player-sync-snapshot',
|
|
250
275
|
InviteLinkCreated: 'invite-link-created',
|
|
@@ -273,6 +298,7 @@ export const FixtureHistoryConflictDTOKindEnum = {
|
|
|
273
298
|
export const FixtureHistoryDeleteInputDTOStoreEnum = {
|
|
274
299
|
Analytics: 'analytics',
|
|
275
300
|
Postgres: 'postgres',
|
|
301
|
+
Tracking: 'tracking',
|
|
276
302
|
};
|
|
277
303
|
export const FixtureHistoryEventDTOEventNameEnum = {
|
|
278
304
|
PlayerConnected: 'player-connected',
|
|
@@ -291,18 +317,44 @@ export const FixtureHistoryOrderDTOStatusEnum = {
|
|
|
291
317
|
Completed: 'COMPLETED',
|
|
292
318
|
Canceled: 'CANCELED',
|
|
293
319
|
};
|
|
320
|
+
export const FixtureHistoryTrackingChangeDTOChangeTypeEnum = {
|
|
321
|
+
Added: 'added',
|
|
322
|
+
Removed: 'removed',
|
|
323
|
+
Changed: 'changed',
|
|
324
|
+
};
|
|
325
|
+
export const FixtureHistoryTrackingChangeDTOCauseEnum = {
|
|
326
|
+
Pickup: 'pickup',
|
|
327
|
+
Drop: 'drop',
|
|
328
|
+
Craft: 'craft',
|
|
329
|
+
Loot: 'loot',
|
|
330
|
+
Trade: 'trade',
|
|
331
|
+
Death: 'death',
|
|
332
|
+
Other: 'other',
|
|
333
|
+
};
|
|
294
334
|
export const GameServerCreateDTOTypeEnum = {
|
|
295
335
|
Sevendaystodie: 'SEVENDAYSTODIE',
|
|
296
336
|
Rust: 'RUST',
|
|
297
337
|
Generic: 'GENERIC',
|
|
298
338
|
Mock: 'MOCK',
|
|
299
339
|
};
|
|
340
|
+
export const GameServerCreateDTONameSourceEnum = {
|
|
341
|
+
Connector: 'connector',
|
|
342
|
+
Operator: 'operator',
|
|
343
|
+
};
|
|
344
|
+
export const GameServerIdentifyInputDTOProtocolVersionEnum = {
|
|
345
|
+
NUMBER_0: 0,
|
|
346
|
+
NUMBER_1: 1,
|
|
347
|
+
};
|
|
300
348
|
export const GameServerOutputDTOTypeEnum = {
|
|
301
349
|
Sevendaystodie: 'SEVENDAYSTODIE',
|
|
302
350
|
Rust: 'RUST',
|
|
303
351
|
Generic: 'GENERIC',
|
|
304
352
|
Mock: 'MOCK',
|
|
305
353
|
};
|
|
354
|
+
export const GameServerOutputDTONameSourceEnum = {
|
|
355
|
+
Connector: 'connector',
|
|
356
|
+
Operator: 'operator',
|
|
357
|
+
};
|
|
306
358
|
export const GameServerTypesOutputDTOTypeEnum = {
|
|
307
359
|
Sevendaystodie: 'SEVENDAYSTODIE',
|
|
308
360
|
Rust: 'RUST',
|
|
@@ -325,14 +377,17 @@ export const GetJobInputDTOTypeEnum = {
|
|
|
325
377
|
SyncItems: 'syncItems',
|
|
326
378
|
SyncEntities: 'syncEntities',
|
|
327
379
|
SyncBans: 'syncBans',
|
|
380
|
+
SyncLocations: 'syncLocations',
|
|
328
381
|
SyncMapImages: 'syncMapImages',
|
|
329
382
|
SyncMapUploads: 'syncMapUploads',
|
|
383
|
+
SyncGameIcons: 'syncGameIcons',
|
|
330
384
|
SyncSteam: 'syncSteam',
|
|
331
385
|
SyncDiscordRoles: 'syncDiscordRoles',
|
|
332
386
|
EmitRateLimitSummary: 'emitRateLimitSummary',
|
|
333
387
|
CleanRevokedApiKeys: 'cleanRevokedApiKeys',
|
|
334
388
|
CleanExecutionClaims: 'cleanExecutionClaims',
|
|
335
389
|
DeleteClickHouseEvents: 'deleteClickHouseEvents',
|
|
390
|
+
RepointClickHouseEvents: 'repointClickHouseEvents',
|
|
336
391
|
CleanConnectorMigrations: 'cleanConnectorMigrations',
|
|
337
392
|
};
|
|
338
393
|
export const HookCreateDTOEventTypeEnum = {
|
|
@@ -358,6 +413,7 @@ export const HookCreateDTOEventTypeEnum = {
|
|
|
358
413
|
SettingsSet: 'settings-set',
|
|
359
414
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
360
415
|
PlayerNewNameDetected: 'player-new-name-detected',
|
|
416
|
+
PlayerIdentityConflict: 'player-identity-conflict',
|
|
361
417
|
ServerStatusChanged: 'server-status-changed',
|
|
362
418
|
ModuleCreated: 'module-created',
|
|
363
419
|
ModuleUpdated: 'module-updated',
|
|
@@ -372,14 +428,18 @@ export const HookCreateDTOEventTypeEnum = {
|
|
|
372
428
|
ShopOrderStatusChanged: 'shop-order-status-changed',
|
|
373
429
|
ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
|
|
374
430
|
PlayerLinked: 'player-linked',
|
|
431
|
+
PlayerUnlinked: 'player-unlinked',
|
|
432
|
+
PlayerMerged: 'player-merged',
|
|
375
433
|
GameserverCreated: 'gameserver-created',
|
|
376
434
|
GameserverUpdated: 'gameserver-updated',
|
|
435
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
377
436
|
GameserverDeleted: 'gameserver-deleted',
|
|
378
437
|
PlayerBanned: 'player-banned',
|
|
379
438
|
PlayerUnbanned: 'player-unbanned',
|
|
380
439
|
PlayerDeleted: 'player-deleted',
|
|
381
440
|
ShopActionExecuted: 'shop-action-executed',
|
|
382
441
|
PlayerInventoryChanged: 'player-inventory-changed',
|
|
442
|
+
PlayerLevelChanged: 'player-level-changed',
|
|
383
443
|
EventRateLimited: 'event-rate-limited',
|
|
384
444
|
PlayerSyncSnapshot: 'player-sync-snapshot',
|
|
385
445
|
InviteLinkCreated: 'invite-link-created',
|
|
@@ -419,6 +479,7 @@ export const HookOutputDTOEventTypeEnum = {
|
|
|
419
479
|
SettingsSet: 'settings-set',
|
|
420
480
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
421
481
|
PlayerNewNameDetected: 'player-new-name-detected',
|
|
482
|
+
PlayerIdentityConflict: 'player-identity-conflict',
|
|
422
483
|
ServerStatusChanged: 'server-status-changed',
|
|
423
484
|
ModuleCreated: 'module-created',
|
|
424
485
|
ModuleUpdated: 'module-updated',
|
|
@@ -433,14 +494,18 @@ export const HookOutputDTOEventTypeEnum = {
|
|
|
433
494
|
ShopOrderStatusChanged: 'shop-order-status-changed',
|
|
434
495
|
ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
|
|
435
496
|
PlayerLinked: 'player-linked',
|
|
497
|
+
PlayerUnlinked: 'player-unlinked',
|
|
498
|
+
PlayerMerged: 'player-merged',
|
|
436
499
|
GameserverCreated: 'gameserver-created',
|
|
437
500
|
GameserverUpdated: 'gameserver-updated',
|
|
501
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
438
502
|
GameserverDeleted: 'gameserver-deleted',
|
|
439
503
|
PlayerBanned: 'player-banned',
|
|
440
504
|
PlayerUnbanned: 'player-unbanned',
|
|
441
505
|
PlayerDeleted: 'player-deleted',
|
|
442
506
|
ShopActionExecuted: 'shop-action-executed',
|
|
443
507
|
PlayerInventoryChanged: 'player-inventory-changed',
|
|
508
|
+
PlayerLevelChanged: 'player-level-changed',
|
|
444
509
|
EventRateLimited: 'event-rate-limited',
|
|
445
510
|
PlayerSyncSnapshot: 'player-sync-snapshot',
|
|
446
511
|
InviteLinkCreated: 'invite-link-created',
|
|
@@ -480,6 +545,7 @@ export const HookTriggerDTOEventTypeEnum = {
|
|
|
480
545
|
SettingsSet: 'settings-set',
|
|
481
546
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
482
547
|
PlayerNewNameDetected: 'player-new-name-detected',
|
|
548
|
+
PlayerIdentityConflict: 'player-identity-conflict',
|
|
483
549
|
ServerStatusChanged: 'server-status-changed',
|
|
484
550
|
ModuleCreated: 'module-created',
|
|
485
551
|
ModuleUpdated: 'module-updated',
|
|
@@ -494,14 +560,18 @@ export const HookTriggerDTOEventTypeEnum = {
|
|
|
494
560
|
ShopOrderStatusChanged: 'shop-order-status-changed',
|
|
495
561
|
ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
|
|
496
562
|
PlayerLinked: 'player-linked',
|
|
563
|
+
PlayerUnlinked: 'player-unlinked',
|
|
564
|
+
PlayerMerged: 'player-merged',
|
|
497
565
|
GameserverCreated: 'gameserver-created',
|
|
498
566
|
GameserverUpdated: 'gameserver-updated',
|
|
567
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
499
568
|
GameserverDeleted: 'gameserver-deleted',
|
|
500
569
|
PlayerBanned: 'player-banned',
|
|
501
570
|
PlayerUnbanned: 'player-unbanned',
|
|
502
571
|
PlayerDeleted: 'player-deleted',
|
|
503
572
|
ShopActionExecuted: 'shop-action-executed',
|
|
504
573
|
PlayerInventoryChanged: 'player-inventory-changed',
|
|
574
|
+
PlayerLevelChanged: 'player-level-changed',
|
|
505
575
|
EventRateLimited: 'event-rate-limited',
|
|
506
576
|
PlayerSyncSnapshot: 'player-sync-snapshot',
|
|
507
577
|
InviteLinkCreated: 'invite-link-created',
|
|
@@ -541,6 +611,7 @@ export const HookUpdateDTOEventTypeEnum = {
|
|
|
541
611
|
SettingsSet: 'settings-set',
|
|
542
612
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
543
613
|
PlayerNewNameDetected: 'player-new-name-detected',
|
|
614
|
+
PlayerIdentityConflict: 'player-identity-conflict',
|
|
544
615
|
ServerStatusChanged: 'server-status-changed',
|
|
545
616
|
ModuleCreated: 'module-created',
|
|
546
617
|
ModuleUpdated: 'module-updated',
|
|
@@ -555,14 +626,18 @@ export const HookUpdateDTOEventTypeEnum = {
|
|
|
555
626
|
ShopOrderStatusChanged: 'shop-order-status-changed',
|
|
556
627
|
ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
|
|
557
628
|
PlayerLinked: 'player-linked',
|
|
629
|
+
PlayerUnlinked: 'player-unlinked',
|
|
630
|
+
PlayerMerged: 'player-merged',
|
|
558
631
|
GameserverCreated: 'gameserver-created',
|
|
559
632
|
GameserverUpdated: 'gameserver-updated',
|
|
633
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
560
634
|
GameserverDeleted: 'gameserver-deleted',
|
|
561
635
|
PlayerBanned: 'player-banned',
|
|
562
636
|
PlayerUnbanned: 'player-unbanned',
|
|
563
637
|
PlayerDeleted: 'player-deleted',
|
|
564
638
|
ShopActionExecuted: 'shop-action-executed',
|
|
565
639
|
PlayerInventoryChanged: 'player-inventory-changed',
|
|
640
|
+
PlayerLevelChanged: 'player-level-changed',
|
|
566
641
|
EventRateLimited: 'event-rate-limited',
|
|
567
642
|
PlayerSyncSnapshot: 'player-sync-snapshot',
|
|
568
643
|
InviteLinkCreated: 'invite-link-created',
|
|
@@ -607,6 +682,7 @@ export const IHookEventTypeEnum = {
|
|
|
607
682
|
SettingsSet: 'settings-set',
|
|
608
683
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
609
684
|
PlayerNewNameDetected: 'player-new-name-detected',
|
|
685
|
+
PlayerIdentityConflict: 'player-identity-conflict',
|
|
610
686
|
ServerStatusChanged: 'server-status-changed',
|
|
611
687
|
ModuleCreated: 'module-created',
|
|
612
688
|
ModuleUpdated: 'module-updated',
|
|
@@ -621,14 +697,18 @@ export const IHookEventTypeEnum = {
|
|
|
621
697
|
ShopOrderStatusChanged: 'shop-order-status-changed',
|
|
622
698
|
ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
|
|
623
699
|
PlayerLinked: 'player-linked',
|
|
700
|
+
PlayerUnlinked: 'player-unlinked',
|
|
701
|
+
PlayerMerged: 'player-merged',
|
|
624
702
|
GameserverCreated: 'gameserver-created',
|
|
625
703
|
GameserverUpdated: 'gameserver-updated',
|
|
704
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
626
705
|
GameserverDeleted: 'gameserver-deleted',
|
|
627
706
|
PlayerBanned: 'player-banned',
|
|
628
707
|
PlayerUnbanned: 'player-unbanned',
|
|
629
708
|
PlayerDeleted: 'player-deleted',
|
|
630
709
|
ShopActionExecuted: 'shop-action-executed',
|
|
631
710
|
PlayerInventoryChanged: 'player-inventory-changed',
|
|
711
|
+
PlayerLevelChanged: 'player-level-changed',
|
|
632
712
|
EventRateLimited: 'event-rate-limited',
|
|
633
713
|
PlayerSyncSnapshot: 'player-sync-snapshot',
|
|
634
714
|
InviteLinkCreated: 'invite-link-created',
|
|
@@ -649,6 +729,29 @@ export const ITakaroQuerySortDirectionEnum = {
|
|
|
649
729
|
Asc: 'asc',
|
|
650
730
|
Desc: 'desc',
|
|
651
731
|
};
|
|
732
|
+
export const InventoryChangeCounterpartDTOKindEnum = {
|
|
733
|
+
Container: 'container',
|
|
734
|
+
Player: 'player',
|
|
735
|
+
};
|
|
736
|
+
export const InventoryChangeDTOChangeTypeEnum = {
|
|
737
|
+
Added: 'added',
|
|
738
|
+
Removed: 'removed',
|
|
739
|
+
Changed: 'changed',
|
|
740
|
+
};
|
|
741
|
+
export const InventoryChangeDTOCauseEnum = {
|
|
742
|
+
Pickup: 'pickup',
|
|
743
|
+
Drop: 'drop',
|
|
744
|
+
Craft: 'craft',
|
|
745
|
+
Loot: 'loot',
|
|
746
|
+
Trade: 'trade',
|
|
747
|
+
Death: 'death',
|
|
748
|
+
Other: 'other',
|
|
749
|
+
Unknown: 'unknown',
|
|
750
|
+
};
|
|
751
|
+
export const InventoryCounterpartDTOKindEnum = {
|
|
752
|
+
Container: 'container',
|
|
753
|
+
Player: 'player',
|
|
754
|
+
};
|
|
652
755
|
export const InviteLinkCreateResultDTOStatusEnum = {
|
|
653
756
|
Active: 'ACTIVE',
|
|
654
757
|
Revoked: 'REVOKED',
|
|
@@ -754,12 +857,18 @@ export const PERMISSIONS = {
|
|
|
754
857
|
ViewDiscordInfo: 'VIEW_DISCORD_INFO',
|
|
755
858
|
SendDiscordMessage: 'SEND_DISCORD_MESSAGE',
|
|
756
859
|
ManageApiKeys: 'MANAGE_API_KEYS',
|
|
860
|
+
ReadMap: 'READ_MAP',
|
|
861
|
+
ReadTracking: 'READ_TRACKING',
|
|
757
862
|
};
|
|
758
|
-
export const
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
863
|
+
export const PlanChangeOutputDTOActionEnum = {
|
|
864
|
+
Create: 'create',
|
|
865
|
+
Update: 'update',
|
|
866
|
+
Archive: 'archive',
|
|
867
|
+
};
|
|
868
|
+
export const PlanChangeOutputDTOActorKindEnum = {
|
|
869
|
+
StaffSession: 'staffSession',
|
|
870
|
+
AdminSecret: 'adminSecret',
|
|
871
|
+
System: 'system',
|
|
763
872
|
};
|
|
764
873
|
export const PlayerOnGameServerSearchInputDTOExtendEnum = {
|
|
765
874
|
GameServer: 'gameServer',
|
|
@@ -783,6 +892,15 @@ export const PlayerSearchInputDTOSortDirectionEnum = {
|
|
|
783
892
|
Asc: 'asc',
|
|
784
893
|
Desc: 'desc',
|
|
785
894
|
};
|
|
895
|
+
export const PogProgressionOutputDTOSourceEnum = {
|
|
896
|
+
Server: 'server',
|
|
897
|
+
ClientReported: 'client-reported',
|
|
898
|
+
};
|
|
899
|
+
export const PositionAreaShapeDTOTypeEnum = {
|
|
900
|
+
Circle: 'circle',
|
|
901
|
+
Rectangle: 'rectangle',
|
|
902
|
+
Polygon: 'polygon',
|
|
903
|
+
};
|
|
786
904
|
export const RecentOrderDTOStatusEnum = {
|
|
787
905
|
Completed: 'COMPLETED',
|
|
788
906
|
Paid: 'PAID',
|
|
@@ -911,6 +1029,12 @@ export const StorefrontDomainOutputDTOCustomDomainStateEnum = {
|
|
|
911
1029
|
Verified: 'VERIFIED',
|
|
912
1030
|
Failed: 'FAILED',
|
|
913
1031
|
};
|
|
1032
|
+
export const StripePriceDTOIntervalEnum = {
|
|
1033
|
+
Day: 'day',
|
|
1034
|
+
Week: 'week',
|
|
1035
|
+
Month: 'month',
|
|
1036
|
+
Year: 'year',
|
|
1037
|
+
};
|
|
914
1038
|
export const TakaroAiDomainOutputDTOOverrideStateEnum = {
|
|
915
1039
|
None: 'none',
|
|
916
1040
|
Active: 'active',
|
|
@@ -949,16 +1073,76 @@ export const TakaroEventDomainCreatedOriginEnum = {
|
|
|
949
1073
|
Subscription: 'subscription',
|
|
950
1074
|
AdminSecret: 'admin_secret',
|
|
951
1075
|
};
|
|
1076
|
+
export const TakaroEventInventoryCounterpartKindEnum = {
|
|
1077
|
+
Container: 'container',
|
|
1078
|
+
Player: 'player',
|
|
1079
|
+
};
|
|
952
1080
|
export const TakaroEventItemsGivenLineResultEnum = {
|
|
953
1081
|
Delivered: 'DELIVERED',
|
|
954
1082
|
Failed: 'FAILED',
|
|
955
1083
|
Unknown: 'UNKNOWN',
|
|
956
1084
|
};
|
|
1085
|
+
export const TakaroEventPlayerIdentityConflictUnwrittenIdentifiersEnum = {
|
|
1086
|
+
SteamId: 'steamId',
|
|
1087
|
+
EpicOnlineServicesId: 'epicOnlineServicesId',
|
|
1088
|
+
XboxLiveId: 'xboxLiveId',
|
|
1089
|
+
PlatformId: 'platformId',
|
|
1090
|
+
};
|
|
1091
|
+
export const TakaroEventPlayerIdentityConflictMatchMatchedOnEnum = {
|
|
1092
|
+
SteamId: 'steamId',
|
|
1093
|
+
EpicOnlineServicesId: 'epicOnlineServicesId',
|
|
1094
|
+
XboxLiveId: 'xboxLiveId',
|
|
1095
|
+
PlatformId: 'platformId',
|
|
1096
|
+
};
|
|
957
1097
|
export const TakaroEventPlayerInventoryChangedChangeTypeEnum = {
|
|
958
1098
|
Added: 'added',
|
|
959
1099
|
Removed: 'removed',
|
|
960
1100
|
Changed: 'changed',
|
|
961
1101
|
};
|
|
1102
|
+
export const TakaroEventPlayerInventoryChangedCauseEnum = {
|
|
1103
|
+
Pickup: 'pickup',
|
|
1104
|
+
Drop: 'drop',
|
|
1105
|
+
Craft: 'craft',
|
|
1106
|
+
Loot: 'loot',
|
|
1107
|
+
Trade: 'trade',
|
|
1108
|
+
Death: 'death',
|
|
1109
|
+
Other: 'other',
|
|
1110
|
+
};
|
|
1111
|
+
export const TakaroEventPlayerLevelChangedDirectionEnum = {
|
|
1112
|
+
Up: 'up',
|
|
1113
|
+
Down: 'down',
|
|
1114
|
+
};
|
|
1115
|
+
export const TakaroEventPlayerLevelChangedSourceEnum = {
|
|
1116
|
+
Server: 'server',
|
|
1117
|
+
ClientReported: 'client-reported',
|
|
1118
|
+
};
|
|
1119
|
+
export const TakaroEventPlayerLinkedSourceEnum = {
|
|
1120
|
+
GameCode: 'game-code',
|
|
1121
|
+
WebCode: 'web-code',
|
|
1122
|
+
SteamAuto: 'steam-auto',
|
|
1123
|
+
Admin: 'admin',
|
|
1124
|
+
Unknown: 'unknown',
|
|
1125
|
+
};
|
|
1126
|
+
export const TakaroEventPlayerMergedMovedIdentifiersEnum = {
|
|
1127
|
+
SteamId: 'steamId',
|
|
1128
|
+
EpicOnlineServicesId: 'epicOnlineServicesId',
|
|
1129
|
+
XboxLiveId: 'xboxLiveId',
|
|
1130
|
+
PlatformId: 'platformId',
|
|
1131
|
+
};
|
|
1132
|
+
export const TakaroEventPlayerMergedServerOutcomeEnum = {
|
|
1133
|
+
Moved: 'moved',
|
|
1134
|
+
Combined: 'combined',
|
|
1135
|
+
};
|
|
1136
|
+
export const TakaroEventPlayerMergedServerKeptPogFromEnum = {
|
|
1137
|
+
Survivor: 'survivor',
|
|
1138
|
+
Absorbed: 'absorbed',
|
|
1139
|
+
};
|
|
1140
|
+
export const TakaroEventPlayerUnlinkedReasonEnum = {
|
|
1141
|
+
Self: 'self',
|
|
1142
|
+
Admin: 'admin',
|
|
1143
|
+
Displaced: 'displaced',
|
|
1144
|
+
Merged: 'merged',
|
|
1145
|
+
};
|
|
962
1146
|
export const TakaroEventRateLimitedScopeEnum = {
|
|
963
1147
|
Server: 'server',
|
|
964
1148
|
Domain: 'domain',
|
|
@@ -1103,11 +1287,27 @@ export const TriggerJobInputDTOTypeEnum = {
|
|
|
1103
1287
|
SyncItems: 'syncItems',
|
|
1104
1288
|
SyncEntities: 'syncEntities',
|
|
1105
1289
|
SyncBans: 'syncBans',
|
|
1290
|
+
SyncLocations: 'syncLocations',
|
|
1106
1291
|
SyncMapImages: 'syncMapImages',
|
|
1107
1292
|
SyncMapUploads: 'syncMapUploads',
|
|
1293
|
+
SyncGameIcons: 'syncGameIcons',
|
|
1108
1294
|
SyncSteam: 'syncSteam',
|
|
1109
1295
|
SyncDiscordRoles: 'syncDiscordRoles',
|
|
1110
1296
|
};
|
|
1297
|
+
export const UserOutputDTOPlayerLinkSourceEnum = {
|
|
1298
|
+
GameCode: 'game-code',
|
|
1299
|
+
WebCode: 'web-code',
|
|
1300
|
+
SteamAuto: 'steam-auto',
|
|
1301
|
+
Admin: 'admin',
|
|
1302
|
+
Unknown: 'unknown',
|
|
1303
|
+
};
|
|
1304
|
+
export const UserOutputWithRolesDTOPlayerLinkSourceEnum = {
|
|
1305
|
+
GameCode: 'game-code',
|
|
1306
|
+
WebCode: 'web-code',
|
|
1307
|
+
SteamAuto: 'steam-auto',
|
|
1308
|
+
Admin: 'admin',
|
|
1309
|
+
Unknown: 'unknown',
|
|
1310
|
+
};
|
|
1111
1311
|
export const UserSearchInputDTOExtendEnum = {
|
|
1112
1312
|
Roles: 'roles',
|
|
1113
1313
|
};
|
|
@@ -1872,7 +2072,7 @@ export class DistributorApi extends BaseAPI {
|
|
|
1872
2072
|
export const DistributorSelfServiceApiAxiosParamCreator = function (configuration) {
|
|
1873
2073
|
return {
|
|
1874
2074
|
/**
|
|
1875
|
-
* Creates a domain attributed to the calling distributor (ADR 0024 — attribution, never ownership). The response carries the domain and its `serverRegistrationToken`, so a provisioning script can inject the token into a game server without a second call. Limits come from the chosen Plan
|
|
2075
|
+
* Creates a domain attributed to the calling distributor (ADR 0024 — attribution, never ownership). The response carries the domain and its `serverRegistrationToken`, so a provisioning script can inject the token into a game server without a second call. Limits come from the chosen Plan and apply at creation; a domain created without a `planId` starts on the platform defaults. A Plan outside `allowedPlans` is refused with a 400. A Distributor Service Account holding the domain’s root role is created with the domain; every management verb on the domain is recorded in its event feed as that account.<br> OperationId: `DistributorSelfServiceControllerCreateDomain`
|
|
1876
2076
|
* @summary Create a domain
|
|
1877
2077
|
* @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
|
|
1878
2078
|
* @param {*} [options] Override http request option.
|
|
@@ -2182,7 +2382,7 @@ export const DistributorSelfServiceApiAxiosParamCreator = function (configuratio
|
|
|
2182
2382
|
};
|
|
2183
2383
|
},
|
|
2184
2384
|
/**
|
|
2185
|
-
* Moves the domain onto another of the Plans allowed for the calling distributor
|
|
2385
|
+
* Moves the domain onto another of the Plans allowed for the calling distributor; the Plan’s limits apply before the response. Downgrading a customer who cancelled means moving the domain to the free Plan — it keeps running at free limits, and its state never changes. A Plan outside the allowed list is a 400; another distributor’s domain is a 404, never a 403. Idempotent: setting the Plan the domain is already on re-applies its limits and records nothing.<br> OperationId: `DistributorSelfServiceControllerSetDomainPlan`
|
|
2186
2386
|
* @summary Change one of my domains’ Plan
|
|
2187
2387
|
* @param {string} id
|
|
2188
2388
|
* @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
|
|
@@ -2225,7 +2425,7 @@ export const DistributorSelfServiceApiFp = function (configuration) {
|
|
|
2225
2425
|
const localVarAxiosParamCreator = DistributorSelfServiceApiAxiosParamCreator(configuration);
|
|
2226
2426
|
return {
|
|
2227
2427
|
/**
|
|
2228
|
-
* Creates a domain attributed to the calling distributor (ADR 0024 — attribution, never ownership). The response carries the domain and its `serverRegistrationToken`, so a provisioning script can inject the token into a game server without a second call. Limits come from the chosen Plan
|
|
2428
|
+
* Creates a domain attributed to the calling distributor (ADR 0024 — attribution, never ownership). The response carries the domain and its `serverRegistrationToken`, so a provisioning script can inject the token into a game server without a second call. Limits come from the chosen Plan and apply at creation; a domain created without a `planId` starts on the platform defaults. A Plan outside `allowedPlans` is refused with a 400. A Distributor Service Account holding the domain’s root role is created with the domain; every management verb on the domain is recorded in its event feed as that account.<br> OperationId: `DistributorSelfServiceControllerCreateDomain`
|
|
2229
2429
|
* @summary Create a domain
|
|
2230
2430
|
* @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
|
|
2231
2431
|
* @param {*} [options] Override http request option.
|
|
@@ -2355,7 +2555,7 @@ export const DistributorSelfServiceApiFp = function (configuration) {
|
|
|
2355
2555
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2356
2556
|
},
|
|
2357
2557
|
/**
|
|
2358
|
-
* Moves the domain onto another of the Plans allowed for the calling distributor
|
|
2558
|
+
* Moves the domain onto another of the Plans allowed for the calling distributor; the Plan’s limits apply before the response. Downgrading a customer who cancelled means moving the domain to the free Plan — it keeps running at free limits, and its state never changes. A Plan outside the allowed list is a 400; another distributor’s domain is a 404, never a 403. Idempotent: setting the Plan the domain is already on re-applies its limits and records nothing.<br> OperationId: `DistributorSelfServiceControllerSetDomainPlan`
|
|
2359
2559
|
* @summary Change one of my domains’ Plan
|
|
2360
2560
|
* @param {string} id
|
|
2361
2561
|
* @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
|
|
@@ -2378,7 +2578,7 @@ export const DistributorSelfServiceApiFactory = function (configuration, basePat
|
|
|
2378
2578
|
const localVarFp = DistributorSelfServiceApiFp(configuration);
|
|
2379
2579
|
return {
|
|
2380
2580
|
/**
|
|
2381
|
-
* Creates a domain attributed to the calling distributor (ADR 0024 — attribution, never ownership). The response carries the domain and its `serverRegistrationToken`, so a provisioning script can inject the token into a game server without a second call. Limits come from the chosen Plan
|
|
2581
|
+
* Creates a domain attributed to the calling distributor (ADR 0024 — attribution, never ownership). The response carries the domain and its `serverRegistrationToken`, so a provisioning script can inject the token into a game server without a second call. Limits come from the chosen Plan and apply at creation; a domain created without a `planId` starts on the platform defaults. A Plan outside `allowedPlans` is refused with a 400. A Distributor Service Account holding the domain’s root role is created with the domain; every management verb on the domain is recorded in its event feed as that account.<br> OperationId: `DistributorSelfServiceControllerCreateDomain`
|
|
2382
2582
|
* @summary Create a domain
|
|
2383
2583
|
* @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
|
|
2384
2584
|
* @param {*} [options] Override http request option.
|
|
@@ -2496,7 +2696,7 @@ export const DistributorSelfServiceApiFactory = function (configuration, basePat
|
|
|
2496
2696
|
.then((request) => request(axios, basePath));
|
|
2497
2697
|
},
|
|
2498
2698
|
/**
|
|
2499
|
-
* Moves the domain onto another of the Plans allowed for the calling distributor
|
|
2699
|
+
* Moves the domain onto another of the Plans allowed for the calling distributor; the Plan’s limits apply before the response. Downgrading a customer who cancelled means moving the domain to the free Plan — it keeps running at free limits, and its state never changes. A Plan outside the allowed list is a 400; another distributor’s domain is a 404, never a 403. Idempotent: setting the Plan the domain is already on re-applies its limits and records nothing.<br> OperationId: `DistributorSelfServiceControllerSetDomainPlan`
|
|
2500
2700
|
* @summary Change one of my domains’ Plan
|
|
2501
2701
|
* @param {string} id
|
|
2502
2702
|
* @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
|
|
@@ -2518,7 +2718,7 @@ export const DistributorSelfServiceApiFactory = function (configuration, basePat
|
|
|
2518
2718
|
*/
|
|
2519
2719
|
export class DistributorSelfServiceApi extends BaseAPI {
|
|
2520
2720
|
/**
|
|
2521
|
-
* Creates a domain attributed to the calling distributor (ADR 0024 — attribution, never ownership). The response carries the domain and its `serverRegistrationToken`, so a provisioning script can inject the token into a game server without a second call. Limits come from the chosen Plan
|
|
2721
|
+
* Creates a domain attributed to the calling distributor (ADR 0024 — attribution, never ownership). The response carries the domain and its `serverRegistrationToken`, so a provisioning script can inject the token into a game server without a second call. Limits come from the chosen Plan and apply at creation; a domain created without a `planId` starts on the platform defaults. A Plan outside `allowedPlans` is refused with a 400. A Distributor Service Account holding the domain’s root role is created with the domain; every management verb on the domain is recorded in its event feed as that account.<br> OperationId: `DistributorSelfServiceControllerCreateDomain`
|
|
2522
2722
|
* @summary Create a domain
|
|
2523
2723
|
* @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
|
|
2524
2724
|
* @param {*} [options] Override http request option.
|
|
@@ -2648,7 +2848,7 @@ export class DistributorSelfServiceApi extends BaseAPI {
|
|
|
2648
2848
|
.then((request) => request(this.axios, this.basePath));
|
|
2649
2849
|
}
|
|
2650
2850
|
/**
|
|
2651
|
-
* Moves the domain onto another of the Plans allowed for the calling distributor
|
|
2851
|
+
* Moves the domain onto another of the Plans allowed for the calling distributor; the Plan’s limits apply before the response. Downgrading a customer who cancelled means moving the domain to the free Plan — it keeps running at free limits, and its state never changes. A Plan outside the allowed list is a 400; another distributor’s domain is a 404, never a 403. Idempotent: setting the Plan the domain is already on re-applies its limits and records nothing.<br> OperationId: `DistributorSelfServiceControllerSetDomainPlan`
|
|
2652
2852
|
* @summary Change one of my domains’ Plan
|
|
2653
2853
|
* @param {string} id
|
|
2654
2854
|
* @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
|
|
@@ -2960,21 +3160,58 @@ export const DomainApiAxiosParamCreator = function (configuration) {
|
|
|
2960
3160
|
};
|
|
2961
3161
|
},
|
|
2962
3162
|
/**
|
|
2963
|
-
*
|
|
2964
|
-
* @summary
|
|
2965
|
-
* @param {
|
|
3163
|
+
* Applies the Plan’s limits at once, keeping any limit override. On the first assignment of a domain that predates Plans, its hand-set variable, module, function, concurrency and rate limits that differ from the Plan are kept as overrides. Refused for a distributor-backed domain.<br> OperationId: `DomainControllerSetPlan`
|
|
3164
|
+
* @summary Put a subscription-backed domain on a Plan
|
|
3165
|
+
* @param {string} id
|
|
3166
|
+
* @param {DomainPlanInputDTO} [domainPlanInputDTO] DomainPlanInputDTO
|
|
2966
3167
|
* @param {*} [options] Override http request option.
|
|
2967
3168
|
* @throws {RequiredError}
|
|
2968
3169
|
*/
|
|
2969
|
-
|
|
2970
|
-
|
|
3170
|
+
domainControllerSetPlan: async (id, domainPlanInputDTO, options = {}) => {
|
|
3171
|
+
// verify required parameter 'id' is not null or undefined
|
|
3172
|
+
assertParamExists('domainControllerSetPlan', 'id', id);
|
|
3173
|
+
const localVarPath = `/domain/{id}/plan`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
2971
3174
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2972
3175
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2973
3176
|
let baseOptions;
|
|
2974
3177
|
if (configuration) {
|
|
2975
3178
|
baseOptions = configuration.baseOptions;
|
|
2976
3179
|
}
|
|
2977
|
-
const localVarRequestOptions = { method: '
|
|
3180
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
3181
|
+
const localVarHeaderParameter = {};
|
|
3182
|
+
const localVarQueryParameter = {};
|
|
3183
|
+
// authentication staffSession required
|
|
3184
|
+
// authentication adminAuth required
|
|
3185
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
3186
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3187
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3188
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3189
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3190
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainPlanInputDTO, localVarRequestOptions, configuration);
|
|
3191
|
+
return {
|
|
3192
|
+
url: toPathString(localVarUrlObj),
|
|
3193
|
+
options: localVarRequestOptions,
|
|
3194
|
+
};
|
|
3195
|
+
},
|
|
3196
|
+
/**
|
|
3197
|
+
* For a domain with neither a Subscription nor a Distributor; refused for either, since Stripe or the Distributor chooses those Plans. Applies the Plan’s limits at once, keeping any limit override. On the first assignment of a domain that predates Plans, its hand-set limits that differ from the Plan are kept as overrides.<br> OperationId: `DomainControllerSetPlanByStaff`
|
|
3198
|
+
* @summary Put an Unbacked domain on a Plan
|
|
3199
|
+
* @param {string} id
|
|
3200
|
+
* @param {StaffDomainPlanInputDTO} [staffDomainPlanInputDTO] StaffDomainPlanInputDTO
|
|
3201
|
+
* @param {*} [options] Override http request option.
|
|
3202
|
+
* @throws {RequiredError}
|
|
3203
|
+
*/
|
|
3204
|
+
domainControllerSetPlanByStaff: async (id, staffDomainPlanInputDTO, options = {}) => {
|
|
3205
|
+
// verify required parameter 'id' is not null or undefined
|
|
3206
|
+
assertParamExists('domainControllerSetPlanByStaff', 'id', id);
|
|
3207
|
+
const localVarPath = `/staff/domains/{id}/plan`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
3208
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3209
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3210
|
+
let baseOptions;
|
|
3211
|
+
if (configuration) {
|
|
3212
|
+
baseOptions = configuration.baseOptions;
|
|
3213
|
+
}
|
|
3214
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
2978
3215
|
const localVarHeaderParameter = {};
|
|
2979
3216
|
const localVarQueryParameter = {};
|
|
2980
3217
|
// authentication staffSession required
|
|
@@ -2984,7 +3221,7 @@ export const DomainApiAxiosParamCreator = function (configuration) {
|
|
|
2984
3221
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2985
3222
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2986
3223
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2987
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3224
|
+
localVarRequestOptions.data = serializeDataIfNeeded(staffDomainPlanInputDTO, localVarRequestOptions, configuration);
|
|
2988
3225
|
return {
|
|
2989
3226
|
url: toPathString(localVarUrlObj),
|
|
2990
3227
|
options: localVarRequestOptions,
|
|
@@ -3154,16 +3391,31 @@ export const DomainApiFp = function (configuration) {
|
|
|
3154
3391
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3155
3392
|
},
|
|
3156
3393
|
/**
|
|
3157
|
-
*
|
|
3158
|
-
* @summary
|
|
3159
|
-
* @param {
|
|
3394
|
+
* Applies the Plan’s limits at once, keeping any limit override. On the first assignment of a domain that predates Plans, its hand-set variable, module, function, concurrency and rate limits that differ from the Plan are kept as overrides. Refused for a distributor-backed domain.<br> OperationId: `DomainControllerSetPlan`
|
|
3395
|
+
* @summary Put a subscription-backed domain on a Plan
|
|
3396
|
+
* @param {string} id
|
|
3397
|
+
* @param {DomainPlanInputDTO} [domainPlanInputDTO] DomainPlanInputDTO
|
|
3398
|
+
* @param {*} [options] Override http request option.
|
|
3399
|
+
* @throws {RequiredError}
|
|
3400
|
+
*/
|
|
3401
|
+
async domainControllerSetPlan(id, domainPlanInputDTO, options) {
|
|
3402
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerSetPlan(id, domainPlanInputDTO, options);
|
|
3403
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3404
|
+
const localVarOperationServerBasePath = operationServerMap['DomainApi.domainControllerSetPlan']?.[localVarOperationServerIndex]?.url;
|
|
3405
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3406
|
+
},
|
|
3407
|
+
/**
|
|
3408
|
+
* For a domain with neither a Subscription nor a Distributor; refused for either, since Stripe or the Distributor chooses those Plans. Applies the Plan’s limits at once, keeping any limit override. On the first assignment of a domain that predates Plans, its hand-set limits that differ from the Plan are kept as overrides.<br> OperationId: `DomainControllerSetPlanByStaff`
|
|
3409
|
+
* @summary Put an Unbacked domain on a Plan
|
|
3410
|
+
* @param {string} id
|
|
3411
|
+
* @param {StaffDomainPlanInputDTO} [staffDomainPlanInputDTO] StaffDomainPlanInputDTO
|
|
3160
3412
|
* @param {*} [options] Override http request option.
|
|
3161
3413
|
* @throws {RequiredError}
|
|
3162
3414
|
*/
|
|
3163
|
-
async
|
|
3164
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3415
|
+
async domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options) {
|
|
3416
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options);
|
|
3165
3417
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3166
|
-
const localVarOperationServerBasePath = operationServerMap['DomainApi.
|
|
3418
|
+
const localVarOperationServerBasePath = operationServerMap['DomainApi.domainControllerSetPlanByStaff']?.[localVarOperationServerIndex]?.url;
|
|
3167
3419
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3168
3420
|
},
|
|
3169
3421
|
/**
|
|
@@ -3293,15 +3545,29 @@ export const DomainApiFactory = function (configuration, basePath, axios) {
|
|
|
3293
3545
|
.then((request) => request(axios, basePath));
|
|
3294
3546
|
},
|
|
3295
3547
|
/**
|
|
3296
|
-
*
|
|
3297
|
-
* @summary
|
|
3298
|
-
* @param {
|
|
3548
|
+
* Applies the Plan’s limits at once, keeping any limit override. On the first assignment of a domain that predates Plans, its hand-set variable, module, function, concurrency and rate limits that differ from the Plan are kept as overrides. Refused for a distributor-backed domain.<br> OperationId: `DomainControllerSetPlan`
|
|
3549
|
+
* @summary Put a subscription-backed domain on a Plan
|
|
3550
|
+
* @param {string} id
|
|
3551
|
+
* @param {DomainPlanInputDTO} [domainPlanInputDTO] DomainPlanInputDTO
|
|
3552
|
+
* @param {*} [options] Override http request option.
|
|
3553
|
+
* @throws {RequiredError}
|
|
3554
|
+
*/
|
|
3555
|
+
domainControllerSetPlan(id, domainPlanInputDTO, options) {
|
|
3556
|
+
return localVarFp
|
|
3557
|
+
.domainControllerSetPlan(id, domainPlanInputDTO, options)
|
|
3558
|
+
.then((request) => request(axios, basePath));
|
|
3559
|
+
},
|
|
3560
|
+
/**
|
|
3561
|
+
* For a domain with neither a Subscription nor a Distributor; refused for either, since Stripe or the Distributor chooses those Plans. Applies the Plan’s limits at once, keeping any limit override. On the first assignment of a domain that predates Plans, its hand-set limits that differ from the Plan are kept as overrides.<br> OperationId: `DomainControllerSetPlanByStaff`
|
|
3562
|
+
* @summary Put an Unbacked domain on a Plan
|
|
3563
|
+
* @param {string} id
|
|
3564
|
+
* @param {StaffDomainPlanInputDTO} [staffDomainPlanInputDTO] StaffDomainPlanInputDTO
|
|
3299
3565
|
* @param {*} [options] Override http request option.
|
|
3300
3566
|
* @throws {RequiredError}
|
|
3301
3567
|
*/
|
|
3302
|
-
|
|
3568
|
+
domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options) {
|
|
3303
3569
|
return localVarFp
|
|
3304
|
-
.
|
|
3570
|
+
.domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options)
|
|
3305
3571
|
.then((request) => request(axios, basePath));
|
|
3306
3572
|
},
|
|
3307
3573
|
/**
|
|
@@ -3447,16 +3713,31 @@ export class DomainApi extends BaseAPI {
|
|
|
3447
3713
|
.then((request) => request(this.axios, this.basePath));
|
|
3448
3714
|
}
|
|
3449
3715
|
/**
|
|
3450
|
-
*
|
|
3451
|
-
* @summary
|
|
3452
|
-
* @param {
|
|
3716
|
+
* Applies the Plan’s limits at once, keeping any limit override. On the first assignment of a domain that predates Plans, its hand-set variable, module, function, concurrency and rate limits that differ from the Plan are kept as overrides. Refused for a distributor-backed domain.<br> OperationId: `DomainControllerSetPlan`
|
|
3717
|
+
* @summary Put a subscription-backed domain on a Plan
|
|
3718
|
+
* @param {string} id
|
|
3719
|
+
* @param {DomainPlanInputDTO} [domainPlanInputDTO] DomainPlanInputDTO
|
|
3720
|
+
* @param {*} [options] Override http request option.
|
|
3721
|
+
* @throws {RequiredError}
|
|
3722
|
+
* @memberof DomainApi
|
|
3723
|
+
*/
|
|
3724
|
+
domainControllerSetPlan(id, domainPlanInputDTO, options) {
|
|
3725
|
+
return DomainApiFp(this.configuration)
|
|
3726
|
+
.domainControllerSetPlan(id, domainPlanInputDTO, options)
|
|
3727
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3728
|
+
}
|
|
3729
|
+
/**
|
|
3730
|
+
* For a domain with neither a Subscription nor a Distributor; refused for either, since Stripe or the Distributor chooses those Plans. Applies the Plan’s limits at once, keeping any limit override. On the first assignment of a domain that predates Plans, its hand-set limits that differ from the Plan are kept as overrides.<br> OperationId: `DomainControllerSetPlanByStaff`
|
|
3731
|
+
* @summary Put an Unbacked domain on a Plan
|
|
3732
|
+
* @param {string} id
|
|
3733
|
+
* @param {StaffDomainPlanInputDTO} [staffDomainPlanInputDTO] StaffDomainPlanInputDTO
|
|
3453
3734
|
* @param {*} [options] Override http request option.
|
|
3454
3735
|
* @throws {RequiredError}
|
|
3455
3736
|
* @memberof DomainApi
|
|
3456
3737
|
*/
|
|
3457
|
-
|
|
3738
|
+
domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options) {
|
|
3458
3739
|
return DomainApiFp(this.configuration)
|
|
3459
|
-
.
|
|
3740
|
+
.domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options)
|
|
3460
3741
|
.then((request) => request(this.axios, this.basePath));
|
|
3461
3742
|
}
|
|
3462
3743
|
/**
|
|
@@ -3931,6 +4212,72 @@ export const FixtureHistoryApiAxiosParamCreator = function (configuration) {
|
|
|
3931
4212
|
options: localVarRequestOptions,
|
|
3932
4213
|
};
|
|
3933
4214
|
},
|
|
4215
|
+
/**
|
|
4216
|
+
* <br> OperationId: `FixtureHistoryControllerTrackingInventory`
|
|
4217
|
+
* @summary Write owned, back-dated inventory snapshots and changes into the Tracking store (idempotent on id)
|
|
4218
|
+
* @param {string} domainId
|
|
4219
|
+
* @param {FixtureHistoryTrackingInventoryInputDTO} [fixtureHistoryTrackingInventoryInputDTO] FixtureHistoryTrackingInventoryInputDTO
|
|
4220
|
+
* @param {*} [options] Override http request option.
|
|
4221
|
+
* @throws {RequiredError}
|
|
4222
|
+
*/
|
|
4223
|
+
fixtureHistoryControllerTrackingInventory: async (domainId, fixtureHistoryTrackingInventoryInputDTO, options = {}) => {
|
|
4224
|
+
// verify required parameter 'domainId' is not null or undefined
|
|
4225
|
+
assertParamExists('fixtureHistoryControllerTrackingInventory', 'domainId', domainId);
|
|
4226
|
+
const localVarPath = `/fixture-history/domains/{domainId}/tracking/inventory`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
|
|
4227
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4228
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4229
|
+
let baseOptions;
|
|
4230
|
+
if (configuration) {
|
|
4231
|
+
baseOptions = configuration.baseOptions;
|
|
4232
|
+
}
|
|
4233
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
4234
|
+
const localVarHeaderParameter = {};
|
|
4235
|
+
const localVarQueryParameter = {};
|
|
4236
|
+
// authentication adminAuth required
|
|
4237
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
4238
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4239
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4240
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4241
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4242
|
+
localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryTrackingInventoryInputDTO, localVarRequestOptions, configuration);
|
|
4243
|
+
return {
|
|
4244
|
+
url: toPathString(localVarUrlObj),
|
|
4245
|
+
options: localVarRequestOptions,
|
|
4246
|
+
};
|
|
4247
|
+
},
|
|
4248
|
+
/**
|
|
4249
|
+
* Columnar: each track is one player-on-gameserver with flattened x, y, z triples sampled every intervalMs from `from`.<br> OperationId: `FixtureHistoryControllerTrackingPositions`
|
|
4250
|
+
* @summary Write owned, back-dated walked paths into the Tracking store (inserts only missing samples)
|
|
4251
|
+
* @param {string} domainId
|
|
4252
|
+
* @param {FixtureHistoryTrackingPositionsInputDTO} [fixtureHistoryTrackingPositionsInputDTO] FixtureHistoryTrackingPositionsInputDTO
|
|
4253
|
+
* @param {*} [options] Override http request option.
|
|
4254
|
+
* @throws {RequiredError}
|
|
4255
|
+
*/
|
|
4256
|
+
fixtureHistoryControllerTrackingPositions: async (domainId, fixtureHistoryTrackingPositionsInputDTO, options = {}) => {
|
|
4257
|
+
// verify required parameter 'domainId' is not null or undefined
|
|
4258
|
+
assertParamExists('fixtureHistoryControllerTrackingPositions', 'domainId', domainId);
|
|
4259
|
+
const localVarPath = `/fixture-history/domains/{domainId}/tracking/positions`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
|
|
4260
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4261
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4262
|
+
let baseOptions;
|
|
4263
|
+
if (configuration) {
|
|
4264
|
+
baseOptions = configuration.baseOptions;
|
|
4265
|
+
}
|
|
4266
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
4267
|
+
const localVarHeaderParameter = {};
|
|
4268
|
+
const localVarQueryParameter = {};
|
|
4269
|
+
// authentication adminAuth required
|
|
4270
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
4271
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4272
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4273
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4274
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4275
|
+
localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryTrackingPositionsInputDTO, localVarRequestOptions, configuration);
|
|
4276
|
+
return {
|
|
4277
|
+
url: toPathString(localVarUrlObj),
|
|
4278
|
+
options: localVarRequestOptions,
|
|
4279
|
+
};
|
|
4280
|
+
},
|
|
3934
4281
|
};
|
|
3935
4282
|
};
|
|
3936
4283
|
/**
|
|
@@ -4129,6 +4476,34 @@ export const FixtureHistoryApiFp = function (configuration) {
|
|
|
4129
4476
|
?.url;
|
|
4130
4477
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4131
4478
|
},
|
|
4479
|
+
/**
|
|
4480
|
+
* <br> OperationId: `FixtureHistoryControllerTrackingInventory`
|
|
4481
|
+
* @summary Write owned, back-dated inventory snapshots and changes into the Tracking store (idempotent on id)
|
|
4482
|
+
* @param {string} domainId
|
|
4483
|
+
* @param {FixtureHistoryTrackingInventoryInputDTO} [fixtureHistoryTrackingInventoryInputDTO] FixtureHistoryTrackingInventoryInputDTO
|
|
4484
|
+
* @param {*} [options] Override http request option.
|
|
4485
|
+
* @throws {RequiredError}
|
|
4486
|
+
*/
|
|
4487
|
+
async fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options) {
|
|
4488
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options);
|
|
4489
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4490
|
+
const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerTrackingInventory']?.[localVarOperationServerIndex]?.url;
|
|
4491
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4492
|
+
},
|
|
4493
|
+
/**
|
|
4494
|
+
* Columnar: each track is one player-on-gameserver with flattened x, y, z triples sampled every intervalMs from `from`.<br> OperationId: `FixtureHistoryControllerTrackingPositions`
|
|
4495
|
+
* @summary Write owned, back-dated walked paths into the Tracking store (inserts only missing samples)
|
|
4496
|
+
* @param {string} domainId
|
|
4497
|
+
* @param {FixtureHistoryTrackingPositionsInputDTO} [fixtureHistoryTrackingPositionsInputDTO] FixtureHistoryTrackingPositionsInputDTO
|
|
4498
|
+
* @param {*} [options] Override http request option.
|
|
4499
|
+
* @throws {RequiredError}
|
|
4500
|
+
*/
|
|
4501
|
+
async fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options) {
|
|
4502
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options);
|
|
4503
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4504
|
+
const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerTrackingPositions']?.[localVarOperationServerIndex]?.url;
|
|
4505
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4506
|
+
},
|
|
4132
4507
|
};
|
|
4133
4508
|
};
|
|
4134
4509
|
/**
|
|
@@ -4310,6 +4685,32 @@ export const FixtureHistoryApiFactory = function (configuration, basePath, axios
|
|
|
4310
4685
|
.fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options)
|
|
4311
4686
|
.then((request) => request(axios, basePath));
|
|
4312
4687
|
},
|
|
4688
|
+
/**
|
|
4689
|
+
* <br> OperationId: `FixtureHistoryControllerTrackingInventory`
|
|
4690
|
+
* @summary Write owned, back-dated inventory snapshots and changes into the Tracking store (idempotent on id)
|
|
4691
|
+
* @param {string} domainId
|
|
4692
|
+
* @param {FixtureHistoryTrackingInventoryInputDTO} [fixtureHistoryTrackingInventoryInputDTO] FixtureHistoryTrackingInventoryInputDTO
|
|
4693
|
+
* @param {*} [options] Override http request option.
|
|
4694
|
+
* @throws {RequiredError}
|
|
4695
|
+
*/
|
|
4696
|
+
fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options) {
|
|
4697
|
+
return localVarFp
|
|
4698
|
+
.fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options)
|
|
4699
|
+
.then((request) => request(axios, basePath));
|
|
4700
|
+
},
|
|
4701
|
+
/**
|
|
4702
|
+
* Columnar: each track is one player-on-gameserver with flattened x, y, z triples sampled every intervalMs from `from`.<br> OperationId: `FixtureHistoryControllerTrackingPositions`
|
|
4703
|
+
* @summary Write owned, back-dated walked paths into the Tracking store (inserts only missing samples)
|
|
4704
|
+
* @param {string} domainId
|
|
4705
|
+
* @param {FixtureHistoryTrackingPositionsInputDTO} [fixtureHistoryTrackingPositionsInputDTO] FixtureHistoryTrackingPositionsInputDTO
|
|
4706
|
+
* @param {*} [options] Override http request option.
|
|
4707
|
+
* @throws {RequiredError}
|
|
4708
|
+
*/
|
|
4709
|
+
fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options) {
|
|
4710
|
+
return localVarFp
|
|
4711
|
+
.fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options)
|
|
4712
|
+
.then((request) => request(axios, basePath));
|
|
4713
|
+
},
|
|
4313
4714
|
};
|
|
4314
4715
|
};
|
|
4315
4716
|
/**
|
|
@@ -4504,6 +4905,34 @@ export class FixtureHistoryApi extends BaseAPI {
|
|
|
4504
4905
|
.fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options)
|
|
4505
4906
|
.then((request) => request(this.axios, this.basePath));
|
|
4506
4907
|
}
|
|
4908
|
+
/**
|
|
4909
|
+
* <br> OperationId: `FixtureHistoryControllerTrackingInventory`
|
|
4910
|
+
* @summary Write owned, back-dated inventory snapshots and changes into the Tracking store (idempotent on id)
|
|
4911
|
+
* @param {string} domainId
|
|
4912
|
+
* @param {FixtureHistoryTrackingInventoryInputDTO} [fixtureHistoryTrackingInventoryInputDTO] FixtureHistoryTrackingInventoryInputDTO
|
|
4913
|
+
* @param {*} [options] Override http request option.
|
|
4914
|
+
* @throws {RequiredError}
|
|
4915
|
+
* @memberof FixtureHistoryApi
|
|
4916
|
+
*/
|
|
4917
|
+
fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options) {
|
|
4918
|
+
return FixtureHistoryApiFp(this.configuration)
|
|
4919
|
+
.fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options)
|
|
4920
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4921
|
+
}
|
|
4922
|
+
/**
|
|
4923
|
+
* Columnar: each track is one player-on-gameserver with flattened x, y, z triples sampled every intervalMs from `from`.<br> OperationId: `FixtureHistoryControllerTrackingPositions`
|
|
4924
|
+
* @summary Write owned, back-dated walked paths into the Tracking store (inserts only missing samples)
|
|
4925
|
+
* @param {string} domainId
|
|
4926
|
+
* @param {FixtureHistoryTrackingPositionsInputDTO} [fixtureHistoryTrackingPositionsInputDTO] FixtureHistoryTrackingPositionsInputDTO
|
|
4927
|
+
* @param {*} [options] Override http request option.
|
|
4928
|
+
* @throws {RequiredError}
|
|
4929
|
+
* @memberof FixtureHistoryApi
|
|
4930
|
+
*/
|
|
4931
|
+
fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options) {
|
|
4932
|
+
return FixtureHistoryApiFp(this.configuration)
|
|
4933
|
+
.fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options)
|
|
4934
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4935
|
+
}
|
|
4507
4936
|
}
|
|
4508
4937
|
/**
|
|
4509
4938
|
* MetaApi - axios parameter creator
|
|
@@ -5198,114 +5627,355 @@ export class StaffAuthApi extends BaseAPI {
|
|
|
5198
5627
|
}
|
|
5199
5628
|
}
|
|
5200
5629
|
/**
|
|
5201
|
-
*
|
|
5630
|
+
* StaffDomainLimitsApi - axios parameter creator
|
|
5202
5631
|
* @export
|
|
5203
5632
|
*/
|
|
5204
|
-
export const
|
|
5633
|
+
export const StaffDomainLimitsApiAxiosParamCreator = function (configuration) {
|
|
5205
5634
|
return {
|
|
5206
5635
|
/**
|
|
5207
|
-
* The
|
|
5208
|
-
* @summary
|
|
5636
|
+
* The Plan’s value applies again at once.<br> OperationId: `StaffDomainLimitsControllerClear`
|
|
5637
|
+
* @summary Clear a limit override of a Domain
|
|
5638
|
+
* @param {string} id
|
|
5639
|
+
* @param {string} limitKey
|
|
5640
|
+
* @param {DomainLimitOverrideClearInputDTO} [domainLimitOverrideClearInputDTO] DomainLimitOverrideClearInputDTO
|
|
5209
5641
|
* @param {*} [options] Override http request option.
|
|
5210
5642
|
* @throws {RequiredError}
|
|
5211
5643
|
*/
|
|
5212
|
-
|
|
5213
|
-
|
|
5644
|
+
staffDomainLimitsControllerClear: async (id, limitKey, domainLimitOverrideClearInputDTO, options = {}) => {
|
|
5645
|
+
// verify required parameter 'id' is not null or undefined
|
|
5646
|
+
assertParamExists('staffDomainLimitsControllerClear', 'id', id);
|
|
5647
|
+
// verify required parameter 'limitKey' is not null or undefined
|
|
5648
|
+
assertParamExists('staffDomainLimitsControllerClear', 'limitKey', limitKey);
|
|
5649
|
+
const localVarPath = `/staff/domains/{id}/limits/{limitKey}`
|
|
5650
|
+
.replace(`{${'id'}}`, encodeURIComponent(String(id)))
|
|
5651
|
+
.replace(`{${'limitKey'}}`, encodeURIComponent(String(limitKey)));
|
|
5214
5652
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5215
5653
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5216
5654
|
let baseOptions;
|
|
5217
5655
|
if (configuration) {
|
|
5218
5656
|
baseOptions = configuration.baseOptions;
|
|
5219
5657
|
}
|
|
5220
|
-
const localVarRequestOptions = { method: '
|
|
5658
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
5221
5659
|
const localVarHeaderParameter = {};
|
|
5222
5660
|
const localVarQueryParameter = {};
|
|
5223
5661
|
// authentication staffSession required
|
|
5224
5662
|
// authentication adminAuth required
|
|
5225
5663
|
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
5664
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5226
5665
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5227
5666
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5228
5667
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5668
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainLimitOverrideClearInputDTO, localVarRequestOptions, configuration);
|
|
5229
5669
|
return {
|
|
5230
5670
|
url: toPathString(localVarUrlObj),
|
|
5231
5671
|
options: localVarRequestOptions,
|
|
5232
5672
|
};
|
|
5233
5673
|
},
|
|
5234
|
-
};
|
|
5235
|
-
};
|
|
5236
|
-
/**
|
|
5237
|
-
* StaffMeApi - functional programming interface
|
|
5238
|
-
* @export
|
|
5239
|
-
*/
|
|
5240
|
-
export const StaffMeApiFp = function (configuration) {
|
|
5241
|
-
const localVarAxiosParamCreator = StaffMeApiAxiosParamCreator(configuration);
|
|
5242
|
-
return {
|
|
5243
5674
|
/**
|
|
5244
|
-
*
|
|
5245
|
-
* @summary
|
|
5675
|
+
* Every limit with its value and source: the Plan, an override, or `unmanaged` for a Domain with no Plan.<br> OperationId: `StaffDomainLimitsControllerGet`
|
|
5676
|
+
* @summary Effective limits of a Domain
|
|
5677
|
+
* @param {string} id
|
|
5246
5678
|
* @param {*} [options] Override http request option.
|
|
5247
5679
|
* @throws {RequiredError}
|
|
5248
5680
|
*/
|
|
5249
|
-
async
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
const
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5681
|
+
staffDomainLimitsControllerGet: async (id, options = {}) => {
|
|
5682
|
+
// verify required parameter 'id' is not null or undefined
|
|
5683
|
+
assertParamExists('staffDomainLimitsControllerGet', 'id', id);
|
|
5684
|
+
const localVarPath = `/staff/domains/{id}/limits`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
5685
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5686
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5687
|
+
let baseOptions;
|
|
5688
|
+
if (configuration) {
|
|
5689
|
+
baseOptions = configuration.baseOptions;
|
|
5690
|
+
}
|
|
5691
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
5692
|
+
const localVarHeaderParameter = {};
|
|
5693
|
+
const localVarQueryParameter = {};
|
|
5694
|
+
// authentication staffSession required
|
|
5695
|
+
// authentication adminAuth required
|
|
5696
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
5697
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5698
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5699
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5700
|
+
return {
|
|
5701
|
+
url: toPathString(localVarUrlObj),
|
|
5702
|
+
options: localVarRequestOptions,
|
|
5703
|
+
};
|
|
5704
|
+
},
|
|
5705
|
+
/**
|
|
5706
|
+
* Newest first.<br> OperationId: `StaffDomainLimitsControllerHistory`
|
|
5707
|
+
* @summary Limit override history of a Domain
|
|
5708
|
+
* @param {string} id
|
|
5709
|
+
* @param {*} [options] Override http request option.
|
|
5710
|
+
* @throws {RequiredError}
|
|
5711
|
+
*/
|
|
5712
|
+
staffDomainLimitsControllerHistory: async (id, options = {}) => {
|
|
5713
|
+
// verify required parameter 'id' is not null or undefined
|
|
5714
|
+
assertParamExists('staffDomainLimitsControllerHistory', 'id', id);
|
|
5715
|
+
const localVarPath = `/staff/domains/{id}/limits/history`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
5716
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5717
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5718
|
+
let baseOptions;
|
|
5719
|
+
if (configuration) {
|
|
5720
|
+
baseOptions = configuration.baseOptions;
|
|
5721
|
+
}
|
|
5722
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
5723
|
+
const localVarHeaderParameter = {};
|
|
5724
|
+
const localVarQueryParameter = {};
|
|
5725
|
+
// authentication staffSession required
|
|
5726
|
+
// authentication adminAuth required
|
|
5727
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
5728
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5729
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5730
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5731
|
+
return {
|
|
5732
|
+
url: toPathString(localVarUrlObj),
|
|
5733
|
+
options: localVarRequestOptions,
|
|
5734
|
+
};
|
|
5735
|
+
},
|
|
5736
|
+
/**
|
|
5737
|
+
* Applies at once and survives Plan changes, until it expires or is cleared. Only for a Domain on a Plan. Shrinking `maxGameservers` disables the newest excess servers. An expired override reads as the Plan value at once, but the enforced limit follows at the next hourly sweep, so up to an hour later.<br> OperationId: `StaffDomainLimitsControllerSet`
|
|
5738
|
+
* @summary Override one limit of a Domain
|
|
5739
|
+
* @param {string} id
|
|
5740
|
+
* @param {string} limitKey
|
|
5741
|
+
* @param {DomainLimitOverrideInputDTO} [domainLimitOverrideInputDTO] DomainLimitOverrideInputDTO
|
|
5742
|
+
* @param {*} [options] Override http request option.
|
|
5743
|
+
* @throws {RequiredError}
|
|
5744
|
+
*/
|
|
5745
|
+
staffDomainLimitsControllerSet: async (id, limitKey, domainLimitOverrideInputDTO, options = {}) => {
|
|
5746
|
+
// verify required parameter 'id' is not null or undefined
|
|
5747
|
+
assertParamExists('staffDomainLimitsControllerSet', 'id', id);
|
|
5748
|
+
// verify required parameter 'limitKey' is not null or undefined
|
|
5749
|
+
assertParamExists('staffDomainLimitsControllerSet', 'limitKey', limitKey);
|
|
5750
|
+
const localVarPath = `/staff/domains/{id}/limits/{limitKey}`
|
|
5751
|
+
.replace(`{${'id'}}`, encodeURIComponent(String(id)))
|
|
5752
|
+
.replace(`{${'limitKey'}}`, encodeURIComponent(String(limitKey)));
|
|
5753
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5754
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5755
|
+
let baseOptions;
|
|
5756
|
+
if (configuration) {
|
|
5757
|
+
baseOptions = configuration.baseOptions;
|
|
5758
|
+
}
|
|
5759
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
5760
|
+
const localVarHeaderParameter = {};
|
|
5761
|
+
const localVarQueryParameter = {};
|
|
5762
|
+
// authentication staffSession required
|
|
5763
|
+
// authentication adminAuth required
|
|
5764
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
5765
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5766
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5767
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5768
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5769
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainLimitOverrideInputDTO, localVarRequestOptions, configuration);
|
|
5770
|
+
return {
|
|
5771
|
+
url: toPathString(localVarUrlObj),
|
|
5772
|
+
options: localVarRequestOptions,
|
|
5773
|
+
};
|
|
5774
|
+
},
|
|
5775
|
+
};
|
|
5776
|
+
};
|
|
5777
|
+
/**
|
|
5778
|
+
* StaffDomainLimitsApi - functional programming interface
|
|
5779
|
+
* @export
|
|
5780
|
+
*/
|
|
5781
|
+
export const StaffDomainLimitsApiFp = function (configuration) {
|
|
5782
|
+
const localVarAxiosParamCreator = StaffDomainLimitsApiAxiosParamCreator(configuration);
|
|
5263
5783
|
return {
|
|
5264
5784
|
/**
|
|
5265
|
-
* The
|
|
5266
|
-
* @summary
|
|
5785
|
+
* The Plan’s value applies again at once.<br> OperationId: `StaffDomainLimitsControllerClear`
|
|
5786
|
+
* @summary Clear a limit override of a Domain
|
|
5787
|
+
* @param {string} id
|
|
5788
|
+
* @param {string} limitKey
|
|
5789
|
+
* @param {DomainLimitOverrideClearInputDTO} [domainLimitOverrideClearInputDTO] DomainLimitOverrideClearInputDTO
|
|
5267
5790
|
* @param {*} [options] Override http request option.
|
|
5268
5791
|
* @throws {RequiredError}
|
|
5269
5792
|
*/
|
|
5270
|
-
|
|
5271
|
-
|
|
5793
|
+
async staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options) {
|
|
5794
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options);
|
|
5795
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5796
|
+
const localVarOperationServerBasePath = operationServerMap['StaffDomainLimitsApi.staffDomainLimitsControllerClear']?.[localVarOperationServerIndex]
|
|
5797
|
+
?.url;
|
|
5798
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5799
|
+
},
|
|
5800
|
+
/**
|
|
5801
|
+
* Every limit with its value and source: the Plan, an override, or `unmanaged` for a Domain with no Plan.<br> OperationId: `StaffDomainLimitsControllerGet`
|
|
5802
|
+
* @summary Effective limits of a Domain
|
|
5803
|
+
* @param {string} id
|
|
5804
|
+
* @param {*} [options] Override http request option.
|
|
5805
|
+
* @throws {RequiredError}
|
|
5806
|
+
*/
|
|
5807
|
+
async staffDomainLimitsControllerGet(id, options) {
|
|
5808
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffDomainLimitsControllerGet(id, options);
|
|
5809
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5810
|
+
const localVarOperationServerBasePath = operationServerMap['StaffDomainLimitsApi.staffDomainLimitsControllerGet']?.[localVarOperationServerIndex]?.url;
|
|
5811
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5812
|
+
},
|
|
5813
|
+
/**
|
|
5814
|
+
* Newest first.<br> OperationId: `StaffDomainLimitsControllerHistory`
|
|
5815
|
+
* @summary Limit override history of a Domain
|
|
5816
|
+
* @param {string} id
|
|
5817
|
+
* @param {*} [options] Override http request option.
|
|
5818
|
+
* @throws {RequiredError}
|
|
5819
|
+
*/
|
|
5820
|
+
async staffDomainLimitsControllerHistory(id, options) {
|
|
5821
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffDomainLimitsControllerHistory(id, options);
|
|
5822
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5823
|
+
const localVarOperationServerBasePath = operationServerMap['StaffDomainLimitsApi.staffDomainLimitsControllerHistory']?.[localVarOperationServerIndex]
|
|
5824
|
+
?.url;
|
|
5825
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5826
|
+
},
|
|
5827
|
+
/**
|
|
5828
|
+
* Applies at once and survives Plan changes, until it expires or is cleared. Only for a Domain on a Plan. Shrinking `maxGameservers` disables the newest excess servers. An expired override reads as the Plan value at once, but the enforced limit follows at the next hourly sweep, so up to an hour later.<br> OperationId: `StaffDomainLimitsControllerSet`
|
|
5829
|
+
* @summary Override one limit of a Domain
|
|
5830
|
+
* @param {string} id
|
|
5831
|
+
* @param {string} limitKey
|
|
5832
|
+
* @param {DomainLimitOverrideInputDTO} [domainLimitOverrideInputDTO] DomainLimitOverrideInputDTO
|
|
5833
|
+
* @param {*} [options] Override http request option.
|
|
5834
|
+
* @throws {RequiredError}
|
|
5835
|
+
*/
|
|
5836
|
+
async staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options) {
|
|
5837
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options);
|
|
5838
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5839
|
+
const localVarOperationServerBasePath = operationServerMap['StaffDomainLimitsApi.staffDomainLimitsControllerSet']?.[localVarOperationServerIndex]?.url;
|
|
5840
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5272
5841
|
},
|
|
5273
5842
|
};
|
|
5274
5843
|
};
|
|
5275
5844
|
/**
|
|
5276
|
-
*
|
|
5845
|
+
* StaffDomainLimitsApi - factory interface
|
|
5277
5846
|
* @export
|
|
5278
|
-
|
|
5847
|
+
*/
|
|
5848
|
+
export const StaffDomainLimitsApiFactory = function (configuration, basePath, axios) {
|
|
5849
|
+
const localVarFp = StaffDomainLimitsApiFp(configuration);
|
|
5850
|
+
return {
|
|
5851
|
+
/**
|
|
5852
|
+
* The Plan’s value applies again at once.<br> OperationId: `StaffDomainLimitsControllerClear`
|
|
5853
|
+
* @summary Clear a limit override of a Domain
|
|
5854
|
+
* @param {string} id
|
|
5855
|
+
* @param {string} limitKey
|
|
5856
|
+
* @param {DomainLimitOverrideClearInputDTO} [domainLimitOverrideClearInputDTO] DomainLimitOverrideClearInputDTO
|
|
5857
|
+
* @param {*} [options] Override http request option.
|
|
5858
|
+
* @throws {RequiredError}
|
|
5859
|
+
*/
|
|
5860
|
+
staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options) {
|
|
5861
|
+
return localVarFp
|
|
5862
|
+
.staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options)
|
|
5863
|
+
.then((request) => request(axios, basePath));
|
|
5864
|
+
},
|
|
5865
|
+
/**
|
|
5866
|
+
* Every limit with its value and source: the Plan, an override, or `unmanaged` for a Domain with no Plan.<br> OperationId: `StaffDomainLimitsControllerGet`
|
|
5867
|
+
* @summary Effective limits of a Domain
|
|
5868
|
+
* @param {string} id
|
|
5869
|
+
* @param {*} [options] Override http request option.
|
|
5870
|
+
* @throws {RequiredError}
|
|
5871
|
+
*/
|
|
5872
|
+
staffDomainLimitsControllerGet(id, options) {
|
|
5873
|
+
return localVarFp.staffDomainLimitsControllerGet(id, options).then((request) => request(axios, basePath));
|
|
5874
|
+
},
|
|
5875
|
+
/**
|
|
5876
|
+
* Newest first.<br> OperationId: `StaffDomainLimitsControllerHistory`
|
|
5877
|
+
* @summary Limit override history of a Domain
|
|
5878
|
+
* @param {string} id
|
|
5879
|
+
* @param {*} [options] Override http request option.
|
|
5880
|
+
* @throws {RequiredError}
|
|
5881
|
+
*/
|
|
5882
|
+
staffDomainLimitsControllerHistory(id, options) {
|
|
5883
|
+
return localVarFp.staffDomainLimitsControllerHistory(id, options).then((request) => request(axios, basePath));
|
|
5884
|
+
},
|
|
5885
|
+
/**
|
|
5886
|
+
* Applies at once and survives Plan changes, until it expires or is cleared. Only for a Domain on a Plan. Shrinking `maxGameservers` disables the newest excess servers. An expired override reads as the Plan value at once, but the enforced limit follows at the next hourly sweep, so up to an hour later.<br> OperationId: `StaffDomainLimitsControllerSet`
|
|
5887
|
+
* @summary Override one limit of a Domain
|
|
5888
|
+
* @param {string} id
|
|
5889
|
+
* @param {string} limitKey
|
|
5890
|
+
* @param {DomainLimitOverrideInputDTO} [domainLimitOverrideInputDTO] DomainLimitOverrideInputDTO
|
|
5891
|
+
* @param {*} [options] Override http request option.
|
|
5892
|
+
* @throws {RequiredError}
|
|
5893
|
+
*/
|
|
5894
|
+
staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options) {
|
|
5895
|
+
return localVarFp
|
|
5896
|
+
.staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options)
|
|
5897
|
+
.then((request) => request(axios, basePath));
|
|
5898
|
+
},
|
|
5899
|
+
};
|
|
5900
|
+
};
|
|
5901
|
+
/**
|
|
5902
|
+
* StaffDomainLimitsApi - object-oriented interface
|
|
5903
|
+
* @export
|
|
5904
|
+
* @class StaffDomainLimitsApi
|
|
5279
5905
|
* @extends {BaseAPI}
|
|
5280
5906
|
*/
|
|
5281
|
-
export class
|
|
5907
|
+
export class StaffDomainLimitsApi extends BaseAPI {
|
|
5282
5908
|
/**
|
|
5283
|
-
* The
|
|
5284
|
-
* @summary
|
|
5909
|
+
* The Plan’s value applies again at once.<br> OperationId: `StaffDomainLimitsControllerClear`
|
|
5910
|
+
* @summary Clear a limit override of a Domain
|
|
5911
|
+
* @param {string} id
|
|
5912
|
+
* @param {string} limitKey
|
|
5913
|
+
* @param {DomainLimitOverrideClearInputDTO} [domainLimitOverrideClearInputDTO] DomainLimitOverrideClearInputDTO
|
|
5285
5914
|
* @param {*} [options] Override http request option.
|
|
5286
5915
|
* @throws {RequiredError}
|
|
5287
|
-
* @memberof
|
|
5916
|
+
* @memberof StaffDomainLimitsApi
|
|
5288
5917
|
*/
|
|
5289
|
-
|
|
5290
|
-
return
|
|
5291
|
-
.
|
|
5918
|
+
staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options) {
|
|
5919
|
+
return StaffDomainLimitsApiFp(this.configuration)
|
|
5920
|
+
.staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options)
|
|
5921
|
+
.then((request) => request(this.axios, this.basePath));
|
|
5922
|
+
}
|
|
5923
|
+
/**
|
|
5924
|
+
* Every limit with its value and source: the Plan, an override, or `unmanaged` for a Domain with no Plan.<br> OperationId: `StaffDomainLimitsControllerGet`
|
|
5925
|
+
* @summary Effective limits of a Domain
|
|
5926
|
+
* @param {string} id
|
|
5927
|
+
* @param {*} [options] Override http request option.
|
|
5928
|
+
* @throws {RequiredError}
|
|
5929
|
+
* @memberof StaffDomainLimitsApi
|
|
5930
|
+
*/
|
|
5931
|
+
staffDomainLimitsControllerGet(id, options) {
|
|
5932
|
+
return StaffDomainLimitsApiFp(this.configuration)
|
|
5933
|
+
.staffDomainLimitsControllerGet(id, options)
|
|
5934
|
+
.then((request) => request(this.axios, this.basePath));
|
|
5935
|
+
}
|
|
5936
|
+
/**
|
|
5937
|
+
* Newest first.<br> OperationId: `StaffDomainLimitsControllerHistory`
|
|
5938
|
+
* @summary Limit override history of a Domain
|
|
5939
|
+
* @param {string} id
|
|
5940
|
+
* @param {*} [options] Override http request option.
|
|
5941
|
+
* @throws {RequiredError}
|
|
5942
|
+
* @memberof StaffDomainLimitsApi
|
|
5943
|
+
*/
|
|
5944
|
+
staffDomainLimitsControllerHistory(id, options) {
|
|
5945
|
+
return StaffDomainLimitsApiFp(this.configuration)
|
|
5946
|
+
.staffDomainLimitsControllerHistory(id, options)
|
|
5947
|
+
.then((request) => request(this.axios, this.basePath));
|
|
5948
|
+
}
|
|
5949
|
+
/**
|
|
5950
|
+
* Applies at once and survives Plan changes, until it expires or is cleared. Only for a Domain on a Plan. Shrinking `maxGameservers` disables the newest excess servers. An expired override reads as the Plan value at once, but the enforced limit follows at the next hourly sweep, so up to an hour later.<br> OperationId: `StaffDomainLimitsControllerSet`
|
|
5951
|
+
* @summary Override one limit of a Domain
|
|
5952
|
+
* @param {string} id
|
|
5953
|
+
* @param {string} limitKey
|
|
5954
|
+
* @param {DomainLimitOverrideInputDTO} [domainLimitOverrideInputDTO] DomainLimitOverrideInputDTO
|
|
5955
|
+
* @param {*} [options] Override http request option.
|
|
5956
|
+
* @throws {RequiredError}
|
|
5957
|
+
* @memberof StaffDomainLimitsApi
|
|
5958
|
+
*/
|
|
5959
|
+
staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options) {
|
|
5960
|
+
return StaffDomainLimitsApiFp(this.configuration)
|
|
5961
|
+
.staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options)
|
|
5292
5962
|
.then((request) => request(this.axios, this.basePath));
|
|
5293
5963
|
}
|
|
5294
5964
|
}
|
|
5295
5965
|
/**
|
|
5296
|
-
*
|
|
5966
|
+
* StaffMeApi - axios parameter creator
|
|
5297
5967
|
* @export
|
|
5298
5968
|
*/
|
|
5299
|
-
export const
|
|
5969
|
+
export const StaffMeApiAxiosParamCreator = function (configuration) {
|
|
5300
5970
|
return {
|
|
5301
5971
|
/**
|
|
5302
|
-
*
|
|
5303
|
-
* @summary
|
|
5972
|
+
* The signed-in Takaro Staff member and their tier (ADR 0026). Deliberately nothing else: no domains, no permissions, and never a token.<br> OperationId: `StaffMeControllerMe`
|
|
5973
|
+
* @summary Who this Staff session belongs to
|
|
5304
5974
|
* @param {*} [options] Override http request option.
|
|
5305
5975
|
* @throws {RequiredError}
|
|
5306
5976
|
*/
|
|
5307
|
-
|
|
5308
|
-
const localVarPath = `/staff/
|
|
5977
|
+
staffMeControllerMe: async (options = {}) => {
|
|
5978
|
+
const localVarPath = `/staff/me`;
|
|
5309
5979
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5310
5980
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5311
5981
|
let baseOptions;
|
|
@@ -5329,61 +5999,717 @@ export const StaffPlanApiAxiosParamCreator = function (configuration) {
|
|
|
5329
5999
|
};
|
|
5330
6000
|
};
|
|
5331
6001
|
/**
|
|
5332
|
-
*
|
|
6002
|
+
* StaffMeApi - functional programming interface
|
|
5333
6003
|
* @export
|
|
5334
6004
|
*/
|
|
5335
|
-
export const
|
|
5336
|
-
const localVarAxiosParamCreator =
|
|
6005
|
+
export const StaffMeApiFp = function (configuration) {
|
|
6006
|
+
const localVarAxiosParamCreator = StaffMeApiAxiosParamCreator(configuration);
|
|
5337
6007
|
return {
|
|
5338
6008
|
/**
|
|
5339
|
-
*
|
|
5340
|
-
* @summary
|
|
6009
|
+
* The signed-in Takaro Staff member and their tier (ADR 0026). Deliberately nothing else: no domains, no permissions, and never a token.<br> OperationId: `StaffMeControllerMe`
|
|
6010
|
+
* @summary Who this Staff session belongs to
|
|
5341
6011
|
* @param {*} [options] Override http request option.
|
|
5342
6012
|
* @throws {RequiredError}
|
|
5343
6013
|
*/
|
|
5344
|
-
async
|
|
5345
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
6014
|
+
async staffMeControllerMe(options) {
|
|
6015
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffMeControllerMe(options);
|
|
5346
6016
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5347
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
6017
|
+
const localVarOperationServerBasePath = operationServerMap['StaffMeApi.staffMeControllerMe']?.[localVarOperationServerIndex]?.url;
|
|
5348
6018
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5349
6019
|
},
|
|
5350
6020
|
};
|
|
5351
6021
|
};
|
|
5352
6022
|
/**
|
|
5353
|
-
*
|
|
6023
|
+
* StaffMeApi - factory interface
|
|
5354
6024
|
* @export
|
|
5355
6025
|
*/
|
|
5356
|
-
export const
|
|
5357
|
-
const localVarFp =
|
|
6026
|
+
export const StaffMeApiFactory = function (configuration, basePath, axios) {
|
|
6027
|
+
const localVarFp = StaffMeApiFp(configuration);
|
|
5358
6028
|
return {
|
|
5359
6029
|
/**
|
|
5360
|
-
*
|
|
5361
|
-
* @summary
|
|
6030
|
+
* The signed-in Takaro Staff member and their tier (ADR 0026). Deliberately nothing else: no domains, no permissions, and never a token.<br> OperationId: `StaffMeControllerMe`
|
|
6031
|
+
* @summary Who this Staff session belongs to
|
|
5362
6032
|
* @param {*} [options] Override http request option.
|
|
5363
6033
|
* @throws {RequiredError}
|
|
5364
6034
|
*/
|
|
5365
|
-
|
|
5366
|
-
return localVarFp.
|
|
6035
|
+
staffMeControllerMe(options) {
|
|
6036
|
+
return localVarFp.staffMeControllerMe(options).then((request) => request(axios, basePath));
|
|
5367
6037
|
},
|
|
5368
6038
|
};
|
|
5369
6039
|
};
|
|
5370
6040
|
/**
|
|
5371
|
-
*
|
|
6041
|
+
* StaffMeApi - object-oriented interface
|
|
5372
6042
|
* @export
|
|
5373
|
-
* @class
|
|
6043
|
+
* @class StaffMeApi
|
|
5374
6044
|
* @extends {BaseAPI}
|
|
5375
6045
|
*/
|
|
5376
|
-
export class
|
|
6046
|
+
export class StaffMeApi extends BaseAPI {
|
|
5377
6047
|
/**
|
|
5378
|
-
*
|
|
5379
|
-
* @summary
|
|
6048
|
+
* The signed-in Takaro Staff member and their tier (ADR 0026). Deliberately nothing else: no domains, no permissions, and never a token.<br> OperationId: `StaffMeControllerMe`
|
|
6049
|
+
* @summary Who this Staff session belongs to
|
|
6050
|
+
* @param {*} [options] Override http request option.
|
|
6051
|
+
* @throws {RequiredError}
|
|
6052
|
+
* @memberof StaffMeApi
|
|
6053
|
+
*/
|
|
6054
|
+
staffMeControllerMe(options) {
|
|
6055
|
+
return StaffMeApiFp(this.configuration)
|
|
6056
|
+
.staffMeControllerMe(options)
|
|
6057
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6058
|
+
}
|
|
6059
|
+
}
|
|
6060
|
+
/**
|
|
6061
|
+
* StaffPlanApi - axios parameter creator
|
|
6062
|
+
* @export
|
|
6063
|
+
*/
|
|
6064
|
+
export const StaffPlanApiAxiosParamCreator = function (configuration) {
|
|
6065
|
+
return {
|
|
6066
|
+
/**
|
|
6067
|
+
* Refused while any Domain is on the Plan or any Distributor allows it. Frees its billing-provider product for another Plan; the history keeps the old link. Idempotent.<br> OperationId: `StaffPlanControllerArchive`
|
|
6068
|
+
* @summary Archive a Plan
|
|
6069
|
+
* @param {string} id
|
|
6070
|
+
* @param {PlanArchiveInputDTO} [planArchiveInputDTO] PlanArchiveInputDTO
|
|
6071
|
+
* @param {*} [options] Override http request option.
|
|
6072
|
+
* @throws {RequiredError}
|
|
6073
|
+
*/
|
|
6074
|
+
staffPlanControllerArchive: async (id, planArchiveInputDTO, options = {}) => {
|
|
6075
|
+
// verify required parameter 'id' is not null or undefined
|
|
6076
|
+
assertParamExists('staffPlanControllerArchive', 'id', id);
|
|
6077
|
+
const localVarPath = `/staff/plans/{id}/archive`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
6078
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6079
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6080
|
+
let baseOptions;
|
|
6081
|
+
if (configuration) {
|
|
6082
|
+
baseOptions = configuration.baseOptions;
|
|
6083
|
+
}
|
|
6084
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6085
|
+
const localVarHeaderParameter = {};
|
|
6086
|
+
const localVarQueryParameter = {};
|
|
6087
|
+
// authentication staffSession required
|
|
6088
|
+
// authentication adminAuth required
|
|
6089
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
6090
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6091
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6092
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6093
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6094
|
+
localVarRequestOptions.data = serializeDataIfNeeded(planArchiveInputDTO, localVarRequestOptions, configuration);
|
|
6095
|
+
return {
|
|
6096
|
+
url: toPathString(localVarUrlObj),
|
|
6097
|
+
options: localVarRequestOptions,
|
|
6098
|
+
};
|
|
6099
|
+
},
|
|
6100
|
+
/**
|
|
6101
|
+
* Omitted limits take the Domain column defaults. Recorded with who, when and the reason.<br> OperationId: `StaffPlanControllerCreate`
|
|
6102
|
+
* @summary Create a Plan
|
|
6103
|
+
* @param {PlanCreateInputDTO} [planCreateInputDTO] PlanCreateInputDTO
|
|
6104
|
+
* @param {*} [options] Override http request option.
|
|
6105
|
+
* @throws {RequiredError}
|
|
6106
|
+
*/
|
|
6107
|
+
staffPlanControllerCreate: async (planCreateInputDTO, options = {}) => {
|
|
6108
|
+
const localVarPath = `/staff/plans`;
|
|
6109
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6110
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6111
|
+
let baseOptions;
|
|
6112
|
+
if (configuration) {
|
|
6113
|
+
baseOptions = configuration.baseOptions;
|
|
6114
|
+
}
|
|
6115
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6116
|
+
const localVarHeaderParameter = {};
|
|
6117
|
+
const localVarQueryParameter = {};
|
|
6118
|
+
// authentication staffSession required
|
|
6119
|
+
// authentication adminAuth required
|
|
6120
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
6121
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6122
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6123
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6124
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6125
|
+
localVarRequestOptions.data = serializeDataIfNeeded(planCreateInputDTO, localVarRequestOptions, configuration);
|
|
6126
|
+
return {
|
|
6127
|
+
url: toPathString(localVarUrlObj),
|
|
6128
|
+
options: localVarRequestOptions,
|
|
6129
|
+
};
|
|
6130
|
+
},
|
|
6131
|
+
/**
|
|
6132
|
+
* Newest first, each with the Plan as it was after.<br> OperationId: `StaffPlanControllerHistory`
|
|
6133
|
+
* @summary Change history of a Plan
|
|
6134
|
+
* @param {string} id
|
|
6135
|
+
* @param {*} [options] Override http request option.
|
|
6136
|
+
* @throws {RequiredError}
|
|
6137
|
+
*/
|
|
6138
|
+
staffPlanControllerHistory: async (id, options = {}) => {
|
|
6139
|
+
// verify required parameter 'id' is not null or undefined
|
|
6140
|
+
assertParamExists('staffPlanControllerHistory', 'id', id);
|
|
6141
|
+
const localVarPath = `/staff/plans/{id}/history`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
6142
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6143
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6144
|
+
let baseOptions;
|
|
6145
|
+
if (configuration) {
|
|
6146
|
+
baseOptions = configuration.baseOptions;
|
|
6147
|
+
}
|
|
6148
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
6149
|
+
const localVarHeaderParameter = {};
|
|
6150
|
+
const localVarQueryParameter = {};
|
|
6151
|
+
// authentication staffSession required
|
|
6152
|
+
// authentication adminAuth required
|
|
6153
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
6154
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6155
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6156
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6157
|
+
return {
|
|
6158
|
+
url: toPathString(localVarUrlObj),
|
|
6159
|
+
options: localVarRequestOptions,
|
|
6160
|
+
};
|
|
6161
|
+
},
|
|
6162
|
+
/**
|
|
6163
|
+
* Creates a Plan per billing-provider product in one transaction; a no-op once any import was recorded. Domains and Distributors still on a legacy product id move to its Plan, and a Domain that predates Plans keeps its hand-set limits as overrides. A product already linked to a Plan maps to that Plan instead.<br> OperationId: `StaffPlanControllerImport`
|
|
6164
|
+
* @summary Import Plans from the billing provider
|
|
6165
|
+
* @param {PlanImportInputDTO} [planImportInputDTO] PlanImportInputDTO
|
|
6166
|
+
* @param {*} [options] Override http request option.
|
|
6167
|
+
* @throws {RequiredError}
|
|
6168
|
+
*/
|
|
6169
|
+
staffPlanControllerImport: async (planImportInputDTO, options = {}) => {
|
|
6170
|
+
const localVarPath = `/staff/plans/import`;
|
|
6171
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6172
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6173
|
+
let baseOptions;
|
|
6174
|
+
if (configuration) {
|
|
6175
|
+
baseOptions = configuration.baseOptions;
|
|
6176
|
+
}
|
|
6177
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6178
|
+
const localVarHeaderParameter = {};
|
|
6179
|
+
const localVarQueryParameter = {};
|
|
6180
|
+
// authentication staffSession required
|
|
6181
|
+
// authentication adminAuth required
|
|
6182
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
6183
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6184
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6185
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6186
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6187
|
+
localVarRequestOptions.data = serializeDataIfNeeded(planImportInputDTO, localVarRequestOptions, configuration);
|
|
6188
|
+
return {
|
|
6189
|
+
url: toPathString(localVarUrlObj),
|
|
6190
|
+
options: localVarRequestOptions,
|
|
6191
|
+
};
|
|
6192
|
+
},
|
|
6193
|
+
/**
|
|
6194
|
+
* True once an import has created any Plan, even if those Plans were later unlinked or archived.<br> OperationId: `StaffPlanControllerImportStatus`
|
|
6195
|
+
* @summary Whether the billing-provider import ran
|
|
6196
|
+
* @param {*} [options] Override http request option.
|
|
6197
|
+
* @throws {RequiredError}
|
|
6198
|
+
*/
|
|
6199
|
+
staffPlanControllerImportStatus: async (options = {}) => {
|
|
6200
|
+
const localVarPath = `/staff/plans/import`;
|
|
6201
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6202
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6203
|
+
let baseOptions;
|
|
6204
|
+
if (configuration) {
|
|
6205
|
+
baseOptions = configuration.baseOptions;
|
|
6206
|
+
}
|
|
6207
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
6208
|
+
const localVarHeaderParameter = {};
|
|
6209
|
+
const localVarQueryParameter = {};
|
|
6210
|
+
// authentication staffSession required
|
|
6211
|
+
// authentication adminAuth required
|
|
6212
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
6213
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6214
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6215
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6216
|
+
return {
|
|
6217
|
+
url: toPathString(localVarUrlObj),
|
|
6218
|
+
options: localVarRequestOptions,
|
|
6219
|
+
};
|
|
6220
|
+
},
|
|
6221
|
+
/**
|
|
6222
|
+
* Every Takaro Plan, oldest first. Archived Plans only with `includeArchived=true`. The ids here are what a Distributor’s allowedPlans and a Domain’s planId hold.<br> OperationId: `StaffPlanControllerList`
|
|
6223
|
+
* @summary List Plans
|
|
6224
|
+
* @param {any} [includeArchived]
|
|
6225
|
+
* @param {*} [options] Override http request option.
|
|
6226
|
+
* @throws {RequiredError}
|
|
6227
|
+
*/
|
|
6228
|
+
staffPlanControllerList: async (includeArchived, options = {}) => {
|
|
6229
|
+
const localVarPath = `/staff/plans`;
|
|
6230
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6231
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6232
|
+
let baseOptions;
|
|
6233
|
+
if (configuration) {
|
|
6234
|
+
baseOptions = configuration.baseOptions;
|
|
6235
|
+
}
|
|
6236
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
6237
|
+
const localVarHeaderParameter = {};
|
|
6238
|
+
const localVarQueryParameter = {};
|
|
6239
|
+
// authentication staffSession required
|
|
6240
|
+
// authentication adminAuth required
|
|
6241
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
6242
|
+
if (includeArchived !== undefined) {
|
|
6243
|
+
for (const [key, value] of Object.entries(includeArchived)) {
|
|
6244
|
+
localVarQueryParameter[key] = value;
|
|
6245
|
+
}
|
|
6246
|
+
}
|
|
6247
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6248
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6249
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6250
|
+
return {
|
|
6251
|
+
url: toPathString(localVarUrlObj),
|
|
6252
|
+
options: localVarRequestOptions,
|
|
6253
|
+
};
|
|
6254
|
+
},
|
|
6255
|
+
/**
|
|
6256
|
+
* Every product the billing provider knows about, with its prices, unfiltered by storefront lookup keys. A Plan’s stripeProductId is one of these ids.<br> OperationId: `StaffPlanControllerListStripeProducts`
|
|
6257
|
+
* @summary The billing provider’s products
|
|
6258
|
+
* @param {*} [options] Override http request option.
|
|
6259
|
+
* @throws {RequiredError}
|
|
6260
|
+
*/
|
|
6261
|
+
staffPlanControllerListStripeProducts: async (options = {}) => {
|
|
6262
|
+
const localVarPath = `/staff/stripe-products`;
|
|
6263
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6264
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6265
|
+
let baseOptions;
|
|
6266
|
+
if (configuration) {
|
|
6267
|
+
baseOptions = configuration.baseOptions;
|
|
6268
|
+
}
|
|
6269
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
6270
|
+
const localVarHeaderParameter = {};
|
|
6271
|
+
const localVarQueryParameter = {};
|
|
6272
|
+
// authentication staffSession required
|
|
6273
|
+
// authentication adminAuth required
|
|
6274
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
6275
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6276
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6277
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6278
|
+
return {
|
|
6279
|
+
url: toPathString(localVarUrlObj),
|
|
6280
|
+
options: localVarRequestOptions,
|
|
6281
|
+
};
|
|
6282
|
+
},
|
|
6283
|
+
/**
|
|
6284
|
+
* A dry run of the proposed limits: how many Domains change, how many game servers would be disabled, and how many Domains would be over their user or role limits. Overrides are taken into account.<br> OperationId: `StaffPlanControllerPreview`
|
|
6285
|
+
* @summary Preview a Plan edit
|
|
6286
|
+
* @param {string} id
|
|
6287
|
+
* @param {PlanPreviewInputDTO} [planPreviewInputDTO] PlanPreviewInputDTO
|
|
6288
|
+
* @param {*} [options] Override http request option.
|
|
6289
|
+
* @throws {RequiredError}
|
|
6290
|
+
*/
|
|
6291
|
+
staffPlanControllerPreview: async (id, planPreviewInputDTO, options = {}) => {
|
|
6292
|
+
// verify required parameter 'id' is not null or undefined
|
|
6293
|
+
assertParamExists('staffPlanControllerPreview', 'id', id);
|
|
6294
|
+
const localVarPath = `/staff/plans/{id}/preview`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
6295
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6296
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6297
|
+
let baseOptions;
|
|
6298
|
+
if (configuration) {
|
|
6299
|
+
baseOptions = configuration.baseOptions;
|
|
6300
|
+
}
|
|
6301
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6302
|
+
const localVarHeaderParameter = {};
|
|
6303
|
+
const localVarQueryParameter = {};
|
|
6304
|
+
// authentication staffSession required
|
|
6305
|
+
// authentication adminAuth required
|
|
6306
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
6307
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6308
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6309
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6310
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6311
|
+
localVarRequestOptions.data = serializeDataIfNeeded(planPreviewInputDTO, localVarRequestOptions, configuration);
|
|
6312
|
+
return {
|
|
6313
|
+
url: toPathString(localVarUrlObj),
|
|
6314
|
+
options: localVarRequestOptions,
|
|
6315
|
+
};
|
|
6316
|
+
},
|
|
6317
|
+
/**
|
|
6318
|
+
* Changed limits reach every Domain on the Plan shortly after, through a queued job. A shrink of `maxGameservers` disables the newest excess servers; preview it first. Changing or removing the billing-provider product is refused with a 409 while a subscription-backed Domain is on the Plan.<br> OperationId: `StaffPlanControllerUpdate`
|
|
6319
|
+
* @summary Update a Plan
|
|
6320
|
+
* @param {string} id
|
|
6321
|
+
* @param {PlanUpdateInputDTO} [planUpdateInputDTO] PlanUpdateInputDTO
|
|
6322
|
+
* @param {*} [options] Override http request option.
|
|
6323
|
+
* @throws {RequiredError}
|
|
6324
|
+
*/
|
|
6325
|
+
staffPlanControllerUpdate: async (id, planUpdateInputDTO, options = {}) => {
|
|
6326
|
+
// verify required parameter 'id' is not null or undefined
|
|
6327
|
+
assertParamExists('staffPlanControllerUpdate', 'id', id);
|
|
6328
|
+
const localVarPath = `/staff/plans/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
6329
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6330
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6331
|
+
let baseOptions;
|
|
6332
|
+
if (configuration) {
|
|
6333
|
+
baseOptions = configuration.baseOptions;
|
|
6334
|
+
}
|
|
6335
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
6336
|
+
const localVarHeaderParameter = {};
|
|
6337
|
+
const localVarQueryParameter = {};
|
|
6338
|
+
// authentication staffSession required
|
|
6339
|
+
// authentication adminAuth required
|
|
6340
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
6341
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6342
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6343
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6344
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6345
|
+
localVarRequestOptions.data = serializeDataIfNeeded(planUpdateInputDTO, localVarRequestOptions, configuration);
|
|
6346
|
+
return {
|
|
6347
|
+
url: toPathString(localVarUrlObj),
|
|
6348
|
+
options: localVarRequestOptions,
|
|
6349
|
+
};
|
|
6350
|
+
},
|
|
6351
|
+
};
|
|
6352
|
+
};
|
|
6353
|
+
/**
|
|
6354
|
+
* StaffPlanApi - functional programming interface
|
|
6355
|
+
* @export
|
|
6356
|
+
*/
|
|
6357
|
+
export const StaffPlanApiFp = function (configuration) {
|
|
6358
|
+
const localVarAxiosParamCreator = StaffPlanApiAxiosParamCreator(configuration);
|
|
6359
|
+
return {
|
|
6360
|
+
/**
|
|
6361
|
+
* Refused while any Domain is on the Plan or any Distributor allows it. Frees its billing-provider product for another Plan; the history keeps the old link. Idempotent.<br> OperationId: `StaffPlanControllerArchive`
|
|
6362
|
+
* @summary Archive a Plan
|
|
6363
|
+
* @param {string} id
|
|
6364
|
+
* @param {PlanArchiveInputDTO} [planArchiveInputDTO] PlanArchiveInputDTO
|
|
6365
|
+
* @param {*} [options] Override http request option.
|
|
6366
|
+
* @throws {RequiredError}
|
|
6367
|
+
*/
|
|
6368
|
+
async staffPlanControllerArchive(id, planArchiveInputDTO, options) {
|
|
6369
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerArchive(id, planArchiveInputDTO, options);
|
|
6370
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6371
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerArchive']?.[localVarOperationServerIndex]?.url;
|
|
6372
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6373
|
+
},
|
|
6374
|
+
/**
|
|
6375
|
+
* Omitted limits take the Domain column defaults. Recorded with who, when and the reason.<br> OperationId: `StaffPlanControllerCreate`
|
|
6376
|
+
* @summary Create a Plan
|
|
6377
|
+
* @param {PlanCreateInputDTO} [planCreateInputDTO] PlanCreateInputDTO
|
|
6378
|
+
* @param {*} [options] Override http request option.
|
|
6379
|
+
* @throws {RequiredError}
|
|
6380
|
+
*/
|
|
6381
|
+
async staffPlanControllerCreate(planCreateInputDTO, options) {
|
|
6382
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerCreate(planCreateInputDTO, options);
|
|
6383
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6384
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerCreate']?.[localVarOperationServerIndex]?.url;
|
|
6385
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6386
|
+
},
|
|
6387
|
+
/**
|
|
6388
|
+
* Newest first, each with the Plan as it was after.<br> OperationId: `StaffPlanControllerHistory`
|
|
6389
|
+
* @summary Change history of a Plan
|
|
6390
|
+
* @param {string} id
|
|
6391
|
+
* @param {*} [options] Override http request option.
|
|
6392
|
+
* @throws {RequiredError}
|
|
6393
|
+
*/
|
|
6394
|
+
async staffPlanControllerHistory(id, options) {
|
|
6395
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerHistory(id, options);
|
|
6396
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6397
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerHistory']?.[localVarOperationServerIndex]?.url;
|
|
6398
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6399
|
+
},
|
|
6400
|
+
/**
|
|
6401
|
+
* Creates a Plan per billing-provider product in one transaction; a no-op once any import was recorded. Domains and Distributors still on a legacy product id move to its Plan, and a Domain that predates Plans keeps its hand-set limits as overrides. A product already linked to a Plan maps to that Plan instead.<br> OperationId: `StaffPlanControllerImport`
|
|
6402
|
+
* @summary Import Plans from the billing provider
|
|
6403
|
+
* @param {PlanImportInputDTO} [planImportInputDTO] PlanImportInputDTO
|
|
6404
|
+
* @param {*} [options] Override http request option.
|
|
6405
|
+
* @throws {RequiredError}
|
|
6406
|
+
*/
|
|
6407
|
+
async staffPlanControllerImport(planImportInputDTO, options) {
|
|
6408
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerImport(planImportInputDTO, options);
|
|
6409
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6410
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerImport']?.[localVarOperationServerIndex]?.url;
|
|
6411
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6412
|
+
},
|
|
6413
|
+
/**
|
|
6414
|
+
* True once an import has created any Plan, even if those Plans were later unlinked or archived.<br> OperationId: `StaffPlanControllerImportStatus`
|
|
6415
|
+
* @summary Whether the billing-provider import ran
|
|
6416
|
+
* @param {*} [options] Override http request option.
|
|
6417
|
+
* @throws {RequiredError}
|
|
6418
|
+
*/
|
|
6419
|
+
async staffPlanControllerImportStatus(options) {
|
|
6420
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerImportStatus(options);
|
|
6421
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6422
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerImportStatus']?.[localVarOperationServerIndex]?.url;
|
|
6423
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6424
|
+
},
|
|
6425
|
+
/**
|
|
6426
|
+
* Every Takaro Plan, oldest first. Archived Plans only with `includeArchived=true`. The ids here are what a Distributor’s allowedPlans and a Domain’s planId hold.<br> OperationId: `StaffPlanControllerList`
|
|
6427
|
+
* @summary List Plans
|
|
6428
|
+
* @param {any} [includeArchived]
|
|
6429
|
+
* @param {*} [options] Override http request option.
|
|
6430
|
+
* @throws {RequiredError}
|
|
6431
|
+
*/
|
|
6432
|
+
async staffPlanControllerList(includeArchived, options) {
|
|
6433
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerList(includeArchived, options);
|
|
6434
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6435
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerList']?.[localVarOperationServerIndex]?.url;
|
|
6436
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6437
|
+
},
|
|
6438
|
+
/**
|
|
6439
|
+
* Every product the billing provider knows about, with its prices, unfiltered by storefront lookup keys. A Plan’s stripeProductId is one of these ids.<br> OperationId: `StaffPlanControllerListStripeProducts`
|
|
6440
|
+
* @summary The billing provider’s products
|
|
6441
|
+
* @param {*} [options] Override http request option.
|
|
6442
|
+
* @throws {RequiredError}
|
|
6443
|
+
*/
|
|
6444
|
+
async staffPlanControllerListStripeProducts(options) {
|
|
6445
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerListStripeProducts(options);
|
|
6446
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6447
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerListStripeProducts']?.[localVarOperationServerIndex]?.url;
|
|
6448
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6449
|
+
},
|
|
6450
|
+
/**
|
|
6451
|
+
* A dry run of the proposed limits: how many Domains change, how many game servers would be disabled, and how many Domains would be over their user or role limits. Overrides are taken into account.<br> OperationId: `StaffPlanControllerPreview`
|
|
6452
|
+
* @summary Preview a Plan edit
|
|
6453
|
+
* @param {string} id
|
|
6454
|
+
* @param {PlanPreviewInputDTO} [planPreviewInputDTO] PlanPreviewInputDTO
|
|
6455
|
+
* @param {*} [options] Override http request option.
|
|
6456
|
+
* @throws {RequiredError}
|
|
6457
|
+
*/
|
|
6458
|
+
async staffPlanControllerPreview(id, planPreviewInputDTO, options) {
|
|
6459
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerPreview(id, planPreviewInputDTO, options);
|
|
6460
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6461
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerPreview']?.[localVarOperationServerIndex]?.url;
|
|
6462
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6463
|
+
},
|
|
6464
|
+
/**
|
|
6465
|
+
* Changed limits reach every Domain on the Plan shortly after, through a queued job. A shrink of `maxGameservers` disables the newest excess servers; preview it first. Changing or removing the billing-provider product is refused with a 409 while a subscription-backed Domain is on the Plan.<br> OperationId: `StaffPlanControllerUpdate`
|
|
6466
|
+
* @summary Update a Plan
|
|
6467
|
+
* @param {string} id
|
|
6468
|
+
* @param {PlanUpdateInputDTO} [planUpdateInputDTO] PlanUpdateInputDTO
|
|
6469
|
+
* @param {*} [options] Override http request option.
|
|
6470
|
+
* @throws {RequiredError}
|
|
6471
|
+
*/
|
|
6472
|
+
async staffPlanControllerUpdate(id, planUpdateInputDTO, options) {
|
|
6473
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerUpdate(id, planUpdateInputDTO, options);
|
|
6474
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6475
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerUpdate']?.[localVarOperationServerIndex]?.url;
|
|
6476
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6477
|
+
},
|
|
6478
|
+
};
|
|
6479
|
+
};
|
|
6480
|
+
/**
|
|
6481
|
+
* StaffPlanApi - factory interface
|
|
6482
|
+
* @export
|
|
6483
|
+
*/
|
|
6484
|
+
export const StaffPlanApiFactory = function (configuration, basePath, axios) {
|
|
6485
|
+
const localVarFp = StaffPlanApiFp(configuration);
|
|
6486
|
+
return {
|
|
6487
|
+
/**
|
|
6488
|
+
* Refused while any Domain is on the Plan or any Distributor allows it. Frees its billing-provider product for another Plan; the history keeps the old link. Idempotent.<br> OperationId: `StaffPlanControllerArchive`
|
|
6489
|
+
* @summary Archive a Plan
|
|
6490
|
+
* @param {string} id
|
|
6491
|
+
* @param {PlanArchiveInputDTO} [planArchiveInputDTO] PlanArchiveInputDTO
|
|
6492
|
+
* @param {*} [options] Override http request option.
|
|
6493
|
+
* @throws {RequiredError}
|
|
6494
|
+
*/
|
|
6495
|
+
staffPlanControllerArchive(id, planArchiveInputDTO, options) {
|
|
6496
|
+
return localVarFp
|
|
6497
|
+
.staffPlanControllerArchive(id, planArchiveInputDTO, options)
|
|
6498
|
+
.then((request) => request(axios, basePath));
|
|
6499
|
+
},
|
|
6500
|
+
/**
|
|
6501
|
+
* Omitted limits take the Domain column defaults. Recorded with who, when and the reason.<br> OperationId: `StaffPlanControllerCreate`
|
|
6502
|
+
* @summary Create a Plan
|
|
6503
|
+
* @param {PlanCreateInputDTO} [planCreateInputDTO] PlanCreateInputDTO
|
|
6504
|
+
* @param {*} [options] Override http request option.
|
|
6505
|
+
* @throws {RequiredError}
|
|
6506
|
+
*/
|
|
6507
|
+
staffPlanControllerCreate(planCreateInputDTO, options) {
|
|
6508
|
+
return localVarFp
|
|
6509
|
+
.staffPlanControllerCreate(planCreateInputDTO, options)
|
|
6510
|
+
.then((request) => request(axios, basePath));
|
|
6511
|
+
},
|
|
6512
|
+
/**
|
|
6513
|
+
* Newest first, each with the Plan as it was after.<br> OperationId: `StaffPlanControllerHistory`
|
|
6514
|
+
* @summary Change history of a Plan
|
|
6515
|
+
* @param {string} id
|
|
6516
|
+
* @param {*} [options] Override http request option.
|
|
6517
|
+
* @throws {RequiredError}
|
|
6518
|
+
*/
|
|
6519
|
+
staffPlanControllerHistory(id, options) {
|
|
6520
|
+
return localVarFp.staffPlanControllerHistory(id, options).then((request) => request(axios, basePath));
|
|
6521
|
+
},
|
|
6522
|
+
/**
|
|
6523
|
+
* Creates a Plan per billing-provider product in one transaction; a no-op once any import was recorded. Domains and Distributors still on a legacy product id move to its Plan, and a Domain that predates Plans keeps its hand-set limits as overrides. A product already linked to a Plan maps to that Plan instead.<br> OperationId: `StaffPlanControllerImport`
|
|
6524
|
+
* @summary Import Plans from the billing provider
|
|
6525
|
+
* @param {PlanImportInputDTO} [planImportInputDTO] PlanImportInputDTO
|
|
6526
|
+
* @param {*} [options] Override http request option.
|
|
6527
|
+
* @throws {RequiredError}
|
|
6528
|
+
*/
|
|
6529
|
+
staffPlanControllerImport(planImportInputDTO, options) {
|
|
6530
|
+
return localVarFp
|
|
6531
|
+
.staffPlanControllerImport(planImportInputDTO, options)
|
|
6532
|
+
.then((request) => request(axios, basePath));
|
|
6533
|
+
},
|
|
6534
|
+
/**
|
|
6535
|
+
* True once an import has created any Plan, even if those Plans were later unlinked or archived.<br> OperationId: `StaffPlanControllerImportStatus`
|
|
6536
|
+
* @summary Whether the billing-provider import ran
|
|
6537
|
+
* @param {*} [options] Override http request option.
|
|
6538
|
+
* @throws {RequiredError}
|
|
6539
|
+
*/
|
|
6540
|
+
staffPlanControllerImportStatus(options) {
|
|
6541
|
+
return localVarFp.staffPlanControllerImportStatus(options).then((request) => request(axios, basePath));
|
|
6542
|
+
},
|
|
6543
|
+
/**
|
|
6544
|
+
* Every Takaro Plan, oldest first. Archived Plans only with `includeArchived=true`. The ids here are what a Distributor’s allowedPlans and a Domain’s planId hold.<br> OperationId: `StaffPlanControllerList`
|
|
6545
|
+
* @summary List Plans
|
|
6546
|
+
* @param {any} [includeArchived]
|
|
6547
|
+
* @param {*} [options] Override http request option.
|
|
6548
|
+
* @throws {RequiredError}
|
|
6549
|
+
*/
|
|
6550
|
+
staffPlanControllerList(includeArchived, options) {
|
|
6551
|
+
return localVarFp.staffPlanControllerList(includeArchived, options).then((request) => request(axios, basePath));
|
|
6552
|
+
},
|
|
6553
|
+
/**
|
|
6554
|
+
* Every product the billing provider knows about, with its prices, unfiltered by storefront lookup keys. A Plan’s stripeProductId is one of these ids.<br> OperationId: `StaffPlanControllerListStripeProducts`
|
|
6555
|
+
* @summary The billing provider’s products
|
|
6556
|
+
* @param {*} [options] Override http request option.
|
|
6557
|
+
* @throws {RequiredError}
|
|
6558
|
+
*/
|
|
6559
|
+
staffPlanControllerListStripeProducts(options) {
|
|
6560
|
+
return localVarFp.staffPlanControllerListStripeProducts(options).then((request) => request(axios, basePath));
|
|
6561
|
+
},
|
|
6562
|
+
/**
|
|
6563
|
+
* A dry run of the proposed limits: how many Domains change, how many game servers would be disabled, and how many Domains would be over their user or role limits. Overrides are taken into account.<br> OperationId: `StaffPlanControllerPreview`
|
|
6564
|
+
* @summary Preview a Plan edit
|
|
6565
|
+
* @param {string} id
|
|
6566
|
+
* @param {PlanPreviewInputDTO} [planPreviewInputDTO] PlanPreviewInputDTO
|
|
6567
|
+
* @param {*} [options] Override http request option.
|
|
6568
|
+
* @throws {RequiredError}
|
|
6569
|
+
*/
|
|
6570
|
+
staffPlanControllerPreview(id, planPreviewInputDTO, options) {
|
|
6571
|
+
return localVarFp
|
|
6572
|
+
.staffPlanControllerPreview(id, planPreviewInputDTO, options)
|
|
6573
|
+
.then((request) => request(axios, basePath));
|
|
6574
|
+
},
|
|
6575
|
+
/**
|
|
6576
|
+
* Changed limits reach every Domain on the Plan shortly after, through a queued job. A shrink of `maxGameservers` disables the newest excess servers; preview it first. Changing or removing the billing-provider product is refused with a 409 while a subscription-backed Domain is on the Plan.<br> OperationId: `StaffPlanControllerUpdate`
|
|
6577
|
+
* @summary Update a Plan
|
|
6578
|
+
* @param {string} id
|
|
6579
|
+
* @param {PlanUpdateInputDTO} [planUpdateInputDTO] PlanUpdateInputDTO
|
|
6580
|
+
* @param {*} [options] Override http request option.
|
|
6581
|
+
* @throws {RequiredError}
|
|
6582
|
+
*/
|
|
6583
|
+
staffPlanControllerUpdate(id, planUpdateInputDTO, options) {
|
|
6584
|
+
return localVarFp
|
|
6585
|
+
.staffPlanControllerUpdate(id, planUpdateInputDTO, options)
|
|
6586
|
+
.then((request) => request(axios, basePath));
|
|
6587
|
+
},
|
|
6588
|
+
};
|
|
6589
|
+
};
|
|
6590
|
+
/**
|
|
6591
|
+
* StaffPlanApi - object-oriented interface
|
|
6592
|
+
* @export
|
|
6593
|
+
* @class StaffPlanApi
|
|
6594
|
+
* @extends {BaseAPI}
|
|
6595
|
+
*/
|
|
6596
|
+
export class StaffPlanApi extends BaseAPI {
|
|
6597
|
+
/**
|
|
6598
|
+
* Refused while any Domain is on the Plan or any Distributor allows it. Frees its billing-provider product for another Plan; the history keeps the old link. Idempotent.<br> OperationId: `StaffPlanControllerArchive`
|
|
6599
|
+
* @summary Archive a Plan
|
|
6600
|
+
* @param {string} id
|
|
6601
|
+
* @param {PlanArchiveInputDTO} [planArchiveInputDTO] PlanArchiveInputDTO
|
|
6602
|
+
* @param {*} [options] Override http request option.
|
|
6603
|
+
* @throws {RequiredError}
|
|
6604
|
+
* @memberof StaffPlanApi
|
|
6605
|
+
*/
|
|
6606
|
+
staffPlanControllerArchive(id, planArchiveInputDTO, options) {
|
|
6607
|
+
return StaffPlanApiFp(this.configuration)
|
|
6608
|
+
.staffPlanControllerArchive(id, planArchiveInputDTO, options)
|
|
6609
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6610
|
+
}
|
|
6611
|
+
/**
|
|
6612
|
+
* Omitted limits take the Domain column defaults. Recorded with who, when and the reason.<br> OperationId: `StaffPlanControllerCreate`
|
|
6613
|
+
* @summary Create a Plan
|
|
6614
|
+
* @param {PlanCreateInputDTO} [planCreateInputDTO] PlanCreateInputDTO
|
|
6615
|
+
* @param {*} [options] Override http request option.
|
|
6616
|
+
* @throws {RequiredError}
|
|
6617
|
+
* @memberof StaffPlanApi
|
|
6618
|
+
*/
|
|
6619
|
+
staffPlanControllerCreate(planCreateInputDTO, options) {
|
|
6620
|
+
return StaffPlanApiFp(this.configuration)
|
|
6621
|
+
.staffPlanControllerCreate(planCreateInputDTO, options)
|
|
6622
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6623
|
+
}
|
|
6624
|
+
/**
|
|
6625
|
+
* Newest first, each with the Plan as it was after.<br> OperationId: `StaffPlanControllerHistory`
|
|
6626
|
+
* @summary Change history of a Plan
|
|
6627
|
+
* @param {string} id
|
|
6628
|
+
* @param {*} [options] Override http request option.
|
|
6629
|
+
* @throws {RequiredError}
|
|
6630
|
+
* @memberof StaffPlanApi
|
|
6631
|
+
*/
|
|
6632
|
+
staffPlanControllerHistory(id, options) {
|
|
6633
|
+
return StaffPlanApiFp(this.configuration)
|
|
6634
|
+
.staffPlanControllerHistory(id, options)
|
|
6635
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6636
|
+
}
|
|
6637
|
+
/**
|
|
6638
|
+
* Creates a Plan per billing-provider product in one transaction; a no-op once any import was recorded. Domains and Distributors still on a legacy product id move to its Plan, and a Domain that predates Plans keeps its hand-set limits as overrides. A product already linked to a Plan maps to that Plan instead.<br> OperationId: `StaffPlanControllerImport`
|
|
6639
|
+
* @summary Import Plans from the billing provider
|
|
6640
|
+
* @param {PlanImportInputDTO} [planImportInputDTO] PlanImportInputDTO
|
|
6641
|
+
* @param {*} [options] Override http request option.
|
|
6642
|
+
* @throws {RequiredError}
|
|
6643
|
+
* @memberof StaffPlanApi
|
|
6644
|
+
*/
|
|
6645
|
+
staffPlanControllerImport(planImportInputDTO, options) {
|
|
6646
|
+
return StaffPlanApiFp(this.configuration)
|
|
6647
|
+
.staffPlanControllerImport(planImportInputDTO, options)
|
|
6648
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6649
|
+
}
|
|
6650
|
+
/**
|
|
6651
|
+
* True once an import has created any Plan, even if those Plans were later unlinked or archived.<br> OperationId: `StaffPlanControllerImportStatus`
|
|
6652
|
+
* @summary Whether the billing-provider import ran
|
|
6653
|
+
* @param {*} [options] Override http request option.
|
|
6654
|
+
* @throws {RequiredError}
|
|
6655
|
+
* @memberof StaffPlanApi
|
|
6656
|
+
*/
|
|
6657
|
+
staffPlanControllerImportStatus(options) {
|
|
6658
|
+
return StaffPlanApiFp(this.configuration)
|
|
6659
|
+
.staffPlanControllerImportStatus(options)
|
|
6660
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6661
|
+
}
|
|
6662
|
+
/**
|
|
6663
|
+
* Every Takaro Plan, oldest first. Archived Plans only with `includeArchived=true`. The ids here are what a Distributor’s allowedPlans and a Domain’s planId hold.<br> OperationId: `StaffPlanControllerList`
|
|
6664
|
+
* @summary List Plans
|
|
6665
|
+
* @param {any} [includeArchived]
|
|
6666
|
+
* @param {*} [options] Override http request option.
|
|
6667
|
+
* @throws {RequiredError}
|
|
6668
|
+
* @memberof StaffPlanApi
|
|
6669
|
+
*/
|
|
6670
|
+
staffPlanControllerList(includeArchived, options) {
|
|
6671
|
+
return StaffPlanApiFp(this.configuration)
|
|
6672
|
+
.staffPlanControllerList(includeArchived, options)
|
|
6673
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6674
|
+
}
|
|
6675
|
+
/**
|
|
6676
|
+
* Every product the billing provider knows about, with its prices, unfiltered by storefront lookup keys. A Plan’s stripeProductId is one of these ids.<br> OperationId: `StaffPlanControllerListStripeProducts`
|
|
6677
|
+
* @summary The billing provider’s products
|
|
6678
|
+
* @param {*} [options] Override http request option.
|
|
6679
|
+
* @throws {RequiredError}
|
|
6680
|
+
* @memberof StaffPlanApi
|
|
6681
|
+
*/
|
|
6682
|
+
staffPlanControllerListStripeProducts(options) {
|
|
6683
|
+
return StaffPlanApiFp(this.configuration)
|
|
6684
|
+
.staffPlanControllerListStripeProducts(options)
|
|
6685
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6686
|
+
}
|
|
6687
|
+
/**
|
|
6688
|
+
* A dry run of the proposed limits: how many Domains change, how many game servers would be disabled, and how many Domains would be over their user or role limits. Overrides are taken into account.<br> OperationId: `StaffPlanControllerPreview`
|
|
6689
|
+
* @summary Preview a Plan edit
|
|
6690
|
+
* @param {string} id
|
|
6691
|
+
* @param {PlanPreviewInputDTO} [planPreviewInputDTO] PlanPreviewInputDTO
|
|
6692
|
+
* @param {*} [options] Override http request option.
|
|
6693
|
+
* @throws {RequiredError}
|
|
6694
|
+
* @memberof StaffPlanApi
|
|
6695
|
+
*/
|
|
6696
|
+
staffPlanControllerPreview(id, planPreviewInputDTO, options) {
|
|
6697
|
+
return StaffPlanApiFp(this.configuration)
|
|
6698
|
+
.staffPlanControllerPreview(id, planPreviewInputDTO, options)
|
|
6699
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6700
|
+
}
|
|
6701
|
+
/**
|
|
6702
|
+
* Changed limits reach every Domain on the Plan shortly after, through a queued job. A shrink of `maxGameservers` disables the newest excess servers; preview it first. Changing or removing the billing-provider product is refused with a 409 while a subscription-backed Domain is on the Plan.<br> OperationId: `StaffPlanControllerUpdate`
|
|
6703
|
+
* @summary Update a Plan
|
|
6704
|
+
* @param {string} id
|
|
6705
|
+
* @param {PlanUpdateInputDTO} [planUpdateInputDTO] PlanUpdateInputDTO
|
|
5380
6706
|
* @param {*} [options] Override http request option.
|
|
5381
6707
|
* @throws {RequiredError}
|
|
5382
6708
|
* @memberof StaffPlanApi
|
|
5383
6709
|
*/
|
|
5384
|
-
|
|
6710
|
+
staffPlanControllerUpdate(id, planUpdateInputDTO, options) {
|
|
5385
6711
|
return StaffPlanApiFp(this.configuration)
|
|
5386
|
-
.
|
|
6712
|
+
.staffPlanControllerUpdate(id, planUpdateInputDTO, options)
|
|
5387
6713
|
.then((request) => request(this.axios, this.basePath));
|
|
5388
6714
|
}
|
|
5389
6715
|
}
|