@sjcrh/proteinpaint-types 2.141.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-KEJROUTM.js → chunk-4DNCZQOB.js} +271 -265
- package/dist/{chunk-WCWYMCZD.js → chunk-4MLQS6N7.js} +235 -127
- package/dist/{chunk-I7FTK55B.js → chunk-4VEXL32Q.js} +560 -410
- package/dist/{chunk-K5POIB3P.js → chunk-4ZMQ5CTL.js} +1 -1
- package/dist/{chunk-QWAPDNYB.js → chunk-5KADNZH2.js} +578 -428
- package/dist/{chunk-I2KWGMNM.js → chunk-62XTWOVJ.js} +1 -1
- package/dist/{chunk-FXCCZCTN.js → chunk-6GKG55BT.js} +1 -1
- package/dist/{chunk-EOBFYFLQ.js → chunk-6SOULHNE.js} +692 -460
- package/dist/{chunk-77RH7U6G.js → chunk-74B7B2CV.js} +505 -391
- package/dist/{chunk-S6OBK4RE.js → chunk-7ICZFAGK.js} +252 -140
- package/dist/{chunk-J4QAF4EU.js → chunk-7MUISZHS.js} +1 -1
- package/dist/{chunk-SMS3Y2XZ.js → chunk-BCBSHTHS.js} +1 -1
- package/dist/{chunk-56JQGGZJ.js → chunk-C246BWQE.js} +812 -568
- 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-VMQUAU5V.js → chunk-FXXE4S7M.js} +574 -424
- package/dist/{chunk-UYBVE3DL.js → chunk-GCAZSDCW.js} +574 -424
- 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-424IUJWR.js → chunk-MMFL6N5M.js} +237 -129
- 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-T3GTEGQN.js → chunk-U3AOS5QJ.js} +235 -127
- 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/date.ts +7 -5
- package/src/terms/geneExpression.ts +22 -8
- package/src/terms/metaboliteIntensity.ts +13 -3
- package/src/terms/numeric.ts +6 -1
- 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/ssGSEA.ts +4 -2
- package/src/terms/term.ts +2 -134
- package/src/terms/tw.ts +17 -2
- 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
|
+
};
|