@tennac-booking/sdk 1.0.28 → 1.0.30

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/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.28
7
+ * The version of the OpenAPI document: 1.0.30
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
@@ -3264,6 +3364,18 @@ export interface PublicClubUser {
3264
3364
  * @memberof PublicClubUser
3265
3365
  */
3266
3366
  'lastName'?: string;
3367
+ /**
3368
+ *
3369
+ * @type {string}
3370
+ * @memberof PublicClubUser
3371
+ */
3372
+ 'createdAt'?: string;
3373
+ /**
3374
+ *
3375
+ * @type {boolean}
3376
+ * @memberof PublicClubUser
3377
+ */
3378
+ 'isAccountVerified'?: boolean;
3267
3379
  /**
3268
3380
  *
3269
3381
  * @type {string}
@@ -3294,6 +3406,92 @@ export interface PublicClubUser {
3294
3406
  * @memberof PublicClubUser
3295
3407
  */
3296
3408
  'city'?: string | null;
3409
+ /**
3410
+ *
3411
+ * @type {Array<string>}
3412
+ * @memberof PublicClubUser
3413
+ */
3414
+ 'favoriteClubs'?: Array<string>;
3415
+ /**
3416
+ *
3417
+ * @type {Array<string>}
3418
+ * @memberof PublicClubUser
3419
+ */
3420
+ 'favoritePlayers'?: Array<string>;
3421
+ /**
3422
+ *
3423
+ * @type {Array<PublicClubUserFrequentlyPlayedWithInner>}
3424
+ * @memberof PublicClubUser
3425
+ */
3426
+ 'frequentlyPlayedWith'?: Array<PublicClubUserFrequentlyPlayedWithInner>;
3427
+ /**
3428
+ *
3429
+ * @type {Array<PublicClubUserFrequentlyVisitedClubsInner>}
3430
+ * @memberof PublicClubUser
3431
+ */
3432
+ 'frequentlyVisitedClubs'?: Array<PublicClubUserFrequentlyVisitedClubsInner>;
3433
+ }
3434
+ /**
3435
+ *
3436
+ * @export
3437
+ * @interface PublicClubUserFrequentlyPlayedWithInner
3438
+ */
3439
+ export interface PublicClubUserFrequentlyPlayedWithInner {
3440
+ /**
3441
+ *
3442
+ * @type {string}
3443
+ * @memberof PublicClubUserFrequentlyPlayedWithInner
3444
+ */
3445
+ 'userId'?: string;
3446
+ /**
3447
+ *
3448
+ * @type {string}
3449
+ * @memberof PublicClubUserFrequentlyPlayedWithInner
3450
+ */
3451
+ 'firstName'?: string;
3452
+ /**
3453
+ *
3454
+ * @type {string}
3455
+ * @memberof PublicClubUserFrequentlyPlayedWithInner
3456
+ */
3457
+ 'lastName'?: string;
3458
+ /**
3459
+ *
3460
+ * @type {string}
3461
+ * @memberof PublicClubUserFrequentlyPlayedWithInner
3462
+ */
3463
+ 'profilePicture'?: string;
3464
+ /**
3465
+ *
3466
+ * @type {number}
3467
+ * @memberof PublicClubUserFrequentlyPlayedWithInner
3468
+ */
3469
+ 'playCount'?: number;
3470
+ }
3471
+ /**
3472
+ *
3473
+ * @export
3474
+ * @interface PublicClubUserFrequentlyVisitedClubsInner
3475
+ */
3476
+ export interface PublicClubUserFrequentlyVisitedClubsInner {
3477
+ /**
3478
+ *
3479
+ * @type {string}
3480
+ * @memberof PublicClubUserFrequentlyVisitedClubsInner
3481
+ */
3482
+ 'clubId'?: string;
3483
+ /**
3484
+ *
3485
+ * @type {string}
3486
+ * @memberof PublicClubUserFrequentlyVisitedClubsInner
3487
+ */
3488
+ 'name'?: string;
3489
+ /**
3490
+ *
3491
+ * @type {number}
3492
+ * @memberof PublicClubUserFrequentlyVisitedClubsInner
3493
+ */
3494
+ 'visitCount'?: number;
3297
3495
  }
3298
3496
  /**
3299
3497
  *
@@ -4448,6 +4646,37 @@ export interface User {
4448
4646
  */
