@tennac-booking/sdk 1.0.62 → 1.0.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.61
7
+ * The version of the OpenAPI document: 1.0.63
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -73,6 +73,25 @@ export interface AddClubMemberRequest {
73
73
  */
74
74
  'rights'?: Array<string>;
75
75
  }
76
+ /**
77
+ *
78
+ * @export
79
+ * @interface AddOrganizationRequest
80
+ */
81
+ export interface AddOrganizationRequest {
82
+ /**
83
+ *
84
+ * @type {string}
85
+ * @memberof AddOrganizationRequest
86
+ */
87
+ 'organizationEmail'?: string;
88
+ /**
89
+ *
90
+ * @type {string}
91
+ * @memberof AddOrganizationRequest
92
+ */
93
+ 'organizationId'?: string;
94
+ }
76
95
  /**
77
96
  *
78
97
  * @export
@@ -2453,6 +2472,37 @@ export interface GetClubUsersById200Response {
2453
2472
  */
2454
2473
  'users': Array<any>;
2455
2474
  }
2475
+ /**
2476
+ *
2477
+ * @export
2478
+ * @interface GetClubsWithVerificationDomains200ResponseInner
2479
+ */
2480
+ export interface GetClubsWithVerificationDomains200ResponseInner {
2481
+ /**
2482
+ *
2483
+ * @type {Array<string>}
2484
+ * @memberof GetClubsWithVerificationDomains200ResponseInner
2485
+ */
2486
+ 'allowedEmailDomains': Array<string>;
2487
+ /**
2488
+ *
2489
+ * @type {string}
2490
+ * @memberof GetClubsWithVerificationDomains200ResponseInner
2491
+ */
2492
+ 'address'?: string | null;
2493
+ /**
2494
+ *
2495
+ * @type {string}
2496
+ * @memberof GetClubsWithVerificationDomains200ResponseInner
2497
+ */
2498
+ 'name': string;
2499
+ /**
2500
+ *
2501
+ * @type {string}
2502
+ * @memberof GetClubsWithVerificationDomains200ResponseInner
2503
+ */
2504
+ 'clubId': string;
2505
+ }
2456
2506
  /**
2457
2507
  *
2458
2508
  * @export
@@ -2824,6 +2874,36 @@ export interface IUserAttributes {
2824
2874
  * @memberof IUserAttributes
2825
2875
  */
2826
2876
  'profilePicture'?: string;
2877
+ /**
2878
+ *
2879
+ * @type {string}
2880
+ * @memberof IUserAttributes
2881
+ */
2882
+ 'resetPasswordToken'?: string;
2883
+ /**
2884
+ *
2885
+ * @type {string}
2886
+ * @memberof IUserAttributes
2887
+ */
2888
+ 'resetPasswordExpires'?: string;
2889
+ /**
2890
+ *
2891
+ * @type {string}
2892
+ * @memberof IUserAttributes
2893
+ */
2894
+ 'emailVerificationToken'?: string;
2895
+ /**
2896
+ *
2897
+ * @type {string}
2898
+ * @memberof IUserAttributes
2899
+ */
2900
+ 'emailVerificationExpires'?: string;
2901
+ /**
2902
+ *
2903
+ * @type {Array<IUserAttributesOrganizationsInner>}
2904
+ * @memberof IUserAttributes
2905
+ */
2906
+ 'organizations'?: Array<IUserAttributesOrganizationsInner>;
2827
2907
  /**
2828
2908
  *
2829
2909
  * @type {boolean}
@@ -2905,6 +2985,43 @@ export interface IUserAttributes {
2905
2985
  }
2906
2986
 
2907
2987
 
2988
+ /**
2989
+ *
2990
+ * @export
2991
+ * @interface IUserAttributesOrganizationsInner
2992
+ */
2993
+ export interface IUserAttributesOrganizationsInner {
2994
+ /**
2995
+ *
2996
+ * @type {string}
2997
+ * @memberof IUserAttributesOrganizationsInner
2998
+ */
2999
+ 'verificationExpires'?: string;
3000
+ /**
3001
+ *
3002
+ * @type {string}
3003
+ * @memberof IUserAttributesOrganizationsInner
3004
+ */
3005
+ 'verificationToken'?: string;
3006
+ /**
3007
+ *
3008
+ * @type {boolean}
3009
+ * @memberof IUserAttributesOrganizationsInner
3010
+ */
3011
+ 'verified'?: boolean;
3012
+ /**
3013
+ *
3014
+ * @type {string}
3015
+ * @memberof IUserAttributesOrganizationsInner
3016
+ */
3017
+ 'orgEmail': string;
3018
+ /**
3019
+ *
3020
+ * @type {string}
3021
+ * @memberof IUserAttributesOrganizationsInner
3022
+ */
3023
+ 'clubId': string;
3024
+ }
2908
3025
  /**
2909
3026
  *
2910
3027
  * @export
@@ -3986,7 +4103,117 @@ export interface RegisterRequestBody {
3986
4103
  * @memberof RegisterRequestBody
3987
4104
  */
