@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.
@@ -0,0 +1,20 @@
1
+ # FavoritePlayersResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **favoriteUsers** | [**Array<FavoritePlayerPublic>**](FavoritePlayerPublic.md) | | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { FavoritePlayersResponse } from '@tennac-booking/sdk';
14
+
15
+ const instance: FavoritePlayersResponse = {
16
+ favoriteUsers,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -8,11 +8,17 @@ Name | Type | Description | Notes
8
8
  **_id** | **string** | | [optional] [default to undefined]
9
9
  **firstName** | **string** | | [optional] [default to undefined]
10
10
  **lastName** | **string** | | [optional] [default to undefined]
11
+ **createdAt** | **string** | | [optional] [default to undefined]
12
+ **isAccountVerified** | **boolean** | | [optional] [default to undefined]
11
13
  **email** | **string** | | [optional] [default to undefined]
12
14
  **levelBySports** | [**Array<PublicClubUserLevelBySportsInner>**](PublicClubUserLevelBySportsInner.md) | | [optional] [default to undefined]
13
15
  **profilePicture** | **string** | | [optional] [default to undefined]
14
16
  **description** | **string** | | [optional] [default to undefined]
15
17
  **city** | **string** | | [optional] [default to undefined]
18
+ **favoriteClubs** | **Array<string>** | | [optional] [default to undefined]
19
+ **favoritePlayers** | **Array<string>** | | [optional] [default to undefined]
20
+ **frequentlyPlayedWith** | [**Array<PublicClubUserFrequentlyPlayedWithInner>**](PublicClubUserFrequentlyPlayedWithInner.md) | | [optional] [default to undefined]
21
+ **frequentlyVisitedClubs** | [**Array<PublicClubUserFrequentlyVisitedClubsInner>**](PublicClubUserFrequentlyVisitedClubsInner.md) | | [optional] [default to undefined]
16
22
 
17
23
  ## Example
18
24
 
@@ -23,11 +29,17 @@ const instance: PublicClubUser = {
23
29
  _id,
24
30
  firstName,
25
31
  lastName,
32
+ createdAt,
33
+ isAccountVerified,
26
34
  email,
27
35
  levelBySports,
28
36
  profilePicture,
29
37
  description,
30
38
  city,
39
+ favoriteClubs,
40
+ favoritePlayers,
41
+ frequentlyPlayedWith,
42
+ frequentlyVisitedClubs,
31
43
  };
32
44
  ```
33
45
 
@@ -0,0 +1,28 @@
1
+ # PublicClubUserFrequentlyPlayedWithInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **userId** | **string** | | [optional] [default to undefined]
9
+ **firstName** | **string** | | [optional] [default to undefined]
10
+ **lastName** | **string** | | [optional] [default to undefined]
11
+ **profilePicture** | **string** | | [optional] [default to undefined]
12
+ **playCount** | **number** | | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { PublicClubUserFrequentlyPlayedWithInner } from '@tennac-booking/sdk';
18
+
19
+ const instance: PublicClubUserFrequentlyPlayedWithInner = {
20
+ userId,
21
+ firstName,
22
+ lastName,
23
+ profilePicture,
24
+ playCount,
25
+ };
26
+ ```
27
+
28
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # PublicClubUserFrequentlyVisitedClubsInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **clubId** | **string** | | [optional] [default to undefined]
9
+ **name** | **string** | | [optional] [default to undefined]
10
+ **visitCount** | **number** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { PublicClubUserFrequentlyVisitedClubsInner } from '@tennac-booking/sdk';
16
+
17
+ const instance: PublicClubUserFrequentlyVisitedClubsInner = {
18
+ clubId,
19
+ name,
20
+ visitCount,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,26 @@
1
+ # UserBookingsResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **bookings** | [**Array<Booking>**](Booking.md) | | [optional] [default to undefined]
9
+ **total** | **number** | | [optional] [default to undefined]
10
+ **limit** | **number** | | [optional] [default to undefined]
11
+ **skip** | **number** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { UserBookingsResponse } from '@tennac-booking/sdk';
17
+
18
+ const instance: UserBookingsResponse = {
19
+ bookings,
20
+ total,
21
+ limit,
22
+ skip,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,18 +1,18 @@
1
- # GetFavoriteClubs200Response
1
+ # UserFavoriteClubsResponse
2
2
 
3
3
 
4
4
  ## Properties
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **favoriteClubs** | **Array<string>** | | [optional] [default to undefined]
8
+ **favoriteClubs** | [**Array<FavoriteClubItem>**](FavoriteClubItem.md) | | [optional] [default to undefined]
9
9
 
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { GetFavoriteClubs200Response } from '@tennac-booking/sdk';
13
+ import { UserFavoriteClubsResponse } from '@tennac-booking/sdk';
14
14
 
15
- const instance: GetFavoriteClubs200Response = {
15
+ const instance: UserFavoriteClubsResponse = {
16
16
  favoriteClubs,
17
17
  };
18
18
  ```
@@ -5,17 +5,22 @@ 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
+ |[**getPublicUserProfile**](#getpublicuserprofile) | **GET** /api/users/profile/{id} | Récupère le profil public d\'un utilisateur par son ID|
17
+ |[**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
18
  |[**getUserCity**](#getusercity) | **GET** /api/users/me/city | Récupère la ville de l\'utilisateur connecté|
15
19
  |[**getUserDescription**](#getuserdescription) | **GET** /api/users/me/description | Récupère la description de l\'utilisateur connecté|
16
20
  |[**getUserInfo**](#getuserinfo) | **GET** /api/users/me | Récupère les informations de l\'utilisateur connecté|
17
21
  |[**getUserProfileVisibility**](#getuserprofilevisibility) | **GET** /api/users/me/profile-visibility | Récupère la visibilité du profil de l\'utilisateur connecté|
18
22
  |[**removeFavoriteClub**](#removefavoriteclub) | **DELETE** /api/users/me/favorite-clubs | Remove a club from the user\'s favorite list|
23
+ |[**removeFavoritePlayer**](#removefavoriteplayer) | **DELETE** /api/users/me/favoritesPlayers/{favoritePlayerId} | Retire un joueur des favoris de l\'utilisateur connecté|
19
24
  |[**updateLevelBySports**](#updatelevelbysports) | **PUT** /api/users/me/level-by-sports | Met à jour le tableau levelBySports de l\'utilisateur connecté|
20
25
  |[**updateProfilePicture**](#updateprofilepicture) | **PUT** /api/users/me/profile-picture | Met à jour l\'URL de la photo de profil de l\'utilisateur connecté|
21
26
  |[**updateProfileVisibility**](#updateprofilevisibility) | **PUT** /api/users/me/profile-visibility | Met à jour la visibilité du profil de l\'utilisateur connecté|
@@ -77,6 +82,61 @@ const { status, data } = await apiInstance.addFavoriteClub(
77
82
 
78
83
  [[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
84
 
85
+ # **addFavoritePlayer**
86
+ > FavoritePlayersIdsResponse addFavoritePlayer(addFavoritePlayerRequestBody)
87
+
88
+
89
+ ### Example
90
+
91
+ ```typescript
92
+ import {
93
+ UserProfileApi,
94
+ Configuration,
95
+ AddFavoritePlayerRequestBody
96
+ } from '@tennac-booking/sdk';
97
+
98
+ const configuration = new Configuration();
99
+ const apiInstance = new UserProfileApi(configuration);
100
+
101
+ let addFavoritePlayerRequestBody: AddFavoritePlayerRequestBody; //
102
+
103
+ const { status, data } = await apiInstance.addFavoritePlayer(
104
+ addFavoritePlayerRequestBody
105
+ );
106
+ ```
107
+
108
+ ### Parameters
109
+
110
+ |Name | Type | Description | Notes|
111
+ |------------- | ------------- | ------------- | -------------|
112
+ | **addFavoritePlayerRequestBody** | **AddFavoritePlayerRequestBody**| | |
113
+
114
+
115
+ ### Return type
116
+
117
+ **FavoritePlayersIdsResponse**
118
+
119
+ ### Authorization
120
+
121
+ [bearerAuth](../README.md#bearerAuth)
122
+
123
+ ### HTTP request headers
124
+
125
+ - **Content-Type**: application/json
126
+ - **Accept**: application/json
127
+
128
+
129
+ ### HTTP response details
130
+ | Status code | Description | Response headers |
131
+ |-------------|-------------|------------------|
132
+ |**200** | Joueur ajouté aux favoris | - |
133
+ |**400** | Requête invalide | - |
134
+ |**401** | Non autorisé | - |
135
+ |**404** | Ressource non trouvée | - |
136
+ |**500** | Erreur serveur interne | - |
137
+
138
+ [[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)
139
+
80
140
  # **changePassword**
81
141
  > ChangePasswordResponse changePassword(changePasswordRequestBody)
82
142
 
@@ -191,7 +251,7 @@ const { status, data } = await apiInstance.getAllUsers(
191
251
  [[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
252
 
193
253
  # **getFavoriteClubs**
194
- > GetFavoriteClubs200Response getFavoriteClubs()
254
+ > UserFavoriteClubsResponse getFavoriteClubs()
195
255
 
196
256
 
197
257
  ### Example
@@ -214,7 +274,7 @@ This endpoint does not have any parameters.
214
274
 
215
275
  ### Return type
216
276
 
217
- **GetFavoriteClubs200Response**
277
+ **UserFavoriteClubsResponse**
218
278
 
219
279
  ### Authorization
220
280
 
@@ -235,6 +295,51 @@ This endpoint does not have any parameters.
235
295
 
236
296
  [[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
297
 
298
+ # **getFavoritesPlayers**
299
+ > FavoritePlayersResponse getFavoritesPlayers()
300
+
301
+
302
+ ### Example
303
+
304
+ ```typescript
305
+ import {
306
+ UserProfileApi,
307
+ Configuration
308
+ } from '@tennac-booking/sdk';
309
+
310
+ const configuration = new Configuration();
311
+ const apiInstance = new UserProfileApi(configuration);
312
+
313
+ const { status, data } = await apiInstance.getFavoritesPlayers();
314
+ ```
315
+
316
+ ### Parameters
317
+ This endpoint does not have any parameters.
318
+
319
+
320
+ ### Return type
321
+
322
+ **FavoritePlayersResponse**
323
+
324
+ ### Authorization
325
+
326
+ [bearerAuth](../README.md#bearerAuth)
327
+
328
+ ### HTTP request headers
329
+
330
+ - **Content-Type**: Not defined
331
+ - **Accept**: application/json
332
+
333
+
334
+ ### HTTP response details
335
+ | Status code | Description | Response headers |
336
+ |-------------|-------------|------------------|
337
+ |**200** | Liste des joueurs favoris visibles | - |
338
+ |**401** | Non autorisé | - |
339
+ |**500** | Erreur serveur interne | - |
340
+
341
+ [[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)
342
+
238
343
  # **getFrequentlyPlayedWith**
239
344
  > Array<FrequentlyPlayedWithItem> getFrequentlyPlayedWith()
240
345
 
@@ -371,6 +476,113 @@ This endpoint does not have any parameters.
371
476
 
372
477
  [[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
478
 
479
+ # **getPublicUserProfile**
480
+ > PublicClubUser getPublicUserProfile()
481
+
482
+
483
+ ### Example
484
+
485
+ ```typescript
486
+ import {
487
+ UserProfileApi,
488
+ Configuration
489
+ } from '@tennac-booking/sdk';
490
+
491
+ const configuration = new Configuration();
492
+ const apiInstance = new UserProfileApi(configuration);
493
+
494
+ let id: string; //ID de l\'utilisateur (default to undefined)
495
+
496
+ const { status, data } = await apiInstance.getPublicUserProfile(
497
+ id
498
+ );
499
+ ```
500
+
501
+ ### Parameters
502
+
503
+ |Name | Type | Description | Notes|
504
+ |------------- | ------------- | ------------- | -------------|
505
+ | **id** | [**string**] | ID de l\&#39;utilisateur | defaults to undefined|
506
+
507
+
508
+ ### Return type
509
+
510
+ **PublicClubUser**
511
+
512
+ ### Authorization
513
+
514
+ [bearerAuth](../README.md#bearerAuth)
515
+
516
+ ### HTTP request headers
517
+
518
+ - **Content-Type**: Not defined
519
+ - **Accept**: application/json
520
+
521
+
522
+ ### HTTP response details
523
+ | Status code | Description | Response headers |
524
+ |-------------|-------------|------------------|
525
+ |**200** | Profil public de l\&#39;utilisateur | - |
526
+ |**401** | Non autorisé | - |
527
+ |**500** | Erreur serveur interne | - |
528
+
529
+ [[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)
530
+
531
+ # **getUserBookings**
532
+ > UserBookingsResponse getUserBookings()
533
+
534
+
535
+ ### Example
536
+
537
+ ```typescript
538
+ import {
539
+ UserProfileApi,
540
+ Configuration
541
+ } from '@tennac-booking/sdk';
542
+
543
+ const configuration = new Configuration();
544
+ const apiInstance = new UserProfileApi(configuration);
545
+
546
+ let limit: number; //Nombre maximum de réservations à retourner (optional) (default to 20)
547
+ let skip: number; //Nombre de réservations à ignorer (pagination) (optional) (default to 0)
548
+
549
+ const { status, data } = await apiInstance.getUserBookings(
550
+ limit,
551
+ skip
552
+ );
553
+ ```
554
+
555
+ ### Parameters
556
+
557
+ |Name | Type | Description | Notes|
558
+ |------------- | ------------- | ------------- | -------------|
559
+ | **limit** | [**number**] | Nombre maximum de réservations à retourner | (optional) defaults to 20|
560
+ | **skip** | [**number**] | Nombre de réservations à ignorer (pagination) | (optional) defaults to 0|
561
+
562
+
563
+ ### Return type
564
+
565
+ **UserBookingsResponse**
566
+
567
+ ### Authorization
568
+
569
+ [bearerAuth](../README.md#bearerAuth)
570
+
571
+ ### HTTP request headers
572
+
573
+ - **Content-Type**: Not defined
574
+ - **Accept**: application/json
575
+
576
+
577
+ ### HTTP response details
578
+ | Status code | Description | Response headers |
579
+ |-------------|-------------|------------------|
580
+ |**200** | Réservations de l\&#39;utilisateur | - |
581
+ |**401** | Non autorisé | - |
582
+ |**500** | Erreur serveur interne | - |
583
+
584
+ [[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)
585
+
374
586
  # **getUserCity**
375
587
  > UserCityResponse getUserCity()
376
588
 
@@ -608,6 +820,60 @@ const { status, data } = await apiInstance.removeFavoriteClub(
608
820
 
609
821
  [[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
822
 
823
+ # **removeFavoritePlayer**
824
+ > FavoritePlayersIdsResponse removeFavoritePlayer()
825
+
826
+
827
+ ### Example
828
+
829
+ ```typescript
830
+ import {
831
+ UserProfileApi,
832
+ Configuration
833
+ } from '@tennac-booking/sdk';
834
+
835
+ const configuration = new Configuration();
836
+ const apiInstance = new UserProfileApi(configuration);
837
+
838
+ let favoritePlayerId: string; //ID du joueur à retirer des favoris (default to undefined)
839
+
840
+ const { status, data } = await apiInstance.removeFavoritePlayer(
841
+ favoritePlayerId
842
+ );
843
+ ```
844
+
845
+ ### Parameters
846
+
847
+ |Name | Type | Description | Notes|
848
+ |------------- | ------------- | ------------- | -------------|
849
+ | **favoritePlayerId** | [**string**] | ID du joueur à retirer des favoris | defaults to undefined|
850
+
851
+
852
+ ### Return type
853
+
854
+ **FavoritePlayersIdsResponse**
855
+
856
+ ### Authorization
857
+
858
+ [bearerAuth](../README.md#bearerAuth)
859
+
860
+ ### HTTP request headers
861
+
862
+ - **Content-Type**: Not defined
863
+ - **Accept**: application/json
864
+
865
+
866
+ ### HTTP response details
867
+ | Status code | Description | Response headers |
868
+ |-------------|-------------|------------------|
869
+ |**200** | Joueur retiré des favoris | - |
870
+ |**400** | Requête invalide | - |
871
+ |**401** | Non autorisé | - |
872
+ |**404** | Ressource non trouvée | - |
873
+ |**500** | Erreur serveur interne | - |
874
+
875
+ [[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)
876
+
611
877
  # **updateLevelBySports**
612
878
  > UserResponse updateLevelBySports(updateLevelBySportsRequestBody)
613
879
 
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.30
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.30",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {