@sjcrh/proteinpaint-types 2.150.0 → 2.152.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-OSBVSZBB.js → chunk-5BNDT4E6.js} +13 -77
  3. package/dist/{chunk-TTUU5XQC.js → chunk-5F24QFE7.js} +471 -253
  4. package/dist/{chunk-KSVIBMFQ.js → chunk-5OMJAZK4.js} +323 -185
  5. package/dist/{chunk-WL7ZVGZS.js → chunk-C27KCAQH.js} +476 -302
  6. package/dist/{chunk-5MGSKBUU.js → chunk-CC32XCET.js} +950 -574
  7. package/dist/{chunk-OZ3CVAFP.js → chunk-EBPGV76U.js} +279 -157
  8. package/dist/{chunk-KQNLROUN.js → chunk-GZKTMVAU.js} +750 -410
  9. package/dist/{chunk-3SKFYOKV.js → chunk-JT4DSNJ3.js} +476 -302
  10. package/dist/{chunk-75GS5ZG5.js → chunk-LXW2FSLR.js} +526 -352
  11. package/dist/{chunk-RA7IEGS4.js → chunk-MCL6EDOS.js} +482 -308
  12. package/dist/{chunk-DBSRGRXR.js → chunk-OAETETAO.js} +279 -157
  13. package/dist/{chunk-4MLQS6N7.js → chunk-OLWNM7QP.js} +279 -157
  14. package/dist/{chunk-MMFL6N5M.js → chunk-OLXOQLZH.js} +279 -157
  15. package/dist/{chunk-4SJC57Y6.js → chunk-ZXPLL3NT.js} +476 -302
  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.sampleScatter.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/routes/termdb.sampleScatter.ts +1 -3
  32. package/src/terms/numeric.ts +17 -1
  33. package/src/terms/term.ts +5 -0
@@ -2,7 +2,7 @@ import {
2
2
  brainImagingPayload,
3
3
  validBrainImagingRequest,
4
4
  validBrainImagingResponse
5
- } from "./chunk-KSVIBMFQ.js";
5
+ } from "./chunk-5OMJAZK4.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  brainImagingPayload,
@@ -74,34 +74,18 @@ var validTermdbSampleScatterResponse = (input) => {
74
74
  return "object" === typeof value && null !== value && $io3(value);
75
75
  return true;
76
76
  });
77
- const $io3 = (input3) => Array.isArray(input3.colorLegend) && input3.colorLegend.every((elem) => Array.isArray(elem) && (elem.length === 2 && "string" === typeof elem[0] && ("object" === typeof elem[1] && null !== elem[1] && $io4(elem[1])))) && ("object" === typeof input3.colorMap && null !== input3.colorMap && false === Array.isArray(input3.colorMap) && $io5(input3.colorMap)) && (Array.isArray(input3.samples) && input3.samples.every((elem) => "object" === typeof elem && null !== elem && $io6(elem))) && (Array.isArray(input3.shapeLegend) && input3.shapeLegend.every((elem) => Array.isArray(elem) && (elem.length === 2 && "string" === typeof elem[0] && ("object" === typeof elem[1] && null !== elem[1] && $io8(elem[1]))))) && ("object" === typeof input3.shapeMap && null !== input3.shapeMap && false === Array.isArray(input3.shapeMap) && $io9(input3.shapeMap));
77
+ const $io3 = (input3) => Array.isArray(input3.colorLegend) && input3.colorLegend.every((elem) => Array.isArray(elem) && (elem.length === 2 && "string" === typeof elem[0] && ("object" === typeof elem[1] && null !== elem[1] && $io4(elem[1])))) && (Array.isArray(input3.samples) && input3.samples.every((elem) => "object" === typeof elem && null !== elem && $io5(elem))) && (Array.isArray(input3.shapeLegend) && input3.shapeLegend.every((elem) => Array.isArray(elem) && (elem.length === 2 && "string" === typeof elem[0] && ("object" === typeof elem[1] && null !== elem[1] && $io7(elem[1])))));
78
78
  const $io4 = (input3) => "string" === typeof input3.color && "number" === typeof input3.sampleCount && "string" === typeof input3.key;
