@tennac-booking/sdk 1.0.170 → 1.0.171

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.
@@ -0,0 +1,175 @@
1
+ # EventsWaitListApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getUserPosition**](#getuserposition) | **GET** /api/events/waitlist/{eventId}/position | |
8
+ |[**joinWaitList**](#joinwaitlist) | **POST** /api/events/waitlist/{eventId}/join | |
9
+ |[**leaveWaitList**](#leavewaitlist) | **DELETE** /api/events/waitlist/{eventId}/leave | |
10
+
11
+ # **getUserPosition**
12
+ > GetUserPosition200Response getUserPosition()
13
+
14
+ Obtenir la position actuelle dans la file d\'attente
15
+
16
+ ### Example
17
+
18
+ ```typescript
19
+ import {
20
+ EventsWaitListApi,
21
+ Configuration
22
+ } from '@tennac-booking/sdk';
23
+
24
+ const configuration = new Configuration();
25
+ const apiInstance = new EventsWaitListApi(configuration);
26
+
27
+ let eventId: string; // (default to undefined)
28
+
29
+ const { status, data } = await apiInstance.getUserPosition(
30
+ eventId
31
+ );
32
+ ```
33
+
34
+ ### Parameters
35
+
36
+ |Name | Type | Description | Notes|
37
+ |------------- | ------------- | ------------- | -------------|
38
+ | **eventId** | [**string**] | | defaults to undefined|
39
+
40
+
41
+ ### Return type
42
+
43
+ **GetUserPosition200Response**
44
+
45
+ ### Authorization
46
+
47
+ [bearerAuth](../README.md#bearerAuth)
48
+
49
+ ### HTTP request headers
50
+
51
+ - **Content-Type**: Not defined
52
+ - **Accept**: application/json
53
+
54
+
55
+ ### HTTP response details
56
+ | Status code | Description | Response headers |
57
+ |-------------|-------------|------------------|
58
+ |**200** | Position récupérée avec succès | - |
59
+ |**404** | Non trouvé dans la file d\'attente | - |
60
+ |**500** | Erreur serveur | - |
61
+
62
+ [[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)
63
+
64
+ # **joinWaitList**
65
+ > JoinWaitList200Response joinWaitList(joinWaitListRequest)
66
+
67
+ Rejoindre la file d\'attente pour un événement
68
+
69
+ ### Example
70
+
71
+ ```typescript
72
+ import {
73
+ EventsWaitListApi,
74
+ Configuration,
75
+ JoinWaitListRequest
76
+ } from '@tennac-booking/sdk';
77
+
78
+ const configuration = new Configuration();
79
+ const apiInstance = new EventsWaitListApi(configuration);
80
+
81
+ let eventId: string; // (default to undefined)
82
+ let joinWaitListRequest: JoinWaitListRequest; //
83
+
84
+ const { status, data } = await apiInstance.joinWaitList(
85
+ eventId,
86
+ joinWaitListRequest
87
+ );
88
+ ```
89
+
90
+ ### Parameters
91
+
92
+ |Name | Type | Description | Notes|
93
+ |------------- | ------------- | ------------- | -------------|
94
+ | **joinWaitListRequest** | **JoinWaitListRequest**| | |
95
+ | **eventId** | [**string**] | | defaults to undefined|
96
+
97
+
98
+ ### Return type
99
+
100
+ **JoinWaitList200Response**
101
+
102
+ ### Authorization
103
+
104
+ [bearerAuth](../README.md#bearerAuth)
105
+
106
+ ### HTTP request headers
107
+
108
+ - **Content-Type**: application/json
109
+ - **Accept**: application/json
110
+
111
+
112
+ ### HTTP response details
113
+ | Status code | Description | Response headers |
114
+ |-------------|-------------|------------------|
115
+ |**200** | Ajouté à la file d\'attente avec succès | - |
116
+ |**400** | Requête invalide | - |
117
+ |**404** | Événement non trouvé | - |
118
+ |**500** | Erreur serveur | - |
119
+
120
+ [[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)
121
+
122
+ # **leaveWaitList**
123
+ > RequestPasswordReset200Response leaveWaitList()
124
+
125
+ Quitter la file d\'attente
126
+
127
+ ### Example
128
+
129
+ ```typescript
130
+ import {
131
+ EventsWaitListApi,
132
+ Configuration
133
+ } from '@tennac-booking/sdk';
134
+
135
+ const configuration = new Configuration();
136
+ const apiInstance = new EventsWaitListApi(configuration);
137
+
138
+ let eventId: string; // (default to undefined)
139
+
140
+ const { status, data } = await apiInstance.leaveWaitList(
141
+ eventId
142
+ );
143
+ ```
144
+
145
+ ### Parameters
146
+
147
+ |Name | Type | Description | Notes|
148
+ |------------- | ------------- | ------------- | -------------|
149
+ | **eventId** | [**string**] | | defaults to undefined|
150
+
151
+
152
+ ### Return type
153
+
154
+ **RequestPasswordReset200Response**
155
+
156
+ ### Authorization
157
+
158
+ [bearerAuth](../README.md#bearerAuth)
159
+
160
+ ### HTTP request headers
161
+
162
+ - **Content-Type**: Not defined
163
+ - **Accept**: application/json
164
+
165
+
166
+ ### HTTP response details
167
+ | Status code | Description | Response headers |
168
+ |-------------|-------------|------------------|
169
+ |**200** | Retiré de la file d\'attente avec succès | - |
170
+ |**400** | Requête invalide | - |
171
+ |**404** | Non trouvé dans la file d\'attente | - |
172
+ |**500** | Erreur serveur | - |
173
+
174
+ [[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)
175
+
@@ -0,0 +1,115 @@
1
+ # EventsWaitListStaffApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getWaitListForEvent**](#getwaitlistforevent) | **GET** /api/events/waitlist/{eventId} | |
8
+ |[**processWaitList**](#processwaitlist) | **POST** /api/events/waitlist/{eventId}/process | |
9
+
10
+ # **getWaitListForEvent**
11
+ > GetWaitListForEvent200Response getWaitListForEvent()
12
+
13
+ Obtenir la liste complète de la file d\'attente (staff only)
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ EventsWaitListStaffApi,
20
+ Configuration
21
+ } from '@tennac-booking/sdk';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new EventsWaitListStaffApi(configuration);
25
+
26
+ let eventId: string; // (default to undefined)
27
+
28
+ const { status, data } = await apiInstance.getWaitListForEvent(
29
+ eventId
30
+ );
31
+ ```
32
+
33
+ ### Parameters
34
+
35
+ |Name | Type | Description | Notes|
36
+ |------------- | ------------- | ------------- | -------------|
37
+ | **eventId** | [**string**] | | defaults to undefined|
38
+
39
+
40
+ ### Return type
41
+
42
+ **GetWaitListForEvent200Response**
43
+
44
+ ### Authorization
45
+
46
+ [bearerAuth](../README.md#bearerAuth)
47
+
48
+ ### HTTP request headers
49
+
50
+ - **Content-Type**: Not defined
51
+ - **Accept**: application/json
52
+
53
+
54
+ ### HTTP response details
55
+ | Status code | Description | Response headers |
56
+ |-------------|-------------|------------------|
57
+ |**200** | File d\'attente récupérée avec succès | - |
58
+ |**404** | Événement non trouvé | - |
59
+ |**500** | Erreur serveur | - |
60
+
61
+ [[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)
62
+
63
+ # **processWaitList**
64
+ > RequestPasswordReset200Response processWaitList()
65
+
66
+ Forcer le traitement de la waitlist (staff only) Utile pour tester ou forcer la promotion des utilisateurs en attente
67
+
68
+ ### Example
69
+
70
+ ```typescript
71
+ import {
72
+ EventsWaitListStaffApi,
73
+ Configuration
74
+ } from '@tennac-booking/sdk';
75
+
76
+ const configuration = new Configuration();
77
+ const apiInstance = new EventsWaitListStaffApi(configuration);
78
+
79
+ let eventId: string; // (default to undefined)
80
+
81
+ const { status, data } = await apiInstance.processWaitList(
82
+ eventId
83
+ );
84
+ ```
85
+
86
+ ### Parameters
87
+
88
+ |Name | Type | Description | Notes|
89
+ |------------- | ------------- | ------------- | -------------|
90
+ | **eventId** | [**string**] | | defaults to undefined|
91
+
92
+
93
+ ### Return type
94
+
95
+ **RequestPasswordReset200Response**
96
+
97
+ ### Authorization
98
+
99
+ [bearerAuth](../README.md#bearerAuth)
100
+
101
+ ### HTTP request headers
102
+
103
+ - **Content-Type**: Not defined
104
+ - **Accept**: application/json
105
+
106
+
107
+ ### HTTP response details
108
+ | Status code | Description | Response headers |
109
+ |-------------|-------------|------------------|
110
+ |**200** | File d\'attente traitée avec succès | - |
111
+ |**404** | Événement non trouvé | - |
112
+ |**500** | Erreur serveur | - |
113
+
114
+ [[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)
115
+
@@ -0,0 +1,22 @@
1
+ # GetUserPosition200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **message** | **string** | | [optional] [default to undefined]
9
+ **position** | **number** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { GetUserPosition200Response } from '@tennac-booking/sdk';
15
+
16
+ const instance: GetUserPosition200Response = {
17
+ message,
18
+ position,
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,22 @@
1
+ # GetWaitListForEvent200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **total** | **number** | | [default to undefined]
9
+ **waitList** | [**Array<WaitListResponse>**](WaitListResponse.md) | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { GetWaitListForEvent200Response } from '@tennac-booking/sdk';
15
+
16
+ const instance: GetWaitListForEvent200Response = {
17
+ total,
18
+ waitList,
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,26 @@
1
+ # JoinWaitList200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **requiresSetup** | **boolean** | | [optional] [default to undefined]
9
+ **paymentLink** | **string** | | [optional] [default to undefined]
10
+ **waitList** | [**WaitListResponse**](WaitListResponse.md) | | [default to undefined]
11
+ **message** | **string** | | [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { JoinWaitList200Response } from '@tennac-booking/sdk';
17
+
18
+ const instance: JoinWaitList200Response = {
19
+ requiresSetup,
20
+ paymentLink,
21
+ waitList,
22
+ message,
23
+ };
24
+ ```
25
+
26
+ [[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
+ # JoinWaitListRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
9
+ **useDefaultPaymentMethod** | **boolean** | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { JoinWaitListRequest } from '@tennac-booking/sdk';
15
+
16
+ const instance: JoinWaitListRequest = {
17
+ paymentMethod,
18
+ useDefaultPaymentMethod,
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,38 @@
1
+ # WaitListResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **eventId** | **string** | | [default to undefined]
10
+ **userId** | **string** | | [default to undefined]
11
+ **status** | **string** | | [default to undefined]
12
+ **position** | **number** | | [default to undefined]
13
+ **priceInCents** | **number** | | [default to undefined]
14
+ **paymentAuthorized** | **boolean** | | [default to undefined]
15
+ **joinedAt** | **string** | | [default to undefined]
16
+ **expiresAt** | **string** | | [optional] [default to undefined]
17
+ **paymentLink** | **string** | | [optional] [default to undefined]
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import { WaitListResponse } from '@tennac-booking/sdk';
23
+
24
+ const instance: WaitListResponse = {
25
+ id,
26
+ eventId,
27
+ userId,
28
+ status,
29
+ position,
30
+ priceInCents,
31
+ paymentAuthorized,
32
+ joinedAt,
33
+ expiresAt,
34
+ paymentLink,
35
+ };
36
+ ```
37
+
38
+ [[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
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.163
7
+ * The version of the OpenAPI document: 1.0.171
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.170",
3
+ "version": "1.0.171",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {