@tennac-booking/sdk 1.0.153 → 1.0.154
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 +370 -368
- package/README.md +5 -2
- package/api.ts +127 -20
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +88 -20
- package/dist/api.js +68 -5
- 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 +88 -20
- package/dist/esm/api.js +68 -5
- 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 +54 -1
- package/docs/GetGuestBookingPrice200Response.md +20 -0
- package/docs/GetGuestBookingPriceRequest.md +20 -0
- package/docs/IUserAttributes.md +5 -5
- package/docs/StaffUserProfileResponse.md +5 -5
- package/docs/UserProfileResponse.md +5 -5
- package/index.ts +1 -1
- package/package.json +1 -1
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/BookingsApi.md
CHANGED
|
@@ -8,6 +8,7 @@ All URIs are relative to *http://localhost*
|
|
|
8
8
|
|[**estimateOpenBookingJoinPrice**](#estimateopenbookingjoinprice) | **GET** /api/bookings/{bookingId}/open/estimate | |
|
|
9
9
|
|[**getBookingHistory**](#getbookinghistory) | **GET** /api/bookings/history/{bookingId} | |
|
|
10
10
|
|[**getBookingPrice**](#getbookingprice) | **POST** /api/bookings/booking-price | |
|
|
11
|
+
|[**getGuestBookingPrice**](#getguestbookingprice) | **POST** /api/bookings/guest/booking-price | |
|
|
11
12
|
|[**getOpenBookingJoinPrice**](#getopenbookingjoinprice) | **GET** /api/bookings/{bookingId}/open/join-price | |
|
|
12
13
|
|[**getOpenBookings**](#getopenbookings) | **GET** /api/bookings/open | |
|
|
13
14
|
|[**getQuickReservationSlots**](#getquickreservationslots) | **GET** /api/bookings/quick-reservations | |
|
|
@@ -17,7 +18,7 @@ All URIs are relative to *http://localhost*
|
|
|
17
18
|
# **createGuestBooking**
|
|
18
19
|
> BookingResponse createGuestBooking(createGuestBookingRequest)
|
|
19
20
|
|
|
20
|
-
Créer une réservation en tant qu\'invité (guest)
|
|
21
|
+
Créer une réservation en tant qu\'invité (guest) Cette route permet à un utilisateur non authentifié de créer une réservation. Un compte guest sera automatiquement créé pour l\'utilisateur. Note: Si le club a activé le no-show (frais de non-présentation), la réponse contiendra un setupNoShowPaymentUrl pour configurer une méthode de paiement. Cette configuration est obligatoire pour les clubs avec no-show activé.
|
|
21
22
|
|
|
22
23
|
### Example
|
|
23
24
|
|
|
@@ -222,6 +223,58 @@ const { status, data } = await apiInstance.getBookingPrice(
|
|
|
222
223
|
|
|
223
224
|
[[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)
|
|
224
225
|
|
|
226
|
+
# **getGuestBookingPrice**
|
|
227
|
+
> GetGuestBookingPrice200Response getGuestBookingPrice(getGuestBookingPriceRequest)
|
|
228
|
+
|
|
229
|
+
Calculer le prix d\'une réservation pour un invité (sans authentification)
|
|
230
|
+
|
|
231
|
+
### Example
|
|
232
|
+
|
|
233
|
+
```typescript
|
|
234
|
+
import {
|
|
235
|
+
BookingsApi,
|
|
236
|
+
Configuration,
|
|
237
|
+
GetGuestBookingPriceRequest
|
|
238
|
+
} from '@tennac-booking/sdk';
|
|
239
|
+
|
|
240
|
+
const configuration = new Configuration();
|
|
241
|
+
const apiInstance = new BookingsApi(configuration);
|
|
242
|
+
|
|
243
|
+
let getGuestBookingPriceRequest: GetGuestBookingPriceRequest; //
|
|
244
|
+
|
|
245
|
+
const { status, data } = await apiInstance.getGuestBookingPrice(
|
|
246
|
+
getGuestBookingPriceRequest
|
|
247
|
+
);
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
### Parameters
|
|
251
|
+
|
|
252
|
+
|Name | Type | Description | Notes|
|
|
253
|
+
|------------- | ------------- | ------------- | -------------|
|
|
254
|
+
| **getGuestBookingPriceRequest** | **GetGuestBookingPriceRequest**| | |
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
### Return type
|
|
258
|
+
|
|
259
|
+
**GetGuestBookingPrice200Response**
|
|
260
|
+
|
|
261
|
+
### Authorization
|
|
262
|
+
|
|
263
|
+
No authorization required
|
|
264
|
+
|
|
265
|
+
### HTTP request headers
|
|
266
|
+
|
|
267
|
+
- **Content-Type**: application/json
|
|
268
|
+
- **Accept**: application/json
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
### HTTP response details
|
|
272
|
+
| Status code | Description | Response headers |
|
|
273
|
+
|-------------|-------------|------------------|
|
|
274
|
+
|**200** | Prix de réservation calculé | - |
|
|
275
|
+
|
|
276
|
+
[[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)
|
|
277
|
+
|
|
225
278
|
# **getOpenBookingJoinPrice**
|
|
226
279
|
> GetOpenEventBookingJoinPrice200Response getOpenBookingJoinPrice()
|
|
227
280
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# GetGuestBookingPrice200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**totalPrice** | **number** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { GetGuestBookingPrice200Response } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: GetGuestBookingPrice200Response = {
|
|
16
|
+
totalPrice,
|
|
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,20 @@
|
|
|
1
|
+
# GetGuestBookingPriceRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**slotIds** | **Array<string>** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { GetGuestBookingPriceRequest } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: GetGuestBookingPriceRequest = {
|
|
16
|
+
slotIds,
|
|
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)
|
package/docs/IUserAttributes.md
CHANGED
|
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
|
|
|
12
12
|
**email** | **string** | | [default to undefined]
|
|
13
13
|
**gender** | [**Gender**](Gender.md) | | [optional] [default to undefined]
|
|
14
14
|
**location** | [**IUserLocation**](IUserLocation.md) | | [optional] [default to undefined]
|
|
15
|
-
**isAccountVerified** | **boolean** | | [default to undefined]
|
|
15
|
+
**isAccountVerified** | **boolean** | | [optional] [default to undefined]
|
|
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]
|
|
@@ -25,14 +25,14 @@ Name | Type | Description | Notes
|
|
|
25
25
|
**emailVerificationExpires** | **string** | | [optional] [default to undefined]
|
|
26
26
|
**organizations** | [**Array<IUserAttributesOrganizationsInner>**](IUserAttributesOrganizationsInner.md) | | [optional] [default to undefined]
|
|
27
27
|
**isGuest** | **boolean** | | [optional] [default to undefined]
|
|
28
|
-
**isAdmin** | **boolean** | | [default to undefined]
|
|
28
|
+
**isAdmin** | **boolean** | | [optional] [default to undefined]
|
|
29
29
|
**isClient** | **boolean** | | [optional] [default to undefined]
|
|
30
|
-
**createdAt** | **string** | | [default to undefined]
|
|
31
|
-
**updatedAt** | **string** | | [default to undefined]
|
|
30
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
31
|
+
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
32
32
|
**isLevelCertified** | **boolean** | | [optional] [default to undefined]
|
|
33
33
|
**favoriteClubs** | **Array<string>** | | [optional] [default to undefined]
|
|
34
34
|
**description** | **string** | | [optional] [default to undefined]
|
|
35
|
-
**isProfileVisible** | **boolean** | | [default to undefined]
|
|
35
|
+
**isProfileVisible** | **boolean** | | [optional] [default to undefined]
|
|
36
36
|
**favoritePlayers** | **Array<string>** | | [optional] [default to undefined]
|
|
37
37
|
**sports** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
38
38
|
**stripeCustomerId** | **string** | | [optional] [default to undefined]
|
|
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
|
|
|
12
12
|
**email** | **string** | | [default to undefined]
|
|
13
13
|
**gender** | [**Gender**](Gender.md) | | [optional] [default to undefined]
|
|
14
14
|
**location** | [**IUserLocation**](IUserLocation.md) | | [optional] [default to undefined]
|
|
15
|
-
**isAccountVerified** | **boolean** | | [default to undefined]
|
|
15
|
+
**isAccountVerified** | **boolean** | | [optional] [default to undefined]
|
|
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]
|
|
@@ -25,14 +25,14 @@ Name | Type | Description | Notes
|
|
|
25
25
|
**emailVerificationExpires** | **string** | | [optional] [default to undefined]
|
|
26
26
|
**organizations** | [**Array<IUserAttributesOrganizationsInner>**](IUserAttributesOrganizationsInner.md) | | [optional] [default to undefined]
|
|
27
27
|
**isGuest** | **boolean** | | [optional] [default to undefined]
|
|
28
|
-
**isAdmin** | **boolean** | | [default to undefined]
|
|
28
|
+
**isAdmin** | **boolean** | | [optional] [default to undefined]
|
|
29
29
|
**isClient** | **boolean** | | [optional] [default to undefined]
|
|
30
|
-
**createdAt** | **string** | | [default to undefined]
|
|
31
|
-
**updatedAt** | **string** | | [default to undefined]
|
|
30
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
31
|
+
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
32
32
|
**isLevelCertified** | **boolean** | | [optional] [default to undefined]
|
|
33
33
|
**favoriteClubs** | **Array<string>** | | [optional] [default to undefined]
|
|
34
34
|
**description** | **string** | | [optional] [default to undefined]
|
|
35
|
-
**isProfileVisible** | **boolean** | | [default to undefined]
|
|
35
|
+
**isProfileVisible** | **boolean** | | [optional] [default to undefined]
|
|
36
36
|
**favoritePlayers** | **Array<string>** | | [optional] [default to undefined]
|
|
37
37
|
**sports** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
38
38
|
**stripeCustomerId** | **string** | | [optional] [default to undefined]
|
|
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
|
|
|
12
12
|
**email** | **string** | | [default to undefined]
|
|
13
13
|
**gender** | [**Gender**](Gender.md) | | [optional] [default to undefined]
|
|
14
14
|
**location** | [**IUserLocation**](IUserLocation.md) | | [optional] [default to undefined]
|
|
15
|
-
**isAccountVerified** | **boolean** | | [default to undefined]
|
|
15
|
+
**isAccountVerified** | **boolean** | | [optional] [default to undefined]
|
|
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]
|
|
@@ -25,14 +25,14 @@ Name | Type | Description | Notes
|
|
|
25
25
|
**emailVerificationExpires** | **string** | | [optional] [default to undefined]
|
|
26
26
|
**organizations** | [**Array<IUserAttributesOrganizationsInner>**](IUserAttributesOrganizationsInner.md) | | [optional] [default to undefined]
|
|
27
27
|
**isGuest** | **boolean** | | [optional] [default to undefined]
|
|
28
|
-
**isAdmin** | **boolean** | | [default to undefined]
|
|
28
|
+
**isAdmin** | **boolean** | | [optional] [default to undefined]
|
|
29
29
|
**isClient** | **boolean** | | [optional] [default to undefined]
|
|
30
|
-
**createdAt** | **string** | | [default to undefined]
|
|
31
|
-
**updatedAt** | **string** | | [default to undefined]
|
|
30
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
31
|
+
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
32
32
|
**isLevelCertified** | **boolean** | | [optional] [default to undefined]
|
|
33
33
|
**favoriteClubs** | **Array<string>** | | [optional] [default to undefined]
|
|
34
34
|
**description** | **string** | | [optional] [default to undefined]
|
|
35
|
-
**isProfileVisible** | **boolean** | | [default to undefined]
|
|
35
|
+
**isProfileVisible** | **boolean** | | [optional] [default to undefined]
|
|
36
36
|
**favoritePlayers** | **Array<string>** | | [optional] [default to undefined]
|
|
37
37
|
**sports** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
38
38
|
**stripeCustomerId** | **string** | | [optional] [default to undefined]
|
package/index.ts
CHANGED