@tennac-booking/sdk 1.0.68 → 1.0.70

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 (48) hide show
  1. package/.openapi-generator/FILES +9 -2
  2. package/README.md +15 -5
  3. package/api.ts +889 -66
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +650 -42
  8. package/dist/api.js +295 -8
  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 +650 -42
  16. package/dist/esm/api.js +292 -5
  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 -3
  31. package/docs/BookingSummary.md +1 -1
  32. package/docs/BookingsApi.md +81 -2
  33. package/docs/BookingsStaffApi.md +3 -3
  34. package/docs/CourtResponse.md +4 -0
  35. package/docs/CreateBookingRequest.md +2 -0
  36. package/docs/{BookingSummaryBookingHistory.md → PlayerCategoriesResponse.md} +5 -3
  37. package/docs/PlayerCategory.md +26 -0
  38. package/docs/PlayerCategoryId.md +16 -0
  39. package/docs/PlayerListResponse.md +26 -0
  40. package/docs/QuickReservationClubSummary.md +28 -0
  41. package/docs/QuickReservationClubSummaryLocation.md +31 -0
  42. package/docs/QuickReservationResponse.md +22 -0
  43. package/docs/QuickReservationSlotSummary.md +42 -0
  44. package/docs/UserInfo.md +4 -0
  45. package/docs/UserProfileResponse.md +2 -0
  46. package/docs/UsersApi.md +122 -0
  47. package/index.ts +1 -1
  48. package/package.json +1 -1
package/api.ts 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.67
7
+ * The version of the OpenAPI document: 1.0.68
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -240,10 +240,10 @@ export interface BookingDetailResponse {
240
240
  'clubAddress'?: BookingSummaryClubAddress | null;
241
241
  /**
242
242
  *
243
- * @type {BookingSummaryBookingHistory}
243
+ * @type {BookingHistoryPopulated}
244
244
  * @memberof BookingDetailResponse
245
245
  */
246
- 'bookingHistory'?: BookingSummaryBookingHistory | null;
246
+ 'bookingHistory'?: BookingHistoryPopulated;
247
247
  /**
248
248
  *
249
249
  * @type {Array<{ [key: string]: any; }>}
@@ -254,66 +254,66 @@ export interface BookingDetailResponse {
254
254
  /**
255
255
  *
256
256
  * @export
257
- * @interface BookingHistory
257
+ * @interface BookingHistoryPopulated
258
258
  */
259
- export interface BookingHistory {
259
+ export interface BookingHistoryPopulated {
260
260
  /**
261
261
  *
262
262
  * @type {string}
263
- * @memberof BookingHistory
263
+ * @memberof BookingHistoryPopulated
264
264
  */
265
265
  'action': string;
266
266
  /**
267
267
  *
268
- * @type {string}
269
- * @memberof BookingHistory
268
+ * @type {UserInfo}
269
+ * @memberof BookingHistoryPopulated
270
270
  */
271
- 'performedBy': string;
271
+ 'performedBy': UserInfo;
272
272
  /**
273
273
  *
274
274
  * @type {string}
275
- * @memberof BookingHistory
275
+ * @memberof BookingHistoryPopulated
276
276
  */
277
- 'performedByType': BookingHistoryPerformedByTypeEnum;
277
+ 'performedByType': BookingHistoryPopulatedPerformedByTypeEnum;
278
278
  /**
279
279
  *
280
280
  * @type {string}
281
- * @memberof BookingHistory
281
+ * @memberof BookingHistoryPopulated
282
282
  */
283
283
  'details': string;
284
284
  /**
285
285
  *
286
286
  * @type {any}
287
- * @memberof BookingHistory
287
+ * @memberof BookingHistoryPopulated
288
288
  */
289
289
  'metadata'?: any;
290
290
  /**
291
291
  *
292
292
  * @type {string}
293
- * @memberof BookingHistory
293
+ * @memberof BookingHistoryPopulated
294
294
  */
295
295
  'previousStatus'?: string;
296
296
  /**
297
297
  *
298
298
  * @type {string}
299
- * @memberof BookingHistory
299
+ * @memberof BookingHistoryPopulated
300
300
  */
301
301
  'newStatus'?: string;
302
302
  /**
303
303
  *
304
304
  * @type {string}
305
- * @memberof BookingHistory
305
+ * @memberof BookingHistoryPopulated
306
306
  */
307
307
  'createdAt'?: string;
308
308
  }
309
309
 
310
- export const BookingHistoryPerformedByTypeEnum = {
310
+ export const BookingHistoryPopulatedPerformedByTypeEnum = {
311
311
  User: 'user',
312
312
  Manager: 'manager',
313
313
  System: 'system'
314
314
  } as const;
315
315
 
316
- export type BookingHistoryPerformedByTypeEnum = typeof BookingHistoryPerformedByTypeEnum[keyof typeof BookingHistoryPerformedByTypeEnum];
316
+ export type BookingHistoryPopulatedPerformedByTypeEnum = typeof BookingHistoryPopulatedPerformedByTypeEnum[keyof typeof BookingHistoryPopulatedPerformedByTypeEnum];
317
317
 
318
318
  /**
319
319
  *
@@ -528,30 +528,92 @@ export interface BookingPopulated {
528
528
  */
529
529
  'id': string;
530
530
  /**
531
- * Statut
531
+ *
532
532
  * @type {string}
533
533
  * @memberof BookingPopulated
534
534
  */
535
- 'status': string;
535
+ 'clubId': string;
536
536
  /**
537
537
  *
538
538
  * @type {UserInfo}
539
539
  * @memberof BookingPopulated
540
540
  */
541
- 'userId': UserInfo;
541
+ 'creator': UserInfo;
542
542
  /**
543
543
  *
544
544
  * @type {SlotInfo}
545
545
  * @memberof BookingPopulated
546
546
  */
547
- 'slotId': SlotInfo;
547
+ 'slotInfos': SlotInfo;
548
548
  /**
549
549
  * Statut des paiements par joueur
550
550
  * @type {Array<PaymentByPlayerInfo>}
551
551
  * @memberof BookingPopulated
552
552
  */
553
- 'paymentByPlayersStatus': Array<PaymentByPlayerInfo>;
553
+ 'paymentByPlayers': Array<PaymentByPlayerInfo>;
554
+ /**
555
+ *
556
+ * @type {boolean}
557
+ * @memberof BookingPopulated
558
+ */
559
+ 'noShowChargeApplied'?: boolean;
560
+ /**
561
+ *
562
+ * @type {number}
563
+ * @memberof BookingPopulated
564
+ */
565
+ 'noShowChargeAmount'?: number;
566
+ /**
567
+ *
568
+ * @type {number}
569
+ * @memberof BookingPopulated
570
+ */
571
+ 'totalPrice': number;
572
+ /**
573
+ *
574
+ * @type {boolean}
575
+ * @memberof BookingPopulated
576
+ */
577
+ 'isCreatorPayingAll': boolean;
578
+ /**
579
+ *
580
+ * @type {Array<string>}
581
+ * @memberof BookingPopulated
582
+ */
583
+ 'playersIds': Array<string>;
584
+ /**
585
+ *
586
+ * @type {Array<BookingHistoryPopulated>}
587
+ * @memberof BookingPopulated
588
+ */
589
+ 'history': Array<BookingHistoryPopulated>;
590
+ /**
591
+ *
592
+ * @type {BookingStatus}
593
+ * @memberof BookingPopulated
594
+ */
595
+ 'status': BookingStatus;
596
+ /**
597
+ *
598
+ * @type {boolean}
599
+ * @memberof BookingPopulated
600
+ */
601
+ 'cancelledByManager'?: boolean;
602
+ /**
603
+ *
604
+ * @type {string}
605
+ * @memberof BookingPopulated
606
+ */
607
+ 'cancelledBy'?: string;
608
+ /**
609
+ *
610
+ * @type {string}
611
+ * @memberof BookingPopulated
612
+ */
613
+ 'cancellationReason'?: string;
554
614
  }
615
+
616
+
555
617
  /**
556
618
  *
557
619
  * @export
@@ -615,10 +677,10 @@ export interface BookingResponseOnsitePaymentsInner {
615
677
  */
616
678
 
617
679
  export const BookingStatus = {
680
+ Paid: 'paid',
618
681
  Active: 'active',
619
- Past: 'past',
620
682
  Pending: 'pending',
621
- Expired: 'expired',
683
+ ActivePaymentsTimeout: 'active_payments_timeout',
622
684
  Canceled: 'canceled',
623
685
  NoShow: 'no-show'
624
686
  } as const;
@@ -706,17 +768,10 @@ export interface BookingSummary {
706
768
  'clubAddress'?: BookingSummaryClubAddress | null;
707
769
  /**
708
770
  *
709
- * @type {BookingSummaryBookingHistory}
771
+ * @type {BookingHistoryPopulated}
710
772
  * @memberof BookingSummary
711
773
  */
712
- 'bookingHistory'?: BookingSummaryBookingHistory | null;
713
- }
714
- /**
715
- *
716
- * @export
717
- * @interface BookingSummaryBookingHistory
718
- */
719
- export interface BookingSummaryBookingHistory {
774
+ 'bookingHistory'?: BookingHistoryPopulated;
720
775
  }
721
776
  /**
722
777
  *
@@ -1547,6 +1602,18 @@ export interface CourtResponse {
1547
1602
  * @memberof CourtResponse
1548
1603
  */
1549
1604
  'comments'?: string;
1605
+ /**
1606
+ *
1607
+ * @type {number}
1608
+ * @memberof CourtResponse
1609
+ */
1610
+ 'pricePerHour'?: number;
1611
+ /**
1612
+ *
1613
+ * @type {number}
1614
+ * @memberof CourtResponse
1615
+ */
1616
+ 'bookingCount'?: number;
1550
1617
  /**
1551
1618
  * Durée par défaut d\'un créneau en minutes
1552
1619
  * @type {number}
@@ -1652,6 +1719,12 @@ export interface CreateBookingRequest {
1652
1719
  * @memberof CreateBookingRequest
1653
1720
  */
1654
1721
  'paymentMethod'?: PaymentMethod;
1722
+ /**
1723
+ * Indique si l\'utilisateur veut utiliser sa méthode de paiement par défaut
1724
+ * @type {boolean}
1725
+ * @memberof CreateBookingRequest
1726
+ */
1727
+ 'useDefaultPaymentMethod'?: boolean;
1655
1728
  }
1656
1729
 
1657
1730
 
@@ -3677,6 +3750,100 @@ export const PlanInterval = {
3677
3750
  export type PlanInterval = typeof PlanInterval[keyof typeof PlanInterval];
3678
3751
 
3679
3752
 
3753
+ /**
3754
+ *
3755
+ * @export
3756
+ * @interface PlayerCategoriesResponse
3757
+ */
3758
+ export interface PlayerCategoriesResponse {
3759
+ /**
3760
+ *
3761
+ * @type {Array<PlayerCategory>}
3762
+ * @memberof PlayerCategoriesResponse
3763
+ */
3764
+ 'categories': Array<PlayerCategory>;
3765
+ }
3766
+ /**
3767
+ *
3768
+ * @export
3769
+ * @interface PlayerCategory
3770
+ */
3771
+ export interface PlayerCategory {
3772
+ /**
3773
+ *
3774
+ * @type {PlayerCategoryId}
3775
+ * @memberof PlayerCategory
3776
+ */
3777
+ 'id': PlayerCategoryId;
3778
+ /**
3779
+ *
3780
+ * @type {string}
3781
+ * @memberof PlayerCategory
3782
+ */
3783
+ 'label': string;
3784
+ /**
3785
+ *
3786
+ * @type {string}
3787
+ * @memberof PlayerCategory
3788
+ */
3789
+ 'description'?: string;
3790
+ /**
3791
+ *
3792
+ * @type {number}
3793
+ * @memberof PlayerCategory
3794
+ */
3795
+ 'limit'?: number;
3796
+ }
3797
+
3798
+
3799
+ /**
3800
+ *
3801
+ * @export
3802
+ * @enum {string}
3803
+ */
3804
+
3805
+ export const PlayerCategoryId = {
3806
+ SameLevel: 'same-level',
3807
+ MutualConnections: 'mutual-connections',
3808
+ ClubMembers: 'club-members',
3809
+ MostActive: 'most-active',
3810
+ Nearby: 'nearby'
3811
+ } as const;
3812
+
3813
+ export type PlayerCategoryId = typeof PlayerCategoryId[keyof typeof PlayerCategoryId];
3814
+
3815
+
3816
+ /**
3817
+ *
3818
+ * @export
3819
+ * @interface PlayerListResponse
3820
+ */
3821
+ export interface PlayerListResponse {
3822
+ /**
3823
+ *
3824
+ * @type {Array<PlayerSummary>}
3825
+ * @memberof PlayerListResponse
3826
+ */
3827
+ 'players': Array<PlayerSummary>;
3828
+ /**
3829
+ *
3830
+ * @type {number}
3831
+ * @memberof PlayerListResponse
3832
+ */
3833
+ 'total'?: number;
3834
+ /**
3835
+ *
3836
+ * @type {boolean}
3837
+ * @memberof PlayerListResponse
3838
+ */
3839
+ 'hasMore'?: boolean;
3840
+ /**
3841
+ *
3842
+ * @type {number}
3843
+ * @memberof PlayerListResponse
3844
+ */
3845
+ 'nextOffset'?: number;
3846
+ }
3680
3847
  /**
3681
3848
  *
3682
3849
  * @export
@@ -3811,13 +3978,13 @@ export interface PlayerSummary {
3811
3978
  * @type {string}
3812
3979
  * @memberof PlayerSummary
3813
3980
  */
3814
- 'lastPlayedAt'?: string;
3981
+ 'lastPlayedAt'?: string | null;
3815
3982
  /**
3816
3983
  *
3817
3984
  * @type {number}
3818
3985
  * @memberof PlayerSummary
3819
3986
  */
3820
- 'playCount'?: number;
3987
+ 'playCount'?: number | null;
3821
3988
  }
3822
3989
 
3823
3990
 
@@ -4011,6 +4178,184 @@ export interface PublishEventResponse {
4011
4178
  */
4012
4179
  'event': EventResponse;
4013
4180
  }
4181
+ /**
4182
+ *
4183
+ * @export
4184
+ * @interface QuickReservationClubSummary
4185
+ */
4186
+ export interface QuickReservationClubSummary {
4187
+ /**
4188
+ * ID du club
4189
+ * @type {string}
4190
+ * @memberof QuickReservationClubSummary
4191
+ */
4192
+ 'clubId': string;
4193
+ /**
4194
+ * Nom du club
4195
+ * @type {string}
4196
+ * @memberof QuickReservationClubSummary
4197
+ */
4198
+ 'clubName': string;
4199
+ /**
4200
+ * Distance par rapport à la recherche, en mètres
4201
+ * @type {number}
4202
+ * @memberof QuickReservationClubSummary
4203
+ */
4204
+ 'distanceInMeters': number;
4205
+ /**
4206
+ *
4207
+ * @type {QuickReservationClubSummaryLocation}
4208
+ * @memberof QuickReservationClubSummary
4209
+ */
4210
+ 'location'?: QuickReservationClubSummaryLocation;
4211
+ /**
4212
+ * Créneaux disponibles correspondant aux filtres
4213
+ * @type {Array<QuickReservationSlotSummary>}
4214
+ * @memberof QuickReservationClubSummary
4215
+ */
4216
+ 'slots': Array<QuickReservationSlotSummary>;
4217
+ }
4218
+ /**
4219
+ * Localisation du club
4220
+ * @export
4221
+ * @interface QuickReservationClubSummaryLocation
4222
+ */
4223
+ export interface QuickReservationClubSummaryLocation {
4224
+ /**
4225
+ *
4226
+ * @type {string}
4227
+ * @memberof QuickReservationClubSummaryLocation
4228
+ */
4229
+ 'country'?: string;
4230
+ /**
4231
+ *
4232
+ * @type {string}
4233
+ * @memberof QuickReservationClubSummaryLocation
4234
+ */
4235
+ 'postalCode'?: string;
4236
+ /**
4237
+ *
4238
+ * @type {string}
4239
+ * @memberof QuickReservationClubSummaryLocation
4240
+ */
4241
+ 'city'?: string;
4242
+ /**
4243
+ *
4244
+ * @type {string}
4245
+ * @memberof QuickReservationClubSummaryLocation
4246
+ */
4247
+ 'address'?: string;
4248
+ /**
4249
+ *
4250
+ * @type {number}
4251
+ * @memberof QuickReservationClubSummaryLocation
4252
+ */
4253
+ 'longitude'?: number;
4254
+ /**
4255
+ *
4256
+ * @type {number}
4257
+ * @memberof QuickReservationClubSummaryLocation
4258
+ */
4259
+ 'latitude'?: number;
4260
+ }
4261
+ /**
4262
+ *
4263
+ * @export
4264
+ * @interface QuickReservationResponse
4265
+ */
4266
+ export interface QuickReservationResponse {
4267
+ /**
4268
+ * Nombre total de clubs contenant des créneaux disponibles
4269
+ * @type {number}
4270
+ * @memberof QuickReservationResponse
4271
+ */
4272
+ 'totalClubs': number;
4273
+ /**
4274
+ * Liste des clubs et de leurs créneaux disponibles
4275
+ * @type {Array<QuickReservationClubSummary>}
4276
+ * @memberof QuickReservationResponse
4277
+ */
4278
+ 'clubs': Array<QuickReservationClubSummary>;
4279
+ }
4280
+ /**
4281
+ *
4282
+ * @export
4283
+ * @interface QuickReservationSlotSummary
4284
+ */
4285
+ export interface QuickReservationSlotSummary {
4286
+ /**
4287
+ * ID du créneau
4288
+ * @type {string}
4289
+ * @memberof QuickReservationSlotSummary
4290
+ */
4291
+ 'id': string;
4292
+ /**
4293
+ * Date de début ISO
4294
+ * @type {string}
4295
+ * @memberof QuickReservationSlotSummary
4296
+ */
4297
+ 'startDate': string;
4298
+ /**
4299
+ * Date de fin ISO
4300
+ * @type {string}
4301
+ * @memberof QuickReservationSlotSummary
4302
+ */
4303
+ 'endDate': string;
4304
+ /**
4305
+ * Durée du créneau en minutes
4306
+ * @type {number}
4307
+ * @memberof QuickReservationSlotSummary
4308
+ */
4309
+ 'durationMinutes': number;
4310
+ /**
4311
+ * ID du terrain
4312
+ * @type {string}
4313
+ * @memberof QuickReservationSlotSummary
4314
+ */
4315
+ 'courtId': string;
4316
+ /**
4317
+ * Nom du terrain
4318
+ * @type {string}
4319
+ * @memberof QuickReservationSlotSummary
4320
+ */
4321
+ 'courtName': string;
4322
+ /**
4323
+ * Indique si le terrain est en intérieur
4324
+ * @type {boolean}
4325
+ * @memberof QuickReservationSlotSummary
4326
+ */
4327
+ 'isIndoor': boolean;
4328
+ /**
4329
+ * Surface du terrain
4330
+ * @type {string}
4331
+ * @memberof QuickReservationSlotSummary
4332
+ */
4333
+ 'surface'?: string;
4334
+ /**
4335
+ * Prix horaire du terrain (en euros)
4336
+ * @type {number}
4337
+ * @memberof QuickReservationSlotSummary
4338
+ */
4339
+ 'pricePerHour'?: number;
4340
+ /**
4341
+ * Prix total estimé pour le créneau (en euros)
4342
+ * @type {number}
4343
+ * @memberof QuickReservationSlotSummary
4344
+ */
4345
+ 'totalPrice'?: number;
4346
+ /**
4347
+ * ID du sport associé
4348
+ * @type {string}
4349
+ * @memberof QuickReservationSlotSummary
4350
+ */
4351
+ 'sportId': string;
4352
+ /**
4353
+ * Clé du sport associé
4354
+ * @type {string}
4355
+ * @memberof QuickReservationSlotSummary
4356
+ */
4357
+ 'sportKey'?: string;
4358
+ }
4014
4359
  /**
4015
4360
  *
4016
4361
  * @export
@@ -6540,6 +6885,18 @@ export interface UserInfo {
6540
6885
  * @memberof UserInfo
6541
6886
  */
6542
6887
  'lastName': string;
6888
+ /**
6889
+ *
6890
+ * @type {string}
6891
+ * @memberof UserInfo
6892
+ */
6893
+ 'email': string;
6894
+ /**
6895
+ *
6896
+ * @type {string}
6897
+ * @memberof UserInfo
6898
+ */
6899
+ 'profilePictureUrl'?: string;
6543
6900
  }
