@tennac-booking/sdk 1.0.69 → 1.0.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +236 -227
- package/README.md +20 -7
- package/api.ts +1488 -247
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1334 -339
- package/dist/api.js +461 -62
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +1334 -339
- package/dist/esm/api.js +458 -59
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/BookingDetailResponse.md +1 -1
- package/docs/{BookingHistory.md → BookingHistoryPopulated.md} +4 -4
- package/docs/BookingPopulated.md +27 -7
- package/docs/BookingStatus.md +3 -1
- package/docs/BookingSummary.md +1 -1
- package/docs/BookingsApi.md +81 -2
- package/docs/BookingsStaffApi.md +3 -3
- package/docs/CheckInPlayersResponse.md +2 -10
- package/docs/ClubsApi.md +2 -2
- package/docs/CreateEventRequest.md +26 -0
- package/docs/CreateSportForClubRequest.md +6 -0
- package/docs/CreateSportRequest.md +8 -2
- package/docs/EventResponse.md +26 -0
- package/docs/EventsApi.md +131 -12
- package/docs/EventsManagerApi.md +59 -0
- package/docs/JoinEventRequest.md +22 -0
- package/docs/JoinEventResponse.md +22 -0
- package/docs/QuickReservationClubSummary.md +28 -0
- package/docs/QuickReservationClubSummaryLocation.md +31 -0
- package/docs/QuickReservationResponse.md +22 -0
- package/docs/QuickReservationSlotSummary.md +42 -0
- package/docs/SportKey.md +14 -0
- package/docs/SportLevel.md +22 -0
- package/docs/SportResponse.md +10 -5
- package/docs/SportWithLevels.md +30 -0
- package/docs/SportsManagerApi.md +6 -3
- package/docs/SportsStaffApi.md +3 -3
- package/docs/{GetSportsByClubById200Response.md → SubscriberPrice.md} +7 -5
- package/docs/{BookingSummaryBookingHistory.md → Team.md} +7 -3
- package/docs/UpdateEventRequest.md +54 -0
- package/docs/UpdateSportRequest.md +9 -1
- package/docs/UserInfo.md +4 -0
- package/docs/UsersApi.md +0 -3
- package/index.ts +1 -1
- package/package.json +1 -1
- 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.
|
|
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).
|
|
@@ -240,10 +240,10 @@ export interface BookingDetailResponse {
|
|
|
240
240
|
'clubAddress'?: BookingSummaryClubAddress | null;
|
|
241
241
|
/**
|
|
242
242
|
*
|
|
243
|
-
* @type {
|
|
243
|
+
* @type {BookingHistoryPopulated}
|
|
244
244
|
* @memberof BookingDetailResponse
|
|
245
245
|
*/
|
|
246
|
-
'bookingHistory'?:
|
|
246
|
+
'bookingHistory'?: BookingHistoryPopulated;
|
|
247
247
|
/**
|
|
248
248
|
*
|
|
249
249
|
* @type {Array<{ [key: string]: any; }>}
|
|
@@ -254,66 +254,66 @@ export interface BookingDetailResponse {
|
|
|
254
254
|
/**
|
|
255
255
|
*
|
|
256
256
|
* @export
|
|
257
|
-
* @interface
|
|
257
|
+
* @interface BookingHistoryPopulated
|
|
258
258
|
*/
|
|
259
|
-
export interface
|
|
259
|
+
export interface BookingHistoryPopulated {
|
|
260
260
|
/**
|
|
261
261
|
*
|
|
262
262
|
* @type {string}
|
|
263
|
-
* @memberof
|
|
263
|
+
* @memberof BookingHistoryPopulated
|
|
264
264
|
*/
|
|
265
265
|
'action': string;
|
|
266
266
|
/**
|
|
267
267
|
*
|
|
268
|
-
* @type {
|
|
269
|
-
* @memberof
|
|
268
|
+
* @type {UserInfo}
|
|
269
|
+
* @memberof BookingHistoryPopulated
|
|
270
270
|
*/
|
|
271
|
-
'performedBy':
|
|
271
|
+
'performedBy': UserInfo;
|
|
272
272
|
/**
|
|
273
273
|
*
|
|
274
274
|
* @type {string}
|
|
275
|
-
* @memberof
|
|
275
|
+
* @memberof BookingHistoryPopulated
|
|
276
276
|
*/
|
|
277
|
-
'performedByType':
|
|
277
|
+
'performedByType': BookingHistoryPopulatedPerformedByTypeEnum;
|
|
278
278
|
/**
|
|
279
279
|
*
|
|
280
280
|
* @type {string}
|
|
281
|
-
* @memberof
|
|
281
|
+
* @memberof BookingHistoryPopulated
|
|
282
282
|
*/
|
|
283
283
|
'details': string;
|
|
284
284
|
/**
|
|
285
285
|
*
|
|
286
286
|
* @type {any}
|
|
287
|
-
* @memberof
|
|
287
|
+
* @memberof BookingHistoryPopulated
|
|
288
288
|
*/
|
|
289
289
|
'metadata'?: any;
|
|
290
290
|
/**
|
|
291
291
|
*
|
|
292
292
|
* @type {string}
|
|
293
|
-
* @memberof
|
|
293
|
+
* @memberof BookingHistoryPopulated
|
|
294
294
|
*/
|
|
295
295
|
'previousStatus'?: string;
|
|
296
296
|
/**
|
|
297
297
|
*
|
|
298
298
|
* @type {string}
|
|
299
|
-
* @memberof
|
|
299
|
+
* @memberof BookingHistoryPopulated
|
|
300
300
|
*/
|
|
301
301
|
'newStatus'?: string;
|
|
302
302
|
/**
|
|
303
303
|
*
|
|
304
304
|
* @type {string}
|
|
305
|
-
* @memberof
|
|
305
|
+
* @memberof BookingHistoryPopulated
|
|
306
306
|
*/
|
|
307
307
|
'createdAt'?: string;
|
|
308
308
|
}
|
|
309
309
|
|
|
310
|
-
export const
|
|
310
|
+
export const BookingHistoryPopulatedPerformedByTypeEnum = {
|
|
311
311
|
User: 'user',
|
|
312
312
|
Manager: 'manager',
|
|
313
313
|
System: 'system'
|
|
314
314
|
} as const;
|
|
315
315
|
|
|
316
|
-
export type
|
|
316
|
+
export type BookingHistoryPopulatedPerformedByTypeEnum = typeof BookingHistoryPopulatedPerformedByTypeEnum[keyof typeof BookingHistoryPopulatedPerformedByTypeEnum];
|
|
317
317
|
|
|
318
318
|
/**
|
|
319
319
|
*
|
|
@@ -528,30 +528,92 @@ export interface BookingPopulated {
|
|
|
528
528
|
*/
|
|
529
529
|
'id': string;
|
|
530
530
|
/**
|
|
531
|
-
*
|
|
531
|
+
*
|
|
532
532
|
* @type {string}
|
|
533
533
|
* @memberof BookingPopulated
|
|
534
534
|
*/
|
|
535
|
-
'
|
|
535
|
+
'clubId': string;
|
|
536
536
|
/**
|
|
537
537
|
*
|
|
538
538
|
* @type {UserInfo}
|
|
539
539
|
* @memberof BookingPopulated
|
|
540
540
|
*/
|
|
541
|
-
'
|
|
541
|
+
'creator': UserInfo;
|
|
542
542
|
/**
|
|
543
543
|
*
|
|
544
544
|
* @type {SlotInfo}
|
|
545
545
|
* @memberof BookingPopulated
|
|
546
546
|
*/
|
|
547
|
-
'
|
|
547
|
+
'slotInfos': SlotInfo;
|
|
548
548
|
/**
|
|
549
549
|
* Statut des paiements par joueur
|
|
550
550
|
* @type {Array<PaymentByPlayerInfo>}
|
|
551
551
|
* @memberof BookingPopulated
|
|
552
552
|
*/
|
|
553
|
-
'
|
|
553
|
+
'paymentByPlayers': Array<PaymentByPlayerInfo>;
|
|
554
|
+
/**
|
|
555
|
+
*
|
|
556
|
+
* @type {boolean}
|
|
557
|
+
* @memberof BookingPopulated
|
|
558
|
+
*/
|
|
559
|
+
'noShowChargeApplied'?: boolean;
|
|
560
|
+
/**
|
|
561
|
+
*
|
|
562
|
+
* @type {number}
|
|
563
|
+
* @memberof BookingPopulated
|
|
564
|
+
*/
|
|
565
|
+
'noShowChargeAmount'?: number;
|
|
566
|
+
/**
|
|
567
|
+
*
|
|
568
|
+
* @type {number}
|
|
569
|
+
* @memberof BookingPopulated
|
|
570
|
+
*/
|
|
571
|
+
'totalPrice': number;
|
|
572
|
+
/**
|
|
573
|
+
*
|
|
574
|
+
* @type {boolean}
|
|
575
|
+
* @memberof BookingPopulated
|
|
576
|
+
*/
|
|
577
|
+
'isCreatorPayingAll': boolean;
|
|
578
|
+
/**
|
|
579
|
+
*
|
|
580
|
+
* @type {Array<string>}
|
|
581
|
+
* @memberof BookingPopulated
|
|
582
|
+
*/
|
|
583
|
+
'playersIds': Array<string>;
|
|
584
|
+
/**
|
|
585
|
+
*
|
|
586
|
+
* @type {Array<BookingHistoryPopulated>}
|
|
587
|
+
* @memberof BookingPopulated
|
|
588
|
+
*/
|
|
589
|
+
'history': Array<BookingHistoryPopulated>;
|
|
590
|
+
/**
|
|
591
|
+
*
|
|
592
|
+
* @type {BookingStatus}
|
|
593
|
+
* @memberof BookingPopulated
|
|
594
|
+
*/
|
|
595
|
+
'status': BookingStatus;
|
|
596
|
+
/**
|
|
597
|
+
*
|
|
598
|
+
* @type {boolean}
|
|
599
|
+
* @memberof BookingPopulated
|
|
600
|
+
*/
|
|
601
|
+
'cancelledByManager'?: boolean;
|
|
602
|
+
/**
|
|
603
|
+
*
|
|
604
|
+
* @type {string}
|
|
605
|
+
* @memberof BookingPopulated
|
|
606
|
+
*/
|
|
607
|
+
'cancelledBy'?: string;
|
|
608
|
+
/**
|
|
609
|
+
*
|
|
610
|
+
* @type {string}
|
|
611
|
+
* @memberof BookingPopulated
|
|
612
|
+
*/
|
|
613
|
+
'cancellationReason'?: string;
|
|
554
614
|
}
|
|
615
|
+
|
|
616
|
+
|
|
555
617
|
/**
|
|
556
618
|
*
|
|
557
619
|
* @export
|
|
@@ -616,9 +678,10 @@ export interface BookingResponseOnsitePaymentsInner {
|
|
|
616
678
|
|
|
617
679
|
export const BookingStatus = {
|
|
618
680
|
Paid: 'paid',
|
|
681
|
+
Validated: 'validated',
|
|
619
682
|
Active: 'active',
|
|
620
683
|
Pending: 'pending',
|
|
621
|
-
|
|
684
|
+
ActivePaymentsTimeout: 'active_payments_timeout',
|
|
622
685
|
Canceled: 'canceled',
|
|
623
686
|
NoShow: 'no-show'
|
|
624
687
|
} as const;
|
|
@@ -706,17 +769,10 @@ export interface BookingSummary {
|
|
|
706
769
|
'clubAddress'?: BookingSummaryClubAddress | null;
|
|
707
770
|
/**
|
|
708
771
|
*
|
|
709
|
-
* @type {
|
|
772
|
+
* @type {BookingHistoryPopulated}
|
|
710
773
|
* @memberof BookingSummary
|
|
711
774
|
*/
|
|
712
|
-
'bookingHistory'?:
|
|
713
|
-
}
|
|
714
|
-
/**
|
|
715
|
-
*
|
|
716
|
-
* @export
|
|
717
|
-
* @interface BookingSummaryBookingHistory
|
|
718
|
-
*/
|
|
719
|
-
export interface BookingSummaryBookingHistory {
|
|
775
|
+
'bookingHistory'?: BookingHistoryPopulated;
|
|
720
776
|
}
|
|
721
777
|
/**
|
|
722
778
|
*
|
|
@@ -863,31 +919,7 @@ export interface CheckInPlayersResponse {
|
|
|
863
919
|
* @type {Array<CheckedInPlayer>}
|
|
864
920
|
* @memberof CheckInPlayersResponse
|
|
865
921
|
*/
|
|
866
|
-
'
|
|
867
|
-
/**
|
|
868
|
-
* Joueurs non trouvés
|
|
869
|
-
* @type {Array<string>}
|
|
870
|
-
* @memberof CheckInPlayersResponse
|
|
871
|
-
*/
|
|
872
|
-
'notFoundPlayers': Array<string>;
|
|
873
|
-
/**
|
|
874
|
-
* Tous les joueurs ont fait le check-in
|
|
875
|
-
* @type {boolean}
|
|
876
|
-
* @memberof CheckInPlayersResponse
|
|
877
|
-
*/
|
|
878
|
-
'allPlayersCheckedIn': boolean;
|
|
879
|
-
/**
|
|
880
|
-
* Réservation entièrement payée
|
|
881
|
-
* @type {boolean}
|
|
882
|
-
* @memberof CheckInPlayersResponse
|
|
883
|
-
*/
|
|
884
|
-
'bookingFullyPaid': boolean;
|
|
885
|
-
/**
|
|
886
|
-
* Nombre total de joueurs
|
|
887
|
-
* @type {number}
|
|
888
|
-
* @memberof CheckInPlayersResponse
|
|
889
|
-
*/
|
|
890
|
-
'totalPlayers': number;
|
|
922
|
+
'invoices': Array<CheckedInPlayer>;
|
|
891
923
|
}
|
|
892
924
|
/**
|
|
893
925
|
*
|
|
@@ -1855,6 +1887,12 @@ export interface CreateCourtRequest {
|
|
|
1855
1887
|
* @interface CreateEventRequest
|
|
1856
1888
|
*/
|
|
1857
1889
|
export interface CreateEventRequest {
|
|
1890
|
+
/**
|
|
1891
|
+
*
|
|
1892
|
+
* @type {string}
|
|
1893
|
+
* @memberof CreateEventRequest
|
|
1894
|
+
*/
|
|
1895
|
+
'type': CreateEventRequestTypeEnum;
|
|
1858
1896
|
/**
|
|
1859
1897
|
*
|
|
1860
1898
|
* @type {string}
|
|
@@ -1867,6 +1905,12 @@ export interface CreateEventRequest {
|
|
|
1867
1905
|
* @memberof CreateEventRequest
|
|
1868
1906
|
*/
|
|
1869
1907
|
'description'?: string;
|
|
1908
|
+
/**
|
|
1909
|
+
*
|
|
1910
|
+
* @type {string}
|
|
1911
|
+
* @memberof CreateEventRequest
|
|
1912
|
+
*/
|
|
1913
|
+
'photoUrl'?: string;
|
|
1870
1914
|
/**
|
|
1871
1915
|
*
|
|
1872
1916
|
* @type {string}
|
|
@@ -1885,7 +1929,102 @@ export interface CreateEventRequest {
|
|
|
1885
1929
|
* @memberof CreateEventRequest
|
|
1886
1930
|
*/
|
|
1887
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;
|
|
1888
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
|
+
|
|
1889
2028
|
/**
|
|
1890
2029
|
*
|
|
1891
2030
|
* @export
|
|
@@ -1924,6 +2063,24 @@ export interface CreateSportForClub201Response {
|
|
|
1924
2063
|
* @interface CreateSportForClubRequest
|
|
1925
2064
|
*/
|
|
1926
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;
|
|
1927
2084
|
/**
|
|
1928
2085
|
*
|
|
1929
2086
|
* @type {string}
|
|
@@ -1938,11 +2095,29 @@ export interface CreateSportForClubRequest {
|
|
|
1938
2095
|
*/
|
|
1939
2096
|
export interface CreateSportRequest {
|
|
1940
2097
|
/**
|
|
1941
|
-
*
|
|
2098
|
+
* Nom affiché du sport
|
|
1942
2099
|
* @type {string}
|
|
1943
2100
|
* @memberof CreateSportRequest
|
|
1944
2101
|
*/
|
|
1945
|
-
'
|
|
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>;
|
|
1946
2121
|
}
|
|
1947
2122
|
/**
|
|
1948
2123
|
*
|
|
@@ -2214,6 +2389,12 @@ export interface EventResponse {
|
|
|
2214
2389
|
* @memberof EventResponse
|
|
2215
2390
|
*/
|
|
2216
2391
|
'clubId': string;
|
|
2392
|
+
/**
|
|
2393
|
+
*
|
|
2394
|
+
* @type {string}
|
|
2395
|
+
* @memberof EventResponse
|
|
2396
|
+
*/
|
|
2397
|
+
'type': EventResponseTypeEnum;
|
|
2217
2398
|
/**
|
|
2218
2399
|
*
|
|
2219
2400
|
* @type {string}
|
|
@@ -2226,6 +2407,12 @@ export interface EventResponse {
|
|
|
2226
2407
|
* @memberof EventResponse
|
|
2227
2408
|
*/
|
|
2228
2409
|
'description'?: string;
|
|
2410
|
+
/**
|
|
2411
|
+
*
|
|
2412
|
+
* @type {string}
|
|
2413
|
+
* @memberof EventResponse
|
|
2414
|
+
*/
|
|
2415
|
+
'photoUrl'?: string;
|
|
2229
2416
|
/**
|
|
2230
2417
|
*
|
|
2231
2418
|
* @type {string}
|
|
@@ -2246,79 +2433,174 @@ export interface EventResponse {
|
|
|
2246
2433
|
'courts': Array<EventResponseCourtsInner>;
|
|
2247
2434
|
/**
|
|
2248
2435
|
*
|
|
2249
|
-
* @type {
|
|
2436
|
+
* @type {Array<SportWithLevels>}
|
|
2250
2437
|
* @memberof EventResponse
|
|
2251
2438
|
*/
|
|
2252
|
-
'
|
|
2439
|
+
'sports': Array<SportWithLevels>;
|
|
2253
2440
|
/**
|
|
2254
2441
|
*
|
|
2255
|
-
* @type {
|
|
2442
|
+
* @type {string}
|
|
2256
2443
|
* @memberof EventResponse
|
|
2257
2444
|
*/
|
|
2258
|
-
'
|
|
2445
|
+
'recurringType': EventResponseRecurringTypeEnum;
|
|
2259
2446
|
/**
|
|
2260
2447
|
*
|
|
2261
2448
|
* @type {string}
|
|
2262
2449
|
* @memberof EventResponse
|
|
2263
2450
|
*/
|
|
2264
|
-
'
|
|
2451
|
+
'recurrenceEndDate'?: string;
|
|
2265
2452
|
/**
|
|
2266
2453
|
*
|
|
2267
2454
|
* @type {string}
|
|
2268
2455
|
* @memberof EventResponse
|
|
2269
2456
|
*/
|
|
2270
|
-
'
|
|
2271
|
-
}
|
|
2272
|
-
/**
|
|
2273
|
-
*
|
|
2274
|
-
* @export
|
|
2275
|
-
* @interface EventResponseCourtsInner
|
|
2276
|
-
*/
|
|
2277
|
-
export interface EventResponseCourtsInner {
|
|
2278
|
-
}
|
|
2279
|
-
/**
|
|
2280
|
-
*
|
|
2281
|
-
* @export
|
|
2282
|
-
* @interface EventsListResponse
|
|
2283
|
-
*/
|
|
2284
|
-
export interface EventsListResponse {
|
|
2457
|
+
'participationType': EventResponseParticipationTypeEnum;
|
|
2285
2458
|
/**
|
|
2286
2459
|
*
|
|
2287
|
-
* @type {Array<
|
|
2288
|
-
* @memberof
|
|
2460
|
+
* @type {Array<string>}
|
|
2461
|
+
* @memberof EventResponse
|
|
2289
2462
|
*/
|
|
2290
|
-
'
|
|
2291
|
-
}
|
|
2292
|
-
/**
|
|
2293
|
-
*
|
|
2294
|
-
* @export
|
|
2295
|
-
* @interface FavoriteClubMutationResponse
|
|
2296
|
-
*/
|
|
2297
|
-
export interface FavoriteClubMutationResponse {
|
|
2463
|
+
'participants'?: Array<string>;
|
|
2298
2464
|
/**
|
|
2299
2465
|
*
|
|
2300
|
-
* @type {
|
|
2301
|
-
* @memberof
|
|
2466
|
+
* @type {Array<Team>}
|
|
2467
|
+
* @memberof EventResponse
|
|
2302
2468
|
*/
|
|
2303
|
-
'
|
|
2469
|
+
'teams'?: Array<Team>;
|
|
2304
2470
|
/**
|
|
2305
2471
|
*
|
|
2306
|
-
* @type {
|
|
2307
|
-
* @memberof
|
|
2472
|
+
* @type {number}
|
|
2473
|
+
* @memberof EventResponse
|
|
2308
2474
|
*/
|
|
2309
|
-
'
|
|
2310
|
-
}
|
|
2311
|
-
/**
|
|
2312
|
-
*
|
|
2313
|
-
* @export
|
|
2314
|
-
* @interface FavoriteClubRequestBody
|
|
2315
|
-
*/
|
|
2316
|
-
export interface FavoriteClubRequestBody {
|
|
2475
|
+
'playerLimit'?: number;
|
|
2317
2476
|
/**
|
|
2318
2477
|
*
|
|
2319
|
-
* @type {
|
|
2320
|
-
* @memberof
|
|
2321
|
-
*/
|
|
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;
|
|
2500
|
+
/**
|
|
2501
|
+
*
|
|
2502
|
+
* @type {string}
|
|
2503
|
+
* @memberof EventResponse
|
|
2504
|
+
*/
|
|
2505
|
+
'createdBy'?: string;
|
|
2506
|
+
/**
|
|
2507
|
+
*
|
|
2508
|
+
* @type {boolean}
|
|
2509
|
+
* @memberof EventResponse
|
|
2510
|
+
*/
|
|
2511
|
+
'isActive': boolean;
|
|
2512
|
+
/**
|
|
2513
|
+
*
|
|
2514
|
+
* @type {string}
|
|
2515
|
+
* @memberof EventResponse
|
|
2516
|
+
*/
|
|
2517
|
+
'createdAt': string;
|
|
2518
|
+
/**
|
|
2519
|
+
*
|
|
2520
|
+
* @type {string}
|
|
2521
|
+
* @memberof EventResponse
|
|
2522
|
+
*/
|
|
2523
|
+
'updatedAt': string;
|
|
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
|
+
|
|
2554
|
+
/**
|
|
2555
|
+
*
|
|
2556
|
+
* @export
|
|
2557
|
+
* @interface EventResponseCourtsInner
|
|
2558
|
+
*/
|
|
2559
|
+
export interface EventResponseCourtsInner {
|
|
2560
|
+
}
|
|
2561
|
+
/**
|
|
2562
|
+
*
|
|
2563
|
+
* @export
|
|
2564
|
+
* @interface EventsListResponse
|
|
2565
|
+
*/
|
|
2566
|
+
export interface EventsListResponse {
|
|
2567
|
+
/**
|
|
2568
|
+
*
|
|
2569
|
+
* @type {Array<EventResponse>}
|
|
2570
|
+
* @memberof EventsListResponse
|
|
2571
|
+
*/
|
|
2572
|
+
'events': Array<EventResponse>;
|
|
2573
|
+
}
|
|
2574
|
+
/**
|
|
2575
|
+
*
|
|
2576
|
+
* @export
|
|
2577
|
+
* @interface FavoriteClubMutationResponse
|
|
2578
|
+
*/
|
|
2579
|
+
export interface FavoriteClubMutationResponse {
|
|
2580
|
+
/**
|
|
2581
|
+
*
|
|
2582
|
+
* @type {string}
|
|
2583
|
+
* @memberof FavoriteClubMutationResponse
|
|
2584
|
+
*/
|
|
2585
|
+
'message': string;
|
|
2586
|
+
/**
|
|
2587
|
+
*
|
|
2588
|
+
* @type {Array<string>}
|
|
2589
|
+
* @memberof FavoriteClubMutationResponse
|
|
2590
|
+
*/
|
|
2591
|
+
'favoriteClubs': Array<string>;
|
|
2592
|
+
}
|
|
2593
|
+
/**
|
|
2594
|
+
*
|
|
2595
|
+
* @export
|
|
2596
|
+
* @interface FavoriteClubRequestBody
|
|
2597
|
+
*/
|
|
2598
|
+
export interface FavoriteClubRequestBody {
|
|
2599
|
+
/**
|
|
2600
|
+
*
|
|
2601
|
+
* @type {string}
|
|
2602
|
+
* @memberof FavoriteClubRequestBody
|
|
2603
|
+
*/
|
|
2322
2604
|
'clubId': string;
|
|
2323
2605
|
}
|
|
2324
2606
|
/**
|
|
@@ -2602,19 +2884,6 @@ export interface GetSlotsByClubById200Response {
|
|
|
2602
2884
|
*/
|
|
2603
2885
|
'slots': Array<any>;
|
|
2604
2886
|
}
|
|
2605
|
-
/**
|
|
2606
|
-
*
|
|
2607
|
-
* @export
|
|
2608
|
-
* @interface GetSportsByClubById200Response
|
|
2609
|
-
*/
|
|
2610
|
-
export interface GetSportsByClubById200Response {
|
|
2611
|
-
/**
|
|
2612
|
-
*
|
|
2613
|
-
* @type {Array<any>}
|
|
2614
|
-
* @memberof GetSportsByClubById200Response
|
|
2615
|
-
*/
|
|
2616
|
-
'sports': Array<any>;
|
|
2617
|
-
}
|
|
2618
2887
|
/**
|
|
2619
2888
|
*
|
|
2620
2889
|
* @export
|
|
@@ -3163,6 +3432,44 @@ export interface InvoiceInfo {
|
|
|
3163
3432
|
*/
|
|
3164
3433
|
'status': string;
|
|
3165
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
|
+
}
|
|
3166
3473
|
/**
|
|
3167
3474
|
*
|
|
3168
3475
|
* @export
|
|
@@ -4123,6 +4430,184 @@ export interface PublishEventResponse {
|
|
|
4123
4430
|
*/
|
|
4124
4431
|
'event': EventResponse;
|
|
4125
4432
|
}
|
|
4433
|
+
/**
|
|
4434
|
+
*
|
|
4435
|
+
* @export
|
|
4436
|
+
* @interface QuickReservationClubSummary
|
|
4437
|
+
*/
|
|
4438
|
+
export interface QuickReservationClubSummary {
|
|
4439
|
+
/**
|
|
4440
|
+
* ID du club
|
|
4441
|
+
* @type {string}
|
|
4442
|
+
* @memberof QuickReservationClubSummary
|
|
4443
|
+
*/
|
|
4444
|
+
'clubId': string;
|
|
4445
|
+
/**
|
|
4446
|
+
* Nom du club
|
|
4447
|
+
* @type {string}
|
|
4448
|
+
* @memberof QuickReservationClubSummary
|
|
4449
|
+
*/
|
|
4450
|
+
'clubName': string;
|
|
4451
|
+
/**
|
|
4452
|
+
* Distance par rapport à la recherche, en mètres
|
|
4453
|
+
* @type {number}
|
|
4454
|
+
* @memberof QuickReservationClubSummary
|
|
4455
|
+
*/
|
|
4456
|
+
'distanceInMeters': number;
|
|
4457
|
+
/**
|
|
4458
|
+
*
|
|
4459
|
+
* @type {QuickReservationClubSummaryLocation}
|
|
4460
|
+
* @memberof QuickReservationClubSummary
|
|
4461
|
+
*/
|
|
4462
|
+
'location'?: QuickReservationClubSummaryLocation;
|
|
4463
|
+
/**
|
|
4464
|
+
* Créneaux disponibles correspondant aux filtres
|
|
4465
|
+
* @type {Array<QuickReservationSlotSummary>}
|
|
4466
|
+
* @memberof QuickReservationClubSummary
|
|
4467
|
+
*/
|
|
4468
|
+
'slots': Array<QuickReservationSlotSummary>;
|
|
4469
|
+
}
|
|
4470
|
+
/**
|
|
4471
|
+
* Localisation du club
|
|
4472
|
+
* @export
|
|
4473
|
+
* @interface QuickReservationClubSummaryLocation
|
|
4474
|
+
*/
|
|
4475
|
+
export interface QuickReservationClubSummaryLocation {
|
|
4476
|
+
/**
|
|
4477
|
+
*
|
|
4478
|
+
* @type {string}
|
|
4479
|
+
* @memberof QuickReservationClubSummaryLocation
|
|
4480
|
+
*/
|
|
4481
|
+
'country'?: string;
|
|
4482
|
+
/**
|
|
4483
|
+
*
|
|
4484
|
+
* @type {string}
|
|
4485
|
+
* @memberof QuickReservationClubSummaryLocation
|
|
4486
|
+
*/
|
|
4487
|
+
'postalCode'?: string;
|
|
4488
|
+
/**
|
|
4489
|
+
*
|
|
4490
|
+
* @type {string}
|
|
4491
|
+
* @memberof QuickReservationClubSummaryLocation
|
|
4492
|
+
*/
|
|
4493
|
+
'city'?: string;
|
|
4494
|
+
/**
|
|
4495
|
+
*
|
|
4496
|
+
* @type {string}
|
|
4497
|
+
* @memberof QuickReservationClubSummaryLocation
|
|
4498
|
+
*/
|
|
4499
|
+
'address'?: string;
|
|
4500
|
+
/**
|
|
4501
|
+
*
|
|
4502
|
+
* @type {number}
|
|
4503
|
+
* @memberof QuickReservationClubSummaryLocation
|
|
4504
|
+
*/
|
|
4505
|
+
'longitude'?: number;
|
|
4506
|
+
/**
|
|
4507
|
+
*
|
|
4508
|
+
* @type {number}
|
|
4509
|
+
* @memberof QuickReservationClubSummaryLocation
|
|
4510
|
+
*/
|
|
4511
|
+
'latitude'?: number;
|
|
4512
|
+
}
|
|
4513
|
+
/**
|
|
4514
|
+
*
|
|
4515
|
+
* @export
|
|
4516
|
+
* @interface QuickReservationResponse
|
|
4517
|
+
*/
|
|
4518
|
+
export interface QuickReservationResponse {
|
|
4519
|
+
/**
|
|
4520
|
+
* Nombre total de clubs contenant des créneaux disponibles
|
|
4521
|
+
* @type {number}
|
|
4522
|
+
* @memberof QuickReservationResponse
|
|
4523
|
+
*/
|
|
4524
|
+
'totalClubs': number;
|
|
4525
|
+
/**
|
|
4526
|
+
* Liste des clubs et de leurs créneaux disponibles
|
|
4527
|
+
* @type {Array<QuickReservationClubSummary>}
|
|
4528
|
+
* @memberof QuickReservationResponse
|
|
4529
|
+
*/
|
|
4530
|
+
'clubs': Array<QuickReservationClubSummary>;
|
|
4531
|
+
}
|
|
4532
|
+
/**
|
|
4533
|
+
*
|
|
4534
|
+
* @export
|
|
4535
|
+
* @interface QuickReservationSlotSummary
|
|
4536
|
+
*/
|
|
4537
|
+
export interface QuickReservationSlotSummary {
|
|
4538
|
+
/**
|
|
4539
|
+
* ID du créneau
|
|
4540
|
+
* @type {string}
|
|
4541
|
+
* @memberof QuickReservationSlotSummary
|
|
4542
|
+
*/
|
|
4543
|
+
'id': string;
|
|
4544
|
+
/**
|
|
4545
|
+
* Date de début ISO
|
|
4546
|
+
* @type {string}
|
|
4547
|
+
* @memberof QuickReservationSlotSummary
|
|
4548
|
+
*/
|
|
4549
|
+
'startDate': string;
|
|
4550
|
+
/**
|
|
4551
|
+
* Date de fin ISO
|
|
4552
|
+
* @type {string}
|
|
4553
|
+
* @memberof QuickReservationSlotSummary
|
|
4554
|
+
*/
|
|
4555
|
+
'endDate': string;
|
|
4556
|
+
/**
|
|
4557
|
+
* Durée du créneau en minutes
|
|
4558
|
+
* @type {number}
|
|
4559
|
+
* @memberof QuickReservationSlotSummary
|
|
4560
|
+
*/
|
|
4561
|
+
'durationMinutes': number;
|
|
4562
|
+
/**
|
|
4563
|
+
* ID du terrain
|
|
4564
|
+
* @type {string}
|
|
4565
|
+
* @memberof QuickReservationSlotSummary
|
|
4566
|
+
*/
|
|
4567
|
+
'courtId': string;
|
|
4568
|
+
/**
|
|
4569
|
+
* Nom du terrain
|
|
4570
|
+
* @type {string}
|
|
4571
|
+
* @memberof QuickReservationSlotSummary
|
|
4572
|
+
*/
|
|
4573
|
+
'courtName': string;
|
|
4574
|
+
/**
|
|
4575
|
+
* Indique si le terrain est en intérieur
|
|
4576
|
+
* @type {boolean}
|
|
4577
|
+
* @memberof QuickReservationSlotSummary
|
|
4578
|
+
*/
|
|
4579
|
+
'isIndoor': boolean;
|
|
4580
|
+
/**
|
|
4581
|
+
* Surface du terrain
|
|
4582
|
+
* @type {string}
|
|
4583
|
+
* @memberof QuickReservationSlotSummary
|
|
4584
|
+
*/
|
|
4585
|
+
'surface'?: string;
|
|
4586
|
+
/**
|
|
4587
|
+
* Prix horaire du terrain (en euros)
|
|
4588
|
+
* @type {number}
|
|
4589
|
+
* @memberof QuickReservationSlotSummary
|
|
4590
|
+
*/
|
|
4591
|
+
'pricePerHour'?: number;
|
|
4592
|
+
/**
|
|
4593
|
+
* Prix total estimé pour le créneau (en euros)
|
|
4594
|
+
* @type {number}
|
|
4595
|
+
* @memberof QuickReservationSlotSummary
|
|
4596
|
+
*/
|
|
4597
|
+
'totalPrice'?: number;
|
|
4598
|
+
/**
|
|
4599
|
+
* ID du sport associé
|
|
4600
|
+
* @type {string}
|
|
4601
|
+
* @memberof QuickReservationSlotSummary
|
|
4602
|
+
*/
|
|
4603
|
+
'sportId': string;
|
|
4604
|
+
/**
|
|
4605
|
+
* Clé du sport associé
|
|
4606
|
+
* @type {string}
|
|
4607
|
+
* @memberof QuickReservationSlotSummary
|
|
4608
|
+
*/
|
|
4609
|
+
'sportKey'?: string;
|
|
4610
|
+
}
|
|
4126
4611
|
/**
|
|
4127
4612
|
*
|
|
4128
4613
|
* @export
|
|
@@ -4484,7 +4969,42 @@ export interface SportInfo {
|
|
|
4484
4969
|
'key': string;
|
|
4485
4970
|
}
|
|
4486
4971
|
/**
|
|
4487
|
-
*
|
|
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
|
+
*
|
|
4488
5008
|
* @export
|
|
4489
5009
|
* @interface SportResponse
|
|
4490
5010
|
*/
|
|
@@ -4496,17 +5016,17 @@ export interface SportResponse {
|
|
|
4496
5016
|
*/
|
|
4497
5017
|
'id': string;
|
|
4498
5018
|
/**
|
|
4499
|
-
*
|
|
4500
|
-
* @type {
|
|
5019
|
+
*
|
|
5020
|
+
* @type {SportKey}
|
|
4501
5021
|
* @memberof SportResponse
|
|
4502
5022
|
*/
|
|
4503
|
-
'key':
|
|
5023
|
+
'key': SportKey;
|
|
4504
5024
|
/**
|
|
4505
|
-
* Nom du sport
|
|
5025
|
+
* Nom affiché du sport
|
|
4506
5026
|
* @type {string}
|
|
4507
5027
|
* @memberof SportResponse
|
|
4508
5028
|
*/
|
|
4509
|
-
'name'
|
|
5029
|
+
'name': string;
|
|
4510
5030
|
/**
|
|
4511
5031
|
* Description du sport
|
|
4512
5032
|
* @type {string}
|
|
@@ -4514,11 +5034,29 @@ export interface SportResponse {
|
|
|
4514
5034
|
*/
|
|
4515
5035
|
'description'?: string;
|
|
4516
5036
|
/**
|
|
4517
|
-
*
|
|
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
|
|
4518
5050
|
* @type {string}
|
|
4519
5051
|
* @memberof SportResponse
|
|
4520
5052
|
*/
|
|
4521
|
-
'
|
|
5053
|
+
'createdBy'?: string;
|
|
5054
|
+
/**
|
|
5055
|
+
* Sport vérifié/officiel (non modifiable)
|
|
5056
|
+
* @type {boolean}
|
|
5057
|
+
* @memberof SportResponse
|
|
5058
|
+
*/
|
|
5059
|
+
'verified': boolean;
|
|
4522
5060
|
/**
|
|
4523
5061
|
* Date de création
|
|
4524
5062
|
* @type {string}
|
|
@@ -4532,66 +5070,50 @@ export interface SportResponse {
|
|
|
4532
5070
|
*/
|
|
4533
5071
|
'updatedAt': string;
|
|
4534
5072
|
}
|
|
5073
|
+
|
|
5074
|
+
|
|
4535
5075
|
/**
|
|
4536
5076
|
*
|
|
4537
5077
|
* @export
|
|
4538
|
-
* @interface
|
|
5078
|
+
* @interface SportWithLevels
|
|
4539
5079
|
*/
|
|
4540
|
-
export interface
|
|
5080
|
+
export interface SportWithLevels {
|
|
4541
5081
|
/**
|
|
4542
|
-
*
|
|
5082
|
+
*
|
|
4543
5083
|
* @type {string}
|
|
4544
|
-
* @memberof
|
|
5084
|
+
* @memberof SportWithLevels
|
|
4545
5085
|
*/
|
|
4546
5086
|
'id': string;
|
|
4547
5087
|
/**
|
|
4548
|
-
*
|
|
5088
|
+
*
|
|
4549
5089
|
* @type {string}
|
|
4550
|
-
* @memberof
|
|
5090
|
+
* @memberof SportWithLevels
|
|
4551
5091
|
*/
|
|
4552
5092
|
'key': string;
|
|
4553
5093
|
/**
|
|
4554
|
-
*
|
|
5094
|
+
*
|
|
4555
5095
|
* @type {string}
|
|
4556
|
-
* @memberof
|
|
5096
|
+
* @memberof SportWithLevels
|
|
4557
5097
|
*/
|
|
4558
|
-
'name'
|
|
5098
|
+
'name': string;
|
|
4559
5099
|
/**
|
|
4560
|
-
*
|
|
5100
|
+
*
|
|
4561
5101
|
* @type {string}
|
|
4562
|
-
* @memberof
|
|
5102
|
+
* @memberof SportWithLevels
|
|
4563
5103
|
*/
|
|
4564
5104
|
'description'?: string;
|
|
4565
5105
|
/**
|
|
4566
|
-
*
|
|
4567
|
-
* @type {
|
|
4568
|
-
* @memberof
|
|
4569
|
-
*/
|
|
4570
|
-
'clubId': string;
|
|
4571
|
-
/**
|
|
4572
|
-
* Date de création
|
|
4573
|
-
* @type {string}
|
|
4574
|
-
* @memberof SportWithAnalytics
|
|
4575
|
-
*/
|
|
4576
|
-
'createdAt': string;
|
|
4577
|
-
/**
|
|
4578
|
-
* Date de dernière mise à jour
|
|
4579
|
-
* @type {string}
|
|
4580
|
-
* @memberof SportWithAnalytics
|
|
4581
|
-
*/
|
|
4582
|
-
'updatedAt': string;
|
|
4583
|
-
/**
|
|
4584
|
-
* Nombre de terrains pour ce sport
|
|
4585
|
-
* @type {number}
|
|
4586
|
-
* @memberof SportWithAnalytics
|
|
5106
|
+
*
|
|
5107
|
+
* @type {Array<SportLevel>}
|
|
5108
|
+
* @memberof SportWithLevels
|
|
4587
5109
|
*/
|
|
4588
|
-
'
|
|
5110
|
+
'levels'?: Array<SportLevel>;
|
|
4589
5111
|
/**
|
|
4590
|
-
*
|
|
4591
|
-
* @type {
|
|
4592
|
-
* @memberof
|
|
5112
|
+
*
|
|
5113
|
+
* @type {Array<string>}
|
|
5114
|
+
* @memberof SportWithLevels
|
|
4593
5115
|
*/
|
|
4594
|
-
'
|
|
5116
|
+
'logos'?: Array<string>;
|
|
4595
5117
|
}
|
|
4596
5118
|
/**
|
|
4597
5119
|
*
|
|
@@ -6085,6 +6607,25 @@ export interface SubscribeRequestBody {
|
|
|
6085
6607
|
*/
|
|
6086
6608
|
'priceId': string;
|
|
6087
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
|
+
}
|
|
6088
6629
|
/**
|
|
6089
6630
|
*
|
|
6090
6631
|
* @export
|
|
@@ -6170,6 +6711,25 @@ export const SurfaceType = {
|
|
|
6170
6711
|
export type SurfaceType = typeof SurfaceType[keyof typeof SurfaceType];
|
|
6171
6712
|
|
|
6172
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
|
+
}
|
|
6173
6733
|
/**
|
|
6174
6734
|
*
|
|
6175
6735
|
* @export
|
|
@@ -6403,6 +6963,150 @@ export interface UpdateCustomerResponse {
|
|
|
6403
6963
|
*/
|
|
6404
6964
|
'customer': { [key: string]: any; };
|
|
6405
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
|
+
|
|
6406
7110
|
/**
|
|
6407
7111
|
*
|
|
6408
7112
|
* @export
|
|
@@ -6442,12 +7146,38 @@ export interface UpdatePlanRequest {
|
|
|
6442
7146
|
*/
|
|
6443
7147
|
export interface UpdateSportRequest {
|
|
6444
7148
|
/**
|
|
6445
|
-
*
|
|
7149
|
+
*
|
|
7150
|
+
* @type {SportKey}
|
|
7151
|
+
* @memberof UpdateSportRequest
|
|
7152
|
+
*/
|
|
7153
|
+
'key'?: SportKey;
|
|
7154
|
+
/**
|
|
7155
|
+
* Nom affiché du sport
|
|
6446
7156
|
* @type {string}
|
|
6447
7157
|
* @memberof UpdateSportRequest
|
|
6448
7158
|
*/
|
|
6449
|
-
'
|
|
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>;
|
|
6450
7178
|
}
|
|
7179
|
+
|
|
7180
|
+
|
|
6451
7181
|
/**
|
|
6452
7182
|
*
|
|
6453
7183
|
* @export
|
|
@@ -6652,6 +7382,18 @@ export interface UserInfo {
|
|
|
6652
7382
|
* @memberof UserInfo
|
|
6653
7383
|
*/
|
|
6654
7384
|
'lastName': string;
|
|
7385
|
+
/**
|
|
7386
|
+
*
|
|
7387
|
+
* @type {string}
|
|
7388
|
+
* @memberof UserInfo
|
|
7389
|
+
*/
|
|
7390
|
+
'email': string;
|
|
7391
|
+
/**
|
|
7392
|
+
*
|
|
7393
|
+
* @type {string}
|
|
7394
|
+
* @memberof UserInfo
|
|
7395
|
+
*/
|
|
7396
|
+
'profilePictureUrl'?: string;
|
|
6655
7397
|
}
|
|
6656
7398
|
/**
|
|
6657
7399
|
*
|
|
@@ -7087,6 +7829,85 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
7087
7829
|
|
|
7088
7830
|
|
|
7089
7831
|
|
|
7832
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7833
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7834
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7835
|
+
|
|
7836
|
+
return {
|
|
7837
|
+
url: toPathString(localVarUrlObj),
|
|
7838
|
+
options: localVarRequestOptions,
|
|
7839
|
+
};
|
|
7840
|
+
},
|
|
7841
|
+
/**
|
|
7842
|
+
* Recherche des créneaux disponibles pour une réservation rapide
|
|
7843
|
+
* @param {number} [latitude]
|
|
7844
|
+
* @param {number} [longitude]
|
|
7845
|
+
* @param {number} [radiusInKm]
|
|
7846
|
+
* @param {string} [date]
|
|
7847
|
+
* @param {string} [sportId]
|
|
7848
|
+
* @param {string} [startTime]
|
|
7849
|
+
* @param {number} [priceMax]
|
|
7850
|
+
* @param {string} [courtTypes]
|
|
7851
|
+
* @param {number} [limitPerClub]
|
|
7852
|
+
* @param {number} [maxClubs]
|
|
7853
|
+
* @param {*} [options] Override http request option.
|
|
7854
|
+
* @throws {RequiredError}
|
|
7855
|
+
*/
|
|
7856
|
+
getQuickReservationSlots: async (latitude?: number, longitude?: number, radiusInKm?: number, date?: string, sportId?: string, startTime?: string, priceMax?: number, courtTypes?: string, limitPerClub?: number, maxClubs?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7857
|
+
const localVarPath = `/api/bookings/quick-reservations`;
|
|
7858
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7859
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7860
|
+
let baseOptions;
|
|
7861
|
+
if (configuration) {
|
|
7862
|
+
baseOptions = configuration.baseOptions;
|
|
7863
|
+
}
|
|
7864
|
+
|
|
7865
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
7866
|
+
const localVarHeaderParameter = {} as any;
|
|
7867
|
+
const localVarQueryParameter = {} as any;
|
|
7868
|
+
|
|
7869
|
+
if (latitude !== undefined) {
|
|
7870
|
+
localVarQueryParameter['latitude'] = latitude;
|
|
7871
|
+
}
|
|
7872
|
+
|
|
7873
|
+
if (longitude !== undefined) {
|
|
7874
|
+
localVarQueryParameter['longitude'] = longitude;
|
|
7875
|
+
}
|
|
7876
|
+
|
|
7877
|
+
if (radiusInKm !== undefined) {
|
|
7878
|
+
localVarQueryParameter['radiusInKm'] = radiusInKm;
|
|
7879
|
+
}
|
|
7880
|
+
|
|
7881
|
+
if (date !== undefined) {
|
|
7882
|
+
localVarQueryParameter['date'] = date;
|
|
7883
|
+
}
|
|
7884
|
+
|
|
7885
|
+
if (sportId !== undefined) {
|
|
7886
|
+
localVarQueryParameter['sportId'] = sportId;
|
|
7887
|
+
}
|
|
7888
|
+
|
|
7889
|
+
if (startTime !== undefined) {
|
|
7890
|
+
localVarQueryParameter['startTime'] = startTime;
|
|
7891
|
+
}
|
|
7892
|
+
|
|
7893
|
+
if (priceMax !== undefined) {
|
|
7894
|
+
localVarQueryParameter['priceMax'] = priceMax;
|
|
7895
|
+
}
|
|
7896
|
+
|
|
7897
|
+
if (courtTypes !== undefined) {
|
|
7898
|
+
localVarQueryParameter['courtTypes'] = courtTypes;
|
|
7899
|
+
}
|
|
7900
|
+
|
|
7901
|
+
if (limitPerClub !== undefined) {
|
|
7902
|
+
localVarQueryParameter['limitPerClub'] = limitPerClub;
|
|
7903
|
+
}
|
|
7904
|
+
|
|
7905
|
+
if (maxClubs !== undefined) {
|
|
7906
|
+
localVarQueryParameter['maxClubs'] = maxClubs;
|
|
7907
|
+
}
|
|
7908
|
+
|
|
7909
|
+
|
|
7910
|
+
|
|
7090
7911
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7091
7912
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7092
7913
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -7112,12 +7933,33 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
7112
7933
|
* @param {*} [options] Override http request option.
|
|
7113
7934
|
* @throws {RequiredError}
|
|
7114
7935
|
*/
|
|
7115
|
-
async getBookingHistory(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
7936
|
+
async getBookingHistory(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingHistoryPopulated>> {
|
|
7116
7937
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingHistory(bookingId, options);
|
|
7117
7938
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7118
7939
|
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingHistory']?.[localVarOperationServerIndex]?.url;
|
|
7119
7940
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7120
7941
|
},
|
|
7942
|
+
/**
|
|
7943
|
+
* Recherche des créneaux disponibles pour une réservation rapide
|
|
7944
|
+
* @param {number} [latitude]
|
|
7945
|
+
* @param {number} [longitude]
|
|
7946
|
+
* @param {number} [radiusInKm]
|
|
7947
|
+
* @param {string} [date]
|
|
7948
|
+
* @param {string} [sportId]
|
|
7949
|
+
* @param {string} [startTime]
|
|
7950
|
+
* @param {number} [priceMax]
|
|
7951
|
+
* @param {string} [courtTypes]
|
|
7952
|
+
* @param {number} [limitPerClub]
|
|
7953
|
+
* @param {number} [maxClubs]
|
|
7954
|
+
* @param {*} [options] Override http request option.
|
|
7955
|
+
* @throws {RequiredError}
|
|
7956
|
+
*/
|
|
7957
|
+
async getQuickReservationSlots(latitude?: number, longitude?: number, radiusInKm?: number, date?: string, sportId?: string, startTime?: string, priceMax?: number, courtTypes?: string, limitPerClub?: number, maxClubs?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuickReservationResponse>> {
|
|
7958
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options);
|
|
7959
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7960
|
+
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getQuickReservationSlots']?.[localVarOperationServerIndex]?.url;
|
|
7961
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7962
|
+
},
|
|
7121
7963
|
}
|
|
7122
7964
|
};
|
|
7123
7965
|
|
|
@@ -7134,9 +7976,18 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
7134
7976
|
* @param {*} [options] Override http request option.
|
|
7135
7977
|
* @throws {RequiredError}
|
|
7136
7978
|
*/
|
|
7137
|
-
getBookingHistory(requestParameters: BookingsApiGetBookingHistoryRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
7979
|
+
getBookingHistory(requestParameters: BookingsApiGetBookingHistoryRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingHistoryPopulated> {
|
|
7138
7980
|
return localVarFp.getBookingHistory(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
7139
7981
|
},
|
|
7982
|
+
/**
|
|
7983
|
+
* Recherche des créneaux disponibles pour une réservation rapide
|
|
7984
|
+
* @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
|
|
7985
|
+
* @param {*} [options] Override http request option.
|
|
7986
|
+
* @throws {RequiredError}
|
|
7987
|
+
*/
|
|
7988
|
+
getQuickReservationSlots(requestParameters: BookingsApiGetQuickReservationSlotsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<QuickReservationResponse> {
|
|
7989
|
+
return localVarFp.getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(axios, basePath));
|
|
7990
|
+
},
|
|
7140
7991
|
};
|
|
7141
7992
|
};
|
|
7142
7993
|
|
|
@@ -7149,9 +8000,86 @@ export interface BookingsApiGetBookingHistoryRequest {
|
|
|
7149
8000
|
/**
|
|
7150
8001
|
*
|
|
7151
8002
|
* @type {string}
|
|
7152
|
-
* @memberof BookingsApiGetBookingHistory
|
|
8003
|
+
* @memberof BookingsApiGetBookingHistory
|
|
8004
|
+
*/
|
|
8005
|
+
readonly bookingId: string
|
|
8006
|
+
}
|
|
8007
|
+
|
|
8008
|
+
/**
|
|
8009
|
+
* Request parameters for getQuickReservationSlots operation in BookingsApi.
|
|
8010
|
+
* @export
|
|
8011
|
+
* @interface BookingsApiGetQuickReservationSlotsRequest
|
|
8012
|
+
*/
|
|
8013
|
+
export interface BookingsApiGetQuickReservationSlotsRequest {
|
|
8014
|
+
/**
|
|
8015
|
+
*
|
|
8016
|
+
* @type {number}
|
|
8017
|
+
* @memberof BookingsApiGetQuickReservationSlots
|
|
8018
|
+
*/
|
|
8019
|
+
readonly latitude?: number
|
|
8020
|
+
|
|
8021
|
+
/**
|
|
8022
|
+
*
|
|
8023
|
+
* @type {number}
|
|
8024
|
+
* @memberof BookingsApiGetQuickReservationSlots
|
|
8025
|
+
*/
|
|
8026
|
+
readonly longitude?: number
|
|
8027
|
+
|
|
8028
|
+
/**
|
|
8029
|
+
*
|
|
8030
|
+
* @type {number}
|
|
8031
|
+
* @memberof BookingsApiGetQuickReservationSlots
|
|
8032
|
+
*/
|
|
8033
|
+
readonly radiusInKm?: number
|
|
8034
|
+
|
|
8035
|
+
/**
|
|
8036
|
+
*
|
|
8037
|
+
* @type {string}
|
|
8038
|
+
* @memberof BookingsApiGetQuickReservationSlots
|
|
8039
|
+
*/
|
|
8040
|
+
readonly date?: string
|
|
8041
|
+
|
|
8042
|
+
/**
|
|
8043
|
+
*
|
|
8044
|
+
* @type {string}
|
|
8045
|
+
* @memberof BookingsApiGetQuickReservationSlots
|
|
8046
|
+
*/
|
|
8047
|
+
readonly sportId?: string
|
|
8048
|
+
|
|
8049
|
+
/**
|
|
8050
|
+
*
|
|
8051
|
+
* @type {string}
|
|
8052
|
+
* @memberof BookingsApiGetQuickReservationSlots
|
|
8053
|
+
*/
|
|
8054
|
+
readonly startTime?: string
|
|
8055
|
+
|
|
8056
|
+
/**
|
|
8057
|
+
*
|
|
8058
|
+
* @type {number}
|
|
8059
|
+
* @memberof BookingsApiGetQuickReservationSlots
|
|
8060
|
+
*/
|
|
8061
|
+
readonly priceMax?: number
|
|
8062
|
+
|
|
8063
|
+
/**
|
|
8064
|
+
*
|
|
8065
|
+
* @type {string}
|
|
8066
|
+
* @memberof BookingsApiGetQuickReservationSlots
|
|
7153
8067
|
*/
|
|
7154
|
-
readonly
|
|
8068
|
+
readonly courtTypes?: string
|
|
8069
|
+
|
|
8070
|
+
/**
|
|
8071
|
+
*
|
|
8072
|
+
* @type {number}
|
|
8073
|
+
* @memberof BookingsApiGetQuickReservationSlots
|
|
8074
|
+
*/
|
|
8075
|
+
readonly limitPerClub?: number
|
|
8076
|
+
|
|
8077
|
+
/**
|
|
8078
|
+
*
|
|
8079
|
+
* @type {number}
|
|
8080
|
+
* @memberof BookingsApiGetQuickReservationSlots
|
|
8081
|
+
*/
|
|
8082
|
+
readonly maxClubs?: number
|
|
7155
8083
|
}
|
|
7156
8084
|
|
|
7157
8085
|
/**
|
|
@@ -7171,6 +8099,17 @@ export class BookingsApi extends BaseAPI {
|
|
|
7171
8099
|
public getBookingHistory(requestParameters: BookingsApiGetBookingHistoryRequest, options?: RawAxiosRequestConfig) {
|
|
7172
8100
|
return BookingsApiFp(this.configuration).getBookingHistory(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
7173
8101
|
}
|
|
8102
|
+
|
|
8103
|
+
/**
|
|
8104
|
+
* Recherche des créneaux disponibles pour une réservation rapide
|
|
8105
|
+
* @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
|
|
8106
|
+
* @param {*} [options] Override http request option.
|
|
8107
|
+
* @throws {RequiredError}
|
|
8108
|
+
* @memberof BookingsApi
|
|
8109
|
+
*/
|
|
8110
|
+
public getQuickReservationSlots(requestParameters: BookingsApiGetQuickReservationSlotsRequest = {}, options?: RawAxiosRequestConfig) {
|
|
8111
|
+
return BookingsApiFp(this.configuration).getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(this.axios, this.basePath));
|
|
8112
|
+
}
|
|
7174
8113
|
}
|
|
7175
8114
|
|
|
7176
8115
|
|
|
@@ -7401,7 +8340,7 @@ export class BookingsManagerApi extends BaseAPI {
|
|
|
7401
8340
|
export const BookingsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
7402
8341
|
return {
|
|
7403
8342
|
/**
|
|
7404
|
-
* Check-in des joueurs
|
|
8343
|
+
* Check-in des joueurs only for club with payment features
|
|
7405
8344
|
* @param {string} bookingId
|
|
7406
8345
|
* @param {CheckInPlayersRequest} checkInPlayersRequest
|
|
7407
8346
|
* @param {*} [options] Override http request option.
|
|
@@ -7639,7 +8578,7 @@ export const BookingsStaffApiFp = function(configuration?: Configuration) {
|
|
|
7639
8578
|
const localVarAxiosParamCreator = BookingsStaffApiAxiosParamCreator(configuration)
|
|
7640
8579
|
return {
|
|
7641
8580
|
/**
|
|
7642
|
-
* Check-in des joueurs
|
|
8581
|
+
* Check-in des joueurs only for club with payment features
|
|
7643
8582
|
* @param {string} bookingId
|
|
7644
8583
|
* @param {CheckInPlayersRequest} checkInPlayersRequest
|
|
7645
8584
|
* @param {*} [options] Override http request option.
|
|
@@ -7669,7 +8608,7 @@ export const BookingsStaffApiFp = function(configuration?: Configuration) {
|
|
|
7669
8608
|
* @param {*} [options] Override http request option.
|
|
7670
8609
|
* @throws {RequiredError}
|
|
7671
8610
|
*/
|
|
7672
|
-
async getBookingHistoryStaff(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
8611
|
+
async getBookingHistoryStaff(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingHistoryPopulated>> {
|
|
7673
8612
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingHistoryStaff(bookingId, options);
|
|
7674
8613
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7675
8614
|
const localVarOperationServerBasePath = operationServerMap['BookingsStaffApi.getBookingHistoryStaff']?.[localVarOperationServerIndex]?.url;
|
|
@@ -7722,7 +8661,7 @@ export const BookingsStaffApiFactory = function (configuration?: Configuration,
|
|
|
7722
8661
|
const localVarFp = BookingsStaffApiFp(configuration)
|
|
7723
8662
|
return {
|
|
7724
8663
|
/**
|
|
7725
|
-
* Check-in des joueurs
|
|
8664
|
+
* Check-in des joueurs only for club with payment features
|
|
7726
8665
|
* @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
|
|
7727
8666
|
* @param {*} [options] Override http request option.
|
|
7728
8667
|
* @throws {RequiredError}
|
|
@@ -7745,7 +8684,7 @@ export const BookingsStaffApiFactory = function (configuration?: Configuration,
|
|
|
7745
8684
|
* @param {*} [options] Override http request option.
|
|
7746
8685
|
* @throws {RequiredError}
|
|
7747
8686
|
*/
|
|
7748
|
-
getBookingHistoryStaff(requestParameters: BookingsStaffApiGetBookingHistoryStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
8687
|
+
getBookingHistoryStaff(requestParameters: BookingsStaffApiGetBookingHistoryStaffRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingHistoryPopulated> {
|
|
7749
8688
|
return localVarFp.getBookingHistoryStaff(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
7750
8689
|
},
|
|
7751
8690
|
/**
|
|
@@ -7877,7 +8816,7 @@ export interface BookingsStaffApiGetWeeklyBookingsRequest {
|
|
|
7877
8816
|
*/
|
|
7878
8817
|
export class BookingsStaffApi extends BaseAPI {
|
|
7879
8818
|
/**
|
|
7880
|
-
* Check-in des joueurs
|
|
8819
|
+
* Check-in des joueurs only for club with payment features
|
|
7881
8820
|
* @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
|
|
7882
8821
|
* @param {*} [options] Override http request option.
|
|
7883
8822
|
* @throws {RequiredError}
|
|
@@ -10566,7 +11505,7 @@ export const ClubsApiFp = function(configuration?: Configuration) {
|
|
|
10566
11505
|
* @param {*} [options] Override http request option.
|
|
10567
11506
|
* @throws {RequiredError}
|
|
10568
11507
|
*/
|
|
10569
|
-
async getSportsByClubById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
11508
|
+
async getSportsByClubById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SportResponse>>> {
|
|
10570
11509
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getSportsByClubById(id, options);
|
|
10571
11510
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10572
11511
|
const localVarOperationServerBasePath = operationServerMap['ClubsApi.getSportsByClubById']?.[localVarOperationServerIndex]?.url;
|
|
@@ -10683,7 +11622,7 @@ export const ClubsApiFactory = function (configuration?: Configuration, basePath
|
|
|
10683
11622
|
* @param {*} [options] Override http request option.
|
|
10684
11623
|
* @throws {RequiredError}
|
|
10685
11624
|
*/
|
|
10686
|
-
getSportsByClubById(requestParameters: ClubsApiGetSportsByClubByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
11625
|
+
getSportsByClubById(requestParameters: ClubsApiGetSportsByClubByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<SportResponse>> {
|
|
10687
11626
|
return localVarFp.getSportsByClubById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
10688
11627
|
},
|
|
10689
11628
|
};
|
|
@@ -13167,13 +14106,49 @@ export class DefaultApi extends BaseAPI {
|
|
|
13167
14106
|
*/
|
|
13168
14107
|
export const EventsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
13169
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
|
+
},
|
|
13170
14142
|
/**
|
|
13171
14143
|
* Get all published events for a club
|
|
13172
14144
|
* @param {string} [clubId]
|
|
14145
|
+
* @param {GetPublishedEventsByClubIdVisibilityTypeEnum} [visibilityType]
|
|
14146
|
+
* @param {GetPublishedEventsByClubIdTypeEnum} [type]
|
|
14147
|
+
* @param {string} [sportId]
|
|
13173
14148
|
* @param {*} [options] Override http request option.
|
|
13174
14149
|
* @throws {RequiredError}
|
|
13175
14150
|
*/
|
|
13176
|
-
getPublishedEventsByClubId: async (clubId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14151
|
+
getPublishedEventsByClubId: async (clubId?: string, visibilityType?: GetPublishedEventsByClubIdVisibilityTypeEnum, type?: GetPublishedEventsByClubIdTypeEnum, sportId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13177
14152
|
const localVarPath = `/api/events`;
|
|
13178
14153
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13179
14154
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -13190,6 +14165,18 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
13190
14165
|
localVarQueryParameter['clubId'] = clubId;
|
|
13191
14166
|
}
|
|
13192
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
|
+
|
|
13193
14180
|
|
|
13194
14181
|
|
|
13195
14182
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -13202,18 +14189,18 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
13202
14189
|
};
|
|
13203
14190
|
},
|
|
13204
14191
|
/**
|
|
13205
|
-
*
|
|
14192
|
+
* Join an event (user)
|
|
13206
14193
|
* @param {string} eventId
|
|
13207
|
-
* @param {
|
|
14194
|
+
* @param {JoinEventRequest} joinEventRequest
|
|
13208
14195
|
* @param {*} [options] Override http request option.
|
|
13209
14196
|
* @throws {RequiredError}
|
|
13210
14197
|
*/
|
|
13211
|
-
|
|
14198
|
+
joinEvent: async (eventId: string, joinEventRequest: JoinEventRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13212
14199
|
// verify required parameter 'eventId' is not null or undefined
|
|
13213
|
-
assertParamExists('
|
|
13214
|
-
// verify required parameter '
|
|
13215
|
-
assertParamExists('
|
|
13216
|
-
const localVarPath = `/api/events/{eventId}/
|
|
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`
|
|
13217
14204
|
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
13218
14205
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13219
14206
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -13237,7 +14224,44 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
13237
14224
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13238
14225
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13239
14226
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13240
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
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};
|
|
13241
14265
|
|
|
13242
14266
|
return {
|
|
13243
14267
|
url: toPathString(localVarUrlObj),
|
|
@@ -13254,29 +14278,56 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
13254
14278
|
export const EventsApiFp = function(configuration?: Configuration) {
|
|
13255
14279
|
const localVarAxiosParamCreator = EventsApiAxiosParamCreator(configuration)
|
|
13256
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
|
+
},
|
|
13257
14293
|
/**
|
|
13258
14294
|
* Get all published events for a club
|
|
13259
14295
|
* @param {string} [clubId]
|
|
14296
|
+
* @param {GetPublishedEventsByClubIdVisibilityTypeEnum} [visibilityType]
|
|
14297
|
+
* @param {GetPublishedEventsByClubIdTypeEnum} [type]
|
|
14298
|
+
* @param {string} [sportId]
|
|
13260
14299
|
* @param {*} [options] Override http request option.
|
|
13261
14300
|
* @throws {RequiredError}
|
|
13262
14301
|
*/
|
|
13263
|
-
async getPublishedEventsByClubId(clubId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsListResponse>> {
|
|
13264
|
-
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);
|
|
13265
14304
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13266
14305
|
const localVarOperationServerBasePath = operationServerMap['EventsApi.getPublishedEventsByClubId']?.[localVarOperationServerIndex]?.url;
|
|
13267
14306
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13268
14307
|
},
|
|
13269
14308
|
/**
|
|
13270
|
-
*
|
|
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)
|
|
13271
14323
|
* @param {string} eventId
|
|
13272
|
-
* @param {any} body
|
|
13273
14324
|
* @param {*} [options] Override http request option.
|
|
13274
14325
|
* @throws {RequiredError}
|
|
13275
14326
|
*/
|
|
13276
|
-
async
|
|
13277
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
14327
|
+
async leaveEvent(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JoinEventResponse>> {
|
|
14328
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.leaveEvent(eventId, options);
|
|
13278
14329
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13279
|
-
const localVarOperationServerBasePath = operationServerMap['EventsApi.
|
|
14330
|
+
const localVarOperationServerBasePath = operationServerMap['EventsApi.leaveEvent']?.[localVarOperationServerIndex]?.url;
|
|
13280
14331
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13281
14332
|
},
|
|
13282
14333
|
}
|
|
@@ -13289,6 +14340,15 @@ export const EventsApiFp = function(configuration?: Configuration) {
|
|
|
13289
14340
|
export const EventsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
13290
14341
|
const localVarFp = EventsApiFp(configuration)
|
|
13291
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
|
+
},
|
|
13292
14352
|
/**
|
|
13293
14353
|
* Get all published events for a club
|
|
13294
14354
|
* @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
|
|
@@ -13296,20 +14356,43 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
|
|
|
13296
14356
|
* @throws {RequiredError}
|
|
13297
14357
|
*/
|
|
13298
14358
|
getPublishedEventsByClubId(requestParameters: EventsApiGetPublishedEventsByClubIdRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse> {
|
|
13299
|
-
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));
|
|
13300
14369
|
},
|
|
13301
14370
|
/**
|
|
13302
|
-
*
|
|
13303
|
-
* @param {
|
|
14371
|
+
* Leave an event (user)
|
|
14372
|
+
* @param {EventsApiLeaveEventRequest} requestParameters Request parameters.
|
|
13304
14373
|
* @param {*} [options] Override http request option.
|
|
13305
14374
|
* @throws {RequiredError}
|
|
13306
14375
|
*/
|
|
13307
|
-
|
|
13308
|
-
return localVarFp.
|
|
14376
|
+
leaveEvent(requestParameters: EventsApiLeaveEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<JoinEventResponse> {
|
|
14377
|
+
return localVarFp.leaveEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
13309
14378
|
},
|
|
13310
14379
|
};
|
|
13311
14380
|
};
|
|
13312
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
|
+
|
|
13313
14396
|
/**
|
|
13314
14397
|
* Request parameters for getPublishedEventsByClubId operation in EventsApi.
|
|
13315
14398
|
* @export
|
|
@@ -13322,27 +14405,62 @@ export interface EventsApiGetPublishedEventsByClubIdRequest {
|
|
|
13322
14405
|
* @memberof EventsApiGetPublishedEventsByClubId
|
|
13323
14406
|
*/
|
|
13324
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
|
|
13325
14429
|
}
|
|
13326
14430
|
|
|
13327
14431
|
/**
|
|
13328
|
-
* Request parameters for
|
|
14432
|
+
* Request parameters for joinEvent operation in EventsApi.
|
|
13329
14433
|
* @export
|
|
13330
|
-
* @interface
|
|
14434
|
+
* @interface EventsApiJoinEventRequest
|
|
13331
14435
|
*/
|
|
13332
|
-
export interface
|
|
14436
|
+
export interface EventsApiJoinEventRequest {
|
|
13333
14437
|
/**
|
|
13334
14438
|
*
|
|
13335
14439
|
* @type {string}
|
|
13336
|
-
* @memberof
|
|
14440
|
+
* @memberof EventsApiJoinEvent
|
|
13337
14441
|
*/
|
|
13338
14442
|
readonly eventId: string
|
|
13339
14443
|
|
|
13340
14444
|
/**
|
|
13341
14445
|
*
|
|
13342
|
-
* @type {
|
|
13343
|
-
* @memberof
|
|
14446
|
+
* @type {JoinEventRequest}
|
|
14447
|
+
* @memberof EventsApiJoinEvent
|
|
13344
14448
|
*/
|
|
13345
|
-
readonly
|
|
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
|
|
13346
14464
|
}
|
|
13347
14465
|
|
|
13348
14466
|
/**
|
|
@@ -13352,6 +14470,17 @@ export interface EventsApiRegisterForEventRequest {
|
|
|
13352
14470
|
* @extends {BaseAPI}
|
|
13353
14471
|
*/
|
|
13354
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
|
+
|
|
13355
14484
|
/**
|
|
13356
14485
|
* Get all published events for a club
|
|
13357
14486
|
* @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
|
|
@@ -13360,21 +14489,49 @@ export class EventsApi extends BaseAPI {
|
|
|
13360
14489
|
* @memberof EventsApi
|
|
13361
14490
|
*/
|
|
13362
14491
|
public getPublishedEventsByClubId(requestParameters: EventsApiGetPublishedEventsByClubIdRequest = {}, options?: RawAxiosRequestConfig) {
|
|
13363
|
-
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));
|
|
13364
14504
|
}
|
|
13365
14505
|
|
|
13366
14506
|
/**
|
|
13367
|
-
*
|
|
13368
|
-
* @param {
|
|
14507
|
+
* Leave an event (user)
|
|
14508
|
+
* @param {EventsApiLeaveEventRequest} requestParameters Request parameters.
|
|
13369
14509
|
* @param {*} [options] Override http request option.
|
|
13370
14510
|
* @throws {RequiredError}
|
|
13371
14511
|
* @memberof EventsApi
|
|
13372
14512
|
*/
|
|
13373
|
-
public
|
|
13374
|
-
return EventsApiFp(this.configuration).
|
|
14513
|
+
public leaveEvent(requestParameters: EventsApiLeaveEventRequest, options?: RawAxiosRequestConfig) {
|
|
14514
|
+
return EventsApiFp(this.configuration).leaveEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
13375
14515
|
}
|
|
13376
14516
|
}
|
|
13377
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];
|
|
13378
14535
|
|
|
13379
14536
|
|
|
13380
14537
|
/**
|
|
@@ -13528,6 +14685,49 @@ export const EventsManagerApiAxiosParamCreator = function (configuration?: Confi
|
|
|
13528
14685
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13529
14686
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13530
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
|
+
|
|
13531
14731
|
return {
|
|
13532
14732
|
url: toPathString(localVarUrlObj),
|
|
13533
14733
|
options: localVarRequestOptions,
|
|
@@ -13591,6 +14791,19 @@ export const EventsManagerApiFp = function(configuration?: Configuration) {
|
|
|
13591
14791
|
const localVarOperationServerBasePath = operationServerMap['EventsManagerApi.unpublishEvent']?.[localVarOperationServerIndex]?.url;
|
|
13592
14792
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13593
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
|
+
},
|
|
13594
14807
|
}
|
|
13595
14808
|
};
|
|
13596
14809
|
|
|
@@ -13637,6 +14850,15 @@ export const EventsManagerApiFactory = function (configuration?: Configuration,
|
|
|
13637
14850
|
unpublishEvent(requestParameters: EventsManagerApiUnpublishEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse> {
|
|
13638
14851
|
return localVarFp.unpublishEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
13639
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
|
+
},
|
|
13640
14862
|
};
|
|
13641
14863
|
};
|
|
13642
14864
|
|
|
@@ -13696,6 +14918,27 @@ export interface EventsManagerApiUnpublishEventRequest {
|
|
|
13696
14918
|
readonly eventId: string
|
|
13697
14919
|
}
|
|
13698
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
|
+
|
|
13699
14942
|
/**
|
|
13700
14943
|
* EventsManagerApi - object-oriented interface
|
|
13701
14944
|
* @export
|
|
@@ -13746,6 +14989,17 @@ export class EventsManagerApi extends BaseAPI {
|
|
|
13746
14989
|
public unpublishEvent(requestParameters: EventsManagerApiUnpublishEventRequest, options?: RawAxiosRequestConfig) {
|
|
13747
14990
|
return EventsManagerApiFp(this.configuration).unpublishEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
13748
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
|
+
}
|
|
13749
15003
|
}
|
|
13750
15004
|
|
|
13751
15005
|
|
|
@@ -13858,7 +15112,7 @@ export class EventsStaffApi extends BaseAPI {
|
|
|
13858
15112
|
export const SportsManagerApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
13859
15113
|
return {
|
|
13860
15114
|
/**
|
|
13861
|
-
* Crée un sport
|
|
15115
|
+
* Crée un sport (global) avec createdBy = clubId de l\'utilisateur
|
|
13862
15116
|
* @param {CreateSportRequest} createSportRequest
|
|
13863
15117
|
* @param {*} [options] Override http request option.
|
|
13864
15118
|
* @throws {RequiredError}
|
|
@@ -13897,7 +15151,7 @@ export const SportsManagerApiAxiosParamCreator = function (configuration?: Confi
|
|
|
13897
15151
|
};
|
|
13898
15152
|
},
|
|
13899
15153
|
/**
|
|
13900
|
-
* Supprime un sport
|
|
15154
|
+
* Supprime un sport (interdit si vérifié)
|
|
13901
15155
|
* @param {string} id
|
|
13902
15156
|
* @param {*} [options] Override http request option.
|
|
13903
15157
|
* @throws {RequiredError}
|
|
@@ -13934,7 +15188,7 @@ export const SportsManagerApiAxiosParamCreator = function (configuration?: Confi
|
|
|
13934
15188
|
};
|
|
13935
15189
|
},
|
|
13936
15190
|
/**
|
|
13937
|
-
* Met à jour un sport
|
|
15191
|
+
* Met à jour un sport (interdit si vérifié)
|
|
13938
15192
|
* @param {string} id
|
|
13939
15193
|
* @param {UpdateSportRequest} updateSportRequest
|
|
13940
15194
|
* @param {*} [options] Override http request option.
|
|
@@ -13987,7 +15241,7 @@ export const SportsManagerApiFp = function(configuration?: Configuration) {
|
|
|
13987
15241
|
const localVarAxiosParamCreator = SportsManagerApiAxiosParamCreator(configuration)
|
|
13988
15242
|
return {
|
|
13989
15243
|
/**
|
|
13990
|
-
* Crée un sport
|
|
15244
|
+
* Crée un sport (global) avec createdBy = clubId de l\'utilisateur
|
|
13991
15245
|
* @param {CreateSportRequest} createSportRequest
|
|
13992
15246
|
* @param {*} [options] Override http request option.
|
|
13993
15247
|
* @throws {RequiredError}
|
|
@@ -13999,7 +15253,7 @@ export const SportsManagerApiFp = function(configuration?: Configuration) {
|
|
|
13999
15253
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14000
15254
|
},
|
|
14001
15255
|
/**
|
|
14002
|
-
* Supprime un sport
|
|
15256
|
+
* Supprime un sport (interdit si vérifié)
|
|
14003
15257
|
* @param {string} id
|
|
14004
15258
|
* @param {*} [options] Override http request option.
|
|
14005
15259
|
* @throws {RequiredError}
|
|
@@ -14011,7 +15265,7 @@ export const SportsManagerApiFp = function(configuration?: Configuration) {
|
|
|
14011
15265
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14012
15266
|
},
|
|
14013
15267
|
/**
|
|
14014
|
-
* Met à jour un sport
|
|
15268
|
+
* Met à jour un sport (interdit si vérifié)
|
|
14015
15269
|
* @param {string} id
|
|
14016
15270
|
* @param {UpdateSportRequest} updateSportRequest
|
|
14017
15271
|
* @param {*} [options] Override http request option.
|
|
@@ -14034,7 +15288,7 @@ export const SportsManagerApiFactory = function (configuration?: Configuration,
|
|
|
14034
15288
|
const localVarFp = SportsManagerApiFp(configuration)
|
|
14035
15289
|
return {
|
|
14036
15290
|
/**
|
|
14037
|
-
* Crée un sport
|
|
15291
|
+
* Crée un sport (global) avec createdBy = clubId de l\'utilisateur
|
|
14038
15292
|
* @param {SportsManagerApiCreateSportRequest} requestParameters Request parameters.
|
|
14039
15293
|
* @param {*} [options] Override http request option.
|
|
14040
15294
|
* @throws {RequiredError}
|
|
@@ -14043,7 +15297,7 @@ export const SportsManagerApiFactory = function (configuration?: Configuration,
|
|
|
14043
15297
|
return localVarFp.createSport(requestParameters.createSportRequest, options).then((request) => request(axios, basePath));
|
|
14044
15298
|
},
|
|
14045
15299
|
/**
|
|
14046
|
-
* Supprime un sport
|
|
15300
|
+
* Supprime un sport (interdit si vérifié)
|
|
14047
15301
|
* @param {SportsManagerApiDeleteSportRequest} requestParameters Request parameters.
|
|
14048
15302
|
* @param {*} [options] Override http request option.
|
|
14049
15303
|
* @throws {RequiredError}
|
|
@@ -14052,7 +15306,7 @@ export const SportsManagerApiFactory = function (configuration?: Configuration,
|
|
|
14052
15306
|
return localVarFp.deleteSport(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
14053
15307
|
},
|
|
14054
15308
|
/**
|
|
14055
|
-
* Met à jour un sport
|
|
15309
|
+
* Met à jour un sport (interdit si vérifié)
|
|
14056
15310
|
* @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
|
|
14057
15311
|
* @param {*} [options] Override http request option.
|
|
14058
15312
|
* @throws {RequiredError}
|
|
@@ -14120,7 +15374,7 @@ export interface SportsManagerApiUpdateSportRequest {
|
|
|
14120
15374
|
*/
|
|
14121
15375
|
export class SportsManagerApi extends BaseAPI {
|
|
14122
15376
|
/**
|
|
14123
|
-
* Crée un sport
|
|
15377
|
+
* Crée un sport (global) avec createdBy = clubId de l\'utilisateur
|
|
14124
15378
|
* @param {SportsManagerApiCreateSportRequest} requestParameters Request parameters.
|
|
14125
15379
|
* @param {*} [options] Override http request option.
|
|
14126
15380
|
* @throws {RequiredError}
|
|
@@ -14131,7 +15385,7 @@ export class SportsManagerApi extends BaseAPI {
|
|
|
14131
15385
|
}
|
|
14132
15386
|
|
|
14133
15387
|
/**
|
|
14134
|
-
* Supprime un sport
|
|
15388
|
+
* Supprime un sport (interdit si vérifié)
|
|
14135
15389
|
* @param {SportsManagerApiDeleteSportRequest} requestParameters Request parameters.
|
|
14136
15390
|
* @param {*} [options] Override http request option.
|
|
14137
15391
|
* @throws {RequiredError}
|
|
@@ -14142,7 +15396,7 @@ export class SportsManagerApi extends BaseAPI {
|
|
|
14142
15396
|
}
|
|
14143
15397
|
|
|
14144
15398
|
/**
|
|
14145
|
-
* Met à jour un sport
|
|
15399
|
+
* Met à jour un sport (interdit si vérifié)
|
|
14146
15400
|
* @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
|
|
14147
15401
|
* @param {*} [options] Override http request option.
|
|
14148
15402
|
* @throws {RequiredError}
|
|
@@ -14162,7 +15416,7 @@ export class SportsManagerApi extends BaseAPI {
|
|
|
14162
15416
|
export const SportsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
14163
15417
|
return {
|
|
14164
15418
|
/**
|
|
14165
|
-
* Récupère la liste des sports
|
|
15419
|
+
* Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
|
|
14166
15420
|
* @param {*} [options] Override http request option.
|
|
14167
15421
|
* @throws {RequiredError}
|
|
14168
15422
|
*/
|
|
@@ -14205,11 +15459,11 @@ export const SportsStaffApiFp = function(configuration?: Configuration) {
|
|
|
14205
15459
|
const localVarAxiosParamCreator = SportsStaffApiAxiosParamCreator(configuration)
|
|
14206
15460
|
return {
|
|
14207
15461
|
/**
|
|
14208
|
-
* Récupère la liste des sports
|
|
15462
|
+
* Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
|
|
14209
15463
|
* @param {*} [options] Override http request option.
|
|
14210
15464
|
* @throws {RequiredError}
|
|
14211
15465
|
*/
|
|
14212
|
-
async getAllSports(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
15466
|
+
async getAllSports(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SportResponse>>> {
|
|
14213
15467
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllSports(options);
|
|
14214
15468
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14215
15469
|
const localVarOperationServerBasePath = operationServerMap['SportsStaffApi.getAllSports']?.[localVarOperationServerIndex]?.url;
|
|
@@ -14226,11 +15480,11 @@ export const SportsStaffApiFactory = function (configuration?: Configuration, ba
|
|
|
14226
15480
|
const localVarFp = SportsStaffApiFp(configuration)
|
|
14227
15481
|
return {
|
|
14228
15482
|
/**
|
|
14229
|
-
* Récupère la liste des sports
|
|
15483
|
+
* Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
|
|
14230
15484
|
* @param {*} [options] Override http request option.
|
|
14231
15485
|
* @throws {RequiredError}
|
|
14232
15486
|
*/
|
|
14233
|
-
getAllSports(options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
15487
|
+
getAllSports(options?: RawAxiosRequestConfig): AxiosPromise<Array<SportResponse>> {
|
|
14234
15488
|
return localVarFp.getAllSports(options).then((request) => request(axios, basePath));
|
|
14235
15489
|
},
|
|
14236
15490
|
};
|
|
@@ -14244,7 +15498,7 @@ export const SportsStaffApiFactory = function (configuration?: Configuration, ba
|
|
|
14244
15498
|
*/
|
|
14245
15499
|
export class SportsStaffApi extends BaseAPI {
|
|
14246
15500
|
/**
|
|
14247
|
-
* Récupère la liste des sports
|
|
15501
|
+
* Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
|
|
14248
15502
|
* @param {*} [options] Override http request option.
|
|
14249
15503
|
* @throws {RequiredError}
|
|
14250
15504
|
* @memberof SportsStaffApi
|
|
@@ -15924,14 +17178,13 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
15924
17178
|
* @param {string} [sportLevels]
|
|
15925
17179
|
* @param {number} [limit]
|
|
15926
17180
|
* @param {number} [offset]
|
|
15927
|
-
* @param {boolean} [useLocation]
|
|
15928
17181
|
* @param {number} [latitude]
|
|
15929
17182
|
* @param {number} [longitude]
|
|
15930
17183
|
* @param {number} [radiusInKm]
|
|
15931
17184
|
* @param {*} [options] Override http request option.
|
|
15932
17185
|
* @throws {RequiredError}
|
|
15933
17186
|
*/
|
|
15934
|
-
listPlayers: async (category?: PlayerCategoryId, search?: string, gender?: string, sharedClub?: boolean, sportLevels?: string, limit?: number, offset?: number,
|
|
17187
|
+
listPlayers: async (category?: PlayerCategoryId, search?: string, gender?: string, sharedClub?: boolean, sportLevels?: string, limit?: number, offset?: number, latitude?: number, longitude?: number, radiusInKm?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15935
17188
|
const localVarPath = `/api/users/players`;
|
|
15936
17189
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15937
17190
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -15976,10 +17229,6 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
15976
17229
|
localVarQueryParameter['offset'] = offset;
|
|
15977
17230
|
}
|
|
15978
17231
|
|
|
15979
|
-
if (useLocation !== undefined) {
|
|
15980
|
-
localVarQueryParameter['useLocation'] = useLocation;
|
|
15981
|
-
}
|
|
15982
|
-
|
|
15983
17232
|
if (latitude !== undefined) {
|
|
15984
17233
|
localVarQueryParameter['latitude'] = latitude;
|
|
15985
17234
|
}
|
|
@@ -16885,15 +18134,14 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
16885
18134
|
* @param {string} [sportLevels]
|
|
16886
18135
|
* @param {number} [limit]
|
|
16887
18136
|
* @param {number} [offset]
|
|
16888
|
-
* @param {boolean} [useLocation]
|
|
16889
18137
|
* @param {number} [latitude]
|
|
16890
18138
|
* @param {number} [longitude]
|
|
16891
18139
|
* @param {number} [radiusInKm]
|
|
16892
18140
|
* @param {*} [options] Override http request option.
|
|
16893
18141
|
* @throws {RequiredError}
|
|
16894
18142
|
*/
|
|
16895
|
-
async listPlayers(category?: PlayerCategoryId, search?: string, gender?: string, sharedClub?: boolean, sportLevels?: string, limit?: number, offset?: number,
|
|
16896
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlayers(category, search, gender, sharedClub, sportLevels, limit, offset,
|
|
18143
|
+
async listPlayers(category?: PlayerCategoryId, search?: string, gender?: string, sharedClub?: boolean, sportLevels?: string, limit?: number, offset?: number, latitude?: number, longitude?: number, radiusInKm?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlayerListResponse>> {
|
|
18144
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPlayers(category, search, gender, sharedClub, sportLevels, limit, offset, latitude, longitude, radiusInKm, options);
|
|
16897
18145
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16898
18146
|
const localVarOperationServerBasePath = operationServerMap['UsersApi.listPlayers']?.[localVarOperationServerIndex]?.url;
|
|
16899
18147
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -17291,7 +18539,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
17291
18539
|
* @throws {RequiredError}
|
|
17292
18540
|
*/
|
|
17293
18541
|
listPlayers(requestParameters: UsersApiListPlayersRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<PlayerListResponse> {
|
|
17294
|
-
return localVarFp.listPlayers(requestParameters.category, requestParameters.search, requestParameters.gender, requestParameters.sharedClub, requestParameters.sportLevels, requestParameters.limit, requestParameters.offset, requestParameters.
|
|
18542
|
+
return localVarFp.listPlayers(requestParameters.category, requestParameters.search, requestParameters.gender, requestParameters.sharedClub, requestParameters.sportLevels, requestParameters.limit, requestParameters.offset, requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, options).then((request) => request(axios, basePath));
|
|
17295
18543
|
},
|
|
17296
18544
|
/**
|
|
17297
18545
|
*
|
|
@@ -17748,13 +18996,6 @@ export interface UsersApiListPlayersRequest {
|
|
|
17748
18996
|
*/
|
|
17749
18997
|
readonly offset?: number
|
|
17750
18998
|
|
|
17751
|
-
/**
|
|
17752
|
-
*
|
|
17753
|
-
* @type {boolean}
|
|
17754
|
-
* @memberof UsersApiListPlayers
|
|
17755
|
-
*/
|
|
17756
|
-
readonly useLocation?: boolean
|
|
17757
|
-
|
|
17758
18999
|
/**
|
|
17759
19000
|
*
|
|
17760
19001
|
* @type {number}
|
|
@@ -18229,7 +19470,7 @@ export class UsersApi extends BaseAPI {
|
|
|
18229
19470
|
* @memberof UsersApi
|
|
18230
19471
|
*/
|
|
18231
19472
|
public listPlayers(requestParameters: UsersApiListPlayersRequest = {}, options?: RawAxiosRequestConfig) {
|
|
18232
|
-
return UsersApiFp(this.configuration).listPlayers(requestParameters.category, requestParameters.search, requestParameters.gender, requestParameters.sharedClub, requestParameters.sportLevels, requestParameters.limit, requestParameters.offset, requestParameters.
|
|
19473
|
+
return UsersApiFp(this.configuration).listPlayers(requestParameters.category, requestParameters.search, requestParameters.gender, requestParameters.sharedClub, requestParameters.sportLevels, requestParameters.limit, requestParameters.offset, requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, options).then((request) => request(this.axios, this.basePath));
|
|
18233
19474
|
}
|
|
18234
19475
|
|
|
18235
19476
|
/**
|