@sjcrh/proteinpaint-types 2.133.4 → 2.133.5
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.
|
@@ -65,7 +65,7 @@ var validWSImagesResponse = (input) => {
|
|
|
65
65
|
const errors = [];
|
|
66
66
|
const __is = (input2) => {
|
|
67
67
|
const $io0 = (input3) => (void 0 === input3.wsiSessionId || "string" === typeof input3.wsiSessionId) && (void 0 === input3.overlays || Array.isArray(input3.overlays) && input3.overlays.every((elem) => "object" === typeof elem && null !== elem && $io1(elem))) && (Array.isArray(input3.slide_dimensions) && input3.slide_dimensions.every((elem) => "number" === typeof elem)) && "string" === typeof input3.status && (void 0 === input3.error || "string" === typeof input3.error);
|
|
68
|
-
const $io1 = (input3) => "string" === typeof input3.layerNumber &&
|
|
68
|
+
const $io1 = (input3) => "string" === typeof input3.layerNumber && "string" === typeof input3.predictionOverlayType;
|
|
69
69
|
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
70
70
|
};
|
|
71
71
|
if (false === __is(input)) {
|
|
@@ -116,9 +116,9 @@ var validWSImagesResponse = (input) => {
|
|
|
116
116
|
path: _path2 + ".layerNumber",
|
|
117
117
|
expected: "string",
|
|
118
118
|
value: input3.layerNumber
|
|
119
|
-
}), "
|
|
119
|
+
}), "string" === typeof input3.predictionOverlayType || $report(_exceptionable2, {
|
|
120
120
|
path: _path2 + ".predictionOverlayType",
|
|
121
|
-
expected:
|
|
121
|
+
expected: "string",
|
|
122
122
|
value: input3.predictionOverlayType
|
|
123
123
|
})].every((flag) => flag);
|
|
124
124
|
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
package/dist/index.js
CHANGED
package/dist/wsimages.js
CHANGED
package/package.json
CHANGED
package/src/routes/wsimages.ts
CHANGED
|
@@ -18,12 +18,7 @@ export type WSImagesResponse = {
|
|
|
18
18
|
|
|
19
19
|
export type PredictionOverlay = {
|
|
20
20
|
layerNumber: string
|
|
21
|
-
predictionOverlayType:
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export enum PredictionOverlayType {
|
|
25
|
-
PREDICTION = 'Prediction',
|
|
26
|
-
UNCERTAINTY = 'Uncertainty'
|
|
21
|
+
predictionOverlayType: string
|
|
27
22
|
}
|
|
28
23
|
|
|
29
24
|
export const wsImagesPayload: RoutePayload = {
|