@tennac-booking/sdk 1.0.13 → 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 +29 -5
- package/README.md +58 -49
- package/api.ts +3581 -3057
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +2134 -1695
- package/dist/api.js +2693 -2281
- 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 +2134 -1695
- package/dist/esm/api.js +2435 -2081
- 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/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 -225
- package/docs/ClubsApi.md +6 -425
- 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/GetClubInfos200Response.md +30 -0
- package/docs/GetCourtsByClubAndSport200Response.md +26 -0
- package/docs/GetLastSixMonthsTurnover200ResponseInner.md +24 -0
- package/docs/GetNumberOfClubUsers200Response.md +20 -0
- package/docs/GetUserRolesResponseRolesInner.md +4 -6
- package/docs/GoogleSignInRequestBody.md +2 -2
- package/docs/GoogleSignInResponse.md +2 -8
- 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/SubscriptionPlanResponse.md +4 -8
- package/docs/UpdateClubSettingsRequest.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 +0 -725
- package/docs/UsersResponse.md +22 -0
- package/index.ts +1 -1
- package/package.json +32 -1
package/dist/esm/base.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Pickle Ball 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.14
|
|
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
|
* Pickle Ball 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.14
|
|
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
|
* Pickle Ball 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.14
|
|
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
|
* Pickle Ball 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.14
|
|
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
|
* Pickle Ball 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.14
|
|
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
|
* Pickle Ball 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.14
|
|
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
|
* Pickle Ball 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.14
|
|
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
|
* Pickle Ball 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.14
|
|
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
|
* Pickle Ball 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.14
|
|
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
|
* Pickle Ball 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.14
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# AdminClubSlotsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**generateSlotsForNextThreeWeeks**](#generateslotsfornextthreeweeks) | **POST** /api/clubs/{id}/generate-slots | Générer les créneaux pour les 3 semaines à venir (Admin uniquement)|
|
|
8
|
+
|
|
9
|
+
# **generateSlotsForNextThreeWeeks**
|
|
10
|
+
> GenerateSlotsResponse generateSlotsForNextThreeWeeks()
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import {
|
|
17
|
+
AdminClubSlotsApi,
|
|
18
|
+
Configuration
|
|
19
|
+
} from '@tennac-booking/sdk';
|
|
20
|
+
|
|
21
|
+
const configuration = new Configuration();
|
|
22
|
+
const apiInstance = new AdminClubSlotsApi(configuration);
|
|
23
|
+
|
|
24
|
+
let id: string; //ID du club (default to undefined)
|
|
25
|
+
|
|
26
|
+
const { status, data } = await apiInstance.generateSlotsForNextThreeWeeks(
|
|
27
|
+
id
|
|
28
|
+
);
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Parameters
|
|
32
|
+
|
|
33
|
+
|Name | Type | Description | Notes|
|
|
34
|
+
|------------- | ------------- | ------------- | -------------|
|
|
35
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Return type
|
|
39
|
+
|
|
40
|
+
**GenerateSlotsResponse**
|
|
41
|
+
|
|
42
|
+
### Authorization
|
|
43
|
+
|
|
44
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
45
|
+
|
|
46
|
+
### HTTP request headers
|
|
47
|
+
|
|
48
|
+
- **Content-Type**: Not defined
|
|
49
|
+
- **Accept**: application/json
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### HTTP response details
|
|
53
|
+
| Status code | Description | Response headers |
|
|
54
|
+
|-------------|-------------|------------------|
|
|
55
|
+
|**201** | Créneaux générés avec succès | - |
|
|
56
|
+
|**400** | Requête invalide | - |
|
|
57
|
+
|**401** | Non autorisé | - |
|
|
58
|
+
|**404** | Ressource non trouvée | - |
|
|
59
|
+
|**500** | Erreur serveur interne | - |
|
|
60
|
+
|
|
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)
|
|
62
|
+
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# AdminClubsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createClub**](#createclub) | **POST** /api/clubs | Créer un nouveau club (Admin uniquement)|
|
|
8
|
+
|[**getAllClubs**](#getallclubs) | **GET** /api/clubs | Récupérer tous les clubs (Admin uniquement)|
|
|
9
|
+
|
|
10
|
+
# **createClub**
|
|
11
|
+
> ClubResponse createClub(createClubRequest)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import {
|
|
18
|
+
AdminClubsApi,
|
|
19
|
+
Configuration,
|
|
20
|
+
CreateClubRequest
|
|
21
|
+
} from '@tennac-booking/sdk';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new AdminClubsApi(configuration);
|
|
25
|
+
|
|
26
|
+
let createClubRequest: CreateClubRequest; //
|
|
27
|
+
|
|
28
|
+
const { status, data } = await apiInstance.createClub(
|
|
29
|
+
createClubRequest
|
|
30
|
+
);
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Parameters
|
|
34
|
+
|
|
35
|
+
|Name | Type | Description | Notes|
|
|
36
|
+
|------------- | ------------- | ------------- | -------------|
|
|
37
|
+
| **createClubRequest** | **CreateClubRequest**| | |
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Return type
|
|
41
|
+
|
|
42
|
+
**ClubResponse**
|
|
43
|
+
|
|
44
|
+
### Authorization
|
|
45
|
+
|
|
46
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
47
|
+
|
|
48
|
+
### HTTP request headers
|
|
49
|
+
|
|
50
|
+
- **Content-Type**: application/json
|
|
51
|
+
- **Accept**: application/json
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### HTTP response details
|
|
55
|
+
| Status code | Description | Response headers |
|
|
56
|
+
|-------------|-------------|------------------|
|
|
57
|
+
|**201** | Club créé avec succès | - |
|
|
58
|
+
|**400** | Requête invalide | - |
|
|
59
|
+
|**401** | Non autorisé | - |
|
|
60
|
+
|**500** | Erreur serveur interne | - |
|
|
61
|
+
|
|
62
|
+
[[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)
|
|
63
|
+
|
|
64
|
+
# **getAllClubs**
|
|
65
|
+
> ClubsResponse getAllClubs()
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
### Example
|
|
69
|
+
|
|
70
|
+
```typescript
|
|
71
|
+
import {
|
|
72
|
+
AdminClubsApi,
|
|
73
|
+
Configuration
|
|
74
|
+
} from '@tennac-booking/sdk';
|
|
75
|
+
|
|
76
|
+
const configuration = new Configuration();
|
|
77
|
+
const apiInstance = new AdminClubsApi(configuration);
|
|
78
|
+
|
|
79
|
+
const { status, data } = await apiInstance.getAllClubs();
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Parameters
|
|
83
|
+
This endpoint does not have any parameters.
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
### Return type
|
|
87
|
+
|
|
88
|
+
**ClubsResponse**
|
|
89
|
+
|
|
90
|
+
### Authorization
|
|
91
|
+
|
|
92
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
93
|
+
|
|
94
|
+
### HTTP request headers
|
|
95
|
+
|
|
96
|
+
- **Content-Type**: Not defined
|
|
97
|
+
- **Accept**: application/json
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
### HTTP response details
|
|
101
|
+
| Status code | Description | Response headers |
|
|
102
|
+
|-------------|-------------|------------------|
|
|
103
|
+
|**200** | Liste de tous les clubs | - |
|
|
104
|
+
|**401** | Non autorisé | - |
|
|
105
|
+
|**500** | Erreur serveur interne | - |
|
|
106
|
+
|
|
107
|
+
[[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)
|
|
108
|
+
|
package/docs/ApiErrorResponse.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**message** | **string** | | [default to undefined]
|
|
8
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
9
9
|
**error** | **string** | | [optional] [default to undefined]
|
|
10
10
|
|
|
11
11
|
## Example
|
package/docs/BookingsApi.md
CHANGED
|
@@ -4,11 +4,10 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
8
|
-
|[**bookingsPreBookSlotIdPatch**](#bookingsprebookslotidpatch) | **PATCH** /bookings/pre-book/{slotId} | Bloquer un créneau|
|
|
7
|
+
|[**createBooking**](#createbooking) | **POST** /api/bookings | Créer une réservation|
|
|
9
8
|
|
|
10
|
-
# **
|
|
11
|
-
> BookingResponse
|
|
9
|
+
# **createBooking**
|
|
10
|
+
> BookingResponse createBooking(createBookingRequest)
|
|
12
11
|
|
|
13
12
|
Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
|
|
14
13
|
|
|
@@ -26,7 +25,7 @@ const apiInstance = new BookingsApi(configuration);
|
|
|
26
25
|
|
|
27
26
|
let createBookingRequest: CreateBookingRequest; //
|
|
28
27
|
|
|
29
|
-
const { status, data } = await apiInstance.
|
|
28
|
+
const { status, data } = await apiInstance.createBooking(
|
|
30
29
|
createBookingRequest
|
|
31
30
|
);
|
|
32
31
|
```
|
|
@@ -63,58 +62,3 @@ const { status, data } = await apiInstance.bookingsPost(
|
|
|
63
62
|
|
|
64
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)
|
|
65
64
|
|
|
66
|
-
# **bookingsPreBookSlotIdPatch**
|
|
67
|
-
> BlockSlotResponse bookingsPreBookSlotIdPatch()
|
|
68
|
-
|
|
69
|
-
Bloque temporairement un créneau pour éviter les réservations simultanées pendant le processus de réservation
|
|
70
|
-
|
|
71
|
-
### Example
|
|
72
|
-
|
|
73
|
-
```typescript
|
|
74
|
-
import {
|
|
75
|
-
BookingsApi,
|
|
76
|
-
Configuration
|
|
77
|
-
} from '@tennac-booking/sdk';
|
|
78
|
-
|
|
79
|
-
const configuration = new Configuration();
|
|
80
|
-
const apiInstance = new BookingsApi(configuration);
|
|
81
|
-
|
|
82
|
-
let slotId: string; //ID MongoDB du créneau à bloquer (default to undefined)
|
|
83
|
-
|
|
84
|
-
const { status, data } = await apiInstance.bookingsPreBookSlotIdPatch(
|
|
85
|
-
slotId
|
|
86
|
-
);
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
### Parameters
|
|
90
|
-
|
|
91
|
-
|Name | Type | Description | Notes|
|
|
92
|
-
|------------- | ------------- | ------------- | -------------|
|
|
93
|
-
| **slotId** | [**string**] | ID MongoDB du créneau à bloquer | defaults to undefined|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
### Return type
|
|
97
|
-
|
|
98
|
-
**BlockSlotResponse**
|
|
99
|
-
|
|
100
|
-
### Authorization
|
|
101
|
-
|
|
102
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
103
|
-
|
|
104
|
-
### HTTP request headers
|
|
105
|
-
|
|
106
|
-
- **Content-Type**: Not defined
|
|
107
|
-
- **Accept**: application/json
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
### HTTP response details
|
|
111
|
-
| Status code | Description | Response headers |
|
|
112
|
-
|-------------|-------------|------------------|
|
|
113
|
-
|**200** | Créneau bloqué avec succès | - |
|
|
114
|
-
|**400** | Requête invalide (ID invalide ou slot déjà bloqué) | - |
|
|
115
|
-
|**401** | Non autorisé | - |
|
|
116
|
-
|**404** | Slot non trouvé | - |
|
|
117
|
-
|**500** | Erreur serveur interne | - |
|
|
118
|
-
|
|
119
|
-
[[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)
|
|
120
|
-
|
|
@@ -1,34 +1,31 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ClubAnalyticsApi
|
|
2
2
|
|
|
3
3
|
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
8
|
-
|[**
|
|
7
|
+
|[**getLastSixMonthsTurnover**](#getlastsixmonthsturnover) | **GET** /api/clubs/{id}/turnover | Get monthly turnover for the last six months|
|
|
8
|
+
|[**getNumberOfClubUsers**](#getnumberofclubusers) | **GET** /api/clubs/{id}/user-count | Get number of users subscribed to the club|
|
|
9
9
|
|
|
10
|
-
# **
|
|
11
|
-
>
|
|
10
|
+
# **getLastSixMonthsTurnover**
|
|
11
|
+
> Array<GetLastSixMonthsTurnover200ResponseInner> getLastSixMonthsTurnover()
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
### Example
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
Configuration
|
|
20
|
-
CreateSportRequest
|
|
18
|
+
ClubAnalyticsApi,
|
|
19
|
+
Configuration
|
|
21
20
|
} from '@tennac-booking/sdk';
|
|
22
21
|
|
|
23
22
|
const configuration = new Configuration();
|
|
24
|
-
const apiInstance = new
|
|
23
|
+
const apiInstance = new ClubAnalyticsApi(configuration);
|
|
25
24
|
|
|
26
25
|
let id: string; //ID du club (default to undefined)
|
|
27
|
-
let createSportRequest: CreateSportRequest; //
|
|
28
26
|
|
|
29
|
-
const { status, data } = await apiInstance.
|
|
30
|
-
id
|
|
31
|
-
createSportRequest
|
|
27
|
+
const { status, data } = await apiInstance.getLastSixMonthsTurnover(
|
|
28
|
+
id
|
|
32
29
|
);
|
|
33
30
|
```
|
|
34
31
|
|
|
@@ -36,13 +33,12 @@ const { status, data } = await apiInstance.createSportForClub(
|
|
|
36
33
|
|
|
37
34
|
|Name | Type | Description | Notes|
|
|
38
35
|
|------------- | ------------- | ------------- | -------------|
|
|
39
|
-
| **createSportRequest** | **CreateSportRequest**| | |
|
|
40
36
|
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
41
37
|
|
|
42
38
|
|
|
43
39
|
### Return type
|
|
44
40
|
|
|
45
|
-
**
|
|
41
|
+
**Array<GetLastSixMonthsTurnover200ResponseInner>**
|
|
46
42
|
|
|
47
43
|
### Authorization
|
|
48
44
|
|
|
@@ -50,38 +46,36 @@ const { status, data } = await apiInstance.createSportForClub(
|
|
|
50
46
|
|
|
51
47
|
### HTTP request headers
|
|
52
48
|
|
|
53
|
-
- **Content-Type**:
|
|
49
|
+
- **Content-Type**: Not defined
|
|
54
50
|
- **Accept**: application/json
|
|
55
51
|
|
|
56
52
|
|
|
57
53
|
### HTTP response details
|
|
58
54
|
| Status code | Description | Response headers |
|
|
59
55
|
|-------------|-------------|------------------|
|
|
60
|
-
|**
|
|
61
|
-
|**400** | Requête invalide | - |
|
|
62
|
-
|**409** | Conflit - Un sport avec cette clé existe déjà | - |
|
|
56
|
+
|**200** | Monthly turnover data | - |
|
|
63
57
|
|**500** | Erreur serveur interne | - |
|
|
64
58
|
|
|
65
59
|
[[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)
|
|
66
60
|
|
|
67
|
-
# **
|
|
68
|
-
>
|
|
61
|
+
# **getNumberOfClubUsers**
|
|
62
|
+
> GetNumberOfClubUsers200Response getNumberOfClubUsers()
|
|
69
63
|
|
|
70
64
|
|
|
71
65
|
### Example
|
|
72
66
|
|
|
73
67
|
```typescript
|
|
74
68
|
import {
|
|
75
|
-
|
|
69
|
+
ClubAnalyticsApi,
|
|
76
70
|
Configuration
|
|
77
71
|
} from '@tennac-booking/sdk';
|
|
78
72
|
|
|
79
73
|
const configuration = new Configuration();
|
|
80
|
-
const apiInstance = new
|
|
74
|
+
const apiInstance = new ClubAnalyticsApi(configuration);
|
|
81
75
|
|
|
82
76
|
let id: string; //ID du club (default to undefined)
|
|
83
77
|
|
|
84
|
-
const { status, data } = await apiInstance.
|
|
78
|
+
const { status, data } = await apiInstance.getNumberOfClubUsers(
|
|
85
79
|
id
|
|
86
80
|
);
|
|
87
81
|
```
|
|
@@ -95,7 +89,7 @@ const { status, data } = await apiInstance.getSportsByClub(
|
|
|
95
89
|
|
|
96
90
|
### Return type
|
|
97
91
|
|
|
98
|
-
**
|
|
92
|
+
**GetNumberOfClubUsers200Response**
|
|
99
93
|
|
|
100
94
|
### Authorization
|
|
101
95
|
|
|
@@ -110,8 +104,7 @@ const { status, data } = await apiInstance.getSportsByClub(
|
|
|
110
104
|
### HTTP response details
|
|
111
105
|
| Status code | Description | Response headers |
|
|
112
106
|
|-------------|-------------|------------------|
|
|
113
|
-
|**200** |
|
|
114
|
-
|**400** | Requête invalide | - |
|
|
107
|
+
|**200** | Number of subscribed users | - |
|
|
115
108
|
|**500** | Erreur serveur interne | - |
|
|
116
109
|
|
|
117
110
|
[[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)
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# ClubBookingsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getTenNextBookings**](#gettennextbookings) | **GET** /api/clubs/{id}/next-bookings | Get the ten next bookings for the club|
|
|
8
|
+
|
|
9
|
+
# **getTenNextBookings**
|
|
10
|
+
> Array<Booking> getTenNextBookings()
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import {
|
|
17
|
+
ClubBookingsApi,
|
|
18
|
+
Configuration
|
|
19
|
+
} from '@tennac-booking/sdk';
|
|
20
|
+
|
|
21
|
+
const configuration = new Configuration();
|
|
22
|
+
const apiInstance = new ClubBookingsApi(configuration);
|
|
23
|
+
|
|
24
|
+
let id: string; //ID du club (default to undefined)
|
|
25
|
+
|
|
26
|
+
const { status, data } = await apiInstance.getTenNextBookings(
|
|
27
|
+
id
|
|
28
|
+
);
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Parameters
|
|
32
|
+
|
|
33
|
+
|Name | Type | Description | Notes|
|
|
34
|
+
|------------- | ------------- | ------------- | -------------|
|
|
35
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Return type
|
|
39
|
+
|
|
40
|
+
**Array<Booking>**
|
|
41
|
+
|
|
42
|
+
### Authorization
|
|
43
|
+
|
|
44
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
45
|
+
|
|
46
|
+
### HTTP request headers
|
|
47
|
+
|
|
48
|
+
- **Content-Type**: Not defined
|
|
49
|
+
- **Accept**: application/json
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### HTTP response details
|
|
53
|
+
| Status code | Description | Response headers |
|
|
54
|
+
|-------------|-------------|------------------|
|
|
55
|
+
|**200** | List of next bookings | - |
|
|
56
|
+
|**500** | Erreur serveur interne | - |
|
|
57
|
+
|
|
58
|
+
[[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)
|
|
59
|
+
|
package/docs/ClubInfoResponse.md
CHANGED
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
-
**name** | **string** | | [default to undefined]
|
|
10
|
-
**address** | **string** | | [default to undefined]
|
|
11
|
-
**city** | **string** | | [default to undefined]
|
|
12
|
-
**zipCode** | **string** | | [default to undefined]
|
|
13
|
-
**country** | **string** | | [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**address** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**city** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**zipCode** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**country** | **string** | | [optional] [default to undefined]
|
|
14
14
|
**phone** | **string** | | [optional] [default to undefined]
|
|
15
15
|
**email** | **string** | | [optional] [default to undefined]
|
|
16
16
|
**website** | **string** | | [optional] [default to undefined]
|
|
17
17
|
**description** | **string** | | [optional] [default to undefined]
|
|
18
18
|
**logo** | **string** | | [optional] [default to undefined]
|
|
19
|
-
**isActive** | **boolean** | | [optional] [default to
|
|
19
|
+
**isActive** | **boolean** | | [optional] [default to undefined]
|
|
20
20
|
**createdAt** | **string** | | [optional] [default to undefined]
|
|
21
21
|
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
22
22
|
|
package/docs/ClubResponse.md
CHANGED
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
-
**name** | **string** | | [default to undefined]
|
|
10
|
-
**address** | **string** | | [default to undefined]
|
|
11
|
-
**city** | **string** | | [default to undefined]
|
|
12
|
-
**zipCode** | **string** | | [default to undefined]
|
|
13
|
-
**country** | **string** | | [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**address** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**city** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**zipCode** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**country** | **string** | | [optional] [default to undefined]
|
|
14
14
|
**phone** | **string** | | [optional] [default to undefined]
|
|
15
15
|
**email** | **string** | | [optional] [default to undefined]
|
|
16
16
|
**website** | **string** | | [optional] [default to undefined]
|
|
17
17
|
**description** | **string** | | [optional] [default to undefined]
|
|
18
18
|
**logo** | **string** | | [optional] [default to undefined]
|
|
19
|
-
**isActive** | **boolean** | | [optional] [default to
|
|
19
|
+
**isActive** | **boolean** | | [optional] [default to undefined]
|
|
20
20
|
**createdAt** | **string** | | [optional] [default to undefined]
|
|
21
21
|
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
22
22
|
|
package/docs/ClubRoleResponse.md
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**id** | **string** |
|
|
9
|
-
**name** | **string** |
|
|
10
|
-
**description** | **string** |
|
|
11
|
-
**permissions** | **Array<string>** |
|
|
12
|
-
**createdAt** | **string** |
|
|
13
|
-
**updatedAt** | **string** |
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**permissions** | **Array<string>** | | [optional] [default to undefined]
|
|
12
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
14
14
|
|
|
15
15
|
## Example
|
|
16
16
|
|
package/docs/ClubRolesApi.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
|
-
|[**createClubRole**](#createclubrole) | **POST** /api/club-roles |
|
|
8
|
-
|[**deleteClubRole**](#deleteclubrole) | **DELETE** /api/club-roles/{id} |
|
|
9
|
-
|[**getAllClubRoles**](#getallclubroles) | **GET** /api/club-roles |
|
|
10
|
-
|[**getClubRoleById**](#getclubrolebyid) | **GET** /api/club-roles/{id} |
|
|
11
|
-
|[**updateClubRole**](#updateclubrole) | **PUT** /api/club-roles/{id} |
|
|
7
|
+
|[**createClubRole**](#createclubrole) | **POST** /api/club-roles | Créer un nouveau rôle de club|
|
|
8
|
+
|[**deleteClubRole**](#deleteclubrole) | **DELETE** /api/club-roles/{id} | Supprimer un rôle de club|
|
|
9
|
+
|[**getAllClubRoles**](#getallclubroles) | **GET** /api/club-roles | Récupérer tous les rôles de clubs|
|
|
10
|
+
|[**getClubRoleById**](#getclubrolebyid) | **GET** /api/club-roles/{id} | Récupérer un rôle de club par son ID|
|
|
11
|
+
|[**updateClubRole**](#updateclubrole) | **PUT** /api/club-roles/{id} | Mettre à jour un rôle de club|
|
|
12
12
|
|
|
13
13
|
# **createClubRole**
|
|
14
14
|
> ClubRoleResponse createClubRole(createClubRoleRequestBody)
|
|
@@ -57,7 +57,7 @@ const { status, data } = await apiInstance.createClubRole(
|
|
|
57
57
|
### HTTP response details
|
|
58
58
|
| Status code | Description | Response headers |
|
|
59
59
|
|-------------|-------------|------------------|
|
|
60
|
-
|**201** | Rôle de club créé | - |
|
|
60
|
+
|**201** | Rôle de club créé avec succès | - |
|
|
61
61
|
|**500** | Erreur serveur interne | - |
|
|
62
62
|
|
|
63
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)
|
|
@@ -108,7 +108,7 @@ const { status, data } = await apiInstance.deleteClubRole(
|
|
|
108
108
|
### HTTP response details
|
|
109
109
|
| Status code | Description | Response headers |
|
|
110
110
|
|-------------|-------------|------------------|
|
|
111
|
-
|**200** | Rôle de club supprimé | - |
|
|
111
|
+
|**200** | Rôle de club supprimé avec succès | - |
|
|
112
112
|
|**404** | Rôle de club non trouvé | - |
|
|
113
113
|
|**500** | Erreur serveur interne | - |
|
|
114
114
|
|
|
@@ -260,7 +260,7 @@ const { status, data } = await apiInstance.updateClubRole(
|
|
|
260
260
|
### HTTP response details
|
|
261
261
|
| Status code | Description | Response headers |
|
|
262
262
|
|-------------|-------------|------------------|
|
|
263
|
-
|**200** | Rôle de club mis à jour | - |
|
|
263
|
+
|**200** | Rôle de club mis à jour avec succès | - |
|
|
264
264
|
|**404** | Rôle de club non trouvé | - |
|
|
265
265
|
|**500** | Erreur serveur interne | - |
|
|
266
266
|
|