4449
4647
  'isAdmin'?: boolean;
4450
4648
  }
4649
+ /**
4650
+ *
4651
+ * @export
4652
+ * @interface UserBookingsResponse
4653
+ */
4654
+ export interface UserBookingsResponse {
4655
+ /**
4656
+ *
4657
+ * @type {Array<Booking>}
4658
+ * @memberof UserBookingsResponse
4659
+ */
4660
+ 'bookings'?: Array<Booking>;
4661
+ /**
4662
+ *
4663
+ * @type {number}
4664
+ * @memberof UserBookingsResponse
4665
+ */
4666
+ 'total'?: number;
4667
+ /**
4668
+ *
4669
+ * @type {number}
4670
+ * @memberof UserBookingsResponse
4671
+ */
4672
+ 'limit'?: number;
4673
+ /**
4674
+ *
4675
+ * @type {number}
4676
+ * @memberof UserBookingsResponse
4677
+ */
4678
+ 'skip'?: number;
4679
+ }
4451
4680
  /**
4452
4681
  *
4453
4682
  * @export
@@ -4474,6 +4703,19 @@ export interface UserDescriptionResponse {
4474
4703
  */
4475
4704
  'description'?: string | null;
4476
4705
  }
4706
+ /**
4707
+ *
4708
+ * @export
4709
+ * @interface UserFavoriteClubsResponse
4710
+ */
4711
+ export interface UserFavoriteClubsResponse {
4712
+ /**
4713
+ *
4714
+ * @type {Array<FavoriteClubItem>}
4715
+ * @memberof UserFavoriteClubsResponse
4716
+ */
4717
+ 'favoriteClubs'?: Array<FavoriteClubItem>;
4718
+ }
4477
4719
  /**
4478
4720
  *
4479
4721
  * @export
@@ -12890,6 +13132,46 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
12890
13132
  options: localVarRequestOptions,
12891
13133
  };
12892
13134
  },
13135
+ /**
13136
+ *
13137
+ * @summary Ajoute un joueur aux favoris de l\'utilisateur connecté
13138
+ * @param {AddFavoritePlayerRequestBody} addFavoritePlayerRequestBody
13139
+ * @param {*} [options] Override http request option.
13140
+ * @throws {RequiredError}
13141
+ */
13142
+ addFavoritePlayer: async (addFavoritePlayerRequestBody: AddFavoritePlayerRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13143
+ // verify required parameter 'addFavoritePlayerRequestBody' is not null or undefined
13144
+ assertParamExists('addFavoritePlayer', 'addFavoritePlayerRequestBody', addFavoritePlayerRequestBody)
13145
+ const localVarPath = `/api/users/me/favoritesPlayers`;
13146
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13147
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13148
+ let baseOptions;
13149
+ if (configuration) {
13150
+ baseOptions = configuration.baseOptions;
13151
+ }
13152
+
13153
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
13154
+ const localVarHeaderParameter = {} as any;
13155
+ const localVarQueryParameter = {} as any;
13156
+
13157
+ // authentication bearerAuth required
13158
+ // http bearer authentication required
13159
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
13160
+
13161
+
13162
+
13163
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13164
+
13165
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13166
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13167
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13168
+ localVarRequestOptions.data = serializeDataIfNeeded(addFavoritePlayerRequestBody, localVarRequestOptions, configuration)
13169
+
13170
+ return {
13171
+ url: toPathString(localVarUrlObj),
13172
+ options: localVarRequestOptions,
13173
+ };
13174
+ },
12893
13175
  /**
12894
13176
  *
12895
13177
  * @summary Modifie le mot de passe de l\'utilisateur connecté
@@ -13015,12 +13297,12 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
13015
13297
  },
13016
13298
  /**
13017
13299
  *
13018
- * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
13300
+ * @summary Récupère les joueurs favoris (profils visibles) de l\'utilisateur connecté
13019
13301
  * @param {*} [options] Override http request option.
13020
13302
  * @throws {RequiredError}
13021
13303
  */
13022
- getFrequentlyPlayedWith: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13023
- const localVarPath = `/api/users/me/frequentlyPlayedWith`;
13304
+ getFavoritesPlayers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13305
+ const localVarPath = `/api/users/me/favoritesPlayers`;
13024
13306
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
13025
13307
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13026
13308
  let baseOptions;
