@sjcrh/proteinpaint-types 2.164.1 → 2.167.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-JT4DSNJ3.js → chunk-E4Z7PJZQ.js} +12 -8
- package/dist/chunk-F5IWKWVX.js +150 -0
- package/dist/{chunk-TR2MSSP3.js → chunk-GIPUG4HD.js} +45 -12
- package/dist/{chunk-C6EUYXHJ.js → chunk-T2HQMRX7.js} +7 -3
- package/dist/{chunk-ZFEV22KC.js → chunk-V5NAE7YA.js} +7 -3
- package/dist/deleteWSITileSelection.js +11 -0
- package/dist/index.js +11 -11
- package/dist/samplewsimages.js +1 -1
- package/dist/termdb.boxplot.js +1 -1
- package/dist/termdb.chat.js +1 -1
- package/package.json +1 -1
- package/src/dataset.ts +19 -16
- package/src/index.ts +1 -1
- package/src/routes/aiProjectSelectedWSImages.ts +2 -1
- package/src/routes/deleteWSITileSelection.ts +26 -0
- package/src/routes/termdb.boxplot.ts +4 -1
- package/src/routes/termdb.chat.ts +11 -33
- package/dist/chunk-USAQULWA.js +0 -105
- package/dist/deleteWSIAnnotation.js +0 -11
- package/src/routes/deleteWSIAnnotation.ts +0 -23
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
aiProjectSelectedWSImagesResponsePayload,
|
|
3
3
|
validAiProjectSelectedWSImagesRequest,
|
|
4
4
|
validAiProjectSelectedWSImagesResponse
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-T2HQMRX7.js";
|
|
6
6
|
import "./chunk-YNHC5SXO.js";
|
|
7
7
|
export {
|
|
8
8
|
aiProjectSelectedWSImagesResponsePayload,
|
|
@@ -73,7 +73,7 @@ var validBoxPlotRequest = (input) => {
|
|
|
73
73
|
const errors = [];
|
|
74
74
|
const __is = (input2) => {
|
|
75
75
|
const $join = import_typia.createValidate.join;
|
|
76
|
-
const $io0 = (input3) => "object" === typeof input3.tw && null !== input3.tw && $iu6(input3.tw) && "string" === typeof input3.genome && "string" === typeof input3.dslabel && "boolean" === typeof input3.isLogScale && "boolean" === typeof input3.orderByMedian && (void 0 === input3.overlayTw || "object" === typeof input3.overlayTw && null !== input3.overlayTw && $iu6(input3.overlayTw)) && (void 0 === input3.divideTw || "object" === typeof input3.divideTw && null !== input3.divideTw && $iu6(input3.divideTw)) && (void 0 === input3.filter || "object" === typeof input3.filter && null !== input3.filter && $io6(input3.filter)) && true && true
|
|
76
|
+
const $io0 = (input3) => "object" === typeof input3.tw && null !== input3.tw && $iu6(input3.tw) && "string" === typeof input3.genome && "string" === typeof input3.dslabel && "boolean" === typeof input3.isLogScale && "boolean" === typeof input3.orderByMedian && (void 0 === input3.removeOutliers || "boolean" === typeof input3.removeOutliers) && (void 0 === input3.showAssocTests || "boolean" === typeof input3.showAssocTests) && (void 0 === input3.overlayTw || "object" === typeof input3.overlayTw && null !== input3.overlayTw && $iu6(input3.overlayTw)) && (void 0 === input3.divideTw || "object" === typeof input3.divideTw && null !== input3.divideTw && $iu6(input3.divideTw)) && (void 0 === input3.filter || "object" === typeof input3.filter && null !== input3.filter && $io6(input3.filter)) && true && true;
|
|
77
77
|
const $io1 = (input3) => (void 0 === input3.id || "string" === typeof input3.id) && (void 0 === input3.$id || "string" === typeof input3.$id) && (void 0 === input3.isAtomic || true === input3.isAtomic) && true && (void 0 === input3.settings || "object" === typeof input3.settings && null !== input3.settings && false === Array.isArray(input3.settings) && $io2(input3.settings)) && true && (void 0 === input3.minNumSamples || "number" === typeof input3.minNumSamples) && true && ("object" === typeof input3.term && null !== input3.term && $iu7(input3.term)) && ("object" === typeof input3.q && null !== input3.q && $io43(input3.q)) && "QualTWValues" === input3.type;
|
|
78
78
|
const $io2 = (input3) => Object.keys(input3).every((key) => {
|
|
79
79
|
const value = input3[key];
|
|
@@ -340,6 +340,14 @@ var validBoxPlotRequest = (input) => {
|
|
|
340
340
|
path: _path2 + ".orderByMedian",
|
|
341
341
|
expected: "boolean",
|
|
342
342
|
value: input3.orderByMedian
|
|
343
|
+
}), void 0 === input3.removeOutliers || "boolean" === typeof input3.removeOutliers || $report(_exceptionable2, {
|
|
344
|
+
path: _path2 + ".removeOutliers",
|
|
345
|
+
expected: "(boolean | undefined)",
|
|
346
|
+
value: input3.removeOutliers
|
|
347
|
+
}), void 0 === input3.showAssocTests || "boolean" === typeof input3.showAssocTests || $report(_exceptionable2, {
|
|
348
|
+
path: _path2 + ".showAssocTests",
|
|
349
|
+
expected: "(boolean | undefined)",
|
|
350
|
+
value: input3.showAssocTests
|
|
343
351
|
}), void 0 === input3.overlayTw || ("object" === typeof input3.overlayTw && null !== input3.overlayTw || $report(_exceptionable2, {
|
|
344
352
|
path: _path2 + ".overlayTw",
|
|
345
353
|
expected: "(ConditionTW | GvCustomGsTW | GvPredefinedGsTW | GvValuesTW | NumTWBinary | NumTWCont | NumTWCustomBin | NumTWRegularBin | NumTWSpline | QualTWCustomGS | QualTWPredefinedGS | QualTWValues | SnpsTW | undefined)",
|
|
@@ -364,11 +372,7 @@ var validBoxPlotRequest = (input) => {
|
|
|
364
372
|
path: _path2 + ".filter",
|
|
365
373
|
expected: "(Filter | undefined)",
|
|
366
374
|
value: input3.filter
|
|
367
|
-
}), true, true
|
|
368
|
-
path: _path2 + ".removeOutliers",
|
|
369
|
-
expected: "(boolean | undefined)",
|
|
370
|
-
value: input3.removeOutliers
|
|
371
|
-
})].every((flag) => flag);
|
|
375
|
+
}), true, true].every((flag) => flag);
|
|
372
376
|
const $vo1 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.id || "string" === typeof input3.id || $report(_exceptionable2, {
|
|
373
377
|
path: _path2 + ".id",
|
|
374
378
|
expected: "(string | undefined)",
|
|
@@ -4251,7 +4255,7 @@ var validBoxPlotResponse = (input) => {
|
|
|
4251
4255
|
return "object" === typeof value && null !== value && $io2(value);
|
|
4252
4256
|
return true;
|
|
4253
4257
|
});
|
|
4254
|
-
const $io2 = (input3) => "string" === typeof input3.chartId && (Array.isArray(input3.plots) && input3.plots.every((elem) => "object" === typeof elem && null !== elem && $io3(elem))) && true && (void 0 === input3.absMin || "number" === typeof input3.absMin) && (void 0 === input3.absMax || "number" === typeof input3.absMax) && (null === input3.uncomputableValues || void 0 === input3.uncomputableValues || Array.isArray(input3.uncomputableValues) && input3.uncomputableValues.every((elem) => "object" === typeof elem && null !== elem && $io8(elem)));
|
|
4258
|
+
const $io2 = (input3) => "string" === typeof input3.chartId && (Array.isArray(input3.plots) && input3.plots.every((elem) => "object" === typeof elem && null !== elem && $io3(elem))) && true && (void 0 === input3.absMin || "number" === typeof input3.absMin) && (void 0 === input3.absMax || "number" === typeof input3.absMax) && (null === input3.uncomputableValues || void 0 === input3.uncomputableValues || Array.isArray(input3.uncomputableValues) && input3.uncomputableValues.every((elem) => "object" === typeof elem && null !== elem && $io8(elem))) && true;
|
|
4255
4259
|
const $io3 = (input3) => "object" === typeof input3.boxplot && null !== input3.boxplot && $io4(input3.boxplot) && (void 0 === input3.color || "string" === typeof input3.color) && ("object" === typeof input3.descrStats && null !== input3.descrStats && false === Array.isArray(input3.descrStats) && $io6(input3.descrStats)) && (void 0 === input3.isHidden || "boolean" === typeof input3.isHidden) && "string" === typeof input3.key && true && (void 0 === input3.seriesId || "string" === typeof input3.seriesId);
|
|
4256
4260
|
const $io4 = (input3) => (void 0 === input3.w1 || "number" === typeof input3.w1) && (void 0 === input3.w2 || "number" === typeof input3.w2) && "number" === typeof input3.p05 && "number" === typeof input3.p25 && "number" === typeof input3.p50 && "number" === typeof input3.p75 && "number" === typeof input3.p95 && "number" === typeof input3.iqr && (Array.isArray(input3.out) && input3.out.every((elem) => "object" === typeof elem && null !== elem && $io5(elem))) && "string" === typeof input3.label;
|
|
4257
4261
|
const $io5 = (input3) => "number" === typeof input3.value;
|
|
@@ -4372,7 +4376,7 @@ var validBoxPlotResponse = (input) => {
|
|
|
4372
4376
|
path: _path2 + ".uncomputableValues",
|
|
4373
4377
|
expected: "(Array<__type>.o1 | null | undefined)",
|
|
4374
4378
|
value: input3.uncomputableValues
|
|
4375
|
-
})].every((flag) => flag);
|
|
4379
|
+
}), true].every((flag) => flag);
|
|
4376
4380
|
const $vo3 = (input3, _path2, _exceptionable2 = true) => [("object" === typeof input3.boxplot && null !== input3.boxplot || $report(_exceptionable2, {
|
|
4377
4381
|
path: _path2 + ".boxplot",
|
|
4378
4382
|
expected: "BoxPlotData & { label: string; }",
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__toESM,
|
|
3
|
+
require_lib
|
|
4
|
+
} from "./chunk-YNHC5SXO.js";
|
|
5
|
+
|
|
6
|
+
// dist/deleteWSITileSelection.ts
|
|
7
|
+
var import_typia = __toESM(require_lib(), 1);
|
|
8
|
+
|
|
9
|
+
// src/routes/deleteWSITileSelection.ts
|
|
10
|
+
var deleteWSITileSelectionPayload = {
|
|
11
|
+
request: {
|
|
12
|
+
typeId: "DeleteWSITileSelectionRequest"
|
|
13
|
+
},
|
|
14
|
+
response: {
|
|
15
|
+
typeId: "DeleteWSITileSelectionResponse"
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
// dist/deleteWSITileSelection.ts
|
|
20
|
+
var validDeleteWSITileSelectionRequest = (input) => {
|
|
21
|
+
const errors = [];
|
|
22
|
+
const __is = (input2) => {
|
|
23
|
+
const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && "number" === typeof input3.projectId && ("object" === typeof input3.tileSelection && null !== input3.tileSelection && $io1(input3.tileSelection)) && "string" === typeof input3.predictionClassId && "number" === typeof input3.tileSelectionType && "string" === typeof input3.wsimage;
|
|
24
|
+
const $io1 = (input3) => Array.isArray(input3.zoomCoordinates) && (input3.zoomCoordinates.length === 2 && "number" === typeof input3.zoomCoordinates[0] && "number" === typeof input3.zoomCoordinates[1]) && (void 0 === input3["class"] || "string" === typeof input3["class"]);
|
|
25
|
+
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
26
|
+
};
|
|
27
|
+
if (false === __is(input)) {
|
|
28
|
+
const $report = import_typia.createValidate.report(errors);
|
|
29
|
+
((input2, _path, _exceptionable = true) => {
|
|
30
|
+
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.genome || $report(_exceptionable2, {
|
|
31
|
+
path: _path2 + ".genome",
|
|
32
|
+
expected: "string",
|
|
33
|
+
value: input3.genome
|
|
34
|
+
}), "string" === typeof input3.dslabel || $report(_exceptionable2, {
|
|
35
|
+
path: _path2 + ".dslabel",
|
|
36
|
+
expected: "string",
|
|
37
|
+
value: input3.dslabel
|
|
38
|
+
}), "number" === typeof input3.projectId || $report(_exceptionable2, {
|
|
39
|
+
path: _path2 + ".projectId",
|
|
40
|
+
expected: "number",
|
|
41
|
+
value: input3.projectId
|
|
42
|
+
}), ("object" === typeof input3.tileSelection && null !== input3.tileSelection || $report(_exceptionable2, {
|
|
43
|
+
path: _path2 + ".tileSelection",
|
|
44
|
+
expected: "TileSelection",
|
|
45
|
+
value: input3.tileSelection
|
|
46
|
+
})) && $vo1(input3.tileSelection, _path2 + ".tileSelection", _exceptionable2) || $report(_exceptionable2, {
|
|
47
|
+
path: _path2 + ".tileSelection",
|
|
48
|
+
expected: "TileSelection",
|
|
49
|
+
value: input3.tileSelection
|
|
50
|
+
}), "string" === typeof input3.predictionClassId || $report(_exceptionable2, {
|
|
51
|
+
path: _path2 + ".predictionClassId",
|
|
52
|
+
expected: "string",
|
|
53
|
+
value: input3.predictionClassId
|
|
54
|
+
}), "number" === typeof input3.tileSelectionType || $report(_exceptionable2, {
|
|
55
|
+
path: _path2 + ".tileSelectionType",
|
|
56
|
+
expected: "number",
|
|
57
|
+
value: input3.tileSelectionType
|
|
58
|
+
}), "string" === typeof input3.wsimage || $report(_exceptionable2, {
|
|
59
|
+
path: _path2 + ".wsimage",
|
|
60
|
+
expected: "string",
|
|
61
|
+
value: input3.wsimage
|
|
62
|
+
})].every((flag) => flag);
|
|
63
|
+
const $vo1 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.zoomCoordinates) || $report(_exceptionable2, {
|
|
64
|
+
path: _path2 + ".zoomCoordinates",
|
|
65
|
+
expected: "[number, number]",
|
|
66
|
+
value: input3.zoomCoordinates
|
|
67
|
+
})) && ((input3.zoomCoordinates.length === 2 || $report(_exceptionable2, {
|
|
68
|
+
path: _path2 + ".zoomCoordinates",
|
|
69
|
+
expected: "[number, number]",
|
|
70
|
+
value: input3.zoomCoordinates
|
|
71
|
+
})) && [
|
|
72
|
+
"number" === typeof input3.zoomCoordinates[0] || $report(_exceptionable2, {
|
|
73
|
+
path: _path2 + ".zoomCoordinates[0]",
|
|
74
|
+
expected: "number",
|
|
75
|
+
value: input3.zoomCoordinates[0]
|
|
76
|
+
}),
|
|
77
|
+
"number" === typeof input3.zoomCoordinates[1] || $report(_exceptionable2, {
|
|
78
|
+
path: _path2 + ".zoomCoordinates[1]",
|
|
79
|
+
expected: "number",
|
|
80
|
+
value: input3.zoomCoordinates[1]
|
|
81
|
+
})
|
|
82
|
+
].every((flag) => flag)) || $report(_exceptionable2, {
|
|
83
|
+
path: _path2 + ".zoomCoordinates",
|
|
84
|
+
expected: "[number, number]",
|
|
85
|
+
value: input3.zoomCoordinates
|
|
86
|
+
}), void 0 === input3["class"] || "string" === typeof input3["class"] || $report(_exceptionable2, {
|
|
87
|
+
path: _path2 + '["class"]',
|
|
88
|
+
expected: "(string | undefined)",
|
|
89
|
+
value: input3["class"]
|
|
90
|
+
})].every((flag) => flag);
|
|
91
|
+
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
92
|
+
path: _path + "",
|
|
93
|
+
expected: "DeleteWSITileSelectionRequest",
|
|
94
|
+
value: input2
|
|
95
|
+
})) && $vo0(input2, _path + "", true) || $report(true, {
|
|
96
|
+
path: _path + "",
|
|
97
|
+
expected: "DeleteWSITileSelectionRequest",
|
|
98
|
+
value: input2
|
|
99
|
+
});
|
|
100
|
+
})(input, "$input", true);
|
|
101
|
+
}
|
|
102
|
+
const success = 0 === errors.length;
|
|
103
|
+
return {
|
|
104
|
+
success,
|
|
105
|
+
errors,
|
|
106
|
+
data: success ? input : void 0
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
var validDeleteWSITileSelectionResponse = (input) => {
|
|
110
|
+
const errors = [];
|
|
111
|
+
const __is = (input2) => {
|
|
112
|
+
const $io0 = (input3) => "string" === typeof input3.status && (void 0 === input3.error || "string" === typeof input3.error);
|
|
113
|
+
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
114
|
+
};
|
|
115
|
+
if (false === __is(input)) {
|
|
116
|
+
const $report = import_typia.createValidate.report(errors);
|
|
117
|
+
((input2, _path, _exceptionable = true) => {
|
|
118
|
+
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.status || $report(_exceptionable2, {
|
|
119
|
+
path: _path2 + ".status",
|
|
120
|
+
expected: "string",
|
|
121
|
+
value: input3.status
|
|
122
|
+
}), void 0 === input3.error || "string" === typeof input3.error || $report(_exceptionable2, {
|
|
123
|
+
path: _path2 + ".error",
|
|
124
|
+
expected: "(string | undefined)",
|
|
125
|
+
value: input3.error
|
|
126
|
+
})].every((flag) => flag);
|
|
127
|
+
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
128
|
+
path: _path + "",
|
|
129
|
+
expected: "DeleteWSITileSelectionResponse",
|
|
130
|
+
value: input2
|
|
131
|
+
})) && $vo0(input2, _path + "", true) || $report(true, {
|
|
132
|
+
path: _path + "",
|
|
133
|
+
expected: "DeleteWSITileSelectionResponse",
|
|
134
|
+
value: input2
|
|
135
|
+
});
|
|
136
|
+
})(input, "$input", true);
|
|
137
|
+
}
|
|
138
|
+
const success = 0 === errors.length;
|
|
139
|
+
return {
|
|
140
|
+
success,
|
|
141
|
+
errors,
|
|
142
|
+
data: success ? input : void 0
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
export {
|
|
147
|
+
deleteWSITileSelectionPayload,
|
|
148
|
+
validDeleteWSITileSelectionRequest,
|
|
149
|
+
validDeleteWSITileSelectionResponse
|
|
150
|
+
};
|
|
@@ -22,7 +22,7 @@ var validChatRequest = (input) => {
|
|
|
22
22
|
const errors = [];
|
|
23
23
|
const __is = (input2) => {
|
|
24
24
|
const $join = import_typia.createValidate.join;
|
|
25
|
-
const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && (void 0 === input3.filter || "object" === typeof input3.filter && null !== input3.filter && $io1(input3.filter)) &&
|
|
25
|
+
const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && (void 0 === input3.filter || "object" === typeof input3.filter && null !== input3.filter && $io1(input3.filter)) && "string" === typeof input3.prompt && true;
|
|
26
26
|
const $io1 = (input3) => "tvslst" === input3.type && "boolean" === typeof input3["in"] && "string" === typeof input3.join && (void 0 === input3.tag || "string" === typeof input3.tag) && (Array.isArray(input3.lst) && input3.lst.every((elem) => "object" === typeof elem && null !== elem && $iu0(elem)));
|
|
27
27
|
const $io2 = (input3) => "tvs" === input3.type && ("object" === typeof input3.tvs && null !== input3.tvs && $iu4(input3.tvs));
|
|
28
28
|
const $io3 = (input3) => (void 0 === input3.join || "string" === typeof input3.join) && (void 0 === input3.isnot || "boolean" === typeof input3.isnot) && ("object" === typeof input3.term && null !== input3.term && $io4(input3.term)) && (void 0 === input3.groupset_label || "string" === typeof input3.groupset_label) && (Array.isArray(input3.values) && input3.values.every((elem) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io6(elem)));
|
|
@@ -185,7 +185,7 @@ var validChatRequest = (input) => {
|
|
|
185
185
|
path: _path2 + ".filter",
|
|
186
186
|
expected: "(Filter | undefined)",
|
|
187
187
|
value: input3.filter
|
|
188
|
-
}),
|
|
188
|
+
}), "string" === typeof input3.prompt || $report(_exceptionable2, {
|
|
189
189
|
path: _path2 + ".prompt",
|
|
190
190
|
expected: "string",
|
|
191
191
|
value: input3.prompt
|
|
@@ -2207,28 +2207,61 @@ var validChatRequest = (input) => {
|
|
|
2207
2207
|
var validChatResponse = (input) => {
|
|
2208
2208
|
const errors = [];
|
|
2209
2209
|
const __is = (input2) => {
|
|
2210
|
-
const $io0 = (input3) =>
|
|
2211
|
-
|
|
2210
|
+
const $io0 = (input3) => "html" === input3.type && "string" === typeof input3.html;
|
|
2211
|
+
const $io1 = (input3) => "plot" === input3.type && ("object" === typeof input3.plot && null !== input3.plot && true);
|
|
2212
|
+
const $iu0 = (input3) => (() => {
|
|
2213
|
+
if ("html" === input3.type)
|
|
2214
|
+
return $io0(input3);
|
|
2215
|
+
if ("plot" === input3.type)
|
|
2216
|
+
return $io1(input3);
|
|
2217
|
+
return false;
|
|
2218
|
+
})();
|
|
2219
|
+
return "object" === typeof input2 && null !== input2 && $iu0(input2);
|
|
2212
2220
|
};
|
|
2213
2221
|
if (false === __is(input)) {
|
|
2214
2222
|
const $report = import_typia.createValidate.report(errors);
|
|
2215
2223
|
((input2, _path, _exceptionable = true) => {
|
|
2216
|
-
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["html" === input3.type ||
|
|
2224
|
+
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["html" === input3.type || $report(_exceptionable2, {
|
|
2217
2225
|
path: _path2 + ".type",
|
|
2218
|
-
expected: '
|
|
2226
|
+
expected: '"html"',
|
|
2219
2227
|
value: input3.type
|
|
2220
|
-
}),
|
|
2228
|
+
}), "string" === typeof input3.html || $report(_exceptionable2, {
|
|
2221
2229
|
path: _path2 + ".html",
|
|
2222
|
-
expected: "
|
|
2230
|
+
expected: "string",
|
|
2223
2231
|
value: input3.html
|
|
2224
|
-
})
|
|
2232
|
+
})].every((flag) => flag);
|
|
2233
|
+
const $vo1 = (input3, _path2, _exceptionable2 = true) => ["plot" === input3.type || $report(_exceptionable2, {
|
|
2234
|
+
path: _path2 + ".type",
|
|
2235
|
+
expected: '"plot"',
|
|
2236
|
+
value: input3.type
|
|
2237
|
+
}), ("object" === typeof input3.plot && null !== input3.plot && false === Array.isArray(input3.plot) || $report(_exceptionable2, {
|
|
2238
|
+
path: _path2 + ".plot",
|
|
2239
|
+
expected: "object",
|
|
2240
|
+
value: input3.plot
|
|
2241
|
+
})) && $vo2(input3.plot, _path2 + ".plot", _exceptionable2) || $report(_exceptionable2, {
|
|
2242
|
+
path: _path2 + ".plot",
|
|
2243
|
+
expected: "object",
|
|
2244
|
+
value: input3.plot
|
|
2245
|
+
})].every((flag) => flag);
|
|
2246
|
+
const $vo2 = (input3, _path2, _exceptionable2 = true) => true;
|
|
2247
|
+
const $vu0 = (input3, _path2, _exceptionable2 = true) => (() => {
|
|
2248
|
+
if ("html" === input3.type)
|
|
2249
|
+
return $vo0(input3, _path2, _exceptionable2);
|
|
2250
|
+
if ("plot" === input3.type)
|
|
2251
|
+
return $vo1(input3, _path2, _exceptionable2);
|
|
2252
|
+
return $report(_exceptionable2, {
|
|
2253
|
+
path: _path2,
|
|
2254
|
+
expected: "(HtmlResponse | PlotResponse)",
|
|
2255
|
+
value: input3
|
|
2256
|
+
});
|
|
2257
|
+
})();
|
|
2225
2258
|
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
2226
2259
|
path: _path + "",
|
|
2227
|
-
expected: "
|
|
2260
|
+
expected: "(HtmlResponse | PlotResponse)",
|
|
2228
2261
|
value: input2
|
|
2229
|
-
})) && $
|
|
2262
|
+
})) && $vu0(input2, _path + "", true) || $report(true, {
|
|
2230
2263
|
path: _path + "",
|
|
2231
|
-
expected: "
|
|
2264
|
+
expected: "(HtmlResponse | PlotResponse)",
|
|
2232
2265
|
value: input2
|
|
2233
2266
|
});
|
|
2234
2267
|
})(input, "$input", true);
|
|
@@ -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"] &&
|
|
77
|
+
const $io2 = (input3) => "string" === typeof input3["class"] && "number" === typeof input3.status && "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,9 +184,13 @@ var validAiProjectSelectedWSImagesResponse = (input) => {
|
|
|
184
184
|
path: _path2 + '["class"]',
|
|
185
185
|
expected: "string",
|
|
186
186
|
value: input3["class"]
|
|
187
|
-
}),
|
|
187
|
+
}), "number" === typeof input3.status || $report(_exceptionable2, {
|
|
188
|
+
path: _path2 + ".status",
|
|
189
|
+
expected: "number",
|
|
190
|
+
value: input3.status
|
|
191
|
+
}), "string" === typeof input3.timestamp || $report(_exceptionable2, {
|
|
188
192
|
path: _path2 + ".timestamp",
|
|
189
|
-
expected: "
|
|
193
|
+
expected: "string",
|
|
190
194
|
value: input3.timestamp
|
|
191
195
|
}), (Array.isArray(input3.zoomCoordinates) || $report(_exceptionable2, {
|
|
192
196
|
path: _path2 + ".zoomCoordinates",
|
|
@@ -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"] &&
|
|
69
|
+
const $io2 = (input3) => "string" === typeof input3["class"] && "number" === typeof input3.status && "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,9 +176,13 @@ var validSampleWSImagesResponse = (input) => {
|
|
|
176
176
|
path: _path2 + '["class"]',
|
|
177
177
|
expected: "string",
|
|
178
178
|
value: input3["class"]
|
|
179
|
-
}),
|
|
179
|
+
}), "number" === typeof input3.status || $report(_exceptionable2, {
|
|
180
|
+
path: _path2 + ".status",
|
|
181
|
+
expected: "number",
|
|
182
|
+
value: input3.status
|
|
183
|
+
}), "string" === typeof input3.timestamp || $report(_exceptionable2, {
|
|
180
184
|
path: _path2 + ".timestamp",
|
|
181
|
-
expected: "
|
|
185
|
+
expected: "string",
|
|
182
186
|
value: input3.timestamp
|
|
183
187
|
}), (Array.isArray(input3.zoomCoordinates) || $report(_exceptionable2, {
|
|
184
188
|
path: _path2 + ".zoomCoordinates",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
deleteWSITileSelectionPayload,
|
|
3
|
+
validDeleteWSITileSelectionRequest,
|
|
4
|
+
validDeleteWSITileSelectionResponse
|
|
5
|
+
} from "./chunk-F5IWKWVX.js";
|
|
6
|
+
import "./chunk-YNHC5SXO.js";
|
|
7
|
+
export {
|
|
8
|
+
deleteWSITileSelectionPayload,
|
|
9
|
+
validDeleteWSITileSelectionRequest,
|
|
10
|
+
validDeleteWSITileSelectionResponse
|
|
11
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -132,7 +132,7 @@ import {
|
|
|
132
132
|
boxplotPayload,
|
|
133
133
|
validBoxPlotRequest,
|
|
134
134
|
validBoxPlotResponse
|
|
135
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-E4Z7PJZQ.js";
|
|
136
136
|
import {
|
|
137
137
|
termdbCategoriesPayload,
|
|
138
138
|
validCategoriesRequest,
|
|
@@ -142,7 +142,7 @@ import {
|
|
|
142
142
|
ChatPayload,
|
|
143
143
|
validChatRequest,
|
|
144
144
|
validChatResponse
|
|
145
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-GIPUG4HD.js";
|
|
146
146
|
import {
|
|
147
147
|
termdbClusterPayload,
|
|
148
148
|
validTermdbClusterRequest,
|
|
@@ -187,7 +187,7 @@ import {
|
|
|
187
187
|
sampleWSImagesPayload,
|
|
188
188
|
validSampleWSImagesRequest,
|
|
189
189
|
validSampleWSImagesResponse
|
|
190
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-V5NAE7YA.js";
|
|
191
191
|
import {
|
|
192
192
|
gdcMafPayload,
|
|
193
193
|
validGdcMafRequest,
|
|
@@ -246,10 +246,10 @@ import {
|
|
|
246
246
|
validDatasetResponse
|
|
247
247
|
} from "./chunk-GTS2G4R4.js";
|
|
248
248
|
import {
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
} from "./chunk-
|
|
249
|
+
deleteWSITileSelectionPayload,
|
|
250
|
+
validDeleteWSITileSelectionRequest,
|
|
251
|
+
validDeleteWSITileSelectionResponse
|
|
252
|
+
} from "./chunk-F5IWKWVX.js";
|
|
253
253
|
import {
|
|
254
254
|
dsDataPayload,
|
|
255
255
|
validDsDataRequest,
|
|
@@ -277,7 +277,7 @@ import {
|
|
|
277
277
|
aiProjectSelectedWSImagesResponsePayload,
|
|
278
278
|
validAiProjectSelectedWSImagesRequest,
|
|
279
279
|
validAiProjectSelectedWSImagesResponse
|
|
280
|
-
} from "./chunk-
|
|
280
|
+
} from "./chunk-T2HQMRX7.js";
|
|
281
281
|
import {
|
|
282
282
|
aiProjectTrainModelPayload,
|
|
283
283
|
validAIProjectTrainModelRequest,
|
|
@@ -328,7 +328,7 @@ export {
|
|
|
328
328
|
burdenPayload,
|
|
329
329
|
clearWSImagesSessionsPayload,
|
|
330
330
|
datasetPayload,
|
|
331
|
-
|
|
331
|
+
deleteWSITileSelectionPayload,
|
|
332
332
|
descrStatsPayload,
|
|
333
333
|
diffExpPayload,
|
|
334
334
|
dsDataPayload,
|
|
@@ -397,8 +397,8 @@ export {
|
|
|
397
397
|
validDZImagesResponse,
|
|
398
398
|
validDatasetRequest,
|
|
399
399
|
validDatasetResponse,
|
|
400
|
-
|
|
401
|
-
|
|
400
|
+
validDeleteWSITileSelectionRequest,
|
|
401
|
+
validDeleteWSITileSelectionResponse,
|
|
402
402
|
validDescrStatsRequest,
|
|
403
403
|
validDescrStatsResponse,
|
|
404
404
|
validDsDataRequest,
|
package/dist/samplewsimages.js
CHANGED
package/dist/termdb.boxplot.js
CHANGED
package/dist/termdb.chat.js
CHANGED
package/package.json
CHANGED
package/src/dataset.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { Mclass } from './Mclass.ts'
|
|
|
2
2
|
import type { WSImage } from './routes/samplewsimages.ts'
|
|
3
3
|
import type { WSISample } from './routes/wsisamples.ts'
|
|
4
4
|
import type { SaveWSIAnnotationRequest } from './routes/saveWSIAnnotation.ts'
|
|
5
|
-
import type {
|
|
5
|
+
import type { DeleteWSITileSelectionRequest } from './routes/deleteWSITileSelection.ts'
|
|
6
6
|
import type { Prediction } from './routes/aiProjectSelectedWSImages.ts'
|
|
7
7
|
|
|
8
8
|
/*** General usage types ***/
|
|
@@ -1048,7 +1048,7 @@ export type WSImages = {
|
|
|
1048
1048
|
saveWSIAnnotation?: (annotation: SaveWSIAnnotationRequest) => Promise<void>
|
|
1049
1049
|
|
|
1050
1050
|
/** dynamically added on launch with built in logic */
|
|
1051
|
-
deleteWSIAnnotation?: (annotation:
|
|
1051
|
+
deleteWSIAnnotation?: (annotation: DeleteWSITileSelectionRequest) => Promise<void>
|
|
1052
1052
|
|
|
1053
1053
|
/** dynamically added on launch with built in logic - returns all image filenames for a project */
|
|
1054
1054
|
getAllWSImages?: (projectId: string) => Promise<string[]>
|
|
@@ -1172,6 +1172,12 @@ type CorrelationVolcano = {
|
|
|
1172
1172
|
}
|
|
1173
1173
|
}
|
|
1174
1174
|
|
|
1175
|
+
/** Configurations for box plots */
|
|
1176
|
+
type BoxPlots = {
|
|
1177
|
+
/** If true, allows user to 'remove outliers' from burger menu */
|
|
1178
|
+
removeOutliers: boolean
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1175
1181
|
type UiLabels = {
|
|
1176
1182
|
[propName: string]: string | { label: string; [otherAttr: string]: string }
|
|
1177
1183
|
}
|
|
@@ -1509,8 +1515,14 @@ keep this setting here for reason of:
|
|
|
1509
1515
|
/** set to true for genome-level geneset db */
|
|
1510
1516
|
isGeneSetTermdb?: boolean
|
|
1511
1517
|
|
|
1512
|
-
|
|
1513
|
-
|
|
1518
|
+
/** method to get total sample size per category for a dict term. to use in mds3 tk sample summary
|
|
1519
|
+
*/
|
|
1520
|
+
termid2totalsize2?: {
|
|
1521
|
+
// ds-supplied getter. if missing, should be using native termdb
|
|
1522
|
+
get?: (twLst: any, q: any, combination: any, ds: any) => void
|
|
1523
|
+
// gdc flag for outdated design
|
|
1524
|
+
gdcapi?: true
|
|
1525
|
+
}
|
|
1514
1526
|
/** Do not use a union here. */
|
|
1515
1527
|
dictionary?: GdcApi & AiApi
|
|
1516
1528
|
allowCaseDetails?: AllowCaseDetails
|
|
@@ -1733,6 +1745,7 @@ export type Cohort = {
|
|
|
1733
1745
|
scatterplots?: Scatterplots
|
|
1734
1746
|
termdb: Termdb
|
|
1735
1747
|
hiddenTermIds?: string[]
|
|
1748
|
+
boxplots?: BoxPlots
|
|
1736
1749
|
}
|
|
1737
1750
|
|
|
1738
1751
|
/** Customizations specific to the mass nav component */
|
|
@@ -1952,12 +1965,8 @@ export type Mds3 = BaseMds & {
|
|
|
1952
1965
|
demoJwtInput?: {
|
|
1953
1966
|
[role: string]: {
|
|
1954
1967
|
datasets?: string[]
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
// profile
|
|
1958
|
-
| {
|
|
1959
|
-
[cohort: string]: ClientAuthResult
|
|
1960
|
-
}
|
|
1968
|
+
/** unstructured json object */
|
|
1969
|
+
clientAuthResult?: object
|
|
1961
1970
|
// below will be assigned by /demoToken route handler if not specified
|
|
1962
1971
|
iat?: number // jwt issued at time, unix time in seconds
|
|
1963
1972
|
exp?: number // jwt expiration, unix time in seconds
|
|
@@ -1972,12 +1981,6 @@ export type Mds3 = BaseMds & {
|
|
|
1972
1981
|
}
|
|
1973
1982
|
}
|
|
1974
1983
|
|
|
1975
|
-
export type ClientAuthResult = {
|
|
1976
|
-
role?: string
|
|
1977
|
-
datasets?: string[]
|
|
1978
|
-
sites?: string[]
|
|
1979
|
-
}
|
|
1980
|
-
|
|
1981
1984
|
export type Mds3WithCohort = Mds3 & {
|
|
1982
1985
|
cohort: Cohort
|
|
1983
1986
|
}
|
package/src/index.ts
CHANGED
|
@@ -14,7 +14,7 @@ export * from './routes/burden.ts'
|
|
|
14
14
|
export * from './routes/clearwsisessions.ts'
|
|
15
15
|
export * from './routes/correlationVolcano.ts'
|
|
16
16
|
export * from './routes/dataset.ts'
|
|
17
|
-
export * from './routes/
|
|
17
|
+
export * from './routes/deleteWSITileSelection.ts'
|
|
18
18
|
export * from './routes/dsdata.ts'
|
|
19
19
|
export * from './routes/dzimages.ts'
|
|
20
20
|
export * from './routes/errorResponse.ts'
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { RoutePayload } from './routeApi.ts'
|
|
2
|
+
import type { TileSelection } from './aiProjectSelectedWSImages.ts'
|
|
3
|
+
|
|
4
|
+
export type DeleteWSITileSelectionRequest = {
|
|
5
|
+
genome: string
|
|
6
|
+
dslabel: string
|
|
7
|
+
projectId: number
|
|
8
|
+
tileSelection: TileSelection
|
|
9
|
+
predictionClassId: string
|
|
10
|
+
tileSelectionType: number
|
|
11
|
+
wsimage: string
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type DeleteWSITileSelectionResponse = {
|
|
15
|
+
status: string
|
|
16
|
+
error?: string
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const deleteWSITileSelectionPayload: RoutePayload = {
|
|
20
|
+
request: {
|
|
21
|
+
typeId: 'DeleteWSITileSelectionRequest'
|
|
22
|
+
},
|
|
23
|
+
response: {
|
|
24
|
+
typeId: 'DeleteWSITileSelectionResponse'
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -14,6 +14,9 @@ export type BoxPlotRequest = {
|
|
|
14
14
|
isLogScale: boolean
|
|
15
15
|
/** sort plots by median value */
|
|
16
16
|
orderByMedian: boolean
|
|
17
|
+
removeOutliers?: boolean
|
|
18
|
+
/** If true, show association tests table */
|
|
19
|
+
showAssocTests?: boolean
|
|
17
20
|
/** term2 */
|
|
18
21
|
overlayTw?: TermWrapper
|
|
19
22
|
/** term0 */
|
|
@@ -21,7 +24,6 @@ export type BoxPlotRequest = {
|
|
|
21
24
|
filter?: Filter
|
|
22
25
|
filter0?: any
|
|
23
26
|
__protected__: any
|
|
24
|
-
removeOutliers?: boolean
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
export type BoxPlotResponse = {
|
|
@@ -52,6 +54,7 @@ export type BoxPlotChartEntry = {
|
|
|
52
54
|
absMin?: number
|
|
53
55
|
absMax?: number
|
|
54
56
|
uncomputableValues?: { label: string; value: number }[] | null
|
|
57
|
+
wilcoxon: any
|
|
55
58
|
}
|
|
56
59
|
|
|
57
60
|
// individual boxplot
|
|
@@ -6,46 +6,24 @@ export type ChatRequest = {
|
|
|
6
6
|
genome: string
|
|
7
7
|
dslabel: string
|
|
8
8
|
filter?: Filter
|
|
9
|
-
filter0?: any // gdc
|
|
10
9
|
/** user prompt */
|
|
11
10
|
prompt: string
|
|
12
|
-
__protected__
|
|
11
|
+
__protected__?: any
|
|
13
12
|
}
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
type HtmlResponse = {
|
|
15
|
+
type: 'html'
|
|
16
|
+
/** for display only */
|
|
17
|
+
html: string
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
export type filter_variable = {
|
|
25
|
-
name: string
|
|
26
|
-
variable_type: 'float' | 'categories'
|
|
27
|
-
cutoff: numeric_filter | categorical_filter
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export type summary = {
|
|
31
|
-
group_categories: string
|
|
32
|
-
overlay?: string
|
|
33
|
-
divide_by?: string
|
|
34
|
-
filter?: filter_variable
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export type plot = {
|
|
38
|
-
/** Different chart types currently supported by the AI chatbot, will add types for the other charts when they will be implemented */
|
|
39
|
-
chartType: summary | 'survival' | 'hierarchial' | 'snv_indel' | 'cnv' | 'variant_calling' | 'none' | 'dge'
|
|
19
|
+
export type PlotResponse = {
|
|
20
|
+
type: 'plot'
|
|
21
|
+
/** plot state. Currently only supports summary chart, will add other chart types later */
|
|
22
|
+
plot: object
|
|
23
|
+
/** Specifies what action to take e.g. Summary plot or no action. Will add more chart types later */
|
|
40
24
|
}
|
|
41
25
|
|
|
42
|
-
export type ChatResponse =
|
|
43
|
-
type: 'html' | 'plot' | 'json'
|
|
44
|
-
/** when type=html, this value is set meaning server returns a chat response */
|
|
45
|
-
html?: string
|
|
46
|
-
/** when type=plot. value is json */
|
|
47
|
-
plot?: any
|
|
48
|
-
}
|
|
26
|
+
export type ChatResponse = HtmlResponse | PlotResponse
|
|
49
27
|
|
|
50
28
|
export const ChatPayload: RoutePayload = {
|
|
51
29
|
request: {
|
package/dist/chunk-USAQULWA.js
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__toESM,
|
|
3
|
-
require_lib
|
|
4
|
-
} from "./chunk-YNHC5SXO.js";
|
|
5
|
-
|
|
6
|
-
// dist/deleteWSIAnnotation.ts
|
|
7
|
-
var import_typia = __toESM(require_lib(), 1);
|
|
8
|
-
|
|
9
|
-
// src/routes/deleteWSIAnnotation.ts
|
|
10
|
-
var deleteWSIAnnotationPayload = {
|
|
11
|
-
request: {
|
|
12
|
-
typeId: "DeleteWSIAnnotationRequest"
|
|
13
|
-
},
|
|
14
|
-
response: {
|
|
15
|
-
typeId: "DeleteWSIAnnotationResponse"
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
// dist/deleteWSIAnnotation.ts
|
|
20
|
-
var validDeleteWSIAnnotationRequest = (input) => {
|
|
21
|
-
const errors = [];
|
|
22
|
-
const __is = (input2) => {
|
|
23
|
-
const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && "number" === typeof input3.projectId && true && "string" === typeof input3.wsimage;
|
|
24
|
-
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
25
|
-
};
|
|
26
|
-
if (false === __is(input)) {
|
|
27
|
-
const $report = import_typia.createValidate.report(errors);
|
|
28
|
-
((input2, _path, _exceptionable = true) => {
|
|
29
|
-
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.genome || $report(_exceptionable2, {
|
|
30
|
-
path: _path2 + ".genome",
|
|
31
|
-
expected: "string",
|
|
32
|
-
value: input3.genome
|
|
33
|
-
}), "string" === typeof input3.dslabel || $report(_exceptionable2, {
|
|
34
|
-
path: _path2 + ".dslabel",
|
|
35
|
-
expected: "string",
|
|
36
|
-
value: input3.dslabel
|
|
37
|
-
}), "number" === typeof input3.projectId || $report(_exceptionable2, {
|
|
38
|
-
path: _path2 + ".projectId",
|
|
39
|
-
expected: "number",
|
|
40
|
-
value: input3.projectId
|
|
41
|
-
}), true, "string" === typeof input3.wsimage || $report(_exceptionable2, {
|
|
42
|
-
path: _path2 + ".wsimage",
|
|
43
|
-
expected: "string",
|
|
44
|
-
value: input3.wsimage
|
|
45
|
-
})].every((flag) => flag);
|
|
46
|
-
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
47
|
-
path: _path + "",
|
|
48
|
-
expected: "DeleteWSIAnnotationRequest",
|
|
49
|
-
value: input2
|
|
50
|
-
})) && $vo0(input2, _path + "", true) || $report(true, {
|
|
51
|
-
path: _path + "",
|
|
52
|
-
expected: "DeleteWSIAnnotationRequest",
|
|
53
|
-
value: input2
|
|
54
|
-
});
|
|
55
|
-
})(input, "$input", true);
|
|
56
|
-
}
|
|
57
|
-
const success = 0 === errors.length;
|
|
58
|
-
return {
|
|
59
|
-
success,
|
|
60
|
-
errors,
|
|
61
|
-
data: success ? input : void 0
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
var validDeleteWSIAnnotationResponse = (input) => {
|
|
65
|
-
const errors = [];
|
|
66
|
-
const __is = (input2) => {
|
|
67
|
-
const $io0 = (input3) => "string" === typeof input3.status && (void 0 === input3.error || "string" === typeof input3.error);
|
|
68
|
-
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
69
|
-
};
|
|
70
|
-
if (false === __is(input)) {
|
|
71
|
-
const $report = import_typia.createValidate.report(errors);
|
|
72
|
-
((input2, _path, _exceptionable = true) => {
|
|
73
|
-
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.status || $report(_exceptionable2, {
|
|
74
|
-
path: _path2 + ".status",
|
|
75
|
-
expected: "string",
|
|
76
|
-
value: input3.status
|
|
77
|
-
}), void 0 === input3.error || "string" === typeof input3.error || $report(_exceptionable2, {
|
|
78
|
-
path: _path2 + ".error",
|
|
79
|
-
expected: "(string | undefined)",
|
|
80
|
-
value: input3.error
|
|
81
|
-
})].every((flag) => flag);
|
|
82
|
-
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
83
|
-
path: _path + "",
|
|
84
|
-
expected: "DeleteWSIAnnotationResponse",
|
|
85
|
-
value: input2
|
|
86
|
-
})) && $vo0(input2, _path + "", true) || $report(true, {
|
|
87
|
-
path: _path + "",
|
|
88
|
-
expected: "DeleteWSIAnnotationResponse",
|
|
89
|
-
value: input2
|
|
90
|
-
});
|
|
91
|
-
})(input, "$input", true);
|
|
92
|
-
}
|
|
93
|
-
const success = 0 === errors.length;
|
|
94
|
-
return {
|
|
95
|
-
success,
|
|
96
|
-
errors,
|
|
97
|
-
data: success ? input : void 0
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
export {
|
|
102
|
-
deleteWSIAnnotationPayload,
|
|
103
|
-
validDeleteWSIAnnotationRequest,
|
|
104
|
-
validDeleteWSIAnnotationResponse
|
|
105
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
deleteWSIAnnotationPayload,
|
|
3
|
-
validDeleteWSIAnnotationRequest,
|
|
4
|
-
validDeleteWSIAnnotationResponse
|
|
5
|
-
} from "./chunk-USAQULWA.js";
|
|
6
|
-
import "./chunk-YNHC5SXO.js";
|
|
7
|
-
export {
|
|
8
|
-
deleteWSIAnnotationPayload,
|
|
9
|
-
validDeleteWSIAnnotationRequest,
|
|
10
|
-
validDeleteWSIAnnotationResponse
|
|
11
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { RoutePayload } from './routeApi.ts'
|
|
2
|
-
|
|
3
|
-
export type DeleteWSIAnnotationRequest = {
|
|
4
|
-
genome: string
|
|
5
|
-
dslabel: string
|
|
6
|
-
projectId: number
|
|
7
|
-
annotation: any
|
|
8
|
-
wsimage: string
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export type DeleteWSIAnnotationResponse = {
|
|
12
|
-
status: string
|
|
13
|
-
error?: string
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export const deleteWSIAnnotationPayload: RoutePayload = {
|
|
17
|
-
request: {
|
|
18
|
-
typeId: 'DeleteWSIAnnotationRequest'
|
|
19
|
-
},
|
|
20
|
-
response: {
|
|
21
|
-
typeId: 'DeleteWSIAnnotationResponse'
|
|
22
|
-
}
|
|
23
|
-
}
|