@tennac-booking/sdk 1.0.250 → 1.0.252

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/api.d.ts CHANGED
@@ -423,6 +423,31 @@ export interface BookingClubInfo {
423
423
  'location'?: {
424
424
  [key: string]: any;
425
425
  } | null;
426
+ /**
427
+ *
428
+ * @type {BookingClubInfoClubSettings}
429
+ * @memberof BookingClubInfo
430
+ */
431
+ 'clubSettings'?: BookingClubInfoClubSettings | null;
432
+ }
433
+ /**
434
+ *
435
+ * @export
436
+ * @interface BookingClubInfoClubSettings
437
+ */
438
+ export interface BookingClubInfoClubSettings {
439
+ /**
440
+ *
441
+ * @type {number}
442
+ * @memberof BookingClubInfoClubSettings
443
+ */
444
+ 'cancellationLimitHours'?: number | null;
445
+ /**
446
+ *
447
+ * @type {boolean}
448
+ * @memberof BookingClubInfoClubSettings
449
+ */
450
+ 'isNoShowEnabled'?: boolean | null;
426
451
  }
427
452
  /**
428
453
  *
@@ -2456,6 +2481,14 @@ export interface ClubGeneralSettingsResponse {
2456
2481
  * @memberof ClubGeneralSettingsResponse
2457
2482
  */
2458
2483
  'websiteUrl'?: string;
2484
+ /**
2485
+ * Construct a type with a set of properties K of type T
2486
+ * @type {{ [key: string]: string; }}
2487
+ * @memberof ClubGeneralSettingsResponse
2488
+ */
2489
+ 'socials'?: {
2490
+ [key: string]: string;
2491
+ };
2459
2492
  /**
2460
2493
  *
2461
2494
  * @type {string}
@@ -3925,6 +3958,14 @@ export interface ClubResponse {
3925
3958
  * @memberof ClubResponse
3926
3959
  */
3927
3960
  'websiteUrl'?: string;
3961
+ /**
3962
+ * Construct a type with a set of properties K of type T
3963
+ * @type {{ [key: string]: string; }}
3964
+ * @memberof ClubResponse
3965
+ */
3966
+ 'socials'?: {
3967
+ [key: string]: string;
3968
+ };
3928
3969
  /**
3929
3970
  * Description du club
3930
3971
  * @type {string}
@@ -5045,6 +5086,12 @@ export interface CreateEventRequest {
5045
5086
  * @memberof CreateEventRequest
5046
5087
  */
5047
5088
  'visibilityType': CreateEventRequestVisibilityTypeEnum;
5089
+ /**
5090
+ *
5091
+ * @type {boolean}
5092
+ * @memberof CreateEventRequest
5093
+ */
5094
+ 'needLicence'?: boolean;
5048
5095
  }
