@digital8/lighting-illusions-ts-sdk 0.0.503 → 0.0.504
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 +1 -3
- package/dist/models/ProductChildResource.d.ts +19 -1
- package/dist/models/ProductChildResource.js +9 -3
- package/dist/models/StoreProductChildRequest.d.ts +6 -0
- package/dist/models/StoreProductChildRequest.js +4 -0
- package/dist/models/StoreProductRequest.d.ts +0 -6
- package/dist/models/StoreProductRequest.js +0 -4
- package/dist/models/UpdateProductRequest.d.ts +0 -6
- package/dist/models/UpdateProductRequest.js +0 -4
- package/docs/ProductChildResource.md +6 -0
- package/docs/StoreProductChildRequest.md +2 -0
- package/docs/StoreProductRequest.md +0 -2
- package/docs/UpdateProductRequest.md +0 -2
- package/package.json +1 -1
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/ProductChildResource.ts +27 -3
- package/src/models/StoreProductChildRequest.ts +9 -0
- package/src/models/StoreProductRequest.ts +0 -9
- package/src/models/UpdateProductRequest.ts +0 -9
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.504
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -361,7 +361,7 @@ and is automatically generated by the
|
|
|
361
361
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
362
362
|
|
|
363
363
|
- API version: `1.0.0`
|
|
364
|
-
- Package version: `0.0.
|
|
364
|
+
- Package version: `0.0.504`
|
|
365
365
|
- Generator version: `7.17.0`
|
|
366
366
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
367
367
|
|
|
@@ -37,8 +37,6 @@ 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;
|
|
42
40
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
43
41
|
return false;
|
|
44
42
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -60,7 +58,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
58
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
61
59
|
'endpoint': json['endpoint'],
|
|
62
60
|
'responseCode': json['responseCode'],
|
|
63
|
-
'requestPayload': json['requestPayload'],
|
|
61
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
64
62
|
'responsePayload': json['responsePayload'],
|
|
65
63
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
66
64
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -82,7 +82,7 @@ export interface ProductChildResource {
|
|
|
82
82
|
* @type {string}
|
|
83
83
|
* @memberof ProductChildResource
|
|
84
84
|
*/
|
|
85
|
-
supplierBarcode
|
|
85
|
+
supplierBarcode?: string | null;
|
|
86
86
|
/**
|
|
87
87
|
*
|
|
88
88
|
* @type {number}
|
|
@@ -101,6 +101,24 @@ export interface ProductChildResource {
|
|
|
101
101
|
* @memberof ProductChildResource
|
|
102
102
|
*/
|
|
103
103
|
isOversized: boolean;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {boolean}
|
|
107
|
+
* @memberof ProductChildResource
|
|
108
|
+
*/
|
|
109
|
+
isBundle: boolean;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {string}
|
|
113
|
+
* @memberof ProductChildResource
|
|
114
|
+
*/
|
|
115
|
+
bundleBarcode?: string | null;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @type {string}
|
|
119
|
+
* @memberof ProductChildResource
|
|
120
|
+
*/
|
|
121
|
+
displayInSocialFeed?: string | null;
|
|
104
122
|
/**
|
|
105
123
|
*
|
|
106
124
|
* @type {number}
|
|
@@ -44,14 +44,14 @@ function instanceOfProductChildResource(value) {
|
|
|
44
44
|
return false;
|
|
45
45
|
if (!('hideFromFrontend' in value) || value['hideFromFrontend'] === undefined)
|
|
46
46
|
return false;
|
|
47
|
-
if (!('supplierBarcode' in value) || value['supplierBarcode'] === undefined)
|
|
48
|
-
return false;
|
|
49
47
|
if (!('popularityScore' in value) || value['popularityScore'] === undefined)
|
|
50
48
|
return false;
|
|
51
49
|
if (!('excludeFromSearch' in value) || value['excludeFromSearch'] === undefined)
|
|
52
50
|
return false;
|
|
53
51
|
if (!('isOversized' in value) || value['isOversized'] === undefined)
|
|
54
52
|
return false;
|
|
53
|
+
if (!('isBundle' in value) || value['isBundle'] === undefined)
|
|
54
|
+
return false;
|
|
55
55
|
if (!('googleStockStatus' in value) || value['googleStockStatus'] === undefined)
|
|
56
56
|
return false;
|
|
57
57
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
@@ -88,10 +88,13 @@ function ProductChildResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
88
88
|
'sku': json['sku'],
|
|
89
89
|
'buyPrice': json['buyPrice'],
|
|
90
90
|
'hideFromFrontend': json['hideFromFrontend'],
|
|
91
|
-
'supplierBarcode': json['supplierBarcode'],
|
|
91
|
+
'supplierBarcode': json['supplierBarcode'] == null ? undefined : json['supplierBarcode'],
|
|
92
92
|
'popularityScore': json['popularityScore'],
|
|
93
93
|
'excludeFromSearch': json['excludeFromSearch'],
|
|
94
94
|
'isOversized': json['isOversized'],
|
|
95
|
+
'isBundle': json['isBundle'],
|
|
96
|
+
'bundleBarcode': json['bundleBarcode'] == null ? undefined : json['bundleBarcode'],
|
|
97
|
+
'displayInSocialFeed': json['displayInSocialFeed'] == null ? undefined : json['displayInSocialFeed'],
|
|
95
98
|
'googleStockStatus': json['googleStockStatus'],
|
|
96
99
|
'netsuiteId': json['netsuiteId'],
|
|
97
100
|
'newArrivalStartDate': json['newArrivalStartDate'],
|
|
@@ -127,6 +130,9 @@ function ProductChildResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
127
130
|
'popularityScore': value['popularityScore'],
|
|
128
131
|
'excludeFromSearch': value['excludeFromSearch'],
|
|
129
132
|
'isOversized': value['isOversized'],
|
|
133
|
+
'isBundle': value['isBundle'],
|
|
134
|
+
'bundleBarcode': value['bundleBarcode'],
|
|
135
|
+
'displayInSocialFeed': value['displayInSocialFeed'],
|
|
130
136
|
'googleStockStatus': value['googleStockStatus'],
|
|
131
137
|
'netsuiteId': value['netsuiteId'],
|
|
132
138
|
'newArrivalStartDate': value['newArrivalStartDate'],
|
|
@@ -39,6 +39,8 @@ function instanceOfStoreProductChildRequest(value) {
|
|
|
39
39
|
return false;
|
|
40
40
|
if (!('allowOversell' in value) || value['allowOversell'] === undefined)
|
|
41
41
|
return false;
|
|
42
|
+
if (!('isBundle' in value) || value['isBundle'] === undefined)
|
|
43
|
+
return false;
|
|
42
44
|
if (!('isOversized' in value) || value['isOversized'] === undefined)
|
|
43
45
|
return false;
|
|
44
46
|
if (!('stock' in value) || value['stock'] === undefined)
|
|
@@ -69,6 +71,7 @@ function StoreProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
69
71
|
'hideFromFrontend': json['hide_from_frontend'],
|
|
70
72
|
'excludeFromSearch': json['exclude_from_search'],
|
|
71
73
|
'allowOversell': json['allow_oversell'],
|
|
74
|
+
'isBundle': json['is_bundle'],
|
|
72
75
|
'isOversized': json['is_oversized'],
|
|
73
76
|
'popularityScore': json['popularity_score'] == null ? undefined : json['popularity_score'],
|
|
74
77
|
'stock': json['stock'],
|
|
@@ -98,6 +101,7 @@ function StoreProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
98
101
|
'hide_from_frontend': value['hideFromFrontend'],
|
|
99
102
|
'exclude_from_search': value['excludeFromSearch'],
|
|
100
103
|
'allow_oversell': value['allowOversell'],
|
|
104
|
+
'is_bundle': value['isBundle'],
|
|
101
105
|
'is_oversized': value['isOversized'],
|
|
102
106
|
'popularity_score': value['popularityScore'],
|
|
103
107
|
'stock': value['stock'],
|
|
@@ -31,8 +31,6 @@ function instanceOfStoreProductRequest(value) {
|
|
|
31
31
|
return false;
|
|
32
32
|
if (!('googleCategoryId' in value) || value['googleCategoryId'] === undefined)
|
|
33
33
|
return false;
|
|
34
|
-
if (!('isBundle' in value) || value['isBundle'] === undefined)
|
|
35
|
-
return false;
|
|
36
34
|
if (!('isAccessory' in value) || value['isAccessory'] === undefined)
|
|
37
35
|
return false;
|
|
38
36
|
if (!('warranty' in value) || value['warranty'] === undefined)
|
|
@@ -51,7 +49,6 @@ function StoreProductRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
49
|
'productTypeId': json['product_type_id'],
|
|
52
50
|
'supplierId': json['supplier_id'],
|
|
53
51
|
'googleCategoryId': json['google_category_id'],
|
|
54
|
-
'isBundle': json['is_bundle'],
|
|
55
52
|
'isAccessory': json['is_accessory'],
|
|
56
53
|
'displayName': json['display_name'] == null ? undefined : json['display_name'],
|
|
57
54
|
'warranty': json['warranty'],
|
|
@@ -71,7 +68,6 @@ function StoreProductRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
71
68
|
'product_type_id': value['productTypeId'],
|
|
72
69
|
'supplier_id': value['supplierId'],
|
|
73
70
|
'google_category_id': value['googleCategoryId'],
|
|
74
|
-
'is_bundle': value['isBundle'],
|
|
75
71
|
'is_accessory': value['isAccessory'],
|
|
76
72
|
'display_name': value['displayName'],
|
|
77
73
|
'warranty': value['warranty'],
|
|
@@ -31,8 +31,6 @@ function instanceOfUpdateProductRequest(value) {
|
|
|
31
31
|
return false;
|
|
32
32
|
if (!('googleCategoryId' in value) || value['googleCategoryId'] === undefined)
|
|
33
33
|
return false;
|
|
34
|
-
if (!('isBundle' in value) || value['isBundle'] === undefined)
|
|
35
|
-
return false;
|
|
36
34
|
if (!('isAccessory' in value) || value['isAccessory'] === undefined)
|
|
37
35
|
return false;
|
|
38
36
|
if (!('warranty' in value) || value['warranty'] === undefined)
|
|
@@ -51,7 +49,6 @@ function UpdateProductRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
49
|
'productTypeId': json['product_type_id'],
|
|
52
50
|
'supplierId': json['supplier_id'],
|
|
53
51
|
'googleCategoryId': json['google_category_id'],
|
|
54
|
-
'isBundle': json['is_bundle'],
|
|
55
52
|
'isAccessory': json['is_accessory'],
|
|
56
53
|
'displayName': json['display_name'] == null ? undefined : json['display_name'],
|
|
57
54
|
'warranty': json['warranty'],
|
|
@@ -71,7 +68,6 @@ function UpdateProductRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
71
68
|
'product_type_id': value['productTypeId'],
|
|
72
69
|
'supplier_id': value['supplierId'],
|
|
73
70
|
'google_category_id': value['googleCategoryId'],
|
|
74
|
-
'is_bundle': value['isBundle'],
|
|
75
71
|
'is_accessory': value['isAccessory'],
|
|
76
72
|
'display_name': value['displayName'],
|
|
77
73
|
'warranty': value['warranty'],
|
|
@@ -20,6 +20,9 @@ Name | Type
|
|
|
20
20
|
`popularityScore` | number
|
|
21
21
|
`excludeFromSearch` | boolean
|
|
22
22
|
`isOversized` | boolean
|
|
23
|
+
`isBundle` | boolean
|
|
24
|
+
`bundleBarcode` | string
|
|
25
|
+
`displayInSocialFeed` | string
|
|
23
26
|
`googleStockStatus` | number
|
|
24
27
|
`netsuiteId` | number
|
|
25
28
|
`newArrivalStartDate` | string
|
|
@@ -52,6 +55,9 @@ const example = {
|
|
|
52
55
|
"popularityScore": null,
|
|
53
56
|
"excludeFromSearch": null,
|
|
54
57
|
"isOversized": null,
|
|
58
|
+
"isBundle": null,
|
|
59
|
+
"bundleBarcode": null,
|
|
60
|
+
"displayInSocialFeed": null,
|
|
55
61
|
"googleStockStatus": null,
|
|
56
62
|
"netsuiteId": null,
|
|
57
63
|
"newArrivalStartDate": null,
|
|
@@ -16,6 +16,7 @@ Name | Type
|
|
|
16
16
|
`hideFromFrontend` | boolean
|
|
17
17
|
`excludeFromSearch` | boolean
|
|
18
18
|
`allowOversell` | boolean
|
|
19
|
+
`isBundle` | boolean
|
|
19
20
|
`isOversized` | boolean
|
|
20
21
|
`popularityScore` | number
|
|
21
22
|
`stock` | number
|
|
@@ -42,6 +43,7 @@ const example = {
|
|
|
42
43
|
"hideFromFrontend": null,
|
|
43
44
|
"excludeFromSearch": null,
|
|
44
45
|
"allowOversell": null,
|
|
46
|
+
"isBundle": null,
|
|
45
47
|
"isOversized": null,
|
|
46
48
|
"popularityScore": null,
|
|
47
49
|
"stock": null,
|
|
@@ -10,7 +10,6 @@ Name | Type
|
|
|
10
10
|
`productTypeId` | number
|
|
11
11
|
`supplierId` | number
|
|
12
12
|
`googleCategoryId` | number
|
|
13
|
-
`isBundle` | boolean
|
|
14
13
|
`isAccessory` | boolean
|
|
15
14
|
`displayName` | string
|
|
16
15
|
`warranty` | string
|
|
@@ -27,7 +26,6 @@ const example = {
|
|
|
27
26
|
"productTypeId": null,
|
|
28
27
|
"supplierId": null,
|
|
29
28
|
"googleCategoryId": null,
|
|
30
|
-
"isBundle": null,
|
|
31
29
|
"isAccessory": null,
|
|
32
30
|
"displayName": null,
|
|
33
31
|
"warranty": null,
|
|
@@ -10,7 +10,6 @@ Name | Type
|
|
|
10
10
|
`productTypeId` | number
|
|
11
11
|
`supplierId` | number
|
|
12
12
|
`googleCategoryId` | number
|
|
13
|
-
`isBundle` | boolean
|
|
14
13
|
`isAccessory` | boolean
|
|
15
14
|
`displayName` | string
|
|
16
15
|
`warranty` | string
|
|
@@ -27,7 +26,6 @@ const example = {
|
|
|
27
26
|
"productTypeId": null,
|
|
28
27
|
"supplierId": null,
|
|
29
28
|
"googleCategoryId": null,
|
|
30
|
-
"isBundle": null,
|
|
31
29
|
"isAccessory": null,
|
|
32
30
|
"displayName": null,
|
|
33
31
|
"warranty": null,
|
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 | null;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,7 +106,6 @@ 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;
|
|
110
109
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
111
110
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
112
111
|
return true;
|
|
@@ -129,7 +128,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
129
128
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
130
129
|
'endpoint': json['endpoint'],
|
|
131
130
|
'responseCode': json['responseCode'],
|
|
132
|
-
'requestPayload': json['requestPayload'],
|
|
131
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
133
132
|
'responsePayload': json['responsePayload'],
|
|
134
133
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
135
134
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -99,7 +99,7 @@ export interface ProductChildResource {
|
|
|
99
99
|
* @type {string}
|
|
100
100
|
* @memberof ProductChildResource
|
|
101
101
|
*/
|
|
102
|
-
supplierBarcode
|
|
102
|
+
supplierBarcode?: string | null;
|
|
103
103
|
/**
|
|
104
104
|
*
|
|
105
105
|
* @type {number}
|
|
@@ -118,6 +118,24 @@ export interface ProductChildResource {
|
|
|
118
118
|
* @memberof ProductChildResource
|
|
119
119
|
*/
|
|
120
120
|
isOversized: boolean;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @type {boolean}
|
|
124
|
+
* @memberof ProductChildResource
|
|
125
|
+
*/
|
|
126
|
+
isBundle: boolean;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* @type {string}
|
|
130
|
+
* @memberof ProductChildResource
|
|
131
|
+
*/
|
|
132
|
+
bundleBarcode?: string | null;
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @type {string}
|
|
136
|
+
* @memberof ProductChildResource
|
|
137
|
+
*/
|
|
138
|
+
displayInSocialFeed?: string | null;
|
|
121
139
|
/**
|
|
122
140
|
*
|
|
123
141
|
* @type {number}
|
|
@@ -194,10 +212,10 @@ export function instanceOfProductChildResource(value: object): value is ProductC
|
|
|
194
212
|
if (!('sku' in value) || value['sku'] === undefined) return false;
|
|
195
213
|
if (!('buyPrice' in value) || value['buyPrice'] === undefined) return false;
|
|
196
214
|
if (!('hideFromFrontend' in value) || value['hideFromFrontend'] === undefined) return false;
|
|
197
|
-
if (!('supplierBarcode' in value) || value['supplierBarcode'] === undefined) return false;
|
|
198
215
|
if (!('popularityScore' in value) || value['popularityScore'] === undefined) return false;
|
|
199
216
|
if (!('excludeFromSearch' in value) || value['excludeFromSearch'] === undefined) return false;
|
|
200
217
|
if (!('isOversized' in value) || value['isOversized'] === undefined) return false;
|
|
218
|
+
if (!('isBundle' in value) || value['isBundle'] === undefined) return false;
|
|
201
219
|
if (!('googleStockStatus' in value) || value['googleStockStatus'] === undefined) return false;
|
|
202
220
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
203
221
|
if (!('newArrivalStartDate' in value) || value['newArrivalStartDate'] === undefined) return false;
|
|
@@ -229,10 +247,13 @@ export function ProductChildResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
229
247
|
'sku': json['sku'],
|
|
230
248
|
'buyPrice': json['buyPrice'],
|
|
231
249
|
'hideFromFrontend': json['hideFromFrontend'],
|
|
232
|
-
'supplierBarcode': json['supplierBarcode'],
|
|
250
|
+
'supplierBarcode': json['supplierBarcode'] == null ? undefined : json['supplierBarcode'],
|
|
233
251
|
'popularityScore': json['popularityScore'],
|
|
234
252
|
'excludeFromSearch': json['excludeFromSearch'],
|
|
235
253
|
'isOversized': json['isOversized'],
|
|
254
|
+
'isBundle': json['isBundle'],
|
|
255
|
+
'bundleBarcode': json['bundleBarcode'] == null ? undefined : json['bundleBarcode'],
|
|
256
|
+
'displayInSocialFeed': json['displayInSocialFeed'] == null ? undefined : json['displayInSocialFeed'],
|
|
236
257
|
'googleStockStatus': json['googleStockStatus'],
|
|
237
258
|
'netsuiteId': json['netsuiteId'],
|
|
238
259
|
'newArrivalStartDate': json['newArrivalStartDate'],
|
|
@@ -271,6 +292,9 @@ export function ProductChildResourceToJSONTyped(value?: ProductChildResource | n
|
|
|
271
292
|
'popularityScore': value['popularityScore'],
|
|
272
293
|
'excludeFromSearch': value['excludeFromSearch'],
|
|
273
294
|
'isOversized': value['isOversized'],
|
|
295
|
+
'isBundle': value['isBundle'],
|
|
296
|
+
'bundleBarcode': value['bundleBarcode'],
|
|
297
|
+
'displayInSocialFeed': value['displayInSocialFeed'],
|
|
274
298
|
'googleStockStatus': value['googleStockStatus'],
|
|
275
299
|
'netsuiteId': value['netsuiteId'],
|
|
276
300
|
'newArrivalStartDate': value['newArrivalStartDate'],
|
|
@@ -101,6 +101,12 @@ export interface StoreProductChildRequest {
|
|
|
101
101
|
* @memberof StoreProductChildRequest
|
|
102
102
|
*/
|
|
103
103
|
allowOversell: boolean;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {boolean}
|
|
107
|
+
* @memberof StoreProductChildRequest
|
|
108
|
+
*/
|
|
109
|
+
isBundle: boolean;
|
|
104
110
|
/**
|
|
105
111
|
*
|
|
106
112
|
* @type {boolean}
|
|
@@ -162,6 +168,7 @@ export function instanceOfStoreProductChildRequest(value: object): value is Stor
|
|
|
162
168
|
if (!('hideFromFrontend' in value) || value['hideFromFrontend'] === undefined) return false;
|
|
163
169
|
if (!('excludeFromSearch' in value) || value['excludeFromSearch'] === undefined) return false;
|
|
164
170
|
if (!('allowOversell' in value) || value['allowOversell'] === undefined) return false;
|
|
171
|
+
if (!('isBundle' in value) || value['isBundle'] === undefined) return false;
|
|
165
172
|
if (!('isOversized' in value) || value['isOversized'] === undefined) return false;
|
|
166
173
|
if (!('stock' in value) || value['stock'] === undefined) return false;
|
|
167
174
|
if (!('sites' in value) || value['sites'] === undefined) return false;
|
|
@@ -190,6 +197,7 @@ export function StoreProductChildRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
190
197
|
'hideFromFrontend': json['hide_from_frontend'],
|
|
191
198
|
'excludeFromSearch': json['exclude_from_search'],
|
|
192
199
|
'allowOversell': json['allow_oversell'],
|
|
200
|
+
'isBundle': json['is_bundle'],
|
|
193
201
|
'isOversized': json['is_oversized'],
|
|
194
202
|
'popularityScore': json['popularity_score'] == null ? undefined : json['popularity_score'],
|
|
195
203
|
'stock': json['stock'],
|
|
@@ -222,6 +230,7 @@ export function StoreProductChildRequestToJSONTyped(value?: StoreProductChildReq
|
|
|
222
230
|
'hide_from_frontend': value['hideFromFrontend'],
|
|
223
231
|
'exclude_from_search': value['excludeFromSearch'],
|
|
224
232
|
'allow_oversell': value['allowOversell'],
|
|
233
|
+
'is_bundle': value['isBundle'],
|
|
225
234
|
'is_oversized': value['isOversized'],
|
|
226
235
|
'popularity_score': value['popularityScore'],
|
|
227
236
|
'stock': value['stock'],
|
|
@@ -51,12 +51,6 @@ export interface StoreProductRequest {
|
|
|
51
51
|
* @memberof StoreProductRequest
|
|
52
52
|
*/
|
|
53
53
|
googleCategoryId: number;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {boolean}
|
|
57
|
-
* @memberof StoreProductRequest
|
|
58
|
-
*/
|
|
59
|
-
isBundle: boolean;
|
|
60
54
|
/**
|
|
61
55
|
*
|
|
62
56
|
* @type {boolean}
|
|
@@ -91,7 +85,6 @@ export function instanceOfStoreProductRequest(value: object): value is StoreProd
|
|
|
91
85
|
if (!('productTypeId' in value) || value['productTypeId'] === undefined) return false;
|
|
92
86
|
if (!('supplierId' in value) || value['supplierId'] === undefined) return false;
|
|
93
87
|
if (!('googleCategoryId' in value) || value['googleCategoryId'] === undefined) return false;
|
|
94
|
-
if (!('isBundle' in value) || value['isBundle'] === undefined) return false;
|
|
95
88
|
if (!('isAccessory' in value) || value['isAccessory'] === undefined) return false;
|
|
96
89
|
if (!('warranty' in value) || value['warranty'] === undefined) return false;
|
|
97
90
|
return true;
|
|
@@ -111,7 +104,6 @@ export function StoreProductRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
111
104
|
'productTypeId': json['product_type_id'],
|
|
112
105
|
'supplierId': json['supplier_id'],
|
|
113
106
|
'googleCategoryId': json['google_category_id'],
|
|
114
|
-
'isBundle': json['is_bundle'],
|
|
115
107
|
'isAccessory': json['is_accessory'],
|
|
116
108
|
'displayName': json['display_name'] == null ? undefined : json['display_name'],
|
|
117
109
|
'warranty': json['warranty'],
|
|
@@ -134,7 +126,6 @@ export function StoreProductRequestToJSONTyped(value?: StoreProductRequest | nul
|
|
|
134
126
|
'product_type_id': value['productTypeId'],
|
|
135
127
|
'supplier_id': value['supplierId'],
|
|
136
128
|
'google_category_id': value['googleCategoryId'],
|
|
137
|
-
'is_bundle': value['isBundle'],
|
|
138
129
|
'is_accessory': value['isAccessory'],
|
|
139
130
|
'display_name': value['displayName'],
|
|
140
131
|
'warranty': value['warranty'],
|
|
@@ -51,12 +51,6 @@ export interface UpdateProductRequest {
|
|
|
51
51
|
* @memberof UpdateProductRequest
|
|
52
52
|
*/
|
|
53
53
|
googleCategoryId: number;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {boolean}
|
|
57
|
-
* @memberof UpdateProductRequest
|
|
58
|
-
*/
|
|
59
|
-
isBundle: boolean;
|
|
60
54
|
/**
|
|
61
55
|
*
|
|
62
56
|
* @type {boolean}
|
|
@@ -91,7 +85,6 @@ export function instanceOfUpdateProductRequest(value: object): value is UpdatePr
|
|
|
91
85
|
if (!('productTypeId' in value) || value['productTypeId'] === undefined) return false;
|
|
92
86
|
if (!('supplierId' in value) || value['supplierId'] === undefined) return false;
|
|
93
87
|
if (!('googleCategoryId' in value) || value['googleCategoryId'] === undefined) return false;
|
|
94
|
-
if (!('isBundle' in value) || value['isBundle'] === undefined) return false;
|
|
95
88
|
if (!('isAccessory' in value) || value['isAccessory'] === undefined) return false;
|
|
96
89
|
if (!('warranty' in value) || value['warranty'] === undefined) return false;
|
|
97
90
|
return true;
|
|
@@ -111,7 +104,6 @@ export function UpdateProductRequestFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
111
104
|
'productTypeId': json['product_type_id'],
|
|
112
105
|
'supplierId': json['supplier_id'],
|
|
113
106
|
'googleCategoryId': json['google_category_id'],
|
|
114
|
-
'isBundle': json['is_bundle'],
|
|
115
107
|
'isAccessory': json['is_accessory'],
|
|
116
108
|
'displayName': json['display_name'] == null ? undefined : json['display_name'],
|
|
117
109
|
'warranty': json['warranty'],
|
|
@@ -134,7 +126,6 @@ export function UpdateProductRequestToJSONTyped(value?: UpdateProductRequest | n
|
|
|
134
126
|
'product_type_id': value['productTypeId'],
|
|
135
127
|
'supplier_id': value['supplierId'],
|
|
136
128
|
'google_category_id': value['googleCategoryId'],
|
|
137
|
-
'is_bundle': value['isBundle'],
|
|
138
129
|
'is_accessory': value['isAccessory'],
|
|
139
130
|
'display_name': value['displayName'],
|
|
140
131
|
'warranty': value['warranty'],
|