@tennac-booking/sdk 1.0.97 → 1.0.98

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/.openapi-generator/FILES +264 -267
  2. package/README.md +46 -45
  3. package/api.ts +2342 -2430
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +1475 -1614
  8. package/dist/api.js +1192 -1061
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +1475 -1614
  16. package/dist/esm/api.js +1157 -1035
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/ActiveSubscriptionResponse.md +22 -0
  28. package/docs/AddClubMemberRequest.md +1 -7
  29. package/docs/{ClubDaySchedule.md → AddCreditsToCustomer200Response.md} +5 -7
  30. package/docs/AddCreditsToCustomerRequest.md +22 -0
  31. package/docs/BookingPopulated.md +3 -3
  32. package/docs/BookingPriceBody.md +4 -2
  33. package/docs/BookingPriceResponse.md +2 -0
  34. package/docs/BookingSummary.md +4 -0
  35. package/docs/ClientAccountOnboardingRequest.md +29 -0
  36. package/docs/ClientAccountOnboardingResponse.md +34 -0
  37. package/docs/ClientAccountResponse.md +44 -0
  38. package/docs/ClientAccountsApi.md +408 -0
  39. package/docs/ClientApi.md +109 -0
  40. package/docs/{ClubPlayerStatisticsResponseMostPlayedPartnersInner.md → ClientMeResponse.md} +11 -9
  41. package/docs/ClientOnboardingRequestBody.md +33 -0
  42. package/docs/ClientOnboardingResponse.md +27 -0
  43. package/docs/ClientRegisterRequestBody.md +26 -0
  44. package/docs/ClientRegisterResponse.md +22 -0
  45. package/docs/ClientSubscriptionResponse.md +34 -0
  46. package/docs/ClubAnalyticsStaffApi.md +0 -314
  47. package/docs/ClubSettingsManagerApi.md +60 -54
  48. package/docs/ClubSettingsResponse.md +39 -0
  49. package/docs/ClubsManagerApi.md +58 -52
  50. package/docs/ClubsStaffApi.md +0 -44
  51. package/docs/CourtResponse.md +1 -1
  52. package/docs/CreateBookingRequest.md +1 -1
  53. package/docs/CreateClubSettingsRequest.md +34 -0
  54. package/docs/CreateCourtRequest.md +1 -1
  55. package/docs/CreateEventRequest.md +1 -3
  56. package/docs/DeleteClubSettingsResponse.md +20 -0
  57. package/docs/EventResponse.md +1 -1
  58. package/docs/EventResponseCourtsInner.md +18 -0
  59. package/docs/GetSubscriptionsHistory200Response.md +22 -0
  60. package/docs/IUserAttributes.md +2 -0
  61. package/docs/ManagedClubsResponse.md +23 -0
  62. package/docs/PlayerShare.md +22 -0
  63. package/docs/PlayerWithPaymentMethod.md +2 -0
  64. package/docs/SlotInfo.md +2 -2
  65. package/docs/SportsStaffApi.md +55 -0
  66. package/docs/StaffUserProfileResponse.md +2 -0
  67. package/docs/UpdateClubSettingsRequest.md +32 -0
  68. package/docs/UpdateEventRequest.md +1 -1
  69. package/docs/UserClubMembership.md +34 -0
  70. package/docs/UserClubMembershipsResponse.md +20 -0
  71. package/docs/UserInfo.md +0 -2
  72. package/docs/UserProfileResponse.md +2 -0
  73. package/docs/UsersApi.md +46 -0
  74. package/index.ts +1 -1
  75. package/package.json +1 -1
  76. package/docs/ClubGeneralSettingsResponse.md +0 -32
  77. package/docs/ClubHoursSettingsResponse.md +0 -22
  78. package/docs/ClubLocationSettings.md +0 -26
  79. package/docs/ClubPlayerBookingItem.md +0 -36
  80. package/docs/ClubPlayerBookingsPagination.md +0 -28
  81. package/docs/ClubPlayerBookingsResponse.md +0 -24
  82. package/docs/ClubPlayerDetailResponse.md +0 -46
  83. package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +0 -22
  84. package/docs/ClubPlayerStatisticsResponse.md +0 -42
  85. package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +0 -22
  86. package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +0 -23
  87. package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +0 -25
  88. package/docs/ClubPlayerSubscriptionSummary.md +0 -28
  89. package/docs/ClubPresentationSettingsResponse.md +0 -26
  90. package/docs/ClubPricingPeriodResponse.md +0 -30
  91. package/docs/ClubReservationSettingsResponse.md +0 -28
  92. package/docs/ClubSettingsStaffApi.md +0 -183
  93. package/docs/ClubWeeklySchedule.md +0 -32
  94. package/docs/CourtBookingShareItem.md +0 -26
  95. package/docs/PartialClubWeeklySchedule.md +0 -33
  96. package/docs/RetentionRateResponse.md +0 -24
  97. package/docs/RevenueBySportItem.md +0 -24
  98. package/docs/UpdateClubGeneralSettingsRequest.md +0 -34
  99. package/docs/UpdateClubHoursSettingsRequest.md +0 -22
  100. package/docs/UpdateClubPresentationSettingsRequest.md +0 -26
  101. package/docs/UpdateClubReservationSettingsRequest.md +0 -28
package/dist/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.89
7
+ * The version of the OpenAPI document: 1.0.98
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',
@@ -1385,18 +1393,18 @@ export class BookingsUserApi extends BaseAPI {
1385
1393
  }
1386
1394
  }
1387
1395
  /**
1388
- * ClubAnalyticsApi - axios parameter creator
1396
+ * ClientApi - axios parameter creator
1389
1397
  * @export
1390
1398
  */
1391
- export const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
1399
+ export const ClientApiAxiosParamCreator = function (configuration) {
1392
1400
  return {
1393
1401
  /**
1394
- * Récupère les clubs les plus aimés
1402
+ * Récupère la liste des clubs gérés par l\'utilisateur authentifié
1395
1403
  * @param {*} [options] Override http request option.
1396
1404
  * @throws {RequiredError}
1397
1405
  */
1398
- getMostLikedClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1399
- const localVarPath = `/api/club-analytics/most-liked-clubs`;
1406
+ getManagedClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1407
+ const localVarPath = `/clients/managed-clubs`;
1400
1408
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1401
1409
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1402
1410
  let baseOptions;
@@ -1418,27 +1426,29 @@ export const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
1418
1426
  };
1419
1427
  }),
1420
1428
  /**
1421
- * Récupère les clubs populaires
1429
+ * 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
1430
+ * @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
1422
1431
  * @param {*} [options] Override http request option.
1423
1432
  * @throws {RequiredError}
1424
1433
  */
1425
- getPopularClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1426
- const localVarPath = `/api/club-analytics/popular-clubs`;
1434
+ onboardClub: (clientOnboardingRequestBody_1, ...args_1) => __awaiter(this, [clientOnboardingRequestBody_1, ...args_1], void 0, function* (clientOnboardingRequestBody, options = {}) {
1435
+ // verify required parameter 'clientOnboardingRequestBody' is not null or undefined
1436
+ assertParamExists('onboardClub', 'clientOnboardingRequestBody', clientOnboardingRequestBody);
1437
+ const localVarPath = `/clients/onboarding`;
1427
1438
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1428
1439
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1429
1440
  let baseOptions;
1430
1441
  if (configuration) {
1431
1442
  baseOptions = configuration.baseOptions;
1432
1443
  }
1433
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1444
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1434
1445
  const localVarHeaderParameter = {};
1435
1446
  const localVarQueryParameter = {};
1436
- // authentication bearerAuth required
1437
- // http bearer authentication required
1438
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1447
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1439
1448
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1440
1449
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1441
1450
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1451
+ localVarRequestOptions.data = serializeDataIfNeeded(clientOnboardingRequestBody, localVarRequestOptions, configuration);
1442
1452
  return {
1443
1453
  url: toPathString(localVarUrlObj),
1444
1454
  options: localVarRequestOptions,
@@ -1447,110 +1457,109 @@ export const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
1447
1457
  };
1448
1458
  };
1449
1459
  /**
1450
- * ClubAnalyticsApi - functional programming interface
1460
+ * ClientApi - functional programming interface
1451
1461
  * @export
1452
1462
  */
1453
- export const ClubAnalyticsApiFp = function (configuration) {
1454
- const localVarAxiosParamCreator = ClubAnalyticsApiAxiosParamCreator(configuration);
1463
+ export const ClientApiFp = function (configuration) {
1464
+ const localVarAxiosParamCreator = ClientApiAxiosParamCreator(configuration);
1455
1465
  return {
1456
1466
  /**
1457
- * Récupère les clubs les plus aimés
1467
+ * Récupère la liste des clubs gérés par l\'utilisateur authentifié
1458
1468
  * @param {*} [options] Override http request option.
1459
1469
  * @throws {RequiredError}
1460
1470
  */
1461
- getMostLikedClub(options) {
1471
+ getManagedClubs(options) {
1462
1472
  return __awaiter(this, void 0, void 0, function* () {
1463
1473
  var _a, _b, _c;
1464
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getMostLikedClub(options);
1474
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getManagedClubs(options);
1465
1475
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1466
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsApi.getMostLikedClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1476
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientApi.getManagedClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1467
1477
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1468
1478
  });
1469
1479
  },
1470
1480
  /**
1471
- * Récupère les clubs populaires
1481
+ * 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
1482
+ * @param {ClientOnboardingRequestBody} clientOnboardingRequestBody Les données du club à créer
1472
1483
  * @param {*} [options] Override http request option.
1473
1484
  * @throws {RequiredError}
1474
1485
  */
1475
- getPopularClubs(options) {
1486
+ onboardClub(clientOnboardingRequestBody, options) {
1476
1487
  return __awaiter(this, void 0, void 0, function* () {
1477
1488
  var _a, _b, _c;
1478
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPopularClubs(options);
1489
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.onboardClub(clientOnboardingRequestBody, options);
1479
1490
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1480
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsApi.getPopularClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1491
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientApi.onboardClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1481
1492
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1482
1493
  });
1483
1494
  },
1484
1495
  };
1485
1496
  };
1486
1497
  /**
1487
- * ClubAnalyticsApi - factory interface
1498
+ * ClientApi - factory interface
1488
1499
  * @export
1489
1500
  */
1490
- export const ClubAnalyticsApiFactory = function (configuration, basePath, axios) {
1491
- const localVarFp = ClubAnalyticsApiFp(configuration);
1501
+ export const ClientApiFactory = function (configuration, basePath, axios) {
1502
+ const localVarFp = ClientApiFp(configuration);
1492
1503
  return {
1493
1504
  /**
1494
- * Récupère les clubs les plus aimés
1505
+ * Récupère la liste des clubs gérés par l\'utilisateur authentifié
1495
1506
  * @param {*} [options] Override http request option.
1496
1507
  * @throws {RequiredError}
1497
1508
  */
1498
- getMostLikedClub(options) {
1499
- return localVarFp.getMostLikedClub(options).then((request) => request(axios, basePath));
1509
+ getManagedClubs(options) {
1510
+ return localVarFp.getManagedClubs(options).then((request) => request(axios, basePath));
1500
1511
  },
1501
1512
  /**
1502
- * Récupère les clubs populaires
1513
+ * 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
1514
+ * @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
1503
1515
  * @param {*} [options] Override http request option.
1504
1516
  * @throws {RequiredError}
1505
1517
  */
1506
- getPopularClubs(options) {
1507
- return localVarFp.getPopularClubs(options).then((request) => request(axios, basePath));
1518
+ onboardClub(requestParameters, options) {
1519
+ return localVarFp.onboardClub(requestParameters.clientOnboardingRequestBody, options).then((request) => request(axios, basePath));
1508
1520
  },
1509
1521
  };
1510
1522
  };
1511
1523
  /**
1512
- * ClubAnalyticsApi - object-oriented interface
1524
+ * ClientApi - object-oriented interface
1513
1525
  * @export
1514
- * @class ClubAnalyticsApi
1526
+ * @class ClientApi
1515
1527
  * @extends {BaseAPI}
1516
1528
  */
1517
- export class ClubAnalyticsApi extends BaseAPI {
1529
+ export class ClientApi extends BaseAPI {
1518
1530
  /**
1519
- * Récupère les clubs les plus aimés
1531
+ * Récupère la liste des clubs gérés par l\'utilisateur authentifié
1520
1532
  * @param {*} [options] Override http request option.
1521
1533
  * @throws {RequiredError}
1522
- * @memberof ClubAnalyticsApi
1534
+ * @memberof ClientApi
1523
1535
  */
1524
- getMostLikedClub(options) {
1525
- return ClubAnalyticsApiFp(this.configuration).getMostLikedClub(options).then((request) => request(this.axios, this.basePath));
1536
+ getManagedClubs(options) {
1537
+ return ClientApiFp(this.configuration).getManagedClubs(options).then((request) => request(this.axios, this.basePath));
1526
1538
  }
1527
1539
  /**
1528
- * Récupère les clubs populaires
1540
+ * 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
1541
+ * @param {ClientApiOnboardClubRequest} requestParameters Request parameters.
1529
1542
  * @param {*} [options] Override http request option.
1530
1543
  * @throws {RequiredError}
1531
- * @memberof ClubAnalyticsApi
1544
+ * @memberof ClientApi
1532
1545
  */
1533
- getPopularClubs(options) {
1534
- return ClubAnalyticsApiFp(this.configuration).getPopularClubs(options).then((request) => request(this.axios, this.basePath));
1546
+ onboardClub(requestParameters, options) {
1547
+ return ClientApiFp(this.configuration).onboardClub(requestParameters.clientOnboardingRequestBody, options).then((request) => request(this.axios, this.basePath));
1535
1548
  }
1536
1549
  }
1537
1550
  /**
1538
- * ClubAnalyticsStaffApi - axios parameter creator
1551
+ * ClientAccountsApi - axios parameter creator
1539
1552
  * @export
1540
1553
  */
1541
- export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1554
+ export const ClientAccountsApiAxiosParamCreator = function (configuration) {
1542
1555
  return {
1543
1556
  /**
1544
- * Récupère les analytics par sport
1545
- * @param {string} sportId
1557
+ * Informations de l\'utilisateur client authentifié (token clientAuth)
1546
1558
  * @param {*} [options] Override http request option.
1547
1559
  * @throws {RequiredError}
1548
1560
  */
1549
- getAnalyticsBySport: (sportId_1, ...args_1) => __awaiter(this, [sportId_1, ...args_1], void 0, function* (sportId, options = {}) {
1550
- // verify required parameter 'sportId' is not null or undefined
1551
- assertParamExists('getAnalyticsBySport', 'sportId', sportId);
1552
- const localVarPath = `/api/club-analytics/sport/{sportId}/analytics`
1553
- .replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)));
1561
+ clientAuthMe: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1562
+ const localVarPath = `/client-accounts/client-auth/me`;
1554
1563
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1555
1564
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1556
1565
  let baseOptions;
@@ -1560,7 +1569,7 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1560
1569
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1561
1570
  const localVarHeaderParameter = {};
1562
1571
  const localVarQueryParameter = {};
1563
- // authentication bearerAuth required
1572
+ // authentication clientAuth required
1564
1573
  // http bearer authentication required
1565
1574
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1566
1575
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -1572,18 +1581,16 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1572
1581
  };
1573
1582
  }),
1574
1583
  /**
1575
- * Récupère les réservations d\'un joueur par son ID (à venir et passées)
1576
- * @param {string} playerId
1577
- * @param {number} [page]
1578
- * @param {number} [pageSize]
1584
+ * Récupère le compte client par son ID
1585
+ * @param {string} accountId L\'ID du compte client
1579
1586
  * @param {*} [options] Override http request option.
1580
1587
  * @throws {RequiredError}
1581
1588
  */
1582
- getClubPlayerBookingsById: (playerId_1, page_1, pageSize_1, ...args_1) => __awaiter(this, [playerId_1, page_1, pageSize_1, ...args_1], void 0, function* (playerId, page, pageSize, options = {}) {
1583
- // verify required parameter 'playerId' is not null or undefined
1584
- assertParamExists('getClubPlayerBookingsById', 'playerId', playerId);
1585
- const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
1586
- .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
1589
+ getClientAccountById: (accountId_1, ...args_1) => __awaiter(this, [accountId_1, ...args_1], void 0, function* (accountId, options = {}) {
1590
+ // verify required parameter 'accountId' is not null or undefined
1591
+ assertParamExists('getClientAccountById', 'accountId', accountId);
1592
+ const localVarPath = `/client-accounts/{accountId}`
1593
+ .replace(`{${"accountId"}}`, encodeURIComponent(String(accountId)));
1587
1594
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1588
1595
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1589
1596
  let baseOptions;
@@ -1596,12 +1603,6 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1596
1603
  // authentication bearerAuth required
1597
1604
  // http bearer authentication required
1598
1605
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1599
- if (page !== undefined) {
1600
- localVarQueryParameter['page'] = page;
1601
- }
1602
- if (pageSize !== undefined) {
1603
- localVarQueryParameter['pageSize'] = pageSize;
1604
- }
1605
1606
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1606
1607
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1607
1608
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -1611,16 +1612,12 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1611
1612
  };
1612
1613
  }),
1613
1614
  /**
1614
- * Récupère les informations détaillées d\'un joueur par son ID
1615
- * @param {string} playerId
1615
+ * Récupère l\'abonnement actif du compte client authentifié
1616
1616
  * @param {*} [options] Override http request option.
1617
1617
  * @throws {RequiredError}
1618
1618
  */
1619
- getClubPlayerById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
1620
- // verify required parameter 'playerId' is not null or undefined
1621
- assertParamExists('getClubPlayerById', 'playerId', playerId);
1622
- const localVarPath = `/api/club-analytics/players/{playerId}`
1623
- .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
1619
+ getMyActiveSubscription: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1620
+ const localVarPath = `/client-accounts/me/subscription`;
1624
1621
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1625
1622
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1626
1623
  let baseOptions;
@@ -1642,16 +1639,12 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1642
1639
  };
1643
1640
  }),
1644
1641
  /**
1645
- * Récupère les statistiques d\'un joueur pour le staff
1646
- * @param {string} playerId
1642
+ * Récupère le compte client de l\'utilisateur authentifié
1647
1643
  * @param {*} [options] Override http request option.
1648
1644
  * @throws {RequiredError}
1649
1645
  */
1650
- getClubPlayerStatisticsById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
1651
- // verify required parameter 'playerId' is not null or undefined
1652
- assertParamExists('getClubPlayerStatisticsById', 'playerId', playerId);
1653
- const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
1654
- .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
1646
+ getMyClientAccount: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1647
+ const localVarPath = `/client-accounts/me`;
1655
1648
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1656
1649
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1657
1650
  let baseOptions;
@@ -1673,12 +1666,12 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1673
1666
  };
1674
1667
  }),
1675
1668
  /**
1676
- * Récupère la liste des joueurs du club
1669
+ * Récupère l\'historique des abonnements du compte client authentifié
1677
1670
  * @param {*} [options] Override http request option.
1678
1671
  * @throws {RequiredError}
1679
1672
  */
1680
- getClubPlayers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1681
- const localVarPath = `/api/club-analytics/players`;
1673
+ getSubscriptionsHistory: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1674
+ const localVarPath = `/client-accounts/me/subscriptions-history`;
1682
1675
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1683
1676
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1684
1677
  let baseOptions;
@@ -1700,15 +1693,12 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1700
1693
  };
1701
1694
  }),
