@tennac-booking/sdk 1.0.107 → 1.0.109

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.
@@ -4,7 +4,75 @@ All URIs are relative to *http://localhost*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**getDailyEvents**](#getdailyevents) | **GET** /api/events/calendar/daily | |
7
8
  |[**getEventsByClub**](#geteventsbyclub) | **GET** /api/events/staff/getEvents | |
9
+ |[**getMonthlyEvents**](#getmonthlyevents) | **GET** /api/events/calendar/monthly | |
10
+ |[**getWeeklyEvents**](#getweeklyevents) | **GET** /api/events/calendar/weekly | |
11
+
12
+ # **getDailyEvents**
13
+ > EventsListResponse getDailyEvents()
14
+
15
+ Get events for the day view (entire week)
16
+
17
+ ### Example
18
+
19
+ ```typescript
20
+ import {
21
+ EventsStaffApi,
22
+ Configuration
23
+ } from '@tennac-booking/sdk';
24
+
25
+ const configuration = new Configuration();
26
+ const apiInstance = new EventsStaffApi(configuration);
27
+
28
+ let clubId: string; // (optional) (default to undefined)
29
+ let date: string; // (optional) (default to undefined)
30
+ let visibilityType: 'public' | 'private' | 'invitation'; // (optional) (default to undefined)
31
+ let type: 'event' | 'closure'; // (optional) (default to undefined)
32
+ let sportId: string; // (optional) (default to undefined)
33
+
34
+ const { status, data } = await apiInstance.getDailyEvents(
35
+ clubId,
36
+ date,
37
+ visibilityType,
38
+ type,
39
+ sportId
40
+ );
41
+ ```
42
+
43
+ ### Parameters
44
+
45
+ |Name | Type | Description | Notes|
46
+ |------------- | ------------- | ------------- | -------------|
47
+ | **clubId** | [**string**] | | (optional) defaults to undefined|
48
+ | **date** | [**string**] | | (optional) defaults to undefined|
49
+ | **visibilityType** | [**&#39;public&#39; | &#39;private&#39; | &#39;invitation&#39;**]**Array<&#39;public&#39; &#124; &#39;private&#39; &#124; &#39;invitation&#39;>** | | (optional) defaults to undefined|
50
+ | **type** | [**&#39;event&#39; | &#39;closure&#39;**]**Array<&#39;event&#39; &#124; &#39;closure&#39;>** | | (optional) defaults to undefined|
51
+ | **sportId** | [**string**] | | (optional) defaults to undefined|
52
+
53
+
54
+ ### Return type
55
+
56
+ **EventsListResponse**
57
+
58
+ ### Authorization
59
+
60
+ [bearerAuth](../README.md#bearerAuth)
61
+
62
+ ### HTTP request headers
63
+
64
+ - **Content-Type**: Not defined
65
+ - **Accept**: application/json
66
+
67
+
68
+ ### HTTP response details
69
+ | Status code | Description | Response headers |
70
+ |-------------|-------------|------------------|
71
+ |**200** | List of events for the daily view | - |
72
+ |**400** | Bad Request | - |
73
+ |**500** | Server Error | - |
74
+
75
+ [[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)
8
76
 
9
77
  # **getEventsByClub**
10
78
  > EventsListResponse getEventsByClub()
@@ -53,3 +121,133 @@ This endpoint does not have any parameters.
53
121
 
54
122
  [[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)
55
123
 
124
+ # **getMonthlyEvents**
125
+ > EventsListResponse getMonthlyEvents()
126
+
127
+ Get events for the entire month view (including recurring occurrences)
128
+
129
+ ### Example
130
+
131
+ ```typescript
132
+ import {
133
+ EventsStaffApi,
134
+ Configuration
135
+ } from '@tennac-booking/sdk';
136
+
137
+ const configuration = new Configuration();
138
+ const apiInstance = new EventsStaffApi(configuration);
139
+
140
+ let clubId: string; // (optional) (default to undefined)
141
+ let date: string; // (optional) (default to undefined)
142
+ let visibilityType: 'public' | 'private' | 'invitation'; // (optional) (default to undefined)
143
+ let type: 'event' | 'closure'; // (optional) (default to undefined)
144
+ let sportId: string; // (optional) (default to undefined)
145
+
146
+ const { status, data } = await apiInstance.getMonthlyEvents(
147
+ clubId,
148
+ date,
149
+ visibilityType,
150
+ type,
151
+ sportId
152
+ );
153
+ ```
154
+
155
+ ### Parameters
156
+
157
+ |Name | Type | Description | Notes|
158
+ |------------- | ------------- | ------------- | -------------|
159
+ | **clubId** | [**string**] | | (optional) defaults to undefined|
160
+ | **date** | [**string**] | | (optional) defaults to undefined|
161
+ | **visibilityType** | [**&#39;public&#39; | &#39;private&#39; | &#39;invitation&#39;**]**Array<&#39;public&#39; &#124; &#39;private&#39; &#124; &#39;invitation&#39;>** | | (optional) defaults to undefined|
162
+ | **type** | [**&#39;event&#39; | &#39;closure&#39;**]**Array<&#39;event&#39; &#124; &#39;closure&#39;>** | | (optional) defaults to undefined|
163
+ | **sportId** | [**string**] | | (optional) defaults to undefined|
164
+
165
+
166
+ ### Return type
167
+
168
+ **EventsListResponse**
169
+
170
+ ### Authorization
171
+
172
+ [bearerAuth](../README.md#bearerAuth)
173
+
174
+ ### HTTP request headers
175
+
176
+ - **Content-Type**: Not defined
177
+ - **Accept**: application/json
178
+
179
+
180
+ ### HTTP response details
181
+ | Status code | Description | Response headers |
182
+ |-------------|-------------|------------------|
183
+ |**200** | List of events for the selected month | - |
184
+ |**400** | Bad Request | - |
185
+ |**500** | Server Error | - |
186
+
187
+ [[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)
188
+
189
+ # **getWeeklyEvents**
190
+ > EventsListResponse getWeeklyEvents()
191
+
192
+ Get events for the week view (30 day sliding window)
193
+
194
+ ### Example
195
+
196
+ ```typescript
197
+ import {
198
+ EventsStaffApi,
199
+ Configuration
200
+ } from '@tennac-booking/sdk';
201
+
202
+ const configuration = new Configuration();
203
+ const apiInstance = new EventsStaffApi(configuration);
204
+
205
+ let clubId: string; // (optional) (default to undefined)
206
+ let date: string; // (optional) (default to undefined)
207
+ let visibilityType: 'public' | 'private' | 'invitation'; // (optional) (default to undefined)
208
+ let type: 'event' | 'closure'; // (optional) (default to undefined)
209
+ let sportId: string; // (optional) (default to undefined)
210
+
211
+ const { status, data } = await apiInstance.getWeeklyEvents(
212
+ clubId,
213
+ date,
214
+ visibilityType,
215
+ type,
216
+ sportId
217
+ );
218
+ ```
219
+
220
+ ### Parameters
221
+
222
+ |Name | Type | Description | Notes|
223
+ |------------- | ------------- | ------------- | -------------|
224
+ | **clubId** | [**string**] | | (optional) defaults to undefined|
225
+ | **date** | [**string**] | | (optional) defaults to undefined|
226
+ | **visibilityType** | [**&#39;public&#39; | &#39;private&#39; | &#39;invitation&#39;**]**Array<&#39;public&#39; &#124; &#39;private&#39; &#124; &#39;invitation&#39;>** | | (optional) defaults to undefined|
227
+ | **type** | [**&#39;event&#39; | &#39;closure&#39;**]**Array<&#39;event&#39; &#124; &#39;closure&#39;>** | | (optional) defaults to undefined|
228
+ | **sportId** | [**string**] | | (optional) defaults to undefined|
229
+
230
+
231
+ ### Return type
232
+
233
+ **EventsListResponse**
234
+
235
+ ### Authorization
236
+
237
+ [bearerAuth](../README.md#bearerAuth)
238
+
239
+ ### HTTP request headers
240
+
241
+ - **Content-Type**: Not defined
242
+ - **Accept**: application/json
243
+
244
+
245
+ ### HTTP response details
246
+ | Status code | Description | Response headers |
247
+ |-------------|-------------|------------------|
248
+ |**200** | List of events for the weekly view | - |
249
+ |**400** | Bad Request | - |
250
+ |**500** | Server Error | - |
251
+
252
+ [[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)
253
+
@@ -0,0 +1,20 @@
1
+ # UpdateUserCreditsRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **deltaInCents** | **number** | Variation du crédit à appliquer, exprimée en centimes. Peut être négative pour retirer du crédit. | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { UpdateUserCreditsRequest } from '@tennac-booking/sdk';
14
+
15
+ const instance: UpdateUserCreditsRequest = {
16
+ deltaInCents,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.107",
3
+ "version": "1.0.109",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {