@tennac-booking/sdk 1.0.108 → 1.0.109

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 (49) hide show
  1. package/.openapi-generator/FILES +292 -284
  2. package/README.md +25 -7
  3. package/api.ts +1721 -339
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +961 -94
  8. package/dist/api.js +1104 -271
  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 +961 -94
  16. package/dist/esm/api.js +1096 -267
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/ActiveSubscriptionResponse.md +22 -0
  28. package/docs/ClientAccountOnboardingRequest.md +29 -0
  29. package/docs/{ClientFullOnboardingResponse.md → ClientAccountOnboardingResponse.md} +11 -7
  30. package/docs/ClientAccountResponse.md +44 -0
  31. package/docs/ClientAccountsApi.md +408 -0
  32. package/docs/ClientApi.md +4 -59
  33. package/docs/ClientMeResponse.md +28 -0
  34. package/docs/ClientOnboardingResponse.md +27 -0
  35. package/docs/{ClientRegisterRequest.md → ClientRegisterRequestBody.md} +7 -7
  36. package/docs/ClientRegisterResponse.md +22 -0
  37. package/docs/ClientSubscriptionResponse.md +34 -0
  38. package/docs/ClubPlayerDetailResponse.md +2 -0
  39. package/docs/ClubSummary.md +8 -2
  40. package/docs/ClubsStaffApi.md +55 -0
  41. package/docs/CreateEventRequest.md +3 -1
  42. package/docs/EventsStaffApi.md +198 -0
  43. package/docs/GetSubscriptionsHistory200Response.md +22 -0
  44. package/docs/PaymentMethod.md +0 -4
  45. package/docs/UpdateUserCreditsRequest.md +20 -0
  46. package/index.ts +1 -1
  47. package/package.json +1 -1
  48. package/docs/ClientFullOnboardingResponseClub.md +0 -24
  49. package/docs/ClientRegister201Response.md +0 -26
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.108
7
+ * The version of the OpenAPI document: 1.0.104
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -53,6 +53,14 @@ 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
+ };
56
64
  export const ClubRoleResponseRoleEnum = {
57
65
  Admin: 'admin',
58
66
  Manager: 'manager',
@@ -157,8 +165,6 @@ export const InvoiceStatus = {
157
165
  export const PaymentMethod = {
158
166
  Online: 'online',
159
167
  Onsite: 'onsite',
160
- OnsiteCard: 'onsite_card',
161
- OnsiteCash: 'onsite_cash',
162
168
  Free: 'free'
163
169
  };
164
170
  /**
@@ -1397,35 +1403,6 @@ export class BookingsUserApi extends BaseAPI {
1397
1403
  */
1398
1404
  export const ClientApiAxiosParamCreator = function (configuration) {
1399
1405
  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
- }),
1429
1406
  /**
1430
1407
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
1431
1408
  * @param {*} [options] Override http request option.
@@ -1454,7 +1431,7 @@ export const ClientApiAxiosParamCreator = function (configuration) {
1454
1431
  };
1455
1432
  }),
1456
1433
  /**
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
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
1458
1435
  * @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
1459
1436
  * @param {*} [options] Override http request option.
1460
1437
  * @throws {RequiredError}
@@ -1472,9 +1449,6 @@ export const ClientApiAxiosParamCreator = function (configuration) {
1472
1449
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1473
1450
  const localVarHeaderParameter = {};
1474
1451
  const localVarQueryParameter = {};
1475
- // authentication clientAuth required
1476
- // http bearer authentication required
1477
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1478
1452
  localVarHeaderParameter['Content-Type'] = 'application/json';
1479
1453
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1480
1454
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -1494,21 +1468,6 @@ export const ClientApiAxiosParamCreator = function (configuration) {
1494
1468
  export const ClientApiFp = function (configuration) {
1495
1469
  const localVarAxiosParamCreator = ClientApiAxiosParamCreator(configuration);
1496
1470
  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
- },
1512
1471
  /**
1513
1472
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
1514
1473
  * @param {*} [options] Override http request option.
@@ -1524,7 +1483,7 @@ export const ClientApiFp = function (configuration) {
1524
1483
  });
1525
1484
  },
1526
1485
  /**
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
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
1528
1487
  * @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
1529
1488
  * @param {*} [options] Override http request option.
1530
1489
  * @throws {RequiredError}
@@ -1547,15 +1506,6 @@ export const ClientApiFp = function (configuration) {
1547
1506
  export const ClientApiFactory = function (configuration, basePath, axios) {
1548
1507
  const localVarFp = ClientApiFp(configuration);
1549
1508
  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
- },
1559
1509
  /**
1560
1510
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
1561
1511
  * @param {*} [options] Override http request option.
@@ -1565,7 +1515,7 @@ export const ClientApiFactory = function (configuration, basePath, axios) {
1565
1515
  return localVarFp.getManagedClubs(options).then((request) => request(axios, basePath));
1566
1516
  },
1567
1517
  /**
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
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
1569
1519
  * @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
1570
1520
  * @param {*} [options] Override http request option.
1571
1521
  * @throws {RequiredError}
@@ -1582,16 +1532,6 @@ export const ClientApiFactory = function (configuration, basePath, axios) {
1582
1532
  * @extends {BaseAPI}
1583
1533
  */
1584
1534
  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
- }
1595
1535
  /**
1596
1536
  * Récupère la liste des clubs gérés par l\'utilisateur authentifié
1597
1537
  * @param {*} [options] Override http request option.
@@ -1602,7 +1542,7 @@ export class ClientApi extends BaseAPI {
1602
1542
  return ClientApiFp(this.configuration).getManagedClubs(options).then((request) => request(this.axios, this.basePath));
1603
1543
  }
1604
1544
  /**
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
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
1606
1546
  * @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
1607
1547
  * @param {*} [options] Override http request option.
1608
1548
  * @throws {RequiredError}
@@ -1613,18 +1553,18 @@ export class ClientApi extends BaseAPI {
1613
1553
  }
1614
1554
  }
1615
1555
  /**
1616
- * ClubAnalyticsApi - axios parameter creator
1556
+ * ClientAccountsApi - axios parameter creator
1617
1557
  * @export
1618
1558
  */
