@sjcrh/proteinpaint-types 2.177.0 → 2.178.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/brainImaging.js +1 -1
  2. package/dist/{chunk-LHJGTOZJ.js → chunk-26UKKPK2.js} +1301 -594
  3. package/dist/{chunk-4SOVPEYQ.js → chunk-2XQJCZEO.js} +842 -243
  4. package/dist/{chunk-UQEAM7BH.js → chunk-2Y7WE3JU.js} +1301 -594
  5. package/dist/chunk-4DCPDZW4.js +143 -0
  6. package/dist/{chunk-5KF6Z3GL.js → chunk-CX2Y673E.js} +923 -329
  7. package/dist/chunk-CYQDO4FX.js +3191 -0
  8. package/dist/{chunk-W7UCAYSF.js → chunk-FQYNRDHB.js} +923 -329
  9. package/dist/chunk-FRXRNCDV.js +14 -0
  10. package/dist/{chunk-F4YCPOQV.js → chunk-GAYJUXNZ.js} +947 -353
  11. package/dist/{chunk-7WEVNKAM.js → chunk-HZEV7D5E.js} +1301 -594
  12. package/dist/{chunk-4ZMQ5CTL.js → chunk-NIEACU6R.js} +7 -31
  13. package/dist/{chunk-Q6MWNJ2V.js → chunk-NRV6MPRM.js} +3421 -1378
  14. package/dist/{chunk-44LN7YTE.js → chunk-PHRILOVX.js} +923 -329
  15. package/dist/{chunk-URHI6FFP.js → chunk-UFYKXOY2.js} +2233 -690
  16. package/dist/{chunk-63OD34W2.js → chunk-UWAVSKMD.js} +1301 -594
  17. package/dist/chunk-VBNF7BRI.js +3492 -0
  18. package/dist/{chunk-2DJFVQUQ.js → chunk-WXCXZRKP.js} +1305 -598
  19. package/dist/{chunk-7NKZVHIZ.js → chunk-YHKFJCXG.js} +1445 -496
  20. package/dist/correlationVolcano.js +1 -1
  21. package/dist/grin2.js +1 -1
  22. package/dist/index.js +79 -61
  23. package/dist/termdb.boxplot.js +1 -1
  24. package/dist/termdb.categories.js +1 -1
  25. package/dist/termdb.chat.js +3122 -5
  26. package/dist/termdb.chat2.js +13 -0
  27. package/dist/termdb.cluster.js +1 -1
  28. package/dist/termdb.descrstats.js +1 -1
  29. package/dist/termdb.diffMeth.js +11 -0
  30. package/dist/termdb.dmr.js +11 -0
  31. package/dist/termdb.numericcategories.js +1 -1
  32. package/dist/termdb.percentile.js +1 -1
  33. package/dist/termdb.singlecellData.js +1 -1
  34. package/dist/termdb.termsbyids.js +1 -1
  35. package/dist/termdb.topTermsByType.js +1 -1
  36. package/dist/termdb.topVariablyExpressedGenes.js +1 -1
  37. package/dist/termdb.violin.js +1 -1
  38. package/package.json +1 -1
  39. package/src/dataset.ts +55 -8
  40. package/src/index.ts +5 -1
  41. package/src/routes/grin2.ts +5 -11
  42. package/src/routes/{termdb.chat.ts → termdb.chat2.ts} +42 -15
  43. package/src/routes/termdb.cluster.ts +11 -0
  44. package/src/routes/termdb.diffMeth.ts +49 -0
  45. package/src/routes/termdb.dmr.ts +47 -0
  46. package/src/routes/termdb.singlecellData.ts +3 -1
  47. package/src/terms/dnaMethylation.ts +19 -0
  48. package/src/terms/numeric.ts +13 -2
  49. package/src/terms/singleCellCellType.ts +1 -1
  50. package/src/terms/singleCellGeneExpression.ts +25 -19
  51. package/src/terms/term.ts +1 -1
  52. package/src/terms/termCollection.ts +93 -21
  53. package/src/terms/wholeProteomeAbundance.ts +30 -0
  54. package/dist/chunk-WWE2SDCU.js +0 -494
