@sjcrh/proteinpaint-types 2.142.0 → 2.143.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/aiProjectAdmin.js +2 -2
- package/dist/aiProjectSelectedWSImages.js +11 -0
- package/dist/brainImaging.js +2 -2
- package/dist/brainImagingSamples.js +2 -2
- package/dist/burden.js +2 -2
- package/dist/{chunk-W6NLM363.js → chunk-2744ACBX.js} +1 -1
- package/dist/{chunk-F5XGJIUS.js → chunk-2BCLGYAG.js} +1 -1
- package/dist/{chunk-L5DFYFWX.js → chunk-2C4X5B6N.js} +1 -1
- package/dist/{chunk-SOM5WKDM.js → chunk-4DNCZQOB.js} +16 -4
- package/dist/{chunk-3BQ57P2P.js → chunk-4MLQS6N7.js} +16 -4
- package/dist/{chunk-MVMUZSLL.js → chunk-4VEXL32Q.js} +172 -118
- package/dist/{chunk-K5POIB3P.js → chunk-4ZMQ5CTL.js} +1 -1
- package/dist/{chunk-CEDL2QZT.js → chunk-5KADNZH2.js} +176 -122
- package/dist/{chunk-I2KWGMNM.js → chunk-62XTWOVJ.js} +1 -1
- package/dist/{chunk-FXCCZCTN.js → chunk-6GKG55BT.js} +1 -1
- package/dist/{chunk-3L3ASC3B.js → chunk-6SOULHNE.js} +290 -154
- package/dist/{chunk-2VDOPTRV.js → chunk-74B7B2CV.js} +31 -7
- package/dist/{chunk-FVBXC7SY.js → chunk-7ICZFAGK.js} +33 -17
- package/dist/{chunk-J4QAF4EU.js → chunk-7MUISZHS.js} +1 -1
- package/dist/{chunk-SMS3Y2XZ.js → chunk-BCBSHTHS.js} +1 -1
- package/dist/{chunk-SMVDKR2O.js → chunk-C246BWQE.js} +31 -7
- package/dist/{chunk-3C26VWPU.js → chunk-CP26DR4V.js} +1 -1
- package/dist/{chunk-ERSTC6X6.js → chunk-CQXBQY2H.js} +1 -1
- package/dist/{chunk-CQDDRHRY.js → chunk-CT6IBFVP.js} +9 -4
- package/dist/{chunk-ZVTZJRGS.js → chunk-D7AKQKDG.js} +1 -1
- package/dist/{chunk-YGX6BZZY.js → chunk-EIJT53QB.js} +1 -1
- package/dist/{chunk-VKBTOKI2.js → chunk-EOKM345J.js} +1 -1
- package/dist/{chunk-XEQWKMZN.js → chunk-EYKGJDKU.js} +1 -1
- package/dist/{chunk-EH7VAE5S.js → chunk-FMC4G5BP.js} +1 -1
- package/dist/{chunk-KRYTJ2SL.js → chunk-FTPYJPUB.js} +1 -1
- package/dist/{chunk-GDM7YUXH.js → chunk-FXXE4S7M.js} +172 -118
- package/dist/{chunk-IR4QSJI7.js → chunk-GCAZSDCW.js} +172 -118
- package/dist/{chunk-5S3UWYSK.js → chunk-GTS2G4R4.js} +1 -1
- package/dist/{chunk-KFVYRW7D.js → chunk-HQV2A7JV.js} +1 -1
- package/dist/{chunk-TMQI47YT.js → chunk-J2Y7RIN2.js} +29 -25
- package/dist/{chunk-HNETXFC7.js → chunk-K4FSDTDW.js} +1 -1
- package/dist/{chunk-HIPWQ6AW.js → chunk-KCMPDEH7.js} +1 -1
- package/dist/chunk-KVE2NBC6.js +132 -0
- package/dist/{chunk-QX3MRSSK.js → chunk-LRVF7U64.js} +1 -1
- package/dist/{chunk-5XCPOWFN.js → chunk-MHDQO7R5.js} +1 -1
- package/dist/{chunk-K4RV3N2T.js → chunk-MIOIOFBZ.js} +1 -1
- package/dist/{chunk-DMJFOII6.js → chunk-MMFL6N5M.js} +18 -6
- package/dist/{chunk-LDQNJLYQ.js → chunk-N7C4SRFX.js} +1 -1
- package/dist/chunk-NO2EZKW4.js +291 -0
- package/dist/{chunk-HKGWC7OO.js → chunk-P25WDNMD.js} +1 -1
- package/dist/{chunk-FYRWYZEE.js → chunk-PPPSDO6G.js} +36 -40
- package/dist/{chunk-KVUJPR42.js → chunk-PTE2I7DF.js} +1 -1
- package/dist/{chunk-AASWRJMS.js → chunk-Q3HGHP3J.js} +1 -1
- package/dist/{chunk-WMI4VKU3.js → chunk-TCEHHLIZ.js} +206 -51
- package/dist/{chunk-4R265LDJ.js → chunk-U3AOS5QJ.js} +16 -4
- package/dist/{chunk-X2CX5K24.js → chunk-U3BTVE5T.js} +1 -1
- package/dist/{chunk-HUMZDPUU.js → chunk-U4A647KI.js} +1 -1
- package/dist/{chunk-4GCROGGK.js → chunk-UBOVHONH.js} +1 -1
- package/dist/{chunk-GGZUN2GE.js → chunk-UGYLBYUU.js} +1 -1
- package/dist/{chunk-XJU4JALX.js → chunk-USAQULWA.js} +35 -31
- package/dist/{chunk-IVU6STSJ.js → chunk-X4JBWMXY.js} +1 -1
- package/dist/{chunk-LPBYQJG4.js → chunk-XIRCL7KT.js} +1 -1
- package/dist/{chunk-CNSSF43V.js → chunk-YNHC5SXO.js} +14 -14
- package/dist/{chunk-B43GFRT4.js → chunk-YPEFUAJW.js} +1 -1
- package/dist/{chunk-VMSVBNM6.js → chunk-YSTMGNYR.js} +1 -1
- package/dist/{chunk-XT2IWGYK.js → chunk-ZCV62ELK.js} +1 -1
- package/dist/{chunk-E5MPHTIA.js → chunk-ZIOJDN75.js} +1 -1
- package/dist/clearwsisession.js +1 -1
- package/dist/clearwsisessions.js +2 -2
- package/dist/correlationVolcano.js +2 -2
- package/dist/dataset.js +2 -2
- package/dist/deleteWSIAnnotation.js +11 -0
- package/dist/dsdata.js +2 -2
- package/dist/dzimages.js +2 -2
- package/dist/gdc.grin2.js +2 -2
- package/dist/gdc.maf.js +2 -2
- package/dist/gdc.mafBuild.js +2 -2
- package/dist/genelookup.js +2 -2
- package/dist/genesetEnrichment.js +2 -2
- package/dist/genesetOverrepresentation.js +2 -2
- package/dist/grin2.js +2 -2
- package/dist/healthcheck.js +2 -2
- package/dist/hicdata.js +2 -2
- package/dist/hicgenome.js +2 -2
- package/dist/hicstat.js +2 -2
- package/dist/img.js +2 -2
- package/dist/index.js +118 -102
- package/dist/isoformlst.js +2 -2
- package/dist/ntseq.js +2 -2
- package/dist/pdomain.js +2 -2
- package/dist/samplewsimages.js +2 -2
- package/dist/saveWSIAnnotation.js +11 -0
- package/dist/snp.js +2 -2
- package/dist/termdb.DE.js +2 -2
- package/dist/termdb.boxplot.js +2 -2
- package/dist/termdb.categories.js +2 -2
- package/dist/termdb.cluster.js +2 -2
- package/dist/termdb.cohort.summary.js +2 -2
- package/dist/termdb.cohorts.js +2 -2
- package/dist/termdb.descrstats.js +2 -2
- package/dist/termdb.filterTermValues.js +2 -2
- package/dist/termdb.numericcategories.js +2 -2
- package/dist/termdb.percentile.js +2 -2
- package/dist/termdb.profileFormScores.js +2 -2
- package/dist/termdb.profileScores.js +2 -2
- package/dist/termdb.rootterm.js +2 -2
- package/dist/termdb.sampleImages.js +2 -2
- package/dist/termdb.singleSampleMutation.js +2 -2
- package/dist/termdb.singlecellDEgenes.js +2 -2
- package/dist/termdb.singlecellData.js +2 -2
- package/dist/termdb.singlecellSamples.js +2 -2
- package/dist/termdb.termchildren.js +2 -2
- package/dist/termdb.termsbyids.js +2 -2
- package/dist/termdb.topMutatedGenes.js +2 -2
- package/dist/termdb.topTermsByType.js +2 -2
- package/dist/termdb.topVariablyExpressedGenes.js +2 -2
- package/dist/termdb.violin.js +2 -2
- package/dist/tileserver.js +2 -2
- package/dist/wsimages.js +2 -2
- package/dist/wsisamples.js +2 -2
- package/package.json +1 -1
- package/src/dataset.ts +19 -7
- package/src/index.ts +3 -1
- package/src/routes/aiProjectAdmin.ts +10 -8
- package/src/routes/aiProjectSelectedWSImages.ts +23 -0
- package/src/routes/deleteWSIAnnotation.ts +23 -0
- package/src/routes/grin2.ts +42 -0
- package/src/routes/samplewsimages.ts +5 -3
- package/src/routes/saveWSIAnnotation.ts +24 -0
- package/src/routes/termdb.boxplot.ts +23 -1
- package/src/routes/termdb.violin.ts +4 -2
- package/src/routes/wsimages.ts +2 -1
- package/src/termdb.matrix.ts +2 -0
- package/src/terms/categorical.ts +3 -2
- package/src/terms/condition.ts +25 -8
- package/src/terms/numeric.ts +5 -0
- package/src/terms/q.ts +60 -1
- package/src/terms/samplelst.ts +2 -2
- package/src/terms/singleCellCellType.ts +1 -1
- package/src/terms/snp.ts +2 -2
- package/src/terms/snps.ts +2 -2
- package/src/terms/term.ts +2 -134
- package/src/terms/tw.ts +15 -0
- package/dist/sampleWsiAiApi.js +0 -11
- package/src/routes/sampleWsiAiApi.ts +0 -21
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__toESM,
|
|
3
3
|
require_lib
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YNHC5SXO.js";
|
|
5
5
|
|
|
6
6
|
// dist/aiProjectAdmin.ts
|
|
7
7
|
var import_typia = __toESM(require_lib(), 1);
|
|
@@ -20,7 +20,7 @@ var aiProjectAdminPayload = {
|
|
|
20
20
|
var validAIProjectAdminRequest = (input) => {
|
|
21
21
|
const errors = [];
|
|
22
22
|
const __is = (input2) => {
|
|
23
|
-
const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && ("list" === input3["for"] || "admin" === input3["for"] || "images" === input3["for"]) && (void 0 === input3.project || "object" === typeof input3.project && null !== input3.project && $io1(input3.project));
|
|
23
|
+
const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && ("list" === input3["for"] || "admin" === input3["for"] || "filterImages" === input3["for"] || "images" === input3["for"]) && (void 0 === input3.project || "object" === typeof input3.project && null !== input3.project && $io1(input3.project));
|
|
24
24
|
const $io1 = (input3) => "string" === typeof input3.name && (void 0 === input3.id || "number" === typeof input3.id) && (void 0 === input3.filter || "string" === typeof input3.filter) && (void 0 === input3.classes || Array.isArray(input3.classes)) && (void 0 === input3.images || Array.isArray(input3.images) && input3.images.every((elem) => "string" === typeof elem));
|
|
25
25
|
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
26
26
|
};
|
|
@@ -35,9 +35,9 @@ var validAIProjectAdminRequest = (input) => {
|
|
|
35
35
|
path: _path2 + ".dslabel",
|
|
36
36
|
expected: "string",
|
|
37
37
|
value: input3.dslabel
|
|
38
|
-
}), "list" === input3["for"] || "admin" === input3["for"] || "images" === input3["for"] || $report(_exceptionable2, {
|
|
38
|
+
}), "list" === input3["for"] || "admin" === input3["for"] || "filterImages" === input3["for"] || "images" === input3["for"] || $report(_exceptionable2, {
|
|
39
39
|
path: _path2 + '["for"]',
|
|
40
|
-
expected: '("admin" | "images" | "list")',
|
|
40
|
+
expected: '("admin" | "filterImages" | "images" | "list")',
|
|
41
41
|
value: input3["for"]
|
|
42
42
|
}), void 0 === input3.project || ("object" === typeof input3.project && null !== input3.project || $report(_exceptionable2, {
|
|
43
43
|
path: _path2 + ".project",
|
|
@@ -98,9 +98,9 @@ var validAIProjectAdminRequest = (input) => {
|
|
|
98
98
|
var validAIProjectAdminResponse = (input) => {
|
|
99
99
|
const errors = [];
|
|
100
100
|
const __is = (input2) => {
|
|
101
|
-
const $io0 = (input3) => ("ok" === input3.status || "error" === input3.status) && (void 0 === input3.error || "string" === typeof input3.error) && (void 0 === input3.data || Array.isArray(input3.data) && input3.data.every((elem) => "object" === typeof elem && null !== elem && $io1(elem)));
|
|
101
|
+
const $io0 = (input3) => ("ok" === input3.status || "error" === input3.status) && (void 0 === input3.projectId || "number" === typeof input3.projectId) && (Array.isArray(input3.images) && input3.images.every((elem) => "string" === typeof elem)) && (void 0 === input3.error || "string" === typeof input3.error) && (void 0 === input3.data || Array.isArray(input3.data) && input3.data.every((elem) => "object" === typeof elem && null !== elem && $io1(elem)));
|
|
102
102
|
const $io1 = (input3) => Array.isArray(input3.cols) && Array.isArray(input3.rows) && (Array.isArray(input3.images) && input3.images.every((elem) => "string" === typeof elem));
|
|
103
|
-
return
|
|
103
|
+
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
104
104
|
};
|
|
105
105
|
if (false === __is(input)) {
|
|
106
106
|
const $report = import_typia.createValidate.report(errors);
|
|
@@ -109,6 +109,22 @@ var validAIProjectAdminResponse = (input) => {
|
|
|
109
109
|
path: _path2 + ".status",
|
|
110
110
|
expected: '("error" | "ok")',
|
|
111
111
|
value: input3.status
|
|
112
|
+
}), void 0 === input3.projectId || "number" === typeof input3.projectId || $report(_exceptionable2, {
|
|
113
|
+
path: _path2 + ".projectId",
|
|
114
|
+
expected: "(number | undefined)",
|
|
115
|
+
value: input3.projectId
|
|
116
|
+
}), (Array.isArray(input3.images) || $report(_exceptionable2, {
|
|
117
|
+
path: _path2 + ".images",
|
|
118
|
+
expected: "Array<string>",
|
|
119
|
+
value: input3.images
|
|
120
|
+
})) && input3.images.map((elem, _index1) => "string" === typeof elem || $report(_exceptionable2, {
|
|
121
|
+
path: _path2 + ".images[" + _index1 + "]",
|
|
122
|
+
expected: "string",
|
|
123
|
+
value: elem
|
|
124
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
125
|
+
path: _path2 + ".images",
|
|
126
|
+
expected: "Array<string>",
|
|
127
|
+
value: input3.images
|
|
112
128
|
}), void 0 === input3.error || "string" === typeof input3.error || $report(_exceptionable2, {
|
|
113
129
|
path: _path2 + ".error",
|
|
114
130
|
expected: "(string | undefined)",
|
|
@@ -119,11 +135,11 @@ var validAIProjectAdminResponse = (input) => {
|
|
|
119
135
|
value: input3.data
|
|
120
136
|
})) && input3.data.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
121
137
|
path: _path2 + ".data[" + _index2 + "]",
|
|
122
|
-
expected: "__type
|
|
138
|
+
expected: "__type",
|
|
123
139
|
value: elem
|
|
124
140
|
})) && $vo1(elem, _path2 + ".data[" + _index2 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
125
141
|
path: _path2 + ".data[" + _index2 + "]",
|
|
126
|
-
expected: "__type
|
|
142
|
+
expected: "__type",
|
|
127
143
|
value: elem
|
|
128
144
|
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
129
145
|
path: _path2 + ".data",
|
|
@@ -151,27 +167,15 @@ var validAIProjectAdminResponse = (input) => {
|
|
|
151
167
|
expected: "Array<string>",
|
|
152
168
|
value: input3.images
|
|
153
169
|
})].every((flag) => flag);
|
|
154
|
-
return (null !== input2 || $report(true, {
|
|
155
|
-
path: _path + "",
|
|
156
|
-
expected: "(Array<string> | __type)",
|
|
157
|
-
value: input2
|
|
158
|
-
})) && (void 0 !== input2 || $report(true, {
|
|
159
|
-
path: _path + "",
|
|
160
|
-
expected: "(Array<string> | __type)",
|
|
161
|
-
value: input2
|
|
162
|
-
})) && (Array.isArray(input2) && input2.map((elem, _index1) => "string" === typeof elem || $report(true, {
|
|
163
|
-
path: _path + "[" + _index1 + "]",
|
|
164
|
-
expected: "string",
|
|
165
|
-
value: elem
|
|
166
|
-
})).every((flag) => flag) || "object" === typeof input2 && null !== input2 && $vo0(input2, _path + "", true) || $report(true, {
|
|
170
|
+
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
167
171
|
path: _path + "",
|
|
168
|
-
expected: "
|
|
172
|
+
expected: "AIProjectAdminResponse",
|
|
169
173
|
value: input2
|
|
170
|
-
}) || $report(true, {
|
|
174
|
+
})) && $vo0(input2, _path + "", true) || $report(true, {
|
|
171
175
|
path: _path + "",
|
|
172
|
-
expected: "
|
|
176
|
+
expected: "AIProjectAdminResponse",
|
|
173
177
|
value: input2
|
|
174
|
-
})
|
|
178
|
+
});
|
|
175
179
|
})(input, "$input", true);
|
|
176
180
|
}
|
|
177
181
|
const success = 0 === errors.length;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__toESM,
|
|
3
|
+
require_lib
|
|
4
|
+
} from "./chunk-YNHC5SXO.js";
|
|
5
|
+
|
|
6
|
+
// dist/saveWSIAnnotation.ts
|
|
7
|
+
var import_typia = __toESM(require_lib(), 1);
|
|
8
|
+
|
|
9
|
+
// src/routes/saveWSIAnnotation.ts
|
|
10
|
+
var saveWSIAnnotationPayload = {
|
|
11
|
+
request: {
|
|
12
|
+
typeId: "SaveWSIAnnotationRequest"
|
|
13
|
+
},
|
|
14
|
+
response: {
|
|
15
|
+
typeId: "SaveWSIAnnotationResponse"
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
// dist/saveWSIAnnotation.ts
|
|
20
|
+
var validSaveWSIAnnotationRequest = (input) => {
|
|
21
|
+
const errors = [];
|
|
22
|
+
const __is = (input2) => {
|
|
23
|
+
const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && (Array.isArray(input3.coordinates) && (input3.coordinates.length === 2 && "number" === typeof input3.coordinates[0] && "number" === typeof input3.coordinates[1])) && "number" === typeof input3.classId && "number" === typeof input3.projectId && "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
|
+
}), (Array.isArray(input3.coordinates) || $report(_exceptionable2, {
|
|
38
|
+
path: _path2 + ".coordinates",
|
|
39
|
+
expected: "[number, number]",
|
|
40
|
+
value: input3.coordinates
|
|
41
|
+
})) && ((input3.coordinates.length === 2 || $report(_exceptionable2, {
|
|
42
|
+
path: _path2 + ".coordinates",
|
|
43
|
+
expected: "[number, number]",
|
|
44
|
+
value: input3.coordinates
|
|
45
|
+
})) && [
|
|
46
|
+
"number" === typeof input3.coordinates[0] || $report(_exceptionable2, {
|
|
47
|
+
path: _path2 + ".coordinates[0]",
|
|
48
|
+
expected: "number",
|
|
49
|
+
value: input3.coordinates[0]
|
|
50
|
+
}),
|
|
51
|
+
"number" === typeof input3.coordinates[1] || $report(_exceptionable2, {
|
|
52
|
+
path: _path2 + ".coordinates[1]",
|
|
53
|
+
expected: "number",
|
|
54
|
+
value: input3.coordinates[1]
|
|
55
|
+
})
|
|
56
|
+
].every((flag) => flag)) || $report(_exceptionable2, {
|
|
57
|
+
path: _path2 + ".coordinates",
|
|
58
|
+
expected: "[number, number]",
|
|
59
|
+
value: input3.coordinates
|
|
60
|
+
}), "number" === typeof input3.classId || $report(_exceptionable2, {
|
|
61
|
+
path: _path2 + ".classId",
|
|
62
|
+
expected: "number",
|
|
63
|
+
value: input3.classId
|
|
64
|
+
}), "number" === typeof input3.projectId || $report(_exceptionable2, {
|
|
65
|
+
path: _path2 + ".projectId",
|
|
66
|
+
expected: "number",
|
|
67
|
+
value: input3.projectId
|
|
68
|
+
}), "string" === typeof input3.wsimage || $report(_exceptionable2, {
|
|
69
|
+
path: _path2 + ".wsimage",
|
|
70
|
+
expected: "string",
|
|
71
|
+
value: input3.wsimage
|
|
72
|
+
})].every((flag) => flag);
|
|
73
|
+
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
74
|
+
path: _path + "",
|
|
75
|
+
expected: "SaveWSIAnnotationRequest",
|
|
76
|
+
value: input2
|
|
77
|
+
})) && $vo0(input2, _path + "", true) || $report(true, {
|
|
78
|
+
path: _path + "",
|
|
79
|
+
expected: "SaveWSIAnnotationRequest",
|
|
80
|
+
value: input2
|
|
81
|
+
});
|
|
82
|
+
})(input, "$input", true);
|
|
83
|
+
}
|
|
84
|
+
const success = 0 === errors.length;
|
|
85
|
+
return {
|
|
86
|
+
success,
|
|
87
|
+
errors,
|
|
88
|
+
data: success ? input : void 0
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
var validSaveWSIAnnotationResponse = (input) => {
|
|
92
|
+
const errors = [];
|
|
93
|
+
const __is = (input2) => {
|
|
94
|
+
const $io0 = (input3) => ("ok" === input3.status || "error" === input3.status) && (void 0 === input3.error || "string" === typeof input3.error);
|
|
95
|
+
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
96
|
+
};
|
|
97
|
+
if (false === __is(input)) {
|
|
98
|
+
const $report = import_typia.createValidate.report(errors);
|
|
99
|
+
((input2, _path, _exceptionable = true) => {
|
|
100
|
+
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["ok" === input3.status || "error" === input3.status || $report(_exceptionable2, {
|
|
101
|
+
path: _path2 + ".status",
|
|
102
|
+
expected: '("error" | "ok")',
|
|
103
|
+
value: input3.status
|
|
104
|
+
}), void 0 === input3.error || "string" === typeof input3.error || $report(_exceptionable2, {
|
|
105
|
+
path: _path2 + ".error",
|
|
106
|
+
expected: "(string | undefined)",
|
|
107
|
+
value: input3.error
|
|
108
|
+
})].every((flag) => flag);
|
|
109
|
+
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
110
|
+
path: _path + "",
|
|
111
|
+
expected: "SaveWSIAnnotationResponse",
|
|
112
|
+
value: input2
|
|
113
|
+
})) && $vo0(input2, _path + "", true) || $report(true, {
|
|
114
|
+
path: _path + "",
|
|
115
|
+
expected: "SaveWSIAnnotationResponse",
|
|
116
|
+
value: input2
|
|
117
|
+
});
|
|
118
|
+
})(input, "$input", true);
|
|
119
|
+
}
|
|
120
|
+
const success = 0 === errors.length;
|
|
121
|
+
return {
|
|
122
|
+
success,
|
|
123
|
+
errors,
|
|
124
|
+
data: success ? input : void 0
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
export {
|
|
129
|
+
saveWSIAnnotationPayload,
|
|
130
|
+
validSaveWSIAnnotationRequest,
|
|
131
|
+
validSaveWSIAnnotationResponse
|
|
132
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__toESM,
|
|
3
3
|
require_lib
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YNHC5SXO.js";
|
|
5
5
|
|
|
6
6
|
// dist/termdb.violin.ts
|
|
7
7
|
var import_typia = __toESM(require_lib(), 1);
|
|
@@ -59,7 +59,7 @@ var validViolinRequest = (input) => {
|
|
|
59
59
|
const errors = [];
|
|
60
60
|
const __is = (input2) => {
|
|
61
61
|
const $join = import_typia.createValidate.join;
|
|
62
|
-
const $io0 = (input3) => "number" === typeof input3.axisHeight && (Array.isArray(input3.currentGeneNames) && input3.currentGeneNames.every((elem) => "string" === typeof elem)) && "string" === typeof input3.datasymbol && "number" === typeof input3.devicePixelRatio && true && "string" === typeof input3.dslabel && (void 0 === input3.filter || "object" === typeof input3.filter && null !== input3.filter && $io1(input3.filter)) && true && "string" === typeof input3.genome && "boolean" === typeof input3.isKDE && ("horizontal" === input3.orientation || "vertical" === input3.orientation) && "number" === typeof input3.radius && "number" === typeof input3.rightMargin && true && "number" === typeof input3.strokeWidth && "number" === typeof input3.svgw && "number" === typeof input3.ticks && true && "string" === typeof input3.unit && true;
|
|
62
|
+
const $io0 = (input3) => "number" === typeof input3.axisHeight && (Array.isArray(input3.currentGeneNames) && input3.currentGeneNames.every((elem) => "string" === typeof elem)) && "string" === typeof input3.datasymbol && "number" === typeof input3.devicePixelRatio && true && true && "string" === typeof input3.dslabel && (void 0 === input3.filter || "object" === typeof input3.filter && null !== input3.filter && $io1(input3.filter)) && true && "string" === typeof input3.genome && "boolean" === typeof input3.isKDE && ("horizontal" === input3.orientation || "vertical" === input3.orientation) && "number" === typeof input3.radius && "number" === typeof input3.rightMargin && true && "number" === typeof input3.strokeWidth && "number" === typeof input3.svgw && "number" === typeof input3.ticks && true && "string" === typeof input3.unit && true;
|
|
63
63
|
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)));
|
|
64
64
|
const $io2 = (input3) => "tvs" === input3.type && ("object" === typeof input3.tvs && null !== input3.tvs && $iu4(input3.tvs));
|
|
65
65
|
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)));
|
|
@@ -93,9 +93,9 @@ var validViolinRequest = (input) => {
|
|
|
93
93
|
return "number" === typeof value;
|
|
94
94
|
return true;
|
|
95
95
|
});
|
|
96
|
-
const $io18 = (input3) => true === input3.startunbounded && (void 0 === input3.startinclusive || false === input3.startinclusive) && "number" === typeof input3.stop && (void 0 === input3.stopinclusive || "boolean" === typeof input3.stopinclusive) && (void 0 === input3.stopunbounded || false === input3.stopunbounded) && (void 0 === input3.label || "string" === typeof input3.label);
|
|
97
|
-
const $io19 = (input3) => (void 0 === input3.startunbounded || false === input3.startunbounded) && (void 0 === input3.startinclusive || "boolean" === typeof input3.startinclusive) && "number" === typeof input3.start && "number" === typeof input3.stop && (void 0 === input3.stopinclusive || "boolean" === typeof input3.stopinclusive) && (void 0 === input3.stopunbounded || false === input3.stopunbounded) && (void 0 === input3.label || "string" === typeof input3.label);
|
|
98
|
-
const $io20 = (input3) => "number" === typeof input3.start && true === input3.stopunbounded && (void 0 === input3.startinclusive || "boolean" === typeof input3.startinclusive) && (void 0 === input3.startunbounded || false === input3.startunbounded) && (void 0 === input3.stopinclusive || false === input3.stopinclusive) && (void 0 === input3.label || "string" === typeof input3.label);
|
|
96
|
+
const $io18 = (input3) => true === input3.startunbounded && (void 0 === input3.startinclusive || false === input3.startinclusive) && "number" === typeof input3.stop && (void 0 === input3.stopinclusive || "boolean" === typeof input3.stopinclusive) && (void 0 === input3.stopunbounded || false === input3.stopunbounded) && (void 0 === input3.label || "string" === typeof input3.label) && (void 0 === input3.range || "string" === typeof input3.range);
|
|
97
|
+
const $io19 = (input3) => (void 0 === input3.startunbounded || false === input3.startunbounded) && (void 0 === input3.startinclusive || "boolean" === typeof input3.startinclusive) && "number" === typeof input3.start && "number" === typeof input3.stop && (void 0 === input3.stopinclusive || "boolean" === typeof input3.stopinclusive) && (void 0 === input3.stopunbounded || false === input3.stopunbounded) && (void 0 === input3.label || "string" === typeof input3.label) && (void 0 === input3.range || "string" === typeof input3.range);
|
|
98
|
+
const $io20 = (input3) => "number" === typeof input3.start && true === input3.stopunbounded && (void 0 === input3.startinclusive || "boolean" === typeof input3.startinclusive) && (void 0 === input3.startunbounded || false === input3.startunbounded) && (void 0 === input3.stopinclusive || false === input3.stopinclusive) && (void 0 === input3.label || "string" === typeof input3.label) && (void 0 === input3.range || "string" === typeof input3.range);
|
|
99
99
|
const $io21 = (input3) => (void 0 === input3.hiddenValues || "object" === typeof input3.hiddenValues && null !== input3.hiddenValues && false === Array.isArray(input3.hiddenValues) && $io17(input3.hiddenValues)) && (void 0 === input3.isAtomic || true === input3.isAtomic) && (void 0 === input3.name || "string" === typeof input3.name) && (void 0 === input3.reuseId || "string" === typeof input3.reuseId) && "custom-bin" === input3.type && (void 0 === input3.mode || "discrete" === input3.mode || "binary" === input3.mode) && (Array.isArray(input3.lst) && ("object" === typeof input3.lst[0] && null !== input3.lst[0] && $iu2(input3.lst[0]) && (Array.isArray(input3.lst.slice(1)) && input3.lst.slice(1).every((elem) => "object" === typeof elem && null !== elem && $iu2(elem))))) && (void 0 === input3.preferredBins || "median" === input3.preferredBins);
|
|
100
100
|
const $io22 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "geneExpression" === input3.type && (void 0 === input3.child_types || Array.isArray(input3.child_types) && input3.child_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail) && (void 0 === input3.included_types || Array.isArray(input3.included_types) && input3.included_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.isleaf || "boolean" === typeof input3.isleaf) && (void 0 === input3.values || "object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) && $io5(input3.values)) && (void 0 === input3.skipValuesBuild || "boolean" === typeof input3.skipValuesBuild) && (void 0 === input3.continuousColorScale || "object" === typeof input3.continuousColorScale && null !== input3.continuousColorScale && $io14(input3.continuousColorScale)) && (void 0 === input3.unit || "string" === typeof input3.unit) && (void 0 === input3.bins || "object" === typeof input3.bins && null !== input3.bins && $io15(input3.bins)) && (void 0 === input3.kind || "gene" === input3.kind) && "string" === typeof input3.gene && (void 0 === input3.chr || "string" === typeof input3.chr) && (void 0 === input3.start || "number" === typeof input3.start) && (void 0 === input3.stop || "number" === typeof input3.stop);
|
|
101
101
|
const $io23 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "geneExpression" === input3.type && (void 0 === input3.child_types || Array.isArray(input3.child_types) && input3.child_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail) && (void 0 === input3.included_types || Array.isArray(input3.included_types) && input3.included_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.isleaf || "boolean" === typeof input3.isleaf) && (void 0 === input3.values || "object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) && $io5(input3.values)) && (void 0 === input3.skipValuesBuild || "boolean" === typeof input3.skipValuesBuild) && (void 0 === input3.continuousColorScale || "object" === typeof input3.continuousColorScale && null !== input3.continuousColorScale && $io14(input3.continuousColorScale)) && (void 0 === input3.unit || "string" === typeof input3.unit) && (void 0 === input3.bins || "object" === typeof input3.bins && null !== input3.bins && $io15(input3.bins)) && (void 0 === input3.kind || "coord" === input3.kind) && (void 0 === input3.gene || "string" === typeof input3.gene) && "string" === typeof input3.chr && "number" === typeof input3.start && "number" === typeof input3.stop;
|
|
@@ -229,7 +229,7 @@ var validViolinRequest = (input) => {
|
|
|
229
229
|
path: _path2 + ".devicePixelRatio",
|
|
230
230
|
expected: "number",
|
|
231
231
|
value: input3.devicePixelRatio
|
|
232
|
-
}), true, "string" === typeof input3.dslabel || $report(_exceptionable2, {
|
|
232
|
+
}), true, true, "string" === typeof input3.dslabel || $report(_exceptionable2, {
|
|
233
233
|
path: _path2 + ".dslabel",
|
|
234
234
|
expected: "string",
|
|
235
235
|
value: input3.dslabel
|
|
@@ -859,6 +859,10 @@ var validViolinRequest = (input) => {
|
|
|
859
859
|
path: _path2 + ".label",
|
|
860
860
|
expected: "(string | undefined)",
|
|
861
861
|
value: input3.label
|
|
862
|
+
}), void 0 === input3.range || "string" === typeof input3.range || $report(_exceptionable2, {
|
|
863
|
+
path: _path2 + ".range",
|
|
864
|
+
expected: "(string | undefined)",
|
|
865
|
+
value: input3.range
|
|
862
866
|
})].every((flag) => flag);
|
|
863
867
|
const $vo19 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.startunbounded || false === input3.startunbounded || $report(_exceptionable2, {
|
|
864
868
|
path: _path2 + ".startunbounded",
|
|
@@ -888,6 +892,10 @@ var validViolinRequest = (input) => {
|
|
|
888
892
|
path: _path2 + ".label",
|
|
889
893
|
expected: "(string | undefined)",
|
|
890
894
|
value: input3.label
|
|
895
|
+
}), void 0 === input3.range || "string" === typeof input3.range || $report(_exceptionable2, {
|
|
896
|
+
path: _path2 + ".range",
|
|
897
|
+
expected: "(string | undefined)",
|
|
898
|
+
value: input3.range
|
|
891
899
|
})].every((flag) => flag);
|
|
892
900
|
const $vo20 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.start || $report(_exceptionable2, {
|
|
893
901
|
path: _path2 + ".start",
|
|
@@ -913,6 +921,10 @@ var validViolinRequest = (input) => {
|
|
|
913
921
|
path: _path2 + ".label",
|
|
914
922
|
expected: "(string | undefined)",
|
|
915
923
|
value: input3.label
|
|
924
|
+
}), void 0 === input3.range || "string" === typeof input3.range || $report(_exceptionable2, {
|
|
925
|
+
path: _path2 + ".range",
|
|
926
|
+
expected: "(string | undefined)",
|
|
927
|
+
value: input3.range
|
|
916
928
|
})].every((flag) => flag);
|
|
917
929
|
const $vo21 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.hiddenValues || ("object" === typeof input3.hiddenValues && null !== input3.hiddenValues && false === Array.isArray(input3.hiddenValues) || $report(_exceptionable2, {
|
|
918
930
|
path: _path2 + ".hiddenValues",
|