@tennac-booking/sdk 1.0.109 → 1.0.110

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 (60) hide show
  1. package/.openapi-generator/FILES +292 -292
  2. package/README.md +20 -25
  3. package/api.ts +952 -1663
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +563 -953
  8. package/dist/api.js +509 -1063
  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 +563 -953
  16. package/dist/esm/api.js +501 -1051
  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/CheckInEventParticipants200Response.md +22 -0
  28. package/docs/CheckInEventParticipants200ResponseInvoicesInner.md +28 -0
  29. package/docs/{ClientRegisterResponse.md → CheckInEventParticipantsRequest.md} +5 -7
  30. package/docs/ClientApi.md +59 -4
  31. package/docs/{ClientAccountOnboardingResponse.md → ClientFullOnboardingResponse.md} +7 -11
  32. package/docs/ClientFullOnboardingResponseClub.md +24 -0
  33. package/docs/ClientRegister201Response.md +26 -0
  34. package/docs/{ClientRegisterRequestBody.md → ClientRegisterRequest.md} +7 -7
  35. package/docs/ClubPlayerDetailResponse.md +0 -2
  36. package/docs/ClubSummary.md +2 -8
  37. package/docs/ClubsStaffApi.md +59 -55
  38. package/docs/CreateEventRequest.md +1 -3
  39. package/docs/CreateOnsiteInvoiceRequest.md +28 -0
  40. package/docs/CreateOnsiteInvoiceResponse.md +22 -0
  41. package/docs/CreateOnsiteInvoiceResponseInvoice.md +31 -0
  42. package/docs/EventConflictCheckRequest.md +28 -0
  43. package/docs/EventConflictCheckResponse.md +26 -0
  44. package/docs/EventsManagerApi.md +114 -0
  45. package/docs/EventsStaffApi.md +20 -159
  46. package/docs/JoinEventRequest.md +8 -0
  47. package/docs/JoinEventRequestPlayersPaymentMethodsInner.md +22 -0
  48. package/docs/PaymentMethod.md +4 -0
  49. package/docs/PublishEventResponse.md +2 -0
  50. package/index.ts +1 -1
  51. package/package.json +1 -1
  52. package/docs/ActiveSubscriptionResponse.md +0 -22
  53. package/docs/ClientAccountOnboardingRequest.md +0 -29
  54. package/docs/ClientAccountResponse.md +0 -44
  55. package/docs/ClientAccountsApi.md +0 -408
  56. package/docs/ClientMeResponse.md +0 -28
  57. package/docs/ClientOnboardingResponse.md +0 -27
  58. package/docs/ClientSubscriptionResponse.md +0 -34
  59. package/docs/GetSubscriptionsHistory200Response.md +0 -22
  60. package/docs/UpdateUserCreditsRequest.md +0 -20
package/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.104
7
+ * The version of the OpenAPI document: 1.0.110
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -53,14 +53,6 @@ export const CaptureResultStatusEnum = {
53
53
  Captured: 'captured',
54
54
  Failed: 'failed'
55
55
  };
56
- export const ClientAccountOnboardingRequestBusinessTypeEnum = {
57
- Individual: 'individual',
58
- Company: 'company'
59
- };
60
- export const ClientAccountOnboardingRequestSubscriptionTypeEnum = {
61
- Basic: 'basic',
62
- PlatformWithConnect: 'platform_with_connect'
63
- };
64
56
  export const ClubRoleResponseRoleEnum = {
65
57
  Admin: 'admin',
66
58
  Manager: 'manager',
@@ -165,6 +157,8 @@ export const InvoiceStatus = {
165
157
  export const PaymentMethod = {
166
158
  Online: 'online',
167
159
  Onsite: 'onsite',
160
+ OnsiteCard: 'onsite_card',
161
+ OnsiteCash: 'onsite_cash',
168
162
  Free: 'free'
169
163
  };
170
164
  /**
@@ -1403,6 +1397,35 @@ export class BookingsUserApi extends BaseAPI {
1403
1397
  */
1404
1398
  export const ClientApiAxiosParamCreator = function (configuration) {
1405
1399
  return {
1400
+ /**
1401
+ * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
1402
+ * @param {ClientRegisterRequest} clientRegisterRequest
1403
+ * @param {*} [options] Override http request option.
1404
+ * @throws {RequiredError}
1405
+ */
1406
+ clientRegister: (clientRegisterRequest_1, ...args_1) => __awaiter(this, [clientRegisterRequest_1, ...args_1], void 0, function* (clientRegisterRequest, options = {}) {
1407
+ // verify required parameter 'clientRegisterRequest' is not null or undefined
1408
+ assertParamExists('clientRegister', 'clientRegisterRequest', clientRegisterRequest);
1409
+ const localVarPath = `/clients/register`;
1410
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1411
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1412
+ let baseOptions;
1413
+ if (configuration) {
1414
+ baseOptions = configuration.baseOptions;
1415
+ }
1416
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1417
+ const localVarHeaderParameter = {};
1418
+ const localVarQueryParameter = {};
1419
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1420
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1421
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1422
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1423
+ localVarRequestOptions.data = serializeDataIfNeeded(clientRegisterRequest, localVarRequestOptions, configuration);
1424
+ return {
1425
+ url: toPathString(localVarUrlObj),
1426
+ options: localVarRequestOptions,
1427
+ };
1428
+ }),
1406
1429
  /**
1407
1430
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
1408
1431
  * @param {*} [options] Override http request option.
@@ -1431,7 +1454,7 @@ export const ClientApiAxiosParamCreator = function (configuration) {
1431
1454
  };
1432
1455
  }),
1433
1456
  /**
1434
- * 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
1457
+ * 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
1435
1458
  * @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
1436
1459
  * @param {*} [options] Override http request option.
1437
1460
  * @throws {RequiredError}
@@ -1449,6 +1472,9 @@ export const ClientApiAxiosParamCreator = function (configuration) {
1449
1472
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1450
1473
  const localVarHeaderParameter = {};
1451
1474
  const localVarQueryParameter = {};
1475
+ // authentication clientAuth required
1476
+ // http bearer authentication required
1477
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1452
1478
  localVarHeaderParameter['Content-Type'] = 'application/json';
1453
1479
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1454
1480
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -1468,6 +1494,21 @@ export const ClientApiAxiosParamCreator = function (configuration) {
1468
1494
  export const ClientApiFp = function (configuration) {
1469
1495
  const localVarAxiosParamCreator = ClientApiAxiosParamCreator(configuration);
1470
1496
  return {
1497
+ /**
1498
+ * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
1499
+ * @param {ClientRegisterRequest} clientRegisterRequest
1500
+ * @param {*} [options] Override http request option.
1501
+ * @throws {RequiredError}
1502
+ */
1503
+ clientRegister(clientRegisterRequest, options) {
1504
+ return __awaiter(this, void 0, void 0, function* () {
1505
+ var _a, _b, _c;
1506
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.clientRegister(clientRegisterRequest, options);
1507
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1508
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientApi.clientRegister']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1509
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1510
+ });
1511
+ },
1471
1512
  /**
1472
1513
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
1473
1514
  * @param {*} [options] Override http request option.
@@ -1483,7 +1524,7 @@ export const ClientApiFp = function (configuration) {
1483
1524
  });
1484
1525
  },
1485
1526
  /**
1486
- * 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
1527
+ * 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
1487
1528
  * @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
1488
1529
  * @param {*} [options] Override http request option.
1489
1530
  * @throws {RequiredError}
@@ -1506,6 +1547,15 @@ export const ClientApiFp = function (configuration) {
1506
1547
  export const ClientApiFactory = function (configuration, basePath, axios) {
1507
1548
  const localVarFp = ClientApiFp(configuration);
1508
1549
  return {
1550
+ /**
1551
+ * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
1552
+ * @param {ClientApiClientRegisterRequest} requestParameters Request parameters.
1553
+ * @param {*} [options] Override http request option.
1554
+ * @throws {RequiredError}
1555
+ */
1556
+ clientRegister(requestParameters, options) {
1557
+ return localVarFp.clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(axios, basePath));
1558
+ },
1509
1559
  /**
1510
1560
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
1511
1561
  * @param {*} [options] Override http request option.
@@ -1515,7 +1565,7 @@ export const ClientApiFactory = function (configuration, basePath, axios) {
1515
1565
  return localVarFp.getManagedClubs(options).then((request) => request(axios, basePath));
1516
1566
  },
1517
1567
  /**
1518
- * 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
1568
+ * 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
1569
  * @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
1520
1570
  * @param {*} [options] Override http request option.
1521
1571
  * @throws {RequiredError}
@@ -1532,6 +1582,16 @@ export const ClientApiFactory = function (configuration, basePath, axios) {
1532
1582
  * @extends {BaseAPI}
1533
1583
  */
1534
1584
  export class ClientApi extends BaseAPI {
1585
+ /**
1586
+ * Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
1587
+ * @param {ClientApiClientRegisterRequest} requestParameters Request parameters.
1588
+ * @param {*} [options] Override http request option.
1589
+ * @throws {RequiredError}
1590
+ * @memberof ClientApi
1591
+ */
1592
+ clientRegister(requestParameters, options) {
1593
+ return ClientApiFp(this.configuration).clientRegister(requestParameters.clientRegisterRequest, options).then((request) => request(this.axios, this.basePath));
1594
+ }
1535
1595
  /**
1536
1596
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
1537
1597
  * @param {*} [options] Override http request option.
@@ -1542,7 +1602,7 @@ export class ClientApi extends BaseAPI {
1542
1602
  return ClientApiFp(this.configuration).getManagedClubs(options).then((request) => request(this.axios, this.basePath));
1543
1603
  }
1544
1604
  /**
1545
- * 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
1605
+ * 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
1546
1606
  * @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
1547
1607
  * @param {*} [options] Override http request option.
1548
1608
  * @throws {RequiredError}
@@ -1553,18 +1613,18 @@ export class ClientApi extends BaseAPI {
1553
1613
  }
1554
1614
  }
1555
1615
  /**
1556
- * ClientAccountsApi - axios parameter creator
1616
+ * ClubAnalyticsApi - axios parameter creator
1557
1617
  * @export
1558
1618
  */
1559
- export const ClientAccountsApiAxiosParamCreator = function (configuration) {
1619
+ export const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
1560
1620
  return {
1561
1621
  /**
1562
- * Informations de l\'utilisateur client authentifié (token clientAuth)
1622
+ * Récupère les clubs les plus aimés
1563
1623
  * @param {*} [options] Override http request option.
1564
1624
  * @throws {RequiredError}
1565
1625
  */
1566
- clientAuthMe: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1567
- const localVarPath = `/client-accounts/client-auth/me`;
1626
+ getMostLikedClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1627
+ const localVarPath = `/api/club-analytics/most-liked-clubs`;
1568
1628
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1569
1629
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1570
1630
  let baseOptions;
@@ -1574,7 +1634,7 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration) {
1574
1634
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1575
1635
  const localVarHeaderParameter = {};
1576
1636
  const localVarQueryParameter = {};
1577
- // authentication clientAuth required
1637
+ // authentication bearerAuth required
1578
1638
  // http bearer authentication required
1579
1639
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1580
1640
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -1586,16 +1646,12 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration) {
1586
1646
  };
1587
1647
  }),
1588
1648
  /**
1589
- * Récupère le compte client par son ID
1590
- * @param {string} accountId L\'ID du compte client
1649
+ * Récupère les clubs populaires
1591
1650
  * @param {*} [options] Override http request option.
1592
1651
  * @throws {RequiredError}
1593
1652
  */
1594
- getClientAccountById: (accountId_1, ...args_1) => __awaiter(this, [accountId_1, ...args_1], void 0, function* (accountId, options = {}) {
1595
- // verify required parameter 'accountId' is not null or undefined
1596
- assertParamExists('getClientAccountById', 'accountId', accountId);
1597
- const localVarPath = `/client-accounts/{accountId}`
1598
- .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
1653
+ getPopularClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1654
+ const localVarPath = `/api/club-analytics/popular-clubs`;
1599
1655
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1600
1656
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1601
1657
  let baseOptions;
@@ -1616,13 +1672,113 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration) {
1616
1672
  options: localVarRequestOptions,
1617
1673
  };
1618
1674
  }),
1675
+ };
1676
+ };
1677
+ /**
1678
+ * ClubAnalyticsApi - functional programming interface
1679
+ * @export
1680
+ */
1681
+ export const ClubAnalyticsApiFp = function (configuration) {
1682
+ const localVarAxiosParamCreator = ClubAnalyticsApiAxiosParamCreator(configuration);
1683
+ return {
1684
+ /**
1685
+ * Récupère les clubs les plus aimés
1686
+ * @param {*} [options] Override http request option.
1687
+ * @throws {RequiredError}
1688
+ */
1689
+ getMostLikedClub(options) {
1690
+ return __awaiter(this, void 0, void 0, function* () {
1691
+ var _a, _b, _c;
1692
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMostLikedClub(options);
1693
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1694
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsApi.getMostLikedClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1695
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1696
+ });
1697
+ },
1698
+ /**
1699
+ * Récupère les clubs populaires
1700
+ * @param {*} [options] Override http request option.
1701
+ * @throws {RequiredError}
1702
+ */
1703
+ getPopularClubs(options) {
1704
+ return __awaiter(this, void 0, void 0, function* () {
1705
+ var _a, _b, _c;
1706
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPopularClubs(options);
1707
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1708
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsApi.getPopularClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1709
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1710
+ });
1711
+ },
1712
+ };
1713
+ };
1714
+ /**
1715
+ * ClubAnalyticsApi - factory interface
1716
+ * @export
1717
+ */
1718
+ export const ClubAnalyticsApiFactory = function (configuration, basePath, axios) {
1719
+ const localVarFp = ClubAnalyticsApiFp(configuration);
1720
+ return {
1721
+ /**
1722
+ * Récupère les clubs les plus aimés
1723
+ * @param {*} [options] Override http request option.
1724
+ * @throws {RequiredError}
1725
+ */
1726
+ getMostLikedClub(options) {
1727
+ return localVarFp.getMostLikedClub(options).then((request) => request(axios, basePath));
1728
+ },
1729
+ /**
1730
+ * Récupère les clubs populaires
1731
+ * @param {*} [options] Override http request option.
1732
+ * @throws {RequiredError}
1733
+ */
1734
+ getPopularClubs(options) {
1735
+ return localVarFp.getPopularClubs(options).then((request) => request(axios, basePath));
1736
+ },
1737
+ };
1738
+ };
1739
+ /**
1740
+ * ClubAnalyticsApi - object-oriented interface
1741
+ * @export
1742
+ * @class ClubAnalyticsApi
1743
+ * @extends {BaseAPI}
1744
+ */
1745
+ export class ClubAnalyticsApi extends BaseAPI {
1746
+ /**
1747
+ * Récupère les clubs les plus aimés
1748
+ * @param {*} [options] Override http request option.
1749
+ * @throws {RequiredError}
1750
+ * @memberof ClubAnalyticsApi
1751
+ */
1752
+ getMostLikedClub(options) {
1753
+ return ClubAnalyticsApiFp(this.configuration).getMostLikedClub(options).then((request) => request(this.axios, this.basePath));
1754
+ }
1755
+ /**
1756
+ * Récupère les clubs populaires
1757
+ * @param {*} [options] Override http request option.
1758
+ * @throws {RequiredError}
1759
+ * @memberof ClubAnalyticsApi
1760
+ */
1761
+ getPopularClubs(options) {
1762
+ return ClubAnalyticsApiFp(this.configuration).getPopularClubs(options).then((request) => request(this.axios, this.basePath));
1763
+ }
1764
+ }
1765
+ /**
1766
+ * ClubAnalyticsStaffApi - axios parameter creator
1767
+ * @export
1768
+ */
1769
+ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1770
+ return {
1619
1771
  /**
1620
- * Récupère l\'abonnement actif du compte client authentifié
1772
+ * Récupère les analytics par sport
1773
+ * @param {string} sportId
1621
1774
  * @param {*} [options] Override http request option.
1622
1775
  * @throws {RequiredError}
1623
1776
  */
1624
- getMyActiveSubscription: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1625
- const localVarPath = `/client-accounts/me/subscription`;
1777
+ getAnalyticsBySport: (sportId_1, ...args_1) => __awaiter(this, [sportId_1, ...args_1], void 0, function* (sportId, options = {}) {
1778
+ // verify required parameter 'sportId' is not null or undefined
1779
+ assertParamExists('getAnalyticsBySport', 'sportId', sportId);
1780
+ const localVarPath = `/api/club-analytics/sport/{sportId}/analytics`
1781
+ .replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)));
1626
1782
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1627
1783
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1628
1784
  let baseOptions;
@@ -1644,12 +1800,18 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration) {
1644
1800
  };
1645
1801
  }),
1646
1802
  /**
1647
- * Récupère le compte client de l\'utilisateur authentifié
1803
+ * Récupère les réservations d\'un joueur par son ID (à venir et passées)
1804
+ * @param {string} playerId
1805
+ * @param {number} [page]
1806
+ * @param {number} [pageSize]
1648
1807
  * @param {*} [options] Override http request option.
1649
1808
  * @throws {RequiredError}
1650
1809
  */
1651
- getMyClientAccount: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1652
- const localVarPath = `/client-accounts/me`;
1810
+ 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 = {}) {
1811
+ // verify required parameter 'playerId' is not null or undefined
1812
+ assertParamExists('getClubPlayerBookingsById', 'playerId', playerId);
1813
+ const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
1814
+ .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
1653
1815
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1654
1816
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1655
1817
  let baseOptions;
@@ -1662,6 +1824,12 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration) {
1662
1824
  // authentication bearerAuth required
1663
1825
  // http bearer authentication required
1664
1826
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1827
+ if (page !== undefined) {
1828
+ localVarQueryParameter['page'] = page;
1829
+ }
1830
+ if (pageSize !== undefined) {
1831
+ localVarQueryParameter['pageSize'] = pageSize;
1832
+ }
1665
1833
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1666
1834
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1667
1835
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -1671,12 +1839,16 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration) {
1671
1839
  };
1672
1840
  }),
1673
1841
  /**
1674
- * Récupère l\'historique des abonnements du compte client authentifié
1842
+ * Récupère les informations détaillées d\'un joueur par son ID
1843
+ * @param {string} playerId
1675
1844
  * @param {*} [options] Override http request option.
1676
1845
  * @throws {RequiredError}
1677
1846
  */
1678
- getSubscriptionsHistory: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1679
- const localVarPath = `/client-accounts/me/subscriptions-history`;
1847
+ getClubPlayerById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
1848
+ // verify required parameter 'playerId' is not null or undefined
1849
+ assertParamExists('getClubPlayerById', 'playerId', playerId);
1850
+ const localVarPath = `/api/club-analytics/players/{playerId}`
1851
+ .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
1680
1852
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1681
1853
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1682
1854
  let baseOptions;
@@ -1698,12 +1870,16 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration) {
1698
1870
  };
1699
1871
  }),
1700
1872
  /**
1701
- * Liste les prix Stripe disponibles pour les abonnements client
1873
+ * Récupère les statistiques d\'un joueur pour le staff
1874
+ * @param {string} playerId
1702
1875
  * @param {*} [options] Override http request option.
1703
1876
  * @throws {RequiredError}
1704
1877
  */
1705
- listAvailablePrices: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1706
- const localVarPath = `/client-accounts/plans/available-prices`;
1878
+ getClubPlayerStatisticsById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
1879
+ // verify required parameter 'playerId' is not null or undefined
1880
+ assertParamExists('getClubPlayerStatisticsById', 'playerId', playerId);
1881
+ const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
1882
+ .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
1707
1883
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1708
1884
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1709
1885
  let baseOptions;
@@ -1725,730 +1901,96 @@ export const ClientAccountsApiAxiosParamCreator = function (configuration) {
1725
1901
  };
1726
1902
  }),
1727
1903
  /**
1728
- * Crée un nouveau compte client avec onboarding Stripe
1729
- * @param {ClientAccountOnboardingRequest} clientAccountOnboardingRequest Les données du compte à créer
1904
+ * Récupère la liste des joueurs du club
1730
1905
  * @param {*} [options] Override http request option.
1731
1906
  * @throws {RequiredError}
1732
1907
  */
1733
- onboardClientAccount: (clientAccountOnboardingRequest_1, ...args_1) => __awaiter(this, [clientAccountOnboardingRequest_1, ...args_1], void 0, function* (clientAccountOnboardingRequest, options = {}) {
1734
- // verify required parameter 'clientAccountOnboardingRequest' is not null or undefined
1735
- assertParamExists('onboardClientAccount', 'clientAccountOnboardingRequest', clientAccountOnboardingRequest);
1736
- const localVarPath = `/client-accounts/onboarding`;
1908
+ getClubPlayers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1909
+ const localVarPath = `/api/club-analytics/players`;
1737
1910
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1738
1911
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1739
1912
  let baseOptions;
1740
1913
  if (configuration) {
1741
1914
  baseOptions = configuration.baseOptions;
1742
1915
  }
1743
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1916
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1744
1917
  const localVarHeaderParameter = {};
1745
1918
  const localVarQueryParameter = {};
1746
- // authentication clientAuth required
1919
+ // authentication bearerAuth required
1747
1920
  // http bearer authentication required
1748
1921
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1749
- localVarHeaderParameter['Content-Type'] = 'application/json';
1750
1922
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1751
1923
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1752
1924
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1753
- localVarRequestOptions.data = serializeDataIfNeeded(clientAccountOnboardingRequest, localVarRequestOptions, configuration);
1754
1925
  return {
1755
1926
  url: toPathString(localVarUrlObj),
1756
1927
  options: localVarRequestOptions,
1757
1928
  };
1758
1929
  }),
1759
1930
  /**
1760
- * Route d\'inscription d\'un utilisateur client (publique)
1761
- * @param {ClientRegisterRequestBody} clientRegisterRequestBody
1931
+ * Récupère le chiffre d\'affaires quotidien
1932
+ * @param {string} date
1762
1933
  * @param {*} [options] Override http request option.
1763
1934
  * @throws {RequiredError}
1764
1935
  */
