@tennac-booking/sdk 1.0.281 → 1.0.283

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.
@@ -27,6 +27,7 @@ docs/BookingCourtInfo.md
27
27
  docs/BookingHistoryPopulated.md
28
28
  docs/BookingInfo.md
29
29
  docs/BookingInvoicePaymentStatus.md
30
+ docs/BookingManagerConsoleResponse.md
30
31
  docs/BookingPaymentStatus.md
31
32
  docs/BookingPaymentStatusResponse.md
32
33
  docs/BookingPaymentStatusResponseBooking.md
@@ -310,6 +311,9 @@ docs/MonthlyTurnoverResponse.md
310
311
  docs/MyClubCustomerSettingsResponse.md
311
312
  docs/MyClubInfosResponse.md
312
313
  docs/NoShowFeeResponse.md
314
+ docs/NoShowPreviewIneligibleReason.md
315
+ docs/NoShowPreviewInvoice.md
316
+ docs/NoShowPreviewResponse.md
313
317
  docs/NoShowRateResponse.md
314
318
  docs/NotificationActorType.md
315
319
  docs/NotificationData.md
@@ -425,6 +429,7 @@ docs/StaffEventDetailResponse.md
425
429
  docs/StaffEventSeriesContext.md
426
430
  docs/StaffEventSeriesResponse.md
427
431
  docs/StaffEventsPageResponse.md
432
+ docs/StaffRegisterPlayerToEventRequest.md
428
433
  docs/StaffUserProfileResponse.md
429
434
  docs/SubscribeRequestBody.md
430
435
  docs/SubscriberPrice.md
