@tennac-booking/sdk 1.0.33 → 1.0.34
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.
- package/.openapi-generator/FILES +9 -0
- package/README.md +14 -2
- package/api.ts +874 -82
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +615 -5
- package/dist/api.js +327 -4
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +615 -5
- package/dist/esm/api.js +320 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/ActiveClub.md +2 -0
- package/docs/BookingHistoryResponse.md +22 -0
- package/docs/BookingHistoryResponseHistoryInner.md +32 -0
- package/docs/BookingsApi.md +113 -0
- package/docs/BookingsStaffWeeklyWeekIdGet200Response.md +20 -0
- package/docs/CourtWithNameResponse.md +46 -0
- package/docs/CourtsWithNameResponse.md +22 -0
- package/docs/ManagerClubCourtsApi.md +2 -2
- package/docs/PaymentStatus.md +30 -0
- package/docs/SportResponse.md +4 -0
- package/docs/UpdateUserRequestBody.md +8 -2
- package/docs/UpdateUserRequestBodyLevelBySportsInner.md +22 -0
- package/docs/UserBookingItem.md +46 -0
- package/docs/UserBookingsApi.md +46 -0
- package/docs/UserProfileApi.md +53 -0
- package/docs/UserStaffResponse.md +6 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -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
|
|
@@ -115,6 +121,7 @@ docs/NoShowFeeResponse.md
|
|
|
115
121
|
docs/NoShowFeeResponseCaptureResultsInner.md
|
|
116
122
|
docs/NoShowFeeResponseCreatorChargeResult.md
|
|
117
123
|
docs/PaymentMethod.md
|
|
124
|
+
docs/PaymentStatus.md
|
|
118
125
|
docs/PlayerWithPaymentMethod.md
|
|
119
126
|
docs/PriceResponse.md
|
|
120
127
|
docs/ProfilePictureResponse.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
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @tennac-booking/sdk@1.0.
|
|
1
|
+
## @tennac-booking/sdk@1.0.34
|
|
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.
|
|
39
|
+
npm install @tennac-booking/sdk@1.0.34 --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)
|
|
@@ -105,6 +107,7 @@ Class | Method | HTTP request | Description
|
|
|
105
107
|
*UserAuthenticationApi* | [**signInOrSignUpWithGoogle**](docs/UserAuthenticationApi.md#signinorsignupwithgoogle) | **POST** /api/users/googleSignin | Authentifie ou crée un utilisateur via Google OAuth
|
|
106
108
|
*UserBookingsApi* | [**blockSlot**](docs/UserBookingsApi.md#blockslot) | **PATCH** /api/bookings/pre-book/{slotId} | Bloquer un créneau
|
|
107
109
|
*UserBookingsApi* | [**createBooking**](docs/UserBookingsApi.md#createbooking) | **POST** /api/bookings | Créer une réservation
|
|
110
|
+
*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
111
|
*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
112
|
*UserClubSlotsApi* | [**getAvailableSlotsByClub**](docs/UserClubSlotsApi.md#getavailableslotsbyclub) | **GET** /api/clubs/{clubID}/availableSlots | Obtenir tous les créneaux disponibles pour un club
|
|
110
113
|
*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 +127,7 @@ Class | Method | HTTP request | Description
|
|
|
124
127
|
*UserProfileApi* | [**getFrequentlyVisitedClub**](docs/UserProfileApi.md#getfrequentlyvisitedclub) | **GET** /api/users/me/frequentlyVisitedClub | Clubs les plus fréquemment visités par l\'utilisateur connecté
|
|
125
128
|
*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
129
|
*UserProfileApi* | [**getPublicUserProfile**](docs/UserProfileApi.md#getpublicuserprofile) | **GET** /api/users/profile/{id} | Récupère le profil public d\'un utilisateur par son ID
|
|
130
|
+
*UserProfileApi* | [**getUserBookingDetail**](docs/UserProfileApi.md#getuserbookingdetail) | **GET** /api/users/me/booking-detail/{bookingId} | Récupère le detéail d\'une réservation
|
|
127
131
|
*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
132
|
*UserProfileApi* | [**getUserCity**](docs/UserProfileApi.md#getusercity) | **GET** /api/users/me/city | Récupère la ville de l\'utilisateur connecté
|
|
129
133
|
*UserProfileApi* | [**getUserDescription**](docs/UserProfileApi.md#getuserdescription) | **GET** /api/users/me/description | Récupère la description de l\'utilisateur connecté
|
|
@@ -156,6 +160,8 @@ Class | Method | HTTP request | Description
|
|
|
156
160
|
- [ApiErrorResponse](docs/ApiErrorResponse.md)
|
|
157
161
|
- [BlockSlotResponse](docs/BlockSlotResponse.md)
|
|
158
162
|
- [Booking](docs/Booking.md)
|
|
163
|
+
- [BookingHistoryResponse](docs/BookingHistoryResponse.md)
|
|
164
|
+
- [BookingHistoryResponseHistoryInner](docs/BookingHistoryResponseHistoryInner.md)
|
|
159
165
|
- [BookingPaymentStatusResponse](docs/BookingPaymentStatusResponse.md)
|
|
160
166
|
- [BookingPaymentStatusResponseBooking](docs/BookingPaymentStatusResponseBooking.md)
|
|
161
167
|
- [BookingPaymentStatusResponsePaymentStatusInner](docs/BookingPaymentStatusResponsePaymentStatusInner.md)
|
|
@@ -168,6 +174,7 @@ Class | Method | HTTP request | Description
|
|
|
168
174
|
- [BookingPopulatedUserId](docs/BookingPopulatedUserId.md)
|
|
169
175
|
- [BookingResponse](docs/BookingResponse.md)
|
|
170
176
|
- [BookingStatus](docs/BookingStatus.md)
|
|
177
|
+
- [BookingsStaffWeeklyWeekIdGet200Response](docs/BookingsStaffWeeklyWeekIdGet200Response.md)
|
|
171
178
|
- [CancelBookingResponse](docs/CancelBookingResponse.md)
|
|
172
179
|
- [CancelBookingResponseBooking](docs/CancelBookingResponseBooking.md)
|
|
173
180
|
- [ChangePasswordRequestBody](docs/ChangePasswordRequestBody.md)
|
|
@@ -190,7 +197,9 @@ Class | Method | HTTP request | Description
|
|
|
190
197
|
- [CourtDeleteResponse](docs/CourtDeleteResponse.md)
|
|
191
198
|
- [CourtResponse](docs/CourtResponse.md)
|
|
192
199
|
- [CourtStatus](docs/CourtStatus.md)
|
|
200
|
+
- [CourtWithNameResponse](docs/CourtWithNameResponse.md)
|
|
193
201
|
- [CourtsResponse](docs/CourtsResponse.md)
|
|
202
|
+
- [CourtsWithNameResponse](docs/CourtsWithNameResponse.md)
|
|
194
203
|
- [CreateBookingRequest](docs/CreateBookingRequest.md)
|
|
195
204
|
- [CreateClubRoleRequestBody](docs/CreateClubRoleRequestBody.md)
|
|
196
205
|
- [CreateCourtRequest](docs/CreateCourtRequest.md)
|
|
@@ -243,6 +252,7 @@ Class | Method | HTTP request | Description
|
|
|
243
252
|
- [NoShowFeeResponseCaptureResultsInner](docs/NoShowFeeResponseCaptureResultsInner.md)
|
|
244
253
|
- [NoShowFeeResponseCreatorChargeResult](docs/NoShowFeeResponseCreatorChargeResult.md)
|
|
245
254
|
- [PaymentMethod](docs/PaymentMethod.md)
|
|
255
|
+
- [PaymentStatus](docs/PaymentStatus.md)
|
|
246
256
|
- [PlayerWithPaymentMethod](docs/PlayerWithPaymentMethod.md)
|
|
247
257
|
- [PriceResponse](docs/PriceResponse.md)
|
|
248
258
|
- [ProfilePictureResponse](docs/ProfilePictureResponse.md)
|
|
@@ -288,7 +298,9 @@ Class | Method | HTTP request | Description
|
|
|
288
298
|
- [UpdateUserCityRequestBody](docs/UpdateUserCityRequestBody.md)
|
|
289
299
|
- [UpdateUserDescriptionRequestBody](docs/UpdateUserDescriptionRequestBody.md)
|
|
290
300
|
- [UpdateUserRequestBody](docs/UpdateUserRequestBody.md)
|
|
301
|
+
- [UpdateUserRequestBodyLevelBySportsInner](docs/UpdateUserRequestBodyLevelBySportsInner.md)
|
|
291
302
|
- [User](docs/User.md)
|
|
303
|
+
- [UserBookingItem](docs/UserBookingItem.md)
|
|
292
304
|
- [UserBookingsResponse](docs/UserBookingsResponse.md)
|
|
293
305
|
- [UserCityResponse](docs/UserCityResponse.md)
|
|
294
306
|
- [UserDescriptionResponse](docs/UserDescriptionResponse.md)
|