@@ -13049,12 +13331,12 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
13049
13331
  },
13050
13332
  /**
13051
13333
  *
13052
- * @summary Clubs les plus fréquemment visités par l\'utilisateur connecté
13334
+ * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
13053
13335
  * @param {*} [options] Override http request option.
13054
13336
  * @throws {RequiredError}
13055
13337
  */
13056
- getFrequentlyVisitedClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13057
- const localVarPath = `/api/users/me/frequentlyVisitedClub`;
13338
+ getFrequentlyPlayedWith: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13339
+ const localVarPath = `/api/users/me/frequentlyPlayedWith`;
13058
13340
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
13059
13341
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13060
13342
  let baseOptions;
@@ -13083,12 +13365,12 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
13083
13365
  },
13084
13366
  /**
13085
13367
  *
13086
- * @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
13368
+ * @summary Clubs les plus fréquemment visités par l\'utilisateur connecté
13087
13369
  * @param {*} [options] Override http request option.
13088
13370
  * @throws {RequiredError}
13089
13371
  */
13090
- getProfilePicture: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13091
- const localVarPath = `/api/users/me/profile-picture`;
13372
+ getFrequentlyVisitedClub: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13373
+ const localVarPath = `/api/users/me/frequentlyVisitedClub`;
13092
13374
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
13093
13375
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13094
13376
  let baseOptions;
@@ -13117,11 +13399,127 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
13117
13399
  },
13118
13400
  /**
13119
13401
  *
13120
- * @summary Récupère la ville de l\'utilisateur connecté
13402
+ * @summary Récupère l\'URL de la photo de profil de l\'utilisateur connecté
13121
13403
  * @param {*} [options] Override http request option.
13122
13404
  * @throws {RequiredError}
13123
13405
  */
