@tennac-booking/sdk 1.0.21 → 1.0.23
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 +11 -6
- package/README.md +54 -36
- package/api.ts +2620 -1296
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1554 -818
- package/dist/api.js +1874 -932
- 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 +1554 -818
- package/dist/esm/api.js +1854 -912
- 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 +2 -0
- package/docs/AdminClubAnalyticsApi.md +249 -0
- package/docs/AdminClubSlotsApi.md +120 -0
- package/docs/AdminClubSubscriptionsApi.md +394 -0
- package/docs/AdminClubsApi.md +82 -20
- package/docs/BookingPopulated.md +28 -0
- package/docs/BookingPopulatedPaymentByPlayersStatusInner.md +22 -0
- package/docs/BookingPopulatedPaymentByPlayersStatusInnerInvoicesInner.md +24 -0
- package/docs/BookingPopulatedSlotId.md +26 -0
- package/docs/{CheckInPlayersRequest.md → BookingPopulatedSlotIdCourtId.md} +7 -5
- package/docs/BookingPopulatedUserId.md +24 -0
- package/docs/ClubAnalyticsApi.md +4 -16
- package/docs/{GetAllSportsRequest.md → DeleteClub200Response.md} +5 -5
- package/docs/{CancelBookingRequest.md → DeleteClubSettings200Response.md} +5 -5
- package/docs/GetLastSixMonthsTurnover200ResponseInner.md +3 -5
- package/docs/ManagerBookingsApi.md +0 -118
- package/docs/ManagerClubCourtsApi.md +4 -14
- package/docs/ManagerClubSettingsApi.md +172 -0
- package/docs/ManagerClubSlotsApi.md +2 -8
- package/docs/ManagerClubSubscriptionsApi.md +7 -28
- package/docs/ManagerClubsApi.md +14 -41
- package/docs/ManagerSportsApi.md +55 -0
- package/docs/StaffClubAnalyticsApi.md +14 -14
- package/docs/StaffClubBookingsApi.md +5 -12
- package/docs/StaffClubsApi.md +3 -10
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/BookingsApi.md +0 -68
- package/docs/StaffClubSettingsApi.md +0 -54
- package/docs/StaffSportsApi.md +0 -62
package/dist/esm/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Pandook API
|
|
3
3
|
* API for managing pickle ball games and players
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.23
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pandook API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.23
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Pandook API
|
|
3
3
|
* API for managing pickle ball games and players
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.23
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pandook API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.23
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Pandook API
|
|
3
3
|
* API for managing pickle ball games and players
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.23
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pandook API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.23
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Pandook API
|
|
3
3
|
* API for managing pickle ball games and players
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.23
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pandook API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.23
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Pandook API
|
|
3
3
|
* API for managing pickle ball games and players
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.
|
|
5
|
+
* The version of the OpenAPI document: 1.0.23
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Pandook API
|
|
6
6
|
* API for managing pickle ball games and players
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.
|
|
8
|
+
* The version of the OpenAPI document: 1.0.23
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/docs/ActiveClub.md
CHANGED
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**_id** | **string** | | [optional] [default to undefined]
|
|
9
9
|
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**paymentFeature** | **boolean** | | [optional] [default to undefined]
|
|
10
11
|
|
|
11
12
|
## Example
|
|
12
13
|
|
|
@@ -16,6 +17,7 @@ import { ActiveClub } from '@tennac-booking/sdk';
|
|
|
16
17
|
const instance: ActiveClub = {
|
|
17
18
|
_id,
|
|
18
19
|
name,
|
|
20
|
+
paymentFeature,
|
|
19
21
|
};
|
|
20
22
|
```
|
|
21
23
|
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
# AdminClubAnalyticsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getDailyTurnOverAdmin**](#getdailyturnoveradmin) | **GET** /api/clubs/{id}/turnover/daily | Chiffre d\'affaires quotidien (Admin)|
|
|
8
|
+
|[**getInvoicesAdmin**](#getinvoicesadmin) | **GET** /api/clubs/{id}/invoices | Récupérer les factures d\'un club (Admin)|
|
|
9
|
+
|[**getMonthlyTurnOverAdmin**](#getmonthlyturnoveradmin) | **GET** /api/clubs/{id}/turnover/monthly | Chiffre d\'affaires mensuel (Admin)|
|
|
10
|
+
|[**getYearlyTurnOverAdmin**](#getyearlyturnoveradmin) | **GET** /api/clubs/{id}/turnover/yearly | Chiffre d\'affaires annuel (Admin)|
|
|
11
|
+
|
|
12
|
+
# **getDailyTurnOverAdmin**
|
|
13
|
+
> DailyTurnoverResponse getDailyTurnOverAdmin()
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import {
|
|
20
|
+
AdminClubAnalyticsApi,
|
|
21
|
+
Configuration
|
|
22
|
+
} from '@tennac-booking/sdk';
|
|
23
|
+
|
|
24
|
+
const configuration = new Configuration();
|
|
25
|
+
const apiInstance = new AdminClubAnalyticsApi(configuration);
|
|
26
|
+
|
|
27
|
+
let id: string; //ID du club (default to undefined)
|
|
28
|
+
let date: string; //Date (YYYY-MM-DD) (default to undefined)
|
|
29
|
+
|
|
30
|
+
const { status, data } = await apiInstance.getDailyTurnOverAdmin(
|
|
31
|
+
id,
|
|
32
|
+
date
|
|
33
|
+
);
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Parameters
|
|
37
|
+
|
|
38
|
+
|Name | Type | Description | Notes|
|
|
39
|
+
|------------- | ------------- | ------------- | -------------|
|
|
40
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
41
|
+
| **date** | [**string**] | Date (YYYY-MM-DD) | defaults to undefined|
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Return type
|
|
45
|
+
|
|
46
|
+
**DailyTurnoverResponse**
|
|
47
|
+
|
|
48
|
+
### Authorization
|
|
49
|
+
|
|
50
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
51
|
+
|
|
52
|
+
### HTTP request headers
|
|
53
|
+
|
|
54
|
+
- **Content-Type**: Not defined
|
|
55
|
+
- **Accept**: application/json
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### HTTP response details
|
|
59
|
+
| Status code | Description | Response headers |
|
|
60
|
+
|-------------|-------------|------------------|
|
|
61
|
+
|**200** | Chiffre d\'affaires quotidien | - |
|
|
62
|
+
|**400** | Requête invalide | - |
|
|
63
|
+
|**401** | Non autorisé | - |
|
|
64
|
+
|**500** | Erreur serveur interne | - |
|
|
65
|
+
|
|
66
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
67
|
+
|
|
68
|
+
# **getInvoicesAdmin**
|
|
69
|
+
> InvoicesResponse getInvoicesAdmin()
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
### Example
|
|
73
|
+
|
|
74
|
+
```typescript
|
|
75
|
+
import {
|
|
76
|
+
AdminClubAnalyticsApi,
|
|
77
|
+
Configuration
|
|
78
|
+
} from '@tennac-booking/sdk';
|
|
79
|
+
|
|
80
|
+
const configuration = new Configuration();
|
|
81
|
+
const apiInstance = new AdminClubAnalyticsApi(configuration);
|
|
82
|
+
|
|
83
|
+
let id: string; //ID du club (default to undefined)
|
|
84
|
+
let page: number; // (optional) (default to 1)
|
|
85
|
+
let limit: number; // (optional) (default to 10)
|
|
86
|
+
let status: 'pending' | 'paid' | 'failed' | 'authorized' | 'canceled' | 'expired'; // (optional) (default to undefined)
|
|
87
|
+
let startDate: string; // (optional) (default to undefined)
|
|
88
|
+
let endDate: string; // (optional) (default to undefined)
|
|
89
|
+
|
|
90
|
+
const { status, data } = await apiInstance.getInvoicesAdmin(
|
|
91
|
+
id,
|
|
92
|
+
page,
|
|
93
|
+
limit,
|
|
94
|
+
status,
|
|
95
|
+
startDate,
|
|
96
|
+
endDate
|
|
97
|
+
);
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Parameters
|
|
101
|
+
|
|
102
|
+
|Name | Type | Description | Notes|
|
|
103
|
+
|------------- | ------------- | ------------- | -------------|
|
|
104
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
105
|
+
| **page** | [**number**] | | (optional) defaults to 1|
|
|
106
|
+
| **limit** | [**number**] | | (optional) defaults to 10|
|
|
107
|
+
| **status** | [**'pending' | 'paid' | 'failed' | 'authorized' | 'canceled' | 'expired'**]**Array<'pending' | 'paid' | 'failed' | 'authorized' | 'canceled' | 'expired'>** | | (optional) defaults to undefined|
|
|
108
|
+
| **startDate** | [**string**] | | (optional) defaults to undefined|
|
|
109
|
+
| **endDate** | [**string**] | | (optional) defaults to undefined|
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
### Return type
|
|
113
|
+
|
|
114
|
+
**InvoicesResponse**
|
|
115
|
+
|
|
116
|
+
### Authorization
|
|
117
|
+
|
|
118
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
119
|
+
|
|
120
|
+
### HTTP request headers
|
|
121
|
+
|
|
122
|
+
- **Content-Type**: Not defined
|
|
123
|
+
- **Accept**: application/json
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
### HTTP response details
|
|
127
|
+
| Status code | Description | Response headers |
|
|
128
|
+
|-------------|-------------|------------------|
|
|
129
|
+
|**200** | Liste des factures | - |
|
|
130
|
+
|**401** | Non autorisé | - |
|
|
131
|
+
|**500** | Erreur serveur interne | - |
|
|
132
|
+
|
|
133
|
+
[[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)
|
|
134
|
+
|
|
135
|
+
# **getMonthlyTurnOverAdmin**
|
|
136
|
+
> MonthlyTurnoverResponse getMonthlyTurnOverAdmin()
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
### Example
|
|
140
|
+
|
|
141
|
+
```typescript
|
|
142
|
+
import {
|
|
143
|
+
AdminClubAnalyticsApi,
|
|
144
|
+
Configuration
|
|
145
|
+
} from '@tennac-booking/sdk';
|
|
146
|
+
|
|
147
|
+
const configuration = new Configuration();
|
|
148
|
+
const apiInstance = new AdminClubAnalyticsApi(configuration);
|
|
149
|
+
|
|
150
|
+
let id: string; //ID du club (default to undefined)
|
|
151
|
+
let year: number; //Année (default to undefined)
|
|
152
|
+
let month: number; //Mois (1-12) (default to undefined)
|
|
153
|
+
|
|
154
|
+
const { status, data } = await apiInstance.getMonthlyTurnOverAdmin(
|
|
155
|
+
id,
|
|
156
|
+
year,
|
|
157
|
+
month
|
|
158
|
+
);
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
### Parameters
|
|
162
|
+
|
|
163
|
+
|Name | Type | Description | Notes|
|
|
164
|
+
|------------- | ------------- | ------------- | -------------|
|
|
165
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
166
|
+
| **year** | [**number**] | Année | defaults to undefined|
|
|
167
|
+
| **month** | [**number**] | Mois (1-12) | defaults to undefined|
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
### Return type
|
|
171
|
+
|
|
172
|
+
**MonthlyTurnoverResponse**
|
|
173
|
+
|
|
174
|
+
### Authorization
|
|
175
|
+
|
|
176
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
177
|
+
|
|
178
|
+
### HTTP request headers
|
|
179
|
+
|
|
180
|
+
- **Content-Type**: Not defined
|
|
181
|
+
- **Accept**: application/json
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
### HTTP response details
|
|
185
|
+
| Status code | Description | Response headers |
|
|
186
|
+
|-------------|-------------|------------------|
|
|
187
|
+
|**200** | Chiffre d\'affaires mensuel | - |
|
|
188
|
+
|**400** | Requête invalide | - |
|
|
189
|
+
|**401** | Non autorisé | - |
|
|
190
|
+
|**500** | Erreur serveur interne | - |
|
|
191
|
+
|
|
192
|
+
[[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)
|
|
193
|
+
|
|
194
|
+
# **getYearlyTurnOverAdmin**
|
|
195
|
+
> YearlyTurnoverResponse getYearlyTurnOverAdmin()
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
### Example
|
|
199
|
+
|
|
200
|
+
```typescript
|
|
201
|
+
import {
|
|
202
|
+
AdminClubAnalyticsApi,
|
|
203
|
+
Configuration
|
|
204
|
+
} from '@tennac-booking/sdk';
|
|
205
|
+
|
|
206
|
+
const configuration = new Configuration();
|
|
207
|
+
const apiInstance = new AdminClubAnalyticsApi(configuration);
|
|
208
|
+
|
|
209
|
+
let id: string; //ID du club (default to undefined)
|
|
210
|
+
let year: number; //Année (default to undefined)
|
|
211
|
+
|
|
212
|
+
const { status, data } = await apiInstance.getYearlyTurnOverAdmin(
|
|
213
|
+
id,
|
|
214
|
+
year
|
|
215
|
+
);
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
### Parameters
|
|
219
|
+
|
|
220
|
+
|Name | Type | Description | Notes|
|
|
221
|
+
|------------- | ------------- | ------------- | -------------|
|
|
222
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
223
|
+
| **year** | [**number**] | Année | defaults to undefined|
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
### Return type
|
|
227
|
+
|
|
228
|
+
**YearlyTurnoverResponse**
|
|
229
|
+
|
|
230
|
+
### Authorization
|
|
231
|
+
|
|
232
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
233
|
+
|
|
234
|
+
### HTTP request headers
|
|
235
|
+
|
|
236
|
+
- **Content-Type**: Not defined
|
|
237
|
+
- **Accept**: application/json
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
### HTTP response details
|
|
241
|
+
| Status code | Description | Response headers |
|
|
242
|
+
|-------------|-------------|------------------|
|
|
243
|
+
|**200** | Chiffre d\'affaires annuel | - |
|
|
244
|
+
|**400** | Requête invalide | - |
|
|
245
|
+
|**401** | Non autorisé | - |
|
|
246
|
+
|**500** | Erreur serveur interne | - |
|
|
247
|
+
|
|
248
|
+
[[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)
|
|
249
|
+
|
|
@@ -4,7 +4,68 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**deleteSlotsByClubInRangeByID**](#deleteslotsbyclubinrangebyid) | **DELETE** /api/clubs/{id}/slots | Supprimer des créneaux pour un club sur une plage de dates (Admin uniquement)|
|
|
7
8
|
|[**generateSlotsForNextThreeWeeks**](#generateslotsfornextthreeweeks) | **POST** /api/clubs/{id}/generate-slots | Générer les créneaux pour les 3 semaines à venir (Admin uniquement)|
|
|
9
|
+
|[**getSlotsByClubAdmin**](#getslotsbyclubadmin) | **GET** /api/clubs/{id}/slots | Récupérer tous les créneaux d\'un club (Admin)|
|
|
10
|
+
|
|
11
|
+
# **deleteSlotsByClubInRangeByID**
|
|
12
|
+
> DeleteSlotsResponse deleteSlotsByClubInRangeByID()
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
AdminClubSlotsApi,
|
|
20
|
+
Configuration
|
|
21
|
+
} from '@tennac-booking/sdk';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new AdminClubSlotsApi(configuration);
|
|
25
|
+
|
|
26
|
+
let id: string; //ID du club (default to undefined)
|
|
27
|
+
let start: string; //Date de début (format ISO) (default to undefined)
|
|
28
|
+
let end: string; //Date de fin (format ISO) (default to undefined)
|
|
29
|
+
|
|
30
|
+
const { status, data } = await apiInstance.deleteSlotsByClubInRangeByID(
|
|
31
|
+
id,
|
|
32
|
+
start,
|
|
33
|
+
end
|
|
34
|
+
);
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Parameters
|
|
38
|
+
|
|
39
|
+
|Name | Type | Description | Notes|
|
|
40
|
+
|------------- | ------------- | ------------- | -------------|
|
|
41
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
42
|
+
| **start** | [**string**] | Date de début (format ISO) | defaults to undefined|
|
|
43
|
+
| **end** | [**string**] | Date de fin (format ISO) | defaults to undefined|
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### Return type
|
|
47
|
+
|
|
48
|
+
**DeleteSlotsResponse**
|
|
49
|
+
|
|
50
|
+
### Authorization
|
|
51
|
+
|
|
52
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
53
|
+
|
|
54
|
+
### HTTP request headers
|
|
55
|
+
|
|
56
|
+
- **Content-Type**: Not defined
|
|
57
|
+
- **Accept**: application/json
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
### HTTP response details
|
|
61
|
+
| Status code | Description | Response headers |
|
|
62
|
+
|-------------|-------------|------------------|
|
|
63
|
+
|**200** | Créneaux supprimés avec succès | - |
|
|
64
|
+
|**400** | Requête invalide | - |
|
|
65
|
+
|**401** | Non autorisé | - |
|
|
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)
|
|
8
69
|
|
|
9
70
|
# **generateSlotsForNextThreeWeeks**
|
|
10
71
|
> GenerateSlotsResponse generateSlotsForNextThreeWeeks()
|
|
@@ -60,3 +121,62 @@ const { status, data } = await apiInstance.generateSlotsForNextThreeWeeks(
|
|
|
60
121
|
|
|
61
122
|
[[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)
|
|
62
123
|
|
|
124
|
+
# **getSlotsByClubAdmin**
|
|
125
|
+
> SlotsResponse getSlotsByClubAdmin()
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
### Example
|
|
129
|
+
|
|
130
|
+
```typescript
|
|
131
|
+
import {
|
|
132
|
+
AdminClubSlotsApi,
|
|
133
|
+
Configuration
|
|
134
|
+
} from '@tennac-booking/sdk';
|
|
135
|
+
|
|
136
|
+
const configuration = new Configuration();
|
|
137
|
+
const apiInstance = new AdminClubSlotsApi(configuration);
|
|
138
|
+
|
|
139
|
+
let id: string; //ID du club (default to undefined)
|
|
140
|
+
let start: string; //Date de début (format ISO) (optional) (default to undefined)
|
|
141
|
+
let end: string; //Date de fin (format ISO) (optional) (default to undefined)
|
|
142
|
+
|
|
143
|
+
const { status, data } = await apiInstance.getSlotsByClubAdmin(
|
|
144
|
+
id,
|
|
145
|
+
start,
|
|
146
|
+
end
|
|
147
|
+
);
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
### Parameters
|
|
151
|
+
|
|
152
|
+
|Name | Type | Description | Notes|
|
|
153
|
+
|------------- | ------------- | ------------- | -------------|
|
|
154
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
155
|
+
| **start** | [**string**] | Date de début (format ISO) | (optional) defaults to undefined|
|
|
156
|
+
| **end** | [**string**] | Date de fin (format ISO) | (optional) defaults to undefined|
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
### Return type
|
|
160
|
+
|
|
161
|
+
**SlotsResponse**
|
|
162
|
+
|
|
163
|
+
### Authorization
|
|
164
|
+
|
|
165
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
166
|
+
|
|
167
|
+
### HTTP request headers
|
|
168
|
+
|
|
169
|
+
- **Content-Type**: Not defined
|
|
170
|
+
- **Accept**: application/json
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
### HTTP response details
|
|
174
|
+
| Status code | Description | Response headers |
|
|
175
|
+
|-------------|-------------|------------------|
|
|
176
|
+
|**200** | Liste des créneaux du club | - |
|
|
177
|
+
|**400** | Requête invalide | - |
|
|
178
|
+
|**401** | Non autorisé | - |
|
|
179
|
+
|**500** | Erreur serveur interne | - |
|
|
180
|
+
|
|
181
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
182
|
+
|