@tennac-booking/sdk 1.0.171 → 1.0.172

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/dist/esm/api.d.ts CHANGED
@@ -217,6 +217,25 @@ export interface AgendaBookingSlot {
217
217
  */
218
218
  'isIndoor'?: boolean;
219
219
  }
220
+ /**
221
+ *
222
+ * @export
223
+ * @interface AppRegisterRequestBody
224
+ */
225
+ export interface AppRegisterRequestBody {
226
+ /**
227
+ *
228
+ * @type {string}
229
+ * @memberof AppRegisterRequestBody
230
+ */
231
+ 'email': string;
232
+ /**
233
+ *
234
+ * @type {string}
235
+ * @memberof AppRegisterRequestBody
236
+ */
237
+ 'password': string;
238
+ }
220
239
  /**
221
240
  *
222
241
  * @export
@@ -3598,6 +3617,74 @@ export interface ClubUserCountResponse {
3598
3617
  */
3599
3618
  'count': number;
3600
3619
  }
3620
+ /**
3621
+ *
3622
+ * @export
3623
+ * @interface CompleteRegisterRequestBody
3624
+ */
3625
+ export interface CompleteRegisterRequestBody {
3626
+ /**
3627
+ *
3628
+ * @type {string}
3629
+ * @memberof CompleteRegisterRequestBody
3630
+ */
3631
+ 'firstName': string;
3632
+ /**
3633
+ *
3634
+ * @type {string}
3635
+ * @memberof CompleteRegisterRequestBody
3636
+ */
3637
+ 'lastName': string;
3638
+ /**
3639
+ *
3640
+ * @type {string}
3641
+ * @memberof CompleteRegisterRequestBody
3642
+ */
3643
+ 'username': string;
3644
+ /**
3645
+ *
3646
+ * @type {Array<CompleteRegisterRequestBodyLevelBySportsInner>}
3647
+ * @memberof CompleteRegisterRequestBody
3648
+ */
3649
+ 'levelBySports': Array<CompleteRegisterRequestBodyLevelBySportsInner>;
3650
+ /**
3651
+ *
3652
+ * @type {string}
3653
+ * @memberof CompleteRegisterRequestBody
3654
+ */
3655
+ 'city': string;
3656
+ /**
3657
+ *
3658
+ * @type {string}
3659
+ * @memberof CompleteRegisterRequestBody
3660
+ */
3661
+ 'organizationId'?: string;
3662
+ /**
3663
+ *
3664
+ * @type {string}
3665
+ * @memberof CompleteRegisterRequestBody
3666
+ */
3667
+ 'organizationEmail'?: string;
3668
+ }
3669
+ /**
3670
+ *
3671
+ * @export
3672
+ * @interface CompleteRegisterRequestBodyLevelBySportsInner
3673
+ */
3674
+ export interface CompleteRegisterRequestBodyLevelBySportsInner {
3675
+ /**
3676
+ *
3677
+ * @type {string}
3678
+ * @memberof CompleteRegisterRequestBodyLevelBySportsInner
3679
+ */
3680
+ 'level': string;
3681
+ /**
3682
+ *
3683
+ * @type {string}
3684
+ * @memberof CompleteRegisterRequestBodyLevelBySportsInner
3685
+ */
3686
+ 'sport': string;
3687
+ }
3601
3688
  /**
3602
3689
  *
3603
3690
  * @export
@@ -4810,6 +4897,12 @@ export interface EmailExistsResponse {
4810
4897
  * @memberof EmailExistsResponse
4811
4898
  */
4812
4899
  'exists': boolean;
4900
+ /**
4901
+ *
4902
+ * @type {boolean}
4903
+ * @memberof EmailExistsResponse
4904
+ */
4905
+ 'verified': boolean;
4813
4906
  }
4814
4907
  /**
4815
4908
  *
@@ -6229,6 +6322,12 @@ export interface GoogleAuthResponse {
6229
6322
  * @memberof GoogleAuthResponse
6230
6323
  */
6231
6324
  'role': string | null;
