@tennac-booking/sdk 1.0.90 → 1.0.91
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 +9 -25
- package/README.md +15 -37
- package/api.ts +785 -1996
- package/dist/api.d.ts +515 -1428
- package/dist/api.js +237 -719
- package/dist/esm/api.d.ts +515 -1428
- package/dist/esm/api.js +234 -711
- package/docs/{ClubDaySchedule.md → AddCreditsToCustomer200Response.md} +5 -7
- package/docs/AddCreditsToCustomerRequest.md +22 -0
- package/docs/BookingPopulated.md +3 -3
- package/docs/ClubAnalyticsStaffApi.md +0 -173
- package/docs/ClubSettingsManagerApi.md +60 -54
- package/docs/ClubSettingsResponse.md +39 -0
- package/docs/ClubsManagerApi.md +58 -52
- package/docs/ClubsStaffApi.md +0 -44
- package/docs/CreateClubSettingsRequest.md +34 -0
- package/docs/CreateEventRequest.md +1 -3
- package/docs/DeleteClubSettingsResponse.md +20 -0
- package/docs/EventResponse.md +1 -1
- package/docs/EventResponseCourtsInner.md +18 -0
- package/docs/SlotInfo.md +2 -2
- package/docs/UpdateClubSettingsRequest.md +32 -0
- package/docs/UpdateEventRequest.md +1 -1
- package/docs/UserClubMembership.md +34 -0
- package/docs/UserClubMembershipsResponse.md +20 -0
- package/docs/UsersApi.md +46 -0
- package/package.json +1 -1
- package/docs/ClubGeneralSettingsResponse.md +0 -32
- package/docs/ClubHoursSettingsResponse.md +0 -22
- package/docs/ClubLocationSettings.md +0 -26
- package/docs/ClubPlayerBookingItem.md +0 -36
- package/docs/ClubPlayerBookingsPagination.md +0 -28
- package/docs/ClubPlayerBookingsResponse.md +0 -24
- package/docs/ClubPlayerDetailResponse.md +0 -46
- package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +0 -22
- package/docs/ClubPlayerStatisticsResponse.md +0 -42
- package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +0 -22
- package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +0 -23
- package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +0 -25
- package/docs/ClubPlayerStatisticsResponseMostPlayedPartnersInner.md +0 -26
- package/docs/ClubPlayerSubscriptionSummary.md +0 -28
- package/docs/ClubPresentationSettingsResponse.md +0 -26
- package/docs/ClubPricingPeriodResponse.md +0 -30
- package/docs/ClubReservationSettingsResponse.md +0 -28
- package/docs/ClubSettingsStaffApi.md +0 -183
- package/docs/ClubWeeklySchedule.md +0 -32
- package/docs/PartialClubWeeklySchedule.md +0 -33
- package/docs/UpdateClubGeneralSettingsRequest.md +0 -34
- package/docs/UpdateClubHoursSettingsRequest.md +0 -22
- package/docs/UpdateClubPresentationSettingsRequest.md +0 -26
- package/docs/UpdateClubReservationSettingsRequest.md +0 -28
package/docs/ClubsManagerApi.md
CHANGED
|
@@ -5,6 +5,7 @@ All URIs are relative to *http://localhost*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**addClubMember**](#addclubmember) | **POST** /api/clubs/members | |
|
|
8
|
+
|[**addCreditsToCustomer**](#addcreditstocustomer) | **POST** /api/clubs/customers/{userId}/credits | |
|
|
8
9
|
|[**archivePriceForSubscriptionPlan**](#archivepriceforsubscriptionplan) | **DELETE** /api/clubs/subscription-plans/{priceId}/archive-price | |
|
|
9
10
|
|[**createActuality**](#createactuality) | **POST** /api/clubs/actualities | |
|
|
10
11
|
|[**createCourtForClub**](#createcourtforclub) | **POST** /api/clubs/courts | |
|
|
@@ -20,7 +21,6 @@ All URIs are relative to *http://localhost*
|
|
|
20
21
|
|[**updateActuality**](#updateactuality) | **PUT** /api/clubs/actualities/{actualityId} | |
|
|
21
22
|
|[**updateClub**](#updateclub) | **PUT** /api/clubs | |
|
|
22
23
|
|[**updateClubInfos**](#updateclubinfos) | **PUT** /api/clubs/infos | |
|
|
23
|
-
|[**updateClubPresentationSettings**](#updateclubpresentationsettings) | **PUT** /api/clubs/settings/presentation | |
|
|
24
24
|
|[**updateCourt**](#updatecourt) | **PUT** /api/clubs/courts/{courtId} | |
|
|
25
25
|
|[**updateSubscriptionPlanForClub**](#updatesubscriptionplanforclub) | **PUT** /api/clubs/subscription-plans/{priceId} | |
|
|
26
26
|
|
|
@@ -79,6 +79,63 @@ const { status, data } = await apiInstance.addClubMember(
|
|
|
79
79
|
|
|
80
80
|
[[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)
|
|
81
81
|
|
|
82
|
+
# **addCreditsToCustomer**
|
|
83
|
+
> AddCreditsToCustomer200Response addCreditsToCustomer(addCreditsToCustomerRequest)
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
### Example
|
|
87
|
+
|
|
88
|
+
```typescript
|
|
89
|
+
import {
|
|
90
|
+
ClubsManagerApi,
|
|
91
|
+
Configuration,
|
|
92
|
+
AddCreditsToCustomerRequest
|
|
93
|
+
} from '@tennac-booking/sdk';
|
|
94
|
+
|
|
95
|
+
const configuration = new Configuration();
|
|
96
|
+
const apiInstance = new ClubsManagerApi(configuration);
|
|
97
|
+
|
|
98
|
+
let userId: string; // (default to undefined)
|
|
99
|
+
let addCreditsToCustomerRequest: AddCreditsToCustomerRequest; //
|
|
100
|
+
|
|
101
|
+
const { status, data } = await apiInstance.addCreditsToCustomer(
|
|
102
|
+
userId,
|
|
103
|
+
addCreditsToCustomerRequest
|
|
104
|
+
);
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### Parameters
|
|
108
|
+
|
|
109
|
+
|Name | Type | Description | Notes|
|
|
110
|
+
|------------- | ------------- | ------------- | -------------|
|
|
111
|
+
| **addCreditsToCustomerRequest** | **AddCreditsToCustomerRequest**| | |
|
|
112
|
+
| **userId** | [**string**] | | defaults to undefined|
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
### Return type
|
|
116
|
+
|
|
117
|
+
**AddCreditsToCustomer200Response**
|
|
118
|
+
|
|
119
|
+
### Authorization
|
|
120
|
+
|
|
121
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
122
|
+
|
|
123
|
+
### HTTP request headers
|
|
124
|
+
|
|
125
|
+
- **Content-Type**: application/json
|
|
126
|
+
- **Accept**: application/json
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
### HTTP response details
|
|
130
|
+
| Status code | Description | Response headers |
|
|
131
|
+
|-------------|-------------|------------------|
|
|
132
|
+
|**200** | Crédits mis à jour | - |
|
|
133
|
+
|**400** | Bad Request | - |
|
|
134
|
+
|**404** | ClubCustomer non trouvé | - |
|
|
135
|
+
|**500** | Server Error | - |
|
|
136
|
+
|
|
137
|
+
[[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)
|
|
138
|
+
|
|
82
139
|
# **archivePriceForSubscriptionPlan**
|
|
83
140
|
> UpdateSubscriptionPlanForClub200Response archivePriceForSubscriptionPlan()
|
|
84
141
|
|
|
@@ -843,57 +900,6 @@ const { status, data } = await apiInstance.updateClubInfos(
|
|
|
843
900
|
|
|
844
901
|
[[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)
|
|
845
902
|
|
|
846
|
-
# **updateClubPresentationSettings**
|
|
847
|
-
> ClubPresentationSettingsResponse updateClubPresentationSettings(updateClubPresentationSettingsRequest)
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
### Example
|
|
851
|
-
|
|
852
|
-
```typescript
|
|
853
|
-
import {
|
|
854
|
-
ClubsManagerApi,
|
|
855
|
-
Configuration,
|
|
856
|
-
UpdateClubPresentationSettingsRequest
|
|
857
|
-
} from '@tennac-booking/sdk';
|
|
858
|
-
|
|
859
|
-
const configuration = new Configuration();
|
|
860
|
-
const apiInstance = new ClubsManagerApi(configuration);
|
|
861
|
-
|
|
862
|
-
let updateClubPresentationSettingsRequest: UpdateClubPresentationSettingsRequest; //
|
|
863
|
-
|
|
864
|
-
const { status, data } = await apiInstance.updateClubPresentationSettings(
|
|
865
|
-
updateClubPresentationSettingsRequest
|
|
866
|
-
);
|
|
867
|
-
```
|
|
868
|
-
|
|
869
|
-
### Parameters
|
|
870
|
-
|
|
871
|
-
|Name | Type | Description | Notes|
|
|
872
|
-
|------------- | ------------- | ------------- | -------------|
|
|
873
|
-
| **updateClubPresentationSettingsRequest** | **UpdateClubPresentationSettingsRequest**| | |
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
### Return type
|
|
877
|
-
|
|
878
|
-
**ClubPresentationSettingsResponse**
|
|
879
|
-
|
|
880
|
-
### Authorization
|
|
881
|
-
|
|
882
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
883
|
-
|
|
884
|
-
### HTTP request headers
|
|
885
|
-
|
|
886
|
-
- **Content-Type**: application/json
|
|
887
|
-
- **Accept**: application/json
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
### HTTP response details
|
|
891
|
-
| Status code | Description | Response headers |
|
|
892
|
-
|-------------|-------------|------------------|
|
|
893
|
-
|**200** | Présentation mise à jour | - |
|
|
894
|
-
|
|
895
|
-
[[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)
|
|
896
|
-
|
|
897
903
|
# **updateCourt**
|
|
898
904
|
> any updateCourt(body)
|
|
899
905
|
|
package/docs/ClubsStaffApi.md
CHANGED
|
@@ -7,7 +7,6 @@ All URIs are relative to *http://localhost*
|
|
|
7
7
|
|[**getActualities**](#getactualities) | **GET** /api/clubs/staff/actualities | |
|
|
8
8
|
|[**getClubInfos**](#getclubinfos) | **GET** /api/clubs/infos | |
|
|
9
9
|
|[**getClubMembers**](#getclubmembers) | **GET** /api/clubs/members | |
|
|
10
|
-
|[**getClubPresentationSettings**](#getclubpresentationsettings) | **GET** /api/clubs/settings/presentation | |
|
|
11
10
|
|[**getClubRoles**](#getclubroles) | **GET** /api/clubs/roles | |
|
|
12
11
|
|[**getCourtsByClub**](#getcourtsbyclub) | **GET** /api/clubs/courts | |
|
|
13
12
|
|[**getInvoices**](#getinvoices) | **GET** /api/clubs/invoices | |
|
|
@@ -144,49 +143,6 @@ This endpoint does not have any parameters.
|
|
|
144
143
|
|
|
145
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)
|
|
146
145
|
|
|
147
|
-
# **getClubPresentationSettings**
|
|
148
|
-
> ClubPresentationSettingsResponse getClubPresentationSettings()
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
### Example
|
|
152
|
-
|
|
153
|
-
```typescript
|
|
154
|
-
import {
|
|
155
|
-
ClubsStaffApi,
|
|
156
|
-
Configuration
|
|
157
|
-
} from '@tennac-booking/sdk';
|
|
158
|
-
|
|
159
|
-
const configuration = new Configuration();
|
|
160
|
-
const apiInstance = new ClubsStaffApi(configuration);
|
|
161
|
-
|
|
162
|
-
const { status, data } = await apiInstance.getClubPresentationSettings();
|
|
163
|
-
```
|
|
164
|
-
|
|
165
|
-
### Parameters
|
|
166
|
-
This endpoint does not have any parameters.
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
### Return type
|
|
170
|
-
|
|
171
|
-
**ClubPresentationSettingsResponse**
|
|
172
|
-
|
|
173
|
-
### Authorization
|
|
174
|
-
|
|
175
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
176
|
-
|
|
177
|
-
### HTTP request headers
|
|
178
|
-
|
|
179
|
-
- **Content-Type**: Not defined
|
|
180
|
-
- **Accept**: application/json
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
### HTTP response details
|
|
184
|
-
| Status code | Description | Response headers |
|
|
185
|
-
|-------------|-------------|------------------|
|
|
186
|
-
|**200** | Présentation du club | - |
|
|
187
|
-
|
|
188
|
-
[[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)
|
|
189
|
-
|
|
190
146
|
# **getClubRoles**
|
|
191
147
|
> GetClubRoles200Response getClubRoles()
|
|
192
148
|
|
|
@@ -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)
|
|
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**photoUrl** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**startDate** | **string** | | [default to undefined]
|
|
13
13
|
**endDate** | **string** | | [default to undefined]
|
|
14
|
-
**courts** | **Array<
|
|
14
|
+
**courts** | [**Array<EventResponseCourtsInner>**](EventResponseCourtsInner.md) | | [default to undefined]
|
|
15
15
|
**sports** | **Array<string>** | | [default to undefined]
|
|
16
16
|
**recurringType** | **string** | | [default to undefined]
|
|
17
17
|
**recurrenceEndDate** | **string** | | [optional] [default to undefined]
|
|
@@ -22,7 +22,6 @@ Name | Type | Description | Notes
|
|
|
22
22
|
**teamLimit** | **number** | | [optional] [default to undefined]
|
|
23
23
|
**price** | **number** | | [optional] [default to undefined]
|
|
24
24
|
**subscriberPrices** | [**Array<SubscriberPrice>**](SubscriberPrice.md) | | [optional] [default to undefined]
|
|
25
|
-
**levels** | **Array<number>** | | [optional] [default to undefined]
|
|
26
25
|
**visibilityType** | **string** | | [default to undefined]
|
|
27
26
|
|
|
28
27
|
## Example
|
|
@@ -48,7 +47,6 @@ const instance: CreateEventRequest = {
|
|
|
48
47
|
teamLimit,
|
|
49
48
|
price,
|
|
50
49
|
subscriberPrices,
|
|
51
|
-
levels,
|
|
52
50
|
visibilityType,
|
|
53
51
|
};
|
|
54
52
|
```
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# DeleteClubSettingsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | Message de confirmation | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { DeleteClubSettingsResponse } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: DeleteClubSettingsResponse = {
|
|
16
|
+
message,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/EventResponse.md
CHANGED
|
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**photoUrl** | **string** | | [optional] [default to undefined]
|
|
14
14
|
**startDate** | **string** | | [default to undefined]
|
|
15
15
|
**endDate** | **string** | | [default to undefined]
|
|
16
|
-
**courts** | **Array<
|
|
16
|
+
**courts** | [**Array<EventResponseCourtsInner>**](EventResponseCourtsInner.md) | | [default to undefined]
|
|
17
17
|
**sports** | [**Array<SportWithLevels>**](SportWithLevels.md) | | [default to undefined]
|
|
18
18
|
**recurringType** | **string** | | [default to undefined]
|
|
19
19
|
**recurrenceEndDate** | **string** | | [optional] [default to undefined]
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# EventResponseCourtsInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
import { EventResponseCourtsInner } from '@tennac-booking/sdk';
|
|
13
|
+
|
|
14
|
+
const instance: EventResponseCourtsInner = {
|
|
15
|
+
};
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
[[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/SlotInfo.md
CHANGED
|
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**id** | **string** | ID du slot | [default to undefined]
|
|
9
9
|
**startDate** | **string** | Date de début | [default to undefined]
|
|
10
10
|
**endDate** | **string** | Date de fin | [default to undefined]
|
|
11
|
-
**
|
|
11
|
+
**courtId** | [**CourtInfo**](CourtInfo.md) | | [default to undefined]
|
|
12
12
|
|
|
13
13
|
## Example
|
|
14
14
|
|
|
@@ -19,7 +19,7 @@ const instance: SlotInfo = {
|
|
|
19
19
|
id,
|
|
20
20
|
startDate,
|
|
21
21
|
endDate,
|
|
22
|
-
|
|
22
|
+
courtId,
|
|
23
23
|
};
|
|
24
24
|
```
|
|
25
25
|
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# UpdateClubSettingsRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [optional] [default to undefined]
|
|
9
|
+
**allowMultipleBookingsAtTheSameTime** | **boolean** | Autoriser plusieurs réservations en même temps | [optional] [default to undefined]
|
|
10
|
+
**sameTimeBookingsLimit** | **number** | Limite de réservations simultanées | [optional] [default to undefined]
|
|
11
|
+
**cancellationLimitHours** | **number** | Limite d\'annulation en heures | [optional] [default to undefined]
|
|
12
|
+
**availabilityPeriodInDays** | **number** | Période de disponibilité en jours | [optional] [default to undefined]
|
|
13
|
+
**sponsors** | **Array<string>** | Liste des sponsors | [optional] [default to undefined]
|
|
14
|
+
**timeBeforePayment** | **number** | Temps avant paiement en minutes | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { UpdateClubSettingsRequest } from '@tennac-booking/sdk';
|
|
20
|
+
|
|
21
|
+
const instance: UpdateClubSettingsRequest = {
|
|
22
|
+
maxWeeklyBookings,
|
|
23
|
+
allowMultipleBookingsAtTheSameTime,
|
|
24
|
+
sameTimeBookingsLimit,
|
|
25
|
+
cancellationLimitHours,
|
|
26
|
+
availabilityPeriodInDays,
|
|
27
|
+
sponsors,
|
|
28
|
+
timeBeforePayment,
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**photoUrl** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**startDate** | **string** | | [optional] [default to undefined]
|
|
13
13
|
**endDate** | **string** | | [optional] [default to undefined]
|
|
14
|
-
**courts** | **Array<
|
|
14
|
+
**courts** | [**Array<EventResponseCourtsInner>**](EventResponseCourtsInner.md) | | [optional] [default to undefined]
|
|
15
15
|
**sports** | **Array<string>** | | [optional] [default to undefined]
|
|
16
16
|
**recurringType** | **string** | | [optional] [default to undefined]
|
|
17
17
|
**recurrenceEndDate** | **string** | | [optional] [default to undefined]
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# UserClubMembership
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**clubId** | **string** | | [default to undefined]
|
|
9
|
+
**clubName** | **string** | | [default to undefined]
|
|
10
|
+
**clubPicture** | **string** | | [default to undefined]
|
|
11
|
+
**bookingCount** | **number** | | [default to undefined]
|
|
12
|
+
**credits** | **number** | | [default to undefined]
|
|
13
|
+
**billingPortalUrl** | **string** | | [default to undefined]
|
|
14
|
+
**hasActiveSubscription** | **boolean** | | [default to undefined]
|
|
15
|
+
**subscriptions** | [**Array<UserClubSubscription>**](UserClubSubscription.md) | | [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { UserClubMembership } from '@tennac-booking/sdk';
|
|
21
|
+
|
|
22
|
+
const instance: UserClubMembership = {
|
|
23
|
+
clubId,
|
|
24
|
+
clubName,
|
|
25
|
+
clubPicture,
|
|
26
|
+
bookingCount,
|
|
27
|
+
credits,
|
|
28
|
+
billingPortalUrl,
|
|
29
|
+
hasActiveSubscription,
|
|
30
|
+
subscriptions,
|
|
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)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# UserClubMembershipsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**clubs** | [**Array<UserClubMembership>**](UserClubMembership.md) | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { UserClubMembershipsResponse } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: UserClubMembershipsResponse = {
|
|
16
|
+
clubs,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/UsersApi.md
CHANGED
|
@@ -15,6 +15,7 @@ All URIs are relative to *http://localhost*
|
|
|
15
15
|
|[**getFrequentlyPlayedWith**](#getfrequentlyplayedwith) | **GET** /api/users/me/frequentlyPlayedWith | |
|
|
16
16
|
|[**getFrequentlyVisitedClub**](#getfrequentlyvisitedclub) | **GET** /api/users/me/frequentlyVisitedClub | |
|
|
17
17
|
|[**getMe**](#getme) | **GET** /api/users/me | |
|
|
18
|
+
|[**getMyClubMemberships**](#getmyclubmemberships) | **GET** /api/users/me/club-memberships | |
|
|
18
19
|
|[**getNearestClubs**](#getnearestclubs) | **GET** /api/users/me/nearest-clubs | |
|
|
19
20
|
|[**getNearestClubsFromCoordinates**](#getnearestclubsfromcoordinates) | **GET** /api/users/nearest-clubs/coordinates | |
|
|
20
21
|
|[**getNearestUsers**](#getnearestusers) | **GET** /api/users/me/nearest-players | |
|
|
@@ -552,6 +553,51 @@ This endpoint does not have any parameters.
|
|
|
552
553
|
|
|
553
554
|
[[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)
|
|
554
555
|
|
|
556
|
+
# **getMyClubMemberships**
|
|
557
|
+
> UserClubMembershipsResponse getMyClubMemberships()
|
|
558
|
+
|
|
559
|
+
Récupère les clubs associés à l\'utilisateur avec ses informations de paiement
|
|
560
|
+
|
|
561
|
+
### Example
|
|
562
|
+
|
|
563
|
+
```typescript
|
|
564
|
+
import {
|
|
565
|
+
UsersApi,
|
|
566
|
+
Configuration
|
|
567
|
+
} from '@tennac-booking/sdk';
|
|
568
|
+
|
|
569
|
+
const configuration = new Configuration();
|
|
570
|
+
const apiInstance = new UsersApi(configuration);
|
|
571
|
+
|
|
572
|
+
const { status, data } = await apiInstance.getMyClubMemberships();
|
|
573
|
+
```
|
|
574
|
+
|
|
575
|
+
### Parameters
|
|
576
|
+
This endpoint does not have any parameters.
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
### Return type
|
|
580
|
+
|
|
581
|
+
**UserClubMembershipsResponse**
|
|
582
|
+
|
|
583
|
+
### Authorization
|
|
584
|
+
|
|
585
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
586
|
+
|
|
587
|
+
### HTTP request headers
|
|
588
|
+
|
|
589
|
+
- **Content-Type**: Not defined
|
|
590
|
+
- **Accept**: application/json
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
### HTTP response details
|
|
594
|
+
| Status code | Description | Response headers |
|
|
595
|
+
|-------------|-------------|------------------|
|
|
596
|
+
|**200** | Clubs de l\'utilisateur | - |
|
|
597
|
+
|**500** | Server Error | - |
|
|
598
|
+
|
|
599
|
+
[[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)
|
|
600
|
+
|
|
555
601
|
# **getNearestClubs**
|
|
556
602
|
> Array<{ [key: string]: any; }> getNearestClubs()
|
|
557
603
|
|
package/package.json
CHANGED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# ClubGeneralSettingsResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**name** | **string** | | [default to undefined]
|
|
9
|
-
**email** | **string** | | [optional] [default to undefined]
|
|
10
|
-
**phone** | **string** | | [optional] [default to undefined]
|
|
11
|
-
**websiteUrl** | **string** | | [optional] [default to undefined]
|
|
12
|
-
**logo** | **string** | | [optional] [default to undefined]
|
|
13
|
-
**location** | [**ClubLocationSettings**](ClubLocationSettings.md) | | [default to undefined]
|
|
14
|
-
**stripeUrl** | **string** | | [optional] [default to undefined]
|
|
15
|
-
|
|
16
|
-
## Example
|
|
17
|
-
|
|
18
|
-
```typescript
|
|
19
|
-
import { ClubGeneralSettingsResponse } from '@tennac-booking/sdk';
|
|
20
|
-
|
|
21
|
-
const instance: ClubGeneralSettingsResponse = {
|
|
22
|
-
name,
|
|
23
|
-
email,
|
|
24
|
-
phone,
|
|
25
|
-
websiteUrl,
|
|
26
|
-
logo,
|
|
27
|
-
location,
|
|
28
|
-
stripeUrl,
|
|
29
|
-
};
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# ClubHoursSettingsResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**schedule** | [**ClubWeeklySchedule**](ClubWeeklySchedule.md) | | [default to undefined]
|
|
9
|
-
**pricingPeriods** | [**Array<ClubPricingPeriodResponse>**](ClubPricingPeriodResponse.md) | | [default to undefined]
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import { ClubHoursSettingsResponse } from '@tennac-booking/sdk';
|
|
15
|
-
|
|
16
|
-
const instance: ClubHoursSettingsResponse = {
|
|
17
|
-
schedule,
|
|
18
|
-
pricingPeriods,
|
|
19
|
-
};
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# ClubLocationSettings
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**address** | **string** | | [optional] [default to undefined]
|
|
9
|
-
**zipCode** | **string** | | [optional] [default to undefined]
|
|
10
|
-
**city** | **string** | | [optional] [default to undefined]
|
|
11
|
-
**country** | **string** | | [optional] [default to undefined]
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import { ClubLocationSettings } from '@tennac-booking/sdk';
|
|
17
|
-
|
|
18
|
-
const instance: ClubLocationSettings = {
|
|
19
|
-
address,
|
|
20
|
-
zipCode,
|
|
21
|
-
city,
|
|
22
|
-
country,
|
|
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,36 +0,0 @@
|
|
|
1
|
-
# ClubPlayerBookingItem
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**id** | **string** | ID de la réservation | [default to undefined]
|
|
9
|
-
**startDate** | **string** | Date de début de la réservation | [default to undefined]
|
|
10
|
-
**endDate** | **string** | Date de fin de la réservation | [default to undefined]
|
|
11
|
-
**location** | **string** | Nom du terrain ou emplacement | [default to undefined]
|
|
12
|
-
**sport** | **string** | Nom du sport associé | [default to undefined]
|
|
13
|
-
**status** | **string** | Statut de la réservation | [default to undefined]
|
|
14
|
-
**totalPrice** | **number** | Prix total de la réservation en centimes | [default to undefined]
|
|
15
|
-
**isCreator** | **boolean** | Indique si le joueur est le créateur de la réservation | [default to undefined]
|
|
16
|
-
**participantsCount** | **number** | Nombre total de participants | [default to undefined]
|
|
17
|
-
|
|
18
|
-
## Example
|
|
19
|
-
|
|
20
|
-
```typescript
|
|
21
|
-
import { ClubPlayerBookingItem } from '@tennac-booking/sdk';
|
|
22
|
-
|
|
23
|
-
const instance: ClubPlayerBookingItem = {
|
|
24
|
-
id,
|
|
25
|
-
startDate,
|
|
26
|
-
endDate,
|
|
27
|
-
location,
|
|
28
|
-
sport,
|
|
29
|
-
status,
|
|
30
|
-
totalPrice,
|
|
31
|
-
isCreator,
|
|
32
|
-
participantsCount,
|
|
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,28 +0,0 @@
|
|
|
1
|
-
# ClubPlayerBookingsPagination
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**page** | **number** | Page courante (1-based) | [default to undefined]
|
|
9
|
-
**pageSize** | **number** | Nombre d\'éléments par page | [default to undefined]
|
|
10
|
-
**totalItems** | **number** | Nombre total d\'éléments disponibles | [default to undefined]
|
|
11
|
-
**totalPages** | **number** | Nombre total de pages disponibles | [default to undefined]
|
|
12
|
-
**hasMore** | **boolean** | Existence d\'une page suivante | [default to undefined]
|
|
13
|
-
|
|
14
|
-
## Example
|
|
15
|
-
|
|
16
|
-
```typescript
|
|
17
|
-
import { ClubPlayerBookingsPagination } from '@tennac-booking/sdk';
|
|
18
|
-
|
|
19
|
-
const instance: ClubPlayerBookingsPagination = {
|
|
20
|
-
page,
|
|
21
|
-
pageSize,
|
|
22
|
-
totalItems,
|
|
23
|
-
totalPages,
|
|
24
|
-
hasMore,
|
|
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)
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# ClubPlayerBookingsResponse
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**upcomingBookings** | [**Array<ClubPlayerBookingItem>**](ClubPlayerBookingItem.md) | Réservations à venir | [default to undefined]
|
|
9
|
-
**pastBookings** | [**Array<ClubPlayerBookingItem>**](ClubPlayerBookingItem.md) | Réservations passées | [default to undefined]
|
|
10
|
-
**pastPagination** | [**ClubPlayerBookingsPagination**](ClubPlayerBookingsPagination.md) | | [optional] [default to undefined]
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import { ClubPlayerBookingsResponse } from '@tennac-booking/sdk';
|
|
16
|
-
|
|
17
|
-
const instance: ClubPlayerBookingsResponse = {
|
|
18
|
-
upcomingBookings,
|
|
19
|
-
pastBookings,
|
|
20
|
-
pastPagination,
|
|
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)
|