5049
5096
  export declare const CreateEventRequestTypeEnum: {
5050
5097
  readonly Event: "event";
@@ -6573,6 +6620,154 @@ export interface EventConflictCheckResponse {
6573
6620
  */
6574
6621
  'eventBookingsCount': number;
6575
6622
  }
6623
+ /**
6624
+ *
6625
+ * @export
6626
+ * @interface EventDetailClub
6627
+ */
6628
+ export interface EventDetailClub {
6629
+ /**
6630
+ *
6631
+ * @type {string}
6632
+ * @memberof EventDetailClub
6633
+ */
6634
+ 'id': string;
6635
+ /**
6636
+ *
6637
+ * @type {string}
6638
+ * @memberof EventDetailClub
6639
+ */
6640
+ 'name': string;
6641
+ /**
6642
+ *
6643
+ * @type {string}
6644
+ * @memberof EventDetailClub
6645
+ */
6646
+ 'logo'?: string | null;
6647
+ }
6648
+ /**
6649
+ *
6650
+ * @export
6651
+ * @interface EventDetailCourt
6652
+ */
6653
+ export interface EventDetailCourt {
6654
+ /**
6655
+ *
6656
+ * @type {string}
6657
+ * @memberof EventDetailCourt
6658
+ */
6659
+ 'id': string;
6660
+ /**
6661
+ *
6662
+ * @type {string}
6663
+ * @memberof EventDetailCourt
6664
+ */
6665
+ 'name': string;
6666
+ /**
6667
+ *
6668
+ * @type {string}
6669
+ * @memberof EventDetailCourt
6670
+ */
6671
+ 'surface'?: string;
6672
+ /**
6673
+ *
6674
+ * @type {boolean}
6675
+ * @memberof EventDetailCourt
6676
+ */
6677
+ 'isIndoor': boolean;
6678
+ }
6679
+ /**
6680
+ *
6681
+ * @export
6682
+ * @interface EventDetailResponse
6683
+ */
6684
+ export interface EventDetailResponse {
6685
+ /**
6686
+ *
6687
+ * @type {EventResponse}
6688
+ * @memberof EventDetailResponse
6689
+ */
6690
+ 'event': EventResponse;
6691
+ /**
6692
+ *
6693
+ * @type {number}
6694
+ * @memberof EventDetailResponse
6695
+ */
6696
+ 'remainingSpots'?: number | null;
6697
+ /**
6698
+ *
6699
+ * @type {boolean}
6700
+ * @memberof EventDetailResponse
6701
+ */
6702
+ 'isRegistrationOpen': boolean;
6703
+ /**
6704
+ *
6705
+ * @type {string}
6706
+ * @memberof EventDetailResponse
6707
+ */
6708
+ 'registrationOpensAt'?: string | null;
6709
+ /**
6710
+ *
6711
+ * @type {Array<string>}
6712
+ * @memberof EventDetailResponse
6713
+ */
6714
+ 'registeredAvatars': Array<string>;
6715
+ /**
6716
+ *
6717
+ * @type {number}
6718
+ * @memberof EventDetailResponse
6719
+ */
6720
+ 'registeredCount': number;
6721
+ /**
6722
+ *
6723
+ * @type {Array<EventDetailCourt>}
6724
+ * @memberof EventDetailResponse
6725
+ */
6726
+ 'courts': Array<EventDetailCourt>;
6727
+ /**
6728
+ *
6729
+ * @type {EventDetailClub}
6730
+ * @memberof EventDetailResponse
6731
+ */
6732
+ 'club'?: EventDetailClub | null;
6733
+ /**
6734
+ *
6735
+ * @type {Array<EventDetailSponsor>}
6736
+ * @memberof EventDetailResponse
6737
+ */
6738
+ 'sponsors'?: Array<EventDetailSponsor>;
6739
+ /**
6740
+ *
6741
+ * @type {EventBookingResponse}
6742
+ * @memberof EventDetailResponse
6743
+ */
6744
+ 'userBooking'?: EventBookingResponse;
6745
+ }
6746
+ /**
6747
+ *
6748
+ * @export
6749
+ * @interface EventDetailSponsor
6750
+ */
6751
+ export interface EventDetailSponsor {
6752
+ /**
6753
+ *
6754
+ * @type {string}
6755
+ * @memberof EventDetailSponsor
6756
+ */
6757
+ 'name'?: string;
6758
+ /**
6759
+ *
6760
+ * @type {string}
6761
+ * @memberof EventDetailSponsor
6762
+ */
6763
+ 'logo'?: string | null;
6764
+ /**
6765
+ *
6766
+ * @type {string}
6767
+ * @memberof EventDetailSponsor
6768
+ */
6769
+ 'url'?: string;
6770
+ }
6576
6771
  /**
6577
6772
  *
6578
6773
  * @export
@@ -6729,6 +6924,12 @@ export interface EventResponse {
6729
6924
  * @memberof EventResponse
6730
6925
  */
6731
6926
  'visibilityType': EventResponseVisibilityTypeEnum;
6927
+ /**
6928
+ *
6929
+ * @type {boolean}
6930
+ * @memberof EventResponse
6931
+ */
6932
+ 'needLicence': boolean;
6732
6933
  /**
6733
6934
  *
6734
6935
  * @type {Array<string | null>}
@@ -8372,6 +8573,20 @@ export interface JoinEventRequest {
8372
8573
  * @memberof JoinEventRequest
8373
8574
  */
8374
8575
  'players'?: Array<string>;
8576
+ /**
8577
+ *
8578
+ * @type {string}
8579
+ * @memberof JoinEventRequest
8580
+ */
8581
+ 'licenceNumber'?: string;
8582
+ /**
8583
+ * Construct a type with a set of properties K of type T
8584
+ * @type {{ [key: string]: string; }}
8585
+ * @memberof JoinEventRequest
8586
+ */
8587
+ 'playersLicenceNumbers'?: {
8588
+ [key: string]: string;
8589
+ };
8375
8590
  /**
8376
8591
  *
8377
8592
  * @type {boolean}
@@ -8625,6 +8840,12 @@ export interface JoinOpenBookingResponse {
8625
8840
  * @interface JoinOpenEventBookingRequest
8626
8841
  */
8627
8842
  export interface JoinOpenEventBookingRequest {
8843
+ /**
8844
+ *
8845
+ * @type {string}
8846
+ * @memberof JoinOpenEventBookingRequest
8847
+ */
8848
+ 'licenceNumber'?: string;
8628
8849
  /**
8629
8850
  *
8630
8851
  * @type {number}
@@ -8677,6 +8898,31 @@ export interface JoinOpenEventResponse {
8677
8898
  */
8678
8899
  'invoices'?: Array<CheckInEventParticipants200ResponseInvoicesInner>;
8679
8900
  }
8901
+ /**
8902
+ *
8903
+ * @export
8904
+ * @interface JoinWaitListRequest
8905
+ */
8906
+ export interface JoinWaitListRequest {
8907
+ /**
8908
+ *
8909
+ * @type {PaymentMethod}
8910
+ * @memberof JoinWaitListRequest
8911
+ */
8912
+ 'paymentMethod'?: PaymentMethod;
8913
+ /**
8914
+ *
8915
+ * @type {boolean}
8916
+ * @memberof JoinWaitListRequest
8917
+ */
8918
+ 'useDefaultPaymentMethod'?: boolean;
8919
+ /**
8920
+ *
8921
+ * @type {string}
8922
+ * @memberof JoinWaitListRequest
8923
+ */
8924
+ 'licenceNumber'?: string;
8925
+ }
8680
8926
  /**
8681
8927
  *
8682
8928
  * @export
@@ -14562,6 +14808,14 @@ export interface UpdateClubGeneralSettingsRequest {
14562
14808
  * @memberof UpdateClubGeneralSettingsRequest
14563
14809
  */
14564
14810
  'websiteUrl'?: string;
14811
+ /**
14812
+ * Construct a type with a set of properties K of type T
14813
+ * @type {{ [key: string]: string; }}
14814
+ * @memberof UpdateClubGeneralSettingsRequest
14815
+ */
14816
+ 'socials'?: {
14817
+ [key: string]: string;
14818
+ } | null;
14565
14819
  /**
14566
14820
  *
14567
14821
  * @type {string}
@@ -14707,6 +14961,14 @@ export interface UpdateClubRequest {
14707
14961
  * @memberof UpdateClubRequest
14708
14962
  */
14709
14963
  'websiteUrl'?: string;
14964
+ /**
14965
+ * Réseaux sociaux du club (ex: { insta: \"https://...\" })
14966
+ * @type {{ [key: string]: string; }}
14967
+ * @memberof UpdateClubRequest
14968
+ */
14969
+ 'socials'?: {
14970
+ [key: string]: string;
14971
+ } | null;
14710
14972
  /**
14711
14973
  * Description du club
14712
14974
  * @type {string}
@@ -15052,6 +15314,12 @@ export interface UpdateEventRequest {
15052
15314
  * @memberof UpdateEventRequest
15053
15315
  */
15054
15316
  'sponsors'?: Array<EventSponsor>;
15317
+ /**
15318
+ *
15319
+ * @type {boolean}
15320
+ * @memberof UpdateEventRequest
15321
+ */
15322
+ 'needLicence'?: boolean;
15055
15323
  }
