@takaro/apiclient 0.0.0-dev.f67f37d → 0.0.0-dev.f6aee21

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.
@@ -6905,6 +6905,475 @@ export interface InviteOutputDTO {
6905
6905
  */
6906
6906
  devServer: string;
6907
6907
  }
6908
+ /**
6909
+ *
6910
+ * @export
6911
+ * @interface InviteLinkCreateInputDTO
6912
+ */
6913
+ export interface InviteLinkCreateInputDTO {
6914
+ /**
6915
+ *
6916
+ * @type {Array<string>}
6917
+ * @memberof InviteLinkCreateInputDTO
6918
+ */
6919
+ roleIds?: Array<string>;
6920
+ /**
6921
+ *
6922
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
6923
+ * @memberof InviteLinkCreateInputDTO
6924
+ */
6925
+ expiresAt?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
6926
+ /**
6927
+ *
6928
+ * @type {number}
6929
+ * @memberof InviteLinkCreateInputDTO
6930
+ */
6931
+ maxUses?: number;
6932
+ }
6933
+ /**
6934
+ *
6935
+ * @export
6936
+ * @interface InviteLinkCreateResultDTO
6937
+ */
6938
+ export interface InviteLinkCreateResultDTO {
6939
+ /**
6940
+ *
6941
+ * @type {string}
6942
+ * @memberof InviteLinkCreateResultDTO
6943
+ */
6944
+ inviteUrl: string;
6945
+ /**
6946
+ *
6947
+ * @type {string}
6948
+ * @memberof InviteLinkCreateResultDTO
6949
+ */
6950
+ token: string;
6951
+ /**
6952
+ *
6953
+ * @type {string}
6954
+ * @memberof InviteLinkCreateResultDTO
6955
+ */
6956
+ id: string;
6957
+ /**
6958
+ *
6959
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
6960
+ * @memberof InviteLinkCreateResultDTO
6961
+ */
6962
+ createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
6963
+ /**
6964
+ *
6965
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
6966
+ * @memberof InviteLinkCreateResultDTO
6967
+ */
6968
+ updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
6969
+ /**
6970
+ *
6971
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
6972
+ * @memberof InviteLinkCreateResultDTO
6973
+ */
6974
+ expiresAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
6975
+ /**
6976
+ *
6977
+ * @type {number}
6978
+ * @memberof InviteLinkCreateResultDTO
6979
+ */
6980
+ maxUses?: number;
6981
+ /**
6982
+ *
6983
+ * @type {number}
6984
+ * @memberof InviteLinkCreateResultDTO
6985
+ */
6986
+ uses: number;
6987
+ /**
6988
+ *
6989
+ * @type {number}
6990
+ * @memberof InviteLinkCreateResultDTO
6991
+ */
6992
+ remaining?: number;
6993
+ /**
6994
+ *
6995
+ * @type {string}
6996
+ * @memberof InviteLinkCreateResultDTO
6997
+ */
6998
+ status: InviteLinkCreateResultDTOStatusEnum;
6999
+ /**
7000
+ *
7001
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
7002
+ * @memberof InviteLinkCreateResultDTO
7003
+ */
7004
+ revokedAt?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
7005
+ /**
7006
+ *
7007
+ * @type {string}
7008
+ * @memberof InviteLinkCreateResultDTO
7009
+ */
7010
+ createdBy?: string;
7011
+ /**
7012
+ *
7013
+ * @type {Array<InviteLinkRoleDTO>}
7014
+ * @memberof InviteLinkCreateResultDTO
7015
+ */
7016
+ roles: Array<InviteLinkRoleDTO>;
7017
+ }
7018
+
7019
+ export const InviteLinkCreateResultDTOStatusEnum = {
7020
+ Active: 'ACTIVE',
7021
+ Revoked: 'REVOKED',
7022
+ Expired: 'EXPIRED',
7023
+ Depleted: 'DEPLETED',
7024
+ } as const;
7025
+
7026
+ export type InviteLinkCreateResultDTOStatusEnum =
7027
+ (typeof InviteLinkCreateResultDTOStatusEnum)[keyof typeof InviteLinkCreateResultDTOStatusEnum];
7028
+
7029
+ /**
7030
+ *
7031
+ * @export
7032
+ * @interface InviteLinkCreateResultDTOAPI
7033
+ */
7034
+ export interface InviteLinkCreateResultDTOAPI {
7035
+ /**
7036
+ *
7037
+ * @type {InviteLinkCreateResultDTO}
7038
+ * @memberof InviteLinkCreateResultDTOAPI
7039
+ */
7040
+ data: InviteLinkCreateResultDTO;
7041
+ /**
7042
+ *
7043
+ * @type {MetadataOutput}
7044
+ * @memberof InviteLinkCreateResultDTOAPI
7045
+ */
7046
+ meta: MetadataOutput;
7047
+ }
7048
+ /**
7049
+ *
7050
+ * @export
7051
+ * @interface InviteLinkOutputDTO
7052
+ */
7053
+ export interface InviteLinkOutputDTO {
7054
+ /**
7055
+ *
7056
+ * @type {string}
7057
+ * @memberof InviteLinkOutputDTO
7058
+ */
7059
+ id: string;
7060
+ /**
7061
+ *
7062
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
7063
+ * @memberof InviteLinkOutputDTO
7064
+ */
7065
+ createdAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
7066
+ /**
7067
+ *
7068
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
7069
+ * @memberof InviteLinkOutputDTO
7070
+ */
7071
+ updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
7072
+ /**
7073
+ *
7074
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
7075
+ * @memberof InviteLinkOutputDTO
7076
+ */
7077
+ expiresAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
7078
+ /**
7079
+ *
7080
+ * @type {number}
7081
+ * @memberof InviteLinkOutputDTO
7082
+ */
7083
+ maxUses?: number;
7084
+ /**
7085
+ *
7086
+ * @type {number}
7087
+ * @memberof InviteLinkOutputDTO
7088
+ */
7089
+ uses: number;
7090
+ /**
7091
+ *
7092
+ * @type {number}
7093
+ * @memberof InviteLinkOutputDTO
7094
+ */
7095
+ remaining?: number;
7096
+ /**
7097
+ *
7098
+ * @type {string}
7099
+ * @memberof InviteLinkOutputDTO
7100
+ */
7101
+ status: InviteLinkOutputDTOStatusEnum;
7102
+ /**
7103
+ *
7104
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
7105
+ * @memberof InviteLinkOutputDTO
7106
+ */
7107
+ revokedAt?: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
7108
+ /**
7109
+ *
7110
+ * @type {string}
7111
+ * @memberof InviteLinkOutputDTO
7112
+ */
7113
+ createdBy?: string;
7114
+ /**
7115
+ *
7116
+ * @type {Array<InviteLinkRoleDTO>}
7117
+ * @memberof InviteLinkOutputDTO
7118
+ */
7119
+ roles: Array<InviteLinkRoleDTO>;
7120
+ }
7121
+
7122
+ export const InviteLinkOutputDTOStatusEnum = {
7123
+ Active: 'ACTIVE',
7124
+ Revoked: 'REVOKED',
7125
+ Expired: 'EXPIRED',
7126
+ Depleted: 'DEPLETED',
7127
+ } as const;
7128
+
7129
+ export type InviteLinkOutputDTOStatusEnum =
7130
+ (typeof InviteLinkOutputDTOStatusEnum)[keyof typeof InviteLinkOutputDTOStatusEnum];
7131
+
7132
+ /**
7133
+ *
7134
+ * @export
7135
+ * @interface InviteLinkOutputDTOAPI
7136
+ */
7137
+ export interface InviteLinkOutputDTOAPI {
7138
+ /**
7139
+ *
7140
+ * @type {InviteLinkOutputDTO}
7141
+ * @memberof InviteLinkOutputDTOAPI
7142
+ */
7143
+ data: InviteLinkOutputDTO;
7144
+ /**
7145
+ *
7146
+ * @type {MetadataOutput}
7147
+ * @memberof InviteLinkOutputDTOAPI
7148
+ */
7149
+ meta: MetadataOutput;
7150
+ }
7151
+ /**
7152
+ *
7153
+ * @export
7154
+ * @interface InviteLinkOutputArrayDTOAPI
7155
+ */
7156
+ export interface InviteLinkOutputArrayDTOAPI {
7157
+ /**
7158
+ *
7159
+ * @type {Array<InviteLinkOutputDTO>}
7160
+ * @memberof InviteLinkOutputArrayDTOAPI
7161
+ */
7162
+ data: Array<InviteLinkOutputDTO>;
7163
+ /**
7164
+ *
7165
+ * @type {MetadataOutput}
7166
+ * @memberof InviteLinkOutputArrayDTOAPI
7167
+ */
7168
+ meta: MetadataOutput;
7169
+ }
7170
+ /**
7171
+ *
7172
+ * @export
7173
+ * @interface InviteLinkPreviewDTO
7174
+ */
7175
+ export interface InviteLinkPreviewDTO {
7176
+ /**
7177
+ *
7178
+ * @type {InviteLinkPreviewDomainDTO}
7179
+ * @memberof InviteLinkPreviewDTO
7180
+ */
7181
+ domain: InviteLinkPreviewDomainDTO;
7182
+ /**
7183
+ *
7184
+ * @type {Array<InviteLinkPreviewRoleDTO>}
7185
+ * @memberof InviteLinkPreviewDTO
7186
+ */
7187
+ roles: Array<InviteLinkPreviewRoleDTO>;
7188
+ /**
7189
+ *
7190
+ * @type {string}
7191
+ * @memberof InviteLinkPreviewDTO
7192
+ */
7193
+ status: InviteLinkPreviewDTOStatusEnum;
7194
+ /**
7195
+ *
7196
+ * @type {NOTDOMAINSCOPEDTakaroModelDTOCreatedAt}
7197
+ * @memberof InviteLinkPreviewDTO
7198
+ */
7199
+ expiresAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
7200
+ /**
7201
+ *
7202
+ * @type {number}
7203
+ * @memberof InviteLinkPreviewDTO
7204
+ */
7205
+ remaining?: number;
7206
+ }
7207
+
7208
+ export const InviteLinkPreviewDTOStatusEnum = {
7209
+ Active: 'ACTIVE',
7210
+ Revoked: 'REVOKED',
7211
+ Expired: 'EXPIRED',
7212
+ Depleted: 'DEPLETED',
7213
+ } as const;
7214
+
7215
+ export type InviteLinkPreviewDTOStatusEnum =
7216
+ (typeof InviteLinkPreviewDTOStatusEnum)[keyof typeof InviteLinkPreviewDTOStatusEnum];
7217
+
7218
+ /**
7219
+ *
7220
+ * @export
7221
+ * @interface InviteLinkPreviewDTOAPI
7222
+ */
7223
+ export interface InviteLinkPreviewDTOAPI {
7224
+ /**
7225
+ *
7226
+ * @type {InviteLinkPreviewDTO}
7227
+ * @memberof InviteLinkPreviewDTOAPI
7228
+ */
7229
+ data: InviteLinkPreviewDTO;
7230
+ /**
7231
+ *
7232
+ * @type {MetadataOutput}
7233
+ * @memberof InviteLinkPreviewDTOAPI
7234
+ */
7235
+ meta: MetadataOutput;
7236
+ }
7237
+ /**
7238
+ *
7239
+ * @export
7240
+ * @interface InviteLinkPreviewDomainDTO
7241
+ */
7242
+ export interface InviteLinkPreviewDomainDTO {
7243
+ /**
7244
+ *
7245
+ * @type {string}
7246
+ * @memberof InviteLinkPreviewDomainDTO
7247
+ */
7248
+ id: string;
7249
+ /**
7250
+ *
7251
+ * @type {string}
7252
+ * @memberof InviteLinkPreviewDomainDTO
7253
+ */
7254
+ name: string;
7255
+ }
7256
+ /**
7257
+ *
7258
+ * @export
7259
+ * @interface InviteLinkPreviewRoleDTO
7260
+ */
7261
+ export interface InviteLinkPreviewRoleDTO {
7262
+ /**
7263
+ *
7264
+ * @type {string}
7265
+ * @memberof InviteLinkPreviewRoleDTO
7266
+ */
7267
+ id: string;
7268
+ /**
7269
+ *
7270
+ * @type {string}
7271
+ * @memberof InviteLinkPreviewRoleDTO
7272
+ */
7273
+ name: string;
7274
+ }
7275
+ /**
7276
+ *
7277
+ * @export
7278
+ * @interface InviteLinkRoleDTO
7279
+ */
7280
+ export interface InviteLinkRoleDTO {
7281
+ /**
7282
+ *
7283
+ * @type {string}
7284
+ * @memberof InviteLinkRoleDTO
7285
+ */
7286
+ roleId: string;
7287
+ /**
7288
+ *
7289
+ * @type {string}
7290
+ * @memberof InviteLinkRoleDTO
7291
+ */
7292
+ name: string;
7293
+ }
7294
+ /**
7295
+ *
7296
+ * @export
7297
+ * @interface InviteLinkSearchInputDTO
7298
+ */
7299
+ export interface InviteLinkSearchInputDTO {
7300
+ /**
7301
+ *
7302
+ * @type {string}
7303
+ * @memberof InviteLinkSearchInputDTO
7304
+ */
7305
+ sortBy?: string;
7306
+ /**
7307
+ *
7308
+ * @type {any}
7309
+ * @memberof InviteLinkSearchInputDTO
7310
+ */
7311
+ filters?: any;
7312
+ /**
7313
+ *
7314
+ * @type {any}
7315
+ * @memberof InviteLinkSearchInputDTO
7316
+ */
7317
+ search?: any;
7318
+ /**
7319
+ *
7320
+ * @type {any}
7321
+ * @memberof InviteLinkSearchInputDTO
7322
+ */
7323
+ greaterThan?: any;
7324
+ /**
7325
+ *
7326
+ * @type {any}
7327
+ * @memberof InviteLinkSearchInputDTO
7328
+ */
7329
+ lessThan?: any;
7330
+ /**
7331
+ *
7332
+ * @type {number}
7333
+ * @memberof InviteLinkSearchInputDTO
7334
+ */
7335
+ page?: number;
7336
+ /**
7337
+ *
7338
+ * @type {number}
7339
+ * @memberof InviteLinkSearchInputDTO
7340
+ */
7341
+ limit?: number;
7342
+ /**
7343
+ *
7344
+ * @type {string}
7345
+ * @memberof InviteLinkSearchInputDTO
7346
+ */
7347
+ sortDirection?: InviteLinkSearchInputDTOSortDirectionEnum;
7348
+ /**
7349
+ *
7350
+ * @type {Array<string>}
7351
+ * @memberof InviteLinkSearchInputDTO
7352
+ */
7353
+ extend?: Array<string>;
7354
+ }
7355
+
7356
+ export const InviteLinkSearchInputDTOSortDirectionEnum = {
7357
+ Asc: 'asc',
7358
+ Desc: 'desc',
7359
+ } as const;
7360
+
7361
+ export type InviteLinkSearchInputDTOSortDirectionEnum =
7362
+ (typeof InviteLinkSearchInputDTOSortDirectionEnum)[keyof typeof InviteLinkSearchInputDTOSortDirectionEnum];
7363
+
7364
+ /**
7365
+ *
7366
+ * @export
7367
+ * @interface RedeemInputDTO
7368
+ */
7369
+ export interface RedeemInputDTO {
7370
+ /**
7371
+ *
7372
+ * @type {string}
7373
+ * @memberof RedeemInputDTO
7374
+ */
7375
+ token: string;
7376
+ }
6908
7377
  /**
6909
7378
  *
6910
7379
  * @export
@@ -14097,6 +14566,25 @@ export interface ShopDeadStockItemDTO {
14097
14566
  */