3988
4105
  'profilePicture'?: string;
4106
+ /**
4107
+ *
4108
+ * @type {RegisterRequestBodyLocation}
4109
+ * @memberof RegisterRequestBody
4110
+ */
4111
+ 'location'?: RegisterRequestBodyLocation;
4112
+ /**
4113
+ *
4114
+ * @type {string}
4115
+ * @memberof RegisterRequestBody
4116
+ */
4117
+ 'organizationId'?: string;
4118
+ /**
4119
+ *
4120
+ * @type {string}
4121
+ * @memberof RegisterRequestBody
4122
+ */
4123
+ 'organizationEmail'?: string;
3989
4124
  }
4125
+ /**
4126
+ *
4127
+ * @export
4128
+ * @interface RegisterRequestBodyLocation
4129
+ */
4130
+ export interface RegisterRequestBodyLocation {
4131
+ /**
4132
+ *
4133
+ * @type {Array<number>}
4134
+ * @memberof RegisterRequestBodyLocation
4135
+ */
4136
+ 'coordinates': Array<number>;
4137
+ /**
4138
+ *
4139
+ * @type {string}
4140
+ * @memberof RegisterRequestBodyLocation
4141
+ */
4142
+ 'mapboxId'?: string;
4143
+ /**
4144
+ *
4145
+ * @type {Array<string>}
4146
+ * @memberof RegisterRequestBodyLocation
4147
+ */
4148
+ 'mapboxPlaceType'?: Array<string>;
4149
+ /**
4150
+ *
4151
+ * @type {string}
4152
+ * @memberof RegisterRequestBodyLocation
4153
+ */
4154
+ 'mapboxPlaceName'?: string;
4155
+ /**
4156
+ *
4157
+ * @type {string}
4158
+ * @memberof RegisterRequestBodyLocation
4159
+ */
4160
+ 'mapboxAddress'?: string;
4161
+ /**
4162
+ *
4163
+ * @type {Array<{ [key: string]: any; }>}
4164
+ * @memberof RegisterRequestBodyLocation
4165
+ */
4166
+ 'mapboxContext'?: Array<{ [key: string]: any; }>;
4167
+ /**
4168
+ * Construct a type with a set of properties K of type T
4169
+ * @type {{ [key: string]: object; }}
4170
+ * @memberof RegisterRequestBodyLocation
4171
+ */
4172
+ 'mapboxRaw'?: { [key: string]: object; };
4173
+ /**
4174
+ *
4175
+ * @type {string}
4176
+ * @memberof RegisterRequestBodyLocation
4177
+ */
4178
+ 'city'?: string;
4179
+ /**
4180
+ *
4181
+ * @type {string}
4182
+ * @memberof RegisterRequestBodyLocation
4183
+ */
4184
+ 'country'?: string;
4185
+ /**
4186
+ *
4187
+ * @type {string}
4188
+ * @memberof RegisterRequestBodyLocation
4189
+ */
4190
+ 'postalCode'?: string;
4191
+ /**
4192
+ *
4193
+ * @type {string}
4194
+ * @memberof RegisterRequestBodyLocation
4195
+ */
4196
+ 'state'?: string;
4197
+ /**
4198
+ *
4199
+ * @type {string}
4200
+ * @memberof RegisterRequestBodyLocation
4201
+ */
4202
+ 'address'?: string;
4203
+ /**
4204
+ *
4205
+ * @type {string}
4206
+ * @memberof RegisterRequestBodyLocation
4207
+ */
4208
+ 'type'?: RegisterRequestBodyLocationTypeEnum;
4209
+ }
4210
+
4211
+ export const RegisterRequestBodyLocationTypeEnum = {
4212
+ Point: 'Point'
4213
+ } as const;
4214
+
4215
+ export type RegisterRequestBodyLocationTypeEnum = typeof RegisterRequestBodyLocationTypeEnum[keyof typeof RegisterRequestBodyLocationTypeEnum];
4216
+
3990
4217
  /**
3991
4218
  *
3992
4219
  * @export
@@ -4332,6 +4559,36 @@ export interface StaffUserProfileResponse {
4332
4559
  * @memberof StaffUserProfileResponse
4333
4560
  */
