@sjcrh/proteinpaint-types 2.86.0 → 2.87.1
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 +17 -15
- package/src/Mclass.ts +8 -0
- package/src/dataset.ts +1588 -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 -28911
- 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,165 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__toESM,
|
|
3
|
+
require_lib
|
|
4
|
+
} from "./chunk-Z6B6IQIY.js";
|
|
5
|
+
|
|
6
|
+
// dist/termdb.singleSampleMutation.ts
|
|
7
|
+
var import_typia = __toESM(require_lib(), 1);
|
|
8
|
+
|
|
9
|
+
// src/routes/termdb.singleSampleMutation.ts
|
|
10
|
+
var termdbSingleSampleMutationPayload = {
|
|
11
|
+
request: {
|
|
12
|
+
typeId: "TermdbSingleSampleMutationRequest"
|
|
13
|
+
},
|
|
14
|
+
response: {
|
|
15
|
+
typeId: "TermdbSingleSampleMutationResponse"
|
|
16
|
+
}
|
|
17
|
+
// examples: []
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
// dist/termdb.singleSampleMutation.ts
|
|
21
|
+
var validTermdbSingleSampleMutationRequest = (input) => {
|
|
22
|
+
const errors = [];
|
|
23
|
+
const __is = (input2) => {
|
|
24
|
+
return "object" === typeof input2 && null !== input2 && ("string" === typeof input2.genome && "string" === typeof input2.dslabel && "string" === typeof input2.sample);
|
|
25
|
+
};
|
|
26
|
+
if (false === __is(input)) {
|
|
27
|
+
const $report = import_typia.createValidate.report(errors);
|
|
28
|
+
((input2, _path, _exceptionable = true) => {
|
|
29
|
+
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.genome || $report(_exceptionable2, {
|
|
30
|
+
path: _path2 + ".genome",
|
|
31
|
+
expected: "string",
|
|
32
|
+
value: input3.genome
|
|
33
|
+
}), "string" === typeof input3.dslabel || $report(_exceptionable2, {
|
|
34
|
+
path: _path2 + ".dslabel",
|
|
35
|
+
expected: "string",
|
|
36
|
+
value: input3.dslabel
|
|
37
|
+
}), "string" === typeof input3.sample || $report(_exceptionable2, {
|
|
38
|
+
path: _path2 + ".sample",
|
|
39
|
+
expected: "string",
|
|
40
|
+
value: input3.sample
|
|
41
|
+
})].every((flag) => flag);
|
|
42
|
+
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
43
|
+
path: _path + "",
|
|
44
|
+
expected: "TermdbSingleSampleMutationRequest",
|
|
45
|
+
value: input2
|
|
46
|
+
})) && $vo0(input2, _path + "", true) || $report(true, {
|
|
47
|
+
path: _path + "",
|
|
48
|
+
expected: "TermdbSingleSampleMutationRequest",
|
|
49
|
+
value: input2
|
|
50
|
+
});
|
|
51
|
+
})(input, "$input", true);
|
|
52
|
+
}
|
|
53
|
+
const success = 0 === errors.length;
|
|
54
|
+
return {
|
|
55
|
+
success,
|
|
56
|
+
errors,
|
|
57
|
+
data: success ? input : void 0
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
var validTermdbSingleSampleMutationResponse = (input) => {
|
|
61
|
+
const errors = [];
|
|
62
|
+
const __is = (input2) => {
|
|
63
|
+
const $io0 = (input3) => "number" === typeof input3.status && "string" === typeof input3.error;
|
|
64
|
+
const $io1 = (input3) => Array.isArray(input3.mlst) && input3.mlst.every((elem) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io2(elem)) && (void 0 === input3.dt2total || Array.isArray(input3.dt2total) && input3.dt2total.every((elem) => "object" === typeof elem && null !== elem && $io3(elem)));
|
|
65
|
+
const $io2 = (input3) => true;
|
|
66
|
+
const $io3 = (input3) => "number" === typeof input3.dt && "number" === typeof input3.total;
|
|
67
|
+
const $iu0 = (input3) => (() => {
|
|
68
|
+
if (void 0 !== input3.status)
|
|
69
|
+
return $io0(input3);
|
|
70
|
+
if (void 0 !== input3.mlst)
|
|
71
|
+
return $io1(input3);
|
|
72
|
+
return false;
|
|
73
|
+
})();
|
|
74
|
+
return "object" === typeof input2 && null !== input2 && $iu0(input2);
|
|
75
|
+
};
|
|
76
|
+
if (false === __is(input)) {
|
|
77
|
+
const $report = import_typia.createValidate.report(errors);
|
|
78
|
+
((input2, _path, _exceptionable = true) => {
|
|
79
|
+
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.status || $report(_exceptionable2, {
|
|
80
|
+
path: _path2 + ".status",
|
|
81
|
+
expected: "number",
|
|
82
|
+
value: input3.status
|
|
83
|
+
}), "string" === typeof input3.error || $report(_exceptionable2, {
|
|
84
|
+
path: _path2 + ".error",
|
|
85
|
+
expected: "string",
|
|
86
|
+
value: input3.error
|
|
87
|
+
})].every((flag) => flag);
|
|
88
|
+
const $vo1 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.mlst) || $report(_exceptionable2, {
|
|
89
|
+
path: _path2 + ".mlst",
|
|
90
|
+
expected: "Array<object>",
|
|
91
|
+
value: input3.mlst
|
|
92
|
+
})) && input3.mlst.map((elem, _index1) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $report(_exceptionable2, {
|
|
93
|
+
path: _path2 + ".mlst[" + _index1 + "]",
|
|
94
|
+
expected: "object",
|
|
95
|
+
value: elem
|
|
96
|
+
})) && $vo2(elem, _path2 + ".mlst[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
97
|
+
path: _path2 + ".mlst[" + _index1 + "]",
|
|
98
|
+
expected: "object",
|
|
99
|
+
value: elem
|
|
100
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
101
|
+
path: _path2 + ".mlst",
|
|
102
|
+
expected: "Array<object>",
|
|
103
|
+
value: input3.mlst
|
|
104
|
+
}), void 0 === input3.dt2total || (Array.isArray(input3.dt2total) || $report(_exceptionable2, {
|
|
105
|
+
path: _path2 + ".dt2total",
|
|
106
|
+
expected: "(Array<__type> | undefined)",
|
|
107
|
+
value: input3.dt2total
|
|
108
|
+
})) && input3.dt2total.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
109
|
+
path: _path2 + ".dt2total[" + _index2 + "]",
|
|
110
|
+
expected: "__type",
|
|
111
|
+
value: elem
|
|
112
|
+
})) && $vo3(elem, _path2 + ".dt2total[" + _index2 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
113
|
+
path: _path2 + ".dt2total[" + _index2 + "]",
|
|
114
|
+
expected: "__type",
|
|
115
|
+
value: elem
|
|
116
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
117
|
+
path: _path2 + ".dt2total",
|
|
118
|
+
expected: "(Array<__type> | undefined)",
|
|
119
|
+
value: input3.dt2total
|
|
120
|
+
})].every((flag) => flag);
|
|
121
|
+
const $vo2 = (input3, _path2, _exceptionable2 = true) => true;
|
|
122
|
+
const $vo3 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.dt || $report(_exceptionable2, {
|
|
123
|
+
path: _path2 + ".dt",
|
|
124
|
+
expected: "number",
|
|
125
|
+
value: input3.dt
|
|
126
|
+
}), "number" === typeof input3.total || $report(_exceptionable2, {
|
|
127
|
+
path: _path2 + ".total",
|
|
128
|
+
expected: "number",
|
|
129
|
+
value: input3.total
|
|
130
|
+
})].every((flag) => flag);
|
|
131
|
+
const $vu0 = (input3, _path2, _exceptionable2 = true) => (() => {
|
|
132
|
+
if (void 0 !== input3.status)
|
|
133
|
+
return $vo0(input3, _path2, _exceptionable2);
|
|
134
|
+
if (void 0 !== input3.mlst)
|
|
135
|
+
return $vo1(input3, _path2, _exceptionable2);
|
|
136
|
+
return $report(_exceptionable2, {
|
|
137
|
+
path: _path2,
|
|
138
|
+
expected: "(ErrorResponse | ValidResponse)",
|
|
139
|
+
value: input3
|
|
140
|
+
});
|
|
141
|
+
})();
|
|
142
|
+
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
143
|
+
path: _path + "",
|
|
144
|
+
expected: "(ErrorResponse | ValidResponse)",
|
|
145
|
+
value: input2
|
|
146
|
+
})) && $vu0(input2, _path + "", true) || $report(true, {
|
|
147
|
+
path: _path + "",
|
|
148
|
+
expected: "(ErrorResponse | ValidResponse)",
|
|
149
|
+
value: input2
|
|
150
|
+
});
|
|
151
|
+
})(input, "$input", true);
|
|
152
|
+
}
|
|
153
|
+
const success = 0 === errors.length;
|
|
154
|
+
return {
|
|
155
|
+
success,
|
|
156
|
+
errors,
|
|
157
|
+
data: success ? input : void 0
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
export {
|
|
162
|
+
termdbSingleSampleMutationPayload,
|
|
163
|
+
validTermdbSingleSampleMutationRequest,
|
|
164
|
+
validTermdbSingleSampleMutationResponse
|
|
165
|
+
};
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__toESM,
|
|
3
|
+
require_lib
|
|
4
|
+
} from "./chunk-Z6B6IQIY.js";
|
|
5
|
+
|
|
6
|
+
// dist/hicstat.ts
|
|
7
|
+
var import_typia = __toESM(require_lib(), 1);
|
|
8
|
+
|
|
9
|
+
// src/routes/hicstat.ts
|
|
10
|
+
var hicstatPayload = {
|
|
11
|
+
request: {
|
|
12
|
+
typeId: "HicstatRequest"
|
|
13
|
+
},
|
|
14
|
+
response: {
|
|
15
|
+
typeId: "HicstatResponse"
|
|
16
|
+
}
|
|
17
|
+
// examples: []
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
// dist/hicstat.ts
|
|
21
|
+
var validHicstatRequest = (input) => {
|
|
22
|
+
const errors = [];
|
|
23
|
+
const __is = (input2) => {
|
|
24
|
+
const $io0 = (input3) => "string" === typeof input3.file && (null !== input3.url && void 0 === input3.url);
|
|
25
|
+
const $io1 = (input3) => null !== input3.file && void 0 === input3.file && "string" === typeof input3.url;
|
|
26
|
+
const $iu0 = (input3) => (() => {
|
|
27
|
+
if ("string" === typeof input3.url)
|
|
28
|
+
return $io1(input3);
|
|
29
|
+
if ("string" === typeof input3.file)
|
|
30
|
+
return $io0(input3);
|
|
31
|
+
return false;
|
|
32
|
+
})();
|
|
33
|
+
return "object" === typeof input2 && null !== input2 && $iu0(input2);
|
|
34
|
+
};
|
|
35
|
+
if (false === __is(input)) {
|
|
36
|
+
const $report = import_typia.createValidate.report(errors);
|
|
37
|
+
((input2, _path, _exceptionable = true) => {
|
|
38
|
+
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.file || $report(_exceptionable2, {
|
|
39
|
+
path: _path2 + ".file",
|
|
40
|
+
expected: "string",
|
|
41
|
+
value: input3.file
|
|
42
|
+
}), (null !== input3.url || $report(_exceptionable2, {
|
|
43
|
+
path: _path2 + ".url",
|
|
44
|
+
expected: "undefined",
|
|
45
|
+
value: input3.url
|
|
46
|
+
})) && (void 0 === input3.url || $report(_exceptionable2, {
|
|
47
|
+
path: _path2 + ".url",
|
|
48
|
+
expected: "undefined",
|
|
49
|
+
value: input3.url
|
|
50
|
+
}))].every((flag) => flag);
|
|
51
|
+
const $vo1 = (input3, _path2, _exceptionable2 = true) => [(null !== input3.file || $report(_exceptionable2, {
|
|
52
|
+
path: _path2 + ".file",
|
|
53
|
+
expected: "undefined",
|
|
54
|
+
value: input3.file
|
|
55
|
+
})) && (void 0 === input3.file || $report(_exceptionable2, {
|
|
56
|
+
path: _path2 + ".file",
|
|
57
|
+
expected: "undefined",
|
|
58
|
+
value: input3.file
|
|
59
|
+
})), "string" === typeof input3.url || $report(_exceptionable2, {
|
|
60
|
+
path: _path2 + ".url",
|
|
61
|
+
expected: "string",
|
|
62
|
+
value: input3.url
|
|
63
|
+
})].every((flag) => flag);
|
|
64
|
+
const $vu0 = (input3, _path2, _exceptionable2 = true) => (() => {
|
|
65
|
+
if ("string" === typeof input3.url)
|
|
66
|
+
return $vo1(input3, _path2, _exceptionable2);
|
|
67
|
+
if ("string" === typeof input3.file)
|
|
68
|
+
return $vo0(input3, _path2, _exceptionable2);
|
|
69
|
+
return $report(_exceptionable2, {
|
|
70
|
+
path: _path2,
|
|
71
|
+
expected: "(HicstatRequestWithUrl | HicstatRequestWithFile)",
|
|
72
|
+
value: input3
|
|
73
|
+
});
|
|
74
|
+
})();
|
|
75
|
+
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
76
|
+
path: _path + "",
|
|
77
|
+
expected: "(HicstatRequestWithFile | HicstatRequestWithUrl)",
|
|
78
|
+
value: input2
|
|
79
|
+
})) && $vu0(input2, _path + "", true) || $report(true, {
|
|
80
|
+
path: _path + "",
|
|
81
|
+
expected: "(HicstatRequestWithFile | HicstatRequestWithUrl)",
|
|
82
|
+
value: input2
|
|
83
|
+
});
|
|
84
|
+
})(input, "$input", true);
|
|
85
|
+
}
|
|
86
|
+
const success = 0 === errors.length;
|
|
87
|
+
return {
|
|
88
|
+
success,
|
|
89
|
+
errors,
|
|
90
|
+
data: success ? input : void 0
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
var validHicstatResponse = (input) => {
|
|
94
|
+
const errors = [];
|
|
95
|
+
const __is = (input2) => {
|
|
96
|
+
const $join = import_typia.createValidate.join;
|
|
97
|
+
const $io0 = (input3) => (7 === input3.version || 8 === input3.version || 9 === input3.version) && "string" === typeof input3["Genome ID"] && ("object" === typeof input3.Chromosomes && null !== input3.Chromosomes && $io1(input3.Chromosomes)) && (Array.isArray(input3.chrorder) && input3.chrorder.every((elem) => "number" === typeof elem)) && (Array.isArray(input3["Base pair-delimited resolutions"]) && input3["Base pair-delimited resolutions"].every((elem) => "number" === typeof elem)) && (Array.isArray(input3["Fragment-delimited resolutions"]) && input3["Fragment-delimited resolutions"].every((elem) => "number" === typeof elem)) && (Array.isArray(input3.normalization) && input3.normalization.every((elem) => "string" === typeof elem));
|
|
98
|
+
const $io1 = (input3) => "number" === typeof input3.All && "number" === typeof input3.X && "number" === typeof input3.Y && "number" === typeof input3.M && Object.keys(input3).every((key) => {
|
|
99
|
+
const value = input3[key];
|
|
100
|
+
if (void 0 === value)
|
|
101
|
+
return true;
|
|
102
|
+
if (RegExp(/^-?\d+\.?\d*$/).test(key))
|
|
103
|
+
return "number" === typeof value;
|
|
104
|
+
return true;
|
|
105
|
+
});
|
|
106
|
+
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
107
|
+
};
|
|
108
|
+
if (false === __is(input)) {
|
|
109
|
+
const $report = import_typia.createValidate.report(errors);
|
|
110
|
+
((input2, _path, _exceptionable = true) => {
|
|
111
|
+
const $join = import_typia.createValidate.join;
|
|
112
|
+
const $vo0 = (input3, _path2, _exceptionable2 = true) => [7 === input3.version || 8 === input3.version || 9 === input3.version || $report(_exceptionable2, {
|
|
113
|
+
path: _path2 + ".version",
|
|
114
|
+
expected: "(7 | 8 | 9)",
|
|
115
|
+
value: input3.version
|
|
116
|
+
}), "string" === typeof input3["Genome ID"] || $report(_exceptionable2, {
|
|
117
|
+
path: _path2 + '["Genome ID"]',
|
|
118
|
+
expected: "string",
|
|
119
|
+
value: input3["Genome ID"]
|
|
120
|
+
}), ("object" === typeof input3.Chromosomes && null !== input3.Chromosomes || $report(_exceptionable2, {
|
|
121
|
+
path: _path2 + ".Chromosomes",
|
|
122
|
+
expected: "__type",
|
|
123
|
+
value: input3.Chromosomes
|
|
124
|
+
})) && $vo1(input3.Chromosomes, _path2 + ".Chromosomes", _exceptionable2) || $report(_exceptionable2, {
|
|
125
|
+
path: _path2 + ".Chromosomes",
|
|
126
|
+
expected: "__type",
|
|
127
|
+
value: input3.Chromosomes
|
|
128
|
+
}), (Array.isArray(input3.chrorder) || $report(_exceptionable2, {
|
|
129
|
+
path: _path2 + ".chrorder",
|
|
130
|
+
expected: "Array<number>",
|
|
131
|
+
value: input3.chrorder
|
|
132
|
+
})) && input3.chrorder.map((elem, _index1) => "number" === typeof elem || $report(_exceptionable2, {
|
|
133
|
+
path: _path2 + ".chrorder[" + _index1 + "]",
|
|
134
|
+
expected: "number",
|
|
135
|
+
value: elem
|
|
136
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
137
|
+
path: _path2 + ".chrorder",
|
|
138
|
+
expected: "Array<number>",
|
|
139
|
+
value: input3.chrorder
|
|
140
|
+
}), (Array.isArray(input3["Base pair-delimited resolutions"]) || $report(_exceptionable2, {
|
|
141
|
+
path: _path2 + '["Base pair-delimited resolutions"]',
|
|
142
|
+
expected: "Array<number>",
|
|
143
|
+
value: input3["Base pair-delimited resolutions"]
|
|
144
|
+
})) && input3["Base pair-delimited resolutions"].map((elem, _index2) => "number" === typeof elem || $report(_exceptionable2, {
|
|
145
|
+
path: _path2 + '["Base pair-delimited resolutions"][' + _index2 + "]",
|
|
146
|
+
expected: "number",
|
|
147
|
+
value: elem
|
|
148
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
149
|
+
path: _path2 + '["Base pair-delimited resolutions"]',
|
|
150
|
+
expected: "Array<number>",
|
|
151
|
+
value: input3["Base pair-delimited resolutions"]
|
|
152
|
+
}), (Array.isArray(input3["Fragment-delimited resolutions"]) || $report(_exceptionable2, {
|
|
153
|
+
path: _path2 + '["Fragment-delimited resolutions"]',
|
|
154
|
+
expected: "Array<number>",
|
|
155
|
+
value: input3["Fragment-delimited resolutions"]
|
|
156
|
+
})) && input3["Fragment-delimited resolutions"].map((elem, _index3) => "number" === typeof elem || $report(_exceptionable2, {
|
|
157
|
+
path: _path2 + '["Fragment-delimited resolutions"][' + _index3 + "]",
|
|
158
|
+
expected: "number",
|
|
159
|
+
value: elem
|
|
160
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
161
|
+
path: _path2 + '["Fragment-delimited resolutions"]',
|
|
162
|
+
expected: "Array<number>",
|
|
163
|
+
value: input3["Fragment-delimited resolutions"]
|
|
164
|
+
}), (Array.isArray(input3.normalization) || $report(_exceptionable2, {
|
|
165
|
+
path: _path2 + ".normalization",
|
|
166
|
+
expected: "Array<string>",
|
|
167
|
+
value: input3.normalization
|
|
168
|
+
})) && input3.normalization.map((elem, _index4) => "string" === typeof elem || $report(_exceptionable2, {
|
|
169
|
+
path: _path2 + ".normalization[" + _index4 + "]",
|
|
170
|
+
expected: "string",
|
|
171
|
+
value: elem
|
|
172
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
173
|
+
path: _path2 + ".normalization",
|
|
174
|
+
expected: "Array<string>",
|
|
175
|
+
value: input3.normalization
|
|
176
|
+
})].every((flag) => flag);
|
|
177
|
+
const $vo1 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.All || $report(_exceptionable2, {
|
|
178
|
+
path: _path2 + ".All",
|
|
179
|
+
expected: "number",
|
|
180
|
+
value: input3.All
|
|
181
|
+
}), "number" === typeof input3.X || $report(_exceptionable2, {
|
|
182
|
+
path: _path2 + ".X",
|
|
183
|
+
expected: "number",
|
|
184
|
+
value: input3.X
|
|
185
|
+
}), "number" === typeof input3.Y || $report(_exceptionable2, {
|
|
186
|
+
path: _path2 + ".Y",
|
|
187
|
+
expected: "number",
|
|
188
|
+
value: input3.Y
|
|
189
|
+
}), "number" === typeof input3.M || $report(_exceptionable2, {
|
|
190
|
+
path: _path2 + ".M",
|
|
191
|
+
expected: "number",
|
|
192
|
+
value: input3.M
|
|
193
|
+
}), false === _exceptionable2 || Object.keys(input3).map((key) => {
|
|
194
|
+
const value = input3[key];
|
|
195
|
+
if (void 0 === value)
|
|
196
|
+
return true;
|
|
197
|
+
if (RegExp(/^-?\d+\.?\d*$/).test(key))
|
|
198
|
+
return "number" === typeof value || $report(_exceptionable2, {
|
|
199
|
+
path: _path2 + $join(key),
|
|
200
|
+
expected: "number",
|
|
201
|
+
value
|
|
202
|
+
});
|
|
203
|
+
return true;
|
|
204
|
+
}).every((flag) => flag)].every((flag) => flag);
|
|
205
|
+
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
206
|
+
path: _path + "",
|
|
207
|
+
expected: "HicstatResponse",
|
|
208
|
+
value: input2
|
|
209
|
+
})) && $vo0(input2, _path + "", true) || $report(true, {
|
|
210
|
+
path: _path + "",
|
|
211
|
+
expected: "HicstatResponse",
|
|
212
|
+
value: input2
|
|
213
|
+
});
|
|
214
|
+
})(input, "$input", true);
|
|
215
|
+
}
|
|
216
|
+
const success = 0 === errors.length;
|
|
217
|
+
return {
|
|
218
|
+
success,
|
|
219
|
+
errors,
|
|
220
|
+
data: success ? input : void 0
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
export {
|
|
225
|
+
hicstatPayload,
|
|
226
|
+
validHicstatRequest,
|
|
227
|
+
validHicstatResponse
|
|
228
|
+
};
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__toESM,
|
|
3
|
+
require_lib
|
|
4
|
+
} from "./chunk-Z6B6IQIY.js";
|
|
5
|
+
|
|
6
|
+
// dist/burden.ts
|
|
7
|
+
var import_typia = __toESM(require_lib(), 1);
|
|
8
|
+
|
|
9
|
+
// src/routes/burden.ts
|
|
10
|
+
var burdenPayload = {
|
|
11
|
+
request: {
|
|
12
|
+
typeId: "BurdenRequest"
|
|
13
|
+
},
|
|
14
|
+
response: {
|
|
15
|
+
typeId: "BurdenResponse"
|
|
16
|
+
},
|
|
17
|
+
examples: [
|
|
18
|
+
{
|
|
19
|
+
request: {
|
|
20
|
+
body: {
|
|
21
|
+
genome: "hg38",
|
|
22
|
+
// TODO: !!! use hg38-test and TermdbTest !!!
|
|
23
|
+
dslabel: "SJLife",
|
|
24
|
+
diaggrp: 5,
|
|
25
|
+
sex: 1,
|
|
26
|
+
white: 1,
|
|
27
|
+
agedx: 1,
|
|
28
|
+
bleo: 0,
|
|
29
|
+
etop: 0,
|
|
30
|
+
cisp: 0,
|
|
31
|
+
carbo: 0,
|
|
32
|
+
steriod: 0,
|
|
33
|
+
vcr: 0,
|
|
34
|
+
hdmtx: 0,
|
|
35
|
+
itmt: 0,
|
|
36
|
+
ced: 0,
|
|
37
|
+
dox: 0,
|
|
38
|
+
heart: 0,
|
|
39
|
+
brain: 0,
|
|
40
|
+
abd: 0,
|
|
41
|
+
pelvis: 0,
|
|
42
|
+
chest: 0
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
response: {
|
|
46
|
+
header: { status: 200 }
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
// dist/burden.ts
|
|
53
|
+
var validBurdenRequest = (input) => {
|
|
54
|
+
const errors = [];
|
|
55
|
+
const __is = (input2) => {
|
|
56
|
+
const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && "number" === typeof input3.diaggrp && "number" === typeof input3.sex && "number" === typeof input3.white && "number" === typeof input3.agedx && "number" === typeof input3.bleo && "number" === typeof input3.etop && "number" === typeof input3.cisp && "number" === typeof input3.carbo && "number" === typeof input3.steriod && "number" === typeof input3.vcr && "number" === typeof input3.hdmtx && "number" === typeof input3.itmt && "number" === typeof input3.ced && "number" === typeof input3.dox && "number" === typeof input3.heart && "number" === typeof input3.brain && "number" === typeof input3.abd && "number" === typeof input3.pelvis && "number" === typeof input3.chest;
|
|
57
|
+
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
58
|
+
};
|
|
59
|
+
if (false === __is(input)) {
|
|
60
|
+
const $report = import_typia.createValidate.report(errors);
|
|
61
|
+
((input2, _path, _exceptionable = true) => {
|
|
62
|
+
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.genome || $report(_exceptionable2, {
|
|
63
|
+
path: _path2 + ".genome",
|
|
64
|
+
expected: "string",
|
|
65
|
+
value: input3.genome
|
|
66
|
+
}), "string" === typeof input3.dslabel || $report(_exceptionable2, {
|
|
67
|
+
path: _path2 + ".dslabel",
|
|
68
|
+
expected: "string",
|
|
69
|
+
value: input3.dslabel
|
|
70
|
+
}), "number" === typeof input3.diaggrp || $report(_exceptionable2, {
|
|
71
|
+
path: _path2 + ".diaggrp",
|
|
72
|
+
expected: "number",
|
|
73
|
+
value: input3.diaggrp
|
|
74
|
+
}), "number" === typeof input3.sex || $report(_exceptionable2, {
|
|
75
|
+
path: _path2 + ".sex",
|
|
76
|
+
expected: "number",
|
|
77
|
+
value: input3.sex
|
|
78
|
+
}), "number" === typeof input3.white || $report(_exceptionable2, {
|
|
79
|
+
path: _path2 + ".white",
|
|
80
|
+
expected: "number",
|
|
81
|
+
value: input3.white
|
|
82
|
+
}), "number" === typeof input3.agedx || $report(_exceptionable2, {
|
|
83
|
+
path: _path2 + ".agedx",
|
|
84
|
+
expected: "number",
|
|
85
|
+
value: input3.agedx
|
|
86
|
+
}), "number" === typeof input3.bleo || $report(_exceptionable2, {
|
|
87
|
+
path: _path2 + ".bleo",
|
|
88
|
+
expected: "number",
|
|
89
|
+
value: input3.bleo
|
|
90
|
+
}), "number" === typeof input3.etop || $report(_exceptionable2, {
|
|
91
|
+
path: _path2 + ".etop",
|
|
92
|
+
expected: "number",
|
|
93
|
+
value: input3.etop
|
|
94
|
+
}), "number" === typeof input3.cisp || $report(_exceptionable2, {
|
|
95
|
+
path: _path2 + ".cisp",
|
|
96
|
+
expected: "number",
|
|
97
|
+
value: input3.cisp
|
|
98
|
+
}), "number" === typeof input3.carbo || $report(_exceptionable2, {
|
|
99
|
+
path: _path2 + ".carbo",
|
|
100
|
+
expected: "number",
|
|
101
|
+
value: input3.carbo
|
|
102
|
+
}), "number" === typeof input3.steriod || $report(_exceptionable2, {
|
|
103
|
+
path: _path2 + ".steriod",
|
|
104
|
+
expected: "number",
|
|
105
|
+
value: input3.steriod
|
|
106
|
+
}), "number" === typeof input3.vcr || $report(_exceptionable2, {
|
|
107
|
+
path: _path2 + ".vcr",
|
|
108
|
+
expected: "number",
|
|
109
|
+
value: input3.vcr
|
|
110
|
+
}), "number" === typeof input3.hdmtx || $report(_exceptionable2, {
|
|
111
|
+
path: _path2 + ".hdmtx",
|
|
112
|
+
expected: "number",
|
|
113
|
+
value: input3.hdmtx
|
|
114
|
+
}), "number" === typeof input3.itmt || $report(_exceptionable2, {
|
|
115
|
+
path: _path2 + ".itmt",
|
|
116
|
+
expected: "number",
|
|
117
|
+
value: input3.itmt
|
|
118
|
+
}), "number" === typeof input3.ced || $report(_exceptionable2, {
|
|
119
|
+
path: _path2 + ".ced",
|
|
120
|
+
expected: "number",
|
|
121
|
+
value: input3.ced
|
|
122
|
+
}), "number" === typeof input3.dox || $report(_exceptionable2, {
|
|
123
|
+
path: _path2 + ".dox",
|
|
124
|
+
expected: "number",
|
|
125
|
+
value: input3.dox
|
|
126
|
+
}), "number" === typeof input3.heart || $report(_exceptionable2, {
|
|
127
|
+
path: _path2 + ".heart",
|
|
128
|
+
expected: "number",
|
|
129
|
+
value: input3.heart
|
|
130
|
+
}), "number" === typeof input3.brain || $report(_exceptionable2, {
|
|
131
|
+
path: _path2 + ".brain",
|
|
132
|
+
expected: "number",
|
|
133
|
+
value: input3.brain
|
|
134
|
+
}), "number" === typeof input3.abd || $report(_exceptionable2, {
|
|
135
|
+
path: _path2 + ".abd",
|
|
136
|
+
expected: "number",
|
|
137
|
+
value: input3.abd
|
|
138
|
+
}), "number" === typeof input3.pelvis || $report(_exceptionable2, {
|
|
139
|
+
path: _path2 + ".pelvis",
|
|
140
|
+
expected: "number",
|
|
141
|
+
value: input3.pelvis
|
|
142
|
+
}), "number" === typeof input3.chest || $report(_exceptionable2, {
|
|
143
|
+
path: _path2 + ".chest",
|
|
144
|
+
expected: "number",
|
|
145
|
+
value: input3.chest
|
|
146
|
+
})].every((flag) => flag);
|
|
147
|
+
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
148
|
+
path: _path + "",
|
|
149
|
+
expected: "BurdenRequest",
|
|
150
|
+
value: input2
|
|
151
|
+
})) && $vo0(input2, _path + "", true) || $report(true, {
|
|
152
|
+
path: _path + "",
|
|
153
|
+
expected: "BurdenRequest",
|
|
154
|
+
value: input2
|
|
155
|
+
});
|
|
156
|
+
})(input, "$input", true);
|
|
157
|
+
}
|
|
158
|
+
const success = 0 === errors.length;
|
|
159
|
+
return {
|
|
160
|
+
success,
|
|
161
|
+
errors,
|
|
162
|
+
data: success ? input : void 0
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
var validBurdenResponse = (input) => {
|
|
166
|
+
const errors = [];
|
|
167
|
+
const __is = (input2) => {
|
|
168
|
+
const $io0 = (input3) => "string" === typeof input3.status && (Array.isArray(input3.keys) && input3.keys.every((elem) => "string" === typeof elem)) && (Array.isArray(input3.rows) && input3.rows.every((elem) => Array.isArray(elem) && elem.every((elem2) => "number" === typeof elem2)));
|
|
169
|
+
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
170
|
+
};
|
|
171
|
+
if (false === __is(input)) {
|
|
172
|
+
const $report = import_typia.createValidate.report(errors);
|
|
173
|
+
((input2, _path, _exceptionable = true) => {
|
|
174
|
+
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.status || $report(_exceptionable2, {
|
|
175
|
+
path: _path2 + ".status",
|
|
176
|
+
expected: "string",
|
|
177
|
+
value: input3.status
|
|
178
|
+
}), (Array.isArray(input3.keys) || $report(_exceptionable2, {
|
|
179
|
+
path: _path2 + ".keys",
|
|
180
|
+
expected: "Array<string>",
|
|
181
|
+
value: input3.keys
|
|
182
|
+
})) && input3.keys.map((elem, _index1) => "string" === typeof elem || $report(_exceptionable2, {
|
|
183
|
+
path: _path2 + ".keys[" + _index1 + "]",
|
|
184
|
+
expected: "string",
|
|
185
|
+
value: elem
|
|
186
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
187
|
+
path: _path2 + ".keys",
|
|
188
|
+
expected: "Array<string>",
|
|
189
|
+
value: input3.keys
|
|
190
|
+
}), (Array.isArray(input3.rows) || $report(_exceptionable2, {
|
|
191
|
+
path: _path2 + ".rows",
|
|
192
|
+
expected: "Array<Array<number>>",
|
|
193
|
+
value: input3.rows
|
|
194
|
+
})) && input3.rows.map((elem, _index2) => (Array.isArray(elem) || $report(_exceptionable2, {
|
|
195
|
+
path: _path2 + ".rows[" + _index2 + "]",
|
|
196
|
+
expected: "Array<number>",
|
|
197
|
+
value: elem
|
|
198
|
+
})) && elem.map((elem2, _index3) => "number" === typeof elem2 || $report(_exceptionable2, {
|
|
199
|
+
path: _path2 + ".rows[" + _index2 + "][" + _index3 + "]",
|
|
200
|
+
expected: "number",
|
|
201
|
+
value: elem2
|
|
202
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
203
|
+
path: _path2 + ".rows[" + _index2 + "]",
|
|
204
|
+
expected: "Array<number>",
|
|
205
|
+
value: elem
|
|
206
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
207
|
+
path: _path2 + ".rows",
|
|
208
|
+
expected: "Array<Array<number>>",
|
|
209
|
+
value: input3.rows
|
|
210
|
+
})].every((flag) => flag);
|
|
211
|
+
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
212
|
+
path: _path + "",
|
|
213
|
+
expected: "BurdenResponse",
|
|
214
|
+
value: input2
|
|
215
|
+
})) && $vo0(input2, _path + "", true) || $report(true, {
|
|
216
|
+
path: _path + "",
|
|
217
|
+
expected: "BurdenResponse",
|
|
218
|
+
value: input2
|
|
219
|
+
});
|
|
220
|
+
})(input, "$input", true);
|
|
221
|
+
}
|
|
222
|
+
const success = 0 === errors.length;
|
|
223
|
+
return {
|
|
224
|
+
success,
|
|
225
|
+
errors,
|
|
226
|
+
data: success ? input : void 0
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
export {
|
|
231
|
+
burdenPayload,
|
|
232
|
+
validBurdenRequest,
|
|
233
|
+
validBurdenResponse
|
|
234
|
+
};
|