@digital8/lighting-illusions-ts-sdk 0.0.819 → 0.0.820
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/ProductResource.d.ts +2 -3
- package/dist/models/ProductResource.js +2 -3
- package/dist/models/StoreProductChildRequestAttributeValuesInner.d.ts +1 -1
- package/dist/models/StoreProductChildRequestAttributeValuesInner.js +3 -1
- package/dist/models/StoreProductRequest.d.ts +0 -6
- package/dist/models/StoreProductRequest.js +0 -2
- package/dist/models/UpdateProductRequest.d.ts +0 -6
- package/dist/models/UpdateProductRequest.js +0 -2
- package/docs/ProductResource.md +1 -1
- package/docs/StoreProductRequest.md +0 -2
- package/docs/UpdateProductRequest.md +0 -2
- package/package.json +1 -1
- package/src/models/ProductResource.ts +4 -11
- package/src/models/StoreProductChildRequestAttributeValuesInner.ts +3 -2
- package/src/models/StoreProductRequest.ts +0 -8
- package/src/models/UpdateProductRequest.ts +0 -8
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.820
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -463,7 +463,7 @@ and is automatically generated by the
|
|
|
463
463
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
464
464
|
|
|
465
465
|
- API version: `1.0.0`
|
|
466
|
-
- Package version: `0.0.
|
|
466
|
+
- Package version: `0.0.820`
|
|
467
467
|
- Generator version: `7.19.0`
|
|
468
468
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
469
469
|
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { SiteLiteResource } from './SiteLiteResource';
|
|
13
12
|
import type { ProductCategoryLiteResource } from './ProductCategoryLiteResource';
|
|
14
13
|
import type { ProductTypeLiteResource } from './ProductTypeLiteResource';
|
|
15
14
|
import type { GoogleCategoryResource } from './GoogleCategoryResource';
|
|
@@ -82,10 +81,10 @@ export interface ProductResource {
|
|
|
82
81
|
productType: ProductTypeLiteResource | null;
|
|
83
82
|
/**
|
|
84
83
|
*
|
|
85
|
-
* @type {
|
|
84
|
+
* @type {object}
|
|
86
85
|
* @memberof ProductResource
|
|
87
86
|
*/
|
|
88
|
-
sites:
|
|
87
|
+
sites: object;
|
|
89
88
|
/**
|
|
90
89
|
*
|
|
91
90
|
* @type {object}
|
|
@@ -18,7 +18,6 @@ exports.ProductResourceFromJSON = ProductResourceFromJSON;
|
|
|
18
18
|
exports.ProductResourceFromJSONTyped = ProductResourceFromJSONTyped;
|
|
19
19
|
exports.ProductResourceToJSON = ProductResourceToJSON;
|
|
20
20
|
exports.ProductResourceToJSONTyped = ProductResourceToJSONTyped;
|
|
21
|
-
var SiteLiteResource_1 = require("./SiteLiteResource");
|
|
22
21
|
var ProductCategoryLiteResource_1 = require("./ProductCategoryLiteResource");
|
|
23
22
|
var ProductTypeLiteResource_1 = require("./ProductTypeLiteResource");
|
|
24
23
|
var GoogleCategoryResource_1 = require("./GoogleCategoryResource");
|
|
@@ -71,7 +70,7 @@ function ProductResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
71
70
|
'googleCategory': (0, GoogleCategoryResource_1.GoogleCategoryResourceFromJSON)(json['googleCategory']),
|
|
72
71
|
'supplier': (0, SupplierLiteResource_1.SupplierLiteResourceFromJSON)(json['supplier']),
|
|
73
72
|
'productType': (0, ProductTypeLiteResource_1.ProductTypeLiteResourceFromJSON)(json['productType']),
|
|
74
|
-
'sites':
|
|
73
|
+
'sites': json['sites'],
|
|
75
74
|
'children': json['children'],
|
|
76
75
|
};
|
|
77
76
|
}
|
|
@@ -94,7 +93,7 @@ function ProductResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
94
93
|
'googleCategory': (0, GoogleCategoryResource_1.GoogleCategoryResourceToJSON)(value['googleCategory']),
|
|
95
94
|
'supplier': (0, SupplierLiteResource_1.SupplierLiteResourceToJSON)(value['supplier']),
|
|
96
95
|
'productType': (0, ProductTypeLiteResource_1.ProductTypeLiteResourceToJSON)(value['productType']),
|
|
97
|
-
'sites':
|
|
96
|
+
'sites': value['sites'],
|
|
98
97
|
'children': value['children'],
|
|
99
98
|
};
|
|
100
99
|
}
|
|
@@ -26,7 +26,7 @@ export interface StoreProductChildRequestAttributeValuesInner {
|
|
|
26
26
|
* @type {Array<number>}
|
|
27
27
|
* @memberof StoreProductChildRequestAttributeValuesInner
|
|
28
28
|
*/
|
|
29
|
-
attributeValueIds
|
|
29
|
+
attributeValueIds: Array<number>;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
@@ -24,6 +24,8 @@ exports.StoreProductChildRequestAttributeValuesInnerToJSONTyped = StoreProductCh
|
|
|
24
24
|
function instanceOfStoreProductChildRequestAttributeValuesInner(value) {
|
|
25
25
|
if (!('attributeId' in value) || value['attributeId'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
+
if (!('attributeValueIds' in value) || value['attributeValueIds'] === undefined)
|
|
28
|
+
return false;
|
|
27
29
|
return true;
|
|
28
30
|
}
|
|
29
31
|
function StoreProductChildRequestAttributeValuesInnerFromJSON(json) {
|
|
@@ -35,7 +37,7 @@ function StoreProductChildRequestAttributeValuesInnerFromJSONTyped(json, ignoreD
|
|
|
35
37
|
}
|
|
36
38
|
return {
|
|
37
39
|
'attributeId': json['attribute_id'],
|
|
38
|
-
'attributeValueIds': json['attribute_value_ids']
|
|
40
|
+
'attributeValueIds': json['attribute_value_ids'],
|
|
39
41
|
'value': json['value'] == null ? undefined : json['value'],
|
|
40
42
|
};
|
|
41
43
|
}
|
|
@@ -58,12 +58,6 @@ export interface StoreProductRequest {
|
|
|
58
58
|
* @memberof StoreProductRequest
|
|
59
59
|
*/
|
|
60
60
|
warranty: string;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {Array<number>}
|
|
64
|
-
* @memberof StoreProductRequest
|
|
65
|
-
*/
|
|
66
|
-
siteIds?: Array<number>;
|
|
67
61
|
/**
|
|
68
62
|
*
|
|
69
63
|
* @type {Array<StoreProductRequestCategoriesInner>}
|
|
@@ -52,7 +52,6 @@ function StoreProductRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
52
|
'isAccessory': json['is_accessory'],
|
|
53
53
|
'displayName': json['display_name'] == null ? undefined : json['display_name'],
|
|
54
54
|
'warranty': json['warranty'],
|
|
55
|
-
'siteIds': json['site_ids'] == null ? undefined : json['site_ids'],
|
|
56
55
|
'categories': json['categories'] == null ? undefined : (json['categories'].map(StoreProductRequestCategoriesInner_1.StoreProductRequestCategoriesInnerFromJSON)),
|
|
57
56
|
};
|
|
58
57
|
}
|
|
@@ -72,7 +71,6 @@ function StoreProductRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
72
71
|
'is_accessory': value['isAccessory'],
|
|
73
72
|
'display_name': value['displayName'],
|
|
74
73
|
'warranty': value['warranty'],
|
|
75
|
-
'site_ids': value['siteIds'],
|
|
76
74
|
'categories': value['categories'] == null ? undefined : (value['categories'].map(StoreProductRequestCategoriesInner_1.StoreProductRequestCategoriesInnerToJSON)),
|
|
77
75
|
};
|
|
78
76
|
}
|
|
@@ -58,12 +58,6 @@ export interface UpdateProductRequest {
|
|
|
58
58
|
* @memberof UpdateProductRequest
|
|
59
59
|
*/
|
|
60
60
|
warranty: string;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {Array<number>}
|
|
64
|
-
* @memberof UpdateProductRequest
|
|
65
|
-
*/
|
|
66
|
-
siteIds?: Array<number>;
|
|
67
61
|
/**
|
|
68
62
|
*
|
|
69
63
|
* @type {Array<StoreProductRequestCategoriesInner>}
|
|
@@ -52,7 +52,6 @@ function UpdateProductRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
52
|
'isAccessory': json['is_accessory'],
|
|
53
53
|
'displayName': json['display_name'] == null ? undefined : json['display_name'],
|
|
54
54
|
'warranty': json['warranty'],
|
|
55
|
-
'siteIds': json['site_ids'] == null ? undefined : json['site_ids'],
|
|
56
55
|
'categories': json['categories'] == null ? undefined : (json['categories'].map(StoreProductRequestCategoriesInner_1.StoreProductRequestCategoriesInnerFromJSON)),
|
|
57
56
|
};
|
|
58
57
|
}
|
|
@@ -72,7 +71,6 @@ function UpdateProductRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
72
71
|
'is_accessory': value['isAccessory'],
|
|
73
72
|
'display_name': value['displayName'],
|
|
74
73
|
'warranty': value['warranty'],
|
|
75
|
-
'site_ids': value['siteIds'],
|
|
76
74
|
'categories': value['categories'] == null ? undefined : (value['categories'].map(StoreProductRequestCategoriesInner_1.StoreProductRequestCategoriesInnerToJSON)),
|
|
77
75
|
};
|
|
78
76
|
}
|
package/docs/ProductResource.md
CHANGED
|
@@ -16,7 +16,7 @@ Name | Type
|
|
|
16
16
|
`googleCategory` | [GoogleCategoryResource](GoogleCategoryResource.md)
|
|
17
17
|
`supplier` | [SupplierLiteResource](SupplierLiteResource.md)
|
|
18
18
|
`productType` | [ProductTypeLiteResource](ProductTypeLiteResource.md)
|
|
19
|
-
`sites` |
|
|
19
|
+
`sites` | object
|
|
20
20
|
`children` | object
|
|
21
21
|
|
|
22
22
|
## Example
|
|
@@ -13,7 +13,6 @@ Name | Type
|
|
|
13
13
|
`isAccessory` | boolean
|
|
14
14
|
`displayName` | string
|
|
15
15
|
`warranty` | string
|
|
16
|
-
`siteIds` | Array<number>
|
|
17
16
|
`categories` | [Array<StoreProductRequestCategoriesInner>](StoreProductRequestCategoriesInner.md)
|
|
18
17
|
|
|
19
18
|
## Example
|
|
@@ -30,7 +29,6 @@ const example = {
|
|
|
30
29
|
"isAccessory": null,
|
|
31
30
|
"displayName": null,
|
|
32
31
|
"warranty": null,
|
|
33
|
-
"siteIds": null,
|
|
34
32
|
"categories": null,
|
|
35
33
|
} satisfies StoreProductRequest
|
|
36
34
|
|
|
@@ -13,7 +13,6 @@ Name | Type
|
|
|
13
13
|
`isAccessory` | boolean
|
|
14
14
|
`displayName` | string
|
|
15
15
|
`warranty` | string
|
|
16
|
-
`siteIds` | Array<number>
|
|
17
16
|
`categories` | [Array<StoreProductRequestCategoriesInner>](StoreProductRequestCategoriesInner.md)
|
|
18
17
|
|
|
19
18
|
## Example
|
|
@@ -30,7 +29,6 @@ const example = {
|
|
|
30
29
|
"isAccessory": null,
|
|
31
30
|
"displayName": null,
|
|
32
31
|
"warranty": null,
|
|
33
|
-
"siteIds": null,
|
|
34
32
|
"categories": null,
|
|
35
33
|
} satisfies UpdateProductRequest
|
|
36
34
|
|
package/package.json
CHANGED
|
@@ -13,13 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { SiteLiteResource } from './SiteLiteResource';
|
|
17
|
-
import {
|
|
18
|
-
SiteLiteResourceFromJSON,
|
|
19
|
-
SiteLiteResourceFromJSONTyped,
|
|
20
|
-
SiteLiteResourceToJSON,
|
|
21
|
-
SiteLiteResourceToJSONTyped,
|
|
22
|
-
} from './SiteLiteResource';
|
|
23
16
|
import type { ProductCategoryLiteResource } from './ProductCategoryLiteResource';
|
|
24
17
|
import {
|
|
25
18
|
ProductCategoryLiteResourceFromJSON,
|
|
@@ -117,10 +110,10 @@ export interface ProductResource {
|
|
|
117
110
|
productType: ProductTypeLiteResource | null;
|
|
118
111
|
/**
|
|
119
112
|
*
|
|
120
|
-
* @type {
|
|
113
|
+
* @type {object}
|
|
121
114
|
* @memberof ProductResource
|
|
122
115
|
*/
|
|
123
|
-
sites:
|
|
116
|
+
sites: object;
|
|
124
117
|
/**
|
|
125
118
|
*
|
|
126
119
|
* @type {object}
|
|
@@ -168,7 +161,7 @@ export function ProductResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
168
161
|
'googleCategory': GoogleCategoryResourceFromJSON(json['googleCategory']),
|
|
169
162
|
'supplier': SupplierLiteResourceFromJSON(json['supplier']),
|
|
170
163
|
'productType': ProductTypeLiteResourceFromJSON(json['productType']),
|
|
171
|
-
'sites':
|
|
164
|
+
'sites': json['sites'],
|
|
172
165
|
'children': json['children'],
|
|
173
166
|
};
|
|
174
167
|
}
|
|
@@ -194,7 +187,7 @@ export function ProductResourceToJSONTyped(value?: ProductResource | null, ignor
|
|
|
194
187
|
'googleCategory': GoogleCategoryResourceToJSON(value['googleCategory']),
|
|
195
188
|
'supplier': SupplierLiteResourceToJSON(value['supplier']),
|
|
196
189
|
'productType': ProductTypeLiteResourceToJSON(value['productType']),
|
|
197
|
-
'sites':
|
|
190
|
+
'sites': value['sites'],
|
|
198
191
|
'children': value['children'],
|
|
199
192
|
};
|
|
200
193
|
}
|
|
@@ -30,7 +30,7 @@ export interface StoreProductChildRequestAttributeValuesInner {
|
|
|
30
30
|
* @type {Array<number>}
|
|
31
31
|
* @memberof StoreProductChildRequestAttributeValuesInner
|
|
32
32
|
*/
|
|
33
|
-
attributeValueIds
|
|
33
|
+
attributeValueIds: Array<number>;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
@@ -44,6 +44,7 @@ export interface StoreProductChildRequestAttributeValuesInner {
|
|
|
44
44
|
*/
|
|
45
45
|
export function instanceOfStoreProductChildRequestAttributeValuesInner(value: object): value is StoreProductChildRequestAttributeValuesInner {
|
|
46
46
|
if (!('attributeId' in value) || value['attributeId'] === undefined) return false;
|
|
47
|
+
if (!('attributeValueIds' in value) || value['attributeValueIds'] === undefined) return false;
|
|
47
48
|
return true;
|
|
48
49
|
}
|
|
49
50
|
|
|
@@ -58,7 +59,7 @@ export function StoreProductChildRequestAttributeValuesInnerFromJSONTyped(json:
|
|
|
58
59
|
return {
|
|
59
60
|
|
|
60
61
|
'attributeId': json['attribute_id'],
|
|
61
|
-
'attributeValueIds': json['attribute_value_ids']
|
|
62
|
+
'attributeValueIds': json['attribute_value_ids'],
|
|
62
63
|
'value': json['value'] == null ? undefined : json['value'],
|
|
63
64
|
};
|
|
64
65
|
}
|
|
@@ -69,12 +69,6 @@ export interface StoreProductRequest {
|
|
|
69
69
|
* @memberof StoreProductRequest
|
|
70
70
|
*/
|
|
71
71
|
warranty: string;
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
* @type {Array<number>}
|
|
75
|
-
* @memberof StoreProductRequest
|
|
76
|
-
*/
|
|
77
|
-
siteIds?: Array<number>;
|
|
78
72
|
/**
|
|
79
73
|
*
|
|
80
74
|
* @type {Array<StoreProductRequestCategoriesInner>}
|
|
@@ -113,7 +107,6 @@ export function StoreProductRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
113
107
|
'isAccessory': json['is_accessory'],
|
|
114
108
|
'displayName': json['display_name'] == null ? undefined : json['display_name'],
|
|
115
109
|
'warranty': json['warranty'],
|
|
116
|
-
'siteIds': json['site_ids'] == null ? undefined : json['site_ids'],
|
|
117
110
|
'categories': json['categories'] == null ? undefined : ((json['categories'] as Array<any>).map(StoreProductRequestCategoriesInnerFromJSON)),
|
|
118
111
|
};
|
|
119
112
|
}
|
|
@@ -136,7 +129,6 @@ export function StoreProductRequestToJSONTyped(value?: StoreProductRequest | nul
|
|
|
136
129
|
'is_accessory': value['isAccessory'],
|
|
137
130
|
'display_name': value['displayName'],
|
|
138
131
|
'warranty': value['warranty'],
|
|
139
|
-
'site_ids': value['siteIds'],
|
|
140
132
|
'categories': value['categories'] == null ? undefined : ((value['categories'] as Array<any>).map(StoreProductRequestCategoriesInnerToJSON)),
|
|
141
133
|
};
|
|
142
134
|
}
|
|
@@ -69,12 +69,6 @@ export interface UpdateProductRequest {
|
|
|
69
69
|
* @memberof UpdateProductRequest
|
|
70
70
|
*/
|
|
71
71
|
warranty: string;
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
* @type {Array<number>}
|
|
75
|
-
* @memberof UpdateProductRequest
|
|
76
|
-
*/
|
|
77
|
-
siteIds?: Array<number>;
|
|
78
72
|
/**
|
|
79
73
|
*
|
|
80
74
|
* @type {Array<StoreProductRequestCategoriesInner>}
|
|
@@ -113,7 +107,6 @@ export function UpdateProductRequestFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
113
107
|
'isAccessory': json['is_accessory'],
|
|
114
108
|
'displayName': json['display_name'] == null ? undefined : json['display_name'],
|
|
115
109
|
'warranty': json['warranty'],
|
|
116
|
-
'siteIds': json['site_ids'] == null ? undefined : json['site_ids'],
|
|
117
110
|
'categories': json['categories'] == null ? undefined : ((json['categories'] as Array<any>).map(StoreProductRequestCategoriesInnerFromJSON)),
|
|
118
111
|
};
|
|
119
112
|
}
|
|
@@ -136,7 +129,6 @@ export function UpdateProductRequestToJSONTyped(value?: UpdateProductRequest | n
|
|
|
136
129
|
'is_accessory': value['isAccessory'],
|
|
137
130
|
'display_name': value['displayName'],
|
|
138
131
|
'warranty': value['warranty'],
|
|
139
|
-
'site_ids': value['siteIds'],
|
|
140
132
|
'categories': value['categories'] == null ? undefined : ((value['categories'] as Array<any>).map(StoreProductRequestCategoriesInnerToJSON)),
|
|
141
133
|
};
|
|
142
134
|
}
|