@takaro/apiclient 0.0.0-dev.d05e266 → 0.0.0-dev.d0e0bc3

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.
@@ -2664,6 +2664,50 @@ export const DomainUpdateInputDTOStateEnum = {
2664
2664
  export type DomainUpdateInputDTOStateEnum =
2665
2665
  (typeof DomainUpdateInputDTOStateEnum)[keyof typeof DomainUpdateInputDTOStateEnum];
2666
2666
 
2667
+ /**
2668
+ *
2669
+ * @export
2670
+ * @interface EffectiveStorefrontConfigDTO
2671
+ */
2672
+ export interface EffectiveStorefrontConfigDTO {
2673
+ /**
2674
+ *
2675
+ * @type {string}
2676
+ * @memberof EffectiveStorefrontConfigDTO
2677
+ */
2678
+ templateId: string;
2679
+ /**
2680
+ *
2681
+ * @type {object}
2682
+ * @memberof EffectiveStorefrontConfigDTO
2683
+ */
2684
+ values: object;
2685
+ /**
2686
+ *
2687
+ * @type {object}
2688
+ * @memberof EffectiveStorefrontConfigDTO
2689
+ */
2690
+ schema: object;
2691
+ }
2692
+ /**
2693
+ *
2694
+ * @export
2695
+ * @interface EffectiveStorefrontConfigOutputDTOAPI
2696
+ */
2697
+ export interface EffectiveStorefrontConfigOutputDTOAPI {
2698
+ /**
2699
+ *
2700
+ * @type {EffectiveStorefrontConfigDTO}
2701
+ * @memberof EffectiveStorefrontConfigOutputDTOAPI
2702
+ */
2703
+ data: EffectiveStorefrontConfigDTO;
2704
+ /**
2705
+ *
2706
+ * @type {MetadataOutput}
2707
+ * @memberof EffectiveStorefrontConfigOutputDTOAPI
2708
+ */
2709
+ meta: MetadataOutput;
2710
+ }
2667
2711
  /**
2668
2712
  *
2669
2713
  * @export
@@ -7444,6 +7488,32 @@ export interface LoginOutputDTOAPI {
7444
7488
  */
7445
7489
  meta: MetadataOutput;
7446
7490
  }
7491
+ /**
7492
+ *
7493
+ * @export
7494
+ * @interface LoginQueryParams
7495
+ */
7496
+ export interface LoginQueryParams {
7497
+ /**
7498
+ *
7499
+ * @type {string}
7500
+ * @memberof LoginQueryParams
7501
+ */
7502
+ redirect?: string;
7503
+ }
7504
+ /**
7505
+ *
7506
+ * @export
7507
+ * @interface LogoutQueryParams
7508
+ */
7509
+ export interface LogoutQueryParams {
7510
+ /**
7511
+ *
7512
+ * @type {string}
7513
+ * @memberof LogoutQueryParams
7514
+ */
7515
+ redirect?: string;
7516
+ }
7447
7517
  /**
7448
7518
  *
7449
7519
  * @export
@@ -7567,7 +7637,7 @@ export interface MeOutputDTO {
7567
7637
  * @type {UserOutputWithRolesDTO}
7568
7638
  * @memberof MeOutputDTO
7569
7639
  */
7570
- user: UserOutputWithRolesDTO;
7640
+ user?: UserOutputWithRolesDTO;
7571
7641
  /**
7572
7642
  *
7573
7643
  * @type {Array<DomainOutputDTO>}
@@ -7579,7 +7649,7 @@ export interface MeOutputDTO {
7579
7649
  * @type {string}
7580
7650
  * @memberof MeOutputDTO
7581
7651
  */
7582
- domain: string;
7652
+ domain?: string;
7583
7653
  /**
7584
7654
  *
7585
7655
  * @type {PlayerOutputWithRolesDTO}
@@ -8073,6 +8143,98 @@ export interface ModuleInstallParamId {
8073
8143
  */
8074
8144
  gameServerId: string;
8075
8145
  }
8146
+ /**
8147
+ *
8148
+ * @export
8149
+ * @interface ModuleInstallationKpisDTO
8150
+ */
8151
+ export interface ModuleInstallationKpisDTO {
8152
+ /**
8153
+ *
8154
+ * @type {number}
8155
+ * @memberof ModuleInstallationKpisDTO
8156
+ */
8157
+ runs: number;
8158
+ /**
8159
+ *
8160
+ * @type {number}
8161
+ * @memberof ModuleInstallationKpisDTO
8162
+ */
8163
+ failures: number;
8164
+ /**
8165
+ *
8166
+ * @type {number}
8167
+ * @memberof ModuleInstallationKpisDTO
8168
+ */
8169
+ successRate: number;
8170
+ }
8171
+ /**
8172
+ *
8173
+ * @export
8174
+ * @interface ModuleInstallationKpisDTOAPI
8175
+ */
8176
+ export interface ModuleInstallationKpisDTOAPI {
8177
+ /**
8178
+ *
8179
+ * @type {ModuleInstallationKpisDTO}
8180
+ * @memberof ModuleInstallationKpisDTOAPI
8181
+ */
8182
+ data: ModuleInstallationKpisDTO;
8183
+ /**
8184
+ *
8185
+ * @type {MetadataOutput}
8186
+ * @memberof ModuleInstallationKpisDTOAPI
8187
+ */
8188
+ meta: MetadataOutput;
8189
+ }
8190
+ /**
8191
+ *
8192
+ * @export
8193
+ * @interface ModuleInstallationKpisQueryDTO
8194
+ */
8195
+ export interface ModuleInstallationKpisQueryDTO {
8196
+ /**
8197
+ *
8198
+ * @type {string}
8199
+ * @memberof ModuleInstallationKpisQueryDTO
8200
+ */
8201
+ startDate?: string;
8202
+ /**
8203
+ *
8204
+ * @type {string}
8205
+ * @memberof ModuleInstallationKpisQueryDTO
8206
+ */
8207
+ endDate?: string;
8208
+ /**
8209
+ *
8210
+ * @type {string}
8211
+ * @memberof ModuleInstallationKpisQueryDTO
8212
+ */
8213
+ gameServerId: string;
8214
+ /**
8215
+ *
8216
+ * @type {string}
8217
+ * @memberof ModuleInstallationKpisQueryDTO
8218
+ */
8219
+ moduleId: string;
8220
+ /**
8221
+ *
8222
+ * @type {string}
8223
+ * @memberof ModuleInstallationKpisQueryDTO
8224
+ */
8225
+ period?: ModuleInstallationKpisQueryDTOPeriodEnum;
8226
+ }
8227
+
8228
+ export const ModuleInstallationKpisQueryDTOPeriodEnum = {
8229
+ _24h: '24h',
8230
+ _7d: '7d',
8231
+ _30d: '30d',
8232
+ _90d: '90d',
8233
+ } as const;
8234
+
8235
+ export type ModuleInstallationKpisQueryDTOPeriodEnum =
8236
+ (typeof ModuleInstallationKpisQueryDTOPeriodEnum)[keyof typeof ModuleInstallationKpisQueryDTOPeriodEnum];
8237
+
8076
8238
  /**
8077
8239
  *
8078
8240
  * @export
@@ -15102,6 +15264,175 @@ export interface SmallModuleVersionOutputDTO {
15102
15264
  */
