@digital8/lighting-illusions-ts-sdk 0.0.959 → 0.0.960
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/UpdateProductChildRequest.d.ts +6 -0
- package/dist/models/UpdateProductChildRequest.js +2 -0
- package/docs/UpdateProductChildRequest.md +2 -0
- package/package.json +1 -1
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/UpdateProductChildRequest.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.960
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -465,7 +465,7 @@ and is automatically generated by the
|
|
|
465
465
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
466
466
|
|
|
467
467
|
- API version: `1.0.0`
|
|
468
|
-
- Package version: `0.0.
|
|
468
|
+
- Package version: `0.0.960`
|
|
469
469
|
- Generator version: `7.19.0`
|
|
470
470
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
471
471
|
|
|
@@ -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']),
|
|
@@ -101,6 +101,12 @@ export interface UpdateProductChildRequest {
|
|
|
101
101
|
* @memberof UpdateProductChildRequest
|
|
102
102
|
*/
|
|
103
103
|
sites: Array<StoreProductChildRequestSitesInner>;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {Array<number>}
|
|
107
|
+
* @memberof UpdateProductChildRequest
|
|
108
|
+
*/
|
|
109
|
+
accessories?: Array<number>;
|
|
104
110
|
/**
|
|
105
111
|
*
|
|
106
112
|
* @type {Array<UpdateProductChildRequestAssetsInner>}
|
|
@@ -70,6 +70,7 @@ function UpdateProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
70
70
|
'popularityScore': json['popularity_score'] == null ? undefined : json['popularity_score'],
|
|
71
71
|
'stock': json['stock'],
|
|
72
72
|
'sites': (json['sites'].map(StoreProductChildRequestSitesInner_1.StoreProductChildRequestSitesInnerFromJSON)),
|
|
73
|
+
'accessories': json['accessories'] == null ? undefined : json['accessories'],
|
|
73
74
|
'assets': (json['assets'].map(UpdateProductChildRequestAssetsInner_1.UpdateProductChildRequestAssetsInnerFromJSON)),
|
|
74
75
|
};
|
|
75
76
|
}
|
|
@@ -96,6 +97,7 @@ function UpdateProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
96
97
|
'popularity_score': value['popularityScore'],
|
|
97
98
|
'stock': value['stock'],
|
|
98
99
|
'sites': (value['sites'].map(StoreProductChildRequestSitesInner_1.StoreProductChildRequestSitesInnerToJSON)),
|
|
100
|
+
'accessories': value['accessories'],
|
|
99
101
|
'assets': (value['assets'].map(UpdateProductChildRequestAssetsInner_1.UpdateProductChildRequestAssetsInnerToJSON)),
|
|
100
102
|
};
|
|
101
103
|
}
|
|
@@ -20,6 +20,7 @@ Name | Type
|
|
|
20
20
|
`popularityScore` | number
|
|
21
21
|
`stock` | number
|
|
22
22
|
`sites` | [Array<StoreProductChildRequestSitesInner>](StoreProductChildRequestSitesInner.md)
|
|
23
|
+
`accessories` | Array<number>
|
|
23
24
|
`assets` | [Array<UpdateProductChildRequestAssetsInner>](UpdateProductChildRequestAssetsInner.md)
|
|
24
25
|
|
|
25
26
|
## Example
|
|
@@ -43,6 +44,7 @@ const example = {
|
|
|
43
44
|
"popularityScore": null,
|
|
44
45
|
"stock": null,
|
|
45
46
|
"sites": null,
|
|
47
|
+
"accessories": null,
|
|
46
48
|
"assets": null,
|
|
47
49
|
} satisfies UpdateProductChildRequest
|
|
48
50
|
|
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']),
|
|
@@ -118,6 +118,12 @@ export interface UpdateProductChildRequest {
|
|
|
118
118
|
* @memberof UpdateProductChildRequest
|
|
119
119
|
*/
|
|
120
120
|
sites: Array<StoreProductChildRequestSitesInner>;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @type {Array<number>}
|
|
124
|
+
* @memberof UpdateProductChildRequest
|
|
125
|
+
*/
|
|
126
|
+
accessories?: Array<number>;
|
|
121
127
|
/**
|
|
122
128
|
*
|
|
123
129
|
* @type {Array<UpdateProductChildRequestAssetsInner>}
|
|
@@ -168,6 +174,7 @@ export function UpdateProductChildRequestFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
168
174
|
'popularityScore': json['popularity_score'] == null ? undefined : json['popularity_score'],
|
|
169
175
|
'stock': json['stock'],
|
|
170
176
|
'sites': ((json['sites'] as Array<any>).map(StoreProductChildRequestSitesInnerFromJSON)),
|
|
177
|
+
'accessories': json['accessories'] == null ? undefined : json['accessories'],
|
|
171
178
|
'assets': ((json['assets'] as Array<any>).map(UpdateProductChildRequestAssetsInnerFromJSON)),
|
|
172
179
|
};
|
|
173
180
|
}
|
|
@@ -197,6 +204,7 @@ export function UpdateProductChildRequestToJSONTyped(value?: UpdateProductChildR
|
|
|
197
204
|
'popularity_score': value['popularityScore'],
|
|
198
205
|
'stock': value['stock'],
|
|
199
206
|
'sites': ((value['sites'] as Array<any>).map(StoreProductChildRequestSitesInnerToJSON)),
|
|
207
|
+
'accessories': value['accessories'],
|
|
200
208
|
'assets': ((value['assets'] as Array<any>).map(UpdateProductChildRequestAssetsInnerToJSON)),
|
|
201
209
|
};
|
|
202
210
|
}
|