@tennac-booking/sdk 1.0.171 → 1.0.173

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.
Files changed (44) hide show
  1. package/.openapi-generator/FILES +399 -394
  2. package/README.md +11 -3
  3. package/api.ts +562 -28
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +432 -28
  8. package/dist/api.js +215 -9
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +432 -28
  16. package/dist/esm/api.js +211 -5
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/AppRegisterRequestBody.md +22 -0
  28. package/docs/CompleteRegisterRequestBody.md +32 -0
  29. package/docs/{UpdateUserRequestBodyLevelBySportsInner.md → CompleteRegisterRequestBodyLevelBySportsInner.md} +3 -3
  30. package/docs/EmailExistsResponse.md +2 -0
  31. package/docs/EventsStaffApi.md +54 -0
  32. package/docs/EventsWaitListStaffApi.md +1 -1
  33. package/docs/GoogleAuthResponse.md +2 -0
  34. package/docs/IUserAttributes.md +4 -0
  35. package/docs/LoginResponse.md +2 -0
  36. package/docs/StaffEventBookingInvoiceResponse.md +32 -0
  37. package/docs/StaffEventBookingResponse.md +40 -0
  38. package/docs/StaffEventDetailResponse.md +22 -0
  39. package/docs/StaffUserProfileResponse.md +4 -0
  40. package/docs/UpdateUserRequestBody.md +2 -2
  41. package/docs/UserProfileResponse.md +4 -0
  42. package/docs/UsersApi.md +104 -0
  43. package/index.ts +1 -1
  44. package/package.json +1 -1
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.171
7
+ * The version of the OpenAPI document: 1.0.172
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -229,6 +229,25 @@ export interface AgendaBookingSlot {
229
229
  */
230
230
  'isIndoor'?: boolean;
231
231
  }
232
+ /**
233
+ *
234
+ * @export
235
+ * @interface AppRegisterRequestBody
236
+ */
237
+ export interface AppRegisterRequestBody {
238
+ /**
239
+ *
240
+ * @type {string}
241
+ * @memberof AppRegisterRequestBody
242
+ */
243
+ 'email': string;
244
+ /**
245
+ *
246
+ * @type {string}
247
+ * @memberof AppRegisterRequestBody
248
+ */
249
+ 'password': string;
250
+ }
232
251
  /**
233
252
  *
234
253
  * @export
@@ -3649,6 +3668,74 @@ export interface ClubUserCountResponse {
3649
3668
  */
3650
3669
  'count': number;
3651
3670
  }
3671
+ /**
3672
+ *
3673
+ * @export
3674
+ * @interface CompleteRegisterRequestBody
3675
+ */
3676
+ export interface CompleteRegisterRequestBody {
3677
+ /**
3678
+ *
3679
+ * @type {string}
3680
+ * @memberof CompleteRegisterRequestBody
3681
+ */
3682
+ 'firstName': string;
3683
+ /**
3684
+ *
3685
+ * @type {string}
3686
+ * @memberof CompleteRegisterRequestBody
3687
+ */
3688
+ 'lastName': string;
3689
+ /**
3690
+ *
3691
+ * @type {string}
3692
+ * @memberof CompleteRegisterRequestBody
3693
+ */
3694
+ 'username': string;
3695
+ /**
3696
+ *
3697
+ * @type {Array<CompleteRegisterRequestBodyLevelBySportsInner>}
3698
+ * @memberof CompleteRegisterRequestBody
3699
+ */
3700
+ 'levelBySports': Array<CompleteRegisterRequestBodyLevelBySportsInner>;
3701
+ /**
3702
+ *
3703
+ * @type {string}
3704
+ * @memberof CompleteRegisterRequestBody
3705
+ */
3706
+ 'city': string;
3707
+ /**
3708
+ *
3709
+ * @type {string}
3710
+ * @memberof CompleteRegisterRequestBody
3711
+ */
3712
+ 'organizationId'?: string;
3713
+ /**
3714
+ *
3715
+ * @type {string}
3716
+ * @memberof CompleteRegisterRequestBody
3717
+ */
3718
+ 'organizationEmail'?: string;
3719
+ }
3720
+ /**
3721
+ *
3722
+ * @export
3723
+ * @interface CompleteRegisterRequestBodyLevelBySportsInner
3724
+ */
3725
+ export interface CompleteRegisterRequestBodyLevelBySportsInner {
3726
+ /**
3727
+ *
3728
+ * @type {string}
3729
+ * @memberof CompleteRegisterRequestBodyLevelBySportsInner
3730
+ */
3731
+ 'level': string;
3732
+ /**
3733
+ *
3734
+ * @type {string}
3735
+ * @memberof CompleteRegisterRequestBodyLevelBySportsInner
3736
+ */
3737
+ 'sport': string;
3738
+ }
3652
3739
  /**
3653
3740
  *
3654
3741
  * @export
@@ -4901,6 +4988,12 @@ export interface EmailExistsResponse {
4901
4988
  * @memberof EmailExistsResponse
4902
4989
  */
