@tennac-booking/sdk 1.0.33 → 1.0.35
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 +12 -2
- package/README.md +21 -4
- package/api.ts +1575 -146
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1054 -77
- package/dist/api.js +759 -4
- 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 +1054 -77
- package/dist/esm/api.js +748 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/ActiveClub.md +4 -0
- package/docs/BookingHistoryResponse.md +22 -0
- package/docs/BookingHistoryResponseHistoryInner.md +32 -0
- package/docs/BookingPopulated.md +2 -0
- package/docs/BookingsApi.md +113 -0
- package/docs/BookingsStaffWeeklyWeekIdGet200Response.md +20 -0
- package/docs/Club.md +2 -2
- package/docs/CourtWithNameResponse.md +48 -0
- package/docs/{SportsResponse.md → CourtsWithNameResponse.md} +5 -5
- package/docs/GenderPercentage.md +26 -0
- package/docs/Location.md +32 -0
- package/docs/ManagerClubCourtsApi.md +2 -2
- package/docs/PaymentStatus.md +30 -0
- package/docs/Sport.md +0 -2
- package/docs/SportResponse.md +4 -0
- package/docs/StaffClubAnalyticsApi.md +49 -2
- package/docs/StaffClubsApi.md +2 -2
- package/docs/UpdateUserRequestBody.md +8 -2
- package/docs/UpdateUserRequestBodyLevelBySportsInner.md +22 -0
- package/docs/UserBookingItem.md +46 -0
- package/docs/UserBookingsApi.md +46 -0
- package/docs/UserClubSportsApi.md +2 -2
- package/docs/UserProfileApi.md +53 -0
- package/docs/UserStaffResponse.md +6 -0
- package/docs/UsersApi.md +243 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/GetClubPlayers200Response.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.35
|
|
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.35
|
|
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.35
|
|
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.35
|
|
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.35
|
|
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.35
|
|
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.35
|
|
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.35
|
|
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.35
|
|
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.35
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/docs/ActiveClub.md
CHANGED
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**_id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**picture** | **string** | | [optional] [default to undefined]
|
|
9
10
|
**name** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**location** | [**Location**](Location.md) | | [optional] [default to undefined]
|
|
10
12
|
**paymentFeature** | **boolean** | | [optional] [default to undefined]
|
|
11
13
|
|
|
12
14
|
## Example
|
|
@@ -16,7 +18,9 @@ import { ActiveClub } from '@tennac-booking/sdk';
|
|
|
16
18
|
|
|
17
19
|
const instance: ActiveClub = {
|
|
18
20
|
_id,
|
|
21
|
+
picture,
|
|
19
22
|
name,
|
|
23
|
+
location,
|
|
20
24
|
paymentFeature,
|
|
21
25
|
};
|
|
22
26
|
```
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# BookingHistoryResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**bookingId** | **string** | ID de la réservation | [optional] [default to undefined]
|
|
9
|
+
**history** | [**Array<BookingHistoryResponseHistoryInner>**](BookingHistoryResponseHistoryInner.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { BookingHistoryResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: BookingHistoryResponse = {
|
|
17
|
+
bookingId,
|
|
18
|
+
history,
|
|
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)
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# BookingHistoryResponseHistoryInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**slotId** | **string** | ID du créneau réservé | [optional] [default to undefined]
|
|
9
|
+
**userId** | **string** | ID de l\'utilisateur qui a effectué la réservation | [optional] [default to undefined]
|
|
10
|
+
**status** | **string** | Statut de la réservation (active, cancelled, completed) | [optional] [default to undefined]
|
|
11
|
+
**totalPrice** | **number** | Prix total de la réservation | [optional] [default to undefined]
|
|
12
|
+
**paymentStatus** | **string** | Statut du paiement (paid, pending, cancelled) | [optional] [default to undefined]
|
|
13
|
+
**createdAt** | **string** | Date et heure de la création de la réservation | [optional] [default to undefined]
|
|
14
|
+
**updatedAt** | **string** | Date et heure de la dernière mise à jour de la réservation | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { BookingHistoryResponseHistoryInner } from '@tennac-booking/sdk';
|
|
20
|
+
|
|
21
|
+
const instance: BookingHistoryResponseHistoryInner = {
|
|
22
|
+
slotId,
|
|
23
|
+
userId,
|
|
24
|
+
status,
|
|
25
|
+
totalPrice,
|
|
26
|
+
paymentStatus,
|
|
27
|
+
createdAt,
|
|
28
|
+
updatedAt,
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[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/BookingPopulated.md
CHANGED
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**status** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**userId** | [**BookingPopulatedUserId**](BookingPopulatedUserId.md) | | [optional] [default to undefined]
|
|
11
11
|
**slotId** | [**BookingPopulatedSlotId**](BookingPopulatedSlotId.md) | | [optional] [default to undefined]
|
|
12
|
+
**playersCount** | **number** | | [optional] [default to undefined]
|
|
12
13
|
**paymentByPlayersStatus** | [**Array<BookingPopulatedPaymentByPlayersStatusInner>**](BookingPopulatedPaymentByPlayersStatusInner.md) | | [optional] [default to undefined]
|
|
13
14
|
|
|
14
15
|
## Example
|
|
@@ -21,6 +22,7 @@ const instance: BookingPopulated = {
|
|
|
21
22
|
status,
|
|
22
23
|
userId,
|
|
23
24
|
slotId,
|
|
25
|
+
playersCount,
|
|
24
26
|
paymentByPlayersStatus,
|
|
25
27
|
};
|
|
26
28
|
```
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# BookingsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**bookingsStaffDailyDateGet**](#bookingsstaffdailydateget) | **GET** /bookings/staff/daily/{date} | Récupérer les réservations journalières|
|
|
8
|
+
|[**bookingsStaffWeeklyWeekIdGet**](#bookingsstaffweeklyweekidget) | **GET** /bookings/staff/weekly/{weekId} | Récupérer les réservations hebdomadaires|
|
|
9
|
+
|
|
10
|
+
# **bookingsStaffDailyDateGet**
|
|
11
|
+
> BookingsStaffWeeklyWeekIdGet200Response bookingsStaffDailyDateGet()
|
|
12
|
+
|
|
13
|
+
Retourne une liste de réservations pour une date donnée, avec les joueurs et terrains (incluant le sport) peuplés.
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
BookingsApi,
|
|
20
|
+
Configuration
|
|
21
|
+
} from '@tennac-booking/sdk';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new BookingsApi(configuration);
|
|
25
|
+
|
|
26
|
+
let date: string; //Date au format YYYY-MM-DD (default to undefined)
|
|
27
|
+
|
|
28
|
+
const { status, data } = await apiInstance.bookingsStaffDailyDateGet(
|
|
29
|
+
date
|
|
30
|
+
);
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Parameters
|
|
34
|
+
|
|
35
|
+
|Name | Type | Description | Notes|
|
|
36
|
+
|------------- | ------------- | ------------- | -------------|
|
|
37
|
+
| **date** | [**string**] | Date au format YYYY-MM-DD | defaults to undefined|
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Return type
|
|
41
|
+
|
|
42
|
+
**BookingsStaffWeeklyWeekIdGet200Response**
|
|
43
|
+
|
|
44
|
+
### Authorization
|
|
45
|
+
|
|
46
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
47
|
+
|
|
48
|
+
### HTTP request headers
|
|
49
|
+
|
|
50
|
+
- **Content-Type**: Not defined
|
|
51
|
+
- **Accept**: application/json
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### HTTP response details
|
|
55
|
+
| Status code | Description | Response headers |
|
|
56
|
+
|-------------|-------------|------------------|
|
|
57
|
+
|**200** | Réservations journalières récupérées avec succès | - |
|
|
58
|
+
|**500** | Erreur serveur interne | - |
|
|
59
|
+
|
|
60
|
+
[[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)
|
|
61
|
+
|
|
62
|
+
# **bookingsStaffWeeklyWeekIdGet**
|
|
63
|
+
> BookingsStaffWeeklyWeekIdGet200Response bookingsStaffWeeklyWeekIdGet()
|
|
64
|
+
|
|
65
|
+
Retourne une liste de réservations pour une semaine donnée, avec les joueurs et terrains (incluant le sport) peuplés.
|
|
66
|
+
|
|
67
|
+
### Example
|
|
68
|
+
|
|
69
|
+
```typescript
|
|
70
|
+
import {
|
|
71
|
+
BookingsApi,
|
|
72
|
+
Configuration
|
|
73
|
+
} from '@tennac-booking/sdk';
|
|
74
|
+
|
|
75
|
+
const configuration = new Configuration();
|
|
76
|
+
const apiInstance = new BookingsApi(configuration);
|
|
77
|
+
|
|
78
|
+
let weekId: string; //ID de la semaine (default to undefined)
|
|
79
|
+
|
|
80
|
+
const { status, data } = await apiInstance.bookingsStaffWeeklyWeekIdGet(
|
|
81
|
+
weekId
|
|
82
|
+
);
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Parameters
|
|
86
|
+
|
|
87
|
+
|Name | Type | Description | Notes|
|
|
88
|
+
|------------- | ------------- | ------------- | -------------|
|
|
89
|
+
| **weekId** | [**string**] | ID de la semaine | defaults to undefined|
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
### Return type
|
|
93
|
+
|
|
94
|
+
**BookingsStaffWeeklyWeekIdGet200Response**
|
|
95
|
+
|
|
96
|
+
### Authorization
|
|
97
|
+
|
|
98
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
99
|
+
|
|
100
|
+
### HTTP request headers
|
|
101
|
+
|
|
102
|
+
- **Content-Type**: Not defined
|
|
103
|
+
- **Accept**: application/json
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
### HTTP response details
|
|
107
|
+
| Status code | Description | Response headers |
|
|
108
|
+
|-------------|-------------|------------------|
|
|
109
|
+
|**200** | Réservations hebdomadaires récupérées avec succès | - |
|
|
110
|
+
|**500** | Erreur serveur interne | - |
|
|
111
|
+
|
|
112
|
+
[[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
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# BookingsStaffWeeklyWeekIdGet200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**bookings** | [**Array<BookingPopulated>**](BookingPopulated.md) | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { BookingsStaffWeeklyWeekIdGet200Response } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: BookingsStaffWeeklyWeekIdGet200Response = {
|
|
16
|
+
bookings,
|
|
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)
|
package/docs/Club.md
CHANGED
|
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**id** | **string** | | [optional] [default to undefined]
|
|
9
9
|
**name** | **string** | | [default to undefined]
|
|
10
|
-
**
|
|
10
|
+
**location** | [**Location**](Location.md) | | [optional] [default to undefined]
|
|
11
11
|
**city** | **string** | | [default to undefined]
|
|
12
12
|
**zipCode** | **string** | | [default to undefined]
|
|
13
13
|
**country** | **string** | | [default to undefined]
|
|
@@ -28,7 +28,7 @@ import { Club } from '@tennac-booking/sdk';
|
|
|
28
28
|
const instance: Club = {
|
|
29
29
|
id,
|
|
30
30
|
name,
|
|
31
|
-
|
|
31
|
+
location,
|
|
32
32
|
city,
|
|
33
33
|
zipCode,
|
|
34
34
|
country,
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# CourtWithNameResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**status** | [**CourtStatus**](CourtStatus.md) | | [optional] [default to undefined]
|
|
11
|
+
**comments** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**pricePerSlot** | **number** | | [optional] [default to undefined]
|
|
13
|
+
**slotDefaultDuration** | **number** | | [optional] [default to undefined]
|
|
14
|
+
**startTimeInTheDayInMinutes** | **number** | | [optional] [default to undefined]
|
|
15
|
+
**endTimeInTheDayInMinutes** | **number** | | [optional] [default to undefined]
|
|
16
|
+
**sportId** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**sportName** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**clubId** | **string** | | [optional] [default to undefined]
|
|
19
|
+
**surface** | **string** | Type de surface | [optional] [default to undefined]
|
|
20
|
+
**isIndoor** | **boolean** | Indique si le terrain est en intérieur ou extérieur | [optional] [default to undefined]
|
|
21
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
22
|
+
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
23
|
+
|
|
24
|
+
## Example
|
|
25
|
+
|
|
26
|
+
```typescript
|
|
27
|
+
import { CourtWithNameResponse } from '@tennac-booking/sdk';
|
|
28
|
+
|
|
29
|
+
const instance: CourtWithNameResponse = {
|
|
30
|
+
id,
|
|
31
|
+
name,
|
|
32
|
+
status,
|
|
33
|
+
comments,
|
|
34
|
+
pricePerSlot,
|
|
35
|
+
slotDefaultDuration,
|
|
36
|
+
startTimeInTheDayInMinutes,
|
|
37
|
+
endTimeInTheDayInMinutes,
|
|
38
|
+
sportId,
|
|
39
|
+
sportName,
|
|
40
|
+
clubId,
|
|
41
|
+
surface,
|
|
42
|
+
isIndoor,
|
|
43
|
+
createdAt,
|
|
44
|
+
updatedAt,
|
|
45
|
+
};
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
[[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,20 +1,20 @@
|
|
|
1
|
-
#
|
|
1
|
+
# CourtsWithNameResponse
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**
|
|
8
|
+
**courts** | [**Array<CourtWithNameResponse>**](CourtWithNameResponse.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 { CourtsWithNameResponse } from '@tennac-booking/sdk';
|
|
15
15
|
|
|
16
|
-
const instance:
|
|
17
|
-
|
|
16
|
+
const instance: CourtsWithNameResponse = {
|
|
17
|
+
courts,
|
|
18
18
|
total,
|
|
19
19
|
};
|
|
20
20
|
```
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# GenderPercentage
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**malePercentage** | **number** | Pourcentage d\'utilisateurs masculins | [optional] [default to undefined]
|
|
9
|
+
**femalePercentage** | **number** | Pourcentage d\'utilisateurs féminins | [optional] [default to undefined]
|
|
10
|
+
**otherPercentage** | **number** | Pourcentage d\'utilisateurs non spécifiés | [optional] [default to undefined]
|
|
11
|
+
**totalPlayers** | **number** | Nombre total de joueurs | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { GenderPercentage } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: GenderPercentage = {
|
|
19
|
+
malePercentage,
|
|
20
|
+
femalePercentage,
|
|
21
|
+
otherPercentage,
|
|
22
|
+
totalPlayers,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[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/Location.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Location
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**type** | **string** | | [default to undefined]
|
|
9
|
+
**coordinates** | **Array<number>** | Longitude et latitude | [default to undefined]
|
|
10
|
+
**city** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**country** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**postalCode** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**state** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**address** | **string** | | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { Location } from '@tennac-booking/sdk';
|
|
20
|
+
|
|
21
|
+
const instance: Location = {
|
|
22
|
+
type,
|
|
23
|
+
coordinates,
|
|
24
|
+
city,
|
|
25
|
+
country,
|
|
26
|
+
postalCode,
|
|
27
|
+
state,
|
|
28
|
+
address,
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -117,7 +117,7 @@ const { status, data } = await apiInstance.deleteCourt(
|
|
|
117
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
118
|
|
|
119
119
|
# **getCourtsByClub**
|
|
120
|
-
>
|
|
120
|
+
> CourtsWithNameResponse getCourtsByClub()
|
|
121
121
|
|
|
122
122
|
|
|
123
123
|
### Example
|
|
@@ -140,7 +140,7 @@ This endpoint does not have any parameters.
|
|
|
140
140
|
|
|
141
141
|
### Return type
|
|
142
142
|
|
|
143
|
-
**
|
|
143
|
+
**CourtsWithNameResponse**
|
|
144
144
|
|
|
145
145
|
### Authorization
|
|
146
146
|
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# PaymentStatus
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**profilePicture** | **string** | URL de la photo de profil du joueur | [optional] [default to undefined]
|
|
9
|
+
**userId** | **string** | Identifiant de l\'utilisateur | [optional] [default to undefined]
|
|
10
|
+
**firstName** | **string** | Prénom de l\'utilisateur | [optional] [default to undefined]
|
|
11
|
+
**lastName** | **string** | Nom de l\'utilisateur | [optional] [default to undefined]
|
|
12
|
+
**amount** | **number** | Montant que l\'utilisateur doit payer | [optional] [default to undefined]
|
|
13
|
+
**invoiceStatus** | **string** | Statut de la facture | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { PaymentStatus } from '@tennac-booking/sdk';
|
|
19
|
+
|
|
20
|
+
const instance: PaymentStatus = {
|
|
21
|
+
profilePicture,
|
|
22
|
+
userId,
|
|
23
|
+
firstName,
|
|
24
|
+
lastName,
|
|
25
|
+
amount,
|
|
26
|
+
invoiceStatus,
|
|
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/Sport.md
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**_id** | **string** | | [optional] [default to undefined]
|
|
9
8
|
**key** | **string** | | [optional] [default to undefined]
|
|
10
9
|
**clubId** | **string** | | [optional] [default to undefined]
|
|
11
10
|
|
|
@@ -15,7 +14,6 @@ Name | Type | Description | Notes
|
|
|
15
14
|
import { Sport } from '@tennac-booking/sdk';
|
|
16
15
|
|
|
17
16
|
const instance: Sport = {
|
|
18
|
-
_id,
|
|
19
17
|
key,
|
|
20
18
|
clubId,
|
|
21
19
|
};
|
package/docs/SportResponse.md
CHANGED
|
@@ -10,6 +10,8 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**name** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**description** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**clubId** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**courtsCount** | **number** | | [optional] [default to undefined]
|
|
14
|
+
**bookingsCount** | **number** | | [optional] [default to undefined]
|
|
13
15
|
**createdAt** | **string** | | [optional] [default to undefined]
|
|
14
16
|
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
15
17
|
|
|
@@ -24,6 +26,8 @@ const instance: SportResponse = {
|
|
|
24
26
|
name,
|
|
25
27
|
description,
|
|
26
28
|
clubId,
|
|
29
|
+
courtsCount,
|
|
30
|
+
bookingsCount,
|
|
27
31
|
createdAt,
|
|
28
32
|
updatedAt,
|
|
29
33
|
};
|
|
@@ -5,11 +5,12 @@ All URIs are relative to *https://api.mon-domaine.com*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**getClubPlayers**](#getclubplayers) | **GET** /api/analytics/players | Récupère la liste des joueurs du club (données staff uniquement)|
|
|
8
|
+
|[**getGenderPercentage**](#getgenderpercentage) | **GET** /api/analytics/gender | Récupère le pourcentage de joueurs par genre pour le club courant|
|
|
8
9
|
|[**getLastSixMonthsTurnover**](#getlastsixmonthsturnover) | **GET** /api/analytics/lastSixMonthsTurnover | Get monthly turnover for the last six months (club courant)|
|
|
9
10
|
|[**getNumberOfClubUsers**](#getnumberofclubusers) | **GET** /api/analytics/user-count | Get number of users subscribed to the club|
|
|
10
11
|
|
|
11
12
|
# **getClubPlayers**
|
|
12
|
-
>
|
|
13
|
+
> Array<UserStaffResponse> getClubPlayers()
|
|
13
14
|
|
|
14
15
|
|
|
15
16
|
### Example
|
|
@@ -32,7 +33,7 @@ This endpoint does not have any parameters.
|
|
|
32
33
|
|
|
33
34
|
### Return type
|
|
34
35
|
|
|
35
|
-
**
|
|
36
|
+
**Array<UserStaffResponse>**
|
|
36
37
|
|
|
37
38
|
### Authorization
|
|
38
39
|
|
|
@@ -52,6 +53,52 @@ This endpoint does not have any parameters.
|
|
|
52
53
|
|
|
53
54
|
[[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
55
|
|
|
56
|
+
# **getGenderPercentage**
|
|
57
|
+
> GenderPercentage getGenderPercentage()
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
### Example
|
|
61
|
+
|
|
62
|
+
```typescript
|
|
63
|
+
import {
|
|
64
|
+
StaffClubAnalyticsApi,
|
|
65
|
+
Configuration
|
|
66
|
+
} from '@tennac-booking/sdk';
|
|
67
|
+
|
|
68
|
+
const configuration = new Configuration();
|
|
69
|
+
const apiInstance = new StaffClubAnalyticsApi(configuration);
|
|
70
|
+
|
|
71
|
+
const { status, data } = await apiInstance.getGenderPercentage();
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Parameters
|
|
75
|
+
This endpoint does not have any parameters.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
### Return type
|
|
79
|
+
|
|
80
|
+
**GenderPercentage**
|
|
81
|
+
|
|
82
|
+
### Authorization
|
|
83
|
+
|
|
84
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
85
|
+
|
|
86
|
+
### HTTP request headers
|
|
87
|
+
|
|
88
|
+
- **Content-Type**: Not defined
|
|
89
|
+
- **Accept**: application/json
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
### HTTP response details
|
|
93
|
+
| Status code | Description | Response headers |
|
|
94
|
+
|-------------|-------------|------------------|
|
|
95
|
+
|**200** | Pourcentage de joueurs par genre | - |
|
|
96
|
+
|**401** | Non autorisé | - |
|
|
97
|
+
|**403** | Accès interdit | - |
|
|
98
|
+
|**500** | Erreur serveur interne | - |
|
|
99
|
+
|
|
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)
|
|
101
|
+
|
|
55
102
|
# **getLastSixMonthsTurnover**
|
|
56
103
|
> Array<GetLastSixMonthsTurnover200ResponseInner> getLastSixMonthsTurnover()
|
|
57
104
|
|
package/docs/StaffClubsApi.md
CHANGED
|
@@ -100,7 +100,7 @@ This endpoint does not have any parameters.
|
|
|
100
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)
|
|
101
101
|
|
|
102
102
|
# **getSports**
|
|
103
|
-
>
|
|
103
|
+
> Array<SportResponse> getSports()
|
|
104
104
|
|
|
105
105
|
|
|
106
106
|
### Example
|
|
@@ -123,7 +123,7 @@ This endpoint does not have any parameters.
|
|
|
123
123
|
|
|
124
124
|
### Return type
|
|
125
125
|
|
|
126
|
-
**
|
|
126
|
+
**Array<SportResponse>**
|
|
127
127
|
|
|
128
128
|
### Authorization
|
|
129
129
|
|