@tennac-booking/sdk 1.0.33 → 1.0.35

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 (54) hide show
  1. package/.openapi-generator/FILES +12 -2
  2. package/README.md +21 -4
  3. package/api.ts +1575 -146
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +1054 -77
  8. package/dist/api.js +759 -4
  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 +1054 -77
  16. package/dist/esm/api.js +748 -1
  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/ActiveClub.md +4 -0
  28. package/docs/BookingHistoryResponse.md +22 -0
  29. package/docs/BookingHistoryResponseHistoryInner.md +32 -0
  30. package/docs/BookingPopulated.md +2 -0
  31. package/docs/BookingsApi.md +113 -0
  32. package/docs/BookingsStaffWeeklyWeekIdGet200Response.md +20 -0
  33. package/docs/Club.md +2 -2
  34. package/docs/CourtWithNameResponse.md +48 -0
  35. package/docs/{SportsResponse.md → CourtsWithNameResponse.md} +5 -5
  36. package/docs/GenderPercentage.md +26 -0
  37. package/docs/Location.md +32 -0
  38. package/docs/ManagerClubCourtsApi.md +2 -2
  39. package/docs/PaymentStatus.md +30 -0
  40. package/docs/Sport.md +0 -2
  41. package/docs/SportResponse.md +4 -0
  42. package/docs/StaffClubAnalyticsApi.md +49 -2
  43. package/docs/StaffClubsApi.md +2 -2
  44. package/docs/UpdateUserRequestBody.md +8 -2
  45. package/docs/UpdateUserRequestBodyLevelBySportsInner.md +22 -0
  46. package/docs/UserBookingItem.md +46 -0
  47. package/docs/UserBookingsApi.md +46 -0
  48. package/docs/UserClubSportsApi.md +2 -2
  49. package/docs/UserProfileApi.md +53 -0
  50. package/docs/UserStaffResponse.md +6 -0
  51. package/docs/UsersApi.md +243 -0
  52. package/index.ts +1 -1
  53. package/package.json +1 -1
  54. package/docs/GetClubPlayers200Response.md +0 -22
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Pandook API
5
5
  * API for managing pickle ball games and players
6
6
  *
7
- * The version of the OpenAPI document: 1.0.33
7
+ * The version of the OpenAPI document: 1.0.35
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -35,12 +35,24 @@ export interface ActiveClub {
35
35
  * @memberof ActiveClub
36
36
  */
37
37
  '_id'?: string;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof ActiveClub
42
+ */
43
+ 'picture'?: string;
38
44
  /**
39
45
  *
40
46
  * @type {string}
41
47
  * @memberof ActiveClub
42
48
  */
43
49
  'name'?: string;
50
+ /**
51
+ *
52
+ * @type {Location}
53
+ * @memberof ActiveClub
54
+ */
55
+ 'location'?: Location;
44
56
  /**
45
57
  *
46
58
  * @type {boolean}
@@ -252,6 +264,74 @@ export interface Booking {
252
264
  }
253
265
 
254
266
 
267
+ /**
268
+ *
269
+ * @export
270
+ * @interface BookingHistoryResponse
271
+ */
272
+ export interface BookingHistoryResponse {
273
+ /**
274
+ * ID de la réservation
275
+ * @type {string}
276
+ * @memberof BookingHistoryResponse
277
+ */
278
+ 'bookingId'?: string;
279
+ /**
280
+ *
281
+ * @type {Array<BookingHistoryResponseHistoryInner>}
282
+ * @memberof BookingHistoryResponse
283
+ */
284
+ 'history'?: Array<BookingHistoryResponseHistoryInner>;
285
+ }
286
+ /**
287
+ *
288
+ * @export
289
+ * @interface BookingHistoryResponseHistoryInner
290
+ */
291
+ export interface BookingHistoryResponseHistoryInner {
292
+ /**
293
+ * ID du créneau réservé
294
+ * @type {string}
295
+ * @memberof BookingHistoryResponseHistoryInner
296
+ */
297
+ 'slotId'?: string;
298
+ /**
299
+ * ID de l\'utilisateur qui a effectué la réservation
300
+ * @type {string}
301
+ * @memberof BookingHistoryResponseHistoryInner
302
+ */
303
+ 'userId'?: string;
304
+ /**
305
+ * Statut de la réservation (active, cancelled, completed)
306
+ * @type {string}
307
+ * @memberof BookingHistoryResponseHistoryInner
308
+ */
309
+ 'status'?: string;
310
+ /**
311
+ * Prix total de la réservation
312
+ * @type {number}
313
+ * @memberof BookingHistoryResponseHistoryInner
314
+ */
315
+ 'totalPrice'?: number;
316
+ /**
317
+ * Statut du paiement (paid, pending, cancelled)
318
+ * @type {string}
319
+ * @memberof BookingHistoryResponseHistoryInner
320
+ */
321
+ 'paymentStatus'?: string;
322
+ /**
323
+ * Date et heure de la création de la réservation
324
+ * @type {string}
325
+ * @memberof BookingHistoryResponseHistoryInner
326
+ */
327
+ 'createdAt'?: string;
328
+ /**
329
+ * Date et heure de la dernière mise à jour de la réservation
330
+ * @type {string}
331
+ * @memberof BookingHistoryResponseHistoryInner
332
+ */
333
+ 'updatedAt'?: string;
334
+ }
255
335
  /**
256
336
  *
257
337
  * @export
@@ -444,6 +524,12 @@ export interface BookingPopulated {
444
524
  * @memberof BookingPopulated
445
525
  */
446
526
  'slotId'?: BookingPopulatedSlotId;
527
+ /**
528
+ *
529
+ * @type {number}
530
+ * @memberof BookingPopulated
531
+ */
532
+ 'playersCount'?: number;
447
533
  /**
448
534
  *
449
535
  * @type {Array<BookingPopulatedPaymentByPlayersStatusInner>}
@@ -638,6 +724,19 @@ export const BookingStatus = {
638
724
  export type BookingStatus = typeof BookingStatus[keyof typeof BookingStatus];
639
725
 
640
726
 
727
+ /**
728
+ *
729
+ * @export
730
+ * @interface BookingsStaffWeeklyWeekIdGet200Response
731
+ */
732
+ export interface BookingsStaffWeeklyWeekIdGet200Response {
733
+ /**
734
+ *
735
+ * @type {Array<BookingPopulated>}
736
+ * @memberof BookingsStaffWeeklyWeekIdGet200Response
737
+ */
738
+ 'bookings'?: Array<BookingPopulated>;
739
+ }
641
740
  /**
642
741
  *
643
742
  * @export
@@ -857,10 +956,10 @@ export interface Club {
857
956
  'name': string;
858
957
  /**
859
958
  *
860
- * @type {string}
959
+ * @type {Location}
861
960
  * @memberof Club
862
961
  */
863
- 'address': string;
962
+ 'location'?: Location;
864
963
  /**
865
964
  *
866
965
  * @type {string}
@@ -1583,6 +1682,112 @@ export const CourtStatus = {
1583
1682
  export type CourtStatus = typeof CourtStatus[keyof typeof CourtStatus];
1584
1683
 
1585
1684
 
1685
+ /**
1686
+ *
1687
+ * @export
1688
+ * @interface CourtWithNameResponse
1689
+ */
1690
+ export interface CourtWithNameResponse {
1691
+ /**
1692
+ *
1693
+ * @type {string}
1694
+ * @memberof CourtWithNameResponse
1695
+ */
1696
+ 'id'?: string;
1697
+ /**
1698
+ *
1699
+ * @type {string}
1700
+ * @memberof CourtWithNameResponse
1701
+ */
1702
+ 'name'?: string;
1703
+ /**
1704
+ *
1705
+ * @type {CourtStatus}
1706
+ * @memberof CourtWithNameResponse
1707
+ */
1708
+ 'status'?: CourtStatus;
1709
+ /**
1710
+ *
1711
+ * @type {string}
1712
+ * @memberof CourtWithNameResponse
1713
+ */
1714
+ 'comments'?: string;
1715
+ /**
1716
+ *
1717
+ * @type {number}
1718
+ * @memberof CourtWithNameResponse
1719
+ */
1720
+ 'pricePerSlot'?: number;
1721
+ /**
1722
+ *
1723
+ * @type {number}
1724
+ * @memberof CourtWithNameResponse
1725
+ */
1726
+ 'slotDefaultDuration'?: number;
1727
+ /**
1728
+ *
1729
+ * @type {number}
1730
+ * @memberof CourtWithNameResponse
1731
+ */
1732
+ 'startTimeInTheDayInMinutes'?: number;
1733
+ /**
1734
+ *
1735
+ * @type {number}
1736
+ * @memberof CourtWithNameResponse
1737
+ */
1738
+ 'endTimeInTheDayInMinutes'?: number;
1739
+ /**
1740
+ *
1741
+ * @type {string}
1742
+ * @memberof CourtWithNameResponse
1743
+ */
1744
+ 'sportId'?: string;
1745
+ /**
1746
+ *
1747
+ * @type {string}
1748
+ * @memberof CourtWithNameResponse
1749
+ */
1750
+ 'sportName'?: string;
1751
+ /**
1752
+ *
1753
+ * @type {string}
1754
+ * @memberof CourtWithNameResponse
1755
+ */
1756
+ 'clubId'?: string;
1757
+ /**
1758
+ * Type de surface
1759
+ * @type {string}
1760
+ * @memberof CourtWithNameResponse
1761
+ */
1762
+ 'surface'?: CourtWithNameResponseSurfaceEnum;
1763
+ /**
1764
+ * Indique si le terrain est en intérieur ou extérieur
1765
+ * @type {boolean}
1766
+ * @memberof CourtWithNameResponse
1767
+ */
1768
+ 'isIndoor'?: boolean;
1769
+ /**
1770
+ *
1771
+ * @type {string}
1772
+ * @memberof CourtWithNameResponse
1773
+ */
1774
+ 'createdAt'?: string;
1775
+ /**
1776
+ *
1777
+ * @type {string}
1778
+ * @memberof CourtWithNameResponse
1779
+ */
1780
+ 'updatedAt'?: string;
1781
+ }
1782
+
1783
+ export const CourtWithNameResponseSurfaceEnum = {
1784
+ Clay: 'clay',
1785
+ Grass: 'grass',
1786
+ Hard: 'hard'
1787
+ } as const;
1788
+
1789
+ export type CourtWithNameResponseSurfaceEnum = typeof CourtWithNameResponseSurfaceEnum[keyof typeof CourtWithNameResponseSurfaceEnum];
1790
+
1586
1791
  /**
1587
1792
  *
1588
1793
  * @export
@@ -1602,6 +1807,25 @@ export interface CourtsResponse {
1602
1807
  */
1603
1808
  'total'?: number;
1604
1809
  }
