@digital8/lighting-illusions-ts-sdk 0.0.417 → 0.0.419
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
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.419
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -281,7 +281,7 @@ and is automatically generated by the
|
|
|
281
281
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
282
282
|
|
|
283
283
|
- API version: `1.0.0`
|
|
284
|
-
- Package version: `0.0.
|
|
284
|
+
- Package version: `0.0.419`
|
|
285
285
|
- Generator version: `7.17.0`
|
|
286
286
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
287
287
|
|
|
@@ -27,6 +27,12 @@ export interface ProductTypeLiteResource {
|
|
|
27
27
|
* @memberof ProductTypeLiteResource
|
|
28
28
|
*/
|
|
29
29
|
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ProductTypeLiteResource
|
|
34
|
+
*/
|
|
35
|
+
fieldType: string;
|
|
30
36
|
}
|
|
31
37
|
/**
|
|
32
38
|
* Check if a given object implements the ProductTypeLiteResource interface.
|
|
@@ -26,6 +26,8 @@ function instanceOfProductTypeLiteResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('name' in value) || value['name'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('fieldType' in value) || value['fieldType'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
return true;
|
|
30
32
|
}
|
|
31
33
|
function ProductTypeLiteResourceFromJSON(json) {
|
|
@@ -38,6 +40,7 @@ function ProductTypeLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
40
|
return {
|
|
39
41
|
'id': json['id'],
|
|
40
42
|
'name': json['name'],
|
|
43
|
+
'fieldType': json['field_type'],
|
|
41
44
|
};
|
|
42
45
|
}
|
|
43
46
|
function ProductTypeLiteResourceToJSON(json) {
|
|
@@ -51,5 +54,6 @@ function ProductTypeLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
51
54
|
return {
|
|
52
55
|
'id': value['id'],
|
|
53
56
|
'name': value['name'],
|
|
57
|
+
'field_type': value['fieldType'],
|
|
54
58
|
};
|
|
55
59
|
}
|
|
@@ -8,6 +8,7 @@ Name | Type
|
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`id` | number
|
|
10
10
|
`name` | string
|
|
11
|
+
`fieldType` | string
|
|
11
12
|
|
|
12
13
|
## Example
|
|
13
14
|
|
|
@@ -18,6 +19,7 @@ import type { ProductTypeLiteResource } from '@digital8/lighting-illusions-ts-sd
|
|
|
18
19
|
const example = {
|
|
19
20
|
"id": null,
|
|
20
21
|
"name": null,
|
|
22
|
+
"fieldType": null,
|
|
21
23
|
} satisfies ProductTypeLiteResource
|
|
22
24
|
|
|
23
25
|
console.log(example)
|
package/package.json
CHANGED
|
@@ -31,6 +31,12 @@ export interface ProductTypeLiteResource {
|
|
|
31
31
|
* @memberof ProductTypeLiteResource
|
|
32
32
|
*/
|
|
33
33
|
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ProductTypeLiteResource
|
|
38
|
+
*/
|
|
39
|
+
fieldType: string;
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
/**
|
|
@@ -39,6 +45,7 @@ export interface ProductTypeLiteResource {
|
|
|
39
45
|
export function instanceOfProductTypeLiteResource(value: object): value is ProductTypeLiteResource {
|
|
40
46
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
41
47
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
48
|
+
if (!('fieldType' in value) || value['fieldType'] === undefined) return false;
|
|
42
49
|
return true;
|
|
43
50
|
}
|
|
44
51
|
|
|
@@ -54,6 +61,7 @@ export function ProductTypeLiteResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
54
61
|
|
|
55
62
|
'id': json['id'],
|
|
56
63
|
'name': json['name'],
|
|
64
|
+
'fieldType': json['field_type'],
|
|
57
65
|
};
|
|
58
66
|
}
|
|
59
67
|
|
|
@@ -70,6 +78,7 @@ export function ProductTypeLiteResourceToJSONTyped(value?: ProductTypeLiteResour
|
|
|
70
78
|
|
|
71
79
|
'id': value['id'],
|
|
72
80
|
'name': value['name'],
|
|
81
|
+
'field_type': value['fieldType'],
|
|
73
82
|
};
|
|
74
83
|
}
|
|
75
84
|
|