@tennac-booking/sdk 1.0.55 → 1.0.61

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 (265) hide show
  1. package/.openapi-generator/FILES +217 -222
  2. package/README.md +199 -173
  3. package/api.ts +8275 -7164
  4. package/base.ts +3 -3
  5. package/common.ts +3 -3
  6. package/configuration.ts +3 -3
  7. package/dist/api.d.ts +5952 -5687
  8. package/dist/api.js +4344 -3312
  9. package/dist/base.d.ts +3 -3
  10. package/dist/base.js +3 -3
  11. package/dist/common.d.ts +3 -3
  12. package/dist/common.js +3 -3
  13. package/dist/configuration.d.ts +3 -3
  14. package/dist/configuration.js +3 -3
  15. package/dist/esm/api.d.ts +5952 -5687
  16. package/dist/esm/api.js +4251 -3215
  17. package/dist/esm/base.d.ts +3 -3
  18. package/dist/esm/base.js +3 -3
  19. package/dist/esm/common.d.ts +3 -3
  20. package/dist/esm/common.js +3 -3
  21. package/dist/esm/configuration.d.ts +3 -3
  22. package/dist/esm/configuration.js +3 -3
  23. package/dist/esm/index.d.ts +3 -3
  24. package/dist/esm/index.js +3 -3
  25. package/dist/index.d.ts +3 -3
  26. package/dist/index.js +3 -3
  27. package/docs/{ApiErrorResponse.md → AddClubMember201Response.md} +6 -6
  28. package/docs/AddClubMemberRequest.md +7 -3
  29. package/docs/BookingAnalyticsResponse.md +34 -0
  30. package/docs/BookingHistory.md +34 -0
  31. package/docs/BookingInfo.md +50 -0
  32. package/docs/BookingPaymentStatusResponse.md +3 -3
  33. package/docs/BookingPaymentStatusResponseBooking.md +8 -7
  34. package/docs/BookingPaymentStatusResponseSummary.md +10 -9
  35. package/docs/BookingPopulated.md +5 -5
  36. package/docs/BookingResponse.md +4 -4
  37. package/docs/{UpdateProfileVisibilityRequestBody.md → BookingResponseOnsitePaymentsInner.md} +7 -5
  38. package/docs/BookingStatus.md +9 -1
  39. package/docs/BookingsApi.md +10 -64
  40. package/docs/{ManagerBookingsApi.md → BookingsManagerApi.md} +14 -24
  41. package/docs/BookingsStaffApi.md +323 -0
  42. package/docs/{UserBookingsApi.md → BookingsUserApi.md} +17 -25
  43. package/docs/CancelBookingResponse.md +2 -2
  44. package/docs/CaptureResult.md +30 -0
  45. package/docs/CheckInPlayersRequest.md +20 -0
  46. package/docs/CheckInPlayersResponse.md +6 -6
  47. package/docs/CheckedInPlayer.md +34 -0
  48. package/docs/ClubAnalyticsApi.md +20 -160
  49. package/docs/ClubAnalyticsStaffApi.md +523 -0
  50. package/docs/ClubMemberResponse.md +24 -0
  51. package/docs/ClubMemberResponseUser.md +27 -0
  52. package/docs/ClubPlayerResponse.md +36 -0
  53. package/docs/ClubResponse.md +22 -14
  54. package/docs/ClubResponseCreatedAt.md +19 -0
  55. package/docs/{Location.md → ClubResponseLocation.md} +9 -12
  56. package/docs/{GetNumberOfClubUsers200Response.md → ClubResponseLocationCoordinates.md} +7 -5
  57. package/docs/ClubResponseUpdatedAt.md +19 -0
  58. package/docs/ClubRoleResponse.md +11 -9
  59. package/docs/ClubRolesManagerApi.md +177 -0
  60. package/docs/{StaffClubsApi.md → ClubRolesStaffApi.md} +41 -34
  61. package/docs/ClubSettingsManagerApi.md +221 -0
  62. package/docs/ClubSettingsResponse.md +41 -0
  63. package/docs/{AddFavoriteClubRequestBody.md → ClubUserCountResponse.md} +5 -5
  64. package/docs/ClubsApi.md +515 -8
  65. package/docs/ClubsManagerApi.md +950 -0
  66. package/docs/{ManagerClubsApi.md → ClubsStaffApi.md} +138 -62
  67. package/docs/CourtInfo.md +28 -0
  68. package/docs/CourtResponse.md +16 -16
  69. package/docs/CourtStatus.md +2 -5
  70. package/docs/CreateBookingRequest.md +1 -3
  71. package/docs/CreateClubRequest.md +22 -0
  72. package/docs/CreateClubRoleRequest.md +24 -0
  73. package/docs/CreateClubSettingsRequest.md +34 -0
  74. package/docs/{ActiveClubListResponse.md → CreateCourtForClub201Response.md} +5 -5
  75. package/docs/CreateCourtRequest.md +10 -12
  76. package/docs/CreateEventRequest.md +1 -3
  77. package/docs/{SubscriptionSessionRequestBody.md → CreatePlan201Response.md} +5 -5
  78. package/docs/CreateSportForClub201Response.md +20 -0
  79. package/docs/{Sport.md → CreateSportForClubRequest.md} +4 -6
  80. package/docs/CreateSportRequest.md +1 -7
  81. package/docs/CreateSubscriptionPlanRequest.md +12 -4
  82. package/docs/CreateSubscriptionPlanRequestDiscount.md +32 -0
  83. package/docs/CreatorChargeResult.md +26 -0
  84. package/docs/DailyTurnoverResponse.md +3 -3
  85. package/docs/DefaultApi.md +62 -0
  86. package/docs/{CourtDeleteResponse.md → DeleteClubRoleResponse.md} +4 -4
  87. package/docs/DeleteClubSettingsResponse.md +20 -0
  88. package/docs/{DeleteSport200Response.md → DeleteCourtResponse.md} +4 -4
  89. package/docs/{DeleteEvent200Response.md → DeleteEventResponse.md} +4 -4
  90. package/docs/DeleteSlotsByClubInRange200Response.md +1 -1
  91. package/docs/{DeleteClubRole200Response.md → DeleteSportResponse.md} +4 -4
  92. package/docs/DeleteSubscriptionPlanResponse.md +20 -0
  93. package/docs/{StripeStatus.md → DiscountType.md} +5 -7
  94. package/docs/EventResponse.md +40 -0
  95. package/docs/EventResponseCourtsInner.md +18 -0
  96. package/docs/EventsApi.md +21 -21
  97. package/docs/{StaffEventResponse.md → EventsListResponse.md} +4 -4
  98. package/docs/{ManagerEventsApi.md → EventsManagerApi.md} +38 -40
  99. package/docs/{StaffEventsApi.md → EventsStaffApi.md} +11 -10
  100. package/docs/{GenderPercentage.md → GenderPercentageResponse.md} +7 -7
  101. package/docs/GetActualities200Response.md +20 -0
  102. package/docs/GetAvailableSlotsBySports200Response.md +20 -0
  103. package/docs/{ClubMembersResponse.md → GetClubMembers200Response.md} +6 -6
  104. package/docs/GetClubRoles200Response.md +20 -0
  105. package/docs/GetClubUsersById200Response.md +1 -1
  106. package/docs/GetCourtsByClubAndSportById200Response.md +26 -0
  107. package/docs/GetInfillPercentagePerPeriod200Response.md +5 -5
  108. package/docs/{SlotsResponse.md → GetSlotsByClubById200Response.md} +6 -6
  109. package/docs/GetSportsByClubById200Response.md +20 -0
  110. package/docs/{Court.md → ICourtData.md} +18 -6
  111. package/docs/{DiagnosticsResponse.md → InvoiceInfo.md} +8 -8
  112. package/docs/{ClubListResponse.md → LastSixMonthsTurnoverItem.md} +7 -7
  113. package/docs/ManagerCancelBookingRequest.md +1 -1
  114. package/docs/ManagerCancelBookingResponse.md +2 -2
  115. package/docs/MonthlyBreakdown.md +24 -0
  116. package/docs/MonthlyTurnoverResponse.md +6 -5
  117. package/docs/NoShowFeeResponse.md +6 -6
  118. package/docs/OffPeakRule.md +26 -0
  119. package/docs/PartialClubResponse.md +49 -0
  120. package/docs/PaymentByPlayerInfo.md +22 -0
  121. package/docs/PaymentMethod.md +2 -1
  122. package/docs/PlanInterval.md +14 -0
  123. package/docs/PlayerPaymentInfo.md +36 -0
  124. package/docs/PublicSubscriptionPlanResponse.md +30 -0
  125. package/docs/PublishEventResponse.md +20 -0
  126. package/docs/SlotInfo.md +26 -0
  127. package/docs/SportAnalyticsResponse.md +24 -0
  128. package/docs/SportInfo.md +22 -0
  129. package/docs/SportResponse.md +8 -11
  130. package/docs/SportWithAnalytics.md +36 -0
  131. package/docs/SportsManagerApi.md +177 -0
  132. package/docs/SportsStaffApi.md +55 -0
  133. package/docs/StripeStripeDeletedProduct.md +25 -0
  134. package/docs/StripeStripePrice.md +63 -0
  135. package/docs/StripeStripePriceBillingScheme.md +10 -0
  136. package/docs/StripeStripePriceCurrencyOptions.md +28 -0
  137. package/docs/StripeStripePriceCurrencyOptionsCustomUnitAmount.md +24 -0
  138. package/docs/StripeStripePriceCurrencyOptionsTaxBehavior.md +12 -0
  139. package/docs/StripeStripePriceCurrencyOptionsTier.md +28 -0
  140. package/docs/StripeStripePriceCustomUnitAmount.md +24 -0
  141. package/docs/StripeStripePriceProduct.md +59 -0
  142. package/docs/StripeStripePriceRecurring.md +28 -0
  143. package/docs/StripeStripePriceRecurringInterval.md +14 -0
  144. package/docs/StripeStripePriceRecurringUsageType.md +10 -0
  145. package/docs/StripeStripePriceTaxBehavior.md +12 -0
  146. package/docs/StripeStripePriceTier.md +28 -0
  147. package/docs/StripeStripePriceTiersMode.md +10 -0
  148. package/docs/StripeStripePriceTransformQuantity.md +22 -0
  149. package/docs/StripeStripePriceTransformQuantityRound.md +10 -0
  150. package/docs/StripeStripePriceType.md +10 -0
  151. package/docs/StripeStripeProduct.md +59 -0
  152. package/docs/StripeStripeProductDefaultPrice.md +63 -0
  153. package/docs/{AddPaymentMethodSetupRequestBody.md → StripeStripeProductMarketingFeature.md} +5 -5
  154. package/docs/StripeStripeProductPackageDimensions.md +26 -0
  155. package/docs/StripeStripeProductTaxCode.md +27 -0
  156. package/docs/StripeStripeProductType.md +10 -0
  157. package/docs/StripeStripeResponseStripeStripePrice.md +64 -0
  158. package/docs/StripeStripeResponseStripeStripePriceAllOfLastResponse.md +30 -0
  159. package/docs/StripeStripeTaxCode.md +27 -0
  160. package/docs/{SubscribeToClubRequestBody.md → SubscribeRequestBody.md} +3 -3
  161. package/docs/SubscriptionPlanResponse.md +16 -14
  162. package/docs/SubscriptionsManagerApi.md +171 -0
  163. package/docs/{UserClubSportsApi.md → SubscriptionsPublicApi.md} +15 -15
  164. package/docs/{StaffClubBookingsApi.md → SubscriptionsStaffApi.md} +12 -10
  165. package/docs/{ManagerClubCourtsApi.md → SubscriptionsUserApi.md} +68 -66
  166. package/docs/SurfaceType.md +12 -0
  167. package/docs/UpdateActuality200Response.md +20 -0
  168. package/docs/UpdateClubRequest.md +11 -11
  169. package/docs/UpdateClubRequestLocation.md +29 -0
  170. package/docs/{BookingPopulatedSlotIdCourtIdSportId.md → UpdateClubRequestLocationCoordinates.md} +7 -7
  171. package/docs/UpdateClubRoleRequest.md +22 -0
  172. package/docs/UpdateClubSettingsRequest.md +14 -10
  173. package/docs/{FrequentlyVisitedClubItem.md → UpdatePlanRequest.md} +7 -7
  174. package/docs/UpdateSportRequest.md +1 -5
  175. package/docs/UpdateSubscriptionPlanForClub200Response.md +20 -0
  176. package/docs/{BookingPopulatedUserId.md → UserInfo.md} +6 -6
  177. package/docs/UsersApi.md +27 -378
  178. package/docs/YearlyTurnoverResponse.md +4 -4
  179. package/index.ts +3 -3
  180. package/package.json +1 -1
  181. package/docs/ActiveClub.md +0 -30
  182. package/docs/AddClubMemberResponse.md +0 -22
  183. package/docs/AddPaymentMethodSetupResponse.md +0 -24
  184. package/docs/BlockSlotResponse.md +0 -22
  185. package/docs/Booking.md +0 -32
  186. package/docs/BookingHistoryResponse.md +0 -22
  187. package/docs/BookingHistoryResponseHistoryInner.md +0 -32
  188. package/docs/BookingPaymentStatusResponsePaymentStatusInner.md +0 -36
  189. package/docs/BookingPopulatedPaymentByPlayersStatusInner.md +0 -22
  190. package/docs/BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner.md +0 -24
  191. package/docs/BookingPopulatedSlotId.md +0 -26
  192. package/docs/BookingPopulatedSlotIdCourtId.md +0 -28
  193. package/docs/BookingsStaffWeeklyWeekIdGet200Response.md +0 -20
  194. package/docs/CancelBookingResponseBooking.md +0 -30
  195. package/docs/CheckInPlayersResponseCheckedInPlayersInner.md +0 -34
  196. package/docs/Club.md +0 -40
  197. package/docs/ClubInfoResponse.md +0 -48
  198. package/docs/ClubMember.md +0 -24
  199. package/docs/ClubRole.md +0 -30
  200. package/docs/ClubRolesResponse.md +0 -22
  201. package/docs/ClubSettings.md +0 -40
  202. package/docs/ClubStaffResponse.md +0 -48
  203. package/docs/ConfirmPaymentMethodSetupRequestBody.md +0 -20
  204. package/docs/ConfirmPaymentMethodSetupResponse.md +0 -22
  205. package/docs/CourtWithNameResponse.md +0 -48
  206. package/docs/CourtsResponse.md +0 -22
  207. package/docs/CourtsWithNameResponse.md +0 -22
  208. package/docs/CreateClubRoleRequestBody.md +0 -24
  209. package/docs/CreatePriceRequest.md +0 -26
  210. package/docs/DiagnosticsApi.md +0 -97
  211. package/docs/Event.md +0 -40
  212. package/docs/EventBooking.md +0 -32
  213. package/docs/EventRegistrationRequest.md +0 -22
  214. package/docs/FrequentlyPlayedWithItem.md +0 -28
  215. package/docs/GetActiveClubs200Response.md +0 -20
  216. package/docs/GetClubInfos200Response.md +0 -30
  217. package/docs/GetCourtsByClubAndSport200Response.md +0 -26
  218. package/docs/GetLastSixMonthsTurnover200ResponseInner.md +0 -22
  219. package/docs/GetPublishedEventsByClubId200Response.md +0 -20
  220. package/docs/InvoicesResponse.md +0 -22
  221. package/docs/InvoicesResponseInvoicesInner.md +0 -34
  222. package/docs/InvoicesResponsePagination.md +0 -26
  223. package/docs/LevelBySportsItem.md +0 -22
  224. package/docs/ManagerCancelBookingResponseBooking.md +0 -30
  225. package/docs/ManagerClubRolesApi.md +0 -268
  226. package/docs/ManagerClubSlotsApi.md +0 -119
  227. package/docs/ManagerClubSubscriptionsApi.md +0 -387
  228. package/docs/ManagerEventResponse.md +0 -22
  229. package/docs/ManagerSportsApi.md +0 -119
  230. package/docs/NoShowFeeResponseCaptureResultsInner.md +0 -30
  231. package/docs/NoShowFeeResponseCreatorChargeResult.md +0 -26
  232. package/docs/PaymentStatus.md +0 -30
  233. package/docs/PriceResponse.md +0 -32
  234. package/docs/PublicClubUser.md +0 -46
  235. package/docs/PublicClubUserFrequentlyPlayedWithInner.md +0 -28
  236. package/docs/PublicClubUserFrequentlyVisitedClubsInner.md +0 -24
  237. package/docs/PublicClubUserLevelBySportsInner.md +0 -22
  238. package/docs/RegisterForEvent201Response.md +0 -20
  239. package/docs/RestoreSubscriptionPlanForClub200Response.md +0 -20
  240. package/docs/SdkDiagnosticsResponse.md +0 -28
  241. package/docs/SdkDiagnosticsResponseOpenapi.md +0 -24
  242. package/docs/SdkDiagnosticsResponseSdk.md +0 -24
  243. package/docs/Slot.md +0 -24
  244. package/docs/SlotException.md +0 -26
  245. package/docs/SlotResponse.md +0 -34
  246. package/docs/StaffBookingsApi.md +0 -61
  247. package/docs/StaffClubAnalyticsApi.md +0 -254
  248. package/docs/StripeLink.md +0 -26
  249. package/docs/SubscriptionPlan.md +0 -36
  250. package/docs/SubscriptionResponse.md +0 -36
  251. package/docs/SubscriptionSessionResponse.md +0 -20
  252. package/docs/UpdateClubRoleRequestBody.md +0 -24
  253. package/docs/UpdateCourtRequest.md +0 -38
  254. package/docs/UpdateProfilePictureRequestBody.md +0 -20
  255. package/docs/UpdateSubscriptionPlanRequest.md +0 -24
  256. package/docs/UpdateSubscriptionPlanResponse.md +0 -22
  257. package/docs/UpdateUserCityRequestBody.md +0 -20
  258. package/docs/UpdateUserDescriptionRequestBody.md +0 -20
  259. package/docs/UserBookingItem.md +0 -46
  260. package/docs/UserClubCourtsApi.md +0 -64
  261. package/docs/UserClubSlotsApi.md +0 -181
  262. package/docs/UserClubsApi.md +0 -145
  263. package/docs/UserInfoStaff.md +0 -38
  264. package/docs/UserStaffResponse.md +0 -40
  265. package/docs/YearlyTurnoverResponseMonthlyBreakdownInner.md +0 -24
@@ -0,0 +1,41 @@
1
+ # ClubSettingsResponse
2
+
3
+ Types TSOA pour les paramètres du club
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **_id** | **string** | ID unique des paramètres | [default to undefined]
10
+ **clubId** | **string** | ID du club | [default to undefined]
11
+ **maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [default to undefined]
12
+ **allowMultipleBookingsAtTheSameTime** | **boolean** | Autoriser plusieurs réservations en même temps | [default to undefined]
13
+ **sameTimeBookingsLimit** | **number** | Limite de réservations simultanées | [optional] [default to undefined]
14
+ **cancellationLimitHours** | **number** | Limite d\'annulation en heures | [default to undefined]
15
+ **availabilityPeriodInDays** | **number** | Période de disponibilité en jours | [default to undefined]
16
+ **sponsors** | **Array<string>** | Liste des sponsors | [default to undefined]
17
+ **timeBeforePayment** | **number** | Temps avant paiement en minutes | [default to undefined]
18
+ **createdAt** | **string** | Date de création | [default to undefined]
19
+ **updatedAt** | **string** | Date de mise à jour | [default to undefined]
20
+
21
+ ## Example
22
+
23
+ ```typescript
24
+ import { ClubSettingsResponse } from '@tennac-booking/sdk';
25
+
26
+ const instance: ClubSettingsResponse = {
27
+ _id,
28
+ clubId,
29
+ maxWeeklyBookings,
30
+ allowMultipleBookingsAtTheSameTime,
31
+ sameTimeBookingsLimit,
32
+ cancellationLimitHours,
33
+ availabilityPeriodInDays,
34
+ sponsors,
35
+ timeBeforePayment,
36
+ createdAt,
37
+ updatedAt,
38
+ };
39
+ ```
40
+
41
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,19 +1,19 @@
1
- # AddFavoriteClubRequestBody
1
+ # ClubUserCountResponse
2
2
 