15056
15324
  export declare const UpdateEventRequestTypeEnum: {
15057
15325
  readonly Event: "event";
@@ -15290,6 +15558,12 @@ export interface UpdateRecurringDefinitionRequest {
15290
15558
  * @memberof UpdateRecurringDefinitionRequest
15291
15559
  */
15292
15560
  'recurrenceEndDate'?: string;
15561
+ /**
15562
+ *
15563
+ * @type {boolean}
15564
+ * @memberof UpdateRecurringDefinitionRequest
15565
+ */
15566
+ 'needLicence'?: boolean;
15293
15567
  }
15294
15568
  export declare const UpdateRecurringDefinitionRequestVisibilityTypeEnum: {
15295
15569
  readonly Public: "public";
@@ -22967,6 +23241,13 @@ export declare const EventsApiAxiosParamCreator: (configuration?: Configuration)
22967
23241
  * @throws {RequiredError}
22968
23242
  */
22969
23243
  getEventById: (eventId: string, userId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
23244
+ /**
23245
+ * Get detailed event information for a user
23246
+ * @param {string} eventId
23247
+ * @param {*} [options] Override http request option.
23248
+ * @throws {RequiredError}
23249
+ */
23250
+ getEventDetailById: (eventId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
22970
23251
  /**
22971
23252
  * Estimer simplement le prix à payer pour rejoindre un événement ouvert
22972
23253
  * @param {string} eventBookingId
@@ -23084,6 +23365,13 @@ export declare const EventsApiFp: (configuration?: Configuration) => {
23084
23365
  * @throws {RequiredError}
23085
23366
  */
23086
23367
  getEventById(eventId: string, userId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishEventResponse>>;
23368
+ /**
23369
+ * Get detailed event information for a user
23370
+ * @param {string} eventId
23371
+ * @param {*} [options] Override http request option.
23372
+ * @throws {RequiredError}
23373
+ */
23374
+ getEventDetailById(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventDetailResponse>>;
23087
23375
  /**
23088
23376
  * Estimer simplement le prix à payer pour rejoindre un événement ouvert
23089
23377
  * @param {string} eventBookingId
@@ -23196,6 +23484,13 @@ export declare const EventsApiFactory: (configuration?: Configuration, basePath?
23196
23484
  * @throws {RequiredError}
23197
23485
  */
23198
23486
  getEventById(requestParameters: EventsApiGetEventByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse>;
23487
+ /**
23488
+ * Get detailed event information for a user
23489
+ * @param {EventsApiGetEventDetailByIdRequest} requestParameters Request parameters.
23490
+ * @param {*} [options] Override http request option.
23491
+ * @throws {RequiredError}
23492
+ */
23493
+ getEventDetailById(requestParameters: EventsApiGetEventDetailByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<EventDetailResponse>;
23199
23494
  /**
23200
23495
  * Estimer simplement le prix à payer pour rejoindre un événement ouvert
23201
23496
  * @param {EventsApiGetOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
@@ -23355,6 +23650,19 @@ export interface EventsApiGetEventByIdRequest {
23355
23650
  */
23356
23651
  readonly userId?: string;
23357
23652
  }
23653
+ /**
23654
+ * Request parameters for getEventDetailById operation in EventsApi.
23655
+ * @export
23656
+ * @interface EventsApiGetEventDetailByIdRequest
23657
+ */
23658
+ export interface EventsApiGetEventDetailByIdRequest {
23659
+ /**
23660
+ *
23661
+ * @type {string}
23662
+ * @memberof EventsApiGetEventDetailById
23663
+ */
23664
+ readonly eventId: string;
23665
+ }
23358
23666
  /**
23359
23667
  * Request parameters for getOpenEventBookingJoinPrice operation in EventsApi.
23360
23668
  * @export
@@ -23567,6 +23875,14 @@ export declare class EventsApi extends BaseAPI {
23567
23875
  * @memberof EventsApi
23568
23876
  */
23569
23877
  getEventById(requestParameters: EventsApiGetEventByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PublishEventResponse, any, {}>>;
23878
+ /**
23879
+ * Get detailed event information for a user
23880
+ * @param {EventsApiGetEventDetailByIdRequest} requestParameters Request parameters.
23881
+ * @param {*} [options] Override http request option.
23882
+ * @throws {RequiredError}
23883
+ * @memberof EventsApi
23884
+ */
23885
+ getEventDetailById(requestParameters: EventsApiGetEventDetailByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EventDetailResponse, any, {}>>;
23570
23886
  /**
23571
23887
  * Estimer simplement le prix à payer pour rejoindre un événement ouvert
23572
23888
  * @param {EventsApiGetOpenEventBookingJoinPriceRequest} requestParameters Request parameters.
@@ -29104,24 +29420,27 @@ export declare const WaitListApiAxiosParamCreator: (configuration?: Configuratio
29104
29420
  /**
29105
29421
  * Rejoindre la file d\'attente pour un booking (créneau ouvert)
29106
29422
  * @param {string} bookingId
29423
+ * @param {JoinWaitListRequest} [joinWaitListRequest]
29107
29424
  * @param {*} [options] Override http request option.
29108
29425
  * @throws {RequiredError}
29109
29426
  */
29110
- joinBookingWaitList: (bookingId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
29427
+ joinBookingWaitList: (bookingId: string, joinWaitListRequest?: JoinWaitListRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
29111
29428
  /**
29112
29429
  * Rejoindre la file d\'attente pour un eventBooking (event en équipe avec créneau ouvert)
29113
29430
  * @param {string} eventBookingId
29431
+ * @param {JoinWaitListRequest} [joinWaitListRequest]
29114
29432
  * @param {*} [options] Override http request option.
29115
29433
  * @throws {RequiredError}
29116
29434
  */
29117
- joinEventBookingWaitList: (eventBookingId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
29435
+ joinEventBookingWaitList: (eventBookingId: string, joinWaitListRequest?: JoinWaitListRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
29118
29436
  /**
29119
29437
  * Rejoindre la file d\'attente pour un event (participation solo)
29120
29438
  * @param {string} eventId
29439
+ * @param {JoinWaitListRequest} [joinWaitListRequest]
29121
29440
  * @param {*} [options] Override http request option.
29122
29441
  * @throws {RequiredError}
29123
29442
  */
29124
- joinEventWaitList: (eventId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
29443
+ joinEventWaitList: (eventId: string, joinWaitListRequest?: JoinWaitListRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
29125
29444
  /**
29126
29445
  * Quitter la file d\'attente d\'un booking
29127
29446
  * @param {string} bookingId
@@ -29173,24 +29492,27 @@ export declare const WaitListApiFp: (configuration?: Configuration) => {
29173
29492
  /**
29174
29493
  * Rejoindre la file d\'attente pour un booking (créneau ouvert)
29175
29494
  * @param {string} bookingId
29495
+ * @param {JoinWaitListRequest} [joinWaitListRequest]
29176
29496
  * @param {*} [options] Override http request option.
29177
29497
  * @throws {RequiredError}
29178
29498
  */
29179
- joinBookingWaitList(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JoinEventWaitList200Response>>;
29499
+ joinBookingWaitList(bookingId: string, joinWaitListRequest?: JoinWaitListRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JoinEventWaitList200Response>>;
29180
29500
  /**
29181
29501
  * Rejoindre la file d\'attente pour un eventBooking (event en équipe avec créneau ouvert)
29182
29502
  * @param {string} eventBookingId
29503
+ * @param {JoinWaitListRequest} [joinWaitListRequest]
29183
29504
  * @param {*} [options] Override http request option.
29184
29505
  * @throws {RequiredError}
29185
29506
  */
29186
- joinEventBookingWaitList(eventBookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JoinEventWaitList200Response>>;
29507
+ joinEventBookingWaitList(eventBookingId: string, joinWaitListRequest?: JoinWaitListRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JoinEventWaitList200Response>>;
29187
29508
  /**
29188
29509
  * Rejoindre la file d\'attente pour un event (participation solo)
29189
29510
  * @param {string} eventId
29511
+ * @param {JoinWaitListRequest} [joinWaitListRequest]
29190
29512
  * @param {*} [options] Override http request option.
29191
29513
  * @throws {RequiredError}
29192
29514
  */
29193
- joinEventWaitList(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JoinEventWaitList200Response>>;
29515
+ joinEventWaitList(eventId: string, joinWaitListRequest?: JoinWaitListRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JoinEventWaitList200Response>>;
29194
29516
  /**
29195
29517
  * Quitter la file d\'attente d\'un booking
29196
29518
  * @param {string} bookingId
@@ -29333,6 +29655,12 @@ export interface WaitListApiJoinBookingWaitListRequest {
29333
29655
  * @memberof WaitListApiJoinBookingWaitList
29334
29656
  */
29335
29657
  readonly bookingId: string;
29658
+ /**
29659
+ *
29660
+ * @type {JoinWaitListRequest}
29661
+ * @memberof WaitListApiJoinBookingWaitList
29662
+ */
29663
+ readonly joinWaitListRequest?: JoinWaitListRequest;
29336
29664
  }
29337
29665
  /**
29338
29666
  * Request parameters for joinEventBookingWaitList operation in WaitListApi.
@@ -29346,6 +29674,12 @@ export interface WaitListApiJoinEventBookingWaitListRequest {
29346
29674
  * @memberof WaitListApiJoinEventBookingWaitList
29347
29675
  */
29348
29676
  readonly eventBookingId: string;
29677
+ /**
29678
+ *
29679
+ * @type {JoinWaitListRequest}
29680
+ * @memberof WaitListApiJoinEventBookingWaitList
29681
+ */
29682
+ readonly joinWaitListRequest?: JoinWaitListRequest;
29349
29683
  }
29350
29684
  /**
29351
29685
  * Request parameters for joinEventWaitList operation in WaitListApi.
@@ -29359,6 +29693,12 @@ export interface WaitListApiJoinEventWaitListRequest {
29359
29693
  * @memberof WaitListApiJoinEventWaitList
29360
29694
  */
29361
29695
  readonly eventId: string;
29696
+ /**
29697
+ *
29698
+ * @type {JoinWaitListRequest}
29699
+ * @memberof WaitListApiJoinEventWaitList
29700
+ */
29701
+ readonly joinWaitListRequest?: JoinWaitListRequest;
29362
29702
  }
29363
29703
  /**
29364
29704
  * Request parameters for leaveBookingWaitList operation in WaitListApi.