@tennac-booking/sdk 1.0.35 → 1.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +4 -161
- package/README.md +6 -234
- package/api.ts +650 -14150
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +645 -9513
- package/dist/api.js +10 -8071
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +645 -9513
- package/dist/esm/api.js +9 -7956
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/ApiErrorResponse.md +1 -1
- package/docs/Club.md +4 -10
- package/docs/ClubResponse.md +8 -14
- package/docs/ClubRoleResponse.md +6 -6
- package/docs/ClubSettings.md +9 -21
- package/docs/Court.md +2 -2
- package/docs/CourtResponse.md +16 -18
- package/docs/CourtStatus.md +2 -5
- package/docs/PriceResponse.md +8 -2
- package/docs/SlotResponse.md +10 -2
- package/docs/Sport.md +2 -0
- package/docs/SportResponse.md +2 -4
- package/docs/{GetUserRolesResponseRolesInner.md → StripeLink.md} +7 -7
- package/docs/UserResponse.md +48 -8
- package/docs/{FrequentlyPlayedWithItem.md → UserResponseFrequentlyPlayedWithInner.md} +3 -3
- package/docs/{FrequentlyVisitedClubItem.md → UserResponseFrequentlyVisitedClubsInner.md} +3 -3
- package/docs/{PublicClubUserLevelBySportsInner.md → UserResponseLevelBySportsInner.md} +3 -3
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/AddClubMemberRequest.md +0 -22
- package/docs/AddClubMemberResponse.md +0 -22
- package/docs/AddFavoriteClubRequestBody.md +0 -20
- package/docs/AddFavoritePlayerRequestBody.md +0 -20
- package/docs/AddPaymentMethodSetupRequestBody.md +0 -20
- package/docs/AddPaymentMethodSetupResponse.md +0 -24
- package/docs/BlockSlotResponse.md +0 -22
- package/docs/BookingHistoryResponse.md +0 -22
- package/docs/BookingHistoryResponseHistoryInner.md +0 -32
- package/docs/BookingPaymentStatusResponse.md +0 -24
- package/docs/BookingPaymentStatusResponseBooking.md +0 -26
- package/docs/BookingPaymentStatusResponsePaymentStatusInner.md +0 -36
- package/docs/BookingPaymentStatusResponseSummary.md +0 -28
- package/docs/BookingPopulated.md +0 -30
- package/docs/BookingPopulatedPaymentByPlayersStatusInner.md +0 -22
- package/docs/BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner.md +0 -24
- package/docs/BookingPopulatedSlotId.md +0 -26
- package/docs/BookingPopulatedSlotIdCourtId.md +0 -22
- package/docs/BookingPopulatedUserId.md +0 -24
- package/docs/BookingResponse.md +0 -28
- package/docs/BookingsApi.md +0 -113
- package/docs/BookingsStaffWeeklyWeekIdGet200Response.md +0 -20
- package/docs/CancelBookingResponse.md +0 -22
- package/docs/CancelBookingResponseBooking.md +0 -30
- package/docs/ChangePasswordRequestBody.md +0 -22
- package/docs/ChangePasswordResponse.md +0 -20
- package/docs/CheckInPlayersResponse.md +0 -30
- package/docs/CheckInPlayersResponseCheckedInPlayersInner.md +0 -34
- package/docs/ClubAnalyticsApi.md +0 -241
- package/docs/ClubInfoResponse.md +0 -48
- package/docs/ClubMember.md +0 -24
- package/docs/ClubMembersResponse.md +0 -22
- package/docs/ClubRolesResponse.md +0 -22
- package/docs/ClubsApi.md +0 -61
- package/docs/ConfirmPaymentMethodSetupRequestBody.md +0 -20
- package/docs/ConfirmPaymentMethodSetupResponse.md +0 -22
- package/docs/CourtDeleteResponse.md +0 -20
- package/docs/CourtWithNameResponse.md +0 -48
- package/docs/CourtsResponse.md +0 -22
- package/docs/CourtsWithNameResponse.md +0 -22
- package/docs/CreateBookingRequest.md +0 -28
- package/docs/CreateClubRoleRequestBody.md +0 -24
- package/docs/CreateCourtRequest.md +0 -36
- package/docs/CreateEventRequest.md +0 -30
- package/docs/CreatePriceRequest.md +0 -26
- package/docs/CreateSportRequest.md +0 -26
- package/docs/CreateSubscriptionPlanRequest.md +0 -24
- package/docs/DailyTurnoverResponse.md +0 -24
- package/docs/DeleteClubRole200Response.md +0 -20
- package/docs/DeleteEvent200Response.md +0 -20
- package/docs/DeleteSlotsByClubInRange200Response.md +0 -20
- package/docs/DeleteSport200Response.md +0 -20
- package/docs/Event.md +0 -40
- package/docs/EventBooking.md +0 -32
- package/docs/EventRegistrationRequest.md +0 -22
- package/docs/EventsApi.md +0 -119
- package/docs/FavoriteClubItem.md +0 -26
- package/docs/FavoriteClubResponse.md +0 -22
- package/docs/FavoritePlayerPublic.md +0 -28
- package/docs/FavoritePlayersIdsResponse.md +0 -22
- package/docs/FavoritePlayersResponse.md +0 -20
- package/docs/GenderPercentage.md +0 -26
- package/docs/GetActiveClubs200Response.md +0 -20
- package/docs/GetClubInfos200Response.md +0 -30
- package/docs/GetClubUsersById200Response.md +0 -20
- package/docs/GetCourtsByClubAndSport200Response.md +0 -26
- package/docs/GetLastSixMonthsTurnover200ResponseInner.md +0 -22
- package/docs/GetNumberOfClubUsers200Response.md +0 -20
- package/docs/GetPublishedEventsByClubId200Response.md +0 -20
- package/docs/GetUserRolesResponse.md +0 -20
- package/docs/GetUserSubscriptionsResponse.md +0 -22
- package/docs/GoogleSignInRequestBody.md +0 -20
- package/docs/GoogleSignInResponse.md +0 -24
- package/docs/InitiateSubscriptionSessionRequestBody.md +0 -26
- package/docs/InitiateSubscriptionSessionResponse.md +0 -22
- package/docs/InvoicesResponse.md +0 -22
- package/docs/InvoicesResponseInvoicesInner.md +0 -34
- package/docs/InvoicesResponsePagination.md +0 -26
- package/docs/LevelBySportsItem.md +0 -22
- package/docs/LoginRequestBody.md +0 -22
- package/docs/LoginResponse.md +0 -28
- package/docs/ManagerBookingsApi.md +0 -125
- package/docs/ManagerCancelBookingRequest.md +0 -20
- package/docs/ManagerCancelBookingResponse.md +0 -22
- package/docs/ManagerCancelBookingResponseBooking.md +0 -30
- package/docs/ManagerClubCourtsApi.md +0 -220
- package/docs/ManagerClubRolesApi.md +0 -268
- package/docs/ManagerClubSlotsApi.md +0 -119
- package/docs/ManagerClubSubscriptionsApi.md +0 -387
- package/docs/ManagerClubsApi.md +0 -253
- package/docs/ManagerEventResponse.md +0 -22
- package/docs/ManagerEventsApi.md +0 -227
- package/docs/ManagerSportsApi.md +0 -119
- package/docs/MonthlyTurnoverResponse.md +0 -28
- package/docs/NoShowFeeResponse.md +0 -30
- package/docs/NoShowFeeResponseCaptureResultsInner.md +0 -30
- package/docs/NoShowFeeResponseCreatorChargeResult.md +0 -26
- package/docs/PaymentStatus.md +0 -30
- package/docs/PlayerWithPaymentMethod.md +0 -22
- package/docs/ProfilePictureResponse.md +0 -20
- package/docs/ProfileVisibilityResponse.md +0 -20
- package/docs/PublicClubUser.md +0 -46
- package/docs/PublicClubUserFrequentlyPlayedWithInner.md +0 -28
- package/docs/PublicClubUserFrequentlyVisitedClubsInner.md +0 -24
- package/docs/RefreshTokenRequestBody.md +0 -20
- package/docs/RefreshTokenResponse.md +0 -22
- package/docs/RegisterForEvent201Response.md +0 -20
- package/docs/RegisterRequestBody.md +0 -36
- package/docs/RestoreSubscriptionPlanForClub200Response.md +0 -20
- package/docs/SetupPaymentMethodRequestBody.md +0 -20
- package/docs/SetupPaymentMethodResponse.md +0 -24
- package/docs/SlotsResponse.md +0 -22
- package/docs/StaffClubAnalyticsApi.md +0 -196
- package/docs/StaffClubBookingsApi.md +0 -52
- package/docs/StaffClubsApi.md +0 -147
- package/docs/StaffEventResponse.md +0 -20
- package/docs/StaffEventsApi.md +0 -54
- package/docs/StaffProfileApi.md +0 -54
- package/docs/SubscribeToClubRequestBody.md +0 -22
- package/docs/SubscriptionPlanResponse.md +0 -32
- package/docs/UpdateClubRequest.md +0 -40
- package/docs/UpdateClubRoleRequestBody.md +0 -24
- package/docs/UpdateClubSettingsRequest.md +0 -28
- package/docs/UpdateCourtRequest.md +0 -38
- package/docs/UpdateCustomerRequestBody.md +0 -26
- package/docs/UpdateCustomerRequestBodyAddress.md +0 -30
- package/docs/UpdateCustomerResponse.md +0 -22
- package/docs/UpdateCustomerResponseCustomer.md +0 -28
- package/docs/UpdateLevelBySportsRequestBody.md +0 -20
- package/docs/UpdateProfilePictureRequestBody.md +0 -20
- package/docs/UpdateProfileVisibilityRequestBody.md +0 -20
- package/docs/UpdateSportRequest.md +0 -24
- package/docs/UpdateSubscriptionPlanRequest.md +0 -24
- package/docs/UpdateSubscriptionPlanResponse.md +0 -22
- package/docs/UpdateUserCityRequestBody.md +0 -20
- package/docs/UpdateUserDescriptionRequestBody.md +0 -20
- package/docs/UpdateUserRequestBody.md +0 -38
- package/docs/UpdateUserRequestBodyLevelBySportsInner.md +0 -22
- package/docs/UserApi.md +0 -63
- package/docs/UserAuthenticationApi.md +0 -226
- package/docs/UserBookingItem.md +0 -46
- package/docs/UserBookingsApi.md +0 -166
- package/docs/UserBookingsResponse.md +0 -26
- package/docs/UserCityResponse.md +0 -20
- package/docs/UserClubCourtsApi.md +0 -64
- package/docs/UserClubSlotsApi.md +0 -181
- package/docs/UserClubSportsApi.md +0 -60
- package/docs/UserClubsApi.md +0 -53
- package/docs/UserDescriptionResponse.md +0 -20
- package/docs/UserFavoriteClubsResponse.md +0 -20
- package/docs/UserPaymentApi.md +0 -176
- package/docs/UserProfileApi.md +0 -1254
- package/docs/UserStaffResponse.md +0 -36
- package/docs/UserSubscriptionsApi.md +0 -222
- package/docs/UsersApi.md +0 -243
- package/docs/YearlyTurnoverResponse.md +0 -26
- package/docs/YearlyTurnoverResponseMonthlyBreakdownInner.md +0 -24
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# CancelBookingResponseBooking
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
-
**status** | **string** | | [optional] [default to undefined]
|
|
10
|
-
**cancelledAt** | **string** | | [optional] [default to undefined]
|
|
11
|
-
**cancelledBy** | **string** | | [optional] [default to undefined]
|
|
12
|
-
**cancelledByManager** | **boolean** | | [optional] [default to undefined]
|
|
13
|
-
**cancellationReason** | **string** | | [optional] [default to undefined]
|
|
14
|
-
|
|
15
|
-
## Example
|
|
16
|
-
|
|
17
|
-
```typescript
|
|
18
|
-
import { CancelBookingResponseBooking } from '@tennac-booking/sdk';
|
|
19
|
-
|
|
20
|
-
const instance: CancelBookingResponseBooking = {
|
|
21
|
-
id,
|
|
22
|
-
status,
|
|
23
|
-
cancelledAt,
|
|
24
|
-
cancelledBy,
|
|
25
|
-
cancelledByManager,
|
|
26
|
-
cancellationReason,
|
|
27
|
-
};
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
[[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,22 +0,0 @@
|
|
|
1
|
-
# ChangePasswordRequestBody
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**currentPassword** | **string** | | [default to undefined]
|
|
9
|
-
**newPassword** | **string** | | [default to undefined]
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import { ChangePasswordRequestBody } from '@tennac-booking/sdk';
|
|
15
|
-
|
|
16
|
-
const instance: ChangePasswordRequestBody = {
|
|
17
|
-
currentPassword,
|
|
18
|
-
newPassword,
|
|
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)
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# ChangePasswordResponse
|
|
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 { ChangePasswordResponse } from '@tennac-booking/sdk';
|
|
14
|
-
|
|
15
|
-
const instance: ChangePasswordResponse = {
|
|
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)
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# CheckInPlayersResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**message** | **string** | | [optional] [default to undefined]
|
|
9
|
-
**checkedInPlayers** | [**Array<CheckInPlayersResponseCheckedInPlayersInner>**](CheckInPlayersResponseCheckedInPlayersInner.md) | | [optional] [default to undefined]
|
|
10
|
-
**notFoundPlayers** | **Array<string>** | | [optional] [default to undefined]
|
|
11
|
-
**allPlayersCheckedIn** | **boolean** | | [optional] [default to undefined]
|
|
12
|
-
**bookingFullyPaid** | **boolean** | | [optional] [default to undefined]
|
|
13
|
-
**totalPlayers** | **number** | | [optional] [default to undefined]
|
|
14
|
-
|
|
15
|
-
## Example
|
|
16
|
-
|
|
17
|
-
```typescript
|
|
18
|
-
import { CheckInPlayersResponse } from '@tennac-booking/sdk';
|
|
19
|
-
|
|
20
|
-
const instance: CheckInPlayersResponse = {
|
|
21
|
-
message,
|
|
22
|
-
checkedInPlayers,
|
|
23
|
-
notFoundPlayers,
|
|
24
|
-
allPlayersCheckedIn,
|
|
25
|
-
bookingFullyPaid,
|
|
26
|
-
totalPlayers,
|
|
27
|
-
};
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
[[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,34 +0,0 @@
|
|
|
1
|
-
# CheckInPlayersResponseCheckedInPlayersInner
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**playerId** | **string** | | [optional] [default to undefined]
|
|
9
|
-
**invoiceId** | **string** | | [optional] [default to undefined]
|
|
10
|
-
**amount** | **number** | | [optional] [default to undefined]
|
|
11
|
-
**previousStatus** | **string** | | [optional] [default to undefined]
|
|
12
|
-
**newStatus** | **string** | | [optional] [default to undefined]
|
|
13
|
-
**status** | **string** | | [optional] [default to undefined]
|
|
14
|
-
**paymentMethod** | **string** | | [optional] [default to undefined]
|
|
15
|
-
**note** | **string** | | [optional] [default to undefined]
|
|
16
|
-
|
|
17
|
-
## Example
|
|
18
|
-
|
|
19
|
-
```typescript
|
|
20
|
-
import { CheckInPlayersResponseCheckedInPlayersInner } from '@tennac-booking/sdk';
|
|
21
|
-
|
|
22
|
-
const instance: CheckInPlayersResponseCheckedInPlayersInner = {
|
|
23
|
-
playerId,
|
|
24
|
-
invoiceId,
|
|
25
|
-
amount,
|
|
26
|
-
previousStatus,
|
|
27
|
-
newStatus,
|
|
28
|
-
status,
|
|
29
|
-
paymentMethod,
|
|
30
|
-
note,
|
|
31
|
-
};
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
[[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/ClubAnalyticsApi.md
DELETED
|
@@ -1,241 +0,0 @@
|
|
|
1
|
-
# ClubAnalyticsApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**getDailyTurnOver**](#getdailyturnover) | **GET** /api/analytics/dailyTurnover | Chiffre d\'affaires quotidien (club courant)|
|
|
8
|
-
|[**getInvoices**](#getinvoices) | **GET** /api/clubs/invoices | Récupérer les factures du club courant|
|
|
9
|
-
|[**getMonthlyTurnOver**](#getmonthlyturnover) | **GET** /api/analytics/monthlyTurnover | Chiffre d\'affaires mensuel (club courant)|
|
|
10
|
-
|[**getYearlyTurnOver**](#getyearlyturnover) | **GET** /api/analytics/yearlyTurnover | Chiffre d\'affaires annuel (club courant)|
|
|
11
|
-
|
|
12
|
-
# **getDailyTurnOver**
|
|
13
|
-
> DailyTurnoverResponse getDailyTurnOver()
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
### Example
|
|
17
|
-
|
|
18
|
-
```typescript
|
|
19
|
-
import {
|
|
20
|
-
ClubAnalyticsApi,
|
|
21
|
-
Configuration
|
|
22
|
-
} from '@tennac-booking/sdk';
|
|
23
|
-
|
|
24
|
-
const configuration = new Configuration();
|
|
25
|
-
const apiInstance = new ClubAnalyticsApi(configuration);
|
|
26
|
-
|
|
27
|
-
let date: string; //Date (format YYYY-MM-DD) (default to undefined)
|
|
28
|
-
|
|
29
|
-
const { status, data } = await apiInstance.getDailyTurnOver(
|
|
30
|
-
date
|
|
31
|
-
);
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
### Parameters
|
|
35
|
-
|
|
36
|
-
|Name | Type | Description | Notes|
|
|
37
|
-
|------------- | ------------- | ------------- | -------------|
|
|
38
|
-
| **date** | [**string**] | Date (format YYYY-MM-DD) | defaults to undefined|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
### Return type
|
|
42
|
-
|
|
43
|
-
**DailyTurnoverResponse**
|
|
44
|
-
|
|
45
|
-
### Authorization
|
|
46
|
-
|
|
47
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
48
|
-
|
|
49
|
-
### HTTP request headers
|
|
50
|
-
|
|
51
|
-
- **Content-Type**: Not defined
|
|
52
|
-
- **Accept**: application/json
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
### HTTP response details
|
|
56
|
-
| Status code | Description | Response headers |
|
|
57
|
-
|-------------|-------------|------------------|
|
|
58
|
-
|**200** | Chiffre d\'affaires quotidien | - |
|
|
59
|
-
|**400** | Requête invalide | - |
|
|
60
|
-
|**401** | Non autorisé | - |
|
|
61
|
-
|**403** | Accès interdit | - |
|
|
62
|
-
|**500** | Erreur serveur interne | - |
|
|
63
|
-
|
|
64
|
-
[[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)
|
|
65
|
-
|
|
66
|
-
# **getInvoices**
|
|
67
|
-
> InvoicesResponse getInvoices()
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
### Example
|
|
71
|
-
|
|
72
|
-
```typescript
|
|
73
|
-
import {
|
|
74
|
-
ClubAnalyticsApi,
|
|
75
|
-
Configuration
|
|
76
|
-
} from '@tennac-booking/sdk';
|
|
77
|
-
|
|
78
|
-
const configuration = new Configuration();
|
|
79
|
-
const apiInstance = new ClubAnalyticsApi(configuration);
|
|
80
|
-
|
|
81
|
-
let page: number; //Numéro de page (optional) (default to 1)
|
|
82
|
-
let limit: number; //Nombre d\'éléments par page (optional) (default to 10)
|
|
83
|
-
let status: 'pending' | 'paid' | 'failed' | 'authorized' | 'canceled' | 'expired'; //Filtrer par statut (optional) (default to undefined)
|
|
84
|
-
let startDate: string; //Date de début (ISO format) (optional) (default to undefined)
|
|
85
|
-
let endDate: string; //Date de fin (ISO format) (optional) (default to undefined)
|
|
86
|
-
|
|
87
|
-
const { status, data } = await apiInstance.getInvoices(
|
|
88
|
-
page,
|
|
89
|
-
limit,
|
|
90
|
-
status,
|
|
91
|
-
startDate,
|
|
92
|
-
endDate
|
|
93
|
-
);
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
### Parameters
|
|
97
|
-
|
|
98
|
-
|Name | Type | Description | Notes|
|
|
99
|
-
|------------- | ------------- | ------------- | -------------|
|
|
100
|
-
| **page** | [**number**] | Numéro de page | (optional) defaults to 1|
|
|
101
|
-
| **limit** | [**number**] | Nombre d\'éléments par page | (optional) defaults to 10|
|
|
102
|
-
| **status** | [**'pending' | 'paid' | 'failed' | 'authorized' | 'canceled' | 'expired'**]**Array<'pending' | 'paid' | 'failed' | 'authorized' | 'canceled' | 'expired'>** | Filtrer par statut | (optional) defaults to undefined|
|
|
103
|
-
| **startDate** | [**string**] | Date de début (ISO format) | (optional) defaults to undefined|
|
|
104
|
-
| **endDate** | [**string**] | Date de fin (ISO format) | (optional) defaults to undefined|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
### Return type
|
|
108
|
-
|
|
109
|
-
**InvoicesResponse**
|
|
110
|
-
|
|
111
|
-
### Authorization
|
|
112
|
-
|
|
113
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
114
|
-
|
|
115
|
-
### HTTP request headers
|
|
116
|
-
|
|
117
|
-
- **Content-Type**: Not defined
|
|
118
|
-
- **Accept**: application/json
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
### HTTP response details
|
|
122
|
-
| Status code | Description | Response headers |
|
|
123
|
-
|-------------|-------------|------------------|
|
|
124
|
-
|**200** | Liste des factures | - |
|
|
125
|
-
|**401** | Non autorisé | - |
|
|
126
|
-
|**403** | Accès interdit | - |
|
|
127
|
-
|**500** | Erreur serveur interne | - |
|
|
128
|
-
|
|
129
|
-
[[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)
|
|
130
|
-
|
|
131
|
-
# **getMonthlyTurnOver**
|
|
132
|
-
> MonthlyTurnoverResponse getMonthlyTurnOver()
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
### Example
|
|
136
|
-
|
|
137
|
-
```typescript
|
|
138
|
-
import {
|
|
139
|
-
ClubAnalyticsApi,
|
|
140
|
-
Configuration
|
|
141
|
-
} from '@tennac-booking/sdk';
|
|
142
|
-
|
|
143
|
-
const configuration = new Configuration();
|
|
144
|
-
const apiInstance = new ClubAnalyticsApi(configuration);
|
|
145
|
-
|
|
146
|
-
let year: number; //Année (default to undefined)
|
|
147
|
-
let month: number; //Mois (1-12) (default to undefined)
|
|
148
|
-
|
|
149
|
-
const { status, data } = await apiInstance.getMonthlyTurnOver(
|
|
150
|
-
year,
|
|
151
|
-
month
|
|
152
|
-
);
|
|
153
|
-
```
|
|
154
|
-
|
|
155
|
-
### Parameters
|
|
156
|
-
|
|
157
|
-
|Name | Type | Description | Notes|
|
|
158
|
-
|------------- | ------------- | ------------- | -------------|
|
|
159
|
-
| **year** | [**number**] | Année | defaults to undefined|
|
|
160
|
-
| **month** | [**number**] | Mois (1-12) | defaults to undefined|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
### Return type
|
|
164
|
-
|
|
165
|
-
**MonthlyTurnoverResponse**
|
|
166
|
-
|
|
167
|
-
### Authorization
|
|
168
|
-
|
|
169
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
170
|
-
|
|
171
|
-
### HTTP request headers
|
|
172
|
-
|
|
173
|
-
- **Content-Type**: Not defined
|
|
174
|
-
- **Accept**: application/json
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
### HTTP response details
|
|
178
|
-
| Status code | Description | Response headers |
|
|
179
|
-
|-------------|-------------|------------------|
|
|
180
|
-
|**200** | Chiffre d\'affaires mensuel | - |
|
|
181
|
-
|**400** | Requête invalide | - |
|
|
182
|
-
|**401** | Non autorisé | - |
|
|
183
|
-
|**403** | Accès interdit | - |
|
|
184
|
-
|**500** | Erreur serveur interne | - |
|
|
185
|
-
|
|
186
|
-
[[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)
|
|
187
|
-
|
|
188
|
-
# **getYearlyTurnOver**
|
|
189
|
-
> YearlyTurnoverResponse getYearlyTurnOver()
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
### Example
|
|
193
|
-
|
|
194
|
-
```typescript
|
|
195
|
-
import {
|
|
196
|
-
ClubAnalyticsApi,
|
|
197
|
-
Configuration
|
|
198
|
-
} from '@tennac-booking/sdk';
|
|
199
|
-
|
|
200
|
-
const configuration = new Configuration();
|
|
201
|
-
const apiInstance = new ClubAnalyticsApi(configuration);
|
|
202
|
-
|
|
203
|
-
let year: number; //Année (default to undefined)
|
|
204
|
-
|
|
205
|
-
const { status, data } = await apiInstance.getYearlyTurnOver(
|
|
206
|
-
year
|
|
207
|
-
);
|
|
208
|
-
```
|
|
209
|
-
|
|
210
|
-
### Parameters
|
|
211
|
-
|
|
212
|
-
|Name | Type | Description | Notes|
|
|
213
|
-
|------------- | ------------- | ------------- | -------------|
|
|
214
|
-
| **year** | [**number**] | Année | defaults to undefined|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
### Return type
|
|
218
|
-
|
|
219
|
-
**YearlyTurnoverResponse**
|
|
220
|
-
|
|
221
|
-
### Authorization
|
|
222
|
-
|
|
223
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
224
|
-
|
|
225
|
-
### HTTP request headers
|
|
226
|
-
|
|
227
|
-
- **Content-Type**: Not defined
|
|
228
|
-
- **Accept**: application/json
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
### HTTP response details
|
|
232
|
-
| Status code | Description | Response headers |
|
|
233
|
-
|-------------|-------------|------------------|
|
|
234
|
-
|**200** | Chiffre d\'affaires annuel | - |
|
|
235
|
-
|**400** | Requête invalide | - |
|
|
236
|
-
|**401** | Non autorisé | - |
|
|
237
|
-
|**403** | Accès interdit | - |
|
|
238
|
-
|**500** | Erreur serveur interne | - |
|
|
239
|
-
|
|
240
|
-
[[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)
|
|
241
|
-
|
package/docs/ClubInfoResponse.md
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# ClubInfoResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
-
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
-
**address** | **string** | | [optional] [default to undefined]
|
|
11
|
-
**city** | **string** | | [optional] [default to undefined]
|
|
12
|
-
**zipCode** | **string** | | [optional] [default to undefined]
|
|
13
|
-
**country** | **string** | | [optional] [default to undefined]
|
|
14
|
-
**phone** | **string** | | [optional] [default to undefined]
|
|
15
|
-
**email** | **string** | | [optional] [default to undefined]
|
|
16
|
-
**website** | **string** | | [optional] [default to undefined]
|
|
17
|
-
**rib** | **string** | | [optional] [default to undefined]
|
|
18
|
-
**description** | **string** | | [optional] [default to undefined]
|
|
19
|
-
**logo** | **string** | | [optional] [default to undefined]
|
|
20
|
-
**isActive** | **boolean** | | [optional] [default to undefined]
|
|
21
|
-
**createdAt** | **string** | | [optional] [default to undefined]
|
|
22
|
-
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
23
|
-
|
|
24
|
-
## Example
|
|
25
|
-
|
|
26
|
-
```typescript
|
|
27
|
-
import { ClubInfoResponse } from '@tennac-booking/sdk';
|
|
28
|
-
|
|
29
|
-
const instance: ClubInfoResponse = {
|
|
30
|
-
id,
|
|
31
|
-
name,
|
|
32
|
-
address,
|
|
33
|
-
city,
|
|
34
|
-
zipCode,
|
|
35
|
-
country,
|
|
36
|
-
phone,
|
|
37
|
-
email,
|
|
38
|
-
website,
|
|
39
|
-
rib,
|
|
40
|
-
description,
|
|
41
|
-
logo,
|
|
42
|
-
isActive,
|
|
43
|
-
createdAt,
|
|
44
|
-
updatedAt,
|
|
45
|
-
};
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
[[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/ClubMember.md
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# ClubMember
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**user** | [**UserResponse**](UserResponse.md) | | [optional] [default to undefined]
|
|
9
|
-
**role** | **string** | | [optional] [default to undefined]
|
|
10
|
-
**rights** | **Array<string>** | | [optional] [default to undefined]
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import { ClubMember } from '@tennac-booking/sdk';
|
|
16
|
-
|
|
17
|
-
const instance: ClubMember = {
|
|
18
|
-
user,
|
|
19
|
-
role,
|
|
20
|
-
rights,
|
|
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,22 +0,0 @@
|
|
|
1
|
-
# ClubMembersResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**members** | [**Array<ClubMember>**](ClubMember.md) | | [optional] [default to undefined]
|
|
9
|
-
**total** | **number** | | [optional] [default to undefined]
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import { ClubMembersResponse } from '@tennac-booking/sdk';
|
|
15
|
-
|
|
16
|
-
const instance: ClubMembersResponse = {
|
|
17
|
-
members,
|
|
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)
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# ClubRolesResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**roles** | [**Array<ClubRoleResponse>**](ClubRoleResponse.md) | | [optional] [default to undefined]
|
|
9
|
-
**total** | **number** | | [optional] [default to undefined]
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import { ClubRolesResponse } from '@tennac-booking/sdk';
|
|
15
|
-
|
|
16
|
-
const instance: ClubRolesResponse = {
|
|
17
|
-
roles,
|
|
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/ClubsApi.md
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
# ClubsApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**getClubUsersById**](#getclubusersbyid) | **GET** /api/clubs/{id}/clubUsers | Récupérer la liste publique des utilisateurs d\'un club|
|
|
8
|
-
|
|
9
|
-
# **getClubUsersById**
|
|
10
|
-
> GetClubUsersById200Response getClubUsersById()
|
|
11
|
-
|
|
12
|
-
Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
|
|
13
|
-
|
|
14
|
-
### Example
|
|
15
|
-
|
|
16
|
-
```typescript
|
|
17
|
-
import {
|
|
18
|
-
ClubsApi,
|
|
19
|
-
Configuration
|
|
20
|
-
} from '@tennac-booking/sdk';
|
|
21
|
-
|
|
22
|
-
const configuration = new Configuration();
|
|
23
|
-
const apiInstance = new ClubsApi(configuration);
|
|
24
|
-
|
|
25
|
-
let id: string; //ID du club (default to undefined)
|
|
26
|
-
|
|
27
|
-
const { status, data } = await apiInstance.getClubUsersById(
|
|
28
|
-
id
|
|
29
|
-
);
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
### Parameters
|
|
33
|
-
|
|
34
|
-
|Name | Type | Description | Notes|
|
|
35
|
-
|------------- | ------------- | ------------- | -------------|
|
|
36
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
### Return type
|
|
40
|
-
|
|
41
|
-
**GetClubUsersById200Response**
|
|
42
|
-
|
|
43
|
-
### Authorization
|
|
44
|
-
|
|
45
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
46
|
-
|
|
47
|
-
### HTTP request headers
|
|
48
|
-
|
|
49
|
-
- **Content-Type**: Not defined
|
|
50
|
-
- **Accept**: application/json
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
### HTTP response details
|
|
54
|
-
| Status code | Description | Response headers |
|
|
55
|
-
|-------------|-------------|------------------|
|
|
56
|
-
|**200** | Liste des utilisateurs publics du club | - |
|
|
57
|
-
|**400** | Requête invalide | - |
|
|
58
|
-
|**500** | Erreur serveur interne | - |
|
|
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
|
-
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# ConfirmPaymentMethodSetupRequestBody
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**setupIntentId** | **string** | ID du Setup Intent à confirmer | [default to undefined]
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import { ConfirmPaymentMethodSetupRequestBody } from '@tennac-booking/sdk';
|
|
14
|
-
|
|
15
|
-
const instance: ConfirmPaymentMethodSetupRequestBody = {
|
|
16
|
-
setupIntentId,
|
|
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,22 +0,0 @@
|
|
|
1
|
-
# ConfirmPaymentMethodSetupResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**message** | **string** | Message de confirmation | [optional] [default to undefined]
|
|
9
|
-
**paymentMethodId** | **string** | ID de la méthode de paiement configurée | [optional] [default to undefined]
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import { ConfirmPaymentMethodSetupResponse } from '@tennac-booking/sdk';
|
|
15
|
-
|
|
16
|
-
const instance: ConfirmPaymentMethodSetupResponse = {
|
|
17
|
-
message,
|
|
18
|
-
paymentMethodId,
|
|
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)
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# CourtDeleteResponse
|
|
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 { CourtDeleteResponse } from '@tennac-booking/sdk';
|
|
14
|
-
|
|
15
|
-
const instance: CourtDeleteResponse = {
|
|
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)
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# CourtWithNameResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
-
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
-
**status** | [**CourtStatus**](CourtStatus.md) | | [optional] [default to undefined]
|
|
11
|
-
**comments** | **string** | | [optional] [default to undefined]
|
|
12
|
-
**pricePerSlot** | **number** | | [optional] [default to undefined]
|
|
13
|
-
**slotDefaultDuration** | **number** | | [optional] [default to undefined]
|
|
14
|
-
**startTimeInTheDayInMinutes** | **number** | | [optional] [default to undefined]
|
|
15
|
-
**endTimeInTheDayInMinutes** | **number** | | [optional] [default to undefined]
|
|
16
|
-
**sportId** | **string** | | [optional] [default to undefined]
|
|
17
|
-
**sportName** | **string** | | [optional] [default to undefined]
|
|
18
|
-
**clubId** | **string** | | [optional] [default to undefined]
|
|
19
|
-
**surface** | **string** | Type de surface | [optional] [default to undefined]
|
|
20
|
-
**isIndoor** | **boolean** | Indique si le terrain est en intérieur ou extérieur | [optional] [default to undefined]
|
|
21
|
-
**createdAt** | **string** | | [optional] [default to undefined]
|
|
22
|
-
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
23
|
-
|
|
24
|
-
## Example
|
|
25
|
-
|
|
26
|
-
```typescript
|
|
27
|
-
import { CourtWithNameResponse } from '@tennac-booking/sdk';
|
|
28
|
-
|
|
29
|
-
const instance: CourtWithNameResponse = {
|
|
30
|
-
id,
|
|
31
|
-
name,
|
|
32
|
-
status,
|
|
33
|
-
comments,
|
|
34
|
-
pricePerSlot,
|
|
35
|
-
slotDefaultDuration,
|
|
36
|
-
startTimeInTheDayInMinutes,
|
|
37
|
-
endTimeInTheDayInMinutes,
|
|
38
|
-
sportId,
|
|
39
|
-
sportName,
|
|
40
|
-
clubId,
|
|
41
|
-
surface,
|
|
42
|
-
isIndoor,
|
|
43
|
-
createdAt,
|
|
44
|
-
updatedAt,
|
|
45
|
-
};
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|