@takaro/apiclient 0.0.0-dev.e8d605b → 0.0.0-dev.e93073f

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.
@@ -696,6 +696,28 @@ export const ITakaroQuerySortDirectionEnum = {
696
696
  Asc: 'asc',
697
697
  Desc: 'desc',
698
698
  };
699
+ export const InviteLinkCreateResultDTOStatusEnum = {
700
+ Active: 'ACTIVE',
701
+ Revoked: 'REVOKED',
702
+ Expired: 'EXPIRED',
703
+ Depleted: 'DEPLETED',
704
+ };
705
+ export const InviteLinkOutputDTOStatusEnum = {
706
+ Active: 'ACTIVE',
707
+ Revoked: 'REVOKED',
708
+ Expired: 'EXPIRED',
709
+ Depleted: 'DEPLETED',
710
+ };
711
+ export const InviteLinkPreviewDTOStatusEnum = {
712
+ Active: 'ACTIVE',
713
+ Revoked: 'REVOKED',
714
+ Expired: 'EXPIRED',
715
+ Depleted: 'DEPLETED',
716
+ };
717
+ export const InviteLinkSearchInputDTOSortDirectionEnum = {
718
+ Asc: 'asc',
719
+ Desc: 'desc',
720
+ };
699
721
  export const ItemSearchInputDTOExtendEnum = {
700
722
  Gameserver: 'gameserver',
701
723
  };
@@ -16804,6 +16826,240 @@ export class ShopOrderApi extends BaseAPI {
16804
16826
  .then((request) => request(this.axios, this.basePath));
16805
16827
  }
16806
16828
  }
16829
+ /**
16830
+ * StorefrontConfigApi - axios parameter creator
16831
+ * @export
16832
+ */
16833
+ export const StorefrontConfigApiAxiosParamCreator = function (configuration) {
16834
+ return {
16835
+ /**
16836
+ * Get the effective storefront configuration for a game server. Returns defaults when no config row exists. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerGetEffectiveConfig`
16837
+ * @summary Get effective config
16838
+ * @param {string} gameServerId
16839
+ * @param {*} [options] Override http request option.
16840
+ * @throws {RequiredError}
16841
+ */
16842
+ storefrontConfigControllerGetEffectiveConfig: async (gameServerId, options = {}) => {
16843
+ // verify required parameter 'gameServerId' is not null or undefined
16844
+ assertParamExists('storefrontConfigControllerGetEffectiveConfig', 'gameServerId', gameServerId);
16845
+ const localVarPath = `/gameserver/{gameServerId}/storefront-config`.replace(`{${'gameServerId'}}`, encodeURIComponent(String(gameServerId)));
16846
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16847
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16848
+ let baseOptions;
16849
+ if (configuration) {
16850
+ baseOptions = configuration.baseOptions;
16851
+ }
16852
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
16853
+ const localVarHeaderParameter = {};
16854
+ const localVarQueryParameter = {};
16855
+ // authentication domainAuth required
16856
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16857
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16858
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
16859
+ return {
16860
+ url: toPathString(localVarUrlObj),
16861
+ options: localVarRequestOptions,
16862
+ };
16863
+ },
16864
+ /**
16865
+ * List all available storefront templates with their variable schemas. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerListTemplates`
16866
+ * @summary List templates
16867
+ * @param {*} [options] Override http request option.
16868
+ * @throws {RequiredError}
16869
+ */
16870
+ storefrontConfigControllerListTemplates: async (options = {}) => {
16871
+ const localVarPath = `/storefront/templates`;
16872
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16873
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16874
+ let baseOptions;
16875
+ if (configuration) {
16876
+ baseOptions = configuration.baseOptions;
16877
+ }
16878
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
16879
+ const localVarHeaderParameter = {};
16880
+ const localVarQueryParameter = {};
16881
+ // authentication domainAuth required
16882
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16883
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16884
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
16885
+ return {
16886
+ url: toPathString(localVarUrlObj),
16887
+ options: localVarRequestOptions,
16888
+ };
16889
+ },
16890
+ /**
16891
+ * 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`
16892
+ * @summary Set config
16893
+ * @param {string} gameServerId
16894
+ * @param {StorefrontConfigUpsertBody} [storefrontConfigUpsertBody] StorefrontConfigUpsertBody
16895
+ * @param {*} [options] Override http request option.
16896
+ * @throws {RequiredError}
16897
+ */
16898
+ storefrontConfigControllerSetConfig: async (gameServerId, storefrontConfigUpsertBody, options = {}) => {
16899
+ // verify required parameter 'gameServerId' is not null or undefined
16900
+ assertParamExists('storefrontConfigControllerSetConfig', 'gameServerId', gameServerId);
16901
+ const localVarPath = `/gameserver/{gameServerId}/storefront-config`.replace(`{${'gameServerId'}}`, encodeURIComponent(String(gameServerId)));
16902
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16903
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16904
+ let baseOptions;
16905
+ if (configuration) {
16906
+ baseOptions = configuration.baseOptions;
16907
+ }
16908
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
16909
+ const localVarHeaderParameter = {};
16910
+ const localVarQueryParameter = {};
16911
+ // authentication domainAuth required
16912
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16913
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16914
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16915
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
16916
+ localVarRequestOptions.data = serializeDataIfNeeded(storefrontConfigUpsertBody, localVarRequestOptions, configuration);
16917
+ return {
16918
+ url: toPathString(localVarUrlObj),
16919
+ options: localVarRequestOptions,
16920
+ };
16921
+ },
16922
+ };
16923
+ };
16924
+ /**
16925
+ * StorefrontConfigApi - functional programming interface
16926
+ * @export
16927
+ */
16928
+ export const StorefrontConfigApiFp = function (configuration) {
16929
+ const localVarAxiosParamCreator = StorefrontConfigApiAxiosParamCreator(configuration);
16930
+ return {
16931
+ /**
16932
+ * Get the effective storefront configuration for a game server. Returns defaults when no config row exists. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerGetEffectiveConfig`
16933
+ * @summary Get effective config
16934
+ * @param {string} gameServerId
16935
+ * @param {*} [options] Override http request option.
16936
+ * @throws {RequiredError}
16937
+ */
16938
+ async storefrontConfigControllerGetEffectiveConfig(gameServerId, options) {
16939
+ const localVarAxiosArgs = await localVarAxiosParamCreator.storefrontConfigControllerGetEffectiveConfig(gameServerId, options);
16940
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16941
+ const localVarOperationServerBasePath = operationServerMap['StorefrontConfigApi.storefrontConfigControllerGetEffectiveConfig']?.[localVarOperationServerIndex]?.url;
16942
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16943
+ },
16944
+ /**
16945
+ * List all available storefront templates with their variable schemas. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerListTemplates`
16946
+ * @summary List templates
16947
+ * @param {*} [options] Override http request option.
16948
+ * @throws {RequiredError}
16949
+ */
16950
+ async storefrontConfigControllerListTemplates(options) {
16951
+ const localVarAxiosArgs = await localVarAxiosParamCreator.storefrontConfigControllerListTemplates(options);
16952
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16953
+ const localVarOperationServerBasePath = operationServerMap['StorefrontConfigApi.storefrontConfigControllerListTemplates']?.[localVarOperationServerIndex]?.url;
16954
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16955
+ },
16956
+ /**
16957
+ * 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`
16958
+ * @summary Set config
16959
+ * @param {string} gameServerId
16960
+ * @param {StorefrontConfigUpsertBody} [storefrontConfigUpsertBody] StorefrontConfigUpsertBody
16961
+ * @param {*} [options] Override http request option.
16962
+ * @throws {RequiredError}
16963
+ */
16964
+ async storefrontConfigControllerSetConfig(gameServerId, storefrontConfigUpsertBody, options) {
16965
+ const localVarAxiosArgs = await localVarAxiosParamCreator.storefrontConfigControllerSetConfig(gameServerId, storefrontConfigUpsertBody, options);
16966
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16967
+ const localVarOperationServerBasePath = operationServerMap['StorefrontConfigApi.storefrontConfigControllerSetConfig']?.[localVarOperationServerIndex]
16968
+ ?.url;
16969
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16970
+ },
16971
+ };
16972
+ };
16973
+ /**
16974
+ * StorefrontConfigApi - factory interface
16975
+ * @export
16976
+ */
16977
+ export const StorefrontConfigApiFactory = function (configuration, basePath, axios) {
16978
+ const localVarFp = StorefrontConfigApiFp(configuration);
16979
+ return {
16980
+ /**
16981
+ * Get the effective storefront configuration for a game server. Returns defaults when no config row exists. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerGetEffectiveConfig`
16982
+ * @summary Get effective config
16983
+ * @param {string} gameServerId
16984
+ * @param {*} [options] Override http request option.
16985
+ * @throws {RequiredError}
16986
+ */
16987
+ storefrontConfigControllerGetEffectiveConfig(gameServerId, options) {
16988
+ return localVarFp
16989
+ .storefrontConfigControllerGetEffectiveConfig(gameServerId, options)
16990
+ .then((request) => request(axios, basePath));
16991
+ },
16992
+ /**
16993
+ * List all available storefront templates with their variable schemas. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerListTemplates`
16994
+ * @summary List templates
16995
+ * @param {*} [options] Override http request option.
16996
+ * @throws {RequiredError}
16997
+ */
16998
+ storefrontConfigControllerListTemplates(options) {
16999
+ return localVarFp.storefrontConfigControllerListTemplates(options).then((request) => request(axios, basePath));
17000
+ },
17001
+ /**
17002
+ * 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`
17003
+ * @summary Set config
17004
+ * @param {string} gameServerId
17005
+ * @param {StorefrontConfigUpsertBody} [storefrontConfigUpsertBody] StorefrontConfigUpsertBody
17006
+ * @param {*} [options] Override http request option.
17007
+ * @throws {RequiredError}
17008
+ */
17009
+ storefrontConfigControllerSetConfig(gameServerId, storefrontConfigUpsertBody, options) {
17010
+ return localVarFp
17011
+ .storefrontConfigControllerSetConfig(gameServerId, storefrontConfigUpsertBody, options)
17012
+ .then((request) => request(axios, basePath));
17013
+ },
17014
+ };
17015
+ };
17016
+ /**
17017
+ * StorefrontConfigApi - object-oriented interface
17018
+ * @export
17019
+ * @class StorefrontConfigApi
17020
+ * @extends {BaseAPI}
17021
+ */
17022
+ export class StorefrontConfigApi extends BaseAPI {
17023
+ /**
17024
+ * Get the effective storefront configuration for a game server. Returns defaults when no config row exists. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerGetEffectiveConfig`
17025
+ * @summary Get effective config
17026
+ * @param {string} gameServerId
17027
+ * @param {*} [options] Override http request option.
17028
+ * @throws {RequiredError}
17029
+ * @memberof StorefrontConfigApi
17030
+ */
17031
+ storefrontConfigControllerGetEffectiveConfig(gameServerId, options) {
17032
+ return StorefrontConfigApiFp(this.configuration)
17033
+ .storefrontConfigControllerGetEffectiveConfig(gameServerId, options)
17034
+ .then((request) => request(this.axios, this.basePath));
17035
+ }
17036
+ /**
17037
+ * List all available storefront templates with their variable schemas. Required permissions: `MANAGE_SHOP_LISTINGS`<br> OperationId: `StorefrontConfigControllerListTemplates`
17038
+ * @summary List templates
17039
+ * @param {*} [options] Override http request option.
17040
+ * @throws {RequiredError}
17041
+ * @memberof StorefrontConfigApi
17042
+ */
17043
+ storefrontConfigControllerListTemplates(options) {
17044
+ return StorefrontConfigApiFp(this.configuration)
17045
+ .storefrontConfigControllerListTemplates(options)
17046
+ .then((request) => request(this.axios, this.basePath));
17047
+ }
17048
+ /**
17049
+ * 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`
17050
+ * @summary Set config
17051
+ * @param {string} gameServerId
17052
+ * @param {StorefrontConfigUpsertBody} [storefrontConfigUpsertBody] StorefrontConfigUpsertBody
17053
+ * @param {*} [options] Override http request option.
17054
+ * @throws {RequiredError}
17055
+ * @memberof StorefrontConfigApi
17056
+ */
17057
+ storefrontConfigControllerSetConfig(gameServerId, storefrontConfigUpsertBody, options) {
17058
+ return StorefrontConfigApiFp(this.configuration)
17059
+ .storefrontConfigControllerSetConfig(gameServerId, storefrontConfigUpsertBody, options)
17060
+ .then((request) => request(this.axios, this.basePath));
17061
+ }
17062
+ }
16807
17063
  /**
16808
17064
  * TrackingApi - axios parameter creator
16809
17065
  * @export
@@ -17218,6 +17474,30 @@ export const UserApiAxiosParamCreator = function (configuration) {
17218
17474
  options: localVarRequestOptions,
17219
17475
  };
17220
17476
  },
17477
+ /**
17478
+ * Required permissions: `READ_USERS`<br> OperationId: `UserControllerCountBillableDashboardUsers`
17479
+ * @summary Count billable dashboard users
17480
+ * @param {*} [options] Override http request option.
17481
+ * @throws {RequiredError}
17482
+ */
17483
+ userControllerCountBillableDashboardUsers: async (options = {}) => {
17484
+ const localVarPath = `/user/count`;
17485
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17486
+ let baseOptions;
17487
+ if (configuration) {
17488
+ baseOptions = configuration.baseOptions;
17489
+ }
17490
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
17491
+ const localVarHeaderParameter = {};
17492
+ const localVarQueryParameter = {};
17493
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17494
+ const headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17495
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
17496
+ return {
17497
+ url: toPathString(localVarUrlObj),
17498
+ options: localVarRequestOptions,
17499
+ };
17500
+ },
17221
17501
  /**
17222
17502
  * Required permissions: `MANAGE_USERS`<br> OperationId: `UserControllerCreate`
17223
17503
  * @summary Create
@@ -17618,6 +17898,18 @@ export const UserApiFp = function (configuration) {
17618
17898
  const localVarOperationServerBasePath = operationServerMap['UserApi.userControllerAssignRole']?.[localVarOperationServerIndex]?.url;
17619
17899
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17620
17900
  },
17901
+ /**
17902
+ * Required permissions: `READ_USERS`<br> OperationId: `UserControllerCountBillableDashboardUsers`
17903
+ * @summary Count billable dashboard users
17904
+ * @param {*} [options] Override http request option.
17905
+ * @throws {RequiredError}
17906
+ */
17907
+ async userControllerCountBillableDashboardUsers(options) {
17908
+ const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerCountBillableDashboardUsers(options);
17909
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17910
+ const localVarOperationServerBasePath = operationServerMap['UserApi.userControllerCountBillableDashboardUsers']?.[localVarOperationServerIndex]?.url;
17911
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17912
+ },
17621
17913
  /**
17622
17914
  * Required permissions: `MANAGE_USERS`<br> OperationId: `UserControllerCreate`
17623
17915
  * @summary Create
@@ -17809,6 +18101,15 @@ export const UserApiFactory = function (configuration, basePath, axios) {
17809
18101
  .userControllerAssignRole(id, roleId, userRoleAssignChangeDTO, options)
17810
18102
  .then((request) => request(axios, basePath));
17811
18103
  },
18104
+ /**
18105
+ * Required permissions: `READ_USERS`<br> OperationId: `UserControllerCountBillableDashboardUsers`
18106
+ * @summary Count billable dashboard users
18107
+ * @param {*} [options] Override http request option.
18108
+ * @throws {RequiredError}
18109
+ */
18110
+ userControllerCountBillableDashboardUsers(options) {
18111
+ return localVarFp.userControllerCountBillableDashboardUsers(options).then((request) => request(axios, basePath));
18112
+ },
17812
18113
  /**
17813
18114
  * Required permissions: `MANAGE_USERS`<br> OperationId: `UserControllerCreate`
17814
18115
  * @summary Create
@@ -17964,6 +18265,18 @@ export class UserApi extends BaseAPI {
17964
18265
  .userControllerAssignRole(id, roleId, userRoleAssignChangeDTO, options)
17965
18266
  .then((request) => request(this.axios, this.basePath));
17966
18267
  }
18268
+ /**
18269
+ * Required permissions: `READ_USERS`<br> OperationId: `UserControllerCountBillableDashboardUsers`
18270
+ * @summary Count billable dashboard users
18271
+ * @param {*} [options] Override http request option.
18272
+ * @throws {RequiredError}
18273
+ * @memberof UserApi
18274
+ */
18275
+ userControllerCountBillableDashboardUsers(options) {
18276
+ return UserApiFp(this.configuration)
18277
+ .userControllerCountBillableDashboardUsers(options)
18278
+ .then((request) => request(this.axios, this.basePath));
18279
+ }
17967
18280
  /**
17968
18281
  * Required permissions: `MANAGE_USERS`<br> OperationId: `UserControllerCreate`
17969
18282
  * @summary Create
@@ -18504,4 +18817,358 @@ export class VariableApi extends BaseAPI {
18504
18817
  .then((request) => request(this.axios, this.basePath));
18505
18818
  }
18506
18819
  }
18820
+ /**
18821
+ * InviteLinkApi - axios parameter creator
18822
+ * @export
18823
+ */
18824
+ export const InviteLinkApiAxiosParamCreator = function (configuration) {
18825
+ return {
18826
+ /**
18827
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
18828
+ * @summary Create invite link
18829
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
18830
+ * @param {*} [options] Override http request option.
18831
+ * @throws {RequiredError}
18832
+ */
18833
+ inviteLinkControllerCreate: async (inviteLinkCreateInputDTO, options = {}) => {
18834
+ const localVarPath = `/invite-link`;
18835
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18836
+ let baseOptions;
18837
+ if (configuration) {
18838
+ baseOptions = configuration.baseOptions;
18839
+ }
18840
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
18841
+ const localVarHeaderParameter = {};
18842
+ const localVarQueryParameter = {};
18843
+ // authentication domainAuth required
18844
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18845
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18846
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18847
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
18848
+ localVarRequestOptions.data = serializeDataIfNeeded(inviteLinkCreateInputDTO, localVarRequestOptions, configuration);
18849
+ return {
18850
+ url: toPathString(localVarUrlObj),
18851
+ options: localVarRequestOptions,
18852
+ };
18853
+ },
18854
+ /**
18855
+ * <br> OperationId: `InviteLinkControllerPreview`
18856
+ * @summary Preview
18857
+ * @param {string} token
18858
+ * @param {*} [options] Override http request option.
18859
+ * @throws {RequiredError}
18860
+ */
18861
+ inviteLinkControllerPreview: async (token, options = {}) => {
18862
+ assertParamExists('inviteLinkControllerPreview', 'token', token);
18863
+ const localVarPath = `/invite-link/redeem/{token}`.replace(`{${'token'}}`, encodeURIComponent(String(token)));
18864
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18865
+ let baseOptions;
18866
+ if (configuration) {
18867
+ baseOptions = configuration.baseOptions;
18868
+ }
18869
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
18870
+ const localVarHeaderParameter = {};
18871
+ const localVarQueryParameter = {};
18872
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18873
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18874
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
18875
+ return {
18876
+ url: toPathString(localVarUrlObj),
18877
+ options: localVarRequestOptions,
18878
+ };
18879
+ },
18880
+ /**
18881
+ * <br> OperationId: `InviteLinkControllerRedeem`
18882
+ * @summary Redeem
18883
+ * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
18884
+ * @param {*} [options] Override http request option.
18885
+ * @throws {RequiredError}
18886
+ */
18887
+ inviteLinkControllerRedeem: async (redeemInputDTO, options = {}) => {
18888
+ const localVarPath = `/invite-link/redeem`;
18889
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18890
+ let baseOptions;
18891
+ if (configuration) {
18892
+ baseOptions = configuration.baseOptions;
18893
+ }
18894
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
18895
+ const localVarHeaderParameter = {};
18896
+ const localVarQueryParameter = {};
18897
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18898
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18899
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18900
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
18901
+ localVarRequestOptions.data = serializeDataIfNeeded(redeemInputDTO, localVarRequestOptions, configuration);
18902
+ return {
18903
+ url: toPathString(localVarUrlObj),
18904
+ options: localVarRequestOptions,
18905
+ };
18906
+ },
18907
+ /**
18908
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
18909
+ * @summary Revoke
18910
+ * @param {string} id
18911
+ * @param {*} [options] Override http request option.
18912
+ * @throws {RequiredError}
18913
+ */
18914
+ inviteLinkControllerRevoke: async (id, options = {}) => {
18915
+ assertParamExists('inviteLinkControllerRevoke', 'id', id);
18916
+ const localVarPath = `/invite-link/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
18917
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18918
+ let baseOptions;
18919
+ if (configuration) {
18920
+ baseOptions = configuration.baseOptions;
18921
+ }
18922
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
18923
+ const localVarHeaderParameter = {};
18924
+ const localVarQueryParameter = {};
18925
+ // authentication domainAuth required
18926
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18927
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18928
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
18929
+ return {
18930
+ url: toPathString(localVarUrlObj),
18931
+ options: localVarRequestOptions,
18932
+ };
18933
+ },
18934
+ /**
18935
+ * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
18936
+ * @summary Search
18937
+ * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
18938
+ * @param {*} [options] Override http request option.
18939
+ * @throws {RequiredError}
18940
+ */
18941
+ inviteLinkControllerSearch: async (inviteLinkSearchInputDTO, options = {}) => {
18942
+ const localVarPath = `/invite-link/search`;
18943
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18944
+ let baseOptions;
18945
+ if (configuration) {
18946
+ baseOptions = configuration.baseOptions;
18947
+ }
18948
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
18949
+ const localVarHeaderParameter = {};
18950
+ const localVarQueryParameter = {};
18951
+ // authentication domainAuth required
18952
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18953
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18954
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18955
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
18956
+ localVarRequestOptions.data = serializeDataIfNeeded(inviteLinkSearchInputDTO, localVarRequestOptions, configuration);
18957
+ return {
18958
+ url: toPathString(localVarUrlObj),
18959
+ options: localVarRequestOptions,
18960
+ };
18961
+ },
18962
+ };
18963
+ };
18964
+ /**
18965
+ * InviteLinkApi - functional programming interface
18966
+ * @export
18967
+ */
18968
+ export const InviteLinkApiFp = function (configuration) {
18969
+ const localVarAxiosParamCreator = InviteLinkApiAxiosParamCreator(configuration);
18970
+ return {
18971
+ /**
18972
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
18973
+ * @summary Create invite link
18974
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
18975
+ * @param {*} [options] Override http request option.
18976
+ * @throws {RequiredError}
18977
+ */
18978
+ async inviteLinkControllerCreate(inviteLinkCreateInputDTO, options) {
18979
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerCreate(inviteLinkCreateInputDTO, options);
18980
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18981
+ const localVarOperationServerBasePath = operationServerMap['InviteLinkApi.inviteLinkControllerCreate']?.[localVarOperationServerIndex]?.url;
18982
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18983
+ },
18984
+ /**
18985
+ * <br> OperationId: `InviteLinkControllerPreview`
18986
+ * @summary Preview
18987
+ * @param {string} token
18988
+ * @param {*} [options] Override http request option.
18989
+ * @throws {RequiredError}
18990
+ */
18991
+ async inviteLinkControllerPreview(token, options) {
18992
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerPreview(token, options);
18993
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18994
+ const localVarOperationServerBasePath = operationServerMap['InviteLinkApi.inviteLinkControllerPreview']?.[localVarOperationServerIndex]?.url;
18995
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18996
+ },
18997
+ /**
18998
+ * <br> OperationId: `InviteLinkControllerRedeem`
18999
+ * @summary Redeem
19000
+ * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
19001
+ * @param {*} [options] Override http request option.
19002
+ * @throws {RequiredError}
19003
+ */
19004
+ async inviteLinkControllerRedeem(redeemInputDTO, options) {
19005
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerRedeem(redeemInputDTO, options);
19006
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19007
+ const localVarOperationServerBasePath = operationServerMap['InviteLinkApi.inviteLinkControllerRedeem']?.[localVarOperationServerIndex]?.url;
19008
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19009
+ },
19010
+ /**
19011
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
19012
+ * @summary Revoke
19013
+ * @param {string} id
19014
+ * @param {*} [options] Override http request option.
19015
+ * @throws {RequiredError}
19016
+ */
19017
+ async inviteLinkControllerRevoke(id, options) {
19018
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerRevoke(id, options);
19019
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19020
+ const localVarOperationServerBasePath = operationServerMap['InviteLinkApi.inviteLinkControllerRevoke']?.[localVarOperationServerIndex]?.url;
19021
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19022
+ },
19023
+ /**
19024
+ * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
19025
+ * @summary Search
19026
+ * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
19027
+ * @param {*} [options] Override http request option.
19028
+ * @throws {RequiredError}
19029
+ */
19030
+ async inviteLinkControllerSearch(inviteLinkSearchInputDTO, options) {
19031
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerSearch(inviteLinkSearchInputDTO, options);
19032
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19033
+ const localVarOperationServerBasePath = operationServerMap['InviteLinkApi.inviteLinkControllerSearch']?.[localVarOperationServerIndex]?.url;
19034
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19035
+ },
19036
+ };
19037
+ };
19038
+ /**
19039
+ * InviteLinkApi - factory interface
19040
+ * @export
19041
+ */
19042
+ export const InviteLinkApiFactory = function (configuration, basePath, axios) {
19043
+ const localVarFp = InviteLinkApiFp(configuration);
19044
+ return {
19045
+ /**
19046
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
19047
+ * @summary Create invite link
19048
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
19049
+ * @param {*} [options] Override http request option.
19050
+ * @throws {RequiredError}
19051
+ */
19052
+ inviteLinkControllerCreate(inviteLinkCreateInputDTO, options) {
19053
+ return localVarFp
19054
+ .inviteLinkControllerCreate(inviteLinkCreateInputDTO, options)
19055
+ .then((request) => request(axios, basePath));
19056
+ },
19057
+ /**
19058
+ * <br> OperationId: `InviteLinkControllerPreview`
19059
+ * @summary Preview
19060
+ * @param {string} token
19061
+ * @param {*} [options] Override http request option.
19062
+ * @throws {RequiredError}
19063
+ */
19064
+ inviteLinkControllerPreview(token, options) {
19065
+ return localVarFp.inviteLinkControllerPreview(token, options).then((request) => request(axios, basePath));
19066
+ },
19067
+ /**
19068
+ * <br> OperationId: `InviteLinkControllerRedeem`
19069
+ * @summary Redeem
19070
+ * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
19071
+ * @param {*} [options] Override http request option.
19072
+ * @throws {RequiredError}
19073
+ */
19074
+ inviteLinkControllerRedeem(redeemInputDTO, options) {
19075
+ return localVarFp.inviteLinkControllerRedeem(redeemInputDTO, options).then((request) => request(axios, basePath));
19076
+ },
19077
+ /**
19078
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
19079
+ * @summary Revoke
19080
+ * @param {string} id
19081
+ * @param {*} [options] Override http request option.
19082
+ * @throws {RequiredError}
19083
+ */
19084
+ inviteLinkControllerRevoke(id, options) {
19085
+ return localVarFp.inviteLinkControllerRevoke(id, options).then((request) => request(axios, basePath));
19086
+ },
19087
+ /**
19088
+ * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
19089
+ * @summary Search
19090
+ * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
19091
+ * @param {*} [options] Override http request option.
19092
+ * @throws {RequiredError}
19093
+ */
19094
+ inviteLinkControllerSearch(inviteLinkSearchInputDTO, options) {
19095
+ return localVarFp
19096
+ .inviteLinkControllerSearch(inviteLinkSearchInputDTO, options)
19097
+ .then((request) => request(axios, basePath));
19098
+ },
19099
+ };
19100
+ };
19101
+ /**
19102
+ * InviteLinkApi - object-oriented interface
19103
+ * @export
19104
+ * @class InviteLinkApi
19105
+ * @extends {BaseAPI}
19106
+ */
19107
+ export class InviteLinkApi extends BaseAPI {
19108
+ /**
19109
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
19110
+ * @summary Create invite link
19111
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
19112
+ * @param {*} [options] Override http request option.
19113
+ * @throws {RequiredError}
19114
+ * @memberof InviteLinkApi
19115
+ */
19116
+ inviteLinkControllerCreate(inviteLinkCreateInputDTO, options) {
19117
+ return InviteLinkApiFp(this.configuration)
19118
+ .inviteLinkControllerCreate(inviteLinkCreateInputDTO, options)
19119
+ .then((request) => request(this.axios, this.basePath));
19120
+ }
19121
+ /**
19122
+ * <br> OperationId: `InviteLinkControllerPreview`
19123
+ * @summary Preview
19124
+ * @param {string} token
19125
+ * @param {*} [options] Override http request option.
19126
+ * @throws {RequiredError}
19127
+ * @memberof InviteLinkApi
19128
+ */
19129
+ inviteLinkControllerPreview(token, options) {
19130
+ return InviteLinkApiFp(this.configuration)
19131
+ .inviteLinkControllerPreview(token, options)
19132
+ .then((request) => request(this.axios, this.basePath));
19133
+ }
19134
+ /**
19135
+ * <br> OperationId: `InviteLinkControllerRedeem`
19136
+ * @summary Redeem
19137
+ * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
19138
+ * @param {*} [options] Override http request option.
19139
+ * @throws {RequiredError}
19140
+ * @memberof InviteLinkApi
19141
+ */
19142
+ inviteLinkControllerRedeem(redeemInputDTO, options) {
19143
+ return InviteLinkApiFp(this.configuration)
19144
+ .inviteLinkControllerRedeem(redeemInputDTO, options)
19145
+ .then((request) => request(this.axios, this.basePath));
19146
+ }
19147
+ /**
19148
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
19149
+ * @summary Revoke
19150
+ * @param {string} id
19151
+ * @param {*} [options] Override http request option.
19152
+ * @throws {RequiredError}
19153
+ * @memberof InviteLinkApi
19154
+ */
19155
+ inviteLinkControllerRevoke(id, options) {
19156
+ return InviteLinkApiFp(this.configuration)
19157
+ .inviteLinkControllerRevoke(id, options)
19158
+ .then((request) => request(this.axios, this.basePath));
19159
+ }
19160
+ /**
19161
+ * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
19162
+ * @summary Search
19163
+ * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
19164
+ * @param {*} [options] Override http request option.
19165
+ * @throws {RequiredError}
19166
+ * @memberof InviteLinkApi
19167
+ */
19168
+ inviteLinkControllerSearch(inviteLinkSearchInputDTO, options) {
19169
+ return InviteLinkApiFp(this.configuration)
19170
+ .inviteLinkControllerSearch(inviteLinkSearchInputDTO, options)
19171
+ .then((request) => request(this.axios, this.basePath));
19172
+ }
19173
+ }
18507
19174
  //# sourceMappingURL=api.js.map