@tennac-booking/sdk 1.0.97 → 1.0.98

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 (101) hide show
  1. package/.openapi-generator/FILES +264 -267
  2. package/README.md +46 -45
  3. package/api.ts +2342 -2430
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +1475 -1614
  8. package/dist/api.js +1192 -1061
  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 +1475 -1614
  16. package/dist/esm/api.js +1157 -1035
  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/ActiveSubscriptionResponse.md +22 -0
  28. package/docs/AddClubMemberRequest.md +1 -7
  29. package/docs/{ClubDaySchedule.md → AddCreditsToCustomer200Response.md} +5 -7
  30. package/docs/AddCreditsToCustomerRequest.md +22 -0
  31. package/docs/BookingPopulated.md +3 -3
  32. package/docs/BookingPriceBody.md +4 -2
  33. package/docs/BookingPriceResponse.md +2 -0
  34. package/docs/BookingSummary.md +4 -0
  35. package/docs/ClientAccountOnboardingRequest.md +29 -0
  36. package/docs/ClientAccountOnboardingResponse.md +34 -0
  37. package/docs/ClientAccountResponse.md +44 -0
  38. package/docs/ClientAccountsApi.md +408 -0
  39. package/docs/ClientApi.md +109 -0
  40. package/docs/{ClubPlayerStatisticsResponseMostPlayedPartnersInner.md → ClientMeResponse.md} +11 -9
  41. package/docs/ClientOnboardingRequestBody.md +33 -0
  42. package/docs/ClientOnboardingResponse.md +27 -0
  43. package/docs/ClientRegisterRequestBody.md +26 -0
  44. package/docs/ClientRegisterResponse.md +22 -0
  45. package/docs/ClientSubscriptionResponse.md +34 -0
  46. package/docs/ClubAnalyticsStaffApi.md +0 -314
  47. package/docs/ClubSettingsManagerApi.md +60 -54
  48. package/docs/ClubSettingsResponse.md +39 -0
  49. package/docs/ClubsManagerApi.md +58 -52
  50. package/docs/ClubsStaffApi.md +0 -44
  51. package/docs/CourtResponse.md +1 -1
  52. package/docs/CreateBookingRequest.md +1 -1
  53. package/docs/CreateClubSettingsRequest.md +34 -0
  54. package/docs/CreateCourtRequest.md +1 -1
  55. package/docs/CreateEventRequest.md +1 -3
  56. package/docs/DeleteClubSettingsResponse.md +20 -0
  57. package/docs/EventResponse.md +1 -1
  58. package/docs/EventResponseCourtsInner.md +18 -0
  59. package/docs/GetSubscriptionsHistory200Response.md +22 -0
  60. package/docs/IUserAttributes.md +2 -0
  61. package/docs/ManagedClubsResponse.md +23 -0
  62. package/docs/PlayerShare.md +22 -0
  63. package/docs/PlayerWithPaymentMethod.md +2 -0
  64. package/docs/SlotInfo.md +2 -2
  65. package/docs/SportsStaffApi.md +55 -0
  66. package/docs/StaffUserProfileResponse.md +2 -0
  67. package/docs/UpdateClubSettingsRequest.md +32 -0
  68. package/docs/UpdateEventRequest.md +1 -1
  69. package/docs/UserClubMembership.md +34 -0
  70. package/docs/UserClubMembershipsResponse.md +20 -0
  71. package/docs/UserInfo.md +0 -2
  72. package/docs/UserProfileResponse.md +2 -0
  73. package/docs/UsersApi.md +46 -0
  74. package/index.ts +1 -1
  75. package/package.json +1 -1
  76. package/docs/ClubGeneralSettingsResponse.md +0 -32
  77. package/docs/ClubHoursSettingsResponse.md +0 -22
  78. package/docs/ClubLocationSettings.md +0 -26
  79. package/docs/ClubPlayerBookingItem.md +0 -36
  80. package/docs/ClubPlayerBookingsPagination.md +0 -28
  81. package/docs/ClubPlayerBookingsResponse.md +0 -24
  82. package/docs/ClubPlayerDetailResponse.md +0 -46
  83. package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +0 -22
  84. package/docs/ClubPlayerStatisticsResponse.md +0 -42
  85. package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +0 -22
  86. package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +0 -23
  87. package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +0 -25
  88. package/docs/ClubPlayerSubscriptionSummary.md +0 -28
  89. package/docs/ClubPresentationSettingsResponse.md +0 -26
  90. package/docs/ClubPricingPeriodResponse.md +0 -30
  91. package/docs/ClubReservationSettingsResponse.md +0 -28
  92. package/docs/ClubSettingsStaffApi.md +0 -183
  93. package/docs/ClubWeeklySchedule.md +0 -32
  94. package/docs/CourtBookingShareItem.md +0 -26
  95. package/docs/PartialClubWeeklySchedule.md +0 -33
  96. package/docs/RetentionRateResponse.md +0 -24
  97. package/docs/RevenueBySportItem.md +0 -24
  98. package/docs/UpdateClubGeneralSettingsRequest.md +0 -34
  99. package/docs/UpdateClubHoursSettingsRequest.md +0 -22
  100. package/docs/UpdateClubPresentationSettingsRequest.md +0 -26
  101. package/docs/UpdateClubReservationSettingsRequest.md +0 -28
