@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
@@ -1,183 +0,0 @@
1
- # ClubSettingsStaffApi
2
-
3
- All URIs are relative to *http://localhost*
4
-
5
- |Method | HTTP request | Description|
6
- |------------- | ------------- | -------------|
7
- |[**getClubGeneralSettings**](#getclubgeneralsettings) | **GET** /api/club-settings/settings/general | |
8
- |[**getHoursSettings**](#gethourssettings) | **GET** /api/club-settings/hours | |
9
- |[**getPresentationSettings**](#getpresentationsettings) | **GET** /api/club-settings/presentation | |
10
- |[**getReservationSettings**](#getreservationsettings) | **GET** /api/club-settings/reservation | |
11
-
12
- # **getClubGeneralSettings**
13
- > ClubGeneralSettingsResponse getClubGeneralSettings()
14
-
15
-
16
- ### Example
17
-
18
- ```typescript
19
- import {
20
- ClubSettingsStaffApi,
21
- Configuration
22
- } from '@tennac-booking/sdk';
23
-
24
- const configuration = new Configuration();
25
- const apiInstance = new ClubSettingsStaffApi(configuration);
26
-
27
- const { status, data } = await apiInstance.getClubGeneralSettings();
28
- ```
29
-
30
- ### Parameters
31
- This endpoint does not have any parameters.
32
-
33
-
34
- ### Return type
35
-
36
- **ClubGeneralSettingsResponse**
37
-
38
- ### Authorization
39
-
40
- [bearerAuth](../README.md#bearerAuth)
41
-
42
- ### HTTP request headers
43
-
44
- - **Content-Type**: Not defined
45
- - **Accept**: application/json
46
-
47
-
48
- ### HTTP response details
49
- | Status code | Description | Response headers |
50
- |-------------|-------------|------------------|
51
- |**200** | Paramètres généraux du club | - |
52
-
53
- [[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
- # **getHoursSettings**
56
- > ClubHoursSettingsResponse getHoursSettings()
57
-
58
-
59
- ### Example
60
-
61
- ```typescript
62
- import {
63
- ClubSettingsStaffApi,
64
- Configuration
65
- } from '@tennac-booking/sdk';
66
-
67
- const configuration = new Configuration();
68
- const apiInstance = new ClubSettingsStaffApi(configuration);
69
-
70
- const { status, data } = await apiInstance.getHoursSettings();
71
- ```
72
-
73
- ### Parameters
74
- This endpoint does not have any parameters.
75
-
76
-
77
- ### Return type
78
-
79
- **ClubHoursSettingsResponse**
80
-
81
- ### Authorization
82
-
83
- [bearerAuth](../README.md#bearerAuth)
84
-
85
- ### HTTP request headers
86
-
87
- - **Content-Type**: Not defined
88
- - **Accept**: application/json
89
-
90
-
91
- ### HTTP response details
92
- | Status code | Description | Response headers |
93
- |-------------|-------------|------------------|
94
- |**200** | Horaires du club | - |
95
-
96
- [[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)
97
-
98
- # **getPresentationSettings**
99
- > ClubPresentationSettingsResponse getPresentationSettings()
100
-
101
-
102
- ### Example
103
-
104
- ```typescript
105
- import {
106
- ClubSettingsStaffApi,
107
- Configuration
108
- } from '@tennac-booking/sdk';
109
-
110
- const configuration = new Configuration();
111
- const apiInstance = new ClubSettingsStaffApi(configuration);
112
-
113
- const { status, data } = await apiInstance.getPresentationSettings();
114
- ```
115
-
116
- ### Parameters
117
- This endpoint does not have any parameters.
118
-
119
-
120
- ### Return type
121
-
122
- **ClubPresentationSettingsResponse**
123
-
124
- ### Authorization
125
-
126
- [bearerAuth](../README.md#bearerAuth)
127
-
128
- ### HTTP request headers
129
-
130
- - **Content-Type**: Not defined
131
- - **Accept**: application/json
132
-
133
-
134
- ### HTTP response details
135
- | Status code | Description | Response headers |
136
- |-------------|-------------|------------------|
137
- |**200** | Paramètres de présentation du club | - |
138
-
139
- [[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)
140
-
141
- # **getReservationSettings**
142
- > ClubReservationSettingsResponse getReservationSettings()
143
-
144
-
145
- ### Example
146
-
147
- ```typescript
148
- import {
149
- ClubSettingsStaffApi,
150
- Configuration
151
- } from '@tennac-booking/sdk';
152
-
153
- const configuration = new Configuration();
154
- const apiInstance = new ClubSettingsStaffApi(configuration);
155
-
156
- const { status, data } = await apiInstance.getReservationSettings();
157
- ```
158
-
159
- ### Parameters
160
- This endpoint does not have any parameters.
161
-
162
-
163
- ### Return type
164
-
165
- **ClubReservationSettingsResponse**
166
-
167
- ### Authorization
168
-
169
- [bearerAuth](../README.md#bearerAuth)
170
-
171
- ### HTTP request headers
172
-
173
- - **Content-Type**: Not defined
174
- - **Accept**: application/json
175
-
176
-
177
- ### HTTP response details
178
- | Status code | Description | Response headers |
179
- |-------------|-------------|------------------|
180
- |**200** | Paramètres de réservation du club | - |
181
-
182
- [[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)
183
-
@@ -1,32 +0,0 @@
1
- # ClubWeeklySchedule
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **sunday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [default to undefined]
9
- **saturday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [default to undefined]
10
- **friday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [default to undefined]
11
- **thursday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [default to undefined]
12
- **wednesday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [default to undefined]
13
- **tuesday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [default to undefined]
14
- **monday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [default to undefined]
15
-
16
- ## Example
17
-
18
- ```typescript
19
- import { ClubWeeklySchedule } from '@tennac-booking/sdk';
20
-
21
- const instance: ClubWeeklySchedule = {
22
- sunday,
23
- saturday,
24
- friday,
25
- thursday,
26
- wednesday,
27
- tuesday,
28
- monday,
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)
@@ -1,26 +0,0 @@
1
- # CourtBookingShareItem
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **courtId** | **string** | ID du terrain | [default to undefined]
9
- **courtName** | **string** | Nom du terrain | [default to undefined]
10
- **bookingPercentage** | **number** | Pourcentage des réservations associées à ce terrain | [default to undefined]
11
- **totalBookings** | **number** | Nombre total de réservations utilisant ce terrain | [default to undefined]
12
-
13
- ## Example
14
-
15
- ```typescript
16
- import { CourtBookingShareItem } from '@tennac-booking/sdk';
17
-
18
- const instance: CourtBookingShareItem = {
19
- courtId,
20
- courtName,
21
- bookingPercentage,
22
- totalBookings,
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)
@@ -1,33 +0,0 @@
1
- # PartialClubWeeklySchedule
2
-
3
- Make all properties in T optional
4
-
5
- ## Properties
6
-
7
- Name | Type | Description | Notes
8
- ------------ | ------------- | ------------- | -------------
9
- **monday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [optional] [default to undefined]
10
- **tuesday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [optional] [default to undefined]
11
- **wednesday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [optional] [default to undefined]
12
- **thursday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [optional] [default to undefined]
13
- **friday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [optional] [default to undefined]
14
- **saturday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [optional] [default to undefined]
15
- **sunday** | [**ClubDaySchedule**](ClubDaySchedule.md) | | [optional] [default to undefined]
16
-
17
- ## Example
18
-
19
- ```typescript
20
- import { PartialClubWeeklySchedule } from '@tennac-booking/sdk';
21
-
22
- const instance: PartialClubWeeklySchedule = {
23
- monday,
24
- tuesday,
25
- wednesday,
26
- thursday,
27
- friday,
28
- saturday,
29
- sunday,
30
- };
31
- ```
32
-
33
- [[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,24 +0,0 @@
1
- # RetentionRateResponse
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **retentionRate** | **number** | Pourcentage de joueurs fidèles (>= 2 réservations) | [default to undefined]
9
- **loyalPlayers** | **number** | Nombre de joueurs fidèles | [default to undefined]
10
- **totalPlayers** | **number** | Nombre total de joueurs ayant réservé | [default to undefined]
11
-
12
- ## Example
13
-
14
- ```typescript
15
- import { RetentionRateResponse } from '@tennac-booking/sdk';
16
-
17
- const instance: RetentionRateResponse = {
18
- retentionRate,
19
- loyalPlayers,
20
- totalPlayers,
21
- };
22
- ```
23
-
24
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,24 +0,0 @@
1
- # RevenueBySportItem
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **sportId** | **string** | ID du sport | [default to undefined]
9
- **sportName** | **string** | Nom du sport (si disponible) | [default to undefined]
10
- **totalTurnover** | **number** | Chiffre d\'affaires total pour ce sport | [default to undefined]
11
-
12
- ## Example
13
-
14
- ```typescript
15
- import { RevenueBySportItem } from '@tennac-booking/sdk';
16
-
17
- const instance: RevenueBySportItem = {
18
- sportId,
19
- sportName,
20
- totalTurnover,
21
- };
22
- ```
23
-
24
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,34 +0,0 @@
1
- # UpdateClubGeneralSettingsRequest
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **name** | **string** | | [optional] [default to undefined]
9
- **email** | **string** | | [optional] [default to undefined]
10
- **phone** | **string** | | [optional] [default to undefined]
11
- **websiteUrl** | **string** | | [optional] [default to undefined]
12
- **description** | **string** | | [optional] [default to undefined]
13
- **rib** | **string** | | [optional] [default to undefined]
14
- **logo** | **string** | | [optional] [default to undefined]
15
- **location** | [**ClubLocationSettings**](ClubLocationSettings.md) | | [optional] [default to undefined]
16
-
17
- ## Example
18
-
19
- ```typescript
20
- import { UpdateClubGeneralSettingsRequest } from '@tennac-booking/sdk';
21
-
22
- const instance: UpdateClubGeneralSettingsRequest = {
23
- name,
24
- email,
25
- phone,
26
- websiteUrl,
27
- description,
28
- rib,
29
- logo,
30
- location,
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)
@@ -1,22 +0,0 @@
1
- # UpdateClubHoursSettingsRequest
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **schedule** | [**PartialClubWeeklySchedule**](PartialClubWeeklySchedule.md) | | [optional] [default to undefined]
9
- **pricingPeriods** | [**Array<ClubPricingPeriodResponse>**](ClubPricingPeriodResponse.md) | | [optional] [default to undefined]
10
-
11
- ## Example
12
-
13
- ```typescript
14
- import { UpdateClubHoursSettingsRequest } from '@tennac-booking/sdk';
15
-
16
- const instance: UpdateClubHoursSettingsRequest = {
17
- schedule,
18
- pricingPeriods,
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,26 +0,0 @@
1
- # UpdateClubPresentationSettingsRequest
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **description** | **string** | | [optional] [default to undefined]
9
- **tags** | **Array<string>** | | [optional] [default to undefined]
10
- **bannerImages** | **Array<string | null>** | | [optional] [default to undefined]
11
- **galleryImages** | **Array<string | null>** | | [optional] [default to undefined]
12
-
13
- ## Example
14
-
15
- ```typescript
16
- import { UpdateClubPresentationSettingsRequest } from '@tennac-booking/sdk';
17
-
18
- const instance: UpdateClubPresentationSettingsRequest = {
19
- description,
20
- tags,
21
- bannerImages,
22
- galleryImages,
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)
@@ -1,28 +0,0 @@
1
- # UpdateClubReservationSettingsRequest
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **maxWeeklyBookings** | **number** | | [default to undefined]
9
- **unlimitedWeeklyBookings** | **boolean** | | [default to undefined]
10
- **sameTimeBookingsLimit** | **number** | | [default to undefined]
11
- **cancellationDelayInHours** | **number** | | [default to undefined]
12
- **bookingPeriodInDays** | **number** | | [default to undefined]
13
-
14
- ## Example
15
-
16
- ```typescript
17
- import { UpdateClubReservationSettingsRequest } from '@tennac-booking/sdk';
18
-
19
- const instance: UpdateClubReservationSettingsRequest = {
20
- maxWeeklyBookings,
21
- unlimitedWeeklyBookings,
22
- sameTimeBookingsLimit,
23
- cancellationDelayInHours,
24
- bookingPeriodInDays,
25
- };
26
- ```
27
-
28
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)