@digital8/lighting-illusions-ts-sdk 0.0.1775 → 0.0.1776
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 +50 -0
- package/README.md +32 -2
- package/dist/apis/CartsApi.d.ts +94 -0
- package/dist/apis/CartsApi.js +375 -0
- package/dist/apis/CustomersApi.d.ts +48 -0
- package/dist/apis/CustomersApi.js +196 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +4 -4
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/CartAddressType.d.ts +25 -0
- package/dist/models/CartAddressType.js +51 -0
- package/dist/models/CartItemListResource.d.ts +51 -0
- package/dist/models/CartItemListResource.js +62 -0
- package/dist/models/CartItemListResourceArrayResponse.d.ts +33 -0
- package/dist/models/CartItemListResourceArrayResponse.js +50 -0
- package/dist/models/CartListResource.d.ts +101 -0
- package/dist/models/CartListResource.js +90 -0
- package/dist/models/CartListResourceArrayResponse.d.ts +33 -0
- package/dist/models/CartListResourceArrayResponse.js +50 -0
- package/dist/models/CartOrderSource.d.ts +29 -0
- package/dist/models/CartOrderSource.js +55 -0
- package/dist/models/CartResource.d.ts +155 -0
- package/dist/models/CartResource.js +116 -0
- package/dist/models/CartResourceArrayResponse.d.ts +33 -0
- package/dist/models/CartResourceArrayResponse.js +50 -0
- package/dist/models/CartStatus.d.ts +26 -0
- package/dist/models/CartStatus.js +52 -0
- package/dist/models/CustomerListResource.d.ts +69 -0
- package/dist/models/CustomerListResource.js +72 -0
- package/dist/models/CustomerListResourceArrayResponse.d.ts +33 -0
- package/dist/models/CustomerListResourceArrayResponse.js +50 -0
- package/dist/models/CustomerResource.d.ts +69 -0
- package/dist/models/CustomerResource.js +72 -0
- package/dist/models/CustomerResourceArrayResponse.d.ts +33 -0
- package/dist/models/CustomerResourceArrayResponse.js +50 -0
- package/dist/models/IndexCartRequest.d.ts +154 -0
- package/dist/models/IndexCartRequest.js +105 -0
- package/dist/models/IndexCustomerRequest.d.ts +99 -0
- package/dist/models/IndexCustomerRequest.js +83 -0
- package/dist/models/PaginatedCartListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedCartListResourceResponse.js +57 -0
- package/dist/models/PaginatedCustomerListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedCustomerListResourceResponse.js +57 -0
- package/dist/models/SitePaymentConfigResource.d.ts +6 -0
- package/dist/models/SitePaymentConfigResource.js +4 -0
- package/dist/models/StoreCartRequest.d.ts +95 -0
- package/dist/models/StoreCartRequest.js +90 -0
- package/dist/models/StoreCartRequestCustomer.d.ts +50 -0
- package/dist/models/StoreCartRequestCustomer.js +55 -0
- package/dist/models/StoreCartRequestItemsInner.d.ts +44 -0
- package/dist/models/StoreCartRequestItemsInner.js +57 -0
- package/dist/models/StoreCartRequestShippingAddress.d.ts +74 -0
- package/dist/models/StoreCartRequestShippingAddress.js +63 -0
- package/dist/models/StoreCustomerRequest.d.ts +56 -0
- package/dist/models/StoreCustomerRequest.js +65 -0
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +3 -1
- package/dist/models/UpdateCartRequest.d.ts +70 -0
- package/dist/models/UpdateCartRequest.js +75 -0
- package/dist/models/UpdateSiteRequest.d.ts +6 -0
- package/dist/models/UpdateSiteRequest.js +4 -0
- package/dist/models/index.d.ts +23 -0
- package/dist/models/index.js +23 -0
- package/docs/CartAddressType.md +32 -0
- package/docs/CartItemListResource.md +40 -0
- package/docs/CartItemListResourceArrayResponse.md +34 -0
- package/docs/CartListResource.md +56 -0
- package/docs/CartListResourceArrayResponse.md +34 -0
- package/docs/CartOrderSource.md +32 -0
- package/docs/CartResource.md +74 -0
- package/docs/CartResourceArrayResponse.md +34 -0
- package/docs/CartStatus.md +32 -0
- package/docs/CartsApi.md +341 -0
- package/docs/CustomerListResource.md +46 -0
- package/docs/CustomerListResourceArrayResponse.md +34 -0
- package/docs/CustomerResource.md +46 -0
- package/docs/CustomerResourceArrayResponse.md +34 -0
- package/docs/CustomersApi.md +140 -0
- package/docs/IndexCartRequest.md +66 -0
- package/docs/IndexCustomerRequest.md +50 -0
- package/docs/PaginatedCartListResourceResponse.md +36 -0
- package/docs/PaginatedCustomerListResourceResponse.md +36 -0
- package/docs/SitePaymentConfigResource.md +2 -0
- package/docs/StoreCartRequest.md +50 -0
- package/docs/StoreCartRequestCustomer.md +40 -0
- package/docs/StoreCartRequestItemsInner.md +38 -0
- package/docs/StoreCartRequestShippingAddress.md +48 -0
- package/docs/StoreCustomerRequest.md +42 -0
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/UpdateCartRequest.md +42 -0
- package/docs/UpdateSiteRequest.md +2 -0
- package/package.json +1 -1
- package/src/apis/CartsApi.ts +284 -0
- package/src/apis/CustomersApi.ts +127 -0
- package/src/apis/index.ts +2 -0
- package/src/models/AddressFrontendResource.ts +5 -5
- package/src/models/AddressResource.ts +3 -2
- package/src/models/CartAddressType.ts +53 -0
- package/src/models/CartItemListResource.ts +100 -0
- package/src/models/CartItemListResourceArrayResponse.ts +73 -0
- package/src/models/CartListResource.ts +183 -0
- package/src/models/CartListResourceArrayResponse.ts +73 -0
- package/src/models/CartOrderSource.ts +57 -0
- package/src/models/CartResource.ts +259 -0
- package/src/models/CartResourceArrayResponse.ts +73 -0
- package/src/models/CartStatus.ts +54 -0
- package/src/models/CustomerListResource.ts +126 -0
- package/src/models/CustomerListResourceArrayResponse.ts +73 -0
- package/src/models/CustomerResource.ts +126 -0
- package/src/models/CustomerResourceArrayResponse.ts +73 -0
- package/src/models/IndexCartRequest.ts +224 -0
- package/src/models/IndexCustomerRequest.ts +152 -0
- package/src/models/PaginatedCartListResourceResponse.ts +90 -0
- package/src/models/PaginatedCustomerListResourceResponse.ts +90 -0
- package/src/models/SitePaymentConfigResource.ts +9 -0
- package/src/models/StoreCartRequest.ts +171 -0
- package/src/models/StoreCartRequestCustomer.ts +89 -0
- package/src/models/StoreCartRequestItemsInner.ts +83 -0
- package/src/models/StoreCartRequestShippingAddress.ts +121 -0
- package/src/models/StoreCustomerRequest.ts +101 -0
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreResource.ts +3 -2
- package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
- package/src/models/StoreSpecialDateResource.ts +4 -3
- package/src/models/UpdateCartRequest.ts +129 -0
- package/src/models/UpdateSiteRequest.ts +9 -0
- package/src/models/index.ts +23 -0
package/docs/CartsApi.md
ADDED
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
# CartsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost/api*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**destroyCart**](CartsApi.md#destroycart) | **DELETE** /admin-api/carts/{cart}/delete | Auto-generated: destroyCart |
|
|
8
|
+
| [**indexCart**](CartsApi.md#indexcartoperation) | **POST** /admin-api/carts/list | Auto-generated: indexCart |
|
|
9
|
+
| [**showCart**](CartsApi.md#showcart) | **GET** /admin-api/carts/{cart} | Auto-generated: showCart |
|
|
10
|
+
| [**storeCart**](CartsApi.md#storecartoperation) | **POST** /admin-api/carts/create | Auto-generated: storeCart |
|
|
11
|
+
| [**updateCart**](CartsApi.md#updatecartoperation) | **PUT** /admin-api/carts/{cart}/update | Auto-generated: updateCart |
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## destroyCart
|
|
16
|
+
|
|
17
|
+
> GenericResponse destroyCart(cart)
|
|
18
|
+
|
|
19
|
+
Auto-generated: destroyCart
|
|
20
|
+
|
|
21
|
+
### Example
|
|
22
|
+
|
|
23
|
+
```ts
|
|
24
|
+
import {
|
|
25
|
+
Configuration,
|
|
26
|
+
CartsApi,
|
|
27
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
28
|
+
import type { DestroyCartRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
29
|
+
|
|
30
|
+
async function example() {
|
|
31
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
32
|
+
const api = new CartsApi();
|
|
33
|
+
|
|
34
|
+
const body = {
|
|
35
|
+
// number | The id of the cart
|
|
36
|
+
cart: 56,
|
|
37
|
+
} satisfies DestroyCartRequest;
|
|
38
|
+
|
|
39
|
+
try {
|
|
40
|
+
const data = await api.destroyCart(body);
|
|
41
|
+
console.log(data);
|
|
42
|
+
} catch (error) {
|
|
43
|
+
console.error(error);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// Run the test
|
|
48
|
+
example().catch(console.error);
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Parameters
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
| Name | Type | Description | Notes |
|
|
55
|
+
|------------- | ------------- | ------------- | -------------|
|
|
56
|
+
| **cart** | `number` | The id of the cart | [Defaults to `undefined`] |
|
|
57
|
+
|
|
58
|
+
### Return type
|
|
59
|
+
|
|
60
|
+
[**GenericResponse**](GenericResponse.md)
|
|
61
|
+
|
|
62
|
+
### Authorization
|
|
63
|
+
|
|
64
|
+
No authorization required
|
|
65
|
+
|
|
66
|
+
### HTTP request headers
|
|
67
|
+
|
|
68
|
+
- **Content-Type**: Not defined
|
|
69
|
+
- **Accept**: `application/json`
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
### HTTP response details
|
|
73
|
+
| Status code | Description | Response headers |
|
|
74
|
+
|-------------|-------------|------------------|
|
|
75
|
+
| **200** | \\JsonResponse | - |
|
|
76
|
+
|
|
77
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
## indexCart
|
|
81
|
+
|
|
82
|
+
> PaginatedCartListResourceResponse indexCart(indexCartRequest)
|
|
83
|
+
|
|
84
|
+
Auto-generated: indexCart
|
|
85
|
+
|
|
86
|
+
### Example
|
|
87
|
+
|
|
88
|
+
```ts
|
|
89
|
+
import {
|
|
90
|
+
Configuration,
|
|
91
|
+
CartsApi,
|
|
92
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
93
|
+
import type { IndexCartOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
94
|
+
|
|
95
|
+
async function example() {
|
|
96
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
97
|
+
const api = new CartsApi();
|
|
98
|
+
|
|
99
|
+
const body = {
|
|
100
|
+
// IndexCartRequest (optional)
|
|
101
|
+
indexCartRequest: ...,
|
|
102
|
+
} satisfies IndexCartOperationRequest;
|
|
103
|
+
|
|
104
|
+
try {
|
|
105
|
+
const data = await api.indexCart(body);
|
|
106
|
+
console.log(data);
|
|
107
|
+
} catch (error) {
|
|
108
|
+
console.error(error);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// Run the test
|
|
113
|
+
example().catch(console.error);
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### Parameters
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
| Name | Type | Description | Notes |
|
|
120
|
+
|------------- | ------------- | ------------- | -------------|
|
|
121
|
+
| **indexCartRequest** | [IndexCartRequest](IndexCartRequest.md) | | [Optional] |
|
|
122
|
+
|
|
123
|
+
### Return type
|
|
124
|
+
|
|
125
|
+
[**PaginatedCartListResourceResponse**](PaginatedCartListResourceResponse.md)
|
|
126
|
+
|
|
127
|
+
### Authorization
|
|
128
|
+
|
|
129
|
+
No authorization required
|
|
130
|
+
|
|
131
|
+
### HTTP request headers
|
|
132
|
+
|
|
133
|
+
- **Content-Type**: `application/json`
|
|
134
|
+
- **Accept**: `application/json`
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
### HTTP response details
|
|
138
|
+
| Status code | Description | Response headers |
|
|
139
|
+
|-------------|-------------|------------------|
|
|
140
|
+
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\CartListResource[]>> | - |
|
|
141
|
+
|
|
142
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
## showCart
|
|
146
|
+
|
|
147
|
+
> CartResource showCart(cart)
|
|
148
|
+
|
|
149
|
+
Auto-generated: showCart
|
|
150
|
+
|
|
151
|
+
### Example
|
|
152
|
+
|
|
153
|
+
```ts
|
|
154
|
+
import {
|
|
155
|
+
Configuration,
|
|
156
|
+
CartsApi,
|
|
157
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
158
|
+
import type { ShowCartRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
159
|
+
|
|
160
|
+
async function example() {
|
|
161
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
162
|
+
const api = new CartsApi();
|
|
163
|
+
|
|
164
|
+
const body = {
|
|
165
|
+
// number | The id of the cart
|
|
166
|
+
cart: 56,
|
|
167
|
+
} satisfies ShowCartRequest;
|
|
168
|
+
|
|
169
|
+
try {
|
|
170
|
+
const data = await api.showCart(body);
|
|
171
|
+
console.log(data);
|
|
172
|
+
} catch (error) {
|
|
173
|
+
console.error(error);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// Run the test
|
|
178
|
+
example().catch(console.error);
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
### Parameters
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
| Name | Type | Description | Notes |
|
|
185
|
+
|------------- | ------------- | ------------- | -------------|
|
|
186
|
+
| **cart** | `number` | The id of the cart | [Defaults to `undefined`] |
|
|
187
|
+
|
|
188
|
+
### Return type
|
|
189
|
+
|
|
190
|
+
[**CartResource**](CartResource.md)
|
|
191
|
+
|
|
192
|
+
### Authorization
|
|
193
|
+
|
|
194
|
+
No authorization required
|
|
195
|
+
|
|
196
|
+
### HTTP request headers
|
|
197
|
+
|
|
198
|
+
- **Content-Type**: Not defined
|
|
199
|
+
- **Accept**: `application/json`
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
### HTTP response details
|
|
203
|
+
| Status code | Description | Response headers |
|
|
204
|
+
|-------------|-------------|------------------|
|
|
205
|
+
| **200** | Successful resource response | - |
|
|
206
|
+
|
|
207
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
## storeCart
|
|
211
|
+
|
|
212
|
+
> CartResource storeCart(storeCartRequest)
|
|
213
|
+
|
|
214
|
+
Auto-generated: storeCart
|
|
215
|
+
|
|
216
|
+
### Example
|
|
217
|
+
|
|
218
|
+
```ts
|
|
219
|
+
import {
|
|
220
|
+
Configuration,
|
|
221
|
+
CartsApi,
|
|
222
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
223
|
+
import type { StoreCartOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
224
|
+
|
|
225
|
+
async function example() {
|
|
226
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
227
|
+
const api = new CartsApi();
|
|
228
|
+
|
|
229
|
+
const body = {
|
|
230
|
+
// StoreCartRequest (optional)
|
|
231
|
+
storeCartRequest: ...,
|
|
232
|
+
} satisfies StoreCartOperationRequest;
|
|
233
|
+
|
|
234
|
+
try {
|
|
235
|
+
const data = await api.storeCart(body);
|
|
236
|
+
console.log(data);
|
|
237
|
+
} catch (error) {
|
|
238
|
+
console.error(error);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
// Run the test
|
|
243
|
+
example().catch(console.error);
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
### Parameters
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
| Name | Type | Description | Notes |
|
|
250
|
+
|------------- | ------------- | ------------- | -------------|
|
|
251
|
+
| **storeCartRequest** | [StoreCartRequest](StoreCartRequest.md) | | [Optional] |
|
|
252
|
+
|
|
253
|
+
### Return type
|
|
254
|
+
|
|
255
|
+
[**CartResource**](CartResource.md)
|
|
256
|
+
|
|
257
|
+
### Authorization
|
|
258
|
+
|
|
259
|
+
No authorization required
|
|
260
|
+
|
|
261
|
+
### HTTP request headers
|
|
262
|
+
|
|
263
|
+
- **Content-Type**: `application/json`
|
|
264
|
+
- **Accept**: `application/json`
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
### HTTP response details
|
|
268
|
+
| Status code | Description | Response headers |
|
|
269
|
+
|-------------|-------------|------------------|
|
|
270
|
+
| **200** | Successful resource response | - |
|
|
271
|
+
|
|
272
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
## updateCart
|
|
276
|
+
|
|
277
|
+
> CartResource updateCart(cart, updateCartRequest)
|
|
278
|
+
|
|
279
|
+
Auto-generated: updateCart
|
|
280
|
+
|
|
281
|
+
### Example
|
|
282
|
+
|
|
283
|
+
```ts
|
|
284
|
+
import {
|
|
285
|
+
Configuration,
|
|
286
|
+
CartsApi,
|
|
287
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
288
|
+
import type { UpdateCartOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
289
|
+
|
|
290
|
+
async function example() {
|
|
291
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
292
|
+
const api = new CartsApi();
|
|
293
|
+
|
|
294
|
+
const body = {
|
|
295
|
+
// number | The id of the cart
|
|
296
|
+
cart: 56,
|
|
297
|
+
// UpdateCartRequest (optional)
|
|
298
|
+
updateCartRequest: ...,
|
|
299
|
+
} satisfies UpdateCartOperationRequest;
|
|
300
|
+
|
|
301
|
+
try {
|
|
302
|
+
const data = await api.updateCart(body);
|
|
303
|
+
console.log(data);
|
|
304
|
+
} catch (error) {
|
|
305
|
+
console.error(error);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
// Run the test
|
|
310
|
+
example().catch(console.error);
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
### Parameters
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
| Name | Type | Description | Notes |
|
|
317
|
+
|------------- | ------------- | ------------- | -------------|
|
|
318
|
+
| **cart** | `number` | The id of the cart | [Defaults to `undefined`] |
|
|
319
|
+
| **updateCartRequest** | [UpdateCartRequest](UpdateCartRequest.md) | | [Optional] |
|
|
320
|
+
|
|
321
|
+
### Return type
|
|
322
|
+
|
|
323
|
+
[**CartResource**](CartResource.md)
|
|
324
|
+
|
|
325
|
+
### Authorization
|
|
326
|
+
|
|
327
|
+
No authorization required
|
|
328
|
+
|
|
329
|
+
### HTTP request headers
|
|
330
|
+
|
|
331
|
+
- **Content-Type**: `application/json`
|
|
332
|
+
- **Accept**: `application/json`
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
### HTTP response details
|
|
336
|
+
| Status code | Description | Response headers |
|
|
337
|
+
|-------------|-------------|------------------|
|
|
338
|
+
| **200** | Successful resource response | - |
|
|
339
|
+
|
|
340
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
341
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
|
|
2
|
+
# CustomerListResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`firstName` | string
|
|
11
|
+
`lastName` | string
|
|
12
|
+
`email` | string
|
|
13
|
+
`phone` | string
|
|
14
|
+
`siteId` | string
|
|
15
|
+
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import type { CustomerListResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
21
|
+
|
|
22
|
+
// TODO: Update the object below with actual values
|
|
23
|
+
const example = {
|
|
24
|
+
"id": null,
|
|
25
|
+
"firstName": null,
|
|
26
|
+
"lastName": null,
|
|
27
|
+
"email": null,
|
|
28
|
+
"phone": null,
|
|
29
|
+
"siteId": null,
|
|
30
|
+
"site": null,
|
|
31
|
+
} satisfies CustomerListResource
|
|
32
|
+
|
|
33
|
+
console.log(example)
|
|
34
|
+
|
|
35
|
+
// Convert the instance to a JSON string
|
|
36
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
37
|
+
console.log(exampleJSON)
|
|
38
|
+
|
|
39
|
+
// Parse the JSON string back to an object
|
|
40
|
+
const exampleParsed = JSON.parse(exampleJSON) as CustomerListResource
|
|
41
|
+
console.log(exampleParsed)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
45
|
+
|
|
46
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# CustomerListResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<CustomerListResource>](CustomerListResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { CustomerListResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies CustomerListResourceArrayResponse
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as CustomerListResourceArrayResponse
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
|
|
2
|
+
# CustomerResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`firstName` | string
|
|
11
|
+
`lastName` | string
|
|
12
|
+
`email` | string
|
|
13
|
+
`phone` | string
|
|
14
|
+
`siteId` | string
|
|
15
|
+
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import type { CustomerResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
21
|
+
|
|
22
|
+
// TODO: Update the object below with actual values
|
|
23
|
+
const example = {
|
|
24
|
+
"id": null,
|
|
25
|
+
"firstName": null,
|
|
26
|
+
"lastName": null,
|
|
27
|
+
"email": null,
|
|
28
|
+
"phone": null,
|
|
29
|
+
"siteId": null,
|
|
30
|
+
"site": null,
|
|
31
|
+
} satisfies CustomerResource
|
|
32
|
+
|
|
33
|
+
console.log(example)
|
|
34
|
+
|
|
35
|
+
// Convert the instance to a JSON string
|
|
36
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
37
|
+
console.log(exampleJSON)
|
|
38
|
+
|
|
39
|
+
// Parse the JSON string back to an object
|
|
40
|
+
const exampleParsed = JSON.parse(exampleJSON) as CustomerResource
|
|
41
|
+
console.log(exampleParsed)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
45
|
+
|
|
46
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# CustomerResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<CustomerResource>](CustomerResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { CustomerResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies CustomerResourceArrayResponse
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as CustomerResourceArrayResponse
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
# CustomersApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost/api*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**indexCustomer**](CustomersApi.md#indexcustomeroperation) | **POST** /admin-api/customers/list | Auto-generated: indexCustomer |
|
|
8
|
+
| [**storeCustomer**](CustomersApi.md#storecustomeroperation) | **POST** /admin-api/customers/create | Auto-generated: storeCustomer |
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## indexCustomer
|
|
13
|
+
|
|
14
|
+
> PaginatedCustomerListResourceResponse indexCustomer(indexCustomerRequest)
|
|
15
|
+
|
|
16
|
+
Auto-generated: indexCustomer
|
|
17
|
+
|
|
18
|
+
### Example
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
import {
|
|
22
|
+
Configuration,
|
|
23
|
+
CustomersApi,
|
|
24
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
25
|
+
import type { IndexCustomerOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
26
|
+
|
|
27
|
+
async function example() {
|
|
28
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
29
|
+
const api = new CustomersApi();
|
|
30
|
+
|
|
31
|
+
const body = {
|
|
32
|
+
// IndexCustomerRequest (optional)
|
|
33
|
+
indexCustomerRequest: ...,
|
|
34
|
+
} satisfies IndexCustomerOperationRequest;
|
|
35
|
+
|
|
36
|
+
try {
|
|
37
|
+
const data = await api.indexCustomer(body);
|
|
38
|
+
console.log(data);
|
|
39
|
+
} catch (error) {
|
|
40
|
+
console.error(error);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// Run the test
|
|
45
|
+
example().catch(console.error);
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Parameters
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
| Name | Type | Description | Notes |
|
|
52
|
+
|------------- | ------------- | ------------- | -------------|
|
|
53
|
+
| **indexCustomerRequest** | [IndexCustomerRequest](IndexCustomerRequest.md) | | [Optional] |
|
|
54
|
+
|
|
55
|
+
### Return type
|
|
56
|
+
|
|
57
|
+
[**PaginatedCustomerListResourceResponse**](PaginatedCustomerListResourceResponse.md)
|
|
58
|
+
|
|
59
|
+
### Authorization
|
|
60
|
+
|
|
61
|
+
No authorization required
|
|
62
|
+
|
|
63
|
+
### HTTP request headers
|
|
64
|
+
|
|
65
|
+
- **Content-Type**: `application/json`
|
|
66
|
+
- **Accept**: `application/json`
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
### HTTP response details
|
|
70
|
+
| Status code | Description | Response headers |
|
|
71
|
+
|-------------|-------------|------------------|
|
|
72
|
+
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\CustomerListResource[]>> | - |
|
|
73
|
+
|
|
74
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
## storeCustomer
|
|
78
|
+
|
|
79
|
+
> CustomerResource storeCustomer(storeCustomerRequest)
|
|
80
|
+
|
|
81
|
+
Auto-generated: storeCustomer
|
|
82
|
+
|
|
83
|
+
### Example
|
|
84
|
+
|
|
85
|
+
```ts
|
|
86
|
+
import {
|
|
87
|
+
Configuration,
|
|
88
|
+
CustomersApi,
|
|
89
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
90
|
+
import type { StoreCustomerOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
91
|
+
|
|
92
|
+
async function example() {
|
|
93
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
94
|
+
const api = new CustomersApi();
|
|
95
|
+
|
|
96
|
+
const body = {
|
|
97
|
+
// StoreCustomerRequest (optional)
|
|
98
|
+
storeCustomerRequest: ...,
|
|
99
|
+
} satisfies StoreCustomerOperationRequest;
|
|
100
|
+
|
|
101
|
+
try {
|
|
102
|
+
const data = await api.storeCustomer(body);
|
|
103
|
+
console.log(data);
|
|
104
|
+
} catch (error) {
|
|
105
|
+
console.error(error);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// Run the test
|
|
110
|
+
example().catch(console.error);
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### Parameters
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
| Name | Type | Description | Notes |
|
|
117
|
+
|------------- | ------------- | ------------- | -------------|
|
|
118
|
+
| **storeCustomerRequest** | [StoreCustomerRequest](StoreCustomerRequest.md) | | [Optional] |
|
|
119
|
+
|
|
120
|
+
### Return type
|
|
121
|
+
|
|
122
|
+
[**CustomerResource**](CustomerResource.md)
|
|
123
|
+
|
|
124
|
+
### Authorization
|
|
125
|
+
|
|
126
|
+
No authorization required
|
|
127
|
+
|
|
128
|
+
### HTTP request headers
|
|
129
|
+
|
|
130
|
+
- **Content-Type**: `application/json`
|
|
131
|
+
- **Accept**: `application/json`
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
### HTTP response details
|
|
135
|
+
| Status code | Description | Response headers |
|
|
136
|
+
|-------------|-------------|------------------|
|
|
137
|
+
| **200** | Successful resource response | - |
|
|
138
|
+
|
|
139
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
140
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
|
|
2
|
+
# IndexCartRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`search` | string
|
|
10
|
+
`sortBy` | string
|
|
11
|
+
`sortDirection` | string
|
|
12
|
+
`perPage` | number
|
|
13
|
+
`page` | number
|
|
14
|
+
`siteId` | Array<string>
|
|
15
|
+
`source` | Array<string>
|
|
16
|
+
`status` | Array<string>
|
|
17
|
+
`beforeCreatedAt` | Date
|
|
18
|
+
`afterCreatedAt` | Date
|
|
19
|
+
`beforeExpiryDate` | Date
|
|
20
|
+
`afterExpiryDate` | Date
|
|
21
|
+
`beforeCheckoutCompletedAt` | Date
|
|
22
|
+
`afterCheckoutCompletedAt` | Date
|
|
23
|
+
`relatedId` | number
|
|
24
|
+
`relatedType` | string
|
|
25
|
+
`includesRelations` | boolean
|
|
26
|
+
|
|
27
|
+
## Example
|
|
28
|
+
|
|
29
|
+
```typescript
|
|
30
|
+
import type { IndexCartRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
31
|
+
|
|
32
|
+
// TODO: Update the object below with actual values
|
|
33
|
+
const example = {
|
|
34
|
+
"search": null,
|
|
35
|
+
"sortBy": null,
|
|
36
|
+
"sortDirection": null,
|
|
37
|
+
"perPage": null,
|
|
38
|
+
"page": null,
|
|
39
|
+
"siteId": null,
|
|
40
|
+
"source": null,
|
|
41
|
+
"status": null,
|
|
42
|
+
"beforeCreatedAt": null,
|
|
43
|
+
"afterCreatedAt": null,
|
|
44
|
+
"beforeExpiryDate": null,
|
|
45
|
+
"afterExpiryDate": null,
|
|
46
|
+
"beforeCheckoutCompletedAt": null,
|
|
47
|
+
"afterCheckoutCompletedAt": null,
|
|
48
|
+
"relatedId": null,
|
|
49
|
+
"relatedType": null,
|
|
50
|
+
"includesRelations": null,
|
|
51
|
+
} satisfies IndexCartRequest
|
|
52
|
+
|
|
53
|
+
console.log(example)
|
|
54
|
+
|
|
55
|
+
// Convert the instance to a JSON string
|
|
56
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
57
|
+
console.log(exampleJSON)
|
|
58
|
+
|
|
59
|
+
// Parse the JSON string back to an object
|
|
60
|
+
const exampleParsed = JSON.parse(exampleJSON) as IndexCartRequest
|
|
61
|
+
console.log(exampleParsed)
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
65
|
+
|
|
66
|
+
|