15103
15265
  updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
15104
15266
  }
15267
+ /**
15268
+ *
15269
+ * @export
15270
+ * @interface StorefrontConfigCreateDTO
15271
+ */
15272
+ export interface StorefrontConfigCreateDTO {
15273
+ /**
15274
+ *
15275
+ * @type {string}
15276
+ * @memberof StorefrontConfigCreateDTO
15277
+ */
15278
+ gameServerId: string;
15279
+ /**
15280
+ *
15281
+ * @type {string}
15282
+ * @memberof StorefrontConfigCreateDTO
15283
+ */
15284
+ templateId: string;
15285
+ /**
15286
+ *
15287
+ * @type {object}
15288
+ * @memberof StorefrontConfigCreateDTO
15289
+ */
15290
+ values?: object;
15291
+ }
15292
+ /**
15293
+ *
15294
+ * @export
15295
+ * @interface StorefrontConfigOutputDTO
15296
+ */
15297
+ export interface StorefrontConfigOutputDTO {
15298
+ /**
15299
+ *
15300
+ * @type {string}
15301
+ * @memberof StorefrontConfigOutputDTO
15302
+ */
15303
+ gameServerId: string;
15304
+ /**
15305
+ *
15306
+ * @type {string}
15307
+ * @memberof StorefrontConfigOutputDTO
15308
+ */
15309
+ templateId: string;
15310
+ /**
15311
+ *
15312
+ * @type {object}
15313
+ * @memberof StorefrontConfigOutputDTO
15314
+ */
15315
+ values: object;
15316
+ /**
15317
+ *
15318
+ * @type {string}
15319
+ * @memberof StorefrontConfigOutputDTO
15320
+ */
15321
+ id: string;
15322
+ /**
15323
+ *
15324
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
15325
+ * @memberof StorefrontConfigOutputDTO
15326
+ */
15327
+ createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
15328
+ /**
15329
+ *
15330
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
15331
+ * @memberof StorefrontConfigOutputDTO
15332
+ */
15333
+ updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
15334
+ }
15335
+ /**
15336
+ *
15337
+ * @export
15338
+ * @interface StorefrontConfigUpdateDTO
15339
+ */
15340
+ export interface StorefrontConfigUpdateDTO {
15341
+ /**
15342
+ *
15343
+ * @type {string}
15344
+ * @memberof StorefrontConfigUpdateDTO
15345
+ */
15346
+ templateId?: string;
15347
+ /**
15348
+ *
15349
+ * @type {object}
15350
+ * @memberof StorefrontConfigUpdateDTO
15351
+ */
15352
+ values?: object;
15353
+ }
15354
+ /**
15355
+ *
15356
+ * @export
15357
+ * @interface StorefrontConfigUpsertBody
15358
+ */
15359
+ export interface StorefrontConfigUpsertBody {
15360
+ /**
15361
+ *
15362
+ * @type {string}
15363
+ * @memberof StorefrontConfigUpsertBody
15364
+ */
15365
+ templateId: string;
15366
+ /**
15367
+ *
15368
+ * @type {object}
15369
+ * @memberof StorefrontConfigUpsertBody
15370
+ */
15371
+ values: object;
15372
+ }
15373
+ /**
15374
+ *
15375
+ * @export
15376
+ * @interface StorefrontConfigUpsertDTO
15377
+ */
15378
+ export interface StorefrontConfigUpsertDTO {
15379
+ /**
15380
+ *
15381
+ * @type {string}
15382
+ * @memberof StorefrontConfigUpsertDTO
15383
+ */
15384
+ templateId: string;
15385
+ /**
15386
+ *
15387
+ * @type {object}
15388
+ * @memberof StorefrontConfigUpsertDTO
15389
+ */
15390
+ values: object;
15391
+ }
15392
+ /**
15393
+ *
15394
+ * @export
15395
+ * @interface StorefrontTemplateDTO
15396
+ */
15397
+ export interface StorefrontTemplateDTO {
15398
+ /**
15399
+ *
15400
+ * @type {string}
15401
+ * @memberof StorefrontTemplateDTO
15402
+ */
15403
+ id: string;
15404
+ /**
15405
+ *
15406
+ * @type {string}
15407
+ * @memberof StorefrontTemplateDTO
15408
+ */
15409
+ name: string;
15410
+ /**
15411
+ *
15412
+ * @type {object}
15413
+ * @memberof StorefrontTemplateDTO
15414
+ */
15415
+ schema: object;
15416
+ }
15417
+ /**
15418
+ *
15419
+ * @export
15420
+ * @interface StorefrontTemplateOutputArrayDTOAPI
15421
+ */
15422
+ export interface StorefrontTemplateOutputArrayDTOAPI {
15423
+ /**
15424
+ *
15425
+ * @type {Array<StorefrontTemplateDTO>}
15426
+ * @memberof StorefrontTemplateOutputArrayDTOAPI
15427
+ */
15428
+ data: Array<StorefrontTemplateDTO>;
15429
+ /**
15430
+ *
15431
+ * @type {MetadataOutput}
15432
+ * @memberof StorefrontTemplateOutputArrayDTOAPI
15433
+ */
15434
+ meta: MetadataOutput;
15435
+ }
15105
15436
  /**
15106
15437
  *
15107
15438
  * @export
@@ -18237,23 +18568,29 @@ export const AnalyticsApiAxiosParamCreator = function (configuration?: Configura
18237
18568
  };
18238
18569
  },
18239
18570
  /**
18240
- * 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`
18241
- * @summary Get module item failure aggregate
18571
+ * 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`
18572
+ * @summary Get per-installation module KPIs
18573
+ * @param {string} gameServerId
18574
+ * @param {string} moduleId
18242
18575
  * @param {string} [startDate]
18243
18576
  * @param {string} [endDate]
18244
- * @param {string} [gameServerId]
18245
- * @param {AnalyticsControllerGetModuleItemFailureLeaderboardPeriodEnum} [period]
18577
+ * @param {AnalyticsControllerGetModuleInstallationKpisPeriodEnum} [period]
18246
18578
  * @param {*} [options] Override http request option.
18247
18579
  * @throws {RequiredError}
18248
18580
  */
