@tennac-booking/sdk 1.0.82 → 1.0.84

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 (72) hide show
  1. package/.openapi-generator/FILES +13 -17
  2. package/README.md +16 -25
  3. package/api.ts +1054 -1457
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +831 -1086
  8. package/dist/api.js +189 -403
  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 +831 -1086
  16. package/dist/esm/api.js +182 -400
  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/BookingClubInfo.md +28 -0
  28. package/docs/{SetupPaymentMethodRequestBody.md → BookingCourtInfo.md} +7 -5
  29. package/docs/BookingInfo.md +2 -2
  30. package/docs/BookingPaymentStatus.md +24 -0
  31. package/docs/BookingPlayerPaymentSummary.md +34 -0
  32. package/docs/BookingPopulated.md +2 -0
  33. package/docs/{ConfirmPaymentMethodRequestBody.md → BookingPriceBody.md} +7 -5
  34. package/docs/BookingResponse.md +2 -0
  35. package/docs/BookingSlotInfo.md +30 -0
  36. package/docs/{AddPaymentMethodRequestBody.md → BookingSportInfo.md} +7 -5
  37. package/docs/BookingSummary.md +54 -2
  38. package/docs/BookingsApi.md +55 -0
  39. package/docs/ClubAnalyticsStaffApi.md +0 -167
  40. package/docs/ClubResponse.md +8 -0
  41. package/docs/ClubSettingsResponse.md +0 -2
  42. package/docs/CreateBookingRequest.md +2 -2
  43. package/docs/CreateEventRequest.md +0 -2
  44. package/docs/IUserAttributes.md +2 -12
  45. package/docs/InvoiceStatus.md +22 -0
  46. package/docs/PartialClubResponse.md +8 -0
  47. package/docs/PlayerPrice.md +30 -0
  48. package/docs/{ConfirmPaymentMethodResponse.md → QuickReservationClubSport.md} +7 -7
  49. package/docs/QuickReservationClubSummary.md +4 -0
  50. package/docs/SlotInfo.md +2 -2
  51. package/docs/SportsPublicApi.md +53 -0
  52. package/docs/StaffUserProfileResponse.md +2 -12
  53. package/docs/SubscribeRequestBody.md +2 -0
  54. package/docs/SubscriptionInfo.md +24 -0
  55. package/docs/UserBookingsResponse.md +28 -0
  56. package/docs/UserProfileResponse.md +4 -12
  57. package/docs/UsersApi.md +4 -160
  58. package/index.ts +1 -1
  59. package/package.json +1 -1
  60. package/docs/BookingDetailResponse.md +0 -46
  61. package/docs/ClubPlayerBookingItem.md +0 -36
  62. package/docs/ClubPlayerBookingsResponse.md +0 -22
  63. package/docs/ClubPlayerDetailResponse.md +0 -46
  64. package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +0 -22
  65. package/docs/ClubPlayerStatisticsResponse.md +0 -42
  66. package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +0 -22
  67. package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +0 -23
  68. package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +0 -25
  69. package/docs/ClubPlayerStatisticsResponseMostPlayedPartnersInner.md +0 -26
  70. package/docs/ClubPlayerSubscriptionSummary.md +0 -28
  71. package/docs/PaymentMethodSetupResponse.md +0 -24
  72. package/docs/SetupPaymentMethodResponse.md +0 -24
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.77
8
+ * The version of the OpenAPI document: 1.0.75
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,9 +22,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.UserLocationSummaryTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.SurfaceType = exports.StripeStripeTaxCodeObjectEnum = exports.StripeStripeResponseStripeStripePriceObjectEnum = exports.StripeStripeProductType = exports.StripeStripeProductTaxCodeObjectEnum = exports.StripeStripeProductDefaultPriceObjectEnum = exports.StripeStripeProductObjectEnum = exports.StripeStripePriceType = exports.StripeStripePriceTransformQuantityRound = exports.StripeStripePriceTiersMode = exports.StripeStripePriceTaxBehavior = exports.StripeStripePriceRecurringUsageType = exports.StripeStripePriceRecurringInterval = exports.StripeStripePriceProductObjectEnum = exports.StripeStripePriceCurrencyOptionsTaxBehavior = exports.StripeStripePriceBillingScheme = exports.StripeStripePriceObjectEnum = exports.StripeStripeDeletedProductObjectEnum = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.IUserLocationTypeEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = void 0;
26
- exports.EventsApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubAnalyticsStaffApi = exports.ClubAnalyticsStaffApiFactory = exports.ClubAnalyticsStaffApiFp = exports.ClubAnalyticsStaffApiAxiosParamCreator = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.BookingsUserApi = exports.BookingsUserApiFactory = exports.BookingsUserApiFp = exports.BookingsUserApiAxiosParamCreator = exports.BookingsStaffApi = exports.BookingsStaffApiFactory = exports.BookingsStaffApiFp = exports.BookingsStaffApiAxiosParamCreator = exports.BookingsManagerApi = exports.BookingsManagerApiFactory = exports.BookingsManagerApiFp = exports.BookingsManagerApiAxiosParamCreator = exports.BookingsApi = void 0;
27
- exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsStaffApi = exports.SportsStaffApiFactory = exports.SportsStaffApiFp = exports.SportsStaffApiAxiosParamCreator = exports.SportsManagerApi = exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.GetPublishedEventsByClubIdTypeEnum = exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = void 0;
25
+ exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.UserLocationSummaryTypeEnum = exports.UpdateEventRequestVisibilityTypeEnum = exports.UpdateEventRequestParticipationTypeEnum = exports.UpdateEventRequestRecurringTypeEnum = exports.UpdateEventRequestTypeEnum = exports.UpdateClubRoleRequestRoleEnum = exports.SurfaceType = exports.StripeStripeTaxCodeObjectEnum = exports.StripeStripeResponseStripeStripePriceObjectEnum = exports.StripeStripeProductType = exports.StripeStripeProductTaxCodeObjectEnum = exports.StripeStripeProductDefaultPriceObjectEnum = exports.StripeStripeProductObjectEnum = exports.StripeStripePriceType = exports.StripeStripePriceTransformQuantityRound = exports.StripeStripePriceTiersMode = exports.StripeStripePriceTaxBehavior = exports.StripeStripePriceRecurringUsageType = exports.StripeStripePriceRecurringInterval = exports.StripeStripePriceProductObjectEnum = exports.StripeStripePriceCurrencyOptionsTaxBehavior = exports.StripeStripePriceBillingScheme = exports.StripeStripePriceObjectEnum = exports.StripeStripeDeletedProductObjectEnum = exports.SportKey = exports.RegisterRequestBodyLocationTypeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.InvoiceStatus = exports.IUserLocationTypeEnum = exports.Gender = exports.EventResponseVisibilityTypeEnum = exports.EventResponseParticipationTypeEnum = exports.EventResponseRecurringTypeEnum = exports.EventResponseTypeEnum = exports.DiscountType = exports.CreateEventRequestVisibilityTypeEnum = exports.CreateEventRequestParticipationTypeEnum = exports.CreateEventRequestRecurringTypeEnum = exports.CreateEventRequestTypeEnum = exports.CreateClubRoleRequestRoleEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPopulatedPerformedByTypeEnum = void 0;
26
+ exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.ClubsStaffApi = exports.ClubsStaffApiFactory = exports.ClubsStaffApiFp = exports.ClubsStaffApiAxiosParamCreator = exports.ClubsManagerApi = exports.ClubsManagerApiFactory = exports.ClubsManagerApiFp = exports.ClubsManagerApiAxiosParamCreator = exports.ClubsApi = exports.ClubsApiFactory = exports.ClubsApiFp = exports.ClubsApiAxiosParamCreator = exports.ClubSettingsManagerApi = exports.ClubSettingsManagerApiFactory = exports.ClubSettingsManagerApiFp = exports.ClubSettingsManagerApiAxiosParamCreator = exports.ClubRolesStaffApi = exports.ClubRolesStaffApiFactory = exports.ClubRolesStaffApiFp = exports.ClubRolesStaffApiAxiosParamCreator = exports.ClubRolesManagerApi = exports.ClubRolesManagerApiFactory = exports.ClubRolesManagerApiFp = exports.ClubRolesManagerApiAxiosParamCreator = exports.ClubAnalyticsStaffApi = exports.ClubAnalyticsStaffApiFactory = exports.ClubAnalyticsStaffApiFp = exports.ClubAnalyticsStaffApiAxiosParamCreator = exports.ClubAnalyticsApi = exports.ClubAnalyticsApiFactory = exports.ClubAnalyticsApiFp = exports.ClubAnalyticsApiAxiosParamCreator = exports.BookingsUserApi = exports.BookingsUserApiFactory = exports.BookingsUserApiFp = exports.BookingsUserApiAxiosParamCreator = exports.BookingsStaffApi = exports.BookingsStaffApiFactory = exports.BookingsStaffApiFp = exports.BookingsStaffApiAxiosParamCreator = exports.BookingsManagerApi = exports.BookingsManagerApiFactory = exports.BookingsManagerApiFp = exports.BookingsManagerApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = void 0;
27
+ exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.SubscriptionsUserApi = exports.SubscriptionsUserApiFactory = exports.SubscriptionsUserApiFp = exports.SubscriptionsUserApiAxiosParamCreator = exports.SubscriptionsStaffApi = exports.SubscriptionsStaffApiFactory = exports.SubscriptionsStaffApiFp = exports.SubscriptionsStaffApiAxiosParamCreator = exports.SubscriptionsPublicApi = exports.SubscriptionsPublicApiFactory = exports.SubscriptionsPublicApiFp = exports.SubscriptionsPublicApiAxiosParamCreator = exports.SubscriptionsManagerApi = exports.SubscriptionsManagerApiFactory = exports.SubscriptionsManagerApiFp = exports.SubscriptionsManagerApiAxiosParamCreator = exports.SportsStaffApi = exports.SportsStaffApiFactory = exports.SportsStaffApiFp = exports.SportsStaffApiAxiosParamCreator = exports.SportsPublicApi = exports.SportsPublicApiFactory = exports.SportsPublicApiFp = exports.SportsPublicApiAxiosParamCreator = exports.SportsManagerApi = exports.SportsManagerApiFactory = exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.GetPublishedEventsByClubIdTypeEnum = exports.GetPublishedEventsByClubIdVisibilityTypeEnum = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = exports.EventsApiAxiosParamCreator = void 0;
28
28
  const axios_1 = require("axios");
