@tennac-booking/sdk 1.0.28 → 1.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,17 +5,21 @@ All URIs are relative to *https://api.mon-domaine.com*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**addFavoriteClub**](#addfavoriteclub) | **POST** /api/users/me/favorite-clubs | Add a club to the user\'s favorite list|
8
+ |[**addFavoritePlayer**](#addfavoriteplayer) | **POST** /api/users/me/favoritesPlayers | Ajoute un joueur aux favoris de l\'utilisateur connecté|
8
9
  |[**changePassword**](#changepassword) | **PUT** /api/users/me/password | Modifie le mot de passe de l\'utilisateur connecté|
9
10
  |[**getAllUsers**](#getallusers) | **GET** /api/users | Récupère la liste des utilisateurs avec filtres et pagination|
10
11
  |[**getFavoriteClubs**](#getfavoriteclubs) | **GET** /api/users/me/favorite-clubs | Retrieve the list of favorite clubs for the logged-in user|
12
+ |[**getFavoritesPlayers**](#getfavoritesplayers) | **GET** /api/users/me/favoritesPlayers | Récupère les joueurs favoris (profils visibles) de l\'utilisateur connecté|
11
13
  |[**getFrequentlyPlayedWith**](#getfrequentlyplayedwith) | **GET** /api/users/me/frequentlyPlayedWith | Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)|
12
14
  |[**getFrequentlyVisitedClub**](#getfrequentlyvisitedclub) | **GET** /api/users/me/frequentlyVisitedClub | Clubs les plus fréquemment visités par l\'utilisateur connecté|
13
15
  |[**getProfilePicture**](#getprofilepicture) | **GET** /api/users/me/profile-picture | Récupère l\'URL de la photo de profil de l\'utilisateur connecté|
16
+ |[**getUserBookings**](#getuserbookings) | **GET** /api/users/me/bookings | Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)|
14
17
  |[**getUserCity**](#getusercity) | **GET** /api/users/me/city | Récupère la ville de l\'utilisateur connecté|
15
18
  |[**getUserDescription**](#getuserdescription) | **GET** /api/users/me/description | Récupère la description de l\'utilisateur connecté|
16
19
  |[**getUserInfo**](#getuserinfo) | **GET** /api/users/me | Récupère les informations de l\'utilisateur connecté|
17
20
  |[**getUserProfileVisibility**](#getuserprofilevisibility) | **GET** /api/users/me/profile-visibility | Récupère la visibilité du profil de l\'utilisateur connecté|
18
21
  |[**removeFavoriteClub**](#removefavoriteclub) | **DELETE** /api/users/me/favorite-clubs | Remove a club from the user\'s favorite list|
22
+ |[**removeFavoritePlayer**](#removefavoriteplayer) | **DELETE** /api/users/me/favoritesPlayers/{favoritePlayerId} | Retire un joueur des favoris de l\'utilisateur connecté|
19
23
  |[**updateLevelBySports**](#updatelevelbysports) | **PUT** /api/users/me/level-by-sports | Met à jour le tableau levelBySports de l\'utilisateur connecté|
20
24
  |[**updateProfilePicture**](#updateprofilepicture) | **PUT** /api/users/me/profile-picture | Met à jour l\'URL de la photo de profil de l\'utilisateur connecté|
21
25
  |[**updateProfileVisibility**](#updateprofilevisibility) | **PUT** /api/users/me/profile-visibility | Met à jour la visibilité du profil de l\'utilisateur connecté|
@@ -77,6 +81,61 @@ const { status, data } = await apiInstance.addFavoriteClub(
77
81
 
78
82
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
79
83
 
84
+ # **addFavoritePlayer**
85
+ > FavoritePlayersIdsResponse addFavoritePlayer(addFavoritePlayerRequestBody)
86
+
87
+
88
+ ### Example
89
+
90
+ ```typescript
91
+ import {
92
+ UserProfileApi,
93
+ Configuration,
94
+ AddFavoritePlayerRequestBody
95
+ } from '@tennac-booking/sdk';
96
+
97
+ const configuration = new Configuration();
98
+ const apiInstance = new UserProfileApi(configuration);
99
+
100
+ let addFavoritePlayerRequestBody: AddFavoritePlayerRequestBody; //
101
+
102
+ const { status, data } = await apiInstance.addFavoritePlayer(
103
+ addFavoritePlayerRequestBody
104
+ );
105
+ ```
106
+
107
+ ### Parameters
108
+
109
+ |Name | Type | Description | Notes|
110
+ |------------- | ------------- | ------------- | -------------|
111
+ | **addFavoritePlayerRequestBody** | **AddFavoritePlayerRequestBody**| | |
112
+
113
+
114
+ ### Return type
115
+
116
+ **FavoritePlayersIdsResponse**
117
+
118
+ ### Authorization
119
+
120
+ [bearerAuth](../README.md#bearerAuth)
121
+
122
+ ### HTTP request headers
123
+
124
+ - **Content-Type**: application/json
125
+ - **Accept**: application/json
126
+
127
+
128
+ ### HTTP response details
129
+ | Status code | Description | Response headers |
130
+ |-------------|-------------|------------------|
131
+ |**200** | Joueur ajouté aux favoris | - |
132
+ |**400** | Requête invalide | - |
133
+ |**401** | Non autorisé | - |
134
+ |**404** | Ressource non trouvée | - |
135
+ |**500** | Erreur serveur interne | - |
136
+
137
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
138
+
80
139
  # **changePassword**
81
140
  > ChangePasswordResponse changePassword(changePasswordRequestBody)
82
141
 
@@ -191,7 +250,7 @@ const { status, data } = await apiInstance.getAllUsers(
191
250
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
192
251
 
193
252
  # **getFavoriteClubs**
194
- > GetFavoriteClubs200Response getFavoriteClubs()
253
+ > UserFavoriteClubsResponse getFavoriteClubs()
195
254
 
196
255
 
197
256
  ### Example
@@ -214,7 +273,7 @@ This endpoint does not have any parameters.
214
273
 
215
274
  ### Return type
216
275
 
217
- **GetFavoriteClubs200Response**
276
+ **UserFavoriteClubsResponse**
218
277
 
219
278
  ### Authorization
220
279
 
@@ -235,6 +294,51 @@ This endpoint does not have any parameters.
235
294
 
236
295
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
237
296
 
297
+ # **getFavoritesPlayers**
298
+ > FavoritePlayersResponse getFavoritesPlayers()
299
+
300
+
301
+ ### Example
302
+
303
+ ```typescript
304
+ import {
305
+ UserProfileApi,
306
+ Configuration
307
+ } from '@tennac-booking/sdk';
308
+
309
+ const configuration = new Configuration();
310
+ const apiInstance = new UserProfileApi(configuration);
311
+
312
+ const { status, data } = await apiInstance.getFavoritesPlayers();
313
+ ```
314
+
315
+ ### Parameters
316
+ This endpoint does not have any parameters.
317
+
318
+
319
+ ### Return type
320
+
321
+ **FavoritePlayersResponse**
322
+
323
+ ### Authorization
324
+
325
+ [bearerAuth](../README.md#bearerAuth)
326
+
327
+ ### HTTP request headers
328
+
329
+ - **Content-Type**: Not defined
330
+ - **Accept**: application/json
331
+
332
+
333
+ ### HTTP response details
334
+ | Status code | Description | Response headers |
335
+ |-------------|-------------|------------------|
336
+ |**200** | Liste des joueurs favoris visibles | - |
337
+ |**401** | Non autorisé | - |
338
+ |**500** | Erreur serveur interne | - |
339
+
340
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
341
+
238
342
  # **getFrequentlyPlayedWith**
239
343
  > Array<FrequentlyPlayedWithItem> getFrequentlyPlayedWith()
240
344
 
@@ -371,6 +475,61 @@ This endpoint does not have any parameters.
371
475
 
372
476
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
373
477
 
478
+ # **getUserBookings**
479
+ > UserBookingsResponse getUserBookings()
480
+
481
+
482
+ ### Example
483
+
484
+ ```typescript
485
+ import {
486
+ UserProfileApi,
487
+ Configuration
488
+ } from '@tennac-booking/sdk';
489
+
490
+ const configuration = new Configuration();
491
+ const apiInstance = new UserProfileApi(configuration);
492
+
493
+ let limit: number; //Nombre maximum de réservations à retourner (optional) (default to 20)
494
+ let skip: number; //Nombre de réservations à ignorer (pagination) (optional) (default to 0)
495
+
496
+ const { status, data } = await apiInstance.getUserBookings(
497
+ limit,
498
+ skip
499
+ );
500
+ ```
501
+
502
+ ### Parameters
503
+
504
+ |Name | Type | Description | Notes|
505
+ |------------- | ------------- | ------------- | -------------|
506
+ | **limit** | [**number**] | Nombre maximum de réservations à retourner | (optional) defaults to 20|
507
+ | **skip** | [**number**] | Nombre de réservations à ignorer (pagination) | (optional) defaults to 0|
508
+
509
+
510
+ ### Return type
511
+
512
+ **UserBookingsResponse**
513
+
514
+ ### Authorization
515
+
516
+ [bearerAuth](../README.md#bearerAuth)
517
+
518
+ ### HTTP request headers
519
+
520
+ - **Content-Type**: Not defined
521
+ - **Accept**: application/json
522
+
523
+
524
+ ### HTTP response details
525
+ | Status code | Description | Response headers |
526
+ |-------------|-------------|------------------|
527
+ |**200** | Réservations de l\&#39;utilisateur | - |
528
+ |**401** | Non autorisé | - |
529
+ |**500** | Erreur serveur interne | - |
530
+
531
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
532
+
374
533
  # **getUserCity**
375
534
  > UserCityResponse getUserCity()
376
535
 
@@ -608,6 +767,60 @@ const { status, data } = await apiInstance.removeFavoriteClub(
608
767
 
609
768
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
610
769
 
770
+ # **removeFavoritePlayer**
771
+ > FavoritePlayersIdsResponse removeFavoritePlayer()
772
+
773
+
774
+ ### Example
775
+
776
+ ```typescript
777
+ import {
778
+ UserProfileApi,
779
+ Configuration
780
+ } from '@tennac-booking/sdk';
781
+
782
+ const configuration = new Configuration();
783
+ const apiInstance = new UserProfileApi(configuration);
784
+
785
+ let favoritePlayerId: string; //ID du joueur à retirer des favoris (default to undefined)
786
+
787
+ const { status, data } = await apiInstance.removeFavoritePlayer(
788
+ favoritePlayerId
789
+ );
790
+ ```
791
+
792
+ ### Parameters
793
+
794
+ |Name | Type | Description | Notes|
795
+ |------------- | ------------- | ------------- | -------------|
796
+ | **favoritePlayerId** | [**string**] | ID du joueur à retirer des favoris | defaults to undefined|
797
+
798
+
799
+ ### Return type
800
+
801
+ **FavoritePlayersIdsResponse**
802
+
803
+ ### Authorization
804
+
805
+ [bearerAuth](../README.md#bearerAuth)
806
+
807
+ ### HTTP request headers
808
+
809
+ - **Content-Type**: Not defined
810
+ - **Accept**: application/json
811
+
812
+
813
+ ### HTTP response details
814
+ | Status code | Description | Response headers |
815
+ |-------------|-------------|------------------|
816
+ |**200** | Joueur retiré des favoris | - |
817
+ |**400** | Requête invalide | - |
818
+ |**401** | Non autorisé | - |
819
+ |**404** | Ressource non trouvée | - |
820
+ |**500** | Erreur serveur interne | - |
821
+
822
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
823
+
611
824
  # **updateLevelBySports**
612
825
  > UserResponse updateLevelBySports(updateLevelBySportsRequestBody)
613
826
 
package/index.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.29
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.28",
3
+ "version": "1.0.29",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {