@tennac-booking/sdk 1.0.103 → 1.0.105
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +3 -0
- package/README.md +6 -2
- package/api.ts +204 -5
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +156 -7
- package/dist/api.js +81 -5
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +156 -7
- package/dist/esm/api.js +77 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/BookingsStaffApi.md +4 -4
- package/docs/BookingsWithTimeBoundsResponse.md +22 -0
- package/docs/ClubResponse.md +6 -0
- package/docs/ClubsManagerApi.md +60 -0
- package/docs/PartialClubResponse.md +6 -0
- package/docs/TimeBounds.md +22 -0
- package/docs/UpdateClubMemberRequest.md +22 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/docs/BookingsStaffApi.md
CHANGED
|
@@ -220,7 +220,7 @@ const { status, data } = await apiInstance.getBookingPaymentStatus(
|
|
|
220
220
|
[[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)
|
|
221
221
|
|
|
222
222
|
# **getDailyBookings**
|
|
223
|
-
>
|
|
223
|
+
> BookingsWithTimeBoundsResponse getDailyBookings()
|
|
224
224
|
|
|
225
225
|
Obtenir les réservations journalières
|
|
226
226
|
|
|
@@ -251,7 +251,7 @@ const { status, data } = await apiInstance.getDailyBookings(
|
|
|
251
251
|
|
|
252
252
|
### Return type
|
|
253
253
|
|
|
254
|
-
**
|
|
254
|
+
**BookingsWithTimeBoundsResponse**
|
|
255
255
|
|
|
256
256
|
### Authorization
|
|
257
257
|
|
|
@@ -271,7 +271,7 @@ const { status, data } = await apiInstance.getDailyBookings(
|
|
|
271
271
|
[[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)
|
|
272
272
|
|
|
273
273
|
# **getWeeklyBookings**
|
|
274
|
-
>
|
|
274
|
+
> BookingsWithTimeBoundsResponse getWeeklyBookings()
|
|
275
275
|
|
|
276
276
|
Obtenir les réservations hebdomadaires
|
|
277
277
|
|
|
@@ -302,7 +302,7 @@ const { status, data } = await apiInstance.getWeeklyBookings(
|
|
|
302
302
|
|
|
303
303
|
### Return type
|
|
304
304
|
|
|
305
|
-
**
|
|
305
|
+
**BookingsWithTimeBoundsResponse**
|
|
306
306
|
|
|
307
307
|
### Authorization
|
|
308
308
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# BookingsWithTimeBoundsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**bookings** | [**Array<BookingPopulated>**](BookingPopulated.md) | | [default to undefined]
|
|
9
|
+
**timeBounds** | [**TimeBounds**](TimeBounds.md) | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { BookingsWithTimeBoundsResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: BookingsWithTimeBoundsResponse = {
|
|
17
|
+
bookings,
|
|
18
|
+
timeBounds,
|
|
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)
|
package/docs/ClubResponse.md
CHANGED
|
@@ -12,6 +12,9 @@ Name | Type | Description | Notes
|
|
|
12
12
|
**email** | **string** | Email du club | [optional] [default to undefined]
|
|
13
13
|
**phone** | **string** | Téléphone du club | [optional] [default to undefined]
|
|
14
14
|
**picture** | **string** | URL de l\'image du club | [optional] [default to undefined]
|
|
15
|
+
**bannerPictures** | **Array<string>** | | [optional] [default to undefined]
|
|
16
|
+
**galleryPictures** | **Array<string>** | | [optional] [default to undefined]
|
|
17
|
+
**tags** | **Array<string>** | | [optional] [default to undefined]
|
|
15
18
|
**location** | [**ClubResponseLocation**](ClubResponseLocation.md) | | [optional] [default to undefined]
|
|
16
19
|
**isActive** | **boolean** | Statut d\'activation du club | [default to undefined]
|
|
17
20
|
**paymentFeature** | **boolean** | Indique si le club utilise la fonctionnalité de paiement | [optional] [default to undefined]
|
|
@@ -40,6 +43,9 @@ const instance: ClubResponse = {
|
|
|
40
43
|
email,
|
|
41
44
|
phone,
|
|
42
45
|
picture,
|
|
46
|
+
bannerPictures,
|
|
47
|
+
galleryPictures,
|
|
48
|
+
tags,
|
|
43
49
|
location,
|
|
44
50
|
isActive,
|
|
45
51
|
paymentFeature,
|
package/docs/ClubsManagerApi.md
CHANGED
|
@@ -20,6 +20,7 @@ All URIs are relative to *http://localhost*
|
|
|
20
20
|
|[**updateActuality**](#updateactuality) | **PUT** /api/clubs/actualities/{actualityId} | |
|
|
21
21
|
|[**updateClub**](#updateclub) | **PUT** /api/clubs | |
|
|
22
22
|
|[**updateClubInfos**](#updateclubinfos) | **PUT** /api/clubs/infos | |
|
|
23
|
+
|[**updateClubMember**](#updateclubmember) | **PATCH** /api/clubs/members/{userId} | |
|
|
23
24
|
|[**updateClubPresentationSettings**](#updateclubpresentationsettings) | **PUT** /api/clubs/settings/presentation | |
|
|
24
25
|
|[**updateCourt**](#updatecourt) | **PUT** /api/clubs/courts/{courtId} | |
|
|
25
26
|
|[**updateSubscriptionPlanForClub**](#updatesubscriptionplanforclub) | **PUT** /api/clubs/subscription-plans/{priceId} | |
|
|
@@ -843,6 +844,65 @@ const { status, data } = await apiInstance.updateClubInfos(
|
|
|
843
844
|
|
|
844
845
|
[[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
846
|
|
|
847
|
+
# **updateClubMember**
|
|
848
|
+
> AddClubMember201Response updateClubMember(updateClubMemberRequest)
|
|
849
|
+
|
|
850
|
+
Met à jour un membre d\'un club
|
|
851
|
+
|
|
852
|
+
### Example
|
|
853
|
+
|
|
854
|
+
```typescript
|
|
855
|
+
import {
|
|
856
|
+
ClubsManagerApi,
|
|
857
|
+
Configuration,
|
|
858
|
+
UpdateClubMemberRequest
|
|
859
|
+
} from '@tennac-booking/sdk';
|
|
860
|
+
|
|
861
|
+
const configuration = new Configuration();
|
|
862
|
+
const apiInstance = new ClubsManagerApi(configuration);
|
|
863
|
+
|
|
864
|
+
let userId: string; // (default to undefined)
|
|
865
|
+
let updateClubMemberRequest: UpdateClubMemberRequest; //
|
|
866
|
+
|
|
867
|
+
const { status, data } = await apiInstance.updateClubMember(
|
|
868
|
+
userId,
|
|
869
|
+
updateClubMemberRequest
|
|
870
|
+
);
|
|
871
|
+
```
|
|
872
|
+
|
|
873
|
+
### Parameters
|
|
874
|
+
|
|
875
|
+
|Name | Type | Description | Notes|
|
|
876
|
+
|------------- | ------------- | ------------- | -------------|
|
|
877
|
+
| **updateClubMemberRequest** | **UpdateClubMemberRequest**| | |
|
|
878
|
+
| **userId** | [**string**] | | defaults to undefined|
|
|
879
|
+
|
|
880
|
+
|
|
881
|
+
### Return type
|
|
882
|
+
|
|
883
|
+
**AddClubMember201Response**
|
|
884
|
+
|
|
885
|
+
### Authorization
|
|
886
|
+
|
|
887
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
888
|
+
|
|
889
|
+
### HTTP request headers
|
|
890
|
+
|
|
891
|
+
- **Content-Type**: application/json
|
|
892
|
+
- **Accept**: application/json
|
|
893
|
+
|
|
894
|
+
|
|
895
|
+
### HTTP response details
|
|
896
|
+
| Status code | Description | Response headers |
|
|
897
|
+
|-------------|-------------|------------------|
|
|
898
|
+
|**200** | Membre mis à jour | - |
|
|
899
|
+
|**400** | Bad Request | - |
|
|
900
|
+
|**403** | Forbidden | - |
|
|
901
|
+
|**404** | Membre introuvable | - |
|
|
902
|
+
|**500** | Server Error | - |
|
|
903
|
+
|
|
904
|
+
[[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)
|
|
905
|
+
|
|
846
906
|
# **updateClubPresentationSettings**
|
|
847
907
|
> ClubPresentationSettingsResponse updateClubPresentationSettings(updateClubPresentationSettingsRequest)
|
|
848
908
|
|
|
@@ -13,6 +13,9 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**email** | **string** | Email du club | [optional] [default to undefined]
|
|
14
14
|
**phone** | **string** | Téléphone du club | [optional] [default to undefined]
|
|
15
15
|
**picture** | **string** | URL de l\'image du club | [optional] [default to undefined]
|
|
16
|
+
**bannerPictures** | **Array<string>** | | [optional] [default to undefined]
|
|
17
|
+
**galleryPictures** | **Array<string>** | | [optional] [default to undefined]
|
|
18
|
+
**tags** | **Array<string>** | | [optional] [default to undefined]
|
|
16
19
|
**location** | [**ClubResponseLocation**](ClubResponseLocation.md) | | [optional] [default to undefined]
|
|
17
20
|
**isActive** | **boolean** | Statut d\'activation du club | [optional] [default to undefined]
|
|
18
21
|
**paymentFeature** | **boolean** | Indique si le club utilise la fonctionnalité de paiement | [optional] [default to undefined]
|
|
@@ -41,6 +44,9 @@ const instance: PartialClubResponse = {
|
|
|
41
44
|
email,
|
|
42
45
|
phone,
|
|
43
46
|
picture,
|
|
47
|
+
bannerPictures,
|
|
48
|
+
galleryPictures,
|
|
49
|
+
tags,
|
|
44
50
|
location,
|
|
45
51
|
isActive,
|
|
46
52
|
paymentFeature,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# TimeBounds
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**start** | **string** | Heure de début au format HH:mm | [default to undefined]
|
|
9
|
+
**end** | **string** | Heure de fin au format HH:mm | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { TimeBounds } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: TimeBounds = {
|
|
17
|
+
start,
|
|
18
|
+
end,
|
|
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,22 @@
|
|
|
1
|
+
# UpdateClubMemberRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**role** | **string** | Rôle du membre dans le club | [optional] [default to undefined]
|
|
9
|
+
**rights** | **Array<string>** | Droits du membre dans le club | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { UpdateClubMemberRequest } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: UpdateClubMemberRequest = {
|
|
17
|
+
role,
|
|
18
|
+
rights,
|
|
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)
|
package/index.ts
CHANGED