1702
1695
  /**
1703
- * Récupère le chiffre d\'affaires quotidien
1704
- * @param {string} date
1696
+ * Liste les prix Stripe disponibles pour les abonnements client
1705
1697
  * @param {*} [options] Override http request option.
1706
1698
  * @throws {RequiredError}
1707
1699
  */
1708
- getDailyTurnOver: (date_1, ...args_1) => __awaiter(this, [date_1, ...args_1], void 0, function* (date, options = {}) {
1709
- // verify required parameter 'date' is not null or undefined
1710
- assertParamExists('getDailyTurnOver', 'date', date);
1711
- const localVarPath = `/api/club-analytics/daily-turnover`;
1700
+ listAvailablePrices: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1701
+ const localVarPath = `/client-accounts/available-prices`;
1712
1702
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1713
1703
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1714
1704
  let baseOptions;
@@ -1721,9 +1711,6 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1721
1711
  // authentication bearerAuth required
1722
1712
  // http bearer authentication required
1723
1713
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1724
- if (date !== undefined) {
1725
- localVarQueryParameter['date'] = date;
1726
- }
1727
1714
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1728
1715
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1729
1716
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -1733,222 +1720,734 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1733
1720
  };
1734
1721
  }),
1735
1722
  /**
1736
- * Récupère les pourcentages par genre
1723
+ * Crée un nouveau compte client avec onboarding Stripe
1724
+ * @param {ClientAccountOnboardingRequest} clientAccountOnboardingRequest Les données du compte à créer
1737
1725
  * @param {*} [options] Override http request option.
1738
1726
  * @throws {RequiredError}
1739
1727
  */
1740
- getGenderPercentage: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1741
- const localVarPath = `/api/club-analytics/gender-percentage`;
1728
+ onboardClientAccount: (clientAccountOnboardingRequest_1, ...args_1) => __awaiter(this, [clientAccountOnboardingRequest_1, ...args_1], void 0, function* (clientAccountOnboardingRequest, options = {}) {
1729
+ // verify required parameter 'clientAccountOnboardingRequest' is not null or undefined
1730
+ assertParamExists('onboardClientAccount', 'clientAccountOnboardingRequest', clientAccountOnboardingRequest);
1731
+ const localVarPath = `/client-accounts/onboarding`;
1742
1732
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1743
1733
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1744
1734
  let baseOptions;
1745
1735
  if (configuration) {
1746
1736
  baseOptions = configuration.baseOptions;
1747
1737
  }
1748
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1738
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1749
1739
  const localVarHeaderParameter = {};
1750
1740
  const localVarQueryParameter = {};
1751
- // authentication bearerAuth required
1741
+ // authentication clientAuth required
1752
1742
  // http bearer authentication required
1753
1743
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1744
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1754
1745
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1755
1746
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1756
1747
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1748
+ localVarRequestOptions.data = serializeDataIfNeeded(clientAccountOnboardingRequest, localVarRequestOptions, configuration);
1757
1749
  return {
1758
1750
  url: toPathString(localVarUrlObj),
1759
1751
  options: localVarRequestOptions,
1760
1752
  };
1761
1753
  }),
1762
1754
  /**
1763
- * Récupère le taux de remplissage (infill) pour une période donnée
1764
- * @param {string} [startDate]
1765
- * @param {string} [endDate]
1755
+ * Route d\'inscription d\'un utilisateur client (publique)
1756
+ * @param {ClientRegisterRequestBody} clientRegisterRequestBody
1766
1757
  * @param {*} [options] Override http request option.
1767
1758
  * @throws {RequiredError}
1768
1759
  */
1769
- getInfillPercentagePerPeriod: (startDate_1, endDate_1, ...args_1) => __awaiter(this, [startDate_1, endDate_1, ...args_1], void 0, function* (startDate, endDate, options = {}) {
1770
- const localVarPath = `/api/club-analytics/infill-percentage`;
1760
+ registerClientUser: (clientRegisterRequestBody_1, ...args_1) => __awaiter(this, [clientRegisterRequestBody_1, ...args_1], void 0, function* (clientRegisterRequestBody, options = {}) {
1761
+ // verify required parameter 'clientRegisterRequestBody' is not null or undefined
1762
+ assertParamExists('registerClientUser', 'clientRegisterRequestBody', clientRegisterRequestBody);
1763
+ const localVarPath = `/client-accounts/register-client-user`;
1771
1764
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1772
1765
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1773
1766
  let baseOptions;
1774
1767
  if (configuration) {
1775
1768
  baseOptions = configuration.baseOptions;
1776
1769
  }
1777
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1770
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1778
1771
  const localVarHeaderParameter = {};
1779
1772
  const localVarQueryParameter = {};
1780
- // authentication bearerAuth required
1781
- // http bearer authentication required
1782
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1783
- if (startDate !== undefined) {
1784
- localVarQueryParameter['startDate'] = startDate;
1785
- }
1786
- if (endDate !== undefined) {
1787
- localVarQueryParameter['endDate'] = endDate;
1788
- }
1773
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1789
1774
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1790
1775
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1791
1776
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1777
+ localVarRequestOptions.data = serializeDataIfNeeded(clientRegisterRequestBody, localVarRequestOptions, configuration);
1792
1778
  return {
1793
1779
  url: toPathString(localVarUrlObj),
1794
1780
  options: localVarRequestOptions,
1795
1781
  };
1796
1782
  }),
1783
+ };
1784
+ };
1785
+ /**
1786
+ * ClientAccountsApi - functional programming interface
1787
+ * @export
1788
+ */
1789
+ export const ClientAccountsApiFp = function (configuration) {
1790
+ const localVarAxiosParamCreator = ClientAccountsApiAxiosParamCreator(configuration);
1791
+ return {
1797
1792
  /**
1798
- * Récupère le chiffre d\'affaires des 6 derniers mois
1793
+ * Informations de l\'utilisateur client authentifié (token clientAuth)
1799
1794
  * @param {*} [options] Override http request option.
1800
1795
  * @throws {RequiredError}
1801
1796
  */
1802
- getLastSixMonthsTurnover: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1803
- const localVarPath = `/api/club-analytics/last-six-months-turnover`;
1804
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1805
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1806
- let baseOptions;
1807
- if (configuration) {
1808
- baseOptions = configuration.baseOptions;
1809
- }
1810
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1811
- const localVarHeaderParameter = {};
1812
- const localVarQueryParameter = {};
1813
- // authentication bearerAuth required
1814
- // http bearer authentication required
1815
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1816
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1817
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1818
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1819
- return {
1820
- url: toPathString(localVarUrlObj),
1821
- options: localVarRequestOptions,
1822
- };
1823
- }),
1797
+ clientAuthMe(options) {
1798
+ return __awaiter(this, void 0, void 0, function* () {
1799
+ var _a, _b, _c;
1800
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.clientAuthMe(options);
1801
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1802
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientAccountsApi.clientAuthMe']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1803
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1804
+ });
1805
+ },
1824
1806
  /**
1825
- * Récupère le chiffre d\'affaires mensuel
1826
- * @param {string} year
1827
- * @param {string} month
1807
+ * Récupère le compte client par son ID
1808
+ * @param {string} accountId L\'ID du compte client
1828
1809
  * @param {*} [options] Override http request option.
1829
1810
  * @throws {RequiredError}
1830
1811
  */
1831
- getMonthlyTurnOver: (year_1, month_1, ...args_1) => __awaiter(this, [year_1, month_1, ...args_1], void 0, function* (year, month, options = {}) {
1832
- // verify required parameter 'year' is not null or undefined
1833
- assertParamExists('getMonthlyTurnOver', 'year', year);
1834
- // verify required parameter 'month' is not null or undefined
1835
- assertParamExists('getMonthlyTurnOver', 'month', month);
1836
- const localVarPath = `/api/club-analytics/monthly-turnover`;
1837
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1838
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1839
- let baseOptions;
1840
- if (configuration) {
1841
- baseOptions = configuration.baseOptions;
1842
- }
1843
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1844
- const localVarHeaderParameter = {};
1845
- const localVarQueryParameter = {};
1846
- // authentication bearerAuth required
1847
- // http bearer authentication required
1848
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1849
- if (year !== undefined) {
1850
- localVarQueryParameter['year'] = year;
1851
- }
1852
- if (month !== undefined) {
1853
- localVarQueryParameter['month'] = month;
1854
- }
1855
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1856
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1857
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1858
- return {
1859
- url: toPathString(localVarUrlObj),
1860
- options: localVarRequestOptions,
1861
- };
1862
- }),
1812
+ getClientAccountById(accountId, options) {
1813
+ return __awaiter(this, void 0, void 0, function* () {
1814
+ var _a, _b, _c;
1815
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClientAccountById(accountId, options);
1816
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1817
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientAccountsApi.getClientAccountById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1818
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1819
+ });
1820
+ },
1863
1821
  /**
1864
- * Récupère le nombre d\'utilisateurs du club
1822
+ * Récupère l\'abonnement actif du compte client authentifié
1865
1823
  * @param {*} [options] Override http request option.
1866
1824
  * @throws {RequiredError}
1867
1825
  */
1868
- getNumberOfClubUsers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1869
- const localVarPath = `/api/club-analytics/users-count`;
1870
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1871
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1872
- let baseOptions;
1873
- if (configuration) {
1874
- baseOptions = configuration.baseOptions;
1875
- }
1876
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1877
- const localVarHeaderParameter = {};
1878
- const localVarQueryParameter = {};
1879
- // authentication bearerAuth required
1880
- // http bearer authentication required
1881
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1882
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1883
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1884
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1885
- return {
1886
- url: toPathString(localVarUrlObj),
1887
- options: localVarRequestOptions,
1888
- };
1889
- }),
1826
+ getMyActiveSubscription(options) {
1827
+ return __awaiter(this, void 0, void 0, function* () {
1828
+ var _a, _b, _c;
1829
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMyActiveSubscription(options);
1830
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1831
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientAccountsApi.getMyActiveSubscription']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1832
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1833
+ });
1834
+ },
1890
1835
  /**
1891
- * Calcule le taux de fidélisation des joueurs
1836
+ * Récupère le compte client de l\'utilisateur authentifié
1892
1837
  * @param {*} [options] Override http request option.
1893
1838
  * @throws {RequiredError}
1894
1839
  */
1895
- getRetentionRate: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1896
- const localVarPath = `/api/club-analytics/retention-rate`;
1897
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1898
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1899
- let baseOptions;
1900
- if (configuration) {
1901
- baseOptions = configuration.baseOptions;
1902
- }
1903
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1904
- const localVarHeaderParameter = {};
1905
- const localVarQueryParameter = {};
1906
- // authentication bearerAuth required
1907
- // http bearer authentication required
1908
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1909
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1910
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1911
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1912
- return {
1913
- url: toPathString(localVarUrlObj),
1914
- options: localVarRequestOptions,
1915
- };
1916
- }),
1840
+ getMyClientAccount(options) {
1841
+ return __awaiter(this, void 0, void 0, function* () {
1842
+ var _a, _b, _c;
1843
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMyClientAccount(options);
1844
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1845
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientAccountsApi.getMyClientAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1846
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1847
+ });
1848
+ },
1917
1849
  /**
1918
- * Récupère le chiffre d\'affaires par sport
1850
+ * Récupère l\'historique des abonnements du compte client authentifié
1919
1851
  * @param {*} [options] Override http request option.
1920
1852
  * @throws {RequiredError}
1921
1853
  */
1922
- getRevenueBySport: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1923
- const localVarPath = `/api/club-analytics/revenue-by-sport`;
1924
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1925
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1926
- let baseOptions;
1927
- if (configuration) {
1928
- baseOptions = configuration.baseOptions;
1929
- }
1930
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1931
- const localVarHeaderParameter = {};
1932
- const localVarQueryParameter = {};
1933
- // authentication bearerAuth required
1934
- // http bearer authentication required
1935
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1936
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1937
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1938
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1939
- return {
1940
- url: toPathString(localVarUrlObj),
1941
- options: localVarRequestOptions,
1942
- };
1943
- }),
1854
+ getSubscriptionsHistory(options) {
1855
+ return __awaiter(this, void 0, void 0, function* () {
1856
+ var _a, _b, _c;
1857
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSubscriptionsHistory(options);
1858
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1859
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientAccountsApi.getSubscriptionsHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1860
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1861
+ });
1862
+ },
1944
1863
  /**
1945
- * Récupère les 10 prochaines réservations
1864
+ * Liste les prix Stripe disponibles pour les abonnements client
1946
1865
  * @param {*} [options] Override http request option.
1947
1866
  * @throws {RequiredError}
1948
1867
  */