1765
- registerClientUser: (clientRegisterRequestBody_1, ...args_1) => __awaiter(this, [clientRegisterRequestBody_1, ...args_1], void 0, function* (clientRegisterRequestBody, options = {}) {
1766
- // verify required parameter 'clientRegisterRequestBody' is not null or undefined
1767
- assertParamExists('registerClientUser', 'clientRegisterRequestBody', clientRegisterRequestBody);
1768
- const localVarPath = `/client-accounts/register-client-user`;
1936
+ getDailyTurnOver: (date_1, ...args_1) => __awaiter(this, [date_1, ...args_1], void 0, function* (date, options = {}) {
1937
+ // verify required parameter 'date' is not null or undefined
1938
+ assertParamExists('getDailyTurnOver', 'date', date);
1939
+ const localVarPath = `/api/club-analytics/daily-turnover`;
1769
1940
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1770
1941
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1771
1942
  let baseOptions;
1772
1943
  if (configuration) {
1773
1944
  baseOptions = configuration.baseOptions;
1774
1945
  }
1775
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1946
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1776
1947
  const localVarHeaderParameter = {};
1777
1948
  const localVarQueryParameter = {};
1778
- localVarHeaderParameter['Content-Type'] = 'application/json';
1949
+ // authentication bearerAuth required
1950
+ // http bearer authentication required
1951
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1952
+ if (date !== undefined) {
1953
+ localVarQueryParameter['date'] = date;
1954
+ }
1779
1955
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1780
1956
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1781
1957
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1782
- localVarRequestOptions.data = serializeDataIfNeeded(clientRegisterRequestBody, localVarRequestOptions, configuration);
1783
1958
  return {
1784
1959
  url: toPathString(localVarUrlObj),
1785
1960
  options: localVarRequestOptions,
1786
1961
  };
1787
1962
  }),
1788
- };
1789
- };
1790
- /**
1791
- * ClientAccountsApi - functional programming interface
1792
- * @export
1793
- */
1794
- export const ClientAccountsApiFp = function (configuration) {
1795
- const localVarAxiosParamCreator = ClientAccountsApiAxiosParamCreator(configuration);
1796
- return {
1797
1963
  /**
1798
- * Informations de l\'utilisateur client authentifié (token clientAuth)
1964
+ * Récupère les pourcentages par genre
1799
1965
  * @param {*} [options] Override http request option.
1800
1966
  * @throws {RequiredError}
1801
1967
  */
1802
- clientAuthMe(options) {
1803
- return __awaiter(this, void 0, void 0, function* () {
1804
- var _a, _b, _c;
1805
- const localVarAxiosArgs = yield localVarAxiosParamCreator.clientAuthMe(options);
1806
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1807
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientAccountsApi.clientAuthMe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1808
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1809
- });
1810
- },
1968
+ getGenderPercentage: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1969
+ const localVarPath = `/api/club-analytics/gender-percentage`;
1970
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1971
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1972
+ let baseOptions;
1973
+ if (configuration) {
1974
+ baseOptions = configuration.baseOptions;
1975
+ }
1976
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1977
+ const localVarHeaderParameter = {};
1978
+ const localVarQueryParameter = {};
1979
+ // authentication bearerAuth required
1980
+ // http bearer authentication required
1981
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1982
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1983
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1984
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1985
+ return {
1986
+ url: toPathString(localVarUrlObj),
1987
+ options: localVarRequestOptions,
1988
+ };
1989
+ }),
1811
1990
  /**
1812
- * Récupère le compte client par son ID
1813
- * @param {string} accountId L\'ID du compte client
1814
- * @param {*} [options] Override http request option.
1815
- * @throws {RequiredError}
1816
- */
1817
- getClientAccountById(accountId, options) {
1818
- return __awaiter(this, void 0, void 0, function* () {
1819
- var _a, _b, _c;
1820
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClientAccountById(accountId, options);
1821
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1822
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientAccountsApi.getClientAccountById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1823
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1824
- });
1825
- },
1826
- /**
1827
- * Récupère l\'abonnement actif du compte client authentifié
1828
- * @param {*} [options] Override http request option.
1829
- * @throws {RequiredError}
1830
- */
1831
- getMyActiveSubscription(options) {
1832
- return __awaiter(this, void 0, void 0, function* () {
1833
- var _a, _b, _c;
1834
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getMyActiveSubscription(options);
1835
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1836
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientAccountsApi.getMyActiveSubscription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1837
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1838
- });
1839
- },
1840
- /**
1841
- * Récupère le compte client de l\'utilisateur authentifié
1842
- * @param {*} [options] Override http request option.
1843
- * @throws {RequiredError}
1844
- */
1845
- getMyClientAccount(options) {
1846
- return __awaiter(this, void 0, void 0, function* () {
1847
- var _a, _b, _c;
1848
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getMyClientAccount(options);
1849
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1850
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientAccountsApi.getMyClientAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1851
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1852
- });
1853
- },
1854
- /**
1855
- * Récupère l\'historique des abonnements du compte client authentifié
1856
- * @param {*} [options] Override http request option.
1857
- * @throws {RequiredError}
1858
- */
1859
- getSubscriptionsHistory(options) {
1860
- return __awaiter(this, void 0, void 0, function* () {
1861
- var _a, _b, _c;
1862
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getSubscriptionsHistory(options);
1863
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1864
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientAccountsApi.getSubscriptionsHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1865
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1866
- });
1867
- },
1868
- /**
1869
- * Liste les prix Stripe disponibles pour les abonnements client
1870
- * @param {*} [options] Override http request option.
1871
- * @throws {RequiredError}
1872
- */
1873
- listAvailablePrices(options) {
1874
- return __awaiter(this, void 0, void 0, function* () {
1875
- var _a, _b, _c;
1876
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listAvailablePrices(options);
1877
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1878
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientAccountsApi.listAvailablePrices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1879
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1880
- });
1881
- },
1882
- /**
1883
- * Crée un nouveau compte client avec onboarding Stripe
1884
- * @param {ClientAccountOnboardingRequest} clientAccountOnboardingRequest Les données du compte à créer
1885
- * @param {*} [options] Override http request option.
1886
- * @throws {RequiredError}
1887
- */
1888
- onboardClientAccount(clientAccountOnboardingRequest, options) {
1889
- return __awaiter(this, void 0, void 0, function* () {
1890
- var _a, _b, _c;
1891
- const localVarAxiosArgs = yield localVarAxiosParamCreator.onboardClientAccount(clientAccountOnboardingRequest, options);
1892
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1893
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientAccountsApi.onboardClientAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1894
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1895
- });
1896
- },
1897
- /**
1898
- * Route d\'inscription d\'un utilisateur client (publique)
1899
- * @param {ClientRegisterRequestBody} clientRegisterRequestBody
1900
- * @param {*} [options] Override http request option.
1901
- * @throws {RequiredError}
1902
- */
1903
- registerClientUser(clientRegisterRequestBody, options) {
1904
- return __awaiter(this, void 0, void 0, function* () {
1905
- var _a, _b, _c;
1906
- const localVarAxiosArgs = yield localVarAxiosParamCreator.registerClientUser(clientRegisterRequestBody, options);
1907
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1908
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientAccountsApi.registerClientUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1909
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1910
- });
1911
- },
1912
- };
1913
- };
1914
- /**
1915
- * ClientAccountsApi - factory interface
1916
- * @export
1917
- */
1918
- export const ClientAccountsApiFactory = function (configuration, basePath, axios) {
1919
- const localVarFp = ClientAccountsApiFp(configuration);
1920
- return {
1921
- /**
1922
- * Informations de l\'utilisateur client authentifié (token clientAuth)
1923
- * @param {*} [options] Override http request option.
1924
- * @throws {RequiredError}
1925
- */
1926
- clientAuthMe(options) {
1927
- return localVarFp.clientAuthMe(options).then((request) => request(axios, basePath));
1928
- },
1929
- /**
1930
- * Récupère le compte client par son ID
1931
- * @param {ClientAccountsApiGetClientAccountByIdRequest} requestParameters Request parameters.
1932
- * @param {*} [options] Override http request option.
1933
- * @throws {RequiredError}
1934
- */
1935
- getClientAccountById(requestParameters, options) {
1936
- return localVarFp.getClientAccountById(requestParameters.accountId, options).then((request) => request(axios, basePath));
1937
- },
1938
- /**
1939
- * Récupère l\'abonnement actif du compte client authentifié
1940
- * @param {*} [options] Override http request option.
1941
- * @throws {RequiredError}
1942
- */
1943
- getMyActiveSubscription(options) {
1944
- return localVarFp.getMyActiveSubscription(options).then((request) => request(axios, basePath));
1945
- },
1946
- /**
1947
- * Récupère le compte client de l\'utilisateur authentifié
1948
- * @param {*} [options] Override http request option.
1949
- * @throws {RequiredError}
1950
- */
1951
- getMyClientAccount(options) {
1952
- return localVarFp.getMyClientAccount(options).then((request) => request(axios, basePath));
1953
- },
1954
- /**
1955
- * Récupère l\'historique des abonnements du compte client authentifié
1956
- * @param {*} [options] Override http request option.
1957
- * @throws {RequiredError}
1958
- */
1959
- getSubscriptionsHistory(options) {
1960
- return localVarFp.getSubscriptionsHistory(options).then((request) => request(axios, basePath));
1961
- },
1962
- /**
1963
- * Liste les prix Stripe disponibles pour les abonnements client
1964
- * @param {*} [options] Override http request option.
1965
- * @throws {RequiredError}
1966
- */
1967
- listAvailablePrices(options) {
1968
- return localVarFp.listAvailablePrices(options).then((request) => request(axios, basePath));
1969
- },
1970
- /**
1971
- * Crée un nouveau compte client avec onboarding Stripe
1972
- * @param {ClientAccountsApiOnboardClientAccountRequest} requestParameters Request parameters.
1973
- * @param {*} [options] Override http request option.
1974
- * @throws {RequiredError}
1975
- */
1976
- onboardClientAccount(requestParameters, options) {
1977
- return localVarFp.onboardClientAccount(requestParameters.clientAccountOnboardingRequest, options).then((request) => request(axios, basePath));
1978
- },
1979
- /**
1980
- * Route d\'inscription d\'un utilisateur client (publique)
1981
- * @param {ClientAccountsApiRegisterClientUserRequest} requestParameters Request parameters.
1982
- * @param {*} [options] Override http request option.
1983
- * @throws {RequiredError}
1984
- */
1985
- registerClientUser(requestParameters, options) {
1986
- return localVarFp.registerClientUser(requestParameters.clientRegisterRequestBody, options).then((request) => request(axios, basePath));
1987
- },
1988
- };
1989
- };
1990
- /**
1991
- * ClientAccountsApi - object-oriented interface
1992
- * @export
1993
- * @class ClientAccountsApi
1994
- * @extends {BaseAPI}
1995
- */
1996
- export class ClientAccountsApi extends BaseAPI {
1997
- /**
1998
- * Informations de l\'utilisateur client authentifié (token clientAuth)
1999
- * @param {*} [options] Override http request option.
2000
- * @throws {RequiredError}
2001
- * @memberof ClientAccountsApi
2002
- */
2003
- clientAuthMe(options) {
2004
- return ClientAccountsApiFp(this.configuration).clientAuthMe(options).then((request) => request(this.axios, this.basePath));
2005
- }
2006
- /**
2007
- * Récupère le compte client par son ID
2008
- * @param {ClientAccountsApiGetClientAccountByIdRequest} requestParameters Request parameters.
2009
- * @param {*} [options] Override http request option.
2010
- * @throws {RequiredError}
2011
- * @memberof ClientAccountsApi
2012
- */
2013
- getClientAccountById(requestParameters, options) {
2014
- return ClientAccountsApiFp(this.configuration).getClientAccountById(requestParameters.accountId, options).then((request) => request(this.axios, this.basePath));
2015
- }
2016
- /**
2017
- * Récupère l\'abonnement actif du compte client authentifié
2018
- * @param {*} [options] Override http request option.
2019
- * @throws {RequiredError}
2020
- * @memberof ClientAccountsApi
2021
- */
2022
- getMyActiveSubscription(options) {
2023
- return ClientAccountsApiFp(this.configuration).getMyActiveSubscription(options).then((request) => request(this.axios, this.basePath));
2024
- }
2025
- /**
2026
- * Récupère le compte client de l\'utilisateur authentifié
2027
- * @param {*} [options] Override http request option.
2028
- * @throws {RequiredError}
2029
- * @memberof ClientAccountsApi
2030
- */
2031
- getMyClientAccount(options) {
2032
- return ClientAccountsApiFp(this.configuration).getMyClientAccount(options).then((request) => request(this.axios, this.basePath));
2033
- }
2034
- /**
2035
- * Récupère l\'historique des abonnements du compte client authentifié
2036
- * @param {*} [options] Override http request option.
2037
- * @throws {RequiredError}
2038
- * @memberof ClientAccountsApi
2039
- */
2040
- getSubscriptionsHistory(options) {
2041
- return ClientAccountsApiFp(this.configuration).getSubscriptionsHistory(options).then((request) => request(this.axios, this.basePath));
2042
- }
2043
- /**
2044
- * Liste les prix Stripe disponibles pour les abonnements client
2045
- * @param {*} [options] Override http request option.
2046
- * @throws {RequiredError}
2047
- * @memberof ClientAccountsApi
2048
- */
2049
- listAvailablePrices(options) {
2050
- return ClientAccountsApiFp(this.configuration).listAvailablePrices(options).then((request) => request(this.axios, this.basePath));
2051
- }
2052
- /**
2053
- * Crée un nouveau compte client avec onboarding Stripe
2054
- * @param {ClientAccountsApiOnboardClientAccountRequest} requestParameters Request parameters.
2055
- * @param {*} [options] Override http request option.
2056
- * @throws {RequiredError}
2057
- * @memberof ClientAccountsApi
2058
- */
2059
- onboardClientAccount(requestParameters, options) {
2060
- return ClientAccountsApiFp(this.configuration).onboardClientAccount(requestParameters.clientAccountOnboardingRequest, options).then((request) => request(this.axios, this.basePath));
2061
- }
2062
- /**
2063
- * Route d\'inscription d\'un utilisateur client (publique)
2064
- * @param {ClientAccountsApiRegisterClientUserRequest} requestParameters Request parameters.
2065
- * @param {*} [options] Override http request option.
2066
- * @throws {RequiredError}
2067
- * @memberof ClientAccountsApi
2068
- */
2069
- registerClientUser(requestParameters, options) {
2070
- return ClientAccountsApiFp(this.configuration).registerClientUser(requestParameters.clientRegisterRequestBody, options).then((request) => request(this.axios, this.basePath));
2071
- }
2072
- }
2073
- /**
2074
- * ClubAnalyticsApi - axios parameter creator
2075
- * @export
2076
- */
2077
- export const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
2078
- return {
2079
- /**
2080
- * Récupère les clubs les plus aimés
2081
- * @param {*} [options] Override http request option.
2082
- * @throws {RequiredError}
2083
- */
2084
- getMostLikedClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2085
- const localVarPath = `/api/club-analytics/most-liked-clubs`;
2086
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2087
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2088
- let baseOptions;
2089
- if (configuration) {
2090
- baseOptions = configuration.baseOptions;
2091
- }
2092
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2093
- const localVarHeaderParameter = {};
2094
- const localVarQueryParameter = {};
2095
- // authentication bearerAuth required
2096
- // http bearer authentication required
2097
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2098
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2099
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2100
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2101
- return {
2102
- url: toPathString(localVarUrlObj),
2103
- options: localVarRequestOptions,
2104
- };
2105
- }),
2106
- /**
2107
- * Récupère les clubs populaires
2108
- * @param {*} [options] Override http request option.
2109
- * @throws {RequiredError}
2110
- */
2111
- getPopularClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2112
- const localVarPath = `/api/club-analytics/popular-clubs`;
2113
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2114
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2115
- let baseOptions;
2116
- if (configuration) {
2117
- baseOptions = configuration.baseOptions;
2118
- }
2119
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2120
- const localVarHeaderParameter = {};
2121
- const localVarQueryParameter = {};
2122
- // authentication bearerAuth required
2123
- // http bearer authentication required
2124
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2125
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2126
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2127
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2128
- return {
2129
- url: toPathString(localVarUrlObj),
2130
- options: localVarRequestOptions,
2131
- };
2132
- }),
2133
- };
2134
- };
2135
- /**
2136
- * ClubAnalyticsApi - functional programming interface
2137
- * @export
2138
- */
2139
- export const ClubAnalyticsApiFp = function (configuration) {
2140
- const localVarAxiosParamCreator = ClubAnalyticsApiAxiosParamCreator(configuration);
2141
- return {
2142
- /**
2143
- * Récupère les clubs les plus aimés
2144
- * @param {*} [options] Override http request option.
2145
- * @throws {RequiredError}
2146
- */
2147
- getMostLikedClub(options) {
2148
- return __awaiter(this, void 0, void 0, function* () {
2149
- var _a, _b, _c;
2150
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getMostLikedClub(options);
2151
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2152
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsApi.getMostLikedClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2153
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2154
- });
2155
- },
2156
- /**
2157
- * Récupère les clubs populaires
2158
- * @param {*} [options] Override http request option.
2159
- * @throws {RequiredError}
2160
- */
2161
- getPopularClubs(options) {
2162
- return __awaiter(this, void 0, void 0, function* () {
2163
- var _a, _b, _c;
2164
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPopularClubs(options);
2165
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2166
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsApi.getPopularClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2167
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2168
- });
2169
- },
2170
- };
2171
- };
2172
- /**
2173
- * ClubAnalyticsApi - factory interface
2174
- * @export
2175
- */
2176
- export const ClubAnalyticsApiFactory = function (configuration, basePath, axios) {
2177
- const localVarFp = ClubAnalyticsApiFp(configuration);
2178
- return {
2179
- /**
2180
- * Récupère les clubs les plus aimés
2181
- * @param {*} [options] Override http request option.
2182
- * @throws {RequiredError}
2183
- */
2184
- getMostLikedClub(options) {
2185
- return localVarFp.getMostLikedClub(options).then((request) => request(axios, basePath));
2186
- },
2187
- /**
2188
- * Récupère les clubs populaires
2189
- * @param {*} [options] Override http request option.
2190
- * @throws {RequiredError}
2191
- */
2192
- getPopularClubs(options) {
2193
- return localVarFp.getPopularClubs(options).then((request) => request(axios, basePath));
2194
- },
2195
- };
2196
- };
2197
- /**
2198
- * ClubAnalyticsApi - object-oriented interface
2199
- * @export
2200
- * @class ClubAnalyticsApi
2201
- * @extends {BaseAPI}
2202
- */
2203
- export class ClubAnalyticsApi extends BaseAPI {
2204
- /**
2205
- * Récupère les clubs les plus aimés
2206
- * @param {*} [options] Override http request option.
2207
- * @throws {RequiredError}
2208
- * @memberof ClubAnalyticsApi
2209
- */
2210
- getMostLikedClub(options) {
2211
- return ClubAnalyticsApiFp(this.configuration).getMostLikedClub(options).then((request) => request(this.axios, this.basePath));
2212
- }
2213
- /**
2214
- * Récupère les clubs populaires
2215
- * @param {*} [options] Override http request option.
2216
- * @throws {RequiredError}
2217
- * @memberof ClubAnalyticsApi
2218
- */
2219
- getPopularClubs(options) {
2220
- return ClubAnalyticsApiFp(this.configuration).getPopularClubs(options).then((request) => request(this.axios, this.basePath));
2221
- }
2222
- }
2223
- /**
2224
- * ClubAnalyticsStaffApi - axios parameter creator
2225
- * @export
2226
- */
2227
- export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
2228
- return {
2229
- /**
2230
- * Récupère les analytics par sport
2231
- * @param {string} sportId
2232
- * @param {*} [options] Override http request option.
2233
- * @throws {RequiredError}
2234
- */
2235
- getAnalyticsBySport: (sportId_1, ...args_1) => __awaiter(this, [sportId_1, ...args_1], void 0, function* (sportId, options = {}) {
2236
- // verify required parameter 'sportId' is not null or undefined
2237
- assertParamExists('getAnalyticsBySport', 'sportId', sportId);
2238
- const localVarPath = `/api/club-analytics/sport/{sportId}/analytics`
2239
- .replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)));
2240
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2241
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2242
- let baseOptions;
2243
- if (configuration) {
2244
- baseOptions = configuration.baseOptions;
2245
- }
2246
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2247
- const localVarHeaderParameter = {};
2248
- const localVarQueryParameter = {};
2249
- // authentication bearerAuth required
2250
- // http bearer authentication required
2251
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2252
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2253
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2254
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2255
- return {
2256
- url: toPathString(localVarUrlObj),
2257
- options: localVarRequestOptions,
2258
- };
2259
- }),
2260
- /**
2261
- * Récupère les réservations d\'un joueur par son ID (à venir et passées)
2262
- * @param {string} playerId
2263
- * @param {number} [page]
2264
- * @param {number} [pageSize]
2265
- * @param {*} [options] Override http request option.
2266
- * @throws {RequiredError}
2267
- */
2268
- 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 = {}) {
2269
- // verify required parameter 'playerId' is not null or undefined
2270
- assertParamExists('getClubPlayerBookingsById', 'playerId', playerId);
2271
- const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
2272
- .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
2273
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2274
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2275
- let baseOptions;
2276
- if (configuration) {
2277
- baseOptions = configuration.baseOptions;
2278
- }
2279
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2280
- const localVarHeaderParameter = {};
2281
- const localVarQueryParameter = {};
2282
- // authentication bearerAuth required
2283
- // http bearer authentication required
2284
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2285
- if (page !== undefined) {
2286
- localVarQueryParameter['page'] = page;
2287
- }
2288
- if (pageSize !== undefined) {
2289
- localVarQueryParameter['pageSize'] = pageSize;
2290
- }
2291
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2292
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2293
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2294
- return {
2295
- url: toPathString(localVarUrlObj),
2296
- options: localVarRequestOptions,
2297
- };
2298
- }),
2299
- /**
2300
- * Récupère les informations détaillées d\'un joueur par son ID
2301
- * @param {string} playerId
2302
- * @param {*} [options] Override http request option.
2303
- * @throws {RequiredError}
2304
- */
2305
- getClubPlayerById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
2306
- // verify required parameter 'playerId' is not null or undefined
2307
- assertParamExists('getClubPlayerById', 'playerId', playerId);
2308
- const localVarPath = `/api/club-analytics/players/{playerId}`
2309
- .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
2310
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2311
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2312
- let baseOptions;
2313
- if (configuration) {
2314
- baseOptions = configuration.baseOptions;
2315
- }
2316
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2317
- const localVarHeaderParameter = {};
2318
- const localVarQueryParameter = {};
2319
- // authentication bearerAuth required
2320
- // http bearer authentication required
2321
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2322
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2323
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2324
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2325
- return {
2326
- url: toPathString(localVarUrlObj),
2327
- options: localVarRequestOptions,
2328
- };
2329
- }),
2330
- /**
2331
- * Récupère les statistiques d\'un joueur pour le staff
2332
- * @param {string} playerId
2333
- * @param {*} [options] Override http request option.
2334
- * @throws {RequiredError}
2335
- */
2336
- getClubPlayerStatisticsById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
2337
- // verify required parameter 'playerId' is not null or undefined
2338
- assertParamExists('getClubPlayerStatisticsById', 'playerId', playerId);
2339
- const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
2340
- .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
2341
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2342
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2343
- let baseOptions;
2344
- if (configuration) {
2345
- baseOptions = configuration.baseOptions;
2346
- }
2347
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2348
- const localVarHeaderParameter = {};
2349
- const localVarQueryParameter = {};
2350
- // authentication bearerAuth required
2351
- // http bearer authentication required
2352
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2353
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2354
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2355
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2356
- return {
2357
- url: toPathString(localVarUrlObj),
2358
- options: localVarRequestOptions,
2359
- };
2360
- }),
2361
- /**
2362
- * Récupère la liste des joueurs du club
2363
- * @param {*} [options] Override http request option.
2364
- * @throws {RequiredError}
2365
- */
2366
- getClubPlayers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2367
- const localVarPath = `/api/club-analytics/players`;
2368
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2369
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2370
- let baseOptions;
2371
- if (configuration) {
2372
- baseOptions = configuration.baseOptions;
2373
- }
2374
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2375
- const localVarHeaderParameter = {};
2376
- const localVarQueryParameter = {};
2377
- // authentication bearerAuth required
2378
- // http bearer authentication required
2379
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2380
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2381
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2382
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2383
- return {
2384
- url: toPathString(localVarUrlObj),
2385
- options: localVarRequestOptions,
2386
- };
2387
- }),
2388
- /**
2389
- * Récupère le chiffre d\'affaires quotidien
2390
- * @param {string} date
2391
- * @param {*} [options] Override http request option.
2392
- * @throws {RequiredError}
2393
- */
2394
- getDailyTurnOver: (date_1, ...args_1) => __awaiter(this, [date_1, ...args_1], void 0, function* (date, options = {}) {
2395
- // verify required parameter 'date' is not null or undefined
2396
- assertParamExists('getDailyTurnOver', 'date', date);
2397
- const localVarPath = `/api/club-analytics/daily-turnover`;
2398
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2399
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2400
- let baseOptions;
2401
- if (configuration) {
2402
- baseOptions = configuration.baseOptions;
2403
- }
2404
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2405
- const localVarHeaderParameter = {};
2406
- const localVarQueryParameter = {};
2407
- // authentication bearerAuth required
2408
- // http bearer authentication required
2409
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2410
- if (date !== undefined) {
2411
- localVarQueryParameter['date'] = date;
2412
- }
2413
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2414
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2415
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2416
- return {
2417
- url: toPathString(localVarUrlObj),
2418
- options: localVarRequestOptions,
2419
- };
2420
- }),
2421
- /**
2422
- * Récupère les pourcentages par genre
2423
- * @param {*} [options] Override http request option.
2424
- * @throws {RequiredError}
2425
- */
2426
- getGenderPercentage: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2427
- const localVarPath = `/api/club-analytics/gender-percentage`;
2428
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2429
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2430
- let baseOptions;
2431
- if (configuration) {
2432
- baseOptions = configuration.baseOptions;
2433
- }
2434
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2435
- const localVarHeaderParameter = {};
2436
- const localVarQueryParameter = {};
2437
- // authentication bearerAuth required
2438
- // http bearer authentication required
2439
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2440
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2441
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2442
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2443
- return {
2444
- url: toPathString(localVarUrlObj),
2445
- options: localVarRequestOptions,
2446
- };
2447
- }),
2448
- /**
2449
- * Récupère le taux de remplissage (infill) pour une période donnée
2450
- * @param {string} [startDate]
2451
- * @param {string} [endDate]
1991
+ * Récupère le taux de remplissage (infill) pour une période donnée
1992
+ * @param {string} [startDate]
1993
+ * @param {string} [endDate]
2452
1994
  * @param {*} [options] Override http request option.
2453
1995
  * @throws {RequiredError}
2454
1996
  */
