@sjcrh/proteinpaint-types 2.114.0 → 2.115.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 (37) hide show
  1. package/dist/brainImaging.js +1 -1
  2. package/dist/chunk-5HL5BPE5.js +126 -0
  3. package/dist/{chunk-BEXUBE5A.js → chunk-7GSVLBKZ.js} +10 -14
  4. package/dist/{chunk-H45GALYV.js → chunk-C7DJDPLP.js} +339 -343
  5. package/dist/{chunk-PR7XHL4T.js → chunk-EQGBEPDC.js} +10 -14
  6. package/dist/{chunk-BNOGQYXG.js → chunk-GS37E7DB.js} +339 -343
  7. package/dist/{chunk-KRHYG2ZZ.js → chunk-I3U2T7HV.js} +337 -341
  8. package/dist/{chunk-Q5F2XI6A.js → chunk-IJHMCHUT.js} +31 -23
  9. package/dist/{chunk-XDRUNGOV.js → chunk-KBTAXZM4.js} +286 -290
  10. package/dist/{chunk-JNEIQWTE.js → chunk-KZIZMP7Y.js} +27 -35
  11. package/dist/{chunk-7AQB3YHO.js → chunk-M26XQDA4.js} +10 -14
  12. package/dist/{chunk-66XSFQPI.js → chunk-MDBZCBM2.js} +17 -21
  13. package/dist/{chunk-OSHG443J.js → chunk-NESPJ4GG.js} +36 -44
  14. package/dist/{chunk-WVBWDL2B.js → chunk-PTYGGJLG.js} +339 -343
  15. package/dist/{chunk-T3NOHXOJ.js → chunk-ZPN2DV5E.js} +10 -14
  16. package/dist/correlationVolcano.js +1 -1
  17. package/dist/index.js +45 -37
  18. package/dist/termdb.boxplot.js +1 -1
  19. package/dist/termdb.categories.js +1 -1
  20. package/dist/termdb.cluster.js +1 -1
  21. package/dist/termdb.descrstats.js +1 -1
  22. package/dist/termdb.numericcategories.js +1 -1
  23. package/dist/termdb.percentile.js +1 -1
  24. package/dist/termdb.termsbyids.js +1 -1
  25. package/dist/termdb.topMutatedGenes.js +11 -0
  26. package/dist/termdb.topTermsByType.js +1 -1
  27. package/dist/termdb.topVariablyExpressedGenes.js +1 -1
  28. package/dist/termdb.violin.js +1 -1
  29. package/dist/wsisamples.js +11 -0
  30. package/package.json +1 -1
  31. package/src/dataset.ts +13 -3
  32. package/src/index.ts +2 -1
  33. package/src/routes/{gdc.topMutatedGenes.ts → termdb.topMutatedGenes.ts} +9 -7
  34. package/src/routes/wsisamples.ts +25 -0
  35. package/src/terms/numeric.ts +2 -2
  36. package/src/terms/term.ts +2 -1
  37. package/dist/gdc.topMutatedGenes.js +0 -11
