@tennac-booking/sdk 1.0.218 → 1.0.219

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 (122) hide show
  1. package/.openapi-generator/FILES +24 -41
  2. package/README.md +38 -64
  3. package/api.ts +1733 -3004
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +1419 -2447
  8. package/dist/api.js +932 -1382
  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 +1419 -2447
  16. package/dist/esm/api.js +915 -1369
  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/AgendaBooking.md +0 -2
  28. package/docs/BookingPopulated.md +1 -9
  29. package/docs/BookingSummary.md +0 -4
  30. package/docs/BookingsApi.md +79 -25
  31. package/docs/BookingsStaffApi.md +57 -1
  32. package/docs/BookingsUserApi.md +6 -6
  33. package/docs/CheckInPlayerSumupRequest.md +22 -0
  34. package/docs/CheckInPlayerSumupResponse.md +24 -0
  35. package/docs/CheckInSumupPaymentInfo.md +26 -0
  36. package/docs/ClubPageResponse.md +0 -14
  37. package/docs/ClubPricingPeriodResponse.md +6 -6
  38. package/docs/ClubReservationSettingsResponse.md +2 -2
  39. package/docs/ClubResponse.md +2 -12
  40. package/docs/ClubSummary.md +0 -6
  41. package/docs/CreateOpenBookingRequest.md +2 -4
  42. package/docs/CreateSubscriptionPlanRequestDiscount.md +0 -4
  43. package/docs/EventBookingDetailSummary.md +0 -2
  44. package/docs/EventBookingResponse.md +0 -2
  45. package/docs/EventResponse.md +0 -2
  46. package/docs/EventsApi.md +0 -58
  47. package/docs/EventsStaffApi.md +25 -119
  48. package/docs/GetClubsWithVerificationDomains200ResponseInner.md +0 -2
  49. package/docs/GetOpenBookingPrice200Response.md +24 -0
  50. package/docs/GetOpenBookingPriceRequest.md +26 -0
  51. package/docs/IUserAttributes.md +0 -4
  52. package/docs/JoinPriceEstimateResponse.md +38 -0
  53. package/docs/JoinPriceEstimateResponseSubscriptionInfo.md +25 -0
  54. package/docs/MyClubInfosResponse.md +2 -0
  55. package/docs/OpenBookingInfo.md +2 -4
  56. package/docs/OpenBookingSlotInfo.md +24 -0
  57. package/docs/PaymentIntentResult.md +28 -0
  58. package/docs/{SupportedLanguage.md → PaymentProviderType.md} +3 -3
  59. package/docs/{CourtEnvironment.md → PaymentStatus.md} +7 -3
  60. package/docs/PaymentsStaffApi.md +124 -0
  61. package/docs/PublicEmailApi.md +4 -4
  62. package/docs/QuickReservationClubSummary.md +0 -12
  63. package/docs/SportResponse.md +0 -2
  64. package/docs/StaffEventBookingResponse.md +0 -2
  65. package/docs/StaffEventsPaginatedResponse.md +26 -0
  66. package/docs/StaffUserProfileResponse.md +0 -4
  67. package/docs/SubscriptionPlanDiscountResponse.md +0 -2
  68. package/docs/SubscriptionPlanDiscountUpdateRequest.md +0 -2
  69. package/docs/SumUpApi.md +63 -0
  70. package/docs/SumUpManagerApi.md +332 -0
  71. package/docs/SumupAccountStatusResponse.md +32 -0
  72. package/docs/{VerifyVerificationCodeResponse.md → SumupCancelPaymentRequest.md} +5 -5
  73. package/docs/{RequestVerificationCodeResponse.md → SumupConnectUrlResponse.md} +5 -5
  74. package/docs/SumupCreatePaymentRequest.md +32 -0
  75. package/docs/SumupOAuthCallbackResponse.md +24 -0
  76. package/docs/SumupPairReaderRequest.md +22 -0
  77. package/docs/{MarkNotificationsReadResponse.md → SumupPairReaderResponse.md} +5 -5
  78. package/docs/SumupReaderInfo.md +34 -0
  79. package/docs/{Health200Response.md → SumupReadersResponse.md} +5 -7
  80. package/docs/UpdateClubHoursSettingsRequest.md +1 -1
  81. package/docs/UpdateClubReservationSettingsRequest.md +2 -2
  82. package/docs/UserClubMembership.md +0 -2
  83. package/docs/UserProfileResponse.md +0 -12
  84. package/docs/UsersApi.md +0 -273
  85. package/docs/WaitListStaffApi.md +0 -55
  86. package/index.ts +1 -1
  87. package/package.json +1 -1
  88. package/docs/AuthApi.md +0 -113
  89. package/docs/ClubPageResponseClubCustomerStatus.md +0 -27
  90. package/docs/ClubPricingPeriodPayload.md +0 -32
  91. package/docs/ComingEventsPageResponse.md +0 -22
  92. package/docs/EstimateOpenBookingJoinRequest.md +0 -24
  93. package/docs/JobResult.md +0 -24
  94. package/docs/JobsApi.md +0 -367
  95. package/docs/JoinOpenBookingRequest.md +0 -28
  96. package/docs/MarkNotificationsReadRequest.md +0 -22
  97. package/docs/NotificationData.md +0 -22
  98. package/docs/NotificationParticipantPreview.md +0 -22
  99. package/docs/NotificationPreview.md +0 -60
  100. package/docs/NotificationResponse.md +0 -36
  101. package/docs/NotificationType.md +0 -26
  102. package/docs/OpenBookingBasePriceResponse.md +0 -24
  103. package/docs/OpenBookingJoinEstimateResponse.md +0 -26
  104. package/docs/OpenBookingPriceBody.md +0 -26
  105. package/docs/PartnerSearchItem.md +0 -28
  106. package/docs/PartnerSearchResponse.md +0 -22
  107. package/docs/PartnerSearchResponseMeta.md +0 -26
  108. package/docs/PricingPeriodDiscount.md +0 -24
  109. package/docs/QuickReservationCourtType.md +0 -10
  110. package/docs/RequestOrganizationEmailCodeBody.md +0 -22
  111. package/docs/RequestOrganizationEmailCodeResponse.md +0 -22
  112. package/docs/RequestVerificationCodeBody.md +0 -26
  113. package/docs/StaffEventsPageResponse.md +0 -22
  114. package/docs/UserNextBookingSummary.md +0 -26
  115. package/docs/UserNotificationsResponse.md +0 -22
  116. package/docs/UserNotificationsResponseMeta.md +0 -28
  117. package/docs/VerifyOrganizationEmailCodeBody.md +0 -24
  118. package/docs/VerifyOrganizationEmailCodeResponse.md +0 -22
  119. package/docs/VerifyVerificationCodeBody.md +0 -24
  120. package/docs/WaitListEntryWithPlayer.md +0 -44
  121. package/docs/WaitListPlayer.md +0 -28
  122. package/docs/WaitListPlayersListResponse.md +0 -22
@@ -12,7 +12,6 @@ Name | Type | Description | Notes
12
12
  **email** | **string** | Email du club | [optional] [default to undefined]
13
13
  **phone** | **string** | Téléphone du club | [optional] [default to undefined]
14
14
  **picture** | **string** | URL de l\'image du club | [optional] [default to undefined]
15
- **logo** | **string** | URL du logo du club (alias de picture) | [optional] [default to undefined]
16
15
  **location** | [**ClubResponseLocation**](ClubResponseLocation.md) | | [optional] [default to undefined]
17
16
  **isActive** | **boolean** | Statut d\'activation du club | [default to undefined]
18
17
  **paymentFeature** | **boolean** | Indique si le club utilise la fonctionnalité de paiement | [optional] [default to undefined]
@@ -20,12 +19,8 @@ Name | Type | Description | Notes
20
19
  **clubDashBoardUrl** | **string** | URL du dashboard Stripe du club | [optional] [default to undefined]
21
20
  **isNoShowEnabled** | **boolean** | Indique si la fonctionnalité \"no show\" est activée | [optional] [default to undefined]
22
21
  **sports** | **Array<string>** | Liste des sports proposés par le club (identifiés par leur clé) | [optional] [default to undefined]
23
- **courtsCount** | **number** | Nombre total de terrains du club | [optional] [default to undefined]
24
- **courtsCountBySport** | **{ [key: string]: number; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
25
- **surfacesBySport** | **{ [key: string]: Array<SurfaceType>; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
26
- **indoorOutdoorBySport** | **{ [key: string]: Array<CourtEnvironment>; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
27
- **slotDurationsBySport** | **{ [key: string]: Array<number>; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
28
22
  **allowMultipleBookingsAtTheSameTime** | **boolean** | Autoriser plusieurs réservations en même temps | [optional] [default to undefined]
23
+ **sameTimeBookingsLimit** | **number** | Limite de réservations simultanées (même créneau) | [optional] [default to undefined]
29
24
  **maxSlotsPerBooking** | **number** | | [optional] [default to undefined]
30
25
  **cancellationLimitHours** | **number** | Limite d\'annulation en heures | [optional] [default to undefined]
31
26
  **maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [optional] [default to undefined]
@@ -45,7 +40,6 @@ const instance: ClubResponse = {
45
40
  email,
46
41
  phone,
47
42
  picture,
48
- logo,
49
43
  location,
50
44
  isActive,
51
45
  paymentFeature,
@@ -53,12 +47,8 @@ const instance: ClubResponse = {
53
47
  clubDashBoardUrl,
54
48
  isNoShowEnabled,
55
49
  sports,
56
- courtsCount,
57
- courtsCountBySport,
58
- surfacesBySport,
59
- indoorOutdoorBySport,
60
- slotDurationsBySport,
61
50
  allowMultipleBookingsAtTheSameTime,
51
+ sameTimeBookingsLimit,
62
52
  maxSlotsPerBooking,
63
53
  cancellationLimitHours,
64
54
  maxWeeklyBookings,
@@ -14,9 +14,6 @@ Name | Type | Description | Notes
14
14
  **address** | **string** | | [optional] [default to undefined]
15
15
  **description** | **string** | | [optional] [default to undefined]
16
16
  **visitCount** | **number** | | [optional] [default to undefined]
17
- **lastPlayedAt** | **string** | | [optional] [default to undefined]
18
- **distanceInMeters** | **number** | | [optional] [default to undefined]
19
- **distanceInKm** | **number** | | [optional] [default to undefined]
20
17
  **tags** | **Array<string>** | | [optional] [default to undefined]
21
18
 
22
19
  ## Example
@@ -34,9 +31,6 @@ const instance: ClubSummary = {
34
31
  address,
35
32
  description,
36
33
  visitCount,
37
- lastPlayedAt,
38
- distanceInMeters,
39
- distanceInKm,
40
34
  tags,
41
35
  };
42
36
  ```
@@ -6,14 +6,13 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **slotIds** | **Array<string>** | ID du créneau à réserver | [default to undefined]
9
- **playerShares** | [**Array<PlayerShare>**](PlayerShare.md) | Liste des parts de paiement par joueur (utiliser ceci OU isCreatorPayingAll) | [optional] [default to undefined]
10
- **isCreatorPayingAll** | **boolean** | Indique si le créateur paie pour tous les joueurs initiaux (incompatible avec playerShares) | [optional] [default to undefined]
11
9
  **paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
12
10
  **useDefaultPaymentMethod** | **boolean** | Indique si l\'utilisateur veut utiliser sa méthode de paiement par défaut | [optional] [default to undefined]
13
11
  **creditToUseInCents** | **number** | Crédit à utiliser en centimes | [optional] [default to undefined]
14
12
  **maxPlayers** | **number** | Nombre maximal de joueurs souhaités (incluant le créateur) | [default to undefined]
15
13
  **description** | **string** | Description de la réservation ouverte | [optional] [default to undefined]
16
14
  **minLevel** | **string** | Niveau minimal souhaité pour rejoindre | [optional] [default to undefined]
15
+ **initialPlayerIds** | **Array<string>** | IDs des joueurs inclus de base dans la réservation (en plus du créateur) | [optional] [default to undefined]
17
16
 
18
17
  ## Example
19
18
 
@@ -22,14 +21,13 @@ import { CreateOpenBookingRequest } from '@tennac-booking/sdk';
22
21
 
23
22
  const instance: CreateOpenBookingRequest = {
24
23
  slotIds,
25
- playerShares,
26
- isCreatorPayingAll,
27
24
  paymentMethod,
28
25
  useDefaultPaymentMethod,
29
26
  creditToUseInCents,
30
27
  maxPlayers,
31
28
  description,
32
29
  minLevel,
30
+ initialPlayerIds,
33
31
  };
34
32
  ```
35
33
 
@@ -7,8 +7,6 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **bookingFree** | **boolean** | | [optional] [default to undefined]
9
9
  **offPeakRules** | [**Array<OffPeakRule>**](OffPeakRule.md) | | [optional] [default to undefined]
10
- **pricingPeriodDiscounts** | [**Array<PricingPeriodDiscount>**](PricingPeriodDiscount.md) | | [optional] [default to undefined]
11
- **pricingPeriodIds** | **Array<string>** | | [optional] [default to undefined]
12
10
  **offPeakRuleNames** | **Array<string>** | Liste optionnelle des noms de périodes tarifaires sur lesquelles appliquer la remise. Laisser vide pour appliquer la remise à toutes les heures d\'ouverture du club. | [optional] [default to undefined]
13
11
  **validTo** | **string** | | [optional] [default to undefined]
14
12
  **validFrom** | **string** | | [optional] [default to undefined]
@@ -24,8 +22,6 @@ import { CreateSubscriptionPlanRequestDiscount } from '@tennac-booking/sdk';
24
22
  const instance: CreateSubscriptionPlanRequestDiscount = {
25
23
  bookingFree,
26
24
  offPeakRules,
27
- pricingPeriodDiscounts,
28
- pricingPeriodIds,
29
25
  offPeakRuleNames,
30
26
  validTo,
31
27
  validFrom,
@@ -15,7 +15,6 @@ Name | Type | Description | Notes
15
15
  **limitSetupDate** | **string** | | [optional] [default to undefined]
16
16
  **limitCancellationDate** | **string** | | [optional] [default to undefined]
17
17
  **waitListPosition** | **number** | Position dans la file d\'attente si l\'utilisateur est en waitlist pour cet événement | [optional] [default to undefined]
18
- **userParticipationStatus** | **string** | Statut de participation de l\'utilisateur pour cet event booking | [optional] [default to undefined]
19
18
  **createdAt** | **string** | | [default to undefined]
20
19
  **updatedAt** | **string** | | [default to undefined]
21
20
 
@@ -35,7 +34,6 @@ const instance: EventBookingDetailSummary = {
35
34
  limitSetupDate,
36
35
  limitCancellationDate,
37
36
  waitListPosition,
38
- userParticipationStatus,
39
37
  createdAt,
40
38
  updatedAt,
41
39
  };
@@ -13,7 +13,6 @@ Name | Type | Description | Notes
13
13
  **setupLimitDate** | **string** | | [optional] [default to undefined]
14
14
  **cancellationLimitDate** | **string** | | [optional] [default to undefined]
15
15
  **setupStatus** | [**EventBookingResponseSetupStatus**](EventBookingResponseSetupStatus.md) | | [optional] [default to undefined]
16
- **amount** | **number** | | [optional] [default to undefined]
17
16
  **createdAt** | **string** | | [default to undefined]
18
17
  **updatedAt** | **string** | | [default to undefined]
19
18
 
@@ -31,7 +30,6 @@ const instance: EventBookingResponse = {
31
30
  setupLimitDate,
32
31
  cancellationLimitDate,
33
32
  setupStatus,
34
- amount,
35
33
  createdAt,
36
34
  updatedAt,
37
35
  };
@@ -31,7 +31,6 @@ Name | Type | Description | Notes
31
31
  **levels** | **Array<string | null>** | | [optional] [default to undefined]
32
32
  **sponsors** | [**Array<EventSponsor>**](EventSponsor.md) | | [optional] [default to undefined]
33
33
  **registrationOpenDaysBefore** | **number** | | [default to undefined]
34
- **isUserRegistered** | **boolean** | | [optional] [default to undefined]
35
34
  **createdBy** | **string** | | [optional] [default to undefined]
36
35
  **isActive** | **boolean** | | [default to undefined]
37
36
  **createdAt** | **string** | | [default to undefined]
@@ -69,7 +68,6 @@ const instance: EventResponse = {
69
68
  levels,
70
69
  sponsors,
71
70
  registrationOpenDaysBefore,
72
- isUserRegistered,
73
71
  createdBy,
74
72
  isActive,
75
73
  createdAt,
package/docs/EventsApi.md CHANGED
@@ -7,7 +7,6 @@ All URIs are relative to *http://localhost*
7
7
  |[**checkTeamNameAvailability**](#checkteamnameavailability) | **GET** /api/events/{eventId}/team-name-availability | |
8
8
  |[**estimateEventPrice**](#estimateeventprice) | **POST** /api/events/{eventId}/estimate-price | |
9
9
  |[**estimateOpenEventBookingJoinPrice**](#estimateopeneventbookingjoinprice) | **GET** /api/events/{eventBookingId}/open/estimate | |
10
- |[**getComingEvent**](#getcomingevent) | **GET** /api/events/coming | |
11
10
  |[**getEventById**](#geteventbyid) | **GET** /api/events/{eventId} | |
12
11
  |[**getOpenEventBookingJoinPrice**](#getopeneventbookingjoinprice) | **GET** /api/events/{eventBookingId}/open/join-price | |
13
12
  |[**getOpenEventBookings**](#getopeneventbookings) | **GET** /api/events/open | |
@@ -186,63 +185,6 @@ const { status, data } = await apiInstance.estimateOpenEventBookingJoinPrice(
186
185
 
187
186
  [[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)
188
187
 
189
- # **getComingEvent**
190
- > ComingEventsPageResponse getComingEvent()
191
-
192
- Get upcoming events for a club with pagination (max 10 per page)
193
-
194
- ### Example
195
-
196
- ```typescript
197
- import {
198
- EventsApi,
199
- Configuration
200
- } from '@tennac-booking/sdk';
201
-
202
- const configuration = new Configuration();
203
- const apiInstance = new EventsApi(configuration);
204
-
205
- let clubId: string; // (optional) (default to undefined)
206
- let page: number; // (optional) (default to undefined)
207
-
208
- const { status, data } = await apiInstance.getComingEvent(
209
- clubId,
210
- page
211
- );
212
- ```
213
-
214
- ### Parameters
215
-
216
- |Name | Type | Description | Notes|
217
- |------------- | ------------- | ------------- | -------------|
218
- | **clubId** | [**string**] | | (optional) defaults to undefined|
219
- | **page** | [**number**] | | (optional) defaults to undefined|
220
-
221
-
222
- ### Return type
223
-
224
- **ComingEventsPageResponse**
225
-
226
- ### Authorization
227
-
228
- [bearerAuth](../README.md#bearerAuth)
229
-
230
- ### HTTP request headers
231
-
232
- - **Content-Type**: Not defined
233
- - **Accept**: application/json
234
-
235
-
236
- ### HTTP response details
237
- | Status code | Description | Response headers |
238
- |-------------|-------------|------------------|
239
- |**200** | List of upcoming events | - |
240
- |**400** | Bad Request | - |
241
- |**401** | Unauthorized | - |
242
- |**500** | Server Error | - |
243
-
244
- [[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)
245
-
246
188
  # **getEventById**
247
189
  > PublishEventResponse getEventById()
248
190
 
@@ -6,11 +6,9 @@ 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
- |[**getDraftEventsByClub**](#getdrafteventsbyclub) | **GET** /api/events/staff/getEvents/drafts | |
10
9
  |[**getEventByIdForStaff**](#geteventbyidforstaff) | **GET** /api/events/staff/{eventId} | |
10
+ |[**getEventsByClub**](#geteventsbyclub) | **GET** /api/events/staff/getEvents | |
11
11
  |[**getMonthlyEvents**](#getmonthlyevents) | **GET** /api/events/calendar/monthly | |
12
- |[**getPastEventsByClub**](#getpasteventsbyclub) | **GET** /api/events/staff/getEvents/past | |
13
- |[**getUpcomingEventsByClub**](#getupcomingeventsbyclub) | **GET** /api/events/staff/getEvents/upcoming | |
14
12
  |[**getWeeklyEvents**](#getweeklyevents) | **GET** /api/events/calendar/weekly | |
15
13
 
16
14
  # **checkInEventParticipants**
@@ -136,9 +134,10 @@ const { status, data } = await apiInstance.getDailyEvents(
136
134
 
137
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)
138
136
 
139
- # **getDraftEventsByClub**
140
- > StaffEventsPageResponse getDraftEventsByClub()
137
+ # **getEventByIdForStaff**
138
+ > StaffEventDetailResponse getEventByIdForStaff()
141
139
 
140
+ Get a specific event by ID (staff)
142
141
 
143
142
  ### Example
144
143
 
@@ -151,16 +150,23 @@ import {
151
150
  const configuration = new Configuration();
152
151
  const apiInstance = new EventsStaffApi(configuration);
153
152
 
154
- const { status, data } = await apiInstance.getDraftEventsByClub();
153
+ let eventId: string; // (default to undefined)
154
+
155
+ const { status, data } = await apiInstance.getEventByIdForStaff(
156
+ eventId
157
+ );
155
158
  ```
156
159
 
157
160
  ### Parameters
158
- This endpoint does not have any parameters.
161
+
162
+ |Name | Type | Description | Notes|
163
+ |------------- | ------------- | ------------- | -------------|
164
+ | **eventId** | [**string**] | | defaults to undefined|
159
165
 
160
166
 
161
167
  ### Return type
162
168
 
163
- **StaffEventsPageResponse**
169
+ **StaffEventDetailResponse**
164
170
 
165
171
  ### Authorization
166
172
 
@@ -175,17 +181,16 @@ This endpoint does not have any parameters.
175
181
  ### HTTP response details
176
182
  | Status code | Description | Response headers |
177
183
  |-------------|-------------|------------------|
178
- |**200** | Draft events | - |
184
+ |**200** | Event details | - |
179
185
  |**400** | Bad Request | - |
180
- |**401** | Unauthorized | - |
181
- |**500** | Server Error | - |
186
+ |**404** | Not Found | - |
182
187
 
183
188
  [[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)
184
189
 
185
- # **getEventByIdForStaff**
186
- > StaffEventDetailResponse getEventByIdForStaff()
190
+ # **getEventsByClub**
191
+ > StaffEventsPaginatedResponse getEventsByClub()
187
192
 
188
- Get a specific event by ID (staff)
193
+ // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
189
194
 
190
195
  ### Example
191
196
 
@@ -198,23 +203,16 @@ import {
198
203
  const configuration = new Configuration();
199
204
  const apiInstance = new EventsStaffApi(configuration);
200
205
 
201
- let eventId: string; // (default to undefined)
202
-
203
- const { status, data } = await apiInstance.getEventByIdForStaff(
204
- eventId
205
- );
206
+ const { status, data } = await apiInstance.getEventsByClub();
206
207
  ```
207
208
 
208
209
  ### Parameters
209
-
210
- |Name | Type | Description | Notes|
211
- |------------- | ------------- | ------------- | -------------|
212
- | **eventId** | [**string**] | | defaults to undefined|
210
+ This endpoint does not have any parameters.
213
211
 
214
212
 
215
213
  ### Return type
216
214
 
217
- **StaffEventDetailResponse**
215
+ **StaffEventsPaginatedResponse**
218
216
 
219
217
  ### Authorization
220
218
 
@@ -229,9 +227,10 @@ const { status, data } = await apiInstance.getEventByIdForStaff(
229
227
  ### HTTP response details
230
228
  | Status code | Description | Response headers |
231
229
  |-------------|-------------|------------------|
232
- |**200** | Event details | - |
230
+ |**200** | List of events | - |
233
231
  |**400** | Bad Request | - |
234
- |**404** | Not Found | - |
232
+ |**401** | Unauthorized | - |
233
+ |**500** | Server Error | - |
235
234
 
236
235
  [[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)
237
236
 
@@ -300,99 +299,6 @@ const { status, data } = await apiInstance.getMonthlyEvents(
300
299
 
301
300
  [[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)
302
301
 
303
- # **getPastEventsByClub**
304
- > StaffEventsPageResponse getPastEventsByClub()
305
-
306
-
307
- ### Example
308
-
309
- ```typescript
310
- import {
311
- EventsStaffApi,
312
- Configuration
313
- } from '@tennac-booking/sdk';
314
-
315
- const configuration = new Configuration();
316
- const apiInstance = new EventsStaffApi(configuration);
317
-
318
- const { status, data } = await apiInstance.getPastEventsByClub();
319
- ```
320
-
321
- ### Parameters
322
- This endpoint does not have any parameters.
323
-
324
-
325
- ### Return type
326
-
327
- **StaffEventsPageResponse**
328
-
329
- ### Authorization
330
-
331
- [bearerAuth](../README.md#bearerAuth)
332
-
333
- ### HTTP request headers
334
-
335
- - **Content-Type**: Not defined
336
- - **Accept**: application/json
337
-
338
-
339
- ### HTTP response details
340
- | Status code | Description | Response headers |
341
- |-------------|-------------|------------------|
342
- |**200** | Past events | - |
343
- |**400** | Bad Request | - |
344
- |**401** | Unauthorized | - |
345
- |**500** | Server Error | - |
346
-
347
- [[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)
348
-
349
- # **getUpcomingEventsByClub**
350
- > StaffEventsPageResponse getUpcomingEventsByClub()
351
-
352
- // Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
353
-
354
- ### Example
355
-
356
- ```typescript
357
- import {
358
- EventsStaffApi,
359
- Configuration
360
- } from '@tennac-booking/sdk';
361
-
362
- const configuration = new Configuration();
363
- const apiInstance = new EventsStaffApi(configuration);
364
-
365
- const { status, data } = await apiInstance.getUpcomingEventsByClub();
366
- ```
367
-
368
- ### Parameters
369
- This endpoint does not have any parameters.
370
-
371
-
372
- ### Return type
373
-
374
- **StaffEventsPageResponse**
375
-
376
- ### Authorization
377
-
378
- [bearerAuth](../README.md#bearerAuth)
379
-
380
- ### HTTP request headers
381
-
382
- - **Content-Type**: Not defined
383
- - **Accept**: application/json
384
-
385
-
386
- ### HTTP response details
387
- | Status code | Description | Response headers |
388
- |-------------|-------------|------------------|
389
- |**200** | Upcoming events | - |
390
- |**400** | Bad Request | - |
391
- |**401** | Unauthorized | - |
392
- |**500** | Server Error | - |
393
-
394
- [[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)
395
-
396
302
  # **getWeeklyEvents**
397
303
  > EventsListResponse getWeeklyEvents()
398
304
 
@@ -5,7 +5,6 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **logo** | **string** | | [optional] [default to undefined]
9
8
  **allowedEmailDomains** | **Array<string>** | | [default to undefined]
10
9
  **address** | **string** | | [optional] [default to undefined]
11
10
  **name** | **string** | | [default to undefined]
@@ -17,7 +16,6 @@ Name | Type | Description | Notes
17
16
  import { GetClubsWithVerificationDomains200ResponseInner } from '@tennac-booking/sdk';
18
17
 
19
18
  const instance: GetClubsWithVerificationDomains200ResponseInner = {
20
- logo,
21
19
  allowedEmailDomains,
22
20
  address,
23
21
  name,
@@ -0,0 +1,24 @@
1
+ # GetOpenBookingPrice200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **totalBasePrice** | **number** | | [default to undefined]
9
+ **playersPrices** | [**Array<PlayerPrice>**](PlayerPrice.md) | | [default to undefined]
10
+ **basePricePerPlayer** | **number** | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { GetOpenBookingPrice200Response } from '@tennac-booking/sdk';
16
+
17
+ const instance: GetOpenBookingPrice200Response = {
18
+ totalBasePrice,
19
+ playersPrices,
20
+ basePricePerPlayer,
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)
@@ -0,0 +1,26 @@
1
+ # GetOpenBookingPriceRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **creditsByPlayer** | **{ [key: string]: number; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
9
+ **initialPlayerIds** | **Array<string>** | | [optional] [default to undefined]
10
+ **maxPlayers** | **number** | | [default to undefined]
11
+ **slotIds** | **Array<string>** | | [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { GetOpenBookingPriceRequest } from '@tennac-booking/sdk';
17
+
18
+ const instance: GetOpenBookingPriceRequest = {
19
+ creditsByPlayer,
20
+ initialPlayerIds,
21
+ maxPlayers,
22
+ slotIds,
23
+ };
24
+ ```
25
+
26
+ [[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,8 +9,6 @@ Name | Type | Description | Notes
9
9
  **googleId** | **string** | | [optional] [default to undefined]
10
10
  **firstName** | **string** | | [default to undefined]
11
11
  **lastName** | **string** | | [default to undefined]
12
- **firstNameNormalized** | **string** | | [optional] [default to undefined]
13
- **lastNameNormalized** | **string** | | [optional] [default to undefined]
14
12
  **email** | **string** | | [default to undefined]
15
13
  **gender** | [**Gender**](Gender.md) | | [optional] [default to undefined]
16
14
  **location** | [**IUserLocation**](IUserLocation.md) | | [optional] [default to undefined]
@@ -51,8 +49,6 @@ const instance: IUserAttributes = {
51
49
  googleId,
52
50
  firstName,
53
51
  lastName,
54
- firstNameNormalized,
55
- lastNameNormalized,
56
52
  email,
57
53
  gender,
58
54
  location,
@@ -0,0 +1,38 @@
1
+ # JoinPriceEstimateResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **bookingId** | **string** | ID de la réservation | [default to undefined]
9
+ **basePrice** | **number** | Prix de base sans réductions (en centimes) | [default to undefined]
10
+ **priceAfterSubscription** | **number** | Prix après application de l\'abonnement (en centimes) | [default to undefined]
11
+ **subscriptionDiscount** | **number** | Montant de la réduction d\'abonnement (en centimes) | [default to undefined]
12
+ **subscriptionInfo** | [**JoinPriceEstimateResponseSubscriptionInfo**](JoinPriceEstimateResponseSubscriptionInfo.md) | | [optional] [default to undefined]
13
+ **availableCreditsInCents** | **number** | Crédits disponibles pour le joueur dans ce club (en centimes) | [default to undefined]
14
+ **creditToUseInCents** | **number** | Crédits qui seront utilisés (en centimes) | [default to undefined]
15
+ **finalPriceInCents** | **number** | Prix final après toutes les réductions et crédits (en centimes) | [default to undefined]
16
+ **canJoin** | **boolean** | Indique si le joueur peut rejoindre la réservation | [default to undefined]
17
+ **reason** | **string** | Raison si le joueur ne peut pas rejoindre | [optional] [default to undefined]
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import { JoinPriceEstimateResponse } from '@tennac-booking/sdk';
23
+
24
+ const instance: JoinPriceEstimateResponse = {
25
+ bookingId,
26
+ basePrice,
27
+ priceAfterSubscription,
28
+ subscriptionDiscount,
29
+ subscriptionInfo,
30
+ availableCreditsInCents,
31
+ creditToUseInCents,
32
+ finalPriceInCents,
33
+ canJoin,
34
+ reason,
35
+ };
36
+ ```
37
+
38
+ [[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,25 @@
1
+ # JoinPriceEstimateResponseSubscriptionInfo
2
+
3
+ Informations sur l\'abonnement du joueur
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **subscriptionName** | **string** | | [optional] [default to undefined]
10
+ **discountPercentage** | **number** | | [optional] [default to undefined]
11
+ **hasSubscription** | **boolean** | | [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { JoinPriceEstimateResponseSubscriptionInfo } from '@tennac-booking/sdk';
17
+
18
+ const instance: JoinPriceEstimateResponseSubscriptionInfo = {
19
+ subscriptionName,
20
+ discountPercentage,
21
+ hasSubscription,
22
+ };
23
+ ```
24
+
25
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -6,6 +6,7 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **remainingBookings** | **number** | | [default to undefined]
9
+ **sameTimeBookingsLimit** | **number** | | [optional] [default to undefined]
9
10
  **availableCredit** | **number** | | [default to undefined]
10
11
  **subscriptionPlans** | **Array<any>** | | [optional] [default to undefined]
11
12
 
@@ -16,6 +17,7 @@ import { MyClubInfosResponse } from '@tennac-booking/sdk';
16
17
 
17
18
  const instance: MyClubInfosResponse = {
18
19
  remainingBookings,
20
+ sameTimeBookingsLimit,
19
21
  availableCredit,
20
22
  subscriptionPlans,
21
23
  };
@@ -11,8 +11,7 @@ Name | Type | Description | Notes
11
11
  **players** | [**Array<OpenBookingPlayerInfo>**](OpenBookingPlayerInfo.md) | Liste des joueurs avec leurs infos | [default to undefined]
12
12
  **status** | [**BookingStatus**](BookingStatus.md) | | [default to undefined]
13
13
  **totalPrice** | **number** | Prix total en euros | [default to undefined]
14
- **startDate** | **string** | Date de début du premier créneau | [default to undefined]
15
- **endDate** | **string** | Date de fin du dernier créneau | [default to undefined]
14
+ **slots** | [**Array<OpenBookingSlotInfo>**](OpenBookingSlotInfo.md) | Informations des créneaux | [default to undefined]
16
15
  **isCreatorPayingAll** | **boolean** | Indique si le créateur paie pour tous | [default to undefined]
17
16
  **createdAt** | **string** | Date de création | [default to undefined]
18
17
  **updatedAt** | **string** | Date de mise à jour | [default to undefined]
@@ -35,8 +34,7 @@ const instance: OpenBookingInfo = {
35
34
  players,
36
35
  status,
37
36
  totalPrice,
38
- startDate,
39
- endDate,
37
+ slots,
40
38
  isCreatorPayingAll,
41
39
  createdAt,
42
40
  updatedAt,
@@ -0,0 +1,24 @@
1
+ # OpenBookingSlotInfo
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | ID du slot | [default to undefined]
9
+ **startDate** | **string** | Date de début ISO | [default to undefined]
10
+ **endDate** | **string** | Date de fin ISO | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { OpenBookingSlotInfo } from '@tennac-booking/sdk';
16
+
17
+ const instance: OpenBookingSlotInfo = {
18
+ id,
19
+ startDate,
20
+ endDate,
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)