@@ -6487,27 +6029,36 @@ export class ClubsManagerApi extends BaseAPI {
6487
6029
  export const ClubsStaffApiAxiosParamCreator = function (configuration) {
6488
6030
  return {
6489
6031
  /**
6490
- *
6032
+ * Crée une facture manuelle (on-site) et l\'associe à une réservation
6033
+ * @param {string} bookingId
6034
+ * @param {CreateOnsiteInvoiceRequest} createOnsiteInvoiceRequest
6491
6035
  * @param {*} [options] Override http request option.
6492
6036
  * @throws {RequiredError}
6493
6037
  */
6494
- getActualities: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6495
- const localVarPath = `/api/clubs/staff/actualities`;
6038
+ createOnsiteInvoiceForBooking: (bookingId_1, createOnsiteInvoiceRequest_1, ...args_1) => __awaiter(this, [bookingId_1, createOnsiteInvoiceRequest_1, ...args_1], void 0, function* (bookingId, createOnsiteInvoiceRequest, options = {}) {
6039
+ // verify required parameter 'bookingId' is not null or undefined
6040
+ assertParamExists('createOnsiteInvoiceForBooking', 'bookingId', bookingId);
6041
+ // verify required parameter 'createOnsiteInvoiceRequest' is not null or undefined
6042
+ assertParamExists('createOnsiteInvoiceForBooking', 'createOnsiteInvoiceRequest', createOnsiteInvoiceRequest);
6043
+ const localVarPath = `/api/clubs/staff/bookings/{bookingId}/invoices`
6044
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
6496
6045
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6497
6046
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6498
6047
  let baseOptions;
6499
6048
  if (configuration) {
6500
6049
  baseOptions = configuration.baseOptions;
6501
6050
  }
6502
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6051
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
6503
6052
  const localVarHeaderParameter = {};
6504
6053
  const localVarQueryParameter = {};
6505
6054
  // authentication bearerAuth required
6506
6055
  // http bearer authentication required
6507
6056
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6057
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6508
6058
  setSearchParams(localVarUrlObj, localVarQueryParameter);
6509
6059
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6510
6060
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6061
+ localVarRequestOptions.data = serializeDataIfNeeded(createOnsiteInvoiceRequest, localVarRequestOptions, configuration);
6511
6062
  return {
6512
6063
  url: toPathString(localVarUrlObj),
6513
6064
  options: localVarRequestOptions,
@@ -6518,8 +6069,8 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
6518
6069
  * @param {*} [options] Override http request option.
6519
6070
  * @throws {RequiredError}
6520
6071
  */
6521
- getClubInfos: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6522
- const localVarPath = `/api/clubs/infos`;
6072
+ getActualities: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6073
+ const localVarPath = `/api/clubs/staff/actualities`;
6523
6074
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6524
6075
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6525
6076
  let baseOptions;
@@ -6541,12 +6092,12 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
6541
6092
  };
6542
6093
  }),
6543
6094
  /**
6544
- * Récupère les membres d\'un club
6095
+ *
6545
6096
  * @param {*} [options] Override http request option.
6546
6097
  * @throws {RequiredError}
6547
6098
  */
6548
- getClubMembers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6549
- const localVarPath = `/api/clubs/members`;
6099
+ getClubInfos: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6100
+ const localVarPath = `/api/clubs/infos`;
6550
6101
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6551
6102
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6552
6103
  let baseOptions;
@@ -6568,12 +6119,12 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
6568
6119
  };
6569
6120
  }),
