@digital8/lighting-illusions-ts-sdk 0.0.756 → 0.0.757
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/ProductCategoryLiteResource.d.ts +6 -0
- package/dist/models/ProductCategoryLiteResource.js +4 -0
- package/dist/models/ProductChildListResource.d.ts +12 -0
- package/dist/models/ProductChildListResource.js +6 -0
- package/dist/models/ProductResource.d.ts +2 -2
- package/dist/models/ProductResource.js +3 -3
- package/docs/ProductCategoryLiteResource.md +2 -0
- package/docs/ProductChildListResource.md +4 -0
- package/docs/ProductResource.md +2 -2
- package/package.json +1 -1
- package/src/models/ProductCategoryLiteResource.ts +9 -0
- package/src/models/ProductChildListResource.ts +17 -0
- package/src/models/ProductResource.ts +5 -5
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.757
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -458,7 +458,7 @@ and is automatically generated by the
|
|
|
458
458
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
459
459
|
|
|
460
460
|
- API version: `1.0.0`
|
|
461
|
-
- Package version: `0.0.
|
|
461
|
+
- Package version: `0.0.757`
|
|
462
462
|
- Generator version: `7.19.0`
|
|
463
463
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
464
464
|
|
|
@@ -27,6 +27,12 @@ export interface ProductCategoryLiteResource {
|
|
|
27
27
|
* @memberof ProductCategoryLiteResource
|
|
28
28
|
*/
|
|
29
29
|
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ProductCategoryLiteResource
|
|
34
|
+
*/
|
|
35
|
+
siteId: number;
|
|
30
36
|
}
|
|
31
37
|
/**
|
|
32
38
|
* Check if a given object implements the ProductCategoryLiteResource interface.
|
|
@@ -24,6 +24,8 @@ exports.ProductCategoryLiteResourceToJSONTyped = ProductCategoryLiteResourceToJS
|
|
|
24
24
|
function instanceOfProductCategoryLiteResource(value) {
|
|
25
25
|
if (!('name' in value) || value['name'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
+
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
28
|
+
return false;
|
|
27
29
|
return true;
|
|
28
30
|
}
|
|
29
31
|
function ProductCategoryLiteResourceFromJSON(json) {
|
|
@@ -36,6 +38,7 @@ function ProductCategoryLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
38
|
return {
|
|
37
39
|
'id': json['id'] == null ? undefined : json['id'],
|
|
38
40
|
'name': json['name'],
|
|
41
|
+
'siteId': json['siteId'],
|
|
39
42
|
};
|
|
40
43
|
}
|
|
41
44
|
function ProductCategoryLiteResourceToJSON(json) {
|
|
@@ -49,5 +52,6 @@ function ProductCategoryLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
49
52
|
return {
|
|
50
53
|
'id': value['id'],
|
|
51
54
|
'name': value['name'],
|
|
55
|
+
'siteId': value['siteId'],
|
|
52
56
|
};
|
|
53
57
|
}
|
|
@@ -53,6 +53,18 @@ export interface ProductChildListResource {
|
|
|
53
53
|
* @memberof ProductChildListResource
|
|
54
54
|
*/
|
|
55
55
|
stock: number;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof ProductChildListResource
|
|
60
|
+
*/
|
|
61
|
+
isDisabled?: string | null;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {number}
|
|
65
|
+
* @memberof ProductChildListResource
|
|
66
|
+
*/
|
|
67
|
+
netsuiteId: number;
|
|
56
68
|
/**
|
|
57
69
|
*
|
|
58
70
|
* @type {AssetLiteResource}
|
|
@@ -34,6 +34,8 @@ function instanceOfProductChildListResource(value) {
|
|
|
34
34
|
return false;
|
|
35
35
|
if (!('stock' in value) || value['stock'] === undefined)
|
|
36
36
|
return false;
|
|
37
|
+
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
38
|
+
return false;
|
|
37
39
|
if (!('thumbnail' in value) || value['thumbnail'] === undefined)
|
|
38
40
|
return false;
|
|
39
41
|
if (!('siteDetails' in value) || value['siteDetails'] === undefined)
|
|
@@ -54,6 +56,8 @@ function ProductChildListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
56
|
'name': json['name'],
|
|
55
57
|
'model': json['model'],
|
|
56
58
|
'stock': json['stock'],
|
|
59
|
+
'isDisabled': json['isDisabled'] == null ? undefined : json['isDisabled'],
|
|
60
|
+
'netsuiteId': json['netsuiteId'],
|
|
57
61
|
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['thumbnail']),
|
|
58
62
|
'siteDetails': (json['siteDetails'] == null ? null : json['siteDetails'].map(ProductChildSiteDetailLiteResource_1.ProductChildSiteDetailLiteResourceFromJSON)),
|
|
59
63
|
};
|
|
@@ -73,6 +77,8 @@ function ProductChildListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
73
77
|
'name': value['name'],
|
|
74
78
|
'model': value['model'],
|
|
75
79
|
'stock': value['stock'],
|
|
80
|
+
'isDisabled': value['isDisabled'],
|
|
81
|
+
'netsuiteId': value['netsuiteId'],
|
|
76
82
|
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['thumbnail']),
|
|
77
83
|
'siteDetails': (value['siteDetails'] == null ? null : value['siteDetails'].map(ProductChildSiteDetailLiteResource_1.ProductChildSiteDetailLiteResourceToJSON)),
|
|
78
84
|
};
|
|
@@ -35,7 +35,7 @@ function instanceOfProductResource(value) {
|
|
|
35
35
|
return false;
|
|
36
36
|
if (!('warranty' in value) || value['warranty'] === undefined)
|
|
37
37
|
return false;
|
|
38
|
-
if (!('
|
|
38
|
+
if (!('categories' in value) || value['categories'] === undefined)
|
|
39
39
|
return false;
|
|
40
40
|
if (!('isDisabled' in value) || value['isDisabled'] === undefined)
|
|
41
41
|
return false;
|
|
@@ -64,7 +64,7 @@ function ProductResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
64
|
'displayName': json['displayName'],
|
|
65
65
|
'isAccessory': json['isAccessory'],
|
|
66
66
|
'warranty': json['warranty'],
|
|
67
|
-
'
|
|
67
|
+
'categories': json['categories'],
|
|
68
68
|
'isDisabled': json['isDisabled'],
|
|
69
69
|
'googleCategory': (0, GoogleCategoryResource_1.GoogleCategoryResourceFromJSON)(json['googleCategory']),
|
|
70
70
|
'supplier': (0, SupplierLiteResource_1.SupplierLiteResourceFromJSON)(json['supplier']),
|
|
@@ -87,7 +87,7 @@ function ProductResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
87
87
|
'displayName': value['displayName'],
|
|
88
88
|
'isAccessory': value['isAccessory'],
|
|
89
89
|
'warranty': value['warranty'],
|
|
90
|
-
'
|
|
90
|
+
'categories': value['categories'],
|
|
91
91
|
'isDisabled': value['isDisabled'],
|
|
92
92
|
'googleCategory': (0, GoogleCategoryResource_1.GoogleCategoryResourceToJSON)(value['googleCategory']),
|
|
93
93
|
'supplier': (0, SupplierLiteResource_1.SupplierLiteResourceToJSON)(value['supplier']),
|
|
@@ -8,6 +8,7 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`id` | number
|
|
10
10
|
`name` | string
|
|
11
|
+
`siteId` | number
|
|
11
12
|
|
|
12
13
|
## Example
|
|
13
14
|
|
|
@@ -18,6 +19,7 @@ import type { ProductCategoryLiteResource } from '@digital8/lighting-illusions-t
|
|
|
18
19
|
const example = {
|
|
19
20
|
"id": null,
|
|
20
21
|
"name": null,
|
|
22
|
+
"siteId": null,
|
|
21
23
|
} satisfies ProductCategoryLiteResource
|
|
22
24
|
|
|
23
25
|
console.log(example)
|
|
@@ -12,6 +12,8 @@ Name | Type
|
|
|
12
12
|
`name` | string
|
|
13
13
|
`model` | string
|
|
14
14
|
`stock` | number
|
|
15
|
+
`isDisabled` | string
|
|
16
|
+
`netsuiteId` | number
|
|
15
17
|
`thumbnail` | [AssetLiteResource](AssetLiteResource.md)
|
|
16
18
|
`siteDetails` | [Array<ProductChildSiteDetailLiteResource>](ProductChildSiteDetailLiteResource.md)
|
|
17
19
|
|
|
@@ -28,6 +30,8 @@ const example = {
|
|
|
28
30
|
"name": null,
|
|
29
31
|
"model": null,
|
|
30
32
|
"stock": null,
|
|
33
|
+
"isDisabled": null,
|
|
34
|
+
"netsuiteId": null,
|
|
31
35
|
"thumbnail": null,
|
|
32
36
|
"siteDetails": null,
|
|
33
37
|
} satisfies ProductChildListResource
|
package/docs/ProductResource.md
CHANGED
|
@@ -11,7 +11,7 @@ Name | Type
|
|
|
11
11
|
`displayName` | string
|
|
12
12
|
`isAccessory` | boolean
|
|
13
13
|
`warranty` | string
|
|
14
|
-
`
|
|
14
|
+
`categories` | object
|
|
15
15
|
`isDisabled` | boolean
|
|
16
16
|
`googleCategory` | [GoogleCategoryResource](GoogleCategoryResource.md)
|
|
17
17
|
`supplier` | [SupplierLiteResource](SupplierLiteResource.md)
|
|
@@ -31,7 +31,7 @@ const example = {
|
|
|
31
31
|
"displayName": null,
|
|
32
32
|
"isAccessory": null,
|
|
33
33
|
"warranty": null,
|
|
34
|
-
"
|
|
34
|
+
"categories": null,
|
|
35
35
|
"isDisabled": null,
|
|
36
36
|
"googleCategory": null,
|
|
37
37
|
"supplier": null,
|
package/package.json
CHANGED
|
@@ -31,6 +31,12 @@ export interface ProductCategoryLiteResource {
|
|
|
31
31
|
* @memberof ProductCategoryLiteResource
|
|
32
32
|
*/
|
|
33
33
|
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof ProductCategoryLiteResource
|
|
38
|
+
*/
|
|
39
|
+
siteId: number;
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
/**
|
|
@@ -38,6 +44,7 @@ export interface ProductCategoryLiteResource {
|
|
|
38
44
|
*/
|
|
39
45
|
export function instanceOfProductCategoryLiteResource(value: object): value is ProductCategoryLiteResource {
|
|
40
46
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
47
|
+
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
41
48
|
return true;
|
|
42
49
|
}
|
|
43
50
|
|
|
@@ -53,6 +60,7 @@ export function ProductCategoryLiteResourceFromJSONTyped(json: any, ignoreDiscri
|
|
|
53
60
|
|
|
54
61
|
'id': json['id'] == null ? undefined : json['id'],
|
|
55
62
|
'name': json['name'],
|
|
63
|
+
'siteId': json['siteId'],
|
|
56
64
|
};
|
|
57
65
|
}
|
|
58
66
|
|
|
@@ -69,6 +77,7 @@ export function ProductCategoryLiteResourceToJSONTyped(value?: ProductCategoryLi
|
|
|
69
77
|
|
|
70
78
|
'id': value['id'],
|
|
71
79
|
'name': value['name'],
|
|
80
|
+
'siteId': value['siteId'],
|
|
72
81
|
};
|
|
73
82
|
}
|
|
74
83
|
|
|
@@ -70,6 +70,18 @@ export interface ProductChildListResource {
|
|
|
70
70
|
* @memberof ProductChildListResource
|
|
71
71
|
*/
|
|
72
72
|
stock: number;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof ProductChildListResource
|
|
77
|
+
*/
|
|
78
|
+
isDisabled?: string | null;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {number}
|
|
82
|
+
* @memberof ProductChildListResource
|
|
83
|
+
*/
|
|
84
|
+
netsuiteId: number;
|
|
73
85
|
/**
|
|
74
86
|
*
|
|
75
87
|
* @type {AssetLiteResource}
|
|
@@ -93,6 +105,7 @@ export function instanceOfProductChildListResource(value: object): value is Prod
|
|
|
93
105
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
94
106
|
if (!('model' in value) || value['model'] === undefined) return false;
|
|
95
107
|
if (!('stock' in value) || value['stock'] === undefined) return false;
|
|
108
|
+
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
96
109
|
if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
|
|
97
110
|
if (!('siteDetails' in value) || value['siteDetails'] === undefined) return false;
|
|
98
111
|
return true;
|
|
@@ -114,6 +127,8 @@ export function ProductChildListResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
114
127
|
'name': json['name'],
|
|
115
128
|
'model': json['model'],
|
|
116
129
|
'stock': json['stock'],
|
|
130
|
+
'isDisabled': json['isDisabled'] == null ? undefined : json['isDisabled'],
|
|
131
|
+
'netsuiteId': json['netsuiteId'],
|
|
117
132
|
'thumbnail': AssetLiteResourceFromJSON(json['thumbnail']),
|
|
118
133
|
'siteDetails': (json['siteDetails'] == null ? null : (json['siteDetails'] as Array<any>).map(ProductChildSiteDetailLiteResourceFromJSON)),
|
|
119
134
|
};
|
|
@@ -136,6 +151,8 @@ export function ProductChildListResourceToJSONTyped(value?: ProductChildListReso
|
|
|
136
151
|
'name': value['name'],
|
|
137
152
|
'model': value['model'],
|
|
138
153
|
'stock': value['stock'],
|
|
154
|
+
'isDisabled': value['isDisabled'],
|
|
155
|
+
'netsuiteId': value['netsuiteId'],
|
|
139
156
|
'thumbnail': AssetLiteResourceToJSON(value['thumbnail']),
|
|
140
157
|
'siteDetails': (value['siteDetails'] == null ? null : (value['siteDetails'] as Array<any>).map(ProductChildSiteDetailLiteResourceToJSON)),
|
|
141
158
|
};
|
|
@@ -73,10 +73,10 @@ export interface ProductResource {
|
|
|
73
73
|
warranty: string;
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
76
|
-
* @type {
|
|
76
|
+
* @type {object}
|
|
77
77
|
* @memberof ProductResource
|
|
78
78
|
*/
|
|
79
|
-
|
|
79
|
+
categories: object;
|
|
80
80
|
/**
|
|
81
81
|
*
|
|
82
82
|
* @type {boolean}
|
|
@@ -124,7 +124,7 @@ export function instanceOfProductResource(value: object): value is ProductResour
|
|
|
124
124
|
if (!('displayName' in value) || value['displayName'] === undefined) return false;
|
|
125
125
|
if (!('isAccessory' in value) || value['isAccessory'] === undefined) return false;
|
|
126
126
|
if (!('warranty' in value) || value['warranty'] === undefined) return false;
|
|
127
|
-
if (!('
|
|
127
|
+
if (!('categories' in value) || value['categories'] === undefined) return false;
|
|
128
128
|
if (!('isDisabled' in value) || value['isDisabled'] === undefined) return false;
|
|
129
129
|
if (!('googleCategory' in value) || value['googleCategory'] === undefined) return false;
|
|
130
130
|
if (!('supplier' in value) || value['supplier'] === undefined) return false;
|
|
@@ -149,7 +149,7 @@ export function ProductResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
149
149
|
'displayName': json['displayName'],
|
|
150
150
|
'isAccessory': json['isAccessory'],
|
|
151
151
|
'warranty': json['warranty'],
|
|
152
|
-
'
|
|
152
|
+
'categories': json['categories'],
|
|
153
153
|
'isDisabled': json['isDisabled'],
|
|
154
154
|
'googleCategory': GoogleCategoryResourceFromJSON(json['googleCategory']),
|
|
155
155
|
'supplier': SupplierLiteResourceFromJSON(json['supplier']),
|
|
@@ -175,7 +175,7 @@ export function ProductResourceToJSONTyped(value?: ProductResource | null, ignor
|
|
|
175
175
|
'displayName': value['displayName'],
|
|
176
176
|
'isAccessory': value['isAccessory'],
|
|
177
177
|
'warranty': value['warranty'],
|
|
178
|
-
'
|
|
178
|
+
'categories': value['categories'],
|
|
179
179
|
'isDisabled': value['isDisabled'],
|
|
180
180
|
'googleCategory': GoogleCategoryResourceToJSON(value['googleCategory']),
|
|
181
181
|
'supplier': SupplierLiteResourceToJSON(value['supplier']),
|