@tennac-booking/sdk 1.0.35 → 1.0.37
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 -163
- package/README.md +6 -235
- package/api.ts +604 -14177
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +598 -9539
- 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 +598 -9539
- 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 +5 -11
- 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,22 +0,0 @@
|
|
|
1
|
-
# RefreshTokenResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**token** | **string** | | [optional] [default to undefined]
|
|
9
|
-
**refreshToken** | **string** | | [optional] [default to undefined]
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import { RefreshTokenResponse } from '@tennac-booking/sdk';
|
|
15
|
-
|
|
16
|
-
const instance: RefreshTokenResponse = {
|
|
17
|
-
token,
|
|
18
|
-
refreshToken,
|
|
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
|
-
# 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,36 +0,0 @@
|
|
|
1
|
-
# RegisterRequestBody
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**username** | **string** | | [optional] [default to undefined]
|
|
9
|
-
**firstName** | **string** | | [default to undefined]
|
|
10
|
-
**lastName** | **string** | | [default to undefined]
|
|
11
|
-
**email** | **string** | | [default to undefined]
|
|
12
|
-
**password** | **string** | | [default to undefined]
|
|
13
|
-
**level** | **string** | | [optional] [default to undefined]
|
|
14
|
-
**stripeCustomerId** | **string** | | [optional] [default to undefined]
|
|
15
|
-
**phone** | **string** | | [optional] [default to undefined]
|
|
16
|
-
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
17
|
-
|
|
18
|
-
## Example
|
|
19
|
-
|
|
20
|
-
```typescript
|
|
21
|
-
import { RegisterRequestBody } from '@tennac-booking/sdk';
|
|
22
|
-
|
|
23
|
-
const instance: RegisterRequestBody = {
|
|
24
|
-
username,
|
|
25
|
-
firstName,
|
|
26
|
-
lastName,
|
|
27
|
-
email,
|
|
28
|
-
password,
|
|
29
|
-
level,
|
|
30
|
-
stripeCustomerId,
|
|
31
|
-
phone,
|
|
32
|
-
profilePicture,
|
|
33
|
-
};
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
[[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
|
-
# 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)
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# SetupPaymentMethodRequestBody
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**clubId** | **string** | ID du club | [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)
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# SetupPaymentMethodResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**setupIntentId** | **string** | ID du Setup Intent Stripe | [optional] [default to undefined]
|
|
9
|
-
**clientSecret** | **string** | Client secret pour la configuration côté client | [optional] [default to undefined]
|
|
10
|
-
**message** | **string** | Message de confirmation | [optional] [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/SlotsResponse.md
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
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)
|
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
# StaffClubAnalyticsApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**getClubPlayers**](#getclubplayers) | **GET** /api/analytics/players | Récupère la liste des joueurs du club (données staff uniquement)|
|
|
8
|
-
|[**getGenderPercentage**](#getgenderpercentage) | **GET** /api/analytics/gender | Récupère le pourcentage de joueurs par genre pour le club courant|
|
|
9
|
-
|[**getLastSixMonthsTurnover**](#getlastsixmonthsturnover) | **GET** /api/analytics/lastSixMonthsTurnover | Get monthly turnover for the last six months (club courant)|
|
|
10
|
-
|[**getNumberOfClubUsers**](#getnumberofclubusers) | **GET** /api/analytics/user-count | Get number of users subscribed to the club|
|
|
11
|
-
|
|
12
|
-
# **getClubPlayers**
|
|
13
|
-
> Array<UserStaffResponse> getClubPlayers()
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
### Example
|
|
17
|
-
|
|
18
|
-
```typescript
|
|
19
|
-
import {
|
|
20
|
-
StaffClubAnalyticsApi,
|
|
21
|
-
Configuration
|
|
22
|
-
} from '@tennac-booking/sdk';
|
|
23
|
-
|
|
24
|
-
const configuration = new Configuration();
|
|
25
|
-
const apiInstance = new StaffClubAnalyticsApi(configuration);
|
|
26
|
-
|
|
27
|
-
const { status, data } = await apiInstance.getClubPlayers();
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
### Parameters
|
|
31
|
-
This endpoint does not have any parameters.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
### Return type
|
|
35
|
-
|
|
36
|
-
**Array<UserStaffResponse>**
|
|
37
|
-
|
|
38
|
-
### Authorization
|
|
39
|
-
|
|
40
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
41
|
-
|
|
42
|
-
### HTTP request headers
|
|
43
|
-
|
|
44
|
-
- **Content-Type**: Not defined
|
|
45
|
-
- **Accept**: application/json
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
### HTTP response details
|
|
49
|
-
| Status code | Description | Response headers |
|
|
50
|
-
|-------------|-------------|------------------|
|
|
51
|
-
|**200** | Liste des joueurs du club | - |
|
|
52
|
-
|**500** | Erreur serveur interne | - |
|
|
53
|
-
|
|
54
|
-
[[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)
|
|
55
|
-
|
|
56
|
-
# **getGenderPercentage**
|
|
57
|
-
> GenderPercentage getGenderPercentage()
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
### Example
|
|
61
|
-
|
|
62
|
-
```typescript
|
|
63
|
-
import {
|
|
64
|
-
StaffClubAnalyticsApi,
|
|
65
|
-
Configuration
|
|
66
|
-
} from '@tennac-booking/sdk';
|
|
67
|
-
|
|
68
|
-
const configuration = new Configuration();
|
|
69
|
-
const apiInstance = new StaffClubAnalyticsApi(configuration);
|
|
70
|
-
|
|
71
|
-
const { status, data } = await apiInstance.getGenderPercentage();
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
### Parameters
|
|
75
|
-
This endpoint does not have any parameters.
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
### Return type
|
|
79
|
-
|
|
80
|
-
**GenderPercentage**
|
|
81
|
-
|
|
82
|
-
### Authorization
|
|
83
|
-
|
|
84
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
85
|
-
|
|
86
|
-
### HTTP request headers
|
|
87
|
-
|
|
88
|
-
- **Content-Type**: Not defined
|
|
89
|
-
- **Accept**: application/json
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
### HTTP response details
|
|
93
|
-
| Status code | Description | Response headers |
|
|
94
|
-
|-------------|-------------|------------------|
|
|
95
|
-
|**200** | Pourcentage de joueurs par genre | - |
|
|
96
|
-
|**401** | Non autorisé | - |
|
|
97
|
-
|**403** | Accès interdit | - |
|
|
98
|
-
|**500** | Erreur serveur interne | - |
|
|
99
|
-
|
|
100
|
-
[[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)
|
|
101
|
-
|
|
102
|
-
# **getLastSixMonthsTurnover**
|
|
103
|
-
> Array<GetLastSixMonthsTurnover200ResponseInner> getLastSixMonthsTurnover()
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
### Example
|
|
107
|
-
|
|
108
|
-
```typescript
|
|
109
|
-
import {
|
|
110
|
-
StaffClubAnalyticsApi,
|
|
111
|
-
Configuration
|
|
112
|
-
} from '@tennac-booking/sdk';
|
|
113
|
-
|
|
114
|
-
const configuration = new Configuration();
|
|
115
|
-
const apiInstance = new StaffClubAnalyticsApi(configuration);
|
|
116
|
-
|
|
117
|
-
const { status, data } = await apiInstance.getLastSixMonthsTurnover();
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
### Parameters
|
|
121
|
-
This endpoint does not have any parameters.
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
### Return type
|
|
125
|
-
|
|
126
|
-
**Array<GetLastSixMonthsTurnover200ResponseInner>**
|
|
127
|
-
|
|
128
|
-
### Authorization
|
|
129
|
-
|
|
130
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
131
|
-
|
|
132
|
-
### HTTP request headers
|
|
133
|
-
|
|
134
|
-
- **Content-Type**: Not defined
|
|
135
|
-
- **Accept**: application/json
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
### HTTP response details
|
|
139
|
-
| Status code | Description | Response headers |
|
|
140
|
-
|-------------|-------------|------------------|
|
|
141
|
-
|**200** | Turnover data for the last 6 months | - |
|
|
142
|
-
|**500** | Erreur serveur interne | - |
|
|
143
|
-
|
|
144
|
-
[[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)
|
|
145
|
-
|
|
146
|
-
# **getNumberOfClubUsers**
|
|
147
|
-
> GetNumberOfClubUsers200Response getNumberOfClubUsers()
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
### Example
|
|
151
|
-
|
|
152
|
-
```typescript
|
|
153
|
-
import {
|
|
154
|
-
StaffClubAnalyticsApi,
|
|
155
|
-
Configuration
|
|
156
|
-
} from '@tennac-booking/sdk';
|
|
157
|
-
|
|
158
|
-
const configuration = new Configuration();
|
|
159
|
-
const apiInstance = new StaffClubAnalyticsApi(configuration);
|
|
160
|
-
|
|
161
|
-
let id: string; //ID du club (optionnel, si absent, pris depuis le token) (optional) (default to undefined)
|
|
162
|
-
|
|
163
|
-
const { status, data } = await apiInstance.getNumberOfClubUsers(
|
|
164
|
-
id
|
|
165
|
-
);
|
|
166
|
-
```
|
|
167
|
-
|
|
168
|
-
### Parameters
|
|
169
|
-
|
|
170
|
-
|Name | Type | Description | Notes|
|
|
171
|
-
|------------- | ------------- | ------------- | -------------|
|
|
172
|
-
| **id** | [**string**] | ID du club (optionnel, si absent, pris depuis le token) | (optional) defaults to undefined|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
### Return type
|
|
176
|
-
|
|
177
|
-
**GetNumberOfClubUsers200Response**
|
|
178
|
-
|
|
179
|
-
### Authorization
|
|
180
|
-
|
|
181
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
182
|
-
|
|
183
|
-
### HTTP request headers
|
|
184
|
-
|
|
185
|
-
- **Content-Type**: Not defined
|
|
186
|
-
- **Accept**: application/json
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
### HTTP response details
|
|
190
|
-
| Status code | Description | Response headers |
|
|
191
|
-
|-------------|-------------|------------------|
|
|
192
|
-
|**200** | Number of subscribed users | - |
|
|
193
|
-
|**500** | Erreur serveur interne | - |
|
|
194
|
-
|
|
195
|
-
[[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)
|
|
196
|
-
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
# StaffClubBookingsApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**getTenNextBookings**](#gettennextbookings) | **GET** /api/analytics/next-bookings | Get the ten next bookings for the current club|
|
|
8
|
-
|
|
9
|
-
# **getTenNextBookings**
|
|
10
|
-
> Array<BookingPopulated> getTenNextBookings()
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
### Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import {
|
|
17
|
-
StaffClubBookingsApi,
|
|
18
|
-
Configuration
|
|
19
|
-
} from '@tennac-booking/sdk';
|
|
20
|
-
|
|
21
|
-
const configuration = new Configuration();
|
|
22
|
-
const apiInstance = new StaffClubBookingsApi(configuration);
|
|
23
|
-
|
|
24
|
-
const { status, data } = await apiInstance.getTenNextBookings();
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
### Parameters
|
|
28
|
-
This endpoint does not have any parameters.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
### Return type
|
|
32
|
-
|
|
33
|
-
**Array<BookingPopulated>**
|
|
34
|
-
|
|
35
|
-
### Authorization
|
|
36
|
-
|
|
37
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
38
|
-
|
|
39
|
-
### HTTP request headers
|
|
40
|
-
|
|
41
|
-
- **Content-Type**: Not defined
|
|
42
|
-
- **Accept**: application/json
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
### HTTP response details
|
|
46
|
-
| Status code | Description | Response headers |
|
|
47
|
-
|-------------|-------------|------------------|
|
|
48
|
-
|**200** | List of next bookings | - |
|
|
49
|
-
|**500** | Erreur serveur interne | - |
|
|
50
|
-
|
|
51
|
-
[[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)
|
|
52
|
-
|
package/docs/StaffClubsApi.md
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
# StaffClubsApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**getClubInfos**](#getclubinfos) | **GET** /api/clubs/infos | Get current club information|
|
|
8
|
-
|[**getClubSettings**](#getclubsettings) | **GET** /api/club-settings | Récupère les paramètres d’un club|
|
|
9
|
-
|[**getSports**](#getsports) | **GET** /api/sports | Récupère la liste des sports du club courant|
|
|
10
|
-
|
|
11
|
-
# **getClubInfos**
|
|
12
|
-
> GetClubInfos200Response getClubInfos()
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
### Example
|
|
16
|
-
|
|
17
|
-
```typescript
|
|
18
|
-
import {
|
|
19
|
-
StaffClubsApi,
|
|
20
|
-
Configuration
|
|
21
|
-
} from '@tennac-booking/sdk';
|
|
22
|
-
|
|
23
|
-
const configuration = new Configuration();
|
|
24
|
-
const apiInstance = new StaffClubsApi(configuration);
|
|
25
|
-
|
|
26
|
-
const { status, data } = await apiInstance.getClubInfos();
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
### Parameters
|
|
30
|
-
This endpoint does not have any parameters.
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
### Return type
|
|
34
|
-
|
|
35
|
-
**GetClubInfos200Response**
|
|
36
|
-
|
|
37
|
-
### Authorization
|
|
38
|
-
|
|
39
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
40
|
-
|
|
41
|
-
### HTTP request headers
|
|
42
|
-
|
|
43
|
-
- **Content-Type**: Not defined
|
|
44
|
-
- **Accept**: application/json
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
### HTTP response details
|
|
48
|
-
| Status code | Description | Response headers |
|
|
49
|
-
|-------------|-------------|------------------|
|
|
50
|
-
|**200** | Club information | - |
|
|
51
|
-
|**500** | Erreur serveur interne | - |
|
|
52
|
-
|
|
53
|
-
[[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)
|
|
54
|
-
|
|
55
|
-
# **getClubSettings**
|
|
56
|
-
> ClubSettings getClubSettings()
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
### Example
|
|
60
|
-
|
|
61
|
-
```typescript
|
|
62
|
-
import {
|
|
63
|
-
StaffClubsApi,
|
|
64
|
-
Configuration
|
|
65
|
-
} from '@tennac-booking/sdk';
|
|
66
|
-
|
|
67
|
-
const configuration = new Configuration();
|
|
68
|
-
const apiInstance = new StaffClubsApi(configuration);
|
|
69
|
-
|
|
70
|
-
const { status, data } = await apiInstance.getClubSettings();
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
### Parameters
|
|
74
|
-
This endpoint does not have any parameters.
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
### Return type
|
|
78
|
-
|
|
79
|
-
**ClubSettings**
|
|
80
|
-
|
|
81
|
-
### Authorization
|
|
82
|
-
|
|
83
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
84
|
-
|
|
85
|
-
### HTTP request headers
|
|
86
|
-
|
|
87
|
-
- **Content-Type**: Not defined
|
|
88
|
-
- **Accept**: application/json
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
### HTTP response details
|
|
92
|
-
| Status code | Description | Response headers |
|
|
93
|
-
|-------------|-------------|------------------|
|
|
94
|
-
|**200** | Paramètres du club | - |
|
|
95
|
-
|**401** | Non autorisé | - |
|
|
96
|
-
|**403** | Accès interdit | - |
|
|
97
|
-
|**404** | Paramètres non trouvés | - |
|
|
98
|
-
|**500** | Erreur serveur interne | - |
|
|
99
|
-
|
|
100
|
-
[[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)
|
|
101
|
-
|
|
102
|
-
# **getSports**
|
|
103
|
-
> Array<SportResponse> getSports()
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
### Example
|
|
107
|
-
|
|
108
|
-
```typescript
|
|
109
|
-
import {
|
|
110
|
-
StaffClubsApi,
|
|
111
|
-
Configuration
|
|
112
|
-
} from '@tennac-booking/sdk';
|
|
113
|
-
|
|
114
|
-
const configuration = new Configuration();
|
|
115
|
-
const apiInstance = new StaffClubsApi(configuration);
|
|
116
|
-
|
|
117
|
-
const { status, data } = await apiInstance.getSports();
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
### Parameters
|
|
121
|
-
This endpoint does not have any parameters.
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
### Return type
|
|
125
|
-
|
|
126
|
-
**Array<SportResponse>**
|
|
127
|
-
|
|
128
|
-
### Authorization
|
|
129
|
-
|
|
130
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
131
|
-
|
|
132
|
-
### HTTP request headers
|
|
133
|
-
|
|
134
|
-
- **Content-Type**: Not defined
|
|
135
|
-
- **Accept**: application/json
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
### HTTP response details
|
|
139
|
-
| Status code | Description | Response headers |
|
|
140
|
-
|-------------|-------------|------------------|
|
|
141
|
-
|**200** | Liste des sports | - |
|
|
142
|
-
|**401** | Non autorisé | - |
|
|
143
|
-
|**403** | Accès interdit | - |
|
|
144
|
-
|**500** | Erreur serveur interne | - |
|
|
145
|
-
|
|
146
|
-
[[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)
|
|
147
|
-
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# StaffEventResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**events** | [**Array<Event>**](Event.md) | | [optional] [default to undefined]
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```typescript
|
|
13
|
-
import { StaffEventResponse } from '@tennac-booking/sdk';
|
|
14
|
-
|
|
15
|
-
const instance: StaffEventResponse = {
|
|
16
|
-
events,
|
|
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)
|
package/docs/StaffEventsApi.md
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
# StaffEventsApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**getEventsByClub**](#geteventsbyclub) | **GET** /api/events/staff/getEvents | Get all events for current club (including unpublished)|
|
|
8
|
-
|
|
9
|
-
# **getEventsByClub**
|
|
10
|
-
> StaffEventResponse getEventsByClub()
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
### Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import {
|
|
17
|
-
StaffEventsApi,
|
|
18
|
-
Configuration
|
|
19
|
-
} from '@tennac-booking/sdk';
|
|
20
|
-
|
|
21
|
-
const configuration = new Configuration();
|
|
22
|
-
const apiInstance = new StaffEventsApi(configuration);
|
|
23
|
-
|
|
24
|
-
const { status, data } = await apiInstance.getEventsByClub();
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
### Parameters
|
|
28
|
-
This endpoint does not have any parameters.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
### Return type
|
|
32
|
-
|
|
33
|
-
**StaffEventResponse**
|
|
34
|
-
|
|
35
|
-
### Authorization
|
|
36
|
-
|
|
37
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
38
|
-
|
|
39
|
-
### HTTP request headers
|
|
40
|
-
|
|
41
|
-
- **Content-Type**: Not defined
|
|
42
|
-
- **Accept**: application/json
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
### HTTP response details
|
|
46
|
-
| Status code | Description | Response headers |
|
|
47
|
-
|-------------|-------------|------------------|
|
|
48
|
-
|**200** | List of all events | - |
|
|
49
|
-
|**400** | Requête invalide | - |
|
|
50
|
-
|**401** | Non autorisé | - |
|
|
51
|
-
|**500** | Erreur serveur interne | - |
|
|
52
|
-
|
|
53
|
-
[[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)
|
|
54
|
-
|
package/docs/StaffProfileApi.md
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
# StaffProfileApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**getUserRolesInClubs**](#getuserrolesinclubs) | **GET** /api/users/me/roles | Récupère les rôles de l\'utilisateur dans les clubs|
|
|
8
|
-
|
|
9
|
-
# **getUserRolesInClubs**
|
|
10
|
-
> GetUserRolesResponse getUserRolesInClubs()
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
### Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import {
|
|
17
|
-
StaffProfileApi,
|
|
18
|
-
Configuration
|
|
19
|
-
} from '@tennac-booking/sdk';
|
|
20
|
-
|
|
21
|
-
const configuration = new Configuration();
|
|
22
|
-
const apiInstance = new StaffProfileApi(configuration);
|
|
23
|
-
|
|
24
|
-
const { status, data } = await apiInstance.getUserRolesInClubs();
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
### Parameters
|
|
28
|
-
This endpoint does not have any parameters.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
### Return type
|
|
32
|
-
|
|
33
|
-
**GetUserRolesResponse**
|
|
34
|
-
|
|
35
|
-
### Authorization
|
|
36
|
-
|
|
37
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
38
|
-
|
|
39
|
-
### HTTP request headers
|
|
40
|
-
|
|
41
|
-
- **Content-Type**: Not defined
|
|
42
|
-
- **Accept**: application/json
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
### HTTP response details
|
|
46
|
-
| Status code | Description | Response headers |
|
|
47
|
-
|-------------|-------------|------------------|
|
|
48
|
-
|**200** | Liste des rôles dans les clubs | - |
|
|
49
|
-
|**400** | Requête invalide | - |
|
|
50
|
-
|**401** | Non autorisé | - |
|
|
51
|
-
|**500** | Erreur serveur interne | - |
|
|
52
|
-
|
|
53
|
-
[[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)
|
|
54
|
-
|