6570
6121
  /**
6571
- *
6122
+ * Récupère les membres d\'un club
6572
6123
  * @param {*} [options] Override http request option.
6573
6124
  * @throws {RequiredError}
6574
6125
  */
6575
- getClubPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6576
- const localVarPath = `/api/clubs/settings/presentation`;
6126
+ getClubMembers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6127
+ const localVarPath = `/api/clubs/members`;
6577
6128
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6578
6129
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6579
6130
  let baseOptions;
@@ -6595,12 +6146,12 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
6595
6146
  };
6596
6147
  }),
6597
6148
  /**
6598
- * Récupère les rôles d\'un club
6149
+ *
6599
6150
  * @param {*} [options] Override http request option.
6600
6151
  * @throws {RequiredError}
6601
6152
  */
6602
- getClubRoles: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6603
- const localVarPath = `/api/clubs/roles`;
6153
+ getClubPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6154
+ const localVarPath = `/api/clubs/settings/presentation`;
6604
6155
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6605
6156
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6606
6157
  let baseOptions;
@@ -6622,12 +6173,12 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
6622
6173
  };
6623
6174
  }),
6624
6175
  /**
6625
- * Récupère les terrains d\'un club
6176
+ * Récupère les rôles d\'un club
6626
6177
  * @param {*} [options] Override http request option.
6627
6178
  * @throws {RequiredError}
6628
6179
  */
6629
- getCourtsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6630
- const localVarPath = `/api/clubs/courts`;
6180
+ getClubRoles: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6181
+ const localVarPath = `/api/clubs/roles`;
6631
6182
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6632
6183
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6633
6184
  let baseOptions;
@@ -6649,12 +6200,12 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
6649
6200
  };
6650
6201
  }),
6651
6202
  /**
6652
- *
6203
+ * Récupère les terrains d\'un club
6653
6204
  * @param {*} [options] Override http request option.
6654
6205
  * @throws {RequiredError}
6655
6206
  */
6656
- getInvoices: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6657
- const localVarPath = `/api/clubs/invoices`;
6207
+ getCourtsByClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6208
+ const localVarPath = `/api/clubs/courts`;
6658
6209
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6659
6210
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6660
6211
  let baseOptions;
@@ -6677,15 +6228,11 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
6677
6228
  }),
6678
6229
  /**
6679
6230
  *
6680
- * @param {string} id
6681
6231
  * @param {*} [options] Override http request option.
6682
6232
  * @throws {RequiredError}
6683
6233
  */
6684
- getUserProfileStaff: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
6685
- // verify required parameter 'id' is not null or undefined
6686
- assertParamExists('getUserProfileStaff', 'id', id);
6687
- const localVarPath = `/api/clubs/staff/profile/{id}`
6688
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
6234
+ getInvoices: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6235
+ const localVarPath = `/api/clubs/invoices`;
6689
6236
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6690
6237
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6691
6238
  let baseOptions;
@@ -6709,16 +6256,13 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
6709
6256
  /**
6710
6257
  *
6711
6258
  * @param {string} id
6712
- * @param {UpdateUserCreditsRequest} updateUserCreditsRequest
6713
6259
  * @param {*} [options] Override http request option.
6714
6260
  * @throws {RequiredError}
6715
6261
  */
