@tennac-booking/sdk 1.0.186 → 1.0.188

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
@@ -3789,6 +3789,24 @@ export interface ClubSummary {
3789
3789
  * @memberof ClubSummary
3790
3790
  */
3791
3791
  'visitCount'?: number;
3792
+ /**
3793
+ *
3794
+ * @type {string}
3795
+ * @memberof ClubSummary
3796
+ */
3797
+ 'lastPlayedAt'?: string | null;
3798
+ /**
3799
+ *
3800
+ * @type {number}
3801
+ * @memberof ClubSummary
3802
+ */
3803
+ 'distanceInMeters'?: number;
3804
+ /**
3805
+ *
3806
+ * @type {number}
3807
+ * @memberof ClubSummary
3808
+ */
3809
+ 'distanceInKm'?: number;
3792
3810
  /**
3793
3811
  *
3794
3812
  * @type {Array<string>}
@@ -10175,6 +10193,90 @@ export interface RequestEmailCodeResponse {
10175
10193
  */
10176
10194
  'alreadyVerified'?: boolean;
10177
10195
  }
10196
+ /**
10197
+ *
10198
+ * @export
10199
+ * @interface RequestOrganizationEmailCodeBody
10200
+ */
10201
+ export interface RequestOrganizationEmailCodeBody {
10202
+ /**
10203
+ *
10204
+ * @type {string}
10205
+ * @memberof RequestOrganizationEmailCodeBody
10206
+ */
10207
+ 'organizationId': string;
10208
+ /**
10209
+ *
10210
+ * @type {string}
10211
+ * @memberof RequestOrganizationEmailCodeBody
10212
+ */
10213
+ 'organizationEmail': string;
10214
+ }
10215
+ /**
10216
+ *
10217
+ * @export
10218
+ * @interface RequestOrganizationEmailCodeResponse
10219
+ */
10220
+ export interface RequestOrganizationEmailCodeResponse {
10221
+ /**
10222
+ *
10223
+ * @type {boolean}
10224
+ * @memberof RequestOrganizationEmailCodeResponse
10225
+ */
10226
+ 'sent': boolean;
10227
+ /**
10228
+ *
10229
+ * @type {boolean}
10230
+ * @memberof RequestOrganizationEmailCodeResponse
10231
+ */
10232
+ 'alreadyVerified'?: boolean;
10233
+ }
10234
+ /**
10235
+ *
10236
+ * @export
10237
+ * @interface RequestVerificationCodeBody
10238
+ */
10239
+ export interface RequestVerificationCodeBody {
10240
+ /**
10241
+ *
10242
+ * @type {string}
10243
+ * @memberof RequestVerificationCodeBody
10244
+ */
10245
+ 'email': string;
10246
+ /**
10247
+ *
10248
+ * @type {string}
10249
+ * @memberof RequestVerificationCodeBody
10250
+ */
10251
+ 'context'?: string;
10252
+ /**
10253
+ *
10254
+ * @type {SupportedLanguage}
10255
+ * @memberof RequestVerificationCodeBody
10256
+ */
10257
+ 'lang'?: SupportedLanguage;
10258
+ /**
10259
+ *
10260
+ * @type {string}
10261
+ * @memberof RequestVerificationCodeBody
10262
+ */
10263
+ 'requestId'?: string;
10264
+ }
10265
+
10266
+
10267
+ /**
10268
+ *
10269
+ * @export
10270
+ * @interface RequestVerificationCodeResponse
10271
+ */
10272
+ export interface RequestVerificationCodeResponse {
10273
+ /**
10274
+ *
10275
+ * @type {boolean}
10276
+ * @memberof RequestVerificationCodeResponse
10277
+ */
10278
+ 'sent': boolean;
10279
+ }
10178
10280
  /**
10179
10281
  *
10180
10282
  * @export
@@ -10522,6 +10624,12 @@ export interface SportResponse {
10522
10624
  * @memberof SportResponse
10523
10625
  */
10524
10626
  'maxPlayers'?: number;
10627
+ /**
10628
+ * Durées de créneaux disponibles sur les terrains de ce sport (en minutes)
10629
+ * @type {Array<number>}
10630
+ * @memberof SportResponse
10631
+ */
10632
+ 'slotDurations'?: Array<number>;
10525
10633
  /**
10526
10634
  * Types de surface pour le sport
10527
10635
  * @type {Array<string>}
@@ -11700,6 +11808,20 @@ export interface SubscriptionPlanResponse {
11700
11808
  }
11701
11809
 
11702
11810
 
11811
+ /**
11812
+ *
11813
+ * @export
11814
+ * @enum {string}
11815
+ */
11816
+
11817
+ export const SupportedLanguage = {
11818
+ Fr: 'fr',
11819
+ En: 'en'
11820
+ } as const;
11821
+
11822
+ export type SupportedLanguage = typeof SupportedLanguage[keyof typeof SupportedLanguage];
11823
+
11824
+
11703
11825
  /**
11704
11826
  *
11705
11827
  * @export
@@ -13360,6 +13482,37 @@ export const UserLocationSummaryTypeEnum = {
13360
13482
 
13361
13483
  export type UserLocationSummaryTypeEnum = typeof UserLocationSummaryTypeEnum[keyof typeof UserLocationSummaryTypeEnum];
13362
13484
 
13485
+ /**
13486
+ *
13487
+ * @export
13488
+ * @interface UserNextBookingSummary
13489
+ */
13490
+ export interface UserNextBookingSummary {
13491
+ /**
13492
+ *
13493
+ * @type {string}
13494
+ * @memberof UserNextBookingSummary
13495
+ */
13496
+ 'id': string;
13497
+ /**
13498
+ *
13499
+ * @type {string}
13500
+ * @memberof UserNextBookingSummary
13501
+ */
13502
+ 'date': string | null;
13503
+ /**
13504
+ *
13505
+ * @type {Array<BookingSlotInfo>}
13506
+ * @memberof UserNextBookingSummary
13507
+ */
13508
+ 'slots': Array<BookingSlotInfo>;
13509
+ /**
13510
+ *
13511
+ * @type {BookingClubInfo}
13512
+ * @memberof UserNextBookingSummary
13513
+ */
13514
+ 'club': BookingClubInfo | null;
13515
+ }
13363
13516
  /**
13364
13517
  *
13365
13518
  * @export
@@ -13570,6 +13723,12 @@ export interface UserProfileResponse {
13570
13723
  * @memberof UserProfileResponse
13571
13724
  */
13572
13725
  'upcomingBookingsCount'?: number;
13726
+ /**
13727
+ *
13728
+ * @type {UserNextBookingSummary}
13729
+ * @memberof UserProfileResponse
13730
+ */
13731
+ 'nextBooking'?: UserNextBookingSummary | null;
13573
13732
  /**
13574
13733
  *
13575
13734
  * @type {number}
@@ -13600,6 +13759,18 @@ export interface UserProfileResponse {
13600
13759
  * @memberof UserProfileResponse
13601
13760
  */
13602
13761
  'frequentlyVisitedClubs'?: Array<ClubSummary>;
13762
+ /**
13763
+ *
13764
+ * @type {Array<ClubSummary>}
13765
+ * @memberof UserProfileResponse
13766
+ */
13767
+ 'recentlyPlayedClubs'?: Array<ClubSummary>;
13768
+ /**
13769
+ *
13770
+ * @type {Array<ClubSummary>}
13771
+ * @memberof UserProfileResponse
13772
+ */
13773
+ 'nearbyCityClubs'?: Array<ClubSummary>;
13603
13774
  /**
13604
13775
  *
13605
13776
  * @type {Array<PlayerSummary>}
@@ -13710,6 +13881,88 @@ export interface VerifyEmailRequest {
13710
13881
  */
13711
13882
  'token'?: string;
13712
13883
  }
13884
+ /**
13885
+ *
13886
+ * @export
13887
+ * @interface VerifyOrganizationEmailCodeBody
13888
+ */
13889
+ export interface VerifyOrganizationEmailCodeBody {
13890
+ /**
13891
+ *
13892
+ * @type {string}
13893
+ * @memberof VerifyOrganizationEmailCodeBody
13894
+ */
13895
+ 'organizationId': string;
13896
+ /**
13897
+ *
13898
+ * @type {string}
13899
+ * @memberof VerifyOrganizationEmailCodeBody
13900
+ */
13901
+ 'organizationEmail': string;
13902
+ /**
13903
+ *
13904
+ * @type {string}
13905
+ * @memberof VerifyOrganizationEmailCodeBody
13906
+ */
13907
+ 'code': string;
13908
+ }
13909
+ /**
13910
+ *
13911
+ * @export
13912
+ * @interface VerifyOrganizationEmailCodeResponse
13913
+ */
13914
+ export interface VerifyOrganizationEmailCodeResponse {
13915
+ /**
13916
+ *
13917
+ * @type {boolean}
13918
+ * @memberof VerifyOrganizationEmailCodeResponse
13919
+ */
13920
+ 'verified': boolean;
13921
+ /**
13922
+ *
13923
+ * @type {boolean}
13924
+ * @memberof VerifyOrganizationEmailCodeResponse
13925
+ */
13926
+ 'alreadyVerified'?: boolean;
13927
+ }
13928
+ /**
13929
+ *
13930
+ * @export
13931
+ * @interface VerifyVerificationCodeBody
13932
+ */
13933
+ export interface VerifyVerificationCodeBody {
13934
+ /**
13935
+ *
13936
+ * @type {string}
13937
+ * @memberof VerifyVerificationCodeBody
13938
+ */
13939
+ 'email': string;
13940
+ /**
13941
+ *
13942
+ * @type {string}
13943
+ * @memberof VerifyVerificationCodeBody
13944
+ */
13945
+ 'code': string;
13946
+ /**
13947
+ *
13948
+ * @type {string}
13949
+ * @memberof VerifyVerificationCodeBody
13950
+ */
13951
+ 'context'?: string;
13952
+ }
13953
+ /**
13954
+ *
13955
+ * @export
13956
+ * @interface VerifyVerificationCodeResponse
13957
+ */
13958
+ export interface VerifyVerificationCodeResponse {
13959
+ /**
13960
+ *
13961
+ * @type {boolean}
13962
+ * @memberof VerifyVerificationCodeResponse
13963
+ */
13964
+ 'verified': boolean;
13965
+ }
13713
13966
  /**
13714
13967
  *
13715
13968
  * @export
@@ -13945,6 +14198,207 @@ export interface YearlyTurnoverResponse {
13945
14198
  'monthlyBreakdown': Array<MonthlyBreakdown>;
13946
14199
  }
13947
14200
 
14201
+ /**
14202
+ * AuthApi - axios parameter creator
14203
+ * @export
14204
+ */
14205
+ export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
14206
+ return {
14207
+ /**
14208
+ *
14209
+ * @param {RequestVerificationCodeBody} requestVerificationCodeBody
14210
+ * @param {*} [options] Override http request option.
14211
+ * @throws {RequiredError}
14212
+ */
14213
+ requestVerificationCode: async (requestVerificationCodeBody: RequestVerificationCodeBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14214
+ // verify required parameter 'requestVerificationCodeBody' is not null or undefined
14215
+ assertParamExists('requestVerificationCode', 'requestVerificationCodeBody', requestVerificationCodeBody)
14216
+ const localVarPath = `/api/auth/verification-code`;
14217
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14218
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14219
+ let baseOptions;
14220
+ if (configuration) {
14221
+ baseOptions = configuration.baseOptions;
14222
+ }
14223
+
14224
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
14225
+ const localVarHeaderParameter = {} as any;
14226
+ const localVarQueryParameter = {} as any;
14227
+
14228
+
14229
+
14230
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14231
+
14232
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14233
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14234
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14235
+ localVarRequestOptions.data = serializeDataIfNeeded(requestVerificationCodeBody, localVarRequestOptions, configuration)
14236
+
14237
+ return {
14238
+ url: toPathString(localVarUrlObj),
14239
+ options: localVarRequestOptions,
14240
+ };
14241
+ },
14242
+ /**
14243
+ *
14244
+ * @param {VerifyVerificationCodeBody} verifyVerificationCodeBody
14245
+ * @param {*} [options] Override http request option.
14246
+ * @throws {RequiredError}
14247
+ */
14248
+ verifyVerificationCode: async (verifyVerificationCodeBody: VerifyVerificationCodeBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14249
+ // verify required parameter 'verifyVerificationCodeBody' is not null or undefined
14250
+ assertParamExists('verifyVerificationCode', 'verifyVerificationCodeBody', verifyVerificationCodeBody)
14251
+ const localVarPath = `/api/auth/verification-code/verify`;
14252
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14253
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14254
+ let baseOptions;
14255
+ if (configuration) {
14256
+ baseOptions = configuration.baseOptions;
14257
+ }
14258
+
14259
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
14260
+ const localVarHeaderParameter = {} as any;
14261
+ const localVarQueryParameter = {} as any;
14262
+
14263
+
14264
+
14265
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14266
+
14267
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14268
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14269
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14270
+ localVarRequestOptions.data = serializeDataIfNeeded(verifyVerificationCodeBody, localVarRequestOptions, configuration)
14271
+
14272
+ return {
14273
+ url: toPathString(localVarUrlObj),
14274
+ options: localVarRequestOptions,
14275
+ };
14276
+ },
14277
+ }
14278
+ };
14279
+
14280
+ /**
14281
+ * AuthApi - functional programming interface
14282
+ * @export
14283
+ */
14284
+ export const AuthApiFp = function(configuration?: Configuration) {
14285
+ const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
14286
+ return {
14287
+ /**
14288
+ *
14289
+ * @param {RequestVerificationCodeBody} requestVerificationCodeBody
14290
+ * @param {*} [options] Override http request option.
14291
+ * @throws {RequiredError}
14292
+ */
14293
+ async requestVerificationCode(requestVerificationCodeBody: RequestVerificationCodeBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestVerificationCodeResponse>> {
14294
+ const localVarAxiosArgs = await localVarAxiosParamCreator.requestVerificationCode(requestVerificationCodeBody, options);
14295
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14296
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.requestVerificationCode']?.[localVarOperationServerIndex]?.url;
14297
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14298
+ },
14299
+ /**
14300
+ *
14301
+ * @param {VerifyVerificationCodeBody} verifyVerificationCodeBody
14302
+ * @param {*} [options] Override http request option.
14303
+ * @throws {RequiredError}
14304
+ */
14305
+ async verifyVerificationCode(verifyVerificationCodeBody: VerifyVerificationCodeBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifyVerificationCodeResponse>> {
14306
+ const localVarAxiosArgs = await localVarAxiosParamCreator.verifyVerificationCode(verifyVerificationCodeBody, options);
14307
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14308
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.verifyVerificationCode']?.[localVarOperationServerIndex]?.url;
14309
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14310
+ },
14311
+ }
14312
+ };
14313
+
14314
+ /**
14315
+ * AuthApi - factory interface
14316
+ * @export
14317
+ */
14318
+ export const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
14319
+ const localVarFp = AuthApiFp(configuration)
14320
+ return {
14321
+ /**
14322
+ *
14323
+ * @param {AuthApiRequestVerificationCodeRequest} requestParameters Request parameters.
14324
+ * @param {*} [options] Override http request option.
14325
+ * @throws {RequiredError}
14326
+ */
14327
+ requestVerificationCode(requestParameters: AuthApiRequestVerificationCodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestVerificationCodeResponse> {
14328
+ return localVarFp.requestVerificationCode(requestParameters.requestVerificationCodeBody, options).then((request) => request(axios, basePath));
14329
+ },
14330
+ /**
14331
+ *
14332
+ * @param {AuthApiVerifyVerificationCodeRequest} requestParameters Request parameters.
14333
+ * @param {*} [options] Override http request option.
14334
+ * @throws {RequiredError}
14335
+ */
14336
+ verifyVerificationCode(requestParameters: AuthApiVerifyVerificationCodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<VerifyVerificationCodeResponse> {
14337
+ return localVarFp.verifyVerificationCode(requestParameters.verifyVerificationCodeBody, options).then((request) => request(axios, basePath));
14338
+ },
14339
+ };
14340
+ };
14341
+
14342
+ /**
14343
+ * Request parameters for requestVerificationCode operation in AuthApi.
14344
+ * @export
14345
+ * @interface AuthApiRequestVerificationCodeRequest
14346
+ */
14347
+ export interface AuthApiRequestVerificationCodeRequest {
14348
+ /**
14349
+ *
14350
+ * @type {RequestVerificationCodeBody}
14351
+ * @memberof AuthApiRequestVerificationCode
14352
+ */
14353
+ readonly requestVerificationCodeBody: RequestVerificationCodeBody
14354
+ }
14355
+
14356
+ /**
14357
+ * Request parameters for verifyVerificationCode operation in AuthApi.
14358
+ * @export
14359
+ * @interface AuthApiVerifyVerificationCodeRequest
14360
+ */
14361
+ export interface AuthApiVerifyVerificationCodeRequest {
14362
+ /**
14363
+ *
14364
+ * @type {VerifyVerificationCodeBody}
14365
+ * @memberof AuthApiVerifyVerificationCode
14366
+ */
14367
+ readonly verifyVerificationCodeBody: VerifyVerificationCodeBody
14368
+ }
14369
+
14370
+ /**
14371
+ * AuthApi - object-oriented interface
14372
+ * @export
14373
+ * @class AuthApi
14374
+ * @extends {BaseAPI}
14375
+ */
14376
+ export class AuthApi extends BaseAPI {
14377
+ /**
14378
+ *
14379
+ * @param {AuthApiRequestVerificationCodeRequest} requestParameters Request parameters.
14380
+ * @param {*} [options] Override http request option.
14381
+ * @throws {RequiredError}
14382
+ * @memberof AuthApi
14383
+ */
14384
+ public requestVerificationCode(requestParameters: AuthApiRequestVerificationCodeRequest, options?: RawAxiosRequestConfig) {
14385
+ return AuthApiFp(this.configuration).requestVerificationCode(requestParameters.requestVerificationCodeBody, options).then((request) => request(this.axios, this.basePath));
14386
+ }
14387
+
14388
+ /**
14389
+ *
14390
+ * @param {AuthApiVerifyVerificationCodeRequest} requestParameters Request parameters.
14391
+ * @param {*} [options] Override http request option.
14392
+ * @throws {RequiredError}
14393
+ * @memberof AuthApi
14394
+ */
14395
+ public verifyVerificationCode(requestParameters: AuthApiVerifyVerificationCodeRequest, options?: RawAxiosRequestConfig) {
14396
+ return AuthApiFp(this.configuration).verifyVerificationCode(requestParameters.verifyVerificationCodeBody, options).then((request) => request(this.axios, this.basePath));
14397
+ }
14398
+ }
14399
+
14400
+
14401
+
13948
14402
  /**
13949
14403
  * BookingsApi - axios parameter creator
13950
14404
  * @export
@@ -28107,9 +28561,9 @@ export const PublicEmailApiAxiosParamCreator = function (configuration?: Configu
28107
28561
  * @param {*} [options] Override http request option.
28108
28562
  * @throws {RequiredError}
28109
28563
  */
28110
- requestVerificationCode: async (requestEmailCodeBody: RequestEmailCodeBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28564
+ requestPublicEmailVerificationCode: async (requestEmailCodeBody: RequestEmailCodeBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28111
28565
  // verify required parameter 'requestEmailCodeBody' is not null or undefined
28112
- assertParamExists('requestVerificationCode', 'requestEmailCodeBody', requestEmailCodeBody)
28566
+ assertParamExists('requestPublicEmailVerificationCode', 'requestEmailCodeBody', requestEmailCodeBody)
28113
28567
  const localVarPath = `/api/public-email/request-verification-code`;
28114
28568
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
28115
28569
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -28199,10 +28653,10 @@ export const PublicEmailApiFp = function(configuration?: Configuration) {
28199
28653
  * @param {*} [options] Override http request option.
28200
28654
  * @throws {RequiredError}
28201
28655
  */
28202
- async requestVerificationCode(requestEmailCodeBody: RequestEmailCodeBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestEmailCodeResponse>> {
28203
- const localVarAxiosArgs = await localVarAxiosParamCreator.requestVerificationCode(requestEmailCodeBody, options);
28656
+ async requestPublicEmailVerificationCode(requestEmailCodeBody: RequestEmailCodeBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestEmailCodeResponse>> {
28657
+ const localVarAxiosArgs = await localVarAxiosParamCreator.requestPublicEmailVerificationCode(requestEmailCodeBody, options);
28204
28658
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
28205
- const localVarOperationServerBasePath = operationServerMap['PublicEmailApi.requestVerificationCode']?.[localVarOperationServerIndex]?.url;
28659
+ const localVarOperationServerBasePath = operationServerMap['PublicEmailApi.requestPublicEmailVerificationCode']?.[localVarOperationServerIndex]?.url;
28206
28660
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28207
28661
  },
28208
28662
  /**
@@ -28238,12 +28692,12 @@ export const PublicEmailApiFactory = function (configuration?: Configuration, ba
28238
28692
  },
28239
28693
  /**
28240
28694
  *
28241
- * @param {PublicEmailApiRequestVerificationCodeRequest} requestParameters Request parameters.
28695
+ * @param {PublicEmailApiRequestPublicEmailVerificationCodeRequest} requestParameters Request parameters.
28242
28696
  * @param {*} [options] Override http request option.
28243
28697
  * @throws {RequiredError}
28244
28698
  */
28245
- requestVerificationCode(requestParameters: PublicEmailApiRequestVerificationCodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestEmailCodeResponse> {
28246
- return localVarFp.requestVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(axios, basePath));
28699
+ requestPublicEmailVerificationCode(requestParameters: PublicEmailApiRequestPublicEmailVerificationCodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestEmailCodeResponse> {
28700
+ return localVarFp.requestPublicEmailVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(axios, basePath));
28247
28701
  },
28248
28702
  /**
28249
28703
  *
@@ -28272,15 +28726,15 @@ export interface PublicEmailApiAuthEmailExistsRequest {
28272
28726
  }
28273
28727
 
28274
28728
  /**
28275
- * Request parameters for requestVerificationCode operation in PublicEmailApi.
28729
+ * Request parameters for requestPublicEmailVerificationCode operation in PublicEmailApi.
28276
28730
  * @export
28277
- * @interface PublicEmailApiRequestVerificationCodeRequest
28731
+ * @interface PublicEmailApiRequestPublicEmailVerificationCodeRequest
28278
28732
  */
28279
- export interface PublicEmailApiRequestVerificationCodeRequest {
28733
+ export interface PublicEmailApiRequestPublicEmailVerificationCodeRequest {
28280
28734
  /**
28281
28735
  *
28282
28736
  * @type {RequestEmailCodeBody}
28283
- * @memberof PublicEmailApiRequestVerificationCode
28737
+ * @memberof PublicEmailApiRequestPublicEmailVerificationCode
28284
28738
  */
28285
28739
  readonly requestEmailCodeBody: RequestEmailCodeBody
28286
28740
  }
@@ -28319,13 +28773,13 @@ export class PublicEmailApi extends BaseAPI {
28319
28773
 
28320
28774
  /**
28321
28775
  *
28322
- * @param {PublicEmailApiRequestVerificationCodeRequest} requestParameters Request parameters.
28776
+ * @param {PublicEmailApiRequestPublicEmailVerificationCodeRequest} requestParameters Request parameters.
28323
28777
  * @param {*} [options] Override http request option.
28324
28778
  * @throws {RequiredError}
28325
28779
  * @memberof PublicEmailApi
28326
28780
  */
28327
- public requestVerificationCode(requestParameters: PublicEmailApiRequestVerificationCodeRequest, options?: RawAxiosRequestConfig) {
28328
- return PublicEmailApiFp(this.configuration).requestVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
28781
+ public requestPublicEmailVerificationCode(requestParameters: PublicEmailApiRequestPublicEmailVerificationCodeRequest, options?: RawAxiosRequestConfig) {
28782
+ return PublicEmailApiFp(this.configuration).requestPublicEmailVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
28329
28783
  }
28330
28784
 
28331
28785
  /**
@@ -31173,6 +31627,45 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
31173
31627
  options: localVarRequestOptions,
31174
31628
  };
31175
31629
  },
31630
+ /**
31631
+ *
31632
+ * @param {RequestOrganizationEmailCodeBody} requestOrganizationEmailCodeBody
31633
+ * @param {*} [options] Override http request option.
31634
+ * @throws {RequiredError}
31635
+ */
31636
+ requestOrganizationCode: async (requestOrganizationEmailCodeBody: RequestOrganizationEmailCodeBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
31637
+ // verify required parameter 'requestOrganizationEmailCodeBody' is not null or undefined
31638
+ assertParamExists('requestOrganizationCode', 'requestOrganizationEmailCodeBody', requestOrganizationEmailCodeBody)
31639
+ const localVarPath = `/api/users/me/request-organization-code`;
31640
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
31641
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
31642
+ let baseOptions;
31643
+ if (configuration) {
31644
+ baseOptions = configuration.baseOptions;
31645
+ }
31646
+
31647
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
31648
+ const localVarHeaderParameter = {} as any;
31649
+ const localVarQueryParameter = {} as any;
31650
+
31651
+ // authentication bearerAuth required
31652
+ // http bearer authentication required
31653
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
31654
+
31655
+
31656
+
31657
+ localVarHeaderParameter['Content-Type'] = 'application/json';
31658
+
31659
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
31660
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31661
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
31662
+ localVarRequestOptions.data = serializeDataIfNeeded(requestOrganizationEmailCodeBody, localVarRequestOptions, configuration)
31663
+
31664
+ return {
31665
+ url: toPathString(localVarUrlObj),
31666
+ options: localVarRequestOptions,
31667
+ };
31668
+ },
31176
31669
  /**
31177
31670
  *
31178
31671
  * @param {PasswordResetRequestBody} passwordResetRequestBody
@@ -31499,6 +31992,45 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
31499
31992
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
31500
31993
  localVarRequestOptions.data = serializeDataIfNeeded(verifyEmailRequest, localVarRequestOptions, configuration)
31501
31994
 
31995
+ return {
31996
+ url: toPathString(localVarUrlObj),
31997
+ options: localVarRequestOptions,
31998
+ };
31999
+ },
32000
+ /**
32001
+ *
32002
+ * @param {VerifyOrganizationEmailCodeBody} verifyOrganizationEmailCodeBody
32003
+ * @param {*} [options] Override http request option.
32004
+ * @throws {RequiredError}
32005
+ */
32006
+ verifyOrganizationCode: async (verifyOrganizationEmailCodeBody: VerifyOrganizationEmailCodeBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
32007
+ // verify required parameter 'verifyOrganizationEmailCodeBody' is not null or undefined
32008
+ assertParamExists('verifyOrganizationCode', 'verifyOrganizationEmailCodeBody', verifyOrganizationEmailCodeBody)
32009
+ const localVarPath = `/api/users/me/verify-organization-code`;
32010
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32011
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32012
+ let baseOptions;
32013
+ if (configuration) {
32014
+ baseOptions = configuration.baseOptions;
32015
+ }
32016
+
32017
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
32018
+ const localVarHeaderParameter = {} as any;
32019
+ const localVarQueryParameter = {} as any;
32020
+
32021
+ // authentication bearerAuth required
32022
+ // http bearer authentication required
32023
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
32024
+
32025
+
32026
+
32027
+ localVarHeaderParameter['Content-Type'] = 'application/json';
32028
+
32029
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32030
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32031
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32032
+ localVarRequestOptions.data = serializeDataIfNeeded(verifyOrganizationEmailCodeBody, localVarRequestOptions, configuration)
32033
+
31502
32034
  return {
31503
32035
  url: toPathString(localVarUrlObj),
31504
32036
  options: localVarRequestOptions,
@@ -31908,6 +32440,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
31908
32440
  const localVarOperationServerBasePath = operationServerMap['UsersApi.requestEmailVerification']?.[localVarOperationServerIndex]?.url;
31909
32441
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
31910
32442
  },
32443
+ /**
32444
+ *
32445
+ * @param {RequestOrganizationEmailCodeBody} requestOrganizationEmailCodeBody
32446
+ * @param {*} [options] Override http request option.
32447
+ * @throws {RequiredError}
32448
+ */
32449
+ async requestOrganizationCode(requestOrganizationEmailCodeBody: RequestOrganizationEmailCodeBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestOrganizationEmailCodeResponse>> {
32450
+ const localVarAxiosArgs = await localVarAxiosParamCreator.requestOrganizationCode(requestOrganizationEmailCodeBody, options);
32451
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
32452
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.requestOrganizationCode']?.[localVarOperationServerIndex]?.url;
32453
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
32454
+ },
31911
32455
  /**
31912
32456
  *
31913
32457
  * @param {PasswordResetRequestBody} passwordResetRequestBody
@@ -32016,6 +32560,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
32016
32560
  const localVarOperationServerBasePath = operationServerMap['UsersApi.verifyOrganization']?.[localVarOperationServerIndex]?.url;
32017
32561
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
32018
32562
  },
32563
+ /**
32564
+ *
32565
+ * @param {VerifyOrganizationEmailCodeBody} verifyOrganizationEmailCodeBody
32566
+ * @param {*} [options] Override http request option.
32567
+ * @throws {RequiredError}
32568
+ */
32569
+ async verifyOrganizationCode(verifyOrganizationEmailCodeBody: VerifyOrganizationEmailCodeBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifyOrganizationEmailCodeResponse>> {
32570
+ const localVarAxiosArgs = await localVarAxiosParamCreator.verifyOrganizationCode(verifyOrganizationEmailCodeBody, options);
32571
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
32572
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.verifyOrganizationCode']?.[localVarOperationServerIndex]?.url;
32573
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
32574
+ },
32019
32575
  }
32020
32576
  };
32021
32577
 
@@ -32305,6 +32861,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
32305
32861
  requestEmailVerification(options?: RawAxiosRequestConfig): AxiosPromise<LeaveEventWaitList200Response> {
32306
32862
  return localVarFp.requestEmailVerification(options).then((request) => request(axios, basePath));
32307
32863
  },
32864
+ /**
32865
+ *
32866
+ * @param {UsersApiRequestOrganizationCodeRequest} requestParameters Request parameters.
32867
+ * @param {*} [options] Override http request option.
32868
+ * @throws {RequiredError}
32869
+ */
32870
+ requestOrganizationCode(requestParameters: UsersApiRequestOrganizationCodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestOrganizationEmailCodeResponse> {
32871
+ return localVarFp.requestOrganizationCode(requestParameters.requestOrganizationEmailCodeBody, options).then((request) => request(axios, basePath));
32872
+ },
32308
32873
  /**
32309
32874
  *
32310
32875
  * @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
@@ -32386,6 +32951,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
32386
32951
  verifyOrganization(requestParameters: UsersApiVerifyOrganizationRequest, options?: RawAxiosRequestConfig): AxiosPromise<LeaveEventWaitList200Response> {
32387
32952
  return localVarFp.verifyOrganization(requestParameters.verifyEmailRequest, options).then((request) => request(axios, basePath));
32388
32953
  },
32954
+ /**
32955
+ *
32956
+ * @param {UsersApiVerifyOrganizationCodeRequest} requestParameters Request parameters.
32957
+ * @param {*} [options] Override http request option.
32958
+ * @throws {RequiredError}
32959
+ */
32960
+ verifyOrganizationCode(requestParameters: UsersApiVerifyOrganizationCodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<VerifyOrganizationEmailCodeResponse> {
32961
+ return localVarFp.verifyOrganizationCode(requestParameters.verifyOrganizationEmailCodeBody, options).then((request) => request(axios, basePath));
32962
+ },
32389
32963
  };
32390
32964
  };
32391
32965
 
@@ -32844,6 +33418,20 @@ export interface UsersApiRemoveOrganizationRequest {
32844
33418
  readonly addOrganizationRequest: AddOrganizationRequest
32845
33419
  }
32846
33420
 
33421
+ /**
33422
+ * Request parameters for requestOrganizationCode operation in UsersApi.
33423
+ * @export
33424
+ * @interface UsersApiRequestOrganizationCodeRequest
33425
+ */
33426
+ export interface UsersApiRequestOrganizationCodeRequest {
33427
+ /**
33428
+ *
33429
+ * @type {RequestOrganizationEmailCodeBody}
33430
+ * @memberof UsersApiRequestOrganizationCode
33431
+ */
33432
+ readonly requestOrganizationEmailCodeBody: RequestOrganizationEmailCodeBody
33433
+ }
33434
+
32847
33435
  /**
32848
33436
  * Request parameters for requestPasswordReset operation in UsersApi.
32849
33437
  * @export
@@ -32970,6 +33558,20 @@ export interface UsersApiVerifyOrganizationRequest {
32970
33558
  readonly verifyEmailRequest: VerifyEmailRequest
32971
33559
  }
32972
33560
 
33561
+ /**
33562
+ * Request parameters for verifyOrganizationCode operation in UsersApi.
33563
+ * @export
33564
+ * @interface UsersApiVerifyOrganizationCodeRequest
33565
+ */
33566
+ export interface UsersApiVerifyOrganizationCodeRequest {
33567
+ /**
33568
+ *
33569
+ * @type {VerifyOrganizationEmailCodeBody}
33570
+ * @memberof UsersApiVerifyOrganizationCode
33571
+ */
33572
+ readonly verifyOrganizationEmailCodeBody: VerifyOrganizationEmailCodeBody
33573
+ }
33574
+
32973
33575
  /**
32974
33576
  * UsersApi - object-oriented interface
32975
33577
  * @export
@@ -33320,6 +33922,17 @@ export class UsersApi extends BaseAPI {
33320
33922
  return UsersApiFp(this.configuration).requestEmailVerification(options).then((request) => request(this.axios, this.basePath));
33321
33923
  }
33322
33924
 
33925
+ /**
33926
+ *
33927
+ * @param {UsersApiRequestOrganizationCodeRequest} requestParameters Request parameters.
33928
+ * @param {*} [options] Override http request option.
33929
+ * @throws {RequiredError}
33930
+ * @memberof UsersApi
33931
+ */
33932
+ public requestOrganizationCode(requestParameters: UsersApiRequestOrganizationCodeRequest, options?: RawAxiosRequestConfig) {
33933
+ return UsersApiFp(this.configuration).requestOrganizationCode(requestParameters.requestOrganizationEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
33934
+ }
33935
+
33323
33936
  /**
33324
33937
  *
33325
33938
  * @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
@@ -33418,6 +34031,17 @@ export class UsersApi extends BaseAPI {
33418
34031
  public verifyOrganization(requestParameters: UsersApiVerifyOrganizationRequest, options?: RawAxiosRequestConfig) {
33419
34032
  return UsersApiFp(this.configuration).verifyOrganization(requestParameters.verifyEmailRequest, options).then((request) => request(this.axios, this.basePath));
33420
34033
  }
34034
+
34035
+ /**
34036
+ *
34037
+ * @param {UsersApiVerifyOrganizationCodeRequest} requestParameters Request parameters.
34038
+ * @param {*} [options] Override http request option.
34039
+ * @throws {RequiredError}
34040
+ * @memberof UsersApi
34041
+ */
34042
+ public verifyOrganizationCode(requestParameters: UsersApiVerifyOrganizationCodeRequest, options?: RawAxiosRequestConfig) {
34043
+ return UsersApiFp(this.configuration).verifyOrganizationCode(requestParameters.verifyOrganizationEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
34044
+ }
33421
34045
  }
33422
34046
 
33423
34047