4903
4990
  'exists': boolean;
4991
+ /**
4992
+ *
4993
+ * @type {boolean}
4994
+ * @memberof EmailExistsResponse
4995
+ */
4996
+ 'verified': boolean;
4904
4997
  }
4905
4998
  /**
4906
4999
  *
@@ -6338,6 +6431,12 @@ export interface GoogleAuthResponse {
6338
6431
  * @memberof GoogleAuthResponse
6339
6432
  */
6340
6433
  'role': string | null;
6434
+ /**
6435
+ *
6436
+ * @type {boolean}
6437
+ * @memberof GoogleAuthResponse
6438
+ */
6439
+ 'isOnBoardingInAppCompleted': boolean;
6341
6440
  /**
6342
6441
  *
6343
6442
  * @type {GoogleAuthResponseUser}
@@ -6670,6 +6769,18 @@ export interface IUserAttributes {
6670
6769
  * @memberof IUserAttributes
6671
6770
  */
6672
6771
  'isClient'?: boolean;
6772
+ /**
6773
+ *
6774
+ * @type {boolean}
6775
+ * @memberof IUserAttributes
6776
+ */
6777
+ 'isOnBoardingInAppCompleted'?: boolean;
6778
+ /**
6779
+ *
6780
+ * @type {string}
6781
+ * @memberof IUserAttributes
6782
+ */
6783
+ 'createdFrom'?: IUserAttributesCreatedFromEnum;
6673
6784
  /**
6674
6785
  *
6675
6786
  * @type {string}
@@ -6726,6 +6837,12 @@ export interface IUserAttributes {
6726
6837
  'stripeCustomerId'?: string;
6727
6838
  }
6728
6839
 
6840
+ export const IUserAttributesCreatedFromEnum = {
6841
+ App: 'app',
6842
+ Website: 'website'
6843
+ } as const;
6844
+
6845
+ export type IUserAttributesCreatedFromEnum = typeof IUserAttributesCreatedFromEnum[keyof typeof IUserAttributesCreatedFromEnum];
6729
6846
 
6730
6847
  /**
6731
6848
  *
@@ -7578,6 +7695,12 @@ export interface LoginResponse {
7578
7695
  * @memberof LoginResponse
7579
7696
  */
7580
7697
  'role': string | null;
7698
+ /**
7699
+ *
7700
+ * @type {boolean}
7701
+ * @memberof LoginResponse
7702
+ */
7703
+ 'isOnBoardingInAppCompleted': boolean;
7581
7704
  }
