@tennac-booking/sdk 1.0.70 → 1.0.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/.openapi-generator/FILES +236 -230
  2. package/README.md +14 -5
  3. package/api.ts +957 -145
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +909 -263
  8. package/dist/api.js +347 -50
  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 +909 -263
  16. package/dist/esm/api.js +344 -47
  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/BookingStatus.md +2 -0
  28. package/docs/BookingsStaffApi.md +1 -1
  29. package/docs/CheckInPlayersResponse.md +2 -10
  30. package/docs/ClubsApi.md +2 -2
  31. package/docs/CreateEventRequest.md +26 -0
  32. package/docs/CreateSportForClubRequest.md +6 -0
  33. package/docs/CreateSportRequest.md +8 -2
  34. package/docs/EventResponse.md +26 -0
  35. package/docs/EventsApi.md +131 -12
  36. package/docs/EventsManagerApi.md +59 -0
  37. package/docs/JoinEventRequest.md +22 -0
  38. package/docs/JoinEventResponse.md +22 -0
  39. package/docs/SportKey.md +14 -0
  40. package/docs/SportLevel.md +22 -0
  41. package/docs/SportResponse.md +10 -5
  42. package/docs/SportWithLevels.md +30 -0
  43. package/docs/SportsManagerApi.md +6 -3
  44. package/docs/SportsStaffApi.md +3 -3
  45. package/docs/SubscriberPrice.md +22 -0
  46. package/docs/{GetSportsByClubById200Response.md → Team.md} +7 -5
  47. package/docs/UpdateEventRequest.md +54 -0
  48. package/docs/UpdateSportRequest.md +9 -1
  49. package/index.ts +1 -1
  50. package/package.json +1 -1
  51. package/docs/SportWithAnalytics.md +0 -36
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.68
7
+ * The version of the OpenAPI document: 1.0.71
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -678,6 +678,7 @@ export interface BookingResponseOnsitePaymentsInner {
678
678
 
679
679
  export const BookingStatus = {
680
680
  Paid: 'paid',
681
+ Validated: 'validated',
681
682
  Active: 'active',
682
683
  Pending: 'pending',
683
684
  ActivePaymentsTimeout: 'active_payments_timeout',
@@ -918,31 +919,7 @@ export interface CheckInPlayersResponse {
918
919
  * @type {Array<CheckedInPlayer>}
919
920
  * @memberof CheckInPlayersResponse
920
921
  */
921
- 'checkedInPlayers': Array<CheckedInPlayer>;
922
- /**
923
- * Joueurs non trouvés
924
- * @type {Array<string>}
925
- * @memberof CheckInPlayersResponse
926
- */
927
- 'notFoundPlayers': Array<string>;
928
- /**
929
- * Tous les joueurs ont fait le check-in
930
- * @type {boolean}
931
- * @memberof CheckInPlayersResponse
932
- */
933
- 'allPlayersCheckedIn': boolean;
934
- /**
935
- * Réservation entièrement payée
936
- * @type {boolean}
937
- * @memberof CheckInPlayersResponse
938
- */
939
- 'bookingFullyPaid': boolean;
940
- /**
941
- * Nombre total de joueurs
942
- * @type {number}
943
- * @memberof CheckInPlayersResponse
944
- */
945
- 'totalPlayers': number;
922
+ 'invoices': Array<CheckedInPlayer>;
946
923
  }
947
924
  /**
948
925
  *
@@ -1910,6 +1887,12 @@ export interface CreateCourtRequest {
1910
1887
  * @interface CreateEventRequest
1911
1888
  */
1912
1889
  export interface CreateEventRequest {
1890
+ /**
1891
+ *
1892
+ * @type {string}
1893
+ * @memberof CreateEventRequest
1894
+ */
1895
+ 'type': CreateEventRequestTypeEnum;
1913
1896
  /**
1914
1897
  *
1915
1898
  * @type {string}
@@ -1922,6 +1905,12 @@ export interface CreateEventRequest {
1922
1905
  * @memberof CreateEventRequest
1923
1906
  */
1924
1907
  'description'?: string;
1908
+ /**
1909
+ *
1910
+ * @type {string}
1911
+ * @memberof CreateEventRequest
1912
+ */
1913
+ 'photoUrl'?: string;
1925
1914
  /**
1926
1915
  *
1927
1916
  * @type {string}
@@ -1940,7 +1929,102 @@ export interface CreateEventRequest {
1940
1929
  * @memberof CreateEventRequest
1941
1930
  */
1942
1931
  'courts': Array<EventResponseCourtsInner>;
1932
+ /**
1933
+ *
1934
+ * @type {Array<string>}
1935
+ * @memberof CreateEventRequest
1936
+ */
1937
+ 'sports': Array<string>;
1938
+ /**
1939
+ *
1940
+ * @type {string}
1941
+ * @memberof CreateEventRequest
1942
+ */
1943
+ 'recurringType': CreateEventRequestRecurringTypeEnum;
1944
+ /**
1945
+ *
1946
+ * @type {string}
1947
+ * @memberof CreateEventRequest
1948
+ */
1949
+ 'recurrenceEndDate'?: string;
1950
+ /**
1951
+ *
1952
+ * @type {string}
1953
+ * @memberof CreateEventRequest
1954
+ */
1955
+ 'participationType': CreateEventRequestParticipationTypeEnum;
1956
+ /**
1957
+ *
1958
+ * @type {Array<string>}
1959
+ * @memberof CreateEventRequest
1960
+ */
1961
+ 'participants'?: Array<string>;
1962
+ /**
1963
+ *
1964
+ * @type {Array<Team>}
1965
+ * @memberof CreateEventRequest
1966
+ */
1967
+ 'teams'?: Array<Team>;
1968
+ /**
1969
+ *
1970
+ * @type {number}
1971
+ * @memberof CreateEventRequest
1972
+ */
1973
+ 'playerLimit'?: number;
1974
+ /**
1975
+ *
1976
+ * @type {number}
1977
+ * @memberof CreateEventRequest
1978
+ */
1979
+ 'teamLimit'?: number;
1980
+ /**
1981
+ *
1982
+ * @type {number}
1983
+ * @memberof CreateEventRequest
1984
+ */
1985
+ 'price'?: number;
1986
+ /**
1987
+ *
1988
+ * @type {Array<SubscriberPrice>}
1989
+ * @memberof CreateEventRequest
1990
+ */
1991
+ 'subscriberPrices'?: Array<SubscriberPrice>;
1992
+ /**
1993
+ *
1994
+ * @type {string}
1995
+ * @memberof CreateEventRequest
1996
+ */
1997
+ 'visibilityType': CreateEventRequestVisibilityTypeEnum;
1943
1998
  }
1999
+
2000
+ export const CreateEventRequestTypeEnum = {
2001
+ Event: 'event',
2002
+ Closure: 'closure'
2003
+ } as const;
2004
+
2005
+ export type CreateEventRequestTypeEnum = typeof CreateEventRequestTypeEnum[keyof typeof CreateEventRequestTypeEnum];
2006
+ export const CreateEventRequestRecurringTypeEnum = {
2007
+ Unique: 'unique',
2008
+ Daily: 'daily',
2009
+ Weekly: 'weekly',
2010
+ Monthly: 'monthly'
2011
+ } as const;
2012
+
2013
+ export type CreateEventRequestRecurringTypeEnum = typeof CreateEventRequestRecurringTypeEnum[keyof typeof CreateEventRequestRecurringTypeEnum];
2014
+ export const CreateEventRequestParticipationTypeEnum = {
2015
+ Solo: 'solo',
2016
+ Team: 'team'
2017
+ } as const;
2018
+
2019
+ export type CreateEventRequestParticipationTypeEnum = typeof CreateEventRequestParticipationTypeEnum[keyof typeof CreateEventRequestParticipationTypeEnum];
2020
+ export const CreateEventRequestVisibilityTypeEnum = {
2021
+ Public: 'public',
2022
+ Private: 'private',
2023
+ Invitation: 'invitation'
2024
+ } as const;
2025
+
2026
+ export type CreateEventRequestVisibilityTypeEnum = typeof CreateEventRequestVisibilityTypeEnum[keyof typeof CreateEventRequestVisibilityTypeEnum];
2027
+
1944
2028
  /**
1945
2029
  *
1946
2030
  * @export
@@ -1979,6 +2063,24 @@ export interface CreateSportForClub201Response {
1979
2063
  * @interface CreateSportForClubRequest
1980
2064
  */
1981
2065
  export interface CreateSportForClubRequest {
2066
+ /**
2067
+ *
2068
+ * @type {Array<string>}
2069
+ * @memberof CreateSportForClubRequest
2070
+ */
2071
+ 'logos'?: Array<string>;
2072
+ /**
2073
+ *
2074
+ * @type {string}
2075
+ * @memberof CreateSportForClubRequest
2076
+ */
2077
+ 'description'?: string;
2078
+ /**
2079
+ *
2080
+ * @type {string}
2081
+ * @memberof CreateSportForClubRequest
2082
+ */
2083
+ 'name'?: string;
1982
2084
  /**
1983
2085
  *
1984
2086
  * @type {string}
@@ -1993,11 +2095,29 @@ export interface CreateSportForClubRequest {
1993
2095
  */
1994
2096
  export interface CreateSportRequest {
1995
2097
  /**
1996
- * Clé/nom du sport
2098
+ * Nom affiché du sport
1997
2099
  * @type {string}
1998
2100
  * @memberof CreateSportRequest
1999
2101
  */
2000
- 'key': string;
2102
+ 'name'?: string;
2103
+ /**
2104
+ * Description du sport
2105
+ * @type {string}
2106
+ * @memberof CreateSportRequest
2107
+ */
2108
+ 'description'?: string;
2109
+ /**
2110
+ * Niveaux associés
2111
+ * @type {Array<SportLevel>}
2112
+ * @memberof CreateSportRequest
2113
+ */
2114
+ 'levels'?: Array<SportLevel>;
2115
+ /**
2116
+ * URLs de logos/images
2117
+ * @type {Array<string>}
2118
+ * @memberof CreateSportRequest
2119
+ */
2120
+ 'logos'?: Array<string>;
2001
2121
  }
2002
2122
  /**
2003
2123
  *
@@ -2269,6 +2389,12 @@ export interface EventResponse {
2269
2389
  * @memberof EventResponse
2270
2390
  */
2271
2391
  'clubId': string;
2392
+ /**
2393
+ *
2394
+ * @type {string}
2395
+ * @memberof EventResponse
2396
+ */
2397
+ 'type': EventResponseTypeEnum;
2272
2398
  /**
2273
2399
  *
2274
2400
  * @type {string}
@@ -2281,6 +2407,12 @@ export interface EventResponse {
2281
2407
  * @memberof EventResponse
2282
2408
  */
2283
2409
  'description'?: string;
2410
+ /**
2411
+ *
2412
+ * @type {string}
2413
+ * @memberof EventResponse
2414
+ */
2415
+ 'photoUrl'?: string;
2284
2416
  /**
2285
2417
  *
2286
2418
  * @type {string}
@@ -2299,6 +2431,72 @@ export interface EventResponse {
2299
2431
  * @memberof EventResponse
2300
2432
  */
2301
2433
  'courts': Array<EventResponseCourtsInner>;
2434
+ /**
2435
+ *
2436
+ * @type {Array<SportWithLevels>}
2437
+ * @memberof EventResponse
2438
+ */
2439
+ 'sports': Array<SportWithLevels>;
2440
+ /**
2441
+ *
2442
+ * @type {string}
2443
+ * @memberof EventResponse
2444
+ */
2445
+ 'recurringType': EventResponseRecurringTypeEnum;
2446
+ /**
2447
+ *
2448
+ * @type {string}
2449
+ * @memberof EventResponse
2450
+ */
2451
+ 'recurrenceEndDate'?: string;
2452
+ /**
2453
+ *
2454
+ * @type {string}
2455
+ * @memberof EventResponse
2456
+ */
2457
+ 'participationType': EventResponseParticipationTypeEnum;
2458
+ /**
2459
+ *
2460
+ * @type {Array<string>}
2461
+ * @memberof EventResponse
2462
+ */
2463
+ 'participants'?: Array<string>;
2464
+ /**
2465
+ *
2466
+ * @type {Array<Team>}
2467
+ * @memberof EventResponse
2468
+ */
2469
+ 'teams'?: Array<Team>;
2470
+ /**
2471
+ *
2472
+ * @type {number}
2473
+ * @memberof EventResponse
2474
+ */
2475
+ 'playerLimit'?: number;
2476
+ /**
2477
+ *
2478
+ * @type {number}
2479
+ * @memberof EventResponse
2480
+ */
2481
+ 'teamLimit'?: number;
2482
+ /**
2483
+ *
2484
+ * @type {number}
2485
+ * @memberof EventResponse
2486
+ */
2487
+ 'price'?: number;
2488
+ /**
2489
+ *
2490
+ * @type {Array<SubscriberPrice>}
2491
+ * @memberof EventResponse
2492
+ */
2493
+ 'subscriberPrices'?: Array<SubscriberPrice>;
2494
+ /**
2495
+ *
2496
+ * @type {string}
2497
+ * @memberof EventResponse
2498
+ */
2499
+ 'visibilityType': EventResponseVisibilityTypeEnum;
2302
2500
  /**
2303
2501
  *
2304
2502
  * @type {string}
@@ -2324,6 +2522,35 @@ export interface EventResponse {
2324
2522
  */
2325
2523
  'updatedAt': string;
2326
2524
  }
2525
+
2526
+ export const EventResponseTypeEnum = {
2527
+ Event: 'event',
2528
+ Closure: 'closure'
2529
+ } as const;
2530
+
2531
+ export type EventResponseTypeEnum = typeof EventResponseTypeEnum[keyof typeof EventResponseTypeEnum];
2532
+ export const EventResponseRecurringTypeEnum = {
2533
+ Unique: 'unique',
2534
+ Daily: 'daily',
2535
+ Weekly: 'weekly',
2536
+ Monthly: 'monthly'
2537
+ } as const;
2538
+
2539
+ export type EventResponseRecurringTypeEnum = typeof EventResponseRecurringTypeEnum[keyof typeof EventResponseRecurringTypeEnum];
2540
+ export const EventResponseParticipationTypeEnum = {
2541
+ Solo: 'solo',
2542
+ Team: 'team'
2543
+ } as const;
2544
+
2545
+ export type EventResponseParticipationTypeEnum = typeof EventResponseParticipationTypeEnum[keyof typeof EventResponseParticipationTypeEnum];
2546
+ export const EventResponseVisibilityTypeEnum = {
2547
+ Public: 'public',
2548
+ Private: 'private',
2549
+ Invitation: 'invitation'
2550
+ } as const;
2551
+
2552
+ export type EventResponseVisibilityTypeEnum = typeof EventResponseVisibilityTypeEnum[keyof typeof EventResponseVisibilityTypeEnum];
2553
+
2327
2554
  /**
2328
2555
  *
2329
2556
  * @export
@@ -2657,19 +2884,6 @@ export interface GetSlotsByClubById200Response {
2657
2884
  */
2658
2885
  'slots': Array<any>;
2659
2886
  }
2660
- /**
2661
- *
2662
- * @export
2663
- * @interface GetSportsByClubById200Response
2664
- */
2665
- export interface GetSportsByClubById200Response {
2666
- /**
2667
- *
2668
- * @type {Array<any>}
2669
- * @memberof GetSportsByClubById200Response
2670
- */
2671
- 'sports': Array<any>;
2672
- }
2673
2887
  /**
2674
2888
  *
2675
2889
  * @export
@@ -3218,6 +3432,44 @@ export interface InvoiceInfo {
3218
3432
  */
3219
3433
  'status': string;
3220
3434
  }
3435
+ /**
3436
+ *
3437
+ * @export
3438
+ * @interface JoinEventRequest
3439
+ */
3440
+ export interface JoinEventRequest {
3441
+ /**
3442
+ *
3443
+ * @type {string}
3444
+ * @memberof JoinEventRequest
3445
+ */
3446
+ 'teamName'?: string;
3447
+ /**
3448
+ *
3449
+ * @type {Array<string>}
3450
+ * @memberof JoinEventRequest
3451
+ */
3452
+ 'players'?: Array<string>;
3453
+ }
3454
+ /**
3455
+ *
3456
+ * @export
3457
+ * @interface JoinEventResponse
3458
+ */
3459
+ export interface JoinEventResponse {
3460
+ /**
3461
+ *
3462
+ * @type {string}
3463
+ * @memberof JoinEventResponse
3464
+ */
3465
+ 'message': string;
3466
+ /**
3467
+ *
3468
+ * @type {EventResponse}
3469
+ * @memberof JoinEventResponse
3470
+ */
3471
+ 'event': EventResponse;
3472
+ }
3221
3473
  /**
3222
3474
  *
3223
3475
  * @export
@@ -4717,7 +4969,42 @@ export interface SportInfo {
4717
4969
  'key': string;
4718
4970
  }
4719
4971
  /**
4720
- * Types TSOA pour les sports - alignés sur la documentation Swagger existante
4972
+ *
4973
+ * @export
4974
+ * @enum {string}
4975
+ */
4976
+
4977
+ export const SportKey = {
4978
+ Padel: 'Padel',
4979
+ Tennis: 'Tennis',
4980
+ Pickleball: 'Pickleball',
4981
+ Autres: 'Autres'
4982
+ } as const;
4983
+
4984
+ export type SportKey = typeof SportKey[keyof typeof SportKey];
4985
+
4986
+
4987
+ /**
4988
+ *
4989
+ * @export
4990
+ * @interface SportLevel
4991
+ */
4992
+ export interface SportLevel {
4993
+ /**
4994
+ * Nom du niveau (ex: Débutant, Intermédiaire, Avancé)
4995
+ * @type {string}
4996
+ * @memberof SportLevel
4997
+ */
4998
+ 'name': string;
4999
+ /**
5000
+ * Ordre du niveau, du plus faible (petit) au plus fort (grand)
5001
+ * @type {number}
5002
+ * @memberof SportLevel
5003
+ */
5004
+ 'order': number;
5005
+ }
5006
+ /**
5007
+ *
4721
5008
  * @export
4722
5009
  * @interface SportResponse
4723
5010
  */