14098
14567
  daysSinceLastSale?: number;
14099
14568
  }
14569
+ /**
14570
+ *
14571
+ * @export
14572
+ * @interface ShopImportFailureDTO
14573
+ */
14574
+ export interface ShopImportFailureDTO {
14575
+ /**
14576
+ *
14577
+ * @type {string}
14578
+ * @memberof ShopImportFailureDTO
14579
+ */
14580
+ name: string;
14581
+ /**
14582
+ *
14583
+ * @type {string}
14584
+ * @memberof ShopImportFailureDTO
14585
+ */
14586
+ reason: string;
14587
+ }
14100
14588
  /**
14101
14589
  *
14102
14590
  * @export
@@ -14122,6 +14610,44 @@ export interface ShopImportOptions {
14122
14610
  */
14123
14611
  gameServerId: string;
14124
14612
  }
14613
+ /**
14614
+ *
14615
+ * @export
14616
+ * @interface ShopImportResultDTO
14617
+ */
14618
+ export interface ShopImportResultDTO {
14619
+ /**
14620
+ *
14621
+ * @type {number}
14622
+ * @memberof ShopImportResultDTO
14623
+ */
14624
+ imported: number;
14625
+ /**
14626
+ *
14627
+ * @type {Array<ShopImportFailureDTO>}
14628
+ * @memberof ShopImportResultDTO
14629
+ */
14630
+ failed: Array<ShopImportFailureDTO>;
14631
+ }
14632
+ /**
14633
+ *
14634
+ * @export
14635
+ * @interface ShopImportResultDTOAPI
14636
+ */
14637
+ export interface ShopImportResultDTOAPI {
14638
+ /**
14639
+ *
14640
+ * @type {ShopImportResultDTO}
14641
+ * @memberof ShopImportResultDTOAPI
14642
+ */
14643
+ data: ShopImportResultDTO;
14644
+ /**
14645
+ *
14646
+ * @type {MetadataOutput}
14647
+ * @memberof ShopImportResultDTOAPI
14648
+ */
14649
+ meta: MetadataOutput;
14650
+ }
14125
14651
  /**
14126
14652
  *
14127
14653
  * @export
@@ -17208,6 +17734,12 @@ export interface UserOutputDTO {
17208
17734
  * @memberof UserOutputDTO
17209
17735
  */