13124
- getUserCity: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13406
+ getProfilePicture: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13407
+ const localVarPath = `/api/users/me/profile-picture`;
13408
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13409
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13410
+ let baseOptions;
13411
+ if (configuration) {
13412
+ baseOptions = configuration.baseOptions;
13413
+ }
13414
+
13415
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
13416
+ const localVarHeaderParameter = {} as any;
13417
+ const localVarQueryParameter = {} as any;
13418
+
13419
+ // authentication bearerAuth required
13420
+ // http bearer authentication required
13421
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
13422
+
13423
+
13424
+
13425
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13426
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13427
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13428
+
13429
+ return {
13430
+ url: toPathString(localVarUrlObj),
13431
+ options: localVarRequestOptions,
13432
+ };
13433
+ },
13434
+ /**
13435
+ *
13436
+ * @summary Récupère le profil public d\'un utilisateur par son ID
13437
+ * @param {string} id ID de l\&#39;utilisateur
13438
+ * @param {*} [options] Override http request option.
13439
+ * @throws {RequiredError}
13440
+ */
13441
+ getPublicUserProfile: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13442
+ // verify required parameter 'id' is not null or undefined
13443
+ assertParamExists('getPublicUserProfile', 'id', id)
13444
+ const localVarPath = `/api/users/profile/{id}`
13445
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
13446
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13447
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13448
+ let baseOptions;
13449
+ if (configuration) {
13450
+ baseOptions = configuration.baseOptions;
13451
+ }
13452
+
13453
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
13454
+ const localVarHeaderParameter = {} as any;
13455
+ const localVarQueryParameter = {} as any;
13456
+
13457
+ // authentication bearerAuth required
13458
+ // http bearer authentication required
13459
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
13460
+
13461
+
13462
+
13463
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13464
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13465
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13466
+
13467
+ return {
13468
+ url: toPathString(localVarUrlObj),
13469
+ options: localVarRequestOptions,
13470
+ };
13471
+ },
13472
+ /**
13473
+ *
13474
+ * @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
13475
+ * @param {number} [limit] Nombre maximum de réservations à retourner
13476
+ * @param {number} [skip] Nombre de réservations à ignorer (pagination)
13477
+ * @param {*} [options] Override http request option.
13478
+ * @throws {RequiredError}
13479
+ */
13480
+ getUserBookings: async (limit?: number, skip?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13481
+ const localVarPath = `/api/users/me/bookings`;
13482
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13483
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13484
+ let baseOptions;
13485
+ if (configuration) {
13486
+ baseOptions = configuration.baseOptions;
13487
+ }
13488
+
13489
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
13490
+ const localVarHeaderParameter = {} as any;
13491
+ const localVarQueryParameter = {} as any;
13492
+
13493
+ // authentication bearerAuth required
13494
+ // http bearer authentication required
13495
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
13496
+
13497
+ if (limit !== undefined) {
13498
+ localVarQueryParameter['limit'] = limit;
13499
+ }
13500
+
13501
+ if (skip !== undefined) {
13502
+ localVarQueryParameter['skip'] = skip;
13503
+ }
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 Récupère la ville de l\'utilisateur connecté
13519
+ * @param {*} [options] Override http request option.
13520
+ * @throws {RequiredError}
13521
+ */
13522
+ getUserCity: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13125
13523
  const localVarPath = `/api/users/me/city`;
13126
13524
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
13127
13525
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -13283,6 +13681,44 @@ export const UserProfileApiAxiosParamCreator = function (configuration?: Configu
13283
13681
 
13284
13682
 
13285
13683
 
13684
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13685
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13686
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13687
+
13688
+ return {
13689
+ url: toPathString(localVarUrlObj),
13690
+ options: localVarRequestOptions,
13691
+ };
13692
+ },
13693
+ /**
13694
+ *
13695
+ * @summary Retire un joueur des favoris de l\'utilisateur connecté
13696
+ * @param {string} favoritePlayerId ID du joueur à retirer des favoris
13697
+ * @param {*} [options] Override http request option.
13698
+ * @throws {RequiredError}
13699
+ */
13700
+ removeFavoritePlayer: async (favoritePlayerId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13701
+ // verify required parameter 'favoritePlayerId' is not null or undefined
13702
+ assertParamExists('removeFavoritePlayer', 'favoritePlayerId', favoritePlayerId)
13703
+ const localVarPath = `/api/users/me/favoritesPlayers/{favoritePlayerId}`
13704
+ .replace(`{${"favoritePlayerId"}}`, encodeURIComponent(String(favoritePlayerId)));
13705
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13706
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13707
+ let baseOptions;
13708
+ if (configuration) {
13709
+ baseOptions = configuration.baseOptions;
13710
+ }
13711
+
13712
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
13713
+ const localVarHeaderParameter = {} as any;
13714
+ const localVarQueryParameter = {} as any;
13715
+
13716
+ // authentication bearerAuth required
13717
+ // http bearer authentication required
13718
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
13719
+
13720
+
13721
+
13286
13722
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13287
13723
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13288
13724
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -13555,6 +13991,19 @@ export const UserProfileApiFp = function(configuration?: Configuration) {
13555
13991
  const localVarOperationServerBasePath = operationServerMap['UserProfileApi.addFavoriteClub']?.[localVarOperationServerIndex]?.url;
13556
13992
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13557
13993
  },
13994
+ /**
13995
+ *
13996
+ * @summary Ajoute un joueur aux favoris de l\'utilisateur connecté
13997
+ * @param {AddFavoritePlayerRequestBody} addFavoritePlayerRequestBody
13998
+ * @param {*} [options] Override http request option.
13999
+ * @throws {RequiredError}
14000
+ */
14001
+ async addFavoritePlayer(addFavoritePlayerRequestBody: AddFavoritePlayerRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FavoritePlayersIdsResponse>> {
14002
+ const localVarAxiosArgs = await localVarAxiosParamCreator.addFavoritePlayer(addFavoritePlayerRequestBody, options);
14003
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14004
+ const localVarOperationServerBasePath = operationServerMap['UserProfileApi.addFavoritePlayer']?.[localVarOperationServerIndex]?.url;
14005
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14006
+ },
13558
14007
  /**
13559
14008
  *
13560
14009
  * @summary Modifie le mot de passe de l\'utilisateur connecté
@@ -13589,12 +14038,24 @@ export const UserProfileApiFp = function(configuration?: Configuration) {
13589
14038
  * @param {*} [options] Override http request option.
13590
14039
  * @throws {RequiredError}
13591
14040
  */
13592
- async getFavoriteClubs(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetFavoriteClubs200Response>> {
14041
+ async getFavoriteClubs(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserFavoriteClubsResponse>> {
13593
14042
  const localVarAxiosArgs = await localVarAxiosParamCreator.getFavoriteClubs(options);
13594
14043
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13595
14044
  const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getFavoriteClubs']?.[localVarOperationServerIndex]?.url;
13596
14045
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13597
14046
  },
14047
+ /**
14048
+ *
14049
+ * @summary Récupère les joueurs favoris (profils visibles) de l\'utilisateur connecté
14050
+ * @param {*} [options] Override http request option.
14051
+ * @throws {RequiredError}
14052
+ */
14053
+ async getFavoritesPlayers(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FavoritePlayersResponse>> {
14054
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFavoritesPlayers(options);
14055
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14056
+ const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getFavoritesPlayers']?.[localVarOperationServerIndex]?.url;
14057
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14058
+ },
13598
14059
  /**
13599
14060
  *
13600
14061
  * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
@@ -13631,6 +14092,33 @@ export const UserProfileApiFp = function(configuration?: Configuration) {
13631
14092
  const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getProfilePicture']?.[localVarOperationServerIndex]?.url;
13632
14093
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13633
14094
  },
14095
+ /**
14096
+ *
14097
+ * @summary Récupère le profil public d\'un utilisateur par son ID
14098
+ * @param {string} id ID de l\&#39;utilisateur
14099
+ * @param {*} [options] Override http request option.
14100
+ * @throws {RequiredError}
14101
+ */
14102
+ async getPublicUserProfile(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublicClubUser>> {
14103
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicUserProfile(id, options);
14104
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14105
+ const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getPublicUserProfile']?.[localVarOperationServerIndex]?.url;
14106
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14107
+ },
14108
+ /**
14109
+ *
14110
+ * @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
14111
+ * @param {number} [limit] Nombre maximum de réservations à retourner
14112
+ * @param {number} [skip] Nombre de réservations à ignorer (pagination)
14113
+ * @param {*} [options] Override http request option.
14114
+ * @throws {RequiredError}
14115
+ */
14116
+ async getUserBookings(limit?: number, skip?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserBookingsResponse>> {
14117
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUserBookings(limit, skip, options);
14118
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14119
+ const localVarOperationServerBasePath = operationServerMap['UserProfileApi.getUserBookings']?.[localVarOperationServerIndex]?.url;
14120
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14121
+ },
13634
14122
  /**
13635
14123
  *
13636
14124
  * @summary Récupère la ville de l\'utilisateur connecté
@@ -13692,6 +14180,19 @@ export const UserProfileApiFp = function(configuration?: Configuration) {
13692
14180
  const localVarOperationServerBasePath = operationServerMap['UserProfileApi.removeFavoriteClub']?.[localVarOperationServerIndex]?.url;
13693
14181
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13694
14182
  },
14183
+ /**
14184
+ *
14185
+ * @summary Retire un joueur des favoris de l\'utilisateur connecté
14186
+ * @param {string} favoritePlayerId ID du joueur à retirer des favoris
14187
+ * @param {*} [options] Override http request option.
14188
+ * @throws {RequiredError}
14189
+ */
14190
+ async removeFavoritePlayer(favoritePlayerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FavoritePlayersIdsResponse>> {
14191
+ const localVarAxiosArgs = await localVarAxiosParamCreator.removeFavoritePlayer(favoritePlayerId, options);
14192
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14193
+ const localVarOperationServerBasePath = operationServerMap['UserProfileApi.removeFavoritePlayer']?.[localVarOperationServerIndex]?.url;
14194
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14195
+ },
13695
14196
  /**
13696
14197
  *
13697
14198
  * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
@@ -13790,6 +14291,16 @@ export const UserProfileApiFactory = function (configuration?: Configuration, ba
13790
14291
  addFavoriteClub(requestParameters: UserProfileApiAddFavoriteClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<FavoriteClubResponse> {
13791
14292
  return localVarFp.addFavoriteClub(requestParameters.addFavoriteClubRequestBody, options).then((request) => request(axios, basePath));
13792
14293
  },
14294
+ /**
14295
+ *
14296
+ * @summary Ajoute un joueur aux favoris de l\'utilisateur connecté
14297
+ * @param {UserProfileApiAddFavoritePlayerRequest} requestParameters Request parameters.
14298
+ * @param {*} [options] Override http request option.
14299
+ * @throws {RequiredError}
14300
+ */
14301
+ addFavoritePlayer(requestParameters: UserProfileApiAddFavoritePlayerRequest, options?: RawAxiosRequestConfig): AxiosPromise<FavoritePlayersIdsResponse> {
14302
+ return localVarFp.addFavoritePlayer(requestParameters.addFavoritePlayerRequestBody, options).then((request) => request(axios, basePath));
14303
+ },
13793
14304
  /**
13794
14305
  *
13795
14306
  * @summary Modifie le mot de passe de l\'utilisateur connecté
@@ -13816,9 +14327,18 @@ export const UserProfileApiFactory = function (configuration?: Configuration, ba
13816
14327
  * @param {*} [options] Override http request option.
13817
14328
  * @throws {RequiredError}
13818
14329
  */
13819
- getFavoriteClubs(options?: RawAxiosRequestConfig): AxiosPromise<GetFavoriteClubs200Response> {
14330
+ getFavoriteClubs(options?: RawAxiosRequestConfig): AxiosPromise<UserFavoriteClubsResponse> {
13820
14331
  return localVarFp.getFavoriteClubs(options).then((request) => request(axios, basePath));
13821
14332
  },
14333
+ /**
14334
+ *
14335
+ * @summary Récupère les joueurs favoris (profils visibles) de l\'utilisateur connecté
14336
+ * @param {*} [options] Override http request option.
14337
+ * @throws {RequiredError}
14338
+ */
14339
+ getFavoritesPlayers(options?: RawAxiosRequestConfig): AxiosPromise<FavoritePlayersResponse> {
14340
+ return localVarFp.getFavoritesPlayers(options).then((request) => request(axios, basePath));
14341
+ },
13822
14342
  /**
13823
14343
  *
13824
14344
  * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
@@ -13846,6 +14366,26 @@ export const UserProfileApiFactory = function (configuration?: Configuration, ba
13846
14366
  getProfilePicture(options?: RawAxiosRequestConfig): AxiosPromise<ProfilePictureResponse> {
13847
14367
  return localVarFp.getProfilePicture(options).then((request) => request(axios, basePath));
13848
14368
  },
14369
+ /**
14370
+ *
14371
+ * @summary Récupère le profil public d\'un utilisateur par son ID
14372
+ * @param {UserProfileApiGetPublicUserProfileRequest} requestParameters Request parameters.
14373
+ * @param {*} [options] Override http request option.
14374
+ * @throws {RequiredError}
14375
+ */
14376
+ getPublicUserProfile(requestParameters: UserProfileApiGetPublicUserProfileRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublicClubUser> {
14377
+ return localVarFp.getPublicUserProfile(requestParameters.id, options).then((request) => request(axios, basePath));
14378
+ },
14379
+ /**
14380
+ *
14381
+ * @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
14382
+ * @param {UserProfileApiGetUserBookingsRequest} requestParameters Request parameters.
14383
+ * @param {*} [options] Override http request option.
14384
+ * @throws {RequiredError}
14385
+ */
14386
+ getUserBookings(requestParameters: UserProfileApiGetUserBookingsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<UserBookingsResponse> {
14387
+ return localVarFp.getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
14388
+ },
13849
14389
  /**
13850
14390
  *
13851
14391
  * @summary Récupère la ville de l\'utilisateur connecté
@@ -13892,6 +14432,16 @@ export const UserProfileApiFactory = function (configuration?: Configuration, ba
13892
14432
  removeFavoriteClub(requestParameters: UserProfileApiRemoveFavoriteClubRequest, options?: RawAxiosRequestConfig): AxiosPromise<FavoriteClubResponse> {
13893
14433
  return localVarFp.removeFavoriteClub(requestParameters.clubId, options).then((request) => request(axios, basePath));
13894
14434
  },
14435
+ /**
14436
+ *
14437
+ * @summary Retire un joueur des favoris de l\'utilisateur connecté
14438
+ * @param {UserProfileApiRemoveFavoritePlayerRequest} requestParameters Request parameters.
14439
+ * @param {*} [options] Override http request option.
14440
+ * @throws {RequiredError}
14441
+ */
14442
+ removeFavoritePlayer(requestParameters: UserProfileApiRemoveFavoritePlayerRequest, options?: RawAxiosRequestConfig): AxiosPromise<FavoritePlayersIdsResponse> {
14443
+ return localVarFp.removeFavoritePlayer(requestParameters.favoritePlayerId, options).then((request) => request(axios, basePath));
14444
+ },
13895
14445
  /**
13896
14446
  *
13897
14447
  * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté
@@ -13969,6 +14519,20 @@ export interface UserProfileApiAddFavoriteClubRequest {
13969
14519
  readonly addFavoriteClubRequestBody: AddFavoriteClubRequestBody
13970
14520
  }
13971
14521
 
14522
+ /**
14523
+ * Request parameters for addFavoritePlayer operation in UserProfileApi.
14524
+ * @export
14525
+ * @interface UserProfileApiAddFavoritePlayerRequest
14526
+ */
14527
+ export interface UserProfileApiAddFavoritePlayerRequest {
14528
+ /**
14529
+ *
14530
+ * @type {AddFavoritePlayerRequestBody}
14531
+ * @memberof UserProfileApiAddFavoritePlayer
14532
+ */
14533
+ readonly addFavoritePlayerRequestBody: AddFavoritePlayerRequestBody
14534
+ }
14535
+
13972
14536
  /**
13973
14537
  * Request parameters for changePassword operation in UserProfileApi.
13974
14538
  * @export
@@ -14011,6 +14575,41 @@ export interface UserProfileApiGetAllUsersRequest {
14011
14575
  readonly search?: string
14012
14576
  }
14013
14577
 
14578
+ /**
14579
+ * Request parameters for getPublicUserProfile operation in UserProfileApi.
14580
+ * @export
14581
+ * @interface UserProfileApiGetPublicUserProfileRequest
14582
+ */
14583
+ export interface UserProfileApiGetPublicUserProfileRequest {
14584
+ /**
14585
+ * ID de l\&#39;utilisateur
14586
+ * @type {string}
14587
+ * @memberof UserProfileApiGetPublicUserProfile
14588
+ */
14589
+ readonly id: string
14590
+ }
14591
+
14592
+ /**
14593
+ * Request parameters for getUserBookings operation in UserProfileApi.
14594
+ * @export
14595
+ * @interface UserProfileApiGetUserBookingsRequest
14596
+ */
14597
+ export interface UserProfileApiGetUserBookingsRequest {
14598
+ /**
14599
+ * Nombre maximum de réservations à retourner
14600
+ * @type {number}
14601
+ * @memberof UserProfileApiGetUserBookings
14602
+ */
14603
+ readonly limit?: number
14604
+
14605
+ /**
14606
+ * Nombre de réservations à ignorer (pagination)
14607
+ * @type {number}
14608
+ * @memberof UserProfileApiGetUserBookings
14609
+ */
14610
+ readonly skip?: number
14611
+ }
14612
+
14014
14613
  /**
14015
14614
  * Request parameters for removeFavoriteClub operation in UserProfileApi.
14016
14615
  * @export
@@ -14025,6 +14624,20 @@ export interface UserProfileApiRemoveFavoriteClubRequest {
14025
14624
  readonly clubId: string
14026
14625
  }
14027
14626
 
14627
+ /**
14628
+ * Request parameters for removeFavoritePlayer operation in UserProfileApi.
14629
+ * @export
14630
+ * @interface UserProfileApiRemoveFavoritePlayerRequest
14631
+ */
14632
+ export interface UserProfileApiRemoveFavoritePlayerRequest {
14633
+ /**
14634
+ * ID du joueur à retirer des favoris
14635
+ * @type {string}
14636
+ * @memberof UserProfileApiRemoveFavoritePlayer
14637
+ */
14638
+ readonly favoritePlayerId: string
14639
+ }
14640
+
14028
14641
  /**
14029
14642
  * Request parameters for updateLevelBySports operation in UserProfileApi.
14030
14643
  * @export
@@ -14128,6 +14741,18 @@ export class UserProfileApi extends BaseAPI {
14128
14741
  return UserProfileApiFp(this.configuration).addFavoriteClub(requestParameters.addFavoriteClubRequestBody, options).then((request) => request(this.axios, this.basePath));
14129
14742
  }
14130
14743
 
14744
+ /**
14745
+ *
14746
+ * @summary Ajoute un joueur aux favoris de l\'utilisateur connecté
14747
+ * @param {UserProfileApiAddFavoritePlayerRequest} requestParameters Request parameters.
14748
+ * @param {*} [options] Override http request option.
14749
+ * @throws {RequiredError}
14750
+ * @memberof UserProfileApi
14751
+ */
14752
+ public addFavoritePlayer(requestParameters: UserProfileApiAddFavoritePlayerRequest, options?: RawAxiosRequestConfig) {
14753
+ return UserProfileApiFp(this.configuration).addFavoritePlayer(requestParameters.addFavoritePlayerRequestBody, options).then((request) => request(this.axios, this.basePath));
14754
+ }
14755
+
14131
14756
  /**
14132
14757
  *
14133
14758
  * @summary Modifie le mot de passe de l\'utilisateur connecté
@@ -14163,6 +14788,17 @@ export class UserProfileApi extends BaseAPI {
14163
14788
  return UserProfileApiFp(this.configuration).getFavoriteClubs(options).then((request) => request(this.axios, this.basePath));
14164
14789
  }
14165
14790
 
14791
+ /**
14792
+ *
14793
+ * @summary Récupère les joueurs favoris (profils visibles) de l\'utilisateur connecté
14794
+ * @param {*} [options] Override http request option.
14795
+ * @throws {RequiredError}
14796
+ * @memberof UserProfileApi
14797
+ */
14798
+ public getFavoritesPlayers(options?: RawAxiosRequestConfig) {
14799
+ return UserProfileApiFp(this.configuration).getFavoritesPlayers(options).then((request) => request(this.axios, this.basePath));
14800
+ }
14801
+
14166
14802
  /**
14167
14803
  *
14168
14804
  * @summary Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)
@@ -14196,6 +14832,30 @@ export class UserProfileApi extends BaseAPI {
14196
14832
  return UserProfileApiFp(this.configuration).getProfilePicture(options).then((request) => request(this.axios, this.basePath));
14197
14833
  }
14198
14834
 
14835
+ /**
14836
+ *
14837
+ * @summary Récupère le profil public d\'un utilisateur par son ID
14838
+ * @param {UserProfileApiGetPublicUserProfileRequest} requestParameters Request parameters.
14839
+ * @param {*} [options] Override http request option.
14840
+ * @throws {RequiredError}
14841
+ * @memberof UserProfileApi
14842
+ */
14843
+ public getPublicUserProfile(requestParameters: UserProfileApiGetPublicUserProfileRequest, options?: RawAxiosRequestConfig) {
14844
+ return UserProfileApiFp(this.configuration).getPublicUserProfile(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
14845
+ }
14846
+
14847
+ /**
14848
+ *
14849
+ * @summary Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
14850
+ * @param {UserProfileApiGetUserBookingsRequest} requestParameters Request parameters.
14851
+ * @param {*} [options] Override http request option.
14852
+ * @throws {RequiredError}
14853
+ * @memberof UserProfileApi
14854
+ */
14855
+ public getUserBookings(requestParameters: UserProfileApiGetUserBookingsRequest = {}, options?: RawAxiosRequestConfig) {
14856
+ return UserProfileApiFp(this.configuration).getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(this.axios, this.basePath));
14857
+ }
14858
+
14199
14859
  /**
14200
14860
  *
14201
14861
  * @summary Récupère la ville de l\'utilisateur connecté
@@ -14252,6 +14912,18 @@ export class UserProfileApi extends BaseAPI {
14252
14912
  return UserProfileApiFp(this.configuration).removeFavoriteClub(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
14253
14913
  }
14254
14914
 
14915
+ /**
14916
+ *
14917
+ * @summary Retire un joueur des favoris de l\'utilisateur connecté
14918
+ * @param {UserProfileApiRemoveFavoritePlayerRequest} requestParameters Request parameters.
14919
+ * @param {*} [options] Override http request option.
14920
+ * @throws {RequiredError}
14921
+ * @memberof UserProfileApi
14922
+ */
14923
+ public removeFavoritePlayer(requestParameters: UserProfileApiRemoveFavoritePlayerRequest, options?: RawAxiosRequestConfig) {
14924
+ return UserProfileApiFp(this.configuration).removeFavoritePlayer(requestParameters.favoritePlayerId, options).then((request) => request(this.axios, this.basePath));
14925
+ }
14926
+
14255
14927
  /**
14256
14928
  *
14257
14929
  * @summary Met à jour le tableau levelBySports de l\'utilisateur connecté