@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.
Files changed (62) hide show
  1. package/.openapi-generator/FILES +236 -227
  2. package/README.md +20 -7
  3. package/api.ts +1488 -247
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +1334 -339
  8. package/dist/api.js +461 -62
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +1334 -339
  16. package/dist/esm/api.js +458 -59
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/BookingDetailResponse.md +1 -1
  28. package/docs/{BookingHistory.md → BookingHistoryPopulated.md} +4 -4
  29. package/docs/BookingPopulated.md +27 -7
  30. package/docs/BookingStatus.md +3 -1
  31. package/docs/BookingSummary.md +1 -1
  32. package/docs/BookingsApi.md +81 -2
  33. package/docs/BookingsStaffApi.md +3 -3
  34. package/docs/CheckInPlayersResponse.md +2 -10
  35. package/docs/ClubsApi.md +2 -2
  36. package/docs/CreateEventRequest.md +26 -0
  37. package/docs/CreateSportForClubRequest.md +6 -0
  38. package/docs/CreateSportRequest.md +8 -2
  39. package/docs/EventResponse.md +26 -0
  40. package/docs/EventsApi.md +131 -12
  41. package/docs/EventsManagerApi.md +59 -0
  42. package/docs/JoinEventRequest.md +22 -0
  43. package/docs/JoinEventResponse.md +22 -0
  44. package/docs/QuickReservationClubSummary.md +28 -0
  45. package/docs/QuickReservationClubSummaryLocation.md +31 -0
  46. package/docs/QuickReservationResponse.md +22 -0
  47. package/docs/QuickReservationSlotSummary.md +42 -0
  48. package/docs/SportKey.md +14 -0
  49. package/docs/SportLevel.md +22 -0
  50. package/docs/SportResponse.md +10 -5
  51. package/docs/SportWithLevels.md +30 -0
  52. package/docs/SportsManagerApi.md +6 -3
  53. package/docs/SportsStaffApi.md +3 -3
  54. package/docs/{GetSportsByClubById200Response.md → SubscriberPrice.md} +7 -5
  55. package/docs/{BookingSummaryBookingHistory.md → Team.md} +7 -3
  56. package/docs/UpdateEventRequest.md +54 -0
  57. package/docs/UpdateSportRequest.md +9 -1
  58. package/docs/UserInfo.md +4 -0
  59. package/docs/UsersApi.md +0 -3
  60. package/index.ts +1 -1
  61. package/package.json +1 -1
  62. package/docs/SportWithAnalytics.md +0 -36
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.68
5
+ * The version of the OpenAPI document: 1.0.71
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.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.68
7
+ * The version of the OpenAPI document: 1.0.71
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.68
5
+ * The version of the OpenAPI document: 1.0.71
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.68
7
+ * The version of the OpenAPI document: 1.0.71
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.68
5
+ * The version of the OpenAPI document: 1.0.71
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.68
7
+ * The version of the OpenAPI document: 1.0.71
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * openapi.json
3
3
  * Pandook API Documentation
4
4
  *
5
- * The version of the OpenAPI document: 1.0.68
5
+ * The version of the OpenAPI document: 1.0.71
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
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.68
7
+ * The version of the OpenAPI document: 1.0.71
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.68
5
+ * The version of the OpenAPI document: 1.0.71
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.68
8
+ * The version of the OpenAPI document: 1.0.71
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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** | [**BookingSummaryBookingHistory**](BookingSummaryBookingHistory.md) | | [optional] [default to undefined]
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
- # BookingHistory
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** | **string** | | [default to undefined]
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 { BookingHistory } from '@tennac-booking/sdk';
20
+ import { BookingHistoryPopulated } from '@tennac-booking/sdk';
21
21
 
22
- const instance: BookingHistory = {
22
+ const instance: BookingHistoryPopulated = {
23
23
  action,
24
24
  performedBy,
25
25
  performedByType,
@@ -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
- **status** | **string** | Statut | [default to undefined]
10
- **userId** | [**UserInfo**](UserInfo.md) | | [default to undefined]
11
- **slotId** | [**SlotInfo**](SlotInfo.md) | | [default to undefined]
12
- **paymentByPlayersStatus** | [**Array<PaymentByPlayerInfo>**](PaymentByPlayerInfo.md) | Statut des paiements par joueur | [default to undefined]
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
- userId,
23
- slotId,
24
- paymentByPlayersStatus,
42
+ cancelledByManager,
43
+ cancelledBy,
44
+ cancellationReason,
25
45
  };
26
46
  ```
27
47
 
@@ -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
- * `Expired` (value: `'expired'`)
14
+ * `ActivePaymentsTimeout` (value: `'active_payments_timeout'`)
13
15
 
14
16
  * `Canceled` (value: `'canceled'`)
15
17
 
@@ -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** | [**BookingSummaryBookingHistory**](BookingSummaryBookingHistory.md) | | [optional] [default to undefined]
20
+ **bookingHistory** | [**BookingHistoryPopulated**](BookingHistoryPopulated.md) | | [optional] [default to undefined]
21
21
 
22
22
  ## Example
23
23
 
@@ -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
- > BookingHistory getBookingHistory()
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
- **BookingHistory**
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
+
@@ -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
- > BookingHistory getBookingHistoryStaff()
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
- **BookingHistory**
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
- **checkedInPlayers** | [**Array<CheckedInPlayer>**](CheckedInPlayer.md) | Joueurs ayant effectué le check-in | [default to undefined]
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
- checkedInPlayers,
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
- > GetSportsByClubById200Response getSportsByClubById()
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
- **GetSportsByClubById200Response**
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&lt;EventResponseCourtsInner&gt;**](EventResponseCourtsInner.md) | | [default to undefined]
15
+ **sports** | **Array&lt;string&gt;** | | [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&lt;string&gt;** | | [optional] [default to undefined]
20
+ **teams** | [**Array&lt;Team&gt;**](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&lt;SubscriberPrice&gt;**](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&lt;string&gt;** | | [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
- **key** | **string** | Clé/nom du sport | [default to undefined]
8
+ **name** | **string** | Nom affiché du sport | [optional] [default to undefined]
9
+ **description** | **string** | Description du sport | [optional] [default to undefined]
10
+ **levels** | [**Array&lt;SportLevel&gt;**](SportLevel.md) | Niveaux associés | [optional] [default to undefined]
11
+ **logos** | **Array&lt;string&gt;** | 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
- key,
19
+ name,
20
+ description,
21
+ levels,
22
+ logos,
17
23
  };
18
24
  ```
19
25
 
@@ -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&lt;EventResponseCourtsInner&gt;**](EventResponseCourtsInner.md) | | [default to undefined]
17
+ **sports** | [**Array&lt;SportWithLevels&gt;**](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&lt;string&gt;** | | [optional] [default to undefined]
22
+ **teams** | [**Array&lt;Team&gt;**](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&lt;SubscriberPrice&gt;**](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,