@tennac-booking/sdk 1.0.28 → 1.0.29
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 +7 -1
- package/README.md +13 -3
- package/api.ts +503 -16
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +336 -17
- package/dist/api.js +276 -1
- 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 +336 -17
- package/dist/esm/api.js +276 -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/AddFavoritePlayerRequestBody.md +20 -0
- package/docs/FavoriteClubItem.md +26 -0
- package/docs/FavoritePlayerPublic.md +28 -0
- package/docs/FavoritePlayersIdsResponse.md +22 -0
- package/docs/FavoritePlayersResponse.md +20 -0
- package/docs/UserBookingsResponse.md +26 -0
- package/docs/{GetFavoriteClubs200Response.md → UserFavoriteClubsResponse.md} +4 -4
- package/docs/UserProfileApi.md +215 -2
- package/index.ts +1 -1
- package/package.json +1 -1
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.29
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -112,6 +112,19 @@ export interface AddFavoriteClubRequestBody {
|
|
|
112
112
|
*/
|
|
113
113
|
'clubId': string;
|
|
114
114
|
}
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @export
|
|
118
|
+
* @interface AddFavoritePlayerRequestBody
|
|
119
|
+
*/
|
|
120
|
+
export interface AddFavoritePlayerRequestBody {
|
|
121
|
+
/**
|
|
122
|
+
* ID de l\'utilisateur à ajouter en favori
|
|
123
|
+
* @type {string}
|
|
124
|
+
* @memberof AddFavoritePlayerRequestBody
|
|
125
|
+
*/
|
|
126
|
+
'favoritePlayerId': string;
|
|
127
|
+
}
|
|
115
128
|
/**
|
|
116
129
|
*
|
|
117
130
|
* @export
|
|
@@ -2259,6 +2272,37 @@ export interface EventRegistrationRequest {
|
|
|
2259
2272
|
*/
|
|
2260
2273
|
'players': Array<string>;
|
|
2261
2274
|
}
|
|
2275
|
+
/**
|
|
2276
|
+
*
|
|
2277
|
+
* @export
|
|
2278
|
+
* @interface FavoriteClubItem
|
|
2279
|
+
*/
|
|
2280
|
+
export interface FavoriteClubItem {
|
|
2281
|
+
/**
|
|
2282
|
+
* ID du club
|
|
2283
|
+
* @type {string}
|
|
2284
|
+
* @memberof FavoriteClubItem
|
|
2285
|
+
*/
|
|
2286
|
+
'_id'?: string;
|
|
2287
|
+
/**
|
|
2288
|
+
*
|
|
2289
|
+
* @type {string}
|
|
2290
|
+
* @memberof FavoriteClubItem
|
|
2291
|
+
*/
|
|
2292
|
+
'name'?: string;
|
|
2293
|
+
/**
|
|
2294
|
+
*
|
|
2295
|
+
* @type {string}
|
|
2296
|
+
* @memberof FavoriteClubItem
|
|
2297
|
+
*/
|
|
2298
|
+
'address'?: string | null;
|
|
2299
|
+
/**
|
|
2300
|
+
*
|
|
2301
|
+
* @type {boolean}
|
|
2302
|
+
* @memberof FavoriteClubItem
|
|
2303
|
+
*/
|
|
2304
|
+
'isActive'?: boolean;
|
|
2305
|
+
}
|
|
2262
2306
|
/**
|
|
2263
2307
|
*
|
|
2264
2308
|
* @export
|
|
@@ -2278,6 +2322,75 @@ export interface FavoriteClubResponse {
|
|
|
2278
2322
|
*/
|
|
2279
2323
|
'favoriteClubs'?: Array<string>;
|
|
2280
2324
|
}
|
|
2325
|
+
/**
|
|
2326
|
+
*
|
|
2327
|
+
* @export
|
|
2328
|
+
* @interface FavoritePlayerPublic
|
|
2329
|
+
*/
|
|
2330
|
+
export interface FavoritePlayerPublic {
|
|
2331
|
+
/**
|
|
2332
|
+
*
|
|
2333
|
+
* @type {string}
|
|
2334
|
+
* @memberof FavoritePlayerPublic
|
|
2335
|
+
*/
|
|
2336
|
+
'_id'?: string;
|
|
2337
|
+
/**
|
|
2338
|
+
*
|
|
2339
|
+
* @type {string}
|
|
2340
|
+
* @memberof FavoritePlayerPublic
|
|
2341
|
+
*/
|
|
2342
|
+
'firstName'?: string;
|
|
2343
|
+
/**
|
|
2344
|
+
*
|
|
2345
|
+
* @type {string}
|
|
2346
|
+
* @memberof FavoritePlayerPublic
|
|
2347
|
+
*/
|
|
2348
|
+
'lastName'?: string;
|
|
2349
|
+
/**
|
|
2350
|
+
*
|
|
2351
|
+
* @type {string}
|
|
2352
|
+
* @memberof FavoritePlayerPublic
|
|
2353
|
+
*/
|
|
2354
|
+
'profilePicture'?: string | null;
|
|
2355
|
+
/**
|
|
2356
|
+
*
|
|
2357
|
+
* @type {boolean}
|
|
2358
|
+
* @memberof FavoritePlayerPublic
|
|
2359
|
+
*/
|
|
2360
|
+
'isProfileVisible'?: boolean;
|
|
2361
|
+
}
|
|
2362
|
+
/**
|
|
2363
|
+
*
|
|
2364
|
+
* @export
|
|
2365
|
+
* @interface FavoritePlayersIdsResponse
|
|
2366
|
+
*/
|
|
2367
|
+
export interface FavoritePlayersIdsResponse {
|
|
2368
|
+
/**
|
|
2369
|
+
*
|
|
2370
|
+
* @type {string}
|
|
2371
|
+
* @memberof FavoritePlayersIdsResponse
|
|
2372
|
+
*/
|
|
2373
|
+
'message'?: string;
|
|
2374
|
+
/**
|
|
2375
|
+
*
|
|
2376
|
+
* @type {Array<string>}
|
|
2377
|
+
* @memberof FavoritePlayersIdsResponse
|
|
2378
|
+
*/
|
|
2379
|
+
'favoritePlayers'?: Array<string>;
|
|
2380
|
+
}
|
|
2381
|
+
/**
|
|
2382
|
+
*
|
|
2383
|
+
* @export
|
|
2384
|
+
* @interface FavoritePlayersResponse
|
|
2385
|
+
*/
|
|
2386
|
+
export interface FavoritePlayersResponse {
|
|
2387
|
+
/**
|
|
2388
|
+
*
|
|
2389
|
+
* @type {Array<FavoritePlayerPublic>}
|
|
2390
|
+
* @memberof FavoritePlayersResponse
|
|
2391
|
+
*/
|
|
2392
|
+
'favoriteUsers'?: Array<FavoritePlayerPublic>;
|
|
2393
|
+
}
|
|
2281
2394
|
/**
|
|
2282
2395
|
*
|
|
2283
2396
|
* @export
|
|
@@ -2466,19 +2579,6 @@ export interface GetCourtsByClubAndSport200Response {
|
|
|
2466
2579
|
*/
|
|
2467
2580
|
'sportId'?: string;
|
|
2468
2581
|
}
|
|
2469
|
-
/**
|
|
2470
|
-
*
|
|
2471
|
-
* @export
|
|
2472
|
-
* @interface GetFavoriteClubs200Response
|
|
2473
|
-
*/
|
|
2474
|
-
export interface GetFavoriteClubs200Response {
|
|
2475
|
-
/**
|
|
2476
|
-
*
|
|
2477
|
-
* @type {Array<string>}
|
|
2478
|
-
* @memberof GetFavoriteClubs200Response
|
|
2479
|
-
*/
|
|
2480
|
-
'favoriteClubs'?: Array<string>;
|
|
2481
|
-
}
|
|
2482
2582
|
/**
|
|
2483
2583
|
*
|
|
2484
2584
|
* @export
|
|
@@ -4448,6 +4548,37 @@ export interface User {
|
|
|
4448
4548
|
*/
|
|
4449
4549
|
'isAdmin'?: boolean;
|
|
4450
4550
|
}
|
|
4551
|
+
/**
|
|
4552
|
+
*
|
|
4553
|
+
* @export
|
|
4554
|
+
* @interface UserBookingsResponse
|
|
4555
|
+
*/
|
|
4556
|
+
export interface UserBookingsResponse {
|
|
4557
|
+
/**
|
|
4558
|
+
*
|
|
4559
|
+
* @type {Array<Booking>}
|
|
4560
|
+
* @memberof UserBookingsResponse
|
|
4561
|
+
*/
|
|
4562
|
+
'bookings'?: Array<Booking>;
|
|
4563
|
+
/**
|
|
4564
|
+
*
|
|
4565
|
+
* @type {number}
|
|
4566
|
+
* @memberof UserBookingsResponse
|
|
4567
|
+
*/
|
|
4568
|
+
'total'?: number;
|
|
4569
|
+
/**
|
|
4570
|
+
*
|
|
4571
|
+
* @type {number}
|
|
4572
|
+
* @memberof UserBookingsResponse
|
|
4573
|
+
*/
|
|
4574
|
+
'limit'?: number;
|
|
4575
|
+
/**
|
|
4576
|
+
*
|
|
4577
|
+
* @type {number}
|
|
4578
|
+
* @memberof UserBookingsResponse
|
|
4579
|
+
*/
|
|
4580
|
+
'skip'?: number;
|
|
4581
|
+
}
|
|
4451
4582
|
/**
|
|
4452
4583
|
*
|
|
4453
4584
|
* @export
|
|
@@ -4474,6 +4605,19 @@ export interface UserDescriptionResponse {
|
|
|
4474
4605
|
*/
|
|
4475
4606
|
'description'?: string | null;
|
|
4476
4607
|
}
|
|
4608
|
+
/**
|
|
4609
|
+
*
|
|
4610
|
+
* @export
|
|
4611
|
+
* @interface UserFavoriteClubsResponse
|
|
4612
|
+
*/
|
|
4613
|
+
export interface UserFavoriteClubsResponse {
|
|
4614
|
+
/**
|
|
4615
|
+
*
|
|
4616
|
+
* @type {Array<FavoriteClubItem>}
|
|
4617
|
+
* @memberof UserFavoriteClubsResponse
|
|
4618
|
+
*/
|
|
4619
|
+
'favoriteClubs'?: Array<FavoriteClubItem>;
|
|
4620
|
+
}
|
|
4477
4621
|
/**
|
|
4478
4622
|
*
|
|
4479
4623
|
* @export
|
|
@@ -12890,6 +13034,46 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
|
|
|
12890
13034
|
options: localVarRequestOptions,
|
|
12891
13035
|
};
|
|
12892
13036
|
},
|
|
13037
|
+
/**
|
|
13038
|
+
*
|
|
13039
|
+
* @summary Ajoute un joueur aux favoris de l\'utilisateur connecté
|
|
13040
|
+
* @param {AddFavoritePlayerRequestBody} addFavoritePlayerRequestBody
|
|
13041
|
+
* @param {*} [options] Override http request option.
|
|
13042
|
+
* @throws {RequiredError}
|
|
13043
|
+
*/
|
|
13044
|
+
addFavoritePlayer: async (addFavoritePlayerRequestBody: AddFavoritePlayerRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13045
|
+
// verify required parameter 'addFavoritePlayerRequestBody' is not null or undefined
|
|
13046
|
+
assertParamExists('addFavoritePlayer', 'addFavoritePlayerRequestBody', addFavoritePlayerRequestBody)
|
|
13047
|
+
const localVarPath = `/api/users/me/favoritesPlayers`;
|
|
13048
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13049
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13050
|
+
let baseOptions;
|
|
13051
|
+
if (configuration) {
|
|
13052
|
+
baseOptions = configuration.baseOptions;
|
|
13053
|
+
}
|
|
13054
|
+
|
|
13055
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
13056
|
+
const localVarHeaderParameter = {} as any;
|
|
13057
|
+
const localVarQueryParameter = {} as any;
|
|
13058
|
+
|
|
13059
|
+
// authentication bearerAuth required
|
|
13060
|
+
// http bearer authentication required
|
|
13061
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
13062
|
+
|
|
13063
|
+
|
|
13064
|
+
|
|
13065
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13066
|
+
|
|
13067
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13068
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13069
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13070
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addFavoritePlayerRequestBody, localVarRequestOptions, configuration)
|
|
13071
|
+
|
|
13072
|
+
return {
|
|
13073
|
+
url: toPathString(localVarUrlObj),
|
|
13074
|
+
options: localVarRequestOptions,
|
|
13075
|
+
};
|
|
13076
|
+
},
|
|
12893
13077
|
/**
|
|
12894
13078
|
*
|
|
12895
13079
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -13004,6 +13188,40 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
|
|
|
13004
13188
|
|
|
13005
13189
|
|
|
13006
13190
|
|
|
13191
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13192
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13193
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13194
|
+
|
|
13195
|
+
return {
|
|
13196
|
+
url: toPathString(localVarUrlObj),
|
|
13197
|
+
options: localVarRequestOptions,
|
|
13198
|
+
};
|
|
13199
|
+
},
|
|
13200
|
+
/**
|
|
13201
|
+
*
|
|
13202
|
+
* @summary Récupère les joueurs favoris (profils visibles) de l\'utilisateur connecté
|
|
13203
|
+
* @param {*} [options] Override http request option.
|
|
13204
|
+
* @throws {RequiredError}
|
|
13205
|
+
*/
|
|
13206
|
+
getFavoritesPlayers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13207
|
+
const localVarPath = `/api/users/me/favoritesPlayers`;
|
|
13208
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13209
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13210
|
+
let baseOptions;
|
|
13211
|
+
if (configuration) {
|
|
13212
|
+
baseOptions = configuration.baseOptions;
|
|
13213
|
+
}
|
|
13214
|
+
|
|
13215
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
13216
|
+
const localVarHeaderParameter = {} as any;
|
|
13217
|
+
const localVarQueryParameter = {} as any;
|
|
13218
|
+
|
|
13219
|
+
// authentication bearerAuth required
|
|
13220
|
+
// http bearer authentication required
|
|
13221
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
13222
|
+
|
|
13223
|
+
|
|
13224
|
+
|
|
13007
13225
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13008
13226
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13009
13227
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -13106,6 +13324,50 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
|
|
|
13106
13324
|
|
|
13107
13325
|
|
|
13108
13326
|
|
|
13327
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13328
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13329
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13330
|
+
|
|
13331
|
+
return {
|
|
13332
|
+
url: toPathString(localVarUrlObj),
|
|
13333
|
+
options: localVarRequestOptions,
|
|
13334
|
+
};
|
|
13335
|
+
},
|
|
13336
|
+
/**
|
|
13337
|
+
*
|
|
13338
|
+
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
|
13339
|
+
* @param {number} [limit] Nombre maximum de réservations à retourner
|
|
13340
|
+
* @param {number} [skip] Nombre de réservations à ignorer (pagination)
|
|
13341
|
+
* @param {*} [options] Override http request option.
|
|
13342
|
+
* @throws {RequiredError}
|
|
13343
|
+
*/
|
|
13344
|
+
getUserBookings: async (limit?: number, skip?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13345
|
+
const localVarPath = `/api/users/me/bookings`;
|
|
13346
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13347
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13348
|
+
let baseOptions;
|
|
13349
|
+
if (configuration) {
|
|
13350
|
+
baseOptions = configuration.baseOptions;
|
|
13351
|
+
}
|
|
13352
|
+
|
|
13353
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
13354
|
+
const localVarHeaderParameter = {} as any;
|
|
13355
|
+
const localVarQueryParameter = {} as any;
|
|
13356
|
+
|
|
13357
|
+
// authentication bearerAuth required
|
|
13358
|
+
// http bearer authentication required
|
|
13359
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
13360
|
+
|
|
13361
|
+
if (limit !== undefined) {
|
|
13362
|
+
localVarQueryParameter['limit'] = limit;
|
|
13363
|
+
}
|
|
13364
|
+
|
|
13365
|
+
if (skip !== undefined) {
|
|
13366
|
+
localVarQueryParameter['skip'] = skip;
|
|
13367
|
+
}
|
|
13368
|
+
|
|
13369
|
+
|
|
13370
|
+
|
|
13109
13371
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13110
13372
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13111
13373
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -13283,6 +13545,44 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
|
|
|
13283
13545
|
|
|
13284
13546
|
|
|
13285
13547
|
|
|
13548
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13549
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13550
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13551
|
+
|
|
13552
|
+
return {
|
|
13553
|
+
url: toPathString(localVarUrlObj),
|
|
13554
|
+
options: localVarRequestOptions,
|
|
13555
|
+
};
|
|
13556
|
+
},
|
|
13557
|
+
/**
|
|
13558
|
+
*
|
|
13559
|
+
* @summary Retire un joueur des favoris de l\'utilisateur connecté
|
|
13560
|
+
* @param {string} favoritePlayerId ID du joueur à retirer des favoris
|
|
13561
|
+
* @param {*} [options] Override http request option.
|
|
13562
|
+
* @throws {RequiredError}
|
|
13563
|
+
*/
|
|
13564
|
+
removeFavoritePlayer: async (favoritePlayerId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13565
|
+
// verify required parameter 'favoritePlayerId' is not null or undefined
|
|
13566
|
+
assertParamExists('removeFavoritePlayer', 'favoritePlayerId', favoritePlayerId)
|
|
13567
|
+
const localVarPath = `/api/users/me/favoritesPlayers/{favoritePlayerId}`
|
|
13568
|
+
.replace(`{${"favoritePlayerId"}}`, encodeURIComponent(String(favoritePlayerId)));
|
|
13569
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13570
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13571
|
+
let baseOptions;
|
|
13572
|
+
if (configuration) {
|
|
13573
|
+
baseOptions = configuration.baseOptions;
|
|
13574
|
+
}
|
|
13575
|
+
|
|
13576
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
13577
|
+
const localVarHeaderParameter = {} as any;
|
|
13578
|
+
const localVarQueryParameter = {} as any;
|
|
13579
|
+
|
|
13580
|
+
// authentication bearerAuth required
|
|
13581
|
+
// http bearer authentication required
|
|
13582
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
13583
|
+
|
|
13584
|
+
|
|
13585
|
+
|
|
13286
13586
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13287
13587
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13288
13588
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -13555,6 +13855,19 @@ export const UserProfileApiFp = function(configuration?: Configuration) {
|
|
|
13555
13855
|
const localVarOperationServerBasePath = operationServerMap['UserProfileApi.addFavoriteClub']?.[localVarOperationServerIndex]?.url;
|
|
13556
13856
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13557
13857
|
},
|
|
13858
|
+
/**
|
|
13859
|
+
*
|
|
13860
|
+
* @summary Ajoute un joueur aux favoris de l\'utilisateur connecté
|
|
13861
|
+
* @param {AddFavoritePlayerRequestBody} addFavoritePlayerRequestBody
|
|
13862
|
+
* @param {*} [options] Override http request option.
|
|
13863
|
+
* @throws {RequiredError}
|
|
13864
|
+
*/
|
|
13865
|
+
async addFavoritePlayer(addFavoritePlayerRequestBody: AddFavoritePlayerRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FavoritePlayersIdsResponse>> {
|
|
13866
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addFavoritePlayer(addFavoritePlayerRequestBody, options);
|
|
13867
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13868
|
+
const localVarOperationServerBasePath = operationServerMap['UserProfileApi.addFavoritePlayer']?.[localVarOperationServerIndex]?.url;
|
|
13869
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13870
|
+
},
|
|
13558
13871
|
/**
|
|
13559
13872
|
*
|
|
13560
13873
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -13589,12 +13902,24 @@ export const UserProfileApiFp = function(configuration?: Configuration) {
|
|
|
13589
13902
|
* @param {*} [options] Override http request option.
|
|
13590
13903
|
* @throws {RequiredError}
|
|
13591
13904
|
*/
|
|
13592
|
-
async getFavoriteClubs(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
13905
|
+
async getFavoriteClubs(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserFavoriteClubsResponse>> {
|
|
13593
13906
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getFavoriteClubs(options);
|
|
13594
13907
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13595
13908
|
const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getFavoriteClubs']?.[localVarOperationServerIndex]?.url;
|
|
13596
13909
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13597
13910
|
},
|
|
13911
|
+
/**
|
|
13912
|
+
*
|
|
13913
|
+
* @summary Récupère les joueurs favoris (profils visibles) de l\'utilisateur connecté
|
|
13914
|
+
* @param {*} [options] Override http request option.
|
|
13915
|
+
* @throws {RequiredError}
|
|
13916
|
+
*/
|
|
13917
|
+
async getFavoritesPlayers(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FavoritePlayersResponse>> {
|
|
13918
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFavoritesPlayers(options);
|
|
13919
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13920
|
+
const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getFavoritesPlayers']?.[localVarOperationServerIndex]?.url;
|
|
13921
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13922
|
+
},
|
|
13598
13923
|
/**
|
|
13599
13924
|
*
|
|
13600
13925
|
* @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
|
|
@@ -13631,6 +13956,20 @@ export const UserProfileApiFp = function(configuration?: Configuration) {
|
|
|
13631
13956
|
const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getProfilePicture']?.[localVarOperationServerIndex]?.url;
|
|
13632
13957
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13633
13958
|
},
|
|
13959
|
+
/**
|
|
13960
|
+
*
|
|
13961
|
+
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
|
13962
|
+
* @param {number} [limit] Nombre maximum de réservations à retourner
|
|
13963
|
+
* @param {number} [skip] Nombre de réservations à ignorer (pagination)
|
|
13964
|
+
* @param {*} [options] Override http request option.
|
|
13965
|
+
* @throws {RequiredError}
|
|
13966
|
+
*/
|
|
13967
|
+
async getUserBookings(limit?: number, skip?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserBookingsResponse>> {
|
|
13968
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserBookings(limit, skip, options);
|
|
13969
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13970
|
+
const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getUserBookings']?.[localVarOperationServerIndex]?.url;
|
|
13971
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13972
|
+
},
|
|
13634
13973
|
/**
|
|
13635
13974
|
*
|
|
13636
13975
|
* @summary Récupère la ville de l\'utilisateur connecté
|
|
@@ -13692,6 +14031,19 @@ export const UserProfileApiFp = function(configuration?: Configuration) {
|
|
|
13692
14031
|
const localVarOperationServerBasePath = operationServerMap['UserProfileApi.removeFavoriteClub']?.[localVarOperationServerIndex]?.url;
|
|
13693
14032
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13694
14033
|
},
|
|
14034
|
+
/**
|
|
14035
|
+
*
|
|
14036
|
+
* @summary Retire un joueur des favoris de l\'utilisateur connecté
|
|
14037
|
+
* @param {string} favoritePlayerId ID du joueur à retirer des favoris
|
|
14038
|
+
* @param {*} [options] Override http request option.
|
|
14039
|
+
* @throws {RequiredError}
|
|
14040
|
+
*/
|
|
14041
|
+
async removeFavoritePlayer(favoritePlayerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FavoritePlayersIdsResponse>> {
|
|
14042
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeFavoritePlayer(favoritePlayerId, options);
|
|
14043
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14044
|
+
const localVarOperationServerBasePath = operationServerMap['UserProfileApi.removeFavoritePlayer']?.[localVarOperationServerIndex]?.url;
|
|
14045
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14046
|
+
},
|
|
13695
14047
|
/**
|
|
13696
14048
|
*
|
|
13697
14049
|
* @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
|
|
@@ -13790,6 +14142,16 @@ export const UserProfileApiFactory = function (configuration?: Configuration, ba
|
|
|
13790
14142
|
addFavoriteClub(requestParameters: UserProfileApiAddFavoriteClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<FavoriteClubResponse> {
|
|
13791
14143
|
return localVarFp.addFavoriteClub(requestParameters.addFavoriteClubRequestBody, options).then((request) => request(axios, basePath));
|
|
13792
14144
|
},
|
|
14145
|
+
/**
|
|
14146
|
+
*
|
|
14147
|
+
* @summary Ajoute un joueur aux favoris de l\'utilisateur connecté
|
|
14148
|
+
* @param {UserProfileApiAddFavoritePlayerRequest} requestParameters Request parameters.
|
|
14149
|
+
* @param {*} [options] Override http request option.
|
|
14150
|
+
* @throws {RequiredError}
|
|
14151
|
+
*/
|
|
14152
|
+
addFavoritePlayer(requestParameters: UserProfileApiAddFavoritePlayerRequest, options?: RawAxiosRequestConfig): AxiosPromise<FavoritePlayersIdsResponse> {
|
|
14153
|
+
return localVarFp.addFavoritePlayer(requestParameters.addFavoritePlayerRequestBody, options).then((request) => request(axios, basePath));
|
|
14154
|
+
},
|
|
13793
14155
|
/**
|
|
13794
14156
|
*
|
|
13795
14157
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -13816,9 +14178,18 @@ export const UserProfileApiFactory = function (configuration?: Configuration, ba
|
|
|
13816
14178
|
* @param {*} [options] Override http request option.
|
|
13817
14179
|
* @throws {RequiredError}
|
|
13818
14180
|
*/
|
|
13819
|
-
getFavoriteClubs(options?: RawAxiosRequestConfig): AxiosPromise<
|
|
14181
|
+
getFavoriteClubs(options?: RawAxiosRequestConfig): AxiosPromise<UserFavoriteClubsResponse> {
|
|
13820
14182
|
return localVarFp.getFavoriteClubs(options).then((request) => request(axios, basePath));
|
|
13821
14183
|
},
|
|
14184
|
+
/**
|
|
14185
|
+
*
|
|
14186
|
+
* @summary Récupère les joueurs favoris (profils visibles) de l\'utilisateur connecté
|
|
14187
|
+
* @param {*} [options] Override http request option.
|
|
14188
|
+
* @throws {RequiredError}
|
|
14189
|
+
*/
|
|
14190
|
+
getFavoritesPlayers(options?: RawAxiosRequestConfig): AxiosPromise<FavoritePlayersResponse> {
|
|
14191
|
+
return localVarFp.getFavoritesPlayers(options).then((request) => request(axios, basePath));
|
|
14192
|
+
},
|
|
13822
14193
|
/**
|
|
13823
14194
|
*
|
|
13824
14195
|
* @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
|
|
@@ -13846,6 +14217,16 @@ export const UserProfileApiFactory = function (configuration?: Configuration, ba
|
|
|
13846
14217
|
getProfilePicture(options?: RawAxiosRequestConfig): AxiosPromise<ProfilePictureResponse> {
|
|
13847
14218
|
return localVarFp.getProfilePicture(options).then((request) => request(axios, basePath));
|
|
13848
14219
|
},
|
|
14220
|
+
/**
|
|
14221
|
+
*
|
|
14222
|
+
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
|
14223
|
+
* @param {UserProfileApiGetUserBookingsRequest} requestParameters Request parameters.
|
|
14224
|
+
* @param {*} [options] Override http request option.
|
|
14225
|
+
* @throws {RequiredError}
|
|
14226
|
+
*/
|
|
14227
|
+
getUserBookings(requestParameters: UserProfileApiGetUserBookingsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<UserBookingsResponse> {
|
|
14228
|
+
return localVarFp.getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
|
|
14229
|
+
},
|
|
13849
14230
|
/**
|
|
13850
14231
|
*
|
|
13851
14232
|
* @summary Récupère la ville de l\'utilisateur connecté
|
|
@@ -13892,6 +14273,16 @@ export const UserProfileApiFactory = function (configuration?: Configuration, ba
|
|
|
13892
14273
|
removeFavoriteClub(requestParameters: UserProfileApiRemoveFavoriteClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<FavoriteClubResponse> {
|
|
13893
14274
|
return localVarFp.removeFavoriteClub(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
13894
14275
|
},
|
|
14276
|
+
/**
|
|
14277
|
+
*
|
|
14278
|
+
* @summary Retire un joueur des favoris de l\'utilisateur connecté
|
|
14279
|
+
* @param {UserProfileApiRemoveFavoritePlayerRequest} requestParameters Request parameters.
|
|
14280
|
+
* @param {*} [options] Override http request option.
|
|
14281
|
+
* @throws {RequiredError}
|
|
14282
|
+
*/
|
|
14283
|
+
removeFavoritePlayer(requestParameters: UserProfileApiRemoveFavoritePlayerRequest, options?: RawAxiosRequestConfig): AxiosPromise<FavoritePlayersIdsResponse> {
|
|
14284
|
+
return localVarFp.removeFavoritePlayer(requestParameters.favoritePlayerId, options).then((request) => request(axios, basePath));
|
|
14285
|
+
},
|
|
13895
14286
|
/**
|
|
13896
14287
|
*
|
|
13897
14288
|
* @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
|
|
@@ -13969,6 +14360,20 @@ export interface UserProfileApiAddFavoriteClubRequest {
|
|
|
13969
14360
|
readonly addFavoriteClubRequestBody: AddFavoriteClubRequestBody
|
|
13970
14361
|
}
|
|
13971
14362
|
|
|
14363
|
+
/**
|
|
14364
|
+
* Request parameters for addFavoritePlayer operation in UserProfileApi.
|
|
14365
|
+
* @export
|
|
14366
|
+
* @interface UserProfileApiAddFavoritePlayerRequest
|
|
14367
|
+
*/
|
|
14368
|
+
export interface UserProfileApiAddFavoritePlayerRequest {
|
|
14369
|
+
/**
|
|
14370
|
+
*
|
|
14371
|
+
* @type {AddFavoritePlayerRequestBody}
|
|
14372
|
+
* @memberof UserProfileApiAddFavoritePlayer
|
|
14373
|
+
*/
|
|
14374
|
+
readonly addFavoritePlayerRequestBody: AddFavoritePlayerRequestBody
|
|
14375
|
+
}
|
|
14376
|
+
|
|
13972
14377
|
/**
|
|
13973
14378
|
* Request parameters for changePassword operation in UserProfileApi.
|
|
13974
14379
|
* @export
|
|
@@ -14011,6 +14416,27 @@ export interface UserProfileApiGetAllUsersRequest {
|
|
|
14011
14416
|
readonly search?: string
|
|
14012
14417
|
}
|
|
14013
14418
|
|
|
14419
|
+
/**
|
|
14420
|
+
* Request parameters for getUserBookings operation in UserProfileApi.
|
|
14421
|
+
* @export
|
|
14422
|
+
* @interface UserProfileApiGetUserBookingsRequest
|
|
14423
|
+
*/
|
|
14424
|
+
export interface UserProfileApiGetUserBookingsRequest {
|
|
14425
|
+
/**
|
|
14426
|
+
* Nombre maximum de réservations à retourner
|
|
14427
|
+
* @type {number}
|
|
14428
|
+
* @memberof UserProfileApiGetUserBookings
|
|
14429
|
+
*/
|
|
14430
|
+
readonly limit?: number
|
|
14431
|
+
|
|
14432
|
+
/**
|
|
14433
|
+
* Nombre de réservations à ignorer (pagination)
|
|
14434
|
+
* @type {number}
|
|
14435
|
+
* @memberof UserProfileApiGetUserBookings
|
|
14436
|
+
*/
|
|
14437
|
+
readonly skip?: number
|
|
14438
|
+
}
|
|
14439
|
+
|
|
14014
14440
|
/**
|
|
14015
14441
|
* Request parameters for removeFavoriteClub operation in UserProfileApi.
|
|
14016
14442
|
* @export
|
|
@@ -14025,6 +14451,20 @@ export interface UserProfileApiRemoveFavoriteClubRequest {
|
|
|
14025
14451
|
readonly clubId: string
|
|
14026
14452
|
}
|
|
14027
14453
|
|
|
14454
|
+
/**
|
|
14455
|
+
* Request parameters for removeFavoritePlayer operation in UserProfileApi.
|
|
14456
|
+
* @export
|
|
14457
|
+
* @interface UserProfileApiRemoveFavoritePlayerRequest
|
|
14458
|
+
*/
|
|
14459
|
+
export interface UserProfileApiRemoveFavoritePlayerRequest {
|
|
14460
|
+
/**
|
|
14461
|
+
* ID du joueur à retirer des favoris
|
|
14462
|
+
* @type {string}
|
|
14463
|
+
* @memberof UserProfileApiRemoveFavoritePlayer
|
|
14464
|
+
*/
|
|
14465
|
+
readonly favoritePlayerId: string
|
|
14466
|
+
}
|
|
14467
|
+
|
|
14028
14468
|
/**
|
|
14029
14469
|
* Request parameters for updateLevelBySports operation in UserProfileApi.
|
|
14030
14470
|
* @export
|
|
@@ -14128,6 +14568,18 @@ export class UserProfileApi extends BaseAPI {
|
|
|
14128
14568
|
return UserProfileApiFp(this.configuration).addFavoriteClub(requestParameters.addFavoriteClubRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
14129
14569
|
}
|
|
14130
14570
|
|
|
14571
|
+
/**
|
|
14572
|
+
*
|
|
14573
|
+
* @summary Ajoute un joueur aux favoris de l\'utilisateur connecté
|
|
14574
|
+
* @param {UserProfileApiAddFavoritePlayerRequest} requestParameters Request parameters.
|
|
14575
|
+
* @param {*} [options] Override http request option.
|
|
14576
|
+
* @throws {RequiredError}
|
|
14577
|
+
* @memberof UserProfileApi
|
|
14578
|
+
*/
|
|
14579
|
+
public addFavoritePlayer(requestParameters: UserProfileApiAddFavoritePlayerRequest, options?: RawAxiosRequestConfig) {
|
|
14580
|
+
return UserProfileApiFp(this.configuration).addFavoritePlayer(requestParameters.addFavoritePlayerRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
14581
|
+
}
|
|
14582
|
+
|
|
14131
14583
|
/**
|
|
14132
14584
|
*
|
|
14133
14585
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -14163,6 +14615,17 @@ export class UserProfileApi extends BaseAPI {
|
|
|
14163
14615
|
return UserProfileApiFp(this.configuration).getFavoriteClubs(options).then((request) => request(this.axios, this.basePath));
|
|
14164
14616
|
}
|
|
14165
14617
|
|
|
14618
|
+
/**
|
|
14619
|
+
*
|
|
14620
|
+
* @summary Récupère les joueurs favoris (profils visibles) de l\'utilisateur connecté
|
|
14621
|
+
* @param {*} [options] Override http request option.
|
|
14622
|
+
* @throws {RequiredError}
|
|
14623
|
+
* @memberof UserProfileApi
|
|
14624
|
+
*/
|
|
14625
|
+
public getFavoritesPlayers(options?: RawAxiosRequestConfig) {
|
|
14626
|
+
return UserProfileApiFp(this.configuration).getFavoritesPlayers(options).then((request) => request(this.axios, this.basePath));
|
|
14627
|
+
}
|
|
14628
|
+
|
|
14166
14629
|
/**
|
|
14167
14630
|
*
|
|
14168
14631
|
* @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
|
|
@@ -14196,6 +14659,18 @@ export class UserProfileApi extends BaseAPI {
|
|
|
14196
14659
|
return UserProfileApiFp(this.configuration).getProfilePicture(options).then((request) => request(this.axios, this.basePath));
|
|
14197
14660
|
}
|
|
14198
14661
|
|
|
14662
|
+
/**
|
|
14663
|
+
*
|
|
14664
|
+
* @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
|
|
14665
|
+
* @param {UserProfileApiGetUserBookingsRequest} requestParameters Request parameters.
|
|
14666
|
+
* @param {*} [options] Override http request option.
|
|
14667
|
+
* @throws {RequiredError}
|
|
14668
|
+
* @memberof UserProfileApi
|
|
14669
|
+
*/
|
|
14670
|
+
public getUserBookings(requestParameters: UserProfileApiGetUserBookingsRequest = {}, options?: RawAxiosRequestConfig) {
|
|
14671
|
+
return UserProfileApiFp(this.configuration).getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
|
|
14672
|
+
}
|
|
14673
|
+
|
|
14199
14674
|
/**
|
|
14200
14675
|
*
|
|
14201
14676
|
* @summary Récupère la ville de l\'utilisateur connecté
|
|
@@ -14252,6 +14727,18 @@ export class UserProfileApi extends BaseAPI {
|
|
|
14252
14727
|
return UserProfileApiFp(this.configuration).removeFavoriteClub(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
14253
14728
|
}
|
|
14254
14729
|
|
|
14730
|
+
/**
|
|
14731
|
+
*
|
|
14732
|
+
* @summary Retire un joueur des favoris de l\'utilisateur connecté
|
|
14733
|
+
* @param {UserProfileApiRemoveFavoritePlayerRequest} requestParameters Request parameters.
|
|
14734
|
+
* @param {*} [options] Override http request option.
|
|
14735
|
+
* @throws {RequiredError}
|
|
14736
|
+
* @memberof UserProfileApi
|
|
14737
|
+
*/
|
|
14738
|
+
public removeFavoritePlayer(requestParameters: UserProfileApiRemoveFavoritePlayerRequest, options?: RawAxiosRequestConfig) {
|
|
14739
|
+
return UserProfileApiFp(this.configuration).removeFavoritePlayer(requestParameters.favoritePlayerId, options).then((request) => request(this.axios, this.basePath));
|
|
14740
|
+
}
|
|
14741
|
+
|
|
14255
14742
|
/**
|
|
14256
14743
|
*
|
|
14257
14744
|
* @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
|