@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,36 +0,0 @@
|
|
|
1
|
-
# UserStaffResponse
|
|
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
|
-
**gender** | **string** | | [optional] [default to undefined]
|
|
12
|
-
**email** | **string** | | [optional] [default to undefined]
|
|
13
|
-
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
14
|
-
**isAccountVerified** | **boolean** | | [optional] [default to undefined]
|
|
15
|
-
**isProfileVisible** | **boolean** | | [optional] [default to undefined]
|
|
16
|
-
**isSubscribedToClub** | **boolean** | | [optional] [default to undefined]
|
|
17
|
-
|
|
18
|
-
## Example
|
|
19
|
-
|
|
20
|
-
```typescript
|
|
21
|
-
import { UserStaffResponse } from '@tennac-booking/sdk';
|
|
22
|
-
|
|
23
|
-
const instance: UserStaffResponse = {
|
|
24
|
-
id,
|
|
25
|
-
firstName,
|
|
26
|
-
lastName,
|
|
27
|
-
gender,
|
|
28
|
-
email,
|
|
29
|
-
profilePicture,
|
|
30
|
-
isAccountVerified,
|
|
31
|
-
isProfileVisible,
|
|
32
|
-
isSubscribedToClub,
|
|
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,222 +0,0 @@
|
|
|
1
|
-
# UserSubscriptionsApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**cancelSubscription**](#cancelsubscription) | **DELETE** /api/users/me/subscriptions/{clubId}/{subscriptionId} | Annule un abonnement utilisateur|
|
|
8
|
-
|[**getUserSubscriptions**](#getusersubscriptions) | **GET** /api/users/me/subscriptions | Récupère les abonnements de l\'utilisateur connecté|
|
|
9
|
-
|[**initiateSubscriptionSession**](#initiatesubscriptionsession) | **POST** /api/users/me/subscription-session | Initie une session d\'abonnement Stripe|
|
|
10
|
-
|[**resumeSubscription**](#resumesubscription) | **POST** /api/users/me/subscriptions/{clubId}/{subscriptionId}/resume | Réactive un abonnement utilisateur|
|
|
11
|
-
|
|
12
|
-
# **cancelSubscription**
|
|
13
|
-
> SubscriptionResponse cancelSubscription()
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
### Example
|
|
17
|
-
|
|
18
|
-
```typescript
|
|
19
|
-
import {
|
|
20
|
-
UserSubscriptionsApi,
|
|
21
|
-
Configuration
|
|
22
|
-
} from '@tennac-booking/sdk';
|
|
23
|
-
|
|
24
|
-
const configuration = new Configuration();
|
|
25
|
-
const apiInstance = new UserSubscriptionsApi(configuration);
|
|
26
|
-
|
|
27
|
-
let clubId: string; //ID du club (default to undefined)
|
|
28
|
-
let subscriptionId: string; //ID de l\'abonnement à annuler (default to undefined)
|
|
29
|
-
|
|
30
|
-
const { status, data } = await apiInstance.cancelSubscription(
|
|
31
|
-
clubId,
|
|
32
|
-
subscriptionId
|
|
33
|
-
);
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
### Parameters
|
|
37
|
-
|
|
38
|
-
|Name | Type | Description | Notes|
|
|
39
|
-
|------------- | ------------- | ------------- | -------------|
|
|
40
|
-
| **clubId** | [**string**] | ID du club | defaults to undefined|
|
|
41
|
-
| **subscriptionId** | [**string**] | ID de l\'abonnement à annuler | defaults to undefined|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
### Return type
|
|
45
|
-
|
|
46
|
-
**SubscriptionResponse**
|
|
47
|
-
|
|
48
|
-
### Authorization
|
|
49
|
-
|
|
50
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
51
|
-
|
|
52
|
-
### HTTP request headers
|
|
53
|
-
|
|
54
|
-
- **Content-Type**: Not defined
|
|
55
|
-
- **Accept**: application/json
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
### HTTP response details
|
|
59
|
-
| Status code | Description | Response headers |
|
|
60
|
-
|-------------|-------------|------------------|
|
|
61
|
-
|**200** | Abonnement annulé | - |
|
|
62
|
-
|**400** | Requête invalide | - |
|
|
63
|
-
|**401** | Non autorisé | - |
|
|
64
|
-
|**500** | Erreur serveur interne | - |
|
|
65
|
-
|
|
66
|
-
[[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)
|
|
67
|
-
|
|
68
|
-
# **getUserSubscriptions**
|
|
69
|
-
> GetUserSubscriptionsResponse getUserSubscriptions()
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
### Example
|
|
73
|
-
|
|
74
|
-
```typescript
|
|
75
|
-
import {
|
|
76
|
-
UserSubscriptionsApi,
|
|
77
|
-
Configuration
|
|
78
|
-
} from '@tennac-booking/sdk';
|
|
79
|
-
|
|
80
|
-
const configuration = new Configuration();
|
|
81
|
-
const apiInstance = new UserSubscriptionsApi(configuration);
|
|
82
|
-
|
|
83
|
-
const { status, data } = await apiInstance.getUserSubscriptions();
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
### Parameters
|
|
87
|
-
This endpoint does not have any parameters.
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
### Return type
|
|
91
|
-
|
|
92
|
-
**GetUserSubscriptionsResponse**
|
|
93
|
-
|
|
94
|
-
### Authorization
|
|
95
|
-
|
|
96
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
97
|
-
|
|
98
|
-
### HTTP request headers
|
|
99
|
-
|
|
100
|
-
- **Content-Type**: Not defined
|
|
101
|
-
- **Accept**: application/json
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
### HTTP response details
|
|
105
|
-
| Status code | Description | Response headers |
|
|
106
|
-
|-------------|-------------|------------------|
|
|
107
|
-
|**200** | Liste des abonnements | - |
|
|
108
|
-
|**401** | Non autorisé | - |
|
|
109
|
-
|**500** | Erreur serveur interne | - |
|
|
110
|
-
|
|
111
|
-
[[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)
|
|
112
|
-
|
|
113
|
-
# **initiateSubscriptionSession**
|
|
114
|
-
> InitiateSubscriptionSessionResponse initiateSubscriptionSession(initiateSubscriptionSessionRequestBody)
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
### Example
|
|
118
|
-
|
|
119
|
-
```typescript
|
|
120
|
-
import {
|
|
121
|
-
UserSubscriptionsApi,
|
|
122
|
-
Configuration,
|
|
123
|
-
InitiateSubscriptionSessionRequestBody
|
|
124
|
-
} from '@tennac-booking/sdk';
|
|
125
|
-
|
|
126
|
-
const configuration = new Configuration();
|
|
127
|
-
const apiInstance = new UserSubscriptionsApi(configuration);
|
|
128
|
-
|
|
129
|
-
let initiateSubscriptionSessionRequestBody: InitiateSubscriptionSessionRequestBody; //
|
|
130
|
-
|
|
131
|
-
const { status, data } = await apiInstance.initiateSubscriptionSession(
|
|
132
|
-
initiateSubscriptionSessionRequestBody
|
|
133
|
-
);
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
### Parameters
|
|
137
|
-
|
|
138
|
-
|Name | Type | Description | Notes|
|
|
139
|
-
|------------- | ------------- | ------------- | -------------|
|
|
140
|
-
| **initiateSubscriptionSessionRequestBody** | **InitiateSubscriptionSessionRequestBody**| | |
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
### Return type
|
|
144
|
-
|
|
145
|
-
**InitiateSubscriptionSessionResponse**
|
|
146
|
-
|
|
147
|
-
### Authorization
|
|
148
|
-
|
|
149
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
150
|
-
|
|
151
|
-
### HTTP request headers
|
|
152
|
-
|
|
153
|
-
- **Content-Type**: application/json
|
|
154
|
-
- **Accept**: application/json
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
### HTTP response details
|
|
158
|
-
| Status code | Description | Response headers |
|
|
159
|
-
|-------------|-------------|------------------|
|
|
160
|
-
|**200** | Session d\'abonnement créée | - |
|
|
161
|
-
|**400** | Requête invalide | - |
|
|
162
|
-
|**401** | Non autorisé | - |
|
|
163
|
-
|**500** | Erreur serveur interne | - |
|
|
164
|
-
|
|
165
|
-
[[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)
|
|
166
|
-
|
|
167
|
-
# **resumeSubscription**
|
|
168
|
-
> SubscriptionResponse resumeSubscription()
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
### Example
|
|
172
|
-
|
|
173
|
-
```typescript
|
|
174
|
-
import {
|
|
175
|
-
UserSubscriptionsApi,
|
|
176
|
-
Configuration
|
|
177
|
-
} from '@tennac-booking/sdk';
|
|
178
|
-
|
|
179
|
-
const configuration = new Configuration();
|
|
180
|
-
const apiInstance = new UserSubscriptionsApi(configuration);
|
|
181
|
-
|
|
182
|
-
let clubId: string; //ID du club (default to undefined)
|
|
183
|
-
let subscriptionId: string; //ID de l\'abonnement à réactiver (default to undefined)
|
|
184
|
-
|
|
185
|
-
const { status, data } = await apiInstance.resumeSubscription(
|
|
186
|
-
clubId,
|
|
187
|
-
subscriptionId
|
|
188
|
-
);
|
|
189
|
-
```
|
|
190
|
-
|
|
191
|
-
### Parameters
|
|
192
|
-
|
|
193
|
-
|Name | Type | Description | Notes|
|
|
194
|
-
|------------- | ------------- | ------------- | -------------|
|
|
195
|
-
| **clubId** | [**string**] | ID du club | defaults to undefined|
|
|
196
|
-
| **subscriptionId** | [**string**] | ID de l\'abonnement à réactiver | defaults to undefined|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
### Return type
|
|
200
|
-
|
|
201
|
-
**SubscriptionResponse**
|
|
202
|
-
|
|
203
|
-
### Authorization
|
|
204
|
-
|
|
205
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
206
|
-
|
|
207
|
-
### HTTP request headers
|
|
208
|
-
|
|
209
|
-
- **Content-Type**: Not defined
|
|
210
|
-
- **Accept**: application/json
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
### HTTP response details
|
|
214
|
-
| Status code | Description | Response headers |
|
|
215
|
-
|-------------|-------------|------------------|
|
|
216
|
-
|**200** | Abonnement réactivé | - |
|
|
217
|
-
|**400** | Requête invalide | - |
|
|
218
|
-
|**401** | Non autorisé | - |
|
|
219
|
-
|**500** | Erreur serveur interne | - |
|
|
220
|
-
|
|
221
|
-
[[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)
|
|
222
|
-
|
package/docs/UsersApi.md
DELETED
|
@@ -1,243 +0,0 @@
|
|
|
1
|
-
# UsersApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**apiUsersMeNearestClubsGet**](#apiusersmenearestclubsget) | **GET** /api/users/me/nearest-clubs/ | Récupère les clubs proches de l’utilisateur connecté|
|
|
8
|
-
|[**apiUsersMeNearestPlayersGet**](#apiusersmenearestplayersget) | **GET** /api/users/me/nearest-players/ | Récupère les utilisateurs proches de l’utilisateur connecté|
|
|
9
|
-
|[**apiUsersNearestClubsCoordinatesGet**](#apiusersnearestclubscoordinatesget) | **GET** /api/users/nearest-clubs/coordinates | Récupère les clubs proches d’une position donnée|
|
|
10
|
-
|[**apiUsersNearestPlayersCoordinatesGet**](#apiusersnearestplayerscoordinatesget) | **GET** /api/users/nearest-players/coordinates | Récupère les utilisateurs proches d’une position donnée|
|
|
11
|
-
|
|
12
|
-
# **apiUsersMeNearestClubsGet**
|
|
13
|
-
> Array<Club> apiUsersMeNearestClubsGet()
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
### Example
|
|
17
|
-
|
|
18
|
-
```typescript
|
|
19
|
-
import {
|
|
20
|
-
UsersApi,
|
|
21
|
-
Configuration
|
|
22
|
-
} from '@tennac-booking/sdk';
|
|
23
|
-
|
|
24
|
-
const configuration = new Configuration();
|
|
25
|
-
const apiInstance = new UsersApi(configuration);
|
|
26
|
-
|
|
27
|
-
let radiusInKm: number; //Rayon de recherche en kilomètres (optional) (default to undefined)
|
|
28
|
-
let limit: number; //Nombre maximum de résultats (optional) (default to undefined)
|
|
29
|
-
|
|
30
|
-
const { status, data } = await apiInstance.apiUsersMeNearestClubsGet(
|
|
31
|
-
radiusInKm,
|
|
32
|
-
limit
|
|
33
|
-
);
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
### Parameters
|
|
37
|
-
|
|
38
|
-
|Name | Type | Description | Notes|
|
|
39
|
-
|------------- | ------------- | ------------- | -------------|
|
|
40
|
-
| **radiusInKm** | [**number**] | Rayon de recherche en kilomètres | (optional) defaults to undefined|
|
|
41
|
-
| **limit** | [**number**] | Nombre maximum de résultats | (optional) defaults to undefined|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
### Return type
|
|
45
|
-
|
|
46
|
-
**Array<Club>**
|
|
47
|
-
|
|
48
|
-
### Authorization
|
|
49
|
-
|
|
50
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
51
|
-
|
|
52
|
-
### HTTP request headers
|
|
53
|
-
|
|
54
|
-
- **Content-Type**: Not defined
|
|
55
|
-
- **Accept**: application/json
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
### HTTP response details
|
|
59
|
-
| Status code | Description | Response headers |
|
|
60
|
-
|-------------|-------------|------------------|
|
|
61
|
-
|**200** | Liste des clubs à proximité | - |
|
|
62
|
-
|**401** | Non autorisé | - |
|
|
63
|
-
|**500** | Erreur serveur interne | - |
|
|
64
|
-
|
|
65
|
-
[[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)
|
|
66
|
-
|
|
67
|
-
# **apiUsersMeNearestPlayersGet**
|
|
68
|
-
> Array<UserResponse> apiUsersMeNearestPlayersGet()
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
### Example
|
|
72
|
-
|
|
73
|
-
```typescript
|
|
74
|
-
import {
|
|
75
|
-
UsersApi,
|
|
76
|
-
Configuration
|
|
77
|
-
} from '@tennac-booking/sdk';
|
|
78
|
-
|
|
79
|
-
const configuration = new Configuration();
|
|
80
|
-
const apiInstance = new UsersApi(configuration);
|
|
81
|
-
|
|
82
|
-
let radiusInKm: number; //Rayon de recherche en kilomètres (optional) (default to undefined)
|
|
83
|
-
let limit: number; //Nombre maximum de résultats (optional) (default to undefined)
|
|
84
|
-
|
|
85
|
-
const { status, data } = await apiInstance.apiUsersMeNearestPlayersGet(
|
|
86
|
-
radiusInKm,
|
|
87
|
-
limit
|
|
88
|
-
);
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
### Parameters
|
|
92
|
-
|
|
93
|
-
|Name | Type | Description | Notes|
|
|
94
|
-
|------------- | ------------- | ------------- | -------------|
|
|
95
|
-
| **radiusInKm** | [**number**] | Rayon de recherche en kilomètres | (optional) defaults to undefined|
|
|
96
|
-
| **limit** | [**number**] | Nombre maximum de résultats | (optional) defaults to undefined|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
### Return type
|
|
100
|
-
|
|
101
|
-
**Array<UserResponse>**
|
|
102
|
-
|
|
103
|
-
### Authorization
|
|
104
|
-
|
|
105
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
106
|
-
|
|
107
|
-
### HTTP request headers
|
|
108
|
-
|
|
109
|
-
- **Content-Type**: Not defined
|
|
110
|
-
- **Accept**: application/json
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
### HTTP response details
|
|
114
|
-
| Status code | Description | Response headers |
|
|
115
|
-
|-------------|-------------|------------------|
|
|
116
|
-
|**200** | Liste des utilisateurs à proximité | - |
|
|
117
|
-
|**401** | Non autorisé | - |
|
|
118
|
-
|**500** | Erreur serveur interne | - |
|
|
119
|
-
|
|
120
|
-
[[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)
|
|
121
|
-
|
|
122
|
-
# **apiUsersNearestClubsCoordinatesGet**
|
|
123
|
-
> Array<Club> apiUsersNearestClubsCoordinatesGet()
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
### Example
|
|
127
|
-
|
|
128
|
-
```typescript
|
|
129
|
-
import {
|
|
130
|
-
UsersApi,
|
|
131
|
-
Configuration
|
|
132
|
-
} from '@tennac-booking/sdk';
|
|
133
|
-
|
|
134
|
-
const configuration = new Configuration();
|
|
135
|
-
const apiInstance = new UsersApi(configuration);
|
|
136
|
-
|
|
137
|
-
let latitude: number; //Latitude de la position (default to undefined)
|
|
138
|
-
let longitude: number; //Longitude de la position (default to undefined)
|
|
139
|
-
let radiusInKm: number; //Rayon de recherche en kilomètres (optional) (default to undefined)
|
|
140
|
-
let limit: number; //Nombre maximum de résultats (optional) (default to undefined)
|
|
141
|
-
|
|
142
|
-
const { status, data } = await apiInstance.apiUsersNearestClubsCoordinatesGet(
|
|
143
|
-
latitude,
|
|
144
|
-
longitude,
|
|
145
|
-
radiusInKm,
|
|
146
|
-
limit
|
|
147
|
-
);
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
### Parameters
|
|
151
|
-
|
|
152
|
-
|Name | Type | Description | Notes|
|
|
153
|
-
|------------- | ------------- | ------------- | -------------|
|
|
154
|
-
| **latitude** | [**number**] | Latitude de la position | defaults to undefined|
|
|
155
|
-
| **longitude** | [**number**] | Longitude de la position | defaults to undefined|
|
|
156
|
-
| **radiusInKm** | [**number**] | Rayon de recherche en kilomètres | (optional) defaults to undefined|
|
|
157
|
-
| **limit** | [**number**] | Nombre maximum de résultats | (optional) defaults to undefined|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
### Return type
|
|
161
|
-
|
|
162
|
-
**Array<Club>**
|
|
163
|
-
|
|
164
|
-
### Authorization
|
|
165
|
-
|
|
166
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
167
|
-
|
|
168
|
-
### HTTP request headers
|
|
169
|
-
|
|
170
|
-
- **Content-Type**: Not defined
|
|
171
|
-
- **Accept**: application/json
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
### HTTP response details
|
|
175
|
-
| Status code | Description | Response headers |
|
|
176
|
-
|-------------|-------------|------------------|
|
|
177
|
-
|**200** | Liste des clubs à proximité | - |
|
|
178
|
-
|**400** | Requête invalide | - |
|
|
179
|
-
|**500** | Erreur serveur interne | - |
|
|
180
|
-
|
|
181
|
-
[[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)
|
|
182
|
-
|
|
183
|
-
# **apiUsersNearestPlayersCoordinatesGet**
|
|
184
|
-
> Array<UserResponse> apiUsersNearestPlayersCoordinatesGet()
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
### Example
|
|
188
|
-
|
|
189
|
-
```typescript
|
|
190
|
-
import {
|
|
191
|
-
UsersApi,
|
|
192
|
-
Configuration
|
|
193
|
-
} from '@tennac-booking/sdk';
|
|
194
|
-
|
|
195
|
-
const configuration = new Configuration();
|
|
196
|
-
const apiInstance = new UsersApi(configuration);
|
|
197
|
-
|
|
198
|
-
let latitude: number; //Latitude de la position (default to undefined)
|
|
199
|
-
let longitude: number; //Longitude de la position (default to undefined)
|
|
200
|
-
let radiusInKm: number; //Rayon de recherche en kilomètres (optional) (default to undefined)
|
|
201
|
-
let limit: number; //Nombre maximum de résultats (optional) (default to undefined)
|
|
202
|
-
|
|
203
|
-
const { status, data } = await apiInstance.apiUsersNearestPlayersCoordinatesGet(
|
|
204
|
-
latitude,
|
|
205
|
-
longitude,
|
|
206
|
-
radiusInKm,
|
|
207
|
-
limit
|
|
208
|
-
);
|
|
209
|
-
```
|
|
210
|
-
|
|
211
|
-
### Parameters
|
|
212
|
-
|
|
213
|
-
|Name | Type | Description | Notes|
|
|
214
|
-
|------------- | ------------- | ------------- | -------------|
|
|
215
|
-
| **latitude** | [**number**] | Latitude de la position | defaults to undefined|
|
|
216
|
-
| **longitude** | [**number**] | Longitude de la position | defaults to undefined|
|
|
217
|
-
| **radiusInKm** | [**number**] | Rayon de recherche en kilomètres | (optional) defaults to undefined|
|
|
218
|
-
| **limit** | [**number**] | Nombre maximum de résultats | (optional) defaults to undefined|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
### Return type
|
|
222
|
-
|
|
223
|
-
**Array<UserResponse>**
|
|
224
|
-
|
|
225
|
-
### Authorization
|
|
226
|
-
|
|
227
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
228
|
-
|
|
229
|
-
### HTTP request headers
|
|
230
|
-
|
|
231
|
-
- **Content-Type**: Not defined
|
|
232
|
-
- **Accept**: application/json
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
### HTTP response details
|
|
236
|
-
| Status code | Description | Response headers |
|
|
237
|
-
|-------------|-------------|------------------|
|
|
238
|
-
|**200** | Liste des utilisateurs à proximité | - |
|
|
239
|
-
|**400** | Requête invalide | - |
|
|
240
|
-
|**500** | Erreur serveur interne | - |
|
|
241
|
-
|
|
242
|
-
[[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)
|
|
243
|
-
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# YearlyTurnoverResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**year** | **number** | | [optional] [default to undefined]
|
|
9
|
-
**totalTurnover** | **number** | | [optional] [default to undefined]
|
|
10
|
-
**totalInvoices** | **number** | | [optional] [default to undefined]
|
|
11
|
-
**monthlyBreakdown** | [**Array<YearlyTurnoverResponseMonthlyBreakdownInner>**](YearlyTurnoverResponseMonthlyBreakdownInner.md) | | [optional] [default to undefined]
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import { YearlyTurnoverResponse } from '@tennac-booking/sdk';
|
|
17
|
-
|
|
18
|
-
const instance: YearlyTurnoverResponse = {
|
|
19
|
-
year,
|
|
20
|
-
totalTurnover,
|
|
21
|
-
totalInvoices,
|
|
22
|
-
monthlyBreakdown,
|
|
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)
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# YearlyTurnoverResponseMonthlyBreakdownInner
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**month** | **number** | | [optional] [default to undefined]
|
|
9
|
-
**monthlyTurnover** | **number** | | [optional] [default to undefined]
|
|
10
|
-
**invoiceCount** | **number** | | [optional] [default to undefined]
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import { YearlyTurnoverResponseMonthlyBreakdownInner } from '@tennac-booking/sdk';
|
|
16
|
-
|
|
17
|
-
const instance: YearlyTurnoverResponseMonthlyBreakdownInner = {
|
|
18
|
-
month,
|
|
19
|
-
monthlyTurnover,
|
|
20
|
-
invoiceCount,
|
|
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)
|