@tennac-booking/sdk 1.0.37 → 1.0.40
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 +66 -42
- package/README.md +94 -39
- package/api.ts +3985 -718
- package/base.ts +4 -4
- package/common.ts +3 -3
- package/configuration.ts +3 -3
- package/dist/api.d.ts +2632 -777
- package/dist/api.js +2452 -40
- package/dist/base.d.ts +3 -3
- package/dist/base.js +4 -4
- package/dist/common.d.ts +3 -3
- package/dist/common.js +3 -3
- package/dist/configuration.d.ts +3 -3
- package/dist/configuration.js +3 -3
- package/dist/esm/api.d.ts +2632 -777
- package/dist/esm/api.js +2443 -39
- package/dist/esm/base.d.ts +3 -3
- package/dist/esm/base.js +4 -4
- package/dist/esm/common.d.ts +3 -3
- package/dist/esm/common.js +3 -3
- package/dist/esm/configuration.d.ts +3 -3
- package/dist/esm/configuration.js +3 -3
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/docs/ActiveClub.md +2 -0
- package/docs/AddClubMemberRequest.md +22 -0
- package/docs/AddClubMemberResponse.md +22 -0
- package/docs/AddFavoriteClubRequestBody.md +20 -0
- package/docs/AddFavoritePlayerRequestBody.md +20 -0
- package/docs/AddPaymentMethodRequestBody.md +20 -0
- package/docs/AddPaymentMethodSetupRequestBody.md +20 -0
- package/docs/AddPaymentMethodSetupResponse.md +24 -0
- package/docs/ApiErrorResponse.md +1 -1
- package/docs/BaseUser.md +76 -0
- package/docs/BlockSlotResponse.md +22 -0
- package/docs/BookingDetailResponse.md +46 -0
- package/docs/BookingHistoryResponse.md +22 -0
- package/docs/BookingHistoryResponseHistoryInner.md +32 -0
- package/docs/BookingPaymentStatusResponse.md +24 -0
- package/docs/BookingPaymentStatusResponseBooking.md +26 -0
- package/docs/BookingPaymentStatusResponsePaymentStatusInner.md +36 -0
- package/docs/BookingPaymentStatusResponseSummary.md +28 -0
- package/docs/BookingPopulated.md +28 -0
- package/docs/BookingPopulatedPaymentByPlayersStatusInner.md +22 -0
- package/docs/BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner.md +24 -0
- package/docs/BookingPopulatedSlotId.md +26 -0
- package/docs/BookingPopulatedSlotIdCourtId.md +28 -0
- package/docs/BookingPopulatedSlotIdCourtIdSportId.md +22 -0
- package/docs/BookingPopulatedUserId.md +24 -0
- package/docs/BookingResponse.md +28 -0
- package/docs/BookingSummary.md +44 -0
- package/docs/BookingSummaryBookingHistory.md +18 -0
- package/docs/BookingSummaryClubAddress.md +18 -0
- package/docs/BookingsApi.md +113 -0
- package/docs/BookingsStaffWeeklyWeekIdGet200Response.md +20 -0
- package/docs/CancelBookingResponse.md +22 -0
- package/docs/CancelBookingResponseBooking.md +30 -0
- package/docs/ChangePasswordRequestBody.md +22 -0
- package/docs/ChangePasswordResponse.md +20 -0
- package/docs/CheckInPlayersResponse.md +30 -0
- package/docs/CheckInPlayersResponseCheckedInPlayersInner.md +34 -0
- package/docs/ClubAnalyticsApi.md +241 -0
- package/docs/ClubInfoResponse.md +48 -0
- package/docs/ClubMember.md +24 -0
- package/docs/ClubMembersResponse.md +22 -0
- package/docs/ClubRoleResponse.md +6 -6
- package/docs/ClubRolesResponse.md +22 -0
- package/docs/ClubSettings.md +21 -9
- package/docs/ClubStaffResponse.md +48 -0
- package/docs/ClubsApi.md +61 -0
- package/docs/ConfirmPaymentMethodRequestBody.md +20 -0
- package/docs/ConfirmPaymentMethodResponse.md +22 -0
- package/docs/ConfirmPaymentMethodSetupRequestBody.md +20 -0
- package/docs/ConfirmPaymentMethodSetupResponse.md +22 -0
- package/docs/CourtDeleteResponse.md +20 -0
- package/docs/CourtResponse.md +18 -16
- package/docs/CourtStatus.md +5 -2
- package/docs/CourtWithNameResponse.md +48 -0
- package/docs/CourtsResponse.md +22 -0
- package/docs/CourtsWithNameResponse.md +22 -0
- package/docs/CreateBookingRequest.md +28 -0
- package/docs/CreateClubRoleRequestBody.md +24 -0
- package/docs/CreateCourtRequest.md +36 -0
- package/docs/CreateEventRequest.md +30 -0
- package/docs/CreatePriceRequest.md +26 -0
- package/docs/CreateSportRequest.md +26 -0
- package/docs/CreateSubscriptionPlanRequest.md +24 -0
- package/docs/DailyTurnoverResponse.md +24 -0
- package/docs/DeleteClubRole200Response.md +20 -0
- package/docs/DeleteEvent200Response.md +20 -0
- package/docs/DeleteSlotsByClubInRange200Response.md +20 -0
- package/docs/DeleteSport200Response.md +20 -0
- package/docs/DiagnosticsApi.md +52 -0
- package/docs/DiagnosticsResponse.md +24 -0
- package/docs/Event.md +40 -0
- package/docs/EventBooking.md +32 -0
- package/docs/EventRegistrationRequest.md +22 -0
- package/docs/EventsApi.md +119 -0
- package/docs/FavoriteClubItem.md +26 -0
- package/docs/FavoriteClubMutationResponse.md +22 -0
- package/docs/FavoriteClubRequestBody.md +20 -0
- package/docs/FavoriteClubResponse.md +22 -0
- package/docs/FavoriteClubsResponse.md +20 -0
- package/docs/FavoritePlayerMutationResponse.md +22 -0
- package/docs/FavoritePlayerPublic.md +28 -0
- package/docs/FavoritePlayerRequestBody.md +20 -0
- package/docs/FavoritePlayersIdsResponse.md +22 -0
- package/docs/FavoritePlayersResponse.md +20 -0
- package/docs/FrequentClub.md +24 -0
- package/docs/FrequentPlayer.md +28 -0
- package/docs/{UserResponseFrequentlyPlayedWithInner.md → FrequentlyPlayedWithItem.md} +3 -3
- package/docs/{UserResponseFrequentlyVisitedClubsInner.md → FrequentlyVisitedClubItem.md} +3 -3
- package/docs/Gender.md +12 -0
- package/docs/GenderPercentage.md +26 -0
- package/docs/GetActiveClubs200Response.md +20 -0
- package/docs/GetClubInfos200Response.md +30 -0
- package/docs/GetClubUsersById200Response.md +20 -0
- package/docs/GetCourtsByClubAndSport200Response.md +26 -0
- package/docs/GetInfillPercentagePerPeriod200Response.md +24 -0
- package/docs/GetLastSixMonthsTurnover200ResponseInner.md +22 -0
- package/docs/GetNumberOfClubUsers200Response.md +20 -0
- package/docs/GetPublishedEventsByClubId200Response.md +20 -0
- package/docs/GetUserRolesResponse.md +20 -0
- package/docs/GetUserRolesResponseRolesInner.md +26 -0
- package/docs/GetUserSubscriptionsResponse.md +22 -0
- package/docs/GoogleAuthRequestBody.md +20 -0
- package/docs/GoogleAuthResponse.md +30 -0
- package/docs/GoogleAuthResponseUser.md +26 -0
- package/docs/GoogleSignInRequestBody.md +20 -0
- package/docs/GoogleSignInResponse.md +24 -0
- package/docs/ILevelBySports.md +22 -0
- package/docs/InitiateSubscriptionSessionRequestBody.md +26 -0
- package/docs/InitiateSubscriptionSessionResponse.md +22 -0
- package/docs/InvoicesResponse.md +22 -0
- package/docs/InvoicesResponseInvoicesInner.md +34 -0
- package/docs/InvoicesResponsePagination.md +26 -0
- package/docs/LevelBySportEntry.md +22 -0
- package/docs/LevelBySportsItem.md +22 -0
- package/docs/LoginRequestBody.md +22 -0
- package/docs/LoginResponse.md +28 -0
- package/docs/ManagerBookingsApi.md +125 -0
- package/docs/ManagerCancelBookingRequest.md +20 -0
- package/docs/ManagerCancelBookingResponse.md +22 -0
- package/docs/ManagerCancelBookingResponseBooking.md +30 -0
- package/docs/ManagerClubCourtsApi.md +220 -0
- package/docs/ManagerClubRolesApi.md +268 -0
- package/docs/ManagerClubSlotsApi.md +119 -0
- package/docs/ManagerClubSubscriptionsApi.md +387 -0
- package/docs/ManagerClubsApi.md +253 -0
- package/docs/ManagerEventResponse.md +22 -0
- package/docs/ManagerEventsApi.md +227 -0
- package/docs/ManagerSportsApi.md +119 -0
- package/docs/MonthlyTurnoverResponse.md +28 -0
- package/docs/NoShowFeeResponse.md +30 -0
- package/docs/NoShowFeeResponseCaptureResultsInner.md +30 -0
- package/docs/NoShowFeeResponseCreatorChargeResult.md +26 -0
- package/docs/NotImplementedResponse.md +20 -0
- package/docs/PasswordResetRequestBody.md +20 -0
- package/docs/PaymentMethodSetupResponse.md +24 -0
- package/docs/PaymentStatus.md +30 -0
- package/docs/PickUserResponseExcludeKeyofUserResponseLocation.md +73 -0
- package/docs/PlayerWithPaymentMethod.md +22 -0
- package/docs/PriceResponse.md +2 -8
- package/docs/ProfilePictureResponse.md +20 -0
- package/docs/ProfilePictureUpdateRequestBody.md +20 -0
- package/docs/ProfileVisibilityResponse.md +20 -0
- package/docs/PublicClubUser.md +46 -0
- package/docs/PublicClubUserFrequentlyPlayedWithInner.md +28 -0
- package/docs/PublicClubUserFrequentlyVisitedClubsInner.md +24 -0
- package/docs/{UserResponseLevelBySportsInner.md → PublicClubUserLevelBySportsInner.md} +3 -3
- package/docs/RefreshTokenRequestBody.md +20 -0
- package/docs/RefreshTokenResponse.md +26 -0
- package/docs/RegisterForEvent201Response.md +20 -0
- package/docs/{User.md → RegisterRequestBody.md} +5 -9
- package/docs/RestoreSubscriptionPlanForClub200Response.md +20 -0
- package/docs/SdkDiagnosticsResponse.md +28 -0
- package/docs/SdkDiagnosticsResponseOpenapi.md +24 -0
- package/docs/SdkDiagnosticsResponseSdk.md +24 -0
- package/docs/SetupPaymentMethodRequestBody.md +20 -0
- package/docs/SetupPaymentMethodResponse.md +24 -0
- package/docs/SlotResponse.md +2 -10
- package/docs/SlotsResponse.md +22 -0
- package/docs/Sport.md +0 -2
- package/docs/SportResponse.md +4 -2
- package/docs/StaffBookingsApi.md +61 -0
- package/docs/StaffClubAnalyticsApi.md +254 -0
- package/docs/StaffClubBookingsApi.md +52 -0
- package/docs/StaffClubsApi.md +147 -0
- package/docs/StaffEventResponse.md +20 -0
- package/docs/StaffEventsApi.md +54 -0
- package/docs/StaffProfileApi.md +110 -0
- package/docs/StaffUserProfileResponse.md +22 -0
- package/docs/SubscribeToClubRequestBody.md +22 -0
- package/docs/SubscriptionMutationResponse.md +20 -0
- package/docs/SubscriptionPlanResponse.md +32 -0
- package/docs/SubscriptionSessionRequestBody.md +22 -0
- package/docs/SubscriptionSessionResponse.md +20 -0
- package/docs/UpdateClubRequest.md +34 -0
- package/docs/UpdateClubRoleRequestBody.md +24 -0
- package/docs/UpdateClubSettingsRequest.md +28 -0
- package/docs/UpdateCourtRequest.md +38 -0
- package/docs/UpdateCustomerRequestBody.md +22 -0
- package/docs/UpdateCustomerRequestBodyAddress.md +30 -0
- package/docs/UpdateCustomerResponse.md +20 -0
- package/docs/UpdateCustomerResponseCustomer.md +28 -0
- package/docs/UpdateLevelBySportsRequestBody.md +20 -0
- package/docs/UpdateProfilePictureRequestBody.md +20 -0
- package/docs/UpdateProfileVisibilityRequestBody.md +20 -0
- package/docs/UpdateSportRequest.md +24 -0
- package/docs/UpdateSubscriptionPlanRequest.md +24 -0
- package/docs/UpdateSubscriptionPlanResponse.md +22 -0
- package/docs/UpdateUserCityRequestBody.md +20 -0
- package/docs/UpdateUserDescriptionRequestBody.md +20 -0
- package/docs/UpdateUserRequestBody.md +38 -0
- package/docs/UpdateUserRequestBodyLevelBySportsInner.md +22 -0
- package/docs/UserApi.md +63 -0
- package/docs/UserAuthenticationApi.md +226 -0
- package/docs/UserBookingItem.md +46 -0
- package/docs/UserBookingsApi.md +166 -0
- package/docs/UserBookingsResponse.md +26 -0
- package/docs/UserCityResponse.md +20 -0
- package/docs/UserClubCourtsApi.md +64 -0
- package/docs/UserClubSlotsApi.md +181 -0
- package/docs/UserClubSportsApi.md +60 -0
- package/docs/UserClubsApi.md +145 -0
- package/docs/UserDescriptionResponse.md +20 -0
- package/docs/UserFavoriteClubsResponse.md +20 -0
- package/docs/UserInfoStaff.md +38 -0
- package/docs/UserLocationSummary.md +44 -0
- package/docs/UserPaymentApi.md +176 -0
- package/docs/UserProfileApi.md +1254 -0
- package/docs/UserProfileResponse.md +28 -0
- package/docs/UserResponse.md +8 -48
- package/docs/UserRolesResponse.md +20 -0
- package/docs/UserStaffResponse.md +40 -0
- package/docs/UserSubscriptionsApi.md +222 -0
- package/docs/UserSubscriptionsResponse.md +20 -0
- package/docs/UsersApi.md +1888 -0
- package/docs/YearlyTurnoverResponse.md +26 -0
- package/docs/YearlyTurnoverResponseMonthlyBreakdownInner.md +24 -0
- package/index.ts +3 -3
- package/package.json +1 -1
package/docs/UsersApi.md
ADDED
|
@@ -0,0 +1,1888 @@
|
|
|
1
|
+
# UsersApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to */api*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**addFavoriteClub**](#addfavoriteclub) | **POST** /users/me/favorite-clubs | |
|
|
8
|
+
|[**addFavoritePlayer**](#addfavoriteplayer) | **POST** /users/me/favoritesPlayers | |
|
|
9
|
+
|[**addPaymentMethodSetup**](#addpaymentmethodsetup) | **POST** /users/addPaymentMethodSetup | |
|
|
10
|
+
|[**cancelSubscription**](#cancelsubscription) | **DELETE** /users/me/subscriptions/{clubId}/{subscriptionId} | |
|
|
11
|
+
|[**changePassword**](#changepassword) | **PUT** /users/me/password | |
|
|
12
|
+
|[**confirmPaymentMethodSetup**](#confirmpaymentmethodsetup) | **POST** /users/confirmPaymentMethodSetup | |
|
|
13
|
+
|[**getAllUsers**](#getallusers) | **GET** /users | |
|
|
14
|
+
|[**getBookingDetail**](#getbookingdetail) | **GET** /users/me/booking-detail/{bookingId} | |
|
|
15
|
+
|[**getFavoriteClubs**](#getfavoriteclubs) | **GET** /users/me/favorite-clubs | |
|
|
16
|
+
|[**getFavoritesPlayers**](#getfavoritesplayers) | **GET** /users/me/favoritesPlayers | |
|
|
17
|
+
|[**getFrequentlyPlayedWith**](#getfrequentlyplayedwith) | **GET** /users/me/frequentlyPlayedWith | |
|
|
18
|
+
|[**getFrequentlyVisitedClub**](#getfrequentlyvisitedclub) | **GET** /users/me/frequentlyVisitedClub | |
|
|
19
|
+
|[**getMe**](#getme) | **GET** /users/me | |
|
|
20
|
+
|[**getNearestClubs**](#getnearestclubs) | **GET** /users/me/nearest-clubs | |
|
|
21
|
+
|[**getNearestClubsFromCoordinates**](#getnearestclubsfromcoordinates) | **GET** /users/nearest-clubs/coordinates | |
|
|
22
|
+
|[**getNearestUsers**](#getnearestusers) | **GET** /users/me/nearest-players | |
|
|
23
|
+
|[**getNearestUsersFromCoordinates**](#getnearestusersfromcoordinates) | **GET** /users/nearest-players/coordinates | |
|
|
24
|
+
|[**getUserBookings**](#getuserbookings) | **GET** /users/me/bookings | |
|
|
25
|
+
|[**getUserProfileById**](#getuserprofilebyid) | **GET** /users/profile/{id} | |
|
|
26
|
+
|[**getUserProfileStaff**](#getuserprofilestaff) | **GET** /users/staff/profile/{id} | |
|
|
27
|
+
|[**getUserRolesInClubs**](#getuserrolesinclubs) | **GET** /users/me/roles | |
|
|
28
|
+
|[**getUserSubscriptions**](#getusersubscriptions) | **GET** /users/me/subscriptions | |
|
|
29
|
+
|[**initiateSubscriptionSession**](#initiatesubscriptionsession) | **POST** /users/me/subscription-session | |
|
|
30
|
+
|[**login**](#login) | **POST** /users/login | |
|
|
31
|
+
|[**refreshToken**](#refreshtoken) | **POST** /users/refresh-token | |
|
|
32
|
+
|[**register**](#register) | **POST** /users | |
|
|
33
|
+
|[**removeFavoriteClub**](#removefavoriteclub) | **DELETE** /users/me/favorite-clubs/{clubId} | |
|
|
34
|
+
|[**removeFavoritePlayer**](#removefavoriteplayer) | **DELETE** /users/me/favoritesPlayers/{favoritePlayerId} | |
|
|
35
|
+
|[**requestPasswordReset**](#requestpasswordreset) | **POST** /users/me/request-password-rest | |
|
|
36
|
+
|[**resumeSubscription**](#resumesubscription) | **POST** /users/me/subscriptions/{clubId}/{subscriptionId}/resume | |
|
|
37
|
+
|[**setupPaymentMethod**](#setuppaymentmethod) | **POST** /users/setupPaymentMethod | |
|
|
38
|
+
|[**signInOrSignUpWithGoogle**](#signinorsignupwithgoogle) | **POST** /users/googleSignin | |
|
|
39
|
+
|[**subscribeToClub**](#subscribetoclub) | **POST** /users/me/subscribe | |
|
|
40
|
+
|[**updateCustomer**](#updatecustomer) | **PUT** /users/me/customer | |
|
|
41
|
+
|[**updateLevelBySports**](#updatelevelbysports) | **PUT** /users/me/level-by-sports | |
|
|
42
|
+
|[**updateMe**](#updateme) | **PUT** /users/me | |
|
|
43
|
+
|[**updateProfilePicture**](#updateprofilepicture) | **PUT** /users/me/profile-picture | |
|
|
44
|
+
|
|
45
|
+
# **addFavoriteClub**
|
|
46
|
+
> FavoriteClubMutationResponse addFavoriteClub(favoriteClubRequestBody)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### Example
|
|
50
|
+
|
|
51
|
+
```typescript
|
|
52
|
+
import {
|
|
53
|
+
UsersApi,
|
|
54
|
+
Configuration,
|
|
55
|
+
FavoriteClubRequestBody
|
|
56
|
+
} from '@tennac-booking/sdk';
|
|
57
|
+
|
|
58
|
+
const configuration = new Configuration();
|
|
59
|
+
const apiInstance = new UsersApi(configuration);
|
|
60
|
+
|
|
61
|
+
let favoriteClubRequestBody: FavoriteClubRequestBody; //
|
|
62
|
+
|
|
63
|
+
const { status, data } = await apiInstance.addFavoriteClub(
|
|
64
|
+
favoriteClubRequestBody
|
|
65
|
+
);
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Parameters
|
|
69
|
+
|
|
70
|
+
|Name | Type | Description | Notes|
|
|
71
|
+
|------------- | ------------- | ------------- | -------------|
|
|
72
|
+
| **favoriteClubRequestBody** | **FavoriteClubRequestBody**| | |
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
### Return type
|
|
76
|
+
|
|
77
|
+
**FavoriteClubMutationResponse**
|
|
78
|
+
|
|
79
|
+
### Authorization
|
|
80
|
+
|
|
81
|
+
No authorization required
|
|
82
|
+
|
|
83
|
+
### HTTP request headers
|
|
84
|
+
|
|
85
|
+
- **Content-Type**: application/json
|
|
86
|
+
- **Accept**: application/json
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
### HTTP response details
|
|
90
|
+
| Status code | Description | Response headers |
|
|
91
|
+
|-------------|-------------|------------------|
|
|
92
|
+
|**200** | Ok | - |
|
|
93
|
+
|
|
94
|
+
[[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)
|
|
95
|
+
|
|
96
|
+
# **addFavoritePlayer**
|
|
97
|
+
> FavoritePlayerMutationResponse addFavoritePlayer(favoritePlayerRequestBody)
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
### Example
|
|
101
|
+
|
|
102
|
+
```typescript
|
|
103
|
+
import {
|
|
104
|
+
UsersApi,
|
|
105
|
+
Configuration,
|
|
106
|
+
FavoritePlayerRequestBody
|
|
107
|
+
} from '@tennac-booking/sdk';
|
|
108
|
+
|
|
109
|
+
const configuration = new Configuration();
|
|
110
|
+
const apiInstance = new UsersApi(configuration);
|
|
111
|
+
|
|
112
|
+
let favoritePlayerRequestBody: FavoritePlayerRequestBody; //
|
|
113
|
+
|
|
114
|
+
const { status, data } = await apiInstance.addFavoritePlayer(
|
|
115
|
+
favoritePlayerRequestBody
|
|
116
|
+
);
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
### Parameters
|
|
120
|
+
|
|
121
|
+
|Name | Type | Description | Notes|
|
|
122
|
+
|------------- | ------------- | ------------- | -------------|
|
|
123
|
+
| **favoritePlayerRequestBody** | **FavoritePlayerRequestBody**| | |
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
### Return type
|
|
127
|
+
|
|
128
|
+
**FavoritePlayerMutationResponse**
|
|
129
|
+
|
|
130
|
+
### Authorization
|
|
131
|
+
|
|
132
|
+
No authorization required
|
|
133
|
+
|
|
134
|
+
### HTTP request headers
|
|
135
|
+
|
|
136
|
+
- **Content-Type**: application/json
|
|
137
|
+
- **Accept**: application/json
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
### HTTP response details
|
|
141
|
+
| Status code | Description | Response headers |
|
|
142
|
+
|-------------|-------------|------------------|
|
|
143
|
+
|**200** | Ok | - |
|
|
144
|
+
|
|
145
|
+
[[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)
|
|
146
|
+
|
|
147
|
+
# **addPaymentMethodSetup**
|
|
148
|
+
> PaymentMethodSetupResponse addPaymentMethodSetup(addPaymentMethodRequestBody)
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
### Example
|
|
152
|
+
|
|
153
|
+
```typescript
|
|
154
|
+
import {
|
|
155
|
+
UsersApi,
|
|
156
|
+
Configuration,
|
|
157
|
+
AddPaymentMethodRequestBody
|
|
158
|
+
} from '@tennac-booking/sdk';
|
|
159
|
+
|
|
160
|
+
const configuration = new Configuration();
|
|
161
|
+
const apiInstance = new UsersApi(configuration);
|
|
162
|
+
|
|
163
|
+
let addPaymentMethodRequestBody: AddPaymentMethodRequestBody; //
|
|
164
|
+
|
|
165
|
+
const { status, data } = await apiInstance.addPaymentMethodSetup(
|
|
166
|
+
addPaymentMethodRequestBody
|
|
167
|
+
);
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
### Parameters
|
|
171
|
+
|
|
172
|
+
|Name | Type | Description | Notes|
|
|
173
|
+
|------------- | ------------- | ------------- | -------------|
|
|
174
|
+
| **addPaymentMethodRequestBody** | **AddPaymentMethodRequestBody**| | |
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
### Return type
|
|
178
|
+
|
|
179
|
+
**PaymentMethodSetupResponse**
|
|
180
|
+
|
|
181
|
+
### Authorization
|
|
182
|
+
|
|
183
|
+
No authorization required
|
|
184
|
+
|
|
185
|
+
### HTTP request headers
|
|
186
|
+
|
|
187
|
+
- **Content-Type**: application/json
|
|
188
|
+
- **Accept**: application/json
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
### HTTP response details
|
|
192
|
+
| Status code | Description | Response headers |
|
|
193
|
+
|-------------|-------------|------------------|
|
|
194
|
+
|**200** | Ok | - |
|
|
195
|
+
|
|
196
|
+
[[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)
|
|
197
|
+
|
|
198
|
+
# **cancelSubscription**
|
|
199
|
+
> SubscriptionMutationResponse cancelSubscription()
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
### Example
|
|
203
|
+
|
|
204
|
+
```typescript
|
|
205
|
+
import {
|
|
206
|
+
UsersApi,
|
|
207
|
+
Configuration
|
|
208
|
+
} from '@tennac-booking/sdk';
|
|
209
|
+
|
|
210
|
+
const configuration = new Configuration();
|
|
211
|
+
const apiInstance = new UsersApi(configuration);
|
|
212
|
+
|
|
213
|
+
let clubId: string; // (default to undefined)
|
|
214
|
+
let subscriptionId: string; // (default to undefined)
|
|
215
|
+
|
|
216
|
+
const { status, data } = await apiInstance.cancelSubscription(
|
|
217
|
+
clubId,
|
|
218
|
+
subscriptionId
|
|
219
|
+
);
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
### Parameters
|
|
223
|
+
|
|
224
|
+
|Name | Type | Description | Notes|
|
|
225
|
+
|------------- | ------------- | ------------- | -------------|
|
|
226
|
+
| **clubId** | [**string**] | | defaults to undefined|
|
|
227
|
+
| **subscriptionId** | [**string**] | | defaults to undefined|
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
### Return type
|
|
231
|
+
|
|
232
|
+
**SubscriptionMutationResponse**
|
|
233
|
+
|
|
234
|
+
### Authorization
|
|
235
|
+
|
|
236
|
+
No authorization required
|
|
237
|
+
|
|
238
|
+
### HTTP request headers
|
|
239
|
+
|
|
240
|
+
- **Content-Type**: Not defined
|
|
241
|
+
- **Accept**: application/json
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
### HTTP response details
|
|
245
|
+
| Status code | Description | Response headers |
|
|
246
|
+
|-------------|-------------|------------------|
|
|
247
|
+
|**200** | Ok | - |
|
|
248
|
+
|
|
249
|
+
[[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)
|
|
250
|
+
|
|
251
|
+
# **changePassword**
|
|
252
|
+
> ChangePasswordResponse changePassword(changePasswordRequestBody)
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
### Example
|
|
256
|
+
|
|
257
|
+
```typescript
|
|
258
|
+
import {
|
|
259
|
+
UsersApi,
|
|
260
|
+
Configuration,
|
|
261
|
+
ChangePasswordRequestBody
|
|
262
|
+
} from '@tennac-booking/sdk';
|
|
263
|
+
|
|
264
|
+
const configuration = new Configuration();
|
|
265
|
+
const apiInstance = new UsersApi(configuration);
|
|
266
|
+
|
|
267
|
+
let changePasswordRequestBody: ChangePasswordRequestBody; //
|
|
268
|
+
|
|
269
|
+
const { status, data } = await apiInstance.changePassword(
|
|
270
|
+
changePasswordRequestBody
|
|
271
|
+
);
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
### Parameters
|
|
275
|
+
|
|
276
|
+
|Name | Type | Description | Notes|
|
|
277
|
+
|------------- | ------------- | ------------- | -------------|
|
|
278
|
+
| **changePasswordRequestBody** | **ChangePasswordRequestBody**| | |
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
### Return type
|
|
282
|
+
|
|
283
|
+
**ChangePasswordResponse**
|
|
284
|
+
|
|
285
|
+
### Authorization
|
|
286
|
+
|
|
287
|
+
No authorization required
|
|
288
|
+
|
|
289
|
+
### HTTP request headers
|
|
290
|
+
|
|
291
|
+
- **Content-Type**: application/json
|
|
292
|
+
- **Accept**: application/json
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
### HTTP response details
|
|
296
|
+
| Status code | Description | Response headers |
|
|
297
|
+
|-------------|-------------|------------------|
|
|
298
|
+
|**200** | Ok | - |
|
|
299
|
+
|
|
300
|
+
[[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
|
+
# **confirmPaymentMethodSetup**
|
|
303
|
+
> ConfirmPaymentMethodResponse confirmPaymentMethodSetup(confirmPaymentMethodRequestBody)
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
### Example
|
|
307
|
+
|
|
308
|
+
```typescript
|
|
309
|
+
import {
|
|
310
|
+
UsersApi,
|
|
311
|
+
Configuration,
|
|
312
|
+
ConfirmPaymentMethodRequestBody
|
|
313
|
+
} from '@tennac-booking/sdk';
|
|
314
|
+
|
|
315
|
+
const configuration = new Configuration();
|
|
316
|
+
const apiInstance = new UsersApi(configuration);
|
|
317
|
+
|
|
318
|
+
let confirmPaymentMethodRequestBody: ConfirmPaymentMethodRequestBody; //
|
|
319
|
+
|
|
320
|
+
const { status, data } = await apiInstance.confirmPaymentMethodSetup(
|
|
321
|
+
confirmPaymentMethodRequestBody
|
|
322
|
+
);
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
### Parameters
|
|
326
|
+
|
|
327
|
+
|Name | Type | Description | Notes|
|
|
328
|
+
|------------- | ------------- | ------------- | -------------|
|
|
329
|
+
| **confirmPaymentMethodRequestBody** | **ConfirmPaymentMethodRequestBody**| | |
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
### Return type
|
|
333
|
+
|
|
334
|
+
**ConfirmPaymentMethodResponse**
|
|
335
|
+
|
|
336
|
+
### Authorization
|
|
337
|
+
|
|
338
|
+
No authorization required
|
|
339
|
+
|
|
340
|
+
### HTTP request headers
|
|
341
|
+
|
|
342
|
+
- **Content-Type**: application/json
|
|
343
|
+
- **Accept**: application/json
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
### HTTP response details
|
|
347
|
+
| Status code | Description | Response headers |
|
|
348
|
+
|-------------|-------------|------------------|
|
|
349
|
+
|**200** | Ok | - |
|
|
350
|
+
|
|
351
|
+
[[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)
|
|
352
|
+
|
|
353
|
+
# **getAllUsers**
|
|
354
|
+
> Array<BaseUser> getAllUsers()
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
### Example
|
|
358
|
+
|
|
359
|
+
```typescript
|
|
360
|
+
import {
|
|
361
|
+
UsersApi,
|
|
362
|
+
Configuration
|
|
363
|
+
} from '@tennac-booking/sdk';
|
|
364
|
+
|
|
365
|
+
const configuration = new Configuration();
|
|
366
|
+
const apiInstance = new UsersApi(configuration);
|
|
367
|
+
|
|
368
|
+
const { status, data } = await apiInstance.getAllUsers();
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
### Parameters
|
|
372
|
+
This endpoint does not have any parameters.
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
### Return type
|
|
376
|
+
|
|
377
|
+
**Array<BaseUser>**
|
|
378
|
+
|
|
379
|
+
### Authorization
|
|
380
|
+
|
|
381
|
+
No authorization required
|
|
382
|
+
|
|
383
|
+
### HTTP request headers
|
|
384
|
+
|
|
385
|
+
- **Content-Type**: Not defined
|
|
386
|
+
- **Accept**: application/json
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
### HTTP response details
|
|
390
|
+
| Status code | Description | Response headers |
|
|
391
|
+
|-------------|-------------|------------------|
|
|
392
|
+
|**200** | Ok | - |
|
|
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
|
+
|
|
396
|
+
# **getBookingDetail**
|
|
397
|
+
> BookingDetailResponse getBookingDetail()
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
### Example
|
|
401
|
+
|
|
402
|
+
```typescript
|
|
403
|
+
import {
|
|
404
|
+
UsersApi,
|
|
405
|
+
Configuration
|
|
406
|
+
} from '@tennac-booking/sdk';
|
|
407
|
+
|
|
408
|
+
const configuration = new Configuration();
|
|
409
|
+
const apiInstance = new UsersApi(configuration);
|
|
410
|
+
|
|
411
|
+
let bookingId: string; // (default to undefined)
|
|
412
|
+
|
|
413
|
+
const { status, data } = await apiInstance.getBookingDetail(
|
|
414
|
+
bookingId
|
|
415
|
+
);
|
|
416
|
+
```
|
|
417
|
+
|
|
418
|
+
### Parameters
|
|
419
|
+
|
|
420
|
+
|Name | Type | Description | Notes|
|
|
421
|
+
|------------- | ------------- | ------------- | -------------|
|
|
422
|
+
| **bookingId** | [**string**] | | defaults to undefined|
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
### Return type
|
|
426
|
+
|
|
427
|
+
**BookingDetailResponse**
|
|
428
|
+
|
|
429
|
+
### Authorization
|
|
430
|
+
|
|
431
|
+
No authorization required
|
|
432
|
+
|
|
433
|
+
### HTTP request headers
|
|
434
|
+
|
|
435
|
+
- **Content-Type**: Not defined
|
|
436
|
+
- **Accept**: application/json
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
### HTTP response details
|
|
440
|
+
| Status code | Description | Response headers |
|
|
441
|
+
|-------------|-------------|------------------|
|
|
442
|
+
|**200** | Ok | - |
|
|
443
|
+
|
|
444
|
+
[[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)
|
|
445
|
+
|
|
446
|
+
# **getFavoriteClubs**
|
|
447
|
+
> FavoriteClubsResponse getFavoriteClubs()
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
### Example
|
|
451
|
+
|
|
452
|
+
```typescript
|
|
453
|
+
import {
|
|
454
|
+
UsersApi,
|
|
455
|
+
Configuration
|
|
456
|
+
} from '@tennac-booking/sdk';
|
|
457
|
+
|
|
458
|
+
const configuration = new Configuration();
|
|
459
|
+
const apiInstance = new UsersApi(configuration);
|
|
460
|
+
|
|
461
|
+
const { status, data } = await apiInstance.getFavoriteClubs();
|
|
462
|
+
```
|
|
463
|
+
|
|
464
|
+
### Parameters
|
|
465
|
+
This endpoint does not have any parameters.
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
### Return type
|
|
469
|
+
|
|
470
|
+
**FavoriteClubsResponse**
|
|
471
|
+
|
|
472
|
+
### Authorization
|
|
473
|
+
|
|
474
|
+
No authorization required
|
|
475
|
+
|
|
476
|
+
### HTTP request headers
|
|
477
|
+
|
|
478
|
+
- **Content-Type**: Not defined
|
|
479
|
+
- **Accept**: application/json
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
### HTTP response details
|
|
483
|
+
| Status code | Description | Response headers |
|
|
484
|
+
|-------------|-------------|------------------|
|
|
485
|
+
|**200** | Ok | - |
|
|
486
|
+
|
|
487
|
+
[[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)
|
|
488
|
+
|
|
489
|
+
# **getFavoritesPlayers**
|
|
490
|
+
> FavoritePlayersResponse getFavoritesPlayers()
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
### Example
|
|
494
|
+
|
|
495
|
+
```typescript
|
|
496
|
+
import {
|
|
497
|
+
UsersApi,
|
|
498
|
+
Configuration
|
|
499
|
+
} from '@tennac-booking/sdk';
|
|
500
|
+
|
|
501
|
+
const configuration = new Configuration();
|
|
502
|
+
const apiInstance = new UsersApi(configuration);
|
|
503
|
+
|
|
504
|
+
const { status, data } = await apiInstance.getFavoritesPlayers();
|
|
505
|
+
```
|
|
506
|
+
|
|
507
|
+
### Parameters
|
|
508
|
+
This endpoint does not have any parameters.
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
### Return type
|
|
512
|
+
|
|
513
|
+
**FavoritePlayersResponse**
|
|
514
|
+
|
|
515
|
+
### Authorization
|
|
516
|
+
|
|
517
|
+
No authorization required
|
|
518
|
+
|
|
519
|
+
### HTTP request headers
|
|
520
|
+
|
|
521
|
+
- **Content-Type**: Not defined
|
|
522
|
+
- **Accept**: application/json
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
### HTTP response details
|
|
526
|
+
| Status code | Description | Response headers |
|
|
527
|
+
|-------------|-------------|------------------|
|
|
528
|
+
|**200** | Ok | - |
|
|
529
|
+
|
|
530
|
+
[[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)
|
|
531
|
+
|
|
532
|
+
# **getFrequentlyPlayedWith**
|
|
533
|
+
> Array<FrequentPlayer> getFrequentlyPlayedWith()
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
### Example
|
|
537
|
+
|
|
538
|
+
```typescript
|
|
539
|
+
import {
|
|
540
|
+
UsersApi,
|
|
541
|
+
Configuration
|
|
542
|
+
} from '@tennac-booking/sdk';
|
|
543
|
+
|
|
544
|
+
const configuration = new Configuration();
|
|
545
|
+
const apiInstance = new UsersApi(configuration);
|
|
546
|
+
|
|
547
|
+
const { status, data } = await apiInstance.getFrequentlyPlayedWith();
|
|
548
|
+
```
|
|
549
|
+
|
|
550
|
+
### Parameters
|
|
551
|
+
This endpoint does not have any parameters.
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
### Return type
|
|
555
|
+
|
|
556
|
+
**Array<FrequentPlayer>**
|
|
557
|
+
|
|
558
|
+
### Authorization
|
|
559
|
+
|
|
560
|
+
No authorization required
|
|
561
|
+
|
|
562
|
+
### HTTP request headers
|
|
563
|
+
|
|
564
|
+
- **Content-Type**: Not defined
|
|
565
|
+
- **Accept**: application/json
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
### HTTP response details
|
|
569
|
+
| Status code | Description | Response headers |
|
|
570
|
+
|-------------|-------------|------------------|
|
|
571
|
+
|**200** | Ok | - |
|
|
572
|
+
|
|
573
|
+
[[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)
|
|
574
|
+
|
|
575
|
+
# **getFrequentlyVisitedClub**
|
|
576
|
+
> Array<FrequentClub> getFrequentlyVisitedClub()
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
### Example
|
|
580
|
+
|
|
581
|
+
```typescript
|
|
582
|
+
import {
|
|
583
|
+
UsersApi,
|
|
584
|
+
Configuration
|
|
585
|
+
} from '@tennac-booking/sdk';
|
|
586
|
+
|
|
587
|
+
const configuration = new Configuration();
|
|
588
|
+
const apiInstance = new UsersApi(configuration);
|
|
589
|
+
|
|
590
|
+
const { status, data } = await apiInstance.getFrequentlyVisitedClub();
|
|
591
|
+
```
|
|
592
|
+
|
|
593
|
+
### Parameters
|
|
594
|
+
This endpoint does not have any parameters.
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
### Return type
|
|
598
|
+
|
|
599
|
+
**Array<FrequentClub>**
|
|
600
|
+
|
|
601
|
+
### Authorization
|
|
602
|
+
|
|
603
|
+
No authorization required
|
|
604
|
+
|
|
605
|
+
### HTTP request headers
|
|
606
|
+
|
|
607
|
+
- **Content-Type**: Not defined
|
|
608
|
+
- **Accept**: application/json
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
### HTTP response details
|
|
612
|
+
| Status code | Description | Response headers |
|
|
613
|
+
|-------------|-------------|------------------|
|
|
614
|
+
|**200** | Ok | - |
|
|
615
|
+
|
|
616
|
+
[[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)
|
|
617
|
+
|
|
618
|
+
# **getMe**
|
|
619
|
+
> UserProfileResponse getMe()
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
### Example
|
|
623
|
+
|
|
624
|
+
```typescript
|
|
625
|
+
import {
|
|
626
|
+
UsersApi,
|
|
627
|
+
Configuration
|
|
628
|
+
} from '@tennac-booking/sdk';
|
|
629
|
+
|
|
630
|
+
const configuration = new Configuration();
|
|
631
|
+
const apiInstance = new UsersApi(configuration);
|
|
632
|
+
|
|
633
|
+
const { status, data } = await apiInstance.getMe();
|
|
634
|
+
```
|
|
635
|
+
|
|
636
|
+
### Parameters
|
|
637
|
+
This endpoint does not have any parameters.
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
### Return type
|
|
641
|
+
|
|
642
|
+
**UserProfileResponse**
|
|
643
|
+
|
|
644
|
+
### Authorization
|
|
645
|
+
|
|
646
|
+
No authorization required
|
|
647
|
+
|
|
648
|
+
### HTTP request headers
|
|
649
|
+
|
|
650
|
+
- **Content-Type**: Not defined
|
|
651
|
+
- **Accept**: application/json
|
|
652
|
+
|
|
653
|
+
|
|
654
|
+
### HTTP response details
|
|
655
|
+
| Status code | Description | Response headers |
|
|
656
|
+
|-------------|-------------|------------------|
|
|
657
|
+
|**200** | Ok | - |
|
|
658
|
+
|
|
659
|
+
[[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)
|
|
660
|
+
|
|
661
|
+
# **getNearestClubs**
|
|
662
|
+
> Array<{ [key: string]: any; }> getNearestClubs()
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
### Example
|
|
666
|
+
|
|
667
|
+
```typescript
|
|
668
|
+
import {
|
|
669
|
+
UsersApi,
|
|
670
|
+
Configuration
|
|
671
|
+
} from '@tennac-booking/sdk';
|
|
672
|
+
|
|
673
|
+
const configuration = new Configuration();
|
|
674
|
+
const apiInstance = new UsersApi(configuration);
|
|
675
|
+
|
|
676
|
+
let radiusInKm: number; // (optional) (default to undefined)
|
|
677
|
+
let limit: number; // (optional) (default to undefined)
|
|
678
|
+
|
|
679
|
+
const { status, data } = await apiInstance.getNearestClubs(
|
|
680
|
+
radiusInKm,
|
|
681
|
+
limit
|
|
682
|
+
);
|
|
683
|
+
```
|
|
684
|
+
|
|
685
|
+
### Parameters
|
|
686
|
+
|
|
687
|
+
|Name | Type | Description | Notes|
|
|
688
|
+
|------------- | ------------- | ------------- | -------------|
|
|
689
|
+
| **radiusInKm** | [**number**] | | (optional) defaults to undefined|
|
|
690
|
+
| **limit** | [**number**] | | (optional) defaults to undefined|
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
### Return type
|
|
694
|
+
|
|
695
|
+
**Array<{ [key: string]: any; }>**
|
|
696
|
+
|
|
697
|
+
### Authorization
|
|
698
|
+
|
|
699
|
+
No authorization required
|
|
700
|
+
|
|
701
|
+
### HTTP request headers
|
|
702
|
+
|
|
703
|
+
- **Content-Type**: Not defined
|
|
704
|
+
- **Accept**: application/json
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
### HTTP response details
|
|
708
|
+
| Status code | Description | Response headers |
|
|
709
|
+
|-------------|-------------|------------------|
|
|
710
|
+
|**200** | Ok | - |
|
|
711
|
+
|
|
712
|
+
[[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)
|
|
713
|
+
|
|
714
|
+
# **getNearestClubsFromCoordinates**
|
|
715
|
+
> Array<{ [key: string]: any; }> getNearestClubsFromCoordinates()
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
### Example
|
|
719
|
+
|
|
720
|
+
```typescript
|
|
721
|
+
import {
|
|
722
|
+
UsersApi,
|
|
723
|
+
Configuration
|
|
724
|
+
} from '@tennac-booking/sdk';
|
|
725
|
+
|
|
726
|
+
const configuration = new Configuration();
|
|
727
|
+
const apiInstance = new UsersApi(configuration);
|
|
728
|
+
|
|
729
|
+
let latitude: number; // (optional) (default to undefined)
|
|
730
|
+
let longitude: number; // (optional) (default to undefined)
|
|
731
|
+
let radiusInKm: number; // (optional) (default to undefined)
|
|
732
|
+
let limit: number; // (optional) (default to undefined)
|
|
733
|
+
|
|
734
|
+
const { status, data } = await apiInstance.getNearestClubsFromCoordinates(
|
|
735
|
+
latitude,
|
|
736
|
+
longitude,
|
|
737
|
+
radiusInKm,
|
|
738
|
+
limit
|
|
739
|
+
);
|
|
740
|
+
```
|
|
741
|
+
|
|
742
|
+
### Parameters
|
|
743
|
+
|
|
744
|
+
|Name | Type | Description | Notes|
|
|
745
|
+
|------------- | ------------- | ------------- | -------------|
|
|
746
|
+
| **latitude** | [**number**] | | (optional) defaults to undefined|
|
|
747
|
+
| **longitude** | [**number**] | | (optional) defaults to undefined|
|
|
748
|
+
| **radiusInKm** | [**number**] | | (optional) defaults to undefined|
|
|
749
|
+
| **limit** | [**number**] | | (optional) defaults to undefined|
|
|
750
|
+
|
|
751
|
+
|
|
752
|
+
### Return type
|
|
753
|
+
|
|
754
|
+
**Array<{ [key: string]: any; }>**
|
|
755
|
+
|
|
756
|
+
### Authorization
|
|
757
|
+
|
|
758
|
+
No authorization required
|
|
759
|
+
|
|
760
|
+
### HTTP request headers
|
|
761
|
+
|
|
762
|
+
- **Content-Type**: Not defined
|
|
763
|
+
- **Accept**: application/json
|
|
764
|
+
|
|
765
|
+
|
|
766
|
+
### HTTP response details
|
|
767
|
+
| Status code | Description | Response headers |
|
|
768
|
+
|-------------|-------------|------------------|
|
|
769
|
+
|**200** | Ok | - |
|
|
770
|
+
|
|
771
|
+
[[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)
|
|
772
|
+
|
|
773
|
+
# **getNearestUsers**
|
|
774
|
+
> Array<{ [key: string]: any; }> getNearestUsers()
|
|
775
|
+
|
|
776
|
+
|
|
777
|
+
### Example
|
|
778
|
+
|
|
779
|
+
```typescript
|
|
780
|
+
import {
|
|
781
|
+
UsersApi,
|
|
782
|
+
Configuration
|
|
783
|
+
} from '@tennac-booking/sdk';
|
|
784
|
+
|
|
785
|
+
const configuration = new Configuration();
|
|
786
|
+
const apiInstance = new UsersApi(configuration);
|
|
787
|
+
|
|
788
|
+
let radiusInKm: number; // (optional) (default to undefined)
|
|
789
|
+
let limit: number; // (optional) (default to undefined)
|
|
790
|
+
|
|
791
|
+
const { status, data } = await apiInstance.getNearestUsers(
|
|
792
|
+
radiusInKm,
|
|
793
|
+
limit
|
|
794
|
+
);
|
|
795
|
+
```
|
|
796
|
+
|
|
797
|
+
### Parameters
|
|
798
|
+
|
|
799
|
+
|Name | Type | Description | Notes|
|
|
800
|
+
|------------- | ------------- | ------------- | -------------|
|
|
801
|
+
| **radiusInKm** | [**number**] | | (optional) defaults to undefined|
|
|
802
|
+
| **limit** | [**number**] | | (optional) defaults to undefined|
|
|
803
|
+
|
|
804
|
+
|
|
805
|
+
### Return type
|
|
806
|
+
|
|
807
|
+
**Array<{ [key: string]: any; }>**
|
|
808
|
+
|
|
809
|
+
### Authorization
|
|
810
|
+
|
|
811
|
+
No authorization required
|
|
812
|
+
|
|
813
|
+
### HTTP request headers
|
|
814
|
+
|
|
815
|
+
- **Content-Type**: Not defined
|
|
816
|
+
- **Accept**: application/json
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
### HTTP response details
|
|
820
|
+
| Status code | Description | Response headers |
|
|
821
|
+
|-------------|-------------|------------------|
|
|
822
|
+
|**200** | Ok | - |
|
|
823
|
+
|
|
824
|
+
[[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)
|
|
825
|
+
|
|
826
|
+
# **getNearestUsersFromCoordinates**
|
|
827
|
+
> Array<{ [key: string]: any; }> getNearestUsersFromCoordinates()
|
|
828
|
+
|
|
829
|
+
|
|
830
|
+
### Example
|
|
831
|
+
|
|
832
|
+
```typescript
|
|
833
|
+
import {
|
|
834
|
+
UsersApi,
|
|
835
|
+
Configuration
|
|
836
|
+
} from '@tennac-booking/sdk';
|
|
837
|
+
|
|
838
|
+
const configuration = new Configuration();
|
|
839
|
+
const apiInstance = new UsersApi(configuration);
|
|
840
|
+
|
|
841
|
+
let latitude: number; // (optional) (default to undefined)
|
|
842
|
+
let longitude: number; // (optional) (default to undefined)
|
|
843
|
+
let radiusInKm: number; // (optional) (default to undefined)
|
|
844
|
+
let limit: number; // (optional) (default to undefined)
|
|
845
|
+
|
|
846
|
+
const { status, data } = await apiInstance.getNearestUsersFromCoordinates(
|
|
847
|
+
latitude,
|
|
848
|
+
longitude,
|
|
849
|
+
radiusInKm,
|
|
850
|
+
limit
|
|
851
|
+
);
|
|
852
|
+
```
|
|
853
|
+
|
|
854
|
+
### Parameters
|
|
855
|
+
|
|
856
|
+
|Name | Type | Description | Notes|
|
|
857
|
+
|------------- | ------------- | ------------- | -------------|
|
|
858
|
+
| **latitude** | [**number**] | | (optional) defaults to undefined|
|
|
859
|
+
| **longitude** | [**number**] | | (optional) defaults to undefined|
|
|
860
|
+
| **radiusInKm** | [**number**] | | (optional) defaults to undefined|
|
|
861
|
+
| **limit** | [**number**] | | (optional) defaults to undefined|
|
|
862
|
+
|
|
863
|
+
|
|
864
|
+
### Return type
|
|
865
|
+
|
|
866
|
+
**Array<{ [key: string]: any; }>**
|
|
867
|
+
|
|
868
|
+
### Authorization
|
|
869
|
+
|
|
870
|
+
No authorization required
|
|
871
|
+
|
|
872
|
+
### HTTP request headers
|
|
873
|
+
|
|
874
|
+
- **Content-Type**: Not defined
|
|
875
|
+
- **Accept**: application/json
|
|
876
|
+
|
|
877
|
+
|
|
878
|
+
### HTTP response details
|
|
879
|
+
| Status code | Description | Response headers |
|
|
880
|
+
|-------------|-------------|------------------|
|
|
881
|
+
|**200** | Ok | - |
|
|
882
|
+
|
|
883
|
+
[[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)
|
|
884
|
+
|
|
885
|
+
# **getUserBookings**
|
|
886
|
+
> Array<BookingSummary> getUserBookings()
|
|
887
|
+
|
|
888
|
+
|
|
889
|
+
### Example
|
|
890
|
+
|
|
891
|
+
```typescript
|
|
892
|
+
import {
|
|
893
|
+
UsersApi,
|
|
894
|
+
Configuration
|
|
895
|
+
} from '@tennac-booking/sdk';
|
|
896
|
+
|
|
897
|
+
const configuration = new Configuration();
|
|
898
|
+
const apiInstance = new UsersApi(configuration);
|
|
899
|
+
|
|
900
|
+
let limit: number; // (optional) (default to undefined)
|
|
901
|
+
let skip: number; // (optional) (default to undefined)
|
|
902
|
+
|
|
903
|
+
const { status, data } = await apiInstance.getUserBookings(
|
|
904
|
+
limit,
|
|
905
|
+
skip
|
|
906
|
+
);
|
|
907
|
+
```
|
|
908
|
+
|
|
909
|
+
### Parameters
|
|
910
|
+
|
|
911
|
+
|Name | Type | Description | Notes|
|
|
912
|
+
|------------- | ------------- | ------------- | -------------|
|
|
913
|
+
| **limit** | [**number**] | | (optional) defaults to undefined|
|
|
914
|
+
| **skip** | [**number**] | | (optional) defaults to undefined|
|
|
915
|
+
|
|
916
|
+
|
|
917
|
+
### Return type
|
|
918
|
+
|
|
919
|
+
**Array<BookingSummary>**
|
|
920
|
+
|
|
921
|
+
### Authorization
|
|
922
|
+
|
|
923
|
+
No authorization required
|
|
924
|
+
|
|
925
|
+
### HTTP request headers
|
|
926
|
+
|
|
927
|
+
- **Content-Type**: Not defined
|
|
928
|
+
- **Accept**: application/json
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
### HTTP response details
|
|
932
|
+
| Status code | Description | Response headers |
|
|
933
|
+
|-------------|-------------|------------------|
|
|
934
|
+
|**200** | Ok | - |
|
|
935
|
+
|
|
936
|
+
[[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)
|
|
937
|
+
|
|
938
|
+
# **getUserProfileById**
|
|
939
|
+
> BaseUser getUserProfileById()
|
|
940
|
+
|
|
941
|
+
|
|
942
|
+
### Example
|
|
943
|
+
|
|
944
|
+
```typescript
|
|
945
|
+
import {
|
|
946
|
+
UsersApi,
|
|
947
|
+
Configuration
|
|
948
|
+
} from '@tennac-booking/sdk';
|
|
949
|
+
|
|
950
|
+
const configuration = new Configuration();
|
|
951
|
+
const apiInstance = new UsersApi(configuration);
|
|
952
|
+
|
|
953
|
+
let id: string; // (default to undefined)
|
|
954
|
+
|
|
955
|
+
const { status, data } = await apiInstance.getUserProfileById(
|
|
956
|
+
id
|
|
957
|
+
);
|
|
958
|
+
```
|
|
959
|
+
|
|
960
|
+
### Parameters
|
|
961
|
+
|
|
962
|
+
|Name | Type | Description | Notes|
|
|
963
|
+
|------------- | ------------- | ------------- | -------------|
|
|
964
|
+
| **id** | [**string**] | | defaults to undefined|
|
|
965
|
+
|
|
966
|
+
|
|
967
|
+
### Return type
|
|
968
|
+
|
|
969
|
+
**BaseUser**
|
|
970
|
+
|
|
971
|
+
### Authorization
|
|
972
|
+
|
|
973
|
+
No authorization required
|
|
974
|
+
|
|
975
|
+
### HTTP request headers
|
|
976
|
+
|
|
977
|
+
- **Content-Type**: Not defined
|
|
978
|
+
- **Accept**: application/json
|
|
979
|
+
|
|
980
|
+
|
|
981
|
+
### HTTP response details
|
|
982
|
+
| Status code | Description | Response headers |
|
|
983
|
+
|-------------|-------------|------------------|
|
|
984
|
+
|**200** | Ok | - |
|
|
985
|
+
|
|
986
|
+
[[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)
|
|
987
|
+
|
|
988
|
+
# **getUserProfileStaff**
|
|
989
|
+
> StaffUserProfileResponse getUserProfileStaff()
|
|
990
|
+
|
|
991
|
+
|
|
992
|
+
### Example
|
|
993
|
+
|
|
994
|
+
```typescript
|
|
995
|
+
import {
|
|
996
|
+
UsersApi,
|
|
997
|
+
Configuration
|
|
998
|
+
} from '@tennac-booking/sdk';
|
|
999
|
+
|
|
1000
|
+
const configuration = new Configuration();
|
|
1001
|
+
const apiInstance = new UsersApi(configuration);
|
|
1002
|
+
|
|
1003
|
+
let id: string; // (default to undefined)
|
|
1004
|
+
|
|
1005
|
+
const { status, data } = await apiInstance.getUserProfileStaff(
|
|
1006
|
+
id
|
|
1007
|
+
);
|
|
1008
|
+
```
|
|
1009
|
+
|
|
1010
|
+
### Parameters
|
|
1011
|
+
|
|
1012
|
+
|Name | Type | Description | Notes|
|
|
1013
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1014
|
+
| **id** | [**string**] | | defaults to undefined|
|
|
1015
|
+
|
|
1016
|
+
|
|
1017
|
+
### Return type
|
|
1018
|
+
|
|
1019
|
+
**StaffUserProfileResponse**
|
|
1020
|
+
|
|
1021
|
+
### Authorization
|
|
1022
|
+
|
|
1023
|
+
No authorization required
|
|
1024
|
+
|
|
1025
|
+
### HTTP request headers
|
|
1026
|
+
|
|
1027
|
+
- **Content-Type**: Not defined
|
|
1028
|
+
- **Accept**: application/json
|
|
1029
|
+
|
|
1030
|
+
|
|
1031
|
+
### HTTP response details
|
|
1032
|
+
| Status code | Description | Response headers |
|
|
1033
|
+
|-------------|-------------|------------------|
|
|
1034
|
+
|**200** | Ok | - |
|
|
1035
|
+
|
|
1036
|
+
[[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)
|
|
1037
|
+
|
|
1038
|
+
# **getUserRolesInClubs**
|
|
1039
|
+
> UserRolesResponse getUserRolesInClubs()
|
|
1040
|
+
|
|
1041
|
+
|
|
1042
|
+
### Example
|
|
1043
|
+
|
|
1044
|
+
```typescript
|
|
1045
|
+
import {
|
|
1046
|
+
UsersApi,
|
|
1047
|
+
Configuration
|
|
1048
|
+
} from '@tennac-booking/sdk';
|
|
1049
|
+
|
|
1050
|
+
const configuration = new Configuration();
|
|
1051
|
+
const apiInstance = new UsersApi(configuration);
|
|
1052
|
+
|
|
1053
|
+
const { status, data } = await apiInstance.getUserRolesInClubs();
|
|
1054
|
+
```
|
|
1055
|
+
|
|
1056
|
+
### Parameters
|
|
1057
|
+
This endpoint does not have any parameters.
|
|
1058
|
+
|
|
1059
|
+
|
|
1060
|
+
### Return type
|
|
1061
|
+
|
|
1062
|
+
**UserRolesResponse**
|
|
1063
|
+
|
|
1064
|
+
### Authorization
|
|
1065
|
+
|
|
1066
|
+
No authorization required
|
|
1067
|
+
|
|
1068
|
+
### HTTP request headers
|
|
1069
|
+
|
|
1070
|
+
- **Content-Type**: Not defined
|
|
1071
|
+
- **Accept**: application/json
|
|
1072
|
+
|
|
1073
|
+
|
|
1074
|
+
### HTTP response details
|
|
1075
|
+
| Status code | Description | Response headers |
|
|
1076
|
+
|-------------|-------------|------------------|
|
|
1077
|
+
|**200** | Ok | - |
|
|
1078
|
+
|
|
1079
|
+
[[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)
|
|
1080
|
+
|
|
1081
|
+
# **getUserSubscriptions**
|
|
1082
|
+
> UserSubscriptionsResponse getUserSubscriptions()
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
### Example
|
|
1086
|
+
|
|
1087
|
+
```typescript
|
|
1088
|
+
import {
|
|
1089
|
+
UsersApi,
|
|
1090
|
+
Configuration
|
|
1091
|
+
} from '@tennac-booking/sdk';
|
|
1092
|
+
|
|
1093
|
+
const configuration = new Configuration();
|
|
1094
|
+
const apiInstance = new UsersApi(configuration);
|
|
1095
|
+
|
|
1096
|
+
const { status, data } = await apiInstance.getUserSubscriptions();
|
|
1097
|
+
```
|
|
1098
|
+
|
|
1099
|
+
### Parameters
|
|
1100
|
+
This endpoint does not have any parameters.
|
|
1101
|
+
|
|
1102
|
+
|
|
1103
|
+
### Return type
|
|
1104
|
+
|
|
1105
|
+
**UserSubscriptionsResponse**
|
|
1106
|
+
|
|
1107
|
+
### Authorization
|
|
1108
|
+
|
|
1109
|
+
No authorization required
|
|
1110
|
+
|
|
1111
|
+
### HTTP request headers
|
|
1112
|
+
|
|
1113
|
+
- **Content-Type**: Not defined
|
|
1114
|
+
- **Accept**: application/json
|
|
1115
|
+
|
|
1116
|
+
|
|
1117
|
+
### HTTP response details
|
|
1118
|
+
| Status code | Description | Response headers |
|
|
1119
|
+
|-------------|-------------|------------------|
|
|
1120
|
+
|**200** | Ok | - |
|
|
1121
|
+
|
|
1122
|
+
[[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)
|
|
1123
|
+
|
|
1124
|
+
# **initiateSubscriptionSession**
|
|
1125
|
+
> SubscriptionSessionResponse initiateSubscriptionSession(subscriptionSessionRequestBody)
|
|
1126
|
+
|
|
1127
|
+
|
|
1128
|
+
### Example
|
|
1129
|
+
|
|
1130
|
+
```typescript
|
|
1131
|
+
import {
|
|
1132
|
+
UsersApi,
|
|
1133
|
+
Configuration,
|
|
1134
|
+
SubscriptionSessionRequestBody
|
|
1135
|
+
} from '@tennac-booking/sdk';
|
|
1136
|
+
|
|
1137
|
+
const configuration = new Configuration();
|
|
1138
|
+
const apiInstance = new UsersApi(configuration);
|
|
1139
|
+
|
|
1140
|
+
let subscriptionSessionRequestBody: SubscriptionSessionRequestBody; //
|
|
1141
|
+
|
|
1142
|
+
const { status, data } = await apiInstance.initiateSubscriptionSession(
|
|
1143
|
+
subscriptionSessionRequestBody
|
|
1144
|
+
);
|
|
1145
|
+
```
|
|
1146
|
+
|
|
1147
|
+
### Parameters
|
|
1148
|
+
|
|
1149
|
+
|Name | Type | Description | Notes|
|
|
1150
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1151
|
+
| **subscriptionSessionRequestBody** | **SubscriptionSessionRequestBody**| | |
|
|
1152
|
+
|
|
1153
|
+
|
|
1154
|
+
### Return type
|
|
1155
|
+
|
|
1156
|
+
**SubscriptionSessionResponse**
|
|
1157
|
+
|
|
1158
|
+
### Authorization
|
|
1159
|
+
|
|
1160
|
+
No authorization required
|
|
1161
|
+
|
|
1162
|
+
### HTTP request headers
|
|
1163
|
+
|
|
1164
|
+
- **Content-Type**: application/json
|
|
1165
|
+
- **Accept**: application/json
|
|
1166
|
+
|
|
1167
|
+
|
|
1168
|
+
### HTTP response details
|
|
1169
|
+
| Status code | Description | Response headers |
|
|
1170
|
+
|-------------|-------------|------------------|
|
|
1171
|
+
|**200** | Ok | - |
|
|
1172
|
+
|
|
1173
|
+
[[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)
|
|
1174
|
+
|
|
1175
|
+
# **login**
|
|
1176
|
+
> LoginResponse login(loginRequestBody)
|
|
1177
|
+
|
|
1178
|
+
|
|
1179
|
+
### Example
|
|
1180
|
+
|
|
1181
|
+
```typescript
|
|
1182
|
+
import {
|
|
1183
|
+
UsersApi,
|
|
1184
|
+
Configuration,
|
|
1185
|
+
LoginRequestBody
|
|
1186
|
+
} from '@tennac-booking/sdk';
|
|
1187
|
+
|
|
1188
|
+
const configuration = new Configuration();
|
|
1189
|
+
const apiInstance = new UsersApi(configuration);
|
|
1190
|
+
|
|
1191
|
+
let loginRequestBody: LoginRequestBody; //
|
|
1192
|
+
|
|
1193
|
+
const { status, data } = await apiInstance.login(
|
|
1194
|
+
loginRequestBody
|
|
1195
|
+
);
|
|
1196
|
+
```
|
|
1197
|
+
|
|
1198
|
+
### Parameters
|
|
1199
|
+
|
|
1200
|
+
|Name | Type | Description | Notes|
|
|
1201
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1202
|
+
| **loginRequestBody** | **LoginRequestBody**| | |
|
|
1203
|
+
|
|
1204
|
+
|
|
1205
|
+
### Return type
|
|
1206
|
+
|
|
1207
|
+
**LoginResponse**
|
|
1208
|
+
|
|
1209
|
+
### Authorization
|
|
1210
|
+
|
|
1211
|
+
No authorization required
|
|
1212
|
+
|
|
1213
|
+
### HTTP request headers
|
|
1214
|
+
|
|
1215
|
+
- **Content-Type**: application/json
|
|
1216
|
+
- **Accept**: application/json
|
|
1217
|
+
|
|
1218
|
+
|
|
1219
|
+
### HTTP response details
|
|
1220
|
+
| Status code | Description | Response headers |
|
|
1221
|
+
|-------------|-------------|------------------|
|
|
1222
|
+
|**200** | Ok | - |
|
|
1223
|
+
|
|
1224
|
+
[[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)
|
|
1225
|
+
|
|
1226
|
+
# **refreshToken**
|
|
1227
|
+
> RefreshTokenResponse refreshToken(refreshTokenRequestBody)
|
|
1228
|
+
|
|
1229
|
+
|
|
1230
|
+
### Example
|
|
1231
|
+
|
|
1232
|
+
```typescript
|
|
1233
|
+
import {
|
|
1234
|
+
UsersApi,
|
|
1235
|
+
Configuration,
|
|
1236
|
+
RefreshTokenRequestBody
|
|
1237
|
+
} from '@tennac-booking/sdk';
|
|
1238
|
+
|
|
1239
|
+
const configuration = new Configuration();
|
|
1240
|
+
const apiInstance = new UsersApi(configuration);
|
|
1241
|
+
|
|
1242
|
+
let refreshTokenRequestBody: RefreshTokenRequestBody; //
|
|
1243
|
+
|
|
1244
|
+
const { status, data } = await apiInstance.refreshToken(
|
|
1245
|
+
refreshTokenRequestBody
|
|
1246
|
+
);
|
|
1247
|
+
```
|
|
1248
|
+
|
|
1249
|
+
### Parameters
|
|
1250
|
+
|
|
1251
|
+
|Name | Type | Description | Notes|
|
|
1252
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1253
|
+
| **refreshTokenRequestBody** | **RefreshTokenRequestBody**| | |
|
|
1254
|
+
|
|
1255
|
+
|
|
1256
|
+
### Return type
|
|
1257
|
+
|
|
1258
|
+
**RefreshTokenResponse**
|
|
1259
|
+
|
|
1260
|
+
### Authorization
|
|
1261
|
+
|
|
1262
|
+
No authorization required
|
|
1263
|
+
|
|
1264
|
+
### HTTP request headers
|
|
1265
|
+
|
|
1266
|
+
- **Content-Type**: application/json
|
|
1267
|
+
- **Accept**: application/json
|
|
1268
|
+
|
|
1269
|
+
|
|
1270
|
+
### HTTP response details
|
|
1271
|
+
| Status code | Description | Response headers |
|
|
1272
|
+
|-------------|-------------|------------------|
|
|
1273
|
+
|**200** | Ok | - |
|
|
1274
|
+
|
|
1275
|
+
[[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)
|
|
1276
|
+
|
|
1277
|
+
# **register**
|
|
1278
|
+
> BaseUser register(registerRequestBody)
|
|
1279
|
+
|
|
1280
|
+
|
|
1281
|
+
### Example
|
|
1282
|
+
|
|
1283
|
+
```typescript
|
|
1284
|
+
import {
|
|
1285
|
+
UsersApi,
|
|
1286
|
+
Configuration,
|
|
1287
|
+
RegisterRequestBody
|
|
1288
|
+
} from '@tennac-booking/sdk';
|
|
1289
|
+
|
|
1290
|
+
const configuration = new Configuration();
|
|
1291
|
+
const apiInstance = new UsersApi(configuration);
|
|
1292
|
+
|
|
1293
|
+
let registerRequestBody: RegisterRequestBody; //
|
|
1294
|
+
|
|
1295
|
+
const { status, data } = await apiInstance.register(
|
|
1296
|
+
registerRequestBody
|
|
1297
|
+
);
|
|
1298
|
+
```
|
|
1299
|
+
|
|
1300
|
+
### Parameters
|
|
1301
|
+
|
|
1302
|
+
|Name | Type | Description | Notes|
|
|
1303
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1304
|
+
| **registerRequestBody** | **RegisterRequestBody**| | |
|
|
1305
|
+
|
|
1306
|
+
|
|
1307
|
+
### Return type
|
|
1308
|
+
|
|
1309
|
+
**BaseUser**
|
|
1310
|
+
|
|
1311
|
+
### Authorization
|
|
1312
|
+
|
|
1313
|
+
No authorization required
|
|
1314
|
+
|
|
1315
|
+
### HTTP request headers
|
|
1316
|
+
|
|
1317
|
+
- **Content-Type**: application/json
|
|
1318
|
+
- **Accept**: application/json
|
|
1319
|
+
|
|
1320
|
+
|
|
1321
|
+
### HTTP response details
|
|
1322
|
+
| Status code | Description | Response headers |
|
|
1323
|
+
|-------------|-------------|------------------|
|
|
1324
|
+
|**201** | Created | - |
|
|
1325
|
+
|
|
1326
|
+
[[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)
|
|
1327
|
+
|
|
1328
|
+
# **removeFavoriteClub**
|
|
1329
|
+
> FavoriteClubMutationResponse removeFavoriteClub()
|
|
1330
|
+
|
|
1331
|
+
|
|
1332
|
+
### Example
|
|
1333
|
+
|
|
1334
|
+
```typescript
|
|
1335
|
+
import {
|
|
1336
|
+
UsersApi,
|
|
1337
|
+
Configuration
|
|
1338
|
+
} from '@tennac-booking/sdk';
|
|
1339
|
+
|
|
1340
|
+
const configuration = new Configuration();
|
|
1341
|
+
const apiInstance = new UsersApi(configuration);
|
|
1342
|
+
|
|
1343
|
+
let clubId: string; // (default to undefined)
|
|
1344
|
+
|
|
1345
|
+
const { status, data } = await apiInstance.removeFavoriteClub(
|
|
1346
|
+
clubId
|
|
1347
|
+
);
|
|
1348
|
+
```
|
|
1349
|
+
|
|
1350
|
+
### Parameters
|
|
1351
|
+
|
|
1352
|
+
|Name | Type | Description | Notes|
|
|
1353
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1354
|
+
| **clubId** | [**string**] | | defaults to undefined|
|
|
1355
|
+
|
|
1356
|
+
|
|
1357
|
+
### Return type
|
|
1358
|
+
|
|
1359
|
+
**FavoriteClubMutationResponse**
|
|
1360
|
+
|
|
1361
|
+
### Authorization
|
|
1362
|
+
|
|
1363
|
+
No authorization required
|
|
1364
|
+
|
|
1365
|
+
### HTTP request headers
|
|
1366
|
+
|
|
1367
|
+
- **Content-Type**: Not defined
|
|
1368
|
+
- **Accept**: application/json
|
|
1369
|
+
|
|
1370
|
+
|
|
1371
|
+
### HTTP response details
|
|
1372
|
+
| Status code | Description | Response headers |
|
|
1373
|
+
|-------------|-------------|------------------|
|
|
1374
|
+
|**200** | Ok | - |
|
|
1375
|
+
|
|
1376
|
+
[[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)
|
|
1377
|
+
|
|
1378
|
+
# **removeFavoritePlayer**
|
|
1379
|
+
> FavoritePlayerMutationResponse removeFavoritePlayer()
|
|
1380
|
+
|
|
1381
|
+
|
|
1382
|
+
### Example
|
|
1383
|
+
|
|
1384
|
+
```typescript
|
|
1385
|
+
import {
|
|
1386
|
+
UsersApi,
|
|
1387
|
+
Configuration
|
|
1388
|
+
} from '@tennac-booking/sdk';
|
|
1389
|
+
|
|
1390
|
+
const configuration = new Configuration();
|
|
1391
|
+
const apiInstance = new UsersApi(configuration);
|
|
1392
|
+
|
|
1393
|
+
let favoritePlayerId: string; // (default to undefined)
|
|
1394
|
+
|
|
1395
|
+
const { status, data } = await apiInstance.removeFavoritePlayer(
|
|
1396
|
+
favoritePlayerId
|
|
1397
|
+
);
|
|
1398
|
+
```
|
|
1399
|
+
|
|
1400
|
+
### Parameters
|
|
1401
|
+
|
|
1402
|
+
|Name | Type | Description | Notes|
|
|
1403
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1404
|
+
| **favoritePlayerId** | [**string**] | | defaults to undefined|
|
|
1405
|
+
|
|
1406
|
+
|
|
1407
|
+
### Return type
|
|
1408
|
+
|
|
1409
|
+
**FavoritePlayerMutationResponse**
|
|
1410
|
+
|
|
1411
|
+
### Authorization
|
|
1412
|
+
|
|
1413
|
+
No authorization required
|
|
1414
|
+
|
|
1415
|
+
### HTTP request headers
|
|
1416
|
+
|
|
1417
|
+
- **Content-Type**: Not defined
|
|
1418
|
+
- **Accept**: application/json
|
|
1419
|
+
|
|
1420
|
+
|
|
1421
|
+
### HTTP response details
|
|
1422
|
+
| Status code | Description | Response headers |
|
|
1423
|
+
|-------------|-------------|------------------|
|
|
1424
|
+
|**200** | Ok | - |
|
|
1425
|
+
|
|
1426
|
+
[[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)
|
|
1427
|
+
|
|
1428
|
+
# **requestPasswordReset**
|
|
1429
|
+
> requestPasswordReset(passwordResetRequestBody)
|
|
1430
|
+
|
|
1431
|
+
|
|
1432
|
+
### Example
|
|
1433
|
+
|
|
1434
|
+
```typescript
|
|
1435
|
+
import {
|
|
1436
|
+
UsersApi,
|
|
1437
|
+
Configuration,
|
|
1438
|
+
PasswordResetRequestBody
|
|
1439
|
+
} from '@tennac-booking/sdk';
|
|
1440
|
+
|
|
1441
|
+
const configuration = new Configuration();
|
|
1442
|
+
const apiInstance = new UsersApi(configuration);
|
|
1443
|
+
|
|
1444
|
+
let passwordResetRequestBody: PasswordResetRequestBody; //
|
|
1445
|
+
|
|
1446
|
+
const { status, data } = await apiInstance.requestPasswordReset(
|
|
1447
|
+
passwordResetRequestBody
|
|
1448
|
+
);
|
|
1449
|
+
```
|
|
1450
|
+
|
|
1451
|
+
### Parameters
|
|
1452
|
+
|
|
1453
|
+
|Name | Type | Description | Notes|
|
|
1454
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1455
|
+
| **passwordResetRequestBody** | **PasswordResetRequestBody**| | |
|
|
1456
|
+
|
|
1457
|
+
|
|
1458
|
+
### Return type
|
|
1459
|
+
|
|
1460
|
+
void (empty response body)
|
|
1461
|
+
|
|
1462
|
+
### Authorization
|
|
1463
|
+
|
|
1464
|
+
No authorization required
|
|
1465
|
+
|
|
1466
|
+
### HTTP request headers
|
|
1467
|
+
|
|
1468
|
+
- **Content-Type**: application/json
|
|
1469
|
+
- **Accept**: application/json
|
|
1470
|
+
|
|
1471
|
+
|
|
1472
|
+
### HTTP response details
|
|
1473
|
+
| Status code | Description | Response headers |
|
|
1474
|
+
|-------------|-------------|------------------|
|
|
1475
|
+
|**501** | Not Implemented | - |
|
|
1476
|
+
|
|
1477
|
+
[[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)
|
|
1478
|
+
|
|
1479
|
+
# **resumeSubscription**
|
|
1480
|
+
> SubscriptionMutationResponse resumeSubscription()
|
|
1481
|
+
|
|
1482
|
+
|
|
1483
|
+
### Example
|
|
1484
|
+
|
|
1485
|
+
```typescript
|
|
1486
|
+
import {
|
|
1487
|
+
UsersApi,
|
|
1488
|
+
Configuration
|
|
1489
|
+
} from '@tennac-booking/sdk';
|
|
1490
|
+
|
|
1491
|
+
const configuration = new Configuration();
|
|
1492
|
+
const apiInstance = new UsersApi(configuration);
|
|
1493
|
+
|
|
1494
|
+
let clubId: string; // (default to undefined)
|
|
1495
|
+
let subscriptionId: string; // (default to undefined)
|
|
1496
|
+
|
|
1497
|
+
const { status, data } = await apiInstance.resumeSubscription(
|
|
1498
|
+
clubId,
|
|
1499
|
+
subscriptionId
|
|
1500
|
+
);
|
|
1501
|
+
```
|
|
1502
|
+
|
|
1503
|
+
### Parameters
|
|
1504
|
+
|
|
1505
|
+
|Name | Type | Description | Notes|
|
|
1506
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1507
|
+
| **clubId** | [**string**] | | defaults to undefined|
|
|
1508
|
+
| **subscriptionId** | [**string**] | | defaults to undefined|
|
|
1509
|
+
|
|
1510
|
+
|
|
1511
|
+
### Return type
|
|
1512
|
+
|
|
1513
|
+
**SubscriptionMutationResponse**
|
|
1514
|
+
|
|
1515
|
+
### Authorization
|
|
1516
|
+
|
|
1517
|
+
No authorization required
|
|
1518
|
+
|
|
1519
|
+
### HTTP request headers
|
|
1520
|
+
|
|
1521
|
+
- **Content-Type**: Not defined
|
|
1522
|
+
- **Accept**: application/json
|
|
1523
|
+
|
|
1524
|
+
|
|
1525
|
+
### HTTP response details
|
|
1526
|
+
| Status code | Description | Response headers |
|
|
1527
|
+
|-------------|-------------|------------------|
|
|
1528
|
+
|**200** | Ok | - |
|
|
1529
|
+
|
|
1530
|
+
[[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)
|
|
1531
|
+
|
|
1532
|
+
# **setupPaymentMethod**
|
|
1533
|
+
> SetupPaymentMethodResponse setupPaymentMethod(setupPaymentMethodRequestBody)
|
|
1534
|
+
|
|
1535
|
+
|
|
1536
|
+
### Example
|
|
1537
|
+
|
|
1538
|
+
```typescript
|
|
1539
|
+
import {
|
|
1540
|
+
UsersApi,
|
|
1541
|
+
Configuration,
|
|
1542
|
+
SetupPaymentMethodRequestBody
|
|
1543
|
+
} from '@tennac-booking/sdk';
|
|
1544
|
+
|
|
1545
|
+
const configuration = new Configuration();
|
|
1546
|
+
const apiInstance = new UsersApi(configuration);
|
|
1547
|
+
|
|
1548
|
+
let setupPaymentMethodRequestBody: SetupPaymentMethodRequestBody; //
|
|
1549
|
+
|
|
1550
|
+
const { status, data } = await apiInstance.setupPaymentMethod(
|
|
1551
|
+
setupPaymentMethodRequestBody
|
|
1552
|
+
);
|
|
1553
|
+
```
|
|
1554
|
+
|
|
1555
|
+
### Parameters
|
|
1556
|
+
|
|
1557
|
+
|Name | Type | Description | Notes|
|
|
1558
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1559
|
+
| **setupPaymentMethodRequestBody** | **SetupPaymentMethodRequestBody**| | |
|
|
1560
|
+
|
|
1561
|
+
|
|
1562
|
+
### Return type
|
|
1563
|
+
|
|
1564
|
+
**SetupPaymentMethodResponse**
|
|
1565
|
+
|
|
1566
|
+
### Authorization
|
|
1567
|
+
|
|
1568
|
+
No authorization required
|
|
1569
|
+
|
|
1570
|
+
### HTTP request headers
|
|
1571
|
+
|
|
1572
|
+
- **Content-Type**: application/json
|
|
1573
|
+
- **Accept**: application/json
|
|
1574
|
+
|
|
1575
|
+
|
|
1576
|
+
### HTTP response details
|
|
1577
|
+
| Status code | Description | Response headers |
|
|
1578
|
+
|-------------|-------------|------------------|
|
|
1579
|
+
|**200** | Ok | - |
|
|
1580
|
+
|
|
1581
|
+
[[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)
|
|
1582
|
+
|
|
1583
|
+
# **signInOrSignUpWithGoogle**
|
|
1584
|
+
> GoogleAuthResponse signInOrSignUpWithGoogle(googleAuthRequestBody)
|
|
1585
|
+
|
|
1586
|
+
|
|
1587
|
+
### Example
|
|
1588
|
+
|
|
1589
|
+
```typescript
|
|
1590
|
+
import {
|
|
1591
|
+
UsersApi,
|
|
1592
|
+
Configuration,
|
|
1593
|
+
GoogleAuthRequestBody
|
|
1594
|
+
} from '@tennac-booking/sdk';
|
|
1595
|
+
|
|
1596
|
+
const configuration = new Configuration();
|
|
1597
|
+
const apiInstance = new UsersApi(configuration);
|
|
1598
|
+
|
|
1599
|
+
let googleAuthRequestBody: GoogleAuthRequestBody; //
|
|
1600
|
+
|
|
1601
|
+
const { status, data } = await apiInstance.signInOrSignUpWithGoogle(
|
|
1602
|
+
googleAuthRequestBody
|
|
1603
|
+
);
|
|
1604
|
+
```
|
|
1605
|
+
|
|
1606
|
+
### Parameters
|
|
1607
|
+
|
|
1608
|
+
|Name | Type | Description | Notes|
|
|
1609
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1610
|
+
| **googleAuthRequestBody** | **GoogleAuthRequestBody**| | |
|
|
1611
|
+
|
|
1612
|
+
|
|
1613
|
+
### Return type
|
|
1614
|
+
|
|
1615
|
+
**GoogleAuthResponse**
|
|
1616
|
+
|
|
1617
|
+
### Authorization
|
|
1618
|
+
|
|
1619
|
+
No authorization required
|
|
1620
|
+
|
|
1621
|
+
### HTTP request headers
|
|
1622
|
+
|
|
1623
|
+
- **Content-Type**: application/json
|
|
1624
|
+
- **Accept**: application/json
|
|
1625
|
+
|
|
1626
|
+
|
|
1627
|
+
### HTTP response details
|
|
1628
|
+
| Status code | Description | Response headers |
|
|
1629
|
+
|-------------|-------------|------------------|
|
|
1630
|
+
|**200** | Ok | - |
|
|
1631
|
+
|
|
1632
|
+
[[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)
|
|
1633
|
+
|
|
1634
|
+
# **subscribeToClub**
|
|
1635
|
+
> { [key: string]: any; } subscribeToClub(subscribeToClubRequestBody)
|
|
1636
|
+
|
|
1637
|
+
|
|
1638
|
+
### Example
|
|
1639
|
+
|
|
1640
|
+
```typescript
|
|
1641
|
+
import {
|
|
1642
|
+
UsersApi,
|
|
1643
|
+
Configuration,
|
|
1644
|
+
SubscribeToClubRequestBody
|
|
1645
|
+
} from '@tennac-booking/sdk';
|
|
1646
|
+
|
|
1647
|
+
const configuration = new Configuration();
|
|
1648
|
+
const apiInstance = new UsersApi(configuration);
|
|
1649
|
+
|
|
1650
|
+
let subscribeToClubRequestBody: SubscribeToClubRequestBody; //
|
|
1651
|
+
|
|
1652
|
+
const { status, data } = await apiInstance.subscribeToClub(
|
|
1653
|
+
subscribeToClubRequestBody
|
|
1654
|
+
);
|
|
1655
|
+
```
|
|
1656
|
+
|
|
1657
|
+
### Parameters
|
|
1658
|
+
|
|
1659
|
+
|Name | Type | Description | Notes|
|
|
1660
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1661
|
+
| **subscribeToClubRequestBody** | **SubscribeToClubRequestBody**| | |
|
|
1662
|
+
|
|
1663
|
+
|
|
1664
|
+
### Return type
|
|
1665
|
+
|
|
1666
|
+
**{ [key: string]: any; }**
|
|
1667
|
+
|
|
1668
|
+
### Authorization
|
|
1669
|
+
|
|
1670
|
+
No authorization required
|
|
1671
|
+
|
|
1672
|
+
### HTTP request headers
|
|
1673
|
+
|
|
1674
|
+
- **Content-Type**: application/json
|
|
1675
|
+
- **Accept**: application/json
|
|
1676
|
+
|
|
1677
|
+
|
|
1678
|
+
### HTTP response details
|
|
1679
|
+
| Status code | Description | Response headers |
|
|
1680
|
+
|-------------|-------------|------------------|
|
|
1681
|
+
|**201** | Created | - |
|
|
1682
|
+
|
|
1683
|
+
[[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)
|
|
1684
|
+
|
|
1685
|
+
# **updateCustomer**
|
|
1686
|
+
> UpdateCustomerResponse updateCustomer(updateCustomerRequestBody)
|
|
1687
|
+
|
|
1688
|
+
|
|
1689
|
+
### Example
|
|
1690
|
+
|
|
1691
|
+
```typescript
|
|
1692
|
+
import {
|
|
1693
|
+
UsersApi,
|
|
1694
|
+
Configuration,
|
|
1695
|
+
UpdateCustomerRequestBody
|
|
1696
|
+
} from '@tennac-booking/sdk';
|
|
1697
|
+
|
|
1698
|
+
const configuration = new Configuration();
|
|
1699
|
+
const apiInstance = new UsersApi(configuration);
|
|
1700
|
+
|
|
1701
|
+
let updateCustomerRequestBody: UpdateCustomerRequestBody; //
|
|
1702
|
+
|
|
1703
|
+
const { status, data } = await apiInstance.updateCustomer(
|
|
1704
|
+
updateCustomerRequestBody
|
|
1705
|
+
);
|
|
1706
|
+
```
|
|
1707
|
+
|
|
1708
|
+
### Parameters
|
|
1709
|
+
|
|
1710
|
+
|Name | Type | Description | Notes|
|
|
1711
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1712
|
+
| **updateCustomerRequestBody** | **UpdateCustomerRequestBody**| | |
|
|
1713
|
+
|
|
1714
|
+
|
|
1715
|
+
### Return type
|
|
1716
|
+
|
|
1717
|
+
**UpdateCustomerResponse**
|
|
1718
|
+
|
|
1719
|
+
### Authorization
|
|
1720
|
+
|
|
1721
|
+
No authorization required
|
|
1722
|
+
|
|
1723
|
+
### HTTP request headers
|
|
1724
|
+
|
|
1725
|
+
- **Content-Type**: application/json
|
|
1726
|
+
- **Accept**: application/json
|
|
1727
|
+
|
|
1728
|
+
|
|
1729
|
+
### HTTP response details
|
|
1730
|
+
| Status code | Description | Response headers |
|
|
1731
|
+
|-------------|-------------|------------------|
|
|
1732
|
+
|**200** | Ok | - |
|
|
1733
|
+
|
|
1734
|
+
[[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)
|
|
1735
|
+
|
|
1736
|
+
# **updateLevelBySports**
|
|
1737
|
+
> BaseUser updateLevelBySports(updateLevelBySportsRequestBody)
|
|
1738
|
+
|
|
1739
|
+
|
|
1740
|
+
### Example
|
|
1741
|
+
|
|
1742
|
+
```typescript
|
|
1743
|
+
import {
|
|
1744
|
+
UsersApi,
|
|
1745
|
+
Configuration,
|
|
1746
|
+
UpdateLevelBySportsRequestBody
|
|
1747
|
+
} from '@tennac-booking/sdk';
|
|
1748
|
+
|
|
1749
|
+
const configuration = new Configuration();
|
|
1750
|
+
const apiInstance = new UsersApi(configuration);
|
|
1751
|
+
|
|
1752
|
+
let updateLevelBySportsRequestBody: UpdateLevelBySportsRequestBody; //
|
|
1753
|
+
|
|
1754
|
+
const { status, data } = await apiInstance.updateLevelBySports(
|
|
1755
|
+
updateLevelBySportsRequestBody
|
|
1756
|
+
);
|
|
1757
|
+
```
|
|
1758
|
+
|
|
1759
|
+
### Parameters
|
|
1760
|
+
|
|
1761
|
+
|Name | Type | Description | Notes|
|
|
1762
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1763
|
+
| **updateLevelBySportsRequestBody** | **UpdateLevelBySportsRequestBody**| | |
|
|
1764
|
+
|
|
1765
|
+
|
|
1766
|
+
### Return type
|
|
1767
|
+
|
|
1768
|
+
**BaseUser**
|
|
1769
|
+
|
|
1770
|
+
### Authorization
|
|
1771
|
+
|
|
1772
|
+
No authorization required
|
|
1773
|
+
|
|
1774
|
+
### HTTP request headers
|
|
1775
|
+
|
|
1776
|
+
- **Content-Type**: application/json
|
|
1777
|
+
- **Accept**: application/json
|
|
1778
|
+
|
|
1779
|
+
|
|
1780
|
+
### HTTP response details
|
|
1781
|
+
| Status code | Description | Response headers |
|
|
1782
|
+
|-------------|-------------|------------------|
|
|
1783
|
+
|**200** | Ok | - |
|
|
1784
|
+
|
|
1785
|
+
[[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)
|
|
1786
|
+
|
|
1787
|
+
# **updateMe**
|
|
1788
|
+
> UserProfileResponse updateMe(updateUserRequestBody)
|
|
1789
|
+
|
|
1790
|
+
|
|
1791
|
+
### Example
|
|
1792
|
+
|
|
1793
|
+
```typescript
|
|
1794
|
+
import {
|
|
1795
|
+
UsersApi,
|
|
1796
|
+
Configuration,
|
|
1797
|
+
UpdateUserRequestBody
|
|
1798
|
+
} from '@tennac-booking/sdk';
|
|
1799
|
+
|
|
1800
|
+
const configuration = new Configuration();
|
|
1801
|
+
const apiInstance = new UsersApi(configuration);
|
|
1802
|
+
|
|
1803
|
+
let updateUserRequestBody: UpdateUserRequestBody; //
|
|
1804
|
+
|
|
1805
|
+
const { status, data } = await apiInstance.updateMe(
|
|
1806
|
+
updateUserRequestBody
|
|
1807
|
+
);
|
|
1808
|
+
```
|
|
1809
|
+
|
|
1810
|
+
### Parameters
|
|
1811
|
+
|
|
1812
|
+
|Name | Type | Description | Notes|
|
|
1813
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1814
|
+
| **updateUserRequestBody** | **UpdateUserRequestBody**| | |
|
|
1815
|
+
|
|
1816
|
+
|
|
1817
|
+
### Return type
|
|
1818
|
+
|
|
1819
|
+
**UserProfileResponse**
|
|
1820
|
+
|
|
1821
|
+
### Authorization
|
|
1822
|
+
|
|
1823
|
+
No authorization required
|
|
1824
|
+
|
|
1825
|
+
### HTTP request headers
|
|
1826
|
+
|
|
1827
|
+
- **Content-Type**: application/json
|
|
1828
|
+
- **Accept**: application/json
|
|
1829
|
+
|
|
1830
|
+
|
|
1831
|
+
### HTTP response details
|
|
1832
|
+
| Status code | Description | Response headers |
|
|
1833
|
+
|-------------|-------------|------------------|
|
|
1834
|
+
|**200** | Ok | - |
|
|
1835
|
+
|
|
1836
|
+
[[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)
|
|
1837
|
+
|
|
1838
|
+
# **updateProfilePicture**
|
|
1839
|
+
> ProfilePictureResponse updateProfilePicture(profilePictureUpdateRequestBody)
|
|
1840
|
+
|
|
1841
|
+
|
|
1842
|
+
### Example
|
|
1843
|
+
|
|
1844
|
+
```typescript
|
|
1845
|
+
import {
|
|
1846
|
+
UsersApi,
|
|
1847
|
+
Configuration,
|
|
1848
|
+
ProfilePictureUpdateRequestBody
|
|
1849
|
+
} from '@tennac-booking/sdk';
|
|
1850
|
+
|
|
1851
|
+
const configuration = new Configuration();
|
|
1852
|
+
const apiInstance = new UsersApi(configuration);
|
|
1853
|
+
|
|
1854
|
+
let profilePictureUpdateRequestBody: ProfilePictureUpdateRequestBody; //
|
|
1855
|
+
|
|
1856
|
+
const { status, data } = await apiInstance.updateProfilePicture(
|
|
1857
|
+
profilePictureUpdateRequestBody
|
|
1858
|
+
);
|
|
1859
|
+
```
|
|
1860
|
+
|
|
1861
|
+
### Parameters
|
|
1862
|
+
|
|
1863
|
+
|Name | Type | Description | Notes|
|
|
1864
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1865
|
+
| **profilePictureUpdateRequestBody** | **ProfilePictureUpdateRequestBody**| | |
|
|
1866
|
+
|
|
1867
|
+
|
|
1868
|
+
### Return type
|
|
1869
|
+
|
|
1870
|
+
**ProfilePictureResponse**
|
|
1871
|
+
|
|
1872
|
+
### Authorization
|
|
1873
|
+
|
|
1874
|
+
No authorization required
|
|
1875
|
+
|
|
1876
|
+
### HTTP request headers
|
|
1877
|
+
|
|
1878
|
+
- **Content-Type**: application/json
|
|
1879
|
+
- **Accept**: application/json
|
|
1880
|
+
|
|
1881
|
+
|
|
1882
|
+
### HTTP response details
|
|
1883
|
+
| Status code | Description | Response headers |
|
|
1884
|
+
|-------------|-------------|------------------|
|
|
1885
|
+
|**200** | Ok | - |
|
|
1886
|
+
|
|
1887
|
+
[[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)
|
|
1888
|
+
|