@tennac-booking/sdk 1.0.33 → 1.0.35

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 (54) hide show
  1. package/.openapi-generator/FILES +12 -2
  2. package/README.md +21 -4
  3. package/api.ts +1575 -146
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +1054 -77
  8. package/dist/api.js +759 -4
  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 +1054 -77
  16. package/dist/esm/api.js +748 -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/ActiveClub.md +4 -0
  28. package/docs/BookingHistoryResponse.md +22 -0
  29. package/docs/BookingHistoryResponseHistoryInner.md +32 -0
  30. package/docs/BookingPopulated.md +2 -0
  31. package/docs/BookingsApi.md +113 -0
  32. package/docs/BookingsStaffWeeklyWeekIdGet200Response.md +20 -0
  33. package/docs/Club.md +2 -2
  34. package/docs/CourtWithNameResponse.md +48 -0
  35. package/docs/{SportsResponse.md → CourtsWithNameResponse.md} +5 -5
  36. package/docs/GenderPercentage.md +26 -0
  37. package/docs/Location.md +32 -0
  38. package/docs/ManagerClubCourtsApi.md +2 -2
  39. package/docs/PaymentStatus.md +30 -0
  40. package/docs/Sport.md +0 -2
  41. package/docs/SportResponse.md +4 -0
  42. package/docs/StaffClubAnalyticsApi.md +49 -2
  43. package/docs/StaffClubsApi.md +2 -2
  44. package/docs/UpdateUserRequestBody.md +8 -2
  45. package/docs/UpdateUserRequestBodyLevelBySportsInner.md +22 -0
  46. package/docs/UserBookingItem.md +46 -0
  47. package/docs/UserBookingsApi.md +46 -0
  48. package/docs/UserClubSportsApi.md +2 -2
  49. package/docs/UserProfileApi.md +53 -0
  50. package/docs/UserStaffResponse.md +6 -0
  51. package/docs/UsersApi.md +243 -0
  52. package/index.ts +1 -1
  53. package/package.json +1 -1
  54. package/docs/GetClubPlayers200Response.md +0 -22
@@ -17,6 +17,8 @@ docs/AddPaymentMethodSetupResponse.md
17
17
  docs/ApiErrorResponse.md
18
18
  docs/BlockSlotResponse.md
19
19
  docs/Booking.md
20
+ docs/BookingHistoryResponse.md
21
+ docs/BookingHistoryResponseHistoryInner.md
20
22
  docs/BookingPaymentStatusResponse.md
21
23
  docs/BookingPaymentStatusResponseBooking.md
22
24
  docs/BookingPaymentStatusResponsePaymentStatusInner.md
@@ -29,6 +31,8 @@ docs/BookingPopulatedSlotIdCourtId.md
29
31
  docs/BookingPopulatedUserId.md
30
32
  docs/BookingResponse.md
31
33
  docs/BookingStatus.md
34
+ docs/BookingsApi.md
35
+ docs/BookingsStaffWeeklyWeekIdGet200Response.md
32
36
  docs/CancelBookingResponse.md
33
37
  docs/CancelBookingResponseBooking.md
34
38
  docs/ChangePasswordRequestBody.md
@@ -53,7 +57,9 @@ docs/Court.md
53
57
  docs/CourtDeleteResponse.md
54
58
  docs/CourtResponse.md
55
59
  docs/CourtStatus.md
60
+ docs/CourtWithNameResponse.md
56
61
  docs/CourtsResponse.md
62
+ docs/CourtsWithNameResponse.md
57
63
  docs/CreateBookingRequest.md
58
64
  docs/CreateClubRoleRequestBody.md
59
65
  docs/CreateCourtRequest.md
@@ -77,9 +83,9 @@ docs/FavoritePlayersIdsResponse.md
77
83
  docs/FavoritePlayersResponse.md
78
84
  docs/FrequentlyPlayedWithItem.md
79
85
  docs/FrequentlyVisitedClubItem.md
86
+ docs/GenderPercentage.md
80
87
  docs/GetActiveClubs200Response.md
81
88
  docs/GetClubInfos200Response.md
82
- docs/GetClubPlayers200Response.md
83
89
  docs/GetClubUsersById200Response.md
84
90
  docs/GetCourtsByClubAndSport200Response.md
85
91
  docs/GetLastSixMonthsTurnover200ResponseInner.md
@@ -96,6 +102,7 @@ docs/InvoicesResponse.md
96
102
  docs/InvoicesResponseInvoicesInner.md
97
103
  docs/InvoicesResponsePagination.md
98
104
  docs/LevelBySportsItem.md
105
+ docs/Location.md
99
106
  docs/LoginRequestBody.md
100
107
  docs/LoginResponse.md
101
108
  docs/ManagerBookingsApi.md
@@ -115,6 +122,7 @@ docs/NoShowFeeResponse.md
115
122
  docs/NoShowFeeResponseCaptureResultsInner.md
116
123
  docs/NoShowFeeResponseCreatorChargeResult.md
117
124
  docs/PaymentMethod.md
125
+ docs/PaymentStatus.md
118
126
  docs/PlayerWithPaymentMethod.md
119
127
  docs/PriceResponse.md
120
128
  docs/ProfilePictureResponse.md
@@ -136,7 +144,6 @@ docs/SlotResponse.md
136
144
  docs/SlotsResponse.md
137
145
  docs/Sport.md
138
146
  docs/SportResponse.md
139
- docs/SportsResponse.md
140
147
  docs/StaffClubAnalyticsApi.md
141
148
  docs/StaffClubBookingsApi.md
142
149
  docs/StaffClubsApi.md
@@ -165,9 +172,11 @@ docs/UpdateSubscriptionPlanResponse.md
165
172
  docs/UpdateUserCityRequestBody.md
166
173
  docs/UpdateUserDescriptionRequestBody.md
167
174
  docs/UpdateUserRequestBody.md
175
+ docs/UpdateUserRequestBodyLevelBySportsInner.md
168
176
  docs/User.md
169
177
  docs/UserApi.md
170
178
  docs/UserAuthenticationApi.md
179
+ docs/UserBookingItem.md
171
180
  docs/UserBookingsApi.md
172
181
  docs/UserBookingsResponse.md
173
182
  docs/UserCityResponse.md
@@ -182,6 +191,7 @@ docs/UserProfileApi.md
182
191
  docs/UserResponse.md
183
192
  docs/UserStaffResponse.md
184
193
  docs/UserSubscriptionsApi.md
194
+ docs/UsersApi.md
185
195
  docs/YearlyTurnoverResponse.md
186
196
  docs/YearlyTurnoverResponseMonthlyBreakdownInner.md
187
197
  git_push.sh
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @tennac-booking/sdk@1.0.33
1
+ ## @tennac-booking/sdk@1.0.35
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @tennac-booking/sdk@1.0.33 --save
39
+ npm install @tennac-booking/sdk@1.0.35 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -51,6 +51,8 @@ All URIs are relative to *https://api.mon-domaine.com*
51
51
 
52
52
  Class | Method | HTTP request | Description
53
53
  ------------ | ------------- | ------------- | -------------
54
+ *BookingsApi* | [**bookingsStaffDailyDateGet**](docs/BookingsApi.md#bookingsstaffdailydateget) | **GET** /bookings/staff/daily/{date} | Récupérer les réservations journalières
55
+ *BookingsApi* | [**bookingsStaffWeeklyWeekIdGet**](docs/BookingsApi.md#bookingsstaffweeklyweekidget) | **GET** /bookings/staff/weekly/{weekId} | Récupérer les réservations hebdomadaires
54
56
  *ClubAnalyticsApi* | [**getDailyTurnOver**](docs/ClubAnalyticsApi.md#getdailyturnover) | **GET** /api/analytics/dailyTurnover | Chiffre d\'affaires quotidien (club courant)
55
57
  *ClubAnalyticsApi* | [**getInvoices**](docs/ClubAnalyticsApi.md#getinvoices) | **GET** /api/clubs/invoices | Récupérer les factures du club courant
56
58
  *ClubAnalyticsApi* | [**getMonthlyTurnOver**](docs/ClubAnalyticsApi.md#getmonthlyturnover) | **GET** /api/analytics/monthlyTurnover | Chiffre d\'affaires mensuel (club courant)
@@ -90,6 +92,7 @@ Class | Method | HTTP request | Description
90
92
  *ManagerSportsApi* | [**deleteSport**](docs/ManagerSportsApi.md#deletesport) | **DELETE** /api/sports/{id} | Supprimer un sport
91
93
  *ManagerSportsApi* | [**updateSport**](docs/ManagerSportsApi.md#updatesport) | **PUT** /api/sports/{id} | Mettre à jour un sport
92
94
  *StaffClubAnalyticsApi* | [**getClubPlayers**](docs/StaffClubAnalyticsApi.md#getclubplayers) | **GET** /api/analytics/players | Récupère la liste des joueurs du club (données staff uniquement)
95
+ *StaffClubAnalyticsApi* | [**getGenderPercentage**](docs/StaffClubAnalyticsApi.md#getgenderpercentage) | **GET** /api/analytics/gender | Récupère le pourcentage de joueurs par genre pour le club courant
93
96
  *StaffClubAnalyticsApi* | [**getLastSixMonthsTurnover**](docs/StaffClubAnalyticsApi.md#getlastsixmonthsturnover) | **GET** /api/analytics/lastSixMonthsTurnover | Get monthly turnover for the last six months (club courant)
94
97
  *StaffClubAnalyticsApi* | [**getNumberOfClubUsers**](docs/StaffClubAnalyticsApi.md#getnumberofclubusers) | **GET** /api/analytics/user-count | Get number of users subscribed to the club
95
98
  *StaffClubBookingsApi* | [**getTenNextBookings**](docs/StaffClubBookingsApi.md#gettennextbookings) | **GET** /api/analytics/next-bookings | Get the ten next bookings for the current club
@@ -105,6 +108,7 @@ Class | Method | HTTP request | Description
105
108
  *UserAuthenticationApi* | [**signInOrSignUpWithGoogle**](docs/UserAuthenticationApi.md#signinorsignupwithgoogle) | **POST** /api/users/googleSignin | Authentifie ou crée un utilisateur via Google OAuth
106
109
  *UserBookingsApi* | [**blockSlot**](docs/UserBookingsApi.md#blockslot) | **PATCH** /api/bookings/pre-book/{slotId} | Bloquer un créneau
107
110
  *UserBookingsApi* | [**createBooking**](docs/UserBookingsApi.md#createbooking) | **POST** /api/bookings | Créer une réservation
111
+ *UserBookingsApi* | [**getBookingHistory**](docs/UserBookingsApi.md#getbookinghistory) | **GET** /api/users/me/booking-history | Récupère l\'historique des réservations de l\'utilisateur connecté
108
112
  *UserClubCourtsApi* | [**getCourtsByClubAndSport**](docs/UserClubCourtsApi.md#getcourtsbyclubandsport) | **GET** /api/clubs/{id}/sports/{sportId}/courts | Récupérer les terrains d\'un club pour un sport spécifique
109
113
  *UserClubSlotsApi* | [**getAvailableSlotsByClub**](docs/UserClubSlotsApi.md#getavailableslotsbyclub) | **GET** /api/clubs/{clubID}/availableSlots | Obtenir tous les créneaux disponibles pour un club
110
114
  *UserClubSlotsApi* | [**getAvailableSlotsBySports**](docs/UserClubSlotsApi.md#getavailableslotsbysports) | **GET** /api/clubs/{id}/sports/{sportId}/slots | Obtenir tous les slots disponibles pour un sport dans un club
@@ -124,6 +128,7 @@ Class | Method | HTTP request | Description
124
128
  *UserProfileApi* | [**getFrequentlyVisitedClub**](docs/UserProfileApi.md#getfrequentlyvisitedclub) | **GET** /api/users/me/frequentlyVisitedClub | Clubs les plus fréquemment visités par l\'utilisateur connecté
125
129
  *UserProfileApi* | [**getProfilePicture**](docs/UserProfileApi.md#getprofilepicture) | **GET** /api/users/me/profile-picture | Récupère l\'URL de la photo de profil de l\'utilisateur connecté
126
130
  *UserProfileApi* | [**getPublicUserProfile**](docs/UserProfileApi.md#getpublicuserprofile) | **GET** /api/users/profile/{id} | Récupère le profil public d\'un utilisateur par son ID
131
+ *UserProfileApi* | [**getUserBookingDetail**](docs/UserProfileApi.md#getuserbookingdetail) | **GET** /api/users/me/booking-detail/{bookingId} | Récupère le detéail d\'une réservation
127
132
  *UserProfileApi* | [**getUserBookings**](docs/UserProfileApi.md#getuserbookings) | **GET** /api/users/me/bookings | Récupère toutes les réservations de l\'utilisateur connecté (triées par date de création décroissante)
128
133
  *UserProfileApi* | [**getUserCity**](docs/UserProfileApi.md#getusercity) | **GET** /api/users/me/city | Récupère la ville de l\'utilisateur connecté
129
134
  *UserProfileApi* | [**getUserDescription**](docs/UserProfileApi.md#getuserdescription) | **GET** /api/users/me/description | Récupère la description de l\'utilisateur connecté
@@ -141,6 +146,10 @@ Class | Method | HTTP request | Description
141
146
  *UserSubscriptionsApi* | [**getUserSubscriptions**](docs/UserSubscriptionsApi.md#getusersubscriptions) | **GET** /api/users/me/subscriptions | Récupère les abonnements de l\'utilisateur connecté
142
147
  *UserSubscriptionsApi* | [**initiateSubscriptionSession**](docs/UserSubscriptionsApi.md#initiatesubscriptionsession) | **POST** /api/users/me/subscription-session | Initie une session d\'abonnement Stripe
143
148
  *UserSubscriptionsApi* | [**resumeSubscription**](docs/UserSubscriptionsApi.md#resumesubscription) | **POST** /api/users/me/subscriptions/{clubId}/{subscriptionId}/resume | Réactive un abonnement utilisateur
149
+ *UsersApi* | [**apiUsersMeNearestClubsGet**](docs/UsersApi.md#apiusersmenearestclubsget) | **GET** /api/users/me/nearest-clubs/ | Récupère les clubs proches de l’utilisateur connecté
150
+ *UsersApi* | [**apiUsersMeNearestPlayersGet**](docs/UsersApi.md#apiusersmenearestplayersget) | **GET** /api/users/me/nearest-players/ | Récupère les utilisateurs proches de l’utilisateur connecté
151
+ *UsersApi* | [**apiUsersNearestClubsCoordinatesGet**](docs/UsersApi.md#apiusersnearestclubscoordinatesget) | **GET** /api/users/nearest-clubs/coordinates | Récupère les clubs proches d’une position donnée
152
+ *UsersApi* | [**apiUsersNearestPlayersCoordinatesGet**](docs/UsersApi.md#apiusersnearestplayerscoordinatesget) | **GET** /api/users/nearest-players/coordinates | Récupère les utilisateurs proches d’une position donnée
144
153
 
145
154
 
146
155
  ### Documentation For Models
@@ -156,6 +165,8 @@ Class | Method | HTTP request | Description
156
165
  - [ApiErrorResponse](docs/ApiErrorResponse.md)
157
166
  - [BlockSlotResponse](docs/BlockSlotResponse.md)
158
167
  - [Booking](docs/Booking.md)
168
+ - [BookingHistoryResponse](docs/BookingHistoryResponse.md)
169
+ - [BookingHistoryResponseHistoryInner](docs/BookingHistoryResponseHistoryInner.md)
159
170
  - [BookingPaymentStatusResponse](docs/BookingPaymentStatusResponse.md)
160
171
  - [BookingPaymentStatusResponseBooking](docs/BookingPaymentStatusResponseBooking.md)
161
172
  - [BookingPaymentStatusResponsePaymentStatusInner](docs/BookingPaymentStatusResponsePaymentStatusInner.md)
@@ -168,6 +179,7 @@ Class | Method | HTTP request | Description
168
179
  - [BookingPopulatedUserId](docs/BookingPopulatedUserId.md)
169
180
  - [BookingResponse](docs/BookingResponse.md)
170
181
  - [BookingStatus](docs/BookingStatus.md)
182
+ - [BookingsStaffWeeklyWeekIdGet200Response](docs/BookingsStaffWeeklyWeekIdGet200Response.md)
171
183
  - [CancelBookingResponse](docs/CancelBookingResponse.md)
172
184
  - [CancelBookingResponseBooking](docs/CancelBookingResponseBooking.md)
173
185
  - [ChangePasswordRequestBody](docs/ChangePasswordRequestBody.md)
@@ -190,7 +202,9 @@ Class | Method | HTTP request | Description
190
202
  - [CourtDeleteResponse](docs/CourtDeleteResponse.md)
191
203
  - [CourtResponse](docs/CourtResponse.md)
192
204
  - [CourtStatus](docs/CourtStatus.md)
205
+ - [CourtWithNameResponse](docs/CourtWithNameResponse.md)
193
206
  - [CourtsResponse](docs/CourtsResponse.md)
207
+ - [CourtsWithNameResponse](docs/CourtsWithNameResponse.md)
194
208
  - [CreateBookingRequest](docs/CreateBookingRequest.md)
195
209
  - [CreateClubRoleRequestBody](docs/CreateClubRoleRequestBody.md)
196
210
  - [CreateCourtRequest](docs/CreateCourtRequest.md)
@@ -213,9 +227,9 @@ Class | Method | HTTP request | Description
213
227
  - [FavoritePlayersResponse](docs/FavoritePlayersResponse.md)
214
228
  - [FrequentlyPlayedWithItem](docs/FrequentlyPlayedWithItem.md)
215
229
  - [FrequentlyVisitedClubItem](docs/FrequentlyVisitedClubItem.md)
230
+ - [GenderPercentage](docs/GenderPercentage.md)
216
231
  - [GetActiveClubs200Response](docs/GetActiveClubs200Response.md)
217
232
  - [GetClubInfos200Response](docs/GetClubInfos200Response.md)
218
- - [GetClubPlayers200Response](docs/GetClubPlayers200Response.md)
219
233
  - [GetClubUsersById200Response](docs/GetClubUsersById200Response.md)
220
234
  - [GetCourtsByClubAndSport200Response](docs/GetCourtsByClubAndSport200Response.md)
221
235
  - [GetLastSixMonthsTurnover200ResponseInner](docs/GetLastSixMonthsTurnover200ResponseInner.md)
@@ -232,6 +246,7 @@ Class | Method | HTTP request | Description
232
246
  - [InvoicesResponseInvoicesInner](docs/InvoicesResponseInvoicesInner.md)
233
247
  - [InvoicesResponsePagination](docs/InvoicesResponsePagination.md)
234
248
  - [LevelBySportsItem](docs/LevelBySportsItem.md)
249
+ - [Location](docs/Location.md)
235
250
  - [LoginRequestBody](docs/LoginRequestBody.md)
236
251
  - [LoginResponse](docs/LoginResponse.md)
237
252
  - [ManagerCancelBookingRequest](docs/ManagerCancelBookingRequest.md)
@@ -243,6 +258,7 @@ Class | Method | HTTP request | Description
243
258
  - [NoShowFeeResponseCaptureResultsInner](docs/NoShowFeeResponseCaptureResultsInner.md)
244
259
  - [NoShowFeeResponseCreatorChargeResult](docs/NoShowFeeResponseCreatorChargeResult.md)
245
260
  - [PaymentMethod](docs/PaymentMethod.md)
261
+ - [PaymentStatus](docs/PaymentStatus.md)
246
262
  - [PlayerWithPaymentMethod](docs/PlayerWithPaymentMethod.md)
247
263
  - [PriceResponse](docs/PriceResponse.md)
248
264
  - [ProfilePictureResponse](docs/ProfilePictureResponse.md)
@@ -264,7 +280,6 @@ Class | Method | HTTP request | Description
264
280
  - [SlotsResponse](docs/SlotsResponse.md)
265
281
  - [Sport](docs/Sport.md)
266
282
  - [SportResponse](docs/SportResponse.md)
267
- - [SportsResponse](docs/SportsResponse.md)
268
283
  - [StaffEventResponse](docs/StaffEventResponse.md)
269
284
  - [StripeStatus](docs/StripeStatus.md)
270
285
  - [SubscribeToClubRequestBody](docs/SubscribeToClubRequestBody.md)
@@ -288,7 +303,9 @@ Class | Method | HTTP request | Description
288
303
  - [UpdateUserCityRequestBody](docs/UpdateUserCityRequestBody.md)
289
304
  - [UpdateUserDescriptionRequestBody](docs/UpdateUserDescriptionRequestBody.md)
290
305
  - [UpdateUserRequestBody](docs/UpdateUserRequestBody.md)
306
+ - [UpdateUserRequestBodyLevelBySportsInner](docs/UpdateUserRequestBodyLevelBySportsInner.md)
291
307
  - [User](docs/User.md)
308
+ - [UserBookingItem](docs/UserBookingItem.md)
292
309
  - [UserBookingsResponse](docs/UserBookingsResponse.md)
293
310
  - [UserCityResponse](docs/UserCityResponse.md)
294
311
  - [UserDescriptionResponse](docs/UserDescriptionResponse.md)