@tennac-booking/sdk 1.0.144 → 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
@@ -3553,6 +3820,98 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
3553
3820
  return ClubAnalyticsStaffApiFp(this.configuration).getYearlyTurnOver(requestParameters.year, options).then((request) => request(this.axios, this.basePath));
3554
3821
  }
3555
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
+ }
3556
3915
  /**
3557
3916
  * ClubCustomerStaffApi - axios parameter creator
3558
3917
  * @export
@@ -5316,6 +5675,34 @@ export const ClubsApiAxiosParamCreator = function (configuration) {
5316
5675
  options: localVarRequestOptions,
5317
5676
  };
5318
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
+ }),
5319
5706
  /**
5320
5707
  *
5321
5708
  * @param {string} id
@@ -5574,6 +5961,21 @@ export const ClubsApiFp = function (configuration) {
5574
5961
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5575
5962
  });
5576
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
+ },
5577
5979
  /**
5578
5980
  *
5579
5981
  * @param {string} id
@@ -5723,6 +6125,15 @@ export const ClubsApiFactory = function (configuration, basePath, axios) {
5723
6125
  getCourtsByClubAndSportById(requestParameters, options) {
5724
6126
  return localVarFp.getCourtsByClubAndSportById(requestParameters.id, requestParameters.sportId, options).then((request) => request(axios, basePath));
5725
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
+ },
5726
6137
  /**
5727
6138
  *
5728
6139
  * @param {ClubsApiGetPublishedActualitiesRequest} requestParameters Request parameters.
@@ -5865,6 +6276,16 @@ export class ClubsApi extends BaseAPI {
5865
6276
  getCourtsByClubAndSportById(requestParameters, options) {
5866
6277
  return ClubsApiFp(this.configuration).getCourtsByClubAndSportById(requestParameters.id, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
5867
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
+ }
5868
6289
  /**
5869
6290
  *
5870
6291
  * @param {ClubsApiGetPublishedActualitiesRequest} requestParameters Request parameters.
@@ -8267,6 +8688,38 @@ export const EventsApiAxiosParamCreator = function (configuration) {
8267
8688
  options: localVarRequestOptions,
8268
8689
  };
8269
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
+ }),
8270
8723
  /**
8271
8724
  * Get all published events for a club
8272
8725
  * @param {string} [clubId]
@@ -8343,6 +8796,42 @@ export const EventsApiAxiosParamCreator = function (configuration) {
8343
8796
  options: localVarRequestOptions,
8344
8797
  };
8345
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
+ }),
8346
8835
  /**
8347
8836
  * Leave an event (user)
8348
8837
  * @param {string} eventId
@@ -8374,6 +8863,37 @@ export const EventsApiAxiosParamCreator = function (configuration) {
8374
8863
  options: localVarRequestOptions,
8375
8864
  };
8376
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
+ }),
8377
8897
  };
8378
8898
  };
8379
8899
  /**
@@ -8431,6 +8951,22 @@ export const EventsApiFp = function (configuration) {
8431
8951
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8432
8952
  });
8433
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
+ },
8434
8970
  /**
8435
8971
  * Get all published events for a club
8436
8972
  * @param {string} [clubId]
@@ -8465,6 +9001,22 @@ export const EventsApiFp = function (configuration) {
8465
9001
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8466
9002
  });
8467
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
+ },
8468
9020
  /**
8469
9021
  * Leave an event (user)
8470
9022
  * @param {string} eventId
@@ -8480,6 +9032,21 @@ export const EventsApiFp = function (configuration) {
8480
9032
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8481
9033
  });
8482
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
+ },
8483
9050
  };
8484
9051
  };
8485
9052
  /**
@@ -8516,6 +9083,15 @@ export const EventsApiFactory = function (configuration, basePath, axios) {
8516
9083
  getEventById(requestParameters, options) {
8517
9084
  return localVarFp.getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(axios, basePath));
8518
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
+ },
8519
9095
  /**
8520
9096
  * Get all published events for a club
8521
9097
  * @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
@@ -8534,6 +9110,15 @@ export const EventsApiFactory = function (configuration, basePath, axios) {
8534
9110
  joinEvent(requestParameters, options) {
8535
9111
  return localVarFp.joinEvent(requestParameters.eventId, requestParameters.joinEventRequest, options).then((request) => request(axios, basePath));
8536
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
+ },
8537
9122
  /**
8538
9123
  * Leave an event (user)
8539
9124
  * @param {EventsApiLeaveEventRequest} requestParameters Request parameters.
@@ -8543,6 +9128,15 @@ export const EventsApiFactory = function (configuration, basePath, axios) {
8543
9128
  leaveEvent(requestParameters, options) {
8544
9129
  return localVarFp.leaveEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
8545
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
+ },
8546
9140
  };
8547
9141
  };
8548
9142
  /**
@@ -8582,6 +9176,16 @@ export class EventsApi extends BaseAPI {
8582
9176
  getEventById(requestParameters, options) {
8583
9177
  return EventsApiFp(this.configuration).getEventById(requestParameters.eventId, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
8584
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
+ }
8585
9189
  /**
8586
9190
  * Get all published events for a club
8587
9191
  * @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
@@ -8602,6 +9206,16 @@ export class EventsApi extends BaseAPI {
8602
9206
  joinEvent(requestParameters, options) {
8603
9207
  return EventsApiFp(this.configuration).joinEvent(requestParameters.eventId, requestParameters.joinEventRequest, options).then((request) => request(this.axios, this.basePath));
8604
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
+ }
8605
9219
  /**
8606
9220
  * Leave an event (user)
8607
9221
  * @param {EventsApiLeaveEventRequest} requestParameters Request parameters.
@@ -8612,6 +9226,16 @@ export class EventsApi extends BaseAPI {
8612
9226
  leaveEvent(requestParameters, options) {
8613
9227
  return EventsApiFp(this.configuration).leaveEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
8614
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
+ }
8615
9239
  }
8616
9240
  /**
8617
9241
  * @export
@@ -9357,7 +9981,7 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
9357
9981
  };
9358
9982
  }),
9359
9983
  /**
9360
- * 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 );
9361
9985
  * @param {*} [options] Override http request option.
9362
9986
  * @throws {RequiredError}
9363
9987
  */
@@ -9522,7 +10146,7 @@ export const EventsStaffApiFp = function (configuration) {
9522
10146
  });
9523
10147
  },
9524
10148
  /**
9525
- * 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 );
9526
10150
  * @param {*} [options] Override http request option.
9527
10151
  * @throws {RequiredError}
9528
10152
  */
@@ -9601,7 +10225,7 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
9601
10225
  return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
9602
10226
  },
9603
10227
  /**
9604
- * 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 );
9605
10229
  * @param {*} [options] Override http request option.
9606
10230
  * @throws {RequiredError}
9607
10231
  */
@@ -9656,7 +10280,7 @@ export class EventsStaffApi extends BaseAPI {
9656
10280
  return EventsStaffApiFp(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
9657
10281
  }
9658
10282
  /**
9659
- * 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 );
9660
10284
  * @param {*} [options] Override http request option.
9661
10285
  * @throws {RequiredError}
9662
10286
  * @memberof EventsStaffApi