@@ -5,6 +5,7 @@ All URIs are relative to *http://localhost*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**addClubMember**](#addclubmember) | **POST** /api/clubs/members | |
8
+ |[**addCreditsToCustomer**](#addcreditstocustomer) | **POST** /api/clubs/customers/{userId}/credits | |
8
9
  |[**archivePriceForSubscriptionPlan**](#archivepriceforsubscriptionplan) | **DELETE** /api/clubs/subscription-plans/{priceId}/archive-price | |
9
10
  |[**createActuality**](#createactuality) | **POST** /api/clubs/actualities | |
10
11
  |[**createCourtForClub**](#createcourtforclub) | **POST** /api/clubs/courts | |
@@ -20,7 +21,6 @@ All URIs are relative to *http://localhost*
20
21
  |[**updateActuality**](#updateactuality) | **PUT** /api/clubs/actualities/{actualityId} | |
21
22
  |[**updateClub**](#updateclub) | **PUT** /api/clubs | |
22
23
  |[**updateClubInfos**](#updateclubinfos) | **PUT** /api/clubs/infos | |
23
- |[**updateClubPresentationSettings**](#updateclubpresentationsettings) | **PUT** /api/clubs/settings/presentation | |
24
24
  |[**updateCourt**](#updatecourt) | **PUT** /api/clubs/courts/{courtId} | |
25
25
  |[**updateSubscriptionPlanForClub**](#updatesubscriptionplanforclub) | **PUT** /api/clubs/subscription-plans/{priceId} | |
26
26
 
@@ -79,6 +79,63 @@ const { status, data } = await apiInstance.addClubMember(
79
79
 
80
80
  [[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)
81
81
 
82
+ # **addCreditsToCustomer**
83
+ > AddCreditsToCustomer200Response addCreditsToCustomer(addCreditsToCustomerRequest)
84
+
85
+
86
+ ### Example
87
+
88
+ ```typescript
89
+ import {
90
+ ClubsManagerApi,
91
+ Configuration,
92
+ AddCreditsToCustomerRequest
93
+ } from '@tennac-booking/sdk';
94
+
95
+ const configuration = new Configuration();
96
+ const apiInstance = new ClubsManagerApi(configuration);
97
+
98
+ let userId: string; // (default to undefined)
99
+ let addCreditsToCustomerRequest: AddCreditsToCustomerRequest; //
100
+
101
+ const { status, data } = await apiInstance.addCreditsToCustomer(
102
+ userId,
103
+ addCreditsToCustomerRequest
104
+ );
105
+ ```
106
+
107
+ ### Parameters
108
+
109
+ |Name | Type | Description | Notes|
110
+ |------------- | ------------- | ------------- | -------------|
111
+ | **addCreditsToCustomerRequest** | **AddCreditsToCustomerRequest**| | |
112
+ | **userId** | [**string**] | | defaults to undefined|
113
+
114
+
115
+ ### Return type
116
+
117
+ **AddCreditsToCustomer200Response**
118
+
119
+ ### Authorization
120
+
121
+ [bearerAuth](../README.md#bearerAuth)
122
+
123
+ ### HTTP request headers
124
+
125
+ - **Content-Type**: application/json
126
+ - **Accept**: application/json
127
+
128
+
129
+ ### HTTP response details
130
+ | Status code | Description | Response headers |
131
+ |-------------|-------------|------------------|
132
+ |**200** | Crédits mis à jour | - |
133
+ |**400** | Bad Request | - |
134
+ |**404** | ClubCustomer non trouvé | - |
135
+ |**500** | Server Error | - |
136
+
137
+ [[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)
138
+
82
139
  # **archivePriceForSubscriptionPlan**
83
140
  > UpdateSubscriptionPlanForClub200Response archivePriceForSubscriptionPlan()
84
141
 
@@ -843,57 +900,6 @@ const { status, data } = await apiInstance.updateClubInfos(
843
900
 
844
901
  [[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)
845
902
 
846
- # **updateClubPresentationSettings**
847
- > ClubPresentationSettingsResponse updateClubPresentationSettings(updateClubPresentationSettingsRequest)
848
-
849
-
850
- ### Example
851
-
852
- ```typescript
853
- import {
854
- ClubsManagerApi,
855
- Configuration,
856
- UpdateClubPresentationSettingsRequest
857
- } from '@tennac-booking/sdk';
858
-
859
- const configuration = new Configuration();
860
- const apiInstance = new ClubsManagerApi(configuration);
861
-
862
- let updateClubPresentationSettingsRequest: UpdateClubPresentationSettingsRequest; //
863
-
864
- const { status, data } = await apiInstance.updateClubPresentationSettings(
865
- updateClubPresentationSettingsRequest
866
- );
867
- ```
868
-
869
- ### Parameters
870
-
871
- |Name | Type | Description | Notes|
872
- |------------- | ------------- | ------------- | -------------|
873
- | **updateClubPresentationSettingsRequest** | **UpdateClubPresentationSettingsRequest**| | |
874
-
875
-
876
- ### Return type
877
-
878
- **ClubPresentationSettingsResponse**
879
-
880
- ### Authorization
881
-
882
- [bearerAuth](../README.md#bearerAuth)
883
-
884
- ### HTTP request headers
885
-
886
- - **Content-Type**: application/json
887
- - **Accept**: application/json
888
-
889
-
890
- ### HTTP response details
891
- | Status code | Description | Response headers |
892
- |-------------|-------------|------------------|
893
- |**200** | Présentation mise à jour | - |
894
-
895
- [[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)
896
-
897
903
  # **updateCourt**
898
904
  > any updateCourt(body)
899
905
 
@@ -7,7 +7,6 @@ All URIs are relative to *http://localhost*
7
7
  |[**getActualities**](#getactualities) | **GET** /api/clubs/staff/actualities | |
8
8
  |[**getClubInfos**](#getclubinfos) | **GET** /api/clubs/infos | |
9
9
  |[**getClubMembers**](#getclubmembers) | **GET** /api/clubs/members | |
10
- |[**getClubPresentationSettings**](#getclubpresentationsettings) | **GET** /api/clubs/settings/presentation | |
11
10
  |[**getClubRoles**](#getclubroles) | **GET** /api/clubs/roles | |
12
11
  |[**getCourtsByClub**](#getcourtsbyclub) | **GET** /api/clubs/courts | |
13
12
  |[**getInvoices**](#getinvoices) | **GET** /api/clubs/invoices | |
@@ -144,49 +143,6 @@ This endpoint does not have any parameters.
144
143
 
145
144
  [[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)
146
145
 
147
- # **getClubPresentationSettings**
148
- > ClubPresentationSettingsResponse getClubPresentationSettings()
149
-
150
-
151
- ### Example
152
-
153
- ```typescript
154
- import {
155
- ClubsStaffApi,
156
- Configuration
157
- } from '@tennac-booking/sdk';
158
-
159
- const configuration = new Configuration();
160
- const apiInstance = new ClubsStaffApi(configuration);
161
-
162
- const { status, data } = await apiInstance.getClubPresentationSettings();
163
- ```
164
-
165
- ### Parameters
166
- This endpoint does not have any parameters.
167
-
168
-
169
- ### Return type
170
-
171
- **ClubPresentationSettingsResponse**
172
-
173
- ### Authorization
174
-
175
- [bearerAuth](../README.md#bearerAuth)
176
-
177
- ### HTTP request headers
178
-
179
- - **Content-Type**: Not defined
180
- - **Accept**: application/json
181
-
182
-
183
- ### HTTP response details
184
- | Status code | Description | Response headers |
185
- |-------------|-------------|------------------|
186
- |**200** | Présentation du club | - |
187
-
188
- [[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)
189
-
190
146
  # **getClubRoles**
191
147
  > GetClubRoles200Response getClubRoles()
192
148
 
@@ -16,7 +16,7 @@ Name | Type | Description | Notes
16
16
  **endTimeInTheDayInMinutes** | **number** | Heure de fin en minutes depuis minuit | [default to undefined]
17
17
  **sportId** | **string** | ID du sport associé au terrain | [default to undefined]
18
18
  **sportName** | **string** | Nom du sport associé au terrain | [optional] [default to undefined]
19
- **surface** | [**SurfaceType**](SurfaceType.md) | | [default to undefined]
19
+ **surface** | **string** | Type de surface du terrain | [default to undefined]
20
20
  **isIndoor** | **boolean** | Indique si le terrain est en intérieur | [default to undefined]
21
21
  **clubId** | **string** | ID du club auquel appartient le terrain | [default to undefined]
22
22
  **createdAt** | [**ClubResponseCreatedAt**](ClubResponseCreatedAt.md) | | [optional] [default to undefined]
@@ -6,7 +6,7 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **slotIds** | **Array<string>** | ID du créneau à réserver | [default to undefined]
9
- **players** | [**Array<PlayerWithPaymentMethod>**](PlayerWithPaymentMethod.md) | Liste des joueurs avec leurs méthodes de paiement | [default to undefined]
9
+ **players** | [**Array<PlayerWithPaymentMethod>**](PlayerWithPaymentMethod.md) | Liste de tous les joueurs avec leurs méthodes de paiement (INCLUT LE CRÉATEUR) | [default to undefined]
10
10
  **isCreatorPayingAll** | **boolean** | Indique si le créateur paie pour tous les joueurs | [optional] [default to undefined]
11
11
  **paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
12
12
  **useDefaultPaymentMethod** | **boolean** | Indique si l\'utilisateur veut utiliser sa méthode de paiement par défaut | [optional] [default to undefined]
@@ -0,0 +1,34 @@
1
+ # CreateClubSettingsRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **clubId** | **string** | ID du club | [default to undefined]
9
+ **maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [optional] [default to undefined]
10
+ **allowMultipleBookingsAtTheSameTime** | **boolean** | Autoriser plusieurs réservations en même temps | [optional] [default to undefined]
11
+ **sameTimeBookingsLimit** | **number** | Limite de réservations simultanées | [optional] [default to undefined]
12
+ **cancellationLimitHours** | **number** | Limite d\'annulation en heures | [optional] [default to undefined]
13
+ **availabilityPeriodInDays** | **number** | Période de disponibilité en jours | [optional] [default to undefined]
14
+ **sponsors** | **Array<string>** | Liste des sponsors | [optional] [default to undefined]
15
+ **timeBeforePayment** | **number** | Temps avant paiement en minutes | [optional] [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { CreateClubSettingsRequest } from '@tennac-booking/sdk';
21
+
22
+ const instance: CreateClubSettingsRequest = {
23
+ clubId,
24
+ maxWeeklyBookings,
25
+ allowMultipleBookingsAtTheSameTime,
26
+ sameTimeBookingsLimit,
27
+ cancellationLimitHours,
28
+ availabilityPeriodInDays,
29
+ sponsors,
30
+ timeBeforePayment,
31
+ };
32
+ ```
33
+
34
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  **startTimeInTheDayInMinutes** | **number** | Heure de début en minutes depuis minuit | [default to undefined]
11
11
  **endTimeInTheDayInMinutes** | **number** | Heure de fin en minutes depuis minuit | [default to undefined]
12
12
  **sportId** | **string** | ID du sport associé au terrain | [default to undefined]
13
- **surface** | [**SurfaceType**](SurfaceType.md) | | [default to undefined]
13
+ **surface** | **string** | Type de surface du terrain | [default to undefined]
14
14
  **isIndoor** | **boolean** | Indique si le terrain est en intérieur | [default to undefined]
15
15
  **comments** | **string** | Commentaires sur le terrain | [optional] [default to undefined]
16
16
 
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
11
11
  **photoUrl** | **string** | | [optional] [default to undefined]
12
12
  **startDate** | **string** | | [default to undefined]
13
13
  **endDate** | **string** | | [default to undefined]
14
- **courts** | **Array<string>** | | [default to undefined]
14
+ **courts** | [**Array<EventResponseCourtsInner>**](EventResponseCourtsInner.md) | | [default to undefined]
15
15
  **sports** | **Array<string>** | | [default to undefined]
16
16
  **recurringType** | **string** | | [default to undefined]
17
17
  **recurrenceEndDate** | **string** | | [optional] [default to undefined]
@@ -22,7 +22,6 @@ Name | Type | Description | Notes
22
22
  **teamLimit** | **number** | | [optional] [default to undefined]
23
23
  **price** | **number** | | [optional] [default to undefined]
24
24
  **subscriberPrices** | [**Array<SubscriberPrice>**](SubscriberPrice.md) | | [optional] [default to undefined]
25
- **levels** | **Array<number>** | | [optional] [default to undefined]
26
25
  **visibilityType** | **string** | | [default to undefined]
27
26
 
28
27
  ## Example
@@ -48,7 +47,6 @@ const instance: CreateEventRequest = {
48
47
  teamLimit,
49
48
  price,
50
49
  subscriberPrices,
51
- levels,
52
50
  visibilityType,
53
51
  };
54
52
  ```
@@ -0,0 +1,20 @@
1
+ # DeleteClubSettingsResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **message** | **string** | Message de confirmation | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { DeleteClubSettingsResponse } from '@tennac-booking/sdk';
14
+
15
+ const instance: DeleteClubSettingsResponse = {
16
+ message,
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)
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
13
13
  **photoUrl** | **string** | | [optional] [default to undefined]
14
14
  **startDate** | **string** | | [default to undefined]
15
15
  **endDate** | **string** | | [default to undefined]
16
- **courts** | **Array<string>** | | [default to undefined]
16
+ **courts** | [**Array<EventResponseCourtsInner>**](EventResponseCourtsInner.md) | | [default to undefined]
17
17
  **sports** | [**Array<SportWithLevels>**](SportWithLevels.md) | | [default to undefined]
18
18
  **recurringType** | **string** | | [default to undefined]
19
19
  **recurrenceEndDate** | **string** | | [optional] [default to undefined]
@@ -0,0 +1,18 @@
1
+ # EventResponseCourtsInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+
9
+ ## Example
10
+
11
+ ```typescript
12
+ import { EventResponseCourtsInner } from '@tennac-booking/sdk';
13
+
14
+ const instance: EventResponseCourtsInner = {
15
+ };
16
+ ```
17
+
18
+ [[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
+ # GetSubscriptionsHistory200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **subscriptions** | [**Array<ClientSubscriptionResponse>**](ClientSubscriptionResponse.md) | | [default to undefined]
9
+ **clientAccountId** | **string** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { GetSubscriptionsHistory200Response } from '@tennac-booking/sdk';
15
+
16
+ const instance: GetSubscriptionsHistory200Response = {
17
+ subscriptions,
18
+ clientAccountId,
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)
@@ -23,6 +23,7 @@ Name | Type | Description | Notes
23
23
  **emailVerificationExpires** | **string** | | [optional] [default to undefined]
24
24
  **organizations** | [**Array<IUserAttributesOrganizationsInner>**](IUserAttributesOrganizationsInner.md) | | [optional] [default to undefined]
25
25
  **isAdmin** | **boolean** | | [default to undefined]
26
+ **isClient** | **boolean** | | [optional] [default to undefined]
26
27
  **createdAt** | **string** | | [default to undefined]
27
28
  **updatedAt** | **string** | | [default to undefined]
28
29
  **isLevelCertified** | **boolean** | | [optional] [default to undefined]
@@ -57,6 +58,7 @@ const instance: IUserAttributes = {
57
58
  emailVerificationExpires,
58
59
  organizations,
59
60
  isAdmin,
61
+ isClient,
60
62
  createdAt,
61
63
  updatedAt,
62
64
  isLevelCertified,
@@ -0,0 +1,23 @@
1
+ # ManagedClubsResponse
2
+
3
+ Réponse listant les clubs gérés par l\'utilisateur
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **count** | **number** | Nombre de clubs gérés | [default to undefined]
10
+ **clubs** | **Array<any>** | Liste des clubs gérés | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { ManagedClubsResponse } from '@tennac-booking/sdk';
16
+
17
+ const instance: ManagedClubsResponse = {
18
+ count,
19
+ clubs,
20
+ };
21
+ ```
22
+
23
+ [[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
+ # PlayerShare
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **playerId** | **string** | | [default to undefined]
9
+ **paysAlsoFor** | **Array<string>** | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { PlayerShare } from '@tennac-booking/sdk';
15
+
16
+ const instance: PlayerShare = {
17
+ playerId,
18
+ paysAlsoFor,
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)
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **id** | **string** | ID du joueur | [default to undefined]
9
9
  **paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [default to undefined]
10
+ **paysAlsoFor** | **Array<string>** | IDs des joueurs pour lesquels ce joueur paie aussi | [optional] [default to undefined]
10
11
 
11
12
  ## Example
12
13
 
@@ -16,6 +17,7 @@ import { PlayerWithPaymentMethod } from '@tennac-booking/sdk';
16
17
  const instance: PlayerWithPaymentMethod = {
17
18
  id,
18
19
  paymentMethod,
20
+ paysAlsoFor,
19
21
  };
20
22
  ```
21
23
 
package/docs/SlotInfo.md CHANGED
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
8
8
  **id** | **string** | ID du slot | [default to undefined]
9
9
  **startDate** | **string** | Date de début | [default to undefined]
10
10
  **endDate** | **string** | Date de fin | [default to undefined]
11
- **court** | [**CourtInfo**](CourtInfo.md) | | [default to undefined]
11
+ **courtId** | [**CourtInfo**](CourtInfo.md) | | [default to undefined]
12
12
 
13
13
  ## Example
14
14
 
@@ -19,7 +19,7 @@ const instance: SlotInfo = {
19
19
  id,
20
20
  startDate,
21
21
  endDate,
22
- court,
22
+ courtId,
23
23
  };
24
24
  ```
25
25
 
@@ -0,0 +1,55 @@
1
+ # SportsStaffApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getAllSports**](#getallsports) | **GET** /api/sports | |
8
+
9
+ # **getAllSports**
10
+ > Array<SportResponse> getAllSports()
11
+
12
+ Récupère la liste des sports (vérifiés + créés par le club de l\'utilisateur)
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ SportsStaffApi,
19
+ Configuration
20
+ } from '@tennac-booking/sdk';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new SportsStaffApi(configuration);
24
+
25
+ const { status, data } = await apiInstance.getAllSports();
26
+ ```
27
+
28
+ ### Parameters
29
+ This endpoint does not have any parameters.
30
+
31
+
32
+ ### Return type
33
+
34
+ **Array<SportResponse>**
35
+
36
+ ### Authorization
37
+
38
+ [bearerAuth](../README.md#bearerAuth)
39
+
40
+ ### HTTP request headers
41
+
42
+ - **Content-Type**: Not defined
43
+ - **Accept**: staff
44
+
45
+
46
+ ### HTTP response details
47
+ | Status code | Description | Response headers |
48
+ |-------------|-------------|------------------|
49
+ |**200** | Liste des sports | - |
50
+ |**400** | Bad Request | - |
51
+ |**401** | Unauthorized | - |
52
+ |**500** | Server Error | - |
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)
55
+
@@ -23,6 +23,7 @@ Name | Type | Description | Notes
23
23
  **emailVerificationExpires** | **string** | | [optional] [default to undefined]
24
24
  **organizations** | [**Array&lt;IUserAttributesOrganizationsInner&gt;**](IUserAttributesOrganizationsInner.md) | | [optional] [default to undefined]
25
25
  **isAdmin** | **boolean** | | [default to undefined]
26
+ **isClient** | **boolean** | | [optional] [default to undefined]
26
27
  **createdAt** | **string** | | [default to undefined]
27
28
  **updatedAt** | **string** | | [default to undefined]
28
29
  **isLevelCertified** | **boolean** | | [optional] [default to undefined]
@@ -59,6 +60,7 @@ const instance: StaffUserProfileResponse = {
59
60
  emailVerificationExpires,
60
61
  organizations,
61
62
  isAdmin,
63
+ isClient,
62
64
  createdAt,
63
65
  updatedAt,
64
66
  isLevelCertified,
@@ -0,0 +1,32 @@
1
+ # UpdateClubSettingsRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [optional] [default to undefined]
9
+ **allowMultipleBookingsAtTheSameTime** | **boolean** | Autoriser plusieurs réservations en même temps | [optional] [default to undefined]
10
+ **sameTimeBookingsLimit** | **number** | Limite de réservations simultanées | [optional] [default to undefined]
11
+ **cancellationLimitHours** | **number** | Limite d\&#39;annulation en heures | [optional] [default to undefined]
12
+ **availabilityPeriodInDays** | **number** | Période de disponibilité en jours | [optional] [default to undefined]
13
+ **sponsors** | **Array&lt;string&gt;** | Liste des sponsors | [optional] [default to undefined]
14
+ **timeBeforePayment** | **number** | Temps avant paiement en minutes | [optional] [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { UpdateClubSettingsRequest } from '@tennac-booking/sdk';
20
+
21
+ const instance: UpdateClubSettingsRequest = {
22
+ maxWeeklyBookings,
23
+ allowMultipleBookingsAtTheSameTime,
24
+ sameTimeBookingsLimit,
25
+ cancellationLimitHours,
26
+ availabilityPeriodInDays,
27
+ sponsors,
28
+ timeBeforePayment,
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)
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
11
11
  **photoUrl** | **string** | | [optional] [default to undefined]
12
12
  **startDate** | **string** | | [optional] [default to undefined]
13
13
  **endDate** | **string** | | [optional] [default to undefined]
14
- **courts** | **Array&lt;string&gt;** | | [optional] [default to undefined]
14
+ **courts** | [**Array&lt;EventResponseCourtsInner&gt;**](EventResponseCourtsInner.md) | | [optional] [default to undefined]
15
15
  **sports** | **Array&lt;string&gt;** | | [optional] [default to undefined]
16
16
  **recurringType** | **string** | | [optional] [default to undefined]
17
17
  **recurrenceEndDate** | **string** | | [optional] [default to undefined]
@@ -0,0 +1,34 @@
1
+ # UserClubMembership
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **clubId** | **string** | | [default to undefined]
9
+ **clubName** | **string** | | [default to undefined]
10
+ **clubPicture** | **string** | | [default to undefined]
11
+ **bookingCount** | **number** | | [default to undefined]
12
+ **credits** | **number** | | [default to undefined]
13
+ **billingPortalUrl** | **string** | | [default to undefined]
14
+ **hasActiveSubscription** | **boolean** | | [default to undefined]
15
+ **subscriptions** | [**Array&lt;UserClubSubscription&gt;**](UserClubSubscription.md) | | [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { UserClubMembership } from '@tennac-booking/sdk';
21
+
22
+ const instance: UserClubMembership = {
23
+ clubId,
24
+ clubName,
25
+ clubPicture,
26
+ bookingCount,
27
+ credits,
28
+ billingPortalUrl,
29
+ hasActiveSubscription,
30
+ subscriptions,
31
+ };
32
+ ```
33
+
34
+ [[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
+ # UserClubMembershipsResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **clubs** | [**Array&lt;UserClubMembership&gt;**](UserClubMembership.md) | | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { UserClubMembershipsResponse } from '@tennac-booking/sdk';
14
+
15
+ const instance: UserClubMembershipsResponse = {
16
+ clubs,
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/UserInfo.md CHANGED
@@ -9,7 +9,6 @@ Name | Type | Description | Notes
9
9
  **firstName** | **string** | Prénom | [default to undefined]
10
10
  **lastName** | **string** | Nom | [default to undefined]
11
11
  **email** | **string** | | [default to undefined]
12
- **phoneNumber** | **string** | | [optional] [default to undefined]
13
12
  **profilePictureUrl** | **string** | | [optional] [default to undefined]
14
13
 
15
14
  ## Example
@@ -22,7 +21,6 @@ const instance: UserInfo = {
22
21
  firstName,
23
22
  lastName,
24
23
  email,
25
- phoneNumber,
26
24
  profilePictureUrl,
27
25
  };
28
26
  ```
@@ -23,6 +23,7 @@ Name | Type | Description | Notes
23
23
  **emailVerificationExpires** | **string** | | [optional] [default to undefined]
24
24
  **organizations** | [**Array&lt;IUserAttributesOrganizationsInner&gt;**](IUserAttributesOrganizationsInner.md) | | [optional] [default to undefined]
25
25
  **isAdmin** | **boolean** | | [default to undefined]
26
+ **isClient** | **boolean** | | [optional] [default to undefined]
26
27
  **createdAt** | **string** | | [default to undefined]
27
28
  **updatedAt** | **string** | | [default to undefined]
28
29
  **isLevelCertified** | **boolean** | | [optional] [default to undefined]
@@ -64,6 +65,7 @@ const instance: UserProfileResponse = {
64
65
  emailVerificationExpires,
65
66
  organizations,
66
67
  isAdmin,
68
+ isClient,
67
69
  createdAt,
68
70
  updatedAt,
69
71
  isLevelCertified,