@tennac-booking/sdk 1.0.70 → 1.0.71
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 +236 -230
- package/README.md +14 -5
- package/api.ts +957 -145
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +909 -263
- package/dist/api.js +347 -50
- 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 +909 -263
- package/dist/esm/api.js +344 -47
- 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/BookingStatus.md +2 -0
- package/docs/BookingsStaffApi.md +1 -1
- package/docs/CheckInPlayersResponse.md +2 -10
- package/docs/ClubsApi.md +2 -2
- package/docs/CreateEventRequest.md +26 -0
- package/docs/CreateSportForClubRequest.md +6 -0
- package/docs/CreateSportRequest.md +8 -2
- package/docs/EventResponse.md +26 -0
- package/docs/EventsApi.md +131 -12
- package/docs/EventsManagerApi.md +59 -0
- package/docs/JoinEventRequest.md +22 -0
- package/docs/JoinEventResponse.md +22 -0
- package/docs/SportKey.md +14 -0
- package/docs/SportLevel.md +22 -0
- package/docs/SportResponse.md +10 -5
- package/docs/SportWithLevels.md +30 -0
- package/docs/SportsManagerApi.md +6 -3
- package/docs/SportsStaffApi.md +3 -3
- package/docs/SubscriberPrice.md +22 -0
- package/docs/{GetSportsByClubById200Response.md → Team.md} +7 -5
- package/docs/UpdateEventRequest.md +54 -0
- package/docs/UpdateSportRequest.md +9 -1
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/SportWithAnalytics.md +0 -36
package/docs/SportResponse.md
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
# SportResponse
|
|
2
2
|
|
|
3
|
-
Types TSOA pour les sports - alignés sur la documentation Swagger existante
|
|
4
3
|
|
|
5
4
|
## Properties
|
|
6
5
|
|
|
7
6
|
Name | Type | Description | Notes
|
|
8
7
|
------------ | ------------- | ------------- | -------------
|
|
9
8
|
**id** | **string** | ID unique du sport | [default to undefined]
|
|
10
|
-
**key** | **
|
|
11
|
-
**name** | **string** | Nom du sport | [
|
|
9
|
+
**key** | [**SportKey**](SportKey.md) | | [default to undefined]
|
|
10
|
+
**name** | **string** | Nom affiché du sport | [default to undefined]
|
|
12
11
|
**description** | **string** | Description du sport | [optional] [default to undefined]
|
|
13
|
-
**
|
|
12
|
+
**levels** | [**Array<SportLevel>**](SportLevel.md) | Niveaux associés au sport | [optional] [default to undefined]
|
|
13
|
+
**logos** | **Array<string>** | URLs de logos/images pour le sport | [optional] [default to undefined]
|
|
14
|
+
**createdBy** | **string** | ID du club créateur | [optional] [default to undefined]
|
|
15
|
+
**verified** | **boolean** | Sport vérifié/officiel (non modifiable) | [default to undefined]
|
|
14
16
|
**createdAt** | **string** | Date de création | [default to undefined]
|
|
15
17
|
**updatedAt** | **string** | Date de dernière mise à jour | [default to undefined]
|
|
16
18
|
|
|
@@ -24,7 +26,10 @@ const instance: SportResponse = {
|
|
|
24
26
|
key,
|
|
25
27
|
name,
|
|
26
28
|
description,
|
|
27
|
-
|
|
29
|
+
levels,
|
|
30
|
+
logos,
|
|
31
|
+
createdBy,
|
|
32
|
+
verified,
|
|
28
33
|
createdAt,
|
|
29
34
|
updatedAt,
|
|
30
35
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# SportWithLevels
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
**key** | **string** | | [default to undefined]
|
|
10
|
+
**name** | **string** | | [default to undefined]
|
|
11
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**levels** | [**Array<SportLevel>**](SportLevel.md) | | [optional] [default to undefined]
|
|
13
|
+
**logos** | **Array<string>** | | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { SportWithLevels } from '@tennac-booking/sdk';
|
|
19
|
+
|
|
20
|
+
const instance: SportWithLevels = {
|
|
21
|
+
id,
|
|
22
|
+
key,
|
|
23
|
+
name,
|
|
24
|
+
description,
|
|
25
|
+
levels,
|
|
26
|
+
logos,
|
|
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/docs/SportsManagerApi.md
CHANGED
|
@@ -11,7 +11,7 @@ All URIs are relative to *http://localhost*
|
|
|
11
11
|
# **createSport**
|
|
12
12
|
> SportResponse createSport(createSportRequest)
|
|
13
13
|
|
|
14
|
-
Crée un sport
|
|
14
|
+
Crée un sport (global) avec createdBy = clubId de l\'utilisateur
|
|
15
15
|
|
|
16
16
|
### Example
|
|
17
17
|
|
|
@@ -59,6 +59,7 @@ const { status, data } = await apiInstance.createSport(
|
|
|
59
59
|
|**201** | Sport créé | - |
|
|
60
60
|
|**400** | Bad Request | - |
|
|
61
61
|
|**401** | Unauthorized | - |
|
|
62
|
+
|**409** | Conflict | - |
|
|
62
63
|
|**500** | Server Error | - |
|
|
63
64
|
|
|
64
65
|
[[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,7 +67,7 @@ const { status, data } = await apiInstance.createSport(
|
|
|
66
67
|
# **deleteSport**
|
|
67
68
|
> DeleteSportResponse deleteSport()
|
|
68
69
|
|
|
69
|
-
Supprime un sport
|
|
70
|
+
Supprime un sport (interdit si vérifié)
|
|
70
71
|
|
|
71
72
|
### Example
|
|
72
73
|
|
|
@@ -112,6 +113,7 @@ const { status, data } = await apiInstance.deleteSport(
|
|
|
112
113
|
|-------------|-------------|------------------|
|
|
113
114
|
|**200** | Sport supprimé | - |
|
|
114
115
|
|**401** | Unauthorized | - |
|
|
116
|
+
|**403** | Forbidden - Sport vérifié non supprimable | - |
|
|
115
117
|
|**404** | Sport non trouvé | - |
|
|
116
118
|
|**500** | Server Error | - |
|
|
117
119
|
|
|
@@ -120,7 +122,7 @@ const { status, data } = await apiInstance.deleteSport(
|
|
|
120
122
|
# **updateSport**
|
|
121
123
|
> SportResponse updateSport(updateSportRequest)
|
|
122
124
|
|
|
123
|
-
Met à jour un sport
|
|
125
|
+
Met à jour un sport (interdit si vérifié)
|
|
124
126
|
|
|
125
127
|
### Example
|
|
126
128
|
|
|
@@ -170,6 +172,7 @@ const { status, data } = await apiInstance.updateSport(
|
|
|
170
172
|
|-------------|-------------|------------------|
|
|
171
173
|
|**200** | Sport mis à jour | - |
|
|
172
174
|
|**401** | Unauthorized | - |
|
|
175
|
+
|**403** | Forbidden - Sport vérifié non modifiable | - |
|
|
173
176
|
|**404** | Sport non trouvé | - |
|
|
174
177
|
|**500** | Server Error | - |
|
|
175
178
|
|
package/docs/SportsStaffApi.md
CHANGED
|
@@ -7,9 +7,9 @@ All URIs are relative to *http://localhost*
|
|
|
7
7
|
|[**getAllSports**](#getallsports) | **GET** /api/sports | |
|
|
8
8
|
|
|
9
9
|
# **getAllSports**
|
|
10
|
-
> Array<
|
|
10
|
+
> Array<SportResponse> getAllSports()
|
|
11
11
|
|
|
12
|
-
Récupère la liste des sports
|
|
12
|
+
Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
|
|
13
13
|
|
|
14
14
|
### Example
|
|
15
15
|
|
|
@@ -31,7 +31,7 @@ This endpoint does not have any parameters.
|
|
|
31
31
|
|
|
32
32
|
### Return type
|
|
33
33
|
|
|
34
|
-
**Array<
|
|
34
|
+
**Array<SportResponse>**
|
|
35
35
|
|
|
36
36
|
### Authorization
|
|
37
37
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# SubscriberPrice
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**subscriptionPlanId** | **string** | | [default to undefined]
|
|
9
|
+
**amount** | **number** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { SubscriberPrice } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: SubscriberPrice = {
|
|
17
|
+
subscriptionPlanId,
|
|
18
|
+
amount,
|
|
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)
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Team
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
8
|
+
**name** | **string** | | [default to undefined]
|
|
9
|
+
**players** | **Array<string>** | | [default to undefined]
|
|
9
10
|
|
|
10
11
|
## Example
|
|
11
12
|
|
|
12
13
|
```typescript
|
|
13
|
-
import {
|
|
14
|
+
import { Team } from '@tennac-booking/sdk';
|
|
14
15
|
|
|
15
|
-
const instance:
|
|
16
|
-
|
|
16
|
+
const instance: Team = {
|
|
17
|
+
name,
|
|
18
|
+
players,
|
|
17
19
|
};
|
|
18
20
|
```
|
|
19
21
|
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# UpdateEventRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**type** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**title** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**photoUrl** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**startDate** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**endDate** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**courts** | [**Array<EventResponseCourtsInner>**](EventResponseCourtsInner.md) | | [optional] [default to undefined]
|
|
15
|
+
**sports** | **Array<string>** | | [optional] [default to undefined]
|
|
16
|
+
**recurringType** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**recurrenceEndDate** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**participationType** | **string** | | [optional] [default to undefined]
|
|
19
|
+
**participants** | **Array<string>** | | [optional] [default to undefined]
|
|
20
|
+
**teams** | [**Array<Team>**](Team.md) | | [optional] [default to undefined]
|
|
21
|
+
**playerLimit** | **number** | | [optional] [default to undefined]
|
|
22
|
+
**teamLimit** | **number** | | [optional] [default to undefined]
|
|
23
|
+
**price** | **number** | | [optional] [default to undefined]
|
|
24
|
+
**subscriberPrices** | [**Array<SubscriberPrice>**](SubscriberPrice.md) | | [optional] [default to undefined]
|
|
25
|
+
**visibilityType** | **string** | | [optional] [default to undefined]
|
|
26
|
+
|
|
27
|
+
## Example
|
|
28
|
+
|
|
29
|
+
```typescript
|
|
30
|
+
import { UpdateEventRequest } from '@tennac-booking/sdk';
|
|
31
|
+
|
|
32
|
+
const instance: UpdateEventRequest = {
|
|
33
|
+
type,
|
|
34
|
+
title,
|
|
35
|
+
description,
|
|
36
|
+
photoUrl,
|
|
37
|
+
startDate,
|
|
38
|
+
endDate,
|
|
39
|
+
courts,
|
|
40
|
+
sports,
|
|
41
|
+
recurringType,
|
|
42
|
+
recurrenceEndDate,
|
|
43
|
+
participationType,
|
|
44
|
+
participants,
|
|
45
|
+
teams,
|
|
46
|
+
playerLimit,
|
|
47
|
+
teamLimit,
|
|
48
|
+
price,
|
|
49
|
+
subscriberPrices,
|
|
50
|
+
visibilityType,
|
|
51
|
+
};
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**key** | **
|
|
8
|
+
**key** | [**SportKey**](SportKey.md) | | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | Nom affiché du sport | [optional] [default to undefined]
|
|
10
|
+
**description** | **string** | Description du sport | [optional] [default to undefined]
|
|
11
|
+
**levels** | [**Array<SportLevel>**](SportLevel.md) | Niveaux associés | [optional] [default to undefined]
|
|
12
|
+
**logos** | **Array<string>** | URLs de logos/images | [optional] [default to undefined]
|
|
9
13
|
|
|
10
14
|
## Example
|
|
11
15
|
|
|
@@ -14,6 +18,10 @@ import { UpdateSportRequest } from '@tennac-booking/sdk';
|
|
|
14
18
|
|
|
15
19
|
const instance: UpdateSportRequest = {
|
|
16
20
|
key,
|
|
21
|
+
name,
|
|
22
|
+
description,
|
|
23
|
+
levels,
|
|
24
|
+
logos,
|
|
17
25
|
};
|
|
18
26
|
```
|
|
19
27
|
|
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
# SportWithAnalytics
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**id** | **string** | ID unique du sport | [default to undefined]
|
|
9
|
-
**key** | **string** | Clé/nom du sport | [default to undefined]
|
|
10
|
-
**name** | **string** | Nom du sport | [optional] [default to undefined]
|
|
11
|
-
**description** | **string** | Description du sport | [optional] [default to undefined]
|
|
12
|
-
**clubId** | **string** | ID du club auquel appartient le sport | [default to undefined]
|
|
13
|
-
**createdAt** | **string** | Date de création | [default to undefined]
|
|
14
|
-
**updatedAt** | **string** | Date de dernière mise à jour | [default to undefined]
|
|
15
|
-
**courtsCount** | **number** | Nombre de terrains pour ce sport | [default to undefined]
|
|
16
|
-
**bookingsCount** | **number** | Nombre de réservations actives/en attente pour ce sport | [default to undefined]
|
|
17
|
-
|
|
18
|
-
## Example
|
|
19
|
-
|
|
20
|
-
```typescript
|
|
21
|
-
import { SportWithAnalytics } from '@tennac-booking/sdk';
|
|
22
|
-
|
|
23
|
-
const instance: SportWithAnalytics = {
|
|
24
|
-
id,
|
|
25
|
-
key,
|
|
26
|
-
name,
|
|
27
|
-
description,
|
|
28
|
-
clubId,
|
|
29
|
-
createdAt,
|
|
30
|
-
updatedAt,
|
|
31
|
-
courtsCount,
|
|
32
|
-
bookingsCount,
|
|
33
|
-
};
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|