@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
@@ -0,0 +1,337 @@
1
+ import {
2
+ __toESM,
3
+ require_lib
4
+ } from "./chunk-Z6B6IQIY.js";
5
+
6
+ // dist/healthcheck.ts
7
+ var import_typia = __toESM(require_lib(), 1);
8
+
9
+ // src/routes/healthcheck.ts
10
+ var healthcheckPayload = {
11
+ request: {
12
+ typeId: "HealthCheckRequest"
13
+ },
14
+ response: {
15
+ typeId: "HealthCheckResponse"
16
+ },
17
+ examples: [
18
+ {
19
+ request: { body: {} }
20
+ //response: {}
21
+ },
22
+ {
23
+ request: {
24
+ body: { dsLabel: "TermdbTest" }
25
+ }
26
+ //response: {}
27
+ }
28
+ ]
29
+ };
30
+
31
+ // dist/healthcheck.ts
32
+ var validHealthCheckRequest = (input) => {
33
+ const errors = [];
34
+ const __is = (input2) => {
35
+ const $io0 = (input3) => void 0 === input3.dslabel || "string" === typeof input3.dslabel;
36
+ return "object" === typeof input2 && null !== input2 && false === Array.isArray(input2) && $io0(input2);
37
+ };
38
+ if (false === __is(input)) {
39
+ const $report = import_typia.createValidate.report(errors);
40
+ ((input2, _path, _exceptionable = true) => {
41
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.dslabel || "string" === typeof input3.dslabel || $report(_exceptionable2, {
42
+ path: _path2 + ".dslabel",
43
+ expected: "(string | undefined)",
44
+ value: input3.dslabel
45
+ })].every((flag) => flag);
46
+ return ("object" === typeof input2 && null !== input2 && false === Array.isArray(input2) || $report(true, {
47
+ path: _path + "",
48
+ expected: "HealthCheckRequest",
49
+ value: input2
50
+ })) && $vo0(input2, _path + "", true) || $report(true, {
51
+ path: _path + "",
52
+ expected: "HealthCheckRequest",
53
+ value: input2
54
+ });
55
+ })(input, "$input", true);
56
+ }
57
+ const success = 0 === errors.length;
58
+ return {
59
+ success,
60
+ errors,
61
+ data: success ? input : void 0
62
+ };
63
+ };
64
+ var validHealthCheckResponse = (input) => {
65
+ const errors = [];
66
+ const __is = (input2) => {
67
+ const $join = import_typia.createValidate.join;
68
+ const $io0 = (input3) => ("ok" === input3.status || "error" === input3.status) && ("object" === typeof input3.genomes && null !== input3.genomes && false === Array.isArray(input3.genomes) && $io1(input3.genomes)) && ("object" === typeof input3.versionInfo && null !== input3.versionInfo && $io6(input3.versionInfo)) && (void 0 === input3.byDataset || "object" === typeof input3.byDataset && null !== input3.byDataset && false === Array.isArray(input3.byDataset) && $io9(input3.byDataset)) && (void 0 === input3.auth || "object" === typeof input3.auth && null !== input3.auth && false === Array.isArray(input3.auth) && $io10(input3.auth)) && (void 0 === input3.w || Array.isArray(input3.w) && input3.w.every((elem) => "number" === typeof elem)) && (void 0 === input3.rs || "number" === typeof input3.rs);
69
+ const $io1 = (input3) => Object.keys(input3).every((key) => {
70
+ const value = input3[key];
71
+ if (void 0 === value)
72
+ return true;
73
+ if (RegExp(/(.*)/).test(key))
74
+ return "object" === typeof value && null !== value && $io2(value);
75
+ return true;
76
+ });
77
+ const $io2 = (input3) => "object" === typeof input3.genedb && null !== input3.genedb && $io3(input3.genedb) && (void 0 === input3.termdbs || "object" === typeof input3.termdbs && null !== input3.termdbs && false === Array.isArray(input3.termdbs) && $io5(input3.termdbs));
78
+ const $io3 = (input3) => "string" === typeof input3.buildDate && (void 0 === input3.tables || "object" === typeof input3.tables && null !== input3.tables && false === Array.isArray(input3.tables) && $io4(input3.tables));
79
+ const $io4 = (input3) => Object.keys(input3).every((key) => {
80
+ const value = input3[key];
81
+ if (void 0 === value)
82
+ return true;
83
+ if (RegExp(/(.*)/).test(key))
84
+ return "number" === typeof value;
85
+ return true;
86
+ });
87
+ const $io5 = (input3) => Object.keys(input3).every((key) => {
88
+ const value = input3[key];
89
+ if (void 0 === value)
90
+ return true;
91
+ if (RegExp(/(.*)/).test(key))
92
+ return "object" === typeof value && null !== value && $io3(value);
93
+ return true;
94
+ });
95
+ const $io6 = (input3) => "string" === typeof input3.pkgver && "string" === typeof input3.codedate && "string" === typeof input3.launchdate && ("object" === typeof input3.deps && null !== input3.deps && false === Array.isArray(input3.deps) && $io7(input3.deps));
96
+ const $io7 = (input3) => Object.keys(input3).every((key) => {
97
+ const value = input3[key];
98
+ if (void 0 === value)
99
+ return true;
100
+ if (RegExp(/(.*)/).test(key))
101
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && $io8(value);
102
+ return true;
103
+ });
104
+ const $io8 = (input3) => (void 0 === input3.installed || "string" === typeof input3.installed) && (void 0 === input3.entry || "string" === typeof input3.entry);
105
+ const $io9 = (input3) => Object.keys(input3).every((key) => {
106
+ const value = input3[key];
107
+ if (void 0 === value)
108
+ return true;
109
+ if (RegExp(/(.*)/).test(key))
110
+ return true;
111
+ return true;
112
+ });
113
+ const $io10 = (input3) => void 0 === input3.errors || Array.isArray(input3.errors) && input3.errors.every((elem) => "string" === typeof elem);
114
+ return "object" === typeof input2 && null !== input2 && $io0(input2);
115
+ };
116
+ if (false === __is(input)) {
117
+ const $report = import_typia.createValidate.report(errors);
118
+ ((input2, _path, _exceptionable = true) => {
119
+ const $join = import_typia.createValidate.join;
120
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => ["ok" === input3.status || "error" === input3.status || $report(_exceptionable2, {
121
+ path: _path2 + ".status",
122
+ expected: '("error" | "ok")',
123
+ value: input3.status
124
+ }), ("object" === typeof input3.genomes && null !== input3.genomes && false === Array.isArray(input3.genomes) || $report(_exceptionable2, {
125
+ path: _path2 + ".genomes",
126
+ expected: "BuildByGenome",
127
+ value: input3.genomes
128
+ })) && $vo1(input3.genomes, _path2 + ".genomes", _exceptionable2) || $report(_exceptionable2, {
129
+ path: _path2 + ".genomes",
130
+ expected: "BuildByGenome",
131
+ value: input3.genomes
132
+ }), ("object" === typeof input3.versionInfo && null !== input3.versionInfo || $report(_exceptionable2, {
133
+ path: _path2 + ".versionInfo",
134
+ expected: "VersionInfo",
135
+ value: input3.versionInfo
136
+ })) && $vo6(input3.versionInfo, _path2 + ".versionInfo", _exceptionable2) || $report(_exceptionable2, {
137
+ path: _path2 + ".versionInfo",
138
+ expected: "VersionInfo",
139
+ value: input3.versionInfo
140
+ }), void 0 === input3.byDataset || ("object" === typeof input3.byDataset && null !== input3.byDataset && false === Array.isArray(input3.byDataset) || $report(_exceptionable2, {
141
+ path: _path2 + ".byDataset",
142
+ expected: "(__type.o4 | undefined)",
143
+ value: input3.byDataset
144
+ })) && $vo9(input3.byDataset, _path2 + ".byDataset", _exceptionable2) || $report(_exceptionable2, {
145
+ path: _path2 + ".byDataset",
146
+ expected: "(__type.o4 | undefined)",
147
+ value: input3.byDataset
148
+ }), void 0 === input3.auth || ("object" === typeof input3.auth && null !== input3.auth && false === Array.isArray(input3.auth) || $report(_exceptionable2, {
149
+ path: _path2 + ".auth",
150
+ expected: "(__type.o5 | undefined)",
151
+ value: input3.auth
152
+ })) && $vo10(input3.auth, _path2 + ".auth", _exceptionable2) || $report(_exceptionable2, {
153
+ path: _path2 + ".auth",
154
+ expected: "(__type.o5 | undefined)",
155
+ value: input3.auth
156
+ }), void 0 === input3.w || (Array.isArray(input3.w) || $report(_exceptionable2, {
157
+ path: _path2 + ".w",
158
+ expected: "(Array<number> | undefined)",
159
+ value: input3.w
160
+ })) && input3.w.map((elem, _index1) => "number" === typeof elem || $report(_exceptionable2, {
161
+ path: _path2 + ".w[" + _index1 + "]",
162
+ expected: "number",
163
+ value: elem
164
+ })).every((flag) => flag) || $report(_exceptionable2, {
165
+ path: _path2 + ".w",
166
+ expected: "(Array<number> | undefined)",
167
+ value: input3.w
168
+ }), void 0 === input3.rs || "number" === typeof input3.rs || $report(_exceptionable2, {
169
+ path: _path2 + ".rs",
170
+ expected: "(number | undefined)",
171
+ value: input3.rs
172
+ })].every((flag) => flag);
173
+ const $vo1 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
174
+ const value = input3[key];
175
+ if (void 0 === value)
176
+ return true;
177
+ if (RegExp(/(.*)/).test(key))
178
+ return ("object" === typeof value && null !== value || $report(_exceptionable2, {
179
+ path: _path2 + $join(key),
180
+ expected: "GenomeBuildInfo",
181
+ value
182
+ })) && $vo2(value, _path2 + $join(key), _exceptionable2) || $report(_exceptionable2, {
183
+ path: _path2 + $join(key),
184
+ expected: "GenomeBuildInfo",
185
+ value
186
+ });
187
+ return true;
188
+ }).every((flag) => flag)].every((flag) => flag);
189
+ const $vo2 = (input3, _path2, _exceptionable2 = true) => [("object" === typeof input3.genedb && null !== input3.genedb || $report(_exceptionable2, {
190
+ path: _path2 + ".genedb",
191
+ expected: "DbInfo",
192
+ value: input3.genedb
193
+ })) && $vo3(input3.genedb, _path2 + ".genedb", _exceptionable2) || $report(_exceptionable2, {
194
+ path: _path2 + ".genedb",
195
+ expected: "DbInfo",
196
+ value: input3.genedb
197
+ }), void 0 === input3.termdbs || ("object" === typeof input3.termdbs && null !== input3.termdbs && false === Array.isArray(input3.termdbs) || $report(_exceptionable2, {
198
+ path: _path2 + ".termdbs",
199
+ expected: "(__type.o1 | undefined)",
200
+ value: input3.termdbs
201
+ })) && $vo5(input3.termdbs, _path2 + ".termdbs", _exceptionable2) || $report(_exceptionable2, {
202
+ path: _path2 + ".termdbs",
203
+ expected: "(__type.o1 | undefined)",
204
+ value: input3.termdbs
205
+ })].every((flag) => flag);
206
+ const $vo3 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.buildDate || $report(_exceptionable2, {
207
+ path: _path2 + ".buildDate",
208
+ expected: "string",
209
+ value: input3.buildDate
210
+ }), void 0 === input3.tables || ("object" === typeof input3.tables && null !== input3.tables && false === Array.isArray(input3.tables) || $report(_exceptionable2, {
211
+ path: _path2 + ".tables",
212
+ expected: "(__type | undefined)",
213
+ value: input3.tables
214
+ })) && $vo4(input3.tables, _path2 + ".tables", _exceptionable2) || $report(_exceptionable2, {
215
+ path: _path2 + ".tables",
216
+ expected: "(__type | undefined)",
217
+ value: input3.tables
218
+ })].every((flag) => flag);
219
+ const $vo4 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
220
+ const value = input3[key];
221
+ if (void 0 === value)
222
+ return true;
223
+ if (RegExp(/(.*)/).test(key))
224
+ return "number" === typeof value || $report(_exceptionable2, {
225
+ path: _path2 + $join(key),
226
+ expected: "number",
227
+ value
228
+ });
229
+ return true;
230
+ }).every((flag) => flag)].every((flag) => flag);
231
+ const $vo5 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
232
+ const value = input3[key];
233
+ if (void 0 === value)
234
+ return true;
235
+ if (RegExp(/(.*)/).test(key))
236
+ return ("object" === typeof value && null !== value || $report(_exceptionable2, {
237
+ path: _path2 + $join(key),
238
+ expected: "DbInfo",
239
+ value
240
+ })) && $vo3(value, _path2 + $join(key), _exceptionable2) || $report(_exceptionable2, {
241
+ path: _path2 + $join(key),
242
+ expected: "DbInfo",
243
+ value
244
+ });
245
+ return true;
246
+ }).every((flag) => flag)].every((flag) => flag);
247
+ const $vo6 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.pkgver || $report(_exceptionable2, {
248
+ path: _path2 + ".pkgver",
249
+ expected: "string",
250
+ value: input3.pkgver
251
+ }), "string" === typeof input3.codedate || $report(_exceptionable2, {
252
+ path: _path2 + ".codedate",
253
+ expected: "string",
254
+ value: input3.codedate
255
+ }), "string" === typeof input3.launchdate || $report(_exceptionable2, {
256
+ path: _path2 + ".launchdate",
257
+ expected: "string",
258
+ value: input3.launchdate
259
+ }), ("object" === typeof input3.deps && null !== input3.deps && false === Array.isArray(input3.deps) || $report(_exceptionable2, {
260
+ path: _path2 + ".deps",
261
+ expected: "__type.o2",
262
+ value: input3.deps
263
+ })) && $vo7(input3.deps, _path2 + ".deps", _exceptionable2) || $report(_exceptionable2, {
264
+ path: _path2 + ".deps",
265
+ expected: "__type.o2",
266
+ value: input3.deps
267
+ })].every((flag) => flag);
268
+ const $vo7 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
269
+ const value = input3[key];
270
+ if (void 0 === value)
271
+ return true;
272
+ if (RegExp(/(.*)/).test(key))
273
+ return ("object" === typeof value && null !== value && false === Array.isArray(value) || $report(_exceptionable2, {
274
+ path: _path2 + $join(key),
275
+ expected: "__type.o3",
276
+ value
277
+ })) && $vo8(value, _path2 + $join(key), _exceptionable2) || $report(_exceptionable2, {
278
+ path: _path2 + $join(key),
279
+ expected: "__type.o3",
280
+ value
281
+ });
282
+ return true;
283
+ }).every((flag) => flag)].every((flag) => flag);
284
+ const $vo8 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.installed || "string" === typeof input3.installed || $report(_exceptionable2, {
285
+ path: _path2 + ".installed",
286
+ expected: "(string | undefined)",
287
+ value: input3.installed
288
+ }), void 0 === input3.entry || "string" === typeof input3.entry || $report(_exceptionable2, {
289
+ path: _path2 + ".entry",
290
+ expected: "(string | undefined)",
291
+ value: input3.entry
292
+ })].every((flag) => flag);
293
+ const $vo9 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
294
+ const value = input3[key];
295
+ if (void 0 === value)
296
+ return true;
297
+ if (RegExp(/(.*)/).test(key))
298
+ return true;
299
+ return true;
300
+ }).every((flag) => flag)].every((flag) => flag);
301
+ const $vo10 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.errors || (Array.isArray(input3.errors) || $report(_exceptionable2, {
302
+ path: _path2 + ".errors",
303
+ expected: "(Array<string> | undefined)",
304
+ value: input3.errors
305
+ })) && input3.errors.map((elem, _index2) => "string" === typeof elem || $report(_exceptionable2, {
306
+ path: _path2 + ".errors[" + _index2 + "]",
307
+ expected: "string",
308
+ value: elem
309
+ })).every((flag) => flag) || $report(_exceptionable2, {
310
+ path: _path2 + ".errors",
311
+ expected: "(Array<string> | undefined)",
312
+ value: input3.errors
313
+ })].every((flag) => flag);
314
+ return ("object" === typeof input2 && null !== input2 || $report(true, {
315
+ path: _path + "",
316
+ expected: "HealthCheckResponse",
317
+ value: input2
318
+ })) && $vo0(input2, _path + "", true) || $report(true, {
319
+ path: _path + "",
320
+ expected: "HealthCheckResponse",
321
+ value: input2
322
+ });
323
+ })(input, "$input", true);
324
+ }
325
+ const success = 0 === errors.length;
326
+ return {
327
+ success,
328
+ errors,
329
+ data: success ? input : void 0
330
+ };
331
+ };
332
+
333
+ export {
334
+ healthcheckPayload,
335
+ validHealthCheckRequest,
336
+ validHealthCheckResponse
337
+ };
@@ -0,0 +1,256 @@
1
+ import {
2
+ __toESM,
3
+ require_lib
4
+ } from "./chunk-Z6B6IQIY.js";
5
+
6
+ // dist/termdb.boxplot.ts
7
+ var import_typia = __toESM(require_lib(), 1);
8
+
9
+ // src/routes/termdb.boxplot.ts
10
+ var boxplotPayload = {
11
+ request: {
12
+ typeId: "BoxPlotRequest"
13
+ },
14
+ response: {
15
+ typeId: "BoxPlotResponse"
16
+ }
17
+ //examples: []
18
+ };
19
+
20
+ // dist/termdb.boxplot.ts
21
+ var validBoxPlotRequest = (input) => {
22
+ const errors = [];
23
+ const __is = (input2) => {
24
+ const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && true && true && true;
25
+ return "object" === typeof input2 && null !== input2 && $io0(input2);
26
+ };
27
+ if (false === __is(input)) {
28
+ const $report = import_typia.createValidate.report(errors);
29
+ ((input2, _path, _exceptionable = true) => {
30
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => [true, "string" === typeof input3.genome || $report(_exceptionable2, {
31
+ path: _path2 + ".genome",
32
+ expected: "string",
33
+ value: input3.genome
34
+ }), "string" === typeof input3.dslabel || $report(_exceptionable2, {
35
+ path: _path2 + ".dslabel",
36
+ expected: "string",
37
+ value: input3.dslabel
38
+ }), true, true, true].every((flag) => flag);
39
+ return ("object" === typeof input2 && null !== input2 || $report(true, {
40
+ path: _path + "",
41
+ expected: "BoxPlotRequest",
42
+ value: input2
43
+ })) && $vo0(input2, _path + "", true) || $report(true, {
44
+ path: _path + "",
45
+ expected: "BoxPlotRequest",
46
+ value: input2
47
+ });
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
+ var validBoxPlotResponse = (input) => {
58
+ const errors = [];
59
+ const __is = (input2) => {
60
+ const $io0 = (input3) => (void 0 === input3.absMin || "number" === typeof input3.absMin) && (void 0 === input3.absMax || "number" === typeof input3.absMax) && (Array.isArray(input3.plots) && input3.plots.every((elem) => "object" === typeof elem && null !== elem && $io1(elem))) && (null === input3.uncomputableValues || Array.isArray(input3.uncomputableValues) && input3.uncomputableValues.every((elem) => "object" === typeof elem && null !== elem && $io5(elem)));
61
+ const $io1 = (input3) => "object" === typeof input3.boxplot && null !== input3.boxplot && $io2(input3.boxplot) && (void 0 === input3.color || "string" === typeof input3.color) && (Array.isArray(input3.descrStats) && input3.descrStats.every((elem) => "object" === typeof elem && null !== elem && $io4(elem))) && (void 0 === input3.isHidden || "boolean" === typeof input3.isHidden) && "string" === typeof input3.key && true && (void 0 === input3.seriesId || "string" === typeof input3.seriesId);
62
+ const $io2 = (input3) => (void 0 === input3.w1 || "number" === typeof input3.w1) && (void 0 === input3.w2 || "number" === typeof input3.w2) && "number" === typeof input3.p05 && "number" === typeof input3.p25 && "number" === typeof input3.p50 && "number" === typeof input3.p75 && "number" === typeof input3.p95 && "number" === typeof input3.iqr && (Array.isArray(input3.out) && input3.out.every((elem) => "object" === typeof elem && null !== elem && $io3(elem))) && "string" === typeof input3.label;
63
+ const $io3 = (input3) => "number" === typeof input3.value;
64
+ const $io4 = (input3) => "string" === typeof input3.id && "string" === typeof input3.label && "number" === typeof input3.value;
65
+ const $io5 = (input3) => "string" === typeof input3.label && "number" === typeof input3.value;
66
+ return "object" === typeof input2 && null !== input2 && $io0(input2);
67
+ };
68
+ if (false === __is(input)) {
69
+ const $report = import_typia.createValidate.report(errors);
70
+ ((input2, _path, _exceptionable = true) => {
71
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.absMin || "number" === typeof input3.absMin || $report(_exceptionable2, {
72
+ path: _path2 + ".absMin",
73
+ expected: "(number | undefined)",
74
+ value: input3.absMin
75
+ }), void 0 === input3.absMax || "number" === typeof input3.absMax || $report(_exceptionable2, {
76
+ path: _path2 + ".absMax",
77
+ expected: "(number | undefined)",
78
+ value: input3.absMax
79
+ }), (Array.isArray(input3.plots) || $report(_exceptionable2, {
80
+ path: _path2 + ".plots",
81
+ expected: "Array<BoxPlotEntry>",
82
+ value: input3.plots
83
+ })) && input3.plots.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
84
+ path: _path2 + ".plots[" + _index1 + "]",
85
+ expected: "BoxPlotEntry",
86
+ value: elem
87
+ })) && $vo1(elem, _path2 + ".plots[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
88
+ path: _path2 + ".plots[" + _index1 + "]",
89
+ expected: "BoxPlotEntry",
90
+ value: elem
91
+ })).every((flag) => flag) || $report(_exceptionable2, {
92
+ path: _path2 + ".plots",
93
+ expected: "Array<BoxPlotEntry>",
94
+ value: input3.plots
95
+ }), null === input3.uncomputableValues || (Array.isArray(input3.uncomputableValues) || $report(_exceptionable2, {
96
+ path: _path2 + ".uncomputableValues",
97
+ expected: "(Array<__type>.o1 | null)",
98
+ value: input3.uncomputableValues
99
+ })) && input3.uncomputableValues.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
100
+ path: _path2 + ".uncomputableValues[" + _index2 + "]",
101
+ expected: "__type.o1",
102
+ value: elem
103
+ })) && $vo5(elem, _path2 + ".uncomputableValues[" + _index2 + "]", _exceptionable2) || $report(_exceptionable2, {
104
+ path: _path2 + ".uncomputableValues[" + _index2 + "]",
105
+ expected: "__type.o1",
106
+ value: elem
107
+ })).every((flag) => flag) || $report(_exceptionable2, {
108
+ path: _path2 + ".uncomputableValues",
109
+ expected: "(Array<__type>.o1 | null)",
110
+ value: input3.uncomputableValues
111
+ })].every((flag) => flag);
112
+ const $vo1 = (input3, _path2, _exceptionable2 = true) => [("object" === typeof input3.boxplot && null !== input3.boxplot || $report(_exceptionable2, {
113
+ path: _path2 + ".boxplot",
114
+ expected: "BoxPlotData & { label: string; }",
115
+ value: input3.boxplot
116
+ })) && $vo2(input3.boxplot, _path2 + ".boxplot", _exceptionable2) || $report(_exceptionable2, {
117
+ path: _path2 + ".boxplot",
118
+ expected: "BoxPlotData & { label: string; }",
119
+ value: input3.boxplot
120
+ }), void 0 === input3.color || "string" === typeof input3.color || $report(_exceptionable2, {
121
+ path: _path2 + ".color",
122
+ expected: "(string | undefined)",
123
+ value: input3.color
124
+ }), (Array.isArray(input3.descrStats) || $report(_exceptionable2, {
125
+ path: _path2 + ".descrStats",
126
+ expected: "Array<BoxPlotDescrStatsEntry>",
127
+ value: input3.descrStats
128
+ })) && input3.descrStats.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
129
+ path: _path2 + ".descrStats[" + _index3 + "]",
130
+ expected: "BoxPlotDescrStatsEntry",
131
+ value: elem
132
+ })) && $vo4(elem, _path2 + ".descrStats[" + _index3 + "]", _exceptionable2) || $report(_exceptionable2, {
133
+ path: _path2 + ".descrStats[" + _index3 + "]",
134
+ expected: "BoxPlotDescrStatsEntry",
135
+ value: elem
136
+ })).every((flag) => flag) || $report(_exceptionable2, {
137
+ path: _path2 + ".descrStats",
138
+ expected: "Array<BoxPlotDescrStatsEntry>",
139
+ value: input3.descrStats
140
+ }), void 0 === input3.isHidden || "boolean" === typeof input3.isHidden || $report(_exceptionable2, {
141
+ path: _path2 + ".isHidden",
142
+ expected: "(boolean | undefined)",
143
+ value: input3.isHidden
144
+ }), "string" === typeof input3.key || $report(_exceptionable2, {
145
+ path: _path2 + ".key",
146
+ expected: "string",
147
+ value: input3.key
148
+ }), true, void 0 === input3.seriesId || "string" === typeof input3.seriesId || $report(_exceptionable2, {
149
+ path: _path2 + ".seriesId",
150
+ expected: "(string | undefined)",
151
+ value: input3.seriesId
152
+ })].every((flag) => flag);
153
+ const $vo2 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.w1 || "number" === typeof input3.w1 || $report(_exceptionable2, {
154
+ path: _path2 + ".w1",
155
+ expected: "(number | undefined)",
156
+ value: input3.w1
157
+ }), void 0 === input3.w2 || "number" === typeof input3.w2 || $report(_exceptionable2, {
158
+ path: _path2 + ".w2",
159
+ expected: "(number | undefined)",
160
+ value: input3.w2
161
+ }), "number" === typeof input3.p05 || $report(_exceptionable2, {
162
+ path: _path2 + ".p05",
163
+ expected: "number",
164
+ value: input3.p05
165
+ }), "number" === typeof input3.p25 || $report(_exceptionable2, {
166
+ path: _path2 + ".p25",
167
+ expected: "number",
168
+ value: input3.p25
169
+ }), "number" === typeof input3.p50 || $report(_exceptionable2, {
170
+ path: _path2 + ".p50",
171
+ expected: "number",
172
+ value: input3.p50
173
+ }), "number" === typeof input3.p75 || $report(_exceptionable2, {
174
+ path: _path2 + ".p75",
175
+ expected: "number",
176
+ value: input3.p75
177
+ }), "number" === typeof input3.p95 || $report(_exceptionable2, {
178
+ path: _path2 + ".p95",
179
+ expected: "number",
180
+ value: input3.p95
181
+ }), "number" === typeof input3.iqr || $report(_exceptionable2, {
182
+ path: _path2 + ".iqr",
183
+ expected: "number",
184
+ value: input3.iqr
185
+ }), (Array.isArray(input3.out) || $report(_exceptionable2, {
186
+ path: _path2 + ".out",
187
+ expected: "Array<__type>",
188
+ value: input3.out
189
+ })) && input3.out.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
190
+ path: _path2 + ".out[" + _index4 + "]",
191
+ expected: "__type",
192
+ value: elem
193
+ })) && $vo3(elem, _path2 + ".out[" + _index4 + "]", _exceptionable2) || $report(_exceptionable2, {
194
+ path: _path2 + ".out[" + _index4 + "]",
195
+ expected: "__type",
196
+ value: elem
197
+ })).every((flag) => flag) || $report(_exceptionable2, {
198
+ path: _path2 + ".out",
199
+ expected: "Array<__type>",
200
+ value: input3.out
201
+ }), "string" === typeof input3.label || $report(_exceptionable2, {
202
+ path: _path2 + ".label",
203
+ expected: "string",
204
+ value: input3.label
205
+ })].every((flag) => flag);
206
+ const $vo3 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.value || $report(_exceptionable2, {
207
+ path: _path2 + ".value",
208
+ expected: "number",
209
+ value: input3.value
210
+ })].every((flag) => flag);
211
+ const $vo4 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.id || $report(_exceptionable2, {
212
+ path: _path2 + ".id",
213
+ expected: "string",
214
+ value: input3.id
215
+ }), "string" === typeof input3.label || $report(_exceptionable2, {
216
+ path: _path2 + ".label",
217
+ expected: "string",
218
+ value: input3.label
219
+ }), "number" === typeof input3.value || $report(_exceptionable2, {
220
+ path: _path2 + ".value",
221
+ expected: "number",
222
+ value: input3.value
223
+ })].every((flag) => flag);
224
+ const $vo5 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.label || $report(_exceptionable2, {
225
+ path: _path2 + ".label",
226
+ expected: "string",
227
+ value: input3.label
228
+ }), "number" === typeof input3.value || $report(_exceptionable2, {
229
+ path: _path2 + ".value",
230
+ expected: "number",
231
+ value: input3.value
232
+ })].every((flag) => flag);
233
+ return ("object" === typeof input2 && null !== input2 || $report(true, {
234
+ path: _path + "",
235
+ expected: "BoxPlotResponse",
236
+ value: input2
237
+ })) && $vo0(input2, _path + "", true) || $report(true, {
238
+ path: _path + "",
239
+ expected: "BoxPlotResponse",
240
+ value: input2
241
+ });
242
+ })(input, "$input", true);
243
+ }
244
+ const success = 0 === errors.length;
245
+ return {
246
+ success,
247
+ errors,
248
+ data: success ? input : void 0
249
+ };
250
+ };
251
+
252
+ export {
253
+ boxplotPayload,
254
+ validBoxPlotRequest,
255
+ validBoxPlotResponse
256
+ };