@tennac-booking/sdk 1.0.163 → 1.0.166
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 +377 -373
- package/README.md +4 -0
- package/api.ts +349 -43
- package/dist/api.d.ts +297 -43
- package/dist/api.js +135 -31
- package/dist/esm/api.d.ts +297 -43
- package/dist/esm/api.js +129 -29
- package/docs/BookingsApi.md +1 -1
- package/docs/BookingsUserApi.md +1 -1
- package/docs/ClientApi.md +2 -2
- package/docs/ClubPresentationSettingsResponse.md +2 -0
- package/docs/ClubsApi.md +2 -2
- package/docs/ContactApi.md +61 -0
- package/docs/ContactRequestBody.md +28 -0
- package/docs/ContactSuccessResponse.md +20 -0
- package/docs/CreateEventRequest.md +8 -4
- package/docs/CreateSubscriptionPlanRequestDiscount.md +1 -1
- package/docs/EventBookingDetailSummary.md +1 -1
- package/docs/EventConflictCheckRequest.md +8 -4
- package/docs/EventResponse.md +8 -4
- package/docs/EventsStaffApi.md +1 -1
- package/docs/ImageContextType.md +7 -1
- package/docs/RecurringDefinitionResponse.md +8 -0
- package/docs/Sponsor.md +24 -0
- package/docs/UpdateClubPresentationSettingsRequest.md +2 -0
- package/docs/UpdateEventRequest.md +8 -4
- package/docs/UpdateRecurringDefinitionRequest.md +8 -0
- package/package.json +1 -1
package/docs/EventResponse.md
CHANGED
|
@@ -11,8 +11,10 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**title** | **string** | | [default to undefined]
|
|
12
12
|
**description** | **string** | | [optional] [default to undefined]
|
|
13
13
|
**photoUrl** | **string** | | [optional] [default to undefined]
|
|
14
|
-
**
|
|
15
|
-
**
|
|
14
|
+
**isAllDay** | **boolean** | | [default to undefined]
|
|
15
|
+
**date** | **string** | | [default to undefined]
|
|
16
|
+
**startTime** | **number** | | [optional] [default to undefined]
|
|
17
|
+
**endTime** | **number** | | [optional] [default to undefined]
|
|
16
18
|
**courts** | **Array<string>** | | [default to undefined]
|
|
17
19
|
**sports** | [**Array<SportWithLevels>**](SportWithLevels.md) | | [default to undefined]
|
|
18
20
|
**recurringType** | **string** | | [default to undefined]
|
|
@@ -46,8 +48,10 @@ const instance: EventResponse = {
|
|
|
46
48
|
title,
|
|
47
49
|
description,
|
|
48
50
|
photoUrl,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
+
isAllDay,
|
|
52
|
+
date,
|
|
53
|
+
startTime,
|
|
54
|
+
endTime,
|
|
51
55
|
courts,
|
|
52
56
|
sports,
|
|
53
57
|
recurringType,
|
package/docs/EventsStaffApi.md
CHANGED
|
@@ -136,7 +136,7 @@ const { status, data } = await apiInstance.getDailyEvents(
|
|
|
136
136
|
# **getEventsByClub**
|
|
137
137
|
> EventsListResponse getEventsByClub()
|
|
138
138
|
|
|
139
|
-
// Use service to validate booking openness, team participation, and capacity
|
|
139
|
+
// Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
140
140
|
|
|
141
141
|
### Example
|
|
142
142
|
|
package/docs/ImageContextType.md
CHANGED
|
@@ -7,10 +7,16 @@
|
|
|
7
7
|
|
|
8
8
|
* `ClubAvatar` (value: `'club-avatar'`)
|
|
9
9
|
|
|
10
|
-
* `
|
|
10
|
+
* `ClubSponsor` (value: `'club-sponsor'`)
|
|
11
|
+
|
|
12
|
+
* `ClubClosure` (value: `'club-closure'`)
|
|
13
|
+
|
|
14
|
+
* `ClubNews` (value: `'club-news'`)
|
|
11
15
|
|
|
12
16
|
* `ClubPreview` (value: `'club-preview'`)
|
|
13
17
|
|
|
18
|
+
* `ClubGallery` (value: `'club-gallery'`)
|
|
19
|
+
|
|
14
20
|
* `ClubCarousel` (value: `'club-carousel'`)
|
|
15
21
|
|
|
16
22
|
* `ClubSportImage` (value: `'club-sport-image'`)
|
|
@@ -10,6 +10,10 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**title** | **string** | | [default to undefined]
|
|
11
11
|
**baseStartDate** | **string** | | [default to undefined]
|
|
12
12
|
**baseEndDate** | **string** | | [default to undefined]
|
|
13
|
+
**isAllDay** | **boolean** | | [default to undefined]
|
|
14
|
+
**date** | **string** | | [default to undefined]
|
|
15
|
+
**startTime** | **number** | | [optional] [default to undefined]
|
|
16
|
+
**endTime** | **number** | | [optional] [default to undefined]
|
|
13
17
|
**recurringType** | **string** | | [default to undefined]
|
|
14
18
|
**recurrenceEndDate** | **string** | | [optional] [default to undefined]
|
|
15
19
|
**isActive** | **boolean** | | [optional] [default to undefined]
|
|
@@ -25,6 +29,10 @@ const instance: RecurringDefinitionResponse = {
|
|
|
25
29
|
title,
|
|
26
30
|
baseStartDate,
|
|
27
31
|
baseEndDate,
|
|
32
|
+
isAllDay,
|
|
33
|
+
date,
|
|
34
|
+
startTime,
|
|
35
|
+
endTime,
|
|
28
36
|
recurringType,
|
|
29
37
|
recurrenceEndDate,
|
|
30
38
|
isActive,
|
package/docs/Sponsor.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Sponsor
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | | [default to undefined]
|
|
9
|
+
**logo** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**websiteUrl** | **string** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { Sponsor } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: Sponsor = {
|
|
18
|
+
name,
|
|
19
|
+
logo,
|
|
20
|
+
websiteUrl,
|
|
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)
|
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**tags** | **Array<string>** | | [optional] [default to undefined]
|
|
10
10
|
**bannerImages** | [**Array<UpdateClubGeneralSettingsRequestLogo>**](UpdateClubGeneralSettingsRequestLogo.md) | | [optional] [default to undefined]
|
|
11
11
|
**galleryImages** | [**Array<UpdateClubGeneralSettingsRequestLogo>**](UpdateClubGeneralSettingsRequestLogo.md) | | [optional] [default to undefined]
|
|
12
|
+
**sponsors** | [**Array<Sponsor>**](Sponsor.md) | | [optional] [default to undefined]
|
|
12
13
|
|
|
13
14
|
## Example
|
|
14
15
|
|
|
@@ -20,6 +21,7 @@ const instance: UpdateClubPresentationSettingsRequest = {
|
|
|
20
21
|
tags,
|
|
21
22
|
bannerImages,
|
|
22
23
|
galleryImages,
|
|
24
|
+
sponsors,
|
|
23
25
|
};
|
|
24
26
|
```
|
|
25
27
|
|
|
@@ -9,8 +9,10 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**title** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**description** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**photoUrl** | **string** | | [optional] [default to undefined]
|
|
12
|
-
**
|
|
13
|
-
**
|
|
12
|
+
**isAllDay** | **boolean** | | [optional] [default to undefined]
|
|
13
|
+
**date** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**startTime** | **number** | | [optional] [default to undefined]
|
|
15
|
+
**endTime** | **number** | | [optional] [default to undefined]
|
|
14
16
|
**courts** | **Array<string>** | | [optional] [default to undefined]
|
|
15
17
|
**sports** | **Array<string>** | | [optional] [default to undefined]
|
|
16
18
|
**recurringType** | **string** | | [optional] [default to undefined]
|
|
@@ -38,8 +40,10 @@ const instance: UpdateEventRequest = {
|
|
|
38
40
|
title,
|
|
39
41
|
description,
|
|
40
42
|
photoUrl,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
+
isAllDay,
|
|
44
|
+
date,
|
|
45
|
+
startTime,
|
|
46
|
+
endTime,
|
|
43
47
|
courts,
|
|
44
48
|
sports,
|
|
45
49
|
recurringType,
|
|
@@ -20,6 +20,10 @@ Name | Type | Description | Notes
|
|
|
20
20
|
**playersPerTeam** | **number** | | [optional] [default to undefined]
|
|
21
21
|
**price** | **number** | | [optional] [default to undefined]
|
|
22
22
|
**subscriberPrices** | [**Array<SubscriberPrice>**](SubscriberPrice.md) | | [optional] [default to undefined]
|
|
23
|
+
**isAllDay** | **boolean** | | [optional] [default to undefined]
|
|
24
|
+
**date** | **string** | | [optional] [default to undefined]
|
|
25
|
+
**startTime** | **number** | | [optional] [default to undefined]
|
|
26
|
+
**endTime** | **number** | | [optional] [default to undefined]
|
|
23
27
|
**baseStartDate** | **string** | | [optional] [default to undefined]
|
|
24
28
|
**baseEndDate** | **string** | | [optional] [default to undefined]
|
|
25
29
|
**recurringType** | **string** | | [optional] [default to undefined]
|
|
@@ -46,6 +50,10 @@ const instance: UpdateRecurringDefinitionRequest = {
|
|
|
46
50
|
playersPerTeam,
|
|
47
51
|
price,
|
|
48
52
|
subscriberPrices,
|
|
53
|
+
isAllDay,
|
|
54
|
+
date,
|
|
55
|
+
startTime,
|
|
56
|
+
endTime,
|
|
49
57
|
baseStartDate,
|
|
50
58
|
baseEndDate,
|
|
51
59
|
recurringType,
|