@tennac-booking/sdk 1.0.110 → 1.0.111

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 (65) hide show
  1. package/.openapi-generator/FILES +296 -292
  2. package/README.md +30 -20
  3. package/api.ts +1991 -1063
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +1222 -662
  8. package/dist/api.js +1140 -511
  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 +1222 -662
  16. package/dist/esm/api.js +1126 -501
  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/AgendaBooking.md +30 -0
  29. package/docs/{JoinEventRequestPlayersPaymentMethodsInner.md → AgendaBookingPlayer.md} +9 -5
  30. package/docs/AgendaBookingSlot.md +30 -0
  31. package/docs/AgendaPaymentStatus.md +12 -0
  32. package/docs/BookingsWithTimeBoundsResponse.md +1 -1
  33. package/docs/ClientAccountOnboardingRequest.md +29 -0
  34. package/docs/{ClientFullOnboardingResponse.md → ClientAccountOnboardingResponse.md} +11 -7
  35. package/docs/ClientAccountResponse.md +44 -0
  36. package/docs/ClientAccountsApi.md +408 -0
  37. package/docs/ClientApi.md +4 -59
  38. package/docs/ClientMeResponse.md +28 -0
  39. package/docs/ClientOnboardingResponse.md +27 -0
  40. package/docs/{ClientRegisterRequest.md → ClientRegisterRequestBody.md} +7 -7
  41. package/docs/{CheckInEventParticipantsRequest.md → ClientRegisterResponse.md} +7 -5
  42. package/docs/ClientSubscriptionResponse.md +34 -0
  43. package/docs/ClubPlayerDetailResponse.md +2 -0
  44. package/docs/ClubSummary.md +8 -2
  45. package/docs/ClubsManagerApi.md +56 -0
  46. package/docs/ClubsStaffApi.md +55 -59
  47. package/docs/CreateEventRequest.md +3 -1
  48. package/docs/EventsManagerApi.md +0 -114
  49. package/docs/EventsStaffApi.md +159 -20
  50. package/docs/GetSubscriptionsHistory200Response.md +22 -0
  51. package/docs/JoinEventRequest.md +0 -8
  52. package/docs/PaymentMethod.md +0 -4
  53. package/docs/PublishEventResponse.md +0 -2
  54. package/docs/UpdateUserCreditsRequest.md +20 -0
  55. package/index.ts +1 -1
  56. package/package.json +1 -1
  57. package/docs/CheckInEventParticipants200Response.md +0 -22
  58. package/docs/CheckInEventParticipants200ResponseInvoicesInner.md +0 -28
  59. package/docs/ClientFullOnboardingResponseClub.md +0 -24
  60. package/docs/ClientRegister201Response.md +0 -26
  61. package/docs/CreateOnsiteInvoiceRequest.md +0 -28
  62. package/docs/CreateOnsiteInvoiceResponse.md +0 -22
  63. package/docs/CreateOnsiteInvoiceResponseInvoice.md +0 -31
  64. package/docs/EventConflictCheckRequest.md +0 -28
  65. package/docs/EventConflictCheckResponse.md +0 -26
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.110
8
+ * The version of the OpenAPI document: 1.0.104
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,16 +22,26 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.BookingsApiAxiosParamCreator = exports.UserLocationSummaryTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = 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.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.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 = void 0;
27
- 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 = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = void 0;
28
- exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserApi = void 0;
25
+ exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.UpdateClubMemberRequestRoleEnum = 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 = exports.AgendaPaymentStatus = void 0;
26
+ 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.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 = exports.UserLocationSummaryTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = void 0;
27
+ 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.GetWeeklyEventsTypeEnum = exports.GetWeeklyEventsVisibilityTypeEnum = exports.GetMonthlyEventsTypeEnum = exports.GetMonthlyEventsVisibilityTypeEnum = exports.GetDailyEventsTypeEnum = exports.GetDailyEventsVisibilityTypeEnum = 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 = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = void 0;
28
+ 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 = void 0;
29
29
  const axios_1 = require("axios");
30
30
  // Some imports not used depending on template conditions
31
31
  // @ts-ignore
32
32
  const common_1 = require("./common");
33
33
  // @ts-ignore
34
34
  const base_1 = require("./base");
35
+ /**
36
+ *
37
+ * @export
38
+ * @enum {string}
39
+ */
40
+ exports.AgendaPaymentStatus = {
41
+ Pay: 'payé',
42
+ NonPay: 'non payé',
43
+ EnAttente: 'en attente'
44
+ };
35
45
  exports.BookingHistoryPopulatedPerformedByTypeEnum = {
36
46
  User: 'user',
37
47
  Manager: 'manager',
@@ -59,6 +69,14 @@ exports.CaptureResultStatusEnum = {
59
69
  Captured: 'captured',
60
70
  Failed: 'failed'
61
71
  };
72
+ exports.ClientAccountOnboardingRequestBusinessTypeEnum = {
73
+ Individual: 'individual',
74
+ Company: 'company'
75
+ };
76
+ exports.ClientAccountOnboardingRequestSubscriptionTypeEnum = {
77
+ Basic: 'basic',
78
+ PlatformWithConnect: 'platform_with_connect'
79
+ };
62
80
  exports.ClubRoleResponseRoleEnum = {
63
81
  Admin: 'admin',
64
82
  Manager: 'manager',
@@ -163,8 +181,6 @@ exports.InvoiceStatus = {
163
181
  exports.PaymentMethod = {
164
182
  Online: 'online',
165
183
  Onsite: 'onsite',
166
- OnsiteCard: 'onsite_card',
167
- OnsiteCash: 'onsite_cash',
168
184
  Free: 'free'
169
185
  };
170
186
  /**
@@ -1419,35 +1435,6 @@ exports.BookingsUserApi = BookingsUserApi;
1419
1435
  */
1420
1436
  const ClientApiAxiosParamCreator = function (configuration) {
1421
1437
  return {
1422
- /**
1423
- * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
1424
- * @param {ClientRegisterRequest} clientRegisterRequest
1425
- * @param {*} [options] Override http request option.
1426
- * @throws {RequiredError}
1427
- */
1428
- clientRegister: (clientRegisterRequest_1, ...args_1) => __awaiter(this, [clientRegisterRequest_1, ...args_1], void 0, function* (clientRegisterRequest, options = {}) {
1429
- // verify required parameter 'clientRegisterRequest' is not null or undefined
1430
- (0, common_1.assertParamExists)('clientRegister', 'clientRegisterRequest', clientRegisterRequest);
1431
- const localVarPath = `/clients/register`;
1432
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1433
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1434
- let baseOptions;
1435
- if (configuration) {
1436
- baseOptions = configuration.baseOptions;
1437
- }
1438
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1439
- const localVarHeaderParameter = {};
1440
- const localVarQueryParameter = {};
1441
- localVarHeaderParameter['Content-Type'] = 'application/json';
1442
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1443
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1444
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1445
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clientRegisterRequest, localVarRequestOptions, configuration);
1446
- return {
1447
- url: (0, common_1.toPathString)(localVarUrlObj),
1448
- options: localVarRequestOptions,
1449
- };
1450
- }),
1451
1438
  /**
1452
1439
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
1453
1440
  * @param {*} [options] Override http request option.
@@ -1476,7 +1463,7 @@ const ClientApiAxiosParamCreator = function (configuration) {
1476
1463
  };
1477
1464
  }),
1478
1465
  /**
1479
- * 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
1466
+ * 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
1480
1467
  * @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
1481
1468
  * @param {*} [options] Override http request option.
1482
1469
  * @throws {RequiredError}
@@ -1494,9 +1481,6 @@ const ClientApiAxiosParamCreator = function (configuration) {
1494
1481
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1495
1482
  const localVarHeaderParameter = {};
1496
1483
  const localVarQueryParameter = {};
1497
- // authentication clientAuth required
1498
- // http bearer authentication required
1499
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1500
1484
  localVarHeaderParameter['Content-Type'] = 'application/json';
1501
1485
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1502
1486
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -1517,21 +1501,6 @@ exports.ClientApiAxiosParamCreator = ClientApiAxiosParamCreator;
1517
1501
  const ClientApiFp = function (configuration) {
1518
1502
  const localVarAxiosParamCreator = (0, exports.ClientApiAxiosParamCreator)(configuration);
1519
1503
  return {
1520
- /**
1521
- * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
1522
- * @param {ClientRegisterRequest} clientRegisterRequest
1523
- * @param {*} [options] Override http request option.
1524
- * @throws {RequiredError}
1525
- */
1526
- clientRegister(clientRegisterRequest, options) {
1527
- return __awaiter(this, void 0, void 0, function* () {
1528
- var _a, _b, _c;
1529
- const localVarAxiosArgs = yield localVarAxiosParamCreator.clientRegister(clientRegisterRequest, options);
1530
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1531
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientApi.clientRegister']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1532
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1533
- });
1534
- },
1535
1504
  /**
1536
1505
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
1537
1506
  * @param {*} [options] Override http request option.
@@ -1547,7 +1516,7 @@ const ClientApiFp = function (configuration) {
1547
1516
  });
1548
1517
  },
1549
1518
  /**
1550
- * 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
1519
+ * 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
1551
1520
  * @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
1552
1521
  * @param {*} [options] Override http request option.
1553
1522
  * @throws {RequiredError}
@@ -1571,15 +1540,6 @@ exports.ClientApiFp = ClientApiFp;
1571
1540
  const ClientApiFactory = function (configuration, basePath, axios) {
1572
1541
  const localVarFp = (0, exports.ClientApiFp)(configuration);
1573
1542
  return {
1574
- /**
1575
- * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
1576
- * @param {ClientApiClientRegisterRequest} requestParameters Request parameters.
1577
- * @param {*} [options] Override http request option.
1578
- * @throws {RequiredError}
1579
- */
1580
- clientRegister(requestParameters, options) {
1581
- return localVarFp.clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(axios, basePath));
1582
- },
1583
1543
  /**
1584
1544
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
1585
1545
  * @param {*} [options] Override http request option.
@@ -1589,7 +1549,7 @@ const ClientApiFactory = function (configuration, basePath, axios) {
1589
1549
  return localVarFp.getManagedClubs(options).then((request) => request(axios, basePath));
1590
1550
  },
1591
1551
  /**
1592
- * 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
1552
+ * 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
1593
1553
  * @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
1594
1554
  * @param {*} [options] Override http request option.
1595
1555
  * @throws {RequiredError}
@@ -1607,16 +1567,6 @@ exports.ClientApiFactory = ClientApiFactory;
1607
1567
  * @extends {BaseAPI}
1608
1568
  */
1609
1569
  class ClientApi extends base_1.BaseAPI {
1610
- /**
1611
- * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
1612
- * @param {ClientApiClientRegisterRequest} requestParameters Request parameters.
1613
- * @param {*} [options] Override http request option.
1614
- * @throws {RequiredError}
1615
- * @memberof ClientApi
1616
- */
1617
- clientRegister(requestParameters, options) {
1618
- return (0, exports.ClientApiFp)(this.configuration).clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(this.axios, this.basePath));
1619
- }
1620
1570
  /**
1621
1571
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
1622
1572
  * @param {*} [options] Override http request option.
@@ -1627,7 +1577,7 @@ class ClientApi extends base_1.BaseAPI {
1627
1577
  return (0, exports.ClientApiFp)(this.configuration).getManagedClubs(options).then((request) => request(this.axios, this.basePath));
1628
1578
  }
1629
1579
  /**
1630
- * 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
1580
+ * 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
1631
1581
  * @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
1632
1582
  * @param {*} [options] Override http request option.
1633
1583
  * @throws {RequiredError}
@@ -1639,18 +1589,18 @@ class ClientApi extends base_1.BaseAPI {
1639
1589
  }
1640
1590
  exports.ClientApi = ClientApi;
1641
1591
  /**
1642
- * ClubAnalyticsApi - axios parameter creator
1592
+ * ClientAccountsApi - axios parameter creator
1643
1593
  * @export
1644
1594
  */
1645
- const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
1595
+ const ClientAccountsApiAxiosParamCreator = function (configuration) {
1646
1596
  return {
1647
1597
  /**
1648
- * Récupère les clubs les plus aimés
1598
+ * Informations de l\'utilisateur client authentifié (token clientAuth)
1649
1599
  * @param {*} [options] Override http request option.
1650
1600
  * @throws {RequiredError}
1651
1601
  */
1652
- getMostLikedClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1653
- const localVarPath = `/api/club-analytics/most-liked-clubs`;
1602
+ clientAuthMe: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1603
+ const localVarPath = `/client-accounts/client-auth/me`;
1654
1604
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1655
1605
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1656
1606
  let baseOptions;
@@ -1660,7 +1610,7 @@ const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
1660
1610
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1661
1611
  const localVarHeaderParameter = {};
1662
1612
  const localVarQueryParameter = {};
1663
- // authentication bearerAuth required
1613
+ // authentication clientAuth required
1664
1614
  // http bearer authentication required
1665
1615
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1666
1616
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -1672,12 +1622,16 @@ const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
1672
1622
  };
1673
1623
  }),
1674
1624
  /**
1675
- * Récupère les clubs populaires
1625
+ * Récupère le compte client par son ID
1626
+ * @param {string} accountId L\'ID du compte client
1676
1627
  * @param {*} [options] Override http request option.
1677
1628
  * @throws {RequiredError}
1678
1629
  */
1679
- getPopularClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1680
- const localVarPath = `/api/club-analytics/popular-clubs`;
1630
+ getClientAccountById: (accountId_1, ...args_1) => __awaiter(this, [accountId_1, ...args_1], void 0, function* (accountId, options = {}) {
1631
+ // verify required parameter 'accountId' is not null or undefined
1632
+ (0, common_1.assertParamExists)('getClientAccountById', 'accountId', accountId);
1633
+ const localVarPath = `/client-accounts/{accountId}`
1634
+ .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
1681
1635
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1682
1636
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1683
1637
  let baseOptions;
@@ -1698,117 +1652,13 @@ const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
1698
1652
  options: localVarRequestOptions,
1699
1653
  };
1700
1654
  }),
1701
- };
1702
- };
1703
- exports.ClubAnalyticsApiAxiosParamCreator = ClubAnalyticsApiAxiosParamCreator;
1704
- /**
1705
- * ClubAnalyticsApi - functional programming interface
1706
- * @export
1707
- */
1708
- const ClubAnalyticsApiFp = function (configuration) {
1709
- const localVarAxiosParamCreator = (0, exports.ClubAnalyticsApiAxiosParamCreator)(configuration);
1710
- return {
1711
- /**
1712
- * Récupère les clubs les plus aimés
1713
- * @param {*} [options] Override http request option.
1714
- * @throws {RequiredError}
1715
- */
1716
- getMostLikedClub(options) {
1717
- return __awaiter(this, void 0, void 0, function* () {
1718
- var _a, _b, _c;
1719
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getMostLikedClub(options);
1720
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1721
- 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;
1722
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1723
- });
1724
- },
1725
- /**
1726
- * Récupère les clubs populaires
1727
- * @param {*} [options] Override http request option.
1728
- * @throws {RequiredError}
1729
- */
1730
- getPopularClubs(options) {
1731
- return __awaiter(this, void 0, void 0, function* () {
1732
- var _a, _b, _c;
1733
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPopularClubs(options);
1734
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1735
- 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;
1736
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1737
- });
1738
- },
1739
- };
1740
- };
1741
- exports.ClubAnalyticsApiFp = ClubAnalyticsApiFp;
1742
- /**
1743
- * ClubAnalyticsApi - factory interface
1744
- * @export
1745
- */
1746
- const ClubAnalyticsApiFactory = function (configuration, basePath, axios) {
1747
- const localVarFp = (0, exports.ClubAnalyticsApiFp)(configuration);
1748
- return {
1749
- /**
1750
- * Récupère les clubs les plus aimés
1751
- * @param {*} [options] Override http request option.
1752
- * @throws {RequiredError}
1753
- */
1754
- getMostLikedClub(options) {
1755
- return localVarFp.getMostLikedClub(options).then((request) => request(axios, basePath));
1756
- },
1757
- /**
1758
- * Récupère les clubs populaires
1759
- * @param {*} [options] Override http request option.
1760
- * @throws {RequiredError}
1761
- */
1762
- getPopularClubs(options) {
1763
- return localVarFp.getPopularClubs(options).then((request) => request(axios, basePath));
1764
- },
1765
- };
1766
- };
1767
- exports.ClubAnalyticsApiFactory = ClubAnalyticsApiFactory;
1768
- /**
1769
- * ClubAnalyticsApi - object-oriented interface
1770
- * @export
1771
- * @class ClubAnalyticsApi
1772
- * @extends {BaseAPI}
1773
- */
1774
- class ClubAnalyticsApi extends base_1.BaseAPI {
1775
- /**
1776
- * Récupère les clubs les plus aimés
1777
- * @param {*} [options] Override http request option.
1778
- * @throws {RequiredError}
1779
- * @memberof ClubAnalyticsApi
1780
- */
1781
- getMostLikedClub(options) {
1782
- return (0, exports.ClubAnalyticsApiFp)(this.configuration).getMostLikedClub(options).then((request) => request(this.axios, this.basePath));
1783
- }
1784
- /**
1785
- * Récupère les clubs populaires
1786
- * @param {*} [options] Override http request option.
1787
- * @throws {RequiredError}
1788
- * @memberof ClubAnalyticsApi
1789
- */
1790
- getPopularClubs(options) {
1791
- return (0, exports.ClubAnalyticsApiFp)(this.configuration).getPopularClubs(options).then((request) => request(this.axios, this.basePath));
1792
- }
1793
- }
1794
- exports.ClubAnalyticsApi = ClubAnalyticsApi;
1795
- /**
1796
- * ClubAnalyticsStaffApi - axios parameter creator
1797
- * @export
1798
- */
1799
- const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1800
- return {
1801
1655
  /**
1802
- * Récupère les analytics par sport
1803
- * @param {string} sportId
1656
+ * Récupère l\'abonnement actif du compte client authentifié
1804
1657
  * @param {*} [options] Override http request option.
1805
1658
  * @throws {RequiredError}
1806
1659
  */
1807
- getAnalyticsBySport: (sportId_1, ...args_1) => __awaiter(this, [sportId_1, ...args_1], void 0, function* (sportId, options = {}) {
1808
- // verify required parameter 'sportId' is not null or undefined
1809
- (0, common_1.assertParamExists)('getAnalyticsBySport', 'sportId', sportId);
1810
- const localVarPath = `/api/club-analytics/sport/{sportId}/analytics`
1811
- .replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)));
1660
+ getMyActiveSubscription: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1661
+ const localVarPath = `/client-accounts/me/subscription`;
1812
1662
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1813
1663
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1814
1664
  let baseOptions;
