@tennac-booking/sdk 1.0.222 → 1.0.224
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 +3 -0
- package/README.md +7 -2
- package/api.ts +337 -36
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +251 -36
- package/dist/api.js +202 -29
- 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/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/BookingsUserApi.md +52 -0
- package/docs/CloseOpenBookingResponse.md +22 -0
- package/docs/EstimateOpenBookingJoinRequest.md +5 -5
- package/docs/EventsApi.md +55 -0
- package/docs/GetOpenEventBookingsBySport200Response.md +20 -0
- package/docs/GetOpenEventBookingsBySport200ResponseEventBookingsInner.md +46 -0
- package/docs/JobsApi.md +7 -7
- package/index.ts +1 -1
- package/package.json +1 -1
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
9
|
-
**isCreatorPayingAll** | **boolean** |
|
|
10
|
-
**
|
|
8
|
+
**playerShares** | [**Array<PlayerShare>**](PlayerShare.md) | Liste des parts de paiement par joueur (utiliser ceci OU isCreatorPayingAll) | [optional] [default to undefined]
|
|
9
|
+
**isCreatorPayingAll** | **boolean** | Indique si le joueur qui rejoint paie pour tous les joueurs qu\'il ajoute (incompatible avec playerShares) | [optional] [default to undefined]
|
|
10
|
+
**creditToUseInCents** | **number** | Crédit à utiliser en centimes | [optional] [default to undefined]
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
@@ -15,9 +15,9 @@ Name | Type | Description | Notes
|
|
|
15
15
|
import { EstimateOpenBookingJoinRequest } from '@tennac-booking/sdk';
|
|
16
16
|
|
|
17
17
|
const instance: EstimateOpenBookingJoinRequest = {
|
|
18
|
-
creditToUseInCents,
|
|
19
|
-
isCreatorPayingAll,
|
|
20
18
|
playerShares,
|
|
19
|
+
isCreatorPayingAll,
|
|
20
|
+
creditToUseInCents,
|
|
21
21
|
};
|
|
22
22
|
```
|
|
23
23
|
|
package/docs/EventsApi.md
CHANGED
|
@@ -11,6 +11,7 @@ All URIs are relative to *http://localhost*
|
|
|
11
11
|
|[**getEventById**](#geteventbyid) | **GET** /api/events/{eventId} | |
|
|
12
12
|
|[**getOpenEventBookingJoinPrice**](#getopeneventbookingjoinprice) | **GET** /api/events/{eventBookingId}/open/join-price | |
|
|
13
13
|
|[**getOpenEventBookings**](#getopeneventbookings) | **GET** /api/events/open | |
|
|
14
|
+
|[**getOpenEventBookingsBySport**](#getopeneventbookingsbysport) | **GET** /api/events/open/by-sport | |
|
|
14
15
|
|[**getPublishedEventsByClubId**](#getpublishedeventsbyclubid) | **GET** /api/events | |
|
|
15
16
|
|[**joinEvent**](#joinevent) | **POST** /api/events/{eventId}/join | |
|
|
16
17
|
|[**joinOpenEventBooking**](#joinopeneventbooking) | **POST** /api/events/{eventBookingId}/open/join | |
|
|
@@ -405,6 +406,60 @@ No authorization required
|
|
|
405
406
|
|
|
406
407
|
[[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)
|
|
407
408
|
|
|
409
|
+
# **getOpenEventBookingsBySport**
|
|
410
|
+
> GetOpenEventBookingsBySport200Response getOpenEventBookingsBySport()
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
### Example
|
|
414
|
+
|
|
415
|
+
```typescript
|
|
416
|
+
import {
|
|
417
|
+
EventsApi,
|
|
418
|
+
Configuration
|
|
419
|
+
} from '@tennac-booking/sdk';
|
|
420
|
+
|
|
421
|
+
const configuration = new Configuration();
|
|
422
|
+
const apiInstance = new EventsApi(configuration);
|
|
423
|
+
|
|
424
|
+
let clubId: string; // (optional) (default to undefined)
|
|
425
|
+
let sportId: string; // (optional) (default to undefined)
|
|
426
|
+
|
|
427
|
+
const { status, data } = await apiInstance.getOpenEventBookingsBySport(
|
|
428
|
+
clubId,
|
|
429
|
+
sportId
|
|
430
|
+
);
|
|
431
|
+
```
|
|
432
|
+
|
|
433
|
+
### Parameters
|
|
434
|
+
|
|
435
|
+
|Name | Type | Description | Notes|
|
|
436
|
+
|------------- | ------------- | ------------- | -------------|
|
|
437
|
+
| **clubId** | [**string**] | | (optional) defaults to undefined|
|
|
438
|
+
| **sportId** | [**string**] | | (optional) defaults to undefined|
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
### Return type
|
|
442
|
+
|
|
443
|
+
**GetOpenEventBookingsBySport200Response**
|
|
444
|
+
|
|
445
|
+
### Authorization
|
|
446
|
+
|
|
447
|
+
No authorization required
|
|
448
|
+
|
|
449
|
+
### HTTP request headers
|
|
450
|
+
|
|
451
|
+
- **Content-Type**: Not defined
|
|
452
|
+
- **Accept**: application/json
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
### HTTP response details
|
|
456
|
+
| Status code | Description | Response headers |
|
|
457
|
+
|-------------|-------------|------------------|
|
|
458
|
+
|**200** | List of open event bookings filtered by sport | - |
|
|
459
|
+
|**400** | Bad Request | - |
|
|
460
|
+
|
|
461
|
+
[[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)
|
|
462
|
+
|
|
408
463
|
# **getPublishedEventsByClubId**
|
|
409
464
|
> EventsListResponse getPublishedEventsByClubId()
|
|
410
465
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# GetOpenEventBookingsBySport200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**eventBookings** | [**Array<GetOpenEventBookingsBySport200ResponseEventBookingsInner>**](GetOpenEventBookingsBySport200ResponseEventBookingsInner.md) | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { GetOpenEventBookingsBySport200Response } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: GetOpenEventBookingsBySport200Response = {
|
|
16
|
+
eventBookings,
|
|
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)
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# GetOpenEventBookingsBySport200ResponseEventBookingsInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
**status** | [**EventBookingStatus**](EventBookingStatus.md) | | [default to undefined]
|
|
10
|
+
**teamName** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**players** | [**Array<EventBookingResponsePlayersInner>**](EventBookingResponsePlayersInner.md) | | [default to undefined]
|
|
12
|
+
**paymentPerPlayers** | [**Array<EventBookingResponsePaymentPerPlayersInner>**](EventBookingResponsePaymentPerPlayersInner.md) | | [optional] [default to undefined]
|
|
13
|
+
**setupLimitDate** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**cancellationLimitDate** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**setupStatus** | [**EventBookingResponseSetupStatus**](EventBookingResponseSetupStatus.md) | | [optional] [default to undefined]
|
|
16
|
+
**amount** | **number** | | [optional] [default to undefined]
|
|
17
|
+
**createdAt** | **string** | | [default to undefined]
|
|
18
|
+
**updatedAt** | **string** | | [default to undefined]
|
|
19
|
+
**clubId** | **string** | | [optional] [default to undefined]
|
|
20
|
+
**eventId** | **string** | | [default to undefined]
|
|
21
|
+
**event** | **any** | | [optional] [default to undefined]
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import { GetOpenEventBookingsBySport200ResponseEventBookingsInner } from '@tennac-booking/sdk';
|
|
27
|
+
|
|
28
|
+
const instance: GetOpenEventBookingsBySport200ResponseEventBookingsInner = {
|
|
29
|
+
id,
|
|
30
|
+
status,
|
|
31
|
+
teamName,
|
|
32
|
+
players,
|
|
33
|
+
paymentPerPlayers,
|
|
34
|
+
setupLimitDate,
|
|
35
|
+
cancellationLimitDate,
|
|
36
|
+
setupStatus,
|
|
37
|
+
amount,
|
|
38
|
+
createdAt,
|
|
39
|
+
updatedAt,
|
|
40
|
+
clubId,
|
|
41
|
+
eventId,
|
|
42
|
+
event,
|
|
43
|
+
};
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
[[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/JobsApi.md
CHANGED
|
@@ -16,7 +16,7 @@ All URIs are relative to *http://localhost*
|
|
|
16
16
|
# **captureExpiringAuthorizations**
|
|
17
17
|
> JobResult captureExpiringAuthorizations()
|
|
18
18
|
|
|
19
|
-
Job: Capturer les autorisations de paiement qui expirent bientôt
|
|
19
|
+
Job: Capturer les autorisations de paiement qui expirent bientôt Fréquence recommandée: Toutes les 30 minutes
|
|
20
20
|
|
|
21
21
|
### Example
|
|
22
22
|
|
|
@@ -60,7 +60,7 @@ No authorization required
|
|
|
60
60
|
# **capturePastReservations**
|
|
61
61
|
> JobResult capturePastReservations()
|
|
62
62
|
|
|
63
|
-
Job: Capturer les paiements pour les réservations passées
|
|
63
|
+
Job: Capturer les paiements pour les réservations passées Fréquence recommandée: Toutes les heures
|
|
64
64
|
|
|
65
65
|
### Example
|
|
66
66
|
|
|
@@ -104,7 +104,7 @@ No authorization required
|
|
|
104
104
|
# **expireBookingWaitingPayments**
|
|
105
105
|
> JobResult expireBookingWaitingPayments()
|
|
106
106
|
|
|
107
|
-
Job: Expirer les réservations en attente de paiement
|
|
107
|
+
Job: Expirer les réservations en attente de paiement Fréquence recommandée: Toutes les minutes
|
|
108
108
|
|
|
109
109
|
### Example
|
|
110
110
|
|
|
@@ -148,7 +148,7 @@ No authorization required
|
|
|
148
148
|
# **expireWaitlistPayments**
|
|
149
149
|
> JobResult expireWaitlistPayments()
|
|
150
150
|
|
|
151
|
-
Job: Expirer les paiements en attente sur la waitlist
|
|
151
|
+
Job: Expirer les paiements en attente sur la waitlist Fréquence recommandée: Toutes les minutes
|
|
152
152
|
|
|
153
153
|
### Example
|
|
154
154
|
|
|
@@ -236,7 +236,7 @@ No authorization required
|
|
|
236
236
|
# **maintainSlots**
|
|
237
237
|
> JobResult maintainSlots()
|
|
238
238
|
|
|
239
|
-
Job: Maintenir les créneaux (slots)
|
|
239
|
+
Job: Maintenir les créneaux (slots) Fréquence recommandée: Une fois par jour (2h du matin)
|
|
240
240
|
|
|
241
241
|
### Example
|
|
242
242
|
|
|
@@ -280,7 +280,7 @@ No authorization required
|
|
|
280
280
|
# **releaseOldBookings**
|
|
281
281
|
> JobResult releaseOldBookings()
|
|
282
282
|
|
|
283
|
-
Job: Libérer les anciennes réservations
|
|
283
|
+
Job: Libérer les anciennes réservations Fréquence recommandée: Toutes les minutes
|
|
284
284
|
|
|
285
285
|
### Example
|
|
286
286
|
|
|
@@ -324,7 +324,7 @@ No authorization required
|
|
|
324
324
|
# **sendBookingReminders**
|
|
325
325
|
> JobResult sendBookingReminders()
|
|
326
326
|
|
|
327
|
-
Job: Envoyer les rappels de réservation et d\'événements
|
|
327
|
+
Job: Envoyer les rappels de réservation et d\'événements Fréquence recommandée: Toutes les heures
|
|
328
328
|
|
|
329
329
|
### Example
|
|
330
330
|
|
package/index.ts
CHANGED