4334
4561
  'profilePicture'?: string;
4562
+ /**
4563
+ *
4564
+ * @type {string}
4565
+ * @memberof StaffUserProfileResponse
4566
+ */
4567
+ 'resetPasswordToken'?: string;
4568
+ /**
4569
+ *
4570
+ * @type {string}
4571
+ * @memberof StaffUserProfileResponse
4572
+ */
4573
+ 'resetPasswordExpires'?: string;
4574
+ /**
4575
+ *
4576
+ * @type {string}
4577
+ * @memberof StaffUserProfileResponse
4578
+ */
4579
+ 'emailVerificationToken'?: string;
4580
+ /**
4581
+ *
4582
+ * @type {string}
4583
+ * @memberof StaffUserProfileResponse
4584
+ */
4585
+ 'emailVerificationExpires'?: string;
4586
+ /**
4587
+ *
4588
+ * @type {Array<IUserAttributesOrganizationsInner>}
4589
+ * @memberof StaffUserProfileResponse
4590
+ */
4591
+ 'organizations'?: Array<IUserAttributesOrganizationsInner>;
4335
4592
  /**
4336
4593
  *
4337
4594
  * @type {boolean}
@@ -6142,10 +6399,10 @@ export interface UpdateUserRequestBody {
6142
6399
  'description'?: string;
6143
6400
  /**
6144
6401
  *
6145
- * @type {UpdateUserRequestBodyLocation}
6402
+ * @type {RegisterRequestBodyLocation}
6146
6403
  * @memberof UpdateUserRequestBody
6147
6404
  */
6148
- 'location'?: UpdateUserRequestBodyLocation;
6405
+ 'location'?: RegisterRequestBodyLocation;
6149
6406
  }
6150
6407
  /**
6151
6408
  *
@@ -6166,98 +6423,6 @@ export interface UpdateUserRequestBodyLevelBySportsInner {
6166
6423
  */
6167
6424
  'sport': string;
6168
6425
  }
