@tennac-booking/sdk 1.0.143 → 1.0.145

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.js CHANGED
@@ -459,6 +459,37 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
459
459
  options: localVarRequestOptions,
460
460
  };
461
461
  }),
462
+ /**
463
+ *
464
+ * @param {string} [clubId]
465
+ * @param {*} [options] Override http request option.
466
+ * @throws {RequiredError}
467
+ */
468
+ getOpenBookings: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
469
+ const localVarPath = `/api/bookings/open`;
470
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
471
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
472
+ let baseOptions;
473
+ if (configuration) {
474
+ baseOptions = configuration.baseOptions;
475
+ }
476
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
477
+ const localVarHeaderParameter = {};
478
+ const localVarQueryParameter = {};
479
+ // authentication bearerAuth required
480
+ // http bearer authentication required
481
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
482
+ if (clubId !== undefined) {
483
+ localVarQueryParameter['clubId'] = clubId;
484
+ }
485
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
486
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
487
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
488
+ return {
489
+ url: toPathString(localVarUrlObj),
490
+ options: localVarRequestOptions,
491
+ };
492
+ }),
462
493
  /**
463
494
  * Recherche des créneaux disponibles pour une réservation rapide
464
495
  * @param {number} [latitude]
@@ -527,6 +558,73 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
527
558
  options: localVarRequestOptions,
528
559
  };
529
560
  }),
561
+ /**
562
+ *
563
+ * @param {string} bookingId
564
+ * @param {JoinOpenEventBookingRequest} joinOpenEventBookingRequest
565
+ * @param {*} [options] Override http request option.
566
+ * @throws {RequiredError}
567
+ */
568
+ joinOpenBooking: (bookingId_1, joinOpenEventBookingRequest_1, ...args_1) => __awaiter(this, [bookingId_1, joinOpenEventBookingRequest_1, ...args_1], void 0, function* (bookingId, joinOpenEventBookingRequest, options = {}) {
569
+ // verify required parameter 'bookingId' is not null or undefined
570
+ assertParamExists('joinOpenBooking', 'bookingId', bookingId);
571
+ // verify required parameter 'joinOpenEventBookingRequest' is not null or undefined
572
+ assertParamExists('joinOpenBooking', 'joinOpenEventBookingRequest', joinOpenEventBookingRequest);
573
+ const localVarPath = `/api/bookings/{bookingId}/open/join`
574
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
575
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
576
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
577
+ let baseOptions;
578
+ if (configuration) {
579
+ baseOptions = configuration.baseOptions;
580
+ }
581
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
582
+ const localVarHeaderParameter = {};
583
+ const localVarQueryParameter = {};
584
+ // authentication bearerAuth required
585
+ // http bearer authentication required
586
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
587
+ localVarHeaderParameter['Content-Type'] = 'application/json';
588
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
589
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
590
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
591
+ localVarRequestOptions.data = serializeDataIfNeeded(joinOpenEventBookingRequest, localVarRequestOptions, configuration);
592
+ return {
593
+ url: toPathString(localVarUrlObj),
594
+ options: localVarRequestOptions,
595
+ };
596
+ }),
597
+ /**
598
+ *
599
+ * @param {string} bookingId
600
+ * @param {*} [options] Override http request option.
601
+ * @throws {RequiredError}
602
+ */
603
+ leaveOpenBooking: (bookingId_1, ...args_1) => __awaiter(this, [bookingId_1, ...args_1], void 0, function* (bookingId, options = {}) {
604
+ // verify required parameter 'bookingId' is not null or undefined
605
+ assertParamExists('leaveOpenBooking', 'bookingId', bookingId);
606
+ const localVarPath = `/api/bookings/{bookingId}/open/leave`
607
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
608
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
609
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
610
+ let baseOptions;
611
+ if (configuration) {
612
+ baseOptions = configuration.baseOptions;
613
+ }
614
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
615
+ const localVarHeaderParameter = {};
616
+ const localVarQueryParameter = {};
617
+ // authentication bearerAuth required
618
+ // http bearer authentication required
619
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
620
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
621
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
622
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
623
+ return {
624
+ url: toPathString(localVarUrlObj),
625
+ options: localVarRequestOptions,
626
+ };
627
+ }),
530
628
  };
531
629
  };
532
630
  /**
@@ -566,6 +664,21 @@ export const BookingsApiFp = function (configuration) {
566
664
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
567
665
  });
568
666
  },
667
+ /**
668
+ *
669
+ * @param {string} [clubId]
670
+ * @param {*} [options] Override http request option.
671
+ * @throws {RequiredError}
672
+ */
673
+ getOpenBookings(clubId, options) {
674
+ return __awaiter(this, void 0, void 0, function* () {
675
+ var _a, _b, _c;
676
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenBookings(clubId, options);
677
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
678
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getOpenBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
679
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
680
+ });
681
+ },
569
682
  /**
570
683
  * Recherche des créneaux disponibles pour une réservation rapide
571
684
  * @param {number} [latitude]
@@ -591,6 +704,37 @@ export const BookingsApiFp = function (configuration) {
591
704
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
592
705
  });
593
706
  },
707
+ /**
708
+ *
709
+ * @param {string} bookingId
710
+ * @param {JoinOpenEventBookingRequest} joinOpenEventBookingRequest
711
+ * @param {*} [options] Override http request option.
712
+ * @throws {RequiredError}
713
+ */
714
+ joinOpenBooking(bookingId, joinOpenEventBookingRequest, options) {
715
+ return __awaiter(this, void 0, void 0, function* () {
716
+ var _a, _b, _c;
717
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.joinOpenBooking(bookingId, joinOpenEventBookingRequest, options);
718
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
719
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.joinOpenBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
720
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
721
+ });
722
+ },
723
+ /**
724
+ *
725
+ * @param {string} bookingId
726
+ * @param {*} [options] Override http request option.
727
+ * @throws {RequiredError}
728
+ */
729
+ leaveOpenBooking(bookingId, options) {
730
+ return __awaiter(this, void 0, void 0, function* () {
731
+ var _a, _b, _c;
732
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.leaveOpenBooking(bookingId, options);
733
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
734
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.leaveOpenBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
735
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
736
+ });
737
+ },
594
738
  };
