@tennac-booking/sdk 1.0.54 → 1.0.60

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 (235) hide show
  1. package/.openapi-generator/FILES +182 -220
  2. package/README.md +162 -167
  3. package/api.ts +7179 -7614
  4. package/base.ts +2 -2
  5. package/common.ts +2 -2
  6. package/configuration.ts +2 -2
  7. package/dist/api.d.ts +4662 -5750
  8. package/dist/api.js +3587 -2956
  9. package/dist/base.d.ts +2 -2
  10. package/dist/base.js +2 -2
  11. package/dist/common.d.ts +2 -2
  12. package/dist/common.js +2 -2
  13. package/dist/configuration.d.ts +2 -2
  14. package/dist/configuration.js +2 -2
  15. package/dist/esm/api.d.ts +4662 -5750
  16. package/dist/esm/api.js +3513 -2861
  17. package/dist/esm/base.d.ts +2 -2
  18. package/dist/esm/base.js +2 -2
  19. package/dist/esm/common.d.ts +2 -2
  20. package/dist/esm/common.js +2 -2
  21. package/dist/esm/configuration.d.ts +2 -2
  22. package/dist/esm/configuration.js +2 -2
  23. package/dist/esm/index.d.ts +2 -2
  24. package/dist/esm/index.js +2 -2
  25. package/dist/index.d.ts +2 -2
  26. package/dist/index.js +2 -2
  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/{FrequentPlayer.md → ClubMemberResponseUser.md} +10 -11
  52. package/docs/ClubPlayerResponse.md +36 -0
  53. package/docs/ClubResponse.md +23 -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/{ManagerClubCourtsApi.md → ClubSettingsManagerApi.md} +64 -63
  62. package/docs/ClubSettingsResponse.md +41 -0
  63. package/docs/{PublicClubUserFrequentlyVisitedClubsInner.md → ClubSummary.md} +10 -6
  64. package/docs/{AddFavoriteClubRequestBody.md → ClubUserCountResponse.md} +5 -5
  65. package/docs/ClubsApi.md +515 -8
  66. package/docs/ClubsManagerApi.md +1005 -0
  67. package/docs/{ManagerClubsApi.md → ClubsStaffApi.md} +138 -62
  68. package/docs/CourtInfo.md +28 -0
  69. package/docs/CourtResponse.md +16 -16
  70. package/docs/CourtStatus.md +2 -5
  71. package/docs/CreateBookingRequest.md +1 -3
  72. package/docs/CreateClubRequest.md +22 -0
  73. package/docs/CreateClubRoleRequest.md +24 -0
  74. package/docs/CreateClubSettingsRequest.md +34 -0
  75. package/docs/{ActiveClubListResponse.md → CreateCourtForClub201Response.md} +5 -5
  76. package/docs/CreateCourtRequest.md +10 -12
  77. package/docs/CreateEventRequest.md +1 -3
  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 +6 -4
  82. package/docs/CreatorChargeResult.md +26 -0
  83. package/docs/DailyTurnoverResponse.md +3 -3
  84. package/docs/{ManagerSportsApi.md → DefaultApi.md} +35 -38
  85. package/docs/{DeleteEvent200Response.md → DeleteClubResponse.md} +4 -4
  86. package/docs/{CourtDeleteResponse.md → DeleteClubRoleResponse.md} +4 -4
  87. package/docs/DeleteClubSettingsResponse.md +20 -0
  88. package/docs/{DeleteClubRole200Response.md → DeleteCourtResponse.md} +4 -4
  89. package/docs/{DeleteSport200Response.md → DeleteEventResponse.md} +4 -4
  90. package/docs/DeleteSlotsByClubInRange200Response.md +1 -1
  91. package/docs/DeleteSportResponse.md +20 -0
  92. package/docs/EventResponse.md +40 -0
  93. package/docs/EventResponseCourtsInner.md +18 -0
  94. package/docs/EventsApi.md +21 -21
  95. package/docs/{StaffEventResponse.md → EventsListResponse.md} +4 -4
  96. package/docs/{ManagerEventsApi.md → EventsManagerApi.md} +38 -40
  97. package/docs/{StaffEventsApi.md → EventsStaffApi.md} +11 -10
  98. package/docs/FavoriteClubsResponse.md +1 -1
  99. package/docs/FavoritePlayersResponse.md +1 -1
  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/{CourtsResponse.md → GetCourtsByClub200Response.md} +4 -6
  107. package/docs/GetCourtsByClubAndSportById200Response.md +26 -0
  108. package/docs/GetInfillPercentagePerPeriod200Response.md +5 -5
  109. package/docs/{SlotsResponse.md → GetSlotsByClubById200Response.md} +6 -6
  110. package/docs/GetSportsByClubById200Response.md +20 -0
  111. package/docs/{Court.md → ICourtData.md} +18 -6
  112. package/docs/{DiagnosticsResponse.md → InvoiceInfo.md} +8 -8
  113. package/docs/{ClubListResponse.md → LastSixMonthsTurnoverItem.md} +7 -7
  114. package/docs/ManagerCancelBookingRequest.md +1 -1
  115. package/docs/ManagerCancelBookingResponse.md +2 -2
  116. package/docs/MonthlyBreakdown.md +24 -0
  117. package/docs/MonthlyTurnoverResponse.md +6 -5
  118. package/docs/NoShowFeeResponse.md +6 -6
  119. package/docs/PartialClubResponse.md +49 -0
  120. package/docs/PaymentByPlayerInfo.md +22 -0
  121. package/docs/PaymentMethod.md +2 -1
  122. package/docs/PlayerPaymentInfo.md +36 -0
  123. package/docs/PlayerSummary.md +40 -0
  124. package/docs/PublicUserProfileResponse.md +44 -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/{StaffClubBookingsApi.md → SportsStaffApi.md} +14 -11
  133. package/docs/SubscriptionPlanResponse.md +4 -14
  134. package/docs/SurfaceType.md +12 -0
  135. package/docs/UpdateActuality200Response.md +20 -0
  136. package/docs/UpdateClubRequest.md +11 -11
  137. package/docs/UpdateClubRequestLocation.md +29 -0
  138. package/docs/{BookingPopulatedSlotIdCourtIdSportId.md → UpdateClubRequestLocationCoordinates.md} +7 -7
  139. package/docs/UpdateClubRoleRequest.md +22 -0
  140. package/docs/UpdateClubSettingsRequest.md +14 -10
  141. package/docs/UpdateSportRequest.md +1 -5
  142. package/docs/UpdateSubscriptionPlanForClub200Response.md +20 -0
  143. package/docs/{BookingPopulatedUserId.md → UserInfo.md} +6 -6
  144. package/docs/UserLocationSummary.md +44 -0
  145. package/docs/UserProfileResponse.md +2 -2
  146. package/docs/UsersApi.md +38 -133
  147. package/docs/YearlyTurnoverResponse.md +4 -4
  148. package/index.ts +2 -2
  149. package/package.json +1 -1
  150. package/docs/ActiveClub.md +0 -30
  151. package/docs/AddClubMemberResponse.md +0 -22
  152. package/docs/AddPaymentMethodSetupRequestBody.md +0 -20
  153. package/docs/AddPaymentMethodSetupResponse.md +0 -24
  154. package/docs/BlockSlotResponse.md +0 -22
  155. package/docs/Booking.md +0 -32
  156. package/docs/BookingHistoryResponse.md +0 -22
  157. package/docs/BookingHistoryResponseHistoryInner.md +0 -32
  158. package/docs/BookingPaymentStatusResponsePaymentStatusInner.md +0 -36
  159. package/docs/BookingPopulatedPaymentByPlayersStatusInner.md +0 -22
  160. package/docs/BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner.md +0 -24
  161. package/docs/BookingPopulatedSlotId.md +0 -26
  162. package/docs/BookingPopulatedSlotIdCourtId.md +0 -28
  163. package/docs/BookingsStaffWeeklyWeekIdGet200Response.md +0 -20
  164. package/docs/CancelBookingResponseBooking.md +0 -30
  165. package/docs/CheckInPlayersResponseCheckedInPlayersInner.md +0 -34
  166. package/docs/Club.md +0 -40
  167. package/docs/ClubInfoResponse.md +0 -48
  168. package/docs/ClubMember.md +0 -24
  169. package/docs/ClubRole.md +0 -30
  170. package/docs/ClubRolesResponse.md +0 -22
  171. package/docs/ClubSettings.md +0 -40
  172. package/docs/ClubStaffResponse.md +0 -48
  173. package/docs/ConfirmPaymentMethodSetupRequestBody.md +0 -20
  174. package/docs/ConfirmPaymentMethodSetupResponse.md +0 -22
  175. package/docs/CourtWithNameResponse.md +0 -48
  176. package/docs/CourtsWithNameResponse.md +0 -22
  177. package/docs/CreateClubRoleRequestBody.md +0 -24
  178. package/docs/CreatePriceRequest.md +0 -26
  179. package/docs/DiagnosticsApi.md +0 -97
  180. package/docs/Event.md +0 -40
  181. package/docs/EventBooking.md +0 -32
  182. package/docs/EventRegistrationRequest.md +0 -22
  183. package/docs/FrequentClub.md +0 -24
  184. package/docs/FrequentlyPlayedWithItem.md +0 -28
  185. package/docs/FrequentlyVisitedClubItem.md +0 -24
  186. package/docs/GetActiveClubs200Response.md +0 -20
  187. package/docs/GetClubInfos200Response.md +0 -30
  188. package/docs/GetCourtsByClubAndSport200Response.md +0 -26
  189. package/docs/GetLastSixMonthsTurnover200ResponseInner.md +0 -22
  190. package/docs/GetPublishedEventsByClubId200Response.md +0 -20
  191. package/docs/InvoicesResponse.md +0 -22
  192. package/docs/InvoicesResponseInvoicesInner.md +0 -34
  193. package/docs/InvoicesResponsePagination.md +0 -26
  194. package/docs/LevelBySportsItem.md +0 -22
  195. package/docs/ManagerCancelBookingResponseBooking.md +0 -30
  196. package/docs/ManagerClubRolesApi.md +0 -268
  197. package/docs/ManagerClubSlotsApi.md +0 -119
  198. package/docs/ManagerClubSubscriptionsApi.md +0 -387
  199. package/docs/ManagerEventResponse.md +0 -22
  200. package/docs/NoShowFeeResponseCaptureResultsInner.md +0 -30
  201. package/docs/NoShowFeeResponseCreatorChargeResult.md +0 -26
  202. package/docs/PaymentStatus.md +0 -30
  203. package/docs/PriceResponse.md +0 -32
  204. package/docs/PublicClubUser.md +0 -46
  205. package/docs/PublicClubUserFrequentlyPlayedWithInner.md +0 -28
  206. package/docs/PublicClubUserLevelBySportsInner.md +0 -22
  207. package/docs/RegisterForEvent201Response.md +0 -20
  208. package/docs/RestoreSubscriptionPlanForClub200Response.md +0 -20
  209. package/docs/SdkDiagnosticsResponse.md +0 -28
  210. package/docs/SdkDiagnosticsResponseOpenapi.md +0 -24
  211. package/docs/SdkDiagnosticsResponseSdk.md +0 -24
  212. package/docs/Slot.md +0 -24
  213. package/docs/SlotException.md +0 -26
  214. package/docs/SlotResponse.md +0 -34
  215. package/docs/StaffBookingsApi.md +0 -61
  216. package/docs/StaffClubAnalyticsApi.md +0 -254
  217. package/docs/StripeLink.md +0 -26
  218. package/docs/StripeStatus.md +0 -16
  219. package/docs/SubscriptionPlan.md +0 -36
  220. package/docs/SubscriptionResponse.md +0 -36
  221. package/docs/UpdateClubRoleRequestBody.md +0 -24
  222. package/docs/UpdateCourtRequest.md +0 -38
  223. package/docs/UpdateProfilePictureRequestBody.md +0 -20
  224. package/docs/UpdateSubscriptionPlanRequest.md +0 -24
  225. package/docs/UpdateSubscriptionPlanResponse.md +0 -22
  226. package/docs/UpdateUserCityRequestBody.md +0 -20
  227. package/docs/UpdateUserDescriptionRequestBody.md +0 -20
  228. package/docs/UserBookingItem.md +0 -46
  229. package/docs/UserClubCourtsApi.md +0 -64
  230. package/docs/UserClubSlotsApi.md +0 -181
  231. package/docs/UserClubSportsApi.md +0 -60
  232. package/docs/UserClubsApi.md +0 -145
  233. package/docs/UserInfoStaff.md +0 -38
  234. package/docs/UserStaffResponse.md +0 -40
  235. package/docs/YearlyTurnoverResponseMonthlyBreakdownInner.md +0 -24
@@ -1,24 +0,0 @@
1
- # UpdateSubscriptionPlanRequest
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **name** | **string** | Nouveau nom du plan d\'abonnement | [optional] [default to undefined]
9
- **description** | **string** | Nouvelle description du plan d\'abonnement | [optional] [default to undefined]
10
- **metadata** | **object** | Nouvelles métadonnées pour le plan | [optional] [default to undefined]
11
-
12
- ## Example
13
-
14
- ```typescript
15
- import { UpdateSubscriptionPlanRequest } from '@tennac-booking/sdk';
16
-
17
- const instance: UpdateSubscriptionPlanRequest = {
18
- name,
19
- description,
20
- metadata,
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)
@@ -1,22 +0,0 @@
1
- # UpdateSubscriptionPlanResponse
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **message** | **string** | Message de confirmation | [optional] [default to undefined]
9
- **plan** | [**SubscriptionPlan**](SubscriptionPlan.md) | | [optional] [default to undefined]
10
-
11
- ## Example
12
-
13
- ```typescript
14
- import { UpdateSubscriptionPlanResponse } from '@tennac-booking/sdk';
15
-
16
- const instance: UpdateSubscriptionPlanResponse = {
17
- message,
18
- plan,
19
- };
20
- ```
21
-
22
- [[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,20 +0,0 @@
1
- # UpdateUserCityRequestBody
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **city** | **string** | Nouvelle ville de l\'utilisateur | [default to undefined]
9
-
10
- ## Example
11
-
12
- ```typescript
13
- import { UpdateUserCityRequestBody } from '@tennac-booking/sdk';
14
-
15
- const instance: UpdateUserCityRequestBody = {
16
- city,
17
- };
18
- ```
19
-
20
- [[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,20 +0,0 @@
1
- # UpdateUserDescriptionRequestBody
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **description** | **string** | Nouvelle description de l\'utilisateur | [default to undefined]
9
-
10
- ## Example
11
-
12
- ```typescript
13
- import { UpdateUserDescriptionRequestBody } from '@tennac-booking/sdk';
14
-
15
- const instance: UpdateUserDescriptionRequestBody = {
16
- description,
17
- };
18
- ```
19
-
20
- [[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,46 +0,0 @@
1
- # UserBookingItem
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **id** | **string** | ID de la réservation | [optional] [default to undefined]
9
- **clubPicture** | **string** | URL de l\'image du club | [optional] [default to undefined]
10
- **courtName** | **string** | Nom du terrain | [optional] [default to undefined]
11
- **sportName** | **string** | Nom du sport | [optional] [default to undefined]
12
- **startDate** | **string** | Date de début de la réservation | [optional] [default to undefined]
13
- **myPaymentStatus** | **string** | Statut de paiement de l\'utilisateur | [optional] [default to undefined]
14
- **bookingStatus** | **string** | Statut de la réservation | [optional] [default to undefined]
15
- **playersName** | **Array<string>** | Liste des noms des joueurs | [optional] [default to undefined]
16
- **myAmountToPay** | **number** | Montant que l\'utilisateur doit payer | [optional] [default to undefined]
17
- **totalAmount** | **number** | Montant total de la réservation | [optional] [default to undefined]
18
- **timeBeforeCancel** | **string** | Date limite avant annulation | [optional] [default to undefined]
19
- **clubAddress** | **string** | Adresse du club | [optional] [default to undefined]
20
- **bookingHistory** | **string** | Historique de la réservation | [optional] [default to undefined]
21
- **paymentStatus** | [**Array<PaymentStatus>**](PaymentStatus.md) | Statut de paiement pour chaque joueur | [optional] [default to undefined]
22
-
23
- ## Example
24
-
25
- ```typescript
26
- import { UserBookingItem } from '@tennac-booking/sdk';
27
-
28
- const instance: UserBookingItem = {
29
- id,
30
- clubPicture,
31
- courtName,
32
- sportName,
33
- startDate,
34
- myPaymentStatus,
35
- bookingStatus,
36
- playersName,
37
- myAmountToPay,
38
- totalAmount,
39
- timeBeforeCancel,
40
- clubAddress,
41
- bookingHistory,
42
- paymentStatus,
43
- };
44
- ```
45
-
46
- [[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,64 +0,0 @@
1
- # UserClubCourtsApi
2
-
3
- All URIs are relative to *http://localhost*
4
-
5
- |Method | HTTP request | Description|
6
- |------------- | ------------- | -------------|
7
- |[**getCourtsByClubAndSport**](#getcourtsbyclubandsport) | **GET** /api/clubs/{id}/sports/{sportId}/courts | Récupérer les terrains d\'un club pour un sport spécifique|
8
-
9
- # **getCourtsByClubAndSport**
10
- > GetCourtsByClubAndSport200Response getCourtsByClubAndSport()
11
-
12
-
13
- ### Example
14
-
15
- ```typescript
16
- import {
17
- UserClubCourtsApi,
18
- Configuration
19
- } from '@tennac-booking/sdk';
20
-
21
- const configuration = new Configuration();
22
- const apiInstance = new UserClubCourtsApi(configuration);
23
-
24
- let id: string; //ID du club (default to undefined)
25
- let sportId: string; //ID du sport (default to undefined)
26
-
27
- const { status, data } = await apiInstance.getCourtsByClubAndSport(
28
- id,
29
- sportId
30
- );
31
- ```
32
-
33
- ### Parameters
34
-
35
- |Name | Type | Description | Notes|
36
- |------------- | ------------- | ------------- | -------------|
37
- | **id** | [**string**] | ID du club | defaults to undefined|
38
- | **sportId** | [**string**] | ID du sport | defaults to undefined|
39
-
40
-
41
- ### Return type
42
-
43
- **GetCourtsByClubAndSport200Response**
44
-
45
- ### Authorization
46
-
47
- [bearerAuth](../README.md#bearerAuth)
48
-
49
- ### HTTP request headers
50
-
51
- - **Content-Type**: Not defined
52
- - **Accept**: application/json
53
-
54
-
55
- ### HTTP response details
56
- | Status code | Description | Response headers |
57
- |-------------|-------------|------------------|
58
- |**200** | Liste des terrains du club pour le sport spécifié | - |
59
- |**400** | Requête invalide | - |
60
- |**404** | Ressource non trouvée | - |
61
- |**500** | Erreur serveur interne | - |
62
-
63
- [[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)
64
-
@@ -1,181 +0,0 @@
1
- # UserClubSlotsApi
2
-
3
- All URIs are relative to *http://localhost*
4
-
5
- |Method | HTTP request | Description|
6
- |------------- | ------------- | -------------|
7
- |[**getAvailableSlotsByClub**](#getavailableslotsbyclub) | **GET** /api/clubs/{clubID}/availableSlots | Obtenir tous les créneaux disponibles pour un club|
8
- |[**getAvailableSlotsBySports**](#getavailableslotsbysports) | **GET** /api/clubs/{id}/sports/{sportId}/slots | Obtenir tous les slots disponibles pour un sport dans un club|
9
- |[**getAvailableSlotsBySportsAndDay**](#getavailableslotsbysportsandday) | **GET** /api/clubs/{id}/sports/{sportId}/slots/{day} | Obtenir les slots disponibles pour un jour donné|
10
-
11
- # **getAvailableSlotsByClub**
12
- > SlotsResponse getAvailableSlotsByClub()
13
-
14
-
15
- ### Example
16
-
17
- ```typescript
18
- import {
19
- UserClubSlotsApi,
20
- Configuration
21
- } from '@tennac-booking/sdk';
22
-
23
- const configuration = new Configuration();
24
- const apiInstance = new UserClubSlotsApi(configuration);
25
-
26
- let clubID: string; //ID du club (default to undefined)
27
-
28
- const { status, data } = await apiInstance.getAvailableSlotsByClub(
29
- clubID
30
- );
31
- ```
32
-
33
- ### Parameters
34
-
35
- |Name | Type | Description | Notes|
36
- |------------- | ------------- | ------------- | -------------|
37
- | **clubID** | [**string**] | ID du club | defaults to undefined|
38
-
39
-
40
- ### Return type
41
-
42
- **SlotsResponse**
43
-
44
- ### Authorization
45
-
46
- [bearerAuth](../README.md#bearerAuth)
47
-
48
- ### HTTP request headers
49
-
50
- - **Content-Type**: Not defined
51
- - **Accept**: application/json
52
-
53
-
54
- ### HTTP response details
55
- | Status code | Description | Response headers |
56
- |-------------|-------------|------------------|
57
- |**200** | Liste des créneaux disponibles pour le club | - |
58
- |**400** | Requête invalide | - |
59
- |**500** | Erreur serveur interne | - |
60
-
61
- [[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)
62
-
63
- # **getAvailableSlotsBySports**
64
- > SlotsResponse getAvailableSlotsBySports()
65
-
66
-
67
- ### Example
68
-
69
- ```typescript
70
- import {
71
- UserClubSlotsApi,
72
- Configuration
73
- } from '@tennac-booking/sdk';
74
-
75
- const configuration = new Configuration();
76
- const apiInstance = new UserClubSlotsApi(configuration);
77
-
78
- let id: string; //ID du club (default to undefined)
79
- let sportId: string; //ID du sport (default to undefined)
80
- let start: string; //Date de début (format ISO) (optional) (default to undefined)
81
- let end: string; //Date de fin (format ISO) (optional) (default to undefined)
82
-
83
- const { status, data } = await apiInstance.getAvailableSlotsBySports(
84
- id,
85
- sportId,
86
- start,
87
- end
88
- );
89
- ```
90
-
91
- ### Parameters
92
-
93
- |Name | Type | Description | Notes|
94
- |------------- | ------------- | ------------- | -------------|
95
- | **id** | [**string**] | ID du club | defaults to undefined|
96
- | **sportId** | [**string**] | ID du sport | defaults to undefined|
97
- | **start** | [**string**] | Date de début (format ISO) | (optional) defaults to undefined|
98
- | **end** | [**string**] | Date de fin (format ISO) | (optional) defaults to undefined|
99
-
100
-
101
- ### Return type
102
-
103
- **SlotsResponse**
104
-
105
- ### Authorization
106
-
107
- [bearerAuth](../README.md#bearerAuth)
108
-
109
- ### HTTP request headers
110
-
111
- - **Content-Type**: Not defined
112
- - **Accept**: application/json
113
-
114
-
115
- ### HTTP response details
116
- | Status code | Description | Response headers |
117
- |-------------|-------------|------------------|
118
- |**200** | Liste des créneaux disponibles | - |
119
- |**400** | Requête invalide | - |
120
- |**500** | Erreur serveur interne | - |
121
-
122
- [[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)
123
-
124
- # **getAvailableSlotsBySportsAndDay**
125
- > SlotsResponse getAvailableSlotsBySportsAndDay()
126
-
127
-
128
- ### Example
129
-
130
- ```typescript
131
- import {
132
- UserClubSlotsApi,
133
- Configuration
134
- } from '@tennac-booking/sdk';
135
-
136
- const configuration = new Configuration();
137
- const apiInstance = new UserClubSlotsApi(configuration);
138
-
139
- let id: string; //ID du club (default to undefined)
140
- let sportId: string; //ID du sport (default to undefined)
141
- let day: string; //Date du jour (format YYYY-MM-DD) (default to undefined)
142
-
143
- const { status, data } = await apiInstance.getAvailableSlotsBySportsAndDay(
144
- id,
145
- sportId,
146
- day
147
- );
148
- ```
149
-
150
- ### Parameters
151
-
152
- |Name | Type | Description | Notes|
153
- |------------- | ------------- | ------------- | -------------|
154
- | **id** | [**string**] | ID du club | defaults to undefined|
155
- | **sportId** | [**string**] | ID du sport | defaults to undefined|
156
- | **day** | [**string**] | Date du jour (format YYYY-MM-DD) | defaults to undefined|
157
-
158
-
159
- ### Return type
160
-
161
- **SlotsResponse**
162
-
163
- ### Authorization
164
-
165
- [bearerAuth](../README.md#bearerAuth)
166
-
167
- ### HTTP request headers
168
-
169
- - **Content-Type**: Not defined
170
- - **Accept**: application/json
171
-
172
-
173
- ### HTTP response details
174
- | Status code | Description | Response headers |
175
- |-------------|-------------|------------------|
176
- |**200** | Liste des créneaux disponibles pour le jour donné | - |
177
- |**400** | Requête invalide | - |
178
- |**500** | Erreur serveur interne | - |
179
-
180
- [[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)
181
-
@@ -1,60 +0,0 @@
1
- # UserClubSportsApi
2
-
3
- All URIs are relative to *http://localhost*
4
-
5
- |Method | HTTP request | Description|
6
- |------------- | ------------- | -------------|
7
- |[**getSportsByClub**](#getsportsbyclub) | **GET** /api/clubs/{id}/sports | Récupérer tous les sports pour un club|
8
-
9
- # **getSportsByClub**
10
- > Array<Sport> getSportsByClub()
11
-
12
-
13
- ### Example
14
-
15
- ```typescript
16
- import {
17
- UserClubSportsApi,
18
- Configuration
19
- } from '@tennac-booking/sdk';
20
-
21
- const configuration = new Configuration();
22
- const apiInstance = new UserClubSportsApi(configuration);
23
-
24
- let id: string; //ID du club (default to undefined)
25
-
26
- const { status, data } = await apiInstance.getSportsByClub(
27
- id
28
- );
29
- ```
30
-
31
- ### Parameters
32
-
33
- |Name | Type | Description | Notes|
34
- |------------- | ------------- | ------------- | -------------|
35
- | **id** | [**string**] | ID du club | defaults to undefined|
36
-
37
-
38
- ### Return type
39
-
40
- **Array<Sport>**
41
-
42
- ### Authorization
43
-
44
- [bearerAuth](../README.md#bearerAuth)
45
-
46
- ### HTTP request headers
47
-
48
- - **Content-Type**: Not defined
49
- - **Accept**: application/json
50
-
51
-
52
- ### HTTP response details
53
- | Status code | Description | Response headers |
54
- |-------------|-------------|------------------|
55
- |**200** | Liste des sports du club | - |
56
- |**400** | Requête invalide | - |
57
- |**500** | Erreur serveur interne | - |
58
-
59
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
60
-
@@ -1,145 +0,0 @@
1
- # UserClubsApi
2
-
3
- All URIs are relative to *http://localhost*
4
-
5
- |Method | HTTP request | Description|
6
- |------------- | ------------- | -------------|
7
- |[**getActiveClubs**](#getactiveclubs) | **GET** /api/clubs/activeClubs | Obtenir la liste des clubs actifs (seulement id et nom)|
8
- |[**getMostLikedClub**](#getmostlikedclub) | **GET** /api/analytics/most-liked | Retrieve the list of most visited clubs (max 10)|
9
- |[**getPopularClubs**](#getpopularclubs) | **GET** /api/analytics/popular | Retrieve the list of most liked clubs (max 10)|
10
-
11
- # **getActiveClubs**
12
- > GetActiveClubs200Response getActiveClubs()
13
-
14
- Retourne une liste des clubs dont la propriété `isActive` est `true`. Chaque club contient uniquement son `id` et son `name`.
15
-
16
- ### Example
17
-
18
- ```typescript
19
- import {
20
- UserClubsApi,
21
- Configuration
22
- } from '@tennac-booking/sdk';
23
-
24
- const configuration = new Configuration();
25
- const apiInstance = new UserClubsApi(configuration);
26
-
27
- const { status, data } = await apiInstance.getActiveClubs();
28
- ```
29
-
30
- ### Parameters
31
- This endpoint does not have any parameters.
32
-
33
-
34
- ### Return type
35
-
36
- **GetActiveClubs200Response**
37
-
38
- ### Authorization
39
-
40
- [bearerAuth](../README.md#bearerAuth)
41
-
42
- ### HTTP request headers
43
-
44
- - **Content-Type**: Not defined
45
- - **Accept**: application/json
46
-
47
-
48
- ### HTTP response details
49
- | Status code | Description | Response headers |
50
- |-------------|-------------|------------------|
51
- |**200** | Liste des clubs actifs | - |
52
- |**500** | Erreur serveur interne | - |
53
-
54
- [[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)
55
-
56
- # **getMostLikedClub**
57
- > Array<ClubResponse> getMostLikedClub()
58
-
59
-
60
- ### Example
61
-
62
- ```typescript
63
- import {
64
- UserClubsApi,
65
- Configuration
66
- } from '@tennac-booking/sdk';
67
-
68
- const configuration = new Configuration();
69
- const apiInstance = new UserClubsApi(configuration);
70
-
71
- const { status, data } = await apiInstance.getMostLikedClub();
72
- ```
73
-
74
- ### Parameters
75
- This endpoint does not have any parameters.
76
-
77
-
78
- ### Return type
79
-
80
- **Array<ClubResponse>**
81
-
82
- ### Authorization
83
-
84
- [bearerAuth](../README.md#bearerAuth)
85
-
86
- ### HTTP request headers
87
-
88
- - **Content-Type**: Not defined
89
- - **Accept**: application/json
90
-
91
-
92
- ### HTTP response details
93
- | Status code | Description | Response headers |
94
- |-------------|-------------|------------------|
95
- |**200** | List of popular clubs | - |
96
- |**401** | Non autorisé | - |
97
- |**500** | Erreur serveur interne | - |
98
-
99
- [[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)
100
-
101
- # **getPopularClubs**
102
- > Array<ClubResponse> getPopularClubs()
103
-
104
-
105
- ### Example
106
-
107
- ```typescript
108
- import {
109
- UserClubsApi,
110
- Configuration
111
- } from '@tennac-booking/sdk';
112
-
113
- const configuration = new Configuration();
114
- const apiInstance = new UserClubsApi(configuration);
115
-
116
- const { status, data } = await apiInstance.getPopularClubs();
117
- ```
118
-
119
- ### Parameters
120
- This endpoint does not have any parameters.
121
-
122
-
123
- ### Return type
124
-
125
- **Array<ClubResponse>**
126
-
127
- ### Authorization
128
-
129
- [bearerAuth](../README.md#bearerAuth)
130
-
131
- ### HTTP request headers
132
-
133
- - **Content-Type**: Not defined
134
- - **Accept**: application/json
135
-
136
-
137
- ### HTTP response details
138
- | Status code | Description | Response headers |
139
- |-------------|-------------|------------------|
140
- |**200** | List of popular clubs | - |
141
- |**401** | Non autorisé | - |
142
- |**500** | Erreur serveur interne | - |
143
-
144
- [[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)
145
-
@@ -1,38 +0,0 @@
1
- # UserInfoStaff
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **id** | **string** | | [optional] [default to undefined]
9
- **username** | **string** | | [optional] [default to undefined]
10
- **firstName** | **string** | | [optional] [default to undefined]
11
- **lastName** | **string** | | [optional] [default to undefined]
12
- **email** | **string** | | [optional] [default to undefined]
13
- **isAccountVerified** | **boolean** | | [optional] [default to undefined]
14
- **levelBySports** | [**Array&lt;PublicClubUserLevelBySportsInner&gt;**](PublicClubUserLevelBySportsInner.md) | | [optional] [default to undefined]
15
- **location** | [**Location**](Location.md) | | [optional] [default to undefined]
16
- **phone** | **string** | | [optional] [default to undefined]
17
- **profilePicture** | **string** | | [optional] [default to undefined]
18
-
19
- ## Example
20
-
21
- ```typescript
22
- import { UserInfoStaff } from '@tennac-booking/sdk';
23
-
24
- const instance: UserInfoStaff = {
25
- id,
26
- username,
27
- firstName,
28
- lastName,
29
- email,
30
- isAccountVerified,
31
- levelBySports,
32
- location,
33
- phone,
34
- profilePicture,
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)
@@ -1,40 +0,0 @@
1
- # UserStaffResponse
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **id** | **string** | | [optional] [default to undefined]
9
- **firstName** | **string** | | [optional] [default to undefined]
10
- **lastName** | **string** | | [optional] [default to undefined]
11
- **gender** | **string** | | [optional] [default to undefined]
12
- **email** | **string** | | [optional] [default to undefined]
13
- **profilePicture** | **string** | | [optional] [default to undefined]
14
- **isSubscribedToMyClub** | **boolean** | | [optional] [default to undefined]
15
- **creditOnMyClub** | **number** | | [optional] [default to undefined]
16
- **isAccountVerified** | **boolean** | | [optional] [default to undefined]
17
- **isProfileVisible** | **boolean** | | [optional] [default to undefined]
18
- **isSubscribedToClub** | **boolean** | | [optional] [default to undefined]
19
-
20
- ## Example
21
-
22
- ```typescript
23
- import { UserStaffResponse } from '@tennac-booking/sdk';
24
-
25
- const instance: UserStaffResponse = {
26
- id,
27
- firstName,
28
- lastName,
29
- gender,
30
- email,
31
- profilePicture,
32
- isSubscribedToMyClub,
33
- creditOnMyClub,
34
- isAccountVerified,
35
- isProfileVisible,
36
- isSubscribedToClub,
37
- };
38
- ```
39
-
40
- [[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,24 +0,0 @@
1
- # YearlyTurnoverResponseMonthlyBreakdownInner
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **month** | **number** | | [optional] [default to undefined]
9
- **monthlyTurnover** | **number** | | [optional] [default to undefined]
10
- **invoiceCount** | **number** | | [optional] [default to undefined]
11
-
12
- ## Example
13
-
14
- ```typescript
15
- import { YearlyTurnoverResponseMonthlyBreakdownInner } from '@tennac-booking/sdk';
16
-
17
- const instance: YearlyTurnoverResponseMonthlyBreakdownInner = {
18
- month,
19
- monthlyTurnover,
20
- invoiceCount,
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)