@tennac-booking/sdk 1.0.185 → 1.0.187
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 +423 -412
- package/README.md +19 -3
- package/api.ts +787 -87
- package/dist/api.d.ts +491 -48
- package/dist/api.js +469 -48
- package/dist/esm/api.d.ts +491 -48
- package/dist/esm/api.js +461 -44
- package/docs/AuthApi.md +113 -0
- package/docs/EventsStaffApi.md +119 -25
- package/docs/PublicEmailApi.md +4 -4
- package/docs/RequestOrganizationEmailCodeBody.md +22 -0
- package/docs/RequestOrganizationEmailCodeResponse.md +22 -0
- package/docs/RequestVerificationCodeBody.md +26 -0
- package/docs/RequestVerificationCodeResponse.md +20 -0
- package/docs/StaffEventsPageResponse.md +22 -0
- package/docs/SupportedLanguage.md +10 -0
- package/docs/UserNextBookingSummary.md +26 -0
- package/docs/UserProfileResponse.md +2 -0
- package/docs/UsersApi.md +104 -0
- package/docs/VerifyOrganizationEmailCodeBody.md +24 -0
- package/docs/VerifyOrganizationEmailCodeResponse.md +22 -0
- package/docs/VerifyVerificationCodeBody.md +24 -0
- package/docs/VerifyVerificationCodeResponse.md +20 -0
- package/package.json +1 -1
- package/docs/StaffEventsPaginatedResponse.md +0 -26
package/docs/AuthApi.md
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# AuthApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**requestVerificationCode**](#requestverificationcode) | **POST** /api/auth/verification-code | |
|
|
8
|
+
|[**verifyVerificationCode**](#verifyverificationcode) | **POST** /api/auth/verification-code/verify | |
|
|
9
|
+
|
|
10
|
+
# **requestVerificationCode**
|
|
11
|
+
> RequestVerificationCodeResponse requestVerificationCode(requestVerificationCodeBody)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import {
|
|
18
|
+
AuthApi,
|
|
19
|
+
Configuration,
|
|
20
|
+
RequestVerificationCodeBody
|
|
21
|
+
} from '@tennac-booking/sdk';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new AuthApi(configuration);
|
|
25
|
+
|
|
26
|
+
let requestVerificationCodeBody: RequestVerificationCodeBody; //
|
|
27
|
+
|
|
28
|
+
const { status, data } = await apiInstance.requestVerificationCode(
|
|
29
|
+
requestVerificationCodeBody
|
|
30
|
+
);
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Parameters
|
|
34
|
+
|
|
35
|
+
|Name | Type | Description | Notes|
|
|
36
|
+
|------------- | ------------- | ------------- | -------------|
|
|
37
|
+
| **requestVerificationCodeBody** | **RequestVerificationCodeBody**| | |
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Return type
|
|
41
|
+
|
|
42
|
+
**RequestVerificationCodeResponse**
|
|
43
|
+
|
|
44
|
+
### Authorization
|
|
45
|
+
|
|
46
|
+
No authorization required
|
|
47
|
+
|
|
48
|
+
### HTTP request headers
|
|
49
|
+
|
|
50
|
+
- **Content-Type**: application/json
|
|
51
|
+
- **Accept**: application/json
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### HTTP response details
|
|
55
|
+
| Status code | Description | Response headers |
|
|
56
|
+
|-------------|-------------|------------------|
|
|
57
|
+
|**200** | OK | - |
|
|
58
|
+
|**400** | Payload invalide | - |
|
|
59
|
+
|
|
60
|
+
[[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)
|
|
61
|
+
|
|
62
|
+
# **verifyVerificationCode**
|
|
63
|
+
> VerifyVerificationCodeResponse verifyVerificationCode(verifyVerificationCodeBody)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
### Example
|
|
67
|
+
|
|
68
|
+
```typescript
|
|
69
|
+
import {
|
|
70
|
+
AuthApi,
|
|
71
|
+
Configuration,
|
|
72
|
+
VerifyVerificationCodeBody
|
|
73
|
+
} from '@tennac-booking/sdk';
|
|
74
|
+
|
|
75
|
+
const configuration = new Configuration();
|
|
76
|
+
const apiInstance = new AuthApi(configuration);
|
|
77
|
+
|
|
78
|
+
let verifyVerificationCodeBody: VerifyVerificationCodeBody; //
|
|
79
|
+
|
|
80
|
+
const { status, data } = await apiInstance.verifyVerificationCode(
|
|
81
|
+
verifyVerificationCodeBody
|
|
82
|
+
);
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Parameters
|
|
86
|
+
|
|
87
|
+
|Name | Type | Description | Notes|
|
|
88
|
+
|------------- | ------------- | ------------- | -------------|
|
|
89
|
+
| **verifyVerificationCodeBody** | **VerifyVerificationCodeBody**| | |
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
### Return type
|
|
93
|
+
|
|
94
|
+
**VerifyVerificationCodeResponse**
|
|
95
|
+
|
|
96
|
+
### Authorization
|
|
97
|
+
|
|
98
|
+
No authorization required
|
|
99
|
+
|
|
100
|
+
### HTTP request headers
|
|
101
|
+
|
|
102
|
+
- **Content-Type**: application/json
|
|
103
|
+
- **Accept**: application/json
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
### HTTP response details
|
|
107
|
+
| Status code | Description | Response headers |
|
|
108
|
+
|-------------|-------------|------------------|
|
|
109
|
+
|**200** | OK | - |
|
|
110
|
+
|**400** | Code invalide | - |
|
|
111
|
+
|
|
112
|
+
[[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)
|
|
113
|
+
|
package/docs/EventsStaffApi.md
CHANGED
|
@@ -6,9 +6,11 @@ All URIs are relative to *http://localhost*
|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**checkInEventParticipants**](#checkineventparticipants) | **POST** /api/events/{eventBookingId}/check-in | |
|
|
8
8
|
|[**getDailyEvents**](#getdailyevents) | **GET** /api/events/calendar/daily | |
|
|
9
|
+
|[**getDraftEventsByClub**](#getdrafteventsbyclub) | **GET** /api/events/staff/getEvents/drafts | |
|
|
9
10
|
|[**getEventByIdForStaff**](#geteventbyidforstaff) | **GET** /api/events/staff/{eventId} | |
|
|
10
|
-
|[**getEventsByClub**](#geteventsbyclub) | **GET** /api/events/staff/getEvents | |
|
|
11
11
|
|[**getMonthlyEvents**](#getmonthlyevents) | **GET** /api/events/calendar/monthly | |
|
|
12
|
+
|[**getPastEventsByClub**](#getpasteventsbyclub) | **GET** /api/events/staff/getEvents/past | |
|
|
13
|
+
|[**getUpcomingEventsByClub**](#getupcomingeventsbyclub) | **GET** /api/events/staff/getEvents/upcoming | |
|
|
12
14
|
|[**getWeeklyEvents**](#getweeklyevents) | **GET** /api/events/calendar/weekly | |
|
|
13
15
|
|
|
14
16
|
# **checkInEventParticipants**
|
|
@@ -134,10 +136,9 @@ const { status, data } = await apiInstance.getDailyEvents(
|
|
|
134
136
|
|
|
135
137
|
[[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)
|
|
136
138
|
|
|
137
|
-
# **
|
|
138
|
-
>
|
|
139
|
+
# **getDraftEventsByClub**
|
|
140
|
+
> StaffEventsPageResponse getDraftEventsByClub()
|
|
139
141
|
|
|
140
|
-
Get a specific event by ID (staff)
|
|
141
142
|
|
|
142
143
|
### Example
|
|
143
144
|
|
|
@@ -150,23 +151,16 @@ import {
|
|
|
150
151
|
const configuration = new Configuration();
|
|
151
152
|
const apiInstance = new EventsStaffApi(configuration);
|
|
152
153
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
const { status, data } = await apiInstance.getEventByIdForStaff(
|
|
156
|
-
eventId
|
|
157
|
-
);
|
|
154
|
+
const { status, data } = await apiInstance.getDraftEventsByClub();
|
|
158
155
|
```
|
|
159
156
|
|
|
160
157
|
### Parameters
|
|
161
|
-
|
|
162
|
-
|Name | Type | Description | Notes|
|
|
163
|
-
|------------- | ------------- | ------------- | -------------|
|
|
164
|
-
| **eventId** | [**string**] | | defaults to undefined|
|
|
158
|
+
This endpoint does not have any parameters.
|
|
165
159
|
|
|
166
160
|
|
|
167
161
|
### Return type
|
|
168
162
|
|
|
169
|
-
**
|
|
163
|
+
**StaffEventsPageResponse**
|
|
170
164
|
|
|
171
165
|
### Authorization
|
|
172
166
|
|
|
@@ -181,16 +175,17 @@ const { status, data } = await apiInstance.getEventByIdForStaff(
|
|
|
181
175
|
### HTTP response details
|
|
182
176
|
| Status code | Description | Response headers |
|
|
183
177
|
|-------------|-------------|------------------|
|
|
184
|
-
|**200** |
|
|
178
|
+
|**200** | Draft events | - |
|
|
185
179
|
|**400** | Bad Request | - |
|
|
186
|
-
|**
|
|
180
|
+
|**401** | Unauthorized | - |
|
|
181
|
+
|**500** | Server Error | - |
|
|
187
182
|
|
|
188
183
|
[[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)
|
|
189
184
|
|
|
190
|
-
# **
|
|
191
|
-
>
|
|
185
|
+
# **getEventByIdForStaff**
|
|
186
|
+
> StaffEventDetailResponse getEventByIdForStaff()
|
|
192
187
|
|
|
193
|
-
|
|
188
|
+
Get a specific event by ID (staff)
|
|
194
189
|
|
|
195
190
|
### Example
|
|
196
191
|
|
|
@@ -203,16 +198,23 @@ import {
|
|
|
203
198
|
const configuration = new Configuration();
|
|
204
199
|
const apiInstance = new EventsStaffApi(configuration);
|
|
205
200
|
|
|
206
|
-
|
|
201
|
+
let eventId: string; // (default to undefined)
|
|
202
|
+
|
|
203
|
+
const { status, data } = await apiInstance.getEventByIdForStaff(
|
|
204
|
+
eventId
|
|
205
|
+
);
|
|
207
206
|
```
|
|
208
207
|
|
|
209
208
|
### Parameters
|
|
210
|
-
|
|
209
|
+
|
|
210
|
+
|Name | Type | Description | Notes|
|
|
211
|
+
|------------- | ------------- | ------------- | -------------|
|
|
212
|
+
| **eventId** | [**string**] | | defaults to undefined|
|
|
211
213
|
|
|
212
214
|
|
|
213
215
|
### Return type
|
|
214
216
|
|
|
215
|
-
**
|
|
217
|
+
**StaffEventDetailResponse**
|
|
216
218
|
|
|
217
219
|
### Authorization
|
|
218
220
|
|
|
@@ -227,10 +229,9 @@ This endpoint does not have any parameters.
|
|
|
227
229
|
### HTTP response details
|
|
228
230
|
| Status code | Description | Response headers |
|
|
229
231
|
|-------------|-------------|------------------|
|
|
230
|
-
|**200** |
|
|
232
|
+
|**200** | Event details | - |
|
|
231
233
|
|**400** | Bad Request | - |
|
|
232
|
-
|**
|
|
233
|
-
|**500** | Server Error | - |
|
|
234
|
+
|**404** | Not Found | - |
|
|
234
235
|
|
|
235
236
|
[[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)
|
|
236
237
|
|
|
@@ -299,6 +300,99 @@ const { status, data } = await apiInstance.getMonthlyEvents(
|
|
|
299
300
|
|
|
300
301
|
[[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)
|
|
301
302
|
|
|
303
|
+
# **getPastEventsByClub**
|
|
304
|
+
> StaffEventsPageResponse getPastEventsByClub()
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
### Example
|
|
308
|
+
|
|
309
|
+
```typescript
|
|
310
|
+
import {
|
|
311
|
+
EventsStaffApi,
|
|
312
|
+
Configuration
|
|
313
|
+
} from '@tennac-booking/sdk';
|
|
314
|
+
|
|
315
|
+
const configuration = new Configuration();
|
|
316
|
+
const apiInstance = new EventsStaffApi(configuration);
|
|
317
|
+
|
|
318
|
+
const { status, data } = await apiInstance.getPastEventsByClub();
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
### Parameters
|
|
322
|
+
This endpoint does not have any parameters.
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
### Return type
|
|
326
|
+
|
|
327
|
+
**StaffEventsPageResponse**
|
|
328
|
+
|
|
329
|
+
### Authorization
|
|
330
|
+
|
|
331
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
332
|
+
|
|
333
|
+
### HTTP request headers
|
|
334
|
+
|
|
335
|
+
- **Content-Type**: Not defined
|
|
336
|
+
- **Accept**: application/json
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
### HTTP response details
|
|
340
|
+
| Status code | Description | Response headers |
|
|
341
|
+
|-------------|-------------|------------------|
|
|
342
|
+
|**200** | Past events | - |
|
|
343
|
+
|**400** | Bad Request | - |
|
|
344
|
+
|**401** | Unauthorized | - |
|
|
345
|
+
|**500** | Server Error | - |
|
|
346
|
+
|
|
347
|
+
[[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)
|
|
348
|
+
|
|
349
|
+
# **getUpcomingEventsByClub**
|
|
350
|
+
> StaffEventsPageResponse getUpcomingEventsByClub()
|
|
351
|
+
|
|
352
|
+
// Use service to validate booking openness, team participation, and capacity const { event, booking: eb } = await this.eventService.joinEventBooking( eventBookingId, userId );
|
|
353
|
+
|
|
354
|
+
### Example
|
|
355
|
+
|
|
356
|
+
```typescript
|
|
357
|
+
import {
|
|
358
|
+
EventsStaffApi,
|
|
359
|
+
Configuration
|
|
360
|
+
} from '@tennac-booking/sdk';
|
|
361
|
+
|
|
362
|
+
const configuration = new Configuration();
|
|
363
|
+
const apiInstance = new EventsStaffApi(configuration);
|
|
364
|
+
|
|
365
|
+
const { status, data } = await apiInstance.getUpcomingEventsByClub();
|
|
366
|
+
```
|
|
367
|
+
|
|
368
|
+
### Parameters
|
|
369
|
+
This endpoint does not have any parameters.
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
### Return type
|
|
373
|
+
|
|
374
|
+
**StaffEventsPageResponse**
|
|
375
|
+
|
|
376
|
+
### Authorization
|
|
377
|
+
|
|
378
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
379
|
+
|
|
380
|
+
### HTTP request headers
|
|
381
|
+
|
|
382
|
+
- **Content-Type**: Not defined
|
|
383
|
+
- **Accept**: application/json
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
### HTTP response details
|
|
387
|
+
| Status code | Description | Response headers |
|
|
388
|
+
|-------------|-------------|------------------|
|
|
389
|
+
|**200** | Upcoming events | - |
|
|
390
|
+
|**400** | Bad Request | - |
|
|
391
|
+
|**401** | Unauthorized | - |
|
|
392
|
+
|**500** | Server Error | - |
|
|
393
|
+
|
|
394
|
+
[[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)
|
|
395
|
+
|
|
302
396
|
# **getWeeklyEvents**
|
|
303
397
|
> EventsListResponse getWeeklyEvents()
|
|
304
398
|
|
package/docs/PublicEmailApi.md
CHANGED
|
@@ -5,7 +5,7 @@ All URIs are relative to *http://localhost*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**authEmailExists**](#authemailexists) | **POST** /api/public-email/auth-email-exists | |
|
|
8
|
-
|[**
|
|
8
|
+
|[**requestPublicEmailVerificationCode**](#requestpublicemailverificationcode) | **POST** /api/public-email/request-verification-code | |
|
|
9
9
|
|[**verifyCode**](#verifycode) | **POST** /api/public-email/verify-code | |
|
|
10
10
|
|
|
11
11
|
# **authEmailExists**
|
|
@@ -60,8 +60,8 @@ No authorization required
|
|
|
60
60
|
|
|
61
61
|
[[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)
|
|
62
62
|
|
|
63
|
-
# **
|
|
64
|
-
> RequestEmailCodeResponse
|
|
63
|
+
# **requestPublicEmailVerificationCode**
|
|
64
|
+
> RequestEmailCodeResponse requestPublicEmailVerificationCode(requestEmailCodeBody)
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
### Example
|
|
@@ -78,7 +78,7 @@ const apiInstance = new PublicEmailApi(configuration);
|
|
|
78
78
|
|
|
79
79
|
let requestEmailCodeBody: RequestEmailCodeBody; //
|
|
80
80
|
|
|
81
|
-
const { status, data } = await apiInstance.
|
|
81
|
+
const { status, data } = await apiInstance.requestPublicEmailVerificationCode(
|
|
82
82
|
requestEmailCodeBody
|
|
83
83
|
);
|
|
84
84
|
```
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# RequestOrganizationEmailCodeBody
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**organizationId** | **string** | | [default to undefined]
|
|
9
|
+
**organizationEmail** | **string** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { RequestOrganizationEmailCodeBody } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: RequestOrganizationEmailCodeBody = {
|
|
17
|
+
organizationId,
|
|
18
|
+
organizationEmail,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# RequestOrganizationEmailCodeResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**sent** | **boolean** | | [default to undefined]
|
|
9
|
+
**alreadyVerified** | **boolean** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { RequestOrganizationEmailCodeResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: RequestOrganizationEmailCodeResponse = {
|
|
17
|
+
sent,
|
|
18
|
+
alreadyVerified,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# RequestVerificationCodeBody
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**email** | **string** | | [default to undefined]
|
|
9
|
+
**context** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**lang** | [**SupportedLanguage**](SupportedLanguage.md) | | [optional] [default to undefined]
|
|
11
|
+
**requestId** | **string** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { RequestVerificationCodeBody } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: RequestVerificationCodeBody = {
|
|
19
|
+
email,
|
|
20
|
+
context,
|
|
21
|
+
lang,
|
|
22
|
+
requestId,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# RequestVerificationCodeResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**sent** | **boolean** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { RequestVerificationCodeResponse } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: RequestVerificationCodeResponse = {
|
|
16
|
+
sent,
|
|
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)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# StaffEventsPageResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**events** | [**Array<EventResponse>**](EventResponse.md) | | [default to undefined]
|
|
9
|
+
**pagination** | [**PaginationInfo**](PaginationInfo.md) | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { StaffEventsPageResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: StaffEventsPageResponse = {
|
|
17
|
+
events,
|
|
18
|
+
pagination,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# UserNextBookingSummary
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
**date** | **string** | | [default to undefined]
|
|
10
|
+
**slots** | [**Array<BookingSlotInfo>**](BookingSlotInfo.md) | | [default to undefined]
|
|
11
|
+
**club** | [**BookingClubInfo**](BookingClubInfo.md) | | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { UserNextBookingSummary } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: UserNextBookingSummary = {
|
|
19
|
+
id,
|
|
20
|
+
date,
|
|
21
|
+
slots,
|
|
22
|
+
club,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -39,6 +39,7 @@ Name | Type | Description | Notes
|
|
|
39
39
|
**sports** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
40
40
|
**stripeCustomerId** | **string** | | [optional] [default to undefined]
|
|
41
41
|
**upcomingBookingsCount** | **number** | | [optional] [default to undefined]
|
|
42
|
+
**nextBooking** | [**UserNextBookingSummary**](UserNextBookingSummary.md) | | [optional] [default to undefined]
|
|
42
43
|
**subscriptionsCount** | **number** | | [optional] [default to undefined]
|
|
43
44
|
**subscriptions** | [**Array<ClubSubscriptions>**](ClubSubscriptions.md) | | [optional] [default to undefined]
|
|
44
45
|
**clubs** | [**Array<UserClubMembership>**](UserClubMembership.md) | | [optional] [default to undefined]
|
|
@@ -89,6 +90,7 @@ const instance: UserProfileResponse = {
|
|
|
89
90
|
sports,
|
|
90
91
|
stripeCustomerId,
|
|
91
92
|
upcomingBookingsCount,
|
|
93
|
+
nextBooking,
|
|
92
94
|
subscriptionsCount,
|
|
93
95
|
subscriptions,
|
|
94
96
|
clubs,
|
package/docs/UsersApi.md
CHANGED
|
@@ -36,6 +36,7 @@ All URIs are relative to *http://localhost*
|
|
|
36
36
|
|[**removeFavoritePlayer**](#removefavoriteplayer) | **DELETE** /api/users/me/favoritesPlayers/{favoritePlayerId} | |
|
|
37
37
|
|[**removeOrganization**](#removeorganization) | **POST** /api/users/me/remove-organization | |
|
|
38
38
|
|[**requestEmailVerification**](#requestemailverification) | **POST** /api/users/me/request-email-verification | |
|
|
39
|
+
|[**requestOrganizationCode**](#requestorganizationcode) | **POST** /api/users/me/request-organization-code | |
|
|
39
40
|
|[**requestPasswordReset**](#requestpasswordreset) | **POST** /api/users/request-password-reset | |
|
|
40
41
|
|[**resetPassword**](#resetpassword) | **POST** /api/users/reset-password | |
|
|
41
42
|
|[**signInOrSignUpWithGoogle**](#signinorsignupwithgoogle) | **POST** /api/users/googleSignin | |
|
|
@@ -45,6 +46,7 @@ All URIs are relative to *http://localhost*
|
|
|
45
46
|
|[**updateProfilePicture**](#updateprofilepicture) | **PUT** /api/users/me/profile-picture | |
|
|
46
47
|
|[**verifyEmail**](#verifyemail) | **POST** /api/users/verify-email | |
|
|
47
48
|
|[**verifyOrganization**](#verifyorganization) | **POST** /api/users/verify-organization | |
|
|
49
|
+
|[**verifyOrganizationCode**](#verifyorganizationcode) | **POST** /api/users/me/verify-organization-code | |
|
|
48
50
|
|
|
49
51
|
# **addFavoriteClub**
|
|
50
52
|
> FavoriteClubMutationResponse addFavoriteClub(favoriteClubRequestBody)
|
|
@@ -1650,6 +1652,57 @@ This endpoint does not have any parameters.
|
|
|
1650
1652
|
- **Accept**: application/json
|
|
1651
1653
|
|
|
1652
1654
|
|
|
1655
|
+
### HTTP response details
|
|
1656
|
+
| Status code | Description | Response headers |
|
|
1657
|
+
|-------------|-------------|------------------|
|
|
1658
|
+
|**200** | Ok | - |
|
|
1659
|
+
|
|
1660
|
+
[[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)
|
|
1661
|
+
|
|
1662
|
+
# **requestOrganizationCode**
|
|
1663
|
+
> RequestOrganizationEmailCodeResponse requestOrganizationCode(requestOrganizationEmailCodeBody)
|
|
1664
|
+
|
|
1665
|
+
|
|
1666
|
+
### Example
|
|
1667
|
+
|
|
1668
|
+
```typescript
|
|
1669
|
+
import {
|
|
1670
|
+
UsersApi,
|
|
1671
|
+
Configuration,
|
|
1672
|
+
RequestOrganizationEmailCodeBody
|
|
1673
|
+
} from '@tennac-booking/sdk';
|
|
1674
|
+
|
|
1675
|
+
const configuration = new Configuration();
|
|
1676
|
+
const apiInstance = new UsersApi(configuration);
|
|
1677
|
+
|
|
1678
|
+
let requestOrganizationEmailCodeBody: RequestOrganizationEmailCodeBody; //
|
|
1679
|
+
|
|
1680
|
+
const { status, data } = await apiInstance.requestOrganizationCode(
|
|
1681
|
+
requestOrganizationEmailCodeBody
|
|
1682
|
+
);
|
|
1683
|
+
```
|
|
1684
|
+
|
|
1685
|
+
### Parameters
|
|
1686
|
+
|
|
1687
|
+
|Name | Type | Description | Notes|
|
|
1688
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1689
|
+
| **requestOrganizationEmailCodeBody** | **RequestOrganizationEmailCodeBody**| | |
|
|
1690
|
+
|
|
1691
|
+
|
|
1692
|
+
### Return type
|
|
1693
|
+
|
|
1694
|
+
**RequestOrganizationEmailCodeResponse**
|
|
1695
|
+
|
|
1696
|
+
### Authorization
|
|
1697
|
+
|
|
1698
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1699
|
+
|
|
1700
|
+
### HTTP request headers
|
|
1701
|
+
|
|
1702
|
+
- **Content-Type**: application/json
|
|
1703
|
+
- **Accept**: application/json
|
|
1704
|
+
|
|
1705
|
+
|
|
1653
1706
|
### HTTP response details
|
|
1654
1707
|
| Status code | Description | Response headers |
|
|
1655
1708
|
|-------------|-------------|------------------|
|
|
@@ -2116,3 +2169,54 @@ No authorization required
|
|
|
2116
2169
|
|
|
2117
2170
|
[[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)
|
|
2118
2171
|
|
|
2172
|
+
# **verifyOrganizationCode**
|
|
2173
|
+
> VerifyOrganizationEmailCodeResponse verifyOrganizationCode(verifyOrganizationEmailCodeBody)
|
|
2174
|
+
|
|
2175
|
+
|
|
2176
|
+
### Example
|
|
2177
|
+
|
|
2178
|
+
```typescript
|
|
2179
|
+
import {
|
|
2180
|
+
UsersApi,
|
|
2181
|
+
Configuration,
|
|
2182
|
+
VerifyOrganizationEmailCodeBody
|
|
2183
|
+
} from '@tennac-booking/sdk';
|
|
2184
|
+
|
|
2185
|
+
const configuration = new Configuration();
|
|
2186
|
+
const apiInstance = new UsersApi(configuration);
|
|
2187
|
+
|
|
2188
|
+
let verifyOrganizationEmailCodeBody: VerifyOrganizationEmailCodeBody; //
|
|
2189
|
+
|
|
2190
|
+
const { status, data } = await apiInstance.verifyOrganizationCode(
|
|
2191
|
+
verifyOrganizationEmailCodeBody
|
|
2192
|
+
);
|
|
2193
|
+
```
|
|
2194
|
+
|
|
2195
|
+
### Parameters
|
|
2196
|
+
|
|
2197
|
+
|Name | Type | Description | Notes|
|
|
2198
|
+
|------------- | ------------- | ------------- | -------------|
|
|
2199
|
+
| **verifyOrganizationEmailCodeBody** | **VerifyOrganizationEmailCodeBody**| | |
|
|
2200
|
+
|
|
2201
|
+
|
|
2202
|
+
### Return type
|
|
2203
|
+
|
|
2204
|
+
**VerifyOrganizationEmailCodeResponse**
|
|
2205
|
+
|
|
2206
|
+
### Authorization
|
|
2207
|
+
|
|
2208
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
2209
|
+
|
|
2210
|
+
### HTTP request headers
|
|
2211
|
+
|
|
2212
|
+
- **Content-Type**: application/json
|
|
2213
|
+
- **Accept**: application/json
|
|
2214
|
+
|
|
2215
|
+
|
|
2216
|
+
### HTTP response details
|
|
2217
|
+
| Status code | Description | Response headers |
|
|
2218
|
+
|-------------|-------------|------------------|
|
|
2219
|
+
|**200** | Ok | - |
|
|
2220
|
+
|
|
2221
|
+
[[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)
|
|
2222
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# VerifyOrganizationEmailCodeBody
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**organizationId** | **string** | | [default to undefined]
|
|
9
|
+
**organizationEmail** | **string** | | [default to undefined]
|
|
10
|
+
**code** | **string** | | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { VerifyOrganizationEmailCodeBody } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: VerifyOrganizationEmailCodeBody = {
|
|
18
|
+
organizationId,
|
|
19
|
+
organizationEmail,
|
|
20
|
+
code,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|