@tennac-booking/sdk 1.0.89 → 1.0.90

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.
Files changed (48) hide show
  1. package/.openapi-generator/FILES +265 -247
  2. package/README.md +37 -12
  3. package/api.ts +2709 -1368
  4. package/dist/api.d.ts +1563 -557
  5. package/dist/api.js +739 -199
  6. package/dist/esm/api.d.ts +1563 -557
  7. package/dist/esm/api.js +734 -199
  8. package/docs/BookingPopulated.md +3 -3
  9. package/docs/ClubAnalyticsStaffApi.md +173 -0
  10. package/docs/{AddCreditsToCustomer200Response.md → ClubDaySchedule.md} +7 -5
  11. package/docs/ClubGeneralSettingsResponse.md +32 -0
  12. package/docs/ClubHoursSettingsResponse.md +22 -0
  13. package/docs/ClubLocationSettings.md +26 -0
  14. package/docs/ClubPlayerBookingItem.md +36 -0
  15. package/docs/ClubPlayerBookingsPagination.md +28 -0
  16. package/docs/ClubPlayerBookingsResponse.md +24 -0
  17. package/docs/ClubPlayerDetailResponse.md +46 -0
  18. package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +22 -0
  19. package/docs/ClubPlayerStatisticsResponse.md +42 -0
  20. package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +22 -0
  21. package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +23 -0
  22. package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +25 -0
  23. package/docs/ClubPlayerStatisticsResponseMostPlayedPartnersInner.md +26 -0
  24. package/docs/ClubPlayerSubscriptionSummary.md +28 -0
  25. package/docs/ClubPresentationSettingsResponse.md +26 -0
  26. package/docs/ClubPricingPeriodResponse.md +30 -0
  27. package/docs/ClubReservationSettingsResponse.md +28 -0
  28. package/docs/ClubSettingsManagerApi.md +54 -60
  29. package/docs/ClubSettingsStaffApi.md +183 -0
  30. package/docs/ClubWeeklySchedule.md +32 -0
  31. package/docs/ClubsManagerApi.md +52 -58
  32. package/docs/ClubsStaffApi.md +44 -0
  33. package/docs/CreateEventRequest.md +3 -1
  34. package/docs/EventResponse.md +1 -1
  35. package/docs/PartialClubWeeklySchedule.md +33 -0
  36. package/docs/SlotInfo.md +2 -2
  37. package/docs/UpdateClubGeneralSettingsRequest.md +34 -0
  38. package/docs/UpdateClubHoursSettingsRequest.md +22 -0
  39. package/docs/UpdateClubPresentationSettingsRequest.md +26 -0
  40. package/docs/UpdateClubReservationSettingsRequest.md +28 -0
  41. package/docs/UpdateEventRequest.md +1 -1
  42. package/package.json +1 -1
  43. package/docs/AddCreditsToCustomerRequest.md +0 -22
  44. package/docs/ClubSettingsResponse.md +0 -39
  45. package/docs/CreateClubSettingsRequest.md +0 -34
  46. package/docs/DeleteClubSettingsResponse.md +0 -20
  47. package/docs/EventResponseCourtsInner.md +0 -18
  48. package/docs/UpdateClubSettingsRequest.md +0 -32
package/dist/esm/api.js CHANGED
@@ -1571,6 +1571,107 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1571
1571
  options: localVarRequestOptions,
1572
1572
  };
1573
1573
  }),
1574
+ /**
1575
+ * Récupère les réservations d\'un joueur par son ID (à venir et passées)
1576
+ * @param {string} playerId
1577
+ * @param {number} [page]
1578
+ * @param {number} [pageSize]
1579
+ * @param {*} [options] Override http request option.
1580
+ * @throws {RequiredError}
1581
+ */
1582
+ getClubPlayerBookingsById: (playerId_1, page_1, pageSize_1, ...args_1) => __awaiter(this, [playerId_1, page_1, pageSize_1, ...args_1], void 0, function* (playerId, page, pageSize, options = {}) {
1583
+ // verify required parameter 'playerId' is not null or undefined
1584
+ assertParamExists('getClubPlayerBookingsById', 'playerId', playerId);
1585
+ const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
1586
+ .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
1587
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1588
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1589
+ let baseOptions;
1590
+ if (configuration) {
1591
+ baseOptions = configuration.baseOptions;
1592
+ }
1593
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1594
+ const localVarHeaderParameter = {};
1595
+ const localVarQueryParameter = {};
1596
+ // authentication bearerAuth required
1597
+ // http bearer authentication required
1598
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1599
+ if (page !== undefined) {
1600
+ localVarQueryParameter['page'] = page;
1601
+ }
1602
+ if (pageSize !== undefined) {
1603
+ localVarQueryParameter['pageSize'] = pageSize;
1604
+ }
1605
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1606
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1607
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1608
+ return {
1609
+ url: toPathString(localVarUrlObj),
1610
+ options: localVarRequestOptions,
1611
+ };
1612
+ }),
1613
+ /**
1614
+ * Récupère les informations détaillées d\'un joueur par son ID
1615
+ * @param {string} playerId
1616
+ * @param {*} [options] Override http request option.
1617
+ * @throws {RequiredError}
1618
+ */
1619
+ getClubPlayerById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
1620
+ // verify required parameter 'playerId' is not null or undefined
1621
+ assertParamExists('getClubPlayerById', 'playerId', playerId);
1622
+ const localVarPath = `/api/club-analytics/players/{playerId}`
1623
+ .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
1624
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1625
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1626
+ let baseOptions;
1627
+ if (configuration) {
1628
+ baseOptions = configuration.baseOptions;
1629
+ }
1630
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1631
+ const localVarHeaderParameter = {};
1632
+ const localVarQueryParameter = {};
1633
+ // authentication bearerAuth required
1634
+ // http bearer authentication required
1635
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1636
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1637
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1638
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1639
+ return {
1640
+ url: toPathString(localVarUrlObj),
1641
+ options: localVarRequestOptions,
1642
+ };
1643
+ }),
1644
+ /**
1645
+ * Récupère les statistiques d\'un joueur pour le staff
1646
+ * @param {string} playerId
1647
+ * @param {*} [options] Override http request option.
1648
+ * @throws {RequiredError}
1649
+ */
1650
+ getClubPlayerStatisticsById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
1651
+ // verify required parameter 'playerId' is not null or undefined
1652
+ assertParamExists('getClubPlayerStatisticsById', 'playerId', playerId);
1653
+ const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
1654
+ .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
1655
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1656
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1657
+ let baseOptions;
1658
+ if (configuration) {
1659
+ baseOptions = configuration.baseOptions;
1660
+ }
1661
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1662
+ const localVarHeaderParameter = {};
1663
+ const localVarQueryParameter = {};
1664
+ // authentication bearerAuth required
1665
+ // http bearer authentication required
1666
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1667
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1668
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1669
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1670
+ return {
1671
+ url: toPathString(localVarUrlObj),
1672
+ options: localVarRequestOptions,
1673
+ };
1674
+ }),
1574
1675
  /**
1575
1676
  * Récupère la liste des joueurs du club
1576
1677
  * @param {*} [options] Override http request option.
@@ -1870,6 +1971,53 @@ export const ClubAnalyticsStaffApiFp = function (configuration) {
1870
1971
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1871
1972
  });
1872
1973
  },
1974
+ /**
1975
+ * Récupère les réservations d\'un joueur par son ID (à venir et passées)
1976
+ * @param {string} playerId
1977
+ * @param {number} [page]
1978
+ * @param {number} [pageSize]
1979
+ * @param {*} [options] Override http request option.
1980
+ * @throws {RequiredError}
1981
+ */
1982
+ getClubPlayerBookingsById(playerId, page, pageSize, options) {
1983
+ return __awaiter(this, void 0, void 0, function* () {
1984
+ var _a, _b, _c;
1985
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerBookingsById(playerId, page, pageSize, options);
1986
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1987
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getClubPlayerBookingsById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1988
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1989
+ });
1990
+ },
1991
+ /**
1992
+ * Récupère les informations détaillées d\'un joueur par son ID
1993
+ * @param {string} playerId
1994
+ * @param {*} [options] Override http request option.
1995
+ * @throws {RequiredError}
1996
+ */
1997
+ getClubPlayerById(playerId, options) {
1998
+ return __awaiter(this, void 0, void 0, function* () {
1999
+ var _a, _b, _c;
2000
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerById(playerId, options);
2001
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2002
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getClubPlayerById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2003
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2004
+ });
2005
+ },
2006
+ /**
2007
+ * Récupère les statistiques d\'un joueur pour le staff
2008
+ * @param {string} playerId
2009
+ * @param {*} [options] Override http request option.
2010
+ * @throws {RequiredError}
2011
+ */
2012
+ getClubPlayerStatisticsById(playerId, options) {
2013
+ return __awaiter(this, void 0, void 0, function* () {
2014
+ var _a, _b, _c;
2015
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerStatisticsById(playerId, options);
2016
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2017
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getClubPlayerStatisticsById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2018
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2019
+ });
2020
+ },
1873
2021
  /**
1874
2022
  * Récupère la liste des joueurs du club
1875
2023
  * @param {*} [options] Override http request option.
@@ -2020,6 +2168,33 @@ export const ClubAnalyticsStaffApiFactory = function (configuration, basePath, a
2020
2168
  getAnalyticsBySport(requestParameters, options) {
2021
2169
  return localVarFp.getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(axios, basePath));
2022
2170
  },
2171
+ /**
2172
+ * Récupère les réservations d\'un joueur par son ID (à venir et passées)
2173
+ * @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
2174
+ * @param {*} [options] Override http request option.
2175
+ * @throws {RequiredError}
2176
+ */
2177
+ getClubPlayerBookingsById(requestParameters, options) {
2178
+ return localVarFp.getClubPlayerBookingsById(requestParameters.playerId, requestParameters.page, requestParameters.pageSize, options).then((request) => request(axios, basePath));
2179
+ },
2180
+ /**
2181
+ * Récupère les informations détaillées d\'un joueur par son ID
2182
+ * @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
2183
+ * @param {*} [options] Override http request option.
2184
+ * @throws {RequiredError}
2185
+ */
2186
+ getClubPlayerById(requestParameters, options) {
2187
+ return localVarFp.getClubPlayerById(requestParameters.playerId, options).then((request) => request(axios, basePath));
2188
+ },
2189
+ /**
2190
+ * Récupère les statistiques d\'un joueur pour le staff
2191
+ * @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
2192
+ * @param {*} [options] Override http request option.
2193
+ * @throws {RequiredError}
2194
+ */
2195
+ getClubPlayerStatisticsById(requestParameters, options) {
2196
+ return localVarFp.getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(axios, basePath));
2197
+ },
2023
2198
  /**
2024
2199
  * Récupère la liste des joueurs du club
2025
2200
  * @param {*} [options] Override http request option.
@@ -2115,6 +2290,36 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
2115
2290
  getAnalyticsBySport(requestParameters, options) {
2116
2291
  return ClubAnalyticsStaffApiFp(this.configuration).getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
2117
2292
  }
2293
+ /**
2294
+ * Récupère les réservations d\'un joueur par son ID (à venir et passées)
2295
+ * @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
2296
+ * @param {*} [options] Override http request option.
2297
+ * @throws {RequiredError}
2298
+ * @memberof ClubAnalyticsStaffApi
2299
+ */
2300
+ getClubPlayerBookingsById(requestParameters, options) {
2301
+ return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayerBookingsById(requestParameters.playerId, requestParameters.page, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
2302
+ }
2303
+ /**
2304
+ * Récupère les informations détaillées d\'un joueur par son ID
2305
+ * @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
2306
+ * @param {*} [options] Override http request option.
2307
+ * @throws {RequiredError}
2308
+ * @memberof ClubAnalyticsStaffApi
2309
+ */
2310
+ getClubPlayerById(requestParameters, options) {
2311
+ return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayerById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
2312
+ }
2313
+ /**
2314
+ * Récupère les statistiques d\'un joueur pour le staff
2315
+ * @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
2316
+ * @param {*} [options] Override http request option.
2317
+ * @throws {RequiredError}
2318
+ * @memberof ClubAnalyticsStaffApi
2319
+ */
2320
+ getClubPlayerStatisticsById(requestParameters, options) {
2321
+ return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
2322
+ }
2118
2323
  /**
2119
2324
  * Récupère la liste des joueurs du club
2120
2325
  * @param {*} [options] Override http request option.
@@ -2545,169 +2750,458 @@ export const ClubRolesStaffApiFp = function (configuration) {
2545
2750
  getAllClubRoles(options) {
2546
2751
  return __awaiter(this, void 0, void 0, function* () {
2547
2752
  var _a, _b, _c;
2548
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllClubRoles(options);
2753
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllClubRoles(options);
2754
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2755
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubRolesStaffApi.getAllClubRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2756
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2757
+ });
2758
+ },
2759
+ /**
2760
+ * Récupère un rôle de club par ID
2761
+ * @param {string} id
2762
+ * @param {*} [options] Override http request option.
2763
+ * @throws {RequiredError}
2764
+ */
2765
+ getClubRoleById(id, options) {
2766
+ return __awaiter(this, void 0, void 0, function* () {
2767
+ var _a, _b, _c;
2768
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubRoleById(id, options);
2769
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2770
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubRolesStaffApi.getClubRoleById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2771
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2772
+ });
2773
+ },
2774
+ /**
2775
+ *
2776
+ * @param {*} [options] Override http request option.
2777
+ * @throws {RequiredError}
2778
+ */
2779
+ getUserRolesInClubs(options) {
2780
+ return __awaiter(this, void 0, void 0, function* () {
2781
+ var _a, _b, _c;
2782
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserRolesInClubs(options);
2783
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2784
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubRolesStaffApi.getUserRolesInClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2785
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2786
+ });
2787
+ },
2788
+ };
2789
+ };
2790
+ /**
2791
+ * ClubRolesStaffApi - factory interface
2792
+ * @export
2793
+ */
2794
+ export const ClubRolesStaffApiFactory = function (configuration, basePath, axios) {
2795
+ const localVarFp = ClubRolesStaffApiFp(configuration);
2796
+ return {
2797
+ /**
2798
+ * Récupère la liste des rôles d\'un club
2799
+ * @param {*} [options] Override http request option.
2800
+ * @throws {RequiredError}
2801
+ */
2802
+ getAllClubRoles(options) {
2803
+ return localVarFp.getAllClubRoles(options).then((request) => request(axios, basePath));
2804
+ },
2805
+ /**
2806
+ * Récupère un rôle de club par ID
2807
+ * @param {ClubRolesStaffApiGetClubRoleByIdRequest} requestParameters Request parameters.
2808
+ * @param {*} [options] Override http request option.
2809
+ * @throws {RequiredError}
2810
+ */
2811
+ getClubRoleById(requestParameters, options) {
2812
+ return localVarFp.getClubRoleById(requestParameters.id, options).then((request) => request(axios, basePath));
2813
+ },
2814
+ /**
2815
+ *
2816
+ * @param {*} [options] Override http request option.
2817
+ * @throws {RequiredError}
2818
+ */
2819
+ getUserRolesInClubs(options) {
2820
+ return localVarFp.getUserRolesInClubs(options).then((request) => request(axios, basePath));
2821
+ },
2822
+ };
2823
+ };
2824
+ /**
2825
+ * ClubRolesStaffApi - object-oriented interface
2826
+ * @export
2827
+ * @class ClubRolesStaffApi
2828
+ * @extends {BaseAPI}
2829
+ */
2830
+ export class ClubRolesStaffApi extends BaseAPI {
2831
+ /**
2832
+ * Récupère la liste des rôles d\'un club
2833
+ * @param {*} [options] Override http request option.
2834
+ * @throws {RequiredError}
2835
+ * @memberof ClubRolesStaffApi
2836
+ */
2837
+ getAllClubRoles(options) {
2838
+ return ClubRolesStaffApiFp(this.configuration).getAllClubRoles(options).then((request) => request(this.axios, this.basePath));
2839
+ }
2840
+ /**
2841
+ * Récupère un rôle de club par ID
2842
+ * @param {ClubRolesStaffApiGetClubRoleByIdRequest} requestParameters Request parameters.
2843
+ * @param {*} [options] Override http request option.
2844
+ * @throws {RequiredError}
2845
+ * @memberof ClubRolesStaffApi
2846
+ */
2847
+ getClubRoleById(requestParameters, options) {
2848
+ return ClubRolesStaffApiFp(this.configuration).getClubRoleById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
2849
+ }
2850
+ /**
2851
+ *
2852
+ * @param {*} [options] Override http request option.
2853
+ * @throws {RequiredError}
2854
+ * @memberof ClubRolesStaffApi
2855
+ */
2856
+ getUserRolesInClubs(options) {
2857
+ return ClubRolesStaffApiFp(this.configuration).getUserRolesInClubs(options).then((request) => request(this.axios, this.basePath));
2858
+ }
2859
+ }
2860
+ /**
2861
+ * ClubSettingsManagerApi - axios parameter creator
2862
+ * @export
2863
+ */
2864
+ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
2865
+ return {
2866
+ /**
2867
+ *
2868
+ * @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
2869
+ * @param {*} [options] Override http request option.
2870
+ * @throws {RequiredError}
2871
+ */
2872
+ updateClubGeneralSettings: (updateClubGeneralSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubGeneralSettingsRequest_1, ...args_1], void 0, function* (updateClubGeneralSettingsRequest, options = {}) {
2873
+ // verify required parameter 'updateClubGeneralSettingsRequest' is not null or undefined
2874
+ assertParamExists('updateClubGeneralSettings', 'updateClubGeneralSettingsRequest', updateClubGeneralSettingsRequest);
2875
+ const localVarPath = `/api/club-settings/settings/general`;
2876
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2877
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2878
+ let baseOptions;
2879
+ if (configuration) {
2880
+ baseOptions = configuration.baseOptions;
2881
+ }
2882
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
2883
+ const localVarHeaderParameter = {};
2884
+ const localVarQueryParameter = {};
2885
+ // authentication bearerAuth required
2886
+ // http bearer authentication required
2887
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2888
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2889
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2890
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2891
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2892
+ localVarRequestOptions.data = serializeDataIfNeeded(updateClubGeneralSettingsRequest, localVarRequestOptions, configuration);
2893
+ return {
2894
+ url: toPathString(localVarUrlObj),
2895
+ options: localVarRequestOptions,
2896
+ };
2897
+ }),
2898
+ /**
2899
+ *
2900
+ * @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
2901
+ * @param {*} [options] Override http request option.
2902
+ * @throws {RequiredError}
2903
+ */
2904
+ updateHoursSettings: (updateClubHoursSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubHoursSettingsRequest_1, ...args_1], void 0, function* (updateClubHoursSettingsRequest, options = {}) {
2905
+ // verify required parameter 'updateClubHoursSettingsRequest' is not null or undefined
2906
+ assertParamExists('updateHoursSettings', 'updateClubHoursSettingsRequest', updateClubHoursSettingsRequest);
2907
+ const localVarPath = `/api/club-settings/hours`;
2908
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2909
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2910
+ let baseOptions;
2911
+ if (configuration) {
2912
+ baseOptions = configuration.baseOptions;
2913
+ }
2914
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
2915
+ const localVarHeaderParameter = {};
2916
+ const localVarQueryParameter = {};
2917
+ // authentication bearerAuth required
2918
+ // http bearer authentication required
2919
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2920
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2921
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2922
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2923
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2924
+ localVarRequestOptions.data = serializeDataIfNeeded(updateClubHoursSettingsRequest, localVarRequestOptions, configuration);
2925
+ return {
2926
+ url: toPathString(localVarUrlObj),
2927
+ options: localVarRequestOptions,
2928
+ };
2929
+ }),
2930
+ /**
2931
+ *
2932
+ * @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
2933
+ * @param {*} [options] Override http request option.
2934
+ * @throws {RequiredError}
2935
+ */
2936
+ updatePresentationSettings: (clubPresentationSettingsResponse_1, ...args_1) => __awaiter(this, [clubPresentationSettingsResponse_1, ...args_1], void 0, function* (clubPresentationSettingsResponse, options = {}) {
2937
+ // verify required parameter 'clubPresentationSettingsResponse' is not null or undefined
2938
+ assertParamExists('updatePresentationSettings', 'clubPresentationSettingsResponse', clubPresentationSettingsResponse);
2939
+ const localVarPath = `/api/club-settings/presentation`;
2940
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2941
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2942
+ let baseOptions;
2943
+ if (configuration) {
2944
+ baseOptions = configuration.baseOptions;
2945
+ }
2946
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
2947
+ const localVarHeaderParameter = {};
2948
+ const localVarQueryParameter = {};
2949
+ // authentication bearerAuth required
2950
+ // http bearer authentication required
2951
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2952
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2953
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2954
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2955
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2956
+ localVarRequestOptions.data = serializeDataIfNeeded(clubPresentationSettingsResponse, localVarRequestOptions, configuration);
2957
+ return {
2958
+ url: toPathString(localVarUrlObj),
2959
+ options: localVarRequestOptions,
2960
+ };
2961
+ }),
2962
+ /**
2963
+ *
2964
+ * @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
2965
+ * @param {*} [options] Override http request option.
2966
+ * @throws {RequiredError}
2967
+ */
2968
+ updateReservationSettings: (updateClubReservationSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubReservationSettingsRequest_1, ...args_1], void 0, function* (updateClubReservationSettingsRequest, options = {}) {
2969
+ // verify required parameter 'updateClubReservationSettingsRequest' is not null or undefined
2970
+ assertParamExists('updateReservationSettings', 'updateClubReservationSettingsRequest', updateClubReservationSettingsRequest);
2971
+ const localVarPath = `/api/club-settings/reservation`;
2972
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2973
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2974
+ let baseOptions;
2975
+ if (configuration) {
2976
+ baseOptions = configuration.baseOptions;
2977
+ }
2978
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
2979
+ const localVarHeaderParameter = {};
2980
+ const localVarQueryParameter = {};
2981
+ // authentication bearerAuth required
2982
+ // http bearer authentication required
2983
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2984
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2985
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2986
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2987
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2988
+ localVarRequestOptions.data = serializeDataIfNeeded(updateClubReservationSettingsRequest, localVarRequestOptions, configuration);
2989
+ return {
2990
+ url: toPathString(localVarUrlObj),
2991
+ options: localVarRequestOptions,
2992
+ };
2993
+ }),
2994
+ };
2995
+ };
2996
+ /**
2997
+ * ClubSettingsManagerApi - functional programming interface
2998
+ * @export
2999
+ */
3000
+ export const ClubSettingsManagerApiFp = function (configuration) {
3001
+ const localVarAxiosParamCreator = ClubSettingsManagerApiAxiosParamCreator(configuration);
3002
+ return {
3003
+ /**
3004
+ *
3005
+ * @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
3006
+ * @param {*} [options] Override http request option.
3007
+ * @throws {RequiredError}
3008
+ */
3009
+ updateClubGeneralSettings(updateClubGeneralSettingsRequest, options) {
3010
+ return __awaiter(this, void 0, void 0, function* () {
3011
+ var _a, _b, _c;
3012
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubGeneralSettings(updateClubGeneralSettingsRequest, options);
3013
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3014
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.updateClubGeneralSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3015
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3016
+ });
3017
+ },
3018
+ /**
3019
+ *
3020
+ * @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
3021
+ * @param {*} [options] Override http request option.
3022
+ * @throws {RequiredError}
3023
+ */
3024
+ updateHoursSettings(updateClubHoursSettingsRequest, options) {
3025
+ return __awaiter(this, void 0, void 0, function* () {
3026
+ var _a, _b, _c;
3027
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateHoursSettings(updateClubHoursSettingsRequest, options);
2549
3028
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2550
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubRolesStaffApi.getAllClubRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3029
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.updateHoursSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2551
3030
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2552
3031
  });
2553
3032
  },
2554
3033
  /**
2555
- * Récupère un rôle de club par ID
2556
- * @param {string} id
3034
+ *
3035
+ * @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
2557
3036
  * @param {*} [options] Override http request option.
2558
3037
  * @throws {RequiredError}
2559
3038
  */
2560
- getClubRoleById(id, options) {
3039
+ updatePresentationSettings(clubPresentationSettingsResponse, options) {
2561
3040
  return __awaiter(this, void 0, void 0, function* () {
2562
3041
  var _a, _b, _c;
2563
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubRoleById(id, options);
3042
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePresentationSettings(clubPresentationSettingsResponse, options);
2564
3043
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2565
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubRolesStaffApi.getClubRoleById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3044
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.updatePresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2566
3045
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2567
3046
  });
2568
3047
  },
2569
3048
  /**
2570
3049
  *
3050
+ * @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
2571
3051
  * @param {*} [options] Override http request option.
2572
3052
  * @throws {RequiredError}
2573
3053
  */
2574
- getUserRolesInClubs(options) {
3054
+ updateReservationSettings(updateClubReservationSettingsRequest, options) {
2575
3055
  return __awaiter(this, void 0, void 0, function* () {
2576
3056
  var _a, _b, _c;
2577
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserRolesInClubs(options);
3057
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateReservationSettings(updateClubReservationSettingsRequest, options);
2578
3058
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2579
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubRolesStaffApi.getUserRolesInClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3059
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.updateReservationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2580
3060
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2581
3061
  });
2582
3062
  },
2583
3063
  };
2584
3064
  };
2585
3065
  /**
2586
- * ClubRolesStaffApi - factory interface
3066
+ * ClubSettingsManagerApi - factory interface
2587
3067
  * @export
2588
3068
  */
2589
- export const ClubRolesStaffApiFactory = function (configuration, basePath, axios) {
2590
- const localVarFp = ClubRolesStaffApiFp(configuration);
3069
+ export const ClubSettingsManagerApiFactory = function (configuration, basePath, axios) {
3070
+ const localVarFp = ClubSettingsManagerApiFp(configuration);
2591
3071
  return {
2592
3072
  /**
2593
- * Récupère la liste des rôles d\'un club
3073
+ *
3074
+ * @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
2594
3075
  * @param {*} [options] Override http request option.
2595
3076
  * @throws {RequiredError}
2596
3077
  */
2597
- getAllClubRoles(options) {
2598
- return localVarFp.getAllClubRoles(options).then((request) => request(axios, basePath));
3078
+ updateClubGeneralSettings(requestParameters, options) {
3079
+ return localVarFp.updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(axios, basePath));
2599
3080
  },
2600
3081
  /**
2601
- * Récupère un rôle de club par ID
2602
- * @param {ClubRolesStaffApiGetClubRoleByIdRequest} requestParameters Request parameters.
3082
+ *
3083
+ * @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
2603
3084
  * @param {*} [options] Override http request option.
2604
3085
  * @throws {RequiredError}
2605
3086
  */
2606
- getClubRoleById(requestParameters, options) {
2607
- return localVarFp.getClubRoleById(requestParameters.id, options).then((request) => request(axios, basePath));
3087
+ updateHoursSettings(requestParameters, options) {
3088
+ return localVarFp.updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(axios, basePath));
2608
3089
  },
2609
3090
  /**
2610
3091
  *
3092
+ * @param {ClubSettingsManagerApiUpdatePresentationSettingsRequest} requestParameters Request parameters.
2611
3093
  * @param {*} [options] Override http request option.
2612
3094
  * @throws {RequiredError}
2613
3095
  */
2614
- getUserRolesInClubs(options) {
2615
- return localVarFp.getUserRolesInClubs(options).then((request) => request(axios, basePath));
3096
+ updatePresentationSettings(requestParameters, options) {
3097
+ return localVarFp.updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(axios, basePath));
3098
+ },
3099
+ /**
3100
+ *
3101
+ * @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
3102
+ * @param {*} [options] Override http request option.
3103
+ * @throws {RequiredError}
3104
+ */
3105
+ updateReservationSettings(requestParameters, options) {
3106
+ return localVarFp.updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(axios, basePath));
2616
3107
  },
2617
3108
  };
2618
3109
  };
2619
3110
  /**
2620
- * ClubRolesStaffApi - object-oriented interface
3111
+ * ClubSettingsManagerApi - object-oriented interface
2621
3112
  * @export
2622
- * @class ClubRolesStaffApi
3113
+ * @class ClubSettingsManagerApi
2623
3114
  * @extends {BaseAPI}
2624
3115
  */
2625
- export class ClubRolesStaffApi extends BaseAPI {
3116
+ export class ClubSettingsManagerApi extends BaseAPI {
2626
3117
  /**
2627
- * Récupère la liste des rôles d\'un club
3118
+ *
3119
+ * @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
2628
3120
  * @param {*} [options] Override http request option.
2629
3121
  * @throws {RequiredError}
2630
- * @memberof ClubRolesStaffApi
3122
+ * @memberof ClubSettingsManagerApi
2631
3123
  */
2632
- getAllClubRoles(options) {
2633
- return ClubRolesStaffApiFp(this.configuration).getAllClubRoles(options).then((request) => request(this.axios, this.basePath));
3124
+ updateClubGeneralSettings(requestParameters, options) {
3125
+ return ClubSettingsManagerApiFp(this.configuration).updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(this.axios, this.basePath));
2634
3126
  }
2635
3127
  /**
2636
- * Récupère un rôle de club par ID
2637
- * @param {ClubRolesStaffApiGetClubRoleByIdRequest} requestParameters Request parameters.
3128
+ *
3129
+ * @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
2638
3130
  * @param {*} [options] Override http request option.
2639
3131
  * @throws {RequiredError}
2640
- * @memberof ClubRolesStaffApi
3132
+ * @memberof ClubSettingsManagerApi
2641
3133
  */
2642
- getClubRoleById(requestParameters, options) {
2643
- return ClubRolesStaffApiFp(this.configuration).getClubRoleById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3134
+ updateHoursSettings(requestParameters, options) {
3135
+ return ClubSettingsManagerApiFp(this.configuration).updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(this.axios, this.basePath));
2644
3136
  }
2645
3137
  /**
2646
3138
  *
3139
+ * @param {ClubSettingsManagerApiUpdatePresentationSettingsRequest} requestParameters Request parameters.
2647
3140
  * @param {*} [options] Override http request option.
2648
3141
  * @throws {RequiredError}
2649
- * @memberof ClubRolesStaffApi
3142
+ * @memberof ClubSettingsManagerApi
2650
3143
  */
2651
- getUserRolesInClubs(options) {
2652
- return ClubRolesStaffApiFp(this.configuration).getUserRolesInClubs(options).then((request) => request(this.axios, this.basePath));
3144
+ updatePresentationSettings(requestParameters, options) {
3145
+ return ClubSettingsManagerApiFp(this.configuration).updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(this.axios, this.basePath));
3146
+ }
3147
+ /**
3148
+ *
3149
+ * @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
3150
+ * @param {*} [options] Override http request option.
3151
+ * @throws {RequiredError}
3152
+ * @memberof ClubSettingsManagerApi
3153
+ */
3154
+ updateReservationSettings(requestParameters, options) {
3155
+ return ClubSettingsManagerApiFp(this.configuration).updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
2653
3156
  }
2654
3157
  }
2655
3158
  /**
2656
- * ClubSettingsManagerApi - axios parameter creator
3159
+ * ClubSettingsStaffApi - axios parameter creator
2657
3160
  * @export
2658
3161
  */
2659
- export const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
3162
+ export const ClubSettingsStaffApiAxiosParamCreator = function (configuration) {
2660
3163
  return {
2661
3164
  /**
2662
- * Crée les paramètres d\'un club
2663
- * @param {string} clubId
2664
- * @param {CreateClubSettingsRequest} createClubSettingsRequest
3165
+ *
2665
3166
  * @param {*} [options] Override http request option.
2666
3167
  * @throws {RequiredError}
2667
3168
  */
2668
- createClubSettings: (clubId_1, createClubSettingsRequest_1, ...args_1) => __awaiter(this, [clubId_1, createClubSettingsRequest_1, ...args_1], void 0, function* (clubId, createClubSettingsRequest, options = {}) {
2669
- // verify required parameter 'clubId' is not null or undefined
2670
- assertParamExists('createClubSettings', 'clubId', clubId);
2671
- // verify required parameter 'createClubSettingsRequest' is not null or undefined
2672
- assertParamExists('createClubSettings', 'createClubSettingsRequest', createClubSettingsRequest);
2673
- const localVarPath = `/api/club-settings/{clubId}`
2674
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
3169
+ getClubGeneralSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3170
+ const localVarPath = `/api/club-settings/settings/general`;
2675
3171
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2676
3172
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2677
3173
  let baseOptions;
2678
3174
  if (configuration) {
2679
3175
  baseOptions = configuration.baseOptions;
2680
3176
  }
2681
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3177
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2682
3178
  const localVarHeaderParameter = {};
2683
3179
  const localVarQueryParameter = {};
2684
3180
  // authentication bearerAuth required
2685
3181
  // http bearer authentication required
2686
3182
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2687
- localVarHeaderParameter['Content-Type'] = 'application/json';
2688
3183
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2689
3184
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2690
3185
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2691
- localVarRequestOptions.data = serializeDataIfNeeded(createClubSettingsRequest, localVarRequestOptions, configuration);
2692
3186
  return {
2693
3187
  url: toPathString(localVarUrlObj),
2694
3188
  options: localVarRequestOptions,
2695
3189
  };
2696
3190
  }),
2697
3191
  /**
2698
- * Supprime les paramètres d\'un club
3192
+ *
2699
3193
  * @param {*} [options] Override http request option.
2700
3194
  * @throws {RequiredError}
2701
3195
  */
2702
- deleteClubSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2703
- const localVarPath = `/api/club-settings`;
3196
+ getHoursSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3197
+ const localVarPath = `/api/club-settings/hours`;
2704
3198
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2705
3199
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2706
3200
  let baseOptions;
2707
3201
  if (configuration) {
2708
3202
  baseOptions = configuration.baseOptions;
2709
3203
  }
2710
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
3204
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2711
3205
  const localVarHeaderParameter = {};
2712
3206
  const localVarQueryParameter = {};
2713
3207
  // authentication bearerAuth required
@@ -2722,12 +3216,12 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration)
2722
3216
  };
2723
3217
  }),
2724
3218
  /**
2725
- * Récupère les paramètres d\'un club
3219
+ *
2726
3220
  * @param {*} [options] Override http request option.
2727
3221
  * @throws {RequiredError}
2728
3222
  */
2729
- getClubSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2730
- const localVarPath = `/api/club-settings`;
3223
+ getPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3224
+ const localVarPath = `/api/club-settings/presentation`;
2731
3225
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2732
3226
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2733
3227
  let baseOptions;
@@ -2749,32 +3243,27 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration)
2749
3243
  };
