@digital8/lighting-illusions-ts-sdk 0.0.2835 → 0.0.2837
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/README.md +2 -2
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/CategoryAutomationRuleResource.d.ts +2 -2
- package/dist/models/CategoryFrontendResource.d.ts +2 -2
- package/dist/models/CouponListResource.d.ts +2 -2
- package/dist/models/CouponResource.d.ts +4 -4
- package/dist/models/ModelAttributeListResource.d.ts +2 -2
- package/dist/models/ModelAttributeResource.d.ts +2 -2
- package/dist/models/OrderFulfillmentResource.d.ts +1 -1
- package/dist/models/OrderFulfillmentResource.js +1 -3
- package/dist/models/ProductAccessoryFrontendResource.d.ts +4 -4
- package/dist/models/ProductCategoryResource.d.ts +2 -2
- package/dist/models/ProductChildListResource.d.ts +2 -2
- package/dist/models/ProductChildLiteFrontendResource.d.ts +6 -6
- package/dist/models/ProductChildOverlayRelationResource.d.ts +2 -2
- package/dist/models/ProductChildResource.d.ts +8 -8
- package/dist/models/ProductChildResource.js +4 -4
- package/dist/models/ProductChildSiteDetailFrontendResource.d.ts +4 -4
- package/dist/models/ProductChildSiteDetailLiteResource.d.ts +4 -4
- package/dist/models/ProductChildSiteDetailResource.d.ts +4 -4
- package/dist/models/ProductCompareResource.d.ts +4 -4
- package/dist/models/ProductDetailFrontendResource.d.ts +6 -6
- package/dist/models/SiteNotificationListResource.d.ts +4 -4
- package/dist/models/SiteNotificationListResource.js +4 -4
- package/dist/models/SiteNotificationResource.d.ts +4 -4
- package/dist/models/SiteNotificationResource.js +4 -4
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +6 -6
- package/dist/models/StoreSpecialDateFrontendResource.js +6 -6
- package/dist/models/StoreSpecialDateResource.d.ts +6 -6
- package/dist/models/StoreSpecialDateResource.js +6 -6
- package/package.json +1 -1
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +3 -2
- package/src/models/CategoryAutomationRuleResource.ts +2 -2
- package/src/models/CategoryFrontendResource.ts +2 -2
- package/src/models/CouponListResource.ts +2 -2
- package/src/models/CouponResource.ts +4 -4
- package/src/models/ModelAttributeListResource.ts +2 -2
- package/src/models/ModelAttributeResource.ts +2 -2
- package/src/models/OrderFulfillmentResource.ts +2 -3
- package/src/models/ProductAccessoryFrontendResource.ts +4 -4
- package/src/models/ProductCategoryResource.ts +2 -2
- package/src/models/ProductChildListResource.ts +2 -2
- package/src/models/ProductChildLiteFrontendResource.ts +6 -6
- package/src/models/ProductChildOverlayRelationResource.ts +2 -2
- package/src/models/ProductChildResource.ts +12 -12
- package/src/models/ProductChildSiteDetailFrontendResource.ts +4 -4
- package/src/models/ProductChildSiteDetailLiteResource.ts +4 -4
- package/src/models/ProductChildSiteDetailResource.ts +4 -4
- package/src/models/ProductCompareResource.ts +4 -4
- package/src/models/ProductDetailFrontendResource.ts +6 -6
- package/src/models/SiteNotificationListResource.ts +8 -8
- package/src/models/SiteNotificationResource.ts +8 -8
- package/src/models/StoreResource.ts +3 -2
- package/src/models/StoreSpecialDateFrontendResource.ts +12 -12
- package/src/models/StoreSpecialDateResource.ts +12 -12
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
## @digital8/lighting-illusions-ts-sdk@0.0.2837
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @digital8/lighting-illusions-ts-sdk@0.0.
|
|
39
|
+
npm install @digital8/lighting-illusions-ts-sdk@0.0.2837 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -28,8 +28,6 @@ function instanceOfAddressFrontendResource(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
-
if (!('line2' in value) || value['line2'] === undefined)
|
|
32
|
-
return false;
|
|
33
31
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
34
32
|
return false;
|
|
35
33
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
@@ -55,7 +53,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
53
|
'addresseeName': json['addresseeName'],
|
|
56
54
|
'company': json['company'],
|
|
57
55
|
'line1': json['line1'],
|
|
58
|
-
'line2': json['line2'],
|
|
56
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
59
57
|
'postcode': json['postcode'],
|
|
60
58
|
'suburb': json['suburb'],
|
|
61
59
|
'country': json['country'],
|
|
@@ -24,6 +24,8 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
|
|
|
24
24
|
function instanceOfAddressResource(value) {
|
|
25
25
|
if (!('addresseeName' in value) || value['addresseeName'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
+
if (!('company' in value) || value['company'] === undefined)
|
|
28
|
+
return false;
|
|
27
29
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
28
30
|
return false;
|
|
29
31
|
if (!('line2' in value) || value['line2'] === undefined)
|
|
@@ -53,7 +55,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
55
|
'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
|
|
54
56
|
'netsuiteId': json['netsuiteId'] == null ? undefined : json['netsuiteId'],
|
|
55
57
|
'addresseeName': json['addresseeName'],
|
|
56
|
-
'company': json['company']
|
|
58
|
+
'company': json['company'],
|
|
57
59
|
'line1': json['line1'],
|
|
58
60
|
'line2': json['line2'],
|
|
59
61
|
'postcode': json['postcode'],
|
|
@@ -41,10 +41,10 @@ export interface CategoryAutomationRuleResource {
|
|
|
41
41
|
groupId: number;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
|
-
* @type {
|
|
44
|
+
* @type {string}
|
|
45
45
|
* @memberof CategoryAutomationRuleResource
|
|
46
46
|
*/
|
|
47
|
-
relatedId?:
|
|
47
|
+
relatedId?: string | null;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {string}
|
|
@@ -38,10 +38,10 @@ export interface CategoryFrontendResource {
|
|
|
38
38
|
slug: string;
|
|
39
39
|
/**
|
|
40
40
|
*
|
|
41
|
-
* @type {
|
|
41
|
+
* @type {string}
|
|
42
42
|
* @memberof CategoryFrontendResource
|
|
43
43
|
*/
|
|
44
|
-
parentId?:
|
|
44
|
+
parentId?: string | null;
|
|
45
45
|
/**
|
|
46
46
|
*
|
|
47
47
|
* @type {AssetLiteResource}
|
|
@@ -52,16 +52,16 @@ export interface CouponResource {
|
|
|
52
52
|
discountType: string;
|
|
53
53
|
/**
|
|
54
54
|
*
|
|
55
|
-
* @type {
|
|
55
|
+
* @type {number}
|
|
56
56
|
* @memberof CouponResource
|
|
57
57
|
*/
|
|
58
|
-
discountAmount:
|
|
58
|
+
discountAmount: number;
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
61
|
-
* @type {
|
|
61
|
+
* @type {number}
|
|
62
62
|
* @memberof CouponResource
|
|
63
63
|
*/
|
|
64
|
-
minAmount:
|
|
64
|
+
minAmount: number;
|
|
65
65
|
/**
|
|
66
66
|
*
|
|
67
67
|
* @type {number}
|
|
@@ -49,10 +49,10 @@ export interface ModelAttributeListResource {
|
|
|
49
49
|
selectedValues: Array<AttributeValueResource> | null;
|
|
50
50
|
/**
|
|
51
51
|
*
|
|
52
|
-
* @type {
|
|
52
|
+
* @type {string}
|
|
53
53
|
* @memberof ModelAttributeListResource
|
|
54
54
|
*/
|
|
55
|
-
order?:
|
|
55
|
+
order?: string | null;
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
58
|
* Check if a given object implements the ModelAttributeListResource interface.
|
|
@@ -29,8 +29,6 @@ function instanceOfOrderFulfillmentResource(value) {
|
|
|
29
29
|
return false;
|
|
30
30
|
if (!('dateShipped' in value) || value['dateShipped'] === undefined)
|
|
31
31
|
return false;
|
|
32
|
-
if (!('trackingNumber' in value) || value['trackingNumber'] === undefined)
|
|
33
|
-
return false;
|
|
34
32
|
if (!('docnum' in value) || value['docnum'] === undefined)
|
|
35
33
|
return false;
|
|
36
34
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
@@ -50,7 +48,7 @@ function OrderFulfillmentResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
48
|
'id': json['id'],
|
|
51
49
|
'orderId': json['orderId'],
|
|
52
50
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
53
|
-
'trackingNumber': json['trackingNumber'],
|
|
51
|
+
'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
|
|
54
52
|
'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
|
|
55
53
|
'trackingCompany': json['trackingCompany'] == null ? undefined : json['trackingCompany'],
|
|
56
54
|
'docnum': json['docnum'],
|
|
@@ -35,16 +35,16 @@ export interface ProductAccessoryFrontendResource {
|
|
|
35
35
|
slug: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {number}
|
|
39
39
|
* @memberof ProductAccessoryFrontendResource
|
|
40
40
|
*/
|
|
41
|
-
price:
|
|
41
|
+
price: number;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
|
-
* @type {
|
|
44
|
+
* @type {number}
|
|
45
45
|
* @memberof ProductAccessoryFrontendResource
|
|
46
46
|
*/
|
|
47
|
-
salePrice:
|
|
47
|
+
salePrice: number;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {number}
|
|
@@ -61,10 +61,10 @@ export interface ProductChildListResource {
|
|
|
61
61
|
stock: number;
|
|
62
62
|
/**
|
|
63
63
|
*
|
|
64
|
-
* @type {
|
|
64
|
+
* @type {string}
|
|
65
65
|
* @memberof ProductChildListResource
|
|
66
66
|
*/
|
|
67
|
-
isDisabled?:
|
|
67
|
+
isDisabled?: string | null;
|
|
68
68
|
/**
|
|
69
69
|
*
|
|
70
70
|
* @type {boolean}
|
|
@@ -47,22 +47,22 @@ export interface ProductChildLiteFrontendResource {
|
|
|
47
47
|
sku: string;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
|
-
* @type {
|
|
50
|
+
* @type {number}
|
|
51
51
|
* @memberof ProductChildLiteFrontendResource
|
|
52
52
|
*/
|
|
53
|
-
price:
|
|
53
|
+
price: number;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
|
-
* @type {
|
|
56
|
+
* @type {number}
|
|
57
57
|
* @memberof ProductChildLiteFrontendResource
|
|
58
58
|
*/
|
|
59
|
-
rrpPrice:
|
|
59
|
+
rrpPrice: number;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
|
-
* @type {
|
|
62
|
+
* @type {number}
|
|
63
63
|
* @memberof ProductChildLiteFrontendResource
|
|
64
64
|
*/
|
|
65
|
-
salePrice:
|
|
65
|
+
salePrice: number;
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
68
68
|
* Check if a given object implements the ProductChildLiteFrontendResource interface.
|
|
@@ -55,10 +55,10 @@ export interface ProductChildOverlayRelationResource {
|
|
|
55
55
|
stock: number;
|
|
56
56
|
/**
|
|
57
57
|
*
|
|
58
|
-
* @type {
|
|
58
|
+
* @type {string}
|
|
59
59
|
* @memberof ProductChildOverlayRelationResource
|
|
60
60
|
*/
|
|
61
|
-
isDisabled?:
|
|
61
|
+
isDisabled?: string | null;
|
|
62
62
|
/**
|
|
63
63
|
*
|
|
64
64
|
* @type {boolean}
|
|
@@ -51,10 +51,10 @@ export interface ProductChildResource {
|
|
|
51
51
|
modelNumber: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
|
-
* @type {
|
|
54
|
+
* @type {number}
|
|
55
55
|
* @memberof ProductChildResource
|
|
56
56
|
*/
|
|
57
|
-
weight:
|
|
57
|
+
weight: number;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
* @type {string}
|
|
@@ -81,10 +81,10 @@ export interface ProductChildResource {
|
|
|
81
81
|
sku: number;
|
|
82
82
|
/**
|
|
83
83
|
*
|
|
84
|
-
* @type {
|
|
84
|
+
* @type {number}
|
|
85
85
|
* @memberof ProductChildResource
|
|
86
86
|
*/
|
|
87
|
-
buyPrice:
|
|
87
|
+
buyPrice: number;
|
|
88
88
|
/**
|
|
89
89
|
*
|
|
90
90
|
* @type {boolean}
|
|
@@ -153,16 +153,16 @@ export interface ProductChildResource {
|
|
|
153
153
|
hasSyncedToNetsuite: boolean;
|
|
154
154
|
/**
|
|
155
155
|
*
|
|
156
|
-
* @type {
|
|
156
|
+
* @type {string}
|
|
157
157
|
* @memberof ProductChildResource
|
|
158
158
|
*/
|
|
159
|
-
newArrivalStartDate:
|
|
159
|
+
newArrivalStartDate: string;
|
|
160
160
|
/**
|
|
161
161
|
*
|
|
162
|
-
* @type {
|
|
162
|
+
* @type {string}
|
|
163
163
|
* @memberof ProductChildResource
|
|
164
164
|
*/
|
|
165
|
-
newArrivalEndDate:
|
|
165
|
+
newArrivalEndDate: string;
|
|
166
166
|
/**
|
|
167
167
|
*
|
|
168
168
|
* @type {boolean}
|
|
@@ -114,8 +114,8 @@ function ProductChildResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
114
114
|
'netsuiteId': json['netsuiteId'] == null ? undefined : json['netsuiteId'],
|
|
115
115
|
'netsuiteSyncStatus': json['netsuiteSyncStatus'] == null ? undefined : json['netsuiteSyncStatus'],
|
|
116
116
|
'hasSyncedToNetsuite': json['hasSyncedToNetsuite'],
|
|
117
|
-
'newArrivalStartDate':
|
|
118
|
-
'newArrivalEndDate':
|
|
117
|
+
'newArrivalStartDate': json['newArrivalStartDate'],
|
|
118
|
+
'newArrivalEndDate': json['newArrivalEndDate'],
|
|
119
119
|
'isDisabled': json['isDisabled'],
|
|
120
120
|
'siteDetails': (json['siteDetails'] == null ? null : json['siteDetails'].map(ProductChildSiteDetailResource_1.ProductChildSiteDetailResourceFromJSON)),
|
|
121
121
|
'assets': (json['assets'] == null ? null : json['assets'].map(AssetResource_1.AssetResourceFromJSON)),
|
|
@@ -156,8 +156,8 @@ function ProductChildResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
156
156
|
'netsuiteId': value['netsuiteId'],
|
|
157
157
|
'netsuiteSyncStatus': value['netsuiteSyncStatus'],
|
|
158
158
|
'hasSyncedToNetsuite': value['hasSyncedToNetsuite'],
|
|
159
|
-
'newArrivalStartDate':
|
|
160
|
-
'newArrivalEndDate':
|
|
159
|
+
'newArrivalStartDate': value['newArrivalStartDate'],
|
|
160
|
+
'newArrivalEndDate': value['newArrivalEndDate'],
|
|
161
161
|
'isDisabled': value['isDisabled'],
|
|
162
162
|
'siteDetails': (value['siteDetails'] == null ? null : value['siteDetails'].map(ProductChildSiteDetailResource_1.ProductChildSiteDetailResourceToJSON)),
|
|
163
163
|
'assets': (value['assets'] == null ? null : value['assets'].map(AssetResource_1.AssetResourceToJSON)),
|
|
@@ -36,16 +36,16 @@ export interface ProductChildSiteDetailFrontendResource {
|
|
|
36
36
|
slug: string;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
|
-
* @type {
|
|
39
|
+
* @type {number}
|
|
40
40
|
* @memberof ProductChildSiteDetailFrontendResource
|
|
41
41
|
*/
|
|
42
|
-
rrpPrice:
|
|
42
|
+
rrpPrice: number;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
|
-
* @type {
|
|
45
|
+
* @type {number}
|
|
46
46
|
* @memberof ProductChildSiteDetailFrontendResource
|
|
47
47
|
*/
|
|
48
|
-
salePrice:
|
|
48
|
+
salePrice: number;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
51
|
* @type {LabelLiteResource}
|
|
@@ -43,16 +43,16 @@ export interface ProductChildSiteDetailLiteResource {
|
|
|
43
43
|
slug: string;
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
|
-
* @type {
|
|
46
|
+
* @type {number}
|
|
47
47
|
* @memberof ProductChildSiteDetailLiteResource
|
|
48
48
|
*/
|
|
49
|
-
rrpPrice:
|
|
49
|
+
rrpPrice: number;
|
|
50
50
|
/**
|
|
51
51
|
*
|
|
52
|
-
* @type {
|
|
52
|
+
* @type {number}
|
|
53
53
|
* @memberof ProductChildSiteDetailLiteResource
|
|
54
54
|
*/
|
|
55
|
-
salePrice:
|
|
55
|
+
salePrice: number;
|
|
56
56
|
/**
|
|
57
57
|
*
|
|
58
58
|
* @type {boolean}
|
|
@@ -74,16 +74,16 @@ export interface ProductChildSiteDetailResource {
|
|
|
74
74
|
isDisplayNameOverridden: boolean;
|
|
75
75
|
/**
|
|
76
76
|
*
|
|
77
|
-
* @type {
|
|
77
|
+
* @type {number}
|
|
78
78
|
* @memberof ProductChildSiteDetailResource
|
|
79
79
|
*/
|
|
80
|
-
rrpPrice:
|
|
80
|
+
rrpPrice: number;
|
|
81
81
|
/**
|
|
82
82
|
*
|
|
83
|
-
* @type {
|
|
83
|
+
* @type {number}
|
|
84
84
|
* @memberof ProductChildSiteDetailResource
|
|
85
85
|
*/
|
|
86
|
-
salePrice:
|
|
86
|
+
salePrice: number;
|
|
87
87
|
/**
|
|
88
88
|
*
|
|
89
89
|
* @type {boolean}
|
|
@@ -66,16 +66,16 @@ export interface ProductCompareResource {
|
|
|
66
66
|
parentName: string;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
|
-
* @type {
|
|
69
|
+
* @type {number}
|
|
70
70
|
* @memberof ProductCompareResource
|
|
71
71
|
*/
|
|
72
|
-
price:
|
|
72
|
+
price: number;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
|
-
* @type {
|
|
75
|
+
* @type {number}
|
|
76
76
|
* @memberof ProductCompareResource
|
|
77
77
|
*/
|
|
78
|
-
salePrice:
|
|
78
|
+
salePrice: number;
|
|
79
79
|
/**
|
|
80
80
|
*
|
|
81
81
|
* @type {string}
|
|
@@ -54,10 +54,10 @@ export interface ProductDetailFrontendResource {
|
|
|
54
54
|
stock: number;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
|
-
* @type {
|
|
57
|
+
* @type {number}
|
|
58
58
|
* @memberof ProductDetailFrontendResource
|
|
59
59
|
*/
|
|
60
|
-
weight:
|
|
60
|
+
weight: number;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
63
|
* @type {string}
|
|
@@ -96,16 +96,16 @@ export interface ProductDetailFrontendResource {
|
|
|
96
96
|
description: string;
|
|
97
97
|
/**
|
|
98
98
|
*
|
|
99
|
-
* @type {
|
|
99
|
+
* @type {number}
|
|
100
100
|
* @memberof ProductDetailFrontendResource
|
|
101
101
|
*/
|
|
102
|
-
price:
|
|
102
|
+
price: number;
|
|
103
103
|
/**
|
|
104
104
|
*
|
|
105
|
-
* @type {
|
|
105
|
+
* @type {number}
|
|
106
106
|
* @memberof ProductDetailFrontendResource
|
|
107
107
|
*/
|
|
108
|
-
salePrice:
|
|
108
|
+
salePrice: number;
|
|
109
109
|
/**
|
|
110
110
|
*
|
|
111
111
|
* @type {string}
|
|
@@ -42,16 +42,16 @@ export interface SiteNotificationListResource {
|
|
|
42
42
|
isActive: boolean;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
|
-
* @type {
|
|
45
|
+
* @type {string}
|
|
46
46
|
* @memberof SiteNotificationListResource
|
|
47
47
|
*/
|
|
48
|
-
startDate:
|
|
48
|
+
startDate: string;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
|
-
* @type {
|
|
51
|
+
* @type {string}
|
|
52
52
|
* @memberof SiteNotificationListResource
|
|
53
53
|
*/
|
|
54
|
-
endDate:
|
|
54
|
+
endDate: string;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
57
|
* @type {string}
|
|
@@ -53,8 +53,8 @@ function SiteNotificationListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
53
|
'heading': json['heading'] == null ? undefined : json['heading'],
|
|
54
54
|
'type': json['type'] == null ? undefined : json['type'],
|
|
55
55
|
'isActive': json['isActive'],
|
|
56
|
-
'startDate':
|
|
57
|
-
'endDate':
|
|
56
|
+
'startDate': json['startDate'],
|
|
57
|
+
'endDate': json['endDate'],
|
|
58
58
|
'text': json['text'],
|
|
59
59
|
'textColour': json['textColour'],
|
|
60
60
|
'backgroundColour': json['backgroundColour'],
|
|
@@ -74,8 +74,8 @@ function SiteNotificationListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
74
74
|
'heading': value['heading'],
|
|
75
75
|
'type': value['type'],
|
|
76
76
|
'isActive': value['isActive'],
|
|
77
|
-
'startDate':
|
|
78
|
-
'endDate':
|
|
77
|
+
'startDate': value['startDate'],
|
|
78
|
+
'endDate': value['endDate'],
|
|
79
79
|
'text': value['text'],
|
|
80
80
|
'textColour': value['textColour'],
|
|
81
81
|
'backgroundColour': value['backgroundColour'],
|
|
@@ -30,16 +30,16 @@ export interface SiteNotificationResource {
|
|
|
30
30
|
text: string;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
|
-
* @type {
|
|
33
|
+
* @type {string}
|
|
34
34
|
* @memberof SiteNotificationResource
|
|
35
35
|
*/
|
|
36
|
-
startDate:
|
|
36
|
+
startDate: string;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
|
-
* @type {
|
|
39
|
+
* @type {string}
|
|
40
40
|
* @memberof SiteNotificationResource
|
|
41
41
|
*/
|
|
42
|
-
endDate:
|
|
42
|
+
endDate: string;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @type {string}
|
|
@@ -49,8 +49,8 @@ function SiteNotificationResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
return {
|
|
50
50
|
'id': json['id'],
|
|
51
51
|
'text': json['text'],
|
|
52
|
-
'startDate':
|
|
53
|
-
'endDate':
|
|
52
|
+
'startDate': json['startDate'],
|
|
53
|
+
'endDate': json['endDate'],
|
|
54
54
|
'backgroundColour': json['backgroundColour'],
|
|
55
55
|
'textColour': json['textColour'],
|
|
56
56
|
'site': (0, SiteResource_1.SiteResourceFromJSON)(json['site']),
|
|
@@ -67,8 +67,8 @@ function SiteNotificationResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
67
67
|
return {
|
|
68
68
|
'id': value['id'],
|
|
69
69
|
'text': value['text'],
|
|
70
|
-
'startDate':
|
|
71
|
-
'endDate':
|
|
70
|
+
'startDate': value['startDate'],
|
|
71
|
+
'endDate': value['endDate'],
|
|
72
72
|
'backgroundColour': value['backgroundColour'],
|
|
73
73
|
'textColour': value['textColour'],
|
|
74
74
|
'site': (0, SiteResource_1.SiteResourceToJSON)(value['site']),
|
|
@@ -40,6 +40,8 @@ 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;
|
|
43
45
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
44
46
|
return false;
|
|
45
47
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
|
|
@@ -68,7 +70,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
70
|
'latitude': json['latitude'],
|
|
69
71
|
'tagLine': json['tagLine'],
|
|
70
72
|
'email': json['email'],
|
|
71
|
-
'website': json['website']
|
|
73
|
+
'website': json['website'],
|
|
72
74
|
'netsuiteId': json['netsuiteId'],
|
|
73
75
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
74
76
|
'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}
|
|
@@ -47,16 +47,16 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
47
47
|
closed: boolean;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
|
-
* @type {
|
|
50
|
+
* @type {object}
|
|
51
51
|
* @memberof StoreSpecialDateFrontendResource
|
|
52
52
|
*/
|
|
53
|
-
displayStartDate:
|
|
53
|
+
displayStartDate: object;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
|
-
* @type {
|
|
56
|
+
* @type {object}
|
|
57
57
|
* @memberof StoreSpecialDateFrontendResource
|
|
58
58
|
*/
|
|
59
|
-
displayEndDate:
|
|
59
|
+
displayEndDate: object;
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
62
|
* Check if a given object implements the StoreSpecialDateFrontendResource interface.
|