@tennac-booking/sdk 1.0.25 → 1.0.27
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 +16 -0
- package/README.md +22 -2
- package/api.ts +1208 -7
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +816 -5
- package/dist/api.js +715 -4
- 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 +816 -5
- package/dist/esm/api.js +696 -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/ClubsApi.md +61 -0
- package/docs/CreateEventRequest.md +30 -0
- package/docs/DeleteEvent200Response.md +20 -0
- package/docs/Event.md +40 -0
- package/docs/EventBooking.md +32 -0
- package/docs/EventRegistrationRequest.md +22 -0
- package/docs/EventsApi.md +119 -0
- package/docs/GetClubUsersById200Response.md +20 -0
- package/docs/GetPublishedEventsByClubId200Response.md +20 -0
- package/docs/ManagerEventResponse.md +22 -0
- package/docs/ManagerEventsApi.md +227 -0
- package/docs/PublicClubUser.md +34 -0
- package/docs/PublicClubUserLevelBySportsInner.md +22 -0
- package/docs/RegisterForEvent201Response.md +20 -0
- package/docs/StaffEventResponse.md +20 -0
- package/docs/StaffEventsApi.md +54 -0
- package/index.ts +1 -1
- package/package.json +5 -4
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
# ManagerEventsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createEvent**](#createevent) | **POST** /api/events/manager/createEvent | Create a new event|
|
|
8
|
+
|[**deleteEvent**](#deleteevent) | **DELETE** /api/events/manager/deleteEvent/{eventId} | Delete an event|
|
|
9
|
+
|[**publishEvent**](#publishevent) | **PUT** /api/events/manager/publishEvent/{eventId} | Publish an event|
|
|
10
|
+
|[**unpublishEvent**](#unpublishevent) | **PUT** /api/events/manager/unpublishEvent/{eventId} | Unpublish an event|
|
|
11
|
+
|
|
12
|
+
# **createEvent**
|
|
13
|
+
> ManagerEventResponse createEvent(createEventRequest)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import {
|
|
20
|
+
ManagerEventsApi,
|
|
21
|
+
Configuration,
|
|
22
|
+
CreateEventRequest
|
|
23
|
+
} from '@tennac-booking/sdk';
|
|
24
|
+
|
|
25
|
+
const configuration = new Configuration();
|
|
26
|
+
const apiInstance = new ManagerEventsApi(configuration);
|
|
27
|
+
|
|
28
|
+
let createEventRequest: CreateEventRequest; //
|
|
29
|
+
|
|
30
|
+
const { status, data } = await apiInstance.createEvent(
|
|
31
|
+
createEventRequest
|
|
32
|
+
);
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Parameters
|
|
36
|
+
|
|
37
|
+
|Name | Type | Description | Notes|
|
|
38
|
+
|------------- | ------------- | ------------- | -------------|
|
|
39
|
+
| **createEventRequest** | **CreateEventRequest**| | |
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Return type
|
|
43
|
+
|
|
44
|
+
**ManagerEventResponse**
|
|
45
|
+
|
|
46
|
+
### Authorization
|
|
47
|
+
|
|
48
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
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** | Event created successfully | - |
|
|
60
|
+
|**400** | Requête invalide | - |
|
|
61
|
+
|**401** | Non autorisé | - |
|
|
62
|
+
|**500** | Erreur serveur interne | - |
|
|
63
|
+
|
|
64
|
+
[[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)
|
|
65
|
+
|
|
66
|
+
# **deleteEvent**
|
|
67
|
+
> DeleteEvent200Response deleteEvent()
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
### Example
|
|
71
|
+
|
|
72
|
+
```typescript
|
|
73
|
+
import {
|
|
74
|
+
ManagerEventsApi,
|
|
75
|
+
Configuration
|
|
76
|
+
} from '@tennac-booking/sdk';
|
|
77
|
+
|
|
78
|
+
const configuration = new Configuration();
|
|
79
|
+
const apiInstance = new ManagerEventsApi(configuration);
|
|
80
|
+
|
|
81
|
+
let eventId: string; // (default to undefined)
|
|
82
|
+
|
|
83
|
+
const { status, data } = await apiInstance.deleteEvent(
|
|
84
|
+
eventId
|
|
85
|
+
);
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Parameters
|
|
89
|
+
|
|
90
|
+
|Name | Type | Description | Notes|
|
|
91
|
+
|------------- | ------------- | ------------- | -------------|
|
|
92
|
+
| **eventId** | [**string**] | | defaults to undefined|
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
### Return type
|
|
96
|
+
|
|
97
|
+
**DeleteEvent200Response**
|
|
98
|
+
|
|
99
|
+
### Authorization
|
|
100
|
+
|
|
101
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
102
|
+
|
|
103
|
+
### HTTP request headers
|
|
104
|
+
|
|
105
|
+
- **Content-Type**: Not defined
|
|
106
|
+
- **Accept**: application/json
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
### HTTP response details
|
|
110
|
+
| Status code | Description | Response headers |
|
|
111
|
+
|-------------|-------------|------------------|
|
|
112
|
+
|**200** | Event deleted successfully | - |
|
|
113
|
+
|**400** | Requête invalide | - |
|
|
114
|
+
|**401** | Non autorisé | - |
|
|
115
|
+
|**404** | Ressource non trouvée | - |
|
|
116
|
+
|**500** | Erreur serveur interne | - |
|
|
117
|
+
|
|
118
|
+
[[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)
|
|
119
|
+
|
|
120
|
+
# **publishEvent**
|
|
121
|
+
> ManagerEventResponse publishEvent()
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
### Example
|
|
125
|
+
|
|
126
|
+
```typescript
|
|
127
|
+
import {
|
|
128
|
+
ManagerEventsApi,
|
|
129
|
+
Configuration
|
|
130
|
+
} from '@tennac-booking/sdk';
|
|
131
|
+
|
|
132
|
+
const configuration = new Configuration();
|
|
133
|
+
const apiInstance = new ManagerEventsApi(configuration);
|
|
134
|
+
|
|
135
|
+
let eventId: string; // (default to undefined)
|
|
136
|
+
|
|
137
|
+
const { status, data } = await apiInstance.publishEvent(
|
|
138
|
+
eventId
|
|
139
|
+
);
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Parameters
|
|
143
|
+
|
|
144
|
+
|Name | Type | Description | Notes|
|
|
145
|
+
|------------- | ------------- | ------------- | -------------|
|
|
146
|
+
| **eventId** | [**string**] | | defaults to undefined|
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
### Return type
|
|
150
|
+
|
|
151
|
+
**ManagerEventResponse**
|
|
152
|
+
|
|
153
|
+
### Authorization
|
|
154
|
+
|
|
155
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
156
|
+
|
|
157
|
+
### HTTP request headers
|
|
158
|
+
|
|
159
|
+
- **Content-Type**: Not defined
|
|
160
|
+
- **Accept**: application/json
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
### HTTP response details
|
|
164
|
+
| Status code | Description | Response headers |
|
|
165
|
+
|-------------|-------------|------------------|
|
|
166
|
+
|**200** | Event published successfully | - |
|
|
167
|
+
|**400** | Requête invalide | - |
|
|
168
|
+
|**401** | Non autorisé | - |
|
|
169
|
+
|**404** | Ressource non trouvée | - |
|
|
170
|
+
|**500** | Erreur serveur interne | - |
|
|
171
|
+
|
|
172
|
+
[[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)
|
|
173
|
+
|
|
174
|
+
# **unpublishEvent**
|
|
175
|
+
> ManagerEventResponse unpublishEvent()
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
### Example
|
|
179
|
+
|
|
180
|
+
```typescript
|
|
181
|
+
import {
|
|
182
|
+
ManagerEventsApi,
|
|
183
|
+
Configuration
|
|
184
|
+
} from '@tennac-booking/sdk';
|
|
185
|
+
|
|
186
|
+
const configuration = new Configuration();
|
|
187
|
+
const apiInstance = new ManagerEventsApi(configuration);
|
|
188
|
+
|
|
189
|
+
let eventId: string; // (default to undefined)
|
|
190
|
+
|
|
191
|
+
const { status, data } = await apiInstance.unpublishEvent(
|
|
192
|
+
eventId
|
|
193
|
+
);
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### Parameters
|
|
197
|
+
|
|
198
|
+
|Name | Type | Description | Notes|
|
|
199
|
+
|------------- | ------------- | ------------- | -------------|
|
|
200
|
+
| **eventId** | [**string**] | | defaults to undefined|
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
### Return type
|
|
204
|
+
|
|
205
|
+
**ManagerEventResponse**
|
|
206
|
+
|
|
207
|
+
### Authorization
|
|
208
|
+
|
|
209
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
210
|
+
|
|
211
|
+
### HTTP request headers
|
|
212
|
+
|
|
213
|
+
- **Content-Type**: Not defined
|
|
214
|
+
- **Accept**: application/json
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
### HTTP response details
|
|
218
|
+
| Status code | Description | Response headers |
|
|
219
|
+
|-------------|-------------|------------------|
|
|
220
|
+
|**200** | Event unpublished successfully | - |
|
|
221
|
+
|**400** | Requête invalide | - |
|
|
222
|
+
|**401** | Non autorisé | - |
|
|
223
|
+
|**404** | Ressource non trouvée | - |
|
|
224
|
+
|**500** | Erreur serveur interne | - |
|
|
225
|
+
|
|
226
|
+
[[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)
|
|
227
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# PublicClubUser
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**_id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**firstName** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**lastName** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**levelBySports** | [**Array<PublicClubUserLevelBySportsInner>**](PublicClubUserLevelBySportsInner.md) | | [optional] [default to undefined]
|
|
13
|
+
**profilePicture** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**city** | **string** | | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { PublicClubUser } from '@tennac-booking/sdk';
|
|
21
|
+
|
|
22
|
+
const instance: PublicClubUser = {
|
|
23
|
+
_id,
|
|
24
|
+
firstName,
|
|
25
|
+
lastName,
|
|
26
|
+
email,
|
|
27
|
+
levelBySports,
|
|
28
|
+
profilePicture,
|
|
29
|
+
description,
|
|
30
|
+
city,
|
|
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)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# PublicClubUserLevelBySportsInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**sport** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**level** | **string** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { PublicClubUserLevelBySportsInner } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: PublicClubUserLevelBySportsInner = {
|
|
17
|
+
sport,
|
|
18
|
+
level,
|
|
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,20 @@
|
|
|
1
|
+
# RegisterForEvent201Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**booking** | [**EventBooking**](EventBooking.md) | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { RegisterForEvent201Response } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: RegisterForEvent201Response = {
|
|
16
|
+
booking,
|
|
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)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# StaffEventResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**events** | [**Array<Event>**](Event.md) | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { StaffEventResponse } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: StaffEventResponse = {
|
|
16
|
+
events,
|
|
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)
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# StaffEventsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getEventsByClub**](#geteventsbyclub) | **GET** /api/events/staff/getEvents | Get all events for current club (including unpublished)|
|
|
8
|
+
|
|
9
|
+
# **getEventsByClub**
|
|
10
|
+
> StaffEventResponse getEventsByClub()
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import {
|
|
17
|
+
StaffEventsApi,
|
|
18
|
+
Configuration
|
|
19
|
+
} from '@tennac-booking/sdk';
|
|
20
|
+
|
|
21
|
+
const configuration = new Configuration();
|
|
22
|
+
const apiInstance = new StaffEventsApi(configuration);
|
|
23
|
+
|
|
24
|
+
const { status, data } = await apiInstance.getEventsByClub();
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Parameters
|
|
28
|
+
This endpoint does not have any parameters.
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Return type
|
|
32
|
+
|
|
33
|
+
**StaffEventResponse**
|
|
34
|
+
|
|
35
|
+
### Authorization
|
|
36
|
+
|
|
37
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
38
|
+
|
|
39
|
+
### HTTP request headers
|
|
40
|
+
|
|
41
|
+
- **Content-Type**: Not defined
|
|
42
|
+
- **Accept**: application/json
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### HTTP response details
|
|
46
|
+
| Status code | Description | Response headers |
|
|
47
|
+
|-------------|-------------|------------------|
|
|
48
|
+
|**200** | List of all events | - |
|
|
49
|
+
|**400** | Requête invalide | - |
|
|
50
|
+
|**401** | Non autorisé | - |
|
|
51
|
+
|**500** | Erreur serveur interne | - |
|
|
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
|
+
|
package/index.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pandook API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.27
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tennac-booking/sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.27",
|
|
4
4
|
"description": "OpenAPI client for @tennac-booking/sdk",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
|
|
8
9
|
},
|
|
9
10
|
"keywords": [
|
|
10
11
|
"axios",
|
|
@@ -29,4 +30,4 @@
|
|
|
29
30
|
"@types/node": "12.11.5 - 12.20.42",
|
|
30
31
|
"typescript": "^4.0 || ^5.0"
|
|
31
32
|
}
|
|
32
|
-
}
|
|
33
|
+
}
|