@tennac-booking/sdk 1.0.185 → 1.0.187

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
@@ -10175,6 +10175,90 @@ export interface RequestEmailCodeResponse {
10175
10175
  */
10176
10176
  'alreadyVerified'?: boolean;
10177
10177
  }
10178
+ /**
10179
+ *
10180
+ * @export
10181
+ * @interface RequestOrganizationEmailCodeBody
10182
+ */
10183
+ export interface RequestOrganizationEmailCodeBody {
10184
+ /**
10185
+ *
10186
+ * @type {string}
10187
+ * @memberof RequestOrganizationEmailCodeBody
10188
+ */
10189
+ 'organizationId': string;
10190
+ /**
10191
+ *
10192
+ * @type {string}
10193
+ * @memberof RequestOrganizationEmailCodeBody
10194
+ */
10195
+ 'organizationEmail': string;
10196
+ }
10197
+ /**
10198
+ *
10199
+ * @export
10200
+ * @interface RequestOrganizationEmailCodeResponse
10201
+ */
10202
+ export interface RequestOrganizationEmailCodeResponse {
10203
+ /**
10204
+ *
10205
+ * @type {boolean}
10206
+ * @memberof RequestOrganizationEmailCodeResponse
10207
+ */
10208
+ 'sent': boolean;
10209
+ /**
10210
+ *
10211
+ * @type {boolean}
10212
+ * @memberof RequestOrganizationEmailCodeResponse
10213
+ */
10214
+ 'alreadyVerified'?: boolean;
10215
+ }
10216
+ /**
10217
+ *
10218
+ * @export
10219
+ * @interface RequestVerificationCodeBody
10220
+ */
10221
+ export interface RequestVerificationCodeBody {
10222
+ /**
10223
+ *
10224
+ * @type {string}
10225
+ * @memberof RequestVerificationCodeBody
10226
+ */
10227
+ 'email': string;
10228
+ /**
10229
+ *
10230
+ * @type {string}
10231
+ * @memberof RequestVerificationCodeBody
10232
+ */
10233
+ 'context'?: string;
10234
+ /**
10235
+ *
10236
+ * @type {SupportedLanguage}
10237
+ * @memberof RequestVerificationCodeBody
10238
+ */
10239
+ 'lang'?: SupportedLanguage;
10240
+ /**
10241
+ *
10242
+ * @type {string}
10243
+ * @memberof RequestVerificationCodeBody
10244
+ */
10245
+ 'requestId'?: string;
10246
+ }
10247
+
10248
+
10249
+ /**
10250
+ *
10251
+ * @export
10252
+ * @interface RequestVerificationCodeResponse
10253
+ */
10254
+ export interface RequestVerificationCodeResponse {
10255
+ /**
10256
+ *
10257
+ * @type {boolean}
10258
+ * @memberof RequestVerificationCodeResponse
10259
+ */
10260
+ 'sent': boolean;
10261
+ }
10178
10262
  /**
10179
10263
  *
10180
10264
  * @export
@@ -11169,33 +11253,21 @@ export interface StaffEventDetailResponse {
11169
11253
  /**
11170
11254
  *
11171
11255
  * @export
11172
- * @interface StaffEventsPaginatedResponse
11256
+ * @interface StaffEventsPageResponse
11173
11257
  */
11174
- export interface StaffEventsPaginatedResponse {
11175
- /**
11176
- *
11177
- * @type {Array<EventResponse>}
11178
- * @memberof StaffEventsPaginatedResponse
11179
- */
11180
- 'upcoming': Array<EventResponse>;
11258
+ export interface StaffEventsPageResponse {
11181
11259
  /**
11182
11260
  *
11183
11261
  * @type {Array<EventResponse>}
11184
- * @memberof StaffEventsPaginatedResponse
11185
- */
11186
- 'past': Array<EventResponse>;
11187
- /**
11188
- *
11189
- * @type {PaginationInfo}
11190
- * @memberof StaffEventsPaginatedResponse
11262
+ * @memberof StaffEventsPageResponse
11191
11263
  */
11192
- 'upcomingPagination': PaginationInfo;
11264
+ 'events': Array<EventResponse>;
11193
11265
  /**
11194
11266
  *
11195
11267
  * @type {PaginationInfo}
11196
- * @memberof StaffEventsPaginatedResponse
11268
+ * @memberof StaffEventsPageResponse
11197
11269
  */
11198
- 'pastPagination': PaginationInfo;
11270
+ 'pagination': PaginationInfo;
11199
11271
  }
11200
11272
  /**
11201
11273
  *
@@ -11712,6 +11784,20 @@ export interface SubscriptionPlanResponse {
11712
11784
  }
11713
11785
 
11714
11786
 
11787
+ /**
11788
+ *
11789
+ * @export
11790
+ * @enum {string}
11791
+ */
11792
+
11793
+ export const SupportedLanguage = {
11794
+ Fr: 'fr',
11795
+ En: 'en'
11796
+ } as const;
11797
+
11798
+ export type SupportedLanguage = typeof SupportedLanguage[keyof typeof SupportedLanguage];
11799
+
11800
+
11715
11801
  /**
11716
11802
  *
11717
11803
  * @export
@@ -13372,6 +13458,37 @@ export const UserLocationSummaryTypeEnum = {
13372
13458
 
13373
13459
  export type UserLocationSummaryTypeEnum = typeof UserLocationSummaryTypeEnum[keyof typeof UserLocationSummaryTypeEnum];
13374
13460
 
13461
+ /**
13462
+ *
13463
+ * @export
13464
+ * @interface UserNextBookingSummary
13465
+ */
13466
+ export interface UserNextBookingSummary {
13467
+ /**
13468
+ *
13469
+ * @type {string}
13470
+ * @memberof UserNextBookingSummary
13471
+ */
13472
+ 'id': string;
13473
+ /**
13474
+ *
13475
+ * @type {string}
13476
+ * @memberof UserNextBookingSummary
13477
+ */
13478
+ 'date': string | null;
13479
+ /**
13480
+ *
13481
+ * @type {Array<BookingSlotInfo>}
13482
+ * @memberof UserNextBookingSummary
13483
+ */
13484
+ 'slots': Array<BookingSlotInfo>;
13485
+ /**
13486
+ *
13487
+ * @type {BookingClubInfo}
13488
+ * @memberof UserNextBookingSummary
13489
+ */
13490
+ 'club': BookingClubInfo | null;
13491
+ }
13375
13492
  /**
13376
13493
  *
13377
13494
  * @export
@@ -13582,6 +13699,12 @@ export interface UserProfileResponse {
13582
13699
  * @memberof UserProfileResponse
13583
13700
  */
13584
13701
  'upcomingBookingsCount'?: number;
13702
+ /**
13703
+ *
13704
+ * @type {UserNextBookingSummary}
13705
+ * @memberof UserProfileResponse
13706
+ */
13707
+ 'nextBooking'?: UserNextBookingSummary | null;
13585
13708
  /**
13586
13709
  *
13587
13710
  * @type {number}
@@ -13722,6 +13845,88 @@ export interface VerifyEmailRequest {
13722
13845
  */
13723
13846
  'token'?: string;
13724
13847
  }
