@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.
- package/.openapi-generator/FILES +1 -0
- package/README.md +5 -0
- package/api.ts +601 -2
- package/dist/api.d.ts +368 -2
- package/dist/api.js +373 -2
- package/dist/esm/api.d.ts +368 -2
- package/dist/esm/api.js +371 -0
- package/docs/ClubPlayerDetailResponse.md +2 -0
- package/docs/ClubSummary.md +8 -2
- package/docs/ClubsStaffApi.md +55 -0
- package/docs/CreateEventRequest.md +3 -1
- package/docs/EventsStaffApi.md +198 -0
- package/docs/UpdateUserCreditsRequest.md +20 -0
- package/package.json +1 -1
package/docs/EventsStaffApi.md
CHANGED
|
@@ -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** | [**'public' | 'private' | 'invitation'**]**Array<'public' | 'private' | 'invitation'>** | | (optional) defaults to undefined|
|
|
50
|
+
| **type** | [**'event' | 'closure'**]**Array<'event' | 'closure'>** | | (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** | [**'public' | 'private' | 'invitation'**]**Array<'public' | 'private' | 'invitation'>** | | (optional) defaults to undefined|
|
|
162
|
+
| **type** | [**'event' | 'closure'**]**Array<'event' | 'closure'>** | | (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** | [**'public' | 'private' | 'invitation'**]**Array<'public' | 'private' | 'invitation'>** | | (optional) defaults to undefined|
|
|
227
|
+
| **type** | [**'event' | 'closure'**]**Array<'event' | 'closure'>** | | (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)
|