@takaro/apiclient 0.0.0-dev.b912b3a → 0.0.0-dev.ba583df
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 +15471 -9347
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/generated/api.js +9340 -5885
- 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 +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 +13287 -6877
- package/dist/generated-management/api.d.ts.map +1 -1
- package/dist/generated-management/api.js +3126 -428
- 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 +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 +6 -1
- package/dist/lib/adminClient.d.ts.map +1 -1
- package/dist/lib/adminClient.js +16 -1
- package/dist/lib/adminClient.js.map +1 -1
- package/dist/lib/apiKey.d.ts +0 -15
- package/dist/lib/apiKey.d.ts.map +1 -1
- package/dist/lib/apiKey.js +2 -19
- package/dist/lib/apiKey.js.map +1 -1
- package/dist/lib/baseClient.d.ts +1 -27
- package/dist/lib/baseClient.d.ts.map +1 -1
- package/dist/lib/baseClient.js +3 -18
- package/dist/lib/baseClient.js.map +1 -1
- package/dist/lib/client.d.ts +9 -23
- package/dist/lib/client.d.ts.map +1 -1
- package/dist/lib/client.js +29 -25
- package/dist/lib/client.js.map +1 -1
- package/dist/lib/distributorClient.d.ts +0 -6
- package/dist/lib/distributorClient.d.ts.map +1 -1
- package/dist/lib/distributorClient.js +1 -7
- package/dist/lib/distributorClient.js.map +1 -1
- package/dist/lib/staffClient.d.ts +5 -12
- package/dist/lib/staffClient.d.ts.map +1 -1
- package/dist/lib/staffClient.js +11 -12
- package/dist/lib/staffClient.js.map +1 -1
- package/dist/main.d.ts +2 -2
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +3 -5
- package/dist/main.js.map +1 -1
- package/package.json +4 -3
|
@@ -47,14 +47,17 @@ export const ApiKeySearchInputDTOSortDirectionEnum = {
|
|
|
47
47
|
Asc: 'asc',
|
|
48
48
|
Desc: 'desc',
|
|
49
49
|
};
|
|
50
|
-
export const
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
export const ConnectorMigrationOutputDTOStatusEnum = {
|
|
51
|
+
Pending: 'pending',
|
|
52
|
+
Completed: 'completed',
|
|
53
|
+
Cancelled: 'cancelled',
|
|
54
|
+
Reverted: 'reverted',
|
|
54
55
|
};
|
|
55
|
-
export const
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
export const ConnectorMigrationOutputDTOLegacyTypeEnum = {
|
|
57
|
+
Sevendaystodie: 'SEVENDAYSTODIE',
|
|
58
|
+
Rust: 'RUST',
|
|
59
|
+
Generic: 'GENERIC',
|
|
60
|
+
Mock: 'MOCK',
|
|
58
61
|
};
|
|
59
62
|
export const DistributorDomainSearchInputAllowedFiltersStateEnum = {
|
|
60
63
|
Active: 'ACTIVE',
|
|
@@ -86,6 +89,21 @@ export const DomainCreateInputDTOStateEnum = {
|
|
|
86
89
|
Disabled: 'DISABLED',
|
|
87
90
|
Maintenance: 'MAINTENANCE',
|
|
88
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
|
+
};
|
|
89
107
|
export const DomainOutputDTOStateEnum = {
|
|
90
108
|
Active: 'ACTIVE',
|
|
91
109
|
Disabled: 'DISABLED',
|
|
@@ -168,6 +186,7 @@ export const EventCreateDTOEventNameEnum = {
|
|
|
168
186
|
PlayerLinked: 'player-linked',
|
|
169
187
|
GameserverCreated: 'gameserver-created',
|
|
170
188
|
GameserverUpdated: 'gameserver-updated',
|
|
189
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
171
190
|
GameserverDeleted: 'gameserver-deleted',
|
|
172
191
|
PlayerBanned: 'player-banned',
|
|
173
192
|
PlayerUnbanned: 'player-unbanned',
|
|
@@ -183,6 +202,12 @@ export const EventCreateDTOEventNameEnum = {
|
|
|
183
202
|
DomainCreated: 'domain-created',
|
|
184
203
|
DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
|
|
185
204
|
DomainPlanChanged: 'domain-plan-changed',
|
|
205
|
+
ConnectorMigrationStarted: 'connector-migration-started',
|
|
206
|
+
ConnectorMigrationCompleted: 'connector-migration-completed',
|
|
207
|
+
ConnectorMigrationCancelled: 'connector-migration-cancelled',
|
|
208
|
+
ConnectorMigrationReverted: 'connector-migration-reverted',
|
|
209
|
+
DiscordGuildEnabled: 'discord-guild-enabled',
|
|
210
|
+
ItemsGiven: 'items-given',
|
|
186
211
|
PlayerConnected: 'player-connected',
|
|
187
212
|
PlayerDisconnected: 'player-disconnected',
|
|
188
213
|
ChatMessage: 'chat-message',
|
|
@@ -221,6 +246,7 @@ export const EventOutputDTOEventNameEnum = {
|
|
|
221
246
|
PlayerLinked: 'player-linked',
|
|
222
247
|
GameserverCreated: 'gameserver-created',
|
|
223
248
|
GameserverUpdated: 'gameserver-updated',
|
|
249
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
224
250
|
GameserverDeleted: 'gameserver-deleted',
|
|
225
251
|
PlayerBanned: 'player-banned',
|
|
226
252
|
PlayerUnbanned: 'player-unbanned',
|
|
@@ -236,24 +262,67 @@ export const EventOutputDTOEventNameEnum = {
|
|
|
236
262
|
DomainCreated: 'domain-created',
|
|
237
263
|
DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
|
|
238
264
|
DomainPlanChanged: 'domain-plan-changed',
|
|
265
|
+
ConnectorMigrationStarted: 'connector-migration-started',
|
|
266
|
+
ConnectorMigrationCompleted: 'connector-migration-completed',
|
|
267
|
+
ConnectorMigrationCancelled: 'connector-migration-cancelled',
|
|
268
|
+
ConnectorMigrationReverted: 'connector-migration-reverted',
|
|
269
|
+
DiscordGuildEnabled: 'discord-guild-enabled',
|
|
270
|
+
ItemsGiven: 'items-given',
|
|
239
271
|
PlayerConnected: 'player-connected',
|
|
240
272
|
PlayerDisconnected: 'player-disconnected',
|
|
241
273
|
ChatMessage: 'chat-message',
|
|
242
274
|
PlayerDeath: 'player-death',
|
|
243
275
|
EntityKilled: 'entity-killed',
|
|
244
276
|
};
|
|
277
|
+
export const FixtureHistoryConflictDTOKindEnum = {
|
|
278
|
+
TakaroPlayer: 'takaro-player',
|
|
279
|
+
TakaroPog: 'takaro-pog',
|
|
280
|
+
};
|
|
281
|
+
export const FixtureHistoryDeleteInputDTOStoreEnum = {
|
|
282
|
+
Analytics: 'analytics',
|
|
283
|
+
Postgres: 'postgres',
|
|
284
|
+
};
|
|
285
|
+
export const FixtureHistoryEventDTOEventNameEnum = {
|
|
286
|
+
PlayerConnected: 'player-connected',
|
|
287
|
+
PlayerDisconnected: 'player-disconnected',
|
|
288
|
+
PlayerSyncSnapshot: 'player-sync-snapshot',
|
|
289
|
+
ChatMessage: 'chat-message',
|
|
290
|
+
CurrencyAdded: 'currency-added',
|
|
291
|
+
CurrencyDeducted: 'currency-deducted',
|
|
292
|
+
ShopOrderCreated: 'shop-order-created',
|
|
293
|
+
ShopOrderStatusChanged: 'shop-order-status-changed',
|
|
294
|
+
};
|
|
295
|
+
export const FixtureHistoryListingConflictDTOKindEnum = {
|
|
296
|
+
TakaroListing: 'takaro-listing',
|
|
297
|
+
};
|
|
298
|
+
export const FixtureHistoryOrderDTOStatusEnum = {
|
|
299
|
+
Completed: 'COMPLETED',
|
|
300
|
+
Canceled: 'CANCELED',
|
|
301
|
+
};
|
|
245
302
|
export const GameServerCreateDTOTypeEnum = {
|
|
246
303
|
Sevendaystodie: 'SEVENDAYSTODIE',
|
|
247
304
|
Rust: 'RUST',
|
|
248
305
|
Generic: 'GENERIC',
|
|
249
306
|
Mock: 'MOCK',
|
|
250
307
|
};
|
|
308
|
+
export const GameServerCreateDTONameSourceEnum = {
|
|
309
|
+
Connector: 'connector',
|
|
310
|
+
Operator: 'operator',
|
|
311
|
+
};
|
|
312
|
+
export const GameServerIdentifyInputDTOProtocolVersionEnum = {
|
|
313
|
+
NUMBER_0: 0,
|
|
314
|
+
NUMBER_1: 1,
|
|
315
|
+
};
|
|
251
316
|
export const GameServerOutputDTOTypeEnum = {
|
|
252
317
|
Sevendaystodie: 'SEVENDAYSTODIE',
|
|
253
318
|
Rust: 'RUST',
|
|
254
319
|
Generic: 'GENERIC',
|
|
255
320
|
Mock: 'MOCK',
|
|
256
321
|
};
|
|
322
|
+
export const GameServerOutputDTONameSourceEnum = {
|
|
323
|
+
Connector: 'connector',
|
|
324
|
+
Operator: 'operator',
|
|
325
|
+
};
|
|
257
326
|
export const GameServerTypesOutputDTOTypeEnum = {
|
|
258
327
|
Sevendaystodie: 'SEVENDAYSTODIE',
|
|
259
328
|
Rust: 'RUST',
|
|
@@ -266,6 +335,27 @@ export const GameServerUpdateDTOTypeEnum = {
|
|
|
266
335
|
Generic: 'GENERIC',
|
|
267
336
|
Mock: 'MOCK',
|
|
268
337
|
};
|
|
338
|
+
export const GetJobInputDTOTypeEnum = {
|
|
339
|
+
CsmmImport: 'csmmImport',
|
|
340
|
+
SeedModules: 'seedModules',
|
|
341
|
+
CleanEvents: 'cleanEvents',
|
|
342
|
+
CleanExpiringVariables: 'cleanExpiringVariables',
|
|
343
|
+
EnsureCronjobsScheduled: 'ensureCronjobsScheduled',
|
|
344
|
+
DeleteGameServers: 'deleteGameServers',
|
|
345
|
+
SyncItems: 'syncItems',
|
|
346
|
+
SyncEntities: 'syncEntities',
|
|
347
|
+
SyncBans: 'syncBans',
|
|
348
|
+
SyncMapImages: 'syncMapImages',
|
|
349
|
+
SyncMapUploads: 'syncMapUploads',
|
|
350
|
+
SyncGameIcons: 'syncGameIcons',
|
|
351
|
+
SyncSteam: 'syncSteam',
|
|
352
|
+
SyncDiscordRoles: 'syncDiscordRoles',
|
|
353
|
+
EmitRateLimitSummary: 'emitRateLimitSummary',
|
|
354
|
+
CleanRevokedApiKeys: 'cleanRevokedApiKeys',
|
|
355
|
+
CleanExecutionClaims: 'cleanExecutionClaims',
|
|
356
|
+
DeleteClickHouseEvents: 'deleteClickHouseEvents',
|
|
357
|
+
CleanConnectorMigrations: 'cleanConnectorMigrations',
|
|
358
|
+
};
|
|
269
359
|
export const HookCreateDTOEventTypeEnum = {
|
|
270
360
|
Log: 'log',
|
|
271
361
|
PlayerConnected: 'player-connected',
|
|
@@ -305,6 +395,7 @@ export const HookCreateDTOEventTypeEnum = {
|
|
|
305
395
|
PlayerLinked: 'player-linked',
|
|
306
396
|
GameserverCreated: 'gameserver-created',
|
|
307
397
|
GameserverUpdated: 'gameserver-updated',
|
|
398
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
308
399
|
GameserverDeleted: 'gameserver-deleted',
|
|
309
400
|
PlayerBanned: 'player-banned',
|
|
310
401
|
PlayerUnbanned: 'player-unbanned',
|
|
@@ -320,6 +411,12 @@ export const HookCreateDTOEventTypeEnum = {
|
|
|
320
411
|
DomainCreated: 'domain-created',
|
|
321
412
|
DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
|
|
322
413
|
DomainPlanChanged: 'domain-plan-changed',
|
|
414
|
+
ConnectorMigrationStarted: 'connector-migration-started',
|
|
415
|
+
ConnectorMigrationCompleted: 'connector-migration-completed',
|
|
416
|
+
ConnectorMigrationCancelled: 'connector-migration-cancelled',
|
|
417
|
+
ConnectorMigrationReverted: 'connector-migration-reverted',
|
|
418
|
+
DiscordGuildEnabled: 'discord-guild-enabled',
|
|
419
|
+
ItemsGiven: 'items-given',
|
|
323
420
|
};
|
|
324
421
|
export const HookOutputDTOEventTypeEnum = {
|
|
325
422
|
Log: 'log',
|
|
@@ -360,6 +457,7 @@ export const HookOutputDTOEventTypeEnum = {
|
|
|
360
457
|
PlayerLinked: 'player-linked',
|
|
361
458
|
GameserverCreated: 'gameserver-created',
|
|
362
459
|
GameserverUpdated: 'gameserver-updated',
|
|
460
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
363
461
|
GameserverDeleted: 'gameserver-deleted',
|
|
364
462
|
PlayerBanned: 'player-banned',
|
|
365
463
|
PlayerUnbanned: 'player-unbanned',
|
|
@@ -375,6 +473,12 @@ export const HookOutputDTOEventTypeEnum = {
|
|
|
375
473
|
DomainCreated: 'domain-created',
|
|
376
474
|
DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
|
|
377
475
|
DomainPlanChanged: 'domain-plan-changed',
|
|
476
|
+
ConnectorMigrationStarted: 'connector-migration-started',
|
|
477
|
+
ConnectorMigrationCompleted: 'connector-migration-completed',
|
|
478
|
+
ConnectorMigrationCancelled: 'connector-migration-cancelled',
|
|
479
|
+
ConnectorMigrationReverted: 'connector-migration-reverted',
|
|
480
|
+
DiscordGuildEnabled: 'discord-guild-enabled',
|
|
481
|
+
ItemsGiven: 'items-given',
|
|
378
482
|
};
|
|
379
483
|
export const HookTriggerDTOEventTypeEnum = {
|
|
380
484
|
Log: 'log',
|
|
@@ -415,6 +519,7 @@ export const HookTriggerDTOEventTypeEnum = {
|
|
|
415
519
|
PlayerLinked: 'player-linked',
|
|
416
520
|
GameserverCreated: 'gameserver-created',
|
|
417
521
|
GameserverUpdated: 'gameserver-updated',
|
|
522
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
418
523
|
GameserverDeleted: 'gameserver-deleted',
|
|
419
524
|
PlayerBanned: 'player-banned',
|
|
420
525
|
PlayerUnbanned: 'player-unbanned',
|
|
@@ -430,6 +535,12 @@ export const HookTriggerDTOEventTypeEnum = {
|
|
|
430
535
|
DomainCreated: 'domain-created',
|
|
431
536
|
DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
|
|
432
537
|
DomainPlanChanged: 'domain-plan-changed',
|
|
538
|
+
ConnectorMigrationStarted: 'connector-migration-started',
|
|
539
|
+
ConnectorMigrationCompleted: 'connector-migration-completed',
|
|
540
|
+
ConnectorMigrationCancelled: 'connector-migration-cancelled',
|
|
541
|
+
ConnectorMigrationReverted: 'connector-migration-reverted',
|
|
542
|
+
DiscordGuildEnabled: 'discord-guild-enabled',
|
|
543
|
+
ItemsGiven: 'items-given',
|
|
433
544
|
};
|
|
434
545
|
export const HookUpdateDTOEventTypeEnum = {
|
|
435
546
|
Log: 'log',
|
|
@@ -470,6 +581,7 @@ export const HookUpdateDTOEventTypeEnum = {
|
|
|
470
581
|
PlayerLinked: 'player-linked',
|
|
471
582
|
GameserverCreated: 'gameserver-created',
|
|
472
583
|
GameserverUpdated: 'gameserver-updated',
|
|
584
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
473
585
|
GameserverDeleted: 'gameserver-deleted',
|
|
474
586
|
PlayerBanned: 'player-banned',
|
|
475
587
|
PlayerUnbanned: 'player-unbanned',
|
|
@@ -485,6 +597,12 @@ export const HookUpdateDTOEventTypeEnum = {
|
|
|
485
597
|
DomainCreated: 'domain-created',
|
|
486
598
|
DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
|
|
487
599
|
DomainPlanChanged: 'domain-plan-changed',
|
|
600
|
+
ConnectorMigrationStarted: 'connector-migration-started',
|
|
601
|
+
ConnectorMigrationCompleted: 'connector-migration-completed',
|
|
602
|
+
ConnectorMigrationCancelled: 'connector-migration-cancelled',
|
|
603
|
+
ConnectorMigrationReverted: 'connector-migration-reverted',
|
|
604
|
+
DiscordGuildEnabled: 'discord-guild-enabled',
|
|
605
|
+
ItemsGiven: 'items-given',
|
|
488
606
|
};
|
|
489
607
|
export const IEntityDTOTypeEnum = {
|
|
490
608
|
Hostile: 'hostile',
|
|
@@ -530,6 +648,7 @@ export const IHookEventTypeEnum = {
|
|
|
530
648
|
PlayerLinked: 'player-linked',
|
|
531
649
|
GameserverCreated: 'gameserver-created',
|
|
532
650
|
GameserverUpdated: 'gameserver-updated',
|
|
651
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
533
652
|
GameserverDeleted: 'gameserver-deleted',
|
|
534
653
|
PlayerBanned: 'player-banned',
|
|
535
654
|
PlayerUnbanned: 'player-unbanned',
|
|
@@ -545,6 +664,12 @@ export const IHookEventTypeEnum = {
|
|
|
545
664
|
DomainCreated: 'domain-created',
|
|
546
665
|
DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
|
|
547
666
|
DomainPlanChanged: 'domain-plan-changed',
|
|
667
|
+
ConnectorMigrationStarted: 'connector-migration-started',
|
|
668
|
+
ConnectorMigrationCompleted: 'connector-migration-completed',
|
|
669
|
+
ConnectorMigrationCancelled: 'connector-migration-cancelled',
|
|
670
|
+
ConnectorMigrationReverted: 'connector-migration-reverted',
|
|
671
|
+
DiscordGuildEnabled: 'discord-guild-enabled',
|
|
672
|
+
ItemsGiven: 'items-given',
|
|
548
673
|
};
|
|
549
674
|
export const ITakaroQuerySortDirectionEnum = {
|
|
550
675
|
Asc: 'asc',
|
|
@@ -592,6 +717,33 @@ export const ManagementDomainOutputDTOCustomDomainStateEnum = {
|
|
|
592
717
|
Verified: 'VERIFIED',
|
|
593
718
|
Failed: 'FAILED',
|
|
594
719
|
};
|
|
720
|
+
export const MapHorizontalAxisDTOFieldEnum = {
|
|
721
|
+
X: 'x',
|
|
722
|
+
Y: 'y',
|
|
723
|
+
Z: 'z',
|
|
724
|
+
};
|
|
725
|
+
export const MapHorizontalAxisDTODirectionEnum = {
|
|
726
|
+
Right: 'right',
|
|
727
|
+
Left: 'left',
|
|
728
|
+
};
|
|
729
|
+
export const MapPyramidDTOOriginEnum = {
|
|
730
|
+
Game: 'game',
|
|
731
|
+
Upload: 'upload',
|
|
732
|
+
};
|
|
733
|
+
export const MapSourceDTOTypeEnum = {
|
|
734
|
+
None: 'none',
|
|
735
|
+
Tiled: 'tiled',
|
|
736
|
+
Image: 'image',
|
|
737
|
+
};
|
|
738
|
+
export const MapVerticalAxisDTOFieldEnum = {
|
|
739
|
+
X: 'x',
|
|
740
|
+
Y: 'y',
|
|
741
|
+
Z: 'z',
|
|
742
|
+
};
|
|
743
|
+
export const MapVerticalAxisDTODirectionEnum = {
|
|
744
|
+
Up: 'up',
|
|
745
|
+
Down: 'down',
|
|
746
|
+
};
|
|
595
747
|
export const OrderStatusCountDTOStatusEnum = {
|
|
596
748
|
Completed: 'COMPLETED',
|
|
597
749
|
Paid: 'PAID',
|
|
@@ -629,11 +781,15 @@ export const PERMISSIONS = {
|
|
|
629
781
|
SendDiscordMessage: 'SEND_DISCORD_MESSAGE',
|
|
630
782
|
ManageApiKeys: 'MANAGE_API_KEYS',
|
|
631
783
|
};
|
|
632
|
-
export const
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
784
|
+
export const PlanChangeOutputDTOActionEnum = {
|
|
785
|
+
Create: 'create',
|
|
786
|
+
Update: 'update',
|
|
787
|
+
Archive: 'archive',
|
|
788
|
+
};
|
|
789
|
+
export const PlanChangeOutputDTOActorKindEnum = {
|
|
790
|
+
StaffSession: 'staffSession',
|
|
791
|
+
AdminSecret: 'adminSecret',
|
|
792
|
+
System: 'system',
|
|
637
793
|
};
|
|
638
794
|
export const PlayerOnGameServerSearchInputDTOExtendEnum = {
|
|
639
795
|
GameServer: 'gameServer',
|
|
@@ -674,6 +830,7 @@ export const SettingsOutputDTOKeyEnum = {
|
|
|
674
830
|
DiscordRoleSyncPreferDiscord: 'discordRoleSyncPreferDiscord',
|
|
675
831
|
UnknownCommandFeedbackEnabled: 'unknownCommandFeedbackEnabled',
|
|
676
832
|
UnknownCommandFeedbackMessage: 'unknownCommandFeedbackMessage',
|
|
833
|
+
TakaroAiEnabled: 'takaroAiEnabled',
|
|
677
834
|
};
|
|
678
835
|
export const SettingsOutputDTOTypeEnum = {
|
|
679
836
|
Override: 'override',
|
|
@@ -751,11 +908,24 @@ export const ShopListingUpdateDTORequiredVariableOperatorEnum = {
|
|
|
751
908
|
Gt: 'gt',
|
|
752
909
|
Lt: 'lt',
|
|
753
910
|
};
|
|
911
|
+
export const ShopOrderDeliveryItemDTOResultEnum = {
|
|
912
|
+
Delivered: 'DELIVERED',
|
|
913
|
+
Failed: 'FAILED',
|
|
914
|
+
Unknown: 'UNKNOWN',
|
|
915
|
+
};
|
|
754
916
|
export const ShopOrderOutputDTOStatusEnum = {
|
|
755
917
|
Completed: 'COMPLETED',
|
|
756
918
|
Paid: 'PAID',
|
|
757
919
|
Canceled: 'CANCELED',
|
|
758
920
|
};
|
|
921
|
+
export const ShopOrderOutputDTODeliveryStatusEnum = {
|
|
922
|
+
NotApplicable: 'NOT_APPLICABLE',
|
|
923
|
+
NotAttempted: 'NOT_ATTEMPTED',
|
|
924
|
+
InProgress: 'IN_PROGRESS',
|
|
925
|
+
Delivered: 'DELIVERED',
|
|
926
|
+
Failed: 'FAILED',
|
|
927
|
+
Unknown: 'UNKNOWN',
|
|
928
|
+
};
|
|
759
929
|
export const ShopOrderUpdateDTOStatusEnum = {
|
|
760
930
|
Completed: 'COMPLETED',
|
|
761
931
|
Paid: 'PAID',
|
|
@@ -771,6 +941,55 @@ export const StorefrontDomainOutputDTOCustomDomainStateEnum = {
|
|
|
771
941
|
Verified: 'VERIFIED',
|
|
772
942
|
Failed: 'FAILED',
|
|
773
943
|
};
|
|
944
|
+
export const StripePriceDTOIntervalEnum = {
|
|
945
|
+
Day: 'day',
|
|
946
|
+
Week: 'week',
|
|
947
|
+
Month: 'month',
|
|
948
|
+
Year: 'year',
|
|
949
|
+
};
|
|
950
|
+
export const TakaroAiDomainOutputDTOOverrideStateEnum = {
|
|
951
|
+
None: 'none',
|
|
952
|
+
Active: 'active',
|
|
953
|
+
Expired: 'expired',
|
|
954
|
+
};
|
|
955
|
+
export const TakaroAiDomainOutputDTOStatusEnum = {
|
|
956
|
+
Available: 'available',
|
|
957
|
+
Grace: 'grace',
|
|
958
|
+
DailyLimitReached: 'dailyLimitReached',
|
|
959
|
+
LimitReached: 'limitReached',
|
|
960
|
+
Disabled: 'disabled',
|
|
961
|
+
NoAllowance: 'noAllowance',
|
|
962
|
+
NeedsGameServer: 'needsGameServer',
|
|
963
|
+
};
|
|
964
|
+
export const TakaroAiStaffChangeOutputDTOSubjectEnum = {
|
|
965
|
+
GlobalMultiplier: 'globalMultiplier',
|
|
966
|
+
DomainOverride: 'domainOverride',
|
|
967
|
+
MigrationCap: 'migrationCap',
|
|
968
|
+
};
|
|
969
|
+
export const TakaroAiStaffChangeOutputDTOActorKindEnum = {
|
|
970
|
+
StaffSession: 'staffSession',
|
|
971
|
+
AdminSecret: 'adminSecret',
|
|
972
|
+
};
|
|
973
|
+
export const TakaroAiUsageOutputDTOStatusEnum = {
|
|
974
|
+
Available: 'available',
|
|
975
|
+
Grace: 'grace',
|
|
976
|
+
DailyLimitReached: 'dailyLimitReached',
|
|
977
|
+
LimitReached: 'limitReached',
|
|
978
|
+
Disabled: 'disabled',
|
|
979
|
+
NoAllowance: 'noAllowance',
|
|
980
|
+
NeedsGameServer: 'needsGameServer',
|
|
981
|
+
};
|
|
982
|
+
export const TakaroEventDomainCreatedOriginEnum = {
|
|
983
|
+
Distributor: 'distributor',
|
|
984
|
+
Staff: 'staff',
|
|
985
|
+
Subscription: 'subscription',
|
|
986
|
+
AdminSecret: 'admin_secret',
|
|
987
|
+
};
|
|
988
|
+
export const TakaroEventItemsGivenLineResultEnum = {
|
|
989
|
+
Delivered: 'DELIVERED',
|
|
990
|
+
Failed: 'FAILED',
|
|
991
|
+
Unknown: 'UNKNOWN',
|
|
992
|
+
};
|
|
774
993
|
export const TakaroEventPlayerInventoryChangedChangeTypeEnum = {
|
|
775
994
|
Added: 'added',
|
|
776
995
|
Removed: 'removed',
|
|
@@ -781,6 +1000,151 @@ export const TakaroEventRateLimitedScopeEnum = {
|
|
|
781
1000
|
Domain: 'domain',
|
|
782
1001
|
Global: 'global',
|
|
783
1002
|
};
|
|
1003
|
+
export const ThreadApprovalDecisionInputDTOOutcomeEnum = {
|
|
1004
|
+
Approved: 'approved',
|
|
1005
|
+
Denied: 'denied',
|
|
1006
|
+
};
|
|
1007
|
+
export const ThreadContextInputDTOTypeEnum = {
|
|
1008
|
+
Player: 'player',
|
|
1009
|
+
GameServer: 'gameServer',
|
|
1010
|
+
Module: 'module',
|
|
1011
|
+
ModuleVersion: 'moduleVersion',
|
|
1012
|
+
Event: 'event',
|
|
1013
|
+
CsmmImport: 'csmmImport',
|
|
1014
|
+
};
|
|
1015
|
+
export const ThreadCreateInputDTOOriginSurfaceEnum = {
|
|
1016
|
+
CommandPalette: 'commandPalette',
|
|
1017
|
+
PlayerSummary: 'playerSummary',
|
|
1018
|
+
Modules: 'modules',
|
|
1019
|
+
GameServerModules: 'gameServerModules',
|
|
1020
|
+
GameServerOverview: 'gameServerOverview',
|
|
1021
|
+
GameServerConsole: 'gameServerConsole',
|
|
1022
|
+
DashboardBriefing: 'dashboardBriefing',
|
|
1023
|
+
EventsFilter: 'eventsFilter',
|
|
1024
|
+
RoleBuilder: 'roleBuilder',
|
|
1025
|
+
ModuleConfig: 'moduleConfig',
|
|
1026
|
+
GameServerShop: 'gameServerShop',
|
|
1027
|
+
ModuleOverview: 'moduleOverview',
|
|
1028
|
+
ModuleBuilder: 'moduleBuilder',
|
|
1029
|
+
EventFailure: 'eventFailure',
|
|
1030
|
+
CsmmMigration: 'csmmMigration',
|
|
1031
|
+
};
|
|
1032
|
+
export const ThreadOutputDTOStatusEnum = {
|
|
1033
|
+
Idle: 'idle',
|
|
1034
|
+
Working: 'working',
|
|
1035
|
+
Stopping: 'stopping',
|
|
1036
|
+
Failed: 'failed',
|
|
1037
|
+
AwaitingApproval: 'awaitingApproval',
|
|
1038
|
+
AwaitingReply: 'awaitingReply',
|
|
1039
|
+
};
|
|
1040
|
+
export const ThreadOutputDTOOriginSurfaceEnum = {
|
|
1041
|
+
CommandPalette: 'commandPalette',
|
|
1042
|
+
PlayerSummary: 'playerSummary',
|
|
1043
|
+
Modules: 'modules',
|
|
1044
|
+
GameServerModules: 'gameServerModules',
|
|
1045
|
+
GameServerOverview: 'gameServerOverview',
|
|
1046
|
+
GameServerConsole: 'gameServerConsole',
|
|
1047
|
+
DashboardBriefing: 'dashboardBriefing',
|
|
1048
|
+
EventsFilter: 'eventsFilter',
|
|
1049
|
+
RoleBuilder: 'roleBuilder',
|
|
1050
|
+
ModuleConfig: 'moduleConfig',
|
|
1051
|
+
GameServerShop: 'gameServerShop',
|
|
1052
|
+
ModuleOverview: 'moduleOverview',
|
|
1053
|
+
ModuleBuilder: 'moduleBuilder',
|
|
1054
|
+
EventFailure: 'eventFailure',
|
|
1055
|
+
CsmmMigration: 'csmmMigration',
|
|
1056
|
+
};
|
|
1057
|
+
export const ThreadSearchInputAllowedFiltersStatusEnum = {
|
|
1058
|
+
Idle: 'idle',
|
|
1059
|
+
Working: 'working',
|
|
1060
|
+
Stopping: 'stopping',
|
|
1061
|
+
Failed: 'failed',
|
|
1062
|
+
AwaitingApproval: 'awaitingApproval',
|
|
1063
|
+
AwaitingReply: 'awaitingReply',
|
|
1064
|
+
};
|
|
1065
|
+
export const ThreadSearchInputAllowedFiltersOriginSurfaceEnum = {
|
|
1066
|
+
CommandPalette: 'commandPalette',
|
|
1067
|
+
PlayerSummary: 'playerSummary',
|
|
1068
|
+
Modules: 'modules',
|
|
1069
|
+
GameServerModules: 'gameServerModules',
|
|
1070
|
+
GameServerOverview: 'gameServerOverview',
|
|
1071
|
+
GameServerConsole: 'gameServerConsole',
|
|
1072
|
+
DashboardBriefing: 'dashboardBriefing',
|
|
1073
|
+
EventsFilter: 'eventsFilter',
|
|
1074
|
+
RoleBuilder: 'roleBuilder',
|
|
1075
|
+
ModuleConfig: 'moduleConfig',
|
|
1076
|
+
GameServerShop: 'gameServerShop',
|
|
1077
|
+
ModuleOverview: 'moduleOverview',
|
|
1078
|
+
ModuleBuilder: 'moduleBuilder',
|
|
1079
|
+
EventFailure: 'eventFailure',
|
|
1080
|
+
CsmmMigration: 'csmmMigration',
|
|
1081
|
+
};
|
|
1082
|
+
export const ThreadSearchInputDTOSortDirectionEnum = {
|
|
1083
|
+
Asc: 'asc',
|
|
1084
|
+
Desc: 'desc',
|
|
1085
|
+
};
|
|
1086
|
+
export const ThreadStepApprovalDTOOutcomeEnum = {
|
|
1087
|
+
Approved: 'approved',
|
|
1088
|
+
Denied: 'denied',
|
|
1089
|
+
AutoAllowed: 'autoAllowed',
|
|
1090
|
+
Cancelled: 'cancelled',
|
|
1091
|
+
};
|
|
1092
|
+
export const ThreadStepOutputDTOKindEnum = {
|
|
1093
|
+
UserMessage: 'userMessage',
|
|
1094
|
+
ModelMessage: 'modelMessage',
|
|
1095
|
+
ToolCall: 'toolCall',
|
|
1096
|
+
ToolResult: 'toolResult',
|
|
1097
|
+
ApprovalRequest: 'approvalRequest',
|
|
1098
|
+
ApprovalOutcome: 'approvalOutcome',
|
|
1099
|
+
};
|
|
1100
|
+
export const ThreadStepReferenceDTOTypeEnum = {
|
|
1101
|
+
Player: 'player',
|
|
1102
|
+
GameServer: 'gameServer',
|
|
1103
|
+
Module: 'module',
|
|
1104
|
+
ModuleVersion: 'moduleVersion',
|
|
1105
|
+
Event: 'event',
|
|
1106
|
+
CsmmImport: 'csmmImport',
|
|
1107
|
+
};
|
|
1108
|
+
export const ThreadWithStepsOutputDTOStatusEnum = {
|
|
1109
|
+
Idle: 'idle',
|
|
1110
|
+
Working: 'working',
|
|
1111
|
+
Stopping: 'stopping',
|
|
1112
|
+
Failed: 'failed',
|
|
1113
|
+
AwaitingApproval: 'awaitingApproval',
|
|
1114
|
+
AwaitingReply: 'awaitingReply',
|
|
1115
|
+
};
|
|
1116
|
+
export const ThreadWithStepsOutputDTOOriginSurfaceEnum = {
|
|
1117
|
+
CommandPalette: 'commandPalette',
|
|
1118
|
+
PlayerSummary: 'playerSummary',
|
|
1119
|
+
Modules: 'modules',
|
|
1120
|
+
GameServerModules: 'gameServerModules',
|
|
1121
|
+
GameServerOverview: 'gameServerOverview',
|
|
1122
|
+
GameServerConsole: 'gameServerConsole',
|
|
1123
|
+
DashboardBriefing: 'dashboardBriefing',
|
|
1124
|
+
EventsFilter: 'eventsFilter',
|
|
1125
|
+
RoleBuilder: 'roleBuilder',
|
|
1126
|
+
ModuleConfig: 'moduleConfig',
|
|
1127
|
+
GameServerShop: 'gameServerShop',
|
|
1128
|
+
ModuleOverview: 'moduleOverview',
|
|
1129
|
+
ModuleBuilder: 'moduleBuilder',
|
|
1130
|
+
EventFailure: 'eventFailure',
|
|
1131
|
+
CsmmMigration: 'csmmMigration',
|
|
1132
|
+
};
|
|
1133
|
+
export const TriggerJobInputDTOTypeEnum = {
|
|
1134
|
+
SeedModules: 'seedModules',
|
|
1135
|
+
CleanEvents: 'cleanEvents',
|
|
1136
|
+
CleanExpiringVariables: 'cleanExpiringVariables',
|
|
1137
|
+
EnsureCronjobsScheduled: 'ensureCronjobsScheduled',
|
|
1138
|
+
DeleteGameServers: 'deleteGameServers',
|
|
1139
|
+
SyncItems: 'syncItems',
|
|
1140
|
+
SyncEntities: 'syncEntities',
|
|
1141
|
+
SyncBans: 'syncBans',
|
|
1142
|
+
SyncMapImages: 'syncMapImages',
|
|
1143
|
+
SyncMapUploads: 'syncMapUploads',
|
|
1144
|
+
SyncGameIcons: 'syncGameIcons',
|
|
1145
|
+
SyncSteam: 'syncSteam',
|
|
1146
|
+
SyncDiscordRoles: 'syncDiscordRoles',
|
|
1147
|
+
};
|
|
784
1148
|
export const UserSearchInputDTOExtendEnum = {
|
|
785
1149
|
Roles: 'roles',
|
|
786
1150
|
};
|
|
@@ -1545,7 +1909,7 @@ export class DistributorApi extends BaseAPI {
|
|
|
1545
1909
|
export const DistributorSelfServiceApiAxiosParamCreator = function (configuration) {
|
|
1546
1910
|
return {
|
|
1547
1911
|
/**
|
|
1548
|
-
* 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
|
|
1912
|
+
* 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`
|
|
1549
1913
|
* @summary Create a domain
|
|
1550
1914
|
* @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
|
|
1551
1915
|
* @param {*} [options] Override http request option.
|
|
@@ -1855,7 +2219,7 @@ export const DistributorSelfServiceApiAxiosParamCreator = function (configuratio
|
|
|
1855
2219
|
};
|
|
1856
2220
|
},
|
|
1857
2221
|
/**
|
|
1858
|
-
* Moves the domain onto another of the Plans allowed for the calling distributor
|
|
2222
|
+
* 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`
|
|
1859
2223
|
* @summary Change one of my domains’ Plan
|
|
1860
2224
|
* @param {string} id
|
|
1861
2225
|
* @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
|
|
@@ -1898,7 +2262,7 @@ export const DistributorSelfServiceApiFp = function (configuration) {
|
|
|
1898
2262
|
const localVarAxiosParamCreator = DistributorSelfServiceApiAxiosParamCreator(configuration);
|
|
1899
2263
|
return {
|
|
1900
2264
|
/**
|
|
1901
|
-
* 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
|
|
2265
|
+
* 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`
|
|
1902
2266
|
* @summary Create a domain
|
|
1903
2267
|
* @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
|
|
1904
2268
|
* @param {*} [options] Override http request option.
|
|
@@ -2028,7 +2392,7 @@ export const DistributorSelfServiceApiFp = function (configuration) {
|
|
|
2028
2392
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2029
2393
|
},
|
|
2030
2394
|
/**
|
|
2031
|
-
* Moves the domain onto another of the Plans allowed for the calling distributor
|
|
2395
|
+
* 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`
|
|
2032
2396
|
* @summary Change one of my domains’ Plan
|
|
2033
2397
|
* @param {string} id
|
|
2034
2398
|
* @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
|
|
@@ -2051,7 +2415,7 @@ export const DistributorSelfServiceApiFactory = function (configuration, basePat
|
|
|
2051
2415
|
const localVarFp = DistributorSelfServiceApiFp(configuration);
|
|
2052
2416
|
return {
|
|
2053
2417
|
/**
|
|
2054
|
-
* 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
|
|
2418
|
+
* 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`
|
|
2055
2419
|
* @summary Create a domain
|
|
2056
2420
|
* @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
|
|
2057
2421
|
* @param {*} [options] Override http request option.
|
|
@@ -2169,7 +2533,7 @@ export const DistributorSelfServiceApiFactory = function (configuration, basePat
|
|
|
2169
2533
|
.then((request) => request(axios, basePath));
|
|
2170
2534
|
},
|
|
2171
2535
|
/**
|
|
2172
|
-
* Moves the domain onto another of the Plans allowed for the calling distributor
|
|
2536
|
+
* 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`
|
|
2173
2537
|
* @summary Change one of my domains’ Plan
|
|
2174
2538
|
* @param {string} id
|
|
2175
2539
|
* @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
|
|
@@ -2191,7 +2555,7 @@ export const DistributorSelfServiceApiFactory = function (configuration, basePat
|
|
|
2191
2555
|
*/
|
|
2192
2556
|
export class DistributorSelfServiceApi extends BaseAPI {
|
|
2193
2557
|
/**
|
|
2194
|
-
* 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
|
|
2558
|
+
* 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`
|
|
2195
2559
|
* @summary Create a domain
|
|
2196
2560
|
* @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
|
|
2197
2561
|
* @param {*} [options] Override http request option.
|
|
@@ -2321,7 +2685,7 @@ export class DistributorSelfServiceApi extends BaseAPI {
|
|
|
2321
2685
|
.then((request) => request(this.axios, this.basePath));
|
|
2322
2686
|
}
|
|
2323
2687
|
/**
|
|
2324
|
-
* Moves the domain onto another of the Plans allowed for the calling distributor
|
|
2688
|
+
* 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`
|
|
2325
2689
|
* @summary Change one of my domains’ Plan
|
|
2326
2690
|
* @param {string} id
|
|
2327
2691
|
* @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
|
|
@@ -2633,21 +2997,24 @@ export const DomainApiAxiosParamCreator = function (configuration) {
|
|
|
2633
2997
|
};
|
|
2634
2998
|
},
|
|
2635
2999
|
/**
|
|
2636
|
-
*
|
|
2637
|
-
* @summary
|
|
2638
|
-
* @param {
|
|
3000
|
+
* 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`
|
|
3001
|
+
* @summary Put a subscription-backed domain on a Plan
|
|
3002
|
+
* @param {string} id
|
|
3003
|
+
* @param {DomainPlanInputDTO} [domainPlanInputDTO] DomainPlanInputDTO
|
|
2639
3004
|
* @param {*} [options] Override http request option.
|
|
2640
3005
|
* @throws {RequiredError}
|
|
2641
3006
|
*/
|
|
2642
|
-
|
|
2643
|
-
|
|
3007
|
+
domainControllerSetPlan: async (id, domainPlanInputDTO, options = {}) => {
|
|
3008
|
+
// verify required parameter 'id' is not null or undefined
|
|
3009
|
+
assertParamExists('domainControllerSetPlan', 'id', id);
|
|
3010
|
+
const localVarPath = `/domain/{id}/plan`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
2644
3011
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2645
3012
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2646
3013
|
let baseOptions;
|
|
2647
3014
|
if (configuration) {
|
|
2648
3015
|
baseOptions = configuration.baseOptions;
|
|
2649
3016
|
}
|
|
2650
|
-
const localVarRequestOptions = { method: '
|
|
3017
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
2651
3018
|
const localVarHeaderParameter = {};
|
|
2652
3019
|
const localVarQueryParameter = {};
|
|
2653
3020
|
// authentication staffSession required
|
|
@@ -2657,7 +3024,7 @@ export const DomainApiAxiosParamCreator = function (configuration) {
|
|
|
2657
3024
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2658
3025
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2659
3026
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2660
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3027
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainPlanInputDTO, localVarRequestOptions, configuration);
|
|
2661
3028
|
return {
|
|
2662
3029
|
url: toPathString(localVarUrlObj),
|
|
2663
3030
|
options: localVarRequestOptions,
|
|
@@ -2827,16 +3194,17 @@ export const DomainApiFp = function (configuration) {
|
|
|
2827
3194
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2828
3195
|
},
|
|
2829
3196
|
/**
|
|
2830
|
-
*
|
|
2831
|
-
* @summary
|
|
2832
|
-
* @param {
|
|
3197
|
+
* 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`
|
|
3198
|
+
* @summary Put a subscription-backed domain on a Plan
|
|
3199
|
+
* @param {string} id
|
|
3200
|
+
* @param {DomainPlanInputDTO} [domainPlanInputDTO] DomainPlanInputDTO
|
|
2833
3201
|
* @param {*} [options] Override http request option.
|
|
2834
3202
|
* @throws {RequiredError}
|
|
2835
3203
|
*/
|
|
2836
|
-
async
|
|
2837
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3204
|
+
async domainControllerSetPlan(id, domainPlanInputDTO, options) {
|
|
3205
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerSetPlan(id, domainPlanInputDTO, options);
|
|
2838
3206
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2839
|
-
const localVarOperationServerBasePath = operationServerMap['DomainApi.
|
|
3207
|
+
const localVarOperationServerBasePath = operationServerMap['DomainApi.domainControllerSetPlan']?.[localVarOperationServerIndex]?.url;
|
|
2840
3208
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2841
3209
|
},
|
|
2842
3210
|
/**
|
|
@@ -2966,15 +3334,16 @@ export const DomainApiFactory = function (configuration, basePath, axios) {
|
|
|
2966
3334
|
.then((request) => request(axios, basePath));
|
|
2967
3335
|
},
|
|
2968
3336
|
/**
|
|
2969
|
-
*
|
|
2970
|
-
* @summary
|
|
2971
|
-
* @param {
|
|
3337
|
+
* 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`
|
|
3338
|
+
* @summary Put a subscription-backed domain on a Plan
|
|
3339
|
+
* @param {string} id
|
|
3340
|
+
* @param {DomainPlanInputDTO} [domainPlanInputDTO] DomainPlanInputDTO
|
|
2972
3341
|
* @param {*} [options] Override http request option.
|
|
2973
3342
|
* @throws {RequiredError}
|
|
2974
3343
|
*/
|
|
2975
|
-
|
|
3344
|
+
domainControllerSetPlan(id, domainPlanInputDTO, options) {
|
|
2976
3345
|
return localVarFp
|
|
2977
|
-
.
|
|
3346
|
+
.domainControllerSetPlan(id, domainPlanInputDTO, options)
|
|
2978
3347
|
.then((request) => request(axios, basePath));
|
|
2979
3348
|
},
|
|
2980
3349
|
/**
|
|
@@ -3120,16 +3489,17 @@ export class DomainApi extends BaseAPI {
|
|
|
3120
3489
|
.then((request) => request(this.axios, this.basePath));
|
|
3121
3490
|
}
|
|
3122
3491
|
/**
|
|
3123
|
-
*
|
|
3124
|
-
* @summary
|
|
3125
|
-
* @param {
|
|
3492
|
+
* 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`
|
|
3493
|
+
* @summary Put a subscription-backed domain on a Plan
|
|
3494
|
+
* @param {string} id
|
|
3495
|
+
* @param {DomainPlanInputDTO} [domainPlanInputDTO] DomainPlanInputDTO
|
|
3126
3496
|
* @param {*} [options] Override http request option.
|
|
3127
3497
|
* @throws {RequiredError}
|
|
3128
3498
|
* @memberof DomainApi
|
|
3129
3499
|
*/
|
|
3130
|
-
|
|
3500
|
+
domainControllerSetPlan(id, domainPlanInputDTO, options) {
|
|
3131
3501
|
return DomainApiFp(this.configuration)
|
|
3132
|
-
.
|
|
3502
|
+
.domainControllerSetPlan(id, domainPlanInputDTO, options)
|
|
3133
3503
|
.then((request) => request(this.axios, this.basePath));
|
|
3134
3504
|
}
|
|
3135
3505
|
/**
|
|
@@ -3148,69 +3518,88 @@ export class DomainApi extends BaseAPI {
|
|
|
3148
3518
|
}
|
|
3149
3519
|
}
|
|
3150
3520
|
/**
|
|
3151
|
-
*
|
|
3521
|
+
* FixtureHistoryApi - axios parameter creator
|
|
3152
3522
|
* @export
|
|
3153
3523
|
*/
|
|
3154
|
-
export const
|
|
3524
|
+
export const FixtureHistoryApiAxiosParamCreator = function (configuration) {
|
|
3155
3525
|
return {
|
|
3156
3526
|
/**
|
|
3157
|
-
* <br> OperationId: `
|
|
3158
|
-
* @summary
|
|
3527
|
+
* <br> OperationId: `FixtureHistoryControllerActivity`
|
|
3528
|
+
* @summary Write owned, back-dated events and location samples into Postgres (idempotent)
|
|
3529
|
+
* @param {string} domainId
|
|
3530
|
+
* @param {FixtureHistoryActivityInputDTO} [fixtureHistoryActivityInputDTO] FixtureHistoryActivityInputDTO
|
|
3159
3531
|
* @param {*} [options] Override http request option.
|
|
3160
3532
|
* @throws {RequiredError}
|
|
3161
3533
|
*/
|
|
3162
|
-
|
|
3163
|
-
|
|
3534
|
+
fixtureHistoryControllerActivity: async (domainId, fixtureHistoryActivityInputDTO, options = {}) => {
|
|
3535
|
+
// verify required parameter 'domainId' is not null or undefined
|
|
3536
|
+
assertParamExists('fixtureHistoryControllerActivity', 'domainId', domainId);
|
|
3537
|
+
const localVarPath = `/fixture-history/domains/{domainId}/activity`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
|
|
3164
3538
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3165
3539
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3166
3540
|
let baseOptions;
|
|
3167
3541
|
if (configuration) {
|
|
3168
3542
|
baseOptions = configuration.baseOptions;
|
|
3169
3543
|
}
|
|
3170
|
-
const localVarRequestOptions = { method: '
|
|
3544
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
3171
3545
|
const localVarHeaderParameter = {};
|
|
3172
3546
|
const localVarQueryParameter = {};
|
|
3547
|
+
// authentication adminAuth required
|
|
3548
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
3549
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3173
3550
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3174
3551
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3175
3552
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3553
|
+
localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryActivityInputDTO, localVarRequestOptions, configuration);
|
|
3176
3554
|
return {
|
|
3177
3555
|
url: toPathString(localVarUrlObj),
|
|
3178
3556
|
options: localVarRequestOptions,
|
|
3179
3557
|
};
|
|
3180
3558
|
},
|
|
3181
3559
|
/**
|
|
3182
|
-
* <br> OperationId: `
|
|
3183
|
-
* @summary
|
|
3560
|
+
* <br> OperationId: `FixtureHistoryControllerAnalytics`
|
|
3561
|
+
* @summary Write owned, back-dated events into the analytics store (inserts only missing ids)
|
|
3562
|
+
* @param {string} domainId
|
|
3563
|
+
* @param {FixtureHistoryAnalyticsInputDTO} [fixtureHistoryAnalyticsInputDTO] FixtureHistoryAnalyticsInputDTO
|
|
3184
3564
|
* @param {*} [options] Override http request option.
|
|
3185
3565
|
* @throws {RequiredError}
|
|
3186
3566
|
*/
|
|
3187
|
-
|
|
3188
|
-
|
|
3567
|
+
fixtureHistoryControllerAnalytics: async (domainId, fixtureHistoryAnalyticsInputDTO, options = {}) => {
|
|
3568
|
+
// verify required parameter 'domainId' is not null or undefined
|
|
3569
|
+
assertParamExists('fixtureHistoryControllerAnalytics', 'domainId', domainId);
|
|
3570
|
+
const localVarPath = `/fixture-history/domains/{domainId}/analytics`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
|
|
3189
3571
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3190
3572
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3191
3573
|
let baseOptions;
|
|
3192
3574
|
if (configuration) {
|
|
3193
3575
|
baseOptions = configuration.baseOptions;
|
|
3194
3576
|
}
|
|
3195
|
-
const localVarRequestOptions = { method: '
|
|
3577
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
3196
3578
|
const localVarHeaderParameter = {};
|
|
3197
3579
|
const localVarQueryParameter = {};
|
|
3580
|
+
// authentication adminAuth required
|
|
3581
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
3582
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3198
3583
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3199
3584
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3200
3585
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3586
|
+
localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryAnalyticsInputDTO, localVarRequestOptions, configuration);
|
|
3201
3587
|
return {
|
|
3202
3588
|
url: toPathString(localVarUrlObj),
|
|
3203
3589
|
options: localVarRequestOptions,
|
|
3204
3590
|
};
|
|
3205
3591
|
},
|
|
3206
3592
|
/**
|
|
3207
|
-
* <br> OperationId: `
|
|
3208
|
-
* @summary
|
|
3593
|
+
* <br> OperationId: `FixtureHistoryControllerCapabilities`
|
|
3594
|
+
* @summary What the writer can do for this domain, and the domain\'s event retention
|
|
3595
|
+
* @param {string} domainId
|
|
3209
3596
|
* @param {*} [options] Override http request option.
|
|
3210
3597
|
* @throws {RequiredError}
|
|
3211
3598
|
*/
|
|
3212
|
-
|
|
3213
|
-
|
|
3599
|
+
fixtureHistoryControllerCapabilities: async (domainId, options = {}) => {
|
|
3600
|
+
// verify required parameter 'domainId' is not null or undefined
|
|
3601
|
+
assertParamExists('fixtureHistoryControllerCapabilities', 'domainId', domainId);
|
|
3602
|
+
const localVarPath = `/fixture-history/domains/{domainId}/capabilities`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
|
|
3214
3603
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3215
3604
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3216
3605
|
let baseOptions;
|
|
@@ -3220,6 +3609,8 @@ export const MetaApiAxiosParamCreator = function (configuration) {
|
|
|
3220
3609
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
3221
3610
|
const localVarHeaderParameter = {};
|
|
3222
3611
|
const localVarQueryParameter = {};
|
|
3612
|
+
// authentication adminAuth required
|
|
3613
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
3223
3614
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3224
3615
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3225
3616
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -3229,379 +3620,1976 @@ export const MetaApiAxiosParamCreator = function (configuration) {
|
|
|
3229
3620
|
};
|
|
3230
3621
|
},
|
|
3231
3622
|
/**
|
|
3232
|
-
* <br> OperationId: `
|
|
3233
|
-
* @summary
|
|
3623
|
+
* <br> OperationId: `FixtureHistoryControllerDelete`
|
|
3624
|
+
* @summary Delete a bounded batch of this dataset\'s rows from one store; loop until remaining is 0
|
|
3625
|
+
* @param {string} domainId
|
|
3626
|
+
* @param {string} fixtureDatasetId
|
|
3627
|
+
* @param {FixtureHistoryDeleteInputDTO} [fixtureHistoryDeleteInputDTO] FixtureHistoryDeleteInputDTO
|
|
3234
3628
|
* @param {*} [options] Override http request option.
|
|
3235
3629
|
* @throws {RequiredError}
|
|
3236
3630
|
*/
|
|
3237
|
-
|
|
3238
|
-
|
|
3631
|
+
fixtureHistoryControllerDelete: async (domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options = {}) => {
|
|
3632
|
+
// verify required parameter 'domainId' is not null or undefined
|
|
3633
|
+
assertParamExists('fixtureHistoryControllerDelete', 'domainId', domainId);
|
|
3634
|
+
// verify required parameter 'fixtureDatasetId' is not null or undefined
|
|
3635
|
+
assertParamExists('fixtureHistoryControllerDelete', 'fixtureDatasetId', fixtureDatasetId);
|
|
3636
|
+
const localVarPath = `/fixture-history/domains/{domainId}/datasets/{fixtureDatasetId}/delete`
|
|
3637
|
+
.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)))
|
|
3638
|
+
.replace(`{${'fixtureDatasetId'}}`, encodeURIComponent(String(fixtureDatasetId)));
|
|
3239
3639
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3240
3640
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3241
3641
|
let baseOptions;
|
|
3242
3642
|
if (configuration) {
|
|
3243
3643
|
baseOptions = configuration.baseOptions;
|
|
3244
3644
|
}
|
|
3245
|
-
const localVarRequestOptions = { method: '
|
|
3645
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
3246
3646
|
const localVarHeaderParameter = {};
|
|
3247
3647
|
const localVarQueryParameter = {};
|
|
3648
|
+
// authentication adminAuth required
|
|
3649
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
3650
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3248
3651
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3249
3652
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3250
3653
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3654
|
+
localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryDeleteInputDTO, localVarRequestOptions, configuration);
|
|
3251
3655
|
return {
|
|
3252
3656
|
url: toPathString(localVarUrlObj),
|
|
3253
3657
|
options: localVarRequestOptions,
|
|
3254
3658
|
};
|
|
3255
3659
|
},
|
|
3256
3660
|
/**
|
|
3257
|
-
* <br> OperationId: `
|
|
3258
|
-
* @summary
|
|
3661
|
+
* <br> OperationId: `FixtureHistoryControllerEconomyReadiness`
|
|
3662
|
+
* @summary Per gameserver: whether economyEnabled is on (read-only; never written)
|
|
3663
|
+
* @param {string} domainId
|
|
3664
|
+
* @param {FixtureHistoryEconomyReadinessInputDTO} [fixtureHistoryEconomyReadinessInputDTO] FixtureHistoryEconomyReadinessInputDTO
|
|
3259
3665
|
* @param {*} [options] Override http request option.
|
|
3260
3666
|
* @throws {RequiredError}
|
|
3261
3667
|
*/
|
|
3262
|
-
|
|
3263
|
-
|
|
3668
|
+
fixtureHistoryControllerEconomyReadiness: async (domainId, fixtureHistoryEconomyReadinessInputDTO, options = {}) => {
|
|
3669
|
+
// verify required parameter 'domainId' is not null or undefined
|
|
3670
|
+
assertParamExists('fixtureHistoryControllerEconomyReadiness', 'domainId', domainId);
|
|
3671
|
+
const localVarPath = `/fixture-history/domains/{domainId}/economy-readiness`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
|
|
3264
3672
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3265
3673
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3266
3674
|
let baseOptions;
|
|
3267
3675
|
if (configuration) {
|
|
3268
3676
|
baseOptions = configuration.baseOptions;
|
|
3269
3677
|
}
|
|
3270
|
-
const localVarRequestOptions = { method: '
|
|
3678
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
3271
3679
|
const localVarHeaderParameter = {};
|
|
3272
3680
|
const localVarQueryParameter = {};
|
|
3681
|
+
// authentication adminAuth required
|
|
3682
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
3683
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3273
3684
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3274
3685
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3275
3686
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3687
|
+
localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryEconomyReadinessInputDTO, localVarRequestOptions, configuration);
|
|
3276
3688
|
return {
|
|
3277
3689
|
url: toPathString(localVarUrlObj),
|
|
3278
3690
|
options: localVarRequestOptions,
|
|
3279
3691
|
};
|
|
3280
3692
|
},
|
|
3281
3693
|
/**
|
|
3282
|
-
*
|
|
3283
|
-
* @summary
|
|
3694
|
+
* One transaction. A planned row whose natural key is held by a row this dataset does not own is a conflict: nothing in the request is written and the conflicts are returned.<br> OperationId: `FixtureHistoryControllerIdentities`
|
|
3695
|
+
* @summary Write owned, back-dated players and players-on-gameserver
|
|
3696
|
+
* @param {string} domainId
|
|
3697
|
+
* @param {FixtureHistoryIdentitiesInputDTO} [fixtureHistoryIdentitiesInputDTO] FixtureHistoryIdentitiesInputDTO
|
|
3284
3698
|
* @param {*} [options] Override http request option.
|
|
3285
3699
|
* @throws {RequiredError}
|
|
3286
3700
|
*/
|
|
3287
|
-
|
|
3288
|
-
|
|
3701
|
+
fixtureHistoryControllerIdentities: async (domainId, fixtureHistoryIdentitiesInputDTO, options = {}) => {
|
|
3702
|
+
// verify required parameter 'domainId' is not null or undefined
|
|
3703
|
+
assertParamExists('fixtureHistoryControllerIdentities', 'domainId', domainId);
|
|
3704
|
+
const localVarPath = `/fixture-history/domains/{domainId}/identities`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
|
|
3289
3705
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3290
3706
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3291
3707
|
let baseOptions;
|
|
3292
3708
|
if (configuration) {
|
|
3293
3709
|
baseOptions = configuration.baseOptions;
|
|
3294
3710
|
}
|
|
3295
|
-
const localVarRequestOptions = { method: '
|
|
3711
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
3296
3712
|
const localVarHeaderParameter = {};
|
|
3297
3713
|
const localVarQueryParameter = {};
|
|
3714
|
+
// authentication adminAuth required
|
|
3715
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
3716
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3298
3717
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3299
3718
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3300
3719
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3720
|
+
localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryIdentitiesInputDTO, localVarRequestOptions, configuration);
|
|
3301
3721
|
return {
|
|
3302
3722
|
url: toPathString(localVarUrlObj),
|
|
3303
3723
|
options: localVarRequestOptions,
|
|
3304
3724
|
};
|
|
3305
3725
|
},
|
|
3306
3726
|
/**
|
|
3307
|
-
* <br> OperationId: `
|
|
3308
|
-
* @summary
|
|
3727
|
+
* <br> OperationId: `FixtureHistoryControllerInventory`
|
|
3728
|
+
* @summary Write the terminal inventory baseline of owned players-on-gameserver (idempotent)
|
|
3729
|
+
* @param {string} domainId
|
|
3730
|
+
* @param {FixtureHistoryInventoryInputDTO} [fixtureHistoryInventoryInputDTO] FixtureHistoryInventoryInputDTO
|
|
3309
3731
|
* @param {*} [options] Override http request option.
|
|
3310
3732
|
* @throws {RequiredError}
|
|
3311
3733
|
*/
|
|
3312
|
-
|
|
3313
|
-
|
|
3734
|
+
fixtureHistoryControllerInventory: async (domainId, fixtureHistoryInventoryInputDTO, options = {}) => {
|
|
3735
|
+
// verify required parameter 'domainId' is not null or undefined
|
|
3736
|
+
assertParamExists('fixtureHistoryControllerInventory', 'domainId', domainId);
|
|
3737
|
+
const localVarPath = `/fixture-history/domains/{domainId}/inventory`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
|
|
3314
3738
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3315
3739
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3316
3740
|
let baseOptions;
|
|
3317
3741
|
if (configuration) {
|
|
3318
3742
|
baseOptions = configuration.baseOptions;
|
|
3319
3743
|
}
|
|
3320
|
-
const localVarRequestOptions = { method: '
|
|
3744
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
3321
3745
|
const localVarHeaderParameter = {};
|
|
3322
3746
|
const localVarQueryParameter = {};
|
|
3747
|
+
// authentication adminAuth required
|
|
3748
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
3749
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3323
3750
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3324
3751
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3325
3752
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3753
|
+
localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryInventoryInputDTO, localVarRequestOptions, configuration);
|
|
3326
3754
|
return {
|
|
3327
3755
|
url: toPathString(localVarUrlObj),
|
|
3328
3756
|
options: localVarRequestOptions,
|
|
3329
3757
|
};
|
|
3330
3758
|
},
|
|
3331
|
-
};
|
|
3332
|
-
};
|
|
3333
|
-
/**
|
|
3334
|
-
* MetaApi - functional programming interface
|
|
3335
|
-
* @export
|
|
3336
|
-
*/
|
|
3337
|
-
export const MetaApiFp = function (configuration) {
|
|
3338
|
-
const localVarAxiosParamCreator = MetaApiAxiosParamCreator(configuration);
|
|
3339
|
-
return {
|
|
3340
3759
|
/**
|
|
3341
|
-
* <br> OperationId: `
|
|
3342
|
-
* @summary
|
|
3760
|
+
* <br> OperationId: `FixtureHistoryControllerInventoryPage`
|
|
3761
|
+
* @summary Page through the owned inventory baselines, by player-on-gameserver
|
|
3762
|
+
* @param {string} domainId
|
|
3763
|
+
* @param {string} fixtureDatasetId
|
|
3764
|
+
* @param {string} [cursor]
|
|
3343
3765
|
* @param {*} [options] Override http request option.
|
|
3344
3766
|
* @throws {RequiredError}
|
|
3345
3767
|
*/
|
|
3346
|
-
async
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3768
|
+
fixtureHistoryControllerInventoryPage: async (domainId, fixtureDatasetId, cursor, options = {}) => {
|
|
3769
|
+
// verify required parameter 'domainId' is not null or undefined
|
|
3770
|
+
assertParamExists('fixtureHistoryControllerInventoryPage', 'domainId', domainId);
|
|
3771
|
+
// verify required parameter 'fixtureDatasetId' is not null or undefined
|
|
3772
|
+
assertParamExists('fixtureHistoryControllerInventoryPage', 'fixtureDatasetId', fixtureDatasetId);
|
|
3773
|
+
const localVarPath = `/fixture-history/domains/{domainId}/datasets/{fixtureDatasetId}/inventory`
|
|
3774
|
+
.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)))
|
|
3775
|
+
.replace(`{${'fixtureDatasetId'}}`, encodeURIComponent(String(fixtureDatasetId)));
|
|
3776
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3777
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3778
|
+
let baseOptions;
|
|
3779
|
+
if (configuration) {
|
|
3780
|
+
baseOptions = configuration.baseOptions;
|
|
3781
|
+
}
|
|
3782
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
3783
|
+
const localVarHeaderParameter = {};
|
|
3784
|
+
const localVarQueryParameter = {};
|
|
3785
|
+
// authentication adminAuth required
|
|
3786
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
3787
|
+
if (cursor !== undefined) {
|
|
3788
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
3789
|
+
}
|
|
3790
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3791
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3792
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3793
|
+
return {
|
|
3794
|
+
url: toPathString(localVarUrlObj),
|
|
3795
|
+
options: localVarRequestOptions,
|
|
3796
|
+
};
|
|
3351
3797
|
},
|
|
3352
3798
|
/**
|
|
3353
|
-
*
|
|
3354
|
-
* @summary
|
|
3799
|
+
* One transaction. A listing whose id, or whose name on its gameserver, is held by a listing this dataset does not own is a conflict: nothing is written and the conflicts are returned.<br> OperationId: `FixtureHistoryControllerListings`
|
|
3800
|
+
* @summary Write owned, back-dated shop listings
|
|
3801
|
+
* @param {string} domainId
|
|
3802
|
+
* @param {FixtureHistoryListingsInputDTO} [fixtureHistoryListingsInputDTO] FixtureHistoryListingsInputDTO
|
|
3355
3803
|
* @param {*} [options] Override http request option.
|
|
3356
3804
|
* @throws {RequiredError}
|
|
3357
3805
|
*/
|
|
3358
|
-
async
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
const
|
|
3362
|
-
|
|
3806
|
+
fixtureHistoryControllerListings: async (domainId, fixtureHistoryListingsInputDTO, options = {}) => {
|
|
3807
|
+
// verify required parameter 'domainId' is not null or undefined
|
|
3808
|
+
assertParamExists('fixtureHistoryControllerListings', 'domainId', domainId);
|
|
3809
|
+
const localVarPath = `/fixture-history/domains/{domainId}/listings`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
|
|
3810
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3811
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3812
|
+
let baseOptions;
|
|
3813
|
+
if (configuration) {
|
|
3814
|
+
baseOptions = configuration.baseOptions;
|
|
3815
|
+
}
|
|
3816
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
3817
|
+
const localVarHeaderParameter = {};
|
|
3818
|
+
const localVarQueryParameter = {};
|
|
3819
|
+
// authentication adminAuth required
|
|
3820
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
3821
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3822
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3823
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3824
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3825
|
+
localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryListingsInputDTO, localVarRequestOptions, configuration);
|
|
3826
|
+
return {
|
|
3827
|
+
url: toPathString(localVarUrlObj),
|
|
3828
|
+
options: localVarRequestOptions,
|
|
3829
|
+
};
|
|
3363
3830
|
},
|
|
3364
3831
|
/**
|
|
3365
|
-
*
|
|
3366
|
-
* @summary
|
|
3832
|
+
* Never charges, refunds, delivers or runs a shop action: an order is written as a settled row.<br> OperationId: `FixtureHistoryControllerOrders`
|
|
3833
|
+
* @summary Write owned, settled (COMPLETED or CANCELED) historical orders (idempotent)
|
|
3834
|
+
* @param {string} domainId
|
|
3835
|
+
* @param {FixtureHistoryOrdersInputDTO} [fixtureHistoryOrdersInputDTO] FixtureHistoryOrdersInputDTO
|
|
3367
3836
|
* @param {*} [options] Override http request option.
|
|
3368
3837
|
* @throws {RequiredError}
|
|
3369
3838
|
*/
|
|
3370
|
-
async
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
const
|
|
3374
|
-
|
|
3839
|
+
fixtureHistoryControllerOrders: async (domainId, fixtureHistoryOrdersInputDTO, options = {}) => {
|
|
3840
|
+
// verify required parameter 'domainId' is not null or undefined
|
|
3841
|
+
assertParamExists('fixtureHistoryControllerOrders', 'domainId', domainId);
|
|
3842
|
+
const localVarPath = `/fixture-history/domains/{domainId}/orders`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
|
|
3843
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3844
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3845
|
+
let baseOptions;
|
|
3846
|
+
if (configuration) {
|
|
3847
|
+
baseOptions = configuration.baseOptions;
|
|
3848
|
+
}
|
|
3849
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
3850
|
+
const localVarHeaderParameter = {};
|
|
3851
|
+
const localVarQueryParameter = {};
|
|
3852
|
+
// authentication adminAuth required
|
|
3853
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
3854
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3855
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3856
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3857
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3858
|
+
localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryOrdersInputDTO, localVarRequestOptions, configuration);
|
|
3859
|
+
return {
|
|
3860
|
+
url: toPathString(localVarUrlObj),
|
|
3861
|
+
options: localVarRequestOptions,
|
|
3862
|
+
};
|
|
3375
3863
|
},
|
|
3376
3864
|
/**
|
|
3377
|
-
* <br> OperationId: `
|
|
3865
|
+
* <br> OperationId: `FixtureHistoryControllerSummary`
|
|
3866
|
+
* @summary Owned row counts per store, and unowned events naming owned players
|
|
3867
|
+
* @param {string} domainId
|
|
3868
|
+
* @param {string} fixtureDatasetId
|
|
3869
|
+
* @param {FixtureHistoryControllerSummarySinceParameter} [since]
|
|
3870
|
+
* @param {*} [options] Override http request option.
|
|
3871
|
+
* @throws {RequiredError}
|
|
3872
|
+
*/
|
|
3873
|
+
fixtureHistoryControllerSummary: async (domainId, fixtureDatasetId, since, options = {}) => {
|
|
3874
|
+
// verify required parameter 'domainId' is not null or undefined
|
|
3875
|
+
assertParamExists('fixtureHistoryControllerSummary', 'domainId', domainId);
|
|
3876
|
+
// verify required parameter 'fixtureDatasetId' is not null or undefined
|
|
3877
|
+
assertParamExists('fixtureHistoryControllerSummary', 'fixtureDatasetId', fixtureDatasetId);
|
|
3878
|
+
const localVarPath = `/fixture-history/domains/{domainId}/datasets/{fixtureDatasetId}/summary`
|
|
3879
|
+
.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)))
|
|
3880
|
+
.replace(`{${'fixtureDatasetId'}}`, encodeURIComponent(String(fixtureDatasetId)));
|
|
3881
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3882
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3883
|
+
let baseOptions;
|
|
3884
|
+
if (configuration) {
|
|
3885
|
+
baseOptions = configuration.baseOptions;
|
|
3886
|
+
}
|
|
3887
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
3888
|
+
const localVarHeaderParameter = {};
|
|
3889
|
+
const localVarQueryParameter = {};
|
|
3890
|
+
// authentication adminAuth required
|
|
3891
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
3892
|
+
if (since !== undefined) {
|
|
3893
|
+
for (const [key, value] of Object.entries(since)) {
|
|
3894
|
+
localVarQueryParameter[key] = value;
|
|
3895
|
+
}
|
|
3896
|
+
}
|
|
3897
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3898
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3899
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3900
|
+
return {
|
|
3901
|
+
url: toPathString(localVarUrlObj),
|
|
3902
|
+
options: localVarRequestOptions,
|
|
3903
|
+
};
|
|
3904
|
+
},
|
|
3905
|
+
/**
|
|
3906
|
+
* <br> OperationId: `FixtureHistoryControllerTerminal`
|
|
3907
|
+
* @summary Set the offline terminal state of owned players-on-gameserver
|
|
3908
|
+
* @param {string} domainId
|
|
3909
|
+
* @param {FixtureHistoryTerminalInputDTO} [fixtureHistoryTerminalInputDTO] FixtureHistoryTerminalInputDTO
|
|
3910
|
+
* @param {*} [options] Override http request option.
|
|
3911
|
+
* @throws {RequiredError}
|
|
3912
|
+
*/
|
|
3913
|
+
fixtureHistoryControllerTerminal: async (domainId, fixtureHistoryTerminalInputDTO, options = {}) => {
|
|
3914
|
+
// verify required parameter 'domainId' is not null or undefined
|
|
3915
|
+
assertParamExists('fixtureHistoryControllerTerminal', 'domainId', domainId);
|
|
3916
|
+
const localVarPath = `/fixture-history/domains/{domainId}/terminal-state`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
|
|
3917
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3918
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3919
|
+
let baseOptions;
|
|
3920
|
+
if (configuration) {
|
|
3921
|
+
baseOptions = configuration.baseOptions;
|
|
3922
|
+
}
|
|
3923
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
3924
|
+
const localVarHeaderParameter = {};
|
|
3925
|
+
const localVarQueryParameter = {};
|
|
3926
|
+
// authentication adminAuth required
|
|
3927
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
3928
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3929
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3930
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3931
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3932
|
+
localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryTerminalInputDTO, localVarRequestOptions, configuration);
|
|
3933
|
+
return {
|
|
3934
|
+
url: toPathString(localVarUrlObj),
|
|
3935
|
+
options: localVarRequestOptions,
|
|
3936
|
+
};
|
|
3937
|
+
},
|
|
3938
|
+
/**
|
|
3939
|
+
* <br> OperationId: `FixtureHistoryControllerTerminalState`
|
|
3940
|
+
* @summary Page through the terminal state of owned players-on-gameserver
|
|
3941
|
+
* @param {string} domainId
|
|
3942
|
+
* @param {string} fixtureDatasetId
|
|
3943
|
+
* @param {string} [cursor]
|
|
3944
|
+
* @param {*} [options] Override http request option.
|
|
3945
|
+
* @throws {RequiredError}
|
|
3946
|
+
*/
|
|
3947
|
+
fixtureHistoryControllerTerminalState: async (domainId, fixtureDatasetId, cursor, options = {}) => {
|
|
3948
|
+
// verify required parameter 'domainId' is not null or undefined
|
|
3949
|
+
assertParamExists('fixtureHistoryControllerTerminalState', 'domainId', domainId);
|
|
3950
|
+
// verify required parameter 'fixtureDatasetId' is not null or undefined
|
|
3951
|
+
assertParamExists('fixtureHistoryControllerTerminalState', 'fixtureDatasetId', fixtureDatasetId);
|
|
3952
|
+
const localVarPath = `/fixture-history/domains/{domainId}/datasets/{fixtureDatasetId}/terminal-state`
|
|
3953
|
+
.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)))
|
|
3954
|
+
.replace(`{${'fixtureDatasetId'}}`, encodeURIComponent(String(fixtureDatasetId)));
|
|
3955
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3956
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3957
|
+
let baseOptions;
|
|
3958
|
+
if (configuration) {
|
|
3959
|
+
baseOptions = configuration.baseOptions;
|
|
3960
|
+
}
|
|
3961
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
3962
|
+
const localVarHeaderParameter = {};
|
|
3963
|
+
const localVarQueryParameter = {};
|
|
3964
|
+
// authentication adminAuth required
|
|
3965
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
3966
|
+
if (cursor !== undefined) {
|
|
3967
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
3968
|
+
}
|
|
3969
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3970
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3971
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3972
|
+
return {
|
|
3973
|
+
url: toPathString(localVarUrlObj),
|
|
3974
|
+
options: localVarRequestOptions,
|
|
3975
|
+
};
|
|
3976
|
+
},
|
|
3977
|
+
};
|
|
3978
|
+
};
|
|
3979
|
+
/**
|
|
3980
|
+
* FixtureHistoryApi - functional programming interface
|
|
3981
|
+
* @export
|
|
3982
|
+
*/
|
|
3983
|
+
export const FixtureHistoryApiFp = function (configuration) {
|
|
3984
|
+
const localVarAxiosParamCreator = FixtureHistoryApiAxiosParamCreator(configuration);
|
|
3985
|
+
return {
|
|
3986
|
+
/**
|
|
3987
|
+
* <br> OperationId: `FixtureHistoryControllerActivity`
|
|
3988
|
+
* @summary Write owned, back-dated events and location samples into Postgres (idempotent)
|
|
3989
|
+
* @param {string} domainId
|
|
3990
|
+
* @param {FixtureHistoryActivityInputDTO} [fixtureHistoryActivityInputDTO] FixtureHistoryActivityInputDTO
|
|
3991
|
+
* @param {*} [options] Override http request option.
|
|
3992
|
+
* @throws {RequiredError}
|
|
3993
|
+
*/
|
|
3994
|
+
async fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options) {
|
|
3995
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options);
|
|
3996
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3997
|
+
const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerActivity']?.[localVarOperationServerIndex]?.url;
|
|
3998
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3999
|
+
},
|
|
4000
|
+
/**
|
|
4001
|
+
* <br> OperationId: `FixtureHistoryControllerAnalytics`
|
|
4002
|
+
* @summary Write owned, back-dated events into the analytics store (inserts only missing ids)
|
|
4003
|
+
* @param {string} domainId
|
|
4004
|
+
* @param {FixtureHistoryAnalyticsInputDTO} [fixtureHistoryAnalyticsInputDTO] FixtureHistoryAnalyticsInputDTO
|
|
4005
|
+
* @param {*} [options] Override http request option.
|
|
4006
|
+
* @throws {RequiredError}
|
|
4007
|
+
*/
|
|
4008
|
+
async fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options) {
|
|
4009
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options);
|
|
4010
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4011
|
+
const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerAnalytics']?.[localVarOperationServerIndex]?.url;
|
|
4012
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4013
|
+
},
|
|
4014
|
+
/**
|
|
4015
|
+
* <br> OperationId: `FixtureHistoryControllerCapabilities`
|
|
4016
|
+
* @summary What the writer can do for this domain, and the domain\'s event retention
|
|
4017
|
+
* @param {string} domainId
|
|
4018
|
+
* @param {*} [options] Override http request option.
|
|
4019
|
+
* @throws {RequiredError}
|
|
4020
|
+
*/
|
|
4021
|
+
async fixtureHistoryControllerCapabilities(domainId, options) {
|
|
4022
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerCapabilities(domainId, options);
|
|
4023
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4024
|
+
const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerCapabilities']?.[localVarOperationServerIndex]
|
|
4025
|
+
?.url;
|
|
4026
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4027
|
+
},
|
|
4028
|
+
/**
|
|
4029
|
+
* <br> OperationId: `FixtureHistoryControllerDelete`
|
|
4030
|
+
* @summary Delete a bounded batch of this dataset\'s rows from one store; loop until remaining is 0
|
|
4031
|
+
* @param {string} domainId
|
|
4032
|
+
* @param {string} fixtureDatasetId
|
|
4033
|
+
* @param {FixtureHistoryDeleteInputDTO} [fixtureHistoryDeleteInputDTO] FixtureHistoryDeleteInputDTO
|
|
4034
|
+
* @param {*} [options] Override http request option.
|
|
4035
|
+
* @throws {RequiredError}
|
|
4036
|
+
*/
|
|
4037
|
+
async fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options) {
|
|
4038
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options);
|
|
4039
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4040
|
+
const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerDelete']?.[localVarOperationServerIndex]?.url;
|
|
4041
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4042
|
+
},
|
|
4043
|
+
/**
|
|
4044
|
+
* <br> OperationId: `FixtureHistoryControllerEconomyReadiness`
|
|
4045
|
+
* @summary Per gameserver: whether economyEnabled is on (read-only; never written)
|
|
4046
|
+
* @param {string} domainId
|
|
4047
|
+
* @param {FixtureHistoryEconomyReadinessInputDTO} [fixtureHistoryEconomyReadinessInputDTO] FixtureHistoryEconomyReadinessInputDTO
|
|
4048
|
+
* @param {*} [options] Override http request option.
|
|
4049
|
+
* @throws {RequiredError}
|
|
4050
|
+
*/
|
|
4051
|
+
async fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options) {
|
|
4052
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options);
|
|
4053
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4054
|
+
const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerEconomyReadiness']?.[localVarOperationServerIndex]
|
|
4055
|
+
?.url;
|
|
4056
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4057
|
+
},
|
|
4058
|
+
/**
|
|
4059
|
+
* One transaction. A planned row whose natural key is held by a row this dataset does not own is a conflict: nothing in the request is written and the conflicts are returned.<br> OperationId: `FixtureHistoryControllerIdentities`
|
|
4060
|
+
* @summary Write owned, back-dated players and players-on-gameserver
|
|
4061
|
+
* @param {string} domainId
|
|
4062
|
+
* @param {FixtureHistoryIdentitiesInputDTO} [fixtureHistoryIdentitiesInputDTO] FixtureHistoryIdentitiesInputDTO
|
|
4063
|
+
* @param {*} [options] Override http request option.
|
|
4064
|
+
* @throws {RequiredError}
|
|
4065
|
+
*/
|
|
4066
|
+
async fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options) {
|
|
4067
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options);
|
|
4068
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4069
|
+
const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerIdentities']?.[localVarOperationServerIndex]?.url;
|
|
4070
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4071
|
+
},
|
|
4072
|
+
/**
|
|
4073
|
+
* <br> OperationId: `FixtureHistoryControllerInventory`
|
|
4074
|
+
* @summary Write the terminal inventory baseline of owned players-on-gameserver (idempotent)
|
|
4075
|
+
* @param {string} domainId
|
|
4076
|
+
* @param {FixtureHistoryInventoryInputDTO} [fixtureHistoryInventoryInputDTO] FixtureHistoryInventoryInputDTO
|
|
4077
|
+
* @param {*} [options] Override http request option.
|
|
4078
|
+
* @throws {RequiredError}
|
|
4079
|
+
*/
|
|
4080
|
+
async fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options) {
|
|
4081
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options);
|
|
4082
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4083
|
+
const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerInventory']?.[localVarOperationServerIndex]?.url;
|
|
4084
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4085
|
+
},
|
|
4086
|
+
/**
|
|
4087
|
+
* <br> OperationId: `FixtureHistoryControllerInventoryPage`
|
|
4088
|
+
* @summary Page through the owned inventory baselines, by player-on-gameserver
|
|
4089
|
+
* @param {string} domainId
|
|
4090
|
+
* @param {string} fixtureDatasetId
|
|
4091
|
+
* @param {string} [cursor]
|
|
4092
|
+
* @param {*} [options] Override http request option.
|
|
4093
|
+
* @throws {RequiredError}
|
|
4094
|
+
*/
|
|
4095
|
+
async fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options) {
|
|
4096
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options);
|
|
4097
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4098
|
+
const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerInventoryPage']?.[localVarOperationServerIndex]
|
|
4099
|
+
?.url;
|
|
4100
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4101
|
+
},
|
|
4102
|
+
/**
|
|
4103
|
+
* One transaction. A listing whose id, or whose name on its gameserver, is held by a listing this dataset does not own is a conflict: nothing is written and the conflicts are returned.<br> OperationId: `FixtureHistoryControllerListings`
|
|
4104
|
+
* @summary Write owned, back-dated shop listings
|
|
4105
|
+
* @param {string} domainId
|
|
4106
|
+
* @param {FixtureHistoryListingsInputDTO} [fixtureHistoryListingsInputDTO] FixtureHistoryListingsInputDTO
|
|
4107
|
+
* @param {*} [options] Override http request option.
|
|
4108
|
+
* @throws {RequiredError}
|
|
4109
|
+
*/
|
|
4110
|
+
async fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options) {
|
|
4111
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options);
|
|
4112
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4113
|
+
const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerListings']?.[localVarOperationServerIndex]?.url;
|
|
4114
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4115
|
+
},
|
|
4116
|
+
/**
|
|
4117
|
+
* Never charges, refunds, delivers or runs a shop action: an order is written as a settled row.<br> OperationId: `FixtureHistoryControllerOrders`
|
|
4118
|
+
* @summary Write owned, settled (COMPLETED or CANCELED) historical orders (idempotent)
|
|
4119
|
+
* @param {string} domainId
|
|
4120
|
+
* @param {FixtureHistoryOrdersInputDTO} [fixtureHistoryOrdersInputDTO] FixtureHistoryOrdersInputDTO
|
|
4121
|
+
* @param {*} [options] Override http request option.
|
|
4122
|
+
* @throws {RequiredError}
|
|
4123
|
+
*/
|
|
4124
|
+
async fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options) {
|
|
4125
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options);
|
|
4126
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4127
|
+
const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerOrders']?.[localVarOperationServerIndex]?.url;
|
|
4128
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4129
|
+
},
|
|
4130
|
+
/**
|
|
4131
|
+
* <br> OperationId: `FixtureHistoryControllerSummary`
|
|
4132
|
+
* @summary Owned row counts per store, and unowned events naming owned players
|
|
4133
|
+
* @param {string} domainId
|
|
4134
|
+
* @param {string} fixtureDatasetId
|
|
4135
|
+
* @param {FixtureHistoryControllerSummarySinceParameter} [since]
|
|
4136
|
+
* @param {*} [options] Override http request option.
|
|
4137
|
+
* @throws {RequiredError}
|
|
4138
|
+
*/
|
|
4139
|
+
async fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options) {
|
|
4140
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options);
|
|
4141
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4142
|
+
const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerSummary']?.[localVarOperationServerIndex]?.url;
|
|
4143
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4144
|
+
},
|
|
4145
|
+
/**
|
|
4146
|
+
* <br> OperationId: `FixtureHistoryControllerTerminal`
|
|
4147
|
+
* @summary Set the offline terminal state of owned players-on-gameserver
|
|
4148
|
+
* @param {string} domainId
|
|
4149
|
+
* @param {FixtureHistoryTerminalInputDTO} [fixtureHistoryTerminalInputDTO] FixtureHistoryTerminalInputDTO
|
|
4150
|
+
* @param {*} [options] Override http request option.
|
|
4151
|
+
* @throws {RequiredError}
|
|
4152
|
+
*/
|
|
4153
|
+
async fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options) {
|
|
4154
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options);
|
|
4155
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4156
|
+
const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerTerminal']?.[localVarOperationServerIndex]?.url;
|
|
4157
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4158
|
+
},
|
|
4159
|
+
/**
|
|
4160
|
+
* <br> OperationId: `FixtureHistoryControllerTerminalState`
|
|
4161
|
+
* @summary Page through the terminal state of owned players-on-gameserver
|
|
4162
|
+
* @param {string} domainId
|
|
4163
|
+
* @param {string} fixtureDatasetId
|
|
4164
|
+
* @param {string} [cursor]
|
|
4165
|
+
* @param {*} [options] Override http request option.
|
|
4166
|
+
* @throws {RequiredError}
|
|
4167
|
+
*/
|
|
4168
|
+
async fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options) {
|
|
4169
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options);
|
|
4170
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4171
|
+
const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerTerminalState']?.[localVarOperationServerIndex]
|
|
4172
|
+
?.url;
|
|
4173
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4174
|
+
},
|
|
4175
|
+
};
|
|
4176
|
+
};
|
|
4177
|
+
/**
|
|
4178
|
+
* FixtureHistoryApi - factory interface
|
|
4179
|
+
* @export
|
|
4180
|
+
*/
|
|
4181
|
+
export const FixtureHistoryApiFactory = function (configuration, basePath, axios) {
|
|
4182
|
+
const localVarFp = FixtureHistoryApiFp(configuration);
|
|
4183
|
+
return {
|
|
4184
|
+
/**
|
|
4185
|
+
* <br> OperationId: `FixtureHistoryControllerActivity`
|
|
4186
|
+
* @summary Write owned, back-dated events and location samples into Postgres (idempotent)
|
|
4187
|
+
* @param {string} domainId
|
|
4188
|
+
* @param {FixtureHistoryActivityInputDTO} [fixtureHistoryActivityInputDTO] FixtureHistoryActivityInputDTO
|
|
4189
|
+
* @param {*} [options] Override http request option.
|
|
4190
|
+
* @throws {RequiredError}
|
|
4191
|
+
*/
|
|
4192
|
+
fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options) {
|
|
4193
|
+
return localVarFp
|
|
4194
|
+
.fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options)
|
|
4195
|
+
.then((request) => request(axios, basePath));
|
|
4196
|
+
},
|
|
4197
|
+
/**
|
|
4198
|
+
* <br> OperationId: `FixtureHistoryControllerAnalytics`
|
|
4199
|
+
* @summary Write owned, back-dated events into the analytics store (inserts only missing ids)
|
|
4200
|
+
* @param {string} domainId
|
|
4201
|
+
* @param {FixtureHistoryAnalyticsInputDTO} [fixtureHistoryAnalyticsInputDTO] FixtureHistoryAnalyticsInputDTO
|
|
4202
|
+
* @param {*} [options] Override http request option.
|
|
4203
|
+
* @throws {RequiredError}
|
|
4204
|
+
*/
|
|
4205
|
+
fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options) {
|
|
4206
|
+
return localVarFp
|
|
4207
|
+
.fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options)
|
|
4208
|
+
.then((request) => request(axios, basePath));
|
|
4209
|
+
},
|
|
4210
|
+
/**
|
|
4211
|
+
* <br> OperationId: `FixtureHistoryControllerCapabilities`
|
|
4212
|
+
* @summary What the writer can do for this domain, and the domain\'s event retention
|
|
4213
|
+
* @param {string} domainId
|
|
4214
|
+
* @param {*} [options] Override http request option.
|
|
4215
|
+
* @throws {RequiredError}
|
|
4216
|
+
*/
|
|
4217
|
+
fixtureHistoryControllerCapabilities(domainId, options) {
|
|
4218
|
+
return localVarFp
|
|
4219
|
+
.fixtureHistoryControllerCapabilities(domainId, options)
|
|
4220
|
+
.then((request) => request(axios, basePath));
|
|
4221
|
+
},
|
|
4222
|
+
/**
|
|
4223
|
+
* <br> OperationId: `FixtureHistoryControllerDelete`
|
|
4224
|
+
* @summary Delete a bounded batch of this dataset\'s rows from one store; loop until remaining is 0
|
|
4225
|
+
* @param {string} domainId
|
|
4226
|
+
* @param {string} fixtureDatasetId
|
|
4227
|
+
* @param {FixtureHistoryDeleteInputDTO} [fixtureHistoryDeleteInputDTO] FixtureHistoryDeleteInputDTO
|
|
4228
|
+
* @param {*} [options] Override http request option.
|
|
4229
|
+
* @throws {RequiredError}
|
|
4230
|
+
*/
|
|
4231
|
+
fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options) {
|
|
4232
|
+
return localVarFp
|
|
4233
|
+
.fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options)
|
|
4234
|
+
.then((request) => request(axios, basePath));
|
|
4235
|
+
},
|
|
4236
|
+
/**
|
|
4237
|
+
* <br> OperationId: `FixtureHistoryControllerEconomyReadiness`
|
|
4238
|
+
* @summary Per gameserver: whether economyEnabled is on (read-only; never written)
|
|
4239
|
+
* @param {string} domainId
|
|
4240
|
+
* @param {FixtureHistoryEconomyReadinessInputDTO} [fixtureHistoryEconomyReadinessInputDTO] FixtureHistoryEconomyReadinessInputDTO
|
|
4241
|
+
* @param {*} [options] Override http request option.
|
|
4242
|
+
* @throws {RequiredError}
|
|
4243
|
+
*/
|
|
4244
|
+
fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options) {
|
|
4245
|
+
return localVarFp
|
|
4246
|
+
.fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options)
|
|
4247
|
+
.then((request) => request(axios, basePath));
|
|
4248
|
+
},
|
|
4249
|
+
/**
|
|
4250
|
+
* One transaction. A planned row whose natural key is held by a row this dataset does not own is a conflict: nothing in the request is written and the conflicts are returned.<br> OperationId: `FixtureHistoryControllerIdentities`
|
|
4251
|
+
* @summary Write owned, back-dated players and players-on-gameserver
|
|
4252
|
+
* @param {string} domainId
|
|
4253
|
+
* @param {FixtureHistoryIdentitiesInputDTO} [fixtureHistoryIdentitiesInputDTO] FixtureHistoryIdentitiesInputDTO
|
|
4254
|
+
* @param {*} [options] Override http request option.
|
|
4255
|
+
* @throws {RequiredError}
|
|
4256
|
+
*/
|
|
4257
|
+
fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options) {
|
|
4258
|
+
return localVarFp
|
|
4259
|
+
.fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options)
|
|
4260
|
+
.then((request) => request(axios, basePath));
|
|
4261
|
+
},
|
|
4262
|
+
/**
|
|
4263
|
+
* <br> OperationId: `FixtureHistoryControllerInventory`
|
|
4264
|
+
* @summary Write the terminal inventory baseline of owned players-on-gameserver (idempotent)
|
|
4265
|
+
* @param {string} domainId
|
|
4266
|
+
* @param {FixtureHistoryInventoryInputDTO} [fixtureHistoryInventoryInputDTO] FixtureHistoryInventoryInputDTO
|
|
4267
|
+
* @param {*} [options] Override http request option.
|
|
4268
|
+
* @throws {RequiredError}
|
|
4269
|
+
*/
|
|
4270
|
+
fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options) {
|
|
4271
|
+
return localVarFp
|
|
4272
|
+
.fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options)
|
|
4273
|
+
.then((request) => request(axios, basePath));
|
|
4274
|
+
},
|
|
4275
|
+
/**
|
|
4276
|
+
* <br> OperationId: `FixtureHistoryControllerInventoryPage`
|
|
4277
|
+
* @summary Page through the owned inventory baselines, by player-on-gameserver
|
|
4278
|
+
* @param {string} domainId
|
|
4279
|
+
* @param {string} fixtureDatasetId
|
|
4280
|
+
* @param {string} [cursor]
|
|
4281
|
+
* @param {*} [options] Override http request option.
|
|
4282
|
+
* @throws {RequiredError}
|
|
4283
|
+
*/
|
|
4284
|
+
fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options) {
|
|
4285
|
+
return localVarFp
|
|
4286
|
+
.fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options)
|
|
4287
|
+
.then((request) => request(axios, basePath));
|
|
4288
|
+
},
|
|
4289
|
+
/**
|
|
4290
|
+
* One transaction. A listing whose id, or whose name on its gameserver, is held by a listing this dataset does not own is a conflict: nothing is written and the conflicts are returned.<br> OperationId: `FixtureHistoryControllerListings`
|
|
4291
|
+
* @summary Write owned, back-dated shop listings
|
|
4292
|
+
* @param {string} domainId
|
|
4293
|
+
* @param {FixtureHistoryListingsInputDTO} [fixtureHistoryListingsInputDTO] FixtureHistoryListingsInputDTO
|
|
4294
|
+
* @param {*} [options] Override http request option.
|
|
4295
|
+
* @throws {RequiredError}
|
|
4296
|
+
*/
|
|
4297
|
+
fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options) {
|
|
4298
|
+
return localVarFp
|
|
4299
|
+
.fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options)
|
|
4300
|
+
.then((request) => request(axios, basePath));
|
|
4301
|
+
},
|
|
4302
|
+
/**
|
|
4303
|
+
* Never charges, refunds, delivers or runs a shop action: an order is written as a settled row.<br> OperationId: `FixtureHistoryControllerOrders`
|
|
4304
|
+
* @summary Write owned, settled (COMPLETED or CANCELED) historical orders (idempotent)
|
|
4305
|
+
* @param {string} domainId
|
|
4306
|
+
* @param {FixtureHistoryOrdersInputDTO} [fixtureHistoryOrdersInputDTO] FixtureHistoryOrdersInputDTO
|
|
4307
|
+
* @param {*} [options] Override http request option.
|
|
4308
|
+
* @throws {RequiredError}
|
|
4309
|
+
*/
|
|
4310
|
+
fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options) {
|
|
4311
|
+
return localVarFp
|
|
4312
|
+
.fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options)
|
|
4313
|
+
.then((request) => request(axios, basePath));
|
|
4314
|
+
},
|
|
4315
|
+
/**
|
|
4316
|
+
* <br> OperationId: `FixtureHistoryControllerSummary`
|
|
4317
|
+
* @summary Owned row counts per store, and unowned events naming owned players
|
|
4318
|
+
* @param {string} domainId
|
|
4319
|
+
* @param {string} fixtureDatasetId
|
|
4320
|
+
* @param {FixtureHistoryControllerSummarySinceParameter} [since]
|
|
4321
|
+
* @param {*} [options] Override http request option.
|
|
4322
|
+
* @throws {RequiredError}
|
|
4323
|
+
*/
|
|
4324
|
+
fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options) {
|
|
4325
|
+
return localVarFp
|
|
4326
|
+
.fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options)
|
|
4327
|
+
.then((request) => request(axios, basePath));
|
|
4328
|
+
},
|
|
4329
|
+
/**
|
|
4330
|
+
* <br> OperationId: `FixtureHistoryControllerTerminal`
|
|
4331
|
+
* @summary Set the offline terminal state of owned players-on-gameserver
|
|
4332
|
+
* @param {string} domainId
|
|
4333
|
+
* @param {FixtureHistoryTerminalInputDTO} [fixtureHistoryTerminalInputDTO] FixtureHistoryTerminalInputDTO
|
|
4334
|
+
* @param {*} [options] Override http request option.
|
|
4335
|
+
* @throws {RequiredError}
|
|
4336
|
+
*/
|
|
4337
|
+
fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options) {
|
|
4338
|
+
return localVarFp
|
|
4339
|
+
.fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options)
|
|
4340
|
+
.then((request) => request(axios, basePath));
|
|
4341
|
+
},
|
|
4342
|
+
/**
|
|
4343
|
+
* <br> OperationId: `FixtureHistoryControllerTerminalState`
|
|
4344
|
+
* @summary Page through the terminal state of owned players-on-gameserver
|
|
4345
|
+
* @param {string} domainId
|
|
4346
|
+
* @param {string} fixtureDatasetId
|
|
4347
|
+
* @param {string} [cursor]
|
|
4348
|
+
* @param {*} [options] Override http request option.
|
|
4349
|
+
* @throws {RequiredError}
|
|
4350
|
+
*/
|
|
4351
|
+
fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options) {
|
|
4352
|
+
return localVarFp
|
|
4353
|
+
.fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options)
|
|
4354
|
+
.then((request) => request(axios, basePath));
|
|
4355
|
+
},
|
|
4356
|
+
};
|
|
4357
|
+
};
|
|
4358
|
+
/**
|
|
4359
|
+
* FixtureHistoryApi - object-oriented interface
|
|
4360
|
+
* @export
|
|
4361
|
+
* @class FixtureHistoryApi
|
|
4362
|
+
* @extends {BaseAPI}
|
|
4363
|
+
*/
|
|
4364
|
+
export class FixtureHistoryApi extends BaseAPI {
|
|
4365
|
+
/**
|
|
4366
|
+
* <br> OperationId: `FixtureHistoryControllerActivity`
|
|
4367
|
+
* @summary Write owned, back-dated events and location samples into Postgres (idempotent)
|
|
4368
|
+
* @param {string} domainId
|
|
4369
|
+
* @param {FixtureHistoryActivityInputDTO} [fixtureHistoryActivityInputDTO] FixtureHistoryActivityInputDTO
|
|
4370
|
+
* @param {*} [options] Override http request option.
|
|
4371
|
+
* @throws {RequiredError}
|
|
4372
|
+
* @memberof FixtureHistoryApi
|
|
4373
|
+
*/
|
|
4374
|
+
fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options) {
|
|
4375
|
+
return FixtureHistoryApiFp(this.configuration)
|
|
4376
|
+
.fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options)
|
|
4377
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4378
|
+
}
|
|
4379
|
+
/**
|
|
4380
|
+
* <br> OperationId: `FixtureHistoryControllerAnalytics`
|
|
4381
|
+
* @summary Write owned, back-dated events into the analytics store (inserts only missing ids)
|
|
4382
|
+
* @param {string} domainId
|
|
4383
|
+
* @param {FixtureHistoryAnalyticsInputDTO} [fixtureHistoryAnalyticsInputDTO] FixtureHistoryAnalyticsInputDTO
|
|
4384
|
+
* @param {*} [options] Override http request option.
|
|
4385
|
+
* @throws {RequiredError}
|
|
4386
|
+
* @memberof FixtureHistoryApi
|
|
4387
|
+
*/
|
|
4388
|
+
fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options) {
|
|
4389
|
+
return FixtureHistoryApiFp(this.configuration)
|
|
4390
|
+
.fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options)
|
|
4391
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4392
|
+
}
|
|
4393
|
+
/**
|
|
4394
|
+
* <br> OperationId: `FixtureHistoryControllerCapabilities`
|
|
4395
|
+
* @summary What the writer can do for this domain, and the domain\'s event retention
|
|
4396
|
+
* @param {string} domainId
|
|
4397
|
+
* @param {*} [options] Override http request option.
|
|
4398
|
+
* @throws {RequiredError}
|
|
4399
|
+
* @memberof FixtureHistoryApi
|
|
4400
|
+
*/
|
|
4401
|
+
fixtureHistoryControllerCapabilities(domainId, options) {
|
|
4402
|
+
return FixtureHistoryApiFp(this.configuration)
|
|
4403
|
+
.fixtureHistoryControllerCapabilities(domainId, options)
|
|
4404
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4405
|
+
}
|
|
4406
|
+
/**
|
|
4407
|
+
* <br> OperationId: `FixtureHistoryControllerDelete`
|
|
4408
|
+
* @summary Delete a bounded batch of this dataset\'s rows from one store; loop until remaining is 0
|
|
4409
|
+
* @param {string} domainId
|
|
4410
|
+
* @param {string} fixtureDatasetId
|
|
4411
|
+
* @param {FixtureHistoryDeleteInputDTO} [fixtureHistoryDeleteInputDTO] FixtureHistoryDeleteInputDTO
|
|
4412
|
+
* @param {*} [options] Override http request option.
|
|
4413
|
+
* @throws {RequiredError}
|
|
4414
|
+
* @memberof FixtureHistoryApi
|
|
4415
|
+
*/
|
|
4416
|
+
fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options) {
|
|
4417
|
+
return FixtureHistoryApiFp(this.configuration)
|
|
4418
|
+
.fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options)
|
|
4419
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4420
|
+
}
|
|
4421
|
+
/**
|
|
4422
|
+
* <br> OperationId: `FixtureHistoryControllerEconomyReadiness`
|
|
4423
|
+
* @summary Per gameserver: whether economyEnabled is on (read-only; never written)
|
|
4424
|
+
* @param {string} domainId
|
|
4425
|
+
* @param {FixtureHistoryEconomyReadinessInputDTO} [fixtureHistoryEconomyReadinessInputDTO] FixtureHistoryEconomyReadinessInputDTO
|
|
4426
|
+
* @param {*} [options] Override http request option.
|
|
4427
|
+
* @throws {RequiredError}
|
|
4428
|
+
* @memberof FixtureHistoryApi
|
|
4429
|
+
*/
|
|
4430
|
+
fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options) {
|
|
4431
|
+
return FixtureHistoryApiFp(this.configuration)
|
|
4432
|
+
.fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options)
|
|
4433
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4434
|
+
}
|
|
4435
|
+
/**
|
|
4436
|
+
* One transaction. A planned row whose natural key is held by a row this dataset does not own is a conflict: nothing in the request is written and the conflicts are returned.<br> OperationId: `FixtureHistoryControllerIdentities`
|
|
4437
|
+
* @summary Write owned, back-dated players and players-on-gameserver
|
|
4438
|
+
* @param {string} domainId
|
|
4439
|
+
* @param {FixtureHistoryIdentitiesInputDTO} [fixtureHistoryIdentitiesInputDTO] FixtureHistoryIdentitiesInputDTO
|
|
4440
|
+
* @param {*} [options] Override http request option.
|
|
4441
|
+
* @throws {RequiredError}
|
|
4442
|
+
* @memberof FixtureHistoryApi
|
|
4443
|
+
*/
|
|
4444
|
+
fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options) {
|
|
4445
|
+
return FixtureHistoryApiFp(this.configuration)
|
|
4446
|
+
.fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options)
|
|
4447
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4448
|
+
}
|
|
4449
|
+
/**
|
|
4450
|
+
* <br> OperationId: `FixtureHistoryControllerInventory`
|
|
4451
|
+
* @summary Write the terminal inventory baseline of owned players-on-gameserver (idempotent)
|
|
4452
|
+
* @param {string} domainId
|
|
4453
|
+
* @param {FixtureHistoryInventoryInputDTO} [fixtureHistoryInventoryInputDTO] FixtureHistoryInventoryInputDTO
|
|
4454
|
+
* @param {*} [options] Override http request option.
|
|
4455
|
+
* @throws {RequiredError}
|
|
4456
|
+
* @memberof FixtureHistoryApi
|
|
4457
|
+
*/
|
|
4458
|
+
fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options) {
|
|
4459
|
+
return FixtureHistoryApiFp(this.configuration)
|
|
4460
|
+
.fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options)
|
|
4461
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4462
|
+
}
|
|
4463
|
+
/**
|
|
4464
|
+
* <br> OperationId: `FixtureHistoryControllerInventoryPage`
|
|
4465
|
+
* @summary Page through the owned inventory baselines, by player-on-gameserver
|
|
4466
|
+
* @param {string} domainId
|
|
4467
|
+
* @param {string} fixtureDatasetId
|
|
4468
|
+
* @param {string} [cursor]
|
|
4469
|
+
* @param {*} [options] Override http request option.
|
|
4470
|
+
* @throws {RequiredError}
|
|
4471
|
+
* @memberof FixtureHistoryApi
|
|
4472
|
+
*/
|
|
4473
|
+
fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options) {
|
|
4474
|
+
return FixtureHistoryApiFp(this.configuration)
|
|
4475
|
+
.fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options)
|
|
4476
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4477
|
+
}
|
|
4478
|
+
/**
|
|
4479
|
+
* One transaction. A listing whose id, or whose name on its gameserver, is held by a listing this dataset does not own is a conflict: nothing is written and the conflicts are returned.<br> OperationId: `FixtureHistoryControllerListings`
|
|
4480
|
+
* @summary Write owned, back-dated shop listings
|
|
4481
|
+
* @param {string} domainId
|
|
4482
|
+
* @param {FixtureHistoryListingsInputDTO} [fixtureHistoryListingsInputDTO] FixtureHistoryListingsInputDTO
|
|
4483
|
+
* @param {*} [options] Override http request option.
|
|
4484
|
+
* @throws {RequiredError}
|
|
4485
|
+
* @memberof FixtureHistoryApi
|
|
4486
|
+
*/
|
|
4487
|
+
fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options) {
|
|
4488
|
+
return FixtureHistoryApiFp(this.configuration)
|
|
4489
|
+
.fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options)
|
|
4490
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4491
|
+
}
|
|
4492
|
+
/**
|
|
4493
|
+
* Never charges, refunds, delivers or runs a shop action: an order is written as a settled row.<br> OperationId: `FixtureHistoryControllerOrders`
|
|
4494
|
+
* @summary Write owned, settled (COMPLETED or CANCELED) historical orders (idempotent)
|
|
4495
|
+
* @param {string} domainId
|
|
4496
|
+
* @param {FixtureHistoryOrdersInputDTO} [fixtureHistoryOrdersInputDTO] FixtureHistoryOrdersInputDTO
|
|
4497
|
+
* @param {*} [options] Override http request option.
|
|
4498
|
+
* @throws {RequiredError}
|
|
4499
|
+
* @memberof FixtureHistoryApi
|
|
4500
|
+
*/
|
|
4501
|
+
fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options) {
|
|
4502
|
+
return FixtureHistoryApiFp(this.configuration)
|
|
4503
|
+
.fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options)
|
|
4504
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4505
|
+
}
|
|
4506
|
+
/**
|
|
4507
|
+
* <br> OperationId: `FixtureHistoryControllerSummary`
|
|
4508
|
+
* @summary Owned row counts per store, and unowned events naming owned players
|
|
4509
|
+
* @param {string} domainId
|
|
4510
|
+
* @param {string} fixtureDatasetId
|
|
4511
|
+
* @param {FixtureHistoryControllerSummarySinceParameter} [since]
|
|
4512
|
+
* @param {*} [options] Override http request option.
|
|
4513
|
+
* @throws {RequiredError}
|
|
4514
|
+
* @memberof FixtureHistoryApi
|
|
4515
|
+
*/
|
|
4516
|
+
fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options) {
|
|
4517
|
+
return FixtureHistoryApiFp(this.configuration)
|
|
4518
|
+
.fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options)
|
|
4519
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4520
|
+
}
|
|
4521
|
+
/**
|
|
4522
|
+
* <br> OperationId: `FixtureHistoryControllerTerminal`
|
|
4523
|
+
* @summary Set the offline terminal state of owned players-on-gameserver
|
|
4524
|
+
* @param {string} domainId
|
|
4525
|
+
* @param {FixtureHistoryTerminalInputDTO} [fixtureHistoryTerminalInputDTO] FixtureHistoryTerminalInputDTO
|
|
4526
|
+
* @param {*} [options] Override http request option.
|
|
4527
|
+
* @throws {RequiredError}
|
|
4528
|
+
* @memberof FixtureHistoryApi
|
|
4529
|
+
*/
|
|
4530
|
+
fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options) {
|
|
4531
|
+
return FixtureHistoryApiFp(this.configuration)
|
|
4532
|
+
.fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options)
|
|
4533
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4534
|
+
}
|
|
4535
|
+
/**
|
|
4536
|
+
* <br> OperationId: `FixtureHistoryControllerTerminalState`
|
|
4537
|
+
* @summary Page through the terminal state of owned players-on-gameserver
|
|
4538
|
+
* @param {string} domainId
|
|
4539
|
+
* @param {string} fixtureDatasetId
|
|
4540
|
+
* @param {string} [cursor]
|
|
4541
|
+
* @param {*} [options] Override http request option.
|
|
4542
|
+
* @throws {RequiredError}
|
|
4543
|
+
* @memberof FixtureHistoryApi
|
|
4544
|
+
*/
|
|
4545
|
+
fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options) {
|
|
4546
|
+
return FixtureHistoryApiFp(this.configuration)
|
|
4547
|
+
.fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options)
|
|
4548
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4549
|
+
}
|
|
4550
|
+
}
|
|
4551
|
+
/**
|
|
4552
|
+
* MetaApi - axios parameter creator
|
|
4553
|
+
* @export
|
|
4554
|
+
*/
|
|
4555
|
+
export const MetaApiAxiosParamCreator = function (configuration) {
|
|
4556
|
+
return {
|
|
4557
|
+
/**
|
|
4558
|
+
* <br> OperationId: `MetaGetHealth`
|
|
4559
|
+
* @summary Get health
|
|
4560
|
+
* @param {*} [options] Override http request option.
|
|
4561
|
+
* @throws {RequiredError}
|
|
4562
|
+
*/
|
|
4563
|
+
metaGetHealth: async (options = {}) => {
|
|
4564
|
+
const localVarPath = `/healthz`;
|
|
4565
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4566
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4567
|
+
let baseOptions;
|
|
4568
|
+
if (configuration) {
|
|
4569
|
+
baseOptions = configuration.baseOptions;
|
|
4570
|
+
}
|
|
4571
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4572
|
+
const localVarHeaderParameter = {};
|
|
4573
|
+
const localVarQueryParameter = {};
|
|
4574
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4575
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4576
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4577
|
+
return {
|
|
4578
|
+
url: toPathString(localVarUrlObj),
|
|
4579
|
+
options: localVarRequestOptions,
|
|
4580
|
+
};
|
|
4581
|
+
},
|
|
4582
|
+
/**
|
|
4583
|
+
* <br> OperationId: `MetaGetLiveness`
|
|
4584
|
+
* @summary Get liveness
|
|
4585
|
+
* @param {*} [options] Override http request option.
|
|
4586
|
+
* @throws {RequiredError}
|
|
4587
|
+
*/
|
|
4588
|
+
metaGetLiveness: async (options = {}) => {
|
|
4589
|
+
const localVarPath = `/livez`;
|
|
4590
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4591
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4592
|
+
let baseOptions;
|
|
4593
|
+
if (configuration) {
|
|
4594
|
+
baseOptions = configuration.baseOptions;
|
|
4595
|
+
}
|
|
4596
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4597
|
+
const localVarHeaderParameter = {};
|
|
4598
|
+
const localVarQueryParameter = {};
|
|
4599
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4600
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4601
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4602
|
+
return {
|
|
4603
|
+
url: toPathString(localVarUrlObj),
|
|
4604
|
+
options: localVarRequestOptions,
|
|
4605
|
+
};
|
|
4606
|
+
},
|
|
4607
|
+
/**
|
|
4608
|
+
* <br> OperationId: `MetaGetOpenApi`
|
|
4609
|
+
* @summary Get open api
|
|
4610
|
+
* @param {*} [options] Override http request option.
|
|
4611
|
+
* @throws {RequiredError}
|
|
4612
|
+
*/
|
|
4613
|
+
metaGetOpenApi: async (options = {}) => {
|
|
4614
|
+
const localVarPath = `/openapi.json`;
|
|
4615
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4616
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4617
|
+
let baseOptions;
|
|
4618
|
+
if (configuration) {
|
|
4619
|
+
baseOptions = configuration.baseOptions;
|
|
4620
|
+
}
|
|
4621
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4622
|
+
const localVarHeaderParameter = {};
|
|
4623
|
+
const localVarQueryParameter = {};
|
|
4624
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4625
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4626
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4627
|
+
return {
|
|
4628
|
+
url: toPathString(localVarUrlObj),
|
|
4629
|
+
options: localVarRequestOptions,
|
|
4630
|
+
};
|
|
4631
|
+
},
|
|
4632
|
+
/**
|
|
4633
|
+
* <br> OperationId: `MetaGetOpenApiHtml`
|
|
4634
|
+
* @summary Get open api html
|
|
4635
|
+
* @param {*} [options] Override http request option.
|
|
4636
|
+
* @throws {RequiredError}
|
|
4637
|
+
*/
|
|
4638
|
+
metaGetOpenApiHtml: async (options = {}) => {
|
|
4639
|
+
const localVarPath = `/api.html`;
|
|
4640
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4641
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4642
|
+
let baseOptions;
|
|
4643
|
+
if (configuration) {
|
|
4644
|
+
baseOptions = configuration.baseOptions;
|
|
4645
|
+
}
|
|
4646
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4647
|
+
const localVarHeaderParameter = {};
|
|
4648
|
+
const localVarQueryParameter = {};
|
|
4649
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4650
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4651
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4652
|
+
return {
|
|
4653
|
+
url: toPathString(localVarUrlObj),
|
|
4654
|
+
options: localVarRequestOptions,
|
|
4655
|
+
};
|
|
4656
|
+
},
|
|
4657
|
+
/**
|
|
4658
|
+
* <br> OperationId: `MetaGetReadiness`
|
|
4659
|
+
* @summary Get readiness
|
|
4660
|
+
* @param {*} [options] Override http request option.
|
|
4661
|
+
* @throws {RequiredError}
|
|
4662
|
+
*/
|
|
4663
|
+
metaGetReadiness: async (options = {}) => {
|
|
4664
|
+
const localVarPath = `/readyz`;
|
|
4665
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4666
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4667
|
+
let baseOptions;
|
|
4668
|
+
if (configuration) {
|
|
4669
|
+
baseOptions = configuration.baseOptions;
|
|
4670
|
+
}
|
|
4671
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4672
|
+
const localVarHeaderParameter = {};
|
|
4673
|
+
const localVarQueryParameter = {};
|
|
4674
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4675
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4676
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4677
|
+
return {
|
|
4678
|
+
url: toPathString(localVarUrlObj),
|
|
4679
|
+
options: localVarRequestOptions,
|
|
4680
|
+
};
|
|
4681
|
+
},
|
|
4682
|
+
/**
|
|
4683
|
+
* <br> OperationId: `MetaGetRoot`
|
|
4684
|
+
* @summary Get root
|
|
4685
|
+
* @param {*} [options] Override http request option.
|
|
4686
|
+
* @throws {RequiredError}
|
|
4687
|
+
*/
|
|
4688
|
+
metaGetRoot: async (options = {}) => {
|
|
4689
|
+
const localVarPath = `/`;
|
|
4690
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4691
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4692
|
+
let baseOptions;
|
|
4693
|
+
if (configuration) {
|
|
4694
|
+
baseOptions = configuration.baseOptions;
|
|
4695
|
+
}
|
|
4696
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4697
|
+
const localVarHeaderParameter = {};
|
|
4698
|
+
const localVarQueryParameter = {};
|
|
4699
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4700
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4701
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4702
|
+
return {
|
|
4703
|
+
url: toPathString(localVarUrlObj),
|
|
4704
|
+
options: localVarRequestOptions,
|
|
4705
|
+
};
|
|
4706
|
+
},
|
|
4707
|
+
};
|
|
4708
|
+
};
|
|
4709
|
+
/**
|
|
4710
|
+
* MetaApi - functional programming interface
|
|
4711
|
+
* @export
|
|
4712
|
+
*/
|
|
4713
|
+
export const MetaApiFp = function (configuration) {
|
|
4714
|
+
const localVarAxiosParamCreator = MetaApiAxiosParamCreator(configuration);
|
|
4715
|
+
return {
|
|
4716
|
+
/**
|
|
4717
|
+
* <br> OperationId: `MetaGetHealth`
|
|
4718
|
+
* @summary Get health
|
|
4719
|
+
* @param {*} [options] Override http request option.
|
|
4720
|
+
* @throws {RequiredError}
|
|
4721
|
+
*/
|
|
4722
|
+
async metaGetHealth(options) {
|
|
4723
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetHealth(options);
|
|
4724
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4725
|
+
const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetHealth']?.[localVarOperationServerIndex]?.url;
|
|
4726
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4727
|
+
},
|
|
4728
|
+
/**
|
|
4729
|
+
* <br> OperationId: `MetaGetLiveness`
|
|
4730
|
+
* @summary Get liveness
|
|
4731
|
+
* @param {*} [options] Override http request option.
|
|
4732
|
+
* @throws {RequiredError}
|
|
4733
|
+
*/
|
|
4734
|
+
async metaGetLiveness(options) {
|
|
4735
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetLiveness(options);
|
|
4736
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4737
|
+
const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetLiveness']?.[localVarOperationServerIndex]?.url;
|
|
4738
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4739
|
+
},
|
|
4740
|
+
/**
|
|
4741
|
+
* <br> OperationId: `MetaGetOpenApi`
|
|
4742
|
+
* @summary Get open api
|
|
4743
|
+
* @param {*} [options] Override http request option.
|
|
4744
|
+
* @throws {RequiredError}
|
|
4745
|
+
*/
|
|
4746
|
+
async metaGetOpenApi(options) {
|
|
4747
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetOpenApi(options);
|
|
4748
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4749
|
+
const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetOpenApi']?.[localVarOperationServerIndex]?.url;
|
|
4750
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4751
|
+
},
|
|
4752
|
+
/**
|
|
4753
|
+
* <br> OperationId: `MetaGetOpenApiHtml`
|
|
4754
|
+
* @summary Get open api html
|
|
4755
|
+
* @param {*} [options] Override http request option.
|
|
4756
|
+
* @throws {RequiredError}
|
|
4757
|
+
*/
|
|
4758
|
+
async metaGetOpenApiHtml(options) {
|
|
4759
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetOpenApiHtml(options);
|
|
4760
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4761
|
+
const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetOpenApiHtml']?.[localVarOperationServerIndex]?.url;
|
|
4762
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4763
|
+
},
|
|
4764
|
+
/**
|
|
4765
|
+
* <br> OperationId: `MetaGetReadiness`
|
|
4766
|
+
* @summary Get readiness
|
|
4767
|
+
* @param {*} [options] Override http request option.
|
|
4768
|
+
* @throws {RequiredError}
|
|
4769
|
+
*/
|
|
4770
|
+
async metaGetReadiness(options) {
|
|
4771
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetReadiness(options);
|
|
4772
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4773
|
+
const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetReadiness']?.[localVarOperationServerIndex]?.url;
|
|
4774
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4775
|
+
},
|
|
4776
|
+
/**
|
|
4777
|
+
* <br> OperationId: `MetaGetRoot`
|
|
4778
|
+
* @summary Get root
|
|
4779
|
+
* @param {*} [options] Override http request option.
|
|
4780
|
+
* @throws {RequiredError}
|
|
4781
|
+
*/
|
|
4782
|
+
async metaGetRoot(options) {
|
|
4783
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetRoot(options);
|
|
4784
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4785
|
+
const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetRoot']?.[localVarOperationServerIndex]?.url;
|
|
4786
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4787
|
+
},
|
|
4788
|
+
};
|
|
4789
|
+
};
|
|
4790
|
+
/**
|
|
4791
|
+
* MetaApi - factory interface
|
|
4792
|
+
* @export
|
|
4793
|
+
*/
|
|
4794
|
+
export const MetaApiFactory = function (configuration, basePath, axios) {
|
|
4795
|
+
const localVarFp = MetaApiFp(configuration);
|
|
4796
|
+
return {
|
|
4797
|
+
/**
|
|
4798
|
+
* <br> OperationId: `MetaGetHealth`
|
|
4799
|
+
* @summary Get health
|
|
4800
|
+
* @param {*} [options] Override http request option.
|
|
4801
|
+
* @throws {RequiredError}
|
|
4802
|
+
*/
|
|
4803
|
+
metaGetHealth(options) {
|
|
4804
|
+
return localVarFp.metaGetHealth(options).then((request) => request(axios, basePath));
|
|
4805
|
+
},
|
|
4806
|
+
/**
|
|
4807
|
+
* <br> OperationId: `MetaGetLiveness`
|
|
4808
|
+
* @summary Get liveness
|
|
4809
|
+
* @param {*} [options] Override http request option.
|
|
4810
|
+
* @throws {RequiredError}
|
|
4811
|
+
*/
|
|
4812
|
+
metaGetLiveness(options) {
|
|
4813
|
+
return localVarFp.metaGetLiveness(options).then((request) => request(axios, basePath));
|
|
4814
|
+
},
|
|
4815
|
+
/**
|
|
4816
|
+
* <br> OperationId: `MetaGetOpenApi`
|
|
3378
4817
|
* @summary Get open api
|
|
3379
4818
|
* @param {*} [options] Override http request option.
|
|
3380
4819
|
* @throws {RequiredError}
|
|
3381
4820
|
*/
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
4821
|
+
metaGetOpenApi(options) {
|
|
4822
|
+
return localVarFp.metaGetOpenApi(options).then((request) => request(axios, basePath));
|
|
4823
|
+
},
|
|
4824
|
+
/**
|
|
4825
|
+
* <br> OperationId: `MetaGetOpenApiHtml`
|
|
4826
|
+
* @summary Get open api html
|
|
4827
|
+
* @param {*} [options] Override http request option.
|
|
4828
|
+
* @throws {RequiredError}
|
|
4829
|
+
*/
|
|
4830
|
+
metaGetOpenApiHtml(options) {
|
|
4831
|
+
return localVarFp.metaGetOpenApiHtml(options).then((request) => request(axios, basePath));
|
|
4832
|
+
},
|
|
4833
|
+
/**
|
|
4834
|
+
* <br> OperationId: `MetaGetReadiness`
|
|
4835
|
+
* @summary Get readiness
|
|
4836
|
+
* @param {*} [options] Override http request option.
|
|
4837
|
+
* @throws {RequiredError}
|
|
4838
|
+
*/
|
|
4839
|
+
metaGetReadiness(options) {
|
|
4840
|
+
return localVarFp.metaGetReadiness(options).then((request) => request(axios, basePath));
|
|
4841
|
+
},
|
|
4842
|
+
/**
|
|
4843
|
+
* <br> OperationId: `MetaGetRoot`
|
|
4844
|
+
* @summary Get root
|
|
4845
|
+
* @param {*} [options] Override http request option.
|
|
4846
|
+
* @throws {RequiredError}
|
|
4847
|
+
*/
|
|
4848
|
+
metaGetRoot(options) {
|
|
4849
|
+
return localVarFp.metaGetRoot(options).then((request) => request(axios, basePath));
|
|
4850
|
+
},
|
|
4851
|
+
};
|
|
4852
|
+
};
|
|
4853
|
+
/**
|
|
4854
|
+
* MetaApi - object-oriented interface
|
|
4855
|
+
* @export
|
|
4856
|
+
* @class MetaApi
|
|
4857
|
+
* @extends {BaseAPI}
|
|
4858
|
+
*/
|
|
4859
|
+
export class MetaApi extends BaseAPI {
|
|
4860
|
+
/**
|
|
4861
|
+
* <br> OperationId: `MetaGetHealth`
|
|
4862
|
+
* @summary Get health
|
|
4863
|
+
* @param {*} [options] Override http request option.
|
|
4864
|
+
* @throws {RequiredError}
|
|
4865
|
+
* @memberof MetaApi
|
|
4866
|
+
*/
|
|
4867
|
+
metaGetHealth(options) {
|
|
4868
|
+
return MetaApiFp(this.configuration)
|
|
4869
|
+
.metaGetHealth(options)
|
|
4870
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4871
|
+
}
|
|
4872
|
+
/**
|
|
4873
|
+
* <br> OperationId: `MetaGetLiveness`
|
|
4874
|
+
* @summary Get liveness
|
|
4875
|
+
* @param {*} [options] Override http request option.
|
|
4876
|
+
* @throws {RequiredError}
|
|
4877
|
+
* @memberof MetaApi
|
|
4878
|
+
*/
|
|
4879
|
+
metaGetLiveness(options) {
|
|
4880
|
+
return MetaApiFp(this.configuration)
|
|
4881
|
+
.metaGetLiveness(options)
|
|
4882
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4883
|
+
}
|
|
4884
|
+
/**
|
|
4885
|
+
* <br> OperationId: `MetaGetOpenApi`
|
|
4886
|
+
* @summary Get open api
|
|
4887
|
+
* @param {*} [options] Override http request option.
|
|
4888
|
+
* @throws {RequiredError}
|
|
4889
|
+
* @memberof MetaApi
|
|
4890
|
+
*/
|
|
4891
|
+
metaGetOpenApi(options) {
|
|
4892
|
+
return MetaApiFp(this.configuration)
|
|
4893
|
+
.metaGetOpenApi(options)
|
|
4894
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4895
|
+
}
|
|
4896
|
+
/**
|
|
4897
|
+
* <br> OperationId: `MetaGetOpenApiHtml`
|
|
4898
|
+
* @summary Get open api html
|
|
4899
|
+
* @param {*} [options] Override http request option.
|
|
4900
|
+
* @throws {RequiredError}
|
|
4901
|
+
* @memberof MetaApi
|
|
4902
|
+
*/
|
|
4903
|
+
metaGetOpenApiHtml(options) {
|
|
4904
|
+
return MetaApiFp(this.configuration)
|
|
4905
|
+
.metaGetOpenApiHtml(options)
|
|
4906
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4907
|
+
}
|
|
4908
|
+
/**
|
|
4909
|
+
* <br> OperationId: `MetaGetReadiness`
|
|
4910
|
+
* @summary Get readiness
|
|
4911
|
+
* @param {*} [options] Override http request option.
|
|
4912
|
+
* @throws {RequiredError}
|
|
4913
|
+
* @memberof MetaApi
|
|
4914
|
+
*/
|
|
4915
|
+
metaGetReadiness(options) {
|
|
4916
|
+
return MetaApiFp(this.configuration)
|
|
4917
|
+
.metaGetReadiness(options)
|
|
4918
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4919
|
+
}
|
|
4920
|
+
/**
|
|
4921
|
+
* <br> OperationId: `MetaGetRoot`
|
|
4922
|
+
* @summary Get root
|
|
4923
|
+
* @param {*} [options] Override http request option.
|
|
4924
|
+
* @throws {RequiredError}
|
|
4925
|
+
* @memberof MetaApi
|
|
4926
|
+
*/
|
|
4927
|
+
metaGetRoot(options) {
|
|
4928
|
+
return MetaApiFp(this.configuration)
|
|
4929
|
+
.metaGetRoot(options)
|
|
4930
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4931
|
+
}
|
|
4932
|
+
}
|
|
4933
|
+
/**
|
|
4934
|
+
* PlatformStatsApi - axios parameter creator
|
|
4935
|
+
* @export
|
|
4936
|
+
*/
|
|
4937
|
+
export const PlatformStatsApiAxiosParamCreator = function (configuration) {
|
|
4938
|
+
return {
|
|
4939
|
+
/**
|
|
4940
|
+
* Domains by state, by ADR 0024 backing, per Distributor, and created per ISO week. Weekly buckets start Monday 00:00 UTC and the window ends with the current, partial week. Cheap aggregates only: there is no game-server and no player count here.<br> OperationId: `PlatformStatsControllerDomains`
|
|
4941
|
+
* @summary Platform-wide Domain statistics
|
|
4942
|
+
* @param {number} [weeks]
|
|
4943
|
+
* @param {*} [options] Override http request option.
|
|
4944
|
+
* @throws {RequiredError}
|
|
4945
|
+
*/
|
|
4946
|
+
platformStatsControllerDomains: async (weeks, options = {}) => {
|
|
4947
|
+
const localVarPath = `/staff/stats/domains`;
|
|
4948
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4949
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4950
|
+
let baseOptions;
|
|
4951
|
+
if (configuration) {
|
|
4952
|
+
baseOptions = configuration.baseOptions;
|
|
4953
|
+
}
|
|
4954
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4955
|
+
const localVarHeaderParameter = {};
|
|
4956
|
+
const localVarQueryParameter = {};
|
|
4957
|
+
// authentication staffSession required
|
|
4958
|
+
// authentication adminAuth required
|
|
4959
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
4960
|
+
if (weeks !== undefined) {
|
|
4961
|
+
localVarQueryParameter['weeks'] = weeks;
|
|
4962
|
+
}
|
|
4963
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4964
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4965
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4966
|
+
return {
|
|
4967
|
+
url: toPathString(localVarUrlObj),
|
|
4968
|
+
options: localVarRequestOptions,
|
|
4969
|
+
};
|
|
4970
|
+
},
|
|
4971
|
+
};
|
|
4972
|
+
};
|
|
4973
|
+
/**
|
|
4974
|
+
* PlatformStatsApi - functional programming interface
|
|
4975
|
+
* @export
|
|
4976
|
+
*/
|
|
4977
|
+
export const PlatformStatsApiFp = function (configuration) {
|
|
4978
|
+
const localVarAxiosParamCreator = PlatformStatsApiAxiosParamCreator(configuration);
|
|
4979
|
+
return {
|
|
4980
|
+
/**
|
|
4981
|
+
* Domains by state, by ADR 0024 backing, per Distributor, and created per ISO week. Weekly buckets start Monday 00:00 UTC and the window ends with the current, partial week. Cheap aggregates only: there is no game-server and no player count here.<br> OperationId: `PlatformStatsControllerDomains`
|
|
4982
|
+
* @summary Platform-wide Domain statistics
|
|
4983
|
+
* @param {number} [weeks]
|
|
4984
|
+
* @param {*} [options] Override http request option.
|
|
4985
|
+
* @throws {RequiredError}
|
|
4986
|
+
*/
|
|
4987
|
+
async platformStatsControllerDomains(weeks, options) {
|
|
4988
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.platformStatsControllerDomains(weeks, options);
|
|
4989
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4990
|
+
const localVarOperationServerBasePath = operationServerMap['PlatformStatsApi.platformStatsControllerDomains']?.[localVarOperationServerIndex]?.url;
|
|
4991
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4992
|
+
},
|
|
4993
|
+
};
|
|
4994
|
+
};
|
|
4995
|
+
/**
|
|
4996
|
+
* PlatformStatsApi - factory interface
|
|
4997
|
+
* @export
|
|
4998
|
+
*/
|
|
4999
|
+
export const PlatformStatsApiFactory = function (configuration, basePath, axios) {
|
|
5000
|
+
const localVarFp = PlatformStatsApiFp(configuration);
|
|
5001
|
+
return {
|
|
5002
|
+
/**
|
|
5003
|
+
* Domains by state, by ADR 0024 backing, per Distributor, and created per ISO week. Weekly buckets start Monday 00:00 UTC and the window ends with the current, partial week. Cheap aggregates only: there is no game-server and no player count here.<br> OperationId: `PlatformStatsControllerDomains`
|
|
5004
|
+
* @summary Platform-wide Domain statistics
|
|
5005
|
+
* @param {number} [weeks]
|
|
5006
|
+
* @param {*} [options] Override http request option.
|
|
5007
|
+
* @throws {RequiredError}
|
|
5008
|
+
*/
|
|
5009
|
+
platformStatsControllerDomains(weeks, options) {
|
|
5010
|
+
return localVarFp.platformStatsControllerDomains(weeks, options).then((request) => request(axios, basePath));
|
|
5011
|
+
},
|
|
5012
|
+
};
|
|
5013
|
+
};
|
|
5014
|
+
/**
|
|
5015
|
+
* PlatformStatsApi - object-oriented interface
|
|
5016
|
+
* @export
|
|
5017
|
+
* @class PlatformStatsApi
|
|
5018
|
+
* @extends {BaseAPI}
|
|
5019
|
+
*/
|
|
5020
|
+
export class PlatformStatsApi extends BaseAPI {
|
|
5021
|
+
/**
|
|
5022
|
+
* Domains by state, by ADR 0024 backing, per Distributor, and created per ISO week. Weekly buckets start Monday 00:00 UTC and the window ends with the current, partial week. Cheap aggregates only: there is no game-server and no player count here.<br> OperationId: `PlatformStatsControllerDomains`
|
|
5023
|
+
* @summary Platform-wide Domain statistics
|
|
5024
|
+
* @param {number} [weeks]
|
|
5025
|
+
* @param {*} [options] Override http request option.
|
|
5026
|
+
* @throws {RequiredError}
|
|
5027
|
+
* @memberof PlatformStatsApi
|
|
5028
|
+
*/
|
|
5029
|
+
platformStatsControllerDomains(weeks, options) {
|
|
5030
|
+
return PlatformStatsApiFp(this.configuration)
|
|
5031
|
+
.platformStatsControllerDomains(weeks, options)
|
|
5032
|
+
.then((request) => request(this.axios, this.basePath));
|
|
5033
|
+
}
|
|
5034
|
+
}
|
|
5035
|
+
/**
|
|
5036
|
+
* StaffAuthApi - axios parameter creator
|
|
5037
|
+
* @export
|
|
5038
|
+
*/
|
|
5039
|
+
export const StaffAuthApiAxiosParamCreator = function (configuration) {
|
|
5040
|
+
return {
|
|
5041
|
+
/**
|
|
5042
|
+
* <br> OperationId: `StaffAuthControllerCallback`
|
|
5043
|
+
* @summary Callback
|
|
5044
|
+
* @param {*} [options] Override http request option.
|
|
5045
|
+
* @throws {RequiredError}
|
|
5046
|
+
*/
|
|
5047
|
+
staffAuthControllerCallback: async (options = {}) => {
|
|
5048
|
+
const localVarPath = `/auth/callback`;
|
|
5049
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5050
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5051
|
+
let baseOptions;
|
|
5052
|
+
if (configuration) {
|
|
5053
|
+
baseOptions = configuration.baseOptions;
|
|
5054
|
+
}
|
|
5055
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
5056
|
+
const localVarHeaderParameter = {};
|
|
5057
|
+
const localVarQueryParameter = {};
|
|
5058
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5059
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5060
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5061
|
+
return {
|
|
5062
|
+
url: toPathString(localVarUrlObj),
|
|
5063
|
+
options: localVarRequestOptions,
|
|
5064
|
+
};
|
|
5065
|
+
},
|
|
5066
|
+
/**
|
|
5067
|
+
* <br> OperationId: `StaffAuthControllerLogin`
|
|
5068
|
+
* @summary Login
|
|
5069
|
+
* @param {*} [options] Override http request option.
|
|
5070
|
+
* @throws {RequiredError}
|
|
5071
|
+
*/
|
|
5072
|
+
staffAuthControllerLogin: async (options = {}) => {
|
|
5073
|
+
const localVarPath = `/auth/login`;
|
|
5074
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5075
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5076
|
+
let baseOptions;
|
|
5077
|
+
if (configuration) {
|
|
5078
|
+
baseOptions = configuration.baseOptions;
|
|
5079
|
+
}
|
|
5080
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
5081
|
+
const localVarHeaderParameter = {};
|
|
5082
|
+
const localVarQueryParameter = {};
|
|
5083
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5084
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5085
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5086
|
+
return {
|
|
5087
|
+
url: toPathString(localVarUrlObj),
|
|
5088
|
+
options: localVarRequestOptions,
|
|
5089
|
+
};
|
|
5090
|
+
},
|
|
5091
|
+
/**
|
|
5092
|
+
* <br> OperationId: `StaffAuthControllerLogout`
|
|
5093
|
+
* @summary Logout
|
|
5094
|
+
* @param {*} [options] Override http request option.
|
|
5095
|
+
* @throws {RequiredError}
|
|
5096
|
+
*/
|
|
5097
|
+
staffAuthControllerLogout: async (options = {}) => {
|
|
5098
|
+
const localVarPath = `/auth/logout`;
|
|
5099
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5100
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5101
|
+
let baseOptions;
|
|
5102
|
+
if (configuration) {
|
|
5103
|
+
baseOptions = configuration.baseOptions;
|
|
5104
|
+
}
|
|
5105
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
5106
|
+
const localVarHeaderParameter = {};
|
|
5107
|
+
const localVarQueryParameter = {};
|
|
5108
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5109
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5110
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5111
|
+
return {
|
|
5112
|
+
url: toPathString(localVarUrlObj),
|
|
5113
|
+
options: localVarRequestOptions,
|
|
5114
|
+
};
|
|
5115
|
+
},
|
|
5116
|
+
};
|
|
5117
|
+
};
|
|
5118
|
+
/**
|
|
5119
|
+
* StaffAuthApi - functional programming interface
|
|
5120
|
+
* @export
|
|
5121
|
+
*/
|
|
5122
|
+
export const StaffAuthApiFp = function (configuration) {
|
|
5123
|
+
const localVarAxiosParamCreator = StaffAuthApiAxiosParamCreator(configuration);
|
|
5124
|
+
return {
|
|
5125
|
+
/**
|
|
5126
|
+
* <br> OperationId: `StaffAuthControllerCallback`
|
|
5127
|
+
* @summary Callback
|
|
5128
|
+
* @param {*} [options] Override http request option.
|
|
5129
|
+
* @throws {RequiredError}
|
|
5130
|
+
*/
|
|
5131
|
+
async staffAuthControllerCallback(options) {
|
|
5132
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffAuthControllerCallback(options);
|
|
5133
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5134
|
+
const localVarOperationServerBasePath = operationServerMap['StaffAuthApi.staffAuthControllerCallback']?.[localVarOperationServerIndex]?.url;
|
|
5135
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5136
|
+
},
|
|
5137
|
+
/**
|
|
5138
|
+
* <br> OperationId: `StaffAuthControllerLogin`
|
|
5139
|
+
* @summary Login
|
|
5140
|
+
* @param {*} [options] Override http request option.
|
|
5141
|
+
* @throws {RequiredError}
|
|
5142
|
+
*/
|
|
5143
|
+
async staffAuthControllerLogin(options) {
|
|
5144
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffAuthControllerLogin(options);
|
|
5145
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5146
|
+
const localVarOperationServerBasePath = operationServerMap['StaffAuthApi.staffAuthControllerLogin']?.[localVarOperationServerIndex]?.url;
|
|
5147
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5148
|
+
},
|
|
5149
|
+
/**
|
|
5150
|
+
* <br> OperationId: `StaffAuthControllerLogout`
|
|
5151
|
+
* @summary Logout
|
|
5152
|
+
* @param {*} [options] Override http request option.
|
|
5153
|
+
* @throws {RequiredError}
|
|
5154
|
+
*/
|
|
5155
|
+
async staffAuthControllerLogout(options) {
|
|
5156
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffAuthControllerLogout(options);
|
|
5157
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5158
|
+
const localVarOperationServerBasePath = operationServerMap['StaffAuthApi.staffAuthControllerLogout']?.[localVarOperationServerIndex]?.url;
|
|
5159
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5160
|
+
},
|
|
5161
|
+
};
|
|
5162
|
+
};
|
|
5163
|
+
/**
|
|
5164
|
+
* StaffAuthApi - factory interface
|
|
5165
|
+
* @export
|
|
5166
|
+
*/
|
|
5167
|
+
export const StaffAuthApiFactory = function (configuration, basePath, axios) {
|
|
5168
|
+
const localVarFp = StaffAuthApiFp(configuration);
|
|
5169
|
+
return {
|
|
5170
|
+
/**
|
|
5171
|
+
* <br> OperationId: `StaffAuthControllerCallback`
|
|
5172
|
+
* @summary Callback
|
|
5173
|
+
* @param {*} [options] Override http request option.
|
|
5174
|
+
* @throws {RequiredError}
|
|
5175
|
+
*/
|
|
5176
|
+
staffAuthControllerCallback(options) {
|
|
5177
|
+
return localVarFp.staffAuthControllerCallback(options).then((request) => request(axios, basePath));
|
|
5178
|
+
},
|
|
5179
|
+
/**
|
|
5180
|
+
* <br> OperationId: `StaffAuthControllerLogin`
|
|
5181
|
+
* @summary Login
|
|
5182
|
+
* @param {*} [options] Override http request option.
|
|
5183
|
+
* @throws {RequiredError}
|
|
5184
|
+
*/
|
|
5185
|
+
staffAuthControllerLogin(options) {
|
|
5186
|
+
return localVarFp.staffAuthControllerLogin(options).then((request) => request(axios, basePath));
|
|
5187
|
+
},
|
|
5188
|
+
/**
|
|
5189
|
+
* <br> OperationId: `StaffAuthControllerLogout`
|
|
5190
|
+
* @summary Logout
|
|
5191
|
+
* @param {*} [options] Override http request option.
|
|
5192
|
+
* @throws {RequiredError}
|
|
5193
|
+
*/
|
|
5194
|
+
staffAuthControllerLogout(options) {
|
|
5195
|
+
return localVarFp.staffAuthControllerLogout(options).then((request) => request(axios, basePath));
|
|
5196
|
+
},
|
|
5197
|
+
};
|
|
5198
|
+
};
|
|
5199
|
+
/**
|
|
5200
|
+
* StaffAuthApi - object-oriented interface
|
|
5201
|
+
* @export
|
|
5202
|
+
* @class StaffAuthApi
|
|
5203
|
+
* @extends {BaseAPI}
|
|
5204
|
+
*/
|
|
5205
|
+
export class StaffAuthApi extends BaseAPI {
|
|
5206
|
+
/**
|
|
5207
|
+
* <br> OperationId: `StaffAuthControllerCallback`
|
|
5208
|
+
* @summary Callback
|
|
5209
|
+
* @param {*} [options] Override http request option.
|
|
5210
|
+
* @throws {RequiredError}
|
|
5211
|
+
* @memberof StaffAuthApi
|
|
5212
|
+
*/
|
|
5213
|
+
staffAuthControllerCallback(options) {
|
|
5214
|
+
return StaffAuthApiFp(this.configuration)
|
|
5215
|
+
.staffAuthControllerCallback(options)
|
|
5216
|
+
.then((request) => request(this.axios, this.basePath));
|
|
5217
|
+
}
|
|
5218
|
+
/**
|
|
5219
|
+
* <br> OperationId: `StaffAuthControllerLogin`
|
|
5220
|
+
* @summary Login
|
|
5221
|
+
* @param {*} [options] Override http request option.
|
|
5222
|
+
* @throws {RequiredError}
|
|
5223
|
+
* @memberof StaffAuthApi
|
|
5224
|
+
*/
|
|
5225
|
+
staffAuthControllerLogin(options) {
|
|
5226
|
+
return StaffAuthApiFp(this.configuration)
|
|
5227
|
+
.staffAuthControllerLogin(options)
|
|
5228
|
+
.then((request) => request(this.axios, this.basePath));
|
|
5229
|
+
}
|
|
5230
|
+
/**
|
|
5231
|
+
* <br> OperationId: `StaffAuthControllerLogout`
|
|
5232
|
+
* @summary Logout
|
|
5233
|
+
* @param {*} [options] Override http request option.
|
|
5234
|
+
* @throws {RequiredError}
|
|
5235
|
+
* @memberof StaffAuthApi
|
|
5236
|
+
*/
|
|
5237
|
+
staffAuthControllerLogout(options) {
|
|
5238
|
+
return StaffAuthApiFp(this.configuration)
|
|
5239
|
+
.staffAuthControllerLogout(options)
|
|
5240
|
+
.then((request) => request(this.axios, this.basePath));
|
|
5241
|
+
}
|
|
5242
|
+
}
|
|
5243
|
+
/**
|
|
5244
|
+
* StaffDomainLimitsApi - axios parameter creator
|
|
5245
|
+
* @export
|
|
5246
|
+
*/
|
|
5247
|
+
export const StaffDomainLimitsApiAxiosParamCreator = function (configuration) {
|
|
5248
|
+
return {
|
|
5249
|
+
/**
|
|
5250
|
+
* The Plan’s value applies again at once.<br> OperationId: `StaffDomainLimitsControllerClear`
|
|
5251
|
+
* @summary Clear a limit override of a Domain
|
|
5252
|
+
* @param {string} id
|
|
5253
|
+
* @param {string} limitKey
|
|
5254
|
+
* @param {DomainLimitOverrideClearInputDTO} [domainLimitOverrideClearInputDTO] DomainLimitOverrideClearInputDTO
|
|
5255
|
+
* @param {*} [options] Override http request option.
|
|
5256
|
+
* @throws {RequiredError}
|
|
5257
|
+
*/
|
|
5258
|
+
staffDomainLimitsControllerClear: async (id, limitKey, domainLimitOverrideClearInputDTO, options = {}) => {
|
|
5259
|
+
// verify required parameter 'id' is not null or undefined
|
|
5260
|
+
assertParamExists('staffDomainLimitsControllerClear', 'id', id);
|
|
5261
|
+
// verify required parameter 'limitKey' is not null or undefined
|
|
5262
|
+
assertParamExists('staffDomainLimitsControllerClear', 'limitKey', limitKey);
|
|
5263
|
+
const localVarPath = `/staff/domains/{id}/limits/{limitKey}`
|
|
5264
|
+
.replace(`{${'id'}}`, encodeURIComponent(String(id)))
|
|
5265
|
+
.replace(`{${'limitKey'}}`, encodeURIComponent(String(limitKey)));
|
|
5266
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5267
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5268
|
+
let baseOptions;
|
|
5269
|
+
if (configuration) {
|
|
5270
|
+
baseOptions = configuration.baseOptions;
|
|
5271
|
+
}
|
|
5272
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
5273
|
+
const localVarHeaderParameter = {};
|
|
5274
|
+
const localVarQueryParameter = {};
|
|
5275
|
+
// authentication staffSession required
|
|
5276
|
+
// authentication adminAuth required
|
|
5277
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
5278
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5279
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5280
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5281
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5282
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainLimitOverrideClearInputDTO, localVarRequestOptions, configuration);
|
|
5283
|
+
return {
|
|
5284
|
+
url: toPathString(localVarUrlObj),
|
|
5285
|
+
options: localVarRequestOptions,
|
|
5286
|
+
};
|
|
3387
5287
|
},
|
|
3388
5288
|
/**
|
|
3389
|
-
*
|
|
3390
|
-
* @summary
|
|
5289
|
+
* Every limit with its value and source: the Plan, an override, or `unmanaged` for a Domain with no Plan.<br> OperationId: `StaffDomainLimitsControllerGet`
|
|
5290
|
+
* @summary Effective limits of a Domain
|
|
5291
|
+
* @param {string} id
|
|
3391
5292
|
* @param {*} [options] Override http request option.
|
|
3392
5293
|
* @throws {RequiredError}
|
|
3393
5294
|
*/
|
|
3394
|
-
async
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
const
|
|
3398
|
-
|
|
5295
|
+
staffDomainLimitsControllerGet: async (id, options = {}) => {
|
|
5296
|
+
// verify required parameter 'id' is not null or undefined
|
|
5297
|
+
assertParamExists('staffDomainLimitsControllerGet', 'id', id);
|
|
5298
|
+
const localVarPath = `/staff/domains/{id}/limits`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
5299
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5300
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5301
|
+
let baseOptions;
|
|
5302
|
+
if (configuration) {
|
|
5303
|
+
baseOptions = configuration.baseOptions;
|
|
5304
|
+
}
|
|
5305
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
5306
|
+
const localVarHeaderParameter = {};
|
|
5307
|
+
const localVarQueryParameter = {};
|
|
5308
|
+
// authentication staffSession required
|
|
5309
|
+
// authentication adminAuth required
|
|
5310
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
5311
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5312
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5313
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5314
|
+
return {
|
|
5315
|
+
url: toPathString(localVarUrlObj),
|
|
5316
|
+
options: localVarRequestOptions,
|
|
5317
|
+
};
|
|
3399
5318
|
},
|
|
3400
5319
|
/**
|
|
3401
|
-
*
|
|
3402
|
-
* @summary
|
|
5320
|
+
* Newest first.<br> OperationId: `StaffDomainLimitsControllerHistory`
|
|
5321
|
+
* @summary Limit override history of a Domain
|
|
5322
|
+
* @param {string} id
|
|
3403
5323
|
* @param {*} [options] Override http request option.
|
|
3404
5324
|
* @throws {RequiredError}
|
|
3405
5325
|
*/
|
|
3406
|
-
async
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
const
|
|
3410
|
-
|
|
5326
|
+
staffDomainLimitsControllerHistory: async (id, options = {}) => {
|
|
5327
|
+
// verify required parameter 'id' is not null or undefined
|
|
5328
|
+
assertParamExists('staffDomainLimitsControllerHistory', 'id', id);
|
|
5329
|
+
const localVarPath = `/staff/domains/{id}/limits/history`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
5330
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5331
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5332
|
+
let baseOptions;
|
|
5333
|
+
if (configuration) {
|
|
5334
|
+
baseOptions = configuration.baseOptions;
|
|
5335
|
+
}
|
|
5336
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
5337
|
+
const localVarHeaderParameter = {};
|
|
5338
|
+
const localVarQueryParameter = {};
|
|
5339
|
+
// authentication staffSession required
|
|
5340
|
+
// authentication adminAuth required
|
|
5341
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
5342
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5343
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5344
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5345
|
+
return {
|
|
5346
|
+
url: toPathString(localVarUrlObj),
|
|
5347
|
+
options: localVarRequestOptions,
|
|
5348
|
+
};
|
|
3411
5349
|
},
|
|
3412
5350
|
/**
|
|
3413
|
-
*
|
|
3414
|
-
* @summary
|
|
5351
|
+
* 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`
|
|
5352
|
+
* @summary Override one limit of a Domain
|
|
5353
|
+
* @param {string} id
|
|
5354
|
+
* @param {string} limitKey
|
|
5355
|
+
* @param {DomainLimitOverrideInputDTO} [domainLimitOverrideInputDTO] DomainLimitOverrideInputDTO
|
|
3415
5356
|
* @param {*} [options] Override http request option.
|
|
3416
5357
|
* @throws {RequiredError}
|
|
3417
5358
|
*/
|
|
3418
|
-
async
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
5359
|
+
staffDomainLimitsControllerSet: async (id, limitKey, domainLimitOverrideInputDTO, options = {}) => {
|
|
5360
|
+
// verify required parameter 'id' is not null or undefined
|
|
5361
|
+
assertParamExists('staffDomainLimitsControllerSet', 'id', id);
|
|
5362
|
+
// verify required parameter 'limitKey' is not null or undefined
|
|
5363
|
+
assertParamExists('staffDomainLimitsControllerSet', 'limitKey', limitKey);
|
|
5364
|
+
const localVarPath = `/staff/domains/{id}/limits/{limitKey}`
|
|
5365
|
+
.replace(`{${'id'}}`, encodeURIComponent(String(id)))
|
|
5366
|
+
.replace(`{${'limitKey'}}`, encodeURIComponent(String(limitKey)));
|
|
5367
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5368
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5369
|
+
let baseOptions;
|
|
5370
|
+
if (configuration) {
|
|
5371
|
+
baseOptions = configuration.baseOptions;
|
|
5372
|
+
}
|
|
5373
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
5374
|
+
const localVarHeaderParameter = {};
|
|
5375
|
+
const localVarQueryParameter = {};
|
|
5376
|
+
// authentication staffSession required
|
|
5377
|
+
// authentication adminAuth required
|
|
5378
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
5379
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5380
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5381
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5382
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5383
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainLimitOverrideInputDTO, localVarRequestOptions, configuration);
|
|
5384
|
+
return {
|
|
5385
|
+
url: toPathString(localVarUrlObj),
|
|
5386
|
+
options: localVarRequestOptions,
|
|
5387
|
+
};
|
|
3423
5388
|
},
|
|
3424
5389
|
};
|
|
3425
5390
|
};
|
|
3426
5391
|
/**
|
|
3427
|
-
*
|
|
5392
|
+
* StaffDomainLimitsApi - functional programming interface
|
|
3428
5393
|
* @export
|
|
3429
5394
|
*/
|
|
3430
|
-
export const
|
|
3431
|
-
const
|
|
5395
|
+
export const StaffDomainLimitsApiFp = function (configuration) {
|
|
5396
|
+
const localVarAxiosParamCreator = StaffDomainLimitsApiAxiosParamCreator(configuration);
|
|
3432
5397
|
return {
|
|
3433
5398
|
/**
|
|
3434
|
-
*
|
|
3435
|
-
* @summary
|
|
5399
|
+
* The Plan’s value applies again at once.<br> OperationId: `StaffDomainLimitsControllerClear`
|
|
5400
|
+
* @summary Clear a limit override of a Domain
|
|
5401
|
+
* @param {string} id
|
|
5402
|
+
* @param {string} limitKey
|
|
5403
|
+
* @param {DomainLimitOverrideClearInputDTO} [domainLimitOverrideClearInputDTO] DomainLimitOverrideClearInputDTO
|
|
3436
5404
|
* @param {*} [options] Override http request option.
|
|
3437
5405
|
* @throws {RequiredError}
|
|
3438
5406
|
*/
|
|
3439
|
-
|
|
3440
|
-
|
|
5407
|
+
async staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options) {
|
|
5408
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options);
|
|
5409
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5410
|
+
const localVarOperationServerBasePath = operationServerMap['StaffDomainLimitsApi.staffDomainLimitsControllerClear']?.[localVarOperationServerIndex]
|
|
5411
|
+
?.url;
|
|
5412
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3441
5413
|
},
|
|
3442
5414
|
/**
|
|
3443
|
-
*
|
|
3444
|
-
* @summary
|
|
5415
|
+
* Every limit with its value and source: the Plan, an override, or `unmanaged` for a Domain with no Plan.<br> OperationId: `StaffDomainLimitsControllerGet`
|
|
5416
|
+
* @summary Effective limits of a Domain
|
|
5417
|
+
* @param {string} id
|
|
3445
5418
|
* @param {*} [options] Override http request option.
|
|
3446
5419
|
* @throws {RequiredError}
|
|
3447
5420
|
*/
|
|
3448
|
-
|
|
3449
|
-
|
|
5421
|
+
async staffDomainLimitsControllerGet(id, options) {
|
|
5422
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffDomainLimitsControllerGet(id, options);
|
|
5423
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5424
|
+
const localVarOperationServerBasePath = operationServerMap['StaffDomainLimitsApi.staffDomainLimitsControllerGet']?.[localVarOperationServerIndex]?.url;
|
|
5425
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3450
5426
|
},
|
|
3451
5427
|
/**
|
|
3452
|
-
*
|
|
3453
|
-
* @summary
|
|
5428
|
+
* Newest first.<br> OperationId: `StaffDomainLimitsControllerHistory`
|
|
5429
|
+
* @summary Limit override history of a Domain
|
|
5430
|
+
* @param {string} id
|
|
3454
5431
|
* @param {*} [options] Override http request option.
|
|
3455
5432
|
* @throws {RequiredError}
|
|
3456
5433
|
*/
|
|
3457
|
-
|
|
3458
|
-
|
|
5434
|
+
async staffDomainLimitsControllerHistory(id, options) {
|
|
5435
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffDomainLimitsControllerHistory(id, options);
|
|
5436
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5437
|
+
const localVarOperationServerBasePath = operationServerMap['StaffDomainLimitsApi.staffDomainLimitsControllerHistory']?.[localVarOperationServerIndex]
|
|
5438
|
+
?.url;
|
|
5439
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3459
5440
|
},
|
|
3460
5441
|
/**
|
|
3461
|
-
*
|
|
3462
|
-
* @summary
|
|
5442
|
+
* 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`
|
|
5443
|
+
* @summary Override one limit of a Domain
|
|
5444
|
+
* @param {string} id
|
|
5445
|
+
* @param {string} limitKey
|
|
5446
|
+
* @param {DomainLimitOverrideInputDTO} [domainLimitOverrideInputDTO] DomainLimitOverrideInputDTO
|
|
3463
5447
|
* @param {*} [options] Override http request option.
|
|
3464
5448
|
* @throws {RequiredError}
|
|
3465
5449
|
*/
|
|
3466
|
-
|
|
3467
|
-
|
|
5450
|
+
async staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options) {
|
|
5451
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options);
|
|
5452
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5453
|
+
const localVarOperationServerBasePath = operationServerMap['StaffDomainLimitsApi.staffDomainLimitsControllerSet']?.[localVarOperationServerIndex]?.url;
|
|
5454
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3468
5455
|
},
|
|
5456
|
+
};
|
|
5457
|
+
};
|
|
5458
|
+
/**
|
|
5459
|
+
* StaffDomainLimitsApi - factory interface
|
|
5460
|
+
* @export
|
|
5461
|
+
*/
|
|
5462
|
+
export const StaffDomainLimitsApiFactory = function (configuration, basePath, axios) {
|
|
5463
|
+
const localVarFp = StaffDomainLimitsApiFp(configuration);
|
|
5464
|
+
return {
|
|
3469
5465
|
/**
|
|
3470
|
-
*
|
|
3471
|
-
* @summary
|
|
5466
|
+
* The Plan’s value applies again at once.<br> OperationId: `StaffDomainLimitsControllerClear`
|
|
5467
|
+
* @summary Clear a limit override of a Domain
|
|
5468
|
+
* @param {string} id
|
|
5469
|
+
* @param {string} limitKey
|
|
5470
|
+
* @param {DomainLimitOverrideClearInputDTO} [domainLimitOverrideClearInputDTO] DomainLimitOverrideClearInputDTO
|
|
3472
5471
|
* @param {*} [options] Override http request option.
|
|
3473
5472
|
* @throws {RequiredError}
|
|
3474
5473
|
*/
|
|
3475
|
-
|
|
3476
|
-
return localVarFp
|
|
5474
|
+
staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options) {
|
|
5475
|
+
return localVarFp
|
|
5476
|
+
.staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options)
|
|
5477
|
+
.then((request) => request(axios, basePath));
|
|
3477
5478
|
},
|
|
3478
5479
|
/**
|
|
3479
|
-
*
|
|
3480
|
-
* @summary
|
|
5480
|
+
* Every limit with its value and source: the Plan, an override, or `unmanaged` for a Domain with no Plan.<br> OperationId: `StaffDomainLimitsControllerGet`
|
|
5481
|
+
* @summary Effective limits of a Domain
|
|
5482
|
+
* @param {string} id
|
|
3481
5483
|
* @param {*} [options] Override http request option.
|
|
3482
5484
|
* @throws {RequiredError}
|
|
3483
5485
|
*/
|
|
3484
|
-
|
|
3485
|
-
return localVarFp.
|
|
5486
|
+
staffDomainLimitsControllerGet(id, options) {
|
|
5487
|
+
return localVarFp.staffDomainLimitsControllerGet(id, options).then((request) => request(axios, basePath));
|
|
3486
5488
|
},
|
|
3487
5489
|
/**
|
|
3488
|
-
*
|
|
3489
|
-
* @summary
|
|
5490
|
+
* Newest first.<br> OperationId: `StaffDomainLimitsControllerHistory`
|
|
5491
|
+
* @summary Limit override history of a Domain
|
|
5492
|
+
* @param {string} id
|
|
3490
5493
|
* @param {*} [options] Override http request option.
|
|
3491
5494
|
* @throws {RequiredError}
|
|
3492
5495
|
*/
|
|
3493
|
-
|
|
3494
|
-
return localVarFp.
|
|
5496
|
+
staffDomainLimitsControllerHistory(id, options) {
|
|
5497
|
+
return localVarFp.staffDomainLimitsControllerHistory(id, options).then((request) => request(axios, basePath));
|
|
5498
|
+
},
|
|
5499
|
+
/**
|
|
5500
|
+
* 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`
|
|
5501
|
+
* @summary Override one limit of a Domain
|
|
5502
|
+
* @param {string} id
|
|
5503
|
+
* @param {string} limitKey
|
|
5504
|
+
* @param {DomainLimitOverrideInputDTO} [domainLimitOverrideInputDTO] DomainLimitOverrideInputDTO
|
|
5505
|
+
* @param {*} [options] Override http request option.
|
|
5506
|
+
* @throws {RequiredError}
|
|
5507
|
+
*/
|
|
5508
|
+
staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options) {
|
|
5509
|
+
return localVarFp
|
|
5510
|
+
.staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options)
|
|
5511
|
+
.then((request) => request(axios, basePath));
|
|
3495
5512
|
},
|
|
3496
5513
|
};
|
|
3497
5514
|
};
|
|
3498
5515
|
/**
|
|
3499
|
-
*
|
|
5516
|
+
* StaffDomainLimitsApi - object-oriented interface
|
|
3500
5517
|
* @export
|
|
3501
|
-
* @class
|
|
5518
|
+
* @class StaffDomainLimitsApi
|
|
3502
5519
|
* @extends {BaseAPI}
|
|
3503
5520
|
*/
|
|
3504
|
-
export class
|
|
3505
|
-
/**
|
|
3506
|
-
* <br> OperationId: `MetaGetHealth`
|
|
3507
|
-
* @summary Get health
|
|
3508
|
-
* @param {*} [options] Override http request option.
|
|
3509
|
-
* @throws {RequiredError}
|
|
3510
|
-
* @memberof MetaApi
|
|
3511
|
-
*/
|
|
3512
|
-
metaGetHealth(options) {
|
|
3513
|
-
return MetaApiFp(this.configuration)
|
|
3514
|
-
.metaGetHealth(options)
|
|
3515
|
-
.then((request) => request(this.axios, this.basePath));
|
|
3516
|
-
}
|
|
3517
|
-
/**
|
|
3518
|
-
* <br> OperationId: `MetaGetLiveness`
|
|
3519
|
-
* @summary Get liveness
|
|
3520
|
-
* @param {*} [options] Override http request option.
|
|
3521
|
-
* @throws {RequiredError}
|
|
3522
|
-
* @memberof MetaApi
|
|
3523
|
-
*/
|
|
3524
|
-
metaGetLiveness(options) {
|
|
3525
|
-
return MetaApiFp(this.configuration)
|
|
3526
|
-
.metaGetLiveness(options)
|
|
3527
|
-
.then((request) => request(this.axios, this.basePath));
|
|
3528
|
-
}
|
|
3529
|
-
/**
|
|
3530
|
-
* <br> OperationId: `MetaGetMetrics`
|
|
3531
|
-
* @summary Get metrics
|
|
3532
|
-
* @param {*} [options] Override http request option.
|
|
3533
|
-
* @throws {RequiredError}
|
|
3534
|
-
* @memberof MetaApi
|
|
3535
|
-
*/
|
|
3536
|
-
metaGetMetrics(options) {
|
|
3537
|
-
return MetaApiFp(this.configuration)
|
|
3538
|
-
.metaGetMetrics(options)
|
|
3539
|
-
.then((request) => request(this.axios, this.basePath));
|
|
3540
|
-
}
|
|
5521
|
+
export class StaffDomainLimitsApi extends BaseAPI {
|
|
3541
5522
|
/**
|
|
3542
|
-
*
|
|
3543
|
-
* @summary
|
|
5523
|
+
* The Plan’s value applies again at once.<br> OperationId: `StaffDomainLimitsControllerClear`
|
|
5524
|
+
* @summary Clear a limit override of a Domain
|
|
5525
|
+
* @param {string} id
|
|
5526
|
+
* @param {string} limitKey
|
|
5527
|
+
* @param {DomainLimitOverrideClearInputDTO} [domainLimitOverrideClearInputDTO] DomainLimitOverrideClearInputDTO
|
|
3544
5528
|
* @param {*} [options] Override http request option.
|
|
3545
5529
|
* @throws {RequiredError}
|
|
3546
|
-
* @memberof
|
|
5530
|
+
* @memberof StaffDomainLimitsApi
|
|
3547
5531
|
*/
|
|
3548
|
-
|
|
3549
|
-
return
|
|
3550
|
-
.
|
|
5532
|
+
staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options) {
|
|
5533
|
+
return StaffDomainLimitsApiFp(this.configuration)
|
|
5534
|
+
.staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options)
|
|
3551
5535
|
.then((request) => request(this.axios, this.basePath));
|
|
3552
5536
|
}
|
|
3553
5537
|
/**
|
|
3554
|
-
*
|
|
3555
|
-
* @summary
|
|
5538
|
+
* Every limit with its value and source: the Plan, an override, or `unmanaged` for a Domain with no Plan.<br> OperationId: `StaffDomainLimitsControllerGet`
|
|
5539
|
+
* @summary Effective limits of a Domain
|
|
5540
|
+
* @param {string} id
|
|
3556
5541
|
* @param {*} [options] Override http request option.
|
|
3557
5542
|
* @throws {RequiredError}
|
|
3558
|
-
* @memberof
|
|
5543
|
+
* @memberof StaffDomainLimitsApi
|
|
3559
5544
|
*/
|
|
3560
|
-
|
|
3561
|
-
return
|
|
3562
|
-
.
|
|
5545
|
+
staffDomainLimitsControllerGet(id, options) {
|
|
5546
|
+
return StaffDomainLimitsApiFp(this.configuration)
|
|
5547
|
+
.staffDomainLimitsControllerGet(id, options)
|
|
3563
5548
|
.then((request) => request(this.axios, this.basePath));
|
|
3564
5549
|
}
|
|
3565
5550
|
/**
|
|
3566
|
-
*
|
|
3567
|
-
* @summary
|
|
5551
|
+
* Newest first.<br> OperationId: `StaffDomainLimitsControllerHistory`
|
|
5552
|
+
* @summary Limit override history of a Domain
|
|
5553
|
+
* @param {string} id
|
|
3568
5554
|
* @param {*} [options] Override http request option.
|
|
3569
5555
|
* @throws {RequiredError}
|
|
3570
|
-
* @memberof
|
|
5556
|
+
* @memberof StaffDomainLimitsApi
|
|
3571
5557
|
*/
|
|
3572
|
-
|
|
3573
|
-
return
|
|
3574
|
-
.
|
|
5558
|
+
staffDomainLimitsControllerHistory(id, options) {
|
|
5559
|
+
return StaffDomainLimitsApiFp(this.configuration)
|
|
5560
|
+
.staffDomainLimitsControllerHistory(id, options)
|
|
3575
5561
|
.then((request) => request(this.axios, this.basePath));
|
|
3576
5562
|
}
|
|
3577
5563
|
/**
|
|
3578
|
-
*
|
|
3579
|
-
* @summary
|
|
5564
|
+
* 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`
|
|
5565
|
+
* @summary Override one limit of a Domain
|
|
5566
|
+
* @param {string} id
|
|
5567
|
+
* @param {string} limitKey
|
|
5568
|
+
* @param {DomainLimitOverrideInputDTO} [domainLimitOverrideInputDTO] DomainLimitOverrideInputDTO
|
|
3580
5569
|
* @param {*} [options] Override http request option.
|
|
3581
5570
|
* @throws {RequiredError}
|
|
3582
|
-
* @memberof
|
|
5571
|
+
* @memberof StaffDomainLimitsApi
|
|
3583
5572
|
*/
|
|
3584
|
-
|
|
3585
|
-
return
|
|
3586
|
-
.
|
|
5573
|
+
staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options) {
|
|
5574
|
+
return StaffDomainLimitsApiFp(this.configuration)
|
|
5575
|
+
.staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options)
|
|
3587
5576
|
.then((request) => request(this.axios, this.basePath));
|
|
3588
5577
|
}
|
|
3589
5578
|
}
|
|
3590
5579
|
/**
|
|
3591
|
-
*
|
|
5580
|
+
* StaffMeApi - axios parameter creator
|
|
3592
5581
|
* @export
|
|
3593
5582
|
*/
|
|
3594
|
-
export const
|
|
5583
|
+
export const StaffMeApiAxiosParamCreator = function (configuration) {
|
|
3595
5584
|
return {
|
|
3596
5585
|
/**
|
|
3597
|
-
*
|
|
3598
|
-
* @summary
|
|
3599
|
-
* @param {number} [weeks]
|
|
5586
|
+
* 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`
|
|
5587
|
+
* @summary Who this Staff session belongs to
|
|
3600
5588
|
* @param {*} [options] Override http request option.
|
|
3601
5589
|
* @throws {RequiredError}
|
|
3602
5590
|
*/
|
|
3603
|
-
|
|
3604
|
-
const localVarPath = `/staff/
|
|
5591
|
+
staffMeControllerMe: async (options = {}) => {
|
|
5592
|
+
const localVarPath = `/staff/me`;
|
|
3605
5593
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3606
5594
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3607
5595
|
let baseOptions;
|
|
@@ -3614,9 +5602,6 @@ export const PlatformStatsApiAxiosParamCreator = function (configuration) {
|
|
|
3614
5602
|
// authentication staffSession required
|
|
3615
5603
|
// authentication adminAuth required
|
|
3616
5604
|
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
3617
|
-
if (weeks !== undefined) {
|
|
3618
|
-
localVarQueryParameter['weeks'] = weeks;
|
|
3619
|
-
}
|
|
3620
5605
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3621
5606
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3622
5607
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -3628,81 +5613,146 @@ export const PlatformStatsApiAxiosParamCreator = function (configuration) {
|
|
|
3628
5613
|
};
|
|
3629
5614
|
};
|
|
3630
5615
|
/**
|
|
3631
|
-
*
|
|
5616
|
+
* StaffMeApi - functional programming interface
|
|
3632
5617
|
* @export
|
|
3633
5618
|
*/
|
|
3634
|
-
export const
|
|
3635
|
-
const localVarAxiosParamCreator =
|
|
5619
|
+
export const StaffMeApiFp = function (configuration) {
|
|
5620
|
+
const localVarAxiosParamCreator = StaffMeApiAxiosParamCreator(configuration);
|
|
3636
5621
|
return {
|
|
3637
5622
|
/**
|
|
3638
|
-
*
|
|
3639
|
-
* @summary
|
|
3640
|
-
* @param {number} [weeks]
|
|
5623
|
+
* 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`
|
|
5624
|
+
* @summary Who this Staff session belongs to
|
|
3641
5625
|
* @param {*} [options] Override http request option.
|
|
3642
5626
|
* @throws {RequiredError}
|
|
3643
5627
|
*/
|
|
3644
|
-
async
|
|
3645
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5628
|
+
async staffMeControllerMe(options) {
|
|
5629
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffMeControllerMe(options);
|
|
3646
5630
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3647
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
5631
|
+
const localVarOperationServerBasePath = operationServerMap['StaffMeApi.staffMeControllerMe']?.[localVarOperationServerIndex]?.url;
|
|
3648
5632
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3649
5633
|
},
|
|
3650
5634
|
};
|
|
3651
5635
|
};
|
|
3652
5636
|
/**
|
|
3653
|
-
*
|
|
5637
|
+
* StaffMeApi - factory interface
|
|
3654
5638
|
* @export
|
|
3655
5639
|
*/
|
|
3656
|
-
export const
|
|
3657
|
-
const localVarFp =
|
|
5640
|
+
export const StaffMeApiFactory = function (configuration, basePath, axios) {
|
|
5641
|
+
const localVarFp = StaffMeApiFp(configuration);
|
|
3658
5642
|
return {
|
|
3659
5643
|
/**
|
|
3660
|
-
*
|
|
3661
|
-
* @summary
|
|
3662
|
-
* @param {number} [weeks]
|
|
5644
|
+
* 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`
|
|
5645
|
+
* @summary Who this Staff session belongs to
|
|
3663
5646
|
* @param {*} [options] Override http request option.
|
|
3664
5647
|
* @throws {RequiredError}
|
|
3665
5648
|
*/
|
|
3666
|
-
|
|
3667
|
-
return localVarFp.
|
|
5649
|
+
staffMeControllerMe(options) {
|
|
5650
|
+
return localVarFp.staffMeControllerMe(options).then((request) => request(axios, basePath));
|
|
3668
5651
|
},
|
|
3669
5652
|
};
|
|
3670
5653
|
};
|
|
3671
5654
|
/**
|
|
3672
|
-
*
|
|
5655
|
+
* StaffMeApi - object-oriented interface
|
|
3673
5656
|
* @export
|
|
3674
|
-
* @class
|
|
5657
|
+
* @class StaffMeApi
|
|
3675
5658
|
* @extends {BaseAPI}
|
|
3676
5659
|
*/
|
|
3677
|
-
export class
|
|
5660
|
+
export class StaffMeApi extends BaseAPI {
|
|
3678
5661
|
/**
|
|
3679
|
-
*
|
|
3680
|
-
* @summary
|
|
3681
|
-
* @param {number} [weeks]
|
|
5662
|
+
* 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`
|
|
5663
|
+
* @summary Who this Staff session belongs to
|
|
3682
5664
|
* @param {*} [options] Override http request option.
|
|
3683
5665
|
* @throws {RequiredError}
|
|
3684
|
-
* @memberof
|
|
5666
|
+
* @memberof StaffMeApi
|
|
3685
5667
|
*/
|
|
3686
|
-
|
|
3687
|
-
return
|
|
3688
|
-
.
|
|
5668
|
+
staffMeControllerMe(options) {
|
|
5669
|
+
return StaffMeApiFp(this.configuration)
|
|
5670
|
+
.staffMeControllerMe(options)
|
|
3689
5671
|
.then((request) => request(this.axios, this.basePath));
|
|
3690
5672
|
}
|
|
3691
5673
|
}
|
|
3692
5674
|
/**
|
|
3693
|
-
*
|
|
5675
|
+
* StaffPlanApi - axios parameter creator
|
|
3694
5676
|
* @export
|
|
3695
5677
|
*/
|
|
3696
|
-
export const
|
|
5678
|
+
export const StaffPlanApiAxiosParamCreator = function (configuration) {
|
|
3697
5679
|
return {
|
|
3698
5680
|
/**
|
|
3699
|
-
*
|
|
3700
|
-
* @summary
|
|
5681
|
+
* 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`
|
|
5682
|
+
* @summary Archive a Plan
|
|
5683
|
+
* @param {string} id
|
|
5684
|
+
* @param {PlanArchiveInputDTO} [planArchiveInputDTO] PlanArchiveInputDTO
|
|
3701
5685
|
* @param {*} [options] Override http request option.
|
|
3702
5686
|
* @throws {RequiredError}
|
|
3703
5687
|
*/
|
|
3704
|
-
|
|
3705
|
-
|
|
5688
|
+
staffPlanControllerArchive: async (id, planArchiveInputDTO, options = {}) => {
|
|
5689
|
+
// verify required parameter 'id' is not null or undefined
|
|
5690
|
+
assertParamExists('staffPlanControllerArchive', 'id', id);
|
|
5691
|
+
const localVarPath = `/staff/plans/{id}/archive`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
5692
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5693
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5694
|
+
let baseOptions;
|
|
5695
|
+
if (configuration) {
|
|
5696
|
+
baseOptions = configuration.baseOptions;
|
|
5697
|
+
}
|
|
5698
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
5699
|
+
const localVarHeaderParameter = {};
|
|
5700
|
+
const localVarQueryParameter = {};
|
|
5701
|
+
// authentication staffSession required
|
|
5702
|
+
// authentication adminAuth required
|
|
5703
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
5704
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5705
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5706
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5707
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5708
|
+
localVarRequestOptions.data = serializeDataIfNeeded(planArchiveInputDTO, localVarRequestOptions, configuration);
|
|
5709
|
+
return {
|
|
5710
|
+
url: toPathString(localVarUrlObj),
|
|
5711
|
+
options: localVarRequestOptions,
|
|
5712
|
+
};
|
|
5713
|
+
},
|
|
5714
|
+
/**
|
|
5715
|
+
* Omitted limits take the Domain column defaults. Recorded with who, when and the reason.<br> OperationId: `StaffPlanControllerCreate`
|
|
5716
|
+
* @summary Create a Plan
|
|
5717
|
+
* @param {PlanCreateInputDTO} [planCreateInputDTO] PlanCreateInputDTO
|
|
5718
|
+
* @param {*} [options] Override http request option.
|
|
5719
|
+
* @throws {RequiredError}
|
|
5720
|
+
*/
|
|
5721
|
+
staffPlanControllerCreate: async (planCreateInputDTO, options = {}) => {
|
|
5722
|
+
const localVarPath = `/staff/plans`;
|
|
5723
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5724
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5725
|
+
let baseOptions;
|
|
5726
|
+
if (configuration) {
|
|
5727
|
+
baseOptions = configuration.baseOptions;
|
|
5728
|
+
}
|
|
5729
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
5730
|
+
const localVarHeaderParameter = {};
|
|
5731
|
+
const localVarQueryParameter = {};
|
|
5732
|
+
// authentication staffSession required
|
|
5733
|
+
// authentication adminAuth required
|
|
5734
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
5735
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5736
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5737
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5738
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5739
|
+
localVarRequestOptions.data = serializeDataIfNeeded(planCreateInputDTO, localVarRequestOptions, configuration);
|
|
5740
|
+
return {
|
|
5741
|
+
url: toPathString(localVarUrlObj),
|
|
5742
|
+
options: localVarRequestOptions,
|
|
5743
|
+
};
|
|
5744
|
+
},
|
|
5745
|
+
/**
|
|
5746
|
+
* Newest first, each with the Plan as it was after.<br> OperationId: `StaffPlanControllerHistory`
|
|
5747
|
+
* @summary Change history of a Plan
|
|
5748
|
+
* @param {string} id
|
|
5749
|
+
* @param {*} [options] Override http request option.
|
|
5750
|
+
* @throws {RequiredError}
|
|
5751
|
+
*/
|
|
5752
|
+
staffPlanControllerHistory: async (id, options = {}) => {
|
|
5753
|
+
// verify required parameter 'id' is not null or undefined
|
|
5754
|
+
assertParamExists('staffPlanControllerHistory', 'id', id);
|
|
5755
|
+
const localVarPath = `/staff/plans/{id}/history`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
3706
5756
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3707
5757
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3708
5758
|
let baseOptions;
|
|
@@ -3712,6 +5762,9 @@ export const StaffAuthApiAxiosParamCreator = function (configuration) {
|
|
|
3712
5762
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
3713
5763
|
const localVarHeaderParameter = {};
|
|
3714
5764
|
const localVarQueryParameter = {};
|
|
5765
|
+
// authentication staffSession required
|
|
5766
|
+
// authentication adminAuth required
|
|
5767
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
3715
5768
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3716
5769
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3717
5770
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -3721,13 +5774,106 @@ export const StaffAuthApiAxiosParamCreator = function (configuration) {
|
|
|
3721
5774
|
};
|
|
3722
5775
|
},
|
|
3723
5776
|
/**
|
|
3724
|
-
*
|
|
3725
|
-
* @summary
|
|
5777
|
+
* 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`
|
|
5778
|
+
* @summary Import Plans from the billing provider
|
|
5779
|
+
* @param {PlanImportInputDTO} [planImportInputDTO] PlanImportInputDTO
|
|
3726
5780
|
* @param {*} [options] Override http request option.
|
|
3727
5781
|
* @throws {RequiredError}
|
|
3728
5782
|
*/
|
|
3729
|
-
|
|
3730
|
-
const localVarPath = `/
|
|
5783
|
+
staffPlanControllerImport: async (planImportInputDTO, options = {}) => {
|
|
5784
|
+
const localVarPath = `/staff/plans/import`;
|
|
5785
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5786
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5787
|
+
let baseOptions;
|
|
5788
|
+
if (configuration) {
|
|
5789
|
+
baseOptions = configuration.baseOptions;
|
|
5790
|
+
}
|
|
5791
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
5792
|
+
const localVarHeaderParameter = {};
|
|
5793
|
+
const localVarQueryParameter = {};
|
|
5794
|
+
// authentication staffSession required
|
|
5795
|
+
// authentication adminAuth required
|
|
5796
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
5797
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5798
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5799
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5800
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5801
|
+
localVarRequestOptions.data = serializeDataIfNeeded(planImportInputDTO, localVarRequestOptions, configuration);
|
|
5802
|
+
return {
|
|
5803
|
+
url: toPathString(localVarUrlObj),
|
|
5804
|
+
options: localVarRequestOptions,
|
|
5805
|
+
};
|
|
5806
|
+
},
|
|
5807
|
+
/**
|
|
5808
|
+
* True once an import has created any Plan, even if those Plans were later unlinked or archived.<br> OperationId: `StaffPlanControllerImportStatus`
|
|
5809
|
+
* @summary Whether the billing-provider import ran
|
|
5810
|
+
* @param {*} [options] Override http request option.
|
|
5811
|
+
* @throws {RequiredError}
|
|
5812
|
+
*/
|
|
5813
|
+
staffPlanControllerImportStatus: async (options = {}) => {
|
|
5814
|
+
const localVarPath = `/staff/plans/import`;
|
|
5815
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5816
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5817
|
+
let baseOptions;
|
|
5818
|
+
if (configuration) {
|
|
5819
|
+
baseOptions = configuration.baseOptions;
|
|
5820
|
+
}
|
|
5821
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
5822
|
+
const localVarHeaderParameter = {};
|
|
5823
|
+
const localVarQueryParameter = {};
|
|
5824
|
+
// authentication staffSession required
|
|
5825
|
+
// authentication adminAuth required
|
|
5826
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
5827
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5828
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5829
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5830
|
+
return {
|
|
5831
|
+
url: toPathString(localVarUrlObj),
|
|
5832
|
+
options: localVarRequestOptions,
|
|
5833
|
+
};
|
|
5834
|
+
},
|
|
5835
|
+
/**
|
|
5836
|
+
* 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`
|
|
5837
|
+
* @summary List Plans
|
|
5838
|
+
* @param {any} [includeArchived]
|
|
5839
|
+
* @param {*} [options] Override http request option.
|
|
5840
|
+
* @throws {RequiredError}
|
|
5841
|
+
*/
|
|
5842
|
+
staffPlanControllerList: async (includeArchived, options = {}) => {
|
|
5843
|
+
const localVarPath = `/staff/plans`;
|
|
5844
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5845
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5846
|
+
let baseOptions;
|
|
5847
|
+
if (configuration) {
|
|
5848
|
+
baseOptions = configuration.baseOptions;
|
|
5849
|
+
}
|
|
5850
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
5851
|
+
const localVarHeaderParameter = {};
|
|
5852
|
+
const localVarQueryParameter = {};
|
|
5853
|
+
// authentication staffSession required
|
|
5854
|
+
// authentication adminAuth required
|
|
5855
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
5856
|
+
if (includeArchived !== undefined) {
|
|
5857
|
+
for (const [key, value] of Object.entries(includeArchived)) {
|
|
5858
|
+
localVarQueryParameter[key] = value;
|
|
5859
|
+
}
|
|
5860
|
+
}
|
|
5861
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5862
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5863
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5864
|
+
return {
|
|
5865
|
+
url: toPathString(localVarUrlObj),
|
|
5866
|
+
options: localVarRequestOptions,
|
|
5867
|
+
};
|
|
5868
|
+
},
|
|
5869
|
+
/**
|
|
5870
|
+
* 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`
|
|
5871
|
+
* @summary The billing provider’s products
|
|
5872
|
+
* @param {*} [options] Override http request option.
|
|
5873
|
+
* @throws {RequiredError}
|
|
5874
|
+
*/
|
|
5875
|
+
staffPlanControllerListStripeProducts: async (options = {}) => {
|
|
5876
|
+
const localVarPath = `/staff/stripe-products`;
|
|
3731
5877
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3732
5878
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3733
5879
|
let baseOptions;
|
|
@@ -3737,34 +5883,80 @@ export const StaffAuthApiAxiosParamCreator = function (configuration) {
|
|
|
3737
5883
|
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
3738
5884
|
const localVarHeaderParameter = {};
|
|
3739
5885
|
const localVarQueryParameter = {};
|
|
5886
|
+
// authentication staffSession required
|
|
5887
|
+
// authentication adminAuth required
|
|
5888
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
5889
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5890
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5891
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5892
|
+
return {
|
|
5893
|
+
url: toPathString(localVarUrlObj),
|
|
5894
|
+
options: localVarRequestOptions,
|
|
5895
|
+
};
|
|
5896
|
+
},
|
|
5897
|
+
/**
|
|
5898
|
+
* 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`
|
|
5899
|
+
* @summary Preview a Plan edit
|
|
5900
|
+
* @param {string} id
|
|
5901
|
+
* @param {PlanPreviewInputDTO} [planPreviewInputDTO] PlanPreviewInputDTO
|
|
5902
|
+
* @param {*} [options] Override http request option.
|
|
5903
|
+
* @throws {RequiredError}
|
|
5904
|
+
*/
|
|
5905
|
+
staffPlanControllerPreview: async (id, planPreviewInputDTO, options = {}) => {
|
|
5906
|
+
// verify required parameter 'id' is not null or undefined
|
|
5907
|
+
assertParamExists('staffPlanControllerPreview', 'id', id);
|
|
5908
|
+
const localVarPath = `/staff/plans/{id}/preview`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
5909
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5910
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5911
|
+
let baseOptions;
|
|
5912
|
+
if (configuration) {
|
|
5913
|
+
baseOptions = configuration.baseOptions;
|
|
5914
|
+
}
|
|
5915
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
5916
|
+
const localVarHeaderParameter = {};
|
|
5917
|
+
const localVarQueryParameter = {};
|
|
5918
|
+
// authentication staffSession required
|
|
5919
|
+
// authentication adminAuth required
|
|
5920
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
5921
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3740
5922
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3741
5923
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3742
5924
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5925
|
+
localVarRequestOptions.data = serializeDataIfNeeded(planPreviewInputDTO, localVarRequestOptions, configuration);
|
|
3743
5926
|
return {
|
|
3744
5927
|
url: toPathString(localVarUrlObj),
|
|
3745
5928
|
options: localVarRequestOptions,
|
|
3746
5929
|
};
|
|
3747
5930
|
},
|
|
3748
5931
|
/**
|
|
3749
|
-
*
|
|
3750
|
-
* @summary
|
|
5932
|
+
* 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`
|
|
5933
|
+
* @summary Update a Plan
|
|
5934
|
+
* @param {string} id
|
|
5935
|
+
* @param {PlanUpdateInputDTO} [planUpdateInputDTO] PlanUpdateInputDTO
|
|
3751
5936
|
* @param {*} [options] Override http request option.
|
|
3752
5937
|
* @throws {RequiredError}
|
|
3753
5938
|
*/
|
|
3754
|
-
|
|
3755
|
-
|
|
5939
|
+
staffPlanControllerUpdate: async (id, planUpdateInputDTO, options = {}) => {
|
|
5940
|
+
// verify required parameter 'id' is not null or undefined
|
|
5941
|
+
assertParamExists('staffPlanControllerUpdate', 'id', id);
|
|
5942
|
+
const localVarPath = `/staff/plans/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
3756
5943
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3757
5944
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3758
5945
|
let baseOptions;
|
|
3759
5946
|
if (configuration) {
|
|
3760
5947
|
baseOptions = configuration.baseOptions;
|
|
3761
5948
|
}
|
|
3762
|
-
const localVarRequestOptions = { method: '
|
|
5949
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
3763
5950
|
const localVarHeaderParameter = {};
|
|
3764
5951
|
const localVarQueryParameter = {};
|
|
5952
|
+
// authentication staffSession required
|
|
5953
|
+
// authentication adminAuth required
|
|
5954
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
5955
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3765
5956
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3766
5957
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3767
5958
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5959
|
+
localVarRequestOptions.data = serializeDataIfNeeded(planUpdateInputDTO, localVarRequestOptions, configuration);
|
|
3768
5960
|
return {
|
|
3769
5961
|
url: toPathString(localVarUrlObj),
|
|
3770
5962
|
options: localVarRequestOptions,
|
|
@@ -3773,144 +5965,447 @@ export const StaffAuthApiAxiosParamCreator = function (configuration) {
|
|
|
3773
5965
|
};
|
|
3774
5966
|
};
|
|
3775
5967
|
/**
|
|
3776
|
-
*
|
|
5968
|
+
* StaffPlanApi - functional programming interface
|
|
3777
5969
|
* @export
|
|
3778
5970
|
*/
|
|
3779
|
-
export const
|
|
3780
|
-
const localVarAxiosParamCreator =
|
|
5971
|
+
export const StaffPlanApiFp = function (configuration) {
|
|
5972
|
+
const localVarAxiosParamCreator = StaffPlanApiAxiosParamCreator(configuration);
|
|
3781
5973
|
return {
|
|
3782
5974
|
/**
|
|
3783
|
-
*
|
|
3784
|
-
* @summary
|
|
5975
|
+
* 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`
|
|
5976
|
+
* @summary Archive a Plan
|
|
5977
|
+
* @param {string} id
|
|
5978
|
+
* @param {PlanArchiveInputDTO} [planArchiveInputDTO] PlanArchiveInputDTO
|
|
3785
5979
|
* @param {*} [options] Override http request option.
|
|
3786
5980
|
* @throws {RequiredError}
|
|
3787
5981
|
*/
|
|
3788
|
-
async
|
|
3789
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5982
|
+
async staffPlanControllerArchive(id, planArchiveInputDTO, options) {
|
|
5983
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerArchive(id, planArchiveInputDTO, options);
|
|
3790
5984
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3791
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
5985
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerArchive']?.[localVarOperationServerIndex]?.url;
|
|
3792
5986
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3793
5987
|
},
|
|
3794
5988
|
/**
|
|
3795
|
-
*
|
|
3796
|
-
* @summary
|
|
5989
|
+
* Omitted limits take the Domain column defaults. Recorded with who, when and the reason.<br> OperationId: `StaffPlanControllerCreate`
|
|
5990
|
+
* @summary Create a Plan
|
|
5991
|
+
* @param {PlanCreateInputDTO} [planCreateInputDTO] PlanCreateInputDTO
|
|
3797
5992
|
* @param {*} [options] Override http request option.
|
|
3798
5993
|
* @throws {RequiredError}
|
|
3799
5994
|
*/
|
|
3800
|
-
async
|
|
3801
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5995
|
+
async staffPlanControllerCreate(planCreateInputDTO, options) {
|
|
5996
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerCreate(planCreateInputDTO, options);
|
|
3802
5997
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3803
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
5998
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerCreate']?.[localVarOperationServerIndex]?.url;
|
|
3804
5999
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3805
6000
|
},
|
|
3806
6001
|
/**
|
|
3807
|
-
*
|
|
3808
|
-
* @summary
|
|
6002
|
+
* Newest first, each with the Plan as it was after.<br> OperationId: `StaffPlanControllerHistory`
|
|
6003
|
+
* @summary Change history of a Plan
|
|
6004
|
+
* @param {string} id
|
|
3809
6005
|
* @param {*} [options] Override http request option.
|
|
3810
6006
|
* @throws {RequiredError}
|
|
3811
6007
|
*/
|
|
3812
|
-
async
|
|
3813
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
6008
|
+
async staffPlanControllerHistory(id, options) {
|
|
6009
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerHistory(id, options);
|
|
3814
6010
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3815
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
6011
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerHistory']?.[localVarOperationServerIndex]?.url;
|
|
6012
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6013
|
+
},
|
|
6014
|
+
/**
|
|
6015
|
+
* 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`
|
|
6016
|
+
* @summary Import Plans from the billing provider
|
|
6017
|
+
* @param {PlanImportInputDTO} [planImportInputDTO] PlanImportInputDTO
|
|
6018
|
+
* @param {*} [options] Override http request option.
|
|
6019
|
+
* @throws {RequiredError}
|
|
6020
|
+
*/
|
|
6021
|
+
async staffPlanControllerImport(planImportInputDTO, options) {
|
|
6022
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerImport(planImportInputDTO, options);
|
|
6023
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6024
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerImport']?.[localVarOperationServerIndex]?.url;
|
|
6025
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6026
|
+
},
|
|
6027
|
+
/**
|
|
6028
|
+
* True once an import has created any Plan, even if those Plans were later unlinked or archived.<br> OperationId: `StaffPlanControllerImportStatus`
|
|
6029
|
+
* @summary Whether the billing-provider import ran
|
|
6030
|
+
* @param {*} [options] Override http request option.
|
|
6031
|
+
* @throws {RequiredError}
|
|
6032
|
+
*/
|
|
6033
|
+
async staffPlanControllerImportStatus(options) {
|
|
6034
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerImportStatus(options);
|
|
6035
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6036
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerImportStatus']?.[localVarOperationServerIndex]?.url;
|
|
6037
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6038
|
+
},
|
|
6039
|
+
/**
|
|
6040
|
+
* 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`
|
|
6041
|
+
* @summary List Plans
|
|
6042
|
+
* @param {any} [includeArchived]
|
|
6043
|
+
* @param {*} [options] Override http request option.
|
|
6044
|
+
* @throws {RequiredError}
|
|
6045
|
+
*/
|
|
6046
|
+
async staffPlanControllerList(includeArchived, options) {
|
|
6047
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerList(includeArchived, options);
|
|
6048
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6049
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerList']?.[localVarOperationServerIndex]?.url;
|
|
6050
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6051
|
+
},
|
|
6052
|
+
/**
|
|
6053
|
+
* 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`
|
|
6054
|
+
* @summary The billing provider’s products
|
|
6055
|
+
* @param {*} [options] Override http request option.
|
|
6056
|
+
* @throws {RequiredError}
|
|
6057
|
+
*/
|
|
6058
|
+
async staffPlanControllerListStripeProducts(options) {
|
|
6059
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerListStripeProducts(options);
|
|
6060
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6061
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerListStripeProducts']?.[localVarOperationServerIndex]?.url;
|
|
6062
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6063
|
+
},
|
|
6064
|
+
/**
|
|
6065
|
+
* 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`
|
|
6066
|
+
* @summary Preview a Plan edit
|
|
6067
|
+
* @param {string} id
|
|
6068
|
+
* @param {PlanPreviewInputDTO} [planPreviewInputDTO] PlanPreviewInputDTO
|
|
6069
|
+
* @param {*} [options] Override http request option.
|
|
6070
|
+
* @throws {RequiredError}
|
|
6071
|
+
*/
|
|
6072
|
+
async staffPlanControllerPreview(id, planPreviewInputDTO, options) {
|
|
6073
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerPreview(id, planPreviewInputDTO, options);
|
|
6074
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6075
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerPreview']?.[localVarOperationServerIndex]?.url;
|
|
6076
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6077
|
+
},
|
|
6078
|
+
/**
|
|
6079
|
+
* 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`
|
|
6080
|
+
* @summary Update a Plan
|
|
6081
|
+
* @param {string} id
|
|
6082
|
+
* @param {PlanUpdateInputDTO} [planUpdateInputDTO] PlanUpdateInputDTO
|
|
6083
|
+
* @param {*} [options] Override http request option.
|
|
6084
|
+
* @throws {RequiredError}
|
|
6085
|
+
*/
|
|
6086
|
+
async staffPlanControllerUpdate(id, planUpdateInputDTO, options) {
|
|
6087
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerUpdate(id, planUpdateInputDTO, options);
|
|
6088
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6089
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerUpdate']?.[localVarOperationServerIndex]?.url;
|
|
3816
6090
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3817
6091
|
},
|
|
3818
6092
|
};
|
|
3819
6093
|
};
|
|
3820
6094
|
/**
|
|
3821
|
-
*
|
|
6095
|
+
* StaffPlanApi - factory interface
|
|
3822
6096
|
* @export
|
|
3823
6097
|
*/
|
|
3824
|
-
export const
|
|
3825
|
-
const localVarFp =
|
|
6098
|
+
export const StaffPlanApiFactory = function (configuration, basePath, axios) {
|
|
6099
|
+
const localVarFp = StaffPlanApiFp(configuration);
|
|
3826
6100
|
return {
|
|
3827
6101
|
/**
|
|
3828
|
-
*
|
|
3829
|
-
* @summary
|
|
6102
|
+
* 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`
|
|
6103
|
+
* @summary Archive a Plan
|
|
6104
|
+
* @param {string} id
|
|
6105
|
+
* @param {PlanArchiveInputDTO} [planArchiveInputDTO] PlanArchiveInputDTO
|
|
3830
6106
|
* @param {*} [options] Override http request option.
|
|
3831
6107
|
* @throws {RequiredError}
|
|
3832
6108
|
*/
|
|
3833
|
-
|
|
3834
|
-
return localVarFp
|
|
6109
|
+
staffPlanControllerArchive(id, planArchiveInputDTO, options) {
|
|
6110
|
+
return localVarFp
|
|
6111
|
+
.staffPlanControllerArchive(id, planArchiveInputDTO, options)
|
|
6112
|
+
.then((request) => request(axios, basePath));
|
|
3835
6113
|
},
|
|
3836
6114
|
/**
|
|
3837
|
-
*
|
|
3838
|
-
* @summary
|
|
6115
|
+
* Omitted limits take the Domain column defaults. Recorded with who, when and the reason.<br> OperationId: `StaffPlanControllerCreate`
|
|
6116
|
+
* @summary Create a Plan
|
|
6117
|
+
* @param {PlanCreateInputDTO} [planCreateInputDTO] PlanCreateInputDTO
|
|
3839
6118
|
* @param {*} [options] Override http request option.
|
|
3840
6119
|
* @throws {RequiredError}
|
|
3841
6120
|
*/
|
|
3842
|
-
|
|
3843
|
-
return localVarFp
|
|
6121
|
+
staffPlanControllerCreate(planCreateInputDTO, options) {
|
|
6122
|
+
return localVarFp
|
|
6123
|
+
.staffPlanControllerCreate(planCreateInputDTO, options)
|
|
6124
|
+
.then((request) => request(axios, basePath));
|
|
3844
6125
|
},
|
|
3845
6126
|
/**
|
|
3846
|
-
*
|
|
3847
|
-
* @summary
|
|
6127
|
+
* Newest first, each with the Plan as it was after.<br> OperationId: `StaffPlanControllerHistory`
|
|
6128
|
+
* @summary Change history of a Plan
|
|
6129
|
+
* @param {string} id
|
|
3848
6130
|
* @param {*} [options] Override http request option.
|
|
3849
6131
|
* @throws {RequiredError}
|
|
3850
6132
|
*/
|
|
3851
|
-
|
|
3852
|
-
return localVarFp.
|
|
6133
|
+
staffPlanControllerHistory(id, options) {
|
|
6134
|
+
return localVarFp.staffPlanControllerHistory(id, options).then((request) => request(axios, basePath));
|
|
6135
|
+
},
|
|
6136
|
+
/**
|
|
6137
|
+
* 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`
|
|
6138
|
+
* @summary Import Plans from the billing provider
|
|
6139
|
+
* @param {PlanImportInputDTO} [planImportInputDTO] PlanImportInputDTO
|
|
6140
|
+
* @param {*} [options] Override http request option.
|
|
6141
|
+
* @throws {RequiredError}
|
|
6142
|
+
*/
|
|
6143
|
+
staffPlanControllerImport(planImportInputDTO, options) {
|
|
6144
|
+
return localVarFp
|
|
6145
|
+
.staffPlanControllerImport(planImportInputDTO, options)
|
|
6146
|
+
.then((request) => request(axios, basePath));
|
|
6147
|
+
},
|
|
6148
|
+
/**
|
|
6149
|
+
* True once an import has created any Plan, even if those Plans were later unlinked or archived.<br> OperationId: `StaffPlanControllerImportStatus`
|
|
6150
|
+
* @summary Whether the billing-provider import ran
|
|
6151
|
+
* @param {*} [options] Override http request option.
|
|
6152
|
+
* @throws {RequiredError}
|
|
6153
|
+
*/
|
|
6154
|
+
staffPlanControllerImportStatus(options) {
|
|
6155
|
+
return localVarFp.staffPlanControllerImportStatus(options).then((request) => request(axios, basePath));
|
|
6156
|
+
},
|
|
6157
|
+
/**
|
|
6158
|
+
* 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`
|
|
6159
|
+
* @summary List Plans
|
|
6160
|
+
* @param {any} [includeArchived]
|
|
6161
|
+
* @param {*} [options] Override http request option.
|
|
6162
|
+
* @throws {RequiredError}
|
|
6163
|
+
*/
|
|
6164
|
+
staffPlanControllerList(includeArchived, options) {
|
|
6165
|
+
return localVarFp.staffPlanControllerList(includeArchived, options).then((request) => request(axios, basePath));
|
|
6166
|
+
},
|
|
6167
|
+
/**
|
|
6168
|
+
* 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`
|
|
6169
|
+
* @summary The billing provider’s products
|
|
6170
|
+
* @param {*} [options] Override http request option.
|
|
6171
|
+
* @throws {RequiredError}
|
|
6172
|
+
*/
|
|
6173
|
+
staffPlanControllerListStripeProducts(options) {
|
|
6174
|
+
return localVarFp.staffPlanControllerListStripeProducts(options).then((request) => request(axios, basePath));
|
|
6175
|
+
},
|
|
6176
|
+
/**
|
|
6177
|
+
* 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`
|
|
6178
|
+
* @summary Preview a Plan edit
|
|
6179
|
+
* @param {string} id
|
|
6180
|
+
* @param {PlanPreviewInputDTO} [planPreviewInputDTO] PlanPreviewInputDTO
|
|
6181
|
+
* @param {*} [options] Override http request option.
|
|
6182
|
+
* @throws {RequiredError}
|
|
6183
|
+
*/
|
|
6184
|
+
staffPlanControllerPreview(id, planPreviewInputDTO, options) {
|
|
6185
|
+
return localVarFp
|
|
6186
|
+
.staffPlanControllerPreview(id, planPreviewInputDTO, options)
|
|
6187
|
+
.then((request) => request(axios, basePath));
|
|
6188
|
+
},
|
|
6189
|
+
/**
|
|
6190
|
+
* 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`
|
|
6191
|
+
* @summary Update a Plan
|
|
6192
|
+
* @param {string} id
|
|
6193
|
+
* @param {PlanUpdateInputDTO} [planUpdateInputDTO] PlanUpdateInputDTO
|
|
6194
|
+
* @param {*} [options] Override http request option.
|
|
6195
|
+
* @throws {RequiredError}
|
|
6196
|
+
*/
|
|
6197
|
+
staffPlanControllerUpdate(id, planUpdateInputDTO, options) {
|
|
6198
|
+
return localVarFp
|
|
6199
|
+
.staffPlanControllerUpdate(id, planUpdateInputDTO, options)
|
|
6200
|
+
.then((request) => request(axios, basePath));
|
|
3853
6201
|
},
|
|
3854
6202
|
};
|
|
3855
6203
|
};
|
|
3856
6204
|
/**
|
|
3857
|
-
*
|
|
6205
|
+
* StaffPlanApi - object-oriented interface
|
|
3858
6206
|
* @export
|
|
3859
|
-
* @class
|
|
6207
|
+
* @class StaffPlanApi
|
|
3860
6208
|
* @extends {BaseAPI}
|
|
3861
6209
|
*/
|
|
3862
|
-
export class
|
|
6210
|
+
export class StaffPlanApi extends BaseAPI {
|
|
3863
6211
|
/**
|
|
3864
|
-
*
|
|
3865
|
-
* @summary
|
|
6212
|
+
* 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`
|
|
6213
|
+
* @summary Archive a Plan
|
|
6214
|
+
* @param {string} id
|
|
6215
|
+
* @param {PlanArchiveInputDTO} [planArchiveInputDTO] PlanArchiveInputDTO
|
|
3866
6216
|
* @param {*} [options] Override http request option.
|
|
3867
6217
|
* @throws {RequiredError}
|
|
3868
|
-
* @memberof
|
|
6218
|
+
* @memberof StaffPlanApi
|
|
3869
6219
|
*/
|
|
3870
|
-
|
|
3871
|
-
return
|
|
3872
|
-
.
|
|
6220
|
+
staffPlanControllerArchive(id, planArchiveInputDTO, options) {
|
|
6221
|
+
return StaffPlanApiFp(this.configuration)
|
|
6222
|
+
.staffPlanControllerArchive(id, planArchiveInputDTO, options)
|
|
3873
6223
|
.then((request) => request(this.axios, this.basePath));
|
|
3874
6224
|
}
|
|
3875
6225
|
/**
|
|
3876
|
-
*
|
|
3877
|
-
* @summary
|
|
6226
|
+
* Omitted limits take the Domain column defaults. Recorded with who, when and the reason.<br> OperationId: `StaffPlanControllerCreate`
|
|
6227
|
+
* @summary Create a Plan
|
|
6228
|
+
* @param {PlanCreateInputDTO} [planCreateInputDTO] PlanCreateInputDTO
|
|
3878
6229
|
* @param {*} [options] Override http request option.
|
|
3879
6230
|
* @throws {RequiredError}
|
|
3880
|
-
* @memberof
|
|
6231
|
+
* @memberof StaffPlanApi
|
|
3881
6232
|
*/
|
|
3882
|
-
|
|
3883
|
-
return
|
|
3884
|
-
.
|
|
6233
|
+
staffPlanControllerCreate(planCreateInputDTO, options) {
|
|
6234
|
+
return StaffPlanApiFp(this.configuration)
|
|
6235
|
+
.staffPlanControllerCreate(planCreateInputDTO, options)
|
|
3885
6236
|
.then((request) => request(this.axios, this.basePath));
|
|
3886
6237
|
}
|
|
3887
6238
|
/**
|
|
3888
|
-
*
|
|
3889
|
-
* @summary
|
|
6239
|
+
* Newest first, each with the Plan as it was after.<br> OperationId: `StaffPlanControllerHistory`
|
|
6240
|
+
* @summary Change history of a Plan
|
|
6241
|
+
* @param {string} id
|
|
3890
6242
|
* @param {*} [options] Override http request option.
|
|
3891
6243
|
* @throws {RequiredError}
|
|
3892
|
-
* @memberof
|
|
6244
|
+
* @memberof StaffPlanApi
|
|
3893
6245
|
*/
|
|
3894
|
-
|
|
3895
|
-
return
|
|
3896
|
-
.
|
|
6246
|
+
staffPlanControllerHistory(id, options) {
|
|
6247
|
+
return StaffPlanApiFp(this.configuration)
|
|
6248
|
+
.staffPlanControllerHistory(id, options)
|
|
6249
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6250
|
+
}
|
|
6251
|
+
/**
|
|
6252
|
+
* 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`
|
|
6253
|
+
* @summary Import Plans from the billing provider
|
|
6254
|
+
* @param {PlanImportInputDTO} [planImportInputDTO] PlanImportInputDTO
|
|
6255
|
+
* @param {*} [options] Override http request option.
|
|
6256
|
+
* @throws {RequiredError}
|
|
6257
|
+
* @memberof StaffPlanApi
|
|
6258
|
+
*/
|
|
6259
|
+
staffPlanControllerImport(planImportInputDTO, options) {
|
|
6260
|
+
return StaffPlanApiFp(this.configuration)
|
|
6261
|
+
.staffPlanControllerImport(planImportInputDTO, options)
|
|
6262
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6263
|
+
}
|
|
6264
|
+
/**
|
|
6265
|
+
* True once an import has created any Plan, even if those Plans were later unlinked or archived.<br> OperationId: `StaffPlanControllerImportStatus`
|
|
6266
|
+
* @summary Whether the billing-provider import ran
|
|
6267
|
+
* @param {*} [options] Override http request option.
|
|
6268
|
+
* @throws {RequiredError}
|
|
6269
|
+
* @memberof StaffPlanApi
|
|
6270
|
+
*/
|
|
6271
|
+
staffPlanControllerImportStatus(options) {
|
|
6272
|
+
return StaffPlanApiFp(this.configuration)
|
|
6273
|
+
.staffPlanControllerImportStatus(options)
|
|
6274
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6275
|
+
}
|
|
6276
|
+
/**
|
|
6277
|
+
* 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`
|
|
6278
|
+
* @summary List Plans
|
|
6279
|
+
* @param {any} [includeArchived]
|
|
6280
|
+
* @param {*} [options] Override http request option.
|
|
6281
|
+
* @throws {RequiredError}
|
|
6282
|
+
* @memberof StaffPlanApi
|
|
6283
|
+
*/
|
|
6284
|
+
staffPlanControllerList(includeArchived, options) {
|
|
6285
|
+
return StaffPlanApiFp(this.configuration)
|
|
6286
|
+
.staffPlanControllerList(includeArchived, options)
|
|
6287
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6288
|
+
}
|
|
6289
|
+
/**
|
|
6290
|
+
* 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`
|
|
6291
|
+
* @summary The billing provider’s products
|
|
6292
|
+
* @param {*} [options] Override http request option.
|
|
6293
|
+
* @throws {RequiredError}
|
|
6294
|
+
* @memberof StaffPlanApi
|
|
6295
|
+
*/
|
|
6296
|
+
staffPlanControllerListStripeProducts(options) {
|
|
6297
|
+
return StaffPlanApiFp(this.configuration)
|
|
6298
|
+
.staffPlanControllerListStripeProducts(options)
|
|
6299
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6300
|
+
}
|
|
6301
|
+
/**
|
|
6302
|
+
* 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`
|
|
6303
|
+
* @summary Preview a Plan edit
|
|
6304
|
+
* @param {string} id
|
|
6305
|
+
* @param {PlanPreviewInputDTO} [planPreviewInputDTO] PlanPreviewInputDTO
|
|
6306
|
+
* @param {*} [options] Override http request option.
|
|
6307
|
+
* @throws {RequiredError}
|
|
6308
|
+
* @memberof StaffPlanApi
|
|
6309
|
+
*/
|
|
6310
|
+
staffPlanControllerPreview(id, planPreviewInputDTO, options) {
|
|
6311
|
+
return StaffPlanApiFp(this.configuration)
|
|
6312
|
+
.staffPlanControllerPreview(id, planPreviewInputDTO, options)
|
|
6313
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6314
|
+
}
|
|
6315
|
+
/**
|
|
6316
|
+
* 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`
|
|
6317
|
+
* @summary Update a Plan
|
|
6318
|
+
* @param {string} id
|
|
6319
|
+
* @param {PlanUpdateInputDTO} [planUpdateInputDTO] PlanUpdateInputDTO
|
|
6320
|
+
* @param {*} [options] Override http request option.
|
|
6321
|
+
* @throws {RequiredError}
|
|
6322
|
+
* @memberof StaffPlanApi
|
|
6323
|
+
*/
|
|
6324
|
+
staffPlanControllerUpdate(id, planUpdateInputDTO, options) {
|
|
6325
|
+
return StaffPlanApiFp(this.configuration)
|
|
6326
|
+
.staffPlanControllerUpdate(id, planUpdateInputDTO, options)
|
|
3897
6327
|
.then((request) => request(this.axios, this.basePath));
|
|
3898
6328
|
}
|
|
3899
6329
|
}
|
|
3900
6330
|
/**
|
|
3901
|
-
*
|
|
6331
|
+
* StaffTakaroAiApi - axios parameter creator
|
|
3902
6332
|
* @export
|
|
3903
6333
|
*/
|
|
3904
|
-
export const
|
|
6334
|
+
export const StaffTakaroAiApiAxiosParamCreator = function (configuration) {
|
|
3905
6335
|
return {
|
|
3906
6336
|
/**
|
|
3907
|
-
*
|
|
3908
|
-
* @summary
|
|
6337
|
+
* Staff only. The configured default override applies again. An expired override can be cleared.<br> OperationId: `StaffTakaroAiControllerClearDomainOverride`
|
|
6338
|
+
* @summary Clear the Takaro AI override of a Domain
|
|
6339
|
+
* @param {string} id
|
|
6340
|
+
* @param {TakaroAiOverrideClearInputDTO} [takaroAiOverrideClearInputDTO] TakaroAiOverrideClearInputDTO
|
|
6341
|
+
* @param {*} [options] Override http request option.
|
|
6342
|
+
* @throws {RequiredError}
|
|
6343
|
+
*/
|
|
6344
|
+
staffTakaroAiControllerClearDomainOverride: async (id, takaroAiOverrideClearInputDTO, options = {}) => {
|
|
6345
|
+
// verify required parameter 'id' is not null or undefined
|
|
6346
|
+
assertParamExists('staffTakaroAiControllerClearDomainOverride', 'id', id);
|
|
6347
|
+
const localVarPath = `/staff/takaro-ai/domain/{id}/override`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
6348
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6349
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6350
|
+
let baseOptions;
|
|
6351
|
+
if (configuration) {
|
|
6352
|
+
baseOptions = configuration.baseOptions;
|
|
6353
|
+
}
|
|
6354
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
6355
|
+
const localVarHeaderParameter = {};
|
|
6356
|
+
const localVarQueryParameter = {};
|
|
6357
|
+
// authentication staffSession required
|
|
6358
|
+
// authentication adminAuth required
|
|
6359
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
6360
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6361
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6362
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6363
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6364
|
+
localVarRequestOptions.data = serializeDataIfNeeded(takaroAiOverrideClearInputDTO, localVarRequestOptions, configuration);
|
|
6365
|
+
return {
|
|
6366
|
+
url: toPathString(localVarUrlObj),
|
|
6367
|
+
options: localVarRequestOptions,
|
|
6368
|
+
};
|
|
6369
|
+
},
|
|
6370
|
+
/**
|
|
6371
|
+
* Staff only. Amounts are integer microdollars: Plan base, the effective monthly allowance, usage and total spend, plus the override and its change history.<br> OperationId: `StaffTakaroAiControllerGetDomain`
|
|
6372
|
+
* @summary Takaro AI allowance, override and spend of a Domain
|
|
6373
|
+
* @param {string} id
|
|
6374
|
+
* @param {*} [options] Override http request option.
|
|
6375
|
+
* @throws {RequiredError}
|
|
6376
|
+
*/
|
|
6377
|
+
staffTakaroAiControllerGetDomain: async (id, options = {}) => {
|
|
6378
|
+
// verify required parameter 'id' is not null or undefined
|
|
6379
|
+
assertParamExists('staffTakaroAiControllerGetDomain', 'id', id);
|
|
6380
|
+
const localVarPath = `/staff/takaro-ai/domain/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
6381
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6382
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6383
|
+
let baseOptions;
|
|
6384
|
+
if (configuration) {
|
|
6385
|
+
baseOptions = configuration.baseOptions;
|
|
6386
|
+
}
|
|
6387
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
6388
|
+
const localVarHeaderParameter = {};
|
|
6389
|
+
const localVarQueryParameter = {};
|
|
6390
|
+
// authentication staffSession required
|
|
6391
|
+
// authentication adminAuth required
|
|
6392
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
6393
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6394
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6395
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6396
|
+
return {
|
|
6397
|
+
url: toPathString(localVarUrlObj),
|
|
6398
|
+
options: localVarRequestOptions,
|
|
6399
|
+
};
|
|
6400
|
+
},
|
|
6401
|
+
/**
|
|
6402
|
+
* Staff only. Amounts are integer microdollars: platform spend this month, today and in the spend alert window, the top Domains by spend, the global multiplier and its history, and the spend alerts.<br> OperationId: `StaffTakaroAiControllerGetPlatform`
|
|
6403
|
+
* @summary Takaro AI platform spend and global multiplier
|
|
3909
6404
|
* @param {*} [options] Override http request option.
|
|
3910
6405
|
* @throws {RequiredError}
|
|
3911
6406
|
*/
|
|
3912
|
-
|
|
3913
|
-
const localVarPath = `/staff/
|
|
6407
|
+
staffTakaroAiControllerGetPlatform: async (options = {}) => {
|
|
6408
|
+
const localVarPath = `/staff/takaro-ai`;
|
|
3914
6409
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3915
6410
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3916
6411
|
let baseOptions;
|
|
@@ -3931,96 +6426,100 @@ export const StaffMeApiAxiosParamCreator = function (configuration) {
|
|
|
3931
6426
|
options: localVarRequestOptions,
|
|
3932
6427
|
};
|
|
3933
6428
|
},
|
|
3934
|
-
};
|
|
3935
|
-
};
|
|
3936
|
-
/**
|
|
3937
|
-
* StaffMeApi - functional programming interface
|
|
3938
|
-
* @export
|
|
3939
|
-
*/
|
|
3940
|
-
export const StaffMeApiFp = function (configuration) {
|
|
3941
|
-
const localVarAxiosParamCreator = StaffMeApiAxiosParamCreator(configuration);
|
|
3942
|
-
return {
|
|
3943
6429
|
/**
|
|
3944
|
-
*
|
|
3945
|
-
* @summary
|
|
6430
|
+
* Staff only. A factor on the Domain’s allowance, 0 to 1000, with an optional expiry in the future. 0 switches Takaro AI off for the Domain. The billing reconciler never writes it.<br> OperationId: `StaffTakaroAiControllerSetDomainOverride`
|
|
6431
|
+
* @summary Set the Takaro AI override of a Domain
|
|
6432
|
+
* @param {string} id
|
|
6433
|
+
* @param {TakaroAiDomainOverrideInputDTO} [takaroAiDomainOverrideInputDTO] TakaroAiDomainOverrideInputDTO
|
|
3946
6434
|
* @param {*} [options] Override http request option.
|
|
3947
6435
|
* @throws {RequiredError}
|
|
3948
6436
|
*/
|
|
3949
|
-
async
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
const
|
|
3953
|
-
|
|
6437
|
+
staffTakaroAiControllerSetDomainOverride: async (id, takaroAiDomainOverrideInputDTO, options = {}) => {
|
|
6438
|
+
// verify required parameter 'id' is not null or undefined
|
|
6439
|
+
assertParamExists('staffTakaroAiControllerSetDomainOverride', 'id', id);
|
|
6440
|
+
const localVarPath = `/staff/takaro-ai/domain/{id}/override`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
6441
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6442
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6443
|
+
let baseOptions;
|
|
6444
|
+
if (configuration) {
|
|
6445
|
+
baseOptions = configuration.baseOptions;
|
|
6446
|
+
}
|
|
6447
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
6448
|
+
const localVarHeaderParameter = {};
|
|
6449
|
+
const localVarQueryParameter = {};
|
|
6450
|
+
// authentication staffSession required
|
|
6451
|
+
// authentication adminAuth required
|
|
6452
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
6453
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6454
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6455
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6456
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6457
|
+
localVarRequestOptions.data = serializeDataIfNeeded(takaroAiDomainOverrideInputDTO, localVarRequestOptions, configuration);
|
|
6458
|
+
return {
|
|
6459
|
+
url: toPathString(localVarUrlObj),
|
|
6460
|
+
options: localVarRequestOptions,
|
|
6461
|
+
};
|
|
3954
6462
|
},
|
|
3955
|
-
};
|
|
3956
|
-
};
|
|
3957
|
-
/**
|
|
3958
|
-
* StaffMeApi - factory interface
|
|
3959
|
-
* @export
|
|
3960
|
-
*/
|
|
3961
|
-
export const StaffMeApiFactory = function (configuration, basePath, axios) {
|
|
3962
|
-
const localVarFp = StaffMeApiFp(configuration);
|
|
3963
|
-
return {
|
|
3964
6463
|
/**
|
|
3965
|
-
*
|
|
3966
|
-
* @summary
|
|
6464
|
+
* Staff only. A factor on every Domain’s monthly allowance, 0 to 10. Applies from the next usage evaluation; needs no restart. Recorded with who, when and the reason.<br> OperationId: `StaffTakaroAiControllerSetGlobalMultiplier`
|
|
6465
|
+
* @summary Set the Takaro AI global multiplier
|
|
6466
|
+
* @param {TakaroAiGlobalMultiplierInputDTO} [takaroAiGlobalMultiplierInputDTO] TakaroAiGlobalMultiplierInputDTO
|
|
3967
6467
|
* @param {*} [options] Override http request option.
|
|
3968
6468
|
* @throws {RequiredError}
|
|
3969
6469
|
*/
|
|
3970
|
-
|
|
3971
|
-
|
|
6470
|
+
staffTakaroAiControllerSetGlobalMultiplier: async (takaroAiGlobalMultiplierInputDTO, options = {}) => {
|
|
6471
|
+
const localVarPath = `/staff/takaro-ai/global-multiplier`;
|
|
6472
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6473
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6474
|
+
let baseOptions;
|
|
6475
|
+
if (configuration) {
|
|
6476
|
+
baseOptions = configuration.baseOptions;
|
|
6477
|
+
}
|
|
6478
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
6479
|
+
const localVarHeaderParameter = {};
|
|
6480
|
+
const localVarQueryParameter = {};
|
|
6481
|
+
// authentication staffSession required
|
|
6482
|
+
// authentication adminAuth required
|
|
6483
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
6484
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6485
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6486
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6487
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6488
|
+
localVarRequestOptions.data = serializeDataIfNeeded(takaroAiGlobalMultiplierInputDTO, localVarRequestOptions, configuration);
|
|
6489
|
+
return {
|
|
6490
|
+
url: toPathString(localVarUrlObj),
|
|
6491
|
+
options: localVarRequestOptions,
|
|
6492
|
+
};
|
|
3972
6493
|
},
|
|
3973
|
-
};
|
|
3974
|
-
};
|
|
3975
|
-
/**
|
|
3976
|
-
* StaffMeApi - object-oriented interface
|
|
3977
|
-
* @export
|
|
3978
|
-
* @class StaffMeApi
|
|
3979
|
-
* @extends {BaseAPI}
|
|
3980
|
-
*/
|
|
3981
|
-
export class StaffMeApi extends BaseAPI {
|
|
3982
|
-
/**
|
|
3983
|
-
* 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`
|
|
3984
|
-
* @summary Who this Staff session belongs to
|
|
3985
|
-
* @param {*} [options] Override http request option.
|
|
3986
|
-
* @throws {RequiredError}
|
|
3987
|
-
* @memberof StaffMeApi
|
|
3988
|
-
*/
|
|
3989
|
-
staffMeControllerMe(options) {
|
|
3990
|
-
return StaffMeApiFp(this.configuration)
|
|
3991
|
-
.staffMeControllerMe(options)
|
|
3992
|
-
.then((request) => request(this.axios, this.basePath));
|
|
3993
|
-
}
|
|
3994
|
-
}
|
|
3995
|
-
/**
|
|
3996
|
-
* StaffPlanApi - axios parameter creator
|
|
3997
|
-
* @export
|
|
3998
|
-
*/
|
|
3999
|
-
export const StaffPlanApiAxiosParamCreator = function (configuration) {
|
|
4000
|
-
return {
|
|
4001
6494
|
/**
|
|
4002
|
-
*
|
|
4003
|
-
* @summary
|
|
6495
|
+
* Staff only. What the Domain may spend in CSMM Migration Threads over its lifetime, in integer microdollars. Those Threads do not count against the allowance, so this cap is their only bound. `null` goes back to the configured default. Applies from the next message.<br> OperationId: `StaffTakaroAiControllerSetMigrationCap`
|
|
6496
|
+
* @summary Set the CSMM Migration cap of a Domain
|
|
6497
|
+
* @param {string} id
|
|
6498
|
+
* @param {TakaroAiMigrationCapInputDTO} [takaroAiMigrationCapInputDTO] TakaroAiMigrationCapInputDTO
|
|
4004
6499
|
* @param {*} [options] Override http request option.
|
|
4005
6500
|
* @throws {RequiredError}
|
|
4006
6501
|
*/
|
|
4007
|
-
|
|
4008
|
-
|
|
6502
|
+
staffTakaroAiControllerSetMigrationCap: async (id, takaroAiMigrationCapInputDTO, options = {}) => {
|
|
6503
|
+
// verify required parameter 'id' is not null or undefined
|
|
6504
|
+
assertParamExists('staffTakaroAiControllerSetMigrationCap', 'id', id);
|
|
6505
|
+
const localVarPath = `/staff/takaro-ai/domain/{id}/migration-cap`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
4009
6506
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4010
6507
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4011
6508
|
let baseOptions;
|
|
4012
6509
|
if (configuration) {
|
|
4013
6510
|
baseOptions = configuration.baseOptions;
|
|
4014
6511
|
}
|
|
4015
|
-
const localVarRequestOptions = { method: '
|
|
6512
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
4016
6513
|
const localVarHeaderParameter = {};
|
|
4017
6514
|
const localVarQueryParameter = {};
|
|
4018
6515
|
// authentication staffSession required
|
|
4019
6516
|
// authentication adminAuth required
|
|
4020
6517
|
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
6518
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4021
6519
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4022
6520
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4023
6521
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6522
|
+
localVarRequestOptions.data = serializeDataIfNeeded(takaroAiMigrationCapInputDTO, localVarRequestOptions, configuration);
|
|
4024
6523
|
return {
|
|
4025
6524
|
url: toPathString(localVarUrlObj),
|
|
4026
6525
|
options: localVarRequestOptions,
|
|
@@ -4029,61 +6528,260 @@ export const StaffPlanApiAxiosParamCreator = function (configuration) {
|
|
|
4029
6528
|
};
|
|
4030
6529
|
};
|
|
4031
6530
|
/**
|
|
4032
|
-
*
|
|
6531
|
+
* StaffTakaroAiApi - functional programming interface
|
|
4033
6532
|
* @export
|
|
4034
6533
|
*/
|
|
4035
|
-
export const
|
|
4036
|
-
const localVarAxiosParamCreator =
|
|
6534
|
+
export const StaffTakaroAiApiFp = function (configuration) {
|
|
6535
|
+
const localVarAxiosParamCreator = StaffTakaroAiApiAxiosParamCreator(configuration);
|
|
4037
6536
|
return {
|
|
4038
6537
|
/**
|
|
4039
|
-
*
|
|
4040
|
-
* @summary
|
|
6538
|
+
* Staff only. The configured default override applies again. An expired override can be cleared.<br> OperationId: `StaffTakaroAiControllerClearDomainOverride`
|
|
6539
|
+
* @summary Clear the Takaro AI override of a Domain
|
|
6540
|
+
* @param {string} id
|
|
6541
|
+
* @param {TakaroAiOverrideClearInputDTO} [takaroAiOverrideClearInputDTO] TakaroAiOverrideClearInputDTO
|
|
4041
6542
|
* @param {*} [options] Override http request option.
|
|
4042
6543
|
* @throws {RequiredError}
|
|
4043
6544
|
*/
|
|
4044
|
-
async
|
|
4045
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
6545
|
+
async staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options) {
|
|
6546
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options);
|
|
4046
6547
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4047
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
6548
|
+
const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerClearDomainOverride']?.[localVarOperationServerIndex]?.url;
|
|
6549
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6550
|
+
},
|
|
6551
|
+
/**
|
|
6552
|
+
* Staff only. Amounts are integer microdollars: Plan base, the effective monthly allowance, usage and total spend, plus the override and its change history.<br> OperationId: `StaffTakaroAiControllerGetDomain`
|
|
6553
|
+
* @summary Takaro AI allowance, override and spend of a Domain
|
|
6554
|
+
* @param {string} id
|
|
6555
|
+
* @param {*} [options] Override http request option.
|
|
6556
|
+
* @throws {RequiredError}
|
|
6557
|
+
*/
|
|
6558
|
+
async staffTakaroAiControllerGetDomain(id, options) {
|
|
6559
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerGetDomain(id, options);
|
|
6560
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6561
|
+
const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerGetDomain']?.[localVarOperationServerIndex]?.url;
|
|
6562
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6563
|
+
},
|
|
6564
|
+
/**
|
|
6565
|
+
* Staff only. Amounts are integer microdollars: platform spend this month, today and in the spend alert window, the top Domains by spend, the global multiplier and its history, and the spend alerts.<br> OperationId: `StaffTakaroAiControllerGetPlatform`
|
|
6566
|
+
* @summary Takaro AI platform spend and global multiplier
|
|
6567
|
+
* @param {*} [options] Override http request option.
|
|
6568
|
+
* @throws {RequiredError}
|
|
6569
|
+
*/
|
|
6570
|
+
async staffTakaroAiControllerGetPlatform(options) {
|
|
6571
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerGetPlatform(options);
|
|
6572
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6573
|
+
const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerGetPlatform']?.[localVarOperationServerIndex]?.url;
|
|
6574
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6575
|
+
},
|
|
6576
|
+
/**
|
|
6577
|
+
* Staff only. A factor on the Domain’s allowance, 0 to 1000, with an optional expiry in the future. 0 switches Takaro AI off for the Domain. The billing reconciler never writes it.<br> OperationId: `StaffTakaroAiControllerSetDomainOverride`
|
|
6578
|
+
* @summary Set the Takaro AI override of a Domain
|
|
6579
|
+
* @param {string} id
|
|
6580
|
+
* @param {TakaroAiDomainOverrideInputDTO} [takaroAiDomainOverrideInputDTO] TakaroAiDomainOverrideInputDTO
|
|
6581
|
+
* @param {*} [options] Override http request option.
|
|
6582
|
+
* @throws {RequiredError}
|
|
6583
|
+
*/
|
|
6584
|
+
async staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options) {
|
|
6585
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options);
|
|
6586
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6587
|
+
const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerSetDomainOverride']?.[localVarOperationServerIndex]
|
|
6588
|
+
?.url;
|
|
6589
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6590
|
+
},
|
|
6591
|
+
/**
|
|
6592
|
+
* Staff only. A factor on every Domain’s monthly allowance, 0 to 10. Applies from the next usage evaluation; needs no restart. Recorded with who, when and the reason.<br> OperationId: `StaffTakaroAiControllerSetGlobalMultiplier`
|
|
6593
|
+
* @summary Set the Takaro AI global multiplier
|
|
6594
|
+
* @param {TakaroAiGlobalMultiplierInputDTO} [takaroAiGlobalMultiplierInputDTO] TakaroAiGlobalMultiplierInputDTO
|
|
6595
|
+
* @param {*} [options] Override http request option.
|
|
6596
|
+
* @throws {RequiredError}
|
|
6597
|
+
*/
|
|
6598
|
+
async staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options) {
|
|
6599
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options);
|
|
6600
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6601
|
+
const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerSetGlobalMultiplier']?.[localVarOperationServerIndex]?.url;
|
|
6602
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6603
|
+
},
|
|
6604
|
+
/**
|
|
6605
|
+
* Staff only. What the Domain may spend in CSMM Migration Threads over its lifetime, in integer microdollars. Those Threads do not count against the allowance, so this cap is their only bound. `null` goes back to the configured default. Applies from the next message.<br> OperationId: `StaffTakaroAiControllerSetMigrationCap`
|
|
6606
|
+
* @summary Set the CSMM Migration cap of a Domain
|
|
6607
|
+
* @param {string} id
|
|
6608
|
+
* @param {TakaroAiMigrationCapInputDTO} [takaroAiMigrationCapInputDTO] TakaroAiMigrationCapInputDTO
|
|
6609
|
+
* @param {*} [options] Override http request option.
|
|
6610
|
+
* @throws {RequiredError}
|
|
6611
|
+
*/
|
|
6612
|
+
async staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options) {
|
|
6613
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options);
|
|
6614
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6615
|
+
const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerSetMigrationCap']?.[localVarOperationServerIndex]
|
|
6616
|
+
?.url;
|
|
4048
6617
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4049
6618
|
},
|
|
4050
6619
|
};
|
|
4051
6620
|
};
|
|
4052
6621
|
/**
|
|
4053
|
-
*
|
|
6622
|
+
* StaffTakaroAiApi - factory interface
|
|
4054
6623
|
* @export
|
|
4055
6624
|
*/
|
|
4056
|
-
export const
|
|
4057
|
-
const localVarFp =
|
|
6625
|
+
export const StaffTakaroAiApiFactory = function (configuration, basePath, axios) {
|
|
6626
|
+
const localVarFp = StaffTakaroAiApiFp(configuration);
|
|
4058
6627
|
return {
|
|
4059
6628
|
/**
|
|
4060
|
-
*
|
|
4061
|
-
* @summary
|
|
6629
|
+
* Staff only. The configured default override applies again. An expired override can be cleared.<br> OperationId: `StaffTakaroAiControllerClearDomainOverride`
|
|
6630
|
+
* @summary Clear the Takaro AI override of a Domain
|
|
6631
|
+
* @param {string} id
|
|
6632
|
+
* @param {TakaroAiOverrideClearInputDTO} [takaroAiOverrideClearInputDTO] TakaroAiOverrideClearInputDTO
|
|
6633
|
+
* @param {*} [options] Override http request option.
|
|
6634
|
+
* @throws {RequiredError}
|
|
6635
|
+
*/
|
|
6636
|
+
staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options) {
|
|
6637
|
+
return localVarFp
|
|
6638
|
+
.staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options)
|
|
6639
|
+
.then((request) => request(axios, basePath));
|
|
6640
|
+
},
|
|
6641
|
+
/**
|
|
6642
|
+
* Staff only. Amounts are integer microdollars: Plan base, the effective monthly allowance, usage and total spend, plus the override and its change history.<br> OperationId: `StaffTakaroAiControllerGetDomain`
|
|
6643
|
+
* @summary Takaro AI allowance, override and spend of a Domain
|
|
6644
|
+
* @param {string} id
|
|
6645
|
+
* @param {*} [options] Override http request option.
|
|
6646
|
+
* @throws {RequiredError}
|
|
6647
|
+
*/
|
|
6648
|
+
staffTakaroAiControllerGetDomain(id, options) {
|
|
6649
|
+
return localVarFp.staffTakaroAiControllerGetDomain(id, options).then((request) => request(axios, basePath));
|
|
6650
|
+
},
|
|
6651
|
+
/**
|
|
6652
|
+
* Staff only. Amounts are integer microdollars: platform spend this month, today and in the spend alert window, the top Domains by spend, the global multiplier and its history, and the spend alerts.<br> OperationId: `StaffTakaroAiControllerGetPlatform`
|
|
6653
|
+
* @summary Takaro AI platform spend and global multiplier
|
|
6654
|
+
* @param {*} [options] Override http request option.
|
|
6655
|
+
* @throws {RequiredError}
|
|
6656
|
+
*/
|
|
6657
|
+
staffTakaroAiControllerGetPlatform(options) {
|
|
6658
|
+
return localVarFp.staffTakaroAiControllerGetPlatform(options).then((request) => request(axios, basePath));
|
|
6659
|
+
},
|
|
6660
|
+
/**
|
|
6661
|
+
* Staff only. A factor on the Domain’s allowance, 0 to 1000, with an optional expiry in the future. 0 switches Takaro AI off for the Domain. The billing reconciler never writes it.<br> OperationId: `StaffTakaroAiControllerSetDomainOverride`
|
|
6662
|
+
* @summary Set the Takaro AI override of a Domain
|
|
6663
|
+
* @param {string} id
|
|
6664
|
+
* @param {TakaroAiDomainOverrideInputDTO} [takaroAiDomainOverrideInputDTO] TakaroAiDomainOverrideInputDTO
|
|
6665
|
+
* @param {*} [options] Override http request option.
|
|
6666
|
+
* @throws {RequiredError}
|
|
6667
|
+
*/
|
|
6668
|
+
staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options) {
|
|
6669
|
+
return localVarFp
|
|
6670
|
+
.staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options)
|
|
6671
|
+
.then((request) => request(axios, basePath));
|
|
6672
|
+
},
|
|
6673
|
+
/**
|
|
6674
|
+
* Staff only. A factor on every Domain’s monthly allowance, 0 to 10. Applies from the next usage evaluation; needs no restart. Recorded with who, when and the reason.<br> OperationId: `StaffTakaroAiControllerSetGlobalMultiplier`
|
|
6675
|
+
* @summary Set the Takaro AI global multiplier
|
|
6676
|
+
* @param {TakaroAiGlobalMultiplierInputDTO} [takaroAiGlobalMultiplierInputDTO] TakaroAiGlobalMultiplierInputDTO
|
|
6677
|
+
* @param {*} [options] Override http request option.
|
|
6678
|
+
* @throws {RequiredError}
|
|
6679
|
+
*/
|
|
6680
|
+
staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options) {
|
|
6681
|
+
return localVarFp
|
|
6682
|
+
.staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options)
|
|
6683
|
+
.then((request) => request(axios, basePath));
|
|
6684
|
+
},
|
|
6685
|
+
/**
|
|
6686
|
+
* Staff only. What the Domain may spend in CSMM Migration Threads over its lifetime, in integer microdollars. Those Threads do not count against the allowance, so this cap is their only bound. `null` goes back to the configured default. Applies from the next message.<br> OperationId: `StaffTakaroAiControllerSetMigrationCap`
|
|
6687
|
+
* @summary Set the CSMM Migration cap of a Domain
|
|
6688
|
+
* @param {string} id
|
|
6689
|
+
* @param {TakaroAiMigrationCapInputDTO} [takaroAiMigrationCapInputDTO] TakaroAiMigrationCapInputDTO
|
|
4062
6690
|
* @param {*} [options] Override http request option.
|
|
4063
6691
|
* @throws {RequiredError}
|
|
4064
6692
|
*/
|
|
4065
|
-
|
|
4066
|
-
return localVarFp
|
|
6693
|
+
staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options) {
|
|
6694
|
+
return localVarFp
|
|
6695
|
+
.staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options)
|
|
6696
|
+
.then((request) => request(axios, basePath));
|
|
4067
6697
|
},
|
|
4068
6698
|
};
|
|
4069
6699
|
};
|
|
4070
6700
|
/**
|
|
4071
|
-
*
|
|
6701
|
+
* StaffTakaroAiApi - object-oriented interface
|
|
4072
6702
|
* @export
|
|
4073
|
-
* @class
|
|
6703
|
+
* @class StaffTakaroAiApi
|
|
4074
6704
|
* @extends {BaseAPI}
|
|
4075
6705
|
*/
|
|
4076
|
-
export class
|
|
6706
|
+
export class StaffTakaroAiApi extends BaseAPI {
|
|
4077
6707
|
/**
|
|
4078
|
-
*
|
|
4079
|
-
* @summary
|
|
6708
|
+
* Staff only. The configured default override applies again. An expired override can be cleared.<br> OperationId: `StaffTakaroAiControllerClearDomainOverride`
|
|
6709
|
+
* @summary Clear the Takaro AI override of a Domain
|
|
6710
|
+
* @param {string} id
|
|
6711
|
+
* @param {TakaroAiOverrideClearInputDTO} [takaroAiOverrideClearInputDTO] TakaroAiOverrideClearInputDTO
|
|
4080
6712
|
* @param {*} [options] Override http request option.
|
|
4081
6713
|
* @throws {RequiredError}
|
|
4082
|
-
* @memberof
|
|
6714
|
+
* @memberof StaffTakaroAiApi
|
|
4083
6715
|
*/
|
|
4084
|
-
|
|
4085
|
-
return
|
|
4086
|
-
.
|
|
6716
|
+
staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options) {
|
|
6717
|
+
return StaffTakaroAiApiFp(this.configuration)
|
|
6718
|
+
.staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options)
|
|
6719
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6720
|
+
}
|
|
6721
|
+
/**
|
|
6722
|
+
* Staff only. Amounts are integer microdollars: Plan base, the effective monthly allowance, usage and total spend, plus the override and its change history.<br> OperationId: `StaffTakaroAiControllerGetDomain`
|
|
6723
|
+
* @summary Takaro AI allowance, override and spend of a Domain
|
|
6724
|
+
* @param {string} id
|
|
6725
|
+
* @param {*} [options] Override http request option.
|
|
6726
|
+
* @throws {RequiredError}
|
|
6727
|
+
* @memberof StaffTakaroAiApi
|
|
6728
|
+
*/
|
|
6729
|
+
staffTakaroAiControllerGetDomain(id, options) {
|
|
6730
|
+
return StaffTakaroAiApiFp(this.configuration)
|
|
6731
|
+
.staffTakaroAiControllerGetDomain(id, options)
|
|
6732
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6733
|
+
}
|
|
6734
|
+
/**
|
|
6735
|
+
* Staff only. Amounts are integer microdollars: platform spend this month, today and in the spend alert window, the top Domains by spend, the global multiplier and its history, and the spend alerts.<br> OperationId: `StaffTakaroAiControllerGetPlatform`
|
|
6736
|
+
* @summary Takaro AI platform spend and global multiplier
|
|
6737
|
+
* @param {*} [options] Override http request option.
|
|
6738
|
+
* @throws {RequiredError}
|
|
6739
|
+
* @memberof StaffTakaroAiApi
|
|
6740
|
+
*/
|
|
6741
|
+
staffTakaroAiControllerGetPlatform(options) {
|
|
6742
|
+
return StaffTakaroAiApiFp(this.configuration)
|
|
6743
|
+
.staffTakaroAiControllerGetPlatform(options)
|
|
6744
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6745
|
+
}
|
|
6746
|
+
/**
|
|
6747
|
+
* Staff only. A factor on the Domain’s allowance, 0 to 1000, with an optional expiry in the future. 0 switches Takaro AI off for the Domain. The billing reconciler never writes it.<br> OperationId: `StaffTakaroAiControllerSetDomainOverride`
|
|
6748
|
+
* @summary Set the Takaro AI override of a Domain
|
|
6749
|
+
* @param {string} id
|
|
6750
|
+
* @param {TakaroAiDomainOverrideInputDTO} [takaroAiDomainOverrideInputDTO] TakaroAiDomainOverrideInputDTO
|
|
6751
|
+
* @param {*} [options] Override http request option.
|
|
6752
|
+
* @throws {RequiredError}
|
|
6753
|
+
* @memberof StaffTakaroAiApi
|
|
6754
|
+
*/
|
|
6755
|
+
staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options) {
|
|
6756
|
+
return StaffTakaroAiApiFp(this.configuration)
|
|
6757
|
+
.staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options)
|
|
6758
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6759
|
+
}
|
|
6760
|
+
/**
|
|
6761
|
+
* Staff only. A factor on every Domain’s monthly allowance, 0 to 10. Applies from the next usage evaluation; needs no restart. Recorded with who, when and the reason.<br> OperationId: `StaffTakaroAiControllerSetGlobalMultiplier`
|
|
6762
|
+
* @summary Set the Takaro AI global multiplier
|
|
6763
|
+
* @param {TakaroAiGlobalMultiplierInputDTO} [takaroAiGlobalMultiplierInputDTO] TakaroAiGlobalMultiplierInputDTO
|
|
6764
|
+
* @param {*} [options] Override http request option.
|
|
6765
|
+
* @throws {RequiredError}
|
|
6766
|
+
* @memberof StaffTakaroAiApi
|
|
6767
|
+
*/
|
|
6768
|
+
staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options) {
|
|
6769
|
+
return StaffTakaroAiApiFp(this.configuration)
|
|
6770
|
+
.staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options)
|
|
6771
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6772
|
+
}
|
|
6773
|
+
/**
|
|
6774
|
+
* Staff only. What the Domain may spend in CSMM Migration Threads over its lifetime, in integer microdollars. Those Threads do not count against the allowance, so this cap is their only bound. `null` goes back to the configured default. Applies from the next message.<br> OperationId: `StaffTakaroAiControllerSetMigrationCap`
|
|
6775
|
+
* @summary Set the CSMM Migration cap of a Domain
|
|
6776
|
+
* @param {string} id
|
|
6777
|
+
* @param {TakaroAiMigrationCapInputDTO} [takaroAiMigrationCapInputDTO] TakaroAiMigrationCapInputDTO
|
|
6778
|
+
* @param {*} [options] Override http request option.
|
|
6779
|
+
* @throws {RequiredError}
|
|
6780
|
+
* @memberof StaffTakaroAiApi
|
|
6781
|
+
*/
|
|
6782
|
+
staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options) {
|
|
6783
|
+
return StaffTakaroAiApiFp(this.configuration)
|
|
6784
|
+
.staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options)
|
|
4087
6785
|
.then((request) => request(this.axios, this.basePath));
|
|
4088
6786
|
}
|
|
4089
6787
|
}
|