595
739
  };
596
740
  /**
@@ -618,6 +762,15 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
618
762
  getBookingPrice(requestParameters, options) {
619
763
  return localVarFp.getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(axios, basePath));
620
764
  },
765
+ /**
766
+ *
767
+ * @param {BookingsApiGetOpenBookingsRequest} requestParameters Request parameters.
768
+ * @param {*} [options] Override http request option.
769
+ * @throws {RequiredError}
770
+ */
771
+ getOpenBookings(requestParameters = {}, options) {
772
+ return localVarFp.getOpenBookings(requestParameters.clubId, options).then((request) => request(axios, basePath));
773
+ },
621
774
  /**
622
775
  * Recherche des créneaux disponibles pour une réservation rapide
623
776
  * @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
@@ -627,6 +780,24 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
627
780
  getQuickReservationSlots(requestParameters = {}, options) {
628
781
  return localVarFp.getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.surfaceTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(axios, basePath));
629
782
  },
783
+ /**
784
+ *
785
+ * @param {BookingsApiJoinOpenBookingRequest} requestParameters Request parameters.
786
+ * @param {*} [options] Override http request option.
787
+ * @throws {RequiredError}
788
+ */
789
+ joinOpenBooking(requestParameters, options) {
790
+ return localVarFp.joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenEventBookingRequest, options).then((request) => request(axios, basePath));
791
+ },
792
+ /**
793
+ *
794
+ * @param {BookingsApiLeaveOpenBookingRequest} requestParameters Request parameters.
795
+ * @param {*} [options] Override http request option.
796
+ * @throws {RequiredError}
797
+ */
798
+ leaveOpenBooking(requestParameters, options) {
799
+ return localVarFp.leaveOpenBooking(requestParameters.bookingId, options).then((request) => request(axios, basePath));
800
+ },
630
801
  };
631
802
  };
632
803
  /**
@@ -656,6 +827,16 @@ export class BookingsApi extends BaseAPI {
656
827
  getBookingPrice(requestParameters, options) {
657
828
  return BookingsApiFp(this.configuration).getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(this.axios, this.basePath));
658
829
  }
830
+ /**
831
+ *
832
+ * @param {BookingsApiGetOpenBookingsRequest} requestParameters Request parameters.
833
+ * @param {*} [options] Override http request option.
834
+ * @throws {RequiredError}
835
+ * @memberof BookingsApi
836
+ */
837
+ getOpenBookings(requestParameters = {}, options) {
838
+ return BookingsApiFp(this.configuration).getOpenBookings(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
839
+ }
659
840
  /**
660
841
  * Recherche des créneaux disponibles pour une réservation rapide
661
842
  * @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
@@ -666,6 +847,26 @@ export class BookingsApi extends BaseAPI {
666
847
  getQuickReservationSlots(requestParameters = {}, options) {
667
848
  return BookingsApiFp(this.configuration).getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.surfaceTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(this.axios, this.basePath));
668
849
  }
850
+ /**
851
+ *
852
+ * @param {BookingsApiJoinOpenBookingRequest} requestParameters Request parameters.
853
+ * @param {*} [options] Override http request option.
854
+ * @throws {RequiredError}
855
+ * @memberof BookingsApi
856
+ */
857
+ joinOpenBooking(requestParameters, options) {
858
+ return BookingsApiFp(this.configuration).joinOpenBooking(requestParameters.bookingId, requestParameters.joinOpenEventBookingRequest, options).then((request) => request(this.axios, this.basePath));
859
+ }
860
+ /**
861
+ *
862
+ * @param {BookingsApiLeaveOpenBookingRequest} requestParameters Request parameters.
863
+ * @param {*} [options] Override http request option.
864
+ * @throws {RequiredError}
865
+ * @memberof BookingsApi
866
+ */
867
+ leaveOpenBooking(requestParameters, options) {
868
+ return BookingsApiFp(this.configuration).leaveOpenBooking(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
869
+ }
669
870
  }
670
871
  /**
671
872
  * BookingsManagerApi - axios parameter creator
@@ -1487,6 +1688,38 @@ export const BookingsUserApiAxiosParamCreator = function (configuration) {
1487
1688
  options: localVarRequestOptions,
1488
1689
  };
1489
1690
  }),
1691
+ /**
1692
+ * Créer une réservation ouverte (open slot)
1693
+ * @param {CreateOpenBookingRequest} createOpenBookingRequest
1694
+ * @param {*} [options] Override http request option.
1695
+ * @throws {RequiredError}
1696
+ */
1697
+ createOpenBooking: (createOpenBookingRequest_1, ...args_1) => __awaiter(this, [createOpenBookingRequest_1, ...args_1], void 0, function* (createOpenBookingRequest, options = {}) {
1698
+ // verify required parameter 'createOpenBookingRequest' is not null or undefined
1699
+ assertParamExists('createOpenBooking', 'createOpenBookingRequest', createOpenBookingRequest);
1700
+ const localVarPath = `/api/bookings/open`;
1701
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1702
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1703
+ let baseOptions;
1704
+ if (configuration) {
1705
+ baseOptions = configuration.baseOptions;
1706
+ }
1707
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1708
+ const localVarHeaderParameter = {};
1709
+ const localVarQueryParameter = {};
1710
+ // authentication bearerAuth required
1711
+ // http bearer authentication required
1712
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1713
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1714
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1715
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1716
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1717
+ localVarRequestOptions.data = serializeDataIfNeeded(createOpenBookingRequest, localVarRequestOptions, configuration);
1718
+ return {
1719
+ url: toPathString(localVarUrlObj),
1720
+ options: localVarRequestOptions,
1721
+ };
1722
+ }),
1490
1723
  };