7582
7705
  /**
7583
7706
  * Réponse listant les clubs gérés par l\'utilisateur
@@ -10441,6 +10564,151 @@ export interface StaffCreateBookingRequest {
10441
10564
  }
10442
10565
 
10443
10566
 
10567
+ /**
10568
+ *
10569
+ * @export
10570
+ * @interface StaffEventBookingInvoiceResponse
10571
+ */
10572
+ export interface StaffEventBookingInvoiceResponse {
10573
+ /**
10574
+ *
10575
+ * @type {string}
10576
+ * @memberof StaffEventBookingInvoiceResponse
10577
+ */
10578
+ 'id': string;
10579
+ /**
10580
+ *
10581
+ * @type {string}
10582
+ * @memberof StaffEventBookingInvoiceResponse
10583
+ */
10584
+ 'userId': string;
10585
+ /**
10586
+ *
10587
+ * @type {InvoiceStatus}
10588
+ * @memberof StaffEventBookingInvoiceResponse
10589
+ */
10590
+ 'status': InvoiceStatus;
10591
+ /**
10592
+ *
10593
+ * @type {number}
10594
+ * @memberof StaffEventBookingInvoiceResponse
10595
+ */
10596
+ 'amount': number;
10597
+ /**
10598
+ *
10599
+ * @type {PaymentMethod}
10600
+ * @memberof StaffEventBookingInvoiceResponse
10601
+ */
10602
+ 'paymentMethod': PaymentMethod;
10603
+ /**
10604
+ *
10605
+ * @type {string}
10606
+ * @memberof StaffEventBookingInvoiceResponse
10607
+ */
10608
+ 'createdAt': string;
10609
+ /**
10610
+ *
10611
+ * @type {string}
10612
+ * @memberof StaffEventBookingInvoiceResponse
10613
+ */
10614
+ 'updatedAt': string;
10615
+ }
10616
+
10617
+
10618
+ /**
10619
+ *
10620
+ * @export
10621
+ * @interface StaffEventBookingResponse
10622
+ */
10623
+ export interface StaffEventBookingResponse {
10624
+ /**
10625
+ *
10626
+ * @type {string}
10627
+ * @memberof StaffEventBookingResponse
10628
+ */
10629
+ 'id': string;
10630
+ /**
10631
+ *
10632
+ * @type {string}
10633
+ * @memberof StaffEventBookingResponse
10634
+ */
10635
+ 'eventId': string;
10636
+ /**
10637
+ *
10638
+ * @type {EventBookingStatus}
10639
+ * @memberof StaffEventBookingResponse
10640
+ */
10641
+ 'status': EventBookingStatus;
10642
+ /**
10643
+ *
10644
+ * @type {boolean}
10645
+ * @memberof StaffEventBookingResponse
10646
+ */
10647
+ 'isOpen': boolean;
10648
+ /**
10649
+ *
10650
+ * @type {string}
10651
+ * @memberof StaffEventBookingResponse
10652
+ */
10653
+ 'teamName'?: string | null;
10654
+ /**
10655
+ *
10656
+ * @type {Array<EventUser>}
10657
+ * @memberof StaffEventBookingResponse
10658
+ */
10659
+ 'players': Array<EventUser>;
10660
+ /**
10661
+ *
10662
+ * @type {Array<StaffEventBookingInvoiceResponse>}
10663
+ * @memberof StaffEventBookingResponse
10664
+ */
10665
+ 'invoices': Array<StaffEventBookingInvoiceResponse>;
10666
+ /**
10667
+ *
10668
+ * @type {string}
10669
+ * @memberof StaffEventBookingResponse
10670
+ */
10671
+ 'limitSetupDate'?: string | null;
10672
+ /**
10673
+ *
10674
+ * @type {string}
10675
+ * @memberof StaffEventBookingResponse
10676
+ */
10677
+ 'limitCancellationDate'?: string | null;
10678
+ /**
10679
+ *
10680
+ * @type {string}
10681
+ * @memberof StaffEventBookingResponse
10682
+ */
10683
+ 'createdAt': string;
10684
+ /**
10685
+ *
10686
+ * @type {string}
10687
+ * @memberof StaffEventBookingResponse
10688
+ */
10689
+ 'updatedAt': string;
10690
+ }
10691
+
10692
+
10693
+ /**
10694
+ *
10695
+ * @export
10696
+ * @interface StaffEventDetailResponse
10697
+ */
10698
+ export interface StaffEventDetailResponse {
10699
+ /**
10700
+ *
10701
+ * @type {EventResponse}
10702
+ * @memberof StaffEventDetailResponse
10703
+ */
10704
+ 'event': EventResponse;
10705
+ /**
10706
+ *
10707
+ * @type {Array<StaffEventBookingResponse>}
10708
+ * @memberof StaffEventDetailResponse
10709
+ */
10710
+ 'bookings': Array<StaffEventBookingResponse>;
10711
+ }
10444
10712
  /**
10445
10713
  *
10446
10714
  * @export
@@ -10610,6 +10878,18 @@ export interface StaffUserProfileResponse {
10610
10878
  * @memberof StaffUserProfileResponse
10611
10879
  */
10612
10880
  'isClient'?: boolean;
10881
+ /**
10882
+ *
10883
+ * @type {boolean}
10884
+ * @memberof StaffUserProfileResponse
10885
+ */
10886
+ 'isOnBoardingInAppCompleted'?: boolean;
10887
+ /**
10888
+ *
10889
+ * @type {string}
10890
+ * @memberof StaffUserProfileResponse
10891
+ */
10892
+ 'createdFrom'?: StaffUserProfileResponseCreatedFromEnum;
10613
10893
  /**
10614
10894
  *
10615
10895
  * @type {string}
@@ -10678,6 +10958,12 @@ export interface StaffUserProfileResponse {
10678
10958
  'creditOnMyClub'?: number;
10679
10959
  }
10680
10960
 
10961
+ export const StaffUserProfileResponseCreatedFromEnum = {
10962
+ App: 'app',
10963
+ Website: 'website'
10964
+ } as const;
10965
+
10966
+ export type StaffUserProfileResponseCreatedFromEnum = typeof StaffUserProfileResponseCreatedFromEnum[keyof typeof StaffUserProfileResponseCreatedFromEnum];
10681
10967
 
10682
10968
  /**
10683
10969
  *
@@ -12023,10 +12309,10 @@ export interface UpdateUserRequestBody {
12023
12309
  'profilePicture'?: string;
12024
12310
  /**
12025
12311
  *
12026
- * @type {Array<UpdateUserRequestBodyLevelBySportsInner>}
12312
+ * @type {Array<CompleteRegisterRequestBodyLevelBySportsInner>}
12027
12313
  * @memberof UpdateUserRequestBody
12028
12314
  */
12029
- 'levelBySports'?: Array<UpdateUserRequestBodyLevelBySportsInner>;
12315
+ 'levelBySports'?: Array<CompleteRegisterRequestBodyLevelBySportsInner>;
12030
12316
  /**
12031
12317
  *
12032
12318
  * @type {Array<UpdateUserRequestBodyCharacteristicsInner>}
@@ -12047,10 +12333,10 @@ export interface UpdateUserRequestBody {
12047
12333
  'description'?: string;
12048
12334
  /**
12049
12335
  *
12050
- * @type {RegisterRequestBodyLocation}
12336
+ * @type {IUserLocation}
12051
12337
  * @memberof UpdateUserRequestBody
12052
12338
  */
12053
- 'location'?: RegisterRequestBodyLocation;
12339
+ 'location'?: IUserLocation;
12054
12340
  }
12055
12341
 
12056
12342
 
@@ -12073,25 +12359,6 @@ export interface UpdateUserRequestBodyCharacteristicsInner {
12073
12359
  */
12074
12360
  'key': string;
12075
12361
  }
12076
- /**
12077
- *
12078
- * @export
12079
- * @interface UpdateUserRequestBodyLevelBySportsInner
12080
- */
12081
- export interface UpdateUserRequestBodyLevelBySportsInner {
12082
- /**
12083
- *
12084
- * @type {string}
12085
- * @memberof UpdateUserRequestBodyLevelBySportsInner
12086
- */
12087
- 'level': string;
12088
- /**
12089
- *
12090
- * @type {string}
12091
- * @memberof UpdateUserRequestBodyLevelBySportsInner
12092
- */
12093
- 'sport': string;
12094
- }
12095
12362
  /**
12096
12363
  *
12097
12364
  * @export
@@ -12718,6 +12985,18 @@ export interface UserProfileResponse {
12718
12985
  * @memberof UserProfileResponse
12719
12986
  */
12720
12987
  'isClient'?: boolean;