6169
- /**
6170
- *
6171
- * @export
6172
- * @interface UpdateUserRequestBodyLocation
6173
- */
6174
- export interface UpdateUserRequestBodyLocation {
6175
- /**
6176
- *
6177
- * @type {Array<number>}
6178
- * @memberof UpdateUserRequestBodyLocation
6179
- */
6180
- 'coordinates': Array<number>;
6181
- /**
6182
- *
6183
- * @type {string}
6184
- * @memberof UpdateUserRequestBodyLocation
6185
- */
6186
- 'mapboxId'?: string;
6187
- /**
6188
- *
6189
- * @type {Array<string>}
6190
- * @memberof UpdateUserRequestBodyLocation
6191
- */
6192
- 'mapboxPlaceType'?: Array<string>;
6193
- /**
6194
- *
6195
- * @type {string}
6196
- * @memberof UpdateUserRequestBodyLocation
6197
- */
6198
- 'mapboxPlaceName'?: string;
6199
- /**
6200
- *
6201
- * @type {string}
6202
- * @memberof UpdateUserRequestBodyLocation
6203
- */
6204
- 'mapboxAddress'?: string;
6205
- /**
6206
- *
6207
- * @type {Array<{ [key: string]: any; }>}
6208
- * @memberof UpdateUserRequestBodyLocation
6209
- */
6210
- 'mapboxContext'?: Array<{ [key: string]: any; }>;
6211
- /**
6212
- * Construct a type with a set of properties K of type T
6213
- * @type {{ [key: string]: object; }}
6214
- * @memberof UpdateUserRequestBodyLocation
6215
- */
6216
- 'mapboxRaw'?: { [key: string]: object; };
6217
- /**
6218
- *
6219
- * @type {string}
6220
- * @memberof UpdateUserRequestBodyLocation
6221
- */
6222
- 'city'?: string;
6223
- /**
6224
- *
6225
- * @type {string}
6226
- * @memberof UpdateUserRequestBodyLocation
6227
- */
6228
- 'country'?: string;
6229
- /**
6230
- *
6231
- * @type {string}
6232
- * @memberof UpdateUserRequestBodyLocation
6233
- */
6234
- 'postalCode'?: string;
6235
- /**
6236
- *
6237
- * @type {string}
6238
- * @memberof UpdateUserRequestBodyLocation
6239
- */
6240
- 'state'?: string;
6241
- /**
6242
- *
6243
- * @type {string}
6244
- * @memberof UpdateUserRequestBodyLocation
6245
- */
6246
- 'address'?: string;
6247
- /**
6248
- *
6249
- * @type {string}
6250
- * @memberof UpdateUserRequestBodyLocation
6251
- */
6252
- 'type'?: UpdateUserRequestBodyLocationTypeEnum;
6253
- }
6254
-
6255
- export const UpdateUserRequestBodyLocationTypeEnum = {
6256
- Point: 'Point'
6257
- } as const;
6258
-
6259
- export type UpdateUserRequestBodyLocationTypeEnum = typeof UpdateUserRequestBodyLocationTypeEnum[keyof typeof UpdateUserRequestBodyLocationTypeEnum];
6260
-
6261
6426
  /**
6262
6427
  *
6263
6428
  * @export
@@ -6546,6 +6711,36 @@ export interface UserProfileResponse {
6546
6711
  * @memberof UserProfileResponse
6547
6712
  */
6548
6713
  'profilePicture'?: string;
6714
+ /**
6715
+ *
6716
+ * @type {string}
6717
+ * @memberof UserProfileResponse
6718
+ */
6719
+ 'resetPasswordToken'?: string;
6720
+ /**
6721
+ *
6722
+ * @type {string}
6723
+ * @memberof UserProfileResponse
6724
+ */
6725
+ 'resetPasswordExpires'?: string;
6726
+ /**
6727
+ *
6728
+ * @type {string}
6729
+ * @memberof UserProfileResponse
6730
+ */
6731
+ 'emailVerificationToken'?: string;
6732
+ /**
6733
+ *
6734
+ * @type {string}
6735
+ * @memberof UserProfileResponse
6736
+ */
6737
+ 'emailVerificationExpires'?: string;
6738
+ /**
6739
+ *
6740
+ * @type {Array<IUserAttributesOrganizationsInner>}
6741
+ * @memberof UserProfileResponse
6742
+ */
6743
+ 'organizations'?: Array<IUserAttributesOrganizationsInner>;
6549
6744
  /**
6550
6745
  *
6551
6746
  * @type {boolean}
@@ -9919,6 +10114,35 @@ export const ClubsApiAxiosParamCreator = function (configuration?: Configuration
9919
10114
 
9920
10115
 
9921
10116
 
10117
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10118
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10119
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10120
+
10121
+ return {
10122
+ url: toPathString(localVarUrlObj),
10123
+ options: localVarRequestOptions,
10124
+ };
10125
+ },
10126
+ /**
10127
+ * Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
10128
+ * @param {*} [options] Override http request option.
10129
+ * @throws {RequiredError}
10130
+ */
10131
+ getClubsWithVerificationDomains: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10132
+ const localVarPath = `/api/clubs/verification-domains`;
10133
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10134
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10135
+ let baseOptions;
10136
+ if (configuration) {
10137
+ baseOptions = configuration.baseOptions;
10138
+ }
10139
+
10140
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
10141
+ const localVarHeaderParameter = {} as any;
10142
+ const localVarQueryParameter = {} as any;
10143
+
10144
+
10145
+
9922
10146
  setSearchParams(localVarUrlObj, localVarQueryParameter);
9923
10147
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9924
10148
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -10158,6 +10382,17 @@ export const ClubsApiFp = function(configuration?: Configuration) {
10158
10382
  const localVarOperationServerBasePath = operationServerMap['ClubsApi.getClubUsersById']?.[localVarOperationServerIndex]?.url;
10159
10383
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10160
10384
  },