1619
- export const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
1559
+ export const ClientAccountsApiAxiosParamCreator = function (configuration) {
1620
1560
  return {
1621
1561
  /**
1622
- * Récupère les clubs les plus aimés
1562
+ * Informations de l\'utilisateur client authentifié (token clientAuth)
1623
1563
  * @param {*} [options] Override http request option.
1624
1564
  * @throws {RequiredError}
1625
1565
  */
1626
- getMostLikedClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1627
- const localVarPath = `/api/club-analytics/most-liked-clubs`;
1566
+ clientAuthMe: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1567
+ const localVarPath = `/client-accounts/client-auth/me`;
1628
1568
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1629
1569
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1630
1570
  let baseOptions;
@@ -1634,7 +1574,7 @@ export const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
1634
1574
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1635
1575
  const localVarHeaderParameter = {};
1636
1576
  const localVarQueryParameter = {};
1637
- // authentication bearerAuth required
1577
+ // authentication clientAuth required
1638
1578
  // http bearer authentication required
1639
1579
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1640
1580
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -1646,12 +1586,16 @@ export const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
1646
1586
  };
1647
1587
  }),
1648
1588
  /**
1649
- * Récupère les clubs populaires
1589
+ * Récupère le compte client par son ID
1590
+ * @param {string} accountId L\'ID du compte client
1650
1591
  * @param {*} [options] Override http request option.
1651
1592
  * @throws {RequiredError}
1652
1593
  */
1653
- getPopularClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1654
- const localVarPath = `/api/club-analytics/popular-clubs`;
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)));
1655
1599
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1656
1600
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1657
1601
  let baseOptions;
@@ -1672,113 +1616,13 @@ export const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
1672
1616
  options: localVarRequestOptions,
1673
1617
  };
