@tennac-booking/sdk 1.0.201 → 1.0.203
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 +433 -430
- package/README.md +2 -0
- package/api.ts +124 -31
- package/dist/api.d.ts +126 -31
- package/dist/api.js +42 -33
- package/dist/esm/api.d.ts +126 -31
- package/dist/esm/api.js +37 -28
- package/docs/ClubPricingPeriodPayload.md +32 -0
- package/docs/ClubPricingPeriodResponse.md +2 -2
- package/docs/ClubResponse.md +10 -0
- package/docs/CourtEnvironment.md +10 -0
- package/docs/JobsApi.md +7 -7
- package/docs/UpdateClubHoursSettingsRequest.md +1 -1
- package/package.json +1 -1
- package/docs/StaffEventsPaginatedResponse.md +0 -26
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# ClubPricingPeriodPayload
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**_id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**name** | **string** | | [default to undefined]
|
|
11
|
+
**weekDays** | [**Array<WeekdayKey>**](WeekdayKey.md) | | [default to undefined]
|
|
12
|
+
**startTime** | **number** | | [default to undefined]
|
|
13
|
+
**endTime** | **number** | | [default to undefined]
|
|
14
|
+
**priceVariation** | **number** | | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { ClubPricingPeriodPayload } from '@tennac-booking/sdk';
|
|
20
|
+
|
|
21
|
+
const instance: ClubPricingPeriodPayload = {
|
|
22
|
+
_id,
|
|
23
|
+
id,
|
|
24
|
+
name,
|
|
25
|
+
weekDays,
|
|
26
|
+
startTime,
|
|
27
|
+
endTime,
|
|
28
|
+
priceVariation,
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[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,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
8
|
+
**_id** | **string** | | [default to undefined]
|
|
9
9
|
**name** | **string** | | [default to undefined]
|
|
10
10
|
**weekDays** | [**Array<WeekdayKey>**](WeekdayKey.md) | | [default to undefined]
|
|
11
11
|
**startTime** | **number** | | [default to undefined]
|
|
@@ -18,7 +18,7 @@ Name | Type | Description | Notes
|
|
|
18
18
|
import { ClubPricingPeriodResponse } from '@tennac-booking/sdk';
|
|
19
19
|
|
|
20
20
|
const instance: ClubPricingPeriodResponse = {
|
|
21
|
-
|
|
21
|
+
_id,
|
|
22
22
|
name,
|
|
23
23
|
weekDays,
|
|
24
24
|
startTime,
|
package/docs/ClubResponse.md
CHANGED
|
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
|
|
|
12
12
|
**email** | **string** | Email du club | [optional] [default to undefined]
|
|
13
13
|
**phone** | **string** | Téléphone du club | [optional] [default to undefined]
|
|
14
14
|
**picture** | **string** | URL de l\'image du club | [optional] [default to undefined]
|
|
15
|
+
**logo** | **string** | URL du logo du club (alias de picture) | [optional] [default to undefined]
|
|
15
16
|
**location** | [**ClubResponseLocation**](ClubResponseLocation.md) | | [optional] [default to undefined]
|
|
16
17
|
**isActive** | **boolean** | Statut d\'activation du club | [default to undefined]
|
|
17
18
|
**paymentFeature** | **boolean** | Indique si le club utilise la fonctionnalité de paiement | [optional] [default to undefined]
|
|
@@ -19,6 +20,10 @@ Name | Type | Description | Notes
|
|
|
19
20
|
**clubDashBoardUrl** | **string** | URL du dashboard Stripe du club | [optional] [default to undefined]
|
|
20
21
|
**isNoShowEnabled** | **boolean** | Indique si la fonctionnalité \"no show\" est activée | [optional] [default to undefined]
|
|
21
22
|
**sports** | **Array<string>** | Liste des sports proposés par le club (identifiés par leur clé) | [optional] [default to undefined]
|
|
23
|
+
**courtsCount** | **number** | Nombre total de terrains du club | [optional] [default to undefined]
|
|
24
|
+
**courtsCountBySport** | **{ [key: string]: number; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
25
|
+
**surfacesBySport** | **{ [key: string]: Array<SurfaceType>; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
26
|
+
**indoorOutdoorBySport** | **{ [key: string]: Array<CourtEnvironment>; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
22
27
|
**allowMultipleBookingsAtTheSameTime** | **boolean** | Autoriser plusieurs réservations en même temps | [optional] [default to undefined]
|
|
23
28
|
**maxSlotsPerBooking** | **number** | | [optional] [default to undefined]
|
|
24
29
|
**cancellationLimitHours** | **number** | Limite d\'annulation en heures | [optional] [default to undefined]
|
|
@@ -39,6 +44,7 @@ const instance: ClubResponse = {
|
|
|
39
44
|
email,
|
|
40
45
|
phone,
|
|
41
46
|
picture,
|
|
47
|
+
logo,
|
|
42
48
|
location,
|
|
43
49
|
isActive,
|
|
44
50
|
paymentFeature,
|
|
@@ -46,6 +52,10 @@ const instance: ClubResponse = {
|
|
|
46
52
|
clubDashBoardUrl,
|
|
47
53
|
isNoShowEnabled,
|
|
48
54
|
sports,
|
|
55
|
+
courtsCount,
|
|
56
|
+
courtsCountBySport,
|
|
57
|
+
surfacesBySport,
|
|
58
|
+
indoorOutdoorBySport,
|
|
49
59
|
allowMultipleBookingsAtTheSameTime,
|
|
50
60
|
maxSlotsPerBooking,
|
|
51
61
|
cancellationLimitHours,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CourtEnvironment
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Enum
|
|
5
|
+
|
|
6
|
+
* `Indoor` (value: `'indoor'`)
|
|
7
|
+
|
|
8
|
+
* `Outdoor` (value: `'outdoor'`)
|
|
9
|
+
|
|
10
|
+
[[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
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**schedule** | [**PartialRecordWeekdayKeyClubDayScheduleOrNullOrUndefined**](PartialRecordWeekdayKeyClubDayScheduleOrNullOrUndefined.md) | | [optional] [default to undefined]
|
|
9
|
-
**pricingPeriods** | [**Array<
|
|
9
|
+
**pricingPeriods** | [**Array<ClubPricingPeriodPayload>**](ClubPricingPeriodPayload.md) | | [optional] [default to undefined]
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
package/package.json
CHANGED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# StaffEventsPaginatedResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**upcoming** | [**Array<EventResponse>**](EventResponse.md) | | [default to undefined]
|
|
9
|
-
**past** | [**Array<EventResponse>**](EventResponse.md) | | [default to undefined]
|
|
10
|
-
**upcomingPagination** | [**PaginationInfo**](PaginationInfo.md) | | [default to undefined]
|
|
11
|
-
**pastPagination** | [**PaginationInfo**](PaginationInfo.md) | | [default to undefined]
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import { StaffEventsPaginatedResponse } from '@tennac-booking/sdk';
|
|
17
|
-
|
|
18
|
-
const instance: StaffEventsPaginatedResponse = {
|
|
19
|
-
upcoming,
|
|
20
|
-
past,
|
|
21
|
-
upcomingPagination,
|
|
22
|
-
pastPagination,
|
|
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)
|