@tennac-booking/sdk 1.0.54 → 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 -220
- package/README.md +162 -167
- package/api.ts +7179 -7614
- package/base.ts +2 -2
- package/common.ts +2 -2
- package/configuration.ts +2 -2
- package/dist/api.d.ts +4662 -5750
- package/dist/api.js +3587 -2956
- 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 +4662 -5750
- package/dist/esm/api.js +3513 -2861
- 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/{FrequentPlayer.md → ClubMemberResponseUser.md} +10 -11
- 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/{PublicClubUserFrequentlyVisitedClubsInner.md → ClubSummary.md} +10 -6
- 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/FavoriteClubsResponse.md +1 -1
- package/docs/FavoritePlayersResponse.md +1 -1
- 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/PlayerSummary.md +40 -0
- package/docs/PublicUserProfileResponse.md +44 -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/UserLocationSummary.md +44 -0
- package/docs/UserProfileResponse.md +2 -2
- package/docs/UsersApi.md +38 -133
- 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/FrequentClub.md +0 -24
- 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/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,34 +1,37 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ClubSettingsManagerApi
|
|
2
2
|
|
|
3
3
|
All URIs are relative to *http://localhost*
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
8
|
-
|[**
|
|
9
|
-
|[**
|
|
10
|
-
|[**
|
|
7
|
+
|[**createClubSettings**](#createclubsettings) | **POST** /api/club-settings/{clubId} | |
|
|
8
|
+
|[**deleteClubSettings**](#deleteclubsettings) | **DELETE** /api/club-settings | |
|
|
9
|
+
|[**getClubSettings**](#getclubsettings) | **GET** /api/club-settings | |
|
|
10
|
+
|[**updateClubSettings**](#updateclubsettings) | **PUT** /api/club-settings | |
|
|
11
11
|
|
|
12
|
-
# **
|
|
13
|
-
>
|
|
12
|
+
# **createClubSettings**
|
|
13
|
+
> ClubSettingsResponse createClubSettings(createClubSettingsRequest)
|
|
14
14
|
|
|
15
|
+
Crée les paramètres d\'un club
|
|
15
16
|
|
|
16
17
|
### Example
|
|
17
18
|
|
|
18
19
|
```typescript
|
|
19
20
|
import {
|
|
20
|
-
|
|
21
|
+
ClubSettingsManagerApi,
|
|
21
22
|
Configuration,
|
|
22
|
-
|
|
23
|
+
CreateClubSettingsRequest
|
|
23
24
|
} from '@tennac-booking/sdk';
|
|
24
25
|
|
|
25
26
|
const configuration = new Configuration();
|
|
26
|
-
const apiInstance = new
|
|
27
|
+
const apiInstance = new ClubSettingsManagerApi(configuration);
|
|
27
28
|
|
|
28
|
-
let
|
|
29
|
+
let clubId: string; // (default to undefined)
|
|
30
|
+
let createClubSettingsRequest: CreateClubSettingsRequest; //
|
|
29
31
|
|
|
30
|
-
const { status, data } = await apiInstance.
|
|
31
|
-
|
|
32
|
+
const { status, data } = await apiInstance.createClubSettings(
|
|
33
|
+
clubId,
|
|
34
|
+
createClubSettingsRequest
|
|
32
35
|
);
|
|
33
36
|
```
|
|
34
37
|
|
|
@@ -36,12 +39,13 @@ const { status, data } = await apiInstance.createCourtForClub(
|
|
|
36
39
|
|
|
37
40
|
|Name | Type | Description | Notes|
|
|
38
41
|
|------------- | ------------- | ------------- | -------------|
|
|
39
|
-
| **
|
|
42
|
+
| **createClubSettingsRequest** | **CreateClubSettingsRequest**| | |
|
|
43
|
+
| **clubId** | [**string**] | | defaults to undefined|
|
|
40
44
|
|
|
41
45
|
|
|
42
46
|
### Return type
|
|
43
47
|
|
|
44
|
-
**
|
|
48
|
+
**ClubSettingsResponse**
|
|
45
49
|
|
|
46
50
|
### Authorization
|
|
47
51
|
|
|
@@ -56,45 +60,39 @@ const { status, data } = await apiInstance.createCourtForClub(
|
|
|
56
60
|
### HTTP response details
|
|
57
61
|
| Status code | Description | Response headers |
|
|
58
62
|
|-------------|-------------|------------------|
|
|
59
|
-
|**201** |
|
|
60
|
-
|**400** |
|
|
61
|
-
|**
|
|
62
|
-
|**500** |
|
|
63
|
+
|**201** | Paramètres créés | - |
|
|
64
|
+
|**400** | Bad Request | - |
|
|
65
|
+
|**401** | Unauthorized | - |
|
|
66
|
+
|**500** | Server Error | - |
|
|
63
67
|
|
|
64
68
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
65
69
|
|
|
66
|
-
# **
|
|
67
|
-
>
|
|
70
|
+
# **deleteClubSettings**
|
|
71
|
+
> DeleteClubSettingsResponse deleteClubSettings()
|
|
68
72
|
|
|
73
|
+
Supprime les paramètres d\'un club
|
|
69
74
|
|
|
70
75
|
### Example
|
|
71
76
|
|
|
72
77
|
```typescript
|
|
73
78
|
import {
|
|
74
|
-
|
|
79
|
+
ClubSettingsManagerApi,
|
|
75
80
|
Configuration
|
|
76
81
|
} from '@tennac-booking/sdk';
|
|
77
82
|
|
|
78
83
|
const configuration = new Configuration();
|
|
79
|
-
const apiInstance = new
|
|
84
|
+
const apiInstance = new ClubSettingsManagerApi(configuration);
|
|
80
85
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
const { status, data } = await apiInstance.deleteCourt(
|
|
84
|
-
courtId
|
|
85
|
-
);
|
|
86
|
+
const { status, data } = await apiInstance.deleteClubSettings();
|
|
86
87
|
```
|
|
87
88
|
|
|
88
89
|
### Parameters
|
|
89
|
-
|
|
90
|
-
|Name | Type | Description | Notes|
|
|
91
|
-
|------------- | ------------- | ------------- | -------------|
|
|
92
|
-
| **courtId** | [**string**] | ID du terrain à supprimer | defaults to undefined|
|
|
90
|
+
This endpoint does not have any parameters.
|
|
93
91
|
|
|
94
92
|
|
|
95
93
|
### Return type
|
|
96
94
|
|
|
97
|
-
**
|
|
95
|
+
**DeleteClubSettingsResponse**
|
|
98
96
|
|
|
99
97
|
### Authorization
|
|
100
98
|
|
|
@@ -109,29 +107,31 @@ const { status, data } = await apiInstance.deleteCourt(
|
|
|
109
107
|
### HTTP response details
|
|
110
108
|
| Status code | Description | Response headers |
|
|
111
109
|
|-------------|-------------|------------------|
|
|
112
|
-
|**200** |
|
|
113
|
-
|**400** |
|
|
114
|
-
|**
|
|
115
|
-
|**
|
|
110
|
+
|**200** | Paramètres supprimés | - |
|
|
111
|
+
|**400** | Bad Request | - |
|
|
112
|
+
|**401** | Unauthorized | - |
|
|
113
|
+
|**404** | Paramètres non trouvés | - |
|
|
114
|
+
|**500** | Server Error | - |
|
|
116
115
|
|
|
117
116
|
[[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)
|
|
118
117
|
|
|
119
|
-
# **
|
|
120
|
-
>
|
|
118
|
+
# **getClubSettings**
|
|
119
|
+
> ClubSettingsResponse getClubSettings()
|
|
121
120
|
|
|
121
|
+
Récupère les paramètres d\'un club
|
|
122
122
|
|
|
123
123
|
### Example
|
|
124
124
|
|
|
125
125
|
```typescript
|
|
126
126
|
import {
|
|
127
|
-
|
|
127
|
+
ClubSettingsManagerApi,
|
|
128
128
|
Configuration
|
|
129
129
|
} from '@tennac-booking/sdk';
|
|
130
130
|
|
|
131
131
|
const configuration = new Configuration();
|
|
132
|
-
const apiInstance = new
|
|
132
|
+
const apiInstance = new ClubSettingsManagerApi(configuration);
|
|
133
133
|
|
|
134
|
-
const { status, data } = await apiInstance.
|
|
134
|
+
const { status, data } = await apiInstance.getClubSettings();
|
|
135
135
|
```
|
|
136
136
|
|
|
137
137
|
### Parameters
|
|
@@ -140,7 +140,7 @@ This endpoint does not have any parameters.
|
|
|
140
140
|
|
|
141
141
|
### Return type
|
|
142
142
|
|
|
143
|
-
**
|
|
143
|
+
**ClubSettingsResponse**
|
|
144
144
|
|
|
145
145
|
### Authorization
|
|
146
146
|
|
|
@@ -155,34 +155,35 @@ This endpoint does not have any parameters.
|
|
|
155
155
|
### HTTP response details
|
|
156
156
|
| Status code | Description | Response headers |
|
|
157
157
|
|-------------|-------------|------------------|
|
|
158
|
-
|**200** |
|
|
159
|
-
|**400** |
|
|
160
|
-
|**
|
|
158
|
+
|**200** | Paramètres du club | - |
|
|
159
|
+
|**400** | Bad Request | - |
|
|
160
|
+
|**401** | Unauthorized | - |
|
|
161
|
+
|**404** | Paramètres non trouvés | - |
|
|
162
|
+
|**500** | Server Error | - |
|
|
161
163
|
|
|
162
164
|
[[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)
|
|
163
165
|
|
|
164
|
-
# **
|
|
165
|
-
>
|
|
166
|
+
# **updateClubSettings**
|
|
167
|
+
> ClubSettingsResponse updateClubSettings(updateClubSettingsRequest)
|
|
166
168
|
|
|
169
|
+
Met à jour les paramètres d\'un club
|
|
167
170
|
|
|
168
171
|
### Example
|
|
169
172
|
|
|
170
173
|
```typescript
|
|
171
174
|
import {
|
|
172
|
-
|
|
175
|
+
ClubSettingsManagerApi,
|
|
173
176
|
Configuration,
|
|
174
|
-
|
|
177
|
+
UpdateClubSettingsRequest
|
|
175
178
|
} from '@tennac-booking/sdk';
|
|
176
179
|
|
|
177
180
|
const configuration = new Configuration();
|
|
178
|
-
const apiInstance = new
|
|
181
|
+
const apiInstance = new ClubSettingsManagerApi(configuration);
|
|
179
182
|
|
|
180
|
-
let
|
|
181
|
-
let updateCourtRequest: UpdateCourtRequest; //
|
|
183
|
+
let updateClubSettingsRequest: UpdateClubSettingsRequest; //
|
|
182
184
|
|
|
183
|
-
const { status, data } = await apiInstance.
|
|
184
|
-
|
|
185
|
-
updateCourtRequest
|
|
185
|
+
const { status, data } = await apiInstance.updateClubSettings(
|
|
186
|
+
updateClubSettingsRequest
|
|
186
187
|
);
|
|
187
188
|
```
|
|
188
189
|
|
|
@@ -190,13 +191,12 @@ const { status, data } = await apiInstance.updateCourt(
|
|
|
190
191
|
|
|
191
192
|
|Name | Type | Description | Notes|
|
|
192
193
|
|------------- | ------------- | ------------- | -------------|
|
|
193
|
-
| **
|
|
194
|
-
| **courtId** | [**string**] | ID du terrain à mettre à jour | defaults to undefined|
|
|
194
|
+
| **updateClubSettingsRequest** | **UpdateClubSettingsRequest**| | |
|
|
195
195
|
|
|
196
196
|
|
|
197
197
|
### Return type
|
|
198
198
|
|
|
199
|
-
**
|
|
199
|
+
**ClubSettingsResponse**
|
|
200
200
|
|
|
201
201
|
### Authorization
|
|
202
202
|
|
|
@@ -211,10 +211,11 @@ const { status, data } = await apiInstance.updateCourt(
|
|
|
211
211
|
### HTTP response details
|
|
212
212
|
| Status code | Description | Response headers |
|
|
213
213
|
|-------------|-------------|------------------|
|
|
214
|
-
|**200** |
|
|
215
|
-
|**400** |
|
|
216
|
-
|**
|
|
217
|
-
|**
|
|
214
|
+
|**200** | Paramètres mis à jour | - |
|
|
215
|
+
|**400** | Bad Request | - |
|
|
216
|
+
|**401** | Unauthorized | - |
|
|
217
|
+
|**404** | Paramètres non trouvés | - |
|
|
218
|
+
|**500** | Server Error | - |
|
|
218
219
|
|
|
219
220
|
[[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)
|
|
220
221
|
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# ClubSettingsResponse
|
|
2
|
+
|
|
3
|
+
Types TSOA pour les paramètres du club
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**_id** | **string** | ID unique des paramètres | [default to undefined]
|
|
10
|
+
**clubId** | **string** | ID du club | [default to undefined]
|
|
11
|
+
**maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [default to undefined]
|
|
12
|
+
**allowMultipleBookingsAtTheSameTime** | **boolean** | Autoriser plusieurs réservations en même temps | [default to undefined]
|
|
13
|
+
**sameTimeBookingsLimit** | **number** | Limite de réservations simultanées | [optional] [default to undefined]
|
|
14
|
+
**cancellationLimitHours** | **number** | Limite d\'annulation en heures | [default to undefined]
|
|
15
|
+
**availabilityPeriodInDays** | **number** | Période de disponibilité en jours | [default to undefined]
|
|
16
|
+
**sponsors** | **Array<string>** | Liste des sponsors | [default to undefined]
|
|
17
|
+
**timeBeforePayment** | **number** | Temps avant paiement en minutes | [default to undefined]
|
|
18
|
+
**createdAt** | **string** | Date de création | [default to undefined]
|
|
19
|
+
**updatedAt** | **string** | Date de mise à jour | [default to undefined]
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { ClubSettingsResponse } from '@tennac-booking/sdk';
|
|
25
|
+
|
|
26
|
+
const instance: ClubSettingsResponse = {
|
|
27
|
+
_id,
|
|
28
|
+
clubId,
|
|
29
|
+
maxWeeklyBookings,
|
|
30
|
+
allowMultipleBookingsAtTheSameTime,
|
|
31
|
+
sameTimeBookingsLimit,
|
|
32
|
+
cancellationLimitHours,
|
|
33
|
+
availabilityPeriodInDays,
|
|
34
|
+
sponsors,
|
|
35
|
+
timeBeforePayment,
|
|
36
|
+
createdAt,
|
|
37
|
+
updatedAt,
|
|
38
|
+
};
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,22 +1,26 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ClubSummary
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
9
|
-
**name** | **string** | | [
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
**name** | **string** | | [default to undefined]
|
|
10
|
+
**address** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**location** | [**UserLocationSummary**](UserLocationSummary.md) | | [default to undefined]
|
|
10
12
|
**visitCount** | **number** | | [optional] [default to undefined]
|
|
11
13
|
|
|
12
14
|
## Example
|
|
13
15
|
|
|
14
16
|
```typescript
|
|
15
|
-
import {
|
|
17
|
+
import { ClubSummary } from '@tennac-booking/sdk';
|
|
16
18
|
|
|
17
|
-
const instance:
|
|
18
|
-
|
|
19
|
+
const instance: ClubSummary = {
|
|
20
|
+
id,
|
|
19
21
|
name,
|
|
22
|
+
address,
|
|
23
|
+
location,
|
|
20
24
|
visitCount,
|
|
21
25
|
};
|
|
22
26
|
```
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ClubUserCountResponse
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
8
|
+
**count** | **number** | Nombre d\'utilisateurs du club | [default to undefined]
|
|
9
9
|
|
|
10
10
|
## Example
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
13
|
-
import {
|
|
13
|
+
import { ClubUserCountResponse } from '@tennac-booking/sdk';
|
|
14
14
|
|
|
15
|
-
const instance:
|
|
16
|
-
|
|
15
|
+
const instance: ClubUserCountResponse = {
|
|
16
|
+
count,
|
|
17
17
|
};
|
|
18
18
|
```
|
|
19
19
|
|