@tennac-booking/sdk 1.0.97 → 1.0.98

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 (101) hide show
  1. package/.openapi-generator/FILES +264 -267
  2. package/README.md +46 -45
  3. package/api.ts +2342 -2430
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +1475 -1614
  8. package/dist/api.js +1192 -1061
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +1475 -1614
  16. package/dist/esm/api.js +1157 -1035
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/ActiveSubscriptionResponse.md +22 -0
  28. package/docs/AddClubMemberRequest.md +1 -7
  29. package/docs/{ClubDaySchedule.md → AddCreditsToCustomer200Response.md} +5 -7
  30. package/docs/AddCreditsToCustomerRequest.md +22 -0
  31. package/docs/BookingPopulated.md +3 -3
  32. package/docs/BookingPriceBody.md +4 -2
  33. package/docs/BookingPriceResponse.md +2 -0
  34. package/docs/BookingSummary.md +4 -0
  35. package/docs/ClientAccountOnboardingRequest.md +29 -0
  36. package/docs/ClientAccountOnboardingResponse.md +34 -0
  37. package/docs/ClientAccountResponse.md +44 -0
  38. package/docs/ClientAccountsApi.md +408 -0
  39. package/docs/ClientApi.md +109 -0
  40. package/docs/{ClubPlayerStatisticsResponseMostPlayedPartnersInner.md → ClientMeResponse.md} +11 -9
  41. package/docs/ClientOnboardingRequestBody.md +33 -0
  42. package/docs/ClientOnboardingResponse.md +27 -0
  43. package/docs/ClientRegisterRequestBody.md +26 -0
  44. package/docs/ClientRegisterResponse.md +22 -0
  45. package/docs/ClientSubscriptionResponse.md +34 -0
  46. package/docs/ClubAnalyticsStaffApi.md +0 -314
  47. package/docs/ClubSettingsManagerApi.md +60 -54
  48. package/docs/ClubSettingsResponse.md +39 -0
  49. package/docs/ClubsManagerApi.md +58 -52
  50. package/docs/ClubsStaffApi.md +0 -44
  51. package/docs/CourtResponse.md +1 -1
  52. package/docs/CreateBookingRequest.md +1 -1
  53. package/docs/CreateClubSettingsRequest.md +34 -0
  54. package/docs/CreateCourtRequest.md +1 -1
  55. package/docs/CreateEventRequest.md +1 -3
  56. package/docs/DeleteClubSettingsResponse.md +20 -0
  57. package/docs/EventResponse.md +1 -1
  58. package/docs/EventResponseCourtsInner.md +18 -0
  59. package/docs/GetSubscriptionsHistory200Response.md +22 -0
  60. package/docs/IUserAttributes.md +2 -0
  61. package/docs/ManagedClubsResponse.md +23 -0
  62. package/docs/PlayerShare.md +22 -0
  63. package/docs/PlayerWithPaymentMethod.md +2 -0
  64. package/docs/SlotInfo.md +2 -2
  65. package/docs/SportsStaffApi.md +55 -0
  66. package/docs/StaffUserProfileResponse.md +2 -0
  67. package/docs/UpdateClubSettingsRequest.md +32 -0
  68. package/docs/UpdateEventRequest.md +1 -1
  69. package/docs/UserClubMembership.md +34 -0
  70. package/docs/UserClubMembershipsResponse.md +20 -0
  71. package/docs/UserInfo.md +0 -2
  72. package/docs/UserProfileResponse.md +2 -0
  73. package/docs/UsersApi.md +46 -0
  74. package/index.ts +1 -1
  75. package/package.json +1 -1
  76. package/docs/ClubGeneralSettingsResponse.md +0 -32
  77. package/docs/ClubHoursSettingsResponse.md +0 -22
  78. package/docs/ClubLocationSettings.md +0 -26
  79. package/docs/ClubPlayerBookingItem.md +0 -36
  80. package/docs/ClubPlayerBookingsPagination.md +0 -28
  81. package/docs/ClubPlayerBookingsResponse.md +0 -24
  82. package/docs/ClubPlayerDetailResponse.md +0 -46
  83. package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +0 -22
  84. package/docs/ClubPlayerStatisticsResponse.md +0 -42
  85. package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +0 -22
  86. package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +0 -23
  87. package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +0 -25
  88. package/docs/ClubPlayerSubscriptionSummary.md +0 -28
  89. package/docs/ClubPresentationSettingsResponse.md +0 -26
  90. package/docs/ClubPricingPeriodResponse.md +0 -30
  91. package/docs/ClubReservationSettingsResponse.md +0 -28
  92. package/docs/ClubSettingsStaffApi.md +0 -183
  93. package/docs/ClubWeeklySchedule.md +0 -32
  94. package/docs/CourtBookingShareItem.md +0 -26
  95. package/docs/PartialClubWeeklySchedule.md +0 -33
  96. package/docs/RetentionRateResponse.md +0 -24
  97. package/docs/RevenueBySportItem.md +0 -24
  98. package/docs/UpdateClubGeneralSettingsRequest.md +0 -34
  99. package/docs/UpdateClubHoursSettingsRequest.md +0 -22
  100. package/docs/UpdateClubPresentationSettingsRequest.md +0 -26
  101. package/docs/UpdateClubReservationSettingsRequest.md +0 -28
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.89
8
+ * The version of the OpenAPI document: 1.0.98
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,9 +22,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.UserLocationSummaryTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.SurfaceType = exports.StripeStripeTaxCodeObjectEnum = exports.StripeStripeResponseStripeStripePriceObjectEnum = exports.StripeStripeProductType = exports.StripeStripeProductTaxCodeObjectEnum = exports.StripeStripeProductDefaultPriceObjectEnum = exports.StripeStripeProductObjectEnum = exports.StripeStripePriceType = exports.StripeStripePriceTransformQuantityRound = exports.StripeStripePriceTiersMode = exports.StripeStripePriceTaxBehavior = exports.StripeStripePriceRecurringUsageType = exports.StripeStripePriceRecurringInterval = exports.StripeStripePriceProductObjectEnum = exports.StripeStripePriceCurrencyOptionsTaxBehavior = exports.StripeStripePriceBillingScheme = exports.StripeStripePriceObjectEnum = exports.StripeStripeDeletedProductObjectEnum = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.InvoiceStatus = exports.IUserLocationTypeEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = void 0;
26
- exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsStaffApi = exports.ClubSettingsStaffApiFactory = exports.ClubSettingsStaffApiFp = exports.ClubSettingsStaffApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubAnalyticsStaffApi = exports.ClubAnalyticsStaffApiFactory = exports.ClubAnalyticsStaffApiFp = exports.ClubAnalyticsStaffApiAxiosParamCreator = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.BookingsUserApi = exports.BookingsUserApiFactory = exports.BookingsUserApiFp = exports.BookingsUserApiAxiosParamCreator = exports.BookingsStaffApi = exports.BookingsStaffApiFactory = exports.BookingsStaffApiFp = exports.BookingsStaffApiAxiosParamCreator = exports.BookingsManagerApi = exports.BookingsManagerApiFactory = exports.BookingsManagerApiFp = exports.BookingsManagerApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = void 0;
27
- exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsPublicApi = exports.SportsPublicApiFactory = exports.SportsPublicApiFp = exports.SportsPublicApiAxiosParamCreator = exports.SportsManagerApi = exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.GetPublishedEventsByClubIdTypeEnum = exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = void 0;
25
+ exports.UserLocationSummaryTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.SurfaceType = exports.StripeStripeTaxCodeObjectEnum = exports.StripeStripeResponseStripeStripePriceObjectEnum = exports.StripeStripeProductType = exports.StripeStripeProductTaxCodeObjectEnum = exports.StripeStripeProductDefaultPriceObjectEnum = exports.StripeStripeProductObjectEnum = exports.StripeStripePriceType = exports.StripeStripePriceTransformQuantityRound = exports.StripeStripePriceTiersMode = exports.StripeStripePriceTaxBehavior = exports.StripeStripePriceRecurringUsageType = exports.StripeStripePriceRecurringInterval = exports.StripeStripePriceProductObjectEnum = exports.StripeStripePriceCurrencyOptionsTaxBehavior = exports.StripeStripePriceBillingScheme = exports.StripeStripePriceObjectEnum = exports.StripeStripeDeletedProductObjectEnum = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.InvoiceStatus = exports.IUserLocationTypeEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.ClientAccountOnboardingRequestSubscriptionTypeEnum = exports.ClientAccountOnboardingRequestBusinessTypeEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = void 0;
26
+ exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubAnalyticsStaffApi = exports.ClubAnalyticsStaffApiFactory = exports.ClubAnalyticsStaffApiFp = exports.ClubAnalyticsStaffApiAxiosParamCreator = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.ClientAccountsApi = exports.ClientAccountsApiFactory = exports.ClientAccountsApiFp = exports.ClientAccountsApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.BookingsUserApi = exports.BookingsUserApiFactory = exports.BookingsUserApiFp = exports.BookingsUserApiAxiosParamCreator = exports.BookingsStaffApi = exports.BookingsStaffApiFactory = exports.BookingsStaffApiFp = exports.BookingsStaffApiAxiosParamCreator = exports.BookingsManagerApi = exports.BookingsManagerApiFactory = exports.BookingsManagerApiFp = exports.BookingsManagerApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = void 0;
27
+ exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsStaffApi = exports.SportsStaffApiFactory = exports.SportsStaffApiFp = exports.SportsStaffApiAxiosParamCreator = exports.SportsPublicApi = exports.SportsPublicApiFactory = exports.SportsPublicApiFp = exports.SportsPublicApiAxiosParamCreator = exports.SportsManagerApi = exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.GetPublishedEventsByClubIdTypeEnum = exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = void 0;
28
+ exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = void 0;
28
29
  const axios_1 = require("axios");
29
30
  // Some imports not used depending on template conditions
30
31
  // @ts-ignore
@@ -58,6 +59,14 @@ exports.CaptureResultStatusEnum = {
58
59
  Captured: 'captured',
59
60
  Failed: 'failed'
60
61
  };
62
+ exports.ClientAccountOnboardingRequestBusinessTypeEnum = {
63
+ Individual: 'individual',
64
+ Company: 'company'
65
+ };
66
+ exports.ClientAccountOnboardingRequestSubscriptionTypeEnum = {
67
+ Basic: 'basic',
68
+ PlatformWithConnect: 'platform_with_connect'
69
+ };
61
70
  exports.ClubRoleResponseRoleEnum = {
62
71
  Admin: 'admin',
63
72
  Manager: 'manager',
@@ -1406,18 +1415,18 @@ class BookingsUserApi extends base_1.BaseAPI {
1406
1415
  }
1407
1416
  exports.BookingsUserApi = BookingsUserApi;
1408
1417
  /**
1409
- * ClubAnalyticsApi - axios parameter creator
1418
+ * ClientApi - axios parameter creator
1410
1419
  * @export
1411
1420
  */
1412
- const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
1421
+ const ClientApiAxiosParamCreator = function (configuration) {
1413
1422
  return {
1414
1423
  /**
1415
- * Récupère les clubs les plus aimés
1424
+ * Récupère la liste des clubs gérés par l\'utilisateur authentifié
1416
1425
  * @param {*} [options] Override http request option.
1417
1426
  * @throws {RequiredError}
1418
1427
  */
1419
- getMostLikedClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1420
- const localVarPath = `/api/club-analytics/most-liked-clubs`;
1428
+ getManagedClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1429
+ const localVarPath = `/clients/managed-clubs`;
1421
1430
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1422
1431
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1423
1432
  let baseOptions;
@@ -1439,27 +1448,29 @@ const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
1439
1448
  };
1440
1449
  }),
1441
1450
  /**
1442
- * Récupère les clubs populaires
1451
+ * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
1452
+ * @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
1443
1453
  * @param {*} [options] Override http request option.
1444
1454
  * @throws {RequiredError}
1445
1455
  */
1446
- getPopularClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1447
- const localVarPath = `/api/club-analytics/popular-clubs`;
1456
+ onboardClub: (clientOnboardingRequestBody_1, ...args_1) => __awaiter(this, [clientOnboardingRequestBody_1, ...args_1], void 0, function* (clientOnboardingRequestBody, options = {}) {
1457
+ // verify required parameter 'clientOnboardingRequestBody' is not null or undefined
1458
+ (0, common_1.assertParamExists)('onboardClub', 'clientOnboardingRequestBody', clientOnboardingRequestBody);
1459
+ const localVarPath = `/clients/onboarding`;
1448
1460
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1449
1461
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1450
1462
  let baseOptions;
1451
1463
  if (configuration) {
1452
1464
  baseOptions = configuration.baseOptions;
1453
1465
  }
1454
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1466
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1455
1467
  const localVarHeaderParameter = {};
1456
1468
  const localVarQueryParameter = {};
1457
- // authentication bearerAuth required
1458
- // http bearer authentication required
1459
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1469
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1460
1470
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1461
1471
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1462
1472
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1473
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clientOnboardingRequestBody, localVarRequestOptions, configuration);
1463
1474
  return {
1464
1475
  url: (0, common_1.toPathString)(localVarUrlObj),
1465
1476
  options: localVarRequestOptions,
@@ -1467,115 +1478,114 @@ const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
1467
1478
  }),
1468
1479
  };
1469
1480
  };
1470
- exports.ClubAnalyticsApiAxiosParamCreator = ClubAnalyticsApiAxiosParamCreator;
1481
+ exports.ClientApiAxiosParamCreator = ClientApiAxiosParamCreator;
1471
1482
  /**
1472
- * ClubAnalyticsApi - functional programming interface
1483
+ * ClientApi - functional programming interface
1473
1484
  * @export
1474
1485
  */
1475
- const ClubAnalyticsApiFp = function (configuration) {
1476
- const localVarAxiosParamCreator = (0, exports.ClubAnalyticsApiAxiosParamCreator)(configuration);
1486
+ const ClientApiFp = function (configuration) {
1487
+ const localVarAxiosParamCreator = (0, exports.ClientApiAxiosParamCreator)(configuration);
1477
1488
  return {
1478
1489
  /**
1479
- * Récupère les clubs les plus aimés
1490
+ * Récupère la liste des clubs gérés par l\'utilisateur authentifié
1480
1491
  * @param {*} [options] Override http request option.
1481
1492
  * @throws {RequiredError}
1482
1493
  */
1483
- getMostLikedClub(options) {
1494
+ getManagedClubs(options) {
1484
1495
  return __awaiter(this, void 0, void 0, function* () {
1485
1496
  var _a, _b, _c;
1486
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getMostLikedClub(options);
1497
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getManagedClubs(options);
1487
1498
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1488
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsApi.getMostLikedClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1499
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientApi.getManagedClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1489
1500
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1490
1501
  });
1491
1502
  },
1492
1503
  /**
1493
- * Récupère les clubs populaires
1504
+ * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
1505
+ * @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
1494
1506
  * @param {*} [options] Override http request option.
1495
1507
  * @throws {RequiredError}
1496
1508
  */
1497
- getPopularClubs(options) {
1509
+ onboardClub(clientOnboardingRequestBody, options) {
1498
1510
  return __awaiter(this, void 0, void 0, function* () {
1499
1511
  var _a, _b, _c;
1500
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPopularClubs(options);
1512
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.onboardClub(clientOnboardingRequestBody, options);
1501
1513
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1502
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsApi.getPopularClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1514
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientApi.onboardClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1503
1515
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1504
1516
  });
1505
1517
  },
1506
1518
  };
1507
1519
  };
1508
- exports.ClubAnalyticsApiFp = ClubAnalyticsApiFp;
1520
+ exports.ClientApiFp = ClientApiFp;
1509
1521
  /**
1510
- * ClubAnalyticsApi - factory interface
1522
+ * ClientApi - factory interface
1511
1523
  * @export
1512
1524
  */
1513
- const ClubAnalyticsApiFactory = function (configuration, basePath, axios) {
1514
- const localVarFp = (0, exports.ClubAnalyticsApiFp)(configuration);
1525
+ const ClientApiFactory = function (configuration, basePath, axios) {
1526
+ const localVarFp = (0, exports.ClientApiFp)(configuration);
1515
1527
  return {
1516
1528
  /**
1517
- * Récupère les clubs les plus aimés
1529
+ * Récupère la liste des clubs gérés par l\'utilisateur authentifié
1518
1530
  * @param {*} [options] Override http request option.
1519
1531
  * @throws {RequiredError}
1520
1532
  */
1521
- getMostLikedClub(options) {
1522
- return localVarFp.getMostLikedClub(options).then((request) => request(axios, basePath));
1533
+ getManagedClubs(options) {
1534
+ return localVarFp.getManagedClubs(options).then((request) => request(axios, basePath));
1523
1535
  },
1524
1536
  /**
1525
- * Récupère les clubs populaires
1537
+ * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
1538
+ * @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
1526
1539
  * @param {*} [options] Override http request option.
1527
1540
  * @throws {RequiredError}
1528
1541
  */
1529
- getPopularClubs(options) {
1530
- return localVarFp.getPopularClubs(options).then((request) => request(axios, basePath));
1542
+ onboardClub(requestParameters, options) {
1543
+ return localVarFp.onboardClub(requestParameters.clientOnboardingRequestBody, options).then((request) => request(axios, basePath));
1531
1544
  },
1532
1545
  };
1533
1546
  };
1534
- exports.ClubAnalyticsApiFactory = ClubAnalyticsApiFactory;
1547
+ exports.ClientApiFactory = ClientApiFactory;
1535
1548
  /**
1536
- * ClubAnalyticsApi - object-oriented interface
1549
+ * ClientApi - object-oriented interface
1537
1550
  * @export
1538
- * @class ClubAnalyticsApi
1551
+ * @class ClientApi
1539
1552
  * @extends {BaseAPI}
1540
1553
  */
1541
- class ClubAnalyticsApi extends base_1.BaseAPI {
1554
+ class ClientApi extends base_1.BaseAPI {
1542
1555
  /**
1543
- * Récupère les clubs les plus aimés
1556
+ * Récupère la liste des clubs gérés par l\'utilisateur authentifié
1544
1557
  * @param {*} [options] Override http request option.
1545
1558
  * @throws {RequiredError}
1546
- * @memberof ClubAnalyticsApi
1559
+ * @memberof ClientApi
1547
1560
  */
1548
- getMostLikedClub(options) {
1549
- return (0, exports.ClubAnalyticsApiFp)(this.configuration).getMostLikedClub(options).then((request) => request(this.axios, this.basePath));
1561
+ getManagedClubs(options) {
1562
+ return (0, exports.ClientApiFp)(this.configuration).getManagedClubs(options).then((request) => request(this.axios, this.basePath));
1550
1563
  }
1551
1564
  /**
1552
- * Récupère les clubs populaires
1565
+ * Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
1566
+ * @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
1553
1567
  * @param {*} [options] Override http request option.
1554
1568
  * @throws {RequiredError}
1555
- * @memberof ClubAnalyticsApi
1569
+ * @memberof ClientApi
1556
1570
  */
1557
- getPopularClubs(options) {
1558
- return (0, exports.ClubAnalyticsApiFp)(this.configuration).getPopularClubs(options).then((request) => request(this.axios, this.basePath));
1571
+ onboardClub(requestParameters, options) {
1572
+ return (0, exports.ClientApiFp)(this.configuration).onboardClub(requestParameters.clientOnboardingRequestBody, options).then((request) => request(this.axios, this.basePath));
1559
1573
  }
1560
1574
  }
1561
- exports.ClubAnalyticsApi = ClubAnalyticsApi;
1575
+ exports.ClientApi = ClientApi;
1562
1576
  /**
1563
- * ClubAnalyticsStaffApi - axios parameter creator
1577
+ * ClientAccountsApi - axios parameter creator
1564
1578
  * @export
1565
1579
  */
1566
- const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1580
+ const ClientAccountsApiAxiosParamCreator = function (configuration) {
1567
1581
  return {
1568
1582
  /**
1569
- * Récupère les analytics par sport
1570
- * @param {string} sportId
1583
+ * Informations de l\'utilisateur client authentifié (token clientAuth)
1571
1584
  * @param {*} [options] Override http request option.
1572
1585
  * @throws {RequiredError}
1573
1586
  */
1574
- getAnalyticsBySport: (sportId_1, ...args_1) => __awaiter(this, [sportId_1, ...args_1], void 0, function* (sportId, options = {}) {
1575
- // verify required parameter 'sportId' is not null or undefined
1576
- (0, common_1.assertParamExists)('getAnalyticsBySport', 'sportId', sportId);
1577
- const localVarPath = `/api/club-analytics/sport/{sportId}/analytics`
1578
- .replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)));
1587
+ clientAuthMe: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1588
+ const localVarPath = `/client-accounts/client-auth/me`;
1579
1589
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1580
1590
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1581
1591
  let baseOptions;
@@ -1585,7 +1595,7 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1585
1595
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1586
1596
  const localVarHeaderParameter = {};
1587
1597
  const localVarQueryParameter = {};
1588
- // authentication bearerAuth required
1598
+ // authentication clientAuth required
1589
1599
  // http bearer authentication required
1590
1600
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1591
1601
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -1597,18 +1607,16 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1597
1607
  };
1598
1608
  }),
1599
1609
  /**
1600
- * Récupère les réservations d\'un joueur par son ID (à venir et passées)
1601
- * @param {string} playerId
1602
- * @param {number} [page]
1603
- * @param {number} [pageSize]
1610
+ * Récupère le compte client par son ID
1611
+ * @param {string} accountId L\'ID du compte client
1604
1612
  * @param {*} [options] Override http request option.
1605
1613
  * @throws {RequiredError}
1606
1614
  */
1607
- 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 = {}) {
1608
- // verify required parameter 'playerId' is not null or undefined
1609
- (0, common_1.assertParamExists)('getClubPlayerBookingsById', 'playerId', playerId);
1610
- const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
1611
- .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
1615
+ getClientAccountById: (accountId_1, ...args_1) => __awaiter(this, [accountId_1, ...args_1], void 0, function* (accountId, options = {}) {
1616
+ // verify required parameter 'accountId' is not null or undefined
1617
+ (0, common_1.assertParamExists)('getClientAccountById', 'accountId', accountId);
1618
+ const localVarPath = `/client-accounts/{accountId}`
1619
+ .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
1612
1620
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1613
1621
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1614
1622
  let baseOptions;
@@ -1621,12 +1629,6 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1621
1629
  // authentication bearerAuth required
1622
1630
  // http bearer authentication required
1623
1631
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1624
- if (page !== undefined) {
1625
- localVarQueryParameter['page'] = page;
1626
- }
1627
- if (pageSize !== undefined) {
1628
- localVarQueryParameter['pageSize'] = pageSize;
1629
- }
1630
1632
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1631
1633
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1632
1634
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -1636,16 +1638,12 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1636
1638
  };
1637
1639
  }),
1638
1640
  /**
1639
- * Récupère les informations détaillées d\'un joueur par son ID
1640
- * @param {string} playerId
1641
+ * Récupère l\'abonnement actif du compte client authentifié
1641
1642
  * @param {*} [options] Override http request option.
1642
1643
  * @throws {RequiredError}
1643
1644
  */
1644
- getClubPlayerById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
1645
- // verify required parameter 'playerId' is not null or undefined
1646
- (0, common_1.assertParamExists)('getClubPlayerById', 'playerId', playerId);
1647
- const localVarPath = `/api/club-analytics/players/{playerId}`
1648
- .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
1645
+ getMyActiveSubscription: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1646
+ const localVarPath = `/client-accounts/me/subscription`;
1649
1647
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1650
1648
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1651
1649
  let baseOptions;
@@ -1667,16 +1665,12 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1667
1665
  };
1668
1666
  }),
1669
1667
  /**
1670
- * Récupère les statistiques d\'un joueur pour le staff
1671
- * @param {string} playerId
1668
+ * Récupère le compte client de l\'utilisateur authentifié
1672
1669
  * @param {*} [options] Override http request option.
1673
1670
  * @throws {RequiredError}
1674
1671
  */
1675
- getClubPlayerStatisticsById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
1676
- // verify required parameter 'playerId' is not null or undefined
1677
- (0, common_1.assertParamExists)('getClubPlayerStatisticsById', 'playerId', playerId);
1678
- const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
1679
- .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
1672
+ getMyClientAccount: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1673
+ const localVarPath = `/client-accounts/me`;
1680
1674
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1681
1675
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1682
1676
  let baseOptions;
@@ -1698,12 +1692,12 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1698
1692
  };
1699
1693
  }),
1700
1694
  /**
1701
- * Récupère la liste des joueurs du club
1695
+ * Récupère l\'historique des abonnements du compte client authentifié
1702
1696
  * @param {*} [options] Override http request option.
1703
1697
  * @throws {RequiredError}
1704
1698
  */
1705
- getClubPlayers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1706
- const localVarPath = `/api/club-analytics/players`;
1699
+ getSubscriptionsHistory: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1700
+ const localVarPath = `/client-accounts/me/subscriptions-history`;
1707
1701
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1708
1702
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1709
1703
  let baseOptions;
@@ -1725,15 +1719,12 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1725
1719
  };
1726
1720
  }),
1727
1721
  /**
1728
- * Récupère le chiffre d\'affaires quotidien
1729
- * @param {string} date
1722
+ * Liste les prix Stripe disponibles pour les abonnements client
1730
1723
  * @param {*} [options] Override http request option.
1731
1724
  * @throws {RequiredError}
1732
1725
  */
1733
- getDailyTurnOver: (date_1, ...args_1) => __awaiter(this, [date_1, ...args_1], void 0, function* (date, options = {}) {
1734
- // verify required parameter 'date' is not null or undefined
1735
- (0, common_1.assertParamExists)('getDailyTurnOver', 'date', date);
1736
- const localVarPath = `/api/club-analytics/daily-turnover`;
1726
+ listAvailablePrices: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1727
+ const localVarPath = `/client-accounts/available-prices`;
1737
1728
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1738
1729
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1739
1730
  let baseOptions;
@@ -1746,9 +1737,6 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1746
1737
  // authentication bearerAuth required
1747
1738
  // http bearer authentication required
1748
1739
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1749
- if (date !== undefined) {
1750
- localVarQueryParameter['date'] = date;
1751
- }
1752
1740
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1753
1741
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1754
1742
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -1758,221 +1746,741 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1758
1746
  };
1759
1747
  }),
1760
1748
  /**
1761
- * Récupère les pourcentages par genre
1749
+ * Crée un nouveau compte client avec onboarding Stripe
1750
+ * @param {ClientAccountOnboardingRequest} clientAccountOnboardingRequest Les données du compte à créer
1762
1751
  * @param {*} [options] Override http request option.
1763
1752
  * @throws {RequiredError}
1764
1753
  */
1765
- getGenderPercentage: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1766
- const localVarPath = `/api/club-analytics/gender-percentage`;
1754
+ onboardClientAccount: (clientAccountOnboardingRequest_1, ...args_1) => __awaiter(this, [clientAccountOnboardingRequest_1, ...args_1], void 0, function* (clientAccountOnboardingRequest, options = {}) {
1755
+ // verify required parameter 'clientAccountOnboardingRequest' is not null or undefined
1756
+ (0, common_1.assertParamExists)('onboardClientAccount', 'clientAccountOnboardingRequest', clientAccountOnboardingRequest);
1757
+ const localVarPath = `/client-accounts/onboarding`;
1767
1758
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1768
1759
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1769
1760
  let baseOptions;
1770
1761
  if (configuration) {
1771
1762
  baseOptions = configuration.baseOptions;
1772
1763
  }
1773
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1764
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1774
1765
  const localVarHeaderParameter = {};
1775
1766
  const localVarQueryParameter = {};
1776
- // authentication bearerAuth required
1767
+ // authentication clientAuth required
1777
1768
  // http bearer authentication required
1778
1769
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1770
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1779
1771
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1780
1772
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1781
1773
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1774
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clientAccountOnboardingRequest, localVarRequestOptions, configuration);
1782
1775
  return {
1783
1776
  url: (0, common_1.toPathString)(localVarUrlObj),
1784
1777
  options: localVarRequestOptions,
1785
1778
  };
1786
1779
  }),
1787
1780
  /**
1788
- * Récupère le taux de remplissage (infill) pour une période donnée
1789
- * @param {string} [startDate]
1790
- * @param {string} [endDate]
1781
+ * Route d\'inscription d\'un utilisateur client (publique)
1782
+ * @param {ClientRegisterRequestBody} clientRegisterRequestBody
1791
1783
  * @param {*} [options] Override http request option.
1792
1784
  * @throws {RequiredError}
1793
1785
  */
1794
- getInfillPercentagePerPeriod: (startDate_1, endDate_1, ...args_1) => __awaiter(this, [startDate_1, endDate_1, ...args_1], void 0, function* (startDate, endDate, options = {}) {
1795
- const localVarPath = `/api/club-analytics/infill-percentage`;
1786
+ registerClientUser: (clientRegisterRequestBody_1, ...args_1) => __awaiter(this, [clientRegisterRequestBody_1, ...args_1], void 0, function* (clientRegisterRequestBody, options = {}) {
1787
+ // verify required parameter 'clientRegisterRequestBody' is not null or undefined
1788
+ (0, common_1.assertParamExists)('registerClientUser', 'clientRegisterRequestBody', clientRegisterRequestBody);
1789
+ const localVarPath = `/client-accounts/register-client-user`;
1796
1790
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1797
1791
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1798
1792
  let baseOptions;
1799
1793
  if (configuration) {
1800
1794
  baseOptions = configuration.baseOptions;
1801
1795
  }
1802
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1796
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1803
1797
  const localVarHeaderParameter = {};
1804
1798
  const localVarQueryParameter = {};
1805
- // authentication bearerAuth required
1806
- // http bearer authentication required
1807
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1808
- if (startDate !== undefined) {
1809
- localVarQueryParameter['startDate'] = startDate;
1810
- }
1811
- if (endDate !== undefined) {
1812
- localVarQueryParameter['endDate'] = endDate;
1813
- }
1799
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1814
1800
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1815
1801
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1816
1802
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1803
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clientRegisterRequestBody, localVarRequestOptions, configuration);
1817
1804
  return {
1818
1805
  url: (0, common_1.toPathString)(localVarUrlObj),
1819
1806
  options: localVarRequestOptions,
1820
1807
  };
1821
1808
  }),
1809
+ };
1810
+ };
1811
+ exports.ClientAccountsApiAxiosParamCreator = ClientAccountsApiAxiosParamCreator;
1812
+ /**
1813
+ * ClientAccountsApi - functional programming interface
1814
+ * @export
1815
+ */
1816
+ const ClientAccountsApiFp = function (configuration) {
1817
+ const localVarAxiosParamCreator = (0, exports.ClientAccountsApiAxiosParamCreator)(configuration);
1818
+ return {
1822
1819
  /**
1823
- * Récupère le chiffre d\'affaires des 6 derniers mois
1820
+ * Informations de l\'utilisateur client authentifié (token clientAuth)
1824
1821
  * @param {*} [options] Override http request option.
1825
1822
  * @throws {RequiredError}
1826
1823
  */
1827
- getLastSixMonthsTurnover: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1828
- const localVarPath = `/api/club-analytics/last-six-months-turnover`;
1829
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1830
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1831
- let baseOptions;
1832
- if (configuration) {
1833
- baseOptions = configuration.baseOptions;
1834
- }
1835
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1836
- const localVarHeaderParameter = {};
1837
- const localVarQueryParameter = {};
1838
- // authentication bearerAuth required
1839
- // http bearer authentication required
1840
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1841
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1842
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1843
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1844
- return {
1845
- url: (0, common_1.toPathString)(localVarUrlObj),
1846
- options: localVarRequestOptions,
1847
- };
1848
- }),
1824
+ clientAuthMe(options) {
1825
+ return __awaiter(this, void 0, void 0, function* () {
1826
+ var _a, _b, _c;
1827
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.clientAuthMe(options);
1828
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1829
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientAccountsApi.clientAuthMe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1830
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1831
+ });
1832
+ },
1849
1833
  /**
1850
- * Récupère le chiffre d\'affaires mensuel
1851
- * @param {string} year
1852
- * @param {string} month
1834
+ * Récupère le compte client par son ID
1835
+ * @param {string} accountId L\'ID du compte client
1853
1836
  * @param {*} [options] Override http request option.
1854
1837
  * @throws {RequiredError}
1855
1838
  */
1856
- getMonthlyTurnOver: (year_1, month_1, ...args_1) => __awaiter(this, [year_1, month_1, ...args_1], void 0, function* (year, month, options = {}) {
1857
- // verify required parameter 'year' is not null or undefined
1858
- (0, common_1.assertParamExists)('getMonthlyTurnOver', 'year', year);
1859
- // verify required parameter 'month' is not null or undefined
1860
- (0, common_1.assertParamExists)('getMonthlyTurnOver', 'month', month);
1861
- const localVarPath = `/api/club-analytics/monthly-turnover`;
1862
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1863
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1864
- let baseOptions;
1865
- if (configuration) {
1866
- baseOptions = configuration.baseOptions;
1867
- }
1868
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1869
- const localVarHeaderParameter = {};
1870
- const localVarQueryParameter = {};
1871
- // authentication bearerAuth required
1872
- // http bearer authentication required
1873
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1874
- if (year !== undefined) {
1875
- localVarQueryParameter['year'] = year;
1876
- }
1877
- if (month !== undefined) {
1878
- localVarQueryParameter['month'] = month;
1879
- }
1880
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1881
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1882
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1883
- return {
1884
- url: (0, common_1.toPathString)(localVarUrlObj),
1885
- options: localVarRequestOptions,
1886
- };
1887
- }),
1839
+ getClientAccountById(accountId, options) {
1840
+ return __awaiter(this, void 0, void 0, function* () {
1841
+ var _a, _b, _c;
1842
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClientAccountById(accountId, options);
1843
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1844
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientAccountsApi.getClientAccountById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1845
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1846
+ });
1847
+ },
1888
1848
  /**
1889
- * Récupère le nombre d\'utilisateurs du club
1849
+ * Récupère l\'abonnement actif du compte client authentifié
1890
1850
  * @param {*} [options] Override http request option.
1891
1851
  * @throws {RequiredError}
1892
1852
  */
1893
- getNumberOfClubUsers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1894
- const localVarPath = `/api/club-analytics/users-count`;
1895
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1896
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1897
- let baseOptions;
1898
- if (configuration) {
1899
- baseOptions = configuration.baseOptions;
1900
- }
1901
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1902
- const localVarHeaderParameter = {};
1903
- const localVarQueryParameter = {};
1904
- // authentication bearerAuth required
1905
- // http bearer authentication required
1906
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1907
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1908
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1909
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1910
- return {
1911
- url: (0, common_1.toPathString)(localVarUrlObj),
1912
- options: localVarRequestOptions,
1913
- };
1914
- }),
1853
+ getMyActiveSubscription(options) {
1854
+ return __awaiter(this, void 0, void 0, function* () {
1855
+ var _a, _b, _c;
1856
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMyActiveSubscription(options);
1857
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1858
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientAccountsApi.getMyActiveSubscription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1859
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1860
+ });
1861
+ },
1915
1862
  /**
1916
- * Calcule le taux de fidélisation des joueurs
1863
+ * Récupère le compte client de l\'utilisateur authentifié
1917
1864
  * @param {*} [options] Override http request option.
1918
1865
  * @throws {RequiredError}
1919
1866
  */
