@tennac-booking/sdk 1.0.172 → 1.0.174
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 +237 -7
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +190 -7
- package/dist/api.js +66 -1
- 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 +190 -7
- package/dist/esm/api.js +66 -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/CompleteRegisterRequestBody.md +4 -4
- package/docs/EventsStaffApi.md +54 -0
- package/docs/StaffEventBookingInvoiceResponse.md +32 -0
- package/docs/StaffEventBookingResponse.md +40 -0
- package/docs/StaffEventDetailResponse.md +22 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/docs/EventsStaffApi.md
CHANGED
|
@@ -6,6 +6,7 @@ All URIs are relative to *http://localhost*
|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**checkInEventParticipants**](#checkineventparticipants) | **POST** /api/events/{eventBookingId}/check-in | |
|
|
8
8
|
|[**getDailyEvents**](#getdailyevents) | **GET** /api/events/calendar/daily | |
|
|
9
|
+
|[**getEventByIdForStaff**](#geteventbyidforstaff) | **GET** /api/events/staff/{eventId} | |
|
|
9
10
|
|[**getEventsByClub**](#geteventsbyclub) | **GET** /api/events/staff/getEvents | |
|
|
10
11
|
|[**getMonthlyEvents**](#getmonthlyevents) | **GET** /api/events/calendar/monthly | |
|
|
11
12
|
|[**getWeeklyEvents**](#getweeklyevents) | **GET** /api/events/calendar/weekly | |
|
|
@@ -133,6 +134,59 @@ const { status, data } = await apiInstance.getDailyEvents(
|
|
|
133
134
|
|
|
134
135
|
[[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)
|
|
135
136
|
|
|
137
|
+
# **getEventByIdForStaff**
|
|
138
|
+
> StaffEventDetailResponse getEventByIdForStaff()
|
|
139
|
+
|
|
140
|
+
Get a specific event by ID (staff)
|
|
141
|
+
|
|
142
|
+
### Example
|
|
143
|
+
|
|
144
|
+
```typescript
|
|
145
|
+
import {
|
|
146
|
+
EventsStaffApi,
|
|
147
|
+
Configuration
|
|
148
|
+
} from '@tennac-booking/sdk';
|
|
149
|
+
|
|
150
|
+
const configuration = new Configuration();
|
|
151
|
+
const apiInstance = new EventsStaffApi(configuration);
|
|
152
|
+
|
|
153
|
+
let eventId: string; // (default to undefined)
|
|
154
|
+
|
|
155
|
+
const { status, data } = await apiInstance.getEventByIdForStaff(
|
|
156
|
+
eventId
|
|
157
|
+
);
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
### Parameters
|
|
161
|
+
|
|
162
|
+
|Name | Type | Description | Notes|
|
|
163
|
+
|------------- | ------------- | ------------- | -------------|
|
|
164
|
+
| **eventId** | [**string**] | | defaults to undefined|
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
### Return type
|
|
168
|
+
|
|
169
|
+
**StaffEventDetailResponse**
|
|
170
|
+
|
|
171
|
+
### Authorization
|
|
172
|
+
|
|
173
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
174
|
+
|
|
175
|
+
### HTTP request headers
|
|
176
|
+
|
|
177
|
+
- **Content-Type**: Not defined
|
|
178
|
+
- **Accept**: application/json
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
### HTTP response details
|
|
182
|
+
| Status code | Description | Response headers |
|
|
183
|
+
|-------------|-------------|------------------|
|
|
184
|
+
|**200** | Event details | - |
|
|
185
|
+
|**400** | Bad Request | - |
|
|
186
|
+
|**404** | Not Found | - |
|
|
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
|
+
|
|
136
190
|
# **getEventsByClub**
|
|
137
191
|
> StaffEventsPaginatedResponse getEventsByClub()
|
|
138
192
|
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# StaffEventBookingInvoiceResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
**userId** | **string** | | [default to undefined]
|
|
10
|
+
**status** | [**InvoiceStatus**](InvoiceStatus.md) | | [default to undefined]
|
|
11
|
+
**amount** | **number** | | [default to undefined]
|
|
12
|
+
**paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [default to undefined]
|
|
13
|
+
**createdAt** | **string** | | [default to undefined]
|
|
14
|
+
**updatedAt** | **string** | | [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { StaffEventBookingInvoiceResponse } from '@tennac-booking/sdk';
|
|
20
|
+
|
|
21
|
+
const instance: StaffEventBookingInvoiceResponse = {
|
|
22
|
+
id,
|
|
23
|
+
userId,
|
|
24
|
+
status,
|
|
25
|
+
amount,
|
|
26
|
+
paymentMethod,
|
|
27
|
+
createdAt,
|
|
28
|
+
updatedAt,
|
|
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)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# StaffEventBookingResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
**eventId** | **string** | | [default to undefined]
|
|
10
|
+
**status** | [**EventBookingStatus**](EventBookingStatus.md) | | [default to undefined]
|
|
11
|
+
**isOpen** | **boolean** | | [default to undefined]
|
|
12
|
+
**teamName** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**players** | [**Array<EventUser>**](EventUser.md) | | [default to undefined]
|
|
14
|
+
**invoices** | [**Array<StaffEventBookingInvoiceResponse>**](StaffEventBookingInvoiceResponse.md) | | [default to undefined]
|
|
15
|
+
**limitSetupDate** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**limitCancellationDate** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**createdAt** | **string** | | [default to undefined]
|
|
18
|
+
**updatedAt** | **string** | | [default to undefined]
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { StaffEventBookingResponse } from '@tennac-booking/sdk';
|
|
24
|
+
|
|
25
|
+
const instance: StaffEventBookingResponse = {
|
|
26
|
+
id,
|
|
27
|
+
eventId,
|
|
28
|
+
status,
|
|
29
|
+
isOpen,
|
|
30
|
+
teamName,
|
|
31
|
+
players,
|
|
32
|
+
invoices,
|
|
33
|
+
limitSetupDate,
|
|
34
|
+
limitCancellationDate,
|
|
35
|
+
createdAt,
|
|
36
|
+
updatedAt,
|
|
37
|
+
};
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[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
|
+
# StaffEventDetailResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**event** | [**EventResponse**](EventResponse.md) | | [default to undefined]
|
|
9
|
+
**bookings** | [**Array<StaffEventBookingResponse>**](StaffEventBookingResponse.md) | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { StaffEventDetailResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: StaffEventDetailResponse = {
|
|
17
|
+
event,
|
|
18
|
+
bookings,
|
|
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