3
3
 
4
4
  ## Properties
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **clubId** | **string** | ID du club à ajouter aux favoris | [default to undefined]
8
+ **count** | **number** | Nombre d\'utilisateurs du club | [default to undefined]
9
9
 
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import { AddFavoriteClubRequestBody } from '@tennac-booking/sdk';
13
+ import { ClubUserCountResponse } from '@tennac-booking/sdk';
14
14
 
15
- const instance: AddFavoriteClubRequestBody = {
16
- clubId,
15
+ const instance: ClubUserCountResponse = {
16
+ count,
17
17
  };
18
18
  ```
19
19
 
package/docs/ClubsApi.md CHANGED
@@ -4,12 +4,316 @@ All URIs are relative to *http://localhost*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**getClubUsersById**](#getclubusersbyid) | **GET** /api/clubs/{id}/clubUsers | Récupérer la liste publique des utilisateurs d\'un club|
7
+ |[**getActiveClubs**](#getactiveclubs) | **GET** /api/clubs/active | |
8
+ |[**getAllClubs**](#getallclubs) | **GET** /api/clubs | |
9
+ |[**getAvailableSlotsByClubById**](#getavailableslotsbyclubbyid) | **GET** /api/clubs/{clubID}/availableSlots | |
10
+ |[**getAvailableSlotsBySports**](#getavailableslotsbysports) | **GET** /api/clubs/{id}/sports/{sportId}/slots | |
11
+ |[**getAvailableSlotsBySportsAndDay**](#getavailableslotsbysportsandday) | **GET** /api/clubs/{id}/sports/{sportId}/slots/{day} | |
12
+ |[**getClubInfo**](#getclubinfo) | **GET** /api/clubs/info | |
13
+ |[**getClubUsersById**](#getclubusersbyid) | **GET** /api/clubs/{id}/users | |
14
+ |[**getCourtsByClubAndSportById**](#getcourtsbyclubandsportbyid) | **GET** /api/clubs/{id}/sports/{sportId}/courts | |
15
+ |[**getPublishedActualities**](#getpublishedactualities) | **GET** /api/clubs/{id}/actualities | |
16
+ |[**getSlotsByClubById**](#getslotsbyclubbyid) | **GET** /api/clubs/{id}/slots | |
17
+ |[**getSportsByClubById**](#getsportsbyclubbyid) | **GET** /api/clubs/{id}/sports | |
18
+
19
+ # **getActiveClubs**
20
+ > Array<PartialClubResponse> getActiveClubs()
21
+
22
+ Récupère la liste des clubs actifs
23
+
24
+ ### Example
25
+
26
+ ```typescript
27
+ import {
28
+ ClubsApi,
29
+ Configuration
30
+ } from '@tennac-booking/sdk';
31
+
32
+ const configuration = new Configuration();
33
+ const apiInstance = new ClubsApi(configuration);
34
+
35
+ const { status, data } = await apiInstance.getActiveClubs();
36
+ ```
37
+
38
+ ### Parameters
39
+ This endpoint does not have any parameters.
40
+
41
+
42
+ ### Return type
43
+
44
+ **Array<PartialClubResponse>**
45
+
46
+ ### Authorization
47
+
48
+ No authorization required
49
+
50
+ ### HTTP request headers
51
+
52
+ - **Content-Type**: Not defined
53
+ - **Accept**: application/json
54
+
55
+
56
+ ### HTTP response details
57
+ | Status code | Description | Response headers |
58
+ |-------------|-------------|------------------|
59
+ |**200** | Liste des clubs actifs | - |
60
+ |**500** | Server Error | - |
61
+
62
+ [[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)
63
+
64
+ # **getAllClubs**
65
+ > Array<ClubResponse> getAllClubs()
66
+
67
+ Récupère la liste de tous les clubs
68
+
69
+ ### Example
70
+
71
+ ```typescript
72
+ import {
73
+ ClubsApi,
74
+ Configuration
75
+ } from '@tennac-booking/sdk';
76
+
77
+ const configuration = new Configuration();
78
+ const apiInstance = new ClubsApi(configuration);
79
+
80
+ const { status, data } = await apiInstance.getAllClubs();
81
+ ```
82
+
83
+ ### Parameters
84
+ This endpoint does not have any parameters.
85
+
86
+
87
+ ### Return type
88
+
89
+ **Array<ClubResponse>**
90
+
91
+ ### Authorization
92
+
93
+ No authorization required
94
+
95
+ ### HTTP request headers
96
+
97
+ - **Content-Type**: Not defined
98
+ - **Accept**: application/json
99
+
100
+
101
+ ### HTTP response details
102
+ | Status code | Description | Response headers |
103
+ |-------------|-------------|------------------|
104
+ |**200** | Liste des clubs | - |
105
+ |**500** | Server Error | - |
106
+
107
+ [[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)
108
+
109
+ # **getAvailableSlotsByClubById**
110
+ > GetSlotsByClubById200Response getAvailableSlotsByClubById()
111
+
112
+
113
+ ### Example
114
+
115
+ ```typescript
116
+ import {
117
+ ClubsApi,
118
+ Configuration
119
+ } from '@tennac-booking/sdk';
120
+
121
+ const configuration = new Configuration();
122
+ const apiInstance = new ClubsApi(configuration);
123
+
124
+ let clubID: string; // (default to undefined)
125
+
126
+ const { status, data } = await apiInstance.getAvailableSlotsByClubById(
127
+ clubID
128
+ );
129
+ ```
130
+
131
+ ### Parameters
132
+
133
+ |Name | Type | Description | Notes|
134
+ |------------- | ------------- | ------------- | -------------|
135
+ | **clubID** | [**string**] | | defaults to undefined|
136
+
137
+
138
+ ### Return type
139
+
140
+ **GetSlotsByClubById200Response**
141
+
142
+ ### Authorization
143
+
144
+ No authorization required
145
+
146
+ ### HTTP request headers
147
+
148
+ - **Content-Type**: Not defined
149
+ - **Accept**: application/json
150
+
151
+
152
+ ### HTTP response details
153
+ | Status code | Description | Response headers |
154
+ |-------------|-------------|------------------|
155
+ |**200** | Available slots | - |
156
+
157
+ [[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)
158
+
159
+ # **getAvailableSlotsBySports**
160
+ > GetAvailableSlotsBySports200Response getAvailableSlotsBySports()
161
+
162
+
163
+ ### Example
164
+
165
+ ```typescript
166
+ import {
167
+ ClubsApi,
168
+ Configuration
169
+ } from '@tennac-booking/sdk';
170
+
171
+ const configuration = new Configuration();
172
+ const apiInstance = new ClubsApi(configuration);
173
+
174
+ let id: string; // (default to undefined)
175
+ let sportId: string; // (default to undefined)
176
+
177
+ const { status, data } = await apiInstance.getAvailableSlotsBySports(
178
+ id,
179
+ sportId
180
+ );
181
+ ```
182
+
183
+ ### Parameters
184
+
185
+ |Name | Type | Description | Notes|
186
+ |------------- | ------------- | ------------- | -------------|
187
+ | **id** | [**string**] | | defaults to undefined|
188
+ | **sportId** | [**string**] | | defaults to undefined|
189
+
190
+
191
+ ### Return type
192
+
193
+ **GetAvailableSlotsBySports200Response**
194
+
195
+ ### Authorization
196
+
197
+ No authorization required
198
+
199
+ ### HTTP request headers
200
+
201
+ - **Content-Type**: Not defined
202
+ - **Accept**: application/json
203
+
204
+
205
+ ### HTTP response details
206
+ | Status code | Description | Response headers |
207
+ |-------------|-------------|------------------|
208
+ |**200** | Available slots by sport | - |
209
+
210
+ [[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)
211
+
212
+ # **getAvailableSlotsBySportsAndDay**
213
+ > GetAvailableSlotsBySports200Response getAvailableSlotsBySportsAndDay()
214
+
215
+
216
+ ### Example
217
+
218
+ ```typescript
219
+ import {
220
+ ClubsApi,
221
+ Configuration
222
+ } from '@tennac-booking/sdk';
223
+
224
+ const configuration = new Configuration();
225
+ const apiInstance = new ClubsApi(configuration);
226
+
227
+ let id: string; // (default to undefined)
228
+ let sportId: string; // (default to undefined)
229
+ let day: string; // (default to undefined)
230
+
231
+ const { status, data } = await apiInstance.getAvailableSlotsBySportsAndDay(
232
+ id,
233
+ sportId,
234
+ day
235
+ );
236
+ ```
237
+
238
+ ### Parameters
239
+
240
+ |Name | Type | Description | Notes|
241
+ |------------- | ------------- | ------------- | -------------|
242
+ | **id** | [**string**] | | defaults to undefined|
243
+ | **sportId** | [**string**] | | defaults to undefined|
244
+ | **day** | [**string**] | | defaults to undefined|
245
+
246
+
247
+ ### Return type
248
+
249
+ **GetAvailableSlotsBySports200Response**
250
+
251
+ ### Authorization
252
+
253
+ No authorization required
254
+
255
+ ### HTTP request headers
256
+
257
+ - **Content-Type**: Not defined
258
+ - **Accept**: application/json
259
+
260
+
261
+ ### HTTP response details
262
+ | Status code | Description | Response headers |
263
+ |-------------|-------------|------------------|
264
+ |**200** | Available slots by sport and day | - |
265
+
266
+ [[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)
267
+
268
+ # **getClubInfo**
269
+ > ClubResponse getClubInfo()
270
+
271
+ Récupère les informations d\'un club spécifique
272
+
273
+ ### Example
274
+
275
+ ```typescript
276
+ import {
277
+ ClubsApi,
278
+ Configuration
279
+ } from '@tennac-booking/sdk';
280
+
281
+ const configuration = new Configuration();
282
+ const apiInstance = new ClubsApi(configuration);
283
+
284
+ const { status, data } = await apiInstance.getClubInfo();
285
+ ```
286
+
287
+ ### Parameters
288
+ This endpoint does not have any parameters.
289
+
290
+
291
+ ### Return type
292
+
293
+ **ClubResponse**
294
+
295
+ ### Authorization
296
+
297
+ [bearerAuth](../README.md#bearerAuth)
298
+
299
+ ### HTTP request headers
300
+
301
+ - **Content-Type**: Not defined
302
+ - **Accept**: application/json
303
+
304
+
305
+ ### HTTP response details
306
+ | Status code | Description | Response headers |
307
+ |-------------|-------------|------------------|
308
+ |**200** | Informations du club | - |
309
+ |**404** | Club non trouvé | - |
310
+ |**500** | Server Error | - |
311
+
312
+ [[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)
8
313
 
9
314
  # **getClubUsersById**
10
315
  > GetClubUsersById200Response getClubUsersById()
11
316
 
12
- Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
13
317
 
14
318
  ### Example
15
319
 
@@ -22,7 +326,7 @@ import {
22
326
  const configuration = new Configuration();
23
327
  const apiInstance = new ClubsApi(configuration);
24
328
 
25
- let id: string; //ID du club (default to undefined)
329
+ let id: string; // (default to undefined)
26
330
 
27
331
  const { status, data } = await apiInstance.getClubUsersById(
28
332
  id
@@ -33,7 +337,7 @@ const { status, data } = await apiInstance.getClubUsersById(
33
337
 
34
338
  |Name | Type | Description | Notes|
35
339
  |------------- | ------------- | ------------- | -------------|
36
- | **id** | [**string**] | ID du club | defaults to undefined|
340
+ | **id** | [**string**] | | defaults to undefined|
37
341
 
38
342
 
39
343
  ### Return type
@@ -42,7 +346,212 @@ const { status, data } = await apiInstance.getClubUsersById(
42
346
 
43
347
  ### Authorization
44
348
 
45
- [bearerAuth](../README.md#bearerAuth)
349
+ No authorization required
350
+
351
+ ### HTTP request headers
352
+
353
+ - **Content-Type**: Not defined
354
+ - **Accept**: application/json
355
+
356
+
357
+ ### HTTP response details
358
+ | Status code | Description | Response headers |
359
+ |-------------|-------------|------------------|
360
+ |**200** | Utilisateurs du club récupérés | - |
361
+ |**400** | Bad Request | - |
362
+ |**500** | Server Error | - |
363
+
364
+ [[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)
365
+
366
+ # **getCourtsByClubAndSportById**
367
+ > GetCourtsByClubAndSportById200Response getCourtsByClubAndSportById()
368
+
369
+
370
+ ### Example
371
+
372
+ ```typescript
373
+ import {
374
+ ClubsApi,
375
+ Configuration
376
+ } from '@tennac-booking/sdk';
377
+
378
+ const configuration = new Configuration();
379
+ const apiInstance = new ClubsApi(configuration);
380
+
381
+ let id: string; // (default to undefined)
382
+ let sportId: string; // (default to undefined)
383
+
384
+ const { status, data } = await apiInstance.getCourtsByClubAndSportById(
385
+ id,
386
+ sportId
387
+ );
388
+ ```
389
+
390
+ ### Parameters
391
+
392
+ |Name | Type | Description | Notes|
393
+ |------------- | ------------- | ------------- | -------------|
394
+ | **id** | [**string**] | | defaults to undefined|
395
+ | **sportId** | [**string**] | | defaults to undefined|
396
+
397
+
398
+ ### Return type
399
+
400
+ **GetCourtsByClubAndSportById200Response**
401
+
402
+ ### Authorization
403
+
404
+ No authorization required
405
+
406
+ ### HTTP request headers
407
+
408
+ - **Content-Type**: Not defined
409
+ - **Accept**: application/json
410
+
411
+
412
+ ### HTTP response details
413
+ | Status code | Description | Response headers |
414
+ |-------------|-------------|------------------|
415
+ |**200** | Terrains par club et sport | - |
416
+
417
+ [[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)
418
+
419
+ # **getPublishedActualities**
420
+ > GetActualities200Response getPublishedActualities()
421
+
422
+
423
+ ### Example
424
+
425
+ ```typescript
426
+ import {
427
+ ClubsApi,
428
+ Configuration
429
+ } from '@tennac-booking/sdk';
430
+
431
+ const configuration = new Configuration();
432
+ const apiInstance = new ClubsApi(configuration);
433
+
434
+ let id: string; // (default to undefined)
435
+
436
+ const { status, data } = await apiInstance.getPublishedActualities(
437
+ id
438
+ );
439
+ ```
440
+
441
+ ### Parameters
442
+
443
+ |Name | Type | Description | Notes|
444
+ |------------- | ------------- | ------------- | -------------|
445
+ | **id** | [**string**] | | defaults to undefined|
446
+
447
+
448
+ ### Return type
449
+
450
+ **GetActualities200Response**
451
+
452
+ ### Authorization
453
+
454
+ No authorization required
455
+
456
+ ### HTTP request headers
457
+
458
+ - **Content-Type**: Not defined
459
+ - **Accept**: application/json
460
+
461
+
462
+ ### HTTP response details
463
+ | Status code | Description | Response headers |
464
+ |-------------|-------------|------------------|
465
+ |**200** | Actualités publiées | - |
466
+
467
+ [[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)
468
+
469
+ # **getSlotsByClubById**
470
+ > GetSlotsByClubById200Response getSlotsByClubById()
471
+
472
+
473
+ ### Example
474
+
475
+ ```typescript
476
+ import {
477
+ ClubsApi,
478
+ Configuration
479
+ } from '@tennac-booking/sdk';
480
+
481
+ const configuration = new Configuration();
482
+ const apiInstance = new ClubsApi(configuration);
483
+
484
+ let id: string; // (default to undefined)
485
+
486
+ const { status, data } = await apiInstance.getSlotsByClubById(
487
+ id
488
+ );
489
+ ```
490
+
491
+ ### Parameters
492
+
493
+ |Name | Type | Description | Notes|
494
+ |------------- | ------------- | ------------- | -------------|
495
+ | **id** | [**string**] | | defaults to undefined|
496
+
497
+
498
+ ### Return type
499
+
500
+ **GetSlotsByClubById200Response**
501
+
502
+ ### Authorization
503
+
504
+ No authorization required
505
+
506
+ ### HTTP request headers
507
+
508
+ - **Content-Type**: Not defined
509
+ - **Accept**: application/json
510
+
511
+
512
+ ### HTTP response details
513
+ | Status code | Description | Response headers |
514
+ |-------------|-------------|------------------|
515
+ |**200** | Slots du club | - |
516
+
517
+ [[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)
518
+
519
+ # **getSportsByClubById**
520
+ > GetSportsByClubById200Response getSportsByClubById()
521
+
522
+
523
+ ### Example
524
+
525
+ ```typescript
526
+ import {
527
+ ClubsApi,
528
+ Configuration
529
+ } from '@tennac-booking/sdk';
530
+
531
+ const configuration = new Configuration();
532
+ const apiInstance = new ClubsApi(configuration);
533
+
534
+ let id: string; // (default to undefined)
535
+
536
+ const { status, data } = await apiInstance.getSportsByClubById(
537
+ id
538
+ );
539
+ ```
540
+
541
+ ### Parameters
542
+
543
+ |Name | Type | Description | Notes|
544
+ |------------- | ------------- | ------------- | -------------|
545
+ | **id** | [**string**] | | defaults to undefined|
546
+
547
+
548
+ ### Return type
549
+
550
+ **GetSportsByClubById200Response**
551
+
552
+ ### Authorization
553
+
554
+ No authorization required
46
555
 
47
556
  ### HTTP request headers
48
557
 
@@ -53,9 +562,7 @@ const { status, data } = await apiInstance.getClubUsersById(
53
562
  ### HTTP response details
54
563
  | Status code | Description | Response headers |
55
564
  |-------------|-------------|------------------|
56
- |**200** | Liste des utilisateurs publics du club | - |
57
- |**400** | Requête invalide | - |
58
- |**500** | Erreur serveur interne | - |
565
+ |**200** | Liste des sports du club | - |
59
566
 
60
567
  [[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)
61
568