@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.
Files changed (233) hide show
  1. package/README.md +22 -0
  2. package/dist/brainImaging.js +11 -0
  3. package/dist/brainImagingSamples.js +11 -0
  4. package/dist/burden.js +11 -0
  5. package/dist/chunk-37ZPCVP5.js +111 -0
  6. package/dist/chunk-5GG2FNAY.js +62 -0
  7. package/dist/chunk-5JWTIWVB.js +222 -0
  8. package/dist/chunk-5RZYB4M4.js +171 -0
  9. package/dist/chunk-6EFB6ZMB.js +62 -0
  10. package/dist/chunk-6LFMFM2C.js +122 -0
  11. package/dist/chunk-7PMGKVWQ.js +62 -0
  12. package/dist/chunk-7Z3IHB43.js +152 -0
  13. package/dist/chunk-B3D26X6X.js +337 -0
  14. package/dist/chunk-BY2JABTF.js +256 -0
  15. package/dist/chunk-CETMA2FU.js +144 -0
  16. package/dist/chunk-DCN75URO.js +1740 -0
  17. package/dist/chunk-DIDZMC3G.js +96 -0
  18. package/dist/chunk-DKSPASWZ.js +4058 -0
  19. package/dist/chunk-EWRK4PKZ.js +62 -0
  20. package/dist/chunk-FDTUTGQG.js +288 -0
  21. package/dist/chunk-FZ6QOTGM.js +205 -0
  22. package/dist/chunk-GU7LIGHN.js +174 -0
  23. package/dist/chunk-IL33L6MY.js +126 -0
  24. package/dist/chunk-INDBFC54.js +1538 -0
  25. package/dist/chunk-IT7IGDC4.js +1697 -0
  26. package/dist/chunk-IWG5IPXG.js +3409 -0
  27. package/dist/chunk-JEQ3TBVQ.js +1472 -0
  28. package/dist/chunk-JPW6LFDQ.js +1507 -0
  29. package/dist/chunk-K2KQTFQI.js +113 -0
  30. package/dist/chunk-M33KP65Z.js +3347 -0
  31. package/dist/chunk-MUJUKENL.js +62 -0
  32. package/dist/chunk-N45Z3JCY.js +62 -0
  33. package/dist/chunk-OMHEDUNA.js +62 -0
  34. package/dist/chunk-OY3EKV7F.js +130 -0
  35. package/dist/chunk-Q56YNQFK.js +3417 -0
  36. package/dist/chunk-QDIIM52V.js +165 -0
  37. package/dist/chunk-QX7QLUKY.js +228 -0
  38. package/dist/chunk-RLFGMVJZ.js +234 -0
  39. package/dist/chunk-SDOWCOGK.js +96 -0
  40. package/dist/chunk-UCG25D2C.js +109 -0
  41. package/dist/chunk-UIU3IQH4.js +62 -0
  42. package/dist/chunk-W3F2RMPU.js +3494 -0
  43. package/dist/chunk-W3QYIXXF.js +273 -0
  44. package/dist/chunk-XGAOGA3F.js +159 -0
  45. package/dist/chunk-XJCQEOPB.js +61 -0
  46. package/dist/chunk-XLBSZOMF.js +117 -0
  47. package/dist/chunk-XQQ5G6N6.js +109 -0
  48. package/dist/chunk-Z6B6IQIY.js +1785 -0
  49. package/dist/dataset.js +11 -0
  50. package/dist/dsdata.js +11 -0
  51. package/dist/dzimages.js +11 -0
  52. package/dist/gdc.maf.js +11 -0
  53. package/dist/gdc.mafBuild.js +11 -0
  54. package/dist/gdc.topMutatedGenes.js +11 -0
  55. package/dist/genelookup.js +11 -0
  56. package/dist/genesetEnrichment.js +11 -0
  57. package/dist/genesetOverrepresentation.js +11 -0
  58. package/dist/healthcheck.js +11 -0
  59. package/dist/hicdata.js +11 -0
  60. package/dist/hicgenome.js +11 -0
  61. package/dist/hicstat.js +11 -0
  62. package/dist/index.js +347 -0
  63. package/dist/isoformlst.js +11 -0
  64. package/dist/ntseq.js +11 -0
  65. package/dist/pdomain.js +11 -0
  66. package/dist/samplewsimages.js +11 -0
  67. package/dist/snp.js +11 -0
  68. package/dist/termdb.DE.js +11 -0
  69. package/dist/termdb.boxplot.js +11 -0
  70. package/dist/termdb.categories.js +11 -0
  71. package/dist/termdb.cluster.js +11 -0
  72. package/dist/termdb.cohort.summary.js +11 -0
  73. package/dist/termdb.cohorts.js +11 -0
  74. package/dist/termdb.descrstats.js +11 -0
  75. package/dist/termdb.numericcategories.js +11 -0
  76. package/dist/termdb.percentile.js +11 -0
  77. package/dist/termdb.rootterm.js +11 -0
  78. package/dist/termdb.sampleImages.js +11 -0
  79. package/dist/termdb.singleSampleMutation.js +11 -0
  80. package/dist/termdb.singlecellDEgenes.js +11 -0
  81. package/dist/termdb.singlecellData.js +11 -0
  82. package/dist/termdb.singlecellSamples.js +11 -0
  83. package/dist/termdb.termchildren.js +11 -0
  84. package/dist/termdb.termsbyids.js +11 -0
  85. package/dist/termdb.topTermsByType.js +11 -0
  86. package/dist/termdb.topVariablyExpressedGenes.js +11 -0
  87. package/dist/termdb.violin.js +11 -0
  88. package/dist/tileserver.js +11 -0
  89. package/dist/wsimages.js +11 -0
  90. package/package.json +17 -15
  91. package/src/Mclass.ts +8 -0
  92. package/src/dataset.ts +1588 -0
  93. package/src/docs.json +16417 -0
  94. package/src/fileOrUrl.ts +15 -0
  95. package/src/filter.ts +125 -0
  96. package/src/genome.ts +123 -0
  97. package/src/index.ts +67 -0
  98. package/src/routes/brainImaging.ts +47 -0
  99. package/src/routes/brainImagingSamples.ts +25 -0
  100. package/src/routes/burden.ts +111 -0
  101. package/src/routes/dataset.ts +14 -0
  102. package/src/routes/dsdata.ts +14 -0
  103. package/src/routes/dzimages.ts +25 -0
  104. package/src/routes/errorResponse.ts +6 -0
  105. package/src/routes/filter.gdc.ts +15 -0
  106. package/src/routes/gdc.maf.ts +52 -0
  107. package/src/routes/gdc.mafBuild.ts +20 -0
  108. package/src/routes/gdc.topMutatedGenes.ts +37 -0
  109. package/src/routes/genelookup.ts +22 -0
  110. package/src/routes/genesetEnrichment.ts +60 -0
  111. package/src/routes/genesetOverrepresentation.ts +48 -0
  112. package/src/routes/healthcheck.ts +79 -0
  113. package/src/routes/hicdata.ts +48 -0
  114. package/src/routes/hicgenome.ts +50 -0
  115. package/src/routes/hicstat.ts +57 -0
  116. package/src/routes/isoformlst.ts +14 -0
  117. package/src/routes/ntseq.ts +14 -0
  118. package/src/routes/pdomain.ts +14 -0
  119. package/src/routes/routeApi.ts +41 -0
  120. package/src/routes/samplewsimages.ts +27 -0
  121. package/src/routes/snp.ts +13 -0
  122. package/src/routes/termdb.DE.ts +57 -0
  123. package/src/routes/termdb.boxplot.ts +78 -0
  124. package/src/routes/termdb.categories.ts +73 -0
  125. package/src/routes/termdb.cluster.ts +103 -0
  126. package/src/routes/termdb.cohort.summary.ts +14 -0
  127. package/src/routes/termdb.cohorts.ts +14 -0
  128. package/src/routes/termdb.descrstats.ts +78 -0
  129. package/src/routes/termdb.numericcategories.ts +32 -0
  130. package/src/routes/termdb.percentile.ts +65 -0
  131. package/src/routes/termdb.rootterm.ts +49 -0
  132. package/src/routes/termdb.sampleImages.ts +26 -0
  133. package/src/routes/termdb.singleSampleMutation.ts +29 -0
  134. package/src/routes/termdb.singlecellDEgenes.ts +41 -0
  135. package/src/routes/termdb.singlecellData.ts +69 -0
  136. package/src/routes/termdb.singlecellSamples.ts +46 -0
  137. package/src/routes/termdb.termchildren.ts +49 -0
  138. package/src/routes/termdb.termsbyids.ts +26 -0
  139. package/src/routes/termdb.topTermsByType.ts +32 -0
  140. package/src/routes/termdb.topVariablyExpressedGenes.ts +56 -0
  141. package/src/routes/termdb.violin.ts +122 -0
  142. package/src/routes/tileserver.ts +14 -0
  143. package/src/routes/wsimages.ts +24 -0
  144. package/src/terms/categorical.ts +106 -0
  145. package/src/terms/condition.ts +55 -0
  146. package/src/terms/geneExpression.ts +32 -0
  147. package/src/terms/geneVariant.ts +51 -0
  148. package/src/terms/metaboliteIntensity.ts +31 -0
  149. package/src/terms/numeric.ts +253 -0
  150. package/src/terms/q.ts +38 -0
  151. package/src/terms/samplelst.ts +41 -0
  152. package/src/terms/singleCellCellType.ts +22 -0
  153. package/src/terms/singleCellGeneExpression.ts +28 -0
  154. package/src/terms/snp.ts +28 -0
  155. package/src/terms/snps.ts +110 -0
  156. package/src/terms/term.ts +184 -0
  157. package/src/terms/tw.ts +38 -0
  158. package/src/terms/updated-types.ts +9 -0
  159. package/src/termsetting.ts +197 -0
  160. package/src/test/numeric.type.spec.ts +275 -0
  161. package/src/vocab.ts +37 -0
  162. package/dist/routes.ts +0 -28911
  163. package/src/Mclass.js +0 -0
  164. package/src/checkers/routes.js +0 -167
  165. package/src/dataset.js +0 -0
  166. package/src/fileOrUrl.js +0 -0
  167. package/src/filter.js +0 -0
  168. package/src/genome.js +0 -0
  169. package/src/index.js +0 -66
  170. package/src/routes/brainImaging.js +0 -11
  171. package/src/routes/brainImagingSamples.js +0 -11
  172. package/src/routes/burden.js +0 -44
  173. package/src/routes/dataset.js +0 -12
  174. package/src/routes/dsdata.js +0 -12
  175. package/src/routes/dzimages.js +0 -12
  176. package/src/routes/errorResponse.js +0 -0
  177. package/src/routes/filter.gdc.js +0 -0
  178. package/src/routes/gdc.maf.js +0 -17
  179. package/src/routes/gdc.mafBuild.js +0 -12
  180. package/src/routes/gdc.topMutatedGenes.js +0 -12
  181. package/src/routes/genelookup.js +0 -12
  182. package/src/routes/genesetEnrichment.js +0 -12
  183. package/src/routes/genesetOverrepresentation.js +0 -12
  184. package/src/routes/healthcheck.js +0 -23
  185. package/src/routes/hicdata.js +0 -12
  186. package/src/routes/hicgenome.js +0 -29
  187. package/src/routes/hicstat.js +0 -12
  188. package/src/routes/isoformlst.js +0 -12
  189. package/src/routes/ntseq.js +0 -12
  190. package/src/routes/pdomain.js +0 -12
  191. package/src/routes/routeApi.js +0 -0
  192. package/src/routes/samplewsimages.js +0 -12
  193. package/src/routes/snp.js +0 -11
  194. package/src/routes/termdb.DE.js +0 -13
  195. package/src/routes/termdb.boxplot.js +0 -12
  196. package/src/routes/termdb.categories.js +0 -48
  197. package/src/routes/termdb.cluster.js +0 -12
  198. package/src/routes/termdb.cohort.summary.js +0 -12
  199. package/src/routes/termdb.cohorts.js +0 -12
  200. package/src/routes/termdb.descrstats.js +0 -48
  201. package/src/routes/termdb.numericcategories.js +0 -12
  202. package/src/routes/termdb.percentile.js +0 -49
  203. package/src/routes/termdb.rootterm.js +0 -27
  204. package/src/routes/termdb.sampleImages.js +0 -12
  205. package/src/routes/termdb.singleSampleMutation.js +0 -12
  206. package/src/routes/termdb.singlecellDEgenes.js +0 -12
  207. package/src/routes/termdb.singlecellData.js +0 -12
  208. package/src/routes/termdb.singlecellSamples.js +0 -12
  209. package/src/routes/termdb.termchildren.js +0 -28
  210. package/src/routes/termdb.termsbyids.js +0 -12
  211. package/src/routes/termdb.topTermsByType.js +0 -12
  212. package/src/routes/termdb.topVariablyExpressedGenes.js +0 -12
  213. package/src/routes/termdb.violin.js +0 -49
  214. package/src/routes/tileserver.js +0 -12
  215. package/src/routes/wsimages.js +0 -12
  216. package/src/terms/categorical.js +0 -0
  217. package/src/terms/condition.js +0 -0
  218. package/src/terms/geneExpression.js +0 -0
  219. package/src/terms/geneVariant.js +0 -0
  220. package/src/terms/metaboliteIntensity.js +0 -0
  221. package/src/terms/numeric.js +0 -0
  222. package/src/terms/q.js +0 -0
  223. package/src/terms/samplelst.js +0 -0
  224. package/src/terms/singleCellCellType.js +0 -0
  225. package/src/terms/singleCellGeneExpression.js +0 -0
  226. package/src/terms/snp.js +0 -0
  227. package/src/terms/snps.js +0 -0
  228. package/src/terms/term.js +0 -0
  229. package/src/terms/tw.js +0 -0
  230. package/src/terms/updated-types.js +0 -0
  231. package/src/termsetting.js +0 -0
  232. package/src/test/numeric.type.spec.js +0 -117
  233. package/src/vocab.js +0 -0
package/README.md CHANGED
@@ -10,6 +10,28 @@ Put type definitions that are used in client and server code in this workspace.
10
10
  Do NOT put here type definitions that are specific to one workspace,
11
11
  those should be saved in the applicable workspace.
12
12
 
13
+ ## Develop
14
+
15
+ IMPORTANT: When changing source code that are used to generate runtime
16
+ checker code, run `npm run generate` after saving changes. This package
17
+ script will call `typia` to generate runtime code from typescript markup.
18
+ If there are lots of iterations in editing type definitions that could
19
+ affect run time code generation, you may call `npm run dev` which will
20
+ watch changed `src` files and trigger a call to `typia` to regenerate `dist`
21
+ runtime code.
22
+
23
+ Consumer code can use type definitions from `@sjcrh/proteinpaint-types`,
24
+ which maps to `src/index.ts`.
25
+
26
+ Consumer code may also use runtime code from `@sjcrh/proteinpaint-types/checkers`,
27
+ which maps to
28
+ - `dist/index.js` for server code in nodejs env
29
+ - `[public_dir]/dist/*.js` for client code in browser environment, requires symlinking
30
+ from `@sjcrh/proteinpaint-types/dist` to somewhere under `public` dir.
31
+
32
+ Note that in dev environment, `tsx` and `esbuild` are expected to directly transform
33
+ `dist/*.ts` files for server and browser usage, respectively.
34
+
13
35
  ## Test
14
36
 
15
37
  ```sh
@@ -0,0 +1,11 @@
1
+ import {
2
+ brainImagingPayload,
3
+ validBrainImagingRequest,
4
+ validBrainImagingResponse
5
+ } from "./chunk-DCN75URO.js";
6
+ import "./chunk-Z6B6IQIY.js";
7
+ export {
8
+ brainImagingPayload,
9
+ validBrainImagingRequest,
10
+ validBrainImagingResponse
11
+ };
@@ -0,0 +1,11 @@
1
+ import {
2
+ brainImagingSamplesPayload,
3
+ validBrainImagingSamplesRequest,
4
+ validBrainImagingSamplesResponse
5
+ } from "./chunk-OY3EKV7F.js";
6
+ import "./chunk-Z6B6IQIY.js";
7
+ export {
8
+ brainImagingSamplesPayload,
9
+ validBrainImagingSamplesRequest,
10
+ validBrainImagingSamplesResponse
11
+ };
package/dist/burden.js ADDED
@@ -0,0 +1,11 @@
1
+ import {
2
+ burdenPayload,
3
+ validBurdenRequest,
4
+ validBurdenResponse
5
+ } from "./chunk-RLFGMVJZ.js";
6
+ import "./chunk-Z6B6IQIY.js";
7
+ export {
8
+ burdenPayload,
9
+ validBurdenRequest,
10
+ validBurdenResponse
11
+ };
@@ -0,0 +1,111 @@
1
+ import {
2
+ __toESM,
3
+ require_lib
4
+ } from "./chunk-Z6B6IQIY.js";
5
+
6
+ // dist/termdb.sampleImages.ts
7
+ var import_typia = __toESM(require_lib(), 1);
8
+
9
+ // src/routes/termdb.sampleImages.ts
10
+ var termdbSampleImagesPayload = {
11
+ request: {
12
+ typeId: "TermdbSampleImagesRequest"
13
+ },
14
+ response: {
15
+ typeId: "TermdbSampleImagesResponse"
16
+ }
17
+ //examples: []
18
+ };
19
+
20
+ // dist/termdb.sampleImages.ts
21
+ var validTermdbSampleImagesRequest = (input) => {
22
+ const errors = [];
23
+ const __is = (input2) => {
24
+ return "object" === typeof input2 && null !== input2 && ("string" === typeof input2.genome && "string" === typeof input2.dslabel && "number" === typeof input2.sampleId);
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
+ }), "number" === typeof input3.sampleId || $report(_exceptionable2, {
38
+ path: _path2 + ".sampleId",
39
+ expected: "number",
40
+ value: input3.sampleId
41
+ })].every((flag) => flag);
42
+ return ("object" === typeof input2 && null !== input2 || $report(true, {
43
+ path: _path + "",
44
+ expected: "TermdbSampleImagesRequest",
45
+ value: input2
46
+ })) && $vo0(input2, _path + "", true) || $report(true, {
47
+ path: _path + "",
48
+ expected: "TermdbSampleImagesRequest",
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 validTermdbSampleImagesResponse = (input) => {
61
+ const errors = [];
62
+ const __is = (input2) => {
63
+ const $io0 = (input3) => Array.isArray(input3.images) && input3.images.every((elem) => "object" === typeof elem && null !== elem && $io1(elem));
64
+ const $io1 = (input3) => true;
65
+ return "object" === typeof input2 && null !== input2 && $io0(input2);
66
+ };
67
+ if (false === __is(input)) {
68
+ const $report = import_typia.createValidate.report(errors);
69
+ ((input2, _path, _exceptionable = true) => {
70
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.images) || $report(_exceptionable2, {
71
+ path: _path2 + ".images",
72
+ expected: "Array<Image>",
73
+ value: input3.images
74
+ })) && input3.images.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
75
+ path: _path2 + ".images[" + _index1 + "]",
76
+ expected: "Image",
77
+ value: elem
78
+ })) && $vo1(elem, _path2 + ".images[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
79
+ path: _path2 + ".images[" + _index1 + "]",
80
+ expected: "Image",
81
+ value: elem
82
+ })).every((flag) => flag) || $report(_exceptionable2, {
83
+ path: _path2 + ".images",
84
+ expected: "Array<Image>",
85
+ value: input3.images
86
+ })].every((flag) => flag);
87
+ const $vo1 = (input3, _path2, _exceptionable2 = true) => [true].every((flag) => flag);
88
+ return ("object" === typeof input2 && null !== input2 || $report(true, {
89
+ path: _path + "",
90
+ expected: "TermdbSampleImagesResponse",
91
+ value: input2
92
+ })) && $vo0(input2, _path + "", true) || $report(true, {
93
+ path: _path + "",
94
+ expected: "TermdbSampleImagesResponse",
95
+ value: input2
96
+ });
97
+ })(input, "$input", true);
98
+ }
99
+ const success = 0 === errors.length;
100
+ return {
101
+ success,
102
+ errors,
103
+ data: success ? input : void 0
104
+ };
105
+ };
106
+
107
+ export {
108
+ termdbSampleImagesPayload,
109
+ validTermdbSampleImagesRequest,
110
+ validTermdbSampleImagesResponse
111
+ };
@@ -0,0 +1,62 @@
1
+ import {
2
+ __toESM,
3
+ require_lib
4
+ } from "./chunk-Z6B6IQIY.js";
5
+
6
+ // dist/ntseq.ts
7
+ var import_typia = __toESM(require_lib(), 1);
8
+
9
+ // src/routes/ntseq.ts
10
+ var ntseqPayload = {
11
+ request: {
12
+ typeId: "NtseqRequest"
13
+ },
14
+ response: {
15
+ typeId: "NtseqResponse"
16
+ }
17
+ //examples: []
18
+ };
19
+
20
+ // dist/ntseq.ts
21
+ var validNtseqRequest = (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 validNtseqResponse = (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
+ ntseqPayload,
60
+ validNtseqRequest,
61
+ validNtseqResponse
62
+ };
@@ -0,0 +1,222 @@
1
+ import {
2
+ __toESM,
3
+ require_lib
4
+ } from "./chunk-Z6B6IQIY.js";
5
+
6
+ // dist/hicdata.ts
7
+ var import_typia = __toESM(require_lib(), 1);
8
+
9
+ // src/routes/hicdata.ts
10
+ var hicdataPayload = {
11
+ request: {
12
+ typeId: "HicdataRequest"
13
+ },
14
+ response: {
15
+ typeId: "HicdataResponse"
16
+ }
17
+ // examples: []
18
+ };
19
+
20
+ // dist/hicdata.ts
21
+ var validHicdataRequest = (input) => {
22
+ const errors = [];
23
+ const __is = (input2) => {
24
+ const $io0 = (input3) => "string" === typeof input3.file && (null !== input3.url && void 0 === input3.url) && ("observed" === input3.matrixType || "expected" === input3.matrixType || "oe" === input3.matrixType || "log(oe)" === input3.matrixType) && "number" === typeof input3.resolution && "string" === typeof input3.nmeth && "string" === typeof input3.pos1 && "string" === typeof input3.pos2 && (void 0 === input3.isfrag || "boolean" === typeof input3.isfrag) && (void 0 === input3.mincutoff || "number" === typeof input3.mincutoff);
25
+ const $io1 = (input3) => null !== input3.file && void 0 === input3.file && "string" === typeof input3.url && ("observed" === input3.matrixType || "expected" === input3.matrixType || "oe" === input3.matrixType || "log(oe)" === input3.matrixType) && "number" === typeof input3.resolution && "string" === typeof input3.nmeth && "string" === typeof input3.pos1 && "string" === typeof input3.pos2 && (void 0 === input3.isfrag || "boolean" === typeof input3.isfrag) && (void 0 === input3.mincutoff || "number" === typeof input3.mincutoff);
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
+ })), "observed" === input3.matrixType || "expected" === input3.matrixType || "oe" === input3.matrixType || "log(oe)" === input3.matrixType || $report(_exceptionable2, {
51
+ path: _path2 + ".matrixType",
52
+ expected: '("expected" | "log(oe)" | "observed" | "oe")',
53
+ value: input3.matrixType
54
+ }), "number" === typeof input3.resolution || $report(_exceptionable2, {
55
+ path: _path2 + ".resolution",
56
+ expected: "number",
57
+ value: input3.resolution
58
+ }), "string" === typeof input3.nmeth || $report(_exceptionable2, {
59
+ path: _path2 + ".nmeth",
60
+ expected: "string",
61
+ value: input3.nmeth
62
+ }), "string" === typeof input3.pos1 || $report(_exceptionable2, {
63
+ path: _path2 + ".pos1",
64
+ expected: "string",
65
+ value: input3.pos1
66
+ }), "string" === typeof input3.pos2 || $report(_exceptionable2, {
67
+ path: _path2 + ".pos2",
68
+ expected: "string",
69
+ value: input3.pos2
70
+ }), void 0 === input3.isfrag || "boolean" === typeof input3.isfrag || $report(_exceptionable2, {
71
+ path: _path2 + ".isfrag",
72
+ expected: "(boolean | undefined)",
73
+ value: input3.isfrag
74
+ }), void 0 === input3.mincutoff || "number" === typeof input3.mincutoff || $report(_exceptionable2, {
75
+ path: _path2 + ".mincutoff",
76
+ expected: "(number | undefined)",
77
+ value: input3.mincutoff
78
+ })].every((flag) => flag);
79
+ const $vo1 = (input3, _path2, _exceptionable2 = true) => [(null !== input3.file || $report(_exceptionable2, {
80
+ path: _path2 + ".file",
81
+ expected: "undefined",
82
+ value: input3.file
83
+ })) && (void 0 === input3.file || $report(_exceptionable2, {
84
+ path: _path2 + ".file",
85
+ expected: "undefined",
86
+ value: input3.file
87
+ })), "string" === typeof input3.url || $report(_exceptionable2, {
88
+ path: _path2 + ".url",
89
+ expected: "string",
90
+ value: input3.url
91
+ }), "observed" === input3.matrixType || "expected" === input3.matrixType || "oe" === input3.matrixType || "log(oe)" === input3.matrixType || $report(_exceptionable2, {
92
+ path: _path2 + ".matrixType",
93
+ expected: '("expected" | "log(oe)" | "observed" | "oe")',
94
+ value: input3.matrixType
95
+ }), "number" === typeof input3.resolution || $report(_exceptionable2, {
96
+ path: _path2 + ".resolution",
97
+ expected: "number",
98
+ value: input3.resolution
99
+ }), "string" === typeof input3.nmeth || $report(_exceptionable2, {
100
+ path: _path2 + ".nmeth",
101
+ expected: "string",
102
+ value: input3.nmeth
103
+ }), "string" === typeof input3.pos1 || $report(_exceptionable2, {
104
+ path: _path2 + ".pos1",
105
+ expected: "string",
106
+ value: input3.pos1
107
+ }), "string" === typeof input3.pos2 || $report(_exceptionable2, {
108
+ path: _path2 + ".pos2",
109
+ expected: "string",
110
+ value: input3.pos2
111
+ }), void 0 === input3.isfrag || "boolean" === typeof input3.isfrag || $report(_exceptionable2, {
112
+ path: _path2 + ".isfrag",
113
+ expected: "(boolean | undefined)",
114
+ value: input3.isfrag
115
+ }), void 0 === input3.mincutoff || "number" === typeof input3.mincutoff || $report(_exceptionable2, {
116
+ path: _path2 + ".mincutoff",
117
+ expected: "(number | undefined)",
118
+ value: input3.mincutoff
119
+ })].every((flag) => flag);
120
+ const $vu0 = (input3, _path2, _exceptionable2 = true) => (() => {
121
+ if ("string" === typeof input3.url)
122
+ return $vo1(input3, _path2, _exceptionable2);
123
+ if ("string" === typeof input3.file)
124
+ return $vo0(input3, _path2, _exceptionable2);
125
+ return $report(_exceptionable2, {
126
+ path: _path2,
127
+ expected: '(URLNotFile & { matrixType: "observed" | "expected" | "oe" | "log(oe)"; resolution: number; nmeth: string; } & { pos1: string; pos2: string; isfrag?: boolean | undefined; mincutoff?: number | undefined; } | FileNotURL & { matrixType: "observed" | "expected" | "oe" | "log(oe)"; resolution: number; nmeth: string; } & { pos1: string; pos2: string; isfrag?: boolean | undefined; mincutoff?: number | undefined; })',
128
+ value: input3
129
+ });
130
+ })();
131
+ return ("object" === typeof input2 && null !== input2 || $report(true, {
132
+ path: _path + "",
133
+ expected: '(FileNotURL & { matrixType: "observed" | "expected" | "oe" | "log(oe)"; resolution: number; nmeth: string; } & { pos1: string; pos2: string; isfrag?: boolean | undefined; mincutoff?: number | undefined; } | URLNotFile & { matrixType: "observed" | "expected" | "oe" | "log(oe)"; resolution: number; nmeth: string; } & { pos1: string; pos2: string; isfrag?: boolean | undefined; mincutoff?: number | undefined; })',
134
+ value: input2
135
+ })) && $vu0(input2, _path + "", true) || $report(true, {
136
+ path: _path + "",
137
+ expected: '(FileNotURL & { matrixType: "observed" | "expected" | "oe" | "log(oe)"; resolution: number; nmeth: string; } & { pos1: string; pos2: string; isfrag?: boolean | undefined; mincutoff?: number | undefined; } | URLNotFile & { matrixType: "observed" | "expected" | "oe" | "log(oe)"; resolution: number; nmeth: string; } & { pos1: string; pos2: string; isfrag?: boolean | undefined; mincutoff?: number | undefined; })',
138
+ value: input2
139
+ });
140
+ })(input, "$input", true);
141
+ }
142
+ const success = 0 === errors.length;
143
+ return {
144
+ success,
145
+ errors,
146
+ data: success ? input : void 0
147
+ };
148
+ };
149
+ var validHicdataResponse = (input) => {
150
+ const errors = [];
151
+ const __is = (input2) => {
152
+ const $io0 = (input3) => (void 0 === input3.error || "string" === typeof input3.error) && (Array.isArray(input3.items) && input3.items.every((elem) => Array.isArray(elem) && (elem.length === 3 && "number" === typeof elem[0] && "number" === typeof elem[1] && "number" === typeof elem[2])));
153
+ return "object" === typeof input2 && null !== input2 && $io0(input2);
154
+ };
155
+ if (false === __is(input)) {
156
+ const $report = import_typia.createValidate.report(errors);
157
+ ((input2, _path, _exceptionable = true) => {
158
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.error || "string" === typeof input3.error || $report(_exceptionable2, {
159
+ path: _path2 + ".error",
160
+ expected: "(string | undefined)",
161
+ value: input3.error
162
+ }), (Array.isArray(input3.items) || $report(_exceptionable2, {
163
+ path: _path2 + ".items",
164
+ expected: "Array<XYZCoord>",
165
+ value: input3.items
166
+ })) && input3.items.map((elem, _index1) => (Array.isArray(elem) || $report(_exceptionable2, {
167
+ path: _path2 + ".items[" + _index1 + "]",
168
+ expected: "XYZCoord",
169
+ value: elem
170
+ })) && ((elem.length === 3 || $report(_exceptionable2, {
171
+ path: _path2 + ".items[" + _index1 + "]",
172
+ expected: "[number, number, number]",
173
+ value: elem
174
+ })) && [
175
+ "number" === typeof elem[0] || $report(_exceptionable2, {
176
+ path: _path2 + ".items[" + _index1 + "][0]",
177
+ expected: "number",
178
+ value: elem[0]
179
+ }),
180
+ "number" === typeof elem[1] || $report(_exceptionable2, {
181
+ path: _path2 + ".items[" + _index1 + "][1]",
182
+ expected: "number",
183
+ value: elem[1]
184
+ }),
185
+ "number" === typeof elem[2] || $report(_exceptionable2, {
186
+ path: _path2 + ".items[" + _index1 + "][2]",
187
+ expected: "number",
188
+ value: elem[2]
189
+ })
190
+ ].every((flag) => flag)) || $report(_exceptionable2, {
191
+ path: _path2 + ".items[" + _index1 + "]",
192
+ expected: "XYZCoord",
193
+ value: elem
194
+ })).every((flag) => flag) || $report(_exceptionable2, {
195
+ path: _path2 + ".items",
196
+ expected: "Array<XYZCoord>",
197
+ value: input3.items
198
+ })].every((flag) => flag);
199
+ return ("object" === typeof input2 && null !== input2 || $report(true, {
200
+ path: _path + "",
201
+ expected: "HicdataResponse",
202
+ value: input2
203
+ })) && $vo0(input2, _path + "", true) || $report(true, {
204
+ path: _path + "",
205
+ expected: "HicdataResponse",
206
+ value: input2
207
+ });
208
+ })(input, "$input", true);
209
+ }
210
+ const success = 0 === errors.length;
211
+ return {
212
+ success,
213
+ errors,
214
+ data: success ? input : void 0
215
+ };
216
+ };
217
+
218
+ export {
219
+ hicdataPayload,
220
+ validHicdataRequest,
221
+ validHicdataResponse
222
+ };
@@ -0,0 +1,171 @@
1
+ import {
2
+ __toESM,
3
+ require_lib
4
+ } from "./chunk-Z6B6IQIY.js";
5
+
6
+ // dist/termdb.termchildren.ts
7
+ var import_typia = __toESM(require_lib(), 1);
8
+
9
+ // src/routes/termdb.termchildren.ts
10
+ var termChildrenPayload = {
11
+ request: {
12
+ typeId: "TermChildrenRequest"
13
+ },
14
+ response: {
15
+ typeId: "TermChildrenResponse"
16
+ },
17
+ examples: [
18
+ {
19
+ request: {
20
+ body: {
21
+ genome: "hg38-test",
22
+ dslabel: "TermdbTest",
23
+ embedder: "localhost",
24
+ get_children: 1,
25
+ cohortValues: "ABC",
26
+ tid: "GO:0000001"
27
+ }
28
+ },
29
+ response: {
30
+ header: { status: 200 }
31
+ }
32
+ }
33
+ ]
34
+ };
35
+
36
+ // dist/termdb.termchildren.ts
37
+ var validTermChildrenRequest = (input) => {
38
+ const errors = [];
39
+ const __is = (input2) => {
40
+ return "object" === typeof input2 && null !== input2 && ("string" === typeof input2.genome && "string" === typeof input2.dslabel && "string" === typeof input2.embedder && "number" === typeof input2.get_children && "string" === typeof input2.tid);
41
+ };
42
+ if (false === __is(input)) {
43
+ const $report = import_typia.createValidate.report(errors);
44
+ ((input2, _path, _exceptionable = true) => {
45
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.genome || $report(_exceptionable2, {
46
+ path: _path2 + ".genome",
47
+ expected: "string",
48
+ value: input3.genome
49
+ }), "string" === typeof input3.dslabel || $report(_exceptionable2, {
50
+ path: _path2 + ".dslabel",
51
+ expected: "string",
52
+ value: input3.dslabel
53
+ }), "string" === typeof input3.embedder || $report(_exceptionable2, {
54
+ path: _path2 + ".embedder",
55
+ expected: "string",
56
+ value: input3.embedder
57
+ }), "number" === typeof input3.get_children || $report(_exceptionable2, {
58
+ path: _path2 + ".get_children",
59
+ expected: "number",
60
+ value: input3.get_children
61
+ }), "string" === typeof input3.tid || $report(_exceptionable2, {
62
+ path: _path2 + ".tid",
63
+ expected: "string",
64
+ value: input3.tid
65
+ })].every((flag) => flag);
66
+ return ("object" === typeof input2 && null !== input2 || $report(true, {
67
+ path: _path + "",
68
+ expected: "TermChildrenRequest",
69
+ value: input2
70
+ })) && $vo0(input2, _path + "", true) || $report(true, {
71
+ path: _path + "",
72
+ expected: "TermChildrenRequest",
73
+ value: input2
74
+ });
75
+ })(input, "$input", true);
76
+ }
77
+ const success = 0 === errors.length;
78
+ return {
79
+ success,
80
+ errors,
81
+ data: success ? input : void 0
82
+ };
83
+ };
84
+ var validTermChildrenResponse = (input) => {
85
+ const errors = [];
86
+ const __is = (input2) => {
87
+ const $io0 = (input3) => Array.isArray(input3.lst) && input3.lst.every((elem) => "object" === typeof elem && null !== elem && $io1(elem));
88
+ const $io1 = (input3) => "string" === typeof input3.name && "string" === typeof input3.id && "boolean" === typeof input3.isleaf && (Array.isArray(input3.included_types) && input3.included_types.every((elem) => "string" === typeof elem)) && (Array.isArray(input3.child_types) && input3.child_types.every((elem) => "string" === typeof elem));
89
+ return "object" === typeof input2 && null !== input2 && $io0(input2);
90
+ };
91
+ if (false === __is(input)) {
92
+ const $report = import_typia.createValidate.report(errors);
93
+ ((input2, _path, _exceptionable = true) => {
94
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.lst) || $report(_exceptionable2, {
95
+ path: _path2 + ".lst",
96
+ expected: "Array<Entries>",
97
+ value: input3.lst
98
+ })) && input3.lst.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
99
+ path: _path2 + ".lst[" + _index1 + "]",
100
+ expected: "Entries",
101
+ value: elem
102
+ })) && $vo1(elem, _path2 + ".lst[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
103
+ path: _path2 + ".lst[" + _index1 + "]",
104
+ expected: "Entries",
105
+ value: elem
106
+ })).every((flag) => flag) || $report(_exceptionable2, {
107
+ path: _path2 + ".lst",
108
+ expected: "Array<Entries>",
109
+ value: input3.lst
110
+ })].every((flag) => flag);
111
+ const $vo1 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.name || $report(_exceptionable2, {
112
+ path: _path2 + ".name",
113
+ expected: "string",
114
+ value: input3.name
115
+ }), "string" === typeof input3.id || $report(_exceptionable2, {
116
+ path: _path2 + ".id",
117
+ expected: "string",
118
+ value: input3.id
119
+ }), "boolean" === typeof input3.isleaf || $report(_exceptionable2, {
120
+ path: _path2 + ".isleaf",
121
+ expected: "boolean",
122
+ value: input3.isleaf
123
+ }), (Array.isArray(input3.included_types) || $report(_exceptionable2, {
124
+ path: _path2 + ".included_types",
125
+ expected: "Array<string>",
126
+ value: input3.included_types
127
+ })) && input3.included_types.map((elem, _index2) => "string" === typeof elem || $report(_exceptionable2, {
128
+ path: _path2 + ".included_types[" + _index2 + "]",
129
+ expected: "string",
130
+ value: elem
131
+ })).every((flag) => flag) || $report(_exceptionable2, {
132
+ path: _path2 + ".included_types",
133
+ expected: "Array<string>",
134
+ value: input3.included_types
135
+ }), (Array.isArray(input3.child_types) || $report(_exceptionable2, {
136
+ path: _path2 + ".child_types",
137
+ expected: "Array<string>",
138
+ value: input3.child_types
139
+ })) && input3.child_types.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable2, {
140
+ path: _path2 + ".child_types[" + _index3 + "]",
141
+ expected: "string",
142
+ value: elem
143
+ })).every((flag) => flag) || $report(_exceptionable2, {
144
+ path: _path2 + ".child_types",
145
+ expected: "Array<string>",
146
+ value: input3.child_types
147
+ })].every((flag) => flag);
148
+ return ("object" === typeof input2 && null !== input2 || $report(true, {
149
+ path: _path + "",
150
+ expected: "TermChildrenResponse",
151
+ value: input2
152
+ })) && $vo0(input2, _path + "", true) || $report(true, {
153
+ path: _path + "",
154
+ expected: "TermChildrenResponse",
155
+ value: input2
156
+ });
157
+ })(input, "$input", true);
158
+ }
159
+ const success = 0 === errors.length;
160
+ return {
161
+ success,
162
+ errors,
163
+ data: success ? input : void 0
164
+ };
165
+ };
166
+
167
+ export {
168
+ termChildrenPayload,
169
+ validTermChildrenRequest,
170
+ validTermChildrenResponse
171
+ };