12988
+ /**
12989
+ *
12990
+ * @type {boolean}
12991
+ * @memberof UserProfileResponse
12992
+ */
12993
+ 'isOnBoardingInAppCompleted'?: boolean;
12994
+ /**
12995
+ *
12996
+ * @type {string}
12997
+ * @memberof UserProfileResponse
12998
+ */
12999
+ 'createdFrom'?: UserProfileResponseCreatedFromEnum;
12721
13000
  /**
12722
13001
  *
12723
13002
  * @type {string}
@@ -12822,6 +13101,12 @@ export interface UserProfileResponse {
12822
13101
  'clubId'?: string | null;
12823
13102
  }
12824
13103
 
13104
+ export const UserProfileResponseCreatedFromEnum = {
13105
+ App: 'app',
13106
+ Website: 'website'
13107
+ } as const;
13108
+
13109
+ export type UserProfileResponseCreatedFromEnum = typeof UserProfileResponseCreatedFromEnum[keyof typeof UserProfileResponseCreatedFromEnum];
12825
13110
 
12826
13111
  /**
12827
13112
  *
@@ -26017,6 +26302,43 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
26017
26302
 
26018
26303
 
26019
26304
 
26305
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
26306
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26307
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26308
+
26309
+ return {
26310
+ url: toPathString(localVarUrlObj),
26311
+ options: localVarRequestOptions,
26312
+ };
26313
+ },
26314
+ /**
26315
+ * Get a specific event by ID (staff)
26316
+ * @param {string} eventId
26317
+ * @param {*} [options] Override http request option.
26318
+ * @throws {RequiredError}
26319
+ */
26320
+ getEventByIdForStaff: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26321
+ // verify required parameter 'eventId' is not null or undefined
26322
+ assertParamExists('getEventByIdForStaff', 'eventId', eventId)
26323
+ const localVarPath = `/api/events/staff/{eventId}`
26324
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
26325
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
26326
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26327
+ let baseOptions;
26328
+ if (configuration) {
26329
+ baseOptions = configuration.baseOptions;
26330
+ }
26331
+
26332
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
26333
+ const localVarHeaderParameter = {} as any;
26334
+ const localVarQueryParameter = {} as any;
26335
+
26336
+ // authentication bearerAuth required
26337
+ // http bearer authentication required
26338
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
26339
+
26340
+
26341
+
26020
26342
  setSearchParams(localVarUrlObj, localVarQueryParameter);
26021
26343
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26022
26344
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -26214,6 +26536,18 @@ export const EventsStaffApiFp = function(configuration?: Configuration) {
26214
26536
  const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getDailyEvents']?.[localVarOperationServerIndex]?.url;
26215
26537
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26216
26538
  },
