@digital8/lighting-illusions-ts-sdk 0.0.930 → 0.0.932
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/StoreProductChildRequest.d.ts +1 -1
- package/dist/models/StoreProductChildRequest.js +2 -4
- package/package.json +1 -1
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/StoreProductChildRequest.ts +3 -4
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.932
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -464,7 +464,7 @@ and is automatically generated by the
|
|
|
464
464
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
465
465
|
|
|
466
466
|
- API version: `1.0.0`
|
|
467
|
-
- Package version: `0.0.
|
|
467
|
+
- Package version: `0.0.932`
|
|
468
468
|
- Generator version: `7.19.0`
|
|
469
469
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
470
470
|
|
|
@@ -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']),
|
|
@@ -125,7 +125,7 @@ export interface StoreProductChildRequest {
|
|
|
125
125
|
* @type {Array<StoreProductChildRequestAttributeValuesInner>}
|
|
126
126
|
* @memberof StoreProductChildRequest
|
|
127
127
|
*/
|
|
128
|
-
attributeValues
|
|
128
|
+
attributeValues?: Array<StoreProductChildRequestAttributeValuesInner>;
|
|
129
129
|
/**
|
|
130
130
|
*
|
|
131
131
|
* @type {Array<StoreProductChildRequestAssetsInner>}
|
|
@@ -47,8 +47,6 @@ function instanceOfStoreProductChildRequest(value) {
|
|
|
47
47
|
return false;
|
|
48
48
|
if (!('sites' in value) || value['sites'] === undefined)
|
|
49
49
|
return false;
|
|
50
|
-
if (!('attributeValues' in value) || value['attributeValues'] === undefined)
|
|
51
|
-
return false;
|
|
52
50
|
if (!('assets' in value) || value['assets'] === undefined)
|
|
53
51
|
return false;
|
|
54
52
|
return true;
|
|
@@ -78,7 +76,7 @@ function StoreProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
78
76
|
'sites': (json['sites'].map(StoreProductChildRequestSitesInner_1.StoreProductChildRequestSitesInnerFromJSON)),
|
|
79
77
|
'accessories': json['accessories'] == null ? undefined : json['accessories'],
|
|
80
78
|
'compatibleProducts': json['compatible_products'] == null ? undefined : json['compatible_products'],
|
|
81
|
-
'attributeValues': (json['attribute_values'].map(StoreProductChildRequestAttributeValuesInner_1.StoreProductChildRequestAttributeValuesInnerFromJSON)),
|
|
79
|
+
'attributeValues': json['attribute_values'] == null ? undefined : (json['attribute_values'].map(StoreProductChildRequestAttributeValuesInner_1.StoreProductChildRequestAttributeValuesInnerFromJSON)),
|
|
82
80
|
'assets': (json['assets'].map(StoreProductChildRequestAssetsInner_1.StoreProductChildRequestAssetsInnerFromJSON)),
|
|
83
81
|
};
|
|
84
82
|
}
|
|
@@ -108,7 +106,7 @@ function StoreProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
108
106
|
'sites': (value['sites'].map(StoreProductChildRequestSitesInner_1.StoreProductChildRequestSitesInnerToJSON)),
|
|
109
107
|
'accessories': value['accessories'],
|
|
110
108
|
'compatible_products': value['compatibleProducts'],
|
|
111
|
-
'attribute_values': (value['attributeValues'].map(StoreProductChildRequestAttributeValuesInner_1.StoreProductChildRequestAttributeValuesInnerToJSON)),
|
|
109
|
+
'attribute_values': value['attributeValues'] == null ? undefined : (value['attributeValues'].map(StoreProductChildRequestAttributeValuesInner_1.StoreProductChildRequestAttributeValuesInnerToJSON)),
|
|
112
110
|
'assets': (value['assets'].map(StoreProductChildRequestAssetsInner_1.StoreProductChildRequestAssetsInnerToJSON)),
|
|
113
111
|
};
|
|
114
112
|
}
|
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']),
|
|
@@ -148,7 +148,7 @@ export interface StoreProductChildRequest {
|
|
|
148
148
|
* @type {Array<StoreProductChildRequestAttributeValuesInner>}
|
|
149
149
|
* @memberof StoreProductChildRequest
|
|
150
150
|
*/
|
|
151
|
-
attributeValues
|
|
151
|
+
attributeValues?: Array<StoreProductChildRequestAttributeValuesInner>;
|
|
152
152
|
/**
|
|
153
153
|
*
|
|
154
154
|
* @type {Array<StoreProductChildRequestAssetsInner>}
|
|
@@ -172,7 +172,6 @@ export function instanceOfStoreProductChildRequest(value: object): value is Stor
|
|
|
172
172
|
if (!('isOversized' in value) || value['isOversized'] === undefined) return false;
|
|
173
173
|
if (!('stock' in value) || value['stock'] === undefined) return false;
|
|
174
174
|
if (!('sites' in value) || value['sites'] === undefined) return false;
|
|
175
|
-
if (!('attributeValues' in value) || value['attributeValues'] === undefined) return false;
|
|
176
175
|
if (!('assets' in value) || value['assets'] === undefined) return false;
|
|
177
176
|
return true;
|
|
178
177
|
}
|
|
@@ -204,7 +203,7 @@ export function StoreProductChildRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
204
203
|
'sites': ((json['sites'] as Array<any>).map(StoreProductChildRequestSitesInnerFromJSON)),
|
|
205
204
|
'accessories': json['accessories'] == null ? undefined : json['accessories'],
|
|
206
205
|
'compatibleProducts': json['compatible_products'] == null ? undefined : json['compatible_products'],
|
|
207
|
-
'attributeValues': ((json['attribute_values'] as Array<any>).map(StoreProductChildRequestAttributeValuesInnerFromJSON)),
|
|
206
|
+
'attributeValues': json['attribute_values'] == null ? undefined : ((json['attribute_values'] as Array<any>).map(StoreProductChildRequestAttributeValuesInnerFromJSON)),
|
|
208
207
|
'assets': ((json['assets'] as Array<any>).map(StoreProductChildRequestAssetsInnerFromJSON)),
|
|
209
208
|
};
|
|
210
209
|
}
|
|
@@ -237,7 +236,7 @@ export function StoreProductChildRequestToJSONTyped(value?: StoreProductChildReq
|
|
|
237
236
|
'sites': ((value['sites'] as Array<any>).map(StoreProductChildRequestSitesInnerToJSON)),
|
|
238
237
|
'accessories': value['accessories'],
|
|
239
238
|
'compatible_products': value['compatibleProducts'],
|
|
240
|
-
'attribute_values': ((value['attributeValues'] as Array<any>).map(StoreProductChildRequestAttributeValuesInnerToJSON)),
|
|
239
|
+
'attribute_values': value['attributeValues'] == null ? undefined : ((value['attributeValues'] as Array<any>).map(StoreProductChildRequestAttributeValuesInnerToJSON)),
|
|
241
240
|
'assets': ((value['assets'] as Array<any>).map(StoreProductChildRequestAssetsInnerToJSON)),
|
|
242
241
|
};
|
|
243
242
|
}
|