6716
- updateUserCreditsStaff: (id_1, updateUserCreditsRequest_1, ...args_1) => __awaiter(this, [id_1, updateUserCreditsRequest_1, ...args_1], void 0, function* (id, updateUserCreditsRequest, options = {}) {
6262
+ getUserProfileStaff: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
6717
6263
  // verify required parameter 'id' is not null or undefined
6718
- assertParamExists('updateUserCreditsStaff', 'id', id);
6719
- // verify required parameter 'updateUserCreditsRequest' is not null or undefined
6720
- assertParamExists('updateUserCreditsStaff', 'updateUserCreditsRequest', updateUserCreditsRequest);
6721
- const localVarPath = `/api/clubs/staff/user-credits/{id}`
6264
+ assertParamExists('getUserProfileStaff', 'id', id);
6265
+ const localVarPath = `/api/clubs/staff/profile/{id}`
6722
6266
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
6723
6267
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6724
6268
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -6726,17 +6270,15 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
6726
6270
  if (configuration) {
6727
6271
  baseOptions = configuration.baseOptions;
6728
6272
  }
6729
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
6273
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6730
6274
  const localVarHeaderParameter = {};
6731
6275
  const localVarQueryParameter = {};
6732
6276
  // authentication bearerAuth required
6733
6277
  // http bearer authentication required
6734
6278
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6735
- localVarHeaderParameter['Content-Type'] = 'application/json';
6736
6279
  setSearchParams(localVarUrlObj, localVarQueryParameter);
6737
6280
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6738
6281
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6739
- localVarRequestOptions.data = serializeDataIfNeeded(updateUserCreditsRequest, localVarRequestOptions, configuration);
6740
6282
  return {
6741
6283
  url: toPathString(localVarUrlObj),
6742
6284
  options: localVarRequestOptions,
@@ -6751,6 +6293,22 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
6751
6293
  export const ClubsStaffApiFp = function (configuration) {
6752
6294
  const localVarAxiosParamCreator = ClubsStaffApiAxiosParamCreator(configuration);
6753
6295
  return {
6296
+ /**
6297
+ * Crée une facture manuelle (on-site) et l\'associe à une réservation
6298
+ * @param {string} bookingId
6299
+ * @param {CreateOnsiteInvoiceRequest} createOnsiteInvoiceRequest
6300
+ * @param {*} [options] Override http request option.
6301
+ * @throws {RequiredError}
6302
+ */
6303
+ createOnsiteInvoiceForBooking(bookingId, createOnsiteInvoiceRequest, options) {
6304
+ return __awaiter(this, void 0, void 0, function* () {
6305
+ var _a, _b, _c;
6306
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createOnsiteInvoiceForBooking(bookingId, createOnsiteInvoiceRequest, options);
6307
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6308
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsStaffApi.createOnsiteInvoiceForBooking']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6309
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6310
+ });
6311
+ },
6754
6312
  /**
6755
6313
  *
6756
6314
  * @param {*} [options] Override http request option.
@@ -6864,22 +6422,6 @@ export const ClubsStaffApiFp = function (configuration) {
6864
6422
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6865
6423
  });
6866
6424
  },
6867
- /**
6868
- *
6869
- * @param {string} id
6870
- * @param {UpdateUserCreditsRequest} updateUserCreditsRequest
6871
- * @param {*} [options] Override http request option.
6872
- * @throws {RequiredError}
6873
- */
6874
- updateUserCreditsStaff(id, updateUserCreditsRequest, options) {
6875
- return __awaiter(this, void 0, void 0, function* () {
6876
- var _a, _b, _c;
6877
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserCreditsStaff(id, updateUserCreditsRequest, options);
6878
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6879
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsStaffApi.updateUserCreditsStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6880
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6881
- });
6882
- },
6883
6425
  };
6884
6426
  };
6885
6427
  /**
@@ -6889,6 +6431,15 @@ export const ClubsStaffApiFp = function (configuration) {
6889
6431
  export const ClubsStaffApiFactory = function (configuration, basePath, axios) {
6890
6432
  const localVarFp = ClubsStaffApiFp(configuration);
6891
6433
  return {
6434
+ /**
6435
+ * Crée une facture manuelle (on-site) et l\'associe à une réservation
6436
+ * @param {ClubsStaffApiCreateOnsiteInvoiceForBookingRequest} requestParameters Request parameters.
6437
+ * @param {*} [options] Override http request option.
6438
+ * @throws {RequiredError}
6439
+ */
6440
+ createOnsiteInvoiceForBooking(requestParameters, options) {
6441
+ return localVarFp.createOnsiteInvoiceForBooking(requestParameters.bookingId, requestParameters.createOnsiteInvoiceRequest, options).then((request) => request(axios, basePath));
6442
+ },
6892
6443
  /**
6893
6444
  *
6894
6445
  * @param {*} [options] Override http request option.
@@ -6954,15 +6505,6 @@ export const ClubsStaffApiFactory = function (configuration, basePath, axios) {
6954
6505
  getUserProfileStaff(requestParameters, options) {
6955
6506
  return localVarFp.getUserProfileStaff(requestParameters.id, options).then((request) => request(axios, basePath));
6956
6507
  },
6957
- /**
6958
- *
6959
- * @param {ClubsStaffApiUpdateUserCreditsStaffRequest} requestParameters Request parameters.
6960
- * @param {*} [options] Override http request option.
6961
- * @throws {RequiredError}
6962
- */
6963
- updateUserCreditsStaff(requestParameters, options) {
6964
- return localVarFp.updateUserCreditsStaff(requestParameters.id, requestParameters.updateUserCreditsRequest, options).then((request) => request(axios, basePath));
6965
- },
6966
6508
  };
6967
6509
  };
6968
6510
  /**
@@ -6972,6 +6514,16 @@ export const ClubsStaffApiFactory = function (configuration, basePath, axios) {
6972
6514
  * @extends {BaseAPI}
6973
6515
  */
6974
6516
  export class ClubsStaffApi extends BaseAPI {
6517
+ /**
6518
+ * Crée une facture manuelle (on-site) et l\'associe à une réservation
6519
+ * @param {ClubsStaffApiCreateOnsiteInvoiceForBookingRequest} requestParameters Request parameters.
6520
+ * @param {*} [options] Override http request option.
6521
+ * @throws {RequiredError}
6522
+ * @memberof ClubsStaffApi
6523
+ */
6524
+ createOnsiteInvoiceForBooking(requestParameters, options) {
6525
+ return ClubsStaffApiFp(this.configuration).createOnsiteInvoiceForBooking(requestParameters.bookingId, requestParameters.createOnsiteInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
6526
+ }
6975
6527
  /**
6976
6528
  *
6977
6529
  * @param {*} [options] Override http request option.
@@ -7045,16 +6597,6 @@ export class ClubsStaffApi extends BaseAPI {
7045
6597
  getUserProfileStaff(requestParameters, options) {
7046
6598
  return ClubsStaffApiFp(this.configuration).getUserProfileStaff(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
7047
6599
  }
7048
- /**
7049
- *
7050
- * @param {ClubsStaffApiUpdateUserCreditsStaffRequest} requestParameters Request parameters.
7051
- * @param {*} [options] Override http request option.
7052
- * @throws {RequiredError}
7053
- * @memberof ClubsStaffApi
7054
- */
7055
- updateUserCreditsStaff(requestParameters, options) {
7056
- return ClubsStaffApiFp(this.configuration).updateUserCreditsStaff(requestParameters.id, requestParameters.updateUserCreditsRequest, options).then((request) => request(this.axios, this.basePath));
7057
- }
7058
6600
  }
7059
6601
  /**
7060
6602
  * DefaultApi - axios parameter creator
@@ -7483,6 +7025,38 @@ export const GetPublishedEventsByClubIdTypeEnum = {
7483
7025
  */
7484
7026
  export const EventsManagerApiAxiosParamCreator = function (configuration) {
7485
7027
  return {
7028
+ /**
7029
+ * Check if there are bookings overlapping an event window (for create/update/delete)
7030
+ * @param {EventConflictCheckRequest} eventConflictCheckRequest
7031
+ * @param {*} [options] Override http request option.
7032
+ * @throws {RequiredError}
7033
+ */
7034
+ checkEventConflicts: (eventConflictCheckRequest_1, ...args_1) => __awaiter(this, [eventConflictCheckRequest_1, ...args_1], void 0, function* (eventConflictCheckRequest, options = {}) {
7035
+ // verify required parameter 'eventConflictCheckRequest' is not null or undefined
7036
+ assertParamExists('checkEventConflicts', 'eventConflictCheckRequest', eventConflictCheckRequest);
7037
+ const localVarPath = `/api/events/manager/checkConflicts`;
7038
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7039
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7040
+ let baseOptions;
7041
+ if (configuration) {
7042
+ baseOptions = configuration.baseOptions;
7043
+ }
7044
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
7045
+ const localVarHeaderParameter = {};
7046
+ const localVarQueryParameter = {};
7047
+ // authentication bearerAuth required
7048
+ // http bearer authentication required
7049
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7050
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7051
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7052
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7053
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7054
+ localVarRequestOptions.data = serializeDataIfNeeded(eventConflictCheckRequest, localVarRequestOptions, configuration);
7055
+ return {
7056
+ url: toPathString(localVarUrlObj),
7057
+ options: localVarRequestOptions,
7058
+ };
7059
+ }),
7486
7060
  /**
7487
7061
  * Create a new event (manager)
7488
7062
  * @param {CreateEventRequest} createEventRequest
@@ -7583,10 +7157,44 @@ export const EventsManagerApiAxiosParamCreator = function (configuration) {
7583
7157
  * @param {*} [options] Override http request option.
7584
7158
  * @throws {RequiredError}
7585
7159
  */
7586
- unpublishEvent: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
7160
+ unpublishEvent: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
7161
+ // verify required parameter 'eventId' is not null or undefined
7162
+ assertParamExists('unpublishEvent', 'eventId', eventId);
7163
+ const localVarPath = `/api/events/manager/unpublishEvent/{eventId}`
7164
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
7165
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7166
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7167
+ let baseOptions;
7168
+ if (configuration) {
7169
+ baseOptions = configuration.baseOptions;
7170
+ }
7171
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
7172
+ const localVarHeaderParameter = {};
7173
+ const localVarQueryParameter = {};
7174
+ // authentication bearerAuth required
7175
+ // http bearer authentication required
7176
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7177
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7178
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7179
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7180
+ return {
7181
+ url: toPathString(localVarUrlObj),
7182
+ options: localVarRequestOptions,
7183
+ };
7184
+ }),
7185
+ /**
7186
+ * Update an event (manager)
7187
+ * @param {string} eventId
7188
+ * @param {UpdateEventRequest} updateEventRequest
7189
+ * @param {*} [options] Override http request option.
7190
+ * @throws {RequiredError}
7191
+ */
7192
+ updateEvent: (eventId_1, updateEventRequest_1, ...args_1) => __awaiter(this, [eventId_1, updateEventRequest_1, ...args_1], void 0, function* (eventId, updateEventRequest, options = {}) {
7587
7193
  // verify required parameter 'eventId' is not null or undefined
7588
- assertParamExists('unpublishEvent', 'eventId', eventId);
7589
- const localVarPath = `/api/events/manager/unpublishEvent/{eventId}`
7194
+ assertParamExists('updateEvent', 'eventId', eventId);
7195
+ // verify required parameter 'updateEventRequest' is not null or undefined
7196
+ assertParamExists('updateEvent', 'updateEventRequest', updateEventRequest);
7197
+ const localVarPath = `/api/events/manager/updateEvent/{eventId}`
7590
7198
  .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
7591
7199
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7592
7200
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -7600,27 +7208,29 @@ export const EventsManagerApiAxiosParamCreator = function (configuration) {
7600
7208
  // authentication bearerAuth required
7601
7209
  // http bearer authentication required
7602
7210
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7211
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7603
7212
  setSearchParams(localVarUrlObj, localVarQueryParameter);
7604
7213
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7605
7214
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7215
+ localVarRequestOptions.data = serializeDataIfNeeded(updateEventRequest, localVarRequestOptions, configuration);
7606
7216
  return {
7607
7217
  url: toPathString(localVarUrlObj),
7608
7218
  options: localVarRequestOptions,
7609
7219
  };
7610
7220
  }),
7611
7221
  /**
7612
- * Update an event (manager)
7222
+ * Update a published event (manager) and propagate slot changes and conflicts
7613
7223
  * @param {string} eventId
7614
7224
  * @param {UpdateEventRequest} updateEventRequest
7615
7225
  * @param {*} [options] Override http request option.
7616
7226
  * @throws {RequiredError}
7617
7227
  */
7618
- updateEvent: (eventId_1, updateEventRequest_1, ...args_1) => __awaiter(this, [eventId_1, updateEventRequest_1, ...args_1], void 0, function* (eventId, updateEventRequest, options = {}) {
7228
+ updatePublishedEvent: (eventId_1, updateEventRequest_1, ...args_1) => __awaiter(this, [eventId_1, updateEventRequest_1, ...args_1], void 0, function* (eventId, updateEventRequest, options = {}) {
7619
7229
  // verify required parameter 'eventId' is not null or undefined
7620
- assertParamExists('updateEvent', 'eventId', eventId);
7230
+ assertParamExists('updatePublishedEvent', 'eventId', eventId);
7621
7231
  // verify required parameter 'updateEventRequest' is not null or undefined
7622
- assertParamExists('updateEvent', 'updateEventRequest', updateEventRequest);
7623
- const localVarPath = `/api/events/manager/updateEvent/{eventId}`
7232
+ assertParamExists('updatePublishedEvent', 'updateEventRequest', updateEventRequest);
7233
+ const localVarPath = `/api/events/manager/updatePublishedEvent/{eventId}`
7624
7234
  .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
7625
7235
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7626
7236
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -7653,6 +7263,21 @@ export const EventsManagerApiAxiosParamCreator = function (configuration) {
7653
7263
  export const EventsManagerApiFp = function (configuration) {
7654
7264
  const localVarAxiosParamCreator = EventsManagerApiAxiosParamCreator(configuration);
7655
7265
  return {
7266
+ /**
7267
+ * Check if there are bookings overlapping an event window (for create/update/delete)
7268
+ * @param {EventConflictCheckRequest} eventConflictCheckRequest
7269
+ * @param {*} [options] Override http request option.
7270
+ * @throws {RequiredError}
7271
+ */
7272
+ checkEventConflicts(eventConflictCheckRequest, options) {
7273
+ return __awaiter(this, void 0, void 0, function* () {
7274
+ var _a, _b, _c;
7275
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.checkEventConflicts(eventConflictCheckRequest, options);
7276
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7277
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsManagerApi.checkEventConflicts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7278
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7279
+ });
7280
+ },
7656
7281
  /**
7657
7282
  * Create a new event (manager)
7658
7283
  * @param {CreateEventRequest} createEventRequest
@@ -7729,6 +7354,22 @@ export const EventsManagerApiFp = function (configuration) {
7729
7354
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7730
7355
  });
7731
7356
  },
7357
+ /**
7358
+ * Update a published event (manager) and propagate slot changes and conflicts
7359
+ * @param {string} eventId
7360
+ * @param {UpdateEventRequest} updateEventRequest
7361
+ * @param {*} [options] Override http request option.
7362
+ * @throws {RequiredError}
7363
+ */
7364
+ updatePublishedEvent(eventId, updateEventRequest, options) {
7365
+ return __awaiter(this, void 0, void 0, function* () {
7366
+ var _a, _b, _c;
7367
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePublishedEvent(eventId, updateEventRequest, options);
7368
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7369
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsManagerApi.updatePublishedEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7370
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7371
+ });
7372
+ },
7732
7373
  };
7733
7374
  };
7734
7375
  /**
@@ -7738,6 +7379,15 @@ export const EventsManagerApiFp = function (configuration) {
7738
7379
  export const EventsManagerApiFactory = function (configuration, basePath, axios) {
7739
7380
  const localVarFp = EventsManagerApiFp(configuration);
7740
7381
  return {
7382
+ /**
7383
+ * Check if there are bookings overlapping an event window (for create/update/delete)
7384
+ * @param {EventsManagerApiCheckEventConflictsRequest} requestParameters Request parameters.
7385
+ * @param {*} [options] Override http request option.
7386
+ * @throws {RequiredError}
7387
+ */
7388
+ checkEventConflicts(requestParameters, options) {
7389
+ return localVarFp.checkEventConflicts(requestParameters.eventConflictCheckRequest, options).then((request) => request(axios, basePath));
7390
+ },
7741
7391
  /**
7742
7392
  * Create a new event (manager)
7743
7393
  * @param {EventsManagerApiCreateEventRequest} requestParameters Request parameters.
@@ -7783,6 +7433,15 @@ export const EventsManagerApiFactory = function (configuration, basePath, axios)
7783
7433
  updateEvent(requestParameters, options) {
7784
7434
  return localVarFp.updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(axios, basePath));
7785
7435
  },
7436
+ /**
7437
+ * Update a published event (manager) and propagate slot changes and conflicts
7438
+ * @param {EventsManagerApiUpdatePublishedEventRequest} requestParameters Request parameters.
7439
+ * @param {*} [options] Override http request option.
7440
+ * @throws {RequiredError}
7441
+ */
7442
+ updatePublishedEvent(requestParameters, options) {
7443
+ return localVarFp.updatePublishedEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(axios, basePath));
7444
+ },
7786
7445
  };
7787
7446
  };
7788
7447
  /**
@@ -7792,6 +7451,16 @@ export const EventsManagerApiFactory = function (configuration, basePath, axios)
7792
7451
  * @extends {BaseAPI}
7793
7452
  */
7794
7453
  export class EventsManagerApi extends BaseAPI {
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
+ * @memberof EventsManagerApi
7460
+ */
7461
+ checkEventConflicts(requestParameters, options) {
7462
+ return EventsManagerApiFp(this.configuration).checkEventConflicts(requestParameters.eventConflictCheckRequest, options).then((request) => request(this.axios, this.basePath));
7463
+ }
7795
7464
  /**
7796
7465
  * Create a new event (manager)
7797
7466
  * @param {EventsManagerApiCreateEventRequest} requestParameters Request parameters.
@@ -7842,6 +7511,16 @@ export class EventsManagerApi extends BaseAPI {
7842
7511
  updateEvent(requestParameters, options) {
7843
7512
  return EventsManagerApiFp(this.configuration).updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(this.axios, this.basePath));
7844
7513
  }
7514
+ /**
7515
+ * Update a published event (manager) and propagate slot changes and conflicts
7516
+ * @param {EventsManagerApiUpdatePublishedEventRequest} requestParameters Request parameters.
7517
+ * @param {*} [options] Override http request option.
7518
+ * @throws {RequiredError}
7519
+ * @memberof EventsManagerApi
7520
+ */
7521
+ updatePublishedEvent(requestParameters, options) {
7522
+ return EventsManagerApiFp(this.configuration).updatePublishedEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(this.axios, this.basePath));
7523
+ }
7845
7524
  }
7846
7525
  /**
7847
7526
  * EventsStaffApi - axios parameter creator
@@ -7850,47 +7529,36 @@ export class EventsManagerApi extends BaseAPI {
7850
7529
  export const EventsStaffApiAxiosParamCreator = function (configuration) {
7851
7530
  return {
7852
7531
  /**
7853
- * Get events for the day view (entire week)
7854
- * @param {string} [clubId]
7855
- * @param {string} [date]
7856
- * @param {GetDailyEventsVisibilityTypeEnum} [visibilityType]
7857
- * @param {GetDailyEventsTypeEnum} [type]
7858
- * @param {string} [sportId]
7532
+ * Check-in des participants d\'un EventBooking (clubs avec paiements)
7533
+ * @param {string} eventBookingId
7534
+ * @param {CheckInEventParticipantsRequest} checkInEventParticipantsRequest
7859
7535
  * @param {*} [options] Override http request option.
7860
7536
  * @throws {RequiredError}
7861
7537
  */
7862
- 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 = {}) {
7863
- const localVarPath = `/api/events/calendar/daily`;
7538
+ checkInEventParticipants: (eventBookingId_1, checkInEventParticipantsRequest_1, ...args_1) => __awaiter(this, [eventBookingId_1, checkInEventParticipantsRequest_1, ...args_1], void 0, function* (eventBookingId, checkInEventParticipantsRequest, options = {}) {
7539
+ // verify required parameter 'eventBookingId' is not null or undefined
7540
+ assertParamExists('checkInEventParticipants', 'eventBookingId', eventBookingId);
7541
+ // verify required parameter 'checkInEventParticipantsRequest' is not null or undefined
7542
+ assertParamExists('checkInEventParticipants', 'checkInEventParticipantsRequest', checkInEventParticipantsRequest);
7543
+ const localVarPath = `/api/events/{eventBookingId}/check-in`
7544
+ .replace(`{${"eventBookingId"}}`, encodeURIComponent(String(eventBookingId)));
7864
7545
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7865
7546
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7866
7547
  let baseOptions;
7867
7548
  if (configuration) {
7868
7549
  baseOptions = configuration.baseOptions;
7869
7550
  }
7870
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7551
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
7871
7552
  const localVarHeaderParameter = {};
7872
7553
  const localVarQueryParameter = {};
7873
7554
  // authentication bearerAuth required
7874
7555
  // http bearer authentication required
7875
7556
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7876
- if (clubId !== undefined) {
7877
- localVarQueryParameter['clubId'] = clubId;
7878
- }
7879
- if (date !== undefined) {
7880
- localVarQueryParameter['date'] = date;
7881
- }
7882
- if (visibilityType !== undefined) {
7883
- localVarQueryParameter['visibilityType'] = visibilityType;
7884
- }
7885
- if (type !== undefined) {
7886
- localVarQueryParameter['type'] = type;
7887
- }
7888
- if (sportId !== undefined) {
7889
- localVarQueryParameter['sportId'] = sportId;
7890
- }
7557
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7891
7558
  setSearchParams(localVarUrlObj, localVarQueryParameter);
7892
7559
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7893
7560
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7561
+ localVarRequestOptions.data = serializeDataIfNeeded(checkInEventParticipantsRequest, localVarRequestOptions, configuration);
7894
7562
  return {
7895
7563
  url: toPathString(localVarUrlObj),
7896
7564
  options: localVarRequestOptions,
@@ -7923,100 +7591,6 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
7923
7591
  options: localVarRequestOptions,
7924
7592
  };
7925
7593
  }),
7926
- /**
7927
- * Get events for the entire month view (including recurring occurrences)
7928
- * @param {string} [clubId]
7929
- * @param {string} [date]
7930
- * @param {GetMonthlyEventsVisibilityTypeEnum} [visibilityType]
7931
- * @param {GetMonthlyEventsTypeEnum} [type]
7932
- * @param {string} [sportId]
7933
- * @param {*} [options] Override http request option.
7934
- * @throws {RequiredError}
7935
- */
7936
- 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 = {}) {
7937
- const localVarPath = `/api/events/calendar/monthly`;
7938
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
7939
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7940
- let baseOptions;
7941
- if (configuration) {
7942
- baseOptions = configuration.baseOptions;
7943
- }
7944
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7945
- const localVarHeaderParameter = {};
7946
- const localVarQueryParameter = {};
7947
- // authentication bearerAuth required
7948
- // http bearer authentication required
7949
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7950
- if (clubId !== undefined) {
7951
- localVarQueryParameter['clubId'] = clubId;
7952
- }
7953
- if (date !== undefined) {
7954
- localVarQueryParameter['date'] = date;
7955
- }
7956
- if (visibilityType !== undefined) {
7957
- localVarQueryParameter['visibilityType'] = visibilityType;
7958
- }
7959
- if (type !== undefined) {
7960
- localVarQueryParameter['type'] = type;
7961
- }
7962
- if (sportId !== undefined) {
7963
- localVarQueryParameter['sportId'] = sportId;
7964
- }
7965
- setSearchParams(localVarUrlObj, localVarQueryParameter);
7966
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7967
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7968
- return {
7969
- url: toPathString(localVarUrlObj),
7970
- options: localVarRequestOptions,
7971
- };
7972
- }),
7973
- /**
7974
- * Get events for the week view (30 day sliding window)
7975
- * @param {string} [clubId]
7976
- * @param {string} [date]
7977
- * @param {GetWeeklyEventsVisibilityTypeEnum} [visibilityType]
7978
- * @param {GetWeeklyEventsTypeEnum} [type]
7979
- * @param {string} [sportId]
7980
- * @param {*} [options] Override http request option.
7981
- * @throws {RequiredError}
7982
- */
7983
- 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 = {}) {
7984
- const localVarPath = `/api/events/calendar/weekly`;
7985
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
7986
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7987
- let baseOptions;
7988
- if (configuration) {
7989
- baseOptions = configuration.baseOptions;
7990
- }
7991
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7992
- const localVarHeaderParameter = {};
7993
- const localVarQueryParameter = {};
7994
- // authentication bearerAuth required
7995
- // http bearer authentication required
7996
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7997
- if (clubId !== undefined) {
7998
- localVarQueryParameter['clubId'] = clubId;
7999
- }
8000
- if (date !== undefined) {
8001
- localVarQueryParameter['date'] = date;
8002
- }
8003
- if (visibilityType !== undefined) {
8004
- localVarQueryParameter['visibilityType'] = visibilityType;
8005
- }
8006
- if (type !== undefined) {
8007
- localVarQueryParameter['type'] = type;
8008
- }
8009
- if (sportId !== undefined) {
8010
- localVarQueryParameter['sportId'] = sportId;
8011
- }
8012
- setSearchParams(localVarUrlObj, localVarQueryParameter);
8013
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8014
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8015
- return {
8016
- url: toPathString(localVarUrlObj),
8017
- options: localVarRequestOptions,
8018
- };
8019
- }),
8020
7594
  };
8021
7595
  };
8022
7596
  /**
@@ -8027,21 +7601,18 @@ export const EventsStaffApiFp = function (configuration) {
8027
7601
  const localVarAxiosParamCreator = EventsStaffApiAxiosParamCreator(configuration);
8028
7602
  return {
8029
7603
  /**
8030
- * Get events for the day view (entire week)
8031
- * @param {string} [clubId]
8032
- * @param {string} [date]
8033
- * @param {GetDailyEventsVisibilityTypeEnum} [visibilityType]
8034
- * @param {GetDailyEventsTypeEnum} [type]
8035
- * @param {string} [sportId]
7604
+ * Check-in des participants d\'un EventBooking (clubs avec paiements)
7605
+ * @param {string} eventBookingId
7606
+ * @param {CheckInEventParticipantsRequest} checkInEventParticipantsRequest
8036
7607
  * @param {*} [options] Override http request option.
8037
7608
  * @throws {RequiredError}
8038
7609
  */
8039
- getDailyEvents(clubId, date, visibilityType, type, sportId, options) {
7610
+ checkInEventParticipants(eventBookingId, checkInEventParticipantsRequest, options) {
8040
7611
  return __awaiter(this, void 0, void 0, function* () {
8041
7612
  var _a, _b, _c;
8042
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getDailyEvents(clubId, date, visibilityType, type, sportId, options);
7613
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.checkInEventParticipants(eventBookingId, checkInEventParticipantsRequest, options);
8043
7614
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8044
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getDailyEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7615
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.checkInEventParticipants']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8045
7616
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8046
7617
  });
8047
7618
  },
@@ -8059,44 +7630,6 @@ export const EventsStaffApiFp = function (configuration) {
8059
7630
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8060
7631
  });