18249
- analyticsControllerGetModuleItemFailureLeaderboard: async (
18581
+ analyticsControllerGetModuleInstallationKpis: async (
18582
+ gameServerId: string,
18583
+ moduleId: string,
18250
18584
  startDate?: string,
18251
18585
  endDate?: string,
18252
- gameServerId?: string,
18253
- period?: AnalyticsControllerGetModuleItemFailureLeaderboardPeriodEnum,
18586
+ period?: AnalyticsControllerGetModuleInstallationKpisPeriodEnum,
18254
18587
  options: RawAxiosRequestConfig = {},
18255
18588
  ): Promise<RequestArgs> => {
18256
- const localVarPath = `/analytics/modules/items/failures`;
18589
+ // verify required parameter 'gameServerId' is not null or undefined
18590
+ assertParamExists('analyticsControllerGetModuleInstallationKpis', 'gameServerId', gameServerId);
18591
+ // verify required parameter 'moduleId' is not null or undefined
18592
+ assertParamExists('analyticsControllerGetModuleInstallationKpis', 'moduleId', moduleId);
18593
+ const localVarPath = `/analytics/modules/installation-kpis`;
18257
18594
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18258
18595
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18259
18596
  let baseOptions;
@@ -18279,6 +18616,10 @@ export const AnalyticsApiAxiosParamCreator = function (configuration?: Configura
18279
18616
  localVarQueryParameter['gameServerId'] = gameServerId;
18280
18617
  }
18281
18618
 
18619
+ if (moduleId !== undefined) {
18620
+ localVarQueryParameter['moduleId'] = moduleId;
18621
+ }
18622
+
18282
18623
  if (period !== undefined) {
18283
18624
  localVarQueryParameter['period'] = period;
18284
18625
  }
@@ -18293,23 +18634,79 @@ export const AnalyticsApiAxiosParamCreator = function (configuration?: Configura
18293
18634
  };
18294
18635
  },
18295
18636
  /**
18296
- * Returns one row per module-item type (hook, cron, command, shopAction) with total runs and failures. Zero-filled when no events exist so the response shape is stable. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleItemTypeSummary`
18297
- * @summary Get module item run/failure totals per type
18637
+ * 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`
18638
+ * @summary Get module item failure aggregate
18298
18639
  * @param {string} [startDate]
18299
18640
  * @param {string} [endDate]
18300
18641
  * @param {string} [gameServerId]
18301
- * @param {AnalyticsControllerGetModuleItemTypeSummaryPeriodEnum} [period]
18642
+ * @param {AnalyticsControllerGetModuleItemFailureLeaderboardPeriodEnum} [period]
18302
18643
  * @param {*} [options] Override http request option.
18303
18644
  * @throws {RequiredError}
18304
18645
  */
18305
- analyticsControllerGetModuleItemTypeSummary: async (
18646
+ analyticsControllerGetModuleItemFailureLeaderboard: async (
18306
18647
  startDate?: string,
18307
18648
  endDate?: string,
18308
18649
  gameServerId?: string,
18309
- period?: AnalyticsControllerGetModuleItemTypeSummaryPeriodEnum,
18650
+ period?: AnalyticsControllerGetModuleItemFailureLeaderboardPeriodEnum,
18310
18651
  options: RawAxiosRequestConfig = {},
18311
18652
  ): Promise<RequestArgs> => {
18312
- const localVarPath = `/analytics/modules/items/summary`;
18653
+ const localVarPath = `/analytics/modules/items/failures`;
18654
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18655
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18656
+ let baseOptions;
18657
+ if (configuration) {
18658
+ baseOptions = configuration.baseOptions;
18659
+ }
18660
+
18661
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
18662
+ const localVarHeaderParameter = {} as any;
18663
+ const localVarQueryParameter = {} as any;
18664
+
18665
+ // authentication domainAuth required
18666
+
18667
+ if (startDate !== undefined) {
18668
+ localVarQueryParameter['startDate'] = startDate;
18669
+ }
18670
+
18671
+ if (endDate !== undefined) {
18672
+ localVarQueryParameter['endDate'] = endDate;
18673
+ }
18674
+
18675
+ if (gameServerId !== undefined) {
18676
+ localVarQueryParameter['gameServerId'] = gameServerId;
18677
+ }
18678
+
18679
+ if (period !== undefined) {
18680
+ localVarQueryParameter['period'] = period;
18681
+ }
18682
+
18683
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18684
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18685
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
18686
+
18687
+ return {
18688
+ url: toPathString(localVarUrlObj),
18689
+ options: localVarRequestOptions,
18690
+ };
18691
+ },
18692
+ /**
18693
+ * Returns one row per module-item type (hook, cron, command, shopAction) with total runs and failures. Zero-filled when no events exist so the response shape is stable. Required permissions: `READ_EVENTS`<br> OperationId: `AnalyticsControllerGetModuleItemTypeSummary`
18694
+ * @summary Get module item run/failure totals per type
18695
+ * @param {string} [startDate]
18696
+ * @param {string} [endDate]
18697
+ * @param {string} [gameServerId]
18698
+ * @param {AnalyticsControllerGetModuleItemTypeSummaryPeriodEnum} [period]
18699
+ * @param {*} [options] Override http request option.
18700
+ * @throws {RequiredError}
18701
+ */
18702
+ analyticsControllerGetModuleItemTypeSummary: async (
18703
+ startDate?: string,
18704
+ endDate?: string,
18705
+ gameServerId?: string,
18706
+ period?: AnalyticsControllerGetModuleItemTypeSummaryPeriodEnum,
18707
+ options: RawAxiosRequestConfig = {},
18708
+ ): Promise<RequestArgs> => {
18709
+ const localVarPath = `/analytics/modules/items/summary`;
18313
18710
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18314
18711
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18315
18712
  let baseOptions;
@@ -19870,6 +20267,45 @@ export const AnalyticsApiFp = function (configuration?: Configuration) {
19870
20267
  configuration,
19871
20268
  )(axios, localVarOperationServerBasePath || basePath);
19872
20269
  },
20270
+ /**
20271
+ * 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`
20272
+ * @summary Get per-installation module KPIs
20273
+ * @param {string} gameServerId
20274
+ * @param {string} moduleId
20275
+ * @param {string} [startDate]
20276
+ * @param {string} [endDate]
20277
+ * @param {AnalyticsControllerGetModuleInstallationKpisPeriodEnum} [period]
20278
+ * @param {*} [options] Override http request option.
20279
+ * @throws {RequiredError}
20280
+ */
20281
+ async analyticsControllerGetModuleInstallationKpis(
20282
+ gameServerId: string,
20283
+ moduleId: string,
20284
+ startDate?: string,
20285
+ endDate?: string,
20286
+ period?: AnalyticsControllerGetModuleInstallationKpisPeriodEnum,
20287
+ options?: RawAxiosRequestConfig,
20288
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ModuleInstallationKpisDTOAPI>> {
20289
+ const localVarAxiosArgs = await localVarAxiosParamCreator.analyticsControllerGetModuleInstallationKpis(
20290
+ gameServerId,
20291
+ moduleId,
20292
+ startDate,
20293
+ endDate,
20294
+ period,
20295
+ options,
20296
+ );
20297
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20298
+ const localVarOperationServerBasePath =
20299
+ operationServerMap['AnalyticsApi.analyticsControllerGetModuleInstallationKpis']?.[localVarOperationServerIndex]
20300
+ ?.url;
20301
+ return (axios, basePath) =>
20302
+ createRequestFunction(
20303
+ localVarAxiosArgs,
20304
+ globalAxios,
20305
+ BASE_PATH,
20306
+ configuration,
20307
+ )(axios, localVarOperationServerBasePath || basePath);
20308
+ },
19873
20309
  /**
19874
20310
  * 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`
19875
20311
  * @summary Get module item failure aggregate
@@ -20891,6 +21327,29 @@ export const AnalyticsApiFactory = function (configuration?: Configuration, base
20891
21327
  .analyticsControllerGetModuleHealth(startDate, endDate, gameServerId, period, options)
20892
21328
  .then((request) => request(axios, basePath));
20893
21329
  },
21330
+ /**
21331
+ * 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`
21332
+ * @summary Get per-installation module KPIs
21333
+ * @param {string} gameServerId
21334
+ * @param {string} moduleId
21335
+ * @param {string} [startDate]
21336
+ * @param {string} [endDate]
21337
+ * @param {AnalyticsControllerGetModuleInstallationKpisPeriodEnum} [period]
21338
+ * @param {*} [options] Override http request option.
21339
+ * @throws {RequiredError}
21340
+ */
21341
+ analyticsControllerGetModuleInstallationKpis(
21342
+ gameServerId: string,
21343
+ moduleId: string,
21344
+ startDate?: string,
21345
+ endDate?: string,
21346
+ period?: AnalyticsControllerGetModuleInstallationKpisPeriodEnum,
21347
+ options?: RawAxiosRequestConfig,
21348
+ ): AxiosPromise<ModuleInstallationKpisDTOAPI> {
21349
+ return localVarFp
21350
+ .analyticsControllerGetModuleInstallationKpis(gameServerId, moduleId, startDate, endDate, period, options)
21351
+ .then((request) => request(axios, basePath));
21352
+ },
20894
21353
  /**
20895
21354
  * 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`
20896
21355
  * @summary Get module item failure aggregate
@@ -21633,6 +22092,31 @@ export class AnalyticsApi extends BaseAPI {
21633
22092
  .then((request) => request(this.axios, this.basePath));
21634
22093
  }
21635
22094
 
22095
+ /**
22096
+ * 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`
22097
+ * @summary Get per-installation module KPIs
22098
+ * @param {string} gameServerId
22099
+ * @param {string} moduleId
22100
+ * @param {string} [startDate]
22101
+ * @param {string} [endDate]
22102
+ * @param {AnalyticsControllerGetModuleInstallationKpisPeriodEnum} [period]
22103
+ * @param {*} [options] Override http request option.
22104
+ * @throws {RequiredError}
22105
+ * @memberof AnalyticsApi
22106
+ */
22107
+ public analyticsControllerGetModuleInstallationKpis(
22108
+ gameServerId: string,
22109
+ moduleId: string,
22110
+ startDate?: string,
22111
+ endDate?: string,
22112
+ period?: AnalyticsControllerGetModuleInstallationKpisPeriodEnum,
22113
+ options?: RawAxiosRequestConfig,
22114
+ ) {
22115
+ return AnalyticsApiFp(this.configuration)
22116
+ .analyticsControllerGetModuleInstallationKpis(gameServerId, moduleId, startDate, endDate, period, options)
22117
+ .then((request) => request(this.axios, this.basePath));
22118
+ }
22119
+
21636
22120
  /**
21637
22121
  * 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`
21638
22122
  * @summary Get module item failure aggregate
@@ -22252,6 +22736,17 @@ export type AnalyticsControllerGetModuleHealthPeriodEnum =
22252
22736
  /**
22253
22737
  * @export
22254
22738
  */
22739
+ export const AnalyticsControllerGetModuleInstallationKpisPeriodEnum = {
22740
+ _24h: '24h',
22741
+ _7d: '7d',
22742
+ _30d: '30d',
22743
+ _90d: '90d',
22744
+ } as const;
22745
+ export type AnalyticsControllerGetModuleInstallationKpisPeriodEnum =
22746
+ (typeof AnalyticsControllerGetModuleInstallationKpisPeriodEnum)[keyof typeof AnalyticsControllerGetModuleInstallationKpisPeriodEnum];
22747
+ /**
22748
+ * @export
22749
+ */
22255
22750
  export const AnalyticsControllerGetModuleItemFailureLeaderboardPeriodEnum = {
22256
22751
  _24h: '24h',
22257
22752
  _7d: '7d',
@@ -22481,6 +22976,345 @@ export const AnalyticsControllerGetTopServersPeriodEnum = {
22481
22976
  export type AnalyticsControllerGetTopServersPeriodEnum =
22482
22977
  (typeof AnalyticsControllerGetTopServersPeriodEnum)[keyof typeof AnalyticsControllerGetTopServersPeriodEnum];
22483
22978
 
22979
+ /**
22980
+ * AuthApi - axios parameter creator
22981
+ * @export
22982
+ */
22983
+ export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
22984
+ return {
22985
+ /**
22986
+ * <br> OperationId: `AuthControllerAccount`
22987
+ * @summary Account
22988
+ * @param {*} [options] Override http request option.
22989
+ * @throws {RequiredError}
22990
+ */
22991
+ authControllerAccount: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
22992
+ const localVarPath = `/auth/account`;
22993
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
22994
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
22995
+ let baseOptions;
22996
+ if (configuration) {
22997
+ baseOptions = configuration.baseOptions;
22998
+ }
22999
+
23000
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
23001
+ const localVarHeaderParameter = {} as any;
23002
+ const localVarQueryParameter = {} as any;
23003
+
23004
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
23005
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
23006
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
23007
+
23008
+ return {
23009
+ url: toPathString(localVarUrlObj),
23010
+ options: localVarRequestOptions,
23011
+ };
23012
+ },
23013
+ /**
23014
+ * <br> OperationId: `AuthControllerCallback`
23015
+ * @summary Callback
23016
+ * @param {*} [options] Override http request option.
23017
+ * @throws {RequiredError}
23018
+ */
23019
+ authControllerCallback: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
23020
+ const localVarPath = `/auth/callback`;
23021
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
23022
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
23023
+ let baseOptions;
23024
+ if (configuration) {
23025
+ baseOptions = configuration.baseOptions;
23026
+ }
23027
+
23028
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
23029
+ const localVarHeaderParameter = {} as any;
23030
+ const localVarQueryParameter = {} as any;
23031
+
23032
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
23033
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
23034
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
23035
+
23036
+ return {
23037
+ url: toPathString(localVarUrlObj),
23038
+ options: localVarRequestOptions,
23039
+ };
23040
+ },
23041
+ /**
23042
+ * <br> OperationId: `AuthControllerLogin`
23043
+ * @summary Login
23044
+ * @param {string} [redirect]
23045
+ * @param {*} [options] Override http request option.
23046
+ * @throws {RequiredError}
23047
+ */
23048
+ authControllerLogin: async (redirect?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
23049
+ const localVarPath = `/auth/login`;
23050
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
23051
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
23052
+ let baseOptions;
23053
+ if (configuration) {
23054
+ baseOptions = configuration.baseOptions;
23055
+ }
23056
+
23057
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
23058
+ const localVarHeaderParameter = {} as any;
23059
+ const localVarQueryParameter = {} as any;
23060
+
23061
+ if (redirect !== undefined) {
23062
+ localVarQueryParameter['redirect'] = redirect;
23063
+ }
23064
+
23065
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
23066
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
23067
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
23068
+
23069
+ return {
23070
+ url: toPathString(localVarUrlObj),
23071
+ options: localVarRequestOptions,
23072
+ };
23073
+ },
23074
+ /**
23075
+ * <br> OperationId: `AuthControllerLogout`
23076
+ * @summary Logout
23077
+ * @param {string} [redirect]
23078
+ * @param {*} [options] Override http request option.
23079
+ * @throws {RequiredError}
23080
+ */
23081
+ authControllerLogout: async (redirect?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
23082
+ const localVarPath = `/auth/logout`;
23083
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
23084
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
23085
+ let baseOptions;
23086
+ if (configuration) {
23087
+ baseOptions = configuration.baseOptions;
23088
+ }
23089
+
23090
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
23091
+ const localVarHeaderParameter = {} as any;
23092
+ const localVarQueryParameter = {} as any;
23093
+
23094
+ if (redirect !== undefined) {
23095
+ localVarQueryParameter['redirect'] = redirect;
23096
+ }
23097
+
23098
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
23099
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
23100
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
23101
+
23102
+ return {
23103
+ url: toPathString(localVarUrlObj),
23104
+ options: localVarRequestOptions,
23105
+ };
23106
+ },
23107
+ };
23108
+ };
23109
+
23110
+ /**
23111
+ * AuthApi - functional programming interface
23112
+ * @export
23113
+ */
23114
+ export const AuthApiFp = function (configuration?: Configuration) {
23115
+ const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration);
23116
+ return {
23117
+ /**
23118
+ * <br> OperationId: `AuthControllerAccount`
23119
+ * @summary Account
23120
+ * @param {*} [options] Override http request option.
23121
+ * @throws {RequiredError}
23122
+ */
23123
+ async authControllerAccount(
23124
+ options?: RawAxiosRequestConfig,
23125
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
23126
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerAccount(options);
23127
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
23128
+ const localVarOperationServerBasePath =
23129
+ operationServerMap['AuthApi.authControllerAccount']?.[localVarOperationServerIndex]?.url;
23130
+ return (axios, basePath) =>
23131
+ createRequestFunction(
23132
+ localVarAxiosArgs,
23133
+ globalAxios,
23134
+ BASE_PATH,
23135
+ configuration,
23136
+ )(axios, localVarOperationServerBasePath || basePath);
23137
+ },
23138
+ /**
23139
+ * <br> OperationId: `AuthControllerCallback`
23140
+ * @summary Callback
23141
+ * @param {*} [options] Override http request option.
23142
+ * @throws {RequiredError}
23143
+ */
23144
+ async authControllerCallback(
23145
+ options?: RawAxiosRequestConfig,
23146
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
23147
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerCallback(options);
23148
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
23149
+ const localVarOperationServerBasePath =
23150
+ operationServerMap['AuthApi.authControllerCallback']?.[localVarOperationServerIndex]?.url;
23151
+ return (axios, basePath) =>
23152
+ createRequestFunction(
23153
+ localVarAxiosArgs,
23154
+ globalAxios,
23155
+ BASE_PATH,
23156
+ configuration,
23157
+ )(axios, localVarOperationServerBasePath || basePath);
23158
+ },
23159
+ /**
23160
+ * <br> OperationId: `AuthControllerLogin`
23161
+ * @summary Login
23162
+ * @param {string} [redirect]
23163
+ * @param {*} [options] Override http request option.
23164
+ * @throws {RequiredError}
23165
+ */
23166
+ async authControllerLogin(
23167
+ redirect?: string,
23168
+ options?: RawAxiosRequestConfig,
23169
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
23170
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerLogin(redirect, options);
23171
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
23172
+ const localVarOperationServerBasePath =
23173
+ operationServerMap['AuthApi.authControllerLogin']?.[localVarOperationServerIndex]?.url;
23174
+ return (axios, basePath) =>
23175
+ createRequestFunction(
23176
+ localVarAxiosArgs,
23177
+ globalAxios,
23178
+ BASE_PATH,
23179
+ configuration,
23180
+ )(axios, localVarOperationServerBasePath || basePath);
23181
+ },
23182
+ /**
23183
+ * <br> OperationId: `AuthControllerLogout`
23184
+ * @summary Logout
23185
+ * @param {string} [redirect]
23186
+ * @param {*} [options] Override http request option.
23187
+ * @throws {RequiredError}
23188
+ */
23189
+ async authControllerLogout(
23190
+ redirect?: string,
23191
+ options?: RawAxiosRequestConfig,
23192
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
23193
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerLogout(redirect, options);
23194
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
23195
+ const localVarOperationServerBasePath =
23196
+ operationServerMap['AuthApi.authControllerLogout']?.[localVarOperationServerIndex]?.url;
23197
+ return (axios, basePath) =>
23198
+ createRequestFunction(
23199
+ localVarAxiosArgs,
23200
+ globalAxios,
23201
+ BASE_PATH,
23202
+ configuration,
23203
+ )(axios, localVarOperationServerBasePath || basePath);
23204
+ },
23205
+ };
23206
+ };
23207
+
23208
+ /**
23209
+ * AuthApi - factory interface
23210
+ * @export
23211
+ */
23212
+ export const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
23213
+ const localVarFp = AuthApiFp(configuration);
23214
+ return {
23215
+ /**
23216
+ * <br> OperationId: `AuthControllerAccount`
23217
+ * @summary Account
23218
+ * @param {*} [options] Override http request option.
23219
+ * @throws {RequiredError}
23220
+ */
23221
+ authControllerAccount(options?: RawAxiosRequestConfig): AxiosPromise<void> {
23222
+ return localVarFp.authControllerAccount(options).then((request) => request(axios, basePath));
23223
+ },
23224
+ /**
23225
+ * <br> OperationId: `AuthControllerCallback`
23226
+ * @summary Callback
23227
+ * @param {*} [options] Override http request option.
23228
+ * @throws {RequiredError}
23229
+ */
23230
+ authControllerCallback(options?: RawAxiosRequestConfig): AxiosPromise<void> {
23231
+ return localVarFp.authControllerCallback(options).then((request) => request(axios, basePath));
23232
+ },
23233
+ /**
23234
+ * <br> OperationId: `AuthControllerLogin`
23235
+ * @summary Login
23236
+ * @param {string} [redirect]
23237
+ * @param {*} [options] Override http request option.
23238
+ * @throws {RequiredError}
23239
+ */
23240
+ authControllerLogin(redirect?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
23241
+ return localVarFp.authControllerLogin(redirect, options).then((request) => request(axios, basePath));
23242
+ },
23243
+ /**
23244
+ * <br> OperationId: `AuthControllerLogout`
23245
+ * @summary Logout
23246
+ * @param {string} [redirect]
23247
+ * @param {*} [options] Override http request option.
23248
+ * @throws {RequiredError}
23249
+ */
23250
+ authControllerLogout(redirect?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
23251
+ return localVarFp.authControllerLogout(redirect, options).then((request) => request(axios, basePath));
23252
+ },
23253
+ };
23254
+ };
23255
+
23256
+ /**
23257
+ * AuthApi - object-oriented interface
23258
+ * @export
23259
+ * @class AuthApi
23260
+ * @extends {BaseAPI}
23261
+ */
23262
+ export class AuthApi extends BaseAPI {
23263
+ /**
23264
+ * <br> OperationId: `AuthControllerAccount`
23265
+ * @summary Account
23266
+ * @param {*} [options] Override http request option.
23267
+ * @throws {RequiredError}
23268
+ * @memberof AuthApi
23269
+ */
23270
+ public authControllerAccount(options?: RawAxiosRequestConfig) {
23271
+ return AuthApiFp(this.configuration)
23272
+ .authControllerAccount(options)
23273
+ .then((request) => request(this.axios, this.basePath));
23274
+ }
23275
+
23276
+ /**
23277
+ * <br> OperationId: `AuthControllerCallback`
23278
+ * @summary Callback
23279
+ * @param {*} [options] Override http request option.
23280
+ * @throws {RequiredError}
23281
+ * @memberof AuthApi
23282
+ */
23283
+ public authControllerCallback(options?: RawAxiosRequestConfig) {
23284
+ return AuthApiFp(this.configuration)
23285
+ .authControllerCallback(options)
23286
+ .then((request) => request(this.axios, this.basePath));
23287
+ }
23288
+
23289
+ /**
23290
+ * <br> OperationId: `AuthControllerLogin`
23291
+ * @summary Login
23292
+ * @param {string} [redirect]
23293
+ * @param {*} [options] Override http request option.
23294
+ * @throws {RequiredError}
23295
+ * @memberof AuthApi
23296
+ */
23297
+ public authControllerLogin(redirect?: string, options?: RawAxiosRequestConfig) {
23298
+ return AuthApiFp(this.configuration)
23299
+ .authControllerLogin(redirect, options)
23300
+ .then((request) => request(this.axios, this.basePath));
23301
+ }
23302
+
23303
+ /**
23304
+ * <br> OperationId: `AuthControllerLogout`
23305
+ * @summary Logout
23306
+ * @param {string} [redirect]
23307
+ * @param {*} [options] Override http request option.
23308
+ * @throws {RequiredError}
23309
+ * @memberof AuthApi
23310
+ */
23311
+ public authControllerLogout(redirect?: string, options?: RawAxiosRequestConfig) {
23312
+ return AuthApiFp(this.configuration)
23313
+ .authControllerLogout(redirect, options)
23314
+ .then((request) => request(this.axios, this.basePath));
23315
+ }
23316
+ }
23317
+
22484
23318
  /**
22485
23319
  * CommandApi - axios parameter creator
22486
23320
  * @export
@@ -38745,6 +39579,334 @@ export class ShopOrderApi extends BaseAPI {
38745
39579
  }
38746
39580
  }
38747
39581
 
39582
+ /**
39583
+ * StorefrontConfigApi - axios parameter creator
39584
+ * @export
39585
+ */
39586
+ export const StorefrontConfigApiAxiosParamCreator = function (configuration?: Configuration) {
39587
+ return {
39588
+ /**
39589
+ * Get the effective storefront configuration for a game server. Returns defaults when no config row exists. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerGetEffectiveConfig`
39590
+ * @summary Get effective config
39591
+ * @param {string} gameServerId
39592
+ * @param {*} [options] Override http request option.
39593
+ * @throws {RequiredError}
39594
+ */
39595
+ storefrontConfigControllerGetEffectiveConfig: async (
39596
+ gameServerId: string,
39597
+ options: RawAxiosRequestConfig = {},
39598
+ ): Promise<RequestArgs> => {
39599
+ // verify required parameter 'gameServerId' is not null or undefined
39600
+ assertParamExists('storefrontConfigControllerGetEffectiveConfig', 'gameServerId', gameServerId);
39601
+ const localVarPath = `/gameserver/{gameServerId}/storefront-config`.replace(
39602
+ `{${'gameServerId'}}`,
39603
+ encodeURIComponent(String(gameServerId)),
39604
+ );
39605
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
39606
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
39607
+ let baseOptions;
39608
+ if (configuration) {
39609
+ baseOptions = configuration.baseOptions;
39610
+ }
39611
+
39612
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
39613
+ const localVarHeaderParameter = {} as any;
39614
+ const localVarQueryParameter = {} as any;
39615
+
39616
+ // authentication domainAuth required
39617
+
39618
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
39619
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
39620
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
39621
+
39622
+ return {
39623
+ url: toPathString(localVarUrlObj),
39624
+ options: localVarRequestOptions,
39625
+ };
39626
+ },
39627
+ /**
39628
+ * List all available storefront templates with their variable schemas. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerListTemplates`
39629
+ * @summary List templates
39630
+ * @param {*} [options] Override http request option.
39631
+ * @throws {RequiredError}
39632
+ */
39633
+ storefrontConfigControllerListTemplates: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
39634
+ const localVarPath = `/storefront/templates`;
39635
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
39636
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
39637
+ let baseOptions;
39638
+ if (configuration) {
39639
+ baseOptions = configuration.baseOptions;
39640
+ }
39641
+
39642
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
39643
+ const localVarHeaderParameter = {} as any;
39644
+ const localVarQueryParameter = {} as any;
39645
+
39646
+ // authentication domainAuth required
39647
+
39648
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
39649
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
39650
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
39651
+
39652
+ return {
39653
+ url: toPathString(localVarUrlObj),
39654
+ options: localVarRequestOptions,
39655
+ };
39656
+ },
39657
+ /**
39658
+ * 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`
39659
+ * @summary Set config
39660
+ * @param {string} gameServerId
39661
+ * @param {StorefrontConfigUpsertBody} [storefrontConfigUpsertBody] StorefrontConfigUpsertBody
39662
+ * @param {*} [options] Override http request option.
39663
+ * @throws {RequiredError}
39664
+ */
39665
+ storefrontConfigControllerSetConfig: async (
39666
+ gameServerId: string,
39667
+ storefrontConfigUpsertBody?: StorefrontConfigUpsertBody,
39668
+ options: RawAxiosRequestConfig = {},
39669
+ ): Promise<RequestArgs> => {
39670
+ // verify required parameter 'gameServerId' is not null or undefined
39671
+ assertParamExists('storefrontConfigControllerSetConfig', 'gameServerId', gameServerId);
39672
+ const localVarPath = `/gameserver/{gameServerId}/storefront-config`.replace(
39673
+ `{${'gameServerId'}}`,
39674
+ encodeURIComponent(String(gameServerId)),
39675
+ );
39676
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
39677
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
39678
+ let baseOptions;
39679
+ if (configuration) {
39680
+ baseOptions = configuration.baseOptions;
39681
+ }
39682
+
39683
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
39684
+ const localVarHeaderParameter = {} as any;
39685
+ const localVarQueryParameter = {} as any;
39686
+
39687
+ // authentication domainAuth required
39688
+
39689
+ localVarHeaderParameter['Content-Type'] = 'application/json';
39690
+
39691
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
39692
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
39693
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
39694
+ localVarRequestOptions.data = serializeDataIfNeeded(
39695
+ storefrontConfigUpsertBody,
39696
+ localVarRequestOptions,
39697
+ configuration,
39698
+ );
39699
+
39700
+ return {
39701
+ url: toPathString(localVarUrlObj),
39702
+ options: localVarRequestOptions,
39703
+ };
39704
+ },
39705
+ };
39706
+ };
39707
+
39708
+ /**
39709
+ * StorefrontConfigApi - functional programming interface
39710
+ * @export
39711
+ */
39712
+ export const StorefrontConfigApiFp = function (configuration?: Configuration) {
39713
+ const localVarAxiosParamCreator = StorefrontConfigApiAxiosParamCreator(configuration);
39714
+ return {
39715
+ /**
39716
+ * Get the effective storefront configuration for a game server. Returns defaults when no config row exists. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerGetEffectiveConfig`
39717
+ * @summary Get effective config
39718
+ * @param {string} gameServerId
39719
+ * @param {*} [options] Override http request option.
39720
+ * @throws {RequiredError}
39721
+ */
39722
+ async storefrontConfigControllerGetEffectiveConfig(
39723
+ gameServerId: string,
39724
+ options?: RawAxiosRequestConfig,
39725
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EffectiveStorefrontConfigOutputDTOAPI>> {
39726
+ const localVarAxiosArgs = await localVarAxiosParamCreator.storefrontConfigControllerGetEffectiveConfig(
39727
+ gameServerId,
39728
+ options,
39729
+ );
39730
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
39731
+ const localVarOperationServerBasePath =
39732
+ operationServerMap['StorefrontConfigApi.storefrontConfigControllerGetEffectiveConfig']?.[
39733
+ localVarOperationServerIndex
39734
+ ]?.url;
39735
+ return (axios, basePath) =>
39736
+ createRequestFunction(
39737
+ localVarAxiosArgs,
39738
+ globalAxios,
39739
+ BASE_PATH,
39740
+ configuration,
39741
+ )(axios, localVarOperationServerBasePath || basePath);
39742
+ },
39743
+ /**
39744
+ * List all available storefront templates with their variable schemas. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerListTemplates`
39745
+ * @summary List templates
39746
+ * @param {*} [options] Override http request option.
39747
+ * @throws {RequiredError}
39748
+ */
39749
+ async storefrontConfigControllerListTemplates(
39750
+ options?: RawAxiosRequestConfig,
39751
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StorefrontTemplateOutputArrayDTOAPI>> {
39752
+ const localVarAxiosArgs = await localVarAxiosParamCreator.storefrontConfigControllerListTemplates(options);
39753
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
39754
+ const localVarOperationServerBasePath =
39755
+ operationServerMap['StorefrontConfigApi.storefrontConfigControllerListTemplates']?.[
39756
+ localVarOperationServerIndex
39757
+ ]?.url;
39758
+ return (axios, basePath) =>
39759
+ createRequestFunction(
39760
+ localVarAxiosArgs,
39761
+ globalAxios,
39762
+ BASE_PATH,
39763
+ configuration,
39764
+ )(axios, localVarOperationServerBasePath || basePath);
39765
+ },
39766
+ /**
39767
+ * 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`
39768
+ * @summary Set config
39769
+ * @param {string} gameServerId
39770
+ * @param {StorefrontConfigUpsertBody} [storefrontConfigUpsertBody] StorefrontConfigUpsertBody
39771
+ * @param {*} [options] Override http request option.
39772
+ * @throws {RequiredError}
39773
+ */
39774
+ async storefrontConfigControllerSetConfig(
39775
+ gameServerId: string,
39776
+ storefrontConfigUpsertBody?: StorefrontConfigUpsertBody,
39777
+ options?: RawAxiosRequestConfig,
39778
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EffectiveStorefrontConfigOutputDTOAPI>> {
39779
+ const localVarAxiosArgs = await localVarAxiosParamCreator.storefrontConfigControllerSetConfig(
39780
+ gameServerId,
39781
+ storefrontConfigUpsertBody,
39782
+ options,
39783
+ );
39784
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
39785
+ const localVarOperationServerBasePath =
39786
+ operationServerMap['StorefrontConfigApi.storefrontConfigControllerSetConfig']?.[localVarOperationServerIndex]
39787
+ ?.url;
39788
+ return (axios, basePath) =>
39789
+ createRequestFunction(
39790
+ localVarAxiosArgs,
39791
+ globalAxios,
39792
+ BASE_PATH,
39793
+ configuration,
39794
+ )(axios, localVarOperationServerBasePath || basePath);
39795
+ },
39796
+ };
39797
+ };
39798
+
39799
+ /**
39800
+ * StorefrontConfigApi - factory interface
39801
+ * @export
39802
+ */
39803
+ export const StorefrontConfigApiFactory = function (
39804
+ configuration?: Configuration,
39805
+ basePath?: string,
39806
+ axios?: AxiosInstance,
39807
+ ) {
39808
+ const localVarFp = StorefrontConfigApiFp(configuration);
39809
+ return {
39810
+ /**
39811
+ * Get the effective storefront configuration for a game server. Returns defaults when no config row exists. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerGetEffectiveConfig`
39812
+ * @summary Get effective config
39813
+ * @param {string} gameServerId
39814
+ * @param {*} [options] Override http request option.
39815
+ * @throws {RequiredError}
39816
+ */
39817
+ storefrontConfigControllerGetEffectiveConfig(
39818
+ gameServerId: string,
39819
+ options?: RawAxiosRequestConfig,
39820
+ ): AxiosPromise<EffectiveStorefrontConfigOutputDTOAPI> {
39821
+ return localVarFp
39822
+ .storefrontConfigControllerGetEffectiveConfig(gameServerId, options)
39823
+ .then((request) => request(axios, basePath));
39824
+ },
39825
+ /**
39826
+ * List all available storefront templates with their variable schemas. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerListTemplates`
39827
+ * @summary List templates
39828
+ * @param {*} [options] Override http request option.
39829
+ * @throws {RequiredError}
39830
+ */
39831
+ storefrontConfigControllerListTemplates(
39832
+ options?: RawAxiosRequestConfig,
39833
+ ): AxiosPromise<StorefrontTemplateOutputArrayDTOAPI> {
39834
+ return localVarFp.storefrontConfigControllerListTemplates(options).then((request) => request(axios, basePath));
39835
+ },
39836
+ /**
39837
+ * 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`
39838
+ * @summary Set config
39839
+ * @param {string} gameServerId
39840
+ * @param {StorefrontConfigUpsertBody} [storefrontConfigUpsertBody] StorefrontConfigUpsertBody
39841
+ * @param {*} [options] Override http request option.
39842
+ * @throws {RequiredError}
39843
+ */
39844
+ storefrontConfigControllerSetConfig(
39845
+ gameServerId: string,
39846
+ storefrontConfigUpsertBody?: StorefrontConfigUpsertBody,
39847
+ options?: RawAxiosRequestConfig,
39848
+ ): AxiosPromise<EffectiveStorefrontConfigOutputDTOAPI> {
39849
+ return localVarFp
39850
+ .storefrontConfigControllerSetConfig(gameServerId, storefrontConfigUpsertBody, options)
39851
+ .then((request) => request(axios, basePath));
39852
+ },
39853
+ };
39854
+ };
39855
+
39856
+ /**
39857
+ * StorefrontConfigApi - object-oriented interface
39858
+ * @export
39859
+ * @class StorefrontConfigApi
39860
+ * @extends {BaseAPI}
39861
+ */
39862
+ export class StorefrontConfigApi extends BaseAPI {
39863
+ /**
39864
+ * Get the effective storefront configuration for a game server. Returns defaults when no config row exists. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerGetEffectiveConfig`
39865
+ * @summary Get effective config
39866
+ * @param {string} gameServerId
39867
+ * @param {*} [options] Override http request option.
39868
+ * @throws {RequiredError}
39869
+ * @memberof StorefrontConfigApi
39870
+ */
39871
+ public storefrontConfigControllerGetEffectiveConfig(gameServerId: string, options?: RawAxiosRequestConfig) {
39872
+ return StorefrontConfigApiFp(this.configuration)
39873
+ .storefrontConfigControllerGetEffectiveConfig(gameServerId, options)
39874
+ .then((request) => request(this.axios, this.basePath));
39875
+ }
39876
+
39877
+ /**
39878
+ * List all available storefront templates with their variable schemas. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerListTemplates`
39879
+ * @summary List templates
39880
+ * @param {*} [options] Override http request option.
39881
+ * @throws {RequiredError}
39882
+ * @memberof StorefrontConfigApi
39883
+ */
39884
+ public storefrontConfigControllerListTemplates(options?: RawAxiosRequestConfig) {
39885
+ return StorefrontConfigApiFp(this.configuration)
39886
+ .storefrontConfigControllerListTemplates(options)
39887
+ .then((request) => request(this.axios, this.basePath));
39888
+ }
39889
+
39890
+ /**
39891
+ * 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`
39892
+ * @summary Set config
39893
+ * @param {string} gameServerId
39894
+ * @param {StorefrontConfigUpsertBody} [storefrontConfigUpsertBody] StorefrontConfigUpsertBody
39895
+ * @param {*} [options] Override http request option.
39896
+ * @throws {RequiredError}
39897
+ * @memberof StorefrontConfigApi
39898
+ */
39899
+ public storefrontConfigControllerSetConfig(
39900
+ gameServerId: string,
39901
+ storefrontConfigUpsertBody?: StorefrontConfigUpsertBody,
39902
+ options?: RawAxiosRequestConfig,
39903
+ ) {
39904
+ return StorefrontConfigApiFp(this.configuration)
39905
+ .storefrontConfigControllerSetConfig(gameServerId, storefrontConfigUpsertBody, options)
39906
+ .then((request) => request(this.axios, this.basePath));
39907
+ }
39908
+ }
39909
+
38748
39910
  /**
38749
39911
  * TrackingApi - axios parameter creator
38750
39912
  * @export