17210
17736
  updatedAt: NOTDOMAINSCOPEDTakaroModelDTOCreatedAt;
17737
+ /**
17738
+ *
17739
+ * @type {string}
17740
+ * @memberof UserOutputDTO
17741
+ */
17742
+ inviteLinkId?: string;
17211
17743
  }
17212
17744
  /**
17213
17745
  *
@@ -17306,6 +17838,31 @@ export interface UserOutputWithRolesDTO {
17306
17838
  * @memberof UserOutputWithRolesDTO
17307
17839
  */
17308
17840
  isDashboardUser: boolean;
17841
+ /**
17842
+ *
17843
+ * @type {string}
17844
+ * @memberof UserOutputWithRolesDTO
17845
+ */
17846
+ inviteLinkId?: string;
17847
+ }
17848
+ /**
17849
+ *
17850
+ * @export
17851
+ * @interface UserOutputWithRolesDTOAPI
17852
+ */
17853
+ export interface UserOutputWithRolesDTOAPI {
17854
+ /**
17855
+ *
17856
+ * @type {UserOutputWithRolesDTO}
17857
+ * @memberof UserOutputWithRolesDTOAPI
17858
+ */
17859
+ data: UserOutputWithRolesDTO;
17860
+ /**
17861
+ *
17862
+ * @type {MetadataOutput}
17863
+ * @memberof UserOutputWithRolesDTOAPI
17864
+ */
17865
+ meta: MetadataOutput;
17309
17866
  }
