@tennac-booking/sdk 1.0.226 → 1.0.228

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 (138) hide show
  1. package/.openapi-generator/FILES +30 -51
  2. package/README.md +48 -76
  3. package/api.ts +3556 -4764
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +2615 -3712
  8. package/dist/api.js +9856 -15757
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +11 -32
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +41 -133
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +8 -21
  15. package/dist/esm/api.d.ts +25620 -0
  16. package/dist/esm/api.js +17756 -0
  17. package/dist/esm/base.d.ts +66 -0
  18. package/dist/esm/base.js +60 -0
  19. package/dist/esm/common.d.ts +65 -0
  20. package/dist/esm/common.js +149 -0
  21. package/dist/esm/configuration.d.ts +91 -0
  22. package/dist/esm/configuration.js +40 -0
  23. package/dist/esm/index.d.ts +13 -0
  24. package/dist/esm/index.js +15 -0
  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 +4 -4
  30. package/docs/BookingsApi.md +80 -29
  31. package/docs/BookingsStaffApi.md +57 -1
  32. package/docs/BookingsUserApi.md +6 -58
  33. package/docs/CheckInPlayerSumupRequest.md +22 -0
  34. package/docs/{CloseOpenBookingResponse.md → CheckInPlayerSumupResponse.md} +7 -5
  35. package/docs/CheckInSumupPaymentInfo.md +26 -0
  36. package/docs/ClubPageResponse.md +0 -16
  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/CreateBookingRequest.md +2 -0
  42. package/docs/CreateOpenBookingRequest.md +4 -6
  43. package/docs/CreateSubscriptionPlanRequestDiscount.md +0 -4
  44. package/docs/EventBookingDetailSummary.md +0 -2
  45. package/docs/EventBookingResponse.md +0 -2
  46. package/docs/EventResponse.md +0 -2
  47. package/docs/EventsApi.md +0 -113
  48. package/docs/EventsStaffApi.md +25 -119
  49. package/docs/GetClubsWithVerificationDomains200ResponseInner.md +0 -2
  50. package/docs/GetOpenBookingPrice200Response.md +24 -0
  51. package/docs/GetOpenBookingPriceRequest.md +26 -0
  52. package/docs/IUserAttributes.md +0 -4
  53. package/docs/JoinPriceEstimateResponse.md +38 -0
  54. package/docs/JoinPriceEstimateResponseSubscriptionInfo.md +25 -0
  55. package/docs/MyClubInfosResponse.md +2 -0
  56. package/docs/OpenBookingInfo.md +5 -7
  57. package/docs/OpenBookingSlotInfo.md +24 -0
  58. package/docs/PaymentIntentResult.md +28 -0
  59. package/docs/{SupportedLanguage.md → PaymentProviderType.md} +3 -3
  60. package/docs/{NotificationActorType.md → PaymentStatus.md} +6 -4
  61. package/docs/PaymentsStaffApi.md +124 -0
  62. package/docs/PlayerPrice.md +1 -3
  63. package/docs/PublicEmailApi.md +4 -4
  64. package/docs/QuickReservationClubSummary.md +0 -12
  65. package/docs/SportResponse.md +0 -2
  66. package/docs/StaffEventBookingResponse.md +0 -2
  67. package/docs/StaffEventsPaginatedResponse.md +26 -0
  68. package/docs/StaffUserProfileResponse.md +0 -4
  69. package/docs/SubscriptionPlanDiscountResponse.md +0 -2
  70. package/docs/SubscriptionPlanDiscountUpdateRequest.md +0 -2
  71. package/docs/SumUpApi.md +63 -0
  72. package/docs/SumUpManagerApi.md +617 -0
  73. package/docs/SumupAccountStatusResponse.md +32 -0
  74. package/docs/{VerifyVerificationCodeResponse.md → SumupCancelPaymentRequest.md} +5 -5
  75. package/docs/{RequestVerificationCodeResponse.md → SumupConnectUrlResponse.md} +5 -5
  76. package/docs/SumupCreatePaymentRequest.md +32 -0
  77. package/docs/SumupOAuthCallbackResponse.md +24 -0
  78. package/docs/SumupPairReaderRequest.md +24 -0
  79. package/docs/{Health200Response.md → SumupPairReaderResponse.md} +5 -7
  80. package/docs/SumupReaderInfo.md +42 -0
  81. package/docs/{NotificationTargetPreview.md → SumupReaderInfoDevice.md} +7 -7
  82. package/docs/{MarkNotificationsReadResponse.md → SumupReaderResponse.md} +5 -5
  83. package/docs/SumupReaderStatusInfo.md +32 -0
  84. package/docs/SumupReaderStatusResponse.md +20 -0
  85. package/docs/SumupReadersResponse.md +20 -0
  86. package/docs/{NotificationResponseClub.md → SumupUpdateReaderRequest.md} +5 -7
  87. package/docs/UpdateClubHoursSettingsRequest.md +1 -1
  88. package/docs/UpdateClubReservationSettingsRequest.md +2 -2
  89. package/docs/UserClubMembership.md +0 -2
  90. package/docs/UserProfileResponse.md +0 -12
  91. package/docs/UsersApi.md +0 -273
  92. package/docs/WaitListStaffApi.md +0 -55
  93. package/index.ts +1 -1
  94. package/package.json +4 -2
  95. package/tsconfig.esm.json +7 -0
  96. package/tsconfig.json +2 -5
  97. package/docs/AuthApi.md +0 -113
  98. package/docs/ClubPageResponseClubCustomerStatus.md +0 -27
  99. package/docs/ClubPageResponseSportsIdsLookup.md +0 -23
  100. package/docs/ClubPricingPeriodPayload.md +0 -32
  101. package/docs/ComingEventsPageResponse.md +0 -22
  102. package/docs/CourtEnvironment.md +0 -10
  103. package/docs/EstimateOpenBookingJoinRequest.md +0 -24
  104. package/docs/GetOpenEventBookingsBySport200Response.md +0 -20
  105. package/docs/GetOpenEventBookingsBySport200ResponseEventBookingsInner.md +0 -46
  106. package/docs/JobResult.md +0 -24
  107. package/docs/JobsApi.md +0 -367
  108. package/docs/JoinOpenBookingRequest.md +0 -28
  109. package/docs/MarkNotificationsReadRequest.md +0 -22
  110. package/docs/NotificationData.md +0 -22
  111. package/docs/NotificationInitiator.md +0 -28
  112. package/docs/NotificationParticipantPreview.md +0 -24
  113. package/docs/NotificationPreview.md +0 -78
  114. package/docs/NotificationResponse.md +0 -46
  115. package/docs/NotificationSlotPreview.md +0 -24
  116. package/docs/NotificationSportPreview.md +0 -24
  117. package/docs/NotificationType.md +0 -26
  118. package/docs/OpenBookingBasePriceResponse.md +0 -24
  119. package/docs/OpenBookingJoinEstimateResponse.md +0 -26
  120. package/docs/OpenBookingPriceBody.md +0 -26
  121. package/docs/PartnerSearchItem.md +0 -28
  122. package/docs/PartnerSearchResponse.md +0 -22
  123. package/docs/PartnerSearchResponseMeta.md +0 -26
  124. package/docs/PricingPeriodDiscount.md +0 -24
  125. package/docs/QuickReservationCourtType.md +0 -10
  126. package/docs/RequestOrganizationEmailCodeBody.md +0 -22
  127. package/docs/RequestOrganizationEmailCodeResponse.md +0 -22
  128. package/docs/RequestVerificationCodeBody.md +0 -26
  129. package/docs/StaffEventsPageResponse.md +0 -22
  130. package/docs/UserNextBookingSummary.md +0 -26
  131. package/docs/UserNotificationsResponse.md +0 -22
  132. package/docs/UserNotificationsResponseMeta.md +0 -28
  133. package/docs/VerifyOrganizationEmailCodeBody.md +0 -24
  134. package/docs/VerifyOrganizationEmailCodeResponse.md +0 -22
  135. package/docs/VerifyVerificationCodeBody.md +0 -24
  136. package/docs/WaitListEntryWithPlayer.md +0 -44
  137. package/docs/WaitListPlayer.md +0 -28
  138. package/docs/WaitListPlayersListResponse.md +0 -22
