@digital8/lighting-illusions-ts-sdk 0.0.1142 → 0.0.1144
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/ProductTypeListResource.d.ts +6 -0
- package/dist/models/ProductTypeListResource.js +4 -0
- package/docs/ProductTypeListResource.md +2 -0
- package/package.json +1 -1
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/ProductTypeListResource.ts +9 -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.1144
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -474,7 +474,7 @@ and is automatically generated by the
|
|
|
474
474
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
475
475
|
|
|
476
476
|
- API version: `1.0.0`
|
|
477
|
-
- Package version: `0.0.
|
|
477
|
+
- Package version: `0.0.1144`
|
|
478
478
|
- Generator version: `7.20.0`
|
|
479
479
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
480
480
|
|
|
@@ -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']),
|
|
@@ -33,6 +33,12 @@ export interface ProductTypeListResource {
|
|
|
33
33
|
* @memberof ProductTypeListResource
|
|
34
34
|
*/
|
|
35
35
|
totalAttributes: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ProductTypeListResource
|
|
40
|
+
*/
|
|
41
|
+
totalProducts: number;
|
|
36
42
|
}
|
|
37
43
|
/**
|
|
38
44
|
* Check if a given object implements the ProductTypeListResource interface.
|
|
@@ -28,6 +28,8 @@ function instanceOfProductTypeListResource(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('totalAttributes' in value) || value['totalAttributes'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
+
if (!('totalProducts' in value) || value['totalProducts'] === undefined)
|
|
32
|
+
return false;
|
|
31
33
|
return true;
|
|
32
34
|
}
|
|
33
35
|
function ProductTypeListResourceFromJSON(json) {
|
|
@@ -41,6 +43,7 @@ function ProductTypeListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
43
|
'id': json['id'],
|
|
42
44
|
'name': json['name'],
|
|
43
45
|
'totalAttributes': json['totalAttributes'],
|
|
46
|
+
'totalProducts': json['totalProducts'],
|
|
44
47
|
};
|
|
45
48
|
}
|
|
46
49
|
function ProductTypeListResourceToJSON(json) {
|
|
@@ -55,5 +58,6 @@ function ProductTypeListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
55
58
|
'id': value['id'],
|
|
56
59
|
'name': value['name'],
|
|
57
60
|
'totalAttributes': value['totalAttributes'],
|
|
61
|
+
'totalProducts': value['totalProducts'],
|
|
58
62
|
};
|
|
59
63
|
}
|
|
@@ -9,6 +9,7 @@ Name | Type
|
|
|
9
9
|
`id` | number
|
|
10
10
|
`name` | string
|
|
11
11
|
`totalAttributes` | number
|
|
12
|
+
`totalProducts` | number
|
|
12
13
|
|
|
13
14
|
## Example
|
|
14
15
|
|
|
@@ -20,6 +21,7 @@ const example = {
|
|
|
20
21
|
"id": null,
|
|
21
22
|
"name": null,
|
|
22
23
|
"totalAttributes": null,
|
|
24
|
+
"totalProducts": null,
|
|
23
25
|
} satisfies ProductTypeListResource
|
|
24
26
|
|
|
25
27
|
console.log(example)
|
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']),
|
|
@@ -37,6 +37,12 @@ export interface ProductTypeListResource {
|
|
|
37
37
|
* @memberof ProductTypeListResource
|
|
38
38
|
*/
|
|
39
39
|
totalAttributes: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof ProductTypeListResource
|
|
44
|
+
*/
|
|
45
|
+
totalProducts: number;
|
|
40
46
|
}
|
|
41
47
|
|
|
42
48
|
/**
|
|
@@ -46,6 +52,7 @@ export function instanceOfProductTypeListResource(value: object): value is Produ
|
|
|
46
52
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
53
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
48
54
|
if (!('totalAttributes' in value) || value['totalAttributes'] === undefined) return false;
|
|
55
|
+
if (!('totalProducts' in value) || value['totalProducts'] === undefined) return false;
|
|
49
56
|
return true;
|
|
50
57
|
}
|
|
51
58
|
|
|
@@ -62,6 +69,7 @@ export function ProductTypeListResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
62
69
|
'id': json['id'],
|
|
63
70
|
'name': json['name'],
|
|
64
71
|
'totalAttributes': json['totalAttributes'],
|
|
72
|
+
'totalProducts': json['totalProducts'],
|
|
65
73
|
};
|
|
66
74
|
}
|
|
67
75
|
|
|
@@ -79,6 +87,7 @@ export function ProductTypeListResourceToJSONTyped(value?: ProductTypeListResour
|
|
|
79
87
|
'id': value['id'],
|
|
80
88
|
'name': value['name'],
|
|
81
89
|
'totalAttributes': value['totalAttributes'],
|
|
90
|
+
'totalProducts': value['totalProducts'],
|
|
82
91
|
};
|
|
83
92
|
}
|
|
84
93
|
|