@@ -1830,18 +1680,12 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1830
1680
  };
1831
1681
  }),
1832
1682
  /**
1833
- * Récupère les réservations d\'un joueur par son ID (à venir et passées)
1834
- * @param {string} playerId
1835
- * @param {number} [page]
1836
- * @param {number} [pageSize]
1683
+ * Récupère le compte client de l\'utilisateur authentifié
1837
1684
  * @param {*} [options] Override http request option.
1838
1685
  * @throws {RequiredError}
1839
1686
  */
1840
- 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 = {}) {
1841
- // verify required parameter 'playerId' is not null or undefined
1842
- (0, common_1.assertParamExists)('getClubPlayerBookingsById', 'playerId', playerId);
1843
- const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
1844
- .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
1687
+ getMyClientAccount: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1688
+ const localVarPath = `/client-accounts/me`;
1845
1689
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1846
1690
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1847
1691
  let baseOptions;
@@ -1854,12 +1698,6 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1854
1698
  // authentication bearerAuth required
1855
1699
  // http bearer authentication required
1856
1700
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1857
- if (page !== undefined) {
1858
- localVarQueryParameter['page'] = page;
1859
- }
1860
- if (pageSize !== undefined) {
1861
- localVarQueryParameter['pageSize'] = pageSize;
1862
- }
1863
1701
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1864
1702
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1865
1703
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -1869,16 +1707,12 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1869
1707
  };
1870
1708
  }),
1871
1709
  /**
1872
- * Récupère les informations détaillées d\'un joueur par son ID
1873
- * @param {string} playerId
1710
+ * Récupère l\'historique des abonnements du compte client authentifié
1874
1711
  * @param {*} [options] Override http request option.
1875
1712
  * @throws {RequiredError}
1876
1713
  */
1877
- getClubPlayerById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
1878
- // verify required parameter 'playerId' is not null or undefined
1879
- (0, common_1.assertParamExists)('getClubPlayerById', 'playerId', playerId);
1880
- const localVarPath = `/api/club-analytics/players/{playerId}`
1881
- .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
1714
+ getSubscriptionsHistory: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1715
+ const localVarPath = `/client-accounts/me/subscriptions-history`;
1882
1716
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1883
1717
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1884
1718
  let baseOptions;
@@ -1900,16 +1734,12 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1900
1734
  };
1901
1735
  }),
1902
1736
  /**
1903
- * Récupère les statistiques d\'un joueur pour le staff
1904
- * @param {string} playerId
1737
+ * Liste les prix Stripe disponibles pour les abonnements client
1905
1738
  * @param {*} [options] Override http request option.
1906
1739
  * @throws {RequiredError}
1907
1740
  */
1908
- getClubPlayerStatisticsById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
1909
- // verify required parameter 'playerId' is not null or undefined
1910
- (0, common_1.assertParamExists)('getClubPlayerStatisticsById', 'playerId', playerId);
1911
- const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
1912
- .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
1741
+ listAvailablePrices: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1742
+ const localVarPath = `/client-accounts/plans/available-prices`;
1913
1743
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1914
1744
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1915
1745
  let baseOptions;
@@ -1931,96 +1761,738 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1931
1761
  };
1932
1762
  }),
1933
1763
  /**
1934
- * Récupère la liste des joueurs du club
1764
+ * Crée un nouveau compte client avec onboarding Stripe
1765
+ * @param {ClientAccountOnboardingRequest} clientAccountOnboardingRequest Les données du compte à créer
1935
1766
  * @param {*} [options] Override http request option.
1936
1767
  * @throws {RequiredError}
1937
1768
  */
1938
- getClubPlayers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1939
- const localVarPath = `/api/club-analytics/players`;
1769
+ onboardClientAccount: (clientAccountOnboardingRequest_1, ...args_1) => __awaiter(this, [clientAccountOnboardingRequest_1, ...args_1], void 0, function* (clientAccountOnboardingRequest, options = {}) {
1770
+ // verify required parameter 'clientAccountOnboardingRequest' is not null or undefined
1771
+ (0, common_1.assertParamExists)('onboardClientAccount', 'clientAccountOnboardingRequest', clientAccountOnboardingRequest);
1772
+ const localVarPath = `/client-accounts/onboarding`;
1940
1773
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1941
1774
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1942
1775
  let baseOptions;
1943
1776
  if (configuration) {
1944
1777
  baseOptions = configuration.baseOptions;
1945
1778
  }
1946
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1779
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1947
1780
  const localVarHeaderParameter = {};
1948
1781
  const localVarQueryParameter = {};
1949
- // authentication bearerAuth required
1782
+ // authentication clientAuth required
1950
1783
  // http bearer authentication required
1951
1784
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1785
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1952
1786
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1953
1787
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1954
1788
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1789
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clientAccountOnboardingRequest, localVarRequestOptions, configuration);
1955
1790
  return {
1956
1791
  url: (0, common_1.toPathString)(localVarUrlObj),
1957
1792
  options: localVarRequestOptions,
1958
1793
  };
1959
1794
  }),
1960
1795
  /**
1961
- * Récupère le chiffre d\'affaires quotidien
1962
- * @param {string} date
1796
+ * Route d\'inscription d\'un utilisateur client (publique)
1797
+ * @param {ClientRegisterRequestBody} clientRegisterRequestBody
1963
1798
  * @param {*} [options] Override http request option.
1964
1799
  * @throws {RequiredError}
1965
1800
  */
1966
- getDailyTurnOver: (date_1, ...args_1) => __awaiter(this, [date_1, ...args_1], void 0, function* (date, options = {}) {
1967
- // verify required parameter 'date' is not null or undefined
1968
- (0, common_1.assertParamExists)('getDailyTurnOver', 'date', date);
1969
- const localVarPath = `/api/club-analytics/daily-turnover`;
1801
+ registerClientUser: (clientRegisterRequestBody_1, ...args_1) => __awaiter(this, [clientRegisterRequestBody_1, ...args_1], void 0, function* (clientRegisterRequestBody, options = {}) {
1802
+ // verify required parameter 'clientRegisterRequestBody' is not null or undefined
1803
+ (0, common_1.assertParamExists)('registerClientUser', 'clientRegisterRequestBody', clientRegisterRequestBody);
1804
+ const localVarPath = `/client-accounts/register-client-user`;
1970
1805
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1971
1806
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1972
1807
  let baseOptions;
1973
1808
  if (configuration) {
1974
1809
  baseOptions = configuration.baseOptions;
1975
1810
  }
1976
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1811
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1977
1812
  const localVarHeaderParameter = {};
1978
1813
  const localVarQueryParameter = {};
1979
- // authentication bearerAuth required
1980
- // http bearer authentication required
1981
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1982
- if (date !== undefined) {
1983
- localVarQueryParameter['date'] = date;
1984
- }
1814
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1985
1815
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1986
1816
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1987
1817
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1818
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clientRegisterRequestBody, localVarRequestOptions, configuration);
1988
1819
  return {
1989
1820
  url: (0, common_1.toPathString)(localVarUrlObj),
1990
1821
  options: localVarRequestOptions,
1991
1822
  };
1992
1823
  }),
1824
+ };
1825
+ };
1826
+ exports.ClientAccountsApiAxiosParamCreator = ClientAccountsApiAxiosParamCreator;
1827
+ /**
1828
+ * ClientAccountsApi - functional programming interface
1829
+ * @export
1830
+ */
1831
+ const ClientAccountsApiFp = function (configuration) {
1832
+ const localVarAxiosParamCreator = (0, exports.ClientAccountsApiAxiosParamCreator)(configuration);
1833
+ return {
1993
1834
  /**
1994
- * Récupère les pourcentages par genre
1835
+ * Informations de l\'utilisateur client authentifié (token clientAuth)
1995
1836
  * @param {*} [options] Override http request option.
1996
1837
  * @throws {RequiredError}
1997
1838
  */
1998
- getGenderPercentage: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1999
- const localVarPath = `/api/club-analytics/gender-percentage`;
2000
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2001
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2002
- let baseOptions;
2003
- if (configuration) {
2004
- baseOptions = configuration.baseOptions;
2005
- }
2006
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2007
- const localVarHeaderParameter = {};
2008
- const localVarQueryParameter = {};
2009
- // authentication bearerAuth required
2010
- // http bearer authentication required
2011
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2012
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2013
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2014
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2015
- return {
2016
- url: (0, common_1.toPathString)(localVarUrlObj),
2017
- options: localVarRequestOptions,
2018
- };
2019
- }),
2020
- /**
2021
- * Récupère le taux de remplissage (infill) pour une période donnée
2022
- * @param {string} [startDate]
2023
- * @param {string} [endDate]
1839
+ clientAuthMe(options) {
1840
+ return __awaiter(this, void 0, void 0, function* () {
1841
+ var _a, _b, _c;
1842
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.clientAuthMe(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.clientAuthMe']) === 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
+ },
1848
+ /**
1849
+ * Récupère le compte client par son ID
1850
+ * @param {string} accountId L\'ID du compte client
1851
+ * @param {*} [options] Override http request option.
1852
+ * @throws {RequiredError}
1853
+ */
1854
+ getClientAccountById(accountId, options) {
1855
+ return __awaiter(this, void 0, void 0, function* () {
1856
+ var _a, _b, _c;
1857
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClientAccountById(accountId, options);
1858
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1859
+ 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;
1860
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1861
+ });
1862
+ },
1863
+ /**
1864
+ * Récupère l\'abonnement actif du compte client authentifié
1865
+ * @param {*} [options] Override http request option.
1866
+ * @throws {RequiredError}
1867
+ */
1868
+ getMyActiveSubscription(options) {
1869
+ return __awaiter(this, void 0, void 0, function* () {
1870
+ var _a, _b, _c;
1871
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMyActiveSubscription(options);
1872
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1873
+ 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;
1874
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1875
+ });
1876
+ },
1877
+ /**
1878
+ * Récupère le compte client de l\'utilisateur authentifié
1879
+ * @param {*} [options] Override http request option.
1880
+ * @throws {RequiredError}
1881
+ */
1882
+ getMyClientAccount(options) {
1883
+ return __awaiter(this, void 0, void 0, function* () {
1884
+ var _a, _b, _c;
1885
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMyClientAccount(options);
1886
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1887
+ 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;
1888
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1889
+ });
1890
+ },
1891
+ /**
1892
+ * Récupère l\'historique des abonnements du compte client authentifié
1893
+ * @param {*} [options] Override http request option.
1894
+ * @throws {RequiredError}
1895
+ */
1896
+ getSubscriptionsHistory(options) {
1897
+ return __awaiter(this, void 0, void 0, function* () {
1898
+ var _a, _b, _c;
1899
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSubscriptionsHistory(options);
1900
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1901
+ 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;
1902
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1903
+ });
1904
+ },
1905
+ /**
1906
+ * Liste les prix Stripe disponibles pour les abonnements client
1907
+ * @param {*} [options] Override http request option.
1908
+ * @throws {RequiredError}
1909
+ */
1910
+ listAvailablePrices(options) {
1911
+ return __awaiter(this, void 0, void 0, function* () {
1912
+ var _a, _b, _c;
1913
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listAvailablePrices(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.listAvailablePrices']) === 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
+ * Crée un nouveau compte client avec onboarding Stripe
1921
+ * @param {ClientAccountOnboardingRequest} clientAccountOnboardingRequest Les données du compte à créer
1922
+ * @param {*} [options] Override http request option.
1923
+ * @throws {RequiredError}
1924
+ */
1925
+ onboardClientAccount(clientAccountOnboardingRequest, options) {
1926
+ return __awaiter(this, void 0, void 0, function* () {
1927
+ var _a, _b, _c;
1928
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.onboardClientAccount(clientAccountOnboardingRequest, 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.onboardClientAccount']) === 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
+ * Route d\'inscription d\'un utilisateur client (publique)
1936
+ * @param {ClientRegisterRequestBody} clientRegisterRequestBody
1937
+ * @param {*} [options] Override http request option.
1938
+ * @throws {RequiredError}
1939
+ */
1940
+ registerClientUser(clientRegisterRequestBody, options) {
1941
+ return __awaiter(this, void 0, void 0, function* () {
1942
+ var _a, _b, _c;
1943
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.registerClientUser(clientRegisterRequestBody, options);
1944
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1945
+ 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;
1946
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1947
+ });
1948
+ },
1949
+ };
1950
+ };
1951
+ exports.ClientAccountsApiFp = ClientAccountsApiFp;
1952
+ /**
1953
+ * ClientAccountsApi - factory interface
1954
+ * @export
1955
+ */
1956
+ const ClientAccountsApiFactory = function (configuration, basePath, axios) {
1957
+ const localVarFp = (0, exports.ClientAccountsApiFp)(configuration);
1958
+ return {
1959
+ /**
1960
+ * Informations de l\'utilisateur client authentifié (token clientAuth)
1961
+ * @param {*} [options] Override http request option.
1962
+ * @throws {RequiredError}
1963
+ */
1964
+ clientAuthMe(options) {
1965
+ return localVarFp.clientAuthMe(options).then((request) => request(axios, basePath));
1966
+ },
1967
+ /**
1968
+ * Récupère le compte client par son ID
1969
+ * @param {ClientAccountsApiGetClientAccountByIdRequest} requestParameters Request parameters.
1970
+ * @param {*} [options] Override http request option.
1971
+ * @throws {RequiredError}
1972
+ */
1973
+ getClientAccountById(requestParameters, options) {
1974
+ return localVarFp.getClientAccountById(requestParameters.accountId, options).then((request) => request(axios, basePath));
1975
+ },
1976
+ /**
1977
+ * Récupère l\'abonnement actif du compte client authentifié
1978
+ * @param {*} [options] Override http request option.
1979
+ * @throws {RequiredError}
1980
+ */
1981
+ getMyActiveSubscription(options) {
1982
+ return localVarFp.getMyActiveSubscription(options).then((request) => request(axios, basePath));
1983
+ },
1984
+ /**
1985
+ * Récupère le compte client de l\'utilisateur authentifié
1986
+ * @param {*} [options] Override http request option.
1987
+ * @throws {RequiredError}
1988
+ */
1989
+ getMyClientAccount(options) {
1990
+ return localVarFp.getMyClientAccount(options).then((request) => request(axios, basePath));
1991
+ },
1992
+ /**
1993
+ * Récupère l\'historique des abonnements du compte client authentifié
1994
+ * @param {*} [options] Override http request option.
1995
+ * @throws {RequiredError}
1996
+ */
1997
+ getSubscriptionsHistory(options) {
1998
+ return localVarFp.getSubscriptionsHistory(options).then((request) => request(axios, basePath));
1999
+ },
2000
+ /**
2001
+ * Liste les prix Stripe disponibles pour les abonnements client
2002
+ * @param {*} [options] Override http request option.
2003
+ * @throws {RequiredError}
2004
+ */
2005
+ listAvailablePrices(options) {
2006
+ return localVarFp.listAvailablePrices(options).then((request) => request(axios, basePath));
2007
+ },
2008
+ /**
2009
+ * Crée un nouveau compte client avec onboarding Stripe
2010
+ * @param {ClientAccountsApiOnboardClientAccountRequest} requestParameters Request parameters.
2011
+ * @param {*} [options] Override http request option.
2012
+ * @throws {RequiredError}
2013
+ */
2014
+ onboardClientAccount(requestParameters, options) {
2015
+ return localVarFp.onboardClientAccount(requestParameters.clientAccountOnboardingRequest, options).then((request) => request(axios, basePath));
2016
+ },
2017
+ /**
2018
+ * Route d\'inscription d\'un utilisateur client (publique)
2019
+ * @param {ClientAccountsApiRegisterClientUserRequest} requestParameters Request parameters.
2020
+ * @param {*} [options] Override http request option.
2021
+ * @throws {RequiredError}
2022
+ */
2023
+ registerClientUser(requestParameters, options) {
2024
+ return localVarFp.registerClientUser(requestParameters.clientRegisterRequestBody, options).then((request) => request(axios, basePath));
2025
+ },
2026
+ };
2027
+ };
2028
+ exports.ClientAccountsApiFactory = ClientAccountsApiFactory;
2029
+ /**
2030
+ * ClientAccountsApi - object-oriented interface
2031
+ * @export
2032
+ * @class ClientAccountsApi
2033
+ * @extends {BaseAPI}
2034
+ */
2035
+ class ClientAccountsApi extends base_1.BaseAPI {
2036
+ /**
2037
+ * Informations de l\'utilisateur client authentifié (token clientAuth)
2038
+ * @param {*} [options] Override http request option.
2039
+ * @throws {RequiredError}
2040
+ * @memberof ClientAccountsApi
2041
+ */
2042
+ clientAuthMe(options) {
2043
+ return (0, exports.ClientAccountsApiFp)(this.configuration).clientAuthMe(options).then((request) => request(this.axios, this.basePath));
2044
+ }
2045
+ /**
2046
+ * Récupère le compte client par son ID
2047
+ * @param {ClientAccountsApiGetClientAccountByIdRequest} requestParameters Request parameters.
2048
+ * @param {*} [options] Override http request option.
2049
+ * @throws {RequiredError}
2050
+ * @memberof ClientAccountsApi
2051
+ */
2052
+ getClientAccountById(requestParameters, options) {
2053
+ return (0, exports.ClientAccountsApiFp)(this.configuration).getClientAccountById(requestParameters.accountId, options).then((request) => request(this.axios, this.basePath));
2054
+ }
2055
+ /**
2056
+ * Récupère l\'abonnement actif du compte client authentifié
2057
+ * @param {*} [options] Override http request option.
2058
+ * @throws {RequiredError}
2059
+ * @memberof ClientAccountsApi
2060
+ */
2061
+ getMyActiveSubscription(options) {
2062
+ return (0, exports.ClientAccountsApiFp)(this.configuration).getMyActiveSubscription(options).then((request) => request(this.axios, this.basePath));
2063
+ }
2064
+ /**
2065
+ * Récupère le compte client de l\'utilisateur authentifié
2066
+ * @param {*} [options] Override http request option.
2067
+ * @throws {RequiredError}
2068
+ * @memberof ClientAccountsApi
2069
+ */
2070
+ getMyClientAccount(options) {
2071
+ return (0, exports.ClientAccountsApiFp)(this.configuration).getMyClientAccount(options).then((request) => request(this.axios, this.basePath));
2072
+ }
2073
+ /**
2074
+ * Récupère l\'historique des abonnements du compte client authentifié
2075
+ * @param {*} [options] Override http request option.
2076
+ * @throws {RequiredError}
2077
+ * @memberof ClientAccountsApi
2078
+ */
2079
+ getSubscriptionsHistory(options) {
2080
+ return (0, exports.ClientAccountsApiFp)(this.configuration).getSubscriptionsHistory(options).then((request) => request(this.axios, this.basePath));
2081
+ }
2082
+ /**
2083
+ * Liste les prix Stripe disponibles pour les abonnements client
2084
+ * @param {*} [options] Override http request option.
2085
+ * @throws {RequiredError}
2086
+ * @memberof ClientAccountsApi
2087
+ */
2088
+ listAvailablePrices(options) {
2089
+ return (0, exports.ClientAccountsApiFp)(this.configuration).listAvailablePrices(options).then((request) => request(this.axios, this.basePath));
2090
+ }
2091
+ /**
2092
+ * Crée un nouveau compte client avec onboarding Stripe
2093
+ * @param {ClientAccountsApiOnboardClientAccountRequest} requestParameters Request parameters.
2094
+ * @param {*} [options] Override http request option.
2095
+ * @throws {RequiredError}
2096
+ * @memberof ClientAccountsApi
2097
+ */
2098
+ onboardClientAccount(requestParameters, options) {
2099
+ return (0, exports.ClientAccountsApiFp)(this.configuration).onboardClientAccount(requestParameters.clientAccountOnboardingRequest, options).then((request) => request(this.axios, this.basePath));
2100
+ }
2101
+ /**
2102
+ * Route d\'inscription d\'un utilisateur client (publique)
2103
+ * @param {ClientAccountsApiRegisterClientUserRequest} requestParameters Request parameters.
2104
+ * @param {*} [options] Override http request option.
2105
+ * @throws {RequiredError}
2106
+ * @memberof ClientAccountsApi
2107
+ */
2108
+ registerClientUser(requestParameters, options) {
2109
+ return (0, exports.ClientAccountsApiFp)(this.configuration).registerClientUser(requestParameters.clientRegisterRequestBody, options).then((request) => request(this.axios, this.basePath));
2110
+ }
2111
+ }
2112
+ exports.ClientAccountsApi = ClientAccountsApi;
2113
+ /**
2114
+ * ClubAnalyticsApi - axios parameter creator
2115
+ * @export
2116
+ */
2117
+ const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
2118
+ return {
2119
+ /**
2120
+ * Récupère les clubs les plus aimés
2121
+ * @param {*} [options] Override http request option.
2122
+ * @throws {RequiredError}
2123
+ */
2124
+ getMostLikedClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2125
+ const localVarPath = `/api/club-analytics/most-liked-clubs`;
2126
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2127
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2128
+ let baseOptions;
2129
+ if (configuration) {
2130
+ baseOptions = configuration.baseOptions;
2131
+ }
2132
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2133
+ const localVarHeaderParameter = {};
2134
+ const localVarQueryParameter = {};
2135
+ // authentication bearerAuth required
2136
+ // http bearer authentication required
2137
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2138
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2139
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2140
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2141
+ return {
2142
+ url: (0, common_1.toPathString)(localVarUrlObj),
2143
+ options: localVarRequestOptions,
2144
+ };
2145
+ }),
2146
+ /**
2147
+ * Récupère les clubs populaires
2148
+ * @param {*} [options] Override http request option.
2149
+ * @throws {RequiredError}
2150
+ */
2151
+ getPopularClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2152
+ const localVarPath = `/api/club-analytics/popular-clubs`;
2153
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2154
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2155
+ let baseOptions;
2156
+ if (configuration) {
2157
+ baseOptions = configuration.baseOptions;
2158
+ }
2159
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2160
+ const localVarHeaderParameter = {};
2161
+ const localVarQueryParameter = {};
2162
+ // authentication bearerAuth required
2163
+ // http bearer authentication required
2164
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2165
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2166
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2167
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2168
+ return {
2169
+ url: (0, common_1.toPathString)(localVarUrlObj),
2170
+ options: localVarRequestOptions,
2171
+ };
2172
+ }),
2173
+ };
2174
+ };
2175
+ exports.ClubAnalyticsApiAxiosParamCreator = ClubAnalyticsApiAxiosParamCreator;
2176
+ /**
2177
+ * ClubAnalyticsApi - functional programming interface
2178
+ * @export
2179
+ */
2180
+ const ClubAnalyticsApiFp = function (configuration) {
2181
+ const localVarAxiosParamCreator = (0, exports.ClubAnalyticsApiAxiosParamCreator)(configuration);
2182
+ return {
2183
+ /**
2184
+ * Récupère les clubs les plus aimés
2185
+ * @param {*} [options] Override http request option.
2186
+ * @throws {RequiredError}
2187
+ */
2188
+ getMostLikedClub(options) {
2189
+ return __awaiter(this, void 0, void 0, function* () {
2190
+ var _a, _b, _c;
2191
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMostLikedClub(options);
2192
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2193
+ 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;
2194
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2195
+ });
2196
+ },
2197
+ /**
2198
+ * Récupère les clubs populaires
2199
+ * @param {*} [options] Override http request option.
2200
+ * @throws {RequiredError}
2201
+ */
2202
+ getPopularClubs(options) {
2203
+ return __awaiter(this, void 0, void 0, function* () {
2204
+ var _a, _b, _c;
2205
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPopularClubs(options);
2206
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2207
+ 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;
2208
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2209
+ });
2210
+ },
2211
+ };
2212
+ };
2213
+ exports.ClubAnalyticsApiFp = ClubAnalyticsApiFp;
2214
+ /**
2215
+ * ClubAnalyticsApi - factory interface
2216
+ * @export
2217
+ */
2218
+ const ClubAnalyticsApiFactory = function (configuration, basePath, axios) {
2219
+ const localVarFp = (0, exports.ClubAnalyticsApiFp)(configuration);
2220
+ return {
2221
+ /**
2222
+ * Récupère les clubs les plus aimés
2223
+ * @param {*} [options] Override http request option.
2224
+ * @throws {RequiredError}
2225
+ */
2226
+ getMostLikedClub(options) {
2227
+ return localVarFp.getMostLikedClub(options).then((request) => request(axios, basePath));
2228
+ },
2229
+ /**
2230
+ * Récupère les clubs populaires
2231
+ * @param {*} [options] Override http request option.
2232
+ * @throws {RequiredError}
2233
+ */
2234
+ getPopularClubs(options) {
2235
+ return localVarFp.getPopularClubs(options).then((request) => request(axios, basePath));
2236
+ },
2237
+ };
2238
+ };
2239
+ exports.ClubAnalyticsApiFactory = ClubAnalyticsApiFactory;
2240
+ /**
2241
+ * ClubAnalyticsApi - object-oriented interface
2242
+ * @export
2243
+ * @class ClubAnalyticsApi
2244
+ * @extends {BaseAPI}
2245
+ */
2246
+ class ClubAnalyticsApi extends base_1.BaseAPI {
2247
+ /**
2248
+ * Récupère les clubs les plus aimés
2249
+ * @param {*} [options] Override http request option.
2250
+ * @throws {RequiredError}
2251
+ * @memberof ClubAnalyticsApi
2252
+ */
2253
+ getMostLikedClub(options) {
2254
+ return (0, exports.ClubAnalyticsApiFp)(this.configuration).getMostLikedClub(options).then((request) => request(this.axios, this.basePath));
2255
+ }
2256
+ /**
2257
+ * Récupère les clubs populaires
2258
+ * @param {*} [options] Override http request option.
2259
+ * @throws {RequiredError}
2260
+ * @memberof ClubAnalyticsApi
2261
+ */
2262
+ getPopularClubs(options) {
2263
+ return (0, exports.ClubAnalyticsApiFp)(this.configuration).getPopularClubs(options).then((request) => request(this.axios, this.basePath));
2264
+ }
2265
+ }
2266
+ exports.ClubAnalyticsApi = ClubAnalyticsApi;
2267
+ /**
2268
+ * ClubAnalyticsStaffApi - axios parameter creator
2269
+ * @export
2270
+ */
2271
+ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
2272
+ return {
2273
+ /**
2274
+ * Récupère les analytics par sport
2275
+ * @param {string} sportId
2276
+ * @param {*} [options] Override http request option.
2277
+ * @throws {RequiredError}
2278
+ */
2279
+ getAnalyticsBySport: (sportId_1, ...args_1) => __awaiter(this, [sportId_1, ...args_1], void 0, function* (sportId, options = {}) {
2280
+ // verify required parameter 'sportId' is not null or undefined
2281
+ (0, common_1.assertParamExists)('getAnalyticsBySport', 'sportId', sportId);
2282
+ const localVarPath = `/api/club-analytics/sport/{sportId}/analytics`
2283
+ .replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)));
2284
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2285
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2286
+ let baseOptions;
2287
+ if (configuration) {
2288
+ baseOptions = configuration.baseOptions;
2289
+ }
2290
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2291
+ const localVarHeaderParameter = {};
2292
+ const localVarQueryParameter = {};
2293
+ // authentication bearerAuth required
2294
+ // http bearer authentication required
2295
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2296
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2297
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2298
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2299
+ return {
2300
+ url: (0, common_1.toPathString)(localVarUrlObj),
2301
+ options: localVarRequestOptions,
2302
+ };
2303
+ }),
2304
+ /**
2305
+ * Récupère les réservations d\'un joueur par son ID (à venir et passées)
2306
+ * @param {string} playerId
2307
+ * @param {number} [page]
2308
+ * @param {number} [pageSize]
2309
+ * @param {*} [options] Override http request option.
2310
+ * @throws {RequiredError}
2311
+ */
2312
+ 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 = {}) {
2313
+ // verify required parameter 'playerId' is not null or undefined
2314
+ (0, common_1.assertParamExists)('getClubPlayerBookingsById', 'playerId', playerId);
2315
+ const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
2316
+ .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
2317
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2318
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2319
+ let baseOptions;
2320
+ if (configuration) {
2321
+ baseOptions = configuration.baseOptions;
2322
+ }
2323
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2324
+ const localVarHeaderParameter = {};
2325
+ const localVarQueryParameter = {};
2326
+ // authentication bearerAuth required
2327
+ // http bearer authentication required
2328
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2329
+ if (page !== undefined) {
2330
+ localVarQueryParameter['page'] = page;
2331
+ }
2332
+ if (pageSize !== undefined) {
2333
+ localVarQueryParameter['pageSize'] = pageSize;
2334
+ }
2335
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2336
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2337
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2338
+ return {
2339
+ url: (0, common_1.toPathString)(localVarUrlObj),
2340
+ options: localVarRequestOptions,
2341
+ };
2342
+ }),
2343
+ /**
2344
+ * Récupère les informations détaillées d\'un joueur par son ID
2345
+ * @param {string} playerId
2346
+ * @param {*} [options] Override http request option.
2347
+ * @throws {RequiredError}
2348
+ */
2349
+ getClubPlayerById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
2350
+ // verify required parameter 'playerId' is not null or undefined
2351
+ (0, common_1.assertParamExists)('getClubPlayerById', 'playerId', playerId);
2352
+ const localVarPath = `/api/club-analytics/players/{playerId}`
2353
+ .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
2354
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2355
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2356
+ let baseOptions;
2357
+ if (configuration) {
2358
+ baseOptions = configuration.baseOptions;
2359
+ }
2360
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2361
+ const localVarHeaderParameter = {};
2362
+ const localVarQueryParameter = {};
2363
+ // authentication bearerAuth required
2364
+ // http bearer authentication required
2365
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2366
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2367
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2368
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2369
+ return {
2370
+ url: (0, common_1.toPathString)(localVarUrlObj),
2371
+ options: localVarRequestOptions,
2372
+ };
2373
+ }),
2374
+ /**
2375
+ * Récupère les statistiques d\'un joueur pour le staff
2376
+ * @param {string} playerId
2377
+ * @param {*} [options] Override http request option.
2378
+ * @throws {RequiredError}
2379
+ */
2380
+ getClubPlayerStatisticsById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
2381
+ // verify required parameter 'playerId' is not null or undefined
2382
+ (0, common_1.assertParamExists)('getClubPlayerStatisticsById', 'playerId', playerId);
2383
+ const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
2384
+ .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
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
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2398
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2399
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2400
+ return {
2401
+ url: (0, common_1.toPathString)(localVarUrlObj),
2402
+ options: localVarRequestOptions,
2403
+ };
2404
+ }),
2405
+ /**
2406
+ * Récupère la liste des joueurs du club
2407
+ * @param {*} [options] Override http request option.
2408
+ * @throws {RequiredError}
2409
+ */
2410
+ getClubPlayers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2411
+ const localVarPath = `/api/club-analytics/players`;
2412
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2413
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2414
+ let baseOptions;
2415
+ if (configuration) {
2416
+ baseOptions = configuration.baseOptions;
2417
+ }
2418
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2419
+ const localVarHeaderParameter = {};
2420
+ const localVarQueryParameter = {};
2421
+ // authentication bearerAuth required
2422
+ // http bearer authentication required
2423
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2424
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2425
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2426
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2427
+ return {
2428
+ url: (0, common_1.toPathString)(localVarUrlObj),
2429
+ options: localVarRequestOptions,
2430
+ };
2431
+ }),
2432
+ /**
2433
+ * Récupère le chiffre d\'affaires quotidien
2434
+ * @param {string} date
2435
+ * @param {*} [options] Override http request option.
2436
+ * @throws {RequiredError}
2437
+ */
2438
+ getDailyTurnOver: (date_1, ...args_1) => __awaiter(this, [date_1, ...args_1], void 0, function* (date, options = {}) {
2439
+ // verify required parameter 'date' is not null or undefined
2440
+ (0, common_1.assertParamExists)('getDailyTurnOver', 'date', date);
2441
+ const localVarPath = `/api/club-analytics/daily-turnover`;
2442
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2443
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2444
+ let baseOptions;
2445
+ if (configuration) {
2446
+ baseOptions = configuration.baseOptions;
2447
+ }
2448
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2449
+ const localVarHeaderParameter = {};
2450
+ const localVarQueryParameter = {};
2451
+ // authentication bearerAuth required
2452
+ // http bearer authentication required
2453
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2454
+ if (date !== undefined) {
2455
+ localVarQueryParameter['date'] = date;
2456
+ }
2457
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2458
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2459
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2460
+ return {
2461
+ url: (0, common_1.toPathString)(localVarUrlObj),
2462
+ options: localVarRequestOptions,
2463
+ };
2464
+ }),
2465
+ /**
2466
+ * Récupère les pourcentages par genre
2467
+ * @param {*} [options] Override http request option.
2468
+ * @throws {RequiredError}
2469
+ */
2470
+ getGenderPercentage: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2471
+ const localVarPath = `/api/club-analytics/gender-percentage`;
2472
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2473
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2474
+ let baseOptions;
2475
+ if (configuration) {
2476
+ baseOptions = configuration.baseOptions;
2477
+ }
2478
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2479
+ const localVarHeaderParameter = {};
2480
+ const localVarQueryParameter = {};
2481
+ // authentication bearerAuth required
2482
+ // http bearer authentication required
2483
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2484
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2485
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2486
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2487
+ return {
2488
+ url: (0, common_1.toPathString)(localVarUrlObj),
2489
+ options: localVarRequestOptions,
2490
+ };
2491
+ }),
2492
+ /**
2493
+ * Récupère le taux de remplissage (infill) pour une période donnée
2494
+ * @param {string} [startDate]
2495
+ * @param {string} [endDate]
2024
2496
  * @param {*} [options] Override http request option.
2025
2497
  * @throws {RequiredError}
2026
2498
  */