29
29
  // Some imports not used depending on template conditions
30
30
  // @ts-ignore
@@ -139,6 +139,21 @@ exports.Gender = {
139
139
  exports.IUserLocationTypeEnum = {
140
140
  Point: 'Point'
141
141
  };
142
+ /**
143
+ *
144
+ * @export
145
+ * @enum {string}
146
+ */
147
+ exports.InvoiceStatus = {
148
+ SetupPending: 'setup_pending',
149
+ SetupSuccess: 'setup_success',
150
+ Pending: 'pending',
151
+ Paid: 'paid',
152
+ Failed: 'failed',
153
+ Authorized: 'authorized',
154
+ Canceled: 'canceled',
155
+ Expired: 'expired'
156
+ };
142
157
  /**
143
158
  *
144
159
  * @export
@@ -369,6 +384,38 @@ const BookingsApiAxiosParamCreator = function (configuration) {
369
384
  options: localVarRequestOptions,
370
385
  };
371
386
  }),
387
+ /**
388
+ *
389
+ * @param {BookingPriceBody} bookingPriceBody
390
+ * @param {*} [options] Override http request option.
391
+ * @throws {RequiredError}
392
+ */
393
+ getBookingPrice: (bookingPriceBody_1, ...args_1) => __awaiter(this, [bookingPriceBody_1, ...args_1], void 0, function* (bookingPriceBody, options = {}) {
394
+ // verify required parameter 'bookingPriceBody' is not null or undefined
395
+ (0, common_1.assertParamExists)('getBookingPrice', 'bookingPriceBody', bookingPriceBody);
396
+ const localVarPath = `/api/bookings/booking-price`;
397
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
398
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
399
+ let baseOptions;
400
+ if (configuration) {
401
+ baseOptions = configuration.baseOptions;
402
+ }
403
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
404
+ const localVarHeaderParameter = {};
405
+ const localVarQueryParameter = {};
406
+ // authentication bearerAuth required
407
+ // http bearer authentication required
408
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
409
+ localVarHeaderParameter['Content-Type'] = 'application/json';
410
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
411
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
412
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
413
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bookingPriceBody, localVarRequestOptions, configuration);
414
+ return {
415
+ url: (0, common_1.toPathString)(localVarUrlObj),
416
+ options: localVarRequestOptions,
417
+ };
418
+ }),
372
419
  /**
373
420
  * Recherche des créneaux disponibles pour une réservation rapide
374
421
  * @param {number} [latitude]
@@ -379,12 +426,13 @@ const BookingsApiAxiosParamCreator = function (configuration) {
379
426
  * @param {string} [startTime]
380
427
  * @param {number} [priceMax]
381
428
  * @param {string} [courtTypes]
429
+ * @param {string} [surfaceTypes]
382
430
  * @param {number} [limitPerClub]
383
431
  * @param {number} [maxClubs]
384
432
  * @param {*} [options] Override http request option.
385
433
  * @throws {RequiredError}
386
434
  */
387
- getQuickReservationSlots: (latitude_1, longitude_1, radiusInKm_1, date_1, sportId_1, startTime_1, priceMax_1, courtTypes_1, limitPerClub_1, maxClubs_1, ...args_1) => __awaiter(this, [latitude_1, longitude_1, radiusInKm_1, date_1, sportId_1, startTime_1, priceMax_1, courtTypes_1, limitPerClub_1, maxClubs_1, ...args_1], void 0, function* (latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options = {}) {
435
+ getQuickReservationSlots: (latitude_1, longitude_1, radiusInKm_1, date_1, sportId_1, startTime_1, priceMax_1, courtTypes_1, surfaceTypes_1, limitPerClub_1, maxClubs_1, ...args_1) => __awaiter(this, [latitude_1, longitude_1, radiusInKm_1, date_1, sportId_1, startTime_1, priceMax_1, courtTypes_1, surfaceTypes_1, limitPerClub_1, maxClubs_1, ...args_1], void 0, function* (latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, surfaceTypes, limitPerClub, maxClubs, options = {}) {
388
436
  const localVarPath = `/api/bookings/quick-reservations`;
389
437
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
390
438
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -419,8 +467,11 @@ const BookingsApiAxiosParamCreator = function (configuration) {
419
467
  if (courtTypes !== undefined) {
420
468
  localVarQueryParameter['courtTypes'] = courtTypes;
421
469
  }
470
+ if (surfaceTypes !== undefined) {
471
+ localVarQueryParameter['surfaceTypes'] = surfaceTypes;
472
+ }
422
473
  if (limitPerClub !== undefined) {
423
- localVarQueryParameter['limitPerClub'] = limitPerClub;
474
+ localVarQueryParameter['_limitPerClub'] = limitPerClub;
424
475
  }
425
476
  if (maxClubs !== undefined) {
426
477
  localVarQueryParameter['maxClubs'] = maxClubs;
@@ -458,6 +509,21 @@ const BookingsApiFp = function (configuration) {
458
509
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
459
510
  });
460
511
  },
512
+ /**
513
+ *
514
+ * @param {BookingPriceBody} bookingPriceBody
515
+ * @param {*} [options] Override http request option.
516
+ * @throws {RequiredError}
517
+ */
518
+ getBookingPrice(bookingPriceBody, options) {
519
+ return __awaiter(this, void 0, void 0, function* () {
520
+ var _a, _b, _c;
521
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBookingPrice(bookingPriceBody, options);
522
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
523
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.getBookingPrice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
524
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
525
+ });
526
+ },
461
527
  /**
462
528
  * Recherche des créneaux disponibles pour une réservation rapide
463
529
  * @param {number} [latitude]
@@ -468,15 +534,16 @@ const BookingsApiFp = function (configuration) {
468
534
  * @param {string} [startTime]
469
535
  * @param {number} [priceMax]
470
536
  * @param {string} [courtTypes]
537
+ * @param {string} [surfaceTypes]
471
538
  * @param {number} [limitPerClub]
472
539
  * @param {number} [maxClubs]
473
540
  * @param {*} [options] Override http request option.
474
541
  * @throws {RequiredError}
475
542
  */
476
- getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options) {
543
+ getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, surfaceTypes, limitPerClub, maxClubs, options) {
477
544
  return __awaiter(this, void 0, void 0, function* () {
478
545
  var _a, _b, _c;
479
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options);
546
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, surfaceTypes, limitPerClub, maxClubs, options);
480
547
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
481
548
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BookingsApi.getQuickReservationSlots']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
482
549
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -501,6 +568,15 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
501
568
  getBookingHistory(requestParameters, options) {
502
569
  return localVarFp.getBookingHistory(requestParameters.bookingId, options).then((request) => request(axios, basePath));
503
570
  },
571
+ /**
572
+ *
573
+ * @param {BookingsApiGetBookingPriceRequest} requestParameters Request parameters.
574
+ * @param {*} [options] Override http request option.
575
+ * @throws {RequiredError}
576
+ */
577
+ getBookingPrice(requestParameters, options) {
578
+ return localVarFp.getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(axios, basePath));
579
+ },
504
580
  /**
505
581
  * Recherche des créneaux disponibles pour une réservation rapide
506
582
  * @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
@@ -508,7 +584,7 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
508
584
  * @throws {RequiredError}
509
585
  */
510
586
  getQuickReservationSlots(requestParameters = {}, options) {
511
- return localVarFp.getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(axios, basePath));
587
+ return localVarFp.getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.surfaceTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(axios, basePath));
512
588
  },
513
589
  };
514
590
  };
@@ -530,6 +606,16 @@ class BookingsApi extends base_1.BaseAPI {
530
606
  getBookingHistory(requestParameters, options) {
531
607
  return (0, exports.BookingsApiFp)(this.configuration).getBookingHistory(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
532
608
  }
609
+ /**
610
+ *
611
+ * @param {BookingsApiGetBookingPriceRequest} requestParameters Request parameters.
612
+ * @param {*} [options] Override http request option.
613
+ * @throws {RequiredError}
614
+ * @memberof BookingsApi
615
+ */
616
+ getBookingPrice(requestParameters, options) {
617
+ return (0, exports.BookingsApiFp)(this.configuration).getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(this.axios, this.basePath));
618
+ }
533
619
  /**
534
620
  * Recherche des créneaux disponibles pour une réservation rapide
535
621
  * @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
@@ -538,7 +624,7 @@ class BookingsApi extends base_1.BaseAPI {
538
624
  * @memberof BookingsApi
539
625
  */
540
626
  getQuickReservationSlots(requestParameters = {}, options) {
541
- return (0, exports.BookingsApiFp)(this.configuration).getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(this.axios, this.basePath));
627
+ return (0, exports.BookingsApiFp)(this.configuration).getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.surfaceTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(this.axios, this.basePath));
542
628
  }
543
629
  }
544
630
  exports.BookingsApi = BookingsApi;
@@ -1510,99 +1596,6 @@ const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration) {
1510
1596
  options: localVarRequestOptions,
1511
1597
  };
1512
1598
  }),
1513
- /**
1514
- * Récupère les réservations d\'un joueur par son ID (à venir et passées)
1515
- * @param {string} playerId
1516
- * @param {*} [options] Override http request option.
1517
- * @throws {RequiredError}
1518
- */
1519
- getClubPlayerBookingsById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
1520
- // verify required parameter 'playerId' is not null or undefined
1521
- (0, common_1.assertParamExists)('getClubPlayerBookingsById', 'playerId', playerId);
1522
- const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
1523
- .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
1524
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1525
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1526
- let baseOptions;
1527
- if (configuration) {
1528
- baseOptions = configuration.baseOptions;
1529
- }
1530
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1531
- const localVarHeaderParameter = {};
1532
- const localVarQueryParameter = {};
1533
- // authentication bearerAuth required
1534
- // http bearer authentication required
1535
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1536
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1537
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1538
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1539
- return {
1540
- url: (0, common_1.toPathString)(localVarUrlObj),
1541
- options: localVarRequestOptions,
1542
- };
1543
- }),
1544
- /**
1545
- * Récupère les informations détaillées d\'un joueur par son ID
1546
- * @param {string} playerId
1547
- * @param {*} [options] Override http request option.
1548
- * @throws {RequiredError}
1549
- */
1550
- getClubPlayerById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
1551
- // verify required parameter 'playerId' is not null or undefined
1552
- (0, common_1.assertParamExists)('getClubPlayerById', 'playerId', playerId);
1553
- const localVarPath = `/api/club-analytics/players/{playerId}`
1554
- .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
1555
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1556
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1557
- let baseOptions;
1558
- if (configuration) {
1559
- baseOptions = configuration.baseOptions;
1560
- }
1561
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1562
- const localVarHeaderParameter = {};
1563
- const localVarQueryParameter = {};
1564
- // authentication bearerAuth required
1565
- // http bearer authentication required
1566
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1567
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1568
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1569
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1570
- return {
1571
- url: (0, common_1.toPathString)(localVarUrlObj),
1572
- options: localVarRequestOptions,
1573
- };
1574
- }),
1575
- /**
1576
- * Récupère les statistiques d\'un joueur pour le staff
1577
- * @param {string} playerId
1578
- * @param {*} [options] Override http request option.
1579
- * @throws {RequiredError}
1580
- */
1581
- getClubPlayerStatisticsById: (playerId_1, ...args_1) => __awaiter(this, [playerId_1, ...args_1], void 0, function* (playerId, options = {}) {
1582
- // verify required parameter 'playerId' is not null or undefined
1583
- (0, common_1.assertParamExists)('getClubPlayerStatisticsById', 'playerId', playerId);
1584
- const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
1585
- .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
1586
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1587
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1588
- let baseOptions;
1589
- if (configuration) {
1590
- baseOptions = configuration.baseOptions;
1591
- }
1592
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1593
- const localVarHeaderParameter = {};
1594
- const localVarQueryParameter = {};
1595
- // authentication bearerAuth required
1596
- // http bearer authentication required
1597
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1598
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1599
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1600
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1601
- return {
1602
- url: (0, common_1.toPathString)(localVarUrlObj),
1603
- options: localVarRequestOptions,
1604
- };
1605
- }),
1606
1599
  /**
1607
1600
  * Récupère la liste des joueurs du club
1608
1601
  * @param {*} [options] Override http request option.
@@ -1903,51 +1896,6 @@ const ClubAnalyticsStaffApiFp = function (configuration) {
1903
1896
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1904
1897
  });
1905
1898
  },
1906
- /**
1907
- * Récupère les réservations d\'un joueur par son ID (à venir et passées)
1908
- * @param {string} playerId
1909
- * @param {*} [options] Override http request option.
1910
- * @throws {RequiredError}
1911
- */
1912
- getClubPlayerBookingsById(playerId, options) {
1913
- return __awaiter(this, void 0, void 0, function* () {
1914
- var _a, _b, _c;
1915
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerBookingsById(playerId, options);
1916
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1917
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getClubPlayerBookingsById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1918
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1919
- });
1920
- },
1921
- /**
1922
- * Récupère les informations détaillées d\'un joueur par son ID
1923
- * @param {string} playerId
1924
- * @param {*} [options] Override http request option.
1925
- * @throws {RequiredError}
1926
- */
1927
- getClubPlayerById(playerId, options) {
1928
- return __awaiter(this, void 0, void 0, function* () {
1929
- var _a, _b, _c;
1930
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerById(playerId, options);
1931
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1932
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getClubPlayerById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1933
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1934
- });
1935
- },
1936
- /**
1937
- * Récupère les statistiques d\'un joueur pour le staff
1938
- * @param {string} playerId
1939
- * @param {*} [options] Override http request option.
1940
- * @throws {RequiredError}
1941
- */
1942
- getClubPlayerStatisticsById(playerId, options) {
1943
- return __awaiter(this, void 0, void 0, function* () {
1944
- var _a, _b, _c;
1945
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getClubPlayerStatisticsById(playerId, options);
1946
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1947
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClubAnalyticsStaffApi.getClubPlayerStatisticsById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1948
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1949
- });
1950
- },
1951
1899
  /**
1952
1900
  * Récupère la liste des joueurs du club
1953
1901
  * @param {*} [options] Override http request option.
@@ -2099,33 +2047,6 @@ const ClubAnalyticsStaffApiFactory = function (configuration, basePath, axios) {
2099
2047
  getAnalyticsBySport(requestParameters, options) {
2100
2048
  return localVarFp.getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(axios, basePath));
2101
2049
  },
2102
- /**
2103
- * Récupère les réservations d\'un joueur par son ID (à venir et passées)
2104
- * @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
2105
- * @param {*} [options] Override http request option.
2106
- * @throws {RequiredError}
2107
- */
2108
- getClubPlayerBookingsById(requestParameters, options) {
2109
- return localVarFp.getClubPlayerBookingsById(requestParameters.playerId, options).then((request) => request(axios, basePath));
2110
- },
2111
- /**
2112
- * Récupère les informations détaillées d\'un joueur par son ID
2113
- * @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
2114
- * @param {*} [options] Override http request option.
2115
- * @throws {RequiredError}
2116
- */
2117
- getClubPlayerById(requestParameters, options) {
2118
- return localVarFp.getClubPlayerById(requestParameters.playerId, options).then((request) => request(axios, basePath));
2119
- },
2120
- /**
2121
- * Récupère les statistiques d\'un joueur pour le staff
2122
- * @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
2123
- * @param {*} [options] Override http request option.
2124
- * @throws {RequiredError}
2125
- */
2126
- getClubPlayerStatisticsById(requestParameters, options) {
2127
- return localVarFp.getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(axios, basePath));
2128
- },
2129
2050
  /**
2130
2051
  * Récupère la liste des joueurs du club
2131
2052
  * @param {*} [options] Override http request option.
@@ -2222,36 +2143,6 @@ class ClubAnalyticsStaffApi extends base_1.BaseAPI {
2222
2143
  getAnalyticsBySport(requestParameters, options) {
2223
2144
  return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
2224
2145
  }
2225
- /**
2226
- * Récupère les réservations d\'un joueur par son ID (à venir et passées)
2227
- * @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
2228
- * @param {*} [options] Override http request option.
2229
- * @throws {RequiredError}
2230
- * @memberof ClubAnalyticsStaffApi
2231
- */
2232
- getClubPlayerBookingsById(requestParameters, options) {
2233
- return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubPlayerBookingsById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
2234
- }
2235
- /**
2236
- * Récupère les informations détaillées d\'un joueur par son ID
2237
- * @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
2238
- * @param {*} [options] Override http request option.
2239
- * @throws {RequiredError}
2240
- * @memberof ClubAnalyticsStaffApi
2241
- */
2242
- getClubPlayerById(requestParameters, options) {
2243
- return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubPlayerById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
2244
- }
2245
- /**
2246
- * Récupère les statistiques d\'un joueur pour le staff
2247
- * @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
2248
- * @param {*} [options] Override http request option.
2249
- * @throws {RequiredError}
2250
- * @memberof ClubAnalyticsStaffApi
2251
- */
2252
- getClubPlayerStatisticsById(requestParameters, options) {
2253
- return (0, exports.ClubAnalyticsStaffApiFp)(this.configuration).getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
2254
- }
2255
2146
  /**
2256
2147
  * Récupère la liste des joueurs du club
2257
2148
  * @param {*} [options] Override http request option.
@@ -6683,6 +6574,99 @@ class SportsManagerApi extends base_1.BaseAPI {
6683
6574
  }
6684
6575
  }
6685
6576
  exports.SportsManagerApi = SportsManagerApi;
6577
+ /**
6578
+ * SportsPublicApi - axios parameter creator
6579
+ * @export
6580
+ */
6581
+ const SportsPublicApiAxiosParamCreator = function (configuration) {
6582
+ return {
6583
+ /**
6584
+ * Récupère tous les sports vérifiés, accessibles publiquement
6585
+ * @param {*} [options] Override http request option.
6586
+ * @throws {RequiredError}
6587
+ */
6588
+ getVerifiedSports: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
6589
+ const localVarPath = `/api/sports/verified`;
6590
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6591
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6592
+ let baseOptions;
6593
+ if (configuration) {
6594
+ baseOptions = configuration.baseOptions;
6595
+ }
6596
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6597
+ const localVarHeaderParameter = {};
6598
+ const localVarQueryParameter = {};
6599
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6600
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6601
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6602
+ return {
6603
+ url: (0, common_1.toPathString)(localVarUrlObj),
6604
+ options: localVarRequestOptions,
6605
+ };
6606
+ }),
6607
+ };
6608
+ };
6609
+ exports.SportsPublicApiAxiosParamCreator = SportsPublicApiAxiosParamCreator;
6610
+ /**
6611
+ * SportsPublicApi - functional programming interface
6612
+ * @export
6613
+ */
6614
+ const SportsPublicApiFp = function (configuration) {
6615
+ const localVarAxiosParamCreator = (0, exports.SportsPublicApiAxiosParamCreator)(configuration);
6616
+ return {
6617
+ /**
6618
+ * Récupère tous les sports vérifiés, accessibles publiquement
6619
+ * @param {*} [options] Override http request option.
6620
+ * @throws {RequiredError}
6621
+ */
6622
+ getVerifiedSports(options) {
6623
+ return __awaiter(this, void 0, void 0, function* () {
6624
+ var _a, _b, _c;
6625
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getVerifiedSports(options);
6626
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6627
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SportsPublicApi.getVerifiedSports']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6628
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6629
+ });
6630
+ },
6631
+ };
6632
+ };
6633
+ exports.SportsPublicApiFp = SportsPublicApiFp;
6634
+ /**
6635
+ * SportsPublicApi - factory interface
6636
+ * @export
6637
+ */
6638
+ const SportsPublicApiFactory = function (configuration, basePath, axios) {
6639
+ const localVarFp = (0, exports.SportsPublicApiFp)(configuration);
6640
+ return {
6641
+ /**
6642
+ * Récupère tous les sports vérifiés, accessibles publiquement
6643
+ * @param {*} [options] Override http request option.
6644
+ * @throws {RequiredError}
6645
+ */
6646
+ getVerifiedSports(options) {
6647
+ return localVarFp.getVerifiedSports(options).then((request) => request(axios, basePath));
6648
+ },
6649
+ };
6650
+ };
6651
+ exports.SportsPublicApiFactory = SportsPublicApiFactory;
6652
+ /**
6653
+ * SportsPublicApi - object-oriented interface
6654
+ * @export
6655
+ * @class SportsPublicApi
6656
+ * @extends {BaseAPI}
6657
+ */
6658
+ class SportsPublicApi extends base_1.BaseAPI {
6659
+ /**
6660
+ * Récupère tous les sports vérifiés, accessibles publiquement
6661
+ * @param {*} [options] Override http request option.
6662
+ * @throws {RequiredError}
6663
+ * @memberof SportsPublicApi
6664
+ */
6665
+ getVerifiedSports(options) {
6666
+ return (0, exports.SportsPublicApiFp)(this.configuration).getVerifiedSports(options).then((request) => request(this.axios, this.basePath));
6667
+ }
6668
+ }
6669
+ exports.SportsPublicApi = SportsPublicApi;
6686
6670
  /**
6687
6671
  * SportsStaffApi - axios parameter creator
6688
6672
  * @export
@@ -7614,38 +7598,6 @@ const UsersApiAxiosParamCreator = function (configuration) {
7614
7598
  options: localVarRequestOptions,
7615
7599
  };
7616
7600
  }),
7617
- /**
7618
- *
7619
- * @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
7620
- * @param {*} [options] Override http request option.
7621
- * @throws {RequiredError}
7622
- */
7623
- addPaymentMethodSetup: (addPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [addPaymentMethodRequestBody_1, ...args_1], void 0, function* (addPaymentMethodRequestBody, options = {}) {
7624
- // verify required parameter 'addPaymentMethodRequestBody' is not null or undefined
7625
- (0, common_1.assertParamExists)('addPaymentMethodSetup', 'addPaymentMethodRequestBody', addPaymentMethodRequestBody);
7626
- const localVarPath = `/api/users/addPaymentMethodSetup`;
7627
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
7628
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7629
- let baseOptions;
7630
- if (configuration) {
7631
- baseOptions = configuration.baseOptions;
7632
- }
7633
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
7634
- const localVarHeaderParameter = {};
7635
- const localVarQueryParameter = {};
7636
- // authentication bearerAuth required
7637
- // http bearer authentication required
7638
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7639
- localVarHeaderParameter['Content-Type'] = 'application/json';
7640
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7641
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7642
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7643
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addPaymentMethodRequestBody, localVarRequestOptions, configuration);
7644
- return {
7645
- url: (0, common_1.toPathString)(localVarUrlObj),
7646
- options: localVarRequestOptions,
7647
- };
7648
- }),
7649
7601
  /**
7650
7602
  *
7651
7603
  * @param {ChangePasswordRequestBody} changePasswordRequestBody
@@ -7678,38 +7630,6 @@ const UsersApiAxiosParamCreator = function (configuration) {
7678
7630
  options: localVarRequestOptions,
7679
7631
  };
7680
7632
  }),
7681
- /**
7682
- *
7683
- * @param {ConfirmPaymentMethodRequestBody} confirmPaymentMethodRequestBody
7684
- * @param {*} [options] Override http request option.
7685
- * @throws {RequiredError}
7686
- */
7687
- confirmPaymentMethodSetup: (confirmPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [confirmPaymentMethodRequestBody_1, ...args_1], void 0, function* (confirmPaymentMethodRequestBody, options = {}) {
7688
- // verify required parameter 'confirmPaymentMethodRequestBody' is not null or undefined
7689
- (0, common_1.assertParamExists)('confirmPaymentMethodSetup', 'confirmPaymentMethodRequestBody', confirmPaymentMethodRequestBody);
7690
- const localVarPath = `/api/users/confirmPaymentMethodSetup`;
7691
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
7692
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7693
- let baseOptions;
7694
- if (configuration) {
7695
- baseOptions = configuration.baseOptions;
7696
- }
7697
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
7698
- const localVarHeaderParameter = {};
7699
- const localVarQueryParameter = {};
7700
- // authentication bearerAuth required
7701
- // http bearer authentication required
7702
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7703
- localVarHeaderParameter['Content-Type'] = 'application/json';
7704
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7705
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7706
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7707
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(confirmPaymentMethodRequestBody, localVarRequestOptions, configuration);
7708
- return {
7709
- url: (0, common_1.toPathString)(localVarUrlObj),
7710
- options: localVarRequestOptions,
7711
- };
7712
- }),
7713
7633
  /**
7714
7634
  *
7715
7635
  * @param {*} [options] Override http request option.
@@ -8479,38 +8399,6 @@ const UsersApiAxiosParamCreator = function (configuration) {
8479
8399
  options: localVarRequestOptions,
8480
8400
  };
8481
8401
  }),
8482
- /**
8483
- *
8484
- * @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
8485
- * @param {*} [options] Override http request option.
8486
- * @throws {RequiredError}
8487
- */
8488
- setupOffSessionPaymentMethod: (setupPaymentMethodRequestBody_1, ...args_1) => __awaiter(this, [setupPaymentMethodRequestBody_1, ...args_1], void 0, function* (setupPaymentMethodRequestBody, options = {}) {
8489
- // verify required parameter 'setupPaymentMethodRequestBody' is not null or undefined
8490
- (0, common_1.assertParamExists)('setupOffSessionPaymentMethod', 'setupPaymentMethodRequestBody', setupPaymentMethodRequestBody);
8491
- const localVarPath = `/api/users/setupOffSessionPaymentMethod`;
8492
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
8493
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8494
- let baseOptions;
8495
- if (configuration) {
8496
- baseOptions = configuration.baseOptions;
8497
- }
8498
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
8499
- const localVarHeaderParameter = {};
8500
- const localVarQueryParameter = {};
8501
- // authentication bearerAuth required
8502
- // http bearer authentication required
8503
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
8504
- localVarHeaderParameter['Content-Type'] = 'application/json';
8505
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8506
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8507
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8508
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(setupPaymentMethodRequestBody, localVarRequestOptions, configuration);
8509
- return {
8510
- url: (0, common_1.toPathString)(localVarUrlObj),
8511
- options: localVarRequestOptions,
8512
- };
8513
- }),
8514
8402
  /**
8515
8403
  *
8516
8404
  * @param {GoogleAuthRequestBody} googleAuthRequestBody
@@ -8781,21 +8669,6 @@ const UsersApiFp = function (configuration) {
8781
8669
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8782
8670
  });
8783
8671
  },
8784
- /**
8785
- *
8786
- * @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
8787
- * @param {*} [options] Override http request option.
8788
- * @throws {RequiredError}
8789
- */
8790
- addPaymentMethodSetup(addPaymentMethodRequestBody, options) {
8791
- return __awaiter(this, void 0, void 0, function* () {
8792
- var _a, _b, _c;
8793
- const localVarAxiosArgs = yield localVarAxiosParamCreator.addPaymentMethodSetup(addPaymentMethodRequestBody, options);
8794
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8795
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.addPaymentMethodSetup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8796
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8797
- });
8798
- },
8799
8672
  /**
8800
8673
  *
8801
8674
  * @param {ChangePasswordRequestBody} changePasswordRequestBody
@@ -8811,21 +8684,6 @@ const UsersApiFp = function (configuration) {
8811
8684
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8812
8685
  });
8813
8686
  },
8814
- /**
8815
- *
8816
- * @param {ConfirmPaymentMethodRequestBody} confirmPaymentMethodRequestBody
8817
- * @param {*} [options] Override http request option.
8818
- * @throws {RequiredError}
8819
- */
8820
- confirmPaymentMethodSetup(confirmPaymentMethodRequestBody, options) {
8821
- return __awaiter(this, void 0, void 0, function* () {
8822
- var _a, _b, _c;
8823
- const localVarAxiosArgs = yield localVarAxiosParamCreator.confirmPaymentMethodSetup(confirmPaymentMethodRequestBody, options);
8824
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8825
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.confirmPaymentMethodSetup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8826
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8827
- });
8828
- },
8829
8687
  /**
8830
8688
  *
8831
8689
  * @param {*} [options] Override http request option.
@@ -9196,21 +9054,6 @@ const UsersApiFp = function (configuration) {
9196
9054
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9197
9055
  });
9198
9056
  },
9199
- /**
9200
- *
9201
- * @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
9202
- * @param {*} [options] Override http request option.
9203
- * @throws {RequiredError}
9204
- */
9205
- setupOffSessionPaymentMethod(setupPaymentMethodRequestBody, options) {
9206
- return __awaiter(this, void 0, void 0, function* () {
9207
- var _a, _b, _c;
9208
- const localVarAxiosArgs = yield localVarAxiosParamCreator.setupOffSessionPaymentMethod(setupPaymentMethodRequestBody, options);
9209
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9210
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.setupOffSessionPaymentMethod']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9211
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9212
- });
9213
- },
9214
9057
  /**
9215
9058
  *
9216
9059
  * @param {GoogleAuthRequestBody} googleAuthRequestBody
@@ -9353,15 +9196,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
9353
9196
  addOrganization(requestParameters, options) {
9354
9197
  return localVarFp.addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(axios, basePath));
9355
9198
  },
9356
- /**
9357
- *
9358
- * @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
9359
- * @param {*} [options] Override http request option.
9360
- * @throws {RequiredError}
9361
- */
9362
- addPaymentMethodSetup(requestParameters, options) {
9363
- return localVarFp.addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
9364
- },
9365
9199
  /**
9366
9200
  *
9367
9201
  * @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
@@ -9371,15 +9205,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
9371
9205
  changePassword(requestParameters, options) {
9372
9206
  return localVarFp.changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(axios, basePath));
9373
9207
  },
9374
- /**
9375
- *
9376
- * @param {UsersApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
9377
- * @param {*} [options] Override http request option.
9378
- * @throws {RequiredError}
9379
- */
9380
- confirmPaymentMethodSetup(requestParameters, options) {
9381
- return localVarFp.confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
9382
- },
9383
9208
  /**
9384
9209
  *
9385
9210
  * @param {*} [options] Override http request option.
@@ -9588,15 +9413,6 @@ const UsersApiFactory = function (configuration, basePath, axios) {
9588
9413
  resetPassword(requestParameters, options) {
9589
9414
  return localVarFp.resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(axios, basePath));
9590
9415
  },
9591
- /**
9592
- *
9593
- * @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
9594
- * @param {*} [options] Override http request option.
9595
- * @throws {RequiredError}
9596
- */
9597
- setupOffSessionPaymentMethod(requestParameters, options) {
9598
- return localVarFp.setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
9599
- },
9600
9416
  /**
9601
9417
  *
9602
9418
  * @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
@@ -9700,16 +9516,6 @@ class UsersApi extends base_1.BaseAPI {
9700
9516
  addOrganization(requestParameters, options) {
9701
9517
  return (0, exports.UsersApiFp)(this.configuration).addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
9702
9518
  }
9703
- /**
9704
- *
9705
- * @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
9706
- * @param {*} [options] Override http request option.
9707
- * @throws {RequiredError}
9708
- * @memberof UsersApi
9709
- */
9710
- addPaymentMethodSetup(requestParameters, options) {
9711
- return (0, exports.UsersApiFp)(this.configuration).addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
9712
- }
9713
9519
  /**
9714
9520
  *
9715
9521
  * @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
@@ -9720,16 +9526,6 @@ class UsersApi extends base_1.BaseAPI {
9720
9526
  changePassword(requestParameters, options) {
9721
9527
  return (0, exports.UsersApiFp)(this.configuration).changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(this.axios, this.basePath));
9722
9528
  }
9723
- /**
9724
- *
9725
- * @param {UsersApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
9726
- * @param {*} [options] Override http request option.
9727
- * @throws {RequiredError}
9728
- * @memberof UsersApi
9729
- */
9730
- confirmPaymentMethodSetup(requestParameters, options) {
9731
- return (0, exports.UsersApiFp)(this.configuration).confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
9732
- }
9733
9529
  /**
9734
9530
  *
9735
9531
  * @param {*} [options] Override http request option.
@@ -9962,16 +9758,6 @@ class UsersApi extends base_1.BaseAPI {
9962
9758
  resetPassword(requestParameters, options) {
9963
9759
  return (0, exports.UsersApiFp)(this.configuration).resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
9964
9760
  }
9965
- /**
9966
- *
9967
- * @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
9968
- * @param {*} [options] Override http request option.
9969
- * @throws {RequiredError}
9970
- * @memberof UsersApi
9971
- */
9972
- setupOffSessionPaymentMethod(requestParameters, options) {
9973
- return (0, exports.UsersApiFp)(this.configuration).setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
9974
- }
9975
9761
  /**
9976
9762
  *
9977
9763
  * @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.