@tennac-booking/sdk 1.0.116 → 1.0.117

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 (170) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/README.md +5 -2
  3. package/api.ts +211 -1
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +173 -1
  8. package/dist/api.js +68 -1
  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 +173 -1
  16. package/dist/esm/api.js +68 -1
  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/{DeleteClubRole200Response.md → CheckTeamNameAvailability200Response.md} +5 -5
  28. package/docs/EstimateEventPrice200Response.md +6 -0
  29. package/docs/EstimateEventPriceRequest.md +4 -0
  30. package/docs/EventsApi.md +57 -0
  31. package/docs/JoinEventRequest.md +2 -0
  32. package/docs/JoinEventResponse.md +14 -0
  33. package/docs/JoinEventResponseOnsitePaymentsInner.md +24 -0
  34. package/index.ts +1 -1
  35. package/package.json +1 -1
  36. package/docs/ActiveClub.md +0 -24
  37. package/docs/ActiveClubListResponse.md +0 -20
  38. package/docs/AddClubMemberResponse.md +0 -22
  39. package/docs/AddFavoriteClubRequestBody.md +0 -20
  40. package/docs/AddFavoritePlayerRequestBody.md +0 -20
  41. package/docs/AddPaymentMethodSetupRequestBody.md +0 -20
  42. package/docs/AddPaymentMethodSetupResponse.md +0 -24
  43. package/docs/AdminClubAnalyticsApi.md +0 -249
  44. package/docs/AdminClubSlotsApi.md +0 -182
  45. package/docs/AdminClubSubscriptionsApi.md +0 -394
  46. package/docs/AdminClubsApi.md +0 -170
  47. package/docs/ApiErrorResponse.md +0 -22
  48. package/docs/BlockSlotResponse.md +0 -22
  49. package/docs/Booking.md +0 -32
  50. package/docs/BookingPaymentStatusResponsePaymentStatusInner.md +0 -36
  51. package/docs/BookingPopulatedPaymentByPlayersStatusInner.md +0 -22
  52. package/docs/BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner.md +0 -24
  53. package/docs/BookingPopulatedSlotId.md +0 -26
  54. package/docs/BookingPopulatedSlotIdCourtId.md +0 -22
  55. package/docs/BookingPopulatedUserId.md +0 -24
  56. package/docs/CancelBookingResponseBooking.md +0 -30
  57. package/docs/CheckInPlayersResponseCheckedInPlayersInner.md +0 -34
  58. package/docs/Club.md +0 -46
  59. package/docs/ClubInfoResponse.md +0 -48
  60. package/docs/ClubListResponse.md +0 -22
  61. package/docs/ClubMember.md +0 -34
  62. package/docs/ClubMembersResponse.md +0 -22
  63. package/docs/ClubRole.md +0 -30
  64. package/docs/ClubRolesResponse.md +0 -22
  65. package/docs/ClubSettings.md +0 -40
  66. package/docs/ClubsResponse.md +0 -22
  67. package/docs/ConfirmPaymentMethodSetupRequestBody.md +0 -20
  68. package/docs/ConfirmPaymentMethodSetupResponse.md +0 -22
  69. package/docs/Court.md +0 -32
  70. package/docs/CourtsResponse.md +0 -22
  71. package/docs/CreateClubRoleRequestBody.md +0 -24
  72. package/docs/CreateClubSettingsRequest.md +0 -28
  73. package/docs/CreatePriceRequest.md +0 -26
  74. package/docs/DeleteClub200Response.md +0 -20
  75. package/docs/DeleteClubSettingsRequest.md +0 -20
  76. package/docs/DeleteEvent200Response.md +0 -20
  77. package/docs/DeleteSlotsByClubInRange200Response.md +0 -20
  78. package/docs/DeleteSlotsResponse.md +0 -20
  79. package/docs/DeleteSport200Response.md +0 -20
  80. package/docs/Event.md +0 -40
  81. package/docs/EventBooking.md +0 -32
  82. package/docs/EventRegistrationRequest.md +0 -22
  83. package/docs/FavoriteClubItem.md +0 -26
  84. package/docs/FavoriteClubResponse.md +0 -22
  85. package/docs/FavoritePlayerPublic.md +0 -28
  86. package/docs/FavoritePlayersIdsResponse.md +0 -22
  87. package/docs/FrequentlyPlayedWithItem.md +0 -28
  88. package/docs/FrequentlyVisitedClubItem.md +0 -24
  89. package/docs/GenerateSlotsResponse.md +0 -20
  90. package/docs/GetActiveClubs200Response.md +0 -20
  91. package/docs/GetClubInfos200Response.md +0 -30
  92. package/docs/GetCourtsByClubAndSport200Response.md +0 -26
  93. package/docs/GetLastSixMonthsTurnover200ResponseInner.md +0 -22
  94. package/docs/GetNumberOfClubUsers200Response.md +0 -20
  95. package/docs/GetPublishedEventsByClubId200Response.md +0 -20
  96. package/docs/GetUserRolesResponse.md +0 -20
  97. package/docs/GetUserRolesResponseRolesInner.md +0 -26
  98. package/docs/GetUserSubscriptionsResponse.md +0 -22
  99. package/docs/GoogleSignInRequestBody.md +0 -20
  100. package/docs/GoogleSignInResponse.md +0 -24
  101. package/docs/InitiateSubscriptionSessionRequestBody.md +0 -26
  102. package/docs/InitiateSubscriptionSessionResponse.md +0 -22
  103. package/docs/InvoicesResponse.md +0 -22
  104. package/docs/InvoicesResponseInvoicesInner.md +0 -34
  105. package/docs/InvoicesResponsePagination.md +0 -26
  106. package/docs/LevelBySportsItem.md +0 -22
  107. package/docs/ManagerBookingsApi.md +0 -125
  108. package/docs/ManagerCancelBookingResponseBooking.md +0 -30
  109. package/docs/ManagerClubCourtsApi.md +0 -108
  110. package/docs/ManagerClubRolesApi.md +0 -268
  111. package/docs/ManagerClubSlotsApi.md +0 -119
  112. package/docs/ManagerClubSubscriptionsApi.md +0 -387
  113. package/docs/ManagerClubsApi.md +0 -253
  114. package/docs/ManagerEventResponse.md +0 -22
  115. package/docs/ManagerEventsApi.md +0 -227
  116. package/docs/ManagerSportsApi.md +0 -174
  117. package/docs/NoShowFeeResponseCaptureResultsInner.md +0 -30
  118. package/docs/NoShowFeeResponseCreatorChargeResult.md +0 -26
  119. package/docs/PriceResponse.md +0 -32
  120. package/docs/ProfileVisibilityResponse.md +0 -20
  121. package/docs/PublicClubUser.md +0 -46
  122. package/docs/PublicClubUserFrequentlyPlayedWithInner.md +0 -28
  123. package/docs/PublicClubUserFrequentlyVisitedClubsInner.md +0 -24
  124. package/docs/PublicClubUserLevelBySportsInner.md +0 -22
  125. package/docs/RegisterForEvent201Response.md +0 -20
  126. package/docs/RestoreSubscriptionPlanForClub200Response.md +0 -20
  127. package/docs/SetupPaymentMethodRequestBody.md +0 -20
  128. package/docs/SetupPaymentMethodResponse.md +0 -24
  129. package/docs/Slot.md +0 -24
  130. package/docs/SlotException.md +0 -26
  131. package/docs/SlotResponse.md +0 -34
  132. package/docs/SlotsResponse.md +0 -22
  133. package/docs/Sport.md +0 -24
  134. package/docs/SportsResponse.md +0 -22
  135. package/docs/StaffClubAnalyticsApi.md +0 -104
  136. package/docs/StaffClubBookingsApi.md +0 -52
  137. package/docs/StaffClubsApi.md +0 -100
  138. package/docs/StaffEventResponse.md +0 -20
  139. package/docs/StaffEventsApi.md +0 -54
  140. package/docs/StaffProfileApi.md +0 -54
  141. package/docs/StripeStatus.md +0 -16
  142. package/docs/SubscribeToClubRequestBody.md +0 -22
  143. package/docs/SubscriptionPlan.md +0 -36
  144. package/docs/SubscriptionResponse.md +0 -36
  145. package/docs/UpdateClubRoleRequestBody.md +0 -24
  146. package/docs/UpdateClubSettingsRequest.md +0 -28
  147. package/docs/UpdateCustomerRequestBodyAddress.md +0 -30
  148. package/docs/UpdateCustomerResponseCustomer.md +0 -28
  149. package/docs/UpdateProfilePictureRequestBody.md +0 -20
  150. package/docs/UpdateProfileVisibilityRequestBody.md +0 -20
  151. package/docs/UpdateSubscriptionPlanRequest.md +0 -24
  152. package/docs/UpdateSubscriptionPlanResponse.md +0 -22
  153. package/docs/UpdateUserCityRequestBody.md +0 -20
  154. package/docs/UpdateUserDescriptionRequestBody.md +0 -20
  155. package/docs/User.md +0 -40
  156. package/docs/UserAuthenticationApi.md +0 -226
  157. package/docs/UserBookingsApi.md +0 -120
  158. package/docs/UserCityResponse.md +0 -20
  159. package/docs/UserClubCourtsApi.md +0 -64
  160. package/docs/UserClubSlotsApi.md +0 -181
  161. package/docs/UserClubSportsApi.md +0 -60
  162. package/docs/UserClubsApi.md +0 -53
  163. package/docs/UserDescriptionResponse.md +0 -20
  164. package/docs/UserFavoriteClubsResponse.md +0 -20
  165. package/docs/UserPaymentApi.md +0 -176
  166. package/docs/UserProfileApi.md +0 -1201
  167. package/docs/UserResponse.md +0 -38
  168. package/docs/UserSubscriptionsApi.md +0 -222
  169. package/docs/UsersResponse.md +0 -22
  170. package/docs/YearlyTurnoverResponseMonthlyBreakdownInner.md +0 -24
@@ -1,38 +0,0 @@
1
- # UserResponse
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
- **phone** | **string** | | [optional] [default to undefined]
14
- **profilePicture** | **string** | | [optional] [default to undefined]
15
- **level** | **string** | | [optional] [default to undefined]
16
- **createdAt** | **string** | | [optional] [default to undefined]
17
- **updatedAt** | **string** | | [optional] [default to undefined]
18
-
19
- ## Example
20
-
21
- ```typescript
22
- import { UserResponse } from '@tennac-booking/sdk';
23
-
24
- const instance: UserResponse = {
25
- id,
26
- username,
27
- firstName,
28
- lastName,
29
- email,
30
- phone,
31
- profilePicture,
32
- level,
33
- createdAt,
34
- updatedAt,
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,222 +0,0 @@
1
- # UserSubscriptionsApi
2
-
3
- All URIs are relative to *https://api.mon-domaine.com*
4
-
5
- |Method | HTTP request | Description|
6
- |------------- | ------------- | -------------|
7
- |[**cancelSubscription**](#cancelsubscription) | **DELETE** /api/users/me/subscriptions/{clubId}/{subscriptionId} | Annule un abonnement utilisateur|
8
- |[**getUserSubscriptions**](#getusersubscriptions) | **GET** /api/users/me/subscriptions | Récupère les abonnements de l\'utilisateur connecté|
9
- |[**initiateSubscriptionSession**](#initiatesubscriptionsession) | **POST** /api/users/me/subscription-session | Initie une session d\'abonnement Stripe|
10
- |[**resumeSubscription**](#resumesubscription) | **POST** /api/users/me/subscriptions/{clubId}/{subscriptionId}/resume | Réactive un abonnement utilisateur|
11
-
12
- # **cancelSubscription**
13
- > SubscriptionResponse cancelSubscription()
14
-
15
-
16
- ### Example
17
-
18
- ```typescript
19
- import {
20
- UserSubscriptionsApi,
21
- Configuration
22
- } from '@tennac-booking/sdk';
23
-
24
- const configuration = new Configuration();
25
- const apiInstance = new UserSubscriptionsApi(configuration);
26
-
27
- let clubId: string; //ID du club (default to undefined)
28
- let subscriptionId: string; //ID de l\'abonnement à annuler (default to undefined)
29
-
30
- const { status, data } = await apiInstance.cancelSubscription(
31
- clubId,
32
- subscriptionId
33
- );
34
- ```
35
-
36
- ### Parameters
37
-
38
- |Name | Type | Description | Notes|
39
- |------------- | ------------- | ------------- | -------------|
40
- | **clubId** | [**string**] | ID du club | defaults to undefined|
41
- | **subscriptionId** | [**string**] | ID de l\'abonnement à annuler | defaults to undefined|
42
-
43
-
44
- ### Return type
45
-
46
- **SubscriptionResponse**
47
-
48
- ### Authorization
49
-
50
- [bearerAuth](../README.md#bearerAuth)
51
-
52
- ### HTTP request headers
53
-
54
- - **Content-Type**: Not defined
55
- - **Accept**: application/json
56
-
57
-
58
- ### HTTP response details
59
- | Status code | Description | Response headers |
60
- |-------------|-------------|------------------|
61
- |**200** | Abonnement annulé | - |
62
- |**400** | Requête invalide | - |
63
- |**401** | Non autorisé | - |
64
- |**500** | Erreur serveur interne | - |
65
-
66
- [[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)
67
-
68
- # **getUserSubscriptions**
69
- > GetUserSubscriptionsResponse getUserSubscriptions()
70
-
71
-
72
- ### Example
73
-
74
- ```typescript
75
- import {
76
- UserSubscriptionsApi,
77
- Configuration
78
- } from '@tennac-booking/sdk';
79
-
80
- const configuration = new Configuration();
81
- const apiInstance = new UserSubscriptionsApi(configuration);
82
-
83
- const { status, data } = await apiInstance.getUserSubscriptions();
84
- ```
85
-
86
- ### Parameters
87
- This endpoint does not have any parameters.
88
-
89
-
90
- ### Return type
91
-
92
- **GetUserSubscriptionsResponse**
93
-
94
- ### Authorization
95
-
96
- [bearerAuth](../README.md#bearerAuth)
97
-
98
- ### HTTP request headers
99
-
100
- - **Content-Type**: Not defined
101
- - **Accept**: application/json
102
-
103
-
104
- ### HTTP response details
105
- | Status code | Description | Response headers |
106
- |-------------|-------------|------------------|
107
- |**200** | Liste des abonnements | - |
108
- |**401** | Non autorisé | - |
109
- |**500** | Erreur serveur interne | - |
110
-
111
- [[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)
112
-
113
- # **initiateSubscriptionSession**
114
- > InitiateSubscriptionSessionResponse initiateSubscriptionSession(initiateSubscriptionSessionRequestBody)
115
-
116
-
117
- ### Example
118
-
119
- ```typescript
120
- import {
121
- UserSubscriptionsApi,
122
- Configuration,
123
- InitiateSubscriptionSessionRequestBody
124
- } from '@tennac-booking/sdk';
125
-
126
- const configuration = new Configuration();
127
- const apiInstance = new UserSubscriptionsApi(configuration);
128
-
129
- let initiateSubscriptionSessionRequestBody: InitiateSubscriptionSessionRequestBody; //
130
-
131
- const { status, data } = await apiInstance.initiateSubscriptionSession(
132
- initiateSubscriptionSessionRequestBody
133
- );
134
- ```
135
-
136
- ### Parameters
137
-
138
- |Name | Type | Description | Notes|
139
- |------------- | ------------- | ------------- | -------------|
140
- | **initiateSubscriptionSessionRequestBody** | **InitiateSubscriptionSessionRequestBody**| | |
141
-
142
-
143
- ### Return type
144
-
145
- **InitiateSubscriptionSessionResponse**
146
-
147
- ### Authorization
148
-
149
- [bearerAuth](../README.md#bearerAuth)
150
-
151
- ### HTTP request headers
152
-
153
- - **Content-Type**: application/json
154
- - **Accept**: application/json
155
-
156
-
157
- ### HTTP response details
158
- | Status code | Description | Response headers |
159
- |-------------|-------------|------------------|
160
- |**200** | Session d\'abonnement créée | - |
161
- |**400** | Requête invalide | - |
162
- |**401** | Non autorisé | - |
163
- |**500** | Erreur serveur interne | - |
164
-
165
- [[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)
166
-
167
- # **resumeSubscription**
168
- > SubscriptionResponse resumeSubscription()
169
-
170
-
171
- ### Example
172
-
173
- ```typescript
174
- import {
175
- UserSubscriptionsApi,
176
- Configuration
177
- } from '@tennac-booking/sdk';
178
-
179
- const configuration = new Configuration();
180
- const apiInstance = new UserSubscriptionsApi(configuration);
181
-
182
- let clubId: string; //ID du club (default to undefined)
183
- let subscriptionId: string; //ID de l\'abonnement à réactiver (default to undefined)
184
-
185
- const { status, data } = await apiInstance.resumeSubscription(
186
- clubId,
187
- subscriptionId
188
- );
189
- ```
190
-
191
- ### Parameters
192
-
193
- |Name | Type | Description | Notes|
194
- |------------- | ------------- | ------------- | -------------|
195
- | **clubId** | [**string**] | ID du club | defaults to undefined|
196
- | **subscriptionId** | [**string**] | ID de l\'abonnement à réactiver | defaults to undefined|
197
-
198
-
199
- ### Return type
200
-
201
- **SubscriptionResponse**
202
-
203
- ### Authorization
204
-
205
- [bearerAuth](../README.md#bearerAuth)
206
-
207
- ### HTTP request headers
208
-
209
- - **Content-Type**: Not defined
210
- - **Accept**: application/json
211
-
212
-
213
- ### HTTP response details
214
- | Status code | Description | Response headers |
215
- |-------------|-------------|------------------|
216
- |**200** | Abonnement réactivé | - |
217
- |**400** | Requête invalide | - |
218
- |**401** | Non autorisé | - |
219
- |**500** | Erreur serveur interne | - |
220
-
221
- [[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)
222
-
@@ -1,22 +0,0 @@
1
- # UsersResponse
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **users** | [**Array<UserResponse>**](UserResponse.md) | | [optional] [default to undefined]
9
- **total** | **number** | | [optional] [default to undefined]
10
-
11
- ## Example
12
-
13
- ```typescript
14
- import { UsersResponse } from '@tennac-booking/sdk';
15
-
16
- const instance: UsersResponse = {
17
- users,
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)
@@ -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)