1920
- getRetentionRate: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1921
- const localVarPath = `/api/club-analytics/retention-rate`;
1922
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1923
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1924
- let baseOptions;
1925
- if (configuration) {
1926
- baseOptions = configuration.baseOptions;
1927
- }
1928
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1929
- const localVarHeaderParameter = {};
1930
- const localVarQueryParameter = {};
1931
- // authentication bearerAuth required
1932
- // http bearer authentication required
1933
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1934
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1935
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1936
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1937
- return {
1938
- url: (0, common_1.toPathString)(localVarUrlObj),
1939
- options: localVarRequestOptions,
1940
- };
1941
- }),
1867
+ getMyClientAccount(options) {
1868
+ return __awaiter(this, void 0, void 0, function* () {
1869
+ var _a, _b, _c;
1870
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMyClientAccount(options);
1871
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1872
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientAccountsApi.getMyClientAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1873
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1874
+ });
1875
+ },
1942
1876
  /**
1943
- * Récupère le chiffre d\'affaires par sport
1877
+ * Récupère l\'historique des abonnements du compte client authentifié
1944
1878
  * @param {*} [options] Override http request option.
1945
1879
  * @throws {RequiredError}
1946
1880
  */
1947
- getRevenueBySport: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1948
- const localVarPath = `/api/club-analytics/revenue-by-sport`;
1949
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1950
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1951
- let baseOptions;
1952
- if (configuration) {
1953
- baseOptions = configuration.baseOptions;
1954
- }
1955
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1956
- const localVarHeaderParameter = {};
1957
- const localVarQueryParameter = {};
1958
- // authentication bearerAuth required
1959
- // http bearer authentication required
1960
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1961
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1962
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1963
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1964
- return {
1965
- url: (0, common_1.toPathString)(localVarUrlObj),
1966
- options: localVarRequestOptions,
1967
- };
1968
- }),
1881
+ getSubscriptionsHistory(options) {
1882
+ return __awaiter(this, void 0, void 0, function* () {
1883
+ var _a, _b, _c;
1884
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSubscriptionsHistory(options);
1885
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1886
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientAccountsApi.getSubscriptionsHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1887
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1888
+ });
1889
+ },
1969
1890
  /**
1970
- * Récupère les 10 prochaines réservations
1891
+ * Liste les prix Stripe disponibles pour les abonnements client
1892
+ * @param {*} [options] Override http request option.
1893
+ * @throws {RequiredError}
1894
+ */
1895
+ listAvailablePrices(options) {
1896
+ return __awaiter(this, void 0, void 0, function* () {
1897
+ var _a, _b, _c;
1898
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listAvailablePrices(options);
1899
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1900
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientAccountsApi.listAvailablePrices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1901
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1902
+ });
1903
+ },
1904
+ /**
1905
+ * Crée un nouveau compte client avec onboarding Stripe
1906
+ * @param {ClientAccountOnboardingRequest} clientAccountOnboardingRequest Les données du compte à créer
1907
+ * @param {*} [options] Override http request option.
1908
+ * @throws {RequiredError}
1909
+ */
1910
+ onboardClientAccount(clientAccountOnboardingRequest, options) {
1911
+ return __awaiter(this, void 0, void 0, function* () {
1912
+ var _a, _b, _c;
1913
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.onboardClientAccount(clientAccountOnboardingRequest, options);
1914
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1915
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientAccountsApi.onboardClientAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1916
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1917
+ });
1918
+ },
1919
+ /**
1920
+ * Route d\'inscription d\'un utilisateur client (publique)
1921
+ * @param {ClientRegisterRequestBody} clientRegisterRequestBody
1922
+ * @param {*} [options] Override http request option.
1923
+ * @throws {RequiredError}
1924
+ */
1925
+ registerClientUser(clientRegisterRequestBody, options) {
1926
+ return __awaiter(this, void 0, void 0, function* () {
1927
+ var _a, _b, _c;
1928
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.registerClientUser(clientRegisterRequestBody, options);
1929
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1930
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientAccountsApi.registerClientUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1931
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1932
+ });
1933
+ },
1934
+ };
1935
+ };
1936
+ exports.ClientAccountsApiFp = ClientAccountsApiFp;
1937
+ /**
1938
+ * ClientAccountsApi - factory interface
1939
+ * @export
1940
+ */
1941
+ const ClientAccountsApiFactory = function (configuration, basePath, axios) {
1942
+ const localVarFp = (0, exports.ClientAccountsApiFp)(configuration);
1943
+ return {
1944
+ /**
1945
+ * Informations de l\'utilisateur client authentifié (token clientAuth)
1946
+ * @param {*} [options] Override http request option.
1947
+ * @throws {RequiredError}
1948
+ */
1949
+ clientAuthMe(options) {
1950
+ return localVarFp.clientAuthMe(options).then((request) => request(axios, basePath));
1951
+ },
1952
+ /**
1953
+ * Récupère le compte client par son ID
1954
+ * @param {ClientAccountsApiGetClientAccountByIdRequest} requestParameters Request parameters.
1955
+ * @param {*} [options] Override http request option.
1956
+ * @throws {RequiredError}
1957
+ */
1958
+ getClientAccountById(requestParameters, options) {
1959
+ return localVarFp.getClientAccountById(requestParameters.accountId, options).then((request) => request(axios, basePath));
1960
+ },
1961
+ /**
1962
+ * Récupère l\'abonnement actif du compte client authentifié
1963
+ * @param {*} [options] Override http request option.
1964
+ * @throws {RequiredError}
1965
+ */
1966
+ getMyActiveSubscription(options) {
1967
+ return localVarFp.getMyActiveSubscription(options).then((request) => request(axios, basePath));
1968
+ },
1969
+ /**
1970
+ * Récupère le compte client de l\'utilisateur authentifié
1971
+ * @param {*} [options] Override http request option.
1972
+ * @throws {RequiredError}
1973
+ */
1974
+ getMyClientAccount(options) {
1975
+ return localVarFp.getMyClientAccount(options).then((request) => request(axios, basePath));
1976
+ },
1977
+ /**
1978
+ * Récupère l\'historique des abonnements du compte client authentifié
1979
+ * @param {*} [options] Override http request option.
1980
+ * @throws {RequiredError}
1981
+ */
1982
+ getSubscriptionsHistory(options) {
1983
+ return localVarFp.getSubscriptionsHistory(options).then((request) => request(axios, basePath));
1984
+ },
1985
+ /**
1986
+ * Liste les prix Stripe disponibles pour les abonnements client
1987
+ * @param {*} [options] Override http request option.
1988
+ * @throws {RequiredError}
1989
+ */
1990
+ listAvailablePrices(options) {
1991
+ return localVarFp.listAvailablePrices(options).then((request) => request(axios, basePath));
1992
+ },
1993
+ /**
1994
+ * Crée un nouveau compte client avec onboarding Stripe
1995
+ * @param {ClientAccountsApiOnboardClientAccountRequest} requestParameters Request parameters.
1996
+ * @param {*} [options] Override http request option.
1997
+ * @throws {RequiredError}
1998
+ */
1999
+ onboardClientAccount(requestParameters, options) {
2000
+ return localVarFp.onboardClientAccount(requestParameters.clientAccountOnboardingRequest, options).then((request) => request(axios, basePath));
2001
+ },
2002
+ /**
2003
+ * Route d\'inscription d\'un utilisateur client (publique)
2004
+ * @param {ClientAccountsApiRegisterClientUserRequest} requestParameters Request parameters.
2005
+ * @param {*} [options] Override http request option.
2006
+ * @throws {RequiredError}
2007
+ */
2008
+ registerClientUser(requestParameters, options) {
2009
+ return localVarFp.registerClientUser(requestParameters.clientRegisterRequestBody, options).then((request) => request(axios, basePath));
2010
+ },
2011
+ };
2012
+ };
2013
+ exports.ClientAccountsApiFactory = ClientAccountsApiFactory;
2014
+ /**
2015
+ * ClientAccountsApi - object-oriented interface
2016
+ * @export
2017
+ * @class ClientAccountsApi
2018
+ * @extends {BaseAPI}
2019
+ */
2020
+ class ClientAccountsApi extends base_1.BaseAPI {
2021
+ /**
2022
+ * Informations de l\'utilisateur client authentifié (token clientAuth)
2023
+ * @param {*} [options] Override http request option.
2024
+ * @throws {RequiredError}
2025
+ * @memberof ClientAccountsApi
2026
+ */
2027
+ clientAuthMe(options) {
2028
+ return (0, exports.ClientAccountsApiFp)(this.configuration).clientAuthMe(options).then((request) => request(this.axios, this.basePath));
2029
+ }
2030
+ /**
2031
+ * Récupère le compte client par son ID
2032
+ * @param {ClientAccountsApiGetClientAccountByIdRequest} requestParameters Request parameters.
2033
+ * @param {*} [options] Override http request option.
2034
+ * @throws {RequiredError}
2035
+ * @memberof ClientAccountsApi
2036
+ */
2037
+ getClientAccountById(requestParameters, options) {
2038
+ return (0, exports.ClientAccountsApiFp)(this.configuration).getClientAccountById(requestParameters.accountId, options).then((request) => request(this.axios, this.basePath));
2039
+ }
2040
+ /**
2041
+ * Récupère l\'abonnement actif du compte client authentifié
2042
+ * @param {*} [options] Override http request option.
2043
+ * @throws {RequiredError}
2044
+ * @memberof ClientAccountsApi
2045
+ */
2046
+ getMyActiveSubscription(options) {
2047
+ return (0, exports.ClientAccountsApiFp)(this.configuration).getMyActiveSubscription(options).then((request) => request(this.axios, this.basePath));
2048
+ }
2049
+ /**
2050
+ * Récupère le compte client de l\'utilisateur authentifié
2051
+ * @param {*} [options] Override http request option.
2052
+ * @throws {RequiredError}
2053
+ * @memberof ClientAccountsApi
2054
+ */
2055
+ getMyClientAccount(options) {
2056
+ return (0, exports.ClientAccountsApiFp)(this.configuration).getMyClientAccount(options).then((request) => request(this.axios, this.basePath));
2057
+ }
2058
+ /**
2059
+ * Récupère l\'historique des abonnements du compte client authentifié
2060
+ * @param {*} [options] Override http request option.
2061
+ * @throws {RequiredError}
2062
+ * @memberof ClientAccountsApi
2063
+ */
2064
+ getSubscriptionsHistory(options) {
2065
+ return (0, exports.ClientAccountsApiFp)(this.configuration).getSubscriptionsHistory(options).then((request) => request(this.axios, this.basePath));
2066
+ }
2067
+ /**
2068
+ * Liste les prix Stripe disponibles pour les abonnements client
2069
+ * @param {*} [options] Override http request option.
2070
+ * @throws {RequiredError}
2071
+ * @memberof ClientAccountsApi
2072
+ */
2073
+ listAvailablePrices(options) {
2074
+ return (0, exports.ClientAccountsApiFp)(this.configuration).listAvailablePrices(options).then((request) => request(this.axios, this.basePath));
2075
+ }
2076
+ /**
2077
+ * Crée un nouveau compte client avec onboarding Stripe
2078
+ * @param {ClientAccountsApiOnboardClientAccountRequest} requestParameters Request parameters.
2079
+ * @param {*} [options] Override http request option.
2080
+ * @throws {RequiredError}
2081
+ * @memberof ClientAccountsApi
2082
+ */
2083
+ onboardClientAccount(requestParameters, options) {
2084
+ return (0, exports.ClientAccountsApiFp)(this.configuration).onboardClientAccount(requestParameters.clientAccountOnboardingRequest, options).then((request) => request(this.axios, this.basePath));
2085
+ }
2086
+ /**
2087
+ * Route d\'inscription d\'un utilisateur client (publique)
2088
+ * @param {ClientAccountsApiRegisterClientUserRequest} requestParameters Request parameters.
2089
+ * @param {*} [options] Override http request option.
2090
+ * @throws {RequiredError}
2091
+ * @memberof ClientAccountsApi
2092
+ */
2093
+ registerClientUser(requestParameters, options) {
2094
+ return (0, exports.ClientAccountsApiFp)(this.configuration).registerClientUser(requestParameters.clientRegisterRequestBody, options).then((request) => request(this.axios, this.basePath));
2095
+ }
2096
+ }
2097
+ exports.ClientAccountsApi = ClientAccountsApi;
2098
+ /**
2099
+ * ClubAnalyticsApi - axios parameter creator
2100
+ * @export
2101
+ */
2102
+ const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
2103
+ return {
2104
+ /**
2105
+ * Récupère les clubs les plus aimés
2106
+ * @param {*} [options] Override http request option.
2107
+ * @throws {RequiredError}
2108
+ */
2109
+ getMostLikedClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2110
+ const localVarPath = `/api/club-analytics/most-liked-clubs`;
2111
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2112
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2113
+ let baseOptions;
2114
+ if (configuration) {
2115
+ baseOptions = configuration.baseOptions;
2116
+ }
2117
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2118
+ const localVarHeaderParameter = {};
2119
+ const localVarQueryParameter = {};
2120
+ // authentication bearerAuth required
2121
+ // http bearer authentication required
2122
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2123
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2124
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2125
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2126
+ return {
2127
+ url: (0, common_1.toPathString)(localVarUrlObj),
2128
+ options: localVarRequestOptions,
2129
+ };
2130
+ }),
2131
+ /**
2132
+ * Récupère les clubs populaires
2133
+ * @param {*} [options] Override http request option.
2134
+ * @throws {RequiredError}
2135
+ */
2136
+ getPopularClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2137
+ const localVarPath = `/api/club-analytics/popular-clubs`;
2138
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2139
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2140
+ let baseOptions;
2141
+ if (configuration) {
2142
+ baseOptions = configuration.baseOptions;
2143
+ }
2144
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2145
+ const localVarHeaderParameter = {};
2146
+ const localVarQueryParameter = {};
2147
+ // authentication bearerAuth required
2148
+ // http bearer authentication required
2149
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2150
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2151
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2152
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2153
+ return {
2154
+ url: (0, common_1.toPathString)(localVarUrlObj),
2155
+ options: localVarRequestOptions,
2156
+ };
2157
+ }),
2158
+ };
2159
+ };
2160
+ exports.ClubAnalyticsApiAxiosParamCreator = ClubAnalyticsApiAxiosParamCreator;
2161
+ /**
2162
+ * ClubAnalyticsApi - functional programming interface
2163
+ * @export
2164
+ */
2165
+ const ClubAnalyticsApiFp = function (configuration) {
2166
+ const localVarAxiosParamCreator = (0, exports.ClubAnalyticsApiAxiosParamCreator)(configuration);
2167
+ return {
2168
+ /**
2169
+ * Récupère les clubs les plus aimés
2170
+ * @param {*} [options] Override http request option.
2171
+ * @throws {RequiredError}
2172
+ */
2173
+ getMostLikedClub(options) {
2174
+ return __awaiter(this, void 0, void 0, function* () {
2175
+ var _a, _b, _c;
2176
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMostLikedClub(options);
2177
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2178
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsApi.getMostLikedClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2179
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2180
+ });
2181
+ },
2182
+ /**
2183
+ * Récupère les clubs populaires
2184
+ * @param {*} [options] Override http request option.
2185
+ * @throws {RequiredError}
2186
+ */
2187
+ getPopularClubs(options) {
2188
+ return __awaiter(this, void 0, void 0, function* () {
2189
+ var _a, _b, _c;
2190
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPopularClubs(options);
2191
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2192
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsApi.getPopularClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2193
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2194
+ });
2195
+ },
2196
+ };
2197
+ };
2198
+ exports.ClubAnalyticsApiFp = ClubAnalyticsApiFp;
2199
+ /**
2200
+ * ClubAnalyticsApi - factory interface
2201
+ * @export
2202
+ */
2203
+ const ClubAnalyticsApiFactory = function (configuration, basePath, axios) {
2204
+ const localVarFp = (0, exports.ClubAnalyticsApiFp)(configuration);
2205
+ return {
2206
+ /**
2207
+ * Récupère les clubs les plus aimés
2208
+ * @param {*} [options] Override http request option.
2209
+ * @throws {RequiredError}
2210
+ */
2211
+ getMostLikedClub(options) {
2212
+ return localVarFp.getMostLikedClub(options).then((request) => request(axios, basePath));
2213
+ },
2214
+ /**
2215
+ * Récupère les clubs populaires
2216
+ * @param {*} [options] Override http request option.
2217
+ * @throws {RequiredError}
2218
+ */
2219
+ getPopularClubs(options) {
2220
+ return localVarFp.getPopularClubs(options).then((request) => request(axios, basePath));
2221
+ },
2222
+ };
2223
+ };
2224
+ exports.ClubAnalyticsApiFactory = ClubAnalyticsApiFactory;
2225
+ /**
2226
+ * ClubAnalyticsApi - object-oriented interface
2227
+ * @export
2228
+ * @class ClubAnalyticsApi
2229
+ * @extends {BaseAPI}
2230
+ */
2231
+ class ClubAnalyticsApi extends base_1.BaseAPI {
2232
+ /**
2233
+ * Récupère les clubs les plus aimés
2234
+ * @param {*} [options] Override http request option.
2235
+ * @throws {RequiredError}
2236
+ * @memberof ClubAnalyticsApi
2237
+ */
2238
+ getMostLikedClub(options) {
2239
+ return (0, exports.ClubAnalyticsApiFp)(this.configuration).getMostLikedClub(options).then((request) => request(this.axios, this.basePath));
2240
+ }
2241
+ /**
2242
+ * Récupère les clubs populaires
2243
+ * @param {*} [options] Override http request option.
2244
+ * @throws {RequiredError}
2245
+ * @memberof ClubAnalyticsApi
2246
+ */
2247
+ getPopularClubs(options) {
2248
+ return (0, exports.ClubAnalyticsApiFp)(this.configuration).getPopularClubs(options).then((request) => request(this.axios, this.basePath));
2249
+ }
2250
+ }
2251
+ exports.ClubAnalyticsApi = ClubAnalyticsApi;
2252
+ /**
2253
+ * ClubAnalyticsStaffApi - axios parameter creator
2254
+ * @export
2255
+ */
2256
+ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
2257
+ return {
2258
+ /**
2259
+ * Récupère les analytics par sport
2260
+ * @param {string} sportId
2261
+ * @param {*} [options] Override http request option.
2262
+ * @throws {RequiredError}
2263
+ */
2264
+ getAnalyticsBySport: (sportId_1, ...args_1) => __awaiter(this, [sportId_1, ...args_1], void 0, function* (sportId, options = {}) {
2265
+ // verify required parameter 'sportId' is not null or undefined
2266
+ (0, common_1.assertParamExists)('getAnalyticsBySport', 'sportId', sportId);
2267
+ const localVarPath = `/api/club-analytics/sport/{sportId}/analytics`
2268
+ .replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)));
2269
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2270
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2271
+ let baseOptions;
2272
+ if (configuration) {
2273
+ baseOptions = configuration.baseOptions;
2274
+ }
2275
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2276
+ const localVarHeaderParameter = {};
2277
+ const localVarQueryParameter = {};
2278
+ // authentication bearerAuth required
2279
+ // http bearer authentication required
2280
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2281
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2282
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2283
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2284
+ return {
2285
+ url: (0, common_1.toPathString)(localVarUrlObj),
2286
+ options: localVarRequestOptions,
2287
+ };
2288
+ }),
2289
+ /**
2290
+ * Récupère la liste des joueurs du club
2291
+ * @param {*} [options] Override http request option.
2292
+ * @throws {RequiredError}
2293
+ */
2294
+ getClubPlayers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2295
+ const localVarPath = `/api/club-analytics/players`;
2296
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2297
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2298
+ let baseOptions;
2299
+ if (configuration) {
2300
+ baseOptions = configuration.baseOptions;
2301
+ }
2302
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2303
+ const localVarHeaderParameter = {};
2304
+ const localVarQueryParameter = {};
2305
+ // authentication bearerAuth required
2306
+ // http bearer authentication required
2307
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2308
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2309
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2310
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2311
+ return {
2312
+ url: (0, common_1.toPathString)(localVarUrlObj),
2313
+ options: localVarRequestOptions,
2314
+ };
2315
+ }),
2316
+ /**
2317
+ * Récupère le chiffre d\'affaires quotidien
2318
+ * @param {string} date
2319
+ * @param {*} [options] Override http request option.
2320
+ * @throws {RequiredError}
2321
+ */
2322
+ getDailyTurnOver: (date_1, ...args_1) => __awaiter(this, [date_1, ...args_1], void 0, function* (date, options = {}) {
2323
+ // verify required parameter 'date' is not null or undefined
2324
+ (0, common_1.assertParamExists)('getDailyTurnOver', 'date', date);
2325
+ const localVarPath = `/api/club-analytics/daily-turnover`;
2326
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2327
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2328
+ let baseOptions;
2329
+ if (configuration) {
2330
+ baseOptions = configuration.baseOptions;
2331
+ }
2332
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2333
+ const localVarHeaderParameter = {};
2334
+ const localVarQueryParameter = {};
2335
+ // authentication bearerAuth required
2336
+ // http bearer authentication required
2337
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2338
+ if (date !== undefined) {
2339
+ localVarQueryParameter['date'] = date;
2340
+ }
2341
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2342
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2343
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2344
+ return {
2345
+ url: (0, common_1.toPathString)(localVarUrlObj),
2346
+ options: localVarRequestOptions,
2347
+ };
2348
+ }),
2349
+ /**
2350
+ * Récupère les pourcentages par genre
2351
+ * @param {*} [options] Override http request option.
2352
+ * @throws {RequiredError}
2353
+ */
2354
+ getGenderPercentage: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2355
+ const localVarPath = `/api/club-analytics/gender-percentage`;
2356
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2357
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2358
+ let baseOptions;
2359
+ if (configuration) {
2360
+ baseOptions = configuration.baseOptions;
2361
+ }
2362
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2363
+ const localVarHeaderParameter = {};
2364
+ const localVarQueryParameter = {};
2365
+ // authentication bearerAuth required
2366
+ // http bearer authentication required
2367
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2368
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2369
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2370
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2371
+ return {
2372
+ url: (0, common_1.toPathString)(localVarUrlObj),
2373
+ options: localVarRequestOptions,
2374
+ };
2375
+ }),
2376
+ /**
2377
+ * Récupère le taux de remplissage (infill) pour une période donnée
2378
+ * @param {string} [startDate]
2379
+ * @param {string} [endDate]
1971
2380
  * @param {*} [options] Override http request option.
1972
2381
  * @throws {RequiredError}
1973
2382
  */
1974
- getTenNextBookings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1975
- const localVarPath = `/api/club-analytics/next-bookings`;
2383
+ getInfillPercentagePerPeriod: (startDate_1, endDate_1, ...args_1) => __awaiter(this, [startDate_1, endDate_1, ...args_1], void 0, function* (startDate, endDate, options = {}) {
2384
+ const localVarPath = `/api/club-analytics/infill-percentage`;
2385
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2386
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2387
+ let baseOptions;
2388
+ if (configuration) {
2389
+ baseOptions = configuration.baseOptions;
2390
+ }
2391
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2392
+ const localVarHeaderParameter = {};
2393
+ const localVarQueryParameter = {};
2394
+ // authentication bearerAuth required
2395
+ // http bearer authentication required
2396
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2397
+ if (startDate !== undefined) {
2398
+ localVarQueryParameter['startDate'] = startDate;
2399
+ }
2400
+ if (endDate !== undefined) {
2401
+ localVarQueryParameter['endDate'] = endDate;
2402
+ }
2403
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2404
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2405
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2406
+ return {
2407
+ url: (0, common_1.toPathString)(localVarUrlObj),
2408
+ options: localVarRequestOptions,
2409
+ };
2410
+ }),
2411
+ /**
2412
+ * Récupère le chiffre d\'affaires des 6 derniers mois
2413
+ * @param {*} [options] Override http request option.
2414
+ * @throws {RequiredError}
2415
+ */
2416
+ getLastSixMonthsTurnover: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2417
+ const localVarPath = `/api/club-analytics/last-six-months-turnover`;
2418
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2419
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2420
+ let baseOptions;
2421
+ if (configuration) {
2422
+ baseOptions = configuration.baseOptions;
2423
+ }
2424
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2425
+ const localVarHeaderParameter = {};
2426
+ const localVarQueryParameter = {};
2427
+ // authentication bearerAuth required
2428
+ // http bearer authentication required
2429
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2430
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2431
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2432
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2433
+ return {
2434
+ url: (0, common_1.toPathString)(localVarUrlObj),
2435
+ options: localVarRequestOptions,
2436
+ };
2437
+ }),
2438
+ /**
2439
+ * Récupère le chiffre d\'affaires mensuel
2440
+ * @param {string} year
2441
+ * @param {string} month
2442
+ * @param {*} [options] Override http request option.
2443
+ * @throws {RequiredError}
2444
+ */
2445
+ getMonthlyTurnOver: (year_1, month_1, ...args_1) => __awaiter(this, [year_1, month_1, ...args_1], void 0, function* (year, month, options = {}) {
2446
+ // verify required parameter 'year' is not null or undefined
2447
+ (0, common_1.assertParamExists)('getMonthlyTurnOver', 'year', year);
2448
+ // verify required parameter 'month' is not null or undefined
2449
+ (0, common_1.assertParamExists)('getMonthlyTurnOver', 'month', month);
2450
+ const localVarPath = `/api/club-analytics/monthly-turnover`;
2451
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2452
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2453
+ let baseOptions;
2454
+ if (configuration) {
2455
+ baseOptions = configuration.baseOptions;
2456
+ }
2457
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2458
+ const localVarHeaderParameter = {};
2459
+ const localVarQueryParameter = {};
2460
+ // authentication bearerAuth required
2461
+ // http bearer authentication required
2462
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2463
+ if (year !== undefined) {
2464
+ localVarQueryParameter['year'] = year;
2465
+ }
2466
+ if (month !== undefined) {
2467
+ localVarQueryParameter['month'] = month;
2468
+ }
2469
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2470
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2471
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2472
+ return {
2473
+ url: (0, common_1.toPathString)(localVarUrlObj),
2474
+ options: localVarRequestOptions,
2475
+ };
2476
+ }),
2477
+ /**
2478
+ * Récupère le nombre d\'utilisateurs du club
2479
+ * @param {*} [options] Override http request option.
2480
+ * @throws {RequiredError}
2481
+ */
2482
+ getNumberOfClubUsers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2483
+ const localVarPath = `/api/club-analytics/users-count`;
1976
2484
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1977
2485
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1978
2486
  let baseOptions;
@@ -1994,12 +2502,12 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1994
2502
  };
1995
2503
  }),
1996
2504
  /**
1997
- * Classement des terrains les plus réservés
2505
+ * Récupère les 10 prochaines réservations
1998
2506
  * @param {*} [options] Override http request option.
1999
2507
  * @throws {RequiredError}
2000
2508
  */
2001
- getTopCourtsByBookings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2002
- const localVarPath = `/api/club-analytics/top-courts`;
2509
+ getTenNextBookings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2510
+ const localVarPath = `/api/club-analytics/next-bookings`;
2003
2511
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2004
2512
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2005
2513
  let baseOptions;
@@ -2078,53 +2586,6 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
2078
2586
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2079
2587
  });
2080
2588
  },
2081
- /**
2082
- * Récupère les réservations d\'un joueur par son ID (à venir et passées)
2083
- * @param {string} playerId
2084
- * @param {number} [page]
2085
- * @param {number} [pageSize]
2086
- * @param {*} [options] Override http request option.
2087
- * @throws {RequiredError}
2088
- */
2089
- getClubPlayerBookingsById(playerId, page, pageSize, options) {
2090
- return __awaiter(this, void 0, void 0, function* () {
2091
- var _a, _b, _c;
2092
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerBookingsById(playerId, page, pageSize, options);
2093
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2094
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getClubPlayerBookingsById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2095
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2096
- });
2097
- },
2098
- /**
2099
- * Récupère les informations détaillées d\'un joueur par son ID
2100
- * @param {string} playerId
2101
- * @param {*} [options] Override http request option.
2102
- * @throws {RequiredError}
2103
- */
2104
- getClubPlayerById(playerId, options) {
2105
- return __awaiter(this, void 0, void 0, function* () {
2106
- var _a, _b, _c;
2107
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerById(playerId, options);
2108
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2109
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getClubPlayerById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2110
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2111
- });
2112
- },
2113
- /**
2114
- * Récupère les statistiques d\'un joueur pour le staff
2115
- * @param {string} playerId
2116
- * @param {*} [options] Override http request option.
2117
- * @throws {RequiredError}
2118
- */
2119
- getClubPlayerStatisticsById(playerId, options) {
2120
- return __awaiter(this, void 0, void 0, function* () {
2121
- var _a, _b, _c;
2122
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerStatisticsById(playerId, options);
2123
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2124
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getClubPlayerStatisticsById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2125
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2126
- });
2127
- },
2128
2589
  /**
2129
2590
  * Récupère la liste des joueurs du club
2130
2591
  * @param {*} [options] Override http request option.
@@ -2228,34 +2689,6 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
2228
2689
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2229
2690
  });
2230
2691
  },
2231
- /**
2232
- * Calcule le taux de fidélisation des joueurs
2233
- * @param {*} [options] Override http request option.
2234
- * @throws {RequiredError}
2235
- */
2236
- getRetentionRate(options) {
2237
- return __awaiter(this, void 0, void 0, function* () {
2238
- var _a, _b, _c;
2239
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getRetentionRate(options);
2240
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2241
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getRetentionRate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2242
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2243
- });
2244
- },
2245
- /**
2246
- * Récupère le chiffre d\'affaires par sport
2247
- * @param {*} [options] Override http request option.
2248
- * @throws {RequiredError}
2249
- */
2250
- getRevenueBySport(options) {
2251
- return __awaiter(this, void 0, void 0, function* () {
2252
- var _a, _b, _c;
2253
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getRevenueBySport(options);
2254
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2255
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getRevenueBySport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2256
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2257
- });
2258
- },
2259
2692
  /**
2260
2693
  * Récupère les 10 prochaines réservations
2261
2694
  * @param {*} [options] Override http request option.
@@ -2270,20 +2703,6 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
2270
2703
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2271
2704
  });
2272
2705
  },
2273
- /**
2274
- * Classement des terrains les plus réservés
2275
- * @param {*} [options] Override http request option.
2276
- * @throws {RequiredError}
2277
- */
2278
- getTopCourtsByBookings(options) {
2279
- return __awaiter(this, void 0, void 0, function* () {
2280
- var _a, _b, _c;
2281
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getTopCourtsByBookings(options);
2282
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2283
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getTopCourtsByBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2284
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2285
- });
2286
- },
2287
2706
  /**
2288
2707
  * Récupère le chiffre d\'affaires annuel avec détail mensuel
2289
2708
  * @param {string} year
@@ -2318,33 +2737,6 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
2318
2737
  getAnalyticsBySport(requestParameters, options) {
2319
2738
  return localVarFp.getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(axios, basePath));
2320
2739
  },
2321
- /**
2322
- * Récupère les réservations d\'un joueur par son ID (à venir et passées)
2323
- * @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
2324
- * @param {*} [options] Override http request option.
2325
- * @throws {RequiredError}
2326
- */
2327
- getClubPlayerBookingsById(requestParameters, options) {
2328
- return localVarFp.getClubPlayerBookingsById(requestParameters.playerId, requestParameters.page, requestParameters.pageSize, options).then((request) => request(axios, basePath));
2329
- },
2330
- /**
2331
- * Récupère les informations détaillées d\'un joueur par son ID
2332
- * @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
2333
- * @param {*} [options] Override http request option.
2334
- * @throws {RequiredError}
2335
- */
2336
- getClubPlayerById(requestParameters, options) {
2337
- return localVarFp.getClubPlayerById(requestParameters.playerId, options).then((request) => request(axios, basePath));
2338
- },
2339
- /**
2340
- * Récupère les statistiques d\'un joueur pour le staff
2341
- * @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
2342
- * @param {*} [options] Override http request option.
2343
- * @throws {RequiredError}
2344
- */
2345
- getClubPlayerStatisticsById(requestParameters, options) {
2346
- return localVarFp.getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(axios, basePath));
2347
- },
2348
2740
  /**
2349
2741
  * Récupère la liste des joueurs du club
2350
2742
  * @param {*} [options] Override http request option.
@@ -2404,22 +2796,6 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
2404
2796
  getNumberOfClubUsers(options) {
2405
2797
  return localVarFp.getNumberOfClubUsers(options).then((request) => request(axios, basePath));
2406
2798
  },
2407
- /**
2408
- * Calcule le taux de fidélisation des joueurs
2409
- * @param {*} [options] Override http request option.
2410
- * @throws {RequiredError}
2411
- */
2412
- getRetentionRate(options) {
2413
- return localVarFp.getRetentionRate(options).then((request) => request(axios, basePath));
2414
- },
2415
- /**
2416
- * Récupère le chiffre d\'affaires par sport
2417
- * @param {*} [options] Override http request option.
2418
- * @throws {RequiredError}
2419
- */
2420
- getRevenueBySport(options) {
2421
- return localVarFp.getRevenueBySport(options).then((request) => request(axios, basePath));
2422
- },
2423
2799
  /**
2424
2800
  * Récupère les 10 prochaines réservations
2425
2801
  * @param {*} [options] Override http request option.
@@ -2428,14 +2804,6 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
2428
2804
  getTenNextBookings(options) {
2429
2805
  return localVarFp.getTenNextBookings(options).then((request) => request(axios, basePath));
2430
2806
  },
2431
- /**
2432
- * Classement des terrains les plus réservés
2433
- * @param {*} [options] Override http request option.
2434
- * @throws {RequiredError}
2435
- */
2436
- getTopCourtsByBookings(options) {
2437
- return localVarFp.getTopCourtsByBookings(options).then((request) => request(axios, basePath));
2438
- },
2439
2807
  /**
2440
2808
  * Récupère le chiffre d\'affaires annuel avec détail mensuel
2441
2809
  * @param {ClubAnalyticsStaffApiGetYearlyTurnOverRequest} requestParameters Request parameters.
@@ -2444,56 +2812,26 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
2444
2812
  */