@@ -4729,17 +5016,17 @@ export interface SportResponse {
4729
5016
  */
4730
5017
  'id': string;
4731
5018
  /**
4732
- * Clé/nom du sport
4733
- * @type {string}
5019
+ *
5020
+ * @type {SportKey}
4734
5021
  * @memberof SportResponse
4735
5022
  */
4736
- 'key': string;
5023
+ 'key': SportKey;
4737
5024
  /**
4738
- * Nom du sport
5025
+ * Nom affiché du sport
4739
5026
  * @type {string}
4740
5027
  * @memberof SportResponse
4741
5028
  */
4742
- 'name'?: string;
5029
+ 'name': string;
4743
5030
  /**
4744
5031
  * Description du sport
4745
5032
  * @type {string}
@@ -4747,11 +5034,29 @@ export interface SportResponse {
4747
5034
  */
4748
5035
  'description'?: string;
4749
5036
  /**
4750
- * ID du club auquel appartient le sport
5037
+ * Niveaux associés au sport
5038
+ * @type {Array<SportLevel>}
5039
+ * @memberof SportResponse
5040
+ */
5041
+ 'levels'?: Array<SportLevel>;
5042
+ /**
5043
+ * URLs de logos/images pour le sport
5044
+ * @type {Array<string>}
5045
+ * @memberof SportResponse
5046
+ */
5047
+ 'logos'?: Array<string>;
5048
+ /**
5049
+ * ID du club créateur
4751
5050
  * @type {string}
4752
5051
  * @memberof SportResponse
4753
5052
  */
4754
- 'clubId': string;
5053
+ 'createdBy'?: string;
5054
+ /**
5055
+ * Sport vérifié/officiel (non modifiable)
5056
+ * @type {boolean}
5057
+ * @memberof SportResponse
5058
+ */
5059
+ 'verified': boolean;
4755
5060
  /**
4756
5061
  * Date de création
4757
5062
  * @type {string}
@@ -4765,66 +5070,50 @@ export interface SportResponse {
4765
5070
  */
4766
5071
  'updatedAt': string;
4767
5072
  }
5073
+
5074
+
4768
5075
  /**
4769
5076
  *
4770
5077
  * @export
4771
- * @interface SportWithAnalytics
5078
+ * @interface SportWithLevels
4772
5079
  */
4773
- export interface SportWithAnalytics {
5080
+ export interface SportWithLevels {
4774
5081
  /**
4775
- * ID unique du sport
5082
+ *
4776
5083
  * @type {string}
4777
- * @memberof SportWithAnalytics
5084
+ * @memberof SportWithLevels
4778
5085
  */
4779
5086
  'id': string;
4780
5087
  /**
4781
- * Clé/nom du sport
5088
+ *
4782
5089
  * @type {string}
4783
- * @memberof SportWithAnalytics
5090
+ * @memberof SportWithLevels
4784
5091
  */
4785
5092
  'key': string;
4786
5093
  /**
4787
- * Nom du sport
5094
+ *
4788
5095
  * @type {string}
4789
- * @memberof SportWithAnalytics
5096
+ * @memberof SportWithLevels
4790
5097
  */
4791
- 'name'?: string;
5098
+ 'name': string;
4792
5099
  /**
4793
- * Description du sport
5100
+ *
4794
5101
  * @type {string}
4795
- * @memberof SportWithAnalytics
5102
+ * @memberof SportWithLevels
4796
5103
  */
4797
5104
  'description'?: string;
4798
5105
  /**
4799
- * ID du club auquel appartient le sport
4800
- * @type {string}
4801
- * @memberof SportWithAnalytics
4802
- */
4803
- 'clubId': string;
4804
- /**
4805
- * Date de création
4806
- * @type {string}
4807
- * @memberof SportWithAnalytics
4808
- */
4809
- 'createdAt': string;
4810
- /**
4811
- * Date de dernière mise à jour
4812
- * @type {string}
4813
- * @memberof SportWithAnalytics
4814
- */
4815
- 'updatedAt': string;
4816
- /**
4817
- * Nombre de terrains pour ce sport
4818
- * @type {number}
4819
- * @memberof SportWithAnalytics
5106
+ *
5107
+ * @type {Array<SportLevel>}
5108
+ * @memberof SportWithLevels
4820
5109
  */
4821
- 'courtsCount': number;
5110
+ 'levels'?: Array<SportLevel>;
4822
5111
  /**
4823
- * Nombre de réservations actives/en attente pour ce sport
4824
- * @type {number}
4825
- * @memberof SportWithAnalytics
5112
+ *
5113
+ * @type {Array<string>}
5114
+ * @memberof SportWithLevels
4826
5115
  */
4827
- 'bookingsCount': number;
5116
+ 'logos'?: Array<string>;
4828
5117
  }
4829
5118
  /**
4830
5119
  *
@@ -6318,6 +6607,25 @@ export interface SubscribeRequestBody {
6318
6607
  */
6319
6608
  'priceId': string;
6320
6609
  }
6610
+ /**
6611
+ *
6612
+ * @export
6613
+ * @interface SubscriberPrice
6614
+ */
6615
+ export interface SubscriberPrice {
6616
+ /**
6617
+ *
6618
+ * @type {string}
6619
+ * @memberof SubscriberPrice
6620
+ */
6621
+ 'subscriptionPlanId': string;
6622
+ /**
6623
+ *
6624
+ * @type {number}
6625
+ * @memberof SubscriberPrice
6626
+ */
6627
+ 'amount': number;
6628
+ }
6321
6629
  /**
6322
6630
  *
6323
6631
  * @export
@@ -6403,6 +6711,25 @@ export const SurfaceType = {
6403
6711
  export type SurfaceType = typeof SurfaceType[keyof typeof SurfaceType];
6404
6712
 
6405
6713
 
6714
+ /**
6715
+ *
6716
+ * @export
6717
+ * @interface Team
6718
+ */
6719
+ export interface Team {
6720
+ /**
6721
+ *
6722
+ * @type {string}
6723
+ * @memberof Team
6724
+ */
6725
+ 'name': string;
6726
+ /**
6727
+ *
6728
+ * @type {Array<string>}
6729
+ * @memberof Team
6730
+ */
6731
+ 'players': Array<string>;
6732
+ }
6406
6733
  /**
6407
6734
  *
6408
6735
  * @export
@@ -6636,6 +6963,150 @@ export interface UpdateCustomerResponse {
6636
6963
  */
6637
6964
  'customer': { [key: string]: any; };
6638
6965
  }
