@sjcrh/proteinpaint-types 2.164.0 → 2.166.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-F5IWKWVX.js +150 -0
- package/dist/{chunk-C6EUYXHJ.js → chunk-T2HQMRX7.js} +7 -3
- package/dist/{chunk-OAETETAO.js → chunk-TR2MSSP3.js} +3 -3
- package/dist/{chunk-ZFEV22KC.js → chunk-V5NAE7YA.js} +7 -3
- package/dist/deleteWSITileSelection.js +11 -0
- package/dist/index.js +10 -10
- package/dist/samplewsimages.js +1 -1
- package/dist/termdb.chat.js +1 -1
- package/package.json +1 -1
- package/src/dataset.ts +12 -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.chat.ts +1 -1
- package/src/terms/q.ts +1 -1
- 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,
|
|
@@ -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
|
+
};
|
|
@@ -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",
|
|
@@ -2207,15 +2207,15 @@ var validChatRequest = (input) => {
|
|
|
2207
2207
|
var validChatResponse = (input) => {
|
|
2208
2208
|
const errors = [];
|
|
2209
2209
|
const __is = (input2) => {
|
|
2210
|
-
const $io0 = (input3) => ("html" === input3.type || "plot" === input3.type) && (void 0 === input3.html || "string" === typeof input3.html) && true;
|
|
2210
|
+
const $io0 = (input3) => ("html" === input3.type || "plot" === input3.type || "json" === input3.type) && (void 0 === input3.html || "string" === typeof input3.html) && true;
|
|
2211
2211
|
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
2212
2212
|
};
|
|
2213
2213
|
if (false === __is(input)) {
|
|
2214
2214
|
const $report = import_typia.createValidate.report(errors);
|
|
2215
2215
|
((input2, _path, _exceptionable = true) => {
|
|
2216
|
-
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["html" === input3.type || "plot" === input3.type || $report(_exceptionable2, {
|
|
2216
|
+
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["html" === input3.type || "plot" === input3.type || "json" === input3.type || $report(_exceptionable2, {
|
|
2217
2217
|
path: _path2 + ".type",
|
|
2218
|
-
expected: '("html" | "plot")',
|
|
2218
|
+
expected: '("html" | "json" | "plot")',
|
|
2219
2219
|
value: input3.type
|
|
2220
2220
|
}), void 0 === input3.html || "string" === typeof input3.html || $report(_exceptionable2, {
|
|
2221
2221
|
path: _path2 + ".html",
|
|
@@ -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
|
@@ -142,7 +142,7 @@ import {
|
|
|
142
142
|
ChatPayload,
|
|
143
143
|
validChatRequest,
|
|
144
144
|
validChatResponse
|
|
145
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-TR2MSSP3.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.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[]>
|
|
@@ -1509,8 +1509,14 @@ keep this setting here for reason of:
|
|
|
1509
1509
|
/** set to true for genome-level geneset db */
|
|
1510
1510
|
isGeneSetTermdb?: boolean
|
|
1511
1511
|
|
|
1512
|
-
|
|
1513
|
-
|
|
1512
|
+
/** method to get total sample size per category for a dict term. to use in mds3 tk sample summary
|
|
1513
|
+
*/
|
|
1514
|
+
termid2totalsize2?: {
|
|
1515
|
+
// ds-supplied getter. if missing, should be using native termdb
|
|
1516
|
+
get?: (twLst: any, q: any, combination: any, ds: any) => void
|
|
1517
|
+
// gdc flag for outdated design
|
|
1518
|
+
gdcapi?: true
|
|
1519
|
+
}
|
|
1514
1520
|
/** Do not use a union here. */
|
|
1515
1521
|
dictionary?: GdcApi & AiApi
|
|
1516
1522
|
allowCaseDetails?: AllowCaseDetails
|
|
@@ -1952,12 +1958,8 @@ export type Mds3 = BaseMds & {
|
|
|
1952
1958
|
demoJwtInput?: {
|
|
1953
1959
|
[role: string]: {
|
|
1954
1960
|
datasets?: string[]
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
// profile
|
|
1958
|
-
| {
|
|
1959
|
-
[cohort: string]: ClientAuthResult
|
|
1960
|
-
}
|
|
1961
|
+
/** unstructured json object */
|
|
1962
|
+
clientAuthResult?: object
|
|
1961
1963
|
// below will be assigned by /demoToken route handler if not specified
|
|
1962
1964
|
iat?: number // jwt issued at time, unix time in seconds
|
|
1963
1965
|
exp?: number // jwt expiration, unix time in seconds
|
|
@@ -1972,12 +1974,6 @@ export type Mds3 = BaseMds & {
|
|
|
1972
1974
|
}
|
|
1973
1975
|
}
|
|
1974
1976
|
|
|
1975
|
-
export type ClientAuthResult = {
|
|
1976
|
-
role?: string
|
|
1977
|
-
datasets?: string[]
|
|
1978
|
-
sites?: string[]
|
|
1979
|
-
}
|
|
1980
|
-
|
|
1981
1977
|
export type Mds3WithCohort = Mds3 & {
|
|
1982
1978
|
cohort: Cohort
|
|
1983
1979
|
}
|
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
|
+
}
|
package/src/terms/q.ts
CHANGED
|
@@ -22,7 +22,7 @@ export type CategoricalBaseQ = MinBaseQ & {
|
|
|
22
22
|
mode?: 'discrete' | 'binary'
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
export type RawValuesQ = MinBaseQ & { type?: 'values'; mode?: 'binary' }
|
|
25
|
+
export type RawValuesQ = MinBaseQ & { type?: 'values'; mode?: 'binary' | 'discrete' }
|
|
26
26
|
|
|
27
27
|
export type RawPredefinedGroupsetQ = MinBaseQ & {
|
|
28
28
|
type: 'predefined-groupset'
|
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
|
-
}
|