6544
6901
  /**
6545
6902
  *
@@ -6843,6 +7200,12 @@ export interface UserProfileResponse {
6843
7200
  * @memberof UserProfileResponse
6844
7201
  */
6845
7202
  'subscriptionsCount'?: number;
7203
+ /**
7204
+ *
7205
+ * @type {Array<ClubSubscriptions>}
7206
+ * @memberof UserProfileResponse
7207
+ */
7208
+ 'subscriptions'?: Array<ClubSubscriptions>;
6846
7209
  /**
6847
7210
  *
6848
7211
  * @type {Array<ClubSummary>}
@@ -6969,6 +7332,85 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
6969
7332
 
6970
7333
 
6971
7334
 
7335
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7336
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7337
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7338
+
7339
+ return {
7340
+ url: toPathString(localVarUrlObj),
7341
+ options: localVarRequestOptions,
7342
+ };
7343
+ },
7344
+ /**
7345
+ * Recherche des créneaux disponibles pour une réservation rapide
7346
+ * @param {number} [latitude]
7347
+ * @param {number} [longitude]
7348
+ * @param {number} [radiusInKm]
7349
+ * @param {string} [date]
7350
+ * @param {string} [sportId]
7351
+ * @param {string} [startTime]
7352
+ * @param {number} [priceMax]
7353
+ * @param {string} [courtTypes]
7354
+ * @param {number} [limitPerClub]
7355
+ * @param {number} [maxClubs]
7356
+ * @param {*} [options] Override http request option.
7357
+ * @throws {RequiredError}
7358
+ */
7359
+ getQuickReservationSlots: async (latitude?: number, longitude?: number, radiusInKm?: number, date?: string, sportId?: string, startTime?: string, priceMax?: number, courtTypes?: string, limitPerClub?: number, maxClubs?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7360
+ const localVarPath = `/api/bookings/quick-reservations`;
7361
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7362
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7363
+ let baseOptions;
7364
+ if (configuration) {
7365
+ baseOptions = configuration.baseOptions;
7366
+ }
7367
+
7368
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
7369
+ const localVarHeaderParameter = {} as any;
7370
+ const localVarQueryParameter = {} as any;
7371
+
7372
+ if (latitude !== undefined) {
7373
+ localVarQueryParameter['latitude'] = latitude;
7374
+ }
7375
+
7376
+ if (longitude !== undefined) {
7377
+ localVarQueryParameter['longitude'] = longitude;
7378
+ }
7379
+
7380
+ if (radiusInKm !== undefined) {
7381
+ localVarQueryParameter['radiusInKm'] = radiusInKm;
7382
+ }
7383
+
7384
+ if (date !== undefined) {
7385
+ localVarQueryParameter['date'] = date;
7386
+ }
7387
+
7388
+ if (sportId !== undefined) {
7389
+ localVarQueryParameter['sportId'] = sportId;
7390
+ }
7391
+
7392
+ if (startTime !== undefined) {
7393
+ localVarQueryParameter['startTime'] = startTime;
7394
+ }
7395
+
7396
+ if (priceMax !== undefined) {
7397
+ localVarQueryParameter['priceMax'] = priceMax;
7398
+ }
7399
+
7400
+ if (courtTypes !== undefined) {
7401
+ localVarQueryParameter['courtTypes'] = courtTypes;
7402
+ }
7403
+
7404
+ if (limitPerClub !== undefined) {
7405
+ localVarQueryParameter['limitPerClub'] = limitPerClub;
7406
+ }
7407
+
7408
+ if (maxClubs !== undefined) {
7409
+ localVarQueryParameter['maxClubs'] = maxClubs;
7410
+ }
7411
+
7412
+
7413
+
6972
7414
  setSearchParams(localVarUrlObj, localVarQueryParameter);
6973
7415
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6974
7416
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -6994,46 +7436,153 @@ export const BookingsApiFp = function(configuration?: Configuration) {
6994
7436
  * @param {*} [options] Override http request option.
6995
7437
  * @throws {RequiredError}
6996
7438
  */
6997
- async getBookingHistory(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingHistory>> {
7439
+ async getBookingHistory(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingHistoryPopulated>> {
6998
7440
  const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingHistory(bookingId, options);
6999
7441
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7000
7442
  const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingHistory']?.[localVarOperationServerIndex]?.url;
7001
7443
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7002
7444
  },
7445
+ /**
7446
+ * Recherche des créneaux disponibles pour une réservation rapide
7447
+ * @param {number} [latitude]
7448
+ * @param {number} [longitude]
7449
+ * @param {number} [radiusInKm]
7450
+ * @param {string} [date]
7451
+ * @param {string} [sportId]
7452
+ * @param {string} [startTime]
7453
+ * @param {number} [priceMax]
7454
+ * @param {string} [courtTypes]
7455
+ * @param {number} [limitPerClub]
7456
+ * @param {number} [maxClubs]
7457
+ * @param {*} [options] Override http request option.
7458
+ * @throws {RequiredError}
7459
+ */
7460
+ async getQuickReservationSlots(latitude?: number, longitude?: number, radiusInKm?: number, date?: string, sportId?: string, startTime?: string, priceMax?: number, courtTypes?: string, limitPerClub?: number, maxClubs?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuickReservationResponse>> {
7461
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options);
7462
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7463
+ const localVarOperationServerBasePath = operationServerMap['BookingsApi.getQuickReservationSlots']?.[localVarOperationServerIndex]?.url;
7464
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7465
+ },
7003
7466
  }
7004
7467
  };
7005
7468
 
7006
- /**
7007
- * BookingsApi - factory interface
7008
- * @export
7009
- */
7010
- export const BookingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
7011
- const localVarFp = BookingsApiFp(configuration)
7012
- return {
7013
- /**
7014
- * Obtenir l\'historique d\'une réservation par ID
7015
- * @param {BookingsApiGetBookingHistoryRequest} requestParameters Request parameters.
7016
- * @param {*} [options] Override http request option.
7017
- * @throws {RequiredError}
7018
- */
7019
- getBookingHistory(requestParameters: BookingsApiGetBookingHistoryRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingHistory> {
7020
- return localVarFp.getBookingHistory(requestParameters.bookingId, options).then((request) => request(axios, basePath));
7021
- },
7022
- };
7023
- };
7469
+ /**
7470
+ * BookingsApi - factory interface
7471
+ * @export
7472
+ */
7473
+ export const BookingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
7474
+ const localVarFp = BookingsApiFp(configuration)
7475
+ return {
7476
+ /**
7477
+ * Obtenir l\'historique d\'une réservation par ID
7478
+ * @param {BookingsApiGetBookingHistoryRequest} requestParameters Request parameters.
7479
+ * @param {*} [options] Override http request option.
7480
+ * @throws {RequiredError}
7481
+ */
7482
+ getBookingHistory(requestParameters: BookingsApiGetBookingHistoryRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingHistoryPopulated> {
7483
+ return localVarFp.getBookingHistory(requestParameters.bookingId, options).then((request) => request(axios, basePath));
7484
+ },
7485
+ /**
7486
+ * Recherche des créneaux disponibles pour une réservation rapide
7487
+ * @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
7488
+ * @param {*} [options] Override http request option.
7489
+ * @throws {RequiredError}
7490
+ */
7491
+ getQuickReservationSlots(requestParameters: BookingsApiGetQuickReservationSlotsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<QuickReservationResponse> {
7492
+ 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));
7493
+ },
7494
+ };
7495
+ };
7496
+
7497
+ /**
7498
+ * Request parameters for getBookingHistory operation in BookingsApi.
7499
+ * @export
7500
+ * @interface BookingsApiGetBookingHistoryRequest
7501
+ */
7502
+ export interface BookingsApiGetBookingHistoryRequest {
7503
+ /**
7504
+ *
7505
+ * @type {string}
7506
+ * @memberof BookingsApiGetBookingHistory
7507
+ */
7508
+ readonly bookingId: string
7509
+ }
7510
+
7511
+ /**
7512
+ * Request parameters for getQuickReservationSlots operation in BookingsApi.
7513
+ * @export
7514
+ * @interface BookingsApiGetQuickReservationSlotsRequest
7515
+ */
7516
+ export interface BookingsApiGetQuickReservationSlotsRequest {
7517
+ /**
7518
+ *
7519
+ * @type {number}
7520
+ * @memberof BookingsApiGetQuickReservationSlots
7521
+ */
7522
+ readonly latitude?: number
7523
+
7524
+ /**
7525
+ *
7526
+ * @type {number}
7527
+ * @memberof BookingsApiGetQuickReservationSlots
7528
+ */
7529
+ readonly longitude?: number
7530
+
7531
+ /**
7532
+ *
7533
+ * @type {number}
7534
+ * @memberof BookingsApiGetQuickReservationSlots
7535
+ */
7536
+ readonly radiusInKm?: number
7537
+
7538
+ /**
7539
+ *
7540
+ * @type {string}
7541
+ * @memberof BookingsApiGetQuickReservationSlots
7542
+ */
7543
+ readonly date?: string
7544
+
7545
+ /**
7546
+ *
7547
+ * @type {string}
7548
+ * @memberof BookingsApiGetQuickReservationSlots
7549
+ */
7550
+ readonly sportId?: string
7024
7551
 
7025
- /**
7026
- * Request parameters for getBookingHistory operation in BookingsApi.
7027
- * @export
7028
- * @interface BookingsApiGetBookingHistoryRequest
7029
- */
7030
- export interface BookingsApiGetBookingHistoryRequest {
7031
7552
  /**
7032
7553
  *
7033
7554
  * @type {string}
7034
- * @memberof BookingsApiGetBookingHistory
7555
+ * @memberof BookingsApiGetQuickReservationSlots
7035
7556
  */
7036
- readonly bookingId: string
7557
+ readonly startTime?: string
7558
+
7559
+ /**
7560
+ *
7561
+ * @type {number}
7562
+ * @memberof BookingsApiGetQuickReservationSlots
7563
+ */
7564
+ readonly priceMax?: number
7565
+
7566
+ /**
7567
+ *
7568
+ * @type {string}
7569
+ * @memberof BookingsApiGetQuickReservationSlots
7570
+ */
7571
+ readonly courtTypes?: string
7572
+
7573
+ /**
7574
+ *
7575
+ * @type {number}
7576
+ * @memberof BookingsApiGetQuickReservationSlots
7577
+ */
7578
+ readonly limitPerClub?: number
7579
+
7580
+ /**
7581
+ *
7582
+ * @type {number}
7583
+ * @memberof BookingsApiGetQuickReservationSlots
7584
+ */
7585
+ readonly maxClubs?: number
7037
7586
  }
7038
7587
 
7039
7588
  /**
@@ -7053,6 +7602,17 @@ export class BookingsApi extends BaseAPI {
7053
7602
  public getBookingHistory(requestParameters: BookingsApiGetBookingHistoryRequest, options?: RawAxiosRequestConfig) {
7054
7603
  return BookingsApiFp(this.configuration).getBookingHistory(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
7055
7604
  }
7605
+
7606
+ /**
7607
+ * Recherche des créneaux disponibles pour une réservation rapide
7608
+ * @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
7609
+ * @param {*} [options] Override http request option.
7610
+ * @throws {RequiredError}
7611
+ * @memberof BookingsApi
7612
+ */
7613
+ public getQuickReservationSlots(requestParameters: BookingsApiGetQuickReservationSlotsRequest = {}, options?: RawAxiosRequestConfig) {
7614
+ 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));
7615
+ }
7056
7616
  }
7057
7617
 
7058
7618
 
@@ -7371,7 +7931,7 @@ export const BookingsStaffApiAxiosParamCreator = function (configuration?: Confi
7371
7931
  getBookingHistoryStaff: async (bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7372
7932
  // verify required parameter 'bookingId' is not null or undefined
7373
7933
  assertParamExists('getBookingHistoryStaff', 'bookingId', bookingId)
7374
- const localVarPath = `/api/bookings/staff/{bookingId}`
7934
+ const localVarPath = `/api/bookings/staff/history{bookingId}`
7375
7935
  .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
7376
7936
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7377
7937
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -7551,7 +8111,7 @@ export const BookingsStaffApiFp = function(configuration?: Configuration) {
7551
8111
  * @param {*} [options] Override http request option.
7552
8112
  * @throws {RequiredError}
7553
8113
  */
7554
- async getBookingHistoryStaff(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingHistory>> {
8114
+ async getBookingHistoryStaff(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingHistoryPopulated>> {
7555
8115
  const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingHistoryStaff(bookingId, options);
7556
8116
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7557
8117
  const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.getBookingHistoryStaff']?.[localVarOperationServerIndex]?.url;
@@ -7627,7 +8187,7 @@ export const BookingsStaffApiFactory = function (configuration?: Configuration,
7627
8187
  * @param {*} [options] Override http request option.
7628
8188
  * @throws {RequiredError}
7629
8189
  */
7630
- getBookingHistoryStaff(requestParameters: BookingsStaffApiGetBookingHistoryStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingHistory> {
8190
+ getBookingHistoryStaff(requestParameters: BookingsStaffApiGetBookingHistoryStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingHistoryPopulated> {
7631
8191
  return localVarFp.getBookingHistoryStaff(requestParameters.bookingId, options).then((request) => request(axios, basePath));
7632
8192
  },
7633
8193
  /**
@@ -15675,6 +16235,39 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
15675
16235
 
15676
16236
 
15677
16237
 
16238
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16239
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16240
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16241
+
16242
+ return {
16243
+ url: toPathString(localVarUrlObj),
16244
+ options: localVarRequestOptions,
16245
+ };
16246
+ },
16247
+ /**
16248
+ *
16249
+ * @param {*} [options] Override http request option.
16250
+ * @throws {RequiredError}
16251
+ */
16252
+ getPlayerCategories: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16253
+ const localVarPath = `/api/users/players/categories`;
16254
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16255
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16256
+ let baseOptions;
16257
+ if (configuration) {
16258
+ baseOptions = configuration.baseOptions;
16259
+ }
16260
+
16261
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16262
+ const localVarHeaderParameter = {} as any;
16263
+ const localVarQueryParameter = {} as any;
16264
+
16265
+ // authentication bearerAuth required
16266
+ // http bearer authentication required
16267
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16268
+
16269
+
16270
+
15678
16271
  setSearchParams(localVarUrlObj, localVarQueryParameter);
15679
16272
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15680
16273
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -15755,6 +16348,89 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
15755
16348
 
15756
16349
 
15757
16350
 
16351
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16352
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16353
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16354
+
16355
+ return {
16356
+ url: toPathString(localVarUrlObj),
16357
+ options: localVarRequestOptions,
16358
+ };
16359
+ },
16360
+ /**
16361
+ *
16362
+ * @param {PlayerCategoryId} [category]
16363
+ * @param {string} [search]
16364
+ * @param {string} [gender]
16365
+ * @param {boolean} [sharedClub]
16366
+ * @param {string} [sportLevels]
16367
+ * @param {number} [limit]
16368
+ * @param {number} [offset]
16369
+ * @param {number} [latitude]
16370
+ * @param {number} [longitude]
16371
+ * @param {number} [radiusInKm]
16372
+ * @param {*} [options] Override http request option.
16373
+ * @throws {RequiredError}
16374
+ */
16375
+ listPlayers: async (category?: PlayerCategoryId, search?: string, gender?: string, sharedClub?: boolean, sportLevels?: string, limit?: number, offset?: number, latitude?: number, longitude?: number, radiusInKm?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16376
+ const localVarPath = `/api/users/players`;
16377
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16378
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16379
+ let baseOptions;
16380
+ if (configuration) {
16381
+ baseOptions = configuration.baseOptions;
16382
+ }
16383
+
16384
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16385
+ const localVarHeaderParameter = {} as any;
16386
+ const localVarQueryParameter = {} as any;
16387
+
16388
+ // authentication bearerAuth required
16389
+ // http bearer authentication required
16390
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16391
+
16392
+ if (category !== undefined) {
16393
+ localVarQueryParameter['category'] = category;
16394
+ }
16395
+
16396
+ if (search !== undefined) {
16397
+ localVarQueryParameter['search'] = search;
16398
+ }
16399
+
16400
+ if (gender !== undefined) {
16401
+ localVarQueryParameter['gender'] = gender;
16402
+ }
16403
+
16404
+ if (sharedClub !== undefined) {
16405
+ localVarQueryParameter['sharedClub'] = sharedClub;
16406
+ }
16407
+
16408
+ if (sportLevels !== undefined) {
16409
+ localVarQueryParameter['sportLevels'] = sportLevels;
16410
+ }
16411
+
16412
+ if (limit !== undefined) {
16413
+ localVarQueryParameter['limit'] = limit;
16414
+ }
16415
+
16416
+ if (offset !== undefined) {
16417
+ localVarQueryParameter['offset'] = offset;
16418
+ }
16419
+
16420
+ if (latitude !== undefined) {
16421
+ localVarQueryParameter['latitude'] = latitude;
16422
+ }
16423
+
16424
+ if (longitude !== undefined) {
16425
+ localVarQueryParameter['longitude'] = longitude;
16426
+ }
16427
+
16428
+ if (radiusInKm !== undefined) {
16429
+ localVarQueryParameter['radiusInKm'] = radiusInKm;
16430
+ }
16431
+
16432
+
16433
+
15758
16434
  setSearchParams(localVarUrlObj, localVarQueryParameter);
15759
16435
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15760
16436
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -16601,6 +17277,17 @@ export const UsersApiFp = function(configuration?: Configuration) {
16601
17277
  const localVarOperationServerBasePath = operationServerMap['UsersApi.getNearestUsersFromCoordinates']?.[localVarOperationServerIndex]?.url;
16602
17278
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16603
17279
  },
17280
+ /**
17281
+ *
17282
+ * @param {*} [options] Override http request option.
17283
+ * @throws {RequiredError}
17284
+ */
17285
+ async getPlayerCategories(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlayerCategoriesResponse>> {
17286
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPlayerCategories(options);
17287
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17288
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.getPlayerCategories']?.[localVarOperationServerIndex]?.url;
17289
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17290
+ },
16604
17291
  /**
16605
17292
  *
16606
17293
  * @param {number} [limit]
@@ -16626,6 +17313,27 @@ export const UsersApiFp = function(configuration?: Configuration) {
16626
17313
  const localVarOperationServerBasePath = operationServerMap['UsersApi.getUserProfileById']?.[localVarOperationServerIndex]?.url;
16627
17314
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16628
17315
  },
17316
+ /**
17317
+ *
17318
+ * @param {PlayerCategoryId} [category]
17319
+ * @param {string} [search]
17320
+ * @param {string} [gender]
17321
+ * @param {boolean} [sharedClub]
17322
+ * @param {string} [sportLevels]
17323
+ * @param {number} [limit]
17324
+ * @param {number} [offset]
17325
+ * @param {number} [latitude]
17326
+ * @param {number} [longitude]
17327
+ * @param {number} [radiusInKm]
17328
+ * @param {*} [options] Override http request option.
17329
+ * @throws {RequiredError}
17330
+ */
17331
+ async listPlayers(category?: PlayerCategoryId, search?: string, gender?: string, sharedClub?: boolean, sportLevels?: string, limit?: number, offset?: number, latitude?: number, longitude?: number, radiusInKm?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlayerListResponse>> {
17332
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPlayers(category, search, gender, sharedClub, sportLevels, limit, offset, latitude, longitude, radiusInKm, options);
17333
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17334
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.listPlayers']?.[localVarOperationServerIndex]?.url;
17335
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17336
+ },
16629
17337
  /**
16630
17338
  *
16631
17339
  * @param {LoginRequestBody} loginRequestBody
@@ -16986,6 +17694,14 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
16986
17694
  getNearestUsersFromCoordinates(requestParameters: UsersApiGetNearestUsersFromCoordinatesRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Array<{ [key: string]: any; }>> {
16987
17695
  return localVarFp.getNearestUsersFromCoordinates(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
16988
17696
  },
17697
+ /**
17698
+ *
17699
+ * @param {*} [options] Override http request option.
17700
+ * @throws {RequiredError}
17701
+ */
17702
+ getPlayerCategories(options?: RawAxiosRequestConfig): AxiosPromise<PlayerCategoriesResponse> {
17703
+ return localVarFp.getPlayerCategories(options).then((request) => request(axios, basePath));
17704
+ },
16989
17705
  /**
16990
17706
  *
16991
17707
  * @param {UsersApiGetUserBookingsRequest} requestParameters Request parameters.
@@ -17004,6 +17720,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
17004
17720
  getUserProfileById(requestParameters: UsersApiGetUserProfileByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublicUserProfileResponse> {
17005
17721
  return localVarFp.getUserProfileById(requestParameters.id, options).then((request) => request(axios, basePath));
17006
17722
  },
17723
+ /**
17724
+ *
17725
+ * @param {UsersApiListPlayersRequest} requestParameters Request parameters.
17726
+ * @param {*} [options] Override http request option.
17727
+ * @throws {RequiredError}
17728
+ */
17729
+ listPlayers(requestParameters: UsersApiListPlayersRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<PlayerListResponse> {
17730
+ 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));
17731
+ },
17007
17732
  /**
17008
17733
  *
17009
17734
  * @param {UsersApiLoginRequest} requestParameters Request parameters.
@@ -17404,6 +18129,83 @@ export interface UsersApiGetUserProfileByIdRequest {
17404
18129
  readonly id: string
17405
18130
  }
17406
18131
 
18132
+ /**
18133
+ * Request parameters for listPlayers operation in UsersApi.
18134
+ * @export
18135
+ * @interface UsersApiListPlayersRequest
18136
+ */
18137
+ export interface UsersApiListPlayersRequest {
18138
+ /**
18139
+ *
18140
+ * @type {PlayerCategoryId}
18141
+ * @memberof UsersApiListPlayers
18142
+ */
18143
+ readonly category?: PlayerCategoryId
18144
+
18145
+ /**
18146
+ *
18147
+ * @type {string}
18148
+ * @memberof UsersApiListPlayers
18149
+ */
18150
+ readonly search?: string
18151
+
18152
+ /**
18153
+ *
18154
+ * @type {string}
18155
+ * @memberof UsersApiListPlayers
18156
+ */
18157
+ readonly gender?: string
18158
+
18159
+ /**
18160
+ *
18161
+ * @type {boolean}
18162
+ * @memberof UsersApiListPlayers
18163
+ */
18164
+ readonly sharedClub?: boolean
18165
+
18166
+ /**
18167
+ *
18168
+ * @type {string}
18169
+ * @memberof UsersApiListPlayers
18170
+ */
18171
+ readonly sportLevels?: string
18172
+
18173
+ /**
18174
+ *
18175
+ * @type {number}
18176
+ * @memberof UsersApiListPlayers
18177
+ */
18178
+ readonly limit?: number
18179
+
18180
+ /**
18181
+ *
18182
+ * @type {number}
18183
+ * @memberof UsersApiListPlayers
18184
+ */
18185
+ readonly offset?: number
18186
+
18187
+ /**
18188
+ *
18189
+ * @type {number}
18190
+ * @memberof UsersApiListPlayers
18191
+ */
18192
+ readonly latitude?: number
18193
+
18194
+ /**
18195
+ *
18196
+ * @type {number}
18197
+ * @memberof UsersApiListPlayers
18198
+ */
18199
+ readonly longitude?: number
18200
+
18201
+ /**
18202
+ *
18203
+ * @type {number}
18204
+ * @memberof UsersApiListPlayers
18205
+ */
18206
+ readonly radiusInKm?: number
18207
+ }
18208
+
17407
18209
  /**
17408
18210
  * Request parameters for login operation in UsersApi.
17409
18211
  * @export
@@ -17816,6 +18618,16 @@ export class UsersApi extends BaseAPI {
17816
18618
  return UsersApiFp(this.configuration).getNearestUsersFromCoordinates(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
17817
18619
  }
17818
18620
 
18621
+ /**
18622
+ *
18623
+ * @param {*} [options] Override http request option.
18624
+ * @throws {RequiredError}
18625
+ * @memberof UsersApi
18626
+ */
18627
+ public getPlayerCategories(options?: RawAxiosRequestConfig) {
18628
+ return UsersApiFp(this.configuration).getPlayerCategories(options).then((request) => request(this.axios, this.basePath));
18629
+ }
18630
+
17819
18631
  /**
17820
18632
  *
17821
18633
  * @param {UsersApiGetUserBookingsRequest} requestParameters Request parameters.
@@ -17838,6 +18650,17 @@ export class UsersApi extends BaseAPI {
17838
18650
  return UsersApiFp(this.configuration).getUserProfileById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
17839
18651
  }
17840
18652
 
18653
+ /**
18654
+ *
18655
+ * @param {UsersApiListPlayersRequest} requestParameters Request parameters.
18656
+ * @param {*} [options] Override http request option.
18657
+ * @throws {RequiredError}
18658
+ * @memberof UsersApi
18659
+ */
18660
+ public listPlayers(requestParameters: UsersApiListPlayersRequest = {}, options?: RawAxiosRequestConfig) {
18661
+ 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));
18662
+ }
18663
+
17841
18664
  /**
17842
18665
  *
17843
18666
  * @param {UsersApiLoginRequest} requestParameters Request parameters.