@tennac-booking/sdk 1.0.153 → 1.0.155

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/dist/esm/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.150
7
+ * The version of the OpenAPI document: 1.0.154
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.150
5
+ * The version of the OpenAPI document: 1.0.154
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * openapi.json
6
6
  * Pandook API Documentation
7
7
  *
8
- * The version of the OpenAPI document: 1.0.150
8
+ * The version of the OpenAPI document: 1.0.154
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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
 
@@ -6,6 +6,7 @@ All URIs are relative to *http://localhost*
6
6
  |------------- | ------------- | -------------|
7
7
  |[**checkInEventParticipants**](#checkineventparticipants) | **POST** /api/events/{eventBookingId}/check-in | |
8
8
  |[**getDailyEvents**](#getdailyevents) | **GET** /api/events/calendar/daily | |
9
+ |[**getEventByIdStaff**](#geteventbyidstaff) | **GET** /api/events/staff/{eventId} | |
9
10
  |[**getEventsByClub**](#geteventsbyclub) | **GET** /api/events/staff/getEvents | |
10
11
  |[**getMonthlyEvents**](#getmonthlyevents) | **GET** /api/events/calendar/monthly | |
11
12
  |[**getWeeklyEvents**](#getweeklyevents) | **GET** /api/events/calendar/weekly | |
@@ -133,6 +134,56 @@ const { status, data } = await apiInstance.getDailyEvents(
133
134
 
134
135
  [[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)
135
136
 
137
+ # **getEventByIdStaff**
138
+ > PublishEventResponse getEventByIdStaff()
139
+
140
+
141
+ ### Example
142
+
143
+ ```typescript
144
+ import {
145
+ EventsStaffApi,
146
+ Configuration
147
+ } from '@tennac-booking/sdk';
148
+
149
+ const configuration = new Configuration();
150
+ const apiInstance = new EventsStaffApi(configuration);
151
+
152
+ let eventId: string; // (default to undefined)
153
+
154
+ const { status, data } = await apiInstance.getEventByIdStaff(
155
+ eventId
156
+ );
157
+ ```
158
+
159
+ ### Parameters
160
+
161
+ |Name | Type | Description | Notes|
162
+ |------------- | ------------- | ------------- | -------------|
163
+ | **eventId** | [**string**] | | defaults to undefined|
164
+
165
+
166
+ ### Return type
167
+
168
+ **PublishEventResponse**
169
+
170
+ ### Authorization
171
+
172
+ [bearerAuth](../README.md#bearerAuth)
173
+
174
+ ### HTTP request headers
175
+
176
+ - **Content-Type**: Not defined
177
+ - **Accept**: application/json
178
+
179
+
180
+ ### HTTP response details
181
+ | Status code | Description | Response headers |
182
+ |-------------|-------------|------------------|
183
+ |**200** | Event details (staff) | - |
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
+
136
187
  # **getEventsByClub**
137
188
  > EventsListResponse getEventsByClub()
138
189
 
@@ -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)
@@ -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]
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
9
9
  **refundedBookingIds** | **Array<string>** | | [optional] [default to undefined]
10
10
  **userBooking** | [**EventBookingResponse**](EventBookingResponse.md) | | [optional] [default to undefined]
11
11
  **needsToSetupPaymentMethod** | **boolean** | | [optional] [default to undefined]
12
+ **eventBookings** | [**Array<EventBookingResponse>**](EventBookingResponse.md) | | [optional] [default to undefined]
12
13
 
13
14
  ## Example
14
15
 
@@ -20,6 +21,7 @@ const instance: PublishEventResponse = {
20
21
  refundedBookingIds,
21
22
  userBooking,
22
23
  needsToSetupPaymentMethod,
24
+ eventBookings,
23
25
  };
24
26
  ```
25
27
 
@@ -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
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.150
7
+ * The version of the OpenAPI document: 1.0.154
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.153",
3
+ "version": "1.0.155",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {