@tennac-booking/sdk 1.0.13 → 1.0.14

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.
Files changed (88) hide show
  1. package/.openapi-generator/FILES +29 -5
  2. package/README.md +58 -49
  3. package/api.ts +3581 -3057
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +2134 -1695
  8. package/dist/api.js +2693 -2281
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +2134 -1695
  16. package/dist/esm/api.js +2435 -2081
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/AdminClubSlotsApi.md +62 -0
  28. package/docs/AdminClubsApi.md +108 -0
  29. package/docs/ApiErrorResponse.md +1 -1
  30. package/docs/BookingsApi.md +4 -60
  31. package/docs/ChangePasswordResponse.md +1 -1
  32. package/docs/{ClubSportsApi.md → ClubAnalyticsApi.md} +20 -27
  33. package/docs/ClubBookingsApi.md +59 -0
  34. package/docs/ClubInfoResponse.md +6 -6
  35. package/docs/ClubResponse.md +6 -6
  36. package/docs/ClubRoleResponse.md +6 -6
  37. package/docs/ClubRolesApi.md +8 -8
  38. package/docs/ClubSettings.md +7 -1
  39. package/docs/ClubSlotsApi.md +0 -225
  40. package/docs/ClubsApi.md +6 -425
  41. package/docs/ClubsResponse.md +22 -0
  42. package/docs/CourtResponse.md +7 -7
  43. package/docs/CourtStatus.md +5 -2
  44. package/docs/CreateClubRequest.md +12 -10
  45. package/docs/CreateClubSettingsRequest.md +28 -0
  46. package/docs/CreateCourtRequest.md +2 -0
  47. package/docs/CreatePriceRequest.md +4 -4
  48. package/docs/CreateSportRequest.md +4 -0
  49. package/docs/CreateSubscriptionPlanRequest.md +3 -3
  50. package/docs/DeleteClubSettingsRequest.md +20 -0
  51. package/docs/{DeleteClub200Response.md → DeleteSlotsResponse.md} +3 -3
  52. package/docs/{GenerateSlotsForNextThreeWeeks201Response.md → DeleteSport200Response.md} +3 -3
  53. package/docs/GenerateSlotsResponse.md +20 -0
  54. package/docs/GetClubInfos200Response.md +30 -0
  55. package/docs/GetCourtsByClubAndSport200Response.md +26 -0
  56. package/docs/GetLastSixMonthsTurnover200ResponseInner.md +24 -0
  57. package/docs/GetNumberOfClubUsers200Response.md +20 -0
  58. package/docs/GetUserRolesResponseRolesInner.md +4 -6
  59. package/docs/GoogleSignInRequestBody.md +2 -2
  60. package/docs/GoogleSignInResponse.md +2 -8
  61. package/docs/{ClubCourtsApi.md → ManagerClubCourtsApi.md} +5 -5
  62. package/docs/ManagerClubSlotsApi.md +125 -0
  63. package/docs/ManagerClubsApi.md +280 -0
  64. package/docs/PriceResponse.md +2 -8
  65. package/docs/RefreshTokenResponse.md +2 -6
  66. package/docs/SlotResponse.md +2 -8
  67. package/docs/SportResponse.md +0 -2
  68. package/docs/SportsApi.md +10 -120
  69. package/docs/StaffClubSettingsApi.md +62 -0
  70. package/docs/StaffSportsApi.md +62 -0
  71. package/docs/SubscriptionPlanResponse.md +4 -8
  72. package/docs/UpdateClubSettingsRequest.md +28 -0
  73. package/docs/UpdateSportRequest.md +4 -0
  74. package/docs/UpdateSubscriptionPlanRequest.md +3 -3
  75. package/docs/UpdateSubscriptionPlanResponse.md +2 -2
  76. package/docs/{ClubSettingsApi.md → UserAuthenticationApi.md} +54 -55
  77. package/docs/UserBookingsApi.md +63 -0
  78. package/docs/UserClubCourtsApi.md +64 -0
  79. package/docs/UserClubSlotsApi.md +60 -0
  80. package/docs/UserClubSportsApi.md +60 -0
  81. package/docs/UserClubsApi.md +53 -0
  82. package/docs/UserProfileApi.md +271 -0
  83. package/docs/UserResponse.md +8 -14
  84. package/docs/UserSubscriptionsApi.md +222 -0
  85. package/docs/UsersApi.md +0 -725
  86. package/docs/UsersResponse.md +22 -0
  87. package/index.ts +1 -1
  88. package/package.json +32 -1
package/docs/UsersApi.md CHANGED
@@ -4,679 +4,8 @@ All URIs are relative to *https://api.mon-domaine.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
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
7
  |[**subscribeToClub**](#subscribetoclub) | **POST** /api/users/me/subscribe | Abonne l\'utilisateur connecté à un club|
20
8
  |[**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\&#39;utilisateurs à retourner | (optional) defaults to 20|
183
- | **skip** | [**number**] | Nombre d\&#39;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** | [**&#39;true&#39; | &#39;false&#39;**]**Array<&#39;true&#39; &#124; &#39;false&#39;>** | Filtre par disponibilité pour partenaire | (optional) defaults to undefined|
190
- | **username** | [**string**] | Filtre par nom d\&#39;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\&#39;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\&#39;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\&#39;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
9
 
681
10
  # **subscribeToClub**
682
11
  > SubscriptionResponse subscribeToClub(subscribeToClubRequestBody)
@@ -788,57 +117,3 @@ const { status, data } = await apiInstance.updateCustomer(
788
117
 
789
118
  [[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
119
 
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
-