@takaro/apiclient 0.0.0-dev.9f02005 → 0.0.0-dev.a2993e0

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.
@@ -724,6 +724,12 @@ export const MetaFilterGroupOrLeafDTOOperatorEnum = {
724
724
  LessThan: '<',
725
725
  ArrayContains: 'array_contains',
726
726
  };
727
+ export const ModuleInstallationKpisQueryDTOPeriodEnum = {
728
+ _24h: '24h',
729
+ _7d: '7d',
730
+ _30d: '30d',
731
+ _90d: '90d',
732
+ };
727
733
  export const ModuleInstallationSearchInputDTOSortDirectionEnum = {
728
734
  Asc: 'asc',
729
735
  Desc: 'desc',
@@ -1448,6 +1454,56 @@ export const AnalyticsApiAxiosParamCreator = function (configuration) {
1448
1454
  options: localVarRequestOptions,
1449
1455
  };
1450
1456
  },
1457
+ /**
1458
+ * Runs, failures and success rate for one module on one game server. Both gameServerId and moduleId are required. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleInstallationKpis`
1459
+ * @summary Get per-installation module KPIs
1460
+ * @param {string} gameServerId
1461
+ * @param {string} moduleId
1462
+ * @param {string} [startDate]
1463
+ * @param {string} [endDate]
1464
+ * @param {AnalyticsControllerGetModuleInstallationKpisPeriodEnum} [period]
1465
+ * @param {*} [options] Override http request option.
1466
+ * @throws {RequiredError}
1467
+ */
1468
+ analyticsControllerGetModuleInstallationKpis: async (gameServerId, moduleId, startDate, endDate, period, options = {}) => {
1469
+ // verify required parameter 'gameServerId' is not null or undefined
1470
+ assertParamExists('analyticsControllerGetModuleInstallationKpis', 'gameServerId', gameServerId);
1471
+ // verify required parameter 'moduleId' is not null or undefined
1472
+ assertParamExists('analyticsControllerGetModuleInstallationKpis', 'moduleId', moduleId);
1473
+ const localVarPath = `/analytics/modules/installation-kpis`;
1474
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1475
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1476
+ let baseOptions;
1477
+ if (configuration) {
1478
+ baseOptions = configuration.baseOptions;
1479
+ }
1480
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1481
+ const localVarHeaderParameter = {};
1482
+ const localVarQueryParameter = {};
1483
+ // authentication domainAuth required
1484
+ if (startDate !== undefined) {
1485
+ localVarQueryParameter['startDate'] = startDate;
1486
+ }
1487
+ if (endDate !== undefined) {
1488
+ localVarQueryParameter['endDate'] = endDate;
1489
+ }
1490
+ if (gameServerId !== undefined) {
1491
+ localVarQueryParameter['gameServerId'] = gameServerId;
1492
+ }
1493
+ if (moduleId !== undefined) {
1494
+ localVarQueryParameter['moduleId'] = moduleId;
1495
+ }
1496
+ if (period !== undefined) {
1497
+ localVarQueryParameter['period'] = period;
1498
+ }
1499
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1500
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1501
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1502
+ return {
1503
+ url: toPathString(localVarUrlObj),
1504
+ options: localVarRequestOptions,
1505
+ };
1506
+ },
1451
1507
  /**
1452
1508
  * Unified failure leaderboard across all module-item types (hooks, crons, commands, shop actions). Each row carries a `type` discriminator alongside runs, failures, and failure rate. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleItemFailureLeaderboard`
1453
1509
  * @summary Get module item failure aggregate
@@ -2548,6 +2604,24 @@ export const AnalyticsApiFp = function (configuration) {
2548
2604
  const localVarOperationServerBasePath = operationServerMap['AnalyticsApi.analyticsControllerGetModuleHealth']?.[localVarOperationServerIndex]?.url;
2549
2605
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2550
2606
  },
2607
+ /**
2608
+ * Runs, failures and success rate for one module on one game server. Both gameServerId and moduleId are required. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleInstallationKpis`
2609
+ * @summary Get per-installation module KPIs
2610
+ * @param {string} gameServerId
2611
+ * @param {string} moduleId
2612
+ * @param {string} [startDate]
2613
+ * @param {string} [endDate]
2614
+ * @param {AnalyticsControllerGetModuleInstallationKpisPeriodEnum} [period]
2615
+ * @param {*} [options] Override http request option.
2616
+ * @throws {RequiredError}
2617
+ */
2618
+ async analyticsControllerGetModuleInstallationKpis(gameServerId, moduleId, startDate, endDate, period, options) {
2619
+ const localVarAxiosArgs = await localVarAxiosParamCreator.analyticsControllerGetModuleInstallationKpis(gameServerId, moduleId, startDate, endDate, period, options);
2620
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2621
+ const localVarOperationServerBasePath = operationServerMap['AnalyticsApi.analyticsControllerGetModuleInstallationKpis']?.[localVarOperationServerIndex]
2622
+ ?.url;
2623
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2624
+ },
2551
2625
  /**
2552
2626
  * Unified failure leaderboard across all module-item types (hooks, crons, commands, shop actions). Each row carries a `type` discriminator alongside runs, failures, and failure rate. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleItemFailureLeaderboard`
2553
2627
  * @summary Get module item failure aggregate
@@ -3090,6 +3164,22 @@ export const AnalyticsApiFactory = function (configuration, basePath, axios) {
3090
3164
  .analyticsControllerGetModuleHealth(startDate, endDate, gameServerId, period, options)
3091
3165
  .then((request) => request(axios, basePath));
3092
3166
  },
3167
+ /**
3168
+ * Runs, failures and success rate for one module on one game server. Both gameServerId and moduleId are required. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleInstallationKpis`
3169
+ * @summary Get per-installation module KPIs
3170
+ * @param {string} gameServerId
3171
+ * @param {string} moduleId
3172
+ * @param {string} [startDate]
3173
+ * @param {string} [endDate]
3174
+ * @param {AnalyticsControllerGetModuleInstallationKpisPeriodEnum} [period]
3175
+ * @param {*} [options] Override http request option.
3176
+ * @throws {RequiredError}
3177
+ */
3178
+ analyticsControllerGetModuleInstallationKpis(gameServerId, moduleId, startDate, endDate, period, options) {
3179
+ return localVarFp
3180
+ .analyticsControllerGetModuleInstallationKpis(gameServerId, moduleId, startDate, endDate, period, options)
3181
+ .then((request) => request(axios, basePath));
3182
+ },
3093
3183
  /**
3094
3184
  * Unified failure leaderboard across all module-item types (hooks, crons, commands, shop actions). Each row carries a `type` discriminator alongside runs, failures, and failure rate. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleItemFailureLeaderboard`
3095
3185
  * @summary Get module item failure aggregate
@@ -3619,6 +3709,23 @@ export class AnalyticsApi extends BaseAPI {
3619
3709
  .analyticsControllerGetModuleHealth(startDate, endDate, gameServerId, period, options)
3620
3710
  .then((request) => request(this.axios, this.basePath));
3621
3711
  }
3712
+ /**
3713
+ * Runs, failures and success rate for one module on one game server. Both gameServerId and moduleId are required. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleInstallationKpis`
3714
+ * @summary Get per-installation module KPIs
3715
+ * @param {string} gameServerId
3716
+ * @param {string} moduleId
3717
+ * @param {string} [startDate]
3718
+ * @param {string} [endDate]
3719
+ * @param {AnalyticsControllerGetModuleInstallationKpisPeriodEnum} [period]
3720
+ * @param {*} [options] Override http request option.
3721
+ * @throws {RequiredError}
3722
+ * @memberof AnalyticsApi
3723
+ */
3724
+ analyticsControllerGetModuleInstallationKpis(gameServerId, moduleId, startDate, endDate, period, options) {
3725
+ return AnalyticsApiFp(this.configuration)
3726
+ .analyticsControllerGetModuleInstallationKpis(gameServerId, moduleId, startDate, endDate, period, options)
3727
+ .then((request) => request(this.axios, this.basePath));
3728
+ }
3622
3729
  /**
3623
3730
  * Unified failure leaderboard across all module-item types (hooks, crons, commands, shop actions). Each row carries a `type` discriminator alongside runs, failures, and failure rate. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleItemFailureLeaderboard`
3624
3731
  * @summary Get module item failure aggregate
@@ -4064,6 +4171,15 @@ export const AnalyticsControllerGetModuleHealthPeriodEnum = {
4064
4171
  _30d: '30d',
4065
4172
  _90d: '90d',
4066
4173
  };
4174
+ /**
4175
+ * @export
4176
+ */
4177
+ export const AnalyticsControllerGetModuleInstallationKpisPeriodEnum = {
4178
+ _24h: '24h',
4179
+ _7d: '7d',
4180
+ _30d: '30d',
4181
+ _90d: '90d',
4182
+ };
4067
4183
  /**
4068
4184
  * @export
4069
4185
  */
