@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/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.68
7
+ * The version of the OpenAPI document: 1.0.71
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -26,7 +26,7 @@ import globalAxios from 'axios';
26
26
  import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
27
27
  // @ts-ignore
28
28
  import { BASE_PATH, BaseAPI, operationServerMap } from './base';
29
- export const BookingHistoryPerformedByTypeEnum = {
29
+ export const BookingHistoryPopulatedPerformedByTypeEnum = {
30
30
  User: 'user',
31
31
  Manager: 'manager',
32
32
  System: 'system'
@@ -38,9 +38,10 @@ export const BookingHistoryPerformedByTypeEnum = {
38
38
  */
39
39
  export const BookingStatus = {
40
40
  Paid: 'paid',
41
+ Validated: 'validated',
41
42
  Active: 'active',
42
43
  Pending: 'pending',
43
- Expired: 'expired',
44
+ ActivePaymentsTimeout: 'active_payments_timeout',
44
45
  Canceled: 'canceled',
45
46
  NoShow: 'no-show'
46
47
  };
@@ -71,6 +72,25 @@ export const CreateClubRoleRequestRoleEnum = {
71
72
  Manager: 'manager',
72
73
  Staff: 'staff'
73
74
  };
75
+ export const CreateEventRequestTypeEnum = {
76
+ Event: 'event',
77
+ Closure: 'closure'
78
+ };
79
+ export const CreateEventRequestRecurringTypeEnum = {
80
+ Unique: 'unique',
81
+ Daily: 'daily',
82
+ Weekly: 'weekly',
83
+ Monthly: 'monthly'
84
+ };
85
+ export const CreateEventRequestParticipationTypeEnum = {
86
+ Solo: 'solo',
87
+ Team: 'team'
88
+ };
89
+ export const CreateEventRequestVisibilityTypeEnum = {
90
+ Public: 'public',
91
+ Private: 'private',
92
+ Invitation: 'invitation'
93
+ };
74
94
  /**
75
95
  *
76
96
  * @export
@@ -82,6 +102,25 @@ export const DiscountType = {
82
102
  Percentage: 'percentage',
83
103
  OffPeak: 'off_peak'
84
104
  };
105
+ export const EventResponseTypeEnum = {
106
+ Event: 'event',
107
+ Closure: 'closure'
108
+ };
109
+ export const EventResponseRecurringTypeEnum = {
110
+ Unique: 'unique',
111
+ Daily: 'daily',
112
+ Weekly: 'weekly',
113
+ Monthly: 'monthly'
114
+ };
115
+ export const EventResponseParticipationTypeEnum = {
116
+ Solo: 'solo',
117
+ Team: 'team'
118
+ };
119
+ export const EventResponseVisibilityTypeEnum = {
120
+ Public: 'public',
121
+ Private: 'private',
122
+ Invitation: 'invitation'
123
+ };
85
124
  /**
86
125
  *
87
126
  * @export
@@ -131,6 +170,17 @@ export const PlayerCategoryId = {
131
170
  export const RegisterRequestBodyLocationTypeEnum = {
132
171
  Point: 'Point'
133
172
  };
173
+ /**
174
+ *
175
+ * @export
176
+ * @enum {string}
177
+ */
178
+ export const SportKey = {
179
+ Padel: 'Padel',
180
+ Tennis: 'Tennis',
181
+ Pickleball: 'Pickleball',
182
+ Autres: 'Autres'
183
+ };
134
184
  export const StripeStripeDeletedProductObjectEnum = {
135
185
  Product: 'product'
136
186
  };
@@ -255,6 +305,25 @@ export const UpdateClubRoleRequestRoleEnum = {
255
305
  Manager: 'manager',
256
306
  Staff: 'staff'
257
307
  };
308
+ export const UpdateEventRequestTypeEnum = {
309
+ Event: 'event',
310
+ Closure: 'closure'
311
+ };
312
+ export const UpdateEventRequestRecurringTypeEnum = {
313
+ Unique: 'unique',
314
+ Daily: 'daily',
315
+ Weekly: 'weekly',
316
+ Monthly: 'monthly'
317
+ };
318
+ export const UpdateEventRequestParticipationTypeEnum = {
319
+ Solo: 'solo',
320
+ Team: 'team'
321
+ };
322
+ export const UpdateEventRequestVisibilityTypeEnum = {
323
+ Public: 'public',
324
+ Private: 'private',
325
+ Invitation: 'invitation'
326
+ };
258
327
  export const UserLocationSummaryTypeEnum = {
259
328
  Point: 'Point'
260
329
  };
@@ -295,6 +364,70 @@ export const BookingsApiAxiosParamCreator = function (configuration) {
295
364
  options: localVarRequestOptions,
296
365
  };
297
366
  }),
367
+ /**
368
+ * Recherche des créneaux disponibles pour une réservation rapide
369
+ * @param {number} [latitude]
370
+ * @param {number} [longitude]
371
+ * @param {number} [radiusInKm]
372
+ * @param {string} [date]
373
+ * @param {string} [sportId]
374
+ * @param {string} [startTime]
375
+ * @param {number} [priceMax]
376
+ * @param {string} [courtTypes]
377
+ * @param {number} [limitPerClub]
378
+ * @param {number} [maxClubs]
379
+ * @param {*} [options] Override http request option.
380
+ * @throws {RequiredError}
381
+ */
382
+ 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 = {}) {
383
+ const localVarPath = `/api/bookings/quick-reservations`;
384
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
385
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
386
+ let baseOptions;
387
+ if (configuration) {
388
+ baseOptions = configuration.baseOptions;
389
+ }
390
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
391
+ const localVarHeaderParameter = {};
392
+ const localVarQueryParameter = {};
393
+ if (latitude !== undefined) {
394
+ localVarQueryParameter['latitude'] = latitude;
395
+ }
396
+ if (longitude !== undefined) {
397
+ localVarQueryParameter['longitude'] = longitude;
398
+ }
399
+ if (radiusInKm !== undefined) {
400
+ localVarQueryParameter['radiusInKm'] = radiusInKm;
401
+ }
402
+ if (date !== undefined) {
403
+ localVarQueryParameter['date'] = date;
404
+ }
405
+ if (sportId !== undefined) {
406
+ localVarQueryParameter['sportId'] = sportId;
407
+ }
408
+ if (startTime !== undefined) {
409
+ localVarQueryParameter['startTime'] = startTime;
410
+ }
411
+ if (priceMax !== undefined) {
412
+ localVarQueryParameter['priceMax'] = priceMax;
413
+ }
414
+ if (courtTypes !== undefined) {
415
+ localVarQueryParameter['courtTypes'] = courtTypes;
416
+ }
417
+ if (limitPerClub !== undefined) {
418
+ localVarQueryParameter['limitPerClub'] = limitPerClub;
419
+ }
420
+ if (maxClubs !== undefined) {
421
+ localVarQueryParameter['maxClubs'] = maxClubs;
422
+ }
423
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
424
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
425
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
426
+ return {
427
+ url: toPathString(localVarUrlObj),
428
+ options: localVarRequestOptions,
429
+ };
430
+ }),
298
431
  };
299
432
  };
300
433
  /**
@@ -319,6 +452,30 @@ export const BookingsApiFp = function (configuration) {
319
452
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
320
453
  });
321
454
  },
455
+ /**
456
+ * Recherche des créneaux disponibles pour une réservation rapide
457
+ * @param {number} [latitude]
458
+ * @param {number} [longitude]
459
+ * @param {number} [radiusInKm]
460
+ * @param {string} [date]
461
+ * @param {string} [sportId]
462
+ * @param {string} [startTime]
463
+ * @param {number} [priceMax]
464
+ * @param {string} [courtTypes]
465
+ * @param {number} [limitPerClub]
466
+ * @param {number} [maxClubs]
467
+ * @param {*} [options] Override http request option.
468
+ * @throws {RequiredError}
469
+ */
470
+ getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options) {
471
+ return __awaiter(this, void 0, void 0, function* () {
472
+ var _a, _b, _c;
473
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options);
474
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
475
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BookingsApi.getQuickReservationSlots']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
476
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
477
+ });
478
+ },
322
479
  };
323
480
  };
324
481
  /**
@@ -337,6 +494,15 @@ export const BookingsApiFactory = function (configuration, basePath, axios) {
337
494
  getBookingHistory(requestParameters, options) {
338
495
  return localVarFp.getBookingHistory(requestParameters.bookingId, options).then((request) => request(axios, basePath));
339
496
  },
497
+ /**
498
+ * Recherche des créneaux disponibles pour une réservation rapide
499
+ * @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
500
+ * @param {*} [options] Override http request option.
501
+ * @throws {RequiredError}
502
+ */
503
+ getQuickReservationSlots(requestParameters = {}, options) {
504
+ 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));
505
+ },
340
506
  };
341
507
  };
342
508
  /**
@@ -356,6 +522,16 @@ export class BookingsApi extends BaseAPI {
356
522
  getBookingHistory(requestParameters, options) {
357
523
  return BookingsApiFp(this.configuration).getBookingHistory(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
358
524
  }
525
+ /**
526
+ * Recherche des créneaux disponibles pour une réservation rapide
527
+ * @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
528
+ * @param {*} [options] Override http request option.
529
+ * @throws {RequiredError}
530
+ * @memberof BookingsApi
531
+ */
532
+ getQuickReservationSlots(requestParameters = {}, options) {
533
+ return 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));
534
+ }
359
535
  }