@@ -4944,6 +5416,37 @@ const ClubsManagerApiAxiosParamCreator = function (configuration) {
4944
5416
  options: localVarRequestOptions,
4945
5417
  };
4946
5418
  }),
5419
+ /**
5420
+ * Supprime un membre d\'un club
5421
+ * @param {string} userId
5422
+ * @param {*} [options] Override http request option.
5423
+ * @throws {RequiredError}
5424
+ */
5425
+ deleteClubMember: (userId_1, ...args_1) => __awaiter(this, [userId_1, ...args_1], void 0, function* (userId, options = {}) {
5426
+ // verify required parameter 'userId' is not null or undefined
5427
+ (0, common_1.assertParamExists)('deleteClubMember', 'userId', userId);
5428
+ const localVarPath = `/api/clubs/members/{userId}`
5429
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
5430
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5431
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5432
+ let baseOptions;
5433
+ if (configuration) {
5434
+ baseOptions = configuration.baseOptions;
5435
+ }
5436
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
5437
+ const localVarHeaderParameter = {};
5438
+ const localVarQueryParameter = {};
5439
+ // authentication bearerAuth required
5440
+ // http bearer authentication required
5441
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5442
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5443
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5444
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5445
+ return {
5446
+ url: (0, common_1.toPathString)(localVarUrlObj),
5447
+ options: localVarRequestOptions,
5448
+ };
5449
+ }),
4947
5450
  /**
4948
5451
  * Supprime un terrain et ses créneaux futurs
4949
5452
  * @param {string} courtId
@@ -5482,6 +5985,21 @@ const ClubsManagerApiFp = function (configuration) {
5482
5985
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5483
5986
  });
5484
5987
  },
5988
+ /**
5989
+ * Supprime un membre d\'un club
5990
+ * @param {string} userId
5991
+ * @param {*} [options] Override http request option.
5992
+ * @throws {RequiredError}
5993
+ */
5994
+ deleteClubMember(userId, options) {
5995
+ return __awaiter(this, void 0, void 0, function* () {
5996
+ var _a, _b, _c;
5997
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClubMember(userId, options);
5998
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5999
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsManagerApi.deleteClubMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6000
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6001
+ });
6002
+ },
5485
6003
  /**
5486
6004
  * Supprime un terrain et ses créneaux futurs
5487
6005
  * @param {string} courtId
@@ -5753,6 +6271,15 @@ const ClubsManagerApiFactory = function (configuration, basePath, axios) {
5753
6271
  deleteActuality(requestParameters, options) {
5754
6272
  return localVarFp.deleteActuality(requestParameters.actualityId, options).then((request) => request(axios, basePath));
5755
6273
  },
6274
+ /**
6275
+ * Supprime un membre d\'un club
6276
+ * @param {ClubsManagerApiDeleteClubMemberRequest} requestParameters Request parameters.
6277
+ * @param {*} [options] Override http request option.
6278
+ * @throws {RequiredError}
6279
+ */
6280
+ deleteClubMember(requestParameters, options) {
6281
+ return localVarFp.deleteClubMember(requestParameters.userId, options).then((request) => request(axios, basePath));
6282
+ },
5756
6283
  /**
5757
6284
  * Supprime un terrain et ses créneaux futurs
5758
6285
  * @param {ClubsManagerApiDeleteCourtRequest} requestParameters Request parameters.
@@ -5949,6 +6476,16 @@ class ClubsManagerApi extends base_1.BaseAPI {
5949
6476
  deleteActuality(requestParameters, options) {
5950
6477
  return (0, exports.ClubsManagerApiFp)(this.configuration).deleteActuality(requestParameters.actualityId, options).then((request) => request(this.axios, this.basePath));
5951
6478
  }
6479
+ /**
6480
+ * Supprime un membre d\'un club
6481
+ * @param {ClubsManagerApiDeleteClubMemberRequest} requestParameters Request parameters.
6482
+ * @param {*} [options] Override http request option.
6483
+ * @throws {RequiredError}
6484
+ * @memberof ClubsManagerApi
6485
+ */
6486
+ deleteClubMember(requestParameters, options) {
6487
+ return (0, exports.ClubsManagerApiFp)(this.configuration).deleteClubMember(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
6488
+ }
5952
6489
  /**
5953
6490
  * Supprime un terrain et ses créneaux futurs
5954
6491
  * @param {ClubsManagerApiDeleteCourtRequest} requestParameters Request parameters.
@@ -6086,42 +6623,6 @@ exports.ClubsManagerApi = ClubsManagerApi;
6086
6623
  */
6087
6624
  const ClubsStaffApiAxiosParamCreator = function (configuration) {
6088
6625
  return {
6089
- /**
6090
- * Crée une facture manuelle (on-site) et l\'associe à une réservation
6091
- * @param {string} bookingId
6092
- * @param {CreateOnsiteInvoiceRequest} createOnsiteInvoiceRequest
6093
- * @param {*} [options] Override http request option.
6094
- * @throws {RequiredError}
6095
- */
6096
- createOnsiteInvoiceForBooking: (bookingId_1, createOnsiteInvoiceRequest_1, ...args_1) => __awaiter(this, [bookingId_1, createOnsiteInvoiceRequest_1, ...args_1], void 0, function* (bookingId, createOnsiteInvoiceRequest, options = {}) {
6097
- // verify required parameter 'bookingId' is not null or undefined
6098
- (0, common_1.assertParamExists)('createOnsiteInvoiceForBooking', 'bookingId', bookingId);
6099
- // verify required parameter 'createOnsiteInvoiceRequest' is not null or undefined
6100
- (0, common_1.assertParamExists)('createOnsiteInvoiceForBooking', 'createOnsiteInvoiceRequest', createOnsiteInvoiceRequest);
6101
- const localVarPath = `/api/clubs/staff/bookings/{bookingId}/invoices`
6102
- .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
6103
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
6104
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6105
- let baseOptions;
6106
- if (configuration) {
6107
- baseOptions = configuration.baseOptions;
6108
- }
6109
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
6110
- const localVarHeaderParameter = {};
6111
- const localVarQueryParameter = {};
6112
- // authentication bearerAuth required
6113
- // http bearer authentication required
6114
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6115
- localVarHeaderParameter['Content-Type'] = 'application/json';
6116
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6117
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6118
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6119
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createOnsiteInvoiceRequest, localVarRequestOptions, configuration);
6120
- return {
6121
- url: (0, common_1.toPathString)(localVarUrlObj),
6122
- options: localVarRequestOptions,
6123
- };
6124
- }),
6125
6626
  /**
6126
6627
  *
6127
6628
  * @param {*} [options] Override http request option.
@@ -6342,6 +6843,42 @@ const ClubsStaffApiAxiosParamCreator = function (configuration) {
6342
6843
  options: localVarRequestOptions,
6343
6844
  };
6344
6845
  }),
6846
+ /**
6847
+ *
6848
+ * @param {string} id
6849
+ * @param {UpdateUserCreditsRequest} updateUserCreditsRequest
6850
+ * @param {*} [options] Override http request option.
6851
+ * @throws {RequiredError}
6852
+ */
6853
+ updateUserCreditsStaff: (id_1, updateUserCreditsRequest_1, ...args_1) => __awaiter(this, [id_1, updateUserCreditsRequest_1, ...args_1], void 0, function* (id, updateUserCreditsRequest, options = {}) {
6854
+ // verify required parameter 'id' is not null or undefined
6855
+ (0, common_1.assertParamExists)('updateUserCreditsStaff', 'id', id);
6856
+ // verify required parameter 'updateUserCreditsRequest' is not null or undefined
6857
+ (0, common_1.assertParamExists)('updateUserCreditsStaff', 'updateUserCreditsRequest', updateUserCreditsRequest);
6858
+ const localVarPath = `/api/clubs/staff/user-credits/{id}`
6859
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
6860
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6861
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6862
+ let baseOptions;
6863
+ if (configuration) {
6864
+ baseOptions = configuration.baseOptions;
6865
+ }
6866
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
6867
+ const localVarHeaderParameter = {};
6868
+ const localVarQueryParameter = {};
6869
+ // authentication bearerAuth required
6870
+ // http bearer authentication required
6871
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6872
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6873
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6874
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6875
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6876
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateUserCreditsRequest, localVarRequestOptions, configuration);
6877
+ return {
6878
+ url: (0, common_1.toPathString)(localVarUrlObj),
6879
+ options: localVarRequestOptions,
6880
+ };
6881
+ }),
6345
6882
  };
6346
6883
  };
6347
6884
  exports.ClubsStaffApiAxiosParamCreator = ClubsStaffApiAxiosParamCreator;
@@ -6352,22 +6889,6 @@ exports.ClubsStaffApiAxiosParamCreator = ClubsStaffApiAxiosParamCreator;
6352
6889
  const ClubsStaffApiFp = function (configuration) {
6353
6890
  const localVarAxiosParamCreator = (0, exports.ClubsStaffApiAxiosParamCreator)(configuration);
6354
6891
  return {
6355
- /**
6356
- * Crée une facture manuelle (on-site) et l\'associe à une réservation
6357
- * @param {string} bookingId
6358
- * @param {CreateOnsiteInvoiceRequest} createOnsiteInvoiceRequest
6359
- * @param {*} [options] Override http request option.
6360
- * @throws {RequiredError}
6361
- */
6362
- createOnsiteInvoiceForBooking(bookingId, createOnsiteInvoiceRequest, options) {
6363
- return __awaiter(this, void 0, void 0, function* () {
6364
- var _a, _b, _c;
6365
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createOnsiteInvoiceForBooking(bookingId, createOnsiteInvoiceRequest, options);
6366
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6367
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsStaffApi.createOnsiteInvoiceForBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6368
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6369
- });
6370
- },
6371
6892
  /**
6372
6893
  *
6373
6894
  * @param {*} [options] Override http request option.
@@ -6481,6 +7002,22 @@ const ClubsStaffApiFp = function (configuration) {
6481
7002
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6482
7003
  });
6483
7004
  },
7005
+ /**
7006
+ *
7007
+ * @param {string} id
7008
+ * @param {UpdateUserCreditsRequest} updateUserCreditsRequest
7009
+ * @param {*} [options] Override http request option.
7010
+ * @throws {RequiredError}
7011
+ */
7012
+ updateUserCreditsStaff(id, updateUserCreditsRequest, options) {
7013
+ return __awaiter(this, void 0, void 0, function* () {
7014
+ var _a, _b, _c;
7015
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserCreditsStaff(id, updateUserCreditsRequest, options);
7016
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7017
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubsStaffApi.updateUserCreditsStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7018
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7019
+ });
7020
+ },
6484
7021
  };
6485
7022
  };