@@ -1,494 +0,0 @@
1
- import {
2
- __toESM,
3
- require_lib
4
- } from "./chunk-YNHC5SXO.js";
5
-
6
- // dist/grin2.ts
7
- var import_typia = __toESM(require_lib(), 1);
8
-
9
- // src/routes/grin2.ts
10
- var GRIN2Payload = {
11
- request: {
12
- typeId: "GRIN2Request"
13
- },
14
- response: {
15
- typeId: "GRIN2Response"
16
- }
17
- };
18
-
19
- // dist/grin2.ts
20
- var validGRIN2Request = (input) => {
21
- const errors = [];
22
- const __is = (input2) => {
23
- const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && (void 0 === input3.devicePixelRatio || "number" === typeof input3.devicePixelRatio) && (void 0 === input3.width || "number" === typeof input3.width) && (void 0 === input3.height || "number" === typeof input3.height) && (void 0 === input3.pngDotRadius || "number" === typeof input3.pngDotRadius) && true && (void 0 === input3.qValueThreshold || "number" === typeof input3.qValueThreshold) && (void 0 === input3.logCutoff || "number" === typeof input3.logCutoff) && "number" === typeof input3.maxCappedPoints && "number" === typeof input3.hardCap && "number" === typeof input3.binSize && true && (void 0 === input3.snvindelOptions || "object" === typeof input3.snvindelOptions && null !== input3.snvindelOptions && false === Array.isArray(input3.snvindelOptions) && $io1(input3.snvindelOptions)) && (void 0 === input3.cnvOptions || "object" === typeof input3.cnvOptions && null !== input3.cnvOptions && false === Array.isArray(input3.cnvOptions) && $io2(input3.cnvOptions)) && (void 0 === input3.fusionOptions || "object" === typeof input3.fusionOptions && null !== input3.fusionOptions && false === Array.isArray(input3.fusionOptions) && $io3(input3.fusionOptions)) && (void 0 === input3.svOptions || "object" === typeof input3.svOptions && null !== input3.svOptions && false === Array.isArray(input3.svOptions) && $io4(input3.svOptions)) && (void 0 === input3.maxGenesToShow || "number" === typeof input3.maxGenesToShow);
24
- const $io1 = (input3) => (void 0 === input3.minTotalDepth || "number" === typeof input3.minTotalDepth) && (void 0 === input3.minAltAlleleCount || "number" === typeof input3.minAltAlleleCount) && (void 0 === input3.consequences || Array.isArray(input3.consequences) && input3.consequences.every((elem) => "string" === typeof elem)) && (void 0 === input3.hyperMutator || "number" === typeof input3.hyperMutator) && (void 0 === input3.fivePrimeFlankSize || "number" === typeof input3.fivePrimeFlankSize) && (void 0 === input3.threePrimeFlankSize || "number" === typeof input3.threePrimeFlankSize);
25
- const $io2 = (input3) => (void 0 === input3.lossThreshold || "number" === typeof input3.lossThreshold) && (void 0 === input3.gainThreshold || "number" === typeof input3.gainThreshold) && (void 0 === input3.maxSegLength || "number" === typeof input3.maxSegLength) && (void 0 === input3.hyperMutator || "number" === typeof input3.hyperMutator) && (void 0 === input3.fivePrimeFlankSize || "number" === typeof input3.fivePrimeFlankSize) && (void 0 === input3.threePrimeFlankSize || "number" === typeof input3.threePrimeFlankSize);
26
- const $io3 = (input3) => (void 0 === input3.fivePrimeFlankSize || "number" === typeof input3.fivePrimeFlankSize) && (void 0 === input3.threePrimeFlankSize || "number" === typeof input3.threePrimeFlankSize);
27
- const $io4 = (input3) => (void 0 === input3.fivePrimeFlankSize || "number" === typeof input3.fivePrimeFlankSize) && (void 0 === input3.threePrimeFlankSize || "number" === typeof input3.threePrimeFlankSize);
28
- return "object" === typeof input2 && null !== input2 && $io0(input2);
29
- };
30
- if (false === __is(input)) {
31
- const $report = import_typia.createValidate.report(errors);
32
- ((input2, _path, _exceptionable = true) => {
33
- const $vo0 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.genome || $report(_exceptionable2, {
34
- path: _path2 + ".genome",
35
- expected: "string",
36
- value: input3.genome
37
- }), "string" === typeof input3.dslabel || $report(_exceptionable2, {
38
- path: _path2 + ".dslabel",
39
- expected: "string",
40
- value: input3.dslabel
41
- }), void 0 === input3.devicePixelRatio || "number" === typeof input3.devicePixelRatio || $report(_exceptionable2, {
42
- path: _path2 + ".devicePixelRatio",
43
- expected: "(number | undefined)",
44
- value: input3.devicePixelRatio
45
- }), void 0 === input3.width || "number" === typeof input3.width || $report(_exceptionable2, {
46
- path: _path2 + ".width",
47
- expected: "(number | undefined)",
48
- value: input3.width
49
- }), void 0 === input3.height || "number" === typeof input3.height || $report(_exceptionable2, {
50
- path: _path2 + ".height",
51
- expected: "(number | undefined)",
52
- value: input3.height
53
- }), void 0 === input3.pngDotRadius || "number" === typeof input3.pngDotRadius || $report(_exceptionable2, {
54
- path: _path2 + ".pngDotRadius",
55
- expected: "(number | undefined)",
56
- value: input3.pngDotRadius
57
- }), true, void 0 === input3.qValueThreshold || "number" === typeof input3.qValueThreshold || $report(_exceptionable2, {
58
- path: _path2 + ".qValueThreshold",
59
- expected: "(number | undefined)",
60
- value: input3.qValueThreshold
61
- }), void 0 === input3.logCutoff || "number" === typeof input3.logCutoff || $report(_exceptionable2, {
62
- path: _path2 + ".logCutoff",
63
- expected: "(number | undefined)",
64
- value: input3.logCutoff
65
- }), "number" === typeof input3.maxCappedPoints || $report(_exceptionable2, {
66
- path: _path2 + ".maxCappedPoints",
67
- expected: "number",
68
- value: input3.maxCappedPoints
69
- }), "number" === typeof input3.hardCap || $report(_exceptionable2, {
70
- path: _path2 + ".hardCap",
71
- expected: "number",
72
- value: input3.hardCap
73
- }), "number" === typeof input3.binSize || $report(_exceptionable2, {
74
- path: _path2 + ".binSize",
75
- expected: "number",
76
- value: input3.binSize
77
- }), true, void 0 === input3.snvindelOptions || ("object" === typeof input3.snvindelOptions && null !== input3.snvindelOptions && false === Array.isArray(input3.snvindelOptions) || $report(_exceptionable2, {
78
- path: _path2 + ".snvindelOptions",
79
- expected: "(__type | undefined)",
80
- value: input3.snvindelOptions
81
- })) && $vo1(input3.snvindelOptions, _path2 + ".snvindelOptions", _exceptionable2) || $report(_exceptionable2, {
82
- path: _path2 + ".snvindelOptions",
83
- expected: "(__type | undefined)",
84
- value: input3.snvindelOptions
85
- }), void 0 === input3.cnvOptions || ("object" === typeof input3.cnvOptions && null !== input3.cnvOptions && false === Array.isArray(input3.cnvOptions) || $report(_exceptionable2, {
86
- path: _path2 + ".cnvOptions",
87
- expected: "(__type.o1 | undefined)",
88
- value: input3.cnvOptions
89
- })) && $vo2(input3.cnvOptions, _path2 + ".cnvOptions", _exceptionable2) || $report(_exceptionable2, {
90
- path: _path2 + ".cnvOptions",
91
- expected: "(__type.o1 | undefined)",
92
- value: input3.cnvOptions
93
- }), void 0 === input3.fusionOptions || ("object" === typeof input3.fusionOptions && null !== input3.fusionOptions && false === Array.isArray(input3.fusionOptions) || $report(_exceptionable2, {
94
- path: _path2 + ".fusionOptions",
95
- expected: "(__type.o2 | undefined)",
96
- value: input3.fusionOptions
97
- })) && $vo3(input3.fusionOptions, _path2 + ".fusionOptions", _exceptionable2) || $report(_exceptionable2, {
98
- path: _path2 + ".fusionOptions",
99
- expected: "(__type.o2 | undefined)",
100
- value: input3.fusionOptions
101
- }), void 0 === input3.svOptions || ("object" === typeof input3.svOptions && null !== input3.svOptions && false === Array.isArray(input3.svOptions) || $report(_exceptionable2, {
102
- path: _path2 + ".svOptions",
103
- expected: "(__type.o3 | undefined)",
104
- value: input3.svOptions
105
- })) && $vo4(input3.svOptions, _path2 + ".svOptions", _exceptionable2) || $report(_exceptionable2, {
106
- path: _path2 + ".svOptions",
107
- expected: "(__type.o3 | undefined)",
108
- value: input3.svOptions
109
- }), void 0 === input3.maxGenesToShow || "number" === typeof input3.maxGenesToShow || $report(_exceptionable2, {
110
- path: _path2 + ".maxGenesToShow",
111
- expected: "(number | undefined)",
112
- value: input3.maxGenesToShow
113
- })].every((flag) => flag);
114
- const $vo1 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.minTotalDepth || "number" === typeof input3.minTotalDepth || $report(_exceptionable2, {
115
- path: _path2 + ".minTotalDepth",
116
- expected: "(number | undefined)",
117
- value: input3.minTotalDepth
118
- }), void 0 === input3.minAltAlleleCount || "number" === typeof input3.minAltAlleleCount || $report(_exceptionable2, {
119
- path: _path2 + ".minAltAlleleCount",
120
- expected: "(number | undefined)",
121
- value: input3.minAltAlleleCount
122
- }), void 0 === input3.consequences || (Array.isArray(input3.consequences) || $report(_exceptionable2, {
123
- path: _path2 + ".consequences",
124
- expected: "(Array<string> | undefined)",
125
- value: input3.consequences
126
- })) && input3.consequences.map((elem, _index1) => "string" === typeof elem || $report(_exceptionable2, {
127
- path: _path2 + ".consequences[" + _index1 + "]",
128
- expected: "string",
129
- value: elem
130
- })).every((flag) => flag) || $report(_exceptionable2, {
131
- path: _path2 + ".consequences",
132
- expected: "(Array<string> | undefined)",
133
- value: input3.consequences
134
- }), void 0 === input3.hyperMutator || "number" === typeof input3.hyperMutator || $report(_exceptionable2, {
135
- path: _path2 + ".hyperMutator",
136
- expected: "(number | undefined)",
137
- value: input3.hyperMutator
138
- }), void 0 === input3.fivePrimeFlankSize || "number" === typeof input3.fivePrimeFlankSize || $report(_exceptionable2, {
139
- path: _path2 + ".fivePrimeFlankSize",
140
- expected: "(number | undefined)",
141
- value: input3.fivePrimeFlankSize
142
- }), void 0 === input3.threePrimeFlankSize || "number" === typeof input3.threePrimeFlankSize || $report(_exceptionable2, {
143
- path: _path2 + ".threePrimeFlankSize",
144
- expected: "(number | undefined)",
145
- value: input3.threePrimeFlankSize
146
- })].every((flag) => flag);
147
- const $vo2 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.lossThreshold || "number" === typeof input3.lossThreshold || $report(_exceptionable2, {
148
- path: _path2 + ".lossThreshold",
149
- expected: "(number | undefined)",
150
- value: input3.lossThreshold
151
- }), void 0 === input3.gainThreshold || "number" === typeof input3.gainThreshold || $report(_exceptionable2, {
152
- path: _path2 + ".gainThreshold",
153
- expected: "(number | undefined)",
154
- value: input3.gainThreshold
155
- }), void 0 === input3.maxSegLength || "number" === typeof input3.maxSegLength || $report(_exceptionable2, {
156
- path: _path2 + ".maxSegLength",
157
- expected: "(number | undefined)",
158
- value: input3.maxSegLength
159
- }), void 0 === input3.hyperMutator || "number" === typeof input3.hyperMutator || $report(_exceptionable2, {
160
- path: _path2 + ".hyperMutator",
161
- expected: "(number | undefined)",
162
- value: input3.hyperMutator
163
- }), void 0 === input3.fivePrimeFlankSize || "number" === typeof input3.fivePrimeFlankSize || $report(_exceptionable2, {
164
- path: _path2 + ".fivePrimeFlankSize",
165
- expected: "(number | undefined)",
166
- value: input3.fivePrimeFlankSize
167
- }), void 0 === input3.threePrimeFlankSize || "number" === typeof input3.threePrimeFlankSize || $report(_exceptionable2, {
168
- path: _path2 + ".threePrimeFlankSize",
169
- expected: "(number | undefined)",
170
- value: input3.threePrimeFlankSize
171
- })].every((flag) => flag);
172
- const $vo3 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.fivePrimeFlankSize || "number" === typeof input3.fivePrimeFlankSize || $report(_exceptionable2, {
173
- path: _path2 + ".fivePrimeFlankSize",
174
- expected: "(number | undefined)",
175
- value: input3.fivePrimeFlankSize
176
- }), void 0 === input3.threePrimeFlankSize || "number" === typeof input3.threePrimeFlankSize || $report(_exceptionable2, {
177
- path: _path2 + ".threePrimeFlankSize",
178
- expected: "(number | undefined)",
179
- value: input3.threePrimeFlankSize
180
- })].every((flag) => flag);
181
- const $vo4 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.fivePrimeFlankSize || "number" === typeof input3.fivePrimeFlankSize || $report(_exceptionable2, {
182
- path: _path2 + ".fivePrimeFlankSize",
183
- expected: "(number | undefined)",
184
- value: input3.fivePrimeFlankSize
185
- }), void 0 === input3.threePrimeFlankSize || "number" === typeof input3.threePrimeFlankSize || $report(_exceptionable2, {
186
- path: _path2 + ".threePrimeFlankSize",
187
- expected: "(number | undefined)",
188
- value: input3.threePrimeFlankSize
189
- })].every((flag) => flag);
190
- return ("object" === typeof input2 && null !== input2 || $report(true, {
191
- path: _path + "",
192
- expected: "GRIN2Request",
193
- value: input2
194
- })) && $vo0(input2, _path + "", true) || $report(true, {
195
- path: _path + "",
196
- expected: "GRIN2Request",
197
- value: input2
198
- });
199
- })(input, "$input", true);
200
- }
201
- const success = 0 === errors.length;
202
- return {
203
- success,
204
- errors,
205
- data: success ? input : void 0
206
- };
207
- };
208
- var validGRIN2Response = (input) => {
209
- const errors = [];
210
- const __is = (input2) => {
211
- const $join = import_typia.createValidate.join;
212
- const $io0 = (input3) => ("error" === input3.status || "success" === input3.status) && (void 0 === input3.error || "string" === typeof input3.error) && (void 0 === input3.pngImg || "string" === typeof input3.pngImg) && (void 0 === input3.plotData || "object" === typeof input3.plotData && null !== input3.plotData && $io1(input3.plotData)) && true && (void 0 === input3.topGeneTable || "object" === typeof input3.topGeneTable && null !== input3.topGeneTable && $io5(input3.topGeneTable)) && (void 0 === input3.stats || "object" === typeof input3.stats && null !== input3.stats && $io8(input3.stats));
213
- const $io1 = (input3) => Array.isArray(input3.points) && input3.points.every((elem) => "object" === typeof elem && null !== elem && $io2(elem)) && ("object" === typeof input3.chrom_data && null !== input3.chrom_data && false === Array.isArray(input3.chrom_data) && $io3(input3.chrom_data)) && "number" === typeof input3.total_genome_length && "boolean" === typeof input3.has_capped_points;
214
- const $io2 = (input3) => "number" === typeof input3.x && "number" === typeof input3.y && "string" === typeof input3.color && "string" === typeof input3.type && "string" === typeof input3.gene && "string" === typeof input3.chrom && "number" === typeof input3.start && "number" === typeof input3.end && "number" === typeof input3.pos && "number" === typeof input3.nsubj;
215
- const $io3 = (input3) => Object.keys(input3).every((key) => {
216
- const value = input3[key];
217
- if (void 0 === value)
218
- return true;
219
- if (RegExp(/(.*)/).test(key))
220
- return "object" === typeof value && null !== value && ("number" === typeof value.start && "number" === typeof value.size && "number" === typeof value.center);
221
- return true;
222
- });
223
- const $io5 = (input3) => Array.isArray(input3.columns) && input3.columns.every((elem) => "object" === typeof elem && null !== elem && $io6(elem)) && (Array.isArray(input3.rows) && input3.rows.every((elem) => Array.isArray(elem) && elem.every((elem2) => "object" === typeof elem2 && null !== elem2 && $io7(elem2))));
224
- const $io6 = (input3) => "string" === typeof input3.label && "boolean" === typeof input3.sortable;
225
- const $io7 = (input3) => "string" === typeof input3.value || "number" === typeof input3.value;
226
- const $io8 = (input3) => Array.isArray(input3.lst) && input3.lst.every((elem) => "object" === typeof elem && null !== elem && $io9(elem));
227
- const $io9 = (input3) => "string" === typeof input3.name && (Array.isArray(input3.rows) && input3.rows.every((elem) => Array.isArray(elem) && elem.every((elem2) => "string" === typeof elem2)));
228
- return "object" === typeof input2 && null !== input2 && $io0(input2);
229
- };
230
- if (false === __is(input)) {
231
- const $report = import_typia.createValidate.report(errors);
232
- ((input2, _path, _exceptionable = true) => {
233
- const $join = import_typia.createValidate.join;
234
- const $vo0 = (input3, _path2, _exceptionable2 = true) => ["error" === input3.status || "success" === input3.status || $report(_exceptionable2, {
235
- path: _path2 + ".status",
236
- expected: '("error" | "success")',
237
- value: input3.status
238
- }), void 0 === input3.error || "string" === typeof input3.error || $report(_exceptionable2, {
239
- path: _path2 + ".error",
240
- expected: "(string | undefined)",
241
- value: input3.error
242
- }), void 0 === input3.pngImg || "string" === typeof input3.pngImg || $report(_exceptionable2, {
243
- path: _path2 + ".pngImg",
244
- expected: "(string | undefined)",
245
- value: input3.pngImg
246
- }), void 0 === input3.plotData || ("object" === typeof input3.plotData && null !== input3.plotData || $report(_exceptionable2, {
247
- path: _path2 + ".plotData",
248
- expected: "(grin2PlotData | undefined)",
249
- value: input3.plotData
250
- })) && $vo1(input3.plotData, _path2 + ".plotData", _exceptionable2) || $report(_exceptionable2, {
251
- path: _path2 + ".plotData",
252
- expected: "(grin2PlotData | undefined)",
253
- value: input3.plotData
254
- }), true, void 0 === input3.topGeneTable || ("object" === typeof input3.topGeneTable && null !== input3.topGeneTable || $report(_exceptionable2, {
255
- path: _path2 + ".topGeneTable",
256
- expected: "(__type.o2 | undefined)",
257
- value: input3.topGeneTable
258
- })) && $vo5(input3.topGeneTable, _path2 + ".topGeneTable", _exceptionable2) || $report(_exceptionable2, {
259
- path: _path2 + ".topGeneTable",
260
- expected: "(__type.o2 | undefined)",
261
- value: input3.topGeneTable
262
- }), void 0 === input3.stats || ("object" === typeof input3.stats && null !== input3.stats || $report(_exceptionable2, {
263
- path: _path2 + ".stats",
264
- expected: "(__type.o5 | undefined)",
265
- value: input3.stats
266
- })) && $vo8(input3.stats, _path2 + ".stats", _exceptionable2) || $report(_exceptionable2, {
267
- path: _path2 + ".stats",
268
- expected: "(__type.o5 | undefined)",
269
- value: input3.stats
270
- })].every((flag) => flag);
271
- const $vo1 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.points) || $report(_exceptionable2, {
272
- path: _path2 + ".points",
273
- expected: "Array<__type>",
274
- value: input3.points
275
- })) && input3.points.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
276
- path: _path2 + ".points[" + _index1 + "]",
277
- expected: "__type",
278
- value: elem
279
- })) && $vo2(elem, _path2 + ".points[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
280
- path: _path2 + ".points[" + _index1 + "]",
281
- expected: "__type",
282
- value: elem
283
- })).every((flag) => flag) || $report(_exceptionable2, {
284
- path: _path2 + ".points",
285
- expected: "Array<__type>",
286
- value: input3.points
287
- }), ("object" === typeof input3.chrom_data && null !== input3.chrom_data && false === Array.isArray(input3.chrom_data) || $report(_exceptionable2, {
288
- path: _path2 + ".chrom_data",
289
- expected: "Record<string, __type>",
290
- value: input3.chrom_data
291
- })) && $vo3(input3.chrom_data, _path2 + ".chrom_data", _exceptionable2) || $report(_exceptionable2, {
292
- path: _path2 + ".chrom_data",
293
- expected: "Record<string, __type>",
294
- value: input3.chrom_data
295
- }), "number" === typeof input3.total_genome_length || $report(_exceptionable2, {
296
- path: _path2 + ".total_genome_length",
297
- expected: "number",
298
- value: input3.total_genome_length
299
- }), "boolean" === typeof input3.has_capped_points || $report(_exceptionable2, {
300
- path: _path2 + ".has_capped_points",
301
- expected: "boolean",
302
- value: input3.has_capped_points
303
- })].every((flag) => flag);
304
- const $vo2 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.x || $report(_exceptionable2, {
305
- path: _path2 + ".x",
306
- expected: "number",
307
- value: input3.x
308
- }), "number" === typeof input3.y || $report(_exceptionable2, {
309
- path: _path2 + ".y",
310
- expected: "number",
311
- value: input3.y
312
- }), "string" === typeof input3.color || $report(_exceptionable2, {
313
- path: _path2 + ".color",
314
- expected: "string",
315
- value: input3.color
316
- }), "string" === typeof input3.type || $report(_exceptionable2, {
317
- path: _path2 + ".type",
318
- expected: "string",
319
- value: input3.type
320
- }), "string" === typeof input3.gene || $report(_exceptionable2, {
321
- path: _path2 + ".gene",
322
- expected: "string",
323
- value: input3.gene
324
- }), "string" === typeof input3.chrom || $report(_exceptionable2, {
325
- path: _path2 + ".chrom",
326
- expected: "string",
327
- value: input3.chrom
328
- }), "number" === typeof input3.start || $report(_exceptionable2, {
329
- path: _path2 + ".start",
330
- expected: "number",
331
- value: input3.start
332
- }), "number" === typeof input3.end || $report(_exceptionable2, {
333
- path: _path2 + ".end",
334
- expected: "number",
335
- value: input3.end
336
- }), "number" === typeof input3.pos || $report(_exceptionable2, {
337
- path: _path2 + ".pos",
338
- expected: "number",
339
- value: input3.pos
340
- }), "number" === typeof input3.nsubj || $report(_exceptionable2, {
341
- path: _path2 + ".nsubj",
342
- expected: "number",
343
- value: input3.nsubj
344
- })].every((flag) => flag);
345
- const $vo3 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
346
- const value = input3[key];
347
- if (void 0 === value)
348
- return true;
349
- if (RegExp(/(.*)/).test(key))
350
- return ("object" === typeof value && null !== value || $report(_exceptionable2, {
351
- path: _path2 + $join(key),
352
- expected: "__type.o1",
353
- value
354
- })) && $vo4(value, _path2 + $join(key), _exceptionable2) || $report(_exceptionable2, {
355
- path: _path2 + $join(key),
356
- expected: "__type.o1",
357
- value
358
- });
359
- return true;
360
- }).every((flag) => flag)].every((flag) => flag);
361
- const $vo4 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.start || $report(_exceptionable2, {
362
- path: _path2 + ".start",
363
- expected: "number",
364
- value: input3.start
365
- }), "number" === typeof input3.size || $report(_exceptionable2, {
366
- path: _path2 + ".size",
367
- expected: "number",
368
- value: input3.size
369
- }), "number" === typeof input3.center || $report(_exceptionable2, {
370
- path: _path2 + ".center",
371
- expected: "number",
372
- value: input3.center
373
- })].every((flag) => flag);
374
- const $vo5 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.columns) || $report(_exceptionable2, {
375
- path: _path2 + ".columns",
376
- expected: "Array<__type>.o1",
377
- value: input3.columns
378
- })) && input3.columns.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
379
- path: _path2 + ".columns[" + _index2 + "]",
380
- expected: "__type.o3",
381
- value: elem
382
- })) && $vo6(elem, _path2 + ".columns[" + _index2 + "]", _exceptionable2) || $report(_exceptionable2, {
383
- path: _path2 + ".columns[" + _index2 + "]",
384
- expected: "__type.o3",
385
- value: elem
386
- })).every((flag) => flag) || $report(_exceptionable2, {
387
- path: _path2 + ".columns",
388
- expected: "Array<__type>.o1",
389
- value: input3.columns
390
- }), (Array.isArray(input3.rows) || $report(_exceptionable2, {
391
- path: _path2 + ".rows",
392
- expected: "Array<Array<__type>>",
393
- value: input3.rows
394
- })) && input3.rows.map((elem, _index3) => (Array.isArray(elem) || $report(_exceptionable2, {
395
- path: _path2 + ".rows[" + _index3 + "]",
396
- expected: "Array<__type>.o2",
397
- value: elem
398
- })) && elem.map((elem2, _index4) => ("object" === typeof elem2 && null !== elem2 || $report(_exceptionable2, {
399
- path: _path2 + ".rows[" + _index3 + "][" + _index4 + "]",
400
- expected: "__type.o4",
401
- value: elem2
402
- })) && $vo7(elem2, _path2 + ".rows[" + _index3 + "][" + _index4 + "]", _exceptionable2) || $report(_exceptionable2, {
403
- path: _path2 + ".rows[" + _index3 + "][" + _index4 + "]",
404
- expected: "__type.o4",
405
- value: elem2
406
- })).every((flag) => flag) || $report(_exceptionable2, {
407
- path: _path2 + ".rows[" + _index3 + "]",
408
- expected: "Array<__type>.o2",
409
- value: elem
410
- })).every((flag) => flag) || $report(_exceptionable2, {
411
- path: _path2 + ".rows",
412
- expected: "Array<Array<__type>>",
413
- value: input3.rows
414
- })].every((flag) => flag);
415
- const $vo6 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.label || $report(_exceptionable2, {
416
- path: _path2 + ".label",
417
- expected: "string",
418
- value: input3.label
419
- }), "boolean" === typeof input3.sortable || $report(_exceptionable2, {
420
- path: _path2 + ".sortable",
421
- expected: "boolean",
422
- value: input3.sortable
423
- })].every((flag) => flag);
424
- const $vo7 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.value || "number" === typeof input3.value || $report(_exceptionable2, {
425
- path: _path2 + ".value",
426
- expected: "(number | string)",
427
- value: input3.value
428
- })].every((flag) => flag);
429
- const $vo8 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.lst) || $report(_exceptionable2, {
430
- path: _path2 + ".lst",
431
- expected: "Array<__type>.o3",
432
- value: input3.lst
433
- })) && input3.lst.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
434
- path: _path2 + ".lst[" + _index5 + "]",
435
- expected: "__type.o6",
436
- value: elem
437
- })) && $vo9(elem, _path2 + ".lst[" + _index5 + "]", _exceptionable2) || $report(_exceptionable2, {
438
- path: _path2 + ".lst[" + _index5 + "]",
439
- expected: "__type.o6",
440
- value: elem
441
- })).every((flag) => flag) || $report(_exceptionable2, {
442
- path: _path2 + ".lst",
443
- expected: "Array<__type>.o3",
444
- value: input3.lst
445
- })].every((flag) => flag);
446
- const $vo9 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.name || $report(_exceptionable2, {
447
- path: _path2 + ".name",
448
- expected: "string",
449
- value: input3.name
450
- }), (Array.isArray(input3.rows) || $report(_exceptionable2, {
451
- path: _path2 + ".rows",
452
- expected: "Array<Array<string>>",
453
- value: input3.rows
454
- })) && input3.rows.map((elem, _index6) => (Array.isArray(elem) || $report(_exceptionable2, {
455
- path: _path2 + ".rows[" + _index6 + "]",
456
- expected: "Array<string>",
457
- value: elem
458
- })) && elem.map((elem2, _index7) => "string" === typeof elem2 || $report(_exceptionable2, {
459
- path: _path2 + ".rows[" + _index6 + "][" + _index7 + "]",
460
- expected: "string",
461
- value: elem2
462
- })).every((flag) => flag) || $report(_exceptionable2, {
463
- path: _path2 + ".rows[" + _index6 + "]",
464
- expected: "Array<string>",
465
- value: elem
466
- })).every((flag) => flag) || $report(_exceptionable2, {
467
- path: _path2 + ".rows",
468
- expected: "Array<Array<string>>",
469
- value: input3.rows
470
- })].every((flag) => flag);
471
- return ("object" === typeof input2 && null !== input2 || $report(true, {
472
- path: _path + "",
473
- expected: "GRIN2Response",
474
- value: input2
475
- })) && $vo0(input2, _path + "", true) || $report(true, {
476
- path: _path + "",
477
- expected: "GRIN2Response",
478
- value: input2
479
- });
480
- })(input, "$input", true);
481
- }
482
- const success = 0 === errors.length;
483
- return {
484
- success,
485
- errors,
486
- data: success ? input : void 0
487
- };
488
- };
489
-
490
- export {
491
- GRIN2Payload,
492
- validGRIN2Request,
493
- validGRIN2Response
494
- };