1949
- getTenNextBookings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1950
- const localVarPath = `/api/club-analytics/next-bookings`;
1951
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1868
+ listAvailablePrices(options) {
1869
+ return __awaiter(this, void 0, void 0, function* () {
1870
+ var _a, _b, _c;
1871
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listAvailablePrices(options);
1872
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1873
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientAccountsApi.listAvailablePrices']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1874
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1875
+ });
1876
+ },
1877
+ /**
1878
+ * Crée un nouveau compte client avec onboarding Stripe
1879
+ * @param {ClientAccountOnboardingRequest} clientAccountOnboardingRequest Les données du compte à créer
1880
+ * @param {*} [options] Override http request option.
1881
+ * @throws {RequiredError}
1882
+ */
1883
+ onboardClientAccount(clientAccountOnboardingRequest, options) {
1884
+ return __awaiter(this, void 0, void 0, function* () {
1885
+ var _a, _b, _c;
1886
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.onboardClientAccount(clientAccountOnboardingRequest, options);
1887
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1888
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientAccountsApi.onboardClientAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1889
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1890
+ });
1891
+ },
1892
+ /**
1893
+ * Route d\'inscription d\'un utilisateur client (publique)
1894
+ * @param {ClientRegisterRequestBody} clientRegisterRequestBody
1895
+ * @param {*} [options] Override http request option.
1896
+ * @throws {RequiredError}
1897
+ */
1898
+ registerClientUser(clientRegisterRequestBody, options) {
1899
+ return __awaiter(this, void 0, void 0, function* () {
1900
+ var _a, _b, _c;
1901
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.registerClientUser(clientRegisterRequestBody, options);
1902
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1903
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClientAccountsApi.registerClientUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1904
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1905
+ });
1906
+ },
1907
+ };
1908
+ };
1909
+ /**
1910
+ * ClientAccountsApi - factory interface
1911
+ * @export
1912
+ */
1913
+ export const ClientAccountsApiFactory = function (configuration, basePath, axios) {
1914
+ const localVarFp = ClientAccountsApiFp(configuration);
1915
+ return {
1916
+ /**
1917
+ * Informations de l\'utilisateur client authentifié (token clientAuth)
1918
+ * @param {*} [options] Override http request option.
1919
+ * @throws {RequiredError}
1920
+ */
1921
+ clientAuthMe(options) {
1922
+ return localVarFp.clientAuthMe(options).then((request) => request(axios, basePath));
1923
+ },
1924
+ /**
1925
+ * Récupère le compte client par son ID
1926
+ * @param {ClientAccountsApiGetClientAccountByIdRequest} requestParameters Request parameters.
1927
+ * @param {*} [options] Override http request option.
1928
+ * @throws {RequiredError}
1929
+ */
1930
+ getClientAccountById(requestParameters, options) {
1931
+ return localVarFp.getClientAccountById(requestParameters.accountId, options).then((request) => request(axios, basePath));
1932
+ },
1933
+ /**
1934
+ * Récupère l\'abonnement actif du compte client authentifié
1935
+ * @param {*} [options] Override http request option.
1936
+ * @throws {RequiredError}
1937
+ */
1938
+ getMyActiveSubscription(options) {
1939
+ return localVarFp.getMyActiveSubscription(options).then((request) => request(axios, basePath));
1940
+ },
1941
+ /**
1942
+ * Récupère le compte client de l\'utilisateur authentifié
1943
+ * @param {*} [options] Override http request option.
1944
+ * @throws {RequiredError}
1945
+ */
1946
+ getMyClientAccount(options) {
1947
+ return localVarFp.getMyClientAccount(options).then((request) => request(axios, basePath));
1948
+ },
1949
+ /**
1950
+ * Récupère l\'historique des abonnements du compte client authentifié
1951
+ * @param {*} [options] Override http request option.
1952
+ * @throws {RequiredError}
1953
+ */
1954
+ getSubscriptionsHistory(options) {
1955
+ return localVarFp.getSubscriptionsHistory(options).then((request) => request(axios, basePath));
1956
+ },
1957
+ /**
1958
+ * Liste les prix Stripe disponibles pour les abonnements client
1959
+ * @param {*} [options] Override http request option.
1960
+ * @throws {RequiredError}
1961
+ */
1962
+ listAvailablePrices(options) {
1963
+ return localVarFp.listAvailablePrices(options).then((request) => request(axios, basePath));
1964
+ },
1965
+ /**
1966
+ * Crée un nouveau compte client avec onboarding Stripe
1967
+ * @param {ClientAccountsApiOnboardClientAccountRequest} requestParameters Request parameters.
1968
+ * @param {*} [options] Override http request option.
1969
+ * @throws {RequiredError}
1970
+ */
1971
+ onboardClientAccount(requestParameters, options) {
1972
+ return localVarFp.onboardClientAccount(requestParameters.clientAccountOnboardingRequest, options).then((request) => request(axios, basePath));
1973
+ },
1974
+ /**
1975
+ * Route d\'inscription d\'un utilisateur client (publique)
1976
+ * @param {ClientAccountsApiRegisterClientUserRequest} requestParameters Request parameters.
1977
+ * @param {*} [options] Override http request option.
1978
+ * @throws {RequiredError}
1979
+ */
1980
+ registerClientUser(requestParameters, options) {
1981
+ return localVarFp.registerClientUser(requestParameters.clientRegisterRequestBody, options).then((request) => request(axios, basePath));
1982
+ },
1983
+ };
1984
+ };
1985
+ /**
1986
+ * ClientAccountsApi - object-oriented interface
1987
+ * @export
1988
+ * @class ClientAccountsApi
1989
+ * @extends {BaseAPI}
1990
+ */
1991
+ export class ClientAccountsApi extends BaseAPI {
1992
+ /**
1993
+ * Informations de l\'utilisateur client authentifié (token clientAuth)
1994
+ * @param {*} [options] Override http request option.
1995
+ * @throws {RequiredError}
1996
+ * @memberof ClientAccountsApi
1997
+ */
1998
+ clientAuthMe(options) {
1999
+ return ClientAccountsApiFp(this.configuration).clientAuthMe(options).then((request) => request(this.axios, this.basePath));
2000
+ }
2001
+ /**
2002
+ * Récupère le compte client par son ID
2003
+ * @param {ClientAccountsApiGetClientAccountByIdRequest} requestParameters Request parameters.
2004
+ * @param {*} [options] Override http request option.
2005
+ * @throws {RequiredError}
2006
+ * @memberof ClientAccountsApi
2007
+ */
2008
+ getClientAccountById(requestParameters, options) {
2009
+ return ClientAccountsApiFp(this.configuration).getClientAccountById(requestParameters.accountId, options).then((request) => request(this.axios, this.basePath));
2010
+ }
2011
+ /**
2012
+ * Récupère l\'abonnement actif du compte client authentifié
2013
+ * @param {*} [options] Override http request option.
2014
+ * @throws {RequiredError}
2015
+ * @memberof ClientAccountsApi
2016
+ */
2017
+ getMyActiveSubscription(options) {
2018
+ return ClientAccountsApiFp(this.configuration).getMyActiveSubscription(options).then((request) => request(this.axios, this.basePath));
2019
+ }
2020
+ /**
2021
+ * Récupère le compte client de l\'utilisateur authentifié
2022
+ * @param {*} [options] Override http request option.
2023
+ * @throws {RequiredError}
2024
+ * @memberof ClientAccountsApi
2025
+ */
2026
+ getMyClientAccount(options) {
2027
+ return ClientAccountsApiFp(this.configuration).getMyClientAccount(options).then((request) => request(this.axios, this.basePath));
2028
+ }
2029
+ /**
2030
+ * Récupère l\'historique des abonnements du compte client authentifié
2031
+ * @param {*} [options] Override http request option.
2032
+ * @throws {RequiredError}
2033
+ * @memberof ClientAccountsApi
2034
+ */
2035
+ getSubscriptionsHistory(options) {
2036
+ return ClientAccountsApiFp(this.configuration).getSubscriptionsHistory(options).then((request) => request(this.axios, this.basePath));
2037
+ }
2038
+ /**
2039
+ * Liste les prix Stripe disponibles pour les abonnements client
2040
+ * @param {*} [options] Override http request option.
2041
+ * @throws {RequiredError}
2042
+ * @memberof ClientAccountsApi
2043
+ */
2044
+ listAvailablePrices(options) {
2045
+ return ClientAccountsApiFp(this.configuration).listAvailablePrices(options).then((request) => request(this.axios, this.basePath));
2046
+ }
2047
+ /**
2048
+ * Crée un nouveau compte client avec onboarding Stripe
2049
+ * @param {ClientAccountsApiOnboardClientAccountRequest} requestParameters Request parameters.
2050
+ * @param {*} [options] Override http request option.
2051
+ * @throws {RequiredError}
2052
+ * @memberof ClientAccountsApi
2053
+ */
2054
+ onboardClientAccount(requestParameters, options) {
2055
+ return ClientAccountsApiFp(this.configuration).onboardClientAccount(requestParameters.clientAccountOnboardingRequest, options).then((request) => request(this.axios, this.basePath));
2056
+ }
2057
+ /**
2058
+ * Route d\'inscription d\'un utilisateur client (publique)
2059
+ * @param {ClientAccountsApiRegisterClientUserRequest} requestParameters Request parameters.
2060
+ * @param {*} [options] Override http request option.
2061
+ * @throws {RequiredError}
2062
+ * @memberof ClientAccountsApi
2063
+ */
2064
+ registerClientUser(requestParameters, options) {
2065
+ return ClientAccountsApiFp(this.configuration).registerClientUser(requestParameters.clientRegisterRequestBody, options).then((request) => request(this.axios, this.basePath));
2066
+ }
2067
+ }
2068
+ /**
2069
+ * ClubAnalyticsApi - axios parameter creator
2070
+ * @export
2071
+ */
2072
+ export const ClubAnalyticsApiAxiosParamCreator = function (configuration) {
2073
+ return {
2074
+ /**
2075
+ * Récupère les clubs les plus aimés
2076
+ * @param {*} [options] Override http request option.
2077
+ * @throws {RequiredError}
2078
+ */
2079
+ getMostLikedClub: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2080
+ const localVarPath = `/api/club-analytics/most-liked-clubs`;
2081
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2082
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2083
+ let baseOptions;
2084
+ if (configuration) {
2085
+ baseOptions = configuration.baseOptions;
2086
+ }
2087
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2088
+ const localVarHeaderParameter = {};
2089
+ const localVarQueryParameter = {};
2090
+ // authentication bearerAuth required
2091
+ // http bearer authentication required
2092
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2093
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2094
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2095
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2096
+ return {
2097
+ url: toPathString(localVarUrlObj),
2098
+ options: localVarRequestOptions,
2099
+ };
2100
+ }),
2101
+ /**
2102
+ * Récupère les clubs populaires
2103
+ * @param {*} [options] Override http request option.
2104
+ * @throws {RequiredError}
2105
+ */
2106
+ getPopularClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2107
+ const localVarPath = `/api/club-analytics/popular-clubs`;
2108
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2109
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2110
+ let baseOptions;
2111
+ if (configuration) {
2112
+ baseOptions = configuration.baseOptions;
2113
+ }
2114
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2115
+ const localVarHeaderParameter = {};
2116
+ const localVarQueryParameter = {};
2117
+ // authentication bearerAuth required
2118
+ // http bearer authentication required
2119
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2120
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2121
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2122
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2123
+ return {
2124
+ url: toPathString(localVarUrlObj),
2125
+ options: localVarRequestOptions,
2126
+ };
2127
+ }),
2128
+ };
2129
+ };
2130
+ /**
2131
+ * ClubAnalyticsApi - functional programming interface
2132
+ * @export
2133
+ */
2134
+ export const ClubAnalyticsApiFp = function (configuration) {
2135
+ const localVarAxiosParamCreator = ClubAnalyticsApiAxiosParamCreator(configuration);
2136
+ return {
2137
+ /**
2138
+ * Récupère les clubs les plus aimés
2139
+ * @param {*} [options] Override http request option.
2140
+ * @throws {RequiredError}
2141
+ */
2142
+ getMostLikedClub(options) {
2143
+ return __awaiter(this, void 0, void 0, function* () {
2144
+ var _a, _b, _c;
2145
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMostLikedClub(options);
2146
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2147
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsApi.getMostLikedClub']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2148
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2149
+ });
2150
+ },
2151
+ /**
2152
+ * Récupère les clubs populaires
2153
+ * @param {*} [options] Override http request option.
2154
+ * @throws {RequiredError}
2155
+ */
2156
+ getPopularClubs(options) {
2157
+ return __awaiter(this, void 0, void 0, function* () {
2158
+ var _a, _b, _c;
2159
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPopularClubs(options);
2160
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2161
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsApi.getPopularClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2162
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2163
+ });
2164
+ },
2165
+ };
2166
+ };
2167
+ /**
2168
+ * ClubAnalyticsApi - factory interface
2169
+ * @export
2170
+ */
2171
+ export const ClubAnalyticsApiFactory = function (configuration, basePath, axios) {
2172
+ const localVarFp = ClubAnalyticsApiFp(configuration);
2173
+ return {
2174
+ /**
2175
+ * Récupère les clubs les plus aimés
2176
+ * @param {*} [options] Override http request option.
2177
+ * @throws {RequiredError}
2178
+ */
2179
+ getMostLikedClub(options) {
2180
+ return localVarFp.getMostLikedClub(options).then((request) => request(axios, basePath));
2181
+ },
2182
+ /**
2183
+ * Récupère les clubs populaires
2184
+ * @param {*} [options] Override http request option.
2185
+ * @throws {RequiredError}
2186
+ */
2187
+ getPopularClubs(options) {
2188
+ return localVarFp.getPopularClubs(options).then((request) => request(axios, basePath));
2189
+ },
2190
+ };
2191
+ };
2192
+ /**
2193
+ * ClubAnalyticsApi - object-oriented interface
2194
+ * @export
2195
+ * @class ClubAnalyticsApi
2196
+ * @extends {BaseAPI}
2197
+ */
2198
+ export class ClubAnalyticsApi extends BaseAPI {
2199
+ /**
2200
+ * Récupère les clubs les plus aimés
2201
+ * @param {*} [options] Override http request option.
2202
+ * @throws {RequiredError}
2203
+ * @memberof ClubAnalyticsApi
2204
+ */
2205
+ getMostLikedClub(options) {
2206
+ return ClubAnalyticsApiFp(this.configuration).getMostLikedClub(options).then((request) => request(this.axios, this.basePath));
2207
+ }
2208
+ /**
2209
+ * Récupère les clubs populaires
2210
+ * @param {*} [options] Override http request option.
2211
+ * @throws {RequiredError}
2212
+ * @memberof ClubAnalyticsApi
2213
+ */
2214
+ getPopularClubs(options) {
2215
+ return ClubAnalyticsApiFp(this.configuration).getPopularClubs(options).then((request) => request(this.axios, this.basePath));
2216
+ }
2217
+ }
2218
+ /**
2219
+ * ClubAnalyticsStaffApi - axios parameter creator
2220
+ * @export
2221
+ */
2222
+ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
2223
+ return {
2224
+ /**
2225
+ * Récupère les analytics par sport
2226
+ * @param {string} sportId
2227
+ * @param {*} [options] Override http request option.
2228
+ * @throws {RequiredError}
2229
+ */
2230
+ getAnalyticsBySport: (sportId_1, ...args_1) => __awaiter(this, [sportId_1, ...args_1], void 0, function* (sportId, options = {}) {
2231
+ // verify required parameter 'sportId' is not null or undefined
2232
+ assertParamExists('getAnalyticsBySport', 'sportId', sportId);
2233
+ const localVarPath = `/api/club-analytics/sport/{sportId}/analytics`
2234
+ .replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)));
2235
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2236
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2237
+ let baseOptions;
2238
+ if (configuration) {
2239
+ baseOptions = configuration.baseOptions;
2240
+ }
2241
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2242
+ const localVarHeaderParameter = {};
2243
+ const localVarQueryParameter = {};
2244
+ // authentication bearerAuth required
2245
+ // http bearer authentication required
2246
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2247
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2248
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2249
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2250
+ return {
2251
+ url: toPathString(localVarUrlObj),
2252
+ options: localVarRequestOptions,
2253
+ };
2254
+ }),
2255
+ /**
2256
+ * Récupère la liste des joueurs du club
2257
+ * @param {*} [options] Override http request option.
2258
+ * @throws {RequiredError}
2259
+ */
2260
+ getClubPlayers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2261
+ const localVarPath = `/api/club-analytics/players`;
2262
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2263
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2264
+ let baseOptions;
2265
+ if (configuration) {
2266
+ baseOptions = configuration.baseOptions;
2267
+ }
2268
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2269
+ const localVarHeaderParameter = {};
2270
+ const localVarQueryParameter = {};
2271
+ // authentication bearerAuth required
2272
+ // http bearer authentication required
2273
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2274
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2275
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2276
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2277
+ return {
2278
+ url: toPathString(localVarUrlObj),
2279
+ options: localVarRequestOptions,
2280
+ };
2281
+ }),
2282
+ /**
2283
+ * Récupère le chiffre d\'affaires quotidien
2284
+ * @param {string} date
2285
+ * @param {*} [options] Override http request option.
2286
+ * @throws {RequiredError}
2287
+ */
2288
+ getDailyTurnOver: (date_1, ...args_1) => __awaiter(this, [date_1, ...args_1], void 0, function* (date, options = {}) {
2289
+ // verify required parameter 'date' is not null or undefined
2290
+ assertParamExists('getDailyTurnOver', 'date', date);
2291
+ const localVarPath = `/api/club-analytics/daily-turnover`;
2292
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2293
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2294
+ let baseOptions;
2295
+ if (configuration) {
2296
+ baseOptions = configuration.baseOptions;
2297
+ }
2298
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2299
+ const localVarHeaderParameter = {};
2300
+ const localVarQueryParameter = {};
2301
+ // authentication bearerAuth required
2302
+ // http bearer authentication required
2303
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2304
+ if (date !== undefined) {
2305
+ localVarQueryParameter['date'] = date;
2306
+ }
2307
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2308
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2309
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2310
+ return {
2311
+ url: toPathString(localVarUrlObj),
2312
+ options: localVarRequestOptions,
2313
+ };
2314
+ }),
2315
+ /**
2316
+ * Récupère les pourcentages par genre
2317
+ * @param {*} [options] Override http request option.
2318
+ * @throws {RequiredError}
2319
+ */
2320
+ getGenderPercentage: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2321
+ const localVarPath = `/api/club-analytics/gender-percentage`;
2322
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2323
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2324
+ let baseOptions;
2325
+ if (configuration) {
2326
+ baseOptions = configuration.baseOptions;
2327
+ }
2328
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2329
+ const localVarHeaderParameter = {};
2330
+ const localVarQueryParameter = {};
2331
+ // authentication bearerAuth required
2332
+ // http bearer authentication required
2333
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2334
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2335
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2336
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2337
+ return {
2338
+ url: toPathString(localVarUrlObj),
2339
+ options: localVarRequestOptions,
2340
+ };
2341
+ }),
2342
+ /**
2343
+ * Récupère le taux de remplissage (infill) pour une période donnée
2344
+ * @param {string} [startDate]
2345
+ * @param {string} [endDate]
2346
+ * @param {*} [options] Override http request option.
2347
+ * @throws {RequiredError}
2348
+ */
2349
+ getInfillPercentagePerPeriod: (startDate_1, endDate_1, ...args_1) => __awaiter(this, [startDate_1, endDate_1, ...args_1], void 0, function* (startDate, endDate, options = {}) {
2350
+ const localVarPath = `/api/club-analytics/infill-percentage`;
2351
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2352
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2353
+ let baseOptions;
2354
+ if (configuration) {
2355
+ baseOptions = configuration.baseOptions;
2356
+ }
2357
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2358
+ const localVarHeaderParameter = {};
2359
+ const localVarQueryParameter = {};
2360
+ // authentication bearerAuth required
2361
+ // http bearer authentication required
2362
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2363
+ if (startDate !== undefined) {
2364
+ localVarQueryParameter['startDate'] = startDate;
2365
+ }
2366
+ if (endDate !== undefined) {
2367
+ localVarQueryParameter['endDate'] = endDate;
2368
+ }
2369
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2370
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2371
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2372
+ return {
2373
+ url: toPathString(localVarUrlObj),
2374
+ options: localVarRequestOptions,
2375
+ };
2376
+ }),
2377
+ /**
2378
+ * Récupère le chiffre d\'affaires des 6 derniers mois
2379
+ * @param {*} [options] Override http request option.
2380
+ * @throws {RequiredError}
2381
+ */
2382
+ getLastSixMonthsTurnover: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2383
+ const localVarPath = `/api/club-analytics/last-six-months-turnover`;
2384
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2385
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2386
+ let baseOptions;
2387
+ if (configuration) {
2388
+ baseOptions = configuration.baseOptions;
2389
+ }
2390
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2391
+ const localVarHeaderParameter = {};
2392
+ const localVarQueryParameter = {};
2393
+ // authentication bearerAuth required
2394
+ // http bearer authentication required
2395
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2396
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2397
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2398
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2399
+ return {
2400
+ url: toPathString(localVarUrlObj),
2401
+ options: localVarRequestOptions,
2402
+ };
2403
+ }),
2404
+ /**
2405
+ * Récupère le chiffre d\'affaires mensuel
2406
+ * @param {string} year
2407
+ * @param {string} month
2408
+ * @param {*} [options] Override http request option.
2409
+ * @throws {RequiredError}
2410
+ */
2411
+ getMonthlyTurnOver: (year_1, month_1, ...args_1) => __awaiter(this, [year_1, month_1, ...args_1], void 0, function* (year, month, options = {}) {
2412
+ // verify required parameter 'year' is not null or undefined
2413
+ assertParamExists('getMonthlyTurnOver', 'year', year);
2414
+ // verify required parameter 'month' is not null or undefined
2415
+ assertParamExists('getMonthlyTurnOver', 'month', month);
2416
+ const localVarPath = `/api/club-analytics/monthly-turnover`;
2417
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2418
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2419
+ let baseOptions;
2420
+ if (configuration) {
2421
+ baseOptions = configuration.baseOptions;
2422
+ }
2423
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2424
+ const localVarHeaderParameter = {};
2425
+ const localVarQueryParameter = {};
2426
+ // authentication bearerAuth required
2427
+ // http bearer authentication required
2428
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2429
+ if (year !== undefined) {
2430
+ localVarQueryParameter['year'] = year;
2431
+ }
2432
+ if (month !== undefined) {
2433
+ localVarQueryParameter['month'] = month;
2434
+ }
2435
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2436
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2437
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2438
+ return {
2439
+ url: toPathString(localVarUrlObj),
2440
+ options: localVarRequestOptions,
2441
+ };
2442
+ }),
2443
+ /**
2444
+ * Récupère le nombre d\'utilisateurs du club
2445
+ * @param {*} [options] Override http request option.
2446
+ * @throws {RequiredError}
2447
+ */
2448
+ getNumberOfClubUsers: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2449
+ const localVarPath = `/api/club-analytics/users-count`;
2450
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1952
2451
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1953
2452
  let baseOptions;
1954
2453
  if (configuration) {
@@ -1969,12 +2468,12 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1969
2468
  };
1970
2469
  }),
1971
2470
  /**
1972
- * Classement des terrains les plus réservés
2471
+ * Récupère les 10 prochaines réservations
1973
2472
  * @param {*} [options] Override http request option.
1974
2473
  * @throws {RequiredError}
1975
2474
  */
1976
- getTopCourtsByBookings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
1977
- const localVarPath = `/api/club-analytics/top-courts`;
2475
+ getTenNextBookings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2476
+ const localVarPath = `/api/club-analytics/next-bookings`;
1978
2477
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1979
2478
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1980
2479
  let baseOptions;
@@ -2052,53 +2551,6 @@ export const ClubAnalyticsStaffApiFp = function (configuration) {
2052
2551
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2053
2552
  });
2054
2553
  },
2055
- /**
2056
- * Récupère les réservations d\'un joueur par son ID (à venir et passées)
2057
- * @param {string} playerId
2058
- * @param {number} [page]
2059
- * @param {number} [pageSize]
2060
- * @param {*} [options] Override http request option.
2061
- * @throws {RequiredError}
2062
- */
2063
- getClubPlayerBookingsById(playerId, page, pageSize, options) {
2064
- return __awaiter(this, void 0, void 0, function* () {
2065
- var _a, _b, _c;
2066
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerBookingsById(playerId, page, pageSize, options);
2067
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2068
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getClubPlayerBookingsById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2069
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2070
- });
2071
- },
2072
- /**
2073
- * Récupère les informations détaillées d\'un joueur par son ID
2074
- * @param {string} playerId
2075
- * @param {*} [options] Override http request option.
2076
- * @throws {RequiredError}
2077
- */
2078
- getClubPlayerById(playerId, options) {
2079
- return __awaiter(this, void 0, void 0, function* () {
2080
- var _a, _b, _c;
2081
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerById(playerId, options);
2082
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2083
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getClubPlayerById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2084
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2085
- });
2086
- },
2087
- /**
2088
- * Récupère les statistiques d\'un joueur pour le staff
2089
- * @param {string} playerId
2090
- * @param {*} [options] Override http request option.
2091
- * @throws {RequiredError}
2092
- */
2093
- getClubPlayerStatisticsById(playerId, options) {
2094
- return __awaiter(this, void 0, void 0, function* () {
2095
- var _a, _b, _c;
2096
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerStatisticsById(playerId, options);
2097
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2098
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getClubPlayerStatisticsById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2099
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2100
- });
2101
- },
2102
2554
  /**
2103
2555
  * Récupère la liste des joueurs du club
2104
2556
  * @param {*} [options] Override http request option.
@@ -2202,34 +2654,6 @@ export const ClubAnalyticsStaffApiFp = function (configuration) {
2202
2654
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2203
2655
  });
2204
2656
  },
2205
- /**
2206
- * Calcule le taux de fidélisation des joueurs
2207
- * @param {*} [options] Override http request option.
2208
- * @throws {RequiredError}
2209
- */
2210
- getRetentionRate(options) {
2211
- return __awaiter(this, void 0, void 0, function* () {
2212
- var _a, _b, _c;
2213
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getRetentionRate(options);
2214
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2215
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getRetentionRate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2216
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2217
- });
2218
- },
2219
- /**
2220
- * Récupère le chiffre d\'affaires par sport
2221
- * @param {*} [options] Override http request option.
2222
- * @throws {RequiredError}
2223
- */
2224
- getRevenueBySport(options) {
2225
- return __awaiter(this, void 0, void 0, function* () {
2226
- var _a, _b, _c;
2227
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getRevenueBySport(options);
2228
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2229
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getRevenueBySport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2230
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2231
- });
2232
- },
2233
2657
  /**
2234
2658
  * Récupère les 10 prochaines réservations
2235
2659
  * @param {*} [options] Override http request option.
@@ -2244,20 +2668,6 @@ export const ClubAnalyticsStaffApiFp = function (configuration) {
2244
2668
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2245
2669
  });
2246
2670
  },
2247
- /**
2248
- * Classement des terrains les plus réservés
2249
- * @param {*} [options] Override http request option.
2250
- * @throws {RequiredError}
2251
- */
2252
- getTopCourtsByBookings(options) {
2253
- return __awaiter(this, void 0, void 0, function* () {
2254
- var _a, _b, _c;
2255
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getTopCourtsByBookings(options);
2256
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2257
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getTopCourtsByBookings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2258
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2259
- });
2260
- },
2261
2671
  /**
2262
2672
  * Récupère le chiffre d\'affaires annuel avec détail mensuel
2263
2673
  * @param {string} year
@@ -2291,33 +2701,6 @@ export const ClubAnalyticsStaffApiFactory = function (configuration, basePath, a
2291
2701
  getAnalyticsBySport(requestParameters, options) {
2292
2702
  return localVarFp.getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(axios, basePath));
2293
2703
  },
2294
- /**
2295
- * Récupère les réservations d\'un joueur par son ID (à venir et passées)
2296
- * @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
2297
- * @param {*} [options] Override http request option.
2298
- * @throws {RequiredError}
2299
- */
2300
- getClubPlayerBookingsById(requestParameters, options) {
2301
- return localVarFp.getClubPlayerBookingsById(requestParameters.playerId, requestParameters.page, requestParameters.pageSize, options).then((request) => request(axios, basePath));
2302
- },
2303
- /**
2304
- * Récupère les informations détaillées d\'un joueur par son ID
2305
- * @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
2306
- * @param {*} [options] Override http request option.
2307
- * @throws {RequiredError}
2308
- */
2309
- getClubPlayerById(requestParameters, options) {
2310
- return localVarFp.getClubPlayerById(requestParameters.playerId, options).then((request) => request(axios, basePath));
2311
- },
2312
- /**
2313
- * Récupère les statistiques d\'un joueur pour le staff
2314
- * @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
2315
- * @param {*} [options] Override http request option.
2316
- * @throws {RequiredError}
2317
- */
2318
- getClubPlayerStatisticsById(requestParameters, options) {
2319
- return localVarFp.getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(axios, basePath));
2320
- },
2321
2704
  /**
2322
2705
  * Récupère la liste des joueurs du club
2323
2706
  * @param {*} [options] Override http request option.
@@ -2377,37 +2760,13 @@ export const ClubAnalyticsStaffApiFactory = function (configuration, basePath, a
2377
2760
  getNumberOfClubUsers(options) {
2378
2761
  return localVarFp.getNumberOfClubUsers(options).then((request) => request(axios, basePath));
2379
2762
  },
2380
- /**
2381
- * Calcule le taux de fidélisation des joueurs
2382
- * @param {*} [options] Override http request option.
2383
- * @throws {RequiredError}
2384
- */
2385
- getRetentionRate(options) {
2386
- return localVarFp.getRetentionRate(options).then((request) => request(axios, basePath));
2387
- },
2388
- /**
2389
- * Récupère le chiffre d\'affaires par sport
2390
- * @param {*} [options] Override http request option.
2391
- * @throws {RequiredError}
2392
- */
2393
- getRevenueBySport(options) {
2394
- return localVarFp.getRevenueBySport(options).then((request) => request(axios, basePath));
2395
- },
2396
2763
  /**
2397
2764
  * Récupère les 10 prochaines réservations
2398
2765
  * @param {*} [options] Override http request option.
2399
2766
  * @throws {RequiredError}
2400
2767
  */
2401
2768
  getTenNextBookings(options) {
2402
- return localVarFp.getTenNextBookings(options).then((request) => request(axios, basePath));
2403
- },
2404
- /**
2405
- * Classement des terrains les plus réservés
2406
- * @param {*} [options] Override http request option.
2407
- * @throws {RequiredError}
2408
- */
2409
- getTopCourtsByBookings(options) {
2410
- return localVarFp.getTopCourtsByBookings(options).then((request) => request(axios, basePath));
2769
+ return localVarFp.getTenNextBookings(options).then((request) => request(axios, basePath));
2411
2770
  },