360
536
  /**
361
537
  * BookingsManagerApi - axios parameter creator
@@ -534,7 +710,7 @@ export class BookingsManagerApi extends BaseAPI {
534
710
  export const BookingsStaffApiAxiosParamCreator = function (configuration) {
535
711
  return {
536
712
  /**
537
- * Check-in des joueurs
713
+ * Check-in des joueurs only for club with payment features
538
714
  * @param {string} bookingId
539
715
  * @param {CheckInPlayersRequest} checkInPlayersRequest
540
716
  * @param {*} [options] Override http request option.
@@ -734,7 +910,7 @@ export const BookingsStaffApiFp = function (configuration) {
734
910
  const localVarAxiosParamCreator = BookingsStaffApiAxiosParamCreator(configuration);
735
911
  return {
736
912
  /**
737
- * Check-in des joueurs
913
+ * Check-in des joueurs only for club with payment features
738
914
  * @param {string} bookingId
739
915
  * @param {CheckInPlayersRequest} checkInPlayersRequest
740
916
  * @param {*} [options] Override http request option.
@@ -834,7 +1010,7 @@ export const BookingsStaffApiFactory = function (configuration, basePath, axios)
834
1010
  const localVarFp = BookingsStaffApiFp(configuration);
835
1011
  return {
836
1012
  /**
837
- * Check-in des joueurs
1013
+ * Check-in des joueurs only for club with payment features
838
1014
  * @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
839
1015
  * @param {*} [options] Override http request option.
840
1016
  * @throws {RequiredError}
@@ -897,7 +1073,7 @@ export const BookingsStaffApiFactory = function (configuration, basePath, axios)
897
1073
  */
898
1074
  export class BookingsStaffApi extends BaseAPI {
899
1075
  /**
900
- * Check-in des joueurs
1076
+ * Check-in des joueurs only for club with payment features
901
1077
  * @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
902
1078
  * @param {*} [options] Override http request option.
903
1079
  * @throws {RequiredError}
@@ -5227,13 +5403,44 @@ export class DefaultApi extends BaseAPI {
5227
5403
  */
5228
5404
  export const EventsApiAxiosParamCreator = function (configuration) {
5229
5405
  return {
5406
+ /**
5407
+ * Get a specific event by ID
5408
+ * @param {string} eventId
5409
+ * @param {*} [options] Override http request option.
5410
+ * @throws {RequiredError}
5411
+ */
5412
+ getEventById: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
5413
+ // verify required parameter 'eventId' is not null or undefined
5414
+ assertParamExists('getEventById', 'eventId', eventId);
5415
+ const localVarPath = `/api/events/{eventId}`
5416
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
5417
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5418
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5419
+ let baseOptions;
5420
+ if (configuration) {
5421
+ baseOptions = configuration.baseOptions;
5422
+ }
5423
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5424
+ const localVarHeaderParameter = {};
5425
+ const localVarQueryParameter = {};
5426
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5427
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5428
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5429
+ return {
5430
+ url: toPathString(localVarUrlObj),
5431
+ options: localVarRequestOptions,
5432
+ };
5433
+ }),
5230
5434
  /**
5231
5435
  * Get all published events for a club
5232
5436
  * @param {string} [clubId]
5437
+ * @param {GetPublishedEventsByClubIdVisibilityTypeEnum} [visibilityType]
5438
+ * @param {GetPublishedEventsByClubIdTypeEnum} [type]
5439
+ * @param {string} [sportId]
5233
5440
  * @param {*} [options] Override http request option.
5234
5441
  * @throws {RequiredError}
5235
5442
  */
5236
- getPublishedEventsByClubId: (clubId_1, ...args_1) => __awaiter(this, [clubId_1, ...args_1], void 0, function* (clubId, options = {}) {
5443
+ 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 = {}) {
5237
5444
  const localVarPath = `/api/events`;
5238
5445
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5239
5446
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5247,6 +5454,15 @@ export const EventsApiAxiosParamCreator = function (configuration) {
5247
5454
  if (clubId !== undefined) {
5248
5455
  localVarQueryParameter['clubId'] = clubId;
5249
5456
  }
5457
+ if (visibilityType !== undefined) {
5458
+ localVarQueryParameter['visibilityType'] = visibilityType;
5459
+ }
5460
+ if (type !== undefined) {
5461
+ localVarQueryParameter['type'] = type;
5462
+ }
5463
+ if (sportId !== undefined) {
5464
+ localVarQueryParameter['sportId'] = sportId;
5465
+ }
5250
5466
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5251
5467
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5252
5468
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -5256,18 +5472,18 @@ export const EventsApiAxiosParamCreator = function (configuration) {
5256
5472
  };
5257
5473
  }),
5258
5474
  /**
5259
- * Register for an event
5475
+ * Join an event (user)
5260
5476
  * @param {string} eventId
5261
- * @param {any} body
5477
+ * @param {JoinEventRequest} joinEventRequest
5262
5478
  * @param {*} [options] Override http request option.
5263
5479
  * @throws {RequiredError}
5264
5480
  */
5265
- registerForEvent: (eventId_1, body_1, ...args_1) => __awaiter(this, [eventId_1, body_1, ...args_1], void 0, function* (eventId, body, options = {}) {
5481
+ joinEvent: (eventId_1, joinEventRequest_1, ...args_1) => __awaiter(this, [eventId_1, joinEventRequest_1, ...args_1], void 0, function* (eventId, joinEventRequest, options = {}) {
5266
5482
  // verify required parameter 'eventId' is not null or undefined
5267
- assertParamExists('registerForEvent', 'eventId', eventId);
5268
- // verify required parameter 'body' is not null or undefined
5269
- assertParamExists('registerForEvent', 'body', body);
5270
- const localVarPath = `/api/events/{eventId}/register`
5483
+ assertParamExists('joinEvent', 'eventId', eventId);
5484
+ // verify required parameter 'joinEventRequest' is not null or undefined
5485
+ assertParamExists('joinEvent', 'joinEventRequest', joinEventRequest);
5486
+ const localVarPath = `/api/events/{eventId}/join`
5271
5487
  .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
5272
5488
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5273
5489
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5285,7 +5501,38 @@ export const EventsApiAxiosParamCreator = function (configuration) {
5285
5501
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5286
5502
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5287
5503
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5288
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
5504
+ localVarRequestOptions.data = serializeDataIfNeeded(joinEventRequest, localVarRequestOptions, configuration);
5505
+ return {
5506
+ url: toPathString(localVarUrlObj),
5507
+ options: localVarRequestOptions,
5508
+ };
5509
+ }),
5510
+ /**
5511
+ * Leave an event (user)
5512
+ * @param {string} eventId
5513
+ * @param {*} [options] Override http request option.
5514
+ * @throws {RequiredError}
5515
+ */
5516
+ leaveEvent: (eventId_1, ...args_1) => __awaiter(this, [eventId_1, ...args_1], void 0, function* (eventId, options = {}) {
5517
+ // verify required parameter 'eventId' is not null or undefined
5518
+ assertParamExists('leaveEvent', 'eventId', eventId);
5519
+ const localVarPath = `/api/events/{eventId}/leave`
5520
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
5521
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5522
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5523
+ let baseOptions;
5524
+ if (configuration) {
5525
+ baseOptions = configuration.baseOptions;
5526
+ }
5527
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
5528
+ const localVarHeaderParameter = {};
5529
+ const localVarQueryParameter = {};
5530
+ // authentication bearerAuth required
5531
+ // http bearer authentication required
5532
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5533
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5534
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5535
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5289
5536
  return {
5290
5537
  url: toPathString(localVarUrlObj),
5291
5538
  options: localVarRequestOptions,
@@ -5300,34 +5547,67 @@ export const EventsApiAxiosParamCreator = function (configuration) {
5300
5547
  export const EventsApiFp = function (configuration) {
5301
5548
  const localVarAxiosParamCreator = EventsApiAxiosParamCreator(configuration);
5302
5549
  return {
5550
+ /**
5551
+ * Get a specific event by ID
5552
+ * @param {string} eventId
5553
+ * @param {*} [options] Override http request option.
5554
+ * @throws {RequiredError}
5555
+ */
5556
+ getEventById(eventId, options) {
5557
+ return __awaiter(this, void 0, void 0, function* () {
5558
+ var _a, _b, _c;
5559
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventById(eventId, options);
5560
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5561
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.getEventById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5562
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5563
+ });
5564
+ },
5303
5565
  /**
5304
5566
  * Get all published events for a club
5305
5567
  * @param {string} [clubId]
5568
+ * @param {GetPublishedEventsByClubIdVisibilityTypeEnum} [visibilityType]
5569
+ * @param {GetPublishedEventsByClubIdTypeEnum} [type]
5570
+ * @param {string} [sportId]
5306
5571
  * @param {*} [options] Override http request option.
5307
5572
  * @throws {RequiredError}
5308
5573
  */
5309
- getPublishedEventsByClubId(clubId, options) {
5574
+ getPublishedEventsByClubId(clubId, visibilityType, type, sportId, options) {
5310
5575
  return __awaiter(this, void 0, void 0, function* () {
5311
5576
  var _a, _b, _c;
5312
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublishedEventsByClubId(clubId, options);
5577
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPublishedEventsByClubId(clubId, visibilityType, type, sportId, options);
5313
5578
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5314
5579
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.getPublishedEventsByClubId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5315
5580
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5316
5581
  });
5317
5582
  },
5318
5583
  /**
5319
- * Register for an event
5584
+ * Join an event (user)
5320
5585
  * @param {string} eventId
5321
- * @param {any} body
5586
+ * @param {JoinEventRequest} joinEventRequest
5322
5587
  * @param {*} [options] Override http request option.
5323
5588
  * @throws {RequiredError}
5324
5589
  */
5325
- registerForEvent(eventId, body, options) {
5590
+ joinEvent(eventId, joinEventRequest, options) {
5326
5591
  return __awaiter(this, void 0, void 0, function* () {
5327
5592
  var _a, _b, _c;
5328
- const localVarAxiosArgs = yield localVarAxiosParamCreator.registerForEvent(eventId, body, options);
5593
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.joinEvent(eventId, joinEventRequest, options);
5329
5594
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5330
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.registerForEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5595
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.joinEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5596
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5597
+ });
5598
+ },
5599
+ /**
5600
+ * Leave an event (user)
5601
+ * @param {string} eventId
5602
+ * @param {*} [options] Override http request option.
5603
+ * @throws {RequiredError}
5604
+ */
5605
+ leaveEvent(eventId, options) {
5606
+ return __awaiter(this, void 0, void 0, function* () {
5607
+ var _a, _b, _c;
5608
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.leaveEvent(eventId, options);
5609
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5610
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsApi.leaveEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5331
5611
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5332
5612
  });
5333
5613
  },
@@ -5340,6 +5620,15 @@ export const EventsApiFp = function (configuration) {
5340
5620
  export const EventsApiFactory = function (configuration, basePath, axios) {
5341
5621
  const localVarFp = EventsApiFp(configuration);
5342
5622
  return {
5623
+ /**
5624
+ * Get a specific event by ID
5625
+ * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
5626
+ * @param {*} [options] Override http request option.
5627
+ * @throws {RequiredError}
5628
+ */
5629
+ getEventById(requestParameters, options) {
5630
+ return localVarFp.getEventById(requestParameters.eventId, options).then((request) => request(axios, basePath));
5631
+ },
5343
5632
  /**
5344
5633
  * Get all published events for a club
5345
5634
  * @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
@@ -5347,16 +5636,25 @@ export const EventsApiFactory = function (configuration, basePath, axios) {
5347
5636
  * @throws {RequiredError}
5348
5637
  */
5349
5638
  getPublishedEventsByClubId(requestParameters = {}, options) {
5350
- return localVarFp.getPublishedEventsByClubId(requestParameters.clubId, options).then((request) => request(axios, basePath));
5639
+ return localVarFp.getPublishedEventsByClubId(requestParameters.clubId, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
5351
5640
  },
5352
5641
  /**
5353
- * Register for an event
5354
- * @param {EventsApiRegisterForEventRequest} requestParameters Request parameters.
5642
+ * Join an event (user)
5643
+ * @param {EventsApiJoinEventRequest} requestParameters Request parameters.
5355
5644
  * @param {*} [options] Override http request option.
5356
5645
  * @throws {RequiredError}
5357
5646
  */
5358
- registerForEvent(requestParameters, options) {
5359
- return localVarFp.registerForEvent(requestParameters.eventId, requestParameters.body, options).then((request) => request(axios, basePath));
5647
+ joinEvent(requestParameters, options) {
5648
+ return localVarFp.joinEvent(requestParameters.eventId, requestParameters.joinEventRequest, options).then((request) => request(axios, basePath));
5649
+ },
5650
+ /**
5651
+ * Leave an event (user)
5652
+ * @param {EventsApiLeaveEventRequest} requestParameters Request parameters.
5653
+ * @param {*} [options] Override http request option.
5654
+ * @throws {RequiredError}
5655
+ */
5656
+ leaveEvent(requestParameters, options) {
5657
+ return localVarFp.leaveEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
5360
5658
  },
5361
5659
  };
5362
5660
  };
@@ -5367,6 +5665,16 @@ export const EventsApiFactory = function (configuration, basePath, axios) {
5367
5665
  * @extends {BaseAPI}
5368
5666
  */
5369
5667
  export class EventsApi extends BaseAPI {
5668
+ /**
5669
+ * Get a specific event by ID
5670
+ * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
5671
+ * @param {*} [options] Override http request option.
5672
+ * @throws {RequiredError}
5673
+ * @memberof EventsApi
5674
+ */
5675
+ getEventById(requestParameters, options) {
5676
+ return EventsApiFp(this.configuration).getEventById(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
5677
+ }
5370
5678
  /**
5371
5679
  * Get all published events for a club
5372
5680
  * @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
@@ -5375,19 +5683,44 @@ export class EventsApi extends BaseAPI {
5375
5683
  * @memberof EventsApi
5376
5684
  */
5377
5685
  getPublishedEventsByClubId(requestParameters = {}, options) {
5378
- return EventsApiFp(this.configuration).getPublishedEventsByClubId(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
5686
+ return EventsApiFp(this.configuration).getPublishedEventsByClubId(requestParameters.clubId, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
5687
+ }
5688
+ /**
5689
+ * Join an event (user)
5690
+ * @param {EventsApiJoinEventRequest} requestParameters Request parameters.
5691
+ * @param {*} [options] Override http request option.
5692
+ * @throws {RequiredError}
5693
+ * @memberof EventsApi
5694
+ */
5695
+ joinEvent(requestParameters, options) {
5696
+ return EventsApiFp(this.configuration).joinEvent(requestParameters.eventId, requestParameters.joinEventRequest, options).then((request) => request(this.axios, this.basePath));
5379
5697
  }
5380
5698
  /**
5381
- * Register for an event
5382
- * @param {EventsApiRegisterForEventRequest} requestParameters Request parameters.
5699
+ * Leave an event (user)
5700
+ * @param {EventsApiLeaveEventRequest} requestParameters Request parameters.
5383
5701
  * @param {*} [options] Override http request option.
5384
5702
  * @throws {RequiredError}
5385
5703
  * @memberof EventsApi
5386
5704
  */
5387
- registerForEvent(requestParameters, options) {
5388
- return EventsApiFp(this.configuration).registerForEvent(requestParameters.eventId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
5705
+ leaveEvent(requestParameters, options) {
5706
+ return EventsApiFp(this.configuration).leaveEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
5389
5707
  }
5390
5708
  }
5709
+ /**
5710
+ * @export
5711
+ */
5712
+ export const GetPublishedEventsByClubIdVisibilityTypeEnum = {
5713
+ Public: 'public',
5714
+ Private: 'private',
5715
+ Invitation: 'invitation'
5716
+ };
5717
+ /**
5718
+ * @export
5719
+ */
5720
+ export const GetPublishedEventsByClubIdTypeEnum = {
5721
+ Event: 'event',
5722
+ Closure: 'closure'
5723
+ };
5391
5724
  /**
5392
5725
  * EventsManagerApi - axios parameter creator
5393
5726
  * @export
@@ -5519,6 +5852,42 @@ export const EventsManagerApiAxiosParamCreator = function (configuration) {
5519
5852
  options: localVarRequestOptions,
5520
5853
  };
5521
5854
  }),
5855
+ /**
5856
+ * Update an event (manager)
5857
+ * @param {string} eventId
5858
+ * @param {UpdateEventRequest} updateEventRequest
5859
+ * @param {*} [options] Override http request option.
5860
+ * @throws {RequiredError}
5861
+ */
5862
+ updateEvent: (eventId_1, updateEventRequest_1, ...args_1) => __awaiter(this, [eventId_1, updateEventRequest_1, ...args_1], void 0, function* (eventId, updateEventRequest, options = {}) {
5863
+ // verify required parameter 'eventId' is not null or undefined
5864
+ assertParamExists('updateEvent', 'eventId', eventId);
5865
+ // verify required parameter 'updateEventRequest' is not null or undefined
5866
+ assertParamExists('updateEvent', 'updateEventRequest', updateEventRequest);
5867
+ const localVarPath = `/api/events/manager/updateEvent/{eventId}`
5868
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
5869
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5870
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5871
+ let baseOptions;
5872
+ if (configuration) {
5873
+ baseOptions = configuration.baseOptions;
5874
+ }
5875
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
5876
+ const localVarHeaderParameter = {};
5877
+ const localVarQueryParameter = {};
5878
+ // authentication bearerAuth required
5879
+ // http bearer authentication required
5880
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5881
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5882
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5883
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5884
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5885
+ localVarRequestOptions.data = serializeDataIfNeeded(updateEventRequest, localVarRequestOptions, configuration);
5886
+ return {
5887
+ url: toPathString(localVarUrlObj),
5888
+ options: localVarRequestOptions,
5889
+ };
5890
+ }),
5522
5891
  };
5523
5892
  };
5524
5893
  /**
@@ -5588,6 +5957,22 @@ export const EventsManagerApiFp = function (configuration) {
5588
5957
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5589
5958
  });
5590
5959
  },
5960
+ /**
5961
+ * Update an event (manager)
5962
+ * @param {string} eventId
5963
+ * @param {UpdateEventRequest} updateEventRequest
5964
+ * @param {*} [options] Override http request option.
5965
+ * @throws {RequiredError}
5966
+ */
5967
+ updateEvent(eventId, updateEventRequest, options) {
5968
+ return __awaiter(this, void 0, void 0, function* () {
5969
+ var _a, _b, _c;
5970
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateEvent(eventId, updateEventRequest, options);
5971
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5972
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsManagerApi.updateEvent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5973
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5974
+ });
5975
+ },
5591
5976
  };
5592
5977
  };
5593
5978
  /**
@@ -5633,6 +6018,15 @@ export const EventsManagerApiFactory = function (configuration, basePath, axios)
5633
6018
  unpublishEvent(requestParameters, options) {
5634
6019
  return localVarFp.unpublishEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
5635
6020
  },
6021
+ /**
6022
+ * Update an event (manager)
6023
+ * @param {EventsManagerApiUpdateEventRequest} requestParameters Request parameters.
6024
+ * @param {*} [options] Override http request option.
6025
+ * @throws {RequiredError}
6026
+ */
6027
+ updateEvent(requestParameters, options) {
6028
+ return localVarFp.updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(axios, basePath));
6029
+ },
5636
6030
  };
5637
6031
  };
5638
6032
  /**
@@ -5682,6 +6076,16 @@ export class EventsManagerApi extends BaseAPI {
5682
6076
  unpublishEvent(requestParameters, options) {
5683
6077
  return EventsManagerApiFp(this.configuration).unpublishEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
5684
6078
  }
6079
+ /**
6080
+ * Update an event (manager)
6081
+ * @param {EventsManagerApiUpdateEventRequest} requestParameters Request parameters.
6082
+ * @param {*} [options] Override http request option.
6083
+ * @throws {RequiredError}
6084
+ * @memberof EventsManagerApi
6085
+ */
6086
+ updateEvent(requestParameters, options) {
6087
+ return EventsManagerApiFp(this.configuration).updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(this.axios, this.basePath));
6088
+ }
5685
6089
  }
5686
6090
  /**
5687
6091
  * EventsStaffApi - axios parameter creator
@@ -5782,7 +6186,7 @@ export class EventsStaffApi extends BaseAPI {
5782
6186
  export const SportsManagerApiAxiosParamCreator = function (configuration) {
5783
6187
  return {
5784
6188
  /**
5785
- * Crée un sport dans un club
6189
+ * Crée un sport (global) avec createdBy = clubId de l\'utilisateur
5786
6190
  * @param {CreateSportRequest} createSportRequest
5787
6191
  * @param {*} [options] Override http request option.
5788
6192
  * @throws {RequiredError}
@@ -5814,7 +6218,7 @@ export const SportsManagerApiAxiosParamCreator = function (configuration) {
5814
6218
  };
5815
6219
  }),
5816
6220
  /**
5817
- * Supprime un sport
6221
+ * Supprime un sport (interdit si vérifié)
5818
6222
  * @param {string} id
5819
6223
  * @param {*} [options] Override http request option.
5820
6224
  * @throws {RequiredError}
@@ -5845,7 +6249,7 @@ export const SportsManagerApiAxiosParamCreator = function (configuration) {
5845
6249
  };
5846
6250
  }),
5847
6251
  /**
5848
- * Met à jour un sport
6252
+ * Met à jour un sport (interdit si vérifié)
5849
6253
  * @param {string} id
5850
6254
  * @param {UpdateSportRequest} updateSportRequest
5851
6255
  * @param {*} [options] Override http request option.
@@ -5890,7 +6294,7 @@ export const SportsManagerApiFp = function (configuration) {
5890
6294
  const localVarAxiosParamCreator = SportsManagerApiAxiosParamCreator(configuration);
5891
6295
  return {
5892
6296
  /**
5893
- * Crée un sport dans un club
6297
+ * Crée un sport (global) avec createdBy = clubId de l\'utilisateur
5894
6298
  * @param {CreateSportRequest} createSportRequest
5895
6299
  * @param {*} [options] Override http request option.
5896
6300
  * @throws {RequiredError}
@@ -5905,7 +6309,7 @@ export const SportsManagerApiFp = function (configuration) {
5905
6309
  });
5906
6310
  },
5907
6311
  /**
5908
- * Supprime un sport
6312
+ * Supprime un sport (interdit si vérifié)
5909
6313
  * @param {string} id
5910
6314
  * @param {*} [options] Override http request option.
5911
6315
  * @throws {RequiredError}
@@ -5920,7 +6324,7 @@ export const SportsManagerApiFp = function (configuration) {
5920
6324
  });
5921
6325
  },
5922
6326
  /**
5923
- * Met à jour un sport
6327
+ * Met à jour un sport (interdit si vérifié)
5924
6328
  * @param {string} id
5925
6329
  * @param {UpdateSportRequest} updateSportRequest
5926
6330
  * @param {*} [options] Override http request option.
@@ -5945,7 +6349,7 @@ export const SportsManagerApiFactory = function (configuration, basePath, axios)
5945
6349
  const localVarFp = SportsManagerApiFp(configuration);
5946
6350
  return {
5947
6351
  /**
5948
- * Crée un sport dans un club
6352
+ * Crée un sport (global) avec createdBy = clubId de l\'utilisateur
5949
6353
  * @param {SportsManagerApiCreateSportRequest} requestParameters Request parameters.
5950
6354
  * @param {*} [options] Override http request option.
5951
6355
  * @throws {RequiredError}
@@ -5954,7 +6358,7 @@ export const SportsManagerApiFactory = function (configuration, basePath, axios)
5954
6358
  return localVarFp.createSport(requestParameters.createSportRequest, options).then((request) => request(axios, basePath));
5955
6359
  },
5956
6360
  /**
5957
- * Supprime un sport
6361
+ * Supprime un sport (interdit si vérifié)
5958
6362
  * @param {SportsManagerApiDeleteSportRequest} requestParameters Request parameters.
5959
6363
  * @param {*} [options] Override http request option.
5960
6364
  * @throws {RequiredError}
@@ -5963,7 +6367,7 @@ export const SportsManagerApiFactory = function (configuration, basePath, axios)
5963
6367
  return localVarFp.deleteSport(requestParameters.id, options).then((request) => request(axios, basePath));
5964
6368
  },
5965
6369
  /**
5966
- * Met à jour un sport
6370
+ * Met à jour un sport (interdit si vérifié)
5967
6371
  * @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
5968
6372
  * @param {*} [options] Override http request option.
5969
6373
  * @throws {RequiredError}
@@ -5981,7 +6385,7 @@ export const SportsManagerApiFactory = function (configuration, basePath, axios)
5981
6385
  */
5982
6386
  export class SportsManagerApi extends BaseAPI {
5983
6387
  /**
5984
- * Crée un sport dans un club
6388
+ * Crée un sport (global) avec createdBy = clubId de l\'utilisateur
5985
6389
  * @param {SportsManagerApiCreateSportRequest} requestParameters Request parameters.
5986
6390
  * @param {*} [options] Override http request option.
5987
6391
  * @throws {RequiredError}
@@ -5991,7 +6395,7 @@ export class SportsManagerApi extends BaseAPI {
5991
6395
  return SportsManagerApiFp(this.configuration).createSport(requestParameters.createSportRequest, options).then((request) => request(this.axios, this.basePath));
5992
6396
  }
5993
6397
  /**
5994
- * Supprime un sport
6398
+ * Supprime un sport (interdit si vérifié)
5995
6399
  * @param {SportsManagerApiDeleteSportRequest} requestParameters Request parameters.
5996
6400
  * @param {*} [options] Override http request option.
5997
6401
  * @throws {RequiredError}
@@ -6001,7 +6405,7 @@ export class SportsManagerApi extends BaseAPI {
6001
6405
  return SportsManagerApiFp(this.configuration).deleteSport(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
6002
6406
  }
6003
6407
  /**
6004
- * Met à jour un sport
6408
+ * Met à jour un sport (interdit si vérifié)
6005
6409
  * @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
6006
6410
  * @param {*} [options] Override http request option.
6007
6411
  * @throws {RequiredError}
@@ -6018,7 +6422,7 @@ export class SportsManagerApi extends BaseAPI {
6018
6422
  export const SportsStaffApiAxiosParamCreator = function (configuration) {
6019
6423
  return {
6020
6424
  /**
6021
- * Récupère la liste des sports d\'un club
6425
+ * Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
6022
6426
  * @param {*} [options] Override http request option.
6023
6427
  * @throws {RequiredError}
6024
6428
  */
@@ -6054,7 +6458,7 @@ export const SportsStaffApiFp = function (configuration) {
6054
6458
  const localVarAxiosParamCreator = SportsStaffApiAxiosParamCreator(configuration);
6055
6459
  return {
6056
6460
  /**
6057
- * Récupère la liste des sports d\'un club
6461
+ * Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
6058
6462
  * @param {*} [options] Override http request option.
6059
6463
  * @throws {RequiredError}
6060
6464
  */
@@ -6077,7 +6481,7 @@ export const SportsStaffApiFactory = function (configuration, basePath, axios) {
6077
6481
  const localVarFp = SportsStaffApiFp(configuration);
6078
6482
  return {
6079
6483
  /**
6080
- * Récupère la liste des sports d\'un club
6484
+ * Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
6081
6485
  * @param {*} [options] Override http request option.
6082
6486
  * @throws {RequiredError}
6083
6487
  */
@@ -6094,7 +6498,7 @@ export const SportsStaffApiFactory = function (configuration, basePath, axios) {
6094
6498
  */
6095
6499
  export class SportsStaffApi extends BaseAPI {
6096
6500
  /**
6097
- * Récupère la liste des sports d\'un club
6501
+ * Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
6098
6502
  * @param {*} [options] Override http request option.
6099
6503
  * @throws {RequiredError}
6100
6504
  * @memberof SportsStaffApi
@@ -7463,14 +7867,13 @@ export const UsersApiAxiosParamCreator = function (configuration) {
7463
7867
  * @param {string} [sportLevels]
7464
7868
  * @param {number} [limit]
7465
7869
  * @param {number} [offset]
7466
- * @param {boolean} [useLocation]
7467
7870
  * @param {number} [latitude]
7468
7871
  * @param {number} [longitude]
7469
7872
  * @param {number} [radiusInKm]
7470
7873
  * @param {*} [options] Override http request option.
7471
7874
  * @throws {RequiredError}
7472
7875
  */
7473
- 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 = {}) {
7876
+ 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 = {}) {
7474
7877
  const localVarPath = `/api/users/players`;
7475
7878
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7476
7879
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -7505,9 +7908,6 @@ export const UsersApiAxiosParamCreator = function (configuration) {
7505
7908
  if (offset !== undefined) {
7506
7909
  localVarQueryParameter['offset'] = offset;
7507
7910
  }
7508
- if (useLocation !== undefined) {
7509
- localVarQueryParameter['useLocation'] = useLocation;
7510
- }
7511
7911
  if (latitude !== undefined) {
7512
7912
  localVarQueryParameter['latitude'] = latitude;
7513
7913
  }
@@ -8358,17 +8758,16 @@ export const UsersApiFp = function (configuration) {
8358
8758
  * @param {string} [sportLevels]
8359
8759
  * @param {number} [limit]
8360
8760
  * @param {number} [offset]
8361
- * @param {boolean} [useLocation]
8362
8761
  * @param {number} [latitude]
8363
8762
  * @param {number} [longitude]
8364
8763
  * @param {number} [radiusInKm]
8365
8764
  * @param {*} [options] Override http request option.
8366
8765
  * @throws {RequiredError}
8367
8766
  */
8368
- listPlayers(category, search, gender, sharedClub, sportLevels, limit, offset, useLocation, latitude, longitude, radiusInKm, options) {
8767
+ listPlayers(category, search, gender, sharedClub, sportLevels, limit, offset, latitude, longitude, radiusInKm, options) {
8369
8768
  return __awaiter(this, void 0, void 0, function* () {
8370
8769
  var _a, _b, _c;
8371
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listPlayers(category, search, gender, sharedClub, sportLevels, limit, offset, useLocation, latitude, longitude, radiusInKm, options);
8770
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listPlayers(category, search, gender, sharedClub, sportLevels, limit, offset, latitude, longitude, radiusInKm, options);
8372
8771
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8373
8772
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.listPlayers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8374
8773
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -8817,7 +9216,7 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
8817
9216
  * @throws {RequiredError}
8818
9217
  */
8819
9218
  listPlayers(requestParameters = {}, options) {
8820
- 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));
9219
+ 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));
8821
9220
  },
8822
9221
  /**
8823
9222
  *
@@ -9181,7 +9580,7 @@ export class UsersApi extends BaseAPI {
9181
9580
  * @memberof UsersApi
9182
9581
  */
9183
9582
  listPlayers(requestParameters = {}, options) {
9184
- return 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));
9583
+ return 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));
9185
9584
  }
9186
9585
  /**
9187
9586
  *