@digital8/lighting-illusions-ts-sdk 0.0.972 → 0.0.974
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/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 +3 -2
- 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.974
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -468,7 +468,7 @@ and is automatically generated by the
|
|
|
468
468
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
469
469
|
|
|
470
470
|
- API version: `1.0.0`
|
|
471
|
-
- Package version: `0.0.
|
|
471
|
+
- Package version: `0.0.974`
|
|
472
472
|
- Generator version: `7.19.0`
|
|
473
473
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
474
474
|
|
|
@@ -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']),
|
|
@@ -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;
|
|
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']),
|
|
@@ -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
|
}
|