@takaro/apiclient 0.0.0-dev.d4b9d99 → 0.0.0-dev.d604ff8
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 +8734 -1641
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/generated/api.js +4874 -1680
- package/dist/generated/api.js.map +1 -1
- package/dist/generated/base.d.ts.map +1 -1
- package/dist/generated/base.js.map +1 -1
- package/dist/generated/common.d.ts.map +1 -1
- package/dist/generated/common.js.map +1 -1
- package/dist/generated/configuration.d.ts.map +1 -1
- package/dist/generated/configuration.js.map +1 -1
- package/dist/generated-management/api.d.ts +10367 -5915
- package/dist/generated-management/api.d.ts.map +1 -1
- package/dist/generated-management/api.js +1499 -164
- package/dist/generated-management/api.js.map +1 -1
- package/dist/generated-management/base.d.ts.map +1 -1
- package/dist/generated-management/base.js.map +1 -1
- package/dist/generated-management/common.d.ts.map +1 -1
- package/dist/generated-management/common.js.map +1 -1
- package/dist/generated-management/configuration.d.ts.map +1 -1
- package/dist/generated-management/configuration.js.map +1 -1
- package/dist/lib/adminClient.d.ts +3 -1
- package/dist/lib/adminClient.d.ts.map +1 -1
- package/dist/lib/adminClient.js +7 -1
- package/dist/lib/adminClient.js.map +1 -1
- package/dist/lib/baseClient.d.ts.map +1 -1
- package/dist/lib/client.d.ts +4 -1
- package/dist/lib/client.d.ts.map +1 -1
- package/dist/lib/client.js +27 -11
- package/dist/lib/client.js.map +1 -1
- package/dist/lib/distributorClient.d.ts.map +1 -1
- package/dist/lib/staffClient.d.ts +3 -1
- package/dist/lib/staffClient.d.ts.map +1 -1
- package/dist/lib/staffClient.js +5 -1
- package/dist/lib/staffClient.js.map +1 -1
- package/dist/main.d.ts +3 -3
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/package.json +5 -4
|
@@ -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',
|
|
@@ -152,6 +170,7 @@ export const EventCreateDTOEventNameEnum = {
|
|
|
152
170
|
SettingsSet: 'settings-set',
|
|
153
171
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
154
172
|
PlayerNewNameDetected: 'player-new-name-detected',
|
|
173
|
+
PlayerIdentityConflict: 'player-identity-conflict',
|
|
155
174
|
ServerStatusChanged: 'server-status-changed',
|
|
156
175
|
ModuleCreated: 'module-created',
|
|
157
176
|
ModuleUpdated: 'module-updated',
|
|
@@ -166,14 +185,18 @@ export const EventCreateDTOEventNameEnum = {
|
|
|
166
185
|
ShopOrderStatusChanged: 'shop-order-status-changed',
|
|
167
186
|
ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
|
|
168
187
|
PlayerLinked: 'player-linked',
|
|
188
|
+
PlayerUnlinked: 'player-unlinked',
|
|
189
|
+
PlayerMerged: 'player-merged',
|
|
169
190
|
GameserverCreated: 'gameserver-created',
|
|
170
191
|
GameserverUpdated: 'gameserver-updated',
|
|
192
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
171
193
|
GameserverDeleted: 'gameserver-deleted',
|
|
172
194
|
PlayerBanned: 'player-banned',
|
|
173
195
|
PlayerUnbanned: 'player-unbanned',
|
|
174
196
|
PlayerDeleted: 'player-deleted',
|
|
175
197
|
ShopActionExecuted: 'shop-action-executed',
|
|
176
198
|
PlayerInventoryChanged: 'player-inventory-changed',
|
|
199
|
+
PlayerLevelChanged: 'player-level-changed',
|
|
177
200
|
EventRateLimited: 'event-rate-limited',
|
|
178
201
|
PlayerSyncSnapshot: 'player-sync-snapshot',
|
|
179
202
|
InviteLinkCreated: 'invite-link-created',
|
|
@@ -183,12 +206,27 @@ export const EventCreateDTOEventNameEnum = {
|
|
|
183
206
|
DomainCreated: 'domain-created',
|
|
184
207
|
DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
|
|
185
208
|
DomainPlanChanged: 'domain-plan-changed',
|
|
209
|
+
ConnectorMigrationStarted: 'connector-migration-started',
|
|
210
|
+
ConnectorMigrationCompleted: 'connector-migration-completed',
|
|
211
|
+
ConnectorMigrationCancelled: 'connector-migration-cancelled',
|
|
212
|
+
ConnectorMigrationReverted: 'connector-migration-reverted',
|
|
213
|
+
DiscordGuildEnabled: 'discord-guild-enabled',
|
|
214
|
+
ItemsGiven: 'items-given',
|
|
186
215
|
PlayerConnected: 'player-connected',
|
|
187
216
|
PlayerDisconnected: 'player-disconnected',
|
|
188
217
|
ChatMessage: 'chat-message',
|
|
189
218
|
PlayerDeath: 'player-death',
|
|
190
219
|
EntityKilled: 'entity-killed',
|
|
191
220
|
};
|
|
221
|
+
export const EventInventoryChangedCauseEnum = {
|
|
222
|
+
Pickup: 'pickup',
|
|
223
|
+
Drop: 'drop',
|
|
224
|
+
Craft: 'craft',
|
|
225
|
+
Loot: 'loot',
|
|
226
|
+
Trade: 'trade',
|
|
227
|
+
Death: 'death',
|
|
228
|
+
Other: 'other',
|
|
229
|
+
};
|
|
192
230
|
export const EventOutputDTOEventNameEnum = {
|
|
193
231
|
RoleAssigned: 'role-assigned',
|
|
194
232
|
RoleRemoved: 'role-removed',
|
|
@@ -205,6 +243,7 @@ export const EventOutputDTOEventNameEnum = {
|
|
|
205
243
|
SettingsSet: 'settings-set',
|
|
206
244
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
207
245
|
PlayerNewNameDetected: 'player-new-name-detected',
|
|
246
|
+
PlayerIdentityConflict: 'player-identity-conflict',
|
|
208
247
|
ServerStatusChanged: 'server-status-changed',
|
|
209
248
|
ModuleCreated: 'module-created',
|
|
210
249
|
ModuleUpdated: 'module-updated',
|
|
@@ -219,14 +258,18 @@ export const EventOutputDTOEventNameEnum = {
|
|
|
219
258
|
ShopOrderStatusChanged: 'shop-order-status-changed',
|
|
220
259
|
ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
|
|
221
260
|
PlayerLinked: 'player-linked',
|
|
261
|
+
PlayerUnlinked: 'player-unlinked',
|
|
262
|
+
PlayerMerged: 'player-merged',
|
|
222
263
|
GameserverCreated: 'gameserver-created',
|
|
223
264
|
GameserverUpdated: 'gameserver-updated',
|
|
265
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
224
266
|
GameserverDeleted: 'gameserver-deleted',
|
|
225
267
|
PlayerBanned: 'player-banned',
|
|
226
268
|
PlayerUnbanned: 'player-unbanned',
|
|
227
269
|
PlayerDeleted: 'player-deleted',
|
|
228
270
|
ShopActionExecuted: 'shop-action-executed',
|
|
229
271
|
PlayerInventoryChanged: 'player-inventory-changed',
|
|
272
|
+
PlayerLevelChanged: 'player-level-changed',
|
|
230
273
|
EventRateLimited: 'event-rate-limited',
|
|
231
274
|
PlayerSyncSnapshot: 'player-sync-snapshot',
|
|
232
275
|
InviteLinkCreated: 'invite-link-created',
|
|
@@ -236,6 +279,12 @@ export const EventOutputDTOEventNameEnum = {
|
|
|
236
279
|
DomainCreated: 'domain-created',
|
|
237
280
|
DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
|
|
238
281
|
DomainPlanChanged: 'domain-plan-changed',
|
|
282
|
+
ConnectorMigrationStarted: 'connector-migration-started',
|
|
283
|
+
ConnectorMigrationCompleted: 'connector-migration-completed',
|
|
284
|
+
ConnectorMigrationCancelled: 'connector-migration-cancelled',
|
|
285
|
+
ConnectorMigrationReverted: 'connector-migration-reverted',
|
|
286
|
+
DiscordGuildEnabled: 'discord-guild-enabled',
|
|
287
|
+
ItemsGiven: 'items-given',
|
|
239
288
|
PlayerConnected: 'player-connected',
|
|
240
289
|
PlayerDisconnected: 'player-disconnected',
|
|
241
290
|
ChatMessage: 'chat-message',
|
|
@@ -249,6 +298,7 @@ export const FixtureHistoryConflictDTOKindEnum = {
|
|
|
249
298
|
export const FixtureHistoryDeleteInputDTOStoreEnum = {
|
|
250
299
|
Analytics: 'analytics',
|
|
251
300
|
Postgres: 'postgres',
|
|
301
|
+
Tracking: 'tracking',
|
|
252
302
|
};
|
|
253
303
|
export const FixtureHistoryEventDTOEventNameEnum = {
|
|
254
304
|
PlayerConnected: 'player-connected',
|
|
@@ -267,18 +317,44 @@ export const FixtureHistoryOrderDTOStatusEnum = {
|
|
|
267
317
|
Completed: 'COMPLETED',
|
|
268
318
|
Canceled: 'CANCELED',
|
|
269
319
|
};
|
|
320
|
+
export const FixtureHistoryTrackingChangeDTOChangeTypeEnum = {
|
|
321
|
+
Added: 'added',
|
|
322
|
+
Removed: 'removed',
|
|
323
|
+
Changed: 'changed',
|
|
324
|
+
};
|
|
325
|
+
export const FixtureHistoryTrackingChangeDTOCauseEnum = {
|
|
326
|
+
Pickup: 'pickup',
|
|
327
|
+
Drop: 'drop',
|
|
328
|
+
Craft: 'craft',
|
|
329
|
+
Loot: 'loot',
|
|
330
|
+
Trade: 'trade',
|
|
331
|
+
Death: 'death',
|
|
332
|
+
Other: 'other',
|
|
333
|
+
};
|
|
270
334
|
export const GameServerCreateDTOTypeEnum = {
|
|
271
335
|
Sevendaystodie: 'SEVENDAYSTODIE',
|
|
272
336
|
Rust: 'RUST',
|
|
273
337
|
Generic: 'GENERIC',
|
|
274
338
|
Mock: 'MOCK',
|
|
275
339
|
};
|
|
340
|
+
export const GameServerCreateDTONameSourceEnum = {
|
|
341
|
+
Connector: 'connector',
|
|
342
|
+
Operator: 'operator',
|
|
343
|
+
};
|
|
344
|
+
export const GameServerIdentifyInputDTOProtocolVersionEnum = {
|
|
345
|
+
NUMBER_0: 0,
|
|
346
|
+
NUMBER_1: 1,
|
|
347
|
+
};
|
|
276
348
|
export const GameServerOutputDTOTypeEnum = {
|
|
277
349
|
Sevendaystodie: 'SEVENDAYSTODIE',
|
|
278
350
|
Rust: 'RUST',
|
|
279
351
|
Generic: 'GENERIC',
|
|
280
352
|
Mock: 'MOCK',
|
|
281
353
|
};
|
|
354
|
+
export const GameServerOutputDTONameSourceEnum = {
|
|
355
|
+
Connector: 'connector',
|
|
356
|
+
Operator: 'operator',
|
|
357
|
+
};
|
|
282
358
|
export const GameServerTypesOutputDTOTypeEnum = {
|
|
283
359
|
Sevendaystodie: 'SEVENDAYSTODIE',
|
|
284
360
|
Rust: 'RUST',
|
|
@@ -301,13 +377,18 @@ export const GetJobInputDTOTypeEnum = {
|
|
|
301
377
|
SyncItems: 'syncItems',
|
|
302
378
|
SyncEntities: 'syncEntities',
|
|
303
379
|
SyncBans: 'syncBans',
|
|
380
|
+
SyncLocations: 'syncLocations',
|
|
304
381
|
SyncMapImages: 'syncMapImages',
|
|
305
382
|
SyncMapUploads: 'syncMapUploads',
|
|
383
|
+
SyncGameIcons: 'syncGameIcons',
|
|
306
384
|
SyncSteam: 'syncSteam',
|
|
307
385
|
SyncDiscordRoles: 'syncDiscordRoles',
|
|
308
386
|
EmitRateLimitSummary: 'emitRateLimitSummary',
|
|
309
387
|
CleanRevokedApiKeys: 'cleanRevokedApiKeys',
|
|
310
388
|
CleanExecutionClaims: 'cleanExecutionClaims',
|
|
389
|
+
DeleteClickHouseEvents: 'deleteClickHouseEvents',
|
|
390
|
+
RepointClickHouseEvents: 'repointClickHouseEvents',
|
|
391
|
+
CleanConnectorMigrations: 'cleanConnectorMigrations',
|
|
311
392
|
};
|
|
312
393
|
export const HookCreateDTOEventTypeEnum = {
|
|
313
394
|
Log: 'log',
|
|
@@ -332,6 +413,7 @@ export const HookCreateDTOEventTypeEnum = {
|
|
|
332
413
|
SettingsSet: 'settings-set',
|
|
333
414
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
334
415
|
PlayerNewNameDetected: 'player-new-name-detected',
|
|
416
|
+
PlayerIdentityConflict: 'player-identity-conflict',
|
|
335
417
|
ServerStatusChanged: 'server-status-changed',
|
|
336
418
|
ModuleCreated: 'module-created',
|
|
337
419
|
ModuleUpdated: 'module-updated',
|
|
@@ -346,14 +428,18 @@ export const HookCreateDTOEventTypeEnum = {
|
|
|
346
428
|
ShopOrderStatusChanged: 'shop-order-status-changed',
|
|
347
429
|
ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
|
|
348
430
|
PlayerLinked: 'player-linked',
|
|
431
|
+
PlayerUnlinked: 'player-unlinked',
|
|
432
|
+
PlayerMerged: 'player-merged',
|
|
349
433
|
GameserverCreated: 'gameserver-created',
|
|
350
434
|
GameserverUpdated: 'gameserver-updated',
|
|
435
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
351
436
|
GameserverDeleted: 'gameserver-deleted',
|
|
352
437
|
PlayerBanned: 'player-banned',
|
|
353
438
|
PlayerUnbanned: 'player-unbanned',
|
|
354
439
|
PlayerDeleted: 'player-deleted',
|
|
355
440
|
ShopActionExecuted: 'shop-action-executed',
|
|
356
441
|
PlayerInventoryChanged: 'player-inventory-changed',
|
|
442
|
+
PlayerLevelChanged: 'player-level-changed',
|
|
357
443
|
EventRateLimited: 'event-rate-limited',
|
|
358
444
|
PlayerSyncSnapshot: 'player-sync-snapshot',
|
|
359
445
|
InviteLinkCreated: 'invite-link-created',
|
|
@@ -363,6 +449,12 @@ export const HookCreateDTOEventTypeEnum = {
|
|
|
363
449
|
DomainCreated: 'domain-created',
|
|
364
450
|
DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
|
|
365
451
|
DomainPlanChanged: 'domain-plan-changed',
|
|
452
|
+
ConnectorMigrationStarted: 'connector-migration-started',
|
|
453
|
+
ConnectorMigrationCompleted: 'connector-migration-completed',
|
|
454
|
+
ConnectorMigrationCancelled: 'connector-migration-cancelled',
|
|
455
|
+
ConnectorMigrationReverted: 'connector-migration-reverted',
|
|
456
|
+
DiscordGuildEnabled: 'discord-guild-enabled',
|
|
457
|
+
ItemsGiven: 'items-given',
|
|
366
458
|
};
|
|
367
459
|
export const HookOutputDTOEventTypeEnum = {
|
|
368
460
|
Log: 'log',
|
|
@@ -387,6 +479,7 @@ export const HookOutputDTOEventTypeEnum = {
|
|
|
387
479
|
SettingsSet: 'settings-set',
|
|
388
480
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
389
481
|
PlayerNewNameDetected: 'player-new-name-detected',
|
|
482
|
+
PlayerIdentityConflict: 'player-identity-conflict',
|
|
390
483
|
ServerStatusChanged: 'server-status-changed',
|
|
391
484
|
ModuleCreated: 'module-created',
|
|
392
485
|
ModuleUpdated: 'module-updated',
|
|
@@ -401,14 +494,18 @@ export const HookOutputDTOEventTypeEnum = {
|
|
|
401
494
|
ShopOrderStatusChanged: 'shop-order-status-changed',
|
|
402
495
|
ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
|
|
403
496
|
PlayerLinked: 'player-linked',
|
|
497
|
+
PlayerUnlinked: 'player-unlinked',
|
|
498
|
+
PlayerMerged: 'player-merged',
|
|
404
499
|
GameserverCreated: 'gameserver-created',
|
|
405
500
|
GameserverUpdated: 'gameserver-updated',
|
|
501
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
406
502
|
GameserverDeleted: 'gameserver-deleted',
|
|
407
503
|
PlayerBanned: 'player-banned',
|
|
408
504
|
PlayerUnbanned: 'player-unbanned',
|
|
409
505
|
PlayerDeleted: 'player-deleted',
|
|
410
506
|
ShopActionExecuted: 'shop-action-executed',
|
|
411
507
|
PlayerInventoryChanged: 'player-inventory-changed',
|
|
508
|
+
PlayerLevelChanged: 'player-level-changed',
|
|
412
509
|
EventRateLimited: 'event-rate-limited',
|
|
413
510
|
PlayerSyncSnapshot: 'player-sync-snapshot',
|
|
414
511
|
InviteLinkCreated: 'invite-link-created',
|
|
@@ -418,6 +515,12 @@ export const HookOutputDTOEventTypeEnum = {
|
|
|
418
515
|
DomainCreated: 'domain-created',
|
|
419
516
|
DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
|
|
420
517
|
DomainPlanChanged: 'domain-plan-changed',
|
|
518
|
+
ConnectorMigrationStarted: 'connector-migration-started',
|
|
519
|
+
ConnectorMigrationCompleted: 'connector-migration-completed',
|
|
520
|
+
ConnectorMigrationCancelled: 'connector-migration-cancelled',
|
|
521
|
+
ConnectorMigrationReverted: 'connector-migration-reverted',
|
|
522
|
+
DiscordGuildEnabled: 'discord-guild-enabled',
|
|
523
|
+
ItemsGiven: 'items-given',
|
|
421
524
|
};
|
|
422
525
|
export const HookTriggerDTOEventTypeEnum = {
|
|
423
526
|
Log: 'log',
|
|
@@ -442,6 +545,7 @@ export const HookTriggerDTOEventTypeEnum = {
|
|
|
442
545
|
SettingsSet: 'settings-set',
|
|
443
546
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
444
547
|
PlayerNewNameDetected: 'player-new-name-detected',
|
|
548
|
+
PlayerIdentityConflict: 'player-identity-conflict',
|
|
445
549
|
ServerStatusChanged: 'server-status-changed',
|
|
446
550
|
ModuleCreated: 'module-created',
|
|
447
551
|
ModuleUpdated: 'module-updated',
|
|
@@ -456,14 +560,18 @@ export const HookTriggerDTOEventTypeEnum = {
|
|
|
456
560
|
ShopOrderStatusChanged: 'shop-order-status-changed',
|
|
457
561
|
ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
|
|
458
562
|
PlayerLinked: 'player-linked',
|
|
563
|
+
PlayerUnlinked: 'player-unlinked',
|
|
564
|
+
PlayerMerged: 'player-merged',
|
|
459
565
|
GameserverCreated: 'gameserver-created',
|
|
460
566
|
GameserverUpdated: 'gameserver-updated',
|
|
567
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
461
568
|
GameserverDeleted: 'gameserver-deleted',
|
|
462
569
|
PlayerBanned: 'player-banned',
|
|
463
570
|
PlayerUnbanned: 'player-unbanned',
|
|
464
571
|
PlayerDeleted: 'player-deleted',
|
|
465
572
|
ShopActionExecuted: 'shop-action-executed',
|
|
466
573
|
PlayerInventoryChanged: 'player-inventory-changed',
|
|
574
|
+
PlayerLevelChanged: 'player-level-changed',
|
|
467
575
|
EventRateLimited: 'event-rate-limited',
|
|
468
576
|
PlayerSyncSnapshot: 'player-sync-snapshot',
|
|
469
577
|
InviteLinkCreated: 'invite-link-created',
|
|
@@ -473,6 +581,12 @@ export const HookTriggerDTOEventTypeEnum = {
|
|
|
473
581
|
DomainCreated: 'domain-created',
|
|
474
582
|
DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
|
|
475
583
|
DomainPlanChanged: 'domain-plan-changed',
|
|
584
|
+
ConnectorMigrationStarted: 'connector-migration-started',
|
|
585
|
+
ConnectorMigrationCompleted: 'connector-migration-completed',
|
|
586
|
+
ConnectorMigrationCancelled: 'connector-migration-cancelled',
|
|
587
|
+
ConnectorMigrationReverted: 'connector-migration-reverted',
|
|
588
|
+
DiscordGuildEnabled: 'discord-guild-enabled',
|
|
589
|
+
ItemsGiven: 'items-given',
|
|
476
590
|
};
|
|
477
591
|
export const HookUpdateDTOEventTypeEnum = {
|
|
478
592
|
Log: 'log',
|
|
@@ -497,6 +611,7 @@ export const HookUpdateDTOEventTypeEnum = {
|
|
|
497
611
|
SettingsSet: 'settings-set',
|
|
498
612
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
499
613
|
PlayerNewNameDetected: 'player-new-name-detected',
|
|
614
|
+
PlayerIdentityConflict: 'player-identity-conflict',
|
|
500
615
|
ServerStatusChanged: 'server-status-changed',
|
|
501
616
|
ModuleCreated: 'module-created',
|
|
502
617
|
ModuleUpdated: 'module-updated',
|
|
@@ -511,14 +626,18 @@ export const HookUpdateDTOEventTypeEnum = {
|
|
|
511
626
|
ShopOrderStatusChanged: 'shop-order-status-changed',
|
|
512
627
|
ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
|
|
513
628
|
PlayerLinked: 'player-linked',
|
|
629
|
+
PlayerUnlinked: 'player-unlinked',
|
|
630
|
+
PlayerMerged: 'player-merged',
|
|
514
631
|
GameserverCreated: 'gameserver-created',
|
|
515
632
|
GameserverUpdated: 'gameserver-updated',
|
|
633
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
516
634
|
GameserverDeleted: 'gameserver-deleted',
|
|
517
635
|
PlayerBanned: 'player-banned',
|
|
518
636
|
PlayerUnbanned: 'player-unbanned',
|
|
519
637
|
PlayerDeleted: 'player-deleted',
|
|
520
638
|
ShopActionExecuted: 'shop-action-executed',
|
|
521
639
|
PlayerInventoryChanged: 'player-inventory-changed',
|
|
640
|
+
PlayerLevelChanged: 'player-level-changed',
|
|
522
641
|
EventRateLimited: 'event-rate-limited',
|
|
523
642
|
PlayerSyncSnapshot: 'player-sync-snapshot',
|
|
524
643
|
InviteLinkCreated: 'invite-link-created',
|
|
@@ -528,6 +647,12 @@ export const HookUpdateDTOEventTypeEnum = {
|
|
|
528
647
|
DomainCreated: 'domain-created',
|
|
529
648
|
DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
|
|
530
649
|
DomainPlanChanged: 'domain-plan-changed',
|
|
650
|
+
ConnectorMigrationStarted: 'connector-migration-started',
|
|
651
|
+
ConnectorMigrationCompleted: 'connector-migration-completed',
|
|
652
|
+
ConnectorMigrationCancelled: 'connector-migration-cancelled',
|
|
653
|
+
ConnectorMigrationReverted: 'connector-migration-reverted',
|
|
654
|
+
DiscordGuildEnabled: 'discord-guild-enabled',
|
|
655
|
+
ItemsGiven: 'items-given',
|
|
531
656
|
};
|
|
532
657
|
export const IEntityDTOTypeEnum = {
|
|
533
658
|
Hostile: 'hostile',
|
|
@@ -557,6 +682,7 @@ export const IHookEventTypeEnum = {
|
|
|
557
682
|
SettingsSet: 'settings-set',
|
|
558
683
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
559
684
|
PlayerNewNameDetected: 'player-new-name-detected',
|
|
685
|
+
PlayerIdentityConflict: 'player-identity-conflict',
|
|
560
686
|
ServerStatusChanged: 'server-status-changed',
|
|
561
687
|
ModuleCreated: 'module-created',
|
|
562
688
|
ModuleUpdated: 'module-updated',
|
|
@@ -571,14 +697,18 @@ export const IHookEventTypeEnum = {
|
|
|
571
697
|
ShopOrderStatusChanged: 'shop-order-status-changed',
|
|
572
698
|
ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
|
|
573
699
|
PlayerLinked: 'player-linked',
|
|
700
|
+
PlayerUnlinked: 'player-unlinked',
|
|
701
|
+
PlayerMerged: 'player-merged',
|
|
574
702
|
GameserverCreated: 'gameserver-created',
|
|
575
703
|
GameserverUpdated: 'gameserver-updated',
|
|
704
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
576
705
|
GameserverDeleted: 'gameserver-deleted',
|
|
577
706
|
PlayerBanned: 'player-banned',
|
|
578
707
|
PlayerUnbanned: 'player-unbanned',
|
|
579
708
|
PlayerDeleted: 'player-deleted',
|
|
580
709
|
ShopActionExecuted: 'shop-action-executed',
|
|
581
710
|
PlayerInventoryChanged: 'player-inventory-changed',
|
|
711
|
+
PlayerLevelChanged: 'player-level-changed',
|
|
582
712
|
EventRateLimited: 'event-rate-limited',
|
|
583
713
|
PlayerSyncSnapshot: 'player-sync-snapshot',
|
|
584
714
|
InviteLinkCreated: 'invite-link-created',
|
|
@@ -588,11 +718,40 @@ export const IHookEventTypeEnum = {
|
|
|
588
718
|
DomainCreated: 'domain-created',
|
|
589
719
|
DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
|
|
590
720
|
DomainPlanChanged: 'domain-plan-changed',
|
|
721
|
+
ConnectorMigrationStarted: 'connector-migration-started',
|
|
722
|
+
ConnectorMigrationCompleted: 'connector-migration-completed',
|
|
723
|
+
ConnectorMigrationCancelled: 'connector-migration-cancelled',
|
|
724
|
+
ConnectorMigrationReverted: 'connector-migration-reverted',
|
|
725
|
+
DiscordGuildEnabled: 'discord-guild-enabled',
|
|
726
|
+
ItemsGiven: 'items-given',
|
|
591
727
|
};
|
|
592
728
|
export const ITakaroQuerySortDirectionEnum = {
|
|
593
729
|
Asc: 'asc',
|
|
594
730
|
Desc: 'desc',
|
|
595
731
|
};
|
|
732
|
+
export const InventoryChangeCounterpartDTOKindEnum = {
|
|
733
|
+
Container: 'container',
|
|
734
|
+
Player: 'player',
|
|
735
|
+
};
|
|
736
|
+
export const InventoryChangeDTOChangeTypeEnum = {
|
|
737
|
+
Added: 'added',
|
|
738
|
+
Removed: 'removed',
|
|
739
|
+
Changed: 'changed',
|
|
740
|
+
};
|
|
741
|
+
export const InventoryChangeDTOCauseEnum = {
|
|
742
|
+
Pickup: 'pickup',
|
|
743
|
+
Drop: 'drop',
|
|
744
|
+
Craft: 'craft',
|
|
745
|
+
Loot: 'loot',
|
|
746
|
+
Trade: 'trade',
|
|
747
|
+
Death: 'death',
|
|
748
|
+
Other: 'other',
|
|
749
|
+
Unknown: 'unknown',
|
|
750
|
+
};
|
|
751
|
+
export const InventoryCounterpartDTOKindEnum = {
|
|
752
|
+
Container: 'container',
|
|
753
|
+
Player: 'player',
|
|
754
|
+
};
|
|
596
755
|
export const InviteLinkCreateResultDTOStatusEnum = {
|
|
597
756
|
Active: 'ACTIVE',
|
|
598
757
|
Revoked: 'REVOKED',
|
|
@@ -698,12 +857,18 @@ export const PERMISSIONS = {
|
|
|
698
857
|
ViewDiscordInfo: 'VIEW_DISCORD_INFO',
|
|
699
858
|
SendDiscordMessage: 'SEND_DISCORD_MESSAGE',
|
|
700
859
|
ManageApiKeys: 'MANAGE_API_KEYS',
|
|
860
|
+
ReadMap: 'READ_MAP',
|
|
861
|
+
ReadTracking: 'READ_TRACKING',
|
|
701
862
|
};
|
|
702
|
-
export const
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
863
|
+
export const PlanChangeOutputDTOActionEnum = {
|
|
864
|
+
Create: 'create',
|
|
865
|
+
Update: 'update',
|
|
866
|
+
Archive: 'archive',
|
|
867
|
+
};
|
|
868
|
+
export const PlanChangeOutputDTOActorKindEnum = {
|
|
869
|
+
StaffSession: 'staffSession',
|
|
870
|
+
AdminSecret: 'adminSecret',
|
|
871
|
+
System: 'system',
|
|
707
872
|
};
|
|
708
873
|
export const PlayerOnGameServerSearchInputDTOExtendEnum = {
|
|
709
874
|
GameServer: 'gameServer',
|
|
@@ -727,6 +892,15 @@ export const PlayerSearchInputDTOSortDirectionEnum = {
|
|
|
727
892
|
Asc: 'asc',
|
|
728
893
|
Desc: 'desc',
|
|
729
894
|
};
|
|
895
|
+
export const PogProgressionOutputDTOSourceEnum = {
|
|
896
|
+
Server: 'server',
|
|
897
|
+
ClientReported: 'client-reported',
|
|
898
|
+
};
|
|
899
|
+
export const PositionAreaShapeDTOTypeEnum = {
|
|
900
|
+
Circle: 'circle',
|
|
901
|
+
Rectangle: 'rectangle',
|
|
902
|
+
Polygon: 'polygon',
|
|
903
|
+
};
|
|
730
904
|
export const RecentOrderDTOStatusEnum = {
|
|
731
905
|
Completed: 'COMPLETED',
|
|
732
906
|
Paid: 'PAID',
|
|
@@ -855,6 +1029,12 @@ export const StorefrontDomainOutputDTOCustomDomainStateEnum = {
|
|
|
855
1029
|
Verified: 'VERIFIED',
|
|
856
1030
|
Failed: 'FAILED',
|
|
857
1031
|
};
|
|
1032
|
+
export const StripePriceDTOIntervalEnum = {
|
|
1033
|
+
Day: 'day',
|
|
1034
|
+
Week: 'week',
|
|
1035
|
+
Month: 'month',
|
|
1036
|
+
Year: 'year',
|
|
1037
|
+
};
|
|
858
1038
|
export const TakaroAiDomainOutputDTOOverrideStateEnum = {
|
|
859
1039
|
None: 'none',
|
|
860
1040
|
Active: 'active',
|
|
@@ -887,11 +1067,82 @@ export const TakaroAiUsageOutputDTOStatusEnum = {
|
|
|
887
1067
|
NoAllowance: 'noAllowance',
|
|
888
1068
|
NeedsGameServer: 'needsGameServer',
|
|
889
1069
|
};
|
|
1070
|
+
export const TakaroEventDomainCreatedOriginEnum = {
|
|
1071
|
+
Distributor: 'distributor',
|
|
1072
|
+
Staff: 'staff',
|
|
1073
|
+
Subscription: 'subscription',
|
|
1074
|
+
AdminSecret: 'admin_secret',
|
|
1075
|
+
};
|
|
1076
|
+
export const TakaroEventInventoryCounterpartKindEnum = {
|
|
1077
|
+
Container: 'container',
|
|
1078
|
+
Player: 'player',
|
|
1079
|
+
};
|
|
1080
|
+
export const TakaroEventItemsGivenLineResultEnum = {
|
|
1081
|
+
Delivered: 'DELIVERED',
|
|
1082
|
+
Failed: 'FAILED',
|
|
1083
|
+
Unknown: 'UNKNOWN',
|
|
1084
|
+
};
|
|
1085
|
+
export const TakaroEventPlayerIdentityConflictUnwrittenIdentifiersEnum = {
|
|
1086
|
+
SteamId: 'steamId',
|
|
1087
|
+
EpicOnlineServicesId: 'epicOnlineServicesId',
|
|
1088
|
+
XboxLiveId: 'xboxLiveId',
|
|
1089
|
+
PlatformId: 'platformId',
|
|
1090
|
+
};
|
|
1091
|
+
export const TakaroEventPlayerIdentityConflictMatchMatchedOnEnum = {
|
|
1092
|
+
SteamId: 'steamId',
|
|
1093
|
+
EpicOnlineServicesId: 'epicOnlineServicesId',
|
|
1094
|
+
XboxLiveId: 'xboxLiveId',
|
|
1095
|
+
PlatformId: 'platformId',
|
|
1096
|
+
};
|
|
890
1097
|
export const TakaroEventPlayerInventoryChangedChangeTypeEnum = {
|
|
891
1098
|
Added: 'added',
|
|
892
1099
|
Removed: 'removed',
|
|
893
1100
|
Changed: 'changed',
|
|
894
1101
|
};
|
|
1102
|
+
export const TakaroEventPlayerInventoryChangedCauseEnum = {
|
|
1103
|
+
Pickup: 'pickup',
|
|
1104
|
+
Drop: 'drop',
|
|
1105
|
+
Craft: 'craft',
|
|
1106
|
+
Loot: 'loot',
|
|
1107
|
+
Trade: 'trade',
|
|
1108
|
+
Death: 'death',
|
|
1109
|
+
Other: 'other',
|
|
1110
|
+
};
|
|
1111
|
+
export const TakaroEventPlayerLevelChangedDirectionEnum = {
|
|
1112
|
+
Up: 'up',
|
|
1113
|
+
Down: 'down',
|
|
1114
|
+
};
|
|
1115
|
+
export const TakaroEventPlayerLevelChangedSourceEnum = {
|
|
1116
|
+
Server: 'server',
|
|
1117
|
+
ClientReported: 'client-reported',
|
|
1118
|
+
};
|
|
1119
|
+
export const TakaroEventPlayerLinkedSourceEnum = {
|
|
1120
|
+
GameCode: 'game-code',
|
|
1121
|
+
WebCode: 'web-code',
|
|
1122
|
+
SteamAuto: 'steam-auto',
|
|
1123
|
+
Admin: 'admin',
|
|
1124
|
+
Unknown: 'unknown',
|
|
1125
|
+
};
|
|
1126
|
+
export const TakaroEventPlayerMergedMovedIdentifiersEnum = {
|
|
1127
|
+
SteamId: 'steamId',
|
|
1128
|
+
EpicOnlineServicesId: 'epicOnlineServicesId',
|
|
1129
|
+
XboxLiveId: 'xboxLiveId',
|
|
1130
|
+
PlatformId: 'platformId',
|
|
1131
|
+
};
|
|
1132
|
+
export const TakaroEventPlayerMergedServerOutcomeEnum = {
|
|
1133
|
+
Moved: 'moved',
|
|
1134
|
+
Combined: 'combined',
|
|
1135
|
+
};
|
|
1136
|
+
export const TakaroEventPlayerMergedServerKeptPogFromEnum = {
|
|
1137
|
+
Survivor: 'survivor',
|
|
1138
|
+
Absorbed: 'absorbed',
|
|
1139
|
+
};
|
|
1140
|
+
export const TakaroEventPlayerUnlinkedReasonEnum = {
|
|
1141
|
+
Self: 'self',
|
|
1142
|
+
Admin: 'admin',
|
|
1143
|
+
Displaced: 'displaced',
|
|
1144
|
+
Merged: 'merged',
|
|
1145
|
+
};
|
|
895
1146
|
export const TakaroEventRateLimitedScopeEnum = {
|
|
896
1147
|
Server: 'server',
|
|
897
1148
|
Domain: 'domain',
|
|
@@ -1036,11 +1287,27 @@ export const TriggerJobInputDTOTypeEnum = {
|
|
|
1036
1287
|
SyncItems: 'syncItems',
|
|
1037
1288
|
SyncEntities: 'syncEntities',
|
|
1038
1289
|
SyncBans: 'syncBans',
|
|
1290
|
+
SyncLocations: 'syncLocations',
|
|
1039
1291
|
SyncMapImages: 'syncMapImages',
|
|
1040
1292
|
SyncMapUploads: 'syncMapUploads',
|
|
1293
|
+
SyncGameIcons: 'syncGameIcons',
|
|
1041
1294
|
SyncSteam: 'syncSteam',
|
|
1042
1295
|
SyncDiscordRoles: 'syncDiscordRoles',
|
|
1043
1296
|
};
|
|
1297
|
+
export const UserOutputDTOPlayerLinkSourceEnum = {
|
|
1298
|
+
GameCode: 'game-code',
|
|
1299
|
+
WebCode: 'web-code',
|
|
1300
|
+
SteamAuto: 'steam-auto',
|
|
1301
|
+
Admin: 'admin',
|
|
1302
|
+
Unknown: 'unknown',
|
|
1303
|
+
};
|
|
1304
|
+
export const UserOutputWithRolesDTOPlayerLinkSourceEnum = {
|
|
1305
|
+
GameCode: 'game-code',
|
|
1306
|
+
WebCode: 'web-code',
|
|
1307
|
+
SteamAuto: 'steam-auto',
|
|
1308
|
+
Admin: 'admin',
|
|
1309
|
+
Unknown: 'unknown',
|
|
1310
|
+
};
|
|
1044
1311
|
export const UserSearchInputDTOExtendEnum = {
|
|
1045
1312
|
Roles: 'roles',
|
|
1046
1313
|
};
|
|
@@ -1805,7 +2072,7 @@ export class DistributorApi extends BaseAPI {
|
|
|
1805
2072
|
export const DistributorSelfServiceApiAxiosParamCreator = function (configuration) {
|
|
1806
2073
|
return {
|
|
1807
2074
|
/**
|
|
1808
|
-
* Creates a domain attributed to the calling distributor (ADR 0024 — attribution, never ownership). The response carries the domain and its `serverRegistrationToken`, so a provisioning script can inject the token into a game server without a second call. Limits come from the chosen Plan
|
|
2075
|
+
* Creates a domain attributed to the calling distributor (ADR 0024 — attribution, never ownership). The response carries the domain and its `serverRegistrationToken`, so a provisioning script can inject the token into a game server without a second call. Limits come from the chosen Plan and apply at creation; a domain created without a `planId` starts on the platform defaults. A Plan outside `allowedPlans` is refused with a 400. A Distributor Service Account holding the domain’s root role is created with the domain; every management verb on the domain is recorded in its event feed as that account.<br> OperationId: `DistributorSelfServiceControllerCreateDomain`
|
|
1809
2076
|
* @summary Create a domain
|
|
1810
2077
|
* @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
|
|
1811
2078
|
* @param {*} [options] Override http request option.
|
|
@@ -2115,7 +2382,7 @@ export const DistributorSelfServiceApiAxiosParamCreator = function (configuratio
|
|
|
2115
2382
|
};
|
|
2116
2383
|
},
|
|
2117
2384
|
/**
|
|
2118
|
-
* Moves the domain onto another of the Plans allowed for the calling distributor
|
|
2385
|
+
* Moves the domain onto another of the Plans allowed for the calling distributor; the Plan’s limits apply before the response. Downgrading a customer who cancelled means moving the domain to the free Plan — it keeps running at free limits, and its state never changes. A Plan outside the allowed list is a 400; another distributor’s domain is a 404, never a 403. Idempotent: setting the Plan the domain is already on re-applies its limits and records nothing.<br> OperationId: `DistributorSelfServiceControllerSetDomainPlan`
|
|
2119
2386
|
* @summary Change one of my domains’ Plan
|
|
2120
2387
|
* @param {string} id
|
|
2121
2388
|
* @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
|
|
@@ -2158,7 +2425,7 @@ export const DistributorSelfServiceApiFp = function (configuration) {
|
|
|
2158
2425
|
const localVarAxiosParamCreator = DistributorSelfServiceApiAxiosParamCreator(configuration);
|
|
2159
2426
|
return {
|
|
2160
2427
|
/**
|
|
2161
|
-
* Creates a domain attributed to the calling distributor (ADR 0024 — attribution, never ownership). The response carries the domain and its `serverRegistrationToken`, so a provisioning script can inject the token into a game server without a second call. Limits come from the chosen Plan
|
|
2428
|
+
* Creates a domain attributed to the calling distributor (ADR 0024 — attribution, never ownership). The response carries the domain and its `serverRegistrationToken`, so a provisioning script can inject the token into a game server without a second call. Limits come from the chosen Plan and apply at creation; a domain created without a `planId` starts on the platform defaults. A Plan outside `allowedPlans` is refused with a 400. A Distributor Service Account holding the domain’s root role is created with the domain; every management verb on the domain is recorded in its event feed as that account.<br> OperationId: `DistributorSelfServiceControllerCreateDomain`
|
|
2162
2429
|
* @summary Create a domain
|
|
2163
2430
|
* @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
|
|
2164
2431
|
* @param {*} [options] Override http request option.
|
|
@@ -2288,7 +2555,7 @@ export const DistributorSelfServiceApiFp = function (configuration) {
|
|
|
2288
2555
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2289
2556
|
},
|
|
2290
2557
|
/**
|
|
2291
|
-
* Moves the domain onto another of the Plans allowed for the calling distributor
|
|
2558
|
+
* Moves the domain onto another of the Plans allowed for the calling distributor; the Plan’s limits apply before the response. Downgrading a customer who cancelled means moving the domain to the free Plan — it keeps running at free limits, and its state never changes. A Plan outside the allowed list is a 400; another distributor’s domain is a 404, never a 403. Idempotent: setting the Plan the domain is already on re-applies its limits and records nothing.<br> OperationId: `DistributorSelfServiceControllerSetDomainPlan`
|
|
2292
2559
|
* @summary Change one of my domains’ Plan
|
|
2293
2560
|
* @param {string} id
|
|
2294
2561
|
* @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
|
|
@@ -2311,7 +2578,7 @@ export const DistributorSelfServiceApiFactory = function (configuration, basePat
|
|
|
2311
2578
|
const localVarFp = DistributorSelfServiceApiFp(configuration);
|
|
2312
2579
|
return {
|
|
2313
2580
|
/**
|
|
2314
|
-
* Creates a domain attributed to the calling distributor (ADR 0024 — attribution, never ownership). The response carries the domain and its `serverRegistrationToken`, so a provisioning script can inject the token into a game server without a second call. Limits come from the chosen Plan
|
|
2581
|
+
* Creates a domain attributed to the calling distributor (ADR 0024 — attribution, never ownership). The response carries the domain and its `serverRegistrationToken`, so a provisioning script can inject the token into a game server without a second call. Limits come from the chosen Plan and apply at creation; a domain created without a `planId` starts on the platform defaults. A Plan outside `allowedPlans` is refused with a 400. A Distributor Service Account holding the domain’s root role is created with the domain; every management verb on the domain is recorded in its event feed as that account.<br> OperationId: `DistributorSelfServiceControllerCreateDomain`
|
|
2315
2582
|
* @summary Create a domain
|
|
2316
2583
|
* @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
|
|
2317
2584
|
* @param {*} [options] Override http request option.
|
|
@@ -2429,7 +2696,7 @@ export const DistributorSelfServiceApiFactory = function (configuration, basePat
|
|
|
2429
2696
|
.then((request) => request(axios, basePath));
|
|
2430
2697
|
},
|
|
2431
2698
|
/**
|
|
2432
|
-
* Moves the domain onto another of the Plans allowed for the calling distributor
|
|
2699
|
+
* Moves the domain onto another of the Plans allowed for the calling distributor; the Plan’s limits apply before the response. Downgrading a customer who cancelled means moving the domain to the free Plan — it keeps running at free limits, and its state never changes. A Plan outside the allowed list is a 400; another distributor’s domain is a 404, never a 403. Idempotent: setting the Plan the domain is already on re-applies its limits and records nothing.<br> OperationId: `DistributorSelfServiceControllerSetDomainPlan`
|
|
2433
2700
|
* @summary Change one of my domains’ Plan
|
|
2434
2701
|
* @param {string} id
|
|
2435
2702
|
* @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
|
|
@@ -2451,7 +2718,7 @@ export const DistributorSelfServiceApiFactory = function (configuration, basePat
|
|
|
2451
2718
|
*/
|
|
2452
2719
|
export class DistributorSelfServiceApi extends BaseAPI {
|
|
2453
2720
|
/**
|
|
2454
|
-
* Creates a domain attributed to the calling distributor (ADR 0024 — attribution, never ownership). The response carries the domain and its `serverRegistrationToken`, so a provisioning script can inject the token into a game server without a second call. Limits come from the chosen Plan
|
|
2721
|
+
* Creates a domain attributed to the calling distributor (ADR 0024 — attribution, never ownership). The response carries the domain and its `serverRegistrationToken`, so a provisioning script can inject the token into a game server without a second call. Limits come from the chosen Plan and apply at creation; a domain created without a `planId` starts on the platform defaults. A Plan outside `allowedPlans` is refused with a 400. A Distributor Service Account holding the domain’s root role is created with the domain; every management verb on the domain is recorded in its event feed as that account.<br> OperationId: `DistributorSelfServiceControllerCreateDomain`
|
|
2455
2722
|
* @summary Create a domain
|
|
2456
2723
|
* @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
|
|
2457
2724
|
* @param {*} [options] Override http request option.
|
|
@@ -2581,7 +2848,7 @@ export class DistributorSelfServiceApi extends BaseAPI {
|
|
|
2581
2848
|
.then((request) => request(this.axios, this.basePath));
|
|
2582
2849
|
}
|
|
2583
2850
|
/**
|
|
2584
|
-
* Moves the domain onto another of the Plans allowed for the calling distributor
|
|
2851
|
+
* Moves the domain onto another of the Plans allowed for the calling distributor; the Plan’s limits apply before the response. Downgrading a customer who cancelled means moving the domain to the free Plan — it keeps running at free limits, and its state never changes. A Plan outside the allowed list is a 400; another distributor’s domain is a 404, never a 403. Idempotent: setting the Plan the domain is already on re-applies its limits and records nothing.<br> OperationId: `DistributorSelfServiceControllerSetDomainPlan`
|
|
2585
2852
|
* @summary Change one of my domains’ Plan
|
|
2586
2853
|
* @param {string} id
|
|
2587
2854
|
* @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
|
|
@@ -2893,21 +3160,58 @@ export const DomainApiAxiosParamCreator = function (configuration) {
|
|
|
2893
3160
|
};
|
|
2894
3161
|
},
|
|
2895
3162
|
/**
|
|
2896
|
-
*
|
|
2897
|
-
* @summary
|
|
2898
|
-
* @param {
|
|
3163
|
+
* Applies the Plan’s limits at once, keeping any limit override. On the first assignment of a domain that predates Plans, its hand-set variable, module, function, concurrency and rate limits that differ from the Plan are kept as overrides. Refused for a distributor-backed domain.<br> OperationId: `DomainControllerSetPlan`
|
|
3164
|
+
* @summary Put a subscription-backed domain on a Plan
|
|
3165
|
+
* @param {string} id
|
|
3166
|
+
* @param {DomainPlanInputDTO} [domainPlanInputDTO] DomainPlanInputDTO
|
|
2899
3167
|
* @param {*} [options] Override http request option.
|
|
2900
3168
|
* @throws {RequiredError}
|
|
2901
3169
|
*/
|
|
2902
|
-
|
|
2903
|
-
|
|
3170
|
+
domainControllerSetPlan: async (id, domainPlanInputDTO, options = {}) => {
|
|
3171
|
+
// verify required parameter 'id' is not null or undefined
|
|
3172
|
+
assertParamExists('domainControllerSetPlan', 'id', id);
|
|
3173
|
+
const localVarPath = `/domain/{id}/plan`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
2904
3174
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2905
3175
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2906
3176
|
let baseOptions;
|
|
2907
3177
|
if (configuration) {
|
|
2908
3178
|
baseOptions = configuration.baseOptions;
|
|
2909
3179
|
}
|
|
2910
|
-
const localVarRequestOptions = { method: '
|
|
3180
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
3181
|
+
const localVarHeaderParameter = {};
|
|
3182
|
+
const localVarQueryParameter = {};
|
|
3183
|
+
// authentication staffSession required
|
|
3184
|
+
// authentication adminAuth required
|
|
3185
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
3186
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3187
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3188
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3189
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
3190
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainPlanInputDTO, localVarRequestOptions, configuration);
|
|
3191
|
+
return {
|
|
3192
|
+
url: toPathString(localVarUrlObj),
|
|
3193
|
+
options: localVarRequestOptions,
|
|
3194
|
+
};
|
|
3195
|
+
},
|
|
3196
|
+
/**
|
|
3197
|
+
* For a domain with neither a Subscription nor a Distributor; refused for either, since Stripe or the Distributor chooses those Plans. Applies the Plan’s limits at once, keeping any limit override. On the first assignment of a domain that predates Plans, its hand-set limits that differ from the Plan are kept as overrides.<br> OperationId: `DomainControllerSetPlanByStaff`
|
|
3198
|
+
* @summary Put an Unbacked domain on a Plan
|
|
3199
|
+
* @param {string} id
|
|
3200
|
+
* @param {StaffDomainPlanInputDTO} [staffDomainPlanInputDTO] StaffDomainPlanInputDTO
|
|
3201
|
+
* @param {*} [options] Override http request option.
|
|
3202
|
+
* @throws {RequiredError}
|
|
3203
|
+
*/
|
|
3204
|
+
domainControllerSetPlanByStaff: async (id, staffDomainPlanInputDTO, options = {}) => {
|
|
3205
|
+
// verify required parameter 'id' is not null or undefined
|
|
3206
|
+
assertParamExists('domainControllerSetPlanByStaff', 'id', id);
|
|
3207
|
+
const localVarPath = `/staff/domains/{id}/plan`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
3208
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3209
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3210
|
+
let baseOptions;
|
|
3211
|
+
if (configuration) {
|
|
3212
|
+
baseOptions = configuration.baseOptions;
|
|
3213
|
+
}
|
|
3214
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
2911
3215
|
const localVarHeaderParameter = {};
|
|
2912
3216
|
const localVarQueryParameter = {};
|
|
2913
3217
|
// authentication staffSession required
|
|
@@ -2917,7 +3221,7 @@ export const DomainApiAxiosParamCreator = function (configuration) {
|
|
|
2917
3221
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2918
3222
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2919
3223
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2920
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3224
|
+
localVarRequestOptions.data = serializeDataIfNeeded(staffDomainPlanInputDTO, localVarRequestOptions, configuration);
|
|
2921
3225
|
return {
|
|
2922
3226
|
url: toPathString(localVarUrlObj),
|
|
2923
3227
|
options: localVarRequestOptions,
|
|
@@ -3087,16 +3391,31 @@ export const DomainApiFp = function (configuration) {
|
|
|
3087
3391
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3088
3392
|
},
|
|
3089
3393
|
/**
|
|
3090
|
-
*
|
|
3091
|
-
* @summary
|
|
3092
|
-
* @param {
|
|
3394
|
+
* Applies the Plan’s limits at once, keeping any limit override. On the first assignment of a domain that predates Plans, its hand-set variable, module, function, concurrency and rate limits that differ from the Plan are kept as overrides. Refused for a distributor-backed domain.<br> OperationId: `DomainControllerSetPlan`
|
|
3395
|
+
* @summary Put a subscription-backed domain on a Plan
|
|
3396
|
+
* @param {string} id
|
|
3397
|
+
* @param {DomainPlanInputDTO} [domainPlanInputDTO] DomainPlanInputDTO
|
|
3398
|
+
* @param {*} [options] Override http request option.
|
|
3399
|
+
* @throws {RequiredError}
|
|
3400
|
+
*/
|
|
3401
|
+
async domainControllerSetPlan(id, domainPlanInputDTO, options) {
|
|
3402
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerSetPlan(id, domainPlanInputDTO, options);
|
|
3403
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3404
|
+
const localVarOperationServerBasePath = operationServerMap['DomainApi.domainControllerSetPlan']?.[localVarOperationServerIndex]?.url;
|
|
3405
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3406
|
+
},
|
|
3407
|
+
/**
|
|
3408
|
+
* For a domain with neither a Subscription nor a Distributor; refused for either, since Stripe or the Distributor chooses those Plans. Applies the Plan’s limits at once, keeping any limit override. On the first assignment of a domain that predates Plans, its hand-set limits that differ from the Plan are kept as overrides.<br> OperationId: `DomainControllerSetPlanByStaff`
|
|
3409
|
+
* @summary Put an Unbacked domain on a Plan
|
|
3410
|
+
* @param {string} id
|
|
3411
|
+
* @param {StaffDomainPlanInputDTO} [staffDomainPlanInputDTO] StaffDomainPlanInputDTO
|
|
3093
3412
|
* @param {*} [options] Override http request option.
|
|
3094
3413
|
* @throws {RequiredError}
|
|
3095
3414
|
*/
|
|
3096
|
-
async
|
|
3097
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
3415
|
+
async domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options) {
|
|
3416
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options);
|
|
3098
3417
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3099
|
-
const localVarOperationServerBasePath = operationServerMap['DomainApi.
|
|
3418
|
+
const localVarOperationServerBasePath = operationServerMap['DomainApi.domainControllerSetPlanByStaff']?.[localVarOperationServerIndex]?.url;
|
|
3100
3419
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3101
3420
|
},
|
|
3102
3421
|
/**
|
|
@@ -3226,15 +3545,29 @@ export const DomainApiFactory = function (configuration, basePath, axios) {
|
|
|
3226
3545
|
.then((request) => request(axios, basePath));
|
|
3227
3546
|
},
|
|
3228
3547
|
/**
|
|
3229
|
-
*
|
|
3230
|
-
* @summary
|
|
3231
|
-
* @param {
|
|
3548
|
+
* Applies the Plan’s limits at once, keeping any limit override. On the first assignment of a domain that predates Plans, its hand-set variable, module, function, concurrency and rate limits that differ from the Plan are kept as overrides. Refused for a distributor-backed domain.<br> OperationId: `DomainControllerSetPlan`
|
|
3549
|
+
* @summary Put a subscription-backed domain on a Plan
|
|
3550
|
+
* @param {string} id
|
|
3551
|
+
* @param {DomainPlanInputDTO} [domainPlanInputDTO] DomainPlanInputDTO
|
|
3552
|
+
* @param {*} [options] Override http request option.
|
|
3553
|
+
* @throws {RequiredError}
|
|
3554
|
+
*/
|
|
3555
|
+
domainControllerSetPlan(id, domainPlanInputDTO, options) {
|
|
3556
|
+
return localVarFp
|
|
3557
|
+
.domainControllerSetPlan(id, domainPlanInputDTO, options)
|
|
3558
|
+
.then((request) => request(axios, basePath));
|
|
3559
|
+
},
|
|
3560
|
+
/**
|
|
3561
|
+
* For a domain with neither a Subscription nor a Distributor; refused for either, since Stripe or the Distributor chooses those Plans. Applies the Plan’s limits at once, keeping any limit override. On the first assignment of a domain that predates Plans, its hand-set limits that differ from the Plan are kept as overrides.<br> OperationId: `DomainControllerSetPlanByStaff`
|
|
3562
|
+
* @summary Put an Unbacked domain on a Plan
|
|
3563
|
+
* @param {string} id
|
|
3564
|
+
* @param {StaffDomainPlanInputDTO} [staffDomainPlanInputDTO] StaffDomainPlanInputDTO
|
|
3232
3565
|
* @param {*} [options] Override http request option.
|
|
3233
3566
|
* @throws {RequiredError}
|
|
3234
3567
|
*/
|
|
3235
|
-
|
|
3568
|
+
domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options) {
|
|
3236
3569
|
return localVarFp
|
|
3237
|
-
.
|
|
3570
|
+
.domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options)
|
|
3238
3571
|
.then((request) => request(axios, basePath));
|
|
3239
3572
|
},
|
|
3240
3573
|
/**
|
|
@@ -3380,16 +3713,31 @@ export class DomainApi extends BaseAPI {
|
|
|
3380
3713
|
.then((request) => request(this.axios, this.basePath));
|
|
3381
3714
|
}
|
|
3382
3715
|
/**
|
|
3383
|
-
*
|
|
3384
|
-
* @summary
|
|
3385
|
-
* @param {
|
|
3716
|
+
* Applies the Plan’s limits at once, keeping any limit override. On the first assignment of a domain that predates Plans, its hand-set variable, module, function, concurrency and rate limits that differ from the Plan are kept as overrides. Refused for a distributor-backed domain.<br> OperationId: `DomainControllerSetPlan`
|
|
3717
|
+
* @summary Put a subscription-backed domain on a Plan
|
|
3718
|
+
* @param {string} id
|
|
3719
|
+
* @param {DomainPlanInputDTO} [domainPlanInputDTO] DomainPlanInputDTO
|
|
3720
|
+
* @param {*} [options] Override http request option.
|
|
3721
|
+
* @throws {RequiredError}
|
|
3722
|
+
* @memberof DomainApi
|
|
3723
|
+
*/
|
|
3724
|
+
domainControllerSetPlan(id, domainPlanInputDTO, options) {
|
|
3725
|
+
return DomainApiFp(this.configuration)
|
|
3726
|
+
.domainControllerSetPlan(id, domainPlanInputDTO, options)
|
|
3727
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3728
|
+
}
|
|
3729
|
+
/**
|
|
3730
|
+
* For a domain with neither a Subscription nor a Distributor; refused for either, since Stripe or the Distributor chooses those Plans. Applies the Plan’s limits at once, keeping any limit override. On the first assignment of a domain that predates Plans, its hand-set limits that differ from the Plan are kept as overrides.<br> OperationId: `DomainControllerSetPlanByStaff`
|
|
3731
|
+
* @summary Put an Unbacked domain on a Plan
|
|
3732
|
+
* @param {string} id
|
|
3733
|
+
* @param {StaffDomainPlanInputDTO} [staffDomainPlanInputDTO] StaffDomainPlanInputDTO
|
|
3386
3734
|
* @param {*} [options] Override http request option.
|
|
3387
3735
|
* @throws {RequiredError}
|
|
3388
3736
|
* @memberof DomainApi
|
|
3389
3737
|
*/
|
|
3390
|
-
|
|
3738
|
+
domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options) {
|
|
3391
3739
|
return DomainApiFp(this.configuration)
|
|
3392
|
-
.
|
|
3740
|
+
.domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options)
|
|
3393
3741
|
.then((request) => request(this.axios, this.basePath));
|
|
3394
3742
|
}
|
|
3395
3743
|
/**
|
|
@@ -3864,6 +4212,72 @@ export const FixtureHistoryApiAxiosParamCreator = function (configuration) {
|
|
|
3864
4212
|
options: localVarRequestOptions,
|
|
3865
4213
|
};
|
|
3866
4214
|
},
|
|
4215
|
+
/**
|
|
4216
|
+
* <br> OperationId: `FixtureHistoryControllerTrackingInventory`
|
|
4217
|
+
* @summary Write owned, back-dated inventory snapshots and changes into the Tracking store (idempotent on id)
|
|
4218
|
+
* @param {string} domainId
|
|
4219
|
+
* @param {FixtureHistoryTrackingInventoryInputDTO} [fixtureHistoryTrackingInventoryInputDTO] FixtureHistoryTrackingInventoryInputDTO
|
|
4220
|
+
* @param {*} [options] Override http request option.
|
|
4221
|
+
* @throws {RequiredError}
|
|
4222
|
+
*/
|
|
4223
|
+
fixtureHistoryControllerTrackingInventory: async (domainId, fixtureHistoryTrackingInventoryInputDTO, options = {}) => {
|
|
4224
|
+
// verify required parameter 'domainId' is not null or undefined
|
|
4225
|
+
assertParamExists('fixtureHistoryControllerTrackingInventory', 'domainId', domainId);
|
|
4226
|
+
const localVarPath = `/fixture-history/domains/{domainId}/tracking/inventory`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
|
|
4227
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4228
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4229
|
+
let baseOptions;
|
|
4230
|
+
if (configuration) {
|
|
4231
|
+
baseOptions = configuration.baseOptions;
|
|
4232
|
+
}
|
|
4233
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
4234
|
+
const localVarHeaderParameter = {};
|
|
4235
|
+
const localVarQueryParameter = {};
|
|
4236
|
+
// authentication adminAuth required
|
|
4237
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
4238
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4239
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4240
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4241
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4242
|
+
localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryTrackingInventoryInputDTO, localVarRequestOptions, configuration);
|
|
4243
|
+
return {
|
|
4244
|
+
url: toPathString(localVarUrlObj),
|
|
4245
|
+
options: localVarRequestOptions,
|
|
4246
|
+
};
|
|
4247
|
+
},
|
|
4248
|
+
/**
|
|
4249
|
+
* Columnar: each track is one player-on-gameserver with flattened x, y, z triples sampled every intervalMs from `from`.<br> OperationId: `FixtureHistoryControllerTrackingPositions`
|
|
4250
|
+
* @summary Write owned, back-dated walked paths into the Tracking store (inserts only missing samples)
|
|
4251
|
+
* @param {string} domainId
|
|
4252
|
+
* @param {FixtureHistoryTrackingPositionsInputDTO} [fixtureHistoryTrackingPositionsInputDTO] FixtureHistoryTrackingPositionsInputDTO
|
|
4253
|
+
* @param {*} [options] Override http request option.
|
|
4254
|
+
* @throws {RequiredError}
|
|
4255
|
+
*/
|
|
4256
|
+
fixtureHistoryControllerTrackingPositions: async (domainId, fixtureHistoryTrackingPositionsInputDTO, options = {}) => {
|
|
4257
|
+
// verify required parameter 'domainId' is not null or undefined
|
|
4258
|
+
assertParamExists('fixtureHistoryControllerTrackingPositions', 'domainId', domainId);
|
|
4259
|
+
const localVarPath = `/fixture-history/domains/{domainId}/tracking/positions`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
|
|
4260
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4261
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4262
|
+
let baseOptions;
|
|
4263
|
+
if (configuration) {
|
|
4264
|
+
baseOptions = configuration.baseOptions;
|
|
4265
|
+
}
|
|
4266
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
4267
|
+
const localVarHeaderParameter = {};
|
|
4268
|
+
const localVarQueryParameter = {};
|
|
4269
|
+
// authentication adminAuth required
|
|
4270
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
4271
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4272
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4273
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4274
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4275
|
+
localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryTrackingPositionsInputDTO, localVarRequestOptions, configuration);
|
|
4276
|
+
return {
|
|
4277
|
+
url: toPathString(localVarUrlObj),
|
|
4278
|
+
options: localVarRequestOptions,
|
|
4279
|
+
};
|
|
4280
|
+
},
|
|
3867
4281
|
};
|
|
3868
4282
|
};
|
|
3869
4283
|
/**
|
|
@@ -4062,6 +4476,34 @@ export const FixtureHistoryApiFp = function (configuration) {
|
|
|
4062
4476
|
?.url;
|
|
4063
4477
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4064
4478
|
},
|
|
4479
|
+
/**
|
|
4480
|
+
* <br> OperationId: `FixtureHistoryControllerTrackingInventory`
|
|
4481
|
+
* @summary Write owned, back-dated inventory snapshots and changes into the Tracking store (idempotent on id)
|
|
4482
|
+
* @param {string} domainId
|
|
4483
|
+
* @param {FixtureHistoryTrackingInventoryInputDTO} [fixtureHistoryTrackingInventoryInputDTO] FixtureHistoryTrackingInventoryInputDTO
|
|
4484
|
+
* @param {*} [options] Override http request option.
|
|
4485
|
+
* @throws {RequiredError}
|
|
4486
|
+
*/
|
|
4487
|
+
async fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options) {
|
|
4488
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options);
|
|
4489
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4490
|
+
const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerTrackingInventory']?.[localVarOperationServerIndex]?.url;
|
|
4491
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4492
|
+
},
|
|
4493
|
+
/**
|
|
4494
|
+
* Columnar: each track is one player-on-gameserver with flattened x, y, z triples sampled every intervalMs from `from`.<br> OperationId: `FixtureHistoryControllerTrackingPositions`
|
|
4495
|
+
* @summary Write owned, back-dated walked paths into the Tracking store (inserts only missing samples)
|
|
4496
|
+
* @param {string} domainId
|
|
4497
|
+
* @param {FixtureHistoryTrackingPositionsInputDTO} [fixtureHistoryTrackingPositionsInputDTO] FixtureHistoryTrackingPositionsInputDTO
|
|
4498
|
+
* @param {*} [options] Override http request option.
|
|
4499
|
+
* @throws {RequiredError}
|
|
4500
|
+
*/
|
|
4501
|
+
async fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options) {
|
|
4502
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options);
|
|
4503
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4504
|
+
const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerTrackingPositions']?.[localVarOperationServerIndex]?.url;
|
|
4505
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4506
|
+
},
|
|
4065
4507
|
};
|
|
4066
4508
|
};
|
|
4067
4509
|
/**
|
|
@@ -4243,6 +4685,32 @@ export const FixtureHistoryApiFactory = function (configuration, basePath, axios
|
|
|
4243
4685
|
.fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options)
|
|
4244
4686
|
.then((request) => request(axios, basePath));
|
|
4245
4687
|
},
|
|
4688
|
+
/**
|
|
4689
|
+
* <br> OperationId: `FixtureHistoryControllerTrackingInventory`
|
|
4690
|
+
* @summary Write owned, back-dated inventory snapshots and changes into the Tracking store (idempotent on id)
|
|
4691
|
+
* @param {string} domainId
|
|
4692
|
+
* @param {FixtureHistoryTrackingInventoryInputDTO} [fixtureHistoryTrackingInventoryInputDTO] FixtureHistoryTrackingInventoryInputDTO
|
|
4693
|
+
* @param {*} [options] Override http request option.
|
|
4694
|
+
* @throws {RequiredError}
|
|
4695
|
+
*/
|
|
4696
|
+
fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options) {
|
|
4697
|
+
return localVarFp
|
|
4698
|
+
.fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options)
|
|
4699
|
+
.then((request) => request(axios, basePath));
|
|
4700
|
+
},
|
|
4701
|
+
/**
|
|
4702
|
+
* Columnar: each track is one player-on-gameserver with flattened x, y, z triples sampled every intervalMs from `from`.<br> OperationId: `FixtureHistoryControllerTrackingPositions`
|
|
4703
|
+
* @summary Write owned, back-dated walked paths into the Tracking store (inserts only missing samples)
|
|
4704
|
+
* @param {string} domainId
|
|
4705
|
+
* @param {FixtureHistoryTrackingPositionsInputDTO} [fixtureHistoryTrackingPositionsInputDTO] FixtureHistoryTrackingPositionsInputDTO
|
|
4706
|
+
* @param {*} [options] Override http request option.
|
|
4707
|
+
* @throws {RequiredError}
|
|
4708
|
+
*/
|
|
4709
|
+
fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options) {
|
|
4710
|
+
return localVarFp
|
|
4711
|
+
.fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options)
|
|
4712
|
+
.then((request) => request(axios, basePath));
|
|
4713
|
+
},
|
|
4246
4714
|
};
|
|
4247
4715
|
};
|
|
4248
4716
|
/**
|
|
@@ -4437,6 +4905,34 @@ export class FixtureHistoryApi extends BaseAPI {
|
|
|
4437
4905
|
.fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options)
|
|
4438
4906
|
.then((request) => request(this.axios, this.basePath));
|
|
4439
4907
|
}
|
|
4908
|
+
/**
|
|
4909
|
+
* <br> OperationId: `FixtureHistoryControllerTrackingInventory`
|
|
4910
|
+
* @summary Write owned, back-dated inventory snapshots and changes into the Tracking store (idempotent on id)
|
|
4911
|
+
* @param {string} domainId
|
|
4912
|
+
* @param {FixtureHistoryTrackingInventoryInputDTO} [fixtureHistoryTrackingInventoryInputDTO] FixtureHistoryTrackingInventoryInputDTO
|
|
4913
|
+
* @param {*} [options] Override http request option.
|
|
4914
|
+
* @throws {RequiredError}
|
|
4915
|
+
* @memberof FixtureHistoryApi
|
|
4916
|
+
*/
|
|
4917
|
+
fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options) {
|
|
4918
|
+
return FixtureHistoryApiFp(this.configuration)
|
|
4919
|
+
.fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options)
|
|
4920
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4921
|
+
}
|
|
4922
|
+
/**
|
|
4923
|
+
* Columnar: each track is one player-on-gameserver with flattened x, y, z triples sampled every intervalMs from `from`.<br> OperationId: `FixtureHistoryControllerTrackingPositions`
|
|
4924
|
+
* @summary Write owned, back-dated walked paths into the Tracking store (inserts only missing samples)
|
|
4925
|
+
* @param {string} domainId
|
|
4926
|
+
* @param {FixtureHistoryTrackingPositionsInputDTO} [fixtureHistoryTrackingPositionsInputDTO] FixtureHistoryTrackingPositionsInputDTO
|
|
4927
|
+
* @param {*} [options] Override http request option.
|
|
4928
|
+
* @throws {RequiredError}
|
|
4929
|
+
* @memberof FixtureHistoryApi
|
|
4930
|
+
*/
|
|
4931
|
+
fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options) {
|
|
4932
|
+
return FixtureHistoryApiFp(this.configuration)
|
|
4933
|
+
.fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options)
|
|
4934
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4935
|
+
}
|
|
4440
4936
|
}
|
|
4441
4937
|
/**
|
|
4442
4938
|
* MetaApi - axios parameter creator
|
|
@@ -4494,31 +4990,6 @@ export const MetaApiAxiosParamCreator = function (configuration) {
|
|
|
4494
4990
|
options: localVarRequestOptions,
|
|
4495
4991
|
};
|
|
4496
4992
|
},
|
|
4497
|
-
/**
|
|
4498
|
-
* <br> OperationId: `MetaGetMetrics`
|
|
4499
|
-
* @summary Get metrics
|
|
4500
|
-
* @param {*} [options] Override http request option.
|
|
4501
|
-
* @throws {RequiredError}
|
|
4502
|
-
*/
|
|
4503
|
-
metaGetMetrics: async (options = {}) => {
|
|
4504
|
-
const localVarPath = `/metrics`;
|
|
4505
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4506
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4507
|
-
let baseOptions;
|
|
4508
|
-
if (configuration) {
|
|
4509
|
-
baseOptions = configuration.baseOptions;
|
|
4510
|
-
}
|
|
4511
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
4512
|
-
const localVarHeaderParameter = {};
|
|
4513
|
-
const localVarQueryParameter = {};
|
|
4514
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4515
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4516
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
4517
|
-
return {
|
|
4518
|
-
url: toPathString(localVarUrlObj),
|
|
4519
|
-
options: localVarRequestOptions,
|
|
4520
|
-
};
|
|
4521
|
-
},
|
|
4522
4993
|
/**
|
|
4523
4994
|
* <br> OperationId: `MetaGetOpenApi`
|
|
4524
4995
|
* @summary Get open api
|
|
@@ -4653,27 +5124,15 @@ export const MetaApiFp = function (configuration) {
|
|
|
4653
5124
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4654
5125
|
},
|
|
4655
5126
|
/**
|
|
4656
|
-
* <br> OperationId: `
|
|
4657
|
-
* @summary Get
|
|
5127
|
+
* <br> OperationId: `MetaGetOpenApi`
|
|
5128
|
+
* @summary Get open api
|
|
4658
5129
|
* @param {*} [options] Override http request option.
|
|
4659
5130
|
* @throws {RequiredError}
|
|
4660
5131
|
*/
|
|
4661
|
-
async
|
|
4662
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5132
|
+
async metaGetOpenApi(options) {
|
|
5133
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetOpenApi(options);
|
|
4663
5134
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4664
|
-
const localVarOperationServerBasePath = operationServerMap['MetaApi.
|
|
4665
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4666
|
-
},
|
|
4667
|
-
/**
|
|
4668
|
-
* <br> OperationId: `MetaGetOpenApi`
|
|
4669
|
-
* @summary Get open api
|
|
4670
|
-
* @param {*} [options] Override http request option.
|
|
4671
|
-
* @throws {RequiredError}
|
|
4672
|
-
*/
|
|
4673
|
-
async metaGetOpenApi(options) {
|
|
4674
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetOpenApi(options);
|
|
4675
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4676
|
-
const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetOpenApi']?.[localVarOperationServerIndex]?.url;
|
|
5135
|
+
const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetOpenApi']?.[localVarOperationServerIndex]?.url;
|
|
4677
5136
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4678
5137
|
},
|
|
4679
5138
|
/**
|
|
@@ -4739,15 +5198,6 @@ export const MetaApiFactory = function (configuration, basePath, axios) {
|
|
|
4739
5198
|
metaGetLiveness(options) {
|
|
4740
5199
|
return localVarFp.metaGetLiveness(options).then((request) => request(axios, basePath));
|
|
4741
5200
|
},
|
|
4742
|
-
/**
|
|
4743
|
-
* <br> OperationId: `MetaGetMetrics`
|
|
4744
|
-
* @summary Get metrics
|
|
4745
|
-
* @param {*} [options] Override http request option.
|
|
4746
|
-
* @throws {RequiredError}
|
|
4747
|
-
*/
|
|
4748
|
-
metaGetMetrics(options) {
|
|
4749
|
-
return localVarFp.metaGetMetrics(options).then((request) => request(axios, basePath));
|
|
4750
|
-
},
|
|
4751
5201
|
/**
|
|
4752
5202
|
* <br> OperationId: `MetaGetOpenApi`
|
|
4753
5203
|
* @summary Get open api
|
|
@@ -4817,18 +5267,6 @@ export class MetaApi extends BaseAPI {
|
|
|
4817
5267
|
.metaGetLiveness(options)
|
|
4818
5268
|
.then((request) => request(this.axios, this.basePath));
|
|
4819
5269
|
}
|
|
4820
|
-
/**
|
|
4821
|
-
* <br> OperationId: `MetaGetMetrics`
|
|
4822
|
-
* @summary Get metrics
|
|
4823
|
-
* @param {*} [options] Override http request option.
|
|
4824
|
-
* @throws {RequiredError}
|
|
4825
|
-
* @memberof MetaApi
|
|
4826
|
-
*/
|
|
4827
|
-
metaGetMetrics(options) {
|
|
4828
|
-
return MetaApiFp(this.configuration)
|
|
4829
|
-
.metaGetMetrics(options)
|
|
4830
|
-
.then((request) => request(this.axios, this.basePath));
|
|
4831
|
-
}
|
|
4832
5270
|
/**
|
|
4833
5271
|
* <br> OperationId: `MetaGetOpenApi`
|
|
4834
5272
|
* @summary Get open api
|
|
@@ -5189,19 +5627,92 @@ export class StaffAuthApi extends BaseAPI {
|
|
|
5189
5627
|
}
|
|
5190
5628
|
}
|
|
5191
5629
|
/**
|
|
5192
|
-
*
|
|
5630
|
+
* StaffDomainLimitsApi - axios parameter creator
|
|
5193
5631
|
* @export
|
|
5194
5632
|
*/
|
|
5195
|
-
export const
|
|
5633
|
+
export const StaffDomainLimitsApiAxiosParamCreator = function (configuration) {
|
|
5196
5634
|
return {
|
|
5197
5635
|
/**
|
|
5198
|
-
* The
|
|
5199
|
-
* @summary
|
|
5636
|
+
* The Plan’s value applies again at once.<br> OperationId: `StaffDomainLimitsControllerClear`
|
|
5637
|
+
* @summary Clear a limit override of a Domain
|
|
5638
|
+
* @param {string} id
|
|
5639
|
+
* @param {string} limitKey
|
|
5640
|
+
* @param {DomainLimitOverrideClearInputDTO} [domainLimitOverrideClearInputDTO] DomainLimitOverrideClearInputDTO
|
|
5200
5641
|
* @param {*} [options] Override http request option.
|
|
5201
5642
|
* @throws {RequiredError}
|
|
5202
5643
|
*/
|
|
5203
|
-
|
|
5204
|
-
|
|
5644
|
+
staffDomainLimitsControllerClear: async (id, limitKey, domainLimitOverrideClearInputDTO, options = {}) => {
|
|
5645
|
+
// verify required parameter 'id' is not null or undefined
|
|
5646
|
+
assertParamExists('staffDomainLimitsControllerClear', 'id', id);
|
|
5647
|
+
// verify required parameter 'limitKey' is not null or undefined
|
|
5648
|
+
assertParamExists('staffDomainLimitsControllerClear', 'limitKey', limitKey);
|
|
5649
|
+
const localVarPath = `/staff/domains/{id}/limits/{limitKey}`
|
|
5650
|
+
.replace(`{${'id'}}`, encodeURIComponent(String(id)))
|
|
5651
|
+
.replace(`{${'limitKey'}}`, encodeURIComponent(String(limitKey)));
|
|
5652
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5653
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5654
|
+
let baseOptions;
|
|
5655
|
+
if (configuration) {
|
|
5656
|
+
baseOptions = configuration.baseOptions;
|
|
5657
|
+
}
|
|
5658
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
5659
|
+
const localVarHeaderParameter = {};
|
|
5660
|
+
const localVarQueryParameter = {};
|
|
5661
|
+
// authentication staffSession required
|
|
5662
|
+
// authentication adminAuth required
|
|
5663
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
5664
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5665
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5666
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5667
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5668
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainLimitOverrideClearInputDTO, localVarRequestOptions, configuration);
|
|
5669
|
+
return {
|
|
5670
|
+
url: toPathString(localVarUrlObj),
|
|
5671
|
+
options: localVarRequestOptions,
|
|
5672
|
+
};
|
|
5673
|
+
},
|
|
5674
|
+
/**
|
|
5675
|
+
* Every limit with its value and source: the Plan, an override, or `unmanaged` for a Domain with no Plan.<br> OperationId: `StaffDomainLimitsControllerGet`
|
|
5676
|
+
* @summary Effective limits of a Domain
|
|
5677
|
+
* @param {string} id
|
|
5678
|
+
* @param {*} [options] Override http request option.
|
|
5679
|
+
* @throws {RequiredError}
|
|
5680
|
+
*/
|
|
5681
|
+
staffDomainLimitsControllerGet: async (id, options = {}) => {
|
|
5682
|
+
// verify required parameter 'id' is not null or undefined
|
|
5683
|
+
assertParamExists('staffDomainLimitsControllerGet', 'id', id);
|
|
5684
|
+
const localVarPath = `/staff/domains/{id}/limits`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
5685
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5686
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5687
|
+
let baseOptions;
|
|
5688
|
+
if (configuration) {
|
|
5689
|
+
baseOptions = configuration.baseOptions;
|
|
5690
|
+
}
|
|
5691
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
5692
|
+
const localVarHeaderParameter = {};
|
|
5693
|
+
const localVarQueryParameter = {};
|
|
5694
|
+
// authentication staffSession required
|
|
5695
|
+
// authentication adminAuth required
|
|
5696
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
5697
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5698
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5699
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5700
|
+
return {
|
|
5701
|
+
url: toPathString(localVarUrlObj),
|
|
5702
|
+
options: localVarRequestOptions,
|
|
5703
|
+
};
|
|
5704
|
+
},
|
|
5705
|
+
/**
|
|
5706
|
+
* Newest first.<br> OperationId: `StaffDomainLimitsControllerHistory`
|
|
5707
|
+
* @summary Limit override history of a Domain
|
|
5708
|
+
* @param {string} id
|
|
5709
|
+
* @param {*} [options] Override http request option.
|
|
5710
|
+
* @throws {RequiredError}
|
|
5711
|
+
*/
|
|
5712
|
+
staffDomainLimitsControllerHistory: async (id, options = {}) => {
|
|
5713
|
+
// verify required parameter 'id' is not null or undefined
|
|
5714
|
+
assertParamExists('staffDomainLimitsControllerHistory', 'id', id);
|
|
5715
|
+
const localVarPath = `/staff/domains/{id}/limits/history`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
5205
5716
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5206
5717
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5207
5718
|
let baseOptions;
|
|
@@ -5222,81 +5733,249 @@ export const StaffMeApiAxiosParamCreator = function (configuration) {
|
|
|
5222
5733
|
options: localVarRequestOptions,
|
|
5223
5734
|
};
|
|
5224
5735
|
},
|
|
5736
|
+
/**
|
|
5737
|
+
* Applies at once and survives Plan changes, until it expires or is cleared. Only for a Domain on a Plan. Shrinking `maxGameservers` disables the newest excess servers. An expired override reads as the Plan value at once, but the enforced limit follows at the next hourly sweep, so up to an hour later.<br> OperationId: `StaffDomainLimitsControllerSet`
|
|
5738
|
+
* @summary Override one limit of a Domain
|
|
5739
|
+
* @param {string} id
|
|
5740
|
+
* @param {string} limitKey
|
|
5741
|
+
* @param {DomainLimitOverrideInputDTO} [domainLimitOverrideInputDTO] DomainLimitOverrideInputDTO
|
|
5742
|
+
* @param {*} [options] Override http request option.
|
|
5743
|
+
* @throws {RequiredError}
|
|
5744
|
+
*/
|
|
5745
|
+
staffDomainLimitsControllerSet: async (id, limitKey, domainLimitOverrideInputDTO, options = {}) => {
|
|
5746
|
+
// verify required parameter 'id' is not null or undefined
|
|
5747
|
+
assertParamExists('staffDomainLimitsControllerSet', 'id', id);
|
|
5748
|
+
// verify required parameter 'limitKey' is not null or undefined
|
|
5749
|
+
assertParamExists('staffDomainLimitsControllerSet', 'limitKey', limitKey);
|
|
5750
|
+
const localVarPath = `/staff/domains/{id}/limits/{limitKey}`
|
|
5751
|
+
.replace(`{${'id'}}`, encodeURIComponent(String(id)))
|
|
5752
|
+
.replace(`{${'limitKey'}}`, encodeURIComponent(String(limitKey)));
|
|
5753
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5754
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5755
|
+
let baseOptions;
|
|
5756
|
+
if (configuration) {
|
|
5757
|
+
baseOptions = configuration.baseOptions;
|
|
5758
|
+
}
|
|
5759
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
5760
|
+
const localVarHeaderParameter = {};
|
|
5761
|
+
const localVarQueryParameter = {};
|
|
5762
|
+
// authentication staffSession required
|
|
5763
|
+
// authentication adminAuth required
|
|
5764
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
5765
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5766
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5767
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5768
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
5769
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainLimitOverrideInputDTO, localVarRequestOptions, configuration);
|
|
5770
|
+
return {
|
|
5771
|
+
url: toPathString(localVarUrlObj),
|
|
5772
|
+
options: localVarRequestOptions,
|
|
5773
|
+
};
|
|
5774
|
+
},
|
|
5225
5775
|
};
|
|
5226
5776
|
};
|
|
5227
5777
|
/**
|
|
5228
|
-
*
|
|
5778
|
+
* StaffDomainLimitsApi - functional programming interface
|
|
5229
5779
|
* @export
|
|
5230
5780
|
*/
|
|
5231
|
-
export const
|
|
5232
|
-
const localVarAxiosParamCreator =
|
|
5781
|
+
export const StaffDomainLimitsApiFp = function (configuration) {
|
|
5782
|
+
const localVarAxiosParamCreator = StaffDomainLimitsApiAxiosParamCreator(configuration);
|
|
5233
5783
|
return {
|
|
5234
5784
|
/**
|
|
5235
|
-
* The
|
|
5236
|
-
* @summary
|
|
5785
|
+
* The Plan’s value applies again at once.<br> OperationId: `StaffDomainLimitsControllerClear`
|
|
5786
|
+
* @summary Clear a limit override of a Domain
|
|
5787
|
+
* @param {string} id
|
|
5788
|
+
* @param {string} limitKey
|
|
5789
|
+
* @param {DomainLimitOverrideClearInputDTO} [domainLimitOverrideClearInputDTO] DomainLimitOverrideClearInputDTO
|
|
5237
5790
|
* @param {*} [options] Override http request option.
|
|
5238
5791
|
* @throws {RequiredError}
|
|
5239
5792
|
*/
|
|
5240
|
-
async
|
|
5241
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5793
|
+
async staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options) {
|
|
5794
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options);
|
|
5242
5795
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5243
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
5796
|
+
const localVarOperationServerBasePath = operationServerMap['StaffDomainLimitsApi.staffDomainLimitsControllerClear']?.[localVarOperationServerIndex]
|
|
5797
|
+
?.url;
|
|
5798
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5799
|
+
},
|
|
5800
|
+
/**
|
|
5801
|
+
* Every limit with its value and source: the Plan, an override, or `unmanaged` for a Domain with no Plan.<br> OperationId: `StaffDomainLimitsControllerGet`
|
|
5802
|
+
* @summary Effective limits of a Domain
|
|
5803
|
+
* @param {string} id
|
|
5804
|
+
* @param {*} [options] Override http request option.
|
|
5805
|
+
* @throws {RequiredError}
|
|
5806
|
+
*/
|
|
5807
|
+
async staffDomainLimitsControllerGet(id, options) {
|
|
5808
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffDomainLimitsControllerGet(id, options);
|
|
5809
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5810
|
+
const localVarOperationServerBasePath = operationServerMap['StaffDomainLimitsApi.staffDomainLimitsControllerGet']?.[localVarOperationServerIndex]?.url;
|
|
5811
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5812
|
+
},
|
|
5813
|
+
/**
|
|
5814
|
+
* Newest first.<br> OperationId: `StaffDomainLimitsControllerHistory`
|
|
5815
|
+
* @summary Limit override history of a Domain
|
|
5816
|
+
* @param {string} id
|
|
5817
|
+
* @param {*} [options] Override http request option.
|
|
5818
|
+
* @throws {RequiredError}
|
|
5819
|
+
*/
|
|
5820
|
+
async staffDomainLimitsControllerHistory(id, options) {
|
|
5821
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffDomainLimitsControllerHistory(id, options);
|
|
5822
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5823
|
+
const localVarOperationServerBasePath = operationServerMap['StaffDomainLimitsApi.staffDomainLimitsControllerHistory']?.[localVarOperationServerIndex]
|
|
5824
|
+
?.url;
|
|
5825
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5826
|
+
},
|
|
5827
|
+
/**
|
|
5828
|
+
* Applies at once and survives Plan changes, until it expires or is cleared. Only for a Domain on a Plan. Shrinking `maxGameservers` disables the newest excess servers. An expired override reads as the Plan value at once, but the enforced limit follows at the next hourly sweep, so up to an hour later.<br> OperationId: `StaffDomainLimitsControllerSet`
|
|
5829
|
+
* @summary Override one limit of a Domain
|
|
5830
|
+
* @param {string} id
|
|
5831
|
+
* @param {string} limitKey
|
|
5832
|
+
* @param {DomainLimitOverrideInputDTO} [domainLimitOverrideInputDTO] DomainLimitOverrideInputDTO
|
|
5833
|
+
* @param {*} [options] Override http request option.
|
|
5834
|
+
* @throws {RequiredError}
|
|
5835
|
+
*/
|
|
5836
|
+
async staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options) {
|
|
5837
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options);
|
|
5838
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5839
|
+
const localVarOperationServerBasePath = operationServerMap['StaffDomainLimitsApi.staffDomainLimitsControllerSet']?.[localVarOperationServerIndex]?.url;
|
|
5244
5840
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5245
5841
|
},
|
|
5246
5842
|
};
|
|
5247
5843
|
};
|
|
5248
5844
|
/**
|
|
5249
|
-
*
|
|
5845
|
+
* StaffDomainLimitsApi - factory interface
|
|
5250
5846
|
* @export
|
|
5251
5847
|
*/
|
|
5252
|
-
export const
|
|
5253
|
-
const localVarFp =
|
|
5848
|
+
export const StaffDomainLimitsApiFactory = function (configuration, basePath, axios) {
|
|
5849
|
+
const localVarFp = StaffDomainLimitsApiFp(configuration);
|
|
5254
5850
|
return {
|
|
5255
5851
|
/**
|
|
5256
|
-
* The
|
|
5257
|
-
* @summary
|
|
5852
|
+
* The Plan’s value applies again at once.<br> OperationId: `StaffDomainLimitsControllerClear`
|
|
5853
|
+
* @summary Clear a limit override of a Domain
|
|
5854
|
+
* @param {string} id
|
|
5855
|
+
* @param {string} limitKey
|
|
5856
|
+
* @param {DomainLimitOverrideClearInputDTO} [domainLimitOverrideClearInputDTO] DomainLimitOverrideClearInputDTO
|
|
5258
5857
|
* @param {*} [options] Override http request option.
|
|
5259
5858
|
* @throws {RequiredError}
|
|
5260
5859
|
*/
|
|
5261
|
-
|
|
5262
|
-
return localVarFp
|
|
5860
|
+
staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options) {
|
|
5861
|
+
return localVarFp
|
|
5862
|
+
.staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options)
|
|
5863
|
+
.then((request) => request(axios, basePath));
|
|
5864
|
+
},
|
|
5865
|
+
/**
|
|
5866
|
+
* Every limit with its value and source: the Plan, an override, or `unmanaged` for a Domain with no Plan.<br> OperationId: `StaffDomainLimitsControllerGet`
|
|
5867
|
+
* @summary Effective limits of a Domain
|
|
5868
|
+
* @param {string} id
|
|
5869
|
+
* @param {*} [options] Override http request option.
|
|
5870
|
+
* @throws {RequiredError}
|
|
5871
|
+
*/
|
|
5872
|
+
staffDomainLimitsControllerGet(id, options) {
|
|
5873
|
+
return localVarFp.staffDomainLimitsControllerGet(id, options).then((request) => request(axios, basePath));
|
|
5874
|
+
},
|
|
5875
|
+
/**
|
|
5876
|
+
* Newest first.<br> OperationId: `StaffDomainLimitsControllerHistory`
|
|
5877
|
+
* @summary Limit override history of a Domain
|
|
5878
|
+
* @param {string} id
|
|
5879
|
+
* @param {*} [options] Override http request option.
|
|
5880
|
+
* @throws {RequiredError}
|
|
5881
|
+
*/
|
|
5882
|
+
staffDomainLimitsControllerHistory(id, options) {
|
|
5883
|
+
return localVarFp.staffDomainLimitsControllerHistory(id, options).then((request) => request(axios, basePath));
|
|
5884
|
+
},
|
|
5885
|
+
/**
|
|
5886
|
+
* Applies at once and survives Plan changes, until it expires or is cleared. Only for a Domain on a Plan. Shrinking `maxGameservers` disables the newest excess servers. An expired override reads as the Plan value at once, but the enforced limit follows at the next hourly sweep, so up to an hour later.<br> OperationId: `StaffDomainLimitsControllerSet`
|
|
5887
|
+
* @summary Override one limit of a Domain
|
|
5888
|
+
* @param {string} id
|
|
5889
|
+
* @param {string} limitKey
|
|
5890
|
+
* @param {DomainLimitOverrideInputDTO} [domainLimitOverrideInputDTO] DomainLimitOverrideInputDTO
|
|
5891
|
+
* @param {*} [options] Override http request option.
|
|
5892
|
+
* @throws {RequiredError}
|
|
5893
|
+
*/
|
|
5894
|
+
staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options) {
|
|
5895
|
+
return localVarFp
|
|
5896
|
+
.staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options)
|
|
5897
|
+
.then((request) => request(axios, basePath));
|
|
5263
5898
|
},
|
|
5264
5899
|
};
|
|
5265
5900
|
};
|
|
5266
5901
|
/**
|
|
5267
|
-
*
|
|
5902
|
+
* StaffDomainLimitsApi - object-oriented interface
|
|
5268
5903
|
* @export
|
|
5269
|
-
* @class
|
|
5904
|
+
* @class StaffDomainLimitsApi
|
|
5270
5905
|
* @extends {BaseAPI}
|
|
5271
5906
|
*/
|
|
5272
|
-
export class
|
|
5907
|
+
export class StaffDomainLimitsApi extends BaseAPI {
|
|
5273
5908
|
/**
|
|
5274
|
-
* The
|
|
5275
|
-
* @summary
|
|
5909
|
+
* The Plan’s value applies again at once.<br> OperationId: `StaffDomainLimitsControllerClear`
|
|
5910
|
+
* @summary Clear a limit override of a Domain
|
|
5911
|
+
* @param {string} id
|
|
5912
|
+
* @param {string} limitKey
|
|
5913
|
+
* @param {DomainLimitOverrideClearInputDTO} [domainLimitOverrideClearInputDTO] DomainLimitOverrideClearInputDTO
|
|
5276
5914
|
* @param {*} [options] Override http request option.
|
|
5277
5915
|
* @throws {RequiredError}
|
|
5278
|
-
* @memberof
|
|
5916
|
+
* @memberof StaffDomainLimitsApi
|
|
5279
5917
|
*/
|
|
5280
|
-
|
|
5281
|
-
return
|
|
5282
|
-
.
|
|
5918
|
+
staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options) {
|
|
5919
|
+
return StaffDomainLimitsApiFp(this.configuration)
|
|
5920
|
+
.staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options)
|
|
5921
|
+
.then((request) => request(this.axios, this.basePath));
|
|
5922
|
+
}
|
|
5923
|
+
/**
|
|
5924
|
+
* Every limit with its value and source: the Plan, an override, or `unmanaged` for a Domain with no Plan.<br> OperationId: `StaffDomainLimitsControllerGet`
|
|
5925
|
+
* @summary Effective limits of a Domain
|
|
5926
|
+
* @param {string} id
|
|
5927
|
+
* @param {*} [options] Override http request option.
|
|
5928
|
+
* @throws {RequiredError}
|
|
5929
|
+
* @memberof StaffDomainLimitsApi
|
|
5930
|
+
*/
|
|
5931
|
+
staffDomainLimitsControllerGet(id, options) {
|
|
5932
|
+
return StaffDomainLimitsApiFp(this.configuration)
|
|
5933
|
+
.staffDomainLimitsControllerGet(id, options)
|
|
5934
|
+
.then((request) => request(this.axios, this.basePath));
|
|
5935
|
+
}
|
|
5936
|
+
/**
|
|
5937
|
+
* Newest first.<br> OperationId: `StaffDomainLimitsControllerHistory`
|
|
5938
|
+
* @summary Limit override history of a Domain
|
|
5939
|
+
* @param {string} id
|
|
5940
|
+
* @param {*} [options] Override http request option.
|
|
5941
|
+
* @throws {RequiredError}
|
|
5942
|
+
* @memberof StaffDomainLimitsApi
|
|
5943
|
+
*/
|
|
5944
|
+
staffDomainLimitsControllerHistory(id, options) {
|
|
5945
|
+
return StaffDomainLimitsApiFp(this.configuration)
|
|
5946
|
+
.staffDomainLimitsControllerHistory(id, options)
|
|
5947
|
+
.then((request) => request(this.axios, this.basePath));
|
|
5948
|
+
}
|
|
5949
|
+
/**
|
|
5950
|
+
* Applies at once and survives Plan changes, until it expires or is cleared. Only for a Domain on a Plan. Shrinking `maxGameservers` disables the newest excess servers. An expired override reads as the Plan value at once, but the enforced limit follows at the next hourly sweep, so up to an hour later.<br> OperationId: `StaffDomainLimitsControllerSet`
|
|
5951
|
+
* @summary Override one limit of a Domain
|
|
5952
|
+
* @param {string} id
|
|
5953
|
+
* @param {string} limitKey
|
|
5954
|
+
* @param {DomainLimitOverrideInputDTO} [domainLimitOverrideInputDTO] DomainLimitOverrideInputDTO
|
|
5955
|
+
* @param {*} [options] Override http request option.
|
|
5956
|
+
* @throws {RequiredError}
|
|
5957
|
+
* @memberof StaffDomainLimitsApi
|
|
5958
|
+
*/
|
|
5959
|
+
staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options) {
|
|
5960
|
+
return StaffDomainLimitsApiFp(this.configuration)
|
|
5961
|
+
.staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options)
|
|
5283
5962
|
.then((request) => request(this.axios, this.basePath));
|
|
5284
5963
|
}
|
|
5285
5964
|
}
|
|
5286
5965
|
/**
|
|
5287
|
-
*
|
|
5966
|
+
* StaffMeApi - axios parameter creator
|
|
5288
5967
|
* @export
|
|
5289
5968
|
*/
|
|
5290
|
-
export const
|
|
5969
|
+
export const StaffMeApiAxiosParamCreator = function (configuration) {
|
|
5291
5970
|
return {
|
|
5292
5971
|
/**
|
|
5293
|
-
*
|
|
5294
|
-
* @summary
|
|
5972
|
+
* The signed-in Takaro Staff member and their tier (ADR 0026). Deliberately nothing else: no domains, no permissions, and never a token.<br> OperationId: `StaffMeControllerMe`
|
|
5973
|
+
* @summary Who this Staff session belongs to
|
|
5295
5974
|
* @param {*} [options] Override http request option.
|
|
5296
5975
|
* @throws {RequiredError}
|
|
5297
5976
|
*/
|
|
5298
|
-
|
|
5299
|
-
const localVarPath = `/staff/
|
|
5977
|
+
staffMeControllerMe: async (options = {}) => {
|
|
5978
|
+
const localVarPath = `/staff/me`;
|
|
5300
5979
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5301
5980
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5302
5981
|
let baseOptions;
|
|
@@ -5320,61 +5999,717 @@ export const StaffPlanApiAxiosParamCreator = function (configuration) {
|
|
|
5320
5999
|
};
|
|
5321
6000
|
};
|
|
5322
6001
|
/**
|
|
5323
|
-
*
|
|
6002
|
+
* StaffMeApi - functional programming interface
|
|
5324
6003
|
* @export
|
|
5325
6004
|
*/
|
|
5326
|
-
export const
|
|
5327
|
-
const localVarAxiosParamCreator =
|
|
6005
|
+
export const StaffMeApiFp = function (configuration) {
|
|
6006
|
+
const localVarAxiosParamCreator = StaffMeApiAxiosParamCreator(configuration);
|
|
5328
6007
|
return {
|
|
5329
6008
|
/**
|
|
5330
|
-
*
|
|
5331
|
-
* @summary
|
|
6009
|
+
* The signed-in Takaro Staff member and their tier (ADR 0026). Deliberately nothing else: no domains, no permissions, and never a token.<br> OperationId: `StaffMeControllerMe`
|
|
6010
|
+
* @summary Who this Staff session belongs to
|
|
5332
6011
|
* @param {*} [options] Override http request option.
|
|
5333
6012
|
* @throws {RequiredError}
|
|
5334
6013
|
*/
|
|
5335
|
-
async
|
|
5336
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
6014
|
+
async staffMeControllerMe(options) {
|
|
6015
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffMeControllerMe(options);
|
|
5337
6016
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5338
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
6017
|
+
const localVarOperationServerBasePath = operationServerMap['StaffMeApi.staffMeControllerMe']?.[localVarOperationServerIndex]?.url;
|
|
5339
6018
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5340
6019
|
},
|
|
5341
6020
|
};
|
|
5342
6021
|
};
|
|
5343
6022
|
/**
|
|
5344
|
-
*
|
|
6023
|
+
* StaffMeApi - factory interface
|
|
5345
6024
|
* @export
|
|
5346
6025
|
*/
|
|
5347
|
-
export const
|
|
5348
|
-
const localVarFp =
|
|
6026
|
+
export const StaffMeApiFactory = function (configuration, basePath, axios) {
|
|
6027
|
+
const localVarFp = StaffMeApiFp(configuration);
|
|
5349
6028
|
return {
|
|
5350
6029
|
/**
|
|
5351
|
-
*
|
|
5352
|
-
* @summary
|
|
6030
|
+
* The signed-in Takaro Staff member and their tier (ADR 0026). Deliberately nothing else: no domains, no permissions, and never a token.<br> OperationId: `StaffMeControllerMe`
|
|
6031
|
+
* @summary Who this Staff session belongs to
|
|
5353
6032
|
* @param {*} [options] Override http request option.
|
|
5354
6033
|
* @throws {RequiredError}
|
|
5355
6034
|
*/
|
|
5356
|
-
|
|
5357
|
-
return localVarFp.
|
|
6035
|
+
staffMeControllerMe(options) {
|
|
6036
|
+
return localVarFp.staffMeControllerMe(options).then((request) => request(axios, basePath));
|
|
5358
6037
|
},
|
|
5359
6038
|
};
|
|
5360
6039
|
};
|
|
5361
6040
|
/**
|
|
5362
|
-
*
|
|
6041
|
+
* StaffMeApi - object-oriented interface
|
|
5363
6042
|
* @export
|
|
5364
|
-
* @class
|
|
6043
|
+
* @class StaffMeApi
|
|
5365
6044
|
* @extends {BaseAPI}
|
|
5366
6045
|
*/
|
|
5367
|
-
export class
|
|
6046
|
+
export class StaffMeApi extends BaseAPI {
|
|
5368
6047
|
/**
|
|
5369
|
-
*
|
|
5370
|
-
* @summary
|
|
6048
|
+
* The signed-in Takaro Staff member and their tier (ADR 0026). Deliberately nothing else: no domains, no permissions, and never a token.<br> OperationId: `StaffMeControllerMe`
|
|
6049
|
+
* @summary Who this Staff session belongs to
|
|
6050
|
+
* @param {*} [options] Override http request option.
|
|
6051
|
+
* @throws {RequiredError}
|
|
6052
|
+
* @memberof StaffMeApi
|
|
6053
|
+
*/
|
|
6054
|
+
staffMeControllerMe(options) {
|
|
6055
|
+
return StaffMeApiFp(this.configuration)
|
|
6056
|
+
.staffMeControllerMe(options)
|
|
6057
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6058
|
+
}
|
|
6059
|
+
}
|
|
6060
|
+
/**
|
|
6061
|
+
* StaffPlanApi - axios parameter creator
|
|
6062
|
+
* @export
|
|
6063
|
+
*/
|
|
6064
|
+
export const StaffPlanApiAxiosParamCreator = function (configuration) {
|
|
6065
|
+
return {
|
|
6066
|
+
/**
|
|
6067
|
+
* Refused while any Domain is on the Plan or any Distributor allows it. Frees its billing-provider product for another Plan; the history keeps the old link. Idempotent.<br> OperationId: `StaffPlanControllerArchive`
|
|
6068
|
+
* @summary Archive a Plan
|
|
6069
|
+
* @param {string} id
|
|
6070
|
+
* @param {PlanArchiveInputDTO} [planArchiveInputDTO] PlanArchiveInputDTO
|
|
6071
|
+
* @param {*} [options] Override http request option.
|
|
6072
|
+
* @throws {RequiredError}
|
|
6073
|
+
*/
|
|
6074
|
+
staffPlanControllerArchive: async (id, planArchiveInputDTO, options = {}) => {
|
|
6075
|
+
// verify required parameter 'id' is not null or undefined
|
|
6076
|
+
assertParamExists('staffPlanControllerArchive', 'id', id);
|
|
6077
|
+
const localVarPath = `/staff/plans/{id}/archive`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
6078
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6079
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6080
|
+
let baseOptions;
|
|
6081
|
+
if (configuration) {
|
|
6082
|
+
baseOptions = configuration.baseOptions;
|
|
6083
|
+
}
|
|
6084
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6085
|
+
const localVarHeaderParameter = {};
|
|
6086
|
+
const localVarQueryParameter = {};
|
|
6087
|
+
// authentication staffSession required
|
|
6088
|
+
// authentication adminAuth required
|
|
6089
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
6090
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6091
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6092
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6093
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6094
|
+
localVarRequestOptions.data = serializeDataIfNeeded(planArchiveInputDTO, localVarRequestOptions, configuration);
|
|
6095
|
+
return {
|
|
6096
|
+
url: toPathString(localVarUrlObj),
|
|
6097
|
+
options: localVarRequestOptions,
|
|
6098
|
+
};
|
|
6099
|
+
},
|
|
6100
|
+
/**
|
|
6101
|
+
* Omitted limits take the Domain column defaults. Recorded with who, when and the reason.<br> OperationId: `StaffPlanControllerCreate`
|
|
6102
|
+
* @summary Create a Plan
|
|
6103
|
+
* @param {PlanCreateInputDTO} [planCreateInputDTO] PlanCreateInputDTO
|
|
6104
|
+
* @param {*} [options] Override http request option.
|
|
6105
|
+
* @throws {RequiredError}
|
|
6106
|
+
*/
|
|
6107
|
+
staffPlanControllerCreate: async (planCreateInputDTO, options = {}) => {
|
|
6108
|
+
const localVarPath = `/staff/plans`;
|
|
6109
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6110
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6111
|
+
let baseOptions;
|
|
6112
|
+
if (configuration) {
|
|
6113
|
+
baseOptions = configuration.baseOptions;
|
|
6114
|
+
}
|
|
6115
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6116
|
+
const localVarHeaderParameter = {};
|
|
6117
|
+
const localVarQueryParameter = {};
|
|
6118
|
+
// authentication staffSession required
|
|
6119
|
+
// authentication adminAuth required
|
|
6120
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
6121
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6122
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6123
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6124
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6125
|
+
localVarRequestOptions.data = serializeDataIfNeeded(planCreateInputDTO, localVarRequestOptions, configuration);
|
|
6126
|
+
return {
|
|
6127
|
+
url: toPathString(localVarUrlObj),
|
|
6128
|
+
options: localVarRequestOptions,
|
|
6129
|
+
};
|
|
6130
|
+
},
|
|
6131
|
+
/**
|
|
6132
|
+
* Newest first, each with the Plan as it was after.<br> OperationId: `StaffPlanControllerHistory`
|
|
6133
|
+
* @summary Change history of a Plan
|
|
6134
|
+
* @param {string} id
|
|
6135
|
+
* @param {*} [options] Override http request option.
|
|
6136
|
+
* @throws {RequiredError}
|
|
6137
|
+
*/
|
|
6138
|
+
staffPlanControllerHistory: async (id, options = {}) => {
|
|
6139
|
+
// verify required parameter 'id' is not null or undefined
|
|
6140
|
+
assertParamExists('staffPlanControllerHistory', 'id', id);
|
|
6141
|
+
const localVarPath = `/staff/plans/{id}/history`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
6142
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6143
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6144
|
+
let baseOptions;
|
|
6145
|
+
if (configuration) {
|
|
6146
|
+
baseOptions = configuration.baseOptions;
|
|
6147
|
+
}
|
|
6148
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
6149
|
+
const localVarHeaderParameter = {};
|
|
6150
|
+
const localVarQueryParameter = {};
|
|
6151
|
+
// authentication staffSession required
|
|
6152
|
+
// authentication adminAuth required
|
|
6153
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
6154
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6155
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6156
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6157
|
+
return {
|
|
6158
|
+
url: toPathString(localVarUrlObj),
|
|
6159
|
+
options: localVarRequestOptions,
|
|
6160
|
+
};
|
|
6161
|
+
},
|
|
6162
|
+
/**
|
|
6163
|
+
* Creates a Plan per billing-provider product in one transaction; a no-op once any import was recorded. Domains and Distributors still on a legacy product id move to its Plan, and a Domain that predates Plans keeps its hand-set limits as overrides. A product already linked to a Plan maps to that Plan instead.<br> OperationId: `StaffPlanControllerImport`
|
|
6164
|
+
* @summary Import Plans from the billing provider
|
|
6165
|
+
* @param {PlanImportInputDTO} [planImportInputDTO] PlanImportInputDTO
|
|
6166
|
+
* @param {*} [options] Override http request option.
|
|
6167
|
+
* @throws {RequiredError}
|
|
6168
|
+
*/
|
|
6169
|
+
staffPlanControllerImport: async (planImportInputDTO, options = {}) => {
|
|
6170
|
+
const localVarPath = `/staff/plans/import`;
|
|
6171
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6172
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6173
|
+
let baseOptions;
|
|
6174
|
+
if (configuration) {
|
|
6175
|
+
baseOptions = configuration.baseOptions;
|
|
6176
|
+
}
|
|
6177
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6178
|
+
const localVarHeaderParameter = {};
|
|
6179
|
+
const localVarQueryParameter = {};
|
|
6180
|
+
// authentication staffSession required
|
|
6181
|
+
// authentication adminAuth required
|
|
6182
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
6183
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6184
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6185
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6186
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6187
|
+
localVarRequestOptions.data = serializeDataIfNeeded(planImportInputDTO, localVarRequestOptions, configuration);
|
|
6188
|
+
return {
|
|
6189
|
+
url: toPathString(localVarUrlObj),
|
|
6190
|
+
options: localVarRequestOptions,
|
|
6191
|
+
};
|
|
6192
|
+
},
|
|
6193
|
+
/**
|
|
6194
|
+
* True once an import has created any Plan, even if those Plans were later unlinked or archived.<br> OperationId: `StaffPlanControllerImportStatus`
|
|
6195
|
+
* @summary Whether the billing-provider import ran
|
|
6196
|
+
* @param {*} [options] Override http request option.
|
|
6197
|
+
* @throws {RequiredError}
|
|
6198
|
+
*/
|
|
6199
|
+
staffPlanControllerImportStatus: async (options = {}) => {
|
|
6200
|
+
const localVarPath = `/staff/plans/import`;
|
|
6201
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6202
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6203
|
+
let baseOptions;
|
|
6204
|
+
if (configuration) {
|
|
6205
|
+
baseOptions = configuration.baseOptions;
|
|
6206
|
+
}
|
|
6207
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
6208
|
+
const localVarHeaderParameter = {};
|
|
6209
|
+
const localVarQueryParameter = {};
|
|
6210
|
+
// authentication staffSession required
|
|
6211
|
+
// authentication adminAuth required
|
|
6212
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
6213
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6214
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6215
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6216
|
+
return {
|
|
6217
|
+
url: toPathString(localVarUrlObj),
|
|
6218
|
+
options: localVarRequestOptions,
|
|
6219
|
+
};
|
|
6220
|
+
},
|
|
6221
|
+
/**
|
|
6222
|
+
* Every Takaro Plan, oldest first. Archived Plans only with `includeArchived=true`. The ids here are what a Distributor’s allowedPlans and a Domain’s planId hold.<br> OperationId: `StaffPlanControllerList`
|
|
6223
|
+
* @summary List Plans
|
|
6224
|
+
* @param {any} [includeArchived]
|
|
6225
|
+
* @param {*} [options] Override http request option.
|
|
6226
|
+
* @throws {RequiredError}
|
|
6227
|
+
*/
|
|
6228
|
+
staffPlanControllerList: async (includeArchived, options = {}) => {
|
|
6229
|
+
const localVarPath = `/staff/plans`;
|
|
6230
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6231
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6232
|
+
let baseOptions;
|
|
6233
|
+
if (configuration) {
|
|
6234
|
+
baseOptions = configuration.baseOptions;
|
|
6235
|
+
}
|
|
6236
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
6237
|
+
const localVarHeaderParameter = {};
|
|
6238
|
+
const localVarQueryParameter = {};
|
|
6239
|
+
// authentication staffSession required
|
|
6240
|
+
// authentication adminAuth required
|
|
6241
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
6242
|
+
if (includeArchived !== undefined) {
|
|
6243
|
+
for (const [key, value] of Object.entries(includeArchived)) {
|
|
6244
|
+
localVarQueryParameter[key] = value;
|
|
6245
|
+
}
|
|
6246
|
+
}
|
|
6247
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6248
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6249
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6250
|
+
return {
|
|
6251
|
+
url: toPathString(localVarUrlObj),
|
|
6252
|
+
options: localVarRequestOptions,
|
|
6253
|
+
};
|
|
6254
|
+
},
|
|
6255
|
+
/**
|
|
6256
|
+
* Every product the billing provider knows about, with its prices, unfiltered by storefront lookup keys. A Plan’s stripeProductId is one of these ids.<br> OperationId: `StaffPlanControllerListStripeProducts`
|
|
6257
|
+
* @summary The billing provider’s products
|
|
6258
|
+
* @param {*} [options] Override http request option.
|
|
6259
|
+
* @throws {RequiredError}
|
|
6260
|
+
*/
|
|
6261
|
+
staffPlanControllerListStripeProducts: async (options = {}) => {
|
|
6262
|
+
const localVarPath = `/staff/stripe-products`;
|
|
6263
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6264
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6265
|
+
let baseOptions;
|
|
6266
|
+
if (configuration) {
|
|
6267
|
+
baseOptions = configuration.baseOptions;
|
|
6268
|
+
}
|
|
6269
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
6270
|
+
const localVarHeaderParameter = {};
|
|
6271
|
+
const localVarQueryParameter = {};
|
|
6272
|
+
// authentication staffSession required
|
|
6273
|
+
// authentication adminAuth required
|
|
6274
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
6275
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6276
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6277
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6278
|
+
return {
|
|
6279
|
+
url: toPathString(localVarUrlObj),
|
|
6280
|
+
options: localVarRequestOptions,
|
|
6281
|
+
};
|
|
6282
|
+
},
|
|
6283
|
+
/**
|
|
6284
|
+
* A dry run of the proposed limits: how many Domains change, how many game servers would be disabled, and how many Domains would be over their user or role limits. Overrides are taken into account.<br> OperationId: `StaffPlanControllerPreview`
|
|
6285
|
+
* @summary Preview a Plan edit
|
|
6286
|
+
* @param {string} id
|
|
6287
|
+
* @param {PlanPreviewInputDTO} [planPreviewInputDTO] PlanPreviewInputDTO
|
|
6288
|
+
* @param {*} [options] Override http request option.
|
|
6289
|
+
* @throws {RequiredError}
|
|
6290
|
+
*/
|
|
6291
|
+
staffPlanControllerPreview: async (id, planPreviewInputDTO, options = {}) => {
|
|
6292
|
+
// verify required parameter 'id' is not null or undefined
|
|
6293
|
+
assertParamExists('staffPlanControllerPreview', 'id', id);
|
|
6294
|
+
const localVarPath = `/staff/plans/{id}/preview`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
6295
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6296
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6297
|
+
let baseOptions;
|
|
6298
|
+
if (configuration) {
|
|
6299
|
+
baseOptions = configuration.baseOptions;
|
|
6300
|
+
}
|
|
6301
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
6302
|
+
const localVarHeaderParameter = {};
|
|
6303
|
+
const localVarQueryParameter = {};
|
|
6304
|
+
// authentication staffSession required
|
|
6305
|
+
// authentication adminAuth required
|
|
6306
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
6307
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6308
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6309
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6310
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6311
|
+
localVarRequestOptions.data = serializeDataIfNeeded(planPreviewInputDTO, localVarRequestOptions, configuration);
|
|
6312
|
+
return {
|
|
6313
|
+
url: toPathString(localVarUrlObj),
|
|
6314
|
+
options: localVarRequestOptions,
|
|
6315
|
+
};
|
|
6316
|
+
},
|
|
6317
|
+
/**
|
|
6318
|
+
* Changed limits reach every Domain on the Plan shortly after, through a queued job. A shrink of `maxGameservers` disables the newest excess servers; preview it first. Changing or removing the billing-provider product is refused with a 409 while a subscription-backed Domain is on the Plan.<br> OperationId: `StaffPlanControllerUpdate`
|
|
6319
|
+
* @summary Update a Plan
|
|
6320
|
+
* @param {string} id
|
|
6321
|
+
* @param {PlanUpdateInputDTO} [planUpdateInputDTO] PlanUpdateInputDTO
|
|
6322
|
+
* @param {*} [options] Override http request option.
|
|
6323
|
+
* @throws {RequiredError}
|
|
6324
|
+
*/
|
|
6325
|
+
staffPlanControllerUpdate: async (id, planUpdateInputDTO, options = {}) => {
|
|
6326
|
+
// verify required parameter 'id' is not null or undefined
|
|
6327
|
+
assertParamExists('staffPlanControllerUpdate', 'id', id);
|
|
6328
|
+
const localVarPath = `/staff/plans/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
6329
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6330
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6331
|
+
let baseOptions;
|
|
6332
|
+
if (configuration) {
|
|
6333
|
+
baseOptions = configuration.baseOptions;
|
|
6334
|
+
}
|
|
6335
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
6336
|
+
const localVarHeaderParameter = {};
|
|
6337
|
+
const localVarQueryParameter = {};
|
|
6338
|
+
// authentication staffSession required
|
|
6339
|
+
// authentication adminAuth required
|
|
6340
|
+
await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
|
|
6341
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6342
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6343
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6344
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
6345
|
+
localVarRequestOptions.data = serializeDataIfNeeded(planUpdateInputDTO, localVarRequestOptions, configuration);
|
|
6346
|
+
return {
|
|
6347
|
+
url: toPathString(localVarUrlObj),
|
|
6348
|
+
options: localVarRequestOptions,
|
|
6349
|
+
};
|
|
6350
|
+
},
|
|
6351
|
+
};
|
|
6352
|
+
};
|
|
6353
|
+
/**
|
|
6354
|
+
* StaffPlanApi - functional programming interface
|
|
6355
|
+
* @export
|
|
6356
|
+
*/
|
|
6357
|
+
export const StaffPlanApiFp = function (configuration) {
|
|
6358
|
+
const localVarAxiosParamCreator = StaffPlanApiAxiosParamCreator(configuration);
|
|
6359
|
+
return {
|
|
6360
|
+
/**
|
|
6361
|
+
* Refused while any Domain is on the Plan or any Distributor allows it. Frees its billing-provider product for another Plan; the history keeps the old link. Idempotent.<br> OperationId: `StaffPlanControllerArchive`
|
|
6362
|
+
* @summary Archive a Plan
|
|
6363
|
+
* @param {string} id
|
|
6364
|
+
* @param {PlanArchiveInputDTO} [planArchiveInputDTO] PlanArchiveInputDTO
|
|
6365
|
+
* @param {*} [options] Override http request option.
|
|
6366
|
+
* @throws {RequiredError}
|
|
6367
|
+
*/
|
|
6368
|
+
async staffPlanControllerArchive(id, planArchiveInputDTO, options) {
|
|
6369
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerArchive(id, planArchiveInputDTO, options);
|
|
6370
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6371
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerArchive']?.[localVarOperationServerIndex]?.url;
|
|
6372
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6373
|
+
},
|
|
6374
|
+
/**
|
|
6375
|
+
* Omitted limits take the Domain column defaults. Recorded with who, when and the reason.<br> OperationId: `StaffPlanControllerCreate`
|
|
6376
|
+
* @summary Create a Plan
|
|
6377
|
+
* @param {PlanCreateInputDTO} [planCreateInputDTO] PlanCreateInputDTO
|
|
6378
|
+
* @param {*} [options] Override http request option.
|
|
6379
|
+
* @throws {RequiredError}
|
|
6380
|
+
*/
|
|
6381
|
+
async staffPlanControllerCreate(planCreateInputDTO, options) {
|
|
6382
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerCreate(planCreateInputDTO, options);
|
|
6383
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6384
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerCreate']?.[localVarOperationServerIndex]?.url;
|
|
6385
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6386
|
+
},
|
|
6387
|
+
/**
|
|
6388
|
+
* Newest first, each with the Plan as it was after.<br> OperationId: `StaffPlanControllerHistory`
|
|
6389
|
+
* @summary Change history of a Plan
|
|
6390
|
+
* @param {string} id
|
|
6391
|
+
* @param {*} [options] Override http request option.
|
|
6392
|
+
* @throws {RequiredError}
|
|
6393
|
+
*/
|
|
6394
|
+
async staffPlanControllerHistory(id, options) {
|
|
6395
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerHistory(id, options);
|
|
6396
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6397
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerHistory']?.[localVarOperationServerIndex]?.url;
|
|
6398
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6399
|
+
},
|
|
6400
|
+
/**
|
|
6401
|
+
* Creates a Plan per billing-provider product in one transaction; a no-op once any import was recorded. Domains and Distributors still on a legacy product id move to its Plan, and a Domain that predates Plans keeps its hand-set limits as overrides. A product already linked to a Plan maps to that Plan instead.<br> OperationId: `StaffPlanControllerImport`
|
|
6402
|
+
* @summary Import Plans from the billing provider
|
|
6403
|
+
* @param {PlanImportInputDTO} [planImportInputDTO] PlanImportInputDTO
|
|
6404
|
+
* @param {*} [options] Override http request option.
|
|
6405
|
+
* @throws {RequiredError}
|
|
6406
|
+
*/
|
|
6407
|
+
async staffPlanControllerImport(planImportInputDTO, options) {
|
|
6408
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerImport(planImportInputDTO, options);
|
|
6409
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6410
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerImport']?.[localVarOperationServerIndex]?.url;
|
|
6411
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6412
|
+
},
|
|
6413
|
+
/**
|
|
6414
|
+
* True once an import has created any Plan, even if those Plans were later unlinked or archived.<br> OperationId: `StaffPlanControllerImportStatus`
|
|
6415
|
+
* @summary Whether the billing-provider import ran
|
|
6416
|
+
* @param {*} [options] Override http request option.
|
|
6417
|
+
* @throws {RequiredError}
|
|
6418
|
+
*/
|
|
6419
|
+
async staffPlanControllerImportStatus(options) {
|
|
6420
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerImportStatus(options);
|
|
6421
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6422
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerImportStatus']?.[localVarOperationServerIndex]?.url;
|
|
6423
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6424
|
+
},
|
|
6425
|
+
/**
|
|
6426
|
+
* Every Takaro Plan, oldest first. Archived Plans only with `includeArchived=true`. The ids here are what a Distributor’s allowedPlans and a Domain’s planId hold.<br> OperationId: `StaffPlanControllerList`
|
|
6427
|
+
* @summary List Plans
|
|
6428
|
+
* @param {any} [includeArchived]
|
|
6429
|
+
* @param {*} [options] Override http request option.
|
|
6430
|
+
* @throws {RequiredError}
|
|
6431
|
+
*/
|
|
6432
|
+
async staffPlanControllerList(includeArchived, options) {
|
|
6433
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerList(includeArchived, options);
|
|
6434
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6435
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerList']?.[localVarOperationServerIndex]?.url;
|
|
6436
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6437
|
+
},
|
|
6438
|
+
/**
|
|
6439
|
+
* Every product the billing provider knows about, with its prices, unfiltered by storefront lookup keys. A Plan’s stripeProductId is one of these ids.<br> OperationId: `StaffPlanControllerListStripeProducts`
|
|
6440
|
+
* @summary The billing provider’s products
|
|
6441
|
+
* @param {*} [options] Override http request option.
|
|
6442
|
+
* @throws {RequiredError}
|
|
6443
|
+
*/
|
|
6444
|
+
async staffPlanControllerListStripeProducts(options) {
|
|
6445
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerListStripeProducts(options);
|
|
6446
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6447
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerListStripeProducts']?.[localVarOperationServerIndex]?.url;
|
|
6448
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6449
|
+
},
|
|
6450
|
+
/**
|
|
6451
|
+
* A dry run of the proposed limits: how many Domains change, how many game servers would be disabled, and how many Domains would be over their user or role limits. Overrides are taken into account.<br> OperationId: `StaffPlanControllerPreview`
|
|
6452
|
+
* @summary Preview a Plan edit
|
|
6453
|
+
* @param {string} id
|
|
6454
|
+
* @param {PlanPreviewInputDTO} [planPreviewInputDTO] PlanPreviewInputDTO
|
|
6455
|
+
* @param {*} [options] Override http request option.
|
|
6456
|
+
* @throws {RequiredError}
|
|
6457
|
+
*/
|
|
6458
|
+
async staffPlanControllerPreview(id, planPreviewInputDTO, options) {
|
|
6459
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerPreview(id, planPreviewInputDTO, options);
|
|
6460
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6461
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerPreview']?.[localVarOperationServerIndex]?.url;
|
|
6462
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6463
|
+
},
|
|
6464
|
+
/**
|
|
6465
|
+
* Changed limits reach every Domain on the Plan shortly after, through a queued job. A shrink of `maxGameservers` disables the newest excess servers; preview it first. Changing or removing the billing-provider product is refused with a 409 while a subscription-backed Domain is on the Plan.<br> OperationId: `StaffPlanControllerUpdate`
|
|
6466
|
+
* @summary Update a Plan
|
|
6467
|
+
* @param {string} id
|
|
6468
|
+
* @param {PlanUpdateInputDTO} [planUpdateInputDTO] PlanUpdateInputDTO
|
|
6469
|
+
* @param {*} [options] Override http request option.
|
|
6470
|
+
* @throws {RequiredError}
|
|
6471
|
+
*/
|
|
6472
|
+
async staffPlanControllerUpdate(id, planUpdateInputDTO, options) {
|
|
6473
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerUpdate(id, planUpdateInputDTO, options);
|
|
6474
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6475
|
+
const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerUpdate']?.[localVarOperationServerIndex]?.url;
|
|
6476
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6477
|
+
},
|
|
6478
|
+
};
|
|
6479
|
+
};
|
|
6480
|
+
/**
|
|
6481
|
+
* StaffPlanApi - factory interface
|
|
6482
|
+
* @export
|
|
6483
|
+
*/
|
|
6484
|
+
export const StaffPlanApiFactory = function (configuration, basePath, axios) {
|
|
6485
|
+
const localVarFp = StaffPlanApiFp(configuration);
|
|
6486
|
+
return {
|
|
6487
|
+
/**
|
|
6488
|
+
* Refused while any Domain is on the Plan or any Distributor allows it. Frees its billing-provider product for another Plan; the history keeps the old link. Idempotent.<br> OperationId: `StaffPlanControllerArchive`
|
|
6489
|
+
* @summary Archive a Plan
|
|
6490
|
+
* @param {string} id
|
|
6491
|
+
* @param {PlanArchiveInputDTO} [planArchiveInputDTO] PlanArchiveInputDTO
|
|
6492
|
+
* @param {*} [options] Override http request option.
|
|
6493
|
+
* @throws {RequiredError}
|
|
6494
|
+
*/
|
|
6495
|
+
staffPlanControllerArchive(id, planArchiveInputDTO, options) {
|
|
6496
|
+
return localVarFp
|
|
6497
|
+
.staffPlanControllerArchive(id, planArchiveInputDTO, options)
|
|
6498
|
+
.then((request) => request(axios, basePath));
|
|
6499
|
+
},
|
|
6500
|
+
/**
|
|
6501
|
+
* Omitted limits take the Domain column defaults. Recorded with who, when and the reason.<br> OperationId: `StaffPlanControllerCreate`
|
|
6502
|
+
* @summary Create a Plan
|
|
6503
|
+
* @param {PlanCreateInputDTO} [planCreateInputDTO] PlanCreateInputDTO
|
|
6504
|
+
* @param {*} [options] Override http request option.
|
|
6505
|
+
* @throws {RequiredError}
|
|
6506
|
+
*/
|
|
6507
|
+
staffPlanControllerCreate(planCreateInputDTO, options) {
|
|
6508
|
+
return localVarFp
|
|
6509
|
+
.staffPlanControllerCreate(planCreateInputDTO, options)
|
|
6510
|
+
.then((request) => request(axios, basePath));
|
|
6511
|
+
},
|
|
6512
|
+
/**
|
|
6513
|
+
* Newest first, each with the Plan as it was after.<br> OperationId: `StaffPlanControllerHistory`
|
|
6514
|
+
* @summary Change history of a Plan
|
|
6515
|
+
* @param {string} id
|
|
6516
|
+
* @param {*} [options] Override http request option.
|
|
6517
|
+
* @throws {RequiredError}
|
|
6518
|
+
*/
|
|
6519
|
+
staffPlanControllerHistory(id, options) {
|
|
6520
|
+
return localVarFp.staffPlanControllerHistory(id, options).then((request) => request(axios, basePath));
|
|
6521
|
+
},
|
|
6522
|
+
/**
|
|
6523
|
+
* Creates a Plan per billing-provider product in one transaction; a no-op once any import was recorded. Domains and Distributors still on a legacy product id move to its Plan, and a Domain that predates Plans keeps its hand-set limits as overrides. A product already linked to a Plan maps to that Plan instead.<br> OperationId: `StaffPlanControllerImport`
|
|
6524
|
+
* @summary Import Plans from the billing provider
|
|
6525
|
+
* @param {PlanImportInputDTO} [planImportInputDTO] PlanImportInputDTO
|
|
6526
|
+
* @param {*} [options] Override http request option.
|
|
6527
|
+
* @throws {RequiredError}
|
|
6528
|
+
*/
|
|
6529
|
+
staffPlanControllerImport(planImportInputDTO, options) {
|
|
6530
|
+
return localVarFp
|
|
6531
|
+
.staffPlanControllerImport(planImportInputDTO, options)
|
|
6532
|
+
.then((request) => request(axios, basePath));
|
|
6533
|
+
},
|
|
6534
|
+
/**
|
|
6535
|
+
* True once an import has created any Plan, even if those Plans were later unlinked or archived.<br> OperationId: `StaffPlanControllerImportStatus`
|
|
6536
|
+
* @summary Whether the billing-provider import ran
|
|
6537
|
+
* @param {*} [options] Override http request option.
|
|
6538
|
+
* @throws {RequiredError}
|
|
6539
|
+
*/
|
|
6540
|
+
staffPlanControllerImportStatus(options) {
|
|
6541
|
+
return localVarFp.staffPlanControllerImportStatus(options).then((request) => request(axios, basePath));
|
|
6542
|
+
},
|
|
6543
|
+
/**
|
|
6544
|
+
* Every Takaro Plan, oldest first. Archived Plans only with `includeArchived=true`. The ids here are what a Distributor’s allowedPlans and a Domain’s planId hold.<br> OperationId: `StaffPlanControllerList`
|
|
6545
|
+
* @summary List Plans
|
|
6546
|
+
* @param {any} [includeArchived]
|
|
6547
|
+
* @param {*} [options] Override http request option.
|
|
6548
|
+
* @throws {RequiredError}
|
|
6549
|
+
*/
|
|
6550
|
+
staffPlanControllerList(includeArchived, options) {
|
|
6551
|
+
return localVarFp.staffPlanControllerList(includeArchived, options).then((request) => request(axios, basePath));
|
|
6552
|
+
},
|
|
6553
|
+
/**
|
|
6554
|
+
* Every product the billing provider knows about, with its prices, unfiltered by storefront lookup keys. A Plan’s stripeProductId is one of these ids.<br> OperationId: `StaffPlanControllerListStripeProducts`
|
|
6555
|
+
* @summary The billing provider’s products
|
|
6556
|
+
* @param {*} [options] Override http request option.
|
|
6557
|
+
* @throws {RequiredError}
|
|
6558
|
+
*/
|
|
6559
|
+
staffPlanControllerListStripeProducts(options) {
|
|
6560
|
+
return localVarFp.staffPlanControllerListStripeProducts(options).then((request) => request(axios, basePath));
|
|
6561
|
+
},
|
|
6562
|
+
/**
|
|
6563
|
+
* A dry run of the proposed limits: how many Domains change, how many game servers would be disabled, and how many Domains would be over their user or role limits. Overrides are taken into account.<br> OperationId: `StaffPlanControllerPreview`
|
|
6564
|
+
* @summary Preview a Plan edit
|
|
6565
|
+
* @param {string} id
|
|
6566
|
+
* @param {PlanPreviewInputDTO} [planPreviewInputDTO] PlanPreviewInputDTO
|
|
6567
|
+
* @param {*} [options] Override http request option.
|
|
6568
|
+
* @throws {RequiredError}
|
|
6569
|
+
*/
|
|
6570
|
+
staffPlanControllerPreview(id, planPreviewInputDTO, options) {
|
|
6571
|
+
return localVarFp
|
|
6572
|
+
.staffPlanControllerPreview(id, planPreviewInputDTO, options)
|
|
6573
|
+
.then((request) => request(axios, basePath));
|
|
6574
|
+
},
|
|
6575
|
+
/**
|
|
6576
|
+
* Changed limits reach every Domain on the Plan shortly after, through a queued job. A shrink of `maxGameservers` disables the newest excess servers; preview it first. Changing or removing the billing-provider product is refused with a 409 while a subscription-backed Domain is on the Plan.<br> OperationId: `StaffPlanControllerUpdate`
|
|
6577
|
+
* @summary Update a Plan
|
|
6578
|
+
* @param {string} id
|
|
6579
|
+
* @param {PlanUpdateInputDTO} [planUpdateInputDTO] PlanUpdateInputDTO
|
|
6580
|
+
* @param {*} [options] Override http request option.
|
|
6581
|
+
* @throws {RequiredError}
|
|
6582
|
+
*/
|
|
6583
|
+
staffPlanControllerUpdate(id, planUpdateInputDTO, options) {
|
|
6584
|
+
return localVarFp
|
|
6585
|
+
.staffPlanControllerUpdate(id, planUpdateInputDTO, options)
|
|
6586
|
+
.then((request) => request(axios, basePath));
|
|
6587
|
+
},
|
|
6588
|
+
};
|
|
6589
|
+
};
|
|
6590
|
+
/**
|
|
6591
|
+
* StaffPlanApi - object-oriented interface
|
|
6592
|
+
* @export
|
|
6593
|
+
* @class StaffPlanApi
|
|
6594
|
+
* @extends {BaseAPI}
|
|
6595
|
+
*/
|
|
6596
|
+
export class StaffPlanApi extends BaseAPI {
|
|
6597
|
+
/**
|
|
6598
|
+
* Refused while any Domain is on the Plan or any Distributor allows it. Frees its billing-provider product for another Plan; the history keeps the old link. Idempotent.<br> OperationId: `StaffPlanControllerArchive`
|
|
6599
|
+
* @summary Archive a Plan
|
|
6600
|
+
* @param {string} id
|
|
6601
|
+
* @param {PlanArchiveInputDTO} [planArchiveInputDTO] PlanArchiveInputDTO
|
|
6602
|
+
* @param {*} [options] Override http request option.
|
|
6603
|
+
* @throws {RequiredError}
|
|
6604
|
+
* @memberof StaffPlanApi
|
|
6605
|
+
*/
|
|
6606
|
+
staffPlanControllerArchive(id, planArchiveInputDTO, options) {
|
|
6607
|
+
return StaffPlanApiFp(this.configuration)
|
|
6608
|
+
.staffPlanControllerArchive(id, planArchiveInputDTO, options)
|
|
6609
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6610
|
+
}
|
|
6611
|
+
/**
|
|
6612
|
+
* Omitted limits take the Domain column defaults. Recorded with who, when and the reason.<br> OperationId: `StaffPlanControllerCreate`
|
|
6613
|
+
* @summary Create a Plan
|
|
6614
|
+
* @param {PlanCreateInputDTO} [planCreateInputDTO] PlanCreateInputDTO
|
|
6615
|
+
* @param {*} [options] Override http request option.
|
|
6616
|
+
* @throws {RequiredError}
|
|
6617
|
+
* @memberof StaffPlanApi
|
|
6618
|
+
*/
|
|
6619
|
+
staffPlanControllerCreate(planCreateInputDTO, options) {
|
|
6620
|
+
return StaffPlanApiFp(this.configuration)
|
|
6621
|
+
.staffPlanControllerCreate(planCreateInputDTO, options)
|
|
6622
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6623
|
+
}
|
|
6624
|
+
/**
|
|
6625
|
+
* Newest first, each with the Plan as it was after.<br> OperationId: `StaffPlanControllerHistory`
|
|
6626
|
+
* @summary Change history of a Plan
|
|
6627
|
+
* @param {string} id
|
|
6628
|
+
* @param {*} [options] Override http request option.
|
|
6629
|
+
* @throws {RequiredError}
|
|
6630
|
+
* @memberof StaffPlanApi
|
|
6631
|
+
*/
|
|
6632
|
+
staffPlanControllerHistory(id, options) {
|
|
6633
|
+
return StaffPlanApiFp(this.configuration)
|
|
6634
|
+
.staffPlanControllerHistory(id, options)
|
|
6635
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6636
|
+
}
|
|
6637
|
+
/**
|
|
6638
|
+
* Creates a Plan per billing-provider product in one transaction; a no-op once any import was recorded. Domains and Distributors still on a legacy product id move to its Plan, and a Domain that predates Plans keeps its hand-set limits as overrides. A product already linked to a Plan maps to that Plan instead.<br> OperationId: `StaffPlanControllerImport`
|
|
6639
|
+
* @summary Import Plans from the billing provider
|
|
6640
|
+
* @param {PlanImportInputDTO} [planImportInputDTO] PlanImportInputDTO
|
|
6641
|
+
* @param {*} [options] Override http request option.
|
|
6642
|
+
* @throws {RequiredError}
|
|
6643
|
+
* @memberof StaffPlanApi
|
|
6644
|
+
*/
|
|
6645
|
+
staffPlanControllerImport(planImportInputDTO, options) {
|
|
6646
|
+
return StaffPlanApiFp(this.configuration)
|
|
6647
|
+
.staffPlanControllerImport(planImportInputDTO, options)
|
|
6648
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6649
|
+
}
|
|
6650
|
+
/**
|
|
6651
|
+
* True once an import has created any Plan, even if those Plans were later unlinked or archived.<br> OperationId: `StaffPlanControllerImportStatus`
|
|
6652
|
+
* @summary Whether the billing-provider import ran
|
|
6653
|
+
* @param {*} [options] Override http request option.
|
|
6654
|
+
* @throws {RequiredError}
|
|
6655
|
+
* @memberof StaffPlanApi
|
|
6656
|
+
*/
|
|
6657
|
+
staffPlanControllerImportStatus(options) {
|
|
6658
|
+
return StaffPlanApiFp(this.configuration)
|
|
6659
|
+
.staffPlanControllerImportStatus(options)
|
|
6660
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6661
|
+
}
|
|
6662
|
+
/**
|
|
6663
|
+
* Every Takaro Plan, oldest first. Archived Plans only with `includeArchived=true`. The ids here are what a Distributor’s allowedPlans and a Domain’s planId hold.<br> OperationId: `StaffPlanControllerList`
|
|
6664
|
+
* @summary List Plans
|
|
6665
|
+
* @param {any} [includeArchived]
|
|
6666
|
+
* @param {*} [options] Override http request option.
|
|
6667
|
+
* @throws {RequiredError}
|
|
6668
|
+
* @memberof StaffPlanApi
|
|
6669
|
+
*/
|
|
6670
|
+
staffPlanControllerList(includeArchived, options) {
|
|
6671
|
+
return StaffPlanApiFp(this.configuration)
|
|
6672
|
+
.staffPlanControllerList(includeArchived, options)
|
|
6673
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6674
|
+
}
|
|
6675
|
+
/**
|
|
6676
|
+
* Every product the billing provider knows about, with its prices, unfiltered by storefront lookup keys. A Plan’s stripeProductId is one of these ids.<br> OperationId: `StaffPlanControllerListStripeProducts`
|
|
6677
|
+
* @summary The billing provider’s products
|
|
6678
|
+
* @param {*} [options] Override http request option.
|
|
6679
|
+
* @throws {RequiredError}
|
|
6680
|
+
* @memberof StaffPlanApi
|
|
6681
|
+
*/
|
|
6682
|
+
staffPlanControllerListStripeProducts(options) {
|
|
6683
|
+
return StaffPlanApiFp(this.configuration)
|
|
6684
|
+
.staffPlanControllerListStripeProducts(options)
|
|
6685
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6686
|
+
}
|
|
6687
|
+
/**
|
|
6688
|
+
* A dry run of the proposed limits: how many Domains change, how many game servers would be disabled, and how many Domains would be over their user or role limits. Overrides are taken into account.<br> OperationId: `StaffPlanControllerPreview`
|
|
6689
|
+
* @summary Preview a Plan edit
|
|
6690
|
+
* @param {string} id
|
|
6691
|
+
* @param {PlanPreviewInputDTO} [planPreviewInputDTO] PlanPreviewInputDTO
|
|
6692
|
+
* @param {*} [options] Override http request option.
|
|
6693
|
+
* @throws {RequiredError}
|
|
6694
|
+
* @memberof StaffPlanApi
|
|
6695
|
+
*/
|
|
6696
|
+
staffPlanControllerPreview(id, planPreviewInputDTO, options) {
|
|
6697
|
+
return StaffPlanApiFp(this.configuration)
|
|
6698
|
+
.staffPlanControllerPreview(id, planPreviewInputDTO, options)
|
|
6699
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6700
|
+
}
|
|
6701
|
+
/**
|
|
6702
|
+
* Changed limits reach every Domain on the Plan shortly after, through a queued job. A shrink of `maxGameservers` disables the newest excess servers; preview it first. Changing or removing the billing-provider product is refused with a 409 while a subscription-backed Domain is on the Plan.<br> OperationId: `StaffPlanControllerUpdate`
|
|
6703
|
+
* @summary Update a Plan
|
|
6704
|
+
* @param {string} id
|
|
6705
|
+
* @param {PlanUpdateInputDTO} [planUpdateInputDTO] PlanUpdateInputDTO
|
|
5371
6706
|
* @param {*} [options] Override http request option.
|
|
5372
6707
|
* @throws {RequiredError}
|
|
5373
6708
|
* @memberof StaffPlanApi
|
|
5374
6709
|
*/
|
|
5375
|
-
|
|
6710
|
+
staffPlanControllerUpdate(id, planUpdateInputDTO, options) {
|
|
5376
6711
|
return StaffPlanApiFp(this.configuration)
|
|
5377
|
-
.
|
|
6712
|
+
.staffPlanControllerUpdate(id, planUpdateInputDTO, options)
|
|
5378
6713
|
.then((request) => request(this.axios, this.basePath));
|
|
5379
6714
|
}
|
|
5380
6715
|
}
|