@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.
Files changed (54) hide show
  1. package/.openapi-generator/FILES +12 -2
  2. package/README.md +21 -4
  3. package/api.ts +1575 -146
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +1054 -77
  8. package/dist/api.js +759 -4
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +1054 -77
  16. package/dist/esm/api.js +748 -1
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/ActiveClub.md +4 -0
  28. package/docs/BookingHistoryResponse.md +22 -0
  29. package/docs/BookingHistoryResponseHistoryInner.md +32 -0
  30. package/docs/BookingPopulated.md +2 -0
  31. package/docs/BookingsApi.md +113 -0
  32. package/docs/BookingsStaffWeeklyWeekIdGet200Response.md +20 -0
  33. package/docs/Club.md +2 -2
  34. package/docs/CourtWithNameResponse.md +48 -0
  35. package/docs/{SportsResponse.md → CourtsWithNameResponse.md} +5 -5
  36. package/docs/GenderPercentage.md +26 -0
  37. package/docs/Location.md +32 -0
  38. package/docs/ManagerClubCourtsApi.md +2 -2
  39. package/docs/PaymentStatus.md +30 -0
  40. package/docs/Sport.md +0 -2
  41. package/docs/SportResponse.md +4 -0
  42. package/docs/StaffClubAnalyticsApi.md +49 -2
  43. package/docs/StaffClubsApi.md +2 -2
  44. package/docs/UpdateUserRequestBody.md +8 -2
  45. package/docs/UpdateUserRequestBodyLevelBySportsInner.md +22 -0
  46. package/docs/UserBookingItem.md +46 -0
  47. package/docs/UserBookingsApi.md +46 -0
  48. package/docs/UserClubSportsApi.md +2 -2
  49. package/docs/UserProfileApi.md +53 -0
  50. package/docs/UserStaffResponse.md +6 -0
  51. package/docs/UsersApi.md +243 -0
  52. package/index.ts +1 -1
  53. package/package.json +1 -1
  54. package/docs/GetClubPlayers200Response.md +0 -22
@@ -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.33
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.33
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.33
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.33
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.33
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.33
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.33
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.33
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.33
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.33
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).
@@ -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)
@@ -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
- **address** | **string** | | [default to undefined]
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
- address,
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
- # SportsResponse
1
+ # CourtsWithNameResponse
2
2
 
3
3
 
4
4
  ## Properties
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **sports** | [**Array<SportResponse>**](SportResponse.md) | | [optional] [default to undefined]
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 { SportsResponse } from '@tennac-booking/sdk';
14
+ import { CourtsWithNameResponse } from '@tennac-booking/sdk';
15
15
 
16
- const instance: SportsResponse = {
17
- sports,
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)
@@ -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
- > CourtsResponse getCourtsByClub()
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
- **CourtsResponse**
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
  };
@@ -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
- > GetClubPlayers200Response getClubPlayers()
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
- **GetClubPlayers200Response**
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
 
@@ -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
- > SportsResponse getSports()
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
- **SportsResponse**
126
+ **Array<SportResponse>**
127
127
 
128
128
  ### Authorization
129
129