@takaro/apiclient 0.0.0-dev.809cc38 → 0.0.0-dev.80cea27

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.
@@ -242,6 +242,31 @@ export const EventOutputDTOEventNameEnum = {
242
242
  PlayerDeath: 'player-death',
243
243
  EntityKilled: 'entity-killed',
244
244
  };
245
+ export const FixtureHistoryConflictDTOKindEnum = {
246
+ TakaroPlayer: 'takaro-player',
247
+ TakaroPog: 'takaro-pog',
248
+ };
249
+ export const FixtureHistoryDeleteInputDTOStoreEnum = {
250
+ Analytics: 'analytics',
251
+ Postgres: 'postgres',
252
+ };
253
+ export const FixtureHistoryEventDTOEventNameEnum = {
254
+ PlayerConnected: 'player-connected',
255
+ PlayerDisconnected: 'player-disconnected',
256
+ PlayerSyncSnapshot: 'player-sync-snapshot',
257
+ ChatMessage: 'chat-message',
258
+ CurrencyAdded: 'currency-added',
259
+ CurrencyDeducted: 'currency-deducted',
260
+ ShopOrderCreated: 'shop-order-created',
261
+ ShopOrderStatusChanged: 'shop-order-status-changed',
262
+ };
263
+ export const FixtureHistoryListingConflictDTOKindEnum = {
264
+ TakaroListing: 'takaro-listing',
265
+ };
266
+ export const FixtureHistoryOrderDTOStatusEnum = {
267
+ Completed: 'COMPLETED',
268
+ Canceled: 'CANCELED',
269
+ };
245
270
  export const GameServerCreateDTOTypeEnum = {
246
271
  Sevendaystodie: 'SEVENDAYSTODIE',
247
272
  Rust: 'RUST',
@@ -751,11 +776,24 @@ export const ShopListingUpdateDTORequiredVariableOperatorEnum = {
751
776
  Gt: 'gt',
752
777
  Lt: 'lt',
753
778
  };
779
+ export const ShopOrderDeliveryItemDTOResultEnum = {
780
+ Delivered: 'DELIVERED',
781
+ Failed: 'FAILED',
782
+ Unknown: 'UNKNOWN',
783
+ };
754
784
  export const ShopOrderOutputDTOStatusEnum = {
755
785
  Completed: 'COMPLETED',
756
786
  Paid: 'PAID',
757
787
  Canceled: 'CANCELED',
758
788
  };
789
+ export const ShopOrderOutputDTODeliveryStatusEnum = {
790
+ NotApplicable: 'NOT_APPLICABLE',
791
+ NotAttempted: 'NOT_ATTEMPTED',
792
+ InProgress: 'IN_PROGRESS',
793
+ Delivered: 'DELIVERED',
794
+ Failed: 'FAILED',
795
+ Unknown: 'UNKNOWN',
796
+ };
759
797
  export const ShopOrderUpdateDTOStatusEnum = {
760
798
  Completed: 'COMPLETED',
761
799
  Paid: 'PAID',
@@ -3147,6 +3185,1037 @@ export class DomainApi extends BaseAPI {
3147
3185
  .then((request) => request(this.axios, this.basePath));
3148
3186
  }
3149
3187
  }
3188
+ /**
3189
+ * FixtureHistoryApi - axios parameter creator
3190
+ * @export
3191
+ */
3192
+ export const FixtureHistoryApiAxiosParamCreator = function (configuration) {
3193
+ return {
3194
+ /**
3195
+ * <br> OperationId: `FixtureHistoryControllerActivity`
3196
+ * @summary Write owned, back-dated events and location samples into Postgres (idempotent)
3197
+ * @param {string} domainId
3198
+ * @param {FixtureHistoryActivityInputDTO} [fixtureHistoryActivityInputDTO] FixtureHistoryActivityInputDTO
3199
+ * @param {*} [options] Override http request option.
3200
+ * @throws {RequiredError}
3201
+ */
3202
+ fixtureHistoryControllerActivity: async (domainId, fixtureHistoryActivityInputDTO, options = {}) => {
3203
+ // verify required parameter 'domainId' is not null or undefined
3204
+ assertParamExists('fixtureHistoryControllerActivity', 'domainId', domainId);
3205
+ const localVarPath = `/fixture-history/domains/{domainId}/activity`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3206
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3207
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3208
+ let baseOptions;
3209
+ if (configuration) {
3210
+ baseOptions = configuration.baseOptions;
3211
+ }
3212
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3213
+ const localVarHeaderParameter = {};
3214
+ const localVarQueryParameter = {};
3215
+ // authentication adminAuth required
3216
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3217
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3218
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3219
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3220
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3221
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryActivityInputDTO, localVarRequestOptions, configuration);
3222
+ return {
3223
+ url: toPathString(localVarUrlObj),
3224
+ options: localVarRequestOptions,
3225
+ };
3226
+ },
3227
+ /**
3228
+ * <br> OperationId: `FixtureHistoryControllerAnalytics`
3229
+ * @summary Write owned, back-dated events into the analytics store (inserts only missing ids)
3230
+ * @param {string} domainId
3231
+ * @param {FixtureHistoryAnalyticsInputDTO} [fixtureHistoryAnalyticsInputDTO] FixtureHistoryAnalyticsInputDTO
3232
+ * @param {*} [options] Override http request option.
3233
+ * @throws {RequiredError}
3234
+ */
3235
+ fixtureHistoryControllerAnalytics: async (domainId, fixtureHistoryAnalyticsInputDTO, options = {}) => {
3236
+ // verify required parameter 'domainId' is not null or undefined
3237
+ assertParamExists('fixtureHistoryControllerAnalytics', 'domainId', domainId);
3238
+ const localVarPath = `/fixture-history/domains/{domainId}/analytics`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3239
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3240
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3241
+ let baseOptions;
3242
+ if (configuration) {
3243
+ baseOptions = configuration.baseOptions;
3244
+ }
3245
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3246
+ const localVarHeaderParameter = {};
3247
+ const localVarQueryParameter = {};
3248
+ // authentication adminAuth required
3249
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3250
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3251
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3252
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3253
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3254
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryAnalyticsInputDTO, localVarRequestOptions, configuration);
3255
+ return {
3256
+ url: toPathString(localVarUrlObj),
3257
+ options: localVarRequestOptions,
3258
+ };
3259
+ },
3260
+ /**
3261
+ * <br> OperationId: `FixtureHistoryControllerCapabilities`
3262
+ * @summary What the writer can do for this domain, and the domain\'s event retention
3263
+ * @param {string} domainId
3264
+ * @param {*} [options] Override http request option.
3265
+ * @throws {RequiredError}
3266
+ */
3267
+ fixtureHistoryControllerCapabilities: async (domainId, options = {}) => {
3268
+ // verify required parameter 'domainId' is not null or undefined
3269
+ assertParamExists('fixtureHistoryControllerCapabilities', 'domainId', domainId);
3270
+ const localVarPath = `/fixture-history/domains/{domainId}/capabilities`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3271
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3272
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3273
+ let baseOptions;
3274
+ if (configuration) {
3275
+ baseOptions = configuration.baseOptions;
3276
+ }
3277
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3278
+ const localVarHeaderParameter = {};
3279
+ const localVarQueryParameter = {};
3280
+ // authentication adminAuth required
3281
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3282
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3283
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3284
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3285
+ return {
3286
+ url: toPathString(localVarUrlObj),
3287
+ options: localVarRequestOptions,
3288
+ };
3289
+ },
3290
+ /**
3291
+ * <br> OperationId: `FixtureHistoryControllerDelete`
3292
+ * @summary Delete a bounded batch of this dataset\'s rows from one store; loop until remaining is 0
3293
+ * @param {string} domainId
3294
+ * @param {string} fixtureDatasetId
3295
+ * @param {FixtureHistoryDeleteInputDTO} [fixtureHistoryDeleteInputDTO] FixtureHistoryDeleteInputDTO
3296
+ * @param {*} [options] Override http request option.
3297
+ * @throws {RequiredError}
3298
+ */
3299
+ fixtureHistoryControllerDelete: async (domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options = {}) => {
3300
+ // verify required parameter 'domainId' is not null or undefined
3301
+ assertParamExists('fixtureHistoryControllerDelete', 'domainId', domainId);
3302
+ // verify required parameter 'fixtureDatasetId' is not null or undefined
3303
+ assertParamExists('fixtureHistoryControllerDelete', 'fixtureDatasetId', fixtureDatasetId);
3304
+ const localVarPath = `/fixture-history/domains/{domainId}/datasets/{fixtureDatasetId}/delete`
3305
+ .replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)))
3306
+ .replace(`{${'fixtureDatasetId'}}`, encodeURIComponent(String(fixtureDatasetId)));
3307
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3308
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3309
+ let baseOptions;
3310
+ if (configuration) {
3311
+ baseOptions = configuration.baseOptions;
3312
+ }
3313
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3314
+ const localVarHeaderParameter = {};
3315
+ const localVarQueryParameter = {};
3316
+ // authentication adminAuth required
3317
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3318
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3319
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3320
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3321
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3322
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryDeleteInputDTO, localVarRequestOptions, configuration);
3323
+ return {
3324
+ url: toPathString(localVarUrlObj),
3325
+ options: localVarRequestOptions,
3326
+ };
3327
+ },
3328
+ /**
3329
+ * <br> OperationId: `FixtureHistoryControllerEconomyReadiness`
3330
+ * @summary Per gameserver: whether economyEnabled is on (read-only; never written)
3331
+ * @param {string} domainId
3332
+ * @param {FixtureHistoryEconomyReadinessInputDTO} [fixtureHistoryEconomyReadinessInputDTO] FixtureHistoryEconomyReadinessInputDTO
3333
+ * @param {*} [options] Override http request option.
3334
+ * @throws {RequiredError}
3335
+ */
3336
+ fixtureHistoryControllerEconomyReadiness: async (domainId, fixtureHistoryEconomyReadinessInputDTO, options = {}) => {
3337
+ // verify required parameter 'domainId' is not null or undefined
3338
+ assertParamExists('fixtureHistoryControllerEconomyReadiness', 'domainId', domainId);
3339
+ const localVarPath = `/fixture-history/domains/{domainId}/economy-readiness`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3340
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3341
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3342
+ let baseOptions;
3343
+ if (configuration) {
3344
+ baseOptions = configuration.baseOptions;
3345
+ }
3346
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3347
+ const localVarHeaderParameter = {};
3348
+ const localVarQueryParameter = {};
3349
+ // authentication adminAuth required
3350
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3351
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3352
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3353
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3354
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3355
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryEconomyReadinessInputDTO, localVarRequestOptions, configuration);
3356
+ return {
3357
+ url: toPathString(localVarUrlObj),
3358
+ options: localVarRequestOptions,
3359
+ };
3360
+ },
3361
+ /**
3362
+ * One transaction. A planned row whose natural key is held by a row this dataset does not own is a conflict: nothing in the request is written and the conflicts are returned.<br> OperationId: `FixtureHistoryControllerIdentities`
3363
+ * @summary Write owned, back-dated players and players-on-gameserver
3364
+ * @param {string} domainId
3365
+ * @param {FixtureHistoryIdentitiesInputDTO} [fixtureHistoryIdentitiesInputDTO] FixtureHistoryIdentitiesInputDTO
3366
+ * @param {*} [options] Override http request option.
3367
+ * @throws {RequiredError}
3368
+ */
3369
+ fixtureHistoryControllerIdentities: async (domainId, fixtureHistoryIdentitiesInputDTO, options = {}) => {
3370
+ // verify required parameter 'domainId' is not null or undefined
3371
+ assertParamExists('fixtureHistoryControllerIdentities', 'domainId', domainId);
3372
+ const localVarPath = `/fixture-history/domains/{domainId}/identities`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3373
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3374
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3375
+ let baseOptions;
3376
+ if (configuration) {
3377
+ baseOptions = configuration.baseOptions;
3378
+ }
3379
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3380
+ const localVarHeaderParameter = {};
3381
+ const localVarQueryParameter = {};
3382
+ // authentication adminAuth required
3383
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3384
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3385
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3386
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3387
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3388
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryIdentitiesInputDTO, localVarRequestOptions, configuration);
3389
+ return {
3390
+ url: toPathString(localVarUrlObj),
3391
+ options: localVarRequestOptions,
3392
+ };
3393
+ },
3394
+ /**
3395
+ * <br> OperationId: `FixtureHistoryControllerInventory`
3396
+ * @summary Write the terminal inventory baseline of owned players-on-gameserver (idempotent)
3397
+ * @param {string} domainId
3398
+ * @param {FixtureHistoryInventoryInputDTO} [fixtureHistoryInventoryInputDTO] FixtureHistoryInventoryInputDTO
3399
+ * @param {*} [options] Override http request option.
3400
+ * @throws {RequiredError}
3401
+ */
3402
+ fixtureHistoryControllerInventory: async (domainId, fixtureHistoryInventoryInputDTO, options = {}) => {
3403
+ // verify required parameter 'domainId' is not null or undefined
3404
+ assertParamExists('fixtureHistoryControllerInventory', 'domainId', domainId);
3405
+ const localVarPath = `/fixture-history/domains/{domainId}/inventory`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3406
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3407
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3408
+ let baseOptions;
3409
+ if (configuration) {
3410
+ baseOptions = configuration.baseOptions;
3411
+ }
3412
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3413
+ const localVarHeaderParameter = {};
3414
+ const localVarQueryParameter = {};
3415
+ // authentication adminAuth required
3416
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3417
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3418
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3419
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3420
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3421
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryInventoryInputDTO, localVarRequestOptions, configuration);
3422
+ return {
3423
+ url: toPathString(localVarUrlObj),
3424
+ options: localVarRequestOptions,
3425
+ };
3426
+ },
3427
+ /**
3428
+ * <br> OperationId: `FixtureHistoryControllerInventoryPage`
3429
+ * @summary Page through the owned inventory baselines, by player-on-gameserver
3430
+ * @param {string} domainId
3431
+ * @param {string} fixtureDatasetId
3432
+ * @param {string} [cursor]
3433
+ * @param {*} [options] Override http request option.
3434
+ * @throws {RequiredError}
3435
+ */
3436
+ fixtureHistoryControllerInventoryPage: async (domainId, fixtureDatasetId, cursor, options = {}) => {
3437
+ // verify required parameter 'domainId' is not null or undefined
3438
+ assertParamExists('fixtureHistoryControllerInventoryPage', 'domainId', domainId);
3439
+ // verify required parameter 'fixtureDatasetId' is not null or undefined
3440
+ assertParamExists('fixtureHistoryControllerInventoryPage', 'fixtureDatasetId', fixtureDatasetId);
3441
+ const localVarPath = `/fixture-history/domains/{domainId}/datasets/{fixtureDatasetId}/inventory`
3442
+ .replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)))
3443
+ .replace(`{${'fixtureDatasetId'}}`, encodeURIComponent(String(fixtureDatasetId)));
3444
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3445
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3446
+ let baseOptions;
3447
+ if (configuration) {
3448
+ baseOptions = configuration.baseOptions;
3449
+ }
3450
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3451
+ const localVarHeaderParameter = {};
3452
+ const localVarQueryParameter = {};
3453
+ // authentication adminAuth required
3454
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3455
+ if (cursor !== undefined) {
3456
+ localVarQueryParameter['cursor'] = cursor;
3457
+ }
3458
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3459
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3460
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3461
+ return {
3462
+ url: toPathString(localVarUrlObj),
3463
+ options: localVarRequestOptions,
3464
+ };
3465
+ },
3466
+ /**
3467
+ * One transaction. A listing whose id, or whose name on its gameserver, is held by a listing this dataset does not own is a conflict: nothing is written and the conflicts are returned.<br> OperationId: `FixtureHistoryControllerListings`
3468
+ * @summary Write owned, back-dated shop listings
3469
+ * @param {string} domainId
3470
+ * @param {FixtureHistoryListingsInputDTO} [fixtureHistoryListingsInputDTO] FixtureHistoryListingsInputDTO
3471
+ * @param {*} [options] Override http request option.
3472
+ * @throws {RequiredError}
3473
+ */
3474
+ fixtureHistoryControllerListings: async (domainId, fixtureHistoryListingsInputDTO, options = {}) => {
3475
+ // verify required parameter 'domainId' is not null or undefined
3476
+ assertParamExists('fixtureHistoryControllerListings', 'domainId', domainId);
3477
+ const localVarPath = `/fixture-history/domains/{domainId}/listings`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3478
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3479
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3480
+ let baseOptions;
3481
+ if (configuration) {
3482
+ baseOptions = configuration.baseOptions;
3483
+ }
3484
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3485
+ const localVarHeaderParameter = {};
3486
+ const localVarQueryParameter = {};
3487
+ // authentication adminAuth required
3488
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3489
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3490
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3491
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3492
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3493
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryListingsInputDTO, localVarRequestOptions, configuration);
3494
+ return {
3495
+ url: toPathString(localVarUrlObj),
3496
+ options: localVarRequestOptions,
3497
+ };
3498
+ },
3499
+ /**
3500
+ * Never charges, refunds, delivers or runs a shop action: an order is written as a settled row.<br> OperationId: `FixtureHistoryControllerOrders`
3501
+ * @summary Write owned, settled (COMPLETED or CANCELED) historical orders (idempotent)
3502
+ * @param {string} domainId
3503
+ * @param {FixtureHistoryOrdersInputDTO} [fixtureHistoryOrdersInputDTO] FixtureHistoryOrdersInputDTO
3504
+ * @param {*} [options] Override http request option.
3505
+ * @throws {RequiredError}
3506
+ */
3507
+ fixtureHistoryControllerOrders: async (domainId, fixtureHistoryOrdersInputDTO, options = {}) => {
3508
+ // verify required parameter 'domainId' is not null or undefined
3509
+ assertParamExists('fixtureHistoryControllerOrders', 'domainId', domainId);
3510
+ const localVarPath = `/fixture-history/domains/{domainId}/orders`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3511
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3512
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3513
+ let baseOptions;
3514
+ if (configuration) {
3515
+ baseOptions = configuration.baseOptions;
3516
+ }
3517
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3518
+ const localVarHeaderParameter = {};
3519
+ const localVarQueryParameter = {};
3520
+ // authentication adminAuth required
3521
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3522
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3523
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3524
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3525
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3526
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryOrdersInputDTO, localVarRequestOptions, configuration);
3527
+ return {
3528
+ url: toPathString(localVarUrlObj),
3529
+ options: localVarRequestOptions,
3530
+ };
3531
+ },
3532
+ /**
3533
+ * <br> OperationId: `FixtureHistoryControllerSummary`
3534
+ * @summary Owned row counts per store, and unowned events naming owned players
3535
+ * @param {string} domainId
3536
+ * @param {string} fixtureDatasetId
3537
+ * @param {FixtureHistoryControllerSummarySinceParameter} [since]
3538
+ * @param {*} [options] Override http request option.
3539
+ * @throws {RequiredError}
3540
+ */
3541
+ fixtureHistoryControllerSummary: async (domainId, fixtureDatasetId, since, options = {}) => {
3542
+ // verify required parameter 'domainId' is not null or undefined
3543
+ assertParamExists('fixtureHistoryControllerSummary', 'domainId', domainId);
3544
+ // verify required parameter 'fixtureDatasetId' is not null or undefined
3545
+ assertParamExists('fixtureHistoryControllerSummary', 'fixtureDatasetId', fixtureDatasetId);
3546
+ const localVarPath = `/fixture-history/domains/{domainId}/datasets/{fixtureDatasetId}/summary`
3547
+ .replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)))
3548
+ .replace(`{${'fixtureDatasetId'}}`, encodeURIComponent(String(fixtureDatasetId)));
3549
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3550
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3551
+ let baseOptions;
3552
+ if (configuration) {
3553
+ baseOptions = configuration.baseOptions;
3554
+ }
3555
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3556
+ const localVarHeaderParameter = {};
3557
+ const localVarQueryParameter = {};
3558
+ // authentication adminAuth required
3559
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3560
+ if (since !== undefined) {
3561
+ for (const [key, value] of Object.entries(since)) {
3562
+ localVarQueryParameter[key] = value;
3563
+ }
3564
+ }
3565
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3566
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3567
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3568
+ return {
3569
+ url: toPathString(localVarUrlObj),
3570
+ options: localVarRequestOptions,
3571
+ };
3572
+ },
3573
+ /**
3574
+ * <br> OperationId: `FixtureHistoryControllerTerminal`
3575
+ * @summary Set the offline terminal state of owned players-on-gameserver
3576
+ * @param {string} domainId
3577
+ * @param {FixtureHistoryTerminalInputDTO} [fixtureHistoryTerminalInputDTO] FixtureHistoryTerminalInputDTO
3578
+ * @param {*} [options] Override http request option.
3579
+ * @throws {RequiredError}
3580
+ */
3581
+ fixtureHistoryControllerTerminal: async (domainId, fixtureHistoryTerminalInputDTO, options = {}) => {
3582
+ // verify required parameter 'domainId' is not null or undefined
3583
+ assertParamExists('fixtureHistoryControllerTerminal', 'domainId', domainId);
3584
+ const localVarPath = `/fixture-history/domains/{domainId}/terminal-state`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3585
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3586
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3587
+ let baseOptions;
3588
+ if (configuration) {
3589
+ baseOptions = configuration.baseOptions;
3590
+ }
3591
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3592
+ const localVarHeaderParameter = {};
3593
+ const localVarQueryParameter = {};
3594
+ // authentication adminAuth required
3595
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3596
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3597
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3598
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3599
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3600
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryTerminalInputDTO, localVarRequestOptions, configuration);
3601
+ return {
3602
+ url: toPathString(localVarUrlObj),
3603
+ options: localVarRequestOptions,
3604
+ };
3605
+ },
3606
+ /**
3607
+ * <br> OperationId: `FixtureHistoryControllerTerminalState`
3608
+ * @summary Page through the terminal state of owned players-on-gameserver
3609
+ * @param {string} domainId
3610
+ * @param {string} fixtureDatasetId
3611
+ * @param {string} [cursor]
3612
+ * @param {*} [options] Override http request option.
3613
+ * @throws {RequiredError}
3614
+ */
3615
+ fixtureHistoryControllerTerminalState: async (domainId, fixtureDatasetId, cursor, options = {}) => {
3616
+ // verify required parameter 'domainId' is not null or undefined
3617
+ assertParamExists('fixtureHistoryControllerTerminalState', 'domainId', domainId);
3618
+ // verify required parameter 'fixtureDatasetId' is not null or undefined
3619
+ assertParamExists('fixtureHistoryControllerTerminalState', 'fixtureDatasetId', fixtureDatasetId);
3620
+ const localVarPath = `/fixture-history/domains/{domainId}/datasets/{fixtureDatasetId}/terminal-state`
3621
+ .replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)))
3622
+ .replace(`{${'fixtureDatasetId'}}`, encodeURIComponent(String(fixtureDatasetId)));
3623
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3624
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3625
+ let baseOptions;
3626
+ if (configuration) {
3627
+ baseOptions = configuration.baseOptions;
3628
+ }
3629
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3630
+ const localVarHeaderParameter = {};
3631
+ const localVarQueryParameter = {};
3632
+ // authentication adminAuth required
3633
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3634
+ if (cursor !== undefined) {
3635
+ localVarQueryParameter['cursor'] = cursor;
3636
+ }
3637
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3638
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3639
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3640
+ return {
3641
+ url: toPathString(localVarUrlObj),
3642
+ options: localVarRequestOptions,
3643
+ };
3644
+ },
3645
+ };
3646
+ };
3647
+ /**
3648
+ * FixtureHistoryApi - functional programming interface
3649
+ * @export
3650
+ */
3651
+ export const FixtureHistoryApiFp = function (configuration) {
3652
+ const localVarAxiosParamCreator = FixtureHistoryApiAxiosParamCreator(configuration);
3653
+ return {
3654
+ /**
3655
+ * <br> OperationId: `FixtureHistoryControllerActivity`
3656
+ * @summary Write owned, back-dated events and location samples into Postgres (idempotent)
3657
+ * @param {string} domainId
3658
+ * @param {FixtureHistoryActivityInputDTO} [fixtureHistoryActivityInputDTO] FixtureHistoryActivityInputDTO
3659
+ * @param {*} [options] Override http request option.
3660
+ * @throws {RequiredError}
3661
+ */
3662
+ async fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options) {
3663
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options);
3664
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3665
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerActivity']?.[localVarOperationServerIndex]?.url;
3666
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3667
+ },
3668
+ /**
3669
+ * <br> OperationId: `FixtureHistoryControllerAnalytics`
3670
+ * @summary Write owned, back-dated events into the analytics store (inserts only missing ids)
3671
+ * @param {string} domainId
3672
+ * @param {FixtureHistoryAnalyticsInputDTO} [fixtureHistoryAnalyticsInputDTO] FixtureHistoryAnalyticsInputDTO
3673
+ * @param {*} [options] Override http request option.
3674
+ * @throws {RequiredError}
3675
+ */
3676
+ async fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options) {
3677
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options);
3678
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3679
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerAnalytics']?.[localVarOperationServerIndex]?.url;
3680
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3681
+ },
3682
+ /**
3683
+ * <br> OperationId: `FixtureHistoryControllerCapabilities`
3684
+ * @summary What the writer can do for this domain, and the domain\'s event retention
3685
+ * @param {string} domainId
3686
+ * @param {*} [options] Override http request option.
3687
+ * @throws {RequiredError}
3688
+ */
3689
+ async fixtureHistoryControllerCapabilities(domainId, options) {
3690
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerCapabilities(domainId, options);
3691
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3692
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerCapabilities']?.[localVarOperationServerIndex]
3693
+ ?.url;
3694
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3695
+ },
3696
+ /**
3697
+ * <br> OperationId: `FixtureHistoryControllerDelete`
3698
+ * @summary Delete a bounded batch of this dataset\'s rows from one store; loop until remaining is 0
3699
+ * @param {string} domainId
3700
+ * @param {string} fixtureDatasetId
3701
+ * @param {FixtureHistoryDeleteInputDTO} [fixtureHistoryDeleteInputDTO] FixtureHistoryDeleteInputDTO
3702
+ * @param {*} [options] Override http request option.
3703
+ * @throws {RequiredError}
3704
+ */
3705
+ async fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options) {
3706
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options);
3707
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3708
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerDelete']?.[localVarOperationServerIndex]?.url;
3709
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3710
+ },
3711
+ /**
3712
+ * <br> OperationId: `FixtureHistoryControllerEconomyReadiness`
3713
+ * @summary Per gameserver: whether economyEnabled is on (read-only; never written)
3714
+ * @param {string} domainId
3715
+ * @param {FixtureHistoryEconomyReadinessInputDTO} [fixtureHistoryEconomyReadinessInputDTO] FixtureHistoryEconomyReadinessInputDTO
3716
+ * @param {*} [options] Override http request option.
3717
+ * @throws {RequiredError}
3718
+ */
3719
+ async fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options) {
3720
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options);
3721
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3722
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerEconomyReadiness']?.[localVarOperationServerIndex]
3723
+ ?.url;
3724
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3725
+ },
3726
+ /**
3727
+ * One transaction. A planned row whose natural key is held by a row this dataset does not own is a conflict: nothing in the request is written and the conflicts are returned.<br> OperationId: `FixtureHistoryControllerIdentities`
3728
+ * @summary Write owned, back-dated players and players-on-gameserver
3729
+ * @param {string} domainId
3730
+ * @param {FixtureHistoryIdentitiesInputDTO} [fixtureHistoryIdentitiesInputDTO] FixtureHistoryIdentitiesInputDTO
3731
+ * @param {*} [options] Override http request option.
3732
+ * @throws {RequiredError}
3733
+ */
3734
+ async fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options) {
3735
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options);
3736
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3737
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerIdentities']?.[localVarOperationServerIndex]?.url;
3738
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3739
+ },
3740
+ /**
3741
+ * <br> OperationId: `FixtureHistoryControllerInventory`
3742
+ * @summary Write the terminal inventory baseline of owned players-on-gameserver (idempotent)
3743
+ * @param {string} domainId
3744
+ * @param {FixtureHistoryInventoryInputDTO} [fixtureHistoryInventoryInputDTO] FixtureHistoryInventoryInputDTO
3745
+ * @param {*} [options] Override http request option.
3746
+ * @throws {RequiredError}
3747
+ */
3748
+ async fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options) {
3749
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options);
3750
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3751
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerInventory']?.[localVarOperationServerIndex]?.url;
3752
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3753
+ },
3754
+ /**
3755
+ * <br> OperationId: `FixtureHistoryControllerInventoryPage`
3756
+ * @summary Page through the owned inventory baselines, by player-on-gameserver
3757
+ * @param {string} domainId
3758
+ * @param {string} fixtureDatasetId
3759
+ * @param {string} [cursor]
3760
+ * @param {*} [options] Override http request option.
3761
+ * @throws {RequiredError}
3762
+ */
3763
+ async fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options) {
3764
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options);
3765
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3766
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerInventoryPage']?.[localVarOperationServerIndex]
3767
+ ?.url;
3768
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3769
+ },
3770
+ /**
3771
+ * One transaction. A listing whose id, or whose name on its gameserver, is held by a listing this dataset does not own is a conflict: nothing is written and the conflicts are returned.<br> OperationId: `FixtureHistoryControllerListings`
3772
+ * @summary Write owned, back-dated shop listings
3773
+ * @param {string} domainId
3774
+ * @param {FixtureHistoryListingsInputDTO} [fixtureHistoryListingsInputDTO] FixtureHistoryListingsInputDTO
3775
+ * @param {*} [options] Override http request option.
3776
+ * @throws {RequiredError}
3777
+ */
3778
+ async fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options) {
3779
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options);
3780
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3781
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerListings']?.[localVarOperationServerIndex]?.url;
3782
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3783
+ },
3784
+ /**
3785
+ * Never charges, refunds, delivers or runs a shop action: an order is written as a settled row.<br> OperationId: `FixtureHistoryControllerOrders`
3786
+ * @summary Write owned, settled (COMPLETED or CANCELED) historical orders (idempotent)
3787
+ * @param {string} domainId
3788
+ * @param {FixtureHistoryOrdersInputDTO} [fixtureHistoryOrdersInputDTO] FixtureHistoryOrdersInputDTO
3789
+ * @param {*} [options] Override http request option.
3790
+ * @throws {RequiredError}
3791
+ */
3792
+ async fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options) {
3793
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options);
3794
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3795
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerOrders']?.[localVarOperationServerIndex]?.url;
3796
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3797
+ },
3798
+ /**
3799
+ * <br> OperationId: `FixtureHistoryControllerSummary`
3800
+ * @summary Owned row counts per store, and unowned events naming owned players
3801
+ * @param {string} domainId
3802
+ * @param {string} fixtureDatasetId
3803
+ * @param {FixtureHistoryControllerSummarySinceParameter} [since]
3804
+ * @param {*} [options] Override http request option.
3805
+ * @throws {RequiredError}
3806
+ */
3807
+ async fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options) {
3808
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options);
3809
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3810
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerSummary']?.[localVarOperationServerIndex]?.url;
3811
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3812
+ },
3813
+ /**
3814
+ * <br> OperationId: `FixtureHistoryControllerTerminal`
3815
+ * @summary Set the offline terminal state of owned players-on-gameserver
3816
+ * @param {string} domainId
3817
+ * @param {FixtureHistoryTerminalInputDTO} [fixtureHistoryTerminalInputDTO] FixtureHistoryTerminalInputDTO
3818
+ * @param {*} [options] Override http request option.
3819
+ * @throws {RequiredError}
3820
+ */
3821
+ async fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options) {
3822
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options);
3823
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3824
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerTerminal']?.[localVarOperationServerIndex]?.url;
3825
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3826
+ },
3827
+ /**
3828
+ * <br> OperationId: `FixtureHistoryControllerTerminalState`
3829
+ * @summary Page through the terminal state of owned players-on-gameserver
3830
+ * @param {string} domainId
3831
+ * @param {string} fixtureDatasetId
3832
+ * @param {string} [cursor]
3833
+ * @param {*} [options] Override http request option.
3834
+ * @throws {RequiredError}
3835
+ */
3836
+ async fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options) {
3837
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options);
3838
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3839
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerTerminalState']?.[localVarOperationServerIndex]
3840
+ ?.url;
3841
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3842
+ },
3843
+ };
3844
+ };
3845
+ /**
3846
+ * FixtureHistoryApi - factory interface
3847
+ * @export
3848
+ */
3849
+ export const FixtureHistoryApiFactory = function (configuration, basePath, axios) {
3850
+ const localVarFp = FixtureHistoryApiFp(configuration);
3851
+ return {
3852
+ /**
3853
+ * <br> OperationId: `FixtureHistoryControllerActivity`
3854
+ * @summary Write owned, back-dated events and location samples into Postgres (idempotent)
3855
+ * @param {string} domainId
3856
+ * @param {FixtureHistoryActivityInputDTO} [fixtureHistoryActivityInputDTO] FixtureHistoryActivityInputDTO
3857
+ * @param {*} [options] Override http request option.
3858
+ * @throws {RequiredError}
3859
+ */
3860
+ fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options) {
3861
+ return localVarFp
3862
+ .fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options)
3863
+ .then((request) => request(axios, basePath));
3864
+ },
3865
+ /**
3866
+ * <br> OperationId: `FixtureHistoryControllerAnalytics`
3867
+ * @summary Write owned, back-dated events into the analytics store (inserts only missing ids)
3868
+ * @param {string} domainId
3869
+ * @param {FixtureHistoryAnalyticsInputDTO} [fixtureHistoryAnalyticsInputDTO] FixtureHistoryAnalyticsInputDTO
3870
+ * @param {*} [options] Override http request option.
3871
+ * @throws {RequiredError}
3872
+ */
3873
+ fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options) {
3874
+ return localVarFp
3875
+ .fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options)
3876
+ .then((request) => request(axios, basePath));
3877
+ },
3878
+ /**
3879
+ * <br> OperationId: `FixtureHistoryControllerCapabilities`
3880
+ * @summary What the writer can do for this domain, and the domain\'s event retention
3881
+ * @param {string} domainId
3882
+ * @param {*} [options] Override http request option.
3883
+ * @throws {RequiredError}
3884
+ */
3885
+ fixtureHistoryControllerCapabilities(domainId, options) {
3886
+ return localVarFp
3887
+ .fixtureHistoryControllerCapabilities(domainId, options)
3888
+ .then((request) => request(axios, basePath));
3889
+ },
3890
+ /**
3891
+ * <br> OperationId: `FixtureHistoryControllerDelete`
3892
+ * @summary Delete a bounded batch of this dataset\'s rows from one store; loop until remaining is 0
3893
+ * @param {string} domainId
3894
+ * @param {string} fixtureDatasetId
3895
+ * @param {FixtureHistoryDeleteInputDTO} [fixtureHistoryDeleteInputDTO] FixtureHistoryDeleteInputDTO
3896
+ * @param {*} [options] Override http request option.
3897
+ * @throws {RequiredError}
3898
+ */
3899
+ fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options) {
3900
+ return localVarFp
3901
+ .fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options)
3902
+ .then((request) => request(axios, basePath));
3903
+ },
3904
+ /**
3905
+ * <br> OperationId: `FixtureHistoryControllerEconomyReadiness`
3906
+ * @summary Per gameserver: whether economyEnabled is on (read-only; never written)
3907
+ * @param {string} domainId
3908
+ * @param {FixtureHistoryEconomyReadinessInputDTO} [fixtureHistoryEconomyReadinessInputDTO] FixtureHistoryEconomyReadinessInputDTO
3909
+ * @param {*} [options] Override http request option.
3910
+ * @throws {RequiredError}
3911
+ */
3912
+ fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options) {
3913
+ return localVarFp
3914
+ .fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options)
3915
+ .then((request) => request(axios, basePath));
3916
+ },
3917
+ /**
3918
+ * One transaction. A planned row whose natural key is held by a row this dataset does not own is a conflict: nothing in the request is written and the conflicts are returned.<br> OperationId: `FixtureHistoryControllerIdentities`
3919
+ * @summary Write owned, back-dated players and players-on-gameserver
3920
+ * @param {string} domainId
3921
+ * @param {FixtureHistoryIdentitiesInputDTO} [fixtureHistoryIdentitiesInputDTO] FixtureHistoryIdentitiesInputDTO
3922
+ * @param {*} [options] Override http request option.
3923
+ * @throws {RequiredError}
3924
+ */
3925
+ fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options) {
3926
+ return localVarFp
3927
+ .fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options)
3928
+ .then((request) => request(axios, basePath));
3929
+ },
3930
+ /**
3931
+ * <br> OperationId: `FixtureHistoryControllerInventory`
3932
+ * @summary Write the terminal inventory baseline of owned players-on-gameserver (idempotent)
3933
+ * @param {string} domainId
3934
+ * @param {FixtureHistoryInventoryInputDTO} [fixtureHistoryInventoryInputDTO] FixtureHistoryInventoryInputDTO
3935
+ * @param {*} [options] Override http request option.
3936
+ * @throws {RequiredError}
3937
+ */
3938
+ fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options) {
3939
+ return localVarFp
3940
+ .fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options)
3941
+ .then((request) => request(axios, basePath));
3942
+ },
3943
+ /**
3944
+ * <br> OperationId: `FixtureHistoryControllerInventoryPage`
3945
+ * @summary Page through the owned inventory baselines, by player-on-gameserver
3946
+ * @param {string} domainId
3947
+ * @param {string} fixtureDatasetId
3948
+ * @param {string} [cursor]
3949
+ * @param {*} [options] Override http request option.
3950
+ * @throws {RequiredError}
3951
+ */
3952
+ fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options) {
3953
+ return localVarFp
3954
+ .fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options)
3955
+ .then((request) => request(axios, basePath));
3956
+ },
3957
+ /**
3958
+ * One transaction. A listing whose id, or whose name on its gameserver, is held by a listing this dataset does not own is a conflict: nothing is written and the conflicts are returned.<br> OperationId: `FixtureHistoryControllerListings`
3959
+ * @summary Write owned, back-dated shop listings
3960
+ * @param {string} domainId
3961
+ * @param {FixtureHistoryListingsInputDTO} [fixtureHistoryListingsInputDTO] FixtureHistoryListingsInputDTO
3962
+ * @param {*} [options] Override http request option.
3963
+ * @throws {RequiredError}
3964
+ */
3965
+ fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options) {
3966
+ return localVarFp
3967
+ .fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options)
3968
+ .then((request) => request(axios, basePath));
3969
+ },
3970
+ /**
3971
+ * Never charges, refunds, delivers or runs a shop action: an order is written as a settled row.<br> OperationId: `FixtureHistoryControllerOrders`
3972
+ * @summary Write owned, settled (COMPLETED or CANCELED) historical orders (idempotent)
3973
+ * @param {string} domainId
3974
+ * @param {FixtureHistoryOrdersInputDTO} [fixtureHistoryOrdersInputDTO] FixtureHistoryOrdersInputDTO
3975
+ * @param {*} [options] Override http request option.
3976
+ * @throws {RequiredError}
3977
+ */
3978
+ fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options) {
3979
+ return localVarFp
3980
+ .fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options)
3981
+ .then((request) => request(axios, basePath));
3982
+ },
3983
+ /**
3984
+ * <br> OperationId: `FixtureHistoryControllerSummary`
3985
+ * @summary Owned row counts per store, and unowned events naming owned players
3986
+ * @param {string} domainId
3987
+ * @param {string} fixtureDatasetId
3988
+ * @param {FixtureHistoryControllerSummarySinceParameter} [since]
3989
+ * @param {*} [options] Override http request option.
3990
+ * @throws {RequiredError}
3991
+ */
3992
+ fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options) {
3993
+ return localVarFp
3994
+ .fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options)
3995
+ .then((request) => request(axios, basePath));
3996
+ },
3997
+ /**
3998
+ * <br> OperationId: `FixtureHistoryControllerTerminal`
3999
+ * @summary Set the offline terminal state of owned players-on-gameserver
4000
+ * @param {string} domainId
4001
+ * @param {FixtureHistoryTerminalInputDTO} [fixtureHistoryTerminalInputDTO] FixtureHistoryTerminalInputDTO
4002
+ * @param {*} [options] Override http request option.
4003
+ * @throws {RequiredError}
4004
+ */
4005
+ fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options) {
4006
+ return localVarFp
4007
+ .fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options)
4008
+ .then((request) => request(axios, basePath));
4009
+ },
4010
+ /**
4011
+ * <br> OperationId: `FixtureHistoryControllerTerminalState`
4012
+ * @summary Page through the terminal state of owned players-on-gameserver
4013
+ * @param {string} domainId
4014
+ * @param {string} fixtureDatasetId
4015
+ * @param {string} [cursor]
4016
+ * @param {*} [options] Override http request option.
4017
+ * @throws {RequiredError}
4018
+ */
4019
+ fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options) {
4020
+ return localVarFp
4021
+ .fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options)
4022
+ .then((request) => request(axios, basePath));
4023
+ },
4024
+ };
4025
+ };
4026
+ /**
4027
+ * FixtureHistoryApi - object-oriented interface
4028
+ * @export
4029
+ * @class FixtureHistoryApi
4030
+ * @extends {BaseAPI}
4031
+ */
4032
+ export class FixtureHistoryApi extends BaseAPI {
4033
+ /**
4034
+ * <br> OperationId: `FixtureHistoryControllerActivity`
4035
+ * @summary Write owned, back-dated events and location samples into Postgres (idempotent)
4036
+ * @param {string} domainId
4037
+ * @param {FixtureHistoryActivityInputDTO} [fixtureHistoryActivityInputDTO] FixtureHistoryActivityInputDTO
4038
+ * @param {*} [options] Override http request option.
4039
+ * @throws {RequiredError}
4040
+ * @memberof FixtureHistoryApi
4041
+ */
4042
+ fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options) {
4043
+ return FixtureHistoryApiFp(this.configuration)
4044
+ .fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options)
4045
+ .then((request) => request(this.axios, this.basePath));
4046
+ }
4047
+ /**
4048
+ * <br> OperationId: `FixtureHistoryControllerAnalytics`
4049
+ * @summary Write owned, back-dated events into the analytics store (inserts only missing ids)
4050
+ * @param {string} domainId
4051
+ * @param {FixtureHistoryAnalyticsInputDTO} [fixtureHistoryAnalyticsInputDTO] FixtureHistoryAnalyticsInputDTO
4052
+ * @param {*} [options] Override http request option.
4053
+ * @throws {RequiredError}
4054
+ * @memberof FixtureHistoryApi
4055
+ */
4056
+ fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options) {
4057
+ return FixtureHistoryApiFp(this.configuration)
4058
+ .fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options)
4059
+ .then((request) => request(this.axios, this.basePath));
4060
+ }
4061
+ /**
4062
+ * <br> OperationId: `FixtureHistoryControllerCapabilities`
4063
+ * @summary What the writer can do for this domain, and the domain\'s event retention
4064
+ * @param {string} domainId
4065
+ * @param {*} [options] Override http request option.
4066
+ * @throws {RequiredError}
4067
+ * @memberof FixtureHistoryApi
4068
+ */
4069
+ fixtureHistoryControllerCapabilities(domainId, options) {
4070
+ return FixtureHistoryApiFp(this.configuration)
4071
+ .fixtureHistoryControllerCapabilities(domainId, options)
4072
+ .then((request) => request(this.axios, this.basePath));
4073
+ }
4074
+ /**
4075
+ * <br> OperationId: `FixtureHistoryControllerDelete`
4076
+ * @summary Delete a bounded batch of this dataset\'s rows from one store; loop until remaining is 0
4077
+ * @param {string} domainId
4078
+ * @param {string} fixtureDatasetId
4079
+ * @param {FixtureHistoryDeleteInputDTO} [fixtureHistoryDeleteInputDTO] FixtureHistoryDeleteInputDTO
4080
+ * @param {*} [options] Override http request option.
4081
+ * @throws {RequiredError}
4082
+ * @memberof FixtureHistoryApi
4083
+ */
4084
+ fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options) {
4085
+ return FixtureHistoryApiFp(this.configuration)
4086
+ .fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options)
4087
+ .then((request) => request(this.axios, this.basePath));
4088
+ }
4089
+ /**
4090
+ * <br> OperationId: `FixtureHistoryControllerEconomyReadiness`
4091
+ * @summary Per gameserver: whether economyEnabled is on (read-only; never written)
4092
+ * @param {string} domainId
4093
+ * @param {FixtureHistoryEconomyReadinessInputDTO} [fixtureHistoryEconomyReadinessInputDTO] FixtureHistoryEconomyReadinessInputDTO
4094
+ * @param {*} [options] Override http request option.
4095
+ * @throws {RequiredError}
4096
+ * @memberof FixtureHistoryApi
4097
+ */
4098
+ fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options) {
4099
+ return FixtureHistoryApiFp(this.configuration)
4100
+ .fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options)
4101
+ .then((request) => request(this.axios, this.basePath));
4102
+ }
4103
+ /**
4104
+ * One transaction. A planned row whose natural key is held by a row this dataset does not own is a conflict: nothing in the request is written and the conflicts are returned.<br> OperationId: `FixtureHistoryControllerIdentities`
4105
+ * @summary Write owned, back-dated players and players-on-gameserver
4106
+ * @param {string} domainId
4107
+ * @param {FixtureHistoryIdentitiesInputDTO} [fixtureHistoryIdentitiesInputDTO] FixtureHistoryIdentitiesInputDTO
4108
+ * @param {*} [options] Override http request option.
4109
+ * @throws {RequiredError}
4110
+ * @memberof FixtureHistoryApi
4111
+ */
4112
+ fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options) {
4113
+ return FixtureHistoryApiFp(this.configuration)
4114
+ .fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options)
4115
+ .then((request) => request(this.axios, this.basePath));
4116
+ }
4117
+ /**
4118
+ * <br> OperationId: `FixtureHistoryControllerInventory`
4119
+ * @summary Write the terminal inventory baseline of owned players-on-gameserver (idempotent)
4120
+ * @param {string} domainId
4121
+ * @param {FixtureHistoryInventoryInputDTO} [fixtureHistoryInventoryInputDTO] FixtureHistoryInventoryInputDTO
4122
+ * @param {*} [options] Override http request option.
4123
+ * @throws {RequiredError}
4124
+ * @memberof FixtureHistoryApi
4125
+ */
4126
+ fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options) {
4127
+ return FixtureHistoryApiFp(this.configuration)
4128
+ .fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options)
4129
+ .then((request) => request(this.axios, this.basePath));
4130
+ }
4131
+ /**
4132
+ * <br> OperationId: `FixtureHistoryControllerInventoryPage`
4133
+ * @summary Page through the owned inventory baselines, by player-on-gameserver
4134
+ * @param {string} domainId
4135
+ * @param {string} fixtureDatasetId
4136
+ * @param {string} [cursor]
4137
+ * @param {*} [options] Override http request option.
4138
+ * @throws {RequiredError}
4139
+ * @memberof FixtureHistoryApi
4140
+ */
4141
+ fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options) {
4142
+ return FixtureHistoryApiFp(this.configuration)
4143
+ .fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options)
4144
+ .then((request) => request(this.axios, this.basePath));
4145
+ }
4146
+ /**
4147
+ * One transaction. A listing whose id, or whose name on its gameserver, is held by a listing this dataset does not own is a conflict: nothing is written and the conflicts are returned.<br> OperationId: `FixtureHistoryControllerListings`
4148
+ * @summary Write owned, back-dated shop listings
4149
+ * @param {string} domainId
4150
+ * @param {FixtureHistoryListingsInputDTO} [fixtureHistoryListingsInputDTO] FixtureHistoryListingsInputDTO
4151
+ * @param {*} [options] Override http request option.
4152
+ * @throws {RequiredError}
4153
+ * @memberof FixtureHistoryApi
4154
+ */
4155
+ fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options) {
4156
+ return FixtureHistoryApiFp(this.configuration)
4157
+ .fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options)
4158
+ .then((request) => request(this.axios, this.basePath));
4159
+ }
4160
+ /**
4161
+ * Never charges, refunds, delivers or runs a shop action: an order is written as a settled row.<br> OperationId: `FixtureHistoryControllerOrders`
4162
+ * @summary Write owned, settled (COMPLETED or CANCELED) historical orders (idempotent)
4163
+ * @param {string} domainId
4164
+ * @param {FixtureHistoryOrdersInputDTO} [fixtureHistoryOrdersInputDTO] FixtureHistoryOrdersInputDTO
4165
+ * @param {*} [options] Override http request option.
4166
+ * @throws {RequiredError}
4167
+ * @memberof FixtureHistoryApi
4168
+ */
4169
+ fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options) {
4170
+ return FixtureHistoryApiFp(this.configuration)
4171
+ .fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options)
4172
+ .then((request) => request(this.axios, this.basePath));
4173
+ }
4174
+ /**
4175
+ * <br> OperationId: `FixtureHistoryControllerSummary`
4176
+ * @summary Owned row counts per store, and unowned events naming owned players
4177
+ * @param {string} domainId
4178
+ * @param {string} fixtureDatasetId
4179
+ * @param {FixtureHistoryControllerSummarySinceParameter} [since]
4180
+ * @param {*} [options] Override http request option.
4181
+ * @throws {RequiredError}
4182
+ * @memberof FixtureHistoryApi
4183
+ */
4184
+ fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options) {
4185
+ return FixtureHistoryApiFp(this.configuration)
4186
+ .fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options)
4187
+ .then((request) => request(this.axios, this.basePath));
4188
+ }
4189
+ /**
4190
+ * <br> OperationId: `FixtureHistoryControllerTerminal`
4191
+ * @summary Set the offline terminal state of owned players-on-gameserver
4192
+ * @param {string} domainId
4193
+ * @param {FixtureHistoryTerminalInputDTO} [fixtureHistoryTerminalInputDTO] FixtureHistoryTerminalInputDTO
4194
+ * @param {*} [options] Override http request option.
4195
+ * @throws {RequiredError}
4196
+ * @memberof FixtureHistoryApi
4197
+ */
4198
+ fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options) {
4199
+ return FixtureHistoryApiFp(this.configuration)
4200
+ .fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options)
4201
+ .then((request) => request(this.axios, this.basePath));
4202
+ }
4203
+ /**
4204
+ * <br> OperationId: `FixtureHistoryControllerTerminalState`
4205
+ * @summary Page through the terminal state of owned players-on-gameserver
4206
+ * @param {string} domainId
4207
+ * @param {string} fixtureDatasetId
4208
+ * @param {string} [cursor]
4209
+ * @param {*} [options] Override http request option.
4210
+ * @throws {RequiredError}
4211
+ * @memberof FixtureHistoryApi
4212
+ */
4213
+ fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options) {
4214
+ return FixtureHistoryApiFp(this.configuration)
4215
+ .fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options)
4216
+ .then((request) => request(this.axios, this.basePath));
4217
+ }
4218
+ }
3150
4219
  /**
3151
4220
  * MetaApi - axios parameter creator
3152
4221
  * @export