@tennac-booking/sdk 1.0.69 → 1.0.71

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 (62) hide show
  1. package/.openapi-generator/FILES +236 -227
  2. package/README.md +20 -7
  3. package/api.ts +1488 -247
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +1334 -339
  8. package/dist/api.js +461 -62
  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 +1334 -339
  16. package/dist/esm/api.js +458 -59
  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/BookingDetailResponse.md +1 -1
  28. package/docs/{BookingHistory.md → BookingHistoryPopulated.md} +4 -4
  29. package/docs/BookingPopulated.md +27 -7
  30. package/docs/BookingStatus.md +3 -1
  31. package/docs/BookingSummary.md +1 -1
  32. package/docs/BookingsApi.md +81 -2
  33. package/docs/BookingsStaffApi.md +3 -3
  34. package/docs/CheckInPlayersResponse.md +2 -10
  35. package/docs/ClubsApi.md +2 -2
  36. package/docs/CreateEventRequest.md +26 -0
  37. package/docs/CreateSportForClubRequest.md +6 -0
  38. package/docs/CreateSportRequest.md +8 -2
  39. package/docs/EventResponse.md +26 -0
  40. package/docs/EventsApi.md +131 -12
  41. package/docs/EventsManagerApi.md +59 -0
  42. package/docs/JoinEventRequest.md +22 -0
  43. package/docs/JoinEventResponse.md +22 -0
  44. package/docs/QuickReservationClubSummary.md +28 -0
  45. package/docs/QuickReservationClubSummaryLocation.md +31 -0
  46. package/docs/QuickReservationResponse.md +22 -0
  47. package/docs/QuickReservationSlotSummary.md +42 -0
  48. package/docs/SportKey.md +14 -0
  49. package/docs/SportLevel.md +22 -0
  50. package/docs/SportResponse.md +10 -5
  51. package/docs/SportWithLevels.md +30 -0
  52. package/docs/SportsManagerApi.md +6 -3
  53. package/docs/SportsStaffApi.md +3 -3
  54. package/docs/{GetSportsByClubById200Response.md → SubscriberPrice.md} +7 -5
  55. package/docs/{BookingSummaryBookingHistory.md → Team.md} +7 -3
  56. package/docs/UpdateEventRequest.md +54 -0
  57. package/docs/UpdateSportRequest.md +9 -1
  58. package/docs/UserInfo.md +4 -0
  59. package/docs/UsersApi.md +0 -3
  60. package/index.ts +1 -1
  61. package/package.json +1 -1
  62. package/docs/SportWithAnalytics.md +0 -36
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.68
8
+ * The version of the OpenAPI document: 1.0.71
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,16 +22,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- 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 = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.UserLocationSummaryTypeEnum = 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.RegisterRequestBodyLocationTypeEnum = exports.PlayerCategoryId = exports.PlanInterval = exports.PaymentMethod = exports.IUserLocationTypeEnum = exports.Gender = exports.DiscountType = exports.CreateClubRoleRequestRoleEnum = exports.CourtStatus = exports.ClubRoleResponseRoleEnum = exports.CaptureResultStatusEnum = exports.CaptureResultTypeEnum = exports.BookingStatus = exports.BookingHistoryPerformedByTypeEnum = void 0;
26
- exports.SportsManagerApiFp = exports.SportsManagerApiAxiosParamCreator = exports.EventsStaffApi = exports.EventsStaffApiFactory = exports.EventsStaffApiFp = exports.EventsStaffApiAxiosParamCreator = exports.EventsManagerApi = exports.EventsManagerApiFactory = exports.EventsManagerApiFp = exports.EventsManagerApiAxiosParamCreator = exports.EventsApi = exports.EventsApiFactory = exports.EventsApiFp = 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 = 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 = void 0;
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;
28
28
  const axios_1 = require("axios");
29
29
  // Some imports not used depending on template conditions
30
30
  // @ts-ignore
31
31
  const common_1 = require("./common");
32
32
  // @ts-ignore
33
33
  const base_1 = require("./base");