6325
+ /**
6326
+ *
6327
+ * @type {boolean}
6328
+ * @memberof GoogleAuthResponse
6329
+ */
6330
+ 'isOnBoardingInAppCompleted': boolean;
6232
6331
  /**
6233
6332
  *
6234
6333
  * @type {GoogleAuthResponseUser}
@@ -6559,6 +6658,18 @@ export interface IUserAttributes {
6559
6658
  * @memberof IUserAttributes
6560
6659
  */
6561
6660
  'isClient'?: boolean;
6661
+ /**
6662
+ *
6663
+ * @type {boolean}
6664
+ * @memberof IUserAttributes
6665
+ */
6666
+ 'isOnBoardingInAppCompleted'?: boolean;
6667
+ /**
6668
+ *
6669
+ * @type {string}
6670
+ * @memberof IUserAttributes
6671
+ */
6672
+ 'createdFrom'?: IUserAttributesCreatedFromEnum;
6562
6673
  /**
6563
6674
  *
6564
6675
  * @type {string}
@@ -6616,6 +6727,11 @@ export interface IUserAttributes {
6616
6727
  */
6617
6728
  'stripeCustomerId'?: string;
6618
6729
  }
6730
+ export declare const IUserAttributesCreatedFromEnum: {
6731
+ readonly App: "app";
6732
+ readonly Website: "website";
6733
+ };
6734
+ export type IUserAttributesCreatedFromEnum = typeof IUserAttributesCreatedFromEnum[keyof typeof IUserAttributesCreatedFromEnum];
6619
6735
  /**
6620
6736
  *
6621
6737
  * @export
@@ -7448,6 +7564,12 @@ export interface LoginResponse {
7448
7564
  * @memberof LoginResponse
7449
7565
  */
7450
7566
  'role': string | null;
7567
+ /**
7568
+ *
7569
+ * @type {boolean}
7570
+ * @memberof LoginResponse
7571
+ */
7572
+ 'isOnBoardingInAppCompleted': boolean;
7451
7573
  }
7452
7574
  /**
7453
7575
  * Réponse listant les clubs gérés par l\'utilisateur
@@ -10424,6 +10546,18 @@ export interface StaffUserProfileResponse {
10424
10546
  * @memberof StaffUserProfileResponse
10425
10547
  */
10426
10548
  'isClient'?: boolean;
10549
+ /**
10550
+ *
10551
+ * @type {boolean}
10552
+ * @memberof StaffUserProfileResponse
10553
+ */
10554
+ 'isOnBoardingInAppCompleted'?: boolean;
10555
+ /**
10556
+ *
10557
+ * @type {string}
10558
+ * @memberof StaffUserProfileResponse
10559
+ */
10560
+ 'createdFrom'?: StaffUserProfileResponseCreatedFromEnum;
10427
10561
  /**
10428
10562
  *
10429
10563
  * @type {string}
@@ -10493,6 +10627,11 @@ export interface StaffUserProfileResponse {
10493
10627
  */
10494
10628
  'creditOnMyClub'?: number;
10495
10629
  }
10630
+ export declare const StaffUserProfileResponseCreatedFromEnum: {
10631
+ readonly App: "app";
10632
+ readonly Website: "website";
10633
+ };
10634
+ export type StaffUserProfileResponseCreatedFromEnum = typeof StaffUserProfileResponseCreatedFromEnum[keyof typeof StaffUserProfileResponseCreatedFromEnum];
10496
10635
  /**
10497
10636
  *
10498
10637
  * @export
@@ -11805,10 +11944,10 @@ export interface UpdateUserRequestBody {
11805
11944
  'profilePicture'?: string;
11806
11945
  /**
11807
11946
  *
11808
- * @type {Array<UpdateUserRequestBodyLevelBySportsInner>}
11947
+ * @type {Array<CompleteRegisterRequestBodyLevelBySportsInner>}
11809
11948
  * @memberof UpdateUserRequestBody
11810
11949
  */