79
- const $io5 = (input3) => Object.keys(input3).every((key) => {
79
+ const $io5 = (input3) => "string" === typeof input3.category && "string" === typeof input3.sample && (void 0 === input3.info || "object" === typeof input3.info && null !== input3.info && false === Array.isArray(input3.info) && $io6(input3.info)) && "string" === typeof input3.shape && "number" === typeof input3.x && "number" === typeof input3.y && "number" === typeof input3.z;
80
+ const $io6 = (input3) => Object.keys(input3).every((key) => {
80
81
  const value = input3[key];
81
82
  if (void 0 === value)
82
83
  return true;
83
84
  if (RegExp(/(.*)/).test(key))
84
- return "object" === typeof value && null !== value && ("string" === typeof value.color && "number" === typeof value.sampleCount && "string" === typeof value.key);
85
- return true;
86
- });
87
- const $io6 = (input3) => "string" === typeof input3.category && "string" === typeof input3.sample && ("object" === typeof input3.info && null !== input3.info && false === Array.isArray(input3.info) && $io7(input3.info)) && "string" === typeof input3.shape && "number" === typeof input3.x && "number" === typeof input3.y && "number" === typeof input3.z;
88
- const $io7 = (input3) => Object.keys(input3).every((key) => {
89
- const value = input3[key];
90
- if (void 0 === value)
91
- return true;
92
- if (RegExp(/(.*)/).test(key))
93
- return true;
94
- return true;
95
- });
96
- const $io8 = (input3) => "number" === typeof input3.shape && "number" === typeof input3.sampleCount && "string" === typeof input3.key;
97
- const $io9 = (input3) => Object.keys(input3).every((key) => {
98
- const value = input3[key];
99
- if (void 0 === value)
100
85
  return true;
101
- if (RegExp(/(.*)/).test(key))
102
- return "object" === typeof value && null !== value && ("number" === typeof value.shape && "number" === typeof value.sampleCount && "string" === typeof value.key);
103
86
  return true;
104
87
  });
88
+ const $io7 = (input3) => "number" === typeof input3.shape && "number" === typeof input3.sampleCount && "string" === typeof input3.key;
105
89
  return "object" === typeof input2 && null !== input2 && $io0(input2);
106
90
  };
107
91
  if (false === __is(input)) {
@@ -193,14 +177,6 @@ var validTermdbSampleScatterResponse = (input) => {
193
177
  path: _path2 + ".colorLegend",
194
178
  expected: "Array<ColorLegendEntry>",
195
179
  value: input3.colorLegend
196
- }), ("object" === typeof input3.colorMap && null !== input3.colorMap && false === Array.isArray(input3.colorMap) || $report(_exceptionable2, {
197
- path: _path2 + ".colorMap",
198
- expected: "ColorMap",
199
- value: input3.colorMap
200
- })) && $vo5(input3.colorMap, _path2 + ".colorMap", _exceptionable2) || $report(_exceptionable2, {
201
- path: _path2 + ".colorMap",
202
- expected: "ColorMap",
203
- value: input3.colorMap
204
180
  }), (Array.isArray(input3.samples) || $report(_exceptionable2, {
205
181
  path: _path2 + ".samples",
206
182
  expected: "Array<ScatterSample>",
@@ -209,7 +185,7 @@ var validTermdbSampleScatterResponse = (input) => {
209
185
  path: _path2 + ".samples[" + _index2 + "]",
210
186
  expected: "ScatterSample",
211
187
  value: elem
212
- })) && $vo6(elem, _path2 + ".samples[" + _index2 + "]", _exceptionable2) || $report(_exceptionable2, {
188
+ })) && $vo5(elem, _path2 + ".samples[" + _index2 + "]", _exceptionable2) || $report(_exceptionable2, {
213
189
  path: _path2 + ".samples[" + _index2 + "]",
214
190
  expected: "ScatterSample",
215
191
  value: elem
@@ -239,7 +215,7 @@ var validTermdbSampleScatterResponse = (input) => {
239
215
  path: _path2 + ".shapeLegend[" + _index3 + "][1]",
240
216
  expected: "ShapeObject",
241
217
  value: elem[1]
242
- })) && $vo8(elem[1], _path2 + ".shapeLegend[" + _index3 + "][1]", _exceptionable2) || $report(_exceptionable2, {
218
+ })) && $vo7(elem[1], _path2 + ".shapeLegend[" + _index3 + "][1]", _exceptionable2) || $report(_exceptionable2, {
243
219
  path: _path2 + ".shapeLegend[" + _index3 + "][1]",
244
220
  expected: "ShapeObject",
245
221
  value: elem[1]
@@ -252,14 +228,6 @@ var validTermdbSampleScatterResponse = (input) => {
252
228
  path: _path2 + ".shapeLegend",
253
229
  expected: "Array<ShapeLegendEntry>",
254
230
  value: input3.shapeLegend
255
- }), ("object" === typeof input3.shapeMap && null !== input3.shapeMap && false === Array.isArray(input3.shapeMap) || $report(_exceptionable2, {
256
- path: _path2 + ".shapeMap",
257
- expected: "ShapeMap",
258
- value: input3.shapeMap
259
- })) && $vo9(input3.shapeMap, _path2 + ".shapeMap", _exceptionable2) || $report(_exceptionable2, {
260
- path: _path2 + ".shapeMap",
261
- expected: "ShapeMap",
262
- value: input3.shapeMap
263
231
  })].every((flag) => flag);