@@ -2,7 +2,7 @@ import {
2
2
  brainImagingPayload,
3
3
  validBrainImagingRequest,
4
4
  validBrainImagingResponse
5
- } from "./chunk-XDRUNGOV.js";
5
+ } from "./chunk-KBTAXZM4.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  brainImagingPayload,
@@ -0,0 +1,126 @@
1
+ import {
2
+ __toESM,
3
+ require_lib
4
+ } from "./chunk-CNSSF43V.js";
5
+
6
+ // dist/wsisamples.ts
7
+ var import_typia = __toESM(require_lib(), 1);
8
+
9
+ // src/routes/wsisamples.ts
10
+ var wsiSamplesPayload = {
11
+ request: {
12
+ typeId: "WSISamplesRequest"
13
+ },
14
+ response: {
15
+ typeId: "WSISamplesResponse"
16
+ }
17
+ };
18
+
19
+ // dist/wsisamples.ts
20
+ var validWSISamplesRequest = (input) => {
21
+ const errors = [];
22
+ const __is = (input2) => {
23
+ return "object" === typeof input2 && null !== input2 && ("string" === typeof input2.genome && "string" === typeof input2.dslabel);
24
+ };
25
+ if (false === __is(input)) {
26
+ const $report = import_typia.createValidate.report(errors);
27
+ ((input2, _path, _exceptionable = true) => {
28
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.genome || $report(_exceptionable2, {
29
+ path: _path2 + ".genome",
30
+ expected: "string",
31
+ value: input3.genome
32
+ }), "string" === typeof input3.dslabel || $report(_exceptionable2, {
33
+ path: _path2 + ".dslabel",
34
+ expected: "string",
35
+ value: input3.dslabel
36
+ })].every((flag) => flag);
37
+ return ("object" === typeof input2 && null !== input2 || $report(true, {
38
+ path: _path + "",
39
+ expected: "WSISamplesRequest",
40
+ value: input2
41
+ })) && $vo0(input2, _path + "", true) || $report(true, {
42
+ path: _path + "",
43
+ expected: "WSISamplesRequest",
44
+ value: input2
45
+ });
46
+ })(input, "$input", true);
47
+ }
48
+ const success = 0 === errors.length;
49
+ return {
50
+ success,
51
+ errors,
52
+ data: success ? input : void 0
53
+ };
54
+ };
55
+ var validWSSamplesResponse = (input) => {
56
+ const errors = [];
57
+ const __is = (input2) => {
58
+ const $io0 = (input3) => Array.isArray(input3.samples) && input3.samples.every((elem) => "object" === typeof elem && null !== elem && $io1(elem)) && (void 0 === input3.error || "string" === typeof input3.error);
59
+ const $io1 = (input3) => "string" === typeof input3.sampleId && (Array.isArray(input3.wsimages) && input3.wsimages.every((elem) => "string" === typeof elem));
60
+ return "object" === typeof input2 && null !== input2 && $io0(input2);
61
+ };
62
+ if (false === __is(input)) {
63
+ const $report = import_typia.createValidate.report(errors);
64
+ ((input2, _path, _exceptionable = true) => {
65
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.samples) || $report(_exceptionable2, {
66
+ path: _path2 + ".samples",
67
+ expected: "Array<WSISample>",
68
+ value: input3.samples
69
+ })) && input3.samples.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
70
+ path: _path2 + ".samples[" + _index1 + "]",
71
+ expected: "WSISample",
72
+ value: elem
73
+ })) && $vo1(elem, _path2 + ".samples[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
74
+ path: _path2 + ".samples[" + _index1 + "]",
75
+ expected: "WSISample",
76
+ value: elem
77
+ })).every((flag) => flag) || $report(_exceptionable2, {
78
+ path: _path2 + ".samples",
79
+ expected: "Array<WSISample>",
80
+ value: input3.samples
81
+ }), void 0 === input3.error || "string" === typeof input3.error || $report(_exceptionable2, {
82
+ path: _path2 + ".error",
83
+ expected: "(string | undefined)",
84
+ value: input3.error
85
+ })].every((flag) => flag);
86
+ const $vo1 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.sampleId || $report(_exceptionable2, {
87
+ path: _path2 + ".sampleId",
88
+ expected: "string",
89
+ value: input3.sampleId
90
+ }), (Array.isArray(input3.wsimages) || $report(_exceptionable2, {
91
+ path: _path2 + ".wsimages",
92
+ expected: "Array<string>",
93
+ value: input3.wsimages
94
+ })) && input3.wsimages.map((elem, _index2) => "string" === typeof elem || $report(_exceptionable2, {
95
+ path: _path2 + ".wsimages[" + _index2 + "]",
96
+ expected: "string",
97
+ value: elem
98
+ })).every((flag) => flag) || $report(_exceptionable2, {
99
+ path: _path2 + ".wsimages",
100
+ expected: "Array<string>",
101
+ value: input3.wsimages
102
+ })].every((flag) => flag);
103
+ return ("object" === typeof input2 && null !== input2 || $report(true, {
104
+ path: _path + "",
105
+ expected: "WSISamplesResponse",
106
+ value: input2
107
+ })) && $vo0(input2, _path + "", true) || $report(true, {
108
+ path: _path + "",
109
+ expected: "WSISamplesResponse",
110
+ value: input2
111
+ });
112
+ })(input, "$input", true);
113
+ }
114
+ const success = 0 === errors.length;
115
+ return {
116
+ success,
117
+ errors,
118
+ data: success ? input : void 0
119
+ };
120
+ };
121
+
122
+ export {
123
+ wsiSamplesPayload,
124
+ validWSISamplesRequest,
125
+ validWSSamplesResponse
126
+ };
@@ -40,13 +40,13 @@ var validTermdbTopVariablyExpressedGenesRequest = (input) => {
40
40
  });
