@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.
- package/.openapi-generator/FILES +29 -5
- package/README.md +58 -49
- package/api.ts +3581 -3057
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +2134 -1695
- package/dist/api.js +2693 -2281
- 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 +2134 -1695
- package/dist/esm/api.js +2435 -2081
- 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/BookingsApi.md +4 -60
- package/docs/ChangePasswordResponse.md +1 -1
- package/docs/{ClubSportsApi.md → ClubAnalyticsApi.md} +20 -27
- package/docs/ClubBookingsApi.md +59 -0
- package/docs/ClubInfoResponse.md +6 -6
- package/docs/ClubResponse.md +6 -6
- package/docs/ClubRoleResponse.md +6 -6
- package/docs/ClubRolesApi.md +8 -8
- package/docs/ClubSettings.md +7 -1
- package/docs/ClubSlotsApi.md +0 -225
- package/docs/ClubsApi.md +6 -425
- 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/ManagerClubSlotsApi.md +125 -0
- package/docs/ManagerClubsApi.md +280 -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/SportsApi.md +10 -120
- package/docs/StaffClubSettingsApi.md +62 -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/{ClubSettingsApi.md → UserAuthenticationApi.md} +54 -55
- package/docs/UserBookingsApi.md +63 -0
- package/docs/UserClubCourtsApi.md +64 -0
- package/docs/UserClubSlotsApi.md +60 -0
- package/docs/UserClubSportsApi.md +60 -0
- package/docs/UserClubsApi.md +53 -0
- package/docs/UserProfileApi.md +271 -0
- package/docs/UserResponse.md +8 -14
- package/docs/UserSubscriptionsApi.md +222 -0
- package/docs/UsersApi.md +0 -725
- package/docs/UsersResponse.md +22 -0
- package/index.ts +1 -1
- package/package.json +32 -1
package/docs/ClubsApi.md
CHANGED
|
@@ -4,128 +4,10 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
8
|
-
|[**createClub**](#createclub) | **POST** /api/clubs | Créer un nouveau club|
|
|
9
|
-
|[**deleteClub**](#deleteclub) | **DELETE** /api/clubs/{id} | Supprimer un club|
|
|
10
|
-
|[**getActiveClubs**](#getactiveclubs) | **GET** /api/clubs/activeClubs/ | Obtenir la liste des clubs actifs (seulement id et nom)|
|
|
11
|
-
|[**getAllClubs**](#getallclubs) | **GET** /api/clubs | Récupérer tous les clubs|
|
|
12
|
-
|[**getClubInfo**](#getclubinfo) | **GET** /api/clubs/{id} | Récupérer les informations d\'un club|
|
|
13
|
-
|[**getClubMembers**](#getclubmembers) | **GET** /api/clubs/{id}/members | Récupérer les membres d\'un club|
|
|
14
|
-
|[**getClubRoles**](#getclubroles) | **GET** /api/clubs/{id}/roles | Récupérer les rôles d\'un club|
|
|
15
|
-
|[**updateClub**](#updateclub) | **PUT** /api/clubs/{id} | Mettre à jour un club existant|
|
|
7
|
+
|[**getClubInfos**](#getclubinfos) | **GET** /api/clubs/{id}/infos | Get club information (name, address, email, etc.)|
|
|
16
8
|
|
|
17
|
-
# **
|
|
18
|
-
>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
### Example
|
|
22
|
-
|
|
23
|
-
```typescript
|
|
24
|
-
import {
|
|
25
|
-
ClubsApi,
|
|
26
|
-
Configuration,
|
|
27
|
-
AddClubMemberRequest
|
|
28
|
-
} from '@tennac-booking/sdk';
|
|
29
|
-
|
|
30
|
-
const configuration = new Configuration();
|
|
31
|
-
const apiInstance = new ClubsApi(configuration);
|
|
32
|
-
|
|
33
|
-
let id: string; //ID du club (default to undefined)
|
|
34
|
-
let addClubMemberRequest: AddClubMemberRequest; //
|
|
35
|
-
|
|
36
|
-
const { status, data } = await apiInstance.addClubMember(
|
|
37
|
-
id,
|
|
38
|
-
addClubMemberRequest
|
|
39
|
-
);
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
### Parameters
|
|
43
|
-
|
|
44
|
-
|Name | Type | Description | Notes|
|
|
45
|
-
|------------- | ------------- | ------------- | -------------|
|
|
46
|
-
| **addClubMemberRequest** | **AddClubMemberRequest**| | |
|
|
47
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
### Return type
|
|
51
|
-
|
|
52
|
-
**AddClubMemberResponse**
|
|
53
|
-
|
|
54
|
-
### Authorization
|
|
55
|
-
|
|
56
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
57
|
-
|
|
58
|
-
### HTTP request headers
|
|
59
|
-
|
|
60
|
-
- **Content-Type**: application/json
|
|
61
|
-
- **Accept**: application/json
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
### HTTP response details
|
|
65
|
-
| Status code | Description | Response headers |
|
|
66
|
-
|-------------|-------------|------------------|
|
|
67
|
-
|**201** | Membre ajouté avec succès | - |
|
|
68
|
-
|**400** | Requête invalide | - |
|
|
69
|
-
|**404** | Ressource non trouvée | - |
|
|
70
|
-
|**500** | Erreur serveur interne | - |
|
|
71
|
-
|
|
72
|
-
[[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)
|
|
73
|
-
|
|
74
|
-
# **createClub**
|
|
75
|
-
> ClubResponse createClub(createClubRequest)
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
### Example
|
|
79
|
-
|
|
80
|
-
```typescript
|
|
81
|
-
import {
|
|
82
|
-
ClubsApi,
|
|
83
|
-
Configuration,
|
|
84
|
-
CreateClubRequest
|
|
85
|
-
} from '@tennac-booking/sdk';
|
|
86
|
-
|
|
87
|
-
const configuration = new Configuration();
|
|
88
|
-
const apiInstance = new ClubsApi(configuration);
|
|
89
|
-
|
|
90
|
-
let createClubRequest: CreateClubRequest; //
|
|
91
|
-
|
|
92
|
-
const { status, data } = await apiInstance.createClub(
|
|
93
|
-
createClubRequest
|
|
94
|
-
);
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
### Parameters
|
|
98
|
-
|
|
99
|
-
|Name | Type | Description | Notes|
|
|
100
|
-
|------------- | ------------- | ------------- | -------------|
|
|
101
|
-
| **createClubRequest** | **CreateClubRequest**| | |
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
### Return type
|
|
105
|
-
|
|
106
|
-
**ClubResponse**
|
|
107
|
-
|
|
108
|
-
### Authorization
|
|
109
|
-
|
|
110
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
111
|
-
|
|
112
|
-
### HTTP request headers
|
|
113
|
-
|
|
114
|
-
- **Content-Type**: application/json
|
|
115
|
-
- **Accept**: application/json
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
### HTTP response details
|
|
119
|
-
| Status code | Description | Response headers |
|
|
120
|
-
|-------------|-------------|------------------|
|
|
121
|
-
|**201** | Club créé avec succès | - |
|
|
122
|
-
|**400** | Requête invalide | - |
|
|
123
|
-
|**500** | Erreur serveur interne | - |
|
|
124
|
-
|
|
125
|
-
[[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)
|
|
126
|
-
|
|
127
|
-
# **deleteClub**
|
|
128
|
-
> DeleteClub200Response deleteClub()
|
|
9
|
+
# **getClubInfos**
|
|
10
|
+
> GetClubInfos200Response getClubInfos()
|
|
129
11
|
|
|
130
12
|
|
|
131
13
|
### Example
|
|
@@ -141,7 +23,7 @@ const apiInstance = new ClubsApi(configuration);
|
|
|
141
23
|
|
|
142
24
|
let id: string; //ID du club (default to undefined)
|
|
143
25
|
|
|
144
|
-
const { status, data } = await apiInstance.
|
|
26
|
+
const { status, data } = await apiInstance.getClubInfos(
|
|
145
27
|
id
|
|
146
28
|
);
|
|
147
29
|
```
|
|
@@ -155,7 +37,7 @@ const { status, data } = await apiInstance.deleteClub(
|
|
|
155
37
|
|
|
156
38
|
### Return type
|
|
157
39
|
|
|
158
|
-
**
|
|
40
|
+
**GetClubInfos200Response**
|
|
159
41
|
|
|
160
42
|
### Authorization
|
|
161
43
|
|
|
@@ -170,308 +52,7 @@ const { status, data } = await apiInstance.deleteClub(
|
|
|
170
52
|
### HTTP response details
|
|
171
53
|
| Status code | Description | Response headers |
|
|
172
54
|
|-------------|-------------|------------------|
|
|
173
|
-
|**200** | Club
|
|
174
|
-
|**404** | Ressource non trouvée | - |
|
|
175
|
-
|**500** | Erreur serveur interne | - |
|
|
176
|
-
|
|
177
|
-
[[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)
|
|
178
|
-
|
|
179
|
-
# **getActiveClubs**
|
|
180
|
-
> GetActiveClubs200Response getActiveClubs()
|
|
181
|
-
|
|
182
|
-
Retourne une liste des clubs dont la propriété `isActive` est `true`. Chaque club contient uniquement son `id` et son `name`.
|
|
183
|
-
|
|
184
|
-
### Example
|
|
185
|
-
|
|
186
|
-
```typescript
|
|
187
|
-
import {
|
|
188
|
-
ClubsApi,
|
|
189
|
-
Configuration
|
|
190
|
-
} from '@tennac-booking/sdk';
|
|
191
|
-
|
|
192
|
-
const configuration = new Configuration();
|
|
193
|
-
const apiInstance = new ClubsApi(configuration);
|
|
194
|
-
|
|
195
|
-
const { status, data } = await apiInstance.getActiveClubs();
|
|
196
|
-
```
|
|
197
|
-
|
|
198
|
-
### Parameters
|
|
199
|
-
This endpoint does not have any parameters.
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
### Return type
|
|
203
|
-
|
|
204
|
-
**GetActiveClubs200Response**
|
|
205
|
-
|
|
206
|
-
### Authorization
|
|
207
|
-
|
|
208
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
209
|
-
|
|
210
|
-
### HTTP request headers
|
|
211
|
-
|
|
212
|
-
- **Content-Type**: Not defined
|
|
213
|
-
- **Accept**: application/json
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
### HTTP response details
|
|
217
|
-
| Status code | Description | Response headers |
|
|
218
|
-
|-------------|-------------|------------------|
|
|
219
|
-
|**200** | Liste des clubs actifs | - |
|
|
220
|
-
|**500** | Erreur serveur interne | - |
|
|
221
|
-
|
|
222
|
-
[[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)
|
|
223
|
-
|
|
224
|
-
# **getAllClubs**
|
|
225
|
-
> ClubListResponse getAllClubs()
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
### Example
|
|
229
|
-
|
|
230
|
-
```typescript
|
|
231
|
-
import {
|
|
232
|
-
ClubsApi,
|
|
233
|
-
Configuration
|
|
234
|
-
} from '@tennac-booking/sdk';
|
|
235
|
-
|
|
236
|
-
const configuration = new Configuration();
|
|
237
|
-
const apiInstance = new ClubsApi(configuration);
|
|
238
|
-
|
|
239
|
-
const { status, data } = await apiInstance.getAllClubs();
|
|
240
|
-
```
|
|
241
|
-
|
|
242
|
-
### Parameters
|
|
243
|
-
This endpoint does not have any parameters.
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
### Return type
|
|
247
|
-
|
|
248
|
-
**ClubListResponse**
|
|
249
|
-
|
|
250
|
-
### Authorization
|
|
251
|
-
|
|
252
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
253
|
-
|
|
254
|
-
### HTTP request headers
|
|
255
|
-
|
|
256
|
-
- **Content-Type**: Not defined
|
|
257
|
-
- **Accept**: application/json
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
### HTTP response details
|
|
261
|
-
| Status code | Description | Response headers |
|
|
262
|
-
|-------------|-------------|------------------|
|
|
263
|
-
|**200** | Liste des clubs | - |
|
|
264
|
-
|**500** | Erreur serveur interne | - |
|
|
265
|
-
|
|
266
|
-
[[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)
|
|
267
|
-
|
|
268
|
-
# **getClubInfo**
|
|
269
|
-
> ClubInfoResponse getClubInfo()
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
### Example
|
|
273
|
-
|
|
274
|
-
```typescript
|
|
275
|
-
import {
|
|
276
|
-
ClubsApi,
|
|
277
|
-
Configuration
|
|
278
|
-
} from '@tennac-booking/sdk';
|
|
279
|
-
|
|
280
|
-
const configuration = new Configuration();
|
|
281
|
-
const apiInstance = new ClubsApi(configuration);
|
|
282
|
-
|
|
283
|
-
let id: string; //ID du club (default to undefined)
|
|
284
|
-
|
|
285
|
-
const { status, data } = await apiInstance.getClubInfo(
|
|
286
|
-
id
|
|
287
|
-
);
|
|
288
|
-
```
|
|
289
|
-
|
|
290
|
-
### Parameters
|
|
291
|
-
|
|
292
|
-
|Name | Type | Description | Notes|
|
|
293
|
-
|------------- | ------------- | ------------- | -------------|
|
|
294
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
### Return type
|
|
298
|
-
|
|
299
|
-
**ClubInfoResponse**
|
|
300
|
-
|
|
301
|
-
### Authorization
|
|
302
|
-
|
|
303
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
304
|
-
|
|
305
|
-
### HTTP request headers
|
|
306
|
-
|
|
307
|
-
- **Content-Type**: Not defined
|
|
308
|
-
- **Accept**: application/json
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
### HTTP response details
|
|
312
|
-
| Status code | Description | Response headers |
|
|
313
|
-
|-------------|-------------|------------------|
|
|
314
|
-
|**200** | Informations du club | - |
|
|
315
|
-
|**404** | Ressource non trouvée | - |
|
|
316
|
-
|**500** | Erreur serveur interne | - |
|
|
317
|
-
|
|
318
|
-
[[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)
|
|
319
|
-
|
|
320
|
-
# **getClubMembers**
|
|
321
|
-
> ClubMembersResponse getClubMembers()
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
### Example
|
|
325
|
-
|
|
326
|
-
```typescript
|
|
327
|
-
import {
|
|
328
|
-
ClubsApi,
|
|
329
|
-
Configuration
|
|
330
|
-
} from '@tennac-booking/sdk';
|
|
331
|
-
|
|
332
|
-
const configuration = new Configuration();
|
|
333
|
-
const apiInstance = new ClubsApi(configuration);
|
|
334
|
-
|
|
335
|
-
let id: string; //ID du club (default to undefined)
|
|
336
|
-
|
|
337
|
-
const { status, data } = await apiInstance.getClubMembers(
|
|
338
|
-
id
|
|
339
|
-
);
|
|
340
|
-
```
|
|
341
|
-
|
|
342
|
-
### Parameters
|
|
343
|
-
|
|
344
|
-
|Name | Type | Description | Notes|
|
|
345
|
-
|------------- | ------------- | ------------- | -------------|
|
|
346
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
### Return type
|
|
350
|
-
|
|
351
|
-
**ClubMembersResponse**
|
|
352
|
-
|
|
353
|
-
### Authorization
|
|
354
|
-
|
|
355
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
356
|
-
|
|
357
|
-
### HTTP request headers
|
|
358
|
-
|
|
359
|
-
- **Content-Type**: Not defined
|
|
360
|
-
- **Accept**: application/json
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
### HTTP response details
|
|
364
|
-
| Status code | Description | Response headers |
|
|
365
|
-
|-------------|-------------|------------------|
|
|
366
|
-
|**200** | Liste des membres du club | - |
|
|
367
|
-
|**500** | Erreur serveur interne | - |
|
|
368
|
-
|
|
369
|
-
[[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)
|
|
370
|
-
|
|
371
|
-
# **getClubRoles**
|
|
372
|
-
> ClubRolesResponse getClubRoles()
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
### Example
|
|
376
|
-
|
|
377
|
-
```typescript
|
|
378
|
-
import {
|
|
379
|
-
ClubsApi,
|
|
380
|
-
Configuration
|
|
381
|
-
} from '@tennac-booking/sdk';
|
|
382
|
-
|
|
383
|
-
const configuration = new Configuration();
|
|
384
|
-
const apiInstance = new ClubsApi(configuration);
|
|
385
|
-
|
|
386
|
-
let id: string; //ID du club (default to undefined)
|
|
387
|
-
|
|
388
|
-
const { status, data } = await apiInstance.getClubRoles(
|
|
389
|
-
id
|
|
390
|
-
);
|
|
391
|
-
```
|
|
392
|
-
|
|
393
|
-
### Parameters
|
|
394
|
-
|
|
395
|
-
|Name | Type | Description | Notes|
|
|
396
|
-
|------------- | ------------- | ------------- | -------------|
|
|
397
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
### Return type
|
|
401
|
-
|
|
402
|
-
**ClubRolesResponse**
|
|
403
|
-
|
|
404
|
-
### Authorization
|
|
405
|
-
|
|
406
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
407
|
-
|
|
408
|
-
### HTTP request headers
|
|
409
|
-
|
|
410
|
-
- **Content-Type**: Not defined
|
|
411
|
-
- **Accept**: application/json
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
### HTTP response details
|
|
415
|
-
| Status code | Description | Response headers |
|
|
416
|
-
|-------------|-------------|------------------|
|
|
417
|
-
|**200** | Liste des rôles du club | - |
|
|
418
|
-
|**500** | Erreur serveur interne | - |
|
|
419
|
-
|
|
420
|
-
[[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)
|
|
421
|
-
|
|
422
|
-
# **updateClub**
|
|
423
|
-
> ClubResponse updateClub(updateClubRequest)
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
### Example
|
|
427
|
-
|
|
428
|
-
```typescript
|
|
429
|
-
import {
|
|
430
|
-
ClubsApi,
|
|
431
|
-
Configuration,
|
|
432
|
-
UpdateClubRequest
|
|
433
|
-
} from '@tennac-booking/sdk';
|
|
434
|
-
|
|
435
|
-
const configuration = new Configuration();
|
|
436
|
-
const apiInstance = new ClubsApi(configuration);
|
|
437
|
-
|
|
438
|
-
let id: string; //ID du club (default to undefined)
|
|
439
|
-
let updateClubRequest: UpdateClubRequest; //
|
|
440
|
-
|
|
441
|
-
const { status, data } = await apiInstance.updateClub(
|
|
442
|
-
id,
|
|
443
|
-
updateClubRequest
|
|
444
|
-
);
|
|
445
|
-
```
|
|
446
|
-
|
|
447
|
-
### Parameters
|
|
448
|
-
|
|
449
|
-
|Name | Type | Description | Notes|
|
|
450
|
-
|------------- | ------------- | ------------- | -------------|
|
|
451
|
-
| **updateClubRequest** | **UpdateClubRequest**| | |
|
|
452
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
### Return type
|
|
456
|
-
|
|
457
|
-
**ClubResponse**
|
|
458
|
-
|
|
459
|
-
### Authorization
|
|
460
|
-
|
|
461
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
462
|
-
|
|
463
|
-
### HTTP request headers
|
|
464
|
-
|
|
465
|
-
- **Content-Type**: application/json
|
|
466
|
-
- **Accept**: application/json
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
### HTTP response details
|
|
470
|
-
| Status code | Description | Response headers |
|
|
471
|
-
|-------------|-------------|------------------|
|
|
472
|
-
|**200** | Club mis à jour avec succès | - |
|
|
473
|
-
|**400** | Requête invalide | - |
|
|
474
|
-
|**404** | Ressource non trouvée | - |
|
|
55
|
+
|**200** | Club information | - |
|
|
475
56
|
|**500** | Erreur serveur interne | - |
|
|
476
57
|
|
|
477
58
|
[[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)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ClubsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**clubs** | [**Array<ClubResponse>**](ClubResponse.md) | | [optional] [default to undefined]
|
|
9
|
+
**total** | **number** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ClubsResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: ClubsResponse = {
|
|
17
|
+
clubs,
|
|
18
|
+
total,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/CourtResponse.md
CHANGED
|
@@ -7,15 +7,15 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**id** | **string** | | [optional] [default to undefined]
|
|
9
9
|
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
-
**status** |
|
|
10
|
+
**status** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**comments** | **string** | | [optional] [default to undefined]
|
|
12
|
-
**pricePerSlot** | **number** | | [optional] [default to undefined]
|
|
13
12
|
**slotDefaultDuration** | **number** | | [optional] [default to undefined]
|
|
14
13
|
**startTimeInTheDayInMinutes** | **number** | | [optional] [default to undefined]
|
|
15
14
|
**endTimeInTheDayInMinutes** | **number** | | [optional] [default to undefined]
|
|
16
|
-
**clubId** | **string** | | [optional] [default to undefined]
|
|
17
15
|
**sportId** | **string** | | [optional] [default to undefined]
|
|
18
|
-
**
|
|
16
|
+
**clubId** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**surface** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**isIndoor** | **boolean** | Indique si le terrain est en intérieur ou extérieur | [optional] [default to undefined]
|
|
19
19
|
**createdAt** | **string** | | [optional] [default to undefined]
|
|
20
20
|
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
21
21
|
|
|
@@ -29,13 +29,13 @@ const instance: CourtResponse = {
|
|
|
29
29
|
name,
|
|
30
30
|
status,
|
|
31
31
|
comments,
|
|
32
|
-
pricePerSlot,
|
|
33
32
|
slotDefaultDuration,
|
|
34
33
|
startTimeInTheDayInMinutes,
|
|
35
34
|
endTimeInTheDayInMinutes,
|
|
36
|
-
clubId,
|
|
37
35
|
sportId,
|
|
38
|
-
|
|
36
|
+
clubId,
|
|
37
|
+
surface,
|
|
38
|
+
isIndoor,
|
|
39
39
|
createdAt,
|
|
40
40
|
updatedAt,
|
|
41
41
|
};
|
package/docs/CourtStatus.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
# CourtStatus
|
|
2
2
|
|
|
3
|
+
Statut du terrain
|
|
3
4
|
|
|
4
5
|
## Enum
|
|
5
6
|
|
|
6
|
-
* `
|
|
7
|
+
* `Active` (value: `'active'`)
|
|
7
8
|
|
|
8
|
-
* `
|
|
9
|
+
* `Maintenance` (value: `'maintenance'`)
|
|
10
|
+
|
|
11
|
+
* `Inactive` (value: `'inactive'`)
|
|
9
12
|
|
|
10
13
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -5,16 +5,17 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**name** | **string** |
|
|
9
|
-
**address** | **string** |
|
|
10
|
-
**city** | **string** |
|
|
11
|
-
**zipCode** | **string** |
|
|
12
|
-
**country** | **string** |
|
|
13
|
-
**phone** | **string** |
|
|
14
|
-
**email** | **string** |
|
|
15
|
-
**website** | **string** |
|
|
16
|
-
**description** | **string** |
|
|
17
|
-
**logo** | **string** |
|
|
8
|
+
**name** | **string** | Nom du club | [default to undefined]
|
|
9
|
+
**address** | **string** | Adresse du club | [default to undefined]
|
|
10
|
+
**city** | **string** | Ville du club | [default to undefined]
|
|
11
|
+
**zipCode** | **string** | Code postal du club | [default to undefined]
|
|
12
|
+
**country** | **string** | Pays du club | [default to undefined]
|
|
13
|
+
**phone** | **string** | Téléphone du club | [default to undefined]
|
|
14
|
+
**email** | **string** | Email du club | [default to undefined]
|
|
15
|
+
**website** | **string** | Site web du club | [optional] [default to undefined]
|
|
16
|
+
**description** | **string** | Description du club | [optional] [default to undefined]
|
|
17
|
+
**logo** | **string** | Logo du club | [optional] [default to undefined]
|
|
18
|
+
**isActive** | **boolean** | Statut actif du club | [optional] [default to true]
|
|
18
19
|
|
|
19
20
|
## Example
|
|
20
21
|
|
|
@@ -32,6 +33,7 @@ const instance: CreateClubRequest = {
|
|
|
32
33
|
website,
|
|
33
34
|
description,
|
|
34
35
|
logo,
|
|
36
|
+
isActive,
|
|
35
37
|
};
|
|
36
38
|
```
|
|
37
39
|
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# CreateClubSettingsRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**clubId** | **string** | | [default to undefined]
|
|
9
|
+
**reservationStartTime** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**reservationEndTime** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**maxSimultaneousReservations** | **number** | | [optional] [default to undefined]
|
|
12
|
+
**allowWeekendReservations** | **boolean** | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { CreateClubSettingsRequest } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: CreateClubSettingsRequest = {
|
|
20
|
+
clubId,
|
|
21
|
+
reservationStartTime,
|
|
22
|
+
reservationEndTime,
|
|
23
|
+
maxSimultaneousReservations,
|
|
24
|
+
allowWeekendReservations,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**startTimeInTheDayInMinutes** | **number** | | [default to undefined]
|
|
14
14
|
**endTimeInTheDayInMinutes** | **number** | | [default to undefined]
|
|
15
15
|
**sportId** | **string** | | [default to undefined]
|
|
16
|
+
**isIndoor** | **boolean** | Indique si le terrain est en intérieur ou extérieur | [default to undefined]
|
|
16
17
|
|
|
17
18
|
## Example
|
|
18
19
|
|
|
@@ -28,6 +29,7 @@ const instance: CreateCourtRequest = {
|
|
|
28
29
|
startTimeInTheDayInMinutes,
|
|
29
30
|
endTimeInTheDayInMinutes,
|
|
30
31
|
sportId,
|
|
32
|
+
isIndoor,
|
|
31
33
|
};
|
|
32
34
|
```
|
|
33
35
|
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**amount** | **number** |
|
|
9
|
-
**currency** | **string** |
|
|
10
|
-
**interval** | **string** |
|
|
11
|
-
**intervalCount** | **number** |
|
|
8
|
+
**amount** | **number** | Montant en centimes (ex: 2000 pour 20€) | [default to undefined]
|
|
9
|
+
**currency** | **string** | Devise | [default to 'eur']
|
|
10
|
+
**interval** | **string** | Intervalle de facturation | [default to undefined]
|
|
11
|
+
**intervalCount** | **number** | Nombre d\'intervalles entre chaque facturation | [optional] [default to 1]
|
|
12
12
|
|
|
13
13
|
## Example
|
|
14
14
|
|
|
@@ -7,6 +7,8 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**clubId** | **string** | | [default to undefined]
|
|
9
9
|
**key** | **string** | | [default to undefined]
|
|
10
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
10
12
|
|
|
11
13
|
## Example
|
|
12
14
|
|
|
@@ -16,6 +18,8 @@ import { CreateSportRequest } from '@tennac-booking/sdk';
|
|
|
16
18
|
const instance: CreateSportRequest = {
|
|
17
19
|
clubId,
|
|
18
20
|
key,
|
|
21
|
+
name,
|
|
22
|
+
description,
|
|
19
23
|
};
|
|
20
24
|
```
|
|
21
25
|
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**name** | **string** |
|
|
9
|
-
**description** | **string** |
|
|
10
|
-
**metadata** | **object** |
|
|
8
|
+
**name** | **string** | Nom du plan d\'abonnement | [default to undefined]
|
|
9
|
+
**description** | **string** | Description du plan d\'abonnement | [default to undefined]
|
|
10
|
+
**metadata** | **object** | Métadonnées additionnelles pour le plan | [optional] [default to undefined]
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# DeleteClubSettingsRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**clubId** | **string** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { DeleteClubSettingsRequest } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: DeleteClubSettingsRequest = {
|
|
16
|
+
clubId,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|