@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.
Files changed (44) hide show
  1. package/.openapi-generator/FILES +16 -0
  2. package/README.md +22 -2
  3. package/api.ts +1208 -7
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +816 -5
  8. package/dist/api.js +715 -4
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +816 -5
  16. package/dist/esm/api.js +696 -1
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/ClubsApi.md +61 -0
  28. package/docs/CreateEventRequest.md +30 -0
  29. package/docs/DeleteEvent200Response.md +20 -0
  30. package/docs/Event.md +40 -0
  31. package/docs/EventBooking.md +32 -0
  32. package/docs/EventRegistrationRequest.md +22 -0
  33. package/docs/EventsApi.md +119 -0
  34. package/docs/GetClubUsersById200Response.md +20 -0
  35. package/docs/GetPublishedEventsByClubId200Response.md +20 -0
  36. package/docs/ManagerEventResponse.md +22 -0
  37. package/docs/ManagerEventsApi.md +227 -0
  38. package/docs/PublicClubUser.md +34 -0
  39. package/docs/PublicClubUserLevelBySportsInner.md +22 -0
  40. package/docs/RegisterForEvent201Response.md +20 -0
  41. package/docs/StaffEventResponse.md +20 -0
  42. package/docs/StaffEventsApi.md +54 -0
  43. package/index.ts +1 -1
  44. package/package.json +5 -4
@@ -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.27
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.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.27
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.27
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.27
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.27
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.27
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.27
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.27
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.27
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.27
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,61 @@
1
+ # ClubsApi
2
+
3
+ All URIs are relative to *https://api.mon-domaine.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getClubUsersById**](#getclubusersbyid) | **GET** /api/clubs/{id}/clubUsers | Récupérer la liste publique des utilisateurs d\'un club|
8
+
9
+ # **getClubUsersById**
10
+ > GetClubUsersById200Response getClubUsersById()
11
+
12
+ Retourne les utilisateurs liés au club via ClubCustomer et dont le profil est public (isProfileVisible = true).
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ ClubsApi,
19
+ Configuration
20
+ } from '@tennac-booking/sdk';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new ClubsApi(configuration);
24
+
25
+ let id: string; //ID du club (default to undefined)
26
+
27
+ const { status, data } = await apiInstance.getClubUsersById(
28
+ id
29
+ );
30
+ ```
31
+
32
+ ### Parameters
33
+
34
+ |Name | Type | Description | Notes|
35
+ |------------- | ------------- | ------------- | -------------|
36
+ | **id** | [**string**] | ID du club | defaults to undefined|
37
+
38
+
39
+ ### Return type
40
+
41
+ **GetClubUsersById200Response**
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** | Liste des utilisateurs publics du club | - |
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
+
@@ -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
+ # GetClubUsersById200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **users** | [**Array<PublicClubUser>**](PublicClubUser.md) | | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { GetClubUsersById200Response } from '@tennac-booking/sdk';
14
+
15
+ const instance: GetClubUsersById200Response = {
16
+ users,
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
+ # 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)