@tennac-booking/sdk 1.0.153 → 1.0.155

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
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.150
5
+ * The version of the OpenAPI document: 1.0.154
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5720,6 +5720,32 @@ export interface GetCourtsByClubAndSportById200Response {
5720
5720
  */
5721
5721
  'courts': Array<ICourtData>;
5722
5722
  }
5723
+ /**
5724
+ *
5725
+ * @export
5726
+ * @interface GetGuestBookingPrice200Response
5727
+ */
5728
+ export interface GetGuestBookingPrice200Response {
5729
+ /**
5730
+ *
5731
+ * @type {number}
5732
+ * @memberof GetGuestBookingPrice200Response
5733
+ */
5734
+ 'totalPrice': number;
5735
+ }
5736
+ /**
5737
+ *
5738
+ * @export
5739
+ * @interface GetGuestBookingPriceRequest
5740
+ */
5741
+ export interface GetGuestBookingPriceRequest {
5742
+ /**
5743
+ *
5744
+ * @type {Array<string>}
5745
+ * @memberof GetGuestBookingPriceRequest
5746
+ */
5747
+ 'slotIds': Array<string>;
5748
+ }
5723
5749
  /**
5724
5750
  *
5725
5751
  * @export
@@ -6103,7 +6129,7 @@ export interface IUserAttributes {
6103
6129
  * @type {boolean}
6104
6130
  * @memberof IUserAttributes
6105
6131
  */
6106
- 'isAccountVerified': boolean;
6132
+ 'isAccountVerified'?: boolean;
6107
6133
  /**
6108
6134
  *
6109
6135
  * @type {Array<ILevelBySports>}
@@ -6181,7 +6207,7 @@ export interface IUserAttributes {
6181
6207
  * @type {boolean}
6182
6208
  * @memberof IUserAttributes
6183
6209
  */
6184
- 'isAdmin': boolean;
6210
+ 'isAdmin'?: boolean;
6185
6211
  /**
6186
6212
  *
6187
6213
  * @type {boolean}
@@ -6193,13 +6219,13 @@ export interface IUserAttributes {
6193
6219
  * @type {string}
6194
6220
  * @memberof IUserAttributes
6195
6221
  */
6196
- 'createdAt': string;
6222
+ 'createdAt'?: string;
6197
6223
  /**
6198
6224
  *
6199
6225
  * @type {string}
6200
6226
  * @memberof IUserAttributes
6201
6227
  */
6202
- 'updatedAt': string;
6228
+ 'updatedAt'?: string;
6203
6229
  /**
6204
6230
  *
6205
6231
  * @type {boolean}
@@ -6223,7 +6249,7 @@ export interface IUserAttributes {
6223
6249
  * @type {boolean}
6224
6250
  * @memberof IUserAttributes
6225
6251
  */
6226
- 'isProfileVisible': boolean;
6252
+ 'isProfileVisible'?: boolean;
6227
6253
  /**
6228
6254
  *
6229
6255
  * @type {Array<string>}
@@ -8341,6 +8367,12 @@ export interface PublishEventResponse {
8341
8367
  * @memberof PublishEventResponse
8342
8368
  */
8343
8369
  'needsToSetupPaymentMethod'?: boolean;
8370
+ /**
8371
+ *
8372
+ * @type {Array<EventBookingResponse>}
8373
+ * @memberof PublishEventResponse
8374
+ */
8375
+ 'eventBookings'?: Array<EventBookingResponse>;
8344
8376
  }
8345
8377
  /**
8346
8378
  *
@@ -9728,7 +9760,7 @@ export interface StaffUserProfileResponse {
9728
9760
  * @type {boolean}
9729
9761
  * @memberof StaffUserProfileResponse
9730
9762
  */
9731
- 'isAccountVerified': boolean;
9763
+ 'isAccountVerified'?: boolean;
9732
9764
  /**
9733
9765
  *
9734
9766
  * @type {Array<ILevelBySports>}
@@ -9806,7 +9838,7 @@ export interface StaffUserProfileResponse {
9806
9838
  * @type {boolean}
9807
9839
  * @memberof StaffUserProfileResponse
9808
9840
  */
9809
- 'isAdmin': boolean;
9841
+ 'isAdmin'?: boolean;
9810
9842
  /**
9811
9843
  *
9812
9844
  * @type {boolean}
@@ -9818,13 +9850,13 @@ export interface StaffUserProfileResponse {
9818
9850
  * @type {string}
9819
9851
  * @memberof StaffUserProfileResponse
9820
9852
  */