13848
+ /**
13849
+ *
13850
+ * @export
13851
+ * @interface VerifyOrganizationEmailCodeBody
13852
+ */
13853
+ export interface VerifyOrganizationEmailCodeBody {
13854
+ /**
13855
+ *
13856
+ * @type {string}
13857
+ * @memberof VerifyOrganizationEmailCodeBody
13858
+ */
13859
+ 'organizationId': string;
13860
+ /**
13861
+ *
13862
+ * @type {string}
13863
+ * @memberof VerifyOrganizationEmailCodeBody
13864
+ */
13865
+ 'organizationEmail': string;
13866
+ /**
13867
+ *
13868
+ * @type {string}
13869
+ * @memberof VerifyOrganizationEmailCodeBody
13870
+ */
13871
+ 'code': string;
13872
+ }
13873
+ /**
13874
+ *
13875
+ * @export
13876
+ * @interface VerifyOrganizationEmailCodeResponse
13877
+ */
13878
+ export interface VerifyOrganizationEmailCodeResponse {
13879
+ /**
13880
+ *
13881
+ * @type {boolean}
13882
+ * @memberof VerifyOrganizationEmailCodeResponse
13883
+ */
13884
+ 'verified': boolean;
13885
+ /**
13886
+ *
13887
+ * @type {boolean}
13888
+ * @memberof VerifyOrganizationEmailCodeResponse
13889
+ */
13890
+ 'alreadyVerified'?: boolean;
13891
+ }
13892
+ /**
13893
+ *
13894
+ * @export
13895
+ * @interface VerifyVerificationCodeBody
13896
+ */
13897
+ export interface VerifyVerificationCodeBody {
13898
+ /**
13899
+ *
13900
+ * @type {string}
13901
+ * @memberof VerifyVerificationCodeBody
13902
+ */
13903
+ 'email': string;
13904
+ /**
13905
+ *
13906
+ * @type {string}
13907
+ * @memberof VerifyVerificationCodeBody
13908
+ */
13909
+ 'code': string;
13910
+ /**
13911
+ *
13912
+ * @type {string}
13913
+ * @memberof VerifyVerificationCodeBody
13914
+ */
13915
+ 'context'?: string;
13916
+ }
13917
+ /**
13918
+ *
13919
+ * @export
13920
+ * @interface VerifyVerificationCodeResponse
13921
+ */
13922
+ export interface VerifyVerificationCodeResponse {
13923
+ /**
13924
+ *
13925
+ * @type {boolean}
13926
+ * @memberof VerifyVerificationCodeResponse
13927
+ */
13928
+ 'verified': boolean;
13929
+ }
13725
13930
  /**
13726
13931
  *
13727
13932
  * @export
@@ -13957,6 +14162,207 @@ export interface YearlyTurnoverResponse {
13957
14162
  'monthlyBreakdown': Array<MonthlyBreakdown>;
13958
14163
  }
13959
14164
 
14165
+ /**
14166
+ * AuthApi - axios parameter creator
14167
+ * @export
14168
+ */
14169
+ export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
14170
+ return {
14171
+ /**
14172
+ *
14173
+ * @param {RequestVerificationCodeBody} requestVerificationCodeBody
14174
+ * @param {*} [options] Override http request option.
14175
+ * @throws {RequiredError}
14176
+ */
14177
+ requestVerificationCode: async (requestVerificationCodeBody: RequestVerificationCodeBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14178
+ // verify required parameter 'requestVerificationCodeBody' is not null or undefined
14179
+ assertParamExists('requestVerificationCode', 'requestVerificationCodeBody', requestVerificationCodeBody)
14180
+ const localVarPath = `/api/auth/verification-code`;
14181
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14182
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14183
+ let baseOptions;
14184
+ if (configuration) {
14185
+ baseOptions = configuration.baseOptions;
14186
+ }
14187
+
14188
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
14189
+ const localVarHeaderParameter = {} as any;
14190
+ const localVarQueryParameter = {} as any;
14191
+
14192
+
14193
+
14194
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14195
+
14196
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14197
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14198
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14199
+ localVarRequestOptions.data = serializeDataIfNeeded(requestVerificationCodeBody, localVarRequestOptions, configuration)
14200
+
14201
+ return {
14202
+ url: toPathString(localVarUrlObj),
14203
+ options: localVarRequestOptions,
14204
+ };
14205
+ },
14206
+ /**
14207
+ *
14208
+ * @param {VerifyVerificationCodeBody} verifyVerificationCodeBody
14209
+ * @param {*} [options] Override http request option.
14210
+ * @throws {RequiredError}
14211
+ */
14212
+ verifyVerificationCode: async (verifyVerificationCodeBody: VerifyVerificationCodeBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14213
+ // verify required parameter 'verifyVerificationCodeBody' is not null or undefined
14214
+ assertParamExists('verifyVerificationCode', 'verifyVerificationCodeBody', verifyVerificationCodeBody)
14215
+ const localVarPath = `/api/auth/verification-code/verify`;
14216
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14217
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14218
+ let baseOptions;
14219
+ if (configuration) {
14220
+ baseOptions = configuration.baseOptions;
14221
+ }
14222
+
14223
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
14224
+ const localVarHeaderParameter = {} as any;
14225
+ const localVarQueryParameter = {} as any;
14226
+
14227
+
14228
+
14229
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14230
+
14231
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14232
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14233
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14234
+ localVarRequestOptions.data = serializeDataIfNeeded(verifyVerificationCodeBody, localVarRequestOptions, configuration)
14235
+
14236
+ return {
14237
+ url: toPathString(localVarUrlObj),
14238
+ options: localVarRequestOptions,
14239
+ };
14240
+ },
14241
+ }
14242
+ };
14243
+
14244
+ /**
14245
+ * AuthApi - functional programming interface
14246
+ * @export
14247
+ */
14248
+ export const AuthApiFp = function(configuration?: Configuration) {
14249
+ const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
14250
+ return {
14251
+ /**
14252
+ *
14253
+ * @param {RequestVerificationCodeBody} requestVerificationCodeBody
14254
+ * @param {*} [options] Override http request option.
14255
+ * @throws {RequiredError}
14256
+ */
14257
+ async requestVerificationCode(requestVerificationCodeBody: RequestVerificationCodeBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestVerificationCodeResponse>> {
14258
+ const localVarAxiosArgs = await localVarAxiosParamCreator.requestVerificationCode(requestVerificationCodeBody, options);
14259
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14260
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.requestVerificationCode']?.[localVarOperationServerIndex]?.url;
14261
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14262
+ },
14263
+ /**
14264
+ *
14265
+ * @param {VerifyVerificationCodeBody} verifyVerificationCodeBody
14266
+ * @param {*} [options] Override http request option.
14267
+ * @throws {RequiredError}
14268
+ */
14269
+ async verifyVerificationCode(verifyVerificationCodeBody: VerifyVerificationCodeBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifyVerificationCodeResponse>> {
14270
+ const localVarAxiosArgs = await localVarAxiosParamCreator.verifyVerificationCode(verifyVerificationCodeBody, options);
14271
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14272
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.verifyVerificationCode']?.[localVarOperationServerIndex]?.url;
14273
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14274
+ },
14275
+ }
14276
+ };
14277
+
14278
+ /**
14279
+ * AuthApi - factory interface
14280
+ * @export
14281
+ */
14282
+ export const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
14283
+ const localVarFp = AuthApiFp(configuration)
14284
+ return {
14285
+ /**
14286
+ *
14287
+ * @param {AuthApiRequestVerificationCodeRequest} requestParameters Request parameters.
14288
+ * @param {*} [options] Override http request option.
14289
+ * @throws {RequiredError}
14290
+ */
14291
+ requestVerificationCode(requestParameters: AuthApiRequestVerificationCodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestVerificationCodeResponse> {
14292
+ return localVarFp.requestVerificationCode(requestParameters.requestVerificationCodeBody, options).then((request) => request(axios, basePath));
14293
+ },
14294
+ /**
14295
+ *
14296
+ * @param {AuthApiVerifyVerificationCodeRequest} requestParameters Request parameters.
14297
+ * @param {*} [options] Override http request option.
14298
+ * @throws {RequiredError}
14299
+ */
14300
+ verifyVerificationCode(requestParameters: AuthApiVerifyVerificationCodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<VerifyVerificationCodeResponse> {
14301
+ return localVarFp.verifyVerificationCode(requestParameters.verifyVerificationCodeBody, options).then((request) => request(axios, basePath));
14302
+ },
14303
+ };
14304
+ };
14305
+
14306
+ /**
14307
+ * Request parameters for requestVerificationCode operation in AuthApi.
14308
+ * @export
14309
+ * @interface AuthApiRequestVerificationCodeRequest
14310
+ */
14311
+ export interface AuthApiRequestVerificationCodeRequest {
14312
+ /**
14313
+ *
14314
+ * @type {RequestVerificationCodeBody}
14315
+ * @memberof AuthApiRequestVerificationCode
14316
+ */
14317
+ readonly requestVerificationCodeBody: RequestVerificationCodeBody
14318
+ }
14319
+
14320
+ /**
14321
+ * Request parameters for verifyVerificationCode operation in AuthApi.
14322
+ * @export
14323
+ * @interface AuthApiVerifyVerificationCodeRequest
14324
+ */
14325
+ export interface AuthApiVerifyVerificationCodeRequest {
14326
+ /**
14327
+ *
14328
+ * @type {VerifyVerificationCodeBody}
14329
+ * @memberof AuthApiVerifyVerificationCode
14330
+ */
14331
+ readonly verifyVerificationCodeBody: VerifyVerificationCodeBody
14332
+ }
14333
+
14334
+ /**
14335
+ * AuthApi - object-oriented interface
14336
+ * @export
14337
+ * @class AuthApi
14338
+ * @extends {BaseAPI}
14339
+ */
14340
+ export class AuthApi extends BaseAPI {
14341
+ /**
14342
+ *
14343
+ * @param {AuthApiRequestVerificationCodeRequest} requestParameters Request parameters.
14344
+ * @param {*} [options] Override http request option.
14345
+ * @throws {RequiredError}
14346
+ * @memberof AuthApi
14347
+ */
14348
+ public requestVerificationCode(requestParameters: AuthApiRequestVerificationCodeRequest, options?: RawAxiosRequestConfig) {
14349
+ return AuthApiFp(this.configuration).requestVerificationCode(requestParameters.requestVerificationCodeBody, options).then((request) => request(this.axios, this.basePath));
14350
+ }
14351
+
14352
+ /**
14353
+ *
14354
+ * @param {AuthApiVerifyVerificationCodeRequest} requestParameters Request parameters.
14355
+ * @param {*} [options] Override http request option.
14356
+ * @throws {RequiredError}
14357
+ * @memberof AuthApi
14358
+ */
14359
+ public verifyVerificationCode(requestParameters: AuthApiVerifyVerificationCodeRequest, options?: RawAxiosRequestConfig) {
14360
+ return AuthApiFp(this.configuration).verifyVerificationCode(requestParameters.verifyVerificationCodeBody, options).then((request) => request(this.axios, this.basePath));
14361
+ }
14362
+ }
14363
+
14364
+
14365
+
13960
14366
  /**
13961
14367
  * BookingsApi - axios parameter creator
13962
14368
  * @export
@@ -27182,6 +27588,39 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
27182
27588
 
27183
27589
 
27184
27590
 
27591
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
27592
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27593
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27594
+
27595
+ return {
27596
+ url: toPathString(localVarUrlObj),
27597
+ options: localVarRequestOptions,
27598
+ };
27599
+ },
27600
+ /**
27601
+ *
27602
+ * @param {*} [options] Override http request option.
27603
+ * @throws {RequiredError}
27604
+ */
27605
+ getDraftEventsByClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27606
+ const localVarPath = `/api/events/staff/getEvents/drafts`;
27607
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27608
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27609
+ let baseOptions;
27610
+ if (configuration) {
27611
+ baseOptions = configuration.baseOptions;
27612
+ }
27613
+
27614
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
27615
+ const localVarHeaderParameter = {} as any;
27616
+ const localVarQueryParameter = {} as any;
27617
+
27618
+ // authentication bearerAuth required
27619
+ // http bearer authentication required
27620
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
27621
+
27622
+
27623
+
27185
27624
  setSearchParams(localVarUrlObj, localVarQueryParameter);
27186
27625
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27187
27626
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -27229,12 +27668,70 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
27229
27668
  };
27230
27669
  },
27231
27670
  /**
27232
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
27671
+ * Get events for the entire month view (including recurring occurrences)
27672
+ * @param {string} [clubId]
27673
+ * @param {string} [date]
27674
+ * @param {GetMonthlyEventsVisibilityTypeEnum} [visibilityType]
27675
+ * @param {GetMonthlyEventsTypeEnum} [type]
27676
+ * @param {string} [sportId]
27677
+ * @param {*} [options] Override http request option.
27678
+ * @throws {RequiredError}
27679
+ */
27680
+ getMonthlyEvents: async (clubId?: string, date?: string, visibilityType?: GetMonthlyEventsVisibilityTypeEnum, type?: GetMonthlyEventsTypeEnum, sportId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27681
+ const localVarPath = `/api/events/calendar/monthly`;
27682
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27683
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27684
+ let baseOptions;
27685
+ if (configuration) {
27686
+ baseOptions = configuration.baseOptions;
27687
+ }
27688
+
27689
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
27690
+ const localVarHeaderParameter = {} as any;
27691
+ const localVarQueryParameter = {} as any;
27692
+
27693
+ // authentication bearerAuth required
27694
+ // http bearer authentication required
27695
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
27696
+
27697
+ if (clubId !== undefined) {
27698
+ localVarQueryParameter['clubId'] = clubId;
27699
+ }
27700
+
27701
+ if (date !== undefined) {
27702
+ localVarQueryParameter['date'] = date;
27703
+ }
27704
+
27705
+ if (visibilityType !== undefined) {
27706
+ localVarQueryParameter['visibilityType'] = visibilityType;
27707
+ }
27708
+
27709
+ if (type !== undefined) {
27710
+ localVarQueryParameter['type'] = type;
27711
+ }
27712
+
27713
+ if (sportId !== undefined) {
27714
+ localVarQueryParameter['sportId'] = sportId;
27715
+ }
27716
+
27717
+
27718
+
27719
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
27720
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27721
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27722
+
27723
+ return {
27724
+ url: toPathString(localVarUrlObj),
27725
+ options: localVarRequestOptions,
27726
+ };
27727
+ },
27728
+ /**
27729
+ *
27233
27730
  * @param {*} [options] Override http request option.
27234
27731
  * @throws {RequiredError}
27235
27732
  */
27236
- getEventsByClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27237
- const localVarPath = `/api/events/staff/getEvents`;
27733
+ getPastEventsByClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27734
+ const localVarPath = `/api/events/staff/getEvents/past`;
27238
27735
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
27239
27736
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27240
27737
  let baseOptions;
@@ -27262,17 +27759,12 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
27262
27759
  };
