@tennac-booking/sdk 1.0.148 → 1.0.150
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 +368 -364
- package/README.md +11 -2
- package/api.ts +638 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +419 -1
- package/dist/api.js +336 -1
- 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 +419 -1
- package/dist/esm/api.js +336 -1
- 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 +160 -0
- package/docs/CreateGuestBookingRequest.md +32 -0
- package/docs/EstimateOpenEventBookingJoinPrice200Response.md +28 -0
- package/docs/EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo.md +24 -0
- package/docs/EventsApi.md +111 -0
- package/docs/Gender.md +4 -0
- package/docs/GetOpenEventBookingJoinPrice200Response.md +22 -0
- package/docs/IUserAttributes.md +4 -0
- package/docs/RegisterRequestBody.md +4 -0
- package/docs/StaffUserProfileResponse.md +4 -0
- package/docs/UpdateUserRequestBody.md +4 -0
- package/docs/UserProfileResponse.md +4 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/docs/BookingsApi.md
CHANGED
|
@@ -4,13 +4,122 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createGuestBooking**](#createguestbooking) | **POST** /api/bookings/guest | |
|
|
8
|
+
|[**estimateOpenBookingJoinPrice**](#estimateopenbookingjoinprice) | **GET** /api/bookings/{bookingId}/open/estimate | |
|
|
7
9
|
|[**getBookingHistory**](#getbookinghistory) | **GET** /api/bookings/history/{bookingId} | |
|
|
8
10
|
|[**getBookingPrice**](#getbookingprice) | **POST** /api/bookings/booking-price | |
|
|
11
|
+
|[**getOpenBookingJoinPrice**](#getopenbookingjoinprice) | **GET** /api/bookings/{bookingId}/open/join-price | |
|
|
9
12
|
|[**getOpenBookings**](#getopenbookings) | **GET** /api/bookings/open | |
|
|
10
13
|
|[**getQuickReservationSlots**](#getquickreservationslots) | **GET** /api/bookings/quick-reservations | |
|
|
11
14
|
|[**joinOpenBooking**](#joinopenbooking) | **POST** /api/bookings/{bookingId}/open/join | |
|
|
12
15
|
|[**leaveOpenBooking**](#leaveopenbooking) | **DELETE** /api/bookings/{bookingId}/open/leave | |
|
|
13
16
|
|
|
17
|
+
# **createGuestBooking**
|
|
18
|
+
> BookingResponse createGuestBooking(createGuestBookingRequest)
|
|
19
|
+
|
|
20
|
+
Créer une réservation en tant qu\'invité (guest)
|
|
21
|
+
|
|
22
|
+
### Example
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
import {
|
|
26
|
+
BookingsApi,
|
|
27
|
+
Configuration,
|
|
28
|
+
CreateGuestBookingRequest
|
|
29
|
+
} from '@tennac-booking/sdk';
|
|
30
|
+
|
|
31
|
+
const configuration = new Configuration();
|
|
32
|
+
const apiInstance = new BookingsApi(configuration);
|
|
33
|
+
|
|
34
|
+
let createGuestBookingRequest: CreateGuestBookingRequest; //
|
|
35
|
+
|
|
36
|
+
const { status, data } = await apiInstance.createGuestBooking(
|
|
37
|
+
createGuestBookingRequest
|
|
38
|
+
);
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Parameters
|
|
42
|
+
|
|
43
|
+
|Name | Type | Description | Notes|
|
|
44
|
+
|------------- | ------------- | ------------- | -------------|
|
|
45
|
+
| **createGuestBookingRequest** | **CreateGuestBookingRequest**| | |
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### Return type
|
|
49
|
+
|
|
50
|
+
**BookingResponse**
|
|
51
|
+
|
|
52
|
+
### Authorization
|
|
53
|
+
|
|
54
|
+
No authorization required
|
|
55
|
+
|
|
56
|
+
### HTTP request headers
|
|
57
|
+
|
|
58
|
+
- **Content-Type**: application/json
|
|
59
|
+
- **Accept**: application/json
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### HTTP response details
|
|
63
|
+
| Status code | Description | Response headers |
|
|
64
|
+
|-------------|-------------|------------------|
|
|
65
|
+
|**201** | Réservation guest créée avec succès | - |
|
|
66
|
+
|
|
67
|
+
[[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)
|
|
68
|
+
|
|
69
|
+
# **estimateOpenBookingJoinPrice**
|
|
70
|
+
> EstimateOpenEventBookingJoinPrice200Response estimateOpenBookingJoinPrice()
|
|
71
|
+
|
|
72
|
+
Estimer le prix pour rejoindre une réservation ouverte
|
|
73
|
+
|
|
74
|
+
### Example
|
|
75
|
+
|
|
76
|
+
```typescript
|
|
77
|
+
import {
|
|
78
|
+
BookingsApi,
|
|
79
|
+
Configuration
|
|
80
|
+
} from '@tennac-booking/sdk';
|
|
81
|
+
|
|
82
|
+
const configuration = new Configuration();
|
|
83
|
+
const apiInstance = new BookingsApi(configuration);
|
|
84
|
+
|
|
85
|
+
let bookingId: string; // (default to undefined)
|
|
86
|
+
let creditToUseInCents: number; // (optional) (default to undefined)
|
|
87
|
+
|
|
88
|
+
const { status, data } = await apiInstance.estimateOpenBookingJoinPrice(
|
|
89
|
+
bookingId,
|
|
90
|
+
creditToUseInCents
|
|
91
|
+
);
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Parameters
|
|
95
|
+
|
|
96
|
+
|Name | Type | Description | Notes|
|
|
97
|
+
|------------- | ------------- | ------------- | -------------|
|
|
98
|
+
| **bookingId** | [**string**] | | defaults to undefined|
|
|
99
|
+
| **creditToUseInCents** | [**number**] | | (optional) defaults to undefined|
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
### Return type
|
|
103
|
+
|
|
104
|
+
**EstimateOpenEventBookingJoinPrice200Response**
|
|
105
|
+
|
|
106
|
+
### Authorization
|
|
107
|
+
|
|
108
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
109
|
+
|
|
110
|
+
### HTTP request headers
|
|
111
|
+
|
|
112
|
+
- **Content-Type**: Not defined
|
|
113
|
+
- **Accept**: application/json
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
### HTTP response details
|
|
117
|
+
| Status code | Description | Response headers |
|
|
118
|
+
|-------------|-------------|------------------|
|
|
119
|
+
|**200** | Estimation du prix calculée | - |
|
|
120
|
+
|
|
121
|
+
[[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)
|
|
122
|
+
|
|
14
123
|
# **getBookingHistory**
|
|
15
124
|
> BookingHistoryPopulated getBookingHistory()
|
|
16
125
|
|
|
@@ -113,6 +222,57 @@ const { status, data } = await apiInstance.getBookingPrice(
|
|
|
113
222
|
|
|
114
223
|
[[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)
|
|
115
224
|
|
|
225
|
+
# **getOpenBookingJoinPrice**
|
|
226
|
+
> GetOpenEventBookingJoinPrice200Response getOpenBookingJoinPrice()
|
|
227
|
+
|
|
228
|
+
Estimer simplement le prix à payer pour rejoindre une réservation ouverte
|
|
229
|
+
|
|
230
|
+
### Example
|
|
231
|
+
|
|
232
|
+
```typescript
|
|
233
|
+
import {
|
|
234
|
+
BookingsApi,
|
|
235
|
+
Configuration
|
|
236
|
+
} from '@tennac-booking/sdk';
|
|
237
|
+
|
|
238
|
+
const configuration = new Configuration();
|
|
239
|
+
const apiInstance = new BookingsApi(configuration);
|
|
240
|
+
|
|
241
|
+
let bookingId: string; // (default to undefined)
|
|
242
|
+
|
|
243
|
+
const { status, data } = await apiInstance.getOpenBookingJoinPrice(
|
|
244
|
+
bookingId
|
|
245
|
+
);
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
### Parameters
|
|
249
|
+
|
|
250
|
+
|Name | Type | Description | Notes|
|
|
251
|
+
|------------- | ------------- | ------------- | -------------|
|
|
252
|
+
| **bookingId** | [**string**] | | defaults to undefined|
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
### Return type
|
|
256
|
+
|
|
257
|
+
**GetOpenEventBookingJoinPrice200Response**
|
|
258
|
+
|
|
259
|
+
### Authorization
|
|
260
|
+
|
|
261
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
262
|
+
|
|
263
|
+
### HTTP request headers
|
|
264
|
+
|
|
265
|
+
- **Content-Type**: Not defined
|
|
266
|
+
- **Accept**: application/json
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
### HTTP response details
|
|
270
|
+
| Status code | Description | Response headers |
|
|
271
|
+
|-------------|-------------|------------------|
|
|
272
|
+
|**200** | Prix à payer calculé | - |
|
|
273
|
+
|
|
274
|
+
[[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)
|
|
275
|
+
|
|
116
276
|
# **getOpenBookings**
|
|
117
277
|
> GetOpenBookings200Response getOpenBookings()
|
|
118
278
|
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# CreateGuestBookingRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**slotIds** | **Array<string>** | ID du créneau à réserver | [default to undefined]
|
|
9
|
+
**firstName** | **string** | Prénom de l\'invité | [default to undefined]
|
|
10
|
+
**lastName** | **string** | Nom de famille de l\'invité | [default to undefined]
|
|
11
|
+
**email** | **string** | Email de l\'invité | [default to undefined]
|
|
12
|
+
**phoneNumber** | **string** | Numéro de téléphone de l\'invité | [optional] [default to undefined]
|
|
13
|
+
**paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [default to undefined]
|
|
14
|
+
**useDefaultPaymentMethod** | **boolean** | Indique si l\'utilisateur veut utiliser sa méthode de paiement par défaut | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { CreateGuestBookingRequest } from '@tennac-booking/sdk';
|
|
20
|
+
|
|
21
|
+
const instance: CreateGuestBookingRequest = {
|
|
22
|
+
slotIds,
|
|
23
|
+
firstName,
|
|
24
|
+
lastName,
|
|
25
|
+
email,
|
|
26
|
+
phoneNumber,
|
|
27
|
+
paymentMethod,
|
|
28
|
+
useDefaultPaymentMethod,
|
|
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)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# EstimateOpenEventBookingJoinPrice200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**subscriptionInfo** | [**EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo**](EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo.md) | | [optional] [default to undefined]
|
|
9
|
+
**finalPrice** | **number** | | [default to undefined]
|
|
10
|
+
**creditApplied** | **number** | | [default to undefined]
|
|
11
|
+
**discountedPrice** | **number** | | [default to undefined]
|
|
12
|
+
**basePrice** | **number** | | [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { EstimateOpenEventBookingJoinPrice200Response } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: EstimateOpenEventBookingJoinPrice200Response = {
|
|
20
|
+
subscriptionInfo,
|
|
21
|
+
finalPrice,
|
|
22
|
+
creditApplied,
|
|
23
|
+
discountedPrice,
|
|
24
|
+
basePrice,
|
|
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,24 @@
|
|
|
1
|
+
# EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**subscriptionName** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**discountPercentage** | **number** | | [optional] [default to undefined]
|
|
10
|
+
**hasSubscription** | **boolean** | | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo = {
|
|
18
|
+
subscriptionName,
|
|
19
|
+
discountPercentage,
|
|
20
|
+
hasSubscription,
|
|
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)
|
package/docs/EventsApi.md
CHANGED
|
@@ -6,7 +6,9 @@ All URIs are relative to *http://localhost*
|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**checkTeamNameAvailability**](#checkteamnameavailability) | **GET** /api/events/{eventId}/team-name-availability | |
|
|
8
8
|
|[**estimateEventPrice**](#estimateeventprice) | **POST** /api/events/{eventId}/estimate-price | |
|
|
9
|
+
|[**estimateOpenEventBookingJoinPrice**](#estimateopeneventbookingjoinprice) | **GET** /api/events/{eventBookingId}/open/estimate | |
|
|
9
10
|
|[**getEventById**](#geteventbyid) | **GET** /api/events/{eventId} | |
|
|
11
|
+
|[**getOpenEventBookingJoinPrice**](#getopeneventbookingjoinprice) | **GET** /api/events/{eventBookingId}/open/join-price | |
|
|
10
12
|
|[**getOpenEventBookings**](#getopeneventbookings) | **GET** /api/events/open | |
|
|
11
13
|
|[**getPublishedEventsByClubId**](#getpublishedeventsbyclubid) | **GET** /api/events | |
|
|
12
14
|
|[**joinEvent**](#joinevent) | **POST** /api/events/{eventId}/join | |
|
|
@@ -127,6 +129,62 @@ No authorization required
|
|
|
127
129
|
|
|
128
130
|
[[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)
|
|
129
131
|
|
|
132
|
+
# **estimateOpenEventBookingJoinPrice**
|
|
133
|
+
> EstimateOpenEventBookingJoinPrice200Response estimateOpenEventBookingJoinPrice()
|
|
134
|
+
|
|
135
|
+
Estimer le prix pour rejoindre un événement ouvert
|
|
136
|
+
|
|
137
|
+
### Example
|
|
138
|
+
|
|
139
|
+
```typescript
|
|
140
|
+
import {
|
|
141
|
+
EventsApi,
|
|
142
|
+
Configuration
|
|
143
|
+
} from '@tennac-booking/sdk';
|
|
144
|
+
|
|
145
|
+
const configuration = new Configuration();
|
|
146
|
+
const apiInstance = new EventsApi(configuration);
|
|
147
|
+
|
|
148
|
+
let eventBookingId: string; // (default to undefined)
|
|
149
|
+
let creditToUseInCents: number; // (optional) (default to undefined)
|
|
150
|
+
|
|
151
|
+
const { status, data } = await apiInstance.estimateOpenEventBookingJoinPrice(
|
|
152
|
+
eventBookingId,
|
|
153
|
+
creditToUseInCents
|
|
154
|
+
);
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
### Parameters
|
|
158
|
+
|
|
159
|
+
|Name | Type | Description | Notes|
|
|
160
|
+
|------------- | ------------- | ------------- | -------------|
|
|
161
|
+
| **eventBookingId** | [**string**] | | defaults to undefined|
|
|
162
|
+
| **creditToUseInCents** | [**number**] | | (optional) defaults to undefined|
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
### Return type
|
|
166
|
+
|
|
167
|
+
**EstimateOpenEventBookingJoinPrice200Response**
|
|
168
|
+
|
|
169
|
+
### Authorization
|
|
170
|
+
|
|
171
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
172
|
+
|
|
173
|
+
### HTTP request headers
|
|
174
|
+
|
|
175
|
+
- **Content-Type**: Not defined
|
|
176
|
+
- **Accept**: application/json
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
### HTTP response details
|
|
180
|
+
| Status code | Description | Response headers |
|
|
181
|
+
|-------------|-------------|------------------|
|
|
182
|
+
|**200** | Estimation du prix calculée | - |
|
|
183
|
+
|**400** | Bad Request | - |
|
|
184
|
+
|**404** | Not Found | - |
|
|
185
|
+
|
|
186
|
+
[[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)
|
|
187
|
+
|
|
130
188
|
# **getEventById**
|
|
131
189
|
> PublishEventResponse getEventById()
|
|
132
190
|
|
|
@@ -183,6 +241,59 @@ No authorization required
|
|
|
183
241
|
|
|
184
242
|
[[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)
|
|
185
243
|
|
|
244
|
+
# **getOpenEventBookingJoinPrice**
|
|
245
|
+
> GetOpenEventBookingJoinPrice200Response getOpenEventBookingJoinPrice()
|
|
246
|
+
|
|
247
|
+
Estimer simplement le prix à payer pour rejoindre un événement ouvert
|
|
248
|
+
|
|
249
|
+
### Example
|
|
250
|
+
|
|
251
|
+
```typescript
|
|
252
|
+
import {
|
|
253
|
+
EventsApi,
|
|
254
|
+
Configuration
|
|
255
|
+
} from '@tennac-booking/sdk';
|
|
256
|
+
|
|
257
|
+
const configuration = new Configuration();
|
|
258
|
+
const apiInstance = new EventsApi(configuration);
|
|
259
|
+
|
|
260
|
+
let eventBookingId: string; // (default to undefined)
|
|
261
|
+
|
|
262
|
+
const { status, data } = await apiInstance.getOpenEventBookingJoinPrice(
|
|
263
|
+
eventBookingId
|
|
264
|
+
);
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
### Parameters
|
|
268
|
+
|
|
269
|
+
|Name | Type | Description | Notes|
|
|
270
|
+
|------------- | ------------- | ------------- | -------------|
|
|
271
|
+
| **eventBookingId** | [**string**] | | defaults to undefined|
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
### Return type
|
|
275
|
+
|
|
276
|
+
**GetOpenEventBookingJoinPrice200Response**
|
|
277
|
+
|
|
278
|
+
### Authorization
|
|
279
|
+
|
|
280
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
281
|
+
|
|
282
|
+
### HTTP request headers
|
|
283
|
+
|
|
284
|
+
- **Content-Type**: Not defined
|
|
285
|
+
- **Accept**: application/json
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
### HTTP response details
|
|
289
|
+
| Status code | Description | Response headers |
|
|
290
|
+
|-------------|-------------|------------------|
|
|
291
|
+
|**200** | Prix à payer calculé | - |
|
|
292
|
+
|**400** | Bad Request | - |
|
|
293
|
+
|**404** | Not Found | - |
|
|
294
|
+
|
|
295
|
+
[[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)
|
|
296
|
+
|
|
186
297
|
# **getOpenEventBookings**
|
|
187
298
|
> GetOpenEventBookings200Response getOpenEventBookings()
|
|
188
299
|
|
package/docs/Gender.md
CHANGED
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
|
|
8
8
|
* `Female` (value: `'female'`)
|
|
9
9
|
|
|
10
|
+
* `NonBinary` (value: `'non_binary'`)
|
|
11
|
+
|
|
12
|
+
* `Transgender` (value: `'transgender'`)
|
|
13
|
+
|
|
10
14
|
* `Other` (value: `'other'`)
|
|
11
15
|
|
|
12
16
|
[[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
|
+
# GetOpenEventBookingJoinPrice200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**availableCreditsInCents** | **number** | | [default to undefined]
|
|
9
|
+
**priceToPayInCents** | **number** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { GetOpenEventBookingJoinPrice200Response } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: GetOpenEventBookingJoinPrice200Response = {
|
|
17
|
+
availableCreditsInCents,
|
|
18
|
+
priceToPayInCents,
|
|
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)
|
package/docs/IUserAttributes.md
CHANGED
|
@@ -16,6 +16,7 @@ Name | Type | Description | Notes
|
|
|
16
16
|
**levelBySports** | [**Array<ILevelBySports>**](ILevelBySports.md) | | [optional] [default to undefined]
|
|
17
17
|
**characteristics** | [**Array<ICharacteristic>**](ICharacteristic.md) | | [optional] [default to undefined]
|
|
18
18
|
**phone** | **string** | | [optional] [default to undefined]
|
|
19
|
+
**birthDate** | **string** | | [optional] [default to undefined]
|
|
19
20
|
**password** | **string** | | [optional] [default to undefined]
|
|
20
21
|
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
21
22
|
**resetPasswordToken** | **string** | | [optional] [default to undefined]
|
|
@@ -23,6 +24,7 @@ Name | Type | Description | Notes
|
|
|
23
24
|
**emailVerificationToken** | **string** | | [optional] [default to undefined]
|
|
24
25
|
**emailVerificationExpires** | **string** | | [optional] [default to undefined]
|
|
25
26
|
**organizations** | [**Array<IUserAttributesOrganizationsInner>**](IUserAttributesOrganizationsInner.md) | | [optional] [default to undefined]
|
|
27
|
+
**isGuest** | **boolean** | | [optional] [default to undefined]
|
|
26
28
|
**isAdmin** | **boolean** | | [default to undefined]
|
|
27
29
|
**isClient** | **boolean** | | [optional] [default to undefined]
|
|
28
30
|
**createdAt** | **string** | | [default to undefined]
|
|
@@ -52,6 +54,7 @@ const instance: IUserAttributes = {
|
|
|
52
54
|
levelBySports,
|
|
53
55
|
characteristics,
|
|
54
56
|
phone,
|
|
57
|
+
birthDate,
|
|
55
58
|
password,
|
|
56
59
|
profilePicture,
|
|
57
60
|
resetPasswordToken,
|
|
@@ -59,6 +62,7 @@ const instance: IUserAttributes = {
|
|
|
59
62
|
emailVerificationToken,
|
|
60
63
|
emailVerificationExpires,
|
|
61
64
|
organizations,
|
|
65
|
+
isGuest,
|
|
62
66
|
isAdmin,
|
|
63
67
|
isClient,
|
|
64
68
|
createdAt,
|
|
@@ -13,6 +13,8 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**level** | **string** | | [optional] [default to undefined]
|
|
14
14
|
**stripeCustomerId** | **string** | | [optional] [default to undefined]
|
|
15
15
|
**phone** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**gender** | [**Gender**](Gender.md) | | [optional] [default to undefined]
|
|
17
|
+
**birthDate** | **string** | | [optional] [default to undefined]
|
|
16
18
|
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
17
19
|
**location** | [**RegisterRequestBodyLocation**](RegisterRequestBodyLocation.md) | | [optional] [default to undefined]
|
|
18
20
|
**organizationId** | **string** | | [optional] [default to undefined]
|
|
@@ -32,6 +34,8 @@ const instance: RegisterRequestBody = {
|
|
|
32
34
|
level,
|
|
33
35
|
stripeCustomerId,
|
|
34
36
|
phone,
|
|
37
|
+
gender,
|
|
38
|
+
birthDate,
|
|
35
39
|
profilePicture,
|
|
36
40
|
location,
|
|
37
41
|
organizationId,
|
|
@@ -16,6 +16,7 @@ Name | Type | Description | Notes
|
|
|
16
16
|
**levelBySports** | [**Array<ILevelBySports>**](ILevelBySports.md) | | [optional] [default to undefined]
|
|
17
17
|
**characteristics** | [**Array<ICharacteristic>**](ICharacteristic.md) | | [optional] [default to undefined]
|
|
18
18
|
**phone** | **string** | | [optional] [default to undefined]
|
|
19
|
+
**birthDate** | **string** | | [optional] [default to undefined]
|
|
19
20
|
**password** | **string** | | [optional] [default to undefined]
|
|
20
21
|
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
21
22
|
**resetPasswordToken** | **string** | | [optional] [default to undefined]
|
|
@@ -23,6 +24,7 @@ Name | Type | Description | Notes
|
|
|
23
24
|
**emailVerificationToken** | **string** | | [optional] [default to undefined]
|
|
24
25
|
**emailVerificationExpires** | **string** | | [optional] [default to undefined]
|
|
25
26
|
**organizations** | [**Array<IUserAttributesOrganizationsInner>**](IUserAttributesOrganizationsInner.md) | | [optional] [default to undefined]
|
|
27
|
+
**isGuest** | **boolean** | | [optional] [default to undefined]
|
|
26
28
|
**isAdmin** | **boolean** | | [default to undefined]
|
|
27
29
|
**isClient** | **boolean** | | [optional] [default to undefined]
|
|
28
30
|
**createdAt** | **string** | | [default to undefined]
|
|
@@ -54,6 +56,7 @@ const instance: StaffUserProfileResponse = {
|
|
|
54
56
|
levelBySports,
|
|
55
57
|
characteristics,
|
|
56
58
|
phone,
|
|
59
|
+
birthDate,
|
|
57
60
|
password,
|
|
58
61
|
profilePicture,
|
|
59
62
|
resetPasswordToken,
|
|
@@ -61,6 +64,7 @@ const instance: StaffUserProfileResponse = {
|
|
|
61
64
|
emailVerificationToken,
|
|
62
65
|
emailVerificationExpires,
|
|
63
66
|
organizations,
|
|
67
|
+
isGuest,
|
|
64
68
|
isAdmin,
|
|
65
69
|
isClient,
|
|
66
70
|
createdAt,
|
|
@@ -10,6 +10,8 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**lastName** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**email** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**phone** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**gender** | [**Gender**](Gender.md) | | [optional] [default to undefined]
|
|
14
|
+
**birthDate** | **string** | | [optional] [default to undefined]
|
|
13
15
|
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
14
16
|
**levelBySports** | [**Array<UpdateUserRequestBodyLevelBySportsInner>**](UpdateUserRequestBodyLevelBySportsInner.md) | | [optional] [default to undefined]
|
|
15
17
|
**characteristics** | [**Array<UpdateUserRequestBodyCharacteristicsInner>**](UpdateUserRequestBodyCharacteristicsInner.md) | | [optional] [default to undefined]
|
|
@@ -28,6 +30,8 @@ const instance: UpdateUserRequestBody = {
|
|
|
28
30
|
lastName,
|
|
29
31
|
email,
|
|
30
32
|
phone,
|
|
33
|
+
gender,
|
|
34
|
+
birthDate,
|
|
31
35
|
profilePicture,
|
|
32
36
|
levelBySports,
|
|
33
37
|
characteristics,
|
|
@@ -16,6 +16,7 @@ Name | Type | Description | Notes
|
|
|
16
16
|
**levelBySports** | [**Array<ILevelBySports>**](ILevelBySports.md) | | [optional] [default to undefined]
|
|
17
17
|
**characteristics** | [**Array<ICharacteristic>**](ICharacteristic.md) | | [optional] [default to undefined]
|
|
18
18
|
**phone** | **string** | | [optional] [default to undefined]
|
|
19
|
+
**birthDate** | **string** | | [optional] [default to undefined]
|
|
19
20
|
**password** | **string** | | [optional] [default to undefined]
|
|
20
21
|
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
21
22
|
**resetPasswordToken** | **string** | | [optional] [default to undefined]
|
|
@@ -23,6 +24,7 @@ Name | Type | Description | Notes
|
|
|
23
24
|
**emailVerificationToken** | **string** | | [optional] [default to undefined]
|
|
24
25
|
**emailVerificationExpires** | **string** | | [optional] [default to undefined]
|
|
25
26
|
**organizations** | [**Array<IUserAttributesOrganizationsInner>**](IUserAttributesOrganizationsInner.md) | | [optional] [default to undefined]
|
|
27
|
+
**isGuest** | **boolean** | | [optional] [default to undefined]
|
|
26
28
|
**isAdmin** | **boolean** | | [default to undefined]
|
|
27
29
|
**isClient** | **boolean** | | [optional] [default to undefined]
|
|
28
30
|
**createdAt** | **string** | | [default to undefined]
|
|
@@ -60,6 +62,7 @@ const instance: UserProfileResponse = {
|
|
|
60
62
|
levelBySports,
|
|
61
63
|
characteristics,
|
|
62
64
|
phone,
|
|
65
|
+
birthDate,
|
|
63
66
|
password,
|
|
64
67
|
profilePicture,
|
|
65
68
|
resetPasswordToken,
|
|
@@ -67,6 +70,7 @@ const instance: UserProfileResponse = {
|
|
|
67
70
|
emailVerificationToken,
|
|
68
71
|
emailVerificationExpires,
|
|
69
72
|
organizations,
|
|
73
|
+
isGuest,
|
|
70
74
|
isAdmin,
|
|
71
75
|
isClient,
|
|
72
76
|
createdAt,
|
package/index.ts
CHANGED