@digital8/lighting-illusions-ts-sdk 0.0.604 → 0.0.605
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/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/SyncProductNetsuiteProductRequest.d.ts +41 -41
- package/dist/models/SyncProductNetsuiteProductRequest.js +28 -28
- package/docs/SyncProductNetsuiteProductRequest.md +28 -28
- package/package.json +1 -1
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/SyncProductNetsuiteProductRequest.ts +69 -69
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.605
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -425,7 +425,7 @@ and is automatically generated by the
|
|
|
425
425
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
426
426
|
|
|
427
427
|
- API version: `1.0.0`
|
|
428
|
-
- Package version: `0.0.
|
|
428
|
+
- Package version: `0.0.605`
|
|
429
429
|
- Generator version: `7.18.0`
|
|
430
430
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
431
431
|
|
|
@@ -37,6 +37,8 @@ function instanceOfExternalApiLogResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('responseCode' in value) || value['responseCode'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
+
if (!('requestPayload' in value) || value['requestPayload'] === undefined)
|
|
41
|
+
return false;
|
|
40
42
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
41
43
|
return false;
|
|
42
44
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -58,7 +60,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
60
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
59
61
|
'endpoint': json['endpoint'],
|
|
60
62
|
'responseCode': json['responseCode'],
|
|
61
|
-
'requestPayload': json['requestPayload']
|
|
63
|
+
'requestPayload': json['requestPayload'],
|
|
62
64
|
'responsePayload': json['responsePayload'],
|
|
63
65
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
64
66
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -26,85 +26,91 @@ export interface SyncProductNetsuiteProductRequest {
|
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof SyncProductNetsuiteProductRequest
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
productType?: string;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof SyncProductNetsuiteProductRequest
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
supplierId?: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof SyncProductNetsuiteProductRequest
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
supplierName?: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
|
-
* @type {
|
|
44
|
+
* @type {string}
|
|
45
45
|
* @memberof SyncProductNetsuiteProductRequest
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
salesDescription?: string;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
|
-
* @type {
|
|
50
|
+
* @type {string}
|
|
51
51
|
* @memberof SyncProductNetsuiteProductRequest
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
upccode?: string;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof SyncProductNetsuiteProductRequest
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
vendorname?: string;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof SyncProductNetsuiteProductRequest
|
|
64
64
|
*/
|
|
65
|
-
|
|
65
|
+
custitemAnxRetailId?: string;
|
|
66
66
|
/**
|
|
67
67
|
*
|
|
68
|
-
* @type {
|
|
68
|
+
* @type {number}
|
|
69
69
|
* @memberof SyncProductNetsuiteProductRequest
|
|
70
70
|
*/
|
|
71
|
-
|
|
71
|
+
weight?: number;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof SyncProductNetsuiteProductRequest
|
|
76
76
|
*/
|
|
77
|
-
|
|
77
|
+
weightUnit?: string;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof SyncProductNetsuiteProductRequest
|
|
82
82
|
*/
|
|
83
|
-
|
|
83
|
+
custitemAnxAllowOversell?: string;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
|
-
* @type {
|
|
86
|
+
* @type {number}
|
|
87
87
|
* @memberof SyncProductNetsuiteProductRequest
|
|
88
88
|
*/
|
|
89
|
-
|
|
89
|
+
onlineLocationCost?: number;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {number}
|
|
93
|
+
* @memberof SyncProductNetsuiteProductRequest
|
|
94
|
+
*/
|
|
95
|
+
popularityScore?: number;
|
|
90
96
|
/**
|
|
91
97
|
*
|
|
92
98
|
* @type {string}
|
|
93
99
|
* @memberof SyncProductNetsuiteProductRequest
|
|
94
100
|
*/
|
|
95
|
-
|
|
101
|
+
excludeFrontend?: string;
|
|
96
102
|
/**
|
|
97
103
|
*
|
|
98
|
-
* @type {
|
|
104
|
+
* @type {string}
|
|
99
105
|
* @memberof SyncProductNetsuiteProductRequest
|
|
100
106
|
*/
|
|
101
|
-
|
|
107
|
+
excludeSearch?: string;
|
|
102
108
|
/**
|
|
103
109
|
*
|
|
104
110
|
* @type {string}
|
|
105
111
|
* @memberof SyncProductNetsuiteProductRequest
|
|
106
112
|
*/
|
|
107
|
-
|
|
113
|
+
oversized?: string;
|
|
108
114
|
/**
|
|
109
115
|
*
|
|
110
116
|
* @type {Array<string>}
|
|
@@ -113,10 +119,10 @@ export interface SyncProductNetsuiteProductRequest {
|
|
|
113
119
|
published?: Array<string>;
|
|
114
120
|
/**
|
|
115
121
|
*
|
|
116
|
-
* @type {
|
|
122
|
+
* @type {number}
|
|
117
123
|
* @memberof SyncProductNetsuiteProductRequest
|
|
118
124
|
*/
|
|
119
|
-
|
|
125
|
+
custitemrrpGst?: number;
|
|
120
126
|
/**
|
|
121
127
|
*
|
|
122
128
|
* @type {string}
|
|
@@ -128,67 +134,61 @@ export interface SyncProductNetsuiteProductRequest {
|
|
|
128
134
|
* @type {string}
|
|
129
135
|
* @memberof SyncProductNetsuiteProductRequest
|
|
130
136
|
*/
|
|
131
|
-
|
|
137
|
+
cfdPrice?: string;
|
|
132
138
|
/**
|
|
133
139
|
*
|
|
134
140
|
* @type {string}
|
|
135
141
|
* @memberof SyncProductNetsuiteProductRequest
|
|
136
142
|
*/
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
*
|
|
140
|
-
* @type {number}
|
|
141
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
142
|
-
*/
|
|
143
|
-
popularityScore?: number;
|
|
143
|
+
labelLi?: string;
|
|
144
144
|
/**
|
|
145
145
|
*
|
|
146
146
|
* @type {string}
|
|
147
147
|
* @memberof SyncProductNetsuiteProductRequest
|
|
148
148
|
*/
|
|
149
|
-
|
|
149
|
+
labelCfd?: string;
|
|
150
150
|
/**
|
|
151
151
|
*
|
|
152
|
-
* @type {string}
|
|
152
|
+
* @type {Array<string>}
|
|
153
153
|
* @memberof SyncProductNetsuiteProductRequest
|
|
154
154
|
*/
|
|
155
|
-
|
|
155
|
+
attribRoom?: Array<string>;
|
|
156
156
|
/**
|
|
157
157
|
*
|
|
158
|
-
* @type {string}
|
|
158
|
+
* @type {Array<string>}
|
|
159
159
|
* @memberof SyncProductNetsuiteProductRequest
|
|
160
160
|
*/
|
|
161
|
-
|
|
161
|
+
attribStyle?: Array<string>;
|
|
162
162
|
/**
|
|
163
163
|
*
|
|
164
164
|
* @type {string}
|
|
165
165
|
* @memberof SyncProductNetsuiteProductRequest
|
|
166
166
|
*/
|
|
167
|
-
|
|
167
|
+
attribPrimarycolour?: string;
|
|
168
168
|
/**
|
|
169
169
|
*
|
|
170
170
|
* @type {string}
|
|
171
171
|
* @memberof SyncProductNetsuiteProductRequest
|
|
172
172
|
*/
|
|
173
|
-
|
|
173
|
+
vendor?: string;
|
|
174
174
|
/**
|
|
175
175
|
*
|
|
176
|
-
* @type {
|
|
176
|
+
* @type {string}
|
|
177
177
|
* @memberof SyncProductNetsuiteProductRequest
|
|
178
178
|
*/
|
|
179
|
-
|
|
179
|
+
vendorId?: string;
|
|
180
180
|
/**
|
|
181
181
|
*
|
|
182
|
-
* @type {
|
|
182
|
+
* @type {string}
|
|
183
183
|
* @memberof SyncProductNetsuiteProductRequest
|
|
184
184
|
*/
|
|
185
|
-
|
|
185
|
+
priceFeed?: string;
|
|
186
186
|
/**
|
|
187
187
|
*
|
|
188
188
|
* @type {string}
|
|
189
189
|
* @memberof SyncProductNetsuiteProductRequest
|
|
190
190
|
*/
|
|
191
|
-
|
|
191
|
+
priceFeedCategory?: string;
|
|
192
192
|
}
|
|
193
193
|
/**
|
|
194
194
|
* Check if a given object implements the SyncProductNetsuiteProductRequest interface.
|
|
@@ -35,34 +35,34 @@ function SyncProductNetsuiteProductRequestFromJSONTyped(json, ignoreDiscriminato
|
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
37
|
'internalId': json['internalId'],
|
|
38
|
-
'upccode': json['upccode'] == null ? undefined : json['upccode'],
|
|
39
|
-
'vendorname': json['vendorname'] == null ? undefined : json['vendorname'],
|
|
40
|
-
'custitemAnxRetailId': json['custitem_anx_retail_id'] == null ? undefined : json['custitem_anx_retail_id'],
|
|
41
|
-
'custitemrrpGst': json['custitemrrp_gst'] == null ? undefined : json['custitemrrp_gst'],
|
|
42
|
-
'onlineLocationCost': json['online_location_cost'] == null ? undefined : json['online_location_cost'],
|
|
43
|
-
'custitemAnxAllowOversell': json['custitem_anx_allow_oversell'] == null ? undefined : json['custitem_anx_allow_oversell'],
|
|
44
38
|
'productType': json['productType'] == null ? undefined : json['productType'],
|
|
45
|
-
'vendor': json['vendor'] == null ? undefined : json['vendor'],
|
|
46
|
-
'vendorId': json['vendorId'] == null ? undefined : json['vendorId'],
|
|
47
39
|
'supplierId': json['supplierId'] == null ? undefined : json['supplierId'],
|
|
48
40
|
'supplierName': json['supplierName'] == null ? undefined : json['supplierName'],
|
|
49
41
|
'salesDescription': json['salesDescription'] == null ? undefined : json['salesDescription'],
|
|
42
|
+
'upccode': json['upccode'] == null ? undefined : json['upccode'],
|
|
43
|
+
'vendorname': json['vendorname'] == null ? undefined : json['vendorname'],
|
|
44
|
+
'custitemAnxRetailId': json['custitem_anx_retail_id'] == null ? undefined : json['custitem_anx_retail_id'],
|
|
50
45
|
'weight': json['weight'] == null ? undefined : json['weight'],
|
|
51
46
|
'weightUnit': json['weightUnit'] == null ? undefined : json['weightUnit'],
|
|
52
|
-
'
|
|
53
|
-
'
|
|
54
|
-
'liPrice': json['li_price'] == null ? undefined : json['li_price'],
|
|
55
|
-
'priceFeed': json['price_feed'] == null ? undefined : json['price_feed'],
|
|
56
|
-
'priceFeedCategory': json['price_feed_category'] == null ? undefined : json['price_feed_category'],
|
|
47
|
+
'custitemAnxAllowOversell': json['custitem_anx_allow_oversell'] == null ? undefined : json['custitem_anx_allow_oversell'],
|
|
48
|
+
'onlineLocationCost': json['online_location_cost'] == null ? undefined : json['online_location_cost'],
|
|
57
49
|
'popularityScore': json['popularity_score'] == null ? undefined : json['popularity_score'],
|
|
50
|
+
'excludeFrontend': json['exclude_frontend'] == null ? undefined : json['exclude_frontend'],
|
|
58
51
|
'excludeSearch': json['exclude_search'] == null ? undefined : json['exclude_search'],
|
|
59
52
|
'oversized': json['oversized'] == null ? undefined : json['oversized'],
|
|
60
|
-
'
|
|
53
|
+
'published': json['published'] == null ? undefined : json['published'],
|
|
54
|
+
'custitemrrpGst': json['custitemrrp_gst'] == null ? undefined : json['custitemrrp_gst'],
|
|
55
|
+
'liPrice': json['li_price'] == null ? undefined : json['li_price'],
|
|
56
|
+
'cfdPrice': json['cfd_price'] == null ? undefined : json['cfd_price'],
|
|
61
57
|
'labelLi': json['label_li'] == null ? undefined : json['label_li'],
|
|
62
58
|
'labelCfd': json['label_cfd'] == null ? undefined : json['label_cfd'],
|
|
63
59
|
'attribRoom': json['attrib_room'] == null ? undefined : json['attrib_room'],
|
|
64
60
|
'attribStyle': json['attrib_style'] == null ? undefined : json['attrib_style'],
|
|
65
61
|
'attribPrimarycolour': json['attrib_primarycolour'] == null ? undefined : json['attrib_primarycolour'],
|
|
62
|
+
'vendor': json['vendor'] == null ? undefined : json['vendor'],
|
|
63
|
+
'vendorId': json['vendorId'] == null ? undefined : json['vendorId'],
|
|
64
|
+
'priceFeed': json['price_feed'] == null ? undefined : json['price_feed'],
|
|
65
|
+
'priceFeedCategory': json['price_feed_category'] == null ? undefined : json['price_feed_category'],
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
68
|
function SyncProductNetsuiteProductRequestToJSON(json) {
|
|
@@ -75,33 +75,33 @@ function SyncProductNetsuiteProductRequestToJSONTyped(value, ignoreDiscriminator
|
|
|
75
75
|
}
|
|
76
76
|
return {
|
|
77
77
|
'internalId': value['internalId'],
|
|
78
|
-
'upccode': value['upccode'],
|
|
79
|
-
'vendorname': value['vendorname'],
|
|
80
|
-
'custitem_anx_retail_id': value['custitemAnxRetailId'],
|
|
81
|
-
'custitemrrp_gst': value['custitemrrpGst'],
|
|
82
|
-
'online_location_cost': value['onlineLocationCost'],
|
|
83
|
-
'custitem_anx_allow_oversell': value['custitemAnxAllowOversell'],
|
|
84
78
|
'productType': value['productType'],
|
|
85
|
-
'vendor': value['vendor'],
|
|
86
|
-
'vendorId': value['vendorId'],
|
|
87
79
|
'supplierId': value['supplierId'],
|
|
88
80
|
'supplierName': value['supplierName'],
|
|
89
81
|
'salesDescription': value['salesDescription'],
|
|
82
|
+
'upccode': value['upccode'],
|
|
83
|
+
'vendorname': value['vendorname'],
|
|
84
|
+
'custitem_anx_retail_id': value['custitemAnxRetailId'],
|
|
90
85
|
'weight': value['weight'],
|
|
91
86
|
'weightUnit': value['weightUnit'],
|
|
92
|
-
'
|
|
93
|
-
'
|
|
94
|
-
'li_price': value['liPrice'],
|
|
95
|
-
'price_feed': value['priceFeed'],
|
|
96
|
-
'price_feed_category': value['priceFeedCategory'],
|
|
87
|
+
'custitem_anx_allow_oversell': value['custitemAnxAllowOversell'],
|
|
88
|
+
'online_location_cost': value['onlineLocationCost'],
|
|
97
89
|
'popularity_score': value['popularityScore'],
|
|
90
|
+
'exclude_frontend': value['excludeFrontend'],
|
|
98
91
|
'exclude_search': value['excludeSearch'],
|
|
99
92
|
'oversized': value['oversized'],
|
|
100
|
-
'
|
|
93
|
+
'published': value['published'],
|
|
94
|
+
'custitemrrp_gst': value['custitemrrpGst'],
|
|
95
|
+
'li_price': value['liPrice'],
|
|
96
|
+
'cfd_price': value['cfdPrice'],
|
|
101
97
|
'label_li': value['labelLi'],
|
|
102
98
|
'label_cfd': value['labelCfd'],
|
|
103
99
|
'attrib_room': value['attribRoom'],
|
|
104
100
|
'attrib_style': value['attribStyle'],
|
|
105
101
|
'attrib_primarycolour': value['attribPrimarycolour'],
|
|
102
|
+
'vendor': value['vendor'],
|
|
103
|
+
'vendorId': value['vendorId'],
|
|
104
|
+
'price_feed': value['priceFeed'],
|
|
105
|
+
'price_feed_category': value['priceFeedCategory'],
|
|
106
106
|
};
|
|
107
107
|
}
|
|
@@ -7,34 +7,34 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`internalId` | number
|
|
10
|
-
`upccode` | string
|
|
11
|
-
`vendorname` | string
|
|
12
|
-
`custitemAnxRetailId` | string
|
|
13
|
-
`custitemrrpGst` | number
|
|
14
|
-
`onlineLocationCost` | number
|
|
15
|
-
`custitemAnxAllowOversell` | string
|
|
16
10
|
`productType` | string
|
|
17
|
-
`vendor` | string
|
|
18
|
-
`vendorId` | string
|
|
19
11
|
`supplierId` | string
|
|
20
12
|
`supplierName` | string
|
|
21
13
|
`salesDescription` | string
|
|
14
|
+
`upccode` | string
|
|
15
|
+
`vendorname` | string
|
|
16
|
+
`custitemAnxRetailId` | string
|
|
22
17
|
`weight` | number
|
|
23
18
|
`weightUnit` | string
|
|
24
|
-
`
|
|
25
|
-
`
|
|
26
|
-
`liPrice` | string
|
|
27
|
-
`priceFeed` | string
|
|
28
|
-
`priceFeedCategory` | string
|
|
19
|
+
`custitemAnxAllowOversell` | string
|
|
20
|
+
`onlineLocationCost` | number
|
|
29
21
|
`popularityScore` | number
|
|
22
|
+
`excludeFrontend` | string
|
|
30
23
|
`excludeSearch` | string
|
|
31
24
|
`oversized` | string
|
|
32
|
-
`
|
|
25
|
+
`published` | Array<string>
|
|
26
|
+
`custitemrrpGst` | number
|
|
27
|
+
`liPrice` | string
|
|
28
|
+
`cfdPrice` | string
|
|
33
29
|
`labelLi` | string
|
|
34
30
|
`labelCfd` | string
|
|
35
31
|
`attribRoom` | Array<string>
|
|
36
32
|
`attribStyle` | Array<string>
|
|
37
33
|
`attribPrimarycolour` | string
|
|
34
|
+
`vendor` | string
|
|
35
|
+
`vendorId` | string
|
|
36
|
+
`priceFeed` | string
|
|
37
|
+
`priceFeedCategory` | string
|
|
38
38
|
|
|
39
39
|
## Example
|
|
40
40
|
|
|
@@ -44,34 +44,34 @@ import type { SyncProductNetsuiteProductRequest } from '@digital8/lighting-illus
|
|
|
44
44
|
// TODO: Update the object below with actual values
|
|
45
45
|
const example = {
|
|
46
46
|
"internalId": null,
|
|
47
|
-
"upccode": null,
|
|
48
|
-
"vendorname": null,
|
|
49
|
-
"custitemAnxRetailId": null,
|
|
50
|
-
"custitemrrpGst": null,
|
|
51
|
-
"onlineLocationCost": null,
|
|
52
|
-
"custitemAnxAllowOversell": null,
|
|
53
47
|
"productType": null,
|
|
54
|
-
"vendor": null,
|
|
55
|
-
"vendorId": null,
|
|
56
48
|
"supplierId": null,
|
|
57
49
|
"supplierName": null,
|
|
58
50
|
"salesDescription": null,
|
|
51
|
+
"upccode": null,
|
|
52
|
+
"vendorname": null,
|
|
53
|
+
"custitemAnxRetailId": null,
|
|
59
54
|
"weight": null,
|
|
60
55
|
"weightUnit": null,
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"liPrice": null,
|
|
64
|
-
"priceFeed": null,
|
|
65
|
-
"priceFeedCategory": null,
|
|
56
|
+
"custitemAnxAllowOversell": null,
|
|
57
|
+
"onlineLocationCost": null,
|
|
66
58
|
"popularityScore": null,
|
|
59
|
+
"excludeFrontend": null,
|
|
67
60
|
"excludeSearch": null,
|
|
68
61
|
"oversized": null,
|
|
69
|
-
"
|
|
62
|
+
"published": null,
|
|
63
|
+
"custitemrrpGst": null,
|
|
64
|
+
"liPrice": null,
|
|
65
|
+
"cfdPrice": null,
|
|
70
66
|
"labelLi": null,
|
|
71
67
|
"labelCfd": null,
|
|
72
68
|
"attribRoom": null,
|
|
73
69
|
"attribStyle": null,
|
|
74
70
|
"attribPrimarycolour": null,
|
|
71
|
+
"vendor": null,
|
|
72
|
+
"vendorId": null,
|
|
73
|
+
"priceFeed": null,
|
|
74
|
+
"priceFeedCategory": null,
|
|
75
75
|
} satisfies SyncProductNetsuiteProductRequest
|
|
76
76
|
|
|
77
77
|
console.log(example)
|
package/package.json
CHANGED
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload: string;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,6 +106,7 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
|
|
|
106
106
|
if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
|
|
107
107
|
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
108
108
|
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
109
|
+
if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
|
|
109
110
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
110
111
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
111
112
|
return true;
|
|
@@ -128,7 +129,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
128
129
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
129
130
|
'endpoint': json['endpoint'],
|
|
130
131
|
'responseCode': json['responseCode'],
|
|
131
|
-
'requestPayload': json['requestPayload']
|
|
132
|
+
'requestPayload': json['requestPayload'],
|
|
132
133
|
'responsePayload': json['responsePayload'],
|
|
133
134
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
134
135
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -30,85 +30,91 @@ export interface SyncProductNetsuiteProductRequest {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof SyncProductNetsuiteProductRequest
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
productType?: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof SyncProductNetsuiteProductRequest
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
supplierId?: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof SyncProductNetsuiteProductRequest
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
supplierName?: string;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
|
-
* @type {
|
|
48
|
+
* @type {string}
|
|
49
49
|
* @memberof SyncProductNetsuiteProductRequest
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
salesDescription?: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
|
-
* @type {
|
|
54
|
+
* @type {string}
|
|
55
55
|
* @memberof SyncProductNetsuiteProductRequest
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
upccode?: string;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof SyncProductNetsuiteProductRequest
|
|
62
62
|
*/
|
|
63
|
-
|
|
63
|
+
vendorname?: string;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {string}
|
|
67
67
|
* @memberof SyncProductNetsuiteProductRequest
|
|
68
68
|
*/
|
|
69
|
-
|
|
69
|
+
custitemAnxRetailId?: string;
|
|
70
70
|
/**
|
|
71
71
|
*
|
|
72
|
-
* @type {
|
|
72
|
+
* @type {number}
|
|
73
73
|
* @memberof SyncProductNetsuiteProductRequest
|
|
74
74
|
*/
|
|
75
|
-
|
|
75
|
+
weight?: number;
|
|
76
76
|
/**
|
|
77
77
|
*
|
|
78
78
|
* @type {string}
|
|
79
79
|
* @memberof SyncProductNetsuiteProductRequest
|
|
80
80
|
*/
|
|
81
|
-
|
|
81
|
+
weightUnit?: string;
|
|
82
82
|
/**
|
|
83
83
|
*
|
|
84
84
|
* @type {string}
|
|
85
85
|
* @memberof SyncProductNetsuiteProductRequest
|
|
86
86
|
*/
|
|
87
|
-
|
|
87
|
+
custitemAnxAllowOversell?: string;
|
|
88
88
|
/**
|
|
89
89
|
*
|
|
90
|
-
* @type {
|
|
90
|
+
* @type {number}
|
|
91
91
|
* @memberof SyncProductNetsuiteProductRequest
|
|
92
92
|
*/
|
|
93
|
-
|
|
93
|
+
onlineLocationCost?: number;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {number}
|
|
97
|
+
* @memberof SyncProductNetsuiteProductRequest
|
|
98
|
+
*/
|
|
99
|
+
popularityScore?: number;
|
|
94
100
|
/**
|
|
95
101
|
*
|
|
96
102
|
* @type {string}
|
|
97
103
|
* @memberof SyncProductNetsuiteProductRequest
|
|
98
104
|
*/
|
|
99
|
-
|
|
105
|
+
excludeFrontend?: string;
|
|
100
106
|
/**
|
|
101
107
|
*
|
|
102
|
-
* @type {
|
|
108
|
+
* @type {string}
|
|
103
109
|
* @memberof SyncProductNetsuiteProductRequest
|
|
104
110
|
*/
|
|
105
|
-
|
|
111
|
+
excludeSearch?: string;
|
|
106
112
|
/**
|
|
107
113
|
*
|
|
108
114
|
* @type {string}
|
|
109
115
|
* @memberof SyncProductNetsuiteProductRequest
|
|
110
116
|
*/
|
|
111
|
-
|
|
117
|
+
oversized?: string;
|
|
112
118
|
/**
|
|
113
119
|
*
|
|
114
120
|
* @type {Array<string>}
|
|
@@ -117,10 +123,10 @@ export interface SyncProductNetsuiteProductRequest {
|
|
|
117
123
|
published?: Array<string>;
|
|
118
124
|
/**
|
|
119
125
|
*
|
|
120
|
-
* @type {
|
|
126
|
+
* @type {number}
|
|
121
127
|
* @memberof SyncProductNetsuiteProductRequest
|
|
122
128
|
*/
|
|
123
|
-
|
|
129
|
+
custitemrrpGst?: number;
|
|
124
130
|
/**
|
|
125
131
|
*
|
|
126
132
|
* @type {string}
|
|
@@ -132,67 +138,61 @@ export interface SyncProductNetsuiteProductRequest {
|
|
|
132
138
|
* @type {string}
|
|
133
139
|
* @memberof SyncProductNetsuiteProductRequest
|
|
134
140
|
*/
|
|
135
|
-
|
|
141
|
+
cfdPrice?: string;
|
|
136
142
|
/**
|
|
137
143
|
*
|
|
138
144
|
* @type {string}
|
|
139
145
|
* @memberof SyncProductNetsuiteProductRequest
|
|
140
146
|
*/
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
*
|
|
144
|
-
* @type {number}
|
|
145
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
146
|
-
*/
|
|
147
|
-
popularityScore?: number;
|
|
147
|
+
labelLi?: string;
|
|
148
148
|
/**
|
|
149
149
|
*
|
|
150
150
|
* @type {string}
|
|
151
151
|
* @memberof SyncProductNetsuiteProductRequest
|
|
152
152
|
*/
|
|
153
|
-
|
|
153
|
+
labelCfd?: string;
|
|
154
154
|
/**
|
|
155
155
|
*
|
|
156
|
-
* @type {string}
|
|
156
|
+
* @type {Array<string>}
|
|
157
157
|
* @memberof SyncProductNetsuiteProductRequest
|
|
158
158
|
*/
|
|
159
|
-
|
|
159
|
+
attribRoom?: Array<string>;
|
|
160
160
|
/**
|
|
161
161
|
*
|
|
162
|
-
* @type {string}
|
|
162
|
+
* @type {Array<string>}
|
|
163
163
|
* @memberof SyncProductNetsuiteProductRequest
|
|
164
164
|
*/
|
|
165
|
-
|
|
165
|
+
attribStyle?: Array<string>;
|
|
166
166
|
/**
|
|
167
167
|
*
|
|
168
168
|
* @type {string}
|
|
169
169
|
* @memberof SyncProductNetsuiteProductRequest
|
|
170
170
|
*/
|
|
171
|
-
|
|
171
|
+
attribPrimarycolour?: string;
|
|
172
172
|
/**
|
|
173
173
|
*
|
|
174
174
|
* @type {string}
|
|
175
175
|
* @memberof SyncProductNetsuiteProductRequest
|
|
176
176
|
*/
|
|
177
|
-
|
|
177
|
+
vendor?: string;
|
|
178
178
|
/**
|
|
179
179
|
*
|
|
180
|
-
* @type {
|
|
180
|
+
* @type {string}
|
|
181
181
|
* @memberof SyncProductNetsuiteProductRequest
|
|
182
182
|
*/
|
|
183
|
-
|
|
183
|
+
vendorId?: string;
|
|
184
184
|
/**
|
|
185
185
|
*
|
|
186
|
-
* @type {
|
|
186
|
+
* @type {string}
|
|
187
187
|
* @memberof SyncProductNetsuiteProductRequest
|
|
188
188
|
*/
|
|
189
|
-
|
|
189
|
+
priceFeed?: string;
|
|
190
190
|
/**
|
|
191
191
|
*
|
|
192
192
|
* @type {string}
|
|
193
193
|
* @memberof SyncProductNetsuiteProductRequest
|
|
194
194
|
*/
|
|
195
|
-
|
|
195
|
+
priceFeedCategory?: string;
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
/**
|
|
@@ -214,34 +214,34 @@ export function SyncProductNetsuiteProductRequestFromJSONTyped(json: any, ignore
|
|
|
214
214
|
return {
|
|
215
215
|
|
|
216
216
|
'internalId': json['internalId'],
|
|
217
|
-
'upccode': json['upccode'] == null ? undefined : json['upccode'],
|
|
218
|
-
'vendorname': json['vendorname'] == null ? undefined : json['vendorname'],
|
|
219
|
-
'custitemAnxRetailId': json['custitem_anx_retail_id'] == null ? undefined : json['custitem_anx_retail_id'],
|
|
220
|
-
'custitemrrpGst': json['custitemrrp_gst'] == null ? undefined : json['custitemrrp_gst'],
|
|
221
|
-
'onlineLocationCost': json['online_location_cost'] == null ? undefined : json['online_location_cost'],
|
|
222
|
-
'custitemAnxAllowOversell': json['custitem_anx_allow_oversell'] == null ? undefined : json['custitem_anx_allow_oversell'],
|
|
223
217
|
'productType': json['productType'] == null ? undefined : json['productType'],
|
|
224
|
-
'vendor': json['vendor'] == null ? undefined : json['vendor'],
|
|
225
|
-
'vendorId': json['vendorId'] == null ? undefined : json['vendorId'],
|
|
226
218
|
'supplierId': json['supplierId'] == null ? undefined : json['supplierId'],
|
|
227
219
|
'supplierName': json['supplierName'] == null ? undefined : json['supplierName'],
|
|
228
220
|
'salesDescription': json['salesDescription'] == null ? undefined : json['salesDescription'],
|
|
221
|
+
'upccode': json['upccode'] == null ? undefined : json['upccode'],
|
|
222
|
+
'vendorname': json['vendorname'] == null ? undefined : json['vendorname'],
|
|
223
|
+
'custitemAnxRetailId': json['custitem_anx_retail_id'] == null ? undefined : json['custitem_anx_retail_id'],
|
|
229
224
|
'weight': json['weight'] == null ? undefined : json['weight'],
|
|
230
225
|
'weightUnit': json['weightUnit'] == null ? undefined : json['weightUnit'],
|
|
231
|
-
'
|
|
232
|
-
'
|
|
233
|
-
'liPrice': json['li_price'] == null ? undefined : json['li_price'],
|
|
234
|
-
'priceFeed': json['price_feed'] == null ? undefined : json['price_feed'],
|
|
235
|
-
'priceFeedCategory': json['price_feed_category'] == null ? undefined : json['price_feed_category'],
|
|
226
|
+
'custitemAnxAllowOversell': json['custitem_anx_allow_oversell'] == null ? undefined : json['custitem_anx_allow_oversell'],
|
|
227
|
+
'onlineLocationCost': json['online_location_cost'] == null ? undefined : json['online_location_cost'],
|
|
236
228
|
'popularityScore': json['popularity_score'] == null ? undefined : json['popularity_score'],
|
|
229
|
+
'excludeFrontend': json['exclude_frontend'] == null ? undefined : json['exclude_frontend'],
|
|
237
230
|
'excludeSearch': json['exclude_search'] == null ? undefined : json['exclude_search'],
|
|
238
231
|
'oversized': json['oversized'] == null ? undefined : json['oversized'],
|
|
239
|
-
'
|
|
232
|
+
'published': json['published'] == null ? undefined : json['published'],
|
|
233
|
+
'custitemrrpGst': json['custitemrrp_gst'] == null ? undefined : json['custitemrrp_gst'],
|
|
234
|
+
'liPrice': json['li_price'] == null ? undefined : json['li_price'],
|
|
235
|
+
'cfdPrice': json['cfd_price'] == null ? undefined : json['cfd_price'],
|
|
240
236
|
'labelLi': json['label_li'] == null ? undefined : json['label_li'],
|
|
241
237
|
'labelCfd': json['label_cfd'] == null ? undefined : json['label_cfd'],
|
|
242
238
|
'attribRoom': json['attrib_room'] == null ? undefined : json['attrib_room'],
|
|
243
239
|
'attribStyle': json['attrib_style'] == null ? undefined : json['attrib_style'],
|
|
244
240
|
'attribPrimarycolour': json['attrib_primarycolour'] == null ? undefined : json['attrib_primarycolour'],
|
|
241
|
+
'vendor': json['vendor'] == null ? undefined : json['vendor'],
|
|
242
|
+
'vendorId': json['vendorId'] == null ? undefined : json['vendorId'],
|
|
243
|
+
'priceFeed': json['price_feed'] == null ? undefined : json['price_feed'],
|
|
244
|
+
'priceFeedCategory': json['price_feed_category'] == null ? undefined : json['price_feed_category'],
|
|
245
245
|
};
|
|
246
246
|
}
|
|
247
247
|
|
|
@@ -257,34 +257,34 @@ export function SyncProductNetsuiteProductRequestToJSONTyped(value?: SyncProduct
|
|
|
257
257
|
return {
|
|
258
258
|
|
|
259
259
|
'internalId': value['internalId'],
|
|
260
|
-
'upccode': value['upccode'],
|
|
261
|
-
'vendorname': value['vendorname'],
|
|
262
|
-
'custitem_anx_retail_id': value['custitemAnxRetailId'],
|
|
263
|
-
'custitemrrp_gst': value['custitemrrpGst'],
|
|
264
|
-
'online_location_cost': value['onlineLocationCost'],
|
|
265
|
-
'custitem_anx_allow_oversell': value['custitemAnxAllowOversell'],
|
|
266
260
|
'productType': value['productType'],
|
|
267
|
-
'vendor': value['vendor'],
|
|
268
|
-
'vendorId': value['vendorId'],
|
|
269
261
|
'supplierId': value['supplierId'],
|
|
270
262
|
'supplierName': value['supplierName'],
|
|
271
263
|
'salesDescription': value['salesDescription'],
|
|
264
|
+
'upccode': value['upccode'],
|
|
265
|
+
'vendorname': value['vendorname'],
|
|
266
|
+
'custitem_anx_retail_id': value['custitemAnxRetailId'],
|
|
272
267
|
'weight': value['weight'],
|
|
273
268
|
'weightUnit': value['weightUnit'],
|
|
274
|
-
'
|
|
275
|
-
'
|
|
276
|
-
'li_price': value['liPrice'],
|
|
277
|
-
'price_feed': value['priceFeed'],
|
|
278
|
-
'price_feed_category': value['priceFeedCategory'],
|
|
269
|
+
'custitem_anx_allow_oversell': value['custitemAnxAllowOversell'],
|
|
270
|
+
'online_location_cost': value['onlineLocationCost'],
|
|
279
271
|
'popularity_score': value['popularityScore'],
|
|
272
|
+
'exclude_frontend': value['excludeFrontend'],
|
|
280
273
|
'exclude_search': value['excludeSearch'],
|
|
281
274
|
'oversized': value['oversized'],
|
|
282
|
-
'
|
|
275
|
+
'published': value['published'],
|
|
276
|
+
'custitemrrp_gst': value['custitemrrpGst'],
|
|
277
|
+
'li_price': value['liPrice'],
|
|
278
|
+
'cfd_price': value['cfdPrice'],
|
|
283
279
|
'label_li': value['labelLi'],
|
|
284
280
|
'label_cfd': value['labelCfd'],
|
|
285
281
|
'attrib_room': value['attribRoom'],
|
|
286
282
|
'attrib_style': value['attribStyle'],
|
|
287
283
|
'attrib_primarycolour': value['attribPrimarycolour'],
|
|
284
|
+
'vendor': value['vendor'],
|
|
285
|
+
'vendorId': value['vendorId'],
|
|
286
|
+
'price_feed': value['priceFeed'],
|
|
287
|
+
'price_feed_category': value['priceFeedCategory'],
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
290
|
|