@sjcrh/proteinpaint-types 2.163.1 → 2.164.0
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/dist/aiProjectSelectedWSImages.js +1 -1
- package/dist/{chunk-225Q2ZUA.js → chunk-C6EUYXHJ.js} +5 -1
- package/dist/{chunk-ETMCI34A.js → chunk-ZFEV22KC.js} +5 -1
- package/dist/index.js +2 -2
- package/dist/samplewsimages.js +1 -1
- package/package.json +1 -1
- package/src/dataset.ts +3 -0
- package/src/routes/aiProjectSelectedWSImages.ts +1 -0
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
aiProjectSelectedWSImagesResponsePayload,
|
|
3
3
|
validAiProjectSelectedWSImagesRequest,
|
|
4
4
|
validAiProjectSelectedWSImagesResponse
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-C6EUYXHJ.js";
|
|
6
6
|
import "./chunk-YNHC5SXO.js";
|
|
7
7
|
export {
|
|
8
8
|
aiProjectSelectedWSImagesResponsePayload,
|
|
@@ -74,7 +74,7 @@ var validAiProjectSelectedWSImagesResponse = (input) => {
|
|
|
74
74
|
const __is = (input2) => {
|
|
75
75
|
const $io0 = (input3) => Array.isArray(input3.wsimages) && input3.wsimages.every((elem) => "object" === typeof elem && null !== elem && $io1(elem));
|
|
76
76
|
const $io1 = (input3) => (void 0 === input3.id || "number" === typeof input3.id) && "string" === typeof input3.filename && (void 0 === input3.metadata || "string" === typeof input3.metadata) && (void 0 === input3.predictionLayers || Array.isArray(input3.predictionLayers) && input3.predictionLayers.every((elem) => "string" === typeof elem)) && (void 0 === input3.annotations || Array.isArray(input3.annotations) && input3.annotations.every((elem) => "object" === typeof elem && null !== elem && $io2(elem))) && (void 0 === input3.predictions || Array.isArray(input3.predictions) && input3.predictions.every((elem) => "object" === typeof elem && null !== elem && $io3(elem))) && (void 0 === input3.classes || Array.isArray(input3.classes) && input3.classes.every((elem) => "object" === typeof elem && null !== elem && $io4(elem))) && true && (void 0 === input3.activePatchColor || "string" === typeof input3.activePatchColor) && (void 0 === input3.tileSize || "number" === typeof input3.tileSize);
|
|
77
|
-
const $io2 = (input3) => "string" === typeof input3["class"] && (Array.isArray(input3.zoomCoordinates) && (input3.zoomCoordinates.length === 2 && "number" === typeof input3.zoomCoordinates[0] && "number" === typeof input3.zoomCoordinates[1]));
|
|
77
|
+
const $io2 = (input3) => "string" === typeof input3["class"] && (void 0 === input3.timestamp || "string" === typeof input3.timestamp) && (Array.isArray(input3.zoomCoordinates) && (input3.zoomCoordinates.length === 2 && "number" === typeof input3.zoomCoordinates[0] && "number" === typeof input3.zoomCoordinates[1]));
|
|
78
78
|
const $io3 = (input3) => "string" === typeof input3["class"] && "number" === typeof input3.uncertainty && (Array.isArray(input3.zoomCoordinates) && (input3.zoomCoordinates.length === 2 && "number" === typeof input3.zoomCoordinates[0] && "number" === typeof input3.zoomCoordinates[1]));
|
|
79
79
|
const $io4 = (input3) => "number" === typeof input3.id && "string" === typeof input3.key_shortcut && "string" === typeof input3.label && "string" === typeof input3.color;
|
|
80
80
|
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
@@ -184,6 +184,10 @@ var validAiProjectSelectedWSImagesResponse = (input) => {
|
|
|
184
184
|
path: _path2 + '["class"]',
|
|
185
185
|
expected: "string",
|
|
186
186
|
value: input3["class"]
|
|
187
|
+
}), void 0 === input3.timestamp || "string" === typeof input3.timestamp || $report(_exceptionable2, {
|
|
188
|
+
path: _path2 + ".timestamp",
|
|
189
|
+
expected: "(string | undefined)",
|
|
190
|
+
value: input3.timestamp
|
|
187
191
|
}), (Array.isArray(input3.zoomCoordinates) || $report(_exceptionable2, {
|
|
188
192
|
path: _path2 + ".zoomCoordinates",
|
|
189
193
|
expected: "[number, number]",
|
|
@@ -66,7 +66,7 @@ var validSampleWSImagesResponse = (input) => {
|
|
|
66
66
|
const __is = (input2) => {
|
|
67
67
|
const $io0 = (input3) => Array.isArray(input3.sampleWSImages) && input3.sampleWSImages.every((elem) => "object" === typeof elem && null !== elem && $io1(elem));
|
|
68
68
|
const $io1 = (input3) => (void 0 === input3.id || "number" === typeof input3.id) && "string" === typeof input3.filename && (void 0 === input3.metadata || "string" === typeof input3.metadata) && (void 0 === input3.predictionLayers || Array.isArray(input3.predictionLayers) && input3.predictionLayers.every((elem) => "string" === typeof elem)) && (void 0 === input3.annotations || Array.isArray(input3.annotations) && input3.annotations.every((elem) => "object" === typeof elem && null !== elem && $io2(elem))) && (void 0 === input3.predictions || Array.isArray(input3.predictions) && input3.predictions.every((elem) => "object" === typeof elem && null !== elem && $io3(elem))) && (void 0 === input3.classes || Array.isArray(input3.classes) && input3.classes.every((elem) => "object" === typeof elem && null !== elem && $io4(elem))) && true && (void 0 === input3.activePatchColor || "string" === typeof input3.activePatchColor) && (void 0 === input3.tileSize || "number" === typeof input3.tileSize);
|
|
69
|
-
const $io2 = (input3) => "string" === typeof input3["class"] && (Array.isArray(input3.zoomCoordinates) && (input3.zoomCoordinates.length === 2 && "number" === typeof input3.zoomCoordinates[0] && "number" === typeof input3.zoomCoordinates[1]));
|
|
69
|
+
const $io2 = (input3) => "string" === typeof input3["class"] && (void 0 === input3.timestamp || "string" === typeof input3.timestamp) && (Array.isArray(input3.zoomCoordinates) && (input3.zoomCoordinates.length === 2 && "number" === typeof input3.zoomCoordinates[0] && "number" === typeof input3.zoomCoordinates[1]));
|
|
70
70
|
const $io3 = (input3) => "string" === typeof input3["class"] && "number" === typeof input3.uncertainty && (Array.isArray(input3.zoomCoordinates) && (input3.zoomCoordinates.length === 2 && "number" === typeof input3.zoomCoordinates[0] && "number" === typeof input3.zoomCoordinates[1]));
|
|
71
71
|
const $io4 = (input3) => "number" === typeof input3.id && "string" === typeof input3.key_shortcut && "string" === typeof input3.label && "string" === typeof input3.color;
|
|
72
72
|
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
@@ -176,6 +176,10 @@ var validSampleWSImagesResponse = (input) => {
|
|
|
176
176
|
path: _path2 + '["class"]',
|
|
177
177
|
expected: "string",
|
|
178
178
|
value: input3["class"]
|
|
179
|
+
}), void 0 === input3.timestamp || "string" === typeof input3.timestamp || $report(_exceptionable2, {
|
|
180
|
+
path: _path2 + ".timestamp",
|
|
181
|
+
expected: "(string | undefined)",
|
|
182
|
+
value: input3.timestamp
|
|
179
183
|
}), (Array.isArray(input3.zoomCoordinates) || $report(_exceptionable2, {
|
|
180
184
|
path: _path2 + ".zoomCoordinates",
|
|
181
185
|
expected: "[number, number]",
|
package/dist/index.js
CHANGED
|
@@ -187,7 +187,7 @@ import {
|
|
|
187
187
|
sampleWSImagesPayload,
|
|
188
188
|
validSampleWSImagesRequest,
|
|
189
189
|
validSampleWSImagesResponse
|
|
190
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-ZFEV22KC.js";
|
|
191
191
|
import {
|
|
192
192
|
gdcMafPayload,
|
|
193
193
|
validGdcMafRequest,
|
|
@@ -277,7 +277,7 @@ import {
|
|
|
277
277
|
aiProjectSelectedWSImagesResponsePayload,
|
|
278
278
|
validAiProjectSelectedWSImagesRequest,
|
|
279
279
|
validAiProjectSelectedWSImagesResponse
|
|
280
|
-
} from "./chunk-
|
|
280
|
+
} from "./chunk-C6EUYXHJ.js";
|
|
281
281
|
import {
|
|
282
282
|
aiProjectTrainModelPayload,
|
|
283
283
|
validAIProjectTrainModelRequest,
|
package/dist/samplewsimages.js
CHANGED
package/package.json
CHANGED
package/src/dataset.ts
CHANGED
|
@@ -1050,6 +1050,9 @@ export type WSImages = {
|
|
|
1050
1050
|
/** dynamically added on launch with built in logic */
|
|
1051
1051
|
deleteWSIAnnotation?: (annotation: DeleteWSIAnnotationRequest) => Promise<void>
|
|
1052
1052
|
|
|
1053
|
+
/** dynamically added on launch with built in logic - returns all image filenames for a project */
|
|
1054
|
+
getAllWSImages?: (projectId: string) => Promise<string[]>
|
|
1055
|
+
|
|
1053
1056
|
/** either ds supplied or dynamically added on launch with built in logic (retrieve the sample list from the wsimages table) */
|
|
1054
1057
|
getSamples?: () => Promise<Array<WSISample>>
|
|
1055
1058
|
/** either ds supplied or dynamically added on launch with built in logic */
|