1674
1618
  }),
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 {
1771
1619
  /**
1772
- * Récupère les analytics par sport
1773
- * @param {string} sportId
1620
+ * Récupère l\'abonnement actif du compte client authentifié
1774
1621
  * @param {*} [options] Override http request option.
1775
1622
  * @throws {RequiredError}
1776
1623
  */
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)));
1624
+ getMyActiveSubscription: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1625
+ const localVarPath = `/client-accounts/me/subscription`;
1782
1626
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1783
1627
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1784
1628
  let baseOptions;
@@ -1800,18 +1644,12 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1800
1644
  };
1801
1645
  }),
1802
1646
  /**
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]
1647
+ * Récupère le compte client de l\'utilisateur authentifié
1807
1648
  * @param {*} [options] Override http request option.
1808
1649
  * @throws {RequiredError}
1809
1650
  */
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)));
1651
+ getMyClientAccount: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1652
+ const localVarPath = `/client-accounts/me`;
1815
1653
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1816
1654
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1817
1655
  let baseOptions;
@@ -1824,12 +1662,6 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1824
1662
  // authentication bearerAuth required
1825
1663
  // http bearer authentication required
1826
1664
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1827
- if (page !== undefined) {
1828
- localVarQueryParameter['page'] = page;
1829
- }
1830
- if (pageSize !== undefined) {
1831
- localVarQueryParameter['pageSize'] = pageSize;
1832
- }
1833
1665
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1834
1666
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1835
1667
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -1839,16 +1671,12 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1839
1671
  };
1840
1672
  }),
1841
1673
  /**
1842
- * Récupère les informations détaillées d\'un joueur par son ID
1843
- * @param {string} playerId
1674
+ * Récupère l\'historique des abonnements du compte client authentifié
1844
1675
  * @param {*} [options] Override http request option.
1845
1676
  * @throws {RequiredError}
1846
1677
  */
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)));
1678
+ getSubscriptionsHistory: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1679
+ const localVarPath = `/client-accounts/me/subscriptions-history`;
1852
1680
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1853
1681
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1854
1682
  let baseOptions;
@@ -1870,16 +1698,12 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1870
1698
  };
1871
1699
  }),
1872
1700
  /**
1873
- * Récupère les statistiques d\'un joueur pour le staff
1874
- * @param {string} playerId
1701
+ * Liste les prix Stripe disponibles pour les abonnements client
1875
1702
  * @param {*} [options] Override http request option.
1876
1703
  * @throws {RequiredError}
1877
1704
  */
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)));
1705
+ listAvailablePrices: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1706
+ const localVarPath = `/client-accounts/plans/available-prices`;
1883
1707
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1884
1708
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1885
1709
  let baseOptions;
@@ -1901,104 +1725,738 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1901
1725
  };
1902
1726
  }),
1903
1727
  /**
1904
- * Récupère la liste des joueurs du club
1728
+ * Crée un nouveau compte client avec onboarding Stripe
1729
+ * @param {ClientAccountOnboardingRequest} clientAccountOnboardingRequest Les données du compte à créer
1905
1730
  * @param {*} [options] Override http request option.
1906
1731
  * @throws {RequiredError}
1907
1732
  */
1908
- getClubPlayers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1909
- const localVarPath = `/api/club-analytics/players`;
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`;
1910
1737
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1911
1738
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1912
1739
  let baseOptions;
1913
1740
  if (configuration) {
1914
1741
  baseOptions = configuration.baseOptions;
1915
1742
  }
1916
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1743
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1917
1744
  const localVarHeaderParameter = {};
1918
1745
  const localVarQueryParameter = {};
1919
- // authentication bearerAuth required
1746
+ // authentication clientAuth required
1920
1747
  // http bearer authentication required
1921
1748
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1749
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1922
1750
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1923
1751
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1924
1752
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1753
+ localVarRequestOptions.data = serializeDataIfNeeded(clientAccountOnboardingRequest, localVarRequestOptions, configuration);
1925
1754
  return {
1926
1755
  url: toPathString(localVarUrlObj),
1927
1756
  options: localVarRequestOptions,
1928
1757
  };
1929
1758
  }),
1930
1759
  /**
1931
- * Récupère le chiffre d\'affaires quotidien
1932
- * @param {string} date
1760
+ * Route d\'inscription d\'un utilisateur client (publique)
1761
+ * @param {ClientRegisterRequestBody} clientRegisterRequestBody
1933
1762
  * @param {*} [options] Override http request option.
1934
1763
  * @throws {RequiredError}
1935
1764
  */
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`;
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`;
1940
1769
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1941
1770
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1942
1771
  let baseOptions;
1943
1772
  if (configuration) {
1944
1773
  baseOptions = configuration.baseOptions;
1945
1774
  }
1946
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1775
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1947
1776
  const localVarHeaderParameter = {};
1948
1777
  const localVarQueryParameter = {};
1949
- // authentication bearerAuth required
1950
- // http bearer authentication required
1951
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1952
- if (date !== undefined) {
1953
- localVarQueryParameter['date'] = date;
1954
- }
1778
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1955
1779
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1956
1780
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1957
1781
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1782
+ localVarRequestOptions.data = serializeDataIfNeeded(clientRegisterRequestBody, localVarRequestOptions, configuration);
1958
1783
  return {
1959
1784
  url: toPathString(localVarUrlObj),
1960
1785
  options: localVarRequestOptions,
1961
1786
  };
1962
1787
  }),
1788
+ };
1789
+ };
1790
+ /**
1791
+ * ClientAccountsApi - functional programming interface
1792
+ * @export
1793
+ */
1794
+ export const ClientAccountsApiFp = function (configuration) {
1795
+ const localVarAxiosParamCreator = ClientAccountsApiAxiosParamCreator(configuration);
1796
+ return {
1963
1797
  /**
1964
- * Récupère les pourcentages par genre
1798
+ * Informations de l\'utilisateur client authentifié (token clientAuth)
1965
1799
  * @param {*} [options] Override http request option.
1966
1800
  * @throws {RequiredError}
1967
1801
  */
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
- }),
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
+ },
1990
1811
  /**
1991
- * Récupère le taux de remplissage (infill) pour une période donnée
1992
- * @param {string} [startDate]
1993
- * @param {string} [endDate]
1812
+ * Récupère le compte client par son ID
1813
+ * @param {string} accountId L\'ID du compte client
1994
1814
  * @param {*} [options] Override http request option.
1995
1815
  * @throws {RequiredError}
1996
1816
  */
1997
- getInfillPercentagePerPeriod: (startDate_1, endDate_1, ...args_1) => __awaiter(this, [startDate_1, endDate_1, ...args_1], void 0, function* (startDate, endDate, options = {}) {
1998
- const localVarPath = `/api/club-analytics/infill-percentage`;
1999
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2000
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2001
- let baseOptions;
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]
2452
+ * @param {*} [options] Override http request option.
2453
+ * @throws {RequiredError}
2454
+ */
2455
+ getInfillPercentagePerPeriod: (startDate_1, endDate_1, ...args_1) => __awaiter(this, [startDate_1, endDate_1, ...args_1], void 0, function* (startDate, endDate, options = {}) {
2456
+ const localVarPath = `/api/club-analytics/infill-percentage`;
2457
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2458
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2459
+ let baseOptions;
2002
2460
  if (configuration) {
2003
2461
  baseOptions = configuration.baseOptions;
2004
2462
  }
@@ -6248,6 +6706,42 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
6248
6706
  options: localVarRequestOptions,
6249
6707
  };
6250
6708
  }),
6709
+ /**
6710
+ *
6711
+ * @param {string} id
6712
+ * @param {UpdateUserCreditsRequest} updateUserCreditsRequest
6713
+ * @param {*} [options] Override http request option.
6714
+ * @throws {RequiredError}
6715
+ */
6716
+ updateUserCreditsStaff: (id_1, updateUserCreditsRequest_1, ...args_1) => __awaiter(this, [id_1, updateUserCreditsRequest_1, ...args_1], void 0, function* (id, updateUserCreditsRequest, options = {}) {
6717
+ // 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}`
6722
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
6723
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6724
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6725
+ let baseOptions;
6726
+ if (configuration) {
6727
+ baseOptions = configuration.baseOptions;
6728
+ }
6729
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
6730
+ const localVarHeaderParameter = {};
6731
+ const localVarQueryParameter = {};
6732
+ // authentication bearerAuth required
6733
+ // http bearer authentication required
6734
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
6735
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6736
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6737
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6738
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6739
+ localVarRequestOptions.data = serializeDataIfNeeded(updateUserCreditsRequest, localVarRequestOptions, configuration);
6740
+ return {
6741
+ url: toPathString(localVarUrlObj),
6742
+ options: localVarRequestOptions,
6743
+ };
6744
+ }),
6251
6745
  };
6252
6746
  };
6253
6747
  /**
@@ -6351,22 +6845,38 @@ export const ClubsStaffApiFp = function (configuration) {
6351
6845
  var _a, _b, _c;
6352
6846
  const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvoices(options);
6353
6847
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6354
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsStaffApi.getInvoices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6848
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsStaffApi.getInvoices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6849
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6850
+ });
6851
+ },
6852
+ /**
6853
+ *
6854
+ * @param {string} id
6855
+ * @param {*} [options] Override http request option.
6856
+ * @throws {RequiredError}
6857
+ */
6858
+ getUserProfileStaff(id, options) {
6859
+ return __awaiter(this, void 0, void 0, function* () {
6860
+ var _a, _b, _c;
6861
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserProfileStaff(id, options);
6862
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6863
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsStaffApi.getUserProfileStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6355
6864
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6356
6865
  });
6357
6866
  },
6358
6867
  /**
6359
6868
  *
6360
6869
  * @param {string} id
6870
+ * @param {UpdateUserCreditsRequest} updateUserCreditsRequest
6361
6871
  * @param {*} [options] Override http request option.
6362
6872
  * @throws {RequiredError}
6363
6873
  */
6364
- getUserProfileStaff(id, options) {
6874
+ updateUserCreditsStaff(id, updateUserCreditsRequest, options) {
6365
6875
  return __awaiter(this, void 0, void 0, function* () {
6366
6876
  var _a, _b, _c;
6367
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserProfileStaff(id, options);
6877
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserCreditsStaff(id, updateUserCreditsRequest, options);
6368
6878
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6369
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsStaffApi.getUserProfileStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6879
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsStaffApi.updateUserCreditsStaff']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6370
6880
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6371
6881
  });
6372
6882
  },
@@ -6444,6 +6954,15 @@ export const ClubsStaffApiFactory = function (configuration, basePath, axios) {
6444
6954
  getUserProfileStaff(requestParameters, options) {
6445
6955
  return localVarFp.getUserProfileStaff(requestParameters.id, options).then((request) => request(axios, basePath));
6446
6956
  },
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
+ },
6447
6966
  };
6448
6967
  };
6449
6968
  /**
@@ -6526,6 +7045,16 @@ export class ClubsStaffApi extends BaseAPI {
6526
7045
  getUserProfileStaff(requestParameters, options) {
6527
7046
  return ClubsStaffApiFp(this.configuration).getUserProfileStaff(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
6528
7047
  }
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
+ }
6529
7058
  }
6530
7059
  /**
6531
7060
  * DefaultApi - axios parameter creator
@@ -7320,6 +7849,53 @@ export class EventsManagerApi extends BaseAPI {
7320
7849
  */
