@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
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# ProfilePictureResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**profilePicture** | **string** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { ProfilePictureResponse } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: ProfilePictureResponse = {
|
|
16
|
+
profilePicture,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# ProfilePictureUpdateRequestBody
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**profilePicture** | **string** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { ProfilePictureUpdateRequestBody } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: ProfilePictureUpdateRequestBody = {
|
|
16
|
+
profilePicture,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# ProfileVisibilityResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**isProfileVisible** | **boolean** | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { ProfileVisibilityResponse } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: ProfileVisibilityResponse = {
|
|
16
|
+
isProfileVisible,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# PublicClubUser
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**_id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**firstName** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**lastName** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**isAccountVerified** | **boolean** | | [optional] [default to undefined]
|
|
13
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**levelBySports** | [**Array<PublicClubUserLevelBySportsInner>**](PublicClubUserLevelBySportsInner.md) | | [optional] [default to undefined]
|
|
15
|
+
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**city** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**favoriteClubs** | **Array<string>** | | [optional] [default to undefined]
|
|
19
|
+
**favoritePlayers** | **Array<string>** | | [optional] [default to undefined]
|
|
20
|
+
**frequentlyPlayedWith** | [**Array<PublicClubUserFrequentlyPlayedWithInner>**](PublicClubUserFrequentlyPlayedWithInner.md) | | [optional] [default to undefined]
|
|
21
|
+
**frequentlyVisitedClubs** | [**Array<PublicClubUserFrequentlyVisitedClubsInner>**](PublicClubUserFrequentlyVisitedClubsInner.md) | | [optional] [default to undefined]
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import { PublicClubUser } from '@tennac-booking/sdk';
|
|
27
|
+
|
|
28
|
+
const instance: PublicClubUser = {
|
|
29
|
+
_id,
|
|
30
|
+
firstName,
|
|
31
|
+
lastName,
|
|
32
|
+
createdAt,
|
|
33
|
+
isAccountVerified,
|
|
34
|
+
email,
|
|
35
|
+
levelBySports,
|
|
36
|
+
profilePicture,
|
|
37
|
+
description,
|
|
38
|
+
city,
|
|
39
|
+
favoriteClubs,
|
|
40
|
+
favoritePlayers,
|
|
41
|
+
frequentlyPlayedWith,
|
|
42
|
+
frequentlyVisitedClubs,
|
|
43
|
+
};
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
[[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
|
+
# PublicClubUserFrequentlyPlayedWithInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**userId** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**firstName** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**lastName** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**playCount** | **number** | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { PublicClubUserFrequentlyPlayedWithInner } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: PublicClubUserFrequentlyPlayedWithInner = {
|
|
20
|
+
userId,
|
|
21
|
+
firstName,
|
|
22
|
+
lastName,
|
|
23
|
+
profilePicture,
|
|
24
|
+
playCount,
|
|
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)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# PublicClubUserFrequentlyVisitedClubsInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**clubId** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**visitCount** | **number** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { PublicClubUserFrequentlyVisitedClubsInner } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: PublicClubUserFrequentlyVisitedClubsInner = {
|
|
18
|
+
clubId,
|
|
19
|
+
name,
|
|
20
|
+
visitCount,
|
|
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,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# PublicClubUserLevelBySportsInner
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
@@ -11,9 +11,9 @@ Name | Type | Description | Notes
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import {
|
|
14
|
+
import { PublicClubUserLevelBySportsInner } from '@tennac-booking/sdk';
|
|
15
15
|
|
|
16
|
-
const instance:
|
|
16
|
+
const instance: PublicClubUserLevelBySportsInner = {
|
|
17
17
|
sport,
|
|
18
18
|
level,
|
|
19
19
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# RefreshTokenRequestBody
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**refreshToken** | **string** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { RefreshTokenRequestBody } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: RefreshTokenRequestBody = {
|
|
16
|
+
refreshToken,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# RefreshTokenResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**token** | **string** | | [default to undefined]
|
|
9
|
+
**refreshToken** | **string** | | [default to undefined]
|
|
10
|
+
**sessionDuration** | **number** | | [default to undefined]
|
|
11
|
+
**sessionEnd** | **number** | | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { RefreshTokenResponse } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: RefreshTokenResponse = {
|
|
19
|
+
token,
|
|
20
|
+
refreshToken,
|
|
21
|
+
sessionDuration,
|
|
22
|
+
sessionEnd,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# RegisterForEvent201Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**booking** | [**EventBooking**](EventBooking.md) | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { RegisterForEvent201Response } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: RegisterForEvent201Response = {
|
|
16
|
+
booking,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# RegisterRequestBody
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
@@ -9,31 +9,27 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**firstName** | **string** | | [default to undefined]
|
|
10
10
|
**lastName** | **string** | | [default to undefined]
|
|
11
11
|
**email** | **string** | | [default to undefined]
|
|
12
|
-
**
|
|
12
|
+
**password** | **string** | | [default to undefined]
|
|
13
13
|
**level** | **string** | | [optional] [default to undefined]
|
|
14
14
|
**stripeCustomerId** | **string** | | [optional] [default to undefined]
|
|
15
15
|
**phone** | **string** | | [optional] [default to undefined]
|
|
16
|
-
**password** | **string** | | [default to undefined]
|
|
17
16
|
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
18
|
-
**isAdmin** | **boolean** | | [optional] [default to false]
|
|
19
17
|
|
|
20
18
|
## Example
|
|
21
19
|
|
|
22
20
|
```typescript
|
|
23
|
-
import {
|
|
21
|
+
import { RegisterRequestBody } from '@tennac-booking/sdk';
|
|
24
22
|
|
|
25
|
-
const instance:
|
|
23
|
+
const instance: RegisterRequestBody = {
|
|
26
24
|
username,
|
|
27
25
|
firstName,
|
|
28
26
|
lastName,
|
|
29
27
|
email,
|
|
30
|
-
|
|
28
|
+
password,
|
|
31
29
|
level,
|
|
32
30
|
stripeCustomerId,
|
|
33
31
|
phone,
|
|
34
|
-
password,
|
|
35
32
|
profilePicture,
|
|
36
|
-
isAdmin,
|
|
37
33
|
};
|
|
38
34
|
```
|
|
39
35
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# RestoreSubscriptionPlanForClub200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { RestoreSubscriptionPlanForClub200Response } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: RestoreSubscriptionPlanForClub200Response = {
|
|
16
|
+
message,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# SdkDiagnosticsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**status** | **string** | Etat de la vérification (\'ok\' si tout s\'est bien passé) | [default to undefined]
|
|
9
|
+
**apiVersion** | **string** | Version courante définie dans package.json | [default to undefined]
|
|
10
|
+
**openapi** | [**SdkDiagnosticsResponseOpenapi**](SdkDiagnosticsResponseOpenapi.md) | | [default to undefined]
|
|
11
|
+
**sdk** | [**SdkDiagnosticsResponseSdk**](SdkDiagnosticsResponseSdk.md) | | [default to undefined]
|
|
12
|
+
**matchesApiVersion** | **boolean** | true si openapi.json et le SDK sont alignés avec la version de l\'API | [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { SdkDiagnosticsResponse } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: SdkDiagnosticsResponse = {
|
|
20
|
+
status,
|
|
21
|
+
apiVersion,
|
|
22
|
+
openapi,
|
|
23
|
+
sdk,
|
|
24
|
+
matchesApiVersion,
|
|
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)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# SdkDiagnosticsResponseOpenapi
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**exists** | **boolean** | | [optional] [default to undefined]
|
|
9
|
+
**version** | **string** | Version trouvée dans openapi.json | [optional] [default to undefined]
|
|
10
|
+
**path** | **string** | Chemin relatif vers openapi.json | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { SdkDiagnosticsResponseOpenapi } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: SdkDiagnosticsResponseOpenapi = {
|
|
18
|
+
exists,
|
|
19
|
+
version,
|
|
20
|
+
path,
|
|
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)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# SdkDiagnosticsResponseSdk
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**exists** | **boolean** | | [optional] [default to undefined]
|
|
9
|
+
**version** | **string** | Version du package SDK généré | [optional] [default to undefined]
|
|
10
|
+
**path** | **string** | Chemin relatif vers sdk/package.json | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { SdkDiagnosticsResponseSdk } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: SdkDiagnosticsResponseSdk = {
|
|
18
|
+
exists,
|
|
19
|
+
version,
|
|
20
|
+
path,
|
|
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)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# SetupPaymentMethodRequestBody
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**clubId** | **string** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { SetupPaymentMethodRequestBody } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: SetupPaymentMethodRequestBody = {
|
|
16
|
+
clubId,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# SetupPaymentMethodResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**setupIntentId** | **string** | | [default to undefined]
|
|
9
|
+
**clientSecret** | **string** | | [default to undefined]
|
|
10
|
+
**message** | **string** | | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { SetupPaymentMethodResponse } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: SetupPaymentMethodResponse = {
|
|
18
|
+
setupIntentId,
|
|
19
|
+
clientSecret,
|
|
20
|
+
message,
|
|
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)
|
package/docs/SlotResponse.md
CHANGED
|
@@ -9,12 +9,8 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**startDate** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**endDate** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**courtId** | **string** | | [optional] [default to undefined]
|
|
12
|
-
**clubId** | **string** | | [optional] [default to undefined]
|
|
13
|
-
**sportId** | **string** | | [optional] [default to undefined]
|
|
14
|
-
**isAvailable** | **boolean** | | [optional] [default to undefined]
|
|
15
12
|
**price** | **number** | | [optional] [default to undefined]
|
|
16
|
-
**
|
|
17
|
-
**court** | [**CourtResponse**](CourtResponse.md) | | [optional] [default to undefined]
|
|
13
|
+
**isOpen** | **boolean** | | [optional] [default to undefined]
|
|
18
14
|
**createdAt** | **string** | | [optional] [default to undefined]
|
|
19
15
|
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
20
16
|
|
|
@@ -28,12 +24,8 @@ const instance: SlotResponse = {
|
|
|
28
24
|
startDate,
|
|
29
25
|
endDate,
|
|
30
26
|
courtId,
|
|
31
|
-
clubId,
|
|
32
|
-
sportId,
|
|
33
|
-
isAvailable,
|
|
34
27
|
price,
|
|
35
|
-
|
|
36
|
-
court,
|
|
28
|
+
isOpen,
|
|
37
29
|
createdAt,
|
|
38
30
|
updatedAt,
|
|
39
31
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# SlotsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**slots** | [**Array<SlotResponse>**](SlotResponse.md) | | [optional] [default to undefined]
|
|
9
|
+
**total** | **number** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { SlotsResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: SlotsResponse = {
|
|
17
|
+
slots,
|
|
18
|
+
total,
|
|
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)
|
package/docs/Sport.md
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**_id** | **string** | | [optional] [default to undefined]
|
|
9
8
|
**key** | **string** | | [optional] [default to undefined]
|
|
10
9
|
**clubId** | **string** | | [optional] [default to undefined]
|
|
11
10
|
|
|
@@ -15,7 +14,6 @@ Name | Type | Description | Notes
|
|
|
15
14
|
import { Sport } from '@tennac-booking/sdk';
|
|
16
15
|
|
|
17
16
|
const instance: Sport = {
|
|
18
|
-
_id,
|
|
19
17
|
key,
|
|
20
18
|
clubId,
|
|
21
19
|
};
|
package/docs/SportResponse.md
CHANGED
|
@@ -10,7 +10,8 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**name** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**description** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**clubId** | **string** | | [optional] [default to undefined]
|
|
13
|
-
**
|
|
13
|
+
**courtsCount** | **number** | | [optional] [default to undefined]
|
|
14
|
+
**bookingsCount** | **number** | | [optional] [default to undefined]
|
|
14
15
|
**createdAt** | **string** | | [optional] [default to undefined]
|
|
15
16
|
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
16
17
|
|
|
@@ -25,7 +26,8 @@ const instance: SportResponse = {
|
|
|
25
26
|
name,
|
|
26
27
|
description,
|
|
27
28
|
clubId,
|
|
28
|
-
|
|
29
|
+
courtsCount,
|
|
30
|
+
bookingsCount,
|
|
29
31
|
createdAt,
|
|
30
32
|
updatedAt,
|
|
31
33
|
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# StaffBookingsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getBookingByIdStaff**](#getbookingbyidstaff) | **GET** /api/bookings/staff/:bookingId | Récupère une réservation par son ID avec les joueurs et terrains (incluant le sport) peuplés.|
|
|
8
|
+
|
|
9
|
+
# **getBookingByIdStaff**
|
|
10
|
+
> BookingPopulated getBookingByIdStaff()
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import {
|
|
17
|
+
StaffBookingsApi,
|
|
18
|
+
Configuration
|
|
19
|
+
} from '@tennac-booking/sdk';
|
|
20
|
+
|
|
21
|
+
const configuration = new Configuration();
|
|
22
|
+
const apiInstance = new StaffBookingsApi(configuration);
|
|
23
|
+
|
|
24
|
+
let bookingId: string; //ID de la réservation (default to undefined)
|
|
25
|
+
|
|
26
|
+
const { status, data } = await apiInstance.getBookingByIdStaff(
|
|
27
|
+
bookingId
|
|
28
|
+
);
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Parameters
|
|
32
|
+
|
|
33
|
+
|Name | Type | Description | Notes|
|
|
34
|
+
|------------- | ------------- | ------------- | -------------|
|
|
35
|
+
| **bookingId** | [**string**] | ID de la réservation | defaults to undefined|
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Return type
|
|
39
|
+
|
|
40
|
+
**BookingPopulated**
|
|
41
|
+
|
|
42
|
+
### Authorization
|
|
43
|
+
|
|
44
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
45
|
+
|
|
46
|
+
### HTTP request headers
|
|
47
|
+
|
|
48
|
+
- **Content-Type**: Not defined
|
|
49
|
+
- **Accept**: application/json
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### HTTP response details
|
|
53
|
+
| Status code | Description | Response headers |
|
|
54
|
+
|-------------|-------------|------------------|
|
|
55
|
+
|**200** | Réservation récupérée avec succès | - |
|
|
56
|
+
|**400** | Requête invalide | - |
|
|
57
|
+
|**401** | Non autorisé | - |
|
|
58
|
+
|**403** | Accès interdit | - |
|
|
59
|
+
|
|
60
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
61
|
+
|