@takaro/apiclient 0.0.0-dev.5951e99 → 0.0.0-dev.59c4c09

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@takaro/apiclient",
3
3
  "description": "API client for Takaro",
4
- "version": "0.0.0-dev.5951e99",
4
+ "version": "0.0.0-dev.59c4c09",
5
5
  "author": "",
6
6
  "dependencies": {
7
7
  "axios": "1.7.7"
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "scripts": {
17
17
  "build": "tsc -p ./tsconfig.build.json",
18
- "generate": "../../scripts/generate-api-client.sh",
18
+ "generate": "node ../../scripts/dev/index.mjs generate-api-client",
19
19
  "start:dev": ":"
20
20
  },
21
21
  "type": "module",
@@ -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
@@ -7593,7 +7637,7 @@ export interface MeOutputDTO {
7593
7637
  * @type {UserOutputWithRolesDTO}
7594
7638
  * @memberof MeOutputDTO
7595
7639
  */
7596
- user: UserOutputWithRolesDTO;
7640
+ user?: UserOutputWithRolesDTO;
7597
7641
  /**
7598
7642
  *
7599
7643
  * @type {Array<DomainOutputDTO>}
@@ -7605,7 +7649,7 @@ export interface MeOutputDTO {
7605
7649
  * @type {string}
7606
7650
  * @memberof MeOutputDTO
7607
7651
  */
7608
- domain: string;
7652
+ domain?: string;
7609
7653
  /**
7610
7654
  *
7611
7655
  * @type {PlayerOutputWithRolesDTO}
@@ -15220,6 +15264,175 @@ export interface SmallModuleVersionOutputDTO {
15220
15264
  */
15221
15265
  updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
15222
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
+ }
15223
15436
  /**
15224
15437
  *
15225
15438
  * @export
@@ -39366,6 +39579,334 @@ export class ShopOrderApi extends BaseAPI {
39366
39579
  }
39367
39580
  }
39368
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
+
39369
39910
  /**
39370
39911
  * TrackingApi - axios parameter creator
39371
39912
  * @export