2445
2813
  getYearlyTurnOver(requestParameters, options) {
2446
2814
  return localVarFp.getYearlyTurnOver(requestParameters.year, options).then((request) => request(axios, basePath));
2447
- },
2448
- };
2449
- };
2450
- exports.ClubAnalyticsStaffApiFactory = ClubAnalyticsStaffApiFactory;
2451
- /**
2452
- * ClubAnalyticsStaffApi - object-oriented interface
2453
- * @export
2454
- * @class ClubAnalyticsStaffApi
2455
- * @extends {BaseAPI}
2456
- */
2457
- class ClubAnalyticsStaffApi extends base_1.BaseAPI {
2458
- /**
2459
- * Récupère les analytics par sport
2460
- * @param {ClubAnalyticsStaffApiGetAnalyticsBySportRequest} requestParameters Request parameters.
2461
- * @param {*} [options] Override http request option.
2462
- * @throws {RequiredError}
2463
- * @memberof ClubAnalyticsStaffApi
2464
- */
2465
- getAnalyticsBySport(requestParameters, options) {
2466
- return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
2467
- }
2468
- /**
2469
- * Récupère les réservations d\'un joueur par son ID (à venir et passées)
2470
- * @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
2471
- * @param {*} [options] Override http request option.
2472
- * @throws {RequiredError}
2473
- * @memberof ClubAnalyticsStaffApi
2474
- */
2475
- getClubPlayerBookingsById(requestParameters, options) {
2476
- return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubPlayerBookingsById(requestParameters.playerId, requestParameters.page, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
2477
- }
2478
- /**
2479
- * Récupère les informations détaillées d\'un joueur par son ID
2480
- * @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
2481
- * @param {*} [options] Override http request option.
2482
- * @throws {RequiredError}
2483
- * @memberof ClubAnalyticsStaffApi
2484
- */
2485
- getClubPlayerById(requestParameters, options) {
2486
- return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubPlayerById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
2487
- }
2815
+ },
2816
+ };
2817
+ };
2818
+ exports.ClubAnalyticsStaffApiFactory = ClubAnalyticsStaffApiFactory;
2819
+ /**
2820
+ * ClubAnalyticsStaffApi - object-oriented interface
2821
+ * @export
2822
+ * @class ClubAnalyticsStaffApi
2823
+ * @extends {BaseAPI}
2824
+ */
2825
+ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
2488
2826
  /**
2489
- * Récupère les statistiques d\'un joueur pour le staff
2490
- * @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
2827
+ * Récupère les analytics par sport
2828
+ * @param {ClubAnalyticsStaffApiGetAnalyticsBySportRequest} requestParameters Request parameters.
2491
2829
  * @param {*} [options] Override http request option.
2492
2830
  * @throws {RequiredError}
2493
2831
  * @memberof ClubAnalyticsStaffApi
2494
2832
  */
2495
- getClubPlayerStatisticsById(requestParameters, options) {
2496
- return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
2833
+ getAnalyticsBySport(requestParameters, options) {
2834
+ return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
2497
2835
  }
2498
2836
  /**
2499
2837
  * Récupère la liste des joueurs du club
@@ -2561,24 +2899,6 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
2561
2899
  getNumberOfClubUsers(options) {
2562
2900
  return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getNumberOfClubUsers(options).then((request) => request(this.axios, this.basePath));
2563
2901
  }
2564
- /**
2565
- * Calcule le taux de fidélisation des joueurs
2566
- * @param {*} [options] Override http request option.
2567
- * @throws {RequiredError}
2568
- * @memberof ClubAnalyticsStaffApi
2569
- */
2570
- getRetentionRate(options) {
2571
- return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getRetentionRate(options).then((request) => request(this.axios, this.basePath));
2572
- }
2573
- /**
2574
- * Récupère le chiffre d\'affaires par sport
2575
- * @param {*} [options] Override http request option.
2576
- * @throws {RequiredError}
2577
- * @memberof ClubAnalyticsStaffApi
2578
- */
2579
- getRevenueBySport(options) {
2580
- return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getRevenueBySport(options).then((request) => request(this.axios, this.basePath));
2581
- }
2582
2902
  /**
2583
2903
  * Récupère les 10 prochaines réservations
2584
2904
  * @param {*} [options] Override http request option.
@@ -2588,15 +2908,6 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
2588
2908
  getTenNextBookings(options) {
2589
2909
  return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getTenNextBookings(options).then((request) => request(this.axios, this.basePath));
2590
2910
  }
2591
- /**
2592
- * Classement des terrains les plus réservés
2593
- * @param {*} [options] Override http request option.
2594
- * @throws {RequiredError}
2595
- * @memberof ClubAnalyticsStaffApi
2596
- */
2597
- getTopCourtsByBookings(options) {
2598
- return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getTopCourtsByBookings(options).then((request) => request(this.axios, this.basePath));
2599
- }
2600
2911
  /**
2601
2912
  * Récupère le chiffre d\'affaires annuel avec détail mensuel
2602
2913
  * @param {ClubAnalyticsStaffApiGetYearlyTurnOverRequest} requestParameters Request parameters.
@@ -2799,372 +3110,115 @@ const ClubRolesManagerApiFactory = function (configuration, basePath, axios) {
2799
3110
  return localVarFp.deleteClubRole(requestParameters.id, options).then((request) => request(axios, basePath));
2800
3111
  },
2801
3112
  /**
2802
- * Met à jour un rôle de club
2803
- * @param {ClubRolesManagerApiUpdateClubRoleRequest} requestParameters Request parameters.
2804
- * @param {*} [options] Override http request option.
2805
- * @throws {RequiredError}
2806
- */
2807
- updateClubRole(requestParameters, options) {
2808
- return localVarFp.updateClubRole(requestParameters.id, requestParameters.updateClubRoleRequest, options).then((request) => request(axios, basePath));
2809
- },
2810
- };
2811
- };
2812
- exports.ClubRolesManagerApiFactory = ClubRolesManagerApiFactory;
2813
- /**
2814
- * ClubRolesManagerApi - object-oriented interface
2815
- * @export
2816
- * @class ClubRolesManagerApi
2817
- * @extends {BaseAPI}
2818
- */
2819
- class ClubRolesManagerApi extends base_1.BaseAPI {
2820
- /**
2821
- * Crée un rôle de club
2822
- * @param {ClubRolesManagerApiCreateClubRoleRequest} requestParameters Request parameters.
2823
- * @param {*} [options] Override http request option.
2824
- * @throws {RequiredError}
2825
- * @memberof ClubRolesManagerApi
2826
- */
2827
- createClubRole(requestParameters, options) {
2828
- return (0, exports.ClubRolesManagerApiFp)(this.configuration).createClubRole(requestParameters.createClubRoleRequest, options).then((request) => request(this.axios, this.basePath));
2829
- }
2830
- /**
2831
- * Supprime un rôle de club
2832
- * @param {ClubRolesManagerApiDeleteClubRoleRequest} requestParameters Request parameters.
2833
- * @param {*} [options] Override http request option.
2834
- * @throws {RequiredError}
2835
- * @memberof ClubRolesManagerApi
2836
- */
2837
- deleteClubRole(requestParameters, options) {
2838
- return (0, exports.ClubRolesManagerApiFp)(this.configuration).deleteClubRole(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
2839
- }
2840
- /**
2841
- * Met à jour un rôle de club
2842
- * @param {ClubRolesManagerApiUpdateClubRoleRequest} requestParameters Request parameters.
2843
- * @param {*} [options] Override http request option.
2844
- * @throws {RequiredError}
2845
- * @memberof ClubRolesManagerApi
2846
- */
2847
- updateClubRole(requestParameters, options) {
2848
- return (0, exports.ClubRolesManagerApiFp)(this.configuration).updateClubRole(requestParameters.id, requestParameters.updateClubRoleRequest, options).then((request) => request(this.axios, this.basePath));
2849
- }
2850
- }
2851
- exports.ClubRolesManagerApi = ClubRolesManagerApi;
2852
- /**
2853
- * ClubRolesStaffApi - axios parameter creator
2854
- * @export
2855
- */
2856
- const ClubRolesStaffApiAxiosParamCreator = function (configuration) {
2857
- return {
2858
- /**
2859
- * Récupère la liste des rôles d\'un club
2860
- * @param {*} [options] Override http request option.
2861
- * @throws {RequiredError}
2862
- */
2863
- getAllClubRoles: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2864
- const localVarPath = `/api/club-roles`;
2865
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2866
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2867
- let baseOptions;
2868
- if (configuration) {
2869
- baseOptions = configuration.baseOptions;
2870
- }
2871
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2872
- const localVarHeaderParameter = {};
2873
- const localVarQueryParameter = {};
2874
- // authentication bearerAuth required
2875
- // http bearer authentication required
2876
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2877
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2878
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2879
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2880
- return {
2881
- url: (0, common_1.toPathString)(localVarUrlObj),
2882
- options: localVarRequestOptions,
2883
- };
2884
- }),
2885
- /**
2886
- * Récupère un rôle de club par ID
2887
- * @param {string} id
2888
- * @param {*} [options] Override http request option.
2889
- * @throws {RequiredError}
2890
- */
2891
- getClubRoleById: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
2892
- // verify required parameter 'id' is not null or undefined
2893
- (0, common_1.assertParamExists)('getClubRoleById', 'id', id);
2894
- const localVarPath = `/api/club-roles/{id}`
2895
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2896
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2897
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2898
- let baseOptions;
2899
- if (configuration) {
2900
- baseOptions = configuration.baseOptions;
2901
- }
2902
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2903
- const localVarHeaderParameter = {};
2904
- const localVarQueryParameter = {};
2905
- // authentication bearerAuth required
2906
- // http bearer authentication required
2907
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2908
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2909
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2910
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2911
- return {
2912
- url: (0, common_1.toPathString)(localVarUrlObj),
2913
- options: localVarRequestOptions,
2914
- };
2915
- }),
2916
- /**
2917
- *
2918
- * @param {*} [options] Override http request option.
2919
- * @throws {RequiredError}
2920
- */
2921
- getUserRolesInClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2922
- const localVarPath = `/api/club-roles/me/roles`;
2923
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2924
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2925
- let baseOptions;
2926
- if (configuration) {
2927
- baseOptions = configuration.baseOptions;
2928
- }
2929
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2930
- const localVarHeaderParameter = {};
2931
- const localVarQueryParameter = {};
2932
- // authentication bearerAuth required
2933
- // http bearer authentication required
2934
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2935
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2936
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2937
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2938
- return {
2939
- url: (0, common_1.toPathString)(localVarUrlObj),
2940
- options: localVarRequestOptions,
2941
- };
2942
- }),
2943
- };
2944
- };
2945
- exports.ClubRolesStaffApiAxiosParamCreator = ClubRolesStaffApiAxiosParamCreator;
2946
- /**
2947
- * ClubRolesStaffApi - functional programming interface
2948
- * @export
2949
- */
2950
- const ClubRolesStaffApiFp = function (configuration) {
2951
- const localVarAxiosParamCreator = (0, exports.ClubRolesStaffApiAxiosParamCreator)(configuration);
2952
- return {
2953
- /**
2954
- * Récupère la liste des rôles d\'un club
2955
- * @param {*} [options] Override http request option.
2956
- * @throws {RequiredError}
2957
- */
2958
- getAllClubRoles(options) {
2959
- return __awaiter(this, void 0, void 0, function* () {
2960
- var _a, _b, _c;
2961
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllClubRoles(options);
2962
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2963
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubRolesStaffApi.getAllClubRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2964
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2965
- });
2966
- },
2967
- /**
2968
- * Récupère un rôle de club par ID
2969
- * @param {string} id
2970
- * @param {*} [options] Override http request option.
2971
- * @throws {RequiredError}
2972
- */
2973
- getClubRoleById(id, options) {
2974
- return __awaiter(this, void 0, void 0, function* () {
2975
- var _a, _b, _c;
2976
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubRoleById(id, options);
2977
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2978
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubRolesStaffApi.getClubRoleById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2979
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2980
- });
2981
- },
2982
- /**
2983
- *
2984
- * @param {*} [options] Override http request option.
2985
- * @throws {RequiredError}
2986
- */
2987
- getUserRolesInClubs(options) {
2988
- return __awaiter(this, void 0, void 0, function* () {
2989
- var _a, _b, _c;
2990
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserRolesInClubs(options);
2991
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2992
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubRolesStaffApi.getUserRolesInClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2993
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2994
- });
2995
- },
2996
- };
2997
- };
2998
- exports.ClubRolesStaffApiFp = ClubRolesStaffApiFp;
2999
- /**
3000
- * ClubRolesStaffApi - factory interface
3001
- * @export
3002
- */
3003
- const ClubRolesStaffApiFactory = function (configuration, basePath, axios) {
3004
- const localVarFp = (0, exports.ClubRolesStaffApiFp)(configuration);
3005
- return {
3006
- /**
3007
- * Récupère la liste des rôles d\'un club
3008
- * @param {*} [options] Override http request option.
3009
- * @throws {RequiredError}
3010
- */
3011
- getAllClubRoles(options) {
3012
- return localVarFp.getAllClubRoles(options).then((request) => request(axios, basePath));
3013
- },
3014
- /**
3015
- * Récupère un rôle de club par ID
3016
- * @param {ClubRolesStaffApiGetClubRoleByIdRequest} requestParameters Request parameters.
3017
- * @param {*} [options] Override http request option.
3018
- * @throws {RequiredError}
3019
- */
3020
- getClubRoleById(requestParameters, options) {
3021
- return localVarFp.getClubRoleById(requestParameters.id, options).then((request) => request(axios, basePath));
3022
- },
3023
- /**
3024
- *
3113
+ * Met à jour un rôle de club
3114
+ * @param {ClubRolesManagerApiUpdateClubRoleRequest} requestParameters Request parameters.
3025
3115
  * @param {*} [options] Override http request option.
3026
3116
  * @throws {RequiredError}
3027
3117
  */
3028
- getUserRolesInClubs(options) {
3029
- return localVarFp.getUserRolesInClubs(options).then((request) => request(axios, basePath));
3118
+ updateClubRole(requestParameters, options) {
3119
+ return localVarFp.updateClubRole(requestParameters.id, requestParameters.updateClubRoleRequest, options).then((request) => request(axios, basePath));
3030
3120
  },
3031
3121
  };
3032
3122
  };
3033
- exports.ClubRolesStaffApiFactory = ClubRolesStaffApiFactory;
3123
+ exports.ClubRolesManagerApiFactory = ClubRolesManagerApiFactory;
3034
3124
  /**
3035
- * ClubRolesStaffApi - object-oriented interface
3125
+ * ClubRolesManagerApi - object-oriented interface
3036
3126
  * @export
3037
- * @class ClubRolesStaffApi
3127
+ * @class ClubRolesManagerApi
3038
3128
  * @extends {BaseAPI}
3039
3129
  */
3040
- class ClubRolesStaffApi extends base_1.BaseAPI {
3130
+ class ClubRolesManagerApi extends base_1.BaseAPI {
3041
3131
  /**
3042
- * Récupère la liste des rôles d\'un club
3132
+ * Crée un rôle de club
3133
+ * @param {ClubRolesManagerApiCreateClubRoleRequest} requestParameters Request parameters.
3043
3134
  * @param {*} [options] Override http request option.
3044
3135
  * @throws {RequiredError}
3045
- * @memberof ClubRolesStaffApi
3136
+ * @memberof ClubRolesManagerApi
3046
3137
  */
3047
- getAllClubRoles(options) {
3048
- return (0, exports.ClubRolesStaffApiFp)(this.configuration).getAllClubRoles(options).then((request) => request(this.axios, this.basePath));
3138
+ createClubRole(requestParameters, options) {
3139
+ return (0, exports.ClubRolesManagerApiFp)(this.configuration).createClubRole(requestParameters.createClubRoleRequest, options).then((request) => request(this.axios, this.basePath));
3049
3140
  }
3050
3141
  /**
3051
- * Récupère un rôle de club par ID
3052
- * @param {ClubRolesStaffApiGetClubRoleByIdRequest} requestParameters Request parameters.
3142
+ * Supprime un rôle de club
3143
+ * @param {ClubRolesManagerApiDeleteClubRoleRequest} requestParameters Request parameters.
3053
3144
  * @param {*} [options] Override http request option.
3054
3145
  * @throws {RequiredError}
3055
- * @memberof ClubRolesStaffApi
3146
+ * @memberof ClubRolesManagerApi
3056
3147
  */
3057
- getClubRoleById(requestParameters, options) {
3058
- return (0, exports.ClubRolesStaffApiFp)(this.configuration).getClubRoleById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3148
+ deleteClubRole(requestParameters, options) {
3149
+ return (0, exports.ClubRolesManagerApiFp)(this.configuration).deleteClubRole(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3059
3150
  }
3060
3151
  /**
3061
- *
3152
+ * Met à jour un rôle de club
3153
+ * @param {ClubRolesManagerApiUpdateClubRoleRequest} requestParameters Request parameters.
3062
3154
  * @param {*} [options] Override http request option.
3063
3155
  * @throws {RequiredError}
3064
- * @memberof ClubRolesStaffApi
3156
+ * @memberof ClubRolesManagerApi
3065
3157
  */
3066
- getUserRolesInClubs(options) {
3067
- return (0, exports.ClubRolesStaffApiFp)(this.configuration).getUserRolesInClubs(options).then((request) => request(this.axios, this.basePath));
3158
+ updateClubRole(requestParameters, options) {
3159
+ return (0, exports.ClubRolesManagerApiFp)(this.configuration).updateClubRole(requestParameters.id, requestParameters.updateClubRoleRequest, options).then((request) => request(this.axios, this.basePath));
3068
3160
  }
3069
3161
  }
3070
- exports.ClubRolesStaffApi = ClubRolesStaffApi;
3162
+ exports.ClubRolesManagerApi = ClubRolesManagerApi;
3071
3163
  /**
3072
- * ClubSettingsManagerApi - axios parameter creator
3164
+ * ClubRolesStaffApi - axios parameter creator
3073
3165
  * @export
3074
3166
  */
3075
- const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
3167
+ const ClubRolesStaffApiAxiosParamCreator = function (configuration) {
3076
3168
  return {
3077
3169
  /**
3078
- *
3079
- * @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
3080
- * @param {*} [options] Override http request option.
3081
- * @throws {RequiredError}
3082
- */
3083
- updateClubGeneralSettings: (updateClubGeneralSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubGeneralSettingsRequest_1, ...args_1], void 0, function* (updateClubGeneralSettingsRequest, options = {}) {
3084
- // verify required parameter 'updateClubGeneralSettingsRequest' is not null or undefined
3085
- (0, common_1.assertParamExists)('updateClubGeneralSettings', 'updateClubGeneralSettingsRequest', updateClubGeneralSettingsRequest);
3086
- const localVarPath = `/api/club-settings/settings/general`;
3087
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3088
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3089
- let baseOptions;
3090
- if (configuration) {
3091
- baseOptions = configuration.baseOptions;
3092
- }
3093
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
3094
- const localVarHeaderParameter = {};
3095
- const localVarQueryParameter = {};
3096
- // authentication bearerAuth required
3097
- // http bearer authentication required
3098
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3099
- localVarHeaderParameter['Content-Type'] = 'application/json';
3100
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3101
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3102
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3103
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubGeneralSettingsRequest, localVarRequestOptions, configuration);
3104
- return {
3105
- url: (0, common_1.toPathString)(localVarUrlObj),
3106
- options: localVarRequestOptions,
3107
- };
3108
- }),
3109
- /**
3110
- *
3111
- * @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
3170
+ * Récupère la liste des rôles d\'un club
3112
3171
  * @param {*} [options] Override http request option.
3113
3172
  * @throws {RequiredError}
3114
3173
  */
3115
- updateHoursSettings: (updateClubHoursSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubHoursSettingsRequest_1, ...args_1], void 0, function* (updateClubHoursSettingsRequest, options = {}) {
3116
- // verify required parameter 'updateClubHoursSettingsRequest' is not null or undefined
3117
- (0, common_1.assertParamExists)('updateHoursSettings', 'updateClubHoursSettingsRequest', updateClubHoursSettingsRequest);
3118
- const localVarPath = `/api/club-settings/hours`;
3174
+ getAllClubRoles: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3175
+ const localVarPath = `/api/club-roles`;
3119
3176
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3120
3177
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3121
3178
  let baseOptions;
3122
3179
  if (configuration) {
3123
3180
  baseOptions = configuration.baseOptions;
3124
3181
  }
3125
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
3182
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3126
3183
  const localVarHeaderParameter = {};
3127
3184
  const localVarQueryParameter = {};
3128
3185
  // authentication bearerAuth required
3129
3186
  // http bearer authentication required
3130
3187
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3131
- localVarHeaderParameter['Content-Type'] = 'application/json';
3132
3188
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3133
3189
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3134
3190
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3135
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubHoursSettingsRequest, localVarRequestOptions, configuration);
3136
3191
  return {
3137
3192
  url: (0, common_1.toPathString)(localVarUrlObj),
3138
3193
  options: localVarRequestOptions,
3139
3194
  };
3140
3195
  }),
3141
3196
  /**
3142
- *
3143
- * @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
3197
+ * Récupère un rôle de club par ID
3198
+ * @param {string} id
3144
3199
  * @param {*} [options] Override http request option.
3145
3200
  * @throws {RequiredError}
3146
3201
  */
3147
- updatePresentationSettings: (clubPresentationSettingsResponse_1, ...args_1) => __awaiter(this, [clubPresentationSettingsResponse_1, ...args_1], void 0, function* (clubPresentationSettingsResponse, options = {}) {
3148
- // verify required parameter 'clubPresentationSettingsResponse' is not null or undefined
3149
- (0, common_1.assertParamExists)('updatePresentationSettings', 'clubPresentationSettingsResponse', clubPresentationSettingsResponse);
3150
- const localVarPath = `/api/club-settings/presentation`;
3202
+ getClubRoleById: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
3203
+ // verify required parameter 'id' is not null or undefined
3204
+ (0, common_1.assertParamExists)('getClubRoleById', 'id', id);
3205
+ const localVarPath = `/api/club-roles/{id}`
3206
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3151
3207
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3152
3208
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3153
3209
  let baseOptions;
3154
3210
  if (configuration) {
3155
3211
  baseOptions = configuration.baseOptions;
3156
3212
  }
3157
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
3213
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3158
3214
  const localVarHeaderParameter = {};
3159
3215
  const localVarQueryParameter = {};
3160
3216
  // authentication bearerAuth required
3161
3217
  // http bearer authentication required
3162
3218
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3163
- localVarHeaderParameter['Content-Type'] = 'application/json';
3164
3219
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3165
3220
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3166
3221
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3167
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clubPresentationSettingsResponse, localVarRequestOptions, configuration);
3168
3222
  return {
3169
3223
  url: (0, common_1.toPathString)(localVarUrlObj),
3170
3224
  options: localVarRequestOptions,
@@ -3172,31 +3226,26 @@ const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
3172
3226
  }),
3173
3227
  /**
3174
3228
  *
3175
- * @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
3176
3229
  * @param {*} [options] Override http request option.
3177
3230
  * @throws {RequiredError}
3178
3231
  */
3179
- updateReservationSettings: (updateClubReservationSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubReservationSettingsRequest_1, ...args_1], void 0, function* (updateClubReservationSettingsRequest, options = {}) {
3180
- // verify required parameter 'updateClubReservationSettingsRequest' is not null or undefined
3181
- (0, common_1.assertParamExists)('updateReservationSettings', 'updateClubReservationSettingsRequest', updateClubReservationSettingsRequest);
3182
- const localVarPath = `/api/club-settings/reservation`;
3232
+ getUserRolesInClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3233
+ const localVarPath = `/api/club-roles/me/roles`;
3183
3234
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3184
3235
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3185
3236
  let baseOptions;
3186
3237
  if (configuration) {
3187
3238
  baseOptions = configuration.baseOptions;
3188
3239
  }
3189
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
3240
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3190
3241
  const localVarHeaderParameter = {};
3191
3242
  const localVarQueryParameter = {};
3192
3243
  // authentication bearerAuth required
3193
3244
  // http bearer authentication required
3194
3245
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3195
- localVarHeaderParameter['Content-Type'] = 'application/json';
3196
3246
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3197
3247
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3198
3248
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3199
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubReservationSettingsRequest, localVarRequestOptions, configuration);
3200
3249
  return {
3201
3250
  url: (0, common_1.toPathString)(localVarUrlObj),
3202
3251
  options: localVarRequestOptions,
@@ -3204,219 +3253,188 @@ const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
3204
3253
  }),
3205
3254
  };
3206
3255
  };
3207
- exports.ClubSettingsManagerApiAxiosParamCreator = ClubSettingsManagerApiAxiosParamCreator;
3256
+ exports.ClubRolesStaffApiAxiosParamCreator = ClubRolesStaffApiAxiosParamCreator;
3208
3257
  /**
3209
- * ClubSettingsManagerApi - functional programming interface
3258
+ * ClubRolesStaffApi - functional programming interface
3210
3259
  * @export
3211
3260
  */
3212
- const ClubSettingsManagerApiFp = function (configuration) {
3213
- const localVarAxiosParamCreator = (0, exports.ClubSettingsManagerApiAxiosParamCreator)(configuration);
3261
+ const ClubRolesStaffApiFp = function (configuration) {
3262
+ const localVarAxiosParamCreator = (0, exports.ClubRolesStaffApiAxiosParamCreator)(configuration);
3214
3263
  return {
3215
3264
  /**
3216
- *
3217
- * @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
3218
- * @param {*} [options] Override http request option.
3219
- * @throws {RequiredError}
3220
- */
3221
- updateClubGeneralSettings(updateClubGeneralSettingsRequest, options) {
3222
- return __awaiter(this, void 0, void 0, function* () {
3223
- var _a, _b, _c;
3224
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubGeneralSettings(updateClubGeneralSettingsRequest, options);
3225
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3226
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.updateClubGeneralSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3227
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3228
- });
3229
- },
3230
- /**
3231
- *
3232
- * @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
3265
+ * Récupère la liste des rôles d\'un club
3233
3266
  * @param {*} [options] Override http request option.
3234
3267
  * @throws {RequiredError}
3235
3268
  */
3236
- updateHoursSettings(updateClubHoursSettingsRequest, options) {
3269
+ getAllClubRoles(options) {
3237
3270
  return __awaiter(this, void 0, void 0, function* () {
3238
3271
  var _a, _b, _c;
3239
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateHoursSettings(updateClubHoursSettingsRequest, options);
3272
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllClubRoles(options);
3240
3273
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3241
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.updateHoursSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3274
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubRolesStaffApi.getAllClubRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3242
3275
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3243
3276
  });
3244
3277
  },
3245
3278
  /**
3246
- *
3247
- * @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
3279
+ * Récupère un rôle de club par ID
3280
+ * @param {string} id
3248
3281
  * @param {*} [options] Override http request option.
3249
3282
  * @throws {RequiredError}
3250
3283
  */
3251
- updatePresentationSettings(clubPresentationSettingsResponse, options) {
3284
+ getClubRoleById(id, options) {
3252
3285
  return __awaiter(this, void 0, void 0, function* () {
3253
3286
  var _a, _b, _c;
3254
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePresentationSettings(clubPresentationSettingsResponse, options);
3287
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubRoleById(id, options);
3255
3288
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3256
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.updatePresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3289
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubRolesStaffApi.getClubRoleById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3257
3290
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3258
3291
  });
3259
3292
  },
3260
3293
  /**
3261
3294
  *
3262
- * @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
3263
3295
  * @param {*} [options] Override http request option.
3264
3296
  * @throws {RequiredError}
3265
3297
  */
3266
- updateReservationSettings(updateClubReservationSettingsRequest, options) {
3298
+ getUserRolesInClubs(options) {
3267
3299
  return __awaiter(this, void 0, void 0, function* () {
3268
3300
  var _a, _b, _c;
3269
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateReservationSettings(updateClubReservationSettingsRequest, options);
3301
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserRolesInClubs(options);
3270
3302
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3271
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.updateReservationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3303
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubRolesStaffApi.getUserRolesInClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3272
3304
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3273
3305
  });
3274
3306
  },
3275
3307
  };
3276
3308
  };
3277
- exports.ClubSettingsManagerApiFp = ClubSettingsManagerApiFp;
3309
+ exports.ClubRolesStaffApiFp = ClubRolesStaffApiFp;
3278
3310
  /**
3279
- * ClubSettingsManagerApi - factory interface
3311
+ * ClubRolesStaffApi - factory interface
3280
3312
  * @export
3281
3313
  */
3282
- const ClubSettingsManagerApiFactory = function (configuration, basePath, axios) {
3283
- const localVarFp = (0, exports.ClubSettingsManagerApiFp)(configuration);
3314
+ const ClubRolesStaffApiFactory = function (configuration, basePath, axios) {
3315
+ const localVarFp = (0, exports.ClubRolesStaffApiFp)(configuration);
3284
3316
  return {
3285
3317
  /**
3286
- *
3287
- * @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
3288
- * @param {*} [options] Override http request option.
3289
- * @throws {RequiredError}
3290
- */
3291
- updateClubGeneralSettings(requestParameters, options) {
3292
- return localVarFp.updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(axios, basePath));
3293
- },
3294
- /**
3295
- *
3296
- * @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
3318
+ * Récupère la liste des rôles d\'un club
3297
3319
  * @param {*} [options] Override http request option.
3298
3320
  * @throws {RequiredError}
3299
3321
  */
3300
- updateHoursSettings(requestParameters, options) {
3301
- return localVarFp.updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(axios, basePath));
3322
+ getAllClubRoles(options) {
3323
+ return localVarFp.getAllClubRoles(options).then((request) => request(axios, basePath));
3302
3324
  },
3303
3325
  /**
3304
- *
3305
- * @param {ClubSettingsManagerApiUpdatePresentationSettingsRequest} requestParameters Request parameters.
3326
+ * Récupère un rôle de club par ID
3327
+ * @param {ClubRolesStaffApiGetClubRoleByIdRequest} requestParameters Request parameters.
3306
3328
  * @param {*} [options] Override http request option.
3307
3329
  * @throws {RequiredError}
3308
3330
  */
3309
- updatePresentationSettings(requestParameters, options) {
3310
- return localVarFp.updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(axios, basePath));
3331
+ getClubRoleById(requestParameters, options) {
3332
+ return localVarFp.getClubRoleById(requestParameters.id, options).then((request) => request(axios, basePath));
3311
3333
  },
3312
3334
  /**
3313
3335
  *
3314
- * @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
3315
3336
  * @param {*} [options] Override http request option.
3316
3337
  * @throws {RequiredError}
3317
3338
  */
3318
- updateReservationSettings(requestParameters, options) {
3319
- return localVarFp.updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(axios, basePath));
3339
+ getUserRolesInClubs(options) {
3340
+ return localVarFp.getUserRolesInClubs(options).then((request) => request(axios, basePath));
3320
3341
  },
3321
3342
  };
3322
3343
  };
3323
- exports.ClubSettingsManagerApiFactory = ClubSettingsManagerApiFactory;
3344
+ exports.ClubRolesStaffApiFactory = ClubRolesStaffApiFactory;
3324
3345
  /**
3325
- * ClubSettingsManagerApi - object-oriented interface
3346
+ * ClubRolesStaffApi - object-oriented interface
3326
3347
  * @export
3327
- * @class ClubSettingsManagerApi
3348
+ * @class ClubRolesStaffApi
3328
3349
  * @extends {BaseAPI}
3329
3350
  */
3330
- class ClubSettingsManagerApi extends base_1.BaseAPI {
3331
- /**
3332
- *
3333
- * @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
3334
- * @param {*} [options] Override http request option.
3335
- * @throws {RequiredError}
3336
- * @memberof ClubSettingsManagerApi
3337
- */
3338
- updateClubGeneralSettings(requestParameters, options) {
3339
- return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(this.axios, this.basePath));
3340
- }
3351
+ class ClubRolesStaffApi extends base_1.BaseAPI {
3341
3352
  /**
3342
- *
3343
- * @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
3353
+ * Récupère la liste des rôles d\'un club
3344
3354
  * @param {*} [options] Override http request option.
3345
3355
  * @throws {RequiredError}
3346
- * @memberof ClubSettingsManagerApi
3356
+ * @memberof ClubRolesStaffApi
3347
3357
  */
3348
- updateHoursSettings(requestParameters, options) {
3349
- return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(this.axios, this.basePath));
3358
+ getAllClubRoles(options) {
3359
+ return (0, exports.ClubRolesStaffApiFp)(this.configuration).getAllClubRoles(options).then((request) => request(this.axios, this.basePath));
3350
3360
  }
3351
3361
  /**
3352
- *
3353
- * @param {ClubSettingsManagerApiUpdatePresentationSettingsRequest} requestParameters Request parameters.
3362
+ * Récupère un rôle de club par ID
3363
+ * @param {ClubRolesStaffApiGetClubRoleByIdRequest} requestParameters Request parameters.
3354
3364
  * @param {*} [options] Override http request option.
3355
3365
  * @throws {RequiredError}
3356
- * @memberof ClubSettingsManagerApi
3366
+ * @memberof ClubRolesStaffApi
3357
3367
  */
3358
- updatePresentationSettings(requestParameters, options) {
3359
- return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(this.axios, this.basePath));
3368
+ getClubRoleById(requestParameters, options) {
3369
+ return (0, exports.ClubRolesStaffApiFp)(this.configuration).getClubRoleById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3360
3370
  }
3361
3371
  /**
3362
3372
  *
3363
- * @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
3364
3373
  * @param {*} [options] Override http request option.
3365
3374
  * @throws {RequiredError}
3366
- * @memberof ClubSettingsManagerApi
3375
+ * @memberof ClubRolesStaffApi
3367
3376
  */
3368
- updateReservationSettings(requestParameters, options) {
3369
- return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
3377
+ getUserRolesInClubs(options) {
3378
+ return (0, exports.ClubRolesStaffApiFp)(this.configuration).getUserRolesInClubs(options).then((request) => request(this.axios, this.basePath));
3370
3379
  }
3371
3380
  }
3372
- exports.ClubSettingsManagerApi = ClubSettingsManagerApi;
3381
+ exports.ClubRolesStaffApi = ClubRolesStaffApi;
3373
3382
  /**
3374
- * ClubSettingsStaffApi - axios parameter creator
3383
+ * ClubSettingsManagerApi - axios parameter creator
3375
3384
  * @export
3376
3385
  */
3377
- const ClubSettingsStaffApiAxiosParamCreator = function (configuration) {
3386
+ const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
3378
3387
  return {
3379
3388
  /**
3380
- *
3389
+ * Crée les paramètres d\'un club
3390
+ * @param {string} clubId
3391
+ * @param {CreateClubSettingsRequest} createClubSettingsRequest
3381
3392
  * @param {*} [options] Override http request option.
3382
3393
  * @throws {RequiredError}
3383
3394
  */
3384
- getClubGeneralSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3385
- const localVarPath = `/api/club-settings/settings/general`;
3395
+ createClubSettings: (clubId_1, createClubSettingsRequest_1, ...args_1) => __awaiter(this, [clubId_1, createClubSettingsRequest_1, ...args_1], void 0, function* (clubId, createClubSettingsRequest, options = {}) {
3396
+ // verify required parameter 'clubId' is not null or undefined
3397
+ (0, common_1.assertParamExists)('createClubSettings', 'clubId', clubId);
3398
+ // verify required parameter 'createClubSettingsRequest' is not null or undefined
3399
+ (0, common_1.assertParamExists)('createClubSettings', 'createClubSettingsRequest', createClubSettingsRequest);
3400
+ const localVarPath = `/api/club-settings/{clubId}`
3401
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
3386
3402
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3387
3403
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3388
3404
  let baseOptions;
3389
3405
  if (configuration) {
3390
3406
  baseOptions = configuration.baseOptions;
3391
3407
  }
3392
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3408
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3393
3409
  const localVarHeaderParameter = {};
3394
3410
  const localVarQueryParameter = {};
3395
3411
  // authentication bearerAuth required
3396
3412
  // http bearer authentication required
3397
3413
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3414
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3398
3415
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3399
3416
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3400
3417
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3418
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createClubSettingsRequest, localVarRequestOptions, configuration);
3401
3419
  return {
3402
3420
  url: (0, common_1.toPathString)(localVarUrlObj),
3403
3421
  options: localVarRequestOptions,
3404
3422
  };
3405
3423
  }),
3406
3424
  /**
3407
- *
3425
+ * Supprime les paramètres d\'un club
3408
3426
  * @param {*} [options] Override http request option.
3409
3427
  * @throws {RequiredError}
3410
3428
  */
3411
- getHoursSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3412
- const localVarPath = `/api/club-settings/hours`;
3429
+ deleteClubSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3430
+ const localVarPath = `/api/club-settings`;
3413
3431
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3414
3432
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3415
3433
  let baseOptions;
3416
3434
  if (configuration) {
3417
3435
  baseOptions = configuration.baseOptions;
3418
3436
  }
3419
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3437
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
3420
3438
  const localVarHeaderParameter = {};
3421
3439
  const localVarQueryParameter = {};
3422
3440
  // authentication bearerAuth required
@@ -3431,12 +3449,12 @@ const ClubSettingsStaffApiAxiosParamCreator = function (configuration) {
3431
3449
  };
3432
3450
  }),
3433
3451
  /**
3434
- *
3452
+ * Récupère les paramètres d\'un club
3435
3453
  * @param {*} [options] Override http request option.
3436
3454
  * @throws {RequiredError}
3437
3455
  */
3438
- getPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3439
- const localVarPath = `/api/club-settings/presentation`;
3456
+ getClubSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3457
+ const localVarPath = `/api/club-settings`;
3440
3458
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3441
3459
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3442
3460
  let baseOptions;
@@ -3458,27 +3476,32 @@ const ClubSettingsStaffApiAxiosParamCreator = function (configuration) {
3458
3476
  };
3459
3477
  }),
3460
3478
  /**
3461
- *
3479
+ * Met à jour les paramètres d\'un club
3480
+ * @param {UpdateClubSettingsRequest} updateClubSettingsRequest
3462
3481
  * @param {*} [options] Override http request option.
3463
3482
  * @throws {RequiredError}
3464
3483
  */
3465
- getReservationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3466
- const localVarPath = `/api/club-settings/reservation`;
3484
+ updateClubSettings: (updateClubSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubSettingsRequest_1, ...args_1], void 0, function* (updateClubSettingsRequest, options = {}) {
3485
+ // verify required parameter 'updateClubSettingsRequest' is not null or undefined
3486
+ (0, common_1.assertParamExists)('updateClubSettings', 'updateClubSettingsRequest', updateClubSettingsRequest);
3487
+ const localVarPath = `/api/club-settings`;
3467
3488
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3468
3489
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3469
3490
  let baseOptions;
3470
3491
  if (configuration) {
3471
3492
  baseOptions = configuration.baseOptions;
3472
3493
  }
3473
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3494
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
3474
3495
  const localVarHeaderParameter = {};
3475
3496
  const localVarQueryParameter = {};
3476
3497
  // authentication bearerAuth required
3477
3498
  // http bearer authentication required
3478
3499
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3500
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3479
3501
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3480
3502
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3481
3503
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3504
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubSettingsRequest, localVarRequestOptions, configuration);
3482
3505
  return {
3483
3506
  url: (0, common_1.toPathString)(localVarUrlObj),
3484
3507
  options: localVarRequestOptions,
@@ -3486,160 +3509,167 @@ const ClubSettingsStaffApiAxiosParamCreator = function (configuration) {
3486
3509
  }),
3487
3510
  };
3488
3511
  };
3489
- exports.ClubSettingsStaffApiAxiosParamCreator = ClubSettingsStaffApiAxiosParamCreator;
3512
+ exports.ClubSettingsManagerApiAxiosParamCreator = ClubSettingsManagerApiAxiosParamCreator;
3490
3513
  /**
3491
- * ClubSettingsStaffApi - functional programming interface
3514
+ * ClubSettingsManagerApi - functional programming interface
3492
3515
  * @export
3493
3516
  */
3494
- const ClubSettingsStaffApiFp = function (configuration) {
3495
- const localVarAxiosParamCreator = (0, exports.ClubSettingsStaffApiAxiosParamCreator)(configuration);
3517
+ const ClubSettingsManagerApiFp = function (configuration) {
3518
+ const localVarAxiosParamCreator = (0, exports.ClubSettingsManagerApiAxiosParamCreator)(configuration);
3496
3519
  return {
3497
3520
  /**
3498
- *
3521
+ * Crée les paramètres d\'un club
3522
+ * @param {string} clubId
3523
+ * @param {CreateClubSettingsRequest} createClubSettingsRequest
3499
3524
  * @param {*} [options] Override http request option.
3500
3525
  * @throws {RequiredError}
3501
3526
  */
3502
- getClubGeneralSettings(options) {
3527
+ createClubSettings(clubId, createClubSettingsRequest, options) {
3503
3528
  return __awaiter(this, void 0, void 0, function* () {
3504
3529
  var _a, _b, _c;
3505
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubGeneralSettings(options);
3530
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createClubSettings(clubId, createClubSettingsRequest, options);
3506
3531
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3507
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsStaffApi.getClubGeneralSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3532
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.createClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3508
3533
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3509
3534
  });
3510
3535
  },
3511
3536
  /**
3512
- *
3537
+ * Supprime les paramètres d\'un club
3513
3538
  * @param {*} [options] Override http request option.
3514
3539
  * @throws {RequiredError}
3515
3540
  */
3516
- getHoursSettings(options) {
3541
+ deleteClubSettings(options) {
3517
3542
  return __awaiter(this, void 0, void 0, function* () {
3518
3543
  var _a, _b, _c;
3519
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getHoursSettings(options);
3544
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClubSettings(options);
3520
3545
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3521
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsStaffApi.getHoursSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3546
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.deleteClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3522
3547
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3523
3548
  });
3524
3549
  },
3525
3550
  /**
3526
- *
3551
+ * Récupère les paramètres d\'un club
3527
3552
  * @param {*} [options] Override http request option.
3528
3553
  * @throws {RequiredError}
3529
3554
  */
3530
- getPresentationSettings(options) {
3555
+ getClubSettings(options) {
3531
3556
  return __awaiter(this, void 0, void 0, function* () {
3532
3557
  var _a, _b, _c;
3533
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPresentationSettings(options);
3558
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubSettings(options);
3534
3559
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3535
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsStaffApi.getPresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3560
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.getClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3536
3561
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3537
3562
  });
3538
3563
  },
3539
3564
  /**
3540
- *
3565
+ * Met à jour les paramètres d\'un club
3566
+ * @param {UpdateClubSettingsRequest} updateClubSettingsRequest
3541
3567
  * @param {*} [options] Override http request option.
3542
3568
  * @throws {RequiredError}
3543
3569
  */
3544
- getReservationSettings(options) {
3570
+ updateClubSettings(updateClubSettingsRequest, options) {
3545
3571
  return __awaiter(this, void 0, void 0, function* () {
3546
3572
  var _a, _b, _c;
3547
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getReservationSettings(options);
3573
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubSettings(updateClubSettingsRequest, options);
3548
3574
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3549
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsStaffApi.getReservationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3575
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubSettingsManagerApi.updateClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3550
3576
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3551
3577
  });
3552
3578
  },
3553
3579
  };
3554
3580
  };
3555
- exports.ClubSettingsStaffApiFp = ClubSettingsStaffApiFp;
3581
+ exports.ClubSettingsManagerApiFp = ClubSettingsManagerApiFp;
3556
3582
  /**
3557
- * ClubSettingsStaffApi - factory interface
3583
+ * ClubSettingsManagerApi - factory interface
3558
3584
  * @export
3559
3585
  */
3560
- const ClubSettingsStaffApiFactory = function (configuration, basePath, axios) {
3561
- const localVarFp = (0, exports.ClubSettingsStaffApiFp)(configuration);
3586
+ const ClubSettingsManagerApiFactory = function (configuration, basePath, axios) {
3587
+ const localVarFp = (0, exports.ClubSettingsManagerApiFp)(configuration);
3562
3588
  return {
3563
3589
  /**
3564
- *
3590
+ * Crée les paramètres d\'un club
3591
+ * @param {ClubSettingsManagerApiCreateClubSettingsRequest} requestParameters Request parameters.
3565
3592
  * @param {*} [options] Override http request option.
3566
3593
  * @throws {RequiredError}
3567
3594
  */
3568
- getClubGeneralSettings(options) {
3569
- return localVarFp.getClubGeneralSettings(options).then((request) => request(axios, basePath));
3595
+ createClubSettings(requestParameters, options) {
3596
+ return localVarFp.createClubSettings(requestParameters.clubId, requestParameters.createClubSettingsRequest, options).then((request) => request(axios, basePath));
3570
3597
  },
3571
3598
  /**
3572
- *
3599
+ * Supprime les paramètres d\'un club
3573
3600
  * @param {*} [options] Override http request option.
3574
3601
  * @throws {RequiredError}
3575
3602
  */
3576
- getHoursSettings(options) {
3577
- return localVarFp.getHoursSettings(options).then((request) => request(axios, basePath));
3603
+ deleteClubSettings(options) {
3604
+ return localVarFp.deleteClubSettings(options).then((request) => request(axios, basePath));
3578
3605
  },
3579
3606
  /**
3580
- *
3607
+ * Récupère les paramètres d\'un club
3581
3608
  * @param {*} [options] Override http request option.
3582
3609
  * @throws {RequiredError}
3583
3610
  */
3584
- getPresentationSettings(options) {
3585
- return localVarFp.getPresentationSettings(options).then((request) => request(axios, basePath));
3611
+ getClubSettings(options) {
3612
+ return localVarFp.getClubSettings(options).then((request) => request(axios, basePath));
3586
3613
  },
3587
3614
  /**
3588
- *
3615
+ * Met à jour les paramètres d\'un club
3616
+ * @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
3589
3617
  * @param {*} [options] Override http request option.
3590
3618
  * @throws {RequiredError}
3591
3619
  */
3592
- getReservationSettings(options) {
3593
- return localVarFp.getReservationSettings(options).then((request) => request(axios, basePath));
3620
+ updateClubSettings(requestParameters, options) {
3621
+ return localVarFp.updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(axios, basePath));
3594
3622
  },
3595
3623
  };
3596
3624
  };
3597
- exports.ClubSettingsStaffApiFactory = ClubSettingsStaffApiFactory;
3625
+ exports.ClubSettingsManagerApiFactory = ClubSettingsManagerApiFactory;
3598
3626
  /**
3599
- * ClubSettingsStaffApi - object-oriented interface
3627
+ * ClubSettingsManagerApi - object-oriented interface
3600
3628
  * @export
3601
- * @class ClubSettingsStaffApi
3629
+ * @class ClubSettingsManagerApi
3602
3630
  * @extends {BaseAPI}
3603
3631
  */
3604
- class ClubSettingsStaffApi extends base_1.BaseAPI {
3632
+ class ClubSettingsManagerApi extends base_1.BaseAPI {
3605
3633
  /**
3606
- *
3634
+ * Crée les paramètres d\'un club
3635
+ * @param {ClubSettingsManagerApiCreateClubSettingsRequest} requestParameters Request parameters.
3607
3636
  * @param {*} [options] Override http request option.
3608
3637
  * @throws {RequiredError}
3609
- * @memberof ClubSettingsStaffApi
3638
+ * @memberof ClubSettingsManagerApi
3610
3639
  */
3611
- getClubGeneralSettings(options) {
3612
- return (0, exports.ClubSettingsStaffApiFp)(this.configuration).getClubGeneralSettings(options).then((request) => request(this.axios, this.basePath));
3640
+ createClubSettings(requestParameters, options) {
3641
+ return (0, exports.ClubSettingsManagerApiFp)(this.configuration).createClubSettings(requestParameters.clubId, requestParameters.createClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
3613
3642
  }
3614
3643
  /**
3615
- *
3644
+ * Supprime les paramètres d\'un club
3616
3645
  * @param {*} [options] Override http request option.
3617
3646
  * @throws {RequiredError}
3618
- * @memberof ClubSettingsStaffApi
3647
+ * @memberof ClubSettingsManagerApi
3619
3648
  */
3620
- getHoursSettings(options) {
3621
- return (0, exports.ClubSettingsStaffApiFp)(this.configuration).getHoursSettings(options).then((request) => request(this.axios, this.basePath));
3649
+ deleteClubSettings(options) {
3650
+ return (0, exports.ClubSettingsManagerApiFp)(this.configuration).deleteClubSettings(options).then((request) => request(this.axios, this.basePath));
3622
3651
  }
3623
3652
  /**
3624
- *
3653
+ * Récupère les paramètres d\'un club
3625
3654
  * @param {*} [options] Override http request option.
3626
3655
  * @throws {RequiredError}
3627
- * @memberof ClubSettingsStaffApi
3656
+ * @memberof ClubSettingsManagerApi
3628
3657
  */
3629
- getPresentationSettings(options) {
3630
- return (0, exports.ClubSettingsStaffApiFp)(this.configuration).getPresentationSettings(options).then((request) => request(this.axios, this.basePath));
3658
+ getClubSettings(options) {
3659
+ return (0, exports.ClubSettingsManagerApiFp)(this.configuration).getClubSettings(options).then((request) => request(this.axios, this.basePath));
3631
3660
  }
3632
3661
  /**
3633
- *
3662
+ * Met à jour les paramètres d\'un club
3663
+ * @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
3634
3664
  * @param {*} [options] Override http request option.
3635
3665
  * @throws {RequiredError}
3636
- * @memberof ClubSettingsStaffApi
3666
+ * @memberof ClubSettingsManagerApi
3637
3667
  */
3638
- getReservationSettings(options) {
3639
- return (0, exports.ClubSettingsStaffApiFp)(this.configuration).getReservationSettings(options).then((request) => request(this.axios, this.basePath));
3668
+ updateClubSettings(requestParameters, options) {
3669
+ return (0, exports.ClubSettingsManagerApiFp)(this.configuration).updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
3640
3670
  }
3641
3671
  }
3642
- exports.ClubSettingsStaffApi = ClubSettingsStaffApi;
3672
+ exports.ClubSettingsManagerApi = ClubSettingsManagerApi;
3643
3673
  /**
3644
3674
  * ClubsApi - axios parameter creator
3645
3675
  * @export
@@ -4424,15 +4454,51 @@ exports.ClubsApi = ClubsApi;
4424
4454
  const ClubsManagerApiAxiosParamCreator = function (configuration) {
4425
4455
  return {
4426
4456
  /**
4427
- * Ajoute un membre à un club
4428
- * @param {AddClubMemberRequest} addClubMemberRequest
4457
+ * Ajoute un membre à un club
4458
+ * @param {AddClubMemberRequest} addClubMemberRequest
4459
+ * @param {*} [options] Override http request option.
4460
+ * @throws {RequiredError}
4461
+ */
4462
+ addClubMember: (addClubMemberRequest_1, ...args_1) => __awaiter(this, [addClubMemberRequest_1, ...args_1], void 0, function* (addClubMemberRequest, options = {}) {
4463
+ // verify required parameter 'addClubMemberRequest' is not null or undefined
4464
+ (0, common_1.assertParamExists)('addClubMember', 'addClubMemberRequest', addClubMemberRequest);
4465
+ const localVarPath = `/api/clubs/members`;
4466
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4467
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4468
+ let baseOptions;
4469
+ if (configuration) {
4470
+ baseOptions = configuration.baseOptions;
4471
+ }
4472
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4473
+ const localVarHeaderParameter = {};
4474
+ const localVarQueryParameter = {};
4475
+ // authentication bearerAuth required
4476
+ // http bearer authentication required
4477
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4478
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4479
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4480
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4481
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4482
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addClubMemberRequest, localVarRequestOptions, configuration);
4483
+ return {
4484
+ url: (0, common_1.toPathString)(localVarUrlObj),
4485
+ options: localVarRequestOptions,
4486
+ };
4487
+ }),
4488
+ /**
4489
+ *
4490
+ * @param {string} userId
4491
+ * @param {AddCreditsToCustomerRequest} addCreditsToCustomerRequest
4429
4492
  * @param {*} [options] Override http request option.
4430
4493
  * @throws {RequiredError}
4431
4494
  */
4432
- addClubMember: (addClubMemberRequest_1, ...args_1) => __awaiter(this, [addClubMemberRequest_1, ...args_1], void 0, function* (addClubMemberRequest, options = {}) {
4433
- // verify required parameter 'addClubMemberRequest' is not null or undefined
4434
- (0, common_1.assertParamExists)('addClubMember', 'addClubMemberRequest', addClubMemberRequest);
4435
- const localVarPath = `/api/clubs/members`;
4495
+ addCreditsToCustomer: (userId_1, addCreditsToCustomerRequest_1, ...args_1) => __awaiter(this, [userId_1, addCreditsToCustomerRequest_1, ...args_1], void 0, function* (userId, addCreditsToCustomerRequest, options = {}) {
4496
+ // verify required parameter 'userId' is not null or undefined
4497
+ (0, common_1.assertParamExists)('addCreditsToCustomer', 'userId', userId);
4498
+ // verify required parameter 'addCreditsToCustomerRequest' is not null or undefined
4499
+ (0, common_1.assertParamExists)('addCreditsToCustomer', 'addCreditsToCustomerRequest', addCreditsToCustomerRequest);
4500
+ const localVarPath = `/api/clubs/customers/{userId}/credits`
4501
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
4436
4502
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4437
4503
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4438
4504
  let baseOptions;
@@ -4449,7 +4515,7 @@ const ClubsManagerApiAxiosParamCreator = function (configuration) {
4449
4515
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4450
4516
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4451
4517
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4452
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addClubMemberRequest, localVarRequestOptions, configuration);
4518
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addCreditsToCustomerRequest, localVarRequestOptions, configuration);
4453
4519
  return {
4454
4520
  url: (0, common_1.toPathString)(localVarUrlObj),
4455
4521
  options: localVarRequestOptions,
@@ -4931,38 +4997,6 @@ const ClubsManagerApiAxiosParamCreator = function (configuration) {
4931
4997
  options: localVarRequestOptions,
4932
4998
  };
4933
4999
  }),
4934
- /**
4935
- *
4936
- * @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
4937
- * @param {*} [options] Override http request option.
4938
- * @throws {RequiredError}
4939
- */
4940
- updateClubPresentationSettings: (updateClubPresentationSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubPresentationSettingsRequest_1, ...args_1], void 0, function* (updateClubPresentationSettingsRequest, options = {}) {
4941
- // verify required parameter 'updateClubPresentationSettingsRequest' is not null or undefined
4942
- (0, common_1.assertParamExists)('updateClubPresentationSettings', 'updateClubPresentationSettingsRequest', updateClubPresentationSettingsRequest);
4943
- const localVarPath = `/api/clubs/settings/presentation`;
4944
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4945
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4946
- let baseOptions;
4947
- if (configuration) {
4948
- baseOptions = configuration.baseOptions;
4949
- }
4950
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
4951
- const localVarHeaderParameter = {};
4952
- const localVarQueryParameter = {};
4953
- // authentication bearerAuth required
4954
- // http bearer authentication required
4955
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4956
- localVarHeaderParameter['Content-Type'] = 'application/json';
4957
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4958
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4959
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4960
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateClubPresentationSettingsRequest, localVarRequestOptions, configuration);
4961
- return {
4962
- url: (0, common_1.toPathString)(localVarUrlObj),
4963
- options: localVarRequestOptions,
4964
- };
4965
- }),
4966
5000
  /**
4967
5001
  *
4968
5002
  * @param {string} courtId
@@ -5060,6 +5094,22 @@ const ClubsManagerApiFp = function (configuration) {
5060
5094
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5061
5095
  });
5062
5096
  },
5097
+ /**
5098
+ *
5099
+ * @param {string} userId
5100
+ * @param {AddCreditsToCustomerRequest} addCreditsToCustomerRequest
5101
+ * @param {*} [options] Override http request option.
5102
+ * @throws {RequiredError}
5103
+ */
5104
+ addCreditsToCustomer(userId, addCreditsToCustomerRequest, options) {
5105
+ return __awaiter(this, void 0, void 0, function* () {
5106
+ var _a, _b, _c;
5107
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addCreditsToCustomer(userId, addCreditsToCustomerRequest, options);
5108
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5109
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsManagerApi.addCreditsToCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5110
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5111
+ });
5112
+ },
5063
5113
  /**
5064
5114
  *
5065
5115
  * @param {string} priceId
@@ -5286,21 +5336,6 @@ const ClubsManagerApiFp = function (configuration) {
5286
5336
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5287
5337
  });
5288
5338
  },
5289
- /**
5290
- *
5291
- * @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
5292
- * @param {*} [options] Override http request option.
5293
- * @throws {RequiredError}
5294
- */
5295
- updateClubPresentationSettings(updateClubPresentationSettingsRequest, options) {
5296
- return __awaiter(this, void 0, void 0, function* () {
5297
- var _a, _b, _c;
5298
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubPresentationSettings(updateClubPresentationSettingsRequest, options);
5299
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5300
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsManagerApi.updateClubPresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5301
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5302
- });
5303
- },
5304
5339
  /**
5305
5340
  *
5306
5341
  * @param {string} courtId
@@ -5352,6 +5387,15 @@ const ClubsManagerApiFactory = function (configuration, basePath, axios) {
5352
5387
  addClubMember(requestParameters, options) {
5353
5388
  return localVarFp.addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(axios, basePath));
5354
5389
  },
5390
+ /**
5391
+ *
5392
+ * @param {ClubsManagerApiAddCreditsToCustomerRequest} requestParameters Request parameters.
5393
+ * @param {*} [options] Override http request option.
5394
+ * @throws {RequiredError}
5395
+ */
5396
+ addCreditsToCustomer(requestParameters, options) {
5397
+ return localVarFp.addCreditsToCustomer(requestParameters.userId, requestParameters.addCreditsToCustomerRequest, options).then((request) => request(axios, basePath));
5398
+ },
5355
5399
  /**
5356
5400
  *
5357
5401
  * @param {ClubsManagerApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
@@ -5486,15 +5530,6 @@ const ClubsManagerApiFactory = function (configuration, basePath, axios) {
5486
5530
  updateClubInfos(requestParameters, options) {
5487
5531
  return localVarFp.updateClubInfos(requestParameters.body, options).then((request) => request(axios, basePath));
5488
5532
  },
5489
- /**
5490
- *
5491
- * @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
5492
- * @param {*} [options] Override http request option.
5493
- * @throws {RequiredError}
5494
- */
5495
- updateClubPresentationSettings(requestParameters, options) {
5496
- return localVarFp.updateClubPresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(axios, basePath));
5497
- },
5498
5533
  /**
5499
5534
  *
5500
5535
  * @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
@@ -5533,6 +5568,16 @@ class ClubsManagerApi extends base_1.BaseAPI {
5533
5568
  addClubMember(requestParameters, options) {
5534
5569
  return (0, exports.ClubsManagerApiFp)(this.configuration).addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
5535
5570
  }
5571
+ /**
5572
+ *
5573
+ * @param {ClubsManagerApiAddCreditsToCustomerRequest} requestParameters Request parameters.
5574
+ * @param {*} [options] Override http request option.
5575
+ * @throws {RequiredError}
5576
+ * @memberof ClubsManagerApi
5577
+ */
5578
+ addCreditsToCustomer(requestParameters, options) {
5579
+ return (0, exports.ClubsManagerApiFp)(this.configuration).addCreditsToCustomer(requestParameters.userId, requestParameters.addCreditsToCustomerRequest, options).then((request) => request(this.axios, this.basePath));
5580
+ }
5536
5581
  /**
5537
5582
  *
5538
5583
  * @param {ClubsManagerApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
@@ -5682,16 +5727,6 @@ class ClubsManagerApi extends base_1.BaseAPI {
5682
5727
  updateClubInfos(requestParameters, options) {
5683
5728
  return (0, exports.ClubsManagerApiFp)(this.configuration).updateClubInfos(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
5684
5729
  }
5685
- /**
5686
- *
5687
- * @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
5688
- * @param {*} [options] Override http request option.
5689
- * @throws {RequiredError}
5690
- * @memberof ClubsManagerApi
5691
- */
5692
- updateClubPresentationSettings(requestParameters, options) {
5693
- return (0, exports.ClubsManagerApiFp)(this.configuration).updateClubPresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
5694
- }
5695
5730
  /**
5696
5731
  *
5697
5732
  * @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
@@ -5801,33 +5836,6 @@ const ClubsStaffApiAxiosParamCreator = function (configuration) {
5801
5836
  options: localVarRequestOptions,
5802
5837
  };
5803
5838
  }),
5804
- /**
5805
- *
5806
- * @param {*} [options] Override http request option.
5807
- * @throws {RequiredError}
5808
- */
5809
- getClubPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
5810
- const localVarPath = `/api/clubs/settings/presentation`;
5811
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5812
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5813
- let baseOptions;
5814
- if (configuration) {
5815
- baseOptions = configuration.baseOptions;
5816
- }
5817
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5818
- const localVarHeaderParameter = {};
5819
- const localVarQueryParameter = {};
5820
- // authentication bearerAuth required
5821
- // http bearer authentication required
5822
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5823
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5824
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5825
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5826
- return {
5827
- url: (0, common_1.toPathString)(localVarUrlObj),
5828
- options: localVarRequestOptions,
5829
- };
5830
- }),
5831
5839
  /**
5832
5840
  * Récupère les rôles d\'un club
5833
5841
  * @param {*} [options] Override http request option.
@@ -5992,20 +6000,6 @@ const ClubsStaffApiFp = function (configuration) {
5992
6000
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5993
6001
  });
5994
6002
  },
5995
- /**
5996
- *
5997
- * @param {*} [options] Override http request option.
5998
- * @throws {RequiredError}
5999
- */
6000
- getClubPresentationSettings(options) {
6001
- return __awaiter(this, void 0, void 0, function* () {
6002
- var _a, _b, _c;
6003
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPresentationSettings(options);
6004
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6005
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsStaffApi.getClubPresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6006
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6007
- });
6008
- },
6009
6003
  /**
6010
6004
  * Récupère les rôles d\'un club
6011
6005
  * @param {*} [options] Override http request option.
@@ -6097,14 +6091,6 @@ const ClubsStaffApiFactory = function (configuration, basePath, axios) {
6097
6091
  getClubMembers(options) {
6098
6092
  return localVarFp.getClubMembers(options).then((request) => request(axios, basePath));
6099
6093
  },
6100
- /**
6101
- *
6102
- * @param {*} [options] Override http request option.
6103
- * @throws {RequiredError}
6104
- */
6105
- getClubPresentationSettings(options) {
6106
- return localVarFp.getClubPresentationSettings(options).then((request) => request(axios, basePath));
6107
- },
6108
6094
  /**
6109
6095
  * Récupère les rôles d\'un club
6110
6096
  * @param {*} [options] Override http request option.
@@ -6175,15 +6161,6 @@ class ClubsStaffApi extends base_1.BaseAPI {
6175
6161
  getClubMembers(options) {
6176
6162
  return (0, exports.ClubsStaffApiFp)(this.configuration).getClubMembers(options).then((request) => request(this.axios, this.basePath));
6177
6163
  }
6178
- /**
6179
- *
6180
- * @param {*} [options] Override http request option.
6181
- * @throws {RequiredError}
6182
- * @memberof ClubsStaffApi
6183
- */
6184
- getClubPresentationSettings(options) {
6185
- return (0, exports.ClubsStaffApiFp)(this.configuration).getClubPresentationSettings(options).then((request) => request(this.axios, this.basePath));
6186
- }
6187
6164
  /**
6188
6165
  * Récupère les rôles d\'un club
6189
6166
  * @param {*} [options] Override http request option.
@@ -7451,6 +7428,102 @@ class SportsPublicApi extends base_1.BaseAPI {
7451
7428
  }
7452
7429
  }
7453
7430
  exports.SportsPublicApi = SportsPublicApi;
7431
+ /**
7432
+ * SportsStaffApi - axios parameter creator
7433
+ * @export
7434
+ */
7435
+ const SportsStaffApiAxiosParamCreator = function (configuration) {
7436
+ return {
7437
+ /**
7438
+ * Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
7439
+ * @param {*} [options] Override http request option.
7440
+ * @throws {RequiredError}
7441
+ */
7442
+ getAllSports: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
7443
+ const localVarPath = `/api/sports`;
7444
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7445
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7446
+ let baseOptions;
7447
+ if (configuration) {
7448
+ baseOptions = configuration.baseOptions;
7449
+ }
7450
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7451
+ const localVarHeaderParameter = {};
7452
+ const localVarQueryParameter = {};
7453
+ // authentication bearerAuth required
7454
+ // http bearer authentication required
7455
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7456
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7457
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7458
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7459
+ return {
7460
+ url: (0, common_1.toPathString)(localVarUrlObj),
7461
+ options: localVarRequestOptions,
7462
+ };
7463
+ }),
7464
+ };
7465
+ };
7466
+ exports.SportsStaffApiAxiosParamCreator = SportsStaffApiAxiosParamCreator;
7467
+ /**
7468
+ * SportsStaffApi - functional programming interface
7469
+ * @export
7470
+ */
7471
+ const SportsStaffApiFp = function (configuration) {
7472
+ const localVarAxiosParamCreator = (0, exports.SportsStaffApiAxiosParamCreator)(configuration);
7473
+ return {
7474
+ /**
7475
+ * Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
7476
+ * @param {*} [options] Override http request option.
7477
+ * @throws {RequiredError}
7478
+ */
7479
+ getAllSports(options) {
7480
+ return __awaiter(this, void 0, void 0, function* () {
7481
+ var _a, _b, _c;
7482
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllSports(options);
7483
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7484
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SportsStaffApi.getAllSports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7485
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7486
+ });
7487
+ },
7488
+ };
7489
+ };
7490
+ exports.SportsStaffApiFp = SportsStaffApiFp;
7491
+ /**
7492
+ * SportsStaffApi - factory interface
7493
+ * @export
7494
+ */
7495
+ const SportsStaffApiFactory = function (configuration, basePath, axios) {
7496
+ const localVarFp = (0, exports.SportsStaffApiFp)(configuration);
7497
+ return {
7498
+ /**
7499
+ * Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
7500
+ * @param {*} [options] Override http request option.
7501
+ * @throws {RequiredError}
7502
+ */
7503
+ getAllSports(options) {
7504
+ return localVarFp.getAllSports(options).then((request) => request(axios, basePath));
7505
+ },
7506
+ };
7507
+ };
7508
+ exports.SportsStaffApiFactory = SportsStaffApiFactory;
7509
+ /**
7510
+ * SportsStaffApi - object-oriented interface
7511
+ * @export
7512
+ * @class SportsStaffApi
7513
+ * @extends {BaseAPI}
7514
+ */
7515
+ class SportsStaffApi extends base_1.BaseAPI {
7516
+ /**
7517
+ * Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
7518
+ * @param {*} [options] Override http request option.
7519
+ * @throws {RequiredError}
7520
+ * @memberof SportsStaffApi
7521
+ */
7522
+ getAllSports(options) {
7523
+ return (0, exports.SportsStaffApiFp)(this.configuration).getAllSports(options).then((request) => request(this.axios, this.basePath));
7524
+ }
7525
+ }
7526
+ exports.SportsStaffApi = SportsStaffApi;
7454
7527
  /**
7455
7528
  * SubscriptionsManagerApi - axios parameter creator
7456
7529
  * @export
@@ -8616,6 +8689,33 @@ const UsersApiAxiosParamCreator = function (configuration) {
8616
8689
  options: localVarRequestOptions,
8617
8690
  };
8618
8691
  }),
8692
+ /**
8693
+ * Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
8694
+ * @param {*} [options] Override http request option.
8695
+ * @throws {RequiredError}
8696
+ */
8697
+ getMyClubMemberships: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
8698
+ const localVarPath = `/api/users/me/club-memberships`;
8699
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8700
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8701
+ let baseOptions;
8702
+ if (configuration) {
8703
+ baseOptions = configuration.baseOptions;
8704
+ }
8705
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8706
+ const localVarHeaderParameter = {};
8707
+ const localVarQueryParameter = {};
8708
+ // authentication bearerAuth required
8709
+ // http bearer authentication required
8710
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
8711
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8712
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8713
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8714
+ return {
8715
+ url: (0, common_1.toPathString)(localVarUrlObj),
8716
+ options: localVarRequestOptions,
8717
+ };
8718
+ }),
8619
8719
  /**
8620
8720
  *
8621
8721
  * @param {number} [radiusInKm]
@@ -9576,6 +9676,20 @@ const UsersApiFp = function (configuration) {
9576
9676
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9577
9677
  });
9578
9678
  },
9679
+ /**
9680
+ * Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
9681
+ * @param {*} [options] Override http request option.
9682
+ * @throws {RequiredError}
9683
+ */
9684
+ getMyClubMemberships(options) {
9685
+ return __awaiter(this, void 0, void 0, function* () {
9686
+ var _a, _b, _c;
9687
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMyClubMemberships(options);
9688
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9689
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.getMyClubMemberships']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9690
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9691
+ });
9692
+ },
9579
9693
  /**
9580
9694
  *
9581
9695
  * @param {number} [radiusInKm]
@@ -10055,6 +10169,14 @@ const UsersApiFactory = function (configuration, basePath, axios) {
10055
10169
  getMe(options) {
10056
10170
  return localVarFp.getMe(options).then((request) => request(axios, basePath));
10057
10171
  },
10172
+ /**
10173
+ * Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
10174
+ * @param {*} [options] Override http request option.
10175
+ * @throws {RequiredError}
10176
+ */
10177
+ getMyClubMemberships(options) {
10178
+ return localVarFp.getMyClubMemberships(options).then((request) => request(axios, basePath));
10179
+ },
10058
10180
  /**
10059
10181
  *
10060
10182
  * @param {UsersApiGetNearestClubsRequest} requestParameters Request parameters.
@@ -10383,6 +10505,15 @@ class UsersApi extends base_1.BaseAPI {
10383
10505
  getMe(options) {
10384
10506
  return (0, exports.UsersApiFp)(this.configuration).getMe(options).then((request) => request(this.axios, this.basePath));
10385
10507
  }
10508
+ /**
10509
+ * Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
10510
+ * @param {*} [options] Override http request option.
10511
+ * @throws {RequiredError}
10512
+ * @memberof UsersApi
10513
+ */
10514
+ getMyClubMemberships(options) {
10515
+ return (0, exports.UsersApiFp)(this.configuration).getMyClubMemberships(options).then((request) => request(this.axios, this.basePath));
10516
+ }
10386
10517
  /**
10387
10518
  *
10388
10519
  * @param {UsersApiGetNearestClubsRequest} requestParameters Request parameters.