@tennac-booking/sdk 1.0.213 → 1.0.214
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 +10 -2
- package/README.md +15 -5
- package/api.ts +581 -71
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +474 -67
- package/dist/api.js +177 -17
- 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 +474 -67
- package/dist/esm/api.js +172 -12
- 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/BookingsUserApi.md +6 -6
- package/docs/MarkNotificationsReadRequest.md +22 -0
- package/docs/MarkNotificationsReadResponse.md +20 -0
- package/docs/NotificationData.md +22 -0
- package/docs/NotificationParticipantPreview.md +22 -0
- package/docs/NotificationPreview.md +58 -0
- package/docs/NotificationResponse.md +36 -0
- package/docs/NotificationType.md +26 -0
- package/docs/OpenBookingPriceBody.md +26 -0
- package/docs/UserNotificationsResponse.md +22 -0
- package/docs/UserNotificationsResponseMeta.md +28 -0
- package/docs/UsersApi.md +110 -1
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/GetOpenBookingPrice200Response.md +0 -24
- package/docs/GetOpenBookingPriceRequest.md +0 -26
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# OpenBookingPriceBody
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**slotIds** | **Array<string>** | | [default to undefined]
|
|
9
|
+
**playerShares** | [**Array<PlayerShare>**](PlayerShare.md) | | [optional] [default to undefined]
|
|
10
|
+
**creditToUseInCents** | **number** | | [optional] [default to undefined]
|
|
11
|
+
**maxPlayersDesired** | **number** | | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { OpenBookingPriceBody } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: OpenBookingPriceBody = {
|
|
19
|
+
slotIds,
|
|
20
|
+
playerShares,
|
|
21
|
+
creditToUseInCents,
|
|
22
|
+
maxPlayersDesired,
|
|
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,22 @@
|
|
|
1
|
+
# UserNotificationsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**notifications** | [**Array<NotificationResponse>**](NotificationResponse.md) | | [default to undefined]
|
|
9
|
+
**meta** | [**UserNotificationsResponseMeta**](UserNotificationsResponseMeta.md) | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { UserNotificationsResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: UserNotificationsResponse = {
|
|
17
|
+
notifications,
|
|
18
|
+
meta,
|
|
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,28 @@
|
|
|
1
|
+
# UserNotificationsResponseMeta
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**unreadCount** | **number** | | [default to undefined]
|
|
9
|
+
**hasMore** | **boolean** | | [default to undefined]
|
|
10
|
+
**total** | **number** | | [default to undefined]
|
|
11
|
+
**skip** | **number** | | [default to undefined]
|
|
12
|
+
**limit** | **number** | | [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { UserNotificationsResponseMeta } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: UserNotificationsResponseMeta = {
|
|
20
|
+
unreadCount,
|
|
21
|
+
hasMore,
|
|
22
|
+
total,
|
|
23
|
+
skip,
|
|
24
|
+
limit,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[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/docs/UsersApi.md
CHANGED
|
@@ -24,11 +24,13 @@ All URIs are relative to *http://localhost*
|
|
|
24
24
|
|[**getPlayerCategories**](#getplayercategories) | **GET** /api/users/players/categories | |
|
|
25
25
|
|[**getUserBookings**](#getuserbookings) | **GET** /api/users/me/bookings | |
|
|
26
26
|
|[**getUserEvents**](#getuserevents) | **GET** /api/users/me/events | |
|
|
27
|
+
|[**getUserNotifications**](#getusernotifications) | **GET** /api/users/me/notifications | |
|
|
27
28
|
|[**getUserProfileById**](#getuserprofilebyid) | **GET** /api/users/profile/{id} | |
|
|
28
29
|
|[**leaveBooking**](#leavebooking) | **DELETE** /api/users/me/bookings/{bookingId}/leave | |
|
|
29
30
|
|[**listPlayers**](#listplayers) | **GET** /api/users/players | |
|
|
30
31
|
|[**login**](#login) | **POST** /api/users/login | |
|
|
31
32
|
|[**loginClubMember**](#loginclubmember) | **POST** /api/users/club-members/login | |
|
|
33
|
+
|[**markNotificationsRead**](#marknotificationsread) | **POST** /api/users/me/notifications/read | |
|
|
32
34
|
|[**refreshToken**](#refreshtoken) | **POST** /api/users/refresh-token | |
|
|
33
35
|
|[**register**](#register) | **POST** /api/users | |
|
|
34
36
|
|[**registerFromApp**](#registerfromapp) | **POST** /api/users/register-app | |
|
|
@@ -39,7 +41,7 @@ All URIs are relative to *http://localhost*
|
|
|
39
41
|
|[**requestOrganizationCode**](#requestorganizationcode) | **POST** /api/users/me/request-organization-code | |
|
|
40
42
|
|[**requestPasswordReset**](#requestpasswordreset) | **POST** /api/users/request-password-reset | |
|
|
41
43
|
|[**resetPassword**](#resetpassword) | **POST** /api/users/reset-password | |
|
|
42
|
-
|[**searchPartner**](#searchpartner) | **GET** /api/users/
|
|
44
|
+
|[**searchPartner**](#searchpartner) | **GET** /api/users/searchPartner | |
|
|
43
45
|
|[**signInOrSignUpWithGoogle**](#signinorsignupwithgoogle) | **POST** /api/users/googleSignin | |
|
|
44
46
|
|[**updateCustomer**](#updatecustomer) | **PUT** /api/users/me/customer | |
|
|
45
47
|
|[**updateLevelBySports**](#updatelevelbysports) | **PUT** /api/users/me/level-by-sports | |
|
|
@@ -1023,6 +1025,62 @@ const { status, data } = await apiInstance.getUserEvents(
|
|
|
1023
1025
|
- **Accept**: application/json
|
|
1024
1026
|
|
|
1025
1027
|
|
|
1028
|
+
### HTTP response details
|
|
1029
|
+
| Status code | Description | Response headers |
|
|
1030
|
+
|-------------|-------------|------------------|
|
|
1031
|
+
|**200** | Ok | - |
|
|
1032
|
+
|
|
1033
|
+
[[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)
|
|
1034
|
+
|
|
1035
|
+
# **getUserNotifications**
|
|
1036
|
+
> UserNotificationsResponse getUserNotifications()
|
|
1037
|
+
|
|
1038
|
+
|
|
1039
|
+
### Example
|
|
1040
|
+
|
|
1041
|
+
```typescript
|
|
1042
|
+
import {
|
|
1043
|
+
UsersApi,
|
|
1044
|
+
Configuration
|
|
1045
|
+
} from '@tennac-booking/sdk';
|
|
1046
|
+
|
|
1047
|
+
const configuration = new Configuration();
|
|
1048
|
+
const apiInstance = new UsersApi(configuration);
|
|
1049
|
+
|
|
1050
|
+
let limit: number; // (optional) (default to undefined)
|
|
1051
|
+
let skip: number; // (optional) (default to undefined)
|
|
1052
|
+
let includeRead: any; // (optional) (default to undefined)
|
|
1053
|
+
|
|
1054
|
+
const { status, data } = await apiInstance.getUserNotifications(
|
|
1055
|
+
limit,
|
|
1056
|
+
skip,
|
|
1057
|
+
includeRead
|
|
1058
|
+
);
|
|
1059
|
+
```
|
|
1060
|
+
|
|
1061
|
+
### Parameters
|
|
1062
|
+
|
|
1063
|
+
|Name | Type | Description | Notes|
|
|
1064
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1065
|
+
| **limit** | [**number**] | | (optional) defaults to undefined|
|
|
1066
|
+
| **skip** | [**number**] | | (optional) defaults to undefined|
|
|
1067
|
+
| **includeRead** | **any** | | (optional) defaults to undefined|
|
|
1068
|
+
|
|
1069
|
+
|
|
1070
|
+
### Return type
|
|
1071
|
+
|
|
1072
|
+
**UserNotificationsResponse**
|
|
1073
|
+
|
|
1074
|
+
### Authorization
|
|
1075
|
+
|
|
1076
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1077
|
+
|
|
1078
|
+
### HTTP request headers
|
|
1079
|
+
|
|
1080
|
+
- **Content-Type**: Not defined
|
|
1081
|
+
- **Accept**: application/json
|
|
1082
|
+
|
|
1083
|
+
|
|
1026
1084
|
### HTTP response details
|
|
1027
1085
|
| Status code | Description | Response headers |
|
|
1028
1086
|
|-------------|-------------|------------------|
|
|
@@ -1306,6 +1364,57 @@ No authorization required
|
|
|
1306
1364
|
- **Accept**: application/json
|
|
1307
1365
|
|
|
1308
1366
|
|
|
1367
|
+
### HTTP response details
|
|
1368
|
+
| Status code | Description | Response headers |
|
|
1369
|
+
|-------------|-------------|------------------|
|
|
1370
|
+
|**200** | Ok | - |
|
|
1371
|
+
|
|
1372
|
+
[[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)
|
|
1373
|
+
|
|
1374
|
+
# **markNotificationsRead**
|
|
1375
|
+
> MarkNotificationsReadResponse markNotificationsRead(markNotificationsReadRequest)
|
|
1376
|
+
|
|
1377
|
+
|
|
1378
|
+
### Example
|
|
1379
|
+
|
|
1380
|
+
```typescript
|
|
1381
|
+
import {
|
|
1382
|
+
UsersApi,
|
|
1383
|
+
Configuration,
|
|
1384
|
+
MarkNotificationsReadRequest
|
|
1385
|
+
} from '@tennac-booking/sdk';
|
|
1386
|
+
|
|
1387
|
+
const configuration = new Configuration();
|
|
1388
|
+
const apiInstance = new UsersApi(configuration);
|
|
1389
|
+
|
|
1390
|
+
let markNotificationsReadRequest: MarkNotificationsReadRequest; //
|
|
1391
|
+
|
|
1392
|
+
const { status, data } = await apiInstance.markNotificationsRead(
|
|
1393
|
+
markNotificationsReadRequest
|
|
1394
|
+
);
|
|
1395
|
+
```
|
|
1396
|
+
|
|
1397
|
+
### Parameters
|
|
1398
|
+
|
|
1399
|
+
|Name | Type | Description | Notes|
|
|
1400
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1401
|
+
| **markNotificationsReadRequest** | **MarkNotificationsReadRequest**| | |
|
|
1402
|
+
|
|
1403
|
+
|
|
1404
|
+
### Return type
|
|
1405
|
+
|
|
1406
|
+
**MarkNotificationsReadResponse**
|
|
1407
|
+
|
|
1408
|
+
### Authorization
|
|
1409
|
+
|
|
1410
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1411
|
+
|
|
1412
|
+
### HTTP request headers
|
|
1413
|
+
|
|
1414
|
+
- **Content-Type**: application/json
|
|
1415
|
+
- **Accept**: application/json
|
|
1416
|
+
|
|
1417
|
+
|
|
1309
1418
|
### HTTP response details
|
|
1310
1419
|
| Status code | Description | Response headers |
|
|
1311
1420
|
|-------------|-------------|------------------|
|
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# GetOpenBookingPrice200Response
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**totalBasePrice** | **number** | | [default to undefined]
|
|
9
|
-
**playersPrices** | [**Array<PlayerPrice>**](PlayerPrice.md) | | [default to undefined]
|
|
10
|
-
**basePricePerPlayer** | **number** | | [default to undefined]
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import { GetOpenBookingPrice200Response } from '@tennac-booking/sdk';
|
|
16
|
-
|
|
17
|
-
const instance: GetOpenBookingPrice200Response = {
|
|
18
|
-
totalBasePrice,
|
|
19
|
-
playersPrices,
|
|
20
|
-
basePricePerPlayer,
|
|
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)
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# GetOpenBookingPriceRequest
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**creditsByPlayer** | **{ [key: string]: number; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
9
|
-
**initialPlayerIds** | **Array<string>** | | [optional] [default to undefined]
|
|
10
|
-
**maxPlayers** | **number** | | [default to undefined]
|
|
11
|
-
**slotIds** | **Array<string>** | | [default to undefined]
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import { GetOpenBookingPriceRequest } from '@tennac-booking/sdk';
|
|
17
|
-
|
|
18
|
-
const instance: GetOpenBookingPriceRequest = {
|
|
19
|
-
creditsByPlayer,
|
|
20
|
-
initialPlayerIds,
|
|
21
|
-
maxPlayers,
|
|
22
|
-
slotIds,
|
|
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)
|