@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,62 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__toESM,
|
|
3
|
+
require_lib
|
|
4
|
+
} from "./chunk-Z6B6IQIY.js";
|
|
5
|
+
|
|
6
|
+
// dist/termdb.cohorts.ts
|
|
7
|
+
var import_typia = __toESM(require_lib(), 1);
|
|
8
|
+
|
|
9
|
+
// src/routes/termdb.cohorts.ts
|
|
10
|
+
var termdbCohortsPayload = {
|
|
11
|
+
request: {
|
|
12
|
+
typeId: "TermdbCohortsRequest"
|
|
13
|
+
},
|
|
14
|
+
response: {
|
|
15
|
+
typeId: "TermdbCohortsResponse"
|
|
16
|
+
}
|
|
17
|
+
//examples: []
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
// dist/termdb.cohorts.ts
|
|
21
|
+
var validTermdbCohortsRequest = (input) => {
|
|
22
|
+
const errors = [];
|
|
23
|
+
const __is = (input2) => {
|
|
24
|
+
return true;
|
|
25
|
+
};
|
|
26
|
+
if (false === __is(input)) {
|
|
27
|
+
const $report = import_typia.createValidate.report(errors);
|
|
28
|
+
/* @__PURE__ */ ((input2, _path, _exceptionable = true) => {
|
|
29
|
+
return true;
|
|
30
|
+
})(input, "$input", true);
|
|
31
|
+
}
|
|
32
|
+
const success = 0 === errors.length;
|
|
33
|
+
return {
|
|
34
|
+
success,
|
|
35
|
+
errors,
|
|
36
|
+
data: success ? input : void 0
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
var validTermdbCohortsResponse = (input) => {
|
|
40
|
+
const errors = [];
|
|
41
|
+
const __is = (input2) => {
|
|
42
|
+
return true;
|
|
43
|
+
};
|
|
44
|
+
if (false === __is(input)) {
|
|
45
|
+
const $report = import_typia.createValidate.report(errors);
|
|
46
|
+
/* @__PURE__ */ ((input2, _path, _exceptionable = true) => {
|
|
47
|
+
return true;
|
|
48
|
+
})(input, "$input", true);
|
|
49
|
+
}
|
|
50
|
+
const success = 0 === errors.length;
|
|
51
|
+
return {
|
|
52
|
+
success,
|
|
53
|
+
errors,
|
|
54
|
+
data: success ? input : void 0
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export {
|
|
59
|
+
termdbCohortsPayload,
|
|
60
|
+
validTermdbCohortsRequest,
|
|
61
|
+
validTermdbCohortsResponse
|
|
62
|
+
};
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__toESM,
|
|
3
|
+
require_lib
|
|
4
|
+
} from "./chunk-Z6B6IQIY.js";
|
|
5
|
+
|
|
6
|
+
// dist/termdb.singlecellData.ts
|
|
7
|
+
var import_typia = __toESM(require_lib(), 1);
|
|
8
|
+
|
|
9
|
+
// src/routes/termdb.singlecellData.ts
|
|
10
|
+
var termdbSingleCellDataPayload = {
|
|
11
|
+
request: {
|
|
12
|
+
typeId: "TermdbSingleCellDataRequest"
|
|
13
|
+
},
|
|
14
|
+
response: {
|
|
15
|
+
typeId: "TermdbSingleCellDataResponse"
|
|
16
|
+
}
|
|
17
|
+
// examples: []
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
// dist/termdb.singlecellData.ts
|
|
21
|
+
var validTermdbSingleCellDataRequest = (input) => {
|
|
22
|
+
const errors = [];
|
|
23
|
+
const __is = (input2) => {
|
|
24
|
+
const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && ("object" === typeof input3.sample && null !== input3.sample && $io1(input3.sample)) && (Array.isArray(input3.plots) && input3.plots.every((elem) => "string" === typeof elem)) && (void 0 === input3.gene || "string" === typeof input3.gene);
|
|
25
|
+
const $io1 = (input3) => (void 0 === input3.eID || "string" === typeof input3.eID) && "string" === typeof input3.sID;
|
|
26
|
+
return "object" === typeof input2 && null !== input2 && $io0(input2);
|
|
27
|
+
};
|
|
28
|
+
if (false === __is(input)) {
|
|
29
|
+
const $report = import_typia.createValidate.report(errors);
|
|
30
|
+
((input2, _path, _exceptionable = true) => {
|
|
31
|
+
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.genome || $report(_exceptionable2, {
|
|
32
|
+
path: _path2 + ".genome",
|
|
33
|
+
expected: "string",
|
|
34
|
+
value: input3.genome
|
|
35
|
+
}), "string" === typeof input3.dslabel || $report(_exceptionable2, {
|
|
36
|
+
path: _path2 + ".dslabel",
|
|
37
|
+
expected: "string",
|
|
38
|
+
value: input3.dslabel
|
|
39
|
+
}), ("object" === typeof input3.sample && null !== input3.sample || $report(_exceptionable2, {
|
|
40
|
+
path: _path2 + ".sample",
|
|
41
|
+
expected: "__type",
|
|
42
|
+
value: input3.sample
|
|
43
|
+
})) && $vo1(input3.sample, _path2 + ".sample", _exceptionable2) || $report(_exceptionable2, {
|
|
44
|
+
path: _path2 + ".sample",
|
|
45
|
+
expected: "__type",
|
|
46
|
+
value: input3.sample
|
|
47
|
+
}), (Array.isArray(input3.plots) || $report(_exceptionable2, {
|
|
48
|
+
path: _path2 + ".plots",
|
|
49
|
+
expected: "Array<string>",
|
|
50
|
+
value: input3.plots
|
|
51
|
+
})) && input3.plots.map((elem, _index1) => "string" === typeof elem || $report(_exceptionable2, {
|
|
52
|
+
path: _path2 + ".plots[" + _index1 + "]",
|
|
53
|
+
expected: "string",
|
|
54
|
+
value: elem
|
|
55
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
56
|
+
path: _path2 + ".plots",
|
|
57
|
+
expected: "Array<string>",
|
|
58
|
+
value: input3.plots
|
|
59
|
+
}), void 0 === input3.gene || "string" === typeof input3.gene || $report(_exceptionable2, {
|
|
60
|
+
path: _path2 + ".gene",
|
|
61
|
+
expected: "(string | undefined)",
|
|
62
|
+
value: input3.gene
|
|
63
|
+
})].every((flag) => flag);
|
|
64
|
+
const $vo1 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.eID || "string" === typeof input3.eID || $report(_exceptionable2, {
|
|
65
|
+
path: _path2 + ".eID",
|
|
66
|
+
expected: "(string | undefined)",
|
|
67
|
+
value: input3.eID
|
|
68
|
+
}), "string" === typeof input3.sID || $report(_exceptionable2, {
|
|
69
|
+
path: _path2 + ".sID",
|
|
70
|
+
expected: "string",
|
|
71
|
+
value: input3.sID
|
|
72
|
+
})].every((flag) => flag);
|
|
73
|
+
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
74
|
+
path: _path + "",
|
|
75
|
+
expected: "TermdbSingleCellDataRequest",
|
|
76
|
+
value: input2
|
|
77
|
+
})) && $vo0(input2, _path + "", true) || $report(true, {
|
|
78
|
+
path: _path + "",
|
|
79
|
+
expected: "TermdbSingleCellDataRequest",
|
|
80
|
+
value: input2
|
|
81
|
+
});
|
|
82
|
+
})(input, "$input", true);
|
|
83
|
+
}
|
|
84
|
+
const success = 0 === errors.length;
|
|
85
|
+
return {
|
|
86
|
+
success,
|
|
87
|
+
errors,
|
|
88
|
+
data: success ? input : void 0
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
var validTermdbSingleCellDataResponse = (input) => {
|
|
92
|
+
const errors = [];
|
|
93
|
+
const __is = (input2) => {
|
|
94
|
+
const $join = import_typia.createValidate.join;
|
|
95
|
+
const $io0 = (input3) => "number" === typeof input3.status && "string" === typeof input3.error;
|
|
96
|
+
const $io1 = (input3) => "boolean" === typeof input3.nodata;
|
|
97
|
+
const $io2 = (input3) => Array.isArray(input3.plots) && input3.plots.every((elem) => "object" === typeof elem && null !== elem && $io3(elem));
|
|
98
|
+
const $io3 = (input3) => "string" === typeof input3.name && (void 0 === input3.expCells || Array.isArray(input3.expCells) && input3.expCells.every((elem) => "object" === typeof elem && null !== elem && $io4(elem))) && (void 0 === input3.noExpCells || Array.isArray(input3.noExpCells) && input3.noExpCells.every((elem) => "object" === typeof elem && null !== elem && $io4(elem))) && "string" === typeof input3.colorBy && (Array.isArray(input3.colorColumns) && input3.colorColumns.every((elem) => "string" === typeof elem)) && (void 0 === input3.colorMap || "object" === typeof input3.colorMap && null !== input3.colorMap && false === Array.isArray(input3.colorMap) && $io5(input3.colorMap));
|
|
99
|
+
const $io4 = (input3) => "string" === typeof input3.cellId && "number" === typeof input3.x && "number" === typeof input3.y && (void 0 === input3.z || "number" === typeof input3.z) && "string" === typeof input3.category && (void 0 === input3.geneExp || "number" === typeof input3.geneExp);
|
|
100
|
+
const $io5 = (input3) => Object.keys(input3).every((key) => {
|
|
101
|
+
const value = input3[key];
|
|
102
|
+
if (void 0 === value)
|
|
103
|
+
return true;
|
|
104
|
+
if (RegExp(/(.*)/).test(key))
|
|
105
|
+
return "string" === typeof value;
|
|
106
|
+
return true;
|
|
107
|
+
});
|
|
108
|
+
const $iu0 = (input3) => (() => {
|
|
109
|
+
if (void 0 !== input3.status)
|
|
110
|
+
return $io0(input3);
|
|
111
|
+
if (void 0 !== input3.nodata)
|
|
112
|
+
return $io1(input3);
|
|
113
|
+
if (void 0 !== input3.plots)
|
|
114
|
+
return $io2(input3);
|
|
115
|
+
return false;
|
|
116
|
+
})();
|
|
117
|
+
return "object" === typeof input2 && null !== input2 && $iu0(input2);
|
|
118
|
+
};
|
|
119
|
+
if (false === __is(input)) {
|
|
120
|
+
const $report = import_typia.createValidate.report(errors);
|
|
121
|
+
((input2, _path, _exceptionable = true) => {
|
|
122
|
+
const $join = import_typia.createValidate.join;
|
|
123
|
+
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.status || $report(_exceptionable2, {
|
|
124
|
+
path: _path2 + ".status",
|
|
125
|
+
expected: "number",
|
|
126
|
+
value: input3.status
|
|
127
|
+
}), "string" === typeof input3.error || $report(_exceptionable2, {
|
|
128
|
+
path: _path2 + ".error",
|
|
129
|
+
expected: "string",
|
|
130
|
+
value: input3.error
|
|
131
|
+
})].every((flag) => flag);
|
|
132
|
+
const $vo1 = (input3, _path2, _exceptionable2 = true) => ["boolean" === typeof input3.nodata || $report(_exceptionable2, {
|
|
133
|
+
path: _path2 + ".nodata",
|
|
134
|
+
expected: "boolean",
|
|
135
|
+
value: input3.nodata
|
|
136
|
+
})].every((flag) => flag);
|
|
137
|
+
const $vo2 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.plots) || $report(_exceptionable2, {
|
|
138
|
+
path: _path2 + ".plots",
|
|
139
|
+
expected: "Array<Plot>",
|
|
140
|
+
value: input3.plots
|
|
141
|
+
})) && input3.plots.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
142
|
+
path: _path2 + ".plots[" + _index1 + "]",
|
|
143
|
+
expected: "Plot",
|
|
144
|
+
value: elem
|
|
145
|
+
})) && $vo3(elem, _path2 + ".plots[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
146
|
+
path: _path2 + ".plots[" + _index1 + "]",
|
|
147
|
+
expected: "Plot",
|
|
148
|
+
value: elem
|
|
149
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
150
|
+
path: _path2 + ".plots",
|
|
151
|
+
expected: "Array<Plot>",
|
|
152
|
+
value: input3.plots
|
|
153
|
+
})].every((flag) => flag);
|
|
154
|
+
const $vo3 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.name || $report(_exceptionable2, {
|
|
155
|
+
path: _path2 + ".name",
|
|
156
|
+
expected: "string",
|
|
157
|
+
value: input3.name
|
|
158
|
+
}), void 0 === input3.expCells || (Array.isArray(input3.expCells) || $report(_exceptionable2, {
|
|
159
|
+
path: _path2 + ".expCells",
|
|
160
|
+
expected: "(Array<Cell> | undefined)",
|
|
161
|
+
value: input3.expCells
|
|
162
|
+
})) && input3.expCells.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
163
|
+
path: _path2 + ".expCells[" + _index2 + "]",
|
|
164
|
+
expected: "Cell",
|
|
165
|
+
value: elem
|
|
166
|
+
})) && $vo4(elem, _path2 + ".expCells[" + _index2 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
167
|
+
path: _path2 + ".expCells[" + _index2 + "]",
|
|
168
|
+
expected: "Cell",
|
|
169
|
+
value: elem
|
|
170
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
171
|
+
path: _path2 + ".expCells",
|
|
172
|
+
expected: "(Array<Cell> | undefined)",
|
|
173
|
+
value: input3.expCells
|
|
174
|
+
}), void 0 === input3.noExpCells || (Array.isArray(input3.noExpCells) || $report(_exceptionable2, {
|
|
175
|
+
path: _path2 + ".noExpCells",
|
|
176
|
+
expected: "(Array<Cell> | undefined)",
|
|
177
|
+
value: input3.noExpCells
|
|
178
|
+
})) && input3.noExpCells.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
179
|
+
path: _path2 + ".noExpCells[" + _index3 + "]",
|
|
180
|
+
expected: "Cell",
|
|
181
|
+
value: elem
|
|
182
|
+
})) && $vo4(elem, _path2 + ".noExpCells[" + _index3 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
183
|
+
path: _path2 + ".noExpCells[" + _index3 + "]",
|
|
184
|
+
expected: "Cell",
|
|
185
|
+
value: elem
|
|
186
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
187
|
+
path: _path2 + ".noExpCells",
|
|
188
|
+
expected: "(Array<Cell> | undefined)",
|
|
189
|
+
value: input3.noExpCells
|
|
190
|
+
}), "string" === typeof input3.colorBy || $report(_exceptionable2, {
|
|
191
|
+
path: _path2 + ".colorBy",
|
|
192
|
+
expected: "string",
|
|
193
|
+
value: input3.colorBy
|
|
194
|
+
}), (Array.isArray(input3.colorColumns) || $report(_exceptionable2, {
|
|
195
|
+
path: _path2 + ".colorColumns",
|
|
196
|
+
expected: "Array<string>",
|
|
197
|
+
value: input3.colorColumns
|
|
198
|
+
})) && input3.colorColumns.map((elem, _index4) => "string" === typeof elem || $report(_exceptionable2, {
|
|
199
|
+
path: _path2 + ".colorColumns[" + _index4 + "]",
|
|
200
|
+
expected: "string",
|
|
201
|
+
value: elem
|
|
202
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
203
|
+
path: _path2 + ".colorColumns",
|
|
204
|
+
expected: "Array<string>",
|
|
205
|
+
value: input3.colorColumns
|
|
206
|
+
}), void 0 === input3.colorMap || ("object" === typeof input3.colorMap && null !== input3.colorMap && false === Array.isArray(input3.colorMap) || $report(_exceptionable2, {
|
|
207
|
+
path: _path2 + ".colorMap",
|
|
208
|
+
expected: "(__type | undefined)",
|
|
209
|
+
value: input3.colorMap
|
|
210
|
+
})) && $vo5(input3.colorMap, _path2 + ".colorMap", _exceptionable2) || $report(_exceptionable2, {
|
|
211
|
+
path: _path2 + ".colorMap",
|
|
212
|
+
expected: "(__type | undefined)",
|
|
213
|
+
value: input3.colorMap
|
|
214
|
+
})].every((flag) => flag);
|
|
215
|
+
const $vo4 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.cellId || $report(_exceptionable2, {
|
|
216
|
+
path: _path2 + ".cellId",
|
|
217
|
+
expected: "string",
|
|
218
|
+
value: input3.cellId
|
|
219
|
+
}), "number" === typeof input3.x || $report(_exceptionable2, {
|
|
220
|
+
path: _path2 + ".x",
|
|
221
|
+
expected: "number",
|
|
222
|
+
value: input3.x
|
|
223
|
+
}), "number" === typeof input3.y || $report(_exceptionable2, {
|
|
224
|
+
path: _path2 + ".y",
|
|
225
|
+
expected: "number",
|
|
226
|
+
value: input3.y
|
|
227
|
+
}), void 0 === input3.z || "number" === typeof input3.z || $report(_exceptionable2, {
|
|
228
|
+
path: _path2 + ".z",
|
|
229
|
+
expected: "(number | undefined)",
|
|
230
|
+
value: input3.z
|
|
231
|
+
}), "string" === typeof input3.category || $report(_exceptionable2, {
|
|
232
|
+
path: _path2 + ".category",
|
|
233
|
+
expected: "string",
|
|
234
|
+
value: input3.category
|
|
235
|
+
}), void 0 === input3.geneExp || "number" === typeof input3.geneExp || $report(_exceptionable2, {
|
|
236
|
+
path: _path2 + ".geneExp",
|
|
237
|
+
expected: "(number | undefined)",
|
|
238
|
+
value: input3.geneExp
|
|
239
|
+
})].every((flag) => flag);
|
|
240
|
+
const $vo5 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
|
|
241
|
+
const value = input3[key];
|
|
242
|
+
if (void 0 === value)
|
|
243
|
+
return true;
|
|
244
|
+
if (RegExp(/(.*)/).test(key))
|
|
245
|
+
return "string" === typeof value || $report(_exceptionable2, {
|
|
246
|
+
path: _path2 + $join(key),
|
|
247
|
+
expected: "string",
|
|
248
|
+
value
|
|
249
|
+
});
|
|
250
|
+
return true;
|
|
251
|
+
}).every((flag) => flag)].every((flag) => flag);
|
|
252
|
+
const $vu0 = (input3, _path2, _exceptionable2 = true) => (() => {
|
|
253
|
+
if (void 0 !== input3.status)
|
|
254
|
+
return $vo0(input3, _path2, _exceptionable2);
|
|
255
|
+
if (void 0 !== input3.nodata)
|
|
256
|
+
return $vo1(input3, _path2, _exceptionable2);
|
|
257
|
+
if (void 0 !== input3.plots)
|
|
258
|
+
return $vo2(input3, _path2, _exceptionable2);
|
|
259
|
+
return $report(_exceptionable2, {
|
|
260
|
+
path: _path2,
|
|
261
|
+
expected: "(ErrorResponse | NodataResponse | HasdataResponse)",
|
|
262
|
+
value: input3
|
|
263
|
+
});
|
|
264
|
+
})();
|
|
265
|
+
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
266
|
+
path: _path + "",
|
|
267
|
+
expected: "(ErrorResponse | HasdataResponse | NodataResponse)",
|
|
268
|
+
value: input2
|
|
269
|
+
})) && $vu0(input2, _path + "", true) || $report(true, {
|
|
270
|
+
path: _path + "",
|
|
271
|
+
expected: "(ErrorResponse | HasdataResponse | NodataResponse)",
|
|
272
|
+
value: input2
|
|
273
|
+
});
|
|
274
|
+
})(input, "$input", true);
|
|
275
|
+
}
|
|
276
|
+
const success = 0 === errors.length;
|
|
277
|
+
return {
|
|
278
|
+
success,
|
|
279
|
+
errors,
|
|
280
|
+
data: success ? input : void 0
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
export {
|
|
285
|
+
termdbSingleCellDataPayload,
|
|
286
|
+
validTermdbSingleCellDataRequest,
|
|
287
|
+
validTermdbSingleCellDataResponse
|
|
288
|
+
};
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__toESM,
|
|
3
|
+
require_lib
|
|
4
|
+
} from "./chunk-Z6B6IQIY.js";
|
|
5
|
+
|
|
6
|
+
// dist/termdb.singlecellSamples.ts
|
|
7
|
+
var import_typia = __toESM(require_lib(), 1);
|
|
8
|
+
|
|
9
|
+
// src/routes/termdb.singlecellSamples.ts
|
|
10
|
+
var termdbSingleCellSamplesPayload = {
|
|
11
|
+
request: {
|
|
12
|
+
typeId: "TermdbSingleCellSamplesRequest"
|
|
13
|
+
},
|
|
14
|
+
response: {
|
|
15
|
+
typeId: "TermdbSingleCellSamplesResponse"
|
|
16
|
+
}
|
|
17
|
+
// examples: []
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
// dist/termdb.singlecellSamples.ts
|
|
21
|
+
var validTermdbSingleCellSamplesRequest = (input) => {
|
|
22
|
+
const errors = [];
|
|
23
|
+
const __is = (input2) => {
|
|
24
|
+
return "object" === typeof input2 && null !== input2 && ("string" === typeof input2.genome && "string" === typeof input2.dslabel);
|
|
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
|
+
})].every((flag) => flag);
|
|
38
|
+
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
39
|
+
path: _path + "",
|
|
40
|
+
expected: "TermdbSingleCellSamplesRequest",
|
|
41
|
+
value: input2
|
|
42
|
+
})) && $vo0(input2, _path + "", true) || $report(true, {
|
|
43
|
+
path: _path + "",
|
|
44
|
+
expected: "TermdbSingleCellSamplesRequest",
|
|
45
|
+
value: input2
|
|
46
|
+
});
|
|
47
|
+
})(input, "$input", true);
|
|
48
|
+
}
|
|
49
|
+
const success = 0 === errors.length;
|
|
50
|
+
return {
|
|
51
|
+
success,
|
|
52
|
+
errors,
|
|
53
|
+
data: success ? input : void 0
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
var validTermdbSingleCellSamplesResponse = (input) => {
|
|
57
|
+
const errors = [];
|
|
58
|
+
const __is = (input2) => {
|
|
59
|
+
const $join = import_typia.createValidate.join;
|
|
60
|
+
const $io0 = (input3) => "number" === typeof input3.status && "string" === typeof input3.error;
|
|
61
|
+
const $io1 = (input3) => Array.isArray(input3.samples) && input3.samples.every((elem) => "object" === typeof elem && null !== elem && $io2(elem)) && (Array.isArray(input3.fields) && input3.fields.every((elem) => "string" === typeof elem)) && (Array.isArray(input3.columnNames) && input3.columnNames.every((elem) => "string" === typeof elem)) && (void 0 === input3.sameLegend || "boolean" === typeof input3.sameLegend);
|
|
62
|
+
const $io2 = (input3) => "string" === typeof input3.sample && (void 0 === input3.experiments || Array.isArray(input3.experiments) && input3.experiments.every((elem) => "object" === typeof elem && null !== elem && $io3(elem))) && Object.keys(input3).every((key) => {
|
|
63
|
+
const value = input3[key];
|
|
64
|
+
if (void 0 === value)
|
|
65
|
+
return true;
|
|
66
|
+
if (RegExp(/(.*)/).test(key))
|
|
67
|
+
return true;
|
|
68
|
+
return true;
|
|
69
|
+
});
|
|
70
|
+
const $io3 = (input3) => "string" === typeof input3.experimentID;
|
|
71
|
+
const $iu0 = (input3) => (() => {
|
|
72
|
+
if (void 0 !== input3.status)
|
|
73
|
+
return $io0(input3);
|
|
74
|
+
if (void 0 !== input3.samples)
|
|
75
|
+
return $io1(input3);
|
|
76
|
+
return false;
|
|
77
|
+
})();
|
|
78
|
+
return "object" === typeof input2 && null !== input2 && $iu0(input2);
|
|
79
|
+
};
|
|
80
|
+
if (false === __is(input)) {
|
|
81
|
+
const $report = import_typia.createValidate.report(errors);
|
|
82
|
+
((input2, _path, _exceptionable = true) => {
|
|
83
|
+
const $join = import_typia.createValidate.join;
|
|
84
|
+
const $vo0 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.status || $report(_exceptionable2, {
|
|
85
|
+
path: _path2 + ".status",
|
|
86
|
+
expected: "number",
|
|
87
|
+
value: input3.status
|
|
88
|
+
}), "string" === typeof input3.error || $report(_exceptionable2, {
|
|
89
|
+
path: _path2 + ".error",
|
|
90
|
+
expected: "string",
|
|
91
|
+
value: input3.error
|
|
92
|
+
})].every((flag) => flag);
|
|
93
|
+
const $vo1 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.samples) || $report(_exceptionable2, {
|
|
94
|
+
path: _path2 + ".samples",
|
|
95
|
+
expected: "Array<Sample>",
|
|
96
|
+
value: input3.samples
|
|
97
|
+
})) && input3.samples.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
98
|
+
path: _path2 + ".samples[" + _index1 + "]",
|
|
99
|
+
expected: "Sample",
|
|
100
|
+
value: elem
|
|
101
|
+
})) && $vo2(elem, _path2 + ".samples[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
102
|
+
path: _path2 + ".samples[" + _index1 + "]",
|
|
103
|
+
expected: "Sample",
|
|
104
|
+
value: elem
|
|
105
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
106
|
+
path: _path2 + ".samples",
|
|
107
|
+
expected: "Array<Sample>",
|
|
108
|
+
value: input3.samples
|
|
109
|
+
}), (Array.isArray(input3.fields) || $report(_exceptionable2, {
|
|
110
|
+
path: _path2 + ".fields",
|
|
111
|
+
expected: "Array<string>",
|
|
112
|
+
value: input3.fields
|
|
113
|
+
})) && input3.fields.map((elem, _index2) => "string" === typeof elem || $report(_exceptionable2, {
|
|
114
|
+
path: _path2 + ".fields[" + _index2 + "]",
|
|
115
|
+
expected: "string",
|
|
116
|
+
value: elem
|
|
117
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
118
|
+
path: _path2 + ".fields",
|
|
119
|
+
expected: "Array<string>",
|
|
120
|
+
value: input3.fields
|
|
121
|
+
}), (Array.isArray(input3.columnNames) || $report(_exceptionable2, {
|
|
122
|
+
path: _path2 + ".columnNames",
|
|
123
|
+
expected: "Array<string>",
|
|
124
|
+
value: input3.columnNames
|
|
125
|
+
})) && input3.columnNames.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable2, {
|
|
126
|
+
path: _path2 + ".columnNames[" + _index3 + "]",
|
|
127
|
+
expected: "string",
|
|
128
|
+
value: elem
|
|
129
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
130
|
+
path: _path2 + ".columnNames",
|
|
131
|
+
expected: "Array<string>",
|
|
132
|
+
value: input3.columnNames
|
|
133
|
+
}), void 0 === input3.sameLegend || "boolean" === typeof input3.sameLegend || $report(_exceptionable2, {
|
|
134
|
+
path: _path2 + ".sameLegend",
|
|
135
|
+
expected: "(boolean | undefined)",
|
|
136
|
+
value: input3.sameLegend
|
|
137
|
+
})].every((flag) => flag);
|
|
138
|
+
const $vo2 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.sample || $report(_exceptionable2, {
|
|
139
|
+
path: _path2 + ".sample",
|
|
140
|
+
expected: "string",
|
|
141
|
+
value: input3.sample
|
|
142
|
+
}), void 0 === input3.experiments || (Array.isArray(input3.experiments) || $report(_exceptionable2, {
|
|
143
|
+
path: _path2 + ".experiments",
|
|
144
|
+
expected: "(Array<__type> | undefined)",
|
|
145
|
+
value: input3.experiments
|
|
146
|
+
})) && input3.experiments.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
|
|
147
|
+
path: _path2 + ".experiments[" + _index4 + "]",
|
|
148
|
+
expected: "__type",
|
|
149
|
+
value: elem
|
|
150
|
+
})) && $vo3(elem, _path2 + ".experiments[" + _index4 + "]", _exceptionable2) || $report(_exceptionable2, {
|
|
151
|
+
path: _path2 + ".experiments[" + _index4 + "]",
|
|
152
|
+
expected: "__type",
|
|
153
|
+
value: elem
|
|
154
|
+
})).every((flag) => flag) || $report(_exceptionable2, {
|
|
155
|
+
path: _path2 + ".experiments",
|
|
156
|
+
expected: "(Array<__type> | undefined)",
|
|
157
|
+
value: input3.experiments
|
|
158
|
+
}), false === _exceptionable2 || Object.keys(input3).map((key) => {
|
|
159
|
+
const value = input3[key];
|
|
160
|
+
if (void 0 === value)
|
|
161
|
+
return true;
|
|
162
|
+
if (RegExp(/(.*)/).test(key))
|
|
163
|
+
return true;
|
|
164
|
+
return true;
|
|
165
|
+
}).every((flag) => flag)].every((flag) => flag);
|
|
166
|
+
const $vo3 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.experimentID || $report(_exceptionable2, {
|
|
167
|
+
path: _path2 + ".experimentID",
|
|
168
|
+
expected: "string",
|
|
169
|
+
value: input3.experimentID
|
|
170
|
+
})].every((flag) => flag);
|
|
171
|
+
const $vu0 = (input3, _path2, _exceptionable2 = true) => (() => {
|
|
172
|
+
if (void 0 !== input3.status)
|
|
173
|
+
return $vo0(input3, _path2, _exceptionable2);
|
|
174
|
+
if (void 0 !== input3.samples)
|
|
175
|
+
return $vo1(input3, _path2, _exceptionable2);
|
|
176
|
+
return $report(_exceptionable2, {
|
|
177
|
+
path: _path2,
|
|
178
|
+
expected: "(ErrorResponse | ValidResponse)",
|
|
179
|
+
value: input3
|
|
180
|
+
});
|
|
181
|
+
})();
|
|
182
|
+
return ("object" === typeof input2 && null !== input2 || $report(true, {
|
|
183
|
+
path: _path + "",
|
|
184
|
+
expected: "(ErrorResponse | ValidResponse)",
|
|
185
|
+
value: input2
|
|
186
|
+
})) && $vu0(input2, _path + "", true) || $report(true, {
|
|
187
|
+
path: _path + "",
|
|
188
|
+
expected: "(ErrorResponse | ValidResponse)",
|
|
189
|
+
value: input2
|
|
190
|
+
});
|
|
191
|
+
})(input, "$input", true);
|
|
192
|
+
}
|
|
193
|
+
const success = 0 === errors.length;
|
|
194
|
+
return {
|
|
195
|
+
success,
|
|
196
|
+
errors,
|
|
197
|
+
data: success ? input : void 0
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
export {
|
|
202
|
+
termdbSingleCellSamplesPayload,
|
|
203
|
+
validTermdbSingleCellSamplesRequest,
|
|
204
|
+
validTermdbSingleCellSamplesResponse
|
|
205
|
+
};
|