@tennac-booking/sdk 1.0.76 → 1.0.79

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 (44) hide show
  1. package/.openapi-generator/FILES +6 -16
  2. package/README.md +6 -22
  3. package/api.ts +504 -1246
  4. package/dist/api.d.ts +319 -898
  5. package/dist/api.js +161 -395
  6. package/dist/esm/api.d.ts +319 -898
  7. package/dist/esm/api.js +156 -394
  8. package/docs/BookingInfo.md +2 -2
  9. package/docs/BookingPopulated.md +2 -0
  10. package/docs/{AddPaymentMethodRequestBody.md → BookingPriceBody.md} +7 -5
  11. package/docs/BookingResponse.md +2 -0
  12. package/docs/BookingsApi.md +52 -0
  13. package/docs/ClubAnalyticsStaffApi.md +0 -167
  14. package/docs/ClubResponse.md +8 -0
  15. package/docs/ClubSettingsResponse.md +0 -2
  16. package/docs/CreateBookingRequest.md +2 -2
  17. package/docs/CreateEventRequest.md +0 -2
  18. package/docs/IUserAttributes.md +2 -12
  19. package/docs/PartialClubResponse.md +8 -0
  20. package/docs/PlayerPrice.md +30 -0
  21. package/docs/{SetupPaymentMethodRequestBody.md → QuickReservationClubSport.md} +7 -5
  22. package/docs/QuickReservationClubSummary.md +4 -0
  23. package/docs/SlotInfo.md +2 -2
  24. package/docs/SportsPublicApi.md +53 -0
  25. package/docs/StaffUserProfileResponse.md +2 -12
  26. package/docs/SubscribeRequestBody.md +2 -0
  27. package/docs/SubscriptionInfo.md +24 -0
  28. package/docs/UserProfileResponse.md +4 -12
  29. package/docs/UsersApi.md +0 -156
  30. package/package.json +1 -1
  31. package/docs/ClubPlayerBookingItem.md +0 -36
  32. package/docs/ClubPlayerBookingsResponse.md +0 -22
  33. package/docs/ClubPlayerDetailResponse.md +0 -46
  34. package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +0 -22
  35. package/docs/ClubPlayerStatisticsResponse.md +0 -42
  36. package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +0 -22
  37. package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +0 -23
  38. package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +0 -25
  39. package/docs/ClubPlayerStatisticsResponseMostPlayedPartnersInner.md +0 -26
  40. package/docs/ClubPlayerSubscriptionSummary.md +0 -28
  41. package/docs/ConfirmPaymentMethodRequestBody.md +0 -20
  42. package/docs/ConfirmPaymentMethodResponse.md +0 -22
  43. package/docs/PaymentMethodSetupResponse.md +0 -24
  44. package/docs/SetupPaymentMethodResponse.md +0 -24
package/dist/esm/api.js CHANGED
@@ -364,6 +364,38 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
364
364
  options: localVarRequestOptions,
365
365
  };
366
366
  }),