8061
7632
  },
8062
- /**
8063
- * Get events for the entire month view (including recurring occurrences)
8064
- * @param {string} [clubId]
8065
- * @param {string} [date]
8066
- * @param {GetMonthlyEventsVisibilityTypeEnum} [visibilityType]
8067
- * @param {GetMonthlyEventsTypeEnum} [type]
8068
- * @param {string} [sportId]
8069
- * @param {*} [options] Override http request option.
8070
- * @throws {RequiredError}
8071
- */
8072
- getMonthlyEvents(clubId, date, visibilityType, type, sportId, options) {
8073
- return __awaiter(this, void 0, void 0, function* () {
8074
- var _a, _b, _c;
8075
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getMonthlyEvents(clubId, date, visibilityType, type, sportId, options);
8076
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8077
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getMonthlyEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8078
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8079
- });
8080
- },
8081
- /**
8082
- * Get events for the week view (30 day sliding window)
8083
- * @param {string} [clubId]
8084
- * @param {string} [date]
8085
- * @param {GetWeeklyEventsVisibilityTypeEnum} [visibilityType]
8086
- * @param {GetWeeklyEventsTypeEnum} [type]
8087
- * @param {string} [sportId]
8088
- * @param {*} [options] Override http request option.
8089
- * @throws {RequiredError}
8090
- */
8091
- getWeeklyEvents(clubId, date, visibilityType, type, sportId, options) {
8092
- return __awaiter(this, void 0, void 0, function* () {
8093
- var _a, _b, _c;
8094
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getWeeklyEvents(clubId, date, visibilityType, type, sportId, options);
8095
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8096
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsStaffApi.getWeeklyEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8097
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8098
- });
8099
- },
8100
7633
  };
8101
7634
  };
8102
7635
  /**
@@ -8107,13 +7640,13 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
8107
7640
  const localVarFp = EventsStaffApiFp(configuration);
8108
7641
  return {
8109
7642
  /**
8110
- * Get events for the day view (entire week)
8111
- * @param {EventsStaffApiGetDailyEventsRequest} requestParameters Request parameters.
7643
+ * Check-in des participants d\'un EventBooking (clubs avec paiements)
7644
+ * @param {EventsStaffApiCheckInEventParticipantsRequest} requestParameters Request parameters.
8112
7645
  * @param {*} [options] Override http request option.
8113
7646
  * @throws {RequiredError}
8114
7647
  */
8115
- getDailyEvents(requestParameters = {}, options) {
8116
- return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
7648
+ checkInEventParticipants(requestParameters, options) {
7649
+ return localVarFp.checkInEventParticipants(requestParameters.eventBookingId, requestParameters.checkInEventParticipantsRequest, options).then((request) => request(axios, basePath));
8117
7650
  },
8118
7651
  /**
8119
7652
  * Get all events for a club (staff only)
@@ -8123,24 +7656,6 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
8123
7656
  getEventsByClub(options) {
8124
7657
  return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
8125
7658
  },
8126
- /**
8127
- * Get events for the entire month view (including recurring occurrences)
8128
- * @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
8129
- * @param {*} [options] Override http request option.
8130
- * @throws {RequiredError}
8131
- */
8132
- getMonthlyEvents(requestParameters = {}, options) {
8133
- return localVarFp.getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
8134
- },
8135
- /**
8136
- * Get events for the week view (30 day sliding window)
8137
- * @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
8138
- * @param {*} [options] Override http request option.
8139
- * @throws {RequiredError}
8140
- */
8141
- getWeeklyEvents(requestParameters = {}, options) {
8142
- return localVarFp.getWeeklyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
8143
- },
8144
7659
  };
8145
7660
  };
8146
7661
  /**
@@ -8151,14 +7666,14 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
8151
7666
  */
8152
7667
  export class EventsStaffApi extends BaseAPI {
8153
7668
  /**
8154
- * Get events for the day view (entire week)
8155
- * @param {EventsStaffApiGetDailyEventsRequest} requestParameters Request parameters.
7669
+ * Check-in des participants d\'un EventBooking (clubs avec paiements)
7670
+ * @param {EventsStaffApiCheckInEventParticipantsRequest} requestParameters Request parameters.
8156
7671
  * @param {*} [options] Override http request option.
8157
7672
  * @throws {RequiredError}
8158
7673
  * @memberof EventsStaffApi
8159
7674
  */
8160
- getDailyEvents(requestParameters = {}, options) {
8161
- return EventsStaffApiFp(this.configuration).getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
7675
+ checkInEventParticipants(requestParameters, options) {
7676
+ return EventsStaffApiFp(this.configuration).checkInEventParticipants(requestParameters.eventBookingId, requestParameters.checkInEventParticipantsRequest, options).then((request) => request(this.axios, this.basePath));
8162
7677
  }
8163
7678
  /**
8164
7679
  * Get all events for a club (staff only)
@@ -8169,72 +7684,7 @@ export class EventsStaffApi extends BaseAPI {
8169
7684
  getEventsByClub(options) {
8170
7685
  return EventsStaffApiFp(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
8171
7686
  }
8172
- /**
8173
- * Get events for the entire month view (including recurring occurrences)
8174
- * @param {EventsStaffApiGetMonthlyEventsRequest} requestParameters Request parameters.
8175
- * @param {*} [options] Override http request option.
8176
- * @throws {RequiredError}
8177
- * @memberof EventsStaffApi
8178
- */
8179
- getMonthlyEvents(requestParameters = {}, options) {
8180
- return EventsStaffApiFp(this.configuration).getMonthlyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
8181
- }
8182
- /**
8183
- * Get events for the week view (30 day sliding window)
8184
- * @param {EventsStaffApiGetWeeklyEventsRequest} requestParameters Request parameters.
8185
- * @param {*} [options] Override http request option.
8186
- * @throws {RequiredError}
8187
- * @memberof EventsStaffApi
8188
- */
8189
- getWeeklyEvents(requestParameters = {}, options) {
8190
- return EventsStaffApiFp(this.configuration).getWeeklyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
8191
- }
8192
7687
  }
8193
- /**
8194
- * @export
8195
- */
8196
- export const GetDailyEventsVisibilityTypeEnum = {
8197
- Public: 'public',
8198
- Private: 'private',
8199
- Invitation: 'invitation'
8200
- };
8201
- /**
8202
- * @export
8203
- */
8204
- export const GetDailyEventsTypeEnum = {
8205
- Event: 'event',
8206
- Closure: 'closure'
8207
- };
8208
- /**
8209
- * @export
8210
- */
8211
- export const GetMonthlyEventsVisibilityTypeEnum = {
8212
- Public: 'public',
8213
- Private: 'private',
8214
- Invitation: 'invitation'
8215
- };
8216
- /**
8217
- * @export
8218
- */
8219
- export const GetMonthlyEventsTypeEnum = {
8220
- Event: 'event',
8221
- Closure: 'closure'
8222
- };
8223
- /**
8224
- * @export
8225
- */
8226
- export const GetWeeklyEventsVisibilityTypeEnum = {
8227
- Public: 'public',
8228
- Private: 'private',
8229
- Invitation: 'invitation'
8230
- };
8231
- /**
8232
- * @export
8233
- */
8234
- export const GetWeeklyEventsTypeEnum = {
8235
- Event: 'event',
8236
- Closure: 'closure'
8237
- };
8238
7688
  /**
8239
7689
  * SportsManagerApi - axios parameter creator
8240
7690
  * @export