@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/dist/esm/index.js
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).
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Pandook API
|
|
3
3
|
* API for managing pickle ball games and players
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.29
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Pandook API
|
|
6
6
|
* API for managing pickle ball games and players
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.29
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# AddFavoritePlayerRequestBody
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**favoritePlayerId** | **string** | ID de l\'utilisateur à ajouter en favori | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { AddFavoritePlayerRequestBody } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: AddFavoritePlayerRequestBody = {
|
|
16
|
+
favoritePlayerId,
|
|
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)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# FavoriteClubItem
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**_id** | **string** | ID du club | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**address** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**isActive** | **boolean** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { FavoriteClubItem } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: FavoriteClubItem = {
|
|
19
|
+
_id,
|
|
20
|
+
name,
|
|
21
|
+
address,
|
|
22
|
+
isActive,
|
|
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)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# FavoritePlayerPublic
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**_id** | **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
|
+
**isProfileVisible** | **boolean** | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { FavoritePlayerPublic } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: FavoritePlayerPublic = {
|
|
20
|
+
_id,
|
|
21
|
+
firstName,
|
|
22
|
+
lastName,
|
|
23
|
+
profilePicture,
|
|
24
|
+
isProfileVisible,
|
|
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,22 @@
|
|
|
1
|
+
# FavoritePlayersIdsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**favoritePlayers** | **Array<string>** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { FavoritePlayersIdsResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: FavoritePlayersIdsResponse = {
|
|
17
|
+
message,
|
|
18
|
+
favoritePlayers,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[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,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)
|
|
@@ -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)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# UserFavoriteClubsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**favoriteClubs** | [**Array<FavoriteClubItem>**](FavoriteClubItem.md) | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { UserFavoriteClubsResponse } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: UserFavoriteClubsResponse = {
|
|
16
|
+
favoriteClubs,
|
|
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)
|
package/docs/UserProfileApi.md
CHANGED
|
@@ -4,15 +4,22 @@ 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|
|
|
8
|
+
|[**addFavoritePlayer**](#addfavoriteplayer) | **POST** /api/users/me/favoritesPlayers | Ajoute un joueur aux favoris de l\'utilisateur connecté|
|
|
7
9
|
|[**changePassword**](#changepassword) | **PUT** /api/users/me/password | Modifie le mot de passe de l\'utilisateur connecté|
|
|
8
10
|
|[**getAllUsers**](#getallusers) | **GET** /api/users | Récupère la liste des utilisateurs avec filtres et pagination|
|
|
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é|
|
|
9
13
|
|[**getFrequentlyPlayedWith**](#getfrequentlyplayedwith) | **GET** /api/users/me/frequentlyPlayedWith | Joueurs avec lesquels l\'utilisateur a le plus joué (profils visibles)|
|
|
10
14
|
|[**getFrequentlyVisitedClub**](#getfrequentlyvisitedclub) | **GET** /api/users/me/frequentlyVisitedClub | Clubs les plus fréquemment visités par l\'utilisateur connecté|
|
|
11
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)|
|
|
12
17
|
|[**getUserCity**](#getusercity) | **GET** /api/users/me/city | Récupère la ville de l\'utilisateur connecté|
|
|
13
18
|
|[**getUserDescription**](#getuserdescription) | **GET** /api/users/me/description | Récupère la description de l\'utilisateur connecté|
|
|
14
19
|
|[**getUserInfo**](#getuserinfo) | **GET** /api/users/me | Récupère les informations de l\'utilisateur connecté|
|
|
15
20
|
|[**getUserProfileVisibility**](#getuserprofilevisibility) | **GET** /api/users/me/profile-visibility | Récupère la visibilité du profil de l\'utilisateur connecté|
|
|
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é|
|
|
16
23
|
|[**updateLevelBySports**](#updatelevelbysports) | **PUT** /api/users/me/level-by-sports | Met à jour le tableau levelBySports de l\'utilisateur connecté|
|
|
17
24
|
|[**updateProfilePicture**](#updateprofilepicture) | **PUT** /api/users/me/profile-picture | Met à jour l\'URL de la photo de profil de l\'utilisateur connecté|
|
|
18
25
|
|[**updateProfileVisibility**](#updateprofilevisibility) | **PUT** /api/users/me/profile-visibility | Met à jour la visibilité du profil de l\'utilisateur connecté|
|
|
@@ -20,6 +27,115 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
20
27
|
|[**updateUserCity**](#updateusercity) | **PUT** /api/users/me/city | Met à jour la ville de l\'utilisateur connecté|
|
|
21
28
|
|[**updateUserDescription**](#updateuserdescription) | **PUT** /api/users/me/description | Met à jour la description de l\'utilisateur connecté|
|
|
22
29
|
|
|
30
|
+
# **addFavoriteClub**
|
|
31
|
+
> FavoriteClubResponse addFavoriteClub(addFavoriteClubRequestBody)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Example
|
|
35
|
+
|
|
36
|
+
```typescript
|
|
37
|
+
import {
|
|
38
|
+
UserProfileApi,
|
|
39
|
+
Configuration,
|
|
40
|
+
AddFavoriteClubRequestBody
|
|
41
|
+
} from '@tennac-booking/sdk';
|
|
42
|
+
|
|
43
|
+
const configuration = new Configuration();
|
|
44
|
+
const apiInstance = new UserProfileApi(configuration);
|
|
45
|
+
|
|
46
|
+
let addFavoriteClubRequestBody: AddFavoriteClubRequestBody; //
|
|
47
|
+
|
|
48
|
+
const { status, data } = await apiInstance.addFavoriteClub(
|
|
49
|
+
addFavoriteClubRequestBody
|
|
50
|
+
);
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Parameters
|
|
54
|
+
|
|
55
|
+
|Name | Type | Description | Notes|
|
|
56
|
+
|------------- | ------------- | ------------- | -------------|
|
|
57
|
+
| **addFavoriteClubRequestBody** | **AddFavoriteClubRequestBody**| | |
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
### Return type
|
|
61
|
+
|
|
62
|
+
**FavoriteClubResponse**
|
|
63
|
+
|
|
64
|
+
### Authorization
|
|
65
|
+
|
|
66
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
67
|
+
|
|
68
|
+
### HTTP request headers
|
|
69
|
+
|
|
70
|
+
- **Content-Type**: application/json
|
|
71
|
+
- **Accept**: application/json
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
### HTTP response details
|
|
75
|
+
| Status code | Description | Response headers |
|
|
76
|
+
|-------------|-------------|------------------|
|
|
77
|
+
|**200** | Club added to favorites | - |
|
|
78
|
+
|**400** | Requête invalide | - |
|
|
79
|
+
|**401** | Non autorisé | - |
|
|
80
|
+
|**500** | Erreur serveur interne | - |
|
|
81
|
+
|
|
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)
|
|
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
|
+
|
|
23
139
|
# **changePassword**
|
|
24
140
|
> ChangePasswordResponse changePassword(changePasswordRequestBody)
|
|
25
141
|
|
|
@@ -133,6 +249,96 @@ const { status, data } = await apiInstance.getAllUsers(
|
|
|
133
249
|
|
|
134
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)
|
|
135
251
|
|
|
252
|
+
# **getFavoriteClubs**
|
|
253
|
+
> UserFavoriteClubsResponse getFavoriteClubs()
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
### Example
|
|
257
|
+
|
|
258
|
+
```typescript
|
|
259
|
+
import {
|
|
260
|
+
UserProfileApi,
|
|
261
|
+
Configuration
|
|
262
|
+
} from '@tennac-booking/sdk';
|
|
263
|
+
|
|
264
|
+
const configuration = new Configuration();
|
|
265
|
+
const apiInstance = new UserProfileApi(configuration);
|
|
266
|
+
|
|
267
|
+
const { status, data } = await apiInstance.getFavoriteClubs();
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
### Parameters
|
|
271
|
+
This endpoint does not have any parameters.
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
### Return type
|
|
275
|
+
|
|
276
|
+
**UserFavoriteClubsResponse**
|
|
277
|
+
|
|
278
|
+
### Authorization
|
|
279
|
+
|
|
280
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
281
|
+
|
|
282
|
+
### HTTP request headers
|
|
283
|
+
|
|
284
|
+
- **Content-Type**: Not defined
|
|
285
|
+
- **Accept**: application/json
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
### HTTP response details
|
|
289
|
+
| Status code | Description | Response headers |
|
|
290
|
+
|-------------|-------------|------------------|
|
|
291
|
+
|**200** | List of favorite clubs | - |
|
|
292
|
+
|**401** | Non autorisé | - |
|
|
293
|
+
|**500** | Erreur serveur interne | - |
|
|
294
|
+
|
|
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)
|
|
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
|
+
|
|
136
342
|
# **getFrequentlyPlayedWith**
|
|
137
343
|
> Array<FrequentlyPlayedWithItem> getFrequentlyPlayedWith()
|
|
138
344
|
|
|
@@ -269,6 +475,61 @@ This endpoint does not have any parameters.
|
|
|
269
475
|
|
|
270
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)
|
|
271
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\'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
|
+
|
|
272
533
|
# **getUserCity**
|
|
273
534
|
> UserCityResponse getUserCity()
|
|
274
535
|
|
|
@@ -453,6 +714,113 @@ This endpoint does not have any parameters.
|
|
|
453
714
|
|
|
454
715
|
[[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
716
|
|
|
717
|
+
# **removeFavoriteClub**
|
|
718
|
+
> FavoriteClubResponse removeFavoriteClub()
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
### Example
|
|
722
|
+
|
|
723
|
+
```typescript
|
|
724
|
+
import {
|
|
725
|
+
UserProfileApi,
|
|
726
|
+
Configuration
|
|
727
|
+
} from '@tennac-booking/sdk';
|
|
728
|
+
|
|
729
|
+
const configuration = new Configuration();
|
|
730
|
+
const apiInstance = new UserProfileApi(configuration);
|
|
731
|
+
|
|
732
|
+
let clubId: string; //ID of the club to remove from favorites (default to undefined)
|
|
733
|
+
|
|
734
|
+
const { status, data } = await apiInstance.removeFavoriteClub(
|
|
735
|
+
clubId
|
|
736
|
+
);
|
|
737
|
+
```
|
|
738
|
+
|
|
739
|
+
### Parameters
|
|
740
|
+
|
|
741
|
+
|Name | Type | Description | Notes|
|
|
742
|
+
|------------- | ------------- | ------------- | -------------|
|
|
743
|
+
| **clubId** | [**string**] | ID of the club to remove from favorites | defaults to undefined|
|
|
744
|
+
|
|
745
|
+
|
|
746
|
+
### Return type
|
|
747
|
+
|
|
748
|
+
**FavoriteClubResponse**
|
|
749
|
+
|
|
750
|
+
### Authorization
|
|
751
|
+
|
|
752
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
753
|
+
|
|
754
|
+
### HTTP request headers
|
|
755
|
+
|
|
756
|
+
- **Content-Type**: Not defined
|
|
757
|
+
- **Accept**: application/json
|
|
758
|
+
|
|
759
|
+
|
|
760
|
+
### HTTP response details
|
|
761
|
+
| Status code | Description | Response headers |
|
|
762
|
+
|-------------|-------------|------------------|
|
|
763
|
+
|**200** | Club removed from favorites | - |
|
|
764
|
+
|**400** | Requête invalide | - |
|
|
765
|
+
|**401** | Non autorisé | - |
|
|
766
|
+
|**500** | Erreur serveur interne | - |
|
|
767
|
+
|
|
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)
|
|
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
|
+
|
|
456
824
|
# **updateLevelBySports**
|
|
457
825
|
> UserResponse updateLevelBySports(updateLevelBySportsRequestBody)
|
|
458
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.
|
|
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).
|