@sjcrh/proteinpaint-types 2.189.0 → 2.190.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 (245) hide show
  1. package/README.md +8 -20
  2. package/dist/index.js +422 -553
  3. package/dist/index.js.map +7 -0
  4. package/package.json +13 -25
  5. package/dist/aiProjectAdmin.js +0 -11
  6. package/dist/aiProjectSelectedWSImages.js +0 -11
  7. package/dist/aiProjectTrainModel.js +0 -11
  8. package/dist/alphaGenome.js +0 -11
  9. package/dist/alphaGenomeTypes.js +0 -11
  10. package/dist/brainImaging.js +0 -11
  11. package/dist/brainImagingSamples.js +0 -11
  12. package/dist/burden.js +0 -11
  13. package/dist/chunk-2744ACBX.js +0 -126
  14. package/dist/chunk-2BCLGYAG.js +0 -96
  15. package/dist/chunk-2C4X5B6N.js +0 -62
  16. package/dist/chunk-2VJRTZE2.js +0 -287
  17. package/dist/chunk-2X36CBQF.js +0 -158
  18. package/dist/chunk-46YIGVUP.js +0 -908
  19. package/dist/chunk-4EAGOSMN.js +0 -128
  20. package/dist/chunk-5H2LJKPX.js +0 -104
  21. package/dist/chunk-5L4VF3ZL.js +0 -266
  22. package/dist/chunk-5N7V62ZL.js +0 -231
  23. package/dist/chunk-62XTWOVJ.js +0 -273
  24. package/dist/chunk-6GKG55BT.js +0 -232
  25. package/dist/chunk-7MUISZHS.js +0 -61
  26. package/dist/chunk-7OA6G77M.js +0 -113
  27. package/dist/chunk-BCBSHTHS.js +0 -75
  28. package/dist/chunk-CQXBQY2H.js +0 -161
  29. package/dist/chunk-CWACV4MW.js +0 -305
  30. package/dist/chunk-D7AKQKDG.js +0 -238
  31. package/dist/chunk-DDKGTDDB.js +0 -6739
  32. package/dist/chunk-DI4Q26E7.js +0 -16
  33. package/dist/chunk-EIJT53QB.js +0 -240
  34. package/dist/chunk-EOKM345J.js +0 -222
  35. package/dist/chunk-FK7OCBPT.js +0 -341
  36. package/dist/chunk-FMC4G5BP.js +0 -62
  37. package/dist/chunk-GCJESMM2.js +0 -354
  38. package/dist/chunk-GTS2G4R4.js +0 -62
  39. package/dist/chunk-HD3J5BKM.js +0 -409
  40. package/dist/chunk-HQV2A7JV.js +0 -62
  41. package/dist/chunk-IS74WYQF.js +0 -207
  42. package/dist/chunk-JEQGBUK2.js +0 -5993
  43. package/dist/chunk-K4FSDTDW.js +0 -109
  44. package/dist/chunk-KCMPDEH7.js +0 -62
  45. package/dist/chunk-KXYFG2HO.js +0 -307
  46. package/dist/chunk-LC6KLHCJ.js +0 -8903
  47. package/dist/chunk-LQYSPLDQ.js +0 -3613
  48. package/dist/chunk-LRVF7U64.js +0 -62
  49. package/dist/chunk-MHDQO7R5.js +0 -195
  50. package/dist/chunk-MKYLCBTP.js +0 -5475
  51. package/dist/chunk-MNT3GF7M.js +0 -3628
  52. package/dist/chunk-MVB7LQS5.js +0 -3986
  53. package/dist/chunk-P25WDNMD.js +0 -171
  54. package/dist/chunk-P3WBZJFF.js +0 -158
  55. package/dist/chunk-PTE2I7DF.js +0 -91
  56. package/dist/chunk-Q3HGHP3J.js +0 -174
  57. package/dist/chunk-RPX4TVMD.js +0 -14
  58. package/dist/chunk-RXJNXOZC.js +0 -326
  59. package/dist/chunk-SDZIGJY3.js +0 -5931
  60. package/dist/chunk-SLXGWQZ4.js +0 -458
  61. package/dist/chunk-SZZXZZKO.js +0 -3991
  62. package/dist/chunk-TD4YLTHL.js +0 -158
  63. package/dist/chunk-TEXOICIS.js +0 -11810
  64. package/dist/chunk-THQOFV2K.js +0 -205
  65. package/dist/chunk-TLZ5ROOU.js +0 -347
  66. package/dist/chunk-TQQWSHFM.js +0 -5980
  67. package/dist/chunk-U3BTVE5T.js +0 -111
  68. package/dist/chunk-UBOVHONH.js +0 -62
  69. package/dist/chunk-UDTEGP3G.js +0 -365
  70. package/dist/chunk-UYJA4UM7.js +0 -97
  71. package/dist/chunk-V3JDD3ZG.js +0 -3671
  72. package/dist/chunk-VUKRI3TG.js +0 -164
  73. package/dist/chunk-W3F3CLYP.js +0 -61
  74. package/dist/chunk-X4JBWMXY.js +0 -130
  75. package/dist/chunk-X5E72ZXA.js +0 -5979
  76. package/dist/chunk-YNHC5SXO.js +0 -1780
  77. package/dist/chunk-YPEFUAJW.js +0 -62
  78. package/dist/chunk-YSTMGNYR.js +0 -113
  79. package/dist/chunk-Z3IYM5OK.js +0 -296
  80. package/dist/chunk-ZCV62ELK.js +0 -96
  81. package/dist/chunk-ZIOJDN75.js +0 -197
  82. package/dist/chunk-ZMDZYG5B.js +0 -4224
  83. package/dist/clearwsisession.js +0 -78
  84. package/dist/clearwsisessions.js +0 -13
  85. package/dist/correlationVolcano.js +0 -11
  86. package/dist/dataset.js +0 -11
  87. package/dist/deleteWSITileSelection.js +0 -11
  88. package/dist/dsdata.js +0 -11
  89. package/dist/dzimages.js +0 -11
  90. package/dist/gdc.grin2.js +0 -17
  91. package/dist/gdc.maf.js +0 -11
  92. package/dist/gdc.mafBuild.js +0 -11
  93. package/dist/genelookup.js +0 -11
  94. package/dist/genesetEnrichment.js +0 -11
  95. package/dist/genesetOverrepresentation.js +0 -11
  96. package/dist/grin2.js +0 -11
  97. package/dist/healthcheck.js +0 -11
  98. package/dist/hicdata.js +0 -11
  99. package/dist/hicgenome.js +0 -11
  100. package/dist/hicstat.js +0 -11
  101. package/dist/img.js +0 -11
  102. package/dist/isoformlst.js +0 -11
  103. package/dist/ntseq.js +0 -11
  104. package/dist/pdomain.js +0 -11
  105. package/dist/samplewsimages.js +0 -13
  106. package/dist/saveWSIAnnotation.js +0 -11
  107. package/dist/snp.js +0 -11
  108. package/dist/termdb.DE.js +0 -11
  109. package/dist/termdb.categories.js +0 -11
  110. package/dist/termdb.chat.js +0 -3631
  111. package/dist/termdb.chat2.js +0 -15
  112. package/dist/termdb.cluster.js +0 -11
  113. package/dist/termdb.cohort.summary.js +0 -11
  114. package/dist/termdb.cohorts.js +0 -11
  115. package/dist/termdb.dapVolcano.js +0 -11
  116. package/dist/termdb.descrstats.js +0 -11
  117. package/dist/termdb.diffMeth.js +0 -11
  118. package/dist/termdb.dmr.js +0 -11
  119. package/dist/termdb.filterTermValues.js +0 -11
  120. package/dist/termdb.isoformAvailability.js +0 -11
  121. package/dist/termdb.numericcategories.js +0 -11
  122. package/dist/termdb.percentile.js +0 -11
  123. package/dist/termdb.profileFormScores.js +0 -11
  124. package/dist/termdb.profileForms2Scores.js +0 -11
  125. package/dist/termdb.profileScores.js +0 -11
  126. package/dist/termdb.proteome.js +0 -11
  127. package/dist/termdb.rootterm.js +0 -11
  128. package/dist/termdb.runChart.js +0 -13
  129. package/dist/termdb.sampleImages.js +0 -11
  130. package/dist/termdb.sampleScatter.js +0 -11
  131. package/dist/termdb.singleSampleMutation.js +0 -11
  132. package/dist/termdb.singlecellDEgenes.js +0 -11
  133. package/dist/termdb.singlecellData.js +0 -11
  134. package/dist/termdb.singlecellSamples.js +0 -11
  135. package/dist/termdb.termchildren.js +0 -11
  136. package/dist/termdb.termsbyids.js +0 -11
  137. package/dist/termdb.topMutatedGenes.js +0 -11
  138. package/dist/termdb.topTermsByType.js +0 -11
  139. package/dist/termdb.topVariablyExpressedGenes.js +0 -11
  140. package/dist/termdb.violinBox.js +0 -17
  141. package/dist/tileserver.js +0 -11
  142. package/dist/wsimages.js +0 -11
  143. package/dist/wsisamples.js +0 -11
  144. package/src/Mclass.ts +0 -8
  145. package/src/dataset.ts +0 -2188
  146. package/src/docs.json +0 -16417
  147. package/src/fileOrUrl.ts +0 -15
  148. package/src/filter.ts +0 -110
  149. package/src/genome.ts +0 -129
  150. package/src/index.ts +0 -94
  151. package/src/routes/aiProjectAdmin.ts +0 -37
  152. package/src/routes/aiProjectSelectedWSImages.ts +0 -47
  153. package/src/routes/aiProjectTrainModel.ts +0 -20
  154. package/src/routes/alphaGenome.ts +0 -27
  155. package/src/routes/alphaGenomeTypes.ts +0 -21
  156. package/src/routes/brainImaging.ts +0 -47
  157. package/src/routes/brainImagingSamples.ts +0 -25
  158. package/src/routes/burden.ts +0 -113
  159. package/src/routes/clearwsisessions.ts +0 -19
  160. package/src/routes/correlationVolcano.ts +0 -51
  161. package/src/routes/dataset.ts +0 -14
  162. package/src/routes/deleteWSITileSelection.ts +0 -25
  163. package/src/routes/dsdata.ts +0 -14
  164. package/src/routes/dzimages.ts +0 -25
  165. package/src/routes/errorResponse.ts +0 -6
  166. package/src/routes/filter.gdc.ts +0 -15
  167. package/src/routes/gdc.grin2.ts +0 -246
  168. package/src/routes/gdc.maf.ts +0 -52
  169. package/src/routes/gdc.mafBuild.ts +0 -20
  170. package/src/routes/genelookup.ts +0 -22
  171. package/src/routes/genesetEnrichment.ts +0 -116
  172. package/src/routes/genesetOverrepresentation.ts +0 -48
  173. package/src/routes/grin2.ts +0 -173
  174. package/src/routes/healthcheck.ts +0 -80
  175. package/src/routes/hicdata.ts +0 -48
  176. package/src/routes/hicgenome.ts +0 -50
  177. package/src/routes/hicstat.ts +0 -57
  178. package/src/routes/img.ts +0 -23
  179. package/src/routes/isoformlst.ts +0 -14
  180. package/src/routes/ntseq.ts +0 -14
  181. package/src/routes/pdomain.ts +0 -14
  182. package/src/routes/routeApi.ts +0 -47
  183. package/src/routes/samplewsimages.ts +0 -44
  184. package/src/routes/saveWSIAnnotation.ts +0 -25
  185. package/src/routes/snp.ts +0 -13
  186. package/src/routes/termdb.DE.ts +0 -226
  187. package/src/routes/termdb.categories.ts +0 -74
  188. package/src/routes/termdb.chat2.ts +0 -190
  189. package/src/routes/termdb.cluster.ts +0 -134
  190. package/src/routes/termdb.cohort.summary.ts +0 -14
  191. package/src/routes/termdb.cohorts.ts +0 -14
  192. package/src/routes/termdb.dapVolcano.ts +0 -35
  193. package/src/routes/termdb.descrstats.ts +0 -75
  194. package/src/routes/termdb.diffMeth.ts +0 -63
  195. package/src/routes/termdb.dmr.ts +0 -121
  196. package/src/routes/termdb.filterTermValues.ts +0 -23
  197. package/src/routes/termdb.isoformAvailability.ts +0 -22
  198. package/src/routes/termdb.numericcategories.ts +0 -32
  199. package/src/routes/termdb.percentile.ts +0 -67
  200. package/src/routes/termdb.profileFormScores.ts +0 -26
  201. package/src/routes/termdb.profileForms2Scores.ts +0 -25
  202. package/src/routes/termdb.profileScores.ts +0 -27
  203. package/src/routes/termdb.proteome.ts +0 -13
  204. package/src/routes/termdb.rootterm.ts +0 -49
  205. package/src/routes/termdb.runChart.ts +0 -66
  206. package/src/routes/termdb.sampleImages.ts +0 -26
  207. package/src/routes/termdb.sampleScatter.ts +0 -60
  208. package/src/routes/termdb.singleSampleMutation.ts +0 -51
  209. package/src/routes/termdb.singlecellDEgenes.ts +0 -50
  210. package/src/routes/termdb.singlecellData.ts +0 -75
  211. package/src/routes/termdb.singlecellSamples.ts +0 -50
  212. package/src/routes/termdb.termchildren.ts +0 -49
  213. package/src/routes/termdb.termsbyids.ts +0 -26
  214. package/src/routes/termdb.topMutatedGenes.ts +0 -51
  215. package/src/routes/termdb.topTermsByType.ts +0 -32
  216. package/src/routes/termdb.topVariablyExpressedGenes.ts +0 -54
  217. package/src/routes/termdb.violinBox.ts +0 -230
  218. package/src/routes/tileserver.ts +0 -14
  219. package/src/routes/wsimages.ts +0 -34
  220. package/src/routes/wsisamples.ts +0 -25
  221. package/src/termdb.matrix.ts +0 -57
  222. package/src/terms/categorical.ts +0 -18
  223. package/src/terms/condition.ts +0 -73
  224. package/src/terms/date.ts +0 -20
  225. package/src/terms/dnaMethylation.ts +0 -28
  226. package/src/terms/geneExpression.ts +0 -38
  227. package/src/terms/geneVariant.ts +0 -132
  228. package/src/terms/isoformExpression.ts +0 -36
  229. package/src/terms/metaboliteIntensity.ts +0 -30
  230. package/src/terms/numeric.ts +0 -278
  231. package/src/terms/proteomeAbundance.ts +0 -38
  232. package/src/terms/q.ts +0 -105
  233. package/src/terms/qualitative.ts +0 -73
  234. package/src/terms/samplelst.ts +0 -34
  235. package/src/terms/singleCellCellType.ts +0 -18
  236. package/src/terms/singleCellGeneExpression.ts +0 -32
  237. package/src/terms/snp.ts +0 -24
  238. package/src/terms/snps.ts +0 -111
  239. package/src/terms/ssGSEA.ts +0 -26
  240. package/src/terms/term.ts +0 -60
  241. package/src/terms/termCollection.ts +0 -139
  242. package/src/terms/tw.ts +0 -64
  243. package/src/termsetting.ts +0 -201
  244. package/src/test/numeric.type.spec.ts +0 -275
  245. package/src/vocab.ts +0 -37
@@ -1,287 +0,0 @@
1
- import {
2
- __toESM,
3
- require_lib
4
- } from "./chunk-YNHC5SXO.js";
5
-
6
- // dist/termdb.runChart.ts
7
- var import_typia = __toESM(require_lib(), 1);
8
-
9
- // src/routes/termdb.runChart.ts
10
- function isRunChartSuccess(r) {
11
- return "status" in r && r.status === "ok";
12
- }
13
- var runChartPayload = {
14
- request: {
15
- typeId: "RunChartRequest"
16
- },
17
- response: {
18
- typeId: "RunChartResponse"
19
- }
20
- };
21
-
22
- // dist/termdb.runChart.ts
23
- var validRunChartRequest = (input) => {
24
- const errors = [];
25
- const __is = (input2) => {
26
- const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && ("object" === typeof input3.xtw && null !== input3.xtw && $io1(input3.xtw)) && (void 0 === input3.ytw || "object" === typeof input3.ytw && null !== input3.ytw && $io4(input3.ytw)) && (void 0 === input3.aggregation || "median" === input3.aggregation) && (void 0 === input3.showCumulativeFrequency || "boolean" === typeof input3.showCumulativeFrequency) && true && true;
27
- const $io1 = (input3) => "object" === typeof input3.term && null !== input3.term && "string" === typeof input3.term.id && (void 0 === input3.q || "object" === typeof input3.q && null !== input3.q && false === Array.isArray(input3.q) && $io3(input3.q)) && (void 0 === input3.$id || "string" === typeof input3.$id);
28
- const $io3 = (input3) => void 0 === input3.mode || "discrete" === input3.mode || "continuous" === input3.mode;
29
- const $io4 = (input3) => "object" === typeof input3.term && null !== input3.term && "string" === typeof input3.term.id && (void 0 === input3.q || "object" === typeof input3.q && null !== input3.q && false === Array.isArray(input3.q) && $io6(input3.q)) && (void 0 === input3.$id || "string" === typeof input3.$id);
30
- const $io6 = (input3) => void 0 === input3.mode || "string" === typeof input3.mode;
31
- return "object" === typeof input2 && null !== input2 && $io0(input2);
32
- };
33
- if (false === __is(input)) {
34
- const $report = import_typia.createValidate.report(errors);
35
- ((input2, _path, _exceptionable = true) => {
36
- const $vo0 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.genome || $report(_exceptionable2, {
37
- path: _path2 + ".genome",
38
- expected: "string",
39
- value: input3.genome
40
- }), "string" === typeof input3.dslabel || $report(_exceptionable2, {
41
- path: _path2 + ".dslabel",
42
- expected: "string",
43
- value: input3.dslabel
44
- }), ("object" === typeof input3.xtw && null !== input3.xtw || $report(_exceptionable2, {
45
- path: _path2 + ".xtw",
46
- expected: "__type",
47
- value: input3.xtw
48
- })) && $vo1(input3.xtw, _path2 + ".xtw", _exceptionable2) || $report(_exceptionable2, {
49
- path: _path2 + ".xtw",
50
- expected: "__type",
51
- value: input3.xtw
52
- }), void 0 === input3.ytw || ("object" === typeof input3.ytw && null !== input3.ytw || $report(_exceptionable2, {
53
- path: _path2 + ".ytw",
54
- expected: "(__type.o3 | undefined)",
55
- value: input3.ytw
56
- })) && $vo4(input3.ytw, _path2 + ".ytw", _exceptionable2) || $report(_exceptionable2, {
57
- path: _path2 + ".ytw",
58
- expected: "(__type.o3 | undefined)",
59
- value: input3.ytw
60
- }), void 0 === input3.aggregation || "median" === input3.aggregation || $report(_exceptionable2, {
61
- path: _path2 + ".aggregation",
62
- expected: '("median" | undefined)',
63
- value: input3.aggregation
64
- }), void 0 === input3.showCumulativeFrequency || "boolean" === typeof input3.showCumulativeFrequency || $report(_exceptionable2, {
65
- path: _path2 + ".showCumulativeFrequency",
66
- expected: "(boolean | undefined)",
67
- value: input3.showCumulativeFrequency
68
- }), true, true].every((flag) => flag);
69
- const $vo1 = (input3, _path2, _exceptionable2 = true) => [("object" === typeof input3.term && null !== input3.term || $report(_exceptionable2, {
70
- path: _path2 + ".term",
71
- expected: "__type.o1",
72
- value: input3.term
73
- })) && $vo2(input3.term, _path2 + ".term", _exceptionable2) || $report(_exceptionable2, {
74
- path: _path2 + ".term",
75
- expected: "__type.o1",
76
- value: input3.term
77
- }), void 0 === input3.q || ("object" === typeof input3.q && null !== input3.q && false === Array.isArray(input3.q) || $report(_exceptionable2, {
78
- path: _path2 + ".q",
79
- expected: "(__type.o2 | undefined)",
80
- value: input3.q
81
- })) && $vo3(input3.q, _path2 + ".q", _exceptionable2) || $report(_exceptionable2, {
82
- path: _path2 + ".q",
83
- expected: "(__type.o2 | undefined)",
84
- value: input3.q
85
- }), void 0 === input3.$id || "string" === typeof input3.$id || $report(_exceptionable2, {
86
- path: _path2 + ".$id",
87
- expected: "(string | undefined)",
88
- value: input3.$id
89
- })].every((flag) => flag);
90
- const $vo2 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.id || $report(_exceptionable2, {
91
- path: _path2 + ".id",
92
- expected: "string",
93
- value: input3.id
94
- })].every((flag) => flag);
95
- const $vo3 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.mode || "discrete" === input3.mode || "continuous" === input3.mode || $report(_exceptionable2, {
96
- path: _path2 + ".mode",
97
- expected: '("continuous" | "discrete" | undefined)',
98
- value: input3.mode
99
- })].every((flag) => flag);
100
- const $vo4 = (input3, _path2, _exceptionable2 = true) => [("object" === typeof input3.term && null !== input3.term || $report(_exceptionable2, {
101
- path: _path2 + ".term",
102
- expected: "__type.o4",
103
- value: input3.term
104
- })) && $vo5(input3.term, _path2 + ".term", _exceptionable2) || $report(_exceptionable2, {
105
- path: _path2 + ".term",
106
- expected: "__type.o4",
107
- value: input3.term
108
- }), void 0 === input3.q || ("object" === typeof input3.q && null !== input3.q && false === Array.isArray(input3.q) || $report(_exceptionable2, {
109
- path: _path2 + ".q",
110
- expected: "(__type.o5 | undefined)",
111
- value: input3.q
112
- })) && $vo6(input3.q, _path2 + ".q", _exceptionable2) || $report(_exceptionable2, {
113
- path: _path2 + ".q",
114
- expected: "(__type.o5 | undefined)",
115
- value: input3.q
116
- }), void 0 === input3.$id || "string" === typeof input3.$id || $report(_exceptionable2, {
117
- path: _path2 + ".$id",
118
- expected: "(string | undefined)",
119
- value: input3.$id
120
- })].every((flag) => flag);
121
- const $vo5 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.id || $report(_exceptionable2, {
122
- path: _path2 + ".id",
123
- expected: "string",
124
- value: input3.id
125
- })].every((flag) => flag);
126
- const $vo6 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.mode || "string" === typeof input3.mode || $report(_exceptionable2, {
127
- path: _path2 + ".mode",
128
- expected: "(string | undefined)",
129
- value: input3.mode
130
- })].every((flag) => flag);
131
- return ("object" === typeof input2 && null !== input2 || $report(true, {
132
- path: _path + "",
133
- expected: "RunChartRequest",
134
- value: input2
135
- })) && $vo0(input2, _path + "", true) || $report(true, {
136
- path: _path + "",
137
- expected: "RunChartRequest",
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 validRunChartResponse = (input) => {
150
- const errors = [];
151
- const __is = (input2) => {
152
- const $io0 = (input3) => "ok" === input3.status && (Array.isArray(input3.series) && input3.series.every((elem) => "object" === typeof elem && null !== elem && $io1(elem)));
153
- const $io1 = (input3) => (void 0 === input3.seriesId || "string" === typeof input3.seriesId) && "number" === typeof input3.median && (Array.isArray(input3.points) && input3.points.every((elem) => "object" === typeof elem && null !== elem && $io2(elem)));
154
- const $io2 = (input3) => "number" === typeof input3.x && "string" === typeof input3.xName && "number" === typeof input3.y && "number" === typeof input3.sampleCount;
155
- const $io3 = (input3) => "string" === typeof input3.error && (Array.isArray(input3.series) && input3.series.every((elem) => "object" === typeof elem && null !== elem && $io1(elem)));
156
- const $iu0 = (input3) => (() => {
157
- if (void 0 !== input3.status)
158
- return $io0(input3);
159
- if (void 0 !== input3.error)
160
- return $io3(input3);
161
- return false;
162
- })();
163
- return "object" === typeof input2 && null !== input2 && $iu0(input2);
164
- };
165
- if (false === __is(input)) {
166
- const $report = import_typia.createValidate.report(errors);
167
- ((input2, _path, _exceptionable = true) => {
168
- const $vo0 = (input3, _path2, _exceptionable2 = true) => ["ok" === input3.status || $report(_exceptionable2, {
169
- path: _path2 + ".status",
170
- expected: '"ok"',
171
- value: input3.status
172
- }), (Array.isArray(input3.series) || $report(_exceptionable2, {
173
- path: _path2 + ".series",
174
- expected: "Array<RunChartSeries>",
175
- value: input3.series
176
- })) && input3.series.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
177
- path: _path2 + ".series[" + _index1 + "]",
178
- expected: "RunChartSeries",
179
- value: elem
180
- })) && $vo1(elem, _path2 + ".series[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
181
- path: _path2 + ".series[" + _index1 + "]",
182
- expected: "RunChartSeries",
183
- value: elem
184
- })).every((flag) => flag) || $report(_exceptionable2, {
185
- path: _path2 + ".series",
186
- expected: "Array<RunChartSeries>",
187
- value: input3.series
188
- })].every((flag) => flag);
189
- const $vo1 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.seriesId || "string" === typeof input3.seriesId || $report(_exceptionable2, {
190
- path: _path2 + ".seriesId",
191
- expected: "(string | undefined)",
192
- value: input3.seriesId
193
- }), "number" === typeof input3.median || $report(_exceptionable2, {
194
- path: _path2 + ".median",
195
- expected: "number",
196
- value: input3.median
197
- }), (Array.isArray(input3.points) || $report(_exceptionable2, {
198
- path: _path2 + ".points",
199
- expected: "Array<Point>",
200
- value: input3.points
201
- })) && input3.points.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
202
- path: _path2 + ".points[" + _index2 + "]",
203
- expected: "Point",
204
- value: elem
205
- })) && $vo2(elem, _path2 + ".points[" + _index2 + "]", _exceptionable2) || $report(_exceptionable2, {
206
- path: _path2 + ".points[" + _index2 + "]",
207
- expected: "Point",
208
- value: elem
209
- })).every((flag) => flag) || $report(_exceptionable2, {
210
- path: _path2 + ".points",
211
- expected: "Array<Point>",
212
- value: input3.points
213
- })].every((flag) => flag);
214
- const $vo2 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.x || $report(_exceptionable2, {
215
- path: _path2 + ".x",
216
- expected: "number",
217
- value: input3.x
218
- }), "string" === typeof input3.xName || $report(_exceptionable2, {
219
- path: _path2 + ".xName",
220
- expected: "string",
221
- value: input3.xName
222
- }), "number" === typeof input3.y || $report(_exceptionable2, {
223
- path: _path2 + ".y",
224
- expected: "number",
225
- value: input3.y
226
- }), "number" === typeof input3.sampleCount || $report(_exceptionable2, {
227
- path: _path2 + ".sampleCount",
228
- expected: "number",
229
- value: input3.sampleCount
230
- })].every((flag) => flag);
231
- const $vo3 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.error || $report(_exceptionable2, {
232
- path: _path2 + ".error",
233
- expected: "string",
234
- value: input3.error
235
- }), (Array.isArray(input3.series) || $report(_exceptionable2, {
236
- path: _path2 + ".series",
237
- expected: "Array<RunChartSeries>",
238
- value: input3.series
239
- })) && input3.series.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
240
- path: _path2 + ".series[" + _index3 + "]",
241
- expected: "RunChartSeries",
242
- value: elem
243
- })) && $vo1(elem, _path2 + ".series[" + _index3 + "]", _exceptionable2) || $report(_exceptionable2, {
244
- path: _path2 + ".series[" + _index3 + "]",
245
- expected: "RunChartSeries",
246
- value: elem
247
- })).every((flag) => flag) || $report(_exceptionable2, {
248
- path: _path2 + ".series",
249
- expected: "Array<RunChartSeries>",
250
- value: input3.series
251
- })].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.error)
256
- return $vo3(input3, _path2, _exceptionable2);
257
- return $report(_exceptionable2, {
258
- path: _path2,
259
- expected: "(RunChartSuccessResponse | RunChartErrorResponse)",
260
- value: input3
261
- });
262
- })();
263
- return ("object" === typeof input2 && null !== input2 || $report(true, {
264
- path: _path + "",
265
- expected: "(RunChartErrorResponse | RunChartSuccessResponse)",
266
- value: input2
267
- })) && $vu0(input2, _path + "", true) || $report(true, {
268
- path: _path + "",
269
- expected: "(RunChartErrorResponse | RunChartSuccessResponse)",
270
- value: input2
271
- });
272
- })(input, "$input", true);
273
- }
274
- const success = 0 === errors.length;
275
- return {
276
- success,
277
- errors,
278
- data: success ? input : void 0
279
- };
280
- };
281
-
282
- export {
283
- isRunChartSuccess,
284
- runChartPayload,
285
- validRunChartRequest,
286
- validRunChartResponse
287
- };
@@ -1,158 +0,0 @@
1
- import {
2
- __toESM,
3
- require_lib
4
- } from "./chunk-YNHC5SXO.js";
5
-
6
- // dist/saveWSIAnnotation.ts
7
- var import_typia = __toESM(require_lib(), 1);
8
-
9
- // src/routes/saveWSIAnnotation.ts
10
- var saveWSIAnnotationPayload = {
11
- request: {
12
- typeId: "SaveWSIAnnotationRequest"
13
- },
14
- response: {
15
- typeId: "SaveWSIAnnotationResponse"
16
- }
17
- };
18
-
19
- // dist/saveWSIAnnotation.ts
20
- var validSaveWSIAnnotationRequest = (input) => {
21
- const errors = [];
22
- const __is = (input2) => {
23
- const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && ("object" === typeof input3.tileSelection && null !== input3.tileSelection && $io1(input3.tileSelection)) && "number" === typeof input3.classId && "number" === typeof input3.projectId && "string" === typeof input3.wsimage;
24
- const $io1 = (input3) => Array.isArray(input3.zoomCoordinates) && (input3.zoomCoordinates.length === 2 && "number" === typeof input3.zoomCoordinates[0] && "number" === typeof input3.zoomCoordinates[1]) && (void 0 === input3["class"] || "string" === typeof input3["class"]) && (0 === input3.flag || 2 === input3.flag || 1 === input3.flag || 3 === input3.flag) && "string" === typeof input3.id && "string" === typeof input3.timestamp;
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) => ["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
- }), ("object" === typeof input3.tileSelection && null !== input3.tileSelection || $report(_exceptionable2, {
39
- path: _path2 + ".tileSelection",
40
- expected: "TileSelection",
41
- value: input3.tileSelection
42
- })) && $vo1(input3.tileSelection, _path2 + ".tileSelection", _exceptionable2) || $report(_exceptionable2, {
43
- path: _path2 + ".tileSelection",
44
- expected: "TileSelection",
45
- value: input3.tileSelection
46
- }), "number" === typeof input3.classId || $report(_exceptionable2, {
47
- path: _path2 + ".classId",
48
- expected: "number",
49
- value: input3.classId
50
- }), "number" === typeof input3.projectId || $report(_exceptionable2, {
51
- path: _path2 + ".projectId",
52
- expected: "number",
53
- value: input3.projectId
54
- }), "string" === typeof input3.wsimage || $report(_exceptionable2, {
55
- path: _path2 + ".wsimage",
56
- expected: "string",
57
- value: input3.wsimage
58
- })].every((flag) => flag);
59
- const $vo1 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.zoomCoordinates) || $report(_exceptionable2, {
60
- path: _path2 + ".zoomCoordinates",
61
- expected: "[number, number]",
62
- value: input3.zoomCoordinates
63
- })) && ((input3.zoomCoordinates.length === 2 || $report(_exceptionable2, {
64
- path: _path2 + ".zoomCoordinates",
65
- expected: "[number, number]",
66
- value: input3.zoomCoordinates
67
- })) && [
68
- "number" === typeof input3.zoomCoordinates[0] || $report(_exceptionable2, {
69
- path: _path2 + ".zoomCoordinates[0]",
70
- expected: "number",
71
- value: input3.zoomCoordinates[0]
72
- }),
73
- "number" === typeof input3.zoomCoordinates[1] || $report(_exceptionable2, {
74
- path: _path2 + ".zoomCoordinates[1]",
75
- expected: "number",
76
- value: input3.zoomCoordinates[1]
77
- })
78
- ].every((flag) => flag)) || $report(_exceptionable2, {
79
- path: _path2 + ".zoomCoordinates",
80
- expected: "[number, number]",
81
- value: input3.zoomCoordinates
82
- }), void 0 === input3["class"] || "string" === typeof input3["class"] || $report(_exceptionable2, {
83
- path: _path2 + '["class"]',
84
- expected: "(string | undefined)",
85
- value: input3["class"]
86
- }), 0 === input3.flag || 2 === input3.flag || 1 === input3.flag || 3 === input3.flag || $report(_exceptionable2, {
87
- path: _path2 + ".flag",
88
- expected: "(0 | 1 | 2 | 3)",
89
- value: input3.flag
90
- }), "string" === typeof input3.id || $report(_exceptionable2, {
91
- path: _path2 + ".id",
92
- expected: "string",
93
- value: input3.id
94
- }), "string" === typeof input3.timestamp || $report(_exceptionable2, {
95
- path: _path2 + ".timestamp",
96
- expected: "string",
97
- value: input3.timestamp
98
- })].every((flag) => flag);
99
- return ("object" === typeof input2 && null !== input2 || $report(true, {
100
- path: _path + "",
101
- expected: "SaveWSIAnnotationRequest",
102
- value: input2
103
- })) && $vo0(input2, _path + "", true) || $report(true, {
104
- path: _path + "",
105
- expected: "SaveWSIAnnotationRequest",
106
- value: input2
107
- });
108
- })(input, "$input", true);
109
- }
110
- const success = 0 === errors.length;
111
- return {
112
- success,
113
- errors,
114
- data: success ? input : void 0
115
- };
116
- };
117
- var validSaveWSIAnnotationResponse = (input) => {
118
- const errors = [];
119
- const __is = (input2) => {
120
- const $io0 = (input3) => ("ok" === input3.status || "error" === input3.status) && (void 0 === input3.error || "string" === typeof input3.error);
121
- return "object" === typeof input2 && null !== input2 && $io0(input2);
122
- };
123
- if (false === __is(input)) {
124
- const $report = import_typia.createValidate.report(errors);
125
- ((input2, _path, _exceptionable = true) => {
126
- const $vo0 = (input3, _path2, _exceptionable2 = true) => ["ok" === input3.status || "error" === input3.status || $report(_exceptionable2, {
127
- path: _path2 + ".status",
128
- expected: '("error" | "ok")',
129
- value: input3.status
130
- }), void 0 === input3.error || "string" === typeof input3.error || $report(_exceptionable2, {
131
- path: _path2 + ".error",
132
- expected: "(string | undefined)",
133
- value: input3.error
134
- })].every((flag) => flag);
135
- return ("object" === typeof input2 && null !== input2 || $report(true, {
136
- path: _path + "",
137
- expected: "SaveWSIAnnotationResponse",
138
- value: input2
139
- })) && $vo0(input2, _path + "", true) || $report(true, {
140
- path: _path + "",
141
- expected: "SaveWSIAnnotationResponse",
142
- value: input2
143
- });
144
- })(input, "$input", true);
145
- }
146
- const success = 0 === errors.length;
147
- return {
148
- success,
149
- errors,
150
- data: success ? input : void 0
151
- };
152
- };
153
-
154
- export {
155
- saveWSIAnnotationPayload,
156
- validSaveWSIAnnotationRequest,
157
- validSaveWSIAnnotationResponse
158
- };