@tennac-booking/sdk 1.0.147 → 1.0.149
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 +366 -364
- package/README.md +6 -2
- package/api.ts +289 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +195 -1
- package/dist/api.js +143 -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 +195 -1
- package/dist/esm/api.js +143 -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 +55 -0
- package/docs/EstimateOpenEventBookingJoinPrice200Response.md +28 -0
- package/docs/EstimateOpenEventBookingJoinPrice200ResponseSubscriptionInfo.md +24 -0
- package/docs/EventsApi.md +57 -0
- package/docs/Gender.md +4 -0
- package/docs/IUserAttributes.md +2 -0
- package/docs/RegisterRequestBody.md +4 -0
- package/docs/StaffUserProfileResponse.md +2 -0
- package/docs/UserProfileResponse.md +2 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/docs/BookingsApi.md
CHANGED
|
@@ -4,6 +4,7 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**estimateOpenBookingJoinPrice**](#estimateopenbookingjoinprice) | **GET** /api/bookings/{bookingId}/open/estimate | |
|
|
7
8
|
|[**getBookingHistory**](#getbookinghistory) | **GET** /api/bookings/history/{bookingId} | |
|
|
8
9
|
|[**getBookingPrice**](#getbookingprice) | **POST** /api/bookings/booking-price | |
|
|
9
10
|
|[**getOpenBookings**](#getopenbookings) | **GET** /api/bookings/open | |
|
|
@@ -11,6 +12,60 @@ All URIs are relative to *http://localhost*
|
|
|
11
12
|
|[**joinOpenBooking**](#joinopenbooking) | **POST** /api/bookings/{bookingId}/open/join | |
|
|
12
13
|
|[**leaveOpenBooking**](#leaveopenbooking) | **DELETE** /api/bookings/{bookingId}/open/leave | |
|
|
13
14
|
|
|
15
|
+
# **estimateOpenBookingJoinPrice**
|
|
16
|
+
> EstimateOpenEventBookingJoinPrice200Response estimateOpenBookingJoinPrice()
|
|
17
|
+
|
|
18
|
+
Estimer le prix pour rejoindre une réservation ouverte
|
|
19
|
+
|
|
20
|
+
### Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import {
|
|
24
|
+
BookingsApi,
|
|
25
|
+
Configuration
|
|
26
|
+
} from '@tennac-booking/sdk';
|
|
27
|
+
|
|
28
|
+
const configuration = new Configuration();
|
|
29
|
+
const apiInstance = new BookingsApi(configuration);
|
|
30
|
+
|
|
31
|
+
let bookingId: string; // (default to undefined)
|
|
32
|
+
let creditToUseInCents: number; // (optional) (default to undefined)
|
|
33
|
+
|
|
34
|
+
const { status, data } = await apiInstance.estimateOpenBookingJoinPrice(
|
|
35
|
+
bookingId,
|
|
36
|
+
creditToUseInCents
|
|
37
|
+
);
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Parameters
|
|
41
|
+
|
|
42
|
+
|Name | Type | Description | Notes|
|
|
43
|
+
|------------- | ------------- | ------------- | -------------|
|
|
44
|
+
| **bookingId** | [**string**] | | defaults to undefined|
|
|
45
|
+
| **creditToUseInCents** | [**number**] | | (optional) defaults to undefined|
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### Return type
|
|
49
|
+
|
|
50
|
+
**EstimateOpenEventBookingJoinPrice200Response**
|
|
51
|
+
|
|
52
|
+
### Authorization
|
|
53
|
+
|
|
54
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
55
|
+
|
|
56
|
+
### HTTP request headers
|
|
57
|
+
|
|
58
|
+
- **Content-Type**: Not defined
|
|
59
|
+
- **Accept**: application/json
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### HTTP response details
|
|
63
|
+
| Status code | Description | Response headers |
|
|
64
|
+
|-------------|-------------|------------------|
|
|
65
|
+
|**200** | Estimation du prix calculée | - |
|
|
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
|
+
|
|
14
69
|
# **getBookingHistory**
|
|
15
70
|
> BookingHistoryPopulated getBookingHistory()
|
|
16
71
|
|
|
@@ -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,6 +6,7 @@ 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} | |
|
|
10
11
|
|[**getOpenEventBookings**](#getopeneventbookings) | **GET** /api/events/open | |
|
|
11
12
|
|[**getPublishedEventsByClubId**](#getpublishedeventsbyclubid) | **GET** /api/events | |
|
|
@@ -127,6 +128,62 @@ No authorization required
|
|
|
127
128
|
|
|
128
129
|
[[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
130
|
|
|
131
|
+
# **estimateOpenEventBookingJoinPrice**
|
|
132
|
+
> EstimateOpenEventBookingJoinPrice200Response estimateOpenEventBookingJoinPrice()
|
|
133
|
+
|
|
134
|
+
Estimer le prix pour rejoindre un événement ouvert
|
|
135
|
+
|
|
136
|
+
### Example
|
|
137
|
+
|
|
138
|
+
```typescript
|
|
139
|
+
import {
|
|
140
|
+
EventsApi,
|
|
141
|
+
Configuration
|
|
142
|
+
} from '@tennac-booking/sdk';
|
|
143
|
+
|
|
144
|
+
const configuration = new Configuration();
|
|
145
|
+
const apiInstance = new EventsApi(configuration);
|
|
146
|
+
|
|
147
|
+
let eventBookingId: string; // (default to undefined)
|
|
148
|
+
let creditToUseInCents: number; // (optional) (default to undefined)
|
|
149
|
+
|
|
150
|
+
const { status, data } = await apiInstance.estimateOpenEventBookingJoinPrice(
|
|
151
|
+
eventBookingId,
|
|
152
|
+
creditToUseInCents
|
|
153
|
+
);
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### Parameters
|
|
157
|
+
|
|
158
|
+
|Name | Type | Description | Notes|
|
|
159
|
+
|------------- | ------------- | ------------- | -------------|
|
|
160
|
+
| **eventBookingId** | [**string**] | | defaults to undefined|
|
|
161
|
+
| **creditToUseInCents** | [**number**] | | (optional) defaults to undefined|
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
### Return type
|
|
165
|
+
|
|
166
|
+
**EstimateOpenEventBookingJoinPrice200Response**
|
|
167
|
+
|
|
168
|
+
### Authorization
|
|
169
|
+
|
|
170
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
171
|
+
|
|
172
|
+
### HTTP request headers
|
|
173
|
+
|
|
174
|
+
- **Content-Type**: Not defined
|
|
175
|
+
- **Accept**: application/json
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
### HTTP response details
|
|
179
|
+
| Status code | Description | Response headers |
|
|
180
|
+
|-------------|-------------|------------------|
|
|
181
|
+
|**200** | Estimation du prix calculée | - |
|
|
182
|
+
|**400** | Bad Request | - |
|
|
183
|
+
|**404** | Not Found | - |
|
|
184
|
+
|
|
185
|
+
[[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)
|
|
186
|
+
|
|
130
187
|
# **getEventById**
|
|
131
188
|
> PublishEventResponse getEventById()
|
|
132
189
|
|
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)
|
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]
|
|
@@ -52,6 +53,7 @@ const instance: IUserAttributes = {
|
|
|
52
53
|
levelBySports,
|
|
53
54
|
characteristics,
|
|
54
55
|
phone,
|
|
56
|
+
birthDate,
|
|
55
57
|
password,
|
|
56
58
|
profilePicture,
|
|
57
59
|
resetPasswordToken,
|
|
@@ -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]
|
|
@@ -54,6 +55,7 @@ const instance: StaffUserProfileResponse = {
|
|
|
54
55
|
levelBySports,
|
|
55
56
|
characteristics,
|
|
56
57
|
phone,
|
|
58
|
+
birthDate,
|
|
57
59
|
password,
|
|
58
60
|
profilePicture,
|
|
59
61
|
resetPasswordToken,
|
|
@@ -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]
|
|
@@ -60,6 +61,7 @@ const instance: UserProfileResponse = {
|
|
|
60
61
|
levelBySports,
|
|
61
62
|
characteristics,
|
|
62
63
|
phone,
|
|
64
|
+
birthDate,
|
|
63
65
|
password,
|
|
64
66
|
profilePicture,
|
|
65
67
|
resetPasswordToken,
|
package/index.ts
CHANGED