367
+ /**
368
+ *
369
+ * @param {BookingPriceBody} bookingPriceBody
370
+ * @param {*} [options] Override http request option.
371
+ * @throws {RequiredError}
372
+ */
373
+ getBookingPrice: (bookingPriceBody_1, ...args_1) => __awaiter(this, [bookingPriceBody_1, ...args_1], void 0, function* (bookingPriceBody, options = {}) {
374
+ // verify required parameter 'bookingPriceBody' is not null or undefined
375
+ assertParamExists('getBookingPrice', 'bookingPriceBody', bookingPriceBody);
376
+ const localVarPath = `/api/bookings/booking-price`;
377
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
378
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
379
+ let baseOptions;
380
+ if (configuration) {
381
+ baseOptions = configuration.baseOptions;
382
+ }
383
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
384
+ const localVarHeaderParameter = {};
385
+ const localVarQueryParameter = {};
386
+ // authentication bearerAuth required
387
+ // http bearer authentication required
388
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
389
+ localVarHeaderParameter['Content-Type'] = 'application/json';
390
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
391
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
392
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
393
+ localVarRequestOptions.data = serializeDataIfNeeded(bookingPriceBody, localVarRequestOptions, configuration);
394
+ return {
395
+ url: toPathString(localVarUrlObj),
396
+ options: localVarRequestOptions,
397
+ };
398
+ }),
367
399
  /**
368
400
  * Recherche des créneaux disponibles pour une réservation rapide
369
401
  * @param {number} [latitude]
@@ -415,7 +447,7 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
415
447
  localVarQueryParameter['courtTypes'] = courtTypes;
416
448
  }
417
449
  if (limitPerClub !== undefined) {
418
- localVarQueryParameter['limitPerClub'] = limitPerClub;
450
+ localVarQueryParameter['_limitPerClub'] = limitPerClub;
419
451
  }
420
452
  if (maxClubs !== undefined) {
421
453
  localVarQueryParameter['maxClubs'] = maxClubs;
@@ -452,6 +484,21 @@ export const BookingsApiFp = function (configuration) {
452
484
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
453
485
  });
454
486
  },
487
+ /**
488
+ *
489
+ * @param {BookingPriceBody} bookingPriceBody
490
+ * @param {*} [options] Override http request option.
491
+ * @throws {RequiredError}
492
+ */
493
+ getBookingPrice(bookingPriceBody, options) {
494
+ return __awaiter(this, void 0, void 0, function* () {
495
+ var _a, _b, _c;
496
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingPrice(bookingPriceBody, options);
497
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
498
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getBookingPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
499
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
500
+ });
501
+ },
455
502
  /**
456
503
  * Recherche des créneaux disponibles pour une réservation rapide
457
504
  * @param {number} [latitude]
@@ -494,6 +541,15 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
494
541
  getBookingHistory(requestParameters, options) {
495
542
  return localVarFp.getBookingHistory(requestParameters.bookingId, options).then((request) => request(axios, basePath));
496
543
  },
544
+ /**
545
+ *
546
+ * @param {BookingsApiGetBookingPriceRequest} requestParameters Request parameters.
547
+ * @param {*} [options] Override http request option.
548
+ * @throws {RequiredError}
549
+ */
550
+ getBookingPrice(requestParameters, options) {
551
+ return localVarFp.getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(axios, basePath));
552
+ },
497
553
  /**
498
554
  * Recherche des créneaux disponibles pour une réservation rapide
499
555
  * @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
@@ -522,6 +578,16 @@ export class BookingsApi extends BaseAPI {
522
578
  getBookingHistory(requestParameters, options) {
523
579
  return BookingsApiFp(this.configuration).getBookingHistory(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
524
580
  }
581
+ /**
582
+ *
583
+ * @param {BookingsApiGetBookingPriceRequest} requestParameters Request parameters.
584
+ * @param {*} [options] Override http request option.
585
+ * @throws {RequiredError}
586
+ * @memberof BookingsApi
587
+ */
588
+ getBookingPrice(requestParameters, options) {
589
+ return BookingsApiFp(this.configuration).getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(this.axios, this.basePath));
590
+ }
525
591
  /**
526
592
  * Recherche des créneaux disponibles pour une réservation rapide
527
593
  * @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
@@ -1485,99 +1551,6 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1485
1551
  options: localVarRequestOptions,
1486
1552
  };
1487
1553
  }),
1488
- /**
1489
- * Récupère les réservations d\'un joueur par son ID (à venir et passées)
1490
- * @param {string} playerId
1491
- * @param {*} [options] Override http request option.
1492
- * @throws {RequiredError}
1493
- */
1494
- getClubPlayerBookingsById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
1495
- // verify required parameter 'playerId' is not null or undefined
1496
- assertParamExists('getClubPlayerBookingsById', 'playerId', playerId);
1497
- const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
1498
- .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
1499
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1500
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1501
- let baseOptions;
1502
- if (configuration) {
1503
- baseOptions = configuration.baseOptions;
1504
- }
1505
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1506
- const localVarHeaderParameter = {};
1507
- const localVarQueryParameter = {};
1508
- // authentication bearerAuth required
1509
- // http bearer authentication required
1510
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1511
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1512
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1513
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1514
- return {
1515
- url: toPathString(localVarUrlObj),
1516
- options: localVarRequestOptions,
1517
- };
1518
- }),
1519
- /**
1520
- * Récupère les informations détaillées d\'un joueur par son ID
1521
- * @param {string} playerId
1522
- * @param {*} [options] Override http request option.
1523
- * @throws {RequiredError}
1524
- */
1525
- getClubPlayerById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
1526
- // verify required parameter 'playerId' is not null or undefined
1527
- assertParamExists('getClubPlayerById', 'playerId', playerId);
1528
- const localVarPath = `/api/club-analytics/players/{playerId}`
1529
- .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
1530
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1531
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1532
- let baseOptions;
1533
- if (configuration) {
1534
- baseOptions = configuration.baseOptions;
1535
- }
1536
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1537
- const localVarHeaderParameter = {};
1538
- const localVarQueryParameter = {};
1539
- // authentication bearerAuth required
1540
- // http bearer authentication required
1541
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1542
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1543
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1544
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1545
- return {
1546
- url: toPathString(localVarUrlObj),
1547
- options: localVarRequestOptions,
1548
- };
1549
- }),
1550
- /**
1551
- * Récupère les statistiques d\'un joueur pour le staff
1552
- * @param {string} playerId
1553
- * @param {*} [options] Override http request option.
1554
- * @throws {RequiredError}
1555
- */
1556
- getClubPlayerStatisticsById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
1557
- // verify required parameter 'playerId' is not null or undefined
1558
- assertParamExists('getClubPlayerStatisticsById', 'playerId', playerId);
1559
- const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
1560
- .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
1561
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1562
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1563
- let baseOptions;
1564
- if (configuration) {
1565
- baseOptions = configuration.baseOptions;
1566
- }
1567
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1568
- const localVarHeaderParameter = {};
1569
- const localVarQueryParameter = {};
1570
- // authentication bearerAuth required
1571
- // http bearer authentication required
1572
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1573
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1574
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1575
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1576
- return {
1577
- url: toPathString(localVarUrlObj),
1578
- options: localVarRequestOptions,
1579
- };
1580
- }),
1581
1554
  /**
1582
1555
  * Récupère la liste des joueurs du club
1583
1556
  * @param {*} [options] Override http request option.
@@ -1877,51 +1850,6 @@ export const ClubAnalyticsStaffApiFp = function (configuration) {
1877
1850
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1878
1851
  });
1879
1852
  },
1880
- /**
1881
- * Récupère les réservations d\'un joueur par son ID (à venir et passées)
1882
- * @param {string} playerId
1883
- * @param {*} [options] Override http request option.
1884
- * @throws {RequiredError}
1885
- */
1886
- getClubPlayerBookingsById(playerId, options) {
1887
- return __awaiter(this, void 0, void 0, function* () {
1888
- var _a, _b, _c;
1889
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerBookingsById(playerId, options);
1890
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1891
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getClubPlayerBookingsById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1892
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1893
- });
1894
- },
1895
- /**
1896
- * Récupère les informations détaillées d\'un joueur par son ID
1897
- * @param {string} playerId
1898
- * @param {*} [options] Override http request option.
1899
- * @throws {RequiredError}
1900
- */
1901
- getClubPlayerById(playerId, options) {
1902
- return __awaiter(this, void 0, void 0, function* () {
1903
- var _a, _b, _c;
1904
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerById(playerId, options);
1905
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1906
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getClubPlayerById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1907
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1908
- });
1909
- },
1910
- /**
1911
- * Récupère les statistiques d\'un joueur pour le staff
1912
- * @param {string} playerId
1913
- * @param {*} [options] Override http request option.
1914
- * @throws {RequiredError}
1915
- */
1916
- getClubPlayerStatisticsById(playerId, options) {
1917
- return __awaiter(this, void 0, void 0, function* () {
1918
- var _a, _b, _c;
1919
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerStatisticsById(playerId, options);
1920
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1921
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ClubAnalyticsStaffApi.getClubPlayerStatisticsById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1922
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1923
- });
1924
- },
1925
1853
  /**
1926
1854
  * Récupère la liste des joueurs du club
1927
1855
  * @param {*} [options] Override http request option.
@@ -2072,33 +2000,6 @@ export const ClubAnalyticsStaffApiFactory = function (configuration, basePath, a
2072
2000
  getAnalyticsBySport(requestParameters, options) {
2073
2001
  return localVarFp.getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(axios, basePath));
2074
2002
  },
2075
- /**
2076
- * Récupère les réservations d\'un joueur par son ID (à venir et passées)
2077
- * @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
2078
- * @param {*} [options] Override http request option.
2079
- * @throws {RequiredError}
2080
- */
2081
- getClubPlayerBookingsById(requestParameters, options) {
2082
- return localVarFp.getClubPlayerBookingsById(requestParameters.playerId, options).then((request) => request(axios, basePath));
2083
- },
2084
- /**
2085
- * Récupère les informations détaillées d\'un joueur par son ID
2086
- * @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
2087
- * @param {*} [options] Override http request option.
2088
- * @throws {RequiredError}
2089
- */
2090
- getClubPlayerById(requestParameters, options) {
2091
- return localVarFp.getClubPlayerById(requestParameters.playerId, options).then((request) => request(axios, basePath));
2092
- },
2093
- /**
2094
- * Récupère les statistiques d\'un joueur pour le staff
2095
- * @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
2096
- * @param {*} [options] Override http request option.
2097
- * @throws {RequiredError}
2098
- */
2099
- getClubPlayerStatisticsById(requestParameters, options) {
2100
- return localVarFp.getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(axios, basePath));
2101
- },
2102
2003
  /**
2103
2004
  * Récupère la liste des joueurs du club
2104
2005
  * @param {*} [options] Override http request option.
@@ -2194,36 +2095,6 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
2194
2095
  getAnalyticsBySport(requestParameters, options) {
2195
2096
  return ClubAnalyticsStaffApiFp(this.configuration).getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
2196
2097
  }
2197
- /**
2198
- * Récupère les réservations d\'un joueur par son ID (à venir et passées)
2199
- * @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
2200
- * @param {*} [options] Override http request option.
2201
- * @throws {RequiredError}
2202
- * @memberof ClubAnalyticsStaffApi
2203
- */
2204
- getClubPlayerBookingsById(requestParameters, options) {
2205
- return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayerBookingsById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
2206
- }
2207
- /**
2208
- * Récupère les informations détaillées d\'un joueur par son ID
2209
- * @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
2210
- * @param {*} [options] Override http request option.
2211
- * @throws {RequiredError}
2212
- * @memberof ClubAnalyticsStaffApi
2213
- */
2214
- getClubPlayerById(requestParameters, options) {
2215
- return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayerById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
2216
- }
2217
- /**
2218
- * Récupère les statistiques d\'un joueur pour le staff
2219
- * @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
2220
- * @param {*} [options] Override http request option.
2221
- * @throws {RequiredError}
2222
- * @memberof ClubAnalyticsStaffApi
2223
- */
2224
- getClubPlayerStatisticsById(requestParameters, options) {
2225
- return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
2226
- }
2227
2098
  /**
2228
2099
  * Récupère la liste des joueurs du club
2229
2100
  * @param {*} [options] Override http request option.
@@ -6610,6 +6481,95 @@ export class SportsManagerApi extends BaseAPI {
6610
6481
  return SportsManagerApiFp(this.configuration).updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(this.axios, this.basePath));
6611
6482
  }
6612
6483
  }
6484
+ /**
6485
+ * SportsPublicApi - axios parameter creator
6486
+ * @export
6487
+ */
6488
+ export const SportsPublicApiAxiosParamCreator = function (configuration) {
6489
+ return {
6490
+ /**
6491
+ * Récupère tous les sports vérifiés, accessibles publiquement
6492
+ * @param {*} [options] Override http request option.
6493
+ * @throws {RequiredError}
6494
+ */
6495
+ getVerifiedSports: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6496
+ const localVarPath = `/api/sports/verified`;
6497
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6498
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6499
+ let baseOptions;
6500
+ if (configuration) {
6501
+ baseOptions = configuration.baseOptions;
6502
+ }
6503
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6504
+ const localVarHeaderParameter = {};
6505
+ const localVarQueryParameter = {};
6506
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6507
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6508
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6509
+ return {
6510
+ url: toPathString(localVarUrlObj),
6511
+ options: localVarRequestOptions,
6512
+ };
6513
+ }),
6514
+ };
6515
+ };
6516
+ /**
6517
+ * SportsPublicApi - functional programming interface
6518
+ * @export
6519
+ */
6520
+ export const SportsPublicApiFp = function (configuration) {
6521
+ const localVarAxiosParamCreator = SportsPublicApiAxiosParamCreator(configuration);
6522
+ return {
6523
+ /**
6524
+ * Récupère tous les sports vérifiés, accessibles publiquement
6525
+ * @param {*} [options] Override http request option.
6526
+ * @throws {RequiredError}
6527
+ */
6528
+ getVerifiedSports(options) {
6529
+ return __awaiter(this, void 0, void 0, function* () {
6530
+ var _a, _b, _c;
6531
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getVerifiedSports(options);
6532
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6533
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SportsPublicApi.getVerifiedSports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6534
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6535
+ });
6536
+ },
6537
+ };
6538
+ };
6539
+ /**
6540
+ * SportsPublicApi - factory interface
6541
+ * @export
6542
+ */
6543
+ export const SportsPublicApiFactory = function (configuration, basePath, axios) {
6544
+ const localVarFp = SportsPublicApiFp(configuration);
6545
+ return {
6546
+ /**
6547
+ * Récupère tous les sports vérifiés, accessibles publiquement
6548
+ * @param {*} [options] Override http request option.
6549
+ * @throws {RequiredError}
6550
+ */
6551
+ getVerifiedSports(options) {
6552
+ return localVarFp.getVerifiedSports(options).then((request) => request(axios, basePath));
6553
+ },
6554
+ };
6555
+ };
6556
+ /**
6557
+ * SportsPublicApi - object-oriented interface
6558
+ * @export
6559
+ * @class SportsPublicApi
6560
+ * @extends {BaseAPI}
6561
+ */
6562
+ export class SportsPublicApi extends BaseAPI {
6563
+ /**
6564
+ * Récupère tous les sports vérifiés, accessibles publiquement
6565
+ * @param {*} [options] Override http request option.
6566
+ * @throws {RequiredError}
6567
+ * @memberof SportsPublicApi
6568
+ */
6569
+ getVerifiedSports(options) {
6570
+ return SportsPublicApiFp(this.configuration).getVerifiedSports(options).then((request) => request(this.axios, this.basePath));
6571
+ }
6572
+ }
6613
6573
  /**
6614
6574
  * SportsStaffApi - axios parameter creator
6615
6575
  * @export
@@ -7521,38 +7481,6 @@ export const UsersApiAxiosParamCreator = function (configuration) {
7521
7481
  options: localVarRequestOptions,
7522
7482
  };
7523
7483
  }),
7524
- /**
7525
- *
7526
- * @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
7527
- * @param {*} [options] Override http request option.
7528
- * @throws {RequiredError}
7529
- */
7530
- addPaymentMethodSetup: (addPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [addPaymentMethodRequestBody_1, ...args_1], void 0, function* (addPaymentMethodRequestBody, options = {}) {
7531
- // verify required parameter 'addPaymentMethodRequestBody' is not null or undefined
7532
- assertParamExists('addPaymentMethodSetup', 'addPaymentMethodRequestBody', addPaymentMethodRequestBody);
7533
- const localVarPath = `/api/users/addPaymentMethodSetup`;
7534
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
7535
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7536
- let baseOptions;
7537
- if (configuration) {
7538
- baseOptions = configuration.baseOptions;
7539
- }
7540
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
7541
- const localVarHeaderParameter = {};
7542
- const localVarQueryParameter = {};
7543
- // authentication bearerAuth required
7544
- // http bearer authentication required
7545
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7546
- localVarHeaderParameter['Content-Type'] = 'application/json';
7547
- setSearchParams(localVarUrlObj, localVarQueryParameter);
7548
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7549
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7550
- localVarRequestOptions.data = serializeDataIfNeeded(addPaymentMethodRequestBody, localVarRequestOptions, configuration);
7551
- return {
7552
- url: toPathString(localVarUrlObj),
7553
- options: localVarRequestOptions,
7554
- };
7555
- }),
7556
7484
  /**
7557
7485
  *
7558
7486
  * @param {ChangePasswordRequestBody} changePasswordRequestBody
@@ -7585,38 +7513,6 @@ export const UsersApiAxiosParamCreator = function (configuration) {
7585
7513
  options: localVarRequestOptions,
7586
7514
  };
7587
7515
  }),
7588
- /**
7589
- *
7590
- * @param {ConfirmPaymentMethodRequestBody} confirmPaymentMethodRequestBody
7591
- * @param {*} [options] Override http request option.
7592
- * @throws {RequiredError}
7593
- */
7594
- confirmPaymentMethodSetup: (confirmPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [confirmPaymentMethodRequestBody_1, ...args_1], void 0, function* (confirmPaymentMethodRequestBody, options = {}) {
7595
- // verify required parameter 'confirmPaymentMethodRequestBody' is not null or undefined
7596
- assertParamExists('confirmPaymentMethodSetup', 'confirmPaymentMethodRequestBody', confirmPaymentMethodRequestBody);
7597
- const localVarPath = `/api/users/confirmPaymentMethodSetup`;
7598
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
7599
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7600
- let baseOptions;
7601
- if (configuration) {
7602
- baseOptions = configuration.baseOptions;
7603
- }
7604
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
7605
- const localVarHeaderParameter = {};
7606
- const localVarQueryParameter = {};
7607
- // authentication bearerAuth required
7608
- // http bearer authentication required
7609
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7610
- localVarHeaderParameter['Content-Type'] = 'application/json';
7611
- setSearchParams(localVarUrlObj, localVarQueryParameter);
7612
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7613
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7614
- localVarRequestOptions.data = serializeDataIfNeeded(confirmPaymentMethodRequestBody, localVarRequestOptions, configuration);
7615
- return {
7616
- url: toPathString(localVarUrlObj),
7617
- options: localVarRequestOptions,
7618
- };
7619
- }),
7620
7516
  /**
7621
7517
  *
7622
7518
  * @param {*} [options] Override http request option.
@@ -8386,38 +8282,6 @@ export const UsersApiAxiosParamCreator = function (configuration) {
8386
8282
  options: localVarRequestOptions,
8387
8283
  };
8388
8284
  }),
8389
- /**
8390
- *
8391
- * @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
8392
- * @param {*} [options] Override http request option.
8393
- * @throws {RequiredError}
8394
- */
8395
- setupOffSessionPaymentMethod: (setupPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [setupPaymentMethodRequestBody_1, ...args_1], void 0, function* (setupPaymentMethodRequestBody, options = {}) {
8396
- // verify required parameter 'setupPaymentMethodRequestBody' is not null or undefined
8397
- assertParamExists('setupOffSessionPaymentMethod', 'setupPaymentMethodRequestBody', setupPaymentMethodRequestBody);
8398
- const localVarPath = `/api/users/setupOffSessionPaymentMethod`;
8399
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
8400
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8401
- let baseOptions;
8402
- if (configuration) {
8403
- baseOptions = configuration.baseOptions;
8404
- }
8405
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
8406
- const localVarHeaderParameter = {};
8407
- const localVarQueryParameter = {};
8408
- // authentication bearerAuth required
8409
- // http bearer authentication required
8410
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
8411
- localVarHeaderParameter['Content-Type'] = 'application/json';
8412
- setSearchParams(localVarUrlObj, localVarQueryParameter);
8413
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8414
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8415
- localVarRequestOptions.data = serializeDataIfNeeded(setupPaymentMethodRequestBody, localVarRequestOptions, configuration);
8416
- return {
8417
- url: toPathString(localVarUrlObj),
8418
- options: localVarRequestOptions,
8419
- };
8420
- }),
8421
8285
  /**
8422
8286
  *
8423
8287
  * @param {GoogleAuthRequestBody} googleAuthRequestBody
@@ -8687,21 +8551,6 @@ export const UsersApiFp = function (configuration) {
8687
8551
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8688
8552
  });
8689
8553
  },
8690
- /**
8691
- *
8692
- * @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
8693
- * @param {*} [options] Override http request option.
8694
- * @throws {RequiredError}
8695
- */
8696
- addPaymentMethodSetup(addPaymentMethodRequestBody, options) {
8697
- return __awaiter(this, void 0, void 0, function* () {
8698
- var _a, _b, _c;
8699
- const localVarAxiosArgs = yield localVarAxiosParamCreator.addPaymentMethodSetup(addPaymentMethodRequestBody, options);
8700
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8701
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.addPaymentMethodSetup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8702
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8703
- });
8704
- },
8705
8554
  /**
8706
8555
  *
8707
8556
  * @param {ChangePasswordRequestBody} changePasswordRequestBody
@@ -8717,21 +8566,6 @@ export const UsersApiFp = function (configuration) {
8717
8566
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8718
8567
  });
8719
8568
  },
8720
- /**
8721
- *
8722
- * @param {ConfirmPaymentMethodRequestBody} confirmPaymentMethodRequestBody
8723
- * @param {*} [options] Override http request option.
8724
- * @throws {RequiredError}
8725
- */
8726
- confirmPaymentMethodSetup(confirmPaymentMethodRequestBody, options) {
8727
- return __awaiter(this, void 0, void 0, function* () {
8728
- var _a, _b, _c;
8729
- const localVarAxiosArgs = yield localVarAxiosParamCreator.confirmPaymentMethodSetup(confirmPaymentMethodRequestBody, options);
8730
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8731
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.confirmPaymentMethodSetup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8732
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8733
- });
8734
- },
8735
8569
  /**
8736
8570
  *
8737
8571
  * @param {*} [options] Override http request option.
@@ -9102,21 +8936,6 @@ export const UsersApiFp = function (configuration) {
9102
8936
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9103
8937
  });
9104
8938
  },
9105
- /**
9106
- *
9107
- * @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
9108
- * @param {*} [options] Override http request option.
9109
- * @throws {RequiredError}
9110
- */
9111
- setupOffSessionPaymentMethod(setupPaymentMethodRequestBody, options) {
9112
- return __awaiter(this, void 0, void 0, function* () {
9113
- var _a, _b, _c;
9114
- const localVarAxiosArgs = yield localVarAxiosParamCreator.setupOffSessionPaymentMethod(setupPaymentMethodRequestBody, options);
9115
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9116
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.setupOffSessionPaymentMethod']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9117
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9118
- });
9119
- },
9120
8939
  /**
9121
8940
  *
9122
8941
  * @param {GoogleAuthRequestBody} googleAuthRequestBody
@@ -9258,15 +9077,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
9258
9077
  addOrganization(requestParameters, options) {
9259
9078
  return localVarFp.addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(axios, basePath));
9260
9079
  },
9261
- /**
9262
- *
9263
- * @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
9264
- * @param {*} [options] Override http request option.
9265
- * @throws {RequiredError}
9266
- */
9267
- addPaymentMethodSetup(requestParameters, options) {
9268
- return localVarFp.addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
9269
- },
9270
9080
  /**
9271
9081
  *
9272
9082
  * @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
@@ -9276,15 +9086,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
9276
9086
  changePassword(requestParameters, options) {
9277
9087
  return localVarFp.changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(axios, basePath));
9278
9088
  },
9279
- /**
9280
- *
9281
- * @param {UsersApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
9282
- * @param {*} [options] Override http request option.
9283
- * @throws {RequiredError}
9284
- */
9285
- confirmPaymentMethodSetup(requestParameters, options) {
9286
- return localVarFp.confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
9287
- },
9288
9089
  /**
9289
9090
  *
9290
9091
  * @param {*} [options] Override http request option.
@@ -9493,15 +9294,6 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
9493
9294
  resetPassword(requestParameters, options) {
9494
9295
  return localVarFp.resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(axios, basePath));
9495
9296
  },
9496
- /**
9497
- *
9498
- * @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
9499
- * @param {*} [options] Override http request option.
9500
- * @throws {RequiredError}
9501
- */
9502
- setupOffSessionPaymentMethod(requestParameters, options) {
9503
- return localVarFp.setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
9504
- },
9505
9297
  /**
9506
9298
  *
9507
9299
  * @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
@@ -9604,16 +9396,6 @@ export class UsersApi extends BaseAPI {
9604
9396
  addOrganization(requestParameters, options) {
9605
9397
  return UsersApiFp(this.configuration).addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
9606
9398
  }
9607
- /**
9608
- *
9609
- * @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
9610
- * @param {*} [options] Override http request option.
9611
- * @throws {RequiredError}
9612
- * @memberof UsersApi
9613
- */
9614
- addPaymentMethodSetup(requestParameters, options) {
9615
- return UsersApiFp(this.configuration).addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
9616
- }
9617
9399
  /**
9618
9400
  *
9619
9401
  * @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
@@ -9624,16 +9406,6 @@ export class UsersApi extends BaseAPI {
9624
9406
  changePassword(requestParameters, options) {
9625
9407
  return UsersApiFp(this.configuration).changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(this.axios, this.basePath));
9626
9408
  }
9627
- /**
9628
- *
9629
- * @param {UsersApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
9630
- * @param {*} [options] Override http request option.
9631
- * @throws {RequiredError}
9632
- * @memberof UsersApi
9633
- */
9634
- confirmPaymentMethodSetup(requestParameters, options) {
9635
- return UsersApiFp(this.configuration).confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
9636
- }
9637
9409
  /**
9638
9410
  *
9639
9411
  * @param {*} [options] Override http request option.
@@ -9866,16 +9638,6 @@ export class UsersApi extends BaseAPI {
9866
9638
  resetPassword(requestParameters, options) {
9867
9639
  return UsersApiFp(this.configuration).resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
9868
9640
  }
9869
- /**
9870
- *
9871
- * @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
9872
- * @param {*} [options] Override http request option.
9873
- * @throws {RequiredError}
9874
- * @memberof UsersApi
9875
- */
9876
- setupOffSessionPaymentMethod(requestParameters, options) {
9877
- return UsersApiFp(this.configuration).setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
9878
- }
9879
9641
  /**
9880
9642
  *
9881
9643
  * @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.