1491
1724
  };
1492
1725
  /**
@@ -1526,6 +1759,21 @@ export const BookingsUserApiFp = function (configuration) {
1526
1759
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1527
1760
  });
1528
1761
  },
1762
+ /**
1763
+ * Créer une réservation ouverte (open slot)
1764
+ * @param {CreateOpenBookingRequest} createOpenBookingRequest
1765
+ * @param {*} [options] Override http request option.
1766
+ * @throws {RequiredError}
1767
+ */
1768
+ createOpenBooking(createOpenBookingRequest, options) {
1769
+ return __awaiter(this, void 0, void 0, function* () {
1770
+ var _a, _b, _c;
1771
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createOpenBooking(createOpenBookingRequest, options);
1772
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1773
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsUserApi.createOpenBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1774
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1775
+ });
1776
+ },
1529
1777
  };
1530
1778
  };
1531
1779
  /**
@@ -1553,6 +1801,15 @@ export const BookingsUserApiFactory = function (configuration, basePath, axios)
1553
1801
  createBooking(requestParameters, options) {
1554
1802
  return localVarFp.createBooking(requestParameters.createBookingRequest, options).then((request) => request(axios, basePath));
1555
1803
  },
1804
+ /**
1805
+ * Créer une réservation ouverte (open slot)
1806
+ * @param {BookingsUserApiCreateOpenBookingRequest} requestParameters Request parameters.
1807
+ * @param {*} [options] Override http request option.
1808
+ * @throws {RequiredError}
1809
+ */
1810
+ createOpenBooking(requestParameters, options) {
1811
+ return localVarFp.createOpenBooking(requestParameters.createOpenBookingRequest, options).then((request) => request(axios, basePath));
1812
+ },
1556
1813
  };
1557
1814
  };
1558
1815
  /**
@@ -1582,6 +1839,16 @@ export class BookingsUserApi extends BaseAPI {
1582
1839
  createBooking(requestParameters, options) {
1583
1840
  return BookingsUserApiFp(this.configuration).createBooking(requestParameters.createBookingRequest, options).then((request) => request(this.axios, this.basePath));
1584
1841
  }
1842
+ /**
1843
+ * Créer une réservation ouverte (open slot)
1844
+ * @param {BookingsUserApiCreateOpenBookingRequest} requestParameters Request parameters.
1845
+ * @param {*} [options] Override http request option.
1846
+ * @throws {RequiredError}
1847
+ * @memberof BookingsUserApi
1848
+ */
1849
+ createOpenBooking(requestParameters, options) {
1850
+ return BookingsUserApiFp(this.configuration).createOpenBooking(requestParameters.createOpenBookingRequest, options).then((request) => request(this.axios, this.basePath));
1851
+ }
1585
1852
  }
