@tennac-booking/sdk 1.0.27 → 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 -0
- package/README.md +16 -2
- package/api.ts +792 -47
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +454 -1
- package/dist/api.js +479 -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 +454 -1
- package/dist/esm/api.js +479 -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/UserFavoriteClubsResponse.md +20 -0
- package/docs/UserProfileApi.md +368 -0
- 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
|
|
@@ -4435,6 +4548,37 @@ export interface User {
|
|
|
4435
4548
|
*/
|
|
4436
4549
|
'isAdmin'?: boolean;
|
|
4437
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
|
+
}
|
|
4438
4582
|
/**
|
|
4439
4583
|
*
|
|
4440
4584
|
* @export
|
|
@@ -4461,6 +4605,19 @@ export interface UserDescriptionResponse {
|
|
|
4461
4605
|
*/
|
|
4462
4606
|
'description'?: string | null;
|
|
4463
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
|
+
}
|
|
4464
4621
|
/**
|
|
4465
4622
|
*
|
|
4466
4623
|
* @export
|
|
@@ -12837,6 +12994,86 @@ export class UserPaymentApi extends BaseAPI {
|
|
|
12837
12994
|
*/
|
|
12838
12995
|
export const UserProfileApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
12839
12996
|
return {
|
|
12997
|
+
/**
|
|
12998
|
+
*
|
|
12999
|
+
* @summary Add a club to the user\'s favorite list
|
|
13000
|
+
* @param {AddFavoriteClubRequestBody} addFavoriteClubRequestBody
|
|
13001
|
+
* @param {*} [options] Override http request option.
|
|
13002
|
+
* @throws {RequiredError}
|
|
13003
|
+
*/
|
|
13004
|
+
addFavoriteClub: async (addFavoriteClubRequestBody: AddFavoriteClubRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13005
|
+
// verify required parameter 'addFavoriteClubRequestBody' is not null or undefined
|
|
13006
|
+
assertParamExists('addFavoriteClub', 'addFavoriteClubRequestBody', addFavoriteClubRequestBody)
|
|
13007
|
+
const localVarPath = `/api/users/me/favorite-clubs`;
|
|
13008
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13009
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13010
|
+
let baseOptions;
|
|
13011
|
+
if (configuration) {
|
|
13012
|
+
baseOptions = configuration.baseOptions;
|
|
13013
|
+
}
|
|
13014
|
+
|
|
13015
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
13016
|
+
const localVarHeaderParameter = {} as any;
|
|
13017
|
+
const localVarQueryParameter = {} as any;
|
|
13018
|
+
|
|
13019
|
+
// authentication bearerAuth required
|
|
13020
|
+
// http bearer authentication required
|
|
13021
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
13022
|
+
|
|
13023
|
+
|
|
13024
|
+
|
|
13025
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13026
|
+
|
|
13027
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13028
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13029
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13030
|
+
localVarRequestOptions.data = serializeDataIfNeeded(addFavoriteClubRequestBody, localVarRequestOptions, configuration)
|
|
13031
|
+
|
|
13032
|
+
return {
|
|
13033
|
+
url: toPathString(localVarUrlObj),
|
|
13034
|
+
options: localVarRequestOptions,
|
|
13035
|
+
};
|
|
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
|
+
},
|
|
12840
13077
|
/**
|
|
12841
13078
|
*
|
|
12842
13079
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -12928,12 +13165,12 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
|
|
|
12928
13165
|
},
|
|
12929
13166
|
/**
|
|
12930
13167
|
*
|
|
12931
|
-
* @summary
|
|
13168
|
+
* @summary Retrieve the list of favorite clubs for the logged-in user
|
|
12932
13169
|
* @param {*} [options] Override http request option.
|
|
12933
13170
|
* @throws {RequiredError}
|
|
12934
13171
|
*/
|
|
12935
|
-
|
|
12936
|
-
const localVarPath = `/api/users/me/
|
|
13172
|
+
getFavoriteClubs: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13173
|
+
const localVarPath = `/api/users/me/favorite-clubs`;
|
|
12937
13174
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12938
13175
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12939
13176
|
let baseOptions;
|
|
@@ -12962,12 +13199,12 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
|
|
|
12962
13199
|
},
|
|
12963
13200
|
/**
|
|
12964
13201
|
*
|
|
12965
|
-
* @summary
|
|
13202
|
+
* @summary Récupère les joueurs favoris (profils visibles) de l\'utilisateur connecté
|
|
12966
13203
|
* @param {*} [options] Override http request option.
|
|
12967
13204
|
* @throws {RequiredError}
|
|
12968
13205
|
*/
|
|
12969
|
-
|
|
12970
|
-
const localVarPath = `/api/users/me/
|
|
13206
|
+
getFavoritesPlayers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13207
|
+
const localVarPath = `/api/users/me/favoritesPlayers`;
|
|
12971
13208
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12972
13209
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12973
13210
|
let baseOptions;
|
|
@@ -12996,12 +13233,12 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
|
|
|
12996
13233
|
},
|
|
12997
13234
|
/**
|
|
12998
13235
|
*
|
|
12999
|
-
* @summary
|
|
13236
|
+
* @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
|
|
13000
13237
|
* @param {*} [options] Override http request option.
|
|
13001
13238
|
* @throws {RequiredError}
|
|
13002
13239
|
*/
|
|
13003
|
-
|
|
13004
|
-
const localVarPath = `/api/users/me/
|
|
13240
|
+
getFrequentlyPlayedWith: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13241
|
+
const localVarPath = `/api/users/me/frequentlyPlayedWith`;
|
|
13005
13242
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13006
13243
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13007
13244
|
let baseOptions;
|
|
@@ -13030,12 +13267,12 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
|
|
|
13030
13267
|
},
|
|
13031
13268
|
/**
|
|
13032
13269
|
*
|
|
13033
|
-
* @summary
|
|
13270
|
+
* @summary Clubs les plus fréquemment visités par l\'utilisateur connecté
|
|
13034
13271
|
* @param {*} [options] Override http request option.
|
|
13035
13272
|
* @throws {RequiredError}
|
|
13036
13273
|
*/
|
|
13037
|
-
|
|
13038
|
-
const localVarPath = `/api/users/me/
|
|
13274
|
+
getFrequentlyVisitedClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13275
|
+
const localVarPath = `/api/users/me/frequentlyVisitedClub`;
|
|
13039
13276
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13040
13277
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13041
13278
|
let baseOptions;
|
|
@@ -13064,12 +13301,12 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
|
|
|
13064
13301
|
},
|
|
13065
13302
|
/**
|
|
13066
13303
|
*
|
|
13067
|
-
* @summary Récupère la
|
|
13304
|
+
* @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
|
|
13068
13305
|
* @param {*} [options] Override http request option.
|
|
13069
13306
|
* @throws {RequiredError}
|
|
13070
13307
|
*/
|
|
13071
|
-
|
|
13072
|
-
const localVarPath = `/api/users/me/
|
|
13308
|
+
getProfilePicture: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13309
|
+
const localVarPath = `/api/users/me/profile-picture`;
|
|
13073
13310
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13074
13311
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13075
13312
|
let baseOptions;
|
|
@@ -13098,12 +13335,14 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
|
|
|
13098
13335
|
},
|
|
13099
13336
|
/**
|
|
13100
13337
|
*
|
|
13101
|
-
* @summary Récupère les
|
|
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)
|
|
13102
13341
|
* @param {*} [options] Override http request option.
|
|
13103
13342
|
* @throws {RequiredError}
|
|
13104
13343
|
*/
|
|
13105
|
-
|
|
13106
|
-
const localVarPath = `/api/users/me`;
|
|
13344
|
+
getUserBookings: async (limit?: number, skip?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13345
|
+
const localVarPath = `/api/users/me/bookings`;
|
|
13107
13346
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13108
13347
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13109
13348
|
let baseOptions;
|
|
@@ -13119,6 +13358,14 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
|
|
|
13119
13358
|
// http bearer authentication required
|
|
13120
13359
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
13121
13360
|
|
|
13361
|
+
if (limit !== undefined) {
|
|
13362
|
+
localVarQueryParameter['limit'] = limit;
|
|
13363
|
+
}
|
|
13364
|
+
|
|
13365
|
+
if (skip !== undefined) {
|
|
13366
|
+
localVarQueryParameter['skip'] = skip;
|
|
13367
|
+
}
|
|
13368
|
+
|
|
13122
13369
|
|
|
13123
13370
|
|
|
13124
13371
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -13132,12 +13379,12 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
|
|
|
13132
13379
|
},
|
|
13133
13380
|
/**
|
|
13134
13381
|
*
|
|
13135
|
-
* @summary Récupère la
|
|
13382
|
+
* @summary Récupère la ville de l\'utilisateur connecté
|
|
13136
13383
|
* @param {*} [options] Override http request option.
|
|
13137
13384
|
* @throws {RequiredError}
|
|
13138
13385
|
*/
|
|
13139
|
-
|
|
13140
|
-
const localVarPath = `/api/users/me/
|
|
13386
|
+
getUserCity: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13387
|
+
const localVarPath = `/api/users/me/city`;
|
|
13141
13388
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13142
13389
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13143
13390
|
let baseOptions;
|
|
@@ -13166,15 +13413,12 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
|
|
|
13166
13413
|
},
|
|
13167
13414
|
/**
|
|
13168
13415
|
*
|
|
13169
|
-
* @summary
|
|
13170
|
-
* @param {UpdateLevelBySportsRequestBody} updateLevelBySportsRequestBody
|
|
13416
|
+
* @summary Récupère la description de l\'utilisateur connecté
|
|
13171
13417
|
* @param {*} [options] Override http request option.
|
|
13172
13418
|
* @throws {RequiredError}
|
|
13173
13419
|
*/
|
|
13174
|
-
|
|
13175
|
-
|
|
13176
|
-
assertParamExists('updateLevelBySports', 'updateLevelBySportsRequestBody', updateLevelBySportsRequestBody)
|
|
13177
|
-
const localVarPath = `/api/users/me/level-by-sports`;
|
|
13420
|
+
getUserDescription: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13421
|
+
const localVarPath = `/api/users/me/description`;
|
|
13178
13422
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13179
13423
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13180
13424
|
let baseOptions;
|
|
@@ -13182,7 +13426,7 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
|
|
|
13182
13426
|
baseOptions = configuration.baseOptions;
|
|
13183
13427
|
}
|
|
13184
13428
|
|
|
13185
|
-
const localVarRequestOptions = { method: '
|
|
13429
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
13186
13430
|
const localVarHeaderParameter = {} as any;
|
|
13187
13431
|
const localVarQueryParameter = {} as any;
|
|
13188
13432
|
|
|
@@ -13192,12 +13436,9 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
|
|
|
13192
13436
|
|
|
13193
13437
|
|
|
13194
13438
|
|
|
13195
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13196
|
-
|
|
13197
13439
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13198
13440
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13199
13441
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13200
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateLevelBySportsRequestBody, localVarRequestOptions, configuration)
|
|
13201
13442
|
|
|
13202
13443
|
return {
|
|
13203
13444
|
url: toPathString(localVarUrlObj),
|
|
@@ -13206,15 +13447,12 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
|
|
|
13206
13447
|
},
|
|
13207
13448
|
/**
|
|
13208
13449
|
*
|
|
13209
|
-
* @summary
|
|
13210
|
-
* @param {UpdateProfilePictureRequestBody} updateProfilePictureRequestBody
|
|
13450
|
+
* @summary Récupère les informations de l\'utilisateur connecté
|
|
13211
13451
|
* @param {*} [options] Override http request option.
|
|
13212
13452
|
* @throws {RequiredError}
|
|
13213
13453
|
*/
|
|
13214
|
-
|
|
13215
|
-
|
|
13216
|
-
assertParamExists('updateProfilePicture', 'updateProfilePictureRequestBody', updateProfilePictureRequestBody)
|
|
13217
|
-
const localVarPath = `/api/users/me/profile-picture`;
|
|
13454
|
+
getUserInfo: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13455
|
+
const localVarPath = `/api/users/me`;
|
|
13218
13456
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13219
13457
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13220
13458
|
let baseOptions;
|
|
@@ -13222,7 +13460,7 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
|
|
|
13222
13460
|
baseOptions = configuration.baseOptions;
|
|
13223
13461
|
}
|
|
13224
13462
|
|
|
13225
|
-
const localVarRequestOptions = { method: '
|
|
13463
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
13226
13464
|
const localVarHeaderParameter = {} as any;
|
|
13227
13465
|
const localVarQueryParameter = {} as any;
|
|
13228
13466
|
|
|
@@ -13232,12 +13470,9 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
|
|
|
13232
13470
|
|
|
13233
13471
|
|
|
13234
13472
|
|
|
13235
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13236
|
-
|
|
13237
13473
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13238
13474
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13239
13475
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13240
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateProfilePictureRequestBody, localVarRequestOptions, configuration)
|
|
13241
13476
|
|
|
13242
13477
|
return {
|
|
13243
13478
|
url: toPathString(localVarUrlObj),
|
|
@@ -13246,14 +13481,207 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
|
|
|
13246
13481
|
},
|
|
13247
13482
|
/**
|
|
13248
13483
|
*
|
|
13249
|
-
* @summary
|
|
13250
|
-
* @param {UpdateProfileVisibilityRequestBody} updateProfileVisibilityRequestBody
|
|
13484
|
+
* @summary Récupère la visibilité du profil de l\'utilisateur connecté
|
|
13251
13485
|
* @param {*} [options] Override http request option.
|
|
13252
13486
|
* @throws {RequiredError}
|
|
13253
13487
|
*/
|
|
13254
|
-
|
|
13255
|
-
|
|
13256
|
-
|
|
13488
|
+
getUserProfileVisibility: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13489
|
+
const localVarPath = `/api/users/me/profile-visibility`;
|
|
13490
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13491
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13492
|
+
let baseOptions;
|
|
13493
|
+
if (configuration) {
|
|
13494
|
+
baseOptions = configuration.baseOptions;
|
|
13495
|
+
}
|
|
13496
|
+
|
|
13497
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
13498
|
+
const localVarHeaderParameter = {} as any;
|
|
13499
|
+
const localVarQueryParameter = {} as any;
|
|
13500
|
+
|
|
13501
|
+
// authentication bearerAuth required
|
|
13502
|
+
// http bearer authentication required
|
|
13503
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
13504
|
+
|
|
13505
|
+
|
|
13506
|
+
|
|
13507
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13508
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13509
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13510
|
+
|
|
13511
|
+
return {
|
|
13512
|
+
url: toPathString(localVarUrlObj),
|
|
13513
|
+
options: localVarRequestOptions,
|
|
13514
|
+
};
|
|
13515
|
+
},
|
|
13516
|
+
/**
|
|
13517
|
+
*
|
|
13518
|
+
* @summary Remove a club from the user\'s favorite list
|
|
13519
|
+
* @param {string} clubId ID of the club to remove from favorites
|
|
13520
|
+
* @param {*} [options] Override http request option.
|
|
13521
|
+
* @throws {RequiredError}
|
|
13522
|
+
*/
|
|
13523
|
+
removeFavoriteClub: async (clubId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13524
|
+
// verify required parameter 'clubId' is not null or undefined
|
|
13525
|
+
assertParamExists('removeFavoriteClub', 'clubId', clubId)
|
|
13526
|
+
const localVarPath = `/api/users/me/favorite-clubs`;
|
|
13527
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13528
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13529
|
+
let baseOptions;
|
|
13530
|
+
if (configuration) {
|
|
13531
|
+
baseOptions = configuration.baseOptions;
|
|
13532
|
+
}
|
|
13533
|
+
|
|
13534
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
13535
|
+
const localVarHeaderParameter = {} as any;
|
|
13536
|
+
const localVarQueryParameter = {} as any;
|
|
13537
|
+
|
|
13538
|
+
// authentication bearerAuth required
|
|
13539
|
+
// http bearer authentication required
|
|
13540
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
13541
|
+
|
|
13542
|
+
if (clubId !== undefined) {
|
|
13543
|
+
localVarQueryParameter['clubId'] = clubId;
|
|
13544
|
+
}
|
|
13545
|
+
|
|
13546
|
+
|
|
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
|
+
|
|
13586
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13587
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13588
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13589
|
+
|
|
13590
|
+
return {
|
|
13591
|
+
url: toPathString(localVarUrlObj),
|
|
13592
|
+
options: localVarRequestOptions,
|
|
13593
|
+
};
|
|
13594
|
+
},
|
|
13595
|
+
/**
|
|
13596
|
+
*
|
|
13597
|
+
* @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
|
|
13598
|
+
* @param {UpdateLevelBySportsRequestBody} updateLevelBySportsRequestBody
|
|
13599
|
+
* @param {*} [options] Override http request option.
|
|
13600
|
+
* @throws {RequiredError}
|
|
13601
|
+
*/
|
|
13602
|
+
updateLevelBySports: async (updateLevelBySportsRequestBody: UpdateLevelBySportsRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13603
|
+
// verify required parameter 'updateLevelBySportsRequestBody' is not null or undefined
|
|
13604
|
+
assertParamExists('updateLevelBySports', 'updateLevelBySportsRequestBody', updateLevelBySportsRequestBody)
|
|
13605
|
+
const localVarPath = `/api/users/me/level-by-sports`;
|
|
13606
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13607
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13608
|
+
let baseOptions;
|
|
13609
|
+
if (configuration) {
|
|
13610
|
+
baseOptions = configuration.baseOptions;
|
|
13611
|
+
}
|
|
13612
|
+
|
|
13613
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
13614
|
+
const localVarHeaderParameter = {} as any;
|
|
13615
|
+
const localVarQueryParameter = {} as any;
|
|
13616
|
+
|
|
13617
|
+
// authentication bearerAuth required
|
|
13618
|
+
// http bearer authentication required
|
|
13619
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
13620
|
+
|
|
13621
|
+
|
|
13622
|
+
|
|
13623
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13624
|
+
|
|
13625
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13626
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13627
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13628
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateLevelBySportsRequestBody, localVarRequestOptions, configuration)
|
|
13629
|
+
|
|
13630
|
+
return {
|
|
13631
|
+
url: toPathString(localVarUrlObj),
|
|
13632
|
+
options: localVarRequestOptions,
|
|
13633
|
+
};
|
|
13634
|
+
},
|
|
13635
|
+
/**
|
|
13636
|
+
*
|
|
13637
|
+
* @summary Met à jour l\'URL de la photo de profil de l\'utilisateur connecté
|
|
13638
|
+
* @param {UpdateProfilePictureRequestBody} updateProfilePictureRequestBody
|
|
13639
|
+
* @param {*} [options] Override http request option.
|
|
13640
|
+
* @throws {RequiredError}
|
|
13641
|
+
*/
|
|
13642
|
+
updateProfilePicture: async (updateProfilePictureRequestBody: UpdateProfilePictureRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13643
|
+
// verify required parameter 'updateProfilePictureRequestBody' is not null or undefined
|
|
13644
|
+
assertParamExists('updateProfilePicture', 'updateProfilePictureRequestBody', updateProfilePictureRequestBody)
|
|
13645
|
+
const localVarPath = `/api/users/me/profile-picture`;
|
|
13646
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13647
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13648
|
+
let baseOptions;
|
|
13649
|
+
if (configuration) {
|
|
13650
|
+
baseOptions = configuration.baseOptions;
|
|
13651
|
+
}
|
|
13652
|
+
|
|
13653
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
13654
|
+
const localVarHeaderParameter = {} as any;
|
|
13655
|
+
const localVarQueryParameter = {} as any;
|
|
13656
|
+
|
|
13657
|
+
// authentication bearerAuth required
|
|
13658
|
+
// http bearer authentication required
|
|
13659
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
13660
|
+
|
|
13661
|
+
|
|
13662
|
+
|
|
13663
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13664
|
+
|
|
13665
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13666
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13667
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13668
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateProfilePictureRequestBody, localVarRequestOptions, configuration)
|
|
13669
|
+
|
|
13670
|
+
return {
|
|
13671
|
+
url: toPathString(localVarUrlObj),
|
|
13672
|
+
options: localVarRequestOptions,
|
|
13673
|
+
};
|
|
13674
|
+
},
|
|
13675
|
+
/**
|
|
13676
|
+
*
|
|
13677
|
+
* @summary Met à jour la visibilité du profil de l\'utilisateur connecté
|
|
13678
|
+
* @param {UpdateProfileVisibilityRequestBody} updateProfileVisibilityRequestBody
|
|
13679
|
+
* @param {*} [options] Override http request option.
|
|
13680
|
+
* @throws {RequiredError}
|
|
13681
|
+
*/
|
|
13682
|
+
updateProfileVisibility: async (updateProfileVisibilityRequestBody: UpdateProfileVisibilityRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13683
|
+
// verify required parameter 'updateProfileVisibilityRequestBody' is not null or undefined
|
|
13684
|
+
assertParamExists('updateProfileVisibility', 'updateProfileVisibilityRequestBody', updateProfileVisibilityRequestBody)
|
|
13257
13685
|
const localVarPath = `/api/users/me/profile-visibility`;
|
|
13258
13686
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13259
13687
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -13414,6 +13842,32 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
|
|
|
13414
13842
|
export const UserProfileApiFp = function(configuration?: Configuration) {
|
|
13415
13843
|
const localVarAxiosParamCreator = UserProfileApiAxiosParamCreator(configuration)
|
|
13416
13844
|
return {
|
|
13845
|
+
/**
|
|
13846
|
+
*
|
|
13847
|
+
* @summary Add a club to the user\'s favorite list
|
|
13848
|
+
* @param {AddFavoriteClubRequestBody} addFavoriteClubRequestBody
|
|
13849
|
+
* @param {*} [options] Override http request option.
|
|
13850
|
+
* @throws {RequiredError}
|
|
13851
|
+
*/
|
|
13852
|
+
async addFavoriteClub(addFavoriteClubRequestBody: AddFavoriteClubRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FavoriteClubResponse>> {
|
|
13853
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addFavoriteClub(addFavoriteClubRequestBody, options);
|
|
13854
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13855
|
+
const localVarOperationServerBasePath = operationServerMap['UserProfileApi.addFavoriteClub']?.[localVarOperationServerIndex]?.url;
|
|
13856
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
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
|
+
},
|
|
13417
13871
|
/**
|
|
13418
13872
|
*
|
|
13419
13873
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -13442,6 +13896,30 @@ export const UserProfileApiFp = function(configuration?: Configuration) {
|
|
|
13442
13896
|
const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getAllUsers']?.[localVarOperationServerIndex]?.url;
|
|
13443
13897
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13444
13898
|
},
|
|
13899
|
+
/**
|
|
13900
|
+
*
|
|
13901
|
+
* @summary Retrieve the list of favorite clubs for the logged-in user
|
|
13902
|
+
* @param {*} [options] Override http request option.
|
|
13903
|
+
* @throws {RequiredError}
|
|
13904
|
+
*/
|
|
13905
|
+
async getFavoriteClubs(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserFavoriteClubsResponse>> {
|
|
13906
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFavoriteClubs(options);
|
|
13907
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13908
|
+
const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getFavoriteClubs']?.[localVarOperationServerIndex]?.url;
|
|
13909
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
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
|
+
},
|
|
13445
13923
|
/**
|
|
13446
13924
|
*
|
|
13447
13925
|
* @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
|
|
@@ -13478,6 +13956,20 @@ export const UserProfileApiFp = function(configuration?: Configuration) {
|
|
|
13478
13956
|
const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getProfilePicture']?.[localVarOperationServerIndex]?.url;
|
|
13479
13957
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13480
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
|
+
},
|
|
13481
13973
|
/**
|
|
13482
13974
|
*
|
|
13483
13975
|
* @summary Récupère la ville de l\'utilisateur connecté
|
|
@@ -13526,6 +14018,32 @@ export const UserProfileApiFp = function(configuration?: Configuration) {
|
|
|
13526
14018
|
const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getUserProfileVisibility']?.[localVarOperationServerIndex]?.url;
|
|
13527
14019
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13528
14020
|
},
|
|
14021
|
+
/**
|
|
14022
|
+
*
|
|
14023
|
+
* @summary Remove a club from the user\'s favorite list
|
|
14024
|
+
* @param {string} clubId ID of the club to remove from favorites
|
|
14025
|
+
* @param {*} [options] Override http request option.
|
|
14026
|
+
* @throws {RequiredError}
|
|
14027
|
+
*/
|
|
14028
|
+
async removeFavoriteClub(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FavoriteClubResponse>> {
|
|
14029
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeFavoriteClub(clubId, options);
|
|
14030
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14031
|
+
const localVarOperationServerBasePath = operationServerMap['UserProfileApi.removeFavoriteClub']?.[localVarOperationServerIndex]?.url;
|
|
14032
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
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
|
+
},
|
|
13529
14047
|
/**
|
|
13530
14048
|
*
|
|
13531
14049
|
* @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
|
|
@@ -13614,6 +14132,26 @@ export const UserProfileApiFp = function(configuration?: Configuration) {
|
|
|
13614
14132
|
export const UserProfileApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
13615
14133
|
const localVarFp = UserProfileApiFp(configuration)
|
|
13616
14134
|
return {
|
|
14135
|
+
/**
|
|
14136
|
+
*
|
|
14137
|
+
* @summary Add a club to the user\'s favorite list
|
|
14138
|
+
* @param {UserProfileApiAddFavoriteClubRequest} requestParameters Request parameters.
|
|
14139
|
+
* @param {*} [options] Override http request option.
|
|
14140
|
+
* @throws {RequiredError}
|
|
14141
|
+
*/
|
|
14142
|
+
addFavoriteClub(requestParameters: UserProfileApiAddFavoriteClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<FavoriteClubResponse> {
|
|
14143
|
+
return localVarFp.addFavoriteClub(requestParameters.addFavoriteClubRequestBody, options).then((request) => request(axios, basePath));
|
|
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
|
+
},
|
|
13617
14155
|
/**
|
|
13618
14156
|
*
|
|
13619
14157
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -13634,6 +14172,24 @@ export const UserProfileApiFactory = function (configuration?: Configuration, ba
|
|
|
13634
14172
|
getAllUsers(requestParameters: UserProfileApiGetAllUsersRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Array<UserResponse>> {
|
|
13635
14173
|
return localVarFp.getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
13636
14174
|
},
|
|
14175
|
+
/**
|
|
14176
|
+
*
|
|
14177
|
+
* @summary Retrieve the list of favorite clubs for the logged-in user
|
|
14178
|
+
* @param {*} [options] Override http request option.
|
|
14179
|
+
* @throws {RequiredError}
|
|
14180
|
+
*/
|
|
14181
|
+
getFavoriteClubs(options?: RawAxiosRequestConfig): AxiosPromise<UserFavoriteClubsResponse> {
|
|
14182
|
+
return localVarFp.getFavoriteClubs(options).then((request) => request(axios, basePath));
|
|
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
|
+
},
|
|
13637
14193
|
/**
|
|
13638
14194
|
*
|
|
13639
14195
|
* @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
|
|
@@ -13661,6 +14217,16 @@ export const UserProfileApiFactory = function (configuration?: Configuration, ba
|
|
|
13661
14217
|
getProfilePicture(options?: RawAxiosRequestConfig): AxiosPromise<ProfilePictureResponse> {
|
|
13662
14218
|
return localVarFp.getProfilePicture(options).then((request) => request(axios, basePath));
|
|
13663
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
|
+
},
|
|
13664
14230
|
/**
|
|
13665
14231
|
*
|
|
13666
14232
|
* @summary Récupère la ville de l\'utilisateur connecté
|
|
@@ -13697,6 +14263,26 @@ export const UserProfileApiFactory = function (configuration?: Configuration, ba
|
|
|
13697
14263
|
getUserProfileVisibility(options?: RawAxiosRequestConfig): AxiosPromise<ProfileVisibilityResponse> {
|
|
13698
14264
|
return localVarFp.getUserProfileVisibility(options).then((request) => request(axios, basePath));
|
|
13699
14265
|
},
|
|
14266
|
+
/**
|
|
14267
|
+
*
|
|
14268
|
+
* @summary Remove a club from the user\'s favorite list
|
|
14269
|
+
* @param {UserProfileApiRemoveFavoriteClubRequest} requestParameters Request parameters.
|
|
14270
|
+
* @param {*} [options] Override http request option.
|
|
14271
|
+
* @throws {RequiredError}
|
|
14272
|
+
*/
|
|
14273
|
+
removeFavoriteClub(requestParameters: UserProfileApiRemoveFavoriteClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<FavoriteClubResponse> {
|
|
14274
|
+
return localVarFp.removeFavoriteClub(requestParameters.clubId, options).then((request) => request(axios, basePath));
|
|
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
|
+
},
|
|
13700
14286
|
/**
|
|
13701
14287
|
*
|
|
13702
14288
|
* @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
|
|
@@ -13760,6 +14346,34 @@ export const UserProfileApiFactory = function (configuration?: Configuration, ba
|
|
|
13760
14346
|
};
|
|
13761
14347
|
};
|
|
13762
14348
|
|
|
14349
|
+
/**
|
|
14350
|
+
* Request parameters for addFavoriteClub operation in UserProfileApi.
|
|
14351
|
+
* @export
|
|
14352
|
+
* @interface UserProfileApiAddFavoriteClubRequest
|
|
14353
|
+
*/
|
|
14354
|
+
export interface UserProfileApiAddFavoriteClubRequest {
|
|
14355
|
+
/**
|
|
14356
|
+
*
|
|
14357
|
+
* @type {AddFavoriteClubRequestBody}
|
|
14358
|
+
* @memberof UserProfileApiAddFavoriteClub
|
|
14359
|
+
*/
|
|
14360
|
+
readonly addFavoriteClubRequestBody: AddFavoriteClubRequestBody
|
|
14361
|
+
}
|
|
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
|
+
|
|
13763
14377
|
/**
|
|
13764
14378
|
* Request parameters for changePassword operation in UserProfileApi.
|
|
13765
14379
|
* @export
|
|
@@ -13802,6 +14416,55 @@ export interface UserProfileApiGetAllUsersRequest {
|
|
|
13802
14416
|
readonly search?: string
|
|
13803
14417
|
}
|
|
13804
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
|
+
|
|
14440
|
+
/**
|
|
14441
|
+
* Request parameters for removeFavoriteClub operation in UserProfileApi.
|
|
14442
|
+
* @export
|
|
14443
|
+
* @interface UserProfileApiRemoveFavoriteClubRequest
|
|
14444
|
+
*/
|
|
14445
|
+
export interface UserProfileApiRemoveFavoriteClubRequest {
|
|
14446
|
+
/**
|
|
14447
|
+
* ID of the club to remove from favorites
|
|
14448
|
+
* @type {string}
|
|
14449
|
+
* @memberof UserProfileApiRemoveFavoriteClub
|
|
14450
|
+
*/
|
|
14451
|
+
readonly clubId: string
|
|
14452
|
+
}
|
|
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
|
+
|
|
13805
14468
|
/**
|
|
13806
14469
|
* Request parameters for updateLevelBySports operation in UserProfileApi.
|
|
13807
14470
|
* @export
|
|
@@ -13893,6 +14556,30 @@ export interface UserProfileApiUpdateUserDescriptionRequest {
|
|
|
13893
14556
|
* @extends {BaseAPI}
|
|
13894
14557
|
*/
|
|
13895
14558
|
export class UserProfileApi extends BaseAPI {
|
|
14559
|
+
/**
|
|
14560
|
+
*
|
|
14561
|
+
* @summary Add a club to the user\'s favorite list
|
|
14562
|
+
* @param {UserProfileApiAddFavoriteClubRequest} requestParameters Request parameters.
|
|
14563
|
+
* @param {*} [options] Override http request option.
|
|
14564
|
+
* @throws {RequiredError}
|
|
14565
|
+
* @memberof UserProfileApi
|
|
14566
|
+
*/
|
|
14567
|
+
public addFavoriteClub(requestParameters: UserProfileApiAddFavoriteClubRequest, options?: RawAxiosRequestConfig) {
|
|
14568
|
+
return UserProfileApiFp(this.configuration).addFavoriteClub(requestParameters.addFavoriteClubRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
14569
|
+
}
|
|
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
|
+
|
|
13896
14583
|
/**
|
|
13897
14584
|
*
|
|
13898
14585
|
* @summary Modifie le mot de passe de l\'utilisateur connecté
|
|
@@ -13917,6 +14604,28 @@ export class UserProfileApi extends BaseAPI {
|
|
|
13917
14604
|
return UserProfileApiFp(this.configuration).getAllUsers(requestParameters.limit, requestParameters.skip, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
13918
14605
|
}
|
|
13919
14606
|
|
|
14607
|
+
/**
|
|
14608
|
+
*
|
|
14609
|
+
* @summary Retrieve the list of favorite clubs for the logged-in user
|
|
14610
|
+
* @param {*} [options] Override http request option.
|
|
14611
|
+
* @throws {RequiredError}
|
|
14612
|
+
* @memberof UserProfileApi
|
|
14613
|
+
*/
|
|
14614
|
+
public getFavoriteClubs(options?: RawAxiosRequestConfig) {
|
|
14615
|
+
return UserProfileApiFp(this.configuration).getFavoriteClubs(options).then((request) => request(this.axios, this.basePath));
|
|
14616
|
+
}
|
|
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
|
+
|
|
13920
14629
|
/**
|
|
13921
14630
|
*
|
|
13922
14631
|
* @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
|
|
@@ -13950,6 +14659,18 @@ export class UserProfileApi extends BaseAPI {
|
|
|
13950
14659
|
return UserProfileApiFp(this.configuration).getProfilePicture(options).then((request) => request(this.axios, this.basePath));
|
|
13951
14660
|
}
|
|
13952
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
|
+
|
|
13953
14674
|
/**
|
|
13954
14675
|
*
|
|
13955
14676
|
* @summary Récupère la ville de l\'utilisateur connecté
|
|
@@ -13994,6 +14715,30 @@ export class UserProfileApi extends BaseAPI {
|
|
|
13994
14715
|
return UserProfileApiFp(this.configuration).getUserProfileVisibility(options).then((request) => request(this.axios, this.basePath));
|
|
13995
14716
|
}
|
|
13996
14717
|
|
|
14718
|
+
/**
|
|
14719
|
+
*
|
|
14720
|
+
* @summary Remove a club from the user\'s favorite list
|
|
14721
|
+
* @param {UserProfileApiRemoveFavoriteClubRequest} requestParameters Request parameters.
|
|
14722
|
+
* @param {*} [options] Override http request option.
|
|
14723
|
+
* @throws {RequiredError}
|
|
14724
|
+
* @memberof UserProfileApi
|
|
14725
|
+
*/
|
|
14726
|
+
public removeFavoriteClub(requestParameters: UserProfileApiRemoveFavoriteClubRequest, options?: RawAxiosRequestConfig) {
|
|
14727
|
+
return UserProfileApiFp(this.configuration).removeFavoriteClub(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
|
|
14728
|
+
}
|
|
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
|
+
|
|
13997
14742
|
/**
|
|
13998
14743
|
*
|
|
13999
14744
|
* @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
|