9821
- 'createdAt': string;
9853
+ 'createdAt'?: string;
9822
9854
  /**
9823
9855
  *
9824
9856
  * @type {string}
9825
9857
  * @memberof StaffUserProfileResponse
9826
9858
  */
9827
- 'updatedAt': string;
9859
+ 'updatedAt'?: string;
9828
9860
  /**
9829
9861
  *
9830
9862
  * @type {boolean}
@@ -9848,7 +9880,7 @@ export interface StaffUserProfileResponse {
9848
9880
  * @type {boolean}
9849
9881
  * @memberof StaffUserProfileResponse
9850
9882
  */
9851
- 'isProfileVisible': boolean;
9883
+ 'isProfileVisible'?: boolean;
9852
9884
  /**
9853
9885
  *
9854
9886
  * @type {Array<string>}
@@ -11763,7 +11795,7 @@ export interface UserProfileResponse {
11763
11795
  * @type {boolean}
11764
11796
  * @memberof UserProfileResponse
11765
11797
  */
11766
- 'isAccountVerified': boolean;
11798
+ 'isAccountVerified'?: boolean;
11767
11799
  /**
11768
11800
  *
11769
11801
  * @type {Array<ILevelBySports>}
@@ -11841,7 +11873,7 @@ export interface UserProfileResponse {
11841
11873
  * @type {boolean}
11842
11874
  * @memberof UserProfileResponse
11843
11875
  */
11844
- 'isAdmin': boolean;
11876
+ 'isAdmin'?: boolean;
11845
11877
  /**
11846
11878
  *
11847
11879
  * @type {boolean}
@@ -11853,13 +11885,13 @@ export interface UserProfileResponse {
11853
11885
  * @type {string}
11854
11886
  * @memberof UserProfileResponse
11855
11887
  */
11856
- 'createdAt': string;
11888
+ 'createdAt'?: string;
11857
11889
  /**
11858
11890
  *
11859
11891
  * @type {string}
11860
11892
  * @memberof UserProfileResponse
11861
11893
  */
11862
- 'updatedAt': string;
11894
+ 'updatedAt'?: string;
11863
11895
  /**
11864
11896
  *
11865
11897
  * @type {boolean}
@@ -11883,7 +11915,7 @@ export interface UserProfileResponse {
11883
11915
  * @type {boolean}
11884
11916
  * @memberof UserProfileResponse
11885
11917
  */
11886
- 'isProfileVisible': boolean;
11918
+ 'isProfileVisible'?: boolean;
11887
11919
  /**
11888
11920
  *
11889
11921
  * @type {Array<string>}
@@ -12096,7 +12128,7 @@ export interface YearlyTurnoverResponse {
12096
12128
  */
12097
12129
  export declare const BookingsApiAxiosParamCreator: (configuration?: Configuration) => {
12098
12130
  /**
12099
- * Créer une réservation en tant qu\'invité (guest)
12131
+ * Créer une réservation en tant qu\'invité (guest) Cette route permet à un utilisateur non authentifié de créer une réservation. Un compte guest sera automatiquement créé pour l\'utilisateur. Note: Si le club a activé le no-show (frais de non-présentation), la réponse contiendra un setupNoShowPaymentUrl pour configurer une méthode de paiement. Cette configuration est obligatoire pour les clubs avec no-show activé.
12100
12132
  * @param {CreateGuestBookingRequest} createGuestBookingRequest
12101
12133
  * @param {*} [options] Override http request option.
12102
12134
  * @throws {RequiredError}
@@ -12124,6 +12156,13 @@ export declare const BookingsApiAxiosParamCreator: (configuration?: Configuratio
12124
12156
  * @throws {RequiredError}
12125
12157
  */
12126
12158
  getBookingPrice: (bookingPriceBody: BookingPriceBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
12159
+ /**
12160
+ * Calculer le prix d\'une réservation pour un invité (sans authentification)
12161
+ * @param {GetGuestBookingPriceRequest} getGuestBookingPriceRequest
12162
+ * @param {*} [options] Override http request option.
12163
+ * @throws {RequiredError}
12164
+ */
12165
+ getGuestBookingPrice: (getGuestBookingPriceRequest: GetGuestBookingPriceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
12127
12166
  /**
12128
12167
  * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
12129
12168
  * @param {string} bookingId
@@ -12177,7 +12216,7 @@ export declare const BookingsApiAxiosParamCreator: (configuration?: Configuratio
12177
12216
  */
12178
12217
  export declare const BookingsApiFp: (configuration?: Configuration) => {
12179
12218
  /**
12180
- * Créer une réservation en tant qu\'invité (guest)
12219
+ * Créer une réservation en tant qu\'invité (guest) Cette route permet à un utilisateur non authentifié de créer une réservation. Un compte guest sera automatiquement créé pour l\'utilisateur. Note: Si le club a activé le no-show (frais de non-présentation), la réponse contiendra un setupNoShowPaymentUrl pour configurer une méthode de paiement. Cette configuration est obligatoire pour les clubs avec no-show activé.
12181
12220
  * @param {CreateGuestBookingRequest} createGuestBookingRequest
12182
12221
  * @param {*} [options] Override http request option.
12183
12222
  * @throws {RequiredError}
@@ -12205,6 +12244,13 @@ export declare const BookingsApiFp: (configuration?: Configuration) => {
12205
12244
  * @throws {RequiredError}
12206
12245
  */
12207
12246
  getBookingPrice(bookingPriceBody: BookingPriceBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingPriceResponse>>;
12247
+ /**
12248
+ * Calculer le prix d\'une réservation pour un invité (sans authentification)
12249
+ * @param {GetGuestBookingPriceRequest} getGuestBookingPriceRequest
12250
+ * @param {*} [options] Override http request option.
12251
+ * @throws {RequiredError}
12252
+ */
12253
+ getGuestBookingPrice(getGuestBookingPriceRequest: GetGuestBookingPriceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetGuestBookingPrice200Response>>;
12208
12254
  /**
12209
12255
  * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
12210
12256
  * @param {string} bookingId
@@ -12258,7 +12304,7 @@ export declare const BookingsApiFp: (configuration?: Configuration) => {
12258
12304
  */
12259
12305
  export declare const BookingsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
12260
12306
  /**
12261
- * Créer une réservation en tant qu\'invité (guest)
12307
+ * Créer une réservation en tant qu\'invité (guest) Cette route permet à un utilisateur non authentifié de créer une réservation. Un compte guest sera automatiquement créé pour l\'utilisateur. Note: Si le club a activé le no-show (frais de non-présentation), la réponse contiendra un setupNoShowPaymentUrl pour configurer une méthode de paiement. Cette configuration est obligatoire pour les clubs avec no-show activé.
12262
12308
  * @param {BookingsApiCreateGuestBookingRequest} requestParameters Request parameters.
12263
12309
  * @param {*} [options] Override http request option.
12264
12310
  * @throws {RequiredError}
@@ -12285,6 +12331,13 @@ export declare const BookingsApiFactory: (configuration?: Configuration, basePat
12285
12331
  * @throws {RequiredError}
12286
12332
  */
12287
12333
  getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingPriceResponse>;
12334
+ /**
12335
+ * Calculer le prix d\'une réservation pour un invité (sans authentification)
12336
+ * @param {BookingsApiGetGuestBookingPriceRequest} requestParameters Request parameters.
12337
+ * @param {*} [options] Override http request option.
12338
+ * @throws {RequiredError}
12339
+ */
12340
+ getGuestBookingPrice(requestParameters: BookingsApiGetGuestBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetGuestBookingPrice200Response>;
12288
12341
  /**
12289
12342
  * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
12290
12343
  * @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
@@ -12379,6 +12432,19 @@ export interface BookingsApiGetBookingPriceRequest {
12379
12432
  */
12380
12433
  readonly bookingPriceBody: BookingPriceBody;
12381
12434
  }
12435
+ /**
12436
+ * Request parameters for getGuestBookingPrice operation in BookingsApi.
12437
+ * @export
12438
+ * @interface BookingsApiGetGuestBookingPriceRequest
12439
+ */
12440
+ export interface BookingsApiGetGuestBookingPriceRequest {
12441
+ /**
12442
+ *
12443
+ * @type {GetGuestBookingPriceRequest}
12444
+ * @memberof BookingsApiGetGuestBookingPrice
12445
+ */
12446
+ readonly getGuestBookingPriceRequest: GetGuestBookingPriceRequest;
12447
+ }
12382
12448
  /**
12383
12449
  * Request parameters for getOpenBookingJoinPrice operation in BookingsApi.
12384
12450
  * @export
@@ -12518,7 +12584,7 @@ export interface BookingsApiLeaveOpenBookingRequest {
12518
12584
  */
12519
12585
  export declare class BookingsApi extends BaseAPI {
12520
12586
  /**
12521
- * Créer une réservation en tant qu\'invité (guest)
12587
+ * Créer une réservation en tant qu\'invité (guest) Cette route permet à un utilisateur non authentifié de créer une réservation. Un compte guest sera automatiquement créé pour l\'utilisateur. Note: Si le club a activé le no-show (frais de non-présentation), la réponse contiendra un setupNoShowPaymentUrl pour configurer une méthode de paiement. Cette configuration est obligatoire pour les clubs avec no-show activé.
12522
12588
  * @param {BookingsApiCreateGuestBookingRequest} requestParameters Request parameters.
12523
12589
  * @param {*} [options] Override http request option.
12524
12590
  * @throws {RequiredError}
@@ -12549,6 +12615,14 @@ export declare class BookingsApi extends BaseAPI {
12549
12615
  * @memberof BookingsApi
12550
12616
  */
12551
12617
  getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BookingPriceResponse, any, {}>>;
12618
+ /**
12619
+ * Calculer le prix d\'une réservation pour un invité (sans authentification)
12620
+ * @param {BookingsApiGetGuestBookingPriceRequest} requestParameters Request parameters.
12621
+ * @param {*} [options] Override http request option.
12622
+ * @throws {RequiredError}
12623
+ * @memberof BookingsApi
12624
+ */
12625
+ getGuestBookingPrice(requestParameters: BookingsApiGetGuestBookingPriceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetGuestBookingPrice200Response, any, {}>>;
12552
12626
  /**
12553
12627
  * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
12554
12628
  * @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
@@ -18482,6 +18556,13 @@ export declare const EventsStaffApiAxiosParamCreator: (configuration?: Configura
18482
18556
  * @throws {RequiredError}
18483
18557
  */
18484
18558
  getDailyEvents: (clubId?: string, date?: string, visibilityType?: GetDailyEventsVisibilityTypeEnum, type?: GetDailyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
18559
+ /**
18560
+ *
18561
+ * @param {string} eventId
18562
+ * @param {*} [options] Override http request option.
18563
+ * @throws {RequiredError}
18564
+ */
18565
+ getEventByIdStaff: (eventId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
18485
18566
  /**
18486
18567
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
18487
18568
  * @param {*} [options] Override http request option.
@@ -18535,6 +18616,13 @@ export declare const EventsStaffApiFp: (configuration?: Configuration) => {
18535
18616
  * @throws {RequiredError}
18536
18617
  */
18537
18618
  getDailyEvents(clubId?: string, date?: string, visibilityType?: GetDailyEventsVisibilityTypeEnum, type?: GetDailyEventsTypeEnum, sportId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsListResponse>>;
18619
+ /**
18620
+ *
18621
+ * @param {string} eventId
18622
+ * @param {*} [options] Override http request option.
18623
+ * @throws {RequiredError}
18624
+ */
18625
+ getEventByIdStaff(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishEventResponse>>;
18538
18626
  /**
18539
18627
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
18540
18628
  * @param {*} [options] Override http request option.
@@ -18583,6 +18671,13 @@ export declare const EventsStaffApiFactory: (configuration?: Configuration, base
18583
18671
  * @throws {RequiredError}
18584
18672
  */
18585
18673
  getDailyEvents(requestParameters?: EventsStaffApiGetDailyEventsRequest, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse>;
18674
+ /**
18675
+ *
18676
+ * @param {EventsStaffApiGetEventByIdStaffRequest} requestParameters Request parameters.
18677
+ * @param {*} [options] Override http request option.
18678
+ * @throws {RequiredError}
18679
+ */
18680
+ getEventByIdStaff(requestParameters: EventsStaffApiGetEventByIdStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse>;
18586
18681
  /**
18587
18682
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
18588
18683
  * @param {*} [options] Override http request option.
@@ -18660,6 +18755,19 @@ export interface EventsStaffApiGetDailyEventsRequest {
18660
18755
  */
18661
18756
  readonly sportId?: string;
18662
18757
  }
18758
+ /**
18759
+ * Request parameters for getEventByIdStaff operation in EventsStaffApi.
18760
+ * @export
18761
+ * @interface EventsStaffApiGetEventByIdStaffRequest
18762
+ */
18763
+ export interface EventsStaffApiGetEventByIdStaffRequest {
18764
+ /**
18765
+ *
18766
+ * @type {string}
18767
+ * @memberof EventsStaffApiGetEventByIdStaff
18768
+ */
18769
+ readonly eventId: string;
18770
+ }
18663
18771
  /**
18664
18772
  * Request parameters for getMonthlyEvents operation in EventsStaffApi.
18665
18773
  * @export
@@ -18757,6 +18865,14 @@ export declare class EventsStaffApi extends BaseAPI {
18757
18865
  * @memberof EventsStaffApi
18758
18866
  */
18759
18867
  getDailyEvents(requestParameters?: EventsStaffApiGetDailyEventsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EventsListResponse, any, {}>>;
18868
+ /**
18869
+ *
18870
+ * @param {EventsStaffApiGetEventByIdStaffRequest} requestParameters Request parameters.
18871
+ * @param {*} [options] Override http request option.
18872
+ * @throws {RequiredError}
18873
+ * @memberof EventsStaffApi
18874
+ */
18875
+ getEventByIdStaff(requestParameters: EventsStaffApiGetEventByIdStaffRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PublishEventResponse, any, {}>>;
18760
18876
  /**
18761
18877
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
18762
18878
  * @param {*} [options] Override http request option.
package/dist/esm/api.js 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.150
7
+ * The version of the OpenAPI document: 1.0.154
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -399,7 +399,7 @@ export const WeekdayKey = {
399
399
  export const BookingsApiAxiosParamCreator = function (configuration) {
400
400
  return {
401
401
  /**
402
- * Créer une réservation en tant qu\'invité (guest)
402
+ * Créer une réservation en tant qu\'invité (guest) Cette route permet à un utilisateur non authentifié de créer une réservation. Un compte guest sera automatiquement créé pour l\'utilisateur. Note: Si le club a activé le no-show (frais de non-présentation), la réponse contiendra un setupNoShowPaymentUrl pour configurer une méthode de paiement. Cette configuration est obligatoire pour les clubs avec no-show activé.
403
403
  * @param {CreateGuestBookingRequest} createGuestBookingRequest
404
404
  * @param {*} [options] Override http request option.
405
405
  * @throws {RequiredError}
@@ -525,6 +525,35 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
525
525
  options: localVarRequestOptions,
526
526
  };
527
527
  }),
528
+ /**
529
+ * Calculer le prix d\'une réservation pour un invité (sans authentification)
530
+ * @param {GetGuestBookingPriceRequest} getGuestBookingPriceRequest
531
+ * @param {*} [options] Override http request option.
532
+ * @throws {RequiredError}
533
+ */
534
+ getGuestBookingPrice: (getGuestBookingPriceRequest_1, ...args_1) => __awaiter(this, [getGuestBookingPriceRequest_1, ...args_1], void 0, function* (getGuestBookingPriceRequest, options = {}) {
535
+ // verify required parameter 'getGuestBookingPriceRequest' is not null or undefined
536
+ assertParamExists('getGuestBookingPrice', 'getGuestBookingPriceRequest', getGuestBookingPriceRequest);
537
+ const localVarPath = `/api/bookings/guest/booking-price`;
538
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
539
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
540
+ let baseOptions;
541
+ if (configuration) {
542
+ baseOptions = configuration.baseOptions;
543
+ }
544
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
545
+ const localVarHeaderParameter = {};
546
+ const localVarQueryParameter = {};
547
+ localVarHeaderParameter['Content-Type'] = 'application/json';
548
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
549
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
550
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
551
+ localVarRequestOptions.data = serializeDataIfNeeded(getGuestBookingPriceRequest, localVarRequestOptions, configuration);
552
+ return {
553
+ url: toPathString(localVarUrlObj),
554
+ options: localVarRequestOptions,
555
+ };
556
+ }),
528
557
  /**
529
558
  * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
530
559
  * @param {string} bookingId
@@ -732,7 +761,7 @@ export const BookingsApiFp = function (configuration) {
732
761
  const localVarAxiosParamCreator = BookingsApiAxiosParamCreator(configuration);
733
762
  return {
734
763
  /**
735
- * Créer une réservation en tant qu\'invité (guest)
764
+ * Créer une réservation en tant qu\'invité (guest) Cette route permet à un utilisateur non authentifié de créer une réservation. Un compte guest sera automatiquement créé pour l\'utilisateur. Note: Si le club a activé le no-show (frais de non-présentation), la réponse contiendra un setupNoShowPaymentUrl pour configurer une méthode de paiement. Cette configuration est obligatoire pour les clubs avec no-show activé.
736
765
  * @param {CreateGuestBookingRequest} createGuestBookingRequest
737
766
  * @param {*} [options] Override http request option.
738
767
  * @throws {RequiredError}
@@ -792,6 +821,21 @@ export const BookingsApiFp = function (configuration) {
792
821
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
793
822
  });
794
823
  },
824
+ /**
825
+ * Calculer le prix d\'une réservation pour un invité (sans authentification)
826
+ * @param {GetGuestBookingPriceRequest} getGuestBookingPriceRequest
827
+ * @param {*} [options] Override http request option.
828
+ * @throws {RequiredError}
829
+ */
830
+ getGuestBookingPrice(getGuestBookingPriceRequest, options) {
831
+ return __awaiter(this, void 0, void 0, function* () {
832
+ var _a, _b, _c;
833
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getGuestBookingPrice(getGuestBookingPriceRequest, options);
834
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
835
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getGuestBookingPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
836
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
837
+ });
838
+ },
795
839
  /**
796
840
  * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
797
841
  * @param {string} bookingId
@@ -888,7 +932,7 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
888
932
  const localVarFp = BookingsApiFp(configuration);
889
933
  return {
890
934
  /**
891
- * Créer une réservation en tant qu\'invité (guest)
935
+ * Créer une réservation en tant qu\'invité (guest) Cette route permet à un utilisateur non authentifié de créer une réservation. Un compte guest sera automatiquement créé pour l\'utilisateur. Note: Si le club a activé le no-show (frais de non-présentation), la réponse contiendra un setupNoShowPaymentUrl pour configurer une méthode de paiement. Cette configuration est obligatoire pour les clubs avec no-show activé.
892
936
  * @param {BookingsApiCreateGuestBookingRequest} requestParameters Request parameters.
893
937
  * @param {*} [options] Override http request option.
894
938
  * @throws {RequiredError}
@@ -923,6 +967,15 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
923
967
  getBookingPrice(requestParameters, options) {
924
968
  return localVarFp.getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(axios, basePath));
925
969
  },
970
+ /**
971
+ * Calculer le prix d\'une réservation pour un invité (sans authentification)
972
+ * @param {BookingsApiGetGuestBookingPriceRequest} requestParameters Request parameters.
973
+ * @param {*} [options] Override http request option.
974
+ * @throws {RequiredError}
975
+ */
976
+ getGuestBookingPrice(requestParameters, options) {
977
+ return localVarFp.getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(axios, basePath));
978
+ },
926
979
  /**
927
980
  * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
928
981
  * @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
@@ -978,7 +1031,7 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
978
1031
  */
979
1032
  export class BookingsApi extends BaseAPI {
980
1033
  /**
981
- * Créer une réservation en tant qu\'invité (guest)
1034
+ * Créer une réservation en tant qu\'invité (guest) Cette route permet à un utilisateur non authentifié de créer une réservation. Un compte guest sera automatiquement créé pour l\'utilisateur. Note: Si le club a activé le no-show (frais de non-présentation), la réponse contiendra un setupNoShowPaymentUrl pour configurer une méthode de paiement. Cette configuration est obligatoire pour les clubs avec no-show activé.
982
1035
  * @param {BookingsApiCreateGuestBookingRequest} requestParameters Request parameters.
983
1036
  * @param {*} [options] Override http request option.
984
1037
  * @throws {RequiredError}
@@ -1017,6 +1070,16 @@ export class BookingsApi extends BaseAPI {
1017
1070
  getBookingPrice(requestParameters, options) {
1018
1071
  return BookingsApiFp(this.configuration).getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(this.axios, this.basePath));
1019
1072
  }
1073
+ /**
1074
+ * Calculer le prix d\'une réservation pour un invité (sans authentification)
1075
+ * @param {BookingsApiGetGuestBookingPriceRequest} requestParameters Request parameters.
1076
+ * @param {*} [options] Override http request option.
1077
+ * @throws {RequiredError}
1078
+ * @memberof BookingsApi
1079
+ */
1080
+ getGuestBookingPrice(requestParameters, options) {
1081
+ return BookingsApiFp(this.configuration).getGuestBookingPrice(requestParameters.getGuestBookingPriceRequest, options).then((request) => request(this.axios, this.basePath));
1082
+ }
1020
1083
  /**
1021
1084
  * Estimer simplement le prix à payer pour rejoindre une réservation ouverte
1022
1085
  * @param {BookingsApiGetOpenBookingJoinPriceRequest} requestParameters Request parameters.
@@ -10322,6 +10385,37 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
10322
10385
  options: localVarRequestOptions,
10323
10386
  };
10324
10387
  }),
10388
+ /**
10389
+ *
10390
+ * @param {string} eventId
10391
+ * @param {*} [options] Override http request option.
10392
+ * @throws {RequiredError}
10393
+ */
10394
+ getEventByIdStaff: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
10395
+ // verify required parameter 'eventId' is not null or undefined
10396
+ assertParamExists('getEventByIdStaff', 'eventId', eventId);
10397
+ const localVarPath = `/api/events/staff/{eventId}`
10398
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
10399
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10400
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10401
+ let baseOptions;
10402
+ if (configuration) {
10403
+ baseOptions = configuration.baseOptions;
10404
+ }
10405
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10406
+ const localVarHeaderParameter = {};
10407
+ const localVarQueryParameter = {};
10408
+ // authentication bearerAuth required
10409
+ // http bearer authentication required
10410
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
10411
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10412
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10413
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10414
+ return {
10415
+ url: toPathString(localVarUrlObj),
10416
+ options: localVarRequestOptions,
10417
+ };
10418
+ }),
10325
10419
  /**
10326
10420
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
10327
10421
  * @param {*} [options] Override http request option.
@@ -10487,6 +10581,21 @@ export const EventsStaffApiFp = function (configuration) {
10487
10581
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10488
10582
  });
10489
10583
  },
10584
+ /**
10585
+ *
10586
+ * @param {string} eventId
10587
+ * @param {*} [options] Override http request option.
10588
+ * @throws {RequiredError}
10589
+ */
10590
+ getEventByIdStaff(eventId, options) {
10591
+ return __awaiter(this, void 0, void 0, function* () {
10592
+ var _a, _b, _c;
10593
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventByIdStaff(eventId, options);
10594
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10595
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getEventByIdStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10596
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10597
+ });
10598
+ },
10490
10599
  /**
10491
10600
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
10492
10601
  * @param {*} [options] Override http request option.
@@ -10566,6 +10675,15 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
10566
10675
  getDailyEvents(requestParameters = {}, options) {
10567
10676
  return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
10568
10677
  },
10678
+ /**
10679
+ *
10680
+ * @param {EventsStaffApiGetEventByIdStaffRequest} requestParameters Request parameters.
10681
+ * @param {*} [options] Override http request option.
10682
+ * @throws {RequiredError}
10683
+ */
10684
+ getEventByIdStaff(requestParameters, options) {
10685
+ return localVarFp.getEventByIdStaff(requestParameters.eventId, options).then((request) => request(axios, basePath));
10686
+ },
10569
10687
  /**
10570
10688
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
10571
10689
  * @param {*} [options] Override http request option.
@@ -10621,6 +10739,16 @@ export class EventsStaffApi extends BaseAPI {
10621
10739
  getDailyEvents(requestParameters = {}, options) {
10622
10740
  return EventsStaffApiFp(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
10623
10741
  }
10742
+ /**
10743
+ *
10744
+ * @param {EventsStaffApiGetEventByIdStaffRequest} requestParameters Request parameters.
10745
+ * @param {*} [options] Override http request option.
10746
+ * @throws {RequiredError}
10747
+ * @memberof EventsStaffApi
10748
+ */
10749
+ getEventByIdStaff(requestParameters, options) {
10750
+ return EventsStaffApiFp(this.configuration).getEventByIdStaff(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
10751
+ }
10624
10752
  /**
10625
10753
  * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
10626
10754
  * @param {*} [options] Override http request option.
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.150
5
+ * The version of the OpenAPI document: 1.0.154
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.js 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.150
7
+ * The version of the OpenAPI document: 1.0.154
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.150
5
+ * The version of the OpenAPI document: 1.0.154
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.150
7
+ * The version of the OpenAPI document: 1.0.154
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.150
5
+ * The version of the OpenAPI document: 1.0.154
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.150
7
+ * The version of the OpenAPI document: 1.0.154
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.150
5
+ * The version of the OpenAPI document: 1.0.154
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).