@tennac-booking/sdk 1.0.30 → 1.0.32
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 +4 -13
- package/README.md +11 -30
- package/api.ts +518 -2354
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +327 -1392
- package/dist/api.js +294 -1573
- 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 +327 -1392
- package/dist/esm/api.js +291 -1554
- 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/ClubMember.md +3 -13
- package/docs/{DeleteSlotsResponse.md → CourtDeleteResponse.md} +3 -3
- package/docs/{ClubsResponse.md → GetClubPlayers200Response.md} +5 -5
- package/docs/LoginResponse.md +2 -0
- package/docs/ManagerClubCourtsApi.md +112 -0
- package/docs/ManagerSportsApi.md +0 -55
- package/docs/StaffClubAnalyticsApi.md +45 -0
- package/docs/StaffClubsApi.md +52 -13
- package/docs/UpdateCourtRequest.md +38 -0
- package/docs/UserProfileApi.md +1 -1
- package/docs/UserStaffResponse.md +30 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/AdminClubAnalyticsApi.md +0 -249
- package/docs/AdminClubSlotsApi.md +0 -182
- package/docs/AdminClubSubscriptionsApi.md +0 -394
- package/docs/AdminClubsApi.md +0 -170
- package/docs/CreateClubRequest.md +0 -40
- package/docs/CreateClubSettingsRequest.md +0 -28
- package/docs/DeleteClub200Response.md +0 -20
- package/docs/DeleteClubSettingsRequest.md +0 -20
- package/docs/GenerateSlotsResponse.md +0 -20
- package/docs/GetClubSettingsRequest.md +0 -20
- package/docs/UsersResponse.md +0 -22
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.32
|
|
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.32
|
|
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.32
|
|
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.32
|
|
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.32
|
|
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.32
|
|
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.32
|
|
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.32
|
|
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.32
|
|
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.32
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/docs/ClubMember.md
CHANGED
|
@@ -5,14 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
-
**userId** | **string** | | [optional] [default to undefined]
|
|
10
|
-
**clubId** | **string** | | [optional] [default to undefined]
|
|
11
|
-
**roleId** | **string** | | [optional] [default to undefined]
|
|
12
|
-
**joinedAt** | **string** | | [optional] [default to undefined]
|
|
13
|
-
**isActive** | **boolean** | | [optional] [default to undefined]
|
|
14
8
|
**user** | [**UserResponse**](UserResponse.md) | | [optional] [default to undefined]
|
|
15
|
-
**role** |
|
|
9
|
+
**role** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**rights** | **Array<string>** | | [optional] [default to undefined]
|
|
16
11
|
|
|
17
12
|
## Example
|
|
18
13
|
|
|
@@ -20,14 +15,9 @@ Name | Type | Description | Notes
|
|
|
20
15
|
import { ClubMember } from '@tennac-booking/sdk';
|
|
21
16
|
|
|
22
17
|
const instance: ClubMember = {
|
|
23
|
-
id,
|
|
24
|
-
userId,
|
|
25
|
-
clubId,
|
|
26
|
-
roleId,
|
|
27
|
-
joinedAt,
|
|
28
|
-
isActive,
|
|
29
18
|
user,
|
|
30
19
|
role,
|
|
20
|
+
rights,
|
|
31
21
|
};
|
|
32
22
|
```
|
|
33
23
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# CourtDeleteResponse
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
@@ -10,9 +10,9 @@ Name | Type | Description | Notes
|
|
|
10
10
|
## Example
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
13
|
-
import {
|
|
13
|
+
import { CourtDeleteResponse } from '@tennac-booking/sdk';
|
|
14
14
|
|
|
15
|
-
const instance:
|
|
15
|
+
const instance: CourtDeleteResponse = {
|
|
16
16
|
message,
|
|
17
17
|
};
|
|
18
18
|
```
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
#
|
|
1
|
+
# GetClubPlayers200Response
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
8
|
+
**clubPlayers** | [**Array<UserStaffResponse>**](UserStaffResponse.md) | | [optional] [default to undefined]
|
|
9
9
|
**total** | **number** | | [optional] [default to undefined]
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import {
|
|
14
|
+
import { GetClubPlayers200Response } from '@tennac-booking/sdk';
|
|
15
15
|
|
|
16
|
-
const instance:
|
|
17
|
-
|
|
16
|
+
const instance: GetClubPlayers200Response = {
|
|
17
|
+
clubPlayers,
|
|
18
18
|
total,
|
|
19
19
|
};
|
|
20
20
|
```
|
package/docs/LoginResponse.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**token** | **string** | | [default to undefined]
|
|
9
|
+
**role** | **string** | | [optional] [default to undefined]
|
|
9
10
|
**refreshToken** | **string** | | [default to undefined]
|
|
10
11
|
**sessionDuration** | **number** | | [default to undefined]
|
|
11
12
|
**sessionEnd** | **number** | | [default to undefined]
|
|
@@ -17,6 +18,7 @@ import { LoginResponse } from '@tennac-booking/sdk';
|
|
|
17
18
|
|
|
18
19
|
const instance: LoginResponse = {
|
|
19
20
|
token,
|
|
21
|
+
role,
|
|
20
22
|
refreshToken,
|
|
21
23
|
sessionDuration,
|
|
22
24
|
sessionEnd,
|
|
@@ -5,7 +5,9 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**createCourtForClub**](#createcourtforclub) | **POST** /api/clubs/courts | Créer un terrain pour le club courant|
|
|
8
|
+
|[**deleteCourt**](#deletecourt) | **DELETE** /api/clubs/courts/{courtId} | Supprimer un terrain et ses créneaux futurs|
|
|
8
9
|
|[**getCourtsByClub**](#getcourtsbyclub) | **GET** /api/clubs/courts | Récupérer tous les terrains du club courant|
|
|
10
|
+
|[**updateCourt**](#updatecourt) | **PUT** /api/clubs/courts/{courtId} | Mettre à jour un terrain du club courant|
|
|
9
11
|
|
|
10
12
|
# **createCourtForClub**
|
|
11
13
|
> CourtResponse createCourtForClub(createCourtRequest)
|
|
@@ -61,6 +63,59 @@ const { status, data } = await apiInstance.createCourtForClub(
|
|
|
61
63
|
|
|
62
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)
|
|
63
65
|
|
|
66
|
+
# **deleteCourt**
|
|
67
|
+
> CourtDeleteResponse deleteCourt()
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
### Example
|
|
71
|
+
|
|
72
|
+
```typescript
|
|
73
|
+
import {
|
|
74
|
+
ManagerClubCourtsApi,
|
|
75
|
+
Configuration
|
|
76
|
+
} from '@tennac-booking/sdk';
|
|
77
|
+
|
|
78
|
+
const configuration = new Configuration();
|
|
79
|
+
const apiInstance = new ManagerClubCourtsApi(configuration);
|
|
80
|
+
|
|
81
|
+
let courtId: string; //ID du terrain à supprimer (default to undefined)
|
|
82
|
+
|
|
83
|
+
const { status, data } = await apiInstance.deleteCourt(
|
|
84
|
+
courtId
|
|
85
|
+
);
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Parameters
|
|
89
|
+
|
|
90
|
+
|Name | Type | Description | Notes|
|
|
91
|
+
|------------- | ------------- | ------------- | -------------|
|
|
92
|
+
| **courtId** | [**string**] | ID du terrain à supprimer | defaults to undefined|
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
### Return type
|
|
96
|
+
|
|
97
|
+
**CourtDeleteResponse**
|
|
98
|
+
|
|
99
|
+
### Authorization
|
|
100
|
+
|
|
101
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
102
|
+
|
|
103
|
+
### HTTP request headers
|
|
104
|
+
|
|
105
|
+
- **Content-Type**: Not defined
|
|
106
|
+
- **Accept**: application/json
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
### HTTP response details
|
|
110
|
+
| Status code | Description | Response headers |
|
|
111
|
+
|-------------|-------------|------------------|
|
|
112
|
+
|**200** | Terrain supprimé avec succès | - |
|
|
113
|
+
|**400** | Requête invalide | - |
|
|
114
|
+
|**404** | Ressource non trouvée | - |
|
|
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
|
+
|
|
64
119
|
# **getCourtsByClub**
|
|
65
120
|
> CourtsResponse getCourtsByClub()
|
|
66
121
|
|
|
@@ -106,3 +161,60 @@ This endpoint does not have any parameters.
|
|
|
106
161
|
|
|
107
162
|
[[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
163
|
|
|
164
|
+
# **updateCourt**
|
|
165
|
+
> CourtResponse updateCourt(updateCourtRequest)
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
### Example
|
|
169
|
+
|
|
170
|
+
```typescript
|
|
171
|
+
import {
|
|
172
|
+
ManagerClubCourtsApi,
|
|
173
|
+
Configuration,
|
|
174
|
+
UpdateCourtRequest
|
|
175
|
+
} from '@tennac-booking/sdk';
|
|
176
|
+
|
|
177
|
+
const configuration = new Configuration();
|
|
178
|
+
const apiInstance = new ManagerClubCourtsApi(configuration);
|
|
179
|
+
|
|
180
|
+
let courtId: string; //ID du terrain à mettre à jour (default to undefined)
|
|
181
|
+
let updateCourtRequest: UpdateCourtRequest; //
|
|
182
|
+
|
|
183
|
+
const { status, data } = await apiInstance.updateCourt(
|
|
184
|
+
courtId,
|
|
185
|
+
updateCourtRequest
|
|
186
|
+
);
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
### Parameters
|
|
190
|
+
|
|
191
|
+
|Name | Type | Description | Notes|
|
|
192
|
+
|------------- | ------------- | ------------- | -------------|
|
|
193
|
+
| **updateCourtRequest** | **UpdateCourtRequest**| | |
|
|
194
|
+
| **courtId** | [**string**] | ID du terrain à mettre à jour | defaults to undefined|
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
### Return type
|
|
198
|
+
|
|
199
|
+
**CourtResponse**
|
|
200
|
+
|
|
201
|
+
### Authorization
|
|
202
|
+
|
|
203
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
204
|
+
|
|
205
|
+
### HTTP request headers
|
|
206
|
+
|
|
207
|
+
- **Content-Type**: application/json
|
|
208
|
+
- **Accept**: application/json
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
### HTTP response details
|
|
212
|
+
| Status code | Description | Response headers |
|
|
213
|
+
|-------------|-------------|------------------|
|
|
214
|
+
|**200** | Terrain mis à jour avec succès | - |
|
|
215
|
+
|**400** | Requête invalide | - |
|
|
216
|
+
|**404** | Ressource non trouvée | - |
|
|
217
|
+
|**500** | Erreur serveur interne | - |
|
|
218
|
+
|
|
219
|
+
[[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)
|
|
220
|
+
|
package/docs/ManagerSportsApi.md
CHANGED
|
@@ -4,64 +4,9 @@ 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|
|
|
8
7
|
|[**deleteSport**](#deletesport) | **DELETE** /api/sports/{id} | Supprimer un sport|
|
|
9
8
|
|[**updateSport**](#updatesport) | **PUT** /api/sports/{id} | Mettre à jour un sport|
|
|
10
9
|
|
|
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
|
-
|
|
65
10
|
# **deleteSport**
|
|
66
11
|
> DeleteSport200Response deleteSport()
|
|
67
12
|
|
|
@@ -4,9 +4,54 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getClubPlayers**](#getclubplayers) | **GET** /api/analytics/players | Récupère la liste des joueurs du club (données staff uniquement)|
|
|
7
8
|
|[**getLastSixMonthsTurnover**](#getlastsixmonthsturnover) | **GET** /api/analytics/lastSixMonthsTurnover | Get monthly turnover for the last six months (club courant)|
|
|
8
9
|
|[**getNumberOfClubUsers**](#getnumberofclubusers) | **GET** /api/analytics/user-count | Get number of users subscribed to the club|
|
|
9
10
|
|
|
11
|
+
# **getClubPlayers**
|
|
12
|
+
> GetClubPlayers200Response getClubPlayers()
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
StaffClubAnalyticsApi,
|
|
20
|
+
Configuration
|
|
21
|
+
} from '@tennac-booking/sdk';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new StaffClubAnalyticsApi(configuration);
|
|
25
|
+
|
|
26
|
+
const { status, data } = await apiInstance.getClubPlayers();
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Parameters
|
|
30
|
+
This endpoint does not have any parameters.
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Return type
|
|
34
|
+
|
|
35
|
+
**GetClubPlayers200Response**
|
|
36
|
+
|
|
37
|
+
### Authorization
|
|
38
|
+
|
|
39
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
40
|
+
|
|
41
|
+
### HTTP request headers
|
|
42
|
+
|
|
43
|
+
- **Content-Type**: Not defined
|
|
44
|
+
- **Accept**: application/json
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### HTTP response details
|
|
48
|
+
| Status code | Description | Response headers |
|
|
49
|
+
|-------------|-------------|------------------|
|
|
50
|
+
|**200** | Liste des joueurs du club | - |
|
|
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
|
+
|
|
10
55
|
# **getLastSixMonthsTurnover**
|
|
11
56
|
> Array<GetLastSixMonthsTurnover200ResponseInner> getLastSixMonthsTurnover()
|
|
12
57
|
|
package/docs/StaffClubsApi.md
CHANGED
|
@@ -6,6 +6,7 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**getClubInfos**](#getclubinfos) | **GET** /api/clubs/infos | Get current club information|
|
|
8
8
|
|[**getClubSettings**](#getclubsettings) | **GET** /api/club-settings | Récupère les paramètres d’un club|
|
|
9
|
+
|[**getSports**](#getsports) | **GET** /api/sports | Récupère la liste des sports du club courant|
|
|
9
10
|
|
|
10
11
|
# **getClubInfos**
|
|
11
12
|
> GetClubInfos200Response getClubInfos()
|
|
@@ -52,7 +53,7 @@ This endpoint does not have any parameters.
|
|
|
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)
|
|
53
54
|
|
|
54
55
|
# **getClubSettings**
|
|
55
|
-
> ClubSettings getClubSettings(
|
|
56
|
+
> ClubSettings getClubSettings()
|
|
56
57
|
|
|
57
58
|
|
|
58
59
|
### Example
|
|
@@ -60,25 +61,17 @@ This endpoint does not have any parameters.
|
|
|
60
61
|
```typescript
|
|
61
62
|
import {
|
|
62
63
|
StaffClubsApi,
|
|
63
|
-
Configuration
|
|
64
|
-
GetClubSettingsRequest
|
|
64
|
+
Configuration
|
|
65
65
|
} from '@tennac-booking/sdk';
|
|
66
66
|
|
|
67
67
|
const configuration = new Configuration();
|
|
68
68
|
const apiInstance = new StaffClubsApi(configuration);
|
|
69
69
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
const { status, data } = await apiInstance.getClubSettings(
|
|
73
|
-
getClubSettingsRequest
|
|
74
|
-
);
|
|
70
|
+
const { status, data } = await apiInstance.getClubSettings();
|
|
75
71
|
```
|
|
76
72
|
|
|
77
73
|
### Parameters
|
|
78
|
-
|
|
79
|
-
|Name | Type | Description | Notes|
|
|
80
|
-
|------------- | ------------- | ------------- | -------------|
|
|
81
|
-
| **getClubSettingsRequest** | **GetClubSettingsRequest**| | |
|
|
74
|
+
This endpoint does not have any parameters.
|
|
82
75
|
|
|
83
76
|
|
|
84
77
|
### Return type
|
|
@@ -91,7 +84,7 @@ const { status, data } = await apiInstance.getClubSettings(
|
|
|
91
84
|
|
|
92
85
|
### HTTP request headers
|
|
93
86
|
|
|
94
|
-
- **Content-Type**:
|
|
87
|
+
- **Content-Type**: Not defined
|
|
95
88
|
- **Accept**: application/json
|
|
96
89
|
|
|
97
90
|
|
|
@@ -106,3 +99,49 @@ const { status, data } = await apiInstance.getClubSettings(
|
|
|
106
99
|
|
|
107
100
|
[[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
101
|
|
|
102
|
+
# **getSports**
|
|
103
|
+
> SportsResponse getSports()
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
### Example
|
|
107
|
+
|
|
108
|
+
```typescript
|
|
109
|
+
import {
|
|
110
|
+
StaffClubsApi,
|
|
111
|
+
Configuration
|
|
112
|
+
} from '@tennac-booking/sdk';
|
|
113
|
+
|
|
114
|
+
const configuration = new Configuration();
|
|
115
|
+
const apiInstance = new StaffClubsApi(configuration);
|
|
116
|
+
|
|
117
|
+
const { status, data } = await apiInstance.getSports();
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### Parameters
|
|
121
|
+
This endpoint does not have any parameters.
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
### Return type
|
|
125
|
+
|
|
126
|
+
**SportsResponse**
|
|
127
|
+
|
|
128
|
+
### Authorization
|
|
129
|
+
|
|
130
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
131
|
+
|
|
132
|
+
### HTTP request headers
|
|
133
|
+
|
|
134
|
+
- **Content-Type**: Not defined
|
|
135
|
+
- **Accept**: application/json
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
### HTTP response details
|
|
139
|
+
| Status code | Description | Response headers |
|
|
140
|
+
|-------------|-------------|------------------|
|
|
141
|
+
|**200** | Liste des sports | - |
|
|
142
|
+
|**401** | Non autorisé | - |
|
|
143
|
+
|**403** | Accès interdit | - |
|
|
144
|
+
|**500** | Erreur serveur interne | - |
|
|
145
|
+
|
|
146
|
+
[[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)
|
|
147
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# UpdateCourtRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | Nom du terrain | [default to undefined]
|
|
9
|
+
**status** | **string** | Statut du terrain | [default to undefined]
|
|
10
|
+
**comments** | **string** | Commentaires sur le terrain | [optional] [default to undefined]
|
|
11
|
+
**slotDefaultDuration** | **number** | Durée par défaut d’un créneau (en minutes) | [default to undefined]
|
|
12
|
+
**pricePerSlotInCents** | **number** | Prix par créneau en centimes | [optional] [default to undefined]
|
|
13
|
+
**startTimeInTheDayInMinutes** | **number** | Heure de début (minutes depuis minuit) | [default to undefined]
|
|
14
|
+
**endTimeInTheDayInMinutes** | **number** | Heure de fin (minutes depuis minuit) | [default to undefined]
|
|
15
|
+
**sportId** | **string** | ID du sport associé | [default to undefined]
|
|
16
|
+
**surface** | **string** | Type de surface | [default to undefined]
|
|
17
|
+
**isIndoor** | **boolean** | Terrain intérieur ou extérieur | [default to undefined]
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { UpdateCourtRequest } from '@tennac-booking/sdk';
|
|
23
|
+
|
|
24
|
+
const instance: UpdateCourtRequest = {
|
|
25
|
+
name,
|
|
26
|
+
status,
|
|
27
|
+
comments,
|
|
28
|
+
slotDefaultDuration,
|
|
29
|
+
pricePerSlotInCents,
|
|
30
|
+
startTimeInTheDayInMinutes,
|
|
31
|
+
endTimeInTheDayInMinutes,
|
|
32
|
+
sportId,
|
|
33
|
+
surface,
|
|
34
|
+
isIndoor,
|
|
35
|
+
};
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/UserProfileApi.md
CHANGED
|
@@ -19,7 +19,7 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
19
19
|
|[**getUserDescription**](#getuserdescription) | **GET** /api/users/me/description | Récupère la description de l\'utilisateur connecté|
|
|
20
20
|
|[**getUserInfo**](#getuserinfo) | **GET** /api/users/me | Récupère les informations de l\'utilisateur connecté|
|
|
21
21
|
|[**getUserProfileVisibility**](#getuserprofilevisibility) | **GET** /api/users/me/profile-visibility | Récupère la visibilité du profil de l\'utilisateur connecté|
|
|
22
|
-
|[**removeFavoriteClub**](#removefavoriteclub) | **DELETE** /api/users/me/favorite-clubs | Remove a club from the user\'s favorite list|
|
|
22
|
+
|[**removeFavoriteClub**](#removefavoriteclub) | **DELETE** /api/users/me/favorite-clubs/{clubId} | Remove a club from the user\'s favorite list|
|
|
23
23
|
|[**removeFavoritePlayer**](#removefavoriteplayer) | **DELETE** /api/users/me/favoritesPlayers/{favoritePlayerId} | Retire un joueur des favoris de l\'utilisateur connecté|
|
|
24
24
|
|[**updateLevelBySports**](#updatelevelbysports) | **PUT** /api/users/me/level-by-sports | Met à jour le tableau levelBySports de l\'utilisateur connecté|
|
|
25
25
|
|[**updateProfilePicture**](#updateprofilepicture) | **PUT** /api/users/me/profile-picture | Met à jour l\'URL de la photo de profil de l\'utilisateur connecté|
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# UserStaffResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**firstName** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**lastName** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**isAccountVerified** | **boolean** | | [optional] [default to undefined]
|
|
13
|
+
**isProfileVisible** | **boolean** | | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { UserStaffResponse } from '@tennac-booking/sdk';
|
|
19
|
+
|
|
20
|
+
const instance: UserStaffResponse = {
|
|
21
|
+
id,
|
|
22
|
+
firstName,
|
|
23
|
+
lastName,
|
|
24
|
+
profilePicture,
|
|
25
|
+
isAccountVerified,
|
|
26
|
+
isProfileVisible,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/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.32
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|