26539
+ /**
26540
+ * Get a specific event by ID (staff)
26541
+ * @param {string} eventId
26542
+ * @param {*} [options] Override http request option.
26543
+ * @throws {RequiredError}
26544
+ */
26545
+ async getEventByIdForStaff(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffEventDetailResponse>> {
26546
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getEventByIdForStaff(eventId, options);
26547
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
26548
+ const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getEventByIdForStaff']?.[localVarOperationServerIndex]?.url;
26549
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26550
+ },
26217
26551
  /**
26218
26552
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
26219
26553
  * @param {*} [options] Override http request option.
@@ -26285,6 +26619,15 @@ export const EventsStaffApiFactory = function (configuration?: Configuration, ba
26285
26619
  getDailyEvents(requestParameters: EventsStaffApiGetDailyEventsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse> {
26286
26620
  return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
26287
26621
  },
26622
+ /**
26623
+ * Get a specific event by ID (staff)
26624
+ * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
26625
+ * @param {*} [options] Override http request option.
26626
+ * @throws {RequiredError}
26627
+ */
26628
+ getEventByIdForStaff(requestParameters: EventsStaffApiGetEventByIdForStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<StaffEventDetailResponse> {
26629
+ return localVarFp.getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
26630
+ },
26288
26631
  /**
26289
26632
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
26290
26633
  * @param {*} [options] Override http request option.
@@ -26377,6 +26720,20 @@ export interface EventsStaffApiGetDailyEventsRequest {
26377
26720
  readonly sportId?: string
26378
26721
  }
26379
26722
 
26723
+ /**
26724
+ * Request parameters for getEventByIdForStaff operation in EventsStaffApi.
26725
+ * @export
26726
+ * @interface EventsStaffApiGetEventByIdForStaffRequest
26727
+ */
26728
+ export interface EventsStaffApiGetEventByIdForStaffRequest {
26729
+ /**
26730
+ *
26731
+ * @type {string}
26732
+ * @memberof EventsStaffApiGetEventByIdForStaff
26733
+ */
26734
+ readonly eventId: string
26735
+ }
26736
+
26380
26737
  /**
26381
26738
  * Request parameters for getMonthlyEvents operation in EventsStaffApi.
26382
26739
  * @export
@@ -26490,6 +26847,17 @@ export class EventsStaffApi extends BaseAPI {
26490
26847
  return EventsStaffApiFp(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
26491
26848
  }
26492
26849
 
26850
+ /**
26851
+ * Get a specific event by ID (staff)
26852
+ * @param {EventsStaffApiGetEventByIdForStaffRequest} requestParameters Request parameters.
26853
+ * @param {*} [options] Override http request option.
26854
+ * @throws {RequiredError}
26855
+ * @memberof EventsStaffApi
26856
+ */
26857
+ public getEventByIdForStaff(requestParameters: EventsStaffApiGetEventByIdForStaffRequest, options?: RawAxiosRequestConfig) {
26858
+ return EventsStaffApiFp(this.configuration).getEventByIdForStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
26859
+ }
26860
+
26493
26861
  /**
26494
26862
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
26495
26863
  * @param {*} [options] Override http request option.
@@ -26922,7 +27290,7 @@ export const EventsWaitListStaffApiAxiosParamCreator = function (configuration?:
26922
27290
  };
26923
27291
  },
26924
27292
  /**
26925
- * Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
27293
+ * Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
26926
27294
  * @param {string} eventId
26927
27295
  * @param {*} [options] Override http request option.
26928
27296
  * @throws {RequiredError}
@@ -26981,7 +27349,7 @@ export const EventsWaitListStaffApiFp = function(configuration?: Configuration)
26981
27349
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26982
27350
  },
26983
27351
  /**
26984
- * Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
27352
+ * Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
26985
27353
  * @param {string} eventId
26986
27354
  * @param {*} [options] Override http request option.
26987
27355
  * @throws {RequiredError}
@@ -27012,7 +27380,7 @@ export const EventsWaitListStaffApiFactory = function (configuration?: Configura
27012
27380
  return localVarFp.getWaitListForEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
27013
27381
  },
27014
27382
  /**
27015
- * Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
27383
+ * Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
27016
27384
  * @param {EventsWaitListStaffApiProcessWaitListRequest} requestParameters Request parameters.
27017
27385
  * @param {*} [options] Override http request option.
27018
27386
  * @throws {RequiredError}
@@ -27070,7 +27438,7 @@ export class EventsWaitListStaffApi extends BaseAPI {
27070
27438
  }
27071
27439
 
27072
27440
  /**
27073
- * Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
27441
+ * Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
27074
27442
  * @param {EventsWaitListStaffApiProcessWaitListRequest} requestParameters Request parameters.
27075
27443
  * @param {*} [options] Override http request option.
27076
27444
  * @throws {RequiredError}
@@ -29232,6 +29600,45 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
29232
29600
  options: localVarRequestOptions,
29233
29601
  };
29234
29602
  },
29603
+ /**
29604
+ *
29605
+ * @param {CompleteRegisterRequestBody} completeRegisterRequestBody
29606
+ * @param {*} [options] Override http request option.
29607
+ * @throws {RequiredError}
29608
+ */
29609
+ completeRegister: async (completeRegisterRequestBody: CompleteRegisterRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29610
+ // verify required parameter 'completeRegisterRequestBody' is not null or undefined
29611
+ assertParamExists('completeRegister', 'completeRegisterRequestBody', completeRegisterRequestBody)
29612
+ const localVarPath = `/api/users/complete-register`;
29613
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
29614
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
29615
+ let baseOptions;
29616
+ if (configuration) {
29617
+ baseOptions = configuration.baseOptions;
29618
+ }
29619
+
29620
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
29621
+ const localVarHeaderParameter = {} as any;
29622
+ const localVarQueryParameter = {} as any;
29623
+
29624
+ // authentication bearerAuth required
29625
+ // http bearer authentication required
29626
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
29627
+
29628
+
29629
+
29630
+ localVarHeaderParameter['Content-Type'] = 'application/json';
29631
+
29632
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
29633
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29634
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29635
+ localVarRequestOptions.data = serializeDataIfNeeded(completeRegisterRequestBody, localVarRequestOptions, configuration)
29636
+
29637
+ return {
29638
+ url: toPathString(localVarUrlObj),
29639
+ options: localVarRequestOptions,
29640
+ };
29641
+ },
29235
29642
  /**
29236
29643
  *
29237
29644
  * @param {*} [options] Override http request option.
@@ -30063,6 +30470,41 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
30063
30470
  options: localVarRequestOptions,
30064
30471
  };
30065
30472
  },
30473
+ /**
30474
+ *
30475
+ * @param {AppRegisterRequestBody} appRegisterRequestBody
30476
+ * @param {*} [options] Override http request option.
30477
+ * @throws {RequiredError}
30478
+ */
30479
+ registerFromApp: async (appRegisterRequestBody: AppRegisterRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
30480
+ // verify required parameter 'appRegisterRequestBody' is not null or undefined
30481
+ assertParamExists('registerFromApp', 'appRegisterRequestBody', appRegisterRequestBody)
30482
+ const localVarPath = `/api/users/register-app`;
30483
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
30484
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
30485
+ let baseOptions;
30486
+ if (configuration) {
30487
+ baseOptions = configuration.baseOptions;
30488
+ }
30489
+
30490
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
30491
+ const localVarHeaderParameter = {} as any;
30492
+ const localVarQueryParameter = {} as any;
30493
+
30494
+
30495
+
30496
+ localVarHeaderParameter['Content-Type'] = 'application/json';
30497
+
30498
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
30499
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
30500
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
30501
+ localVarRequestOptions.data = serializeDataIfNeeded(appRegisterRequestBody, localVarRequestOptions, configuration)
30502
+
30503
+ return {
30504
+ url: toPathString(localVarUrlObj),
30505
+ options: localVarRequestOptions,
30506
+ };
30507
+ },
30066
30508
  /**
30067
30509
  *
30068
30510
  * @param {string} clubId
@@ -30598,6 +31040,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
30598
31040
  const localVarOperationServerBasePath = operationServerMap['UsersApi.changePassword']?.[localVarOperationServerIndex]?.url;
30599
31041
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30600
31042
  },
31043
+ /**
31044
+ *
31045
+ * @param {CompleteRegisterRequestBody} completeRegisterRequestBody
31046
+ * @param {*} [options] Override http request option.
31047
+ * @throws {RequiredError}
31048
+ */
31049
+ async completeRegister(completeRegisterRequestBody: CompleteRegisterRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserAttributes>> {
31050
+ const localVarAxiosArgs = await localVarAxiosParamCreator.completeRegister(completeRegisterRequestBody, options);
31051
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
31052
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.completeRegister']?.[localVarOperationServerIndex]?.url;
31053
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
31054
+ },
30601
31055
  /**
30602
31056
  *
30603
31057
  * @param {*} [options] Override http request option.
@@ -30861,6 +31315,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
30861
31315
  const localVarOperationServerBasePath = operationServerMap['UsersApi.register']?.[localVarOperationServerIndex]?.url;
30862
31316
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30863
31317
  },
31318
+ /**
31319
+ *
31320
+ * @param {AppRegisterRequestBody} appRegisterRequestBody
31321
+ * @param {*} [options] Override http request option.
31322
+ * @throws {RequiredError}
31323
+ */
31324
+ async registerFromApp(appRegisterRequestBody: AppRegisterRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserAttributes>> {
31325
+ const localVarAxiosArgs = await localVarAxiosParamCreator.registerFromApp(appRegisterRequestBody, options);
31326
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
31327
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.registerFromApp']?.[localVarOperationServerIndex]?.url;
31328
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
31329
+ },
30864
31330
  /**
30865
31331
  *
30866
31332
  * @param {string} clubId
@@ -31062,6 +31528,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
31062
31528
  changePassword(requestParameters: UsersApiChangePasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<ChangePasswordResponse> {
31063
31529
  return localVarFp.changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(axios, basePath));
31064
31530
  },
31531
+ /**
31532
+ *
31533
+ * @param {UsersApiCompleteRegisterRequest} requestParameters Request parameters.
31534
+ * @param {*} [options] Override http request option.
31535
+ * @throws {RequiredError}
31536
+ */
31537
+ completeRegister(requestParameters: UsersApiCompleteRegisterRequest, options?: RawAxiosRequestConfig): AxiosPromise<IUserAttributes> {
31538
+ return localVarFp.completeRegister(requestParameters.completeRegisterRequestBody, options).then((request) => request(axios, basePath));
31539
+ },
31065
31540
  /**
31066
31541
  *
31067
31542
  * @param {*} [options] Override http request option.
@@ -31243,6 +31718,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
31243
31718
  register(requestParameters: UsersApiRegisterRequest, options?: RawAxiosRequestConfig): AxiosPromise<IUserAttributes> {
31244
31719
  return localVarFp.register(requestParameters.registerRequestBody, options).then((request) => request(axios, basePath));
31245
31720
  },
31721
+ /**
31722
+ *
31723
+ * @param {UsersApiRegisterFromAppRequest} requestParameters Request parameters.
31724
+ * @param {*} [options] Override http request option.
31725
+ * @throws {RequiredError}
31726
+ */
31727
+ registerFromApp(requestParameters: UsersApiRegisterFromAppRequest, options?: RawAxiosRequestConfig): AxiosPromise<IUserAttributes> {
31728
+ return localVarFp.registerFromApp(requestParameters.appRegisterRequestBody, options).then((request) => request(axios, basePath));
31729
+ },
31246
31730
  /**
31247
31731
  *
31248
31732
  * @param {UsersApiRemoveFavoriteClubRequest} requestParameters Request parameters.
@@ -31418,6 +31902,20 @@ export interface UsersApiChangePasswordRequest {
31418
31902
  readonly changePasswordRequestBody: ChangePasswordRequestBody
31419
31903
  }
31420
31904
 
31905
+ /**
31906
+ * Request parameters for completeRegister operation in UsersApi.
31907
+ * @export
31908
+ * @interface UsersApiCompleteRegisterRequest
31909
+ */
31910
+ export interface UsersApiCompleteRegisterRequest {
31911
+ /**
31912
+ *
31913
+ * @type {CompleteRegisterRequestBody}
31914
+ * @memberof UsersApiCompleteRegister
31915
+ */
31916
+ readonly completeRegisterRequestBody: CompleteRegisterRequestBody
31917
+ }
31918
+
31421
31919
  /**
31422
31920
  * Request parameters for getBookingDetail operation in UsersApi.
31423
31921
  * @export
@@ -31733,6 +32231,20 @@ export interface UsersApiRegisterRequest {
31733
32231
  readonly registerRequestBody: RegisterRequestBody
31734
32232
  }
31735
32233
 
32234
+ /**
32235
+ * Request parameters for registerFromApp operation in UsersApi.
32236
+ * @export
32237
+ * @interface UsersApiRegisterFromAppRequest
32238
+ */
32239
+ export interface UsersApiRegisterFromAppRequest {
32240
+ /**
32241
+ *
32242
+ * @type {AppRegisterRequestBody}
32243
+ * @memberof UsersApiRegisterFromApp
32244
+ */
32245
+ readonly appRegisterRequestBody: AppRegisterRequestBody
32246
+ }
32247
+
31736
32248
  /**
31737
32249
  * Request parameters for removeFavoriteClub operation in UsersApi.
31738
32250
  * @export
@@ -31952,6 +32464,17 @@ export class UsersApi extends BaseAPI {
31952
32464
  return UsersApiFp(this.configuration).changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(this.axios, this.basePath));
31953
32465
  }
31954
32466
 
32467
+ /**
32468
+ *
32469
+ * @param {UsersApiCompleteRegisterRequest} requestParameters Request parameters.
32470
+ * @param {*} [options] Override http request option.
32471
+ * @throws {RequiredError}
32472
+ * @memberof UsersApi
32473
+ */
32474
+ public completeRegister(requestParameters: UsersApiCompleteRegisterRequest, options?: RawAxiosRequestConfig) {
32475
+ return UsersApiFp(this.configuration).completeRegister(requestParameters.completeRegisterRequestBody, options).then((request) => request(this.axios, this.basePath));
32476
+ }
32477
+
31955
32478
  /**
31956
32479
  *
31957
32480
  * @param {*} [options] Override http request option.
@@ -32175,6 +32698,17 @@ export class UsersApi extends BaseAPI {
32175
32698
  return UsersApiFp(this.configuration).register(requestParameters.registerRequestBody, options).then((request) => request(this.axios, this.basePath));
32176
32699
  }
32177
32700
 
32701
+ /**
32702
+ *
32703
+ * @param {UsersApiRegisterFromAppRequest} requestParameters Request parameters.
32704
+ * @param {*} [options] Override http request option.
32705
+ * @throws {RequiredError}
32706
+ * @memberof UsersApi
32707
+ */
32708
+ public registerFromApp(requestParameters: UsersApiRegisterFromAppRequest, options?: RawAxiosRequestConfig) {
32709
+ return UsersApiFp(this.configuration).registerFromApp(requestParameters.appRegisterRequestBody, options).then((request) => request(this.axios, this.basePath));
32710
+ }
32711
+
32178
32712
  /**
32179
32713
  *
32180
32714
  * @param {UsersApiRemoveFavoriteClubRequest} requestParameters Request parameters.