17310
17867
  /**
17311
17868
  *
@@ -38857,7 +39414,7 @@ export const ShopListingApiFp = function (configuration?: Configuration) {
38857
39414
  */
38858
39415
  async shopListingControllerImportListings(
38859
39416
  options?: RawAxiosRequestConfig,
38860
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>> {
39417
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShopImportResultDTOAPI>> {
38861
39418
  const localVarAxiosArgs = await localVarAxiosParamCreator.shopListingControllerImportListings(options);
38862
39419
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
38863
39420
  const localVarOperationServerBasePath =
@@ -38980,7 +39537,7 @@ export const ShopListingApiFactory = function (
38980
39537
  * @param {*} [options] Override http request option.
38981
39538
  * @throws {RequiredError}
38982
39539
  */
38983
- shopListingControllerImportListings(options?: RawAxiosRequestConfig): AxiosPromise<APIOutput> {
39540
+ shopListingControllerImportListings(options?: RawAxiosRequestConfig): AxiosPromise<ShopImportResultDTOAPI> {
38984
39541
  return localVarFp.shopListingControllerImportListings(options).then((request) => request(axios, basePath));
38985
39542
  },
38986
39543
  /**
@@ -42171,3 +42728,474 @@ export class VariableApi extends BaseAPI {
42171
42728
  .then((request) => request(this.axios, this.basePath));
42172
42729
  }
42173
42730
  }
42731
+
42732
+ /**
42733
+ * InviteLinkApi - axios parameter creator
42734
+ * @export
42735
+ */
42736
+ export const InviteLinkApiAxiosParamCreator = function (configuration?: Configuration) {
42737
+ return {
42738
+ /**
42739
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
42740
+ * @summary Create invite link
42741
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
42742
+ * @param {*} [options] Override http request option.
42743
+ * @throws {RequiredError}
42744
+ */
42745
+ inviteLinkControllerCreate: async (
42746
+ inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
42747
+ options: RawAxiosRequestConfig = {},
42748
+ ): Promise<RequestArgs> => {
42749
+ const localVarPath = `/invite-link`;
42750
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42751
+ let baseOptions;
42752
+ if (configuration) {
42753
+ baseOptions = configuration.baseOptions;
42754
+ }
42755
+
42756
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
42757
+ const localVarHeaderParameter = {} as any;
42758
+ const localVarQueryParameter = {} as any;
42759
+
42760
+ // authentication domainAuth required
42761
+
42762
+ localVarHeaderParameter['Content-Type'] = 'application/json';
42763
+
42764
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
42765
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
42766
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
42767
+ localVarRequestOptions.data = serializeDataIfNeeded(
42768
+ inviteLinkCreateInputDTO,
42769
+ localVarRequestOptions,
42770
+ configuration,
42771
+ );
42772
+
42773
+ return {
42774
+ url: toPathString(localVarUrlObj),
42775
+ options: localVarRequestOptions,
42776
+ };
42777
+ },
42778
+ /**
42779
+ * <br> OperationId: `InviteLinkControllerPreview`
42780
+ * @summary Preview
42781
+ * @param {string} token
42782
+ * @param {*} [options] Override http request option.
42783
+ * @throws {RequiredError}
42784
+ */
42785
+ inviteLinkControllerPreview: async (token: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
42786
+ assertParamExists('inviteLinkControllerPreview', 'token', token);
42787
+ const localVarPath = `/invite-link/redeem/{token}`.replace(`{${'token'}}`, encodeURIComponent(String(token)));
42788
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42789
+ let baseOptions;
42790
+ if (configuration) {
42791
+ baseOptions = configuration.baseOptions;
42792
+ }
42793
+
42794
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
42795
+ const localVarHeaderParameter = {} as any;
42796
+ const localVarQueryParameter = {} as any;
42797
+
42798
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
42799
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
42800
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
42801
+
42802
+ return {
42803
+ url: toPathString(localVarUrlObj),
42804
+ options: localVarRequestOptions,
42805
+ };
42806
+ },
42807
+ /**
42808
+ * <br> OperationId: `InviteLinkControllerRedeem`
42809
+ * @summary Redeem
42810
+ * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
42811
+ * @param {*} [options] Override http request option.
42812
+ * @throws {RequiredError}
42813
+ */
42814
+ inviteLinkControllerRedeem: async (
42815
+ redeemInputDTO?: RedeemInputDTO,
42816
+ options: RawAxiosRequestConfig = {},
42817
+ ): Promise<RequestArgs> => {
42818
+ const localVarPath = `/invite-link/redeem`;
42819
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42820
+ let baseOptions;
42821
+ if (configuration) {
42822
+ baseOptions = configuration.baseOptions;
42823
+ }
42824
+
42825
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
42826
+ const localVarHeaderParameter = {} as any;
42827
+ const localVarQueryParameter = {} as any;
42828
+
42829
+ localVarHeaderParameter['Content-Type'] = 'application/json';
42830
+
42831
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
42832
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
42833
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
42834
+ localVarRequestOptions.data = serializeDataIfNeeded(redeemInputDTO, localVarRequestOptions, configuration);
42835
+
42836
+ return {
42837
+ url: toPathString(localVarUrlObj),
42838
+ options: localVarRequestOptions,
42839
+ };
42840
+ },
42841
+ /**
42842
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
42843
+ * @summary Revoke
42844
+ * @param {string} id
42845
+ * @param {*} [options] Override http request option.
42846
+ * @throws {RequiredError}
42847
+ */
42848
+ inviteLinkControllerRevoke: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
42849
+ assertParamExists('inviteLinkControllerRevoke', 'id', id);
42850
+ const localVarPath = `/invite-link/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
42851
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42852
+ let baseOptions;
42853
+ if (configuration) {
42854
+ baseOptions = configuration.baseOptions;
42855
+ }
42856
+
42857
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
42858
+ const localVarHeaderParameter = {} as any;
42859
+ const localVarQueryParameter = {} as any;
42860
+
42861
+ // authentication domainAuth required
42862
+
42863
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
42864
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
42865
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
42866
+
42867
+ return {
42868
+ url: toPathString(localVarUrlObj),
42869
+ options: localVarRequestOptions,
42870
+ };
42871
+ },
42872
+ /**
42873
+ * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
42874
+ * @summary Search
42875
+ * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
42876
+ * @param {*} [options] Override http request option.
42877
+ * @throws {RequiredError}
42878
+ */
42879
+ inviteLinkControllerSearch: async (
42880
+ inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
42881
+ options: RawAxiosRequestConfig = {},
42882
+ ): Promise<RequestArgs> => {
42883
+ const localVarPath = `/invite-link/search`;
42884
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42885
+ let baseOptions;
42886
+ if (configuration) {
42887
+ baseOptions = configuration.baseOptions;
42888
+ }
42889
+
42890
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
42891
+ const localVarHeaderParameter = {} as any;
42892
+ const localVarQueryParameter = {} as any;
42893
+
42894
+ // authentication domainAuth required
42895
+
42896
+ localVarHeaderParameter['Content-Type'] = 'application/json';
42897
+
42898
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
42899
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
42900
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
42901
+ localVarRequestOptions.data = serializeDataIfNeeded(
42902
+ inviteLinkSearchInputDTO,
42903
+ localVarRequestOptions,
42904
+ configuration,
42905
+ );
42906
+
42907
+ return {
42908
+ url: toPathString(localVarUrlObj),
42909
+ options: localVarRequestOptions,
42910
+ };
42911
+ },
42912
+ };
42913
+ };
42914
+
42915
+ /**
42916
+ * InviteLinkApi - functional programming interface
42917
+ * @export
42918
+ */
42919
+ export const InviteLinkApiFp = function (configuration?: Configuration) {
42920
+ const localVarAxiosParamCreator = InviteLinkApiAxiosParamCreator(configuration);
42921
+ return {
42922
+ /**
42923
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
42924
+ * @summary Create invite link
42925
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
42926
+ * @param {*} [options] Override http request option.
42927
+ * @throws {RequiredError}
42928
+ */
42929
+ async inviteLinkControllerCreate(
42930
+ inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
42931
+ options?: RawAxiosRequestConfig,
42932
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteLinkCreateResultDTOAPI>> {
42933
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerCreate(
42934
+ inviteLinkCreateInputDTO,
42935
+ options,
42936
+ );
42937
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
42938
+ const localVarOperationServerBasePath =
42939
+ operationServerMap['InviteLinkApi.inviteLinkControllerCreate']?.[localVarOperationServerIndex]?.url;
42940
+ return (axios, basePath) =>
42941
+ createRequestFunction(
42942
+ localVarAxiosArgs,
42943
+ globalAxios,
42944
+ BASE_PATH,
42945
+ configuration,
42946
+ )(axios, localVarOperationServerBasePath || basePath);
42947
+ },
42948
+ /**
42949
+ * <br> OperationId: `InviteLinkControllerPreview`
42950
+ * @summary Preview
42951
+ * @param {string} token
42952
+ * @param {*} [options] Override http request option.
42953
+ * @throws {RequiredError}
42954
+ */
42955
+ async inviteLinkControllerPreview(
42956
+ token: string,
42957
+ options?: RawAxiosRequestConfig,
42958
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteLinkPreviewDTOAPI>> {
42959
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerPreview(token, options);
42960
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
42961
+ const localVarOperationServerBasePath =
42962
+ operationServerMap['InviteLinkApi.inviteLinkControllerPreview']?.[localVarOperationServerIndex]?.url;
42963
+ return (axios, basePath) =>
42964
+ createRequestFunction(
42965
+ localVarAxiosArgs,
42966
+ globalAxios,
42967
+ BASE_PATH,
42968
+ configuration,
42969
+ )(axios, localVarOperationServerBasePath || basePath);
42970
+ },
42971
+ /**
42972
+ * <br> OperationId: `InviteLinkControllerRedeem`
42973
+ * @summary Redeem
42974
+ * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
42975
+ * @param {*} [options] Override http request option.
42976
+ * @throws {RequiredError}
42977
+ */
42978
+ async inviteLinkControllerRedeem(
42979
+ redeemInputDTO?: RedeemInputDTO,
42980
+ options?: RawAxiosRequestConfig,
42981
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOutputWithRolesDTOAPI>> {
42982
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerRedeem(redeemInputDTO, options);
42983
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
42984
+ const localVarOperationServerBasePath =
42985
+ operationServerMap['InviteLinkApi.inviteLinkControllerRedeem']?.[localVarOperationServerIndex]?.url;
42986
+ return (axios, basePath) =>
42987
+ createRequestFunction(
42988
+ localVarAxiosArgs,
42989
+ globalAxios,
42990
+ BASE_PATH,
42991
+ configuration,
42992
+ )(axios, localVarOperationServerBasePath || basePath);
42993
+ },
42994
+ /**
42995
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
42996
+ * @summary Revoke
42997
+ * @param {string} id
42998
+ * @param {*} [options] Override http request option.
42999
+ * @throws {RequiredError}
43000
+ */
43001
+ async inviteLinkControllerRevoke(
43002
+ id: string,
43003
+ options?: RawAxiosRequestConfig,
43004
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>> {
43005
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerRevoke(id, options);
43006
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
43007
+ const localVarOperationServerBasePath =
43008
+ operationServerMap['InviteLinkApi.inviteLinkControllerRevoke']?.[localVarOperationServerIndex]?.url;
43009
+ return (axios, basePath) =>
43010
+ createRequestFunction(
43011
+ localVarAxiosArgs,
43012
+ globalAxios,
43013
+ BASE_PATH,
43014
+ configuration,
43015
+ )(axios, localVarOperationServerBasePath || basePath);
43016
+ },
43017
+ /**
43018
+ * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
43019
+ * @summary Search
43020
+ * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
43021
+ * @param {*} [options] Override http request option.
43022
+ * @throws {RequiredError}
43023
+ */
43024
+ async inviteLinkControllerSearch(
43025
+ inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
43026
+ options?: RawAxiosRequestConfig,
43027
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteLinkOutputArrayDTOAPI>> {
43028
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteLinkControllerSearch(
43029
+ inviteLinkSearchInputDTO,
43030
+ options,
43031
+ );
43032
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
43033
+ const localVarOperationServerBasePath =
43034
+ operationServerMap['InviteLinkApi.inviteLinkControllerSearch']?.[localVarOperationServerIndex]?.url;
43035
+ return (axios, basePath) =>
43036
+ createRequestFunction(
43037
+ localVarAxiosArgs,
43038
+ globalAxios,
43039
+ BASE_PATH,
43040
+ configuration,
43041
+ )(axios, localVarOperationServerBasePath || basePath);
43042
+ },
43043
+ };
43044
+ };
43045
+
43046
+ /**
43047
+ * InviteLinkApi - factory interface
43048
+ * @export
43049
+ */
43050
+ export const InviteLinkApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
43051
+ const localVarFp = InviteLinkApiFp(configuration);
43052
+ return {
43053
+ /**
43054
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
43055
+ * @summary Create invite link
43056
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
43057
+ * @param {*} [options] Override http request option.
43058
+ * @throws {RequiredError}
43059
+ */
43060
+ inviteLinkControllerCreate(
43061
+ inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
43062
+ options?: RawAxiosRequestConfig,
43063
+ ): AxiosPromise<InviteLinkCreateResultDTOAPI> {
43064
+ return localVarFp
43065
+ .inviteLinkControllerCreate(inviteLinkCreateInputDTO, options)
43066
+ .then((request) => request(axios, basePath));
43067
+ },
43068
+ /**
43069
+ * <br> OperationId: `InviteLinkControllerPreview`
43070
+ * @summary Preview
43071
+ * @param {string} token
43072
+ * @param {*} [options] Override http request option.
43073
+ * @throws {RequiredError}
43074
+ */
43075
+ inviteLinkControllerPreview(token: string, options?: RawAxiosRequestConfig): AxiosPromise<InviteLinkPreviewDTOAPI> {
43076
+ return localVarFp.inviteLinkControllerPreview(token, options).then((request) => request(axios, basePath));
43077
+ },
43078
+ /**
43079
+ * <br> OperationId: `InviteLinkControllerRedeem`
43080
+ * @summary Redeem
43081
+ * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
43082
+ * @param {*} [options] Override http request option.
43083
+ * @throws {RequiredError}
43084
+ */
43085
+ inviteLinkControllerRedeem(
43086
+ redeemInputDTO?: RedeemInputDTO,
43087
+ options?: RawAxiosRequestConfig,
43088
+ ): AxiosPromise<UserOutputWithRolesDTOAPI> {
43089
+ return localVarFp.inviteLinkControllerRedeem(redeemInputDTO, options).then((request) => request(axios, basePath));
43090
+ },
43091
+ /**
43092
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
43093
+ * @summary Revoke
43094
+ * @param {string} id
43095
+ * @param {*} [options] Override http request option.
43096
+ * @throws {RequiredError}
43097
+ */
43098
+ inviteLinkControllerRevoke(id: string, options?: RawAxiosRequestConfig): AxiosPromise<APIOutput> {
43099
+ return localVarFp.inviteLinkControllerRevoke(id, options).then((request) => request(axios, basePath));
43100
+ },
43101
+ /**
43102
+ * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
43103
+ * @summary Search
43104
+ * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
43105
+ * @param {*} [options] Override http request option.
43106
+ * @throws {RequiredError}
43107
+ */
43108
+ inviteLinkControllerSearch(
43109
+ inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
43110
+ options?: RawAxiosRequestConfig,
43111
+ ): AxiosPromise<InviteLinkOutputArrayDTOAPI> {
43112
+ return localVarFp
43113
+ .inviteLinkControllerSearch(inviteLinkSearchInputDTO, options)
43114
+ .then((request) => request(axios, basePath));
43115
+ },
43116
+ };
43117
+ };
43118
+
43119
+ /**
43120
+ * InviteLinkApi - object-oriented interface
43121
+ * @export
43122
+ * @class InviteLinkApi
43123
+ * @extends {BaseAPI}
43124
+ */
43125
+ export class InviteLinkApi extends BaseAPI {
43126
+ /**
43127
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerCreate`
43128
+ * @summary Create invite link
43129
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
43130
+ * @param {*} [options] Override http request option.
43131
+ * @throws {RequiredError}
43132
+ * @memberof InviteLinkApi
43133
+ */
43134
+ public inviteLinkControllerCreate(
43135
+ inviteLinkCreateInputDTO?: InviteLinkCreateInputDTO,
43136
+ options?: RawAxiosRequestConfig,
43137
+ ) {
43138
+ return InviteLinkApiFp(this.configuration)
43139
+ .inviteLinkControllerCreate(inviteLinkCreateInputDTO, options)
43140
+ .then((request) => request(this.axios, this.basePath));
43141
+ }
43142
+
43143
+ /**
43144
+ * <br> OperationId: `InviteLinkControllerPreview`
43145
+ * @summary Preview
43146
+ * @param {string} token
43147
+ * @param {*} [options] Override http request option.
43148
+ * @throws {RequiredError}
43149
+ * @memberof InviteLinkApi
43150
+ */
43151
+ public inviteLinkControllerPreview(token: string, options?: RawAxiosRequestConfig) {
43152
+ return InviteLinkApiFp(this.configuration)
43153
+ .inviteLinkControllerPreview(token, options)
43154
+ .then((request) => request(this.axios, this.basePath));
43155
+ }
43156
+
43157
+ /**
43158
+ * <br> OperationId: `InviteLinkControllerRedeem`
43159
+ * @summary Redeem
43160
+ * @param {RedeemInputDTO} [redeemInputDTO] RedeemInputDTO
43161
+ * @param {*} [options] Override http request option.
43162
+ * @throws {RequiredError}
43163
+ * @memberof InviteLinkApi
43164
+ */
43165
+ public inviteLinkControllerRedeem(redeemInputDTO?: RedeemInputDTO, options?: RawAxiosRequestConfig) {
43166
+ return InviteLinkApiFp(this.configuration)
43167
+ .inviteLinkControllerRedeem(redeemInputDTO, options)
43168
+ .then((request) => request(this.axios, this.basePath));
43169
+ }
43170
+
43171
+ /**
43172
+ * Required permissions: `MANAGE_USERS`, `MANAGE_ROLES`<br> OperationId: `InviteLinkControllerRevoke`
43173
+ * @summary Revoke
43174
+ * @param {string} id
43175
+ * @param {*} [options] Override http request option.
43176
+ * @throws {RequiredError}
43177
+ * @memberof InviteLinkApi
43178
+ */
43179
+ public inviteLinkControllerRevoke(id: string, options?: RawAxiosRequestConfig) {
43180
+ return InviteLinkApiFp(this.configuration)
43181
+ .inviteLinkControllerRevoke(id, options)
43182
+ .then((request) => request(this.axios, this.basePath));
43183
+ }
43184
+
43185
+ /**
43186
+ * Required permissions: `MANAGE_USERS`<br> OperationId: `InviteLinkControllerSearch`
43187
+ * @summary Search
43188
+ * @param {InviteLinkSearchInputDTO} [inviteLinkSearchInputDTO] InviteLinkSearchInputDTO
43189
+ * @param {*} [options] Override http request option.
43190
+ * @throws {RequiredError}
43191
+ * @memberof InviteLinkApi
43192
+ */
43193
+ public inviteLinkControllerSearch(
43194
+ inviteLinkSearchInputDTO?: InviteLinkSearchInputDTO,
43195
+ options?: RawAxiosRequestConfig,
43196
+ ) {
43197
+ return InviteLinkApiFp(this.configuration)
43198
+ .inviteLinkControllerSearch(inviteLinkSearchInputDTO, options)
43199
+ .then((request) => request(this.axios, this.basePath));
43200
+ }
43201
+ }