1586
1853
  /**
1587
1854
  * ClientApi - axios parameter creator
@@ -3534,23 +3801,285 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
3534
3801
  return ClubAnalyticsStaffApiFp(this.configuration).getTenNextBookings(options).then((request) => request(this.axios, this.basePath));
3535
3802
  }
3536
3803
  /**
3537
- * Classement des terrains les plus réservés
3804
+ * Classement des terrains les plus réservés
3805
+ * @param {*} [options] Override http request option.
3806
+ * @throws {RequiredError}
3807
+ * @memberof ClubAnalyticsStaffApi
3808
+ */
3809
+ getTopCourtsByBookings(options) {
3810
+ return ClubAnalyticsStaffApiFp(this.configuration).getTopCourtsByBookings(options).then((request) => request(this.axios, this.basePath));
3811
+ }
3812
+ /**
3813
+ * Récupère le chiffre d\'affaires annuel avec détail mensuel
3814
+ * @param {ClubAnalyticsStaffApiGetYearlyTurnOverRequest} requestParameters Request parameters.
3815
+ * @param {*} [options] Override http request option.
3816
+ * @throws {RequiredError}
3817
+ * @memberof ClubAnalyticsStaffApi
3818
+ */
3819
+ getYearlyTurnOver(requestParameters, options) {
3820
+ return ClubAnalyticsStaffApiFp(this.configuration).getYearlyTurnOver(requestParameters.year, options).then((request) => request(this.axios, this.basePath));
3821
+ }
3822
+ }
3823
+ /**
3824
+ * ClubCustomerMeApi - axios parameter creator
3825
+ * @export
3826
+ */
3827
+ export const ClubCustomerMeApiAxiosParamCreator = function (configuration) {
3828
+ return {
3829
+ /**
3830
+ *
3831
+ * @param {*} [options] Override http request option.
3832
+ * @throws {RequiredError}
3833
+ */
3834
+ getClubCustomerSettingsByPlayerId: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3835
+ const localVarPath = `/api/clubCustomers/club-customer/me/settings`;
3836
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3837
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3838
+ let baseOptions;
3839
+ if (configuration) {
3840
+ baseOptions = configuration.baseOptions;
3841
+ }
3842
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3843
+ const localVarHeaderParameter = {};
3844
+ const localVarQueryParameter = {};
3845
+ // authentication bearerAuth required
3846
+ // http bearer authentication required
3847
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3848
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3849
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3850
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3851
+ return {
3852
+ url: toPathString(localVarUrlObj),
3853
+ options: localVarRequestOptions,
3854
+ };
3855
+ }),
3856
+ };
3857
+ };
3858
+ /**
3859
+ * ClubCustomerMeApi - functional programming interface
3860
+ * @export
3861
+ */
3862
+ export const ClubCustomerMeApiFp = function (configuration) {
3863
+ const localVarAxiosParamCreator = ClubCustomerMeApiAxiosParamCreator(configuration);
3864
+ return {
3865
+ /**
3866
+ *
3867
+ * @param {*} [options] Override http request option.
3868
+ * @throws {RequiredError}
3869
+ */
3870
+ getClubCustomerSettingsByPlayerId(options) {
3871
+ return __awaiter(this, void 0, void 0, function* () {
3872
+ var _a, _b, _c;
3873
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubCustomerSettingsByPlayerId(options);
3874
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3875
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubCustomerMeApi.getClubCustomerSettingsByPlayerId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3876
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3877
+ });
3878
+ },
3879
+ };
3880
+ };
3881
+ /**
3882
+ * ClubCustomerMeApi - factory interface
3883
+ * @export
3884
+ */
3885
+ export const ClubCustomerMeApiFactory = function (configuration, basePath, axios) {
3886
+ const localVarFp = ClubCustomerMeApiFp(configuration);
3887
+ return {
3888
+ /**
3889
+ *
3890
+ * @param {*} [options] Override http request option.
3891
+ * @throws {RequiredError}
3892
+ */
3893
+ getClubCustomerSettingsByPlayerId(options) {
3894
+ return localVarFp.getClubCustomerSettingsByPlayerId(options).then((request) => request(axios, basePath));
3895
+ },
3896
+ };
3897
+ };
3898
+ /**
3899
+ * ClubCustomerMeApi - object-oriented interface
3900
+ * @export
3901
+ * @class ClubCustomerMeApi
3902
+ * @extends {BaseAPI}
3903
+ */
3904
+ export class ClubCustomerMeApi extends BaseAPI {
3905
+ /**
3906
+ *
3907
+ * @param {*} [options] Override http request option.
3908
+ * @throws {RequiredError}
3909
+ * @memberof ClubCustomerMeApi
3910
+ */
3911
+ getClubCustomerSettingsByPlayerId(options) {
3912
+ return ClubCustomerMeApiFp(this.configuration).getClubCustomerSettingsByPlayerId(options).then((request) => request(this.axios, this.basePath));
3913
+ }
3914
+ }
3915
+ /**
3916
+ * ClubCustomerStaffApi - axios parameter creator
3917
+ * @export
3918
+ */
3919
+ export const ClubCustomerStaffApiAxiosParamCreator = function (configuration) {
3920
+ return {
3921
+ /**
3922
+ *
3923
+ * @param {string} userId
3924
+ * @param {*} [options] Override http request option.
3925
+ * @throws {RequiredError}
3926
+ */
3927
+ getClubCustomerSettings: (userId_1, ...args_1) => __awaiter(this, [userId_1, ...args_1], void 0, function* (userId, options = {}) {
3928
+ // verify required parameter 'userId' is not null or undefined
3929
+ assertParamExists('getClubCustomerSettings', 'userId', userId);
3930
+ const localVarPath = `/api/clubCustomers/clubCustomer/{userId}/settings`
3931
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
3932
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3933
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3934
+ let baseOptions;
3935
+ if (configuration) {
3936
+ baseOptions = configuration.baseOptions;
3937
+ }
3938
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3939
+ const localVarHeaderParameter = {};
3940
+ const localVarQueryParameter = {};
3941
+ // authentication bearerAuth required
3942
+ // http bearer authentication required
3943
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3944
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3945
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3946
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3947
+ return {
3948
+ url: toPathString(localVarUrlObj),
3949
+ options: localVarRequestOptions,
3950
+ };
3951
+ }),
3952
+ /**
3953
+ *
3954
+ * @param {string} userId
3955
+ * @param {ClubCustomerSettingsResponse} clubCustomerSettingsResponse
3956
+ * @param {*} [options] Override http request option.
3957
+ * @throws {RequiredError}
3958
+ */
3959
+ updateClubCustomerSettings: (userId_1, clubCustomerSettingsResponse_1, ...args_1) => __awaiter(this, [userId_1, clubCustomerSettingsResponse_1, ...args_1], void 0, function* (userId, clubCustomerSettingsResponse, options = {}) {
3960
+ // verify required parameter 'userId' is not null or undefined
3961
+ assertParamExists('updateClubCustomerSettings', 'userId', userId);
3962
+ // verify required parameter 'clubCustomerSettingsResponse' is not null or undefined
3963
+ assertParamExists('updateClubCustomerSettings', 'clubCustomerSettingsResponse', clubCustomerSettingsResponse);
3964
+ const localVarPath = `/api/clubCustomers/clubCustomer/{userId}/settings`
3965
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
3966
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3967
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3968
+ let baseOptions;
3969
+ if (configuration) {
3970
+ baseOptions = configuration.baseOptions;
3971
+ }
3972
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
3973
+ const localVarHeaderParameter = {};
3974
+ const localVarQueryParameter = {};
3975
+ // authentication bearerAuth required
3976
+ // http bearer authentication required
3977
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3978
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3979
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3980
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3981
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3982
+ localVarRequestOptions.data = serializeDataIfNeeded(clubCustomerSettingsResponse, localVarRequestOptions, configuration);
3983
+ return {
3984
+ url: toPathString(localVarUrlObj),
3985
+ options: localVarRequestOptions,
3986
+ };
3987
+ }),
3988
+ };
3989
+ };
3990
+ /**
3991
+ * ClubCustomerStaffApi - functional programming interface
3992
+ * @export
3993
+ */
3994
+ export const ClubCustomerStaffApiFp = function (configuration) {
3995
+ const localVarAxiosParamCreator = ClubCustomerStaffApiAxiosParamCreator(configuration);
3996
+ return {
3997
+ /**
3998
+ *
3999
+ * @param {string} userId
4000
+ * @param {*} [options] Override http request option.
4001
+ * @throws {RequiredError}
4002
+ */
4003
+ getClubCustomerSettings(userId, options) {
4004
+ return __awaiter(this, void 0, void 0, function* () {
4005
+ var _a, _b, _c;
4006
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubCustomerSettings(userId, options);
4007
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4008
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubCustomerStaffApi.getClubCustomerSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4009
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4010
+ });
4011
+ },
4012
+ /**
4013
+ *
4014
+ * @param {string} userId
4015
+ * @param {ClubCustomerSettingsResponse} clubCustomerSettingsResponse
4016
+ * @param {*} [options] Override http request option.
4017
+ * @throws {RequiredError}
4018
+ */
4019
+ updateClubCustomerSettings(userId, clubCustomerSettingsResponse, options) {
4020
+ return __awaiter(this, void 0, void 0, function* () {
4021
+ var _a, _b, _c;
4022
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubCustomerSettings(userId, clubCustomerSettingsResponse, options);
4023
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4024
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubCustomerStaffApi.updateClubCustomerSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4025
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4026
+ });
4027
+ },
4028
+ };
4029
+ };
4030
+ /**
4031
+ * ClubCustomerStaffApi - factory interface
4032
+ * @export
4033
+ */
4034
+ export const ClubCustomerStaffApiFactory = function (configuration, basePath, axios) {
4035
+ const localVarFp = ClubCustomerStaffApiFp(configuration);
4036
+ return {
4037
+ /**
4038
+ *
4039
+ * @param {ClubCustomerStaffApiGetClubCustomerSettingsRequest} requestParameters Request parameters.
4040
+ * @param {*} [options] Override http request option.
4041
+ * @throws {RequiredError}
4042
+ */
4043
+ getClubCustomerSettings(requestParameters, options) {
4044
+ return localVarFp.getClubCustomerSettings(requestParameters.userId, options).then((request) => request(axios, basePath));
4045
+ },
4046
+ /**
4047
+ *
4048
+ * @param {ClubCustomerStaffApiUpdateClubCustomerSettingsRequest} requestParameters Request parameters.
4049
+ * @param {*} [options] Override http request option.
4050
+ * @throws {RequiredError}
4051
+ */
4052
+ updateClubCustomerSettings(requestParameters, options) {
4053
+ return localVarFp.updateClubCustomerSettings(requestParameters.userId, requestParameters.clubCustomerSettingsResponse, options).then((request) => request(axios, basePath));
4054
+ },
4055
+ };
4056
+ };
4057
+ /**
4058
+ * ClubCustomerStaffApi - object-oriented interface
4059
+ * @export
4060
+ * @class ClubCustomerStaffApi
4061
+ * @extends {BaseAPI}
4062
+ */
4063
+ export class ClubCustomerStaffApi extends BaseAPI {
4064
+ /**
4065
+ *
4066
+ * @param {ClubCustomerStaffApiGetClubCustomerSettingsRequest} requestParameters Request parameters.
3538
4067
  * @param {*} [options] Override http request option.
3539
4068
  * @throws {RequiredError}
3540
- * @memberof ClubAnalyticsStaffApi
4069
+ * @memberof ClubCustomerStaffApi
3541
4070
  */
3542
- getTopCourtsByBookings(options) {
3543
- return ClubAnalyticsStaffApiFp(this.configuration).getTopCourtsByBookings(options).then((request) => request(this.axios, this.basePath));
4071
+ getClubCustomerSettings(requestParameters, options) {
4072
+ return ClubCustomerStaffApiFp(this.configuration).getClubCustomerSettings(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
3544
4073
  }
3545
4074
  /**
3546
- * Récupère le chiffre d\'affaires annuel avec détail mensuel
3547
- * @param {ClubAnalyticsStaffApiGetYearlyTurnOverRequest} requestParameters Request parameters.
4075
+ *
4076
+ * @param {ClubCustomerStaffApiUpdateClubCustomerSettingsRequest} requestParameters Request parameters.
3548
4077
  * @param {*} [options] Override http request option.
3549
4078
  * @throws {RequiredError}
3550
- * @memberof ClubAnalyticsStaffApi
4079
+ * @memberof ClubCustomerStaffApi
3551
4080
  */
3552
- getYearlyTurnOver(requestParameters, options) {
3553
- return ClubAnalyticsStaffApiFp(this.configuration).getYearlyTurnOver(requestParameters.year, options).then((request) => request(this.axios, this.basePath));
4081
+ updateClubCustomerSettings(requestParameters, options) {
4082
+ return ClubCustomerStaffApiFp(this.configuration).updateClubCustomerSettings(requestParameters.userId, requestParameters.clubCustomerSettingsResponse, options).then((request) => request(this.axios, this.basePath));
3554
4083
  }
3555
4084
  }
3556
4085
  /**
@@ -5146,6 +5675,34 @@ export const ClubsApiAxiosParamCreator = function (configuration) {
5146
5675
  options: localVarRequestOptions,
5147
5676
  };
5148
5677
  }),
5678
+ /**
5679
+ * Récupère les informations publiques d\'un club en fonction de son ID
5680
+ * @param {string} clubId
5681
+ * @param {*} [options] Override http request option.
5682
+ * @throws {RequiredError}
5683
+ */
5684
+ getPublicClubInfo: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
5685
+ // verify required parameter 'clubId' is not null or undefined
5686
+ assertParamExists('getPublicClubInfo', 'clubId', clubId);
5687
+ const localVarPath = `/api/clubs/{clubId}`
5688
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
5689
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5690
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5691
+ let baseOptions;
5692
+ if (configuration) {
5693
+ baseOptions = configuration.baseOptions;
5694
+ }
5695
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5696
+ const localVarHeaderParameter = {};
5697
+ const localVarQueryParameter = {};
5698
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5699
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5700
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5701
+ return {
5702
+ url: toPathString(localVarUrlObj),
5703
+ options: localVarRequestOptions,
5704
+ };
5705
+ }),
5149
5706
  /**
5150
5707
  *
5151
5708
  * @param {string} id
@@ -5404,6 +5961,21 @@ export const ClubsApiFp = function (configuration) {
5404
5961
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5405
5962
  });
5406
5963
  },
5964
+ /**
5965
+ * Récupère les informations publiques d\'un club en fonction de son ID
5966
+ * @param {string} clubId
5967
+ * @param {*} [options] Override http request option.
5968
+ * @throws {RequiredError}
5969
+ */
5970
+ getPublicClubInfo(clubId, options) {
5971
+ return __awaiter(this, void 0, void 0, function* () {
5972
+ var _a, _b, _c;
5973
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublicClubInfo(clubId, options);
5974
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5975
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsApi.getPublicClubInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5976
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5977
+ });
5978
+ },
5407
5979
  /**
5408
5980
  *
5409
5981
  * @param {string} id
@@ -5553,6 +6125,15 @@ export const ClubsApiFactory = function (configuration, basePath, axios) {
5553
6125
  getCourtsByClubAndSportById(requestParameters, options) {
5554
6126
  return localVarFp.getCourtsByClubAndSportById(requestParameters.id, requestParameters.sportId, options).then((request) => request(axios, basePath));
5555
6127
  },
6128
+ /**
6129
+ * Récupère les informations publiques d\'un club en fonction de son ID
6130
+ * @param {ClubsApiGetPublicClubInfoRequest} requestParameters Request parameters.
6131
+ * @param {*} [options] Override http request option.
6132
+ * @throws {RequiredError}
6133
+ */
6134
+ getPublicClubInfo(requestParameters, options) {
6135
+ return localVarFp.getPublicClubInfo(requestParameters.clubId, options).then((request) => request(axios, basePath));
6136
+ },
5556
6137
  /**
5557
6138
  *
5558
6139
  * @param {ClubsApiGetPublishedActualitiesRequest} requestParameters Request parameters.
@@ -5695,6 +6276,16 @@ export class ClubsApi extends BaseAPI {
5695
6276
  getCourtsByClubAndSportById(requestParameters, options) {
5696
6277
  return ClubsApiFp(this.configuration).getCourtsByClubAndSportById(requestParameters.id, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
5697
6278
  }
6279
+ /**
6280
+ * Récupère les informations publiques d\'un club en fonction de son ID
6281
+ * @param {ClubsApiGetPublicClubInfoRequest} requestParameters Request parameters.
6282
+ * @param {*} [options] Override http request option.
6283
+ * @throws {RequiredError}
6284
+ * @memberof ClubsApi
6285
+ */
6286
+ getPublicClubInfo(requestParameters, options) {
6287
+ return ClubsApiFp(this.configuration).getPublicClubInfo(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
6288
+ }
5698
6289
  /**
5699
6290
  *
5700
6291
  * @param {ClubsApiGetPublishedActualitiesRequest} requestParameters Request parameters.
@@ -8097,6 +8688,38 @@ export const EventsApiAxiosParamCreator = function (configuration) {
8097
8688
  options: localVarRequestOptions,
8098
8689
  };
8099
8690
  }),
8691
+ /**
8692
+ *
8693
+ * @param {string} [clubId]
8694
+ * @param {string} [eventId]
8695
+ * @param {*} [options] Override http request option.
8696
+ * @throws {RequiredError}
8697
+ */
8698
+ getOpenEventBookings: (clubId_1, eventId_1, ...args_1) => __awaiter(this, [clubId_1, eventId_1, ...args_1], void 0, function* (clubId, eventId, options = {}) {
8699
+ const localVarPath = `/api/events/open`;
8700
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8701
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8702
+ let baseOptions;
8703
+ if (configuration) {
8704
+ baseOptions = configuration.baseOptions;
8705
+ }
8706
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8707
+ const localVarHeaderParameter = {};
8708
+ const localVarQueryParameter = {};
8709
+ if (clubId !== undefined) {
8710
+ localVarQueryParameter['clubId'] = clubId;
8711
+ }
8712
+ if (eventId !== undefined) {
8713
+ localVarQueryParameter['eventId'] = eventId;
8714
+ }
8715
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8716
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8717
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8718
+ return {
8719
+ url: toPathString(localVarUrlObj),
8720
+ options: localVarRequestOptions,
8721
+ };
8722
+ }),
8100
8723
  /**
8101
8724
  * Get all published events for a club
8102
8725
  * @param {string} [clubId]
@@ -8173,6 +8796,42 @@ export const EventsApiAxiosParamCreator = function (configuration) {
8173
8796
  options: localVarRequestOptions,
8174
8797
  };
8175
8798
  }),
8799
+ /**
8800
+ *
8801
+ * @param {string} eventBookingId
8802
+ * @param {JoinOpenEventBookingRequest} joinOpenEventBookingRequest
8803
+ * @param {*} [options] Override http request option.
8804
+ * @throws {RequiredError}
8805
+ */
8806
+ joinOpenEventBooking: (eventBookingId_1, joinOpenEventBookingRequest_1, ...args_1) => __awaiter(this, [eventBookingId_1, joinOpenEventBookingRequest_1, ...args_1], void 0, function* (eventBookingId, joinOpenEventBookingRequest, options = {}) {
8807
+ // verify required parameter 'eventBookingId' is not null or undefined
8808
+ assertParamExists('joinOpenEventBooking', 'eventBookingId', eventBookingId);
8809
+ // verify required parameter 'joinOpenEventBookingRequest' is not null or undefined
8810
+ assertParamExists('joinOpenEventBooking', 'joinOpenEventBookingRequest', joinOpenEventBookingRequest);
8811
+ const localVarPath = `/api/events/{eventBookingId}/open/join`
8812
+ .replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
8813
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8814
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8815
+ let baseOptions;
8816
+ if (configuration) {
8817
+ baseOptions = configuration.baseOptions;
8818
+ }
8819
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
8820
+ const localVarHeaderParameter = {};
8821
+ const localVarQueryParameter = {};
8822
+ // authentication bearerAuth required
8823
+ // http bearer authentication required
8824
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
8825
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8826
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8827
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8828
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8829
+ localVarRequestOptions.data = serializeDataIfNeeded(joinOpenEventBookingRequest, localVarRequestOptions, configuration);
8830
+ return {
8831
+ url: toPathString(localVarUrlObj),
8832
+ options: localVarRequestOptions,
8833
+ };
8834
+ }),
8176
8835
  /**
8177
8836
  * Leave an event (user)
8178
8837
  * @param {string} eventId
@@ -8204,6 +8863,37 @@ export const EventsApiAxiosParamCreator = function (configuration) {
8204
8863
  options: localVarRequestOptions,
8205
8864
  };
8206
8865
  }),
8866
+ /**
8867
+ *
8868
+ * @param {string} eventBookingId
8869
+ * @param {*} [options] Override http request option.
8870
+ * @throws {RequiredError}
8871
+ */
8872
+ leaveOpenEventBooking: (eventBookingId_1, ...args_1) => __awaiter(this, [eventBookingId_1, ...args_1], void 0, function* (eventBookingId, options = {}) {
8873
+ // verify required parameter 'eventBookingId' is not null or undefined
8874
+ assertParamExists('leaveOpenEventBooking', 'eventBookingId', eventBookingId);
8875
+ const localVarPath = `/api/events/{eventBookingId}/open/leave`
8876
+ .replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
8877
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8878
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8879
+ let baseOptions;
8880
+ if (configuration) {
8881
+ baseOptions = configuration.baseOptions;
8882
+ }
8883
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
8884
+ const localVarHeaderParameter = {};
8885
+ const localVarQueryParameter = {};
8886
+ // authentication bearerAuth required
8887
+ // http bearer authentication required
8888
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
8889
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8890
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8891
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8892
+ return {
8893
+ url: toPathString(localVarUrlObj),
8894
+ options: localVarRequestOptions,
8895
+ };
8896
+ }),
8207
8897
  };
8208
8898
  };