34
- exports.BookingHistoryPerformedByTypeEnum = {
34
+ exports.BookingHistoryPopulatedPerformedByTypeEnum = {
35
35
  User: 'user',
36
36
  Manager: 'manager',
37
37
  System: 'system'
@@ -43,9 +43,10 @@ exports.BookingHistoryPerformedByTypeEnum = {
43
43
  */
44
44
  exports.BookingStatus = {
45
45
  Paid: 'paid',
46
+ Validated: 'validated',
46
47
  Active: 'active',
47
48
  Pending: 'pending',
48
- Expired: 'expired',
49
+ ActivePaymentsTimeout: 'active_payments_timeout',
49
50
  Canceled: 'canceled',
50
51
  NoShow: 'no-show'
51
52
  };
@@ -76,6 +77,25 @@ exports.CreateClubRoleRequestRoleEnum = {
76
77
  Manager: 'manager',
77
78
  Staff: 'staff'
78
79
  };
80
+ exports.CreateEventRequestTypeEnum = {
81
+ Event: 'event',
82
+ Closure: 'closure'
83
+ };
84
+ exports.CreateEventRequestRecurringTypeEnum = {
85
+ Unique: 'unique',
86
+ Daily: 'daily',
87
+ Weekly: 'weekly',
88
+ Monthly: 'monthly'
89
+ };
90
+ exports.CreateEventRequestParticipationTypeEnum = {
91
+ Solo: 'solo',
92
+ Team: 'team'
93
+ };
94
+ exports.CreateEventRequestVisibilityTypeEnum = {
95
+ Public: 'public',
96
+ Private: 'private',
97
+ Invitation: 'invitation'
98
+ };
79
99
  /**
80
100
  *
81
101
  * @export
@@ -87,6 +107,25 @@ exports.DiscountType = {
87
107
  Percentage: 'percentage',
88
108
  OffPeak: 'off_peak'
89
109
  };
110
+ exports.EventResponseTypeEnum = {
111
+ Event: 'event',
112
+ Closure: 'closure'
113
+ };
114
+ exports.EventResponseRecurringTypeEnum = {
115
+ Unique: 'unique',
116
+ Daily: 'daily',
117
+ Weekly: 'weekly',
118
+ Monthly: 'monthly'
119
+ };
120
+ exports.EventResponseParticipationTypeEnum = {
121
+ Solo: 'solo',
122
+ Team: 'team'
123
+ };
124
+ exports.EventResponseVisibilityTypeEnum = {
125
+ Public: 'public',
126
+ Private: 'private',
127
+ Invitation: 'invitation'
128
+ };
90
129
  /**
91
130
  *
92
131
  * @export
@@ -136,6 +175,17 @@ exports.PlayerCategoryId = {
136
175
  exports.RegisterRequestBodyLocationTypeEnum = {
137
176
  Point: 'Point'
138
177
  };
178
+ /**
179
+ *
180
+ * @export
181
+ * @enum {string}
182
+ */
183
+ exports.SportKey = {
184
+ Padel: 'Padel',
185
+ Tennis: 'Tennis',
186
+ Pickleball: 'Pickleball',
187
+ Autres: 'Autres'
188
+ };
139
189
  exports.StripeStripeDeletedProductObjectEnum = {
140
190
  Product: 'product'
141
191
  };
@@ -260,6 +310,25 @@ exports.UpdateClubRoleRequestRoleEnum = {
260
310
  Manager: 'manager',
261
311
  Staff: 'staff'
262
312
  };
313
+ exports.UpdateEventRequestTypeEnum = {
314
+ Event: 'event',
315
+ Closure: 'closure'
316
+ };
317
+ exports.UpdateEventRequestRecurringTypeEnum = {
318
+ Unique: 'unique',
319
+ Daily: 'daily',
320
+ Weekly: 'weekly',
321
+ Monthly: 'monthly'
322
+ };
323
+ exports.UpdateEventRequestParticipationTypeEnum = {
324
+ Solo: 'solo',
325
+ Team: 'team'
326
+ };
327
+ exports.UpdateEventRequestVisibilityTypeEnum = {
328
+ Public: 'public',
329
+ Private: 'private',
330
+ Invitation: 'invitation'
331
+ };
263
332
  exports.UserLocationSummaryTypeEnum = {
264
333
  Point: 'Point'
265
334
  };
@@ -300,6 +369,70 @@ const BookingsApiAxiosParamCreator = function (configuration) {
300
369
  options: localVarRequestOptions,
301
370
  };
302
371
  }),
372
+ /**
373
+ * Recherche des créneaux disponibles pour une réservation rapide
374
+ * @param {number} [latitude]
375
+ * @param {number} [longitude]
376
+ * @param {number} [radiusInKm]
377
+ * @param {string} [date]
378
+ * @param {string} [sportId]
379
+ * @param {string} [startTime]
380
+ * @param {number} [priceMax]
381
+ * @param {string} [courtTypes]
382
+ * @param {number} [limitPerClub]
383
+ * @param {number} [maxClubs]
384
+ * @param {*} [options] Override http request option.
385
+ * @throws {RequiredError}
386
+ */
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 = {}) {
388
+ const localVarPath = `/api/bookings/quick-reservations`;
389
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
390
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
391
+ let baseOptions;
392
+ if (configuration) {
393
+ baseOptions = configuration.baseOptions;
394
+ }
395
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
396
+ const localVarHeaderParameter = {};
397
+ const localVarQueryParameter = {};
398
+ if (latitude !== undefined) {
399
+ localVarQueryParameter['latitude'] = latitude;
400
+ }
401
+ if (longitude !== undefined) {
402
+ localVarQueryParameter['longitude'] = longitude;
403
+ }
404
+ if (radiusInKm !== undefined) {
405
+ localVarQueryParameter['radiusInKm'] = radiusInKm;
406
+ }
407
+ if (date !== undefined) {
408
+ localVarQueryParameter['date'] = date;
409
+ }
410
+ if (sportId !== undefined) {
411
+ localVarQueryParameter['sportId'] = sportId;
412
+ }
413
+ if (startTime !== undefined) {
414
+ localVarQueryParameter['startTime'] = startTime;
415
+ }
416
+ if (priceMax !== undefined) {
417
+ localVarQueryParameter['priceMax'] = priceMax;
418
+ }
419
+ if (courtTypes !== undefined) {
420
+ localVarQueryParameter['courtTypes'] = courtTypes;
421
+ }
422
+ if (limitPerClub !== undefined) {
423
+ localVarQueryParameter['limitPerClub'] = limitPerClub;
424
+ }
425
+ if (maxClubs !== undefined) {
426
+ localVarQueryParameter['maxClubs'] = maxClubs;
427
+ }
428
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
429
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
430
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
431
+ return {
432
+ url: (0, common_1.toPathString)(localVarUrlObj),
433
+ options: localVarRequestOptions,
434
+ };
435
+ }),
303
436
  };
304
437
  };
305
438
  exports.BookingsApiAxiosParamCreator = BookingsApiAxiosParamCreator;
@@ -325,6 +458,30 @@ const BookingsApiFp = function (configuration) {
325
458
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
326
459
  });
327
460
  },
461
+ /**
462
+ * Recherche des créneaux disponibles pour une réservation rapide
463
+ * @param {number} [latitude]
464
+ * @param {number} [longitude]
465
+ * @param {number} [radiusInKm]
466
+ * @param {string} [date]
467
+ * @param {string} [sportId]
468
+ * @param {string} [startTime]
469
+ * @param {number} [priceMax]
470
+ * @param {string} [courtTypes]
471
+ * @param {number} [limitPerClub]
472
+ * @param {number} [maxClubs]
473
+ * @param {*} [options] Override http request option.
474
+ * @throws {RequiredError}
475
+ */
476
+ getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options) {
477
+ return __awaiter(this, void 0, void 0, function* () {
478
+ var _a, _b, _c;
479
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options);
480
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
481
+ 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
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
483
+ });
484
+ },
328
485
  };
