@tennac-booking/sdk 1.0.77 → 1.0.79
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 +5 -16
- package/README.md +8 -24
- package/api.ts +505 -1247
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +320 -899
- package/dist/api.js +162 -396
- 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 +320 -899
- package/dist/esm/api.js +157 -395
- 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/BookingInfo.md +2 -2
- package/docs/BookingPopulated.md +2 -0
- package/docs/{AddPaymentMethodRequestBody.md → BookingPriceBody.md} +7 -5
- package/docs/BookingResponse.md +2 -0
- package/docs/BookingsApi.md +52 -0
- package/docs/ClubAnalyticsStaffApi.md +0 -167
- package/docs/ClubResponse.md +8 -0
- package/docs/ClubSettingsResponse.md +0 -2
- package/docs/CreateBookingRequest.md +2 -2
- package/docs/CreateEventRequest.md +0 -2
- package/docs/IUserAttributes.md +2 -12
- package/docs/PartialClubResponse.md +8 -0
- package/docs/PlayerPrice.md +30 -0
- package/docs/{SetupPaymentMethodRequestBody.md → QuickReservationClubSport.md} +7 -5
- package/docs/QuickReservationClubSummary.md +4 -0
- package/docs/SlotInfo.md +2 -2
- package/docs/SportsPublicApi.md +53 -0
- package/docs/StaffUserProfileResponse.md +2 -12
- package/docs/SubscribeRequestBody.md +2 -0
- package/docs/SubscriptionInfo.md +24 -0
- package/docs/UserProfileResponse.md +4 -12
- package/docs/UsersApi.md +0 -156
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/ClubPlayerBookingItem.md +0 -36
- package/docs/ClubPlayerBookingsResponse.md +0 -22
- package/docs/ClubPlayerDetailResponse.md +0 -46
- package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +0 -22
- package/docs/ClubPlayerStatisticsResponse.md +0 -42
- package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +0 -22
- package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +0 -23
- package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +0 -25
- package/docs/ClubPlayerStatisticsResponseMostPlayedPartnersInner.md +0 -26
- package/docs/ClubPlayerSubscriptionSummary.md +0 -28
- package/docs/ConfirmPaymentMethodRequestBody.md +0 -20
- package/docs/ConfirmPaymentMethodResponse.md +0 -22
- package/docs/PaymentMethodSetupResponse.md +0 -24
- package/docs/SetupPaymentMethodResponse.md +0 -24
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/BookingInfo.md
CHANGED
|
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**playersIds** | **Array<string>** | Liste des IDs des joueurs | [default to undefined]
|
|
12
12
|
**status** | [**BookingStatus**](BookingStatus.md) | | [default to undefined]
|
|
13
13
|
**totalPrice** | **number** | Prix total en euros | [default to undefined]
|
|
14
|
-
**
|
|
14
|
+
**slotIds** | **Array<string>** | ID du créneau | [default to undefined]
|
|
15
15
|
**isCreatorPayingAll** | **boolean** | Indique si le créateur paie pour tous | [default to undefined]
|
|
16
16
|
**createdAt** | **string** | Date de création | [default to undefined]
|
|
17
17
|
**updatedAt** | **string** | Date de mise à jour | [default to undefined]
|
|
@@ -34,7 +34,7 @@ const instance: BookingInfo = {
|
|
|
34
34
|
playersIds,
|
|
35
35
|
status,
|
|
36
36
|
totalPrice,
|
|
37
|
-
|
|
37
|
+
slotIds,
|
|
38
38
|
isCreatorPayingAll,
|
|
39
39
|
createdAt,
|
|
40
40
|
updatedAt,
|
package/docs/BookingPopulated.md
CHANGED
|
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
|
|
|
14
14
|
**noShowChargeAmount** | **number** | | [optional] [default to undefined]
|
|
15
15
|
**totalPrice** | **number** | | [default to undefined]
|
|
16
16
|
**isCreatorPayingAll** | **boolean** | | [default to undefined]
|
|
17
|
+
**playersIds** | **Array<string>** | | [default to undefined]
|
|
17
18
|
**history** | [**Array<BookingHistoryPopulated>**](BookingHistoryPopulated.md) | | [default to undefined]
|
|
18
19
|
**status** | [**BookingStatus**](BookingStatus.md) | | [default to undefined]
|
|
19
20
|
**cancelledByManager** | **boolean** | | [optional] [default to undefined]
|
|
@@ -35,6 +36,7 @@ const instance: BookingPopulated = {
|
|
|
35
36
|
noShowChargeAmount,
|
|
36
37
|
totalPrice,
|
|
37
38
|
isCreatorPayingAll,
|
|
39
|
+
playersIds,
|
|
38
40
|
history,
|
|
39
41
|
status,
|
|
40
42
|
cancelledByManager,
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
#
|
|
1
|
+
# BookingPriceBody
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
8
|
+
**slotIds** | **Array<string>** | | [default to undefined]
|
|
9
|
+
**players** | **Array<string>** | | [default to undefined]
|
|
9
10
|
|
|
10
11
|
## Example
|
|
11
12
|
|
|
12
13
|
```typescript
|
|
13
|
-
import {
|
|
14
|
+
import { BookingPriceBody } from '@tennac-booking/sdk';
|
|
14
15
|
|
|
15
|
-
const instance:
|
|
16
|
-
|
|
16
|
+
const instance: BookingPriceBody = {
|
|
17
|
+
slotIds,
|
|
18
|
+
players,
|
|
17
19
|
};
|
|
18
20
|
```
|
|
19
21
|
|
package/docs/BookingResponse.md
CHANGED
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**invoiceUrl** | **string** | URL de la facture (pour paiement en ligne) | [optional] [default to undefined]
|
|
10
10
|
**paymentLinks** | **{ [key: string]: string; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
11
11
|
**onsitePayments** | [**Array<BookingResponseOnsitePaymentsInner>**](BookingResponseOnsitePaymentsInner.md) | Paiements sur place requis | [optional] [default to undefined]
|
|
12
|
+
**setupNoShowPaymentUrl** | **string** | | [optional] [default to undefined]
|
|
12
13
|
**message** | **string** | Message de confirmation | [default to undefined]
|
|
13
14
|
|
|
14
15
|
## Example
|
|
@@ -21,6 +22,7 @@ const instance: BookingResponse = {
|
|
|
21
22
|
invoiceUrl,
|
|
22
23
|
paymentLinks,
|
|
23
24
|
onsitePayments,
|
|
25
|
+
setupNoShowPaymentUrl,
|
|
24
26
|
message,
|
|
25
27
|
};
|
|
26
28
|
```
|
package/docs/BookingsApi.md
CHANGED
|
@@ -5,6 +5,7 @@ All URIs are relative to *http://localhost*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**getBookingHistory**](#getbookinghistory) | **GET** /api/bookings/history/{bookingId} | |
|
|
8
|
+
|[**getBookingPrice**](#getbookingprice) | **POST** /api/bookings/booking-price | |
|
|
8
9
|
|[**getQuickReservationSlots**](#getquickreservationslots) | **GET** /api/bookings/quick-reservations | |
|
|
9
10
|
|
|
10
11
|
# **getBookingHistory**
|
|
@@ -58,6 +59,57 @@ const { status, data } = await apiInstance.getBookingHistory(
|
|
|
58
59
|
|
|
59
60
|
[[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)
|
|
60
61
|
|
|
62
|
+
# **getBookingPrice**
|
|
63
|
+
> Array<PlayerPrice> getBookingPrice(bookingPriceBody)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
### Example
|
|
67
|
+
|
|
68
|
+
```typescript
|
|
69
|
+
import {
|
|
70
|
+
BookingsApi,
|
|
71
|
+
Configuration,
|
|
72
|
+
BookingPriceBody
|
|
73
|
+
} from '@tennac-booking/sdk';
|
|
74
|
+
|
|
75
|
+
const configuration = new Configuration();
|
|
76
|
+
const apiInstance = new BookingsApi(configuration);
|
|
77
|
+
|
|
78
|
+
let bookingPriceBody: BookingPriceBody; //
|
|
79
|
+
|
|
80
|
+
const { status, data } = await apiInstance.getBookingPrice(
|
|
81
|
+
bookingPriceBody
|
|
82
|
+
);
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Parameters
|
|
86
|
+
|
|
87
|
+
|Name | Type | Description | Notes|
|
|
88
|
+
|------------- | ------------- | ------------- | -------------|
|
|
89
|
+
| **bookingPriceBody** | **BookingPriceBody**| | |
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
### Return type
|
|
93
|
+
|
|
94
|
+
**Array<PlayerPrice>**
|
|
95
|
+
|
|
96
|
+
### Authorization
|
|
97
|
+
|
|
98
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
99
|
+
|
|
100
|
+
### HTTP request headers
|
|
101
|
+
|
|
102
|
+
- **Content-Type**: application/json
|
|
103
|
+
- **Accept**: application/json
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
### HTTP response details
|
|
107
|
+
| Status code | Description | Response headers |
|
|
108
|
+
|-------------|-------------|------------------|
|
|
109
|
+
|**200** | Réservations journalières récupérées | - |
|
|
110
|
+
|
|
111
|
+
[[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)
|
|
112
|
+
|
|
61
113
|
# **getQuickReservationSlots**
|
|
62
114
|
> QuickReservationResponse getQuickReservationSlots()
|
|
63
115
|
|
|
@@ -5,9 +5,6 @@ All URIs are relative to *http://localhost*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**getAnalyticsBySport**](#getanalyticsbysport) | **GET** /api/club-analytics/sport/{sportId}/analytics | |
|
|
8
|
-
|[**getClubPlayerBookingsById**](#getclubplayerbookingsbyid) | **GET** /api/club-analytics/players/{playerId}/bookings | |
|
|
9
|
-
|[**getClubPlayerById**](#getclubplayerbyid) | **GET** /api/club-analytics/players/{playerId} | |
|
|
10
|
-
|[**getClubPlayerStatisticsById**](#getclubplayerstatisticsbyid) | **GET** /api/club-analytics/players/{playerId}/statistics | |
|
|
11
8
|
|[**getClubPlayers**](#getclubplayers) | **GET** /api/club-analytics/players | |
|
|
12
9
|
|[**getDailyTurnOver**](#getdailyturnover) | **GET** /api/club-analytics/daily-turnover | |
|
|
13
10
|
|[**getGenderPercentage**](#getgenderpercentage) | **GET** /api/club-analytics/gender-percentage | |
|
|
@@ -72,170 +69,6 @@ const { status, data } = await apiInstance.getAnalyticsBySport(
|
|
|
72
69
|
|
|
73
70
|
[[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)
|
|
74
71
|
|
|
75
|
-
# **getClubPlayerBookingsById**
|
|
76
|
-
> ClubPlayerBookingsResponse getClubPlayerBookingsById()
|
|
77
|
-
|
|
78
|
-
Récupère les réservations d\'un joueur par son ID (à venir et passées)
|
|
79
|
-
|
|
80
|
-
### Example
|
|
81
|
-
|
|
82
|
-
```typescript
|
|
83
|
-
import {
|
|
84
|
-
ClubAnalyticsStaffApi,
|
|
85
|
-
Configuration
|
|
86
|
-
} from '@tennac-booking/sdk';
|
|
87
|
-
|
|
88
|
-
const configuration = new Configuration();
|
|
89
|
-
const apiInstance = new ClubAnalyticsStaffApi(configuration);
|
|
90
|
-
|
|
91
|
-
let playerId: string; // (default to undefined)
|
|
92
|
-
|
|
93
|
-
const { status, data } = await apiInstance.getClubPlayerBookingsById(
|
|
94
|
-
playerId
|
|
95
|
-
);
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
### Parameters
|
|
99
|
-
|
|
100
|
-
|Name | Type | Description | Notes|
|
|
101
|
-
|------------- | ------------- | ------------- | -------------|
|
|
102
|
-
| **playerId** | [**string**] | | defaults to undefined|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
### Return type
|
|
106
|
-
|
|
107
|
-
**ClubPlayerBookingsResponse**
|
|
108
|
-
|
|
109
|
-
### Authorization
|
|
110
|
-
|
|
111
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
112
|
-
|
|
113
|
-
### HTTP request headers
|
|
114
|
-
|
|
115
|
-
- **Content-Type**: Not defined
|
|
116
|
-
- **Accept**: application/json
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
### HTTP response details
|
|
120
|
-
| Status code | Description | Response headers |
|
|
121
|
-
|-------------|-------------|------------------|
|
|
122
|
-
|**200** | Réservations du joueur | - |
|
|
123
|
-
|**400** | Bad Request | - |
|
|
124
|
-
|**401** | Unauthorized | - |
|
|
125
|
-
|**500** | Server Error | - |
|
|
126
|
-
|
|
127
|
-
[[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)
|
|
128
|
-
|
|
129
|
-
# **getClubPlayerById**
|
|
130
|
-
> ClubPlayerDetailResponse getClubPlayerById()
|
|
131
|
-
|
|
132
|
-
Récupère les informations détaillées d\'un joueur par son ID
|
|
133
|
-
|
|
134
|
-
### Example
|
|
135
|
-
|
|
136
|
-
```typescript
|
|
137
|
-
import {
|
|
138
|
-
ClubAnalyticsStaffApi,
|
|
139
|
-
Configuration
|
|
140
|
-
} from '@tennac-booking/sdk';
|
|
141
|
-
|
|
142
|
-
const configuration = new Configuration();
|
|
143
|
-
const apiInstance = new ClubAnalyticsStaffApi(configuration);
|
|
144
|
-
|
|
145
|
-
let playerId: string; // (default to undefined)
|
|
146
|
-
|
|
147
|
-
const { status, data } = await apiInstance.getClubPlayerById(
|
|
148
|
-
playerId
|
|
149
|
-
);
|
|
150
|
-
```
|
|
151
|
-
|
|
152
|
-
### Parameters
|
|
153
|
-
|
|
154
|
-
|Name | Type | Description | Notes|
|
|
155
|
-
|------------- | ------------- | ------------- | -------------|
|
|
156
|
-
| **playerId** | [**string**] | | defaults to undefined|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
### Return type
|
|
160
|
-
|
|
161
|
-
**ClubPlayerDetailResponse**
|
|
162
|
-
|
|
163
|
-
### Authorization
|
|
164
|
-
|
|
165
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
166
|
-
|
|
167
|
-
### HTTP request headers
|
|
168
|
-
|
|
169
|
-
- **Content-Type**: Not defined
|
|
170
|
-
- **Accept**: application/json
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
### HTTP response details
|
|
174
|
-
| Status code | Description | Response headers |
|
|
175
|
-
|-------------|-------------|------------------|
|
|
176
|
-
|**200** | Informations du joueur | - |
|
|
177
|
-
|**400** | Bad Request | - |
|
|
178
|
-
|**401** | Unauthorized | - |
|
|
179
|
-
|**404** | Not Found | - |
|
|
180
|
-
|**500** | Server Error | - |
|
|
181
|
-
|
|
182
|
-
[[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)
|
|
183
|
-
|
|
184
|
-
# **getClubPlayerStatisticsById**
|
|
185
|
-
> ClubPlayerStatisticsResponse getClubPlayerStatisticsById()
|
|
186
|
-
|
|
187
|
-
Récupère les statistiques d\'un joueur pour le staff
|
|
188
|
-
|
|
189
|
-
### Example
|
|
190
|
-
|
|
191
|
-
```typescript
|
|
192
|
-
import {
|
|
193
|
-
ClubAnalyticsStaffApi,
|
|
194
|
-
Configuration
|
|
195
|
-
} from '@tennac-booking/sdk';
|
|
196
|
-
|
|
197
|
-
const configuration = new Configuration();
|
|
198
|
-
const apiInstance = new ClubAnalyticsStaffApi(configuration);
|
|
199
|
-
|
|
200
|
-
let playerId: string; // (default to undefined)
|
|
201
|
-
|
|
202
|
-
const { status, data } = await apiInstance.getClubPlayerStatisticsById(
|
|
203
|
-
playerId
|
|
204
|
-
);
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
### Parameters
|
|
208
|
-
|
|
209
|
-
|Name | Type | Description | Notes|
|
|
210
|
-
|------------- | ------------- | ------------- | -------------|
|
|
211
|
-
| **playerId** | [**string**] | | defaults to undefined|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
### Return type
|
|
215
|
-
|
|
216
|
-
**ClubPlayerStatisticsResponse**
|
|
217
|
-
|
|
218
|
-
### Authorization
|
|
219
|
-
|
|
220
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
221
|
-
|
|
222
|
-
### HTTP request headers
|
|
223
|
-
|
|
224
|
-
- **Content-Type**: Not defined
|
|
225
|
-
- **Accept**: application/json
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
### HTTP response details
|
|
229
|
-
| Status code | Description | Response headers |
|
|
230
|
-
|-------------|-------------|------------------|
|
|
231
|
-
|**200** | Statistiques du joueur | - |
|
|
232
|
-
|**400** | Bad Request | - |
|
|
233
|
-
|**401** | Unauthorized | - |
|
|
234
|
-
|**404** | Not Found | - |
|
|
235
|
-
|**500** | Server Error | - |
|
|
236
|
-
|
|
237
|
-
[[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)
|
|
238
|
-
|
|
239
72
|
# **getClubPlayers**
|
|
240
73
|
> Array<ClubPlayerResponse> getClubPlayers()
|
|
241
74
|
|
package/docs/ClubResponse.md
CHANGED
|
@@ -19,6 +19,10 @@ Name | Type | Description | Notes
|
|
|
19
19
|
**clubDashBoardUrl** | **string** | URL du dashboard Stripe du club | [optional] [default to undefined]
|
|
20
20
|
**isNoShowEnabled** | **boolean** | Indique si la fonctionnalité \"no show\" est activée | [optional] [default to undefined]
|
|
21
21
|
**sports** | **Array<string>** | Liste des sports proposés par le club (identifiés par leur clé) | [optional] [default to undefined]
|
|
22
|
+
**allowMultipleBookingsAtTheSameTime** | **boolean** | Autoriser plusieurs réservations en même temps | [optional] [default to undefined]
|
|
23
|
+
**sameTimeBookingsLimit** | **number** | Limite de réservations simultanées (même créneau) | [optional] [default to undefined]
|
|
24
|
+
**cancellationLimitHours** | **number** | Limite d\'annulation en heures | [optional] [default to undefined]
|
|
25
|
+
**maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [optional] [default to undefined]
|
|
22
26
|
**createdAt** | [**ClubResponseCreatedAt**](ClubResponseCreatedAt.md) | | [optional] [default to undefined]
|
|
23
27
|
**updatedAt** | [**ClubResponseUpdatedAt**](ClubResponseUpdatedAt.md) | | [optional] [default to undefined]
|
|
24
28
|
|
|
@@ -42,6 +46,10 @@ const instance: ClubResponse = {
|
|
|
42
46
|
clubDashBoardUrl,
|
|
43
47
|
isNoShowEnabled,
|
|
44
48
|
sports,
|
|
49
|
+
allowMultipleBookingsAtTheSameTime,
|
|
50
|
+
sameTimeBookingsLimit,
|
|
51
|
+
cancellationLimitHours,
|
|
52
|
+
maxWeeklyBookings,
|
|
45
53
|
createdAt,
|
|
46
54
|
updatedAt,
|
|
47
55
|
};
|
|
@@ -9,7 +9,6 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**_id** | **string** | ID unique des paramètres | [default to undefined]
|
|
10
10
|
**clubId** | **string** | ID du club | [default to undefined]
|
|
11
11
|
**maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [default to undefined]
|
|
12
|
-
**allowMultipleBookingsAtTheSameTime** | **boolean** | Autoriser plusieurs réservations en même temps | [default to undefined]
|
|
13
12
|
**sameTimeBookingsLimit** | **number** | Limite de réservations simultanées | [optional] [default to undefined]
|
|
14
13
|
**cancellationLimitHours** | **number** | Limite d\'annulation en heures | [default to undefined]
|
|
15
14
|
**availabilityPeriodInDays** | **number** | Période de disponibilité en jours | [default to undefined]
|
|
@@ -27,7 +26,6 @@ const instance: ClubSettingsResponse = {
|
|
|
27
26
|
_id,
|
|
28
27
|
clubId,
|
|
29
28
|
maxWeeklyBookings,
|
|
30
|
-
allowMultipleBookingsAtTheSameTime,
|
|
31
29
|
sameTimeBookingsLimit,
|
|
32
30
|
cancellationLimitHours,
|
|
33
31
|
availabilityPeriodInDays,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
8
|
+
**slotIds** | **Array<string>** | ID du créneau à réserver | [default to undefined]
|
|
9
9
|
**players** | [**Array<PlayerWithPaymentMethod>**](PlayerWithPaymentMethod.md) | Liste des joueurs avec leurs méthodes de paiement | [default to undefined]
|
|
10
10
|
**isCreatorPayingAll** | **boolean** | Indique si le créateur paie pour tous les joueurs | [optional] [default to undefined]
|
|
11
11
|
**paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
|
|
@@ -17,7 +17,7 @@ Name | Type | Description | Notes
|
|
|
17
17
|
import { CreateBookingRequest } from '@tennac-booking/sdk';
|
|
18
18
|
|
|
19
19
|
const instance: CreateBookingRequest = {
|
|
20
|
-
|
|
20
|
+
slotIds,
|
|
21
21
|
players,
|
|
22
22
|
isCreatorPayingAll,
|
|
23
23
|
paymentMethod,
|
|
@@ -22,7 +22,6 @@ Name | Type | Description | Notes
|
|
|
22
22
|
**teamLimit** | **number** | | [optional] [default to undefined]
|
|
23
23
|
**price** | **number** | | [optional] [default to undefined]
|
|
24
24
|
**subscriberPrices** | [**Array<SubscriberPrice>**](SubscriberPrice.md) | | [optional] [default to undefined]
|
|
25
|
-
**levels** | **Array<number>** | | [optional] [default to undefined]
|
|
26
25
|
**visibilityType** | **string** | | [default to undefined]
|
|
27
26
|
|
|
28
27
|
## Example
|
|
@@ -48,7 +47,6 @@ const instance: CreateEventRequest = {
|
|
|
48
47
|
teamLimit,
|
|
49
48
|
price,
|
|
50
49
|
subscriberPrices,
|
|
51
|
-
levels,
|
|
52
50
|
visibilityType,
|
|
53
51
|
};
|
|
54
52
|
```
|
package/docs/IUserAttributes.md
CHANGED
|
@@ -13,9 +13,7 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**gender** | [**Gender**](Gender.md) | | [optional] [default to undefined]
|
|
14
14
|
**location** | [**IUserLocation**](IUserLocation.md) | | [optional] [default to undefined]
|
|
15
15
|
**isAccountVerified** | **boolean** | | [default to undefined]
|
|
16
|
-
**isCreditCardRegistered** | **boolean** | | [optional] [default to undefined]
|
|
17
16
|
**levelBySports** | [**Array<ILevelBySports>**](ILevelBySports.md) | | [optional] [default to undefined]
|
|
18
|
-
**stripeCustomerId** | **string** | | [optional] [default to undefined]
|
|
19
17
|
**phone** | **string** | | [optional] [default to undefined]
|
|
20
18
|
**password** | **string** | | [optional] [default to undefined]
|
|
21
19
|
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
@@ -28,15 +26,12 @@ Name | Type | Description | Notes
|
|
|
28
26
|
**createdAt** | **string** | | [default to undefined]
|
|
29
27
|
**updatedAt** | **string** | | [default to undefined]
|
|
30
28
|
**isLevelCertified** | **boolean** | | [optional] [default to undefined]
|
|
31
|
-
**paymentMethods** | **Array<string>** | | [optional] [default to undefined]
|
|
32
|
-
**defaultPaymentMethodId** | **string** | | [optional] [default to undefined]
|
|
33
|
-
**paymentMethodSetupCompleted** | **boolean** | | [default to undefined]
|
|
34
|
-
**setupIntentId** | **string** | | [optional] [default to undefined]
|
|
35
29
|
**favoriteClubs** | **Array<string>** | | [optional] [default to undefined]
|
|
36
30
|
**description** | **string** | | [optional] [default to undefined]
|
|
37
31
|
**isProfileVisible** | **boolean** | | [default to undefined]
|
|
38
32
|
**favoritePlayers** | **Array<string>** | | [optional] [default to undefined]
|
|
39
33
|
**sports** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
34
|
+
**stripeCustomerId** | **string** | | [optional] [default to undefined]
|
|
40
35
|
|
|
41
36
|
## Example
|
|
42
37
|
|
|
@@ -52,9 +47,7 @@ const instance: IUserAttributes = {
|
|
|
52
47
|
gender,
|
|
53
48
|
location,
|
|
54
49
|
isAccountVerified,
|
|
55
|
-
isCreditCardRegistered,
|
|
56
50
|
levelBySports,
|
|
57
|
-
stripeCustomerId,
|
|
58
51
|
phone,
|
|
59
52
|
password,
|
|
60
53
|
profilePicture,
|
|
@@ -67,15 +60,12 @@ const instance: IUserAttributes = {
|
|
|
67
60
|
createdAt,
|
|
68
61
|
updatedAt,
|
|
69
62
|
isLevelCertified,
|
|
70
|
-
paymentMethods,
|
|
71
|
-
defaultPaymentMethodId,
|
|
72
|
-
paymentMethodSetupCompleted,
|
|
73
|
-
setupIntentId,
|
|
74
63
|
favoriteClubs,
|
|
75
64
|
description,
|
|
76
65
|
isProfileVisible,
|
|
77
66
|
favoritePlayers,
|
|
78
67
|
sports,
|
|
68
|
+
stripeCustomerId,
|
|
79
69
|
};
|
|
80
70
|
```
|
|
81
71
|
|
|
@@ -20,6 +20,10 @@ Name | Type | Description | Notes
|
|
|
20
20
|
**clubDashBoardUrl** | **string** | URL du dashboard Stripe du club | [optional] [default to undefined]
|
|
21
21
|
**isNoShowEnabled** | **boolean** | Indique si la fonctionnalité \"no show\" est activée | [optional] [default to undefined]
|
|
22
22
|
**sports** | **Array<string>** | Liste des sports proposés par le club (identifiés par leur clé) | [optional] [default to undefined]
|
|
23
|
+
**allowMultipleBookingsAtTheSameTime** | **boolean** | Autoriser plusieurs réservations en même temps | [optional] [default to undefined]
|
|
24
|
+
**sameTimeBookingsLimit** | **number** | Limite de réservations simultanées (même créneau) | [optional] [default to undefined]
|
|
25
|
+
**cancellationLimitHours** | **number** | Limite d\'annulation en heures | [optional] [default to undefined]
|
|
26
|
+
**maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [optional] [default to undefined]
|
|
23
27
|
**createdAt** | [**ClubResponseCreatedAt**](ClubResponseCreatedAt.md) | | [optional] [default to undefined]
|
|
24
28
|
**updatedAt** | [**ClubResponseUpdatedAt**](ClubResponseUpdatedAt.md) | | [optional] [default to undefined]
|
|
25
29
|
|
|
@@ -43,6 +47,10 @@ const instance: PartialClubResponse = {
|
|
|
43
47
|
clubDashBoardUrl,
|
|
44
48
|
isNoShowEnabled,
|
|
45
49
|
sports,
|
|
50
|
+
allowMultipleBookingsAtTheSameTime,
|
|
51
|
+
sameTimeBookingsLimit,
|
|
52
|
+
cancellationLimitHours,
|
|
53
|
+
maxWeeklyBookings,
|
|
46
54
|
createdAt,
|
|
47
55
|
updatedAt,
|
|
48
56
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# PlayerPrice
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**playerId** | **string** | | [default to undefined]
|
|
9
|
+
**firstName** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**lastName** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**subscriptions** | [**Array<SubscriptionInfo>**](SubscriptionInfo.md) | | [default to undefined]
|
|
12
|
+
**creditAvailablesInCents** | **number** | | [optional] [default to undefined]
|
|
13
|
+
**price** | **number** | | [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { PlayerPrice } from '@tennac-booking/sdk';
|
|
19
|
+
|
|
20
|
+
const instance: PlayerPrice = {
|
|
21
|
+
playerId,
|
|
22
|
+
firstName,
|
|
23
|
+
lastName,
|
|
24
|
+
subscriptions,
|
|
25
|
+
creditAvailablesInCents,
|
|
26
|
+
price,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
#
|
|
1
|
+
# QuickReservationClubSport
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
8
|
+
**id** | **string** | ID du sport | [default to undefined]
|
|
9
|
+
**key** | **string** | Clé du sport | [optional] [default to undefined]
|
|
9
10
|
|
|
10
11
|
## Example
|
|
11
12
|
|
|
12
13
|
```typescript
|
|
13
|
-
import {
|
|
14
|
+
import { QuickReservationClubSport } from '@tennac-booking/sdk';
|
|
14
15
|
|
|
15
|
-
const instance:
|
|
16
|
-
|
|
16
|
+
const instance: QuickReservationClubSport = {
|
|
17
|
+
id,
|
|
18
|
+
key,
|
|
17
19
|
};
|
|
18
20
|
```
|
|
19
21
|
|
|
@@ -7,9 +7,11 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**clubId** | **string** | ID du club | [default to undefined]
|
|
9
9
|
**clubName** | **string** | Nom du club | [default to undefined]
|
|
10
|
+
**description** | **string** | Description du club | [optional] [default to undefined]
|
|
10
11
|
**distanceInMeters** | **number** | Distance par rapport à la recherche, en mètres | [default to undefined]
|
|
11
12
|
**location** | [**QuickReservationClubSummaryLocation**](QuickReservationClubSummaryLocation.md) | | [optional] [default to undefined]
|
|
12
13
|
**slots** | [**Array<QuickReservationSlotSummary>**](QuickReservationSlotSummary.md) | Créneaux disponibles correspondant aux filtres | [default to undefined]
|
|
14
|
+
**sports** | [**Array<QuickReservationClubSport>**](QuickReservationClubSport.md) | Sports disponibles dans le club | [optional] [default to undefined]
|
|
13
15
|
|
|
14
16
|
## Example
|
|
15
17
|
|
|
@@ -19,9 +21,11 @@ import { QuickReservationClubSummary } from '@tennac-booking/sdk';
|
|
|
19
21
|
const instance: QuickReservationClubSummary = {
|
|
20
22
|
clubId,
|
|
21
23
|
clubName,
|
|
24
|
+
description,
|
|
22
25
|
distanceInMeters,
|
|
23
26
|
location,
|
|
24
27
|
slots,
|
|
28
|
+
sports,
|
|
25
29
|
};
|
|
26
30
|
```
|
|
27
31
|
|