8209
8899
  /**
@@ -8261,6 +8951,22 @@ export const EventsApiFp = function (configuration) {
8261
8951
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8262
8952
  });
8263
8953
  },
8954
+ /**
8955
+ *
8956
+ * @param {string} [clubId]
8957
+ * @param {string} [eventId]
8958
+ * @param {*} [options] Override http request option.
8959
+ * @throws {RequiredError}
8960
+ */
8961
+ getOpenEventBookings(clubId, eventId, options) {
8962
+ return __awaiter(this, void 0, void 0, function* () {
8963
+ var _a, _b, _c;
8964
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOpenEventBookings(clubId, eventId, options);
8965
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8966
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.getOpenEventBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8967
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8968
+ });
8969
+ },
8264
8970
  /**
8265
8971
  * Get all published events for a club
8266
8972
  * @param {string} [clubId]
@@ -8295,6 +9001,22 @@ export const EventsApiFp = function (configuration) {
8295
9001
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8296
9002
  });
8297
9003
  },
9004
+ /**
9005
+ *
9006
+ * @param {string} eventBookingId
9007
+ * @param {JoinOpenEventBookingRequest} joinOpenEventBookingRequest
9008
+ * @param {*} [options] Override http request option.
9009
+ * @throws {RequiredError}
9010
+ */
9011
+ joinOpenEventBooking(eventBookingId, joinOpenEventBookingRequest, options) {
9012
+ return __awaiter(this, void 0, void 0, function* () {
9013
+ var _a, _b, _c;
9014
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.joinOpenEventBooking(eventBookingId, joinOpenEventBookingRequest, options);
9015
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9016
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.joinOpenEventBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9017
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9018
+ });
9019
+ },
8298
9020
  /**
8299
9021
  * Leave an event (user)
8300
9022
  * @param {string} eventId
@@ -8310,6 +9032,21 @@ export const EventsApiFp = function (configuration) {
8310
9032
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8311
9033
  });
8312
9034
  },
9035
+ /**
9036
+ *
9037
+ * @param {string} eventBookingId
9038
+ * @param {*} [options] Override http request option.
9039
+ * @throws {RequiredError}
9040
+ */
9041
+ leaveOpenEventBooking(eventBookingId, options) {
9042
+ return __awaiter(this, void 0, void 0, function* () {
9043
+ var _a, _b, _c;
9044
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.leaveOpenEventBooking(eventBookingId, options);
9045
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9046
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.leaveOpenEventBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9047
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9048
+ });
9049
+ },
8313
9050
  };
8314
9051
  };
8315
9052
  /**
@@ -8346,6 +9083,15 @@ export const EventsApiFactory = function (configuration, basePath, axios) {
8346
9083
  getEventById(requestParameters, options) {
8347
9084
  return localVarFp.getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(axios, basePath));
8348
9085
  },
9086
+ /**
9087
+ *
9088
+ * @param {EventsApiGetOpenEventBookingsRequest} requestParameters Request parameters.
9089
+ * @param {*} [options] Override http request option.
9090
+ * @throws {RequiredError}
9091
+ */
9092
+ getOpenEventBookings(requestParameters = {}, options) {
9093
+ return localVarFp.getOpenEventBookings(requestParameters.clubId, requestParameters.eventId, options).then((request) => request(axios, basePath));
9094
+ },
8349
9095
  /**
8350
9096
  * Get all published events for a club
8351
9097
  * @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
@@ -8364,6 +9110,15 @@ export const EventsApiFactory = function (configuration, basePath, axios) {
8364
9110
  joinEvent(requestParameters, options) {
8365
9111
  return localVarFp.joinEvent(requestParameters.eventId, requestParameters.joinEventRequest, options).then((request) => request(axios, basePath));
8366
9112
  },
9113
+ /**
9114
+ *
9115
+ * @param {EventsApiJoinOpenEventBookingRequest} requestParameters Request parameters.
9116
+ * @param {*} [options] Override http request option.
9117
+ * @throws {RequiredError}
9118
+ */
9119
+ joinOpenEventBooking(requestParameters, options) {
9120
+ return localVarFp.joinOpenEventBooking(requestParameters.eventBookingId, requestParameters.joinOpenEventBookingRequest, options).then((request) => request(axios, basePath));
9121
+ },
8367
9122
  /**
8368
9123
  * Leave an event (user)
8369
9124
  * @param {EventsApiLeaveEventRequest} requestParameters Request parameters.
@@ -8373,6 +9128,15 @@ export const EventsApiFactory = function (configuration, basePath, axios) {
8373
9128
  leaveEvent(requestParameters, options) {
8374
9129
  return localVarFp.leaveEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
8375
9130
  },
9131
+ /**
9132
+ *
9133
+ * @param {EventsApiLeaveOpenEventBookingRequest} requestParameters Request parameters.
9134
+ * @param {*} [options] Override http request option.
9135
+ * @throws {RequiredError}
9136
+ */
9137
+ leaveOpenEventBooking(requestParameters, options) {
9138
+ return localVarFp.leaveOpenEventBooking(requestParameters.eventBookingId, options).then((request) => request(axios, basePath));
9139
+ },
8376
9140
  };
