@tennac-booking/sdk 1.0.55 → 1.0.60
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 +182 -222
- package/README.md +158 -165
- package/api.ts +6921 -7583
- package/base.ts +2 -2
- package/common.ts +2 -2
- package/configuration.ts +2 -2
- package/dist/api.d.ts +4106 -5418
- package/dist/api.js +3585 -2957
- package/dist/base.d.ts +2 -2
- package/dist/base.js +2 -2
- package/dist/common.d.ts +2 -2
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +2 -2
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +4106 -5418
- package/dist/esm/api.js +3511 -2862
- package/dist/esm/base.d.ts +2 -2
- package/dist/esm/base.js +2 -2
- package/dist/esm/common.d.ts +2 -2
- package/dist/esm/common.js +2 -2
- package/dist/esm/configuration.d.ts +2 -2
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/docs/{ApiErrorResponse.md → AddClubMember201Response.md} +6 -6
- package/docs/AddClubMemberRequest.md +7 -3
- package/docs/BookingAnalyticsResponse.md +34 -0
- package/docs/BookingHistory.md +34 -0
- package/docs/BookingInfo.md +50 -0
- package/docs/BookingPaymentStatusResponse.md +3 -3
- package/docs/BookingPaymentStatusResponseBooking.md +8 -7
- package/docs/BookingPaymentStatusResponseSummary.md +10 -9
- package/docs/BookingPopulated.md +5 -5
- package/docs/BookingResponse.md +4 -4
- package/docs/{UpdateProfileVisibilityRequestBody.md → BookingResponseOnsitePaymentsInner.md} +7 -5
- package/docs/BookingStatus.md +9 -1
- package/docs/BookingsApi.md +10 -64
- package/docs/{ManagerBookingsApi.md → BookingsManagerApi.md} +14 -24
- package/docs/BookingsStaffApi.md +323 -0
- package/docs/{UserBookingsApi.md → BookingsUserApi.md} +17 -25
- package/docs/CancelBookingResponse.md +2 -2
- package/docs/CaptureResult.md +30 -0
- package/docs/CheckInPlayersRequest.md +20 -0
- package/docs/CheckInPlayersResponse.md +6 -6
- package/docs/CheckedInPlayer.md +34 -0
- package/docs/ClubAnalyticsApi.md +20 -160
- package/docs/ClubAnalyticsStaffApi.md +523 -0
- package/docs/ClubMemberResponse.md +24 -0
- package/docs/ClubMemberResponseUser.md +27 -0
- package/docs/ClubPlayerResponse.md +36 -0
- package/docs/ClubResponse.md +23 -14
- package/docs/ClubResponseCreatedAt.md +19 -0
- package/docs/{Location.md → ClubResponseLocation.md} +9 -12
- package/docs/{GetNumberOfClubUsers200Response.md → ClubResponseLocationCoordinates.md} +7 -5
- package/docs/ClubResponseUpdatedAt.md +19 -0
- package/docs/ClubRoleResponse.md +11 -9
- package/docs/ClubRolesManagerApi.md +177 -0
- package/docs/{StaffClubsApi.md → ClubRolesStaffApi.md} +41 -34
- package/docs/{ManagerClubCourtsApi.md → ClubSettingsManagerApi.md} +64 -63
- package/docs/ClubSettingsResponse.md +41 -0
- package/docs/{AddFavoriteClubRequestBody.md → ClubUserCountResponse.md} +5 -5
- package/docs/ClubsApi.md +515 -8
- package/docs/ClubsManagerApi.md +1005 -0
- package/docs/{ManagerClubsApi.md → ClubsStaffApi.md} +138 -62
- package/docs/CourtInfo.md +28 -0
- package/docs/CourtResponse.md +16 -16
- package/docs/CourtStatus.md +2 -5
- package/docs/CreateBookingRequest.md +1 -3
- package/docs/CreateClubRequest.md +22 -0
- package/docs/CreateClubRoleRequest.md +24 -0
- package/docs/CreateClubSettingsRequest.md +34 -0
- package/docs/{ActiveClubListResponse.md → CreateCourtForClub201Response.md} +5 -5
- package/docs/CreateCourtRequest.md +10 -12
- package/docs/CreateEventRequest.md +1 -3
- package/docs/CreateSportForClub201Response.md +20 -0
- package/docs/{Sport.md → CreateSportForClubRequest.md} +4 -6
- package/docs/CreateSportRequest.md +1 -7
- package/docs/CreateSubscriptionPlanRequest.md +6 -4
- package/docs/CreatorChargeResult.md +26 -0
- package/docs/DailyTurnoverResponse.md +3 -3
- package/docs/{ManagerSportsApi.md → DefaultApi.md} +35 -38
- package/docs/{DeleteEvent200Response.md → DeleteClubResponse.md} +4 -4
- package/docs/{CourtDeleteResponse.md → DeleteClubRoleResponse.md} +4 -4
- package/docs/DeleteClubSettingsResponse.md +20 -0
- package/docs/{DeleteClubRole200Response.md → DeleteCourtResponse.md} +4 -4
- package/docs/{DeleteSport200Response.md → DeleteEventResponse.md} +4 -4
- package/docs/DeleteSlotsByClubInRange200Response.md +1 -1
- package/docs/DeleteSportResponse.md +20 -0
- package/docs/EventResponse.md +40 -0
- package/docs/EventResponseCourtsInner.md +18 -0
- package/docs/EventsApi.md +21 -21
- package/docs/{StaffEventResponse.md → EventsListResponse.md} +4 -4
- package/docs/{ManagerEventsApi.md → EventsManagerApi.md} +38 -40
- package/docs/{StaffEventsApi.md → EventsStaffApi.md} +11 -10
- package/docs/{GenderPercentage.md → GenderPercentageResponse.md} +7 -7
- package/docs/GetActualities200Response.md +20 -0
- package/docs/GetAvailableSlotsBySports200Response.md +20 -0
- package/docs/{ClubMembersResponse.md → GetClubMembers200Response.md} +6 -6
- package/docs/GetClubRoles200Response.md +20 -0
- package/docs/GetClubUsersById200Response.md +1 -1
- package/docs/{CourtsResponse.md → GetCourtsByClub200Response.md} +4 -6
- package/docs/GetCourtsByClubAndSportById200Response.md +26 -0
- package/docs/GetInfillPercentagePerPeriod200Response.md +5 -5
- package/docs/{SlotsResponse.md → GetSlotsByClubById200Response.md} +6 -6
- package/docs/GetSportsByClubById200Response.md +20 -0
- package/docs/{Court.md → ICourtData.md} +18 -6
- package/docs/{DiagnosticsResponse.md → InvoiceInfo.md} +8 -8
- package/docs/{ClubListResponse.md → LastSixMonthsTurnoverItem.md} +7 -7
- package/docs/ManagerCancelBookingRequest.md +1 -1
- package/docs/ManagerCancelBookingResponse.md +2 -2
- package/docs/MonthlyBreakdown.md +24 -0
- package/docs/MonthlyTurnoverResponse.md +6 -5
- package/docs/NoShowFeeResponse.md +6 -6
- package/docs/PartialClubResponse.md +49 -0
- package/docs/PaymentByPlayerInfo.md +22 -0
- package/docs/PaymentMethod.md +2 -1
- package/docs/PlayerPaymentInfo.md +36 -0
- package/docs/PublishEventResponse.md +20 -0
- package/docs/SlotInfo.md +26 -0
- package/docs/SportAnalyticsResponse.md +24 -0
- package/docs/SportInfo.md +22 -0
- package/docs/SportResponse.md +8 -11
- package/docs/SportWithAnalytics.md +36 -0
- package/docs/SportsManagerApi.md +177 -0
- package/docs/{StaffClubBookingsApi.md → SportsStaffApi.md} +14 -11
- package/docs/SubscriptionPlanResponse.md +4 -14
- package/docs/SurfaceType.md +12 -0
- package/docs/UpdateActuality200Response.md +20 -0
- package/docs/UpdateClubRequest.md +11 -11
- package/docs/UpdateClubRequestLocation.md +29 -0
- package/docs/{BookingPopulatedSlotIdCourtIdSportId.md → UpdateClubRequestLocationCoordinates.md} +7 -7
- package/docs/UpdateClubRoleRequest.md +22 -0
- package/docs/UpdateClubSettingsRequest.md +14 -10
- package/docs/UpdateSportRequest.md +1 -5
- package/docs/UpdateSubscriptionPlanForClub200Response.md +20 -0
- package/docs/{BookingPopulatedUserId.md → UserInfo.md} +6 -6
- package/docs/UsersApi.md +32 -127
- package/docs/YearlyTurnoverResponse.md +4 -4
- package/index.ts +2 -2
- package/package.json +1 -1
- package/docs/ActiveClub.md +0 -30
- package/docs/AddClubMemberResponse.md +0 -22
- package/docs/AddPaymentMethodSetupRequestBody.md +0 -20
- package/docs/AddPaymentMethodSetupResponse.md +0 -24
- package/docs/BlockSlotResponse.md +0 -22
- package/docs/Booking.md +0 -32
- package/docs/BookingHistoryResponse.md +0 -22
- package/docs/BookingHistoryResponseHistoryInner.md +0 -32
- package/docs/BookingPaymentStatusResponsePaymentStatusInner.md +0 -36
- package/docs/BookingPopulatedPaymentByPlayersStatusInner.md +0 -22
- package/docs/BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner.md +0 -24
- package/docs/BookingPopulatedSlotId.md +0 -26
- package/docs/BookingPopulatedSlotIdCourtId.md +0 -28
- package/docs/BookingsStaffWeeklyWeekIdGet200Response.md +0 -20
- package/docs/CancelBookingResponseBooking.md +0 -30
- package/docs/CheckInPlayersResponseCheckedInPlayersInner.md +0 -34
- package/docs/Club.md +0 -40
- package/docs/ClubInfoResponse.md +0 -48
- package/docs/ClubMember.md +0 -24
- package/docs/ClubRole.md +0 -30
- package/docs/ClubRolesResponse.md +0 -22
- package/docs/ClubSettings.md +0 -40
- package/docs/ClubStaffResponse.md +0 -48
- package/docs/ConfirmPaymentMethodSetupRequestBody.md +0 -20
- package/docs/ConfirmPaymentMethodSetupResponse.md +0 -22
- package/docs/CourtWithNameResponse.md +0 -48
- package/docs/CourtsWithNameResponse.md +0 -22
- package/docs/CreateClubRoleRequestBody.md +0 -24
- package/docs/CreatePriceRequest.md +0 -26
- package/docs/DiagnosticsApi.md +0 -97
- package/docs/Event.md +0 -40
- package/docs/EventBooking.md +0 -32
- package/docs/EventRegistrationRequest.md +0 -22
- package/docs/FrequentlyPlayedWithItem.md +0 -28
- package/docs/FrequentlyVisitedClubItem.md +0 -24
- package/docs/GetActiveClubs200Response.md +0 -20
- package/docs/GetClubInfos200Response.md +0 -30
- package/docs/GetCourtsByClubAndSport200Response.md +0 -26
- package/docs/GetLastSixMonthsTurnover200ResponseInner.md +0 -22
- package/docs/GetPublishedEventsByClubId200Response.md +0 -20
- 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/ManagerCancelBookingResponseBooking.md +0 -30
- package/docs/ManagerClubRolesApi.md +0 -268
- package/docs/ManagerClubSlotsApi.md +0 -119
- package/docs/ManagerClubSubscriptionsApi.md +0 -387
- package/docs/ManagerEventResponse.md +0 -22
- package/docs/NoShowFeeResponseCaptureResultsInner.md +0 -30
- package/docs/NoShowFeeResponseCreatorChargeResult.md +0 -26
- package/docs/PaymentStatus.md +0 -30
- package/docs/PriceResponse.md +0 -32
- package/docs/PublicClubUser.md +0 -46
- package/docs/PublicClubUserFrequentlyPlayedWithInner.md +0 -28
- package/docs/PublicClubUserFrequentlyVisitedClubsInner.md +0 -24
- package/docs/PublicClubUserLevelBySportsInner.md +0 -22
- package/docs/RegisterForEvent201Response.md +0 -20
- package/docs/RestoreSubscriptionPlanForClub200Response.md +0 -20
- package/docs/SdkDiagnosticsResponse.md +0 -28
- package/docs/SdkDiagnosticsResponseOpenapi.md +0 -24
- package/docs/SdkDiagnosticsResponseSdk.md +0 -24
- package/docs/Slot.md +0 -24
- package/docs/SlotException.md +0 -26
- package/docs/SlotResponse.md +0 -34
- package/docs/StaffBookingsApi.md +0 -61
- package/docs/StaffClubAnalyticsApi.md +0 -254
- package/docs/StripeLink.md +0 -26
- package/docs/StripeStatus.md +0 -16
- package/docs/SubscriptionPlan.md +0 -36
- package/docs/SubscriptionResponse.md +0 -36
- package/docs/UpdateClubRoleRequestBody.md +0 -24
- package/docs/UpdateCourtRequest.md +0 -38
- package/docs/UpdateProfilePictureRequestBody.md +0 -20
- 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/UserBookingItem.md +0 -46
- package/docs/UserClubCourtsApi.md +0 -64
- package/docs/UserClubSlotsApi.md +0 -181
- package/docs/UserClubSportsApi.md +0 -60
- package/docs/UserClubsApi.md +0 -145
- package/docs/UserInfoStaff.md +0 -38
- package/docs/UserStaffResponse.md +0 -40
- package/docs/YearlyTurnoverResponseMonthlyBreakdownInner.md +0 -24
|
@@ -1,48 +1,42 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ClubsStaffApi
|
|
2
2
|
|
|
3
3
|
All URIs are relative to *http://localhost*
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
8
|
-
|[**
|
|
9
|
-
|[**getClubMembers**](#getclubmembers) | **GET** /api/clubs/members |
|
|
10
|
-
|[**getClubRoles**](#getclubroles) | **GET** /api/clubs/roles |
|
|
11
|
-
|[**
|
|
7
|
+
|[**getActualities**](#getactualities) | **GET** /api/clubs/staff/actualities | |
|
|
8
|
+
|[**getClubInfos**](#getclubinfos) | **GET** /api/clubs/infos | |
|
|
9
|
+
|[**getClubMembers**](#getclubmembers) | **GET** /api/clubs/members | |
|
|
10
|
+
|[**getClubRoles**](#getclubroles) | **GET** /api/clubs/roles | |
|
|
11
|
+
|[**getCourtsByClub**](#getcourtsbyclub) | **GET** /api/clubs/courts | |
|
|
12
|
+
|[**getInvoices**](#getinvoices) | **GET** /api/clubs/invoices | |
|
|
13
|
+
|[**getUserProfileStaff**](#getuserprofilestaff) | **GET** /api/clubs/staff/profile/{id} | |
|
|
12
14
|
|
|
13
|
-
# **
|
|
14
|
-
>
|
|
15
|
+
# **getActualities**
|
|
16
|
+
> GetActualities200Response getActualities()
|
|
15
17
|
|
|
16
18
|
|
|
17
19
|
### Example
|
|
18
20
|
|
|
19
21
|
```typescript
|
|
20
22
|
import {
|
|
21
|
-
|
|
22
|
-
Configuration
|
|
23
|
-
AddClubMemberRequest
|
|
23
|
+
ClubsStaffApi,
|
|
24
|
+
Configuration
|
|
24
25
|
} from '@tennac-booking/sdk';
|
|
25
26
|
|
|
26
27
|
const configuration = new Configuration();
|
|
27
|
-
const apiInstance = new
|
|
28
|
-
|
|
29
|
-
let addClubMemberRequest: AddClubMemberRequest; //
|
|
28
|
+
const apiInstance = new ClubsStaffApi(configuration);
|
|
30
29
|
|
|
31
|
-
const { status, data } = await apiInstance.
|
|
32
|
-
addClubMemberRequest
|
|
33
|
-
);
|
|
30
|
+
const { status, data } = await apiInstance.getActualities();
|
|
34
31
|
```
|
|
35
32
|
|
|
36
33
|
### Parameters
|
|
37
|
-
|
|
38
|
-
|Name | Type | Description | Notes|
|
|
39
|
-
|------------- | ------------- | ------------- | -------------|
|
|
40
|
-
| **addClubMemberRequest** | **AddClubMemberRequest**| | |
|
|
34
|
+
This endpoint does not have any parameters.
|
|
41
35
|
|
|
42
36
|
|
|
43
37
|
### Return type
|
|
44
38
|
|
|
45
|
-
**
|
|
39
|
+
**GetActualities200Response**
|
|
46
40
|
|
|
47
41
|
### Authorization
|
|
48
42
|
|
|
@@ -50,36 +44,33 @@ const { status, data } = await apiInstance.addClubMember(
|
|
|
50
44
|
|
|
51
45
|
### HTTP request headers
|
|
52
46
|
|
|
53
|
-
- **Content-Type**:
|
|
47
|
+
- **Content-Type**: Not defined
|
|
54
48
|
- **Accept**: application/json
|
|
55
49
|
|
|
56
50
|
|
|
57
51
|
### HTTP response details
|
|
58
52
|
| Status code | Description | Response headers |
|
|
59
53
|
|-------------|-------------|------------------|
|
|
60
|
-
|**
|
|
61
|
-
|**400** | Requête invalide | - |
|
|
62
|
-
|**404** | Ressource non trouvée | - |
|
|
63
|
-
|**500** | Erreur serveur interne | - |
|
|
54
|
+
|**200** | Actualités | - |
|
|
64
55
|
|
|
65
56
|
[[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
57
|
|
|
67
|
-
# **
|
|
68
|
-
>
|
|
58
|
+
# **getClubInfos**
|
|
59
|
+
> any getClubInfos()
|
|
69
60
|
|
|
70
61
|
|
|
71
62
|
### Example
|
|
72
63
|
|
|
73
64
|
```typescript
|
|
74
65
|
import {
|
|
75
|
-
|
|
66
|
+
ClubsStaffApi,
|
|
76
67
|
Configuration
|
|
77
68
|
} from '@tennac-booking/sdk';
|
|
78
69
|
|
|
79
70
|
const configuration = new Configuration();
|
|
80
|
-
const apiInstance = new
|
|
71
|
+
const apiInstance = new ClubsStaffApi(configuration);
|
|
81
72
|
|
|
82
|
-
const { status, data } = await apiInstance.
|
|
73
|
+
const { status, data } = await apiInstance.getClubInfos();
|
|
83
74
|
```
|
|
84
75
|
|
|
85
76
|
### Parameters
|
|
@@ -88,7 +79,7 @@ This endpoint does not have any parameters.
|
|
|
88
79
|
|
|
89
80
|
### Return type
|
|
90
81
|
|
|
91
|
-
**
|
|
82
|
+
**any**
|
|
92
83
|
|
|
93
84
|
### Authorization
|
|
94
85
|
|
|
@@ -103,26 +94,25 @@ This endpoint does not have any parameters.
|
|
|
103
94
|
### HTTP response details
|
|
104
95
|
| Status code | Description | Response headers |
|
|
105
96
|
|-------------|-------------|------------------|
|
|
106
|
-
|**200** |
|
|
107
|
-
|**404** | Ressource non trouvée | - |
|
|
108
|
-
|**500** | Erreur serveur interne | - |
|
|
97
|
+
|**200** | Infos du club | - |
|
|
109
98
|
|
|
110
99
|
[[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)
|
|
111
100
|
|
|
112
101
|
# **getClubMembers**
|
|
113
|
-
>
|
|
102
|
+
> GetClubMembers200Response getClubMembers()
|
|
114
103
|
|
|
104
|
+
Récupère les membres d\'un club
|
|
115
105
|
|
|
116
106
|
### Example
|
|
117
107
|
|
|
118
108
|
```typescript
|
|
119
109
|
import {
|
|
120
|
-
|
|
110
|
+
ClubsStaffApi,
|
|
121
111
|
Configuration
|
|
122
112
|
} from '@tennac-booking/sdk';
|
|
123
113
|
|
|
124
114
|
const configuration = new Configuration();
|
|
125
|
-
const apiInstance = new
|
|
115
|
+
const apiInstance = new ClubsStaffApi(configuration);
|
|
126
116
|
|
|
127
117
|
const { status, data } = await apiInstance.getClubMembers();
|
|
128
118
|
```
|
|
@@ -133,7 +123,7 @@ This endpoint does not have any parameters.
|
|
|
133
123
|
|
|
134
124
|
### Return type
|
|
135
125
|
|
|
136
|
-
**
|
|
126
|
+
**GetClubMembers200Response**
|
|
137
127
|
|
|
138
128
|
### Authorization
|
|
139
129
|
|
|
@@ -149,24 +139,25 @@ This endpoint does not have any parameters.
|
|
|
149
139
|
| Status code | Description | Response headers |
|
|
150
140
|
|-------------|-------------|------------------|
|
|
151
141
|
|**200** | Liste des membres du club | - |
|
|
152
|
-
|**500** |
|
|
142
|
+
|**500** | Server Error | - |
|
|
153
143
|
|
|
154
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)
|
|
155
145
|
|
|
156
146
|
# **getClubRoles**
|
|
157
|
-
>
|
|
147
|
+
> GetClubRoles200Response getClubRoles()
|
|
158
148
|
|
|
149
|
+
Récupère les rôles d\'un club
|
|
159
150
|
|
|
160
151
|
### Example
|
|
161
152
|
|
|
162
153
|
```typescript
|
|
163
154
|
import {
|
|
164
|
-
|
|
155
|
+
ClubsStaffApi,
|
|
165
156
|
Configuration
|
|
166
157
|
} from '@tennac-booking/sdk';
|
|
167
158
|
|
|
168
159
|
const configuration = new Configuration();
|
|
169
|
-
const apiInstance = new
|
|
160
|
+
const apiInstance = new ClubsStaffApi(configuration);
|
|
170
161
|
|
|
171
162
|
const { status, data } = await apiInstance.getClubRoles();
|
|
172
163
|
```
|
|
@@ -177,7 +168,7 @@ This endpoint does not have any parameters.
|
|
|
177
168
|
|
|
178
169
|
### Return type
|
|
179
170
|
|
|
180
|
-
**
|
|
171
|
+
**GetClubRoles200Response**
|
|
181
172
|
|
|
182
173
|
### Authorization
|
|
183
174
|
|
|
@@ -193,30 +184,118 @@ This endpoint does not have any parameters.
|
|
|
193
184
|
| Status code | Description | Response headers |
|
|
194
185
|
|-------------|-------------|------------------|
|
|
195
186
|
|**200** | Liste des rôles du club | - |
|
|
196
|
-
|**500** |
|
|
187
|
+
|**500** | Server Error | - |
|
|
188
|
+
|
|
189
|
+
[[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)
|
|
190
|
+
|
|
191
|
+
# **getCourtsByClub**
|
|
192
|
+
> GetCourtsByClub200Response getCourtsByClub()
|
|
193
|
+
|
|
194
|
+
Récupère les terrains d\'un club
|
|
195
|
+
|
|
196
|
+
### Example
|
|
197
|
+
|
|
198
|
+
```typescript
|
|
199
|
+
import {
|
|
200
|
+
ClubsStaffApi,
|
|
201
|
+
Configuration
|
|
202
|
+
} from '@tennac-booking/sdk';
|
|
203
|
+
|
|
204
|
+
const configuration = new Configuration();
|
|
205
|
+
const apiInstance = new ClubsStaffApi(configuration);
|
|
206
|
+
|
|
207
|
+
const { status, data } = await apiInstance.getCourtsByClub();
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
### Parameters
|
|
211
|
+
This endpoint does not have any parameters.
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
### Return type
|
|
215
|
+
|
|
216
|
+
**GetCourtsByClub200Response**
|
|
217
|
+
|
|
218
|
+
### Authorization
|
|
219
|
+
|
|
220
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
221
|
+
|
|
222
|
+
### HTTP request headers
|
|
223
|
+
|
|
224
|
+
- **Content-Type**: Not defined
|
|
225
|
+
- **Accept**: application/json
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
### HTTP response details
|
|
229
|
+
| Status code | Description | Response headers |
|
|
230
|
+
|-------------|-------------|------------------|
|
|
231
|
+
|**200** | Liste des terrains du club | - |
|
|
232
|
+
|**400** | Bad Request | - |
|
|
233
|
+
|**500** | Server Error | - |
|
|
197
234
|
|
|
198
235
|
[[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)
|
|
199
236
|
|
|
200
|
-
# **
|
|
201
|
-
>
|
|
237
|
+
# **getInvoices**
|
|
238
|
+
> any getInvoices()
|
|
202
239
|
|
|
203
240
|
|
|
204
241
|
### Example
|
|
205
242
|
|
|
206
243
|
```typescript
|
|
207
244
|
import {
|
|
208
|
-
|
|
209
|
-
Configuration
|
|
210
|
-
UpdateClubRequest
|
|
245
|
+
ClubsStaffApi,
|
|
246
|
+
Configuration
|
|
211
247
|
} from '@tennac-booking/sdk';
|
|
212
248
|
|
|
213
249
|
const configuration = new Configuration();
|
|
214
|
-
const apiInstance = new
|
|
250
|
+
const apiInstance = new ClubsStaffApi(configuration);
|
|
251
|
+
|
|
252
|
+
const { status, data } = await apiInstance.getInvoices();
|
|
253
|
+
```
|
|
215
254
|
|
|
216
|
-
|
|
255
|
+
### Parameters
|
|
256
|
+
This endpoint does not have any parameters.
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
### Return type
|
|
260
|
+
|
|
261
|
+
**any**
|
|
262
|
+
|
|
263
|
+
### Authorization
|
|
264
|
+
|
|
265
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
266
|
+
|
|
267
|
+
### HTTP request headers
|
|
268
|
+
|
|
269
|
+
- **Content-Type**: Not defined
|
|
270
|
+
- **Accept**: application/json
|
|
217
271
|
|
|
218
|
-
|
|
219
|
-
|
|
272
|
+
|
|
273
|
+
### HTTP response details
|
|
274
|
+
| Status code | Description | Response headers |
|
|
275
|
+
|-------------|-------------|------------------|
|
|
276
|
+
|**200** | Factures | - |
|
|
277
|
+
|
|
278
|
+
[[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)
|
|
279
|
+
|
|
280
|
+
# **getUserProfileStaff**
|
|
281
|
+
> StaffUserProfileResponse getUserProfileStaff()
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
### Example
|
|
285
|
+
|
|
286
|
+
```typescript
|
|
287
|
+
import {
|
|
288
|
+
ClubsStaffApi,
|
|
289
|
+
Configuration
|
|
290
|
+
} from '@tennac-booking/sdk';
|
|
291
|
+
|
|
292
|
+
const configuration = new Configuration();
|
|
293
|
+
const apiInstance = new ClubsStaffApi(configuration);
|
|
294
|
+
|
|
295
|
+
let id: string; // (default to undefined)
|
|
296
|
+
|
|
297
|
+
const { status, data } = await apiInstance.getUserProfileStaff(
|
|
298
|
+
id
|
|
220
299
|
);
|
|
221
300
|
```
|
|
222
301
|
|
|
@@ -224,12 +303,12 @@ const { status, data } = await apiInstance.updateClub(
|
|
|
224
303
|
|
|
225
304
|
|Name | Type | Description | Notes|
|
|
226
305
|
|------------- | ------------- | ------------- | -------------|
|
|
227
|
-
| **
|
|
306
|
+
| **id** | [**string**] | | defaults to undefined|
|
|
228
307
|
|
|
229
308
|
|
|
230
309
|
### Return type
|
|
231
310
|
|
|
232
|
-
**
|
|
311
|
+
**StaffUserProfileResponse**
|
|
233
312
|
|
|
234
313
|
### Authorization
|
|
235
314
|
|
|
@@ -237,17 +316,14 @@ const { status, data } = await apiInstance.updateClub(
|
|
|
237
316
|
|
|
238
317
|
### HTTP request headers
|
|
239
318
|
|
|
240
|
-
- **Content-Type**:
|
|
319
|
+
- **Content-Type**: Not defined
|
|
241
320
|
- **Accept**: application/json
|
|
242
321
|
|
|
243
322
|
|
|
244
323
|
### HTTP response details
|
|
245
324
|
| Status code | Description | Response headers |
|
|
246
325
|
|-------------|-------------|------------------|
|
|
247
|
-
|**200** |
|
|
248
|
-
|**400** | Requête invalide | - |
|
|
249
|
-
|**404** | Ressource non trouvée | - |
|
|
250
|
-
|**500** | Erreur serveur interne | - |
|
|
326
|
+
|**200** | Ok | - |
|
|
251
327
|
|
|
252
328
|
[[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)
|
|
253
329
|
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# CourtInfo
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | ID du terrain | [default to undefined]
|
|
9
|
+
**name** | **string** | Nom du terrain | [default to undefined]
|
|
10
|
+
**surface** | **string** | Surface du terrain | [default to undefined]
|
|
11
|
+
**isIndoor** | **boolean** | Terrain intérieur | [default to undefined]
|
|
12
|
+
**sportId** | [**SportInfo**](SportInfo.md) | | [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { CourtInfo } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: CourtInfo = {
|
|
20
|
+
id,
|
|
21
|
+
name,
|
|
22
|
+
surface,
|
|
23
|
+
isIndoor,
|
|
24
|
+
sportId,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/CourtResponse.md
CHANGED
|
@@ -5,20 +5,20 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**id** | **string** |
|
|
9
|
-
**name** | **string** |
|
|
10
|
-
**status** | **string** |
|
|
11
|
-
**comments** | **string** |
|
|
12
|
-
**slotDefaultDuration** | **number** |
|
|
13
|
-
**startTimeInTheDayInMinutes** | **number** |
|
|
14
|
-
**endTimeInTheDayInMinutes** | **number** |
|
|
15
|
-
**
|
|
16
|
-
**
|
|
17
|
-
**
|
|
18
|
-
**
|
|
19
|
-
**
|
|
20
|
-
**createdAt** | **
|
|
21
|
-
**updatedAt** | **
|
|
8
|
+
**id** | **string** | ID unique du terrain | [default to undefined]
|
|
9
|
+
**name** | **string** | Nom du terrain | [default to undefined]
|
|
10
|
+
**status** | **string** | Statut du terrain | [default to undefined]
|
|
11
|
+
**comments** | **string** | Commentaires sur le terrain | [optional] [default to undefined]
|
|
12
|
+
**slotDefaultDuration** | **number** | Durée par défaut d\'un créneau en minutes | [default to undefined]
|
|
13
|
+
**startTimeInTheDayInMinutes** | **number** | Heure de début en minutes depuis minuit | [default to undefined]
|
|
14
|
+
**endTimeInTheDayInMinutes** | **number** | Heure de fin en minutes depuis minuit | [default to undefined]
|
|
15
|
+
**sportId** | **string** | ID du sport associé au terrain | [default to undefined]
|
|
16
|
+
**sportName** | **string** | Nom du sport associé au terrain | [optional] [default to undefined]
|
|
17
|
+
**surface** | **string** | Type de surface du terrain | [default to undefined]
|
|
18
|
+
**isIndoor** | **boolean** | Indique si le terrain est en intérieur | [default to undefined]
|
|
19
|
+
**clubId** | **string** | ID du club auquel appartient le terrain | [default to undefined]
|
|
20
|
+
**createdAt** | [**ClubResponseCreatedAt**](ClubResponseCreatedAt.md) | | [optional] [default to undefined]
|
|
21
|
+
**updatedAt** | [**ClubResponseUpdatedAt**](ClubResponseUpdatedAt.md) | | [optional] [default to undefined]
|
|
22
22
|
|
|
23
23
|
## Example
|
|
24
24
|
|
|
@@ -33,11 +33,11 @@ const instance: CourtResponse = {
|
|
|
33
33
|
slotDefaultDuration,
|
|
34
34
|
startTimeInTheDayInMinutes,
|
|
35
35
|
endTimeInTheDayInMinutes,
|
|
36
|
-
pricePerHour,
|
|
37
36
|
sportId,
|
|
38
|
-
|
|
37
|
+
sportName,
|
|
39
38
|
surface,
|
|
40
39
|
isIndoor,
|
|
40
|
+
clubId,
|
|
41
41
|
createdAt,
|
|
42
42
|
updatedAt,
|
|
43
43
|
};
|
package/docs/CourtStatus.md
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
# CourtStatus
|
|
2
2
|
|
|
3
|
-
Statut du terrain
|
|
4
3
|
|
|
5
4
|
## Enum
|
|
6
5
|
|
|
7
|
-
* `
|
|
6
|
+
* `Available` (value: `'available'`)
|
|
8
7
|
|
|
9
|
-
* `
|
|
10
|
-
|
|
11
|
-
* `Inactive` (value: `'inactive'`)
|
|
8
|
+
* `Unavailable` (value: `'unavailable'`)
|
|
12
9
|
|
|
13
10
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -5,10 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**userId** | **string** | ID de l\'utilisateur créateur de la réservation | [default to undefined]
|
|
9
8
|
**slotId** | **string** | ID du créneau à réserver | [default to undefined]
|
|
10
9
|
**players** | [**Array<PlayerWithPaymentMethod>**](PlayerWithPaymentMethod.md) | Liste des joueurs avec leurs méthodes de paiement | [default to undefined]
|
|
11
|
-
**isCreatorPayingAll** | **boolean** | Indique si le créateur paie pour tous les joueurs | [optional] [default to
|
|
10
|
+
**isCreatorPayingAll** | **boolean** | Indique si le créateur paie pour tous les joueurs | [optional] [default to undefined]
|
|
12
11
|
**paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
|
|
13
12
|
|
|
14
13
|
## Example
|
|
@@ -17,7 +16,6 @@ Name | Type | Description | Notes
|
|
|
17
16
|
import { CreateBookingRequest } from '@tennac-booking/sdk';
|
|
18
17
|
|
|
19
18
|
const instance: CreateBookingRequest = {
|
|
20
|
-
userId,
|
|
21
19
|
slotId,
|
|
22
20
|
players,
|
|
23
21
|
isCreatorPayingAll,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# CreateClubRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | Nom du club | [default to undefined]
|
|
9
|
+
**email** | **string** | Email du club | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { CreateClubRequest } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: CreateClubRequest = {
|
|
17
|
+
name,
|
|
18
|
+
email,
|
|
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)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# CreateClubRoleRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**userId** | **string** | ID de l\'utilisateur | [default to undefined]
|
|
9
|
+
**role** | **string** | Rôle (facultatif, default: staff) | [optional] [default to undefined]
|
|
10
|
+
**rights** | **Array<string>** | Droits (facultatif) | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { CreateClubRoleRequest } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: CreateClubRoleRequest = {
|
|
18
|
+
userId,
|
|
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)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# CreateClubSettingsRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**clubId** | **string** | ID du club | [default to undefined]
|
|
9
|
+
**maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [optional] [default to undefined]
|
|
10
|
+
**allowMultipleBookingsAtTheSameTime** | **boolean** | Autoriser plusieurs réservations en même temps | [optional] [default to undefined]
|
|
11
|
+
**sameTimeBookingsLimit** | **number** | Limite de réservations simultanées | [optional] [default to undefined]
|
|
12
|
+
**cancellationLimitHours** | **number** | Limite d\'annulation en heures | [optional] [default to undefined]
|
|
13
|
+
**availabilityPeriodInDays** | **number** | Période de disponibilité en jours | [optional] [default to undefined]
|
|
14
|
+
**sponsors** | **Array<string>** | Liste des sponsors | [optional] [default to undefined]
|
|
15
|
+
**timeBeforePayment** | **number** | Temps avant paiement en minutes | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { CreateClubSettingsRequest } from '@tennac-booking/sdk';
|
|
21
|
+
|
|
22
|
+
const instance: CreateClubSettingsRequest = {
|
|
23
|
+
clubId,
|
|
24
|
+
maxWeeklyBookings,
|
|
25
|
+
allowMultipleBookingsAtTheSameTime,
|
|
26
|
+
sameTimeBookingsLimit,
|
|
27
|
+
cancellationLimitHours,
|
|
28
|
+
availabilityPeriodInDays,
|
|
29
|
+
sponsors,
|
|
30
|
+
timeBeforePayment,
|
|
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)
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
#
|
|
1
|
+
# CreateCourtForClub201Response
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
8
|
+
**court** | [**CourtResponse**](CourtResponse.md) | | [default to undefined]
|
|
9
9
|
|
|
10
10
|
## Example
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
13
|
-
import {
|
|
13
|
+
import { CreateCourtForClub201Response } from '@tennac-booking/sdk';
|
|
14
14
|
|
|
15
|
-
const instance:
|
|
16
|
-
|
|
15
|
+
const instance: CreateCourtForClub201Response = {
|
|
16
|
+
court,
|
|
17
17
|
};
|
|
18
18
|
```
|
|
19
19
|
|
|
@@ -5,15 +5,14 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**name** | **string** |
|
|
9
|
-
**
|
|
10
|
-
**
|
|
11
|
-
**
|
|
12
|
-
**
|
|
13
|
-
**
|
|
14
|
-
**
|
|
15
|
-
**
|
|
16
|
-
**isIndoor** | **boolean** | Indique si le terrain est en intérieur ou extérieur | [default to undefined]
|
|
8
|
+
**name** | **string** | Nom du terrain | [default to undefined]
|
|
9
|
+
**slotDefaultDuration** | **number** | Durée par défaut d\'un créneau en minutes | [default to undefined]
|
|
10
|
+
**startTimeInTheDayInMinutes** | **number** | Heure de début en minutes depuis minuit | [default to undefined]
|
|
11
|
+
**endTimeInTheDayInMinutes** | **number** | Heure de fin en minutes depuis minuit | [default to undefined]
|
|
12
|
+
**sportId** | **string** | ID du sport associé au terrain | [default to undefined]
|
|
13
|
+
**surface** | **string** | Type de surface du terrain | [default to undefined]
|
|
14
|
+
**isIndoor** | **boolean** | Indique si le terrain est en intérieur | [default to undefined]
|
|
15
|
+
**comments** | **string** | Commentaires sur le terrain | [optional] [default to undefined]
|
|
17
16
|
|
|
18
17
|
## Example
|
|
19
18
|
|
|
@@ -22,14 +21,13 @@ import { CreateCourtRequest } from '@tennac-booking/sdk';
|
|
|
22
21
|
|
|
23
22
|
const instance: CreateCourtRequest = {
|
|
24
23
|
name,
|
|
25
|
-
status,
|
|
26
|
-
comments,
|
|
27
|
-
pricePerHour,
|
|
28
24
|
slotDefaultDuration,
|
|
29
25
|
startTimeInTheDayInMinutes,
|
|
30
26
|
endTimeInTheDayInMinutes,
|
|
31
27
|
sportId,
|
|
28
|
+
surface,
|
|
32
29
|
isIndoor,
|
|
30
|
+
comments,
|
|
33
31
|
};
|
|
34
32
|
```
|
|
35
33
|
|
|
@@ -9,8 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**description** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**startDate** | **string** | | [default to undefined]
|
|
11
11
|
**endDate** | **string** | | [default to undefined]
|
|
12
|
-
**courts** | **Array<
|
|
13
|
-
**isActive** | **boolean** | | [optional] [default to false]
|
|
12
|
+
**courts** | [**Array<EventResponseCourtsInner>**](EventResponseCourtsInner.md) | | [default to undefined]
|
|
14
13
|
|
|
15
14
|
## Example
|
|
16
15
|
|
|
@@ -23,7 +22,6 @@ const instance: CreateEventRequest = {
|
|
|
23
22
|
startDate,
|
|
24
23
|
endDate,
|
|
25
24
|
courts,
|
|
26
|
-
isActive,
|
|
27
25
|
};
|
|
28
26
|
```
|
|
29
27
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# CreateSportForClub201Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**sport** | **any** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { CreateSportForClub201Response } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: CreateSportForClub201Response = {
|
|
16
|
+
sport,
|
|
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)
|