@tennac-booking/sdk 1.0.11 → 1.0.12
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 +56 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +86 -0
- package/api.ts +6087 -308
- package/common.ts +4 -4
- package/dist/api.d.ts +4105 -243
- package/dist/api.js +3265 -9
- package/dist/esm/api.d.ts +4105 -243
- package/dist/esm/api.js +3228 -8
- package/docs/AddClubMemberRequest.md +22 -0
- package/docs/AddClubMemberResponse.md +22 -0
- package/docs/BlockSlotResponse.md +22 -0
- package/docs/BookingResponse.md +28 -0
- package/docs/BookingsApi.md +120 -0
- package/docs/Club.md +46 -0
- package/docs/ClubCourtsApi.md +118 -0
- package/docs/ClubInfoResponse.md +46 -0
- package/docs/ClubListResponse.md +22 -0
- package/docs/ClubMember.md +34 -0
- package/docs/ClubMembersResponse.md +22 -0
- package/docs/ClubResponse.md +46 -0
- package/docs/ClubRole.md +30 -0
- package/docs/ClubRoleResponse.md +30 -0
- package/docs/ClubRolesApi.md +268 -0
- package/docs/ClubRolesResponse.md +22 -0
- package/docs/ClubSettings.md +28 -0
- package/docs/ClubSettingsApi.md +227 -0
- package/docs/ClubSlotsApi.md +300 -0
- package/docs/ClubSportsApi.md +118 -0
- package/docs/ClubSubscriptionsApi.md +408 -0
- package/docs/ClubsApi.md +432 -0
- package/docs/CourtResponse.md +44 -0
- package/docs/CourtsResponse.md +22 -0
- package/docs/CreateBookingRequest.md +28 -0
- package/docs/CreateClubRequest.md +38 -0
- package/docs/CreateClubRoleRequestBody.md +24 -0
- package/docs/CreateCourtRequest.md +34 -0
- package/docs/CreatePriceRequest.md +26 -0
- package/docs/CreateSportRequest.md +22 -0
- package/docs/CreateSubscriptionPlanRequest.md +24 -0
- package/docs/DeleteClub200Response.md +20 -0
- package/docs/DeleteClubRole200Response.md +20 -0
- package/docs/DeleteSlotsByClubInRange200Response.md +20 -0
- package/docs/GenerateSlotsForNextThreeWeeks201Response.md +20 -0
- package/docs/GetAllSportsRequest.md +20 -0
- package/docs/GetClubSettingsRequest.md +20 -0
- package/docs/GetUserRolesInClubs200Response.md +20 -0
- package/docs/PaymentMethod.md +11 -0
- package/docs/PlayerWithPaymentMethod.md +22 -0
- package/docs/PriceResponse.md +38 -0
- package/docs/RestoreSubscriptionPlanForClub200Response.md +20 -0
- package/docs/SlotResponse.md +40 -0
- package/docs/SlotsResponse.md +22 -0
- package/docs/Sport.md +24 -0
- package/docs/SportResponse.md +34 -0
- package/docs/SportsApi.md +229 -0
- package/docs/SportsResponse.md +22 -0
- package/docs/SubscriptionPlan.md +36 -0
- package/docs/SubscriptionPlanResponse.md +36 -0
- package/docs/UpdateClubRequest.md +40 -0
- package/docs/UpdateClubRoleRequestBody.md +24 -0
- package/docs/UpdateSportRequest.md +20 -0
- package/docs/UpdateSubscriptionPlanRequest.md +24 -0
- package/docs/UpdateSubscriptionPlanResponse.md +22 -0
- package/docs/UsersApi.md +65 -18
- package/package.json +1 -33
package/docs/ClubsApi.md
ADDED
|
@@ -0,0 +1,432 @@
|
|
|
1
|
+
# ClubsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**addClubMember**](#addclubmember) | **PUT** /api/clubs/{id}/add_members | Ajouter un membre à un club|
|
|
8
|
+
|[**createClub**](#createclub) | **POST** /api/clubs | Créer un nouveau club|
|
|
9
|
+
|[**deleteClub**](#deleteclub) | **DELETE** /api/clubs/{id} | Supprimer un club|
|
|
10
|
+
|[**getAllClubs**](#getallclubs) | **GET** /api/clubs | Récupérer tous les clubs|
|
|
11
|
+
|[**getClubInfo**](#getclubinfo) | **GET** /api/clubs/{id} | Récupérer les informations d\'un club|
|
|
12
|
+
|[**getClubMembers**](#getclubmembers) | **GET** /api/clubs/{id}/members | Récupérer les membres d\'un club|
|
|
13
|
+
|[**getClubRoles**](#getclubroles) | **GET** /api/clubs/{id}/roles | Récupérer les rôles d\'un club|
|
|
14
|
+
|[**updateClub**](#updateclub) | **PUT** /api/clubs/{id} | Mettre à jour un club existant|
|
|
15
|
+
|
|
16
|
+
# **addClubMember**
|
|
17
|
+
> AddClubMemberResponse addClubMember(addClubMemberRequest)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import {
|
|
24
|
+
ClubsApi,
|
|
25
|
+
Configuration,
|
|
26
|
+
AddClubMemberRequest
|
|
27
|
+
} from '@tennac-booking/sdk';
|
|
28
|
+
|
|
29
|
+
const configuration = new Configuration();
|
|
30
|
+
const apiInstance = new ClubsApi(configuration);
|
|
31
|
+
|
|
32
|
+
let id: string; //ID du club (default to undefined)
|
|
33
|
+
let addClubMemberRequest: AddClubMemberRequest; //
|
|
34
|
+
|
|
35
|
+
const { status, data } = await apiInstance.addClubMember(
|
|
36
|
+
id,
|
|
37
|
+
addClubMemberRequest
|
|
38
|
+
);
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Parameters
|
|
42
|
+
|
|
43
|
+
|Name | Type | Description | Notes|
|
|
44
|
+
|------------- | ------------- | ------------- | -------------|
|
|
45
|
+
| **addClubMemberRequest** | **AddClubMemberRequest**| | |
|
|
46
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### Return type
|
|
50
|
+
|
|
51
|
+
**AddClubMemberResponse**
|
|
52
|
+
|
|
53
|
+
### Authorization
|
|
54
|
+
|
|
55
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
56
|
+
|
|
57
|
+
### HTTP request headers
|
|
58
|
+
|
|
59
|
+
- **Content-Type**: application/json
|
|
60
|
+
- **Accept**: application/json
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
### HTTP response details
|
|
64
|
+
| Status code | Description | Response headers |
|
|
65
|
+
|-------------|-------------|------------------|
|
|
66
|
+
|**201** | Membre ajouté avec succès | - |
|
|
67
|
+
|**400** | Requête invalide | - |
|
|
68
|
+
|**404** | Ressource non trouvée | - |
|
|
69
|
+
|**500** | Erreur serveur interne | - |
|
|
70
|
+
|
|
71
|
+
[[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)
|
|
72
|
+
|
|
73
|
+
# **createClub**
|
|
74
|
+
> ClubResponse createClub(createClubRequest)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
### Example
|
|
78
|
+
|
|
79
|
+
```typescript
|
|
80
|
+
import {
|
|
81
|
+
ClubsApi,
|
|
82
|
+
Configuration,
|
|
83
|
+
CreateClubRequest
|
|
84
|
+
} from '@tennac-booking/sdk';
|
|
85
|
+
|
|
86
|
+
const configuration = new Configuration();
|
|
87
|
+
const apiInstance = new ClubsApi(configuration);
|
|
88
|
+
|
|
89
|
+
let createClubRequest: CreateClubRequest; //
|
|
90
|
+
|
|
91
|
+
const { status, data } = await apiInstance.createClub(
|
|
92
|
+
createClubRequest
|
|
93
|
+
);
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Parameters
|
|
97
|
+
|
|
98
|
+
|Name | Type | Description | Notes|
|
|
99
|
+
|------------- | ------------- | ------------- | -------------|
|
|
100
|
+
| **createClubRequest** | **CreateClubRequest**| | |
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
### Return type
|
|
104
|
+
|
|
105
|
+
**ClubResponse**
|
|
106
|
+
|
|
107
|
+
### Authorization
|
|
108
|
+
|
|
109
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
110
|
+
|
|
111
|
+
### HTTP request headers
|
|
112
|
+
|
|
113
|
+
- **Content-Type**: application/json
|
|
114
|
+
- **Accept**: application/json
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
### HTTP response details
|
|
118
|
+
| Status code | Description | Response headers |
|
|
119
|
+
|-------------|-------------|------------------|
|
|
120
|
+
|**201** | Club créé avec succès | - |
|
|
121
|
+
|**400** | Requête invalide | - |
|
|
122
|
+
|**500** | Erreur serveur interne | - |
|
|
123
|
+
|
|
124
|
+
[[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)
|
|
125
|
+
|
|
126
|
+
# **deleteClub**
|
|
127
|
+
> DeleteClub200Response deleteClub()
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
### Example
|
|
131
|
+
|
|
132
|
+
```typescript
|
|
133
|
+
import {
|
|
134
|
+
ClubsApi,
|
|
135
|
+
Configuration
|
|
136
|
+
} from '@tennac-booking/sdk';
|
|
137
|
+
|
|
138
|
+
const configuration = new Configuration();
|
|
139
|
+
const apiInstance = new ClubsApi(configuration);
|
|
140
|
+
|
|
141
|
+
let id: string; //ID du club (default to undefined)
|
|
142
|
+
|
|
143
|
+
const { status, data } = await apiInstance.deleteClub(
|
|
144
|
+
id
|
|
145
|
+
);
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
### Parameters
|
|
149
|
+
|
|
150
|
+
|Name | Type | Description | Notes|
|
|
151
|
+
|------------- | ------------- | ------------- | -------------|
|
|
152
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
### Return type
|
|
156
|
+
|
|
157
|
+
**DeleteClub200Response**
|
|
158
|
+
|
|
159
|
+
### Authorization
|
|
160
|
+
|
|
161
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
162
|
+
|
|
163
|
+
### HTTP request headers
|
|
164
|
+
|
|
165
|
+
- **Content-Type**: Not defined
|
|
166
|
+
- **Accept**: application/json
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
### HTTP response details
|
|
170
|
+
| Status code | Description | Response headers |
|
|
171
|
+
|-------------|-------------|------------------|
|
|
172
|
+
|**200** | Club supprimé avec succès | - |
|
|
173
|
+
|**404** | Ressource non trouvée | - |
|
|
174
|
+
|**500** | Erreur serveur interne | - |
|
|
175
|
+
|
|
176
|
+
[[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)
|
|
177
|
+
|
|
178
|
+
# **getAllClubs**
|
|
179
|
+
> ClubListResponse getAllClubs()
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
### Example
|
|
183
|
+
|
|
184
|
+
```typescript
|
|
185
|
+
import {
|
|
186
|
+
ClubsApi,
|
|
187
|
+
Configuration
|
|
188
|
+
} from '@tennac-booking/sdk';
|
|
189
|
+
|
|
190
|
+
const configuration = new Configuration();
|
|
191
|
+
const apiInstance = new ClubsApi(configuration);
|
|
192
|
+
|
|
193
|
+
const { status, data } = await apiInstance.getAllClubs();
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### Parameters
|
|
197
|
+
This endpoint does not have any parameters.
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
### Return type
|
|
201
|
+
|
|
202
|
+
**ClubListResponse**
|
|
203
|
+
|
|
204
|
+
### Authorization
|
|
205
|
+
|
|
206
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
207
|
+
|
|
208
|
+
### HTTP request headers
|
|
209
|
+
|
|
210
|
+
- **Content-Type**: Not defined
|
|
211
|
+
- **Accept**: application/json
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
### HTTP response details
|
|
215
|
+
| Status code | Description | Response headers |
|
|
216
|
+
|-------------|-------------|------------------|
|
|
217
|
+
|**200** | Liste des clubs | - |
|
|
218
|
+
|**500** | Erreur serveur interne | - |
|
|
219
|
+
|
|
220
|
+
[[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)
|
|
221
|
+
|
|
222
|
+
# **getClubInfo**
|
|
223
|
+
> ClubInfoResponse getClubInfo()
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
### Example
|
|
227
|
+
|
|
228
|
+
```typescript
|
|
229
|
+
import {
|
|
230
|
+
ClubsApi,
|
|
231
|
+
Configuration
|
|
232
|
+
} from '@tennac-booking/sdk';
|
|
233
|
+
|
|
234
|
+
const configuration = new Configuration();
|
|
235
|
+
const apiInstance = new ClubsApi(configuration);
|
|
236
|
+
|
|
237
|
+
let id: string; //ID du club (default to undefined)
|
|
238
|
+
|
|
239
|
+
const { status, data } = await apiInstance.getClubInfo(
|
|
240
|
+
id
|
|
241
|
+
);
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
### Parameters
|
|
245
|
+
|
|
246
|
+
|Name | Type | Description | Notes|
|
|
247
|
+
|------------- | ------------- | ------------- | -------------|
|
|
248
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
### Return type
|
|
252
|
+
|
|
253
|
+
**ClubInfoResponse**
|
|
254
|
+
|
|
255
|
+
### Authorization
|
|
256
|
+
|
|
257
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
258
|
+
|
|
259
|
+
### HTTP request headers
|
|
260
|
+
|
|
261
|
+
- **Content-Type**: Not defined
|
|
262
|
+
- **Accept**: application/json
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
### HTTP response details
|
|
266
|
+
| Status code | Description | Response headers |
|
|
267
|
+
|-------------|-------------|------------------|
|
|
268
|
+
|**200** | Informations du club | - |
|
|
269
|
+
|**404** | Ressource non trouvée | - |
|
|
270
|
+
|**500** | Erreur serveur interne | - |
|
|
271
|
+
|
|
272
|
+
[[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)
|
|
273
|
+
|
|
274
|
+
# **getClubMembers**
|
|
275
|
+
> ClubMembersResponse getClubMembers()
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
### Example
|
|
279
|
+
|
|
280
|
+
```typescript
|
|
281
|
+
import {
|
|
282
|
+
ClubsApi,
|
|
283
|
+
Configuration
|
|
284
|
+
} from '@tennac-booking/sdk';
|
|
285
|
+
|
|
286
|
+
const configuration = new Configuration();
|
|
287
|
+
const apiInstance = new ClubsApi(configuration);
|
|
288
|
+
|
|
289
|
+
let id: string; //ID du club (default to undefined)
|
|
290
|
+
|
|
291
|
+
const { status, data } = await apiInstance.getClubMembers(
|
|
292
|
+
id
|
|
293
|
+
);
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
### Parameters
|
|
297
|
+
|
|
298
|
+
|Name | Type | Description | Notes|
|
|
299
|
+
|------------- | ------------- | ------------- | -------------|
|
|
300
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
### Return type
|
|
304
|
+
|
|
305
|
+
**ClubMembersResponse**
|
|
306
|
+
|
|
307
|
+
### Authorization
|
|
308
|
+
|
|
309
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
310
|
+
|
|
311
|
+
### HTTP request headers
|
|
312
|
+
|
|
313
|
+
- **Content-Type**: Not defined
|
|
314
|
+
- **Accept**: application/json
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
### HTTP response details
|
|
318
|
+
| Status code | Description | Response headers |
|
|
319
|
+
|-------------|-------------|------------------|
|
|
320
|
+
|**200** | Liste des membres du club | - |
|
|
321
|
+
|**500** | Erreur serveur interne | - |
|
|
322
|
+
|
|
323
|
+
[[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)
|
|
324
|
+
|
|
325
|
+
# **getClubRoles**
|
|
326
|
+
> ClubRolesResponse getClubRoles()
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
### Example
|
|
330
|
+
|
|
331
|
+
```typescript
|
|
332
|
+
import {
|
|
333
|
+
ClubsApi,
|
|
334
|
+
Configuration
|
|
335
|
+
} from '@tennac-booking/sdk';
|
|
336
|
+
|
|
337
|
+
const configuration = new Configuration();
|
|
338
|
+
const apiInstance = new ClubsApi(configuration);
|
|
339
|
+
|
|
340
|
+
let id: string; //ID du club (default to undefined)
|
|
341
|
+
|
|
342
|
+
const { status, data } = await apiInstance.getClubRoles(
|
|
343
|
+
id
|
|
344
|
+
);
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
### Parameters
|
|
348
|
+
|
|
349
|
+
|Name | Type | Description | Notes|
|
|
350
|
+
|------------- | ------------- | ------------- | -------------|
|
|
351
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
### Return type
|
|
355
|
+
|
|
356
|
+
**ClubRolesResponse**
|
|
357
|
+
|
|
358
|
+
### Authorization
|
|
359
|
+
|
|
360
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
361
|
+
|
|
362
|
+
### HTTP request headers
|
|
363
|
+
|
|
364
|
+
- **Content-Type**: Not defined
|
|
365
|
+
- **Accept**: application/json
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
### HTTP response details
|
|
369
|
+
| Status code | Description | Response headers |
|
|
370
|
+
|-------------|-------------|------------------|
|
|
371
|
+
|**200** | Liste des rôles du club | - |
|
|
372
|
+
|**500** | Erreur serveur interne | - |
|
|
373
|
+
|
|
374
|
+
[[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)
|
|
375
|
+
|
|
376
|
+
# **updateClub**
|
|
377
|
+
> ClubResponse updateClub(updateClubRequest)
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
### Example
|
|
381
|
+
|
|
382
|
+
```typescript
|
|
383
|
+
import {
|
|
384
|
+
ClubsApi,
|
|
385
|
+
Configuration,
|
|
386
|
+
UpdateClubRequest
|
|
387
|
+
} from '@tennac-booking/sdk';
|
|
388
|
+
|
|
389
|
+
const configuration = new Configuration();
|
|
390
|
+
const apiInstance = new ClubsApi(configuration);
|
|
391
|
+
|
|
392
|
+
let id: string; //ID du club (default to undefined)
|
|
393
|
+
let updateClubRequest: UpdateClubRequest; //
|
|
394
|
+
|
|
395
|
+
const { status, data } = await apiInstance.updateClub(
|
|
396
|
+
id,
|
|
397
|
+
updateClubRequest
|
|
398
|
+
);
|
|
399
|
+
```
|
|
400
|
+
|
|
401
|
+
### Parameters
|
|
402
|
+
|
|
403
|
+
|Name | Type | Description | Notes|
|
|
404
|
+
|------------- | ------------- | ------------- | -------------|
|
|
405
|
+
| **updateClubRequest** | **UpdateClubRequest**| | |
|
|
406
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
### Return type
|
|
410
|
+
|
|
411
|
+
**ClubResponse**
|
|
412
|
+
|
|
413
|
+
### Authorization
|
|
414
|
+
|
|
415
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
416
|
+
|
|
417
|
+
### HTTP request headers
|
|
418
|
+
|
|
419
|
+
- **Content-Type**: application/json
|
|
420
|
+
- **Accept**: application/json
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
### HTTP response details
|
|
424
|
+
| Status code | Description | Response headers |
|
|
425
|
+
|-------------|-------------|------------------|
|
|
426
|
+
|**200** | Club mis à jour avec succès | - |
|
|
427
|
+
|**400** | Requête invalide | - |
|
|
428
|
+
|**404** | Ressource non trouvée | - |
|
|
429
|
+
|**500** | Erreur serveur interne | - |
|
|
430
|
+
|
|
431
|
+
[[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)
|
|
432
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# CourtResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**status** | [**CourtStatus**](CourtStatus.md) | | [optional] [default to undefined]
|
|
11
|
+
**comments** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**pricePerSlot** | **number** | | [optional] [default to undefined]
|
|
13
|
+
**slotDefaultDuration** | **number** | | [optional] [default to undefined]
|
|
14
|
+
**startTimeInTheDayInMinutes** | **number** | | [optional] [default to undefined]
|
|
15
|
+
**endTimeInTheDayInMinutes** | **number** | | [optional] [default to undefined]
|
|
16
|
+
**clubId** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**sportId** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**isActive** | **boolean** | | [optional] [default to undefined]
|
|
19
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
20
|
+
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
21
|
+
|
|
22
|
+
## Example
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
import { CourtResponse } from '@tennac-booking/sdk';
|
|
26
|
+
|
|
27
|
+
const instance: CourtResponse = {
|
|
28
|
+
id,
|
|
29
|
+
name,
|
|
30
|
+
status,
|
|
31
|
+
comments,
|
|
32
|
+
pricePerSlot,
|
|
33
|
+
slotDefaultDuration,
|
|
34
|
+
startTimeInTheDayInMinutes,
|
|
35
|
+
endTimeInTheDayInMinutes,
|
|
36
|
+
clubId,
|
|
37
|
+
sportId,
|
|
38
|
+
isActive,
|
|
39
|
+
createdAt,
|
|
40
|
+
updatedAt,
|
|
41
|
+
};
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# CourtsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**courts** | [**Array<CourtResponse>**](CourtResponse.md) | | [optional] [default to undefined]
|
|
9
|
+
**total** | **number** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { CourtsResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: CourtsResponse = {
|
|
17
|
+
courts,
|
|
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)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# CreateBookingRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**userId** | **string** | ID de l\'utilisateur créateur de la réservation | [default to undefined]
|
|
9
|
+
**slotId** | **string** | ID du créneau à réserver | [default to undefined]
|
|
10
|
+
**players** | [**Array<PlayerWithPaymentMethod>**](PlayerWithPaymentMethod.md) | Liste des joueurs avec leurs méthodes de paiement | [default to undefined]
|
|
11
|
+
**isCreatorPayingAll** | **boolean** | Indique si le créateur paie pour tous les joueurs | [optional] [default to false]
|
|
12
|
+
**paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { CreateBookingRequest } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: CreateBookingRequest = {
|
|
20
|
+
userId,
|
|
21
|
+
slotId,
|
|
22
|
+
players,
|
|
23
|
+
isCreatorPayingAll,
|
|
24
|
+
paymentMethod,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# CreateClubRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | | [default to undefined]
|
|
9
|
+
**address** | **string** | | [default to undefined]
|
|
10
|
+
**city** | **string** | | [default to undefined]
|
|
11
|
+
**zipCode** | **string** | | [default to undefined]
|
|
12
|
+
**country** | **string** | | [default to undefined]
|
|
13
|
+
**phone** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**website** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**logo** | **string** | | [optional] [default to undefined]
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { CreateClubRequest } from '@tennac-booking/sdk';
|
|
23
|
+
|
|
24
|
+
const instance: CreateClubRequest = {
|
|
25
|
+
name,
|
|
26
|
+
address,
|
|
27
|
+
city,
|
|
28
|
+
zipCode,
|
|
29
|
+
country,
|
|
30
|
+
phone,
|
|
31
|
+
email,
|
|
32
|
+
website,
|
|
33
|
+
description,
|
|
34
|
+
logo,
|
|
35
|
+
};
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# CreateClubRoleRequestBody
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | Nom du rôle à créer (ex: joueur, coach, admin) | [default to undefined]
|
|
9
|
+
**description** | **string** | Description du rôle | [default to undefined]
|
|
10
|
+
**permissions** | **Array<string>** | Permissions associées à ce rôle | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { CreateClubRoleRequestBody } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: CreateClubRoleRequestBody = {
|
|
18
|
+
name,
|
|
19
|
+
description,
|
|
20
|
+
permissions,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# CreateCourtRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | | [default to undefined]
|
|
9
|
+
**status** | [**CourtStatus**](CourtStatus.md) | | [default to undefined]
|
|
10
|
+
**comments** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**pricePerSlot** | **number** | | [default to undefined]
|
|
12
|
+
**slotDefaultDuration** | **number** | | [default to undefined]
|
|
13
|
+
**startTimeInTheDayInMinutes** | **number** | | [default to undefined]
|
|
14
|
+
**endTimeInTheDayInMinutes** | **number** | | [default to undefined]
|
|
15
|
+
**sportId** | **string** | | [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { CreateCourtRequest } from '@tennac-booking/sdk';
|
|
21
|
+
|
|
22
|
+
const instance: CreateCourtRequest = {
|
|
23
|
+
name,
|
|
24
|
+
status,
|
|
25
|
+
comments,
|
|
26
|
+
pricePerSlot,
|
|
27
|
+
slotDefaultDuration,
|
|
28
|
+
startTimeInTheDayInMinutes,
|
|
29
|
+
endTimeInTheDayInMinutes,
|
|
30
|
+
sportId,
|
|
31
|
+
};
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# CreatePriceRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**amount** | **number** | | [default to undefined]
|
|
9
|
+
**currency** | **string** | | [default to 'eur']
|
|
10
|
+
**interval** | **string** | | [default to undefined]
|
|
11
|
+
**intervalCount** | **number** | | [optional] [default to 1]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { CreatePriceRequest } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: CreatePriceRequest = {
|
|
19
|
+
amount,
|
|
20
|
+
currency,
|
|
21
|
+
interval,
|
|
22
|
+
intervalCount,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# CreateSportRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**clubId** | **string** | | [default to undefined]
|
|
9
|
+
**key** | **string** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { CreateSportRequest } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: CreateSportRequest = {
|
|
17
|
+
clubId,
|
|
18
|
+
key,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# CreateSubscriptionPlanRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | | [default to undefined]
|
|
9
|
+
**description** | **string** | | [default to undefined]
|
|
10
|
+
**metadata** | **object** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { CreateSubscriptionPlanRequest } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: CreateSubscriptionPlanRequest = {
|
|
18
|
+
name,
|
|
19
|
+
description,
|
|
20
|
+
metadata,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|