@digital8/lighting-illusions-ts-sdk 0.0.435 → 0.0.437
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 +2 -3
- package/dist/models/ProductChildResource.js +2 -3
- package/docs/ProductChildResource.md +1 -1
- package/package.json +1 -1
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/ProductChildResource.ts +4 -11
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.437
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -287,7 +287,7 @@ and is automatically generated by the
|
|
|
287
287
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
288
288
|
|
|
289
289
|
- API version: `1.0.0`
|
|
290
|
-
- Package version: `0.0.
|
|
290
|
+
- Package version: `0.0.437`
|
|
291
291
|
- Generator version: `7.17.0`
|
|
292
292
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
293
293
|
|
|
@@ -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']),
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { ProductChildSiteDetailResource } from './ProductChildSiteDetailResource';
|
|
13
|
-
import type { ModelAttributeResource } from './ModelAttributeResource';
|
|
14
13
|
import type { ProductChildRelationResource } from './ProductChildRelationResource';
|
|
15
14
|
import type { AssetResource } from './AssetResource';
|
|
16
15
|
/**
|
|
@@ -177,10 +176,10 @@ export interface ProductChildResource {
|
|
|
177
176
|
thumbnail: AssetResource | null;
|
|
178
177
|
/**
|
|
179
178
|
*
|
|
180
|
-
* @type {
|
|
179
|
+
* @type {object}
|
|
181
180
|
* @memberof ProductChildResource
|
|
182
181
|
*/
|
|
183
|
-
attributes:
|
|
182
|
+
attributes: object;
|
|
184
183
|
}
|
|
185
184
|
/**
|
|
186
185
|
* Check if a given object implements the ProductChildResource interface.
|
|
@@ -19,7 +19,6 @@ exports.ProductChildResourceFromJSONTyped = ProductChildResourceFromJSONTyped;
|
|
|
19
19
|
exports.ProductChildResourceToJSON = ProductChildResourceToJSON;
|
|
20
20
|
exports.ProductChildResourceToJSONTyped = ProductChildResourceToJSONTyped;
|
|
21
21
|
var ProductChildSiteDetailResource_1 = require("./ProductChildSiteDetailResource");
|
|
22
|
-
var ModelAttributeResource_1 = require("./ModelAttributeResource");
|
|
23
22
|
var ProductChildRelationResource_1 = require("./ProductChildRelationResource");
|
|
24
23
|
var AssetResource_1 = require("./AssetResource");
|
|
25
24
|
/**
|
|
@@ -106,7 +105,7 @@ function ProductChildResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
106
105
|
'compatibleProducts': (json['compatibleProducts'] == null ? null : json['compatibleProducts'].map(ProductChildRelationResource_1.ProductChildRelationResourceFromJSON)),
|
|
107
106
|
'assets': (json['assets'] == null ? null : json['assets'].map(AssetResource_1.AssetResourceFromJSON)),
|
|
108
107
|
'thumbnail': (0, AssetResource_1.AssetResourceFromJSON)(json['thumbnail']),
|
|
109
|
-
'attributes':
|
|
108
|
+
'attributes': json['attributes'],
|
|
110
109
|
};
|
|
111
110
|
}
|
|
112
111
|
function ProductChildResourceToJSON(json) {
|
|
@@ -144,6 +143,6 @@ function ProductChildResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
144
143
|
'compatibleProducts': (value['compatibleProducts'] == null ? null : value['compatibleProducts'].map(ProductChildRelationResource_1.ProductChildRelationResourceToJSON)),
|
|
145
144
|
'assets': (value['assets'] == null ? null : value['assets'].map(AssetResource_1.AssetResourceToJSON)),
|
|
146
145
|
'thumbnail': (0, AssetResource_1.AssetResourceToJSON)(value['thumbnail']),
|
|
147
|
-
'attributes':
|
|
146
|
+
'attributes': value['attributes'],
|
|
148
147
|
};
|
|
149
148
|
}
|
|
@@ -32,7 +32,7 @@ Name | Type
|
|
|
32
32
|
`compatibleProducts` | [Array<ProductChildRelationResource>](ProductChildRelationResource.md)
|
|
33
33
|
`assets` | [Array<AssetResource>](AssetResource.md)
|
|
34
34
|
`thumbnail` | [AssetResource](AssetResource.md)
|
|
35
|
-
`attributes` |
|
|
35
|
+
`attributes` | object
|
|
36
36
|
|
|
37
37
|
## Example
|
|
38
38
|
|
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']),
|
|
@@ -20,13 +20,6 @@ import {
|
|
|
20
20
|
ProductChildSiteDetailResourceToJSON,
|
|
21
21
|
ProductChildSiteDetailResourceToJSONTyped,
|
|
22
22
|
} from './ProductChildSiteDetailResource';
|
|
23
|
-
import type { ModelAttributeResource } from './ModelAttributeResource';
|
|
24
|
-
import {
|
|
25
|
-
ModelAttributeResourceFromJSON,
|
|
26
|
-
ModelAttributeResourceFromJSONTyped,
|
|
27
|
-
ModelAttributeResourceToJSON,
|
|
28
|
-
ModelAttributeResourceToJSONTyped,
|
|
29
|
-
} from './ModelAttributeResource';
|
|
30
23
|
import type { ProductChildRelationResource } from './ProductChildRelationResource';
|
|
31
24
|
import {
|
|
32
25
|
ProductChildRelationResourceFromJSON,
|
|
@@ -206,10 +199,10 @@ export interface ProductChildResource {
|
|
|
206
199
|
thumbnail: AssetResource | null;
|
|
207
200
|
/**
|
|
208
201
|
*
|
|
209
|
-
* @type {
|
|
202
|
+
* @type {object}
|
|
210
203
|
* @memberof ProductChildResource
|
|
211
204
|
*/
|
|
212
|
-
attributes:
|
|
205
|
+
attributes: object;
|
|
213
206
|
}
|
|
214
207
|
|
|
215
208
|
/**
|
|
@@ -277,7 +270,7 @@ export function ProductChildResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
277
270
|
'compatibleProducts': (json['compatibleProducts'] == null ? null : (json['compatibleProducts'] as Array<any>).map(ProductChildRelationResourceFromJSON)),
|
|
278
271
|
'assets': (json['assets'] == null ? null : (json['assets'] as Array<any>).map(AssetResourceFromJSON)),
|
|
279
272
|
'thumbnail': AssetResourceFromJSON(json['thumbnail']),
|
|
280
|
-
'attributes':
|
|
273
|
+
'attributes': json['attributes'],
|
|
281
274
|
};
|
|
282
275
|
}
|
|
283
276
|
|
|
@@ -318,7 +311,7 @@ export function ProductChildResourceToJSONTyped(value?: ProductChildResource | n
|
|
|
318
311
|
'compatibleProducts': (value['compatibleProducts'] == null ? null : (value['compatibleProducts'] as Array<any>).map(ProductChildRelationResourceToJSON)),
|
|
319
312
|
'assets': (value['assets'] == null ? null : (value['assets'] as Array<any>).map(AssetResourceToJSON)),
|
|
320
313
|
'thumbnail': AssetResourceToJSON(value['thumbnail']),
|
|
321
|
-
'attributes':
|
|
314
|
+
'attributes': value['attributes'],
|
|
322
315
|
};
|
|
323
316
|
}
|
|
324
317
|
|