@tennac-booking/sdk 1.0.232 → 1.0.234
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 +2 -0
- package/README.md +5 -2
- package/api.ts +168 -6
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +113 -3
- package/dist/api.js +90 -7
- 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 +113 -3
- package/dist/esm/api.js +89 -6
- 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/EventsApi.md +59 -0
- package/docs/PublishEventResponse.md +2 -0
- package/docs/RespondToEventBookingInvitation200Response.md +24 -0
- package/docs/RespondToEventBookingInvitationRequest.md +20 -0
- package/docs/UsersApi.md +4 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
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/EventsApi.md
CHANGED
|
@@ -17,6 +17,7 @@ All URIs are relative to *http://localhost*
|
|
|
17
17
|
|[**joinOpenEventBooking**](#joinopeneventbooking) | **POST** /api/events/{eventBookingId}/open/join | |
|
|
18
18
|
|[**leaveEvent**](#leaveevent) | **DELETE** /api/events/{eventId}/leave | |
|
|
19
19
|
|[**leaveOpenEventBooking**](#leaveopeneventbooking) | **DELETE** /api/events/{eventBookingId}/open/leave | |
|
|
20
|
+
|[**respondToEventBookingInvitation**](#respondtoeventbookinginvitation) | **POST** /api/events/{eventBookingId}/respond-invitation | |
|
|
20
21
|
|
|
21
22
|
# **checkTeamNameAvailability**
|
|
22
23
|
> CheckTeamNameAvailability200Response checkTeamNameAvailability()
|
|
@@ -742,3 +743,61 @@ const { status, data } = await apiInstance.leaveOpenEventBooking(
|
|
|
742
743
|
|
|
743
744
|
[[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)
|
|
744
745
|
|
|
746
|
+
# **respondToEventBookingInvitation**
|
|
747
|
+
> RespondToEventBookingInvitation200Response respondToEventBookingInvitation(respondToEventBookingInvitationRequest)
|
|
748
|
+
|
|
749
|
+
Répondre à une invitation d\'EventBooking (accepter ou refuser)
|
|
750
|
+
|
|
751
|
+
### Example
|
|
752
|
+
|
|
753
|
+
```typescript
|
|
754
|
+
import {
|
|
755
|
+
EventsApi,
|
|
756
|
+
Configuration,
|
|
757
|
+
RespondToEventBookingInvitationRequest
|
|
758
|
+
} from '@tennac-booking/sdk';
|
|
759
|
+
|
|
760
|
+
const configuration = new Configuration();
|
|
761
|
+
const apiInstance = new EventsApi(configuration);
|
|
762
|
+
|
|
763
|
+
let eventBookingId: string; // (default to undefined)
|
|
764
|
+
let respondToEventBookingInvitationRequest: RespondToEventBookingInvitationRequest; //
|
|
765
|
+
|
|
766
|
+
const { status, data } = await apiInstance.respondToEventBookingInvitation(
|
|
767
|
+
eventBookingId,
|
|
768
|
+
respondToEventBookingInvitationRequest
|
|
769
|
+
);
|
|
770
|
+
```
|
|
771
|
+
|
|
772
|
+
### Parameters
|
|
773
|
+
|
|
774
|
+
|Name | Type | Description | Notes|
|
|
775
|
+
|------------- | ------------- | ------------- | -------------|
|
|
776
|
+
| **respondToEventBookingInvitationRequest** | **RespondToEventBookingInvitationRequest**| | |
|
|
777
|
+
| **eventBookingId** | [**string**] | | defaults to undefined|
|
|
778
|
+
|
|
779
|
+
|
|
780
|
+
### Return type
|
|
781
|
+
|
|
782
|
+
**RespondToEventBookingInvitation200Response**
|
|
783
|
+
|
|
784
|
+
### Authorization
|
|
785
|
+
|
|
786
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
787
|
+
|
|
788
|
+
### HTTP request headers
|
|
789
|
+
|
|
790
|
+
- **Content-Type**: application/json
|
|
791
|
+
- **Accept**: application/json
|
|
792
|
+
|
|
793
|
+
|
|
794
|
+
### HTTP response details
|
|
795
|
+
| Status code | Description | Response headers |
|
|
796
|
+
|-------------|-------------|------------------|
|
|
797
|
+
|**200** | Successfully responded to event booking invitation | - |
|
|
798
|
+
|**400** | Bad Request | - |
|
|
799
|
+
|**404** | Not Found | - |
|
|
800
|
+
|**500** | Server Error | - |
|
|
801
|
+
|
|
802
|
+
[[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)
|
|
803
|
+
|
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**refundedBookingIds** | **Array<string>** | | [optional] [default to undefined]
|
|
10
10
|
**userBooking** | [**EventBookingResponse**](EventBookingResponse.md) | | [optional] [default to undefined]
|
|
11
11
|
**needsToSetupPaymentMethod** | **boolean** | | [optional] [default to undefined]
|
|
12
|
+
**myPaymentLink** | **string** | | [optional] [default to undefined]
|
|
12
13
|
|
|
13
14
|
## Example
|
|
14
15
|
|
|
@@ -20,6 +21,7 @@ const instance: PublishEventResponse = {
|
|
|
20
21
|
refundedBookingIds,
|
|
21
22
|
userBooking,
|
|
22
23
|
needsToSetupPaymentMethod,
|
|
24
|
+
myPaymentLink,
|
|
23
25
|
};
|
|
24
26
|
```
|
|
25
27
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# RespondToEventBookingInvitation200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**allPlayersAccepted** | **boolean** | | [default to undefined]
|
|
9
|
+
**eventBookingStatus** | **string** | | [default to undefined]
|
|
10
|
+
**message** | **string** | | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { RespondToEventBookingInvitation200Response } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: RespondToEventBookingInvitation200Response = {
|
|
18
|
+
allPlayersAccepted,
|
|
19
|
+
eventBookingStatus,
|
|
20
|
+
message,
|
|
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)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# RespondToEventBookingInvitationRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**accept** | **boolean** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { RespondToEventBookingInvitationRequest } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: RespondToEventBookingInvitationRequest = {
|
|
16
|
+
accept,
|
|
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/UsersApi.md
CHANGED
|
@@ -943,10 +943,12 @@ const apiInstance = new UsersApi(configuration);
|
|
|
943
943
|
|
|
944
944
|
let limit: number; // (optional) (default to undefined)
|
|
945
945
|
let skip: number; // (optional) (default to undefined)
|
|
946
|
+
let timeFilter: 'upcoming' | 'past'; // (optional) (default to undefined)
|
|
946
947
|
|
|
947
948
|
const { status, data } = await apiInstance.getUserBookings(
|
|
948
949
|
limit,
|
|
949
|
-
skip
|
|
950
|
+
skip,
|
|
951
|
+
timeFilter
|
|
950
952
|
);
|
|
951
953
|
```
|
|
952
954
|
|
|
@@ -956,6 +958,7 @@ const { status, data } = await apiInstance.getUserBookings(
|
|
|
956
958
|
|------------- | ------------- | ------------- | -------------|
|
|
957
959
|
| **limit** | [**number**] | | (optional) defaults to undefined|
|
|
958
960
|
| **skip** | [**number**] | | (optional) defaults to undefined|
|
|
961
|
+
| **timeFilter** | [**'upcoming' | 'past'**]**Array<'upcoming' | 'past'>** | | (optional) defaults to undefined|
|
|
959
962
|
|
|
960
963
|
|
|
961
964
|
### Return type
|
package/index.ts
CHANGED