@tennac-booking/sdk 1.0.25 → 1.0.26

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.
@@ -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.25
7
+ * The version of the OpenAPI document: 1.0.26
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Pandook API
3
3
  * API for managing pickle ball games and players
4
4
  *
5
- * The version of the OpenAPI document: 1.0.25
5
+ * The version of the OpenAPI document: 1.0.26
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/index.js 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.25
7
+ * The version of the OpenAPI document: 1.0.26
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Pandook API
3
3
  * API for managing pickle ball games and players
4
4
  *
5
- * The version of the OpenAPI document: 1.0.25
5
+ * The version of the OpenAPI document: 1.0.26
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Pandook API
6
6
  * API for managing pickle ball games and players
7
7
  *
8
- * The version of the OpenAPI document: 1.0.25
8
+ * The version of the OpenAPI document: 1.0.26
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,30 @@
1
+ # CreateEventRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **title** | **string** | | [default to undefined]
9
+ **description** | **string** | | [optional] [default to undefined]
10
+ **startDate** | **string** | | [default to undefined]
11
+ **endDate** | **string** | | [default to undefined]
12
+ **courts** | **Array<number>** | | [default to undefined]
13
+ **isActive** | **boolean** | | [optional] [default to false]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { CreateEventRequest } from '@tennac-booking/sdk';
19
+
20
+ const instance: CreateEventRequest = {
21
+ title,
22
+ description,
23
+ startDate,
24
+ endDate,
25
+ courts,
26
+ isActive,
27
+ };
28
+ ```
29
+
30
+ [[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
+ # DeleteEvent200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **message** | **string** | | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { DeleteEvent200Response } from '@tennac-booking/sdk';
14
+
15
+ const instance: DeleteEvent200Response = {
16
+ message,
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/Event.md ADDED
@@ -0,0 +1,40 @@
1
+ # Event
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **_id** | **string** | | [optional] [default to undefined]
9
+ **clubId** | **string** | | [optional] [default to undefined]
10
+ **title** | **string** | | [optional] [default to undefined]
11
+ **description** | **string** | | [optional] [default to undefined]
12
+ **startDate** | **string** | | [optional] [default to undefined]
13
+ **endDate** | **string** | | [optional] [default to undefined]
14
+ **courts** | **Array<string>** | | [optional] [default to undefined]
15
+ **isActive** | **boolean** | | [optional] [default to undefined]
16
+ **createdBy** | **string** | | [optional] [default to undefined]
17
+ **createdAt** | **string** | | [optional] [default to undefined]
18
+ **updatedAt** | **string** | | [optional] [default to undefined]
19
+
20
+ ## Example
21
+
22
+ ```typescript
23
+ import { Event } from '@tennac-booking/sdk';
24
+
25
+ const instance: Event = {
26
+ _id,
27
+ clubId,
28
+ title,
29
+ description,
30
+ startDate,
31
+ endDate,
32
+ courts,
33
+ isActive,
34
+ createdBy,
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,32 @@
1
+ # EventBooking
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **_id** | **string** | | [optional] [default to undefined]
9
+ **eventId** | **string** | | [optional] [default to undefined]
10
+ **teamName** | **string** | | [optional] [default to undefined]
11
+ **players** | **Array<string>** | | [optional] [default to undefined]
12
+ **status** | **string** | | [optional] [default to undefined]
13
+ **createdAt** | **string** | | [optional] [default to undefined]
14
+ **updatedAt** | **string** | | [optional] [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { EventBooking } from '@tennac-booking/sdk';
20
+
21
+ const instance: EventBooking = {
22
+ _id,
23
+ eventId,
24
+ teamName,
25
+ players,
26
+ status,
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,22 @@
1
+ # EventRegistrationRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **teamName** | **string** | | [default to undefined]
9
+ **players** | **Array<string>** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { EventRegistrationRequest } from '@tennac-booking/sdk';
15
+
16
+ const instance: EventRegistrationRequest = {
17
+ teamName,
18
+ players,
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,119 @@
1
+ # EventsApi
2
+
3
+ All URIs are relative to *https://api.mon-domaine.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getPublishedEventsByClubId**](#getpublishedeventsbyclubid) | **GET** /api/events | Get all published events for a club|
8
+ |[**registerForEvent**](#registerforevent) | **POST** /api/events/{eventId}/register | Register for an event|
9
+
10
+ # **getPublishedEventsByClubId**
11
+ > GetPublishedEventsByClubId200Response getPublishedEventsByClubId()
12
+
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ EventsApi,
19
+ Configuration
20
+ } from '@tennac-booking/sdk';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new EventsApi(configuration);
24
+
25
+ let clubId: string; // (default to undefined)
26
+
27
+ const { status, data } = await apiInstance.getPublishedEventsByClubId(
28
+ clubId
29
+ );
30
+ ```
31
+
32
+ ### Parameters
33
+
34
+ |Name | Type | Description | Notes|
35
+ |------------- | ------------- | ------------- | -------------|
36
+ | **clubId** | [**string**] | | defaults to undefined|
37
+
38
+
39
+ ### Return type
40
+
41
+ **GetPublishedEventsByClubId200Response**
42
+
43
+ ### Authorization
44
+
45
+ [bearerAuth](../README.md#bearerAuth)
46
+
47
+ ### HTTP request headers
48
+
49
+ - **Content-Type**: Not defined
50
+ - **Accept**: application/json
51
+
52
+
53
+ ### HTTP response details
54
+ | Status code | Description | Response headers |
55
+ |-------------|-------------|------------------|
56
+ |**200** | List of published events | - |
57
+ |**400** | Requête invalide | - |
58
+ |**500** | Erreur serveur interne | - |
59
+
60
+ [[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)
61
+
62
+ # **registerForEvent**
63
+ > RegisterForEvent201Response registerForEvent(eventRegistrationRequest)
64
+
65
+
66
+ ### Example
67
+
68
+ ```typescript
69
+ import {
70
+ EventsApi,
71
+ Configuration,
72
+ EventRegistrationRequest
73
+ } from '@tennac-booking/sdk';
74
+
75
+ const configuration = new Configuration();
76
+ const apiInstance = new EventsApi(configuration);
77
+
78
+ let eventId: string; // (default to undefined)
79
+ let eventRegistrationRequest: EventRegistrationRequest; //
80
+
81
+ const { status, data } = await apiInstance.registerForEvent(
82
+ eventId,
83
+ eventRegistrationRequest
84
+ );
85
+ ```
86
+
87
+ ### Parameters
88
+
89
+ |Name | Type | Description | Notes|
90
+ |------------- | ------------- | ------------- | -------------|
91
+ | **eventRegistrationRequest** | **EventRegistrationRequest**| | |
92
+ | **eventId** | [**string**] | | defaults to undefined|
93
+
94
+
95
+ ### Return type
96
+
97
+ **RegisterForEvent201Response**
98
+
99
+ ### Authorization
100
+
101
+ [bearerAuth](../README.md#bearerAuth)
102
+
103
+ ### HTTP request headers
104
+
105
+ - **Content-Type**: application/json
106
+ - **Accept**: application/json
107
+
108
+
109
+ ### HTTP response details
110
+ | Status code | Description | Response headers |
111
+ |-------------|-------------|------------------|
112
+ |**201** | Registration successful | - |
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
+
@@ -0,0 +1,20 @@
1
+ # GetPublishedEventsByClubId200Response
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 { GetPublishedEventsByClubId200Response } from '@tennac-booking/sdk';
14
+
15
+ const instance: GetPublishedEventsByClubId200Response = {
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,22 @@
1
+ # ManagerEventResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **event** | [**Event**](Event.md) | | [optional] [default to undefined]
9
+ **message** | **string** | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ManagerEventResponse } from '@tennac-booking/sdk';
15
+
16
+ const instance: ManagerEventResponse = {
17
+ event,
18
+ message,
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,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,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.25
7
+ * The version of the OpenAPI document: 1.0.26
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).