@tennac-booking/sdk 1.0.25 → 1.0.27
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 +16 -0
- package/README.md +22 -2
- package/api.ts +1208 -7
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +816 -5
- package/dist/api.js +715 -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 +816 -5
- package/dist/esm/api.js +696 -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/ClubsApi.md +61 -0
- package/docs/CreateEventRequest.md +30 -0
- package/docs/DeleteEvent200Response.md +20 -0
- package/docs/Event.md +40 -0
- package/docs/EventBooking.md +32 -0
- package/docs/EventRegistrationRequest.md +22 -0
- package/docs/EventsApi.md +119 -0
- package/docs/GetClubUsersById200Response.md +20 -0
- package/docs/GetPublishedEventsByClubId200Response.md +20 -0
- package/docs/ManagerEventResponse.md +22 -0
- package/docs/ManagerEventsApi.md +227 -0
- package/docs/PublicClubUser.md +34 -0
- package/docs/PublicClubUserLevelBySportsInner.md +22 -0
- package/docs/RegisterForEvent201Response.md +20 -0
- package/docs/StaffEventResponse.md +20 -0
- package/docs/StaffEventsApi.md +54 -0
- package/index.ts +1 -1
- package/package.json +5 -4
package/.openapi-generator/FILES
CHANGED
|
@@ -49,6 +49,7 @@ docs/ClubRole.md
|
|
|
49
49
|
docs/ClubRoleResponse.md
|
|
50
50
|
docs/ClubRolesResponse.md
|
|
51
51
|
docs/ClubSettings.md
|
|
52
|
+
docs/ClubsApi.md
|
|
52
53
|
docs/ClubsResponse.md
|
|
53
54
|
docs/ConfirmPaymentMethodSetupRequestBody.md
|
|
54
55
|
docs/ConfirmPaymentMethodSetupResponse.md
|
|
@@ -61,6 +62,7 @@ docs/CreateClubRequest.md
|
|
|
61
62
|
docs/CreateClubRoleRequestBody.md
|
|
62
63
|
docs/CreateClubSettingsRequest.md
|
|
63
64
|
docs/CreateCourtRequest.md
|
|
65
|
+
docs/CreateEventRequest.md
|
|
64
66
|
docs/CreatePriceRequest.md
|
|
65
67
|
docs/CreateSportRequest.md
|
|
66
68
|
docs/CreateSubscriptionPlanRequest.md
|
|
@@ -68,9 +70,14 @@ docs/DailyTurnoverResponse.md
|
|
|
68
70
|
docs/DeleteClub200Response.md
|
|
69
71
|
docs/DeleteClubRole200Response.md
|
|
70
72
|
docs/DeleteClubSettingsRequest.md
|
|
73
|
+
docs/DeleteEvent200Response.md
|
|
71
74
|
docs/DeleteSlotsByClubInRange200Response.md
|
|
72
75
|
docs/DeleteSlotsResponse.md
|
|
73
76
|
docs/DeleteSport200Response.md
|
|
77
|
+
docs/Event.md
|
|
78
|
+
docs/EventBooking.md
|
|
79
|
+
docs/EventRegistrationRequest.md
|
|
80
|
+
docs/EventsApi.md
|
|
74
81
|
docs/FavoriteClubResponse.md
|
|
75
82
|
docs/FrequentlyPlayedWithItem.md
|
|
76
83
|
docs/FrequentlyVisitedClubItem.md
|
|
@@ -78,9 +85,11 @@ docs/GenerateSlotsResponse.md
|
|
|
78
85
|
docs/GetActiveClubs200Response.md
|
|
79
86
|
docs/GetClubInfos200Response.md
|
|
80
87
|
docs/GetClubSettingsRequest.md
|
|
88
|
+
docs/GetClubUsersById200Response.md
|
|
81
89
|
docs/GetCourtsByClubAndSport200Response.md
|
|
82
90
|
docs/GetLastSixMonthsTurnover200ResponseInner.md
|
|
83
91
|
docs/GetNumberOfClubUsers200Response.md
|
|
92
|
+
docs/GetPublishedEventsByClubId200Response.md
|
|
84
93
|
docs/GetUserRolesResponse.md
|
|
85
94
|
docs/GetUserRolesResponseRolesInner.md
|
|
86
95
|
docs/GetUserSubscriptionsResponse.md
|
|
@@ -103,6 +112,8 @@ docs/ManagerClubRolesApi.md
|
|
|
103
112
|
docs/ManagerClubSlotsApi.md
|
|
104
113
|
docs/ManagerClubSubscriptionsApi.md
|
|
105
114
|
docs/ManagerClubsApi.md
|
|
115
|
+
docs/ManagerEventResponse.md
|
|
116
|
+
docs/ManagerEventsApi.md
|
|
106
117
|
docs/ManagerSportsApi.md
|
|
107
118
|
docs/MonthlyTurnoverResponse.md
|
|
108
119
|
docs/NoShowFeeResponse.md
|
|
@@ -113,8 +124,11 @@ docs/PlayerWithPaymentMethod.md
|
|
|
113
124
|
docs/PriceResponse.md
|
|
114
125
|
docs/ProfilePictureResponse.md
|
|
115
126
|
docs/ProfileVisibilityResponse.md
|
|
127
|
+
docs/PublicClubUser.md
|
|
128
|
+
docs/PublicClubUserLevelBySportsInner.md
|
|
116
129
|
docs/RefreshTokenRequestBody.md
|
|
117
130
|
docs/RefreshTokenResponse.md
|
|
131
|
+
docs/RegisterForEvent201Response.md
|
|
118
132
|
docs/RegisterRequestBody.md
|
|
119
133
|
docs/RestoreSubscriptionPlanForClub200Response.md
|
|
120
134
|
docs/SetupPaymentMethodRequestBody.md
|
|
@@ -129,6 +143,8 @@ docs/SportsResponse.md
|
|
|
129
143
|
docs/StaffClubAnalyticsApi.md
|
|
130
144
|
docs/StaffClubBookingsApi.md
|
|
131
145
|
docs/StaffClubsApi.md
|
|
146
|
+
docs/StaffEventResponse.md
|
|
147
|
+
docs/StaffEventsApi.md
|
|
132
148
|
docs/StaffProfileApi.md
|
|
133
149
|
docs/StripeStatus.md
|
|
134
150
|
docs/SubscribeToClubRequestBody.md
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @tennac-booking/sdk@1.0.
|
|
1
|
+
## @tennac-booking/sdk@1.0.27
|
|
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.27 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -72,6 +72,9 @@ Class | Method | HTTP request | Description
|
|
|
72
72
|
*ClubAnalyticsApi* | [**getInvoices**](docs/ClubAnalyticsApi.md#getinvoices) | **GET** /api/clubs/invoices | Récupérer les factures du club courant
|
|
73
73
|
*ClubAnalyticsApi* | [**getMonthlyTurnOver**](docs/ClubAnalyticsApi.md#getmonthlyturnover) | **GET** /api/analytics/monthlyTurnover | Chiffre d\'affaires mensuel (club courant)
|
|
74
74
|
*ClubAnalyticsApi* | [**getYearlyTurnOver**](docs/ClubAnalyticsApi.md#getyearlyturnover) | **GET** /api/analytics/yearlyTurnover | Chiffre d\'affaires annuel (club courant)
|
|
75
|
+
*ClubsApi* | [**getClubUsersById**](docs/ClubsApi.md#getclubusersbyid) | **GET** /api/clubs/{id}/clubUsers | Récupérer la liste publique des utilisateurs d\'un club
|
|
76
|
+
*EventsApi* | [**getPublishedEventsByClubId**](docs/EventsApi.md#getpublishedeventsbyclubid) | **GET** /api/events | Get all published events for a club
|
|
77
|
+
*EventsApi* | [**registerForEvent**](docs/EventsApi.md#registerforevent) | **POST** /api/events/{eventId}/register | Register for an event
|
|
75
78
|
*ManagerBookingsApi* | [**applyNoShowFee**](docs/ManagerBookingsApi.md#applynoshowfee) | **POST** /api/bookings/{bookingId}/apply-noshow-fee | Appliquer les frais de no-show
|
|
76
79
|
*ManagerBookingsApi* | [**managerCancelBooking**](docs/ManagerBookingsApi.md#managercancelbooking) | **DELETE** /api/bookings/{bookingId}/manager-cancel | Annuler une réservation (gestionnaire)
|
|
77
80
|
*ManagerClubCourtsApi* | [**createCourtForClub**](docs/ManagerClubCourtsApi.md#createcourtforclub) | **POST** /api/clubs/courts | Créer un terrain pour le club courant
|
|
@@ -95,6 +98,10 @@ Class | Method | HTTP request | Description
|
|
|
95
98
|
*ManagerClubsApi* | [**getClubMembers**](docs/ManagerClubsApi.md#getclubmembers) | **GET** /api/clubs/members | Récupérer les membres du club courant
|
|
96
99
|
*ManagerClubsApi* | [**getClubRoles**](docs/ManagerClubsApi.md#getclubroles) | **GET** /api/clubs/roles | Récupérer les rôles du club courant
|
|
97
100
|
*ManagerClubsApi* | [**updateClubNoId**](docs/ManagerClubsApi.md#updateclubnoid) | **PUT** /api/clubs | Mettre à jour un club existant (club courant)
|
|
101
|
+
*ManagerEventsApi* | [**createEvent**](docs/ManagerEventsApi.md#createevent) | **POST** /api/events/manager/createEvent | Create a new event
|
|
102
|
+
*ManagerEventsApi* | [**deleteEvent**](docs/ManagerEventsApi.md#deleteevent) | **DELETE** /api/events/manager/deleteEvent/{eventId} | Delete an event
|
|
103
|
+
*ManagerEventsApi* | [**publishEvent**](docs/ManagerEventsApi.md#publishevent) | **PUT** /api/events/manager/publishEvent/{eventId} | Publish an event
|
|
104
|
+
*ManagerEventsApi* | [**unpublishEvent**](docs/ManagerEventsApi.md#unpublishevent) | **PUT** /api/events/manager/unpublishEvent/{eventId} | Unpublish an event
|
|
98
105
|
*ManagerSportsApi* | [**createSport**](docs/ManagerSportsApi.md#createsport) | **POST** /api/sports | Créer un sport dans un club
|
|
99
106
|
*ManagerSportsApi* | [**deleteSport**](docs/ManagerSportsApi.md#deletesport) | **DELETE** /api/sports/{id} | Supprimer un sport
|
|
100
107
|
*ManagerSportsApi* | [**updateSport**](docs/ManagerSportsApi.md#updatesport) | **PUT** /api/sports/{id} | Mettre à jour un sport
|
|
@@ -103,6 +110,7 @@ Class | Method | HTTP request | Description
|
|
|
103
110
|
*StaffClubBookingsApi* | [**getTenNextBookings**](docs/StaffClubBookingsApi.md#gettennextbookings) | **GET** /api/analytics/next-bookings | Get the ten next bookings for the current club
|
|
104
111
|
*StaffClubsApi* | [**getClubInfos**](docs/StaffClubsApi.md#getclubinfos) | **GET** /api/clubs/infos | Get current club information
|
|
105
112
|
*StaffClubsApi* | [**getClubSettings**](docs/StaffClubsApi.md#getclubsettings) | **GET** /api/club-settings | Récupère les paramètres d’un club
|
|
113
|
+
*StaffEventsApi* | [**getEventsByClub**](docs/StaffEventsApi.md#geteventsbyclub) | **GET** /api/events/staff/getEvents | Get all events for current club (including unpublished)
|
|
106
114
|
*StaffProfileApi* | [**getUserRolesInClubs**](docs/StaffProfileApi.md#getuserrolesinclubs) | **GET** /api/users/me/roles | Récupère les rôles de l\'utilisateur dans les clubs
|
|
107
115
|
*UserApi* | [**updateCustomer**](docs/UserApi.md#updatecustomer) | **PUT** /api/users/me/customer | Met à jour le Customer Stripe de l\'utilisateur
|
|
108
116
|
*UserAuthenticationApi* | [**login**](docs/UserAuthenticationApi.md#login) | **POST** /api/users/login | Authentifie un utilisateur
|
|
@@ -193,6 +201,7 @@ Class | Method | HTTP request | Description
|
|
|
193
201
|
- [CreateClubRoleRequestBody](docs/CreateClubRoleRequestBody.md)
|
|
194
202
|
- [CreateClubSettingsRequest](docs/CreateClubSettingsRequest.md)
|
|
195
203
|
- [CreateCourtRequest](docs/CreateCourtRequest.md)
|
|
204
|
+
- [CreateEventRequest](docs/CreateEventRequest.md)
|
|
196
205
|
- [CreatePriceRequest](docs/CreatePriceRequest.md)
|
|
197
206
|
- [CreateSportRequest](docs/CreateSportRequest.md)
|
|
198
207
|
- [CreateSubscriptionPlanRequest](docs/CreateSubscriptionPlanRequest.md)
|
|
@@ -200,9 +209,13 @@ Class | Method | HTTP request | Description
|
|
|
200
209
|
- [DeleteClub200Response](docs/DeleteClub200Response.md)
|
|
201
210
|
- [DeleteClubRole200Response](docs/DeleteClubRole200Response.md)
|
|
202
211
|
- [DeleteClubSettingsRequest](docs/DeleteClubSettingsRequest.md)
|
|
212
|
+
- [DeleteEvent200Response](docs/DeleteEvent200Response.md)
|
|
203
213
|
- [DeleteSlotsByClubInRange200Response](docs/DeleteSlotsByClubInRange200Response.md)
|
|
204
214
|
- [DeleteSlotsResponse](docs/DeleteSlotsResponse.md)
|
|
205
215
|
- [DeleteSport200Response](docs/DeleteSport200Response.md)
|
|
216
|
+
- [Event](docs/Event.md)
|
|
217
|
+
- [EventBooking](docs/EventBooking.md)
|
|
218
|
+
- [EventRegistrationRequest](docs/EventRegistrationRequest.md)
|
|
206
219
|
- [FavoriteClubResponse](docs/FavoriteClubResponse.md)
|
|
207
220
|
- [FrequentlyPlayedWithItem](docs/FrequentlyPlayedWithItem.md)
|
|
208
221
|
- [FrequentlyVisitedClubItem](docs/FrequentlyVisitedClubItem.md)
|
|
@@ -210,9 +223,11 @@ Class | Method | HTTP request | Description
|
|
|
210
223
|
- [GetActiveClubs200Response](docs/GetActiveClubs200Response.md)
|
|
211
224
|
- [GetClubInfos200Response](docs/GetClubInfos200Response.md)
|
|
212
225
|
- [GetClubSettingsRequest](docs/GetClubSettingsRequest.md)
|
|
226
|
+
- [GetClubUsersById200Response](docs/GetClubUsersById200Response.md)
|
|
213
227
|
- [GetCourtsByClubAndSport200Response](docs/GetCourtsByClubAndSport200Response.md)
|
|
214
228
|
- [GetLastSixMonthsTurnover200ResponseInner](docs/GetLastSixMonthsTurnover200ResponseInner.md)
|
|
215
229
|
- [GetNumberOfClubUsers200Response](docs/GetNumberOfClubUsers200Response.md)
|
|
230
|
+
- [GetPublishedEventsByClubId200Response](docs/GetPublishedEventsByClubId200Response.md)
|
|
216
231
|
- [GetUserRolesResponse](docs/GetUserRolesResponse.md)
|
|
217
232
|
- [GetUserRolesResponseRolesInner](docs/GetUserRolesResponseRolesInner.md)
|
|
218
233
|
- [GetUserSubscriptionsResponse](docs/GetUserSubscriptionsResponse.md)
|
|
@@ -229,6 +244,7 @@ Class | Method | HTTP request | Description
|
|
|
229
244
|
- [ManagerCancelBookingRequest](docs/ManagerCancelBookingRequest.md)
|
|
230
245
|
- [ManagerCancelBookingResponse](docs/ManagerCancelBookingResponse.md)
|
|
231
246
|
- [ManagerCancelBookingResponseBooking](docs/ManagerCancelBookingResponseBooking.md)
|
|
247
|
+
- [ManagerEventResponse](docs/ManagerEventResponse.md)
|
|
232
248
|
- [MonthlyTurnoverResponse](docs/MonthlyTurnoverResponse.md)
|
|
233
249
|
- [NoShowFeeResponse](docs/NoShowFeeResponse.md)
|
|
234
250
|
- [NoShowFeeResponseCaptureResultsInner](docs/NoShowFeeResponseCaptureResultsInner.md)
|
|
@@ -238,8 +254,11 @@ Class | Method | HTTP request | Description
|
|
|
238
254
|
- [PriceResponse](docs/PriceResponse.md)
|
|
239
255
|
- [ProfilePictureResponse](docs/ProfilePictureResponse.md)
|
|
240
256
|
- [ProfileVisibilityResponse](docs/ProfileVisibilityResponse.md)
|
|
257
|
+
- [PublicClubUser](docs/PublicClubUser.md)
|
|
258
|
+
- [PublicClubUserLevelBySportsInner](docs/PublicClubUserLevelBySportsInner.md)
|
|
241
259
|
- [RefreshTokenRequestBody](docs/RefreshTokenRequestBody.md)
|
|
242
260
|
- [RefreshTokenResponse](docs/RefreshTokenResponse.md)
|
|
261
|
+
- [RegisterForEvent201Response](docs/RegisterForEvent201Response.md)
|
|
243
262
|
- [RegisterRequestBody](docs/RegisterRequestBody.md)
|
|
244
263
|
- [RestoreSubscriptionPlanForClub200Response](docs/RestoreSubscriptionPlanForClub200Response.md)
|
|
245
264
|
- [SetupPaymentMethodRequestBody](docs/SetupPaymentMethodRequestBody.md)
|
|
@@ -251,6 +270,7 @@ Class | Method | HTTP request | Description
|
|
|
251
270
|
- [Sport](docs/Sport.md)
|
|
252
271
|
- [SportResponse](docs/SportResponse.md)
|
|
253
272
|
- [SportsResponse](docs/SportsResponse.md)
|
|
273
|
+
- [StaffEventResponse](docs/StaffEventResponse.md)
|
|
254
274
|
- [StripeStatus](docs/StripeStatus.md)
|
|
255
275
|
- [SubscribeToClubRequestBody](docs/SubscribeToClubRequestBody.md)
|
|
256
276
|
- [SubscriptionPlan](docs/SubscriptionPlan.md)
|