6486
7023
  exports.ClubsStaffApiFp = ClubsStaffApiFp;
@@ -6491,15 +7028,6 @@ exports.ClubsStaffApiFp = ClubsStaffApiFp;
6491
7028
  const ClubsStaffApiFactory = function (configuration, basePath, axios) {
6492
7029
  const localVarFp = (0, exports.ClubsStaffApiFp)(configuration);
6493
7030
  return {
6494
- /**
6495
- * Crée une facture manuelle (on-site) et l\'associe à une réservation
6496
- * @param {ClubsStaffApiCreateOnsiteInvoiceForBookingRequest} requestParameters Request parameters.
6497
- * @param {*} [options] Override http request option.
6498
- * @throws {RequiredError}
6499
- */
6500
- createOnsiteInvoiceForBooking(requestParameters, options) {
6501
- return localVarFp.createOnsiteInvoiceForBooking(requestParameters.bookingId, requestParameters.createOnsiteInvoiceRequest, options).then((request) => request(axios, basePath));
6502
- },
6503
7031
  /**
6504
7032
  *
6505
7033
  * @param {*} [options] Override http request option.
@@ -6565,6 +7093,15 @@ const ClubsStaffApiFactory = function (configuration, basePath, axios) {
6565
7093
  getUserProfileStaff(requestParameters, options) {
6566
7094
  return localVarFp.getUserProfileStaff(requestParameters.id, options).then((request) => request(axios, basePath));
6567
7095
  },
7096
+ /**
7097
+ *
7098
+ * @param {ClubsStaffApiUpdateUserCreditsStaffRequest} requestParameters Request parameters.
7099
+ * @param {*} [options] Override http request option.
7100
+ * @throws {RequiredError}
7101
+ */
7102
+ updateUserCreditsStaff(requestParameters, options) {
7103
+ return localVarFp.updateUserCreditsStaff(requestParameters.id, requestParameters.updateUserCreditsRequest, options).then((request) => request(axios, basePath));
7104
+ },
6568
7105
  };
6569
7106
  };
6570
7107
  exports.ClubsStaffApiFactory = ClubsStaffApiFactory;
@@ -6575,16 +7112,6 @@ exports.ClubsStaffApiFactory = ClubsStaffApiFactory;
6575
7112
  * @extends {BaseAPI}
6576
7113
  */
6577
7114
  class ClubsStaffApi extends base_1.BaseAPI {
6578
- /**
6579
- * Crée une facture manuelle (on-site) et l\'associe à une réservation
6580
- * @param {ClubsStaffApiCreateOnsiteInvoiceForBookingRequest} requestParameters Request parameters.
6581
- * @param {*} [options] Override http request option.
6582
- * @throws {RequiredError}
6583
- * @memberof ClubsStaffApi
6584
- */
6585
- createOnsiteInvoiceForBooking(requestParameters, options) {
6586
- return (0, exports.ClubsStaffApiFp)(this.configuration).createOnsiteInvoiceForBooking(requestParameters.bookingId, requestParameters.createOnsiteInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
6587
- }
6588
7115
  /**
6589
7116
  *
6590
7117
  * @param {*} [options] Override http request option.
@@ -6658,6 +7185,16 @@ class ClubsStaffApi extends base_1.BaseAPI {
6658
7185
  getUserProfileStaff(requestParameters, options) {
6659
7186
  return (0, exports.ClubsStaffApiFp)(this.configuration).getUserProfileStaff(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
6660
7187
  }
7188
+ /**
7189
+ *
7190
+ * @param {ClubsStaffApiUpdateUserCreditsStaffRequest} requestParameters Request parameters.
7191
+ * @param {*} [options] Override http request option.
7192
+ * @throws {RequiredError}
7193
+ * @memberof ClubsStaffApi
7194
+ */
7195
+ updateUserCreditsStaff(requestParameters, options) {
7196
+ return (0, exports.ClubsStaffApiFp)(this.configuration).updateUserCreditsStaff(requestParameters.id, requestParameters.updateUserCreditsRequest, options).then((request) => request(this.axios, this.basePath));
7197
+ }
6661
7198
  }
6662
7199
  exports.ClubsStaffApi = ClubsStaffApi;
6663
7200
  /**
@@ -7095,38 +7632,6 @@ exports.GetPublishedEventsByClubIdTypeEnum = {
7095
7632
  */
7096
7633
  const EventsManagerApiAxiosParamCreator = function (configuration) {
7097
7634
  return {
7098
- /**
7099
- * Check if there are bookings overlapping an event window (for create/update/delete)
7100
- * @param {EventConflictCheckRequest} eventConflictCheckRequest
7101
- * @param {*} [options] Override http request option.
7102
- * @throws {RequiredError}
7103
- */
7104
- checkEventConflicts: (eventConflictCheckRequest_1, ...args_1) => __awaiter(this, [eventConflictCheckRequest_1, ...args_1], void 0, function* (eventConflictCheckRequest, options = {}) {
7105
- // verify required parameter 'eventConflictCheckRequest' is not null or undefined
7106
- (0, common_1.assertParamExists)('checkEventConflicts', 'eventConflictCheckRequest', eventConflictCheckRequest);
7107
- const localVarPath = `/api/events/manager/checkConflicts`;
7108
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
7109
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7110
- let baseOptions;
7111
- if (configuration) {
7112
- baseOptions = configuration.baseOptions;
7113
- }
7114
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
7115
- const localVarHeaderParameter = {};
7116
- const localVarQueryParameter = {};
7117
- // authentication bearerAuth required
7118
- // http bearer authentication required
7119
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7120
- localVarHeaderParameter['Content-Type'] = 'application/json';
7121
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7122
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7123
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7124
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(eventConflictCheckRequest, localVarRequestOptions, configuration);
7125
- return {
7126
- url: (0, common_1.toPathString)(localVarUrlObj),
7127
- options: localVarRequestOptions,
7128
- };
7129
- }),
7130
7635
  /**
7131
7636
  * Create a new event (manager)
7132
7637
  * @param {CreateEventRequest} createEventRequest
@@ -7222,49 +7727,15 @@ const EventsManagerApiAxiosParamCreator = function (configuration) {
7222
7727
  };
7223
7728
  }),
7224
7729
  /**
7225
- * Unpublish an event (manager)
7226
- * @param {string} eventId
7227
- * @param {*} [options] Override http request option.
7228
- * @throws {RequiredError}
7229
- */
7230
- unpublishEvent: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
7231
- // verify required parameter 'eventId' is not null or undefined
7232
- (0, common_1.assertParamExists)('unpublishEvent', 'eventId', eventId);
7233
- const localVarPath = `/api/events/manager/unpublishEvent/{eventId}`
7234
- .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
7235
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
7236
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7237
- let baseOptions;
7238
- if (configuration) {
7239
- baseOptions = configuration.baseOptions;
7240
- }
7241
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
7242
- const localVarHeaderParameter = {};
7243
- const localVarQueryParameter = {};
7244
- // authentication bearerAuth required
7245
- // http bearer authentication required
7246
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7247
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7248
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7249
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7250
- return {
7251
- url: (0, common_1.toPathString)(localVarUrlObj),
7252
- options: localVarRequestOptions,
7253
- };
7254
- }),
7255
- /**
7256
- * Update an event (manager)
7730
+ * Unpublish an event (manager)
7257
7731
  * @param {string} eventId
7258
- * @param {UpdateEventRequest} updateEventRequest
7259
7732
  * @param {*} [options] Override http request option.
7260
7733
  * @throws {RequiredError}
7261
7734
  */
7262
- updateEvent: (eventId_1, updateEventRequest_1, ...args_1) => __awaiter(this, [eventId_1, updateEventRequest_1, ...args_1], void 0, function* (eventId, updateEventRequest, options = {}) {
7735
+ unpublishEvent: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
7263
7736
  // verify required parameter 'eventId' is not null or undefined
7264
- (0, common_1.assertParamExists)('updateEvent', 'eventId', eventId);
7265
- // verify required parameter 'updateEventRequest' is not null or undefined
7266
- (0, common_1.assertParamExists)('updateEvent', 'updateEventRequest', updateEventRequest);
7267
- const localVarPath = `/api/events/manager/updateEvent/{eventId}`
7737
+ (0, common_1.assertParamExists)('unpublishEvent', 'eventId', eventId);
7738
+ const localVarPath = `/api/events/manager/unpublishEvent/{eventId}`
7268
7739
  .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
7269
7740
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7270
7741
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -7278,29 +7749,27 @@ const EventsManagerApiAxiosParamCreator = function (configuration) {
7278
7749
  // authentication bearerAuth required
7279
7750
  // http bearer authentication required
7280
7751
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7281
- localVarHeaderParameter['Content-Type'] = 'application/json';
7282
7752
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7283
7753
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7284
7754
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7285
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateEventRequest, localVarRequestOptions, configuration);
7286
7755
  return {
7287
7756
  url: (0, common_1.toPathString)(localVarUrlObj),
7288
7757
  options: localVarRequestOptions,
7289
7758
  };
7290
7759
  }),
7291
7760
  /**
7292
- * Update a published event (manager) and propagate slot changes and conflicts
7761
+ * Update an event (manager)
7293
7762
  * @param {string} eventId
7294
7763
  * @param {UpdateEventRequest} updateEventRequest
7295
7764
  * @param {*} [options] Override http request option.
7296
7765
  * @throws {RequiredError}
7297
7766
  */
7298
- updatePublishedEvent: (eventId_1, updateEventRequest_1, ...args_1) => __awaiter(this, [eventId_1, updateEventRequest_1, ...args_1], void 0, function* (eventId, updateEventRequest, options = {}) {
7767
+ updateEvent: (eventId_1, updateEventRequest_1, ...args_1) => __awaiter(this, [eventId_1, updateEventRequest_1, ...args_1], void 0, function* (eventId, updateEventRequest, options = {}) {
7299
7768
  // verify required parameter 'eventId' is not null or undefined
7300
- (0, common_1.assertParamExists)('updatePublishedEvent', 'eventId', eventId);
7769
+ (0, common_1.assertParamExists)('updateEvent', 'eventId', eventId);
7301
7770
  // verify required parameter 'updateEventRequest' is not null or undefined
7302
- (0, common_1.assertParamExists)('updatePublishedEvent', 'updateEventRequest', updateEventRequest);
7303
- const localVarPath = `/api/events/manager/updatePublishedEvent/{eventId}`
7771
+ (0, common_1.assertParamExists)('updateEvent', 'updateEventRequest', updateEventRequest);
7772
+ const localVarPath = `/api/events/manager/updateEvent/{eventId}`
7304
7773
  .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
7305
7774
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7306
7775
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -7334,21 +7803,6 @@ exports.EventsManagerApiAxiosParamCreator = EventsManagerApiAxiosParamCreator;
7334
7803
  const EventsManagerApiFp = function (configuration) {
7335
7804
  const localVarAxiosParamCreator = (0, exports.EventsManagerApiAxiosParamCreator)(configuration);
7336
7805
  return {
7337
- /**
7338
- * Check if there are bookings overlapping an event window (for create/update/delete)
7339
- * @param {EventConflictCheckRequest} eventConflictCheckRequest
7340
- * @param {*} [options] Override http request option.
7341
- * @throws {RequiredError}
7342
- */
7343
- checkEventConflicts(eventConflictCheckRequest, options) {
7344
- return __awaiter(this, void 0, void 0, function* () {
7345
- var _a, _b, _c;
7346
- const localVarAxiosArgs = yield localVarAxiosParamCreator.checkEventConflicts(eventConflictCheckRequest, options);
7347
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7348
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsManagerApi.checkEventConflicts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7349
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7350
- });
7351
- },
7352
7806
  /**
7353
7807
  * Create a new event (manager)
7354
7808
  * @param {CreateEventRequest} createEventRequest
@@ -7425,22 +7879,6 @@ const EventsManagerApiFp = function (configuration) {
7425
7879
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7426
7880
  });
7427
7881
  },
7428
- /**
7429
- * Update a published event (manager) and propagate slot changes and conflicts
7430
- * @param {string} eventId
7431
- * @param {UpdateEventRequest} updateEventRequest
7432
- * @param {*} [options] Override http request option.
7433
- * @throws {RequiredError}
7434
- */
7435
- updatePublishedEvent(eventId, updateEventRequest, options) {
7436
- return __awaiter(this, void 0, void 0, function* () {
7437
- var _a, _b, _c;
7438
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePublishedEvent(eventId, updateEventRequest, options);
7439
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7440
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsManagerApi.updatePublishedEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7441
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7442
- });
7443
- },
7444
7882
  };
7445
7883
  };
7446
7884
  exports.EventsManagerApiFp = EventsManagerApiFp;
@@ -7451,15 +7889,6 @@ exports.EventsManagerApiFp = EventsManagerApiFp;
7451
7889
  const EventsManagerApiFactory = function (configuration, basePath, axios) {
7452
7890
  const localVarFp = (0, exports.EventsManagerApiFp)(configuration);
7453
7891
  return {
7454
- /**
7455
- * Check if there are bookings overlapping an event window (for create/update/delete)
7456
- * @param {EventsManagerApiCheckEventConflictsRequest} requestParameters Request parameters.
7457
- * @param {*} [options] Override http request option.
7458
- * @throws {RequiredError}
7459
- */
7460
- checkEventConflicts(requestParameters, options) {
7461
- return localVarFp.checkEventConflicts(requestParameters.eventConflictCheckRequest, options).then((request) => request(axios, basePath));
7462
- },
7463
7892
  /**
7464
7893
  * Create a new event (manager)
7465
7894
  * @param {EventsManagerApiCreateEventRequest} requestParameters Request parameters.
@@ -7505,15 +7934,6 @@ const EventsManagerApiFactory = function (configuration, basePath, axios) {
7505
7934
  updateEvent(requestParameters, options) {
7506
7935
  return localVarFp.updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(axios, basePath));
7507
7936
  },
7508
- /**
7509
- * Update a published event (manager) and propagate slot changes and conflicts
7510
- * @param {EventsManagerApiUpdatePublishedEventRequest} requestParameters Request parameters.
7511
- * @param {*} [options] Override http request option.
7512
- * @throws {RequiredError}
7513
- */
7514
- updatePublishedEvent(requestParameters, options) {
7515
- return localVarFp.updatePublishedEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(axios, basePath));
7516
- },
7517
7937
  };
7518
7938
  };
7519
7939
  exports.EventsManagerApiFactory = EventsManagerApiFactory;
@@ -7524,16 +7944,6 @@ exports.EventsManagerApiFactory = EventsManagerApiFactory;
7524
7944
  * @extends {BaseAPI}
7525
7945
  */
7526
7946
  class EventsManagerApi extends base_1.BaseAPI {
7527
- /**
7528
- * Check if there are bookings overlapping an event window (for create/update/delete)
7529
- * @param {EventsManagerApiCheckEventConflictsRequest} requestParameters Request parameters.
7530
- * @param {*} [options] Override http request option.
7531
- * @throws {RequiredError}
7532
- * @memberof EventsManagerApi
7533
- */
7534
- checkEventConflicts(requestParameters, options) {
7535
- return (0, exports.EventsManagerApiFp)(this.configuration).checkEventConflicts(requestParameters.eventConflictCheckRequest, options).then((request) => request(this.axios, this.basePath));
7536
- }
7537
7947
  /**
7538
7948
  * Create a new event (manager)
7539
7949
  * @param {EventsManagerApiCreateEventRequest} requestParameters Request parameters.
@@ -7584,16 +7994,6 @@ class EventsManagerApi extends base_1.BaseAPI {
7584
7994
  updateEvent(requestParameters, options) {
7585
7995
  return (0, exports.EventsManagerApiFp)(this.configuration).updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(this.axios, this.basePath));
7586
7996
  }
7587
- /**
7588
- * Update a published event (manager) and propagate slot changes and conflicts
7589
- * @param {EventsManagerApiUpdatePublishedEventRequest} requestParameters Request parameters.
7590
- * @param {*} [options] Override http request option.
7591
- * @throws {RequiredError}
7592
- * @memberof EventsManagerApi
7593
- */
7594
- updatePublishedEvent(requestParameters, options) {
7595
- return (0, exports.EventsManagerApiFp)(this.configuration).updatePublishedEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(this.axios, this.basePath));
7596
- }
7597
7997
  }
7598
7998
  exports.EventsManagerApi = EventsManagerApi;
7599
7999
  /**
@@ -7603,36 +8003,47 @@ exports.EventsManagerApi = EventsManagerApi;
7603
8003
  const EventsStaffApiAxiosParamCreator = function (configuration) {
7604
8004
  return {
7605
8005
  /**
7606
- * Check-in des participants d\'un EventBooking (clubs avec paiements)
7607
- * @param {string} eventBookingId
7608
- * @param {CheckInEventParticipantsRequest} checkInEventParticipantsRequest
8006
+ * Get events for the day view (entire week)
8007
+ * @param {string} [clubId]
8008
+ * @param {string} [date]
8009
+ * @param {GetDailyEventsVisibilityTypeEnum} [visibilityType]
8010
+ * @param {GetDailyEventsTypeEnum} [type]
8011
+ * @param {string} [sportId]
7609
8012
  * @param {*} [options] Override http request option.
7610
8013
  * @throws {RequiredError}
7611
8014
  */
7612
- checkInEventParticipants: (eventBookingId_1, checkInEventParticipantsRequest_1, ...args_1) => __awaiter(this, [eventBookingId_1, checkInEventParticipantsRequest_1, ...args_1], void 0, function* (eventBookingId, checkInEventParticipantsRequest, options = {}) {
7613
- // verify required parameter 'eventBookingId' is not null or undefined
7614
- (0, common_1.assertParamExists)('checkInEventParticipants', 'eventBookingId', eventBookingId);
7615
- // verify required parameter 'checkInEventParticipantsRequest' is not null or undefined
7616
- (0, common_1.assertParamExists)('checkInEventParticipants', 'checkInEventParticipantsRequest', checkInEventParticipantsRequest);
7617
- const localVarPath = `/api/events/{eventBookingId}/check-in`
7618
- .replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
8015
+ getDailyEvents: (clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1) => __awaiter(this, [clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1], void 0, function* (clubId, date, visibilityType, type, sportId, options = {}) {
8016
+ const localVarPath = `/api/events/calendar/daily`;
7619
8017
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7620
8018
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7621
8019
  let baseOptions;
7622
8020
  if (configuration) {
7623
8021
  baseOptions = configuration.baseOptions;
7624
8022
  }
7625
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
8023
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7626
8024
  const localVarHeaderParameter = {};
7627
8025
  const localVarQueryParameter = {};
7628
8026
  // authentication bearerAuth required
7629
8027
  // http bearer authentication required
7630
8028
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7631
- localVarHeaderParameter['Content-Type'] = 'application/json';
8029
+ if (clubId !== undefined) {
8030
+ localVarQueryParameter['clubId'] = clubId;
8031
+ }
8032
+ if (date !== undefined) {
8033
+ localVarQueryParameter['date'] = date;
8034
+ }
8035
+ if (visibilityType !== undefined) {
8036
+ localVarQueryParameter['visibilityType'] = visibilityType;
8037
+ }
8038
+ if (type !== undefined) {
8039
+ localVarQueryParameter['type'] = type;
8040
+ }
8041
+ if (sportId !== undefined) {
8042
+ localVarQueryParameter['sportId'] = sportId;
8043
+ }
7632
8044
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7633
8045
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7634
8046
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7635
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(checkInEventParticipantsRequest, localVarRequestOptions, configuration);
7636
8047
  return {
7637
8048
  url: (0, common_1.toPathString)(localVarUrlObj),
7638
8049
  options: localVarRequestOptions,
@@ -7665,6 +8076,100 @@ const EventsStaffApiAxiosParamCreator = function (configuration) {
7665
8076
  options: localVarRequestOptions,
7666
8077
  };
7667
8078
  }),
8079
+ /**
8080
+ * Get events for the entire month view (including recurring occurrences)
8081
+ * @param {string} [clubId]
8082
+ * @param {string} [date]
8083
+ * @param {GetMonthlyEventsVisibilityTypeEnum} [visibilityType]
8084
+ * @param {GetMonthlyEventsTypeEnum} [type]
8085
+ * @param {string} [sportId]
8086
+ * @param {*} [options] Override http request option.
8087
+ * @throws {RequiredError}
8088
+ */
8089
+ getMonthlyEvents: (clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1) => __awaiter(this, [clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1], void 0, function* (clubId, date, visibilityType, type, sportId, options = {}) {
8090
+ const localVarPath = `/api/events/calendar/monthly`;
8091
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8092
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8093
+ let baseOptions;
8094
+ if (configuration) {
8095
+ baseOptions = configuration.baseOptions;
8096
+ }
8097
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8098
+ const localVarHeaderParameter = {};
8099
+ const localVarQueryParameter = {};
8100
+ // authentication bearerAuth required
8101
+ // http bearer authentication required
8102
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
8103
+ if (clubId !== undefined) {
8104
+ localVarQueryParameter['clubId'] = clubId;
8105
+ }
8106
+ if (date !== undefined) {
8107
+ localVarQueryParameter['date'] = date;
8108
+ }
8109
+ if (visibilityType !== undefined) {
8110
+ localVarQueryParameter['visibilityType'] = visibilityType;
8111
+ }
8112
+ if (type !== undefined) {
8113
+ localVarQueryParameter['type'] = type;
8114
+ }
8115
+ if (sportId !== undefined) {
8116
+ localVarQueryParameter['sportId'] = sportId;
8117
+ }
8118
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8119
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8120
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8121
+ return {
8122
+ url: (0, common_1.toPathString)(localVarUrlObj),
8123
+ options: localVarRequestOptions,
8124
+ };
8125
+ }),
8126
+ /**
8127
+ * Get events for the week view (30 day sliding window)
8128
+ * @param {string} [clubId]
8129
+ * @param {string} [date]
8130
+ * @param {GetWeeklyEventsVisibilityTypeEnum} [visibilityType]
8131
+ * @param {GetWeeklyEventsTypeEnum} [type]
8132
+ * @param {string} [sportId]
8133
+ * @param {*} [options] Override http request option.
8134
+ * @throws {RequiredError}
8135
+ */
8136
+ getWeeklyEvents: (clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1) => __awaiter(this, [clubId_1, date_1, visibilityType_1, type_1, sportId_1, ...args_1], void 0, function* (clubId, date, visibilityType, type, sportId, options = {}) {
8137
+ const localVarPath = `/api/events/calendar/weekly`;
8138
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8139
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8140
+ let baseOptions;
8141
+ if (configuration) {
8142
+ baseOptions = configuration.baseOptions;
8143
+ }
8144
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8145
+ const localVarHeaderParameter = {};
8146
+ const localVarQueryParameter = {};
8147
+ // authentication bearerAuth required
8148
+ // http bearer authentication required
8149
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
8150
+ if (clubId !== undefined) {
8151
+ localVarQueryParameter['clubId'] = clubId;
8152
+ }
8153
+ if (date !== undefined) {
8154
+ localVarQueryParameter['date'] = date;
8155
+ }
8156
+ if (visibilityType !== undefined) {
8157
+ localVarQueryParameter['visibilityType'] = visibilityType;
8158
+ }
8159
+ if (type !== undefined) {
8160
+ localVarQueryParameter['type'] = type;
8161
+ }
8162
+ if (sportId !== undefined) {
8163
+ localVarQueryParameter['sportId'] = sportId;
8164
+ }
8165
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8166
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8167
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8168
+ return {
8169
+ url: (0, common_1.toPathString)(localVarUrlObj),
8170
+ options: localVarRequestOptions,
8171
+ };
8172
+ }),
7668
8173
  };
7669
8174
  };
7670
8175
  exports.EventsStaffApiAxiosParamCreator = EventsStaffApiAxiosParamCreator;
@@ -7676,18 +8181,21 @@ const EventsStaffApiFp = function (configuration) {
7676
8181
  const localVarAxiosParamCreator = (0, exports.EventsStaffApiAxiosParamCreator)(configuration);
7677
8182
  return {
7678
8183
  /**
7679
- * Check-in des participants d\'un EventBooking (clubs avec paiements)
7680
- * @param {string} eventBookingId
7681
- * @param {CheckInEventParticipantsRequest} checkInEventParticipantsRequest
8184
+ * Get events for the day view (entire week)
8185
+ * @param {string} [clubId]
8186
+ * @param {string} [date]
8187
+ * @param {GetDailyEventsVisibilityTypeEnum} [visibilityType]
8188
+ * @param {GetDailyEventsTypeEnum} [type]
8189
+ * @param {string} [sportId]
7682
8190
  * @param {*} [options] Override http request option.
7683
8191
  * @throws {RequiredError}
7684
8192
  */
7685
- checkInEventParticipants(eventBookingId, checkInEventParticipantsRequest, options) {
8193
+ getDailyEvents(clubId, date, visibilityType, type, sportId, options) {
7686
8194
  return __awaiter(this, void 0, void 0, function* () {
7687
8195
  var _a, _b, _c;
7688
- const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInEventParticipants(eventBookingId, checkInEventParticipantsRequest, options);
8196
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDailyEvents(clubId, date, visibilityType, type, sportId, options);
7689
8197
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7690
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.checkInEventParticipants']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8198
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.getDailyEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7691
8199
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7692
8200
  });
7693
8201
  },
@@ -7705,6 +8213,44 @@ const EventsStaffApiFp = function (configuration) {
7705
8213
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7706
8214
  });
7707
8215
  },
8216
+ /**
8217
+ * Get events for the entire month view (including recurring occurrences)
8218
+ * @param {string} [clubId]
8219
+ * @param {string} [date]
8220
+ * @param {GetMonthlyEventsVisibilityTypeEnum} [visibilityType]
8221
+ * @param {GetMonthlyEventsTypeEnum} [type]
8222
+ * @param {string} [sportId]
8223
+ * @param {*} [options] Override http request option.
8224
+ * @throws {RequiredError}
8225
+ */
8226
+ getMonthlyEvents(clubId, date, visibilityType, type, sportId, options) {
8227
+ return __awaiter(this, void 0, void 0, function* () {
8228
+ var _a, _b, _c;
8229
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMonthlyEvents(clubId, date, visibilityType, type, sportId, options);
8230
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8231
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.getMonthlyEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8232
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8233
+ });
8234
+ },
8235
+ /**
8236
+ * Get events for the week view (30 day sliding window)
8237
+ * @param {string} [clubId]
8238
+ * @param {string} [date]
8239
+ * @param {GetWeeklyEventsVisibilityTypeEnum} [visibilityType]
8240
+ * @param {GetWeeklyEventsTypeEnum} [type]
8241
+ * @param {string} [sportId]
8242
+ * @param {*} [options] Override http request option.
8243
+ * @throws {RequiredError}
8244
+ */
8245
+ getWeeklyEvents(clubId, date, visibilityType, type, sportId, options) {
8246
+ return __awaiter(this, void 0, void 0, function* () {
8247
+ var _a, _b, _c;
8248
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getWeeklyEvents(clubId, date, visibilityType, type, sportId, options);
8249
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8250
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsStaffApi.getWeeklyEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8251
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8252
+ });
8253
+ },
7708
8254
  };
7709
8255
  };
7710
8256
  exports.EventsStaffApiFp = EventsStaffApiFp;
@@ -7716,13 +8262,13 @@ const EventsStaffApiFactory = function (configuration, basePath, axios) {
7716
8262
  const localVarFp = (0, exports.EventsStaffApiFp)(configuration);
7717
8263
  return {
7718
8264
  /**
7719
- * Check-in des participants d\'un EventBooking (clubs avec paiements)
7720
- * @param {EventsStaffApiCheckInEventParticipantsRequest} requestParameters Request parameters.
8265
+ * Get events for the day view (entire week)
8266
+ * @param {EventsStaffApiGetDailyEventsRequest} requestParameters Request parameters.
7721
8267
  * @param {*} [options] Override http request option.
7722
8268
  * @throws {RequiredError}
7723
8269
  */
7724
- checkInEventParticipants(requestParameters, options) {
7725
- return localVarFp.checkInEventParticipants(requestParameters.eventBookingId, requestParameters.checkInEventParticipantsRequest, options).then((request) => request(axios, basePath));
8270
+ getDailyEvents(requestParameters = {}, options) {
8271
+ return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
7726
8272
  },
7727
8273
  /**
7728
8274
  * Get all events for a club (staff only)
@@ -7732,6 +8278,24 @@ const EventsStaffApiFactory = function (configuration, basePath, axios) {
7732
8278
  getEventsByClub(options) {
7733
8279
  return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
7734
8280
  },
8281
+ /**
8282
+ * Get events for the entire month view (including recurring occurrences)
8283
+ * @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
8284
+ * @param {*} [options] Override http request option.
8285
+ * @throws {RequiredError}
8286
+ */
8287
+ getMonthlyEvents(requestParameters = {}, options) {
8288
+ return localVarFp.getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
8289
+ },
8290
+ /**
8291
+ * Get events for the week view (30 day sliding window)
8292
+ * @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
8293
+ * @param {*} [options] Override http request option.
8294
+ * @throws {RequiredError}
8295
+ */
8296
+ getWeeklyEvents(requestParameters = {}, options) {
8297
+ return localVarFp.getWeeklyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
8298
+ },
7735
8299
  };
7736
8300
  };
7737
8301
  exports.EventsStaffApiFactory = EventsStaffApiFactory;
@@ -7743,14 +8307,14 @@ exports.EventsStaffApiFactory = EventsStaffApiFactory;
7743
8307
  */
7744
8308
  class EventsStaffApi extends base_1.BaseAPI {
7745
8309
  /**
7746
- * Check-in des participants d\'un EventBooking (clubs avec paiements)
7747
- * @param {EventsStaffApiCheckInEventParticipantsRequest} requestParameters Request parameters.
8310
+ * Get events for the day view (entire week)
8311
+ * @param {EventsStaffApiGetDailyEventsRequest} requestParameters Request parameters.
7748
8312
  * @param {*} [options] Override http request option.
7749
8313
  * @throws {RequiredError}
7750
8314
  * @memberof EventsStaffApi
7751
8315
  */
7752
- checkInEventParticipants(requestParameters, options) {
7753
- return (0, exports.EventsStaffApiFp)(this.configuration).checkInEventParticipants(requestParameters.eventBookingId, requestParameters.checkInEventParticipantsRequest, options).then((request) => request(this.axios, this.basePath));
8316
+ getDailyEvents(requestParameters = {}, options) {
8317
+ return (0, exports.EventsStaffApiFp)(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
7754
8318
  }
7755
8319
  /**
7756
8320
  * Get all events for a club (staff only)
@@ -7761,8 +8325,73 @@ class EventsStaffApi extends base_1.BaseAPI {
7761
8325
  getEventsByClub(options) {
7762
8326
  return (0, exports.EventsStaffApiFp)(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
7763
8327
  }
8328
+ /**
8329
+ * Get events for the entire month view (including recurring occurrences)
8330
+ * @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
8331
+ * @param {*} [options] Override http request option.
8332
+ * @throws {RequiredError}
8333
+ * @memberof EventsStaffApi
8334
+ */
8335
+ getMonthlyEvents(requestParameters = {}, options) {
8336
+ return (0, exports.EventsStaffApiFp)(this.configuration).getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
8337
+ }
8338
+ /**
8339
+ * Get events for the week view (30 day sliding window)
8340
+ * @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
8341
+ * @param {*} [options] Override http request option.
8342
+ * @throws {RequiredError}
8343
+ * @memberof EventsStaffApi
8344
+ */
8345
+ getWeeklyEvents(requestParameters = {}, options) {
8346
+ return (0, exports.EventsStaffApiFp)(this.configuration).getWeeklyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
8347
+ }
7764
8348
  }
7765
8349
  exports.EventsStaffApi = EventsStaffApi;
8350
+ /**
8351
+ * @export
8352
+ */
8353
+ exports.GetDailyEventsVisibilityTypeEnum = {
8354
+ Public: 'public',
8355
+ Private: 'private',
8356
+ Invitation: 'invitation'
8357
+ };
8358
+ /**
8359
+ * @export
8360
+ */
8361
+ exports.GetDailyEventsTypeEnum = {
8362
+ Event: 'event',
8363
+ Closure: 'closure'
8364
+ };
8365
+ /**
8366
+ * @export
8367
+ */
8368
+ exports.GetMonthlyEventsVisibilityTypeEnum = {
8369
+ Public: 'public',
8370
+ Private: 'private',
8371
+ Invitation: 'invitation'
8372
+ };
8373
+ /**
8374
+ * @export
8375
+ */
8376
+ exports.GetMonthlyEventsTypeEnum = {
8377
+ Event: 'event',
8378
+ Closure: 'closure'
8379
+ };
8380
+ /**
8381
+ * @export
8382
+ */
8383
+ exports.GetWeeklyEventsVisibilityTypeEnum = {
8384
+ Public: 'public',
8385
+ Private: 'private',
8386
+ Invitation: 'invitation'
8387
+ };
8388
+ /**
8389
+ * @export
8390
+ */
8391
+ exports.GetWeeklyEventsTypeEnum = {
8392
+ Event: 'event',
8393
+ Closure: 'closure'
8394
+ };
7766
8395
  /**
7767
8396
  * SportsManagerApi - axios parameter creator
7768
8397
  * @export