@tennac-booking/sdk 1.0.68 → 1.0.69
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 +4 -0
- package/README.md +9 -3
- package/api.ts +399 -5
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +263 -4
- package/dist/api.js +191 -6
- 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 +263 -4
- package/dist/esm/api.js +188 -3
- 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/BookingStatus.md +2 -2
- package/docs/BookingsStaffApi.md +1 -1
- package/docs/CourtResponse.md +4 -0
- package/docs/CreateBookingRequest.md +2 -0
- package/docs/PlayerCategoriesResponse.md +20 -0
- package/docs/PlayerCategory.md +26 -0
- package/docs/PlayerCategoryId.md +16 -0
- package/docs/PlayerListResponse.md +26 -0
- package/docs/UserProfileResponse.md +2 -0
- package/docs/UsersApi.md +125 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/docs/UsersApi.md
CHANGED
|
@@ -21,8 +21,10 @@ All URIs are relative to *http://localhost*
|
|
|
21
21
|
|[**getNearestClubsFromCoordinates**](#getnearestclubsfromcoordinates) | **GET** /api/users/nearest-clubs/coordinates | |
|
|
22
22
|
|[**getNearestUsers**](#getnearestusers) | **GET** /api/users/me/nearest-players | |
|
|
23
23
|
|[**getNearestUsersFromCoordinates**](#getnearestusersfromcoordinates) | **GET** /api/users/nearest-players/coordinates | |
|
|
24
|
+
|[**getPlayerCategories**](#getplayercategories) | **GET** /api/users/players/categories | |
|
|
24
25
|
|[**getUserBookings**](#getuserbookings) | **GET** /api/users/me/bookings | |
|
|
25
26
|
|[**getUserProfileById**](#getuserprofilebyid) | **GET** /api/users/profile/{id} | |
|
|
27
|
+
|[**listPlayers**](#listplayers) | **GET** /api/users/players | |
|
|
26
28
|
|[**login**](#login) | **POST** /api/users/login | |
|
|
27
29
|
|[**refreshToken**](#refreshtoken) | **POST** /api/users/refresh-token | |
|
|
28
30
|
|[**register**](#register) | **POST** /api/users | |
|
|
@@ -872,6 +874,49 @@ No authorization required
|
|
|
872
874
|
- **Accept**: application/json
|
|
873
875
|
|
|
874
876
|
|
|
877
|
+
### HTTP response details
|
|
878
|
+
| Status code | Description | Response headers |
|
|
879
|
+
|-------------|-------------|------------------|
|
|
880
|
+
|**200** | Ok | - |
|
|
881
|
+
|
|
882
|
+
[[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)
|
|
883
|
+
|
|
884
|
+
# **getPlayerCategories**
|
|
885
|
+
> PlayerCategoriesResponse getPlayerCategories()
|
|
886
|
+
|
|
887
|
+
|
|
888
|
+
### Example
|
|
889
|
+
|
|
890
|
+
```typescript
|
|
891
|
+
import {
|
|
892
|
+
UsersApi,
|
|
893
|
+
Configuration
|
|
894
|
+
} from '@tennac-booking/sdk';
|
|
895
|
+
|
|
896
|
+
const configuration = new Configuration();
|
|
897
|
+
const apiInstance = new UsersApi(configuration);
|
|
898
|
+
|
|
899
|
+
const { status, data } = await apiInstance.getPlayerCategories();
|
|
900
|
+
```
|
|
901
|
+
|
|
902
|
+
### Parameters
|
|
903
|
+
This endpoint does not have any parameters.
|
|
904
|
+
|
|
905
|
+
|
|
906
|
+
### Return type
|
|
907
|
+
|
|
908
|
+
**PlayerCategoriesResponse**
|
|
909
|
+
|
|
910
|
+
### Authorization
|
|
911
|
+
|
|
912
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
913
|
+
|
|
914
|
+
### HTTP request headers
|
|
915
|
+
|
|
916
|
+
- **Content-Type**: Not defined
|
|
917
|
+
- **Accept**: application/json
|
|
918
|
+
|
|
919
|
+
|
|
875
920
|
### HTTP response details
|
|
876
921
|
| Status code | Description | Response headers |
|
|
877
922
|
|-------------|-------------|------------------|
|
|
@@ -975,6 +1020,86 @@ const { status, data } = await apiInstance.getUserProfileById(
|
|
|
975
1020
|
- **Accept**: application/json
|
|
976
1021
|
|
|
977
1022
|
|
|
1023
|
+
### HTTP response details
|
|
1024
|
+
| Status code | Description | Response headers |
|
|
1025
|
+
|-------------|-------------|------------------|
|
|
1026
|
+
|**200** | Ok | - |
|
|
1027
|
+
|
|
1028
|
+
[[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)
|
|
1029
|
+
|
|
1030
|
+
# **listPlayers**
|
|
1031
|
+
> PlayerListResponse listPlayers()
|
|
1032
|
+
|
|
1033
|
+
|
|
1034
|
+
### Example
|
|
1035
|
+
|
|
1036
|
+
```typescript
|
|
1037
|
+
import {
|
|
1038
|
+
UsersApi,
|
|
1039
|
+
Configuration
|
|
1040
|
+
} from '@tennac-booking/sdk';
|
|
1041
|
+
|
|
1042
|
+
const configuration = new Configuration();
|
|
1043
|
+
const apiInstance = new UsersApi(configuration);
|
|
1044
|
+
|
|
1045
|
+
let category: PlayerCategoryId; // (optional) (default to undefined)
|
|
1046
|
+
let search: string; // (optional) (default to undefined)
|
|
1047
|
+
let gender: string; // (optional) (default to undefined)
|
|
1048
|
+
let sharedClub: boolean; // (optional) (default to undefined)
|
|
1049
|
+
let sportLevels: string; // (optional) (default to undefined)
|
|
1050
|
+
let limit: number; // (optional) (default to undefined)
|
|
1051
|
+
let offset: number; // (optional) (default to undefined)
|
|
1052
|
+
let useLocation: boolean; // (optional) (default to undefined)
|
|
1053
|
+
let latitude: number; // (optional) (default to undefined)
|
|
1054
|
+
let longitude: number; // (optional) (default to undefined)
|
|
1055
|
+
let radiusInKm: number; // (optional) (default to undefined)
|
|
1056
|
+
|
|
1057
|
+
const { status, data } = await apiInstance.listPlayers(
|
|
1058
|
+
category,
|
|
1059
|
+
search,
|
|
1060
|
+
gender,
|
|
1061
|
+
sharedClub,
|
|
1062
|
+
sportLevels,
|
|
1063
|
+
limit,
|
|
1064
|
+
offset,
|
|
1065
|
+
useLocation,
|
|
1066
|
+
latitude,
|
|
1067
|
+
longitude,
|
|
1068
|
+
radiusInKm
|
|
1069
|
+
);
|
|
1070
|
+
```
|
|
1071
|
+
|
|
1072
|
+
### Parameters
|
|
1073
|
+
|
|
1074
|
+
|Name | Type | Description | Notes|
|
|
1075
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1076
|
+
| **category** | **PlayerCategoryId** | | (optional) defaults to undefined|
|
|
1077
|
+
| **search** | [**string**] | | (optional) defaults to undefined|
|
|
1078
|
+
| **gender** | [**string**] | | (optional) defaults to undefined|
|
|
1079
|
+
| **sharedClub** | [**boolean**] | | (optional) defaults to undefined|
|
|
1080
|
+
| **sportLevels** | [**string**] | | (optional) defaults to undefined|
|
|
1081
|
+
| **limit** | [**number**] | | (optional) defaults to undefined|
|
|
1082
|
+
| **offset** | [**number**] | | (optional) defaults to undefined|
|
|
1083
|
+
| **useLocation** | [**boolean**] | | (optional) defaults to undefined|
|
|
1084
|
+
| **latitude** | [**number**] | | (optional) defaults to undefined|
|
|
1085
|
+
| **longitude** | [**number**] | | (optional) defaults to undefined|
|
|
1086
|
+
| **radiusInKm** | [**number**] | | (optional) defaults to undefined|
|
|
1087
|
+
|
|
1088
|
+
|
|
1089
|
+
### Return type
|
|
1090
|
+
|
|
1091
|
+
**PlayerListResponse**
|
|
1092
|
+
|
|
1093
|
+
### Authorization
|
|
1094
|
+
|
|
1095
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1096
|
+
|
|
1097
|
+
### HTTP request headers
|
|
1098
|
+
|
|
1099
|
+
- **Content-Type**: Not defined
|
|
1100
|
+
- **Accept**: application/json
|
|
1101
|
+
|
|
1102
|
+
|
|
978
1103
|
### HTTP response details
|
|
979
1104
|
| Status code | Description | Response headers |
|
|
980
1105
|
|-------------|-------------|------------------|
|
package/index.ts
CHANGED