@sjcrh/proteinpaint-types 2.176.0 → 2.177.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 (33) hide show
  1. package/dist/brainImaging.js +1 -1
  2. package/dist/{chunk-CJVAIEUK.js → chunk-2DJFVQUQ.js} +273 -203
  3. package/dist/{chunk-HJEEUTW3.js → chunk-44LN7YTE.js} +82 -12
  4. package/dist/{chunk-QYQNPL6O.js → chunk-4SOVPEYQ.js} +125 -55
  5. package/dist/{chunk-U5H2DV3T.js → chunk-5KF6Z3GL.js} +82 -12
  6. package/dist/{chunk-GZRRMIZZ.js → chunk-63OD34W2.js} +273 -203
  7. package/dist/{chunk-CMC3WJO7.js → chunk-7NKZVHIZ.js} +251 -177
  8. package/dist/{chunk-YIF5KN5P.js → chunk-7WEVNKAM.js} +273 -203
  9. package/dist/{chunk-ZGX6LDVV.js → chunk-F4YCPOQV.js} +82 -12
  10. package/dist/{chunk-7LV73FRY.js → chunk-LHJGTOZJ.js} +292 -222
  11. package/dist/{chunk-Z763D57O.js → chunk-Q6MWNJ2V.js} +469 -325
  12. package/dist/{chunk-CJKG67B2.js → chunk-TWNJZBZK.js} +61 -17
  13. package/dist/{chunk-VZNEPZ73.js → chunk-UQEAM7BH.js} +273 -203
  14. package/dist/{chunk-6VN4YVWP.js → chunk-URHI6FFP.js} +333 -189
  15. package/dist/{chunk-JVEPTUQN.js → chunk-W7UCAYSF.js} +82 -12
  16. package/dist/correlationVolcano.js +1 -1
  17. package/dist/index.js +14 -14
  18. package/dist/termdb.boxplot.js +1 -1
  19. package/dist/termdb.categories.js +1 -1
  20. package/dist/termdb.chat.js +1 -1
  21. package/dist/termdb.cluster.js +1 -1
  22. package/dist/termdb.descrstats.js +1 -1
  23. package/dist/termdb.numericcategories.js +1 -1
  24. package/dist/termdb.percentile.js +1 -1
  25. package/dist/termdb.runChart.js +1 -1
  26. package/dist/termdb.termsbyids.js +1 -1
  27. package/dist/termdb.topTermsByType.js +1 -1
  28. package/dist/termdb.topVariablyExpressedGenes.js +1 -1
  29. package/dist/termdb.violin.js +1 -1
  30. package/package.json +1 -1
  31. package/src/dataset.ts +6 -0
  32. package/src/routes/termdb.runChart.ts +29 -12
  33. package/src/terms/termCollection.ts +2 -2
@@ -20,7 +20,7 @@ var runChartPayload = {
20
20
  var validRunChartRequest = (input) => {
21
21
  const errors = [];
22
22
  const __is = (input2) => {
23
- const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && ("object" === typeof input3.xtw && null !== input3.xtw && $io1(input3.xtw)) && ("object" === typeof input3.ytw && null !== input3.ytw && $io4(input3.ytw)) && "median" === input3.aggregation && true && true;
23
+ 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;
24
24
  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);
25
25
  const $io3 = (input3) => void 0 === input3.mode || "discrete" === input3.mode || "continuous" === input3.mode;
26
26
  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);
@@ -46,18 +46,22 @@ var validRunChartRequest = (input) => {
46
46
  path: _path2 + ".xtw",
47
47
  expected: "__type",
48
48
  value: input3.xtw
49
- }), ("object" === typeof input3.ytw && null !== input3.ytw || $report(_exceptionable2, {
49
+ }), void 0 === input3.ytw || ("object" === typeof input3.ytw && null !== input3.ytw || $report(_exceptionable2, {
50
50
  path: _path2 + ".ytw",
51
- expected: "__type.o3",
51
+ expected: "(__type.o3 | undefined)",
52
52
  value: input3.ytw
53
53
  })) && $vo4(input3.ytw, _path2 + ".ytw", _exceptionable2) || $report(_exceptionable2, {
54
54
  path: _path2 + ".ytw",
55
- expected: "__type.o3",
55
+ expected: "(__type.o3 | undefined)",
56
56
  value: input3.ytw
57
- }), "median" === input3.aggregation || $report(_exceptionable2, {
57
+ }), void 0 === input3.aggregation || "median" === input3.aggregation || $report(_exceptionable2, {
58
58
  path: _path2 + ".aggregation",
59
- expected: '"median"',
59
+ expected: '("median" | undefined)',
60
60
  value: input3.aggregation
61
+ }), void 0 === input3.showCumulativeFrequency || "boolean" === typeof input3.showCumulativeFrequency || $report(_exceptionable2, {
62
+ path: _path2 + ".showCumulativeFrequency",
63
+ expected: "(boolean | undefined)",
64
+ value: input3.showCumulativeFrequency
61
65
  }), true, true].every((flag) => flag);
62
66
  const $vo1 = (input3, _path2, _exceptionable2 = true) => [("object" === typeof input3.term && null !== input3.term || $report(_exceptionable2, {
63
67
  path: _path2 + ".term",
@@ -142,33 +146,41 @@ var validRunChartRequest = (input) => {
142
146
  var validRunChartResponse = (input) => {
143
147
  const errors = [];
144
148
  const __is = (input2) => {
145
- const $io0 = (input3) => ("ok" === input3.status || "error" === input3.status) && (Array.isArray(input3.series) && input3.series.every((elem) => "object" === typeof elem && null !== elem && $io1(elem)));
149
+ const $io0 = (input3) => "ok" === input3.status && (Array.isArray(input3.series) && input3.series.every((elem) => "object" === typeof elem && null !== elem && $io1(elem)));
146
150
  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)));
147
151
  const $io2 = (input3) => "number" === typeof input3.x && "string" === typeof input3.xName && "number" === typeof input3.y && "number" === typeof input3.sampleCount;
148
- return "object" === typeof input2 && null !== input2 && $io0(input2);
152
+ const $io3 = (input3) => "string" === typeof input3.error && (Array.isArray(input3.series) && input3.series.every((elem) => "object" === typeof elem && null !== elem && $io1(elem)));
153
+ const $iu0 = (input3) => (() => {
154
+ if (void 0 !== input3.status)
155
+ return $io0(input3);
156
+ if (void 0 !== input3.error)
157
+ return $io3(input3);
158
+ return false;
159
+ })();
160
+ return "object" === typeof input2 && null !== input2 && $iu0(input2);
149
161
  };
150
162
  if (false === __is(input)) {
151
163
  const $report = import_typia.createValidate.report(errors);
152
164
  ((input2, _path, _exceptionable = true) => {
153
- const $vo0 = (input3, _path2, _exceptionable2 = true) => ["ok" === input3.status || "error" === input3.status || $report(_exceptionable2, {
165
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => ["ok" === input3.status || $report(_exceptionable2, {
154
166
  path: _path2 + ".status",
155
- expected: '("error" | "ok")',
167
+ expected: '"ok"',
156
168
  value: input3.status
157
169
  }), (Array.isArray(input3.series) || $report(_exceptionable2, {
158
170
  path: _path2 + ".series",
159
- expected: "Array<__type>",
171
+ expected: "Array<RunChartSeries>",
160
172
  value: input3.series
161
173
  })) && input3.series.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
162
174
  path: _path2 + ".series[" + _index1 + "]",
163
- expected: "__type",
175
+ expected: "RunChartSeries",
164
176
  value: elem
165
177
  })) && $vo1(elem, _path2 + ".series[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
166
178
  path: _path2 + ".series[" + _index1 + "]",
167
- expected: "__type",
179
+ expected: "RunChartSeries",
168
180
  value: elem
169
181
  })).every((flag) => flag) || $report(_exceptionable2, {
170
182
  path: _path2 + ".series",
171
- expected: "Array<__type>",
183
+ expected: "Array<RunChartSeries>",
172
184
  value: input3.series
173
185
  })].every((flag) => flag);
174
186
  const $vo1 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.seriesId || "string" === typeof input3.seriesId || $report(_exceptionable2, {
@@ -213,13 +225,45 @@ var validRunChartResponse = (input) => {
213
225
  expected: "number",
214
226
  value: input3.sampleCount
215
227
  })].every((flag) => flag);
228
+ const $vo3 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.error || $report(_exceptionable2, {
229
+ path: _path2 + ".error",
230
+ expected: "string",
231
+ value: input3.error
232
+ }), (Array.isArray(input3.series) || $report(_exceptionable2, {
233
+ path: _path2 + ".series",
234
+ expected: "Array<RunChartSeries>",
235
+ value: input3.series
236
+ })) && input3.series.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
237
+ path: _path2 + ".series[" + _index3 + "]",
238
+ expected: "RunChartSeries",
239
+ value: elem
240
+ })) && $vo1(elem, _path2 + ".series[" + _index3 + "]", _exceptionable2) || $report(_exceptionable2, {
241
+ path: _path2 + ".series[" + _index3 + "]",
242
+ expected: "RunChartSeries",
243
+ value: elem
244
+ })).every((flag) => flag) || $report(_exceptionable2, {
245
+ path: _path2 + ".series",
246
+ expected: "Array<RunChartSeries>",
247
+ value: input3.series
248
+ })].every((flag) => flag);
249
+ const $vu0 = (input3, _path2, _exceptionable2 = true) => (() => {
250
+ if (void 0 !== input3.status)
251
+ return $vo0(input3, _path2, _exceptionable2);
252
+ if (void 0 !== input3.error)
253
+ return $vo3(input3, _path2, _exceptionable2);
254
+ return $report(_exceptionable2, {
255
+ path: _path2,
256
+ expected: "(RunChartSuccessResponse | RunChartErrorResponse)",
257
+ value: input3
258
+ });
259
+ })();
216
260
  return ("object" === typeof input2 && null !== input2 || $report(true, {
217
261
  path: _path + "",
218
- expected: "RunChartResponse",
262
+ expected: "(RunChartErrorResponse | RunChartSuccessResponse)",
219
263
  value: input2
220
- })) && $vo0(input2, _path + "", true) || $report(true, {
264
+ })) && $vu0(input2, _path + "", true) || $report(true, {
221
265
  path: _path + "",
222
- expected: "RunChartResponse",
266
+ expected: "(RunChartErrorResponse | RunChartSuccessResponse)",
223
267
  value: input2
224
268
  });
225
269
  })(input, "$input", true);