@@ -4253,6 +4369,286 @@ export const AnalyticsControllerGetTopServersPeriodEnum = {
4253
4369
  _30d: '30d',
4254
4370
  _90d: '90d',
4255
4371
  };
4372
+ /**
4373
+ * AuthApi - axios parameter creator
4374
+ * @export
4375
+ */
4376
+ export const AuthApiAxiosParamCreator = function (configuration) {
4377
+ return {
4378
+ /**
4379
+ * <br> OperationId: `AuthControllerAccount`
4380
+ * @summary Account
4381
+ * @param {*} [options] Override http request option.
4382
+ * @throws {RequiredError}
4383
+ */
4384
+ authControllerAccount: async (options = {}) => {
4385
+ const localVarPath = `/auth/account`;
4386
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4387
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4388
+ let baseOptions;
4389
+ if (configuration) {
4390
+ baseOptions = configuration.baseOptions;
4391
+ }
4392
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4393
+ const localVarHeaderParameter = {};
4394
+ const localVarQueryParameter = {};
4395
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4396
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4397
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4398
+ return {
4399
+ url: toPathString(localVarUrlObj),
4400
+ options: localVarRequestOptions,
4401
+ };
4402
+ },
4403
+ /**
4404
+ * <br> OperationId: `AuthControllerCallback`
4405
+ * @summary Callback
4406
+ * @param {*} [options] Override http request option.
4407
+ * @throws {RequiredError}
4408
+ */
4409
+ authControllerCallback: async (options = {}) => {
4410
+ const localVarPath = `/auth/callback`;
4411
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4412
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4413
+ let baseOptions;
4414
+ if (configuration) {
4415
+ baseOptions = configuration.baseOptions;
4416
+ }
4417
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4418
+ const localVarHeaderParameter = {};
4419
+ const localVarQueryParameter = {};
4420
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4421
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4422
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4423
+ return {
4424
+ url: toPathString(localVarUrlObj),
4425
+ options: localVarRequestOptions,
4426
+ };
4427
+ },
4428
+ /**
4429
+ * <br> OperationId: `AuthControllerLogin`
4430
+ * @summary Login
4431
+ * @param {string} [redirect]
4432
+ * @param {*} [options] Override http request option.
4433
+ * @throws {RequiredError}
4434
+ */
4435
+ authControllerLogin: async (redirect, options = {}) => {
4436
+ const localVarPath = `/auth/login`;
4437
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4438
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4439
+ let baseOptions;
4440
+ if (configuration) {
4441
+ baseOptions = configuration.baseOptions;
4442
+ }
4443
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4444
+ const localVarHeaderParameter = {};
4445
+ const localVarQueryParameter = {};
4446
+ if (redirect !== undefined) {
4447
+ localVarQueryParameter['redirect'] = redirect;
4448
+ }
4449
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4450
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4451
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4452
+ return {
4453
+ url: toPathString(localVarUrlObj),
4454
+ options: localVarRequestOptions,
4455
+ };
4456
+ },
4457
+ /**
4458
+ * <br> OperationId: `AuthControllerLogout`
4459
+ * @summary Logout
4460
+ * @param {string} [redirect]
4461
+ * @param {*} [options] Override http request option.
4462
+ * @throws {RequiredError}
4463
+ */
4464
+ authControllerLogout: async (redirect, options = {}) => {
4465
+ const localVarPath = `/auth/logout`;
4466
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4467
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4468
+ let baseOptions;
4469
+ if (configuration) {
4470
+ baseOptions = configuration.baseOptions;
4471
+ }
4472
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4473
+ const localVarHeaderParameter = {};
4474
+ const localVarQueryParameter = {};
4475
+ if (redirect !== undefined) {
4476
+ localVarQueryParameter['redirect'] = redirect;
4477
+ }
4478
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4479
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4480
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4481
+ return {
4482
+ url: toPathString(localVarUrlObj),
4483
+ options: localVarRequestOptions,
4484
+ };
4485
+ },
4486
+ };
4487
+ };
4488
+ /**
4489
+ * AuthApi - functional programming interface
4490
+ * @export
4491
+ */
4492
+ export const AuthApiFp = function (configuration) {
4493
+ const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration);
4494
+ return {
4495
+ /**
4496
+ * <br> OperationId: `AuthControllerAccount`
4497
+ * @summary Account
4498
+ * @param {*} [options] Override http request option.
4499
+ * @throws {RequiredError}
4500
+ */
4501
+ async authControllerAccount(options) {
4502
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerAccount(options);
4503
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4504
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerAccount']?.[localVarOperationServerIndex]?.url;
4505
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4506
+ },
4507
+ /**
4508
+ * <br> OperationId: `AuthControllerCallback`
4509
+ * @summary Callback
4510
+ * @param {*} [options] Override http request option.
4511
+ * @throws {RequiredError}
4512
+ */
4513
+ async authControllerCallback(options) {
4514
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerCallback(options);
4515
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4516
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerCallback']?.[localVarOperationServerIndex]?.url;
4517
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4518
+ },
4519
+ /**
4520
+ * <br> OperationId: `AuthControllerLogin`
4521
+ * @summary Login
4522
+ * @param {string} [redirect]
4523
+ * @param {*} [options] Override http request option.
4524
+ * @throws {RequiredError}
4525
+ */
4526
+ async authControllerLogin(redirect, options) {
4527
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerLogin(redirect, options);
4528
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4529
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerLogin']?.[localVarOperationServerIndex]?.url;
4530
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4531
+ },
4532
+ /**
4533
+ * <br> OperationId: `AuthControllerLogout`
4534
+ * @summary Logout
4535
+ * @param {string} [redirect]
4536
+ * @param {*} [options] Override http request option.
4537
+ * @throws {RequiredError}
4538
+ */
4539
+ async authControllerLogout(redirect, options) {
4540
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerLogout(redirect, options);
4541
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4542
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerLogout']?.[localVarOperationServerIndex]?.url;
4543
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4544
+ },
4545
+ };
4546
+ };
4547
+ /**
4548
+ * AuthApi - factory interface
4549
+ * @export
4550
+ */
4551
+ export const AuthApiFactory = function (configuration, basePath, axios) {
4552
+ const localVarFp = AuthApiFp(configuration);
4553
+ return {
4554
+ /**
4555
+ * <br> OperationId: `AuthControllerAccount`
4556
+ * @summary Account
4557
+ * @param {*} [options] Override http request option.
4558
+ * @throws {RequiredError}
4559
+ */
4560
+ authControllerAccount(options) {
4561
+ return localVarFp.authControllerAccount(options).then((request) => request(axios, basePath));
4562
+ },
4563
+ /**
4564
+ * <br> OperationId: `AuthControllerCallback`
4565
+ * @summary Callback
4566
+ * @param {*} [options] Override http request option.
4567
+ * @throws {RequiredError}
4568
+ */
4569
+ authControllerCallback(options) {
4570
+ return localVarFp.authControllerCallback(options).then((request) => request(axios, basePath));
4571
+ },
4572
+ /**
4573
+ * <br> OperationId: `AuthControllerLogin`
4574
+ * @summary Login
4575
+ * @param {string} [redirect]
4576
+ * @param {*} [options] Override http request option.
4577
+ * @throws {RequiredError}
4578
+ */
4579
+ authControllerLogin(redirect, options) {
4580
+ return localVarFp.authControllerLogin(redirect, options).then((request) => request(axios, basePath));
4581
+ },
4582
+ /**
4583
+ * <br> OperationId: `AuthControllerLogout`
4584
+ * @summary Logout
4585
+ * @param {string} [redirect]
4586
+ * @param {*} [options] Override http request option.
4587
+ * @throws {RequiredError}
4588
+ */
4589
+ authControllerLogout(redirect, options) {
4590
+ return localVarFp.authControllerLogout(redirect, options).then((request) => request(axios, basePath));
4591
+ },
4592
+ };
4593
+ };
4594
+ /**
4595
+ * AuthApi - object-oriented interface
4596
+ * @export
4597
+ * @class AuthApi
4598
+ * @extends {BaseAPI}
4599
+ */
4600
+ export class AuthApi extends BaseAPI {
4601
+ /**
4602
+ * <br> OperationId: `AuthControllerAccount`
4603
+ * @summary Account
4604
+ * @param {*} [options] Override http request option.
4605
+ * @throws {RequiredError}
4606
+ * @memberof AuthApi
4607
+ */
4608
+ authControllerAccount(options) {
4609
+ return AuthApiFp(this.configuration)
4610
+ .authControllerAccount(options)
4611
+ .then((request) => request(this.axios, this.basePath));
4612
+ }
4613
+ /**
4614
+ * <br> OperationId: `AuthControllerCallback`
4615
+ * @summary Callback
4616
+ * @param {*} [options] Override http request option.
4617
+ * @throws {RequiredError}
4618
+ * @memberof AuthApi
4619
+ */
4620
+ authControllerCallback(options) {
4621
+ return AuthApiFp(this.configuration)
4622
+ .authControllerCallback(options)
4623
+ .then((request) => request(this.axios, this.basePath));
4624
+ }
4625
+ /**
4626
+ * <br> OperationId: `AuthControllerLogin`
4627
+ * @summary Login
4628
+ * @param {string} [redirect]
4629
+ * @param {*} [options] Override http request option.
4630
+ * @throws {RequiredError}
4631
+ * @memberof AuthApi
4632
+ */
4633
+ authControllerLogin(redirect, options) {
4634
+ return AuthApiFp(this.configuration)
4635
+ .authControllerLogin(redirect, options)
4636
+ .then((request) => request(this.axios, this.basePath));
4637
+ }
4638
+ /**
4639
+ * <br> OperationId: `AuthControllerLogout`
4640
+ * @summary Logout
4641
+ * @param {string} [redirect]
4642
+ * @param {*} [options] Override http request option.
4643
+ * @throws {RequiredError}
4644
+ * @memberof AuthApi
4645
+ */
4646
+ authControllerLogout(redirect, options) {
4647
+ return AuthApiFp(this.configuration)
4648
+ .authControllerLogout(redirect, options)
4649
+ .then((request) => request(this.axios, this.basePath));
4650
+ }
4651
+ }
4256
4652
  /**
4257
4653
  * CommandApi - axios parameter creator
4258
4654
  * @export
@@ -16408,6 +16804,240 @@ export class ShopOrderApi extends BaseAPI {
16408
16804
  .then((request) => request(this.axios, this.basePath));
16409
16805
  }
16410
16806
  }
16807
+ /**
16808
+ * StorefrontConfigApi - axios parameter creator
16809
+ * @export
16810
+ */
16811
+ export const StorefrontConfigApiAxiosParamCreator = function (configuration) {
16812
+ return {
16813
+ /**
16814
+ * Get the effective storefront configuration for a game server. Returns defaults when no config row exists. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerGetEffectiveConfig`
16815
+ * @summary Get effective config
16816
+ * @param {string} gameServerId
16817
+ * @param {*} [options] Override http request option.
16818
+ * @throws {RequiredError}
16819
+ */
16820
+ storefrontConfigControllerGetEffectiveConfig: async (gameServerId, options = {}) => {
16821
+ // verify required parameter 'gameServerId' is not null or undefined
16822
+ assertParamExists('storefrontConfigControllerGetEffectiveConfig', 'gameServerId', gameServerId);
16823
+ const localVarPath = `/gameserver/{gameServerId}/storefront-config`.replace(`{${'gameServerId'}}`, encodeURIComponent(String(gameServerId)));
16824
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16825
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16826
+ let baseOptions;
16827
+ if (configuration) {
16828
+ baseOptions = configuration.baseOptions;
16829
+ }
16830
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
16831
+ const localVarHeaderParameter = {};
16832
+ const localVarQueryParameter = {};
16833
+ // authentication domainAuth required
16834
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16835
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16836
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
16837
+ return {
16838
+ url: toPathString(localVarUrlObj),
16839
+ options: localVarRequestOptions,
16840
+ };
16841
+ },
16842
+ /**
16843
+ * List all available storefront templates with their variable schemas. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerListTemplates`
16844
+ * @summary List templates
16845
+ * @param {*} [options] Override http request option.
16846
+ * @throws {RequiredError}
16847
+ */
16848
+ storefrontConfigControllerListTemplates: async (options = {}) => {
16849
+ const localVarPath = `/storefront/templates`;
16850
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16851
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16852
+ let baseOptions;
16853
+ if (configuration) {
16854
+ baseOptions = configuration.baseOptions;
16855
+ }
16856
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
16857
+ const localVarHeaderParameter = {};
16858
+ const localVarQueryParameter = {};
16859
+ // authentication domainAuth required
16860
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16861
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16862
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
16863
+ return {
16864
+ url: toPathString(localVarUrlObj),
16865
+ options: localVarRequestOptions,
16866
+ };
16867
+ },
16868
+ /**
16869
+ * Set the storefront configuration for a game server. Validates the template id and values against the template schema. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerSetConfig`
16870
+ * @summary Set config
16871
+ * @param {string} gameServerId
16872
+ * @param {StorefrontConfigUpsertBody} [storefrontConfigUpsertBody] StorefrontConfigUpsertBody
16873
+ * @param {*} [options] Override http request option.
16874
+ * @throws {RequiredError}
16875
+ */
16876
+ storefrontConfigControllerSetConfig: async (gameServerId, storefrontConfigUpsertBody, options = {}) => {
16877
+ // verify required parameter 'gameServerId' is not null or undefined
16878
+ assertParamExists('storefrontConfigControllerSetConfig', 'gameServerId', gameServerId);
16879
+ const localVarPath = `/gameserver/{gameServerId}/storefront-config`.replace(`{${'gameServerId'}}`, encodeURIComponent(String(gameServerId)));
16880
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16881
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16882
+ let baseOptions;
16883
+ if (configuration) {
16884
+ baseOptions = configuration.baseOptions;
16885
+ }
16886
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
16887
+ const localVarHeaderParameter = {};
16888
+ const localVarQueryParameter = {};
16889
+ // authentication domainAuth required
16890
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16891
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16892
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16893
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
16894
+ localVarRequestOptions.data = serializeDataIfNeeded(storefrontConfigUpsertBody, localVarRequestOptions, configuration);
16895
+ return {
16896
+ url: toPathString(localVarUrlObj),
16897
+ options: localVarRequestOptions,
16898
+ };
16899
+ },
16900
+ };
16901
+ };
16902
+ /**
16903
+ * StorefrontConfigApi - functional programming interface
16904
+ * @export
16905
+ */
16906
+ export const StorefrontConfigApiFp = function (configuration) {
16907
+ const localVarAxiosParamCreator = StorefrontConfigApiAxiosParamCreator(configuration);
16908
+ return {
16909
+ /**
16910
+ * Get the effective storefront configuration for a game server. Returns defaults when no config row exists. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerGetEffectiveConfig`
16911
+ * @summary Get effective config
16912
+ * @param {string} gameServerId
16913
+ * @param {*} [options] Override http request option.
16914
+ * @throws {RequiredError}
16915
+ */
16916
+ async storefrontConfigControllerGetEffectiveConfig(gameServerId, options) {
16917
+ const localVarAxiosArgs = await localVarAxiosParamCreator.storefrontConfigControllerGetEffectiveConfig(gameServerId, options);
16918
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16919
+ const localVarOperationServerBasePath = operationServerMap['StorefrontConfigApi.storefrontConfigControllerGetEffectiveConfig']?.[localVarOperationServerIndex]?.url;
16920
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16921
+ },
16922
+ /**
16923
+ * List all available storefront templates with their variable schemas. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerListTemplates`
16924
+ * @summary List templates
16925
+ * @param {*} [options] Override http request option.
16926
+ * @throws {RequiredError}
16927
+ */
16928
+ async storefrontConfigControllerListTemplates(options) {
16929
+ const localVarAxiosArgs = await localVarAxiosParamCreator.storefrontConfigControllerListTemplates(options);
16930
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16931
+ const localVarOperationServerBasePath = operationServerMap['StorefrontConfigApi.storefrontConfigControllerListTemplates']?.[localVarOperationServerIndex]?.url;
16932
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16933
+ },
16934
+ /**
16935
+ * Set the storefront configuration for a game server. Validates the template id and values against the template schema. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerSetConfig`
16936
+ * @summary Set config
16937
+ * @param {string} gameServerId
16938
+ * @param {StorefrontConfigUpsertBody} [storefrontConfigUpsertBody] StorefrontConfigUpsertBody
16939
+ * @param {*} [options] Override http request option.
16940
+ * @throws {RequiredError}
16941
+ */
16942
+ async storefrontConfigControllerSetConfig(gameServerId, storefrontConfigUpsertBody, options) {
16943
+ const localVarAxiosArgs = await localVarAxiosParamCreator.storefrontConfigControllerSetConfig(gameServerId, storefrontConfigUpsertBody, options);
16944
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16945
+ const localVarOperationServerBasePath = operationServerMap['StorefrontConfigApi.storefrontConfigControllerSetConfig']?.[localVarOperationServerIndex]
16946
+ ?.url;
16947
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16948
+ },
16949
+ };
16950
+ };
16951
+ /**
16952
+ * StorefrontConfigApi - factory interface
16953
+ * @export
16954
+ */
16955
+ export const StorefrontConfigApiFactory = function (configuration, basePath, axios) {
16956
+ const localVarFp = StorefrontConfigApiFp(configuration);
16957
+ return {
16958
+ /**
16959
+ * Get the effective storefront configuration for a game server. Returns defaults when no config row exists. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerGetEffectiveConfig`
16960
+ * @summary Get effective config
16961
+ * @param {string} gameServerId
16962
+ * @param {*} [options] Override http request option.
16963
+ * @throws {RequiredError}
16964
+ */
16965
+ storefrontConfigControllerGetEffectiveConfig(gameServerId, options) {
16966
+ return localVarFp
16967
+ .storefrontConfigControllerGetEffectiveConfig(gameServerId, options)
16968
+ .then((request) => request(axios, basePath));
16969
+ },
16970
+ /**
16971
+ * List all available storefront templates with their variable schemas. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerListTemplates`
16972
+ * @summary List templates
16973
+ * @param {*} [options] Override http request option.
16974
+ * @throws {RequiredError}
16975
+ */
16976
+ storefrontConfigControllerListTemplates(options) {
16977
+ return localVarFp.storefrontConfigControllerListTemplates(options).then((request) => request(axios, basePath));
16978
+ },
16979
+ /**
16980
+ * Set the storefront configuration for a game server. Validates the template id and values against the template schema. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerSetConfig`
16981
+ * @summary Set config
16982
+ * @param {string} gameServerId
16983
+ * @param {StorefrontConfigUpsertBody} [storefrontConfigUpsertBody] StorefrontConfigUpsertBody
16984
+ * @param {*} [options] Override http request option.
16985
+ * @throws {RequiredError}
16986
+ */
16987
+ storefrontConfigControllerSetConfig(gameServerId, storefrontConfigUpsertBody, options) {
16988
+ return localVarFp
16989
+ .storefrontConfigControllerSetConfig(gameServerId, storefrontConfigUpsertBody, options)
16990
+ .then((request) => request(axios, basePath));
16991
+ },
16992
+ };
16993
+ };
16994
+ /**
16995
+ * StorefrontConfigApi - object-oriented interface
16996
+ * @export
16997
+ * @class StorefrontConfigApi
16998
+ * @extends {BaseAPI}
16999
+ */
17000
+ export class StorefrontConfigApi extends BaseAPI {
17001
+ /**
17002
+ * Get the effective storefront configuration for a game server. Returns defaults when no config row exists. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerGetEffectiveConfig`
17003
+ * @summary Get effective config
17004
+ * @param {string} gameServerId
17005
+ * @param {*} [options] Override http request option.
17006
+ * @throws {RequiredError}
17007
+ * @memberof StorefrontConfigApi
17008
+ */
17009
+ storefrontConfigControllerGetEffectiveConfig(gameServerId, options) {
17010
+ return StorefrontConfigApiFp(this.configuration)
17011
+ .storefrontConfigControllerGetEffectiveConfig(gameServerId, options)
17012
+ .then((request) => request(this.axios, this.basePath));
17013
+ }
17014
+ /**
17015
+ * List all available storefront templates with their variable schemas. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerListTemplates`
17016
+ * @summary List templates
17017
+ * @param {*} [options] Override http request option.
17018
+ * @throws {RequiredError}
17019
+ * @memberof StorefrontConfigApi
17020
+ */
17021
+ storefrontConfigControllerListTemplates(options) {
17022
+ return StorefrontConfigApiFp(this.configuration)
17023
+ .storefrontConfigControllerListTemplates(options)
17024
+ .then((request) => request(this.axios, this.basePath));
17025
+ }
17026
+ /**
17027
+ * Set the storefront configuration for a game server. Validates the template id and values against the template schema. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerSetConfig`
17028
+ * @summary Set config
17029
+ * @param {string} gameServerId
17030
+ * @param {StorefrontConfigUpsertBody} [storefrontConfigUpsertBody] StorefrontConfigUpsertBody
17031
+ * @param {*} [options] Override http request option.
17032
+ * @throws {RequiredError}
17033
+ * @memberof StorefrontConfigApi
17034
+ */
17035
+ storefrontConfigControllerSetConfig(gameServerId, storefrontConfigUpsertBody, options) {
17036
+ return StorefrontConfigApiFp(this.configuration)
17037
+ .storefrontConfigControllerSetConfig(gameServerId, storefrontConfigUpsertBody, options)
17038
+ .then((request) => request(this.axios, this.basePath));
17039
+ }
17040
+ }
16411
17041
  /**
16412
17042
  * TrackingApi - axios parameter creator
16413
17043
  * @export