@tennac-booking/sdk 1.0.41 → 1.0.42
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 +176 -0
- package/README.md +259 -1
- package/api.ts +16066 -889
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +11088 -826
- package/dist/api.js +8540 -31
- 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 +11088 -826
- package/dist/esm/api.js +8422 -27
- 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/BookingsApi.md +1 -1
- package/docs/ClubAnalyticsApi.md +1 -1
- package/docs/ClubsApi.md +1 -1
- package/docs/DiagnosticsApi.md +45 -0
- package/docs/EventsApi.md +1 -1
- package/docs/ManagerBookingsApi.md +1 -1
- package/docs/ManagerClubCourtsApi.md +1 -1
- package/docs/ManagerClubRolesApi.md +1 -1
- package/docs/ManagerClubSlotsApi.md +1 -1
- package/docs/ManagerClubSubscriptionsApi.md +1 -1
- package/docs/ManagerClubsApi.md +1 -1
- package/docs/ManagerEventsApi.md +1 -1
- package/docs/ManagerSportsApi.md +1 -1
- package/docs/StaffBookingsApi.md +1 -1
- package/docs/StaffClubAnalyticsApi.md +1 -1
- package/docs/StaffClubBookingsApi.md +1 -1
- package/docs/StaffClubsApi.md +1 -1
- package/docs/StaffEventsApi.md +1 -1
- package/docs/StaffProfileApi.md +1 -1
- package/docs/UserApi.md +1 -1
- package/docs/UserAuthenticationApi.md +1 -1
- package/docs/UserBookingsApi.md +1 -1
- package/docs/UserClubCourtsApi.md +1 -1
- package/docs/UserClubSlotsApi.md +1 -1
- package/docs/UserClubSportsApi.md +1 -1
- package/docs/UserClubsApi.md +1 -1
- package/docs/UserPaymentApi.md +1 -1
- package/docs/UserProfileApi.md +1 -1
- package/docs/UserSubscriptionsApi.md +1 -1
- package/docs/UsersApi.md +236 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/docs/BookingsApi.md
CHANGED
package/docs/ClubAnalyticsApi.md
CHANGED
package/docs/ClubsApi.md
CHANGED
package/docs/DiagnosticsApi.md
CHANGED
|
@@ -4,8 +4,53 @@ All URIs are relative to */api*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getSdkDiagnostics**](#getsdkdiagnostics) | **GET** /api/test/sdk-check | Vérifie que la documentation OpenAPI et le SDK sont synchronisés avec la version de l’API|
|
|
7
8
|
|[**ping**](#ping) | **GET** /tsoa-test/ping | |
|
|
8
9
|
|
|
10
|
+
# **getSdkDiagnostics**
|
|
11
|
+
> SdkDiagnosticsResponse getSdkDiagnostics()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import {
|
|
18
|
+
DiagnosticsApi,
|
|
19
|
+
Configuration
|
|
20
|
+
} from '@tennac-booking/sdk';
|
|
21
|
+
|
|
22
|
+
const configuration = new Configuration();
|
|
23
|
+
const apiInstance = new DiagnosticsApi(configuration);
|
|
24
|
+
|
|
25
|
+
const { status, data } = await apiInstance.getSdkDiagnostics();
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Parameters
|
|
29
|
+
This endpoint does not have any parameters.
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Return type
|
|
33
|
+
|
|
34
|
+
**SdkDiagnosticsResponse**
|
|
35
|
+
|
|
36
|
+
### Authorization
|
|
37
|
+
|
|
38
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
39
|
+
|
|
40
|
+
### HTTP request headers
|
|
41
|
+
|
|
42
|
+
- **Content-Type**: Not defined
|
|
43
|
+
- **Accept**: application/json
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### HTTP response details
|
|
47
|
+
| Status code | Description | Response headers |
|
|
48
|
+
|-------------|-------------|------------------|
|
|
49
|
+
|**200** | Résultat de la vérification | - |
|
|
50
|
+
|**500** | Erreur lors de la vérification | - |
|
|
51
|
+
|
|
52
|
+
[[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)
|
|
53
|
+
|
|
9
54
|
# **ping**
|
|
10
55
|
> DiagnosticsResponse ping()
|
|
11
56
|
|
package/docs/EventsApi.md
CHANGED
package/docs/ManagerClubsApi.md
CHANGED
package/docs/ManagerEventsApi.md
CHANGED
package/docs/ManagerSportsApi.md
CHANGED
package/docs/StaffBookingsApi.md
CHANGED
package/docs/StaffClubsApi.md
CHANGED
package/docs/StaffEventsApi.md
CHANGED
package/docs/StaffProfileApi.md
CHANGED
package/docs/UserApi.md
CHANGED
package/docs/UserBookingsApi.md
CHANGED
package/docs/UserClubSlotsApi.md
CHANGED
package/docs/UserClubsApi.md
CHANGED
package/docs/UserPaymentApi.md
CHANGED
package/docs/UserProfileApi.md
CHANGED
package/docs/UsersApi.md
CHANGED
|
@@ -7,6 +7,10 @@ All URIs are relative to */api*
|
|
|
7
7
|
|[**addFavoriteClub**](#addfavoriteclub) | **POST** /users/me/favorite-clubs | |
|
|
8
8
|
|[**addFavoritePlayer**](#addfavoriteplayer) | **POST** /users/me/favoritesPlayers | |
|
|
9
9
|
|[**addPaymentMethodSetup**](#addpaymentmethodsetup) | **POST** /users/addPaymentMethodSetup | |
|
|
10
|
+
|[**apiUsersMeNearestClubsGet**](#apiusersmenearestclubsget) | **GET** /api/users/me/nearest-clubs/ | Récupère les clubs proches de l’utilisateur connecté|
|
|
11
|
+
|[**apiUsersMeNearestPlayersGet**](#apiusersmenearestplayersget) | **GET** /api/users/me/nearest-players/ | Récupère les utilisateurs proches de l’utilisateur connecté|
|
|
12
|
+
|[**apiUsersNearestClubsCoordinatesGet**](#apiusersnearestclubscoordinatesget) | **GET** /api/users/nearest-clubs/coordinates | Récupère les clubs proches d’une position donnée|
|
|
13
|
+
|[**apiUsersNearestPlayersCoordinatesGet**](#apiusersnearestplayerscoordinatesget) | **GET** /api/users/nearest-players/coordinates | Récupère les utilisateurs proches d’une position donnée|
|
|
10
14
|
|[**cancelSubscription**](#cancelsubscription) | **DELETE** /users/me/subscriptions/{clubId}/{subscriptionId} | |
|
|
11
15
|
|[**changePassword**](#changepassword) | **PUT** /users/me/password | |
|
|
12
16
|
|[**confirmPaymentMethodSetup**](#confirmpaymentmethodsetup) | **POST** /users/confirmPaymentMethodSetup | |
|
|
@@ -195,6 +199,238 @@ No authorization required
|
|
|
195
199
|
|
|
196
200
|
[[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)
|
|
197
201
|
|
|
202
|
+
# **apiUsersMeNearestClubsGet**
|
|
203
|
+
> Array<Club> apiUsersMeNearestClubsGet()
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
### Example
|
|
207
|
+
|
|
208
|
+
```typescript
|
|
209
|
+
import {
|
|
210
|
+
UsersApi,
|
|
211
|
+
Configuration
|
|
212
|
+
} from '@tennac-booking/sdk';
|
|
213
|
+
|
|
214
|
+
const configuration = new Configuration();
|
|
215
|
+
const apiInstance = new UsersApi(configuration);
|
|
216
|
+
|
|
217
|
+
let radiusInKm: number; //Rayon de recherche en kilomètres (optional) (default to undefined)
|
|
218
|
+
let limit: number; //Nombre maximum de résultats (optional) (default to undefined)
|
|
219
|
+
|
|
220
|
+
const { status, data } = await apiInstance.apiUsersMeNearestClubsGet(
|
|
221
|
+
radiusInKm,
|
|
222
|
+
limit
|
|
223
|
+
);
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
### Parameters
|
|
227
|
+
|
|
228
|
+
|Name | Type | Description | Notes|
|
|
229
|
+
|------------- | ------------- | ------------- | -------------|
|
|
230
|
+
| **radiusInKm** | [**number**] | Rayon de recherche en kilomètres | (optional) defaults to undefined|
|
|
231
|
+
| **limit** | [**number**] | Nombre maximum de résultats | (optional) defaults to undefined|
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
### Return type
|
|
235
|
+
|
|
236
|
+
**Array<Club>**
|
|
237
|
+
|
|
238
|
+
### Authorization
|
|
239
|
+
|
|
240
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
241
|
+
|
|
242
|
+
### HTTP request headers
|
|
243
|
+
|
|
244
|
+
- **Content-Type**: Not defined
|
|
245
|
+
- **Accept**: application/json
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
### HTTP response details
|
|
249
|
+
| Status code | Description | Response headers |
|
|
250
|
+
|-------------|-------------|------------------|
|
|
251
|
+
|**200** | Liste des clubs à proximité | - |
|
|
252
|
+
|**401** | Non autorisé | - |
|
|
253
|
+
|**500** | Erreur serveur interne | - |
|
|
254
|
+
|
|
255
|
+
[[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)
|
|
256
|
+
|
|
257
|
+
# **apiUsersMeNearestPlayersGet**
|
|
258
|
+
> Array<UserResponse> apiUsersMeNearestPlayersGet()
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
### Example
|
|
262
|
+
|
|
263
|
+
```typescript
|
|
264
|
+
import {
|
|
265
|
+
UsersApi,
|
|
266
|
+
Configuration
|
|
267
|
+
} from '@tennac-booking/sdk';
|
|
268
|
+
|
|
269
|
+
const configuration = new Configuration();
|
|
270
|
+
const apiInstance = new UsersApi(configuration);
|
|
271
|
+
|
|
272
|
+
let radiusInKm: number; //Rayon de recherche en kilomètres (optional) (default to undefined)
|
|
273
|
+
let limit: number; //Nombre maximum de résultats (optional) (default to undefined)
|
|
274
|
+
|
|
275
|
+
const { status, data } = await apiInstance.apiUsersMeNearestPlayersGet(
|
|
276
|
+
radiusInKm,
|
|
277
|
+
limit
|
|
278
|
+
);
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
### Parameters
|
|
282
|
+
|
|
283
|
+
|Name | Type | Description | Notes|
|
|
284
|
+
|------------- | ------------- | ------------- | -------------|
|
|
285
|
+
| **radiusInKm** | [**number**] | Rayon de recherche en kilomètres | (optional) defaults to undefined|
|
|
286
|
+
| **limit** | [**number**] | Nombre maximum de résultats | (optional) defaults to undefined|
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
### Return type
|
|
290
|
+
|
|
291
|
+
**Array<UserResponse>**
|
|
292
|
+
|
|
293
|
+
### Authorization
|
|
294
|
+
|
|
295
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
296
|
+
|
|
297
|
+
### HTTP request headers
|
|
298
|
+
|
|
299
|
+
- **Content-Type**: Not defined
|
|
300
|
+
- **Accept**: application/json
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
### HTTP response details
|
|
304
|
+
| Status code | Description | Response headers |
|
|
305
|
+
|-------------|-------------|------------------|
|
|
306
|
+
|**200** | Liste des utilisateurs à proximité | - |
|
|
307
|
+
|**401** | Non autorisé | - |
|
|
308
|
+
|**500** | Erreur serveur interne | - |
|
|
309
|
+
|
|
310
|
+
[[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)
|
|
311
|
+
|
|
312
|
+
# **apiUsersNearestClubsCoordinatesGet**
|
|
313
|
+
> Array<Club> apiUsersNearestClubsCoordinatesGet()
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
### Example
|
|
317
|
+
|
|
318
|
+
```typescript
|
|
319
|
+
import {
|
|
320
|
+
UsersApi,
|
|
321
|
+
Configuration
|
|
322
|
+
} from '@tennac-booking/sdk';
|
|
323
|
+
|
|
324
|
+
const configuration = new Configuration();
|
|
325
|
+
const apiInstance = new UsersApi(configuration);
|
|
326
|
+
|
|
327
|
+
let latitude: number; //Latitude de la position (default to undefined)
|
|
328
|
+
let longitude: number; //Longitude de la position (default to undefined)
|
|
329
|
+
let radiusInKm: number; //Rayon de recherche en kilomètres (optional) (default to undefined)
|
|
330
|
+
let limit: number; //Nombre maximum de résultats (optional) (default to undefined)
|
|
331
|
+
|
|
332
|
+
const { status, data } = await apiInstance.apiUsersNearestClubsCoordinatesGet(
|
|
333
|
+
latitude,
|
|
334
|
+
longitude,
|
|
335
|
+
radiusInKm,
|
|
336
|
+
limit
|
|
337
|
+
);
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
### Parameters
|
|
341
|
+
|
|
342
|
+
|Name | Type | Description | Notes|
|
|
343
|
+
|------------- | ------------- | ------------- | -------------|
|
|
344
|
+
| **latitude** | [**number**] | Latitude de la position | defaults to undefined|
|
|
345
|
+
| **longitude** | [**number**] | Longitude de la position | defaults to undefined|
|
|
346
|
+
| **radiusInKm** | [**number**] | Rayon de recherche en kilomètres | (optional) defaults to undefined|
|
|
347
|
+
| **limit** | [**number**] | Nombre maximum de résultats | (optional) defaults to undefined|
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
### Return type
|
|
351
|
+
|
|
352
|
+
**Array<Club>**
|
|
353
|
+
|
|
354
|
+
### Authorization
|
|
355
|
+
|
|
356
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
357
|
+
|
|
358
|
+
### HTTP request headers
|
|
359
|
+
|
|
360
|
+
- **Content-Type**: Not defined
|
|
361
|
+
- **Accept**: application/json
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
### HTTP response details
|
|
365
|
+
| Status code | Description | Response headers |
|
|
366
|
+
|-------------|-------------|------------------|
|
|
367
|
+
|**200** | Liste des clubs à proximité | - |
|
|
368
|
+
|**400** | Requête invalide | - |
|
|
369
|
+
|**500** | Erreur serveur interne | - |
|
|
370
|
+
|
|
371
|
+
[[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)
|
|
372
|
+
|
|
373
|
+
# **apiUsersNearestPlayersCoordinatesGet**
|
|
374
|
+
> Array<UserResponse> apiUsersNearestPlayersCoordinatesGet()
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
### Example
|
|
378
|
+
|
|
379
|
+
```typescript
|
|
380
|
+
import {
|
|
381
|
+
UsersApi,
|
|
382
|
+
Configuration
|
|
383
|
+
} from '@tennac-booking/sdk';
|
|
384
|
+
|
|
385
|
+
const configuration = new Configuration();
|
|
386
|
+
const apiInstance = new UsersApi(configuration);
|
|
387
|
+
|
|
388
|
+
let latitude: number; //Latitude de la position (default to undefined)
|
|
389
|
+
let longitude: number; //Longitude de la position (default to undefined)
|
|
390
|
+
let radiusInKm: number; //Rayon de recherche en kilomètres (optional) (default to undefined)
|
|
391
|
+
let limit: number; //Nombre maximum de résultats (optional) (default to undefined)
|
|
392
|
+
|
|
393
|
+
const { status, data } = await apiInstance.apiUsersNearestPlayersCoordinatesGet(
|
|
394
|
+
latitude,
|
|
395
|
+
longitude,
|
|
396
|
+
radiusInKm,
|
|
397
|
+
limit
|
|
398
|
+
);
|
|
399
|
+
```
|
|
400
|
+
|
|
401
|
+
### Parameters
|
|
402
|
+
|
|
403
|
+
|Name | Type | Description | Notes|
|
|
404
|
+
|------------- | ------------- | ------------- | -------------|
|
|
405
|
+
| **latitude** | [**number**] | Latitude de la position | defaults to undefined|
|
|
406
|
+
| **longitude** | [**number**] | Longitude de la position | defaults to undefined|
|
|
407
|
+
| **radiusInKm** | [**number**] | Rayon de recherche en kilomètres | (optional) defaults to undefined|
|
|
408
|
+
| **limit** | [**number**] | Nombre maximum de résultats | (optional) defaults to undefined|
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
### Return type
|
|
412
|
+
|
|
413
|
+
**Array<UserResponse>**
|
|
414
|
+
|
|
415
|
+
### Authorization
|
|
416
|
+
|
|
417
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
418
|
+
|
|
419
|
+
### HTTP request headers
|
|
420
|
+
|
|
421
|
+
- **Content-Type**: Not defined
|
|
422
|
+
- **Accept**: application/json
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
### HTTP response details
|
|
426
|
+
| Status code | Description | Response headers |
|
|
427
|
+
|-------------|-------------|------------------|
|
|
428
|
+
|**200** | Liste des utilisateurs à proximité | - |
|
|
429
|
+
|**400** | Requête invalide | - |
|
|
430
|
+
|**500** | Erreur serveur interne | - |
|
|
431
|
+
|
|
432
|
+
[[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)
|
|
433
|
+
|
|
198
434
|
# **cancelSubscription**
|
|
199
435
|
> SubscriptionMutationResponse cancelSubscription()
|
|
200
436
|
|