@tennac-booking/sdk 1.0.69 → 1.0.71
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 +236 -227
- package/README.md +20 -7
- package/api.ts +1488 -247
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1334 -339
- package/dist/api.js +461 -62
- 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 +1334 -339
- package/dist/esm/api.js +458 -59
- 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/BookingDetailResponse.md +1 -1
- package/docs/{BookingHistory.md → BookingHistoryPopulated.md} +4 -4
- package/docs/BookingPopulated.md +27 -7
- package/docs/BookingStatus.md +3 -1
- package/docs/BookingSummary.md +1 -1
- package/docs/BookingsApi.md +81 -2
- package/docs/BookingsStaffApi.md +3 -3
- package/docs/CheckInPlayersResponse.md +2 -10
- package/docs/ClubsApi.md +2 -2
- package/docs/CreateEventRequest.md +26 -0
- package/docs/CreateSportForClubRequest.md +6 -0
- package/docs/CreateSportRequest.md +8 -2
- package/docs/EventResponse.md +26 -0
- package/docs/EventsApi.md +131 -12
- package/docs/EventsManagerApi.md +59 -0
- package/docs/JoinEventRequest.md +22 -0
- package/docs/JoinEventResponse.md +22 -0
- package/docs/QuickReservationClubSummary.md +28 -0
- package/docs/QuickReservationClubSummaryLocation.md +31 -0
- package/docs/QuickReservationResponse.md +22 -0
- package/docs/QuickReservationSlotSummary.md +42 -0
- package/docs/SportKey.md +14 -0
- package/docs/SportLevel.md +22 -0
- package/docs/SportResponse.md +10 -5
- package/docs/SportWithLevels.md +30 -0
- package/docs/SportsManagerApi.md +6 -3
- package/docs/SportsStaffApi.md +3 -3
- package/docs/{GetSportsByClubById200Response.md → SubscriberPrice.md} +7 -5
- package/docs/{BookingSummaryBookingHistory.md → Team.md} +7 -3
- package/docs/UpdateEventRequest.md +54 -0
- package/docs/UpdateSportRequest.md +9 -1
- package/docs/UserInfo.md +4 -0
- package/docs/UsersApi.md +0 -3
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/SportWithAnalytics.md +0 -36
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ Name | Type | Description | Notes
|
|
|
17
17
|
**totalAmount** | **number** | | [default to undefined]
|
|
18
18
|
**timeBeforeCancel** | **string** | | [optional] [default to undefined]
|
|
19
19
|
**clubAddress** | [**BookingSummaryClubAddress**](BookingSummaryClubAddress.md) | | [optional] [default to undefined]
|
|
20
|
-
**bookingHistory** | [**
|
|
20
|
+
**bookingHistory** | [**BookingHistoryPopulated**](BookingHistoryPopulated.md) | | [optional] [default to undefined]
|
|
21
21
|
**paymentStatus** | **Array<{ [key: string]: any; }>** | | [default to undefined]
|
|
22
22
|
|
|
23
23
|
## Example
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# BookingHistoryPopulated
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**action** | **string** | | [default to undefined]
|
|
9
|
-
**performedBy** | **
|
|
9
|
+
**performedBy** | [**UserInfo**](UserInfo.md) | | [default to undefined]
|
|
10
10
|
**performedByType** | **string** | | [default to undefined]
|
|
11
11
|
**details** | **string** | | [default to undefined]
|
|
12
12
|
**metadata** | **any** | | [optional] [default to undefined]
|
|
@@ -17,9 +17,9 @@ Name | Type | Description | Notes
|
|
|
17
17
|
## Example
|
|
18
18
|
|
|
19
19
|
```typescript
|
|
20
|
-
import {
|
|
20
|
+
import { BookingHistoryPopulated } from '@tennac-booking/sdk';
|
|
21
21
|
|
|
22
|
-
const instance:
|
|
22
|
+
const instance: BookingHistoryPopulated = {
|
|
23
23
|
action,
|
|
24
24
|
performedBy,
|
|
25
25
|
performedByType,
|
package/docs/BookingPopulated.md
CHANGED
|
@@ -6,10 +6,20 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**id** | **string** | ID de la réservation | [default to undefined]
|
|
9
|
-
**
|
|
10
|
-
**
|
|
11
|
-
**
|
|
12
|
-
**
|
|
9
|
+
**clubId** | **string** | | [default to undefined]
|
|
10
|
+
**creator** | [**UserInfo**](UserInfo.md) | | [default to undefined]
|
|
11
|
+
**slotInfos** | [**SlotInfo**](SlotInfo.md) | | [default to undefined]
|
|
12
|
+
**paymentByPlayers** | [**Array<PaymentByPlayerInfo>**](PaymentByPlayerInfo.md) | Statut des paiements par joueur | [default to undefined]
|
|
13
|
+
**noShowChargeApplied** | **boolean** | | [optional] [default to undefined]
|
|
14
|
+
**noShowChargeAmount** | **number** | | [optional] [default to undefined]
|
|
15
|
+
**totalPrice** | **number** | | [default to undefined]
|
|
16
|
+
**isCreatorPayingAll** | **boolean** | | [default to undefined]
|
|
17
|
+
**playersIds** | **Array<string>** | | [default to undefined]
|
|
18
|
+
**history** | [**Array<BookingHistoryPopulated>**](BookingHistoryPopulated.md) | | [default to undefined]
|
|
19
|
+
**status** | [**BookingStatus**](BookingStatus.md) | | [default to undefined]
|
|
20
|
+
**cancelledByManager** | **boolean** | | [optional] [default to undefined]
|
|
21
|
+
**cancelledBy** | **string** | | [optional] [default to undefined]
|
|
22
|
+
**cancellationReason** | **string** | | [optional] [default to undefined]
|
|
13
23
|
|
|
14
24
|
## Example
|
|
15
25
|
|
|
@@ -18,10 +28,20 @@ import { BookingPopulated } from '@tennac-booking/sdk';
|
|
|
18
28
|
|
|
19
29
|
const instance: BookingPopulated = {
|
|
20
30
|
id,
|
|
31
|
+
clubId,
|
|
32
|
+
creator,
|
|
33
|
+
slotInfos,
|
|
34
|
+
paymentByPlayers,
|
|
35
|
+
noShowChargeApplied,
|
|
36
|
+
noShowChargeAmount,
|
|
37
|
+
totalPrice,
|
|
38
|
+
isCreatorPayingAll,
|
|
39
|
+
playersIds,
|
|
40
|
+
history,
|
|
21
41
|
status,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
42
|
+
cancelledByManager,
|
|
43
|
+
cancelledBy,
|
|
44
|
+
cancellationReason,
|
|
25
45
|
};
|
|
26
46
|
```
|
|
27
47
|
|
package/docs/BookingStatus.md
CHANGED
|
@@ -5,11 +5,13 @@
|
|
|
5
5
|
|
|
6
6
|
* `Paid` (value: `'paid'`)
|
|
7
7
|
|
|
8
|
+
* `Validated` (value: `'validated'`)
|
|
9
|
+
|
|
8
10
|
* `Active` (value: `'active'`)
|
|
9
11
|
|
|
10
12
|
* `Pending` (value: `'pending'`)
|
|
11
13
|
|
|
12
|
-
* `
|
|
14
|
+
* `ActivePaymentsTimeout` (value: `'active_payments_timeout'`)
|
|
13
15
|
|
|
14
16
|
* `Canceled` (value: `'canceled'`)
|
|
15
17
|
|
package/docs/BookingSummary.md
CHANGED
|
@@ -17,7 +17,7 @@ Name | Type | Description | Notes
|
|
|
17
17
|
**totalAmount** | **number** | | [default to undefined]
|
|
18
18
|
**timeBeforeCancel** | **string** | | [optional] [default to undefined]
|
|
19
19
|
**clubAddress** | [**BookingSummaryClubAddress**](BookingSummaryClubAddress.md) | | [optional] [default to undefined]
|
|
20
|
-
**bookingHistory** | [**
|
|
20
|
+
**bookingHistory** | [**BookingHistoryPopulated**](BookingHistoryPopulated.md) | | [optional] [default to undefined]
|
|
21
21
|
|
|
22
22
|
## Example
|
|
23
23
|
|
package/docs/BookingsApi.md
CHANGED
|
@@ -5,9 +5,10 @@ All URIs are relative to *http://localhost*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**getBookingHistory**](#getbookinghistory) | **GET** /api/bookings/history/{bookingId} | |
|
|
8
|
+
|[**getQuickReservationSlots**](#getquickreservationslots) | **GET** /api/bookings/quick-reservations | |
|
|
8
9
|
|
|
9
10
|
# **getBookingHistory**
|
|
10
|
-
>
|
|
11
|
+
> BookingHistoryPopulated getBookingHistory()
|
|
11
12
|
|
|
12
13
|
Obtenir l\'historique d\'une réservation par ID
|
|
13
14
|
|
|
@@ -38,7 +39,7 @@ const { status, data } = await apiInstance.getBookingHistory(
|
|
|
38
39
|
|
|
39
40
|
### Return type
|
|
40
41
|
|
|
41
|
-
**
|
|
42
|
+
**BookingHistoryPopulated**
|
|
42
43
|
|
|
43
44
|
### Authorization
|
|
44
45
|
|
|
@@ -57,3 +58,81 @@ const { status, data } = await apiInstance.getBookingHistory(
|
|
|
57
58
|
|
|
58
59
|
[[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)
|
|
59
60
|
|
|
61
|
+
# **getQuickReservationSlots**
|
|
62
|
+
> QuickReservationResponse getQuickReservationSlots()
|
|
63
|
+
|
|
64
|
+
Recherche des créneaux disponibles pour une réservation rapide
|
|
65
|
+
|
|
66
|
+
### Example
|
|
67
|
+
|
|
68
|
+
```typescript
|
|
69
|
+
import {
|
|
70
|
+
BookingsApi,
|
|
71
|
+
Configuration
|
|
72
|
+
} from '@tennac-booking/sdk';
|
|
73
|
+
|
|
74
|
+
const configuration = new Configuration();
|
|
75
|
+
const apiInstance = new BookingsApi(configuration);
|
|
76
|
+
|
|
77
|
+
let latitude: number; // (optional) (default to undefined)
|
|
78
|
+
let longitude: number; // (optional) (default to undefined)
|
|
79
|
+
let radiusInKm: number; // (optional) (default to undefined)
|
|
80
|
+
let date: string; // (optional) (default to undefined)
|
|
81
|
+
let sportId: string; // (optional) (default to undefined)
|
|
82
|
+
let startTime: string; // (optional) (default to undefined)
|
|
83
|
+
let priceMax: number; // (optional) (default to undefined)
|
|
84
|
+
let courtTypes: string; // (optional) (default to undefined)
|
|
85
|
+
let limitPerClub: number; // (optional) (default to undefined)
|
|
86
|
+
let maxClubs: number; // (optional) (default to undefined)
|
|
87
|
+
|
|
88
|
+
const { status, data } = await apiInstance.getQuickReservationSlots(
|
|
89
|
+
latitude,
|
|
90
|
+
longitude,
|
|
91
|
+
radiusInKm,
|
|
92
|
+
date,
|
|
93
|
+
sportId,
|
|
94
|
+
startTime,
|
|
95
|
+
priceMax,
|
|
96
|
+
courtTypes,
|
|
97
|
+
limitPerClub,
|
|
98
|
+
maxClubs
|
|
99
|
+
);
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Parameters
|
|
103
|
+
|
|
104
|
+
|Name | Type | Description | Notes|
|
|
105
|
+
|------------- | ------------- | ------------- | -------------|
|
|
106
|
+
| **latitude** | [**number**] | | (optional) defaults to undefined|
|
|
107
|
+
| **longitude** | [**number**] | | (optional) defaults to undefined|
|
|
108
|
+
| **radiusInKm** | [**number**] | | (optional) defaults to undefined|
|
|
109
|
+
| **date** | [**string**] | | (optional) defaults to undefined|
|
|
110
|
+
| **sportId** | [**string**] | | (optional) defaults to undefined|
|
|
111
|
+
| **startTime** | [**string**] | | (optional) defaults to undefined|
|
|
112
|
+
| **priceMax** | [**number**] | | (optional) defaults to undefined|
|
|
113
|
+
| **courtTypes** | [**string**] | | (optional) defaults to undefined|
|
|
114
|
+
| **limitPerClub** | [**number**] | | (optional) defaults to undefined|
|
|
115
|
+
| **maxClubs** | [**number**] | | (optional) defaults to undefined|
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
### Return type
|
|
119
|
+
|
|
120
|
+
**QuickReservationResponse**
|
|
121
|
+
|
|
122
|
+
### Authorization
|
|
123
|
+
|
|
124
|
+
No authorization required
|
|
125
|
+
|
|
126
|
+
### HTTP request headers
|
|
127
|
+
|
|
128
|
+
- **Content-Type**: Not defined
|
|
129
|
+
- **Accept**: application/json
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
### HTTP response details
|
|
133
|
+
| Status code | Description | Response headers |
|
|
134
|
+
|-------------|-------------|------------------|
|
|
135
|
+
|**200** | Créneaux disponibles pour réservation rapide | - |
|
|
136
|
+
|
|
137
|
+
[[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)
|
|
138
|
+
|
package/docs/BookingsStaffApi.md
CHANGED
|
@@ -14,7 +14,7 @@ All URIs are relative to *http://localhost*
|
|
|
14
14
|
# **checkInPlayers**
|
|
15
15
|
> CheckInPlayersResponse checkInPlayers(checkInPlayersRequest)
|
|
16
16
|
|
|
17
|
-
Check-in des joueurs
|
|
17
|
+
Check-in des joueurs only for club with payment features
|
|
18
18
|
|
|
19
19
|
### Example
|
|
20
20
|
|
|
@@ -118,7 +118,7 @@ const { status, data } = await apiInstance.getBookingById(
|
|
|
118
118
|
[[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)
|
|
119
119
|
|
|
120
120
|
# **getBookingHistoryStaff**
|
|
121
|
-
>
|
|
121
|
+
> BookingHistoryPopulated getBookingHistoryStaff()
|
|
122
122
|
|
|
123
123
|
Obtenir l\'historique d\'une réservation par ID
|
|
124
124
|
|
|
@@ -149,7 +149,7 @@ const { status, data } = await apiInstance.getBookingHistoryStaff(
|
|
|
149
149
|
|
|
150
150
|
### Return type
|
|
151
151
|
|
|
152
|
-
**
|
|
152
|
+
**BookingHistoryPopulated**
|
|
153
153
|
|
|
154
154
|
### Authorization
|
|
155
155
|
|
|
@@ -6,11 +6,7 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**message** | **string** | Message de confirmation | [default to undefined]
|
|
9
|
-
**
|
|
10
|
-
**notFoundPlayers** | **Array<string>** | Joueurs non trouvés | [default to undefined]
|
|
11
|
-
**allPlayersCheckedIn** | **boolean** | Tous les joueurs ont fait le check-in | [default to undefined]
|
|
12
|
-
**bookingFullyPaid** | **boolean** | Réservation entièrement payée | [default to undefined]
|
|
13
|
-
**totalPlayers** | **number** | Nombre total de joueurs | [default to undefined]
|
|
9
|
+
**invoices** | [**Array<CheckedInPlayer>**](CheckedInPlayer.md) | Joueurs ayant effectué le check-in | [default to undefined]
|
|
14
10
|
|
|
15
11
|
## Example
|
|
16
12
|
|
|
@@ -19,11 +15,7 @@ import { CheckInPlayersResponse } from '@tennac-booking/sdk';
|
|
|
19
15
|
|
|
20
16
|
const instance: CheckInPlayersResponse = {
|
|
21
17
|
message,
|
|
22
|
-
|
|
23
|
-
notFoundPlayers,
|
|
24
|
-
allPlayersCheckedIn,
|
|
25
|
-
bookingFullyPaid,
|
|
26
|
-
totalPlayers,
|
|
18
|
+
invoices,
|
|
27
19
|
};
|
|
28
20
|
```
|
|
29
21
|
|
package/docs/ClubsApi.md
CHANGED
|
@@ -563,7 +563,7 @@ No authorization required
|
|
|
563
563
|
[[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)
|
|
564
564
|
|
|
565
565
|
# **getSportsByClubById**
|
|
566
|
-
>
|
|
566
|
+
> Array<SportResponse> getSportsByClubById()
|
|
567
567
|
|
|
568
568
|
|
|
569
569
|
### Example
|
|
@@ -593,7 +593,7 @@ const { status, data } = await apiInstance.getSportsByClubById(
|
|
|
593
593
|
|
|
594
594
|
### Return type
|
|
595
595
|
|
|
596
|
-
**
|
|
596
|
+
**Array<SportResponse>**
|
|
597
597
|
|
|
598
598
|
### Authorization
|
|
599
599
|
|
|
@@ -5,11 +5,24 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**type** | **string** | | [default to undefined]
|
|
8
9
|
**title** | **string** | | [default to undefined]
|
|
9
10
|
**description** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**photoUrl** | **string** | | [optional] [default to undefined]
|
|
10
12
|
**startDate** | **string** | | [default to undefined]
|
|
11
13
|
**endDate** | **string** | | [default to undefined]
|
|
12
14
|
**courts** | [**Array<EventResponseCourtsInner>**](EventResponseCourtsInner.md) | | [default to undefined]
|
|
15
|
+
**sports** | **Array<string>** | | [default to undefined]
|
|
16
|
+
**recurringType** | **string** | | [default to undefined]
|
|
17
|
+
**recurrenceEndDate** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**participationType** | **string** | | [default to undefined]
|
|
19
|
+
**participants** | **Array<string>** | | [optional] [default to undefined]
|
|
20
|
+
**teams** | [**Array<Team>**](Team.md) | | [optional] [default to undefined]
|
|
21
|
+
**playerLimit** | **number** | | [optional] [default to undefined]
|
|
22
|
+
**teamLimit** | **number** | | [optional] [default to undefined]
|
|
23
|
+
**price** | **number** | | [optional] [default to undefined]
|
|
24
|
+
**subscriberPrices** | [**Array<SubscriberPrice>**](SubscriberPrice.md) | | [optional] [default to undefined]
|
|
25
|
+
**visibilityType** | **string** | | [default to undefined]
|
|
13
26
|
|
|
14
27
|
## Example
|
|
15
28
|
|
|
@@ -17,11 +30,24 @@ Name | Type | Description | Notes
|
|
|
17
30
|
import { CreateEventRequest } from '@tennac-booking/sdk';
|
|
18
31
|
|
|
19
32
|
const instance: CreateEventRequest = {
|
|
33
|
+
type,
|
|
20
34
|
title,
|
|
21
35
|
description,
|
|
36
|
+
photoUrl,
|
|
22
37
|
startDate,
|
|
23
38
|
endDate,
|
|
24
39
|
courts,
|
|
40
|
+
sports,
|
|
41
|
+
recurringType,
|
|
42
|
+
recurrenceEndDate,
|
|
43
|
+
participationType,
|
|
44
|
+
participants,
|
|
45
|
+
teams,
|
|
46
|
+
playerLimit,
|
|
47
|
+
teamLimit,
|
|
48
|
+
price,
|
|
49
|
+
subscriberPrices,
|
|
50
|
+
visibilityType,
|
|
25
51
|
};
|
|
26
52
|
```
|
|
27
53
|
|
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**logos** | **Array<string>** | | [optional] [default to undefined]
|
|
9
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
8
11
|
**key** | **string** | | [default to undefined]
|
|
9
12
|
|
|
10
13
|
## Example
|
|
@@ -13,6 +16,9 @@ Name | Type | Description | Notes
|
|
|
13
16
|
import { CreateSportForClubRequest } from '@tennac-booking/sdk';
|
|
14
17
|
|
|
15
18
|
const instance: CreateSportForClubRequest = {
|
|
19
|
+
logos,
|
|
20
|
+
description,
|
|
21
|
+
name,
|
|
16
22
|
key,
|
|
17
23
|
};
|
|
18
24
|
```
|
|
@@ -5,7 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
8
|
+
**name** | **string** | Nom affiché du sport | [optional] [default to undefined]
|
|
9
|
+
**description** | **string** | Description du sport | [optional] [default to undefined]
|
|
10
|
+
**levels** | [**Array<SportLevel>**](SportLevel.md) | Niveaux associés | [optional] [default to undefined]
|
|
11
|
+
**logos** | **Array<string>** | URLs de logos/images | [optional] [default to undefined]
|
|
9
12
|
|
|
10
13
|
## Example
|
|
11
14
|
|
|
@@ -13,7 +16,10 @@ Name | Type | Description | Notes
|
|
|
13
16
|
import { CreateSportRequest } from '@tennac-booking/sdk';
|
|
14
17
|
|
|
15
18
|
const instance: CreateSportRequest = {
|
|
16
|
-
|
|
19
|
+
name,
|
|
20
|
+
description,
|
|
21
|
+
levels,
|
|
22
|
+
logos,
|
|
17
23
|
};
|
|
18
24
|
```
|
|
19
25
|
|
package/docs/EventResponse.md
CHANGED
|
@@ -7,11 +7,24 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**id** | **string** | | [default to undefined]
|
|
9
9
|
**clubId** | **string** | | [default to undefined]
|
|
10
|
+
**type** | **string** | | [default to undefined]
|
|
10
11
|
**title** | **string** | | [default to undefined]
|
|
11
12
|
**description** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**photoUrl** | **string** | | [optional] [default to undefined]
|
|
12
14
|
**startDate** | **string** | | [default to undefined]
|
|
13
15
|
**endDate** | **string** | | [default to undefined]
|
|
14
16
|
**courts** | [**Array<EventResponseCourtsInner>**](EventResponseCourtsInner.md) | | [default to undefined]
|
|
17
|
+
**sports** | [**Array<SportWithLevels>**](SportWithLevels.md) | | [default to undefined]
|
|
18
|
+
**recurringType** | **string** | | [default to undefined]
|
|
19
|
+
**recurrenceEndDate** | **string** | | [optional] [default to undefined]
|
|
20
|
+
**participationType** | **string** | | [default to undefined]
|
|
21
|
+
**participants** | **Array<string>** | | [optional] [default to undefined]
|
|
22
|
+
**teams** | [**Array<Team>**](Team.md) | | [optional] [default to undefined]
|
|
23
|
+
**playerLimit** | **number** | | [optional] [default to undefined]
|
|
24
|
+
**teamLimit** | **number** | | [optional] [default to undefined]
|
|
25
|
+
**price** | **number** | | [optional] [default to undefined]
|
|
26
|
+
**subscriberPrices** | [**Array<SubscriberPrice>**](SubscriberPrice.md) | | [optional] [default to undefined]
|
|
27
|
+
**visibilityType** | **string** | | [default to undefined]
|
|
15
28
|
**createdBy** | **string** | | [optional] [default to undefined]
|
|
16
29
|
**isActive** | **boolean** | | [default to undefined]
|
|
17
30
|
**createdAt** | **string** | | [default to undefined]
|
|
@@ -25,11 +38,24 @@ import { EventResponse } from '@tennac-booking/sdk';
|
|
|
25
38
|
const instance: EventResponse = {
|
|
26
39
|
id,
|
|
27
40
|
clubId,
|
|
41
|
+
type,
|
|
28
42
|
title,
|
|
29
43
|
description,
|
|
44
|
+
photoUrl,
|
|
30
45
|
startDate,
|
|
31
46
|
endDate,
|
|
32
47
|
courts,
|
|
48
|
+
sports,
|
|
49
|
+
recurringType,
|
|
50
|
+
recurrenceEndDate,
|
|
51
|
+
participationType,
|
|
52
|
+
participants,
|
|
53
|
+
teams,
|
|
54
|
+
playerLimit,
|
|
55
|
+
teamLimit,
|
|
56
|
+
price,
|
|
57
|
+
subscriberPrices,
|
|
58
|
+
visibilityType,
|
|
33
59
|
createdBy,
|
|
34
60
|
isActive,
|
|
35
61
|
createdAt,
|