@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
|
@@ -4,13 +4,13 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**archivePriceForSubscriptionPlan**](#archivepriceforsubscriptionplan) | **DELETE** /api/clubs/
|
|
8
|
-
|[**createPriceForSubscriptionPlan**](#createpriceforsubscriptionplan) | **POST** /api/clubs/
|
|
9
|
-
|[**createSubscriptionPlanForClub**](#createsubscriptionplanforclub) | **POST** /api/clubs/
|
|
10
|
-
|[**deleteSubscriptionPlanForClub**](#deletesubscriptionplanforclub) | **DELETE** /api/clubs/
|
|
11
|
-
|[**restoreSubscriptionPlanForClub**](#restoresubscriptionplanforclub) | **POST** /api/clubs/
|
|
12
|
-
|[**restoreSubscriptionPriceForClub**](#restoresubscriptionpriceforclub) | **POST** /api/clubs/
|
|
13
|
-
|[**updateSubscriptionPlanForClub**](#updatesubscriptionplanforclub) | **PUT** /api/clubs/
|
|
7
|
+
|[**archivePriceForSubscriptionPlan**](#archivepriceforsubscriptionplan) | **DELETE** /api/clubs/subscription-plans/{priceId}/archive-price | Archiver un prix (club courant)|
|
|
8
|
+
|[**createPriceForSubscriptionPlan**](#createpriceforsubscriptionplan) | **POST** /api/clubs/subscription-plans/{productId}/prices | Créer un nouveau prix pour un plan (club courant)|
|
|
9
|
+
|[**createSubscriptionPlanForClub**](#createsubscriptionplanforclub) | **POST** /api/clubs/subscription-plans | Créer un plan d\'abonnement pour le club courant|
|
|
10
|
+
|[**deleteSubscriptionPlanForClub**](#deletesubscriptionplanforclub) | **DELETE** /api/clubs/subscription-plans/{productId} | Supprimer un plan d\'abonnement (club courant)|
|
|
11
|
+
|[**restoreSubscriptionPlanForClub**](#restoresubscriptionplanforclub) | **POST** /api/clubs/subscription-plans/{productId}/restore | Réactiver un plan d\'abonnement (club courant)|
|
|
12
|
+
|[**restoreSubscriptionPriceForClub**](#restoresubscriptionpriceforclub) | **POST** /api/clubs/subscription-plans/{priceId}/restore-price | Réactiver un prix (club courant)|
|
|
13
|
+
|[**updateSubscriptionPlanForClub**](#updatesubscriptionplanforclub) | **PUT** /api/clubs/subscription-plans/{priceId} | Mettre à jour un plan d\'abonnement (club courant)|
|
|
14
14
|
|
|
15
15
|
# **archivePriceForSubscriptionPlan**
|
|
16
16
|
> PriceResponse archivePriceForSubscriptionPlan()
|
|
@@ -27,11 +27,9 @@ import {
|
|
|
27
27
|
const configuration = new Configuration();
|
|
28
28
|
const apiInstance = new ManagerClubSubscriptionsApi(configuration);
|
|
29
29
|
|
|
30
|
-
let id: string; //ID du club (default to undefined)
|
|
31
30
|
let priceId: string; //ID du prix Stripe (default to undefined)
|
|
32
31
|
|
|
33
32
|
const { status, data } = await apiInstance.archivePriceForSubscriptionPlan(
|
|
34
|
-
id,
|
|
35
33
|
priceId
|
|
36
34
|
);
|
|
37
35
|
```
|
|
@@ -40,7 +38,6 @@ const { status, data } = await apiInstance.archivePriceForSubscriptionPlan(
|
|
|
40
38
|
|
|
41
39
|
|Name | Type | Description | Notes|
|
|
42
40
|
|------------- | ------------- | ------------- | -------------|
|
|
43
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
44
41
|
| **priceId** | [**string**] | ID du prix Stripe | defaults to undefined|
|
|
45
42
|
|
|
46
43
|
|
|
@@ -83,12 +80,10 @@ import {
|
|
|
83
80
|
const configuration = new Configuration();
|
|
84
81
|
const apiInstance = new ManagerClubSubscriptionsApi(configuration);
|
|
85
82
|
|
|
86
|
-
let id: string; //ID du club (default to undefined)
|
|
87
83
|
let productId: string; //ID du produit Stripe (default to undefined)
|
|
88
84
|
let createPriceRequest: CreatePriceRequest; //
|
|
89
85
|
|
|
90
86
|
const { status, data } = await apiInstance.createPriceForSubscriptionPlan(
|
|
91
|
-
id,
|
|
92
87
|
productId,
|
|
93
88
|
createPriceRequest
|
|
94
89
|
);
|
|
@@ -99,7 +94,6 @@ const { status, data } = await apiInstance.createPriceForSubscriptionPlan(
|
|
|
99
94
|
|Name | Type | Description | Notes|
|
|
100
95
|
|------------- | ------------- | ------------- | -------------|
|
|
101
96
|
| **createPriceRequest** | **CreatePriceRequest**| | |
|
|
102
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
103
97
|
| **productId** | [**string**] | ID du produit Stripe | defaults to undefined|
|
|
104
98
|
|
|
105
99
|
|
|
@@ -142,11 +136,9 @@ import {
|
|
|
142
136
|
const configuration = new Configuration();
|
|
143
137
|
const apiInstance = new ManagerClubSubscriptionsApi(configuration);
|
|
144
138
|
|
|
145
|
-
let id: string; //ID du club (default to undefined)
|
|
146
139
|
let createSubscriptionPlanRequest: CreateSubscriptionPlanRequest; //
|
|
147
140
|
|
|
148
141
|
const { status, data } = await apiInstance.createSubscriptionPlanForClub(
|
|
149
|
-
id,
|
|
150
142
|
createSubscriptionPlanRequest
|
|
151
143
|
);
|
|
152
144
|
```
|
|
@@ -156,7 +148,6 @@ const { status, data } = await apiInstance.createSubscriptionPlanForClub(
|
|
|
156
148
|
|Name | Type | Description | Notes|
|
|
157
149
|
|------------- | ------------- | ------------- | -------------|
|
|
158
150
|
| **createSubscriptionPlanRequest** | **CreateSubscriptionPlanRequest**| | |
|
|
159
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
160
151
|
|
|
161
152
|
|
|
162
153
|
### Return type
|
|
@@ -197,11 +188,9 @@ import {
|
|
|
197
188
|
const configuration = new Configuration();
|
|
198
189
|
const apiInstance = new ManagerClubSubscriptionsApi(configuration);
|
|
199
190
|
|
|
200
|
-
let id: string; //ID du club (default to undefined)
|
|
201
191
|
let productId: string; //ID du produit Stripe (default to undefined)
|
|
202
192
|
|
|
203
193
|
const { status, data } = await apiInstance.deleteSubscriptionPlanForClub(
|
|
204
|
-
id,
|
|
205
194
|
productId
|
|
206
195
|
);
|
|
207
196
|
```
|
|
@@ -210,7 +199,6 @@ const { status, data } = await apiInstance.deleteSubscriptionPlanForClub(
|
|
|
210
199
|
|
|
211
200
|
|Name | Type | Description | Notes|
|
|
212
201
|
|------------- | ------------- | ------------- | -------------|
|
|
213
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
214
202
|
| **productId** | [**string**] | ID du produit Stripe | defaults to undefined|
|
|
215
203
|
|
|
216
204
|
|
|
@@ -252,11 +240,9 @@ import {
|
|
|
252
240
|
const configuration = new Configuration();
|
|
253
241
|
const apiInstance = new ManagerClubSubscriptionsApi(configuration);
|
|
254
242
|
|
|
255
|
-
let id: string; //ID du club (default to undefined)
|
|
256
243
|
let productId: string; //ID du produit Stripe (default to undefined)
|
|
257
244
|
|
|
258
245
|
const { status, data } = await apiInstance.restoreSubscriptionPlanForClub(
|
|
259
|
-
id,
|
|
260
246
|
productId
|
|
261
247
|
);
|
|
262
248
|
```
|
|
@@ -265,7 +251,6 @@ const { status, data } = await apiInstance.restoreSubscriptionPlanForClub(
|
|
|
265
251
|
|
|
266
252
|
|Name | Type | Description | Notes|
|
|
267
253
|
|------------- | ------------- | ------------- | -------------|
|
|
268
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
269
254
|
| **productId** | [**string**] | ID du produit Stripe | defaults to undefined|
|
|
270
255
|
|
|
271
256
|
|
|
@@ -307,11 +292,9 @@ import {
|
|
|
307
292
|
const configuration = new Configuration();
|
|
308
293
|
const apiInstance = new ManagerClubSubscriptionsApi(configuration);
|
|
309
294
|
|
|
310
|
-
let id: string; //ID du club (default to undefined)
|
|
311
295
|
let priceId: string; //ID du prix Stripe (default to undefined)
|
|
312
296
|
|
|
313
297
|
const { status, data } = await apiInstance.restoreSubscriptionPriceForClub(
|
|
314
|
-
id,
|
|
315
298
|
priceId
|
|
316
299
|
);
|
|
317
300
|
```
|
|
@@ -320,7 +303,6 @@ const { status, data } = await apiInstance.restoreSubscriptionPriceForClub(
|
|
|
320
303
|
|
|
321
304
|
|Name | Type | Description | Notes|
|
|
322
305
|
|------------- | ------------- | ------------- | -------------|
|
|
323
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
324
306
|
| **priceId** | [**string**] | ID du prix Stripe | defaults to undefined|
|
|
325
307
|
|
|
326
308
|
|
|
@@ -363,12 +345,10 @@ import {
|
|
|
363
345
|
const configuration = new Configuration();
|
|
364
346
|
const apiInstance = new ManagerClubSubscriptionsApi(configuration);
|
|
365
347
|
|
|
366
|
-
let id: string; //ID du club (default to undefined)
|
|
367
348
|
let priceId: string; //ID du prix Stripe (default to undefined)
|
|
368
349
|
let updateSubscriptionPlanRequest: UpdateSubscriptionPlanRequest; //
|
|
369
350
|
|
|
370
351
|
const { status, data } = await apiInstance.updateSubscriptionPlanForClub(
|
|
371
|
-
id,
|
|
372
352
|
priceId,
|
|
373
353
|
updateSubscriptionPlanRequest
|
|
374
354
|
);
|
|
@@ -379,7 +359,6 @@ const { status, data } = await apiInstance.updateSubscriptionPlanForClub(
|
|
|
379
359
|
|Name | Type | Description | Notes|
|
|
380
360
|
|------------- | ------------- | ------------- | -------------|
|
|
381
361
|
| **updateSubscriptionPlanRequest** | **UpdateSubscriptionPlanRequest**| | |
|
|
382
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
383
362
|
| **priceId** | [**string**] | ID du prix Stripe | defaults to undefined|
|
|
384
363
|
|
|
385
364
|
|
package/docs/ManagerClubsApi.md
CHANGED
|
@@ -4,11 +4,11 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**addClubMember**](#addclubmember) | **PUT** /api/clubs/
|
|
8
|
-
|[**getClubInfo**](#getclubinfo) | **GET** /api/clubs/
|
|
9
|
-
|[**getClubMembers**](#getclubmembers) | **GET** /api/clubs/
|
|
10
|
-
|[**getClubRoles**](#getclubroles) | **GET** /api/clubs/
|
|
11
|
-
|[**
|
|
7
|
+
|[**addClubMember**](#addclubmember) | **PUT** /api/clubs/add_members | Ajouter un membre au club courant|
|
|
8
|
+
|[**getClubInfo**](#getclubinfo) | **GET** /api/clubs/me | Récupérer les informations du club courant|
|
|
9
|
+
|[**getClubMembers**](#getclubmembers) | **GET** /api/clubs/members | Récupérer les membres du club courant|
|
|
10
|
+
|[**getClubRoles**](#getclubroles) | **GET** /api/clubs/roles | Récupérer les rôles du club courant|
|
|
11
|
+
|[**updateClubNoId**](#updateclubnoid) | **PUT** /api/clubs | Mettre à jour un club existant (club courant)|
|
|
12
12
|
|
|
13
13
|
# **addClubMember**
|
|
14
14
|
> AddClubMemberResponse addClubMember(addClubMemberRequest)
|
|
@@ -26,11 +26,9 @@ import {
|
|
|
26
26
|
const configuration = new Configuration();
|
|
27
27
|
const apiInstance = new ManagerClubsApi(configuration);
|
|
28
28
|
|
|
29
|
-
let id: string; //ID du club (default to undefined)
|
|
30
29
|
let addClubMemberRequest: AddClubMemberRequest; //
|
|
31
30
|
|
|
32
31
|
const { status, data } = await apiInstance.addClubMember(
|
|
33
|
-
id,
|
|
34
32
|
addClubMemberRequest
|
|
35
33
|
);
|
|
36
34
|
```
|
|
@@ -40,7 +38,6 @@ const { status, data } = await apiInstance.addClubMember(
|
|
|
40
38
|
|Name | Type | Description | Notes|
|
|
41
39
|
|------------- | ------------- | ------------- | -------------|
|
|
42
40
|
| **addClubMemberRequest** | **AddClubMemberRequest**| | |
|
|
43
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
44
41
|
|
|
45
42
|
|
|
46
43
|
### Return type
|
|
@@ -82,18 +79,11 @@ import {
|
|
|
82
79
|
const configuration = new Configuration();
|
|
83
80
|
const apiInstance = new ManagerClubsApi(configuration);
|
|
84
81
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
const { status, data } = await apiInstance.getClubInfo(
|
|
88
|
-
id
|
|
89
|
-
);
|
|
82
|
+
const { status, data } = await apiInstance.getClubInfo();
|
|
90
83
|
```
|
|
91
84
|
|
|
92
85
|
### Parameters
|
|
93
|
-
|
|
94
|
-
|Name | Type | Description | Notes|
|
|
95
|
-
|------------- | ------------- | ------------- | -------------|
|
|
96
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
86
|
+
This endpoint does not have any parameters.
|
|
97
87
|
|
|
98
88
|
|
|
99
89
|
### Return type
|
|
@@ -134,18 +124,11 @@ import {
|
|
|
134
124
|
const configuration = new Configuration();
|
|
135
125
|
const apiInstance = new ManagerClubsApi(configuration);
|
|
136
126
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
const { status, data } = await apiInstance.getClubMembers(
|
|
140
|
-
id
|
|
141
|
-
);
|
|
127
|
+
const { status, data } = await apiInstance.getClubMembers();
|
|
142
128
|
```
|
|
143
129
|
|
|
144
130
|
### Parameters
|
|
145
|
-
|
|
146
|
-
|Name | Type | Description | Notes|
|
|
147
|
-
|------------- | ------------- | ------------- | -------------|
|
|
148
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
131
|
+
This endpoint does not have any parameters.
|
|
149
132
|
|
|
150
133
|
|
|
151
134
|
### Return type
|
|
@@ -185,18 +168,11 @@ import {
|
|
|
185
168
|
const configuration = new Configuration();
|
|
186
169
|
const apiInstance = new ManagerClubsApi(configuration);
|
|
187
170
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
const { status, data } = await apiInstance.getClubRoles(
|
|
191
|
-
id
|
|
192
|
-
);
|
|
171
|
+
const { status, data } = await apiInstance.getClubRoles();
|
|
193
172
|
```
|
|
194
173
|
|
|
195
174
|
### Parameters
|
|
196
|
-
|
|
197
|
-
|Name | Type | Description | Notes|
|
|
198
|
-
|------------- | ------------- | ------------- | -------------|
|
|
199
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
175
|
+
This endpoint does not have any parameters.
|
|
200
176
|
|
|
201
177
|
|
|
202
178
|
### Return type
|
|
@@ -221,8 +197,8 @@ const { status, data } = await apiInstance.getClubRoles(
|
|
|
221
197
|
|
|
222
198
|
[[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
199
|
|
|
224
|
-
# **
|
|
225
|
-
> ClubResponse
|
|
200
|
+
# **updateClubNoId**
|
|
201
|
+
> ClubResponse updateClubNoId(updateClubRequest)
|
|
226
202
|
|
|
227
203
|
|
|
228
204
|
### Example
|
|
@@ -237,11 +213,9 @@ import {
|
|
|
237
213
|
const configuration = new Configuration();
|
|
238
214
|
const apiInstance = new ManagerClubsApi(configuration);
|
|
239
215
|
|
|
240
|
-
let id: string; //ID du club (default to undefined)
|
|
241
216
|
let updateClubRequest: UpdateClubRequest; //
|
|
242
217
|
|
|
243
|
-
const { status, data } = await apiInstance.
|
|
244
|
-
id,
|
|
218
|
+
const { status, data } = await apiInstance.updateClubNoId(
|
|
245
219
|
updateClubRequest
|
|
246
220
|
);
|
|
247
221
|
```
|
|
@@ -251,7 +225,6 @@ const { status, data } = await apiInstance.updateClub(
|
|
|
251
225
|
|Name | Type | Description | Notes|
|
|
252
226
|
|------------- | ------------- | ------------- | -------------|
|
|
253
227
|
| **updateClubRequest** | **UpdateClubRequest**| | |
|
|
254
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
255
228
|
|
|
256
229
|
|
|
257
230
|
### Return type
|
package/docs/ManagerSportsApi.md
CHANGED
|
@@ -4,9 +4,64 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createSport**](#createsport) | **POST** /api/sports | Créer un sport dans un club|
|
|
7
8
|
|[**deleteSport**](#deletesport) | **DELETE** /api/sports/{id} | Supprimer un sport|
|
|
8
9
|
|[**updateSport**](#updatesport) | **PUT** /api/sports/{id} | Mettre à jour un sport|
|
|
9
10
|
|
|
11
|
+
# **createSport**
|
|
12
|
+
> SportResponse createSport(createSportRequest)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
ManagerSportsApi,
|
|
20
|
+
Configuration,
|
|
21
|
+
CreateSportRequest
|
|
22
|
+
} from '@tennac-booking/sdk';
|
|
23
|
+
|
|
24
|
+
const configuration = new Configuration();
|
|
25
|
+
const apiInstance = new ManagerSportsApi(configuration);
|
|
26
|
+
|
|
27
|
+
let createSportRequest: CreateSportRequest; //
|
|
28
|
+
|
|
29
|
+
const { status, data } = await apiInstance.createSport(
|
|
30
|
+
createSportRequest
|
|
31
|
+
);
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Parameters
|
|
35
|
+
|
|
36
|
+
|Name | Type | Description | Notes|
|
|
37
|
+
|------------- | ------------- | ------------- | -------------|
|
|
38
|
+
| **createSportRequest** | **CreateSportRequest**| | |
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Return type
|
|
42
|
+
|
|
43
|
+
**SportResponse**
|
|
44
|
+
|
|
45
|
+
### Authorization
|
|
46
|
+
|
|
47
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
48
|
+
|
|
49
|
+
### HTTP request headers
|
|
50
|
+
|
|
51
|
+
- **Content-Type**: application/json
|
|
52
|
+
- **Accept**: application/json
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### HTTP response details
|
|
56
|
+
| Status code | Description | Response headers |
|
|
57
|
+
|-------------|-------------|------------------|
|
|
58
|
+
|**201** | Sport créé avec succès | - |
|
|
59
|
+
|**400** | Requête invalide | - |
|
|
60
|
+
|**401** | Non autorisé | - |
|
|
61
|
+
|**500** | Erreur serveur interne | - |
|
|
62
|
+
|
|
63
|
+
[[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)
|
|
64
|
+
|
|
10
65
|
# **deleteSport**
|
|
11
66
|
> DeleteSport200Response deleteSport()
|
|
12
67
|
|
|
@@ -4,8 +4,8 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**getLastSixMonthsTurnover**](#getlastsixmonthsturnover) | **GET** /api/
|
|
8
|
-
|[**getNumberOfClubUsers**](#getnumberofclubusers) | **GET** /api/
|
|
7
|
+
|[**getLastSixMonthsTurnover**](#getlastsixmonthsturnover) | **GET** /api/analytics/lastSixMonthsTurnover | Get monthly turnover for the last six months (club courant)|
|
|
8
|
+
|[**getNumberOfClubUsers**](#getnumberofclubusers) | **GET** /api/analytics/user-count | Get number of users subscribed to the club|
|
|
9
9
|
|
|
10
10
|
# **getLastSixMonthsTurnover**
|
|
11
11
|
> Array<GetLastSixMonthsTurnover200ResponseInner> getLastSixMonthsTurnover()
|
|
@@ -22,18 +22,11 @@ import {
|
|
|
22
22
|
const configuration = new Configuration();
|
|
23
23
|
const apiInstance = new StaffClubAnalyticsApi(configuration);
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const { status, data } = await apiInstance.getLastSixMonthsTurnover(
|
|
28
|
-
id
|
|
29
|
-
);
|
|
25
|
+
const { status, data } = await apiInstance.getLastSixMonthsTurnover();
|
|
30
26
|
```
|
|
31
27
|
|
|
32
28
|
### Parameters
|
|
33
|
-
|
|
34
|
-
|Name | Type | Description | Notes|
|
|
35
|
-
|------------- | ------------- | ------------- | -------------|
|
|
36
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
29
|
+
This endpoint does not have any parameters.
|
|
37
30
|
|
|
38
31
|
|
|
39
32
|
### Return type
|
|
@@ -53,7 +46,7 @@ const { status, data } = await apiInstance.getLastSixMonthsTurnover(
|
|
|
53
46
|
### HTTP response details
|
|
54
47
|
| Status code | Description | Response headers |
|
|
55
48
|
|-------------|-------------|------------------|
|
|
56
|
-
|**200** |
|
|
49
|
+
|**200** | Turnover data for the last 6 months | - |
|
|
57
50
|
|**500** | Erreur serveur interne | - |
|
|
58
51
|
|
|
59
52
|
[[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)
|
|
@@ -73,11 +66,18 @@ import {
|
|
|
73
66
|
const configuration = new Configuration();
|
|
74
67
|
const apiInstance = new StaffClubAnalyticsApi(configuration);
|
|
75
68
|
|
|
76
|
-
|
|
69
|
+
let id: string; //ID du club (optionnel, si absent, pris depuis le token) (optional) (default to undefined)
|
|
70
|
+
|
|
71
|
+
const { status, data } = await apiInstance.getNumberOfClubUsers(
|
|
72
|
+
id
|
|
73
|
+
);
|
|
77
74
|
```
|
|
78
75
|
|
|
79
76
|
### Parameters
|
|
80
|
-
|
|
77
|
+
|
|
78
|
+
|Name | Type | Description | Notes|
|
|
79
|
+
|------------- | ------------- | ------------- | -------------|
|
|
80
|
+
| **id** | [**string**] | ID du club (optionnel, si absent, pris depuis le token) | (optional) defaults to undefined|
|
|
81
81
|
|
|
82
82
|
|
|
83
83
|
### Return type
|
|
@@ -4,10 +4,10 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**getTenNextBookings**](#gettennextbookings) | **GET** /api/
|
|
7
|
+
|[**getTenNextBookings**](#gettennextbookings) | **GET** /api/analytics/next-bookings | Get the ten next bookings for the current club|
|
|
8
8
|
|
|
9
9
|
# **getTenNextBookings**
|
|
10
|
-
> Array<
|
|
10
|
+
> Array<BookingPopulated> getTenNextBookings()
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
### Example
|
|
@@ -21,23 +21,16 @@ import {
|
|
|
21
21
|
const configuration = new Configuration();
|
|
22
22
|
const apiInstance = new StaffClubBookingsApi(configuration);
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
const { status, data } = await apiInstance.getTenNextBookings(
|
|
27
|
-
id
|
|
28
|
-
);
|
|
24
|
+
const { status, data } = await apiInstance.getTenNextBookings();
|
|
29
25
|
```
|
|
30
26
|
|
|
31
27
|
### Parameters
|
|
32
|
-
|
|
33
|
-
|Name | Type | Description | Notes|
|
|
34
|
-
|------------- | ------------- | ------------- | -------------|
|
|
35
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
28
|
+
This endpoint does not have any parameters.
|
|
36
29
|
|
|
37
30
|
|
|
38
31
|
### Return type
|
|
39
32
|
|
|
40
|
-
**Array<
|
|
33
|
+
**Array<BookingPopulated>**
|
|
41
34
|
|
|
42
35
|
### Authorization
|
|
43
36
|
|
package/docs/StaffClubsApi.md
CHANGED
|
@@ -4,7 +4,7 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**getClubInfos**](#getclubinfos) | **GET** /api/clubs/
|
|
7
|
+
|[**getClubInfos**](#getclubinfos) | **GET** /api/clubs/infos | Get current club information|
|
|
8
8
|
|
|
9
9
|
# **getClubInfos**
|
|
10
10
|
> GetClubInfos200Response getClubInfos()
|
|
@@ -21,18 +21,11 @@ import {
|
|
|
21
21
|
const configuration = new Configuration();
|
|
22
22
|
const apiInstance = new StaffClubsApi(configuration);
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
const { status, data } = await apiInstance.getClubInfos(
|
|
27
|
-
id
|
|
28
|
-
);
|
|
24
|
+
const { status, data } = await apiInstance.getClubInfos();
|
|
29
25
|
```
|
|
30
26
|
|
|
31
27
|
### Parameters
|
|
32
|
-
|
|
33
|
-
|Name | Type | Description | Notes|
|
|
34
|
-
|------------- | ------------- | ------------- | -------------|
|
|
35
|
-
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
28
|
+
This endpoint does not have any parameters.
|
|
36
29
|
|
|
37
30
|
|
|
38
31
|
### Return type
|
package/index.ts
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/package.json
CHANGED
package/docs/BookingsApi.md
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
# BookingsApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**cancelBooking**](#cancelbooking) | **DELETE** /api/bookings/{bookingId}/cancel | Annuler une réservation (créateur uniquement)|
|
|
8
|
-
|
|
9
|
-
# **cancelBooking**
|
|
10
|
-
> CancelBookingResponse cancelBooking(cancelBookingRequest)
|
|
11
|
-
|
|
12
|
-
Permet au créateur d\'une réservation de l\'annuler. Rouvre automatiquement le créneau et envoie des emails de notification à tous les participants.
|
|
13
|
-
|
|
14
|
-
### Example
|
|
15
|
-
|
|
16
|
-
```typescript
|
|
17
|
-
import {
|
|
18
|
-
BookingsApi,
|
|
19
|
-
Configuration,
|
|
20
|
-
CancelBookingRequest
|
|
21
|
-
} from '@tennac-booking/sdk';
|
|
22
|
-
|
|
23
|
-
const configuration = new Configuration();
|
|
24
|
-
const apiInstance = new BookingsApi(configuration);
|
|
25
|
-
|
|
26
|
-
let bookingId: string; //ID MongoDB de la réservation à annuler (default to undefined)
|
|
27
|
-
let cancelBookingRequest: CancelBookingRequest; //
|
|
28
|
-
|
|
29
|
-
const { status, data } = await apiInstance.cancelBooking(
|
|
30
|
-
bookingId,
|
|
31
|
-
cancelBookingRequest
|
|
32
|
-
);
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
### Parameters
|
|
36
|
-
|
|
37
|
-
|Name | Type | Description | Notes|
|
|
38
|
-
|------------- | ------------- | ------------- | -------------|
|
|
39
|
-
| **cancelBookingRequest** | **CancelBookingRequest**| | |
|
|
40
|
-
| **bookingId** | [**string**] | ID MongoDB de la réservation à annuler | defaults to undefined|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
### Return type
|
|
44
|
-
|
|
45
|
-
**CancelBookingResponse**
|
|
46
|
-
|
|
47
|
-
### Authorization
|
|
48
|
-
|
|
49
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
50
|
-
|
|
51
|
-
### HTTP request headers
|
|
52
|
-
|
|
53
|
-
- **Content-Type**: application/json
|
|
54
|
-
- **Accept**: application/json
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
### HTTP response details
|
|
58
|
-
| Status code | Description | Response headers |
|
|
59
|
-
|-------------|-------------|------------------|
|
|
60
|
-
|**200** | Réservation annulée avec succès | - |
|
|
61
|
-
|**400** | Requête invalide | - |
|
|
62
|
-
|**401** | Non autorisé | - |
|
|
63
|
-
|**403** | Accès interdit - Seul le créateur peut annuler | - |
|
|
64
|
-
|**404** | Réservation non trouvée | - |
|
|
65
|
-
|**500** | Erreur serveur interne | - |
|
|
66
|
-
|
|
67
|
-
[[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)
|
|
68
|
-
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
# StaffClubSettingsApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**getClubSettings**](#getclubsettings) | **GET** /api/club-settings | Récupère les paramètres d\'un club|
|
|
8
|
-
|
|
9
|
-
# **getClubSettings**
|
|
10
|
-
> ClubSettings getClubSettings()
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
### Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import {
|
|
17
|
-
StaffClubSettingsApi,
|
|
18
|
-
Configuration
|
|
19
|
-
} from '@tennac-booking/sdk';
|
|
20
|
-
|
|
21
|
-
const configuration = new Configuration();
|
|
22
|
-
const apiInstance = new StaffClubSettingsApi(configuration);
|
|
23
|
-
|
|
24
|
-
const { status, data } = await apiInstance.getClubSettings();
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
### Parameters
|
|
28
|
-
This endpoint does not have any parameters.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
### Return type
|
|
32
|
-
|
|
33
|
-
**ClubSettings**
|
|
34
|
-
|
|
35
|
-
### Authorization
|
|
36
|
-
|
|
37
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
38
|
-
|
|
39
|
-
### HTTP request headers
|
|
40
|
-
|
|
41
|
-
- **Content-Type**: Not defined
|
|
42
|
-
- **Accept**: application/json
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
### HTTP response details
|
|
46
|
-
| Status code | Description | Response headers |
|
|
47
|
-
|-------------|-------------|------------------|
|
|
48
|
-
|**200** | Paramètres du club | - |
|
|
49
|
-
|**401** | Non autorisé | - |
|
|
50
|
-
|**404** | Ressource non trouvée | - |
|
|
51
|
-
|**500** | Erreur serveur interne | - |
|
|
52
|
-
|
|
53
|
-
[[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)
|
|
54
|
-
|