@tennac-booking/sdk 1.0.151 → 1.0.153
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 -369
- package/README.md +3 -6
- package/api.ts +23 -130
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +22 -90
- package/dist/api.js +2 -65
- 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 +22 -90
- package/dist/esm/api.js +2 -65
- 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 +0 -53
- package/docs/ClubsApi.md +1 -1
- package/docs/CreateEventRequest.md +2 -2
- package/docs/EventResponse.md +2 -2
- package/docs/IUserAttributes.md +5 -5
- package/docs/StaffUserProfileResponse.md +5 -5
- package/docs/UpdateEventRequest.md +2 -2
- package/docs/UserProfileResponse.md +5 -5
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/GetGuestBookingPrice200Response.md +0 -20
- package/docs/GetGuestBookingPriceRequest.md +0 -20
package/docs/BookingsApi.md
CHANGED
|
@@ -8,7 +8,6 @@ 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 | |
|
|
12
11
|
|[**getOpenBookingJoinPrice**](#getopenbookingjoinprice) | **GET** /api/bookings/{bookingId}/open/join-price | |
|
|
13
12
|
|[**getOpenBookings**](#getopenbookings) | **GET** /api/bookings/open | |
|
|
14
13
|
|[**getQuickReservationSlots**](#getquickreservationslots) | **GET** /api/bookings/quick-reservations | |
|
|
@@ -223,58 +222,6 @@ const { status, data } = await apiInstance.getBookingPrice(
|
|
|
223
222
|
|
|
224
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)
|
|
225
224
|
|
|
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
|
-
|
|
278
225
|
# **getOpenBookingJoinPrice**
|
|
279
226
|
> GetOpenEventBookingJoinPrice200Response getOpenBookingJoinPrice()
|
|
280
227
|
|
package/docs/ClubsApi.md
CHANGED
|
@@ -15,7 +15,7 @@ All URIs are relative to *http://localhost*
|
|
|
15
15
|
|[**getClubUsersById**](#getclubusersbyid) | **GET** /api/clubs/{id}/users | |
|
|
16
16
|
|[**getClubsWithVerificationDomains**](#getclubswithverificationdomains) | **GET** /api/clubs/verification-domains | |
|
|
17
17
|
|[**getCourtsByClubAndSportById**](#getcourtsbyclubandsportbyid) | **GET** /api/clubs/{id}/sports/{sportId}/courts | |
|
|
18
|
-
|[**getPublicClubInfo**](#getpublicclubinfo) | **GET** /api/clubs/{clubId} | |
|
|
18
|
+
|[**getPublicClubInfo**](#getpublicclubinfo) | **GET** /api/clubs/clubInfo/{clubId} | |
|
|
19
19
|
|[**getPublishedActualities**](#getpublishedactualities) | **GET** /api/clubs/{id}/actualities | |
|
|
20
20
|
|[**getSlotsByClubById**](#getslotsbyclubbyid) | **GET** /api/clubs/{id}/slots | |
|
|
21
21
|
|[**getSportsByClubById**](#getsportsbyclubbyid) | **GET** /api/clubs/{id}/sports | |
|
|
@@ -26,7 +26,7 @@ Name | Type | Description | Notes
|
|
|
26
26
|
**subscriberPrices** | [**Array<SubscriberPrice>**](SubscriberPrice.md) | | [optional] [default to undefined]
|
|
27
27
|
**levels** | **Array<number | null>** | | [optional] [default to undefined]
|
|
28
28
|
**sponsors** | [**Array<EventSponsor>**](EventSponsor.md) | | [optional] [default to undefined]
|
|
29
|
-
**
|
|
29
|
+
**registrationOpenDaysBefore** | **number** | | [optional] [default to undefined]
|
|
30
30
|
**visibilityType** | **string** | | [default to undefined]
|
|
31
31
|
|
|
32
32
|
## Example
|
|
@@ -56,7 +56,7 @@ const instance: CreateEventRequest = {
|
|
|
56
56
|
subscriberPrices,
|
|
57
57
|
levels,
|
|
58
58
|
sponsors,
|
|
59
|
-
|
|
59
|
+
registrationOpenDaysBefore,
|
|
60
60
|
visibilityType,
|
|
61
61
|
};
|
|
62
62
|
```
|
package/docs/EventResponse.md
CHANGED
|
@@ -28,7 +28,7 @@ Name | Type | Description | Notes
|
|
|
28
28
|
**visibilityType** | **string** | | [default to undefined]
|
|
29
29
|
**levels** | **Array<string | null>** | | [optional] [default to undefined]
|
|
30
30
|
**sponsors** | [**Array<EventSponsor>**](EventSponsor.md) | | [optional] [default to undefined]
|
|
31
|
-
**
|
|
31
|
+
**registrationOpenDaysBefore** | **number** | | [default to undefined]
|
|
32
32
|
**createdBy** | **string** | | [optional] [default to undefined]
|
|
33
33
|
**isActive** | **boolean** | | [default to undefined]
|
|
34
34
|
**createdAt** | **string** | | [default to undefined]
|
|
@@ -63,7 +63,7 @@ const instance: EventResponse = {
|
|
|
63
63
|
visibilityType,
|
|
64
64
|
levels,
|
|
65
65
|
sponsors,
|
|
66
|
-
|
|
66
|
+
registrationOpenDaysBefore,
|
|
67
67
|
createdBy,
|
|
68
68
|
isActive,
|
|
69
69
|
createdAt,
|
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** | | [
|
|
15
|
+
**isAccountVerified** | **boolean** | | [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** | | [
|
|
28
|
+
**isAdmin** | **boolean** | | [default to undefined]
|
|
29
29
|
**isClient** | **boolean** | | [optional] [default to undefined]
|
|
30
|
-
**createdAt** | **string** | | [
|
|
31
|
-
**updatedAt** | **string** | | [
|
|
30
|
+
**createdAt** | **string** | | [default to undefined]
|
|
31
|
+
**updatedAt** | **string** | | [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** | | [
|
|
35
|
+
**isProfileVisible** | **boolean** | | [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** | | [
|
|
15
|
+
**isAccountVerified** | **boolean** | | [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** | | [
|
|
28
|
+
**isAdmin** | **boolean** | | [default to undefined]
|
|
29
29
|
**isClient** | **boolean** | | [optional] [default to undefined]
|
|
30
|
-
**createdAt** | **string** | | [
|
|
31
|
-
**updatedAt** | **string** | | [
|
|
30
|
+
**createdAt** | **string** | | [default to undefined]
|
|
31
|
+
**updatedAt** | **string** | | [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** | | [
|
|
35
|
+
**isProfileVisible** | **boolean** | | [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]
|
|
@@ -25,7 +25,7 @@ Name | Type | Description | Notes
|
|
|
25
25
|
**subscriberPrices** | [**Array<SubscriberPrice>**](SubscriberPrice.md) | | [optional] [default to undefined]
|
|
26
26
|
**visibilityType** | **string** | | [optional] [default to undefined]
|
|
27
27
|
**levels** | **Array<string | null>** | | [optional] [default to undefined]
|
|
28
|
-
**
|
|
28
|
+
**registrationOpenDaysBefore** | **number** | | [optional] [default to undefined]
|
|
29
29
|
**sponsors** | [**Array<EventSponsor>**](EventSponsor.md) | | [optional] [default to undefined]
|
|
30
30
|
|
|
31
31
|
## Example
|
|
@@ -54,7 +54,7 @@ const instance: UpdateEventRequest = {
|
|
|
54
54
|
subscriberPrices,
|
|
55
55
|
visibilityType,
|
|
56
56
|
levels,
|
|
57
|
-
|
|
57
|
+
registrationOpenDaysBefore,
|
|
58
58
|
sponsors,
|
|
59
59
|
};
|
|
60
60
|
```
|
|
@@ -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** | | [
|
|
15
|
+
**isAccountVerified** | **boolean** | | [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** | | [
|
|
28
|
+
**isAdmin** | **boolean** | | [default to undefined]
|
|
29
29
|
**isClient** | **boolean** | | [optional] [default to undefined]
|
|
30
|
-
**createdAt** | **string** | | [
|
|
31
|
-
**updatedAt** | **string** | | [
|
|
30
|
+
**createdAt** | **string** | | [default to undefined]
|
|
31
|
+
**updatedAt** | **string** | | [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** | | [
|
|
35
|
+
**isProfileVisible** | **boolean** | | [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
package/package.json
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
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)
|
|
@@ -1,20 +0,0 @@
|
|
|
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)
|