@tennac-booking/sdk 1.0.25 → 1.0.27
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 +16 -0
- package/README.md +22 -2
- package/api.ts +1208 -7
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +816 -5
- package/dist/api.js +715 -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 +816 -5
- package/dist/esm/api.js +696 -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/ClubsApi.md +61 -0
- 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/GetClubUsersById200Response.md +20 -0
- package/docs/GetPublishedEventsByClubId200Response.md +20 -0
- package/docs/ManagerEventResponse.md +22 -0
- package/docs/ManagerEventsApi.md +227 -0
- package/docs/PublicClubUser.md +34 -0
- package/docs/PublicClubUserLevelBySportsInner.md +22 -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.27
|
|
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
|
|
@@ -2216,6 +2422,19 @@ export interface GetClubSettingsRequest {
|
|
|
2216
2422
|
*/
|
|
2217
2423
|
'clubId': string;
|
|
2218
2424
|
}
|
|
2425
|
+
/**
|
|
2426
|
+
*
|
|
2427
|
+
* @export
|
|
2428
|
+
* @interface GetClubUsersById200Response
|
|
2429
|
+
*/
|
|
2430
|
+
export interface GetClubUsersById200Response {
|
|
2431
|
+
/**
|
|
2432
|
+
*
|
|
2433
|
+
* @type {Array<PublicClubUser>}
|
|
2434
|
+
* @memberof GetClubUsersById200Response
|
|
2435
|
+
*/
|
|
2436
|
+
'users'?: Array<PublicClubUser>;
|
|
2437
|
+
}
|
|
2219
2438
|
/**
|
|
2220
2439
|
*
|
|
2221
2440
|
* @export
|
|
@@ -2279,6 +2498,19 @@ export interface GetNumberOfClubUsers200Response {
|
|
|
2279
2498
|
*/
|
|
2280
2499
|
'count'?: number;
|
|
2281
2500
|
}
|
|
2501
|
+
/**
|
|
2502
|
+
*
|
|
2503
|
+
* @export
|
|
2504
|
+
* @interface GetPublishedEventsByClubId200Response
|
|
2505
|
+
*/
|
|
2506
|
+
export interface GetPublishedEventsByClubId200Response {
|
|
2507
|
+
/**
|
|
2508
|
+
*
|
|
2509
|
+
* @type {Array<Event>}
|
|
2510
|
+
* @memberof GetPublishedEventsByClubId200Response
|
|
2511
|
+
*/
|
|
2512
|
+
'events'?: Array<Event>;
|
|
2513
|
+
}
|
|
2282
2514
|
/**
|
|
2283
2515
|
*
|
|
2284
2516
|
* @export
|
|
@@ -2698,6 +2930,25 @@ export const ManagerCancelBookingResponseBookingStatusEnum = {
|
|
|
2698
2930
|
|
|
2699
2931
|
export type ManagerCancelBookingResponseBookingStatusEnum = typeof ManagerCancelBookingResponseBookingStatusEnum[keyof typeof ManagerCancelBookingResponseBookingStatusEnum];
|
|
2700
2932
|
|
|
2933
|
+
/**
|
|
2934
|
+
*
|
|
2935
|
+
* @export
|
|
2936
|
+
* @interface ManagerEventResponse
|
|
2937
|
+
*/
|
|
2938
|
+
export interface ManagerEventResponse {
|
|
2939
|
+
/**
|
|
2940
|
+
*
|
|
2941
|
+
* @type {Event}
|
|
2942
|
+
* @memberof ManagerEventResponse
|
|
2943
|
+
*/
|
|
2944
|
+
'event'?: Event;
|
|
2945
|
+
/**
|
|
2946
|
+
*
|
|
2947
|
+
* @type {string}
|
|
2948
|
+
* @memberof ManagerEventResponse
|
|
2949
|
+
*/
|
|
2950
|
+
'message'?: string;
|
|
2951
|
+
}
|
|
2701
2952
|
/**
|
|
2702
2953
|
*
|
|
2703
2954
|
* @export
|
|
@@ -2976,6 +3227,80 @@ export interface ProfileVisibilityResponse {
|
|
|
2976
3227
|
*/
|
|
2977
3228
|
'isProfileVisible'?: boolean;
|
|
2978
3229
|
}
|
|
3230
|
+
/**
|
|
3231
|
+
*
|
|
3232
|
+
* @export
|
|
3233
|
+
* @interface PublicClubUser
|
|
3234
|
+
*/
|
|
3235
|
+
export interface PublicClubUser {
|
|
3236
|
+
/**
|
|
3237
|
+
*
|
|
3238
|
+
* @type {string}
|
|
3239
|
+
* @memberof PublicClubUser
|
|
3240
|
+
*/
|
|
3241
|
+
'_id'?: string;
|
|
3242
|
+
/**
|
|
3243
|
+
*
|
|
3244
|
+
* @type {string}
|
|
3245
|
+
* @memberof PublicClubUser
|
|
3246
|
+
*/
|
|
3247
|
+
'firstName'?: string;
|
|
3248
|
+
/**
|
|
3249
|
+
*
|
|
3250
|
+
* @type {string}
|
|
3251
|
+
* @memberof PublicClubUser
|
|
3252
|
+
*/
|
|
3253
|
+
'lastName'?: string;
|
|
3254
|
+
/**
|
|
3255
|
+
*
|
|
3256
|
+
* @type {string}
|
|
3257
|
+
* @memberof PublicClubUser
|
|
3258
|
+
*/
|
|
3259
|
+
'email'?: string;
|
|
3260
|
+
/**
|
|
3261
|
+
*
|
|
3262
|
+
* @type {Array<PublicClubUserLevelBySportsInner>}
|
|
3263
|
+
* @memberof PublicClubUser
|
|
3264
|
+
*/
|
|
3265
|
+
'levelBySports'?: Array<PublicClubUserLevelBySportsInner>;
|
|
3266
|
+
/**
|
|
3267
|
+
*
|
|
3268
|
+
* @type {string}
|
|
3269
|
+
* @memberof PublicClubUser
|
|
3270
|
+
*/
|
|
3271
|
+
'profilePicture'?: string | null;
|
|
3272
|
+
/**
|
|
3273
|
+
*
|
|
3274
|
+
* @type {string}
|
|
3275
|
+
* @memberof PublicClubUser
|
|
3276
|
+
*/
|
|
3277
|
+
'description'?: string | null;
|
|
3278
|
+
/**
|
|
3279
|
+
*
|
|
3280
|
+
* @type {string}
|
|
3281
|
+
* @memberof PublicClubUser
|
|
3282
|
+
*/
|
|
3283
|
+
'city'?: string | null;
|
|
3284
|
+
}
|
|
3285
|
+
/**
|
|
3286
|
+
*
|
|
3287
|
+
* @export
|
|
3288
|
+
* @interface PublicClubUserLevelBySportsInner
|
|
3289
|
+
*/
|
|
3290
|
+
export interface PublicClubUserLevelBySportsInner {
|
|
3291
|
+
/**
|
|
3292
|
+
*
|
|
3293
|
+
* @type {string}
|
|
3294
|
+
* @memberof PublicClubUserLevelBySportsInner
|
|
3295
|
+
*/
|
|
3296
|
+
'sport'?: string;
|
|
3297
|
+
/**
|
|
3298
|
+
*
|
|
3299
|
+
* @type {string}
|
|
3300
|
+
* @memberof PublicClubUserLevelBySportsInner
|
|
3301
|
+
*/
|
|
3302
|
+
'level'?: string;
|
|
3303
|
+
}
|
|
2979
3304
|
/**
|
|
2980
3305
|
*
|
|
2981
3306
|
* @export
|
|
@@ -3008,6 +3333,19 @@ export interface RefreshTokenResponse {
|
|
|
3008
3333
|
*/
|
|
3009
3334
|
'refreshToken'?: string;
|
|
3010
3335
|
}
|
|
3336
|
+
/**
|
|
3337
|
+
*
|
|
3338
|
+
* @export
|
|
3339
|
+
* @interface RegisterForEvent201Response
|
|
3340
|
+
*/
|
|
3341
|
+
export interface RegisterForEvent201Response {
|
|
3342
|
+
/**
|
|
3343
|
+
*
|
|
3344
|
+
* @type {EventBooking}
|
|
3345
|
+
* @memberof RegisterForEvent201Response
|
|
3346
|
+
*/
|
|
3347
|
+
'booking'?: EventBooking;
|
|
3348
|
+
}
|
|
3011
3349
|
/**
|
|
3012
3350
|
*
|
|
3013
3351
|
* @export
|
|
@@ -3343,6 +3681,19 @@ export interface SportsResponse {
|
|
|
3343
3681
|
*/
|
|
3344
3682
|
'total'?: number;
|
|
3345
3683
|
}
|
|
3684
|
+
/**
|
|
3685
|
+
*
|
|
3686
|
+
* @export
|
|
3687
|
+
* @interface StaffEventResponse
|
|
3688
|
+
*/
|
|
3689
|
+
export interface StaffEventResponse {
|
|
3690
|
+
/**
|
|
3691
|
+
*
|
|
3692
|
+
* @type {Array<Event>}
|
|
3693
|
+
* @memberof StaffEventResponse
|
|
3694
|
+
*/
|
|
3695
|
+
'events'?: Array<Event>;
|
|
3696
|
+
}
|
|
3346
3697
|
/**
|
|
3347
3698
|
*
|
|
3348
3699
|
* @export
|
|
@@ -6706,7 +7057,363 @@ export type GetInvoicesStatusEnum = typeof GetInvoicesStatusEnum[keyof typeof Ge
|
|
|
6706
7057
|
|
|
6707
7058
|
|
|
6708
7059
|
/**
|
|
6709
|
-
*
|
|
7060
|
+
* ClubsApi - axios parameter creator
|
|
7061
|
+
* @export
|
|
7062
|
+
*/
|
|
7063
|
+
export const ClubsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
7064
|
+
return {
|
|
7065
|
+
/**
|
|
7066
|
+
* Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
|
|
7067
|
+
* @summary Récupérer la liste publique des utilisateurs d\'un club
|
|
7068
|
+
* @param {string} id ID du club
|
|
7069
|
+
* @param {*} [options] Override http request option.
|
|
7070
|
+
* @throws {RequiredError}
|
|
7071
|
+
*/
|
|
7072
|
+
getClubUsersById: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7073
|
+
// verify required parameter 'id' is not null or undefined
|
|
7074
|
+
assertParamExists('getClubUsersById', 'id', id)
|
|
7075
|
+
const localVarPath = `/api/clubs/{id}/clubUsers`
|
|
7076
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7077
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7078
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7079
|
+
let baseOptions;
|
|
7080
|
+
if (configuration) {
|
|
7081
|
+
baseOptions = configuration.baseOptions;
|
|
7082
|
+
}
|
|
7083
|
+
|
|
7084
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
7085
|
+
const localVarHeaderParameter = {} as any;
|
|
7086
|
+
const localVarQueryParameter = {} as any;
|
|
7087
|
+
|
|
7088
|
+
// authentication bearerAuth required
|
|
7089
|
+
// http bearer authentication required
|
|
7090
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
7091
|
+
|
|
7092
|
+
|
|
7093
|
+
|
|
7094
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7095
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7096
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7097
|
+
|
|
7098
|
+
return {
|
|
7099
|
+
url: toPathString(localVarUrlObj),
|
|
7100
|
+
options: localVarRequestOptions,
|
|
7101
|
+
};
|
|
7102
|
+
},
|
|
7103
|
+
}
|
|
7104
|
+
};
|
|
7105
|
+
|
|
7106
|
+
/**
|
|
7107
|
+
* ClubsApi - functional programming interface
|
|
7108
|
+
* @export
|
|
7109
|
+
*/
|
|
7110
|
+
export const ClubsApiFp = function(configuration?: Configuration) {
|
|
7111
|
+
const localVarAxiosParamCreator = ClubsApiAxiosParamCreator(configuration)
|
|
7112
|
+
return {
|
|
7113
|
+
/**
|
|
7114
|
+
* Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
|
|
7115
|
+
* @summary Récupérer la liste publique des utilisateurs d\'un club
|
|
7116
|
+
* @param {string} id ID du club
|
|
7117
|
+
* @param {*} [options] Override http request option.
|
|
7118
|
+
* @throws {RequiredError}
|
|
7119
|
+
*/
|
|
7120
|
+
async getClubUsersById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClubUsersById200Response>> {
|
|
7121
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClubUsersById(id, options);
|
|
7122
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7123
|
+
const localVarOperationServerBasePath = operationServerMap['ClubsApi.getClubUsersById']?.[localVarOperationServerIndex]?.url;
|
|
7124
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7125
|
+
},
|
|
7126
|
+
}
|
|
7127
|
+
};
|
|
7128
|
+
|
|
7129
|
+
/**
|
|
7130
|
+
* ClubsApi - factory interface
|
|
7131
|
+
* @export
|
|
7132
|
+
*/
|
|
7133
|
+
export const ClubsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
7134
|
+
const localVarFp = ClubsApiFp(configuration)
|
|
7135
|
+
return {
|
|
7136
|
+
/**
|
|
7137
|
+
* Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
|
|
7138
|
+
* @summary Récupérer la liste publique des utilisateurs d\'un club
|
|
7139
|
+
* @param {ClubsApiGetClubUsersByIdRequest} requestParameters Request parameters.
|
|
7140
|
+
* @param {*} [options] Override http request option.
|
|
7141
|
+
* @throws {RequiredError}
|
|
7142
|
+
*/
|
|
7143
|
+
getClubUsersById(requestParameters: ClubsApiGetClubUsersByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetClubUsersById200Response> {
|
|
7144
|
+
return localVarFp.getClubUsersById(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
7145
|
+
},
|
|
7146
|
+
};
|
|
7147
|
+
};
|
|
7148
|
+
|
|
7149
|
+
/**
|
|
7150
|
+
* Request parameters for getClubUsersById operation in ClubsApi.
|
|
7151
|
+
* @export
|
|
7152
|
+
* @interface ClubsApiGetClubUsersByIdRequest
|
|
7153
|
+
*/
|
|
7154
|
+
export interface ClubsApiGetClubUsersByIdRequest {
|
|
7155
|
+
/**
|
|
7156
|
+
* ID du club
|
|
7157
|
+
* @type {string}
|
|
7158
|
+
* @memberof ClubsApiGetClubUsersById
|
|
7159
|
+
*/
|
|
7160
|
+
readonly id: string
|
|
7161
|
+
}
|
|
7162
|
+
|
|
7163
|
+
/**
|
|
7164
|
+
* ClubsApi - object-oriented interface
|
|
7165
|
+
* @export
|
|
7166
|
+
* @class ClubsApi
|
|
7167
|
+
* @extends {BaseAPI}
|
|
7168
|
+
*/
|
|
7169
|
+
export class ClubsApi extends BaseAPI {
|
|
7170
|
+
/**
|
|
7171
|
+
* Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
|
|
7172
|
+
* @summary Récupérer la liste publique des utilisateurs d\'un club
|
|
7173
|
+
* @param {ClubsApiGetClubUsersByIdRequest} requestParameters Request parameters.
|
|
7174
|
+
* @param {*} [options] Override http request option.
|
|
7175
|
+
* @throws {RequiredError}
|
|
7176
|
+
* @memberof ClubsApi
|
|
7177
|
+
*/
|
|
7178
|
+
public getClubUsersById(requestParameters: ClubsApiGetClubUsersByIdRequest, options?: RawAxiosRequestConfig) {
|
|
7179
|
+
return ClubsApiFp(this.configuration).getClubUsersById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
7180
|
+
}
|
|
7181
|
+
}
|
|
7182
|
+
|
|
7183
|
+
|
|
7184
|
+
|
|
7185
|
+
/**
|
|
7186
|
+
* EventsApi - axios parameter creator
|
|
7187
|
+
* @export
|
|
7188
|
+
*/
|
|
7189
|
+
export const EventsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
7190
|
+
return {
|
|
7191
|
+
/**
|
|
7192
|
+
*
|
|
7193
|
+
* @summary Get all published events for a club
|
|
7194
|
+
* @param {string} clubId
|
|
7195
|
+
* @param {*} [options] Override http request option.
|
|
7196
|
+
* @throws {RequiredError}
|
|
7197
|
+
*/
|
|
7198
|
+
getPublishedEventsByClubId: async (clubId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7199
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
7200
|
+
assertParamExists('getPublishedEventsByClubId', 'clubId', clubId)
|
|
7201
|
+
const localVarPath = `/api/events`;
|
|
7202
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7203
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7204
|
+
let baseOptions;
|
|
7205
|
+
if (configuration) {
|
|
7206
|
+
baseOptions = configuration.baseOptions;
|
|
7207
|
+
}
|
|
7208
|
+
|
|
7209
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
7210
|
+
const localVarHeaderParameter = {} as any;
|
|
7211
|
+
const localVarQueryParameter = {} as any;
|
|
7212
|
+
|
|
7213
|
+
// authentication bearerAuth required
|
|
7214
|
+
// http bearer authentication required
|
|
7215
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
7216
|
+
|
|
7217
|
+
if (clubId !== undefined) {
|
|
7218
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
7219
|
+
}
|
|
7220
|
+
|
|
7221
|
+
|
|
7222
|
+
|
|
7223
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7224
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7225
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7226
|
+
|
|
7227
|
+
return {
|
|
7228
|
+
url: toPathString(localVarUrlObj),
|
|
7229
|
+
options: localVarRequestOptions,
|
|
7230
|
+
};
|
|
7231
|
+
},
|
|
7232
|
+
/**
|
|
7233
|
+
*
|
|
7234
|
+
* @summary Register for an event
|
|
7235
|
+
* @param {string} eventId
|
|
7236
|
+
* @param {EventRegistrationRequest} eventRegistrationRequest
|
|
7237
|
+
* @param {*} [options] Override http request option.
|
|
7238
|
+
* @throws {RequiredError}
|
|
7239
|
+
*/
|
|
7240
|
+
registerForEvent: async (eventId: string, eventRegistrationRequest: EventRegistrationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7241
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
7242
|
+
assertParamExists('registerForEvent', 'eventId', eventId)
|
|
7243
|
+
// verify required parameter 'eventRegistrationRequest' is not null or undefined
|
|
7244
|
+
assertParamExists('registerForEvent', 'eventRegistrationRequest', eventRegistrationRequest)
|
|
7245
|
+
const localVarPath = `/api/events/{eventId}/register`
|
|
7246
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
7247
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7248
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7249
|
+
let baseOptions;
|
|
7250
|
+
if (configuration) {
|
|
7251
|
+
baseOptions = configuration.baseOptions;
|
|
7252
|
+
}
|
|
7253
|
+
|
|
7254
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
7255
|
+
const localVarHeaderParameter = {} as any;
|
|
7256
|
+
const localVarQueryParameter = {} as any;
|
|
7257
|
+
|
|
7258
|
+
// authentication bearerAuth required
|
|
7259
|
+
// http bearer authentication required
|
|
7260
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
7261
|
+
|
|
7262
|
+
|
|
7263
|
+
|
|
7264
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7265
|
+
|
|
7266
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7267
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7268
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7269
|
+
localVarRequestOptions.data = serializeDataIfNeeded(eventRegistrationRequest, localVarRequestOptions, configuration)
|
|
7270
|
+
|
|
7271
|
+
return {
|
|
7272
|
+
url: toPathString(localVarUrlObj),
|
|
7273
|
+
options: localVarRequestOptions,
|
|
7274
|
+
};
|
|
7275
|
+
},
|
|
7276
|
+
}
|
|
7277
|
+
};
|
|
7278
|
+
|
|
7279
|
+
/**
|
|
7280
|
+
* EventsApi - functional programming interface
|
|
7281
|
+
* @export
|
|
7282
|
+
*/
|
|
7283
|
+
export const EventsApiFp = function(configuration?: Configuration) {
|
|
7284
|
+
const localVarAxiosParamCreator = EventsApiAxiosParamCreator(configuration)
|
|
7285
|
+
return {
|
|
7286
|
+
/**
|
|
7287
|
+
*
|
|
7288
|
+
* @summary Get all published events for a club
|
|
7289
|
+
* @param {string} clubId
|
|
7290
|
+
* @param {*} [options] Override http request option.
|
|
7291
|
+
* @throws {RequiredError}
|
|
7292
|
+
*/
|
|
7293
|
+
async getPublishedEventsByClubId(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPublishedEventsByClubId200Response>> {
|
|
7294
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPublishedEventsByClubId(clubId, options);
|
|
7295
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7296
|
+
const localVarOperationServerBasePath = operationServerMap['EventsApi.getPublishedEventsByClubId']?.[localVarOperationServerIndex]?.url;
|
|
7297
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7298
|
+
},
|
|
7299
|
+
/**
|
|
7300
|
+
*
|
|
7301
|
+
* @summary Register for an event
|
|
7302
|
+
* @param {string} eventId
|
|
7303
|
+
* @param {EventRegistrationRequest} eventRegistrationRequest
|
|
7304
|
+
* @param {*} [options] Override http request option.
|
|
7305
|
+
* @throws {RequiredError}
|
|
7306
|
+
*/
|
|
7307
|
+
async registerForEvent(eventId: string, eventRegistrationRequest: EventRegistrationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegisterForEvent201Response>> {
|
|
7308
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.registerForEvent(eventId, eventRegistrationRequest, options);
|
|
7309
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7310
|
+
const localVarOperationServerBasePath = operationServerMap['EventsApi.registerForEvent']?.[localVarOperationServerIndex]?.url;
|
|
7311
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7312
|
+
},
|
|
7313
|
+
}
|
|
7314
|
+
};
|
|
7315
|
+
|
|
7316
|
+
/**
|
|
7317
|
+
* EventsApi - factory interface
|
|
7318
|
+
* @export
|
|
7319
|
+
*/
|
|
7320
|
+
export const EventsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
7321
|
+
const localVarFp = EventsApiFp(configuration)
|
|
7322
|
+
return {
|
|
7323
|
+
/**
|
|
7324
|
+
*
|
|
7325
|
+
* @summary Get all published events for a club
|
|
7326
|
+
* @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
|
|
7327
|
+
* @param {*} [options] Override http request option.
|
|
7328
|
+
* @throws {RequiredError}
|
|
7329
|
+
*/
|
|
7330
|
+
getPublishedEventsByClubId(requestParameters: EventsApiGetPublishedEventsByClubIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetPublishedEventsByClubId200Response> {
|
|
7331
|
+
return localVarFp.getPublishedEventsByClubId(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
7332
|
+
},
|
|
7333
|
+
/**
|
|
7334
|
+
*
|
|
7335
|
+
* @summary Register for an event
|
|
7336
|
+
* @param {EventsApiRegisterForEventRequest} requestParameters Request parameters.
|
|
7337
|
+
* @param {*} [options] Override http request option.
|
|
7338
|
+
* @throws {RequiredError}
|
|
7339
|
+
*/
|
|
7340
|
+
registerForEvent(requestParameters: EventsApiRegisterForEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<RegisterForEvent201Response> {
|
|
7341
|
+
return localVarFp.registerForEvent(requestParameters.eventId, requestParameters.eventRegistrationRequest, options).then((request) => request(axios, basePath));
|
|
7342
|
+
},
|
|
7343
|
+
};
|
|
7344
|
+
};
|
|
7345
|
+
|
|
7346
|
+
/**
|
|
7347
|
+
* Request parameters for getPublishedEventsByClubId operation in EventsApi.
|
|
7348
|
+
* @export
|
|
7349
|
+
* @interface EventsApiGetPublishedEventsByClubIdRequest
|
|
7350
|
+
*/
|
|
7351
|
+
export interface EventsApiGetPublishedEventsByClubIdRequest {
|
|
7352
|
+
/**
|
|
7353
|
+
*
|
|
7354
|
+
* @type {string}
|
|
7355
|
+
* @memberof EventsApiGetPublishedEventsByClubId
|
|
7356
|
+
*/
|
|
7357
|
+
readonly clubId: string
|
|
7358
|
+
}
|
|
7359
|
+
|
|
7360
|
+
/**
|
|
7361
|
+
* Request parameters for registerForEvent operation in EventsApi.
|
|
7362
|
+
* @export
|
|
7363
|
+
* @interface EventsApiRegisterForEventRequest
|
|
7364
|
+
*/
|
|
7365
|
+
export interface EventsApiRegisterForEventRequest {
|
|
7366
|
+
/**
|
|
7367
|
+
*
|
|
7368
|
+
* @type {string}
|
|
7369
|
+
* @memberof EventsApiRegisterForEvent
|
|
7370
|
+
*/
|
|
7371
|
+
readonly eventId: string
|
|
7372
|
+
|
|
7373
|
+
/**
|
|
7374
|
+
*
|
|
7375
|
+
* @type {EventRegistrationRequest}
|
|
7376
|
+
* @memberof EventsApiRegisterForEvent
|
|
7377
|
+
*/
|
|
7378
|
+
readonly eventRegistrationRequest: EventRegistrationRequest
|
|
7379
|
+
}
|
|
7380
|
+
|
|
7381
|
+
/**
|
|
7382
|
+
* EventsApi - object-oriented interface
|
|
7383
|
+
* @export
|
|
7384
|
+
* @class EventsApi
|
|
7385
|
+
* @extends {BaseAPI}
|
|
7386
|
+
*/
|
|
7387
|
+
export class EventsApi extends BaseAPI {
|
|
7388
|
+
/**
|
|
7389
|
+
*
|
|
7390
|
+
* @summary Get all published events for a club
|
|
7391
|
+
* @param {EventsApiGetPublishedEventsByClubIdRequest} requestParameters Request parameters.
|
|
7392
|
+
* @param {*} [options] Override http request option.
|
|
7393
|
+
* @throws {RequiredError}
|
|
7394
|
+
* @memberof EventsApi
|
|
7395
|
+
*/
|
|
7396
|
+
public getPublishedEventsByClubId(requestParameters: EventsApiGetPublishedEventsByClubIdRequest, options?: RawAxiosRequestConfig) {
|
|
7397
|
+
return EventsApiFp(this.configuration).getPublishedEventsByClubId(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
7398
|
+
}
|
|
7399
|
+
|
|
7400
|
+
/**
|
|
7401
|
+
*
|
|
7402
|
+
* @summary Register for an event
|
|
7403
|
+
* @param {EventsApiRegisterForEventRequest} requestParameters Request parameters.
|
|
7404
|
+
* @param {*} [options] Override http request option.
|
|
7405
|
+
* @throws {RequiredError}
|
|
7406
|
+
* @memberof EventsApi
|
|
7407
|
+
*/
|
|
7408
|
+
public registerForEvent(requestParameters: EventsApiRegisterForEventRequest, options?: RawAxiosRequestConfig) {
|
|
7409
|
+
return EventsApiFp(this.configuration).registerForEvent(requestParameters.eventId, requestParameters.eventRegistrationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7410
|
+
}
|
|
7411
|
+
}
|
|
7412
|
+
|
|
7413
|
+
|
|
7414
|
+
|
|
7415
|
+
/**
|
|
7416
|
+
* ManagerBookingsApi - axios parameter creator
|
|
6710
7417
|
* @export
|
|
6711
7418
|
*/
|
|
6712
7419
|
export const ManagerBookingsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
@@ -8942,19 +9649,408 @@ export class ManagerClubsApi extends BaseAPI {
|
|
|
8942
9649
|
|
|
8943
9650
|
|
|
8944
9651
|
/**
|
|
8945
|
-
*
|
|
9652
|
+
* ManagerEventsApi - axios parameter creator
|
|
8946
9653
|
* @export
|
|
8947
9654
|
*/
|
|
8948
|
-
export const
|
|
9655
|
+
export const ManagerEventsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
8949
9656
|
return {
|
|
8950
9657
|
/**
|
|
8951
9658
|
*
|
|
8952
|
-
* @summary
|
|
8953
|
-
* @param {
|
|
9659
|
+
* @summary Create a new event
|
|
9660
|
+
* @param {CreateEventRequest} createEventRequest
|
|
8954
9661
|
* @param {*} [options] Override http request option.
|
|
8955
9662
|
* @throws {RequiredError}
|
|
8956
9663
|
*/
|
|
8957
|
-
|
|
9664
|
+
createEvent: async (createEventRequest: CreateEventRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9665
|
+
// verify required parameter 'createEventRequest' is not null or undefined
|
|
9666
|
+
assertParamExists('createEvent', 'createEventRequest', createEventRequest)
|
|
9667
|
+
const localVarPath = `/api/events/manager/createEvent`;
|
|
9668
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9669
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9670
|
+
let baseOptions;
|
|
9671
|
+
if (configuration) {
|
|
9672
|
+
baseOptions = configuration.baseOptions;
|
|
9673
|
+
}
|
|
9674
|
+
|
|
9675
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
9676
|
+
const localVarHeaderParameter = {} as any;
|
|
9677
|
+
const localVarQueryParameter = {} as any;
|
|
9678
|
+
|
|
9679
|
+
// authentication bearerAuth required
|
|
9680
|
+
// http bearer authentication required
|
|
9681
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
9682
|
+
|
|
9683
|
+
|
|
9684
|
+
|
|
9685
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9686
|
+
|
|
9687
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9688
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9689
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9690
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createEventRequest, localVarRequestOptions, configuration)
|
|
9691
|
+
|
|
9692
|
+
return {
|
|
9693
|
+
url: toPathString(localVarUrlObj),
|
|
9694
|
+
options: localVarRequestOptions,
|
|
9695
|
+
};
|
|
9696
|
+
},
|
|
9697
|
+
/**
|
|
9698
|
+
*
|
|
9699
|
+
* @summary Delete an event
|
|
9700
|
+
* @param {string} eventId
|
|
9701
|
+
* @param {*} [options] Override http request option.
|
|
9702
|
+
* @throws {RequiredError}
|
|
9703
|
+
*/
|
|
9704
|
+
deleteEvent: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9705
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
9706
|
+
assertParamExists('deleteEvent', 'eventId', eventId)
|
|
9707
|
+
const localVarPath = `/api/events/manager/deleteEvent/{eventId}`
|
|
9708
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
9709
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9710
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9711
|
+
let baseOptions;
|
|
9712
|
+
if (configuration) {
|
|
9713
|
+
baseOptions = configuration.baseOptions;
|
|
9714
|
+
}
|
|
9715
|
+
|
|
9716
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
9717
|
+
const localVarHeaderParameter = {} as any;
|
|
9718
|
+
const localVarQueryParameter = {} as any;
|
|
9719
|
+
|
|
9720
|
+
// authentication bearerAuth required
|
|
9721
|
+
// http bearer authentication required
|
|
9722
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
9723
|
+
|
|
9724
|
+
|
|
9725
|
+
|
|
9726
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9727
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9728
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9729
|
+
|
|
9730
|
+
return {
|
|
9731
|
+
url: toPathString(localVarUrlObj),
|
|
9732
|
+
options: localVarRequestOptions,
|
|
9733
|
+
};
|
|
9734
|
+
},
|
|
9735
|
+
/**
|
|
9736
|
+
*
|
|
9737
|
+
* @summary Publish an event
|
|
9738
|
+
* @param {string} eventId
|
|
9739
|
+
* @param {*} [options] Override http request option.
|
|
9740
|
+
* @throws {RequiredError}
|
|
9741
|
+
*/
|
|
9742
|
+
publishEvent: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9743
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
9744
|
+
assertParamExists('publishEvent', 'eventId', eventId)
|
|
9745
|
+
const localVarPath = `/api/events/manager/publishEvent/{eventId}`
|
|
9746
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
9747
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9748
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9749
|
+
let baseOptions;
|
|
9750
|
+
if (configuration) {
|
|
9751
|
+
baseOptions = configuration.baseOptions;
|
|
9752
|
+
}
|
|
9753
|
+
|
|
9754
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
9755
|
+
const localVarHeaderParameter = {} as any;
|
|
9756
|
+
const localVarQueryParameter = {} as any;
|
|
9757
|
+
|
|
9758
|
+
// authentication bearerAuth required
|
|
9759
|
+
// http bearer authentication required
|
|
9760
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
9761
|
+
|
|
9762
|
+
|
|
9763
|
+
|
|
9764
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9765
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9766
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9767
|
+
|
|
9768
|
+
return {
|
|
9769
|
+
url: toPathString(localVarUrlObj),
|
|
9770
|
+
options: localVarRequestOptions,
|
|
9771
|
+
};
|
|
9772
|
+
},
|
|
9773
|
+
/**
|
|
9774
|
+
*
|
|
9775
|
+
* @summary Unpublish an event
|
|
9776
|
+
* @param {string} eventId
|
|
9777
|
+
* @param {*} [options] Override http request option.
|
|
9778
|
+
* @throws {RequiredError}
|
|
9779
|
+
*/
|
|
9780
|
+
unpublishEvent: async (eventId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9781
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
9782
|
+
assertParamExists('unpublishEvent', 'eventId', eventId)
|
|
9783
|
+
const localVarPath = `/api/events/manager/unpublishEvent/{eventId}`
|
|
9784
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)));
|
|
9785
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9786
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9787
|
+
let baseOptions;
|
|
9788
|
+
if (configuration) {
|
|
9789
|
+
baseOptions = configuration.baseOptions;
|
|
9790
|
+
}
|
|
9791
|
+
|
|
9792
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
9793
|
+
const localVarHeaderParameter = {} as any;
|
|
9794
|
+
const localVarQueryParameter = {} as any;
|
|
9795
|
+
|
|
9796
|
+
// authentication bearerAuth required
|
|
9797
|
+
// http bearer authentication required
|
|
9798
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
9799
|
+
|
|
9800
|
+
|
|
9801
|
+
|
|
9802
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9803
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9804
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9805
|
+
|
|
9806
|
+
return {
|
|
9807
|
+
url: toPathString(localVarUrlObj),
|
|
9808
|
+
options: localVarRequestOptions,
|
|
9809
|
+
};
|
|
9810
|
+
},
|
|
9811
|
+
}
|
|
9812
|
+
};
|
|
9813
|
+
|
|
9814
|
+
/**
|
|
9815
|
+
* ManagerEventsApi - functional programming interface
|
|
9816
|
+
* @export
|
|
9817
|
+
*/
|
|
9818
|
+
export const ManagerEventsApiFp = function(configuration?: Configuration) {
|
|
9819
|
+
const localVarAxiosParamCreator = ManagerEventsApiAxiosParamCreator(configuration)
|
|
9820
|
+
return {
|
|
9821
|
+
/**
|
|
9822
|
+
*
|
|
9823
|
+
* @summary Create a new event
|
|
9824
|
+
* @param {CreateEventRequest} createEventRequest
|
|
9825
|
+
* @param {*} [options] Override http request option.
|
|
9826
|
+
* @throws {RequiredError}
|
|
9827
|
+
*/
|
|
9828
|
+
async createEvent(createEventRequest: CreateEventRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManagerEventResponse>> {
|
|
9829
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createEvent(createEventRequest, options);
|
|
9830
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9831
|
+
const localVarOperationServerBasePath = operationServerMap['ManagerEventsApi.createEvent']?.[localVarOperationServerIndex]?.url;
|
|
9832
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9833
|
+
},
|
|
9834
|
+
/**
|
|
9835
|
+
*
|
|
9836
|
+
* @summary Delete an event
|
|
9837
|
+
* @param {string} eventId
|
|
9838
|
+
* @param {*} [options] Override http request option.
|
|
9839
|
+
* @throws {RequiredError}
|
|
9840
|
+
*/
|
|
9841
|
+
async deleteEvent(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteEvent200Response>> {
|
|
9842
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteEvent(eventId, options);
|
|
9843
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9844
|
+
const localVarOperationServerBasePath = operationServerMap['ManagerEventsApi.deleteEvent']?.[localVarOperationServerIndex]?.url;
|
|
9845
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9846
|
+
},
|
|
9847
|
+
/**
|
|
9848
|
+
*
|
|
9849
|
+
* @summary Publish an event
|
|
9850
|
+
* @param {string} eventId
|
|
9851
|
+
* @param {*} [options] Override http request option.
|
|
9852
|
+
* @throws {RequiredError}
|
|
9853
|
+
*/
|
|
9854
|
+
async publishEvent(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManagerEventResponse>> {
|
|
9855
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.publishEvent(eventId, options);
|
|
9856
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9857
|
+
const localVarOperationServerBasePath = operationServerMap['ManagerEventsApi.publishEvent']?.[localVarOperationServerIndex]?.url;
|
|
9858
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9859
|
+
},
|
|
9860
|
+
/**
|
|
9861
|
+
*
|
|
9862
|
+
* @summary Unpublish an event
|
|
9863
|
+
* @param {string} eventId
|
|
9864
|
+
* @param {*} [options] Override http request option.
|
|
9865
|
+
* @throws {RequiredError}
|
|
9866
|
+
*/
|
|
9867
|
+
async unpublishEvent(eventId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManagerEventResponse>> {
|
|
9868
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.unpublishEvent(eventId, options);
|
|
9869
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
9870
|
+
const localVarOperationServerBasePath = operationServerMap['ManagerEventsApi.unpublishEvent']?.[localVarOperationServerIndex]?.url;
|
|
9871
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9872
|
+
},
|
|
9873
|
+
}
|
|
9874
|
+
};
|
|
9875
|
+
|
|
9876
|
+
/**
|
|
9877
|
+
* ManagerEventsApi - factory interface
|
|
9878
|
+
* @export
|
|
9879
|
+
*/
|
|
9880
|
+
export const ManagerEventsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
9881
|
+
const localVarFp = ManagerEventsApiFp(configuration)
|
|
9882
|
+
return {
|
|
9883
|
+
/**
|
|
9884
|
+
*
|
|
9885
|
+
* @summary Create a new event
|
|
9886
|
+
* @param {ManagerEventsApiCreateEventRequest} requestParameters Request parameters.
|
|
9887
|
+
* @param {*} [options] Override http request option.
|
|
9888
|
+
* @throws {RequiredError}
|
|
9889
|
+
*/
|
|
9890
|
+
createEvent(requestParameters: ManagerEventsApiCreateEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<ManagerEventResponse> {
|
|
9891
|
+
return localVarFp.createEvent(requestParameters.createEventRequest, options).then((request) => request(axios, basePath));
|
|
9892
|
+
},
|
|
9893
|
+
/**
|
|
9894
|
+
*
|
|
9895
|
+
* @summary Delete an event
|
|
9896
|
+
* @param {ManagerEventsApiDeleteEventRequest} requestParameters Request parameters.
|
|
9897
|
+
* @param {*} [options] Override http request option.
|
|
9898
|
+
* @throws {RequiredError}
|
|
9899
|
+
*/
|
|
9900
|
+
deleteEvent(requestParameters: ManagerEventsApiDeleteEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteEvent200Response> {
|
|
9901
|
+
return localVarFp.deleteEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
9902
|
+
},
|
|
9903
|
+
/**
|
|
9904
|
+
*
|
|
9905
|
+
* @summary Publish an event
|
|
9906
|
+
* @param {ManagerEventsApiPublishEventRequest} requestParameters Request parameters.
|
|
9907
|
+
* @param {*} [options] Override http request option.
|
|
9908
|
+
* @throws {RequiredError}
|
|
9909
|
+
*/
|
|
9910
|
+
publishEvent(requestParameters: ManagerEventsApiPublishEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<ManagerEventResponse> {
|
|
9911
|
+
return localVarFp.publishEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
9912
|
+
},
|
|
9913
|
+
/**
|
|
9914
|
+
*
|
|
9915
|
+
* @summary Unpublish an event
|
|
9916
|
+
* @param {ManagerEventsApiUnpublishEventRequest} requestParameters Request parameters.
|
|
9917
|
+
* @param {*} [options] Override http request option.
|
|
9918
|
+
* @throws {RequiredError}
|
|
9919
|
+
*/
|
|
9920
|
+
unpublishEvent(requestParameters: ManagerEventsApiUnpublishEventRequest, options?: RawAxiosRequestConfig): AxiosPromise<ManagerEventResponse> {
|
|
9921
|
+
return localVarFp.unpublishEvent(requestParameters.eventId, options).then((request) => request(axios, basePath));
|
|
9922
|
+
},
|
|
9923
|
+
};
|
|
9924
|
+
};
|
|
9925
|
+
|
|
9926
|
+
/**
|
|
9927
|
+
* Request parameters for createEvent operation in ManagerEventsApi.
|
|
9928
|
+
* @export
|
|
9929
|
+
* @interface ManagerEventsApiCreateEventRequest
|
|
9930
|
+
*/
|
|
9931
|
+
export interface ManagerEventsApiCreateEventRequest {
|
|
9932
|
+
/**
|
|
9933
|
+
*
|
|
9934
|
+
* @type {CreateEventRequest}
|
|
9935
|
+
* @memberof ManagerEventsApiCreateEvent
|
|
9936
|
+
*/
|
|
9937
|
+
readonly createEventRequest: CreateEventRequest
|
|
9938
|
+
}
|
|
9939
|
+
|
|
9940
|
+
/**
|
|
9941
|
+
* Request parameters for deleteEvent operation in ManagerEventsApi.
|
|
9942
|
+
* @export
|
|
9943
|
+
* @interface ManagerEventsApiDeleteEventRequest
|
|
9944
|
+
*/
|
|
9945
|
+
export interface ManagerEventsApiDeleteEventRequest {
|
|
9946
|
+
/**
|
|
9947
|
+
*
|
|
9948
|
+
* @type {string}
|
|
9949
|
+
* @memberof ManagerEventsApiDeleteEvent
|
|
9950
|
+
*/
|
|
9951
|
+
readonly eventId: string
|
|
9952
|
+
}
|
|
9953
|
+
|
|
9954
|
+
/**
|
|
9955
|
+
* Request parameters for publishEvent operation in ManagerEventsApi.
|
|
9956
|
+
* @export
|
|
9957
|
+
* @interface ManagerEventsApiPublishEventRequest
|
|
9958
|
+
*/
|
|
9959
|
+
export interface ManagerEventsApiPublishEventRequest {
|
|
9960
|
+
/**
|
|
9961
|
+
*
|
|
9962
|
+
* @type {string}
|
|
9963
|
+
* @memberof ManagerEventsApiPublishEvent
|
|
9964
|
+
*/
|
|
9965
|
+
readonly eventId: string
|
|
9966
|
+
}
|
|
9967
|
+
|
|
9968
|
+
/**
|
|
9969
|
+
* Request parameters for unpublishEvent operation in ManagerEventsApi.
|
|
9970
|
+
* @export
|
|
9971
|
+
* @interface ManagerEventsApiUnpublishEventRequest
|
|
9972
|
+
*/
|
|
9973
|
+
export interface ManagerEventsApiUnpublishEventRequest {
|
|
9974
|
+
/**
|
|
9975
|
+
*
|
|
9976
|
+
* @type {string}
|
|
9977
|
+
* @memberof ManagerEventsApiUnpublishEvent
|
|
9978
|
+
*/
|
|
9979
|
+
readonly eventId: string
|
|
9980
|
+
}
|
|
9981
|
+
|
|
9982
|
+
/**
|
|
9983
|
+
* ManagerEventsApi - object-oriented interface
|
|
9984
|
+
* @export
|
|
9985
|
+
* @class ManagerEventsApi
|
|
9986
|
+
* @extends {BaseAPI}
|
|
9987
|
+
*/
|
|
9988
|
+
export class ManagerEventsApi extends BaseAPI {
|
|
9989
|
+
/**
|
|
9990
|
+
*
|
|
9991
|
+
* @summary Create a new event
|
|
9992
|
+
* @param {ManagerEventsApiCreateEventRequest} requestParameters Request parameters.
|
|
9993
|
+
* @param {*} [options] Override http request option.
|
|
9994
|
+
* @throws {RequiredError}
|
|
9995
|
+
* @memberof ManagerEventsApi
|
|
9996
|
+
*/
|
|
9997
|
+
public createEvent(requestParameters: ManagerEventsApiCreateEventRequest, options?: RawAxiosRequestConfig) {
|
|
9998
|
+
return ManagerEventsApiFp(this.configuration).createEvent(requestParameters.createEventRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9999
|
+
}
|
|
10000
|
+
|
|
10001
|
+
/**
|
|
10002
|
+
*
|
|
10003
|
+
* @summary Delete an event
|
|
10004
|
+
* @param {ManagerEventsApiDeleteEventRequest} requestParameters Request parameters.
|
|
10005
|
+
* @param {*} [options] Override http request option.
|
|
10006
|
+
* @throws {RequiredError}
|
|
10007
|
+
* @memberof ManagerEventsApi
|
|
10008
|
+
*/
|
|
10009
|
+
public deleteEvent(requestParameters: ManagerEventsApiDeleteEventRequest, options?: RawAxiosRequestConfig) {
|
|
10010
|
+
return ManagerEventsApiFp(this.configuration).deleteEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
10011
|
+
}
|
|
10012
|
+
|
|
10013
|
+
/**
|
|
10014
|
+
*
|
|
10015
|
+
* @summary Publish an event
|
|
10016
|
+
* @param {ManagerEventsApiPublishEventRequest} requestParameters Request parameters.
|
|
10017
|
+
* @param {*} [options] Override http request option.
|
|
10018
|
+
* @throws {RequiredError}
|
|
10019
|
+
* @memberof ManagerEventsApi
|
|
10020
|
+
*/
|
|
10021
|
+
public publishEvent(requestParameters: ManagerEventsApiPublishEventRequest, options?: RawAxiosRequestConfig) {
|
|
10022
|
+
return ManagerEventsApiFp(this.configuration).publishEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
10023
|
+
}
|
|
10024
|
+
|
|
10025
|
+
/**
|
|
10026
|
+
*
|
|
10027
|
+
* @summary Unpublish an event
|
|
10028
|
+
* @param {ManagerEventsApiUnpublishEventRequest} requestParameters Request parameters.
|
|
10029
|
+
* @param {*} [options] Override http request option.
|
|
10030
|
+
* @throws {RequiredError}
|
|
10031
|
+
* @memberof ManagerEventsApi
|
|
10032
|
+
*/
|
|
10033
|
+
public unpublishEvent(requestParameters: ManagerEventsApiUnpublishEventRequest, options?: RawAxiosRequestConfig) {
|
|
10034
|
+
return ManagerEventsApiFp(this.configuration).unpublishEvent(requestParameters.eventId, options).then((request) => request(this.axios, this.basePath));
|
|
10035
|
+
}
|
|
10036
|
+
}
|
|
10037
|
+
|
|
10038
|
+
|
|
10039
|
+
|
|
10040
|
+
/**
|
|
10041
|
+
* ManagerSportsApi - axios parameter creator
|
|
10042
|
+
* @export
|
|
10043
|
+
*/
|
|
10044
|
+
export const ManagerSportsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
10045
|
+
return {
|
|
10046
|
+
/**
|
|
10047
|
+
*
|
|
10048
|
+
* @summary Créer un sport dans un club
|
|
10049
|
+
* @param {CreateSportRequest} createSportRequest
|
|
10050
|
+
* @param {*} [options] Override http request option.
|
|
10051
|
+
* @throws {RequiredError}
|
|
10052
|
+
*/
|
|
10053
|
+
createSport: async (createSportRequest: CreateSportRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8958
10054
|
// verify required parameter 'createSportRequest' is not null or undefined
|
|
8959
10055
|
assertParamExists('createSport', 'createSportRequest', createSportRequest)
|
|
8960
10056
|
const localVarPath = `/api/sports`;
|
|
@@ -9746,6 +10842,111 @@ export class StaffClubsApi extends BaseAPI {
|
|
|
9746
10842
|
|
|
9747
10843
|
|
|
9748
10844
|
|
|
10845
|
+
/**
|
|
10846
|
+
* StaffEventsApi - axios parameter creator
|
|
10847
|
+
* @export
|
|
10848
|
+
*/
|
|
10849
|
+
export const StaffEventsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
10850
|
+
return {
|
|
10851
|
+
/**
|
|
10852
|
+
*
|
|
10853
|
+
* @summary Get all events for current club (including unpublished)
|
|
10854
|
+
* @param {*} [options] Override http request option.
|
|
10855
|
+
* @throws {RequiredError}
|
|
10856
|
+
*/
|
|
10857
|
+
getEventsByClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10858
|
+
const localVarPath = `/api/events/staff/getEvents`;
|
|
10859
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10860
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10861
|
+
let baseOptions;
|
|
10862
|
+
if (configuration) {
|
|
10863
|
+
baseOptions = configuration.baseOptions;
|
|
10864
|
+
}
|
|
10865
|
+
|
|
10866
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
10867
|
+
const localVarHeaderParameter = {} as any;
|
|
10868
|
+
const localVarQueryParameter = {} as any;
|
|
10869
|
+
|
|
10870
|
+
// authentication bearerAuth required
|
|
10871
|
+
// http bearer authentication required
|
|
10872
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
10873
|
+
|
|
10874
|
+
|
|
10875
|
+
|
|
10876
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10877
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10878
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10879
|
+
|
|
10880
|
+
return {
|
|
10881
|
+
url: toPathString(localVarUrlObj),
|
|
10882
|
+
options: localVarRequestOptions,
|
|
10883
|
+
};
|
|
10884
|
+
},
|
|
10885
|
+
}
|
|
10886
|
+
};
|
|
10887
|
+
|
|
10888
|
+
/**
|
|
10889
|
+
* StaffEventsApi - functional programming interface
|
|
10890
|
+
* @export
|
|
10891
|
+
*/
|
|
10892
|
+
export const StaffEventsApiFp = function(configuration?: Configuration) {
|
|
10893
|
+
const localVarAxiosParamCreator = StaffEventsApiAxiosParamCreator(configuration)
|
|
10894
|
+
return {
|
|
10895
|
+
/**
|
|
10896
|
+
*
|
|
10897
|
+
* @summary Get all events for current club (including unpublished)
|
|
10898
|
+
* @param {*} [options] Override http request option.
|
|
10899
|
+
* @throws {RequiredError}
|
|
10900
|
+
*/
|
|
10901
|
+
async getEventsByClub(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StaffEventResponse>> {
|
|
10902
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEventsByClub(options);
|
|
10903
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
10904
|
+
const localVarOperationServerBasePath = operationServerMap['StaffEventsApi.getEventsByClub']?.[localVarOperationServerIndex]?.url;
|
|
10905
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10906
|
+
},
|
|
10907
|
+
}
|
|
10908
|
+
};
|
|
10909
|
+
|
|
10910
|
+
/**
|
|
10911
|
+
* StaffEventsApi - factory interface
|
|
10912
|
+
* @export
|
|
10913
|
+
*/
|
|
10914
|
+
export const StaffEventsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
10915
|
+
const localVarFp = StaffEventsApiFp(configuration)
|
|
10916
|
+
return {
|
|
10917
|
+
/**
|
|
10918
|
+
*
|
|
10919
|
+
* @summary Get all events for current club (including unpublished)
|
|
10920
|
+
* @param {*} [options] Override http request option.
|
|
10921
|
+
* @throws {RequiredError}
|
|
10922
|
+
*/
|
|
10923
|
+
getEventsByClub(options?: RawAxiosRequestConfig): AxiosPromise<StaffEventResponse> {
|
|
10924
|
+
return localVarFp.getEventsByClub(options).then((request) => request(axios, basePath));
|
|
10925
|
+
},
|
|
10926
|
+
};
|
|
10927
|
+
};
|
|
10928
|
+
|
|
10929
|
+
/**
|
|
10930
|
+
* StaffEventsApi - object-oriented interface
|
|
10931
|
+
* @export
|
|
10932
|
+
* @class StaffEventsApi
|
|
10933
|
+
* @extends {BaseAPI}
|
|
10934
|
+
*/
|
|
10935
|
+
export class StaffEventsApi extends BaseAPI {
|
|
10936
|
+
/**
|
|
10937
|
+
*
|
|
10938
|
+
* @summary Get all events for current club (including unpublished)
|
|
10939
|
+
* @param {*} [options] Override http request option.
|
|
10940
|
+
* @throws {RequiredError}
|
|
10941
|
+
* @memberof StaffEventsApi
|
|
10942
|
+
*/
|
|
10943
|
+
public getEventsByClub(options?: RawAxiosRequestConfig) {
|
|
10944
|
+
return StaffEventsApiFp(this.configuration).getEventsByClub(options).then((request) => request(this.axios, this.basePath));
|
|
10945
|
+
}
|
|
10946
|
+
}
|
|
10947
|
+
|
|
10948
|
+
|
|
10949
|
+
|
|
9749
10950
|
/**
|
|
9750
10951
|
* StaffProfileApi - axios parameter creator
|
|
9751
10952
|
* @export
|