@@ -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
- **maxPlayersDesired** | **number** | Nombre maximal de joueurs souhaités (incluant le créateur) | [default to undefined]
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
- maxPlayersDesired,
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,11 +7,9 @@ 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 | |
14
- |[**getOpenEventBookingsBySport**](#getopeneventbookingsbysport) | **GET** /api/events/open/by-sport | |
15
13
  |[**getPublishedEventsByClubId**](#getpublishedeventsbyclubid) | **GET** /api/events | |
16
14
  |[**joinEvent**](#joinevent) | **POST** /api/events/{eventId}/join | |
17
15
  |[**joinOpenEventBooking**](#joinopeneventbooking) | **POST** /api/events/{eventBookingId}/open/join | |
@@ -187,63 +185,6 @@ const { status, data } = await apiInstance.estimateOpenEventBookingJoinPrice(
187
185
 
188
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)
189
187
 
190
- # **getComingEvent**
191
- > ComingEventsPageResponse getComingEvent()
192
-
193
- Get upcoming events for a club with pagination (max 10 per page)
194
-
195
- ### Example
196
-
197
- ```typescript
198
- import {
199
- EventsApi,
200
- Configuration
201
- } from '@tennac-booking/sdk';
202
-
203
- const configuration = new Configuration();
204
- const apiInstance = new EventsApi(configuration);
205
-
206
- let clubId: string; // (optional) (default to undefined)
207
- let page: number; // (optional) (default to undefined)
208
-
209
- const { status, data } = await apiInstance.getComingEvent(
210
- clubId,
211
- page
212
- );
213
- ```
214
-
215
- ### Parameters
216
-
217
- |Name | Type | Description | Notes|
218
- |------------- | ------------- | ------------- | -------------|
219
- | **clubId** | [**string**] | | (optional) defaults to undefined|
220
- | **page** | [**number**] | | (optional) defaults to undefined|
221
-
222
-
223
- ### Return type
224
-
225
- **ComingEventsPageResponse**
226
-
227
- ### Authorization
228
-
229
- [bearerAuth](../README.md#bearerAuth)
230
-
231
- ### HTTP request headers
232
-
233
- - **Content-Type**: Not defined
234
- - **Accept**: application/json
235
-
236
-
237
- ### HTTP response details
238
- | Status code | Description | Response headers |
239
- |-------------|-------------|------------------|
240
- |**200** | List of upcoming events | - |
241
- |**400** | Bad Request | - |
242
- |**401** | Unauthorized | - |
243
- |**500** | Server Error | - |
244
-
245
- [[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)
246
-
247
188
  # **getEventById**
248
189
  > PublishEventResponse getEventById()
249
190
 
@@ -406,60 +347,6 @@ No authorization required
406
347
 
407
348
  [[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)
408
349
 
409
- # **getOpenEventBookingsBySport**
410
- > GetOpenEventBookingsBySport200Response getOpenEventBookingsBySport()
411
-
412
-
413
- ### Example
414
-
415
- ```typescript
416
- import {
417
- EventsApi,
418
- Configuration
419
- } from '@tennac-booking/sdk';
420
-
421
- const configuration = new Configuration();
422
- const apiInstance = new EventsApi(configuration);
423
-
424
- let clubId: string; // (optional) (default to undefined)
425
- let sportId: string; // (optional) (default to undefined)
426
-
427
- const { status, data } = await apiInstance.getOpenEventBookingsBySport(
428
- clubId,
429
- sportId
430
- );
431
- ```
432
-
433
- ### Parameters
434
-
435
- |Name | Type | Description | Notes|
436
- |------------- | ------------- | ------------- | -------------|
437
- | **clubId** | [**string**] | | (optional) defaults to undefined|
438
- | **sportId** | [**string**] | | (optional) defaults to undefined|
439
-
440
-
441
- ### Return type
442
-
443
- **GetOpenEventBookingsBySport200Response**
444
-
445
- ### Authorization
446
-
447
- No authorization required
448
-
449
- ### HTTP request headers
450
-
451
- - **Content-Type**: Not defined
452
- - **Accept**: application/json
453
-
454
-
455
- ### HTTP response details
456
- | Status code | Description | Response headers |
457
- |-------------|-------------|------------------|
458
- |**200** | List of open event bookings filtered by sport | - |
459
- |**400** | Bad Request | - |
460
-
461
- [[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)
462
-
463
350
  # **getPublishedEventsByClubId**
464
351
  > EventsListResponse getPublishedEventsByClubId()
465
352
 
@@ -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,17 +11,16 @@ 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]
19
18
  **sport** | [**OpenBookingSportInfo**](OpenBookingSportInfo.md) | | [optional] [default to undefined]
20
19
  **minLevel** | **string** | Niveau minimal souhaité | [optional] [default to undefined]
21
20
  **description** | **string** | Description de la réservation | [optional] [default to undefined]
22
- **maxPlayers** | **number** | Nombre maximal de joueurs souhaités | [optional] [default to undefined]
21
+ **maxPlayers** | **number** | Nombre maximal de joueurs | [optional] [default to undefined]
23
22
  **currentPlayersCount** | **number** | Nombre de joueurs actuels | [default to undefined]
24
- **joinPrice** | **number** | Prix de base pour rejoindre la réservation (en centimes, stocké lors de la création) | [optional] [default to undefined]
23
+ **basePriceToJoin** | **number** | Prix de base pour rejoindre la réservation (en centimes) | [optional] [default to undefined]
25
24
 
26
25
  ## Example
27
26
 
@@ -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,
@@ -45,7 +43,7 @@ const instance: OpenBookingInfo = {
45
43
  description,
46
44
  maxPlayers,
47
45
  currentPlayersCount,
48
- joinPrice,
46
+ basePriceToJoin,
49
47
  };
50
48
  ```
51
49