@tennac-booking/sdk 1.0.115 → 1.0.116

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 (177) hide show
  1. package/.openapi-generator/FILES +305 -300
  2. package/README.md +10 -2
  3. package/api.ts +352 -21
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +273 -21
  8. package/dist/api.js +155 -25
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +273 -21
  16. package/dist/esm/api.js +151 -21
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/ActiveClub.md +24 -0
  28. package/docs/ActiveClubListResponse.md +20 -0
  29. package/docs/AddClubMemberResponse.md +22 -0
  30. package/docs/AddFavoriteClubRequestBody.md +20 -0
  31. package/docs/AddFavoritePlayerRequestBody.md +20 -0
  32. package/docs/AddPaymentMethodSetupRequestBody.md +20 -0
  33. package/docs/AddPaymentMethodSetupResponse.md +24 -0
  34. package/docs/AdminClubAnalyticsApi.md +249 -0
  35. package/docs/AdminClubSlotsApi.md +182 -0
  36. package/docs/AdminClubSubscriptionsApi.md +394 -0
  37. package/docs/AdminClubsApi.md +170 -0
  38. package/docs/ApiErrorResponse.md +22 -0
  39. package/docs/BlockSlotResponse.md +22 -0
  40. package/docs/Booking.md +32 -0
  41. package/docs/BookingPaymentStatusResponsePaymentStatusInner.md +36 -0
  42. package/docs/BookingPopulatedPaymentByPlayersStatusInner.md +22 -0
  43. package/docs/BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner.md +24 -0
  44. package/docs/BookingPopulatedSlotId.md +26 -0
  45. package/docs/BookingPopulatedSlotIdCourtId.md +22 -0
  46. package/docs/BookingPopulatedUserId.md +24 -0
  47. package/docs/BookingsUserApi.md +1 -1
  48. package/docs/CancelBookingResponseBooking.md +30 -0
  49. package/docs/CheckInPlayersResponseCheckedInPlayersInner.md +34 -0
  50. package/docs/ClientApi.md +49 -2
  51. package/docs/ClientFullOnboardingResponseClub.md +2 -0
  52. package/docs/ClientOnboardingRequestBody.md +2 -0
  53. package/docs/ClientSubscription.md +31 -0
  54. package/docs/ClientSubscriptionItem.md +25 -0
  55. package/docs/ClientSubscriptionsResponse.md +21 -0
  56. package/docs/Club.md +46 -0
  57. package/docs/ClubInfoResponse.md +48 -0
  58. package/docs/ClubListResponse.md +22 -0
  59. package/docs/ClubMember.md +34 -0
  60. package/docs/ClubMembersResponse.md +22 -0
  61. package/docs/ClubRole.md +30 -0
  62. package/docs/ClubRolesResponse.md +22 -0
  63. package/docs/ClubSettings.md +40 -0
  64. package/docs/ClubsApi.md +2 -2
  65. package/docs/ClubsResponse.md +22 -0
  66. package/docs/ConfirmPaymentMethodSetupRequestBody.md +20 -0
  67. package/docs/ConfirmPaymentMethodSetupResponse.md +22 -0
  68. package/docs/Court.md +32 -0
  69. package/docs/CourtsResponse.md +22 -0
  70. package/docs/CreateClubRoleRequestBody.md +24 -0
  71. package/docs/CreateClubSettingsRequest.md +28 -0
  72. package/docs/CreatePriceRequest.md +26 -0
  73. package/docs/DeleteClub200Response.md +20 -0
  74. package/docs/DeleteClubRole200Response.md +20 -0
  75. package/docs/DeleteClubSettingsRequest.md +20 -0
  76. package/docs/DeleteEvent200Response.md +20 -0
  77. package/docs/DeleteSlotsByClubInRange200Response.md +20 -0
  78. package/docs/DeleteSlotsResponse.md +20 -0
  79. package/docs/DeleteSport200Response.md +20 -0
  80. package/docs/EstimateEventPrice200Response.md +26 -0
  81. package/docs/EstimateEventPriceRequest.md +22 -0
  82. package/docs/EstimateEventPriceRequestSharesInner.md +22 -0
  83. package/docs/Event.md +40 -0
  84. package/docs/EventBooking.md +32 -0
  85. package/docs/EventRegistrationRequest.md +22 -0
  86. package/docs/EventsApi.md +58 -0
  87. package/docs/FavoriteClubItem.md +26 -0
  88. package/docs/FavoriteClubResponse.md +22 -0
  89. package/docs/FavoritePlayerPublic.md +28 -0
  90. package/docs/FavoritePlayersIdsResponse.md +22 -0
  91. package/docs/FrequentlyPlayedWithItem.md +28 -0
  92. package/docs/FrequentlyVisitedClubItem.md +24 -0
  93. package/docs/GenerateSlotsResponse.md +20 -0
  94. package/docs/GetActiveClubs200Response.md +20 -0
  95. package/docs/GetClubInfos200Response.md +30 -0
  96. package/docs/GetCourtsByClubAndSport200Response.md +26 -0
  97. package/docs/GetLastSixMonthsTurnover200ResponseInner.md +22 -0
  98. package/docs/GetNumberOfClubUsers200Response.md +20 -0
  99. package/docs/GetPublishedEventsByClubId200Response.md +20 -0
  100. package/docs/GetUserRolesResponse.md +20 -0
  101. package/docs/GetUserRolesResponseRolesInner.md +26 -0
  102. package/docs/GetUserSubscriptionsResponse.md +22 -0
  103. package/docs/GoogleSignInRequestBody.md +20 -0
  104. package/docs/GoogleSignInResponse.md +24 -0
  105. package/docs/InitiateSubscriptionSessionRequestBody.md +26 -0
  106. package/docs/InitiateSubscriptionSessionResponse.md +22 -0
  107. package/docs/InvoicesResponse.md +22 -0
  108. package/docs/InvoicesResponseInvoicesInner.md +34 -0
  109. package/docs/InvoicesResponsePagination.md +26 -0
  110. package/docs/JoinEventRequestPlayersPaymentMethodsInner.md +2 -0
  111. package/docs/LevelBySportsItem.md +22 -0
  112. package/docs/ManagerBookingsApi.md +125 -0
  113. package/docs/ManagerCancelBookingResponseBooking.md +30 -0
  114. package/docs/ManagerClubCourtsApi.md +108 -0
  115. package/docs/ManagerClubRolesApi.md +268 -0
  116. package/docs/ManagerClubSlotsApi.md +119 -0
  117. package/docs/ManagerClubSubscriptionsApi.md +387 -0
  118. package/docs/ManagerClubsApi.md +253 -0
  119. package/docs/ManagerEventResponse.md +22 -0
  120. package/docs/ManagerEventsApi.md +227 -0
  121. package/docs/ManagerSportsApi.md +174 -0
  122. package/docs/NoShowFeeResponseCaptureResultsInner.md +30 -0
  123. package/docs/NoShowFeeResponseCreatorChargeResult.md +26 -0
  124. package/docs/PriceResponse.md +32 -0
  125. package/docs/ProfileVisibilityResponse.md +20 -0
  126. package/docs/PublicClubUser.md +46 -0
  127. package/docs/PublicClubUserFrequentlyPlayedWithInner.md +28 -0
  128. package/docs/PublicClubUserFrequentlyVisitedClubsInner.md +24 -0
  129. package/docs/PublicClubUserLevelBySportsInner.md +22 -0
  130. package/docs/RegisterForEvent201Response.md +20 -0
  131. package/docs/RestoreSubscriptionPlanForClub200Response.md +20 -0
  132. package/docs/SetupPaymentMethodRequestBody.md +20 -0
  133. package/docs/SetupPaymentMethodResponse.md +24 -0
  134. package/docs/Slot.md +24 -0
  135. package/docs/SlotException.md +26 -0
  136. package/docs/SlotResponse.md +34 -0
  137. package/docs/SlotsResponse.md +22 -0
  138. package/docs/Sport.md +24 -0
  139. package/docs/SportsResponse.md +22 -0
  140. package/docs/StaffClubAnalyticsApi.md +104 -0
  141. package/docs/StaffClubBookingsApi.md +52 -0
  142. package/docs/StaffClubsApi.md +100 -0
  143. package/docs/StaffEventResponse.md +20 -0
  144. package/docs/StaffEventsApi.md +54 -0
  145. package/docs/StaffProfileApi.md +54 -0
  146. package/docs/StripeStatus.md +16 -0
  147. package/docs/SubscribeToClubRequestBody.md +22 -0
  148. package/docs/SubscriptionPlan.md +36 -0
  149. package/docs/SubscriptionResponse.md +36 -0
  150. package/docs/UpdateClubRoleRequestBody.md +24 -0
  151. package/docs/UpdateClubSettingsRequest.md +28 -0
  152. package/docs/UpdateCustomerRequestBodyAddress.md +30 -0
  153. package/docs/UpdateCustomerResponseCustomer.md +28 -0
  154. package/docs/UpdateProfilePictureRequestBody.md +20 -0
  155. package/docs/UpdateProfileVisibilityRequestBody.md +20 -0
  156. package/docs/UpdateSubscriptionPlanRequest.md +24 -0
  157. package/docs/UpdateSubscriptionPlanResponse.md +22 -0
  158. package/docs/UpdateUserCityRequestBody.md +20 -0
  159. package/docs/UpdateUserDescriptionRequestBody.md +20 -0
  160. package/docs/User.md +40 -0
  161. package/docs/UserAuthenticationApi.md +226 -0
  162. package/docs/UserBookingsApi.md +120 -0
  163. package/docs/UserCityResponse.md +20 -0
  164. package/docs/UserClubCourtsApi.md +64 -0
  165. package/docs/UserClubSlotsApi.md +181 -0
  166. package/docs/UserClubSportsApi.md +60 -0
  167. package/docs/UserClubsApi.md +53 -0
  168. package/docs/UserDescriptionResponse.md +20 -0
  169. package/docs/UserFavoriteClubsResponse.md +20 -0
  170. package/docs/UserPaymentApi.md +176 -0
  171. package/docs/UserProfileApi.md +1201 -0
  172. package/docs/UserResponse.md +38 -0
  173. package/docs/UserSubscriptionsApi.md +222 -0
  174. package/docs/UsersResponse.md +22 -0
  175. package/docs/YearlyTurnoverResponseMonthlyBreakdownInner.md +24 -0
  176. package/index.ts +1 -1
  177. package/package.json +1 -1
@@ -0,0 +1,24 @@
1
+ # SetupPaymentMethodResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **setupIntentId** | **string** | ID du Setup Intent Stripe | [optional] [default to undefined]
9
+ **clientSecret** | **string** | Client secret pour la configuration côté client | [optional] [default to undefined]
10
+ **message** | **string** | Message de confirmation | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { SetupPaymentMethodResponse } from '@tennac-booking/sdk';
16
+
17
+ const instance: SetupPaymentMethodResponse = {
18
+ setupIntentId,
19
+ clientSecret,
20
+ message,
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)
package/docs/Slot.md ADDED
@@ -0,0 +1,24 @@
1
+ # Slot
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **startDate** | **string** | | [default to undefined]
9
+ **endDate** | **string** | | [default to undefined]
10
+ **courtId** | **string** | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { Slot } from '@tennac-booking/sdk';
16
+
17
+ const instance: Slot = {
18
+ startDate,
19
+ endDate,
20
+ courtId,
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
+ # SlotException
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **startDate** | **string** | | [default to undefined]
9
+ **endDate** | **string** | | [default to undefined]
10
+ **courtId** | **string** | | [default to undefined]
11
+ **reason** | **string** | | [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { SlotException } from '@tennac-booking/sdk';
17
+
18
+ const instance: SlotException = {
19
+ startDate,
20
+ endDate,
21
+ courtId,
22
+ reason,
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)
@@ -0,0 +1,34 @@
1
+ # SlotResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [optional] [default to undefined]
9
+ **startDate** | **string** | | [optional] [default to undefined]
10
+ **endDate** | **string** | | [optional] [default to undefined]
11
+ **courtId** | **string** | | [optional] [default to undefined]
12
+ **price** | **number** | | [optional] [default to undefined]
13
+ **isOpen** | **boolean** | | [optional] [default to undefined]
14
+ **createdAt** | **string** | | [optional] [default to undefined]
15
+ **updatedAt** | **string** | | [optional] [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { SlotResponse } from '@tennac-booking/sdk';
21
+
22
+ const instance: SlotResponse = {
23
+ id,
24
+ startDate,
25
+ endDate,
26
+ courtId,
27
+ price,
28
+ isOpen,
29
+ createdAt,
30
+ updatedAt,
31
+ };
32
+ ```
33
+
34
+ [[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,22 @@
1
+ # SlotsResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **slots** | [**Array<SlotResponse>**](SlotResponse.md) | | [optional] [default to undefined]
9
+ **total** | **number** | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { SlotsResponse } from '@tennac-booking/sdk';
15
+
16
+ const instance: SlotsResponse = {
17
+ slots,
18
+ total,
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)
package/docs/Sport.md ADDED
@@ -0,0 +1,24 @@
1
+ # Sport
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **_id** | **string** | | [optional] [default to undefined]
9
+ **key** | **string** | | [optional] [default to undefined]
10
+ **clubId** | **string** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { Sport } from '@tennac-booking/sdk';
16
+
17
+ const instance: Sport = {
18
+ _id,
19
+ key,
20
+ clubId,
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,22 @@
1
+ # SportsResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **sports** | [**Array<SportResponse>**](SportResponse.md) | | [optional] [default to undefined]
9
+ **total** | **number** | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { SportsResponse } from '@tennac-booking/sdk';
15
+
16
+ const instance: SportsResponse = {
17
+ sports,
18
+ total,
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)
@@ -0,0 +1,104 @@
1
+ # StaffClubAnalyticsApi
2
+
3
+ All URIs are relative to *https://api.mon-domaine.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getLastSixMonthsTurnover**](#getlastsixmonthsturnover) | **GET** /api/analytics/lastSixMonthsTurnover | Get monthly turnover for the last six months (club courant)|
8
+ |[**getNumberOfClubUsers**](#getnumberofclubusers) | **GET** /api/analytics/user-count | Get number of users subscribed to the club|
9
+
10
+ # **getLastSixMonthsTurnover**
11
+ > Array<GetLastSixMonthsTurnover200ResponseInner> getLastSixMonthsTurnover()
12
+
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ StaffClubAnalyticsApi,
19
+ Configuration
20
+ } from '@tennac-booking/sdk';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new StaffClubAnalyticsApi(configuration);
24
+
25
+ const { status, data } = await apiInstance.getLastSixMonthsTurnover();
26
+ ```
27
+
28
+ ### Parameters
29
+ This endpoint does not have any parameters.
30
+
31
+
32
+ ### Return type
33
+
34
+ **Array<GetLastSixMonthsTurnover200ResponseInner>**
35
+
36
+ ### Authorization
37
+
38
+ [bearerAuth](../README.md#bearerAuth)
39
+
40
+ ### HTTP request headers
41
+
42
+ - **Content-Type**: Not defined
43
+ - **Accept**: application/json
44
+
45
+
46
+ ### HTTP response details
47
+ | Status code | Description | Response headers |
48
+ |-------------|-------------|------------------|
49
+ |**200** | Turnover data for the last 6 months | - |
50
+ |**500** | Erreur serveur interne | - |
51
+
52
+ [[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)
53
+
54
+ # **getNumberOfClubUsers**
55
+ > GetNumberOfClubUsers200Response getNumberOfClubUsers()
56
+
57
+
58
+ ### Example
59
+
60
+ ```typescript
61
+ import {
62
+ StaffClubAnalyticsApi,
63
+ Configuration
64
+ } from '@tennac-booking/sdk';
65
+
66
+ const configuration = new Configuration();
67
+ const apiInstance = new StaffClubAnalyticsApi(configuration);
68
+
69
+ let id: string; //ID du club (optionnel, si absent, pris depuis le token) (optional) (default to undefined)
70
+
71
+ const { status, data } = await apiInstance.getNumberOfClubUsers(
72
+ id
73
+ );
74
+ ```
75
+
76
+ ### Parameters
77
+
78
+ |Name | Type | Description | Notes|
79
+ |------------- | ------------- | ------------- | -------------|
80
+ | **id** | [**string**] | ID du club (optionnel, si absent, pris depuis le token) | (optional) defaults to undefined|
81
+
82
+
83
+ ### Return type
84
+
85
+ **GetNumberOfClubUsers200Response**
86
+
87
+ ### Authorization
88
+
89
+ [bearerAuth](../README.md#bearerAuth)
90
+
91
+ ### HTTP request headers
92
+
93
+ - **Content-Type**: Not defined
94
+ - **Accept**: application/json
95
+
96
+
97
+ ### HTTP response details
98
+ | Status code | Description | Response headers |
99
+ |-------------|-------------|------------------|
100
+ |**200** | Number of subscribed users | - |
101
+ |**500** | Erreur serveur interne | - |
102
+
103
+ [[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)
104
+
@@ -0,0 +1,52 @@
1
+ # StaffClubBookingsApi
2
+
3
+ All URIs are relative to *https://api.mon-domaine.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getTenNextBookings**](#gettennextbookings) | **GET** /api/analytics/next-bookings | Get the ten next bookings for the current club|
8
+
9
+ # **getTenNextBookings**
10
+ > Array<BookingPopulated> getTenNextBookings()
11
+
12
+
13
+ ### Example
14
+
15
+ ```typescript
16
+ import {
17
+ StaffClubBookingsApi,
18
+ Configuration
19
+ } from '@tennac-booking/sdk';
20
+
21
+ const configuration = new Configuration();
22
+ const apiInstance = new StaffClubBookingsApi(configuration);
23
+
24
+ const { status, data } = await apiInstance.getTenNextBookings();
25
+ ```
26
+
27
+ ### Parameters
28
+ This endpoint does not have any parameters.
29
+
30
+
31
+ ### Return type
32
+
33
+ **Array<BookingPopulated>**
34
+
35
+ ### Authorization
36
+
37
+ [bearerAuth](../README.md#bearerAuth)
38
+
39
+ ### HTTP request headers
40
+
41
+ - **Content-Type**: Not defined
42
+ - **Accept**: application/json
43
+
44
+
45
+ ### HTTP response details
46
+ | Status code | Description | Response headers |
47
+ |-------------|-------------|------------------|
48
+ |**200** | List of next bookings | - |
49
+ |**500** | Erreur serveur interne | - |
50
+
51
+ [[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)
52
+
@@ -0,0 +1,100 @@
1
+ # StaffClubsApi
2
+
3
+ All URIs are relative to *https://api.mon-domaine.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getClubInfos**](#getclubinfos) | **GET** /api/clubs/infos | Get current club information|
8
+ |[**getClubSettings**](#getclubsettings) | **GET** /api/club-settings | Récupère les paramètres d’un club|
9
+
10
+ # **getClubInfos**
11
+ > GetClubInfos200Response getClubInfos()
12
+
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ StaffClubsApi,
19
+ Configuration
20
+ } from '@tennac-booking/sdk';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new StaffClubsApi(configuration);
24
+
25
+ const { status, data } = await apiInstance.getClubInfos();
26
+ ```
27
+
28
+ ### Parameters
29
+ This endpoint does not have any parameters.
30
+
31
+
32
+ ### Return type
33
+
34
+ **GetClubInfos200Response**
35
+
36
+ ### Authorization
37
+
38
+ [bearerAuth](../README.md#bearerAuth)
39
+
40
+ ### HTTP request headers
41
+
42
+ - **Content-Type**: Not defined
43
+ - **Accept**: application/json
44
+
45
+
46
+ ### HTTP response details
47
+ | Status code | Description | Response headers |
48
+ |-------------|-------------|------------------|
49
+ |**200** | Club information | - |
50
+ |**500** | Erreur serveur interne | - |
51
+
52
+ [[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)
53
+
54
+ # **getClubSettings**
55
+ > ClubSettings getClubSettings()
56
+
57
+
58
+ ### Example
59
+
60
+ ```typescript
61
+ import {
62
+ StaffClubsApi,
63
+ Configuration
64
+ } from '@tennac-booking/sdk';
65
+
66
+ const configuration = new Configuration();
67
+ const apiInstance = new StaffClubsApi(configuration);
68
+
69
+ const { status, data } = await apiInstance.getClubSettings();
70
+ ```
71
+
72
+ ### Parameters
73
+ This endpoint does not have any parameters.
74
+
75
+
76
+ ### Return type
77
+
78
+ **ClubSettings**
79
+
80
+ ### Authorization
81
+
82
+ [bearerAuth](../README.md#bearerAuth)
83
+
84
+ ### HTTP request headers
85
+
86
+ - **Content-Type**: Not defined
87
+ - **Accept**: application/json
88
+
89
+
90
+ ### HTTP response details
91
+ | Status code | Description | Response headers |
92
+ |-------------|-------------|------------------|
93
+ |**200** | Paramètres du club | - |
94
+ |**401** | Non autorisé | - |
95
+ |**403** | Accès interdit | - |
96
+ |**404** | Paramètres non trouvés | - |
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
+
@@ -0,0 +1,20 @@
1
+ # StaffEventResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **events** | [**Array&lt;Event&gt;**](Event.md) | | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { StaffEventResponse } from '@tennac-booking/sdk';
14
+
15
+ const instance: StaffEventResponse = {
16
+ events,
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)
@@ -0,0 +1,54 @@
1
+ # StaffEventsApi
2
+
3
+ All URIs are relative to *https://api.mon-domaine.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getEventsByClub**](#geteventsbyclub) | **GET** /api/events/staff/getEvents | Get all events for current club (including unpublished)|
8
+
9
+ # **getEventsByClub**
10
+ > StaffEventResponse getEventsByClub()
11
+
12
+
13
+ ### Example
14
+
15
+ ```typescript
16
+ import {
17
+ StaffEventsApi,
18
+ Configuration
19
+ } from '@tennac-booking/sdk';
20
+
21
+ const configuration = new Configuration();
22
+ const apiInstance = new StaffEventsApi(configuration);
23
+
24
+ const { status, data } = await apiInstance.getEventsByClub();
25
+ ```
26
+
27
+ ### Parameters
28
+ This endpoint does not have any parameters.
29
+
30
+
31
+ ### Return type
32
+
33
+ **StaffEventResponse**
34
+
35
+ ### Authorization
36
+
37
+ [bearerAuth](../README.md#bearerAuth)
38
+
39
+ ### HTTP request headers
40
+
41
+ - **Content-Type**: Not defined
42
+ - **Accept**: application/json
43
+
44
+
45
+ ### HTTP response details
46
+ | Status code | Description | Response headers |
47
+ |-------------|-------------|------------------|
48
+ |**200** | List of all events | - |
49
+ |**400** | Requête invalide | - |
50
+ |**401** | Non autorisé | - |
51
+ |**500** | Erreur serveur interne | - |
52
+
53
+ [[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)
54
+
@@ -0,0 +1,54 @@
1
+ # StaffProfileApi
2
+
3
+ All URIs are relative to *https://api.mon-domaine.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getUserRolesInClubs**](#getuserrolesinclubs) | **GET** /api/users/me/roles | Récupère les rôles de l\&#39;utilisateur dans les clubs|
8
+
9
+ # **getUserRolesInClubs**
10
+ > GetUserRolesResponse getUserRolesInClubs()
11
+
12
+
13
+ ### Example
14
+
15
+ ```typescript
16
+ import {
17
+ StaffProfileApi,
18
+ Configuration
19
+ } from '@tennac-booking/sdk';
20
+
21
+ const configuration = new Configuration();
22
+ const apiInstance = new StaffProfileApi(configuration);
23
+
24
+ const { status, data } = await apiInstance.getUserRolesInClubs();
25
+ ```
26
+
27
+ ### Parameters
28
+ This endpoint does not have any parameters.
29
+
30
+
31
+ ### Return type
32
+
33
+ **GetUserRolesResponse**
34
+
35
+ ### Authorization
36
+
37
+ [bearerAuth](../README.md#bearerAuth)
38
+
39
+ ### HTTP request headers
40
+
41
+ - **Content-Type**: Not defined
42
+ - **Accept**: application/json
43
+
44
+
45
+ ### HTTP response details
46
+ | Status code | Description | Response headers |
47
+ |-------------|-------------|------------------|
48
+ |**200** | Liste des rôles dans les clubs | - |
49
+ |**400** | Requête invalide | - |
50
+ |**401** | Non autorisé | - |
51
+ |**500** | Erreur serveur interne | - |
52
+
53
+ [[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)
54
+
@@ -0,0 +1,16 @@
1
+ # StripeStatus
2
+
3
+
4
+ ## Enum
5
+
6
+ * `Pending` (value: `'pending'`)
7
+
8
+ * `Paid` (value: `'paid'`)
9
+
10
+ * `Failed` (value: `'failed'`)
11
+
12
+ * `Refunded` (value: `'refunded'`)
13
+
14
+ * `Canceled` (value: `'canceled'`)
15
+
16
+ [[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,22 @@
1
+ # SubscribeToClubRequestBody
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **clubId** | **string** | ID du club | [default to undefined]
9
+ **roleId** | **string** | ID du rôle dans le club | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { SubscribeToClubRequestBody } from '@tennac-booking/sdk';
15
+
16
+ const instance: SubscribeToClubRequestBody = {
17
+ clubId,
18
+ roleId,
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)
@@ -0,0 +1,36 @@
1
+ # SubscriptionPlan
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [optional] [default to undefined]
9
+ **stripeProductId** | **string** | | [optional] [default to undefined]
10
+ **name** | **string** | | [optional] [default to undefined]
11
+ **description** | **string** | | [optional] [default to undefined]
12
+ **clubId** | **string** | | [optional] [default to undefined]
13
+ **isActive** | **boolean** | | [optional] [default to undefined]
14
+ **createdAt** | **string** | | [optional] [default to undefined]
15
+ **updatedAt** | **string** | | [optional] [default to undefined]
16
+ **prices** | [**Array&lt;PriceResponse&gt;**](PriceResponse.md) | | [optional] [default to undefined]
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import { SubscriptionPlan } from '@tennac-booking/sdk';
22
+
23
+ const instance: SubscriptionPlan = {
24
+ id,
25
+ stripeProductId,
26
+ name,
27
+ description,
28
+ clubId,
29
+ isActive,
30
+ createdAt,
31
+ updatedAt,
32
+ prices,
33
+ };
34
+ ```
35
+
36
+ [[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,36 @@
1
+ # SubscriptionResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | ID de l\&#39;abonnement | [optional] [default to undefined]
9
+ **userId** | **string** | ID de l\&#39;utilisateur | [optional] [default to undefined]
10
+ **clubId** | **string** | ID du club | [optional] [default to undefined]
11
+ **stripeSubscriptionId** | **string** | ID de l\&#39;abonnement Stripe | [optional] [default to undefined]
12
+ **status** | **string** | Statut de l\&#39;abonnement | [optional] [default to undefined]
13
+ **currentPeriodStart** | **string** | Début de la période courante | [optional] [default to undefined]
14
+ **currentPeriodEnd** | **string** | Fin de la période courante | [optional] [default to undefined]
15
+ **createdAt** | **string** | | [optional] [default to undefined]
16
+ **updatedAt** | **string** | | [optional] [default to undefined]
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import { SubscriptionResponse } from '@tennac-booking/sdk';
22
+
23
+ const instance: SubscriptionResponse = {
24
+ id,
25
+ userId,
26
+ clubId,
27
+ stripeSubscriptionId,
28
+ status,
29
+ currentPeriodStart,
30
+ currentPeriodEnd,
31
+ createdAt,
32
+ updatedAt,
33
+ };
34
+ ```
35
+
36
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)