27263
27760
  },
27264
27761
  /**
27265
- * Get events for the entire month view (including recurring occurrences)
27266
- * @param {string} [clubId]
27267
- * @param {string} [date]
27268
- * @param {GetMonthlyEventsVisibilityTypeEnum} [visibilityType]
27269
- * @param {GetMonthlyEventsTypeEnum} [type]
27270
- * @param {string} [sportId]
27762
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
27271
27763
  * @param {*} [options] Override http request option.
27272
27764
  * @throws {RequiredError}
27273
27765
  */
27274
- getMonthlyEvents: async (clubId?: string, date?: string, visibilityType?: GetMonthlyEventsVisibilityTypeEnum, type?: GetMonthlyEventsTypeEnum, sportId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27275
- const localVarPath = `/api/events/calendar/monthly`;
27766
+ getUpcomingEventsByClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27767
+ const localVarPath = `/api/events/staff/getEvents/upcoming`;
27276
27768
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
27277
27769
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27278
27770
  let baseOptions;
@@ -27288,26 +27780,6 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
27288
27780
  // http bearer authentication required
27289
27781
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
27290
27782
 
27291
- if (clubId !== undefined) {
27292
- localVarQueryParameter['clubId'] = clubId;
27293
- }
27294
-
27295
- if (date !== undefined) {
27296
- localVarQueryParameter['date'] = date;
27297
- }
27298
-
27299
- if (visibilityType !== undefined) {
27300
- localVarQueryParameter['visibilityType'] = visibilityType;
27301
- }
27302
-
27303
- if (type !== undefined) {
27304
- localVarQueryParameter['type'] = type;
27305
- }
27306
-
27307
- if (sportId !== undefined) {
27308
- localVarQueryParameter['sportId'] = sportId;
27309
- }
27310
-
27311
27783
 
27312
27784
 
27313
27785
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -27417,26 +27889,26 @@ export const EventsStaffApiFp = function(configuration?: Configuration) {
27417
27889
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27418
27890
  },
27419
27891
  /**
27420
- * Get a specific event by ID (staff)
27421
- * @param {string} eventId
27892
+ *
27422
27893
  * @param {*} [options] Override http request option.
27423
27894
  * @throws {RequiredError}
27424
27895
  */
27425
- async getEventByIdForStaff(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffEventDetailResponse>> {
27426
- const localVarAxiosArgs = await localVarAxiosParamCreator.getEventByIdForStaff(eventId, options);
27896
+ async getDraftEventsByClub(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffEventsPageResponse>> {
27897
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDraftEventsByClub(options);
27427
27898
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27428
- const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getEventByIdForStaff']?.[localVarOperationServerIndex]?.url;
27899
+ const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getDraftEventsByClub']?.[localVarOperationServerIndex]?.url;
27429
27900
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27430
27901
  },
27431
27902
  /**
27432
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
27903
+ * Get a specific event by ID (staff)
27904
+ * @param {string} eventId
27433
27905
  * @param {*} [options] Override http request option.
27434
27906
  * @throws {RequiredError}
27435
27907
  */
27436
- async getEventsByClub(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffEventsPaginatedResponse>> {
27437
- const localVarAxiosArgs = await localVarAxiosParamCreator.getEventsByClub(options);
27908
+ async getEventByIdForStaff(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffEventDetailResponse>> {
27909
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getEventByIdForStaff(eventId, options);
27438
27910
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27439
- const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getEventsByClub']?.[localVarOperationServerIndex]?.url;
27911
+ const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getEventByIdForStaff']?.[localVarOperationServerIndex]?.url;
27440
27912
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27441
27913
  },
27442
27914
  /**
@@ -27455,6 +27927,28 @@ export const EventsStaffApiFp = function(configuration?: Configuration) {
27455
27927
  const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getMonthlyEvents']?.[localVarOperationServerIndex]?.url;
27456
27928
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27457
27929
  },
27930
+ /**
27931
+ *
27932
+ * @param {*} [options] Override http request option.
27933
+ * @throws {RequiredError}
27934
+ */
27935
+ async getPastEventsByClub(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffEventsPageResponse>> {
27936
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPastEventsByClub(options);
27937
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27938
+ const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getPastEventsByClub']?.[localVarOperationServerIndex]?.url;
27939
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27940
+ },
27941
+ /**
27942
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
27943
+ * @param {*} [options] Override http request option.
27944
+ * @throws {RequiredError}
27945
+ */
27946
+ async getUpcomingEventsByClub(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffEventsPageResponse>> {
27947
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUpcomingEventsByClub(options);
27948
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27949
+ const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getUpcomingEventsByClub']?.[localVarOperationServerIndex]?.url;
27950
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27951
+ },
27458
27952
  /**
27459
27953
  * Get events for the week view (30 day sliding window)
27460
27954
  * @param {string} [clubId]
@@ -27500,21 +27994,21 @@ export const EventsStaffApiFactory = function (configuration?: Configuration, ba
27500
27994
  return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
27501
27995
  },
27502
27996
  /**
27503
- * Get a specific event by ID (staff)
27504
- * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
27997
+ *
27505
27998
  * @param {*} [options] Override http request option.
27506
27999
  * @throws {RequiredError}
27507
28000
  */
27508
- getEventByIdForStaff(requestParameters: EventsStaffApiGetEventByIdForStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<StaffEventDetailResponse> {
27509
- return localVarFp.getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
28001
+ getDraftEventsByClub(options?: RawAxiosRequestConfig): AxiosPromise<StaffEventsPageResponse> {
28002
+ return localVarFp.getDraftEventsByClub(options).then((request) => request(axios, basePath));
27510
28003
  },
27511
28004
  /**
27512
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
28005
+ * Get a specific event by ID (staff)
28006
+ * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
27513
28007
  * @param {*} [options] Override http request option.
27514
28008
  * @throws {RequiredError}
27515
28009
  */
27516
- getEventsByClub(options?: RawAxiosRequestConfig): AxiosPromise<StaffEventsPaginatedResponse> {
27517
- return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
28010
+ getEventByIdForStaff(requestParameters: EventsStaffApiGetEventByIdForStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<StaffEventDetailResponse> {
28011
+ return localVarFp.getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
27518
28012
  },
27519
28013
  /**
27520
28014
  * Get events for the entire month view (including recurring occurrences)
@@ -27525,6 +28019,22 @@ export const EventsStaffApiFactory = function (configuration?: Configuration, ba
27525
28019
  getMonthlyEvents(requestParameters: EventsStaffApiGetMonthlyEventsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse> {
27526
28020
  return localVarFp.getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
27527
28021
  },
28022
+ /**
28023
+ *
28024
+ * @param {*} [options] Override http request option.
28025
+ * @throws {RequiredError}
28026
+ */
28027
+ getPastEventsByClub(options?: RawAxiosRequestConfig): AxiosPromise<StaffEventsPageResponse> {
28028
+ return localVarFp.getPastEventsByClub(options).then((request) => request(axios, basePath));
28029
+ },
28030
+ /**
28031
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
28032
+ * @param {*} [options] Override http request option.
28033
+ * @throws {RequiredError}
28034
+ */
28035
+ getUpcomingEventsByClub(options?: RawAxiosRequestConfig): AxiosPromise<StaffEventsPageResponse> {
28036
+ return localVarFp.getUpcomingEventsByClub(options).then((request) => request(axios, basePath));
28037
+ },
27528
28038
  /**
27529
28039
  * Get events for the week view (30 day sliding window)
27530
28040
  * @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
@@ -27728,24 +28238,24 @@ export class EventsStaffApi extends BaseAPI {
27728
28238
  }
27729
28239
 
27730
28240
  /**
27731
- * Get a specific event by ID (staff)
27732
- * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
28241
+ *
27733
28242
  * @param {*} [options] Override http request option.
27734
28243
  * @throws {RequiredError}
27735
28244
  * @memberof EventsStaffApi
27736
28245
  */
27737
- public getEventByIdForStaff(requestParameters: EventsStaffApiGetEventByIdForStaffRequest, options?: RawAxiosRequestConfig) {
27738
- return EventsStaffApiFp(this.configuration).getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
28246
+ public getDraftEventsByClub(options?: RawAxiosRequestConfig) {
28247
+ return EventsStaffApiFp(this.configuration).getDraftEventsByClub(options).then((request) => request(this.axios, this.basePath));
27739
28248
  }
27740
28249
 
27741
28250
  /**
27742
- * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
28251
+ * Get a specific event by ID (staff)
28252
+ * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
27743
28253
  * @param {*} [options] Override http request option.
27744
28254
  * @throws {RequiredError}
27745
28255
  * @memberof EventsStaffApi
27746
28256
  */
27747
- public getEventsByClub(options?: RawAxiosRequestConfig) {
27748
- return EventsStaffApiFp(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
28257
+ public getEventByIdForStaff(requestParameters: EventsStaffApiGetEventByIdForStaffRequest, options?: RawAxiosRequestConfig) {
28258
+ return EventsStaffApiFp(this.configuration).getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
27749
28259
  }
27750
28260
 
27751
28261
  /**
@@ -27759,6 +28269,26 @@ export class EventsStaffApi extends BaseAPI {
27759
28269
  return EventsStaffApiFp(this.configuration).getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
27760
28270
  }
27761
28271
 
28272
+ /**
28273
+ *
28274
+ * @param {*} [options] Override http request option.
28275
+ * @throws {RequiredError}
28276
+ * @memberof EventsStaffApi
28277
+ */
28278
+ public getPastEventsByClub(options?: RawAxiosRequestConfig) {
28279
+ return EventsStaffApiFp(this.configuration).getPastEventsByClub(options).then((request) => request(this.axios, this.basePath));
28280
+ }
28281
+
28282
+ /**
28283
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
28284
+ * @param {*} [options] Override http request option.
28285
+ * @throws {RequiredError}
28286
+ * @memberof EventsStaffApi
28287
+ */
28288
+ public getUpcomingEventsByClub(options?: RawAxiosRequestConfig) {
28289
+ return EventsStaffApiFp(this.configuration).getUpcomingEventsByClub(options).then((request) => request(this.axios, this.basePath));
28290
+ }
28291
+
27762
28292
  /**
27763
28293
  * Get events for the week view (30 day sliding window)
27764
28294
  * @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
@@ -27995,9 +28525,9 @@ export const PublicEmailApiAxiosParamCreator = function (configuration?: Configu
27995
28525
  * @param {*} [options] Override http request option.
27996
28526
  * @throws {RequiredError}
27997
28527
  */
27998
- requestVerificationCode: async (requestEmailCodeBody: RequestEmailCodeBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
28528
+ requestPublicEmailVerificationCode: async (requestEmailCodeBody: RequestEmailCodeBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27999
28529
  // verify required parameter 'requestEmailCodeBody' is not null or undefined
28000
- assertParamExists('requestVerificationCode', 'requestEmailCodeBody', requestEmailCodeBody)
28530
+ assertParamExists('requestPublicEmailVerificationCode', 'requestEmailCodeBody', requestEmailCodeBody)
28001
28531
  const localVarPath = `/api/public-email/request-verification-code`;
28002
28532
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
28003
28533
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -28087,10 +28617,10 @@ export const PublicEmailApiFp = function(configuration?: Configuration) {
28087
28617
  * @param {*} [options] Override http request option.
28088
28618
  * @throws {RequiredError}
28089
28619
  */
28090
- async requestVerificationCode(requestEmailCodeBody: RequestEmailCodeBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestEmailCodeResponse>> {
28091
- const localVarAxiosArgs = await localVarAxiosParamCreator.requestVerificationCode(requestEmailCodeBody, options);
28620
+ async requestPublicEmailVerificationCode(requestEmailCodeBody: RequestEmailCodeBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestEmailCodeResponse>> {
28621
+ const localVarAxiosArgs = await localVarAxiosParamCreator.requestPublicEmailVerificationCode(requestEmailCodeBody, options);
28092
28622
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
28093
- const localVarOperationServerBasePath = operationServerMap['PublicEmailApi.requestVerificationCode']?.[localVarOperationServerIndex]?.url;
28623
+ const localVarOperationServerBasePath = operationServerMap['PublicEmailApi.requestPublicEmailVerificationCode']?.[localVarOperationServerIndex]?.url;
28094
28624
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28095
28625
  },
28096
28626
  /**
@@ -28126,12 +28656,12 @@ export const PublicEmailApiFactory = function (configuration?: Configuration, ba
28126
28656
  },
28127
28657
  /**
28128
28658
  *
28129
- * @param {PublicEmailApiRequestVerificationCodeRequest} requestParameters Request parameters.
28659
+ * @param {PublicEmailApiRequestPublicEmailVerificationCodeRequest} requestParameters Request parameters.
28130
28660
  * @param {*} [options] Override http request option.
28131
28661
  * @throws {RequiredError}
28132
28662
  */
28133
- requestVerificationCode(requestParameters: PublicEmailApiRequestVerificationCodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestEmailCodeResponse> {
28134
- return localVarFp.requestVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(axios, basePath));
28663
+ requestPublicEmailVerificationCode(requestParameters: PublicEmailApiRequestPublicEmailVerificationCodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestEmailCodeResponse> {
28664
+ return localVarFp.requestPublicEmailVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(axios, basePath));
28135
28665
  },
28136
28666
  /**
28137
28667
  *
@@ -28160,15 +28690,15 @@ export interface PublicEmailApiAuthEmailExistsRequest {
28160
28690
  }
28161
28691
 
28162
28692
  /**
28163
- * Request parameters for requestVerificationCode operation in PublicEmailApi.
28693
+ * Request parameters for requestPublicEmailVerificationCode operation in PublicEmailApi.
28164
28694
  * @export
28165
- * @interface PublicEmailApiRequestVerificationCodeRequest
28695
+ * @interface PublicEmailApiRequestPublicEmailVerificationCodeRequest
28166
28696
  */
28167
- export interface PublicEmailApiRequestVerificationCodeRequest {
28697
+ export interface PublicEmailApiRequestPublicEmailVerificationCodeRequest {
28168
28698
  /**
28169
28699
  *
28170
28700
  * @type {RequestEmailCodeBody}
28171
- * @memberof PublicEmailApiRequestVerificationCode
28701
+ * @memberof PublicEmailApiRequestPublicEmailVerificationCode
28172
28702
  */
28173
28703
  readonly requestEmailCodeBody: RequestEmailCodeBody
28174
28704
  }
@@ -28207,13 +28737,13 @@ export class PublicEmailApi extends BaseAPI {
28207
28737
 
28208
28738
  /**
28209
28739
  *
28210
- * @param {PublicEmailApiRequestVerificationCodeRequest} requestParameters Request parameters.
28740
+ * @param {PublicEmailApiRequestPublicEmailVerificationCodeRequest} requestParameters Request parameters.
28211
28741
  * @param {*} [options] Override http request option.
28212
28742
  * @throws {RequiredError}
28213
28743
  * @memberof PublicEmailApi
28214
28744
  */
28215
- public requestVerificationCode(requestParameters: PublicEmailApiRequestVerificationCodeRequest, options?: RawAxiosRequestConfig) {
28216
- return PublicEmailApiFp(this.configuration).requestVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
28745
+ public requestPublicEmailVerificationCode(requestParameters: PublicEmailApiRequestPublicEmailVerificationCodeRequest, options?: RawAxiosRequestConfig) {
28746
+ return PublicEmailApiFp(this.configuration).requestPublicEmailVerificationCode(requestParameters.requestEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
28217
28747
  }
28218
28748
 
28219
28749
  /**
@@ -31061,6 +31591,45 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
31061
31591
  options: localVarRequestOptions,
31062
31592
  };
31063
31593
  },
31594
+ /**
31595
+ *
31596
+ * @param {RequestOrganizationEmailCodeBody} requestOrganizationEmailCodeBody
31597
+ * @param {*} [options] Override http request option.
31598
+ * @throws {RequiredError}
31599
+ */
31600
+ requestOrganizationCode: async (requestOrganizationEmailCodeBody: RequestOrganizationEmailCodeBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
31601
+ // verify required parameter 'requestOrganizationEmailCodeBody' is not null or undefined
31602
+ assertParamExists('requestOrganizationCode', 'requestOrganizationEmailCodeBody', requestOrganizationEmailCodeBody)
31603
+ const localVarPath = `/api/users/me/request-organization-code`;
31604
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
31605
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
31606
+ let baseOptions;
31607
+ if (configuration) {
31608
+ baseOptions = configuration.baseOptions;
31609
+ }
31610
+
31611
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
31612
+ const localVarHeaderParameter = {} as any;
31613
+ const localVarQueryParameter = {} as any;
31614
+
31615
+ // authentication bearerAuth required
31616
+ // http bearer authentication required
31617
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
31618
+
31619
+
31620
+
31621
+ localVarHeaderParameter['Content-Type'] = 'application/json';
31622
+
31623
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
31624
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31625
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
31626
+ localVarRequestOptions.data = serializeDataIfNeeded(requestOrganizationEmailCodeBody, localVarRequestOptions, configuration)
31627
+
31628
+ return {
31629
+ url: toPathString(localVarUrlObj),
31630
+ options: localVarRequestOptions,
31631
+ };
31632
+ },
31064
31633
  /**
31065
31634
  *
31066
31635
  * @param {PasswordResetRequestBody} passwordResetRequestBody
@@ -31387,6 +31956,45 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
31387
31956
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
31388
31957
  localVarRequestOptions.data = serializeDataIfNeeded(verifyEmailRequest, localVarRequestOptions, configuration)
31389
31958
 
31959
+ return {
31960
+ url: toPathString(localVarUrlObj),
31961
+ options: localVarRequestOptions,
31962
+ };
31963
+ },
31964
+ /**
31965
+ *
31966
+ * @param {VerifyOrganizationEmailCodeBody} verifyOrganizationEmailCodeBody
31967
+ * @param {*} [options] Override http request option.
31968
+ * @throws {RequiredError}
31969
+ */
31970
+ verifyOrganizationCode: async (verifyOrganizationEmailCodeBody: VerifyOrganizationEmailCodeBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
31971
+ // verify required parameter 'verifyOrganizationEmailCodeBody' is not null or undefined
31972
+ assertParamExists('verifyOrganizationCode', 'verifyOrganizationEmailCodeBody', verifyOrganizationEmailCodeBody)
31973
+ const localVarPath = `/api/users/me/verify-organization-code`;
31974
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
31975
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
31976
+ let baseOptions;
31977
+ if (configuration) {
31978
+ baseOptions = configuration.baseOptions;
31979
+ }
31980
+
31981
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
31982
+ const localVarHeaderParameter = {} as any;
31983
+ const localVarQueryParameter = {} as any;
31984
+
31985
+ // authentication bearerAuth required
31986
+ // http bearer authentication required
31987
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
31988
+
31989
+
31990
+
31991
+ localVarHeaderParameter['Content-Type'] = 'application/json';
31992
+
31993
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
31994
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31995
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
31996
+ localVarRequestOptions.data = serializeDataIfNeeded(verifyOrganizationEmailCodeBody, localVarRequestOptions, configuration)
31997
+
31390
31998
  return {
31391
31999
  url: toPathString(localVarUrlObj),
31392
32000
  options: localVarRequestOptions,
@@ -31796,6 +32404,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
31796
32404
  const localVarOperationServerBasePath = operationServerMap['UsersApi.requestEmailVerification']?.[localVarOperationServerIndex]?.url;
31797
32405
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
31798
32406
  },
32407
+ /**
32408
+ *
32409
+ * @param {RequestOrganizationEmailCodeBody} requestOrganizationEmailCodeBody
32410
+ * @param {*} [options] Override http request option.
32411
+ * @throws {RequiredError}
32412
+ */
32413
+ async requestOrganizationCode(requestOrganizationEmailCodeBody: RequestOrganizationEmailCodeBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestOrganizationEmailCodeResponse>> {
32414
+ const localVarAxiosArgs = await localVarAxiosParamCreator.requestOrganizationCode(requestOrganizationEmailCodeBody, options);
32415
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
32416
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.requestOrganizationCode']?.[localVarOperationServerIndex]?.url;
32417
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
32418
+ },
31799
32419
  /**
31800
32420
  *
31801
32421
  * @param {PasswordResetRequestBody} passwordResetRequestBody
@@ -31904,6 +32524,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
31904
32524
  const localVarOperationServerBasePath = operationServerMap['UsersApi.verifyOrganization']?.[localVarOperationServerIndex]?.url;
31905
32525
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
31906
32526
  },
32527
+ /**
32528
+ *
32529
+ * @param {VerifyOrganizationEmailCodeBody} verifyOrganizationEmailCodeBody
32530
+ * @param {*} [options] Override http request option.
32531
+ * @throws {RequiredError}
32532
+ */
32533
+ async verifyOrganizationCode(verifyOrganizationEmailCodeBody: VerifyOrganizationEmailCodeBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerifyOrganizationEmailCodeResponse>> {
32534
+ const localVarAxiosArgs = await localVarAxiosParamCreator.verifyOrganizationCode(verifyOrganizationEmailCodeBody, options);
32535
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
32536
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.verifyOrganizationCode']?.[localVarOperationServerIndex]?.url;
32537
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
32538
+ },
31907
32539
  }
31908
32540
  };
31909
32541
 
@@ -32193,6 +32825,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
32193
32825
  requestEmailVerification(options?: RawAxiosRequestConfig): AxiosPromise<LeaveEventWaitList200Response> {
32194
32826
  return localVarFp.requestEmailVerification(options).then((request) => request(axios, basePath));
32195
32827
  },
32828
+ /**
32829
+ *
32830
+ * @param {UsersApiRequestOrganizationCodeRequest} requestParameters Request parameters.
32831
+ * @param {*} [options] Override http request option.
32832
+ * @throws {RequiredError}
32833
+ */
32834
+ requestOrganizationCode(requestParameters: UsersApiRequestOrganizationCodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestOrganizationEmailCodeResponse> {
32835
+ return localVarFp.requestOrganizationCode(requestParameters.requestOrganizationEmailCodeBody, options).then((request) => request(axios, basePath));
32836
+ },
32196
32837
  /**
32197
32838
  *
32198
32839
  * @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
@@ -32274,6 +32915,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
32274
32915
  verifyOrganization(requestParameters: UsersApiVerifyOrganizationRequest, options?: RawAxiosRequestConfig): AxiosPromise<LeaveEventWaitList200Response> {
32275
32916
  return localVarFp.verifyOrganization(requestParameters.verifyEmailRequest, options).then((request) => request(axios, basePath));
32276
32917
  },
32918
+ /**
32919
+ *
32920
+ * @param {UsersApiVerifyOrganizationCodeRequest} requestParameters Request parameters.
32921
+ * @param {*} [options] Override http request option.
32922
+ * @throws {RequiredError}
32923
+ */
32924
+ verifyOrganizationCode(requestParameters: UsersApiVerifyOrganizationCodeRequest, options?: RawAxiosRequestConfig): AxiosPromise<VerifyOrganizationEmailCodeResponse> {
32925
+ return localVarFp.verifyOrganizationCode(requestParameters.verifyOrganizationEmailCodeBody, options).then((request) => request(axios, basePath));
32926
+ },
32277
32927
  };
32278
32928
  };
32279
32929
 
@@ -32732,6 +33382,20 @@ export interface UsersApiRemoveOrganizationRequest {
32732
33382
  readonly addOrganizationRequest: AddOrganizationRequest
32733
33383
  }
32734
33384
 
33385
+ /**
33386
+ * Request parameters for requestOrganizationCode operation in UsersApi.
33387
+ * @export
33388
+ * @interface UsersApiRequestOrganizationCodeRequest
33389
+ */
33390
+ export interface UsersApiRequestOrganizationCodeRequest {
33391
+ /**
33392
+ *
33393
+ * @type {RequestOrganizationEmailCodeBody}
33394
+ * @memberof UsersApiRequestOrganizationCode
33395
+ */
33396
+ readonly requestOrganizationEmailCodeBody: RequestOrganizationEmailCodeBody
33397
+ }
33398
+
32735
33399
  /**
32736
33400
  * Request parameters for requestPasswordReset operation in UsersApi.
32737
33401
  * @export
@@ -32858,6 +33522,20 @@ export interface UsersApiVerifyOrganizationRequest {
32858
33522
  readonly verifyEmailRequest: VerifyEmailRequest
32859
33523
  }
32860
33524
 
33525
+ /**
33526
+ * Request parameters for verifyOrganizationCode operation in UsersApi.
33527
+ * @export
33528
+ * @interface UsersApiVerifyOrganizationCodeRequest
33529
+ */
33530
+ export interface UsersApiVerifyOrganizationCodeRequest {
33531
+ /**
33532
+ *
33533
+ * @type {VerifyOrganizationEmailCodeBody}
33534
+ * @memberof UsersApiVerifyOrganizationCode
33535
+ */
33536
+ readonly verifyOrganizationEmailCodeBody: VerifyOrganizationEmailCodeBody
33537
+ }
33538
+
32861
33539
  /**
32862
33540
  * UsersApi - object-oriented interface
32863
33541
  * @export
@@ -33208,6 +33886,17 @@ export class UsersApi extends BaseAPI {
33208
33886
  return UsersApiFp(this.configuration).requestEmailVerification(options).then((request) => request(this.axios, this.basePath));
33209
33887
  }
33210
33888
 
33889
+ /**
33890
+ *
33891
+ * @param {UsersApiRequestOrganizationCodeRequest} requestParameters Request parameters.
33892
+ * @param {*} [options] Override http request option.
33893
+ * @throws {RequiredError}
33894
+ * @memberof UsersApi
33895
+ */
33896
+ public requestOrganizationCode(requestParameters: UsersApiRequestOrganizationCodeRequest, options?: RawAxiosRequestConfig) {
33897
+ return UsersApiFp(this.configuration).requestOrganizationCode(requestParameters.requestOrganizationEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
33898
+ }
33899
+
33211
33900
  /**
33212
33901
  *
33213
33902
  * @param {UsersApiRequestPasswordResetRequest} requestParameters Request parameters.
@@ -33306,6 +33995,17 @@ export class UsersApi extends BaseAPI {
33306
33995
  public verifyOrganization(requestParameters: UsersApiVerifyOrganizationRequest, options?: RawAxiosRequestConfig) {
33307
33996
  return UsersApiFp(this.configuration).verifyOrganization(requestParameters.verifyEmailRequest, options).then((request) => request(this.axios, this.basePath));
33308
33997
  }
33998
+
33999
+ /**
34000
+ *
34001
+ * @param {UsersApiVerifyOrganizationCodeRequest} requestParameters Request parameters.
34002
+ * @param {*} [options] Override http request option.
34003
+ * @throws {RequiredError}
34004
+ * @memberof UsersApi
34005
+ */
34006
+ public verifyOrganizationCode(requestParameters: UsersApiVerifyOrganizationCodeRequest, options?: RawAxiosRequestConfig) {
34007
+ return UsersApiFp(this.configuration).verifyOrganizationCode(requestParameters.verifyOrganizationEmailCodeBody, options).then((request) => request(this.axios, this.basePath));
34008
+ }
33309
34009
  }
33310
34010
 
33311
34011