@digital8/lighting-illusions-ts-sdk 0.0.2056 → 0.0.2057
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 +36 -16
- package/README.md +24 -13
- package/dist/apis/CartsApi.d.ts +8 -8
- package/dist/apis/CartsApi.js +8 -8
- package/dist/apis/CustomersApi.d.ts +17 -0
- package/dist/apis/CustomersApi.js +62 -0
- package/dist/apis/OrdersApi.d.ts +23 -8
- package/dist/apis/OrdersApi.js +69 -10
- package/dist/apis/ProductApi.d.ts +0 -16
- package/dist/apis/ProductApi.js +0 -59
- package/dist/apis/TransactionsApi.d.ts +3 -3
- package/dist/apis/TransactionsApi.js +2 -2
- package/dist/models/AddressResource.d.ts +0 -6
- package/dist/models/AddressResource.js +0 -2
- package/dist/models/AdminNoteResource.d.ts +12 -0
- package/dist/models/AdminNoteResource.js +8 -0
- package/dist/models/AdminOrderResource.d.ts +22 -4
- package/dist/models/AdminOrderResource.js +18 -6
- package/dist/models/AttachCartCouponRequest.d.ts +32 -0
- package/dist/models/AttachCartCouponRequest.js +51 -0
- package/dist/models/AttachCartItemRequest.d.ts +44 -0
- package/dist/models/{AttachLineItemRequest.js → AttachCartItemRequest.js} +13 -13
- package/dist/models/AttachOrderCouponRequest.d.ts +32 -0
- package/dist/models/AttachOrderCouponRequest.js +51 -0
- package/dist/models/AttachOrderLineItemRequest.d.ts +44 -0
- package/dist/models/AttachOrderLineItemRequest.js +57 -0
- package/dist/models/CartCouponLiteResource.d.ts +56 -0
- package/dist/models/CartCouponLiteResource.js +67 -0
- package/dist/models/CartCouponLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/CartCouponLiteResourceArrayResponse.js +50 -0
- package/dist/models/CartListResource.d.ts +48 -0
- package/dist/models/CartListResource.js +26 -0
- package/dist/models/CartResource.d.ts +5 -5
- package/dist/models/CartResource.js +5 -5
- package/dist/models/CreateTransactionRequest.d.ts +0 -6
- package/dist/models/CreateTransactionRequest.js +0 -2
- package/dist/models/CustomerListResource.d.ts +7 -0
- package/dist/models/CustomerListResource.js +5 -0
- package/dist/models/DetachCartCouponRequest.d.ts +32 -0
- package/dist/models/DetachCartCouponRequest.js +51 -0
- package/dist/models/DetachOrderCouponRequest.d.ts +32 -0
- package/dist/models/DetachOrderCouponRequest.js +51 -0
- package/dist/models/FrontendCartResource.d.ts +144 -0
- package/dist/models/FrontendCartResource.js +121 -0
- package/dist/models/FrontendCartResourceArrayResponse.d.ts +33 -0
- package/dist/models/FrontendCartResourceArrayResponse.js +50 -0
- package/dist/models/FrontendCartResourceCouponsInner.d.ts +56 -0
- package/dist/models/FrontendCartResourceCouponsInner.js +57 -0
- package/dist/models/FrontendLineItemResource.d.ts +81 -0
- package/dist/models/FrontendLineItemResource.js +82 -0
- package/dist/models/FrontendLineItemResourceArrayResponse.d.ts +33 -0
- package/dist/models/FrontendLineItemResourceArrayResponse.js +50 -0
- package/dist/models/FrontendOrderResource.d.ts +174 -0
- package/dist/models/FrontendOrderResource.js +139 -0
- package/dist/models/FrontendOrderResourceArrayResponse.d.ts +33 -0
- package/dist/models/FrontendOrderResourceArrayResponse.js +50 -0
- package/dist/models/PaymentSource.d.ts +1 -0
- package/dist/models/PaymentSource.js +2 -1
- package/dist/models/ProductChildLineItemLiteResource.d.ts +18 -0
- package/dist/models/ProductChildLineItemLiteResource.js +12 -0
- package/dist/models/SearchCartsRequest.d.ts +0 -1
- package/dist/models/SearchCartsRequest.js +1 -2
- package/dist/models/StoreFrontendResource.d.ts +2 -2
- package/dist/models/StoreFrontendResource.js +4 -4
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +1 -3
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +3 -1
- package/dist/models/TransactionLiteResource.d.ts +0 -12
- package/dist/models/TransactionLiteResource.js +0 -4
- package/dist/models/UpdateCartItemRequest.d.ts +38 -0
- package/dist/models/{UpdateLineItemRequest.js → UpdateCartItemRequest.js} +13 -13
- package/dist/models/UpdateCustomerRequest.d.ts +56 -0
- package/dist/models/UpdateCustomerRequest.js +63 -0
- package/dist/models/UpdateOrderLineItemRequest.d.ts +38 -0
- package/dist/models/UpdateOrderLineItemRequest.js +53 -0
- package/dist/models/UpdateOrderRequest.d.ts +0 -6
- package/dist/models/UpdateOrderRequest.js +0 -2
- package/dist/models/index.d.ts +18 -8
- package/dist/models/index.js +18 -8
- package/docs/AddressResource.md +0 -2
- package/docs/AdminNoteResource.md +4 -0
- package/docs/AdminOrderResource.md +9 -3
- package/docs/{AttachCouponRequest.md → AttachCartCouponRequest.md} +4 -4
- package/docs/{AttachLineItemRequest.md → AttachCartItemRequest.md} +4 -4
- package/docs/{SkuSearchProductChildRequest.md → AttachOrderCouponRequest.md} +6 -8
- package/docs/AttachOrderLineItemRequest.md +38 -0
- package/docs/CartCouponLiteResource.md +42 -0
- package/docs/{TransactionListResourceArrayResponse.md → CartCouponLiteResourceArrayResponse.md} +5 -5
- package/docs/CartListResource.md +16 -0
- package/docs/CartResource.md +3 -3
- package/docs/CartsApi.md +16 -16
- package/docs/CreateTransactionRequest.md +0 -2
- package/docs/CustomerListResource.md +2 -0
- package/docs/CustomersApi.md +69 -0
- package/docs/{DetachCouponRequest.md → DetachCartCouponRequest.md} +4 -4
- package/docs/DetachOrderCouponRequest.md +34 -0
- package/docs/FrontendCartResource.md +70 -0
- package/docs/FrontendCartResourceArrayResponse.md +34 -0
- package/docs/FrontendCartResourceCouponsInner.md +42 -0
- package/docs/FrontendLineItemResource.md +50 -0
- package/docs/FrontendLineItemResourceArrayResponse.md +34 -0
- package/docs/FrontendOrderResource.md +80 -0
- package/docs/FrontendOrderResourceArrayResponse.md +34 -0
- package/docs/OrdersApi.md +84 -18
- package/docs/ProductApi.md +0 -66
- package/docs/ProductChildLineItemLiteResource.md +6 -0
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/TransactionLiteResource.md +0 -4
- package/docs/TransactionsApi.md +3 -3
- package/docs/{UpdateLineItemRequest.md → UpdateCartItemRequest.md} +4 -4
- package/docs/UpdateCustomerRequest.md +42 -0
- package/docs/UpdateOrderLineItemRequest.md +36 -0
- package/docs/UpdateOrderRequest.md +0 -2
- package/package.json +1 -1
- package/src/apis/CartsApi.ts +25 -25
- package/src/apis/CustomersApi.ts +58 -0
- package/src/apis/OrdersApi.ts +75 -26
- package/src/apis/ProductApi.ts +0 -49
- package/src/apis/TransactionsApi.ts +7 -7
- package/src/models/AddressResource.ts +0 -8
- package/src/models/AdminNoteResource.ts +18 -0
- package/src/models/AdminOrderResource.ts +42 -15
- package/src/models/AttachCartCouponRequest.ts +66 -0
- package/src/models/{AttachLineItemRequest.ts → AttachCartItemRequest.ts} +13 -13
- package/src/models/AttachOrderCouponRequest.ts +66 -0
- package/src/models/AttachOrderLineItemRequest.ts +83 -0
- package/src/models/CartCouponLiteResource.ts +102 -0
- package/src/models/CartCouponLiteResourceArrayResponse.ts +73 -0
- package/src/models/CartListResource.ts +69 -0
- package/src/models/CartResource.ts +15 -15
- package/src/models/CreateTransactionRequest.ts +0 -8
- package/src/models/CustomerListResource.ts +16 -0
- package/src/models/DetachCartCouponRequest.ts +66 -0
- package/src/models/DetachOrderCouponRequest.ts +66 -0
- package/src/models/FrontendCartResource.ts +254 -0
- package/src/models/FrontendCartResourceArrayResponse.ts +73 -0
- package/src/models/FrontendCartResourceCouponsInner.ts +97 -0
- package/src/models/FrontendLineItemResource.ts +145 -0
- package/src/models/FrontendLineItemResourceArrayResponse.ts +73 -0
- package/src/models/FrontendOrderResource.ts +298 -0
- package/src/models/FrontendOrderResourceArrayResponse.ts +73 -0
- package/src/models/PaymentSource.ts +2 -1
- package/src/models/ProductChildLineItemLiteResource.ts +27 -0
- package/src/models/SearchCartsRequest.ts +1 -2
- package/src/models/StoreFrontendResource.ts +5 -5
- package/src/models/StoreResource.ts +2 -3
- package/src/models/StoreSpecialDateResource.ts +4 -3
- package/src/models/TransactionLiteResource.ts +0 -16
- package/src/models/{UpdateLineItemRequest.ts → UpdateCartItemRequest.ts} +12 -12
- package/src/models/UpdateCustomerRequest.ts +100 -0
- package/src/models/UpdateOrderLineItemRequest.ts +74 -0
- package/src/models/UpdateOrderRequest.ts +0 -8
- package/src/models/index.ts +18 -8
- package/dist/models/AttachCouponRequest.d.ts +0 -32
- package/dist/models/AttachCouponRequest.js +0 -51
- package/dist/models/AttachLineItemRequest.d.ts +0 -44
- package/dist/models/DetachCouponRequest.d.ts +0 -32
- package/dist/models/DetachCouponRequest.js +0 -51
- package/dist/models/PaginatedTransactionListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedTransactionListResourceResponse.js +0 -57
- package/dist/models/SkuSearchProductChildRequest.d.ts +0 -38
- package/dist/models/SkuSearchProductChildRequest.js +0 -55
- package/dist/models/TransactionListResource.d.ts +0 -116
- package/dist/models/TransactionListResource.js +0 -97
- package/dist/models/TransactionListResourceArrayResponse.d.ts +0 -33
- package/dist/models/TransactionListResourceArrayResponse.js +0 -50
- package/dist/models/UpdateLineItemRequest.d.ts +0 -38
- package/docs/PaginatedTransactionListResourceResponse.md +0 -36
- package/docs/TransactionListResource.md +0 -62
- package/src/models/AttachCouponRequest.ts +0 -66
- package/src/models/DetachCouponRequest.ts +0 -66
- package/src/models/PaginatedTransactionListResourceResponse.ts +0 -90
- package/src/models/SkuSearchProductChildRequest.ts +0 -75
- package/src/models/TransactionListResource.ts +0 -187
- package/src/models/TransactionListResourceArrayResponse.ts +0 -73
package/docs/OrdersApi.md
CHANGED
|
@@ -4,13 +4,14 @@ All URIs are relative to *http://localhost/api*
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
| [**attachCouponOrder**](OrdersApi.md#attachcouponorder) | **POST** /admin-api/orders/{order}/
|
|
7
|
+
| [**attachCouponOrder**](OrdersApi.md#attachcouponorder) | **POST** /admin-api/orders/{order}/coupon/attach | Auto-generated: attachCouponOrder |
|
|
8
8
|
| [**attachItemOrder**](OrdersApi.md#attachitemorder) | **POST** /admin-api/orders/{order}/line-items/attach | Auto-generated: attachItemOrder |
|
|
9
9
|
| [**destroyOrder**](OrdersApi.md#destroyorder) | **DELETE** /admin-api/orders/{order}/delete | Auto-generated: destroyOrder |
|
|
10
|
-
| [**detachCouponOrder**](OrdersApi.md#detachcouponorder) | **DELETE** /admin-api/orders/{order}/
|
|
10
|
+
| [**detachCouponOrder**](OrdersApi.md#detachcouponorder) | **DELETE** /admin-api/orders/{order}/coupon/detach | Auto-generated: detachCouponOrder |
|
|
11
11
|
| [**detachItemOrder**](OrdersApi.md#detachitemorder) | **DELETE** /admin-api/orders/{order}/line-items/{lineItem}/detach | Auto-generated: detachItemOrder |
|
|
12
12
|
| [**getAllOrder**](OrdersApi.md#getallorder) | **POST** /admin-api/orders/all | Auto-generated: getAllOrder |
|
|
13
13
|
| [**indexOrder**](OrdersApi.md#indexorder) | **POST** /admin-api/orders/list | Auto-generated: indexOrder |
|
|
14
|
+
| [**pdfOrder**](OrdersApi.md#pdforder) | **POST** /admin-api/orders/{order}/pdf | Auto-generated: pdfOrder |
|
|
14
15
|
| [**sendPaymentLinkOrder**](OrdersApi.md#sendpaymentlinkorder) | **POST** /admin-api/orders/{order}/send-payment-link | Auto-generated: sendPaymentLinkOrder |
|
|
15
16
|
| [**showOrder**](OrdersApi.md#showorder) | **GET** /admin-api/orders/{order} | Auto-generated: showOrder |
|
|
16
17
|
| [**statusesAllOrder**](OrdersApi.md#statusesallorder) | **POST** /admin-api/orders/statuses/all | Auto-generated: statusesAllOrder |
|
|
@@ -21,7 +22,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
21
22
|
|
|
22
23
|
## attachCouponOrder
|
|
23
24
|
|
|
24
|
-
> AdminOrderResource attachCouponOrder(order,
|
|
25
|
+
> AdminOrderResource attachCouponOrder(order, attachOrderCouponRequest)
|
|
25
26
|
|
|
26
27
|
Auto-generated: attachCouponOrder
|
|
27
28
|
|
|
@@ -41,8 +42,8 @@ async function example() {
|
|
|
41
42
|
const body = {
|
|
42
43
|
// number | The id of the order
|
|
43
44
|
order: 56,
|
|
44
|
-
//
|
|
45
|
-
|
|
45
|
+
// AttachOrderCouponRequest (optional)
|
|
46
|
+
attachOrderCouponRequest: ...,
|
|
46
47
|
} satisfies AttachCouponOrderRequest;
|
|
47
48
|
|
|
48
49
|
try {
|
|
@@ -63,7 +64,7 @@ example().catch(console.error);
|
|
|
63
64
|
| Name | Type | Description | Notes |
|
|
64
65
|
|------------- | ------------- | ------------- | -------------|
|
|
65
66
|
| **order** | `number` | The id of the order | [Defaults to `undefined`] |
|
|
66
|
-
| **
|
|
67
|
+
| **attachOrderCouponRequest** | [AttachOrderCouponRequest](AttachOrderCouponRequest.md) | | [Optional] |
|
|
67
68
|
|
|
68
69
|
### Return type
|
|
69
70
|
|
|
@@ -89,7 +90,7 @@ No authorization required
|
|
|
89
90
|
|
|
90
91
|
## attachItemOrder
|
|
91
92
|
|
|
92
|
-
> AdminOrderResource attachItemOrder(order,
|
|
93
|
+
> AdminOrderResource attachItemOrder(order, attachOrderLineItemRequest)
|
|
93
94
|
|
|
94
95
|
Auto-generated: attachItemOrder
|
|
95
96
|
|
|
@@ -109,8 +110,8 @@ async function example() {
|
|
|
109
110
|
const body = {
|
|
110
111
|
// number | The id of the order
|
|
111
112
|
order: 56,
|
|
112
|
-
//
|
|
113
|
-
|
|
113
|
+
// AttachOrderLineItemRequest (optional)
|
|
114
|
+
attachOrderLineItemRequest: ...,
|
|
114
115
|
} satisfies AttachItemOrderRequest;
|
|
115
116
|
|
|
116
117
|
try {
|
|
@@ -131,7 +132,7 @@ example().catch(console.error);
|
|
|
131
132
|
| Name | Type | Description | Notes |
|
|
132
133
|
|------------- | ------------- | ------------- | -------------|
|
|
133
134
|
| **order** | `number` | The id of the order | [Defaults to `undefined`] |
|
|
134
|
-
| **
|
|
135
|
+
| **attachOrderLineItemRequest** | [AttachOrderLineItemRequest](AttachOrderLineItemRequest.md) | | [Optional] |
|
|
135
136
|
|
|
136
137
|
### Return type
|
|
137
138
|
|
|
@@ -222,7 +223,7 @@ No authorization required
|
|
|
222
223
|
|
|
223
224
|
## detachCouponOrder
|
|
224
225
|
|
|
225
|
-
> AdminOrderResource detachCouponOrder(order,
|
|
226
|
+
> AdminOrderResource detachCouponOrder(order, detachOrderCouponRequest)
|
|
226
227
|
|
|
227
228
|
Auto-generated: detachCouponOrder
|
|
228
229
|
|
|
@@ -242,8 +243,8 @@ async function example() {
|
|
|
242
243
|
const body = {
|
|
243
244
|
// number | The id of the order
|
|
244
245
|
order: 56,
|
|
245
|
-
//
|
|
246
|
-
|
|
246
|
+
// DetachOrderCouponRequest (optional)
|
|
247
|
+
detachOrderCouponRequest: ...,
|
|
247
248
|
} satisfies DetachCouponOrderRequest;
|
|
248
249
|
|
|
249
250
|
try {
|
|
@@ -264,7 +265,7 @@ example().catch(console.error);
|
|
|
264
265
|
| Name | Type | Description | Notes |
|
|
265
266
|
|------------- | ------------- | ------------- | -------------|
|
|
266
267
|
| **order** | `number` | The id of the order | [Defaults to `undefined`] |
|
|
267
|
-
| **
|
|
268
|
+
| **detachOrderCouponRequest** | [DetachOrderCouponRequest](DetachOrderCouponRequest.md) | | [Optional] |
|
|
268
269
|
|
|
269
270
|
### Return type
|
|
270
271
|
|
|
@@ -486,6 +487,71 @@ No authorization required
|
|
|
486
487
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
487
488
|
|
|
488
489
|
|
|
490
|
+
## pdfOrder
|
|
491
|
+
|
|
492
|
+
> Blob pdfOrder(order)
|
|
493
|
+
|
|
494
|
+
Auto-generated: pdfOrder
|
|
495
|
+
|
|
496
|
+
### Example
|
|
497
|
+
|
|
498
|
+
```ts
|
|
499
|
+
import {
|
|
500
|
+
Configuration,
|
|
501
|
+
OrdersApi,
|
|
502
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
503
|
+
import type { PdfOrderRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
504
|
+
|
|
505
|
+
async function example() {
|
|
506
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
507
|
+
const api = new OrdersApi();
|
|
508
|
+
|
|
509
|
+
const body = {
|
|
510
|
+
// number | The id of the order
|
|
511
|
+
order: 56,
|
|
512
|
+
} satisfies PdfOrderRequest;
|
|
513
|
+
|
|
514
|
+
try {
|
|
515
|
+
const data = await api.pdfOrder(body);
|
|
516
|
+
console.log(data);
|
|
517
|
+
} catch (error) {
|
|
518
|
+
console.error(error);
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
// Run the test
|
|
523
|
+
example().catch(console.error);
|
|
524
|
+
```
|
|
525
|
+
|
|
526
|
+
### Parameters
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
| Name | Type | Description | Notes |
|
|
530
|
+
|------------- | ------------- | ------------- | -------------|
|
|
531
|
+
| **order** | `number` | The id of the order | [Defaults to `undefined`] |
|
|
532
|
+
|
|
533
|
+
### Return type
|
|
534
|
+
|
|
535
|
+
**Blob**
|
|
536
|
+
|
|
537
|
+
### Authorization
|
|
538
|
+
|
|
539
|
+
No authorization required
|
|
540
|
+
|
|
541
|
+
### HTTP request headers
|
|
542
|
+
|
|
543
|
+
- **Content-Type**: Not defined
|
|
544
|
+
- **Accept**: ``
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
### HTTP response details
|
|
548
|
+
| Status code | Description | Response headers |
|
|
549
|
+
|-------------|-------------|------------------|
|
|
550
|
+
| **200** | File download (application/pdf) | - |
|
|
551
|
+
|
|
552
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
553
|
+
|
|
554
|
+
|
|
489
555
|
## sendPaymentLinkOrder
|
|
490
556
|
|
|
491
557
|
> AdminOrderResource sendPaymentLinkOrder(order)
|
|
@@ -675,7 +741,7 @@ No authorization required
|
|
|
675
741
|
|
|
676
742
|
## updateItemOrder
|
|
677
743
|
|
|
678
|
-
> AdminOrderResource updateItemOrder(order, lineItem,
|
|
744
|
+
> AdminOrderResource updateItemOrder(order, lineItem, updateOrderLineItemRequest)
|
|
679
745
|
|
|
680
746
|
Auto-generated: updateItemOrder
|
|
681
747
|
|
|
@@ -697,8 +763,8 @@ async function example() {
|
|
|
697
763
|
order: 56,
|
|
698
764
|
// number | The id of the lineItem
|
|
699
765
|
lineItem: 56,
|
|
700
|
-
//
|
|
701
|
-
|
|
766
|
+
// UpdateOrderLineItemRequest (optional)
|
|
767
|
+
updateOrderLineItemRequest: ...,
|
|
702
768
|
} satisfies UpdateItemOrderRequest;
|
|
703
769
|
|
|
704
770
|
try {
|
|
@@ -720,7 +786,7 @@ example().catch(console.error);
|
|
|
720
786
|
|------------- | ------------- | ------------- | -------------|
|
|
721
787
|
| **order** | `number` | The id of the order | [Defaults to `undefined`] |
|
|
722
788
|
| **lineItem** | `number` | The id of the lineItem | [Defaults to `undefined`] |
|
|
723
|
-
| **
|
|
789
|
+
| **updateOrderLineItemRequest** | [UpdateOrderLineItemRequest](UpdateOrderLineItemRequest.md) | | [Optional] |
|
|
724
790
|
|
|
725
791
|
### Return type
|
|
726
792
|
|
package/docs/ProductApi.md
CHANGED
|
@@ -22,7 +22,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
22
22
|
| [**showAttributesProductChild**](ProductApi.md#showattributesproductchild) | **POST** /admin-api/product/children/{productChild}/attributes | Auto-generated: showAttributesProductChild |
|
|
23
23
|
| [**showProduct**](ProductApi.md#showproduct) | **GET** /admin-api/product/parent/{product} | Auto-generated: showProduct |
|
|
24
24
|
| [**showProductChild**](ProductApi.md#showproductchild) | **GET** /admin-api/product/children/{productChild} | Auto-generated: showProductChild |
|
|
25
|
-
| [**skuSearchProductChild**](ProductApi.md#skusearchproductchildoperation) | **POST** /admin-api/product/children/sku-search | Auto-generated: skuSearchProductChild |
|
|
26
25
|
| [**storeProduct**](ProductApi.md#storeproduct) | **POST** /admin-api/product/parent/create | Auto-generated: storeProduct |
|
|
27
26
|
| [**storeProductChild**](ProductApi.md#storeproductchild) | **POST** /admin-api/product/children/create | Auto-generated: storeProductChild |
|
|
28
27
|
| [**updateProduct**](ProductApi.md#updateproductoperation) | **PUT** /admin-api/product/parent/{product}/update | Auto-generated: updateProduct |
|
|
@@ -1230,71 +1229,6 @@ No authorization required
|
|
|
1230
1229
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1231
1230
|
|
|
1232
1231
|
|
|
1233
|
-
## skuSearchProductChild
|
|
1234
|
-
|
|
1235
|
-
> ProductChildResource skuSearchProductChild(skuSearchProductChildRequest)
|
|
1236
|
-
|
|
1237
|
-
Auto-generated: skuSearchProductChild
|
|
1238
|
-
|
|
1239
|
-
### Example
|
|
1240
|
-
|
|
1241
|
-
```ts
|
|
1242
|
-
import {
|
|
1243
|
-
Configuration,
|
|
1244
|
-
ProductApi,
|
|
1245
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
1246
|
-
import type { SkuSearchProductChildOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
1247
|
-
|
|
1248
|
-
async function example() {
|
|
1249
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
1250
|
-
const api = new ProductApi();
|
|
1251
|
-
|
|
1252
|
-
const body = {
|
|
1253
|
-
// SkuSearchProductChildRequest (optional)
|
|
1254
|
-
skuSearchProductChildRequest: ...,
|
|
1255
|
-
} satisfies SkuSearchProductChildOperationRequest;
|
|
1256
|
-
|
|
1257
|
-
try {
|
|
1258
|
-
const data = await api.skuSearchProductChild(body);
|
|
1259
|
-
console.log(data);
|
|
1260
|
-
} catch (error) {
|
|
1261
|
-
console.error(error);
|
|
1262
|
-
}
|
|
1263
|
-
}
|
|
1264
|
-
|
|
1265
|
-
// Run the test
|
|
1266
|
-
example().catch(console.error);
|
|
1267
|
-
```
|
|
1268
|
-
|
|
1269
|
-
### Parameters
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
| Name | Type | Description | Notes |
|
|
1273
|
-
|------------- | ------------- | ------------- | -------------|
|
|
1274
|
-
| **skuSearchProductChildRequest** | [SkuSearchProductChildRequest](SkuSearchProductChildRequest.md) | | [Optional] |
|
|
1275
|
-
|
|
1276
|
-
### Return type
|
|
1277
|
-
|
|
1278
|
-
[**ProductChildResource**](ProductChildResource.md)
|
|
1279
|
-
|
|
1280
|
-
### Authorization
|
|
1281
|
-
|
|
1282
|
-
No authorization required
|
|
1283
|
-
|
|
1284
|
-
### HTTP request headers
|
|
1285
|
-
|
|
1286
|
-
- **Content-Type**: `application/json`
|
|
1287
|
-
- **Accept**: `application/json`
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
### HTTP response details
|
|
1291
|
-
| Status code | Description | Response headers |
|
|
1292
|
-
|-------------|-------------|------------------|
|
|
1293
|
-
| **200** | Successful resource response | - |
|
|
1294
|
-
|
|
1295
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
1232
|
## storeProduct
|
|
1299
1233
|
|
|
1300
1234
|
> ProductResource storeProduct(createProductRequest)
|
|
@@ -12,6 +12,9 @@ Name | Type
|
|
|
12
12
|
`model` | string
|
|
13
13
|
`modelNumber` | string
|
|
14
14
|
`name` | string
|
|
15
|
+
`parentName` | string
|
|
16
|
+
`variantName` | string
|
|
17
|
+
`slug` | string
|
|
15
18
|
`stock` | number
|
|
16
19
|
`salePrice` | number
|
|
17
20
|
`thumbnail` | [AssetLiteResource](AssetLiteResource.md)
|
|
@@ -30,6 +33,9 @@ const example = {
|
|
|
30
33
|
"model": null,
|
|
31
34
|
"modelNumber": null,
|
|
32
35
|
"name": null,
|
|
36
|
+
"parentName": null,
|
|
37
|
+
"variantName": null,
|
|
38
|
+
"slug": null,
|
|
33
39
|
"stock": null,
|
|
34
40
|
"salePrice": null,
|
|
35
41
|
"thumbnail": null,
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
9
|
`paymentSource` | string
|
|
11
10
|
`paymentMethod` | string
|
|
12
11
|
`paymentMethodThumbnail` | string
|
|
@@ -16,7 +15,6 @@ Name | Type
|
|
|
16
15
|
`surcharge` | number
|
|
17
16
|
`totalAmount` | number
|
|
18
17
|
`reference` | string
|
|
19
|
-
`description` | string
|
|
20
18
|
`createdAt` | Date
|
|
21
19
|
|
|
22
20
|
## Example
|
|
@@ -26,7 +24,6 @@ import type { TransactionLiteResource } from '@digital8/lighting-illusions-ts-sd
|
|
|
26
24
|
|
|
27
25
|
// TODO: Update the object below with actual values
|
|
28
26
|
const example = {
|
|
29
|
-
"id": null,
|
|
30
27
|
"paymentSource": null,
|
|
31
28
|
"paymentMethod": null,
|
|
32
29
|
"paymentMethodThumbnail": null,
|
|
@@ -36,7 +33,6 @@ const example = {
|
|
|
36
33
|
"surcharge": null,
|
|
37
34
|
"totalAmount": null,
|
|
38
35
|
"reference": null,
|
|
39
|
-
"description": null,
|
|
40
36
|
"createdAt": null,
|
|
41
37
|
} satisfies TransactionLiteResource
|
|
42
38
|
|
package/docs/TransactionsApi.md
CHANGED
|
@@ -12,7 +12,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
12
12
|
|
|
13
13
|
## indexTransaction
|
|
14
14
|
|
|
15
|
-
>
|
|
15
|
+
> PaginatedTransactionResourceResponse indexTransaction(searchTransactionsRequest)
|
|
16
16
|
|
|
17
17
|
Auto-generated: indexTransaction
|
|
18
18
|
|
|
@@ -55,7 +55,7 @@ example().catch(console.error);
|
|
|
55
55
|
|
|
56
56
|
### Return type
|
|
57
57
|
|
|
58
|
-
[**
|
|
58
|
+
[**PaginatedTransactionResourceResponse**](PaginatedTransactionResourceResponse.md)
|
|
59
59
|
|
|
60
60
|
### Authorization
|
|
61
61
|
|
|
@@ -70,7 +70,7 @@ No authorization required
|
|
|
70
70
|
### HTTP response details
|
|
71
71
|
| Status code | Description | Response headers |
|
|
72
72
|
|-------------|-------------|------------------|
|
|
73
|
-
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\
|
|
73
|
+
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\TransactionResource[]>> | - |
|
|
74
74
|
|
|
75
75
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
76
76
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# UpdateCartItemRequest
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -12,13 +12,13 @@ Name | Type
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
import type {
|
|
15
|
+
import type { UpdateCartItemRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
16
|
|
|
17
17
|
// TODO: Update the object below with actual values
|
|
18
18
|
const example = {
|
|
19
19
|
"quantity": null,
|
|
20
20
|
"productPrice": null,
|
|
21
|
-
} satisfies
|
|
21
|
+
} satisfies UpdateCartItemRequest
|
|
22
22
|
|
|
23
23
|
console.log(example)
|
|
24
24
|
|
|
@@ -27,7 +27,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
27
27
|
console.log(exampleJSON)
|
|
28
28
|
|
|
29
29
|
// Parse the JSON string back to an object
|
|
30
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as UpdateCartItemRequest
|
|
31
31
|
console.log(exampleParsed)
|
|
32
32
|
```
|
|
33
33
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# UpdateCustomerRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`siteId` | number
|
|
10
|
+
`firstName` | string
|
|
11
|
+
`lastName` | string
|
|
12
|
+
`email` | string
|
|
13
|
+
`phone` | string
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { UpdateCustomerRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"siteId": null,
|
|
23
|
+
"firstName": null,
|
|
24
|
+
"lastName": null,
|
|
25
|
+
"email": null,
|
|
26
|
+
"phone": null,
|
|
27
|
+
} satisfies UpdateCustomerRequest
|
|
28
|
+
|
|
29
|
+
console.log(example)
|
|
30
|
+
|
|
31
|
+
// Convert the instance to a JSON string
|
|
32
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
+
console.log(exampleJSON)
|
|
34
|
+
|
|
35
|
+
// Parse the JSON string back to an object
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as UpdateCustomerRequest
|
|
37
|
+
console.log(exampleParsed)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
+
|
|
42
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# UpdateOrderLineItemRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`quantity` | number
|
|
10
|
+
`productPrice` | number
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { UpdateOrderLineItemRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"quantity": null,
|
|
20
|
+
"productPrice": null,
|
|
21
|
+
} satisfies UpdateOrderLineItemRequest
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as UpdateOrderLineItemRequest
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -15,7 +15,6 @@ Name | Type
|
|
|
15
15
|
`insuranceAmount` | number
|
|
16
16
|
`includeInsurance` | boolean
|
|
17
17
|
`overrideInsurance` | boolean
|
|
18
|
-
`useAsBillingAddress` | boolean
|
|
19
18
|
`shippingAddressId` | number
|
|
20
19
|
`billingAddressId` | number
|
|
21
20
|
`shippingAddress` | [CreateCartRequestShippingAddress](CreateCartRequestShippingAddress.md)
|
|
@@ -37,7 +36,6 @@ const example = {
|
|
|
37
36
|
"insuranceAmount": null,
|
|
38
37
|
"includeInsurance": null,
|
|
39
38
|
"overrideInsurance": null,
|
|
40
|
-
"useAsBillingAddress": null,
|
|
41
39
|
"shippingAddressId": null,
|
|
42
40
|
"billingAddressId": null,
|
|
43
41
|
"shippingAddress": null,
|
package/package.json
CHANGED
package/src/apis/CartsApi.ts
CHANGED
|
@@ -19,15 +19,15 @@ import {
|
|
|
19
19
|
AdminOrderResourceToJSON,
|
|
20
20
|
} from '../models/AdminOrderResource';
|
|
21
21
|
import {
|
|
22
|
-
type
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from '../models/
|
|
22
|
+
type AttachCartCouponRequest,
|
|
23
|
+
AttachCartCouponRequestFromJSON,
|
|
24
|
+
AttachCartCouponRequestToJSON,
|
|
25
|
+
} from '../models/AttachCartCouponRequest';
|
|
26
26
|
import {
|
|
27
|
-
type
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
} from '../models/
|
|
27
|
+
type AttachCartItemRequest,
|
|
28
|
+
AttachCartItemRequestFromJSON,
|
|
29
|
+
AttachCartItemRequestToJSON,
|
|
30
|
+
} from '../models/AttachCartItemRequest';
|
|
31
31
|
import {
|
|
32
32
|
type CartResource,
|
|
33
33
|
CartResourceFromJSON,
|
|
@@ -39,10 +39,10 @@ import {
|
|
|
39
39
|
CreateCartRequestToJSON,
|
|
40
40
|
} from '../models/CreateCartRequest';
|
|
41
41
|
import {
|
|
42
|
-
type
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
} from '../models/
|
|
42
|
+
type DetachCartCouponRequest,
|
|
43
|
+
DetachCartCouponRequestFromJSON,
|
|
44
|
+
DetachCartCouponRequestToJSON,
|
|
45
|
+
} from '../models/DetachCartCouponRequest';
|
|
46
46
|
import {
|
|
47
47
|
type GenericResponse,
|
|
48
48
|
GenericResponseFromJSON,
|
|
@@ -58,25 +58,25 @@ import {
|
|
|
58
58
|
SearchCartsRequestFromJSON,
|
|
59
59
|
SearchCartsRequestToJSON,
|
|
60
60
|
} from '../models/SearchCartsRequest';
|
|
61
|
+
import {
|
|
62
|
+
type UpdateCartItemRequest,
|
|
63
|
+
UpdateCartItemRequestFromJSON,
|
|
64
|
+
UpdateCartItemRequestToJSON,
|
|
65
|
+
} from '../models/UpdateCartItemRequest';
|
|
61
66
|
import {
|
|
62
67
|
type UpdateCartRequest,
|
|
63
68
|
UpdateCartRequestFromJSON,
|
|
64
69
|
UpdateCartRequestToJSON,
|
|
65
70
|
} from '../models/UpdateCartRequest';
|
|
66
|
-
import {
|
|
67
|
-
type UpdateLineItemRequest,
|
|
68
|
-
UpdateLineItemRequestFromJSON,
|
|
69
|
-
UpdateLineItemRequestToJSON,
|
|
70
|
-
} from '../models/UpdateLineItemRequest';
|
|
71
71
|
|
|
72
72
|
export interface AttachCouponCartRequest {
|
|
73
73
|
cart: number;
|
|
74
|
-
|
|
74
|
+
attachCartCouponRequest?: AttachCartCouponRequest;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
export interface AttachItemCartRequest {
|
|
78
78
|
cart: number;
|
|
79
|
-
|
|
79
|
+
attachCartItemRequest?: AttachCartItemRequest;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
export interface DestroyCartRequest {
|
|
@@ -85,7 +85,7 @@ export interface DestroyCartRequest {
|
|
|
85
85
|
|
|
86
86
|
export interface DetachCouponCartRequest {
|
|
87
87
|
cart: number;
|
|
88
|
-
|
|
88
|
+
detachCartCouponRequest?: DetachCartCouponRequest;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
export interface DetachItemCartRequest {
|
|
@@ -121,7 +121,7 @@ export interface UpdateCartOperationRequest {
|
|
|
121
121
|
export interface UpdateItemCartRequest {
|
|
122
122
|
cart: number;
|
|
123
123
|
lineItem: number;
|
|
124
|
-
|
|
124
|
+
updateCartItemRequest?: UpdateCartItemRequest;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
/**
|
|
@@ -155,7 +155,7 @@ export class CartsApi extends runtime.BaseAPI {
|
|
|
155
155
|
method: 'POST',
|
|
156
156
|
headers: headerParameters,
|
|
157
157
|
query: queryParameters,
|
|
158
|
-
body:
|
|
158
|
+
body: AttachCartCouponRequestToJSON(requestParameters['attachCartCouponRequest']),
|
|
159
159
|
};
|
|
160
160
|
}
|
|
161
161
|
|
|
@@ -203,7 +203,7 @@ export class CartsApi extends runtime.BaseAPI {
|
|
|
203
203
|
method: 'POST',
|
|
204
204
|
headers: headerParameters,
|
|
205
205
|
query: queryParameters,
|
|
206
|
-
body:
|
|
206
|
+
body: AttachCartItemRequestToJSON(requestParameters['attachCartItemRequest']),
|
|
207
207
|
};
|
|
208
208
|
}
|
|
209
209
|
|
|
@@ -296,7 +296,7 @@ export class CartsApi extends runtime.BaseAPI {
|
|
|
296
296
|
method: 'DELETE',
|
|
297
297
|
headers: headerParameters,
|
|
298
298
|
query: queryParameters,
|
|
299
|
-
body:
|
|
299
|
+
body: DetachCartCouponRequestToJSON(requestParameters['detachCartCouponRequest']),
|
|
300
300
|
};
|
|
301
301
|
}
|
|
302
302
|
|
|
@@ -668,7 +668,7 @@ export class CartsApi extends runtime.BaseAPI {
|
|
|
668
668
|
method: 'PUT',
|
|
669
669
|
headers: headerParameters,
|
|
670
670
|
query: queryParameters,
|
|
671
|
-
body:
|
|
671
|
+
body: UpdateCartItemRequestToJSON(requestParameters['updateCartItemRequest']),
|
|
672
672
|
};
|
|
673
673
|
}
|
|
674
674
|
|