264
232
  const $vo4 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.color || $report(_exceptionable2, {
265
233
  path: _path2 + ".color",
@@ -274,23 +242,7 @@ var validTermdbSampleScatterResponse = (input) => {
274
242
  expected: "string",
275
243
  value: input3.key
276
244
  })].every((flag) => flag);
277
- const $vo5 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
278
- const value = input3[key];
279
- if (void 0 === value)
280
- return true;
281
- if (RegExp(/(.*)/).test(key))
282
- return ("object" === typeof value && null !== value || $report(_exceptionable2, {
283
- path: _path2 + $join(key),
284
- expected: "ColorObject",
285
- value
286
- })) && $vo4(value, _path2 + $join(key), _exceptionable2) || $report(_exceptionable2, {
287
- path: _path2 + $join(key),
288
- expected: "ColorObject",
289
- value
290
- });
291
- return true;
292
- }).every((flag) => flag)].every((flag) => flag);
293
- const $vo6 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.category || $report(_exceptionable2, {
245
+ const $vo5 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.category || $report(_exceptionable2, {
294
246
  path: _path2 + ".category",
295
247
  expected: "string",
296
248
  value: input3.category
@@ -298,13 +250,13 @@ var validTermdbSampleScatterResponse = (input) => {
298
250
  path: _path2 + ".sample",
299
251
  expected: "string",
300
252
  value: input3.sample
301
- }), ("object" === typeof input3.info && null !== input3.info && false === Array.isArray(input3.info) || $report(_exceptionable2, {
253
+ }), void 0 === input3.info || ("object" === typeof input3.info && null !== input3.info && false === Array.isArray(input3.info) || $report(_exceptionable2, {
302
254
  path: _path2 + ".info",
303
- expected: "__type.o2",
255
+ expected: "(__type.o2 | undefined)",
304
256
  value: input3.info
305
- })) && $vo7(input3.info, _path2 + ".info", _exceptionable2) || $report(_exceptionable2, {
257
+ })) && $vo6(input3.info, _path2 + ".info", _exceptionable2) || $report(_exceptionable2, {
306
258
  path: _path2 + ".info",
307
- expected: "__type.o2",
259
+ expected: "(__type.o2 | undefined)",
308
260
  value: input3.info
309
261
  }), "string" === typeof input3.shape || $report(_exceptionable2, {
310
262
  path: _path2 + ".shape",
@@ -323,7 +275,7 @@ var validTermdbSampleScatterResponse = (input) => {
323
275
  expected: "number",
324
276
  value: input3.z
325
277
  })].every((flag) => flag);
326
- const $vo7 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
278
+ const $vo6 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
327
279
  const value = input3[key];
328
280
  if (void 0 === value)
329
281
  return true;
@@ -331,7 +283,7 @@ var validTermdbSampleScatterResponse = (input) => {
331
283
  return true;
332
284
  return true;
333
285
  }).every((flag) => flag)].every((flag) => flag);
334
- const $vo8 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.shape || $report(_exceptionable2, {
286
+ const $vo7 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.shape || $report(_exceptionable2, {
335
287
  path: _path2 + ".shape",
336
288
  expected: "number",
337
289
  value: input3.shape
@@ -344,22 +296,6 @@ var validTermdbSampleScatterResponse = (input) => {
344
296
  expected: "string",
345
297
  value: input3.key
346
298
  })].every((flag) => flag);
347
- const $vo9 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
348
- const value = input3[key];
349
- if (void 0 === value)
350
- return true;
351
- if (RegExp(/(.*)/).test(key))
352
- return ("object" === typeof value && null !== value || $report(_exceptionable2, {
353
- path: _path2 + $join(key),
354
- expected: "ShapeObject",
355
- value
356
- })) && $vo8(value, _path2 + $join(key), _exceptionable2) || $report(_exceptionable2, {
357
- path: _path2 + $join(key),
358
- expected: "ShapeObject",
359
- value
360
- });
361
- return true;
362
- }).every((flag) => flag)].every((flag) => flag);
363
299
  return ("object" === typeof input2 && null !== input2 || $report(true, {
364
300
  path: _path + "",
365
301
  expected: "TermdbSampleScatterResponse",