1810
+ /**
1811
+ *
1812
+ * @export
1813
+ * @interface CourtsWithNameResponse
1814
+ */
1815
+ export interface CourtsWithNameResponse {
1816
+ /**
1817
+ *
1818
+ * @type {Array<CourtWithNameResponse>}
1819
+ * @memberof CourtsWithNameResponse
1820
+ */
1821
+ 'courts'?: Array<CourtWithNameResponse>;
1822
+ /**
1823
+ *
1824
+ * @type {number}
1825
+ * @memberof CourtsWithNameResponse
1826
+ */
1827
+ 'total'?: number;
1828
+ }
1605
1829
  /**
1606
1830
  *
1607
1831
  * @export
@@ -2277,6 +2501,37 @@ export interface FrequentlyVisitedClubItem {
2277
2501
  */
2278
2502
  'visitCount'?: number;
2279
2503
  }
2504
+ /**
2505
+ *
2506
+ * @export
2507
+ * @interface GenderPercentage
2508
+ */
2509
+ export interface GenderPercentage {
2510
+ /**
2511
+ * Pourcentage d\'utilisateurs masculins
2512
+ * @type {number}
2513
+ * @memberof GenderPercentage
2514
+ */
2515
+ 'malePercentage'?: number;
2516
+ /**
2517
+ * Pourcentage d\'utilisateurs féminins
2518
+ * @type {number}
2519
+ * @memberof GenderPercentage
2520
+ */
2521
+ 'femalePercentage'?: number;
2522
+ /**
2523
+ * Pourcentage d\'utilisateurs non spécifiés
2524
+ * @type {number}
2525
+ * @memberof GenderPercentage
2526
+ */
2527
+ 'otherPercentage'?: number;
2528
+ /**
2529
+ * Nombre total de joueurs
2530
+ * @type {number}
2531
+ * @memberof GenderPercentage
2532
+ */
2533
+ 'totalPlayers'?: number;
2534
+ }
2280
2535
  /**
2281
2536
  *
2282
2537
  * @export
@@ -2333,25 +2588,6 @@ export interface GetClubInfos200Response {
2333
2588
  */
2334
2589
  'websiteUrl'?: string;
2335
2590
  }
2336
- /**
2337
- *
2338
- * @export
2339
- * @interface GetClubPlayers200Response
2340
- */
2341
- export interface GetClubPlayers200Response {
2342
- /**
2343
- *
2344
- * @type {Array<UserStaffResponse>}
2345
- * @memberof GetClubPlayers200Response
2346
- */
2347
- 'clubPlayers'?: Array<UserStaffResponse>;
2348
- /**
2349
- *
2350
- * @type {number}
2351
- * @memberof GetClubPlayers200Response
2352
- */
2353
- 'total'?: number;
2354
- }
2355
2591
  /**
2356
2592
  *
2357
2593
  * @export
@@ -2728,6 +2964,62 @@ export interface LevelBySportsItem {
2728
2964
  */
2729
2965
  'level': string;
2730
2966
  }
2967
+ /**
2968
+ *
2969
+ * @export
2970
+ * @interface Location
2971
+ */
2972
+ export interface Location {
2973
+ /**
2974
+ *
2975
+ * @type {string}
2976
+ * @memberof Location
2977
+ */
2978
+ 'type': LocationTypeEnum;
2979
+ /**
2980
+ * Longitude et latitude
2981
+ * @type {Array<number>}
2982
+ * @memberof Location
2983
+ */
2984
+ 'coordinates': Array<number>;
2985
+ /**
2986
+ *
2987
+ * @type {string}
2988
+ * @memberof Location
2989
+ */
2990
+ 'city'?: string;
2991
+ /**
2992
+ *
2993
+ * @type {string}
2994
+ * @memberof Location
2995
+ */
2996
+ 'country'?: string;
2997
+ /**
2998
+ *
2999
+ * @type {string}
3000
+ * @memberof Location
3001
+ */
3002
+ 'postalCode'?: string;
3003
+ /**
3004
+ *
3005
+ * @type {string}
3006
+ * @memberof Location
3007
+ */
3008
+ 'state'?: string;
3009
+ /**
3010
+ *
3011
+ * @type {string}
3012
+ * @memberof Location
3013
+ */
3014
+ 'address'?: string;
3015
+ }
3016
+
3017
+ export const LocationTypeEnum = {
3018
+ Point: 'Point'
3019
+ } as const;
3020
+
3021
+ export type LocationTypeEnum = typeof LocationTypeEnum[keyof typeof LocationTypeEnum];
3022
+
2731
3023
  /**
2732
3024
  *
2733
3025
  * @export
@@ -3070,40 +3362,93 @@ export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
3070
3362
  /**
3071
3363
  *
3072
3364
  * @export
3073
- * @interface PlayerWithPaymentMethod
3365
+ * @interface PaymentStatus
3074
3366
  */
3075
- export interface PlayerWithPaymentMethod {
3367
+ export interface PaymentStatus {
3076
3368
  /**
3077
- * ID du joueur
3369
+ * URL de la photo de profil du joueur
3078
3370
  * @type {string}
3079
- * @memberof PlayerWithPaymentMethod
3371
+ * @memberof PaymentStatus
3080
3372
  */
3081
- 'id': string;
3373
+ 'profilePicture'?: string;
3082
3374
  /**
3083
- *
3084
- * @type {PaymentMethod}
3085
- * @memberof PlayerWithPaymentMethod
3375
+ * Identifiant de l\'utilisateur
3376
+ * @type {string}
3377
+ * @memberof PaymentStatus
3086
3378
  */
3087
- 'paymentMethod': PaymentMethod;
3088
- }
3089
-
3090
-
3091
- /**
3092
- *
3093
- * @export
3094
- * @interface PriceResponse
3095
- */
3096
- export interface PriceResponse {
3379
+ 'userId'?: string;
3097
3380
  /**
3098
- *
3381
+ * Prénom de l\'utilisateur
3099
3382
  * @type {string}
3100
- * @memberof PriceResponse
3383
+ * @memberof PaymentStatus
3101
3384
  */
3102
- 'id'?: string;
3385
+ 'firstName'?: string;
3103
3386
  /**
3104
- *
3105
- * @type {number}
3106
- * @memberof PriceResponse
3387
+ * Nom de l\'utilisateur
3388
+ * @type {string}
3389
+ * @memberof PaymentStatus
3390
+ */
3391
+ 'lastName'?: string;
3392
+ /**
3393
+ * Montant que l\'utilisateur doit payer
3394
+ * @type {number}
3395
+ * @memberof PaymentStatus
3396
+ */
3397
+ 'amount'?: number;
3398
+ /**
3399
+ * Statut de la facture
3400
+ * @type {string}
3401
+ * @memberof PaymentStatus
3402
+ */
3403
+ 'invoiceStatus'?: PaymentStatusInvoiceStatusEnum;
3404
+ }
3405
+
3406
+ export const PaymentStatusInvoiceStatusEnum = {
3407
+ Paid: 'paid',
3408
+ Pending: 'pending',
3409
+ Failed: 'failed',
3410
+ Canceled: 'canceled'
3411
+ } as const;
3412
+
3413
+ export type PaymentStatusInvoiceStatusEnum = typeof PaymentStatusInvoiceStatusEnum[keyof typeof PaymentStatusInvoiceStatusEnum];
3414
+
3415
+ /**
3416
+ *
3417
+ * @export
3418
+ * @interface PlayerWithPaymentMethod
3419
+ */
3420
+ export interface PlayerWithPaymentMethod {
3421
+ /**
3422
+ * ID du joueur
3423
+ * @type {string}
3424
+ * @memberof PlayerWithPaymentMethod
3425
+ */
3426
+ 'id': string;
3427
+ /**
3428
+ *
3429
+ * @type {PaymentMethod}
3430
+ * @memberof PlayerWithPaymentMethod
3431
+ */
3432
+ 'paymentMethod': PaymentMethod;
3433
+ }
3434
+
3435
+
3436
+ /**
3437
+ *
3438
+ * @export
3439
+ * @interface PriceResponse
3440
+ */
3441
+ export interface PriceResponse {
3442
+ /**
3443
+ *
3444
+ * @type {string}
3445
+ * @memberof PriceResponse
3446
+ */
3447
+ 'id'?: string;
3448
+ /**
3449
+ *
3450
+ * @type {number}
3451
+ * @memberof PriceResponse
3107
3452
  */
3108
3453
  'amount'?: number;
3109
3454
  /**
@@ -3628,12 +3973,6 @@ export interface SlotsResponse {
3628
3973
  * @interface Sport
3629
3974
  */
3630
3975
  export interface Sport {
3631
- /**
3632
- *
3633
- * @type {string}
3634
- * @memberof Sport
3635
- */
3636
- '_id'?: string;
3637
3976
  /**
3638
3977
  *
3639
3978
  * @type {string}
@@ -3685,35 +4024,28 @@ export interface SportResponse {
3685
4024
  'clubId'?: string;
3686
4025
  /**
3687
4026
  *
3688
- * @type {string}
4027
+ * @type {number}
3689
4028
  * @memberof SportResponse
3690
4029
  */
3691
- 'createdAt'?: string;
4030
+ 'courtsCount'?: number;
3692
4031
  /**
3693
4032
  *
3694
- * @type {string}
4033
+ * @type {number}
3695
4034
  * @memberof SportResponse
3696
4035
  */
3697
- 'updatedAt'?: string;
3698
- }
3699
- /**
3700
- *
3701
- * @export
3702
- * @interface SportsResponse
3703
- */
3704
- export interface SportsResponse {
4036
+ 'bookingsCount'?: number;
3705
4037
  /**
3706
4038
  *
3707
- * @type {Array<SportResponse>}
3708
- * @memberof SportsResponse
4039
+ * @type {string}
4040
+ * @memberof SportResponse
3709
4041
  */
3710
- 'sports'?: Array<SportResponse>;
4042
+ 'createdAt'?: string;
3711
4043
  /**
3712
4044
  *
3713
- * @type {number}
3714
- * @memberof SportsResponse
4045
+ * @type {string}
4046
+ * @memberof SportResponse
3715
4047
  */
3716
- 'total'?: number;
4048
+ 'updatedAt'?: string;
3717
4049
  }
3718
4050
  /**
3719
4051
  *
@@ -4471,12 +4803,49 @@ export interface UpdateUserRequestBody {
4471
4803
  * @memberof UpdateUserRequestBody
4472
4804
  */
4473
4805
  'profilePicture'?: string;
4806
+ /**
4807
+ *
4808
+ * @type {Array<UpdateUserRequestBodyLevelBySportsInner>}
4809
+ * @memberof UpdateUserRequestBody
4810
+ */
4811
+ 'levelBySports'?: Array<UpdateUserRequestBodyLevelBySportsInner>;
4812
+ /**
4813
+ *
4814
+ * @type {boolean}
4815
+ * @memberof UpdateUserRequestBody
4816
+ */
4817
+ 'isProfileVisible'?: boolean;
4474
4818
  /**
4475
4819
  *
4476
4820
  * @type {string}
4477
4821
  * @memberof UpdateUserRequestBody
4478
4822
  */
4479
- 'level'?: string;
4823
+ 'description'?: string;
4824
+ /**
4825
+ *
4826
+ * @type {string}
4827
+ * @memberof UpdateUserRequestBody
4828
+ */
4829
+ 'city'?: string;
4830
+ }
4831
+ /**
4832
+ *
4833
+ * @export
4834
+ * @interface UpdateUserRequestBodyLevelBySportsInner
4835
+ */
4836
+ export interface UpdateUserRequestBodyLevelBySportsInner {
4837
+ /**
4838
+ *
4839
+ * @type {string}
4840
+ * @memberof UpdateUserRequestBodyLevelBySportsInner
4841
+ */
4842
+ 'sport': string;
4843
+ /**
4844
+ *
4845
+ * @type {string}
4846
+ * @memberof UpdateUserRequestBodyLevelBySportsInner
4847
+ */
4848
+ 'level': string;
4480
4849
  }
4481
4850
  /**
4482
4851
  *
@@ -4551,6 +4920,113 @@ export interface User {
4551
4920
  */
4552
4921
  'isAdmin'?: boolean;
4553
4922
  }
4923
+ /**
4924
+ *
4925
+ * @export
4926
+ * @interface UserBookingItem
4927
+ */
4928
+ export interface UserBookingItem {
4929
+ /**
4930
+ * ID de la réservation
4931
+ * @type {string}
4932
+ * @memberof UserBookingItem
4933
+ */
4934
+ 'id'?: string;
4935
+ /**
4936
+ * URL de l\'image du club
4937
+ * @type {string}
4938
+ * @memberof UserBookingItem
4939
+ */
4940
+ 'clubPicture'?: string;
4941
+ /**
4942
+ * Nom du terrain
4943
+ * @type {string}
4944
+ * @memberof UserBookingItem
4945
+ */
4946
+ 'courtName'?: string;
4947
+ /**
4948
+ * Nom du sport
4949
+ * @type {string}
4950
+ * @memberof UserBookingItem
4951
+ */
4952
+ 'sportName'?: string;
4953
+ /**
4954
+ * Date de début de la réservation
4955
+ * @type {string}
4956
+ * @memberof UserBookingItem
4957
+ */
4958
+ 'startDate'?: string;
4959
+ /**
4960
+ * Statut de paiement de l\'utilisateur
4961
+ * @type {string}
4962
+ * @memberof UserBookingItem
4963
+ */
4964
+ 'myPaymentStatus'?: UserBookingItemMyPaymentStatusEnum;
4965
+ /**
4966
+ * Statut de la réservation
4967
+ * @type {string}
4968
+ * @memberof UserBookingItem
4969
+ */
4970
+ 'bookingStatus'?: UserBookingItemBookingStatusEnum;
4971
+ /**
4972
+ * Liste des noms des joueurs
4973
+ * @type {Array<string>}
4974
+ * @memberof UserBookingItem
4975
+ */
4976
+ 'playersName'?: Array<string>;
4977
+ /**
4978
+ * Montant que l\'utilisateur doit payer
4979
+ * @type {number}
4980
+ * @memberof UserBookingItem
4981
+ */
4982
+ 'myAmountToPay'?: number;
4983
+ /**
4984
+ * Montant total de la réservation
4985
+ * @type {number}
4986
+ * @memberof UserBookingItem
4987
+ */
4988
+ 'totalAmount'?: number;
4989
+ /**
4990
+ * Date limite avant annulation
4991
+ * @type {string}
4992
+ * @memberof UserBookingItem
4993
+ */
4994
+ 'timeBeforeCancel'?: string;
4995
+ /**
4996
+ * Adresse du club
4997
+ * @type {string}
4998
+ * @memberof UserBookingItem
4999
+ */
5000
+ 'clubAddress'?: string;
5001
+ /**
5002
+ * Historique de la réservation
5003
+ * @type {string}
5004
+ * @memberof UserBookingItem
5005
+ */
5006
+ 'bookingHistory'?: string;
5007
+ /**
5008
+ * Statut de paiement pour chaque joueur
5009
+ * @type {Array<PaymentStatus>}
5010
+ * @memberof UserBookingItem
5011
+ */
5012
+ 'paymentStatus'?: Array<PaymentStatus>;
5013
+ }
5014
+
5015
+ export const UserBookingItemMyPaymentStatusEnum = {
5016
+ Paid: 'paid',
5017
+ Pending: 'pending',
5018
+ Failed: 'failed'
5019
+ } as const;
5020
+
5021
+ export type UserBookingItemMyPaymentStatusEnum = typeof UserBookingItemMyPaymentStatusEnum[keyof typeof UserBookingItemMyPaymentStatusEnum];
5022
+ export const UserBookingItemBookingStatusEnum = {
5023
+ Confirmed: 'confirmed',
5024
+ Cancelled: 'cancelled',
5025
+ Pending: 'pending'
5026
+ } as const;
5027
+
5028
+ export type UserBookingItemBookingStatusEnum = typeof UserBookingItemBookingStatusEnum[keyof typeof UserBookingItemBookingStatusEnum];
5029
+
4554
5030
  /**
4555
5031
  *
4556
5032
  * @export
@@ -4712,6 +5188,18 @@ export interface UserStaffResponse {
4712
5188
  * @memberof UserStaffResponse
4713
5189
  */
4714
5190
  'lastName'?: string;
5191
+ /**
5192
+ *
5193
+ * @type {string}
5194
+ * @memberof UserStaffResponse
5195
+ */
5196
+ 'gender'?: string;
5197
+ /**
5198
+ *
5199
+ * @type {string}
5200
+ * @memberof UserStaffResponse
5201
+ */
5202
+ 'email'?: string;
4715
5203
  /**
4716
5204
  *
4717
5205
  * @type {string}
@@ -4730,6 +5218,12 @@ export interface UserStaffResponse {
4730
5218
  * @memberof UserStaffResponse
4731
5219
  */
4732
5220
  'isProfileVisible'?: boolean;
5221
+ /**
5222
+ *
5223
+ * @type {boolean}
5224
+ * @memberof UserStaffResponse
5225
+ */
5226
+ 'isSubscribedToClub'?: boolean;
4733
5227
  }
4734
5228
  /**
4735
5229
  *
@@ -4789,22 +5283,23 @@ export interface YearlyTurnoverResponseMonthlyBreakdownInner {
4789
5283
  }
4790
5284
 
4791
5285
  /**
4792
- * ClubAnalyticsApi - axios parameter creator
5286
+ * BookingsApi - axios parameter creator
4793
5287
  * @export
4794
5288
  */
4795
- export const ClubAnalyticsApiAxiosParamCreator = function (configuration?: Configuration) {
5289
+ export const BookingsApiAxiosParamCreator = function (configuration?: Configuration) {
4796
5290
  return {
4797
5291
  /**
4798
- *
4799
- * @summary Chiffre d\'affaires quotidien (club courant)
4800
- * @param {string} date Date (format YYYY-MM-DD)
5292
+ * Retourne une liste de réservations pour une date donnée, avec les joueurs et terrains (incluant le sport) peuplés.
5293
+ * @summary Récupérer les réservations journalières
5294
+ * @param {string} date Date au format YYYY-MM-DD
4801
5295
  * @param {*} [options] Override http request option.
4802
5296
  * @throws {RequiredError}
4803
5297
  */
4804
- getDailyTurnOver: async (date: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5298
+ bookingsStaffDailyDateGet: async (date: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4805
5299
  // verify required parameter 'date' is not null or undefined
4806
- assertParamExists('getDailyTurnOver', 'date', date)
4807
- const localVarPath = `/api/analytics/dailyTurnover`;
5300
+ assertParamExists('bookingsStaffDailyDateGet', 'date', date)
5301
+ const localVarPath = `/bookings/staff/daily/{date}`
5302
+ .replace(`{${"date"}}`, encodeURIComponent(String(date)));
4808
5303
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4809
5304
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4810
5305
  let baseOptions;
@@ -4820,12 +5315,6 @@ export const ClubAnalyticsApiAxiosParamCreator = function (configuration?: Confi
4820
5315
  // http bearer authentication required
4821
5316
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
4822
5317
 
4823
- if (date !== undefined) {
4824
- localVarQueryParameter['date'] = (date as any instanceof Date) ?
4825
- (date as any).toISOString().substring(0,10) :
4826
- date;
4827
- }
4828
-
4829
5318
 
4830
5319
 
4831
5320
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -4838,18 +5327,17 @@ export const ClubAnalyticsApiAxiosParamCreator = function (configuration?: Confi
4838
5327
  };
4839
5328
  },
4840
5329
  /**
4841
- *
4842
- * @summary Récupérer les factures du club courant
4843
- * @param {number} [page] Numéro de page
4844
- * @param {number} [limit] Nombre d\&#39;éléments par page
4845
- * @param {GetInvoicesStatusEnum} [status] Filtrer par statut
4846
- * @param {string} [startDate] Date de début (ISO format)
4847
- * @param {string} [endDate] Date de fin (ISO format)
5330
+ * Retourne une liste de réservations pour une semaine donnée, avec les joueurs et terrains (incluant le sport) peuplés.
5331
+ * @summary Récupérer les réservations hebdomadaires
5332
+ * @param {string} weekId ID de la semaine
4848
5333
  * @param {*} [options] Override http request option.
4849
5334
  * @throws {RequiredError}
4850
5335
  */
4851
- getInvoices: async (page?: number, limit?: number, status?: GetInvoicesStatusEnum, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4852
- const localVarPath = `/api/clubs/invoices`;
5336
+ bookingsStaffWeeklyWeekIdGet: async (weekId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5337
+ // verify required parameter 'weekId' is not null or undefined
5338
+ assertParamExists('bookingsStaffWeeklyWeekIdGet', 'weekId', weekId)
5339
+ const localVarPath = `/bookings/staff/weekly/{weekId}`
5340
+ .replace(`{${"weekId"}}`, encodeURIComponent(String(weekId)));
4853
5341
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4854
5342
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4855
5343
  let baseOptions;
@@ -4865,30 +5353,6 @@ export const ClubAnalyticsApiAxiosParamCreator = function (configuration?: Confi
4865
5353
  // http bearer authentication required
4866
5354
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
4867
5355
 
4868
- if (page !== undefined) {
4869
- localVarQueryParameter['page'] = page;
4870
- }
4871
-
4872
- if (limit !== undefined) {
4873
- localVarQueryParameter['limit'] = limit;
4874
- }
4875
-
4876
- if (status !== undefined) {
4877
- localVarQueryParameter['status'] = status;
4878
- }
4879
-
4880
- if (startDate !== undefined) {
4881
- localVarQueryParameter['startDate'] = (startDate as any instanceof Date) ?
4882
- (startDate as any).toISOString() :
4883
- startDate;
4884
- }
4885
-
4886
- if (endDate !== undefined) {
4887
- localVarQueryParameter['endDate'] = (endDate as any instanceof Date) ?
4888
- (endDate as any).toISOString() :
4889
- endDate;
4890
- }
4891
-
4892
5356
 
4893
5357
 
4894
5358
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -4900,22 +5364,265 @@ export const ClubAnalyticsApiAxiosParamCreator = function (configuration?: Confi
4900
5364
  options: localVarRequestOptions,
4901
5365
  };
4902
5366
  },
5367
+ }
5368
+ };
5369
+
5370
+ /**
5371
+ * BookingsApi - functional programming interface
5372
+ * @export
5373
+ */
5374
+ export const BookingsApiFp = function(configuration?: Configuration) {
5375
+ const localVarAxiosParamCreator = BookingsApiAxiosParamCreator(configuration)
5376
+ return {
4903
5377
  /**
4904
- *
4905
- * @summary Chiffre d\'affaires mensuel (club courant)
4906
- * @param {number} year Année
4907
- * @param {number} month Mois (1-12)
5378
+ * Retourne une liste de réservations pour une date donnée, avec les joueurs et terrains (incluant le sport) peuplés.
5379
+ * @summary Récupérer les réservations journalières
5380
+ * @param {string} date Date au format YYYY-MM-DD
4908
5381
  * @param {*} [options] Override http request option.
4909
5382
  * @throws {RequiredError}
4910
5383
  */
4911
- getMonthlyTurnOver: async (year: number, month: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4912
- // verify required parameter 'year' is not null or undefined
4913
- assertParamExists('getMonthlyTurnOver', 'year', year)
4914
- // verify required parameter 'month' is not null or undefined
4915
- assertParamExists('getMonthlyTurnOver', 'month', month)
4916
- const localVarPath = `/api/analytics/monthlyTurnover`;
4917
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4918
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5384
+ async bookingsStaffDailyDateGet(date: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingsStaffWeeklyWeekIdGet200Response>> {
5385
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bookingsStaffDailyDateGet(date, options);
5386
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5387
+ const localVarOperationServerBasePath = operationServerMap['BookingsApi.bookingsStaffDailyDateGet']?.[localVarOperationServerIndex]?.url;
5388
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5389
+ },
5390
+ /**
5391
+ * Retourne une liste de réservations pour une semaine donnée, avec les joueurs et terrains (incluant le sport) peuplés.
5392
+ * @summary Récupérer les réservations hebdomadaires
5393
+ * @param {string} weekId ID de la semaine
5394
+ * @param {*} [options] Override http request option.
5395
+ * @throws {RequiredError}
5396
+ */
5397
+ async bookingsStaffWeeklyWeekIdGet(weekId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingsStaffWeeklyWeekIdGet200Response>> {
5398
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bookingsStaffWeeklyWeekIdGet(weekId, options);
5399
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5400
+ const localVarOperationServerBasePath = operationServerMap['BookingsApi.bookingsStaffWeeklyWeekIdGet']?.[localVarOperationServerIndex]?.url;
5401
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5402
+ },
5403
+ }
5404
+ };
5405
+
5406
+ /**
5407
+ * BookingsApi - factory interface
5408
+ * @export
5409
+ */
5410
+ export const BookingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
5411
+ const localVarFp = BookingsApiFp(configuration)
5412
+ return {
5413
+ /**
5414
+ * Retourne une liste de réservations pour une date donnée, avec les joueurs et terrains (incluant le sport) peuplés.
5415
+ * @summary Récupérer les réservations journalières
5416
+ * @param {BookingsApiBookingsStaffDailyDateGetRequest} requestParameters Request parameters.
5417
+ * @param {*} [options] Override http request option.
5418
+ * @throws {RequiredError}
5419
+ */
5420
+ bookingsStaffDailyDateGet(requestParameters: BookingsApiBookingsStaffDailyDateGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingsStaffWeeklyWeekIdGet200Response> {
5421
+ return localVarFp.bookingsStaffDailyDateGet(requestParameters.date, options).then((request) => request(axios, basePath));
5422
+ },
5423
+ /**
5424
+ * Retourne une liste de réservations pour une semaine donnée, avec les joueurs et terrains (incluant le sport) peuplés.
5425
+ * @summary Récupérer les réservations hebdomadaires
5426
+ * @param {BookingsApiBookingsStaffWeeklyWeekIdGetRequest} requestParameters Request parameters.
5427
+ * @param {*} [options] Override http request option.
5428
+ * @throws {RequiredError}
5429
+ */
5430
+ bookingsStaffWeeklyWeekIdGet(requestParameters: BookingsApiBookingsStaffWeeklyWeekIdGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingsStaffWeeklyWeekIdGet200Response> {
5431
+ return localVarFp.bookingsStaffWeeklyWeekIdGet(requestParameters.weekId, options).then((request) => request(axios, basePath));
5432
+ },
5433
+ };
5434
+ };
5435
+
5436
+ /**
5437
+ * Request parameters for bookingsStaffDailyDateGet operation in BookingsApi.
5438
+ * @export
5439
+ * @interface BookingsApiBookingsStaffDailyDateGetRequest
5440
+ */
5441
+ export interface BookingsApiBookingsStaffDailyDateGetRequest {
5442
+ /**
5443
+ * Date au format YYYY-MM-DD
5444
+ * @type {string}
5445
+ * @memberof BookingsApiBookingsStaffDailyDateGet
5446
+ */
5447
+ readonly date: string
5448
+ }
5449
+
5450
+ /**
5451
+ * Request parameters for bookingsStaffWeeklyWeekIdGet operation in BookingsApi.
5452
+ * @export
5453
+ * @interface BookingsApiBookingsStaffWeeklyWeekIdGetRequest
5454
+ */
5455
+ export interface BookingsApiBookingsStaffWeeklyWeekIdGetRequest {
5456
+ /**
5457
+ * ID de la semaine
5458
+ * @type {string}
5459
+ * @memberof BookingsApiBookingsStaffWeeklyWeekIdGet
5460
+ */
5461
+ readonly weekId: string
5462
+ }
5463
+
5464
+ /**
5465
+ * BookingsApi - object-oriented interface
5466
+ * @export
5467
+ * @class BookingsApi
5468
+ * @extends {BaseAPI}
5469
+ */
5470
+ export class BookingsApi extends BaseAPI {
5471
+ /**
5472
+ * Retourne une liste de réservations pour une date donnée, avec les joueurs et terrains (incluant le sport) peuplés.
5473
+ * @summary Récupérer les réservations journalières
5474
+ * @param {BookingsApiBookingsStaffDailyDateGetRequest} requestParameters Request parameters.
5475
+ * @param {*} [options] Override http request option.
5476
+ * @throws {RequiredError}
5477
+ * @memberof BookingsApi
5478
+ */
5479
+ public bookingsStaffDailyDateGet(requestParameters: BookingsApiBookingsStaffDailyDateGetRequest, options?: RawAxiosRequestConfig) {
5480
+ return BookingsApiFp(this.configuration).bookingsStaffDailyDateGet(requestParameters.date, options).then((request) => request(this.axios, this.basePath));
5481
+ }
5482
+
5483
+ /**
5484
+ * Retourne une liste de réservations pour une semaine donnée, avec les joueurs et terrains (incluant le sport) peuplés.
5485
+ * @summary Récupérer les réservations hebdomadaires
5486
+ * @param {BookingsApiBookingsStaffWeeklyWeekIdGetRequest} requestParameters Request parameters.
5487
+ * @param {*} [options] Override http request option.
5488
+ * @throws {RequiredError}
5489
+ * @memberof BookingsApi
5490
+ */
5491
+ public bookingsStaffWeeklyWeekIdGet(requestParameters: BookingsApiBookingsStaffWeeklyWeekIdGetRequest, options?: RawAxiosRequestConfig) {
5492
+ return BookingsApiFp(this.configuration).bookingsStaffWeeklyWeekIdGet(requestParameters.weekId, options).then((request) => request(this.axios, this.basePath));
5493
+ }
5494
+ }
5495
+
5496
+
5497
+
5498
+ /**
5499
+ * ClubAnalyticsApi - axios parameter creator
5500
+ * @export
5501
+ */
5502
+ export const ClubAnalyticsApiAxiosParamCreator = function (configuration?: Configuration) {
5503
+ return {
5504
+ /**
5505
+ *
5506
+ * @summary Chiffre d\'affaires quotidien (club courant)
5507
+ * @param {string} date Date (format YYYY-MM-DD)
5508
+ * @param {*} [options] Override http request option.
5509
+ * @throws {RequiredError}
5510
+ */
5511
+ getDailyTurnOver: async (date: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5512
+ // verify required parameter 'date' is not null or undefined
5513
+ assertParamExists('getDailyTurnOver', 'date', date)
5514
+ const localVarPath = `/api/analytics/dailyTurnover`;
5515
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5516
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5517
+ let baseOptions;
5518
+ if (configuration) {
5519
+ baseOptions = configuration.baseOptions;
5520
+ }
5521
+
5522
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5523
+ const localVarHeaderParameter = {} as any;
5524
+ const localVarQueryParameter = {} as any;
5525
+
5526
+ // authentication bearerAuth required
5527
+ // http bearer authentication required
5528
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
5529
+
5530
+ if (date !== undefined) {
5531
+ localVarQueryParameter['date'] = (date as any instanceof Date) ?
5532
+ (date as any).toISOString().substring(0,10) :
5533
+ date;
5534
+ }
5535
+
5536
+
5537
+
5538
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5539
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5540
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5541
+
5542
+ return {
5543
+ url: toPathString(localVarUrlObj),
5544
+ options: localVarRequestOptions,
5545
+ };
5546
+ },
5547
+ /**
5548
+ *
5549
+ * @summary Récupérer les factures du club courant
5550
+ * @param {number} [page] Numéro de page
5551
+ * @param {number} [limit] Nombre d\&#39;éléments par page
5552
+ * @param {GetInvoicesStatusEnum} [status] Filtrer par statut
5553
+ * @param {string} [startDate] Date de début (ISO format)
5554
+ * @param {string} [endDate] Date de fin (ISO format)
5555
+ * @param {*} [options] Override http request option.
5556
+ * @throws {RequiredError}
5557
+ */
5558
+ getInvoices: async (page?: number, limit?: number, status?: GetInvoicesStatusEnum, startDate?: string, endDate?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5559
+ const localVarPath = `/api/clubs/invoices`;
5560
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5561
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5562
+ let baseOptions;
5563
+ if (configuration) {
5564
+ baseOptions = configuration.baseOptions;
5565
+ }
5566
+
5567
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5568
+ const localVarHeaderParameter = {} as any;
5569
+ const localVarQueryParameter = {} as any;
5570
+
5571
+ // authentication bearerAuth required
5572
+ // http bearer authentication required
5573
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
5574
+
5575
+ if (page !== undefined) {
5576
+ localVarQueryParameter['page'] = page;
5577
+ }
5578
+
5579
+ if (limit !== undefined) {
5580
+ localVarQueryParameter['limit'] = limit;
5581
+ }
5582
+
5583
+ if (status !== undefined) {
5584
+ localVarQueryParameter['status'] = status;
5585
+ }
5586
+
5587
+ if (startDate !== undefined) {
5588
+ localVarQueryParameter['startDate'] = (startDate as any instanceof Date) ?
5589
+ (startDate as any).toISOString() :
5590
+ startDate;
5591
+ }
5592
+
5593
+ if (endDate !== undefined) {
5594
+ localVarQueryParameter['endDate'] = (endDate as any instanceof Date) ?
5595
+ (endDate as any).toISOString() :
5596
+ endDate;
5597
+ }
5598
+
5599
+
5600
+
5601
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5602
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5603
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5604
+
5605
+ return {
5606
+ url: toPathString(localVarUrlObj),
5607
+ options: localVarRequestOptions,
5608
+ };
5609
+ },
5610
+ /**
5611
+ *
5612
+ * @summary Chiffre d\'affaires mensuel (club courant)
5613
+ * @param {number} year Année
5614
+ * @param {number} month Mois (1-12)
5615
+ * @param {*} [options] Override http request option.
5616
+ * @throws {RequiredError}
5617
+ */
5618
+ getMonthlyTurnOver: async (year: number, month: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5619
+ // verify required parameter 'year' is not null or undefined
5620
+ assertParamExists('getMonthlyTurnOver', 'year', year)
5621
+ // verify required parameter 'month' is not null or undefined
5622
+ assertParamExists('getMonthlyTurnOver', 'month', month)
5623
+ const localVarPath = `/api/analytics/monthlyTurnover`;
5624
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5625
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4919
5626
  let baseOptions;
4920
5627
  if (configuration) {
4921
5628
  baseOptions = configuration.baseOptions;
@@ -6057,7 +6764,7 @@ export const ManagerClubCourtsApiFp = function(configuration?: Configuration) {
6057
6764
  * @param {*} [options] Override http request option.
6058
6765
  * @throws {RequiredError}
6059
6766
  */
6060
- async getCourtsByClub(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CourtsResponse>> {
6767
+ async getCourtsByClub(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CourtsWithNameResponse>> {
6061
6768
  const localVarAxiosArgs = await localVarAxiosParamCreator.getCourtsByClub(options);
6062
6769
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6063
6770
  const localVarOperationServerBasePath = operationServerMap['ManagerClubCourtsApi.getCourtsByClub']?.[localVarOperationServerIndex]?.url;
@@ -6113,7 +6820,7 @@ export const ManagerClubCourtsApiFactory = function (configuration?: Configurati
6113
6820
  * @param {*} [options] Override http request option.
6114
6821
  * @throws {RequiredError}
6115
6822
  */
6116
- getCourtsByClub(options?: RawAxiosRequestConfig): AxiosPromise<CourtsResponse> {
6823
+ getCourtsByClub(options?: RawAxiosRequestConfig): AxiosPromise<CourtsWithNameResponse> {
6117
6824
  return localVarFp.getCourtsByClub(options).then((request) => request(axios, basePath));
6118
6825
  },
6119
6826
  /**
@@ -8697,6 +9404,40 @@ export const StaffClubAnalyticsApiAxiosParamCreator = function (configuration?:
8697
9404
 
8698
9405
 
8699
9406
 
9407
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9408
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9409
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9410
+
9411
+ return {
9412
+ url: toPathString(localVarUrlObj),
9413
+ options: localVarRequestOptions,
9414
+ };
9415
+ },
9416
+ /**
9417
+ *
9418
+ * @summary Récupère le pourcentage de joueurs par genre pour le club courant
9419
+ * @param {*} [options] Override http request option.
9420
+ * @throws {RequiredError}
9421
+ */
9422
+ getGenderPercentage: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9423
+ const localVarPath = `/api/analytics/gender`;
9424
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9425
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9426
+ let baseOptions;
9427
+ if (configuration) {
9428
+ baseOptions = configuration.baseOptions;
9429
+ }
9430
+
9431
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
9432
+ const localVarHeaderParameter = {} as any;
9433
+ const localVarQueryParameter = {} as any;
9434
+
9435
+ // authentication bearerAuth required
9436
+ // http bearer authentication required
9437
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
9438
+
9439
+
9440
+
8700
9441
  setSearchParams(localVarUrlObj, localVarQueryParameter);
8701
9442
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8702
9443
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -8792,12 +9533,24 @@ export const StaffClubAnalyticsApiFp = function(configuration?: Configuration) {
8792
9533
  * @param {*} [options] Override http request option.
8793
9534
  * @throws {RequiredError}
8794
9535
  */
8795
- async getClubPlayers(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClubPlayers200Response>> {
9536
+ async getClubPlayers(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserStaffResponse>>> {
8796
9537
  const localVarAxiosArgs = await localVarAxiosParamCreator.getClubPlayers(options);
8797
9538
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8798
9539
  const localVarOperationServerBasePath = operationServerMap['StaffClubAnalyticsApi.getClubPlayers']?.[localVarOperationServerIndex]?.url;
8799
9540
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8800
9541
  },
9542
+ /**
9543
+ *
9544
+ * @summary Récupère le pourcentage de joueurs par genre pour le club courant
9545
+ * @param {*} [options] Override http request option.
9546
+ * @throws {RequiredError}
9547
+ */
9548
+ async getGenderPercentage(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GenderPercentage>> {
9549
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGenderPercentage(options);
9550
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9551
+ const localVarOperationServerBasePath = operationServerMap['StaffClubAnalyticsApi.getGenderPercentage']?.[localVarOperationServerIndex]?.url;
9552
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9553
+ },
8801
9554
  /**
8802
9555
  *
8803
9556
  * @summary Get monthly turnover for the last six months (club courant)
@@ -8839,9 +9592,18 @@ export const StaffClubAnalyticsApiFactory = function (configuration?: Configurat
8839
9592
  * @param {*} [options] Override http request option.
8840
9593
  * @throws {RequiredError}
8841
9594
  */
8842
- getClubPlayers(options?: RawAxiosRequestConfig): AxiosPromise<GetClubPlayers200Response> {
9595
+ getClubPlayers(options?: RawAxiosRequestConfig): AxiosPromise<Array<UserStaffResponse>> {
8843
9596
  return localVarFp.getClubPlayers(options).then((request) => request(axios, basePath));
8844
9597
  },
9598
+ /**
9599
+ *
9600
+ * @summary Récupère le pourcentage de joueurs par genre pour le club courant
9601
+ * @param {*} [options] Override http request option.
9602
+ * @throws {RequiredError}
9603
+ */
9604
+ getGenderPercentage(options?: RawAxiosRequestConfig): AxiosPromise<GenderPercentage> {
9605
+ return localVarFp.getGenderPercentage(options).then((request) => request(axios, basePath));
9606
+ },
8845
9607
  /**
8846
9608
  *
8847
9609
  * @summary Get monthly turnover for the last six months (club courant)
@@ -8896,6 +9658,17 @@ export class StaffClubAnalyticsApi extends BaseAPI {
8896
9658
  return StaffClubAnalyticsApiFp(this.configuration).getClubPlayers(options).then((request) => request(this.axios, this.basePath));
8897
9659
  }
8898
9660
 
9661
+ /**
9662
+ *
9663
+ * @summary Récupère le pourcentage de joueurs par genre pour le club courant
9664
+ * @param {*} [options] Override http request option.
9665
+ * @throws {RequiredError}
9666
+ * @memberof StaffClubAnalyticsApi
9667
+ */
9668
+ public getGenderPercentage(options?: RawAxiosRequestConfig) {
9669
+ return StaffClubAnalyticsApiFp(this.configuration).getGenderPercentage(options).then((request) => request(this.axios, this.basePath));
9670
+ }
9671
+
8899
9672
  /**
8900
9673
  *
8901
9674
  * @summary Get monthly turnover for the last six months (club courant)
@@ -9175,7 +9948,7 @@ export const StaffClubsApiFp = function(configuration?: Configuration) {
9175
9948
  * @param {*} [options] Override http request option.
9176
9949
  * @throws {RequiredError}
9177
9950
  */
9178
- async getSports(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SportsResponse>> {
9951
+ async getSports(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SportResponse>>> {
9179
9952
  const localVarAxiosArgs = await localVarAxiosParamCreator.getSports(options);
9180
9953
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9181
9954
  const localVarOperationServerBasePath = operationServerMap['StaffClubsApi.getSports']?.[localVarOperationServerIndex]?.url;
@@ -9215,7 +9988,7 @@ export const StaffClubsApiFactory = function (configuration?: Configuration, bas
9215
9988
  * @param {*} [options] Override http request option.
9216
9989
  * @throws {RequiredError}
9217
9990
  */
9218
- getSports(options?: RawAxiosRequestConfig): AxiosPromise<SportsResponse> {
9991
+ getSports(options?: RawAxiosRequestConfig): AxiosPromise<Array<SportResponse>> {
9219
9992
  return localVarFp.getSports(options).then((request) => request(axios, basePath));
9220
9993
  },
9221
9994
  };
@@ -10081,15 +10854,49 @@ export const UserBookingsApiAxiosParamCreator = function (configuration?: Config
10081
10854
  options: localVarRequestOptions,
10082
10855
  };
10083
10856
  },
10084
- }
10085
- };
10086
-
10087
- /**
10088
- * UserBookingsApi - functional programming interface
10089
- * @export
10090
- */
10091
- export const UserBookingsApiFp = function(configuration?: Configuration) {
10092
- const localVarAxiosParamCreator = UserBookingsApiAxiosParamCreator(configuration)
10857
+ /**
10858
+ *
10859
+ * @summary Récupère l\'historique des réservations de l\'utilisateur connecté
10860
+ * @param {*} [options] Override http request option.
10861
+ * @throws {RequiredError}
10862
+ */
10863
+ getBookingHistory: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10864
+ const localVarPath = `/api/users/me/booking-history`;
10865
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10866
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10867
+ let baseOptions;
10868
+ if (configuration) {
10869
+ baseOptions = configuration.baseOptions;
10870
+ }
10871
+
10872
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
10873
+ const localVarHeaderParameter = {} as any;
10874
+ const localVarQueryParameter = {} as any;
10875
+
10876
+ // authentication bearerAuth required
10877
+ // http bearer authentication required
10878
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
10879
+
10880
+
10881
+
10882
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10883
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10884
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10885
+
10886
+ return {
10887
+ url: toPathString(localVarUrlObj),
10888
+ options: localVarRequestOptions,
10889
+ };
10890
+ },
10891
+ }
10892
+ };
10893
+
10894
+ /**
10895
+ * UserBookingsApi - functional programming interface
10896
+ * @export
10897
+ */
10898
+ export const UserBookingsApiFp = function(configuration?: Configuration) {
10899
+ const localVarAxiosParamCreator = UserBookingsApiAxiosParamCreator(configuration)
10093
10900
  return {
10094
10901
  /**
10095
10902
  * Bloque temporairement un créneau pour éviter les réservations simultanées pendant le processus de réservation
@@ -10117,6 +10924,18 @@ export const UserBookingsApiFp = function(configuration?: Configuration) {
10117
10924
  const localVarOperationServerBasePath = operationServerMap['UserBookingsApi.createBooking']?.[localVarOperationServerIndex]?.url;
10118
10925
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10119
10926
  },
10927
+ /**
10928
+ *
10929
+ * @summary Récupère l\'historique des réservations de l\'utilisateur connecté
10930
+ * @param {*} [options] Override http request option.
10931
+ * @throws {RequiredError}
10932
+ */
10933
+ async getBookingHistory(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserBookingItem>>> {
10934
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingHistory(options);
10935
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10936
+ const localVarOperationServerBasePath = operationServerMap['UserBookingsApi.getBookingHistory']?.[localVarOperationServerIndex]?.url;
10937
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10938
+ },
10120
10939
  }
10121
10940
  };
10122
10941
 
@@ -10147,6 +10966,15 @@ export const UserBookingsApiFactory = function (configuration?: Configuration, b
10147
10966
  createBooking(requestParameters: UserBookingsApiCreateBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingResponse> {
10148
10967
  return localVarFp.createBooking(requestParameters.createBookingRequest, options).then((request) => request(axios, basePath));
10149
10968
  },
10969
+ /**
10970
+ *
10971
+ * @summary Récupère l\'historique des réservations de l\'utilisateur connecté
10972
+ * @param {*} [options] Override http request option.
10973
+ * @throws {RequiredError}
10974
+ */
10975
+ getBookingHistory(options?: RawAxiosRequestConfig): AxiosPromise<Array<UserBookingItem>> {
10976
+ return localVarFp.getBookingHistory(options).then((request) => request(axios, basePath));
10977
+ },
10150
10978
  };
10151
10979
  };
10152
10980
 
@@ -10208,6 +11036,17 @@ export class UserBookingsApi extends BaseAPI {
10208
11036
  public createBooking(requestParameters: UserBookingsApiCreateBookingRequest, options?: RawAxiosRequestConfig) {
10209
11037
  return UserBookingsApiFp(this.configuration).createBooking(requestParameters.createBookingRequest, options).then((request) => request(this.axios, this.basePath));
10210
11038
  }
11039
+
11040
+ /**
11041
+ *
11042
+ * @summary Récupère l\'historique des réservations de l\'utilisateur connecté
11043
+ * @param {*} [options] Override http request option.
11044
+ * @throws {RequiredError}
11045
+ * @memberof UserBookingsApi
11046
+ */
11047
+ public getBookingHistory(options?: RawAxiosRequestConfig) {
11048
+ return UserBookingsApiFp(this.configuration).getBookingHistory(options).then((request) => request(this.axios, this.basePath));
11049
+ }
10211
11050
  }
10212
11051
 
10213
11052
 
@@ -10777,7 +11616,7 @@ export const UserClubSportsApiFp = function(configuration?: Configuration) {
10777
11616
  * @param {*} [options] Override http request option.
10778
11617
  * @throws {RequiredError}
10779
11618
  */
10780
- async getSportsByClub(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SportsResponse>> {
11619
+ async getSportsByClub(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Sport>>> {
10781
11620
  const localVarAxiosArgs = await localVarAxiosParamCreator.getSportsByClub(id, options);
10782
11621
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10783
11622
  const localVarOperationServerBasePath = operationServerMap['UserClubSportsApi.getSportsByClub']?.[localVarOperationServerIndex]?.url;
@@ -10800,7 +11639,7 @@ export const UserClubSportsApiFactory = function (configuration?: Configuration,
10800
11639
  * @param {*} [options] Override http request option.
10801
11640
  * @throws {RequiredError}
10802
11641
  */
10803
- getSportsByClub(requestParameters: UserClubSportsApiGetSportsByClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<SportsResponse> {
11642
+ getSportsByClub(requestParameters: UserClubSportsApiGetSportsByClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<Sport>> {
10804
11643
  return localVarFp.getSportsByClub(requestParameters.id, options).then((request) => request(axios, basePath));
10805
11644
  },
10806
11645
  };
@@ -11627,6 +12466,44 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
11627
12466
 
11628
12467
 
11629
12468
 
12469
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12470
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12471
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12472
+
12473
+ return {
12474
+ url: toPathString(localVarUrlObj),
12475
+ options: localVarRequestOptions,
12476
+ };
12477
+ },
12478
+ /**
12479
+ *
12480
+ * @summary Récupère le detéail d\'une réservation
12481
+ * @param {string} bookingId ID de la réservation
12482
+ * @param {*} [options] Override http request option.
12483
+ * @throws {RequiredError}
12484
+ */
12485
+ getUserBookingDetail: async (bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12486
+ // verify required parameter 'bookingId' is not null or undefined
12487
+ assertParamExists('getUserBookingDetail', 'bookingId', bookingId)
12488
+ const localVarPath = `/api/users/me/booking-detail/{bookingId}`
12489
+ .replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
12490
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12491
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12492
+ let baseOptions;
12493
+ if (configuration) {
12494
+ baseOptions = configuration.baseOptions;
12495
+ }
12496
+
12497
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12498
+ const localVarHeaderParameter = {} as any;
12499
+ const localVarQueryParameter = {} as any;
12500
+
12501
+ // authentication bearerAuth required
12502
+ // http bearer authentication required
12503
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12504
+
12505
+
12506
+
11630
12507
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11631
12508
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11632
12509
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -12269,6 +13146,19 @@ export const UserProfileApiFp = function(configuration?: Configuration) {
12269
13146
  const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getPublicUserProfile']?.[localVarOperationServerIndex]?.url;
12270
13147
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12271
13148
  },
13149
+ /**
13150
+ *
13151
+ * @summary Récupère le detéail d\'une réservation
13152
+ * @param {string} bookingId ID de la réservation
13153
+ * @param {*} [options] Override http request option.
13154
+ * @throws {RequiredError}
13155
+ */
13156
+ async getUserBookingDetail(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserBookingItem>> {
13157
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUserBookingDetail(bookingId, options);
13158
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13159
+ const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getUserBookingDetail']?.[localVarOperationServerIndex]?.url;
13160
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13161
+ },
12272
13162
  /**
12273
13163
  *
12274
13164
  * @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
@@ -12540,6 +13430,16 @@ export const UserProfileApiFactory = function (configuration?: Configuration, ba
12540
13430
  getPublicUserProfile(requestParameters: UserProfileApiGetPublicUserProfileRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublicClubUser> {
12541
13431
  return localVarFp.getPublicUserProfile(requestParameters.id, options).then((request) => request(axios, basePath));
12542
13432
  },
13433
+ /**
13434
+ *
13435
+ * @summary Récupère le detéail d\'une réservation
13436
+ * @param {UserProfileApiGetUserBookingDetailRequest} requestParameters Request parameters.
13437
+ * @param {*} [options] Override http request option.
13438
+ * @throws {RequiredError}
13439
+ */
13440
+ getUserBookingDetail(requestParameters: UserProfileApiGetUserBookingDetailRequest, options?: RawAxiosRequestConfig): AxiosPromise<UserBookingItem> {
13441
+ return localVarFp.getUserBookingDetail(requestParameters.bookingId, options).then((request) => request(axios, basePath));
13442
+ },
12543
13443
  /**
12544
13444
  *
12545
13445
  * @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
@@ -12753,6 +13653,20 @@ export interface UserProfileApiGetPublicUserProfileRequest {
12753
13653
  readonly id: string
12754
13654
  }
12755
13655
 
13656
+ /**
13657
+ * Request parameters for getUserBookingDetail operation in UserProfileApi.
13658
+ * @export
13659
+ * @interface UserProfileApiGetUserBookingDetailRequest
13660
+ */
13661
+ export interface UserProfileApiGetUserBookingDetailRequest {
13662
+ /**
13663
+ * ID de la réservation
13664
+ * @type {string}
13665
+ * @memberof UserProfileApiGetUserBookingDetail
13666
+ */
13667
+ readonly bookingId: string
13668
+ }
13669
+
12756
13670
  /**
12757
13671
  * Request parameters for getUserBookings operation in UserProfileApi.
12758
13672
  * @export
@@ -13008,6 +13922,18 @@ export class UserProfileApi extends BaseAPI {
13008
13922
  return UserProfileApiFp(this.configuration).getPublicUserProfile(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
13009
13923
  }
13010
13924
 
13925
+ /**
13926
+ *
13927
+ * @summary Récupère le detéail d\'une réservation
13928
+ * @param {UserProfileApiGetUserBookingDetailRequest} requestParameters Request parameters.
13929
+ * @param {*} [options] Override http request option.
13930
+ * @throws {RequiredError}
13931
+ * @memberof UserProfileApi
13932
+ */
13933
+ public getUserBookingDetail(requestParameters: UserProfileApiGetUserBookingDetailRequest, options?: RawAxiosRequestConfig) {
13934
+ return UserProfileApiFp(this.configuration).getUserBookingDetail(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
13935
+ }
13936
+
13011
13937
  /**
13012
13938
  *
13013
13939
  * @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
@@ -13555,3 +14481,506 @@ export class UserSubscriptionsApi extends BaseAPI {
13555
14481
 
13556
14482
 
13557
14483
 
14484
+ /**
14485
+ * UsersApi - axios parameter creator
14486
+ * @export
14487
+ */
14488
+ export const UsersApiAxiosParamCreator = function (configuration?: Configuration) {
14489
+ return {
14490
+ /**
14491
+ *
14492
+ * @summary Récupère les clubs proches de l’utilisateur connecté
14493
+ * @param {number} [radiusInKm] Rayon de recherche en kilomètres
14494
+ * @param {number} [limit] Nombre maximum de résultats
14495
+ * @param {*} [options] Override http request option.
14496
+ * @throws {RequiredError}
14497
+ */
14498
+ apiUsersMeNearestClubsGet: async (radiusInKm?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14499
+ const localVarPath = `/api/users/me/nearest-clubs/`;
14500
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14501
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14502
+ let baseOptions;
14503
+ if (configuration) {
14504
+ baseOptions = configuration.baseOptions;
14505
+ }
14506
+
14507
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
14508
+ const localVarHeaderParameter = {} as any;
14509
+ const localVarQueryParameter = {} as any;
14510
+
14511
+ // authentication bearerAuth required
14512
+ // http bearer authentication required
14513
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
14514
+
14515
+ if (radiusInKm !== undefined) {
14516
+ localVarQueryParameter['radiusInKm'] = radiusInKm;
14517
+ }
14518
+
14519
+ if (limit !== undefined) {
14520
+ localVarQueryParameter['limit'] = limit;
14521
+ }
14522
+
14523
+
14524
+
14525
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14526
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14527
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14528
+
14529
+ return {
14530
+ url: toPathString(localVarUrlObj),
14531
+ options: localVarRequestOptions,
14532
+ };
14533
+ },
14534
+ /**
14535
+ *
14536
+ * @summary Récupère les utilisateurs proches de l’utilisateur connecté
14537
+ * @param {number} [radiusInKm] Rayon de recherche en kilomètres
14538
+ * @param {number} [limit] Nombre maximum de résultats
14539
+ * @param {*} [options] Override http request option.
14540
+ * @throws {RequiredError}
14541
+ */
14542
+ apiUsersMeNearestPlayersGet: async (radiusInKm?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14543
+ const localVarPath = `/api/users/me/nearest-players/`;
14544
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14545
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14546
+ let baseOptions;
14547
+ if (configuration) {
14548
+ baseOptions = configuration.baseOptions;
14549
+ }
14550
+
14551
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
14552
+ const localVarHeaderParameter = {} as any;
14553
+ const localVarQueryParameter = {} as any;
14554
+
14555
+ // authentication bearerAuth required
14556
+ // http bearer authentication required
14557
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
14558
+
14559
+ if (radiusInKm !== undefined) {
14560
+ localVarQueryParameter['radiusInKm'] = radiusInKm;
14561
+ }
14562
+
14563
+ if (limit !== undefined) {
14564
+ localVarQueryParameter['limit'] = limit;
14565
+ }
14566
+
14567
+
14568
+
14569
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14570
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14571
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14572
+
14573
+ return {
14574
+ url: toPathString(localVarUrlObj),
14575
+ options: localVarRequestOptions,
14576
+ };
14577
+ },
14578
+ /**
14579
+ *
14580
+ * @summary Récupère les clubs proches d’une position donnée
14581
+ * @param {number} latitude Latitude de la position
14582
+ * @param {number} longitude Longitude de la position
14583
+ * @param {number} [radiusInKm] Rayon de recherche en kilomètres
14584
+ * @param {number} [limit] Nombre maximum de résultats
14585
+ * @param {*} [options] Override http request option.
14586
+ * @throws {RequiredError}
14587
+ */
14588
+ apiUsersNearestClubsCoordinatesGet: async (latitude: number, longitude: number, radiusInKm?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14589
+ // verify required parameter 'latitude' is not null or undefined
14590
+ assertParamExists('apiUsersNearestClubsCoordinatesGet', 'latitude', latitude)
14591
+ // verify required parameter 'longitude' is not null or undefined
14592
+ assertParamExists('apiUsersNearestClubsCoordinatesGet', 'longitude', longitude)
14593
+ const localVarPath = `/api/users/nearest-clubs/coordinates`;
14594
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14595
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14596
+ let baseOptions;
14597
+ if (configuration) {
14598
+ baseOptions = configuration.baseOptions;
14599
+ }
14600
+
14601
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
14602
+ const localVarHeaderParameter = {} as any;
14603
+ const localVarQueryParameter = {} as any;
14604
+
14605
+ // authentication bearerAuth required
14606
+ // http bearer authentication required
14607
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
14608
+
14609
+ if (latitude !== undefined) {
14610
+ localVarQueryParameter['latitude'] = latitude;
14611
+ }
14612
+
14613
+ if (longitude !== undefined) {
14614
+ localVarQueryParameter['longitude'] = longitude;
14615
+ }
14616
+
14617
+ if (radiusInKm !== undefined) {
14618
+ localVarQueryParameter['radiusInKm'] = radiusInKm;
14619
+ }
14620
+
14621
+ if (limit !== undefined) {
14622
+ localVarQueryParameter['limit'] = limit;
14623
+ }
14624
+
14625
+
14626
+
14627
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14628
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14629
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14630
+
14631
+ return {
14632
+ url: toPathString(localVarUrlObj),
14633
+ options: localVarRequestOptions,
14634
+ };
14635
+ },
14636
+ /**
14637
+ *
14638
+ * @summary Récupère les utilisateurs proches d’une position donnée
14639
+ * @param {number} latitude Latitude de la position
14640
+ * @param {number} longitude Longitude de la position
14641
+ * @param {number} [radiusInKm] Rayon de recherche en kilomètres
14642
+ * @param {number} [limit] Nombre maximum de résultats
14643
+ * @param {*} [options] Override http request option.
14644
+ * @throws {RequiredError}
14645
+ */
14646
+ apiUsersNearestPlayersCoordinatesGet: async (latitude: number, longitude: number, radiusInKm?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14647
+ // verify required parameter 'latitude' is not null or undefined
14648
+ assertParamExists('apiUsersNearestPlayersCoordinatesGet', 'latitude', latitude)
14649
+ // verify required parameter 'longitude' is not null or undefined
14650
+ assertParamExists('apiUsersNearestPlayersCoordinatesGet', 'longitude', longitude)
14651
+ const localVarPath = `/api/users/nearest-players/coordinates`;
14652
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14653
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14654
+ let baseOptions;
14655
+ if (configuration) {
14656
+ baseOptions = configuration.baseOptions;
14657
+ }
14658
+
14659
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
14660
+ const localVarHeaderParameter = {} as any;
14661
+ const localVarQueryParameter = {} as any;
14662
+
14663
+ // authentication bearerAuth required
14664
+ // http bearer authentication required
14665
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
14666
+
14667
+ if (latitude !== undefined) {
14668
+ localVarQueryParameter['latitude'] = latitude;
14669
+ }
14670
+
14671
+ if (longitude !== undefined) {
14672
+ localVarQueryParameter['longitude'] = longitude;
14673
+ }
14674
+
14675
+ if (radiusInKm !== undefined) {
14676
+ localVarQueryParameter['radiusInKm'] = radiusInKm;
14677
+ }
14678
+
14679
+ if (limit !== undefined) {
14680
+ localVarQueryParameter['limit'] = limit;
14681
+ }
14682
+
14683
+
14684
+
14685
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14686
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14687
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14688
+
14689
+ return {
14690
+ url: toPathString(localVarUrlObj),
14691
+ options: localVarRequestOptions,
14692
+ };
14693
+ },
14694
+ }
14695
+ };
14696
+
14697
+ /**
14698
+ * UsersApi - functional programming interface
14699
+ * @export
14700
+ */
14701
+ export const UsersApiFp = function(configuration?: Configuration) {
14702
+ const localVarAxiosParamCreator = UsersApiAxiosParamCreator(configuration)
14703
+ return {
14704
+ /**
14705
+ *
14706
+ * @summary Récupère les clubs proches de l’utilisateur connecté
14707
+ * @param {number} [radiusInKm] Rayon de recherche en kilomètres
14708
+ * @param {number} [limit] Nombre maximum de résultats
14709
+ * @param {*} [options] Override http request option.
14710
+ * @throws {RequiredError}
14711
+ */
14712
+ async apiUsersMeNearestClubsGet(radiusInKm?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Club>>> {
14713
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiUsersMeNearestClubsGet(radiusInKm, limit, options);
14714
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14715
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.apiUsersMeNearestClubsGet']?.[localVarOperationServerIndex]?.url;
14716
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14717
+ },
14718
+ /**
14719
+ *
14720
+ * @summary Récupère les utilisateurs proches de l’utilisateur connecté
14721
+ * @param {number} [radiusInKm] Rayon de recherche en kilomètres
14722
+ * @param {number} [limit] Nombre maximum de résultats
14723
+ * @param {*} [options] Override http request option.
14724
+ * @throws {RequiredError}
14725
+ */
14726
+ async apiUsersMeNearestPlayersGet(radiusInKm?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponse>>> {
14727
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiUsersMeNearestPlayersGet(radiusInKm, limit, options);
14728
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14729
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.apiUsersMeNearestPlayersGet']?.[localVarOperationServerIndex]?.url;
14730
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14731
+ },
14732
+ /**
14733
+ *
14734
+ * @summary Récupère les clubs proches d’une position donnée
14735
+ * @param {number} latitude Latitude de la position
14736
+ * @param {number} longitude Longitude de la position
14737
+ * @param {number} [radiusInKm] Rayon de recherche en kilomètres
14738
+ * @param {number} [limit] Nombre maximum de résultats
14739
+ * @param {*} [options] Override http request option.
14740
+ * @throws {RequiredError}
14741
+ */
14742
+ async apiUsersNearestClubsCoordinatesGet(latitude: number, longitude: number, radiusInKm?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Club>>> {
14743
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiUsersNearestClubsCoordinatesGet(latitude, longitude, radiusInKm, limit, options);
14744
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14745
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.apiUsersNearestClubsCoordinatesGet']?.[localVarOperationServerIndex]?.url;
14746
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14747
+ },
14748
+ /**
14749
+ *
14750
+ * @summary Récupère les utilisateurs proches d’une position donnée
14751
+ * @param {number} latitude Latitude de la position
14752
+ * @param {number} longitude Longitude de la position
14753
+ * @param {number} [radiusInKm] Rayon de recherche en kilomètres
14754
+ * @param {number} [limit] Nombre maximum de résultats
14755
+ * @param {*} [options] Override http request option.
14756
+ * @throws {RequiredError}
14757
+ */
14758
+ async apiUsersNearestPlayersCoordinatesGet(latitude: number, longitude: number, radiusInKm?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponse>>> {
14759
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiUsersNearestPlayersCoordinatesGet(latitude, longitude, radiusInKm, limit, options);
14760
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14761
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.apiUsersNearestPlayersCoordinatesGet']?.[localVarOperationServerIndex]?.url;
14762
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14763
+ },
14764
+ }
14765
+ };
14766
+
14767
+ /**
14768
+ * UsersApi - factory interface
14769
+ * @export
14770
+ */
14771
+ export const UsersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
14772
+ const localVarFp = UsersApiFp(configuration)
14773
+ return {
14774
+ /**
14775
+ *
14776
+ * @summary Récupère les clubs proches de l’utilisateur connecté
14777
+ * @param {UsersApiApiUsersMeNearestClubsGetRequest} requestParameters Request parameters.
14778
+ * @param {*} [options] Override http request option.
14779
+ * @throws {RequiredError}
14780
+ */
14781
+ apiUsersMeNearestClubsGet(requestParameters: UsersApiApiUsersMeNearestClubsGetRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Array<Club>> {
14782
+ return localVarFp.apiUsersMeNearestClubsGet(requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
14783
+ },
14784
+ /**
14785
+ *
14786
+ * @summary Récupère les utilisateurs proches de l’utilisateur connecté
14787
+ * @param {UsersApiApiUsersMeNearestPlayersGetRequest} requestParameters Request parameters.
14788
+ * @param {*} [options] Override http request option.
14789
+ * @throws {RequiredError}
14790
+ */
14791
+ apiUsersMeNearestPlayersGet(requestParameters: UsersApiApiUsersMeNearestPlayersGetRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Array<UserResponse>> {
14792
+ return localVarFp.apiUsersMeNearestPlayersGet(requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
14793
+ },
14794
+ /**
14795
+ *
14796
+ * @summary Récupère les clubs proches d’une position donnée
14797
+ * @param {UsersApiApiUsersNearestClubsCoordinatesGetRequest} requestParameters Request parameters.
14798
+ * @param {*} [options] Override http request option.
14799
+ * @throws {RequiredError}
14800
+ */
14801
+ apiUsersNearestClubsCoordinatesGet(requestParameters: UsersApiApiUsersNearestClubsCoordinatesGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<Club>> {
14802
+ return localVarFp.apiUsersNearestClubsCoordinatesGet(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
14803
+ },
14804
+ /**
14805
+ *
14806
+ * @summary Récupère les utilisateurs proches d’une position donnée
14807
+ * @param {UsersApiApiUsersNearestPlayersCoordinatesGetRequest} requestParameters Request parameters.
14808
+ * @param {*} [options] Override http request option.
14809
+ * @throws {RequiredError}
14810
+ */
14811
+ apiUsersNearestPlayersCoordinatesGet(requestParameters: UsersApiApiUsersNearestPlayersCoordinatesGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<UserResponse>> {
14812
+ return localVarFp.apiUsersNearestPlayersCoordinatesGet(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(axios, basePath));
14813
+ },
14814
+ };
14815
+ };
14816
+
14817
+ /**
14818
+ * Request parameters for apiUsersMeNearestClubsGet operation in UsersApi.
14819
+ * @export
14820
+ * @interface UsersApiApiUsersMeNearestClubsGetRequest
14821
+ */
14822
+ export interface UsersApiApiUsersMeNearestClubsGetRequest {
14823
+ /**
14824
+ * Rayon de recherche en kilomètres
14825
+ * @type {number}
14826
+ * @memberof UsersApiApiUsersMeNearestClubsGet
14827
+ */
14828
+ readonly radiusInKm?: number
14829
+
14830
+ /**
14831
+ * Nombre maximum de résultats
14832
+ * @type {number}
14833
+ * @memberof UsersApiApiUsersMeNearestClubsGet
14834
+ */
14835
+ readonly limit?: number
14836
+ }
14837
+
14838
+ /**
14839
+ * Request parameters for apiUsersMeNearestPlayersGet operation in UsersApi.
14840
+ * @export
14841
+ * @interface UsersApiApiUsersMeNearestPlayersGetRequest
14842
+ */
14843
+ export interface UsersApiApiUsersMeNearestPlayersGetRequest {
14844
+ /**
14845
+ * Rayon de recherche en kilomètres
14846
+ * @type {number}
14847
+ * @memberof UsersApiApiUsersMeNearestPlayersGet
14848
+ */
14849
+ readonly radiusInKm?: number
14850
+
14851
+ /**
14852
+ * Nombre maximum de résultats
14853
+ * @type {number}
14854
+ * @memberof UsersApiApiUsersMeNearestPlayersGet
14855
+ */
14856
+ readonly limit?: number
14857
+ }
14858
+
14859
+ /**
14860
+ * Request parameters for apiUsersNearestClubsCoordinatesGet operation in UsersApi.
14861
+ * @export
14862
+ * @interface UsersApiApiUsersNearestClubsCoordinatesGetRequest
14863
+ */
14864
+ export interface UsersApiApiUsersNearestClubsCoordinatesGetRequest {
14865
+ /**
14866
+ * Latitude de la position
14867
+ * @type {number}
14868
+ * @memberof UsersApiApiUsersNearestClubsCoordinatesGet
14869
+ */
14870
+ readonly latitude: number
14871
+
14872
+ /**
14873
+ * Longitude de la position
14874
+ * @type {number}
14875
+ * @memberof UsersApiApiUsersNearestClubsCoordinatesGet
14876
+ */
14877
+ readonly longitude: number
14878
+
14879
+ /**
14880
+ * Rayon de recherche en kilomètres
14881
+ * @type {number}
14882
+ * @memberof UsersApiApiUsersNearestClubsCoordinatesGet
14883
+ */
14884
+ readonly radiusInKm?: number
14885
+
14886
+ /**
14887
+ * Nombre maximum de résultats
14888
+ * @type {number}
14889
+ * @memberof UsersApiApiUsersNearestClubsCoordinatesGet
14890
+ */
14891
+ readonly limit?: number
14892
+ }
14893
+
14894
+ /**
14895
+ * Request parameters for apiUsersNearestPlayersCoordinatesGet operation in UsersApi.
14896
+ * @export
14897
+ * @interface UsersApiApiUsersNearestPlayersCoordinatesGetRequest
14898
+ */
14899
+ export interface UsersApiApiUsersNearestPlayersCoordinatesGetRequest {
14900
+ /**
14901
+ * Latitude de la position
14902
+ * @type {number}
14903
+ * @memberof UsersApiApiUsersNearestPlayersCoordinatesGet
14904
+ */
14905
+ readonly latitude: number
14906
+
14907
+ /**
14908
+ * Longitude de la position
14909
+ * @type {number}
14910
+ * @memberof UsersApiApiUsersNearestPlayersCoordinatesGet
14911
+ */
14912
+ readonly longitude: number
14913
+
14914
+ /**
14915
+ * Rayon de recherche en kilomètres
14916
+ * @type {number}
14917
+ * @memberof UsersApiApiUsersNearestPlayersCoordinatesGet
14918
+ */
14919
+ readonly radiusInKm?: number
14920
+
14921
+ /**
14922
+ * Nombre maximum de résultats
14923
+ * @type {number}
14924
+ * @memberof UsersApiApiUsersNearestPlayersCoordinatesGet
14925
+ */
14926
+ readonly limit?: number
14927
+ }
14928
+
14929
+ /**
14930
+ * UsersApi - object-oriented interface
14931
+ * @export
14932
+ * @class UsersApi
14933
+ * @extends {BaseAPI}
14934
+ */
14935
+ export class UsersApi extends BaseAPI {
14936
+ /**
14937
+ *
14938
+ * @summary Récupère les clubs proches de l’utilisateur connecté
14939
+ * @param {UsersApiApiUsersMeNearestClubsGetRequest} requestParameters Request parameters.
14940
+ * @param {*} [options] Override http request option.
14941
+ * @throws {RequiredError}
14942
+ * @memberof UsersApi
14943
+ */
14944
+ public apiUsersMeNearestClubsGet(requestParameters: UsersApiApiUsersMeNearestClubsGetRequest = {}, options?: RawAxiosRequestConfig) {
14945
+ return UsersApiFp(this.configuration).apiUsersMeNearestClubsGet(requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
14946
+ }
14947
+
14948
+ /**
14949
+ *
14950
+ * @summary Récupère les utilisateurs proches de l’utilisateur connecté
14951
+ * @param {UsersApiApiUsersMeNearestPlayersGetRequest} requestParameters Request parameters.
14952
+ * @param {*} [options] Override http request option.
14953
+ * @throws {RequiredError}
14954
+ * @memberof UsersApi
14955
+ */
14956
+ public apiUsersMeNearestPlayersGet(requestParameters: UsersApiApiUsersMeNearestPlayersGetRequest = {}, options?: RawAxiosRequestConfig) {
14957
+ return UsersApiFp(this.configuration).apiUsersMeNearestPlayersGet(requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
14958
+ }
14959
+
14960
+ /**
14961
+ *
14962
+ * @summary Récupère les clubs proches d’une position donnée
14963
+ * @param {UsersApiApiUsersNearestClubsCoordinatesGetRequest} requestParameters Request parameters.
14964
+ * @param {*} [options] Override http request option.
14965
+ * @throws {RequiredError}
14966
+ * @memberof UsersApi
14967
+ */
14968
+ public apiUsersNearestClubsCoordinatesGet(requestParameters: UsersApiApiUsersNearestClubsCoordinatesGetRequest, options?: RawAxiosRequestConfig) {
14969
+ return UsersApiFp(this.configuration).apiUsersNearestClubsCoordinatesGet(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
14970
+ }
14971
+
14972
+ /**
14973
+ *
14974
+ * @summary Récupère les utilisateurs proches d’une position donnée
14975
+ * @param {UsersApiApiUsersNearestPlayersCoordinatesGetRequest} requestParameters Request parameters.
14976
+ * @param {*} [options] Override http request option.
14977
+ * @throws {RequiredError}
14978
+ * @memberof UsersApi
14979
+ */
14980
+ public apiUsersNearestPlayersCoordinatesGet(requestParameters: UsersApiApiUsersNearestPlayersCoordinatesGetRequest, options?: RawAxiosRequestConfig) {
14981
+ return UsersApiFp(this.configuration).apiUsersNearestPlayersCoordinatesGet(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
14982
+ }
14983
+ }
14984
+
14985
+
14986
+