@sjcrh/proteinpaint-types 2.85.0 → 2.87.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/README.md +22 -0
- package/dist/brainImaging.js +11 -0
- package/dist/brainImagingSamples.js +11 -0
- package/dist/burden.js +11 -0
- package/dist/chunk-37ZPCVP5.js +111 -0
- package/dist/chunk-5GG2FNAY.js +62 -0
- package/dist/chunk-5JWTIWVB.js +222 -0
- package/dist/chunk-5RZYB4M4.js +171 -0
- package/dist/chunk-6EFB6ZMB.js +62 -0
- package/dist/chunk-6LFMFM2C.js +122 -0
- package/dist/chunk-7PMGKVWQ.js +62 -0
- package/dist/chunk-7Z3IHB43.js +152 -0
- package/dist/chunk-B3D26X6X.js +337 -0
- package/dist/chunk-BY2JABTF.js +256 -0
- package/dist/chunk-CETMA2FU.js +144 -0
- package/dist/chunk-DCN75URO.js +1740 -0
- package/dist/chunk-DIDZMC3G.js +96 -0
- package/dist/chunk-DKSPASWZ.js +4058 -0
- package/dist/chunk-EWRK4PKZ.js +62 -0
- package/dist/chunk-FDTUTGQG.js +288 -0
- package/dist/chunk-FZ6QOTGM.js +205 -0
- package/dist/chunk-GU7LIGHN.js +174 -0
- package/dist/chunk-IL33L6MY.js +126 -0
- package/dist/chunk-INDBFC54.js +1538 -0
- package/dist/chunk-IT7IGDC4.js +1697 -0
- package/dist/chunk-IWG5IPXG.js +3409 -0
- package/dist/chunk-JEQ3TBVQ.js +1472 -0
- package/dist/chunk-JPW6LFDQ.js +1507 -0
- package/dist/chunk-K2KQTFQI.js +113 -0
- package/dist/chunk-M33KP65Z.js +3347 -0
- package/dist/chunk-MUJUKENL.js +62 -0
- package/dist/chunk-N45Z3JCY.js +62 -0
- package/dist/chunk-OMHEDUNA.js +62 -0
- package/dist/chunk-OY3EKV7F.js +130 -0
- package/dist/chunk-Q56YNQFK.js +3417 -0
- package/dist/chunk-QDIIM52V.js +165 -0
- package/dist/chunk-QX7QLUKY.js +228 -0
- package/dist/chunk-RLFGMVJZ.js +234 -0
- package/dist/chunk-SDOWCOGK.js +96 -0
- package/dist/chunk-UCG25D2C.js +109 -0
- package/dist/chunk-UIU3IQH4.js +62 -0
- package/dist/chunk-W3F2RMPU.js +3494 -0
- package/dist/chunk-W3QYIXXF.js +273 -0
- package/dist/chunk-XGAOGA3F.js +159 -0
- package/dist/chunk-XJCQEOPB.js +61 -0
- package/dist/chunk-XLBSZOMF.js +117 -0
- package/dist/chunk-XQQ5G6N6.js +109 -0
- package/dist/chunk-Z6B6IQIY.js +1785 -0
- package/dist/dataset.js +11 -0
- package/dist/dsdata.js +11 -0
- package/dist/dzimages.js +11 -0
- package/dist/gdc.maf.js +11 -0
- package/dist/gdc.mafBuild.js +11 -0
- package/dist/gdc.topMutatedGenes.js +11 -0
- package/dist/genelookup.js +11 -0
- package/dist/genesetEnrichment.js +11 -0
- package/dist/genesetOverrepresentation.js +11 -0
- package/dist/healthcheck.js +11 -0
- package/dist/hicdata.js +11 -0
- package/dist/hicgenome.js +11 -0
- package/dist/hicstat.js +11 -0
- package/dist/index.js +347 -0
- package/dist/isoformlst.js +11 -0
- package/dist/ntseq.js +11 -0
- package/dist/pdomain.js +11 -0
- package/dist/samplewsimages.js +11 -0
- package/dist/snp.js +11 -0
- package/dist/termdb.DE.js +11 -0
- package/dist/termdb.boxplot.js +11 -0
- package/dist/termdb.categories.js +11 -0
- package/dist/termdb.cluster.js +11 -0
- package/dist/termdb.cohort.summary.js +11 -0
- package/dist/termdb.cohorts.js +11 -0
- package/dist/termdb.descrstats.js +11 -0
- package/dist/termdb.numericcategories.js +11 -0
- package/dist/termdb.percentile.js +11 -0
- package/dist/termdb.rootterm.js +11 -0
- package/dist/termdb.sampleImages.js +11 -0
- package/dist/termdb.singleSampleMutation.js +11 -0
- package/dist/termdb.singlecellDEgenes.js +11 -0
- package/dist/termdb.singlecellData.js +11 -0
- package/dist/termdb.singlecellSamples.js +11 -0
- package/dist/termdb.termchildren.js +11 -0
- package/dist/termdb.termsbyids.js +11 -0
- package/dist/termdb.topTermsByType.js +11 -0
- package/dist/termdb.topVariablyExpressedGenes.js +11 -0
- package/dist/termdb.violin.js +11 -0
- package/dist/tileserver.js +11 -0
- package/dist/wsimages.js +11 -0
- package/package.json +19 -14
- package/src/Mclass.ts +8 -0
- package/src/dataset.ts +1578 -0
- package/src/docs.json +16417 -0
- package/src/fileOrUrl.ts +15 -0
- package/src/filter.ts +125 -0
- package/src/genome.ts +123 -0
- package/src/index.ts +67 -0
- package/src/routes/brainImaging.ts +47 -0
- package/src/routes/brainImagingSamples.ts +25 -0
- package/src/routes/burden.ts +111 -0
- package/src/routes/dataset.ts +14 -0
- package/src/routes/dsdata.ts +14 -0
- package/src/routes/dzimages.ts +25 -0
- package/src/routes/errorResponse.ts +6 -0
- package/src/routes/filter.gdc.ts +15 -0
- package/src/routes/gdc.maf.ts +52 -0
- package/src/routes/gdc.mafBuild.ts +20 -0
- package/src/routes/gdc.topMutatedGenes.ts +37 -0
- package/src/routes/genelookup.ts +22 -0
- package/src/routes/genesetEnrichment.ts +60 -0
- package/src/routes/genesetOverrepresentation.ts +48 -0
- package/src/routes/healthcheck.ts +79 -0
- package/src/routes/hicdata.ts +48 -0
- package/src/routes/hicgenome.ts +50 -0
- package/src/routes/hicstat.ts +57 -0
- package/src/routes/isoformlst.ts +14 -0
- package/src/routes/ntseq.ts +14 -0
- package/src/routes/pdomain.ts +14 -0
- package/src/routes/routeApi.ts +41 -0
- package/src/routes/samplewsimages.ts +27 -0
- package/src/routes/snp.ts +13 -0
- package/src/routes/termdb.DE.ts +57 -0
- package/src/routes/termdb.boxplot.ts +78 -0
- package/src/routes/termdb.categories.ts +73 -0
- package/src/routes/termdb.cluster.ts +103 -0
- package/src/routes/termdb.cohort.summary.ts +14 -0
- package/src/routes/termdb.cohorts.ts +14 -0
- package/src/routes/termdb.descrstats.ts +78 -0
- package/src/routes/termdb.numericcategories.ts +32 -0
- package/src/routes/termdb.percentile.ts +65 -0
- package/src/routes/termdb.rootterm.ts +49 -0
- package/src/routes/termdb.sampleImages.ts +26 -0
- package/src/routes/termdb.singleSampleMutation.ts +29 -0
- package/src/routes/termdb.singlecellDEgenes.ts +41 -0
- package/src/routes/termdb.singlecellData.ts +69 -0
- package/src/routes/termdb.singlecellSamples.ts +46 -0
- package/src/routes/termdb.termchildren.ts +49 -0
- package/src/routes/termdb.termsbyids.ts +26 -0
- package/src/routes/termdb.topTermsByType.ts +32 -0
- package/src/routes/termdb.topVariablyExpressedGenes.ts +56 -0
- package/src/routes/termdb.violin.ts +122 -0
- package/src/routes/tileserver.ts +14 -0
- package/src/routes/wsimages.ts +24 -0
- package/src/terms/categorical.ts +106 -0
- package/src/terms/condition.ts +55 -0
- package/src/terms/geneExpression.ts +32 -0
- package/src/terms/geneVariant.ts +51 -0
- package/src/terms/metaboliteIntensity.ts +31 -0
- package/src/terms/numeric.ts +253 -0
- package/src/terms/q.ts +38 -0
- package/src/terms/samplelst.ts +41 -0
- package/src/terms/singleCellCellType.ts +22 -0
- package/src/terms/singleCellGeneExpression.ts +28 -0
- package/src/terms/snp.ts +28 -0
- package/src/terms/snps.ts +110 -0
- package/src/terms/term.ts +184 -0
- package/src/terms/tw.ts +38 -0
- package/src/terms/updated-types.ts +9 -0
- package/src/termsetting.ts +197 -0
- package/src/test/numeric.type.spec.ts +275 -0
- package/src/vocab.ts +37 -0
- package/dist/routes.ts +0 -28847
- package/src/Mclass.js +0 -0
- package/src/checkers/routes.js +0 -167
- package/src/dataset.js +0 -0
- package/src/fileOrUrl.js +0 -0
- package/src/filter.js +0 -0
- package/src/genome.js +0 -0
- package/src/index.js +0 -66
- package/src/routes/brainImaging.js +0 -11
- package/src/routes/brainImagingSamples.js +0 -11
- package/src/routes/burden.js +0 -44
- package/src/routes/dataset.js +0 -12
- package/src/routes/dsdata.js +0 -12
- package/src/routes/dzimages.js +0 -12
- package/src/routes/errorResponse.js +0 -0
- package/src/routes/filter.gdc.js +0 -0
- package/src/routes/gdc.maf.js +0 -17
- package/src/routes/gdc.mafBuild.js +0 -12
- package/src/routes/gdc.topMutatedGenes.js +0 -12
- package/src/routes/genelookup.js +0 -12
- package/src/routes/genesetEnrichment.js +0 -12
- package/src/routes/genesetOverrepresentation.js +0 -12
- package/src/routes/healthcheck.js +0 -23
- package/src/routes/hicdata.js +0 -12
- package/src/routes/hicgenome.js +0 -29
- package/src/routes/hicstat.js +0 -12
- package/src/routes/isoformlst.js +0 -12
- package/src/routes/ntseq.js +0 -12
- package/src/routes/pdomain.js +0 -12
- package/src/routes/routeApi.js +0 -0
- package/src/routes/samplewsimages.js +0 -12
- package/src/routes/snp.js +0 -11
- package/src/routes/termdb.DE.js +0 -13
- package/src/routes/termdb.boxplot.js +0 -12
- package/src/routes/termdb.categories.js +0 -48
- package/src/routes/termdb.cluster.js +0 -12
- package/src/routes/termdb.cohort.summary.js +0 -12
- package/src/routes/termdb.cohorts.js +0 -12
- package/src/routes/termdb.descrstats.js +0 -48
- package/src/routes/termdb.numericcategories.js +0 -12
- package/src/routes/termdb.percentile.js +0 -49
- package/src/routes/termdb.rootterm.js +0 -27
- package/src/routes/termdb.sampleImages.js +0 -12
- package/src/routes/termdb.singleSampleMutation.js +0 -12
- package/src/routes/termdb.singlecellDEgenes.js +0 -12
- package/src/routes/termdb.singlecellData.js +0 -12
- package/src/routes/termdb.singlecellSamples.js +0 -12
- package/src/routes/termdb.termchildren.js +0 -28
- package/src/routes/termdb.termsbyids.js +0 -12
- package/src/routes/termdb.topTermsByType.js +0 -12
- package/src/routes/termdb.topVariablyExpressedGenes.js +0 -12
- package/src/routes/termdb.violin.js +0 -49
- package/src/routes/tileserver.js +0 -12
- package/src/routes/wsimages.js +0 -12
- package/src/terms/categorical.js +0 -0
- package/src/terms/condition.js +0 -0
- package/src/terms/geneExpression.js +0 -0
- package/src/terms/geneVariant.js +0 -0
- package/src/terms/metaboliteIntensity.js +0 -0
- package/src/terms/numeric.js +0 -0
- package/src/terms/q.js +0 -0
- package/src/terms/samplelst.js +0 -0
- package/src/terms/singleCellCellType.js +0 -0
- package/src/terms/singleCellGeneExpression.js +0 -0
- package/src/terms/snp.js +0 -0
- package/src/terms/snps.js +0 -0
- package/src/terms/term.js +0 -0
- package/src/terms/tw.js +0 -0
- package/src/terms/updated-types.js +0 -0
- package/src/termsetting.js +0 -0
- package/src/test/numeric.type.spec.js +0 -117
- package/src/vocab.js +0 -0
|
@@ -0,0 +1,1697 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__toESM,
|
|
3
|
+
require_lib
|
|
4
|
+
} from "./chunk-Z6B6IQIY.js";
|
|
5
|
+
|
|
6
|
+
// dist/termdb.violin.ts
|
|
7
|
+
var import_typia = __toESM(require_lib(), 1);
|
|
8
|
+
|
|
9
|
+
// src/routes/termdb.violin.ts
|
|
10
|
+
var violinPayload = {
|
|
11
|
+
request: {
|
|
12
|
+
typeId: "ViolinRequest"
|
|
13
|
+
},
|
|
14
|
+
response: {
|
|
15
|
+
typeId: "ViolinResponse"
|
|
16
|
+
},
|
|
17
|
+
examples: [
|
|
18
|
+
{
|
|
19
|
+
request: {
|
|
20
|
+
body: {
|
|
21
|
+
genome: "hg38-test",
|
|
22
|
+
dslabel: "TermdbTest",
|
|
23
|
+
embedder: "localhost",
|
|
24
|
+
devicePixelRatio: 2.200000047683716,
|
|
25
|
+
maxThickness: 150,
|
|
26
|
+
screenThickness: 1218,
|
|
27
|
+
filter: {
|
|
28
|
+
type: "tvslst",
|
|
29
|
+
in: true,
|
|
30
|
+
join: "",
|
|
31
|
+
lst: [
|
|
32
|
+
{
|
|
33
|
+
tag: "cohortFilter",
|
|
34
|
+
type: "tvs",
|
|
35
|
+
tvs: { term: { id: "subcohort", type: "categorical" }, values: [{ key: "ABC", label: "ABC" }] }
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
svgw: 227.27272234672367,
|
|
40
|
+
orientation: "horizontal",
|
|
41
|
+
datasymbol: "bean",
|
|
42
|
+
radius: 5,
|
|
43
|
+
strokeWidth: 0.2,
|
|
44
|
+
axisHeight: 60,
|
|
45
|
+
rightMargin: 50,
|
|
46
|
+
unit: "abs",
|
|
47
|
+
termid: "agedx"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
response: {
|
|
51
|
+
header: { status: 200 }
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
// dist/termdb.violin.ts
|
|
58
|
+
var validViolinRequest = (input) => {
|
|
59
|
+
const errors = [];
|
|
60
|
+
const __is = (input2) => {
|
|
61
|
+
const $join = import_typia.createValidate.join;
|
|
62
|
+
const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && "string" === typeof input3.embedder && true && true && "number" === typeof input3.devicePixelRatio && (void 0 === input3.filter || "object" === typeof input3.filter && null !== input3.filter && $io1(input3.filter)) && true && "number" === typeof input3.svgw && ("horizontal" === input3.orientation || "vertical" === input3.orientation) && "string" === typeof input3.datasymbol && "number" === typeof input3.radius && "number" === typeof input3.strokeWidth && "number" === typeof input3.axisHeight && "number" === typeof input3.rightMargin && "string" === typeof input3.unit && "boolean" === typeof input3.isKDE;
|
|
63
|
+
const $io1 = (input3) => "lst" === input3.type && (void 0 === input3["in"] || "boolean" === typeof input3["in"]) && ("and" === input3.join || "or" === 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
|
+
const $io2 = (input3) => (void 0 === input3.join || "string" === typeof input3.join) && (void 0 === input3.isnot || "boolean" === typeof input3.isnot) && ("object" === typeof input3.term && null !== input3.term && $io3(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) && $io5(elem)));
|
|
65
|
+
const $io3 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "categorical" === 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) && $io4(input3.values)) && ("object" === typeof input3.groupsetting && null !== input3.groupsetting && $iu4(input3.groupsetting));
|
|
66
|
+
const $io4 = (input3) => Object.keys(input3).every((key) => {
|
|
67
|
+
const value = input3[key];
|
|
68
|
+
if (void 0 === value)
|
|
69
|
+
return true;
|
|
70
|
+
if (RegExp(/(.*)/).test(key))
|
|
71
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io5(value);
|
|
72
|
+
if (RegExp(/^-?\d+\.?\d*$/).test(key))
|
|
73
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io5(value);
|
|
74
|
+
return true;
|
|
75
|
+
});
|
|
76
|
+
const $io5 = (input3) => (void 0 === input3.key || "string" === typeof input3.key) && (void 0 === input3.uncomputable || "boolean" === typeof input3.uncomputable) && (void 0 === input3.label || "string" === typeof input3.label || "number" === typeof input3.label) && (void 0 === input3.order || "string" === typeof input3.order) && (void 0 === input3.color || "string" === typeof input3.color) && (void 0 === input3.group || "number" === typeof input3.group) && (void 0 === input3.filter || "object" === typeof input3.filter && null !== input3.filter && $io1(input3.filter));
|
|
77
|
+
const $io6 = (input3) => (void 0 === input3.disabled || "boolean" === typeof input3.disabled) && (Array.isArray(input3.lst) && input3.lst.every((elem) => "object" === typeof elem && null !== elem && $io7(elem)));
|
|
78
|
+
const $io7 = (input3) => "string" === typeof input3.name && (void 0 === input3.is_grade || "boolean" === typeof input3.is_grade) && (void 0 === input3.is_subcondition || "boolean" === typeof input3.is_subcondition) && (Array.isArray(input3.groups) && input3.groups.every((elem) => "object" === typeof elem && null !== elem && $iu1(elem)));
|
|
79
|
+
const $io8 = (input3) => "string" === typeof input3.name && "string" === typeof input3.type && (Array.isArray(input3.values) && input3.values.every((elem) => "object" === typeof elem && null !== elem && $io9(elem))) && (void 0 === input3.uncomputable || "boolean" === typeof input3.uncomputable);
|
|
80
|
+
const $io9 = (input3) => ("string" === typeof input3.key || "number" === typeof input3.key) && "string" === typeof input3.label;
|
|
81
|
+
const $io10 = (input3) => "string" === typeof input3.name && "filter" === input3.type && ("object" === typeof input3.filter && null !== input3.filter && $io1(input3.filter));
|
|
82
|
+
const $io11 = (input3) => "boolean" === typeof input3.disabled && (void 0 === input3.lst || Array.isArray(input3.lst) && input3.lst.length === 0);
|
|
83
|
+
const $io12 = (input3) => (void 0 === input3.join || "string" === typeof input3.join) && (void 0 === input3.isnot || "boolean" === typeof input3.isnot) && ("object" === typeof input3.term && null !== input3.term && $io13(input3.term)) && (Array.isArray(input3.ranges) && input3.ranges.every((elem) => "object" === typeof elem && null !== elem && $iu2(elem))) && (Array.isArray(input3.values) && input3.values.every((elem) => "object" === typeof elem && null !== elem && $io21(elem)));
|
|
84
|
+
const $io13 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && ("integer" === input3.type || "float" === input3.type || "geneExpression" === input3.type || "metaboliteIntensity" === 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) && $io4(input3.values)) && ("object" === typeof input3.bins && null !== input3.bins && $io14(input3.bins)) && (void 0 === input3.unit || "string" === typeof input3.unit);
|
|
85
|
+
const $io14 = (input3) => "object" === typeof input3["default"] && null !== input3["default"] && $iu5(input3["default"]) && ("object" === typeof input3.less && null !== input3.less && $iu5(input3.less)) && (void 0 === input3.label_offset || "number" === typeof input3.label_offset) && (void 0 === input3.label_offset_ignored || "boolean" === typeof input3.label_offset_ignored) && (void 0 === input3.rounding || "string" === typeof input3.rounding) && (void 0 === input3.min || "number" === typeof input3.min) && (void 0 === input3.max || "number" === typeof input3.max);
|
|
86
|
+
const $io15 = (input3) => (void 0 === input3.hiddenValues || "object" === typeof input3.hiddenValues && null !== input3.hiddenValues && false === Array.isArray(input3.hiddenValues) && $io16(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) && "regular-bin" === input3.type && (void 0 === input3.mode || "discrete" === input3.mode) && "number" === typeof input3.bin_size && ("object" === typeof input3.first_bin && null !== input3.first_bin && $iu6(input3.first_bin)) && (void 0 === input3.last_bin || "object" === typeof input3.last_bin && null !== input3.last_bin && $iu7(input3.last_bin)) && (void 0 === input3.label_offset || "number" === typeof input3.label_offset);
|
|
87
|
+
const $io16 = (input3) => Object.keys(input3).every((key) => {
|
|
88
|
+
const value = input3[key];
|
|
89
|
+
if (void 0 === value)
|
|
90
|
+
return true;
|
|
91
|
+
if (RegExp(/(.*)/).test(key))
|
|
92
|
+
return "number" === typeof value;
|
|
93
|
+
return true;
|
|
94
|
+
});
|
|
95
|
+
const $io17 = (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);
|
|
96
|
+
const $io18 = (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);
|
|
97
|
+
const $io19 = (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);
|
|
98
|
+
const $io20 = (input3) => (void 0 === input3.hiddenValues || "object" === typeof input3.hiddenValues && null !== input3.hiddenValues && false === Array.isArray(input3.hiddenValues) && $io16(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);
|
|
99
|
+
const $io21 = (input3) => "string" === typeof input3.key && "number" === typeof input3.value && true === input3.uncomputable && (void 0 === input3.label || "string" === typeof input3.label);
|
|
100
|
+
const $io22 = (input3) => (void 0 === input3.join || "string" === typeof input3.join) && (void 0 === input3.isnot || "boolean" === typeof input3.isnot) && ("object" === typeof input3.term && null !== input3.term && $io23(input3.term)) && (void 0 === input3.value_by_max_grade || "boolean" === typeof input3.value_by_max_grade) && (void 0 === input3.value_by_most_recent || "boolean" === typeof input3.value_by_most_recent) && (void 0 === input3.value_by_computable_grade || "boolean" === typeof input3.value_by_computable_grade) && (void 0 === input3.grade_and_child || Array.isArray(input3.grade_and_child) && input3.grade_and_child.every((elem) => "object" === typeof elem && null !== elem && $io24(elem)));
|
|
101
|
+
const $io23 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "condition" === 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) && $io4(input3.values));
|
|
102
|
+
const $io24 = (input3) => "number" === typeof input3.grade && "string" === typeof input3.grade_label && (void 0 === input3.child_id || "string" === typeof input3.child_id) && "string" === typeof input3.child_label;
|
|
103
|
+
const $io25 = (input3) => (void 0 === input3.join || "string" === typeof input3.join) && (void 0 === input3.isnot || "boolean" === typeof input3.isnot) && ("object" === typeof input3.term && null !== input3.term && $iu8(input3.term)) && (Array.isArray(input3.values) && input3.values.every((elem) => "object" === typeof elem && null !== elem && $iu3(elem)));
|
|
104
|
+
const $io26 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "geneVariant" === 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) && $io4(input3.values)) && ("object" === typeof input3.groupsetting && null !== input3.groupsetting && $io6(input3.groupsetting)) && "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);
|
|
105
|
+
const $io27 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "geneVariant" === 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) && $io4(input3.values)) && ("object" === typeof input3.groupsetting && null !== input3.groupsetting && $io6(input3.groupsetting)) && "coord" === input3.kind && "string" === typeof input3.chr && "number" === typeof input3.start && "number" === typeof input3.stop;
|
|
106
|
+
const $io28 = (input3) => 1 === input3.dt && (Array.isArray(input3.mclassLst) && input3.mclassLst.every((elem) => "M" === elem || "E" === elem || "F" === elem || "N" === elem || "S" === elem || "D" === elem || "I" === elem || "P" === elem || "L" === elem || "Intron" === elem || "Blank" === elem || "WT" === elem || "ITD" === elem || "DEL" === elem || "NLOSS" === elem || "CLOSS" === elem || "Utr3" === elem || "Utr5" === elem || "X" === elem || "noncoding" === elem)) && (Array.isArray(input3.mclassExcludeLst) && input3.mclassExcludeLst.every((elem) => "M" === elem || "E" === elem || "F" === elem || "N" === elem || "S" === elem || "D" === elem || "I" === elem || "P" === elem || "L" === elem || "Intron" === elem || "Blank" === elem || "WT" === elem || "ITD" === elem || "DEL" === elem || "NLOSS" === elem || "CLOSS" === elem || "Utr3" === elem || "Utr5" === elem || "X" === elem || "noncoding" === elem)) && (void 0 === input3.origin || "somatic" === input3.origin || "germline" === input3.origin);
|
|
107
|
+
const $io29 = (input3) => 4 === input3.dt && (Array.isArray(input3.mclassLst) && input3.mclassLst.every((elem) => "Blank" === elem || "WT" === elem || "CNV_amp" === elem || "CNV_losss" === elem || "CNV_loh" === elem)) && (Array.isArray(input3.mclassExcludeLst) && input3.mclassExcludeLst.every((elem) => "Blank" === elem || "WT" === elem || "CNV_amp" === elem || "CNV_losss" === elem || "CNV_loh" === elem)) && (void 0 === input3.origin || "somatic" === input3.origin || "germline" === input3.origin);
|
|
108
|
+
const $io30 = (input3) => 5 === input3.dt && (Array.isArray(input3.mclassLst) && input3.mclassLst.every((elem) => "Blank" === elem || "WT" === elem || "SV" === elem)) && (Array.isArray(input3.mclassExcludeLst) && input3.mclassExcludeLst.every((elem) => "Blank" === elem || "WT" === elem || "SV" === elem)) && (void 0 === input3.origin || "somatic" === input3.origin || "germline" === input3.origin);
|
|
109
|
+
const $io31 = (input3) => 2 === input3.dt && (Array.isArray(input3.mclassLst) && input3.mclassLst.every((elem) => "Blank" === elem || "WT" === elem || "Fuserna" === elem)) && (Array.isArray(input3.mclassExcludeLst) && input3.mclassExcludeLst.every((elem) => "Blank" === elem || "WT" === elem || "Fuserna" === elem)) && (void 0 === input3.origin || "somatic" === input3.origin || "germline" === input3.origin);
|
|
110
|
+
const $iu0 = (input3) => (() => {
|
|
111
|
+
if (void 0 !== input3.type)
|
|
112
|
+
return $io1(input3);
|
|
113
|
+
if (void 0 !== input3.ranges)
|
|
114
|
+
return $io12(input3);
|
|
115
|
+
return (() => {
|
|
116
|
+
if ($io2(input3))
|
|
117
|
+
return $io2(input3);
|
|
118
|
+
if ($io22(input3))
|
|
119
|
+
return $io22(input3);
|
|
120
|
+
if ($io25(input3))
|
|
121
|
+
return $io25(input3);
|
|
122
|
+
return false;
|
|
123
|
+
})();
|
|
124
|
+
})();
|
|
125
|
+
const $iu1 = (input3) => (() => {
|
|
126
|
+
if ("string" === typeof input3.type)
|
|
127
|
+
return $io8(input3);
|
|
128
|
+
if ("filter" === input3.type)
|
|
129
|
+
return $io10(input3);
|
|
130
|
+
return false;
|
|
131
|
+
})();
|
|
132
|
+
const $iu2 = (input3) => (() => {
|
|
133
|
+
if (true === input3.startunbounded)
|
|
134
|
+
return $io17(input3);
|
|
135
|
+
if (true === input3.stopunbounded)
|
|
136
|
+
return $io19(input3);
|
|
137
|
+
return $io18(input3);
|
|
138
|
+
})();
|
|
139
|
+
const $iu3 = (input3) => (() => {
|
|
140
|
+
if (2 === input3.dt)
|
|
141
|
+
return $io31(input3);
|
|
142
|
+
if (5 === input3.dt)
|
|
143
|
+
return $io30(input3);
|
|
144
|
+
if (4 === input3.dt)
|
|
145
|
+
return $io29(input3);
|
|
146
|
+
if (1 === input3.dt)
|
|
147
|
+
return $io28(input3);
|
|
148
|
+
return false;
|
|
149
|
+
})();
|
|
150
|
+
const $iu4 = (input3) => (() => {
|
|
151
|
+
if (Array.isArray(input3.lst) && input3.lst.every((elem) => "object" === typeof elem && null !== elem && $io7(elem)))
|
|
152
|
+
return $io6(input3);
|
|
153
|
+
return $io11(input3);
|
|
154
|
+
})();
|
|
155
|
+
const $iu5 = (input3) => (() => {
|
|
156
|
+
if ("regular-bin" === input3.type)
|
|
157
|
+
return $io15(input3);
|
|
158
|
+
if ("custom-bin" === input3.type)
|
|
159
|
+
return $io20(input3);
|
|
160
|
+
return false;
|
|
161
|
+
})();
|
|
162
|
+
const $iu6 = (input3) => (() => {
|
|
163
|
+
if (true === input3.startunbounded)
|
|
164
|
+
return $io17(input3);
|
|
165
|
+
if (void 0 !== input3.start)
|
|
166
|
+
return $io18(input3);
|
|
167
|
+
return false;
|
|
168
|
+
})();
|
|
169
|
+
const $iu7 = (input3) => (() => {
|
|
170
|
+
if (void 0 !== input3.stop)
|
|
171
|
+
return $io18(input3);
|
|
172
|
+
if (true === input3.stopunbounded)
|
|
173
|
+
return $io19(input3);
|
|
174
|
+
return false;
|
|
175
|
+
})();
|
|
176
|
+
const $iu8 = (input3) => (() => {
|
|
177
|
+
if ("gene" === input3.kind)
|
|
178
|
+
return $io26(input3);
|
|
179
|
+
if ("coord" === input3.kind)
|
|
180
|
+
return $io27(input3);
|
|
181
|
+
return false;
|
|
182
|
+
})();
|
|
183
|
+
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
184
|
+
};
|
|
185
|
+
if (false === __is(input)) {
|
|
186
|
+
const $report = import_typia.createValidate.report(errors);
|
|
187
|
+
((input2, _path, _exceptionable = true) => {
|
|
188
|
+
const $join = import_typia.createValidate.join;
|
|
189
|
+
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.genome || $report(_exceptionable2, {
|
|
190
|
+
path: _path2 + ".genome",
|
|
191
|
+
expected: "string",
|
|
192
|
+
value: input3.genome
|
|
193
|
+
}), "string" === typeof input3.dslabel || $report(_exceptionable2, {
|
|
194
|
+
path: _path2 + ".dslabel",
|
|
195
|
+
expected: "string",
|
|
196
|
+
value: input3.dslabel
|
|
197
|
+
}), "string" === typeof input3.embedder || $report(_exceptionable2, {
|
|
198
|
+
path: _path2 + ".embedder",
|
|
199
|
+
expected: "string",
|
|
200
|
+
value: input3.embedder
|
|
201
|
+
}), true, true, "number" === typeof input3.devicePixelRatio || $report(_exceptionable2, {
|
|
202
|
+
path: _path2 + ".devicePixelRatio",
|
|
203
|
+
expected: "number",
|
|
204
|
+
value: input3.devicePixelRatio
|
|
205
|
+
}), void 0 === input3.filter || ("object" === typeof input3.filter && null !== input3.filter || $report(_exceptionable2, {
|
|
206
|
+
path: _path2 + ".filter",
|
|
207
|
+
expected: "(Filter | undefined)",
|
|
208
|
+
value: input3.filter
|
|
209
|
+
})) && $vo1(input3.filter, _path2 + ".filter", _exceptionable2) || $report(_exceptionable2, {
|
|
210
|
+
path: _path2 + ".filter",
|
|
211
|
+
expected: "(Filter | undefined)",
|
|
212
|
+
value: input3.filter
|
|
213
|
+
}), true, "number" === typeof input3.svgw || $report(_exceptionable2, {
|
|
214
|
+
path: _path2 + ".svgw",
|
|
215
|
+
expected: "number",
|
|
216
|
+
value: input3.svgw
|
|
217
|
+
}), "horizontal" === input3.orientation || "vertical" === input3.orientation || $report(_exceptionable2, {
|
|
218
|
+
path: _path2 + ".orientation",
|
|
219
|
+
expected: '("horizontal" | "vertical")',
|
|
220
|
+
value: input3.orientation
|
|
221
|
+
}), "string" === typeof input3.datasymbol || $report(_exceptionable2, {
|
|
222
|
+
path: _path2 + ".datasymbol",
|
|
223
|
+
expected: "string",
|
|
224
|
+
value: input3.datasymbol
|
|
225
|
+
}), "number" === typeof input3.radius || $report(_exceptionable2, {
|
|
226
|
+
path: _path2 + ".radius",
|
|
227
|
+
expected: "number",
|
|
228
|
+
value: input3.radius
|
|
229
|
+
}), "number" === typeof input3.strokeWidth || $report(_exceptionable2, {
|
|
230
|
+
path: _path2 + ".strokeWidth",
|
|
231
|
+
expected: "number",
|
|
232
|
+
value: input3.strokeWidth
|
|
233
|
+
}), "number" === typeof input3.axisHeight || $report(_exceptionable2, {
|
|
234
|
+
path: _path2 + ".axisHeight",
|
|
235
|
+
expected: "number",
|
|
236
|
+
value: input3.axisHeight
|
|
237
|
+
}), "number" === typeof input3.rightMargin || $report(_exceptionable2, {
|
|
238
|
+
path: _path2 + ".rightMargin",
|
|
239
|
+
expected: "number",
|
|
240
|
+
value: input3.rightMargin
|
|
241
|
+
}), "string" === typeof input3.unit || $report(_exceptionable2, {
|
|
242
|
+
path: _path2 + ".unit",
|
|
243
|
+
expected: "string",
|
|
244
|
+
value: input3.unit
|
|
245
|
+
}), "boolean" === typeof input3.isKDE || $report(_exceptionable2, {
|
|
246
|
+
path: _path2 + ".isKDE",
|
|
247
|
+
expected: "boolean",
|
|
248
|
+
value: input3.isKDE
|
|
249
|
+
})].every((flag) => flag);
|
|
250
|
+
const $vo1 = (input3, _path2, _exceptionable2 = true) => ["lst" === input3.type || $report(_exceptionable2, {
|
|
251
|
+
path: _path2 + ".type",
|
|
252
|
+
expected: '"lst"',
|
|
253
|
+
value: input3.type
|
|
254
|
+
}), void 0 === input3["in"] || "boolean" === typeof input3["in"] || $report(_exceptionable2, {
|
|
255
|
+
path: _path2 + '["in"]',
|
|
256
|
+
expected: "(boolean | undefined)",
|
|
257
|
+
value: input3["in"]
|
|
258
|
+
}), "and" === input3.join || "or" === input3.join || $report(_exceptionable2, {
|
|
259
|
+
path: _path2 + ".join",
|
|
260
|
+
expected: '("and" | "or")',
|
|
261
|
+
value: input3.join
|
|
262
|
+
}), void 0 === input3.tag || "string" === typeof input3.tag || $report(_exceptionable2, {
|
|
263
|
+
path: _path2 + ".tag",
|
|
264
|
+
expected: "(string | undefined)",
|
|
265
|
+
value: input3.tag
|
|
266
|
+
}), (Array.isArray(input3.lst) || $report(_exceptionable2, {
|
|
267
|
+
path: _path2 + ".lst",
|
|
268
|
+
expected: "Array<Filter | Tvs>",
|
|
269
|
+
value: input3.lst
|
|
270
|
+
})) && input3.lst.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
271
|
+
path: _path2 + ".lst[" + _index1 + "]",
|
|
272
|
+
expected: "(CategoricalTvs | ConditionTvs | Filter | GeneVariantTvs | NumericTvs)",
|
|
273
|
+
value: elem
|
|
274
|
+
})) && $vu0(elem, _path2 + ".lst[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
275
|
+
path: _path2 + ".lst[" + _index1 + "]",
|
|
276
|
+
expected: "(CategoricalTvs | ConditionTvs | Filter | GeneVariantTvs | NumericTvs)",
|
|
277
|
+
value: elem
|
|
278
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
279
|
+
path: _path2 + ".lst",
|
|
280
|
+
expected: "Array<Filter | Tvs>",
|
|
281
|
+
value: input3.lst
|
|
282
|
+
})].every((flag) => flag);
|
|
283
|
+
const $vo2 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.join || "string" === typeof input3.join || $report(_exceptionable2, {
|
|
284
|
+
path: _path2 + ".join",
|
|
285
|
+
expected: "(string | undefined)",
|
|
286
|
+
value: input3.join
|
|
287
|
+
}), void 0 === input3.isnot || "boolean" === typeof input3.isnot || $report(_exceptionable2, {
|
|
288
|
+
path: _path2 + ".isnot",
|
|
289
|
+
expected: "(boolean | undefined)",
|
|
290
|
+
value: input3.isnot
|
|
291
|
+
}), ("object" === typeof input3.term && null !== input3.term || $report(_exceptionable2, {
|
|
292
|
+
path: _path2 + ".term",
|
|
293
|
+
expected: "CategoricalTerm",
|
|
294
|
+
value: input3.term
|
|
295
|
+
})) && $vo3(input3.term, _path2 + ".term", _exceptionable2) || $report(_exceptionable2, {
|
|
296
|
+
path: _path2 + ".term",
|
|
297
|
+
expected: "CategoricalTerm",
|
|
298
|
+
value: input3.term
|
|
299
|
+
}), void 0 === input3.groupset_label || "string" === typeof input3.groupset_label || $report(_exceptionable2, {
|
|
300
|
+
path: _path2 + ".groupset_label",
|
|
301
|
+
expected: "(string | undefined)",
|
|
302
|
+
value: input3.groupset_label
|
|
303
|
+
}), (Array.isArray(input3.values) || $report(_exceptionable2, {
|
|
304
|
+
path: _path2 + ".values",
|
|
305
|
+
expected: "Array<BaseValue>",
|
|
306
|
+
value: input3.values
|
|
307
|
+
})) && input3.values.map((elem, _index2) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable2, {
|
|
308
|
+
path: _path2 + ".values[" + _index2 + "]",
|
|
309
|
+
expected: "BaseValue",
|
|
310
|
+
value: elem
|
|
311
|
+
})) && $vo5(elem, _path2 + ".values[" + _index2 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
312
|
+
path: _path2 + ".values[" + _index2 + "]",
|
|
313
|
+
expected: "BaseValue",
|
|
314
|
+
value: elem
|
|
315
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
316
|
+
path: _path2 + ".values",
|
|
317
|
+
expected: "Array<BaseValue>",
|
|
318
|
+
value: input3.values
|
|
319
|
+
})].every((flag) => flag);
|
|
320
|
+
const $vo3 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.id || $report(_exceptionable2, {
|
|
321
|
+
path: _path2 + ".id",
|
|
322
|
+
expected: "string",
|
|
323
|
+
value: input3.id
|
|
324
|
+
}), "string" === typeof input3.name || $report(_exceptionable2, {
|
|
325
|
+
path: _path2 + ".name",
|
|
326
|
+
expected: "string",
|
|
327
|
+
value: input3.name
|
|
328
|
+
}), "categorical" === input3.type || $report(_exceptionable2, {
|
|
329
|
+
path: _path2 + ".type",
|
|
330
|
+
expected: '"categorical"',
|
|
331
|
+
value: input3.type
|
|
332
|
+
}), void 0 === input3.child_types || (Array.isArray(input3.child_types) || $report(_exceptionable2, {
|
|
333
|
+
path: _path2 + ".child_types",
|
|
334
|
+
expected: "(Array<string> | undefined)",
|
|
335
|
+
value: input3.child_types
|
|
336
|
+
})) && input3.child_types.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable2, {
|
|
337
|
+
path: _path2 + ".child_types[" + _index3 + "]",
|
|
338
|
+
expected: "string",
|
|
339
|
+
value: elem
|
|
340
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
341
|
+
path: _path2 + ".child_types",
|
|
342
|
+
expected: "(Array<string> | undefined)",
|
|
343
|
+
value: input3.child_types
|
|
344
|
+
}), void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail || $report(_exceptionable2, {
|
|
345
|
+
path: _path2 + ".hashtmldetail",
|
|
346
|
+
expected: "(boolean | undefined)",
|
|
347
|
+
value: input3.hashtmldetail
|
|
348
|
+
}), void 0 === input3.included_types || (Array.isArray(input3.included_types) || $report(_exceptionable2, {
|
|
349
|
+
path: _path2 + ".included_types",
|
|
350
|
+
expected: "(Array<string> | undefined)",
|
|
351
|
+
value: input3.included_types
|
|
352
|
+
})) && input3.included_types.map((elem, _index4) => "string" === typeof elem || $report(_exceptionable2, {
|
|
353
|
+
path: _path2 + ".included_types[" + _index4 + "]",
|
|
354
|
+
expected: "string",
|
|
355
|
+
value: elem
|
|
356
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
357
|
+
path: _path2 + ".included_types",
|
|
358
|
+
expected: "(Array<string> | undefined)",
|
|
359
|
+
value: input3.included_types
|
|
360
|
+
}), void 0 === input3.isleaf || "boolean" === typeof input3.isleaf || $report(_exceptionable2, {
|
|
361
|
+
path: _path2 + ".isleaf",
|
|
362
|
+
expected: "(boolean | undefined)",
|
|
363
|
+
value: input3.isleaf
|
|
364
|
+
}), void 0 === input3.values || ("object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) || $report(_exceptionable2, {
|
|
365
|
+
path: _path2 + ".values",
|
|
366
|
+
expected: "(TermValues | undefined)",
|
|
367
|
+
value: input3.values
|
|
368
|
+
})) && $vo4(input3.values, _path2 + ".values", _exceptionable2) || $report(_exceptionable2, {
|
|
369
|
+
path: _path2 + ".values",
|
|
370
|
+
expected: "(TermValues | undefined)",
|
|
371
|
+
value: input3.values
|
|
372
|
+
}), ("object" === typeof input3.groupsetting && null !== input3.groupsetting || $report(_exceptionable2, {
|
|
373
|
+
path: _path2 + ".groupsetting",
|
|
374
|
+
expected: "(EnabledTermGroupSetting | __type.o1)",
|
|
375
|
+
value: input3.groupsetting
|
|
376
|
+
})) && $vu4(input3.groupsetting, _path2 + ".groupsetting", _exceptionable2) || $report(_exceptionable2, {
|
|
377
|
+
path: _path2 + ".groupsetting",
|
|
378
|
+
expected: "(EnabledTermGroupSetting | __type.o1)",
|
|
379
|
+
value: input3.groupsetting
|
|
380
|
+
})].every((flag) => flag);
|
|
381
|
+
const $vo4 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
|
|
382
|
+
const value = input3[key];
|
|
383
|
+
if (void 0 === value)
|
|
384
|
+
return true;
|
|
385
|
+
if (RegExp(/(.*)/).test(key))
|
|
386
|
+
return ("object" === typeof value && null !== value && false === Array.isArray(value) || $report(_exceptionable2, {
|
|
387
|
+
path: _path2 + $join(key),
|
|
388
|
+
expected: "BaseValue",
|
|
389
|
+
value
|
|
390
|
+
})) && $vo5(value, _path2 + $join(key), _exceptionable2) || $report(_exceptionable2, {
|
|
391
|
+
path: _path2 + $join(key),
|
|
392
|
+
expected: "BaseValue",
|
|
393
|
+
value
|
|
394
|
+
});
|
|
395
|
+
if (RegExp(/^-?\d+\.?\d*$/).test(key))
|
|
396
|
+
return ("object" === typeof value && null !== value && false === Array.isArray(value) || $report(_exceptionable2, {
|
|
397
|
+
path: _path2 + $join(key),
|
|
398
|
+
expected: "BaseValue",
|
|
399
|
+
value
|
|
400
|
+
})) && $vo5(value, _path2 + $join(key), _exceptionable2) || $report(_exceptionable2, {
|
|
401
|
+
path: _path2 + $join(key),
|
|
402
|
+
expected: "BaseValue",
|
|
403
|
+
value
|
|
404
|
+
});
|
|
405
|
+
return true;
|
|
406
|
+
}).every((flag) => flag)].every((flag) => flag);
|
|
407
|
+
const $vo5 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.key || "string" === typeof input3.key || $report(_exceptionable2, {
|
|
408
|
+
path: _path2 + ".key",
|
|
409
|
+
expected: "(string | undefined)",
|
|
410
|
+
value: input3.key
|
|
411
|
+
}), void 0 === input3.uncomputable || "boolean" === typeof input3.uncomputable || $report(_exceptionable2, {
|
|
412
|
+
path: _path2 + ".uncomputable",
|
|
413
|
+
expected: "(boolean | undefined)",
|
|
414
|
+
value: input3.uncomputable
|
|
415
|
+
}), void 0 === input3.label || "string" === typeof input3.label || "number" === typeof input3.label || $report(_exceptionable2, {
|
|
416
|
+
path: _path2 + ".label",
|
|
417
|
+
expected: "(number | string | undefined)",
|
|
418
|
+
value: input3.label
|
|
419
|
+
}), void 0 === input3.order || "string" === typeof input3.order || $report(_exceptionable2, {
|
|
420
|
+
path: _path2 + ".order",
|
|
421
|
+
expected: "(string | undefined)",
|
|
422
|
+
value: input3.order
|
|
423
|
+
}), void 0 === input3.color || "string" === typeof input3.color || $report(_exceptionable2, {
|
|
424
|
+
path: _path2 + ".color",
|
|
425
|
+
expected: "(string | undefined)",
|
|
426
|
+
value: input3.color
|
|
427
|
+
}), void 0 === input3.group || "number" === typeof input3.group || $report(_exceptionable2, {
|
|
428
|
+
path: _path2 + ".group",
|
|
429
|
+
expected: "(number | undefined)",
|
|
430
|
+
value: input3.group
|
|
431
|
+
}), void 0 === input3.filter || ("object" === typeof input3.filter && null !== input3.filter || $report(_exceptionable2, {
|
|
432
|
+
path: _path2 + ".filter",
|
|
433
|
+
expected: "(Filter | undefined)",
|
|
434
|
+
value: input3.filter
|
|
435
|
+
})) && $vo1(input3.filter, _path2 + ".filter", _exceptionable2) || $report(_exceptionable2, {
|
|
436
|
+
path: _path2 + ".filter",
|
|
437
|
+
expected: "(Filter | undefined)",
|
|
438
|
+
value: input3.filter
|
|
439
|
+
})].every((flag) => flag);
|
|
440
|
+
const $vo6 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.disabled || "boolean" === typeof input3.disabled || $report(_exceptionable2, {
|
|
441
|
+
path: _path2 + ".disabled",
|
|
442
|
+
expected: "(boolean | undefined)",
|
|
443
|
+
value: input3.disabled
|
|
444
|
+
}), (Array.isArray(input3.lst) || $report(_exceptionable2, {
|
|
445
|
+
path: _path2 + ".lst",
|
|
446
|
+
expected: "Array<Groupset>",
|
|
447
|
+
value: input3.lst
|
|
448
|
+
})) && input3.lst.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
449
|
+
path: _path2 + ".lst[" + _index5 + "]",
|
|
450
|
+
expected: "Groupset",
|
|
451
|
+
value: elem
|
|
452
|
+
})) && $vo7(elem, _path2 + ".lst[" + _index5 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
453
|
+
path: _path2 + ".lst[" + _index5 + "]",
|
|
454
|
+
expected: "Groupset",
|
|
455
|
+
value: elem
|
|
456
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
457
|
+
path: _path2 + ".lst",
|
|
458
|
+
expected: "Array<Groupset>",
|
|
459
|
+
value: input3.lst
|
|
460
|
+
})].every((flag) => flag);
|
|
461
|
+
const $vo7 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.name || $report(_exceptionable2, {
|
|
462
|
+
path: _path2 + ".name",
|
|
463
|
+
expected: "string",
|
|
464
|
+
value: input3.name
|
|
465
|
+
}), void 0 === input3.is_grade || "boolean" === typeof input3.is_grade || $report(_exceptionable2, {
|
|
466
|
+
path: _path2 + ".is_grade",
|
|
467
|
+
expected: "(boolean | undefined)",
|
|
468
|
+
value: input3.is_grade
|
|
469
|
+
}), void 0 === input3.is_subcondition || "boolean" === typeof input3.is_subcondition || $report(_exceptionable2, {
|
|
470
|
+
path: _path2 + ".is_subcondition",
|
|
471
|
+
expected: "(boolean | undefined)",
|
|
472
|
+
value: input3.is_subcondition
|
|
473
|
+
}), (Array.isArray(input3.groups) || $report(_exceptionable2, {
|
|
474
|
+
path: _path2 + ".groups",
|
|
475
|
+
expected: "Array<GroupEntry>",
|
|
476
|
+
value: input3.groups
|
|
477
|
+
})) && input3.groups.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
478
|
+
path: _path2 + ".groups[" + _index6 + "]",
|
|
479
|
+
expected: "(FilterGroup | ValuesGroup)",
|
|
480
|
+
value: elem
|
|
481
|
+
})) && $vu1(elem, _path2 + ".groups[" + _index6 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
482
|
+
path: _path2 + ".groups[" + _index6 + "]",
|
|
483
|
+
expected: "(FilterGroup | ValuesGroup)",
|
|
484
|
+
value: elem
|
|
485
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
486
|
+
path: _path2 + ".groups",
|
|
487
|
+
expected: "Array<GroupEntry>",
|
|
488
|
+
value: input3.groups
|
|
489
|
+
})].every((flag) => flag);
|
|
490
|
+
const $vo8 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.name || $report(_exceptionable2, {
|
|
491
|
+
path: _path2 + ".name",
|
|
492
|
+
expected: "string",
|
|
493
|
+
value: input3.name
|
|
494
|
+
}), "string" === typeof input3.type || $report(_exceptionable2, {
|
|
495
|
+
path: _path2 + ".type",
|
|
496
|
+
expected: "string",
|
|
497
|
+
value: input3.type
|
|
498
|
+
}), (Array.isArray(input3.values) || $report(_exceptionable2, {
|
|
499
|
+
path: _path2 + ".values",
|
|
500
|
+
expected: "Array<__type>",
|
|
501
|
+
value: input3.values
|
|
502
|
+
})) && input3.values.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
503
|
+
path: _path2 + ".values[" + _index7 + "]",
|
|
504
|
+
expected: "__type",
|
|
505
|
+
value: elem
|
|
506
|
+
})) && $vo9(elem, _path2 + ".values[" + _index7 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
507
|
+
path: _path2 + ".values[" + _index7 + "]",
|
|
508
|
+
expected: "__type",
|
|
509
|
+
value: elem
|
|
510
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
511
|
+
path: _path2 + ".values",
|
|
512
|
+
expected: "Array<__type>",
|
|
513
|
+
value: input3.values
|
|
514
|
+
}), void 0 === input3.uncomputable || "boolean" === typeof input3.uncomputable || $report(_exceptionable2, {
|
|
515
|
+
path: _path2 + ".uncomputable",
|
|
516
|
+
expected: "(boolean | undefined)",
|
|
517
|
+
value: input3.uncomputable
|
|
518
|
+
})].every((flag) => flag);
|
|
519
|
+
const $vo9 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.key || "number" === typeof input3.key || $report(_exceptionable2, {
|
|
520
|
+
path: _path2 + ".key",
|
|
521
|
+
expected: "(number | string)",
|
|
522
|
+
value: input3.key
|
|
523
|
+
}), "string" === typeof input3.label || $report(_exceptionable2, {
|
|
524
|
+
path: _path2 + ".label",
|
|
525
|
+
expected: "string",
|
|
526
|
+
value: input3.label
|
|
527
|
+
})].every((flag) => flag);
|
|
528
|
+
const $vo10 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.name || $report(_exceptionable2, {
|
|
529
|
+
path: _path2 + ".name",
|
|
530
|
+
expected: "string",
|
|
531
|
+
value: input3.name
|
|
532
|
+
}), "filter" === input3.type || $report(_exceptionable2, {
|
|
533
|
+
path: _path2 + ".type",
|
|
534
|
+
expected: '"filter"',
|
|
535
|
+
value: input3.type
|
|
536
|
+
}), ("object" === typeof input3.filter && null !== input3.filter || $report(_exceptionable2, {
|
|
537
|
+
path: _path2 + ".filter",
|
|
538
|
+
expected: "Filter",
|
|
539
|
+
value: input3.filter
|
|
540
|
+
})) && $vo1(input3.filter, _path2 + ".filter", _exceptionable2) || $report(_exceptionable2, {
|
|
541
|
+
path: _path2 + ".filter",
|
|
542
|
+
expected: "Filter",
|
|
543
|
+
value: input3.filter
|
|
544
|
+
})].every((flag) => flag);
|
|
545
|
+
const $vo11 = (input3, _path2, _exceptionable2 = true) => ["boolean" === typeof input3.disabled || $report(_exceptionable2, {
|
|
546
|
+
path: _path2 + ".disabled",
|
|
547
|
+
expected: "boolean",
|
|
548
|
+
value: input3.disabled
|
|
549
|
+
}), void 0 === input3.lst || (Array.isArray(input3.lst) || $report(_exceptionable2, {
|
|
550
|
+
path: _path2 + ".lst",
|
|
551
|
+
expected: "([] | undefined)",
|
|
552
|
+
value: input3.lst
|
|
553
|
+
})) && ((input3.lst.length === 0 || $report(_exceptionable2, {
|
|
554
|
+
path: _path2 + ".lst",
|
|
555
|
+
expected: "[]",
|
|
556
|
+
value: input3.lst
|
|
557
|
+
})) && [].every((flag) => flag)) || $report(_exceptionable2, {
|
|
558
|
+
path: _path2 + ".lst",
|
|
559
|
+
expected: "([] | undefined)",
|
|
560
|
+
value: input3.lst
|
|
561
|
+
})].every((flag) => flag);
|
|
562
|
+
const $vo12 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.join || "string" === typeof input3.join || $report(_exceptionable2, {
|
|
563
|
+
path: _path2 + ".join",
|
|
564
|
+
expected: "(string | undefined)",
|
|
565
|
+
value: input3.join
|
|
566
|
+
}), void 0 === input3.isnot || "boolean" === typeof input3.isnot || $report(_exceptionable2, {
|
|
567
|
+
path: _path2 + ".isnot",
|
|
568
|
+
expected: "(boolean | undefined)",
|
|
569
|
+
value: input3.isnot
|
|
570
|
+
}), ("object" === typeof input3.term && null !== input3.term || $report(_exceptionable2, {
|
|
571
|
+
path: _path2 + ".term",
|
|
572
|
+
expected: "NumericTerm",
|
|
573
|
+
value: input3.term
|
|
574
|
+
})) && $vo13(input3.term, _path2 + ".term", _exceptionable2) || $report(_exceptionable2, {
|
|
575
|
+
path: _path2 + ".term",
|
|
576
|
+
expected: "NumericTerm",
|
|
577
|
+
value: input3.term
|
|
578
|
+
}), (Array.isArray(input3.ranges) || $report(_exceptionable2, {
|
|
579
|
+
path: _path2 + ".ranges",
|
|
580
|
+
expected: "Array<NumericBin>",
|
|
581
|
+
value: input3.ranges
|
|
582
|
+
})) && input3.ranges.map((elem, _index8) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
583
|
+
path: _path2 + ".ranges[" + _index8 + "]",
|
|
584
|
+
expected: "(FullyBoundedBin | StartUnboundedBin | StopUnboundedBin)",
|
|
585
|
+
value: elem
|
|
586
|
+
})) && $vu2(elem, _path2 + ".ranges[" + _index8 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
587
|
+
path: _path2 + ".ranges[" + _index8 + "]",
|
|
588
|
+
expected: "(FullyBoundedBin | StartUnboundedBin | StopUnboundedBin)",
|
|
589
|
+
value: elem
|
|
590
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
591
|
+
path: _path2 + ".ranges",
|
|
592
|
+
expected: "Array<NumericBin>",
|
|
593
|
+
value: input3.ranges
|
|
594
|
+
}), (Array.isArray(input3.values) || $report(_exceptionable2, {
|
|
595
|
+
path: _path2 + ".values",
|
|
596
|
+
expected: "Array<__type>.o1",
|
|
597
|
+
value: input3.values
|
|
598
|
+
})) && input3.values.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
599
|
+
path: _path2 + ".values[" + _index9 + "]",
|
|
600
|
+
expected: "__type.o2",
|
|
601
|
+
value: elem
|
|
602
|
+
})) && $vo21(elem, _path2 + ".values[" + _index9 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
603
|
+
path: _path2 + ".values[" + _index9 + "]",
|
|
604
|
+
expected: "__type.o2",
|
|
605
|
+
value: elem
|
|
606
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
607
|
+
path: _path2 + ".values",
|
|
608
|
+
expected: "Array<__type>.o1",
|
|
609
|
+
value: input3.values
|
|
610
|
+
})].every((flag) => flag);
|
|
611
|
+
const $vo13 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.id || $report(_exceptionable2, {
|
|
612
|
+
path: _path2 + ".id",
|
|
613
|
+
expected: "string",
|
|
614
|
+
value: input3.id
|
|
615
|
+
}), "string" === typeof input3.name || $report(_exceptionable2, {
|
|
616
|
+
path: _path2 + ".name",
|
|
617
|
+
expected: "string",
|
|
618
|
+
value: input3.name
|
|
619
|
+
}), "integer" === input3.type || "float" === input3.type || "geneExpression" === input3.type || "metaboliteIntensity" === input3.type || $report(_exceptionable2, {
|
|
620
|
+
path: _path2 + ".type",
|
|
621
|
+
expected: '("float" | "geneExpression" | "integer" | "metaboliteIntensity")',
|
|
622
|
+
value: input3.type
|
|
623
|
+
}), void 0 === input3.child_types || (Array.isArray(input3.child_types) || $report(_exceptionable2, {
|
|
624
|
+
path: _path2 + ".child_types",
|
|
625
|
+
expected: "(Array<string> | undefined)",
|
|
626
|
+
value: input3.child_types
|
|
627
|
+
})) && input3.child_types.map((elem, _index10) => "string" === typeof elem || $report(_exceptionable2, {
|
|
628
|
+
path: _path2 + ".child_types[" + _index10 + "]",
|
|
629
|
+
expected: "string",
|
|
630
|
+
value: elem
|
|
631
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
632
|
+
path: _path2 + ".child_types",
|
|
633
|
+
expected: "(Array<string> | undefined)",
|
|
634
|
+
value: input3.child_types
|
|
635
|
+
}), void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail || $report(_exceptionable2, {
|
|
636
|
+
path: _path2 + ".hashtmldetail",
|
|
637
|
+
expected: "(boolean | undefined)",
|
|
638
|
+
value: input3.hashtmldetail
|
|
639
|
+
}), void 0 === input3.included_types || (Array.isArray(input3.included_types) || $report(_exceptionable2, {
|
|
640
|
+
path: _path2 + ".included_types",
|
|
641
|
+
expected: "(Array<string> | undefined)",
|
|
642
|
+
value: input3.included_types
|
|
643
|
+
})) && input3.included_types.map((elem, _index11) => "string" === typeof elem || $report(_exceptionable2, {
|
|
644
|
+
path: _path2 + ".included_types[" + _index11 + "]",
|
|
645
|
+
expected: "string",
|
|
646
|
+
value: elem
|
|
647
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
648
|
+
path: _path2 + ".included_types",
|
|
649
|
+
expected: "(Array<string> | undefined)",
|
|
650
|
+
value: input3.included_types
|
|
651
|
+
}), void 0 === input3.isleaf || "boolean" === typeof input3.isleaf || $report(_exceptionable2, {
|
|
652
|
+
path: _path2 + ".isleaf",
|
|
653
|
+
expected: "(boolean | undefined)",
|
|
654
|
+
value: input3.isleaf
|
|
655
|
+
}), void 0 === input3.values || ("object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) || $report(_exceptionable2, {
|
|
656
|
+
path: _path2 + ".values",
|
|
657
|
+
expected: "(TermValues | undefined)",
|
|
658
|
+
value: input3.values
|
|
659
|
+
})) && $vo4(input3.values, _path2 + ".values", _exceptionable2) || $report(_exceptionable2, {
|
|
660
|
+
path: _path2 + ".values",
|
|
661
|
+
expected: "(TermValues | undefined)",
|
|
662
|
+
value: input3.values
|
|
663
|
+
}), ("object" === typeof input3.bins && null !== input3.bins || $report(_exceptionable2, {
|
|
664
|
+
path: _path2 + ".bins",
|
|
665
|
+
expected: "PresetNumericBins",
|
|
666
|
+
value: input3.bins
|
|
667
|
+
})) && $vo14(input3.bins, _path2 + ".bins", _exceptionable2) || $report(_exceptionable2, {
|
|
668
|
+
path: _path2 + ".bins",
|
|
669
|
+
expected: "PresetNumericBins",
|
|
670
|
+
value: input3.bins
|
|
671
|
+
}), void 0 === input3.unit || "string" === typeof input3.unit || $report(_exceptionable2, {
|
|
672
|
+
path: _path2 + ".unit",
|
|
673
|
+
expected: "(string | undefined)",
|
|
674
|
+
value: input3.unit
|
|
675
|
+
})].every((flag) => flag);
|
|
676
|
+
const $vo14 = (input3, _path2, _exceptionable2 = true) => [("object" === typeof input3["default"] && null !== input3["default"] || $report(_exceptionable2, {
|
|
677
|
+
path: _path2 + '["default"]',
|
|
678
|
+
expected: "(CustomNumericBinConfig | RegularNumericBinConfig)",
|
|
679
|
+
value: input3["default"]
|
|
680
|
+
})) && $vu5(input3["default"], _path2 + '["default"]', _exceptionable2) || $report(_exceptionable2, {
|
|
681
|
+
path: _path2 + '["default"]',
|
|
682
|
+
expected: "(CustomNumericBinConfig | RegularNumericBinConfig)",
|
|
683
|
+
value: input3["default"]
|
|
684
|
+
}), ("object" === typeof input3.less && null !== input3.less || $report(_exceptionable2, {
|
|
685
|
+
path: _path2 + ".less",
|
|
686
|
+
expected: "(CustomNumericBinConfig | RegularNumericBinConfig)",
|
|
687
|
+
value: input3.less
|
|
688
|
+
})) && $vu5(input3.less, _path2 + ".less", _exceptionable2) || $report(_exceptionable2, {
|
|
689
|
+
path: _path2 + ".less",
|
|
690
|
+
expected: "(CustomNumericBinConfig | RegularNumericBinConfig)",
|
|
691
|
+
value: input3.less
|
|
692
|
+
}), void 0 === input3.label_offset || "number" === typeof input3.label_offset || $report(_exceptionable2, {
|
|
693
|
+
path: _path2 + ".label_offset",
|
|
694
|
+
expected: "(number | undefined)",
|
|
695
|
+
value: input3.label_offset
|
|
696
|
+
}), void 0 === input3.label_offset_ignored || "boolean" === typeof input3.label_offset_ignored || $report(_exceptionable2, {
|
|
697
|
+
path: _path2 + ".label_offset_ignored",
|
|
698
|
+
expected: "(boolean | undefined)",
|
|
699
|
+
value: input3.label_offset_ignored
|
|
700
|
+
}), void 0 === input3.rounding || "string" === typeof input3.rounding || $report(_exceptionable2, {
|
|
701
|
+
path: _path2 + ".rounding",
|
|
702
|
+
expected: "(string | undefined)",
|
|
703
|
+
value: input3.rounding
|
|
704
|
+
}), void 0 === input3.min || "number" === typeof input3.min || $report(_exceptionable2, {
|
|
705
|
+
path: _path2 + ".min",
|
|
706
|
+
expected: "(number | undefined)",
|
|
707
|
+
value: input3.min
|
|
708
|
+
}), void 0 === input3.max || "number" === typeof input3.max || $report(_exceptionable2, {
|
|
709
|
+
path: _path2 + ".max",
|
|
710
|
+
expected: "(number | undefined)",
|
|
711
|
+
value: input3.max
|
|
712
|
+
})].every((flag) => flag);
|
|
713
|
+
const $vo15 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.hiddenValues || ("object" === typeof input3.hiddenValues && null !== input3.hiddenValues && false === Array.isArray(input3.hiddenValues) || $report(_exceptionable2, {
|
|
714
|
+
path: _path2 + ".hiddenValues",
|
|
715
|
+
expected: "(HiddenValues | undefined)",
|
|
716
|
+
value: input3.hiddenValues
|
|
717
|
+
})) && $vo16(input3.hiddenValues, _path2 + ".hiddenValues", _exceptionable2) || $report(_exceptionable2, {
|
|
718
|
+
path: _path2 + ".hiddenValues",
|
|
719
|
+
expected: "(HiddenValues | undefined)",
|
|
720
|
+
value: input3.hiddenValues
|
|
721
|
+
}), void 0 === input3.isAtomic || true === input3.isAtomic || $report(_exceptionable2, {
|
|
722
|
+
path: _path2 + ".isAtomic",
|
|
723
|
+
expected: "(true | undefined)",
|
|
724
|
+
value: input3.isAtomic
|
|
725
|
+
}), void 0 === input3.name || "string" === typeof input3.name || $report(_exceptionable2, {
|
|
726
|
+
path: _path2 + ".name",
|
|
727
|
+
expected: "(string | undefined)",
|
|
728
|
+
value: input3.name
|
|
729
|
+
}), void 0 === input3.reuseId || "string" === typeof input3.reuseId || $report(_exceptionable2, {
|
|
730
|
+
path: _path2 + ".reuseId",
|
|
731
|
+
expected: "(string | undefined)",
|
|
732
|
+
value: input3.reuseId
|
|
733
|
+
}), "regular-bin" === input3.type || $report(_exceptionable2, {
|
|
734
|
+
path: _path2 + ".type",
|
|
735
|
+
expected: '"regular-bin"',
|
|
736
|
+
value: input3.type
|
|
737
|
+
}), void 0 === input3.mode || "discrete" === input3.mode || $report(_exceptionable2, {
|
|
738
|
+
path: _path2 + ".mode",
|
|
739
|
+
expected: '("discrete" | undefined)',
|
|
740
|
+
value: input3.mode
|
|
741
|
+
}), "number" === typeof input3.bin_size || $report(_exceptionable2, {
|
|
742
|
+
path: _path2 + ".bin_size",
|
|
743
|
+
expected: "number",
|
|
744
|
+
value: input3.bin_size
|
|
745
|
+
}), ("object" === typeof input3.first_bin && null !== input3.first_bin || $report(_exceptionable2, {
|
|
746
|
+
path: _path2 + ".first_bin",
|
|
747
|
+
expected: "(FullyBoundedBin | StartUnboundedBin)",
|
|
748
|
+
value: input3.first_bin
|
|
749
|
+
})) && $vu6(input3.first_bin, _path2 + ".first_bin", _exceptionable2) || $report(_exceptionable2, {
|
|
750
|
+
path: _path2 + ".first_bin",
|
|
751
|
+
expected: "(FullyBoundedBin | StartUnboundedBin)",
|
|
752
|
+
value: input3.first_bin
|
|
753
|
+
}), void 0 === input3.last_bin || ("object" === typeof input3.last_bin && null !== input3.last_bin || $report(_exceptionable2, {
|
|
754
|
+
path: _path2 + ".last_bin",
|
|
755
|
+
expected: "(FullyBoundedBin | StopUnboundedBin | undefined)",
|
|
756
|
+
value: input3.last_bin
|
|
757
|
+
})) && $vu7(input3.last_bin, _path2 + ".last_bin", _exceptionable2) || $report(_exceptionable2, {
|
|
758
|
+
path: _path2 + ".last_bin",
|
|
759
|
+
expected: "(FullyBoundedBin | StopUnboundedBin | undefined)",
|
|
760
|
+
value: input3.last_bin
|
|
761
|
+
}), void 0 === input3.label_offset || "number" === typeof input3.label_offset || $report(_exceptionable2, {
|
|
762
|
+
path: _path2 + ".label_offset",
|
|
763
|
+
expected: "(number | undefined)",
|
|
764
|
+
value: input3.label_offset
|
|
765
|
+
})].every((flag) => flag);
|
|
766
|
+
const $vo16 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
|
|
767
|
+
const value = input3[key];
|
|
768
|
+
if (void 0 === value)
|
|
769
|
+
return true;
|
|
770
|
+
if (RegExp(/(.*)/).test(key))
|
|
771
|
+
return "number" === typeof value || $report(_exceptionable2, {
|
|
772
|
+
path: _path2 + $join(key),
|
|
773
|
+
expected: "number",
|
|
774
|
+
value
|
|
775
|
+
});
|
|
776
|
+
return true;
|
|
777
|
+
}).every((flag) => flag)].every((flag) => flag);
|
|
778
|
+
const $vo17 = (input3, _path2, _exceptionable2 = true) => [true === input3.startunbounded || $report(_exceptionable2, {
|
|
779
|
+
path: _path2 + ".startunbounded",
|
|
780
|
+
expected: "true",
|
|
781
|
+
value: input3.startunbounded
|
|
782
|
+
}), void 0 === input3.startinclusive || false === input3.startinclusive || $report(_exceptionable2, {
|
|
783
|
+
path: _path2 + ".startinclusive",
|
|
784
|
+
expected: "(false | undefined)",
|
|
785
|
+
value: input3.startinclusive
|
|
786
|
+
}), "number" === typeof input3.stop || $report(_exceptionable2, {
|
|
787
|
+
path: _path2 + ".stop",
|
|
788
|
+
expected: "number",
|
|
789
|
+
value: input3.stop
|
|
790
|
+
}), void 0 === input3.stopinclusive || "boolean" === typeof input3.stopinclusive || $report(_exceptionable2, {
|
|
791
|
+
path: _path2 + ".stopinclusive",
|
|
792
|
+
expected: "(boolean | undefined)",
|
|
793
|
+
value: input3.stopinclusive
|
|
794
|
+
}), void 0 === input3.stopunbounded || false === input3.stopunbounded || $report(_exceptionable2, {
|
|
795
|
+
path: _path2 + ".stopunbounded",
|
|
796
|
+
expected: "(false | undefined)",
|
|
797
|
+
value: input3.stopunbounded
|
|
798
|
+
}), void 0 === input3.label || "string" === typeof input3.label || $report(_exceptionable2, {
|
|
799
|
+
path: _path2 + ".label",
|
|
800
|
+
expected: "(string | undefined)",
|
|
801
|
+
value: input3.label
|
|
802
|
+
})].every((flag) => flag);
|
|
803
|
+
const $vo18 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.startunbounded || false === input3.startunbounded || $report(_exceptionable2, {
|
|
804
|
+
path: _path2 + ".startunbounded",
|
|
805
|
+
expected: "(false | undefined)",
|
|
806
|
+
value: input3.startunbounded
|
|
807
|
+
}), void 0 === input3.startinclusive || "boolean" === typeof input3.startinclusive || $report(_exceptionable2, {
|
|
808
|
+
path: _path2 + ".startinclusive",
|
|
809
|
+
expected: "(boolean | undefined)",
|
|
810
|
+
value: input3.startinclusive
|
|
811
|
+
}), "number" === typeof input3.start || $report(_exceptionable2, {
|
|
812
|
+
path: _path2 + ".start",
|
|
813
|
+
expected: "number",
|
|
814
|
+
value: input3.start
|
|
815
|
+
}), "number" === typeof input3.stop || $report(_exceptionable2, {
|
|
816
|
+
path: _path2 + ".stop",
|
|
817
|
+
expected: "number",
|
|
818
|
+
value: input3.stop
|
|
819
|
+
}), void 0 === input3.stopinclusive || "boolean" === typeof input3.stopinclusive || $report(_exceptionable2, {
|
|
820
|
+
path: _path2 + ".stopinclusive",
|
|
821
|
+
expected: "(boolean | undefined)",
|
|
822
|
+
value: input3.stopinclusive
|
|
823
|
+
}), void 0 === input3.stopunbounded || false === input3.stopunbounded || $report(_exceptionable2, {
|
|
824
|
+
path: _path2 + ".stopunbounded",
|
|
825
|
+
expected: "(false | undefined)",
|
|
826
|
+
value: input3.stopunbounded
|
|
827
|
+
}), void 0 === input3.label || "string" === typeof input3.label || $report(_exceptionable2, {
|
|
828
|
+
path: _path2 + ".label",
|
|
829
|
+
expected: "(string | undefined)",
|
|
830
|
+
value: input3.label
|
|
831
|
+
})].every((flag) => flag);
|
|
832
|
+
const $vo19 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.start || $report(_exceptionable2, {
|
|
833
|
+
path: _path2 + ".start",
|
|
834
|
+
expected: "number",
|
|
835
|
+
value: input3.start
|
|
836
|
+
}), true === input3.stopunbounded || $report(_exceptionable2, {
|
|
837
|
+
path: _path2 + ".stopunbounded",
|
|
838
|
+
expected: "true",
|
|
839
|
+
value: input3.stopunbounded
|
|
840
|
+
}), void 0 === input3.startinclusive || "boolean" === typeof input3.startinclusive || $report(_exceptionable2, {
|
|
841
|
+
path: _path2 + ".startinclusive",
|
|
842
|
+
expected: "(boolean | undefined)",
|
|
843
|
+
value: input3.startinclusive
|
|
844
|
+
}), void 0 === input3.startunbounded || false === input3.startunbounded || $report(_exceptionable2, {
|
|
845
|
+
path: _path2 + ".startunbounded",
|
|
846
|
+
expected: "(false | undefined)",
|
|
847
|
+
value: input3.startunbounded
|
|
848
|
+
}), void 0 === input3.stopinclusive || false === input3.stopinclusive || $report(_exceptionable2, {
|
|
849
|
+
path: _path2 + ".stopinclusive",
|
|
850
|
+
expected: "(false | undefined)",
|
|
851
|
+
value: input3.stopinclusive
|
|
852
|
+
}), void 0 === input3.label || "string" === typeof input3.label || $report(_exceptionable2, {
|
|
853
|
+
path: _path2 + ".label",
|
|
854
|
+
expected: "(string | undefined)",
|
|
855
|
+
value: input3.label
|
|
856
|
+
})].every((flag) => flag);
|
|
857
|
+
const $vo20 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.hiddenValues || ("object" === typeof input3.hiddenValues && null !== input3.hiddenValues && false === Array.isArray(input3.hiddenValues) || $report(_exceptionable2, {
|
|
858
|
+
path: _path2 + ".hiddenValues",
|
|
859
|
+
expected: "(HiddenValues | undefined)",
|
|
860
|
+
value: input3.hiddenValues
|
|
861
|
+
})) && $vo16(input3.hiddenValues, _path2 + ".hiddenValues", _exceptionable2) || $report(_exceptionable2, {
|
|
862
|
+
path: _path2 + ".hiddenValues",
|
|
863
|
+
expected: "(HiddenValues | undefined)",
|
|
864
|
+
value: input3.hiddenValues
|
|
865
|
+
}), void 0 === input3.isAtomic || true === input3.isAtomic || $report(_exceptionable2, {
|
|
866
|
+
path: _path2 + ".isAtomic",
|
|
867
|
+
expected: "(true | undefined)",
|
|
868
|
+
value: input3.isAtomic
|
|
869
|
+
}), void 0 === input3.name || "string" === typeof input3.name || $report(_exceptionable2, {
|
|
870
|
+
path: _path2 + ".name",
|
|
871
|
+
expected: "(string | undefined)",
|
|
872
|
+
value: input3.name
|
|
873
|
+
}), void 0 === input3.reuseId || "string" === typeof input3.reuseId || $report(_exceptionable2, {
|
|
874
|
+
path: _path2 + ".reuseId",
|
|
875
|
+
expected: "(string | undefined)",
|
|
876
|
+
value: input3.reuseId
|
|
877
|
+
}), "custom-bin" === input3.type || $report(_exceptionable2, {
|
|
878
|
+
path: _path2 + ".type",
|
|
879
|
+
expected: '"custom-bin"',
|
|
880
|
+
value: input3.type
|
|
881
|
+
}), void 0 === input3.mode || "discrete" === input3.mode || "binary" === input3.mode || $report(_exceptionable2, {
|
|
882
|
+
path: _path2 + ".mode",
|
|
883
|
+
expected: '("binary" | "discrete" | undefined)',
|
|
884
|
+
value: input3.mode
|
|
885
|
+
}), (Array.isArray(input3.lst) || $report(_exceptionable2, {
|
|
886
|
+
path: _path2 + ".lst",
|
|
887
|
+
expected: "[NumericBin, ...NumericBin[]]",
|
|
888
|
+
value: input3.lst
|
|
889
|
+
})) && ([
|
|
890
|
+
("object" === typeof input3.lst[0] && null !== input3.lst[0] || $report(_exceptionable2, {
|
|
891
|
+
path: _path2 + ".lst[0]",
|
|
892
|
+
expected: "(FullyBoundedBin | StartUnboundedBin | StopUnboundedBin)",
|
|
893
|
+
value: input3.lst[0]
|
|
894
|
+
})) && $vu2(input3.lst[0], _path2 + ".lst[0]", _exceptionable2) || $report(_exceptionable2, {
|
|
895
|
+
path: _path2 + ".lst[0]",
|
|
896
|
+
expected: "(FullyBoundedBin | StartUnboundedBin | StopUnboundedBin)",
|
|
897
|
+
value: input3.lst[0]
|
|
898
|
+
})
|
|
899
|
+
].every((flag) => flag) && ((Array.isArray(input3.lst.slice(1)) || $report(_exceptionable2, {
|
|
900
|
+
path: _path2 + ".lst",
|
|
901
|
+
expected: "...(FullyBoundedBin | StartUnboundedBin | StopUnboundedBin)",
|
|
902
|
+
value: input3.lst.slice(1)
|
|
903
|
+
})) && input3.lst.slice(1).map((elem, _index12) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
904
|
+
path: _path2 + ".lst[" + (1 + _index12) + "]",
|
|
905
|
+
expected: "(FullyBoundedBin | StartUnboundedBin | StopUnboundedBin)",
|
|
906
|
+
value: elem
|
|
907
|
+
})) && $vu2(elem, _path2 + ".lst[" + (1 + _index12) + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
908
|
+
path: _path2 + ".lst[" + (1 + _index12) + "]",
|
|
909
|
+
expected: "(FullyBoundedBin | StartUnboundedBin | StopUnboundedBin)",
|
|
910
|
+
value: elem
|
|
911
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
912
|
+
path: _path2 + ".lst",
|
|
913
|
+
expected: "...(FullyBoundedBin | StartUnboundedBin | StopUnboundedBin)",
|
|
914
|
+
value: input3.lst.slice(1)
|
|
915
|
+
}))) || $report(_exceptionable2, {
|
|
916
|
+
path: _path2 + ".lst",
|
|
917
|
+
expected: "[NumericBin, ...NumericBin[]]",
|
|
918
|
+
value: input3.lst
|
|
919
|
+
}), void 0 === input3.preferredBins || "median" === input3.preferredBins || $report(_exceptionable2, {
|
|
920
|
+
path: _path2 + ".preferredBins",
|
|
921
|
+
expected: '("median" | undefined)',
|
|
922
|
+
value: input3.preferredBins
|
|
923
|
+
})].every((flag) => flag);
|
|
924
|
+
const $vo21 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.key || $report(_exceptionable2, {
|
|
925
|
+
path: _path2 + ".key",
|
|
926
|
+
expected: "string",
|
|
927
|
+
value: input3.key
|
|
928
|
+
}), "number" === typeof input3.value || $report(_exceptionable2, {
|
|
929
|
+
path: _path2 + ".value",
|
|
930
|
+
expected: "number",
|
|
931
|
+
value: input3.value
|
|
932
|
+
}), true === input3.uncomputable || $report(_exceptionable2, {
|
|
933
|
+
path: _path2 + ".uncomputable",
|
|
934
|
+
expected: "true",
|
|
935
|
+
value: input3.uncomputable
|
|
936
|
+
}), void 0 === input3.label || "string" === typeof input3.label || $report(_exceptionable2, {
|
|
937
|
+
path: _path2 + ".label",
|
|
938
|
+
expected: "(string | undefined)",
|
|
939
|
+
value: input3.label
|
|
940
|
+
})].every((flag) => flag);
|
|
941
|
+
const $vo22 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.join || "string" === typeof input3.join || $report(_exceptionable2, {
|
|
942
|
+
path: _path2 + ".join",
|
|
943
|
+
expected: "(string | undefined)",
|
|
944
|
+
value: input3.join
|
|
945
|
+
}), void 0 === input3.isnot || "boolean" === typeof input3.isnot || $report(_exceptionable2, {
|
|
946
|
+
path: _path2 + ".isnot",
|
|
947
|
+
expected: "(boolean | undefined)",
|
|
948
|
+
value: input3.isnot
|
|
949
|
+
}), ("object" === typeof input3.term && null !== input3.term || $report(_exceptionable2, {
|
|
950
|
+
path: _path2 + ".term",
|
|
951
|
+
expected: "ConditionTerm",
|
|
952
|
+
value: input3.term
|
|
953
|
+
})) && $vo23(input3.term, _path2 + ".term", _exceptionable2) || $report(_exceptionable2, {
|
|
954
|
+
path: _path2 + ".term",
|
|
955
|
+
expected: "ConditionTerm",
|
|
956
|
+
value: input3.term
|
|
957
|
+
}), void 0 === input3.value_by_max_grade || "boolean" === typeof input3.value_by_max_grade || $report(_exceptionable2, {
|
|
958
|
+
path: _path2 + ".value_by_max_grade",
|
|
959
|
+
expected: "(boolean | undefined)",
|
|
960
|
+
value: input3.value_by_max_grade
|
|
961
|
+
}), void 0 === input3.value_by_most_recent || "boolean" === typeof input3.value_by_most_recent || $report(_exceptionable2, {
|
|
962
|
+
path: _path2 + ".value_by_most_recent",
|
|
963
|
+
expected: "(boolean | undefined)",
|
|
964
|
+
value: input3.value_by_most_recent
|
|
965
|
+
}), void 0 === input3.value_by_computable_grade || "boolean" === typeof input3.value_by_computable_grade || $report(_exceptionable2, {
|
|
966
|
+
path: _path2 + ".value_by_computable_grade",
|
|
967
|
+
expected: "(boolean | undefined)",
|
|
968
|
+
value: input3.value_by_computable_grade
|
|
969
|
+
}), void 0 === input3.grade_and_child || (Array.isArray(input3.grade_and_child) || $report(_exceptionable2, {
|
|
970
|
+
path: _path2 + ".grade_and_child",
|
|
971
|
+
expected: "(Array<GradeAndChildEntry> | undefined)",
|
|
972
|
+
value: input3.grade_and_child
|
|
973
|
+
})) && input3.grade_and_child.map((elem, _index13) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
974
|
+
path: _path2 + ".grade_and_child[" + _index13 + "]",
|
|
975
|
+
expected: "GradeAndChildEntry",
|
|
976
|
+
value: elem
|
|
977
|
+
})) && $vo24(elem, _path2 + ".grade_and_child[" + _index13 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
978
|
+
path: _path2 + ".grade_and_child[" + _index13 + "]",
|
|
979
|
+
expected: "GradeAndChildEntry",
|
|
980
|
+
value: elem
|
|
981
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
982
|
+
path: _path2 + ".grade_and_child",
|
|
983
|
+
expected: "(Array<GradeAndChildEntry> | undefined)",
|
|
984
|
+
value: input3.grade_and_child
|
|
985
|
+
})].every((flag) => flag);
|
|
986
|
+
const $vo23 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.id || $report(_exceptionable2, {
|
|
987
|
+
path: _path2 + ".id",
|
|
988
|
+
expected: "string",
|
|
989
|
+
value: input3.id
|
|
990
|
+
}), "string" === typeof input3.name || $report(_exceptionable2, {
|
|
991
|
+
path: _path2 + ".name",
|
|
992
|
+
expected: "string",
|
|
993
|
+
value: input3.name
|
|
994
|
+
}), "condition" === input3.type || $report(_exceptionable2, {
|
|
995
|
+
path: _path2 + ".type",
|
|
996
|
+
expected: '"condition"',
|
|
997
|
+
value: input3.type
|
|
998
|
+
}), void 0 === input3.child_types || (Array.isArray(input3.child_types) || $report(_exceptionable2, {
|
|
999
|
+
path: _path2 + ".child_types",
|
|
1000
|
+
expected: "(Array<string> | undefined)",
|
|
1001
|
+
value: input3.child_types
|
|
1002
|
+
})) && input3.child_types.map((elem, _index14) => "string" === typeof elem || $report(_exceptionable2, {
|
|
1003
|
+
path: _path2 + ".child_types[" + _index14 + "]",
|
|
1004
|
+
expected: "string",
|
|
1005
|
+
value: elem
|
|
1006
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
1007
|
+
path: _path2 + ".child_types",
|
|
1008
|
+
expected: "(Array<string> | undefined)",
|
|
1009
|
+
value: input3.child_types
|
|
1010
|
+
}), void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail || $report(_exceptionable2, {
|
|
1011
|
+
path: _path2 + ".hashtmldetail",
|
|
1012
|
+
expected: "(boolean | undefined)",
|
|
1013
|
+
value: input3.hashtmldetail
|
|
1014
|
+
}), void 0 === input3.included_types || (Array.isArray(input3.included_types) || $report(_exceptionable2, {
|
|
1015
|
+
path: _path2 + ".included_types",
|
|
1016
|
+
expected: "(Array<string> | undefined)",
|
|
1017
|
+
value: input3.included_types
|
|
1018
|
+
})) && input3.included_types.map((elem, _index15) => "string" === typeof elem || $report(_exceptionable2, {
|
|
1019
|
+
path: _path2 + ".included_types[" + _index15 + "]",
|
|
1020
|
+
expected: "string",
|
|
1021
|
+
value: elem
|
|
1022
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
1023
|
+
path: _path2 + ".included_types",
|
|
1024
|
+
expected: "(Array<string> | undefined)",
|
|
1025
|
+
value: input3.included_types
|
|
1026
|
+
}), void 0 === input3.isleaf || "boolean" === typeof input3.isleaf || $report(_exceptionable2, {
|
|
1027
|
+
path: _path2 + ".isleaf",
|
|
1028
|
+
expected: "(boolean | undefined)",
|
|
1029
|
+
value: input3.isleaf
|
|
1030
|
+
}), void 0 === input3.values || ("object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) || $report(_exceptionable2, {
|
|
1031
|
+
path: _path2 + ".values",
|
|
1032
|
+
expected: "(TermValues | undefined)",
|
|
1033
|
+
value: input3.values
|
|
1034
|
+
})) && $vo4(input3.values, _path2 + ".values", _exceptionable2) || $report(_exceptionable2, {
|
|
1035
|
+
path: _path2 + ".values",
|
|
1036
|
+
expected: "(TermValues | undefined)",
|
|
1037
|
+
value: input3.values
|
|
1038
|
+
})].every((flag) => flag);
|
|
1039
|
+
const $vo24 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.grade || $report(_exceptionable2, {
|
|
1040
|
+
path: _path2 + ".grade",
|
|
1041
|
+
expected: "number",
|
|
1042
|
+
value: input3.grade
|
|
1043
|
+
}), "string" === typeof input3.grade_label || $report(_exceptionable2, {
|
|
1044
|
+
path: _path2 + ".grade_label",
|
|
1045
|
+
expected: "string",
|
|
1046
|
+
value: input3.grade_label
|
|
1047
|
+
}), void 0 === input3.child_id || "string" === typeof input3.child_id || $report(_exceptionable2, {
|
|
1048
|
+
path: _path2 + ".child_id",
|
|
1049
|
+
expected: "(string | undefined)",
|
|
1050
|
+
value: input3.child_id
|
|
1051
|
+
}), "string" === typeof input3.child_label || $report(_exceptionable2, {
|
|
1052
|
+
path: _path2 + ".child_label",
|
|
1053
|
+
expected: "string",
|
|
1054
|
+
value: input3.child_label
|
|
1055
|
+
})].every((flag) => flag);
|
|
1056
|
+
const $vo25 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.join || "string" === typeof input3.join || $report(_exceptionable2, {
|
|
1057
|
+
path: _path2 + ".join",
|
|
1058
|
+
expected: "(string | undefined)",
|
|
1059
|
+
value: input3.join
|
|
1060
|
+
}), void 0 === input3.isnot || "boolean" === typeof input3.isnot || $report(_exceptionable2, {
|
|
1061
|
+
path: _path2 + ".isnot",
|
|
1062
|
+
expected: "(boolean | undefined)",
|
|
1063
|
+
value: input3.isnot
|
|
1064
|
+
}), ("object" === typeof input3.term && null !== input3.term || $report(_exceptionable2, {
|
|
1065
|
+
path: _path2 + ".term",
|
|
1066
|
+
expected: "(GeneVariantCoordTerm | GeneVariantGeneTerm)",
|
|
1067
|
+
value: input3.term
|
|
1068
|
+
})) && $vu8(input3.term, _path2 + ".term", _exceptionable2) || $report(_exceptionable2, {
|
|
1069
|
+
path: _path2 + ".term",
|
|
1070
|
+
expected: "(GeneVariantCoordTerm | GeneVariantGeneTerm)",
|
|
1071
|
+
value: input3.term
|
|
1072
|
+
}), (Array.isArray(input3.values) || $report(_exceptionable2, {
|
|
1073
|
+
path: _path2 + ".values",
|
|
1074
|
+
expected: "Array<GeneVariantTvsValue>",
|
|
1075
|
+
value: input3.values
|
|
1076
|
+
})) && input3.values.map((elem, _index16) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
1077
|
+
path: _path2 + ".values[" + _index16 + "]",
|
|
1078
|
+
expected: "(CNVTvsValue | FusionTvsValue | SNVIndelTvsValue | SVTvsValue)",
|
|
1079
|
+
value: elem
|
|
1080
|
+
})) && $vu3(elem, _path2 + ".values[" + _index16 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
1081
|
+
path: _path2 + ".values[" + _index16 + "]",
|
|
1082
|
+
expected: "(CNVTvsValue | FusionTvsValue | SNVIndelTvsValue | SVTvsValue)",
|
|
1083
|
+
value: elem
|
|
1084
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
1085
|
+
path: _path2 + ".values",
|
|
1086
|
+
expected: "Array<GeneVariantTvsValue>",
|
|
1087
|
+
value: input3.values
|
|
1088
|
+
})].every((flag) => flag);
|
|
1089
|
+
const $vo26 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.id || $report(_exceptionable2, {
|
|
1090
|
+
path: _path2 + ".id",
|
|
1091
|
+
expected: "string",
|
|
1092
|
+
value: input3.id
|
|
1093
|
+
}), "string" === typeof input3.name || $report(_exceptionable2, {
|
|
1094
|
+
path: _path2 + ".name",
|
|
1095
|
+
expected: "string",
|
|
1096
|
+
value: input3.name
|
|
1097
|
+
}), "geneVariant" === input3.type || $report(_exceptionable2, {
|
|
1098
|
+
path: _path2 + ".type",
|
|
1099
|
+
expected: '"geneVariant"',
|
|
1100
|
+
value: input3.type
|
|
1101
|
+
}), void 0 === input3.child_types || (Array.isArray(input3.child_types) || $report(_exceptionable2, {
|
|
1102
|
+
path: _path2 + ".child_types",
|
|
1103
|
+
expected: "(Array<string> | undefined)",
|
|
1104
|
+
value: input3.child_types
|
|
1105
|
+
})) && input3.child_types.map((elem, _index17) => "string" === typeof elem || $report(_exceptionable2, {
|
|
1106
|
+
path: _path2 + ".child_types[" + _index17 + "]",
|
|
1107
|
+
expected: "string",
|
|
1108
|
+
value: elem
|
|
1109
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
1110
|
+
path: _path2 + ".child_types",
|
|
1111
|
+
expected: "(Array<string> | undefined)",
|
|
1112
|
+
value: input3.child_types
|
|
1113
|
+
}), void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail || $report(_exceptionable2, {
|
|
1114
|
+
path: _path2 + ".hashtmldetail",
|
|
1115
|
+
expected: "(boolean | undefined)",
|
|
1116
|
+
value: input3.hashtmldetail
|
|
1117
|
+
}), void 0 === input3.included_types || (Array.isArray(input3.included_types) || $report(_exceptionable2, {
|
|
1118
|
+
path: _path2 + ".included_types",
|
|
1119
|
+
expected: "(Array<string> | undefined)",
|
|
1120
|
+
value: input3.included_types
|
|
1121
|
+
})) && input3.included_types.map((elem, _index18) => "string" === typeof elem || $report(_exceptionable2, {
|
|
1122
|
+
path: _path2 + ".included_types[" + _index18 + "]",
|
|
1123
|
+
expected: "string",
|
|
1124
|
+
value: elem
|
|
1125
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
1126
|
+
path: _path2 + ".included_types",
|
|
1127
|
+
expected: "(Array<string> | undefined)",
|
|
1128
|
+
value: input3.included_types
|
|
1129
|
+
}), void 0 === input3.isleaf || "boolean" === typeof input3.isleaf || $report(_exceptionable2, {
|
|
1130
|
+
path: _path2 + ".isleaf",
|
|
1131
|
+
expected: "(boolean | undefined)",
|
|
1132
|
+
value: input3.isleaf
|
|
1133
|
+
}), void 0 === input3.values || ("object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) || $report(_exceptionable2, {
|
|
1134
|
+
path: _path2 + ".values",
|
|
1135
|
+
expected: "(TermValues | undefined)",
|
|
1136
|
+
value: input3.values
|
|
1137
|
+
})) && $vo4(input3.values, _path2 + ".values", _exceptionable2) || $report(_exceptionable2, {
|
|
1138
|
+
path: _path2 + ".values",
|
|
1139
|
+
expected: "(TermValues | undefined)",
|
|
1140
|
+
value: input3.values
|
|
1141
|
+
}), ("object" === typeof input3.groupsetting && null !== input3.groupsetting || $report(_exceptionable2, {
|
|
1142
|
+
path: _path2 + ".groupsetting",
|
|
1143
|
+
expected: "EnabledTermGroupSetting",
|
|
1144
|
+
value: input3.groupsetting
|
|
1145
|
+
})) && $vo6(input3.groupsetting, _path2 + ".groupsetting", _exceptionable2) || $report(_exceptionable2, {
|
|
1146
|
+
path: _path2 + ".groupsetting",
|
|
1147
|
+
expected: "EnabledTermGroupSetting",
|
|
1148
|
+
value: input3.groupsetting
|
|
1149
|
+
}), "gene" === input3.kind || $report(_exceptionable2, {
|
|
1150
|
+
path: _path2 + ".kind",
|
|
1151
|
+
expected: '"gene"',
|
|
1152
|
+
value: input3.kind
|
|
1153
|
+
}), "string" === typeof input3.gene || $report(_exceptionable2, {
|
|
1154
|
+
path: _path2 + ".gene",
|
|
1155
|
+
expected: "string",
|
|
1156
|
+
value: input3.gene
|
|
1157
|
+
}), void 0 === input3.chr || "string" === typeof input3.chr || $report(_exceptionable2, {
|
|
1158
|
+
path: _path2 + ".chr",
|
|
1159
|
+
expected: "(string | undefined)",
|
|
1160
|
+
value: input3.chr
|
|
1161
|
+
}), void 0 === input3.start || "number" === typeof input3.start || $report(_exceptionable2, {
|
|
1162
|
+
path: _path2 + ".start",
|
|
1163
|
+
expected: "(number | undefined)",
|
|
1164
|
+
value: input3.start
|
|
1165
|
+
}), void 0 === input3.stop || "number" === typeof input3.stop || $report(_exceptionable2, {
|
|
1166
|
+
path: _path2 + ".stop",
|
|
1167
|
+
expected: "(number | undefined)",
|
|
1168
|
+
value: input3.stop
|
|
1169
|
+
})].every((flag) => flag);
|
|
1170
|
+
const $vo27 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.id || $report(_exceptionable2, {
|
|
1171
|
+
path: _path2 + ".id",
|
|
1172
|
+
expected: "string",
|
|
1173
|
+
value: input3.id
|
|
1174
|
+
}), "string" === typeof input3.name || $report(_exceptionable2, {
|
|
1175
|
+
path: _path2 + ".name",
|
|
1176
|
+
expected: "string",
|
|
1177
|
+
value: input3.name
|
|
1178
|
+
}), "geneVariant" === input3.type || $report(_exceptionable2, {
|
|
1179
|
+
path: _path2 + ".type",
|
|
1180
|
+
expected: '"geneVariant"',
|
|
1181
|
+
value: input3.type
|
|
1182
|
+
}), void 0 === input3.child_types || (Array.isArray(input3.child_types) || $report(_exceptionable2, {
|
|
1183
|
+
path: _path2 + ".child_types",
|
|
1184
|
+
expected: "(Array<string> | undefined)",
|
|
1185
|
+
value: input3.child_types
|
|
1186
|
+
})) && input3.child_types.map((elem, _index19) => "string" === typeof elem || $report(_exceptionable2, {
|
|
1187
|
+
path: _path2 + ".child_types[" + _index19 + "]",
|
|
1188
|
+
expected: "string",
|
|
1189
|
+
value: elem
|
|
1190
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
1191
|
+
path: _path2 + ".child_types",
|
|
1192
|
+
expected: "(Array<string> | undefined)",
|
|
1193
|
+
value: input3.child_types
|
|
1194
|
+
}), void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail || $report(_exceptionable2, {
|
|
1195
|
+
path: _path2 + ".hashtmldetail",
|
|
1196
|
+
expected: "(boolean | undefined)",
|
|
1197
|
+
value: input3.hashtmldetail
|
|
1198
|
+
}), void 0 === input3.included_types || (Array.isArray(input3.included_types) || $report(_exceptionable2, {
|
|
1199
|
+
path: _path2 + ".included_types",
|
|
1200
|
+
expected: "(Array<string> | undefined)",
|
|
1201
|
+
value: input3.included_types
|
|
1202
|
+
})) && input3.included_types.map((elem, _index20) => "string" === typeof elem || $report(_exceptionable2, {
|
|
1203
|
+
path: _path2 + ".included_types[" + _index20 + "]",
|
|
1204
|
+
expected: "string",
|
|
1205
|
+
value: elem
|
|
1206
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
1207
|
+
path: _path2 + ".included_types",
|
|
1208
|
+
expected: "(Array<string> | undefined)",
|
|
1209
|
+
value: input3.included_types
|
|
1210
|
+
}), void 0 === input3.isleaf || "boolean" === typeof input3.isleaf || $report(_exceptionable2, {
|
|
1211
|
+
path: _path2 + ".isleaf",
|
|
1212
|
+
expected: "(boolean | undefined)",
|
|
1213
|
+
value: input3.isleaf
|
|
1214
|
+
}), void 0 === input3.values || ("object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) || $report(_exceptionable2, {
|
|
1215
|
+
path: _path2 + ".values",
|
|
1216
|
+
expected: "(TermValues | undefined)",
|
|
1217
|
+
value: input3.values
|
|
1218
|
+
})) && $vo4(input3.values, _path2 + ".values", _exceptionable2) || $report(_exceptionable2, {
|
|
1219
|
+
path: _path2 + ".values",
|
|
1220
|
+
expected: "(TermValues | undefined)",
|
|
1221
|
+
value: input3.values
|
|
1222
|
+
}), ("object" === typeof input3.groupsetting && null !== input3.groupsetting || $report(_exceptionable2, {
|
|
1223
|
+
path: _path2 + ".groupsetting",
|
|
1224
|
+
expected: "EnabledTermGroupSetting",
|
|
1225
|
+
value: input3.groupsetting
|
|
1226
|
+
})) && $vo6(input3.groupsetting, _path2 + ".groupsetting", _exceptionable2) || $report(_exceptionable2, {
|
|
1227
|
+
path: _path2 + ".groupsetting",
|
|
1228
|
+
expected: "EnabledTermGroupSetting",
|
|
1229
|
+
value: input3.groupsetting
|
|
1230
|
+
}), "coord" === input3.kind || $report(_exceptionable2, {
|
|
1231
|
+
path: _path2 + ".kind",
|
|
1232
|
+
expected: '"coord"',
|
|
1233
|
+
value: input3.kind
|
|
1234
|
+
}), "string" === typeof input3.chr || $report(_exceptionable2, {
|
|
1235
|
+
path: _path2 + ".chr",
|
|
1236
|
+
expected: "string",
|
|
1237
|
+
value: input3.chr
|
|
1238
|
+
}), "number" === typeof input3.start || $report(_exceptionable2, {
|
|
1239
|
+
path: _path2 + ".start",
|
|
1240
|
+
expected: "number",
|
|
1241
|
+
value: input3.start
|
|
1242
|
+
}), "number" === typeof input3.stop || $report(_exceptionable2, {
|
|
1243
|
+
path: _path2 + ".stop",
|
|
1244
|
+
expected: "number",
|
|
1245
|
+
value: input3.stop
|
|
1246
|
+
})].every((flag) => flag);
|
|
1247
|
+
const $vo28 = (input3, _path2, _exceptionable2 = true) => [1 === input3.dt || $report(_exceptionable2, {
|
|
1248
|
+
path: _path2 + ".dt",
|
|
1249
|
+
expected: "1",
|
|
1250
|
+
value: input3.dt
|
|
1251
|
+
}), (Array.isArray(input3.mclassLst) || $report(_exceptionable2, {
|
|
1252
|
+
path: _path2 + ".mclassLst",
|
|
1253
|
+
expected: "Array<SNVIndelClasses>",
|
|
1254
|
+
value: input3.mclassLst
|
|
1255
|
+
})) && input3.mclassLst.map((elem, _index21) => "M" === elem || "E" === elem || "F" === elem || "N" === elem || "S" === elem || "D" === elem || "I" === elem || "P" === elem || "L" === elem || "Intron" === elem || "Blank" === elem || "WT" === elem || "ITD" === elem || "DEL" === elem || "NLOSS" === elem || "CLOSS" === elem || "Utr3" === elem || "Utr5" === elem || "X" === elem || "noncoding" === elem || $report(_exceptionable2, {
|
|
1256
|
+
path: _path2 + ".mclassLst[" + _index21 + "]",
|
|
1257
|
+
expected: '("Blank" | "CLOSS" | "D" | "DEL" | "E" | "F" | "I" | "ITD" | "Intron" | "L" | "M" | "N" | "NLOSS" | "P" | "S" | "Utr3" | "Utr5" | "WT" | "X" | "noncoding")',
|
|
1258
|
+
value: elem
|
|
1259
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
1260
|
+
path: _path2 + ".mclassLst",
|
|
1261
|
+
expected: "Array<SNVIndelClasses>",
|
|
1262
|
+
value: input3.mclassLst
|
|
1263
|
+
}), (Array.isArray(input3.mclassExcludeLst) || $report(_exceptionable2, {
|
|
1264
|
+
path: _path2 + ".mclassExcludeLst",
|
|
1265
|
+
expected: "Array<SNVIndelClasses>",
|
|
1266
|
+
value: input3.mclassExcludeLst
|
|
1267
|
+
})) && input3.mclassExcludeLst.map((elem, _index22) => "M" === elem || "E" === elem || "F" === elem || "N" === elem || "S" === elem || "D" === elem || "I" === elem || "P" === elem || "L" === elem || "Intron" === elem || "Blank" === elem || "WT" === elem || "ITD" === elem || "DEL" === elem || "NLOSS" === elem || "CLOSS" === elem || "Utr3" === elem || "Utr5" === elem || "X" === elem || "noncoding" === elem || $report(_exceptionable2, {
|
|
1268
|
+
path: _path2 + ".mclassExcludeLst[" + _index22 + "]",
|
|
1269
|
+
expected: '("Blank" | "CLOSS" | "D" | "DEL" | "E" | "F" | "I" | "ITD" | "Intron" | "L" | "M" | "N" | "NLOSS" | "P" | "S" | "Utr3" | "Utr5" | "WT" | "X" | "noncoding")',
|
|
1270
|
+
value: elem
|
|
1271
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
1272
|
+
path: _path2 + ".mclassExcludeLst",
|
|
1273
|
+
expected: "Array<SNVIndelClasses>",
|
|
1274
|
+
value: input3.mclassExcludeLst
|
|
1275
|
+
}), void 0 === input3.origin || "somatic" === input3.origin || "germline" === input3.origin || $report(_exceptionable2, {
|
|
1276
|
+
path: _path2 + ".origin",
|
|
1277
|
+
expected: '("germline" | "somatic" | undefined)',
|
|
1278
|
+
value: input3.origin
|
|
1279
|
+
})].every((flag) => flag);
|
|
1280
|
+
const $vo29 = (input3, _path2, _exceptionable2 = true) => [4 === input3.dt || $report(_exceptionable2, {
|
|
1281
|
+
path: _path2 + ".dt",
|
|
1282
|
+
expected: "4",
|
|
1283
|
+
value: input3.dt
|
|
1284
|
+
}), (Array.isArray(input3.mclassLst) || $report(_exceptionable2, {
|
|
1285
|
+
path: _path2 + ".mclassLst",
|
|
1286
|
+
expected: "Array<CNVClasses>",
|
|
1287
|
+
value: input3.mclassLst
|
|
1288
|
+
})) && input3.mclassLst.map((elem, _index23) => "Blank" === elem || "WT" === elem || "CNV_amp" === elem || "CNV_losss" === elem || "CNV_loh" === elem || $report(_exceptionable2, {
|
|
1289
|
+
path: _path2 + ".mclassLst[" + _index23 + "]",
|
|
1290
|
+
expected: '("Blank" | "CNV_amp" | "CNV_loh" | "CNV_losss" | "WT")',
|
|
1291
|
+
value: elem
|
|
1292
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
1293
|
+
path: _path2 + ".mclassLst",
|
|
1294
|
+
expected: "Array<CNVClasses>",
|
|
1295
|
+
value: input3.mclassLst
|
|
1296
|
+
}), (Array.isArray(input3.mclassExcludeLst) || $report(_exceptionable2, {
|
|
1297
|
+
path: _path2 + ".mclassExcludeLst",
|
|
1298
|
+
expected: "Array<CNVClasses>",
|
|
1299
|
+
value: input3.mclassExcludeLst
|
|
1300
|
+
})) && input3.mclassExcludeLst.map((elem, _index24) => "Blank" === elem || "WT" === elem || "CNV_amp" === elem || "CNV_losss" === elem || "CNV_loh" === elem || $report(_exceptionable2, {
|
|
1301
|
+
path: _path2 + ".mclassExcludeLst[" + _index24 + "]",
|
|
1302
|
+
expected: '("Blank" | "CNV_amp" | "CNV_loh" | "CNV_losss" | "WT")',
|
|
1303
|
+
value: elem
|
|
1304
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
1305
|
+
path: _path2 + ".mclassExcludeLst",
|
|
1306
|
+
expected: "Array<CNVClasses>",
|
|
1307
|
+
value: input3.mclassExcludeLst
|
|
1308
|
+
}), void 0 === input3.origin || "somatic" === input3.origin || "germline" === input3.origin || $report(_exceptionable2, {
|
|
1309
|
+
path: _path2 + ".origin",
|
|
1310
|
+
expected: '("germline" | "somatic" | undefined)',
|
|
1311
|
+
value: input3.origin
|
|
1312
|
+
})].every((flag) => flag);
|
|
1313
|
+
const $vo30 = (input3, _path2, _exceptionable2 = true) => [5 === input3.dt || $report(_exceptionable2, {
|
|
1314
|
+
path: _path2 + ".dt",
|
|
1315
|
+
expected: "5",
|
|
1316
|
+
value: input3.dt
|
|
1317
|
+
}), (Array.isArray(input3.mclassLst) || $report(_exceptionable2, {
|
|
1318
|
+
path: _path2 + ".mclassLst",
|
|
1319
|
+
expected: "Array<SVClasses>",
|
|
1320
|
+
value: input3.mclassLst
|
|
1321
|
+
})) && input3.mclassLst.map((elem, _index25) => "Blank" === elem || "WT" === elem || "SV" === elem || $report(_exceptionable2, {
|
|
1322
|
+
path: _path2 + ".mclassLst[" + _index25 + "]",
|
|
1323
|
+
expected: '("Blank" | "SV" | "WT")',
|
|
1324
|
+
value: elem
|
|
1325
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
1326
|
+
path: _path2 + ".mclassLst",
|
|
1327
|
+
expected: "Array<SVClasses>",
|
|
1328
|
+
value: input3.mclassLst
|
|
1329
|
+
}), (Array.isArray(input3.mclassExcludeLst) || $report(_exceptionable2, {
|
|
1330
|
+
path: _path2 + ".mclassExcludeLst",
|
|
1331
|
+
expected: "Array<SVClasses>",
|
|
1332
|
+
value: input3.mclassExcludeLst
|
|
1333
|
+
})) && input3.mclassExcludeLst.map((elem, _index26) => "Blank" === elem || "WT" === elem || "SV" === elem || $report(_exceptionable2, {
|
|
1334
|
+
path: _path2 + ".mclassExcludeLst[" + _index26 + "]",
|
|
1335
|
+
expected: '("Blank" | "SV" | "WT")',
|
|
1336
|
+
value: elem
|
|
1337
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
1338
|
+
path: _path2 + ".mclassExcludeLst",
|
|
1339
|
+
expected: "Array<SVClasses>",
|
|
1340
|
+
value: input3.mclassExcludeLst
|
|
1341
|
+
}), void 0 === input3.origin || "somatic" === input3.origin || "germline" === input3.origin || $report(_exceptionable2, {
|
|
1342
|
+
path: _path2 + ".origin",
|
|
1343
|
+
expected: '("germline" | "somatic" | undefined)',
|
|
1344
|
+
value: input3.origin
|
|
1345
|
+
})].every((flag) => flag);
|
|
1346
|
+
const $vo31 = (input3, _path2, _exceptionable2 = true) => [2 === input3.dt || $report(_exceptionable2, {
|
|
1347
|
+
path: _path2 + ".dt",
|
|
1348
|
+
expected: "2",
|
|
1349
|
+
value: input3.dt
|
|
1350
|
+
}), (Array.isArray(input3.mclassLst) || $report(_exceptionable2, {
|
|
1351
|
+
path: _path2 + ".mclassLst",
|
|
1352
|
+
expected: "Array<FusionRNAClasses>",
|
|
1353
|
+
value: input3.mclassLst
|
|
1354
|
+
})) && input3.mclassLst.map((elem, _index27) => "Blank" === elem || "WT" === elem || "Fuserna" === elem || $report(_exceptionable2, {
|
|
1355
|
+
path: _path2 + ".mclassLst[" + _index27 + "]",
|
|
1356
|
+
expected: '("Blank" | "Fuserna" | "WT")',
|
|
1357
|
+
value: elem
|
|
1358
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
1359
|
+
path: _path2 + ".mclassLst",
|
|
1360
|
+
expected: "Array<FusionRNAClasses>",
|
|
1361
|
+
value: input3.mclassLst
|
|
1362
|
+
}), (Array.isArray(input3.mclassExcludeLst) || $report(_exceptionable2, {
|
|
1363
|
+
path: _path2 + ".mclassExcludeLst",
|
|
1364
|
+
expected: "Array<FusionRNAClasses>",
|
|
1365
|
+
value: input3.mclassExcludeLst
|
|
1366
|
+
})) && input3.mclassExcludeLst.map((elem, _index28) => "Blank" === elem || "WT" === elem || "Fuserna" === elem || $report(_exceptionable2, {
|
|
1367
|
+
path: _path2 + ".mclassExcludeLst[" + _index28 + "]",
|
|
1368
|
+
expected: '("Blank" | "Fuserna" | "WT")',
|
|
1369
|
+
value: elem
|
|
1370
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
1371
|
+
path: _path2 + ".mclassExcludeLst",
|
|
1372
|
+
expected: "Array<FusionRNAClasses>",
|
|
1373
|
+
value: input3.mclassExcludeLst
|
|
1374
|
+
}), void 0 === input3.origin || "somatic" === input3.origin || "germline" === input3.origin || $report(_exceptionable2, {
|
|
1375
|
+
path: _path2 + ".origin",
|
|
1376
|
+
expected: '("germline" | "somatic" | undefined)',
|
|
1377
|
+
value: input3.origin
|
|
1378
|
+
})].every((flag) => flag);
|
|
1379
|
+
const $vu0 = (input3, _path2, _exceptionable2 = true) => (() => {
|
|
1380
|
+
if (void 0 !== input3.type)
|
|
1381
|
+
return $vo1(input3, _path2, _exceptionable2);
|
|
1382
|
+
if (void 0 !== input3.ranges)
|
|
1383
|
+
return $vo12(input3, _path2, _exceptionable2);
|
|
1384
|
+
return $vo2(input3, _path2, false) || $vo22(input3, _path2, false) || $vo25(input3, _path2, false);
|
|
1385
|
+
})();
|
|
1386
|
+
const $vu1 = (input3, _path2, _exceptionable2 = true) => (() => {
|
|
1387
|
+
if ("string" === typeof input3.type)
|
|
1388
|
+
return $vo8(input3, _path2, _exceptionable2);
|
|
1389
|
+
if ("filter" === input3.type)
|
|
1390
|
+
return $vo10(input3, _path2, _exceptionable2);
|
|
1391
|
+
return $report(_exceptionable2, {
|
|
1392
|
+
path: _path2,
|
|
1393
|
+
expected: "(ValuesGroup | FilterGroup)",
|
|
1394
|
+
value: input3
|
|
1395
|
+
});
|
|
1396
|
+
})();
|
|
1397
|
+
const $vu2 = (input3, _path2, _exceptionable2 = true) => (() => {
|
|
1398
|
+
if (true === input3.startunbounded)
|
|
1399
|
+
return $vo17(input3, _path2, _exceptionable2);
|
|
1400
|
+
if (true === input3.stopunbounded)
|
|
1401
|
+
return $vo19(input3, _path2, _exceptionable2);
|
|
1402
|
+
return $vo18(input3, _path2, _exceptionable2);
|
|
1403
|
+
})();
|
|
1404
|
+
const $vu3 = (input3, _path2, _exceptionable2 = true) => (() => {
|
|
1405
|
+
if (2 === input3.dt)
|
|
1406
|
+
return $vo31(input3, _path2, _exceptionable2);
|
|
1407
|
+
if (5 === input3.dt)
|
|
1408
|
+
return $vo30(input3, _path2, _exceptionable2);
|
|
1409
|
+
if (4 === input3.dt)
|
|
1410
|
+
return $vo29(input3, _path2, _exceptionable2);
|
|
1411
|
+
if (1 === input3.dt)
|
|
1412
|
+
return $vo28(input3, _path2, _exceptionable2);
|
|
1413
|
+
return $report(_exceptionable2, {
|
|
1414
|
+
path: _path2,
|
|
1415
|
+
expected: "(FusionTvsValue | SVTvsValue | CNVTvsValue | SNVIndelTvsValue)",
|
|
1416
|
+
value: input3
|
|
1417
|
+
});
|
|
1418
|
+
})();
|
|
1419
|
+
const $vu4 = (input3, _path2, _exceptionable2 = true) => (() => {
|
|
1420
|
+
if (Array.isArray(input3.lst) && input3.lst.map((elem, _index29) => "object" === typeof elem && null !== elem && $vo7(elem, _path2 + ".lst[" + _index29 + "]", false)).every((flag) => flag))
|
|
1421
|
+
return $vo6(input3, _path2, _exceptionable2);
|
|
1422
|
+
return $vo11(input3, _path2, _exceptionable2);
|
|
1423
|
+
})();
|
|
1424
|
+
const $vu5 = (input3, _path2, _exceptionable2 = true) => (() => {
|
|
1425
|
+
if ("regular-bin" === input3.type)
|
|
1426
|
+
return $vo15(input3, _path2, _exceptionable2);
|
|
1427
|
+
if ("custom-bin" === input3.type)
|
|
1428
|
+
return $vo20(input3, _path2, _exceptionable2);
|
|
1429
|
+
return $report(_exceptionable2, {
|
|
1430
|
+
path: _path2,
|
|
1431
|
+
expected: "(RegularNumericBinConfig | CustomNumericBinConfig)",
|
|
1432
|
+
value: input3
|
|
1433
|
+
});
|
|
1434
|
+
})();
|
|
1435
|
+
const $vu6 = (input3, _path2, _exceptionable2 = true) => (() => {
|
|
1436
|
+
if (true === input3.startunbounded)
|
|
1437
|
+
return $vo17(input3, _path2, _exceptionable2);
|
|
1438
|
+
if (void 0 !== input3.start)
|
|
1439
|
+
return $vo18(input3, _path2, _exceptionable2);
|
|
1440
|
+
return $report(_exceptionable2, {
|
|
1441
|
+
path: _path2,
|
|
1442
|
+
expected: "(StartUnboundedBin | FullyBoundedBin)",
|
|
1443
|
+
value: input3
|
|
1444
|
+
});
|
|
1445
|
+
})();
|
|
1446
|
+
const $vu7 = (input3, _path2, _exceptionable2 = true) => (() => {
|
|
1447
|
+
if (void 0 !== input3.stop)
|
|
1448
|
+
return $vo18(input3, _path2, _exceptionable2);
|
|
1449
|
+
if (true === input3.stopunbounded)
|
|
1450
|
+
return $vo19(input3, _path2, _exceptionable2);
|
|
1451
|
+
return $report(_exceptionable2, {
|
|
1452
|
+
path: _path2,
|
|
1453
|
+
expected: "(FullyBoundedBin | StopUnboundedBin)",
|
|
1454
|
+
value: input3
|
|
1455
|
+
});
|
|
1456
|
+
})();
|
|
1457
|
+
const $vu8 = (input3, _path2, _exceptionable2 = true) => (() => {
|
|
1458
|
+
if ("gene" === input3.kind)
|
|
1459
|
+
return $vo26(input3, _path2, _exceptionable2);
|
|
1460
|
+
if ("coord" === input3.kind)
|
|
1461
|
+
return $vo27(input3, _path2, _exceptionable2);
|
|
1462
|
+
return $report(_exceptionable2, {
|
|
1463
|
+
path: _path2,
|
|
1464
|
+
expected: "(GeneVariantGeneTerm | GeneVariantCoordTerm)",
|
|
1465
|
+
value: input3
|
|
1466
|
+
});
|
|
1467
|
+
})();
|
|
1468
|
+
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
1469
|
+
path: _path + "",
|
|
1470
|
+
expected: "ViolinRequest",
|
|
1471
|
+
value: input2
|
|
1472
|
+
})) && $vo0(input2, _path + "", true) || $report(true, {
|
|
1473
|
+
path: _path + "",
|
|
1474
|
+
expected: "ViolinRequest",
|
|
1475
|
+
value: input2
|
|
1476
|
+
});
|
|
1477
|
+
})(input, "$input", true);
|
|
1478
|
+
}
|
|
1479
|
+
const success = 0 === errors.length;
|
|
1480
|
+
return {
|
|
1481
|
+
success,
|
|
1482
|
+
errors,
|
|
1483
|
+
data: success ? input : void 0
|
|
1484
|
+
};
|
|
1485
|
+
};
|
|
1486
|
+
var validViolinResponse = (input) => {
|
|
1487
|
+
const errors = [];
|
|
1488
|
+
const __is = (input2) => {
|
|
1489
|
+
const $io0 = (input3) => "number" === typeof input3.status && "string" === typeof input3.error;
|
|
1490
|
+
const $io1 = (input3) => "number" === typeof input3.min && "number" === typeof input3.max && (Array.isArray(input3.plots) && input3.plots.every((elem) => "object" === typeof elem && null !== elem && $io2(elem))) && (void 0 === input3.pvalues || Array.isArray(input3.pvalues) && input3.pvalues.every((elem) => Array.isArray(elem) && elem.every((elem2) => "object" === typeof elem2 && null !== elem2 && false === Array.isArray(elem2) && $io6(elem2)))) && true;
|
|
1491
|
+
const $io2 = (input3) => "string" === typeof input3.label && "number" === typeof input3.plotValueCount && "string" === typeof input3.src && (Array.isArray(input3.bins) && input3.bins.every((elem) => "object" === typeof elem && null !== elem && $io3(elem))) && "number" === typeof input3.densityMax && "number" === typeof input3.biggestBin && ("object" === typeof input3.summaryStats && null !== input3.summaryStats && $io4(input3.summaryStats));
|
|
1492
|
+
const $io3 = (input3) => "number" === typeof input3.x0 && "number" === typeof input3.x1 && "number" === typeof input3.density;
|
|
1493
|
+
const $io4 = (input3) => Array.isArray(input3.values) && input3.values.every((elem) => "object" === typeof elem && null !== elem && $io5(elem));
|
|
1494
|
+
const $io5 = (input3) => "string" === typeof input3.id && "string" === typeof input3.label && "number" === typeof input3.value;
|
|
1495
|
+
const $io6 = (input3) => (void 0 === input3.value || "string" === typeof input3.value) && (void 0 === input3.html || "string" === typeof input3.html);
|
|
1496
|
+
const $iu0 = (input3) => (() => {
|
|
1497
|
+
if (void 0 !== input3.status)
|
|
1498
|
+
return $io0(input3);
|
|
1499
|
+
if (void 0 !== input3.min)
|
|
1500
|
+
return $io1(input3);
|
|
1501
|
+
return false;
|
|
1502
|
+
})();
|
|
1503
|
+
return "object" === typeof input2 && null !== input2 && $iu0(input2);
|
|
1504
|
+
};
|
|
1505
|
+
if (false === __is(input)) {
|
|
1506
|
+
const $report = import_typia.createValidate.report(errors);
|
|
1507
|
+
((input2, _path, _exceptionable = true) => {
|
|
1508
|
+
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.status || $report(_exceptionable2, {
|
|
1509
|
+
path: _path2 + ".status",
|
|
1510
|
+
expected: "number",
|
|
1511
|
+
value: input3.status
|
|
1512
|
+
}), "string" === typeof input3.error || $report(_exceptionable2, {
|
|
1513
|
+
path: _path2 + ".error",
|
|
1514
|
+
expected: "string",
|
|
1515
|
+
value: input3.error
|
|
1516
|
+
})].every((flag) => flag);
|
|
1517
|
+
const $vo1 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.min || $report(_exceptionable2, {
|
|
1518
|
+
path: _path2 + ".min",
|
|
1519
|
+
expected: "number",
|
|
1520
|
+
value: input3.min
|
|
1521
|
+
}), "number" === typeof input3.max || $report(_exceptionable2, {
|
|
1522
|
+
path: _path2 + ".max",
|
|
1523
|
+
expected: "number",
|
|
1524
|
+
value: input3.max
|
|
1525
|
+
}), (Array.isArray(input3.plots) || $report(_exceptionable2, {
|
|
1526
|
+
path: _path2 + ".plots",
|
|
1527
|
+
expected: "Array<plot>",
|
|
1528
|
+
value: input3.plots
|
|
1529
|
+
})) && input3.plots.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
1530
|
+
path: _path2 + ".plots[" + _index1 + "]",
|
|
1531
|
+
expected: "plot",
|
|
1532
|
+
value: elem
|
|
1533
|
+
})) && $vo2(elem, _path2 + ".plots[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
1534
|
+
path: _path2 + ".plots[" + _index1 + "]",
|
|
1535
|
+
expected: "plot",
|
|
1536
|
+
value: elem
|
|
1537
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
1538
|
+
path: _path2 + ".plots",
|
|
1539
|
+
expected: "Array<plot>",
|
|
1540
|
+
value: input3.plots
|
|
1541
|
+
}), void 0 === input3.pvalues || (Array.isArray(input3.pvalues) || $report(_exceptionable2, {
|
|
1542
|
+
path: _path2 + ".pvalues",
|
|
1543
|
+
expected: "(Array<Array<pvalueEntries>> | undefined)",
|
|
1544
|
+
value: input3.pvalues
|
|
1545
|
+
})) && input3.pvalues.map((elem, _index2) => (Array.isArray(elem) || $report(_exceptionable2, {
|
|
1546
|
+
path: _path2 + ".pvalues[" + _index2 + "]",
|
|
1547
|
+
expected: "Array<pvalueEntries>",
|
|
1548
|
+
value: elem
|
|
1549
|
+
})) && elem.map((elem2, _index3) => ("object" === typeof elem2 && null !== elem2 && false === Array.isArray(elem2) || $report(_exceptionable2, {
|
|
1550
|
+
path: _path2 + ".pvalues[" + _index2 + "][" + _index3 + "]",
|
|
1551
|
+
expected: "pvalueEntries",
|
|
1552
|
+
value: elem2
|
|
1553
|
+
})) && $vo6(elem2, _path2 + ".pvalues[" + _index2 + "][" + _index3 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
1554
|
+
path: _path2 + ".pvalues[" + _index2 + "][" + _index3 + "]",
|
|
1555
|
+
expected: "pvalueEntries",
|
|
1556
|
+
value: elem2
|
|
1557
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
1558
|
+
path: _path2 + ".pvalues[" + _index2 + "]",
|
|
1559
|
+
expected: "Array<pvalueEntries>",
|
|
1560
|
+
value: elem
|
|
1561
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
1562
|
+
path: _path2 + ".pvalues",
|
|
1563
|
+
expected: "(Array<Array<pvalueEntries>> | undefined)",
|
|
1564
|
+
value: input3.pvalues
|
|
1565
|
+
}), true].every((flag) => flag);
|
|
1566
|
+
const $vo2 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.label || $report(_exceptionable2, {
|
|
1567
|
+
path: _path2 + ".label",
|
|
1568
|
+
expected: "string",
|
|
1569
|
+
value: input3.label
|
|
1570
|
+
}), "number" === typeof input3.plotValueCount || $report(_exceptionable2, {
|
|
1571
|
+
path: _path2 + ".plotValueCount",
|
|
1572
|
+
expected: "number",
|
|
1573
|
+
value: input3.plotValueCount
|
|
1574
|
+
}), "string" === typeof input3.src || $report(_exceptionable2, {
|
|
1575
|
+
path: _path2 + ".src",
|
|
1576
|
+
expected: "string",
|
|
1577
|
+
value: input3.src
|
|
1578
|
+
}), (Array.isArray(input3.bins) || $report(_exceptionable2, {
|
|
1579
|
+
path: _path2 + ".bins",
|
|
1580
|
+
expected: "Array<binsEntries>",
|
|
1581
|
+
value: input3.bins
|
|
1582
|
+
})) && input3.bins.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
1583
|
+
path: _path2 + ".bins[" + _index4 + "]",
|
|
1584
|
+
expected: "binsEntries",
|
|
1585
|
+
value: elem
|
|
1586
|
+
})) && $vo3(elem, _path2 + ".bins[" + _index4 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
1587
|
+
path: _path2 + ".bins[" + _index4 + "]",
|
|
1588
|
+
expected: "binsEntries",
|
|
1589
|
+
value: elem
|
|
1590
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
1591
|
+
path: _path2 + ".bins",
|
|
1592
|
+
expected: "Array<binsEntries>",
|
|
1593
|
+
value: input3.bins
|
|
1594
|
+
}), "number" === typeof input3.densityMax || $report(_exceptionable2, {
|
|
1595
|
+
path: _path2 + ".densityMax",
|
|
1596
|
+
expected: "number",
|
|
1597
|
+
value: input3.densityMax
|
|
1598
|
+
}), "number" === typeof input3.biggestBin || $report(_exceptionable2, {
|
|
1599
|
+
path: _path2 + ".biggestBin",
|
|
1600
|
+
expected: "number",
|
|
1601
|
+
value: input3.biggestBin
|
|
1602
|
+
}), ("object" === typeof input3.summaryStats && null !== input3.summaryStats || $report(_exceptionable2, {
|
|
1603
|
+
path: _path2 + ".summaryStats",
|
|
1604
|
+
expected: "__type",
|
|
1605
|
+
value: input3.summaryStats
|
|
1606
|
+
})) && $vo4(input3.summaryStats, _path2 + ".summaryStats", _exceptionable2) || $report(_exceptionable2, {
|
|
1607
|
+
path: _path2 + ".summaryStats",
|
|
1608
|
+
expected: "__type",
|
|
1609
|
+
value: input3.summaryStats
|
|
1610
|
+
})].every((flag) => flag);
|
|
1611
|
+
const $vo3 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.x0 || $report(_exceptionable2, {
|
|
1612
|
+
path: _path2 + ".x0",
|
|
1613
|
+
expected: "number",
|
|
1614
|
+
value: input3.x0
|
|
1615
|
+
}), "number" === typeof input3.x1 || $report(_exceptionable2, {
|
|
1616
|
+
path: _path2 + ".x1",
|
|
1617
|
+
expected: "number",
|
|
1618
|
+
value: input3.x1
|
|
1619
|
+
}), "number" === typeof input3.density || $report(_exceptionable2, {
|
|
1620
|
+
path: _path2 + ".density",
|
|
1621
|
+
expected: "number",
|
|
1622
|
+
value: input3.density
|
|
1623
|
+
})].every((flag) => flag);
|
|
1624
|
+
const $vo4 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.values) || $report(_exceptionable2, {
|
|
1625
|
+
path: _path2 + ".values",
|
|
1626
|
+
expected: "Array<valuesEntries>",
|
|
1627
|
+
value: input3.values
|
|
1628
|
+
})) && input3.values.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
1629
|
+
path: _path2 + ".values[" + _index5 + "]",
|
|
1630
|
+
expected: "valuesEntries",
|
|
1631
|
+
value: elem
|
|
1632
|
+
})) && $vo5(elem, _path2 + ".values[" + _index5 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
1633
|
+
path: _path2 + ".values[" + _index5 + "]",
|
|
1634
|
+
expected: "valuesEntries",
|
|
1635
|
+
value: elem
|
|
1636
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
1637
|
+
path: _path2 + ".values",
|
|
1638
|
+
expected: "Array<valuesEntries>",
|
|
1639
|
+
value: input3.values
|
|
1640
|
+
})].every((flag) => flag);
|
|
1641
|
+
const $vo5 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.id || $report(_exceptionable2, {
|
|
1642
|
+
path: _path2 + ".id",
|
|
1643
|
+
expected: "string",
|
|
1644
|
+
value: input3.id
|
|
1645
|
+
}), "string" === typeof input3.label || $report(_exceptionable2, {
|
|
1646
|
+
path: _path2 + ".label",
|
|
1647
|
+
expected: "string",
|
|
1648
|
+
value: input3.label
|
|
1649
|
+
}), "number" === typeof input3.value || $report(_exceptionable2, {
|
|
1650
|
+
path: _path2 + ".value",
|
|
1651
|
+
expected: "number",
|
|
1652
|
+
value: input3.value
|
|
1653
|
+
})].every((flag) => flag);
|
|
1654
|
+
const $vo6 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.value || "string" === typeof input3.value || $report(_exceptionable2, {
|
|
1655
|
+
path: _path2 + ".value",
|
|
1656
|
+
expected: "(string | undefined)",
|
|
1657
|
+
value: input3.value
|
|
1658
|
+
}), void 0 === input3.html || "string" === typeof input3.html || $report(_exceptionable2, {
|
|
1659
|
+
path: _path2 + ".html",
|
|
1660
|
+
expected: "(string | undefined)",
|
|
1661
|
+
value: input3.html
|
|
1662
|
+
})].every((flag) => flag);
|
|
1663
|
+
const $vu0 = (input3, _path2, _exceptionable2 = true) => (() => {
|
|
1664
|
+
if (void 0 !== input3.status)
|
|
1665
|
+
return $vo0(input3, _path2, _exceptionable2);
|
|
1666
|
+
if (void 0 !== input3.min)
|
|
1667
|
+
return $vo1(input3, _path2, _exceptionable2);
|
|
1668
|
+
return $report(_exceptionable2, {
|
|
1669
|
+
path: _path2,
|
|
1670
|
+
expected: "(ErrorResponse | ValidResponse)",
|
|
1671
|
+
value: input3
|
|
1672
|
+
});
|
|
1673
|
+
})();
|
|
1674
|
+
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
1675
|
+
path: _path + "",
|
|
1676
|
+
expected: "(ErrorResponse | ValidResponse)",
|
|
1677
|
+
value: input2
|
|
1678
|
+
})) && $vu0(input2, _path + "", true) || $report(true, {
|
|
1679
|
+
path: _path + "",
|
|
1680
|
+
expected: "(ErrorResponse | ValidResponse)",
|
|
1681
|
+
value: input2
|
|
1682
|
+
});
|
|
1683
|
+
})(input, "$input", true);
|
|
1684
|
+
}
|
|
1685
|
+
const success = 0 === errors.length;
|
|
1686
|
+
return {
|
|
1687
|
+
success,
|
|
1688
|
+
errors,
|
|
1689
|
+
data: success ? input : void 0
|
|
1690
|
+
};
|
|
1691
|
+
};
|
|
1692
|
+
|
|
1693
|
+
export {
|
|
1694
|
+
violinPayload,
|
|
1695
|
+
validViolinRequest,
|
|
1696
|
+
validViolinResponse
|
|
1697
|
+
};
|