@digital8/lighting-illusions-ts-sdk 0.0.787 → 0.0.788
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/ProductResource.d.ts +3 -2
- package/dist/models/ProductResource.js +3 -2
- package/dist/models/StoreProductRequest.d.ts +6 -0
- package/dist/models/StoreProductRequest.js +2 -0
- package/dist/models/UpdateProductRequest.d.ts +6 -0
- package/dist/models/UpdateProductRequest.js +2 -0
- package/docs/ProductResource.md +1 -1
- package/docs/StoreProductRequest.md +2 -0
- package/docs/UpdateProductRequest.md +2 -0
- package/package.json +1 -1
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/ProductResource.ts +11 -4
- package/src/models/StoreProductRequest.ts +8 -0
- package/src/models/UpdateProductRequest.ts +8 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.788
|
|
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.788`
|
|
467
467
|
- Generator version: `7.19.0`
|
|
468
468
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
469
469
|
|
|
@@ -37,6 +37,8 @@ function instanceOfExternalApiLogResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('responseCode' in value) || value['responseCode'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
+
if (!('requestPayload' in value) || value['requestPayload'] === undefined)
|
|
41
|
+
return false;
|
|
40
42
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
41
43
|
return false;
|
|
42
44
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -58,7 +60,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
60
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
59
61
|
'endpoint': json['endpoint'],
|
|
60
62
|
'responseCode': json['responseCode'],
|
|
61
|
-
'requestPayload': json['requestPayload']
|
|
63
|
+
'requestPayload': json['requestPayload'],
|
|
62
64
|
'responsePayload': json['responsePayload'],
|
|
63
65
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
64
66
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { SiteLiteResource } from './SiteLiteResource';
|
|
12
13
|
import type { ProductCategoryLiteResource } from './ProductCategoryLiteResource';
|
|
13
14
|
import type { ProductTypeLiteResource } from './ProductTypeLiteResource';
|
|
14
15
|
import type { GoogleCategoryResource } from './GoogleCategoryResource';
|
|
@@ -81,10 +82,10 @@ export interface ProductResource {
|
|
|
81
82
|
productType: ProductTypeLiteResource | null;
|
|
82
83
|
/**
|
|
83
84
|
*
|
|
84
|
-
* @type {
|
|
85
|
+
* @type {Array<SiteLiteResource>}
|
|
85
86
|
* @memberof ProductResource
|
|
86
87
|
*/
|
|
87
|
-
sites:
|
|
88
|
+
sites: Array<SiteLiteResource> | null;
|
|
88
89
|
/**
|
|
89
90
|
*
|
|
90
91
|
* @type {object}
|
|
@@ -18,6 +18,7 @@ exports.ProductResourceFromJSON = ProductResourceFromJSON;
|
|
|
18
18
|
exports.ProductResourceFromJSONTyped = ProductResourceFromJSONTyped;
|
|
19
19
|
exports.ProductResourceToJSON = ProductResourceToJSON;
|
|
20
20
|
exports.ProductResourceToJSONTyped = ProductResourceToJSONTyped;
|
|
21
|
+
var SiteLiteResource_1 = require("./SiteLiteResource");
|
|
21
22
|
var ProductCategoryLiteResource_1 = require("./ProductCategoryLiteResource");
|
|
22
23
|
var ProductTypeLiteResource_1 = require("./ProductTypeLiteResource");
|
|
23
24
|
var GoogleCategoryResource_1 = require("./GoogleCategoryResource");
|
|
@@ -70,7 +71,7 @@ function ProductResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
70
71
|
'googleCategory': (0, GoogleCategoryResource_1.GoogleCategoryResourceFromJSON)(json['googleCategory']),
|
|
71
72
|
'supplier': (0, SupplierLiteResource_1.SupplierLiteResourceFromJSON)(json['supplier']),
|
|
72
73
|
'productType': (0, ProductTypeLiteResource_1.ProductTypeLiteResourceFromJSON)(json['productType']),
|
|
73
|
-
'sites': json['sites'],
|
|
74
|
+
'sites': (json['sites'] == null ? null : json['sites'].map(SiteLiteResource_1.SiteLiteResourceFromJSON)),
|
|
74
75
|
'children': json['children'],
|
|
75
76
|
};
|
|
76
77
|
}
|
|
@@ -93,7 +94,7 @@ function ProductResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
93
94
|
'googleCategory': (0, GoogleCategoryResource_1.GoogleCategoryResourceToJSON)(value['googleCategory']),
|
|
94
95
|
'supplier': (0, SupplierLiteResource_1.SupplierLiteResourceToJSON)(value['supplier']),
|
|
95
96
|
'productType': (0, ProductTypeLiteResource_1.ProductTypeLiteResourceToJSON)(value['productType']),
|
|
96
|
-
'sites': value['sites'],
|
|
97
|
+
'sites': (value['sites'] == null ? null : value['sites'].map(SiteLiteResource_1.SiteLiteResourceToJSON)),
|
|
97
98
|
'children': value['children'],
|
|
98
99
|
};
|
|
99
100
|
}
|
|
@@ -58,6 +58,12 @@ 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>;
|
|
61
67
|
/**
|
|
62
68
|
*
|
|
63
69
|
* @type {Array<StoreProductRequestCategoriesInner>}
|
|
@@ -52,6 +52,7 @@ 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'],
|
|
55
56
|
'categories': json['categories'] == null ? undefined : (json['categories'].map(StoreProductRequestCategoriesInner_1.StoreProductRequestCategoriesInnerFromJSON)),
|
|
56
57
|
};
|
|
57
58
|
}
|
|
@@ -71,6 +72,7 @@ function StoreProductRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
71
72
|
'is_accessory': value['isAccessory'],
|
|
72
73
|
'display_name': value['displayName'],
|
|
73
74
|
'warranty': value['warranty'],
|
|
75
|
+
'site_ids': value['siteIds'],
|
|
74
76
|
'categories': value['categories'] == null ? undefined : (value['categories'].map(StoreProductRequestCategoriesInner_1.StoreProductRequestCategoriesInnerToJSON)),
|
|
75
77
|
};
|
|
76
78
|
}
|
|
@@ -58,6 +58,12 @@ 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>;
|
|
61
67
|
/**
|
|
62
68
|
*
|
|
63
69
|
* @type {Array<StoreProductRequestCategoriesInner>}
|
|
@@ -52,6 +52,7 @@ 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'],
|
|
55
56
|
'categories': json['categories'] == null ? undefined : (json['categories'].map(StoreProductRequestCategoriesInner_1.StoreProductRequestCategoriesInnerFromJSON)),
|
|
56
57
|
};
|
|
57
58
|
}
|
|
@@ -71,6 +72,7 @@ function UpdateProductRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
71
72
|
'is_accessory': value['isAccessory'],
|
|
72
73
|
'display_name': value['displayName'],
|
|
73
74
|
'warranty': value['warranty'],
|
|
75
|
+
'site_ids': value['siteIds'],
|
|
74
76
|
'categories': value['categories'] == null ? undefined : (value['categories'].map(StoreProductRequestCategoriesInner_1.StoreProductRequestCategoriesInnerToJSON)),
|
|
75
77
|
};
|
|
76
78
|
}
|
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` | [Array<SiteLiteResource>](SiteLiteResource.md)
|
|
20
20
|
`children` | object
|
|
21
21
|
|
|
22
22
|
## Example
|
|
@@ -13,6 +13,7 @@ Name | Type
|
|
|
13
13
|
`isAccessory` | boolean
|
|
14
14
|
`displayName` | string
|
|
15
15
|
`warranty` | string
|
|
16
|
+
`siteIds` | Array<number>
|
|
16
17
|
`categories` | [Array<StoreProductRequestCategoriesInner>](StoreProductRequestCategoriesInner.md)
|
|
17
18
|
|
|
18
19
|
## Example
|
|
@@ -29,6 +30,7 @@ const example = {
|
|
|
29
30
|
"isAccessory": null,
|
|
30
31
|
"displayName": null,
|
|
31
32
|
"warranty": null,
|
|
33
|
+
"siteIds": null,
|
|
32
34
|
"categories": null,
|
|
33
35
|
} satisfies StoreProductRequest
|
|
34
36
|
|
|
@@ -13,6 +13,7 @@ Name | Type
|
|
|
13
13
|
`isAccessory` | boolean
|
|
14
14
|
`displayName` | string
|
|
15
15
|
`warranty` | string
|
|
16
|
+
`siteIds` | Array<number>
|
|
16
17
|
`categories` | [Array<StoreProductRequestCategoriesInner>](StoreProductRequestCategoriesInner.md)
|
|
17
18
|
|
|
18
19
|
## Example
|
|
@@ -29,6 +30,7 @@ const example = {
|
|
|
29
30
|
"isAccessory": null,
|
|
30
31
|
"displayName": null,
|
|
31
32
|
"warranty": null,
|
|
33
|
+
"siteIds": null,
|
|
32
34
|
"categories": null,
|
|
33
35
|
} satisfies UpdateProductRequest
|
|
34
36
|
|
package/package.json
CHANGED
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload: string;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,6 +106,7 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
|
|
|
106
106
|
if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
|
|
107
107
|
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
108
108
|
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
109
|
+
if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
|
|
109
110
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
110
111
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
111
112
|
return true;
|
|
@@ -128,7 +129,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
128
129
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
129
130
|
'endpoint': json['endpoint'],
|
|
130
131
|
'responseCode': json['responseCode'],
|
|
131
|
-
'requestPayload': json['requestPayload']
|
|
132
|
+
'requestPayload': json['requestPayload'],
|
|
132
133
|
'responsePayload': json['responsePayload'],
|
|
133
134
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
134
135
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -13,6 +13,13 @@
|
|
|
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';
|
|
16
23
|
import type { ProductCategoryLiteResource } from './ProductCategoryLiteResource';
|
|
17
24
|
import {
|
|
18
25
|
ProductCategoryLiteResourceFromJSON,
|
|
@@ -110,10 +117,10 @@ export interface ProductResource {
|
|
|
110
117
|
productType: ProductTypeLiteResource | null;
|
|
111
118
|
/**
|
|
112
119
|
*
|
|
113
|
-
* @type {
|
|
120
|
+
* @type {Array<SiteLiteResource>}
|
|
114
121
|
* @memberof ProductResource
|
|
115
122
|
*/
|
|
116
|
-
sites:
|
|
123
|
+
sites: Array<SiteLiteResource> | null;
|
|
117
124
|
/**
|
|
118
125
|
*
|
|
119
126
|
* @type {object}
|
|
@@ -161,7 +168,7 @@ export function ProductResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
161
168
|
'googleCategory': GoogleCategoryResourceFromJSON(json['googleCategory']),
|
|
162
169
|
'supplier': SupplierLiteResourceFromJSON(json['supplier']),
|
|
163
170
|
'productType': ProductTypeLiteResourceFromJSON(json['productType']),
|
|
164
|
-
'sites': json['sites'],
|
|
171
|
+
'sites': (json['sites'] == null ? null : (json['sites'] as Array<any>).map(SiteLiteResourceFromJSON)),
|
|
165
172
|
'children': json['children'],
|
|
166
173
|
};
|
|
167
174
|
}
|
|
@@ -187,7 +194,7 @@ export function ProductResourceToJSONTyped(value?: ProductResource | null, ignor
|
|
|
187
194
|
'googleCategory': GoogleCategoryResourceToJSON(value['googleCategory']),
|
|
188
195
|
'supplier': SupplierLiteResourceToJSON(value['supplier']),
|
|
189
196
|
'productType': ProductTypeLiteResourceToJSON(value['productType']),
|
|
190
|
-
'sites': value['sites'],
|
|
197
|
+
'sites': (value['sites'] == null ? null : (value['sites'] as Array<any>).map(SiteLiteResourceToJSON)),
|
|
191
198
|
'children': value['children'],
|
|
192
199
|
};
|
|
193
200
|
}
|
|
@@ -69,6 +69,12 @@ 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>;
|
|
72
78
|
/**
|
|
73
79
|
*
|
|
74
80
|
* @type {Array<StoreProductRequestCategoriesInner>}
|
|
@@ -107,6 +113,7 @@ export function StoreProductRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
107
113
|
'isAccessory': json['is_accessory'],
|
|
108
114
|
'displayName': json['display_name'] == null ? undefined : json['display_name'],
|
|
109
115
|
'warranty': json['warranty'],
|
|
116
|
+
'siteIds': json['site_ids'] == null ? undefined : json['site_ids'],
|
|
110
117
|
'categories': json['categories'] == null ? undefined : ((json['categories'] as Array<any>).map(StoreProductRequestCategoriesInnerFromJSON)),
|
|
111
118
|
};
|
|
112
119
|
}
|
|
@@ -129,6 +136,7 @@ export function StoreProductRequestToJSONTyped(value?: StoreProductRequest | nul
|
|
|
129
136
|
'is_accessory': value['isAccessory'],
|
|
130
137
|
'display_name': value['displayName'],
|
|
131
138
|
'warranty': value['warranty'],
|
|
139
|
+
'site_ids': value['siteIds'],
|
|
132
140
|
'categories': value['categories'] == null ? undefined : ((value['categories'] as Array<any>).map(StoreProductRequestCategoriesInnerToJSON)),
|
|
133
141
|
};
|
|
134
142
|
}
|
|
@@ -69,6 +69,12 @@ 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>;
|
|
72
78
|
/**
|
|
73
79
|
*
|
|
74
80
|
* @type {Array<StoreProductRequestCategoriesInner>}
|
|
@@ -107,6 +113,7 @@ export function UpdateProductRequestFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
107
113
|
'isAccessory': json['is_accessory'],
|
|
108
114
|
'displayName': json['display_name'] == null ? undefined : json['display_name'],
|
|
109
115
|
'warranty': json['warranty'],
|
|
116
|
+
'siteIds': json['site_ids'] == null ? undefined : json['site_ids'],
|
|
110
117
|
'categories': json['categories'] == null ? undefined : ((json['categories'] as Array<any>).map(StoreProductRequestCategoriesInnerFromJSON)),
|
|
111
118
|
};
|
|
112
119
|
}
|
|
@@ -129,6 +136,7 @@ export function UpdateProductRequestToJSONTyped(value?: UpdateProductRequest | n
|
|
|
129
136
|
'is_accessory': value['isAccessory'],
|
|
130
137
|
'display_name': value['displayName'],
|
|
131
138
|
'warranty': value['warranty'],
|
|
139
|
+
'site_ids': value['siteIds'],
|
|
132
140
|
'categories': value['categories'] == null ? undefined : ((value['categories'] as Array<any>).map(StoreProductRequestCategoriesInnerToJSON)),
|
|
133
141
|
};
|
|
134
142
|
}
|