@tennac-booking/sdk 1.0.25 → 1.0.26
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 +12 -0
- package/README.md +18 -2
- package/api.ts +1096 -108
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +653 -1
- package/dist/api.js +608 -4
- 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 +653 -1
- package/dist/esm/api.js +593 -1
- 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/CreateEventRequest.md +30 -0
- package/docs/DeleteEvent200Response.md +20 -0
- package/docs/Event.md +40 -0
- package/docs/EventBooking.md +32 -0
- package/docs/EventRegistrationRequest.md +22 -0
- package/docs/EventsApi.md +119 -0
- package/docs/GetPublishedEventsByClubId200Response.md +20 -0
- package/docs/ManagerEventResponse.md +22 -0
- package/docs/ManagerEventsApi.md +227 -0
- package/docs/RegisterForEvent201Response.md +20 -0
- package/docs/StaffEventResponse.md +20 -0
- package/docs/StaffEventsApi.md +54 -0
- package/index.ts +1 -1
- package/package.json +5 -4
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pandook API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.26
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1853,6 +1853,49 @@ export interface CreateCourtRequest {
|
|
|
1853
1853
|
}
|
|
1854
1854
|
|
|
1855
1855
|
|
|
1856
|
+
/**
|
|
1857
|
+
*
|
|
1858
|
+
* @export
|
|
1859
|
+
* @interface CreateEventRequest
|
|
1860
|
+
*/
|
|
1861
|
+
export interface CreateEventRequest {
|
|
1862
|
+
/**
|
|
1863
|
+
*
|
|
1864
|
+
* @type {string}
|
|
1865
|
+
* @memberof CreateEventRequest
|
|
1866
|
+
*/
|
|
1867
|
+
'title': string;
|
|
1868
|
+
/**
|
|
1869
|
+
*
|
|
1870
|
+
* @type {string}
|
|
1871
|
+
* @memberof CreateEventRequest
|
|
1872
|
+
*/
|
|
1873
|
+
'description'?: string;
|
|
1874
|
+
/**
|
|
1875
|
+
*
|
|
1876
|
+
* @type {string}
|
|
1877
|
+
* @memberof CreateEventRequest
|
|
1878
|
+
*/
|
|
1879
|
+
'startDate': string;
|
|
1880
|
+
/**
|
|
1881
|
+
*
|
|
1882
|
+
* @type {string}
|
|
1883
|
+
* @memberof CreateEventRequest
|
|
1884
|
+
*/
|
|
1885
|
+
'endDate': string;
|
|
1886
|
+
/**
|
|
1887
|
+
*
|
|
1888
|
+
* @type {Array<number>}
|
|
1889
|
+
* @memberof CreateEventRequest
|
|
1890
|
+
*/
|
|
1891
|
+
'courts': Array<number>;
|
|
1892
|
+
/**
|
|
1893
|
+
*
|
|
1894
|
+
* @type {boolean}
|
|
1895
|
+
* @memberof CreateEventRequest
|
|
1896
|
+
*/
|
|
1897
|
+
'isActive'?: boolean;
|
|
1898
|
+
}
|
|
1856
1899
|
/**
|
|
1857
1900
|
*
|
|
1858
1901
|
* @export
|
|
@@ -2014,6 +2057,19 @@ export interface DeleteClubSettingsRequest {
|
|
|
2014
2057
|
*/
|
|
2015
2058
|
'clubId': string;
|
|
2016
2059
|
}
|
|
2060
|
+
/**
|
|
2061
|
+
*
|
|
2062
|
+
* @export
|
|
2063
|
+
* @interface DeleteEvent200Response
|
|
2064
|
+
*/
|
|
2065
|
+
export interface DeleteEvent200Response {
|
|
2066
|
+
/**
|
|
2067
|
+
*
|
|
2068
|
+
* @type {string}
|
|
2069
|
+
* @memberof DeleteEvent200Response
|
|
2070
|
+
*/
|
|
2071
|
+
'message'?: string;
|
|
2072
|
+
}
|
|
2017
2073
|
/**
|
|
2018
2074
|
*
|
|
2019
2075
|
* @export
|
|
@@ -2053,6 +2109,156 @@ export interface DeleteSport200Response {
|
|
|
2053
2109
|
*/
|
|
2054
2110
|
'message'?: string;
|
|
2055
2111
|
}
|
|
2112
|
+
/**
|
|
2113
|
+
*
|
|
2114
|
+
* @export
|
|
2115
|
+
* @interface Event
|
|
2116
|
+
*/
|
|
2117
|
+
export interface Event {
|
|
2118
|
+
/**
|
|
2119
|
+
*
|
|
2120
|
+
* @type {string}
|
|
2121
|
+
* @memberof Event
|
|
2122
|
+
*/
|
|
2123
|
+
'_id'?: string;
|
|
2124
|
+
/**
|
|
2125
|
+
*
|
|
2126
|
+
* @type {string}
|
|
2127
|
+
* @memberof Event
|
|
2128
|
+
*/
|
|
2129
|
+
'clubId'?: string;
|
|
2130
|
+
/**
|
|
2131
|
+
*
|
|
2132
|
+
* @type {string}
|
|
2133
|
+
* @memberof Event
|
|
2134
|
+
*/
|
|
2135
|
+
'title'?: string;
|
|
2136
|
+
/**
|
|
2137
|
+
*
|
|
2138
|
+
* @type {string}
|
|
2139
|
+
* @memberof Event
|
|
2140
|
+
*/
|
|
2141
|
+
'description'?: string;
|
|
2142
|
+
/**
|
|
2143
|
+
*
|
|
2144
|
+
* @type {string}
|
|
2145
|
+
* @memberof Event
|
|
2146
|
+
*/
|
|
2147
|
+
'startDate'?: string;
|
|
2148
|
+
/**
|
|
2149
|
+
*
|
|
2150
|
+
* @type {string}
|
|
2151
|
+
* @memberof Event
|
|
2152
|
+
*/
|
|
2153
|
+
'endDate'?: string;
|
|
2154
|
+
/**
|
|
2155
|
+
*
|
|
2156
|
+
* @type {Array<string>}
|
|
2157
|
+
* @memberof Event
|
|
2158
|
+
*/
|
|
2159
|
+
'courts'?: Array<string>;
|
|
2160
|
+
/**
|
|
2161
|
+
*
|
|
2162
|
+
* @type {boolean}
|
|
2163
|
+
* @memberof Event
|
|
2164
|
+
*/
|
|
2165
|
+
'isActive'?: boolean;
|
|
2166
|
+
/**
|
|
2167
|
+
*
|
|
2168
|
+
* @type {string}
|
|
2169
|
+
* @memberof Event
|
|
2170
|
+
*/
|
|
2171
|
+
'createdBy'?: string;
|
|
2172
|
+
/**
|
|
2173
|
+
*
|
|
2174
|
+
* @type {string}
|
|
2175
|
+
* @memberof Event
|
|
2176
|
+
*/
|
|
2177
|
+
'createdAt'?: string;
|
|
2178
|
+
/**
|
|
2179
|
+
*
|
|
2180
|
+
* @type {string}
|
|
2181
|
+
* @memberof Event
|
|
2182
|
+
*/
|
|
2183
|
+
'updatedAt'?: string;
|
|
2184
|
+
}
|
|
2185
|
+
/**
|
|
2186
|
+
*
|
|
2187
|
+
* @export
|
|
2188
|
+
* @interface EventBooking
|
|
2189
|
+
*/
|
|
2190
|
+
export interface EventBooking {
|
|
2191
|
+
/**
|
|
2192
|
+
*
|
|
2193
|
+
* @type {string}
|
|
2194
|
+
* @memberof EventBooking
|
|
2195
|
+
*/
|
|
2196
|
+
'_id'?: string;
|
|
2197
|
+
/**
|
|
2198
|
+
*
|
|
2199
|
+
* @type {string}
|
|
2200
|
+
* @memberof EventBooking
|
|
2201
|
+
*/
|
|
2202
|
+
'eventId'?: string;
|
|
2203
|
+
/**
|
|
2204
|
+
*
|
|
2205
|
+
* @type {string}
|
|
2206
|
+
* @memberof EventBooking
|
|
2207
|
+
*/
|
|
2208
|
+
'teamName'?: string;
|
|
2209
|
+
/**
|
|
2210
|
+
*
|
|
2211
|
+
* @type {Array<string>}
|
|
2212
|
+
* @memberof EventBooking
|
|
2213
|
+
*/
|
|
2214
|
+
'players'?: Array<string>;
|
|
2215
|
+
/**
|
|
2216
|
+
*
|
|
2217
|
+
* @type {string}
|
|
2218
|
+
* @memberof EventBooking
|
|
2219
|
+
*/
|
|
2220
|
+
'status'?: EventBookingStatusEnum;
|
|
2221
|
+
/**
|
|
2222
|
+
*
|
|
2223
|
+
* @type {string}
|
|
2224
|
+
* @memberof EventBooking
|
|
2225
|
+
*/
|
|
2226
|
+
'createdAt'?: string;
|
|
2227
|
+
/**
|
|
2228
|
+
*
|
|
2229
|
+
* @type {string}
|
|
2230
|
+
* @memberof EventBooking
|
|
2231
|
+
*/
|
|
2232
|
+
'updatedAt'?: string;
|
|
2233
|
+
}
|
|
2234
|
+
|
|
2235
|
+
export const EventBookingStatusEnum = {
|
|
2236
|
+
Pending: 'pending',
|
|
2237
|
+
Confirmed: 'confirmed',
|
|
2238
|
+
Cancelled: 'cancelled'
|
|
2239
|
+
} as const;
|
|
2240
|
+
|
|
2241
|
+
export type EventBookingStatusEnum = typeof EventBookingStatusEnum[keyof typeof EventBookingStatusEnum];
|
|
2242
|
+
|
|
2243
|
+
/**
|
|
2244
|
+
*
|
|
2245
|
+
* @export
|
|
2246
|
+
* @interface EventRegistrationRequest
|
|
2247
|
+
*/
|
|
2248
|
+
export interface EventRegistrationRequest {
|
|
2249
|
+
/**
|
|
2250
|
+
*
|
|
2251
|
+
* @type {string}
|
|
2252
|
+
* @memberof EventRegistrationRequest
|
|
2253
|
+
*/
|
|
2254
|
+
'teamName': string;
|
|
2255
|
+
/**
|
|
2256
|
+
*
|
|
2257
|
+
* @type {Array<string>}
|
|
2258
|
+
* @memberof EventRegistrationRequest
|
|
2259
|
+
*/
|
|
2260
|
+
'players': Array<string>;
|
|
2261
|
+
}
|
|
2056
2262
|
/**
|
|
2057
2263
|
*
|
|
2058
2264
|
* @export
|
|
@@ -2279,6 +2485,19 @@ export interface GetNumberOfClubUsers200Response {
|
|
|
2279
2485
|
*/
|
|
2280
2486
|
'count'?: number;
|
|
2281
2487
|
}
|
|
2488
|
+
/**
|
|
2489
|
+
*
|
|
2490
|
+
* @export
|
|
2491
|
+
* @interface GetPublishedEventsByClubId200Response
|
|
2492
|
+
*/
|
|
2493
|
+
export interface GetPublishedEventsByClubId200Response {
|
|
2494
|
+
/**
|
|
2495
|
+
*
|
|
2496
|
+
* @type {Array<Event>}
|
|
2497
|
+
* @memberof GetPublishedEventsByClubId200Response
|
|
2498
|
+
*/
|
|
2499
|
+
'events'?: Array<Event>;
|
|
2500
|
+
}
|
|
2282
2501
|
/**
|
|
2283
2502
|
*
|
|
2284
2503
|
* @export
|
|
@@ -2698,6 +2917,25 @@ export const ManagerCancelBookingResponseBookingStatusEnum = {
|
|
|
2698
2917
|
|
|
2699
2918
|
export type ManagerCancelBookingResponseBookingStatusEnum = typeof ManagerCancelBookingResponseBookingStatusEnum[keyof typeof ManagerCancelBookingResponseBookingStatusEnum];
|
|
2700
2919
|
|
|
2920
|
+
/**
|
|
2921
|
+
*
|
|
2922
|
+
* @export
|
|
2923
|
+
* @interface ManagerEventResponse
|
|
2924
|
+
*/
|
|
2925
|
+
export interface ManagerEventResponse {
|
|
2926
|
+
/**
|
|
2927
|
+
*
|
|
2928
|
+
* @type {Event}
|
|
2929
|
+
* @memberof ManagerEventResponse
|
|
2930
|
+
*/
|
|
2931
|
+
'event'?: Event;
|
|
2932
|
+
/**
|
|
2933
|
+
*
|
|
2934
|
+
* @type {string}
|
|
2935
|
+
* @memberof ManagerEventResponse
|
|
2936
|
+
*/
|
|
2937
|
+
'message'?: string;
|
|
2938
|
+
}
|
|
2701
2939
|
/**
|
|
2702
2940
|
*
|
|
2703
2941
|
* @export
|
|
@@ -3008,6 +3246,19 @@ export interface RefreshTokenResponse {
|
|
|
3008
3246
|
*/
|
|
3009
3247
|
'refreshToken'?: string;
|
|
3010
3248
|
}
|
|
3249
|
+
/**
|
|
3250
|
+
*
|
|
3251
|
+
* @export
|
|
3252
|
+
* @interface RegisterForEvent201Response
|
|
3253
|
+
*/
|
|
3254
|
+
export interface RegisterForEvent201Response {
|
|
3255
|
+
/**
|
|
3256
|
+
*
|
|
3257
|
+
* @type {EventBooking}
|
|
3258
|
+
* @memberof RegisterForEvent201Response
|
|
3259
|
+
*/
|
|
3260
|
+
'booking'?: EventBooking;
|
|
3261
|
+
}
|
|
3011
3262
|
/**
|
|
3012
3263
|
*
|
|
3013
3264
|
* @export
|
|
@@ -3343,6 +3594,19 @@ export interface SportsResponse {
|
|
|
3343
3594
|
*/
|
|
3344
3595
|
'total'?: number;
|
|
3345
3596
|
}
|
|
3597
|
+
/**
|
|
3598
|
+
*
|
|
3599
|
+
* @export
|
|
3600
|
+
* @interface StaffEventResponse
|
|
3601
|
+
*/
|
|
3602
|
+
export interface StaffEventResponse {
|
|
3603
|
+
/**
|
|
3604
|
+
*
|
|
3605
|
+
* @type {Array<Event>}
|
|
3606
|
+
* @memberof StaffEventResponse
|
|
3607
|
+
*/
|
|
3608
|
+
'events'?: Array<Event>;
|
|
3609
|
+
}
|
|
3346
3610
|
/**
|
|
3347
3611
|
*
|
|
3348
3612
|
* @export
|
|
@@ -6706,23 +6970,22 @@ export type GetInvoicesStatusEnum = typeof GetInvoicesStatusEnum[keyof typeof Ge
|
|
|
6706
6970
|
|
|
6707
6971
|
|
|
6708
6972
|
/**
|
|
6709
|
-
*
|
|
6973
|
+
* EventsApi - axios parameter creator
|
|
6710
6974
|
* @export
|
|
6711
6975
|
*/
|
|
6712
|
-
export const
|
|
6976
|
+
export const EventsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
6713
6977
|
return {
|
|
6714
6978
|
/**
|
|
6715
|
-
*
|
|
6716
|
-
* @summary
|
|
6717
|
-
* @param {string}
|
|
6979
|
+
*
|
|
6980
|
+
* @summary Get all published events for a club
|
|
6981
|
+
* @param {string} clubId
|
|
6718
6982
|
* @param {*} [options] Override http request option.
|
|
6719
6983
|
* @throws {RequiredError}
|
|
6720
6984
|
*/
|
|
6721
|
-
|
|
6722
|
-
// verify required parameter '
|
|
6723
|
-
assertParamExists('
|
|
6724
|
-
const localVarPath = `/api/
|
|
6725
|
-
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
6985
|
+
getPublishedEventsByClubId: async (clubId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6986
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
6987
|
+
assertParamExists('getPublishedEventsByClubId', 'clubId', clubId)
|
|
6988
|
+
const localVarPath = `/api/events`;
|
|
6726
6989
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6727
6990
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6728
6991
|
let baseOptions;
|
|
@@ -6730,7 +6993,7 @@ export const ManagerBookingsApiAxiosParamCreator = function (configuration?: Con
|
|
|
6730
6993
|
baseOptions = configuration.baseOptions;
|
|
6731
6994
|
}
|
|
6732
6995
|
|
|
6733
|
-
const localVarRequestOptions = { method: '
|
|
6996
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
6734
6997
|
const localVarHeaderParameter = {} as any;
|
|
6735
6998
|
const localVarQueryParameter = {} as any;
|
|
6736
6999
|
|
|
@@ -6738,6 +7001,10 @@ export const ManagerBookingsApiAxiosParamCreator = function (configuration?: Con
|
|
|
6738
7001
|
// http bearer authentication required
|
|
6739
7002
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
6740
7003
|
|
|
7004
|
+
if (clubId !== undefined) {
|
|
7005
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
7006
|
+
}
|
|
7007
|
+
|
|
6741
7008
|
|
|
6742
7009
|
|
|
6743
7010
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -6750,20 +7017,20 @@ export const ManagerBookingsApiAxiosParamCreator = function (configuration?: Con
|
|
|
6750
7017
|
};
|
|
6751
7018
|
},
|
|
6752
7019
|
/**
|
|
6753
|
-
*
|
|
6754
|
-
* @summary
|
|
6755
|
-
* @param {string}
|
|
6756
|
-
* @param {
|
|
7020
|
+
*
|
|
7021
|
+
* @summary Register for an event
|
|
7022
|
+
* @param {string} eventId
|
|
7023
|
+
* @param {EventRegistrationRequest} eventRegistrationRequest
|
|
6757
7024
|
* @param {*} [options] Override http request option.
|
|
6758
7025
|
* @throws {RequiredError}
|
|
6759
7026
|
*/
|
|
6760
|
-
|
|
6761
|
-
// verify required parameter '
|
|
6762
|
-
assertParamExists('
|
|
6763
|
-
// verify required parameter '
|
|
6764
|
-
assertParamExists('
|
|
6765
|
-
const localVarPath = `/api/
|
|
6766
|
-
.replace(`{${"
|
|
7027
|
+
registerForEvent: async (eventId: string, eventRegistrationRequest: EventRegistrationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7028
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
7029
|
+
assertParamExists('registerForEvent', 'eventId', eventId)
|
|
7030
|
+
// verify required parameter 'eventRegistrationRequest' is not null or undefined
|
|
7031
|
+
assertParamExists('registerForEvent', 'eventRegistrationRequest', eventRegistrationRequest)
|
|
7032
|
+
const localVarPath = `/api/events/{eventId}/register`
|
|
7033
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
6767
7034
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6768
7035
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6769
7036
|
let baseOptions;
|
|
@@ -6771,7 +7038,7 @@ export const ManagerBookingsApiAxiosParamCreator = function (configuration?: Con
|
|
|
6771
7038
|
baseOptions = configuration.baseOptions;
|
|
6772
7039
|
}
|
|
6773
7040
|
|
|
6774
|
-
const localVarRequestOptions = { method: '
|
|
7041
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
6775
7042
|
const localVarHeaderParameter = {} as any;
|
|
6776
7043
|
const localVarQueryParameter = {} as any;
|
|
6777
7044
|
|
|
@@ -6786,7 +7053,7 @@ export const ManagerBookingsApiAxiosParamCreator = function (configuration?: Con
|
|
|
6786
7053
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6787
7054
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6788
7055
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6789
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
7056
|
+
localVarRequestOptions.data = serializeDataIfNeeded(eventRegistrationRequest, localVarRequestOptions, configuration)
|
|
6790
7057
|
|
|
6791
7058
|
return {
|
|
6792
7059
|
url: toPathString(localVarUrlObj),
|
|
@@ -6797,74 +7064,301 @@ export const ManagerBookingsApiAxiosParamCreator = function (configuration?: Con
|
|
|
6797
7064
|
};
|
|
6798
7065
|
|
|
6799
7066
|
/**
|
|
6800
|
-
*
|
|
7067
|
+
* EventsApi - functional programming interface
|
|
6801
7068
|
* @export
|
|
6802
7069
|
*/
|
|
6803
|
-
export const
|
|
6804
|
-
const localVarAxiosParamCreator =
|
|
7070
|
+
export const EventsApiFp = function(configuration?: Configuration) {
|
|
7071
|
+
const localVarAxiosParamCreator = EventsApiAxiosParamCreator(configuration)
|
|
6805
7072
|
return {
|
|
6806
7073
|
/**
|
|
6807
|
-
*
|
|
6808
|
-
* @summary
|
|
6809
|
-
* @param {string}
|
|
7074
|
+
*
|
|
7075
|
+
* @summary Get all published events for a club
|
|
7076
|
+
* @param {string} clubId
|
|
6810
7077
|
* @param {*} [options] Override http request option.
|
|
6811
7078
|
* @throws {RequiredError}
|
|
6812
7079
|
*/
|
|
6813
|
-
async
|
|
6814
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
7080
|
+
async getPublishedEventsByClubId(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPublishedEventsByClubId200Response>> {
|
|
7081
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPublishedEventsByClubId(clubId, options);
|
|
6815
7082
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6816
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
7083
|
+
const localVarOperationServerBasePath = operationServerMap['EventsApi.getPublishedEventsByClubId']?.[localVarOperationServerIndex]?.url;
|
|
6817
7084
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6818
7085
|
},
|
|
6819
7086
|
/**
|
|
6820
|
-
*
|
|
6821
|
-
* @summary
|
|
6822
|
-
* @param {string}
|
|
6823
|
-
* @param {
|
|
7087
|
+
*
|
|
7088
|
+
* @summary Register for an event
|
|
7089
|
+
* @param {string} eventId
|
|
7090
|
+
* @param {EventRegistrationRequest} eventRegistrationRequest
|
|
6824
7091
|
* @param {*} [options] Override http request option.
|
|
6825
7092
|
* @throws {RequiredError}
|
|
6826
7093
|
*/
|
|
6827
|
-
async
|
|
6828
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
7094
|
+
async registerForEvent(eventId: string, eventRegistrationRequest: EventRegistrationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegisterForEvent201Response>> {
|
|
7095
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.registerForEvent(eventId, eventRegistrationRequest, options);
|
|
6829
7096
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6830
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
7097
|
+
const localVarOperationServerBasePath = operationServerMap['EventsApi.registerForEvent']?.[localVarOperationServerIndex]?.url;
|
|
6831
7098
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6832
7099
|
},
|
|
6833
7100
|
}
|
|
6834
7101
|
};
|
|
6835
7102
|
|
|
6836
7103
|
/**
|
|
6837
|
-
*
|
|
7104
|
+
* EventsApi - factory interface
|
|
6838
7105
|
* @export
|
|
6839
7106
|
*/
|
|
6840
|
-
export const
|
|
6841
|
-
const localVarFp =
|
|
7107
|
+
export const EventsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
7108
|
+
const localVarFp = EventsApiFp(configuration)
|
|
6842
7109
|
return {
|
|
6843
7110
|
/**
|
|
6844
|
-
*
|
|
6845
|
-
* @summary
|
|
6846
|
-
* @param {
|
|
7111
|
+
*
|
|
7112
|
+
* @summary Get all published events for a club
|
|
7113
|
+
* @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
|
|
6847
7114
|
* @param {*} [options] Override http request option.
|
|
6848
7115
|
* @throws {RequiredError}
|
|
6849
7116
|
*/
|
|
6850
|
-
|
|
6851
|
-
return localVarFp.
|
|
7117
|
+
getPublishedEventsByClubId(requestParameters: EventsApiGetPublishedEventsByClubIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetPublishedEventsByClubId200Response> {
|
|
7118
|
+
return localVarFp.getPublishedEventsByClubId(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
6852
7119
|
},
|
|
6853
7120
|
/**
|
|
6854
|
-
*
|
|
6855
|
-
* @summary
|
|
6856
|
-
* @param {
|
|
7121
|
+
*
|
|
7122
|
+
* @summary Register for an event
|
|
7123
|
+
* @param {EventsApiRegisterForEventRequest} requestParameters Request parameters.
|
|
6857
7124
|
* @param {*} [options] Override http request option.
|
|
6858
7125
|
* @throws {RequiredError}
|
|
6859
7126
|
*/
|
|
6860
|
-
|
|
6861
|
-
return localVarFp.
|
|
7127
|
+
registerForEvent(requestParameters: EventsApiRegisterForEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<RegisterForEvent201Response> {
|
|
7128
|
+
return localVarFp.registerForEvent(requestParameters.eventId, requestParameters.eventRegistrationRequest, options).then((request) => request(axios, basePath));
|
|
6862
7129
|
},
|
|
6863
7130
|
};
|
|
6864
7131
|
};
|
|
6865
7132
|
|
|
6866
7133
|
/**
|
|
6867
|
-
* Request parameters for
|
|
7134
|
+
* Request parameters for getPublishedEventsByClubId operation in EventsApi.
|
|
7135
|
+
* @export
|
|
7136
|
+
* @interface EventsApiGetPublishedEventsByClubIdRequest
|
|
7137
|
+
*/
|
|
7138
|
+
export interface EventsApiGetPublishedEventsByClubIdRequest {
|
|
7139
|
+
/**
|
|
7140
|
+
*
|
|
7141
|
+
* @type {string}
|
|
7142
|
+
* @memberof EventsApiGetPublishedEventsByClubId
|
|
7143
|
+
*/
|
|
7144
|
+
readonly clubId: string
|
|
7145
|
+
}
|
|
7146
|
+
|
|
7147
|
+
/**
|
|
7148
|
+
* Request parameters for registerForEvent operation in EventsApi.
|
|
7149
|
+
* @export
|
|
7150
|
+
* @interface EventsApiRegisterForEventRequest
|
|
7151
|
+
*/
|
|
7152
|
+
export interface EventsApiRegisterForEventRequest {
|
|
7153
|
+
/**
|
|
7154
|
+
*
|
|
7155
|
+
* @type {string}
|
|
7156
|
+
* @memberof EventsApiRegisterForEvent
|
|
7157
|
+
*/
|
|
7158
|
+
readonly eventId: string
|
|
7159
|
+
|
|
7160
|
+
/**
|
|
7161
|
+
*
|
|
7162
|
+
* @type {EventRegistrationRequest}
|
|
7163
|
+
* @memberof EventsApiRegisterForEvent
|
|
7164
|
+
*/
|
|
7165
|
+
readonly eventRegistrationRequest: EventRegistrationRequest
|
|
7166
|
+
}
|
|
7167
|
+
|
|
7168
|
+
/**
|
|
7169
|
+
* EventsApi - object-oriented interface
|
|
7170
|
+
* @export
|
|
7171
|
+
* @class EventsApi
|
|
7172
|
+
* @extends {BaseAPI}
|
|
7173
|
+
*/
|
|
7174
|
+
export class EventsApi extends BaseAPI {
|
|
7175
|
+
/**
|
|
7176
|
+
*
|
|
7177
|
+
* @summary Get all published events for a club
|
|
7178
|
+
* @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
|
|
7179
|
+
* @param {*} [options] Override http request option.
|
|
7180
|
+
* @throws {RequiredError}
|
|
7181
|
+
* @memberof EventsApi
|
|
7182
|
+
*/
|
|
7183
|
+
public getPublishedEventsByClubId(requestParameters: EventsApiGetPublishedEventsByClubIdRequest, options?: RawAxiosRequestConfig) {
|
|
7184
|
+
return EventsApiFp(this.configuration).getPublishedEventsByClubId(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
7185
|
+
}
|
|
7186
|
+
|
|
7187
|
+
/**
|
|
7188
|
+
*
|
|
7189
|
+
* @summary Register for an event
|
|
7190
|
+
* @param {EventsApiRegisterForEventRequest} requestParameters Request parameters.
|
|
7191
|
+
* @param {*} [options] Override http request option.
|
|
7192
|
+
* @throws {RequiredError}
|
|
7193
|
+
* @memberof EventsApi
|
|
7194
|
+
*/
|
|
7195
|
+
public registerForEvent(requestParameters: EventsApiRegisterForEventRequest, options?: RawAxiosRequestConfig) {
|
|
7196
|
+
return EventsApiFp(this.configuration).registerForEvent(requestParameters.eventId, requestParameters.eventRegistrationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7197
|
+
}
|
|
7198
|
+
}
|
|
7199
|
+
|
|
7200
|
+
|
|
7201
|
+
|
|
7202
|
+
/**
|
|
7203
|
+
* ManagerBookingsApi - axios parameter creator
|
|
7204
|
+
* @export
|
|
7205
|
+
*/
|
|
7206
|
+
export const ManagerBookingsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
7207
|
+
return {
|
|
7208
|
+
/**
|
|
7209
|
+
* Applique les frais de no-show à une réservation. Capture automatiquement les paiements autorisés et charge le créateur pour le montant manquant.
|
|
7210
|
+
* @summary Appliquer les frais de no-show
|
|
7211
|
+
* @param {string} bookingId ID MongoDB de la réservation
|
|
7212
|
+
* @param {*} [options] Override http request option.
|
|
7213
|
+
* @throws {RequiredError}
|
|
7214
|
+
*/
|
|
7215
|
+
applyNoShowFee: async (bookingId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7216
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
7217
|
+
assertParamExists('applyNoShowFee', 'bookingId', bookingId)
|
|
7218
|
+
const localVarPath = `/api/bookings/{bookingId}/apply-noshow-fee`
|
|
7219
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
7220
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7221
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7222
|
+
let baseOptions;
|
|
7223
|
+
if (configuration) {
|
|
7224
|
+
baseOptions = configuration.baseOptions;
|
|
7225
|
+
}
|
|
7226
|
+
|
|
7227
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
7228
|
+
const localVarHeaderParameter = {} as any;
|
|
7229
|
+
const localVarQueryParameter = {} as any;
|
|
7230
|
+
|
|
7231
|
+
// authentication bearerAuth required
|
|
7232
|
+
// http bearer authentication required
|
|
7233
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
7234
|
+
|
|
7235
|
+
|
|
7236
|
+
|
|
7237
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7238
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7239
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7240
|
+
|
|
7241
|
+
return {
|
|
7242
|
+
url: toPathString(localVarUrlObj),
|
|
7243
|
+
options: localVarRequestOptions,
|
|
7244
|
+
};
|
|
7245
|
+
},
|
|
7246
|
+
/**
|
|
7247
|
+
* Permet à un gestionnaire d\'annuler n\'importe quelle réservation avec une raison obligatoire. Effectue un remboursement automatique si le paiement a été fait en ligne.
|
|
7248
|
+
* @summary Annuler une réservation (gestionnaire)
|
|
7249
|
+
* @param {string} bookingId ID MongoDB de la réservation à annuler
|
|
7250
|
+
* @param {ManagerCancelBookingRequest} managerCancelBookingRequest
|
|
7251
|
+
* @param {*} [options] Override http request option.
|
|
7252
|
+
* @throws {RequiredError}
|
|
7253
|
+
*/
|
|
7254
|
+
managerCancelBooking: async (bookingId: string, managerCancelBookingRequest: ManagerCancelBookingRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7255
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
7256
|
+
assertParamExists('managerCancelBooking', 'bookingId', bookingId)
|
|
7257
|
+
// verify required parameter 'managerCancelBookingRequest' is not null or undefined
|
|
7258
|
+
assertParamExists('managerCancelBooking', 'managerCancelBookingRequest', managerCancelBookingRequest)
|
|
7259
|
+
const localVarPath = `/api/bookings/{bookingId}/manager-cancel`
|
|
7260
|
+
.replace(`{${"bookingId"}}`, encodeURIComponent(String(bookingId)));
|
|
7261
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7262
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7263
|
+
let baseOptions;
|
|
7264
|
+
if (configuration) {
|
|
7265
|
+
baseOptions = configuration.baseOptions;
|
|
7266
|
+
}
|
|
7267
|
+
|
|
7268
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
7269
|
+
const localVarHeaderParameter = {} as any;
|
|
7270
|
+
const localVarQueryParameter = {} as any;
|
|
7271
|
+
|
|
7272
|
+
// authentication bearerAuth required
|
|
7273
|
+
// http bearer authentication required
|
|
7274
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
7275
|
+
|
|
7276
|
+
|
|
7277
|
+
|
|
7278
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7279
|
+
|
|
7280
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7281
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7282
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7283
|
+
localVarRequestOptions.data = serializeDataIfNeeded(managerCancelBookingRequest, localVarRequestOptions, configuration)
|
|
7284
|
+
|
|
7285
|
+
return {
|
|
7286
|
+
url: toPathString(localVarUrlObj),
|
|
7287
|
+
options: localVarRequestOptions,
|
|
7288
|
+
};
|
|
7289
|
+
},
|
|
7290
|
+
}
|
|
7291
|
+
};
|
|
7292
|
+
|
|
7293
|
+
/**
|
|
7294
|
+
* ManagerBookingsApi - functional programming interface
|
|
7295
|
+
* @export
|
|
7296
|
+
*/
|
|
7297
|
+
export const ManagerBookingsApiFp = function(configuration?: Configuration) {
|
|
7298
|
+
const localVarAxiosParamCreator = ManagerBookingsApiAxiosParamCreator(configuration)
|
|
7299
|
+
return {
|
|
7300
|
+
/**
|
|
7301
|
+
* Applique les frais de no-show à une réservation. Capture automatiquement les paiements autorisés et charge le créateur pour le montant manquant.
|
|
7302
|
+
* @summary Appliquer les frais de no-show
|
|
7303
|
+
* @param {string} bookingId ID MongoDB de la réservation
|
|
7304
|
+
* @param {*} [options] Override http request option.
|
|
7305
|
+
* @throws {RequiredError}
|
|
7306
|
+
*/
|
|
7307
|
+
async applyNoShowFee(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NoShowFeeResponse>> {
|
|
7308
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.applyNoShowFee(bookingId, options);
|
|
7309
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7310
|
+
const localVarOperationServerBasePath = operationServerMap['ManagerBookingsApi.applyNoShowFee']?.[localVarOperationServerIndex]?.url;
|
|
7311
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7312
|
+
},
|
|
7313
|
+
/**
|
|
7314
|
+
* Permet à un gestionnaire d\'annuler n\'importe quelle réservation avec une raison obligatoire. Effectue un remboursement automatique si le paiement a été fait en ligne.
|
|
7315
|
+
* @summary Annuler une réservation (gestionnaire)
|
|
7316
|
+
* @param {string} bookingId ID MongoDB de la réservation à annuler
|
|
7317
|
+
* @param {ManagerCancelBookingRequest} managerCancelBookingRequest
|
|
7318
|
+
* @param {*} [options] Override http request option.
|
|
7319
|
+
* @throws {RequiredError}
|
|
7320
|
+
*/
|
|
7321
|
+
async managerCancelBooking(bookingId: string, managerCancelBookingRequest: ManagerCancelBookingRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManagerCancelBookingResponse>> {
|
|
7322
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.managerCancelBooking(bookingId, managerCancelBookingRequest, options);
|
|
7323
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7324
|
+
const localVarOperationServerBasePath = operationServerMap['ManagerBookingsApi.managerCancelBooking']?.[localVarOperationServerIndex]?.url;
|
|
7325
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7326
|
+
},
|
|
7327
|
+
}
|
|
7328
|
+
};
|
|
7329
|
+
|
|
7330
|
+
/**
|
|
7331
|
+
* ManagerBookingsApi - factory interface
|
|
7332
|
+
* @export
|
|
7333
|
+
*/
|
|
7334
|
+
export const ManagerBookingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
7335
|
+
const localVarFp = ManagerBookingsApiFp(configuration)
|
|
7336
|
+
return {
|
|
7337
|
+
/**
|
|
7338
|
+
* Applique les frais de no-show à une réservation. Capture automatiquement les paiements autorisés et charge le créateur pour le montant manquant.
|
|
7339
|
+
* @summary Appliquer les frais de no-show
|
|
7340
|
+
* @param {ManagerBookingsApiApplyNoShowFeeRequest} requestParameters Request parameters.
|
|
7341
|
+
* @param {*} [options] Override http request option.
|
|
7342
|
+
* @throws {RequiredError}
|
|
7343
|
+
*/
|
|
7344
|
+
applyNoShowFee(requestParameters: ManagerBookingsApiApplyNoShowFeeRequest, options?: RawAxiosRequestConfig): AxiosPromise<NoShowFeeResponse> {
|
|
7345
|
+
return localVarFp.applyNoShowFee(requestParameters.bookingId, options).then((request) => request(axios, basePath));
|
|
7346
|
+
},
|
|
7347
|
+
/**
|
|
7348
|
+
* Permet à un gestionnaire d\'annuler n\'importe quelle réservation avec une raison obligatoire. Effectue un remboursement automatique si le paiement a été fait en ligne.
|
|
7349
|
+
* @summary Annuler une réservation (gestionnaire)
|
|
7350
|
+
* @param {ManagerBookingsApiManagerCancelBookingRequest} requestParameters Request parameters.
|
|
7351
|
+
* @param {*} [options] Override http request option.
|
|
7352
|
+
* @throws {RequiredError}
|
|
7353
|
+
*/
|
|
7354
|
+
managerCancelBooking(requestParameters: ManagerBookingsApiManagerCancelBookingRequest, options?: RawAxiosRequestConfig): AxiosPromise<ManagerCancelBookingResponse> {
|
|
7355
|
+
return localVarFp.managerCancelBooking(requestParameters.bookingId, requestParameters.managerCancelBookingRequest, options).then((request) => request(axios, basePath));
|
|
7356
|
+
},
|
|
7357
|
+
};
|
|
7358
|
+
};
|
|
7359
|
+
|
|
7360
|
+
/**
|
|
7361
|
+
* Request parameters for applyNoShowFee operation in ManagerBookingsApi.
|
|
6868
7362
|
* @export
|
|
6869
7363
|
* @interface ManagerBookingsApiApplyNoShowFeeRequest
|
|
6870
7364
|
*/
|
|
@@ -8942,22 +9436,22 @@ export class ManagerClubsApi extends BaseAPI {
|
|
|
8942
9436
|
|
|
8943
9437
|
|
|
8944
9438
|
/**
|
|
8945
|
-
*
|
|
9439
|
+
* ManagerEventsApi - axios parameter creator
|
|
8946
9440
|
* @export
|
|
8947
9441
|
*/
|
|
8948
|
-
export const
|
|
9442
|
+
export const ManagerEventsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
8949
9443
|
return {
|
|
8950
9444
|
/**
|
|
8951
9445
|
*
|
|
8952
|
-
* @summary
|
|
8953
|
-
* @param {
|
|
9446
|
+
* @summary Create a new event
|
|
9447
|
+
* @param {CreateEventRequest} createEventRequest
|
|
8954
9448
|
* @param {*} [options] Override http request option.
|
|
8955
9449
|
* @throws {RequiredError}
|
|
8956
9450
|
*/
|
|
8957
|
-
|
|
8958
|
-
// verify required parameter '
|
|
8959
|
-
assertParamExists('
|
|
8960
|
-
const localVarPath = `/api/
|
|
9451
|
+
createEvent: async (createEventRequest: CreateEventRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9452
|
+
// verify required parameter 'createEventRequest' is not null or undefined
|
|
9453
|
+
assertParamExists('createEvent', 'createEventRequest', createEventRequest)
|
|
9454
|
+
const localVarPath = `/api/events/manager/createEvent`;
|
|
8961
9455
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8962
9456
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8963
9457
|
let baseOptions;
|
|
@@ -8980,7 +9474,7 @@ export const ManagerSportsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
8980
9474
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8981
9475
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8982
9476
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8983
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
9477
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createEventRequest, localVarRequestOptions, configuration)
|
|
8984
9478
|
|
|
8985
9479
|
return {
|
|
8986
9480
|
url: toPathString(localVarUrlObj),
|
|
@@ -8989,16 +9483,16 @@ export const ManagerSportsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
8989
9483
|
},
|
|
8990
9484
|
/**
|
|
8991
9485
|
*
|
|
8992
|
-
* @summary
|
|
8993
|
-
* @param {string}
|
|
9486
|
+
* @summary Delete an event
|
|
9487
|
+
* @param {string} eventId
|
|
8994
9488
|
* @param {*} [options] Override http request option.
|
|
8995
9489
|
* @throws {RequiredError}
|
|
8996
9490
|
*/
|
|
8997
|
-
|
|
8998
|
-
// verify required parameter '
|
|
8999
|
-
assertParamExists('
|
|
9000
|
-
const localVarPath = `/api/
|
|
9001
|
-
.replace(`{${"
|
|
9491
|
+
deleteEvent: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9492
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
9493
|
+
assertParamExists('deleteEvent', 'eventId', eventId)
|
|
9494
|
+
const localVarPath = `/api/events/manager/deleteEvent/{eventId}`
|
|
9495
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
9002
9496
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9003
9497
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9004
9498
|
let baseOptions;
|
|
@@ -9027,19 +9521,16 @@ export const ManagerSportsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
9027
9521
|
},
|
|
9028
9522
|
/**
|
|
9029
9523
|
*
|
|
9030
|
-
* @summary
|
|
9031
|
-
* @param {string}
|
|
9032
|
-
* @param {UpdateSportRequest} updateSportRequest
|
|
9524
|
+
* @summary Publish an event
|
|
9525
|
+
* @param {string} eventId
|
|
9033
9526
|
* @param {*} [options] Override http request option.
|
|
9034
9527
|
* @throws {RequiredError}
|
|
9035
9528
|
*/
|
|
9036
|
-
|
|
9037
|
-
// verify required parameter '
|
|
9038
|
-
assertParamExists('
|
|
9039
|
-
|
|
9040
|
-
|
|
9041
|
-
const localVarPath = `/api/sports/{id}`
|
|
9042
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
9529
|
+
publishEvent: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9530
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
9531
|
+
assertParamExists('publishEvent', 'eventId', eventId)
|
|
9532
|
+
const localVarPath = `/api/events/manager/publishEvent/{eventId}`
|
|
9533
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
9043
9534
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9044
9535
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9045
9536
|
let baseOptions;
|
|
@@ -9057,47 +9548,439 @@ export const ManagerSportsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
9057
9548
|
|
|
9058
9549
|
|
|
9059
9550
|
|
|
9060
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9061
|
-
|
|
9062
9551
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9063
9552
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9064
9553
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9065
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateSportRequest, localVarRequestOptions, configuration)
|
|
9066
9554
|
|
|
9067
9555
|
return {
|
|
9068
9556
|
url: toPathString(localVarUrlObj),
|
|
9069
9557
|
options: localVarRequestOptions,
|
|
9070
9558
|
};
|
|
9071
9559
|
},
|
|
9072
|
-
}
|
|
9073
|
-
};
|
|
9074
|
-
|
|
9075
|
-
/**
|
|
9076
|
-
* ManagerSportsApi - functional programming interface
|
|
9077
|
-
* @export
|
|
9078
|
-
*/
|
|
9079
|
-
export const ManagerSportsApiFp = function(configuration?: Configuration) {
|
|
9080
|
-
const localVarAxiosParamCreator = ManagerSportsApiAxiosParamCreator(configuration)
|
|
9081
|
-
return {
|
|
9082
9560
|
/**
|
|
9083
9561
|
*
|
|
9084
|
-
* @summary
|
|
9085
|
-
* @param {
|
|
9562
|
+
* @summary Unpublish an event
|
|
9563
|
+
* @param {string} eventId
|
|
9086
9564
|
* @param {*} [options] Override http request option.
|
|
9087
9565
|
* @throws {RequiredError}
|
|
9088
9566
|
*/
|
|
9089
|
-
async
|
|
9090
|
-
|
|
9091
|
-
|
|
9092
|
-
const
|
|
9093
|
-
|
|
9094
|
-
|
|
9095
|
-
|
|
9096
|
-
|
|
9097
|
-
|
|
9098
|
-
|
|
9099
|
-
|
|
9100
|
-
|
|
9567
|
+
unpublishEvent: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9568
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
9569
|
+
assertParamExists('unpublishEvent', 'eventId', eventId)
|
|
9570
|
+
const localVarPath = `/api/events/manager/unpublishEvent/{eventId}`
|
|
9571
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
9572
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9573
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9574
|
+
let baseOptions;
|
|
9575
|
+
if (configuration) {
|
|
9576
|
+
baseOptions = configuration.baseOptions;
|
|
9577
|
+
}
|
|
9578
|
+
|
|
9579
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
9580
|
+
const localVarHeaderParameter = {} as any;
|
|
9581
|
+
const localVarQueryParameter = {} as any;
|
|
9582
|
+
|
|
9583
|
+
// authentication bearerAuth required
|
|
9584
|
+
// http bearer authentication required
|
|
9585
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
9586
|
+
|
|
9587
|
+
|
|
9588
|
+
|
|
9589
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9590
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9591
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9592
|
+
|
|
9593
|
+
return {
|
|
9594
|
+
url: toPathString(localVarUrlObj),
|
|
9595
|
+
options: localVarRequestOptions,
|
|
9596
|
+
};
|
|
9597
|
+
},
|
|
9598
|
+
}
|
|
9599
|
+
};
|
|
9600
|
+
|
|
9601
|
+
/**
|
|
9602
|
+
* ManagerEventsApi - functional programming interface
|
|
9603
|
+
* @export
|
|
9604
|
+
*/
|
|
9605
|
+
export const ManagerEventsApiFp = function(configuration?: Configuration) {
|
|
9606
|
+
const localVarAxiosParamCreator = ManagerEventsApiAxiosParamCreator(configuration)
|
|
9607
|
+
return {
|
|
9608
|
+
/**
|
|
9609
|
+
*
|
|
9610
|
+
* @summary Create a new event
|
|
9611
|
+
* @param {CreateEventRequest} createEventRequest
|
|
9612
|
+
* @param {*} [options] Override http request option.
|
|
9613
|
+
* @throws {RequiredError}
|
|
9614
|
+
*/
|
|
9615
|
+
async createEvent(createEventRequest: CreateEventRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManagerEventResponse>> {
|
|
9616
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createEvent(createEventRequest, options);
|
|
9617
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9618
|
+
const localVarOperationServerBasePath = operationServerMap['ManagerEventsApi.createEvent']?.[localVarOperationServerIndex]?.url;
|
|
9619
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9620
|
+
},
|
|
9621
|
+
/**
|
|
9622
|
+
*
|
|
9623
|
+
* @summary Delete an event
|
|
9624
|
+
* @param {string} eventId
|
|
9625
|
+
* @param {*} [options] Override http request option.
|
|
9626
|
+
* @throws {RequiredError}
|
|
9627
|
+
*/
|
|
9628
|
+
async deleteEvent(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteEvent200Response>> {
|
|
9629
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteEvent(eventId, options);
|
|
9630
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9631
|
+
const localVarOperationServerBasePath = operationServerMap['ManagerEventsApi.deleteEvent']?.[localVarOperationServerIndex]?.url;
|
|
9632
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9633
|
+
},
|
|
9634
|
+
/**
|
|
9635
|
+
*
|
|
9636
|
+
* @summary Publish an event
|
|
9637
|
+
* @param {string} eventId
|
|
9638
|
+
* @param {*} [options] Override http request option.
|
|
9639
|
+
* @throws {RequiredError}
|
|
9640
|
+
*/
|
|
9641
|
+
async publishEvent(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManagerEventResponse>> {
|
|
9642
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.publishEvent(eventId, options);
|
|
9643
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9644
|
+
const localVarOperationServerBasePath = operationServerMap['ManagerEventsApi.publishEvent']?.[localVarOperationServerIndex]?.url;
|
|
9645
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9646
|
+
},
|
|
9647
|
+
/**
|
|
9648
|
+
*
|
|
9649
|
+
* @summary Unpublish an event
|
|
9650
|
+
* @param {string} eventId
|
|
9651
|
+
* @param {*} [options] Override http request option.
|
|
9652
|
+
* @throws {RequiredError}
|
|
9653
|
+
*/
|
|
9654
|
+
async unpublishEvent(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManagerEventResponse>> {
|
|
9655
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.unpublishEvent(eventId, options);
|
|
9656
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9657
|
+
const localVarOperationServerBasePath = operationServerMap['ManagerEventsApi.unpublishEvent']?.[localVarOperationServerIndex]?.url;
|
|
9658
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9659
|
+
},
|
|
9660
|
+
}
|
|
9661
|
+
};
|
|
9662
|
+
|
|
9663
|
+
/**
|
|
9664
|
+
* ManagerEventsApi - factory interface
|
|
9665
|
+
* @export
|
|
9666
|
+
*/
|
|
9667
|
+
export const ManagerEventsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
9668
|
+
const localVarFp = ManagerEventsApiFp(configuration)
|
|
9669
|
+
return {
|
|
9670
|
+
/**
|
|
9671
|
+
*
|
|
9672
|
+
* @summary Create a new event
|
|
9673
|
+
* @param {ManagerEventsApiCreateEventRequest} requestParameters Request parameters.
|
|
9674
|
+
* @param {*} [options] Override http request option.
|
|
9675
|
+
* @throws {RequiredError}
|
|
9676
|
+
*/
|
|
9677
|
+
createEvent(requestParameters: ManagerEventsApiCreateEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<ManagerEventResponse> {
|
|
9678
|
+
return localVarFp.createEvent(requestParameters.createEventRequest, options).then((request) => request(axios, basePath));
|
|
9679
|
+
},
|
|
9680
|
+
/**
|
|
9681
|
+
*
|
|
9682
|
+
* @summary Delete an event
|
|
9683
|
+
* @param {ManagerEventsApiDeleteEventRequest} requestParameters Request parameters.
|
|
9684
|
+
* @param {*} [options] Override http request option.
|
|
9685
|
+
* @throws {RequiredError}
|
|
9686
|
+
*/
|
|
9687
|
+
deleteEvent(requestParameters: ManagerEventsApiDeleteEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteEvent200Response> {
|
|
9688
|
+
return localVarFp.deleteEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
9689
|
+
},
|
|
9690
|
+
/**
|
|
9691
|
+
*
|
|
9692
|
+
* @summary Publish an event
|
|
9693
|
+
* @param {ManagerEventsApiPublishEventRequest} requestParameters Request parameters.
|
|
9694
|
+
* @param {*} [options] Override http request option.
|
|
9695
|
+
* @throws {RequiredError}
|
|
9696
|
+
*/
|
|
9697
|
+
publishEvent(requestParameters: ManagerEventsApiPublishEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<ManagerEventResponse> {
|
|
9698
|
+
return localVarFp.publishEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
9699
|
+
},
|
|
9700
|
+
/**
|
|
9701
|
+
*
|
|
9702
|
+
* @summary Unpublish an event
|
|
9703
|
+
* @param {ManagerEventsApiUnpublishEventRequest} requestParameters Request parameters.
|
|
9704
|
+
* @param {*} [options] Override http request option.
|
|
9705
|
+
* @throws {RequiredError}
|
|
9706
|
+
*/
|
|
9707
|
+
unpublishEvent(requestParameters: ManagerEventsApiUnpublishEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<ManagerEventResponse> {
|
|
9708
|
+
return localVarFp.unpublishEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
9709
|
+
},
|
|
9710
|
+
};
|
|
9711
|
+
};
|
|
9712
|
+
|
|
9713
|
+
/**
|
|
9714
|
+
* Request parameters for createEvent operation in ManagerEventsApi.
|
|
9715
|
+
* @export
|
|
9716
|
+
* @interface ManagerEventsApiCreateEventRequest
|
|
9717
|
+
*/
|
|
9718
|
+
export interface ManagerEventsApiCreateEventRequest {
|
|
9719
|
+
/**
|
|
9720
|
+
*
|
|
9721
|
+
* @type {CreateEventRequest}
|
|
9722
|
+
* @memberof ManagerEventsApiCreateEvent
|
|
9723
|
+
*/
|
|
9724
|
+
readonly createEventRequest: CreateEventRequest
|
|
9725
|
+
}
|
|
9726
|
+
|
|
9727
|
+
/**
|
|
9728
|
+
* Request parameters for deleteEvent operation in ManagerEventsApi.
|
|
9729
|
+
* @export
|
|
9730
|
+
* @interface ManagerEventsApiDeleteEventRequest
|
|
9731
|
+
*/
|
|
9732
|
+
export interface ManagerEventsApiDeleteEventRequest {
|
|
9733
|
+
/**
|
|
9734
|
+
*
|
|
9735
|
+
* @type {string}
|
|
9736
|
+
* @memberof ManagerEventsApiDeleteEvent
|
|
9737
|
+
*/
|
|
9738
|
+
readonly eventId: string
|
|
9739
|
+
}
|
|
9740
|
+
|
|
9741
|
+
/**
|
|
9742
|
+
* Request parameters for publishEvent operation in ManagerEventsApi.
|
|
9743
|
+
* @export
|
|
9744
|
+
* @interface ManagerEventsApiPublishEventRequest
|
|
9745
|
+
*/
|
|
9746
|
+
export interface ManagerEventsApiPublishEventRequest {
|
|
9747
|
+
/**
|
|
9748
|
+
*
|
|
9749
|
+
* @type {string}
|
|
9750
|
+
* @memberof ManagerEventsApiPublishEvent
|
|
9751
|
+
*/
|
|
9752
|
+
readonly eventId: string
|
|
9753
|
+
}
|
|
9754
|
+
|
|
9755
|
+
/**
|
|
9756
|
+
* Request parameters for unpublishEvent operation in ManagerEventsApi.
|
|
9757
|
+
* @export
|
|
9758
|
+
* @interface ManagerEventsApiUnpublishEventRequest
|
|
9759
|
+
*/
|
|
9760
|
+
export interface ManagerEventsApiUnpublishEventRequest {
|
|
9761
|
+
/**
|
|
9762
|
+
*
|
|
9763
|
+
* @type {string}
|
|
9764
|
+
* @memberof ManagerEventsApiUnpublishEvent
|
|
9765
|
+
*/
|
|
9766
|
+
readonly eventId: string
|
|
9767
|
+
}
|
|
9768
|
+
|
|
9769
|
+
/**
|
|
9770
|
+
* ManagerEventsApi - object-oriented interface
|
|
9771
|
+
* @export
|
|
9772
|
+
* @class ManagerEventsApi
|
|
9773
|
+
* @extends {BaseAPI}
|
|
9774
|
+
*/
|
|
9775
|
+
export class ManagerEventsApi extends BaseAPI {
|
|
9776
|
+
/**
|
|
9777
|
+
*
|
|
9778
|
+
* @summary Create a new event
|
|
9779
|
+
* @param {ManagerEventsApiCreateEventRequest} requestParameters Request parameters.
|
|
9780
|
+
* @param {*} [options] Override http request option.
|
|
9781
|
+
* @throws {RequiredError}
|
|
9782
|
+
* @memberof ManagerEventsApi
|
|
9783
|
+
*/
|
|
9784
|
+
public createEvent(requestParameters: ManagerEventsApiCreateEventRequest, options?: RawAxiosRequestConfig) {
|
|
9785
|
+
return ManagerEventsApiFp(this.configuration).createEvent(requestParameters.createEventRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9786
|
+
}
|
|
9787
|
+
|
|
9788
|
+
/**
|
|
9789
|
+
*
|
|
9790
|
+
* @summary Delete an event
|
|
9791
|
+
* @param {ManagerEventsApiDeleteEventRequest} requestParameters Request parameters.
|
|
9792
|
+
* @param {*} [options] Override http request option.
|
|
9793
|
+
* @throws {RequiredError}
|
|
9794
|
+
* @memberof ManagerEventsApi
|
|
9795
|
+
*/
|
|
9796
|
+
public deleteEvent(requestParameters: ManagerEventsApiDeleteEventRequest, options?: RawAxiosRequestConfig) {
|
|
9797
|
+
return ManagerEventsApiFp(this.configuration).deleteEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
9798
|
+
}
|
|
9799
|
+
|
|
9800
|
+
/**
|
|
9801
|
+
*
|
|
9802
|
+
* @summary Publish an event
|
|
9803
|
+
* @param {ManagerEventsApiPublishEventRequest} requestParameters Request parameters.
|
|
9804
|
+
* @param {*} [options] Override http request option.
|
|
9805
|
+
* @throws {RequiredError}
|
|
9806
|
+
* @memberof ManagerEventsApi
|
|
9807
|
+
*/
|
|
9808
|
+
public publishEvent(requestParameters: ManagerEventsApiPublishEventRequest, options?: RawAxiosRequestConfig) {
|
|
9809
|
+
return ManagerEventsApiFp(this.configuration).publishEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
9810
|
+
}
|
|
9811
|
+
|
|
9812
|
+
/**
|
|
9813
|
+
*
|
|
9814
|
+
* @summary Unpublish an event
|
|
9815
|
+
* @param {ManagerEventsApiUnpublishEventRequest} requestParameters Request parameters.
|
|
9816
|
+
* @param {*} [options] Override http request option.
|
|
9817
|
+
* @throws {RequiredError}
|
|
9818
|
+
* @memberof ManagerEventsApi
|
|
9819
|
+
*/
|
|
9820
|
+
public unpublishEvent(requestParameters: ManagerEventsApiUnpublishEventRequest, options?: RawAxiosRequestConfig) {
|
|
9821
|
+
return ManagerEventsApiFp(this.configuration).unpublishEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
9822
|
+
}
|
|
9823
|
+
}
|
|
9824
|
+
|
|
9825
|
+
|
|
9826
|
+
|
|
9827
|
+
/**
|
|
9828
|
+
* ManagerSportsApi - axios parameter creator
|
|
9829
|
+
* @export
|
|
9830
|
+
*/
|
|
9831
|
+
export const ManagerSportsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
9832
|
+
return {
|
|
9833
|
+
/**
|
|
9834
|
+
*
|
|
9835
|
+
* @summary Créer un sport dans un club
|
|
9836
|
+
* @param {CreateSportRequest} createSportRequest
|
|
9837
|
+
* @param {*} [options] Override http request option.
|
|
9838
|
+
* @throws {RequiredError}
|
|
9839
|
+
*/
|
|
9840
|
+
createSport: async (createSportRequest: CreateSportRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9841
|
+
// verify required parameter 'createSportRequest' is not null or undefined
|
|
9842
|
+
assertParamExists('createSport', 'createSportRequest', createSportRequest)
|
|
9843
|
+
const localVarPath = `/api/sports`;
|
|
9844
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9845
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9846
|
+
let baseOptions;
|
|
9847
|
+
if (configuration) {
|
|
9848
|
+
baseOptions = configuration.baseOptions;
|
|
9849
|
+
}
|
|
9850
|
+
|
|
9851
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
9852
|
+
const localVarHeaderParameter = {} as any;
|
|
9853
|
+
const localVarQueryParameter = {} as any;
|
|
9854
|
+
|
|
9855
|
+
// authentication bearerAuth required
|
|
9856
|
+
// http bearer authentication required
|
|
9857
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
9858
|
+
|
|
9859
|
+
|
|
9860
|
+
|
|
9861
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9862
|
+
|
|
9863
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9864
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9865
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9866
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createSportRequest, localVarRequestOptions, configuration)
|
|
9867
|
+
|
|
9868
|
+
return {
|
|
9869
|
+
url: toPathString(localVarUrlObj),
|
|
9870
|
+
options: localVarRequestOptions,
|
|
9871
|
+
};
|
|
9872
|
+
},
|
|
9873
|
+
/**
|
|
9874
|
+
*
|
|
9875
|
+
* @summary Supprimer un sport
|
|
9876
|
+
* @param {string} id ID du sport
|
|
9877
|
+
* @param {*} [options] Override http request option.
|
|
9878
|
+
* @throws {RequiredError}
|
|
9879
|
+
*/
|
|
9880
|
+
deleteSport: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9881
|
+
// verify required parameter 'id' is not null or undefined
|
|
9882
|
+
assertParamExists('deleteSport', 'id', id)
|
|
9883
|
+
const localVarPath = `/api/sports/{id}`
|
|
9884
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
9885
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9886
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9887
|
+
let baseOptions;
|
|
9888
|
+
if (configuration) {
|
|
9889
|
+
baseOptions = configuration.baseOptions;
|
|
9890
|
+
}
|
|
9891
|
+
|
|
9892
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
9893
|
+
const localVarHeaderParameter = {} as any;
|
|
9894
|
+
const localVarQueryParameter = {} as any;
|
|
9895
|
+
|
|
9896
|
+
// authentication bearerAuth required
|
|
9897
|
+
// http bearer authentication required
|
|
9898
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
9899
|
+
|
|
9900
|
+
|
|
9901
|
+
|
|
9902
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9903
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9904
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9905
|
+
|
|
9906
|
+
return {
|
|
9907
|
+
url: toPathString(localVarUrlObj),
|
|
9908
|
+
options: localVarRequestOptions,
|
|
9909
|
+
};
|
|
9910
|
+
},
|
|
9911
|
+
/**
|
|
9912
|
+
*
|
|
9913
|
+
* @summary Mettre à jour un sport
|
|
9914
|
+
* @param {string} id ID du sport
|
|
9915
|
+
* @param {UpdateSportRequest} updateSportRequest
|
|
9916
|
+
* @param {*} [options] Override http request option.
|
|
9917
|
+
* @throws {RequiredError}
|
|
9918
|
+
*/
|
|
9919
|
+
updateSport: async (id: string, updateSportRequest: UpdateSportRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9920
|
+
// verify required parameter 'id' is not null or undefined
|
|
9921
|
+
assertParamExists('updateSport', 'id', id)
|
|
9922
|
+
// verify required parameter 'updateSportRequest' is not null or undefined
|
|
9923
|
+
assertParamExists('updateSport', 'updateSportRequest', updateSportRequest)
|
|
9924
|
+
const localVarPath = `/api/sports/{id}`
|
|
9925
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
9926
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9927
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9928
|
+
let baseOptions;
|
|
9929
|
+
if (configuration) {
|
|
9930
|
+
baseOptions = configuration.baseOptions;
|
|
9931
|
+
}
|
|
9932
|
+
|
|
9933
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
9934
|
+
const localVarHeaderParameter = {} as any;
|
|
9935
|
+
const localVarQueryParameter = {} as any;
|
|
9936
|
+
|
|
9937
|
+
// authentication bearerAuth required
|
|
9938
|
+
// http bearer authentication required
|
|
9939
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
9940
|
+
|
|
9941
|
+
|
|
9942
|
+
|
|
9943
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9944
|
+
|
|
9945
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9946
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9947
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9948
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateSportRequest, localVarRequestOptions, configuration)
|
|
9949
|
+
|
|
9950
|
+
return {
|
|
9951
|
+
url: toPathString(localVarUrlObj),
|
|
9952
|
+
options: localVarRequestOptions,
|
|
9953
|
+
};
|
|
9954
|
+
},
|
|
9955
|
+
}
|
|
9956
|
+
};
|
|
9957
|
+
|
|
9958
|
+
/**
|
|
9959
|
+
* ManagerSportsApi - functional programming interface
|
|
9960
|
+
* @export
|
|
9961
|
+
*/
|
|
9962
|
+
export const ManagerSportsApiFp = function(configuration?: Configuration) {
|
|
9963
|
+
const localVarAxiosParamCreator = ManagerSportsApiAxiosParamCreator(configuration)
|
|
9964
|
+
return {
|
|
9965
|
+
/**
|
|
9966
|
+
*
|
|
9967
|
+
* @summary Créer un sport dans un club
|
|
9968
|
+
* @param {CreateSportRequest} createSportRequest
|
|
9969
|
+
* @param {*} [options] Override http request option.
|
|
9970
|
+
* @throws {RequiredError}
|
|
9971
|
+
*/
|
|
9972
|
+
async createSport(createSportRequest: CreateSportRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SportResponse>> {
|
|
9973
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createSport(createSportRequest, options);
|
|
9974
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9975
|
+
const localVarOperationServerBasePath = operationServerMap['ManagerSportsApi.createSport']?.[localVarOperationServerIndex]?.url;
|
|
9976
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9977
|
+
},
|
|
9978
|
+
/**
|
|
9979
|
+
*
|
|
9980
|
+
* @summary Supprimer un sport
|
|
9981
|
+
* @param {string} id ID du sport
|
|
9982
|
+
* @param {*} [options] Override http request option.
|
|
9983
|
+
* @throws {RequiredError}
|
|
9101
9984
|
*/
|
|
9102
9985
|
async deleteSport(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteSport200Response>> {
|
|
9103
9986
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSport(id, options);
|
|
@@ -9746,6 +10629,111 @@ export class StaffClubsApi extends BaseAPI {
|
|
|
9746
10629
|
|
|
9747
10630
|
|
|
9748
10631
|
|
|
10632
|
+
/**
|
|
10633
|
+
* StaffEventsApi - axios parameter creator
|
|
10634
|
+
* @export
|
|
10635
|
+
*/
|
|
10636
|
+
export const StaffEventsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
10637
|
+
return {
|
|
10638
|
+
/**
|
|
10639
|
+
*
|
|
10640
|
+
* @summary Get all events for current club (including unpublished)
|
|
10641
|
+
* @param {*} [options] Override http request option.
|
|
10642
|
+
* @throws {RequiredError}
|
|
10643
|
+
*/
|
|
10644
|
+
getEventsByClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10645
|
+
const localVarPath = `/api/events/staff/getEvents`;
|
|
10646
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10647
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10648
|
+
let baseOptions;
|
|
10649
|
+
if (configuration) {
|
|
10650
|
+
baseOptions = configuration.baseOptions;
|
|
10651
|
+
}
|
|
10652
|
+
|
|
10653
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
10654
|
+
const localVarHeaderParameter = {} as any;
|
|
10655
|
+
const localVarQueryParameter = {} as any;
|
|
10656
|
+
|
|
10657
|
+
// authentication bearerAuth required
|
|
10658
|
+
// http bearer authentication required
|
|
10659
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
10660
|
+
|
|
10661
|
+
|
|
10662
|
+
|
|
10663
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10664
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10665
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10666
|
+
|
|
10667
|
+
return {
|
|
10668
|
+
url: toPathString(localVarUrlObj),
|
|
10669
|
+
options: localVarRequestOptions,
|
|
10670
|
+
};
|
|
10671
|
+
},
|
|
10672
|
+
}
|
|
10673
|
+
};
|
|
10674
|
+
|
|
10675
|
+
/**
|
|
10676
|
+
* StaffEventsApi - functional programming interface
|
|
10677
|
+
* @export
|
|
10678
|
+
*/
|
|
10679
|
+
export const StaffEventsApiFp = function(configuration?: Configuration) {
|
|
10680
|
+
const localVarAxiosParamCreator = StaffEventsApiAxiosParamCreator(configuration)
|
|
10681
|
+
return {
|
|
10682
|
+
/**
|
|
10683
|
+
*
|
|
10684
|
+
* @summary Get all events for current club (including unpublished)
|
|
10685
|
+
* @param {*} [options] Override http request option.
|
|
10686
|
+
* @throws {RequiredError}
|
|
10687
|
+
*/
|
|
10688
|
+
async getEventsByClub(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffEventResponse>> {
|
|
10689
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEventsByClub(options);
|
|
10690
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10691
|
+
const localVarOperationServerBasePath = operationServerMap['StaffEventsApi.getEventsByClub']?.[localVarOperationServerIndex]?.url;
|
|
10692
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10693
|
+
},
|
|
10694
|
+
}
|
|
10695
|
+
};
|
|
10696
|
+
|
|
10697
|
+
/**
|
|
10698
|
+
* StaffEventsApi - factory interface
|
|
10699
|
+
* @export
|
|
10700
|
+
*/
|
|
10701
|
+
export const StaffEventsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
10702
|
+
const localVarFp = StaffEventsApiFp(configuration)
|
|
10703
|
+
return {
|
|
10704
|
+
/**
|
|
10705
|
+
*
|
|
10706
|
+
* @summary Get all events for current club (including unpublished)
|
|
10707
|
+
* @param {*} [options] Override http request option.
|
|
10708
|
+
* @throws {RequiredError}
|
|
10709
|
+
*/
|
|
10710
|
+
getEventsByClub(options?: RawAxiosRequestConfig): AxiosPromise<StaffEventResponse> {
|
|
10711
|
+
return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
|
|
10712
|
+
},
|
|
10713
|
+
};
|
|
10714
|
+
};
|
|
10715
|
+
|
|
10716
|
+
/**
|
|
10717
|
+
* StaffEventsApi - object-oriented interface
|
|
10718
|
+
* @export
|
|
10719
|
+
* @class StaffEventsApi
|
|
10720
|
+
* @extends {BaseAPI}
|
|
10721
|
+
*/
|
|
10722
|
+
export class StaffEventsApi extends BaseAPI {
|
|
10723
|
+
/**
|
|
10724
|
+
*
|
|
10725
|
+
* @summary Get all events for current club (including unpublished)
|
|
10726
|
+
* @param {*} [options] Override http request option.
|
|
10727
|
+
* @throws {RequiredError}
|
|
10728
|
+
* @memberof StaffEventsApi
|
|
10729
|
+
*/
|
|
10730
|
+
public getEventsByClub(options?: RawAxiosRequestConfig) {
|
|
10731
|
+
return StaffEventsApiFp(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
10732
|
+
}
|
|
10733
|
+
}
|
|
10734
|
+
|
|
10735
|
+
|
|
10736
|
+
|
|
9749
10737
|
/**
|
|
9750
10738
|
* StaffProfileApi - axios parameter creator
|
|
9751
10739
|
* @export
|