41
41
  const $io7 = (input3) => (void 0 === input3.key || "string" === typeof input3.key) && (void 0 === input3.uncomputable || "boolean" === typeof input3.uncomputable) && (void 0 === input3.label || "string" === typeof input3.label || "number" === typeof input3.label) && (void 0 === input3.order || "string" === typeof input3.order) && (void 0 === input3.color || "string" === typeof input3.color) && (void 0 === input3.group || "number" === typeof input3.group) && (void 0 === input3.filter || "object" === typeof input3.filter && null !== input3.filter && $io3(input3.filter));
42
42
  const $io8 = (input3) => (void 0 === input3.disabled || "boolean" === typeof input3.disabled) && (Array.isArray(input3.lst) && input3.lst.every((elem) => "object" === typeof elem && null !== elem && $io9(elem)));
43
- const $io9 = (input3) => "string" === typeof input3.name && (void 0 === input3.is_grade || "boolean" === typeof input3.is_grade) && (void 0 === input3.is_subcondition || "boolean" === typeof input3.is_subcondition) && (Array.isArray(input3.groups) && input3.groups.every((elem) => "object" === typeof elem && null !== elem && $iu1(elem)));
43
+ const $io9 = (input3) => "string" === typeof input3.name && (void 0 === input3.is_grade || "boolean" === typeof input3.is_grade) && (void 0 === input3.is_subcondition || "boolean" === typeof input3.is_subcondition) && (void 0 === input3.id || "string" === typeof input3.id) && (Array.isArray(input3.groups) && input3.groups.every((elem) => "object" === typeof elem && null !== elem && $iu1(elem)));
44
44
  const $io10 = (input3) => "string" === typeof input3.name && "string" === typeof input3.type && (Array.isArray(input3.values) && input3.values.every((elem) => "object" === typeof elem && null !== elem && $io11(elem))) && (void 0 === input3.uncomputable || "boolean" === typeof input3.uncomputable);
45
45
  const $io11 = (input3) => ("string" === typeof input3.key || "number" === typeof input3.key) && "string" === typeof input3.label;
46
- const $io12 = (input3) => "string" === typeof input3.name && "filter" === input3.type && ("object" === typeof input3.filter && null !== input3.filter && $io3(input3.filter)) && (void 0 === input3.uncomputable || "boolean" === typeof input3.uncomputable);
46
+ const $io12 = (input3) => "string" === typeof input3.name && "filter" === input3.type && true && (void 0 === input3.uncomputable || "boolean" === typeof input3.uncomputable);
47
47
  const $io13 = (input3) => "boolean" === typeof input3.disabled && (void 0 === input3.lst || Array.isArray(input3.lst) && input3.lst.length === 0);
48
48
  const $io14 = (input3) => (void 0 === input3.join || "string" === typeof input3.join) && (void 0 === input3.isnot || "boolean" === typeof input3.isnot) && ("object" === typeof input3.term && null !== input3.term && $io15(input3.term)) && (Array.isArray(input3.ranges) && input3.ranges.every((elem) => "object" === typeof elem && null !== elem && $iu2(elem))) && (Array.isArray(input3.values) && input3.values.every((elem) => "object" === typeof elem && null !== elem && $io24(elem)));
