@digital8/lighting-illusions-ts-sdk 0.0.502 → 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/ProductChildResource.d.ts +23 -5
- package/dist/models/ProductChildResource.js +21 -9
- package/dist/models/StoreProductChildRequest.d.ts +9 -3
- package/dist/models/StoreProductChildRequest.js +11 -7
- package/dist/models/StoreProductRequest.d.ts +0 -6
- package/dist/models/StoreProductRequest.js +0 -4
- package/dist/models/UpdateProductChildRequest.d.ts +3 -3
- package/dist/models/UpdateProductChildRequest.js +7 -7
- package/dist/models/UpdateProductRequest.d.ts +0 -6
- package/dist/models/UpdateProductRequest.js +0 -4
- package/docs/ProductChildResource.md +12 -6
- package/docs/StoreProductChildRequest.md +8 -6
- package/docs/StoreProductRequest.md +0 -2
- package/docs/UpdateProductChildRequest.md +6 -6
- package/docs/UpdateProductRequest.md +0 -2
- package/package.json +1 -1
- package/src/models/ProductChildResource.ts +40 -13
- package/src/models/StoreProductChildRequest.ts +19 -10
- package/src/models/StoreProductRequest.ts +0 -9
- package/src/models/UpdateProductChildRequest.ts +10 -10
- 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
|
|
|
@@ -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}
|
|
@@ -91,16 +91,34 @@ export interface ProductChildResource {
|
|
|
91
91
|
popularityScore: number;
|
|
92
92
|
/**
|
|
93
93
|
*
|
|
94
|
-
* @type {
|
|
94
|
+
* @type {boolean}
|
|
95
95
|
* @memberof ProductChildResource
|
|
96
96
|
*/
|
|
97
|
-
|
|
97
|
+
excludeFromSearch: boolean;
|
|
98
98
|
/**
|
|
99
99
|
*
|
|
100
100
|
* @type {boolean}
|
|
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}
|
|
@@ -118,13 +136,13 @@ export interface ProductChildResource {
|
|
|
118
136
|
* @type {string}
|
|
119
137
|
* @memberof ProductChildResource
|
|
120
138
|
*/
|
|
121
|
-
|
|
139
|
+
newArrivalStartDate: string;
|
|
122
140
|
/**
|
|
123
141
|
*
|
|
124
142
|
* @type {string}
|
|
125
143
|
* @memberof ProductChildResource
|
|
126
144
|
*/
|
|
127
|
-
|
|
145
|
+
newArrivalEndDate: string;
|
|
128
146
|
/**
|
|
129
147
|
*
|
|
130
148
|
* @type {string}
|
|
@@ -44,16 +44,22 @@ 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;
|
|
49
|
+
if (!('excludeFromSearch' in value) || value['excludeFromSearch'] === undefined)
|
|
50
|
+
return false;
|
|
51
51
|
if (!('isOversized' in value) || value['isOversized'] === undefined)
|
|
52
52
|
return false;
|
|
53
|
+
if (!('isBundle' in value) || value['isBundle'] === undefined)
|
|
54
|
+
return false;
|
|
53
55
|
if (!('googleStockStatus' in value) || value['googleStockStatus'] === undefined)
|
|
54
56
|
return false;
|
|
55
57
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
56
58
|
return false;
|
|
59
|
+
if (!('newArrivalStartDate' in value) || value['newArrivalStartDate'] === undefined)
|
|
60
|
+
return false;
|
|
61
|
+
if (!('newArrivalEndDate' in value) || value['newArrivalEndDate'] === undefined)
|
|
62
|
+
return false;
|
|
57
63
|
if (!('siteDetails' in value) || value['siteDetails'] === undefined)
|
|
58
64
|
return false;
|
|
59
65
|
if (!('assets' in value) || value['assets'] === undefined)
|
|
@@ -82,14 +88,17 @@ function ProductChildResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
82
88
|
'sku': json['sku'],
|
|
83
89
|
'buyPrice': json['buyPrice'],
|
|
84
90
|
'hideFromFrontend': json['hideFromFrontend'],
|
|
85
|
-
'supplierBarcode': json['supplierBarcode'],
|
|
91
|
+
'supplierBarcode': json['supplierBarcode'] == null ? undefined : json['supplierBarcode'],
|
|
86
92
|
'popularityScore': json['popularityScore'],
|
|
87
|
-
'
|
|
93
|
+
'excludeFromSearch': json['excludeFromSearch'],
|
|
88
94
|
'isOversized': json['isOversized'],
|
|
95
|
+
'isBundle': json['isBundle'],
|
|
96
|
+
'bundleBarcode': json['bundleBarcode'] == null ? undefined : json['bundleBarcode'],
|
|
97
|
+
'displayInSocialFeed': json['displayInSocialFeed'] == null ? undefined : json['displayInSocialFeed'],
|
|
89
98
|
'googleStockStatus': json['googleStockStatus'],
|
|
90
99
|
'netsuiteId': json['netsuiteId'],
|
|
91
|
-
'
|
|
92
|
-
'
|
|
100
|
+
'newArrivalStartDate': json['newArrivalStartDate'],
|
|
101
|
+
'newArrivalEndDate': json['newArrivalEndDate'],
|
|
93
102
|
'omnisendId': json['omnisendId'] == null ? undefined : json['omnisendId'],
|
|
94
103
|
'isDisabled': json['isDisabled'] == null ? undefined : json['isDisabled'],
|
|
95
104
|
'siteDetails': (json['siteDetails'] == null ? null : json['siteDetails'].map(ProductChildSiteDetailResource_1.ProductChildSiteDetailResourceFromJSON)),
|
|
@@ -119,12 +128,15 @@ function ProductChildResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
119
128
|
'hideFromFrontend': value['hideFromFrontend'],
|
|
120
129
|
'supplierBarcode': value['supplierBarcode'],
|
|
121
130
|
'popularityScore': value['popularityScore'],
|
|
122
|
-
'
|
|
131
|
+
'excludeFromSearch': value['excludeFromSearch'],
|
|
123
132
|
'isOversized': value['isOversized'],
|
|
133
|
+
'isBundle': value['isBundle'],
|
|
134
|
+
'bundleBarcode': value['bundleBarcode'],
|
|
135
|
+
'displayInSocialFeed': value['displayInSocialFeed'],
|
|
124
136
|
'googleStockStatus': value['googleStockStatus'],
|
|
125
137
|
'netsuiteId': value['netsuiteId'],
|
|
126
|
-
'
|
|
127
|
-
'
|
|
138
|
+
'newArrivalStartDate': value['newArrivalStartDate'],
|
|
139
|
+
'newArrivalEndDate': value['newArrivalEndDate'],
|
|
128
140
|
'omnisendId': value['omnisendId'],
|
|
129
141
|
'isDisabled': value['isDisabled'],
|
|
130
142
|
'siteDetails': (value['siteDetails'] == null ? null : value['siteDetails'].map(ProductChildSiteDetailResource_1.ProductChildSiteDetailResourceToJSON)),
|
|
@@ -47,13 +47,13 @@ export interface StoreProductChildRequest {
|
|
|
47
47
|
* @type {Date}
|
|
48
48
|
* @memberof StoreProductChildRequest
|
|
49
49
|
*/
|
|
50
|
-
|
|
50
|
+
newArrivalStartDate?: Date;
|
|
51
51
|
/**
|
|
52
52
|
*
|
|
53
53
|
* @type {Date}
|
|
54
54
|
* @memberof StoreProductChildRequest
|
|
55
55
|
*/
|
|
56
|
-
|
|
56
|
+
newArrivalEndDate?: Date;
|
|
57
57
|
/**
|
|
58
58
|
*
|
|
59
59
|
* @type {string}
|
|
@@ -83,7 +83,13 @@ export interface StoreProductChildRequest {
|
|
|
83
83
|
* @type {boolean}
|
|
84
84
|
* @memberof StoreProductChildRequest
|
|
85
85
|
*/
|
|
86
|
-
|
|
86
|
+
isBundle: boolean;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {boolean}
|
|
90
|
+
* @memberof StoreProductChildRequest
|
|
91
|
+
*/
|
|
92
|
+
isOversized: boolean;
|
|
87
93
|
/**
|
|
88
94
|
*
|
|
89
95
|
* @type {number}
|
|
@@ -39,7 +39,9 @@ function instanceOfStoreProductChildRequest(value) {
|
|
|
39
39
|
return false;
|
|
40
40
|
if (!('allowOversell' in value) || value['allowOversell'] === undefined)
|
|
41
41
|
return false;
|
|
42
|
-
if (!('
|
|
42
|
+
if (!('isBundle' in value) || value['isBundle'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('isOversized' in value) || value['isOversized'] === undefined)
|
|
43
45
|
return false;
|
|
44
46
|
if (!('stock' in value) || value['stock'] === undefined)
|
|
45
47
|
return false;
|
|
@@ -63,13 +65,14 @@ function StoreProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
65
|
'name': json['name'],
|
|
64
66
|
'sku': json['sku'],
|
|
65
67
|
'model': json['model'],
|
|
66
|
-
'
|
|
67
|
-
'
|
|
68
|
+
'newArrivalStartDate': json['new_arrival_start_date'] == null ? undefined : (new Date(json['new_arrival_start_date'])),
|
|
69
|
+
'newArrivalEndDate': json['new_arrival_end_date'] == null ? undefined : (new Date(json['new_arrival_end_date'])),
|
|
68
70
|
'warranty': json['warranty'] == null ? undefined : json['warranty'],
|
|
69
71
|
'hideFromFrontend': json['hide_from_frontend'],
|
|
70
72
|
'excludeFromSearch': json['exclude_from_search'],
|
|
71
73
|
'allowOversell': json['allow_oversell'],
|
|
72
|
-
'
|
|
74
|
+
'isBundle': json['is_bundle'],
|
|
75
|
+
'isOversized': json['is_oversized'],
|
|
73
76
|
'popularityScore': json['popularity_score'] == null ? undefined : json['popularity_score'],
|
|
74
77
|
'stock': json['stock'],
|
|
75
78
|
'sites': (json['sites'].map(StoreProductChildRequestSitesInner_1.StoreProductChildRequestSitesInnerFromJSON)),
|
|
@@ -92,13 +95,14 @@ function StoreProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
92
95
|
'name': value['name'],
|
|
93
96
|
'sku': value['sku'],
|
|
94
97
|
'model': value['model'],
|
|
95
|
-
'
|
|
96
|
-
'
|
|
98
|
+
'new_arrival_start_date': value['newArrivalStartDate'] == null ? value['newArrivalStartDate'] : value['newArrivalStartDate'].toISOString(),
|
|
99
|
+
'new_arrival_end_date': value['newArrivalEndDate'] == null ? value['newArrivalEndDate'] : value['newArrivalEndDate'].toISOString(),
|
|
97
100
|
'warranty': value['warranty'],
|
|
98
101
|
'hide_from_frontend': value['hideFromFrontend'],
|
|
99
102
|
'exclude_from_search': value['excludeFromSearch'],
|
|
100
103
|
'allow_oversell': value['allowOversell'],
|
|
101
|
-
'
|
|
104
|
+
'is_bundle': value['isBundle'],
|
|
105
|
+
'is_oversized': value['isOversized'],
|
|
102
106
|
'popularity_score': value['popularityScore'],
|
|
103
107
|
'stock': value['stock'],
|
|
104
108
|
'sites': (value['sites'].map(StoreProductChildRequestSitesInner_1.StoreProductChildRequestSitesInnerToJSON)),
|
|
@@ -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'],
|
|
@@ -40,13 +40,13 @@ export interface UpdateProductChildRequest {
|
|
|
40
40
|
* @type {Date}
|
|
41
41
|
* @memberof UpdateProductChildRequest
|
|
42
42
|
*/
|
|
43
|
-
|
|
43
|
+
newArrivalStartDate?: Date;
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
46
|
* @type {Date}
|
|
47
47
|
* @memberof UpdateProductChildRequest
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
newArrivalEndDate?: Date;
|
|
50
50
|
/**
|
|
51
51
|
*
|
|
52
52
|
* @type {string}
|
|
@@ -76,7 +76,7 @@ export interface UpdateProductChildRequest {
|
|
|
76
76
|
* @type {boolean}
|
|
77
77
|
* @memberof UpdateProductChildRequest
|
|
78
78
|
*/
|
|
79
|
-
|
|
79
|
+
isOversized: boolean;
|
|
80
80
|
/**
|
|
81
81
|
*
|
|
82
82
|
* @type {number}
|
|
@@ -32,7 +32,7 @@ function instanceOfUpdateProductChildRequest(value) {
|
|
|
32
32
|
return false;
|
|
33
33
|
if (!('allowOversell' in value) || value['allowOversell'] === undefined)
|
|
34
34
|
return false;
|
|
35
|
-
if (!('
|
|
35
|
+
if (!('isOversized' in value) || value['isOversized'] === undefined)
|
|
36
36
|
return false;
|
|
37
37
|
if (!('sites' in value) || value['sites'] === undefined)
|
|
38
38
|
return false;
|
|
@@ -51,13 +51,13 @@ function UpdateProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
51
|
'name': json['name'],
|
|
52
52
|
'sku': json['sku'],
|
|
53
53
|
'model': json['model'],
|
|
54
|
-
'
|
|
55
|
-
'
|
|
54
|
+
'newArrivalStartDate': json['new_arrival_start_date'] == null ? undefined : (new Date(json['new_arrival_start_date'])),
|
|
55
|
+
'newArrivalEndDate': json['new_arrival_end_date'] == null ? undefined : (new Date(json['new_arrival_end_date'])),
|
|
56
56
|
'warranty': json['warranty'] == null ? undefined : json['warranty'],
|
|
57
57
|
'hideFromFrontend': json['hide_from_frontend'] == null ? undefined : json['hide_from_frontend'],
|
|
58
58
|
'excludeFromSearch': json['exclude_from_search'] == null ? undefined : json['exclude_from_search'],
|
|
59
59
|
'allowOversell': json['allow_oversell'],
|
|
60
|
-
'
|
|
60
|
+
'isOversized': json['is_oversized'],
|
|
61
61
|
'popularityScore': json['popularity_score'] == null ? undefined : json['popularity_score'],
|
|
62
62
|
'stock': json['stock'] == null ? undefined : json['stock'],
|
|
63
63
|
'sites': (json['sites'].map(StoreProductChildRequestSitesInner_1.StoreProductChildRequestSitesInnerFromJSON)),
|
|
@@ -76,13 +76,13 @@ function UpdateProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
76
76
|
'name': value['name'],
|
|
77
77
|
'sku': value['sku'],
|
|
78
78
|
'model': value['model'],
|
|
79
|
-
'
|
|
80
|
-
'
|
|
79
|
+
'new_arrival_start_date': value['newArrivalStartDate'] == null ? value['newArrivalStartDate'] : value['newArrivalStartDate'].toISOString(),
|
|
80
|
+
'new_arrival_end_date': value['newArrivalEndDate'] == null ? value['newArrivalEndDate'] : value['newArrivalEndDate'].toISOString(),
|
|
81
81
|
'warranty': value['warranty'],
|
|
82
82
|
'hide_from_frontend': value['hideFromFrontend'],
|
|
83
83
|
'exclude_from_search': value['excludeFromSearch'],
|
|
84
84
|
'allow_oversell': value['allowOversell'],
|
|
85
|
-
'
|
|
85
|
+
'is_oversized': value['isOversized'],
|
|
86
86
|
'popularity_score': value['popularityScore'],
|
|
87
87
|
'stock': value['stock'],
|
|
88
88
|
'sites': (value['sites'].map(StoreProductChildRequestSitesInner_1.StoreProductChildRequestSitesInnerToJSON)),
|
|
@@ -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'],
|
|
@@ -18,12 +18,15 @@ Name | Type
|
|
|
18
18
|
`hideFromFrontend` | boolean
|
|
19
19
|
`supplierBarcode` | string
|
|
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
|
-
`
|
|
26
|
-
`
|
|
28
|
+
`newArrivalStartDate` | string
|
|
29
|
+
`newArrivalEndDate` | string
|
|
27
30
|
`omnisendId` | string
|
|
28
31
|
`isDisabled` | string
|
|
29
32
|
`siteDetails` | [Array<ProductChildSiteDetailResource>](ProductChildSiteDetailResource.md)
|
|
@@ -50,12 +53,15 @@ const example = {
|
|
|
50
53
|
"hideFromFrontend": null,
|
|
51
54
|
"supplierBarcode": null,
|
|
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
|
-
"
|
|
58
|
-
"
|
|
63
|
+
"newArrivalStartDate": null,
|
|
64
|
+
"newArrivalEndDate": null,
|
|
59
65
|
"omnisendId": null,
|
|
60
66
|
"isDisabled": null,
|
|
61
67
|
"siteDetails": null,
|
|
@@ -10,13 +10,14 @@ Name | Type
|
|
|
10
10
|
`name` | string
|
|
11
11
|
`sku` | string
|
|
12
12
|
`model` | string
|
|
13
|
-
`
|
|
14
|
-
`
|
|
13
|
+
`newArrivalStartDate` | Date
|
|
14
|
+
`newArrivalEndDate` | Date
|
|
15
15
|
`warranty` | string
|
|
16
16
|
`hideFromFrontend` | boolean
|
|
17
17
|
`excludeFromSearch` | boolean
|
|
18
18
|
`allowOversell` | boolean
|
|
19
|
-
`
|
|
19
|
+
`isBundle` | boolean
|
|
20
|
+
`isOversized` | boolean
|
|
20
21
|
`popularityScore` | number
|
|
21
22
|
`stock` | number
|
|
22
23
|
`sites` | [Array<StoreProductChildRequestSitesInner>](StoreProductChildRequestSitesInner.md)
|
|
@@ -36,13 +37,14 @@ const example = {
|
|
|
36
37
|
"name": null,
|
|
37
38
|
"sku": null,
|
|
38
39
|
"model": null,
|
|
39
|
-
"
|
|
40
|
-
"
|
|
40
|
+
"newArrivalStartDate": null,
|
|
41
|
+
"newArrivalEndDate": null,
|
|
41
42
|
"warranty": null,
|
|
42
43
|
"hideFromFrontend": null,
|
|
43
44
|
"excludeFromSearch": null,
|
|
44
45
|
"allowOversell": null,
|
|
45
|
-
"
|
|
46
|
+
"isBundle": null,
|
|
47
|
+
"isOversized": null,
|
|
46
48
|
"popularityScore": null,
|
|
47
49
|
"stock": null,
|
|
48
50
|
"sites": 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,
|
|
@@ -9,13 +9,13 @@ Name | Type
|
|
|
9
9
|
`name` | string
|
|
10
10
|
`sku` | string
|
|
11
11
|
`model` | string
|
|
12
|
-
`
|
|
13
|
-
`
|
|
12
|
+
`newArrivalStartDate` | Date
|
|
13
|
+
`newArrivalEndDate` | Date
|
|
14
14
|
`warranty` | string
|
|
15
15
|
`hideFromFrontend` | boolean
|
|
16
16
|
`excludeFromSearch` | boolean
|
|
17
17
|
`allowOversell` | boolean
|
|
18
|
-
`
|
|
18
|
+
`isOversized` | boolean
|
|
19
19
|
`popularityScore` | number
|
|
20
20
|
`stock` | number
|
|
21
21
|
`sites` | [Array<StoreProductChildRequestSitesInner>](StoreProductChildRequestSitesInner.md)
|
|
@@ -31,13 +31,13 @@ const example = {
|
|
|
31
31
|
"name": null,
|
|
32
32
|
"sku": null,
|
|
33
33
|
"model": null,
|
|
34
|
-
"
|
|
35
|
-
"
|
|
34
|
+
"newArrivalStartDate": null,
|
|
35
|
+
"newArrivalEndDate": null,
|
|
36
36
|
"warranty": null,
|
|
37
37
|
"hideFromFrontend": null,
|
|
38
38
|
"excludeFromSearch": null,
|
|
39
39
|
"allowOversell": null,
|
|
40
|
-
"
|
|
40
|
+
"isOversized": null,
|
|
41
41
|
"popularityScore": null,
|
|
42
42
|
"stock": null,
|
|
43
43
|
"sites": 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
|
@@ -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}
|
|
@@ -108,16 +108,34 @@ export interface ProductChildResource {
|
|
|
108
108
|
popularityScore: number;
|
|
109
109
|
/**
|
|
110
110
|
*
|
|
111
|
-
* @type {
|
|
111
|
+
* @type {boolean}
|
|
112
112
|
* @memberof ProductChildResource
|
|
113
113
|
*/
|
|
114
|
-
|
|
114
|
+
excludeFromSearch: boolean;
|
|
115
115
|
/**
|
|
116
116
|
*
|
|
117
117
|
* @type {boolean}
|
|
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}
|
|
@@ -135,13 +153,13 @@ export interface ProductChildResource {
|
|
|
135
153
|
* @type {string}
|
|
136
154
|
* @memberof ProductChildResource
|
|
137
155
|
*/
|
|
138
|
-
|
|
156
|
+
newArrivalStartDate: string;
|
|
139
157
|
/**
|
|
140
158
|
*
|
|
141
159
|
* @type {string}
|
|
142
160
|
* @memberof ProductChildResource
|
|
143
161
|
*/
|
|
144
|
-
|
|
162
|
+
newArrivalEndDate: string;
|
|
145
163
|
/**
|
|
146
164
|
*
|
|
147
165
|
* @type {string}
|
|
@@ -194,11 +212,14 @@ 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;
|
|
216
|
+
if (!('excludeFromSearch' in value) || value['excludeFromSearch'] === undefined) return false;
|
|
199
217
|
if (!('isOversized' in value) || value['isOversized'] === undefined) return false;
|
|
218
|
+
if (!('isBundle' in value) || value['isBundle'] === undefined) return false;
|
|
200
219
|
if (!('googleStockStatus' in value) || value['googleStockStatus'] === undefined) return false;
|
|
201
220
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
221
|
+
if (!('newArrivalStartDate' in value) || value['newArrivalStartDate'] === undefined) return false;
|
|
222
|
+
if (!('newArrivalEndDate' in value) || value['newArrivalEndDate'] === undefined) return false;
|
|
202
223
|
if (!('siteDetails' in value) || value['siteDetails'] === undefined) return false;
|
|
203
224
|
if (!('assets' in value) || value['assets'] === undefined) return false;
|
|
204
225
|
if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
|
|
@@ -226,14 +247,17 @@ export function ProductChildResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
226
247
|
'sku': json['sku'],
|
|
227
248
|
'buyPrice': json['buyPrice'],
|
|
228
249
|
'hideFromFrontend': json['hideFromFrontend'],
|
|
229
|
-
'supplierBarcode': json['supplierBarcode'],
|
|
250
|
+
'supplierBarcode': json['supplierBarcode'] == null ? undefined : json['supplierBarcode'],
|
|
230
251
|
'popularityScore': json['popularityScore'],
|
|
231
|
-
'
|
|
252
|
+
'excludeFromSearch': json['excludeFromSearch'],
|
|
232
253
|
'isOversized': json['isOversized'],
|
|
254
|
+
'isBundle': json['isBundle'],
|
|
255
|
+
'bundleBarcode': json['bundleBarcode'] == null ? undefined : json['bundleBarcode'],
|
|
256
|
+
'displayInSocialFeed': json['displayInSocialFeed'] == null ? undefined : json['displayInSocialFeed'],
|
|
233
257
|
'googleStockStatus': json['googleStockStatus'],
|
|
234
258
|
'netsuiteId': json['netsuiteId'],
|
|
235
|
-
'
|
|
236
|
-
'
|
|
259
|
+
'newArrivalStartDate': json['newArrivalStartDate'],
|
|
260
|
+
'newArrivalEndDate': json['newArrivalEndDate'],
|
|
237
261
|
'omnisendId': json['omnisendId'] == null ? undefined : json['omnisendId'],
|
|
238
262
|
'isDisabled': json['isDisabled'] == null ? undefined : json['isDisabled'],
|
|
239
263
|
'siteDetails': (json['siteDetails'] == null ? null : (json['siteDetails'] as Array<any>).map(ProductChildSiteDetailResourceFromJSON)),
|
|
@@ -266,12 +290,15 @@ export function ProductChildResourceToJSONTyped(value?: ProductChildResource | n
|
|
|
266
290
|
'hideFromFrontend': value['hideFromFrontend'],
|
|
267
291
|
'supplierBarcode': value['supplierBarcode'],
|
|
268
292
|
'popularityScore': value['popularityScore'],
|
|
269
|
-
'
|
|
293
|
+
'excludeFromSearch': value['excludeFromSearch'],
|
|
270
294
|
'isOversized': value['isOversized'],
|
|
295
|
+
'isBundle': value['isBundle'],
|
|
296
|
+
'bundleBarcode': value['bundleBarcode'],
|
|
297
|
+
'displayInSocialFeed': value['displayInSocialFeed'],
|
|
271
298
|
'googleStockStatus': value['googleStockStatus'],
|
|
272
299
|
'netsuiteId': value['netsuiteId'],
|
|
273
|
-
'
|
|
274
|
-
'
|
|
300
|
+
'newArrivalStartDate': value['newArrivalStartDate'],
|
|
301
|
+
'newArrivalEndDate': value['newArrivalEndDate'],
|
|
275
302
|
'omnisendId': value['omnisendId'],
|
|
276
303
|
'isDisabled': value['isDisabled'],
|
|
277
304
|
'siteDetails': (value['siteDetails'] == null ? null : (value['siteDetails'] as Array<any>).map(ProductChildSiteDetailResourceToJSON)),
|
|
@@ -70,13 +70,13 @@ export interface StoreProductChildRequest {
|
|
|
70
70
|
* @type {Date}
|
|
71
71
|
* @memberof StoreProductChildRequest
|
|
72
72
|
*/
|
|
73
|
-
|
|
73
|
+
newArrivalStartDate?: Date;
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
76
76
|
* @type {Date}
|
|
77
77
|
* @memberof StoreProductChildRequest
|
|
78
78
|
*/
|
|
79
|
-
|
|
79
|
+
newArrivalEndDate?: Date;
|
|
80
80
|
/**
|
|
81
81
|
*
|
|
82
82
|
* @type {string}
|
|
@@ -106,7 +106,13 @@ export interface StoreProductChildRequest {
|
|
|
106
106
|
* @type {boolean}
|
|
107
107
|
* @memberof StoreProductChildRequest
|
|
108
108
|
*/
|
|
109
|
-
|
|
109
|
+
isBundle: boolean;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {boolean}
|
|
113
|
+
* @memberof StoreProductChildRequest
|
|
114
|
+
*/
|
|
115
|
+
isOversized: boolean;
|
|
110
116
|
/**
|
|
111
117
|
*
|
|
112
118
|
* @type {number}
|
|
@@ -162,7 +168,8 @@ 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;
|
|
165
|
-
if (!('
|
|
171
|
+
if (!('isBundle' in value) || value['isBundle'] === undefined) return false;
|
|
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;
|
|
168
175
|
if (!('attributeValues' in value) || value['attributeValues'] === undefined) return false;
|
|
@@ -184,13 +191,14 @@ export function StoreProductChildRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
184
191
|
'name': json['name'],
|
|
185
192
|
'sku': json['sku'],
|
|
186
193
|
'model': json['model'],
|
|
187
|
-
'
|
|
188
|
-
'
|
|
194
|
+
'newArrivalStartDate': json['new_arrival_start_date'] == null ? undefined : (new Date(json['new_arrival_start_date'])),
|
|
195
|
+
'newArrivalEndDate': json['new_arrival_end_date'] == null ? undefined : (new Date(json['new_arrival_end_date'])),
|
|
189
196
|
'warranty': json['warranty'] == null ? undefined : json['warranty'],
|
|
190
197
|
'hideFromFrontend': json['hide_from_frontend'],
|
|
191
198
|
'excludeFromSearch': json['exclude_from_search'],
|
|
192
199
|
'allowOversell': json['allow_oversell'],
|
|
193
|
-
'
|
|
200
|
+
'isBundle': json['is_bundle'],
|
|
201
|
+
'isOversized': json['is_oversized'],
|
|
194
202
|
'popularityScore': json['popularity_score'] == null ? undefined : json['popularity_score'],
|
|
195
203
|
'stock': json['stock'],
|
|
196
204
|
'sites': ((json['sites'] as Array<any>).map(StoreProductChildRequestSitesInnerFromJSON)),
|
|
@@ -216,13 +224,14 @@ export function StoreProductChildRequestToJSONTyped(value?: StoreProductChildReq
|
|
|
216
224
|
'name': value['name'],
|
|
217
225
|
'sku': value['sku'],
|
|
218
226
|
'model': value['model'],
|
|
219
|
-
'
|
|
220
|
-
'
|
|
227
|
+
'new_arrival_start_date': value['newArrivalStartDate'] == null ? value['newArrivalStartDate'] : value['newArrivalStartDate'].toISOString(),
|
|
228
|
+
'new_arrival_end_date': value['newArrivalEndDate'] == null ? value['newArrivalEndDate'] : value['newArrivalEndDate'].toISOString(),
|
|
221
229
|
'warranty': value['warranty'],
|
|
222
230
|
'hide_from_frontend': value['hideFromFrontend'],
|
|
223
231
|
'exclude_from_search': value['excludeFromSearch'],
|
|
224
232
|
'allow_oversell': value['allowOversell'],
|
|
225
|
-
'
|
|
233
|
+
'is_bundle': value['isBundle'],
|
|
234
|
+
'is_oversized': value['isOversized'],
|
|
226
235
|
'popularity_score': value['popularityScore'],
|
|
227
236
|
'stock': value['stock'],
|
|
228
237
|
'sites': ((value['sites'] as Array<any>).map(StoreProductChildRequestSitesInnerToJSON)),
|
|
@@ -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'],
|
|
@@ -57,13 +57,13 @@ export interface UpdateProductChildRequest {
|
|
|
57
57
|
* @type {Date}
|
|
58
58
|
* @memberof UpdateProductChildRequest
|
|
59
59
|
*/
|
|
60
|
-
|
|
60
|
+
newArrivalStartDate?: Date;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
63
|
* @type {Date}
|
|
64
64
|
* @memberof UpdateProductChildRequest
|
|
65
65
|
*/
|
|
66
|
-
|
|
66
|
+
newArrivalEndDate?: Date;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @type {string}
|
|
@@ -93,7 +93,7 @@ export interface UpdateProductChildRequest {
|
|
|
93
93
|
* @type {boolean}
|
|
94
94
|
* @memberof UpdateProductChildRequest
|
|
95
95
|
*/
|
|
96
|
-
|
|
96
|
+
isOversized: boolean;
|
|
97
97
|
/**
|
|
98
98
|
*
|
|
99
99
|
* @type {number}
|
|
@@ -128,7 +128,7 @@ export function instanceOfUpdateProductChildRequest(value: object): value is Upd
|
|
|
128
128
|
if (!('sku' in value) || value['sku'] === undefined) return false;
|
|
129
129
|
if (!('model' in value) || value['model'] === undefined) return false;
|
|
130
130
|
if (!('allowOversell' in value) || value['allowOversell'] === undefined) return false;
|
|
131
|
-
if (!('
|
|
131
|
+
if (!('isOversized' in value) || value['isOversized'] === undefined) return false;
|
|
132
132
|
if (!('sites' in value) || value['sites'] === undefined) return false;
|
|
133
133
|
if (!('assets' in value) || value['assets'] === undefined) return false;
|
|
134
134
|
return true;
|
|
@@ -147,13 +147,13 @@ export function UpdateProductChildRequestFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
147
147
|
'name': json['name'],
|
|
148
148
|
'sku': json['sku'],
|
|
149
149
|
'model': json['model'],
|
|
150
|
-
'
|
|
151
|
-
'
|
|
150
|
+
'newArrivalStartDate': json['new_arrival_start_date'] == null ? undefined : (new Date(json['new_arrival_start_date'])),
|
|
151
|
+
'newArrivalEndDate': json['new_arrival_end_date'] == null ? undefined : (new Date(json['new_arrival_end_date'])),
|
|
152
152
|
'warranty': json['warranty'] == null ? undefined : json['warranty'],
|
|
153
153
|
'hideFromFrontend': json['hide_from_frontend'] == null ? undefined : json['hide_from_frontend'],
|
|
154
154
|
'excludeFromSearch': json['exclude_from_search'] == null ? undefined : json['exclude_from_search'],
|
|
155
155
|
'allowOversell': json['allow_oversell'],
|
|
156
|
-
'
|
|
156
|
+
'isOversized': json['is_oversized'],
|
|
157
157
|
'popularityScore': json['popularity_score'] == null ? undefined : json['popularity_score'],
|
|
158
158
|
'stock': json['stock'] == null ? undefined : json['stock'],
|
|
159
159
|
'sites': ((json['sites'] as Array<any>).map(StoreProductChildRequestSitesInnerFromJSON)),
|
|
@@ -175,13 +175,13 @@ export function UpdateProductChildRequestToJSONTyped(value?: UpdateProductChildR
|
|
|
175
175
|
'name': value['name'],
|
|
176
176
|
'sku': value['sku'],
|
|
177
177
|
'model': value['model'],
|
|
178
|
-
'
|
|
179
|
-
'
|
|
178
|
+
'new_arrival_start_date': value['newArrivalStartDate'] == null ? value['newArrivalStartDate'] : value['newArrivalStartDate'].toISOString(),
|
|
179
|
+
'new_arrival_end_date': value['newArrivalEndDate'] == null ? value['newArrivalEndDate'] : value['newArrivalEndDate'].toISOString(),
|
|
180
180
|
'warranty': value['warranty'],
|
|
181
181
|
'hide_from_frontend': value['hideFromFrontend'],
|
|
182
182
|
'exclude_from_search': value['excludeFromSearch'],
|
|
183
183
|
'allow_oversell': value['allowOversell'],
|
|
184
|
-
'
|
|
184
|
+
'is_oversized': value['isOversized'],
|
|
185
185
|
'popularity_score': value['popularityScore'],
|
|
186
186
|
'stock': value['stock'],
|
|
187
187
|
'sites': ((value['sites'] as Array<any>).map(StoreProductChildRequestSitesInnerToJSON)),
|
|
@@ -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'],
|