@tennac-booking/sdk 1.0.149 → 1.0.151

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/docs/EventsApi.md CHANGED
@@ -8,6 +8,7 @@ All URIs are relative to *http://localhost*
8
8
  |[**estimateEventPrice**](#estimateeventprice) | **POST** /api/events/{eventId}/estimate-price | |
9
9
  |[**estimateOpenEventBookingJoinPrice**](#estimateopeneventbookingjoinprice) | **GET** /api/events/{eventBookingId}/open/estimate | |
10
10
  |[**getEventById**](#geteventbyid) | **GET** /api/events/{eventId} | |
11
+ |[**getOpenEventBookingJoinPrice**](#getopeneventbookingjoinprice) | **GET** /api/events/{eventBookingId}/open/join-price | |
11
12
  |[**getOpenEventBookings**](#getopeneventbookings) | **GET** /api/events/open | |
12
13
  |[**getPublishedEventsByClubId**](#getpublishedeventsbyclubid) | **GET** /api/events | |
13
14
  |[**joinEvent**](#joinevent) | **POST** /api/events/{eventId}/join | |
@@ -240,6 +241,59 @@ No authorization required
240
241
 
241
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)
242
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
+
243
297
  # **getOpenEventBookings**
244
298
  > GetOpenEventBookings200Response getOpenEventBookings()
245
299
 
@@ -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)
@@ -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)
@@ -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]
@@ -24,14 +24,15 @@ Name | Type | Description | Notes
24
24
  **emailVerificationToken** | **string** | | [optional] [default to undefined]
25
25
  **emailVerificationExpires** | **string** | | [optional] [default to undefined]
26
26
  **organizations** | [**Array<IUserAttributesOrganizationsInner>**](IUserAttributesOrganizationsInner.md) | | [optional] [default to undefined]
27
- **isAdmin** | **boolean** | | [default to undefined]
27
+ **isGuest** | **boolean** | | [optional] [default to undefined]
28
+ **isAdmin** | **boolean** | | [optional] [default to undefined]
28
29
  **isClient** | **boolean** | | [optional] [default to undefined]
29
- **createdAt** | **string** | | [default to undefined]
30
- **updatedAt** | **string** | | [default to undefined]
30
+ **createdAt** | **string** | | [optional] [default to undefined]
31
+ **updatedAt** | **string** | | [optional] [default to undefined]
31
32
  **isLevelCertified** | **boolean** | | [optional] [default to undefined]
32
33
  **favoriteClubs** | **Array<string>** | | [optional] [default to undefined]
33
34
  **description** | **string** | | [optional] [default to undefined]
34
- **isProfileVisible** | **boolean** | | [default to undefined]
35
+ **isProfileVisible** | **boolean** | | [optional] [default to undefined]
35
36
  **favoritePlayers** | **Array<string>** | | [optional] [default to undefined]
36
37
  **sports** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
37
38
  **stripeCustomerId** | **string** | | [optional] [default to undefined]
@@ -61,6 +62,7 @@ const instance: IUserAttributes = {
61
62
  emailVerificationToken,
62
63
  emailVerificationExpires,
63
64
  organizations,
65
+ isGuest,
64
66
  isAdmin,
65
67
  isClient,
66
68
  createdAt,
@@ -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]
@@ -24,14 +24,15 @@ Name | Type | Description | Notes
24
24
  **emailVerificationToken** | **string** | | [optional] [default to undefined]
25
25
  **emailVerificationExpires** | **string** | | [optional] [default to undefined]
26
26
  **organizations** | [**Array<IUserAttributesOrganizationsInner>**](IUserAttributesOrganizationsInner.md) | | [optional] [default to undefined]
27
- **isAdmin** | **boolean** | | [default to undefined]
27
+ **isGuest** | **boolean** | | [optional] [default to undefined]
28
+ **isAdmin** | **boolean** | | [optional] [default to undefined]
28
29
  **isClient** | **boolean** | | [optional] [default to undefined]
29
- **createdAt** | **string** | | [default to undefined]
30
- **updatedAt** | **string** | | [default to undefined]
30
+ **createdAt** | **string** | | [optional] [default to undefined]
31
+ **updatedAt** | **string** | | [optional] [default to undefined]
31
32
  **isLevelCertified** | **boolean** | | [optional] [default to undefined]
32
33
  **favoriteClubs** | **Array<string>** | | [optional] [default to undefined]
33
34
  **description** | **string** | | [optional] [default to undefined]
34
- **isProfileVisible** | **boolean** | | [default to undefined]
35
+ **isProfileVisible** | **boolean** | | [optional] [default to undefined]
35
36
  **favoritePlayers** | **Array<string>** | | [optional] [default to undefined]
36
37
  **sports** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
37
38
  **stripeCustomerId** | **string** | | [optional] [default to undefined]
@@ -63,6 +64,7 @@ const instance: StaffUserProfileResponse = {
63
64
  emailVerificationToken,
64
65
  emailVerificationExpires,
65
66
  organizations,
67
+ isGuest,
66
68
  isAdmin,
67
69
  isClient,
68
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,
@@ -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]
@@ -24,14 +24,15 @@ Name | Type | Description | Notes
24
24
  **emailVerificationToken** | **string** | | [optional] [default to undefined]
25
25
  **emailVerificationExpires** | **string** | | [optional] [default to undefined]
26
26
  **organizations** | [**Array<IUserAttributesOrganizationsInner>**](IUserAttributesOrganizationsInner.md) | | [optional] [default to undefined]
27
- **isAdmin** | **boolean** | | [default to undefined]
27
+ **isGuest** | **boolean** | | [optional] [default to undefined]
28
+ **isAdmin** | **boolean** | | [optional] [default to undefined]
28
29
  **isClient** | **boolean** | | [optional] [default to undefined]
29
- **createdAt** | **string** | | [default to undefined]
30
- **updatedAt** | **string** | | [default to undefined]
30
+ **createdAt** | **string** | | [optional] [default to undefined]
31
+ **updatedAt** | **string** | | [optional] [default to undefined]
31
32
  **isLevelCertified** | **boolean** | | [optional] [default to undefined]
32
33
  **favoriteClubs** | **Array<string>** | | [optional] [default to undefined]
33
34
  **description** | **string** | | [optional] [default to undefined]
34
- **isProfileVisible** | **boolean** | | [default to undefined]
35
+ **isProfileVisible** | **boolean** | | [optional] [default to undefined]
35
36
  **favoritePlayers** | **Array<string>** | | [optional] [default to undefined]
36
37
  **sports** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
37
38
  **stripeCustomerId** | **string** | | [optional] [default to undefined]
@@ -69,6 +70,7 @@ const instance: UserProfileResponse = {
69
70
  emailVerificationToken,
70
71
  emailVerificationExpires,
71
72
  organizations,
73
+ isGuest,
72
74
  isAdmin,
73
75
  isClient,
74
76
  createdAt,
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.149
7
+ * The version of the OpenAPI document: 1.0.151
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.149",
3
+ "version": "1.0.151",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {