@takaro/apiclient 0.0.0-dev.20efd31 → 0.0.0-dev.2179af0
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 +6925 -2056
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/generated/api.js +2350 -290
- 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 +9661 -5972
- package/dist/generated-management/api.d.ts.map +1 -1
- package/dist/generated-management/api.js +1428 -121
- 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 +4 -3
|
@@ -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,8 +185,11 @@ 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',
|
|
@@ -207,6 +217,15 @@ export const EventCreateDTOEventNameEnum = {
|
|
|
207
217
|
PlayerDeath: 'player-death',
|
|
208
218
|
EntityKilled: 'entity-killed',
|
|
209
219
|
};
|
|
220
|
+
export const EventInventoryChangedCauseEnum = {
|
|
221
|
+
Pickup: 'pickup',
|
|
222
|
+
Drop: 'drop',
|
|
223
|
+
Craft: 'craft',
|
|
224
|
+
Loot: 'loot',
|
|
225
|
+
Trade: 'trade',
|
|
226
|
+
Death: 'death',
|
|
227
|
+
Other: 'other',
|
|
228
|
+
};
|
|
210
229
|
export const EventOutputDTOEventNameEnum = {
|
|
211
230
|
RoleAssigned: 'role-assigned',
|
|
212
231
|
RoleRemoved: 'role-removed',
|
|
@@ -223,6 +242,7 @@ export const EventOutputDTOEventNameEnum = {
|
|
|
223
242
|
SettingsSet: 'settings-set',
|
|
224
243
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
225
244
|
PlayerNewNameDetected: 'player-new-name-detected',
|
|
245
|
+
PlayerIdentityConflict: 'player-identity-conflict',
|
|
226
246
|
ServerStatusChanged: 'server-status-changed',
|
|
227
247
|
ModuleCreated: 'module-created',
|
|
228
248
|
ModuleUpdated: 'module-updated',
|
|
@@ -237,8 +257,11 @@ export const EventOutputDTOEventNameEnum = {
|
|
|
237
257
|
ShopOrderStatusChanged: 'shop-order-status-changed',
|
|
238
258
|
ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
|
|
239
259
|
PlayerLinked: 'player-linked',
|
|
260
|
+
PlayerUnlinked: 'player-unlinked',
|
|
261
|
+
PlayerMerged: 'player-merged',
|
|
240
262
|
GameserverCreated: 'gameserver-created',
|
|
241
263
|
GameserverUpdated: 'gameserver-updated',
|
|
264
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
242
265
|
GameserverDeleted: 'gameserver-deleted',
|
|
243
266
|
PlayerBanned: 'player-banned',
|
|
244
267
|
PlayerUnbanned: 'player-unbanned',
|
|
@@ -273,6 +296,7 @@ export const FixtureHistoryConflictDTOKindEnum = {
|
|
|
273
296
|
export const FixtureHistoryDeleteInputDTOStoreEnum = {
|
|
274
297
|
Analytics: 'analytics',
|
|
275
298
|
Postgres: 'postgres',
|
|
299
|
+
Tracking: 'tracking',
|
|
276
300
|
};
|
|
277
301
|
export const FixtureHistoryEventDTOEventNameEnum = {
|
|
278
302
|
PlayerConnected: 'player-connected',
|
|
@@ -291,18 +315,44 @@ export const FixtureHistoryOrderDTOStatusEnum = {
|
|
|
291
315
|
Completed: 'COMPLETED',
|
|
292
316
|
Canceled: 'CANCELED',
|
|
293
317
|
};
|
|
318
|
+
export const FixtureHistoryTrackingChangeDTOChangeTypeEnum = {
|
|
319
|
+
Added: 'added',
|
|
320
|
+
Removed: 'removed',
|
|
321
|
+
Changed: 'changed',
|
|
322
|
+
};
|
|
323
|
+
export const FixtureHistoryTrackingChangeDTOCauseEnum = {
|
|
324
|
+
Pickup: 'pickup',
|
|
325
|
+
Drop: 'drop',
|
|
326
|
+
Craft: 'craft',
|
|
327
|
+
Loot: 'loot',
|
|
328
|
+
Trade: 'trade',
|
|
329
|
+
Death: 'death',
|
|
330
|
+
Other: 'other',
|
|
331
|
+
};
|
|
294
332
|
export const GameServerCreateDTOTypeEnum = {
|
|
295
333
|
Sevendaystodie: 'SEVENDAYSTODIE',
|
|
296
334
|
Rust: 'RUST',
|
|
297
335
|
Generic: 'GENERIC',
|
|
298
336
|
Mock: 'MOCK',
|
|
299
337
|
};
|
|
338
|
+
export const GameServerCreateDTONameSourceEnum = {
|
|
339
|
+
Connector: 'connector',
|
|
340
|
+
Operator: 'operator',
|
|
341
|
+
};
|
|
342
|
+
export const GameServerIdentifyInputDTOProtocolVersionEnum = {
|
|
343
|
+
NUMBER_0: 0,
|
|
344
|
+
NUMBER_1: 1,
|
|
345
|
+
};
|
|
300
346
|
export const GameServerOutputDTOTypeEnum = {
|
|
301
347
|
Sevendaystodie: 'SEVENDAYSTODIE',
|
|
302
348
|
Rust: 'RUST',
|
|
303
349
|
Generic: 'GENERIC',
|
|
304
350
|
Mock: 'MOCK',
|
|
305
351
|
};
|
|
352
|
+
export const GameServerOutputDTONameSourceEnum = {
|
|
353
|
+
Connector: 'connector',
|
|
354
|
+
Operator: 'operator',
|
|
355
|
+
};
|
|
306
356
|
export const GameServerTypesOutputDTOTypeEnum = {
|
|
307
357
|
Sevendaystodie: 'SEVENDAYSTODIE',
|
|
308
358
|
Rust: 'RUST',
|
|
@@ -325,14 +375,17 @@ export const GetJobInputDTOTypeEnum = {
|
|
|
325
375
|
SyncItems: 'syncItems',
|
|
326
376
|
SyncEntities: 'syncEntities',
|
|
327
377
|
SyncBans: 'syncBans',
|
|
378
|
+
SyncLocations: 'syncLocations',
|
|
328
379
|
SyncMapImages: 'syncMapImages',
|
|
329
380
|
SyncMapUploads: 'syncMapUploads',
|
|
381
|
+
SyncGameIcons: 'syncGameIcons',
|
|
330
382
|
SyncSteam: 'syncSteam',
|
|
331
383
|
SyncDiscordRoles: 'syncDiscordRoles',
|
|
332
384
|
EmitRateLimitSummary: 'emitRateLimitSummary',
|
|
333
385
|
CleanRevokedApiKeys: 'cleanRevokedApiKeys',
|
|
334
386
|
CleanExecutionClaims: 'cleanExecutionClaims',
|
|
335
387
|
DeleteClickHouseEvents: 'deleteClickHouseEvents',
|
|
388
|
+
RepointClickHouseEvents: 'repointClickHouseEvents',
|
|
336
389
|
CleanConnectorMigrations: 'cleanConnectorMigrations',
|
|
337
390
|
};
|
|
338
391
|
export const HookCreateDTOEventTypeEnum = {
|
|
@@ -358,6 +411,7 @@ export const HookCreateDTOEventTypeEnum = {
|
|
|
358
411
|
SettingsSet: 'settings-set',
|
|
359
412
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
360
413
|
PlayerNewNameDetected: 'player-new-name-detected',
|
|
414
|
+
PlayerIdentityConflict: 'player-identity-conflict',
|
|
361
415
|
ServerStatusChanged: 'server-status-changed',
|
|
362
416
|
ModuleCreated: 'module-created',
|
|
363
417
|
ModuleUpdated: 'module-updated',
|
|
@@ -372,8 +426,11 @@ export const HookCreateDTOEventTypeEnum = {
|
|
|
372
426
|
ShopOrderStatusChanged: 'shop-order-status-changed',
|
|
373
427
|
ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
|
|
374
428
|
PlayerLinked: 'player-linked',
|
|
429
|
+
PlayerUnlinked: 'player-unlinked',
|
|
430
|
+
PlayerMerged: 'player-merged',
|
|
375
431
|
GameserverCreated: 'gameserver-created',
|
|
376
432
|
GameserverUpdated: 'gameserver-updated',
|
|
433
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
377
434
|
GameserverDeleted: 'gameserver-deleted',
|
|
378
435
|
PlayerBanned: 'player-banned',
|
|
379
436
|
PlayerUnbanned: 'player-unbanned',
|
|
@@ -419,6 +476,7 @@ export const HookOutputDTOEventTypeEnum = {
|
|
|
419
476
|
SettingsSet: 'settings-set',
|
|
420
477
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
421
478
|
PlayerNewNameDetected: 'player-new-name-detected',
|
|
479
|
+
PlayerIdentityConflict: 'player-identity-conflict',
|
|
422
480
|
ServerStatusChanged: 'server-status-changed',
|
|
423
481
|
ModuleCreated: 'module-created',
|
|
424
482
|
ModuleUpdated: 'module-updated',
|
|
@@ -433,8 +491,11 @@ export const HookOutputDTOEventTypeEnum = {
|
|
|
433
491
|
ShopOrderStatusChanged: 'shop-order-status-changed',
|
|
434
492
|
ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
|
|
435
493
|
PlayerLinked: 'player-linked',
|
|
494
|
+
PlayerUnlinked: 'player-unlinked',
|
|
495
|
+
PlayerMerged: 'player-merged',
|
|
436
496
|
GameserverCreated: 'gameserver-created',
|
|
437
497
|
GameserverUpdated: 'gameserver-updated',
|
|
498
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
438
499
|
GameserverDeleted: 'gameserver-deleted',
|
|
439
500
|
PlayerBanned: 'player-banned',
|
|
440
501
|
PlayerUnbanned: 'player-unbanned',
|
|
@@ -480,6 +541,7 @@ export const HookTriggerDTOEventTypeEnum = {
|
|
|
480
541
|
SettingsSet: 'settings-set',
|
|
481
542
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
482
543
|
PlayerNewNameDetected: 'player-new-name-detected',
|
|
544
|
+
PlayerIdentityConflict: 'player-identity-conflict',
|
|
483
545
|
ServerStatusChanged: 'server-status-changed',
|
|
484
546
|
ModuleCreated: 'module-created',
|
|
485
547
|
ModuleUpdated: 'module-updated',
|
|
@@ -494,8 +556,11 @@ export const HookTriggerDTOEventTypeEnum = {
|
|
|
494
556
|
ShopOrderStatusChanged: 'shop-order-status-changed',
|
|
495
557
|
ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
|
|
496
558
|
PlayerLinked: 'player-linked',
|
|
559
|
+
PlayerUnlinked: 'player-unlinked',
|
|
560
|
+
PlayerMerged: 'player-merged',
|
|
497
561
|
GameserverCreated: 'gameserver-created',
|
|
498
562
|
GameserverUpdated: 'gameserver-updated',
|
|
563
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
499
564
|
GameserverDeleted: 'gameserver-deleted',
|
|
500
565
|
PlayerBanned: 'player-banned',
|
|
501
566
|
PlayerUnbanned: 'player-unbanned',
|
|
@@ -541,6 +606,7 @@ export const HookUpdateDTOEventTypeEnum = {
|
|
|
541
606
|
SettingsSet: 'settings-set',
|
|
542
607
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
543
608
|
PlayerNewNameDetected: 'player-new-name-detected',
|
|
609
|
+
PlayerIdentityConflict: 'player-identity-conflict',
|
|
544
610
|
ServerStatusChanged: 'server-status-changed',
|
|
545
611
|
ModuleCreated: 'module-created',
|
|
546
612
|
ModuleUpdated: 'module-updated',
|
|
@@ -555,8 +621,11 @@ export const HookUpdateDTOEventTypeEnum = {
|
|
|
555
621
|
ShopOrderStatusChanged: 'shop-order-status-changed',
|
|
556
622
|
ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
|
|
557
623
|
PlayerLinked: 'player-linked',
|
|
624
|
+
PlayerUnlinked: 'player-unlinked',
|
|
625
|
+
PlayerMerged: 'player-merged',
|
|
558
626
|
GameserverCreated: 'gameserver-created',
|
|
559
627
|
GameserverUpdated: 'gameserver-updated',
|
|
628
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
560
629
|
GameserverDeleted: 'gameserver-deleted',
|
|
561
630
|
PlayerBanned: 'player-banned',
|
|
562
631
|
PlayerUnbanned: 'player-unbanned',
|
|
@@ -607,6 +676,7 @@ export const IHookEventTypeEnum = {
|
|
|
607
676
|
SettingsSet: 'settings-set',
|
|
608
677
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
609
678
|
PlayerNewNameDetected: 'player-new-name-detected',
|
|
679
|
+
PlayerIdentityConflict: 'player-identity-conflict',
|
|
610
680
|
ServerStatusChanged: 'server-status-changed',
|
|
611
681
|
ModuleCreated: 'module-created',
|
|
612
682
|
ModuleUpdated: 'module-updated',
|
|
@@ -621,8 +691,11 @@ export const IHookEventTypeEnum = {
|
|
|
621
691
|
ShopOrderStatusChanged: 'shop-order-status-changed',
|
|
622
692
|
ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
|
|
623
693
|
PlayerLinked: 'player-linked',
|
|
694
|
+
PlayerUnlinked: 'player-unlinked',
|
|
695
|
+
PlayerMerged: 'player-merged',
|
|
624
696
|
GameserverCreated: 'gameserver-created',
|
|
625
697
|
GameserverUpdated: 'gameserver-updated',
|
|
698
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
626
699
|
GameserverDeleted: 'gameserver-deleted',
|
|
627
700
|
PlayerBanned: 'player-banned',
|
|
628
701
|
PlayerUnbanned: 'player-unbanned',
|
|
@@ -649,6 +722,29 @@ export const ITakaroQuerySortDirectionEnum = {
|
|
|
649
722
|
Asc: 'asc',
|
|
650
723
|
Desc: 'desc',
|
|
651
724
|
};
|
|
725
|
+
export const InventoryChangeCounterpartDTOKindEnum = {
|
|
726
|
+
Container: 'container',
|
|
727
|
+
Player: 'player',
|
|
728
|
+
};
|
|
729
|
+
export const InventoryChangeDTOChangeTypeEnum = {
|
|
730
|
+
Added: 'added',
|
|
731
|
+
Removed: 'removed',
|
|
732
|
+
Changed: 'changed',
|
|
733
|
+
};
|
|
734
|
+
export const InventoryChangeDTOCauseEnum = {
|
|
735
|
+
Pickup: 'pickup',
|
|
736
|
+
Drop: 'drop',
|
|
737
|
+
Craft: 'craft',
|
|
738
|
+
Loot: 'loot',
|
|
739
|
+
Trade: 'trade',
|
|
740
|
+
Death: 'death',
|
|
741
|
+
Other: 'other',
|
|
742
|
+
Unknown: 'unknown',
|
|
743
|
+
};
|
|
744
|
+
export const InventoryCounterpartDTOKindEnum = {
|
|
745
|
+
Container: 'container',
|
|
746
|
+
Player: 'player',
|
|
747
|
+
};
|
|
652
748
|
export const InviteLinkCreateResultDTOStatusEnum = {
|
|
653
749
|
Active: 'ACTIVE',
|
|
654
750
|
Revoked: 'REVOKED',
|
|
@@ -754,12 +850,18 @@ export const PERMISSIONS = {
|
|
|
754
850
|
ViewDiscordInfo: 'VIEW_DISCORD_INFO',
|
|
755
851
|
SendDiscordMessage: 'SEND_DISCORD_MESSAGE',
|
|
756
852
|
ManageApiKeys: 'MANAGE_API_KEYS',
|
|
853
|
+
ReadMap: 'READ_MAP',
|
|
854
|
+
ReadTracking: 'READ_TRACKING',
|
|
757
855
|
};
|
|
758
|
-
export const
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
856
|
+
export const PlanChangeOutputDTOActionEnum = {
|
|
857
|
+
Create: 'create',
|
|
858
|
+
Update: 'update',
|
|
859
|
+
Archive: 'archive',
|
|
860
|
+
};
|
|
861
|
+
export const PlanChangeOutputDTOActorKindEnum = {
|
|
862
|
+
StaffSession: 'staffSession',
|
|
863
|
+
AdminSecret: 'adminSecret',
|
|
864
|
+
System: 'system',
|
|
763
865
|
};
|
|
764
866
|
export const PlayerOnGameServerSearchInputDTOExtendEnum = {
|
|
765
867
|
GameServer: 'gameServer',
|
|
@@ -783,6 +885,11 @@ export const PlayerSearchInputDTOSortDirectionEnum = {
|
|
|
783
885
|
Asc: 'asc',
|
|
784
886
|
Desc: 'desc',
|
|
785
887
|
};
|
|
888
|
+
export const PositionAreaShapeDTOTypeEnum = {
|
|
889
|
+
Circle: 'circle',
|
|
890
|
+
Rectangle: 'rectangle',
|
|
891
|
+
Polygon: 'polygon',
|
|
892
|
+
};
|
|
786
893
|
export const RecentOrderDTOStatusEnum = {
|
|
787
894
|
Completed: 'COMPLETED',
|
|
788
895
|
Paid: 'PAID',
|
|
@@ -911,6 +1018,12 @@ export const StorefrontDomainOutputDTOCustomDomainStateEnum = {
|
|
|
911
1018
|
Verified: 'VERIFIED',
|
|
912
1019
|
Failed: 'FAILED',
|
|
913
1020
|
};
|
|
1021
|
+
export const StripePriceDTOIntervalEnum = {
|
|
1022
|
+
Day: 'day',
|
|
1023
|
+
Week: 'week',
|
|
1024
|
+
Month: 'month',
|
|
1025
|
+
Year: 'year',
|
|
1026
|
+
};
|
|
914
1027
|
export const TakaroAiDomainOutputDTOOverrideStateEnum = {
|
|
915
1028
|
None: 'none',
|
|
916
1029
|
Active: 'active',
|
|
@@ -949,16 +1062,68 @@ export const TakaroEventDomainCreatedOriginEnum = {
|
|
|
949
1062
|
Subscription: 'subscription',
|
|
950
1063
|
AdminSecret: 'admin_secret',
|
|
951
1064
|
};
|
|
1065
|
+
export const TakaroEventInventoryCounterpartKindEnum = {
|
|
1066
|
+
Container: 'container',
|
|
1067
|
+
Player: 'player',
|
|
1068
|
+
};
|
|
952
1069
|
export const TakaroEventItemsGivenLineResultEnum = {
|
|
953
1070
|
Delivered: 'DELIVERED',
|
|
954
1071
|
Failed: 'FAILED',
|
|
955
1072
|
Unknown: 'UNKNOWN',
|
|
956
1073
|
};
|
|
1074
|
+
export const TakaroEventPlayerIdentityConflictUnwrittenIdentifiersEnum = {
|
|
1075
|
+
SteamId: 'steamId',
|
|
1076
|
+
EpicOnlineServicesId: 'epicOnlineServicesId',
|
|
1077
|
+
XboxLiveId: 'xboxLiveId',
|
|
1078
|
+
PlatformId: 'platformId',
|
|
1079
|
+
};
|
|
1080
|
+
export const TakaroEventPlayerIdentityConflictMatchMatchedOnEnum = {
|
|
1081
|
+
SteamId: 'steamId',
|
|
1082
|
+
EpicOnlineServicesId: 'epicOnlineServicesId',
|
|
1083
|
+
XboxLiveId: 'xboxLiveId',
|
|
1084
|
+
PlatformId: 'platformId',
|
|
1085
|
+
};
|
|
957
1086
|
export const TakaroEventPlayerInventoryChangedChangeTypeEnum = {
|
|
958
1087
|
Added: 'added',
|
|
959
1088
|
Removed: 'removed',
|
|
960
1089
|
Changed: 'changed',
|
|
961
1090
|
};
|
|
1091
|
+
export const TakaroEventPlayerInventoryChangedCauseEnum = {
|
|
1092
|
+
Pickup: 'pickup',
|
|
1093
|
+
Drop: 'drop',
|
|
1094
|
+
Craft: 'craft',
|
|
1095
|
+
Loot: 'loot',
|
|
1096
|
+
Trade: 'trade',
|
|
1097
|
+
Death: 'death',
|
|
1098
|
+
Other: 'other',
|
|
1099
|
+
};
|
|
1100
|
+
export const TakaroEventPlayerLinkedSourceEnum = {
|
|
1101
|
+
GameCode: 'game-code',
|
|
1102
|
+
WebCode: 'web-code',
|
|
1103
|
+
SteamAuto: 'steam-auto',
|
|
1104
|
+
Admin: 'admin',
|
|
1105
|
+
Unknown: 'unknown',
|
|
1106
|
+
};
|
|
1107
|
+
export const TakaroEventPlayerMergedMovedIdentifiersEnum = {
|
|
1108
|
+
SteamId: 'steamId',
|
|
1109
|
+
EpicOnlineServicesId: 'epicOnlineServicesId',
|
|
1110
|
+
XboxLiveId: 'xboxLiveId',
|
|
1111
|
+
PlatformId: 'platformId',
|
|
1112
|
+
};
|
|
1113
|
+
export const TakaroEventPlayerMergedServerOutcomeEnum = {
|
|
1114
|
+
Moved: 'moved',
|
|
1115
|
+
Combined: 'combined',
|
|
1116
|
+
};
|
|
1117
|
+
export const TakaroEventPlayerMergedServerKeptPogFromEnum = {
|
|
1118
|
+
Survivor: 'survivor',
|
|
1119
|
+
Absorbed: 'absorbed',
|
|
1120
|
+
};
|
|
1121
|
+
export const TakaroEventPlayerUnlinkedReasonEnum = {
|
|
1122
|
+
Self: 'self',
|
|
1123
|
+
Admin: 'admin',
|
|
1124
|
+
Displaced: 'displaced',
|
|
1125
|
+
Merged: 'merged',
|
|
1126
|
+
};
|
|
962
1127
|
export const TakaroEventRateLimitedScopeEnum = {
|
|
963
1128
|
Server: 'server',
|
|
964
1129
|
Domain: 'domain',
|
|
@@ -1103,11 +1268,27 @@ export const TriggerJobInputDTOTypeEnum = {
|
|
|
1103
1268
|
SyncItems: 'syncItems',
|
|
1104
1269
|
SyncEntities: 'syncEntities',
|
|
1105
1270
|
SyncBans: 'syncBans',
|
|
1271
|
+
SyncLocations: 'syncLocations',
|
|
1106
1272
|
SyncMapImages: 'syncMapImages',
|
|
1107
1273
|
SyncMapUploads: 'syncMapUploads',
|
|
1274
|
+
SyncGameIcons: 'syncGameIcons',
|
|
1108
1275
|
SyncSteam: 'syncSteam',
|
|
1109
1276
|
SyncDiscordRoles: 'syncDiscordRoles',
|
|
1110
1277
|
};
|
|
1278
|
+
export const UserOutputDTOPlayerLinkSourceEnum = {
|
|
1279
|
+
GameCode: 'game-code',
|
|
1280
|
+
WebCode: 'web-code',
|
|
1281
|
+
SteamAuto: 'steam-auto',
|
|
1282
|
+
Admin: 'admin',
|
|
1283
|
+
Unknown: 'unknown',
|
|
1284
|
+
};
|
|
1285
|
+
export const UserOutputWithRolesDTOPlayerLinkSourceEnum = {
|
|
1286
|
+
GameCode: 'game-code',
|
|
1287
|
+
WebCode: 'web-code',
|
|
1288
|
+
SteamAuto: 'steam-auto',
|
|
1289
|
+
Admin: 'admin',
|
|
1290
|
+
Unknown: 'unknown',
|
|
1291
|
+
};
|
|
1111
1292
|
export const UserSearchInputDTOExtendEnum = {
|
|
1112
1293
|
Roles: 'roles',
|
|
1113
1294
|
};
|
|
@@ -1872,7 +2053,7 @@ export class DistributorApi extends BaseAPI {
|
|
|
1872
2053
|
export const DistributorSelfServiceApiAxiosParamCreator = function (configuration) {
|
|
1873
2054
|
return {
|
|
1874
2055
|
/**
|
|
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
|
|
2056
|
+
* 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
2057
|
* @summary Create a domain
|
|
1877
2058
|
* @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
|
|
1878
2059
|
* @param {*} [options] Override http request option.
|
|
@@ -2182,7 +2363,7 @@ export const DistributorSelfServiceApiAxiosParamCreator = function (configuratio
|
|
|
2182
2363
|
};
|
|
2183
2364
|
},
|
|
2184
2365
|
/**
|
|
2185
|
-
* Moves the domain onto another of the Plans allowed for the calling distributor
|
|
2366
|
+
* 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
2367
|
* @summary Change one of my domains’ Plan
|
|
2187
2368
|
* @param {string} id
|
|
2188
2369
|
* @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
|
|
@@ -2225,7 +2406,7 @@ export const DistributorSelfServiceApiFp = function (configuration) {
|
|
|
2225
2406
|
const localVarAxiosParamCreator = DistributorSelfServiceApiAxiosParamCreator(configuration);
|
|
2226
2407
|
return {
|
|
2227
2408
|
/**
|
|
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
|
|
2409
|
+
* 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
2410
|
* @summary Create a domain
|
|
2230
2411
|
* @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
|
|
2231
2412
|
* @param {*} [options] Override http request option.
|
|
@@ -2355,7 +2536,7 @@ export const DistributorSelfServiceApiFp = function (configuration) {
|
|
|
2355
2536
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2356
2537
|
},
|
|
2357
2538
|
/**
|
|
2358
|
-
* Moves the domain onto another of the Plans allowed for the calling distributor
|
|
2539
|
+
* 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
2540
|
* @summary Change one of my domains’ Plan
|
|
2360
2541
|
* @param {string} id
|
|
2361
2542
|
* @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
|
|
@@ -2378,7 +2559,7 @@ export const DistributorSelfServiceApiFactory = function (configuration, basePat
|
|
|
2378
2559
|
const localVarFp = DistributorSelfServiceApiFp(configuration);
|
|
2379
2560
|
return {
|
|
2380
2561
|
/**
|
|
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
|
|
2562
|
+
* 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
2563
|
* @summary Create a domain
|
|
2383
2564
|
* @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
|
|
2384
2565
|
* @param {*} [options] Override http request option.
|
|
@@ -2496,7 +2677,7 @@ export const DistributorSelfServiceApiFactory = function (configuration, basePat
|
|
|
2496
2677
|
.then((request) => request(axios, basePath));
|
|
2497
2678
|
},
|
|
2498
2679
|
/**
|
|
2499
|
-
* Moves the domain onto another of the Plans allowed for the calling distributor
|
|
2680
|
+
* 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
2681
|
* @summary Change one of my domains’ Plan
|
|
2501
2682
|
* @param {string} id
|
|
2502
2683
|
* @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
|
|
@@ -2518,7 +2699,7 @@ export const DistributorSelfServiceApiFactory = function (configuration, basePat
|
|
|
2518
2699
|
*/
|
|
2519
2700
|
export class DistributorSelfServiceApi extends BaseAPI {
|
|
2520
2701
|
/**
|
|
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
|
|
2702
|
+
* 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
2703
|
* @summary Create a domain
|
|
2523
2704
|
* @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
|
|
2524
2705
|
* @param {*} [options] Override http request option.
|
|
@@ -2648,7 +2829,7 @@ export class DistributorSelfServiceApi extends BaseAPI {
|
|
|
2648
2829
|
.then((request) => request(this.axios, this.basePath));
|
|
2649
2830
|
}
|
|
2650
2831
|
/**
|
|
2651
|
-
* Moves the domain onto another of the Plans allowed for the calling distributor
|
|
2832
|
+
* 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
2833
|
* @summary Change one of my domains’ Plan
|
|
2653
2834
|
* @param {string} id
|
|
2654
2835
|
* @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
|
|
@@ -2960,21 +3141,58 @@ export const DomainApiAxiosParamCreator = function (configuration) {
|
|
|
2960
3141
|
};
|
|
2961
3142
|
},
|
|
2962
3143
|
/**
|
|
2963
|
-
*
|
|
2964
|
-
* @summary
|
|
2965
|
-
* @param {
|
|
3144
|
+
* 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`
|
|
3145
|
+
* @summary Put a subscription-backed domain on a Plan
|
|
3146
|
+
* @param {string} id
|
|
3147
|
+
* @param {DomainPlanInputDTO} [domainPlanInputDTO] DomainPlanInputDTO
|
|
2966
3148
|
* @param {*} [options] Override http request option.
|
|
2967
3149
|
* @throws {RequiredError}
|
|
2968
3150
|
*/
|
|
2969
|
-
|
|
2970
|
-
|
|
3151
|
+
domainControllerSetPlan: async (id, domainPlanInputDTO, options = {}) => {
|
|
3152
|
+
// verify required parameter 'id' is not null or undefined
|
|
3153
|
+
assertParamExists('domainControllerSetPlan', 'id', id);
|
|
3154
|
+
const localVarPath = `/domain/{id}/plan`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
2971
3155
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2972
3156
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2973
3157
|
let baseOptions;
|
|
2974
3158
|
if (configuration) {
|
|
2975
3159
|
baseOptions = configuration.baseOptions;
|
|
2976
3160
|
}
|
|
2977
|
-
const localVarRequestOptions = { method: '
|
|
3161
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
3162
|
+
const localVarHeaderParameter = {};
|
|
3163
|
+
const localVarQueryParameter = {};
|
|
3164
|
+
// authentication staffSession required
|
|
3165
|
+
// authentication adminAuth required
|
|
3166
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
3167
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3168
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3169
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3170
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3171
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainPlanInputDTO, localVarRequestOptions, configuration);
|
|
3172
|
+
return {
|
|
3173
|
+
url: toPathString(localVarUrlObj),
|
|
3174
|
+
options: localVarRequestOptions,
|
|
3175
|
+
};
|
|
3176
|
+
},
|
|
3177
|
+
/**
|
|
3178
|
+
* 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`
|
|
3179
|
+
* @summary Put an Unbacked domain on a Plan
|
|
3180
|
+
* @param {string} id
|
|
3181
|
+
* @param {StaffDomainPlanInputDTO} [staffDomainPlanInputDTO] StaffDomainPlanInputDTO
|
|
3182
|
+
* @param {*} [options] Override http request option.
|
|
3183
|
+
* @throws {RequiredError}
|
|
3184
|
+
*/
|
|
3185
|
+
domainControllerSetPlanByStaff: async (id, staffDomainPlanInputDTO, options = {}) => {
|
|
3186
|
+
// verify required parameter 'id' is not null or undefined
|
|
3187
|
+
assertParamExists('domainControllerSetPlanByStaff', 'id', id);
|
|
3188
|
+
const localVarPath = `/staff/domains/{id}/plan`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
3189
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3190
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3191
|
+
let baseOptions;
|
|
3192
|
+
if (configuration) {
|
|
3193
|
+
baseOptions = configuration.baseOptions;
|
|
3194
|
+
}
|
|
3195
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
2978
3196
|
const localVarHeaderParameter = {};
|
|
2979
3197
|
const localVarQueryParameter = {};
|
|
2980
3198
|
// authentication staffSession required
|
|
@@ -2984,7 +3202,7 @@ export const DomainApiAxiosParamCreator = function (configuration) {
|
|
|
2984
3202
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2985
3203
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2986
3204
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2987
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3205
|
+
localVarRequestOptions.data = serializeDataIfNeeded(staffDomainPlanInputDTO, localVarRequestOptions, configuration);
|
|
2988
3206
|
return {
|
|
2989
3207
|
url: toPathString(localVarUrlObj),
|
|
2990
3208
|
options: localVarRequestOptions,
|
|
@@ -3154,16 +3372,31 @@ export const DomainApiFp = function (configuration) {
|
|
|
3154
3372
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3155
3373
|
},
|
|
3156
3374
|
/**
|
|
3157
|
-
*
|
|
3158
|
-
* @summary
|
|
3159
|
-
* @param {
|
|
3375
|
+
* 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`
|
|
3376
|
+
* @summary Put a subscription-backed domain on a Plan
|
|
3377
|
+
* @param {string} id
|
|
3378
|
+
* @param {DomainPlanInputDTO} [domainPlanInputDTO] DomainPlanInputDTO
|
|
3379
|
+
* @param {*} [options] Override http request option.
|
|
3380
|
+
* @throws {RequiredError}
|
|
3381
|
+
*/
|
|
3382
|
+
async domainControllerSetPlan(id, domainPlanInputDTO, options) {
|
|
3383
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerSetPlan(id, domainPlanInputDTO, options);
|
|
3384
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3385
|
+
const localVarOperationServerBasePath = operationServerMap['DomainApi.domainControllerSetPlan']?.[localVarOperationServerIndex]?.url;
|
|
3386
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3387
|
+
},
|
|
3388
|
+
/**
|
|
3389
|
+
* 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`
|
|
3390
|
+
* @summary Put an Unbacked domain on a Plan
|
|
3391
|
+
* @param {string} id
|
|
3392
|
+
* @param {StaffDomainPlanInputDTO} [staffDomainPlanInputDTO] StaffDomainPlanInputDTO
|
|
3160
3393
|
* @param {*} [options] Override http request option.
|
|
3161
3394
|
* @throws {RequiredError}
|
|
3162
3395
|
*/
|
|
3163
|
-
async
|
|
3164
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3396
|
+
async domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options) {
|
|
3397
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options);
|
|
3165
3398
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3166
|
-
const localVarOperationServerBasePath = operationServerMap['DomainApi.
|
|
3399
|
+
const localVarOperationServerBasePath = operationServerMap['DomainApi.domainControllerSetPlanByStaff']?.[localVarOperationServerIndex]?.url;
|
|
3167
3400
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3168
3401
|
},
|
|
3169
3402
|
/**
|
|
@@ -3293,15 +3526,29 @@ export const DomainApiFactory = function (configuration, basePath, axios) {
|
|
|
3293
3526
|
.then((request) => request(axios, basePath));
|
|
3294
3527
|
},
|
|
3295
3528
|
/**
|
|
3296
|
-
*
|
|
3297
|
-
* @summary
|
|
3298
|
-
* @param {
|
|
3529
|
+
* 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`
|
|
3530
|
+
* @summary Put a subscription-backed domain on a Plan
|
|
3531
|
+
* @param {string} id
|
|
3532
|
+
* @param {DomainPlanInputDTO} [domainPlanInputDTO] DomainPlanInputDTO
|
|
3533
|
+
* @param {*} [options] Override http request option.
|
|
3534
|
+
* @throws {RequiredError}
|
|
3535
|
+
*/
|
|
3536
|
+
domainControllerSetPlan(id, domainPlanInputDTO, options) {
|
|
3537
|
+
return localVarFp
|
|
3538
|
+
.domainControllerSetPlan(id, domainPlanInputDTO, options)
|
|
3539
|
+
.then((request) => request(axios, basePath));
|
|
3540
|
+
},
|
|
3541
|
+
/**
|
|
3542
|
+
* 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`
|
|
3543
|
+
* @summary Put an Unbacked domain on a Plan
|
|
3544
|
+
* @param {string} id
|
|
3545
|
+
* @param {StaffDomainPlanInputDTO} [staffDomainPlanInputDTO] StaffDomainPlanInputDTO
|
|
3299
3546
|
* @param {*} [options] Override http request option.
|
|
3300
3547
|
* @throws {RequiredError}
|
|
3301
3548
|
*/
|
|
3302
|
-
|
|
3549
|
+
domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options) {
|
|
3303
3550
|
return localVarFp
|
|
3304
|
-
.
|
|
3551
|
+
.domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options)
|
|
3305
3552
|
.then((request) => request(axios, basePath));
|
|
3306
3553
|
},
|
|
3307
3554
|
/**
|
|
@@ -3447,16 +3694,31 @@ export class DomainApi extends BaseAPI {
|
|
|
3447
3694
|
.then((request) => request(this.axios, this.basePath));
|
|
3448
3695
|
}
|
|
3449
3696
|
/**
|
|
3450
|
-
*
|
|
3451
|
-
* @summary
|
|
3452
|
-
* @param {
|
|
3697
|
+
* 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`
|
|
3698
|
+
* @summary Put a subscription-backed domain on a Plan
|
|
3699
|
+
* @param {string} id
|
|
3700
|
+
* @param {DomainPlanInputDTO} [domainPlanInputDTO] DomainPlanInputDTO
|
|
3701
|
+
* @param {*} [options] Override http request option.
|
|
3702
|
+
* @throws {RequiredError}
|
|
3703
|
+
* @memberof DomainApi
|
|
3704
|
+
*/
|
|
3705
|
+
domainControllerSetPlan(id, domainPlanInputDTO, options) {
|
|
3706
|
+
return DomainApiFp(this.configuration)
|
|
3707
|
+
.domainControllerSetPlan(id, domainPlanInputDTO, options)
|
|
3708
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3709
|
+
}
|
|
3710
|
+
/**
|
|
3711
|
+
* 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`
|
|
3712
|
+
* @summary Put an Unbacked domain on a Plan
|
|
3713
|
+
* @param {string} id
|
|
3714
|
+
* @param {StaffDomainPlanInputDTO} [staffDomainPlanInputDTO] StaffDomainPlanInputDTO
|
|
3453
3715
|
* @param {*} [options] Override http request option.
|
|
3454
3716
|
* @throws {RequiredError}
|
|
3455
3717
|
* @memberof DomainApi
|
|
3456
3718
|
*/
|
|
3457
|
-
|
|
3719
|
+
domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options) {
|
|
3458
3720
|
return DomainApiFp(this.configuration)
|
|
3459
|
-
.
|
|
3721
|
+
.domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options)
|
|
3460
3722
|
.then((request) => request(this.axios, this.basePath));
|
|
3461
3723
|
}
|
|
3462
3724
|
/**
|
|
@@ -3931,6 +4193,72 @@ export const FixtureHistoryApiAxiosParamCreator = function (configuration) {
|
|
|
3931
4193
|
options: localVarRequestOptions,
|
|
3932
4194
|
};
|
|
3933
4195
|
},
|
|
4196
|
+
/**
|
|
4197
|
+
* <br> OperationId: `FixtureHistoryControllerTrackingInventory`
|
|
4198
|
+
* @summary Write owned, back-dated inventory snapshots and changes into the Tracking store (idempotent on id)
|
|
4199
|
+
* @param {string} domainId
|
|
4200
|
+
* @param {FixtureHistoryTrackingInventoryInputDTO} [fixtureHistoryTrackingInventoryInputDTO] FixtureHistoryTrackingInventoryInputDTO
|
|
4201
|
+
* @param {*} [options] Override http request option.
|
|
4202
|
+
* @throws {RequiredError}
|
|
4203
|
+
*/
|
|
4204
|
+
fixtureHistoryControllerTrackingInventory: async (domainId, fixtureHistoryTrackingInventoryInputDTO, options = {}) => {
|
|
4205
|
+
// verify required parameter 'domainId' is not null or undefined
|
|
4206
|
+
assertParamExists('fixtureHistoryControllerTrackingInventory', 'domainId', domainId);
|
|
4207
|
+
const localVarPath = `/fixture-history/domains/{domainId}/tracking/inventory`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
|
|
4208
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4209
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4210
|
+
let baseOptions;
|
|
4211
|
+
if (configuration) {
|
|
4212
|
+
baseOptions = configuration.baseOptions;
|
|
4213
|
+
}
|
|
4214
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
4215
|
+
const localVarHeaderParameter = {};
|
|
4216
|
+
const localVarQueryParameter = {};
|
|
4217
|
+
// authentication adminAuth required
|
|
4218
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
4219
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4220
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4221
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4222
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4223
|
+
localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryTrackingInventoryInputDTO, localVarRequestOptions, configuration);
|
|
4224
|
+
return {
|
|
4225
|
+
url: toPathString(localVarUrlObj),
|
|
4226
|
+
options: localVarRequestOptions,
|
|
4227
|
+
};
|
|
4228
|
+
},
|
|
4229
|
+
/**
|
|
4230
|
+
* Columnar: each track is one player-on-gameserver with flattened x, y, z triples sampled every intervalMs from `from`.<br> OperationId: `FixtureHistoryControllerTrackingPositions`
|
|
4231
|
+
* @summary Write owned, back-dated walked paths into the Tracking store (inserts only missing samples)
|
|
4232
|
+
* @param {string} domainId
|
|
4233
|
+
* @param {FixtureHistoryTrackingPositionsInputDTO} [fixtureHistoryTrackingPositionsInputDTO] FixtureHistoryTrackingPositionsInputDTO
|
|
4234
|
+
* @param {*} [options] Override http request option.
|
|
4235
|
+
* @throws {RequiredError}
|
|
4236
|
+
*/
|
|
4237
|
+
fixtureHistoryControllerTrackingPositions: async (domainId, fixtureHistoryTrackingPositionsInputDTO, options = {}) => {
|
|
4238
|
+
// verify required parameter 'domainId' is not null or undefined
|
|
4239
|
+
assertParamExists('fixtureHistoryControllerTrackingPositions', 'domainId', domainId);
|
|
4240
|
+
const localVarPath = `/fixture-history/domains/{domainId}/tracking/positions`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
|
|
4241
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4242
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4243
|
+
let baseOptions;
|
|
4244
|
+
if (configuration) {
|
|
4245
|
+
baseOptions = configuration.baseOptions;
|
|
4246
|
+
}
|
|
4247
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
4248
|
+
const localVarHeaderParameter = {};
|
|
4249
|
+
const localVarQueryParameter = {};
|
|
4250
|
+
// authentication adminAuth required
|
|
4251
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
4252
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4253
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4254
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4255
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4256
|
+
localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryTrackingPositionsInputDTO, localVarRequestOptions, configuration);
|
|
4257
|
+
return {
|
|
4258
|
+
url: toPathString(localVarUrlObj),
|
|
4259
|
+
options: localVarRequestOptions,
|
|
4260
|
+
};
|
|
4261
|
+
},
|
|
3934
4262
|
};
|
|
3935
4263
|
};
|
|
3936
4264
|
/**
|
|
@@ -4129,6 +4457,34 @@ export const FixtureHistoryApiFp = function (configuration) {
|
|
|
4129
4457
|
?.url;
|
|
4130
4458
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4131
4459
|
},
|
|
4460
|
+
/**
|
|
4461
|
+
* <br> OperationId: `FixtureHistoryControllerTrackingInventory`
|
|
4462
|
+
* @summary Write owned, back-dated inventory snapshots and changes into the Tracking store (idempotent on id)
|
|
4463
|
+
* @param {string} domainId
|
|
4464
|
+
* @param {FixtureHistoryTrackingInventoryInputDTO} [fixtureHistoryTrackingInventoryInputDTO] FixtureHistoryTrackingInventoryInputDTO
|
|
4465
|
+
* @param {*} [options] Override http request option.
|
|
4466
|
+
* @throws {RequiredError}
|
|
4467
|
+
*/
|
|
4468
|
+
async fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options) {
|
|
4469
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options);
|
|
4470
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4471
|
+
const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerTrackingInventory']?.[localVarOperationServerIndex]?.url;
|
|
4472
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4473
|
+
},
|
|
4474
|
+
/**
|
|
4475
|
+
* Columnar: each track is one player-on-gameserver with flattened x, y, z triples sampled every intervalMs from `from`.<br> OperationId: `FixtureHistoryControllerTrackingPositions`
|
|
4476
|
+
* @summary Write owned, back-dated walked paths into the Tracking store (inserts only missing samples)
|
|
4477
|
+
* @param {string} domainId
|
|
4478
|
+
* @param {FixtureHistoryTrackingPositionsInputDTO} [fixtureHistoryTrackingPositionsInputDTO] FixtureHistoryTrackingPositionsInputDTO
|
|
4479
|
+
* @param {*} [options] Override http request option.
|
|
4480
|
+
* @throws {RequiredError}
|
|
4481
|
+
*/
|
|
4482
|
+
async fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options) {
|
|
4483
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options);
|
|
4484
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4485
|
+
const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerTrackingPositions']?.[localVarOperationServerIndex]?.url;
|
|
4486
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4487
|
+
},
|
|
4132
4488
|
};
|
|
4133
4489
|
};
|
|
4134
4490
|
/**
|
|
@@ -4310,6 +4666,32 @@ export const FixtureHistoryApiFactory = function (configuration, basePath, axios
|
|
|
4310
4666
|
.fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options)
|
|
4311
4667
|
.then((request) => request(axios, basePath));
|
|
4312
4668
|
},
|
|
4669
|
+
/**
|
|
4670
|
+
* <br> OperationId: `FixtureHistoryControllerTrackingInventory`
|
|
4671
|
+
* @summary Write owned, back-dated inventory snapshots and changes into the Tracking store (idempotent on id)
|
|
4672
|
+
* @param {string} domainId
|
|
4673
|
+
* @param {FixtureHistoryTrackingInventoryInputDTO} [fixtureHistoryTrackingInventoryInputDTO] FixtureHistoryTrackingInventoryInputDTO
|
|
4674
|
+
* @param {*} [options] Override http request option.
|
|
4675
|
+
* @throws {RequiredError}
|
|
4676
|
+
*/
|
|
4677
|
+
fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options) {
|
|
4678
|
+
return localVarFp
|
|
4679
|
+
.fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options)
|
|
4680
|
+
.then((request) => request(axios, basePath));
|
|
4681
|
+
},
|
|
4682
|
+
/**
|
|
4683
|
+
* Columnar: each track is one player-on-gameserver with flattened x, y, z triples sampled every intervalMs from `from`.<br> OperationId: `FixtureHistoryControllerTrackingPositions`
|
|
4684
|
+
* @summary Write owned, back-dated walked paths into the Tracking store (inserts only missing samples)
|
|
4685
|
+
* @param {string} domainId
|
|
4686
|
+
* @param {FixtureHistoryTrackingPositionsInputDTO} [fixtureHistoryTrackingPositionsInputDTO] FixtureHistoryTrackingPositionsInputDTO
|
|
4687
|
+
* @param {*} [options] Override http request option.
|
|
4688
|
+
* @throws {RequiredError}
|
|
4689
|
+
*/
|
|
4690
|
+
fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options) {
|
|
4691
|
+
return localVarFp
|
|
4692
|
+
.fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options)
|
|
4693
|
+
.then((request) => request(axios, basePath));
|
|
4694
|
+
},
|
|
4313
4695
|
};
|
|
4314
4696
|
};
|
|
4315
4697
|
/**
|
|
@@ -4504,6 +4886,34 @@ export class FixtureHistoryApi extends BaseAPI {
|
|
|
4504
4886
|
.fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options)
|
|
4505
4887
|
.then((request) => request(this.axios, this.basePath));
|
|
4506
4888
|
}
|
|
4889
|
+
/**
|
|
4890
|
+
* <br> OperationId: `FixtureHistoryControllerTrackingInventory`
|
|
4891
|
+
* @summary Write owned, back-dated inventory snapshots and changes into the Tracking store (idempotent on id)
|
|
4892
|
+
* @param {string} domainId
|
|
4893
|
+
* @param {FixtureHistoryTrackingInventoryInputDTO} [fixtureHistoryTrackingInventoryInputDTO] FixtureHistoryTrackingInventoryInputDTO
|
|
4894
|
+
* @param {*} [options] Override http request option.
|
|
4895
|
+
* @throws {RequiredError}
|
|
4896
|
+
* @memberof FixtureHistoryApi
|
|
4897
|
+
*/
|
|
4898
|
+
fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options) {
|
|
4899
|
+
return FixtureHistoryApiFp(this.configuration)
|
|
4900
|
+
.fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options)
|
|
4901
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4902
|
+
}
|
|
4903
|
+
/**
|
|
4904
|
+
* Columnar: each track is one player-on-gameserver with flattened x, y, z triples sampled every intervalMs from `from`.<br> OperationId: `FixtureHistoryControllerTrackingPositions`
|
|
4905
|
+
* @summary Write owned, back-dated walked paths into the Tracking store (inserts only missing samples)
|
|
4906
|
+
* @param {string} domainId
|
|
4907
|
+
* @param {FixtureHistoryTrackingPositionsInputDTO} [fixtureHistoryTrackingPositionsInputDTO] FixtureHistoryTrackingPositionsInputDTO
|
|
4908
|
+
* @param {*} [options] Override http request option.
|
|
4909
|
+
* @throws {RequiredError}
|
|
4910
|
+
* @memberof FixtureHistoryApi
|
|
4911
|
+
*/
|
|
4912
|
+
fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options) {
|
|
4913
|
+
return FixtureHistoryApiFp(this.configuration)
|
|
4914
|
+
.fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options)
|
|
4915
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4916
|
+
}
|
|
4507
4917
|
}
|
|
4508
4918
|
/**
|
|
4509
4919
|
* MetaApi - axios parameter creator
|
|
@@ -5198,114 +5608,355 @@ export class StaffAuthApi extends BaseAPI {
|
|
|
5198
5608
|
}
|
|
5199
5609
|
}
|
|
5200
5610
|
/**
|
|
5201
|
-
*
|
|
5611
|
+
* StaffDomainLimitsApi - axios parameter creator
|
|
5202
5612
|
* @export
|
|
5203
5613
|
*/
|
|
5204
|
-
export const
|
|
5614
|
+
export const StaffDomainLimitsApiAxiosParamCreator = function (configuration) {
|
|
5205
5615
|
return {
|
|
5206
5616
|
/**
|
|
5207
|
-
* The
|
|
5208
|
-
* @summary
|
|
5617
|
+
* The Plan’s value applies again at once.<br> OperationId: `StaffDomainLimitsControllerClear`
|
|
5618
|
+
* @summary Clear a limit override of a Domain
|
|
5619
|
+
* @param {string} id
|
|
5620
|
+
* @param {string} limitKey
|
|
5621
|
+
* @param {DomainLimitOverrideClearInputDTO} [domainLimitOverrideClearInputDTO] DomainLimitOverrideClearInputDTO
|
|
5209
5622
|
* @param {*} [options] Override http request option.
|
|
5210
5623
|
* @throws {RequiredError}
|
|
5211
5624
|
*/
|
|
5212
|
-
|
|
5213
|
-
|
|
5625
|
+
staffDomainLimitsControllerClear: async (id, limitKey, domainLimitOverrideClearInputDTO, options = {}) => {
|
|
5626
|
+
// verify required parameter 'id' is not null or undefined
|
|
5627
|
+
assertParamExists('staffDomainLimitsControllerClear', 'id', id);
|
|
5628
|
+
// verify required parameter 'limitKey' is not null or undefined
|
|
5629
|
+
assertParamExists('staffDomainLimitsControllerClear', 'limitKey', limitKey);
|
|
5630
|
+
const localVarPath = `/staff/domains/{id}/limits/{limitKey}`
|
|
5631
|
+
.replace(`{${'id'}}`, encodeURIComponent(String(id)))
|
|
5632
|
+
.replace(`{${'limitKey'}}`, encodeURIComponent(String(limitKey)));
|
|
5214
5633
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5215
5634
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5216
5635
|
let baseOptions;
|
|
5217
5636
|
if (configuration) {
|
|
5218
5637
|
baseOptions = configuration.baseOptions;
|
|
5219
5638
|
}
|
|
5220
|
-
const localVarRequestOptions = { method: '
|
|
5639
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
5221
5640
|
const localVarHeaderParameter = {};
|
|
5222
5641
|
const localVarQueryParameter = {};
|
|
5223
5642
|
// authentication staffSession required
|
|
5224
5643
|
// authentication adminAuth required
|
|
5225
5644
|
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
5645
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5226
5646
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5227
5647
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5228
5648
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5649
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainLimitOverrideClearInputDTO, localVarRequestOptions, configuration);
|
|
5229
5650
|
return {
|
|
5230
5651
|
url: toPathString(localVarUrlObj),
|
|
5231
5652
|
options: localVarRequestOptions,
|
|
5232
5653
|
};
|
|
5233
5654
|
},
|
|
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
5655
|
/**
|
|
5244
|
-
*
|
|
5245
|
-
* @summary
|
|
5656
|
+
* Every limit with its value and source: the Plan, an override, or `unmanaged` for a Domain with no Plan.<br> OperationId: `StaffDomainLimitsControllerGet`
|
|
5657
|
+
* @summary Effective limits of a Domain
|
|
5658
|
+
* @param {string} id
|
|
5246
5659
|
* @param {*} [options] Override http request option.
|
|
5247
5660
|
* @throws {RequiredError}
|
|
5248
5661
|
*/
|
|
5249
|
-
async
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
const
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5662
|
+
staffDomainLimitsControllerGet: async (id, options = {}) => {
|
|
5663
|
+
// verify required parameter 'id' is not null or undefined
|
|
5664
|
+
assertParamExists('staffDomainLimitsControllerGet', 'id', id);
|
|
5665
|
+
const localVarPath = `/staff/domains/{id}/limits`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
5666
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5667
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5668
|
+
let baseOptions;
|
|
5669
|
+
if (configuration) {
|
|
5670
|
+
baseOptions = configuration.baseOptions;
|
|
5671
|
+
}
|
|
5672
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
5673
|
+
const localVarHeaderParameter = {};
|
|
5674
|
+
const localVarQueryParameter = {};
|
|
5675
|
+
// authentication staffSession required
|
|
5676
|
+
// authentication adminAuth required
|
|
5677
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
5678
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5679
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5680
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5681
|
+
return {
|
|
5682
|
+
url: toPathString(localVarUrlObj),
|
|
5683
|
+
options: localVarRequestOptions,
|
|
5684
|
+
};
|
|
5685
|
+
},
|
|
5686
|
+
/**
|
|
5687
|
+
* Newest first.<br> OperationId: `StaffDomainLimitsControllerHistory`
|
|
5688
|
+
* @summary Limit override history of a Domain
|
|
5689
|
+
* @param {string} id
|
|
5690
|
+
* @param {*} [options] Override http request option.
|
|
5268
5691
|
* @throws {RequiredError}
|
|
5269
5692
|
*/
|
|
5270
|
-
|
|
5271
|
-
|
|
5693
|
+
staffDomainLimitsControllerHistory: async (id, options = {}) => {
|
|
5694
|
+
// verify required parameter 'id' is not null or undefined
|
|
5695
|
+
assertParamExists('staffDomainLimitsControllerHistory', 'id', id);
|
|
5696
|
+
const localVarPath = `/staff/domains/{id}/limits/history`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
5697
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5698
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5699
|
+
let baseOptions;
|
|
5700
|
+
if (configuration) {
|
|
5701
|
+
baseOptions = configuration.baseOptions;
|
|
5702
|
+
}
|
|
5703
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
5704
|
+
const localVarHeaderParameter = {};
|
|
5705
|
+
const localVarQueryParameter = {};
|
|
5706
|
+
// authentication staffSession required
|
|
5707
|
+
// authentication adminAuth required
|
|
5708
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
5709
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5710
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5711
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5712
|
+
return {
|
|
5713
|
+
url: toPathString(localVarUrlObj),
|
|
5714
|
+
options: localVarRequestOptions,
|
|
5715
|
+
};
|
|
5716
|
+
},
|
|
5717
|
+
/**
|
|
5718
|
+
* 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`
|
|
5719
|
+
* @summary Override one limit of a Domain
|
|
5720
|
+
* @param {string} id
|
|
5721
|
+
* @param {string} limitKey
|
|
5722
|
+
* @param {DomainLimitOverrideInputDTO} [domainLimitOverrideInputDTO] DomainLimitOverrideInputDTO
|
|
5723
|
+
* @param {*} [options] Override http request option.
|
|
5724
|
+
* @throws {RequiredError}
|
|
5725
|
+
*/
|
|
5726
|
+
staffDomainLimitsControllerSet: async (id, limitKey, domainLimitOverrideInputDTO, options = {}) => {
|
|
5727
|
+
// verify required parameter 'id' is not null or undefined
|
|
5728
|
+
assertParamExists('staffDomainLimitsControllerSet', 'id', id);
|
|
5729
|
+
// verify required parameter 'limitKey' is not null or undefined
|
|
5730
|
+
assertParamExists('staffDomainLimitsControllerSet', 'limitKey', limitKey);
|
|
5731
|
+
const localVarPath = `/staff/domains/{id}/limits/{limitKey}`
|
|
5732
|
+
.replace(`{${'id'}}`, encodeURIComponent(String(id)))
|
|
5733
|
+
.replace(`{${'limitKey'}}`, encodeURIComponent(String(limitKey)));
|
|
5734
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5735
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5736
|
+
let baseOptions;
|
|
5737
|
+
if (configuration) {
|
|
5738
|
+
baseOptions = configuration.baseOptions;
|
|
5739
|
+
}
|
|
5740
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
5741
|
+
const localVarHeaderParameter = {};
|
|
5742
|
+
const localVarQueryParameter = {};
|
|
5743
|
+
// authentication staffSession required
|
|
5744
|
+
// authentication adminAuth required
|
|
5745
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
5746
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5747
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5748
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5749
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5750
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainLimitOverrideInputDTO, localVarRequestOptions, configuration);
|
|
5751
|
+
return {
|
|
5752
|
+
url: toPathString(localVarUrlObj),
|
|
5753
|
+
options: localVarRequestOptions,
|
|
5754
|
+
};
|
|
5272
5755
|
},
|
|
5273
5756
|
};
|
|
5274
5757
|
};
|
|
5275
5758
|
/**
|
|
5276
|
-
*
|
|
5759
|
+
* StaffDomainLimitsApi - functional programming interface
|
|
5277
5760
|
* @export
|
|
5278
|
-
|
|
5761
|
+
*/
|
|
5762
|
+
export const StaffDomainLimitsApiFp = function (configuration) {
|
|
5763
|
+
const localVarAxiosParamCreator = StaffDomainLimitsApiAxiosParamCreator(configuration);
|
|
5764
|
+
return {
|
|
5765
|
+
/**
|
|
5766
|
+
* The Plan’s value applies again at once.<br> OperationId: `StaffDomainLimitsControllerClear`
|
|
5767
|
+
* @summary Clear a limit override of a Domain
|
|
5768
|
+
* @param {string} id
|
|
5769
|
+
* @param {string} limitKey
|
|
5770
|
+
* @param {DomainLimitOverrideClearInputDTO} [domainLimitOverrideClearInputDTO] DomainLimitOverrideClearInputDTO
|
|
5771
|
+
* @param {*} [options] Override http request option.
|
|
5772
|
+
* @throws {RequiredError}
|
|
5773
|
+
*/
|
|
5774
|
+
async staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options) {
|
|
5775
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options);
|
|
5776
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5777
|
+
const localVarOperationServerBasePath = operationServerMap['StaffDomainLimitsApi.staffDomainLimitsControllerClear']?.[localVarOperationServerIndex]
|
|
5778
|
+
?.url;
|
|
5779
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5780
|
+
},
|
|
5781
|
+
/**
|
|
5782
|
+
* Every limit with its value and source: the Plan, an override, or `unmanaged` for a Domain with no Plan.<br> OperationId: `StaffDomainLimitsControllerGet`
|
|
5783
|
+
* @summary Effective limits of a Domain
|
|
5784
|
+
* @param {string} id
|
|
5785
|
+
* @param {*} [options] Override http request option.
|
|
5786
|
+
* @throws {RequiredError}
|
|
5787
|
+
*/
|
|
5788
|
+
async staffDomainLimitsControllerGet(id, options) {
|
|
5789
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffDomainLimitsControllerGet(id, options);
|
|
5790
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5791
|
+
const localVarOperationServerBasePath = operationServerMap['StaffDomainLimitsApi.staffDomainLimitsControllerGet']?.[localVarOperationServerIndex]?.url;
|
|
5792
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5793
|
+
},
|
|
5794
|
+
/**
|
|
5795
|
+
* Newest first.<br> OperationId: `StaffDomainLimitsControllerHistory`
|
|
5796
|
+
* @summary Limit override history of a Domain
|
|
5797
|
+
* @param {string} id
|
|
5798
|
+
* @param {*} [options] Override http request option.
|
|
5799
|
+
* @throws {RequiredError}
|
|
5800
|
+
*/
|
|
5801
|
+
async staffDomainLimitsControllerHistory(id, options) {
|
|
5802
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffDomainLimitsControllerHistory(id, options);
|
|
5803
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5804
|
+
const localVarOperationServerBasePath = operationServerMap['StaffDomainLimitsApi.staffDomainLimitsControllerHistory']?.[localVarOperationServerIndex]
|
|
5805
|
+
?.url;
|
|
5806
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5807
|
+
},
|
|
5808
|
+
/**
|
|
5809
|
+
* 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`
|
|
5810
|
+
* @summary Override one limit of a Domain
|
|
5811
|
+
* @param {string} id
|
|
5812
|
+
* @param {string} limitKey
|
|
5813
|
+
* @param {DomainLimitOverrideInputDTO} [domainLimitOverrideInputDTO] DomainLimitOverrideInputDTO
|
|
5814
|
+
* @param {*} [options] Override http request option.
|
|
5815
|
+
* @throws {RequiredError}
|
|
5816
|
+
*/
|
|
5817
|
+
async staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options) {
|
|
5818
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options);
|
|
5819
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5820
|
+
const localVarOperationServerBasePath = operationServerMap['StaffDomainLimitsApi.staffDomainLimitsControllerSet']?.[localVarOperationServerIndex]?.url;
|
|
5821
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5822
|
+
},
|
|
5823
|
+
};
|
|
5824
|
+
};
|
|
5825
|
+
/**
|
|
5826
|
+
* StaffDomainLimitsApi - factory interface
|
|
5827
|
+
* @export
|
|
5828
|
+
*/
|
|
5829
|
+
export const StaffDomainLimitsApiFactory = function (configuration, basePath, axios) {
|
|
5830
|
+
const localVarFp = StaffDomainLimitsApiFp(configuration);
|
|
5831
|
+
return {
|
|
5832
|
+
/**
|
|
5833
|
+
* The Plan’s value applies again at once.<br> OperationId: `StaffDomainLimitsControllerClear`
|
|
5834
|
+
* @summary Clear a limit override of a Domain
|
|
5835
|
+
* @param {string} id
|
|
5836
|
+
* @param {string} limitKey
|
|
5837
|
+
* @param {DomainLimitOverrideClearInputDTO} [domainLimitOverrideClearInputDTO] DomainLimitOverrideClearInputDTO
|
|
5838
|
+
* @param {*} [options] Override http request option.
|
|
5839
|
+
* @throws {RequiredError}
|
|
5840
|
+
*/
|
|
5841
|
+
staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options) {
|
|
5842
|
+
return localVarFp
|
|
5843
|
+
.staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options)
|
|
5844
|
+
.then((request) => request(axios, basePath));
|
|
5845
|
+
},
|
|
5846
|
+
/**
|
|
5847
|
+
* Every limit with its value and source: the Plan, an override, or `unmanaged` for a Domain with no Plan.<br> OperationId: `StaffDomainLimitsControllerGet`
|
|
5848
|
+
* @summary Effective limits of a Domain
|
|
5849
|
+
* @param {string} id
|
|
5850
|
+
* @param {*} [options] Override http request option.
|
|
5851
|
+
* @throws {RequiredError}
|
|
5852
|
+
*/
|
|
5853
|
+
staffDomainLimitsControllerGet(id, options) {
|
|
5854
|
+
return localVarFp.staffDomainLimitsControllerGet(id, options).then((request) => request(axios, basePath));
|
|
5855
|
+
},
|
|
5856
|
+
/**
|
|
5857
|
+
* Newest first.<br> OperationId: `StaffDomainLimitsControllerHistory`
|
|
5858
|
+
* @summary Limit override history of a Domain
|
|
5859
|
+
* @param {string} id
|
|
5860
|
+
* @param {*} [options] Override http request option.
|
|
5861
|
+
* @throws {RequiredError}
|
|
5862
|
+
*/
|
|
5863
|
+
staffDomainLimitsControllerHistory(id, options) {
|
|
5864
|
+
return localVarFp.staffDomainLimitsControllerHistory(id, options).then((request) => request(axios, basePath));
|
|
5865
|
+
},
|
|
5866
|
+
/**
|
|
5867
|
+
* 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`
|
|
5868
|
+
* @summary Override one limit of a Domain
|
|
5869
|
+
* @param {string} id
|
|
5870
|
+
* @param {string} limitKey
|
|
5871
|
+
* @param {DomainLimitOverrideInputDTO} [domainLimitOverrideInputDTO] DomainLimitOverrideInputDTO
|
|
5872
|
+
* @param {*} [options] Override http request option.
|
|
5873
|
+
* @throws {RequiredError}
|
|
5874
|
+
*/
|
|
5875
|
+
staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options) {
|
|
5876
|
+
return localVarFp
|
|
5877
|
+
.staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options)
|
|
5878
|
+
.then((request) => request(axios, basePath));
|
|
5879
|
+
},
|
|
5880
|
+
};
|
|
5881
|
+
};
|
|
5882
|
+
/**
|
|
5883
|
+
* StaffDomainLimitsApi - object-oriented interface
|
|
5884
|
+
* @export
|
|
5885
|
+
* @class StaffDomainLimitsApi
|
|
5279
5886
|
* @extends {BaseAPI}
|
|
5280
5887
|
*/
|
|
5281
|
-
export class
|
|
5888
|
+
export class StaffDomainLimitsApi extends BaseAPI {
|
|
5282
5889
|
/**
|
|
5283
|
-
* The
|
|
5284
|
-
* @summary
|
|
5890
|
+
* The Plan’s value applies again at once.<br> OperationId: `StaffDomainLimitsControllerClear`
|
|
5891
|
+
* @summary Clear a limit override of a Domain
|
|
5892
|
+
* @param {string} id
|
|
5893
|
+
* @param {string} limitKey
|
|
5894
|
+
* @param {DomainLimitOverrideClearInputDTO} [domainLimitOverrideClearInputDTO] DomainLimitOverrideClearInputDTO
|
|
5285
5895
|
* @param {*} [options] Override http request option.
|
|
5286
5896
|
* @throws {RequiredError}
|
|
5287
|
-
* @memberof
|
|
5897
|
+
* @memberof StaffDomainLimitsApi
|
|
5288
5898
|
*/
|
|
5289
|
-
|
|
5290
|
-
return
|
|
5291
|
-
.
|
|
5899
|
+
staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options) {
|
|
5900
|
+
return StaffDomainLimitsApiFp(this.configuration)
|
|
5901
|
+
.staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options)
|
|
5902
|
+
.then((request) => request(this.axios, this.basePath));
|
|
5903
|
+
}
|
|
5904
|
+
/**
|
|
5905
|
+
* Every limit with its value and source: the Plan, an override, or `unmanaged` for a Domain with no Plan.<br> OperationId: `StaffDomainLimitsControllerGet`
|
|
5906
|
+
* @summary Effective limits of a Domain
|
|
5907
|
+
* @param {string} id
|
|
5908
|
+
* @param {*} [options] Override http request option.
|
|
5909
|
+
* @throws {RequiredError}
|
|
5910
|
+
* @memberof StaffDomainLimitsApi
|
|
5911
|
+
*/
|
|
5912
|
+
staffDomainLimitsControllerGet(id, options) {
|
|
5913
|
+
return StaffDomainLimitsApiFp(this.configuration)
|
|
5914
|
+
.staffDomainLimitsControllerGet(id, options)
|
|
5915
|
+
.then((request) => request(this.axios, this.basePath));
|
|
5916
|
+
}
|
|
5917
|
+
/**
|
|
5918
|
+
* Newest first.<br> OperationId: `StaffDomainLimitsControllerHistory`
|
|
5919
|
+
* @summary Limit override history of a Domain
|
|
5920
|
+
* @param {string} id
|
|
5921
|
+
* @param {*} [options] Override http request option.
|
|
5922
|
+
* @throws {RequiredError}
|
|
5923
|
+
* @memberof StaffDomainLimitsApi
|
|
5924
|
+
*/
|
|
5925
|
+
staffDomainLimitsControllerHistory(id, options) {
|
|
5926
|
+
return StaffDomainLimitsApiFp(this.configuration)
|
|
5927
|
+
.staffDomainLimitsControllerHistory(id, options)
|
|
5928
|
+
.then((request) => request(this.axios, this.basePath));
|
|
5929
|
+
}
|
|
5930
|
+
/**
|
|
5931
|
+
* 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`
|
|
5932
|
+
* @summary Override one limit of a Domain
|
|
5933
|
+
* @param {string} id
|
|
5934
|
+
* @param {string} limitKey
|
|
5935
|
+
* @param {DomainLimitOverrideInputDTO} [domainLimitOverrideInputDTO] DomainLimitOverrideInputDTO
|
|
5936
|
+
* @param {*} [options] Override http request option.
|
|
5937
|
+
* @throws {RequiredError}
|
|
5938
|
+
* @memberof StaffDomainLimitsApi
|
|
5939
|
+
*/
|
|
5940
|
+
staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options) {
|
|
5941
|
+
return StaffDomainLimitsApiFp(this.configuration)
|
|
5942
|
+
.staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options)
|
|
5292
5943
|
.then((request) => request(this.axios, this.basePath));
|
|
5293
5944
|
}
|
|
5294
5945
|
}
|
|
5295
5946
|
/**
|
|
5296
|
-
*
|
|
5947
|
+
* StaffMeApi - axios parameter creator
|
|
5297
5948
|
* @export
|
|
5298
5949
|
*/
|
|
5299
|
-
export const
|
|
5950
|
+
export const StaffMeApiAxiosParamCreator = function (configuration) {
|
|
5300
5951
|
return {
|
|
5301
5952
|
/**
|
|
5302
|
-
*
|
|
5303
|
-
* @summary
|
|
5953
|
+
* 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`
|
|
5954
|
+
* @summary Who this Staff session belongs to
|
|
5304
5955
|
* @param {*} [options] Override http request option.
|
|
5305
5956
|
* @throws {RequiredError}
|
|
5306
5957
|
*/
|
|
5307
|
-
|
|
5308
|
-
const localVarPath = `/staff/
|
|
5958
|
+
staffMeControllerMe: async (options = {}) => {
|
|
5959
|
+
const localVarPath = `/staff/me`;
|
|
5309
5960
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5310
5961
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5311
5962
|
let baseOptions;
|
|
@@ -5329,61 +5980,717 @@ export const StaffPlanApiAxiosParamCreator = function (configuration) {
|
|
|
5329
5980
|
};
|
|
5330
5981
|
};
|
|
5331
5982
|
/**
|
|
5332
|
-
*
|
|
5983
|
+
* StaffMeApi - functional programming interface
|
|
5333
5984
|
* @export
|
|
5334
5985
|
*/
|
|
5335
|
-
export const
|
|
5336
|
-
const localVarAxiosParamCreator =
|
|
5986
|
+
export const StaffMeApiFp = function (configuration) {
|
|
5987
|
+
const localVarAxiosParamCreator = StaffMeApiAxiosParamCreator(configuration);
|
|
5337
5988
|
return {
|
|
5338
5989
|
/**
|
|
5339
|
-
*
|
|
5340
|
-
* @summary
|
|
5990
|
+
* 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`
|
|
5991
|
+
* @summary Who this Staff session belongs to
|
|
5341
5992
|
* @param {*} [options] Override http request option.
|
|
5342
5993
|
* @throws {RequiredError}
|
|
5343
5994
|
*/
|
|
5344
|
-
async
|
|
5345
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5995
|
+
async staffMeControllerMe(options) {
|
|
5996
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffMeControllerMe(options);
|
|
5346
5997
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5347
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
5998
|
+
const localVarOperationServerBasePath = operationServerMap['StaffMeApi.staffMeControllerMe']?.[localVarOperationServerIndex]?.url;
|
|
5348
5999
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5349
6000
|
},
|
|
5350
6001
|
};
|
|
5351
6002
|
};
|
|
5352
6003
|
/**
|
|
5353
|
-
*
|
|
6004
|
+
* StaffMeApi - factory interface
|
|
5354
6005
|
* @export
|
|
5355
6006
|
*/
|
|
5356
|
-
export const
|
|
5357
|
-
const localVarFp =
|
|
6007
|
+
export const StaffMeApiFactory = function (configuration, basePath, axios) {
|
|
6008
|
+
const localVarFp = StaffMeApiFp(configuration);
|
|
5358
6009
|
return {
|
|
5359
6010
|
/**
|
|
5360
|
-
*
|
|
5361
|
-
* @summary
|
|
6011
|
+
* 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`
|
|
6012
|
+
* @summary Who this Staff session belongs to
|
|
5362
6013
|
* @param {*} [options] Override http request option.
|
|
5363
6014
|
* @throws {RequiredError}
|
|
5364
6015
|
*/
|
|
5365
|
-
|
|
5366
|
-
return localVarFp.
|
|
6016
|
+
staffMeControllerMe(options) {
|
|
6017
|
+
return localVarFp.staffMeControllerMe(options).then((request) => request(axios, basePath));
|
|
5367
6018
|
},
|
|
5368
6019
|
};
|
|
5369
6020
|
};
|
|
5370
6021
|
/**
|
|
5371
|
-
*
|
|
6022
|
+
* StaffMeApi - object-oriented interface
|
|
5372
6023
|
* @export
|
|
5373
|
-
* @class
|
|
6024
|
+
* @class StaffMeApi
|
|
5374
6025
|
* @extends {BaseAPI}
|
|
5375
6026
|
*/
|
|
5376
|
-
export class
|
|
6027
|
+
export class StaffMeApi extends BaseAPI {
|
|
5377
6028
|
/**
|
|
5378
|
-
*
|
|
5379
|
-
* @summary
|
|
6029
|
+
* 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`
|
|
6030
|
+
* @summary Who this Staff session belongs to
|
|
6031
|
+
* @param {*} [options] Override http request option.
|
|
6032
|
+
* @throws {RequiredError}
|
|
6033
|
+
* @memberof StaffMeApi
|
|
6034
|
+
*/
|
|
6035
|
+
staffMeControllerMe(options) {
|
|
6036
|
+
return StaffMeApiFp(this.configuration)
|
|
6037
|
+
.staffMeControllerMe(options)
|
|
6038
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6039
|
+
}
|
|
6040
|
+
}
|
|
6041
|
+
/**
|
|
6042
|
+
* StaffPlanApi - axios parameter creator
|
|
6043
|
+
* @export
|
|
6044
|
+
*/
|
|
6045
|
+
export const StaffPlanApiAxiosParamCreator = function (configuration) {
|
|
6046
|
+
return {
|
|
6047
|
+
/**
|
|
6048
|
+
* 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`
|
|
6049
|
+
* @summary Archive a Plan
|
|
6050
|
+
* @param {string} id
|
|
6051
|
+
* @param {PlanArchiveInputDTO} [planArchiveInputDTO] PlanArchiveInputDTO
|
|
6052
|
+
* @param {*} [options] Override http request option.
|
|
6053
|
+
* @throws {RequiredError}
|
|
6054
|
+
*/
|
|
6055
|
+
staffPlanControllerArchive: async (id, planArchiveInputDTO, options = {}) => {
|
|
6056
|
+
// verify required parameter 'id' is not null or undefined
|
|
6057
|
+
assertParamExists('staffPlanControllerArchive', 'id', id);
|
|
6058
|
+
const localVarPath = `/staff/plans/{id}/archive`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
6059
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6060
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6061
|
+
let baseOptions;
|
|
6062
|
+
if (configuration) {
|
|
6063
|
+
baseOptions = configuration.baseOptions;
|
|
6064
|
+
}
|
|
6065
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6066
|
+
const localVarHeaderParameter = {};
|
|
6067
|
+
const localVarQueryParameter = {};
|
|
6068
|
+
// authentication staffSession required
|
|
6069
|
+
// authentication adminAuth required
|
|
6070
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
6071
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6072
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6073
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6074
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6075
|
+
localVarRequestOptions.data = serializeDataIfNeeded(planArchiveInputDTO, localVarRequestOptions, configuration);
|
|
6076
|
+
return {
|
|
6077
|
+
url: toPathString(localVarUrlObj),
|
|
6078
|
+
options: localVarRequestOptions,
|
|
6079
|
+
};
|
|
6080
|
+
},
|
|
6081
|
+
/**
|
|
6082
|
+
* Omitted limits take the Domain column defaults. Recorded with who, when and the reason.<br> OperationId: `StaffPlanControllerCreate`
|
|
6083
|
+
* @summary Create a Plan
|
|
6084
|
+
* @param {PlanCreateInputDTO} [planCreateInputDTO] PlanCreateInputDTO
|
|
6085
|
+
* @param {*} [options] Override http request option.
|
|
6086
|
+
* @throws {RequiredError}
|
|
6087
|
+
*/
|
|
6088
|
+
staffPlanControllerCreate: async (planCreateInputDTO, options = {}) => {
|
|
6089
|
+
const localVarPath = `/staff/plans`;
|
|
6090
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6091
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6092
|
+
let baseOptions;
|
|
6093
|
+
if (configuration) {
|
|
6094
|
+
baseOptions = configuration.baseOptions;
|
|
6095
|
+
}
|
|
6096
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6097
|
+
const localVarHeaderParameter = {};
|
|
6098
|
+
const localVarQueryParameter = {};
|
|
6099
|
+
// authentication staffSession required
|
|
6100
|
+
// authentication adminAuth required
|
|
6101
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
6102
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6103
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6104
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6105
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6106
|
+
localVarRequestOptions.data = serializeDataIfNeeded(planCreateInputDTO, localVarRequestOptions, configuration);
|
|
6107
|
+
return {
|
|
6108
|
+
url: toPathString(localVarUrlObj),
|
|
6109
|
+
options: localVarRequestOptions,
|
|
6110
|
+
};
|
|
6111
|
+
},
|
|
6112
|
+
/**
|
|
6113
|
+
* Newest first, each with the Plan as it was after.<br> OperationId: `StaffPlanControllerHistory`
|
|
6114
|
+
* @summary Change history of a Plan
|
|
6115
|
+
* @param {string} id
|
|
6116
|
+
* @param {*} [options] Override http request option.
|
|
6117
|
+
* @throws {RequiredError}
|
|
6118
|
+
*/
|
|
6119
|
+
staffPlanControllerHistory: async (id, options = {}) => {
|
|
6120
|
+
// verify required parameter 'id' is not null or undefined
|
|
6121
|
+
assertParamExists('staffPlanControllerHistory', 'id', id);
|
|
6122
|
+
const localVarPath = `/staff/plans/{id}/history`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
6123
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6124
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6125
|
+
let baseOptions;
|
|
6126
|
+
if (configuration) {
|
|
6127
|
+
baseOptions = configuration.baseOptions;
|
|
6128
|
+
}
|
|
6129
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
6130
|
+
const localVarHeaderParameter = {};
|
|
6131
|
+
const localVarQueryParameter = {};
|
|
6132
|
+
// authentication staffSession required
|
|
6133
|
+
// authentication adminAuth required
|
|
6134
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
6135
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6136
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6137
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6138
|
+
return {
|
|
6139
|
+
url: toPathString(localVarUrlObj),
|
|
6140
|
+
options: localVarRequestOptions,
|
|
6141
|
+
};
|
|
6142
|
+
},
|
|
6143
|
+
/**
|
|
6144
|
+
* 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`
|
|
6145
|
+
* @summary Import Plans from the billing provider
|
|
6146
|
+
* @param {PlanImportInputDTO} [planImportInputDTO] PlanImportInputDTO
|
|
6147
|
+
* @param {*} [options] Override http request option.
|
|
6148
|
+
* @throws {RequiredError}
|
|
6149
|
+
*/
|
|
6150
|
+
staffPlanControllerImport: async (planImportInputDTO, options = {}) => {
|
|
6151
|
+
const localVarPath = `/staff/plans/import`;
|
|
6152
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6153
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6154
|
+
let baseOptions;
|
|
6155
|
+
if (configuration) {
|
|
6156
|
+
baseOptions = configuration.baseOptions;
|
|
6157
|
+
}
|
|
6158
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6159
|
+
const localVarHeaderParameter = {};
|
|
6160
|
+
const localVarQueryParameter = {};
|
|
6161
|
+
// authentication staffSession required
|
|
6162
|
+
// authentication adminAuth required
|
|
6163
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
6164
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6165
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6166
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6167
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6168
|
+
localVarRequestOptions.data = serializeDataIfNeeded(planImportInputDTO, localVarRequestOptions, configuration);
|
|
6169
|
+
return {
|
|
6170
|
+
url: toPathString(localVarUrlObj),
|
|
6171
|
+
options: localVarRequestOptions,
|
|
6172
|
+
};
|
|
6173
|
+
},
|
|
6174
|
+
/**
|
|
6175
|
+
* True once an import has created any Plan, even if those Plans were later unlinked or archived.<br> OperationId: `StaffPlanControllerImportStatus`
|
|
6176
|
+
* @summary Whether the billing-provider import ran
|
|
6177
|
+
* @param {*} [options] Override http request option.
|
|
6178
|
+
* @throws {RequiredError}
|
|
6179
|
+
*/
|
|
6180
|
+
staffPlanControllerImportStatus: async (options = {}) => {
|
|
6181
|
+
const localVarPath = `/staff/plans/import`;
|
|
6182
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6183
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6184
|
+
let baseOptions;
|
|
6185
|
+
if (configuration) {
|
|
6186
|
+
baseOptions = configuration.baseOptions;
|
|
6187
|
+
}
|
|
6188
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
6189
|
+
const localVarHeaderParameter = {};
|
|
6190
|
+
const localVarQueryParameter = {};
|
|
6191
|
+
// authentication staffSession required
|
|
6192
|
+
// authentication adminAuth required
|
|
6193
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
6194
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6195
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6196
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6197
|
+
return {
|
|
6198
|
+
url: toPathString(localVarUrlObj),
|
|
6199
|
+
options: localVarRequestOptions,
|
|
6200
|
+
};
|
|
6201
|
+
},
|
|
6202
|
+
/**
|
|
6203
|
+
* 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`
|
|
6204
|
+
* @summary List Plans
|
|
6205
|
+
* @param {any} [includeArchived]
|
|
6206
|
+
* @param {*} [options] Override http request option.
|
|
6207
|
+
* @throws {RequiredError}
|
|
6208
|
+
*/
|
|
6209
|
+
staffPlanControllerList: async (includeArchived, options = {}) => {
|
|
6210
|
+
const localVarPath = `/staff/plans`;
|
|
6211
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6212
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6213
|
+
let baseOptions;
|
|
6214
|
+
if (configuration) {
|
|
6215
|
+
baseOptions = configuration.baseOptions;
|
|
6216
|
+
}
|
|
6217
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
6218
|
+
const localVarHeaderParameter = {};
|
|
6219
|
+
const localVarQueryParameter = {};
|
|
6220
|
+
// authentication staffSession required
|
|
6221
|
+
// authentication adminAuth required
|
|
6222
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
6223
|
+
if (includeArchived !== undefined) {
|
|
6224
|
+
for (const [key, value] of Object.entries(includeArchived)) {
|
|
6225
|
+
localVarQueryParameter[key] = value;
|
|
6226
|
+
}
|
|
6227
|
+
}
|
|
6228
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6229
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6230
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6231
|
+
return {
|
|
6232
|
+
url: toPathString(localVarUrlObj),
|
|
6233
|
+
options: localVarRequestOptions,
|
|
6234
|
+
};
|
|
6235
|
+
},
|
|
6236
|
+
/**
|
|
6237
|
+
* 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`
|
|
6238
|
+
* @summary The billing provider’s products
|
|
6239
|
+
* @param {*} [options] Override http request option.
|
|
6240
|
+
* @throws {RequiredError}
|
|
6241
|
+
*/
|
|
6242
|
+
staffPlanControllerListStripeProducts: async (options = {}) => {
|
|
6243
|
+
const localVarPath = `/staff/stripe-products`;
|
|
6244
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6245
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6246
|
+
let baseOptions;
|
|
6247
|
+
if (configuration) {
|
|
6248
|
+
baseOptions = configuration.baseOptions;
|
|
6249
|
+
}
|
|
6250
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
6251
|
+
const localVarHeaderParameter = {};
|
|
6252
|
+
const localVarQueryParameter = {};
|
|
6253
|
+
// authentication staffSession required
|
|
6254
|
+
// authentication adminAuth required
|
|
6255
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
6256
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6257
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6258
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6259
|
+
return {
|
|
6260
|
+
url: toPathString(localVarUrlObj),
|
|
6261
|
+
options: localVarRequestOptions,
|
|
6262
|
+
};
|
|
6263
|
+
},
|
|
6264
|
+
/**
|
|
6265
|
+
* 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`
|
|
6266
|
+
* @summary Preview a Plan edit
|
|
6267
|
+
* @param {string} id
|
|
6268
|
+
* @param {PlanPreviewInputDTO} [planPreviewInputDTO] PlanPreviewInputDTO
|
|
6269
|
+
* @param {*} [options] Override http request option.
|
|
6270
|
+
* @throws {RequiredError}
|
|
6271
|
+
*/
|
|
6272
|
+
staffPlanControllerPreview: async (id, planPreviewInputDTO, options = {}) => {
|
|
6273
|
+
// verify required parameter 'id' is not null or undefined
|
|
6274
|
+
assertParamExists('staffPlanControllerPreview', 'id', id);
|
|
6275
|
+
const localVarPath = `/staff/plans/{id}/preview`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
6276
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6277
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6278
|
+
let baseOptions;
|
|
6279
|
+
if (configuration) {
|
|
6280
|
+
baseOptions = configuration.baseOptions;
|
|
6281
|
+
}
|
|
6282
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6283
|
+
const localVarHeaderParameter = {};
|
|
6284
|
+
const localVarQueryParameter = {};
|
|
6285
|
+
// authentication staffSession required
|
|
6286
|
+
// authentication adminAuth required
|
|
6287
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
6288
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6289
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6290
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6291
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6292
|
+
localVarRequestOptions.data = serializeDataIfNeeded(planPreviewInputDTO, localVarRequestOptions, configuration);
|
|
6293
|
+
return {
|
|
6294
|
+
url: toPathString(localVarUrlObj),
|
|
6295
|
+
options: localVarRequestOptions,
|
|
6296
|
+
};
|
|
6297
|
+
},
|
|
6298
|
+
/**
|
|
6299
|
+
* 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`
|
|
6300
|
+
* @summary Update a Plan
|
|
6301
|
+
* @param {string} id
|
|
6302
|
+
* @param {PlanUpdateInputDTO} [planUpdateInputDTO] PlanUpdateInputDTO
|
|
6303
|
+
* @param {*} [options] Override http request option.
|
|
6304
|
+
* @throws {RequiredError}
|
|
6305
|
+
*/
|
|
6306
|
+
staffPlanControllerUpdate: async (id, planUpdateInputDTO, options = {}) => {
|
|
6307
|
+
// verify required parameter 'id' is not null or undefined
|
|
6308
|
+
assertParamExists('staffPlanControllerUpdate', 'id', id);
|
|
6309
|
+
const localVarPath = `/staff/plans/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
6310
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6311
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6312
|
+
let baseOptions;
|
|
6313
|
+
if (configuration) {
|
|
6314
|
+
baseOptions = configuration.baseOptions;
|
|
6315
|
+
}
|
|
6316
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
6317
|
+
const localVarHeaderParameter = {};
|
|
6318
|
+
const localVarQueryParameter = {};
|
|
6319
|
+
// authentication staffSession required
|
|
6320
|
+
// authentication adminAuth required
|
|
6321
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
6322
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6323
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6324
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6325
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6326
|
+
localVarRequestOptions.data = serializeDataIfNeeded(planUpdateInputDTO, localVarRequestOptions, configuration);
|
|
6327
|
+
return {
|
|
6328
|
+
url: toPathString(localVarUrlObj),
|
|
6329
|
+
options: localVarRequestOptions,
|
|
6330
|
+
};
|
|
6331
|
+
},
|
|
6332
|
+
};
|
|
6333
|
+
};
|
|
6334
|
+
/**
|
|
6335
|
+
* StaffPlanApi - functional programming interface
|
|
6336
|
+
* @export
|
|
6337
|
+
*/
|
|
6338
|
+
export const StaffPlanApiFp = function (configuration) {
|
|
6339
|
+
const localVarAxiosParamCreator = StaffPlanApiAxiosParamCreator(configuration);
|
|
6340
|
+
return {
|
|
6341
|
+
/**
|
|
6342
|
+
* 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`
|
|
6343
|
+
* @summary Archive a Plan
|
|
6344
|
+
* @param {string} id
|
|
6345
|
+
* @param {PlanArchiveInputDTO} [planArchiveInputDTO] PlanArchiveInputDTO
|
|
6346
|
+
* @param {*} [options] Override http request option.
|
|
6347
|
+
* @throws {RequiredError}
|
|
6348
|
+
*/
|
|
6349
|
+
async staffPlanControllerArchive(id, planArchiveInputDTO, options) {
|
|
6350
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerArchive(id, planArchiveInputDTO, options);
|
|
6351
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6352
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerArchive']?.[localVarOperationServerIndex]?.url;
|
|
6353
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6354
|
+
},
|
|
6355
|
+
/**
|
|
6356
|
+
* Omitted limits take the Domain column defaults. Recorded with who, when and the reason.<br> OperationId: `StaffPlanControllerCreate`
|
|
6357
|
+
* @summary Create a Plan
|
|
6358
|
+
* @param {PlanCreateInputDTO} [planCreateInputDTO] PlanCreateInputDTO
|
|
6359
|
+
* @param {*} [options] Override http request option.
|
|
6360
|
+
* @throws {RequiredError}
|
|
6361
|
+
*/
|
|
6362
|
+
async staffPlanControllerCreate(planCreateInputDTO, options) {
|
|
6363
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerCreate(planCreateInputDTO, options);
|
|
6364
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6365
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerCreate']?.[localVarOperationServerIndex]?.url;
|
|
6366
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6367
|
+
},
|
|
6368
|
+
/**
|
|
6369
|
+
* Newest first, each with the Plan as it was after.<br> OperationId: `StaffPlanControllerHistory`
|
|
6370
|
+
* @summary Change history of a Plan
|
|
6371
|
+
* @param {string} id
|
|
6372
|
+
* @param {*} [options] Override http request option.
|
|
6373
|
+
* @throws {RequiredError}
|
|
6374
|
+
*/
|
|
6375
|
+
async staffPlanControllerHistory(id, options) {
|
|
6376
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerHistory(id, options);
|
|
6377
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6378
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerHistory']?.[localVarOperationServerIndex]?.url;
|
|
6379
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6380
|
+
},
|
|
6381
|
+
/**
|
|
6382
|
+
* 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`
|
|
6383
|
+
* @summary Import Plans from the billing provider
|
|
6384
|
+
* @param {PlanImportInputDTO} [planImportInputDTO] PlanImportInputDTO
|
|
6385
|
+
* @param {*} [options] Override http request option.
|
|
6386
|
+
* @throws {RequiredError}
|
|
6387
|
+
*/
|
|
6388
|
+
async staffPlanControllerImport(planImportInputDTO, options) {
|
|
6389
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerImport(planImportInputDTO, options);
|
|
6390
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6391
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerImport']?.[localVarOperationServerIndex]?.url;
|
|
6392
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6393
|
+
},
|
|
6394
|
+
/**
|
|
6395
|
+
* True once an import has created any Plan, even if those Plans were later unlinked or archived.<br> OperationId: `StaffPlanControllerImportStatus`
|
|
6396
|
+
* @summary Whether the billing-provider import ran
|
|
6397
|
+
* @param {*} [options] Override http request option.
|
|
6398
|
+
* @throws {RequiredError}
|
|
6399
|
+
*/
|
|
6400
|
+
async staffPlanControllerImportStatus(options) {
|
|
6401
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerImportStatus(options);
|
|
6402
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6403
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerImportStatus']?.[localVarOperationServerIndex]?.url;
|
|
6404
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6405
|
+
},
|
|
6406
|
+
/**
|
|
6407
|
+
* 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`
|
|
6408
|
+
* @summary List Plans
|
|
6409
|
+
* @param {any} [includeArchived]
|
|
6410
|
+
* @param {*} [options] Override http request option.
|
|
6411
|
+
* @throws {RequiredError}
|
|
6412
|
+
*/
|
|
6413
|
+
async staffPlanControllerList(includeArchived, options) {
|
|
6414
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerList(includeArchived, options);
|
|
6415
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6416
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerList']?.[localVarOperationServerIndex]?.url;
|
|
6417
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6418
|
+
},
|
|
6419
|
+
/**
|
|
6420
|
+
* 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`
|
|
6421
|
+
* @summary The billing provider’s products
|
|
6422
|
+
* @param {*} [options] Override http request option.
|
|
6423
|
+
* @throws {RequiredError}
|
|
6424
|
+
*/
|
|
6425
|
+
async staffPlanControllerListStripeProducts(options) {
|
|
6426
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerListStripeProducts(options);
|
|
6427
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6428
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerListStripeProducts']?.[localVarOperationServerIndex]?.url;
|
|
6429
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6430
|
+
},
|
|
6431
|
+
/**
|
|
6432
|
+
* 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`
|
|
6433
|
+
* @summary Preview a Plan edit
|
|
6434
|
+
* @param {string} id
|
|
6435
|
+
* @param {PlanPreviewInputDTO} [planPreviewInputDTO] PlanPreviewInputDTO
|
|
6436
|
+
* @param {*} [options] Override http request option.
|
|
6437
|
+
* @throws {RequiredError}
|
|
6438
|
+
*/
|
|
6439
|
+
async staffPlanControllerPreview(id, planPreviewInputDTO, options) {
|
|
6440
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerPreview(id, planPreviewInputDTO, options);
|
|
6441
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6442
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerPreview']?.[localVarOperationServerIndex]?.url;
|
|
6443
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6444
|
+
},
|
|
6445
|
+
/**
|
|
6446
|
+
* 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`
|
|
6447
|
+
* @summary Update a Plan
|
|
6448
|
+
* @param {string} id
|
|
6449
|
+
* @param {PlanUpdateInputDTO} [planUpdateInputDTO] PlanUpdateInputDTO
|
|
6450
|
+
* @param {*} [options] Override http request option.
|
|
6451
|
+
* @throws {RequiredError}
|
|
6452
|
+
*/
|
|
6453
|
+
async staffPlanControllerUpdate(id, planUpdateInputDTO, options) {
|
|
6454
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerUpdate(id, planUpdateInputDTO, options);
|
|
6455
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6456
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerUpdate']?.[localVarOperationServerIndex]?.url;
|
|
6457
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6458
|
+
},
|
|
6459
|
+
};
|
|
6460
|
+
};
|
|
6461
|
+
/**
|
|
6462
|
+
* StaffPlanApi - factory interface
|
|
6463
|
+
* @export
|
|
6464
|
+
*/
|
|
6465
|
+
export const StaffPlanApiFactory = function (configuration, basePath, axios) {
|
|
6466
|
+
const localVarFp = StaffPlanApiFp(configuration);
|
|
6467
|
+
return {
|
|
6468
|
+
/**
|
|
6469
|
+
* 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`
|
|
6470
|
+
* @summary Archive a Plan
|
|
6471
|
+
* @param {string} id
|
|
6472
|
+
* @param {PlanArchiveInputDTO} [planArchiveInputDTO] PlanArchiveInputDTO
|
|
6473
|
+
* @param {*} [options] Override http request option.
|
|
6474
|
+
* @throws {RequiredError}
|
|
6475
|
+
*/
|
|
6476
|
+
staffPlanControllerArchive(id, planArchiveInputDTO, options) {
|
|
6477
|
+
return localVarFp
|
|
6478
|
+
.staffPlanControllerArchive(id, planArchiveInputDTO, options)
|
|
6479
|
+
.then((request) => request(axios, basePath));
|
|
6480
|
+
},
|
|
6481
|
+
/**
|
|
6482
|
+
* Omitted limits take the Domain column defaults. Recorded with who, when and the reason.<br> OperationId: `StaffPlanControllerCreate`
|
|
6483
|
+
* @summary Create a Plan
|
|
6484
|
+
* @param {PlanCreateInputDTO} [planCreateInputDTO] PlanCreateInputDTO
|
|
6485
|
+
* @param {*} [options] Override http request option.
|
|
6486
|
+
* @throws {RequiredError}
|
|
6487
|
+
*/
|
|
6488
|
+
staffPlanControllerCreate(planCreateInputDTO, options) {
|
|
6489
|
+
return localVarFp
|
|
6490
|
+
.staffPlanControllerCreate(planCreateInputDTO, options)
|
|
6491
|
+
.then((request) => request(axios, basePath));
|
|
6492
|
+
},
|
|
6493
|
+
/**
|
|
6494
|
+
* Newest first, each with the Plan as it was after.<br> OperationId: `StaffPlanControllerHistory`
|
|
6495
|
+
* @summary Change history of a Plan
|
|
6496
|
+
* @param {string} id
|
|
6497
|
+
* @param {*} [options] Override http request option.
|
|
6498
|
+
* @throws {RequiredError}
|
|
6499
|
+
*/
|
|
6500
|
+
staffPlanControllerHistory(id, options) {
|
|
6501
|
+
return localVarFp.staffPlanControllerHistory(id, options).then((request) => request(axios, basePath));
|
|
6502
|
+
},
|
|
6503
|
+
/**
|
|
6504
|
+
* 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`
|
|
6505
|
+
* @summary Import Plans from the billing provider
|
|
6506
|
+
* @param {PlanImportInputDTO} [planImportInputDTO] PlanImportInputDTO
|
|
6507
|
+
* @param {*} [options] Override http request option.
|
|
6508
|
+
* @throws {RequiredError}
|
|
6509
|
+
*/
|
|
6510
|
+
staffPlanControllerImport(planImportInputDTO, options) {
|
|
6511
|
+
return localVarFp
|
|
6512
|
+
.staffPlanControllerImport(planImportInputDTO, options)
|
|
6513
|
+
.then((request) => request(axios, basePath));
|
|
6514
|
+
},
|
|
6515
|
+
/**
|
|
6516
|
+
* True once an import has created any Plan, even if those Plans were later unlinked or archived.<br> OperationId: `StaffPlanControllerImportStatus`
|
|
6517
|
+
* @summary Whether the billing-provider import ran
|
|
6518
|
+
* @param {*} [options] Override http request option.
|
|
6519
|
+
* @throws {RequiredError}
|
|
6520
|
+
*/
|
|
6521
|
+
staffPlanControllerImportStatus(options) {
|
|
6522
|
+
return localVarFp.staffPlanControllerImportStatus(options).then((request) => request(axios, basePath));
|
|
6523
|
+
},
|
|
6524
|
+
/**
|
|
6525
|
+
* 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`
|
|
6526
|
+
* @summary List Plans
|
|
6527
|
+
* @param {any} [includeArchived]
|
|
6528
|
+
* @param {*} [options] Override http request option.
|
|
6529
|
+
* @throws {RequiredError}
|
|
6530
|
+
*/
|
|
6531
|
+
staffPlanControllerList(includeArchived, options) {
|
|
6532
|
+
return localVarFp.staffPlanControllerList(includeArchived, options).then((request) => request(axios, basePath));
|
|
6533
|
+
},
|
|
6534
|
+
/**
|
|
6535
|
+
* 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`
|
|
6536
|
+
* @summary The billing provider’s products
|
|
6537
|
+
* @param {*} [options] Override http request option.
|
|
6538
|
+
* @throws {RequiredError}
|
|
6539
|
+
*/
|
|
6540
|
+
staffPlanControllerListStripeProducts(options) {
|
|
6541
|
+
return localVarFp.staffPlanControllerListStripeProducts(options).then((request) => request(axios, basePath));
|
|
6542
|
+
},
|
|
6543
|
+
/**
|
|
6544
|
+
* 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`
|
|
6545
|
+
* @summary Preview a Plan edit
|
|
6546
|
+
* @param {string} id
|
|
6547
|
+
* @param {PlanPreviewInputDTO} [planPreviewInputDTO] PlanPreviewInputDTO
|
|
6548
|
+
* @param {*} [options] Override http request option.
|
|
6549
|
+
* @throws {RequiredError}
|
|
6550
|
+
*/
|
|
6551
|
+
staffPlanControllerPreview(id, planPreviewInputDTO, options) {
|
|
6552
|
+
return localVarFp
|
|
6553
|
+
.staffPlanControllerPreview(id, planPreviewInputDTO, options)
|
|
6554
|
+
.then((request) => request(axios, basePath));
|
|
6555
|
+
},
|
|
6556
|
+
/**
|
|
6557
|
+
* 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`
|
|
6558
|
+
* @summary Update a Plan
|
|
6559
|
+
* @param {string} id
|
|
6560
|
+
* @param {PlanUpdateInputDTO} [planUpdateInputDTO] PlanUpdateInputDTO
|
|
6561
|
+
* @param {*} [options] Override http request option.
|
|
6562
|
+
* @throws {RequiredError}
|
|
6563
|
+
*/
|
|
6564
|
+
staffPlanControllerUpdate(id, planUpdateInputDTO, options) {
|
|
6565
|
+
return localVarFp
|
|
6566
|
+
.staffPlanControllerUpdate(id, planUpdateInputDTO, options)
|
|
6567
|
+
.then((request) => request(axios, basePath));
|
|
6568
|
+
},
|
|
6569
|
+
};
|
|
6570
|
+
};
|
|
6571
|
+
/**
|
|
6572
|
+
* StaffPlanApi - object-oriented interface
|
|
6573
|
+
* @export
|
|
6574
|
+
* @class StaffPlanApi
|
|
6575
|
+
* @extends {BaseAPI}
|
|
6576
|
+
*/
|
|
6577
|
+
export class StaffPlanApi extends BaseAPI {
|
|
6578
|
+
/**
|
|
6579
|
+
* 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`
|
|
6580
|
+
* @summary Archive a Plan
|
|
6581
|
+
* @param {string} id
|
|
6582
|
+
* @param {PlanArchiveInputDTO} [planArchiveInputDTO] PlanArchiveInputDTO
|
|
6583
|
+
* @param {*} [options] Override http request option.
|
|
6584
|
+
* @throws {RequiredError}
|
|
6585
|
+
* @memberof StaffPlanApi
|
|
6586
|
+
*/
|
|
6587
|
+
staffPlanControllerArchive(id, planArchiveInputDTO, options) {
|
|
6588
|
+
return StaffPlanApiFp(this.configuration)
|
|
6589
|
+
.staffPlanControllerArchive(id, planArchiveInputDTO, options)
|
|
6590
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6591
|
+
}
|
|
6592
|
+
/**
|
|
6593
|
+
* Omitted limits take the Domain column defaults. Recorded with who, when and the reason.<br> OperationId: `StaffPlanControllerCreate`
|
|
6594
|
+
* @summary Create a Plan
|
|
6595
|
+
* @param {PlanCreateInputDTO} [planCreateInputDTO] PlanCreateInputDTO
|
|
6596
|
+
* @param {*} [options] Override http request option.
|
|
6597
|
+
* @throws {RequiredError}
|
|
6598
|
+
* @memberof StaffPlanApi
|
|
6599
|
+
*/
|
|
6600
|
+
staffPlanControllerCreate(planCreateInputDTO, options) {
|
|
6601
|
+
return StaffPlanApiFp(this.configuration)
|
|
6602
|
+
.staffPlanControllerCreate(planCreateInputDTO, options)
|
|
6603
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6604
|
+
}
|
|
6605
|
+
/**
|
|
6606
|
+
* Newest first, each with the Plan as it was after.<br> OperationId: `StaffPlanControllerHistory`
|
|
6607
|
+
* @summary Change history of a Plan
|
|
6608
|
+
* @param {string} id
|
|
6609
|
+
* @param {*} [options] Override http request option.
|
|
6610
|
+
* @throws {RequiredError}
|
|
6611
|
+
* @memberof StaffPlanApi
|
|
6612
|
+
*/
|
|
6613
|
+
staffPlanControllerHistory(id, options) {
|
|
6614
|
+
return StaffPlanApiFp(this.configuration)
|
|
6615
|
+
.staffPlanControllerHistory(id, options)
|
|
6616
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6617
|
+
}
|
|
6618
|
+
/**
|
|
6619
|
+
* 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`
|
|
6620
|
+
* @summary Import Plans from the billing provider
|
|
6621
|
+
* @param {PlanImportInputDTO} [planImportInputDTO] PlanImportInputDTO
|
|
6622
|
+
* @param {*} [options] Override http request option.
|
|
6623
|
+
* @throws {RequiredError}
|
|
6624
|
+
* @memberof StaffPlanApi
|
|
6625
|
+
*/
|
|
6626
|
+
staffPlanControllerImport(planImportInputDTO, options) {
|
|
6627
|
+
return StaffPlanApiFp(this.configuration)
|
|
6628
|
+
.staffPlanControllerImport(planImportInputDTO, options)
|
|
6629
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6630
|
+
}
|
|
6631
|
+
/**
|
|
6632
|
+
* True once an import has created any Plan, even if those Plans were later unlinked or archived.<br> OperationId: `StaffPlanControllerImportStatus`
|
|
6633
|
+
* @summary Whether the billing-provider import ran
|
|
6634
|
+
* @param {*} [options] Override http request option.
|
|
6635
|
+
* @throws {RequiredError}
|
|
6636
|
+
* @memberof StaffPlanApi
|
|
6637
|
+
*/
|
|
6638
|
+
staffPlanControllerImportStatus(options) {
|
|
6639
|
+
return StaffPlanApiFp(this.configuration)
|
|
6640
|
+
.staffPlanControllerImportStatus(options)
|
|
6641
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6642
|
+
}
|
|
6643
|
+
/**
|
|
6644
|
+
* 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`
|
|
6645
|
+
* @summary List Plans
|
|
6646
|
+
* @param {any} [includeArchived]
|
|
6647
|
+
* @param {*} [options] Override http request option.
|
|
6648
|
+
* @throws {RequiredError}
|
|
6649
|
+
* @memberof StaffPlanApi
|
|
6650
|
+
*/
|
|
6651
|
+
staffPlanControllerList(includeArchived, options) {
|
|
6652
|
+
return StaffPlanApiFp(this.configuration)
|
|
6653
|
+
.staffPlanControllerList(includeArchived, options)
|
|
6654
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6655
|
+
}
|
|
6656
|
+
/**
|
|
6657
|
+
* 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`
|
|
6658
|
+
* @summary The billing provider’s products
|
|
6659
|
+
* @param {*} [options] Override http request option.
|
|
6660
|
+
* @throws {RequiredError}
|
|
6661
|
+
* @memberof StaffPlanApi
|
|
6662
|
+
*/
|
|
6663
|
+
staffPlanControllerListStripeProducts(options) {
|
|
6664
|
+
return StaffPlanApiFp(this.configuration)
|
|
6665
|
+
.staffPlanControllerListStripeProducts(options)
|
|
6666
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6667
|
+
}
|
|
6668
|
+
/**
|
|
6669
|
+
* 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`
|
|
6670
|
+
* @summary Preview a Plan edit
|
|
6671
|
+
* @param {string} id
|
|
6672
|
+
* @param {PlanPreviewInputDTO} [planPreviewInputDTO] PlanPreviewInputDTO
|
|
6673
|
+
* @param {*} [options] Override http request option.
|
|
6674
|
+
* @throws {RequiredError}
|
|
6675
|
+
* @memberof StaffPlanApi
|
|
6676
|
+
*/
|
|
6677
|
+
staffPlanControllerPreview(id, planPreviewInputDTO, options) {
|
|
6678
|
+
return StaffPlanApiFp(this.configuration)
|
|
6679
|
+
.staffPlanControllerPreview(id, planPreviewInputDTO, options)
|
|
6680
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6681
|
+
}
|
|
6682
|
+
/**
|
|
6683
|
+
* 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`
|
|
6684
|
+
* @summary Update a Plan
|
|
6685
|
+
* @param {string} id
|
|
6686
|
+
* @param {PlanUpdateInputDTO} [planUpdateInputDTO] PlanUpdateInputDTO
|
|
5380
6687
|
* @param {*} [options] Override http request option.
|
|
5381
6688
|
* @throws {RequiredError}
|
|
5382
6689
|
* @memberof StaffPlanApi
|
|
5383
6690
|
*/
|
|
5384
|
-
|
|
6691
|
+
staffPlanControllerUpdate(id, planUpdateInputDTO, options) {
|
|
5385
6692
|
return StaffPlanApiFp(this.configuration)
|
|
5386
|
-
.
|
|
6693
|
+
.staffPlanControllerUpdate(id, planUpdateInputDTO, options)
|
|
5387
6694
|
.then((request) => request(this.axios, this.basePath));
|
|
5388
6695
|
}
|
|
5389
6696
|
}
|