@tennac-booking/sdk 1.0.14 → 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 +8 -9
- package/README.md +24 -24
- package/api.ts +1597 -1636
- package/dist/api.d.ts +901 -927
- package/dist/api.js +1248 -1287
- package/dist/esm/api.d.ts +901 -927
- package/dist/esm/api.js +1200 -1234
- package/docs/{ClubRolesApi.md → ManagerClubRolesApi.md} +11 -11
- package/docs/{ClubSubscriptionsApi.md → ManagerClubSubscriptionsApi.md} +15 -15
- package/docs/{SportsApi.md → ManagerSportsApi.md} +5 -5
- package/docs/{ClubAnalyticsApi.md → StaffClubAnalyticsApi.md} +5 -5
- package/docs/{ClubBookingsApi.md → StaffClubBookingsApi.md} +3 -3
- package/docs/{ClubsApi.md → StaffClubsApi.md} +3 -3
- package/docs/StaffProfileApi.md +54 -0
- package/docs/{UsersApi.md → UserApi.md} +5 -5
- package/docs/UserBookingsApi.md +57 -0
- package/docs/UserClubSlotsApi.md +121 -0
- package/docs/UserProfileApi.md +0 -47
- package/package.json +1 -1
- package/docs/BookingsApi.md +0 -64
- package/docs/ClubSlotsApi.md +0 -128
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ManagerClubRolesApi
|
|
2
2
|
|
|
3
3
|
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
4
|
|
|
@@ -18,13 +18,13 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
18
18
|
|
|
19
19
|
```typescript
|
|
20
20
|
import {
|
|
21
|
-
|
|
21
|
+
ManagerClubRolesApi,
|
|
22
22
|
Configuration,
|
|
23
23
|
CreateClubRoleRequestBody
|
|
24
24
|
} from '@tennac-booking/sdk';
|
|
25
25
|
|
|
26
26
|
const configuration = new Configuration();
|
|
27
|
-
const apiInstance = new
|
|
27
|
+
const apiInstance = new ManagerClubRolesApi(configuration);
|
|
28
28
|
|
|
29
29
|
let createClubRoleRequestBody: CreateClubRoleRequestBody; //
|
|
30
30
|
|
|
@@ -70,12 +70,12 @@ const { status, data } = await apiInstance.createClubRole(
|
|
|
70
70
|
|
|
71
71
|
```typescript
|
|
72
72
|
import {
|
|
73
|
-
|
|
73
|
+
ManagerClubRolesApi,
|
|
74
74
|
Configuration
|
|
75
75
|
} from '@tennac-booking/sdk';
|
|
76
76
|
|
|
77
77
|
const configuration = new Configuration();
|
|
78
|
-
const apiInstance = new
|
|
78
|
+
const apiInstance = new ManagerClubRolesApi(configuration);
|
|
79
79
|
|
|
80
80
|
let id: string; //ID du rôle de club (default to undefined)
|
|
81
81
|
|
|
@@ -122,12 +122,12 @@ const { status, data } = await apiInstance.deleteClubRole(
|
|
|
122
122
|
|
|
123
123
|
```typescript
|
|
124
124
|
import {
|
|
125
|
-
|
|
125
|
+
ManagerClubRolesApi,
|
|
126
126
|
Configuration
|
|
127
127
|
} from '@tennac-booking/sdk';
|
|
128
128
|
|
|
129
129
|
const configuration = new Configuration();
|
|
130
|
-
const apiInstance = new
|
|
130
|
+
const apiInstance = new ManagerClubRolesApi(configuration);
|
|
131
131
|
|
|
132
132
|
const { status, data } = await apiInstance.getAllClubRoles();
|
|
133
133
|
```
|
|
@@ -166,12 +166,12 @@ This endpoint does not have any parameters.
|
|
|
166
166
|
|
|
167
167
|
```typescript
|
|
168
168
|
import {
|
|
169
|
-
|
|
169
|
+
ManagerClubRolesApi,
|
|
170
170
|
Configuration
|
|
171
171
|
} from '@tennac-booking/sdk';
|
|
172
172
|
|
|
173
173
|
const configuration = new Configuration();
|
|
174
|
-
const apiInstance = new
|
|
174
|
+
const apiInstance = new ManagerClubRolesApi(configuration);
|
|
175
175
|
|
|
176
176
|
let id: string; //ID du rôle de club (default to undefined)
|
|
177
177
|
|
|
@@ -218,13 +218,13 @@ const { status, data } = await apiInstance.getClubRoleById(
|
|
|
218
218
|
|
|
219
219
|
```typescript
|
|
220
220
|
import {
|
|
221
|
-
|
|
221
|
+
ManagerClubRolesApi,
|
|
222
222
|
Configuration,
|
|
223
223
|
UpdateClubRoleRequestBody
|
|
224
224
|
} from '@tennac-booking/sdk';
|
|
225
225
|
|
|
226
226
|
const configuration = new Configuration();
|
|
227
|
-
const apiInstance = new
|
|
227
|
+
const apiInstance = new ManagerClubRolesApi(configuration);
|
|
228
228
|
|
|
229
229
|
let id: string; //ID du rôle de club (default to undefined)
|
|
230
230
|
let updateClubRoleRequestBody: UpdateClubRoleRequestBody; //
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ManagerClubSubscriptionsApi
|
|
2
2
|
|
|
3
3
|
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
4
|
|
|
@@ -20,12 +20,12 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
20
20
|
|
|
21
21
|
```typescript
|
|
22
22
|
import {
|
|
23
|
-
|
|
23
|
+
ManagerClubSubscriptionsApi,
|
|
24
24
|
Configuration
|
|
25
25
|
} from '@tennac-booking/sdk';
|
|
26
26
|
|
|
27
27
|
const configuration = new Configuration();
|
|
28
|
-
const apiInstance = new
|
|
28
|
+
const apiInstance = new ManagerClubSubscriptionsApi(configuration);
|
|
29
29
|
|
|
30
30
|
let id: string; //ID du club (default to undefined)
|
|
31
31
|
let priceId: string; //ID du prix Stripe (default to undefined)
|
|
@@ -75,13 +75,13 @@ const { status, data } = await apiInstance.archivePriceForSubscriptionPlan(
|
|
|
75
75
|
|
|
76
76
|
```typescript
|
|
77
77
|
import {
|
|
78
|
-
|
|
78
|
+
ManagerClubSubscriptionsApi,
|
|
79
79
|
Configuration,
|
|
80
80
|
CreatePriceRequest
|
|
81
81
|
} from '@tennac-booking/sdk';
|
|
82
82
|
|
|
83
83
|
const configuration = new Configuration();
|
|
84
|
-
const apiInstance = new
|
|
84
|
+
const apiInstance = new ManagerClubSubscriptionsApi(configuration);
|
|
85
85
|
|
|
86
86
|
let id: string; //ID du club (default to undefined)
|
|
87
87
|
let productId: string; //ID du produit Stripe (default to undefined)
|
|
@@ -134,13 +134,13 @@ const { status, data } = await apiInstance.createPriceForSubscriptionPlan(
|
|
|
134
134
|
|
|
135
135
|
```typescript
|
|
136
136
|
import {
|
|
137
|
-
|
|
137
|
+
ManagerClubSubscriptionsApi,
|
|
138
138
|
Configuration,
|
|
139
139
|
CreateSubscriptionPlanRequest
|
|
140
140
|
} from '@tennac-booking/sdk';
|
|
141
141
|
|
|
142
142
|
const configuration = new Configuration();
|
|
143
|
-
const apiInstance = new
|
|
143
|
+
const apiInstance = new ManagerClubSubscriptionsApi(configuration);
|
|
144
144
|
|
|
145
145
|
let id: string; //ID du club (default to undefined)
|
|
146
146
|
let createSubscriptionPlanRequest: CreateSubscriptionPlanRequest; //
|
|
@@ -190,12 +190,12 @@ const { status, data } = await apiInstance.createSubscriptionPlanForClub(
|
|
|
190
190
|
|
|
191
191
|
```typescript
|
|
192
192
|
import {
|
|
193
|
-
|
|
193
|
+
ManagerClubSubscriptionsApi,
|
|
194
194
|
Configuration
|
|
195
195
|
} from '@tennac-booking/sdk';
|
|
196
196
|
|
|
197
197
|
const configuration = new Configuration();
|
|
198
|
-
const apiInstance = new
|
|
198
|
+
const apiInstance = new ManagerClubSubscriptionsApi(configuration);
|
|
199
199
|
|
|
200
200
|
let id: string; //ID du club (default to undefined)
|
|
201
201
|
let productId: string; //ID du produit Stripe (default to undefined)
|
|
@@ -245,12 +245,12 @@ void (empty response body)
|
|
|
245
245
|
|
|
246
246
|
```typescript
|
|
247
247
|
import {
|
|
248
|
-
|
|
248
|
+
ManagerClubSubscriptionsApi,
|
|
249
249
|
Configuration
|
|
250
250
|
} from '@tennac-booking/sdk';
|
|
251
251
|
|
|
252
252
|
const configuration = new Configuration();
|
|
253
|
-
const apiInstance = new
|
|
253
|
+
const apiInstance = new ManagerClubSubscriptionsApi(configuration);
|
|
254
254
|
|
|
255
255
|
let id: string; //ID du club (default to undefined)
|
|
256
256
|
let productId: string; //ID du produit Stripe (default to undefined)
|
|
@@ -300,12 +300,12 @@ const { status, data } = await apiInstance.restoreSubscriptionPlanForClub(
|
|
|
300
300
|
|
|
301
301
|
```typescript
|
|
302
302
|
import {
|
|
303
|
-
|
|
303
|
+
ManagerClubSubscriptionsApi,
|
|
304
304
|
Configuration
|
|
305
305
|
} from '@tennac-booking/sdk';
|
|
306
306
|
|
|
307
307
|
const configuration = new Configuration();
|
|
308
|
-
const apiInstance = new
|
|
308
|
+
const apiInstance = new ManagerClubSubscriptionsApi(configuration);
|
|
309
309
|
|
|
310
310
|
let id: string; //ID du club (default to undefined)
|
|
311
311
|
let priceId: string; //ID du prix Stripe (default to undefined)
|
|
@@ -355,13 +355,13 @@ const { status, data } = await apiInstance.restoreSubscriptionPriceForClub(
|
|
|
355
355
|
|
|
356
356
|
```typescript
|
|
357
357
|
import {
|
|
358
|
-
|
|
358
|
+
ManagerClubSubscriptionsApi,
|
|
359
359
|
Configuration,
|
|
360
360
|
UpdateSubscriptionPlanRequest
|
|
361
361
|
} from '@tennac-booking/sdk';
|
|
362
362
|
|
|
363
363
|
const configuration = new Configuration();
|
|
364
|
-
const apiInstance = new
|
|
364
|
+
const apiInstance = new ManagerClubSubscriptionsApi(configuration);
|
|
365
365
|
|
|
366
366
|
let id: string; //ID du club (default to undefined)
|
|
367
367
|
let priceId: string; //ID du prix Stripe (default to undefined)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ManagerSportsApi
|
|
2
2
|
|
|
3
3
|
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
4
|
|
|
@@ -15,12 +15,12 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
17
|
import {
|
|
18
|
-
|
|
18
|
+
ManagerSportsApi,
|
|
19
19
|
Configuration
|
|
20
20
|
} from '@tennac-booking/sdk';
|
|
21
21
|
|
|
22
22
|
const configuration = new Configuration();
|
|
23
|
-
const apiInstance = new
|
|
23
|
+
const apiInstance = new ManagerSportsApi(configuration);
|
|
24
24
|
|
|
25
25
|
let id: string; //ID du sport (default to undefined)
|
|
26
26
|
|
|
@@ -68,13 +68,13 @@ const { status, data } = await apiInstance.deleteSport(
|
|
|
68
68
|
|
|
69
69
|
```typescript
|
|
70
70
|
import {
|
|
71
|
-
|
|
71
|
+
ManagerSportsApi,
|
|
72
72
|
Configuration,
|
|
73
73
|
UpdateSportRequest
|
|
74
74
|
} from '@tennac-booking/sdk';
|
|
75
75
|
|
|
76
76
|
const configuration = new Configuration();
|
|
77
|
-
const apiInstance = new
|
|
77
|
+
const apiInstance = new ManagerSportsApi(configuration);
|
|
78
78
|
|
|
79
79
|
let id: string; //ID du sport (default to undefined)
|
|
80
80
|
let updateSportRequest: UpdateSportRequest; //
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# StaffClubAnalyticsApi
|
|
2
2
|
|
|
3
3
|
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
4
|
|
|
@@ -15,12 +15,12 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
17
|
import {
|
|
18
|
-
|
|
18
|
+
StaffClubAnalyticsApi,
|
|
19
19
|
Configuration
|
|
20
20
|
} from '@tennac-booking/sdk';
|
|
21
21
|
|
|
22
22
|
const configuration = new Configuration();
|
|
23
|
-
const apiInstance = new
|
|
23
|
+
const apiInstance = new StaffClubAnalyticsApi(configuration);
|
|
24
24
|
|
|
25
25
|
let id: string; //ID du club (default to undefined)
|
|
26
26
|
|
|
@@ -66,12 +66,12 @@ const { status, data } = await apiInstance.getLastSixMonthsTurnover(
|
|
|
66
66
|
|
|
67
67
|
```typescript
|
|
68
68
|
import {
|
|
69
|
-
|
|
69
|
+
StaffClubAnalyticsApi,
|
|
70
70
|
Configuration
|
|
71
71
|
} from '@tennac-booking/sdk';
|
|
72
72
|
|
|
73
73
|
const configuration = new Configuration();
|
|
74
|
-
const apiInstance = new
|
|
74
|
+
const apiInstance = new StaffClubAnalyticsApi(configuration);
|
|
75
75
|
|
|
76
76
|
let id: string; //ID du club (default to undefined)
|
|
77
77
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# StaffClubBookingsApi
|
|
2
2
|
|
|
3
3
|
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
4
|
|
|
@@ -14,12 +14,12 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
StaffClubBookingsApi,
|
|
18
18
|
Configuration
|
|
19
19
|
} from '@tennac-booking/sdk';
|
|
20
20
|
|
|
21
21
|
const configuration = new Configuration();
|
|
22
|
-
const apiInstance = new
|
|
22
|
+
const apiInstance = new StaffClubBookingsApi(configuration);
|
|
23
23
|
|
|
24
24
|
let id: string; //ID du club (default to undefined)
|
|
25
25
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# StaffClubsApi
|
|
2
2
|
|
|
3
3
|
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
4
|
|
|
@@ -14,12 +14,12 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
StaffClubsApi,
|
|
18
18
|
Configuration
|
|
19
19
|
} from '@tennac-booking/sdk';
|
|
20
20
|
|
|
21
21
|
const configuration = new Configuration();
|
|
22
|
-
const apiInstance = new
|
|
22
|
+
const apiInstance = new StaffClubsApi(configuration);
|
|
23
23
|
|
|
24
24
|
let id: string; //ID du club (default to undefined)
|
|
25
25
|
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# StaffProfileApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getUserRolesInClubs**](#getuserrolesinclubs) | **GET** /api/users/me/roles | Récupère les rôles de l\'utilisateur dans les clubs|
|
|
8
|
+
|
|
9
|
+
# **getUserRolesInClubs**
|
|
10
|
+
> GetUserRolesResponse getUserRolesInClubs()
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import {
|
|
17
|
+
StaffProfileApi,
|
|
18
|
+
Configuration
|
|
19
|
+
} from '@tennac-booking/sdk';
|
|
20
|
+
|
|
21
|
+
const configuration = new Configuration();
|
|
22
|
+
const apiInstance = new StaffProfileApi(configuration);
|
|
23
|
+
|
|
24
|
+
const { status, data } = await apiInstance.getUserRolesInClubs();
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Parameters
|
|
28
|
+
This endpoint does not have any parameters.
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Return type
|
|
32
|
+
|
|
33
|
+
**GetUserRolesResponse**
|
|
34
|
+
|
|
35
|
+
### Authorization
|
|
36
|
+
|
|
37
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
38
|
+
|
|
39
|
+
### HTTP request headers
|
|
40
|
+
|
|
41
|
+
- **Content-Type**: Not defined
|
|
42
|
+
- **Accept**: application/json
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### HTTP response details
|
|
46
|
+
| Status code | Description | Response headers |
|
|
47
|
+
|-------------|-------------|------------------|
|
|
48
|
+
|**200** | Liste des rôles dans les clubs | - |
|
|
49
|
+
|**400** | Requête invalide | - |
|
|
50
|
+
|**401** | Non autorisé | - |
|
|
51
|
+
|**500** | Erreur serveur interne | - |
|
|
52
|
+
|
|
53
|
+
[[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)
|
|
54
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# UserApi
|
|
2
2
|
|
|
3
3
|
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
4
|
|
|
@@ -15,13 +15,13 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
17
|
import {
|
|
18
|
-
|
|
18
|
+
UserApi,
|
|
19
19
|
Configuration,
|
|
20
20
|
SubscribeToClubRequestBody
|
|
21
21
|
} from '@tennac-booking/sdk';
|
|
22
22
|
|
|
23
23
|
const configuration = new Configuration();
|
|
24
|
-
const apiInstance = new
|
|
24
|
+
const apiInstance = new UserApi(configuration);
|
|
25
25
|
|
|
26
26
|
let subscribeToClubRequestBody: SubscribeToClubRequestBody; //
|
|
27
27
|
|
|
@@ -70,13 +70,13 @@ const { status, data } = await apiInstance.subscribeToClub(
|
|
|
70
70
|
|
|
71
71
|
```typescript
|
|
72
72
|
import {
|
|
73
|
-
|
|
73
|
+
UserApi,
|
|
74
74
|
Configuration,
|
|
75
75
|
UpdateCustomerRequestBody
|
|
76
76
|
} from '@tennac-booking/sdk';
|
|
77
77
|
|
|
78
78
|
const configuration = new Configuration();
|
|
79
|
-
const apiInstance = new
|
|
79
|
+
const apiInstance = new UserApi(configuration);
|
|
80
80
|
|
|
81
81
|
let updateCustomerRequestBody: UpdateCustomerRequestBody; //
|
|
82
82
|
|
package/docs/UserBookingsApi.md
CHANGED
|
@@ -5,6 +5,7 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**blockSlot**](#blockslot) | **PATCH** /api/bookings/pre-book/{slotId} | Bloquer un créneau|
|
|
8
|
+
|[**createBooking**](#createbooking) | **POST** /api/bookings | Créer une réservation|
|
|
8
9
|
|
|
9
10
|
# **blockSlot**
|
|
10
11
|
> BlockSlotResponse blockSlot()
|
|
@@ -61,3 +62,59 @@ const { status, data } = await apiInstance.blockSlot(
|
|
|
61
62
|
|
|
62
63
|
[[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)
|
|
63
64
|
|
|
65
|
+
# **createBooking**
|
|
66
|
+
> BookingResponse createBooking(createBookingRequest)
|
|
67
|
+
|
|
68
|
+
Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
|
|
69
|
+
|
|
70
|
+
### Example
|
|
71
|
+
|
|
72
|
+
```typescript
|
|
73
|
+
import {
|
|
74
|
+
UserBookingsApi,
|
|
75
|
+
Configuration,
|
|
76
|
+
CreateBookingRequest
|
|
77
|
+
} from '@tennac-booking/sdk';
|
|
78
|
+
|
|
79
|
+
const configuration = new Configuration();
|
|
80
|
+
const apiInstance = new UserBookingsApi(configuration);
|
|
81
|
+
|
|
82
|
+
let createBookingRequest: CreateBookingRequest; //
|
|
83
|
+
|
|
84
|
+
const { status, data } = await apiInstance.createBooking(
|
|
85
|
+
createBookingRequest
|
|
86
|
+
);
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Parameters
|
|
90
|
+
|
|
91
|
+
|Name | Type | Description | Notes|
|
|
92
|
+
|------------- | ------------- | ------------- | -------------|
|
|
93
|
+
| **createBookingRequest** | **CreateBookingRequest**| | |
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
### Return type
|
|
97
|
+
|
|
98
|
+
**BookingResponse**
|
|
99
|
+
|
|
100
|
+
### Authorization
|
|
101
|
+
|
|
102
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
103
|
+
|
|
104
|
+
### HTTP request headers
|
|
105
|
+
|
|
106
|
+
- **Content-Type**: application/json
|
|
107
|
+
- **Accept**: application/json
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
### HTTP response details
|
|
111
|
+
| Status code | Description | Response headers |
|
|
112
|
+
|-------------|-------------|------------------|
|
|
113
|
+
|**201** | Réservation créée avec succès | - |
|
|
114
|
+
|**400** | Requête invalide | - |
|
|
115
|
+
|**401** | Non autorisé | - |
|
|
116
|
+
|**404** | Ressource non trouvée | - |
|
|
117
|
+
|**500** | Erreur serveur interne | - |
|
|
118
|
+
|
|
119
|
+
[[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)
|
|
120
|
+
|
package/docs/UserClubSlotsApi.md
CHANGED
|
@@ -5,6 +5,8 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**getAvailableSlotsByClub**](#getavailableslotsbyclub) | **GET** /api/clubs/{clubID}/availableSlots | Obtenir tous les créneaux disponibles pour un club|
|
|
8
|
+
|[**getAvailableSlotsBySports**](#getavailableslotsbysports) | **GET** /api/clubs/{id}/sports/{sportId}/slots | Obtenir tous les slots disponibles pour un sport dans un club|
|
|
9
|
+
|[**getAvailableSlotsBySportsAndDay**](#getavailableslotsbysportsandday) | **GET** /api/clubs/{id}/sports/{sportId}/slots/{day} | Obtenir les slots disponibles pour un jour donné|
|
|
8
10
|
|
|
9
11
|
# **getAvailableSlotsByClub**
|
|
10
12
|
> SlotsResponse getAvailableSlotsByClub()
|
|
@@ -58,3 +60,122 @@ const { status, data } = await apiInstance.getAvailableSlotsByClub(
|
|
|
58
60
|
|
|
59
61
|
[[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)
|
|
60
62
|
|
|
63
|
+
# **getAvailableSlotsBySports**
|
|
64
|
+
> SlotsResponse getAvailableSlotsBySports()
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
### Example
|
|
68
|
+
|
|
69
|
+
```typescript
|
|
70
|
+
import {
|
|
71
|
+
UserClubSlotsApi,
|
|
72
|
+
Configuration
|
|
73
|
+
} from '@tennac-booking/sdk';
|
|
74
|
+
|
|
75
|
+
const configuration = new Configuration();
|
|
76
|
+
const apiInstance = new UserClubSlotsApi(configuration);
|
|
77
|
+
|
|
78
|
+
let id: string; //ID du club (default to undefined)
|
|
79
|
+
let sportId: string; //ID du sport (default to undefined)
|
|
80
|
+
let start: string; //Date de début (format ISO) (optional) (default to undefined)
|
|
81
|
+
let end: string; //Date de fin (format ISO) (optional) (default to undefined)
|
|
82
|
+
|
|
83
|
+
const { status, data } = await apiInstance.getAvailableSlotsBySports(
|
|
84
|
+
id,
|
|
85
|
+
sportId,
|
|
86
|
+
start,
|
|
87
|
+
end
|
|
88
|
+
);
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Parameters
|
|
92
|
+
|
|
93
|
+
|Name | Type | Description | Notes|
|
|
94
|
+
|------------- | ------------- | ------------- | -------------|
|
|
95
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
96
|
+
| **sportId** | [**string**] | ID du sport | defaults to undefined|
|
|
97
|
+
| **start** | [**string**] | Date de début (format ISO) | (optional) defaults to undefined|
|
|
98
|
+
| **end** | [**string**] | Date de fin (format ISO) | (optional) defaults to undefined|
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
### Return type
|
|
102
|
+
|
|
103
|
+
**SlotsResponse**
|
|
104
|
+
|
|
105
|
+
### Authorization
|
|
106
|
+
|
|
107
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
108
|
+
|
|
109
|
+
### HTTP request headers
|
|
110
|
+
|
|
111
|
+
- **Content-Type**: Not defined
|
|
112
|
+
- **Accept**: application/json
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
### HTTP response details
|
|
116
|
+
| Status code | Description | Response headers |
|
|
117
|
+
|-------------|-------------|------------------|
|
|
118
|
+
|**200** | Liste des créneaux disponibles | - |
|
|
119
|
+
|**400** | Requête invalide | - |
|
|
120
|
+
|**500** | Erreur serveur interne | - |
|
|
121
|
+
|
|
122
|
+
[[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)
|
|
123
|
+
|
|
124
|
+
# **getAvailableSlotsBySportsAndDay**
|
|
125
|
+
> SlotsResponse getAvailableSlotsBySportsAndDay()
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
### Example
|
|
129
|
+
|
|
130
|
+
```typescript
|
|
131
|
+
import {
|
|
132
|
+
UserClubSlotsApi,
|
|
133
|
+
Configuration
|
|
134
|
+
} from '@tennac-booking/sdk';
|
|
135
|
+
|
|
136
|
+
const configuration = new Configuration();
|
|
137
|
+
const apiInstance = new UserClubSlotsApi(configuration);
|
|
138
|
+
|
|
139
|
+
let id: string; //ID du club (default to undefined)
|
|
140
|
+
let sportId: string; //ID du sport (default to undefined)
|
|
141
|
+
let day: string; //Date du jour (format YYYY-MM-DD) (default to undefined)
|
|
142
|
+
|
|
143
|
+
const { status, data } = await apiInstance.getAvailableSlotsBySportsAndDay(
|
|
144
|
+
id,
|
|
145
|
+
sportId,
|
|
146
|
+
day
|
|
147
|
+
);
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
### Parameters
|
|
151
|
+
|
|
152
|
+
|Name | Type | Description | Notes|
|
|
153
|
+
|------------- | ------------- | ------------- | -------------|
|
|
154
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
155
|
+
| **sportId** | [**string**] | ID du sport | defaults to undefined|
|
|
156
|
+
| **day** | [**string**] | Date du jour (format YYYY-MM-DD) | defaults to undefined|
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
### Return type
|
|
160
|
+
|
|
161
|
+
**SlotsResponse**
|
|
162
|
+
|
|
163
|
+
### Authorization
|
|
164
|
+
|
|
165
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
166
|
+
|
|
167
|
+
### HTTP request headers
|
|
168
|
+
|
|
169
|
+
- **Content-Type**: Not defined
|
|
170
|
+
- **Accept**: application/json
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
### HTTP response details
|
|
174
|
+
| Status code | Description | Response headers |
|
|
175
|
+
|-------------|-------------|------------------|
|
|
176
|
+
|**200** | Liste des créneaux disponibles pour le jour donné | - |
|
|
177
|
+
|**400** | Requête invalide | - |
|
|
178
|
+
|**500** | Erreur serveur interne | - |
|
|
179
|
+
|
|
180
|
+
[[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)
|
|
181
|
+
|
package/docs/UserProfileApi.md
CHANGED
|
@@ -7,7 +7,6 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
7
7
|
|[**changePassword**](#changepassword) | **PUT** /api/users/me/password | Modifie le mot de passe de l\'utilisateur connecté|
|
|
8
8
|
|[**getAllUsers**](#getallusers) | **GET** /api/users | Récupère la liste des utilisateurs avec filtres et pagination|
|
|
9
9
|
|[**getUserInfo**](#getuserinfo) | **GET** /api/users/me | Récupère les informations de l\'utilisateur connecté|
|
|
10
|
-
|[**getUserRolesInClubs**](#getuserrolesinclubs) | **GET** /api/users/me/roles | Récupère les rôles de l\'utilisateur dans les clubs|
|
|
11
10
|
|[**updateUser**](#updateuser) | **PUT** /api/users/me | Met à jour les données de l\'utilisateur connecté|
|
|
12
11
|
|
|
13
12
|
# **changePassword**
|
|
@@ -169,52 +168,6 @@ This endpoint does not have any parameters.
|
|
|
169
168
|
|
|
170
169
|
[[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)
|
|
171
170
|
|
|
172
|
-
# **getUserRolesInClubs**
|
|
173
|
-
> GetUserRolesResponse getUserRolesInClubs()
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
### Example
|
|
177
|
-
|
|
178
|
-
```typescript
|
|
179
|
-
import {
|
|
180
|
-
UserProfileApi,
|
|
181
|
-
Configuration
|
|
182
|
-
} from '@tennac-booking/sdk';
|
|
183
|
-
|
|
184
|
-
const configuration = new Configuration();
|
|
185
|
-
const apiInstance = new UserProfileApi(configuration);
|
|
186
|
-
|
|
187
|
-
const { status, data } = await apiInstance.getUserRolesInClubs();
|
|
188
|
-
```
|
|
189
|
-
|
|
190
|
-
### Parameters
|
|
191
|
-
This endpoint does not have any parameters.
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
### Return type
|
|
195
|
-
|
|
196
|
-
**GetUserRolesResponse**
|
|
197
|
-
|
|
198
|
-
### Authorization
|
|
199
|
-
|
|
200
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
201
|
-
|
|
202
|
-
### HTTP request headers
|
|
203
|
-
|
|
204
|
-
- **Content-Type**: Not defined
|
|
205
|
-
- **Accept**: application/json
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
### HTTP response details
|
|
209
|
-
| Status code | Description | Response headers |
|
|
210
|
-
|-------------|-------------|------------------|
|
|
211
|
-
|**200** | Liste des rôles dans les clubs | - |
|
|
212
|
-
|**400** | Requête invalide | - |
|
|
213
|
-
|**401** | Non autorisé | - |
|
|
214
|
-
|**500** | Erreur serveur interne | - |
|
|
215
|
-
|
|
216
|
-
[[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)
|
|
217
|
-
|
|
218
171
|
# **updateUser**
|
|
219
172
|
> UserResponse updateUser(updateUserRequestBody)
|
|
220
173
|
|