329
486
  };
330
487
  exports.BookingsApiFp = BookingsApiFp;
@@ -344,6 +501,15 @@ const BookingsApiFactory = function (configuration, basePath, axios) {
344
501
  getBookingHistory(requestParameters, options) {
345
502
  return localVarFp.getBookingHistory(requestParameters.bookingId, options).then((request) => request(axios, basePath));
346
503
  },
504
+ /**
505
+ * Recherche des créneaux disponibles pour une réservation rapide
506
+ * @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
507
+ * @param {*} [options] Override http request option.
508
+ * @throws {RequiredError}
509
+ */
510
+ 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));
512
+ },
347
513
  };
348
514
  };
349
515
  exports.BookingsApiFactory = BookingsApiFactory;
@@ -364,6 +530,16 @@ class BookingsApi extends base_1.BaseAPI {
364
530
  getBookingHistory(requestParameters, options) {
365
531
  return (0, exports.BookingsApiFp)(this.configuration).getBookingHistory(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
366
532
  }
533
+ /**
534
+ * Recherche des créneaux disponibles pour une réservation rapide
535
+ * @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
536
+ * @param {*} [options] Override http request option.
537
+ * @throws {RequiredError}
538
+ * @memberof BookingsApi
539
+ */
540
+ 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));
542
+ }
367
543
  }
368
544
  exports.BookingsApi = BookingsApi;
369
545
  /**
@@ -547,7 +723,7 @@ exports.BookingsManagerApi = BookingsManagerApi;
547
723
  const BookingsStaffApiAxiosParamCreator = function (configuration) {
548
724
  return {
549
725
  /**
550
- * Check-in des joueurs
726
+ * Check-in des joueurs only for club with payment features
551
727
  * @param {string} bookingId
552
728
  * @param {CheckInPlayersRequest} checkInPlayersRequest
553
729
  * @param {*} [options] Override http request option.
@@ -748,7 +924,7 @@ const BookingsStaffApiFp = function (configuration) {
748
924
  const localVarAxiosParamCreator = (0, exports.BookingsStaffApiAxiosParamCreator)(configuration);
749
925
  return {
750
926
  /**
751
- * Check-in des joueurs
927
+ * Check-in des joueurs only for club with payment features
752
928
  * @param {string} bookingId
753
929
  * @param {CheckInPlayersRequest} checkInPlayersRequest
754
930
  * @param {*} [options] Override http request option.
@@ -849,7 +1025,7 @@ const BookingsStaffApiFactory = function (configuration, basePath, axios) {
849
1025
  const localVarFp = (0, exports.BookingsStaffApiFp)(configuration);
850
1026
  return {
851
1027
  /**
852
- * Check-in des joueurs
1028
+ * Check-in des joueurs only for club with payment features
853
1029
  * @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
854
1030
  * @param {*} [options] Override http request option.
855
1031
  * @throws {RequiredError}
@@ -913,7 +1089,7 @@ exports.BookingsStaffApiFactory = BookingsStaffApiFactory;
913
1089
  */
914
1090
  class BookingsStaffApi extends base_1.BaseAPI {
915
1091
  /**
916
- * Check-in des joueurs
1092
+ * Check-in des joueurs only for club with payment features
917
1093
  * @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
918
1094
  * @param {*} [options] Override http request option.
919
1095
  * @throws {RequiredError}
@@ -5284,13 +5460,44 @@ exports.DefaultApi = DefaultApi;
5284
5460
  */
5285
5461
  const EventsApiAxiosParamCreator = function (configuration) {
5286
5462
  return {
5463
+ /**
5464
+ * Get a specific event by ID
5465
+ * @param {string} eventId
5466
+ * @param {*} [options] Override http request option.
5467
+ * @throws {RequiredError}
5468
+ */
5469
+ getEventById: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
5470
+ // verify required parameter 'eventId' is not null or undefined
5471
+ (0, common_1.assertParamExists)('getEventById', 'eventId', eventId);
5472
+ const localVarPath = `/api/events/{eventId}`
5473
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
5474
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5475
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5476
+ let baseOptions;
5477
+ if (configuration) {
5478
+ baseOptions = configuration.baseOptions;
5479
+ }
5480
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5481
+ const localVarHeaderParameter = {};
5482
+ const localVarQueryParameter = {};
5483
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5484
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5485
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5486
+ return {
5487
+ url: (0, common_1.toPathString)(localVarUrlObj),
5488
+ options: localVarRequestOptions,
5489
+ };
5490
+ }),
5287
5491
  /**
5288
5492
  * Get all published events for a club
5289
5493
  * @param {string} [clubId]
5494
+ * @param {GetPublishedEventsByClubIdVisibilityTypeEnum} [visibilityType]
5495
+ * @param {GetPublishedEventsByClubIdTypeEnum} [type]
5496
+ * @param {string} [sportId]
5290
5497
  * @param {*} [options] Override http request option.
5291
5498
  * @throws {RequiredError}
5292
5499
  */
5293
- getPublishedEventsByClubId: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
5500
+ getPublishedEventsByClubId: (clubId_1, visibilityType_1, type_1, sportId_1, ...args_1) => __awaiter(this, [clubId_1, visibilityType_1, type_1, sportId_1, ...args_1], void 0, function* (clubId, visibilityType, type, sportId, options = {}) {
5294
5501
  const localVarPath = `/api/events`;
5295
5502
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5296
5503
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -5304,6 +5511,15 @@ const EventsApiAxiosParamCreator = function (configuration) {
5304
5511
  if (clubId !== undefined) {
5305
5512
  localVarQueryParameter['clubId'] = clubId;
5306
5513
  }
5514
+ if (visibilityType !== undefined) {
5515
+ localVarQueryParameter['visibilityType'] = visibilityType;
5516
+ }
5517
+ if (type !== undefined) {
5518
+ localVarQueryParameter['type'] = type;
5519
+ }
5520
+ if (sportId !== undefined) {
5521
+ localVarQueryParameter['sportId'] = sportId;
5522
+ }
5307
5523
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5308
5524
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5309
5525
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -5313,18 +5529,18 @@ const EventsApiAxiosParamCreator = function (configuration) {
5313
5529
  };
5314
5530
  }),
5315
5531
  /**
5316
- * Register for an event
5532
+ * Join an event (user)
5317
5533
  * @param {string} eventId
5318
- * @param {any} body
5534
+ * @param {JoinEventRequest} joinEventRequest
5319
5535
  * @param {*} [options] Override http request option.
5320
5536
  * @throws {RequiredError}
5321
5537
  */
5322
- registerForEvent: (eventId_1, body_1, ...args_1) => __awaiter(this, [eventId_1, body_1, ...args_1], void 0, function* (eventId, body, options = {}) {
5538
+ joinEvent: (eventId_1, joinEventRequest_1, ...args_1) => __awaiter(this, [eventId_1, joinEventRequest_1, ...args_1], void 0, function* (eventId, joinEventRequest, options = {}) {
5323
5539
  // verify required parameter 'eventId' is not null or undefined
5324
- (0, common_1.assertParamExists)('registerForEvent', 'eventId', eventId);
5325
- // verify required parameter 'body' is not null or undefined
5326
- (0, common_1.assertParamExists)('registerForEvent', 'body', body);
5327
- const localVarPath = `/api/events/{eventId}/register`
5540
+ (0, common_1.assertParamExists)('joinEvent', 'eventId', eventId);
5541
+ // verify required parameter 'joinEventRequest' is not null or undefined
5542
+ (0, common_1.assertParamExists)('joinEvent', 'joinEventRequest', joinEventRequest);
5543
+ const localVarPath = `/api/events/{eventId}/join`
5328
5544
  .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
5329
5545
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5330
5546
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -5342,7 +5558,38 @@ const EventsApiAxiosParamCreator = function (configuration) {
5342
5558
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5343
5559
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5344
5560
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5345
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
5561
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(joinEventRequest, localVarRequestOptions, configuration);
5562
+ return {
5563
+ url: (0, common_1.toPathString)(localVarUrlObj),
5564
+ options: localVarRequestOptions,
5565
+ };
5566
+ }),
5567
+ /**
5568
+ * Leave an event (user)
5569
+ * @param {string} eventId
5570
+ * @param {*} [options] Override http request option.
5571
+ * @throws {RequiredError}
5572
+ */
5573
+ leaveEvent: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
5574
+ // verify required parameter 'eventId' is not null or undefined
5575
+ (0, common_1.assertParamExists)('leaveEvent', 'eventId', eventId);
5576
+ const localVarPath = `/api/events/{eventId}/leave`
5577
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
5578
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5579
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5580
+ let baseOptions;
5581
+ if (configuration) {
5582
+ baseOptions = configuration.baseOptions;
5583
+ }
5584
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
5585
+ const localVarHeaderParameter = {};
5586
+ const localVarQueryParameter = {};
5587
+ // authentication bearerAuth required
5588
+ // http bearer authentication required
5589
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5590
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5591
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5592
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5346
5593
  return {
5347
5594
  url: (0, common_1.toPathString)(localVarUrlObj),
5348
5595
  options: localVarRequestOptions,
@@ -5358,34 +5605,67 @@ exports.EventsApiAxiosParamCreator = EventsApiAxiosParamCreator;
5358
5605
  const EventsApiFp = function (configuration) {
5359
5606
  const localVarAxiosParamCreator = (0, exports.EventsApiAxiosParamCreator)(configuration);
5360
5607
  return {
5608
+ /**
5609
+ * Get a specific event by ID
5610
+ * @param {string} eventId
5611
+ * @param {*} [options] Override http request option.
5612
+ * @throws {RequiredError}
5613
+ */
5614
+ getEventById(eventId, options) {
5615
+ return __awaiter(this, void 0, void 0, function* () {
5616
+ var _a, _b, _c;
5617
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventById(eventId, options);
5618
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5619
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsApi.getEventById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5620
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5621
+ });
5622
+ },
5361
5623
  /**
5362
5624
  * Get all published events for a club
5363
5625
  * @param {string} [clubId]
5626
+ * @param {GetPublishedEventsByClubIdVisibilityTypeEnum} [visibilityType]
5627
+ * @param {GetPublishedEventsByClubIdTypeEnum} [type]
5628
+ * @param {string} [sportId]
5364
5629
  * @param {*} [options] Override http request option.
5365
5630
  * @throws {RequiredError}
5366
5631
  */
5367
- getPublishedEventsByClubId(clubId, options) {
5632
+ getPublishedEventsByClubId(clubId, visibilityType, type, sportId, options) {
5368
5633
  return __awaiter(this, void 0, void 0, function* () {
5369
5634
  var _a, _b, _c;
5370
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublishedEventsByClubId(clubId, options);
5635
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublishedEventsByClubId(clubId, visibilityType, type, sportId, options);
5371
5636
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5372
5637
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsApi.getPublishedEventsByClubId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5373
5638
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5374
5639
  });
5375
5640
  },
5376
5641
  /**
5377
- * Register for an event
5642
+ * Join an event (user)
5378
5643
  * @param {string} eventId
5379
- * @param {any} body
5644
+ * @param {JoinEventRequest} joinEventRequest
5380
5645
  * @param {*} [options] Override http request option.
5381
5646
  * @throws {RequiredError}
5382
5647
  */
5383
- registerForEvent(eventId, body, options) {
5648
+ joinEvent(eventId, joinEventRequest, options) {
5384
5649
  return __awaiter(this, void 0, void 0, function* () {
5385
5650
  var _a, _b, _c;
5386
- const localVarAxiosArgs = yield localVarAxiosParamCreator.registerForEvent(eventId, body, options);
5651
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.joinEvent(eventId, joinEventRequest, options);
5387
5652
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5388
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsApi.registerForEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5653
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsApi.joinEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5654
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5655
+ });
5656
+ },
5657
+ /**
5658
+ * Leave an event (user)
5659
+ * @param {string} eventId
5660
+ * @param {*} [options] Override http request option.
5661
+ * @throws {RequiredError}
5662
+ */
5663
+ leaveEvent(eventId, options) {
5664
+ return __awaiter(this, void 0, void 0, function* () {
5665
+ var _a, _b, _c;
5666
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.leaveEvent(eventId, options);
5667
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5668
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsApi.leaveEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5389
5669
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5390
5670
  });
5391
5671
  },
@@ -5399,6 +5679,15 @@ exports.EventsApiFp = EventsApiFp;
5399
5679
  const EventsApiFactory = function (configuration, basePath, axios) {
5400
5680
  const localVarFp = (0, exports.EventsApiFp)(configuration);
5401
5681
  return {
5682
+ /**
5683
+ * Get a specific event by ID
5684
+ * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
5685
+ * @param {*} [options] Override http request option.
5686
+ * @throws {RequiredError}
5687
+ */
5688
+ getEventById(requestParameters, options) {
5689
+ return localVarFp.getEventById(requestParameters.eventId, options).then((request) => request(axios, basePath));
5690
+ },
5402
5691
  /**
5403
5692
  * Get all published events for a club
5404
5693
  * @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
@@ -5406,16 +5695,25 @@ const EventsApiFactory = function (configuration, basePath, axios) {
5406
5695
  * @throws {RequiredError}
5407
5696
  */
5408
5697
  getPublishedEventsByClubId(requestParameters = {}, options) {
5409
- return localVarFp.getPublishedEventsByClubId(requestParameters.clubId, options).then((request) => request(axios, basePath));
5698
+ return localVarFp.getPublishedEventsByClubId(requestParameters.clubId, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
5410
5699
  },
5411
5700
  /**
5412
- * Register for an event
5413
- * @param {EventsApiRegisterForEventRequest} requestParameters Request parameters.
5701
+ * Join an event (user)
5702
+ * @param {EventsApiJoinEventRequest} requestParameters Request parameters.
5414
5703
  * @param {*} [options] Override http request option.
5415
5704
  * @throws {RequiredError}
5416
5705
  */
5417
- registerForEvent(requestParameters, options) {
5418
- return localVarFp.registerForEvent(requestParameters.eventId, requestParameters.body, options).then((request) => request(axios, basePath));
5706
+ joinEvent(requestParameters, options) {
5707
+ return localVarFp.joinEvent(requestParameters.eventId, requestParameters.joinEventRequest, options).then((request) => request(axios, basePath));
5708
+ },
5709
+ /**
5710
+ * Leave an event (user)
5711
+ * @param {EventsApiLeaveEventRequest} requestParameters Request parameters.
5712
+ * @param {*} [options] Override http request option.
5713
+ * @throws {RequiredError}
5714
+ */
5715
+ leaveEvent(requestParameters, options) {
5716
+ return localVarFp.leaveEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
5419
5717
  },
5420
5718
  };
5421
5719
  };
@@ -5427,6 +5725,16 @@ exports.EventsApiFactory = EventsApiFactory;
5427
5725
  * @extends {BaseAPI}
5428
5726
  */
5429
5727
  class EventsApi extends base_1.BaseAPI {
5728
+ /**
5729
+ * Get a specific event by ID
5730
+ * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
5731
+ * @param {*} [options] Override http request option.
5732
+ * @throws {RequiredError}
5733
+ * @memberof EventsApi
5734
+ */
5735
+ getEventById(requestParameters, options) {
5736
+ return (0, exports.EventsApiFp)(this.configuration).getEventById(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
5737
+ }
5430
5738
  /**
5431
5739
  * Get all published events for a club
5432
5740
  * @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
@@ -5435,20 +5743,45 @@ class EventsApi extends base_1.BaseAPI {
5435
5743
  * @memberof EventsApi
5436
5744
  */
5437
5745
  getPublishedEventsByClubId(requestParameters = {}, options) {
5438
- return (0, exports.EventsApiFp)(this.configuration).getPublishedEventsByClubId(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
5746
+ return (0, exports.EventsApiFp)(this.configuration).getPublishedEventsByClubId(requestParameters.clubId, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
5747
+ }
5748
+ /**
5749
+ * Join an event (user)
5750
+ * @param {EventsApiJoinEventRequest} requestParameters Request parameters.
5751
+ * @param {*} [options] Override http request option.
5752
+ * @throws {RequiredError}
5753
+ * @memberof EventsApi
5754
+ */
5755
+ joinEvent(requestParameters, options) {
5756
+ return (0, exports.EventsApiFp)(this.configuration).joinEvent(requestParameters.eventId, requestParameters.joinEventRequest, options).then((request) => request(this.axios, this.basePath));
5439
5757
  }
5440
5758
  /**
5441
- * Register for an event
5442
- * @param {EventsApiRegisterForEventRequest} requestParameters Request parameters.
5759
+ * Leave an event (user)
5760
+ * @param {EventsApiLeaveEventRequest} requestParameters Request parameters.
5443
5761
  * @param {*} [options] Override http request option.
5444
5762
  * @throws {RequiredError}
5445
5763
  * @memberof EventsApi
5446
5764
  */
5447
- registerForEvent(requestParameters, options) {
5448
- return (0, exports.EventsApiFp)(this.configuration).registerForEvent(requestParameters.eventId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
5765
+ leaveEvent(requestParameters, options) {
5766
+ return (0, exports.EventsApiFp)(this.configuration).leaveEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
5449
5767
  }
5450
5768
  }
5451
5769
  exports.EventsApi = EventsApi;
5770
+ /**
5771
+ * @export
5772
+ */
5773
+ exports.GetPublishedEventsByClubIdVisibilityTypeEnum = {
5774
+ Public: 'public',
5775
+ Private: 'private',
5776
+ Invitation: 'invitation'
5777
+ };
5778
+ /**
5779
+ * @export
5780
+ */
5781
+ exports.GetPublishedEventsByClubIdTypeEnum = {
5782
+ Event: 'event',
5783
+ Closure: 'closure'
5784
+ };
5452
5785
  /**
5453
5786
  * EventsManagerApi - axios parameter creator
5454
5787
  * @export
@@ -5580,6 +5913,42 @@ const EventsManagerApiAxiosParamCreator = function (configuration) {
5580
5913
  options: localVarRequestOptions,
5581
5914
  };
5582
5915
  }),
5916
+ /**
5917
+ * Update an event (manager)
5918
+ * @param {string} eventId
5919
+ * @param {UpdateEventRequest} updateEventRequest
5920
+ * @param {*} [options] Override http request option.
5921
+ * @throws {RequiredError}
5922
+ */
5923
+ updateEvent: (eventId_1, updateEventRequest_1, ...args_1) => __awaiter(this, [eventId_1, updateEventRequest_1, ...args_1], void 0, function* (eventId, updateEventRequest, options = {}) {
5924
+ // verify required parameter 'eventId' is not null or undefined
5925
+ (0, common_1.assertParamExists)('updateEvent', 'eventId', eventId);
5926
+ // verify required parameter 'updateEventRequest' is not null or undefined
5927
+ (0, common_1.assertParamExists)('updateEvent', 'updateEventRequest', updateEventRequest);
5928
+ const localVarPath = `/api/events/manager/updateEvent/{eventId}`
5929
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
5930
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5931
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5932
+ let baseOptions;
5933
+ if (configuration) {
5934
+ baseOptions = configuration.baseOptions;
5935
+ }
5936
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
5937
+ const localVarHeaderParameter = {};
5938
+ const localVarQueryParameter = {};
5939
+ // authentication bearerAuth required
5940
+ // http bearer authentication required
5941
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5942
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5943
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5944
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5945
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5946
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateEventRequest, localVarRequestOptions, configuration);
5947
+ return {
5948
+ url: (0, common_1.toPathString)(localVarUrlObj),
5949
+ options: localVarRequestOptions,
5950
+ };
5951
+ }),
5583
5952
  };
5584
5953
  };
5585
5954
  exports.EventsManagerApiAxiosParamCreator = EventsManagerApiAxiosParamCreator;
@@ -5650,6 +6019,22 @@ const EventsManagerApiFp = function (configuration) {
5650
6019
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5651
6020
  });
5652
6021
  },
6022
+ /**
6023
+ * Update an event (manager)
6024
+ * @param {string} eventId
6025
+ * @param {UpdateEventRequest} updateEventRequest
6026
+ * @param {*} [options] Override http request option.
6027
+ * @throws {RequiredError}
6028
+ */
6029
+ updateEvent(eventId, updateEventRequest, options) {
6030
+ return __awaiter(this, void 0, void 0, function* () {
6031
+ var _a, _b, _c;
6032
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateEvent(eventId, updateEventRequest, options);
6033
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6034
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsManagerApi.updateEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6035
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6036
+ });
6037
+ },
5653
6038
  };
5654
6039
  };
5655
6040
  exports.EventsManagerApiFp = EventsManagerApiFp;
@@ -5696,6 +6081,15 @@ const EventsManagerApiFactory = function (configuration, basePath, axios) {
5696
6081
  unpublishEvent(requestParameters, options) {
5697
6082
  return localVarFp.unpublishEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
5698
6083
  },
6084
+ /**
6085
+ * Update an event (manager)
6086
+ * @param {EventsManagerApiUpdateEventRequest} requestParameters Request parameters.
6087
+ * @param {*} [options] Override http request option.
6088
+ * @throws {RequiredError}
6089
+ */
6090
+ updateEvent(requestParameters, options) {
6091
+ return localVarFp.updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(axios, basePath));
6092
+ },
5699
6093
  };
5700
6094
  };
5701
6095
  exports.EventsManagerApiFactory = EventsManagerApiFactory;
@@ -5746,6 +6140,16 @@ class EventsManagerApi extends base_1.BaseAPI {
5746
6140
  unpublishEvent(requestParameters, options) {
5747
6141
  return (0, exports.EventsManagerApiFp)(this.configuration).unpublishEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
5748
6142
  }
6143
+ /**
6144
+ * Update an event (manager)
6145
+ * @param {EventsManagerApiUpdateEventRequest} requestParameters Request parameters.
6146
+ * @param {*} [options] Override http request option.
6147
+ * @throws {RequiredError}
6148
+ * @memberof EventsManagerApi
6149
+ */
6150
+ updateEvent(requestParameters, options) {
6151
+ return (0, exports.EventsManagerApiFp)(this.configuration).updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(this.axios, this.basePath));
6152
+ }
5749
6153
  }
5750
6154
  exports.EventsManagerApi = EventsManagerApi;
5751
6155
  /**
@@ -5851,7 +6255,7 @@ exports.EventsStaffApi = EventsStaffApi;
5851
6255
  const SportsManagerApiAxiosParamCreator = function (configuration) {
5852
6256
  return {
5853
6257
  /**
5854
- * Crée un sport dans un club
6258
+ * Crée un sport (global) avec createdBy = clubId de l\'utilisateur
5855
6259
  * @param {CreateSportRequest} createSportRequest
5856
6260
  * @param {*} [options] Override http request option.
5857
6261
  * @throws {RequiredError}
@@ -5883,7 +6287,7 @@ const SportsManagerApiAxiosParamCreator = function (configuration) {
5883
6287
  };
5884
6288
  }),
5885
6289
  /**
5886
- * Supprime un sport
6290
+ * Supprime un sport (interdit si vérifié)
5887
6291
  * @param {string} id
5888
6292
  * @param {*} [options] Override http request option.
5889
6293
  * @throws {RequiredError}
@@ -5914,7 +6318,7 @@ const SportsManagerApiAxiosParamCreator = function (configuration) {
5914
6318
  };
5915
6319
  }),
5916
6320
  /**
5917
- * Met à jour un sport
6321
+ * Met à jour un sport (interdit si vérifié)
5918
6322
  * @param {string} id
5919
6323
  * @param {UpdateSportRequest} updateSportRequest
5920
6324
  * @param {*} [options] Override http request option.
@@ -5960,7 +6364,7 @@ const SportsManagerApiFp = function (configuration) {
5960
6364
  const localVarAxiosParamCreator = (0, exports.SportsManagerApiAxiosParamCreator)(configuration);
5961
6365
  return {
5962
6366
  /**
5963
- * Crée un sport dans un club
6367
+ * Crée un sport (global) avec createdBy = clubId de l\'utilisateur
5964
6368
  * @param {CreateSportRequest} createSportRequest
5965
6369
  * @param {*} [options] Override http request option.
5966
6370
  * @throws {RequiredError}
@@ -5975,7 +6379,7 @@ const SportsManagerApiFp = function (configuration) {
5975
6379
  });
5976
6380
  },
5977
6381
  /**
5978
- * Supprime un sport
6382
+ * Supprime un sport (interdit si vérifié)
5979
6383
  * @param {string} id
5980
6384
  * @param {*} [options] Override http request option.
5981
6385
  * @throws {RequiredError}
@@ -5990,7 +6394,7 @@ const SportsManagerApiFp = function (configuration) {
5990
6394
  });
5991
6395
  },
5992
6396
  /**
5993
- * Met à jour un sport
6397
+ * Met à jour un sport (interdit si vérifié)
5994
6398
  * @param {string} id
5995
6399
  * @param {UpdateSportRequest} updateSportRequest
5996
6400
  * @param {*} [options] Override http request option.
@@ -6016,7 +6420,7 @@ const SportsManagerApiFactory = function (configuration, basePath, axios) {
6016
6420
  const localVarFp = (0, exports.SportsManagerApiFp)(configuration);
6017
6421
  return {
6018
6422
  /**
6019
- * Crée un sport dans un club
6423
+ * Crée un sport (global) avec createdBy = clubId de l\'utilisateur
6020
6424
  * @param {SportsManagerApiCreateSportRequest} requestParameters Request parameters.
6021
6425
  * @param {*} [options] Override http request option.
6022
6426
  * @throws {RequiredError}
@@ -6025,7 +6429,7 @@ const SportsManagerApiFactory = function (configuration, basePath, axios) {
6025
6429
  return localVarFp.createSport(requestParameters.createSportRequest, options).then((request) => request(axios, basePath));
6026
6430
  },
6027
6431
  /**
6028
- * Supprime un sport
6432
+ * Supprime un sport (interdit si vérifié)
6029
6433
  * @param {SportsManagerApiDeleteSportRequest} requestParameters Request parameters.
6030
6434
  * @param {*} [options] Override http request option.
6031
6435
  * @throws {RequiredError}
@@ -6034,7 +6438,7 @@ const SportsManagerApiFactory = function (configuration, basePath, axios) {
6034
6438
  return localVarFp.deleteSport(requestParameters.id, options).then((request) => request(axios, basePath));
6035
6439
  },
6036
6440
  /**
6037
- * Met à jour un sport
6441
+ * Met à jour un sport (interdit si vérifié)
6038
6442
  * @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
6039
6443
  * @param {*} [options] Override http request option.
6040
6444
  * @throws {RequiredError}
@@ -6053,7 +6457,7 @@ exports.SportsManagerApiFactory = SportsManagerApiFactory;
6053
6457
  */
6054
6458
  class SportsManagerApi extends base_1.BaseAPI {
6055
6459
  /**
6056
- * Crée un sport dans un club
6460
+ * Crée un sport (global) avec createdBy = clubId de l\'utilisateur
6057
6461
  * @param {SportsManagerApiCreateSportRequest} requestParameters Request parameters.
6058
6462
  * @param {*} [options] Override http request option.
6059
6463
  * @throws {RequiredError}
@@ -6063,7 +6467,7 @@ class SportsManagerApi extends base_1.BaseAPI {
6063
6467
  return (0, exports.SportsManagerApiFp)(this.configuration).createSport(requestParameters.createSportRequest, options).then((request) => request(this.axios, this.basePath));
6064
6468
  }
6065
6469
  /**
6066
- * Supprime un sport
6470
+ * Supprime un sport (interdit si vérifié)
6067
6471
  * @param {SportsManagerApiDeleteSportRequest} requestParameters Request parameters.
6068
6472
  * @param {*} [options] Override http request option.
6069
6473
  * @throws {RequiredError}
@@ -6073,7 +6477,7 @@ class SportsManagerApi extends base_1.BaseAPI {
6073
6477
  return (0, exports.SportsManagerApiFp)(this.configuration).deleteSport(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
6074
6478
  }
6075
6479
  /**
6076
- * Met à jour un sport
6480
+ * Met à jour un sport (interdit si vérifié)
6077
6481
  * @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
6078
6482
  * @param {*} [options] Override http request option.
6079
6483
  * @throws {RequiredError}
@@ -6091,7 +6495,7 @@ exports.SportsManagerApi = SportsManagerApi;
6091
6495
  const SportsStaffApiAxiosParamCreator = function (configuration) {
6092
6496
  return {
6093
6497
  /**
6094
- * Récupère la liste des sports d\'un club
6498
+ * Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
6095
6499
  * @param {*} [options] Override http request option.
6096
6500
  * @throws {RequiredError}
6097
6501
  */
@@ -6128,7 +6532,7 @@ const SportsStaffApiFp = function (configuration) {
6128
6532
  const localVarAxiosParamCreator = (0, exports.SportsStaffApiAxiosParamCreator)(configuration);
6129
6533
  return {
6130
6534
  /**
6131
- * Récupère la liste des sports d\'un club
6535
+ * Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
6132
6536
  * @param {*} [options] Override http request option.
6133
6537
  * @throws {RequiredError}
6134
6538
  */
@@ -6152,7 +6556,7 @@ const SportsStaffApiFactory = function (configuration, basePath, axios) {
6152
6556
  const localVarFp = (0, exports.SportsStaffApiFp)(configuration);
6153
6557
  return {
6154
6558
  /**
6155
- * Récupère la liste des sports d\'un club
6559
+ * Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
6156
6560
  * @param {*} [options] Override http request option.
6157
6561
  * @throws {RequiredError}
6158
6562
  */
@@ -6170,7 +6574,7 @@ exports.SportsStaffApiFactory = SportsStaffApiFactory;
6170
6574
  */
6171
6575
  class SportsStaffApi extends base_1.BaseAPI {
6172
6576
  /**
6173
- * Récupère la liste des sports d\'un club
6577
+ * Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
6174
6578
  * @param {*} [options] Override http request option.
6175
6579
  * @throws {RequiredError}
6176
6580
  * @memberof SportsStaffApi
@@ -7556,14 +7960,13 @@ const UsersApiAxiosParamCreator = function (configuration) {
7556
7960
  * @param {string} [sportLevels]
7557
7961
  * @param {number} [limit]
7558
7962
  * @param {number} [offset]
7559
- * @param {boolean} [useLocation]
7560
7963
  * @param {number} [latitude]
7561
7964
  * @param {number} [longitude]
7562
7965
  * @param {number} [radiusInKm]
7563
7966
  * @param {*} [options] Override http request option.
7564
7967
  * @throws {RequiredError}
7565
7968
  */
7566
- listPlayers: (category_1, search_1, gender_1, sharedClub_1, sportLevels_1, limit_1, offset_1, useLocation_1, latitude_1, longitude_1, radiusInKm_1, ...args_1) => __awaiter(this, [category_1, search_1, gender_1, sharedClub_1, sportLevels_1, limit_1, offset_1, useLocation_1, latitude_1, longitude_1, radiusInKm_1, ...args_1], void 0, function* (category, search, gender, sharedClub, sportLevels, limit, offset, useLocation, latitude, longitude, radiusInKm, options = {}) {
7969
+ listPlayers: (category_1, search_1, gender_1, sharedClub_1, sportLevels_1, limit_1, offset_1, latitude_1, longitude_1, radiusInKm_1, ...args_1) => __awaiter(this, [category_1, search_1, gender_1, sharedClub_1, sportLevels_1, limit_1, offset_1, latitude_1, longitude_1, radiusInKm_1, ...args_1], void 0, function* (category, search, gender, sharedClub, sportLevels, limit, offset, latitude, longitude, radiusInKm, options = {}) {
7567
7970
  const localVarPath = `/api/users/players`;
7568
7971
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7569
7972
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -7598,9 +8001,6 @@ const UsersApiAxiosParamCreator = function (configuration) {
7598
8001
  if (offset !== undefined) {
7599
8002
  localVarQueryParameter['offset'] = offset;
7600
8003
  }
7601
- if (useLocation !== undefined) {
7602
- localVarQueryParameter['useLocation'] = useLocation;
7603
- }
7604
8004
  if (latitude !== undefined) {
7605
8005
  localVarQueryParameter['latitude'] = latitude;
7606
8006
  }
@@ -8452,17 +8852,16 @@ const UsersApiFp = function (configuration) {
8452
8852
  * @param {string} [sportLevels]
8453
8853
  * @param {number} [limit]
8454
8854
  * @param {number} [offset]
8455
- * @param {boolean} [useLocation]
8456
8855
  * @param {number} [latitude]
8457
8856
  * @param {number} [longitude]
8458
8857
  * @param {number} [radiusInKm]
8459
8858
  * @param {*} [options] Override http request option.
8460
8859
  * @throws {RequiredError}
8461
8860
  */
8462
- listPlayers(category, search, gender, sharedClub, sportLevels, limit, offset, useLocation, latitude, longitude, radiusInKm, options) {
8861
+ listPlayers(category, search, gender, sharedClub, sportLevels, limit, offset, latitude, longitude, radiusInKm, options) {
8463
8862
  return __awaiter(this, void 0, void 0, function* () {
8464
8863
  var _a, _b, _c;
8465
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listPlayers(category, search, gender, sharedClub, sportLevels, limit, offset, useLocation, latitude, longitude, radiusInKm, options);
8864
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listPlayers(category, search, gender, sharedClub, sportLevels, limit, offset, latitude, longitude, radiusInKm, options);
8466
8865
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8467
8866
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.listPlayers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8468
8867
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -8912,7 +9311,7 @@ const UsersApiFactory = function (configuration, basePath, axios) {
8912
9311
  * @throws {RequiredError}
8913
9312
  */
8914
9313
  listPlayers(requestParameters = {}, options) {
8915
- return localVarFp.listPlayers(requestParameters.category, requestParameters.search, requestParameters.gender, requestParameters.sharedClub, requestParameters.sportLevels, requestParameters.limit, requestParameters.offset, requestParameters.useLocation, requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, options).then((request) => request(axios, basePath));
9314
+ return localVarFp.listPlayers(requestParameters.category, requestParameters.search, requestParameters.gender, requestParameters.sharedClub, requestParameters.sportLevels, requestParameters.limit, requestParameters.offset, requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, options).then((request) => request(axios, basePath));
8916
9315
  },
8917
9316
  /**
8918
9317
  *
@@ -9277,7 +9676,7 @@ class UsersApi extends base_1.BaseAPI {
9277
9676
  * @memberof UsersApi
9278
9677
  */
9279
9678
  listPlayers(requestParameters = {}, options) {
9280
- return (0, exports.UsersApiFp)(this.configuration).listPlayers(requestParameters.category, requestParameters.search, requestParameters.gender, requestParameters.sharedClub, requestParameters.sportLevels, requestParameters.limit, requestParameters.offset, requestParameters.useLocation, requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, options).then((request) => request(this.axios, this.basePath));
9679
+ return (0, exports.UsersApiFp)(this.configuration).listPlayers(requestParameters.category, requestParameters.search, requestParameters.gender, requestParameters.sharedClub, requestParameters.sportLevels, requestParameters.limit, requestParameters.offset, requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, options).then((request) => request(this.axios, this.basePath));
9281
9680
  }
9282
9681
  /**
9283
9682
  *