7321
7850
  export const EventsStaffApiAxiosParamCreator = function (configuration) {
7322
7851
  return {
7852
+ /**
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]
7859
+ * @param {*} [options] Override http request option.
7860
+ * @throws {RequiredError}
7861
+ */
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`;
7864
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7865
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7866
+ let baseOptions;
7867
+ if (configuration) {
7868
+ baseOptions = configuration.baseOptions;
7869
+ }
7870
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7871
+ const localVarHeaderParameter = {};
7872
+ const localVarQueryParameter = {};
7873
+ // authentication bearerAuth required
7874
+ // http bearer authentication required
7875
+ 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
+ }
7891
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7892
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7893
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7894
+ return {
7895
+ url: toPathString(localVarUrlObj),
7896
+ options: localVarRequestOptions,
7897
+ };
7898
+ }),
7323
7899
  /**
7324
7900
  * Get all events for a club (staff only)
7325
7901
  * @param {*} [options] Override http request option.
@@ -7347,6 +7923,100 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
7347
7923
  options: localVarRequestOptions,
7348
7924
  };
7349
7925
  }),
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
+ }),
7350
8020
  };
7351
8021
  };
7352
8022
  /**
@@ -7356,6 +8026,25 @@ export const EventsStaffApiAxiosParamCreator = function (configuration) {
7356
8026
  export const EventsStaffApiFp = function (configuration) {
7357
8027
  const localVarAxiosParamCreator = EventsStaffApiAxiosParamCreator(configuration);
7358
8028
  return {
8029
+ /**
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]
8036
+ * @param {*} [options] Override http request option.
8037
+ * @throws {RequiredError}
8038
+ */
8039
+ getDailyEvents(clubId, date, visibilityType, type, sportId, options) {
8040
+ return __awaiter(this, void 0, void 0, function* () {
8041
+ var _a, _b, _c;
8042
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDailyEvents(clubId, date, visibilityType, type, sportId, options);
8043
+ 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;
8045
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8046
+ });
8047
+ },
7359
8048
  /**
7360
8049
  * Get all events for a club (staff only)
7361
8050
  * @param {*} [options] Override http request option.
@@ -7370,6 +8059,44 @@ export const EventsStaffApiFp = function (configuration) {
7370
8059
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7371
8060
  });
7372
8061
  },
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
+ },
7373
8100
  };
7374
8101
  };
7375
8102
  /**
@@ -7379,6 +8106,15 @@ export const EventsStaffApiFp = function (configuration) {
7379
8106
  export const EventsStaffApiFactory = function (configuration, basePath, axios) {
7380
8107
  const localVarFp = EventsStaffApiFp(configuration);
7381
8108
  return {
8109
+ /**
8110
+ * Get events for the day view (entire week)
8111
+ * @param {EventsStaffApiGetDailyEventsRequest} requestParameters Request parameters.
8112
+ * @param {*} [options] Override http request option.
8113
+ * @throws {RequiredError}
8114
+ */
8115
+ getDailyEvents(requestParameters = {}, options) {
8116
+ return localVarFp.getDailyEvents(requestParameters.clubId, requestParameters.date, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
8117
+ },
7382
8118
  /**
7383
8119
  * Get all events for a club (staff only)
7384
8120
  * @param {*} [options] Override http request option.
@@ -7387,6 +8123,24 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
7387
8123
  getEventsByClub(options) {
7388
8124
  return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
7389
8125
  },
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
+ },
7390
8144
  };
7391
8145
  };
7392
8146
  /**
@@ -7396,6 +8150,16 @@ export const EventsStaffApiFactory = function (configuration, basePath, axios) {
7396
8150
  * @extends {BaseAPI}
7397
8151
  */
7398
8152
  export class EventsStaffApi extends BaseAPI {
8153
+ /**
8154
+ * Get events for the day view (entire week)
8155
+ * @param {EventsStaffApiGetDailyEventsRequest} requestParameters Request parameters.
8156
+ * @param {*} [options] Override http request option.
8157
+ * @throws {RequiredError}
8158
+ * @memberof EventsStaffApi
8159
+ */
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));
8162
+ }
7399
8163
  /**
7400
8164
  * Get all events for a club (staff only)
7401
8165
  * @param {*} [options] Override http request option.
@@ -7405,7 +8169,72 @@ export class EventsStaffApi extends BaseAPI {
7405
8169
  getEventsByClub(options) {
7406
8170
  return EventsStaffApiFp(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
7407
8171
  }
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
+ }
7408
8192
  }
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
+ };
7409
8238
  /**
7410
8239
  * SportsManagerApi - axios parameter creator
7411
8240
  * @export