10385
+ /**
10386
+ * Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
10387
+ * @param {*} [options] Override http request option.
10388
+ * @throws {RequiredError}
10389
+ */
10390
+ async getClubsWithVerificationDomains(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GetClubsWithVerificationDomains200ResponseInner>>> {
10391
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClubsWithVerificationDomains(options);
10392
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10393
+ const localVarOperationServerBasePath = operationServerMap['ClubsApi.getClubsWithVerificationDomains']?.[localVarOperationServerIndex]?.url;
10394
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10395
+ },
10161
10396
  /**
10162
10397
  *
10163
10398
  * @param {string} id
@@ -10277,6 +10512,14 @@ export const ClubsApiFactory = function (configuration?: Configuration, basePath
10277
10512
  getClubUsersById(requestParameters: ClubsApiGetClubUsersByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetClubUsersById200Response> {
10278
10513
  return localVarFp.getClubUsersById(requestParameters.id, options).then((request) => request(axios, basePath));
10279
10514
  },
10515
+ /**
10516
+ * Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
10517
+ * @param {*} [options] Override http request option.
10518
+ * @throws {RequiredError}
10519
+ */
10520
+ getClubsWithVerificationDomains(options?: RawAxiosRequestConfig): AxiosPromise<Array<GetClubsWithVerificationDomains200ResponseInner>> {
10521
+ return localVarFp.getClubsWithVerificationDomains(options).then((request) => request(axios, basePath));
10522
+ },
10280
10523
  /**
10281
10524
  *
10282
10525
  * @param {ClubsApiGetCourtsByClubAndSportByIdRequest} requestParameters Request parameters.
@@ -10537,6 +10780,16 @@ export class ClubsApi extends BaseAPI {
10537
10780
  return ClubsApiFp(this.configuration).getClubUsersById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
10538
10781
  }
10539
10782
 
10783
+ /**
10784
+ * Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
10785
+ * @param {*} [options] Override http request option.
10786
+ * @throws {RequiredError}
10787
+ * @memberof ClubsApi
10788
+ */
10789
+ public getClubsWithVerificationDomains(options?: RawAxiosRequestConfig) {
10790
+ return ClubsApiFp(this.configuration).getClubsWithVerificationDomains(options).then((request) => request(this.axios, this.basePath));
10791
+ }
10792
+
10540
10793
  /**
10541
10794
  *
10542
10795
  * @param {ClubsApiGetCourtsByClubAndSportByIdRequest} requestParameters Request parameters.
@@ -14844,6 +15097,45 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
14844
15097
  options: localVarRequestOptions,
14845
15098
  };
14846
15099
  },
15100
+ /**
15101
+ *
15102
+ * @param {AddOrganizationRequest} addOrganizationRequest
15103
+ * @param {*} [options] Override http request option.
15104
+ * @throws {RequiredError}
15105
+ */
15106
+ addOrganization: async (addOrganizationRequest: AddOrganizationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15107
+ // verify required parameter 'addOrganizationRequest' is not null or undefined
15108
+ assertParamExists('addOrganization', 'addOrganizationRequest', addOrganizationRequest)
15109
+ const localVarPath = `/api/users/me/add-organization`;
15110
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15111
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15112
+ let baseOptions;
15113
+ if (configuration) {
15114
+ baseOptions = configuration.baseOptions;
15115
+ }
15116
+
15117
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
15118
+ const localVarHeaderParameter = {} as any;
15119
+ const localVarQueryParameter = {} as any;
15120
+
15121
+ // authentication bearerAuth required
15122
+ // http bearer authentication required
15123
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
15124
+
15125
+
15126
+
15127
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15128
+
15129
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15130
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15131
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15132
+ localVarRequestOptions.data = serializeDataIfNeeded(addOrganizationRequest, localVarRequestOptions, configuration)
15133
+
15134
+ return {
15135
+ url: toPathString(localVarUrlObj),
15136
+ options: localVarRequestOptions,
15137
+ };
15138
+ },
14847
15139
  /**
14848
15140
  *
14849
15141
  * @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
@@ -15995,6 +16287,41 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
15995
16287
 
15996
16288
 
15997
16289
 
16290
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16291
+
16292
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16293
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16294
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16295
+ localVarRequestOptions.data = serializeDataIfNeeded(verifyEmailRequest, localVarRequestOptions, configuration)
16296
+
16297
+ return {
16298
+ url: toPathString(localVarUrlObj),
16299
+ options: localVarRequestOptions,
16300
+ };
16301
+ },
16302
+ /**
16303
+ *
16304
+ * @param {VerifyEmailRequest} verifyEmailRequest
16305
+ * @param {*} [options] Override http request option.
16306
+ * @throws {RequiredError}
16307
+ */
16308
+ verifyOrganization: async (verifyEmailRequest: VerifyEmailRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16309
+ // verify required parameter 'verifyEmailRequest' is not null or undefined
16310
+ assertParamExists('verifyOrganization', 'verifyEmailRequest', verifyEmailRequest)
16311
+ const localVarPath = `/api/users/verify-organization`;
16312
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16313
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16314
+ let baseOptions;
16315
+ if (configuration) {
16316
+ baseOptions = configuration.baseOptions;
16317
+ }
16318
+
16319
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
16320
+ const localVarHeaderParameter = {} as any;
16321
+ const localVarQueryParameter = {} as any;
16322
+
16323
+
16324
+
15998
16325
  localVarHeaderParameter['Content-Type'] = 'application/json';
15999
16326
 
16000
16327
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -16041,6 +16368,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
16041
16368
  const localVarOperationServerBasePath = operationServerMap['UsersApi.addFavoritePlayer']?.[localVarOperationServerIndex]?.url;
16042
16369
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16043
16370
  },
16371
+ /**
16372
+ *
16373
+ * @param {AddOrganizationRequest} addOrganizationRequest
16374
+ * @param {*} [options] Override http request option.
16375
+ * @throws {RequiredError}
16376
+ */
16377
+ async addOrganization(addOrganizationRequest: AddOrganizationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>> {
16378
+ const localVarAxiosArgs = await localVarAxiosParamCreator.addOrganization(addOrganizationRequest, options);
16379
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16380
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.addOrganization']?.[localVarOperationServerIndex]?.url;
16381
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16382
+ },
16044
16383
  /**
16045
16384
  *
16046
16385
  * @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
@@ -16415,6 +16754,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
16415
16754
  const localVarOperationServerBasePath = operationServerMap['UsersApi.verifyEmail']?.[localVarOperationServerIndex]?.url;
16416
16755
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16417
16756
  },
16757
+ /**
16758
+ *
16759
+ * @param {VerifyEmailRequest} verifyEmailRequest
16760
+ * @param {*} [options] Override http request option.
16761
+ * @throws {RequiredError}
16762
+ */
16763
+ async verifyOrganization(verifyEmailRequest: VerifyEmailRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPasswordReset200Response>> {
16764
+ const localVarAxiosArgs = await localVarAxiosParamCreator.verifyOrganization(verifyEmailRequest, options);
16765
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16766
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.verifyOrganization']?.[localVarOperationServerIndex]?.url;
16767
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16768
+ },
16418
16769
  }
16419
16770
  };
16420
16771
 
@@ -16443,6 +16794,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
16443
16794
  addFavoritePlayer(requestParameters: UsersApiAddFavoritePlayerRequest, options?: RawAxiosRequestConfig): AxiosPromise<FavoritePlayerMutationResponse> {
16444
16795
  return localVarFp.addFavoritePlayer(requestParameters.favoritePlayerRequestBody, options).then((request) => request(axios, basePath));
16445
16796
  },
16797
+ /**
16798
+ *
16799
+ * @param {UsersApiAddOrganizationRequest} requestParameters Request parameters.
16800
+ * @param {*} [options] Override http request option.
16801
+ * @throws {RequiredError}
16802
+ */
16803
+ addOrganization(requestParameters: UsersApiAddOrganizationRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
16804
+ return localVarFp.addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(axios, basePath));
16805
+ },
16446
16806
  /**
16447
16807
  *
16448
16808
  * @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
@@ -16715,6 +17075,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
16715
17075
  verifyEmail(requestParameters: UsersApiVerifyEmailRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
16716
17076
  return localVarFp.verifyEmail(requestParameters.verifyEmailRequest, options).then((request) => request(axios, basePath));
16717
17077
  },
17078
+ /**
17079
+ *
17080
+ * @param {UsersApiVerifyOrganizationRequest} requestParameters Request parameters.
17081
+ * @param {*} [options] Override http request option.
17082
+ * @throws {RequiredError}
17083
+ */
17084
+ verifyOrganization(requestParameters: UsersApiVerifyOrganizationRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
17085
+ return localVarFp.verifyOrganization(requestParameters.verifyEmailRequest, options).then((request) => request(axios, basePath));
17086
+ },
16718
17087
  };
16719
17088
  };
16720
17089
 
@@ -16746,6 +17115,20 @@ export interface UsersApiAddFavoritePlayerRequest {
16746
17115
  readonly favoritePlayerRequestBody: FavoritePlayerRequestBody
16747
17116
  }
16748
17117
 
17118
+ /**
17119
+ * Request parameters for addOrganization operation in UsersApi.
17120
+ * @export
17121
+ * @interface UsersApiAddOrganizationRequest
17122
+ */
17123
+ export interface UsersApiAddOrganizationRequest {
17124
+ /**
17125
+ *
17126
+ * @type {AddOrganizationRequest}
17127
+ * @memberof UsersApiAddOrganization
17128
+ */
17129
+ readonly addOrganizationRequest: AddOrganizationRequest
17130
+ }
17131
+
16749
17132
  /**
16750
17133
  * Request parameters for addPaymentMethodSetup operation in UsersApi.
16751
17134
  * @export
@@ -17145,6 +17528,20 @@ export interface UsersApiVerifyEmailRequest {
17145
17528
  readonly verifyEmailRequest: VerifyEmailRequest
17146
17529
  }
17147
17530
 
17531
+ /**
17532
+ * Request parameters for verifyOrganization operation in UsersApi.
17533
+ * @export
17534
+ * @interface UsersApiVerifyOrganizationRequest
17535
+ */
17536
+ export interface UsersApiVerifyOrganizationRequest {
17537
+ /**
17538
+ *
17539
+ * @type {VerifyEmailRequest}
17540
+ * @memberof UsersApiVerifyOrganization
17541
+ */
17542
+ readonly verifyEmailRequest: VerifyEmailRequest
17543
+ }
17544
+
17148
17545
  /**
17149
17546
  * UsersApi - object-oriented interface
17150
17547
  * @export
@@ -17174,6 +17571,17 @@ export class UsersApi extends BaseAPI {
17174
17571
  return UsersApiFp(this.configuration).addFavoritePlayer(requestParameters.favoritePlayerRequestBody, options).then((request) => request(this.axios, this.basePath));
17175
17572
  }
17176
17573
 
17574
+ /**
17575
+ *
17576
+ * @param {UsersApiAddOrganizationRequest} requestParameters Request parameters.
17577
+ * @param {*} [options] Override http request option.
17578
+ * @throws {RequiredError}
17579
+ * @memberof UsersApi
17580
+ */
17581
+ public addOrganization(requestParameters: UsersApiAddOrganizationRequest, options?: RawAxiosRequestConfig) {
17582
+ return UsersApiFp(this.configuration).addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
17583
+ }
17584
+
17177
17585
  /**
17178
17586
  *
17179
17587
  * @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
@@ -17507,6 +17915,17 @@ export class UsersApi extends BaseAPI {
17507
17915
  public verifyEmail(requestParameters: UsersApiVerifyEmailRequest, options?: RawAxiosRequestConfig) {
17508
17916
  return UsersApiFp(this.configuration).verifyEmail(requestParameters.verifyEmailRequest, options).then((request) => request(this.axios, this.basePath));
17509
17917
  }
17918
+
17919
+ /**
17920
+ *
17921
+ * @param {UsersApiVerifyOrganizationRequest} requestParameters Request parameters.
17922
+ * @param {*} [options] Override http request option.
17923
+ * @throws {RequiredError}
17924
+ * @memberof UsersApi
17925
+ */
17926
+ public verifyOrganization(requestParameters: UsersApiVerifyOrganizationRequest, options?: RawAxiosRequestConfig) {
17927
+ return UsersApiFp(this.configuration).verifyOrganization(requestParameters.verifyEmailRequest, options).then((request) => request(this.axios, this.basePath));
17928
+ }
17510
17929
  }
17511
17930
 
17512
17931