@tennac-booking/sdk 1.0.70 → 1.0.72
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 +239 -230
- package/README.md +18 -5
- package/api.ts +1187 -155
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1097 -274
- package/dist/api.js +413 -50
- 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 +1097 -274
- package/dist/esm/api.js +410 -47
- 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/BookingPriceBody.md +22 -0
- package/docs/BookingStatus.md +2 -0
- package/docs/BookingsApi.md +52 -0
- package/docs/BookingsStaffApi.md +1 -1
- package/docs/CheckInPlayersResponse.md +2 -10
- package/docs/ClubResponse.md +8 -0
- 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/PartialClubResponse.md +8 -0
- package/docs/PlayerPrice.md +30 -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/SubscriberPrice.md +22 -0
- package/docs/SubscriptionInfo.md +24 -0
- package/docs/{GetSportsByClubById200Response.md → Team.md} +7 -5
- package/docs/UpdateEventRequest.md +54 -0
- package/docs/UpdateSportRequest.md +9 -1
- 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.72
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -614,6 +614,25 @@ export interface BookingPopulated {
|
|
|
614
614
|
}
|
|
615
615
|
|
|
616
616
|
|
|
617
|
+
/**
|
|
618
|
+
*
|
|
619
|
+
* @export
|
|
620
|
+
* @interface BookingPriceBody
|
|
621
|
+
*/
|
|
622
|
+
export interface BookingPriceBody {
|
|
623
|
+
/**
|
|
624
|
+
*
|
|
625
|
+
* @type {Array<string>}
|
|
626
|
+
* @memberof BookingPriceBody
|
|
627
|
+
*/
|
|
628
|
+
'slotIds': Array<string>;
|
|
629
|
+
/**
|
|
630
|
+
*
|
|
631
|
+
* @type {Array<string>}
|
|
632
|
+
* @memberof BookingPriceBody
|
|
633
|
+
*/
|
|
634
|
+
'players': Array<string>;
|
|
635
|
+
}
|
|
617
636
|
/**
|
|
618
637
|
*
|
|
619
638
|
* @export
|
|
@@ -678,6 +697,7 @@ export interface BookingResponseOnsitePaymentsInner {
|
|
|
678
697
|
|
|
679
698
|
export const BookingStatus = {
|
|
680
699
|
Paid: 'paid',
|
|
700
|
+
Validated: 'validated',
|
|
681
701
|
Active: 'active',
|
|
682
702
|
Pending: 'pending',
|
|
683
703
|
ActivePaymentsTimeout: 'active_payments_timeout',
|
|
@@ -918,31 +938,7 @@ export interface CheckInPlayersResponse {
|
|
|
918
938
|
* @type {Array<CheckedInPlayer>}
|
|
919
939
|
* @memberof CheckInPlayersResponse
|
|
920
940
|
*/
|
|
921
|
-
'
|
|
922
|
-
/**
|
|
923
|
-
* Joueurs non trouvés
|
|
924
|
-
* @type {Array<string>}
|
|
925
|
-
* @memberof CheckInPlayersResponse
|
|
926
|
-
*/
|
|
927
|
-
'notFoundPlayers': Array<string>;
|
|
928
|
-
/**
|
|
929
|
-
* Tous les joueurs ont fait le check-in
|
|
930
|
-
* @type {boolean}
|
|
931
|
-
* @memberof CheckInPlayersResponse
|
|
932
|
-
*/
|
|
933
|
-
'allPlayersCheckedIn': boolean;
|
|
934
|
-
/**
|
|
935
|
-
* Réservation entièrement payée
|
|
936
|
-
* @type {boolean}
|
|
937
|
-
* @memberof CheckInPlayersResponse
|
|
938
|
-
*/
|
|
939
|
-
'bookingFullyPaid': boolean;
|
|
940
|
-
/**
|
|
941
|
-
* Nombre total de joueurs
|
|
942
|
-
* @type {number}
|
|
943
|
-
* @memberof CheckInPlayersResponse
|
|
944
|
-
*/
|
|
945
|
-
'totalPlayers': number;
|
|
941
|
+
'invoices': Array<CheckedInPlayer>;
|
|
946
942
|
}
|
|
947
943
|
/**
|
|
948
944
|
*
|
|
@@ -1208,6 +1204,30 @@ export interface ClubResponse {
|
|
|
1208
1204
|
* @memberof ClubResponse
|
|
1209
1205
|
*/
|
|
1210
1206
|
'sports'?: Array<string>;
|
|
1207
|
+
/**
|
|
1208
|
+
* Autoriser plusieurs réservations en même temps
|
|
1209
|
+
* @type {boolean}
|
|
1210
|
+
* @memberof ClubResponse
|
|
1211
|
+
*/
|
|
1212
|
+
'allowMultipleBookingsAtTheSameTime'?: boolean | null;
|
|
1213
|
+
/**
|
|
1214
|
+
* Limite de réservations simultanées (même créneau)
|
|
1215
|
+
* @type {number}
|
|
1216
|
+
* @memberof ClubResponse
|
|
1217
|
+
*/
|
|
1218
|
+
'sameTimeBookingsLimit'?: number | null;
|
|
1219
|
+
/**
|
|
1220
|
+
* Limite d\'annulation en heures
|
|
1221
|
+
* @type {number}
|
|
1222
|
+
* @memberof ClubResponse
|
|
1223
|
+
*/
|
|
1224
|
+
'cancellationLimitHours'?: number | null;
|
|
1225
|
+
/**
|
|
1226
|
+
* Nombre maximum de réservations par semaine
|
|
1227
|
+
* @type {number}
|
|
1228
|
+
* @memberof ClubResponse
|
|
1229
|
+
*/
|
|
1230
|
+
'maxWeeklyBookings'?: number | null;
|
|
1211
1231
|
/**
|
|
1212
1232
|
*
|
|
1213
1233
|
* @type {ClubResponseCreatedAt}
|
|
@@ -1910,6 +1930,12 @@ export interface CreateCourtRequest {
|
|
|
1910
1930
|
* @interface CreateEventRequest
|
|
1911
1931
|
*/
|
|
1912
1932
|
export interface CreateEventRequest {
|
|
1933
|
+
/**
|
|
1934
|
+
*
|
|
1935
|
+
* @type {string}
|
|
1936
|
+
* @memberof CreateEventRequest
|
|
1937
|
+
*/
|
|
1938
|
+
'type': CreateEventRequestTypeEnum;
|
|
1913
1939
|
/**
|
|
1914
1940
|
*
|
|
1915
1941
|
* @type {string}
|
|
@@ -1922,6 +1948,12 @@ export interface CreateEventRequest {
|
|
|
1922
1948
|
* @memberof CreateEventRequest
|
|
1923
1949
|
*/
|
|
1924
1950
|
'description'?: string;
|
|
1951
|
+
/**
|
|
1952
|
+
*
|
|
1953
|
+
* @type {string}
|
|
1954
|
+
* @memberof CreateEventRequest
|
|
1955
|
+
*/
|
|
1956
|
+
'photoUrl'?: string;
|
|
1925
1957
|
/**
|
|
1926
1958
|
*
|
|
1927
1959
|
* @type {string}
|
|
@@ -1940,7 +1972,102 @@ export interface CreateEventRequest {
|
|
|
1940
1972
|
* @memberof CreateEventRequest
|
|
1941
1973
|
*/
|
|
1942
1974
|
'courts': Array<EventResponseCourtsInner>;
|
|
1975
|
+
/**
|
|
1976
|
+
*
|
|
1977
|
+
* @type {Array<string>}
|
|
1978
|
+
* @memberof CreateEventRequest
|
|
1979
|
+
*/
|
|
1980
|
+
'sports': Array<string>;
|
|
1981
|
+
/**
|
|
1982
|
+
*
|
|
1983
|
+
* @type {string}
|
|
1984
|
+
* @memberof CreateEventRequest
|
|
1985
|
+
*/
|
|
1986
|
+
'recurringType': CreateEventRequestRecurringTypeEnum;
|
|
1987
|
+
/**
|
|
1988
|
+
*
|
|
1989
|
+
* @type {string}
|
|
1990
|
+
* @memberof CreateEventRequest
|
|
1991
|
+
*/
|
|
1992
|
+
'recurrenceEndDate'?: string;
|
|
1993
|
+
/**
|
|
1994
|
+
*
|
|
1995
|
+
* @type {string}
|
|
1996
|
+
* @memberof CreateEventRequest
|
|
1997
|
+
*/
|
|
1998
|
+
'participationType': CreateEventRequestParticipationTypeEnum;
|
|
1999
|
+
/**
|
|
2000
|
+
*
|
|
2001
|
+
* @type {Array<string>}
|
|
2002
|
+
* @memberof CreateEventRequest
|
|
2003
|
+
*/
|
|
2004
|
+
'participants'?: Array<string>;
|
|
2005
|
+
/**
|
|
2006
|
+
*
|
|
2007
|
+
* @type {Array<Team>}
|
|
2008
|
+
* @memberof CreateEventRequest
|
|
2009
|
+
*/
|
|
2010
|
+
'teams'?: Array<Team>;
|
|
2011
|
+
/**
|
|
2012
|
+
*
|
|
2013
|
+
* @type {number}
|
|
2014
|
+
* @memberof CreateEventRequest
|
|
2015
|
+
*/
|
|
2016
|
+
'playerLimit'?: number;
|
|
2017
|
+
/**
|
|
2018
|
+
*
|
|
2019
|
+
* @type {number}
|
|
2020
|
+
* @memberof CreateEventRequest
|
|
2021
|
+
*/
|
|
2022
|
+
'teamLimit'?: number;
|
|
2023
|
+
/**
|
|
2024
|
+
*
|
|
2025
|
+
* @type {number}
|
|
2026
|
+
* @memberof CreateEventRequest
|
|
2027
|
+
*/
|
|
2028
|
+
'price'?: number;
|
|
2029
|
+
/**
|
|
2030
|
+
*
|
|
2031
|
+
* @type {Array<SubscriberPrice>}
|
|
2032
|
+
* @memberof CreateEventRequest
|
|
2033
|
+
*/
|
|
2034
|
+
'subscriberPrices'?: Array<SubscriberPrice>;
|
|
2035
|
+
/**
|
|
2036
|
+
*
|
|
2037
|
+
* @type {string}
|
|
2038
|
+
* @memberof CreateEventRequest
|
|
2039
|
+
*/
|
|
2040
|
+
'visibilityType': CreateEventRequestVisibilityTypeEnum;
|
|
1943
2041
|
}
|
|
2042
|
+
|
|
2043
|
+
export const CreateEventRequestTypeEnum = {
|
|
2044
|
+
Event: 'event',
|
|
2045
|
+
Closure: 'closure'
|
|
2046
|
+
} as const;
|
|
2047
|
+
|
|
2048
|
+
export type CreateEventRequestTypeEnum = typeof CreateEventRequestTypeEnum[keyof typeof CreateEventRequestTypeEnum];
|
|
2049
|
+
export const CreateEventRequestRecurringTypeEnum = {
|
|
2050
|
+
Unique: 'unique',
|
|
2051
|
+
Daily: 'daily',
|
|
2052
|
+
Weekly: 'weekly',
|
|
2053
|
+
Monthly: 'monthly'
|
|
2054
|
+
} as const;
|
|
2055
|
+
|
|
2056
|
+
export type CreateEventRequestRecurringTypeEnum = typeof CreateEventRequestRecurringTypeEnum[keyof typeof CreateEventRequestRecurringTypeEnum];
|
|
2057
|
+
export const CreateEventRequestParticipationTypeEnum = {
|
|
2058
|
+
Solo: 'solo',
|
|
2059
|
+
Team: 'team'
|
|
2060
|
+
} as const;
|
|
2061
|
+
|
|
2062
|
+
export type CreateEventRequestParticipationTypeEnum = typeof CreateEventRequestParticipationTypeEnum[keyof typeof CreateEventRequestParticipationTypeEnum];
|
|
2063
|
+
export const CreateEventRequestVisibilityTypeEnum = {
|
|
2064
|
+
Public: 'public',
|
|
2065
|
+
Private: 'private',
|
|
2066
|
+
Invitation: 'invitation'
|
|
2067
|
+
} as const;
|
|
2068
|
+
|
|
2069
|
+
export type CreateEventRequestVisibilityTypeEnum = typeof CreateEventRequestVisibilityTypeEnum[keyof typeof CreateEventRequestVisibilityTypeEnum];
|
|
2070
|
+
|
|
1944
2071
|
/**
|
|
1945
2072
|
*
|
|
1946
2073
|
* @export
|
|
@@ -1979,6 +2106,24 @@ export interface CreateSportForClub201Response {
|
|
|
1979
2106
|
* @interface CreateSportForClubRequest
|
|
1980
2107
|
*/
|
|
1981
2108
|
export interface CreateSportForClubRequest {
|
|
2109
|
+
/**
|
|
2110
|
+
*
|
|
2111
|
+
* @type {Array<string>}
|
|
2112
|
+
* @memberof CreateSportForClubRequest
|
|
2113
|
+
*/
|
|
2114
|
+
'logos'?: Array<string>;
|
|
2115
|
+
/**
|
|
2116
|
+
*
|
|
2117
|
+
* @type {string}
|
|
2118
|
+
* @memberof CreateSportForClubRequest
|
|
2119
|
+
*/
|
|
2120
|
+
'description'?: string;
|
|
2121
|
+
/**
|
|
2122
|
+
*
|
|
2123
|
+
* @type {string}
|
|
2124
|
+
* @memberof CreateSportForClubRequest
|
|
2125
|
+
*/
|
|
2126
|
+
'name'?: string;
|
|
1982
2127
|
/**
|
|
1983
2128
|
*
|
|
1984
2129
|
* @type {string}
|
|
@@ -1993,11 +2138,29 @@ export interface CreateSportForClubRequest {
|
|
|
1993
2138
|
*/
|
|
1994
2139
|
export interface CreateSportRequest {
|
|
1995
2140
|
/**
|
|
1996
|
-
*
|
|
2141
|
+
* Nom affiché du sport
|
|
1997
2142
|
* @type {string}
|
|
1998
2143
|
* @memberof CreateSportRequest
|
|
1999
2144
|
*/
|
|
2000
|
-
'
|
|
2145
|
+
'name'?: string;
|
|
2146
|
+
/**
|
|
2147
|
+
* Description du sport
|
|
2148
|
+
* @type {string}
|
|
2149
|
+
* @memberof CreateSportRequest
|
|
2150
|
+
*/
|
|
2151
|
+
'description'?: string;
|
|
2152
|
+
/**
|
|
2153
|
+
* Niveaux associés
|
|
2154
|
+
* @type {Array<SportLevel>}
|
|
2155
|
+
* @memberof CreateSportRequest
|
|
2156
|
+
*/
|
|
2157
|
+
'levels'?: Array<SportLevel>;
|
|
2158
|
+
/**
|
|
2159
|
+
* URLs de logos/images
|
|
2160
|
+
* @type {Array<string>}
|
|
2161
|
+
* @memberof CreateSportRequest
|
|
2162
|
+
*/
|
|
2163
|
+
'logos'?: Array<string>;
|
|
2001
2164
|
}
|
|
2002
2165
|
/**
|
|
2003
2166
|
*
|
|
@@ -2269,6 +2432,12 @@ export interface EventResponse {
|
|
|
2269
2432
|
* @memberof EventResponse
|
|
2270
2433
|
*/
|
|
2271
2434
|
'clubId': string;
|
|
2435
|
+
/**
|
|
2436
|
+
*
|
|
2437
|
+
* @type {string}
|
|
2438
|
+
* @memberof EventResponse
|
|
2439
|
+
*/
|
|
2440
|
+
'type': EventResponseTypeEnum;
|
|
2272
2441
|
/**
|
|
2273
2442
|
*
|
|
2274
2443
|
* @type {string}
|
|
@@ -2281,6 +2450,12 @@ export interface EventResponse {
|
|
|
2281
2450
|
* @memberof EventResponse
|
|
2282
2451
|
*/
|
|
2283
2452
|
'description'?: string;
|
|
2453
|
+
/**
|
|
2454
|
+
*
|
|
2455
|
+
* @type {string}
|
|
2456
|
+
* @memberof EventResponse
|
|
2457
|
+
*/
|
|
2458
|
+
'photoUrl'?: string;
|
|
2284
2459
|
/**
|
|
2285
2460
|
*
|
|
2286
2461
|
* @type {string}
|
|
@@ -2299,6 +2474,72 @@ export interface EventResponse {
|
|
|
2299
2474
|
* @memberof EventResponse
|
|
2300
2475
|
*/
|
|
2301
2476
|
'courts': Array<EventResponseCourtsInner>;
|
|
2477
|
+
/**
|
|
2478
|
+
*
|
|
2479
|
+
* @type {Array<SportWithLevels>}
|
|
2480
|
+
* @memberof EventResponse
|
|
2481
|
+
*/
|
|
2482
|
+
'sports': Array<SportWithLevels>;
|
|
2483
|
+
/**
|
|
2484
|
+
*
|
|
2485
|
+
* @type {string}
|
|
2486
|
+
* @memberof EventResponse
|
|
2487
|
+
*/
|
|
2488
|
+
'recurringType': EventResponseRecurringTypeEnum;
|
|
2489
|
+
/**
|
|
2490
|
+
*
|
|
2491
|
+
* @type {string}
|
|
2492
|
+
* @memberof EventResponse
|
|
2493
|
+
*/
|
|
2494
|
+
'recurrenceEndDate'?: string;
|
|
2495
|
+
/**
|
|
2496
|
+
*
|
|
2497
|
+
* @type {string}
|
|
2498
|
+
* @memberof EventResponse
|
|
2499
|
+
*/
|
|
2500
|
+
'participationType': EventResponseParticipationTypeEnum;
|
|
2501
|
+
/**
|
|
2502
|
+
*
|
|
2503
|
+
* @type {Array<string>}
|
|
2504
|
+
* @memberof EventResponse
|
|
2505
|
+
*/
|
|
2506
|
+
'participants'?: Array<string>;
|
|
2507
|
+
/**
|
|
2508
|
+
*
|
|
2509
|
+
* @type {Array<Team>}
|
|
2510
|
+
* @memberof EventResponse
|
|
2511
|
+
*/
|
|
2512
|
+
'teams'?: Array<Team>;
|
|
2513
|
+
/**
|
|
2514
|
+
*
|
|
2515
|
+
* @type {number}
|
|
2516
|
+
* @memberof EventResponse
|
|
2517
|
+
*/
|
|
2518
|
+
'playerLimit'?: number;
|
|
2519
|
+
/**
|
|
2520
|
+
*
|
|
2521
|
+
* @type {number}
|
|
2522
|
+
* @memberof EventResponse
|
|
2523
|
+
*/
|
|
2524
|
+
'teamLimit'?: number;
|
|
2525
|
+
/**
|
|
2526
|
+
*
|
|
2527
|
+
* @type {number}
|
|
2528
|
+
* @memberof EventResponse
|
|
2529
|
+
*/
|
|
2530
|
+
'price'?: number;
|
|
2531
|
+
/**
|
|
2532
|
+
*
|
|
2533
|
+
* @type {Array<SubscriberPrice>}
|
|
2534
|
+
* @memberof EventResponse
|
|
2535
|
+
*/
|
|
2536
|
+
'subscriberPrices'?: Array<SubscriberPrice>;
|
|
2537
|
+
/**
|
|
2538
|
+
*
|
|
2539
|
+
* @type {string}
|
|
2540
|
+
* @memberof EventResponse
|
|
2541
|
+
*/
|
|
2542
|
+
'visibilityType': EventResponseVisibilityTypeEnum;
|
|
2302
2543
|
/**
|
|
2303
2544
|
*
|
|
2304
2545
|
* @type {string}
|
|
@@ -2324,6 +2565,35 @@ export interface EventResponse {
|
|
|
2324
2565
|
*/
|
|
2325
2566
|
'updatedAt': string;
|
|
2326
2567
|
}
|
|
2568
|
+
|
|
2569
|
+
export const EventResponseTypeEnum = {
|
|
2570
|
+
Event: 'event',
|
|
2571
|
+
Closure: 'closure'
|
|
2572
|
+
} as const;
|
|
2573
|
+
|
|
2574
|
+
export type EventResponseTypeEnum = typeof EventResponseTypeEnum[keyof typeof EventResponseTypeEnum];
|
|
2575
|
+
export const EventResponseRecurringTypeEnum = {
|
|
2576
|
+
Unique: 'unique',
|
|
2577
|
+
Daily: 'daily',
|
|
2578
|
+
Weekly: 'weekly',
|
|
2579
|
+
Monthly: 'monthly'
|
|
2580
|
+
} as const;
|
|
2581
|
+
|
|
2582
|
+
export type EventResponseRecurringTypeEnum = typeof EventResponseRecurringTypeEnum[keyof typeof EventResponseRecurringTypeEnum];
|
|
2583
|
+
export const EventResponseParticipationTypeEnum = {
|
|
2584
|
+
Solo: 'solo',
|
|
2585
|
+
Team: 'team'
|
|
2586
|
+
} as const;
|
|
2587
|
+
|
|
2588
|
+
export type EventResponseParticipationTypeEnum = typeof EventResponseParticipationTypeEnum[keyof typeof EventResponseParticipationTypeEnum];
|
|
2589
|
+
export const EventResponseVisibilityTypeEnum = {
|
|
2590
|
+
Public: 'public',
|
|
2591
|
+
Private: 'private',
|
|
2592
|
+
Invitation: 'invitation'
|
|
2593
|
+
} as const;
|
|
2594
|
+
|
|
2595
|
+
export type EventResponseVisibilityTypeEnum = typeof EventResponseVisibilityTypeEnum[keyof typeof EventResponseVisibilityTypeEnum];
|
|
2596
|
+
|
|
2327
2597
|
/**
|
|
2328
2598
|
*
|
|
2329
2599
|
* @export
|
|
@@ -2657,19 +2927,6 @@ export interface GetSlotsByClubById200Response {
|
|
|
2657
2927
|
*/
|
|
2658
2928
|
'slots': Array<any>;
|
|
2659
2929
|
}
|
|
2660
|
-
/**
|
|
2661
|
-
*
|
|
2662
|
-
* @export
|
|
2663
|
-
* @interface GetSportsByClubById200Response
|
|
2664
|
-
*/
|
|
2665
|
-
export interface GetSportsByClubById200Response {
|
|
2666
|
-
/**
|
|
2667
|
-
*
|
|
2668
|
-
* @type {Array<any>}
|
|
2669
|
-
* @memberof GetSportsByClubById200Response
|
|
2670
|
-
*/
|
|
2671
|
-
'sports': Array<any>;
|
|
2672
|
-
}
|
|
2673
2930
|
/**
|
|
2674
2931
|
*
|
|
2675
2932
|
* @export
|
|
@@ -3218,6 +3475,44 @@ export interface InvoiceInfo {
|
|
|
3218
3475
|
*/
|
|
3219
3476
|
'status': string;
|
|
3220
3477
|
}
|
|
3478
|
+
/**
|
|
3479
|
+
*
|
|
3480
|
+
* @export
|
|
3481
|
+
* @interface JoinEventRequest
|
|
3482
|
+
*/
|
|
3483
|
+
export interface JoinEventRequest {
|
|
3484
|
+
/**
|
|
3485
|
+
*
|
|
3486
|
+
* @type {string}
|
|
3487
|
+
* @memberof JoinEventRequest
|
|
3488
|
+
*/
|
|
3489
|
+
'teamName'?: string;
|
|
3490
|
+
/**
|
|
3491
|
+
*
|
|
3492
|
+
* @type {Array<string>}
|
|
3493
|
+
* @memberof JoinEventRequest
|
|
3494
|
+
*/
|
|
3495
|
+
'players'?: Array<string>;
|
|
3496
|
+
}
|
|
3497
|
+
/**
|
|
3498
|
+
*
|
|
3499
|
+
* @export
|
|
3500
|
+
* @interface JoinEventResponse
|
|
3501
|
+
*/
|
|
3502
|
+
export interface JoinEventResponse {
|
|
3503
|
+
/**
|
|
3504
|
+
*
|
|
3505
|
+
* @type {string}
|
|
3506
|
+
* @memberof JoinEventResponse
|
|
3507
|
+
*/
|
|
3508
|
+
'message': string;
|
|
3509
|
+
/**
|
|
3510
|
+
*
|
|
3511
|
+
* @type {EventResponse}
|
|
3512
|
+
* @memberof JoinEventResponse
|
|
3513
|
+
*/
|
|
3514
|
+
'event': EventResponse;
|
|
3515
|
+
}
|
|
3221
3516
|
/**
|
|
3222
3517
|
*
|
|
3223
3518
|
* @export
|
|
@@ -3570,6 +3865,30 @@ export interface PartialClubResponse {
|
|
|
3570
3865
|
* @memberof PartialClubResponse
|
|
3571
3866
|
*/
|
|
3572
3867
|
'sports'?: Array<string>;
|
|
3868
|
+
/**
|
|
3869
|
+
* Autoriser plusieurs réservations en même temps
|
|
3870
|
+
* @type {boolean}
|
|
3871
|
+
* @memberof PartialClubResponse
|
|
3872
|
+
*/
|
|
3873
|
+
'allowMultipleBookingsAtTheSameTime'?: boolean;
|
|
3874
|
+
/**
|
|
3875
|
+
* Limite de réservations simultanées (même créneau)
|
|
3876
|
+
* @type {number}
|
|
3877
|
+
* @memberof PartialClubResponse
|
|
3878
|
+
*/
|
|
3879
|
+
'sameTimeBookingsLimit'?: number;
|
|
3880
|
+
/**
|
|
3881
|
+
* Limite d\'annulation en heures
|
|
3882
|
+
* @type {number}
|
|
3883
|
+
* @memberof PartialClubResponse
|
|
3884
|
+
*/
|
|
3885
|
+
'cancellationLimitHours'?: number;
|
|
3886
|
+
/**
|
|
3887
|
+
* Nombre maximum de réservations par semaine
|
|
3888
|
+
* @type {number}
|
|
3889
|
+
* @memberof PartialClubResponse
|
|
3890
|
+
*/
|
|
3891
|
+
'maxWeeklyBookings'?: number;
|
|
3573
3892
|
/**
|
|
3574
3893
|
*
|
|
3575
3894
|
* @type {ClubResponseCreatedAt}
|
|
@@ -3907,6 +4226,49 @@ export interface PlayerPaymentInfo {
|
|
|
3907
4226
|
}
|
|
3908
4227
|
|
|
3909
4228
|
|
|
4229
|
+
/**
|
|
4230
|
+
*
|
|
4231
|
+
* @export
|
|
4232
|
+
* @interface PlayerPrice
|
|
4233
|
+
*/
|
|
4234
|
+
export interface PlayerPrice {
|
|
4235
|
+
/**
|
|
4236
|
+
*
|
|
4237
|
+
* @type {string}
|
|
4238
|
+
* @memberof PlayerPrice
|
|
4239
|
+
*/
|
|
4240
|
+
'playerId': string;
|
|
4241
|
+
/**
|
|
4242
|
+
*
|
|
4243
|
+
* @type {string}
|
|
4244
|
+
* @memberof PlayerPrice
|
|
4245
|
+
*/
|
|
4246
|
+
'firstName'?: string;
|
|
4247
|
+
/**
|
|
4248
|
+
*
|
|
4249
|
+
* @type {string}
|
|
4250
|
+
* @memberof PlayerPrice
|
|
4251
|
+
*/
|
|
4252
|
+
'lastName'?: string;
|
|
4253
|
+
/**
|
|
4254
|
+
*
|
|
4255
|
+
* @type {Array<SubscriptionInfo>}
|
|
4256
|
+
* @memberof PlayerPrice
|
|
4257
|
+
*/
|
|
4258
|
+
'subscriptions': Array<SubscriptionInfo>;
|
|
4259
|
+
/**
|
|
4260
|
+
*
|
|
4261
|
+
* @type {number}
|
|
4262
|
+
* @memberof PlayerPrice
|
|
4263
|
+
*/
|
|
4264
|
+
'creditAvailablesInCents'?: number;
|
|
4265
|
+
/**
|
|
4266
|
+
*
|
|
4267
|
+
* @type {number}
|
|
4268
|
+
* @memberof PlayerPrice
|
|
4269
|
+
*/
|
|
4270
|
+
'price': number;
|
|
4271
|
+
}
|
|
3910
4272
|
/**
|
|
3911
4273
|
*
|
|
3912
4274
|
* @export
|
|
@@ -4700,24 +5062,59 @@ export interface SportAnalyticsResponse {
|
|
|
4700
5062
|
/**
|
|
4701
5063
|
*
|
|
4702
5064
|
* @export
|
|
4703
|
-
* @interface SportInfo
|
|
5065
|
+
* @interface SportInfo
|
|
5066
|
+
*/
|
|
5067
|
+
export interface SportInfo {
|
|
5068
|
+
/**
|
|
5069
|
+
* ID du sport
|
|
5070
|
+
* @type {string}
|
|
5071
|
+
* @memberof SportInfo
|
|
5072
|
+
*/
|
|
5073
|
+
'id': string;
|
|
5074
|
+
/**
|
|
5075
|
+
* Clé du sport
|
|
5076
|
+
* @type {string}
|
|
5077
|
+
* @memberof SportInfo
|
|
5078
|
+
*/
|
|
5079
|
+
'key': string;
|
|
5080
|
+
}
|
|
5081
|
+
/**
|
|
5082
|
+
*
|
|
5083
|
+
* @export
|
|
5084
|
+
* @enum {string}
|
|
5085
|
+
*/
|
|
5086
|
+
|
|
5087
|
+
export const SportKey = {
|
|
5088
|
+
Padel: 'Padel',
|
|
5089
|
+
Tennis: 'Tennis',
|
|
5090
|
+
Pickleball: 'Pickleball',
|
|
5091
|
+
Autres: 'Autres'
|
|
5092
|
+
} as const;
|
|
5093
|
+
|
|
5094
|
+
export type SportKey = typeof SportKey[keyof typeof SportKey];
|
|
5095
|
+
|
|
5096
|
+
|
|
5097
|
+
/**
|
|
5098
|
+
*
|
|
5099
|
+
* @export
|
|
5100
|
+
* @interface SportLevel
|
|
4704
5101
|
*/
|
|
4705
|
-
export interface
|
|
5102
|
+
export interface SportLevel {
|
|
4706
5103
|
/**
|
|
4707
|
-
*
|
|
5104
|
+
* Nom du niveau (ex: Débutant, Intermédiaire, Avancé)
|
|
4708
5105
|
* @type {string}
|
|
4709
|
-
* @memberof
|
|
5106
|
+
* @memberof SportLevel
|
|
4710
5107
|
*/
|
|
4711
|
-
'
|
|
5108
|
+
'name': string;
|
|
4712
5109
|
/**
|
|
4713
|
-
*
|
|
4714
|
-
* @type {
|
|
4715
|
-
* @memberof
|
|
5110
|
+
* Ordre du niveau, du plus faible (petit) au plus fort (grand)
|
|
5111
|
+
* @type {number}
|
|
5112
|
+
* @memberof SportLevel
|
|
4716
5113
|
*/
|
|
4717
|
-
'
|
|
5114
|
+
'order': number;
|
|
4718
5115
|
}
|
|
4719
5116
|
/**
|
|
4720
|
-
*
|
|
5117
|
+
*
|
|
4721
5118
|
* @export
|
|
4722
5119
|
* @interface SportResponse
|
|
4723
5120
|
*/
|
|
@@ -4729,17 +5126,17 @@ export interface SportResponse {
|
|
|
4729
5126
|
*/
|
|
4730
5127
|
'id': string;
|
|
4731
5128
|
/**
|
|
4732
|
-
*
|
|
4733
|
-
* @type {
|
|
5129
|
+
*
|
|
5130
|
+
* @type {SportKey}
|
|
4734
5131
|
* @memberof SportResponse
|
|
4735
5132
|
*/
|
|
4736
|
-
'key':
|
|
5133
|
+
'key': SportKey;
|
|
4737
5134
|
/**
|
|
4738
|
-
* Nom du sport
|
|
5135
|
+
* Nom affiché du sport
|
|
4739
5136
|
* @type {string}
|
|
4740
5137
|
* @memberof SportResponse
|
|
4741
5138
|
*/
|
|
4742
|
-
'name'
|
|
5139
|
+
'name': string;
|
|
4743
5140
|
/**
|
|
4744
5141
|
* Description du sport
|
|
4745
5142
|
* @type {string}
|
|
@@ -4747,11 +5144,29 @@ export interface SportResponse {
|
|
|
4747
5144
|
*/
|
|
4748
5145
|
'description'?: string;
|
|
4749
5146
|
/**
|
|
4750
|
-
*
|
|
5147
|
+
* Niveaux associés au sport
|
|
5148
|
+
* @type {Array<SportLevel>}
|
|
5149
|
+
* @memberof SportResponse
|
|
5150
|
+
*/
|
|
5151
|
+
'levels'?: Array<SportLevel>;
|
|
5152
|
+
/**
|
|
5153
|
+
* URLs de logos/images pour le sport
|
|
5154
|
+
* @type {Array<string>}
|
|
5155
|
+
* @memberof SportResponse
|
|
5156
|
+
*/
|
|
5157
|
+
'logos'?: Array<string>;
|
|
5158
|
+
/**
|
|
5159
|
+
* ID du club créateur
|
|
4751
5160
|
* @type {string}
|
|
4752
5161
|
* @memberof SportResponse
|
|
4753
5162
|
*/
|
|
4754
|
-
'
|
|
5163
|
+
'createdBy'?: string;
|
|
5164
|
+
/**
|
|
5165
|
+
* Sport vérifié/officiel (non modifiable)
|
|
5166
|
+
* @type {boolean}
|
|
5167
|
+
* @memberof SportResponse
|
|
5168
|
+
*/
|
|
5169
|
+
'verified': boolean;
|
|
4755
5170
|
/**
|
|
4756
5171
|
* Date de création
|
|
4757
5172
|
* @type {string}
|
|
@@ -4765,66 +5180,50 @@ export interface SportResponse {
|
|
|
4765
5180
|
*/
|
|
4766
5181
|
'updatedAt': string;
|
|
4767
5182
|
}
|
|
5183
|
+
|
|
5184
|
+
|
|
4768
5185
|
/**
|
|
4769
5186
|
*
|
|
4770
5187
|
* @export
|
|
4771
|
-
* @interface
|
|
5188
|
+
* @interface SportWithLevels
|
|
4772
5189
|
*/
|
|
4773
|
-
export interface
|
|
5190
|
+
export interface SportWithLevels {
|
|
4774
5191
|
/**
|
|
4775
|
-
*
|
|
5192
|
+
*
|
|
4776
5193
|
* @type {string}
|
|
4777
|
-
* @memberof
|
|
5194
|
+
* @memberof SportWithLevels
|
|
4778
5195
|
*/
|
|
4779
5196
|
'id': string;
|
|
4780
5197
|
/**
|
|
4781
|
-
*
|
|
5198
|
+
*
|
|
4782
5199
|
* @type {string}
|
|
4783
|
-
* @memberof
|
|
5200
|
+
* @memberof SportWithLevels
|
|
4784
5201
|
*/
|
|
4785
5202
|
'key': string;
|
|
4786
5203
|
/**
|
|
4787
|
-
*
|
|
5204
|
+
*
|
|
4788
5205
|
* @type {string}
|
|
4789
|
-
* @memberof
|
|
5206
|
+
* @memberof SportWithLevels
|
|
4790
5207
|
*/
|
|
4791
|
-
'name'
|
|
5208
|
+
'name': string;
|
|
4792
5209
|
/**
|
|
4793
|
-
*
|
|
5210
|
+
*
|
|
4794
5211
|
* @type {string}
|
|
4795
|
-
* @memberof
|
|
5212
|
+
* @memberof SportWithLevels
|
|
4796
5213
|
*/
|
|
4797
5214
|
'description'?: string;
|
|
4798
5215
|
/**
|
|
4799
|
-
*
|
|
4800
|
-
* @type {
|
|
4801
|
-
* @memberof
|
|
4802
|
-
*/
|
|
4803
|
-
'clubId': string;
|
|
4804
|
-
/**
|
|
4805
|
-
* Date de création
|
|
4806
|
-
* @type {string}
|
|
4807
|
-
* @memberof SportWithAnalytics
|
|
4808
|
-
*/
|
|
4809
|
-
'createdAt': string;
|
|
4810
|
-
/**
|
|
4811
|
-
* Date de dernière mise à jour
|
|
4812
|
-
* @type {string}
|
|
4813
|
-
* @memberof SportWithAnalytics
|
|
4814
|
-
*/
|
|
4815
|
-
'updatedAt': string;
|
|
4816
|
-
/**
|
|
4817
|
-
* Nombre de terrains pour ce sport
|
|
4818
|
-
* @type {number}
|
|
4819
|
-
* @memberof SportWithAnalytics
|
|
5216
|
+
*
|
|
5217
|
+
* @type {Array<SportLevel>}
|
|
5218
|
+
* @memberof SportWithLevels
|
|
4820
5219
|
*/
|
|
4821
|
-
'
|
|
5220
|
+
'levels'?: Array<SportLevel>;
|
|
4822
5221
|
/**
|
|
4823
|
-
*
|
|
4824
|
-
* @type {
|
|
4825
|
-
* @memberof
|
|
5222
|
+
*
|
|
5223
|
+
* @type {Array<string>}
|
|
5224
|
+
* @memberof SportWithLevels
|
|
4826
5225
|
*/
|
|
4827
|
-
'
|
|
5226
|
+
'logos'?: Array<string>;
|
|
4828
5227
|
}
|
|
4829
5228
|
/**
|
|
4830
5229
|
*
|
|
@@ -6318,6 +6717,50 @@ export interface SubscribeRequestBody {
|
|
|
6318
6717
|
*/
|
|
6319
6718
|
'priceId': string;
|
|
6320
6719
|
}
|
|
6720
|
+
/**
|
|
6721
|
+
*
|
|
6722
|
+
* @export
|
|
6723
|
+
* @interface SubscriberPrice
|
|
6724
|
+
*/
|
|
6725
|
+
export interface SubscriberPrice {
|
|
6726
|
+
/**
|
|
6727
|
+
*
|
|
6728
|
+
* @type {string}
|
|
6729
|
+
* @memberof SubscriberPrice
|
|
6730
|
+
*/
|
|
6731
|
+
'subscriptionPlanId': string;
|
|
6732
|
+
/**
|
|
6733
|
+
*
|
|
6734
|
+
* @type {number}
|
|
6735
|
+
* @memberof SubscriberPrice
|
|
6736
|
+
*/
|
|
6737
|
+
'amount': number;
|
|
6738
|
+
}
|
|
6739
|
+
/**
|
|
6740
|
+
*
|
|
6741
|
+
* @export
|
|
6742
|
+
* @interface SubscriptionInfo
|
|
6743
|
+
*/
|
|
6744
|
+
export interface SubscriptionInfo {
|
|
6745
|
+
/**
|
|
6746
|
+
*
|
|
6747
|
+
* @type {string}
|
|
6748
|
+
* @memberof SubscriptionInfo
|
|
6749
|
+
*/
|
|
6750
|
+
'subscriptionPlanName'?: string;
|
|
6751
|
+
/**
|
|
6752
|
+
*
|
|
6753
|
+
* @type {string}
|
|
6754
|
+
* @memberof SubscriptionInfo
|
|
6755
|
+
*/
|
|
6756
|
+
'subscriptionDescription'?: string;
|
|
6757
|
+
/**
|
|
6758
|
+
*
|
|
6759
|
+
* @type {number}
|
|
6760
|
+
* @memberof SubscriptionInfo
|
|
6761
|
+
*/
|
|
6762
|
+
'reducedAmountInCents'?: number;
|
|
6763
|
+
}
|
|
6321
6764
|
/**
|
|
6322
6765
|
*
|
|
6323
6766
|
* @export
|
|
@@ -6403,6 +6846,25 @@ export const SurfaceType = {
|
|
|
6403
6846
|
export type SurfaceType = typeof SurfaceType[keyof typeof SurfaceType];
|
|
6404
6847
|
|
|
6405
6848
|
|
|
6849
|
+
/**
|
|
6850
|
+
*
|
|
6851
|
+
* @export
|
|
6852
|
+
* @interface Team
|
|
6853
|
+
*/
|
|
6854
|
+
export interface Team {
|
|
6855
|
+
/**
|
|
6856
|
+
*
|
|
6857
|
+
* @type {string}
|
|
6858
|
+
* @memberof Team
|
|
6859
|
+
*/
|
|
6860
|
+
'name': string;
|
|
6861
|
+
/**
|
|
6862
|
+
*
|
|
6863
|
+
* @type {Array<string>}
|
|
6864
|
+
* @memberof Team
|
|
6865
|
+
*/
|
|
6866
|
+
'players': Array<string>;
|
|
6867
|
+
}
|
|
6406
6868
|
/**
|
|
6407
6869
|
*
|
|
6408
6870
|
* @export
|
|
@@ -6636,6 +7098,150 @@ export interface UpdateCustomerResponse {
|
|
|
6636
7098
|
*/
|
|
6637
7099
|
'customer': { [key: string]: any; };
|
|
6638
7100
|
}
|
|
7101
|
+
/**
|
|
7102
|
+
*
|
|
7103
|
+
* @export
|
|
7104
|
+
* @interface UpdateEventRequest
|
|
7105
|
+
*/
|
|
7106
|
+
export interface UpdateEventRequest {
|
|
7107
|
+
/**
|
|
7108
|
+
*
|
|
7109
|
+
* @type {string}
|
|
7110
|
+
* @memberof UpdateEventRequest
|
|
7111
|
+
*/
|
|
7112
|
+
'type'?: UpdateEventRequestTypeEnum;
|
|
7113
|
+
/**
|
|
7114
|
+
*
|
|
7115
|
+
* @type {string}
|
|
7116
|
+
* @memberof UpdateEventRequest
|
|
7117
|
+
*/
|
|
7118
|
+
'title'?: string;
|
|
7119
|
+
/**
|
|
7120
|
+
*
|
|
7121
|
+
* @type {string}
|
|
7122
|
+
* @memberof UpdateEventRequest
|
|
7123
|
+
*/
|
|
7124
|
+
'description'?: string;
|
|
7125
|
+
/**
|
|
7126
|
+
*
|
|
7127
|
+
* @type {string}
|
|
7128
|
+
* @memberof UpdateEventRequest
|
|
7129
|
+
*/
|
|
7130
|
+
'photoUrl'?: string;
|
|
7131
|
+
/**
|
|
7132
|
+
*
|
|
7133
|
+
* @type {string}
|
|
7134
|
+
* @memberof UpdateEventRequest
|
|
7135
|
+
*/
|
|
7136
|
+
'startDate'?: string;
|
|
7137
|
+
/**
|
|
7138
|
+
*
|
|
7139
|
+
* @type {string}
|
|
7140
|
+
* @memberof UpdateEventRequest
|
|
7141
|
+
*/
|
|
7142
|
+
'endDate'?: string;
|
|
7143
|
+
/**
|
|
7144
|
+
*
|
|
7145
|
+
* @type {Array<EventResponseCourtsInner>}
|
|
7146
|
+
* @memberof UpdateEventRequest
|
|
7147
|
+
*/
|
|
7148
|
+
'courts'?: Array<EventResponseCourtsInner>;
|
|
7149
|
+
/**
|
|
7150
|
+
*
|
|
7151
|
+
* @type {Array<string>}
|
|
7152
|
+
* @memberof UpdateEventRequest
|
|
7153
|
+
*/
|
|
7154
|
+
'sports'?: Array<string>;
|
|
7155
|
+
/**
|
|
7156
|
+
*
|
|
7157
|
+
* @type {string}
|
|
7158
|
+
* @memberof UpdateEventRequest
|
|
7159
|
+
*/
|
|
7160
|
+
'recurringType'?: UpdateEventRequestRecurringTypeEnum;
|
|
7161
|
+
/**
|
|
7162
|
+
*
|
|
7163
|
+
* @type {string}
|
|
7164
|
+
* @memberof UpdateEventRequest
|
|
7165
|
+
*/
|
|
7166
|
+
'recurrenceEndDate'?: string;
|
|
7167
|
+
/**
|
|
7168
|
+
*
|
|
7169
|
+
* @type {string}
|
|
7170
|
+
* @memberof UpdateEventRequest
|
|
7171
|
+
*/
|
|
7172
|
+
'participationType'?: UpdateEventRequestParticipationTypeEnum;
|
|
7173
|
+
/**
|
|
7174
|
+
*
|
|
7175
|
+
* @type {Array<string>}
|
|
7176
|
+
* @memberof UpdateEventRequest
|
|
7177
|
+
*/
|
|
7178
|
+
'participants'?: Array<string>;
|
|
7179
|
+
/**
|
|
7180
|
+
*
|
|
7181
|
+
* @type {Array<Team>}
|
|
7182
|
+
* @memberof UpdateEventRequest
|
|
7183
|
+
*/
|
|
7184
|
+
'teams'?: Array<Team>;
|
|
7185
|
+
/**
|
|
7186
|
+
*
|
|
7187
|
+
* @type {number}
|
|
7188
|
+
* @memberof UpdateEventRequest
|
|
7189
|
+
*/
|
|
7190
|
+
'playerLimit'?: number;
|
|
7191
|
+
/**
|
|
7192
|
+
*
|
|
7193
|
+
* @type {number}
|
|
7194
|
+
* @memberof UpdateEventRequest
|
|
7195
|
+
*/
|
|
7196
|
+
'teamLimit'?: number;
|
|
7197
|
+
/**
|
|
7198
|
+
*
|
|
7199
|
+
* @type {number}
|
|
7200
|
+
* @memberof UpdateEventRequest
|
|
7201
|
+
*/
|
|
7202
|
+
'price'?: number;
|
|
7203
|
+
/**
|
|
7204
|
+
*
|
|
7205
|
+
* @type {Array<SubscriberPrice>}
|
|
7206
|
+
* @memberof UpdateEventRequest
|
|
7207
|
+
*/
|
|
7208
|
+
'subscriberPrices'?: Array<SubscriberPrice>;
|
|
7209
|
+
/**
|
|
7210
|
+
*
|
|
7211
|
+
* @type {string}
|
|
7212
|
+
* @memberof UpdateEventRequest
|
|
7213
|
+
*/
|
|
7214
|
+
'visibilityType'?: UpdateEventRequestVisibilityTypeEnum;
|
|
7215
|
+
}
|
|
7216
|
+
|
|
7217
|
+
export const UpdateEventRequestTypeEnum = {
|
|
7218
|
+
Event: 'event',
|
|
7219
|
+
Closure: 'closure'
|
|
7220
|
+
} as const;
|
|
7221
|
+
|
|
7222
|
+
export type UpdateEventRequestTypeEnum = typeof UpdateEventRequestTypeEnum[keyof typeof UpdateEventRequestTypeEnum];
|
|
7223
|
+
export const UpdateEventRequestRecurringTypeEnum = {
|
|
7224
|
+
Unique: 'unique',
|
|
7225
|
+
Daily: 'daily',
|
|
7226
|
+
Weekly: 'weekly',
|
|
7227
|
+
Monthly: 'monthly'
|
|
7228
|
+
} as const;
|
|
7229
|
+
|
|
7230
|
+
export type UpdateEventRequestRecurringTypeEnum = typeof UpdateEventRequestRecurringTypeEnum[keyof typeof UpdateEventRequestRecurringTypeEnum];
|
|
7231
|
+
export const UpdateEventRequestParticipationTypeEnum = {
|
|
7232
|
+
Solo: 'solo',
|
|
7233
|
+
Team: 'team'
|
|
7234
|
+
} as const;
|
|
7235
|
+
|
|
7236
|
+
export type UpdateEventRequestParticipationTypeEnum = typeof UpdateEventRequestParticipationTypeEnum[keyof typeof UpdateEventRequestParticipationTypeEnum];
|
|
7237
|
+
export const UpdateEventRequestVisibilityTypeEnum = {
|
|
7238
|
+
Public: 'public',
|
|
7239
|
+
Private: 'private',
|
|
7240
|
+
Invitation: 'invitation'
|
|
7241
|
+
} as const;
|
|
7242
|
+
|
|
7243
|
+
export type UpdateEventRequestVisibilityTypeEnum = typeof UpdateEventRequestVisibilityTypeEnum[keyof typeof UpdateEventRequestVisibilityTypeEnum];
|
|
7244
|
+
|
|
6639
7245
|
/**
|
|
6640
7246
|
*
|
|
6641
7247
|
* @export
|
|
@@ -6675,12 +7281,38 @@ export interface UpdatePlanRequest {
|
|
|
6675
7281
|
*/
|
|
6676
7282
|
export interface UpdateSportRequest {
|
|
6677
7283
|
/**
|
|
6678
|
-
*
|
|
7284
|
+
*
|
|
7285
|
+
* @type {SportKey}
|
|
7286
|
+
* @memberof UpdateSportRequest
|
|
7287
|
+
*/
|
|
7288
|
+
'key'?: SportKey;
|
|
7289
|
+
/**
|
|
7290
|
+
* Nom affiché du sport
|
|
7291
|
+
* @type {string}
|
|
7292
|
+
* @memberof UpdateSportRequest
|
|
7293
|
+
*/
|
|
7294
|
+
'name'?: string;
|
|
7295
|
+
/**
|
|
7296
|
+
* Description du sport
|
|
6679
7297
|
* @type {string}
|
|
6680
7298
|
* @memberof UpdateSportRequest
|
|
6681
7299
|
*/
|
|
6682
|
-
'
|
|
7300
|
+
'description'?: string;
|
|
7301
|
+
/**
|
|
7302
|
+
* Niveaux associés
|
|
7303
|
+
* @type {Array<SportLevel>}
|
|
7304
|
+
* @memberof UpdateSportRequest
|
|
7305
|
+
*/
|
|
7306
|
+
'levels'?: Array<SportLevel>;
|
|
7307
|
+
/**
|
|
7308
|
+
* URLs de logos/images
|
|
7309
|
+
* @type {Array<string>}
|
|
7310
|
+
* @memberof UpdateSportRequest
|
|
7311
|
+
*/
|
|
7312
|
+
'logos'?: Array<string>;
|
|
6683
7313
|
}
|
|
7314
|
+
|
|
7315
|
+
|
|
6684
7316
|
/**
|
|
6685
7317
|
*
|
|
6686
7318
|
* @export
|
|
@@ -7341,6 +7973,45 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
7341
7973
|
options: localVarRequestOptions,
|
|
7342
7974
|
};
|
|
7343
7975
|
},
|
|
7976
|
+
/**
|
|
7977
|
+
*
|
|
7978
|
+
* @param {BookingPriceBody} bookingPriceBody
|
|
7979
|
+
* @param {*} [options] Override http request option.
|
|
7980
|
+
* @throws {RequiredError}
|
|
7981
|
+
*/
|
|
7982
|
+
getBookingPrice: async (bookingPriceBody: BookingPriceBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7983
|
+
// verify required parameter 'bookingPriceBody' is not null or undefined
|
|
7984
|
+
assertParamExists('getBookingPrice', 'bookingPriceBody', bookingPriceBody)
|
|
7985
|
+
const localVarPath = `/api/bookings/booking-price`;
|
|
7986
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7987
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7988
|
+
let baseOptions;
|
|
7989
|
+
if (configuration) {
|
|
7990
|
+
baseOptions = configuration.baseOptions;
|
|
7991
|
+
}
|
|
7992
|
+
|
|
7993
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
7994
|
+
const localVarHeaderParameter = {} as any;
|
|
7995
|
+
const localVarQueryParameter = {} as any;
|
|
7996
|
+
|
|
7997
|
+
// authentication bearerAuth required
|
|
7998
|
+
// http bearer authentication required
|
|
7999
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
8000
|
+
|
|
8001
|
+
|
|
8002
|
+
|
|
8003
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8004
|
+
|
|
8005
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8006
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8007
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8008
|
+
localVarRequestOptions.data = serializeDataIfNeeded(bookingPriceBody, localVarRequestOptions, configuration)
|
|
8009
|
+
|
|
8010
|
+
return {
|
|
8011
|
+
url: toPathString(localVarUrlObj),
|
|
8012
|
+
options: localVarRequestOptions,
|
|
8013
|
+
};
|
|
8014
|
+
},
|
|
7344
8015
|
/**
|
|
7345
8016
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
7346
8017
|
* @param {number} [latitude]
|
|
@@ -7439,7 +8110,19 @@ export const BookingsApiFp = function(configuration?: Configuration) {
|
|
|
7439
8110
|
async getBookingHistory(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingHistoryPopulated>> {
|
|
7440
8111
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingHistory(bookingId, options);
|
|
7441
8112
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7442
|
-
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingHistory']?.[localVarOperationServerIndex]?.url;
|
|
8113
|
+
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingHistory']?.[localVarOperationServerIndex]?.url;
|
|
8114
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8115
|
+
},
|
|
8116
|
+
/**
|
|
8117
|
+
*
|
|
8118
|
+
* @param {BookingPriceBody} bookingPriceBody
|
|
8119
|
+
* @param {*} [options] Override http request option.
|
|
8120
|
+
* @throws {RequiredError}
|
|
8121
|
+
*/
|
|
8122
|
+
async getBookingPrice(bookingPriceBody: BookingPriceBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PlayerPrice>>> {
|
|
8123
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingPrice(bookingPriceBody, options);
|
|
8124
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8125
|
+
const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingPrice']?.[localVarOperationServerIndex]?.url;
|
|
7443
8126
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7444
8127
|
},
|
|
7445
8128
|
/**
|
|
@@ -7482,6 +8165,15 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
|
|
|
7482
8165
|
getBookingHistory(requestParameters: BookingsApiGetBookingHistoryRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingHistoryPopulated> {
|
|
7483
8166
|
return localVarFp.getBookingHistory(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
7484
8167
|
},
|
|
8168
|
+
/**
|
|
8169
|
+
*
|
|
8170
|
+
* @param {BookingsApiGetBookingPriceRequest} requestParameters Request parameters.
|
|
8171
|
+
* @param {*} [options] Override http request option.
|
|
8172
|
+
* @throws {RequiredError}
|
|
8173
|
+
*/
|
|
8174
|
+
getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<PlayerPrice>> {
|
|
8175
|
+
return localVarFp.getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(axios, basePath));
|
|
8176
|
+
},
|
|
7485
8177
|
/**
|
|
7486
8178
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
7487
8179
|
* @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
|
|
@@ -7508,6 +8200,20 @@ export interface BookingsApiGetBookingHistoryRequest {
|
|
|
7508
8200
|
readonly bookingId: string
|
|
7509
8201
|
}
|
|
7510
8202
|
|
|
8203
|
+
/**
|
|
8204
|
+
* Request parameters for getBookingPrice operation in BookingsApi.
|
|
8205
|
+
* @export
|
|
8206
|
+
* @interface BookingsApiGetBookingPriceRequest
|
|
8207
|
+
*/
|
|
8208
|
+
export interface BookingsApiGetBookingPriceRequest {
|
|
8209
|
+
/**
|
|
8210
|
+
*
|
|
8211
|
+
* @type {BookingPriceBody}
|
|
8212
|
+
* @memberof BookingsApiGetBookingPrice
|
|
8213
|
+
*/
|
|
8214
|
+
readonly bookingPriceBody: BookingPriceBody
|
|
8215
|
+
}
|
|
8216
|
+
|
|
7511
8217
|
/**
|
|
7512
8218
|
* Request parameters for getQuickReservationSlots operation in BookingsApi.
|
|
7513
8219
|
* @export
|
|
@@ -7603,6 +8309,17 @@ export class BookingsApi extends BaseAPI {
|
|
|
7603
8309
|
return BookingsApiFp(this.configuration).getBookingHistory(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
|
|
7604
8310
|
}
|
|
7605
8311
|
|
|
8312
|
+
/**
|
|
8313
|
+
*
|
|
8314
|
+
* @param {BookingsApiGetBookingPriceRequest} requestParameters Request parameters.
|
|
8315
|
+
* @param {*} [options] Override http request option.
|
|
8316
|
+
* @throws {RequiredError}
|
|
8317
|
+
* @memberof BookingsApi
|
|
8318
|
+
*/
|
|
8319
|
+
public getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig) {
|
|
8320
|
+
return BookingsApiFp(this.configuration).getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(this.axios, this.basePath));
|
|
8321
|
+
}
|
|
8322
|
+
|
|
7606
8323
|
/**
|
|
7607
8324
|
* Recherche des créneaux disponibles pour une réservation rapide
|
|
7608
8325
|
* @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
|
|
@@ -7843,7 +8560,7 @@ export class BookingsManagerApi extends BaseAPI {
|
|
|
7843
8560
|
export const BookingsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
7844
8561
|
return {
|
|
7845
8562
|
/**
|
|
7846
|
-
* Check-in des joueurs
|
|
8563
|
+
* Check-in des joueurs only for club with payment features
|
|
7847
8564
|
* @param {string} bookingId
|
|
7848
8565
|
* @param {CheckInPlayersRequest} checkInPlayersRequest
|
|
7849
8566
|
* @param {*} [options] Override http request option.
|
|
@@ -8081,7 +8798,7 @@ export const BookingsStaffApiFp = function(configuration?: Configuration) {
|
|
|
8081
8798
|
const localVarAxiosParamCreator = BookingsStaffApiAxiosParamCreator(configuration)
|
|
8082
8799
|
return {
|
|
8083
8800
|
/**
|
|
8084
|
-
* Check-in des joueurs
|
|
8801
|
+
* Check-in des joueurs only for club with payment features
|
|
8085
8802
|
* @param {string} bookingId
|
|
8086
8803
|
* @param {CheckInPlayersRequest} checkInPlayersRequest
|
|
8087
8804
|
* @param {*} [options] Override http request option.
|
|
@@ -8164,7 +8881,7 @@ export const BookingsStaffApiFactory = function (configuration?: Configuration,
|
|
|
8164
8881
|
const localVarFp = BookingsStaffApiFp(configuration)
|
|
8165
8882
|
return {
|
|
8166
8883
|
/**
|
|
8167
|
-
* Check-in des joueurs
|
|
8884
|
+
* Check-in des joueurs only for club with payment features
|
|
8168
8885
|
* @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
|
|
8169
8886
|
* @param {*} [options] Override http request option.
|
|
8170
8887
|
* @throws {RequiredError}
|
|
@@ -8319,7 +9036,7 @@ export interface BookingsStaffApiGetWeeklyBookingsRequest {
|
|
|
8319
9036
|
*/
|
|
8320
9037
|
export class BookingsStaffApi extends BaseAPI {
|
|
8321
9038
|
/**
|
|
8322
|
-
* Check-in des joueurs
|
|
9039
|
+
* Check-in des joueurs only for club with payment features
|
|
8323
9040
|
* @param {BookingsStaffApiCheckInPlayersRequest} requestParameters Request parameters.
|
|
8324
9041
|
* @param {*} [options] Override http request option.
|
|
8325
9042
|
* @throws {RequiredError}
|
|
@@ -11008,7 +11725,7 @@ export const ClubsApiFp = function(configuration?: Configuration) {
|
|
|
11008
11725
|
* @param {*} [options] Override http request option.
|
|
11009
11726
|
* @throws {RequiredError}
|
|
11010
11727
|
*/
|
|
11011
|
-
async getSportsByClubById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
11728
|
+
async getSportsByClubById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SportResponse>>> {
|
|
11012
11729
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getSportsByClubById(id, options);
|
|
11013
11730
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11014
11731
|
const localVarOperationServerBasePath = operationServerMap['ClubsApi.getSportsByClubById']?.[localVarOperationServerIndex]?.url;
|
|
@@ -11125,7 +11842,7 @@ export const ClubsApiFactory = function (configuration?: Configuration, basePath
|
|
|
11125
11842
|
* @param {*} [options] Override http request option.
|
|
11126
11843
|
* @throws {RequiredError}
|
|
11127
11844
|
*/
|
|
11128
|
-
getSportsByClubById(requestParameters: ClubsApiGetSportsByClubByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
11845
|
+
getSportsByClubById(requestParameters: ClubsApiGetSportsByClubByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<SportResponse>> {
|
|
11129
11846
|
return localVarFp.getSportsByClubById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
11130
11847
|
},
|
|
11131
11848
|
};
|
|
@@ -13609,13 +14326,49 @@ export class DefaultApi extends BaseAPI {
|
|
|
13609
14326
|
*/
|
|
13610
14327
|
export const EventsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
13611
14328
|
return {
|
|
14329
|
+
/**
|
|
14330
|
+
* Get a specific event by ID
|
|
14331
|
+
* @param {string} eventId
|
|
14332
|
+
* @param {*} [options] Override http request option.
|
|
14333
|
+
* @throws {RequiredError}
|
|
14334
|
+
*/
|
|
14335
|
+
getEventById: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14336
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
14337
|
+
assertParamExists('getEventById', 'eventId', eventId)
|
|
14338
|
+
const localVarPath = `/api/events/{eventId}`
|
|
14339
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
14340
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14341
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14342
|
+
let baseOptions;
|
|
14343
|
+
if (configuration) {
|
|
14344
|
+
baseOptions = configuration.baseOptions;
|
|
14345
|
+
}
|
|
14346
|
+
|
|
14347
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
14348
|
+
const localVarHeaderParameter = {} as any;
|
|
14349
|
+
const localVarQueryParameter = {} as any;
|
|
14350
|
+
|
|
14351
|
+
|
|
14352
|
+
|
|
14353
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14354
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14355
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14356
|
+
|
|
14357
|
+
return {
|
|
14358
|
+
url: toPathString(localVarUrlObj),
|
|
14359
|
+
options: localVarRequestOptions,
|
|
14360
|
+
};
|
|
14361
|
+
},
|
|
13612
14362
|
/**
|
|
13613
14363
|
* Get all published events for a club
|
|
13614
14364
|
* @param {string} [clubId]
|
|
14365
|
+
* @param {GetPublishedEventsByClubIdVisibilityTypeEnum} [visibilityType]
|
|
14366
|
+
* @param {GetPublishedEventsByClubIdTypeEnum} [type]
|
|
14367
|
+
* @param {string} [sportId]
|
|
13615
14368
|
* @param {*} [options] Override http request option.
|
|
13616
14369
|
* @throws {RequiredError}
|
|
13617
14370
|
*/
|
|
13618
|
-
getPublishedEventsByClubId: async (clubId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14371
|
+
getPublishedEventsByClubId: async (clubId?: string, visibilityType?: GetPublishedEventsByClubIdVisibilityTypeEnum, type?: GetPublishedEventsByClubIdTypeEnum, sportId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13619
14372
|
const localVarPath = `/api/events`;
|
|
13620
14373
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13621
14374
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -13632,6 +14385,18 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
13632
14385
|
localVarQueryParameter['clubId'] = clubId;
|
|
13633
14386
|
}
|
|
13634
14387
|
|
|
14388
|
+
if (visibilityType !== undefined) {
|
|
14389
|
+
localVarQueryParameter['visibilityType'] = visibilityType;
|
|
14390
|
+
}
|
|
14391
|
+
|
|
14392
|
+
if (type !== undefined) {
|
|
14393
|
+
localVarQueryParameter['type'] = type;
|
|
14394
|
+
}
|
|
14395
|
+
|
|
14396
|
+
if (sportId !== undefined) {
|
|
14397
|
+
localVarQueryParameter['sportId'] = sportId;
|
|
14398
|
+
}
|
|
14399
|
+
|
|
13635
14400
|
|
|
13636
14401
|
|
|
13637
14402
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -13644,18 +14409,18 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
13644
14409
|
};
|
|
13645
14410
|
},
|
|
13646
14411
|
/**
|
|
13647
|
-
*
|
|
14412
|
+
* Join an event (user)
|
|
13648
14413
|
* @param {string} eventId
|
|
13649
|
-
* @param {
|
|
14414
|
+
* @param {JoinEventRequest} joinEventRequest
|
|
13650
14415
|
* @param {*} [options] Override http request option.
|
|
13651
14416
|
* @throws {RequiredError}
|
|
13652
14417
|
*/
|
|
13653
|
-
|
|
14418
|
+
joinEvent: async (eventId: string, joinEventRequest: JoinEventRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13654
14419
|
// verify required parameter 'eventId' is not null or undefined
|
|
13655
|
-
assertParamExists('
|
|
13656
|
-
// verify required parameter '
|
|
13657
|
-
assertParamExists('
|
|
13658
|
-
const localVarPath = `/api/events/{eventId}/
|
|
14420
|
+
assertParamExists('joinEvent', 'eventId', eventId)
|
|
14421
|
+
// verify required parameter 'joinEventRequest' is not null or undefined
|
|
14422
|
+
assertParamExists('joinEvent', 'joinEventRequest', joinEventRequest)
|
|
14423
|
+
const localVarPath = `/api/events/{eventId}/join`
|
|
13659
14424
|
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
13660
14425
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13661
14426
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -13679,7 +14444,44 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
13679
14444
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13680
14445
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13681
14446
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13682
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
14447
|
+
localVarRequestOptions.data = serializeDataIfNeeded(joinEventRequest, localVarRequestOptions, configuration)
|
|
14448
|
+
|
|
14449
|
+
return {
|
|
14450
|
+
url: toPathString(localVarUrlObj),
|
|
14451
|
+
options: localVarRequestOptions,
|
|
14452
|
+
};
|
|
14453
|
+
},
|
|
14454
|
+
/**
|
|
14455
|
+
* Leave an event (user)
|
|
14456
|
+
* @param {string} eventId
|
|
14457
|
+
* @param {*} [options] Override http request option.
|
|
14458
|
+
* @throws {RequiredError}
|
|
14459
|
+
*/
|
|
14460
|
+
leaveEvent: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14461
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
14462
|
+
assertParamExists('leaveEvent', 'eventId', eventId)
|
|
14463
|
+
const localVarPath = `/api/events/{eventId}/leave`
|
|
14464
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
14465
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14466
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14467
|
+
let baseOptions;
|
|
14468
|
+
if (configuration) {
|
|
14469
|
+
baseOptions = configuration.baseOptions;
|
|
14470
|
+
}
|
|
14471
|
+
|
|
14472
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
14473
|
+
const localVarHeaderParameter = {} as any;
|
|
14474
|
+
const localVarQueryParameter = {} as any;
|
|
14475
|
+
|
|
14476
|
+
// authentication bearerAuth required
|
|
14477
|
+
// http bearer authentication required
|
|
14478
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
14479
|
+
|
|
14480
|
+
|
|
14481
|
+
|
|
14482
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14483
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14484
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13683
14485
|
|
|
13684
14486
|
return {
|
|
13685
14487
|
url: toPathString(localVarUrlObj),
|
|
@@ -13696,29 +14498,56 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
13696
14498
|
export const EventsApiFp = function(configuration?: Configuration) {
|
|
13697
14499
|
const localVarAxiosParamCreator = EventsApiAxiosParamCreator(configuration)
|
|
13698
14500
|
return {
|
|
14501
|
+
/**
|
|
14502
|
+
* Get a specific event by ID
|
|
14503
|
+
* @param {string} eventId
|
|
14504
|
+
* @param {*} [options] Override http request option.
|
|
14505
|
+
* @throws {RequiredError}
|
|
14506
|
+
*/
|
|
14507
|
+
async getEventById(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishEventResponse>> {
|
|
14508
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEventById(eventId, options);
|
|
14509
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14510
|
+
const localVarOperationServerBasePath = operationServerMap['EventsApi.getEventById']?.[localVarOperationServerIndex]?.url;
|
|
14511
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14512
|
+
},
|
|
13699
14513
|
/**
|
|
13700
14514
|
* Get all published events for a club
|
|
13701
14515
|
* @param {string} [clubId]
|
|
14516
|
+
* @param {GetPublishedEventsByClubIdVisibilityTypeEnum} [visibilityType]
|
|
14517
|
+
* @param {GetPublishedEventsByClubIdTypeEnum} [type]
|
|
14518
|
+
* @param {string} [sportId]
|
|
13702
14519
|
* @param {*} [options] Override http request option.
|
|
13703
14520
|
* @throws {RequiredError}
|
|
13704
14521
|
*/
|
|
13705
|
-
async getPublishedEventsByClubId(clubId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsListResponse>> {
|
|
13706
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPublishedEventsByClubId(clubId, options);
|
|
14522
|
+
async getPublishedEventsByClubId(clubId?: string, visibilityType?: GetPublishedEventsByClubIdVisibilityTypeEnum, type?: GetPublishedEventsByClubIdTypeEnum, sportId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventsListResponse>> {
|
|
14523
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPublishedEventsByClubId(clubId, visibilityType, type, sportId, options);
|
|
13707
14524
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13708
14525
|
const localVarOperationServerBasePath = operationServerMap['EventsApi.getPublishedEventsByClubId']?.[localVarOperationServerIndex]?.url;
|
|
13709
14526
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13710
14527
|
},
|
|
13711
14528
|
/**
|
|
13712
|
-
*
|
|
14529
|
+
* Join an event (user)
|
|
14530
|
+
* @param {string} eventId
|
|
14531
|
+
* @param {JoinEventRequest} joinEventRequest
|
|
14532
|
+
* @param {*} [options] Override http request option.
|
|
14533
|
+
* @throws {RequiredError}
|
|
14534
|
+
*/
|
|
14535
|
+
async joinEvent(eventId: string, joinEventRequest: JoinEventRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JoinEventResponse>> {
|
|
14536
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.joinEvent(eventId, joinEventRequest, options);
|
|
14537
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14538
|
+
const localVarOperationServerBasePath = operationServerMap['EventsApi.joinEvent']?.[localVarOperationServerIndex]?.url;
|
|
14539
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14540
|
+
},
|
|
14541
|
+
/**
|
|
14542
|
+
* Leave an event (user)
|
|
13713
14543
|
* @param {string} eventId
|
|
13714
|
-
* @param {any} body
|
|
13715
14544
|
* @param {*} [options] Override http request option.
|
|
13716
14545
|
* @throws {RequiredError}
|
|
13717
14546
|
*/
|
|
13718
|
-
async
|
|
13719
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
14547
|
+
async leaveEvent(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JoinEventResponse>> {
|
|
14548
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.leaveEvent(eventId, options);
|
|
13720
14549
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13721
|
-
const localVarOperationServerBasePath = operationServerMap['EventsApi.
|
|
14550
|
+
const localVarOperationServerBasePath = operationServerMap['EventsApi.leaveEvent']?.[localVarOperationServerIndex]?.url;
|
|
13722
14551
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13723
14552
|
},
|
|
13724
14553
|
}
|
|
@@ -13731,6 +14560,15 @@ export const EventsApiFp = function(configuration?: Configuration) {
|
|
|
13731
14560
|
export const EventsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
13732
14561
|
const localVarFp = EventsApiFp(configuration)
|
|
13733
14562
|
return {
|
|
14563
|
+
/**
|
|
14564
|
+
* Get a specific event by ID
|
|
14565
|
+
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
|
14566
|
+
* @param {*} [options] Override http request option.
|
|
14567
|
+
* @throws {RequiredError}
|
|
14568
|
+
*/
|
|
14569
|
+
getEventById(requestParameters: EventsApiGetEventByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse> {
|
|
14570
|
+
return localVarFp.getEventById(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
14571
|
+
},
|
|
13734
14572
|
/**
|
|
13735
14573
|
* Get all published events for a club
|
|
13736
14574
|
* @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
|
|
@@ -13738,20 +14576,43 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat
|
|
|
13738
14576
|
* @throws {RequiredError}
|
|
13739
14577
|
*/
|
|
13740
14578
|
getPublishedEventsByClubId(requestParameters: EventsApiGetPublishedEventsByClubIdRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<EventsListResponse> {
|
|
13741
|
-
return localVarFp.getPublishedEventsByClubId(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
14579
|
+
return localVarFp.getPublishedEventsByClubId(requestParameters.clubId, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(axios, basePath));
|
|
14580
|
+
},
|
|
14581
|
+
/**
|
|
14582
|
+
* Join an event (user)
|
|
14583
|
+
* @param {EventsApiJoinEventRequest} requestParameters Request parameters.
|
|
14584
|
+
* @param {*} [options] Override http request option.
|
|
14585
|
+
* @throws {RequiredError}
|
|
14586
|
+
*/
|
|
14587
|
+
joinEvent(requestParameters: EventsApiJoinEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<JoinEventResponse> {
|
|
14588
|
+
return localVarFp.joinEvent(requestParameters.eventId, requestParameters.joinEventRequest, options).then((request) => request(axios, basePath));
|
|
13742
14589
|
},
|
|
13743
14590
|
/**
|
|
13744
|
-
*
|
|
13745
|
-
* @param {
|
|
14591
|
+
* Leave an event (user)
|
|
14592
|
+
* @param {EventsApiLeaveEventRequest} requestParameters Request parameters.
|
|
13746
14593
|
* @param {*} [options] Override http request option.
|
|
13747
14594
|
* @throws {RequiredError}
|
|
13748
14595
|
*/
|
|
13749
|
-
|
|
13750
|
-
return localVarFp.
|
|
14596
|
+
leaveEvent(requestParameters: EventsApiLeaveEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<JoinEventResponse> {
|
|
14597
|
+
return localVarFp.leaveEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
13751
14598
|
},
|
|
13752
14599
|
};
|
|
13753
14600
|
};
|
|
13754
14601
|
|
|
14602
|
+
/**
|
|
14603
|
+
* Request parameters for getEventById operation in EventsApi.
|
|
14604
|
+
* @export
|
|
14605
|
+
* @interface EventsApiGetEventByIdRequest
|
|
14606
|
+
*/
|
|
14607
|
+
export interface EventsApiGetEventByIdRequest {
|
|
14608
|
+
/**
|
|
14609
|
+
*
|
|
14610
|
+
* @type {string}
|
|
14611
|
+
* @memberof EventsApiGetEventById
|
|
14612
|
+
*/
|
|
14613
|
+
readonly eventId: string
|
|
14614
|
+
}
|
|
14615
|
+
|
|
13755
14616
|
/**
|
|
13756
14617
|
* Request parameters for getPublishedEventsByClubId operation in EventsApi.
|
|
13757
14618
|
* @export
|
|
@@ -13764,27 +14625,62 @@ export interface EventsApiGetPublishedEventsByClubIdRequest {
|
|
|
13764
14625
|
* @memberof EventsApiGetPublishedEventsByClubId
|
|
13765
14626
|
*/
|
|
13766
14627
|
readonly clubId?: string
|
|
14628
|
+
|
|
14629
|
+
/**
|
|
14630
|
+
*
|
|
14631
|
+
* @type {'public' | 'private' | 'invitation'}
|
|
14632
|
+
* @memberof EventsApiGetPublishedEventsByClubId
|
|
14633
|
+
*/
|
|
14634
|
+
readonly visibilityType?: GetPublishedEventsByClubIdVisibilityTypeEnum
|
|
14635
|
+
|
|
14636
|
+
/**
|
|
14637
|
+
*
|
|
14638
|
+
* @type {'event' | 'closure'}
|
|
14639
|
+
* @memberof EventsApiGetPublishedEventsByClubId
|
|
14640
|
+
*/
|
|
14641
|
+
readonly type?: GetPublishedEventsByClubIdTypeEnum
|
|
14642
|
+
|
|
14643
|
+
/**
|
|
14644
|
+
*
|
|
14645
|
+
* @type {string}
|
|
14646
|
+
* @memberof EventsApiGetPublishedEventsByClubId
|
|
14647
|
+
*/
|
|
14648
|
+
readonly sportId?: string
|
|
13767
14649
|
}
|
|
13768
14650
|
|
|
13769
14651
|
/**
|
|
13770
|
-
* Request parameters for
|
|
14652
|
+
* Request parameters for joinEvent operation in EventsApi.
|
|
13771
14653
|
* @export
|
|
13772
|
-
* @interface
|
|
14654
|
+
* @interface EventsApiJoinEventRequest
|
|
13773
14655
|
*/
|
|
13774
|
-
export interface
|
|
14656
|
+
export interface EventsApiJoinEventRequest {
|
|
13775
14657
|
/**
|
|
13776
14658
|
*
|
|
13777
14659
|
* @type {string}
|
|
13778
|
-
* @memberof
|
|
14660
|
+
* @memberof EventsApiJoinEvent
|
|
13779
14661
|
*/
|
|
13780
14662
|
readonly eventId: string
|
|
13781
14663
|
|
|
13782
14664
|
/**
|
|
13783
14665
|
*
|
|
13784
|
-
* @type {
|
|
13785
|
-
* @memberof
|
|
14666
|
+
* @type {JoinEventRequest}
|
|
14667
|
+
* @memberof EventsApiJoinEvent
|
|
13786
14668
|
*/
|
|
13787
|
-
readonly
|
|
14669
|
+
readonly joinEventRequest: JoinEventRequest
|
|
14670
|
+
}
|
|
14671
|
+
|
|
14672
|
+
/**
|
|
14673
|
+
* Request parameters for leaveEvent operation in EventsApi.
|
|
14674
|
+
* @export
|
|
14675
|
+
* @interface EventsApiLeaveEventRequest
|
|
14676
|
+
*/
|
|
14677
|
+
export interface EventsApiLeaveEventRequest {
|
|
14678
|
+
/**
|
|
14679
|
+
*
|
|
14680
|
+
* @type {string}
|
|
14681
|
+
* @memberof EventsApiLeaveEvent
|
|
14682
|
+
*/
|
|
14683
|
+
readonly eventId: string
|
|
13788
14684
|
}
|
|
13789
14685
|
|
|
13790
14686
|
/**
|
|
@@ -13794,6 +14690,17 @@ export interface EventsApiRegisterForEventRequest {
|
|
|
13794
14690
|
* @extends {BaseAPI}
|
|
13795
14691
|
*/
|
|
13796
14692
|
export class EventsApi extends BaseAPI {
|
|
14693
|
+
/**
|
|
14694
|
+
* Get a specific event by ID
|
|
14695
|
+
* @param {EventsApiGetEventByIdRequest} requestParameters Request parameters.
|
|
14696
|
+
* @param {*} [options] Override http request option.
|
|
14697
|
+
* @throws {RequiredError}
|
|
14698
|
+
* @memberof EventsApi
|
|
14699
|
+
*/
|
|
14700
|
+
public getEventById(requestParameters: EventsApiGetEventByIdRequest, options?: RawAxiosRequestConfig) {
|
|
14701
|
+
return EventsApiFp(this.configuration).getEventById(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
14702
|
+
}
|
|
14703
|
+
|
|
13797
14704
|
/**
|
|
13798
14705
|
* Get all published events for a club
|
|
13799
14706
|
* @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
|
|
@@ -13802,21 +14709,49 @@ export class EventsApi extends BaseAPI {
|
|
|
13802
14709
|
* @memberof EventsApi
|
|
13803
14710
|
*/
|
|
13804
14711
|
public getPublishedEventsByClubId(requestParameters: EventsApiGetPublishedEventsByClubIdRequest = {}, options?: RawAxiosRequestConfig) {
|
|
13805
|
-
return EventsApiFp(this.configuration).getPublishedEventsByClubId(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
14712
|
+
return EventsApiFp(this.configuration).getPublishedEventsByClubId(requestParameters.clubId, requestParameters.visibilityType, requestParameters.type, requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
|
|
14713
|
+
}
|
|
14714
|
+
|
|
14715
|
+
/**
|
|
14716
|
+
* Join an event (user)
|
|
14717
|
+
* @param {EventsApiJoinEventRequest} requestParameters Request parameters.
|
|
14718
|
+
* @param {*} [options] Override http request option.
|
|
14719
|
+
* @throws {RequiredError}
|
|
14720
|
+
* @memberof EventsApi
|
|
14721
|
+
*/
|
|
14722
|
+
public joinEvent(requestParameters: EventsApiJoinEventRequest, options?: RawAxiosRequestConfig) {
|
|
14723
|
+
return EventsApiFp(this.configuration).joinEvent(requestParameters.eventId, requestParameters.joinEventRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13806
14724
|
}
|
|
13807
14725
|
|
|
13808
14726
|
/**
|
|
13809
|
-
*
|
|
13810
|
-
* @param {
|
|
14727
|
+
* Leave an event (user)
|
|
14728
|
+
* @param {EventsApiLeaveEventRequest} requestParameters Request parameters.
|
|
13811
14729
|
* @param {*} [options] Override http request option.
|
|
13812
14730
|
* @throws {RequiredError}
|
|
13813
14731
|
* @memberof EventsApi
|
|
13814
14732
|
*/
|
|
13815
|
-
public
|
|
13816
|
-
return EventsApiFp(this.configuration).
|
|
14733
|
+
public leaveEvent(requestParameters: EventsApiLeaveEventRequest, options?: RawAxiosRequestConfig) {
|
|
14734
|
+
return EventsApiFp(this.configuration).leaveEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
13817
14735
|
}
|
|
13818
14736
|
}
|
|
13819
14737
|
|
|
14738
|
+
/**
|
|
14739
|
+
* @export
|
|
14740
|
+
*/
|
|
14741
|
+
export const GetPublishedEventsByClubIdVisibilityTypeEnum = {
|
|
14742
|
+
Public: 'public',
|
|
14743
|
+
Private: 'private',
|
|
14744
|
+
Invitation: 'invitation'
|
|
14745
|
+
} as const;
|
|
14746
|
+
export type GetPublishedEventsByClubIdVisibilityTypeEnum = typeof GetPublishedEventsByClubIdVisibilityTypeEnum[keyof typeof GetPublishedEventsByClubIdVisibilityTypeEnum];
|
|
14747
|
+
/**
|
|
14748
|
+
* @export
|
|
14749
|
+
*/
|
|
14750
|
+
export const GetPublishedEventsByClubIdTypeEnum = {
|
|
14751
|
+
Event: 'event',
|
|
14752
|
+
Closure: 'closure'
|
|
14753
|
+
} as const;
|
|
14754
|
+
export type GetPublishedEventsByClubIdTypeEnum = typeof GetPublishedEventsByClubIdTypeEnum[keyof typeof GetPublishedEventsByClubIdTypeEnum];
|
|
13820
14755
|
|
|
13821
14756
|
|
|
13822
14757
|
/**
|
|
@@ -13970,6 +14905,49 @@ export const EventsManagerApiAxiosParamCreator = function (configuration?: Confi
|
|
|
13970
14905
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13971
14906
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13972
14907
|
|
|
14908
|
+
return {
|
|
14909
|
+
url: toPathString(localVarUrlObj),
|
|
14910
|
+
options: localVarRequestOptions,
|
|
14911
|
+
};
|
|
14912
|
+
},
|
|
14913
|
+
/**
|
|
14914
|
+
* Update an event (manager)
|
|
14915
|
+
* @param {string} eventId
|
|
14916
|
+
* @param {UpdateEventRequest} updateEventRequest
|
|
14917
|
+
* @param {*} [options] Override http request option.
|
|
14918
|
+
* @throws {RequiredError}
|
|
14919
|
+
*/
|
|
14920
|
+
updateEvent: async (eventId: string, updateEventRequest: UpdateEventRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14921
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
14922
|
+
assertParamExists('updateEvent', 'eventId', eventId)
|
|
14923
|
+
// verify required parameter 'updateEventRequest' is not null or undefined
|
|
14924
|
+
assertParamExists('updateEvent', 'updateEventRequest', updateEventRequest)
|
|
14925
|
+
const localVarPath = `/api/events/manager/updateEvent/{eventId}`
|
|
14926
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
14927
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14928
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14929
|
+
let baseOptions;
|
|
14930
|
+
if (configuration) {
|
|
14931
|
+
baseOptions = configuration.baseOptions;
|
|
14932
|
+
}
|
|
14933
|
+
|
|
14934
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
14935
|
+
const localVarHeaderParameter = {} as any;
|
|
14936
|
+
const localVarQueryParameter = {} as any;
|
|
14937
|
+
|
|
14938
|
+
// authentication bearerAuth required
|
|
14939
|
+
// http bearer authentication required
|
|
14940
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
14941
|
+
|
|
14942
|
+
|
|
14943
|
+
|
|
14944
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14945
|
+
|
|
14946
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14947
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14948
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
14949
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateEventRequest, localVarRequestOptions, configuration)
|
|
14950
|
+
|
|
13973
14951
|
return {
|
|
13974
14952
|
url: toPathString(localVarUrlObj),
|
|
13975
14953
|
options: localVarRequestOptions,
|
|
@@ -14033,6 +15011,19 @@ export const EventsManagerApiFp = function(configuration?: Configuration) {
|
|
|
14033
15011
|
const localVarOperationServerBasePath = operationServerMap['EventsManagerApi.unpublishEvent']?.[localVarOperationServerIndex]?.url;
|
|
14034
15012
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14035
15013
|
},
|
|
15014
|
+
/**
|
|
15015
|
+
* Update an event (manager)
|
|
15016
|
+
* @param {string} eventId
|
|
15017
|
+
* @param {UpdateEventRequest} updateEventRequest
|
|
15018
|
+
* @param {*} [options] Override http request option.
|
|
15019
|
+
* @throws {RequiredError}
|
|
15020
|
+
*/
|
|
15021
|
+
async updateEvent(eventId: string, updateEventRequest: UpdateEventRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishEventResponse>> {
|
|
15022
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateEvent(eventId, updateEventRequest, options);
|
|
15023
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
15024
|
+
const localVarOperationServerBasePath = operationServerMap['EventsManagerApi.updateEvent']?.[localVarOperationServerIndex]?.url;
|
|
15025
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15026
|
+
},
|
|
14036
15027
|
}
|
|
14037
15028
|
};
|
|
14038
15029
|
|
|
@@ -14079,6 +15070,15 @@ export const EventsManagerApiFactory = function (configuration?: Configuration,
|
|
|
14079
15070
|
unpublishEvent(requestParameters: EventsManagerApiUnpublishEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse> {
|
|
14080
15071
|
return localVarFp.unpublishEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
14081
15072
|
},
|
|
15073
|
+
/**
|
|
15074
|
+
* Update an event (manager)
|
|
15075
|
+
* @param {EventsManagerApiUpdateEventRequest} requestParameters Request parameters.
|
|
15076
|
+
* @param {*} [options] Override http request option.
|
|
15077
|
+
* @throws {RequiredError}
|
|
15078
|
+
*/
|
|
15079
|
+
updateEvent(requestParameters: EventsManagerApiUpdateEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublishEventResponse> {
|
|
15080
|
+
return localVarFp.updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(axios, basePath));
|
|
15081
|
+
},
|
|
14082
15082
|
};
|
|
14083
15083
|
};
|
|
14084
15084
|
|
|
@@ -14138,6 +15138,27 @@ export interface EventsManagerApiUnpublishEventRequest {
|
|
|
14138
15138
|
readonly eventId: string
|
|
14139
15139
|
}
|
|
14140
15140
|
|
|
15141
|
+
/**
|
|
15142
|
+
* Request parameters for updateEvent operation in EventsManagerApi.
|
|
15143
|
+
* @export
|
|
15144
|
+
* @interface EventsManagerApiUpdateEventRequest
|
|
15145
|
+
*/
|
|
15146
|
+
export interface EventsManagerApiUpdateEventRequest {
|
|
15147
|
+
/**
|
|
15148
|
+
*
|
|
15149
|
+
* @type {string}
|
|
15150
|
+
* @memberof EventsManagerApiUpdateEvent
|
|
15151
|
+
*/
|
|
15152
|
+
readonly eventId: string
|
|
15153
|
+
|
|
15154
|
+
/**
|
|
15155
|
+
*
|
|
15156
|
+
* @type {UpdateEventRequest}
|
|
15157
|
+
* @memberof EventsManagerApiUpdateEvent
|
|
15158
|
+
*/
|
|
15159
|
+
readonly updateEventRequest: UpdateEventRequest
|
|
15160
|
+
}
|
|
15161
|
+
|
|
14141
15162
|
/**
|
|
14142
15163
|
* EventsManagerApi - object-oriented interface
|
|
14143
15164
|
* @export
|
|
@@ -14188,6 +15209,17 @@ export class EventsManagerApi extends BaseAPI {
|
|
|
14188
15209
|
public unpublishEvent(requestParameters: EventsManagerApiUnpublishEventRequest, options?: RawAxiosRequestConfig) {
|
|
14189
15210
|
return EventsManagerApiFp(this.configuration).unpublishEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
14190
15211
|
}
|
|
15212
|
+
|
|
15213
|
+
/**
|
|
15214
|
+
* Update an event (manager)
|
|
15215
|
+
* @param {EventsManagerApiUpdateEventRequest} requestParameters Request parameters.
|
|
15216
|
+
* @param {*} [options] Override http request option.
|
|
15217
|
+
* @throws {RequiredError}
|
|
15218
|
+
* @memberof EventsManagerApi
|
|
15219
|
+
*/
|
|
15220
|
+
public updateEvent(requestParameters: EventsManagerApiUpdateEventRequest, options?: RawAxiosRequestConfig) {
|
|
15221
|
+
return EventsManagerApiFp(this.configuration).updateEvent(requestParameters.eventId, requestParameters.updateEventRequest, options).then((request) => request(this.axios, this.basePath));
|
|
15222
|
+
}
|
|
14191
15223
|
}
|
|
14192
15224
|
|
|
14193
15225
|
|
|
@@ -14300,7 +15332,7 @@ export class EventsStaffApi extends BaseAPI {
|
|
|
14300
15332
|
export const SportsManagerApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
14301
15333
|
return {
|
|
14302
15334
|
/**
|
|
14303
|
-
* Crée un sport
|
|
15335
|
+
* Crée un sport (global) avec createdBy = clubId de l\'utilisateur
|
|
14304
15336
|
* @param {CreateSportRequest} createSportRequest
|
|
14305
15337
|
* @param {*} [options] Override http request option.
|
|
14306
15338
|
* @throws {RequiredError}
|
|
@@ -14339,7 +15371,7 @@ export const SportsManagerApiAxiosParamCreator = function (configuration?: Confi
|
|
|
14339
15371
|
};
|
|
14340
15372
|
},
|
|
14341
15373
|
/**
|
|
14342
|
-
* Supprime un sport
|
|
15374
|
+
* Supprime un sport (interdit si vérifié)
|
|
14343
15375
|
* @param {string} id
|
|
14344
15376
|
* @param {*} [options] Override http request option.
|
|
14345
15377
|
* @throws {RequiredError}
|
|
@@ -14376,7 +15408,7 @@ export const SportsManagerApiAxiosParamCreator = function (configuration?: Confi
|
|
|
14376
15408
|
};
|
|
14377
15409
|
},
|
|
14378
15410
|
/**
|
|
14379
|
-
* Met à jour un sport
|
|
15411
|
+
* Met à jour un sport (interdit si vérifié)
|
|
14380
15412
|
* @param {string} id
|
|
14381
15413
|
* @param {UpdateSportRequest} updateSportRequest
|
|
14382
15414
|
* @param {*} [options] Override http request option.
|
|
@@ -14429,7 +15461,7 @@ export const SportsManagerApiFp = function(configuration?: Configuration) {
|
|
|
14429
15461
|
const localVarAxiosParamCreator = SportsManagerApiAxiosParamCreator(configuration)
|
|
14430
15462
|
return {
|
|
14431
15463
|
/**
|
|
14432
|
-
* Crée un sport
|
|
15464
|
+
* Crée un sport (global) avec createdBy = clubId de l\'utilisateur
|
|
14433
15465
|
* @param {CreateSportRequest} createSportRequest
|
|
14434
15466
|
* @param {*} [options] Override http request option.
|
|
14435
15467
|
* @throws {RequiredError}
|
|
@@ -14441,7 +15473,7 @@ export const SportsManagerApiFp = function(configuration?: Configuration) {
|
|
|
14441
15473
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14442
15474
|
},
|
|
14443
15475
|
/**
|
|
14444
|
-
* Supprime un sport
|
|
15476
|
+
* Supprime un sport (interdit si vérifié)
|
|
14445
15477
|
* @param {string} id
|
|
14446
15478
|
* @param {*} [options] Override http request option.
|
|
14447
15479
|
* @throws {RequiredError}
|
|
@@ -14453,7 +15485,7 @@ export const SportsManagerApiFp = function(configuration?: Configuration) {
|
|
|
14453
15485
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14454
15486
|
},
|
|
14455
15487
|
/**
|
|
14456
|
-
* Met à jour un sport
|
|
15488
|
+
* Met à jour un sport (interdit si vérifié)
|
|
14457
15489
|
* @param {string} id
|
|
14458
15490
|
* @param {UpdateSportRequest} updateSportRequest
|
|
14459
15491
|
* @param {*} [options] Override http request option.
|
|
@@ -14476,7 +15508,7 @@ export const SportsManagerApiFactory = function (configuration?: Configuration,
|
|
|
14476
15508
|
const localVarFp = SportsManagerApiFp(configuration)
|
|
14477
15509
|
return {
|
|
14478
15510
|
/**
|
|
14479
|
-
* Crée un sport
|
|
15511
|
+
* Crée un sport (global) avec createdBy = clubId de l\'utilisateur
|
|
14480
15512
|
* @param {SportsManagerApiCreateSportRequest} requestParameters Request parameters.
|
|
14481
15513
|
* @param {*} [options] Override http request option.
|
|
14482
15514
|
* @throws {RequiredError}
|
|
@@ -14485,7 +15517,7 @@ export const SportsManagerApiFactory = function (configuration?: Configuration,
|
|
|
14485
15517
|
return localVarFp.createSport(requestParameters.createSportRequest, options).then((request) => request(axios, basePath));
|
|
14486
15518
|
},
|
|
14487
15519
|
/**
|
|
14488
|
-
* Supprime un sport
|
|
15520
|
+
* Supprime un sport (interdit si vérifié)
|
|
14489
15521
|
* @param {SportsManagerApiDeleteSportRequest} requestParameters Request parameters.
|
|
14490
15522
|
* @param {*} [options] Override http request option.
|
|
14491
15523
|
* @throws {RequiredError}
|
|
@@ -14494,7 +15526,7 @@ export const SportsManagerApiFactory = function (configuration?: Configuration,
|
|
|
14494
15526
|
return localVarFp.deleteSport(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
14495
15527
|
},
|
|
14496
15528
|
/**
|
|
14497
|
-
* Met à jour un sport
|
|
15529
|
+
* Met à jour un sport (interdit si vérifié)
|
|
14498
15530
|
* @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
|
|
14499
15531
|
* @param {*} [options] Override http request option.
|
|
14500
15532
|
* @throws {RequiredError}
|
|
@@ -14562,7 +15594,7 @@ export interface SportsManagerApiUpdateSportRequest {
|
|
|
14562
15594
|
*/
|
|
14563
15595
|
export class SportsManagerApi extends BaseAPI {
|
|
14564
15596
|
/**
|
|
14565
|
-
* Crée un sport
|
|
15597
|
+
* Crée un sport (global) avec createdBy = clubId de l\'utilisateur
|
|
14566
15598
|
* @param {SportsManagerApiCreateSportRequest} requestParameters Request parameters.
|
|
14567
15599
|
* @param {*} [options] Override http request option.
|
|
14568
15600
|
* @throws {RequiredError}
|
|
@@ -14573,7 +15605,7 @@ export class SportsManagerApi extends BaseAPI {
|
|
|
14573
15605
|
}
|
|
14574
15606
|
|
|
14575
15607
|
/**
|
|
14576
|
-
* Supprime un sport
|
|
15608
|
+
* Supprime un sport (interdit si vérifié)
|
|
14577
15609
|
* @param {SportsManagerApiDeleteSportRequest} requestParameters Request parameters.
|
|
14578
15610
|
* @param {*} [options] Override http request option.
|
|
14579
15611
|
* @throws {RequiredError}
|
|
@@ -14584,7 +15616,7 @@ export class SportsManagerApi extends BaseAPI {
|
|
|
14584
15616
|
}
|
|
14585
15617
|
|
|
14586
15618
|
/**
|
|
14587
|
-
* Met à jour un sport
|
|
15619
|
+
* Met à jour un sport (interdit si vérifié)
|
|
14588
15620
|
* @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
|
|
14589
15621
|
* @param {*} [options] Override http request option.
|
|
14590
15622
|
* @throws {RequiredError}
|
|
@@ -14604,7 +15636,7 @@ export class SportsManagerApi extends BaseAPI {
|
|
|
14604
15636
|
export const SportsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
14605
15637
|
return {
|
|
14606
15638
|
/**
|
|
14607
|
-
* Récupère la liste des sports
|
|
15639
|
+
* Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
|
|
14608
15640
|
* @param {*} [options] Override http request option.
|
|
14609
15641
|
* @throws {RequiredError}
|
|
14610
15642
|
*/
|
|
@@ -14647,11 +15679,11 @@ export const SportsStaffApiFp = function(configuration?: Configuration) {
|
|
|
14647
15679
|
const localVarAxiosParamCreator = SportsStaffApiAxiosParamCreator(configuration)
|
|
14648
15680
|
return {
|
|
14649
15681
|
/**
|
|
14650
|
-
* Récupère la liste des sports
|
|
15682
|
+
* Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
|
|
14651
15683
|
* @param {*} [options] Override http request option.
|
|
14652
15684
|
* @throws {RequiredError}
|
|
14653
15685
|
*/
|
|
14654
|
-
async getAllSports(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
15686
|
+
async getAllSports(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SportResponse>>> {
|
|
14655
15687
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllSports(options);
|
|
14656
15688
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14657
15689
|
const localVarOperationServerBasePath = operationServerMap['SportsStaffApi.getAllSports']?.[localVarOperationServerIndex]?.url;
|
|
@@ -14668,11 +15700,11 @@ export const SportsStaffApiFactory = function (configuration?: Configuration, ba
|
|
|
14668
15700
|
const localVarFp = SportsStaffApiFp(configuration)
|
|
14669
15701
|
return {
|
|
14670
15702
|
/**
|
|
14671
|
-
* Récupère la liste des sports
|
|
15703
|
+
* Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
|
|
14672
15704
|
* @param {*} [options] Override http request option.
|
|
14673
15705
|
* @throws {RequiredError}
|
|
14674
15706
|
*/
|
|
14675
|
-
getAllSports(options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
15707
|
+
getAllSports(options?: RawAxiosRequestConfig): AxiosPromise<Array<SportResponse>> {
|
|
14676
15708
|
return localVarFp.getAllSports(options).then((request) => request(axios, basePath));
|
|
14677
15709
|
},
|
|
14678
15710
|
};
|
|
@@ -14686,7 +15718,7 @@ export const SportsStaffApiFactory = function (configuration?: Configuration, ba
|
|
|
14686
15718
|
*/
|
|
14687
15719
|
export class SportsStaffApi extends BaseAPI {
|
|
14688
15720
|
/**
|
|
14689
|
-
* Récupère la liste des sports
|
|
15721
|
+
* Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
|
|
14690
15722
|
* @param {*} [options] Override http request option.
|
|
14691
15723
|
* @throws {RequiredError}
|
|
14692
15724
|
* @memberof SportsStaffApi
|