2750
3244
  }),
2751
3245
  /**
2752
- * Met à jour les paramètres d\'un club
2753
- * @param {UpdateClubSettingsRequest} updateClubSettingsRequest
3246
+ *
2754
3247
  * @param {*} [options] Override http request option.
2755
3248
  * @throws {RequiredError}
2756
3249
  */
2757
- updateClubSettings: (updateClubSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubSettingsRequest_1, ...args_1], void 0, function* (updateClubSettingsRequest, options = {}) {
2758
- // verify required parameter 'updateClubSettingsRequest' is not null or undefined
2759
- assertParamExists('updateClubSettings', 'updateClubSettingsRequest', updateClubSettingsRequest);
2760
- const localVarPath = `/api/club-settings`;
3250
+ getReservationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3251
+ const localVarPath = `/api/club-settings/reservation`;
2761
3252
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2762
3253
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2763
3254
  let baseOptions;
2764
3255
  if (configuration) {
2765
3256
  baseOptions = configuration.baseOptions;
2766
3257
  }
2767
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
3258
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2768
3259
  const localVarHeaderParameter = {};
2769
3260
  const localVarQueryParameter = {};
2770
3261
  // authentication bearerAuth required
2771
3262
  // http bearer authentication required
2772
3263
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2773
- localVarHeaderParameter['Content-Type'] = 'application/json';
2774
3264
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2775
3265
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2776
3266
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2777
- localVarRequestOptions.data = serializeDataIfNeeded(updateClubSettingsRequest, localVarRequestOptions, configuration);
2778
3267
  return {
2779
3268
  url: toPathString(localVarUrlObj),
2780
3269
  options: localVarRequestOptions,
@@ -2783,160 +3272,153 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration)
2783
3272
  };
2784
3273
  };
2785
3274
  /**
2786
- * ClubSettingsManagerApi - functional programming interface
3275
+ * ClubSettingsStaffApi - functional programming interface
2787
3276
  * @export
2788
3277
  */
2789
- export const ClubSettingsManagerApiFp = function (configuration) {
2790
- const localVarAxiosParamCreator = ClubSettingsManagerApiAxiosParamCreator(configuration);
3278
+ export const ClubSettingsStaffApiFp = function (configuration) {
3279
+ const localVarAxiosParamCreator = ClubSettingsStaffApiAxiosParamCreator(configuration);
2791
3280
  return {
2792
3281
  /**
2793
- * Crée les paramètres d\'un club
2794
- * @param {string} clubId
2795
- * @param {CreateClubSettingsRequest} createClubSettingsRequest
3282
+ *
2796
3283
  * @param {*} [options] Override http request option.
2797
3284
  * @throws {RequiredError}
2798
3285
  */
2799
- createClubSettings(clubId, createClubSettingsRequest, options) {
3286
+ getClubGeneralSettings(options) {
2800
3287
  return __awaiter(this, void 0, void 0, function* () {
2801
3288
  var _a, _b, _c;
2802
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createClubSettings(clubId, createClubSettingsRequest, options);
3289
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubGeneralSettings(options);
2803
3290
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2804
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.createClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3291
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsStaffApi.getClubGeneralSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2805
3292
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2806
3293
  });
2807
3294
  },
2808
3295
  /**
2809
- * Supprime les paramètres d\'un club
3296
+ *
2810
3297
  * @param {*} [options] Override http request option.
2811
3298
  * @throws {RequiredError}
2812
3299
  */
2813
- deleteClubSettings(options) {
3300
+ getHoursSettings(options) {
2814
3301
  return __awaiter(this, void 0, void 0, function* () {
2815
3302
  var _a, _b, _c;
2816
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClubSettings(options);
3303
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getHoursSettings(options);
2817
3304
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2818
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.deleteClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3305
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsStaffApi.getHoursSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2819
3306
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2820
3307
  });
2821
3308
  },
2822
3309
  /**
2823
- * Récupère les paramètres d\'un club
3310
+ *
2824
3311
  * @param {*} [options] Override http request option.
2825
3312
  * @throws {RequiredError}
2826
3313
  */
2827
- getClubSettings(options) {
3314
+ getPresentationSettings(options) {
2828
3315
  return __awaiter(this, void 0, void 0, function* () {
2829
3316
  var _a, _b, _c;
2830
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubSettings(options);
3317
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPresentationSettings(options);
2831
3318
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2832
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.getClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3319
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsStaffApi.getPresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2833
3320
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2834
3321
  });
2835
3322
  },
2836
3323
  /**
2837
- * Met à jour les paramètres d\'un club
2838
- * @param {UpdateClubSettingsRequest} updateClubSettingsRequest
3324
+ *
2839
3325
  * @param {*} [options] Override http request option.
2840
3326
  * @throws {RequiredError}
2841
3327
  */
2842
- updateClubSettings(updateClubSettingsRequest, options) {
3328
+ getReservationSettings(options) {
2843
3329
  return __awaiter(this, void 0, void 0, function* () {
2844
3330
  var _a, _b, _c;
2845
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubSettings(updateClubSettingsRequest, options);
3331
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getReservationSettings(options);
2846
3332
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2847
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.updateClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3333
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsStaffApi.getReservationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2848
3334
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2849
3335
  });
2850
3336
  },
2851
3337
  };
2852
3338
  };
2853
3339
  /**
2854
- * ClubSettingsManagerApi - factory interface
3340
+ * ClubSettingsStaffApi - factory interface
2855
3341
  * @export
2856
3342
  */
2857
- export const ClubSettingsManagerApiFactory = function (configuration, basePath, axios) {
2858
- const localVarFp = ClubSettingsManagerApiFp(configuration);
3343
+ export const ClubSettingsStaffApiFactory = function (configuration, basePath, axios) {
3344
+ const localVarFp = ClubSettingsStaffApiFp(configuration);
2859
3345
  return {
2860
3346
  /**
2861
- * Crée les paramètres d\'un club
2862
- * @param {ClubSettingsManagerApiCreateClubSettingsRequest} requestParameters Request parameters.
3347
+ *
2863
3348
  * @param {*} [options] Override http request option.
2864
3349
  * @throws {RequiredError}
2865
3350
  */
2866
- createClubSettings(requestParameters, options) {
2867
- return localVarFp.createClubSettings(requestParameters.clubId, requestParameters.createClubSettingsRequest, options).then((request) => request(axios, basePath));
3351
+ getClubGeneralSettings(options) {
3352
+ return localVarFp.getClubGeneralSettings(options).then((request) => request(axios, basePath));
2868
3353
  },
2869
3354
  /**
2870
- * Supprime les paramètres d\'un club
3355
+ *
2871
3356
  * @param {*} [options] Override http request option.
2872
3357
  * @throws {RequiredError}
2873
3358
  */
2874
- deleteClubSettings(options) {
2875
- return localVarFp.deleteClubSettings(options).then((request) => request(axios, basePath));
3359
+ getHoursSettings(options) {
3360
+ return localVarFp.getHoursSettings(options).then((request) => request(axios, basePath));
2876
3361
  },
2877
3362
  /**
2878
- * Récupère les paramètres d\'un club
3363
+ *
2879
3364
  * @param {*} [options] Override http request option.
2880
3365
  * @throws {RequiredError}
2881
3366
  */
2882
- getClubSettings(options) {
2883
- return localVarFp.getClubSettings(options).then((request) => request(axios, basePath));
3367
+ getPresentationSettings(options) {
3368
+ return localVarFp.getPresentationSettings(options).then((request) => request(axios, basePath));
2884
3369
  },
2885
3370
  /**
2886
- * Met à jour les paramètres d\'un club
2887
- * @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
3371
+ *
2888
3372
  * @param {*} [options] Override http request option.
2889
3373
  * @throws {RequiredError}
2890
3374
  */
2891
- updateClubSettings(requestParameters, options) {
2892
- return localVarFp.updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(axios, basePath));
3375
+ getReservationSettings(options) {
3376
+ return localVarFp.getReservationSettings(options).then((request) => request(axios, basePath));
2893
3377
  },
2894
3378
  };
2895
3379
  };
2896
3380
  /**
2897
- * ClubSettingsManagerApi - object-oriented interface
3381
+ * ClubSettingsStaffApi - object-oriented interface
2898
3382
  * @export
2899
- * @class ClubSettingsManagerApi
3383
+ * @class ClubSettingsStaffApi
2900
3384
  * @extends {BaseAPI}
2901
3385
  */
2902
- export class ClubSettingsManagerApi extends BaseAPI {
3386
+ export class ClubSettingsStaffApi extends BaseAPI {
2903
3387
  /**
2904
- * Crée les paramètres d\'un club
2905
- * @param {ClubSettingsManagerApiCreateClubSettingsRequest} requestParameters Request parameters.
3388
+ *
2906
3389
  * @param {*} [options] Override http request option.
2907
3390
  * @throws {RequiredError}
2908
- * @memberof ClubSettingsManagerApi
3391
+ * @memberof ClubSettingsStaffApi
2909
3392
  */
2910
- createClubSettings(requestParameters, options) {
2911
- return ClubSettingsManagerApiFp(this.configuration).createClubSettings(requestParameters.clubId, requestParameters.createClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
3393
+ getClubGeneralSettings(options) {
3394
+ return ClubSettingsStaffApiFp(this.configuration).getClubGeneralSettings(options).then((request) => request(this.axios, this.basePath));
2912
3395
  }
2913
3396
  /**
2914
- * Supprime les paramètres d\'un club
3397
+ *
2915
3398
  * @param {*} [options] Override http request option.
2916
3399
  * @throws {RequiredError}
2917
- * @memberof ClubSettingsManagerApi
3400
+ * @memberof ClubSettingsStaffApi
2918
3401
  */
2919
- deleteClubSettings(options) {
2920
- return ClubSettingsManagerApiFp(this.configuration).deleteClubSettings(options).then((request) => request(this.axios, this.basePath));
3402
+ getHoursSettings(options) {
3403
+ return ClubSettingsStaffApiFp(this.configuration).getHoursSettings(options).then((request) => request(this.axios, this.basePath));
2921
3404
  }
2922
3405
  /**
2923
- * Récupère les paramètres d\'un club
3406
+ *
2924
3407
  * @param {*} [options] Override http request option.
2925
3408
  * @throws {RequiredError}
2926
- * @memberof ClubSettingsManagerApi
3409
+ * @memberof ClubSettingsStaffApi
2927
3410
  */
2928
- getClubSettings(options) {
2929
- return ClubSettingsManagerApiFp(this.configuration).getClubSettings(options).then((request) => request(this.axios, this.basePath));
3411
+ getPresentationSettings(options) {
3412
+ return ClubSettingsStaffApiFp(this.configuration).getPresentationSettings(options).then((request) => request(this.axios, this.basePath));
2930
3413
  }
2931
3414
  /**
2932
- * Met à jour les paramètres d\'un club
2933
- * @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
3415
+ *
2934
3416
  * @param {*} [options] Override http request option.
2935
3417
  * @throws {RequiredError}
2936
- * @memberof ClubSettingsManagerApi
3418
+ * @memberof ClubSettingsStaffApi
2937
3419
  */
2938
- updateClubSettings(requestParameters, options) {
2939
- return ClubSettingsManagerApiFp(this.configuration).updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
3420
+ getReservationSettings(options) {
3421
+ return ClubSettingsStaffApiFp(this.configuration).getReservationSettings(options).then((request) => request(this.axios, this.basePath));
2940
3422
  }
2941
3423
  }
2942
3424
  /**
@@ -3750,42 +4232,6 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration) {
3750
4232
  options: localVarRequestOptions,
3751
4233
  };
3752
4234
  }),
3753
- /**
3754
- *
3755
- * @param {string} userId
3756
- * @param {AddCreditsToCustomerRequest} addCreditsToCustomerRequest
3757
- * @param {*} [options] Override http request option.
3758
- * @throws {RequiredError}
3759
- */
3760
- addCreditsToCustomer: (userId_1, addCreditsToCustomerRequest_1, ...args_1) => __awaiter(this, [userId_1, addCreditsToCustomerRequest_1, ...args_1], void 0, function* (userId, addCreditsToCustomerRequest, options = {}) {
3761
- // verify required parameter 'userId' is not null or undefined
3762
- assertParamExists('addCreditsToCustomer', 'userId', userId);
3763
- // verify required parameter 'addCreditsToCustomerRequest' is not null or undefined
3764
- assertParamExists('addCreditsToCustomer', 'addCreditsToCustomerRequest', addCreditsToCustomerRequest);
3765
- const localVarPath = `/api/clubs/customers/{userId}/credits`
3766
- .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
3767
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3768
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3769
- let baseOptions;
3770
- if (configuration) {
3771
- baseOptions = configuration.baseOptions;
3772
- }
3773
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3774
- const localVarHeaderParameter = {};
3775
- const localVarQueryParameter = {};
3776
- // authentication bearerAuth required
3777
- // http bearer authentication required
3778
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3779
- localVarHeaderParameter['Content-Type'] = 'application/json';
3780
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3781
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3782
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3783
- localVarRequestOptions.data = serializeDataIfNeeded(addCreditsToCustomerRequest, localVarRequestOptions, configuration);
3784
- return {
3785
- url: toPathString(localVarUrlObj),
3786
- options: localVarRequestOptions,
3787
- };
3788
- }),
3789
4235
  /**
3790
4236
  *
3791
4237
  * @param {string} priceId
@@ -4262,6 +4708,38 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration) {
4262
4708
  options: localVarRequestOptions,
4263
4709
  };
4264
4710
  }),
4711
+ /**
4712
+ *
4713
+ * @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
4714
+ * @param {*} [options] Override http request option.
4715
+ * @throws {RequiredError}
4716
+ */
4717
+ updateClubPresentationSettings: (updateClubPresentationSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubPresentationSettingsRequest_1, ...args_1], void 0, function* (updateClubPresentationSettingsRequest, options = {}) {
4718
+ // verify required parameter 'updateClubPresentationSettingsRequest' is not null or undefined
4719
+ assertParamExists('updateClubPresentationSettings', 'updateClubPresentationSettingsRequest', updateClubPresentationSettingsRequest);
4720
+ const localVarPath = `/api/clubs/settings/presentation`;
4721
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4722
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4723
+ let baseOptions;
4724
+ if (configuration) {
4725
+ baseOptions = configuration.baseOptions;
4726
+ }
4727
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
4728
+ const localVarHeaderParameter = {};
4729
+ const localVarQueryParameter = {};
4730
+ // authentication bearerAuth required
4731
+ // http bearer authentication required
4732
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4733
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4734
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4735
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4736
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4737
+ localVarRequestOptions.data = serializeDataIfNeeded(updateClubPresentationSettingsRequest, localVarRequestOptions, configuration);
4738
+ return {
4739
+ url: toPathString(localVarUrlObj),
4740
+ options: localVarRequestOptions,
4741
+ };
4742
+ }),
4265
4743
  /**
4266
4744
  *
4267
4745
  * @param {string} courtId
@@ -4358,22 +4836,6 @@ export const ClubsManagerApiFp = function (configuration) {
4358
4836
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4359
4837
  });
4360
4838
  },
4361
- /**
4362
- *
4363
- * @param {string} userId
4364
- * @param {AddCreditsToCustomerRequest} addCreditsToCustomerRequest
4365
- * @param {*} [options] Override http request option.
4366
- * @throws {RequiredError}
4367
- */
4368
- addCreditsToCustomer(userId, addCreditsToCustomerRequest, options) {
4369
- return __awaiter(this, void 0, void 0, function* () {
4370
- var _a, _b, _c;
4371
- const localVarAxiosArgs = yield localVarAxiosParamCreator.addCreditsToCustomer(userId, addCreditsToCustomerRequest, options);
4372
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4373
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsManagerApi.addCreditsToCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4374
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4375
- });
4376
- },
4377
4839
  /**
4378
4840
  *
4379
4841
  * @param {string} priceId
@@ -4600,6 +5062,21 @@ export const ClubsManagerApiFp = function (configuration) {
4600
5062
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4601
5063
  });
4602
5064
  },
5065
+ /**
5066
+ *
5067
+ * @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
5068
+ * @param {*} [options] Override http request option.
5069
+ * @throws {RequiredError}
5070
+ */
5071
+ updateClubPresentationSettings(updateClubPresentationSettingsRequest, options) {
5072
+ return __awaiter(this, void 0, void 0, function* () {
5073
+ var _a, _b, _c;
5074
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubPresentationSettings(updateClubPresentationSettingsRequest, options);
5075
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5076
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsManagerApi.updateClubPresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5077
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5078
+ });
5079
+ },
4603
5080
  /**
4604
5081
  *
4605
5082
  * @param {string} courtId
@@ -4650,15 +5127,6 @@ export const ClubsManagerApiFactory = function (configuration, basePath, axios)
4650
5127
  addClubMember(requestParameters, options) {
4651
5128
  return localVarFp.addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(axios, basePath));
4652
5129
  },
4653
- /**
4654
- *
4655
- * @param {ClubsManagerApiAddCreditsToCustomerRequest} requestParameters Request parameters.
4656
- * @param {*} [options] Override http request option.
4657
- * @throws {RequiredError}
4658
- */
4659
- addCreditsToCustomer(requestParameters, options) {
4660
- return localVarFp.addCreditsToCustomer(requestParameters.userId, requestParameters.addCreditsToCustomerRequest, options).then((request) => request(axios, basePath));
4661
- },
4662
5130
  /**
4663
5131
  *
4664
5132
  * @param {ClubsManagerApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
@@ -4793,6 +5261,15 @@ export const ClubsManagerApiFactory = function (configuration, basePath, axios)
4793
5261
  updateClubInfos(requestParameters, options) {
4794
5262
  return localVarFp.updateClubInfos(requestParameters.body, options).then((request) => request(axios, basePath));
4795
5263
  },
5264
+ /**
5265
+ *
5266
+ * @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
5267
+ * @param {*} [options] Override http request option.
5268
+ * @throws {RequiredError}
5269
+ */
5270
+ updateClubPresentationSettings(requestParameters, options) {
5271
+ return localVarFp.updateClubPresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(axios, basePath));
5272
+ },
4796
5273
  /**
4797
5274
  *
4798
5275
  * @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
@@ -4830,16 +5307,6 @@ export class ClubsManagerApi extends BaseAPI {
4830
5307
  addClubMember(requestParameters, options) {
4831
5308
  return ClubsManagerApiFp(this.configuration).addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
4832
5309
  }
4833
- /**
4834
- *
4835
- * @param {ClubsManagerApiAddCreditsToCustomerRequest} requestParameters Request parameters.
4836
- * @param {*} [options] Override http request option.
4837
- * @throws {RequiredError}
4838
- * @memberof ClubsManagerApi
4839
- */
4840
- addCreditsToCustomer(requestParameters, options) {
4841
- return ClubsManagerApiFp(this.configuration).addCreditsToCustomer(requestParameters.userId, requestParameters.addCreditsToCustomerRequest, options).then((request) => request(this.axios, this.basePath));
4842
- }
4843
5310
  /**
4844
5311
  *
4845
5312
  * @param {ClubsManagerApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
@@ -4989,6 +5456,16 @@ export class ClubsManagerApi extends BaseAPI {
4989
5456
  updateClubInfos(requestParameters, options) {
4990
5457
  return ClubsManagerApiFp(this.configuration).updateClubInfos(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
4991
5458
  }
5459
+ /**
5460
+ *
5461
+ * @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
5462
+ * @param {*} [options] Override http request option.
5463
+ * @throws {RequiredError}
5464
+ * @memberof ClubsManagerApi
5465
+ */
5466
+ updateClubPresentationSettings(requestParameters, options) {
5467
+ return ClubsManagerApiFp(this.configuration).updateClubPresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
5468
+ }
4992
5469
  /**
4993
5470
  *
4994
5471
  * @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
@@ -5097,6 +5574,33 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
5097
5574
  options: localVarRequestOptions,
5098
5575
  };
5099
5576
  }),
5577
+ /**
5578
+ *
5579
+ * @param {*} [options] Override http request option.
5580
+ * @throws {RequiredError}
5581
+ */
5582
+ getClubPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
5583
+ const localVarPath = `/api/clubs/settings/presentation`;
5584
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5585
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5586
+ let baseOptions;
5587
+ if (configuration) {
5588
+ baseOptions = configuration.baseOptions;
5589
+ }
5590
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5591
+ const localVarHeaderParameter = {};
5592
+ const localVarQueryParameter = {};
5593
+ // authentication bearerAuth required
5594
+ // http bearer authentication required
5595
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5596
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5597
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5598
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5599
+ return {
5600
+ url: toPathString(localVarUrlObj),
5601
+ options: localVarRequestOptions,
5602
+ };
5603
+ }),
5100
5604
  /**
5101
5605
  * Récupère les rôles d\'un club
5102
5606
  * @param {*} [options] Override http request option.
@@ -5260,6 +5764,20 @@ export const ClubsStaffApiFp = function (configuration) {
5260
5764
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5261
5765
  });
5262
5766
  },
5767
+ /**
5768
+ *
5769
+ * @param {*} [options] Override http request option.
5770
+ * @throws {RequiredError}
5771
+ */
5772
+ getClubPresentationSettings(options) {
5773
+ return __awaiter(this, void 0, void 0, function* () {
5774
+ var _a, _b, _c;
5775
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPresentationSettings(options);
5776
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5777
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsStaffApi.getClubPresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5778
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5779
+ });
5780
+ },
5263
5781
  /**
5264
5782
  * Récupère les rôles d\'un club
5265
5783
  * @param {*} [options] Override http request option.
@@ -5350,6 +5868,14 @@ export const ClubsStaffApiFactory = function (configuration, basePath, axios) {
5350
5868
  getClubMembers(options) {
5351
5869
  return localVarFp.getClubMembers(options).then((request) => request(axios, basePath));
5352
5870
  },
5871
+ /**
5872
+ *
5873
+ * @param {*} [options] Override http request option.
5874
+ * @throws {RequiredError}
5875
+ */
5876
+ getClubPresentationSettings(options) {
5877
+ return localVarFp.getClubPresentationSettings(options).then((request) => request(axios, basePath));
5878
+ },
5353
5879
  /**
5354
5880
  * Récupère les rôles d\'un club
5355
5881
  * @param {*} [options] Override http request option.
@@ -5419,6 +5945,15 @@ export class ClubsStaffApi extends BaseAPI {
5419
5945
  getClubMembers(options) {
5420
5946
  return ClubsStaffApiFp(this.configuration).getClubMembers(options).then((request) => request(this.axios, this.basePath));
5421
5947
  }
5948
+ /**
5949
+ *
5950
+ * @param {*} [options] Override http request option.
5951
+ * @throws {RequiredError}
5952
+ * @memberof ClubsStaffApi
5953
+ */
5954
+ getClubPresentationSettings(options) {
5955
+ return ClubsStaffApiFp(this.configuration).getClubPresentationSettings(options).then((request) => request(this.axios, this.basePath));
5956
+ }
5422
5957
  /**
5423
5958
  * Récupère les rôles d\'un club
5424
5959
  * @param {*} [options] Override http request option.