@tennac-booking/sdk 1.0.108 → 1.0.109

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 (49) hide show
  1. package/.openapi-generator/FILES +292 -284
  2. package/README.md +25 -7
  3. package/api.ts +1721 -339
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +961 -94
  8. package/dist/api.js +1104 -271
  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 +961 -94
  16. package/dist/esm/api.js +1096 -267
  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/ClientAccountOnboardingRequest.md +29 -0
  29. package/docs/{ClientFullOnboardingResponse.md → ClientAccountOnboardingResponse.md} +11 -7
  30. package/docs/ClientAccountResponse.md +44 -0
  31. package/docs/ClientAccountsApi.md +408 -0
  32. package/docs/ClientApi.md +4 -59
  33. package/docs/ClientMeResponse.md +28 -0
  34. package/docs/ClientOnboardingResponse.md +27 -0
  35. package/docs/{ClientRegisterRequest.md → ClientRegisterRequestBody.md} +7 -7
  36. package/docs/ClientRegisterResponse.md +22 -0
  37. package/docs/ClientSubscriptionResponse.md +34 -0
  38. package/docs/ClubPlayerDetailResponse.md +2 -0
  39. package/docs/ClubSummary.md +8 -2
  40. package/docs/ClubsStaffApi.md +55 -0
  41. package/docs/CreateEventRequest.md +3 -1
  42. package/docs/EventsStaffApi.md +198 -0
  43. package/docs/GetSubscriptionsHistory200Response.md +22 -0
  44. package/docs/PaymentMethod.md +0 -4
  45. package/docs/UpdateUserCreditsRequest.md +20 -0
  46. package/index.ts +1 -1
  47. package/package.json +1 -1
  48. package/docs/ClientFullOnboardingResponseClub.md +0 -24
  49. package/docs/ClientRegister201Response.md +0 -26
package/docs/ClientApi.md CHANGED
@@ -4,64 +4,9 @@ All URIs are relative to *http://localhost*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**clientRegister**](#clientregister) | **POST** /clients/register | |
8
7
  |[**getManagedClubs**](#getmanagedclubs) | **GET** /clients/managed-clubs | |
9
8
  |[**onboardClub**](#onboardclub) | **POST** /clients/onboarding | |
10
9
 
11
- # **clientRegister**
12
- > ClientRegister201Response clientRegister(clientRegisterRequest)
13
-
14
- Enregistre un nouvel utilisateur client - Crée l\'utilisateur avec un Stripe Customer
15
-
16
- ### Example
17
-
18
- ```typescript
19
- import {
20
- ClientApi,
21
- Configuration,
22
- ClientRegisterRequest
23
- } from '@tennac-booking/sdk';
24
-
25
- const configuration = new Configuration();
26
- const apiInstance = new ClientApi(configuration);
27
-
28
- let clientRegisterRequest: ClientRegisterRequest; //
29
-
30
- const { status, data } = await apiInstance.clientRegister(
31
- clientRegisterRequest
32
- );
33
- ```
34
-
35
- ### Parameters
36
-
37
- |Name | Type | Description | Notes|
38
- |------------- | ------------- | ------------- | -------------|
39
- | **clientRegisterRequest** | **ClientRegisterRequest**| | |
40
-
41
-
42
- ### Return type
43
-
44
- **ClientRegister201Response**
45
-
46
- ### Authorization
47
-
48
- No authorization required
49
-
50
- ### HTTP request headers
51
-
52
- - **Content-Type**: application/json
53
- - **Accept**: application/json
54
-
55
-
56
- ### HTTP response details
57
- | Status code | Description | Response headers |
58
- |-------------|-------------|------------------|
59
- |**201** | Client enregistré avec succès | - |
60
- |**400** | Données invalides | - |
61
- |**500** | Erreur serveur | - |
62
-
63
- [[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)
64
-
65
10
  # **getManagedClubs**
66
11
  > ManagedClubsResponse getManagedClubs()
67
12
 
@@ -109,9 +54,9 @@ This endpoint does not have any parameters.
109
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)
110
55
 
111
56
  # **onboardClub**
112
- > ClientFullOnboardingResponse onboardClub(clientOnboardingRequestBody)
57
+ > ClientOnboardingResponse onboardClub(clientOnboardingRequestBody)
113
58
 
114
- Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
59
+ Enregistre un nouveau club pour la plateforme - Crée un compte Stripe Connect Express - Crée le club dans la base de données - Assigne l\'utilisateur comme manager du club - Crée les paramètres par défaut du club - Envoie le lien d\'onboarding Stripe par email
115
60
 
116
61
  ### Example
117
62
 
@@ -141,11 +86,11 @@ const { status, data } = await apiInstance.onboardClub(
141
86
 
142
87
  ### Return type
143
88
 
144
- **ClientFullOnboardingResponse**
89
+ **ClientOnboardingResponse**
145
90
 
146
91
  ### Authorization
147
92
 
148
- [clientAuth](../README.md#clientAuth)
93
+ No authorization required
149
94
 
150
95
  ### HTTP request headers
151
96
 
@@ -0,0 +1,28 @@
1
+ # ClientMeResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **email** | **string** | | [default to undefined]
10
+ **firstName** | **string** | | [default to undefined]
11
+ **lastName** | **string** | | [default to undefined]
12
+ **isClient** | **boolean** | | [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { ClientMeResponse } from '@tennac-booking/sdk';
18
+
19
+ const instance: ClientMeResponse = {
20
+ id,
21
+ email,
22
+ firstName,
23
+ lastName,
24
+ isClient,
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)
@@ -0,0 +1,27 @@
1
+ # ClientOnboardingResponse
2
+
3
+ Réponse pour l\'onboarding d\'un club
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **clubId** | **string** | ID unique du club créé | [default to undefined]
10
+ **stripeAccountId** | **string** | ID du compte Stripe Connect du club | [default to undefined]
11
+ **onboardingLink** | **string** | Lien d\'onboarding Stripe pour configurer le compte | [default to undefined]
12
+ **message** | **string** | Message de confirmation | [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { ClientOnboardingResponse } from '@tennac-booking/sdk';
18
+
19
+ const instance: ClientOnboardingResponse = {
20
+ clubId,
21
+ stripeAccountId,
22
+ onboardingLink,
23
+ message,
24
+ };
25
+ ```
26
+
27
+ [[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,25 +1,25 @@
1
- # ClientRegisterRequest
1
+ # ClientRegisterRequestBody
2
2
 
3
3
 
4
4
  ## Properties
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **password** | **string** | | [default to undefined]
9
8
  **email** | **string** | | [default to undefined]
10
- **lastName** | **string** | | [default to undefined]
9
+ **password** | **string** | | [default to undefined]
11
10
  **firstName** | **string** | | [default to undefined]
11
+ **lastName** | **string** | | [default to undefined]
12
12
 
13
13
  ## Example
14
14
 
15
15
  ```typescript
16
- import { ClientRegisterRequest } from '@tennac-booking/sdk';
16
+ import { ClientRegisterRequestBody } from '@tennac-booking/sdk';
17
17
 
18
- const instance: ClientRegisterRequest = {
19
- password,
18
+ const instance: ClientRegisterRequestBody = {
20
19
  email,
21
- lastName,
20
+ password,
22
21
  firstName,
22
+ lastName,
23
23
  };
24
24
  ```
25
25
 
@@ -0,0 +1,22 @@
1
+ # ClientRegisterResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **token** | **string** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ClientRegisterResponse } from '@tennac-booking/sdk';
15
+
16
+ const instance: ClientRegisterResponse = {
17
+ id,
18
+ token,
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,34 @@
1
+ # ClientSubscriptionResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **subscriptionType** | **string** | | [default to undefined]
10
+ **status** | **string** | | [default to undefined]
11
+ **startDate** | **string** | | [default to undefined]
12
+ **endDate** | **string** | | [optional] [default to undefined]
13
+ **priceAmountInCents** | **number** | | [default to undefined]
14
+ **currency** | **string** | | [default to undefined]
15
+ **billingCycle** | **string** | | [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { ClientSubscriptionResponse } from '@tennac-booking/sdk';
21
+
22
+ const instance: ClientSubscriptionResponse = {
23
+ id,
24
+ subscriptionType,
25
+ status,
26
+ startDate,
27
+ endDate,
28
+ priceAmountInCents,
29
+ currency,
30
+ billingCycle,
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)
@@ -19,6 +19,7 @@ Name | Type | Description | Notes
19
19
  **city** | **string** | Ville | [default to undefined]
20
20
  **sportsLevels** | [**Array<ClubPlayerDetailResponseSportsLevelsInner>**](ClubPlayerDetailResponseSportsLevelsInner.md) | Niveaux par sport | [default to undefined]
21
21
  **birthDate** | **string** | Date de naissance | [default to undefined]
22
+ **credits** | **number** | | [default to undefined]
22
23
 
23
24
  ## Example
24
25
 
@@ -40,6 +41,7 @@ const instance: ClubPlayerDetailResponse = {
40
41
  city,
41
42
  sportsLevels,
42
43
  birthDate,
44
+ credits,
43
45
  };
44
46
  ```
45
47
 
@@ -7,9 +7,12 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **id** | **string** | | [default to undefined]
9
9
  **name** | **string** | | [default to undefined]
10
- **address** | **string** | | [optional] [default to undefined]
10
+ **picture** | **string** | | [optional] [default to undefined]
11
+ **bannerPictures** | **Array<string>** | | [optional] [default to undefined]
12
+ **galleryPictures** | **Array<string>** | | [optional] [default to undefined]
11
13
  **location** | [**UserLocationSummary**](UserLocationSummary.md) | | [default to undefined]
12
14
  **visitCount** | **number** | | [optional] [default to undefined]
15
+ **tags** | **Array<string>** | | [optional] [default to undefined]
13
16
 
14
17
  ## Example
15
18
 
@@ -19,9 +22,12 @@ import { ClubSummary } from '@tennac-booking/sdk';
19
22
  const instance: ClubSummary = {
20
23
  id,
21
24
  name,
22
- address,
25
+ picture,
26
+ bannerPictures,
27
+ galleryPictures,
23
28
  location,
24
29
  visitCount,
30
+ tags,
25
31
  };
26
32
  ```
27
33
 
@@ -12,6 +12,7 @@ All URIs are relative to *http://localhost*
12
12
  |[**getCourtsByClub**](#getcourtsbyclub) | **GET** /api/clubs/courts | |
13
13
  |[**getInvoices**](#getinvoices) | **GET** /api/clubs/invoices | |
14
14
  |[**getUserProfileStaff**](#getuserprofilestaff) | **GET** /api/clubs/staff/profile/{id} | |
15
+ |[**updateUserCreditsStaff**](#updateusercreditsstaff) | **PUT** /api/clubs/staff/user-credits/{id} | |
15
16
 
16
17
  # **getActualities**
17
18
  > GetActualities200Response getActualities()
@@ -371,3 +372,57 @@ const { status, data } = await apiInstance.getUserProfileStaff(
371
372
 
372
373
  [[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)
373
374
 
375
+ # **updateUserCreditsStaff**
376
+ > StaffUserProfileResponse updateUserCreditsStaff(updateUserCreditsRequest)
377
+
378
+
379
+ ### Example
380
+
381
+ ```typescript
382
+ import {
383
+ ClubsStaffApi,
384
+ Configuration,
385
+ UpdateUserCreditsRequest
386
+ } from '@tennac-booking/sdk';
387
+
388
+ const configuration = new Configuration();
389
+ const apiInstance = new ClubsStaffApi(configuration);
390
+
391
+ let id: string; // (default to undefined)
392
+ let updateUserCreditsRequest: UpdateUserCreditsRequest; //
393
+
394
+ const { status, data } = await apiInstance.updateUserCreditsStaff(
395
+ id,
396
+ updateUserCreditsRequest
397
+ );
398
+ ```
399
+
400
+ ### Parameters
401
+
402
+ |Name | Type | Description | Notes|
403
+ |------------- | ------------- | ------------- | -------------|
404
+ | **updateUserCreditsRequest** | **UpdateUserCreditsRequest**| | |
405
+ | **id** | [**string**] | | defaults to undefined|
406
+
407
+
408
+ ### Return type
409
+
410
+ **StaffUserProfileResponse**
411
+
412
+ ### Authorization
413
+
414
+ [bearerAuth](../README.md#bearerAuth)
415
+
416
+ ### HTTP request headers
417
+
418
+ - **Content-Type**: application/json
419
+ - **Accept**: application/json
420
+
421
+
422
+ ### HTTP response details
423
+ | Status code | Description | Response headers |
424
+ |-------------|-------------|------------------|
425
+ |**200** | Ok | - |
426
+
427
+ [[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)
428
+
@@ -13,8 +13,9 @@ Name | Type | Description | Notes
13
13
  **endDate** | **string** | | [default to undefined]
14
14
  **courts** | **Array<string>** | | [default to undefined]
15
15
  **sports** | **Array<string>** | | [default to undefined]
16
- **recurringType** | **string** | | [default to undefined]
16
+ **recurringType** | **string** | | [optional] [default to undefined]
17
17
  **recurrenceEndDate** | **string** | | [optional] [default to undefined]
18
+ **occurrences** | **number** | | [optional] [default to undefined]
18
19
  **participationType** | **string** | | [default to undefined]
19
20
  **participants** | **Array<string>** | | [optional] [default to undefined]
20
21
  **teams** | [**Array<Team>**](Team.md) | | [optional] [default to undefined]
@@ -41,6 +42,7 @@ const instance: CreateEventRequest = {
41
42
  sports,
42
43
  recurringType,
43
44
  recurrenceEndDate,
45
+ occurrences,
44
46
  participationType,
45
47
  participants,
46
48
  teams,
@@ -4,7 +4,75 @@ All URIs are relative to *http://localhost*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**getDailyEvents**](#getdailyevents) | **GET** /api/events/calendar/daily | |
7
8
  |[**getEventsByClub**](#geteventsbyclub) | **GET** /api/events/staff/getEvents | |
9
+ |[**getMonthlyEvents**](#getmonthlyevents) | **GET** /api/events/calendar/monthly | |
10
+ |[**getWeeklyEvents**](#getweeklyevents) | **GET** /api/events/calendar/weekly | |
11
+
12
+ # **getDailyEvents**
13
+ > EventsListResponse getDailyEvents()
14
+
15
+ Get events for the day view (entire week)
16
+
17
+ ### Example
18
+
19
+ ```typescript
20
+ import {
21
+ EventsStaffApi,
22
+ Configuration
23
+ } from '@tennac-booking/sdk';
24
+
25
+ const configuration = new Configuration();
26
+ const apiInstance = new EventsStaffApi(configuration);
27
+
28
+ let clubId: string; // (optional) (default to undefined)
29
+ let date: string; // (optional) (default to undefined)
30
+ let visibilityType: 'public' | 'private' | 'invitation'; // (optional) (default to undefined)
31
+ let type: 'event' | 'closure'; // (optional) (default to undefined)
32
+ let sportId: string; // (optional) (default to undefined)
33
+
34
+ const { status, data } = await apiInstance.getDailyEvents(
35
+ clubId,
36
+ date,
37
+ visibilityType,
38
+ type,
39
+ sportId
40
+ );
41
+ ```
42
+
43
+ ### Parameters
44
+
45
+ |Name | Type | Description | Notes|
46
+ |------------- | ------------- | ------------- | -------------|
47
+ | **clubId** | [**string**] | | (optional) defaults to undefined|
48
+ | **date** | [**string**] | | (optional) defaults to undefined|
49
+ | **visibilityType** | [**&#39;public&#39; | &#39;private&#39; | &#39;invitation&#39;**]**Array<&#39;public&#39; &#124; &#39;private&#39; &#124; &#39;invitation&#39;>** | | (optional) defaults to undefined|
50
+ | **type** | [**&#39;event&#39; | &#39;closure&#39;**]**Array<&#39;event&#39; &#124; &#39;closure&#39;>** | | (optional) defaults to undefined|
51
+ | **sportId** | [**string**] | | (optional) defaults to undefined|
52
+
53
+
54
+ ### Return type
55
+
56
+ **EventsListResponse**
57
+
58
+ ### Authorization
59
+
60
+ [bearerAuth](../README.md#bearerAuth)
61
+
62
+ ### HTTP request headers
63
+
64
+ - **Content-Type**: Not defined
65
+ - **Accept**: application/json
66
+
67
+
68
+ ### HTTP response details
69
+ | Status code | Description | Response headers |
70
+ |-------------|-------------|------------------|
71
+ |**200** | List of events for the daily view | - |
72
+ |**400** | Bad Request | - |
73
+ |**500** | Server Error | - |
74
+
75
+ [[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)
8
76
 
9
77
  # **getEventsByClub**
10
78
  > EventsListResponse getEventsByClub()
@@ -53,3 +121,133 @@ This endpoint does not have any parameters.
53
121
 
54
122
  [[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
123
 
124
+ # **getMonthlyEvents**
125
+ > EventsListResponse getMonthlyEvents()
126
+
127
+ Get events for the entire month view (including recurring occurrences)
128
+
129
+ ### Example
130
+
131
+ ```typescript
132
+ import {
133
+ EventsStaffApi,
134
+ Configuration
135
+ } from '@tennac-booking/sdk';
136
+
137
+ const configuration = new Configuration();
138
+ const apiInstance = new EventsStaffApi(configuration);
139
+
140
+ let clubId: string; // (optional) (default to undefined)
141
+ let date: string; // (optional) (default to undefined)
142
+ let visibilityType: 'public' | 'private' | 'invitation'; // (optional) (default to undefined)
143
+ let type: 'event' | 'closure'; // (optional) (default to undefined)
144
+ let sportId: string; // (optional) (default to undefined)
145
+
146
+ const { status, data } = await apiInstance.getMonthlyEvents(
147
+ clubId,
148
+ date,
149
+ visibilityType,
150
+ type,
151
+ sportId
152
+ );
153
+ ```
154
+
155
+ ### Parameters
156
+
157
+ |Name | Type | Description | Notes|
158
+ |------------- | ------------- | ------------- | -------------|
159
+ | **clubId** | [**string**] | | (optional) defaults to undefined|
160
+ | **date** | [**string**] | | (optional) defaults to undefined|
161
+ | **visibilityType** | [**&#39;public&#39; | &#39;private&#39; | &#39;invitation&#39;**]**Array<&#39;public&#39; &#124; &#39;private&#39; &#124; &#39;invitation&#39;>** | | (optional) defaults to undefined|
162
+ | **type** | [**&#39;event&#39; | &#39;closure&#39;**]**Array<&#39;event&#39; &#124; &#39;closure&#39;>** | | (optional) defaults to undefined|
163
+ | **sportId** | [**string**] | | (optional) defaults to undefined|
164
+
165
+
166
+ ### Return type
167
+
168
+ **EventsListResponse**
169
+
170
+ ### Authorization
171
+
172
+ [bearerAuth](../README.md#bearerAuth)
173
+
174
+ ### HTTP request headers
175
+
176
+ - **Content-Type**: Not defined
177
+ - **Accept**: application/json
178
+
179
+
180
+ ### HTTP response details
181
+ | Status code | Description | Response headers |
182
+ |-------------|-------------|------------------|
183
+ |**200** | List of events for the selected month | - |
184
+ |**400** | Bad Request | - |
185
+ |**500** | Server Error | - |
186
+
187
+ [[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)
188
+
189
+ # **getWeeklyEvents**
190
+ > EventsListResponse getWeeklyEvents()
191
+
192
+ Get events for the week view (30 day sliding window)
193
+
194
+ ### Example
195
+
196
+ ```typescript
197
+ import {
198
+ EventsStaffApi,
199
+ Configuration
200
+ } from '@tennac-booking/sdk';
201
+
202
+ const configuration = new Configuration();
203
+ const apiInstance = new EventsStaffApi(configuration);
204
+
205
+ let clubId: string; // (optional) (default to undefined)
206
+ let date: string; // (optional) (default to undefined)
207
+ let visibilityType: 'public' | 'private' | 'invitation'; // (optional) (default to undefined)
208
+ let type: 'event' | 'closure'; // (optional) (default to undefined)
209
+ let sportId: string; // (optional) (default to undefined)
210
+
211
+ const { status, data } = await apiInstance.getWeeklyEvents(
212
+ clubId,
213
+ date,
214
+ visibilityType,
215
+ type,
216
+ sportId
217
+ );
218
+ ```
219
+
220
+ ### Parameters
221
+
222
+ |Name | Type | Description | Notes|
223
+ |------------- | ------------- | ------------- | -------------|
224
+ | **clubId** | [**string**] | | (optional) defaults to undefined|
225
+ | **date** | [**string**] | | (optional) defaults to undefined|
226
+ | **visibilityType** | [**&#39;public&#39; | &#39;private&#39; | &#39;invitation&#39;**]**Array<&#39;public&#39; &#124; &#39;private&#39; &#124; &#39;invitation&#39;>** | | (optional) defaults to undefined|
227
+ | **type** | [**&#39;event&#39; | &#39;closure&#39;**]**Array<&#39;event&#39; &#124; &#39;closure&#39;>** | | (optional) defaults to undefined|
228
+ | **sportId** | [**string**] | | (optional) defaults to undefined|
229
+
230
+
231
+ ### Return type
232
+
233
+ **EventsListResponse**
234
+
235
+ ### Authorization
236
+
237
+ [bearerAuth](../README.md#bearerAuth)
238
+
239
+ ### HTTP request headers
240
+
241
+ - **Content-Type**: Not defined
242
+ - **Accept**: application/json
243
+
244
+
245
+ ### HTTP response details
246
+ | Status code | Description | Response headers |
247
+ |-------------|-------------|------------------|
248
+ |**200** | List of events for the weekly view | - |
249
+ |**400** | Bad Request | - |
250
+ |**500** | Server Error | - |
251
+
252
+ [[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)
253
+
@@ -0,0 +1,22 @@
1
+ # GetSubscriptionsHistory200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **subscriptions** | [**Array&lt;ClientSubscriptionResponse&gt;**](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)
@@ -7,10 +7,6 @@
7
7
 
8
8
  * `Onsite` (value: `'onsite'`)
9
9
 
10
- * `OnsiteCard` (value: `'onsite_card'`)
11
-
12
- * `OnsiteCash` (value: `'onsite_cash'`)
13
-
14
10
  * `Free` (value: `'free'`)
15
11
 
16
12
  [[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
+ # UpdateUserCreditsRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **deltaInCents** | **number** | Variation du crédit à appliquer, exprimée en centimes. Peut être négative pour retirer du crédit. | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { UpdateUserCreditsRequest } from '@tennac-booking/sdk';
14
+
15
+ const instance: UpdateUserCreditsRequest = {
16
+ deltaInCents,
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/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.108
7
+ * The version of the OpenAPI document: 1.0.104
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.108",
3
+ "version": "1.0.109",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
@@ -1,24 +0,0 @@
1
- # ClientFullOnboardingResponseClub
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **clubOnboardingLink** | **string** | | [optional] [default to undefined]
9
- **stripeAccountId** | **string** | | [default to undefined]
10
- **clubId** | **string** | | [default to undefined]
11
-
12
- ## Example
13
-
14
- ```typescript
15
- import { ClientFullOnboardingResponseClub } from '@tennac-booking/sdk';
16
-
17
- const instance: ClientFullOnboardingResponseClub = {
18
- clubOnboardingLink,
19
- stripeAccountId,
20
- clubId,
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)