@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.
@@ -16804,6 +16804,240 @@ export class ShopOrderApi extends BaseAPI {
16804
16804
  .then((request) => request(this.axios, this.basePath));
16805
16805
  }
16806
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
+ }
16807
17041
  /**
16808
17042
  * TrackingApi - axios parameter creator
16809
17043
  * @export