@tennac-booking/sdk 1.0.11 → 1.0.12
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 +56 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +86 -0
- package/api.ts +6087 -308
- package/common.ts +4 -4
- package/dist/api.d.ts +4105 -243
- package/dist/api.js +3265 -9
- package/dist/esm/api.d.ts +4105 -243
- package/dist/esm/api.js +3228 -8
- package/docs/AddClubMemberRequest.md +22 -0
- package/docs/AddClubMemberResponse.md +22 -0
- package/docs/BlockSlotResponse.md +22 -0
- package/docs/BookingResponse.md +28 -0
- package/docs/BookingsApi.md +120 -0
- package/docs/Club.md +46 -0
- package/docs/ClubCourtsApi.md +118 -0
- package/docs/ClubInfoResponse.md +46 -0
- package/docs/ClubListResponse.md +22 -0
- package/docs/ClubMember.md +34 -0
- package/docs/ClubMembersResponse.md +22 -0
- package/docs/ClubResponse.md +46 -0
- package/docs/ClubRole.md +30 -0
- package/docs/ClubRoleResponse.md +30 -0
- package/docs/ClubRolesApi.md +268 -0
- package/docs/ClubRolesResponse.md +22 -0
- package/docs/ClubSettings.md +28 -0
- package/docs/ClubSettingsApi.md +227 -0
- package/docs/ClubSlotsApi.md +300 -0
- package/docs/ClubSportsApi.md +118 -0
- package/docs/ClubSubscriptionsApi.md +408 -0
- package/docs/ClubsApi.md +432 -0
- package/docs/CourtResponse.md +44 -0
- package/docs/CourtsResponse.md +22 -0
- package/docs/CreateBookingRequest.md +28 -0
- package/docs/CreateClubRequest.md +38 -0
- package/docs/CreateClubRoleRequestBody.md +24 -0
- package/docs/CreateCourtRequest.md +34 -0
- package/docs/CreatePriceRequest.md +26 -0
- package/docs/CreateSportRequest.md +22 -0
- package/docs/CreateSubscriptionPlanRequest.md +24 -0
- package/docs/DeleteClub200Response.md +20 -0
- package/docs/DeleteClubRole200Response.md +20 -0
- package/docs/DeleteSlotsByClubInRange200Response.md +20 -0
- package/docs/GenerateSlotsForNextThreeWeeks201Response.md +20 -0
- package/docs/GetAllSportsRequest.md +20 -0
- package/docs/GetClubSettingsRequest.md +20 -0
- package/docs/GetUserRolesInClubs200Response.md +20 -0
- package/docs/PaymentMethod.md +11 -0
- package/docs/PlayerWithPaymentMethod.md +22 -0
- package/docs/PriceResponse.md +38 -0
- package/docs/RestoreSubscriptionPlanForClub200Response.md +20 -0
- package/docs/SlotResponse.md +40 -0
- package/docs/SlotsResponse.md +22 -0
- package/docs/Sport.md +24 -0
- package/docs/SportResponse.md +34 -0
- package/docs/SportsApi.md +229 -0
- package/docs/SportsResponse.md +22 -0
- package/docs/SubscriptionPlan.md +36 -0
- package/docs/SubscriptionPlanResponse.md +36 -0
- package/docs/UpdateClubRequest.md +40 -0
- package/docs/UpdateClubRoleRequestBody.md +24 -0
- package/docs/UpdateSportRequest.md +20 -0
- package/docs/UpdateSubscriptionPlanRequest.md +24 -0
- package/docs/UpdateSubscriptionPlanResponse.md +22 -0
- package/docs/UsersApi.md +65 -18
- package/package.json +1 -33
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# UpdateClubRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**address** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**city** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**zipCode** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**country** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**phone** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**website** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**logo** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**isActive** | **boolean** | | [optional] [default to undefined]
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { UpdateClubRequest } from '@tennac-booking/sdk';
|
|
24
|
+
|
|
25
|
+
const instance: UpdateClubRequest = {
|
|
26
|
+
name,
|
|
27
|
+
address,
|
|
28
|
+
city,
|
|
29
|
+
zipCode,
|
|
30
|
+
country,
|
|
31
|
+
phone,
|
|
32
|
+
email,
|
|
33
|
+
website,
|
|
34
|
+
description,
|
|
35
|
+
logo,
|
|
36
|
+
isActive,
|
|
37
|
+
};
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# UpdateClubRoleRequestBody
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | Nouveau nom du rôle (optionnel) | [optional] [default to undefined]
|
|
9
|
+
**description** | **string** | Nouvelle description du rôle (optionnel) | [optional] [default to undefined]
|
|
10
|
+
**permissions** | **Array<string>** | Nouvelle liste de permissions (optionnel) | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { UpdateClubRoleRequestBody } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: UpdateClubRoleRequestBody = {
|
|
18
|
+
name,
|
|
19
|
+
description,
|
|
20
|
+
permissions,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# UpdateSportRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**key** | **string** | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { UpdateSportRequest } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: UpdateSportRequest = {
|
|
16
|
+
key,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# UpdateSubscriptionPlanRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**metadata** | **object** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { UpdateSubscriptionPlanRequest } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: UpdateSubscriptionPlanRequest = {
|
|
18
|
+
name,
|
|
19
|
+
description,
|
|
20
|
+
metadata,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# UpdateSubscriptionPlanResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**plan** | [**SubscriptionPlanResponse**](SubscriptionPlanResponse.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { UpdateSubscriptionPlanResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: UpdateSubscriptionPlanResponse = {
|
|
17
|
+
message,
|
|
18
|
+
plan,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[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/UsersApi.md
CHANGED
|
@@ -7,6 +7,7 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
7
7
|
|[**changePassword**](#changepassword) | **PUT** /api/users/me/password | Modifie le mot de passe de l\'utilisateur connecté|
|
|
8
8
|
|[**getAllUsers**](#getallusers) | **GET** /api/users | Récupère la liste des utilisateurs|
|
|
9
9
|
|[**getUserInfo**](#getuserinfo) | **GET** /api/users/me | Récupère les informations de l\'utilisateur connecté|
|
|
10
|
+
|[**getUserRolesInClubs**](#getuserrolesinclubs) | **GET** /api/users/me/roles | Récupère les rôles de l\'utilisateur dans les clubs|
|
|
10
11
|
|[**login**](#login) | **POST** /api/users/login | Authentifie un utilisateur|
|
|
11
12
|
|[**refreshToken**](#refreshtoken) | **POST** /api/users/refresh-token | Rafraîchit le token d\'accès|
|
|
12
13
|
|[**register**](#register) | **POST** /api/users | Crée un nouvel utilisateur|
|
|
@@ -60,9 +61,9 @@ const { status, data } = await apiInstance.changePassword(
|
|
|
60
61
|
| Status code | Description | Response headers |
|
|
61
62
|
|-------------|-------------|------------------|
|
|
62
63
|
|**200** | Mot de passe modifié | - |
|
|
63
|
-
|**400** |
|
|
64
|
-
|**401** |
|
|
65
|
-
|**500** |
|
|
64
|
+
|**400** | Requête invalide | - |
|
|
65
|
+
|**401** | Non autorisé | - |
|
|
66
|
+
|**500** | Erreur serveur interne | - |
|
|
66
67
|
|
|
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)
|
|
68
69
|
|
|
@@ -106,8 +107,8 @@ This endpoint does not have any parameters.
|
|
|
106
107
|
| Status code | Description | Response headers |
|
|
107
108
|
|-------------|-------------|------------------|
|
|
108
109
|
|**200** | Liste des utilisateurs | - |
|
|
109
|
-
|**401** |
|
|
110
|
-
|**500** |
|
|
110
|
+
|**401** | Non autorisé | - |
|
|
111
|
+
|**500** | Erreur serveur interne | - |
|
|
111
112
|
|
|
112
113
|
[[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)
|
|
113
114
|
|
|
@@ -151,8 +152,54 @@ This endpoint does not have any parameters.
|
|
|
151
152
|
| Status code | Description | Response headers |
|
|
152
153
|
|-------------|-------------|------------------|
|
|
153
154
|
|**200** | Informations de l\'utilisateur | - |
|
|
154
|
-
|**401** |
|
|
155
|
-
|**500** |
|
|
155
|
+
|**401** | Non autorisé | - |
|
|
156
|
+
|**500** | Erreur serveur interne | - |
|
|
157
|
+
|
|
158
|
+
[[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)
|
|
159
|
+
|
|
160
|
+
# **getUserRolesInClubs**
|
|
161
|
+
> GetUserRolesInClubs200Response getUserRolesInClubs()
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
### Example
|
|
165
|
+
|
|
166
|
+
```typescript
|
|
167
|
+
import {
|
|
168
|
+
UsersApi,
|
|
169
|
+
Configuration
|
|
170
|
+
} from '@tennac-booking/sdk';
|
|
171
|
+
|
|
172
|
+
const configuration = new Configuration();
|
|
173
|
+
const apiInstance = new UsersApi(configuration);
|
|
174
|
+
|
|
175
|
+
const { status, data } = await apiInstance.getUserRolesInClubs();
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
### Parameters
|
|
179
|
+
This endpoint does not have any parameters.
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
### Return type
|
|
183
|
+
|
|
184
|
+
**GetUserRolesInClubs200Response**
|
|
185
|
+
|
|
186
|
+
### Authorization
|
|
187
|
+
|
|
188
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
189
|
+
|
|
190
|
+
### HTTP request headers
|
|
191
|
+
|
|
192
|
+
- **Content-Type**: Not defined
|
|
193
|
+
- **Accept**: application/json
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
### HTTP response details
|
|
197
|
+
| Status code | Description | Response headers |
|
|
198
|
+
|-------------|-------------|------------------|
|
|
199
|
+
|**200** | Liste des rôles dans les clubs | - |
|
|
200
|
+
|**400** | Requête invalide | - |
|
|
201
|
+
|**401** | Non autorisé | - |
|
|
202
|
+
|**500** | Erreur serveur interne | - |
|
|
156
203
|
|
|
157
204
|
[[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)
|
|
158
205
|
|
|
@@ -204,9 +251,9 @@ const { status, data } = await apiInstance.login(
|
|
|
204
251
|
| Status code | Description | Response headers |
|
|
205
252
|
|-------------|-------------|------------------|
|
|
206
253
|
|**200** | Authentification réussie | - |
|
|
207
|
-
|**400** |
|
|
208
|
-
|**401** |
|
|
209
|
-
|**500** |
|
|
254
|
+
|**400** | Requête invalide | - |
|
|
255
|
+
|**401** | Non autorisé | - |
|
|
256
|
+
|**500** | Erreur serveur interne | - |
|
|
210
257
|
|
|
211
258
|
[[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)
|
|
212
259
|
|
|
@@ -258,9 +305,9 @@ const { status, data } = await apiInstance.refreshToken(
|
|
|
258
305
|
| Status code | Description | Response headers |
|
|
259
306
|
|-------------|-------------|------------------|
|
|
260
307
|
|**200** | Nouveaux tokens | - |
|
|
261
|
-
|**400** |
|
|
262
|
-
|**401** |
|
|
263
|
-
|**500** |
|
|
308
|
+
|**400** | Requête invalide | - |
|
|
309
|
+
|**401** | Non autorisé | - |
|
|
310
|
+
|**500** | Erreur serveur interne | - |
|
|
264
311
|
|
|
265
312
|
[[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)
|
|
266
313
|
|
|
@@ -312,9 +359,9 @@ const { status, data } = await apiInstance.register(
|
|
|
312
359
|
| Status code | Description | Response headers |
|
|
313
360
|
|-------------|-------------|------------------|
|
|
314
361
|
|**201** | Utilisateur créé | - |
|
|
315
|
-
|**400** |
|
|
362
|
+
|**400** | Requête invalide | - |
|
|
316
363
|
|**409** | Email déjà utilisé | - |
|
|
317
|
-
|**500** |
|
|
364
|
+
|**500** | Erreur serveur interne | - |
|
|
318
365
|
|
|
319
366
|
[[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)
|
|
320
367
|
|
|
@@ -366,9 +413,9 @@ const { status, data } = await apiInstance.updateUser(
|
|
|
366
413
|
| Status code | Description | Response headers |
|
|
367
414
|
|-------------|-------------|------------------|
|
|
368
415
|
|**200** | Utilisateur mis à jour | - |
|
|
369
|
-
|**400** |
|
|
370
|
-
|**401** |
|
|
371
|
-
|**500** |
|
|
416
|
+
|**400** | Requête invalide | - |
|
|
417
|
+
|**401** | Non autorisé | - |
|
|
418
|
+
|**500** | Erreur serveur interne | - |
|
|
372
419
|
|
|
373
420
|
[[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)
|
|
374
421
|
|
package/package.json
CHANGED
|
@@ -1,33 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@tennac-booking/sdk",
|
|
3
|
-
"version": "1.0.11",
|
|
4
|
-
"description": "OpenAPI client for @tennac-booking/sdk",
|
|
5
|
-
"author": "OpenAPI-Generator Contributors",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
|
|
9
|
-
},
|
|
10
|
-
"keywords": [
|
|
11
|
-
"axios",
|
|
12
|
-
"typescript",
|
|
13
|
-
"openapi-client",
|
|
14
|
-
"openapi-generator",
|
|
15
|
-
"@tennac-booking/sdk"
|
|
16
|
-
],
|
|
17
|
-
"license": "Unlicense",
|
|
18
|
-
"main": "./dist/index.js",
|
|
19
|
-
"typings": "./dist/index.d.ts",
|
|
20
|
-
"module": "./dist/esm/index.js",
|
|
21
|
-
"sideEffects": false,
|
|
22
|
-
"scripts": {
|
|
23
|
-
"build": "tsc && tsc -p tsconfig.esm.json",
|
|
24
|
-
"prepare": "npm run build"
|
|
25
|
-
},
|
|
26
|
-
"dependencies": {
|
|
27
|
-
"axios": "^1.6.1"
|
|
28
|
-
},
|
|
29
|
-
"devDependencies": {
|
|
30
|
-
"@types/node": "12.11.5 - 12.20.42",
|
|
31
|
-
"typescript": "^4.0 || ^5.0"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
1
|
+
{ "name": "@tennac-booking/sdk", "version": "1.0.12", "description": "OpenAPI client for @tennac-booking/sdk", "author": "OpenAPI-Generator Contributors", "publishConfig": { "access": "public" }, "keywords": [ "axios", "typescript", "openapi-client", "openapi-generator", "@tennac-booking/sdk" ], "license": "Unlicense", "main": "./dist/index.js", "typings": "./dist/index.d.ts", "module": "./dist/esm/index.js", "sideEffects": false, "scripts": { "build": "tsc && tsc -p tsconfig.esm.json", "prepare": "npm run build" }, "dependencies": { "axios": "^1.6.1" }, "devDependencies": { "@types/node": "12.11.5 - 12.20.42", "typescript": "^4.0 || ^5.0" }}
|