@tennac-booking/sdk 1.0.12 → 1.0.14
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 +45 -6
- package/README.md +76 -43
- package/api.ts +4226 -2326
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +2665 -1290
- package/dist/api.js +2783 -1672
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +2665 -1290
- package/dist/esm/api.js +2657 -1604
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/ActiveClub.md +22 -0
- package/docs/ActiveClubListResponse.md +20 -0
- package/docs/AdminClubSlotsApi.md +62 -0
- package/docs/AdminClubsApi.md +108 -0
- package/docs/ApiErrorResponse.md +1 -1
- package/docs/BookingsApi.md +4 -60
- package/docs/ChangePasswordResponse.md +1 -1
- package/docs/{ClubSportsApi.md → ClubAnalyticsApi.md} +20 -27
- package/docs/ClubBookingsApi.md +59 -0
- package/docs/ClubInfoResponse.md +6 -6
- package/docs/ClubResponse.md +6 -6
- package/docs/ClubRoleResponse.md +6 -6
- package/docs/ClubRolesApi.md +8 -8
- package/docs/ClubSettings.md +7 -1
- package/docs/ClubSlotsApi.md +0 -172
- package/docs/ClubsApi.md +6 -379
- package/docs/ClubsResponse.md +22 -0
- package/docs/CourtResponse.md +7 -7
- package/docs/CourtStatus.md +5 -2
- package/docs/CreateClubRequest.md +12 -10
- package/docs/CreateClubSettingsRequest.md +28 -0
- package/docs/CreateCourtRequest.md +2 -0
- package/docs/CreatePriceRequest.md +4 -4
- package/docs/CreateSportRequest.md +4 -0
- package/docs/CreateSubscriptionPlanRequest.md +3 -3
- package/docs/DeleteClubSettingsRequest.md +20 -0
- package/docs/{DeleteClub200Response.md → DeleteSlotsResponse.md} +3 -3
- package/docs/{GenerateSlotsForNextThreeWeeks201Response.md → DeleteSport200Response.md} +3 -3
- package/docs/GenerateSlotsResponse.md +20 -0
- package/docs/GetActiveClubs200Response.md +20 -0
- package/docs/GetClubInfos200Response.md +30 -0
- package/docs/GetCourtsByClubAndSport200Response.md +26 -0
- package/docs/GetLastSixMonthsTurnover200ResponseInner.md +24 -0
- package/docs/GetNumberOfClubUsers200Response.md +20 -0
- package/docs/{GetUserRolesInClubs200Response.md → GetUserRolesResponse.md} +4 -4
- package/docs/GetUserRolesResponseRolesInner.md +26 -0
- package/docs/GetUserSubscriptionsResponse.md +22 -0
- package/docs/GoogleSignInRequestBody.md +20 -0
- package/docs/GoogleSignInResponse.md +24 -0
- package/docs/InitiateSubscriptionSessionRequestBody.md +26 -0
- package/docs/InitiateSubscriptionSessionResponse.md +22 -0
- package/docs/{ClubCourtsApi.md → ManagerClubCourtsApi.md} +5 -5
- package/docs/ManagerClubSlotsApi.md +125 -0
- package/docs/ManagerClubsApi.md +280 -0
- package/docs/PriceResponse.md +2 -8
- package/docs/RefreshTokenResponse.md +2 -6
- package/docs/SlotResponse.md +2 -8
- package/docs/SportResponse.md +0 -2
- package/docs/SportsApi.md +10 -120
- package/docs/StaffClubSettingsApi.md +62 -0
- package/docs/StaffSportsApi.md +62 -0
- package/docs/SubscribeToClubRequestBody.md +22 -0
- package/docs/SubscriptionPlanResponse.md +4 -8
- package/docs/SubscriptionResponse.md +36 -0
- package/docs/UpdateClubSettingsRequest.md +28 -0
- package/docs/UpdateCustomerRequestBody.md +26 -0
- package/docs/UpdateCustomerRequestBodyAddress.md +30 -0
- package/docs/UpdateCustomerResponse.md +22 -0
- package/docs/UpdateCustomerResponseCustomer.md +28 -0
- package/docs/UpdateSportRequest.md +4 -0
- package/docs/UpdateSubscriptionPlanRequest.md +3 -3
- package/docs/UpdateSubscriptionPlanResponse.md +2 -2
- package/docs/{ClubSettingsApi.md → UserAuthenticationApi.md} +54 -55
- package/docs/UserBookingsApi.md +63 -0
- package/docs/UserClubCourtsApi.md +64 -0
- package/docs/UserClubSlotsApi.md +60 -0
- package/docs/UserClubSportsApi.md +60 -0
- package/docs/UserClubsApi.md +53 -0
- package/docs/UserProfileApi.md +271 -0
- package/docs/UserResponse.md +8 -14
- package/docs/UserSubscriptionsApi.md +222 -0
- package/docs/UsersApi.md +22 -324
- package/docs/UsersResponse.md +22 -0
- package/index.ts +1 -1
- package/package.json +32 -1
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
# ManagerClubSlotsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**deleteSlotsByClubInRange**](#deleteslotsbyclubinrange) | **DELETE** /api/clubs/{id}/slots | Supprimer des créneaux pour un club sur une plage de dates|
|
|
8
|
+
|[**getSlotsByClub**](#getslotsbyclub) | **GET** /api/clubs/{id}/slots | Récupérer tous les créneaux pour un club|
|
|
9
|
+
|
|
10
|
+
# **deleteSlotsByClubInRange**
|
|
11
|
+
> DeleteSlotsByClubInRange200Response deleteSlotsByClubInRange()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import {
|
|
18
|
+
ManagerClubSlotsApi,
|
|
19
|
+
Configuration
|
|
20
|
+
} from '@tennac-booking/sdk';
|
|
21
|
+
|
|
22
|
+
const configuration = new Configuration();
|
|
23
|
+
const apiInstance = new ManagerClubSlotsApi(configuration);
|
|
24
|
+
|
|
25
|
+
let id: string; //ID du club (default to undefined)
|
|
26
|
+
let start: string; //Date de début (format ISO) (default to undefined)
|
|
27
|
+
let end: string; //Date de fin (format ISO) (default to undefined)
|
|
28
|
+
|
|
29
|
+
const { status, data } = await apiInstance.deleteSlotsByClubInRange(
|
|
30
|
+
id,
|
|
31
|
+
start,
|
|
32
|
+
end
|
|
33
|
+
);
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Parameters
|
|
37
|
+
|
|
38
|
+
|Name | Type | Description | Notes|
|
|
39
|
+
|------------- | ------------- | ------------- | -------------|
|
|
40
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
41
|
+
| **start** | [**string**] | Date de début (format ISO) | defaults to undefined|
|
|
42
|
+
| **end** | [**string**] | Date de fin (format ISO) | defaults to undefined|
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Return type
|
|
46
|
+
|
|
47
|
+
**DeleteSlotsByClubInRange200Response**
|
|
48
|
+
|
|
49
|
+
### Authorization
|
|
50
|
+
|
|
51
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
52
|
+
|
|
53
|
+
### HTTP request headers
|
|
54
|
+
|
|
55
|
+
- **Content-Type**: Not defined
|
|
56
|
+
- **Accept**: application/json
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### HTTP response details
|
|
60
|
+
| Status code | Description | Response headers |
|
|
61
|
+
|-------------|-------------|------------------|
|
|
62
|
+
|**200** | Créneaux supprimés avec succès | - |
|
|
63
|
+
|**400** | Requête invalide | - |
|
|
64
|
+
|**500** | Erreur serveur interne | - |
|
|
65
|
+
|
|
66
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
67
|
+
|
|
68
|
+
# **getSlotsByClub**
|
|
69
|
+
> SlotsResponse getSlotsByClub()
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
### Example
|
|
73
|
+
|
|
74
|
+
```typescript
|
|
75
|
+
import {
|
|
76
|
+
ManagerClubSlotsApi,
|
|
77
|
+
Configuration
|
|
78
|
+
} from '@tennac-booking/sdk';
|
|
79
|
+
|
|
80
|
+
const configuration = new Configuration();
|
|
81
|
+
const apiInstance = new ManagerClubSlotsApi(configuration);
|
|
82
|
+
|
|
83
|
+
let id: string; //ID du club (default to undefined)
|
|
84
|
+
let start: string; //Date de début (format ISO) (optional) (default to undefined)
|
|
85
|
+
let end: string; //Date de fin (format ISO) (optional) (default to undefined)
|
|
86
|
+
|
|
87
|
+
const { status, data } = await apiInstance.getSlotsByClub(
|
|
88
|
+
id,
|
|
89
|
+
start,
|
|
90
|
+
end
|
|
91
|
+
);
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Parameters
|
|
95
|
+
|
|
96
|
+
|Name | Type | Description | Notes|
|
|
97
|
+
|------------- | ------------- | ------------- | -------------|
|
|
98
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
99
|
+
| **start** | [**string**] | Date de début (format ISO) | (optional) defaults to undefined|
|
|
100
|
+
| **end** | [**string**] | Date de fin (format ISO) | (optional) defaults to undefined|
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
### Return type
|
|
104
|
+
|
|
105
|
+
**SlotsResponse**
|
|
106
|
+
|
|
107
|
+
### Authorization
|
|
108
|
+
|
|
109
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
110
|
+
|
|
111
|
+
### HTTP request headers
|
|
112
|
+
|
|
113
|
+
- **Content-Type**: Not defined
|
|
114
|
+
- **Accept**: application/json
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
### HTTP response details
|
|
118
|
+
| Status code | Description | Response headers |
|
|
119
|
+
|-------------|-------------|------------------|
|
|
120
|
+
|**200** | Liste des créneaux du club | - |
|
|
121
|
+
|**400** | Requête invalide | - |
|
|
122
|
+
|**500** | Erreur serveur interne | - |
|
|
123
|
+
|
|
124
|
+
[[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)
|
|
125
|
+
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
# ManagerClubsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**addClubMember**](#addclubmember) | **PUT** /api/clubs/{id}/add_members | Ajouter un membre à un club|
|
|
8
|
+
|[**getClubInfo**](#getclubinfo) | **GET** /api/clubs/{id} | Récupérer les informations d\'un club|
|
|
9
|
+
|[**getClubMembers**](#getclubmembers) | **GET** /api/clubs/{id}/members | Récupérer les membres d\'un club|
|
|
10
|
+
|[**getClubRoles**](#getclubroles) | **GET** /api/clubs/{id}/roles | Récupérer les rôles d\'un club|
|
|
11
|
+
|[**updateClub**](#updateclub) | **PUT** /api/clubs/{id} | Mettre à jour un club existant|
|
|
12
|
+
|
|
13
|
+
# **addClubMember**
|
|
14
|
+
> AddClubMemberResponse addClubMember(addClubMemberRequest)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import {
|
|
21
|
+
ManagerClubsApi,
|
|
22
|
+
Configuration,
|
|
23
|
+
AddClubMemberRequest
|
|
24
|
+
} from '@tennac-booking/sdk';
|
|
25
|
+
|
|
26
|
+
const configuration = new Configuration();
|
|
27
|
+
const apiInstance = new ManagerClubsApi(configuration);
|
|
28
|
+
|
|
29
|
+
let id: string; //ID du club (default to undefined)
|
|
30
|
+
let addClubMemberRequest: AddClubMemberRequest; //
|
|
31
|
+
|
|
32
|
+
const { status, data } = await apiInstance.addClubMember(
|
|
33
|
+
id,
|
|
34
|
+
addClubMemberRequest
|
|
35
|
+
);
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Parameters
|
|
39
|
+
|
|
40
|
+
|Name | Type | Description | Notes|
|
|
41
|
+
|------------- | ------------- | ------------- | -------------|
|
|
42
|
+
| **addClubMemberRequest** | **AddClubMemberRequest**| | |
|
|
43
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### Return type
|
|
47
|
+
|
|
48
|
+
**AddClubMemberResponse**
|
|
49
|
+
|
|
50
|
+
### Authorization
|
|
51
|
+
|
|
52
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
53
|
+
|
|
54
|
+
### HTTP request headers
|
|
55
|
+
|
|
56
|
+
- **Content-Type**: application/json
|
|
57
|
+
- **Accept**: application/json
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
### HTTP response details
|
|
61
|
+
| Status code | Description | Response headers |
|
|
62
|
+
|-------------|-------------|------------------|
|
|
63
|
+
|**201** | Membre ajouté avec succès | - |
|
|
64
|
+
|**400** | Requête invalide | - |
|
|
65
|
+
|**404** | Ressource non trouvée | - |
|
|
66
|
+
|**500** | Erreur serveur interne | - |
|
|
67
|
+
|
|
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)
|
|
69
|
+
|
|
70
|
+
# **getClubInfo**
|
|
71
|
+
> ClubInfoResponse getClubInfo()
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
### Example
|
|
75
|
+
|
|
76
|
+
```typescript
|
|
77
|
+
import {
|
|
78
|
+
ManagerClubsApi,
|
|
79
|
+
Configuration
|
|
80
|
+
} from '@tennac-booking/sdk';
|
|
81
|
+
|
|
82
|
+
const configuration = new Configuration();
|
|
83
|
+
const apiInstance = new ManagerClubsApi(configuration);
|
|
84
|
+
|
|
85
|
+
let id: string; //ID du club (default to undefined)
|
|
86
|
+
|
|
87
|
+
const { status, data } = await apiInstance.getClubInfo(
|
|
88
|
+
id
|
|
89
|
+
);
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Parameters
|
|
93
|
+
|
|
94
|
+
|Name | Type | Description | Notes|
|
|
95
|
+
|------------- | ------------- | ------------- | -------------|
|
|
96
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
### Return type
|
|
100
|
+
|
|
101
|
+
**ClubInfoResponse**
|
|
102
|
+
|
|
103
|
+
### Authorization
|
|
104
|
+
|
|
105
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
106
|
+
|
|
107
|
+
### HTTP request headers
|
|
108
|
+
|
|
109
|
+
- **Content-Type**: Not defined
|
|
110
|
+
- **Accept**: application/json
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
### HTTP response details
|
|
114
|
+
| Status code | Description | Response headers |
|
|
115
|
+
|-------------|-------------|------------------|
|
|
116
|
+
|**200** | Informations du club | - |
|
|
117
|
+
|**404** | Ressource non trouvée | - |
|
|
118
|
+
|**500** | Erreur serveur interne | - |
|
|
119
|
+
|
|
120
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
121
|
+
|
|
122
|
+
# **getClubMembers**
|
|
123
|
+
> ClubMembersResponse getClubMembers()
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
### Example
|
|
127
|
+
|
|
128
|
+
```typescript
|
|
129
|
+
import {
|
|
130
|
+
ManagerClubsApi,
|
|
131
|
+
Configuration
|
|
132
|
+
} from '@tennac-booking/sdk';
|
|
133
|
+
|
|
134
|
+
const configuration = new Configuration();
|
|
135
|
+
const apiInstance = new ManagerClubsApi(configuration);
|
|
136
|
+
|
|
137
|
+
let id: string; //ID du club (default to undefined)
|
|
138
|
+
|
|
139
|
+
const { status, data } = await apiInstance.getClubMembers(
|
|
140
|
+
id
|
|
141
|
+
);
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### Parameters
|
|
145
|
+
|
|
146
|
+
|Name | Type | Description | Notes|
|
|
147
|
+
|------------- | ------------- | ------------- | -------------|
|
|
148
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
### Return type
|
|
152
|
+
|
|
153
|
+
**ClubMembersResponse**
|
|
154
|
+
|
|
155
|
+
### Authorization
|
|
156
|
+
|
|
157
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
158
|
+
|
|
159
|
+
### HTTP request headers
|
|
160
|
+
|
|
161
|
+
- **Content-Type**: Not defined
|
|
162
|
+
- **Accept**: application/json
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
### HTTP response details
|
|
166
|
+
| Status code | Description | Response headers |
|
|
167
|
+
|-------------|-------------|------------------|
|
|
168
|
+
|**200** | Liste des membres du club | - |
|
|
169
|
+
|**500** | Erreur serveur interne | - |
|
|
170
|
+
|
|
171
|
+
[[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)
|
|
172
|
+
|
|
173
|
+
# **getClubRoles**
|
|
174
|
+
> ClubRolesResponse getClubRoles()
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
### Example
|
|
178
|
+
|
|
179
|
+
```typescript
|
|
180
|
+
import {
|
|
181
|
+
ManagerClubsApi,
|
|
182
|
+
Configuration
|
|
183
|
+
} from '@tennac-booking/sdk';
|
|
184
|
+
|
|
185
|
+
const configuration = new Configuration();
|
|
186
|
+
const apiInstance = new ManagerClubsApi(configuration);
|
|
187
|
+
|
|
188
|
+
let id: string; //ID du club (default to undefined)
|
|
189
|
+
|
|
190
|
+
const { status, data } = await apiInstance.getClubRoles(
|
|
191
|
+
id
|
|
192
|
+
);
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
### Parameters
|
|
196
|
+
|
|
197
|
+
|Name | Type | Description | Notes|
|
|
198
|
+
|------------- | ------------- | ------------- | -------------|
|
|
199
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
### Return type
|
|
203
|
+
|
|
204
|
+
**ClubRolesResponse**
|
|
205
|
+
|
|
206
|
+
### Authorization
|
|
207
|
+
|
|
208
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
209
|
+
|
|
210
|
+
### HTTP request headers
|
|
211
|
+
|
|
212
|
+
- **Content-Type**: Not defined
|
|
213
|
+
- **Accept**: application/json
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
### HTTP response details
|
|
217
|
+
| Status code | Description | Response headers |
|
|
218
|
+
|-------------|-------------|------------------|
|
|
219
|
+
|**200** | Liste des rôles du club | - |
|
|
220
|
+
|**500** | Erreur serveur interne | - |
|
|
221
|
+
|
|
222
|
+
[[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)
|
|
223
|
+
|
|
224
|
+
# **updateClub**
|
|
225
|
+
> ClubResponse updateClub(updateClubRequest)
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
### Example
|
|
229
|
+
|
|
230
|
+
```typescript
|
|
231
|
+
import {
|
|
232
|
+
ManagerClubsApi,
|
|
233
|
+
Configuration,
|
|
234
|
+
UpdateClubRequest
|
|
235
|
+
} from '@tennac-booking/sdk';
|
|
236
|
+
|
|
237
|
+
const configuration = new Configuration();
|
|
238
|
+
const apiInstance = new ManagerClubsApi(configuration);
|
|
239
|
+
|
|
240
|
+
let id: string; //ID du club (default to undefined)
|
|
241
|
+
let updateClubRequest: UpdateClubRequest; //
|
|
242
|
+
|
|
243
|
+
const { status, data } = await apiInstance.updateClub(
|
|
244
|
+
id,
|
|
245
|
+
updateClubRequest
|
|
246
|
+
);
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
### Parameters
|
|
250
|
+
|
|
251
|
+
|Name | Type | Description | Notes|
|
|
252
|
+
|------------- | ------------- | ------------- | -------------|
|
|
253
|
+
| **updateClubRequest** | **UpdateClubRequest**| | |
|
|
254
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
### Return type
|
|
258
|
+
|
|
259
|
+
**ClubResponse**
|
|
260
|
+
|
|
261
|
+
### Authorization
|
|
262
|
+
|
|
263
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
264
|
+
|
|
265
|
+
### HTTP request headers
|
|
266
|
+
|
|
267
|
+
- **Content-Type**: application/json
|
|
268
|
+
- **Accept**: application/json
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
### HTTP response details
|
|
272
|
+
| Status code | Description | Response headers |
|
|
273
|
+
|-------------|-------------|------------------|
|
|
274
|
+
|**200** | Club mis à jour avec succès | - |
|
|
275
|
+
|**400** | Requête invalide | - |
|
|
276
|
+
|**404** | Ressource non trouvée | - |
|
|
277
|
+
|**500** | Erreur serveur interne | - |
|
|
278
|
+
|
|
279
|
+
[[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)
|
|
280
|
+
|
package/docs/PriceResponse.md
CHANGED
|
@@ -6,15 +6,12 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
-
**stripePriceId** | **string** | | [optional] [default to undefined]
|
|
10
9
|
**amount** | **number** | | [optional] [default to undefined]
|
|
11
10
|
**currency** | **string** | | [optional] [default to undefined]
|
|
12
11
|
**interval** | **string** | | [optional] [default to undefined]
|
|
13
12
|
**intervalCount** | **number** | | [optional] [default to undefined]
|
|
14
|
-
**
|
|
15
|
-
**productId** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**active** | **boolean** | | [optional] [default to undefined]
|
|
16
14
|
**createdAt** | **string** | | [optional] [default to undefined]
|
|
17
|
-
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
18
15
|
|
|
19
16
|
## Example
|
|
20
17
|
|
|
@@ -23,15 +20,12 @@ import { PriceResponse } from '@tennac-booking/sdk';
|
|
|
23
20
|
|
|
24
21
|
const instance: PriceResponse = {
|
|
25
22
|
id,
|
|
26
|
-
stripePriceId,
|
|
27
23
|
amount,
|
|
28
24
|
currency,
|
|
29
25
|
interval,
|
|
30
26
|
intervalCount,
|
|
31
|
-
|
|
32
|
-
productId,
|
|
27
|
+
active,
|
|
33
28
|
createdAt,
|
|
34
|
-
updatedAt,
|
|
35
29
|
};
|
|
36
30
|
```
|
|
37
31
|
|
|
@@ -5,10 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**token** | **string** | | [default to undefined]
|
|
9
|
-
**refreshToken** | **string** | | [default to undefined]
|
|
10
|
-
**sessionDuration** | **number** | | [default to undefined]
|
|
11
|
-
**sessionEnd** | **number** | | [default to undefined]
|
|
8
|
+
**token** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**refreshToken** | **string** | | [optional] [default to undefined]
|
|
12
10
|
|
|
13
11
|
## Example
|
|
14
12
|
|
|
@@ -18,8 +16,6 @@ import { RefreshTokenResponse } from '@tennac-booking/sdk';
|
|
|
18
16
|
const instance: RefreshTokenResponse = {
|
|
19
17
|
token,
|
|
20
18
|
refreshToken,
|
|
21
|
-
sessionDuration,
|
|
22
|
-
sessionEnd,
|
|
23
19
|
};
|
|
24
20
|
```
|
|
25
21
|
|
package/docs/SlotResponse.md
CHANGED
|
@@ -9,11 +9,8 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**startDate** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**endDate** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**courtId** | **string** | | [optional] [default to undefined]
|
|
12
|
-
**clubId** | **string** | | [optional] [default to undefined]
|
|
13
|
-
**sportId** | **string** | | [optional] [default to undefined]
|
|
14
|
-
**isAvailable** | **boolean** | | [optional] [default to undefined]
|
|
15
12
|
**price** | **number** | | [optional] [default to undefined]
|
|
16
|
-
**
|
|
13
|
+
**isOpen** | **boolean** | | [optional] [default to undefined]
|
|
17
14
|
**createdAt** | **string** | | [optional] [default to undefined]
|
|
18
15
|
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
19
16
|
|
|
@@ -27,11 +24,8 @@ const instance: SlotResponse = {
|
|
|
27
24
|
startDate,
|
|
28
25
|
endDate,
|
|
29
26
|
courtId,
|
|
30
|
-
clubId,
|
|
31
|
-
sportId,
|
|
32
|
-
isAvailable,
|
|
33
27
|
price,
|
|
34
|
-
|
|
28
|
+
isOpen,
|
|
35
29
|
createdAt,
|
|
36
30
|
updatedAt,
|
|
37
31
|
};
|
package/docs/SportResponse.md
CHANGED
|
@@ -10,7 +10,6 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**name** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**description** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**clubId** | **string** | | [optional] [default to undefined]
|
|
13
|
-
**isActive** | **boolean** | | [optional] [default to undefined]
|
|
14
13
|
**createdAt** | **string** | | [optional] [default to undefined]
|
|
15
14
|
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
16
15
|
|
|
@@ -25,7 +24,6 @@ const instance: SportResponse = {
|
|
|
25
24
|
name,
|
|
26
25
|
description,
|
|
27
26
|
clubId,
|
|
28
|
-
isActive,
|
|
29
27
|
createdAt,
|
|
30
28
|
updatedAt,
|
|
31
29
|
};
|
package/docs/SportsApi.md
CHANGED
|
@@ -4,67 +4,11 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
8
|
-
|[**
|
|
9
|
-
|[**getAllSports**](#getallsports) | **GET** /api/sports | Récupère la liste des sports d’un club|
|
|
10
|
-
|[**updateSport**](#updatesport) | **PUT** /api/sports/{id} | Met à jour un sport|
|
|
11
|
-
|
|
12
|
-
# **createSport**
|
|
13
|
-
> Sport createSport(createSportRequest)
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
### Example
|
|
17
|
-
|
|
18
|
-
```typescript
|
|
19
|
-
import {
|
|
20
|
-
SportsApi,
|
|
21
|
-
Configuration,
|
|
22
|
-
CreateSportRequest
|
|
23
|
-
} from '@tennac-booking/sdk';
|
|
24
|
-
|
|
25
|
-
const configuration = new Configuration();
|
|
26
|
-
const apiInstance = new SportsApi(configuration);
|
|
27
|
-
|
|
28
|
-
let createSportRequest: CreateSportRequest; //
|
|
29
|
-
|
|
30
|
-
const { status, data } = await apiInstance.createSport(
|
|
31
|
-
createSportRequest
|
|
32
|
-
);
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
### Parameters
|
|
36
|
-
|
|
37
|
-
|Name | Type | Description | Notes|
|
|
38
|
-
|------------- | ------------- | ------------- | -------------|
|
|
39
|
-
| **createSportRequest** | **CreateSportRequest**| | |
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
### Return type
|
|
43
|
-
|
|
44
|
-
**Sport**
|
|
45
|
-
|
|
46
|
-
### Authorization
|
|
47
|
-
|
|
48
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
49
|
-
|
|
50
|
-
### HTTP request headers
|
|
51
|
-
|
|
52
|
-
- **Content-Type**: application/json
|
|
53
|
-
- **Accept**: application/json
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
### HTTP response details
|
|
57
|
-
| Status code | Description | Response headers |
|
|
58
|
-
|-------------|-------------|------------------|
|
|
59
|
-
|**201** | Sport créé | - |
|
|
60
|
-
|**400** | Requête invalide | - |
|
|
61
|
-
|**401** | Non autorisé | - |
|
|
62
|
-
|**500** | Erreur serveur interne | - |
|
|
63
|
-
|
|
64
|
-
[[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)
|
|
7
|
+
|[**deleteSport**](#deletesport) | **DELETE** /api/sports/{id} | Supprimer un sport|
|
|
8
|
+
|[**updateSport**](#updatesport) | **PUT** /api/sports/{id} | Mettre à jour un sport|
|
|
65
9
|
|
|
66
10
|
# **deleteSport**
|
|
67
|
-
> deleteSport()
|
|
11
|
+
> DeleteSport200Response deleteSport()
|
|
68
12
|
|
|
69
13
|
|
|
70
14
|
### Example
|
|
@@ -94,7 +38,7 @@ const { status, data } = await apiInstance.deleteSport(
|
|
|
94
38
|
|
|
95
39
|
### Return type
|
|
96
40
|
|
|
97
|
-
|
|
41
|
+
**DeleteSport200Response**
|
|
98
42
|
|
|
99
43
|
### Authorization
|
|
100
44
|
|
|
@@ -109,69 +53,15 @@ void (empty response body)
|
|
|
109
53
|
### HTTP response details
|
|
110
54
|
| Status code | Description | Response headers |
|
|
111
55
|
|-------------|-------------|------------------|
|
|
112
|
-
|**200** | Sport supprimé | - |
|
|
113
|
-
|**401** | Non autorisé | - |
|
|
114
|
-
|**404** | Sport non trouvé | - |
|
|
115
|
-
|**500** | Erreur serveur interne | - |
|
|
116
|
-
|
|
117
|
-
[[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
|
-
|
|
119
|
-
# **getAllSports**
|
|
120
|
-
> Array<Sport> getAllSports(getAllSportsRequest)
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
### Example
|
|
124
|
-
|
|
125
|
-
```typescript
|
|
126
|
-
import {
|
|
127
|
-
SportsApi,
|
|
128
|
-
Configuration,
|
|
129
|
-
GetAllSportsRequest
|
|
130
|
-
} from '@tennac-booking/sdk';
|
|
131
|
-
|
|
132
|
-
const configuration = new Configuration();
|
|
133
|
-
const apiInstance = new SportsApi(configuration);
|
|
134
|
-
|
|
135
|
-
let getAllSportsRequest: GetAllSportsRequest; //
|
|
136
|
-
|
|
137
|
-
const { status, data } = await apiInstance.getAllSports(
|
|
138
|
-
getAllSportsRequest
|
|
139
|
-
);
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
### Parameters
|
|
143
|
-
|
|
144
|
-
|Name | Type | Description | Notes|
|
|
145
|
-
|------------- | ------------- | ------------- | -------------|
|
|
146
|
-
| **getAllSportsRequest** | **GetAllSportsRequest**| | |
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
### Return type
|
|
150
|
-
|
|
151
|
-
**Array<Sport>**
|
|
152
|
-
|
|
153
|
-
### Authorization
|
|
154
|
-
|
|
155
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
156
|
-
|
|
157
|
-
### HTTP request headers
|
|
158
|
-
|
|
159
|
-
- **Content-Type**: application/json
|
|
160
|
-
- **Accept**: application/json
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
### HTTP response details
|
|
164
|
-
| Status code | Description | Response headers |
|
|
165
|
-
|-------------|-------------|------------------|
|
|
166
|
-
|**200** | Liste des sports | - |
|
|
167
|
-
|**400** | Requête invalide | - |
|
|
56
|
+
|**200** | Sport supprimé avec succès | - |
|
|
168
57
|
|**401** | Non autorisé | - |
|
|
58
|
+
|**404** | Ressource non trouvée | - |
|
|
169
59
|
|**500** | Erreur serveur interne | - |
|
|
170
60
|
|
|
171
61
|
[[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)
|
|
172
62
|
|
|
173
63
|
# **updateSport**
|
|
174
|
-
>
|
|
64
|
+
> SportResponse updateSport(updateSportRequest)
|
|
175
65
|
|
|
176
66
|
|
|
177
67
|
### Example
|
|
@@ -205,7 +95,7 @@ const { status, data } = await apiInstance.updateSport(
|
|
|
205
95
|
|
|
206
96
|
### Return type
|
|
207
97
|
|
|
208
|
-
**
|
|
98
|
+
**SportResponse**
|
|
209
99
|
|
|
210
100
|
### Authorization
|
|
211
101
|
|
|
@@ -220,9 +110,9 @@ const { status, data } = await apiInstance.updateSport(
|
|
|
220
110
|
### HTTP response details
|
|
221
111
|
| Status code | Description | Response headers |
|
|
222
112
|
|-------------|-------------|------------------|
|
|
223
|
-
|**200** | Sport mis à jour | - |
|
|
113
|
+
|**200** | Sport mis à jour avec succès | - |
|
|
224
114
|
|**401** | Non autorisé | - |
|
|
225
|
-
|**404** |
|
|
115
|
+
|**404** | Ressource non trouvée | - |
|
|
226
116
|
|**500** | Erreur serveur interne | - |
|
|
227
117
|
|
|
228
118
|
[[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)
|