8377
9141
  };
8378
9142
  /**
@@ -8412,6 +9176,16 @@ export class EventsApi extends BaseAPI {
8412
9176
  getEventById(requestParameters, options) {
8413
9177
  return EventsApiFp(this.configuration).getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
8414
9178
  }
9179
+ /**
9180
+ *
9181
+ * @param {EventsApiGetOpenEventBookingsRequest} requestParameters Request parameters.
9182
+ * @param {*} [options] Override http request option.
9183
+ * @throws {RequiredError}
9184
+ * @memberof EventsApi
9185
+ */
9186
+ getOpenEventBookings(requestParameters = {}, options) {
9187
+ return EventsApiFp(this.configuration).getOpenEventBookings(requestParameters.clubId, requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
9188
+ }
8415
9189
  /**
8416
9190
  * Get all published events for a club
8417
9191
  * @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
@@ -8432,6 +9206,16 @@ export class EventsApi extends BaseAPI {
8432
9206
  joinEvent(requestParameters, options) {
8433
9207
  return EventsApiFp(this.configuration).joinEvent(requestParameters.eventId, requestParameters.joinEventRequest, options).then((request) => request(this.axios, this.basePath));
8434
9208
  }
9209
+ /**
9210
+ *
9211
+ * @param {EventsApiJoinOpenEventBookingRequest} requestParameters Request parameters.
9212
+ * @param {*} [options] Override http request option.
9213
+ * @throws {RequiredError}
9214
+ * @memberof EventsApi
9215
+ */
9216
+ joinOpenEventBooking(requestParameters, options) {
9217
+ return EventsApiFp(this.configuration).joinOpenEventBooking(requestParameters.eventBookingId, requestParameters.joinOpenEventBookingRequest, options).then((request) => request(this.axios, this.basePath));
9218
+ }
8435
9219
  /**
8436
9220
  * Leave an event (user)
8437
9221
  * @param {EventsApiLeaveEventRequest} requestParameters Request parameters.
@@ -8442,6 +9226,16 @@ export class EventsApi extends BaseAPI {
8442
9226
  leaveEvent(requestParameters, options) {
8443
9227
  return EventsApiFp(this.configuration).leaveEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
8444
9228
  }
9229
+ /**
9230
+ *
9231
+ * @param {EventsApiLeaveOpenEventBookingRequest} requestParameters Request parameters.
9232
+ * @param {*} [options] Override http request option.
9233
+ * @throws {RequiredError}
9234
+ * @memberof EventsApi
9235
+ */
9236
+ leaveOpenEventBooking(requestParameters, options) {
9237
+ return EventsApiFp(this.configuration).leaveOpenEventBooking(requestParameters.eventBookingId, options).then((request) => request(this.axios, this.basePath));
9238
+ }
8445
9239
  }
