@digital8/lighting-illusions-ts-sdk 0.0.2357 → 0.0.2359
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 +10 -0
- package/README.md +7 -2
- package/dist/apis/ProductClassApi.d.ts +34 -0
- package/dist/apis/ProductClassApi.js +139 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/CartListResource.d.ts +6 -0
- package/dist/models/CartListResource.js +4 -0
- package/dist/models/CategoryAutomationFieldType.d.ts +2 -0
- package/dist/models/CategoryAutomationFieldType.js +3 -1
- package/dist/models/CreatePageComponentRequest.d.ts +4 -4
- package/dist/models/CreatePageComponentRequest.js +4 -4
- package/dist/models/CreateProductCategoryRequestAutomationRulesInner.d.ts +2 -0
- package/dist/models/CreateProductCategoryRequestAutomationRulesInner.js +3 -1
- package/dist/models/CreateSupplierRequest.d.ts +6 -0
- package/dist/models/CreateSupplierRequest.js +2 -0
- package/dist/models/FrontendCartResource.d.ts +18 -0
- package/dist/models/FrontendCartResource.js +12 -0
- package/dist/models/OrderFulfillmentResource.d.ts +2 -2
- package/dist/models/OrderFulfillmentResource.js +6 -2
- package/dist/models/OrderStatusWithCountResource.d.ts +12 -0
- package/dist/models/OrderStatusWithCountResource.js +8 -0
- package/dist/models/PaginatedProductClassLiteResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductClassLiteResourceResponse.js +57 -0
- package/dist/models/ProductClassLiteResource.d.ts +44 -0
- package/dist/models/ProductClassLiteResource.js +57 -0
- package/dist/models/ProductClassLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductClassLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductClassResource.d.ts +2 -2
- package/dist/models/SearchAllOrdersRequest.d.ts +6 -0
- package/dist/models/SearchAllOrdersRequest.js +2 -0
- package/dist/models/SearchAllProductClassesRequest.d.ts +78 -0
- package/dist/models/SearchAllProductClassesRequest.js +74 -0
- package/dist/models/SearchOrdersRequest.d.ts +6 -0
- package/dist/models/SearchOrdersRequest.js +2 -0
- package/dist/models/StoreFrontendResource.d.ts +2 -2
- package/dist/models/StoreFrontendResource.js +4 -4
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +1 -3
- package/dist/models/SupplierFrontendResource.d.ts +6 -0
- package/dist/models/SupplierFrontendResource.js +4 -0
- package/dist/models/SupplierResource.d.ts +6 -0
- package/dist/models/SupplierResource.js +4 -0
- package/dist/models/UpdatePageComponentRequest.d.ts +4 -4
- package/dist/models/UpdatePageComponentRequest.js +4 -4
- package/dist/models/UpdateSupplierRequest.d.ts +6 -0
- package/dist/models/UpdateSupplierRequest.js +2 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/docs/CartListResource.md +2 -0
- package/docs/CreatePageComponentRequest.md +2 -2
- package/docs/CreateSupplierRequest.md +2 -0
- package/docs/CustomersApi.md +1 -1
- package/docs/FrontendCartResource.md +6 -0
- package/docs/OrderStatusWithCountResource.md +4 -0
- package/docs/PaginatedProductClassLiteResourceResponse.md +36 -0
- package/docs/ProductClassApi.md +74 -0
- package/docs/ProductClassLiteResource.md +38 -0
- package/docs/ProductClassLiteResourceArrayResponse.md +34 -0
- package/docs/ProductClassResource.md +1 -1
- package/docs/SearchAllOrdersRequest.md +2 -0
- package/docs/SearchAllProductClassesRequest.md +44 -0
- package/docs/SearchOrdersRequest.md +2 -0
- package/docs/SupplierFrontendResource.md +2 -0
- package/docs/SupplierResource.md +2 -0
- package/docs/UpdatePageComponentRequest.md +2 -2
- package/docs/UpdateSupplierRequest.md +2 -0
- package/package.json +1 -1
- package/src/apis/ProductClassApi.ts +76 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/CartListResource.ts +9 -0
- package/src/models/CategoryAutomationFieldType.ts +3 -1
- package/src/models/CreatePageComponentRequest.ts +8 -8
- package/src/models/CreateProductCategoryRequestAutomationRulesInner.ts +3 -1
- package/src/models/CreateSupplierRequest.ts +8 -0
- package/src/models/FrontendCartResource.ts +27 -0
- package/src/models/OrderFulfillmentResource.ts +6 -4
- package/src/models/OrderStatusWithCountResource.ts +18 -0
- package/src/models/PaginatedProductClassLiteResourceResponse.ts +90 -0
- package/src/models/ProductClassLiteResource.ts +83 -0
- package/src/models/ProductClassLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductClassResource.ts +2 -2
- package/src/models/SearchAllOrdersRequest.ts +8 -0
- package/src/models/SearchAllProductClassesRequest.ts +125 -0
- package/src/models/SearchOrdersRequest.ts +8 -0
- package/src/models/StoreFrontendResource.ts +5 -5
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/StoreResource.ts +2 -3
- package/src/models/SupplierFrontendResource.ts +9 -0
- package/src/models/SupplierResource.ts +9 -0
- package/src/models/UpdatePageComponentRequest.ts +8 -8
- package/src/models/UpdateSupplierRequest.ts +8 -0
- package/src/models/index.ts +4 -0
|
@@ -34,6 +34,8 @@ function instanceOfSupplierFrontendResource(value) {
|
|
|
34
34
|
return false;
|
|
35
35
|
if (!('supplierEta' in value) || value['supplierEta'] === undefined)
|
|
36
36
|
return false;
|
|
37
|
+
if (!('productEnquiriesOnly' in value) || value['productEnquiriesOnly'] === undefined)
|
|
38
|
+
return false;
|
|
37
39
|
if (!('seo' in value) || value['seo'] === undefined)
|
|
38
40
|
return false;
|
|
39
41
|
if (!('description' in value) || value['description'] === undefined)
|
|
@@ -53,6 +55,7 @@ function SupplierFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
55
|
'slug': json['slug'],
|
|
54
56
|
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['thumbnail']),
|
|
55
57
|
'supplierEta': json['supplierEta'],
|
|
58
|
+
'productEnquiriesOnly': json['productEnquiriesOnly'],
|
|
56
59
|
'seo': json['seo'],
|
|
57
60
|
'description': (0, DescriptionResource_1.DescriptionResourceFromJSON)(json['description']),
|
|
58
61
|
};
|
|
@@ -71,6 +74,7 @@ function SupplierFrontendResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
71
74
|
'slug': value['slug'],
|
|
72
75
|
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['thumbnail']),
|
|
73
76
|
'supplierEta': value['supplierEta'],
|
|
77
|
+
'productEnquiriesOnly': value['productEnquiriesOnly'],
|
|
74
78
|
'seo': value['seo'],
|
|
75
79
|
'description': (0, DescriptionResource_1.DescriptionResourceToJSON)(value['description']),
|
|
76
80
|
};
|
|
@@ -35,6 +35,8 @@ function instanceOfSupplierResource(value) {
|
|
|
35
35
|
return false;
|
|
36
36
|
if (!('supplierEta' in value) || value['supplierEta'] === undefined)
|
|
37
37
|
return false;
|
|
38
|
+
if (!('productEnquiriesOnly' in value) || value['productEnquiriesOnly'] === undefined)
|
|
39
|
+
return false;
|
|
38
40
|
if (!('seo' in value) || value['seo'] === undefined)
|
|
39
41
|
return false;
|
|
40
42
|
if (!('descriptions' in value) || value['descriptions'] === undefined)
|
|
@@ -54,6 +56,7 @@ function SupplierResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
56
|
'slug': json['slug'],
|
|
55
57
|
'thumbnail': (0, AssetResource_1.AssetResourceFromJSON)(json['thumbnail']),
|
|
56
58
|
'supplierEta': json['supplierEta'],
|
|
59
|
+
'productEnquiriesOnly': json['productEnquiriesOnly'],
|
|
57
60
|
'seo': (json['seo'] == null ? null : json['seo'].map(SEOResource_1.SEOResourceFromJSON)),
|
|
58
61
|
'descriptions': (json['descriptions'] == null ? null : json['descriptions'].map(DescriptionResource_1.DescriptionResourceFromJSON)),
|
|
59
62
|
};
|
|
@@ -72,6 +75,7 @@ function SupplierResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
72
75
|
'slug': value['slug'],
|
|
73
76
|
'thumbnail': (0, AssetResource_1.AssetResourceToJSON)(value['thumbnail']),
|
|
74
77
|
'supplierEta': value['supplierEta'],
|
|
78
|
+
'productEnquiriesOnly': value['productEnquiriesOnly'],
|
|
75
79
|
'seo': (value['seo'] == null ? null : value['seo'].map(SEOResource_1.SEOResourceToJSON)),
|
|
76
80
|
'descriptions': (value['descriptions'] == null ? null : value['descriptions'].map(DescriptionResource_1.DescriptionResourceToJSON)),
|
|
77
81
|
};
|
|
@@ -36,16 +36,16 @@ export interface UpdatePageComponentRequest {
|
|
|
36
36
|
order?: number;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
|
-
* @type {
|
|
39
|
+
* @type {string}
|
|
40
40
|
* @memberof UpdatePageComponentRequest
|
|
41
41
|
*/
|
|
42
|
-
startDate?:
|
|
42
|
+
startDate?: string | null;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
|
-
* @type {
|
|
45
|
+
* @type {string}
|
|
46
46
|
* @memberof UpdatePageComponentRequest
|
|
47
47
|
*/
|
|
48
|
-
endDate?:
|
|
48
|
+
endDate?: string | null;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
51
|
* @type {object}
|
|
@@ -38,8 +38,8 @@ function UpdatePageComponentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
'type': json['type'],
|
|
39
39
|
'disabled': json['disabled'] == null ? undefined : json['disabled'],
|
|
40
40
|
'order': json['order'] == null ? undefined : json['order'],
|
|
41
|
-
'startDate': json['start_date'] == null ? undefined :
|
|
42
|
-
'endDate': json['end_date'] == null ? undefined :
|
|
41
|
+
'startDate': json['start_date'] == null ? undefined : json['start_date'],
|
|
42
|
+
'endDate': json['end_date'] == null ? undefined : json['end_date'],
|
|
43
43
|
'componentData': json['component_data'] == null ? undefined : json['component_data'],
|
|
44
44
|
'relations': json['relations'] == null ? undefined : (json['relations'].map(CreatePageComponentRequestRelationsInner_1.CreatePageComponentRequestRelationsInnerFromJSON)),
|
|
45
45
|
};
|
|
@@ -56,8 +56,8 @@ function UpdatePageComponentRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
56
56
|
'type': value['type'],
|
|
57
57
|
'disabled': value['disabled'],
|
|
58
58
|
'order': value['order'],
|
|
59
|
-
'start_date': value['startDate']
|
|
60
|
-
'end_date': value['endDate']
|
|
59
|
+
'start_date': value['startDate'],
|
|
60
|
+
'end_date': value['endDate'],
|
|
61
61
|
'component_data': value['componentData'],
|
|
62
62
|
'relations': value['relations'] == null ? undefined : (value['relations'].map(CreatePageComponentRequestRelationsInner_1.CreatePageComponentRequestRelationsInnerToJSON)),
|
|
63
63
|
};
|
|
@@ -35,6 +35,12 @@ export interface UpdateSupplierRequest {
|
|
|
35
35
|
* @memberof UpdateSupplierRequest
|
|
36
36
|
*/
|
|
37
37
|
supplierEta: number;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
* @memberof UpdateSupplierRequest
|
|
42
|
+
*/
|
|
43
|
+
productEnquiriesOnly?: boolean;
|
|
38
44
|
/**
|
|
39
45
|
*
|
|
40
46
|
* @type {Array<CreateBlogCategoryRequestSeoInner>}
|
|
@@ -47,6 +47,7 @@ function UpdateSupplierRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
47
|
'name': json['name'],
|
|
48
48
|
'slug': json['slug'],
|
|
49
49
|
'supplierEta': json['supplier_eta'],
|
|
50
|
+
'productEnquiriesOnly': json['product_enquiries_only'] == null ? undefined : json['product_enquiries_only'],
|
|
50
51
|
'seo': (json['seo'].map(CreateBlogCategoryRequestSeoInner_1.CreateBlogCategoryRequestSeoInnerFromJSON)),
|
|
51
52
|
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
52
53
|
'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
|
|
@@ -68,6 +69,7 @@ function UpdateSupplierRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
68
69
|
'name': value['name'],
|
|
69
70
|
'slug': value['slug'],
|
|
70
71
|
'supplier_eta': value['supplierEta'],
|
|
72
|
+
'product_enquiries_only': value['productEnquiriesOnly'],
|
|
71
73
|
'seo': (value['seo'].map(CreateBlogCategoryRequestSeoInner_1.CreateBlogCategoryRequestSeoInnerToJSON)),
|
|
72
74
|
'alt_text': value['altText'],
|
|
73
75
|
'mime_type': value['mimeType'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -341,6 +341,7 @@ export * from './PaginatedProductChildLiteResourceResponse';
|
|
|
341
341
|
export * from './PaginatedProductChildOverlayRelationResourceResponse';
|
|
342
342
|
export * from './PaginatedProductChildRelationResourceResponse';
|
|
343
343
|
export * from './PaginatedProductChildResourceResponse';
|
|
344
|
+
export * from './PaginatedProductClassLiteResourceResponse';
|
|
344
345
|
export * from './PaginatedProductListResourceResponse';
|
|
345
346
|
export * from './PaginatedProductLiteResourceResponse';
|
|
346
347
|
export * from './PaginatedProductRangeFrontendListResourceResponse';
|
|
@@ -425,6 +426,8 @@ export * from './ProductChildSiteDetailLiteResource';
|
|
|
425
426
|
export * from './ProductChildSiteDetailLiteResourceArrayResponse';
|
|
426
427
|
export * from './ProductChildSiteDetailResource';
|
|
427
428
|
export * from './ProductChildSiteDetailResourceArrayResponse';
|
|
429
|
+
export * from './ProductClassLiteResource';
|
|
430
|
+
export * from './ProductClassLiteResourceArrayResponse';
|
|
428
431
|
export * from './ProductClassResource';
|
|
429
432
|
export * from './ProductClassResourceArrayResponse';
|
|
430
433
|
export * from './ProductCompareResource';
|
|
@@ -539,6 +542,7 @@ export * from './SearchAllPagesRequest';
|
|
|
539
542
|
export * from './SearchAllPermissionsRequest';
|
|
540
543
|
export * from './SearchAllProductCategoriesRequest';
|
|
541
544
|
export * from './SearchAllProductChildrenRequest';
|
|
545
|
+
export * from './SearchAllProductClassesRequest';
|
|
542
546
|
export * from './SearchAllProductRangesRequest';
|
|
543
547
|
export * from './SearchAllProductRegistrationsRequest';
|
|
544
548
|
export * from './SearchAllProductTypesRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -359,6 +359,7 @@ __exportStar(require("./PaginatedProductChildLiteResourceResponse"), exports);
|
|
|
359
359
|
__exportStar(require("./PaginatedProductChildOverlayRelationResourceResponse"), exports);
|
|
360
360
|
__exportStar(require("./PaginatedProductChildRelationResourceResponse"), exports);
|
|
361
361
|
__exportStar(require("./PaginatedProductChildResourceResponse"), exports);
|
|
362
|
+
__exportStar(require("./PaginatedProductClassLiteResourceResponse"), exports);
|
|
362
363
|
__exportStar(require("./PaginatedProductListResourceResponse"), exports);
|
|
363
364
|
__exportStar(require("./PaginatedProductLiteResourceResponse"), exports);
|
|
364
365
|
__exportStar(require("./PaginatedProductRangeFrontendListResourceResponse"), exports);
|
|
@@ -443,6 +444,8 @@ __exportStar(require("./ProductChildSiteDetailLiteResource"), exports);
|
|
|
443
444
|
__exportStar(require("./ProductChildSiteDetailLiteResourceArrayResponse"), exports);
|
|
444
445
|
__exportStar(require("./ProductChildSiteDetailResource"), exports);
|
|
445
446
|
__exportStar(require("./ProductChildSiteDetailResourceArrayResponse"), exports);
|
|
447
|
+
__exportStar(require("./ProductClassLiteResource"), exports);
|
|
448
|
+
__exportStar(require("./ProductClassLiteResourceArrayResponse"), exports);
|
|
446
449
|
__exportStar(require("./ProductClassResource"), exports);
|
|
447
450
|
__exportStar(require("./ProductClassResourceArrayResponse"), exports);
|
|
448
451
|
__exportStar(require("./ProductCompareResource"), exports);
|
|
@@ -557,6 +560,7 @@ __exportStar(require("./SearchAllPagesRequest"), exports);
|
|
|
557
560
|
__exportStar(require("./SearchAllPermissionsRequest"), exports);
|
|
558
561
|
__exportStar(require("./SearchAllProductCategoriesRequest"), exports);
|
|
559
562
|
__exportStar(require("./SearchAllProductChildrenRequest"), exports);
|
|
563
|
+
__exportStar(require("./SearchAllProductClassesRequest"), exports);
|
|
560
564
|
__exportStar(require("./SearchAllProductRangesRequest"), exports);
|
|
561
565
|
__exportStar(require("./SearchAllProductRegistrationsRequest"), exports);
|
|
562
566
|
__exportStar(require("./SearchAllProductTypesRequest"), exports);
|
package/docs/CartListResource.md
CHANGED
|
@@ -11,6 +11,7 @@ Name | Type
|
|
|
11
11
|
`source` | string
|
|
12
12
|
`checkoutCompletedAt` | Date
|
|
13
13
|
`createdAt` | Date
|
|
14
|
+
`expiryDate` | Date
|
|
14
15
|
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
15
16
|
`customer` | [CustomerListResource](CustomerListResource.md)
|
|
16
17
|
`lineItems` | [Array<LineItemListResource>](LineItemListResource.md)
|
|
@@ -29,6 +30,7 @@ const example = {
|
|
|
29
30
|
"source": null,
|
|
30
31
|
"checkoutCompletedAt": null,
|
|
31
32
|
"createdAt": null,
|
|
33
|
+
"expiryDate": null,
|
|
32
34
|
"site": null,
|
|
33
35
|
"customer": null,
|
|
34
36
|
"lineItems": null,
|
|
@@ -11,8 +11,8 @@ Name | Type
|
|
|
11
11
|
`type` | string
|
|
12
12
|
`disabled` | boolean
|
|
13
13
|
`order` | number
|
|
14
|
-
`startDate` |
|
|
15
|
-
`endDate` |
|
|
14
|
+
`startDate` | string
|
|
15
|
+
`endDate` | string
|
|
16
16
|
`componentData` | object
|
|
17
17
|
`relations` | [Array<CreatePageComponentRequestRelationsInner>](CreatePageComponentRequestRelationsInner.md)
|
|
18
18
|
|
|
@@ -9,6 +9,7 @@ Name | Type
|
|
|
9
9
|
`name` | string
|
|
10
10
|
`slug` | string
|
|
11
11
|
`supplierEta` | number
|
|
12
|
+
`productEnquiriesOnly` | boolean
|
|
12
13
|
`seo` | [Array<CreateBlogCategoryRequestSeoInner>](CreateBlogCategoryRequestSeoInner.md)
|
|
13
14
|
`altText` | string
|
|
14
15
|
`mimeType` | string
|
|
@@ -27,6 +28,7 @@ const example = {
|
|
|
27
28
|
"name": null,
|
|
28
29
|
"slug": null,
|
|
29
30
|
"supplierEta": null,
|
|
31
|
+
"productEnquiriesOnly": null,
|
|
30
32
|
"seo": null,
|
|
31
33
|
"altText": null,
|
|
32
34
|
"mimeType": null,
|
package/docs/CustomersApi.md
CHANGED
|
@@ -76,7 +76,7 @@ No authorization required
|
|
|
76
76
|
### HTTP response details
|
|
77
77
|
| Status code | Description | Response headers |
|
|
78
78
|
|-------------|-------------|------------------|
|
|
79
|
-
| **200** |
|
|
79
|
+
| **200** | \\JsonResponse<array{message: string}> | - |
|
|
80
80
|
|
|
81
81
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
82
82
|
|
|
@@ -18,11 +18,14 @@ Name | Type
|
|
|
18
18
|
`lineItems` | [Array<FrontendLineItemResource>](FrontendLineItemResource.md)
|
|
19
19
|
`coupons` | [Array<FrontendCartResourceCouponsInner>](FrontendCartResourceCouponsInner.md)
|
|
20
20
|
`subtotal` | number
|
|
21
|
+
`subtotalAfterDiscounts` | number
|
|
21
22
|
`promotionalDiscount` | number
|
|
22
23
|
`couponSubtotalDiscount` | number
|
|
23
24
|
`couponShippingDiscount` | number
|
|
24
25
|
`shipping` | number
|
|
25
26
|
`transitInsurance` | number
|
|
27
|
+
`deliveryShippingQuote` | number
|
|
28
|
+
`transitInsuranceQuote` | number
|
|
26
29
|
`gst` | number
|
|
27
30
|
`grandTotal` | number
|
|
28
31
|
|
|
@@ -45,11 +48,14 @@ const example = {
|
|
|
45
48
|
"lineItems": null,
|
|
46
49
|
"coupons": null,
|
|
47
50
|
"subtotal": null,
|
|
51
|
+
"subtotalAfterDiscounts": null,
|
|
48
52
|
"promotionalDiscount": null,
|
|
49
53
|
"couponSubtotalDiscount": null,
|
|
50
54
|
"couponShippingDiscount": null,
|
|
51
55
|
"shipping": null,
|
|
52
56
|
"transitInsurance": null,
|
|
57
|
+
"deliveryShippingQuote": null,
|
|
58
|
+
"transitInsuranceQuote": null,
|
|
53
59
|
"gst": null,
|
|
54
60
|
"grandTotal": null,
|
|
55
61
|
} satisfies FrontendCartResource
|
|
@@ -8,6 +8,8 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`id` | number
|
|
10
10
|
`name` | string
|
|
11
|
+
`shortName` | string
|
|
12
|
+
`displayOrder` | number
|
|
11
13
|
`isOrderNetsuiteSyncable` | boolean
|
|
12
14
|
`ordersCount` | number
|
|
13
15
|
|
|
@@ -20,6 +22,8 @@ import type { OrderStatusWithCountResource } from '@digital8/lighting-illusions-
|
|
|
20
22
|
const example = {
|
|
21
23
|
"id": null,
|
|
22
24
|
"name": null,
|
|
25
|
+
"shortName": null,
|
|
26
|
+
"displayOrder": null,
|
|
23
27
|
"isOrderNetsuiteSyncable": null,
|
|
24
28
|
"ordersCount": null,
|
|
25
29
|
} satisfies OrderStatusWithCountResource
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# PaginatedProductClassLiteResourceResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<ProductClassLiteResource>](ProductClassLiteResource.md)
|
|
10
|
+
`meta` | [PagingMetadata](PagingMetadata.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { PaginatedProductClassLiteResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"data": null,
|
|
20
|
+
"meta": null,
|
|
21
|
+
} satisfies PaginatedProductClassLiteResourceResponse
|
|
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 PaginatedProductClassLiteResourceResponse
|
|
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
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# ProductClassApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost/api*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**getAllProductClass**](ProductClassApi.md#getallproductclass) | **POST** /admin-api/product-class/all | Auto-generated: getAllProductClass |
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## getAllProductClass
|
|
12
|
+
|
|
13
|
+
> ProductClassLiteResourceArrayResponse getAllProductClass(searchAllProductClassesRequest)
|
|
14
|
+
|
|
15
|
+
Auto-generated: getAllProductClass
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
import {
|
|
21
|
+
Configuration,
|
|
22
|
+
ProductClassApi,
|
|
23
|
+
} from '@digital8/lighting-illusions-ts-sdk';
|
|
24
|
+
import type { GetAllProductClassRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
25
|
+
|
|
26
|
+
async function example() {
|
|
27
|
+
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
28
|
+
const api = new ProductClassApi();
|
|
29
|
+
|
|
30
|
+
const body = {
|
|
31
|
+
// SearchAllProductClassesRequest (optional)
|
|
32
|
+
searchAllProductClassesRequest: ...,
|
|
33
|
+
} satisfies GetAllProductClassRequest;
|
|
34
|
+
|
|
35
|
+
try {
|
|
36
|
+
const data = await api.getAllProductClass(body);
|
|
37
|
+
console.log(data);
|
|
38
|
+
} catch (error) {
|
|
39
|
+
console.error(error);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Run the test
|
|
44
|
+
example().catch(console.error);
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Parameters
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
| Name | Type | Description | Notes |
|
|
51
|
+
|------------- | ------------- | ------------- | -------------|
|
|
52
|
+
| **searchAllProductClassesRequest** | [SearchAllProductClassesRequest](SearchAllProductClassesRequest.md) | | [Optional] |
|
|
53
|
+
|
|
54
|
+
### Return type
|
|
55
|
+
|
|
56
|
+
[**ProductClassLiteResourceArrayResponse**](ProductClassLiteResourceArrayResponse.md)
|
|
57
|
+
|
|
58
|
+
### Authorization
|
|
59
|
+
|
|
60
|
+
No authorization required
|
|
61
|
+
|
|
62
|
+
### HTTP request headers
|
|
63
|
+
|
|
64
|
+
- **Content-Type**: `application/json`
|
|
65
|
+
- **Accept**: `application/json`
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
### HTTP response details
|
|
69
|
+
| Status code | Description | Response headers |
|
|
70
|
+
|-------------|-------------|------------------|
|
|
71
|
+
| **200** | Successful resource response | - |
|
|
72
|
+
|
|
73
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
74
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# ProductClassLiteResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`name` | string
|
|
11
|
+
`pathString` | string
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { ProductClassLiteResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"id": null,
|
|
21
|
+
"name": null,
|
|
22
|
+
"pathString": null,
|
|
23
|
+
} satisfies ProductClassLiteResource
|
|
24
|
+
|
|
25
|
+
console.log(example)
|
|
26
|
+
|
|
27
|
+
// Convert the instance to a JSON string
|
|
28
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
+
console.log(exampleJSON)
|
|
30
|
+
|
|
31
|
+
// Parse the JSON string back to an object
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProductClassLiteResource
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
+
|
|
38
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# ProductClassLiteResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<ProductClassLiteResource>](ProductClassLiteResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { ProductClassLiteResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies ProductClassLiteResourceArrayResponse
|
|
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 ProductClassLiteResourceArrayResponse
|
|
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
|
+
|
|
@@ -16,6 +16,7 @@ Name | Type
|
|
|
16
16
|
`source` | Array<string>
|
|
17
17
|
`statusId` | Array<string>
|
|
18
18
|
`customerId` | Array<string>
|
|
19
|
+
`lineItemsLabelId` | Array<string>
|
|
19
20
|
|
|
20
21
|
## Example
|
|
21
22
|
|
|
@@ -34,6 +35,7 @@ const example = {
|
|
|
34
35
|
"source": null,
|
|
35
36
|
"statusId": null,
|
|
36
37
|
"customerId": null,
|
|
38
|
+
"lineItemsLabelId": null,
|
|
37
39
|
} satisfies SearchAllOrdersRequest
|
|
38
40
|
|
|
39
41
|
console.log(example)
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
# SearchAllProductClassesRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`search` | string
|
|
10
|
+
`sortBy` | string
|
|
11
|
+
`sortDirection` | string
|
|
12
|
+
`relatedId` | number
|
|
13
|
+
`relatedType` | string
|
|
14
|
+
`includesRelations` | boolean
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { SearchAllProductClassesRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"search": null,
|
|
24
|
+
"sortBy": null,
|
|
25
|
+
"sortDirection": null,
|
|
26
|
+
"relatedId": null,
|
|
27
|
+
"relatedType": null,
|
|
28
|
+
"includesRelations": null,
|
|
29
|
+
} satisfies SearchAllProductClassesRequest
|
|
30
|
+
|
|
31
|
+
console.log(example)
|
|
32
|
+
|
|
33
|
+
// Convert the instance to a JSON string
|
|
34
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
35
|
+
console.log(exampleJSON)
|
|
36
|
+
|
|
37
|
+
// Parse the JSON string back to an object
|
|
38
|
+
const exampleParsed = JSON.parse(exampleJSON) as SearchAllProductClassesRequest
|
|
39
|
+
console.log(exampleParsed)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
43
|
+
|
|
44
|
+
|
|
@@ -15,6 +15,7 @@ Name | Type
|
|
|
15
15
|
`source` | Array<string>
|
|
16
16
|
`statusId` | Array<string>
|
|
17
17
|
`customerId` | Array<string>
|
|
18
|
+
`lineItemsLabelId` | Array<string>
|
|
18
19
|
`beforeCreatedAt` | Date
|
|
19
20
|
`afterCreatedAt` | Date
|
|
20
21
|
`beforePlacedAt` | Date
|
|
@@ -41,6 +42,7 @@ const example = {
|
|
|
41
42
|
"source": null,
|
|
42
43
|
"statusId": null,
|
|
43
44
|
"customerId": null,
|
|
45
|
+
"lineItemsLabelId": null,
|
|
44
46
|
"beforeCreatedAt": null,
|
|
45
47
|
"afterCreatedAt": null,
|
|
46
48
|
"beforePlacedAt": null,
|
|
@@ -11,6 +11,7 @@ Name | Type
|
|
|
11
11
|
`slug` | string
|
|
12
12
|
`thumbnail` | [AssetLiteResource](AssetLiteResource.md)
|
|
13
13
|
`supplierEta` | number
|
|
14
|
+
`productEnquiriesOnly` | boolean
|
|
14
15
|
`seo` | object
|
|
15
16
|
`description` | [DescriptionResource](DescriptionResource.md)
|
|
16
17
|
|
|
@@ -26,6 +27,7 @@ const example = {
|
|
|
26
27
|
"slug": null,
|
|
27
28
|
"thumbnail": null,
|
|
28
29
|
"supplierEta": null,
|
|
30
|
+
"productEnquiriesOnly": null,
|
|
29
31
|
"seo": null,
|
|
30
32
|
"description": null,
|
|
31
33
|
} satisfies SupplierFrontendResource
|
package/docs/SupplierResource.md
CHANGED
|
@@ -11,6 +11,7 @@ Name | Type
|
|
|
11
11
|
`slug` | string
|
|
12
12
|
`thumbnail` | [AssetResource](AssetResource.md)
|
|
13
13
|
`supplierEta` | number
|
|
14
|
+
`productEnquiriesOnly` | boolean
|
|
14
15
|
`seo` | [Array<SEOResource>](SEOResource.md)
|
|
15
16
|
`descriptions` | [Array<DescriptionResource>](DescriptionResource.md)
|
|
16
17
|
|
|
@@ -26,6 +27,7 @@ const example = {
|
|
|
26
27
|
"slug": null,
|
|
27
28
|
"thumbnail": null,
|
|
28
29
|
"supplierEta": null,
|
|
30
|
+
"productEnquiriesOnly": null,
|
|
29
31
|
"seo": null,
|
|
30
32
|
"descriptions": null,
|
|
31
33
|
} satisfies SupplierResource
|
|
@@ -9,8 +9,8 @@ Name | Type
|
|
|
9
9
|
`type` | string
|
|
10
10
|
`disabled` | boolean
|
|
11
11
|
`order` | number
|
|
12
|
-
`startDate` |
|
|
13
|
-
`endDate` |
|
|
12
|
+
`startDate` | string
|
|
13
|
+
`endDate` | string
|
|
14
14
|
`componentData` | object
|
|
15
15
|
`relations` | [Array<CreatePageComponentRequestRelationsInner>](CreatePageComponentRequestRelationsInner.md)
|
|
16
16
|
|
|
@@ -9,6 +9,7 @@ Name | Type
|
|
|
9
9
|
`name` | string
|
|
10
10
|
`slug` | string
|
|
11
11
|
`supplierEta` | number
|
|
12
|
+
`productEnquiriesOnly` | boolean
|
|
12
13
|
`seo` | [Array<CreateBlogCategoryRequestSeoInner>](CreateBlogCategoryRequestSeoInner.md)
|
|
13
14
|
`altText` | string
|
|
14
15
|
`mimeType` | string
|
|
@@ -27,6 +28,7 @@ const example = {
|
|
|
27
28
|
"name": null,
|
|
28
29
|
"slug": null,
|
|
29
30
|
"supplierEta": null,
|
|
31
|
+
"productEnquiriesOnly": null,
|
|
30
32
|
"seo": null,
|
|
31
33
|
"altText": null,
|
|
32
34
|
"mimeType": null,
|