@takaro/apiclient 0.0.0-dev.8abe2d5 → 0.0.0-dev.8e5d107

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
@@ -18504,4 +18760,358 @@ export class VariableApi extends BaseAPI {
18504
18760
  .then((request) => request(this.axios, this.basePath));
18505
18761
  }
18506
18762
  }
18763
+ /**
18764
+ * InviteLinkApi - axios parameter creator
18765
+ * @export
18766
+ */
18767
+ export const InviteLinkApiAxiosParamCreator = function (configuration) {
18768
+ return {
18769
+ /**
18770
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
18771
+ * @summary Create invite link
18772
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
18773
+ * @param {*} [options] Override http request option.
18774
+ * @throws {RequiredError}
18775
+ */
18776
+ inviteLinkControllerCreate: async (inviteLinkCreateInputDTO, options = {}) => {
18777
+ const localVarPath = `/invite-link`;
18778
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18779
+ let baseOptions;
18780
+ if (configuration) {
18781
+ baseOptions = configuration.baseOptions;
18782
+ }
18783
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
18784
+ const localVarHeaderParameter = {};
18785
+ const localVarQueryParameter = {};
18786
+ // authentication domainAuth required
18787
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18788
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18789
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18790
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
18791
+ localVarRequestOptions.data = serializeDataIfNeeded(inviteLinkCreateInputDTO, localVarRequestOptions, configuration);
18792
+ return {
18793
+ url: toPathString(localVarUrlObj),
18794
+ options: localVarRequestOptions,
18795
+ };
18796
+ },
18797
+ /**
18798
+ * <br> OperationId: `InviteLinkControllerPreview`
18799
+ * @summary Preview
18800
+ * @param {string} token
18801
+ * @param {*} [options] Override http request option.
18802
+ * @throws {RequiredError}
18803
+ */
18804
+ inviteLinkControllerPreview: async (token, options = {}) => {
18805
+ assertParamExists('inviteLinkControllerPreview', 'token', token);
18806
+ const localVarPath = `/invite-link/redeem/{token}`.replace(`{${'token'}}`, encodeURIComponent(String(token)));
18807
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18808
+ let baseOptions;
18809
+ if (configuration) {
18810
+ baseOptions = configuration.baseOptions;
18811
+ }
18812
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
18813
+ const localVarHeaderParameter = {};
18814
+ const localVarQueryParameter = {};
18815
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18816
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18817
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
18818
+ return {
18819
+ url: toPathString(localVarUrlObj),
18820
+ options: localVarRequestOptions,
18821
+ };
18822
+ },
18823
+ /**
18824
+ * <br> OperationId: `InviteLinkControllerRedeem`
18825
+ * @summary Redeem
18826
+ * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
18827
+ * @param {*} [options] Override http request option.
18828
+ * @throws {RequiredError}
18829
+ */
18830
+ inviteLinkControllerRedeem: async (redeemInputDTO, options = {}) => {
18831
+ const localVarPath = `/invite-link/redeem`;
18832
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18833
+ let baseOptions;
18834
+ if (configuration) {
18835
+ baseOptions = configuration.baseOptions;
18836
+ }
18837
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
18838
+ const localVarHeaderParameter = {};
18839
+ const localVarQueryParameter = {};
18840
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18841
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18842
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18843
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
18844
+ localVarRequestOptions.data = serializeDataIfNeeded(redeemInputDTO, localVarRequestOptions, configuration);
18845
+ return {
18846
+ url: toPathString(localVarUrlObj),
18847
+ options: localVarRequestOptions,
18848
+ };
18849
+ },
18850
+ /**
18851
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
18852
+ * @summary Revoke
18853
+ * @param {string} id
18854
+ * @param {*} [options] Override http request option.
18855
+ * @throws {RequiredError}
18856
+ */
18857
+ inviteLinkControllerRevoke: async (id, options = {}) => {
18858
+ assertParamExists('inviteLinkControllerRevoke', 'id', id);
18859
+ const localVarPath = `/invite-link/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
18860
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18861
+ let baseOptions;
18862
+ if (configuration) {
18863
+ baseOptions = configuration.baseOptions;
18864
+ }
18865
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
18866
+ const localVarHeaderParameter = {};
18867
+ const localVarQueryParameter = {};
18868
+ // authentication domainAuth required
18869
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18870
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18871
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
18872
+ return {
18873
+ url: toPathString(localVarUrlObj),
18874
+ options: localVarRequestOptions,
18875
+ };
18876
+ },
18877
+ /**
18878
+ * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
18879
+ * @summary Search
18880
+ * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
18881
+ * @param {*} [options] Override http request option.
18882
+ * @throws {RequiredError}
18883
+ */
18884
+ inviteLinkControllerSearch: async (inviteLinkSearchInputDTO, options = {}) => {
18885
+ const localVarPath = `/invite-link/search`;
18886
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18887
+ let baseOptions;
18888
+ if (configuration) {
18889
+ baseOptions = configuration.baseOptions;
18890
+ }
18891
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
18892
+ const localVarHeaderParameter = {};
18893
+ const localVarQueryParameter = {};
18894
+ // authentication domainAuth required
18895
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18896
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18897
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18898
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
18899
+ localVarRequestOptions.data = serializeDataIfNeeded(inviteLinkSearchInputDTO, localVarRequestOptions, configuration);
18900
+ return {
18901
+ url: toPathString(localVarUrlObj),
18902
+ options: localVarRequestOptions,
18903
+ };
18904
+ },
18905
+ };
18906
+ };
18907
+ /**
18908
+ * InviteLinkApi - functional programming interface
18909
+ * @export
18910
+ */
18911
+ export const InviteLinkApiFp = function (configuration) {
18912
+ const localVarAxiosParamCreator = InviteLinkApiAxiosParamCreator(configuration);
18913
+ return {
18914
+ /**
18915
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
18916
+ * @summary Create invite link
18917
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
18918
+ * @param {*} [options] Override http request option.
18919
+ * @throws {RequiredError}
18920
+ */
18921
+ async inviteLinkControllerCreate(inviteLinkCreateInputDTO, options) {
18922
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerCreate(inviteLinkCreateInputDTO, options);
18923
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18924
+ const localVarOperationServerBasePath = operationServerMap['InviteLinkApi.inviteLinkControllerCreate']?.[localVarOperationServerIndex]?.url;
18925
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18926
+ },
18927
+ /**
18928
+ * <br> OperationId: `InviteLinkControllerPreview`
18929
+ * @summary Preview
18930
+ * @param {string} token
18931
+ * @param {*} [options] Override http request option.
18932
+ * @throws {RequiredError}
18933
+ */
18934
+ async inviteLinkControllerPreview(token, options) {
18935
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerPreview(token, options);
18936
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18937
+ const localVarOperationServerBasePath = operationServerMap['InviteLinkApi.inviteLinkControllerPreview']?.[localVarOperationServerIndex]?.url;
18938
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18939
+ },
18940
+ /**
18941
+ * <br> OperationId: `InviteLinkControllerRedeem`
18942
+ * @summary Redeem
18943
+ * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
18944
+ * @param {*} [options] Override http request option.
18945
+ * @throws {RequiredError}
18946
+ */
18947
+ async inviteLinkControllerRedeem(redeemInputDTO, options) {
18948
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerRedeem(redeemInputDTO, options);
18949
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18950
+ const localVarOperationServerBasePath = operationServerMap['InviteLinkApi.inviteLinkControllerRedeem']?.[localVarOperationServerIndex]?.url;
18951
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18952
+ },
18953
+ /**
18954
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
18955
+ * @summary Revoke
18956
+ * @param {string} id
18957
+ * @param {*} [options] Override http request option.
18958
+ * @throws {RequiredError}
18959
+ */
18960
+ async inviteLinkControllerRevoke(id, options) {
18961
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerRevoke(id, options);
18962
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18963
+ const localVarOperationServerBasePath = operationServerMap['InviteLinkApi.inviteLinkControllerRevoke']?.[localVarOperationServerIndex]?.url;
18964
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18965
+ },
18966
+ /**
18967
+ * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
18968
+ * @summary Search
18969
+ * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
18970
+ * @param {*} [options] Override http request option.
18971
+ * @throws {RequiredError}
18972
+ */
18973
+ async inviteLinkControllerSearch(inviteLinkSearchInputDTO, options) {
18974
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerSearch(inviteLinkSearchInputDTO, options);
18975
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18976
+ const localVarOperationServerBasePath = operationServerMap['InviteLinkApi.inviteLinkControllerSearch']?.[localVarOperationServerIndex]?.url;
18977
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18978
+ },
18979
+ };
18980
+ };
18981
+ /**
18982
+ * InviteLinkApi - factory interface
18983
+ * @export
18984
+ */
18985
+ export const InviteLinkApiFactory = function (configuration, basePath, axios) {
18986
+ const localVarFp = InviteLinkApiFp(configuration);
18987
+ return {
18988
+ /**
18989
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
18990
+ * @summary Create invite link
18991
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
18992
+ * @param {*} [options] Override http request option.
18993
+ * @throws {RequiredError}
18994
+ */
18995
+ inviteLinkControllerCreate(inviteLinkCreateInputDTO, options) {
18996
+ return localVarFp
18997
+ .inviteLinkControllerCreate(inviteLinkCreateInputDTO, options)
18998
+ .then((request) => request(axios, basePath));
18999
+ },
19000
+ /**
19001
+ * <br> OperationId: `InviteLinkControllerPreview`
19002
+ * @summary Preview
19003
+ * @param {string} token
19004
+ * @param {*} [options] Override http request option.
19005
+ * @throws {RequiredError}
19006
+ */
19007
+ inviteLinkControllerPreview(token, options) {
19008
+ return localVarFp.inviteLinkControllerPreview(token, options).then((request) => request(axios, basePath));
19009
+ },
19010
+ /**
19011
+ * <br> OperationId: `InviteLinkControllerRedeem`
19012
+ * @summary Redeem
19013
+ * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
19014
+ * @param {*} [options] Override http request option.
19015
+ * @throws {RequiredError}
19016
+ */
19017
+ inviteLinkControllerRedeem(redeemInputDTO, options) {
19018
+ return localVarFp.inviteLinkControllerRedeem(redeemInputDTO, options).then((request) => request(axios, basePath));
19019
+ },
19020
+ /**
19021
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
19022
+ * @summary Revoke
19023
+ * @param {string} id
19024
+ * @param {*} [options] Override http request option.
19025
+ * @throws {RequiredError}
19026
+ */
19027
+ inviteLinkControllerRevoke(id, options) {
19028
+ return localVarFp.inviteLinkControllerRevoke(id, options).then((request) => request(axios, basePath));
19029
+ },
19030
+ /**
19031
+ * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
19032
+ * @summary Search
19033
+ * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
19034
+ * @param {*} [options] Override http request option.
19035
+ * @throws {RequiredError}
19036
+ */
19037
+ inviteLinkControllerSearch(inviteLinkSearchInputDTO, options) {
19038
+ return localVarFp
19039
+ .inviteLinkControllerSearch(inviteLinkSearchInputDTO, options)
19040
+ .then((request) => request(axios, basePath));
19041
+ },
19042
+ };
19043
+ };
19044
+ /**
19045
+ * InviteLinkApi - object-oriented interface
19046
+ * @export
19047
+ * @class InviteLinkApi
19048
+ * @extends {BaseAPI}
19049
+ */
19050
+ export class InviteLinkApi extends BaseAPI {
19051
+ /**
19052
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
19053
+ * @summary Create invite link
19054
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
19055
+ * @param {*} [options] Override http request option.
19056
+ * @throws {RequiredError}
19057
+ * @memberof InviteLinkApi
19058
+ */
19059
+ inviteLinkControllerCreate(inviteLinkCreateInputDTO, options) {
19060
+ return InviteLinkApiFp(this.configuration)
19061
+ .inviteLinkControllerCreate(inviteLinkCreateInputDTO, options)
19062
+ .then((request) => request(this.axios, this.basePath));
19063
+ }
19064
+ /**
19065
+ * <br> OperationId: `InviteLinkControllerPreview`
19066
+ * @summary Preview
19067
+ * @param {string} token
19068
+ * @param {*} [options] Override http request option.
19069
+ * @throws {RequiredError}
19070
+ * @memberof InviteLinkApi
19071
+ */
19072
+ inviteLinkControllerPreview(token, options) {
19073
+ return InviteLinkApiFp(this.configuration)
19074
+ .inviteLinkControllerPreview(token, options)
19075
+ .then((request) => request(this.axios, this.basePath));
19076
+ }
19077
+ /**
19078
+ * <br> OperationId: `InviteLinkControllerRedeem`
19079
+ * @summary Redeem
19080
+ * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
19081
+ * @param {*} [options] Override http request option.
19082
+ * @throws {RequiredError}
19083
+ * @memberof InviteLinkApi
19084
+ */
19085
+ inviteLinkControllerRedeem(redeemInputDTO, options) {
19086
+ return InviteLinkApiFp(this.configuration)
19087
+ .inviteLinkControllerRedeem(redeemInputDTO, options)
19088
+ .then((request) => request(this.axios, this.basePath));
19089
+ }
19090
+ /**
19091
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
19092
+ * @summary Revoke
19093
+ * @param {string} id
19094
+ * @param {*} [options] Override http request option.
19095
+ * @throws {RequiredError}
19096
+ * @memberof InviteLinkApi
19097
+ */
19098
+ inviteLinkControllerRevoke(id, options) {
19099
+ return InviteLinkApiFp(this.configuration)
19100
+ .inviteLinkControllerRevoke(id, options)
19101
+ .then((request) => request(this.axios, this.basePath));
19102
+ }
19103
+ /**
19104
+ * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
19105
+ * @summary Search
19106
+ * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
19107
+ * @param {*} [options] Override http request option.
19108
+ * @throws {RequiredError}
19109
+ * @memberof InviteLinkApi
19110
+ */
19111
+ inviteLinkControllerSearch(inviteLinkSearchInputDTO, options) {
19112
+ return InviteLinkApiFp(this.configuration)
19113
+ .inviteLinkControllerSearch(inviteLinkSearchInputDTO, options)
19114
+ .then((request) => request(this.axios, this.basePath));
19115
+ }
19116
+ }
18507
19117
  //# sourceMappingURL=api.js.map