@tennac-booking/sdk 1.0.26 → 1.0.28

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.
@@ -4,8 +4,10 @@ All URIs are relative to *https://api.mon-domaine.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**addFavoriteClub**](#addfavoriteclub) | **POST** /api/users/me/favorite-clubs | Add a club to the user\'s favorite list|
7
8
  |[**changePassword**](#changepassword) | **PUT** /api/users/me/password | Modifie le mot de passe de l\'utilisateur connecté|
8
9
  |[**getAllUsers**](#getallusers) | **GET** /api/users | Récupère la liste des utilisateurs avec filtres et pagination|
10
+ |[**getFavoriteClubs**](#getfavoriteclubs) | **GET** /api/users/me/favorite-clubs | Retrieve the list of favorite clubs for the logged-in user|
9
11
  |[**getFrequentlyPlayedWith**](#getfrequentlyplayedwith) | **GET** /api/users/me/frequentlyPlayedWith | Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)|
10
12
  |[**getFrequentlyVisitedClub**](#getfrequentlyvisitedclub) | **GET** /api/users/me/frequentlyVisitedClub | Clubs les plus fréquemment visités par l\'utilisateur connecté|
11
13
  |[**getProfilePicture**](#getprofilepicture) | **GET** /api/users/me/profile-picture | Récupère l\'URL de la photo de profil de l\'utilisateur connecté|
@@ -13,6 +15,7 @@ All URIs are relative to *https://api.mon-domaine.com*
13
15
  |[**getUserDescription**](#getuserdescription) | **GET** /api/users/me/description | Récupère la description de l\'utilisateur connecté|
14
16
  |[**getUserInfo**](#getuserinfo) | **GET** /api/users/me | Récupère les informations de l\'utilisateur connecté|
15
17
  |[**getUserProfileVisibility**](#getuserprofilevisibility) | **GET** /api/users/me/profile-visibility | Récupère la visibilité du profil de l\'utilisateur connecté|
18
+ |[**removeFavoriteClub**](#removefavoriteclub) | **DELETE** /api/users/me/favorite-clubs | Remove a club from the user\'s favorite list|
16
19
  |[**updateLevelBySports**](#updatelevelbysports) | **PUT** /api/users/me/level-by-sports | Met à jour le tableau levelBySports de l\'utilisateur connecté|
17
20
  |[**updateProfilePicture**](#updateprofilepicture) | **PUT** /api/users/me/profile-picture | Met à jour l\'URL de la photo de profil de l\'utilisateur connecté|
18
21
  |[**updateProfileVisibility**](#updateprofilevisibility) | **PUT** /api/users/me/profile-visibility | Met à jour la visibilité du profil de l\'utilisateur connecté|
@@ -20,6 +23,60 @@ All URIs are relative to *https://api.mon-domaine.com*
20
23
  |[**updateUserCity**](#updateusercity) | **PUT** /api/users/me/city | Met à jour la ville de l\'utilisateur connecté|
21
24
  |[**updateUserDescription**](#updateuserdescription) | **PUT** /api/users/me/description | Met à jour la description de l\'utilisateur connecté|
22
25
 
26
+ # **addFavoriteClub**
27
+ > FavoriteClubResponse addFavoriteClub(addFavoriteClubRequestBody)
28
+
29
+
30
+ ### Example
31
+
32
+ ```typescript
33
+ import {
34
+ UserProfileApi,
35
+ Configuration,
36
+ AddFavoriteClubRequestBody
37
+ } from '@tennac-booking/sdk';
38
+
39
+ const configuration = new Configuration();
40
+ const apiInstance = new UserProfileApi(configuration);
41
+
42
+ let addFavoriteClubRequestBody: AddFavoriteClubRequestBody; //
43
+
44
+ const { status, data } = await apiInstance.addFavoriteClub(
45
+ addFavoriteClubRequestBody
46
+ );
47
+ ```
48
+
49
+ ### Parameters
50
+
51
+ |Name | Type | Description | Notes|
52
+ |------------- | ------------- | ------------- | -------------|
53
+ | **addFavoriteClubRequestBody** | **AddFavoriteClubRequestBody**| | |
54
+
55
+
56
+ ### Return type
57
+
58
+ **FavoriteClubResponse**
59
+
60
+ ### Authorization
61
+
62
+ [bearerAuth](../README.md#bearerAuth)
63
+
64
+ ### HTTP request headers
65
+
66
+ - **Content-Type**: application/json
67
+ - **Accept**: application/json
68
+
69
+
70
+ ### HTTP response details
71
+ | Status code | Description | Response headers |
72
+ |-------------|-------------|------------------|
73
+ |**200** | Club added to favorites | - |
74
+ |**400** | Requête invalide | - |
75
+ |**401** | Non autorisé | - |
76
+ |**500** | Erreur serveur interne | - |
77
+
78
+ [[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
+
23
80
  # **changePassword**
24
81
  > ChangePasswordResponse changePassword(changePasswordRequestBody)
25
82
 
@@ -133,6 +190,51 @@ const { status, data } = await apiInstance.getAllUsers(
133
190
 
134
191
  [[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)
135
192
 
193
+ # **getFavoriteClubs**
194
+ > GetFavoriteClubs200Response getFavoriteClubs()
195
+
196
+
197
+ ### Example
198
+
199
+ ```typescript
200
+ import {
201
+ UserProfileApi,
202
+ Configuration
203
+ } from '@tennac-booking/sdk';
204
+
205
+ const configuration = new Configuration();
206
+ const apiInstance = new UserProfileApi(configuration);
207
+
208
+ const { status, data } = await apiInstance.getFavoriteClubs();
209
+ ```
210
+
211
+ ### Parameters
212
+ This endpoint does not have any parameters.
213
+
214
+
215
+ ### Return type
216
+
217
+ **GetFavoriteClubs200Response**
218
+
219
+ ### Authorization
220
+
221
+ [bearerAuth](../README.md#bearerAuth)
222
+
223
+ ### HTTP request headers
224
+
225
+ - **Content-Type**: Not defined
226
+ - **Accept**: application/json
227
+
228
+
229
+ ### HTTP response details
230
+ | Status code | Description | Response headers |
231
+ |-------------|-------------|------------------|
232
+ |**200** | List of favorite clubs | - |
233
+ |**401** | Non autorisé | - |
234
+ |**500** | Erreur serveur interne | - |
235
+
236
+ [[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
+
136
238
  # **getFrequentlyPlayedWith**
137
239
  > Array<FrequentlyPlayedWithItem> getFrequentlyPlayedWith()
138
240
 
@@ -453,6 +555,59 @@ This endpoint does not have any parameters.
453
555
 
454
556
  [[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)
455
557
 
558
+ # **removeFavoriteClub**
559
+ > FavoriteClubResponse removeFavoriteClub()
560
+
561
+
562
+ ### Example
563
+
564
+ ```typescript
565
+ import {
566
+ UserProfileApi,
567
+ Configuration
568
+ } from '@tennac-booking/sdk';
569
+
570
+ const configuration = new Configuration();
571
+ const apiInstance = new UserProfileApi(configuration);
572
+
573
+ let clubId: string; //ID of the club to remove from favorites (default to undefined)
574
+
575
+ const { status, data } = await apiInstance.removeFavoriteClub(
576
+ clubId
577
+ );
578
+ ```
579
+
580
+ ### Parameters
581
+
582
+ |Name | Type | Description | Notes|
583
+ |------------- | ------------- | ------------- | -------------|
584
+ | **clubId** | [**string**] | ID of the club to remove from favorites | defaults to undefined|
585
+
586
+
587
+ ### Return type
588
+
589
+ **FavoriteClubResponse**
590
+
591
+ ### Authorization
592
+
593
+ [bearerAuth](../README.md#bearerAuth)
594
+
595
+ ### HTTP request headers
596
+
597
+ - **Content-Type**: Not defined
598
+ - **Accept**: application/json
599
+
600
+
601
+ ### HTTP response details
602
+ | Status code | Description | Response headers |
603
+ |-------------|-------------|------------------|
604
+ |**200** | Club removed from favorites | - |
605
+ |**400** | Requête invalide | - |
606
+ |**401** | Non autorisé | - |
607
+ |**500** | Erreur serveur interne | - |
608
+
609
+ [[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
+
456
611
  # **updateLevelBySports**
457
612
  > UserResponse updateLevelBySports(updateLevelBySportsRequestBody)
458
613
 
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.26
7
+ * The version of the OpenAPI document: 1.0.28
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.26",
3
+ "version": "1.0.28",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {