@tennac-booking/sdk 1.0.13 → 1.0.14

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 (88) hide show
  1. package/.openapi-generator/FILES +29 -5
  2. package/README.md +58 -49
  3. package/api.ts +3581 -3057
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +2134 -1695
  8. package/dist/api.js +2693 -2281
  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 +2134 -1695
  16. package/dist/esm/api.js +2435 -2081
  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/AdminClubSlotsApi.md +62 -0
  28. package/docs/AdminClubsApi.md +108 -0
  29. package/docs/ApiErrorResponse.md +1 -1
  30. package/docs/BookingsApi.md +4 -60
  31. package/docs/ChangePasswordResponse.md +1 -1
  32. package/docs/{ClubSportsApi.md → ClubAnalyticsApi.md} +20 -27
  33. package/docs/ClubBookingsApi.md +59 -0
  34. package/docs/ClubInfoResponse.md +6 -6
  35. package/docs/ClubResponse.md +6 -6
  36. package/docs/ClubRoleResponse.md +6 -6
  37. package/docs/ClubRolesApi.md +8 -8
  38. package/docs/ClubSettings.md +7 -1
  39. package/docs/ClubSlotsApi.md +0 -225
  40. package/docs/ClubsApi.md +6 -425
  41. package/docs/ClubsResponse.md +22 -0
  42. package/docs/CourtResponse.md +7 -7
  43. package/docs/CourtStatus.md +5 -2
  44. package/docs/CreateClubRequest.md +12 -10
  45. package/docs/CreateClubSettingsRequest.md +28 -0
  46. package/docs/CreateCourtRequest.md +2 -0
  47. package/docs/CreatePriceRequest.md +4 -4
  48. package/docs/CreateSportRequest.md +4 -0
  49. package/docs/CreateSubscriptionPlanRequest.md +3 -3
  50. package/docs/DeleteClubSettingsRequest.md +20 -0
  51. package/docs/{DeleteClub200Response.md → DeleteSlotsResponse.md} +3 -3
  52. package/docs/{GenerateSlotsForNextThreeWeeks201Response.md → DeleteSport200Response.md} +3 -3
  53. package/docs/GenerateSlotsResponse.md +20 -0
  54. package/docs/GetClubInfos200Response.md +30 -0
  55. package/docs/GetCourtsByClubAndSport200Response.md +26 -0
  56. package/docs/GetLastSixMonthsTurnover200ResponseInner.md +24 -0
  57. package/docs/GetNumberOfClubUsers200Response.md +20 -0
  58. package/docs/GetUserRolesResponseRolesInner.md +4 -6
  59. package/docs/GoogleSignInRequestBody.md +2 -2
  60. package/docs/GoogleSignInResponse.md +2 -8
  61. package/docs/{ClubCourtsApi.md → ManagerClubCourtsApi.md} +5 -5
  62. package/docs/ManagerClubSlotsApi.md +125 -0
  63. package/docs/ManagerClubsApi.md +280 -0
  64. package/docs/PriceResponse.md +2 -8
  65. package/docs/RefreshTokenResponse.md +2 -6
  66. package/docs/SlotResponse.md +2 -8
  67. package/docs/SportResponse.md +0 -2
  68. package/docs/SportsApi.md +10 -120
  69. package/docs/StaffClubSettingsApi.md +62 -0
  70. package/docs/StaffSportsApi.md +62 -0
  71. package/docs/SubscriptionPlanResponse.md +4 -8
  72. package/docs/UpdateClubSettingsRequest.md +28 -0
  73. package/docs/UpdateSportRequest.md +4 -0
  74. package/docs/UpdateSubscriptionPlanRequest.md +3 -3
  75. package/docs/UpdateSubscriptionPlanResponse.md +2 -2
  76. package/docs/{ClubSettingsApi.md → UserAuthenticationApi.md} +54 -55
  77. package/docs/UserBookingsApi.md +63 -0
  78. package/docs/UserClubCourtsApi.md +64 -0
  79. package/docs/UserClubSlotsApi.md +60 -0
  80. package/docs/UserClubSportsApi.md +60 -0
  81. package/docs/UserClubsApi.md +53 -0
  82. package/docs/UserProfileApi.md +271 -0
  83. package/docs/UserResponse.md +8 -14
  84. package/docs/UserSubscriptionsApi.md +222 -0
  85. package/docs/UsersApi.md +0 -725
  86. package/docs/UsersResponse.md +22 -0
  87. package/index.ts +1 -1
  88. package/package.json +32 -1
@@ -5,11 +5,14 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **clubId** | **string** | | [default to undefined]
8
+ **id** | **string** | | [optional] [default to undefined]
9
+ **clubId** | **string** | | [optional] [default to undefined]
9
10
  **reservationStartTime** | **string** | | [optional] [default to undefined]
10
11
  **reservationEndTime** | **string** | | [optional] [default to undefined]
11
12
  **maxSimultaneousReservations** | **number** | | [optional] [default to undefined]
12
13
  **allowWeekendReservations** | **boolean** | | [optional] [default to undefined]
14
+ **createdAt** | **string** | | [optional] [default to undefined]
15
+ **updatedAt** | **string** | | [optional] [default to undefined]
13
16
 
14
17
  ## Example
15
18
 
@@ -17,11 +20,14 @@ Name | Type | Description | Notes
17
20
  import { ClubSettings } from '@tennac-booking/sdk';
18
21
 
19
22
  const instance: ClubSettings = {
23
+ id,
20
24
  clubId,
21
25
  reservationStartTime,
22
26
  reservationEndTime,
23
27
  maxSimultaneousReservations,
24
28
  allowWeekendReservations,
29
+ createdAt,
30
+ updatedAt,
25
31
  };
26
32
  ```
27
33
 
@@ -4,175 +4,8 @@ All URIs are relative to *https://api.mon-domaine.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**deleteSlotsByClubInRange**](#deleteslotsbyclubinrange) | **DELETE** /api/clubs/{id}/slots | Supprimer des créneaux pour un club sur une plage de dates|
8
- |[**generateSlotsForNextThreeWeeks**](#generateslotsfornextthreeweeks) | **POST** /api/clubs/{id}/generate-slots | Générer les créneaux pour les 3 semaines à venir|
9
- |[**getAvailableSlotsByClub**](#getavailableslotsbyclub) | **GET** /api/clubs/{clubID}/availableSlots/ | Obtenir tous les créneaux disponibles pour un club|
10
7
  |[**getAvailableSlotsBySports**](#getavailableslotsbysports) | **GET** /api/clubs/{id}/sports/{sportId}/slots | Obtenir tous les slots disponibles pour un sport dans un club|
11
8
  |[**getAvailableSlotsBySportsAndDay**](#getavailableslotsbysportsandday) | **GET** /api/clubs/{id}/sports/{sportId}/slots/{day} | Obtenir les slots disponibles pour un jour donné|
12
- |[**getSlotsByClub**](#getslotsbyclub) | **GET** /api/clubs/{id}/slots | Récupérer tous les créneaux pour un club|
13
-
14
- # **deleteSlotsByClubInRange**
15
- > DeleteSlotsByClubInRange200Response deleteSlotsByClubInRange()
16
-
17
-
18
- ### Example
19
-
20
- ```typescript
21
- import {
22
- ClubSlotsApi,
23
- Configuration
24
- } from '@tennac-booking/sdk';
25
-
26
- const configuration = new Configuration();
27
- const apiInstance = new ClubSlotsApi(configuration);
28
-
29
- let id: string; //ID du club (default to undefined)
30
- let start: string; //Date de début (format ISO) (default to undefined)
31
- let end: string; //Date de fin (format ISO) (default to undefined)
32
-
33
- const { status, data } = await apiInstance.deleteSlotsByClubInRange(
34
- id,
35
- start,
36
- end
37
- );
38
- ```
39
-
40
- ### Parameters
41
-
42
- |Name | Type | Description | Notes|
43
- |------------- | ------------- | ------------- | -------------|
44
- | **id** | [**string**] | ID du club | defaults to undefined|
45
- | **start** | [**string**] | Date de début (format ISO) | defaults to undefined|
46
- | **end** | [**string**] | Date de fin (format ISO) | defaults to undefined|
47
-
48
-
49
- ### Return type
50
-
51
- **DeleteSlotsByClubInRange200Response**
52
-
53
- ### Authorization
54
-
55
- [bearerAuth](../README.md#bearerAuth)
56
-
57
- ### HTTP request headers
58
-
59
- - **Content-Type**: Not defined
60
- - **Accept**: application/json
61
-
62
-
63
- ### HTTP response details
64
- | Status code | Description | Response headers |
65
- |-------------|-------------|------------------|
66
- |**200** | Créneaux supprimés avec succès | - |
67
- |**400** | Requête invalide | - |
68
- |**500** | Erreur serveur interne | - |
69
-
70
- [[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)
71
-
72
- # **generateSlotsForNextThreeWeeks**
73
- > GenerateSlotsForNextThreeWeeks201Response generateSlotsForNextThreeWeeks()
74
-
75
-
76
- ### Example
77
-
78
- ```typescript
79
- import {
80
- ClubSlotsApi,
81
- Configuration
82
- } from '@tennac-booking/sdk';
83
-
84
- const configuration = new Configuration();
85
- const apiInstance = new ClubSlotsApi(configuration);
86
-
87
- let id: string; //ID du club (default to undefined)
88
-
89
- const { status, data } = await apiInstance.generateSlotsForNextThreeWeeks(
90
- id
91
- );
92
- ```
93
-
94
- ### Parameters
95
-
96
- |Name | Type | Description | Notes|
97
- |------------- | ------------- | ------------- | -------------|
98
- | **id** | [**string**] | ID du club | defaults to undefined|
99
-
100
-
101
- ### Return type
102
-
103
- **GenerateSlotsForNextThreeWeeks201Response**
104
-
105
- ### Authorization
106
-
107
- [bearerAuth](../README.md#bearerAuth)
108
-
109
- ### HTTP request headers
110
-
111
- - **Content-Type**: Not defined
112
- - **Accept**: application/json
113
-
114
-
115
- ### HTTP response details
116
- | Status code | Description | Response headers |
117
- |-------------|-------------|------------------|
118
- |**201** | Créneaux générés avec succès | - |
119
- |**400** | Requête invalide | - |
120
- |**404** | Ressource non trouvée | - |
121
- |**500** | Erreur serveur interne | - |
122
-
123
- [[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)
124
-
125
- # **getAvailableSlotsByClub**
126
- > SlotsResponse getAvailableSlotsByClub()
127
-
128
-
129
- ### Example
130
-
131
- ```typescript
132
- import {
133
- ClubSlotsApi,
134
- Configuration
135
- } from '@tennac-booking/sdk';
136
-
137
- const configuration = new Configuration();
138
- const apiInstance = new ClubSlotsApi(configuration);
139
-
140
- let clubID: string; //ID du club (default to undefined)
141
-
142
- const { status, data } = await apiInstance.getAvailableSlotsByClub(
143
- clubID
144
- );
145
- ```
146
-
147
- ### Parameters
148
-
149
- |Name | Type | Description | Notes|
150
- |------------- | ------------- | ------------- | -------------|
151
- | **clubID** | [**string**] | ID du club | defaults to undefined|
152
-
153
-
154
- ### Return type
155
-
156
- **SlotsResponse**
157
-
158
- ### Authorization
159
-
160
- [bearerAuth](../README.md#bearerAuth)
161
-
162
- ### HTTP request headers
163
-
164
- - **Content-Type**: Not defined
165
- - **Accept**: application/json
166
-
167
-
168
- ### HTTP response details
169
- | Status code | Description | Response headers |
170
- |-------------|-------------|------------------|
171
- |**200** | Liste des créneaux disponibles pour le club | - |
172
- |**400** | Requête invalide | - |
173
- |**500** | Erreur serveur interne | - |
174
-
175
- [[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)
176
9
 
177
10
  # **getAvailableSlotsBySports**
178
11
  > SlotsResponse getAvailableSlotsBySports()
@@ -293,61 +126,3 @@ const { status, data } = await apiInstance.getAvailableSlotsBySportsAndDay(
293
126
 
294
127
  [[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)
295
128
 
296
- # **getSlotsByClub**
297
- > SlotsResponse getSlotsByClub()
298
-
299
-
300
- ### Example
301
-
302
- ```typescript
303
- import {
304
- ClubSlotsApi,
305
- Configuration
306
- } from '@tennac-booking/sdk';
307
-
308
- const configuration = new Configuration();
309
- const apiInstance = new ClubSlotsApi(configuration);
310
-
311
- let id: string; //ID du club (default to undefined)
312
- let start: string; //Date de début (format ISO) (optional) (default to undefined)
313
- let end: string; //Date de fin (format ISO) (optional) (default to undefined)
314
-
315
- const { status, data } = await apiInstance.getSlotsByClub(
316
- id,
317
- start,
318
- end
319
- );
320
- ```
321
-
322
- ### Parameters
323
-
324
- |Name | Type | Description | Notes|
325
- |------------- | ------------- | ------------- | -------------|
326
- | **id** | [**string**] | ID du club | defaults to undefined|
327
- | **start** | [**string**] | Date de début (format ISO) | (optional) defaults to undefined|
328
- | **end** | [**string**] | Date de fin (format ISO) | (optional) defaults to undefined|
329
-
330
-
331
- ### Return type
332
-
333
- **SlotsResponse**
334
-
335
- ### Authorization
336
-
337
- [bearerAuth](../README.md#bearerAuth)
338
-
339
- ### HTTP request headers
340
-
341
- - **Content-Type**: Not defined
342
- - **Accept**: application/json
343
-
344
-
345
- ### HTTP response details
346
- | Status code | Description | Response headers |
347
- |-------------|-------------|------------------|
348
- |**200** | Liste des créneaux du club | - |
349
- |**400** | Requête invalide | - |
350
- |**500** | Erreur serveur interne | - |
351
-
352
- [[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)
353
-