@tennac-booking/sdk 1.0.13 → 1.0.15
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 +35 -12
- package/README.md +69 -60
- package/api.ts +3550 -3065
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +2164 -1751
- package/dist/api.js +2523 -2150
- 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 +2164 -1751
- package/dist/esm/api.js +2429 -2109
- 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/AdminClubSlotsApi.md +62 -0
- package/docs/AdminClubsApi.md +108 -0
- package/docs/ApiErrorResponse.md +1 -1
- package/docs/ChangePasswordResponse.md +1 -1
- package/docs/ClubInfoResponse.md +6 -6
- package/docs/ClubResponse.md +6 -6
- package/docs/ClubRoleResponse.md +6 -6
- package/docs/ClubSettings.md +7 -1
- package/docs/ClubsResponse.md +22 -0
- package/docs/CourtResponse.md +7 -7
- package/docs/CourtStatus.md +5 -2
- package/docs/CreateClubRequest.md +12 -10
- package/docs/CreateClubSettingsRequest.md +28 -0
- package/docs/CreateCourtRequest.md +2 -0
- package/docs/CreatePriceRequest.md +4 -4
- package/docs/CreateSportRequest.md +4 -0
- package/docs/CreateSubscriptionPlanRequest.md +3 -3
- package/docs/DeleteClubSettingsRequest.md +20 -0
- package/docs/{DeleteClub200Response.md → DeleteSlotsResponse.md} +3 -3
- package/docs/{GenerateSlotsForNextThreeWeeks201Response.md → DeleteSport200Response.md} +3 -3
- package/docs/GenerateSlotsResponse.md +20 -0
- package/docs/GetClubInfos200Response.md +30 -0
- package/docs/GetCourtsByClubAndSport200Response.md +26 -0
- package/docs/GetLastSixMonthsTurnover200ResponseInner.md +24 -0
- package/docs/GetNumberOfClubUsers200Response.md +20 -0
- package/docs/GetUserRolesResponseRolesInner.md +4 -6
- package/docs/GoogleSignInRequestBody.md +2 -2
- package/docs/GoogleSignInResponse.md +2 -8
- package/docs/{ClubCourtsApi.md → ManagerClubCourtsApi.md} +5 -5
- package/docs/{ClubRolesApi.md → ManagerClubRolesApi.md} +19 -19
- package/docs/ManagerClubSlotsApi.md +125 -0
- package/docs/{ClubSubscriptionsApi.md → ManagerClubSubscriptionsApi.md} +15 -15
- package/docs/{ClubsApi.md → ManagerClubsApi.md} +11 -209
- package/docs/ManagerSportsApi.md +119 -0
- package/docs/PriceResponse.md +2 -8
- package/docs/RefreshTokenResponse.md +2 -6
- package/docs/SlotResponse.md +2 -8
- package/docs/SportResponse.md +0 -2
- package/docs/{ClubSportsApi.md → StaffClubAnalyticsApi.md} +20 -27
- package/docs/StaffClubBookingsApi.md +59 -0
- package/docs/StaffClubSettingsApi.md +62 -0
- package/docs/StaffClubsApi.md +59 -0
- package/docs/StaffProfileApi.md +54 -0
- package/docs/StaffSportsApi.md +62 -0
- package/docs/SubscriptionPlanResponse.md +4 -8
- package/docs/UpdateClubSettingsRequest.md +28 -0
- package/docs/UpdateSportRequest.md +4 -0
- package/docs/UpdateSubscriptionPlanRequest.md +3 -3
- package/docs/UpdateSubscriptionPlanResponse.md +2 -2
- package/docs/UserApi.md +119 -0
- package/docs/{SportsApi.md → UserAuthenticationApi.md} +54 -57
- package/docs/{BookingsApi.md → UserBookingsApi.md} +32 -32
- package/docs/UserClubCourtsApi.md +64 -0
- package/docs/UserClubSlotsApi.md +181 -0
- package/docs/UserClubSportsApi.md +60 -0
- package/docs/UserClubsApi.md +53 -0
- package/docs/{ClubSettingsApi.md → UserProfileApi.md} +59 -62
- package/docs/UserResponse.md +8 -14
- package/docs/UserSubscriptionsApi.md +222 -0
- package/docs/UsersResponse.md +22 -0
- package/index.ts +1 -1
- package/package.json +32 -1
- package/docs/ClubSlotsApi.md +0 -353
- package/docs/UsersApi.md +0 -844
package/docs/UsersApi.md
DELETED
|
@@ -1,844 +0,0 @@
|
|
|
1
|
-
# UsersApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**cancelSubscription**](#cancelsubscription) | **DELETE** /api/users/me/subscriptions/{clubId}/{subscriptionId} | Annule un abonnement utilisateur|
|
|
8
|
-
|[**changePassword**](#changepassword) | **PUT** /api/users/me/password | Modifie le mot de passe de l\'utilisateur connecté|
|
|
9
|
-
|[**getAllUsers**](#getallusers) | **GET** /api/users | Récupère la liste des utilisateurs avec filtres et pagination|
|
|
10
|
-
|[**getUserInfo**](#getuserinfo) | **GET** /api/users/me | Récupère les informations de l\'utilisateur connecté|
|
|
11
|
-
|[**getUserRolesInClubs**](#getuserrolesinclubs) | **GET** /api/users/me/roles | Récupère les rôles de l\'utilisateur dans les clubs|
|
|
12
|
-
|[**getUserSubscriptions**](#getusersubscriptions) | **GET** /api/users/me/subscriptions | Récupère les abonnements de l\'utilisateur connecté|
|
|
13
|
-
|[**initiateSubscriptionSession**](#initiatesubscriptionsession) | **POST** /api/users/me/subscription-session | Initie une session d\'abonnement Stripe|
|
|
14
|
-
|[**login**](#login) | **POST** /api/users/login | Authentifie un utilisateur|
|
|
15
|
-
|[**refreshToken**](#refreshtoken) | **POST** /api/users/refresh-token | Rafraîchit le token d\'accès|
|
|
16
|
-
|[**register**](#register) | **POST** /api/users | Crée un nouvel utilisateur|
|
|
17
|
-
|[**resumeSubscription**](#resumesubscription) | **POST** /api/users/me/subscriptions/{clubId}/{subscriptionId}/resume | Réactive un abonnement utilisateur|
|
|
18
|
-
|[**signInOrSignUpWithGoogle**](#signinorsignupwithgoogle) | **POST** /api/users/googleSignin | Authentifie ou crée un utilisateur via Google OAuth|
|
|
19
|
-
|[**subscribeToClub**](#subscribetoclub) | **POST** /api/users/me/subscribe | Abonne l\'utilisateur connecté à un club|
|
|
20
|
-
|[**updateCustomer**](#updatecustomer) | **PUT** /api/users/me/customer | Met à jour le Customer Stripe de l\'utilisateur|
|
|
21
|
-
|[**updateUser**](#updateuser) | **PUT** /api/users/me | Met à jour les données de l\'utilisateur connecté|
|
|
22
|
-
|
|
23
|
-
# **cancelSubscription**
|
|
24
|
-
> SubscriptionResponse cancelSubscription()
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
### Example
|
|
28
|
-
|
|
29
|
-
```typescript
|
|
30
|
-
import {
|
|
31
|
-
UsersApi,
|
|
32
|
-
Configuration
|
|
33
|
-
} from '@tennac-booking/sdk';
|
|
34
|
-
|
|
35
|
-
const configuration = new Configuration();
|
|
36
|
-
const apiInstance = new UsersApi(configuration);
|
|
37
|
-
|
|
38
|
-
let clubId: string; //ID du club (default to undefined)
|
|
39
|
-
let subscriptionId: string; //ID de l\'abonnement à annuler (default to undefined)
|
|
40
|
-
|
|
41
|
-
const { status, data } = await apiInstance.cancelSubscription(
|
|
42
|
-
clubId,
|
|
43
|
-
subscriptionId
|
|
44
|
-
);
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
### Parameters
|
|
48
|
-
|
|
49
|
-
|Name | Type | Description | Notes|
|
|
50
|
-
|------------- | ------------- | ------------- | -------------|
|
|
51
|
-
| **clubId** | [**string**] | ID du club | defaults to undefined|
|
|
52
|
-
| **subscriptionId** | [**string**] | ID de l\'abonnement à annuler | defaults to undefined|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
### Return type
|
|
56
|
-
|
|
57
|
-
**SubscriptionResponse**
|
|
58
|
-
|
|
59
|
-
### Authorization
|
|
60
|
-
|
|
61
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
62
|
-
|
|
63
|
-
### HTTP request headers
|
|
64
|
-
|
|
65
|
-
- **Content-Type**: Not defined
|
|
66
|
-
- **Accept**: application/json
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
### HTTP response details
|
|
70
|
-
| Status code | Description | Response headers |
|
|
71
|
-
|-------------|-------------|------------------|
|
|
72
|
-
|**200** | Abonnement annulé | - |
|
|
73
|
-
|**400** | Requête invalide | - |
|
|
74
|
-
|**401** | Non autorisé | - |
|
|
75
|
-
|**500** | Erreur serveur interne | - |
|
|
76
|
-
|
|
77
|
-
[[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)
|
|
78
|
-
|
|
79
|
-
# **changePassword**
|
|
80
|
-
> ChangePasswordResponse changePassword(changePasswordRequestBody)
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
### Example
|
|
84
|
-
|
|
85
|
-
```typescript
|
|
86
|
-
import {
|
|
87
|
-
UsersApi,
|
|
88
|
-
Configuration,
|
|
89
|
-
ChangePasswordRequestBody
|
|
90
|
-
} from '@tennac-booking/sdk';
|
|
91
|
-
|
|
92
|
-
const configuration = new Configuration();
|
|
93
|
-
const apiInstance = new UsersApi(configuration);
|
|
94
|
-
|
|
95
|
-
let changePasswordRequestBody: ChangePasswordRequestBody; //
|
|
96
|
-
|
|
97
|
-
const { status, data } = await apiInstance.changePassword(
|
|
98
|
-
changePasswordRequestBody
|
|
99
|
-
);
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
### Parameters
|
|
103
|
-
|
|
104
|
-
|Name | Type | Description | Notes|
|
|
105
|
-
|------------- | ------------- | ------------- | -------------|
|
|
106
|
-
| **changePasswordRequestBody** | **ChangePasswordRequestBody**| | |
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
### Return type
|
|
110
|
-
|
|
111
|
-
**ChangePasswordResponse**
|
|
112
|
-
|
|
113
|
-
### Authorization
|
|
114
|
-
|
|
115
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
116
|
-
|
|
117
|
-
### HTTP request headers
|
|
118
|
-
|
|
119
|
-
- **Content-Type**: application/json
|
|
120
|
-
- **Accept**: application/json
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
### HTTP response details
|
|
124
|
-
| Status code | Description | Response headers |
|
|
125
|
-
|-------------|-------------|------------------|
|
|
126
|
-
|**200** | Mot de passe modifié | - |
|
|
127
|
-
|**400** | Requête invalide | - |
|
|
128
|
-
|**401** | Non autorisé | - |
|
|
129
|
-
|**404** | Ressource non trouvée | - |
|
|
130
|
-
|**500** | Erreur serveur interne | - |
|
|
131
|
-
|
|
132
|
-
[[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)
|
|
133
|
-
|
|
134
|
-
# **getAllUsers**
|
|
135
|
-
> Array<UserResponse> getAllUsers()
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
### Example
|
|
139
|
-
|
|
140
|
-
```typescript
|
|
141
|
-
import {
|
|
142
|
-
UsersApi,
|
|
143
|
-
Configuration
|
|
144
|
-
} from '@tennac-booking/sdk';
|
|
145
|
-
|
|
146
|
-
const configuration = new Configuration();
|
|
147
|
-
const apiInstance = new UsersApi(configuration);
|
|
148
|
-
|
|
149
|
-
let limit: number; //Nombre maximum d\'utilisateurs à retourner (optional) (default to 20)
|
|
150
|
-
let skip: number; //Nombre d\'utilisateurs à ignorer (pagination) (optional) (default to 0)
|
|
151
|
-
let search: string; //Recherche dans firstName, lastName, email (optional) (default to undefined)
|
|
152
|
-
let sport: string; //Filtre par sport (optional) (default to undefined)
|
|
153
|
-
let matchType: string; //Filtre par type de match (optional) (default to undefined)
|
|
154
|
-
let niveau: string; //Filtre par niveau (optional) (default to undefined)
|
|
155
|
-
let rank: string; //Filtre par rang (optional) (default to undefined)
|
|
156
|
-
let isLookingForPartner: 'true' | 'false'; //Filtre par disponibilité pour partenaire (optional) (default to undefined)
|
|
157
|
-
let username: string; //Filtre par nom d\'utilisateur (optional) (default to undefined)
|
|
158
|
-
let email: string; //Filtre par email (optional) (default to undefined)
|
|
159
|
-
let description: string; //Filtre par description (optional) (default to undefined)
|
|
160
|
-
let gender: string; //Filtre par genre (optional) (default to undefined)
|
|
161
|
-
|
|
162
|
-
const { status, data } = await apiInstance.getAllUsers(
|
|
163
|
-
limit,
|
|
164
|
-
skip,
|
|
165
|
-
search,
|
|
166
|
-
sport,
|
|
167
|
-
matchType,
|
|
168
|
-
niveau,
|
|
169
|
-
rank,
|
|
170
|
-
isLookingForPartner,
|
|
171
|
-
username,
|
|
172
|
-
email,
|
|
173
|
-
description,
|
|
174
|
-
gender
|
|
175
|
-
);
|
|
176
|
-
```
|
|
177
|
-
|
|
178
|
-
### Parameters
|
|
179
|
-
|
|
180
|
-
|Name | Type | Description | Notes|
|
|
181
|
-
|------------- | ------------- | ------------- | -------------|
|
|
182
|
-
| **limit** | [**number**] | Nombre maximum d\'utilisateurs à retourner | (optional) defaults to 20|
|
|
183
|
-
| **skip** | [**number**] | Nombre d\'utilisateurs à ignorer (pagination) | (optional) defaults to 0|
|
|
184
|
-
| **search** | [**string**] | Recherche dans firstName, lastName, email | (optional) defaults to undefined|
|
|
185
|
-
| **sport** | [**string**] | Filtre par sport | (optional) defaults to undefined|
|
|
186
|
-
| **matchType** | [**string**] | Filtre par type de match | (optional) defaults to undefined|
|
|
187
|
-
| **niveau** | [**string**] | Filtre par niveau | (optional) defaults to undefined|
|
|
188
|
-
| **rank** | [**string**] | Filtre par rang | (optional) defaults to undefined|
|
|
189
|
-
| **isLookingForPartner** | [**'true' | 'false'**]**Array<'true' | 'false'>** | Filtre par disponibilité pour partenaire | (optional) defaults to undefined|
|
|
190
|
-
| **username** | [**string**] | Filtre par nom d\'utilisateur | (optional) defaults to undefined|
|
|
191
|
-
| **email** | [**string**] | Filtre par email | (optional) defaults to undefined|
|
|
192
|
-
| **description** | [**string**] | Filtre par description | (optional) defaults to undefined|
|
|
193
|
-
| **gender** | [**string**] | Filtre par genre | (optional) defaults to undefined|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
### Return type
|
|
197
|
-
|
|
198
|
-
**Array<UserResponse>**
|
|
199
|
-
|
|
200
|
-
### Authorization
|
|
201
|
-
|
|
202
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
203
|
-
|
|
204
|
-
### HTTP request headers
|
|
205
|
-
|
|
206
|
-
- **Content-Type**: Not defined
|
|
207
|
-
- **Accept**: application/json
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
### HTTP response details
|
|
211
|
-
| Status code | Description | Response headers |
|
|
212
|
-
|-------------|-------------|------------------|
|
|
213
|
-
|**200** | Liste des utilisateurs | - |
|
|
214
|
-
|**401** | Non autorisé | - |
|
|
215
|
-
|**500** | Erreur serveur interne | - |
|
|
216
|
-
|
|
217
|
-
[[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)
|
|
218
|
-
|
|
219
|
-
# **getUserInfo**
|
|
220
|
-
> UserResponse getUserInfo()
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
### Example
|
|
224
|
-
|
|
225
|
-
```typescript
|
|
226
|
-
import {
|
|
227
|
-
UsersApi,
|
|
228
|
-
Configuration
|
|
229
|
-
} from '@tennac-booking/sdk';
|
|
230
|
-
|
|
231
|
-
const configuration = new Configuration();
|
|
232
|
-
const apiInstance = new UsersApi(configuration);
|
|
233
|
-
|
|
234
|
-
const { status, data } = await apiInstance.getUserInfo();
|
|
235
|
-
```
|
|
236
|
-
|
|
237
|
-
### Parameters
|
|
238
|
-
This endpoint does not have any parameters.
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
### Return type
|
|
242
|
-
|
|
243
|
-
**UserResponse**
|
|
244
|
-
|
|
245
|
-
### Authorization
|
|
246
|
-
|
|
247
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
248
|
-
|
|
249
|
-
### HTTP request headers
|
|
250
|
-
|
|
251
|
-
- **Content-Type**: Not defined
|
|
252
|
-
- **Accept**: application/json
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
### HTTP response details
|
|
256
|
-
| Status code | Description | Response headers |
|
|
257
|
-
|-------------|-------------|------------------|
|
|
258
|
-
|**200** | Informations de l\'utilisateur | - |
|
|
259
|
-
|**401** | Non autorisé | - |
|
|
260
|
-
|**404** | Ressource non trouvée | - |
|
|
261
|
-
|**500** | Erreur serveur interne | - |
|
|
262
|
-
|
|
263
|
-
[[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)
|
|
264
|
-
|
|
265
|
-
# **getUserRolesInClubs**
|
|
266
|
-
> GetUserRolesResponse getUserRolesInClubs()
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
### Example
|
|
270
|
-
|
|
271
|
-
```typescript
|
|
272
|
-
import {
|
|
273
|
-
UsersApi,
|
|
274
|
-
Configuration
|
|
275
|
-
} from '@tennac-booking/sdk';
|
|
276
|
-
|
|
277
|
-
const configuration = new Configuration();
|
|
278
|
-
const apiInstance = new UsersApi(configuration);
|
|
279
|
-
|
|
280
|
-
const { status, data } = await apiInstance.getUserRolesInClubs();
|
|
281
|
-
```
|
|
282
|
-
|
|
283
|
-
### Parameters
|
|
284
|
-
This endpoint does not have any parameters.
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
### Return type
|
|
288
|
-
|
|
289
|
-
**GetUserRolesResponse**
|
|
290
|
-
|
|
291
|
-
### Authorization
|
|
292
|
-
|
|
293
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
294
|
-
|
|
295
|
-
### HTTP request headers
|
|
296
|
-
|
|
297
|
-
- **Content-Type**: Not defined
|
|
298
|
-
- **Accept**: application/json
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
### HTTP response details
|
|
302
|
-
| Status code | Description | Response headers |
|
|
303
|
-
|-------------|-------------|------------------|
|
|
304
|
-
|**200** | Liste des rôles dans les clubs | - |
|
|
305
|
-
|**400** | Requête invalide | - |
|
|
306
|
-
|**401** | Non autorisé | - |
|
|
307
|
-
|**500** | Erreur serveur interne | - |
|
|
308
|
-
|
|
309
|
-
[[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)
|
|
310
|
-
|
|
311
|
-
# **getUserSubscriptions**
|
|
312
|
-
> GetUserSubscriptionsResponse getUserSubscriptions()
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
### Example
|
|
316
|
-
|
|
317
|
-
```typescript
|
|
318
|
-
import {
|
|
319
|
-
UsersApi,
|
|
320
|
-
Configuration
|
|
321
|
-
} from '@tennac-booking/sdk';
|
|
322
|
-
|
|
323
|
-
const configuration = new Configuration();
|
|
324
|
-
const apiInstance = new UsersApi(configuration);
|
|
325
|
-
|
|
326
|
-
const { status, data } = await apiInstance.getUserSubscriptions();
|
|
327
|
-
```
|
|
328
|
-
|
|
329
|
-
### Parameters
|
|
330
|
-
This endpoint does not have any parameters.
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
### Return type
|
|
334
|
-
|
|
335
|
-
**GetUserSubscriptionsResponse**
|
|
336
|
-
|
|
337
|
-
### Authorization
|
|
338
|
-
|
|
339
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
340
|
-
|
|
341
|
-
### HTTP request headers
|
|
342
|
-
|
|
343
|
-
- **Content-Type**: Not defined
|
|
344
|
-
- **Accept**: application/json
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
### HTTP response details
|
|
348
|
-
| Status code | Description | Response headers |
|
|
349
|
-
|-------------|-------------|------------------|
|
|
350
|
-
|**200** | Liste des abonnements | - |
|
|
351
|
-
|**401** | Non autorisé | - |
|
|
352
|
-
|**500** | Erreur serveur interne | - |
|
|
353
|
-
|
|
354
|
-
[[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)
|
|
355
|
-
|
|
356
|
-
# **initiateSubscriptionSession**
|
|
357
|
-
> InitiateSubscriptionSessionResponse initiateSubscriptionSession(initiateSubscriptionSessionRequestBody)
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
### Example
|
|
361
|
-
|
|
362
|
-
```typescript
|
|
363
|
-
import {
|
|
364
|
-
UsersApi,
|
|
365
|
-
Configuration,
|
|
366
|
-
InitiateSubscriptionSessionRequestBody
|
|
367
|
-
} from '@tennac-booking/sdk';
|
|
368
|
-
|
|
369
|
-
const configuration = new Configuration();
|
|
370
|
-
const apiInstance = new UsersApi(configuration);
|
|
371
|
-
|
|
372
|
-
let initiateSubscriptionSessionRequestBody: InitiateSubscriptionSessionRequestBody; //
|
|
373
|
-
|
|
374
|
-
const { status, data } = await apiInstance.initiateSubscriptionSession(
|
|
375
|
-
initiateSubscriptionSessionRequestBody
|
|
376
|
-
);
|
|
377
|
-
```
|
|
378
|
-
|
|
379
|
-
### Parameters
|
|
380
|
-
|
|
381
|
-
|Name | Type | Description | Notes|
|
|
382
|
-
|------------- | ------------- | ------------- | -------------|
|
|
383
|
-
| **initiateSubscriptionSessionRequestBody** | **InitiateSubscriptionSessionRequestBody**| | |
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
### Return type
|
|
387
|
-
|
|
388
|
-
**InitiateSubscriptionSessionResponse**
|
|
389
|
-
|
|
390
|
-
### Authorization
|
|
391
|
-
|
|
392
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
393
|
-
|
|
394
|
-
### HTTP request headers
|
|
395
|
-
|
|
396
|
-
- **Content-Type**: application/json
|
|
397
|
-
- **Accept**: application/json
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
### HTTP response details
|
|
401
|
-
| Status code | Description | Response headers |
|
|
402
|
-
|-------------|-------------|------------------|
|
|
403
|
-
|**200** | Session d\'abonnement créée | - |
|
|
404
|
-
|**400** | Requête invalide | - |
|
|
405
|
-
|**401** | Non autorisé | - |
|
|
406
|
-
|**500** | Erreur serveur interne | - |
|
|
407
|
-
|
|
408
|
-
[[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)
|
|
409
|
-
|
|
410
|
-
# **login**
|
|
411
|
-
> LoginResponse login(loginRequestBody)
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
### Example
|
|
415
|
-
|
|
416
|
-
```typescript
|
|
417
|
-
import {
|
|
418
|
-
UsersApi,
|
|
419
|
-
Configuration,
|
|
420
|
-
LoginRequestBody
|
|
421
|
-
} from '@tennac-booking/sdk';
|
|
422
|
-
|
|
423
|
-
const configuration = new Configuration();
|
|
424
|
-
const apiInstance = new UsersApi(configuration);
|
|
425
|
-
|
|
426
|
-
let loginRequestBody: LoginRequestBody; //
|
|
427
|
-
|
|
428
|
-
const { status, data } = await apiInstance.login(
|
|
429
|
-
loginRequestBody
|
|
430
|
-
);
|
|
431
|
-
```
|
|
432
|
-
|
|
433
|
-
### Parameters
|
|
434
|
-
|
|
435
|
-
|Name | Type | Description | Notes|
|
|
436
|
-
|------------- | ------------- | ------------- | -------------|
|
|
437
|
-
| **loginRequestBody** | **LoginRequestBody**| | |
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
### Return type
|
|
441
|
-
|
|
442
|
-
**LoginResponse**
|
|
443
|
-
|
|
444
|
-
### Authorization
|
|
445
|
-
|
|
446
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
447
|
-
|
|
448
|
-
### HTTP request headers
|
|
449
|
-
|
|
450
|
-
- **Content-Type**: application/json
|
|
451
|
-
- **Accept**: application/json
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
### HTTP response details
|
|
455
|
-
| Status code | Description | Response headers |
|
|
456
|
-
|-------------|-------------|------------------|
|
|
457
|
-
|**200** | Authentification réussie | - |
|
|
458
|
-
|**400** | Requête invalide | - |
|
|
459
|
-
|**401** | Non autorisé | - |
|
|
460
|
-
|**500** | Erreur serveur interne | - |
|
|
461
|
-
|
|
462
|
-
[[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)
|
|
463
|
-
|
|
464
|
-
# **refreshToken**
|
|
465
|
-
> RefreshTokenResponse refreshToken(refreshTokenRequestBody)
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
### Example
|
|
469
|
-
|
|
470
|
-
```typescript
|
|
471
|
-
import {
|
|
472
|
-
UsersApi,
|
|
473
|
-
Configuration,
|
|
474
|
-
RefreshTokenRequestBody
|
|
475
|
-
} from '@tennac-booking/sdk';
|
|
476
|
-
|
|
477
|
-
const configuration = new Configuration();
|
|
478
|
-
const apiInstance = new UsersApi(configuration);
|
|
479
|
-
|
|
480
|
-
let refreshTokenRequestBody: RefreshTokenRequestBody; //
|
|
481
|
-
|
|
482
|
-
const { status, data } = await apiInstance.refreshToken(
|
|
483
|
-
refreshTokenRequestBody
|
|
484
|
-
);
|
|
485
|
-
```
|
|
486
|
-
|
|
487
|
-
### Parameters
|
|
488
|
-
|
|
489
|
-
|Name | Type | Description | Notes|
|
|
490
|
-
|------------- | ------------- | ------------- | -------------|
|
|
491
|
-
| **refreshTokenRequestBody** | **RefreshTokenRequestBody**| | |
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
### Return type
|
|
495
|
-
|
|
496
|
-
**RefreshTokenResponse**
|
|
497
|
-
|
|
498
|
-
### Authorization
|
|
499
|
-
|
|
500
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
501
|
-
|
|
502
|
-
### HTTP request headers
|
|
503
|
-
|
|
504
|
-
- **Content-Type**: application/json
|
|
505
|
-
- **Accept**: application/json
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
### HTTP response details
|
|
509
|
-
| Status code | Description | Response headers |
|
|
510
|
-
|-------------|-------------|------------------|
|
|
511
|
-
|**200** | Nouveaux tokens | - |
|
|
512
|
-
|**400** | Requête invalide | - |
|
|
513
|
-
|**401** | Non autorisé | - |
|
|
514
|
-
|**500** | Erreur serveur interne | - |
|
|
515
|
-
|
|
516
|
-
[[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)
|
|
517
|
-
|
|
518
|
-
# **register**
|
|
519
|
-
> UserResponse register(registerRequestBody)
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
### Example
|
|
523
|
-
|
|
524
|
-
```typescript
|
|
525
|
-
import {
|
|
526
|
-
UsersApi,
|
|
527
|
-
Configuration,
|
|
528
|
-
RegisterRequestBody
|
|
529
|
-
} from '@tennac-booking/sdk';
|
|
530
|
-
|
|
531
|
-
const configuration = new Configuration();
|
|
532
|
-
const apiInstance = new UsersApi(configuration);
|
|
533
|
-
|
|
534
|
-
let registerRequestBody: RegisterRequestBody; //
|
|
535
|
-
|
|
536
|
-
const { status, data } = await apiInstance.register(
|
|
537
|
-
registerRequestBody
|
|
538
|
-
);
|
|
539
|
-
```
|
|
540
|
-
|
|
541
|
-
### Parameters
|
|
542
|
-
|
|
543
|
-
|Name | Type | Description | Notes|
|
|
544
|
-
|------------- | ------------- | ------------- | -------------|
|
|
545
|
-
| **registerRequestBody** | **RegisterRequestBody**| | |
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
### Return type
|
|
549
|
-
|
|
550
|
-
**UserResponse**
|
|
551
|
-
|
|
552
|
-
### Authorization
|
|
553
|
-
|
|
554
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
555
|
-
|
|
556
|
-
### HTTP request headers
|
|
557
|
-
|
|
558
|
-
- **Content-Type**: application/json
|
|
559
|
-
- **Accept**: application/json
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
### HTTP response details
|
|
563
|
-
| Status code | Description | Response headers |
|
|
564
|
-
|-------------|-------------|------------------|
|
|
565
|
-
|**201** | Utilisateur créé | - |
|
|
566
|
-
|**400** | Requête invalide | - |
|
|
567
|
-
|**409** | Email déjà utilisé | - |
|
|
568
|
-
|**500** | Erreur serveur interne | - |
|
|
569
|
-
|
|
570
|
-
[[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)
|
|
571
|
-
|
|
572
|
-
# **resumeSubscription**
|
|
573
|
-
> SubscriptionResponse resumeSubscription()
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
### Example
|
|
577
|
-
|
|
578
|
-
```typescript
|
|
579
|
-
import {
|
|
580
|
-
UsersApi,
|
|
581
|
-
Configuration
|
|
582
|
-
} from '@tennac-booking/sdk';
|
|
583
|
-
|
|
584
|
-
const configuration = new Configuration();
|
|
585
|
-
const apiInstance = new UsersApi(configuration);
|
|
586
|
-
|
|
587
|
-
let clubId: string; //ID du club (default to undefined)
|
|
588
|
-
let subscriptionId: string; //ID de l\'abonnement à réactiver (default to undefined)
|
|
589
|
-
|
|
590
|
-
const { status, data } = await apiInstance.resumeSubscription(
|
|
591
|
-
clubId,
|
|
592
|
-
subscriptionId
|
|
593
|
-
);
|
|
594
|
-
```
|
|
595
|
-
|
|
596
|
-
### Parameters
|
|
597
|
-
|
|
598
|
-
|Name | Type | Description | Notes|
|
|
599
|
-
|------------- | ------------- | ------------- | -------------|
|
|
600
|
-
| **clubId** | [**string**] | ID du club | defaults to undefined|
|
|
601
|
-
| **subscriptionId** | [**string**] | ID de l\'abonnement à réactiver | defaults to undefined|
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
### Return type
|
|
605
|
-
|
|
606
|
-
**SubscriptionResponse**
|
|
607
|
-
|
|
608
|
-
### Authorization
|
|
609
|
-
|
|
610
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
611
|
-
|
|
612
|
-
### HTTP request headers
|
|
613
|
-
|
|
614
|
-
- **Content-Type**: Not defined
|
|
615
|
-
- **Accept**: application/json
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
### HTTP response details
|
|
619
|
-
| Status code | Description | Response headers |
|
|
620
|
-
|-------------|-------------|------------------|
|
|
621
|
-
|**200** | Abonnement réactivé | - |
|
|
622
|
-
|**400** | Requête invalide | - |
|
|
623
|
-
|**401** | Non autorisé | - |
|
|
624
|
-
|**500** | Erreur serveur interne | - |
|
|
625
|
-
|
|
626
|
-
[[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)
|
|
627
|
-
|
|
628
|
-
# **signInOrSignUpWithGoogle**
|
|
629
|
-
> GoogleSignInResponse signInOrSignUpWithGoogle(googleSignInRequestBody)
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
### Example
|
|
633
|
-
|
|
634
|
-
```typescript
|
|
635
|
-
import {
|
|
636
|
-
UsersApi,
|
|
637
|
-
Configuration,
|
|
638
|
-
GoogleSignInRequestBody
|
|
639
|
-
} from '@tennac-booking/sdk';
|
|
640
|
-
|
|
641
|
-
const configuration = new Configuration();
|
|
642
|
-
const apiInstance = new UsersApi(configuration);
|
|
643
|
-
|
|
644
|
-
let googleSignInRequestBody: GoogleSignInRequestBody; //
|
|
645
|
-
|
|
646
|
-
const { status, data } = await apiInstance.signInOrSignUpWithGoogle(
|
|
647
|
-
googleSignInRequestBody
|
|
648
|
-
);
|
|
649
|
-
```
|
|
650
|
-
|
|
651
|
-
### Parameters
|
|
652
|
-
|
|
653
|
-
|Name | Type | Description | Notes|
|
|
654
|
-
|------------- | ------------- | ------------- | -------------|
|
|
655
|
-
| **googleSignInRequestBody** | **GoogleSignInRequestBody**| | |
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
### Return type
|
|
659
|
-
|
|
660
|
-
**GoogleSignInResponse**
|
|
661
|
-
|
|
662
|
-
### Authorization
|
|
663
|
-
|
|
664
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
665
|
-
|
|
666
|
-
### HTTP request headers
|
|
667
|
-
|
|
668
|
-
- **Content-Type**: application/json
|
|
669
|
-
- **Accept**: application/json
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
### HTTP response details
|
|
673
|
-
| Status code | Description | Response headers |
|
|
674
|
-
|-------------|-------------|------------------|
|
|
675
|
-
|**200** | Authentification Google réussie | - |
|
|
676
|
-
|**400** | Requête invalide | - |
|
|
677
|
-
|**500** | Erreur serveur interne | - |
|
|
678
|
-
|
|
679
|
-
[[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)
|
|
680
|
-
|
|
681
|
-
# **subscribeToClub**
|
|
682
|
-
> SubscriptionResponse subscribeToClub(subscribeToClubRequestBody)
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
### Example
|
|
686
|
-
|
|
687
|
-
```typescript
|
|
688
|
-
import {
|
|
689
|
-
UsersApi,
|
|
690
|
-
Configuration,
|
|
691
|
-
SubscribeToClubRequestBody
|
|
692
|
-
} from '@tennac-booking/sdk';
|
|
693
|
-
|
|
694
|
-
const configuration = new Configuration();
|
|
695
|
-
const apiInstance = new UsersApi(configuration);
|
|
696
|
-
|
|
697
|
-
let subscribeToClubRequestBody: SubscribeToClubRequestBody; //
|
|
698
|
-
|
|
699
|
-
const { status, data } = await apiInstance.subscribeToClub(
|
|
700
|
-
subscribeToClubRequestBody
|
|
701
|
-
);
|
|
702
|
-
```
|
|
703
|
-
|
|
704
|
-
### Parameters
|
|
705
|
-
|
|
706
|
-
|Name | Type | Description | Notes|
|
|
707
|
-
|------------- | ------------- | ------------- | -------------|
|
|
708
|
-
| **subscribeToClubRequestBody** | **SubscribeToClubRequestBody**| | |
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
### Return type
|
|
712
|
-
|
|
713
|
-
**SubscriptionResponse**
|
|
714
|
-
|
|
715
|
-
### Authorization
|
|
716
|
-
|
|
717
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
718
|
-
|
|
719
|
-
### HTTP request headers
|
|
720
|
-
|
|
721
|
-
- **Content-Type**: application/json
|
|
722
|
-
- **Accept**: application/json
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
### HTTP response details
|
|
726
|
-
| Status code | Description | Response headers |
|
|
727
|
-
|-------------|-------------|------------------|
|
|
728
|
-
|**201** | Abonnement créé | - |
|
|
729
|
-
|**400** | Requête invalide | - |
|
|
730
|
-
|**401** | Non autorisé | - |
|
|
731
|
-
|**404** | Ressource non trouvée | - |
|
|
732
|
-
|**500** | Erreur serveur interne | - |
|
|
733
|
-
|
|
734
|
-
[[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)
|
|
735
|
-
|
|
736
|
-
# **updateCustomer**
|
|
737
|
-
> UpdateCustomerResponse updateCustomer(updateCustomerRequestBody)
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
### Example
|
|
741
|
-
|
|
742
|
-
```typescript
|
|
743
|
-
import {
|
|
744
|
-
UsersApi,
|
|
745
|
-
Configuration,
|
|
746
|
-
UpdateCustomerRequestBody
|
|
747
|
-
} from '@tennac-booking/sdk';
|
|
748
|
-
|
|
749
|
-
const configuration = new Configuration();
|
|
750
|
-
const apiInstance = new UsersApi(configuration);
|
|
751
|
-
|
|
752
|
-
let updateCustomerRequestBody: UpdateCustomerRequestBody; //
|
|
753
|
-
|
|
754
|
-
const { status, data } = await apiInstance.updateCustomer(
|
|
755
|
-
updateCustomerRequestBody
|
|
756
|
-
);
|
|
757
|
-
```
|
|
758
|
-
|
|
759
|
-
### Parameters
|
|
760
|
-
|
|
761
|
-
|Name | Type | Description | Notes|
|
|
762
|
-
|------------- | ------------- | ------------- | -------------|
|
|
763
|
-
| **updateCustomerRequestBody** | **UpdateCustomerRequestBody**| | |
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
### Return type
|
|
767
|
-
|
|
768
|
-
**UpdateCustomerResponse**
|
|
769
|
-
|
|
770
|
-
### Authorization
|
|
771
|
-
|
|
772
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
773
|
-
|
|
774
|
-
### HTTP request headers
|
|
775
|
-
|
|
776
|
-
- **Content-Type**: application/json
|
|
777
|
-
- **Accept**: application/json
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
### HTTP response details
|
|
781
|
-
| Status code | Description | Response headers |
|
|
782
|
-
|-------------|-------------|------------------|
|
|
783
|
-
|**200** | Customer mis à jour | - |
|
|
784
|
-
|**400** | Requête invalide | - |
|
|
785
|
-
|**401** | Non autorisé | - |
|
|
786
|
-
|**404** | Ressource non trouvée | - |
|
|
787
|
-
|**500** | Erreur serveur interne | - |
|
|
788
|
-
|
|
789
|
-
[[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)
|
|
790
|
-
|
|
791
|
-
# **updateUser**
|
|
792
|
-
> UserResponse updateUser(updateUserRequestBody)
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
### Example
|
|
796
|
-
|
|
797
|
-
```typescript
|
|
798
|
-
import {
|
|
799
|
-
UsersApi,
|
|
800
|
-
Configuration,
|
|
801
|
-
UpdateUserRequestBody
|
|
802
|
-
} from '@tennac-booking/sdk';
|
|
803
|
-
|
|
804
|
-
const configuration = new Configuration();
|
|
805
|
-
const apiInstance = new UsersApi(configuration);
|
|
806
|
-
|
|
807
|
-
let updateUserRequestBody: UpdateUserRequestBody; //
|
|
808
|
-
|
|
809
|
-
const { status, data } = await apiInstance.updateUser(
|
|
810
|
-
updateUserRequestBody
|
|
811
|
-
);
|
|
812
|
-
```
|
|
813
|
-
|
|
814
|
-
### Parameters
|
|
815
|
-
|
|
816
|
-
|Name | Type | Description | Notes|
|
|
817
|
-
|------------- | ------------- | ------------- | -------------|
|
|
818
|
-
| **updateUserRequestBody** | **UpdateUserRequestBody**| | |
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
### Return type
|
|
822
|
-
|
|
823
|
-
**UserResponse**
|
|
824
|
-
|
|
825
|
-
### Authorization
|
|
826
|
-
|
|
827
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
828
|
-
|
|
829
|
-
### HTTP request headers
|
|
830
|
-
|
|
831
|
-
- **Content-Type**: application/json
|
|
832
|
-
- **Accept**: application/json
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
### HTTP response details
|
|
836
|
-
| Status code | Description | Response headers |
|
|
837
|
-
|-------------|-------------|------------------|
|
|
838
|
-
|**200** | Utilisateur mis à jour | - |
|
|
839
|
-
|**400** | Requête invalide | - |
|
|
840
|
-
|**401** | Non autorisé | - |
|
|
841
|
-
|**500** | Erreur serveur interne | - |
|
|
842
|
-
|
|
843
|
-
[[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)
|
|
844
|
-
|