6966
+ /**
6967
+ *
6968
+ * @export
6969
+ * @interface UpdateEventRequest
6970
+ */
6971
+ export interface UpdateEventRequest {
6972
+ /**
6973
+ *
6974
+ * @type {string}
6975
+ * @memberof UpdateEventRequest
6976
+ */
6977
+ 'type'?: UpdateEventRequestTypeEnum;
6978
+ /**
6979
+ *
6980
+ * @type {string}
6981
+ * @memberof UpdateEventRequest
6982
+ */
6983
+ 'title'?: string;
6984
+ /**
6985
+ *
6986
+ * @type {string}
6987
+ * @memberof UpdateEventRequest
6988
+ */
6989
+ 'description'?: string;
6990
+ /**
6991
+ *
6992
+ * @type {string}
6993
+ * @memberof UpdateEventRequest
6994
+ */
6995
+ 'photoUrl'?: string;
6996
+ /**
6997
+ *
6998
+ * @type {string}
6999
+ * @memberof UpdateEventRequest
7000
+ */
7001
+ 'startDate'?: string;
7002
+ /**
7003
+ *
7004
+ * @type {string}
7005
+ * @memberof UpdateEventRequest
7006
+ */
7007
+ 'endDate'?: string;
7008
+ /**
7009
+ *
7010
+ * @type {Array<EventResponseCourtsInner>}
7011
+ * @memberof UpdateEventRequest
7012
+ */
7013
+ 'courts'?: Array<EventResponseCourtsInner>;
7014
+ /**
7015
+ *
7016
+ * @type {Array<string>}
7017
+ * @memberof UpdateEventRequest
7018
+ */
7019
+ 'sports'?: Array<string>;
7020
+ /**
7021
+ *
7022
+ * @type {string}
7023
+ * @memberof UpdateEventRequest
7024
+ */
7025
+ 'recurringType'?: UpdateEventRequestRecurringTypeEnum;
7026
+ /**
7027
+ *
7028
+ * @type {string}
7029
+ * @memberof UpdateEventRequest
7030
+ */
7031
+ 'recurrenceEndDate'?: string;
7032
+ /**
7033
+ *
7034
+ * @type {string}
7035
+ * @memberof UpdateEventRequest
7036
+ */
7037
+ 'participationType'?: UpdateEventRequestParticipationTypeEnum;
7038
+ /**
7039
+ *
7040
+ * @type {Array<string>}
7041
+ * @memberof UpdateEventRequest
7042
+ */
7043
+ 'participants'?: Array<string>;
7044
+ /**
7045
+ *
7046
+ * @type {Array<Team>}
7047
+ * @memberof UpdateEventRequest
7048
+ */
7049
+ 'teams'?: Array<Team>;
7050
+ /**
7051
+ *
7052
+ * @type {number}
7053
+ * @memberof UpdateEventRequest
7054
+ */
7055
+ 'playerLimit'?: number;
7056
+ /**
7057
+ *
7058
+ * @type {number}
7059
+ * @memberof UpdateEventRequest
7060
+ */
7061
+ 'teamLimit'?: number;
7062
+ /**
7063
+ *
7064
+ * @type {number}
7065
+ * @memberof UpdateEventRequest
7066
+ */
7067
+ 'price'?: number;
7068
+ /**
7069
+ *
7070
+ * @type {Array<SubscriberPrice>}
7071
+ * @memberof UpdateEventRequest
7072
+ */
7073
+ 'subscriberPrices'?: Array<SubscriberPrice>;
7074
+ /**
7075
+ *
7076
+ * @type {string}
7077
+ * @memberof UpdateEventRequest
7078
+ */
7079
+ 'visibilityType'?: UpdateEventRequestVisibilityTypeEnum;
7080
+ }
7081
+
7082
+ export const UpdateEventRequestTypeEnum = {
7083
+ Event: 'event',
7084
+ Closure: 'closure'
7085
+ } as const;
7086
+
7087
+ export type UpdateEventRequestTypeEnum = typeof UpdateEventRequestTypeEnum[keyof typeof UpdateEventRequestTypeEnum];
7088
+ export const UpdateEventRequestRecurringTypeEnum = {
7089
+ Unique: 'unique',
7090
+ Daily: 'daily',
7091
+ Weekly: 'weekly',
7092
+ Monthly: 'monthly'
7093
+ } as const;
7094
+
7095
+ export type UpdateEventRequestRecurringTypeEnum = typeof UpdateEventRequestRecurringTypeEnum[keyof typeof UpdateEventRequestRecurringTypeEnum];
7096
+ export const UpdateEventRequestParticipationTypeEnum = {
7097
+ Solo: 'solo',
7098
+ Team: 'team'
7099
+ } as const;
7100
+
7101
+ export type UpdateEventRequestParticipationTypeEnum = typeof UpdateEventRequestParticipationTypeEnum[keyof typeof UpdateEventRequestParticipationTypeEnum];
7102
+ export const UpdateEventRequestVisibilityTypeEnum = {
7103
+ Public: 'public',
7104
+ Private: 'private',
7105
+ Invitation: 'invitation'
7106
+ } as const;
7107
+
7108
+ export type UpdateEventRequestVisibilityTypeEnum = typeof UpdateEventRequestVisibilityTypeEnum[keyof typeof UpdateEventRequestVisibilityTypeEnum];
7109
+
6639
7110
  /**
6640
7111
  *
6641
7112
  * @export
@@ -6675,12 +7146,38 @@ export interface UpdatePlanRequest {
6675
7146
  */
6676
7147
  export interface UpdateSportRequest {
6677
7148
  /**
6678
- * Clé/nom du sport
7149
+ *
7150
+ * @type {SportKey}
7151
+ * @memberof UpdateSportRequest
7152
+ */
7153
+ 'key'?: SportKey;
7154
+ /**
7155
+ * Nom affiché du sport
6679
7156
  * @type {string}
6680
7157
  * @memberof UpdateSportRequest
6681
7158
  */
6682
- 'key'?: string;
7159
+ 'name'?: string;
7160
+ /**
7161
+ * Description du sport
7162
+ * @type {string}
7163
+ * @memberof UpdateSportRequest
7164
+ */
7165
+ 'description'?: string;
7166
+ /**
7167
+ * Niveaux associés
7168
+ * @type {Array<SportLevel>}
7169
+ * @memberof UpdateSportRequest
7170
+ */
7171
+ 'levels'?: Array<SportLevel>;
7172
+ /**
7173
+ * URLs de logos/images
7174
+ * @type {Array<string>}
7175
+ * @memberof UpdateSportRequest
7176
+ */
7177
+ 'logos'?: Array<string>;
6683
7178
  }
7179
+
7180
+
6684
7181
  /**
6685
7182
  *
6686
7183
  * @export
@@ -7843,7 +8340,7 @@ export class BookingsManagerApi extends BaseAPI {
7843
8340
  export const BookingsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
7844
8341
  return {
7845
8342
  /**
7846
- * Check-in des joueurs
8343
+ * Check-in des joueurs only for club with payment features
7847
8344
  * @param {string} bookingId
7848
8345
  * @param {CheckInPlayersRequest} checkInPlayersRequest
7849
8346
  * @param {*} [options] Override http request option.
@@ -8081,7 +8578,7 @@ export const BookingsStaffApiFp = function(configuration?: Configuration) {
8081
8578
  const localVarAxiosParamCreator = BookingsStaffApiAxiosParamCreator(configuration)
8082
8579
  return {
8083
8580
  /**
8084
- * Check-in des joueurs
8581
+ * Check-in des joueurs only for club with payment features
8085
8582
  * @param {string} bookingId
8086
8583
  * @param {CheckInPlayersRequest} checkInPlayersRequest
8087
8584
  * @param {*} [options] Override http request option.
@@ -8164,7 +8661,7 @@ export const BookingsStaffApiFactory = function (configuration?: Configuration,
8164
8661
  const localVarFp = BookingsStaffApiFp(configuration)
8165
8662
  return {
8166
8663
  /**
8167
- * Check-in des joueurs
8664
+ * Check-in des joueurs only for club with payment features
8168
8665
  * @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
8169
8666
  * @param {*} [options] Override http request option.
8170
8667
  * @throws {RequiredError}
@@ -8319,7 +8816,7 @@ export interface BookingsStaffApiGetWeeklyBookingsRequest {
8319
8816
  */
8320
8817
  export class BookingsStaffApi extends BaseAPI {
8321
8818
  /**
8322
- * Check-in des joueurs
8819
+ * Check-in des joueurs only for club with payment features
8323
8820
  * @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
8324
8821
  * @param {*} [options] Override http request option.
8325
8822
  * @throws {RequiredError}
@@ -11008,7 +11505,7 @@ export const ClubsApiFp = function(configuration?: Configuration) {
11008
11505
  * @param {*} [options] Override http request option.
11009
11506
  * @throws {RequiredError}
11010
11507
  */
11011
- async getSportsByClubById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSportsByClubById200Response>> {
11508
+ async getSportsByClubById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SportResponse>>> {
11012
11509
  const localVarAxiosArgs = await localVarAxiosParamCreator.getSportsByClubById(id, options);
11013
11510
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11014
11511
  const localVarOperationServerBasePath = operationServerMap['ClubsApi.getSportsByClubById']?.[localVarOperationServerIndex]?.url;
@@ -11125,7 +11622,7 @@ export const ClubsApiFactory = function (configuration?: Configuration, basePath
11125
11622
  * @param {*} [options] Override http request option.
11126
11623
  * @throws {RequiredError}
11127
11624
  */
11128
- getSportsByClubById(requestParameters: ClubsApiGetSportsByClubByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetSportsByClubById200Response> {
11625
+ getSportsByClubById(requestParameters: ClubsApiGetSportsByClubByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<SportResponse>> {
11129
11626
  return localVarFp.getSportsByClubById(requestParameters.id, options).then((request) => request(axios, basePath));
11130
11627
  },
11131
11628
  };
@@ -13609,13 +14106,49 @@ export class DefaultApi extends BaseAPI {
13609
14106
  */
13610
14107
  export const EventsApiAxiosParamCreator = function (configuration?: Configuration) {
13611
14108
  return {
14109
+ /**
14110
+ * Get a specific event by ID
14111
+ * @param {string} eventId
14112
+ * @param {*} [options] Override http request option.
14113
+ * @throws {RequiredError}
14114
+ */
14115
+ getEventById: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14116
+ // verify required parameter 'eventId' is not null or undefined
14117
+ assertParamExists('getEventById', 'eventId', eventId)
14118
+ const localVarPath = `/api/events/{eventId}`
14119
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
14120
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14121
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14122
+ let baseOptions;
14123
+ if (configuration) {
14124
+ baseOptions = configuration.baseOptions;
14125
+ }
14126
+
14127
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
14128
+ const localVarHeaderParameter = {} as any;
14129
+ const localVarQueryParameter = {} as any;
14130
+
14131
+
14132
+
14133
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14134
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14135
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14136
+
14137
+ return {
14138
+ url: toPathString(localVarUrlObj),
14139
+ options: localVarRequestOptions,
14140
+ };
14141
+ },
13612
14142
  /**
13613
14143
  * Get all published events for a club
13614
14144
  * @param {string} [clubId]
14145
+ * @param {GetPublishedEventsByClubIdVisibilityTypeEnum} [visibilityType]
14146
+ * @param {GetPublishedEventsByClubIdTypeEnum} [type]
14147
+ * @param {string} [sportId]
13615
14148
  * @param {*} [options] Override http request option.
13616
14149
  * @throws {RequiredError}
13617
14150
  */
13618
- getPublishedEventsByClubId: async (clubId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14151
+ getPublishedEventsByClubId: async (clubId?: string, visibilityType?: GetPublishedEventsByClubIdVisibilityTypeEnum, type?: GetPublishedEventsByClubIdTypeEnum, sportId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13619
14152
  const localVarPath = `/api/events`;
13620
14153
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
13621
14154
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -13632,6 +14165,18 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
13632
14165
  localVarQueryParameter['clubId'] = clubId;
13633
14166
  }
13634
14167
 
14168
+ if (visibilityType !== undefined) {
14169
+ localVarQueryParameter['visibilityType'] = visibilityType;
14170
+ }
14171
+
14172
+ if (type !== undefined) {
14173
+ localVarQueryParameter['type'] = type;
14174
+ }
14175
+
14176
+ if (sportId !== undefined) {
14177
+ localVarQueryParameter['sportId'] = sportId;
14178
+ }
14179
+
13635
14180
 
13636
14181
 
13637
14182
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -13644,18 +14189,18 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
13644
14189
  };
13645
14190
  },
13646
14191
  /**
13647
- * Register for an event
14192
+ * Join an event (user)
13648
14193
  * @param {string} eventId
13649
- * @param {any} body
14194
+ * @param {JoinEventRequest} joinEventRequest
13650
14195
  * @param {*} [options] Override http request option.
13651
14196
  * @throws {RequiredError}
13652
14197
  */
13653
- registerForEvent: async (eventId: string, body: any, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14198
+ joinEvent: async (eventId: string, joinEventRequest: JoinEventRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13654
14199
  // verify required parameter 'eventId' is not null or undefined
13655
- assertParamExists('registerForEvent', 'eventId', eventId)
13656
- // verify required parameter 'body' is not null or undefined
13657
- assertParamExists('registerForEvent', 'body', body)
13658
- const localVarPath = `/api/events/{eventId}/register`
14200
+ assertParamExists('joinEvent', 'eventId', eventId)
14201
+ // verify required parameter 'joinEventRequest' is not null or undefined
14202
+ assertParamExists('joinEvent', 'joinEventRequest', joinEventRequest)
14203
+ const localVarPath = `/api/events/{eventId}/join`
13659
14204
  .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
13660
14205
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
13661
14206
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -13679,7 +14224,44 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
13679
14224
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13680
14225
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13681
14226
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13682
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
14227
+ localVarRequestOptions.data = serializeDataIfNeeded(joinEventRequest, localVarRequestOptions, configuration)
14228
+
14229
+ return {
14230
+ url: toPathString(localVarUrlObj),
14231
+ options: localVarRequestOptions,
14232
+ };
14233
+ },
14234
+ /**
14235
+ * Leave an event (user)
14236
+ * @param {string} eventId
14237
+ * @param {*} [options] Override http request option.
14238
+ * @throws {RequiredError}
14239
+ */
14240
+ leaveEvent: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14241
+ // verify required parameter 'eventId' is not null or undefined
14242
+ assertParamExists('leaveEvent', 'eventId', eventId)
14243
+ const localVarPath = `/api/events/{eventId}/leave`
14244
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
14245
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14246
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14247
+ let baseOptions;
14248
+ if (configuration) {
14249
+ baseOptions = configuration.baseOptions;
14250
+ }
14251
+
14252
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
14253
+ const localVarHeaderParameter = {} as any;
14254
+ const localVarQueryParameter = {} as any;
14255
+
14256
+ // authentication bearerAuth required
14257
+ // http bearer authentication required
14258
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
14259
+
14260
+
14261
+
14262
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14263
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14264
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13683
14265
 
13684
14266
  return {
13685
14267
  url: toPathString(localVarUrlObj),
@@ -13696,29 +14278,56 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
13696
14278
  export const EventsApiFp = function(configuration?: Configuration) {
13697
14279
  const localVarAxiosParamCreator = EventsApiAxiosParamCreator(configuration)
13698
14280
  return {
14281
+ /**
14282
+ * Get a specific event by ID
14283
+ * @param {string} eventId
14284
+ * @param {*} [options] Override http request option.
14285
+ * @throws {RequiredError}
14286
+ */
14287
+ async getEventById(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishEventResponse>> {
14288
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getEventById(eventId, options);
14289
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14290
+ const localVarOperationServerBasePath = operationServerMap['EventsApi.getEventById']?.[localVarOperationServerIndex]?.url;
14291
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14292
+ },
13699
14293
  /**
13700
14294
  * Get all published events for a club
13701
14295
  * @param {string} [clubId]
14296
+ * @param {GetPublishedEventsByClubIdVisibilityTypeEnum} [visibilityType]
14297
+ * @param {GetPublishedEventsByClubIdTypeEnum} [type]
14298
+ * @param {string} [sportId]
13702
14299
  * @param {*} [options] Override http request option.
13703
14300
  * @throws {RequiredError}
13704
14301
  */
13705
- async getPublishedEventsByClubId(clubId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsListResponse>> {
13706
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPublishedEventsByClubId(clubId, options);
14302
+ async getPublishedEventsByClubId(clubId?: string, visibilityType?: GetPublishedEventsByClubIdVisibilityTypeEnum, type?: GetPublishedEventsByClubIdTypeEnum, sportId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsListResponse>> {
14303
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPublishedEventsByClubId(clubId, visibilityType, type, sportId, options);
13707
14304
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13708
14305
  const localVarOperationServerBasePath = operationServerMap['EventsApi.getPublishedEventsByClubId']?.[localVarOperationServerIndex]?.url;
13709
14306
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13710
14307
  },
13711
14308
  /**
13712
- * Register for an event
14309
+ * Join an event (user)
14310
+ * @param {string} eventId
14311
+ * @param {JoinEventRequest} joinEventRequest
14312
+ * @param {*} [options] Override http request option.
14313
+ * @throws {RequiredError}
14314
+ */
14315
+ async joinEvent(eventId: string, joinEventRequest: JoinEventRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JoinEventResponse>> {
14316
+ const localVarAxiosArgs = await localVarAxiosParamCreator.joinEvent(eventId, joinEventRequest, options);
14317
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14318
+ const localVarOperationServerBasePath = operationServerMap['EventsApi.joinEvent']?.[localVarOperationServerIndex]?.url;
14319
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14320
+ },
14321
+ /**
14322
+ * Leave an event (user)
13713
14323
  * @param {string} eventId
13714
- * @param {any} body
13715
14324
  * @param {*} [options] Override http request option.
13716
14325
  * @throws {RequiredError}
13717
14326
  */
13718
- async registerForEvent(eventId: string, body: any, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
13719
- const localVarAxiosArgs = await localVarAxiosParamCreator.registerForEvent(eventId, body, options);
14327
+ async leaveEvent(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JoinEventResponse>> {
14328
+ const localVarAxiosArgs = await localVarAxiosParamCreator.leaveEvent(eventId, options);
13720
14329
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13721
- const localVarOperationServerBasePath = operationServerMap['EventsApi.registerForEvent']?.[localVarOperationServerIndex]?.url;
14330
+ const localVarOperationServerBasePath = operationServerMap['EventsApi.leaveEvent']?.[localVarOperationServerIndex]?.url;
13722
14331
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13723
14332
  },
13724
14333
  }
@@ -13731,6 +14340,15 @@ export const EventsApiFp = function(configuration?: Configuration) {
13731
14340
  export const EventsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
13732
14341
  const localVarFp = EventsApiFp(configuration)
13733
14342
  return {
14343
+ /**
14344
+ * Get a specific event by ID
14345
+ * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
14346
+ * @param {*} [options] Override http request option.
14347
+ * @throws {RequiredError}
14348
+ */
14349
+ getEventById(requestParameters: EventsApiGetEventByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse> {
14350
+ return localVarFp.getEventById(requestParameters.eventId, options).then((request) => request(axios, basePath));
14351
+ },
13734
14352
  /**
13735
14353
  * Get all published events for a club
13736
14354
  * @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
@@ -13738,20 +14356,43 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
13738
14356
  * @throws {RequiredError}
13739
14357
  */
13740
14358
  getPublishedEventsByClubId(requestParameters: EventsApiGetPublishedEventsByClubIdRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse> {
13741
- return localVarFp.getPublishedEventsByClubId(requestParameters.clubId, options).then((request) => request(axios, basePath));
14359
+ return localVarFp.getPublishedEventsByClubId(requestParameters.clubId, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
14360
+ },
14361
+ /**
14362
+ * Join an event (user)
14363
+ * @param {EventsApiJoinEventRequest} requestParameters Request parameters.
14364
+ * @param {*} [options] Override http request option.
14365
+ * @throws {RequiredError}
14366
+ */
14367
+ joinEvent(requestParameters: EventsApiJoinEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<JoinEventResponse> {
14368
+ return localVarFp.joinEvent(requestParameters.eventId, requestParameters.joinEventRequest, options).then((request) => request(axios, basePath));
13742
14369
  },
13743
14370
  /**
13744
- * Register for an event
13745
- * @param {EventsApiRegisterForEventRequest} requestParameters Request parameters.
14371
+ * Leave an event (user)
14372
+ * @param {EventsApiLeaveEventRequest} requestParameters Request parameters.
13746
14373
  * @param {*} [options] Override http request option.
13747
14374
  * @throws {RequiredError}
13748
14375
  */
13749
- registerForEvent(requestParameters: EventsApiRegisterForEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<any> {
13750
- return localVarFp.registerForEvent(requestParameters.eventId, requestParameters.body, options).then((request) => request(axios, basePath));
14376
+ leaveEvent(requestParameters: EventsApiLeaveEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<JoinEventResponse> {
14377
+ return localVarFp.leaveEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
13751
14378
  },
13752
14379
  };
13753
14380
  };
13754
14381
 
14382
+ /**
14383
+ * Request parameters for getEventById operation in EventsApi.
14384
+ * @export
14385
+ * @interface EventsApiGetEventByIdRequest
14386
+ */
14387
+ export interface EventsApiGetEventByIdRequest {
14388
+ /**
14389
+ *
14390
+ * @type {string}
14391
+ * @memberof EventsApiGetEventById
14392
+ */
14393
+ readonly eventId: string
14394
+ }
14395
+
13755
14396
  /**
13756
14397
  * Request parameters for getPublishedEventsByClubId operation in EventsApi.
13757
14398
  * @export
@@ -13764,27 +14405,62 @@ export interface EventsApiGetPublishedEventsByClubIdRequest {
13764
14405
  * @memberof EventsApiGetPublishedEventsByClubId
13765
14406
  */
13766
14407
  readonly clubId?: string
14408
+
14409
+ /**
14410
+ *
14411
+ * @type {'public' | 'private' | 'invitation'}
14412
+ * @memberof EventsApiGetPublishedEventsByClubId
14413
+ */
14414
+ readonly visibilityType?: GetPublishedEventsByClubIdVisibilityTypeEnum
14415
+
14416
+ /**
14417
+ *
14418
+ * @type {'event' | 'closure'}
14419
+ * @memberof EventsApiGetPublishedEventsByClubId
14420
+ */
14421
+ readonly type?: GetPublishedEventsByClubIdTypeEnum
14422
+
14423
+ /**
14424
+ *
14425
+ * @type {string}
14426
+ * @memberof EventsApiGetPublishedEventsByClubId
14427
+ */
14428
+ readonly sportId?: string
13767
14429
  }
13768
14430
 
13769
14431
  /**
13770
- * Request parameters for registerForEvent operation in EventsApi.
14432
+ * Request parameters for joinEvent operation in EventsApi.
13771
14433
  * @export
13772
- * @interface EventsApiRegisterForEventRequest
14434
+ * @interface EventsApiJoinEventRequest
13773
14435
  */
13774
- export interface EventsApiRegisterForEventRequest {
14436
+ export interface EventsApiJoinEventRequest {
13775
14437
  /**
13776
14438
  *
13777
14439
  * @type {string}
13778
- * @memberof EventsApiRegisterForEvent
14440
+ * @memberof EventsApiJoinEvent
13779
14441
  */
13780
14442
  readonly eventId: string
13781
14443
 
13782
14444
  /**
13783
14445
  *
13784
- * @type {any}
13785
- * @memberof EventsApiRegisterForEvent
14446
+ * @type {JoinEventRequest}
14447
+ * @memberof EventsApiJoinEvent
13786
14448
  */
13787
- readonly body: any
14449
+ readonly joinEventRequest: JoinEventRequest
14450
+ }
14451
+
14452
+ /**
14453
+ * Request parameters for leaveEvent operation in EventsApi.
14454
+ * @export
14455
+ * @interface EventsApiLeaveEventRequest
14456
+ */
14457
+ export interface EventsApiLeaveEventRequest {
14458
+ /**
14459
+ *
14460
+ * @type {string}
14461
+ * @memberof EventsApiLeaveEvent
14462
+ */
14463
+ readonly eventId: string
13788
14464
  }
13789
14465
 
13790
14466
  /**
@@ -13794,6 +14470,17 @@ export interface EventsApiRegisterForEventRequest {
13794
14470
  * @extends {BaseAPI}
13795
14471
  */
13796
14472
  export class EventsApi extends BaseAPI {
14473
+ /**
14474
+ * Get a specific event by ID
14475
+ * @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
14476
+ * @param {*} [options] Override http request option.
14477
+ * @throws {RequiredError}
14478
+ * @memberof EventsApi
14479
+ */
14480
+ public getEventById(requestParameters: EventsApiGetEventByIdRequest, options?: RawAxiosRequestConfig) {
14481
+ return EventsApiFp(this.configuration).getEventById(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
14482
+ }
14483
+
13797
14484
  /**
13798
14485
  * Get all published events for a club
13799
14486
  * @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
@@ -13802,21 +14489,49 @@ export class EventsApi extends BaseAPI {
13802
14489
  * @memberof EventsApi
13803
14490
  */
13804
14491
  public getPublishedEventsByClubId(requestParameters: EventsApiGetPublishedEventsByClubIdRequest = {}, options?: RawAxiosRequestConfig) {
13805
- return EventsApiFp(this.configuration).getPublishedEventsByClubId(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
14492
+ return EventsApiFp(this.configuration).getPublishedEventsByClubId(requestParameters.clubId, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
14493
+ }
14494
+
14495
+ /**
14496
+ * Join an event (user)
14497
+ * @param {EventsApiJoinEventRequest} requestParameters Request parameters.
14498
+ * @param {*} [options] Override http request option.
14499
+ * @throws {RequiredError}
14500
+ * @memberof EventsApi
14501
+ */
14502
+ public joinEvent(requestParameters: EventsApiJoinEventRequest, options?: RawAxiosRequestConfig) {
14503
+ return EventsApiFp(this.configuration).joinEvent(requestParameters.eventId, requestParameters.joinEventRequest, options).then((request) => request(this.axios, this.basePath));
13806
14504
  }
13807
14505
 
13808
14506
  /**
13809
- * Register for an event
13810
- * @param {EventsApiRegisterForEventRequest} requestParameters Request parameters.
14507
+ * Leave an event (user)
14508
+ * @param {EventsApiLeaveEventRequest} requestParameters Request parameters.
13811
14509
  * @param {*} [options] Override http request option.
13812
14510
  * @throws {RequiredError}
13813
14511
  * @memberof EventsApi
13814
14512
  */
13815
- public registerForEvent(requestParameters: EventsApiRegisterForEventRequest, options?: RawAxiosRequestConfig) {
13816
- return EventsApiFp(this.configuration).registerForEvent(requestParameters.eventId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
14513
+ public leaveEvent(requestParameters: EventsApiLeaveEventRequest, options?: RawAxiosRequestConfig) {
14514
+ return EventsApiFp(this.configuration).leaveEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
13817
14515
  }
13818
14516
  }
13819
14517
 
14518
+ /**
14519
+ * @export
14520
+ */
14521
+ export const GetPublishedEventsByClubIdVisibilityTypeEnum = {
14522
+ Public: 'public',
14523
+ Private: 'private',
14524
+ Invitation: 'invitation'
14525
+ } as const;
14526
+ export type GetPublishedEventsByClubIdVisibilityTypeEnum = typeof GetPublishedEventsByClubIdVisibilityTypeEnum[keyof typeof GetPublishedEventsByClubIdVisibilityTypeEnum];
14527
+ /**
14528
+ * @export
14529
+ */
14530
+ export const GetPublishedEventsByClubIdTypeEnum = {
14531
+ Event: 'event',
14532
+ Closure: 'closure'
14533
+ } as const;
14534
+ export type GetPublishedEventsByClubIdTypeEnum = typeof GetPublishedEventsByClubIdTypeEnum[keyof typeof GetPublishedEventsByClubIdTypeEnum];
13820
14535
 
13821
14536
 
13822
14537
  /**
@@ -13970,6 +14685,49 @@ export const EventsManagerApiAxiosParamCreator = function (configuration?: Confi
13970
14685
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13971
14686
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13972
14687
 
14688
+ return {
14689
+ url: toPathString(localVarUrlObj),
14690
+ options: localVarRequestOptions,
14691
+ };
14692
+ },
14693
+ /**
14694
+ * Update an event (manager)
14695
+ * @param {string} eventId
14696
+ * @param {UpdateEventRequest} updateEventRequest
14697
+ * @param {*} [options] Override http request option.
14698
+ * @throws {RequiredError}
14699
+ */
14700
+ updateEvent: async (eventId: string, updateEventRequest: UpdateEventRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14701
+ // verify required parameter 'eventId' is not null or undefined
14702
+ assertParamExists('updateEvent', 'eventId', eventId)
14703
+ // verify required parameter 'updateEventRequest' is not null or undefined
14704
+ assertParamExists('updateEvent', 'updateEventRequest', updateEventRequest)
14705
+ const localVarPath = `/api/events/manager/updateEvent/{eventId}`
14706
+ .replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
14707
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14708
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14709
+ let baseOptions;
14710
+ if (configuration) {
14711
+ baseOptions = configuration.baseOptions;
14712
+ }
14713
+
14714
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
14715
+ const localVarHeaderParameter = {} as any;
14716
+ const localVarQueryParameter = {} as any;
14717
+
14718
+ // authentication bearerAuth required
14719
+ // http bearer authentication required
14720
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
14721
+
14722
+
14723
+
14724
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14725
+
14726
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14727
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14728
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14729
+ localVarRequestOptions.data = serializeDataIfNeeded(updateEventRequest, localVarRequestOptions, configuration)
14730
+
13973
14731
  return {
13974
14732
  url: toPathString(localVarUrlObj),
13975
14733
  options: localVarRequestOptions,
@@ -14033,6 +14791,19 @@ export const EventsManagerApiFp = function(configuration?: Configuration) {
14033
14791
  const localVarOperationServerBasePath = operationServerMap['EventsManagerApi.unpublishEvent']?.[localVarOperationServerIndex]?.url;
14034
14792
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14035
14793
  },
14794
+ /**
14795
+ * Update an event (manager)
14796
+ * @param {string} eventId
14797
+ * @param {UpdateEventRequest} updateEventRequest
14798
+ * @param {*} [options] Override http request option.
14799
+ * @throws {RequiredError}
14800
+ */
14801
+ async updateEvent(eventId: string, updateEventRequest: UpdateEventRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishEventResponse>> {
14802
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateEvent(eventId, updateEventRequest, options);
14803
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14804
+ const localVarOperationServerBasePath = operationServerMap['EventsManagerApi.updateEvent']?.[localVarOperationServerIndex]?.url;
14805
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14806
+ },
14036
14807
  }
14037
14808
  };
14038
14809
 
@@ -14079,6 +14850,15 @@ export const EventsManagerApiFactory = function (configuration?: Configuration,
14079
14850
  unpublishEvent(requestParameters: EventsManagerApiUnpublishEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse> {
14080
14851
  return localVarFp.unpublishEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
14081
14852
  },
14853
+ /**
14854
+ * Update an event (manager)
14855
+ * @param {EventsManagerApiUpdateEventRequest} requestParameters Request parameters.
14856
+ * @param {*} [options] Override http request option.
14857
+ * @throws {RequiredError}
14858
+ */
14859
+ updateEvent(requestParameters: EventsManagerApiUpdateEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse> {
14860
+ return localVarFp.updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(axios, basePath));
14861
+ },
14082
14862
  };
14083
14863
  };
14084
14864
 
@@ -14138,6 +14918,27 @@ export interface EventsManagerApiUnpublishEventRequest {
14138
14918
  readonly eventId: string
14139
14919
  }
14140
14920
 
14921
+ /**
14922
+ * Request parameters for updateEvent operation in EventsManagerApi.
14923
+ * @export
14924
+ * @interface EventsManagerApiUpdateEventRequest
14925
+ */
14926
+ export interface EventsManagerApiUpdateEventRequest {
14927
+ /**
14928
+ *
14929
+ * @type {string}
14930
+ * @memberof EventsManagerApiUpdateEvent
14931
+ */
14932
+ readonly eventId: string
14933
+
14934
+ /**
14935
+ *
14936
+ * @type {UpdateEventRequest}
14937
+ * @memberof EventsManagerApiUpdateEvent
14938
+ */
14939
+ readonly updateEventRequest: UpdateEventRequest
14940
+ }
14941
+
14141
14942
  /**
14142
14943
  * EventsManagerApi - object-oriented interface
14143
14944
  * @export
@@ -14188,6 +14989,17 @@ export class EventsManagerApi extends BaseAPI {
14188
14989
  public unpublishEvent(requestParameters: EventsManagerApiUnpublishEventRequest, options?: RawAxiosRequestConfig) {
14189
14990
  return EventsManagerApiFp(this.configuration).unpublishEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
14190
14991
  }
14992
+
14993
+ /**
14994
+ * Update an event (manager)
14995
+ * @param {EventsManagerApiUpdateEventRequest} requestParameters Request parameters.
14996
+ * @param {*} [options] Override http request option.
14997
+ * @throws {RequiredError}
14998
+ * @memberof EventsManagerApi
14999
+ */
15000
+ public updateEvent(requestParameters: EventsManagerApiUpdateEventRequest, options?: RawAxiosRequestConfig) {
15001
+ return EventsManagerApiFp(this.configuration).updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(this.axios, this.basePath));
15002
+ }
14191
15003
  }
14192
15004
 
14193
15005
 
@@ -14300,7 +15112,7 @@ export class EventsStaffApi extends BaseAPI {
14300
15112
  export const SportsManagerApiAxiosParamCreator = function (configuration?: Configuration) {
14301
15113
  return {
14302
15114
  /**
14303
- * Crée un sport dans un club
15115
+ * Crée un sport (global) avec createdBy = clubId de l\'utilisateur
14304
15116
  * @param {CreateSportRequest} createSportRequest
14305
15117
  * @param {*} [options] Override http request option.
14306
15118
  * @throws {RequiredError}
@@ -14339,7 +15151,7 @@ export const SportsManagerApiAxiosParamCreator = function (configuration?: Confi
14339
15151
  };
14340
15152
  },
14341
15153
  /**
14342
- * Supprime un sport
15154
+ * Supprime un sport (interdit si vérifié)
14343
15155
  * @param {string} id
14344
15156
  * @param {*} [options] Override http request option.
14345
15157
  * @throws {RequiredError}
@@ -14376,7 +15188,7 @@ export const SportsManagerApiAxiosParamCreator = function (configuration?: Confi
14376
15188
  };
14377
15189
  },
14378
15190
  /**
14379
- * Met à jour un sport
15191
+ * Met à jour un sport (interdit si vérifié)
14380
15192
  * @param {string} id
14381
15193
  * @param {UpdateSportRequest} updateSportRequest
14382
15194
  * @param {*} [options] Override http request option.
@@ -14429,7 +15241,7 @@ export const SportsManagerApiFp = function(configuration?: Configuration) {
14429
15241
  const localVarAxiosParamCreator = SportsManagerApiAxiosParamCreator(configuration)
14430
15242
  return {
14431
15243
  /**
14432
- * Crée un sport dans un club
15244
+ * Crée un sport (global) avec createdBy = clubId de l\'utilisateur
14433
15245
  * @param {CreateSportRequest} createSportRequest
14434
15246
  * @param {*} [options] Override http request option.
14435
15247
  * @throws {RequiredError}
@@ -14441,7 +15253,7 @@ export const SportsManagerApiFp = function(configuration?: Configuration) {
14441
15253
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14442
15254
  },
14443
15255
  /**
14444
- * Supprime un sport
15256
+ * Supprime un sport (interdit si vérifié)
14445
15257
  * @param {string} id
14446
15258
  * @param {*} [options] Override http request option.
14447
15259
  * @throws {RequiredError}
@@ -14453,7 +15265,7 @@ export const SportsManagerApiFp = function(configuration?: Configuration) {
14453
15265
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14454
15266
  },
14455
15267
  /**
14456
- * Met à jour un sport
15268
+ * Met à jour un sport (interdit si vérifié)
14457
15269
  * @param {string} id
14458
15270
  * @param {UpdateSportRequest} updateSportRequest
14459
15271
  * @param {*} [options] Override http request option.
@@ -14476,7 +15288,7 @@ export const SportsManagerApiFactory = function (configuration?: Configuration,
14476
15288
  const localVarFp = SportsManagerApiFp(configuration)
14477
15289
  return {
14478
15290
  /**
14479
- * Crée un sport dans un club
15291
+ * Crée un sport (global) avec createdBy = clubId de l\'utilisateur
14480
15292
  * @param {SportsManagerApiCreateSportRequest} requestParameters Request parameters.
14481
15293
  * @param {*} [options] Override http request option.
14482
15294
  * @throws {RequiredError}
@@ -14485,7 +15297,7 @@ export const SportsManagerApiFactory = function (configuration?: Configuration,
14485
15297
  return localVarFp.createSport(requestParameters.createSportRequest, options).then((request) => request(axios, basePath));
14486
15298
  },
14487
15299
  /**
14488
- * Supprime un sport
15300
+ * Supprime un sport (interdit si vérifié)
14489
15301
  * @param {SportsManagerApiDeleteSportRequest} requestParameters Request parameters.
14490
15302
  * @param {*} [options] Override http request option.
14491
15303
  * @throws {RequiredError}
@@ -14494,7 +15306,7 @@ export const SportsManagerApiFactory = function (configuration?: Configuration,
14494
15306
  return localVarFp.deleteSport(requestParameters.id, options).then((request) => request(axios, basePath));
14495
15307
  },
14496
15308
  /**
14497
- * Met à jour un sport
15309
+ * Met à jour un sport (interdit si vérifié)
14498
15310
  * @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
14499
15311
  * @param {*} [options] Override http request option.
14500
15312
  * @throws {RequiredError}
@@ -14562,7 +15374,7 @@ export interface SportsManagerApiUpdateSportRequest {
14562
15374
  */
14563
15375
  export class SportsManagerApi extends BaseAPI {
14564
15376
  /**
14565
- * Crée un sport dans un club
15377
+ * Crée un sport (global) avec createdBy = clubId de l\'utilisateur
14566
15378
  * @param {SportsManagerApiCreateSportRequest} requestParameters Request parameters.
14567
15379
  * @param {*} [options] Override http request option.
14568
15380
  * @throws {RequiredError}
@@ -14573,7 +15385,7 @@ export class SportsManagerApi extends BaseAPI {
14573
15385
  }
14574
15386
 
14575
15387
  /**
14576
- * Supprime un sport
15388
+ * Supprime un sport (interdit si vérifié)
14577
15389
  * @param {SportsManagerApiDeleteSportRequest} requestParameters Request parameters.
14578
15390
  * @param {*} [options] Override http request option.
14579
15391
  * @throws {RequiredError}
@@ -14584,7 +15396,7 @@ export class SportsManagerApi extends BaseAPI {
14584
15396
  }
14585
15397
 
14586
15398
  /**
14587
- * Met à jour un sport
15399
+ * Met à jour un sport (interdit si vérifié)
14588
15400
  * @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
14589
15401
  * @param {*} [options] Override http request option.
14590
15402
  * @throws {RequiredError}
@@ -14604,7 +15416,7 @@ export class SportsManagerApi extends BaseAPI {
14604
15416
  export const SportsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
14605
15417
  return {
14606
15418
  /**
14607
- * Récupère la liste des sports d\'un club
15419
+ * Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
14608
15420
  * @param {*} [options] Override http request option.
14609
15421
  * @throws {RequiredError}
14610
15422
  */
@@ -14647,11 +15459,11 @@ export const SportsStaffApiFp = function(configuration?: Configuration) {
14647
15459
  const localVarAxiosParamCreator = SportsStaffApiAxiosParamCreator(configuration)
14648
15460
  return {
14649
15461
  /**
14650
- * Récupère la liste des sports d\'un club
15462
+ * Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
14651
15463
  * @param {*} [options] Override http request option.
14652
15464
  * @throws {RequiredError}
14653
15465
  */
14654
- async getAllSports(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SportWithAnalytics>>> {
15466
+ async getAllSports(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SportResponse>>> {
14655
15467
  const localVarAxiosArgs = await localVarAxiosParamCreator.getAllSports(options);
14656
15468
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14657
15469
  const localVarOperationServerBasePath = operationServerMap['SportsStaffApi.getAllSports']?.[localVarOperationServerIndex]?.url;
@@ -14668,11 +15480,11 @@ export const SportsStaffApiFactory = function (configuration?: Configuration, ba
14668
15480
  const localVarFp = SportsStaffApiFp(configuration)
14669
15481
  return {
14670
15482
  /**
14671
- * Récupère la liste des sports d\'un club
15483
+ * Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
14672
15484
  * @param {*} [options] Override http request option.
14673
15485
  * @throws {RequiredError}
14674
15486
  */
14675
- getAllSports(options?: RawAxiosRequestConfig): AxiosPromise<Array<SportWithAnalytics>> {
15487
+ getAllSports(options?: RawAxiosRequestConfig): AxiosPromise<Array<SportResponse>> {
14676
15488
  return localVarFp.getAllSports(options).then((request) => request(axios, basePath));
14677
15489
  },
14678
15490
  };
@@ -14686,7 +15498,7 @@ export const SportsStaffApiFactory = function (configuration?: Configuration, ba
14686
15498
  */
14687
15499
  export class SportsStaffApi extends BaseAPI {
14688
15500
  /**
14689
- * Récupère la liste des sports d\'un club
15501
+ * Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
14690
15502
  * @param {*} [options] Override http request option.
14691
15503
  * @throws {RequiredError}
14692
15504
  * @memberof SportsStaffApi