package/README.md CHANGED
@@ -70,8 +70,10 @@ Class | Method | HTTP request | Description
70
70
  *BookingsStaffApi* | [**createStaffBooking**](docs/BookingsStaffApi.md#createstaffbooking) | **POST** /api/bookings/staff |
71
71
  *BookingsStaffApi* | [**getBookingById**](docs/BookingsStaffApi.md#getbookingbyid) | **GET** /api/bookings/{bookingId} |
72
72
  *BookingsStaffApi* | [**getBookingHistoryStaff**](docs/BookingsStaffApi.md#getbookinghistorystaff) | **GET** /api/bookings/staff/history{bookingId} |
73
+ *BookingsStaffApi* | [**getBookingManagerConsole**](docs/BookingsStaffApi.md#getbookingmanagerconsole) | **GET** /api/bookings/{bookingId}/manager-console |
73
74
  *BookingsStaffApi* | [**getBookingPaymentStatus**](docs/BookingsStaffApi.md#getbookingpaymentstatus) | **GET** /api/bookings/{bookingId}/payment-status |
74
75
  *BookingsStaffApi* | [**getDailyBookings**](docs/BookingsStaffApi.md#getdailybookings) | **GET** /api/bookings/daily/{date} |
76
+ *BookingsStaffApi* | [**getNoShowPreview**](docs/BookingsStaffApi.md#getnoshowpreview) | **GET** /api/bookings/{bookingId}/no-show-preview |
75
77
  *BookingsStaffApi* | [**getWeeklyBookings**](docs/BookingsStaffApi.md#getweeklybookings) | **GET** /api/bookings/weekly/{weekId} |
76
78
  *BookingsStaffApi* | [**listClubBookings**](docs/BookingsStaffApi.md#listclubbookings) | **GET** /api/bookings/staff |
77
79
  *BookingsUserApi* | [**cancelBooking**](docs/BookingsUserApi.md#cancelbooking) | **DELETE** /api/bookings/{bookingId} |
@@ -224,6 +226,7 @@ Class | Method | HTTP request | Description
224
226
  *EventsStaffApi* | [**getPastEventsByClub**](docs/EventsStaffApi.md#getpasteventsbyclub) | **GET** /api/events/staff/getEvents/past |
225
227
  *EventsStaffApi* | [**getUpcomingEventsByClub**](docs/EventsStaffApi.md#getupcomingeventsbyclub) | **GET** /api/events/staff/getEvents/upcoming |
226
228
  *EventsStaffApi* | [**getWeeklyEvents**](docs/EventsStaffApi.md#getweeklyevents) | **GET** /api/events/calendar/weekly |
229
+ *EventsStaffApi* | [**registerPlayerToEventAsStaff**](docs/EventsStaffApi.md#registerplayertoeventasstaff) | **POST** /api/events/staff/{eventId}/register-player |
227
230
  *ImagesApi* | [**cleanupImages**](docs/ImagesApi.md#cleanupimages) | **POST** /api/images/cleanup |
228
231
  *JobsApi* | [**captureExpiringAuthorizations**](docs/JobsApi.md#captureexpiringauthorizations) | **GET** /api/jobs/capture-expiring-authorizations | Capture les autorisations Stripe qui expirent dans moins de 4h
229
232
  *JobsApi* | [**capturePastReservations**](docs/JobsApi.md#capturepastreservations) | **GET** /api/jobs/capture-past-reservations | Capture les paiements autorisés pour les réservations passées
@@ -363,6 +366,7 @@ Class | Method | HTTP request | Description
363
366
  - [BookingHistoryPopulated](docs/BookingHistoryPopulated.md)
364
367
  - [BookingInfo](docs/BookingInfo.md)
365
368
  - [BookingInvoicePaymentStatus](docs/BookingInvoicePaymentStatus.md)
369
+ - [BookingManagerConsoleResponse](docs/BookingManagerConsoleResponse.md)
366
370
  - [BookingPaymentStatus](docs/BookingPaymentStatus.md)
367
371
  - [BookingPaymentStatusResponse](docs/BookingPaymentStatusResponse.md)
368
372
  - [BookingPaymentStatusResponseBooking](docs/BookingPaymentStatusResponseBooking.md)
@@ -623,6 +627,9 @@ Class | Method | HTTP request | Description
623
627
  - [MyClubCustomerSettingsResponse](docs/MyClubCustomerSettingsResponse.md)
624
628
  - [MyClubInfosResponse](docs/MyClubInfosResponse.md)
625
629
  - [NoShowFeeResponse](docs/NoShowFeeResponse.md)
630
+ - [NoShowPreviewIneligibleReason](docs/NoShowPreviewIneligibleReason.md)
631
+ - [NoShowPreviewInvoice](docs/NoShowPreviewInvoice.md)
632
+ - [NoShowPreviewResponse](docs/NoShowPreviewResponse.md)
626
633
  - [NoShowRateResponse](docs/NoShowRateResponse.md)
627
634
  - [NotificationActorType](docs/NotificationActorType.md)
628
635
  - [NotificationData](docs/NotificationData.md)
@@ -734,6 +741,7 @@ Class | Method | HTTP request | Description
734
741
  - [StaffEventSeriesContext](docs/StaffEventSeriesContext.md)
735
742
  - [StaffEventSeriesResponse](docs/StaffEventSeriesResponse.md)
736
743
  - [StaffEventsPageResponse](docs/StaffEventsPageResponse.md)
744
+ - [StaffRegisterPlayerToEventRequest](docs/StaffRegisterPlayerToEventRequest.md)
737
745
  - [StaffUserProfileResponse](docs/StaffUserProfileResponse.md)
738
746
  - [SubscribeRequestBody](docs/SubscribeRequestBody.md)
739
747
  - [SubscriberPrice](docs/SubscriberPrice.md)
package/api.ts CHANGED
@@ -730,6 +730,25 @@ export const BookingInvoicePaymentStatus = {
730
730
  export type BookingInvoicePaymentStatus = typeof BookingInvoicePaymentStatus[keyof typeof BookingInvoicePaymentStatus];
731
731
 
732
732
 
733
+ /**
734
+ *
735
+ * @export
736
+ * @interface BookingManagerConsoleResponse
737
+ */
738
+ export interface BookingManagerConsoleResponse {
739
+ /**
740
+ *
741
+ * @type {BookingPopulated}
742
+ * @memberof BookingManagerConsoleResponse
743
+ */
744
+ 'booking': BookingPopulated;
745
+ /**
746
+ *
747
+ * @type {NoShowPreviewResponse}
748
+ * @memberof BookingManagerConsoleResponse
749
+ */
750
+ 'noShowPreview': NoShowPreviewResponse;
751
+ }
733
752
  /**
734
753
  *
735
754
  * @export
@@ -10683,6 +10702,161 @@ export interface NoShowFeeResponse {
10683
10702
  */
10684
10703
  'creatorChargeResult'?: CreatorChargeResult;
10685
10704
  }
10705
+ /**
10706
+ *
10707
+ * @export
10708
+ * @enum {string}
10709
+ */
10710
+
10711
+ export const NoShowPreviewIneligibleReason = {
10712
+ BookingPending: 'BOOKING_PENDING',
10713
+ BookingPaid: 'BOOKING_PAID',
10714
+ BookingCanceled: 'BOOKING_CANCELED',
10715
+ NoShowAlreadyApplied: 'NO_SHOW_ALREADY_APPLIED',
10716
+ ClubIneligible: 'CLUB_INELIGIBLE'
10717
+ } as const;
10718
+
10719
+ export type NoShowPreviewIneligibleReason = typeof NoShowPreviewIneligibleReason[keyof typeof NoShowPreviewIneligibleReason];
10720
+
10721
+
10722
+ /**
10723
+ *
10724
+ * @export
10725
+ * @interface NoShowPreviewInvoice
10726
+ */
10727
+ export interface NoShowPreviewInvoice {
10728
+ /**
10729
+ * ID de la facture
10730
+ * @type {string}
10731
+ * @memberof NoShowPreviewInvoice
10732
+ */
10733
+ 'invoiceId': string;
10734
+ /**
10735
+ * ID du joueur associé
10736
+ * @type {string}
10737
+ * @memberof NoShowPreviewInvoice
10738
+ */
10739
+ 'playerId': string;
10740
+ /**
10741
+ * Montant en centimes
10742
+ * @type {number}
10743
+ * @memberof NoShowPreviewInvoice
10744
+ */
10745
+ 'amount': number;
10746
+ /**
10747
+ *
10748
+ * @type {InvoiceStatus}
10749
+ * @memberof NoShowPreviewInvoice
10750
+ */
10751
+ 'status': InvoiceStatus;
10752
+ /**
10753
+ * Présence d\'un PaymentIntent Stripe capturable
10754
+ * @type {boolean}
10755
+ * @memberof NoShowPreviewInvoice
10756
+ */
10757
+ 'hasStripePaymentIntent': boolean;
10758
+ /**
10759
+ * Facture capturable immédiatement pour no-show
10760
+ * @type {boolean}
10761
+ * @memberof NoShowPreviewInvoice
10762
+ */
10763
+ 'capturableNow': boolean;
10764
+ }
10765
+
10766
+
10767
+ /**
10768
+ *
10769
+ * @export
10770
+ * @interface NoShowPreviewResponse
10771
+ */
10772
+ export interface NoShowPreviewResponse {
10773
+ /**
10774
+ * ID de la réservation
10775
+ * @type {string}
10776
+ * @memberof NoShowPreviewResponse
10777
+ */
10778
+ 'bookingId': string;
10779
+ /**
10780
+ *
10781
+ * @type {BookingStatus}
10782
+ * @memberof NoShowPreviewResponse
10783
+ */
10784
+ 'bookingStatus': BookingStatus;
10785
+ /**
10786
+ * Réservation éligible à l\'application des frais de no-show
10787
+ * @type {boolean}
10788
+ * @memberof NoShowPreviewResponse
10789
+ */
10790
+ 'isEligible': boolean;
10791
+ /**
10792
+ *
10793
+ * @type {NoShowPreviewIneligibleReason}
10794
+ * @memberof NoShowPreviewResponse
10795
+ */
10796
+ 'ineligibleReason'?: NoShowPreviewIneligibleReason;
10797
+ /**
10798
+ * Message explicatif pour l\'UI
10799
+ * @type {string}
10800
+ * @memberof NoShowPreviewResponse
10801
+ */
10802
+ 'ineligibleMessage'?: string;
10803
+ /**
10804
+ * Les frais de no-show ont déjà été appliqués
10805
+ * @type {boolean}
10806
+ * @memberof NoShowPreviewResponse
10807
+ */
10808
+ 'noShowAlreadyApplied': boolean;
10809
+ /**
10810
+ * Montant no-show déjà stocké sur la réservation
10811
+ * @type {number}
10812
+ * @memberof NoShowPreviewResponse
10813
+ */
10814
+ 'noShowChargeAmount'?: number;
10815
+ /**
10816
+ * Montant total attendu en cas de no-show (centimes)
10817
+ * @type {number}
10818
+ * @memberof NoShowPreviewResponse
10819
+ */
10820
+ 'totalExpected': number;
10821
+ /**
10822
+ * Montant déjà capturé (factures paid)
10823
+ * @type {number}
10824
+ * @memberof NoShowPreviewResponse
10825
+ */
10826
+ 'totalAlreadyCaptured': number;
10827
+ /**
10828
+ * Montant potentiellement capturable immédiatement (authorized + paymentIntent)
10829
+ * @type {number}
10830
+ * @memberof NoShowPreviewResponse
10831
+ */
10832
+ 'totalPotentialCapture': number;
10833
+ /**
10834
+ * Total potentiel après captures automatiques
10835
+ * @type {number}
10836
+ * @memberof NoShowPreviewResponse
10837
+ */
10838
+ 'totalPotentialAfterCapture': number;
10839
+ /**
10840
+ * Manque estimé après captures automatiques
10841
+ * @type {number}
10842
+ * @memberof NoShowPreviewResponse
10843
+ */
10844
+ 'estimatedMissingAfterCapture': number;
10845
+ /**
10846
+ * Détail facture par facture
10847
+ * @type {Array<NoShowPreviewInvoice>}
10848
+ * @memberof NoShowPreviewResponse
10849
+ */
10850
+ 'invoices': Array<NoShowPreviewInvoice>;
10851
+ /**
10852
+ * Horodatage de génération ISO
10853
+ * @type {string}
10854
+ * @memberof NoShowPreviewResponse
10855
+ */
10856
+ 'generatedAt': string;
10857
+ }
10858
+
10859
+
10686
10860
  /**
10687
10861
  *
10688
10862
  * @export
@@ -14877,6 +15051,43 @@ export interface StaffEventsPageResponse {
14877
15051
  */
14878
15052
  'pagination': PaginationInfo;
14879
15053
  }
15054
+ /**
15055
+ *
15056
+ * @export
15057
+ * @interface StaffRegisterPlayerToEventRequest
15058
+ */
15059
+ export interface StaffRegisterPlayerToEventRequest {
15060
+ /**
15061
+ * Joueur existant à inscrire
15062
+ * @type {string}
15063
+ * @memberof StaffRegisterPlayerToEventRequest
15064
+ */
15065
+ 'playerId': string;
15066
+ /**
15067
+ * Nom de l\'équipe (requis pour les événements en équipe)
15068
+ * @type {string}
15069
+ * @memberof StaffRegisterPlayerToEventRequest
15070
+ */
15071
+ 'teamName'?: string;
15072
+ /**
15073
+ * Coéquipiers à inscrire avec `playerId` (sans inclure `playerId` lui-même) Utilisé pour les événements en équipe.
15074
+ * @type {Array<string>}
15075
+ * @memberof StaffRegisterPlayerToEventRequest
15076
+ */
15077
+ 'teammateIds'?: Array<string>;
15078
+ /**
15079
+ * Numéro de licence du joueur principal
15080
+ * @type {string}
15081
+ * @memberof StaffRegisterPlayerToEventRequest
15082
+ */
15083
+ 'licenceNumber'?: string;
15084
+ /**
15085
+ * Construct a type with a set of properties K of type T
15086
+ * @type {{ [key: string]: string; }}
15087
+ * @memberof StaffRegisterPlayerToEventRequest
15088
+ */
15089
+ 'playersLicenceNumbers'?: { [key: string]: string; };
15090
+ }
14880
15091
  /**
14881
15092
  *
14882
15093
  * @export
@@ -20341,6 +20552,43 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration?: Confi
20341
20552
 
20342
20553
 
20343
20554
 
20555
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20556
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20557
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20558
+
20559
+ return {
20560
+ url: toPathString(localVarUrlObj),
20561
+ options: localVarRequestOptions,
20562
+ };
20563
+ },
20564
+ /**
20565
+ * Obtenir les données consolidées de la console manager d\'une réservation
20566
+ * @param {string} bookingId
20567
+ * @param {*} [options] Override http request option.
20568
+ * @throws {RequiredError}
20569
+ */
20570
+ getBookingManagerConsole: async (bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20571
+ // verify required parameter 'bookingId' is not null or undefined
20572
+ assertParamExists('getBookingManagerConsole', 'bookingId', bookingId)
20573
+ const localVarPath = `/api/bookings/{bookingId}/manager-console`
20574
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
20575
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20576
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20577
+ let baseOptions;
20578
+ if (configuration) {
20579
+ baseOptions = configuration.baseOptions;
20580
+ }
20581
+
20582
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
20583
+ const localVarHeaderParameter = {} as any;
20584
+ const localVarQueryParameter = {} as any;
20585
+
20586
+ // authentication bearerAuth required
20587
+ // http bearer authentication required
20588
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
20589
+
20590
+
20591
+
20344
20592
  setSearchParams(localVarUrlObj, localVarQueryParameter);
20345
20593
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20346
20594
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -20415,6 +20663,43 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration?: Confi
20415
20663
 
20416
20664
 
20417
20665
 
20666
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20667
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20668
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20669
+
20670
+ return {
20671
+ url: toPathString(localVarUrlObj),
20672
+ options: localVarRequestOptions,
20673
+ };
20674
+ },
20675
+ /**
20676
+ * Prévisualiser l\'application des frais de no-show
20677
+ * @param {string} bookingId
20678
+ * @param {*} [options] Override http request option.
20679
+ * @throws {RequiredError}
20680
+ */
20681
+ getNoShowPreview: async (bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20682
+ // verify required parameter 'bookingId' is not null or undefined
20683
+ assertParamExists('getNoShowPreview', 'bookingId', bookingId)
20684
+ const localVarPath = `/api/bookings/{bookingId}/no-show-preview`
20685
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
20686
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20687
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20688
+ let baseOptions;
20689
+ if (configuration) {
20690
+ baseOptions = configuration.baseOptions;
20691
+ }
20692
+
20693
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
20694
+ const localVarHeaderParameter = {} as any;
20695
+ const localVarQueryParameter = {} as any;
20696
+
20697
+ // authentication bearerAuth required
20698
+ // http bearer authentication required
20699
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
20700
+
20701
+
20702
+
20418
20703
  setSearchParams(localVarUrlObj, localVarQueryParameter);
20419
20704
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20420
20705
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -20591,6 +20876,18 @@ export const BookingsStaffApiFp = function(configuration?: Configuration) {
20591
20876
  const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.getBookingHistoryStaff']?.[localVarOperationServerIndex]?.url;
20592
20877
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20593
20878
  },
20879
+ /**
20880
+ * Obtenir les données consolidées de la console manager d\'une réservation
20881
+ * @param {string} bookingId
20882
+ * @param {*} [options] Override http request option.
20883
+ * @throws {RequiredError}
20884
+ */
20885
+ async getBookingManagerConsole(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingManagerConsoleResponse>> {
20886
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingManagerConsole(bookingId, options);
20887
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20888
+ const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.getBookingManagerConsole']?.[localVarOperationServerIndex]?.url;
20889
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20890
+ },
20594
20891
  /**
20595
20892
  * Obtenir le statut des paiements d\'une réservation
20596
20893
  * @param {string} bookingId
@@ -20615,6 +20912,18 @@ export const BookingsStaffApiFp = function(configuration?: Configuration) {
20615
20912
  const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.getDailyBookings']?.[localVarOperationServerIndex]?.url;
20616
20913
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20617
20914
  },
20915
+ /**
20916
+ * Prévisualiser l\'application des frais de no-show
20917
+ * @param {string} bookingId
20918
+ * @param {*} [options] Override http request option.
20919
+ * @throws {RequiredError}
20920
+ */
20921
+ async getNoShowPreview(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NoShowPreviewResponse>> {
20922
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getNoShowPreview(bookingId, options);
20923
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20924
+ const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.getNoShowPreview']?.[localVarOperationServerIndex]?.url;
20925
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20926
+ },
20618
20927
  /**
20619
20928
  * Obtenir les réservations hebdomadaires
20620
20929
  * @param {string} weekId
@@ -20698,6 +21007,15 @@ export const BookingsStaffApiFactory = function (configuration?: Configuration,
20698
21007
  getBookingHistoryStaff(requestParameters: BookingsStaffApiGetBookingHistoryStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingHistoryPopulated> {
20699
21008
  return localVarFp.getBookingHistoryStaff(requestParameters.bookingId, options).then((request) => request(axios, basePath));
20700
21009
  },
21010
+ /**
21011
+ * Obtenir les données consolidées de la console manager d\'une réservation
21012
+ * @param {BookingsStaffApiGetBookingManagerConsoleRequest} requestParameters Request parameters.
21013
+ * @param {*} [options] Override http request option.
21014
+ * @throws {RequiredError}
21015
+ */
21016
+ getBookingManagerConsole(requestParameters: BookingsStaffApiGetBookingManagerConsoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingManagerConsoleResponse> {
21017
+ return localVarFp.getBookingManagerConsole(requestParameters.bookingId, options).then((request) => request(axios, basePath));
21018
+ },
20701
21019
  /**
20702
21020
  * Obtenir le statut des paiements d\'une réservation
20703
21021
  * @param {BookingsStaffApiGetBookingPaymentStatusRequest} requestParameters Request parameters.
@@ -20716,6 +21034,15 @@ export const BookingsStaffApiFactory = function (configuration?: Configuration,
20716
21034
  getDailyBookings(requestParameters: BookingsStaffApiGetDailyBookingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingsWithTimeBoundsResponse> {
20717
21035
  return localVarFp.getDailyBookings(requestParameters.date, options).then((request) => request(axios, basePath));
20718
21036
  },
21037
+ /**
21038
+ * Prévisualiser l\'application des frais de no-show
21039
+ * @param {BookingsStaffApiGetNoShowPreviewRequest} requestParameters Request parameters.
21040
+ * @param {*} [options] Override http request option.
21041
+ * @throws {RequiredError}
21042
+ */
21043
+ getNoShowPreview(requestParameters: BookingsStaffApiGetNoShowPreviewRequest, options?: RawAxiosRequestConfig): AxiosPromise<NoShowPreviewResponse> {
21044
+ return localVarFp.getNoShowPreview(requestParameters.bookingId, options).then((request) => request(axios, basePath));
21045
+ },
20719
21046
  /**
20720
21047
  * Obtenir les réservations hebdomadaires
20721
21048
  * @param {BookingsStaffApiGetWeeklyBookingsRequest} requestParameters Request parameters.
@@ -20821,6 +21148,20 @@ export interface BookingsStaffApiGetBookingHistoryStaffRequest {
20821
21148
  readonly bookingId: string
20822
21149
  }
20823
21150
 
21151
+ /**
21152
+ * Request parameters for getBookingManagerConsole operation in BookingsStaffApi.
21153
+ * @export
21154
+ * @interface BookingsStaffApiGetBookingManagerConsoleRequest
21155
+ */
21156
+ export interface BookingsStaffApiGetBookingManagerConsoleRequest {
21157
+ /**
21158
+ *
21159
+ * @type {string}
21160
+ * @memberof BookingsStaffApiGetBookingManagerConsole
21161
+ */
21162
+ readonly bookingId: string
21163
+ }
21164
+
20824
21165
  /**
20825
21166
  * Request parameters for getBookingPaymentStatus operation in BookingsStaffApi.
20826
21167
  * @export
@@ -20849,6 +21190,20 @@ export interface BookingsStaffApiGetDailyBookingsRequest {
20849
21190
  readonly date: string
20850
21191
  }
20851
21192
 
21193
+ /**
21194
+ * Request parameters for getNoShowPreview operation in BookingsStaffApi.
21195
+ * @export
21196
+ * @interface BookingsStaffApiGetNoShowPreviewRequest
21197
+ */
21198
+ export interface BookingsStaffApiGetNoShowPreviewRequest {
21199
+ /**
21200
+ *
21201
+ * @type {string}
21202
+ * @memberof BookingsStaffApiGetNoShowPreview
21203
+ */
21204
+ readonly bookingId: string
21205
+ }
21206
+
20852
21207
  /**
20853
21208
  * Request parameters for getWeeklyBookings operation in BookingsStaffApi.
20854
21209
  * @export
@@ -20967,6 +21322,17 @@ export class BookingsStaffApi extends BaseAPI {
20967
21322
  return BookingsStaffApiFp(this.configuration).getBookingHistoryStaff(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
20968
21323
  }
20969
21324
 
21325
+ /**
21326
+ * Obtenir les données consolidées de la console manager d\'une réservation
21327
+ * @param {BookingsStaffApiGetBookingManagerConsoleRequest} requestParameters Request parameters.
21328
+ * @param {*} [options] Override http request option.
21329
+ * @throws {RequiredError}
21330
+ * @memberof BookingsStaffApi
21331
+ */
21332
+ public getBookingManagerConsole(requestParameters: BookingsStaffApiGetBookingManagerConsoleRequest, options?: RawAxiosRequestConfig) {
21333
+ return BookingsStaffApiFp(this.configuration).getBookingManagerConsole(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
21334
+ }
21335
+
20970
21336
  /**
20971
21337
  * Obtenir le statut des paiements d\'une réservation
20972
21338
  * @param {BookingsStaffApiGetBookingPaymentStatusRequest} requestParameters Request parameters.
@@ -20989,6 +21355,17 @@ export class BookingsStaffApi extends BaseAPI {
20989
21355
  return BookingsStaffApiFp(this.configuration).getDailyBookings(requestParameters.date, options).then((request) => request(this.axios, this.basePath));
20990
21356
  }
20991
21357
 
21358
+ /**
21359
+ * Prévisualiser l\'application des frais de no-show
21360
+ * @param {BookingsStaffApiGetNoShowPreviewRequest} requestParameters Request parameters.
21361
+ * @param {*} [options] Override http request option.
21362
+ * @throws {RequiredError}
21363
+ * @memberof BookingsStaffApi
21364
+ */
21365
+ public getNoShowPreview(requestParameters: BookingsStaffApiGetNoShowPreviewRequest, options?: RawAxiosRequestConfig) {
21366
+ return BookingsStaffApiFp(this.configuration).getNoShowPreview(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
21367
+ }
21368
+
20992
21369
  /**
20993
21370
  * Obtenir les réservations hebdomadaires
20994
21371
  * @param {BookingsStaffApiGetWeeklyBookingsRequest} requestParameters Request parameters.
@@ -33750,6 +34127,49 @@ export const EventsStaffApiAxiosParamCreator = function (configuration?: Configu
33750
34127
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33751
34128
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33752
34129
 
34130
+ return {
34131
+ url: toPathString(localVarUrlObj),
34132
+ options: localVarRequestOptions,
34133
+ };
34134
+ },
34135
+ /**
34136
+ * Inscrire un joueur existant à un événement depuis l\'espace staff Le paiement est automatiquement positionné en paiement sur place.
34137
+ * @param {string} eventId
34138
+ * @param {StaffRegisterPlayerToEventRequest} staffRegisterPlayerToEventRequest
34139
+ * @param {*} [options] Override http request option.
34140
+ * @throws {RequiredError}
34141
+ */
34142
+ registerPlayerToEventAsStaff: async (eventId: string, staffRegisterPlayerToEventRequest: StaffRegisterPlayerToEventRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
34143
+ // verify required parameter 'eventId' is not null or undefined
34144
+ assertParamExists('registerPlayerToEventAsStaff', 'eventId', eventId)
34145
+ // verify required parameter 'staffRegisterPlayerToEventRequest' is not null or undefined
34146
+ assertParamExists('registerPlayerToEventAsStaff', 'staffRegisterPlayerToEventRequest', staffRegisterPlayerToEventRequest)
34147
+ const localVarPath = `/api/events/staff/{eventId}/register-player`
34148
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
34149
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34150
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34151
+ let baseOptions;
34152
+ if (configuration) {
34153
+ baseOptions = configuration.baseOptions;
34154
+ }
34155
+
34156
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
34157
+ const localVarHeaderParameter = {} as any;
34158
+ const localVarQueryParameter = {} as any;
34159
+
34160
+ // authentication bearerAuth required
34161
+ // http bearer authentication required
34162
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
34163
+
34164
+
34165
+
34166
+ localVarHeaderParameter['Content-Type'] = 'application/json';
34167
+
34168
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34169
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34170
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34171
+ localVarRequestOptions.data = serializeDataIfNeeded(staffRegisterPlayerToEventRequest, localVarRequestOptions, configuration)
34172
+
33753
34173
  return {
33754
34174
  url: toPathString(localVarUrlObj),
33755
34175
  options: localVarRequestOptions,
@@ -33886,6 +34306,19 @@ export const EventsStaffApiFp = function(configuration?: Configuration) {
33886
34306
  const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.getWeeklyEvents']?.[localVarOperationServerIndex]?.url;
33887
34307
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
33888
34308
  },
34309
+ /**
34310
+ * Inscrire un joueur existant à un événement depuis l\'espace staff Le paiement est automatiquement positionné en paiement sur place.
34311
+ * @param {string} eventId
34312
+ * @param {StaffRegisterPlayerToEventRequest} staffRegisterPlayerToEventRequest
34313
+ * @param {*} [options] Override http request option.
34314
+ * @throws {RequiredError}
34315
+ */
34316
+ async registerPlayerToEventAsStaff(eventId: string, staffRegisterPlayerToEventRequest: StaffRegisterPlayerToEventRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JoinEventResponse>> {
34317
+ const localVarAxiosArgs = await localVarAxiosParamCreator.registerPlayerToEventAsStaff(eventId, staffRegisterPlayerToEventRequest, options);
34318
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
34319
+ const localVarOperationServerBasePath = operationServerMap['EventsStaffApi.registerPlayerToEventAsStaff']?.[localVarOperationServerIndex]?.url;
34320
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34321
+ },
33889
34322
  }
33890
34323
  };
33891
34324
 
@@ -33974,6 +34407,15 @@ export const EventsStaffApiFactory = function (configuration?: Configuration, ba
33974
34407
  getWeeklyEvents(requestParameters: EventsStaffApiGetWeeklyEventsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse> {
33975
34408
  return localVarFp.getWeeklyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
33976
34409
  },
34410
+ /**
34411
+ * Inscrire un joueur existant à un événement depuis l\'espace staff Le paiement est automatiquement positionné en paiement sur place.
34412
+ * @param {EventsStaffApiRegisterPlayerToEventAsStaffRequest} requestParameters Request parameters.
34413
+ * @param {*} [options] Override http request option.
34414
+ * @throws {RequiredError}
34415
+ */
34416
+ registerPlayerToEventAsStaff(requestParameters: EventsStaffApiRegisterPlayerToEventAsStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<JoinEventResponse> {
34417
+ return localVarFp.registerPlayerToEventAsStaff(requestParameters.eventId, requestParameters.staffRegisterPlayerToEventRequest, options).then((request) => request(axios, basePath));
34418
+ },
33977
34419
  };
33978
34420
  };
33979
34421
 
@@ -34173,6 +34615,27 @@ export interface EventsStaffApiGetWeeklyEventsRequest {
34173
34615
  readonly sportId?: string
34174
34616
  }
34175
34617
 
34618
+ /**
34619
+ * Request parameters for registerPlayerToEventAsStaff operation in EventsStaffApi.
34620
+ * @export
34621
+ * @interface EventsStaffApiRegisterPlayerToEventAsStaffRequest
34622
+ */
34623
+ export interface EventsStaffApiRegisterPlayerToEventAsStaffRequest {
34624
+ /**
34625
+ *
34626
+ * @type {string}
34627
+ * @memberof EventsStaffApiRegisterPlayerToEventAsStaff
34628
+ */
34629
+ readonly eventId: string
34630
+
34631
+ /**
34632
+ *
34633
+ * @type {StaffRegisterPlayerToEventRequest}
34634
+ * @memberof EventsStaffApiRegisterPlayerToEventAsStaff
34635
+ */
34636
+ readonly staffRegisterPlayerToEventRequest: StaffRegisterPlayerToEventRequest
34637
+ }
34638
+
34176
34639
  /**
34177
34640
  * EventsStaffApi - object-oriented interface
34178
34641
  * @export
@@ -34275,6 +34738,17 @@ export class EventsStaffApi extends BaseAPI {
34275
34738
  public getWeeklyEvents(requestParameters: EventsStaffApiGetWeeklyEventsRequest = {}, options?: RawAxiosRequestConfig) {
34276
34739
  return EventsStaffApiFp(this.configuration).getWeeklyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
34277
34740
  }
34741
+
34742
+ /**
34743
+ * Inscrire un joueur existant à un événement depuis l\'espace staff Le paiement est automatiquement positionné en paiement sur place.
34744
+ * @param {EventsStaffApiRegisterPlayerToEventAsStaffRequest} requestParameters Request parameters.
34745
+ * @param {*} [options] Override http request option.
34746
+ * @throws {RequiredError}
34747
+ * @memberof EventsStaffApi
34748
+ */
34749
+ public registerPlayerToEventAsStaff(requestParameters: EventsStaffApiRegisterPlayerToEventAsStaffRequest, options?: RawAxiosRequestConfig) {
34750
+ return EventsStaffApiFp(this.configuration).registerPlayerToEventAsStaff(requestParameters.eventId, requestParameters.staffRegisterPlayerToEventRequest, options).then((request) => request(this.axios, this.basePath));
34751
+ }
34278
34752
  }
34279
34753
 
34280
34754
  /**