@digital8/lighting-illusions-ts-sdk 0.0.2140 → 0.0.2142
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 +18 -0
- package/README.md +12 -2
- package/dist/apis/OrdersApi.d.ts +15 -0
- package/dist/apis/OrdersApi.js +59 -0
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/AdminOrderLineItemResource.d.ts +1 -8
- package/dist/models/AdminOrderLineItemResource.js +1 -8
- 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/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- 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 +141 -0
- package/dist/models/FrontendOrderResourceArrayResponse.d.ts +33 -0
- package/dist/models/FrontendOrderResourceArrayResponse.js +50 -0
- package/dist/models/OrderFulfillmentResource.d.ts +1 -1
- package/dist/models/OrderFulfillmentResource.js +3 -1
- package/dist/models/OrderListResource.d.ts +2 -8
- package/dist/models/OrderListResource.js +3 -7
- package/dist/models/PaymentSource.d.ts +1 -0
- package/dist/models/PaymentSource.js +2 -1
- package/dist/models/ProductChildFrontendResource.d.ts +3 -2
- package/dist/models/ProductChildFrontendResource.js +3 -2
- package/dist/models/ProductChildLineItemLiteResource.d.ts +18 -0
- package/dist/models/ProductChildLineItemLiteResource.js +12 -0
- package/dist/models/ProductChildListResource.d.ts +3 -2
- package/dist/models/ProductChildListResource.js +3 -2
- package/dist/models/ProductChildOverlayRelationResource.d.ts +3 -2
- package/dist/models/ProductChildOverlayRelationResource.js +3 -2
- package/dist/models/SearchAllProductChildrenRequest.d.ts +0 -6
- package/dist/models/SearchAllProductChildrenRequest.js +0 -2
- package/dist/models/SearchProductChildrenRequest.d.ts +0 -6
- package/dist/models/SearchProductChildrenRequest.js +0 -2
- package/dist/models/StoreFrontendResource.d.ts +2 -2
- package/dist/models/StoreFrontendResource.js +4 -4
- package/dist/models/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +2 -6
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +1 -3
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/docs/AdminOrderLineItemResource.md +0 -2
- package/docs/CartCouponLiteResource.md +42 -0
- package/docs/CartCouponLiteResourceArrayResponse.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/OrderListResource.md +2 -4
- package/docs/OrdersApi.md +66 -0
- package/docs/ProductChildFrontendResource.md +1 -1
- package/docs/ProductChildLineItemLiteResource.md +6 -0
- package/docs/ProductChildListResource.md +1 -1
- package/docs/ProductChildOverlayRelationResource.md +1 -1
- package/docs/SearchAllProductChildrenRequest.md +0 -2
- package/docs/SearchProductChildrenRequest.md +0 -2
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/package.json +1 -1
- package/src/apis/OrdersApi.ts +49 -0
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AdminOrderLineItemResource.ts +2 -19
- package/src/models/CartCouponLiteResource.ts +102 -0
- package/src/models/CartCouponLiteResourceArrayResponse.ts +73 -0
- package/src/models/ExternalApiLogResource.ts +2 -3
- 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 +299 -0
- package/src/models/FrontendOrderResourceArrayResponse.ts +73 -0
- package/src/models/OrderFulfillmentResource.ts +3 -2
- package/src/models/OrderListResource.ts +5 -14
- package/src/models/PaymentSource.ts +2 -1
- package/src/models/ProductChildFrontendResource.ts +11 -4
- package/src/models/ProductChildLineItemLiteResource.ts +27 -0
- package/src/models/ProductChildListResource.ts +11 -4
- package/src/models/ProductChildOverlayRelationResource.ts +11 -4
- package/src/models/SearchAllProductChildrenRequest.ts +0 -8
- package/src/models/SearchProductChildrenRequest.ts +0 -8
- package/src/models/StoreFrontendResource.ts +5 -5
- package/src/models/StoreListResource.ts +4 -6
- package/src/models/StoreResource.ts +2 -3
- package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
- package/src/models/index.ts +9 -0
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { AssetLiteResource } from './AssetLiteResource';
|
|
13
|
+
import type { ProductChildSiteDetailLiteResource } from './ProductChildSiteDetailLiteResource';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -78,10 +79,10 @@ export interface ProductChildOverlayRelationResource {
|
|
|
78
79
|
thumbnail: AssetLiteResource | null;
|
|
79
80
|
/**
|
|
80
81
|
*
|
|
81
|
-
* @type {
|
|
82
|
+
* @type {Array<ProductChildSiteDetailLiteResource>}
|
|
82
83
|
* @memberof ProductChildOverlayRelationResource
|
|
83
84
|
*/
|
|
84
|
-
siteDetails:
|
|
85
|
+
siteDetails: Array<ProductChildSiteDetailLiteResource> | null;
|
|
85
86
|
/**
|
|
86
87
|
*
|
|
87
88
|
* @type {number}
|
|
@@ -19,6 +19,7 @@ exports.ProductChildOverlayRelationResourceFromJSONTyped = ProductChildOverlayRe
|
|
|
19
19
|
exports.ProductChildOverlayRelationResourceToJSON = ProductChildOverlayRelationResourceToJSON;
|
|
20
20
|
exports.ProductChildOverlayRelationResourceToJSONTyped = ProductChildOverlayRelationResourceToJSONTyped;
|
|
21
21
|
var AssetLiteResource_1 = require("./AssetLiteResource");
|
|
22
|
+
var ProductChildSiteDetailLiteResource_1 = require("./ProductChildSiteDetailLiteResource");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the ProductChildOverlayRelationResource interface.
|
|
24
25
|
*/
|
|
@@ -63,7 +64,7 @@ function ProductChildOverlayRelationResourceFromJSONTyped(json, ignoreDiscrimina
|
|
|
63
64
|
'displayInSocialFeed': json['displayInSocialFeed'],
|
|
64
65
|
'netsuiteId': json['netsuiteId'],
|
|
65
66
|
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['thumbnail']),
|
|
66
|
-
'siteDetails': json['siteDetails'],
|
|
67
|
+
'siteDetails': (json['siteDetails'] == null ? null : json['siteDetails'].map(ProductChildSiteDetailLiteResource_1.ProductChildSiteDetailLiteResourceFromJSON)),
|
|
67
68
|
'numberAttached': json['numberAttached'],
|
|
68
69
|
};
|
|
69
70
|
}
|
|
@@ -86,7 +87,7 @@ function ProductChildOverlayRelationResourceToJSONTyped(value, ignoreDiscriminat
|
|
|
86
87
|
'displayInSocialFeed': value['displayInSocialFeed'],
|
|
87
88
|
'netsuiteId': value['netsuiteId'],
|
|
88
89
|
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['thumbnail']),
|
|
89
|
-
'siteDetails': value['siteDetails'],
|
|
90
|
+
'siteDetails': (value['siteDetails'] == null ? null : value['siteDetails'].map(ProductChildSiteDetailLiteResource_1.ProductChildSiteDetailLiteResourceToJSON)),
|
|
90
91
|
'numberAttached': value['numberAttached'],
|
|
91
92
|
};
|
|
92
93
|
}
|
|
@@ -123,12 +123,6 @@ export interface SearchAllProductChildrenRequest {
|
|
|
123
123
|
* @memberof SearchAllProductChildrenRequest
|
|
124
124
|
*/
|
|
125
125
|
siteDetailsSeoHasSeoDescription?: Array<string>;
|
|
126
|
-
/**
|
|
127
|
-
*
|
|
128
|
-
* @type {number}
|
|
129
|
-
* @memberof SearchAllProductChildrenRequest
|
|
130
|
-
*/
|
|
131
|
-
siteId?: number;
|
|
132
126
|
}
|
|
133
127
|
/**
|
|
134
128
|
* @export
|
|
@@ -85,7 +85,6 @@ function SearchAllProductChildrenRequestFromJSONTyped(json, ignoreDiscriminator)
|
|
|
85
85
|
'enabledSitesId': json['enabledSites-id'] == null ? undefined : json['enabledSites-id'],
|
|
86
86
|
'siteDetailsSeoHasSeoTitle': json['siteDetailsSeo-has_seo_title'] == null ? undefined : json['siteDetailsSeo-has_seo_title'],
|
|
87
87
|
'siteDetailsSeoHasSeoDescription': json['siteDetailsSeo-has_seo_description'] == null ? undefined : json['siteDetailsSeo-has_seo_description'],
|
|
88
|
-
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
89
88
|
};
|
|
90
89
|
}
|
|
91
90
|
function SearchAllProductChildrenRequestToJSON(json) {
|
|
@@ -115,6 +114,5 @@ function SearchAllProductChildrenRequestToJSONTyped(value, ignoreDiscriminator)
|
|
|
115
114
|
'enabledSites-id': value['enabledSitesId'],
|
|
116
115
|
'siteDetailsSeo-has_seo_title': value['siteDetailsSeoHasSeoTitle'],
|
|
117
116
|
'siteDetailsSeo-has_seo_description': value['siteDetailsSeoHasSeoDescription'],
|
|
118
|
-
'site_id': value['siteId'],
|
|
119
117
|
};
|
|
120
118
|
}
|
|
@@ -135,12 +135,6 @@ export interface SearchProductChildrenRequest {
|
|
|
135
135
|
* @memberof SearchProductChildrenRequest
|
|
136
136
|
*/
|
|
137
137
|
includesRelations?: boolean;
|
|
138
|
-
/**
|
|
139
|
-
*
|
|
140
|
-
* @type {number}
|
|
141
|
-
* @memberof SearchProductChildrenRequest
|
|
142
|
-
*/
|
|
143
|
-
siteId?: number;
|
|
144
138
|
}
|
|
145
139
|
/**
|
|
146
140
|
* @export
|
|
@@ -97,7 +97,6 @@ function SearchProductChildrenRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
97
97
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
98
98
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
99
99
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
100
|
-
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
101
100
|
};
|
|
102
101
|
}
|
|
103
102
|
function SearchProductChildrenRequestToJSON(json) {
|
|
@@ -129,6 +128,5 @@ function SearchProductChildrenRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
129
128
|
'related_id': value['relatedId'],
|
|
130
129
|
'related_type': value['relatedType'],
|
|
131
130
|
'includes_relations': value['includesRelations'],
|
|
132
|
-
'site_id': value['siteId'],
|
|
133
131
|
};
|
|
134
132
|
}
|
|
@@ -44,7 +44,7 @@ export interface StoreFrontendResource {
|
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof StoreFrontendResource
|
|
46
46
|
*/
|
|
47
|
-
website
|
|
47
|
+
website: string;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {string}
|
|
@@ -74,7 +74,7 @@ export interface StoreFrontendResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof StoreFrontendResource
|
|
76
76
|
*/
|
|
77
|
-
tagLine
|
|
77
|
+
tagLine?: string | null;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -28,14 +28,14 @@ function instanceOfStoreFrontendResource(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('email' in value) || value['email'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
+
if (!('website' in value) || value['website'] === undefined)
|
|
32
|
+
return false;
|
|
31
33
|
if (!('phone' in value) || value['phone'] === undefined)
|
|
32
34
|
return false;
|
|
33
35
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
34
36
|
return false;
|
|
35
37
|
if (!('longitude' in value) || value['longitude'] === undefined)
|
|
36
38
|
return false;
|
|
37
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
38
|
-
return false;
|
|
39
39
|
if (!('specialDates' in value) || value['specialDates'] === undefined)
|
|
40
40
|
return false;
|
|
41
41
|
if (!('suppliers' in value) || value['suppliers'] === undefined)
|
|
@@ -54,12 +54,12 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
54
|
'siteId': json['siteId'],
|
|
55
55
|
'name': json['name'],
|
|
56
56
|
'email': json['email'],
|
|
57
|
-
'website': json['website']
|
|
57
|
+
'website': json['website'],
|
|
58
58
|
'phone': json['phone'],
|
|
59
59
|
'address': json['address'] == null ? undefined : json['address'],
|
|
60
60
|
'latitude': json['latitude'],
|
|
61
61
|
'longitude': json['longitude'],
|
|
62
|
-
'tagLine': json['tagLine'],
|
|
62
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
63
63
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
64
64
|
'specialDates': json['specialDates'],
|
|
65
65
|
'suppliers': json['suppliers'],
|
|
@@ -57,7 +57,7 @@ export interface StoreListResource {
|
|
|
57
57
|
* @type {string}
|
|
58
58
|
* @memberof StoreListResource
|
|
59
59
|
*/
|
|
60
|
-
tagLine
|
|
60
|
+
tagLine?: string | null;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
63
|
* @type {string}
|
|
@@ -69,7 +69,7 @@ export interface StoreListResource {
|
|
|
69
69
|
* @type {string}
|
|
70
70
|
* @memberof StoreListResource
|
|
71
71
|
*/
|
|
72
|
-
website
|
|
72
|
+
website?: string | null;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {number}
|
|
@@ -33,12 +33,8 @@ function instanceOfStoreListResource(value) {
|
|
|
33
33
|
return false;
|
|
34
34
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
35
35
|
return false;
|
|
36
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
37
|
-
return false;
|
|
38
36
|
if (!('email' in value) || value['email'] === undefined)
|
|
39
37
|
return false;
|
|
40
|
-
if (!('website' in value) || value['website'] === undefined)
|
|
41
|
-
return false;
|
|
42
38
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
43
39
|
return false;
|
|
44
40
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
|
|
@@ -59,9 +55,9 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
55
|
'phone': json['phone'],
|
|
60
56
|
'longitude': json['longitude'],
|
|
61
57
|
'latitude': json['latitude'],
|
|
62
|
-
'tagLine': json['tagLine'],
|
|
58
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
63
59
|
'email': json['email'],
|
|
64
|
-
'website': json['website'],
|
|
60
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
65
61
|
'netsuiteId': json['netsuiteId'],
|
|
66
62
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
67
63
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -40,8 +40,6 @@ function instanceOfStoreResource(value) {
|
|
|
40
40
|
return false;
|
|
41
41
|
if (!('email' in value) || value['email'] === undefined)
|
|
42
42
|
return false;
|
|
43
|
-
if (!('website' in value) || value['website'] === undefined)
|
|
44
|
-
return false;
|
|
45
43
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
46
44
|
return false;
|
|
47
45
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
|
|
@@ -70,7 +68,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
70
68
|
'latitude': json['latitude'],
|
|
71
69
|
'tagLine': json['tagLine'],
|
|
72
70
|
'email': json['email'],
|
|
73
|
-
'website': json['website'],
|
|
71
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
74
72
|
'netsuiteId': json['netsuiteId'],
|
|
75
73
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
76
74
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -35,10 +35,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
35
35
|
hours: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {object}
|
|
39
39
|
* @memberof StoreSpecialDateFrontendResource
|
|
40
40
|
*/
|
|
41
|
-
date
|
|
41
|
+
date: object;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {boolean}
|
|
@@ -26,6 +26,8 @@ function instanceOfStoreSpecialDateFrontendResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('hours' in value) || value['hours'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('date' in value) || value['date'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
if (!('closed' in value) || value['closed'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
|
|
@@ -45,7 +47,7 @@ function StoreSpecialDateFrontendResourceFromJSONTyped(json, ignoreDiscriminator
|
|
|
45
47
|
'id': json['id'] == null ? undefined : json['id'],
|
|
46
48
|
'name': json['name'],
|
|
47
49
|
'hours': json['hours'],
|
|
48
|
-
'date': json['date']
|
|
50
|
+
'date': json['date'],
|
|
49
51
|
'closed': json['closed'],
|
|
50
52
|
'displayStartDate': json['displayStartDate'],
|
|
51
53
|
'displayEndDate': json['displayEndDate'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -59,6 +59,8 @@ export * from './BlogFrontendResource';
|
|
|
59
59
|
export * from './BlogFrontendResourceArrayResponse';
|
|
60
60
|
export * from './BlogResource';
|
|
61
61
|
export * from './BlogResourceArrayResponse';
|
|
62
|
+
export * from './CartCouponLiteResource';
|
|
63
|
+
export * from './CartCouponLiteResourceArrayResponse';
|
|
62
64
|
export * from './CartCouponResource';
|
|
63
65
|
export * from './CartCouponResourceArrayResponse';
|
|
64
66
|
export * from './CartListResource';
|
|
@@ -164,10 +166,17 @@ export * from './ExternalApiLogResource';
|
|
|
164
166
|
export * from './ExternalApiLogResourceArrayResponse';
|
|
165
167
|
export * from './ExternalApiProvider';
|
|
166
168
|
export * from './ExternalApiSyncStatus';
|
|
169
|
+
export * from './FrontendCartResource';
|
|
170
|
+
export * from './FrontendCartResourceArrayResponse';
|
|
171
|
+
export * from './FrontendCartResourceCouponsInner';
|
|
167
172
|
export * from './FrontendComponentLiteResource';
|
|
168
173
|
export * from './FrontendComponentLiteResourceArrayResponse';
|
|
169
174
|
export * from './FrontendComponentResource';
|
|
170
175
|
export * from './FrontendComponentResourceArrayResponse';
|
|
176
|
+
export * from './FrontendLineItemResource';
|
|
177
|
+
export * from './FrontendLineItemResourceArrayResponse';
|
|
178
|
+
export * from './FrontendOrderResource';
|
|
179
|
+
export * from './FrontendOrderResourceArrayResponse';
|
|
171
180
|
export * from './GenericResponse';
|
|
172
181
|
export * from './GetUniqueEndpointsRequest';
|
|
173
182
|
export * from './GlobalSearchCategoryResource';
|
package/dist/models/index.js
CHANGED
|
@@ -77,6 +77,8 @@ __exportStar(require("./BlogFrontendResource"), exports);
|
|
|
77
77
|
__exportStar(require("./BlogFrontendResourceArrayResponse"), exports);
|
|
78
78
|
__exportStar(require("./BlogResource"), exports);
|
|
79
79
|
__exportStar(require("./BlogResourceArrayResponse"), exports);
|
|
80
|
+
__exportStar(require("./CartCouponLiteResource"), exports);
|
|
81
|
+
__exportStar(require("./CartCouponLiteResourceArrayResponse"), exports);
|
|
80
82
|
__exportStar(require("./CartCouponResource"), exports);
|
|
81
83
|
__exportStar(require("./CartCouponResourceArrayResponse"), exports);
|
|
82
84
|
__exportStar(require("./CartListResource"), exports);
|
|
@@ -182,10 +184,17 @@ __exportStar(require("./ExternalApiLogResource"), exports);
|
|
|
182
184
|
__exportStar(require("./ExternalApiLogResourceArrayResponse"), exports);
|
|
183
185
|
__exportStar(require("./ExternalApiProvider"), exports);
|
|
184
186
|
__exportStar(require("./ExternalApiSyncStatus"), exports);
|
|
187
|
+
__exportStar(require("./FrontendCartResource"), exports);
|
|
188
|
+
__exportStar(require("./FrontendCartResourceArrayResponse"), exports);
|
|
189
|
+
__exportStar(require("./FrontendCartResourceCouponsInner"), exports);
|
|
185
190
|
__exportStar(require("./FrontendComponentLiteResource"), exports);
|
|
186
191
|
__exportStar(require("./FrontendComponentLiteResourceArrayResponse"), exports);
|
|
187
192
|
__exportStar(require("./FrontendComponentResource"), exports);
|
|
188
193
|
__exportStar(require("./FrontendComponentResourceArrayResponse"), exports);
|
|
194
|
+
__exportStar(require("./FrontendLineItemResource"), exports);
|
|
195
|
+
__exportStar(require("./FrontendLineItemResourceArrayResponse"), exports);
|
|
196
|
+
__exportStar(require("./FrontendOrderResource"), exports);
|
|
197
|
+
__exportStar(require("./FrontendOrderResourceArrayResponse"), exports);
|
|
189
198
|
__exportStar(require("./GenericResponse"), exports);
|
|
190
199
|
__exportStar(require("./GetUniqueEndpointsRequest"), exports);
|
|
191
200
|
__exportStar(require("./GlobalSearchCategoryResource"), exports);
|
|
@@ -10,7 +10,6 @@ Name | Type
|
|
|
10
10
|
`quantity` | number
|
|
11
11
|
`productPrice` | number
|
|
12
12
|
`labelId` | number
|
|
13
|
-
`label` | [LabelLiteResource](LabelLiteResource.md)
|
|
14
13
|
`productDiscount` | number
|
|
15
14
|
`totalDiscount` | number
|
|
16
15
|
`lineSubtotal` | number
|
|
@@ -34,7 +33,6 @@ const example = {
|
|
|
34
33
|
"quantity": null,
|
|
35
34
|
"productPrice": null,
|
|
36
35
|
"labelId": null,
|
|
37
|
-
"label": null,
|
|
38
36
|
"productDiscount": null,
|
|
39
37
|
"totalDiscount": null,
|
|
40
38
|
"lineSubtotal": null,
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# CartCouponLiteResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`code` | string
|
|
11
|
+
`name` | string
|
|
12
|
+
`discount` | number
|
|
13
|
+
`appliesTo` | string
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { CartCouponLiteResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"id": null,
|
|
23
|
+
"code": null,
|
|
24
|
+
"name": null,
|
|
25
|
+
"discount": null,
|
|
26
|
+
"appliesTo": null,
|
|
27
|
+
} satisfies CartCouponLiteResource
|
|
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 CartCouponLiteResource
|
|
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,34 @@
|
|
|
1
|
+
|
|
2
|
+
# CartCouponLiteResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<CartCouponLiteResource>](CartCouponLiteResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { CartCouponLiteResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies CartCouponLiteResourceArrayResponse
|
|
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 CartCouponLiteResourceArrayResponse
|
|
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,70 @@
|
|
|
1
|
+
|
|
2
|
+
# FrontendCartResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`lifecycleStatus` | string
|
|
11
|
+
`siteId` | number
|
|
12
|
+
`sessionToken` | string
|
|
13
|
+
`guestEmail` | string
|
|
14
|
+
`customer` | [CustomerListResource](CustomerListResource.md)
|
|
15
|
+
`shippingType` | string
|
|
16
|
+
`shippingAddress` | [AddressResource](AddressResource.md)
|
|
17
|
+
`billingAddress` | [AddressResource](AddressResource.md)
|
|
18
|
+
`lineItems` | [Array<FrontendLineItemResource>](FrontendLineItemResource.md)
|
|
19
|
+
`coupons` | [Array<FrontendCartResourceCouponsInner>](FrontendCartResourceCouponsInner.md)
|
|
20
|
+
`subtotal` | number
|
|
21
|
+
`promotionalDiscount` | number
|
|
22
|
+
`couponSubtotalDiscount` | number
|
|
23
|
+
`couponShippingDiscount` | number
|
|
24
|
+
`shipping` | number
|
|
25
|
+
`transitInsurance` | number
|
|
26
|
+
`gst` | number
|
|
27
|
+
`grandTotal` | number
|
|
28
|
+
|
|
29
|
+
## Example
|
|
30
|
+
|
|
31
|
+
```typescript
|
|
32
|
+
import type { FrontendCartResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
33
|
+
|
|
34
|
+
// TODO: Update the object below with actual values
|
|
35
|
+
const example = {
|
|
36
|
+
"id": null,
|
|
37
|
+
"lifecycleStatus": null,
|
|
38
|
+
"siteId": null,
|
|
39
|
+
"sessionToken": null,
|
|
40
|
+
"guestEmail": null,
|
|
41
|
+
"customer": null,
|
|
42
|
+
"shippingType": null,
|
|
43
|
+
"shippingAddress": null,
|
|
44
|
+
"billingAddress": null,
|
|
45
|
+
"lineItems": null,
|
|
46
|
+
"coupons": null,
|
|
47
|
+
"subtotal": null,
|
|
48
|
+
"promotionalDiscount": null,
|
|
49
|
+
"couponSubtotalDiscount": null,
|
|
50
|
+
"couponShippingDiscount": null,
|
|
51
|
+
"shipping": null,
|
|
52
|
+
"transitInsurance": null,
|
|
53
|
+
"gst": null,
|
|
54
|
+
"grandTotal": null,
|
|
55
|
+
} satisfies FrontendCartResource
|
|
56
|
+
|
|
57
|
+
console.log(example)
|
|
58
|
+
|
|
59
|
+
// Convert the instance to a JSON string
|
|
60
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
61
|
+
console.log(exampleJSON)
|
|
62
|
+
|
|
63
|
+
// Parse the JSON string back to an object
|
|
64
|
+
const exampleParsed = JSON.parse(exampleJSON) as FrontendCartResource
|
|
65
|
+
console.log(exampleParsed)
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
69
|
+
|
|
70
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# FrontendCartResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<FrontendCartResource>](FrontendCartResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { FrontendCartResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies FrontendCartResourceArrayResponse
|
|
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 FrontendCartResourceArrayResponse
|
|
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,42 @@
|
|
|
1
|
+
|
|
2
|
+
# FrontendCartResourceCouponsInner
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`code` | string
|
|
11
|
+
`name` | string
|
|
12
|
+
`discount` | number
|
|
13
|
+
`appliesTo` | string
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { FrontendCartResourceCouponsInner } from '@digital8/lighting-illusions-ts-sdk'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"id": null,
|
|
23
|
+
"code": null,
|
|
24
|
+
"name": null,
|
|
25
|
+
"discount": null,
|
|
26
|
+
"appliesTo": null,
|
|
27
|
+
} satisfies FrontendCartResourceCouponsInner
|
|
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 FrontendCartResourceCouponsInner
|
|
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,50 @@
|
|
|
1
|
+
|
|
2
|
+
# FrontendLineItemResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | number
|
|
10
|
+
`quantity` | number
|
|
11
|
+
`productPrice` | number
|
|
12
|
+
`subtotalAmount` | number
|
|
13
|
+
`totalAmount` | number
|
|
14
|
+
`promotionalSaving` | number
|
|
15
|
+
`isAvailable` | boolean
|
|
16
|
+
`isInStock` | boolean
|
|
17
|
+
`productChild` | [ProductChildLineItemLiteResource](ProductChildLineItemLiteResource.md)
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import type { FrontendLineItemResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
23
|
+
|
|
24
|
+
// TODO: Update the object below with actual values
|
|
25
|
+
const example = {
|
|
26
|
+
"id": null,
|
|
27
|
+
"quantity": null,
|
|
28
|
+
"productPrice": null,
|
|
29
|
+
"subtotalAmount": null,
|
|
30
|
+
"totalAmount": null,
|
|
31
|
+
"promotionalSaving": null,
|
|
32
|
+
"isAvailable": null,
|
|
33
|
+
"isInStock": null,
|
|
34
|
+
"productChild": null,
|
|
35
|
+
} satisfies FrontendLineItemResource
|
|
36
|
+
|
|
37
|
+
console.log(example)
|
|
38
|
+
|
|
39
|
+
// Convert the instance to a JSON string
|
|
40
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
41
|
+
console.log(exampleJSON)
|
|
42
|
+
|
|
43
|
+
// Parse the JSON string back to an object
|
|
44
|
+
const exampleParsed = JSON.parse(exampleJSON) as FrontendLineItemResource
|
|
45
|
+
console.log(exampleParsed)
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
49
|
+
|
|
50
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# FrontendLineItemResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<FrontendLineItemResource>](FrontendLineItemResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { FrontendLineItemResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies FrontendLineItemResourceArrayResponse
|
|
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 FrontendLineItemResourceArrayResponse
|
|
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
|
+
|