2412
2771
  /**
2413
2772
  * Récupère le chiffre d\'affaires annuel avec détail mensuel
@@ -2437,36 +2796,6 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
2437
2796
  getAnalyticsBySport(requestParameters, options) {
2438
2797
  return ClubAnalyticsStaffApiFp(this.configuration).getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
2439
2798
  }
2440
- /**
2441
- * Récupère les réservations d\'un joueur par son ID (à venir et passées)
2442
- * @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
2443
- * @param {*} [options] Override http request option.
2444
- * @throws {RequiredError}
2445
- * @memberof ClubAnalyticsStaffApi
2446
- */
2447
- getClubPlayerBookingsById(requestParameters, options) {
2448
- return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayerBookingsById(requestParameters.playerId, requestParameters.page, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
2449
- }
2450
- /**
2451
- * Récupère les informations détaillées d\'un joueur par son ID
2452
- * @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
2453
- * @param {*} [options] Override http request option.
2454
- * @throws {RequiredError}
2455
- * @memberof ClubAnalyticsStaffApi
2456
- */
2457
- getClubPlayerById(requestParameters, options) {
2458
- return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayerById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
2459
- }
2460
- /**
2461
- * Récupère les statistiques d\'un joueur pour le staff
2462
- * @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
2463
- * @param {*} [options] Override http request option.
2464
- * @throws {RequiredError}
2465
- * @memberof ClubAnalyticsStaffApi
2466
- */
2467
- getClubPlayerStatisticsById(requestParameters, options) {
2468
- return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
2469
- }
2470
2799
  /**
2471
2800
  * Récupère la liste des joueurs du club
2472
2801
  * @param {*} [options] Override http request option.
@@ -2533,24 +2862,6 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
2533
2862
  getNumberOfClubUsers(options) {
2534
2863
  return ClubAnalyticsStaffApiFp(this.configuration).getNumberOfClubUsers(options).then((request) => request(this.axios, this.basePath));
2535
2864
  }
2536
- /**
2537
- * Calcule le taux de fidélisation des joueurs
2538
- * @param {*} [options] Override http request option.
2539
- * @throws {RequiredError}
2540
- * @memberof ClubAnalyticsStaffApi
2541
- */
2542
- getRetentionRate(options) {
2543
- return ClubAnalyticsStaffApiFp(this.configuration).getRetentionRate(options).then((request) => request(this.axios, this.basePath));
2544
- }
2545
- /**
2546
- * Récupère le chiffre d\'affaires par sport
2547
- * @param {*} [options] Override http request option.
2548
- * @throws {RequiredError}
2549
- * @memberof ClubAnalyticsStaffApi
2550
- */
2551
- getRevenueBySport(options) {
2552
- return ClubAnalyticsStaffApiFp(this.configuration).getRevenueBySport(options).then((request) => request(this.axios, this.basePath));
2553
- }
2554
2865
  /**
2555
2866
  * Récupère les 10 prochaines réservations
2556
2867
  * @param {*} [options] Override http request option.
@@ -2560,15 +2871,6 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
2560
2871
  getTenNextBookings(options) {
2561
2872
  return ClubAnalyticsStaffApiFp(this.configuration).getTenNextBookings(options).then((request) => request(this.axios, this.basePath));
2562
2873
  }
2563
- /**
2564
- * Classement des terrains les plus réservés
2565
- * @param {*} [options] Override http request option.
2566
- * @throws {RequiredError}
2567
- * @memberof ClubAnalyticsStaffApi
2568
- */
2569
- getTopCourtsByBookings(options) {
2570
- return ClubAnalyticsStaffApiFp(this.configuration).getTopCourtsByBookings(options).then((request) => request(this.axios, this.basePath));
2571
- }
2572
2874
  /**
2573
2875
  * Récupère le chiffre d\'affaires annuel avec détail mensuel
2574
2876
  * @param {ClubAnalyticsStaffApiGetYearlyTurnOverRequest} requestParameters Request parameters.
@@ -2750,384 +3052,131 @@ export const ClubRolesManagerApiFactory = function (configuration, basePath, axi
2750
3052
  const localVarFp = ClubRolesManagerApiFp(configuration);
2751
3053
  return {
2752
3054
  /**
2753
- * Crée un rôle de club
2754
- * @param {ClubRolesManagerApiCreateClubRoleRequest} requestParameters Request parameters.
2755
- * @param {*} [options] Override http request option.
2756
- * @throws {RequiredError}
2757
- */
2758
- createClubRole(requestParameters, options) {
2759
- return localVarFp.createClubRole(requestParameters.createClubRoleRequest, options).then((request) => request(axios, basePath));
2760
- },
2761
- /**
2762
- * Supprime un rôle de club
2763
- * @param {ClubRolesManagerApiDeleteClubRoleRequest} requestParameters Request parameters.
2764
- * @param {*} [options] Override http request option.
2765
- * @throws {RequiredError}
2766
- */
2767
- deleteClubRole(requestParameters, options) {
2768
- return localVarFp.deleteClubRole(requestParameters.id, options).then((request) => request(axios, basePath));
2769
- },
2770
- /**
2771
- * Met à jour un rôle de club
2772
- * @param {ClubRolesManagerApiUpdateClubRoleRequest} requestParameters Request parameters.
2773
- * @param {*} [options] Override http request option.
2774
- * @throws {RequiredError}
2775
- */
2776
- updateClubRole(requestParameters, options) {
2777
- return localVarFp.updateClubRole(requestParameters.id, requestParameters.updateClubRoleRequest, options).then((request) => request(axios, basePath));
2778
- },
2779
- };
2780
- };
2781
- /**
2782
- * ClubRolesManagerApi - object-oriented interface
2783
- * @export
2784
- * @class ClubRolesManagerApi
2785
- * @extends {BaseAPI}
2786
- */
2787
- export class ClubRolesManagerApi extends BaseAPI {
2788
- /**
2789
- * Crée un rôle de club
2790
- * @param {ClubRolesManagerApiCreateClubRoleRequest} requestParameters Request parameters.
2791
- * @param {*} [options] Override http request option.
2792
- * @throws {RequiredError}
2793
- * @memberof ClubRolesManagerApi
2794
- */
2795
- createClubRole(requestParameters, options) {
2796
- return ClubRolesManagerApiFp(this.configuration).createClubRole(requestParameters.createClubRoleRequest, options).then((request) => request(this.axios, this.basePath));
2797
- }
2798
- /**
2799
- * Supprime un rôle de club
2800
- * @param {ClubRolesManagerApiDeleteClubRoleRequest} requestParameters Request parameters.
2801
- * @param {*} [options] Override http request option.
2802
- * @throws {RequiredError}
2803
- * @memberof ClubRolesManagerApi
2804
- */
2805
- deleteClubRole(requestParameters, options) {
2806
- return ClubRolesManagerApiFp(this.configuration).deleteClubRole(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
2807
- }
2808
- /**
2809
- * Met à jour un rôle de club
2810
- * @param {ClubRolesManagerApiUpdateClubRoleRequest} requestParameters Request parameters.
2811
- * @param {*} [options] Override http request option.
2812
- * @throws {RequiredError}
2813
- * @memberof ClubRolesManagerApi
2814
- */
2815
- updateClubRole(requestParameters, options) {
2816
- return ClubRolesManagerApiFp(this.configuration).updateClubRole(requestParameters.id, requestParameters.updateClubRoleRequest, options).then((request) => request(this.axios, this.basePath));
2817
- }
2818
- }
2819
- /**
2820
- * ClubRolesStaffApi - axios parameter creator
2821
- * @export
2822
- */
2823
- export const ClubRolesStaffApiAxiosParamCreator = function (configuration) {
2824
- return {
2825
- /**
2826
- * Récupère la liste des rôles d\'un club
2827
- * @param {*} [options] Override http request option.
2828
- * @throws {RequiredError}
2829
- */
2830
- getAllClubRoles: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2831
- const localVarPath = `/api/club-roles`;
2832
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2833
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2834
- let baseOptions;
2835
- if (configuration) {
2836
- baseOptions = configuration.baseOptions;
2837
- }
2838
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2839
- const localVarHeaderParameter = {};
2840
- const localVarQueryParameter = {};
2841
- // authentication bearerAuth required
2842
- // http bearer authentication required
2843
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2844
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2845
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2846
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2847
- return {
2848
- url: toPathString(localVarUrlObj),
2849
- options: localVarRequestOptions,
2850
- };
2851
- }),
2852
- /**
2853
- * Récupère un rôle de club par ID
2854
- * @param {string} id
2855
- * @param {*} [options] Override http request option.
2856
- * @throws {RequiredError}
2857
- */
2858
- getClubRoleById: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
2859
- // verify required parameter 'id' is not null or undefined
2860
- assertParamExists('getClubRoleById', 'id', id);
2861
- const localVarPath = `/api/club-roles/{id}`
2862
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
2863
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2864
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2865
- let baseOptions;
2866
- if (configuration) {
2867
- baseOptions = configuration.baseOptions;
2868
- }
2869
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2870
- const localVarHeaderParameter = {};
2871
- const localVarQueryParameter = {};
2872
- // authentication bearerAuth required
2873
- // http bearer authentication required
2874
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2875
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2876
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2877
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2878
- return {
2879
- url: toPathString(localVarUrlObj),
2880
- options: localVarRequestOptions,
2881
- };
2882
- }),
2883
- /**
2884
- *
2885
- * @param {*} [options] Override http request option.
2886
- * @throws {RequiredError}
2887
- */
2888
- getUserRolesInClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
2889
- const localVarPath = `/api/club-roles/me/roles`;
2890
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2891
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2892
- let baseOptions;
2893
- if (configuration) {
2894
- baseOptions = configuration.baseOptions;
2895
- }
2896
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2897
- const localVarHeaderParameter = {};
2898
- const localVarQueryParameter = {};
2899
- // authentication bearerAuth required
2900
- // http bearer authentication required
2901
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2902
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2903
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2904
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2905
- return {
2906
- url: toPathString(localVarUrlObj),
2907
- options: localVarRequestOptions,
2908
- };
2909
- }),
2910
- };
2911
- };
2912
- /**
2913
- * ClubRolesStaffApi - functional programming interface
2914
- * @export
2915
- */
2916
- export const ClubRolesStaffApiFp = function (configuration) {
2917
- const localVarAxiosParamCreator = ClubRolesStaffApiAxiosParamCreator(configuration);
2918
- return {
2919
- /**
2920
- * Récupère la liste des rôles d\'un club
2921
- * @param {*} [options] Override http request option.
2922
- * @throws {RequiredError}
2923
- */
2924
- getAllClubRoles(options) {
2925
- return __awaiter(this, void 0, void 0, function* () {
2926
- var _a, _b, _c;
2927
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllClubRoles(options);
2928
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2929
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubRolesStaffApi.getAllClubRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2930
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2931
- });
2932
- },
2933
- /**
2934
- * Récupère un rôle de club par ID
2935
- * @param {string} id
2936
- * @param {*} [options] Override http request option.
2937
- * @throws {RequiredError}
2938
- */
2939
- getClubRoleById(id, options) {
2940
- return __awaiter(this, void 0, void 0, function* () {
2941
- var _a, _b, _c;
2942
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubRoleById(id, options);
2943
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2944
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubRolesStaffApi.getClubRoleById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2945
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2946
- });
2947
- },
2948
- /**
2949
- *
2950
- * @param {*} [options] Override http request option.
2951
- * @throws {RequiredError}
2952
- */
2953
- getUserRolesInClubs(options) {
2954
- return __awaiter(this, void 0, void 0, function* () {
2955
- var _a, _b, _c;
2956
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserRolesInClubs(options);
2957
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2958
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubRolesStaffApi.getUserRolesInClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2959
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2960
- });
2961
- },
2962
- };
2963
- };
2964
- /**
2965
- * ClubRolesStaffApi - factory interface
2966
- * @export
2967
- */
2968
- export const ClubRolesStaffApiFactory = function (configuration, basePath, axios) {
2969
- const localVarFp = ClubRolesStaffApiFp(configuration);
2970
- return {
2971
- /**
2972
- * Récupère la liste des rôles d\'un club
3055
+ * Crée un rôle de club
3056
+ * @param {ClubRolesManagerApiCreateClubRoleRequest} requestParameters Request parameters.
2973
3057
  * @param {*} [options] Override http request option.
2974
3058
  * @throws {RequiredError}
2975
3059
  */
2976
- getAllClubRoles(options) {
2977
- return localVarFp.getAllClubRoles(options).then((request) => request(axios, basePath));
3060
+ createClubRole(requestParameters, options) {
3061
+ return localVarFp.createClubRole(requestParameters.createClubRoleRequest, options).then((request) => request(axios, basePath));
2978
3062
  },
2979
3063
  /**
2980
- * Récupère un rôle de club par ID
2981
- * @param {ClubRolesStaffApiGetClubRoleByIdRequest} requestParameters Request parameters.
3064
+ * Supprime un rôle de club
3065
+ * @param {ClubRolesManagerApiDeleteClubRoleRequest} requestParameters Request parameters.
2982
3066
  * @param {*} [options] Override http request option.
2983
3067
  * @throws {RequiredError}
2984
3068
  */
2985
- getClubRoleById(requestParameters, options) {
2986
- return localVarFp.getClubRoleById(requestParameters.id, options).then((request) => request(axios, basePath));
3069
+ deleteClubRole(requestParameters, options) {
3070
+ return localVarFp.deleteClubRole(requestParameters.id, options).then((request) => request(axios, basePath));
2987
3071
  },
2988
3072
  /**
2989
- *
3073
+ * Met à jour un rôle de club
3074
+ * @param {ClubRolesManagerApiUpdateClubRoleRequest} requestParameters Request parameters.
2990
3075
  * @param {*} [options] Override http request option.
2991
3076
  * @throws {RequiredError}
2992
3077
  */
2993
- getUserRolesInClubs(options) {
2994
- return localVarFp.getUserRolesInClubs(options).then((request) => request(axios, basePath));
3078
+ updateClubRole(requestParameters, options) {
3079
+ return localVarFp.updateClubRole(requestParameters.id, requestParameters.updateClubRoleRequest, options).then((request) => request(axios, basePath));
2995
3080
  },
2996
3081
  };
2997
3082
  };
2998
3083
  /**
2999
- * ClubRolesStaffApi - object-oriented interface
3084
+ * ClubRolesManagerApi - object-oriented interface
3000
3085
  * @export
3001
- * @class ClubRolesStaffApi
3086
+ * @class ClubRolesManagerApi
3002
3087
  * @extends {BaseAPI}
3003
3088
  */
3004
- export class ClubRolesStaffApi extends BaseAPI {
3089
+ export class ClubRolesManagerApi extends BaseAPI {
3005
3090
  /**
3006
- * Récupère la liste des rôles d\'un club
3091
+ * Crée un rôle de club
3092
+ * @param {ClubRolesManagerApiCreateClubRoleRequest} requestParameters Request parameters.
3007
3093
  * @param {*} [options] Override http request option.
3008
3094
  * @throws {RequiredError}
3009
- * @memberof ClubRolesStaffApi
3095
+ * @memberof ClubRolesManagerApi
3010
3096
  */
3011
- getAllClubRoles(options) {
3012
- return ClubRolesStaffApiFp(this.configuration).getAllClubRoles(options).then((request) => request(this.axios, this.basePath));
3097
+ createClubRole(requestParameters, options) {
3098
+ return ClubRolesManagerApiFp(this.configuration).createClubRole(requestParameters.createClubRoleRequest, options).then((request) => request(this.axios, this.basePath));
3013
3099
  }
3014
3100
  /**
3015
- * Récupère un rôle de club par ID
3016
- * @param {ClubRolesStaffApiGetClubRoleByIdRequest} requestParameters Request parameters.
3101
+ * Supprime un rôle de club
3102
+ * @param {ClubRolesManagerApiDeleteClubRoleRequest} requestParameters Request parameters.
3017
3103
  * @param {*} [options] Override http request option.
3018
3104
  * @throws {RequiredError}
3019
- * @memberof ClubRolesStaffApi
3105
+ * @memberof ClubRolesManagerApi
3020
3106
  */
3021
- getClubRoleById(requestParameters, options) {
3022
- return ClubRolesStaffApiFp(this.configuration).getClubRoleById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3107
+ deleteClubRole(requestParameters, options) {
3108
+ return ClubRolesManagerApiFp(this.configuration).deleteClubRole(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3023
3109
  }
3024
3110
  /**
3025
- *
3111
+ * Met à jour un rôle de club
3112
+ * @param {ClubRolesManagerApiUpdateClubRoleRequest} requestParameters Request parameters.
3026
3113
  * @param {*} [options] Override http request option.
3027
3114
  * @throws {RequiredError}
3028
- * @memberof ClubRolesStaffApi
3115
+ * @memberof ClubRolesManagerApi
3029
3116
  */
3030
- getUserRolesInClubs(options) {
3031
- return ClubRolesStaffApiFp(this.configuration).getUserRolesInClubs(options).then((request) => request(this.axios, this.basePath));
3117
+ updateClubRole(requestParameters, options) {
3118
+ return ClubRolesManagerApiFp(this.configuration).updateClubRole(requestParameters.id, requestParameters.updateClubRoleRequest, options).then((request) => request(this.axios, this.basePath));
3032
3119
  }
3033
3120
  }
3034
3121
  /**
3035
- * ClubSettingsManagerApi - axios parameter creator
3122
+ * ClubRolesStaffApi - axios parameter creator
3036
3123
  * @export
3037
3124
  */
3038
- export const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
3125
+ export const ClubRolesStaffApiAxiosParamCreator = function (configuration) {
3039
3126
  return {
3040
3127
  /**
3041
- *
3042
- * @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
3043
- * @param {*} [options] Override http request option.
3044
- * @throws {RequiredError}
3045
- */
3046
- updateClubGeneralSettings: (updateClubGeneralSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubGeneralSettingsRequest_1, ...args_1], void 0, function* (updateClubGeneralSettingsRequest, options = {}) {
3047
- // verify required parameter 'updateClubGeneralSettingsRequest' is not null or undefined
3048
- assertParamExists('updateClubGeneralSettings', 'updateClubGeneralSettingsRequest', updateClubGeneralSettingsRequest);
3049
- const localVarPath = `/api/club-settings/settings/general`;
3050
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3051
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3052
- let baseOptions;
3053
- if (configuration) {
3054
- baseOptions = configuration.baseOptions;
3055
- }
3056
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
3057
- const localVarHeaderParameter = {};
3058
- const localVarQueryParameter = {};
3059
- // authentication bearerAuth required
3060
- // http bearer authentication required
3061
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3062
- localVarHeaderParameter['Content-Type'] = 'application/json';
3063
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3064
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3065
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3066
- localVarRequestOptions.data = serializeDataIfNeeded(updateClubGeneralSettingsRequest, localVarRequestOptions, configuration);
3067
- return {
3068
- url: toPathString(localVarUrlObj),
3069
- options: localVarRequestOptions,
3070
- };
3071
- }),
3072
- /**
3073
- *
3074
- * @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
3128
+ * Récupère la liste des rôles d\'un club
3075
3129
  * @param {*} [options] Override http request option.
3076
3130
  * @throws {RequiredError}
3077
3131
  */
3078
- updateHoursSettings: (updateClubHoursSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubHoursSettingsRequest_1, ...args_1], void 0, function* (updateClubHoursSettingsRequest, options = {}) {
3079
- // verify required parameter 'updateClubHoursSettingsRequest' is not null or undefined
3080
- assertParamExists('updateHoursSettings', 'updateClubHoursSettingsRequest', updateClubHoursSettingsRequest);
3081
- const localVarPath = `/api/club-settings/hours`;
3132
+ getAllClubRoles: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3133
+ const localVarPath = `/api/club-roles`;
3082
3134
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3083
3135
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3084
3136
  let baseOptions;
3085
3137
  if (configuration) {
3086
3138
  baseOptions = configuration.baseOptions;
3087
3139
  }
3088
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
3140
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3089
3141
  const localVarHeaderParameter = {};
3090
3142
  const localVarQueryParameter = {};
3091
3143
  // authentication bearerAuth required
3092
3144
  // http bearer authentication required
3093
3145
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3094
- localVarHeaderParameter['Content-Type'] = 'application/json';
3095
3146
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3096
3147
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3097
3148
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3098
- localVarRequestOptions.data = serializeDataIfNeeded(updateClubHoursSettingsRequest, localVarRequestOptions, configuration);
3099
3149
  return {
3100
3150
  url: toPathString(localVarUrlObj),
3101
3151
  options: localVarRequestOptions,
3102
3152
  };
3103
3153
  }),
3104
3154
  /**
3105
- *
3106
- * @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
3155
+ * Récupère un rôle de club par ID
3156
+ * @param {string} id
3107
3157
  * @param {*} [options] Override http request option.
3108
3158
  * @throws {RequiredError}
3109
3159
  */
3110
- updatePresentationSettings: (clubPresentationSettingsResponse_1, ...args_1) => __awaiter(this, [clubPresentationSettingsResponse_1, ...args_1], void 0, function* (clubPresentationSettingsResponse, options = {}) {
3111
- // verify required parameter 'clubPresentationSettingsResponse' is not null or undefined
3112
- assertParamExists('updatePresentationSettings', 'clubPresentationSettingsResponse', clubPresentationSettingsResponse);
3113
- const localVarPath = `/api/club-settings/presentation`;
3160
+ getClubRoleById: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
3161
+ // verify required parameter 'id' is not null or undefined
3162
+ assertParamExists('getClubRoleById', 'id', id);
3163
+ const localVarPath = `/api/club-roles/{id}`
3164
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3114
3165
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3115
3166
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3116
3167
  let baseOptions;
3117
3168
  if (configuration) {
3118
3169
  baseOptions = configuration.baseOptions;
3119
3170
  }
3120
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
3171
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3121
3172
  const localVarHeaderParameter = {};
3122
3173
  const localVarQueryParameter = {};
3123
3174
  // authentication bearerAuth required
3124
3175
  // http bearer authentication required
3125
3176
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3126
- localVarHeaderParameter['Content-Type'] = 'application/json';
3127
3177
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3128
3178
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3129
3179
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3130
- localVarRequestOptions.data = serializeDataIfNeeded(clubPresentationSettingsResponse, localVarRequestOptions, configuration);
3131
3180
  return {
3132
3181
  url: toPathString(localVarUrlObj),
3133
3182
  options: localVarRequestOptions,
@@ -3135,31 +3184,26 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration)
3135
3184
  }),
3136
3185
  /**
3137
3186
  *
3138
- * @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
3139
3187
  * @param {*} [options] Override http request option.
3140
3188
  * @throws {RequiredError}
3141
3189
  */
3142
- updateReservationSettings: (updateClubReservationSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubReservationSettingsRequest_1, ...args_1], void 0, function* (updateClubReservationSettingsRequest, options = {}) {
3143
- // verify required parameter 'updateClubReservationSettingsRequest' is not null or undefined
3144
- assertParamExists('updateReservationSettings', 'updateClubReservationSettingsRequest', updateClubReservationSettingsRequest);
3145
- const localVarPath = `/api/club-settings/reservation`;
3190
+ getUserRolesInClubs: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3191
+ const localVarPath = `/api/club-roles/me/roles`;
3146
3192
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3147
3193
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3148
3194
  let baseOptions;
3149
3195
  if (configuration) {
3150
3196
  baseOptions = configuration.baseOptions;
3151
3197
  }
3152
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
3198
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3153
3199
  const localVarHeaderParameter = {};
3154
3200
  const localVarQueryParameter = {};
3155
3201
  // authentication bearerAuth required
3156
3202
  // http bearer authentication required
3157
3203
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3158
- localVarHeaderParameter['Content-Type'] = 'application/json';
3159
3204
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3160
3205
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3161
3206
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3162
- localVarRequestOptions.data = serializeDataIfNeeded(updateClubReservationSettingsRequest, localVarRequestOptions, configuration);
3163
3207
  return {
3164
3208
  url: toPathString(localVarUrlObj),
3165
3209
  options: localVarRequestOptions,
@@ -3168,214 +3212,183 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration)
3168
3212
  };
3169
3213
  };
3170
3214
  /**
3171
- * ClubSettingsManagerApi - functional programming interface
3215
+ * ClubRolesStaffApi - functional programming interface
3172
3216
  * @export
3173
3217
  */
3174
- export const ClubSettingsManagerApiFp = function (configuration) {
3175
- const localVarAxiosParamCreator = ClubSettingsManagerApiAxiosParamCreator(configuration);
3218
+ export const ClubRolesStaffApiFp = function (configuration) {
3219
+ const localVarAxiosParamCreator = ClubRolesStaffApiAxiosParamCreator(configuration);
3176
3220
  return {
3177
3221
  /**
3178
- *
3179
- * @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
3180
- * @param {*} [options] Override http request option.
3181
- * @throws {RequiredError}
3182
- */
3183
- updateClubGeneralSettings(updateClubGeneralSettingsRequest, options) {
3184
- return __awaiter(this, void 0, void 0, function* () {
3185
- var _a, _b, _c;
3186
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubGeneralSettings(updateClubGeneralSettingsRequest, options);
3187
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3188
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.updateClubGeneralSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3189
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3190
- });
3191
- },
3192
- /**
3193
- *
3194
- * @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
3222
+ * Récupère la liste des rôles d\'un club
3195
3223
  * @param {*} [options] Override http request option.
3196
3224
  * @throws {RequiredError}
3197
3225
  */
3198
- updateHoursSettings(updateClubHoursSettingsRequest, options) {
3226
+ getAllClubRoles(options) {
3199
3227
  return __awaiter(this, void 0, void 0, function* () {
3200
3228
  var _a, _b, _c;
3201
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateHoursSettings(updateClubHoursSettingsRequest, options);
3229
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllClubRoles(options);
3202
3230
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3203
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.updateHoursSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3231
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubRolesStaffApi.getAllClubRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3204
3232
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3205
3233
  });
3206
3234
  },
3207
3235
  /**
3208
- *
3209
- * @param {ClubPresentationSettingsResponse} clubPresentationSettingsResponse
3236
+ * Récupère un rôle de club par ID
3237
+ * @param {string} id
3210
3238
  * @param {*} [options] Override http request option.
3211
3239
  * @throws {RequiredError}
3212
3240
  */
3213
- updatePresentationSettings(clubPresentationSettingsResponse, options) {
3241
+ getClubRoleById(id, options) {
3214
3242
  return __awaiter(this, void 0, void 0, function* () {
3215
3243
  var _a, _b, _c;
3216
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePresentationSettings(clubPresentationSettingsResponse, options);
3244
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubRoleById(id, options);
3217
3245
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3218
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.updatePresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3246
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubRolesStaffApi.getClubRoleById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3219
3247
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3220
3248
  });
3221
3249
  },
3222
3250
  /**
3223
3251
  *
3224
- * @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
3225
3252
  * @param {*} [options] Override http request option.
3226
3253
  * @throws {RequiredError}
3227
3254
  */
3228
- updateReservationSettings(updateClubReservationSettingsRequest, options) {
3255
+ getUserRolesInClubs(options) {
3229
3256
  return __awaiter(this, void 0, void 0, function* () {
3230
3257
  var _a, _b, _c;
3231
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateReservationSettings(updateClubReservationSettingsRequest, options);
3258
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserRolesInClubs(options);
3232
3259
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3233
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.updateReservationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3260
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubRolesStaffApi.getUserRolesInClubs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3234
3261
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3235
3262
  });
3236
3263
  },
3237
3264
  };
3238
3265
  };
3239
3266
  /**
3240
- * ClubSettingsManagerApi - factory interface
3267
+ * ClubRolesStaffApi - factory interface
3241
3268
  * @export
3242
3269
  */
3243
- export const ClubSettingsManagerApiFactory = function (configuration, basePath, axios) {
3244
- const localVarFp = ClubSettingsManagerApiFp(configuration);
3270
+ export const ClubRolesStaffApiFactory = function (configuration, basePath, axios) {
3271
+ const localVarFp = ClubRolesStaffApiFp(configuration);
3245
3272
  return {
3246
3273
  /**
3247
- *
3248
- * @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
3249
- * @param {*} [options] Override http request option.
3250
- * @throws {RequiredError}
3251
- */
3252
- updateClubGeneralSettings(requestParameters, options) {
3253
- return localVarFp.updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(axios, basePath));
3254
- },
3255
- /**
3256
- *
3257
- * @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
3274
+ * Récupère la liste des rôles d\'un club
3258
3275
  * @param {*} [options] Override http request option.
3259
3276
  * @throws {RequiredError}
3260
3277
  */
3261
- updateHoursSettings(requestParameters, options) {
3262
- return localVarFp.updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(axios, basePath));
3278
+ getAllClubRoles(options) {
3279
+ return localVarFp.getAllClubRoles(options).then((request) => request(axios, basePath));
3263
3280
  },
3264
3281
  /**
3265
- *
3266
- * @param {ClubSettingsManagerApiUpdatePresentationSettingsRequest} requestParameters Request parameters.
3282
+ * Récupère un rôle de club par ID
3283
+ * @param {ClubRolesStaffApiGetClubRoleByIdRequest} requestParameters Request parameters.
3267
3284
  * @param {*} [options] Override http request option.
3268
3285
  * @throws {RequiredError}
3269
3286
  */
3270
- updatePresentationSettings(requestParameters, options) {
3271
- return localVarFp.updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(axios, basePath));
3287
+ getClubRoleById(requestParameters, options) {
3288
+ return localVarFp.getClubRoleById(requestParameters.id, options).then((request) => request(axios, basePath));
3272
3289
  },
3273
3290
  /**
3274
3291
  *
3275
- * @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
3276
3292
  * @param {*} [options] Override http request option.
3277
3293
  * @throws {RequiredError}
3278
3294
  */
3279
- updateReservationSettings(requestParameters, options) {
3280
- return localVarFp.updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(axios, basePath));
3295
+ getUserRolesInClubs(options) {
3296
+ return localVarFp.getUserRolesInClubs(options).then((request) => request(axios, basePath));
3281
3297
  },
3282
3298
  };
3283
3299
  };
3284
3300
  /**
3285
- * ClubSettingsManagerApi - object-oriented interface
3301
+ * ClubRolesStaffApi - object-oriented interface
3286
3302
  * @export
3287
- * @class ClubSettingsManagerApi
3303
+ * @class ClubRolesStaffApi
3288
3304
  * @extends {BaseAPI}
3289
3305
  */
3290
- export class ClubSettingsManagerApi extends BaseAPI {
3291
- /**
3292
- *
3293
- * @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
3294
- * @param {*} [options] Override http request option.
3295
- * @throws {RequiredError}
3296
- * @memberof ClubSettingsManagerApi
3297
- */
3298
- updateClubGeneralSettings(requestParameters, options) {
3299
- return ClubSettingsManagerApiFp(this.configuration).updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(this.axios, this.basePath));
3300
- }
3306
+ export class ClubRolesStaffApi extends BaseAPI {
3301
3307
  /**
3302
- *
3303
- * @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
3308
+ * Récupère la liste des rôles d\'un club
3304
3309
  * @param {*} [options] Override http request option.
3305
3310
  * @throws {RequiredError}
3306
- * @memberof ClubSettingsManagerApi
3311
+ * @memberof ClubRolesStaffApi
3307
3312
  */
3308
- updateHoursSettings(requestParameters, options) {
3309
- return ClubSettingsManagerApiFp(this.configuration).updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(this.axios, this.basePath));
3313
+ getAllClubRoles(options) {
3314
+ return ClubRolesStaffApiFp(this.configuration).getAllClubRoles(options).then((request) => request(this.axios, this.basePath));
3310
3315
  }
3311
3316
  /**
3312
- *
3313
- * @param {ClubSettingsManagerApiUpdatePresentationSettingsRequest} requestParameters Request parameters.
3317
+ * Récupère un rôle de club par ID
3318
+ * @param {ClubRolesStaffApiGetClubRoleByIdRequest} requestParameters Request parameters.
3314
3319
  * @param {*} [options] Override http request option.
3315
3320
  * @throws {RequiredError}
3316
- * @memberof ClubSettingsManagerApi
3321
+ * @memberof ClubRolesStaffApi
3317
3322
  */
3318
- updatePresentationSettings(requestParameters, options) {
3319
- return ClubSettingsManagerApiFp(this.configuration).updatePresentationSettings(requestParameters.clubPresentationSettingsResponse, options).then((request) => request(this.axios, this.basePath));
3323
+ getClubRoleById(requestParameters, options) {
3324
+ return ClubRolesStaffApiFp(this.configuration).getClubRoleById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3320
3325
  }
3321
3326
  /**
3322
3327
  *
3323
- * @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
3324
3328
  * @param {*} [options] Override http request option.
3325
3329
  * @throws {RequiredError}
3326
- * @memberof ClubSettingsManagerApi
3330
+ * @memberof ClubRolesStaffApi
3327
3331
  */
3328
- updateReservationSettings(requestParameters, options) {
3329
- return ClubSettingsManagerApiFp(this.configuration).updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
3332
+ getUserRolesInClubs(options) {
3333
+ return ClubRolesStaffApiFp(this.configuration).getUserRolesInClubs(options).then((request) => request(this.axios, this.basePath));
3330
3334
  }
3331
3335
  }
3332
3336
  /**
3333
- * ClubSettingsStaffApi - axios parameter creator
3337
+ * ClubSettingsManagerApi - axios parameter creator
3334
3338
  * @export
3335
3339
  */
3336
- export const ClubSettingsStaffApiAxiosParamCreator = function (configuration) {
3340
+ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration) {
3337
3341
  return {
3338
3342
  /**
3339
- *
3343
+ * Crée les paramètres d\'un club
3344
+ * @param {string} clubId
3345
+ * @param {CreateClubSettingsRequest} createClubSettingsRequest
3340
3346
  * @param {*} [options] Override http request option.
3341
3347
  * @throws {RequiredError}
3342
3348
  */
3343
- getClubGeneralSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3344
- const localVarPath = `/api/club-settings/settings/general`;
3349
+ createClubSettings: (clubId_1, createClubSettingsRequest_1, ...args_1) => __awaiter(this, [clubId_1, createClubSettingsRequest_1, ...args_1], void 0, function* (clubId, createClubSettingsRequest, options = {}) {
3350
+ // verify required parameter 'clubId' is not null or undefined
3351
+ assertParamExists('createClubSettings', 'clubId', clubId);
3352
+ // verify required parameter 'createClubSettingsRequest' is not null or undefined
3353
+ assertParamExists('createClubSettings', 'createClubSettingsRequest', createClubSettingsRequest);
3354
+ const localVarPath = `/api/club-settings/{clubId}`
3355
+ .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
3345
3356
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3346
3357
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3347
3358
  let baseOptions;
3348
3359
  if (configuration) {
3349
3360
  baseOptions = configuration.baseOptions;
3350
3361
  }
3351
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3362
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3352
3363
  const localVarHeaderParameter = {};
3353
3364
  const localVarQueryParameter = {};
3354
3365
  // authentication bearerAuth required
3355
3366
  // http bearer authentication required
3356
3367
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3368
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3357
3369
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3358
3370
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3359
3371
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3372
+ localVarRequestOptions.data = serializeDataIfNeeded(createClubSettingsRequest, localVarRequestOptions, configuration);
3360
3373
  return {
3361
3374
  url: toPathString(localVarUrlObj),
3362
3375
  options: localVarRequestOptions,
3363
3376
  };
3364
3377
  }),
3365
3378
  /**
3366
- *
3379
+ * Supprime les paramètres d\'un club
3367
3380
  * @param {*} [options] Override http request option.
3368
3381
  * @throws {RequiredError}
3369
3382
  */
3370
- getHoursSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3371
- const localVarPath = `/api/club-settings/hours`;
3383
+ deleteClubSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3384
+ const localVarPath = `/api/club-settings`;
3372
3385
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3373
3386
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3374
3387
  let baseOptions;
3375
3388
  if (configuration) {
3376
3389
  baseOptions = configuration.baseOptions;
3377
3390
  }
3378
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3391
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
3379
3392
  const localVarHeaderParameter = {};
3380
3393
  const localVarQueryParameter = {};
3381
3394
  // authentication bearerAuth required
@@ -3390,12 +3403,12 @@ export const ClubSettingsStaffApiAxiosParamCreator = function (configuration) {
3390
3403
  };
3391
3404
  }),
3392
3405
  /**
3393
- *
3406
+ * Récupère les paramètres d\'un club
3394
3407
  * @param {*} [options] Override http request option.
3395
3408
  * @throws {RequiredError}
3396
3409
  */
3397
- getPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3398
- const localVarPath = `/api/club-settings/presentation`;
3410
+ getClubSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3411
+ const localVarPath = `/api/club-settings`;
3399
3412
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3400
3413
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3401
3414
  let baseOptions;
@@ -3417,27 +3430,32 @@ export const ClubSettingsStaffApiAxiosParamCreator = function (configuration) {
3417
3430
  };
3418
3431
  }),
3419
3432
  /**
3420
- *
3433
+ * Met à jour les paramètres d\'un club
3434
+ * @param {UpdateClubSettingsRequest} updateClubSettingsRequest
3421
3435
  * @param {*} [options] Override http request option.
3422
3436
  * @throws {RequiredError}
3423
3437
  */
3424
- getReservationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
3425
- const localVarPath = `/api/club-settings/reservation`;
3438
+ updateClubSettings: (updateClubSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubSettingsRequest_1, ...args_1], void 0, function* (updateClubSettingsRequest, options = {}) {
3439
+ // verify required parameter 'updateClubSettingsRequest' is not null or undefined
3440
+ assertParamExists('updateClubSettings', 'updateClubSettingsRequest', updateClubSettingsRequest);
3441
+ const localVarPath = `/api/club-settings`;
3426
3442
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3427
3443
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3428
3444
  let baseOptions;
3429
3445
  if (configuration) {
3430
3446
  baseOptions = configuration.baseOptions;
3431
3447
  }
3432
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3448
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
3433
3449
  const localVarHeaderParameter = {};
3434
3450
  const localVarQueryParameter = {};
3435
3451
  // authentication bearerAuth required
3436
3452
  // http bearer authentication required
3437
3453
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3454
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3438
3455
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3439
3456
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3440
3457
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3458
+ localVarRequestOptions.data = serializeDataIfNeeded(updateClubSettingsRequest, localVarRequestOptions, configuration);
3441
3459
  return {
3442
3460
  url: toPathString(localVarUrlObj),
3443
3461
  options: localVarRequestOptions,
@@ -3446,153 +3464,160 @@ export const ClubSettingsStaffApiAxiosParamCreator = function (configuration) {
3446
3464
  };
3447
3465
  };
3448
3466
  /**
3449
- * ClubSettingsStaffApi - functional programming interface
3467
+ * ClubSettingsManagerApi - functional programming interface
3450
3468
  * @export
3451
3469
  */
3452
- export const ClubSettingsStaffApiFp = function (configuration) {
3453
- const localVarAxiosParamCreator = ClubSettingsStaffApiAxiosParamCreator(configuration);
3470
+ export const ClubSettingsManagerApiFp = function (configuration) {
3471
+ const localVarAxiosParamCreator = ClubSettingsManagerApiAxiosParamCreator(configuration);
3454
3472
  return {
3455
3473
  /**
3456
- *
3474
+ * Crée les paramètres d\'un club
3475
+ * @param {string} clubId
3476
+ * @param {CreateClubSettingsRequest} createClubSettingsRequest
3457
3477
  * @param {*} [options] Override http request option.
3458
3478
  * @throws {RequiredError}
3459
3479
  */
3460
- getClubGeneralSettings(options) {
3480
+ createClubSettings(clubId, createClubSettingsRequest, options) {
3461
3481
  return __awaiter(this, void 0, void 0, function* () {
3462
3482
  var _a, _b, _c;
3463
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubGeneralSettings(options);
3483
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createClubSettings(clubId, createClubSettingsRequest, options);
3464
3484
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3465
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsStaffApi.getClubGeneralSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3485
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.createClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3466
3486
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3467
3487
  });
3468
3488
  },
3469
3489
  /**
3470
- *
3490
+ * Supprime les paramètres d\'un club
3471
3491
  * @param {*} [options] Override http request option.
3472
3492
  * @throws {RequiredError}
3473
3493
  */
3474
- getHoursSettings(options) {
3494
+ deleteClubSettings(options) {
3475
3495
  return __awaiter(this, void 0, void 0, function* () {
3476
3496
  var _a, _b, _c;
3477
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getHoursSettings(options);
3497
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteClubSettings(options);
3478
3498
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3479
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsStaffApi.getHoursSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3499
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.deleteClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3480
3500
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3481
3501
  });
3482
3502
  },
3483
3503
  /**
3484
- *
3504
+ * Récupère les paramètres d\'un club
3485
3505
  * @param {*} [options] Override http request option.
3486
3506
  * @throws {RequiredError}
3487
3507
  */
3488
- getPresentationSettings(options) {
3508
+ getClubSettings(options) {
3489
3509
  return __awaiter(this, void 0, void 0, function* () {
3490
3510
  var _a, _b, _c;
3491
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPresentationSettings(options);
3511
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubSettings(options);
3492
3512
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3493
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsStaffApi.getPresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3513
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.getClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3494
3514
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3495
3515
  });
3496
3516
  },
3497
3517
  /**
3498
- *
3518
+ * Met à jour les paramètres d\'un club
3519
+ * @param {UpdateClubSettingsRequest} updateClubSettingsRequest
3499
3520
  * @param {*} [options] Override http request option.
3500
3521
  * @throws {RequiredError}
3501
3522
  */
3502
- getReservationSettings(options) {
3523
+ updateClubSettings(updateClubSettingsRequest, options) {
3503
3524
  return __awaiter(this, void 0, void 0, function* () {
3504
3525
  var _a, _b, _c;
3505
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getReservationSettings(options);
3526
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubSettings(updateClubSettingsRequest, options);
3506
3527
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3507
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsStaffApi.getReservationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3528
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubSettingsManagerApi.updateClubSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3508
3529
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3509
3530
  });
3510
3531
  },
3511
3532
  };
3512
3533
  };
3513
3534
  /**
3514
- * ClubSettingsStaffApi - factory interface
3535
+ * ClubSettingsManagerApi - factory interface
3515
3536
  * @export
3516
3537
  */
3517
- export const ClubSettingsStaffApiFactory = function (configuration, basePath, axios) {
3518
- const localVarFp = ClubSettingsStaffApiFp(configuration);
3538
+ export const ClubSettingsManagerApiFactory = function (configuration, basePath, axios) {
3539
+ const localVarFp = ClubSettingsManagerApiFp(configuration);
3519
3540
  return {
3520
3541
  /**
3521
- *
3542
+ * Crée les paramètres d\'un club
3543
+ * @param {ClubSettingsManagerApiCreateClubSettingsRequest} requestParameters Request parameters.
3522
3544
  * @param {*} [options] Override http request option.
3523
3545
  * @throws {RequiredError}
3524
3546
  */
3525
- getClubGeneralSettings(options) {
3526
- return localVarFp.getClubGeneralSettings(options).then((request) => request(axios, basePath));
3547
+ createClubSettings(requestParameters, options) {
3548
+ return localVarFp.createClubSettings(requestParameters.clubId, requestParameters.createClubSettingsRequest, options).then((request) => request(axios, basePath));
3527
3549
  },
3528
3550
  /**
3529
- *
3551
+ * Supprime les paramètres d\'un club
3530
3552
  * @param {*} [options] Override http request option.
3531
3553
  * @throws {RequiredError}
3532
3554
  */
3533
- getHoursSettings(options) {
3534
- return localVarFp.getHoursSettings(options).then((request) => request(axios, basePath));
3555
+ deleteClubSettings(options) {
3556
+ return localVarFp.deleteClubSettings(options).then((request) => request(axios, basePath));
3535
3557
  },
3536
3558
  /**
3537
- *
3559
+ * Récupère les paramètres d\'un club
3538
3560
  * @param {*} [options] Override http request option.
3539
3561
  * @throws {RequiredError}
3540
3562
  */
3541
- getPresentationSettings(options) {
3542
- return localVarFp.getPresentationSettings(options).then((request) => request(axios, basePath));
3563
+ getClubSettings(options) {
3564
+ return localVarFp.getClubSettings(options).then((request) => request(axios, basePath));
3543
3565
  },
3544
3566
  /**
3545
- *
3567
+ * Met à jour les paramètres d\'un club
3568
+ * @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
3546
3569
  * @param {*} [options] Override http request option.
3547
3570
  * @throws {RequiredError}
3548
3571
  */
3549
- getReservationSettings(options) {
3550
- return localVarFp.getReservationSettings(options).then((request) => request(axios, basePath));
3572
+ updateClubSettings(requestParameters, options) {
3573
+ return localVarFp.updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(axios, basePath));
3551
3574
  },
3552
3575
  };
3553
3576
  };
3554
3577
  /**
3555
- * ClubSettingsStaffApi - object-oriented interface
3578
+ * ClubSettingsManagerApi - object-oriented interface
3556
3579
  * @export
3557
- * @class ClubSettingsStaffApi
3580
+ * @class ClubSettingsManagerApi
3558
3581
  * @extends {BaseAPI}
3559
3582
  */
3560
- export class ClubSettingsStaffApi extends BaseAPI {
3583
+ export class ClubSettingsManagerApi extends BaseAPI {
3561
3584
  /**
3562
- *
3585
+ * Crée les paramètres d\'un club
3586
+ * @param {ClubSettingsManagerApiCreateClubSettingsRequest} requestParameters Request parameters.
3563
3587
  * @param {*} [options] Override http request option.
3564
3588
  * @throws {RequiredError}
3565
- * @memberof ClubSettingsStaffApi
3589
+ * @memberof ClubSettingsManagerApi
3566
3590
  */
3567
- getClubGeneralSettings(options) {
3568
- return ClubSettingsStaffApiFp(this.configuration).getClubGeneralSettings(options).then((request) => request(this.axios, this.basePath));
3591
+ createClubSettings(requestParameters, options) {
3592
+ return ClubSettingsManagerApiFp(this.configuration).createClubSettings(requestParameters.clubId, requestParameters.createClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
3569
3593
  }
3570
3594
  /**
3571
- *
3595
+ * Supprime les paramètres d\'un club
3572
3596
  * @param {*} [options] Override http request option.
3573
3597
  * @throws {RequiredError}
3574
- * @memberof ClubSettingsStaffApi
3598
+ * @memberof ClubSettingsManagerApi
3575
3599
  */
3576
- getHoursSettings(options) {
3577
- return ClubSettingsStaffApiFp(this.configuration).getHoursSettings(options).then((request) => request(this.axios, this.basePath));
3600
+ deleteClubSettings(options) {
3601
+ return ClubSettingsManagerApiFp(this.configuration).deleteClubSettings(options).then((request) => request(this.axios, this.basePath));
3578
3602
  }
3579
3603
  /**
3580
- *
3604
+ * Récupère les paramètres d\'un club
3581
3605
  * @param {*} [options] Override http request option.
3582
3606
  * @throws {RequiredError}
3583
- * @memberof ClubSettingsStaffApi
3607
+ * @memberof ClubSettingsManagerApi
3584
3608
  */
3585
- getPresentationSettings(options) {
3586
- return ClubSettingsStaffApiFp(this.configuration).getPresentationSettings(options).then((request) => request(this.axios, this.basePath));
3609
+ getClubSettings(options) {
3610
+ return ClubSettingsManagerApiFp(this.configuration).getClubSettings(options).then((request) => request(this.axios, this.basePath));
3587
3611
  }
3588
3612
  /**
3589
- *
3613
+ * Met à jour les paramètres d\'un club
3614
+ * @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
3590
3615
  * @param {*} [options] Override http request option.
3591
3616
  * @throws {RequiredError}
3592
- * @memberof ClubSettingsStaffApi
3617
+ * @memberof ClubSettingsManagerApi
3593
3618
  */
3594
- getReservationSettings(options) {
3595
- return ClubSettingsStaffApiFp(this.configuration).getReservationSettings(options).then((request) => request(this.axios, this.basePath));
3619
+ updateClubSettings(requestParameters, options) {
3620
+ return ClubSettingsManagerApiFp(this.configuration).updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
3596
3621
  }
3597
3622
  }
3598
3623
  /**
@@ -4375,15 +4400,51 @@ export class ClubsApi extends BaseAPI {
4375
4400
  export const ClubsManagerApiAxiosParamCreator = function (configuration) {
4376
4401
  return {
4377
4402
  /**
4378
- * Ajoute un membre à un club
4379
- * @param {AddClubMemberRequest} addClubMemberRequest
4403
+ * Ajoute un membre à un club
4404
+ * @param {AddClubMemberRequest} addClubMemberRequest
4405
+ * @param {*} [options] Override http request option.
4406
+ * @throws {RequiredError}
4407
+ */
4408
+ addClubMember: (addClubMemberRequest_1, ...args_1) => __awaiter(this, [addClubMemberRequest_1, ...args_1], void 0, function* (addClubMemberRequest, options = {}) {
4409
+ // verify required parameter 'addClubMemberRequest' is not null or undefined
4410
+ assertParamExists('addClubMember', 'addClubMemberRequest', addClubMemberRequest);
4411
+ const localVarPath = `/api/clubs/members`;
4412
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4413
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4414
+ let baseOptions;
4415
+ if (configuration) {
4416
+ baseOptions = configuration.baseOptions;
4417
+ }
4418
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4419
+ const localVarHeaderParameter = {};
4420
+ const localVarQueryParameter = {};
4421
+ // authentication bearerAuth required
4422
+ // http bearer authentication required
4423
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4424
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4425
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4426
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4427
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4428
+ localVarRequestOptions.data = serializeDataIfNeeded(addClubMemberRequest, localVarRequestOptions, configuration);
4429
+ return {
4430
+ url: toPathString(localVarUrlObj),
4431
+ options: localVarRequestOptions,
4432
+ };
4433
+ }),
4434
+ /**
4435
+ *
4436
+ * @param {string} userId
4437
+ * @param {AddCreditsToCustomerRequest} addCreditsToCustomerRequest
4380
4438
  * @param {*} [options] Override http request option.
4381
4439
  * @throws {RequiredError}
4382
4440
  */
4383
- addClubMember: (addClubMemberRequest_1, ...args_1) => __awaiter(this, [addClubMemberRequest_1, ...args_1], void 0, function* (addClubMemberRequest, options = {}) {
4384
- // verify required parameter 'addClubMemberRequest' is not null or undefined
4385
- assertParamExists('addClubMember', 'addClubMemberRequest', addClubMemberRequest);
4386
- const localVarPath = `/api/clubs/members`;
4441
+ addCreditsToCustomer: (userId_1, addCreditsToCustomerRequest_1, ...args_1) => __awaiter(this, [userId_1, addCreditsToCustomerRequest_1, ...args_1], void 0, function* (userId, addCreditsToCustomerRequest, options = {}) {
4442
+ // verify required parameter 'userId' is not null or undefined
4443
+ assertParamExists('addCreditsToCustomer', 'userId', userId);
4444
+ // verify required parameter 'addCreditsToCustomerRequest' is not null or undefined
4445
+ assertParamExists('addCreditsToCustomer', 'addCreditsToCustomerRequest', addCreditsToCustomerRequest);
4446
+ const localVarPath = `/api/clubs/customers/{userId}/credits`
4447
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
4387
4448
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4388
4449
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4389
4450
  let baseOptions;
@@ -4400,7 +4461,7 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration) {
4400
4461
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4401
4462
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4402
4463
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4403
- localVarRequestOptions.data = serializeDataIfNeeded(addClubMemberRequest, localVarRequestOptions, configuration);
4464
+ localVarRequestOptions.data = serializeDataIfNeeded(addCreditsToCustomerRequest, localVarRequestOptions, configuration);
4404
4465
  return {
4405
4466
  url: toPathString(localVarUrlObj),
4406
4467
  options: localVarRequestOptions,
@@ -4882,38 +4943,6 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration) {
4882
4943
  options: localVarRequestOptions,
4883
4944
  };
4884
4945
  }),
4885
- /**
4886
- *
4887
- * @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
4888
- * @param {*} [options] Override http request option.
4889
- * @throws {RequiredError}
4890
- */
4891
- updateClubPresentationSettings: (updateClubPresentationSettingsRequest_1, ...args_1) => __awaiter(this, [updateClubPresentationSettingsRequest_1, ...args_1], void 0, function* (updateClubPresentationSettingsRequest, options = {}) {
4892
- // verify required parameter 'updateClubPresentationSettingsRequest' is not null or undefined
4893
- assertParamExists('updateClubPresentationSettings', 'updateClubPresentationSettingsRequest', updateClubPresentationSettingsRequest);
4894
- const localVarPath = `/api/clubs/settings/presentation`;
4895
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4896
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4897
- let baseOptions;
4898
- if (configuration) {
4899
- baseOptions = configuration.baseOptions;
4900
- }
4901
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
4902
- const localVarHeaderParameter = {};
4903
- const localVarQueryParameter = {};
4904
- // authentication bearerAuth required
4905
- // http bearer authentication required
4906
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4907
- localVarHeaderParameter['Content-Type'] = 'application/json';
4908
- setSearchParams(localVarUrlObj, localVarQueryParameter);
4909
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4910
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4911
- localVarRequestOptions.data = serializeDataIfNeeded(updateClubPresentationSettingsRequest, localVarRequestOptions, configuration);
4912
- return {
4913
- url: toPathString(localVarUrlObj),
4914
- options: localVarRequestOptions,
4915
- };
4916
- }),
4917
4946
  /**
4918
4947
  *
4919
4948
  * @param {string} courtId
@@ -5010,6 +5039,22 @@ export const ClubsManagerApiFp = function (configuration) {
5010
5039
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5011
5040
  });
5012
5041
  },
5042
+ /**
5043
+ *
5044
+ * @param {string} userId
5045
+ * @param {AddCreditsToCustomerRequest} addCreditsToCustomerRequest
5046
+ * @param {*} [options] Override http request option.
5047
+ * @throws {RequiredError}
5048
+ */
5049
+ addCreditsToCustomer(userId, addCreditsToCustomerRequest, options) {
5050
+ return __awaiter(this, void 0, void 0, function* () {
5051
+ var _a, _b, _c;
5052
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addCreditsToCustomer(userId, addCreditsToCustomerRequest, options);
5053
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5054
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsManagerApi.addCreditsToCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5055
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5056
+ });
5057
+ },
5013
5058
  /**
5014
5059
  *
5015
5060
  * @param {string} priceId
@@ -5236,21 +5281,6 @@ export const ClubsManagerApiFp = function (configuration) {
5236
5281
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5237
5282
  });
5238
5283
  },
5239
- /**
5240
- *
5241
- * @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
5242
- * @param {*} [options] Override http request option.
5243
- * @throws {RequiredError}
5244
- */
5245
- updateClubPresentationSettings(updateClubPresentationSettingsRequest, options) {
5246
- return __awaiter(this, void 0, void 0, function* () {
5247
- var _a, _b, _c;
5248
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateClubPresentationSettings(updateClubPresentationSettingsRequest, options);
5249
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5250
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsManagerApi.updateClubPresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5251
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5252
- });
5253
- },
5254
5284
  /**
5255
5285
  *
5256
5286
  * @param {string} courtId
@@ -5301,6 +5331,15 @@ export const ClubsManagerApiFactory = function (configuration, basePath, axios)
5301
5331
  addClubMember(requestParameters, options) {
5302
5332
  return localVarFp.addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(axios, basePath));
5303
5333
  },
5334
+ /**
5335
+ *
5336
+ * @param {ClubsManagerApiAddCreditsToCustomerRequest} requestParameters Request parameters.
5337
+ * @param {*} [options] Override http request option.
5338
+ * @throws {RequiredError}
5339
+ */
5340
+ addCreditsToCustomer(requestParameters, options) {
5341
+ return localVarFp.addCreditsToCustomer(requestParameters.userId, requestParameters.addCreditsToCustomerRequest, options).then((request) => request(axios, basePath));
5342
+ },
5304
5343
  /**
5305
5344
  *
5306
5345
  * @param {ClubsManagerApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
@@ -5435,15 +5474,6 @@ export const ClubsManagerApiFactory = function (configuration, basePath, axios)
5435
5474
  updateClubInfos(requestParameters, options) {
5436
5475
  return localVarFp.updateClubInfos(requestParameters.body, options).then((request) => request(axios, basePath));
5437
5476
  },
5438
- /**
5439
- *
5440
- * @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
5441
- * @param {*} [options] Override http request option.
5442
- * @throws {RequiredError}
5443
- */
5444
- updateClubPresentationSettings(requestParameters, options) {
5445
- return localVarFp.updateClubPresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(axios, basePath));
5446
- },
5447
5477
  /**
5448
5478
  *
5449
5479
  * @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
@@ -5481,6 +5511,16 @@ export class ClubsManagerApi extends BaseAPI {
5481
5511
  addClubMember(requestParameters, options) {
5482
5512
  return ClubsManagerApiFp(this.configuration).addClubMember(requestParameters.addClubMemberRequest, options).then((request) => request(this.axios, this.basePath));
5483
5513
  }
5514
+ /**
5515
+ *
5516
+ * @param {ClubsManagerApiAddCreditsToCustomerRequest} requestParameters Request parameters.
5517
+ * @param {*} [options] Override http request option.
5518
+ * @throws {RequiredError}
5519
+ * @memberof ClubsManagerApi
5520
+ */
5521
+ addCreditsToCustomer(requestParameters, options) {
5522
+ return ClubsManagerApiFp(this.configuration).addCreditsToCustomer(requestParameters.userId, requestParameters.addCreditsToCustomerRequest, options).then((request) => request(this.axios, this.basePath));
5523
+ }
5484
5524
  /**
5485
5525
  *
5486
5526
  * @param {ClubsManagerApiArchivePriceForSubscriptionPlanRequest} requestParameters Request parameters.
@@ -5630,16 +5670,6 @@ export class ClubsManagerApi extends BaseAPI {
5630
5670
  updateClubInfos(requestParameters, options) {
5631
5671
  return ClubsManagerApiFp(this.configuration).updateClubInfos(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
5632
5672
  }
5633
- /**
5634
- *
5635
- * @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
5636
- * @param {*} [options] Override http request option.
5637
- * @throws {RequiredError}
5638
- * @memberof ClubsManagerApi
5639
- */
5640
- updateClubPresentationSettings(requestParameters, options) {
5641
- return ClubsManagerApiFp(this.configuration).updateClubPresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
5642
- }
5643
5673
  /**
5644
5674
  *
5645
5675
  * @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
@@ -5748,33 +5778,6 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration) {
5748
5778
  options: localVarRequestOptions,
5749
5779
  };
5750
5780
  }),
5751
- /**
5752
- *
5753
- * @param {*} [options] Override http request option.
5754
- * @throws {RequiredError}
5755
- */
5756
- getClubPresentationSettings: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
5757
- const localVarPath = `/api/clubs/settings/presentation`;
5758
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5759
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5760
- let baseOptions;
5761
- if (configuration) {
5762
- baseOptions = configuration.baseOptions;
5763
- }
5764
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5765
- const localVarHeaderParameter = {};
5766
- const localVarQueryParameter = {};
5767
- // authentication bearerAuth required
5768
- // http bearer authentication required
5769
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5770
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5771
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5772
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5773
- return {
5774
- url: toPathString(localVarUrlObj),
5775
- options: localVarRequestOptions,
5776
- };
5777
- }),
5778
5781
  /**
5779
5782
  * Récupère les rôles d\'un club
5780
5783
  * @param {*} [options] Override http request option.
@@ -5938,20 +5941,6 @@ export const ClubsStaffApiFp = function (configuration) {
5938
5941
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5939
5942
  });
5940
5943
  },
5941
- /**
5942
- *
5943
- * @param {*} [options] Override http request option.
5944
- * @throws {RequiredError}
5945
- */
5946
- getClubPresentationSettings(options) {
5947
- return __awaiter(this, void 0, void 0, function* () {
5948
- var _a, _b, _c;
5949
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPresentationSettings(options);
5950
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5951
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubsStaffApi.getClubPresentationSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5952
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5953
- });
5954
- },
5955
5944
  /**
5956
5945
  * Récupère les rôles d\'un club
5957
5946
  * @param {*} [options] Override http request option.
@@ -6042,14 +6031,6 @@ export const ClubsStaffApiFactory = function (configuration, basePath, axios) {
6042
6031
  getClubMembers(options) {
6043
6032
  return localVarFp.getClubMembers(options).then((request) => request(axios, basePath));
6044
6033
  },
6045
- /**
6046
- *
6047
- * @param {*} [options] Override http request option.
6048
- * @throws {RequiredError}
6049
- */
6050
- getClubPresentationSettings(options) {
6051
- return localVarFp.getClubPresentationSettings(options).then((request) => request(axios, basePath));
6052
- },
6053
6034
  /**
6054
6035
  * Récupère les rôles d\'un club
6055
6036
  * @param {*} [options] Override http request option.
@@ -6119,15 +6100,6 @@ export class ClubsStaffApi extends BaseAPI {
6119
6100
  getClubMembers(options) {
6120
6101
  return ClubsStaffApiFp(this.configuration).getClubMembers(options).then((request) => request(this.axios, this.basePath));
6121
6102
  }
6122
- /**
6123
- *
6124
- * @param {*} [options] Override http request option.
6125
- * @throws {RequiredError}
6126
- * @memberof ClubsStaffApi
6127
- */
6128
- getClubPresentationSettings(options) {
6129
- return ClubsStaffApiFp(this.configuration).getClubPresentationSettings(options).then((request) => request(this.axios, this.basePath));
6130
- }
6131
6103
  /**
6132
6104
  * Récupère les rôles d\'un club
6133
6105
  * @param {*} [options] Override http request option.
@@ -7370,6 +7342,98 @@ export class SportsPublicApi extends BaseAPI {
7370
7342
  return SportsPublicApiFp(this.configuration).getVerifiedSports(options).then((request) => request(this.axios, this.basePath));
7371
7343
  }
7372
7344
  }
7345
+ /**
7346
+ * SportsStaffApi - axios parameter creator
7347
+ * @export
7348
+ */
7349
+ export const SportsStaffApiAxiosParamCreator = function (configuration) {
7350
+ return {
7351
+ /**
7352
+ * Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
7353
+ * @param {*} [options] Override http request option.
7354
+ * @throws {RequiredError}
7355
+ */
7356
+ getAllSports: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
7357
+ const localVarPath = `/api/sports`;
7358
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7359
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7360
+ let baseOptions;
7361
+ if (configuration) {
7362
+ baseOptions = configuration.baseOptions;
7363
+ }
7364
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7365
+ const localVarHeaderParameter = {};
7366
+ const localVarQueryParameter = {};
7367
+ // authentication bearerAuth required
7368
+ // http bearer authentication required
7369
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7370
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7371
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7372
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7373
+ return {
7374
+ url: toPathString(localVarUrlObj),
7375
+ options: localVarRequestOptions,
7376
+ };
7377
+ }),
7378
+ };
7379
+ };
7380
+ /**
7381
+ * SportsStaffApi - functional programming interface
7382
+ * @export
7383
+ */
7384
+ export const SportsStaffApiFp = function (configuration) {
7385
+ const localVarAxiosParamCreator = SportsStaffApiAxiosParamCreator(configuration);
7386
+ return {
7387
+ /**
7388
+ * Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
7389
+ * @param {*} [options] Override http request option.
7390
+ * @throws {RequiredError}
7391
+ */
7392
+ getAllSports(options) {
7393
+ return __awaiter(this, void 0, void 0, function* () {
7394
+ var _a, _b, _c;
7395
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllSports(options);
7396
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7397
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SportsStaffApi.getAllSports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7398
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7399
+ });
7400
+ },
7401
+ };
7402
+ };
7403
+ /**
7404
+ * SportsStaffApi - factory interface
7405
+ * @export
7406
+ */
7407
+ export const SportsStaffApiFactory = function (configuration, basePath, axios) {
7408
+ const localVarFp = SportsStaffApiFp(configuration);
7409
+ return {
7410
+ /**
7411
+ * Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
7412
+ * @param {*} [options] Override http request option.
7413
+ * @throws {RequiredError}
7414
+ */
7415
+ getAllSports(options) {
7416
+ return localVarFp.getAllSports(options).then((request) => request(axios, basePath));
7417
+ },
7418
+ };
7419
+ };
7420
+ /**
7421
+ * SportsStaffApi - object-oriented interface
7422
+ * @export
7423
+ * @class SportsStaffApi
7424
+ * @extends {BaseAPI}
7425
+ */
7426
+ export class SportsStaffApi extends BaseAPI {
7427
+ /**
7428
+ * Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
7429
+ * @param {*} [options] Override http request option.
7430
+ * @throws {RequiredError}
7431
+ * @memberof SportsStaffApi
7432
+ */
7433
+ getAllSports(options) {
7434
+ return SportsStaffApiFp(this.configuration).getAllSports(options).then((request) => request(this.axios, this.basePath));
7435
+ }
7436
+ }
7373
7437
  /**
7374
7438
  * SubscriptionsManagerApi - axios parameter creator
7375
7439
  * @export
@@ -8515,6 +8579,33 @@ export const UsersApiAxiosParamCreator = function (configuration) {
8515
8579
  options: localVarRequestOptions,
8516
8580
  };
8517
8581
  }),
8582
+ /**
8583
+ * Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
8584
+ * @param {*} [options] Override http request option.
8585
+ * @throws {RequiredError}
8586
+ */
8587
+ getMyClubMemberships: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
8588
+ const localVarPath = `/api/users/me/club-memberships`;
8589
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8590
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8591
+ let baseOptions;
8592
+ if (configuration) {
8593
+ baseOptions = configuration.baseOptions;
8594
+ }
8595
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8596
+ const localVarHeaderParameter = {};
8597
+ const localVarQueryParameter = {};
8598
+ // authentication bearerAuth required
8599
+ // http bearer authentication required
8600
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
8601
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8602
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8603
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8604
+ return {
8605
+ url: toPathString(localVarUrlObj),
8606
+ options: localVarRequestOptions,
8607
+ };
8608
+ }),
8518
8609
  /**
8519
8610
  *
8520
8611
  * @param {number} [radiusInKm]
@@ -9474,6 +9565,20 @@ export const UsersApiFp = function (configuration) {
9474
9565
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9475
9566
  });
9476
9567
  },
9568
+ /**
9569
+ * Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
9570
+ * @param {*} [options] Override http request option.
9571
+ * @throws {RequiredError}
9572
+ */
9573
+ getMyClubMemberships(options) {
9574
+ return __awaiter(this, void 0, void 0, function* () {
9575
+ var _a, _b, _c;
9576
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMyClubMemberships(options);
9577
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9578
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getMyClubMemberships']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9579
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9580
+ });
9581
+ },
9477
9582
  /**
9478
9583
  *
9479
9584
  * @param {number} [radiusInKm]
@@ -9952,6 +10057,14 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
9952
10057
  getMe(options) {
9953
10058
  return localVarFp.getMe(options).then((request) => request(axios, basePath));
9954
10059
  },
10060
+ /**
10061
+ * Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
10062
+ * @param {*} [options] Override http request option.
10063
+ * @throws {RequiredError}
10064
+ */
10065
+ getMyClubMemberships(options) {
10066
+ return localVarFp.getMyClubMemberships(options).then((request) => request(axios, basePath));
10067
+ },
9955
10068
  /**
9956
10069
  *
9957
10070
  * @param {UsersApiGetNearestClubsRequest} requestParameters Request parameters.
@@ -10279,6 +10392,15 @@ export class UsersApi extends BaseAPI {
10279
10392
  getMe(options) {
10280
10393
  return UsersApiFp(this.configuration).getMe(options).then((request) => request(this.axios, this.basePath));
10281
10394
  }
10395
+ /**
10396
+ * Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
10397
+ * @param {*} [options] Override http request option.
10398
+ * @throws {RequiredError}
10399
+ * @memberof UsersApi
10400
+ */
10401
+ getMyClubMemberships(options) {
10402
+ return UsersApiFp(this.configuration).getMyClubMemberships(options).then((request) => request(this.axios, this.basePath));
10403
+ }
10282
10404
  /**
10283
10405
  *
10284
10406
  * @param {UsersApiGetNearestClubsRequest} requestParameters Request parameters.