49
- const $io15 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && ("integer" === input3.type || "float" === input3.type || "geneExpression" === input3.type || "metaboliteIntensity" === input3.type) && (void 0 === input3.child_types || Array.isArray(input3.child_types) && input3.child_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail) && (void 0 === input3.included_types || Array.isArray(input3.included_types) && input3.included_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.isleaf || "boolean" === typeof input3.isleaf) && (void 0 === input3.values || "object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) && $io6(input3.values)) && true && ("object" === typeof input3.bins && null !== input3.bins && $io16(input3.bins)) && (void 0 === input3.unit || "string" === typeof input3.unit) && (void 0 === input3.continuousColorScale || "object" === typeof input3.continuousColorScale && null !== input3.continuousColorScale && $io23(input3.continuousColorScale));
49
+ const $io15 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && ("integer" === input3.type || "float" === input3.type || "geneExpression" === input3.type || "metaboliteIntensity" === input3.type || "date" === input3.type) && (void 0 === input3.child_types || Array.isArray(input3.child_types) && input3.child_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.hashtmldetail || "boolean" === typeof input3.hashtmldetail) && (void 0 === input3.included_types || Array.isArray(input3.included_types) && input3.included_types.every((elem) => "string" === typeof elem)) && (void 0 === input3.isleaf || "boolean" === typeof input3.isleaf) && (void 0 === input3.values || "object" === typeof input3.values && null !== input3.values && false === Array.isArray(input3.values) && $io6(input3.values)) && true && ("object" === typeof input3.bins && null !== input3.bins && $io16(input3.bins)) && (void 0 === input3.unit || "string" === typeof input3.unit) && (void 0 === input3.continuousColorScale || "object" === typeof input3.continuousColorScale && null !== input3.continuousColorScale && $io23(input3.continuousColorScale));
50
50
  const $io16 = (input3) => "object" === typeof input3["default"] && null !== input3["default"] && $iu5(input3["default"]) && ("object" === typeof input3.less && null !== input3.less && $iu5(input3.less)) && (void 0 === input3.label_offset || "number" === typeof input3.label_offset) && (void 0 === input3.label_offset_ignored || "boolean" === typeof input3.label_offset_ignored) && (void 0 === input3.rounding || "string" === typeof input3.rounding) && (void 0 === input3.min || "number" === typeof input3.min) && (void 0 === input3.max || "number" === typeof input3.max);
51
51
  const $io17 = (input3) => (void 0 === input3.hiddenValues || "object" === typeof input3.hiddenValues && null !== input3.hiddenValues && false === Array.isArray(input3.hiddenValues) && $io18(input3.hiddenValues)) && (void 0 === input3.isAtomic || true === input3.isAtomic) && (void 0 === input3.name || "string" === typeof input3.name) && (void 0 === input3.reuseId || "string" === typeof input3.reuseId) && "regular-bin" === input3.type && (void 0 === input3.mode || "discrete" === input3.mode) && "number" === typeof input3.bin_size && ("object" === typeof input3.first_bin && null !== input3.first_bin && $iu6(input3.first_bin)) && (void 0 === input3.last_bin || "object" === typeof input3.last_bin && null !== input3.last_bin && $iu7(input3.last_bin)) && (void 0 === input3.label_offset || "number" === typeof input3.label_offset);
52
52
  const $io18 = (input3) => Object.keys(input3).every((key) => {
@@ -450,6 +450,10 @@ var validTermdbTopVariablyExpressedGenesRequest = (input) => {
450
450
  path: _path2 + ".is_subcondition",
451
451
  expected: "(boolean | undefined)",
452
452
  value: input3.is_subcondition
453
+ }), void 0 === input3.id || "string" === typeof input3.id || $report(_exceptionable2, {
454
+ path: _path2 + ".id",
455
+ expected: "(string | undefined)",
456
+ value: input3.id
453
457
  }), (Array.isArray(input3.groups) || $report(_exceptionable2, {
454
458
  path: _path2 + ".groups",
455
459
  expected: "Array<GroupEntry>",
@@ -513,15 +517,7 @@ var validTermdbTopVariablyExpressedGenesRequest = (input) => {
513
517
  path: _path2 + ".type",
514
518
  expected: '"filter"',
515
519
  value: input3.type
516
- }), ("object" === typeof input3.filter && null !== input3.filter || $report(_exceptionable2, {
517
- path: _path2 + ".filter",
518
- expected: "Filter",
519
- value: input3.filter
520
- })) && $vo3(input3.filter, _path2 + ".filter", _exceptionable2) || $report(_exceptionable2, {
521
- path: _path2 + ".filter",
522
- expected: "Filter",
523
- value: input3.filter
524
- }), void 0 === input3.uncomputable || "boolean" === typeof input3.uncomputable || $report(_exceptionable2, {
520
+ }), true, void 0 === input3.uncomputable || "boolean" === typeof input3.uncomputable || $report(_exceptionable2, {
525
521
  path: _path2 + ".uncomputable",
526
522
  expected: "(boolean | undefined)",
527
523
  value: input3.uncomputable
@@ -600,9 +596,9 @@ var validTermdbTopVariablyExpressedGenesRequest = (input) => {
600
596
  path: _path2 + ".name",
601
597
  expected: "string",
602
598
  value: input3.name
603
- }), "integer" === input3.type || "float" === input3.type || "geneExpression" === input3.type || "metaboliteIntensity" === input3.type || $report(_exceptionable2, {
599
+ }), "integer" === input3.type || "float" === input3.type || "geneExpression" === input3.type || "metaboliteIntensity" === input3.type || "date" === input3.type || $report(_exceptionable2, {
604
600
  path: _path2 + ".type",
605
- expected: '("float" | "geneExpression" | "integer" | "metaboliteIntensity")',
601
+ expected: '("date" | "float" | "geneExpression" | "integer" | "metaboliteIntensity")',
606
602
  value: input3.type
607
603
  }), void 0 === input3.child_types || (Array.isArray(input3.child_types) || $report(_exceptionable2, {
608
604
  path: _path2 + ".child_types",