11811
- 'levelBySports'?: Array<UpdateUserRequestBodyLevelBySportsInner>;
11950
+ 'levelBySports'?: Array<CompleteRegisterRequestBodyLevelBySportsInner>;
11812
11951
  /**
11813
11952
  *
11814
11953
  * @type {Array<UpdateUserRequestBodyCharacteristicsInner>}
@@ -11829,10 +11968,10 @@ export interface UpdateUserRequestBody {
11829
11968
  'description'?: string;
11830
11969
  /**
11831
11970
  *
11832
- * @type {RegisterRequestBodyLocation}
11971
+ * @type {IUserLocation}
11833
11972
  * @memberof UpdateUserRequestBody
11834
11973
  */
11835
- 'location'?: RegisterRequestBodyLocation;
11974
+ 'location'?: IUserLocation;
11836
11975
  }
11837
11976
  /**
11838
11977
  *
@@ -11853,25 +11992,6 @@ export interface UpdateUserRequestBodyCharacteristicsInner {
11853
11992
  */
11854
11993
  'key': string;
11855
11994
  }
11856
- /**
11857
- *
11858
- * @export
11859
- * @interface UpdateUserRequestBodyLevelBySportsInner
11860
- */
11861
- export interface UpdateUserRequestBodyLevelBySportsInner {
11862
- /**
11863
- *
11864
- * @type {string}
11865
- * @memberof UpdateUserRequestBodyLevelBySportsInner
11866
- */
11867
- 'level': string;
11868
- /**
11869
- *
11870
- * @type {string}
11871
- * @memberof UpdateUserRequestBodyLevelBySportsInner
11872
- */
11873
- 'sport': string;
11874
- }
11875
11995
  /**
11876
11996
  *
11877
11997
  * @export
@@ -12495,6 +12615,18 @@ export interface UserProfileResponse {
12495
12615
  * @memberof UserProfileResponse
12496
12616
  */
12497
12617
  'isClient'?: boolean;
12618
+ /**
12619
+ *
12620
+ * @type {boolean}
12621
+ * @memberof UserProfileResponse
12622
+ */
12623
+ 'isOnBoardingInAppCompleted'?: boolean;
12624
+ /**
12625
+ *
12626
+ * @type {string}
12627
+ * @memberof UserProfileResponse
12628
+ */
12629
+ 'createdFrom'?: UserProfileResponseCreatedFromEnum;
12498
12630
  /**
12499
12631
  *
12500
12632
  * @type {string}
@@ -12602,6 +12734,11 @@ export interface UserProfileResponse {
12602
12734
  */
12603
12735
  'clubId'?: string | null;
12604
12736
  }
12737
+ export declare const UserProfileResponseCreatedFromEnum: {
12738
+ readonly App: "app";
12739
+ readonly Website: "website";
12740
+ };
12741
+ export type UserProfileResponseCreatedFromEnum = typeof UserProfileResponseCreatedFromEnum[keyof typeof UserProfileResponseCreatedFromEnum];
12605
12742
  /**
12606
12743
  *
12607
12744
  * @export
@@ -19925,7 +20062,7 @@ export declare const EventsWaitListStaffApiAxiosParamCreator: (configuration?: C
19925
20062
  */
19926
20063
  getWaitListForEvent: (eventId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
19927
20064
  /**
19928
- * Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
20065
+ * Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
19929
20066
  * @param {string} eventId
19930
20067
  * @param {*} [options] Override http request option.
19931
20068
  * @throws {RequiredError}
@@ -19945,7 +20082,7 @@ export declare const EventsWaitListStaffApiFp: (configuration?: Configuration) =
19945
20082
  */
19946
20083
  getWaitListForEvent(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetWaitListForEvent200Response>>;
19947
20084
  /**
19948
- * Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
20085
+ * Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
19949
20086
  * @param {string} eventId
19950
20087
  * @param {*} [options] Override http request option.
19951
20088
  * @throws {RequiredError}
@@ -19965,7 +20102,7 @@ export declare const EventsWaitListStaffApiFactory: (configuration?: Configurati
19965
20102
  */
19966
20103
  getWaitListForEvent(requestParameters: EventsWaitListStaffApiGetWaitListForEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetWaitListForEvent200Response>;
19967
20104
  /**
19968
- * Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
20105
+ * Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
19969
20106
  * @param {EventsWaitListStaffApiProcessWaitListRequest} requestParameters Request parameters.
19970
20107
  * @param {*} [options] Override http request option.
19971
20108
  * @throws {RequiredError}
@@ -20014,7 +20151,7 @@ export declare class EventsWaitListStaffApi extends BaseAPI {
20014
20151
  */
20015
20152
  getWaitListForEvent(requestParameters: EventsWaitListStaffApiGetWaitListForEventRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetWaitListForEvent200Response, any, {}>>;
20016
20153
  /**
20017
- * Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
20154
+ * Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
20018
20155
  * @param {EventsWaitListStaffApiProcessWaitListRequest} requestParameters Request parameters.
20019
20156
  * @param {*} [options] Override http request option.
20020
20157
  * @throws {RequiredError}
@@ -21102,6 +21239,13 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
21102
21239
  * @throws {RequiredError}
21103
21240
  */
21104
21241
  changePassword: (changePasswordRequestBody: ChangePasswordRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
21242
+ /**
21243
+ *
21244
+ * @param {CompleteRegisterRequestBody} completeRegisterRequestBody
21245
+ * @param {*} [options] Override http request option.
21246
+ * @throws {RequiredError}
21247
+ */
21248
+ completeRegister: (completeRegisterRequestBody: CompleteRegisterRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
21105
21249
  /**
21106
21250
  *
21107
21251
  * @param {*} [options] Override http request option.
@@ -21260,6 +21404,13 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
21260
21404
  * @throws {RequiredError}
21261
21405
  */
21262
21406
  register: (registerRequestBody: RegisterRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
21407
+ /**
21408
+ *
21409
+ * @param {AppRegisterRequestBody} appRegisterRequestBody
21410
+ * @param {*} [options] Override http request option.
21411
+ * @throws {RequiredError}
21412
+ */
21413
+ registerFromApp: (appRegisterRequestBody: AppRegisterRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
21263
21414
  /**
21264
21415
  *
21265
21416
  * @param {string} clubId
@@ -21384,6 +21535,13 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
21384
21535
  * @throws {RequiredError}
21385
21536
  */
21386
21537
  changePassword(changePasswordRequestBody: ChangePasswordRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChangePasswordResponse>>;
21538
+ /**
21539
+ *
21540
+ * @param {CompleteRegisterRequestBody} completeRegisterRequestBody
21541
+ * @param {*} [options] Override http request option.
21542
+ * @throws {RequiredError}
21543
+ */
21544
+ completeRegister(completeRegisterRequestBody: CompleteRegisterRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserAttributes>>;
21387
21545
  /**
21388
21546
  *
21389
21547
  * @param {*} [options] Override http request option.
@@ -21550,6 +21708,13 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
21550
21708
  * @throws {RequiredError}
21551
21709
  */
21552
21710
  register(registerRequestBody: RegisterRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserAttributes>>;
21711
+ /**
21712
+ *
21713
+ * @param {AppRegisterRequestBody} appRegisterRequestBody
21714
+ * @param {*} [options] Override http request option.
21715
+ * @throws {RequiredError}
21716
+ */
21717
+ registerFromApp(appRegisterRequestBody: AppRegisterRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IUserAttributes>>;
21553
21718
  /**
21554
21719
  *
21555
21720
  * @param {string} clubId
@@ -21674,6 +21839,13 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
21674
21839
  * @throws {RequiredError}
21675
21840
  */
21676
21841
  changePassword(requestParameters: UsersApiChangePasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<ChangePasswordResponse>;
21842
+ /**
21843
+ *
21844
+ * @param {UsersApiCompleteRegisterRequest} requestParameters Request parameters.
21845
+ * @param {*} [options] Override http request option.
21846
+ * @throws {RequiredError}
21847
+ */
21848
+ completeRegister(requestParameters: UsersApiCompleteRegisterRequest, options?: RawAxiosRequestConfig): AxiosPromise<IUserAttributes>;
21677
21849
  /**
21678
21850
  *
21679
21851
  * @param {*} [options] Override http request option.
@@ -21821,6 +21993,13 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
21821
21993
  * @throws {RequiredError}
21822
21994
  */
21823
21995
  register(requestParameters: UsersApiRegisterRequest, options?: RawAxiosRequestConfig): AxiosPromise<IUserAttributes>;
21996
+ /**
21997
+ *
21998
+ * @param {UsersApiRegisterFromAppRequest} requestParameters Request parameters.
21999
+ * @param {*} [options] Override http request option.
22000
+ * @throws {RequiredError}
22001
+ */
22002
+ registerFromApp(requestParameters: UsersApiRegisterFromAppRequest, options?: RawAxiosRequestConfig): AxiosPromise<IUserAttributes>;
21824
22003
  /**
21825
22004
  *
21826
22005
  * @param {UsersApiRemoveFavoriteClubRequest} requestParameters Request parameters.
@@ -21964,6 +22143,19 @@ export interface UsersApiChangePasswordRequest {
21964
22143
  */
21965
22144
  readonly changePasswordRequestBody: ChangePasswordRequestBody;
21966
22145
  }
22146
+ /**
22147
+ * Request parameters for completeRegister operation in UsersApi.
22148
+ * @export
22149
+ * @interface UsersApiCompleteRegisterRequest
22150
+ */
22151
+ export interface UsersApiCompleteRegisterRequest {
22152
+ /**
22153
+ *
22154
+ * @type {CompleteRegisterRequestBody}
22155
+ * @memberof UsersApiCompleteRegister
22156
+ */
22157
+ readonly completeRegisterRequestBody: CompleteRegisterRequestBody;
22158
+ }
21967
22159
  /**
21968
22160
  * Request parameters for getBookingDetail operation in UsersApi.
21969
22161
  * @export
@@ -22247,6 +22439,19 @@ export interface UsersApiRegisterRequest {
22247
22439
  */
22248
22440
  readonly registerRequestBody: RegisterRequestBody;
22249
22441
  }
22442
+ /**
22443
+ * Request parameters for registerFromApp operation in UsersApi.
22444
+ * @export
22445
+ * @interface UsersApiRegisterFromAppRequest
22446
+ */
22447
+ export interface UsersApiRegisterFromAppRequest {
22448
+ /**
22449
+ *
22450
+ * @type {AppRegisterRequestBody}
22451
+ * @memberof UsersApiRegisterFromApp
22452
+ */
22453
+ readonly appRegisterRequestBody: AppRegisterRequestBody;
22454
+ }
22250
22455
  /**
22251
22456
  * Request parameters for removeFavoriteClub operation in UsersApi.
22252
22457
  * @export
@@ -22442,6 +22647,14 @@ export declare class UsersApi extends BaseAPI {
22442
22647
  * @memberof UsersApi
22443
22648
  */
22444
22649
  changePassword(requestParameters: UsersApiChangePasswordRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChangePasswordResponse, any, {}>>;
22650
+ /**
22651
+ *
22652
+ * @param {UsersApiCompleteRegisterRequest} requestParameters Request parameters.
22653
+ * @param {*} [options] Override http request option.
22654
+ * @throws {RequiredError}
22655
+ * @memberof UsersApi
22656
+ */
22657
+ completeRegister(requestParameters: UsersApiCompleteRegisterRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserAttributes, any, {}>>;
22445
22658
  /**
22446
22659
  *
22447
22660
  * @param {*} [options] Override http request option.
@@ -22610,6 +22823,14 @@ export declare class UsersApi extends BaseAPI {
22610
22823
  * @memberof UsersApi
22611
22824
  */
22612
22825
  register(requestParameters: UsersApiRegisterRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserAttributes, any, {}>>;
22826
+ /**
22827
+ *
22828
+ * @param {UsersApiRegisterFromAppRequest} requestParameters Request parameters.
22829
+ * @param {*} [options] Override http request option.
22830
+ * @throws {RequiredError}
22831
+ * @memberof UsersApi
22832
+ */
22833
+ registerFromApp(requestParameters: UsersApiRegisterFromAppRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IUserAttributes, any, {}>>;
22613
22834
  /**
22614
22835
  *
22615
22836
  * @param {UsersApiRemoveFavoriteClubRequest} requestParameters Request parameters.