8446
9240
  /**
8447
9241
  * @export
@@ -9187,7 +9981,7 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
9187
9981
  };
9188
9982
  }),
9189
9983
  /**
9190
- * Get all events for a club (staff only)
9984
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
9191
9985
  * @param {*} [options] Override http request option.
9192
9986
  * @throws {RequiredError}
9193
9987
  */
@@ -9352,7 +10146,7 @@ export const EventsStaffApiFp = function (configuration) {
9352
10146
  });
9353
10147
  },
9354
10148
  /**
9355
- * Get all events for a club (staff only)
10149
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
9356
10150
  * @param {*} [options] Override http request option.
9357
10151
  * @throws {RequiredError}
9358
10152
  */
@@ -9431,7 +10225,7 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
9431
10225
  return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
9432
10226
  },
9433
10227
  /**
9434
- * Get all events for a club (staff only)
10228
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
9435
10229
  * @param {*} [options] Override http request option.
9436
10230
  * @throws {RequiredError}
9437
10231
  */
@@ -9486,7 +10280,7 @@ export class EventsStaffApi extends BaseAPI {
9486
10280
  return EventsStaffApiFp(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
9487
10281
  }
9488
10282
  /**
9489
- * Get all events for a club (staff only)
10283
+ * // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
9490
10284
  * @param {*} [options] Override http request option.
9491
10285
  * @throws {RequiredError}
9492
10286
  * @memberof EventsStaffApi