@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 && ("Prediction" === input3.predictionOverlayType || "Uncertainty" === input3.predictionOverlayType);
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
- }), "Prediction" === input3.predictionOverlayType || "Uncertainty" === input3.predictionOverlayType || $report(_exceptionable2, {
119
+ }), "string" === typeof input3.predictionOverlayType || $report(_exceptionable2, {
120
120
  path: _path2 + ".predictionOverlayType",
121
- expected: '("Prediction" | "Uncertainty")',
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
@@ -22,7 +22,7 @@ import {
22
22
  validWSImagesRequest,
23
23
  validWSImagesResponse,
24
24
  wsImagesPayload
25
- } from "./chunk-ROVWURCJ.js";
25
+ } from "./chunk-CQDDRHRY.js";
26
26
  import {
27
27
  validWSISamplesRequest,
28
28
  validWSISamplesResponse,
package/dist/wsimages.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  validWSImagesRequest,
3
3
  validWSImagesResponse,
4
4
  wsImagesPayload
5
- } from "./chunk-ROVWURCJ.js";
5
+ } from "./chunk-CQDDRHRY.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  validWSImagesRequest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.133.4",
3
+ "version": "2.133.5",
4
4
  "type": "module",
5
5
  "description": "Shared type definitions between ProteinPaint server and client code",
6
6
  "main": "src/index.ts",
@@ -18,12 +18,7 @@ export type WSImagesResponse = {
18
18
 
19
19
  export type PredictionOverlay = {
20
20
  layerNumber: string
21
- predictionOverlayType: 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 = {