@sjcrh/proteinpaint-types 2.101.0 → 2.102.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.
@@ -63,25 +63,26 @@ var validBrainImagingRequest = (input) => {
63
63
  const $io16 = (input3) => (void 0 === input3.disabled || "boolean" === typeof input3.disabled) && (Array.isArray(input3.lst) && input3.lst.every((elem) => "object" === typeof elem && null !== elem && $io17(elem)));
64
64
  const $io17 = (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 && $iu0(elem)));
65
65
  const $io18 = (input3) => "boolean" === typeof input3.disabled && (void 0 === input3.lst || Array.isArray(input3.lst) && input3.lst.length === 0);
66
- const $io19 = (input3) => (void 0 === input3.join || "string" === typeof input3.join) && (void 0 === input3.isnot || "boolean" === typeof input3.isnot) && ("object" === typeof input3.term && null !== input3.term && $io20(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 && $io27(elem)));
67
- const $io20 = (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) && $io14(input3.values)) && ("object" === typeof input3.bins && null !== input3.bins && $io21(input3.bins)) && (void 0 === input3.unit || "string" === typeof input3.unit);
66
+ const $io19 = (input3) => (void 0 === input3.join || "string" === typeof input3.join) && (void 0 === input3.isnot || "boolean" === typeof input3.isnot) && ("object" === typeof input3.term && null !== input3.term && $io20(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 && $io28(elem)));
67
+ const $io20 = (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) && $io14(input3.values)) && ("object" === typeof input3.bins && null !== input3.bins && $io21(input3.bins)) && (void 0 === input3.unit || "string" === typeof input3.unit) && (void 0 === input3.continuousColorScale || "object" === typeof input3.continuousColorScale && null !== input3.continuousColorScale && $io27(input3.continuousColorScale));
68
68
  const $io21 = (input3) => "object" === typeof input3["default"] && null !== input3["default"] && $iu6(input3["default"]) && ("object" === typeof input3.less && null !== input3.less && $iu6(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);
69
69
  const $io22 = (input3) => (void 0 === input3.hiddenValues || "object" === typeof input3.hiddenValues && null !== input3.hiddenValues && false === Array.isArray(input3.hiddenValues) && $io4(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 && $iu7(input3.first_bin)) && (void 0 === input3.last_bin || "object" === typeof input3.last_bin && null !== input3.last_bin && $iu8(input3.last_bin)) && (void 0 === input3.label_offset || "number" === typeof input3.label_offset);
70
70
  const $io23 = (input3) => true === input3.startunbounded && (void 0 === input3.startinclusive || false === input3.startinclusive) && "number" === typeof input3.stop && (void 0 === input3.stopinclusive || "boolean" === typeof input3.stopinclusive) && (void 0 === input3.stopunbounded || false === input3.stopunbounded) && (void 0 === input3.label || "string" === typeof input3.label);
71
71
  const $io24 = (input3) => (void 0 === input3.startunbounded || false === input3.startunbounded) && (void 0 === input3.startinclusive || "boolean" === typeof input3.startinclusive) && "number" === typeof input3.start && "number" === typeof input3.stop && (void 0 === input3.stopinclusive || "boolean" === typeof input3.stopinclusive) && (void 0 === input3.stopunbounded || false === input3.stopunbounded) && (void 0 === input3.label || "string" === typeof input3.label);
72
72
  const $io25 = (input3) => "number" === typeof input3.start && true === input3.stopunbounded && (void 0 === input3.startinclusive || "boolean" === typeof input3.startinclusive) && (void 0 === input3.startunbounded || false === input3.startunbounded) && (void 0 === input3.stopinclusive || false === input3.stopinclusive) && (void 0 === input3.label || "string" === typeof input3.label);
73
73
  const $io26 = (input3) => (void 0 === input3.hiddenValues || "object" === typeof input3.hiddenValues && null !== input3.hiddenValues && false === Array.isArray(input3.hiddenValues) && $io4(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) && "custom-bin" === input3.type && (void 0 === input3.mode || "discrete" === input3.mode || "binary" === input3.mode) && (Array.isArray(input3.lst) && ("object" === typeof input3.lst[0] && null !== input3.lst[0] && $iu2(input3.lst[0]) && (Array.isArray(input3.lst.slice(1)) && input3.lst.slice(1).every((elem) => "object" === typeof elem && null !== elem && $iu2(elem))))) && (void 0 === input3.preferredBins || "median" === input3.preferredBins);
74
- const $io27 = (input3) => "string" === typeof input3.key && "number" === typeof input3.value && true === input3.uncomputable && (void 0 === input3.label || "string" === typeof input3.label);
75
- const $io28 = (input3) => (void 0 === input3.join || "string" === typeof input3.join) && (void 0 === input3.isnot || "boolean" === typeof input3.isnot) && ("object" === typeof input3.term && null !== input3.term && $io29(input3.term)) && (void 0 === input3.value_by_max_grade || "boolean" === typeof input3.value_by_max_grade) && (void 0 === input3.value_by_most_recent || "boolean" === typeof input3.value_by_most_recent) && (void 0 === input3.value_by_computable_grade || "boolean" === typeof input3.value_by_computable_grade) && (void 0 === input3.grade_and_child || Array.isArray(input3.grade_and_child) && input3.grade_and_child.every((elem) => "object" === typeof elem && null !== elem && $io30(elem)));
76
- const $io29 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "condition" === 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) && $io14(input3.values));
77
- const $io30 = (input3) => "number" === typeof input3.grade && "string" === typeof input3.grade_label && (void 0 === input3.child_id || "string" === typeof input3.child_id) && "string" === typeof input3.child_label;
78
- const $io31 = (input3) => (void 0 === input3.join || "string" === typeof input3.join) && (void 0 === input3.isnot || "boolean" === typeof input3.isnot) && ("object" === typeof input3.term && null !== input3.term && $iu9(input3.term)) && (Array.isArray(input3.values) && input3.values.every((elem) => "object" === typeof elem && null !== elem && $iu3(elem)));
79
- const $io32 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "geneVariant" === 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) && $io14(input3.values)) && ("object" === typeof input3.groupsetting && null !== input3.groupsetting && $io16(input3.groupsetting)) && "gene" === input3.kind && "string" === typeof input3.gene && (void 0 === input3.chr || "string" === typeof input3.chr) && (void 0 === input3.start || "number" === typeof input3.start) && (void 0 === input3.stop || "number" === typeof input3.stop);
80
- const $io33 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "geneVariant" === 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) && $io14(input3.values)) && ("object" === typeof input3.groupsetting && null !== input3.groupsetting && $io16(input3.groupsetting)) && "coord" === input3.kind && "string" === typeof input3.chr && "number" === typeof input3.start && "number" === typeof input3.stop;
81
- const $io34 = (input3) => 1 === input3.dt && (Array.isArray(input3.mclassLst) && input3.mclassLst.every((elem) => "M" === elem || "E" === elem || "F" === elem || "N" === elem || "S" === elem || "D" === elem || "I" === elem || "P" === elem || "L" === elem || "Intron" === elem || "Blank" === elem || "WT" === elem || "ITD" === elem || "DEL" === elem || "NLOSS" === elem || "CLOSS" === elem || "Utr3" === elem || "Utr5" === elem || "X" === elem || "noncoding" === elem)) && (Array.isArray(input3.mclassExcludeLst) && input3.mclassExcludeLst.every((elem) => "M" === elem || "E" === elem || "F" === elem || "N" === elem || "S" === elem || "D" === elem || "I" === elem || "P" === elem || "L" === elem || "Intron" === elem || "Blank" === elem || "WT" === elem || "ITD" === elem || "DEL" === elem || "NLOSS" === elem || "CLOSS" === elem || "Utr3" === elem || "Utr5" === elem || "X" === elem || "noncoding" === elem)) && (void 0 === input3.origin || "somatic" === input3.origin || "germline" === input3.origin);
82
- const $io35 = (input3) => 4 === input3.dt && (Array.isArray(input3.mclassLst) && input3.mclassLst.every((elem) => "Blank" === elem || "WT" === elem || "CNV_amp" === elem || "CNV_loss" === elem || "CNV_loh" === elem || "CNV_amplification" === elem || "CNV_homozygous_deletion" === elem)) && (Array.isArray(input3.mclassExcludeLst) && input3.mclassExcludeLst.every((elem) => "Blank" === elem || "WT" === elem || "CNV_amp" === elem || "CNV_loss" === elem || "CNV_loh" === elem || "CNV_amplification" === elem || "CNV_homozygous_deletion" === elem)) && (void 0 === input3.origin || "somatic" === input3.origin || "germline" === input3.origin);
83
- const $io36 = (input3) => 5 === input3.dt && (Array.isArray(input3.mclassLst) && input3.mclassLst.every((elem) => "Blank" === elem || "WT" === elem || "SV" === elem)) && (Array.isArray(input3.mclassExcludeLst) && input3.mclassExcludeLst.every((elem) => "Blank" === elem || "WT" === elem || "SV" === elem)) && (void 0 === input3.origin || "somatic" === input3.origin || "germline" === input3.origin);
84
- const $io37 = (input3) => 2 === input3.dt && (Array.isArray(input3.mclassLst) && input3.mclassLst.every((elem) => "Blank" === elem || "WT" === elem || "Fuserna" === elem)) && (Array.isArray(input3.mclassExcludeLst) && input3.mclassExcludeLst.every((elem) => "Blank" === elem || "WT" === elem || "Fuserna" === elem)) && (void 0 === input3.origin || "somatic" === input3.origin || "germline" === input3.origin);
74
+ const $io27 = (input3) => "string" === typeof input3.minColor && "string" === typeof input3.maxColor;
75
+ const $io28 = (input3) => "string" === typeof input3.key && "number" === typeof input3.value && true === input3.uncomputable && (void 0 === input3.label || "string" === typeof input3.label);
76
+ const $io29 = (input3) => (void 0 === input3.join || "string" === typeof input3.join) && (void 0 === input3.isnot || "boolean" === typeof input3.isnot) && ("object" === typeof input3.term && null !== input3.term && $io30(input3.term)) && (void 0 === input3.value_by_max_grade || "boolean" === typeof input3.value_by_max_grade) && (void 0 === input3.value_by_most_recent || "boolean" === typeof input3.value_by_most_recent) && (void 0 === input3.value_by_computable_grade || "boolean" === typeof input3.value_by_computable_grade) && (void 0 === input3.grade_and_child || Array.isArray(input3.grade_and_child) && input3.grade_and_child.every((elem) => "object" === typeof elem && null !== elem && $io31(elem)));
77
+ const $io30 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "condition" === 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) && $io14(input3.values));
78
+ const $io31 = (input3) => "number" === typeof input3.grade && "string" === typeof input3.grade_label && (void 0 === input3.child_id || "string" === typeof input3.child_id) && "string" === typeof input3.child_label;
79
+ const $io32 = (input3) => (void 0 === input3.join || "string" === typeof input3.join) && (void 0 === input3.isnot || "boolean" === typeof input3.isnot) && ("object" === typeof input3.term && null !== input3.term && $iu9(input3.term)) && (Array.isArray(input3.values) && input3.values.every((elem) => "object" === typeof elem && null !== elem && $iu3(elem)));
80
+ const $io33 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "geneVariant" === 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) && $io14(input3.values)) && ("object" === typeof input3.groupsetting && null !== input3.groupsetting && $io16(input3.groupsetting)) && "gene" === input3.kind && "string" === typeof input3.gene && (void 0 === input3.chr || "string" === typeof input3.chr) && (void 0 === input3.start || "number" === typeof input3.start) && (void 0 === input3.stop || "number" === typeof input3.stop);
81
+ const $io34 = (input3) => "string" === typeof input3.id && "string" === typeof input3.name && "geneVariant" === 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) && $io14(input3.values)) && ("object" === typeof input3.groupsetting && null !== input3.groupsetting && $io16(input3.groupsetting)) && "coord" === input3.kind && "string" === typeof input3.chr && "number" === typeof input3.start && "number" === typeof input3.stop;
82
+ const $io35 = (input3) => 1 === input3.dt && (Array.isArray(input3.mclassLst) && input3.mclassLst.every((elem) => "M" === elem || "E" === elem || "F" === elem || "N" === elem || "S" === elem || "D" === elem || "I" === elem || "P" === elem || "L" === elem || "Intron" === elem || "Blank" === elem || "WT" === elem || "ITD" === elem || "DEL" === elem || "NLOSS" === elem || "CLOSS" === elem || "Utr3" === elem || "Utr5" === elem || "X" === elem || "noncoding" === elem)) && (Array.isArray(input3.mclassExcludeLst) && input3.mclassExcludeLst.every((elem) => "M" === elem || "E" === elem || "F" === elem || "N" === elem || "S" === elem || "D" === elem || "I" === elem || "P" === elem || "L" === elem || "Intron" === elem || "Blank" === elem || "WT" === elem || "ITD" === elem || "DEL" === elem || "NLOSS" === elem || "CLOSS" === elem || "Utr3" === elem || "Utr5" === elem || "X" === elem || "noncoding" === elem)) && (void 0 === input3.origin || "somatic" === input3.origin || "germline" === input3.origin);
83
+ const $io36 = (input3) => 4 === input3.dt && (Array.isArray(input3.mclassLst) && input3.mclassLst.every((elem) => "Blank" === elem || "WT" === elem || "CNV_amp" === elem || "CNV_loss" === elem || "CNV_loh" === elem || "CNV_amplification" === elem || "CNV_homozygous_deletion" === elem)) && (Array.isArray(input3.mclassExcludeLst) && input3.mclassExcludeLst.every((elem) => "Blank" === elem || "WT" === elem || "CNV_amp" === elem || "CNV_loss" === elem || "CNV_loh" === elem || "CNV_amplification" === elem || "CNV_homozygous_deletion" === elem)) && (void 0 === input3.origin || "somatic" === input3.origin || "germline" === input3.origin);
84
+ const $io37 = (input3) => 5 === input3.dt && (Array.isArray(input3.mclassLst) && input3.mclassLst.every((elem) => "Blank" === elem || "WT" === elem || "SV" === elem)) && (Array.isArray(input3.mclassExcludeLst) && input3.mclassExcludeLst.every((elem) => "Blank" === elem || "WT" === elem || "SV" === elem)) && (void 0 === input3.origin || "somatic" === input3.origin || "germline" === input3.origin);
85
+ const $io38 = (input3) => 2 === input3.dt && (Array.isArray(input3.mclassLst) && input3.mclassLst.every((elem) => "Blank" === elem || "WT" === elem || "Fuserna" === elem)) && (Array.isArray(input3.mclassExcludeLst) && input3.mclassExcludeLst.every((elem) => "Blank" === elem || "WT" === elem || "Fuserna" === elem)) && (void 0 === input3.origin || "somatic" === input3.origin || "germline" === input3.origin);
85
86
  const $iu0 = (input3) => (() => {
86
87
  if ("string" === typeof input3.type)
87
88
  return $io8(input3);
@@ -97,10 +98,10 @@ var validBrainImagingRequest = (input) => {
97
98
  return (() => {
98
99
  if ($io12(input3))
99
100
  return $io12(input3);
100
- if ($io28(input3))
101
- return $io28(input3);
102
- if ($io31(input3))
103
- return $io31(input3);
101
+ if ($io29(input3))
102
+ return $io29(input3);
103
+ if ($io32(input3))
104
+ return $io32(input3);
104
105
  return false;
105
106
  })();
106
107
  })();
@@ -113,13 +114,13 @@ var validBrainImagingRequest = (input) => {
113
114
  })();
114
115
  const $iu3 = (input3) => (() => {
115
116
  if (2 === input3.dt)
116
- return $io37(input3);
117
+ return $io38(input3);
117
118
  if (5 === input3.dt)
118
- return $io36(input3);
119
+ return $io37(input3);
119
120
  if (4 === input3.dt)
120
- return $io35(input3);
121
+ return $io36(input3);
121
122
  if (1 === input3.dt)
122
- return $io34(input3);
123
+ return $io35(input3);
123
124
  return false;
124
125
  })();
125
126
  const $iu4 = (input3) => (() => {
@@ -159,9 +160,9 @@ var validBrainImagingRequest = (input) => {
159
160
  })();
160
161
  const $iu9 = (input3) => (() => {
161
162
  if ("gene" === input3.kind)
162
- return $io32(input3);
163
- if ("coord" === input3.kind)
164
163
  return $io33(input3);
164
+ if ("coord" === input3.kind)
165
+ return $io34(input3);
165
166
  return false;
166
167
  })();
167
168
  return "object" === typeof input2 && null !== input2 && $io0(input2);
@@ -766,11 +767,11 @@ var validBrainImagingRequest = (input) => {
766
767
  value: input3.values
767
768
  })) && input3.values.map((elem, _index12) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
768
769
  path: _path2 + ".values[" + _index12 + "]",
769
- expected: "__type.o3",
770
+ expected: "__type.o4",
770
771
  value: elem
771
- })) && $vo27(elem, _path2 + ".values[" + _index12 + "]", _exceptionable2) || $report(_exceptionable2, {
772
+ })) && $vo28(elem, _path2 + ".values[" + _index12 + "]", _exceptionable2) || $report(_exceptionable2, {
772
773
  path: _path2 + ".values[" + _index12 + "]",
773
- expected: "__type.o3",
774
+ expected: "__type.o4",
774
775
  value: elem
775
776
  })).every((flag) => flag) || $report(_exceptionable2, {
776
777
  path: _path2 + ".values",
@@ -841,6 +842,14 @@ var validBrainImagingRequest = (input) => {
841
842
  path: _path2 + ".unit",
842
843
  expected: "(string | undefined)",
843
844
  value: input3.unit
845
+ }), void 0 === input3.continuousColorScale || ("object" === typeof input3.continuousColorScale && null !== input3.continuousColorScale || $report(_exceptionable2, {
846
+ path: _path2 + ".continuousColorScale",
847
+ expected: "(__type.o3 | undefined)",
848
+ value: input3.continuousColorScale
849
+ })) && $vo27(input3.continuousColorScale, _path2 + ".continuousColorScale", _exceptionable2) || $report(_exceptionable2, {
850
+ path: _path2 + ".continuousColorScale",
851
+ expected: "(__type.o3 | undefined)",
852
+ value: input3.continuousColorScale
844
853
  })].every((flag) => flag);
845
854
  const $vo21 = (input3, _path2, _exceptionable2 = true) => [("object" === typeof input3["default"] && null !== input3["default"] || $report(_exceptionable2, {
846
855
  path: _path2 + '["default"]',
@@ -1078,7 +1087,16 @@ var validBrainImagingRequest = (input) => {
1078
1087
  expected: '("median" | undefined)',
1079
1088
  value: input3.preferredBins
1080
1089
  })].every((flag) => flag);
1081
- const $vo27 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.key || $report(_exceptionable2, {
1090
+ const $vo27 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.minColor || $report(_exceptionable2, {
1091
+ path: _path2 + ".minColor",
1092
+ expected: "string",
1093
+ value: input3.minColor
1094
+ }), "string" === typeof input3.maxColor || $report(_exceptionable2, {
1095
+ path: _path2 + ".maxColor",
1096
+ expected: "string",
1097
+ value: input3.maxColor
1098
+ })].every((flag) => flag);
1099
+ const $vo28 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.key || $report(_exceptionable2, {
1082
1100
  path: _path2 + ".key",
1083
1101
  expected: "string",
1084
1102
  value: input3.key
@@ -1095,7 +1113,7 @@ var validBrainImagingRequest = (input) => {
1095
1113
  expected: "(string | undefined)",
1096
1114
  value: input3.label
1097
1115
  })].every((flag) => flag);
1098
- const $vo28 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.join || "string" === typeof input3.join || $report(_exceptionable2, {
1116
+ const $vo29 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.join || "string" === typeof input3.join || $report(_exceptionable2, {
1099
1117
  path: _path2 + ".join",
1100
1118
  expected: "(string | undefined)",
1101
1119
  value: input3.join
@@ -1107,7 +1125,7 @@ var validBrainImagingRequest = (input) => {
1107
1125
  path: _path2 + ".term",
1108
1126
  expected: "ConditionTerm",
1109
1127
  value: input3.term
1110
- })) && $vo29(input3.term, _path2 + ".term", _exceptionable2) || $report(_exceptionable2, {
1128
+ })) && $vo30(input3.term, _path2 + ".term", _exceptionable2) || $report(_exceptionable2, {
1111
1129
  path: _path2 + ".term",
1112
1130
  expected: "ConditionTerm",
1113
1131
  value: input3.term
@@ -1131,7 +1149,7 @@ var validBrainImagingRequest = (input) => {
1131
1149
  path: _path2 + ".grade_and_child[" + _index16 + "]",
1132
1150
  expected: "GradeAndChildEntry",
1133
1151
  value: elem
1134
- })) && $vo30(elem, _path2 + ".grade_and_child[" + _index16 + "]", _exceptionable2) || $report(_exceptionable2, {
1152
+ })) && $vo31(elem, _path2 + ".grade_and_child[" + _index16 + "]", _exceptionable2) || $report(_exceptionable2, {
1135
1153
  path: _path2 + ".grade_and_child[" + _index16 + "]",
1136
1154
  expected: "GradeAndChildEntry",
1137
1155
  value: elem
@@ -1140,7 +1158,7 @@ var validBrainImagingRequest = (input) => {
1140
1158
  expected: "(Array<GradeAndChildEntry> | undefined)",
1141
1159
  value: input3.grade_and_child
1142
1160
  })].every((flag) => flag);
1143
- const $vo29 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.id || $report(_exceptionable2, {
1161
+ const $vo30 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.id || $report(_exceptionable2, {
1144
1162
  path: _path2 + ".id",
1145
1163
  expected: "string",
1146
1164
  value: input3.id
@@ -1193,7 +1211,7 @@ var validBrainImagingRequest = (input) => {
1193
1211
  expected: "(TermValues | undefined)",
1194
1212
  value: input3.values
1195
1213
  })].every((flag) => flag);
1196
- const $vo30 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.grade || $report(_exceptionable2, {
1214
+ const $vo31 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.grade || $report(_exceptionable2, {
1197
1215
  path: _path2 + ".grade",
1198
1216
  expected: "number",
1199
1217
  value: input3.grade
@@ -1210,7 +1228,7 @@ var validBrainImagingRequest = (input) => {
1210
1228
  expected: "string",
1211
1229
  value: input3.child_label
1212
1230
  })].every((flag) => flag);
1213
- const $vo31 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.join || "string" === typeof input3.join || $report(_exceptionable2, {
1231
+ const $vo32 = (input3, _path2, _exceptionable2 = true) => [void 0 === input3.join || "string" === typeof input3.join || $report(_exceptionable2, {
1214
1232
  path: _path2 + ".join",
1215
1233
  expected: "(string | undefined)",
1216
1234
  value: input3.join
@@ -1243,7 +1261,7 @@ var validBrainImagingRequest = (input) => {
1243
1261
  expected: "Array<GeneVariantTvsValue>",
1244
1262
  value: input3.values
1245
1263
  })].every((flag) => flag);
1246
- const $vo32 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.id || $report(_exceptionable2, {
1264
+ const $vo33 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.id || $report(_exceptionable2, {
1247
1265
  path: _path2 + ".id",
1248
1266
  expected: "string",
1249
1267
  value: input3.id
@@ -1324,7 +1342,7 @@ var validBrainImagingRequest = (input) => {
1324
1342
  expected: "(number | undefined)",
1325
1343
  value: input3.stop
1326
1344
  })].every((flag) => flag);
1327
- const $vo33 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.id || $report(_exceptionable2, {
1345
+ const $vo34 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.id || $report(_exceptionable2, {
1328
1346
  path: _path2 + ".id",
1329
1347
  expected: "string",
1330
1348
  value: input3.id
@@ -1401,7 +1419,7 @@ var validBrainImagingRequest = (input) => {
1401
1419
  expected: "number",
1402
1420
  value: input3.stop
1403
1421
  })].every((flag) => flag);
1404
- const $vo34 = (input3, _path2, _exceptionable2 = true) => [1 === input3.dt || $report(_exceptionable2, {
1422
+ const $vo35 = (input3, _path2, _exceptionable2 = true) => [1 === input3.dt || $report(_exceptionable2, {
1405
1423
  path: _path2 + ".dt",
1406
1424
  expected: "1",
1407
1425
  value: input3.dt
@@ -1434,7 +1452,7 @@ var validBrainImagingRequest = (input) => {
1434
1452
  expected: '("germline" | "somatic" | undefined)',
1435
1453
  value: input3.origin
1436
1454
  })].every((flag) => flag);
1437
- const $vo35 = (input3, _path2, _exceptionable2 = true) => [4 === input3.dt || $report(_exceptionable2, {
1455
+ const $vo36 = (input3, _path2, _exceptionable2 = true) => [4 === input3.dt || $report(_exceptionable2, {
1438
1456
  path: _path2 + ".dt",
1439
1457
  expected: "4",
1440
1458
  value: input3.dt
@@ -1467,7 +1485,7 @@ var validBrainImagingRequest = (input) => {
1467
1485
  expected: '("germline" | "somatic" | undefined)',
1468
1486
  value: input3.origin
1469
1487
  })].every((flag) => flag);
1470
- const $vo36 = (input3, _path2, _exceptionable2 = true) => [5 === input3.dt || $report(_exceptionable2, {
1488
+ const $vo37 = (input3, _path2, _exceptionable2 = true) => [5 === input3.dt || $report(_exceptionable2, {
1471
1489
  path: _path2 + ".dt",
1472
1490
  expected: "5",
1473
1491
  value: input3.dt
@@ -1500,7 +1518,7 @@ var validBrainImagingRequest = (input) => {
1500
1518
  expected: '("germline" | "somatic" | undefined)',
1501
1519
  value: input3.origin
1502
1520
  })].every((flag) => flag);
1503
- const $vo37 = (input3, _path2, _exceptionable2 = true) => [2 === input3.dt || $report(_exceptionable2, {
1521
+ const $vo38 = (input3, _path2, _exceptionable2 = true) => [2 === input3.dt || $report(_exceptionable2, {
1504
1522
  path: _path2 + ".dt",
1505
1523
  expected: "2",
1506
1524
  value: input3.dt
@@ -1549,7 +1567,7 @@ var validBrainImagingRequest = (input) => {
1549
1567
  return $vo11(input3, _path2, _exceptionable2);
1550
1568
  if (void 0 !== input3.ranges)
1551
1569
  return $vo19(input3, _path2, _exceptionable2);
1552
- return $vo12(input3, _path2, false) || $vo28(input3, _path2, false) || $vo31(input3, _path2, false);
1570
+ return $vo12(input3, _path2, false) || $vo29(input3, _path2, false) || $vo32(input3, _path2, false);
1553
1571
  })();
1554
1572
  const $vu2 = (input3, _path2, _exceptionable2 = true) => (() => {
1555
1573
  if (true === input3.startunbounded)
@@ -1560,13 +1578,13 @@ var validBrainImagingRequest = (input) => {
1560
1578
  })();
1561
1579
  const $vu3 = (input3, _path2, _exceptionable2 = true) => (() => {
1562
1580
  if (2 === input3.dt)
1563
- return $vo37(input3, _path2, _exceptionable2);
1581
+ return $vo38(input3, _path2, _exceptionable2);
1564
1582
  if (5 === input3.dt)
1565
- return $vo36(input3, _path2, _exceptionable2);
1583
+ return $vo37(input3, _path2, _exceptionable2);
1566
1584
  if (4 === input3.dt)
1567
- return $vo35(input3, _path2, _exceptionable2);
1585
+ return $vo36(input3, _path2, _exceptionable2);
1568
1586
  if (1 === input3.dt)
1569
- return $vo34(input3, _path2, _exceptionable2);
1587
+ return $vo35(input3, _path2, _exceptionable2);
1570
1588
  return $report(_exceptionable2, {
1571
1589
  path: _path2,
1572
1590
  expected: "(FusionTvsValue | SVTvsValue | CNVTvsValue | SNVIndelTvsValue)",
@@ -1626,9 +1644,9 @@ var validBrainImagingRequest = (input) => {
1626
1644
  })();
1627
1645
  const $vu9 = (input3, _path2, _exceptionable2 = true) => (() => {
1628
1646
  if ("gene" === input3.kind)
1629
- return $vo32(input3, _path2, _exceptionable2);
1630
- if ("coord" === input3.kind)
1631
1647
  return $vo33(input3, _path2, _exceptionable2);
1648
+ if ("coord" === input3.kind)
1649
+ return $vo34(input3, _path2, _exceptionable2);
1632
1650
  return $report(_exceptionable2, {
1633
1651
  path: _path2,
1634
1652
  expected: "(GeneVariantGeneTerm | GeneVariantCoordTerm)",
@@ -2,7 +2,7 @@ import {
2
2
  CorrelationVolcanoPayload,
3
3
  validCorrelationVolcanoRequest,
4
4
  validCorrelationVolcanoResponse
5
- } from "./chunk-3SAPC23I.js";
5
+ } from "./chunk-FUIYK4TP.js";
6
6
  import "./chunk-Z6B6IQIY.js";
7
7
  export {
8
8
  CorrelationVolcanoPayload,
package/dist/index.js CHANGED
@@ -7,22 +7,22 @@ import {
7
7
  termsByIdsPayload,
8
8
  validTermsByIdsRequest,
9
9
  validTermsByIdsResponse
10
- } from "./chunk-QV7KKZV4.js";
10
+ } from "./chunk-PFG6MDVS.js";
11
11
  import {
12
12
  termdbTopTermsByTypePayload,
13
13
  validTermdbTopTermsByTypeRequest,
14
14
  validTermdbTopTermsByTypeResponse
15
- } from "./chunk-CU5TLT6P.js";
15
+ } from "./chunk-WSXS2FSQ.js";
16
16
  import {
17
17
  termdbTopVariablyExpressedGenesPayload,
18
18
  validTermdbTopVariablyExpressedGenesRequest,
19
19
  validTermdbTopVariablyExpressedGenesResponse
20
- } from "./chunk-Y4KYTIK6.js";
20
+ } from "./chunk-MUMDRXDY.js";
21
21
  import {
22
22
  validViolinRequest,
23
23
  validViolinResponse,
24
24
  violinPayload
25
- } from "./chunk-GQVW2DPA.js";
25
+ } from "./chunk-JGY7OWQH.js";
26
26
  import {
27
27
  tilePayload,
28
28
  validTileRequest,
@@ -37,12 +37,12 @@ import {
37
37
  numericCategoriesPayload,
38
38
  validNumericCategoriesRequest,
39
39
  validNumericCategoriesResponse
40
- } from "./chunk-JDJZ35H6.js";
40
+ } from "./chunk-OK6BVEFI.js";
41
41
  import {
42
42
  percentilePayload,
43
43
  validPercentileRequest,
44
44
  validPercentileResponse
45
- } from "./chunk-IORCECK2.js";
45
+ } from "./chunk-MD7FPJ6R.js";
46
46
  import {
47
47
  rootTermPayload,
48
48
  validRootTermRequest,
@@ -87,17 +87,17 @@ import {
87
87
  boxplotPayload,
88
88
  validBoxPlotRequest,
89
89
  validBoxPlotResponse
90
- } from "./chunk-VSDZI6M3.js";
90
+ } from "./chunk-A7N3MZBR.js";
91
91
  import {
92
92
  termdbCategoriesPayload,
93
93
  validCategoriesRequest,
94
94
  validCategoriesResponse
95
- } from "./chunk-ARKAYFIF.js";
95
+ } from "./chunk-KADNDGDN.js";
96
96
  import {
97
97
  termdbClusterPayload,
98
98
  validTermdbClusterRequest,
99
99
  validTermdbClusterResponse
100
- } from "./chunk-6FUNF4LO.js";
100
+ } from "./chunk-C7NNY32H.js";
101
101
  import {
102
102
  termdbCohortSummaryPayload,
103
103
  validTermdbCohortSummaryRequest,
@@ -112,7 +112,7 @@ import {
112
112
  descrStatsPayload,
113
113
  validDescrStatsRequest,
114
114
  validDescrStatsResponse
115
- } from "./chunk-HQDTWY25.js";
115
+ } from "./chunk-QVDCLRUP.js";
116
116
  import {
117
117
  hicGenomePayload,
118
118
  validHicGenomeRequest,
@@ -192,7 +192,7 @@ import {
192
192
  brainImagingPayload,
193
193
  validBrainImagingRequest,
194
194
  validBrainImagingResponse
195
- } from "./chunk-BJB2CGP3.js";
195
+ } from "./chunk-XPPUNYBL.js";
196
196
  import {
197
197
  brainImagingSamplesPayload,
198
198
  validBrainImagingSamplesRequest,
@@ -212,7 +212,7 @@ import {
212
212
  CorrelationVolcanoPayload,
213
213
  validCorrelationVolcanoRequest,
214
214
  validCorrelationVolcanoResponse
215
- } from "./chunk-3SAPC23I.js";
215
+ } from "./chunk-FUIYK4TP.js";
216
216
  import {
217
217
  datasetPayload,
218
218
  validDatasetRequest,
@@ -2,7 +2,7 @@ import {
2
2
  boxplotPayload,
3
3
  validBoxPlotRequest,
4
4
  validBoxPlotResponse
5
- } from "./chunk-VSDZI6M3.js";
5
+ } from "./chunk-A7N3MZBR.js";
6
6
  import "./chunk-Z6B6IQIY.js";
7
7
  export {
8
8
  boxplotPayload,
@@ -2,7 +2,7 @@ import {
2
2
  termdbCategoriesPayload,
3
3
  validCategoriesRequest,
4
4
  validCategoriesResponse
5
- } from "./chunk-ARKAYFIF.js";
5
+ } from "./chunk-KADNDGDN.js";
6
6
  import "./chunk-Z6B6IQIY.js";
7
7
  export {
8
8
  termdbCategoriesPayload,
@@ -2,7 +2,7 @@ import {
2
2
  termdbClusterPayload,
3
3
  validTermdbClusterRequest,
4
4
  validTermdbClusterResponse
5
- } from "./chunk-6FUNF4LO.js";
5
+ } from "./chunk-C7NNY32H.js";
6
6
  import "./chunk-Z6B6IQIY.js";
7
7
  export {
8
8
  termdbClusterPayload,
@@ -2,7 +2,7 @@ import {
2
2
  descrStatsPayload,
3
3
  validDescrStatsRequest,
4
4
  validDescrStatsResponse
5
- } from "./chunk-HQDTWY25.js";
5
+ } from "./chunk-QVDCLRUP.js";
6
6
  import "./chunk-Z6B6IQIY.js";
7
7
  export {
8
8
  descrStatsPayload,
@@ -2,7 +2,7 @@ import {
2
2
  numericCategoriesPayload,
3
3
  validNumericCategoriesRequest,
4
4
  validNumericCategoriesResponse
5
- } from "./chunk-JDJZ35H6.js";
5
+ } from "./chunk-OK6BVEFI.js";
6
6
  import "./chunk-Z6B6IQIY.js";
7
7
  export {
8
8
  numericCategoriesPayload,
@@ -2,7 +2,7 @@ import {
2
2
  percentilePayload,
3
3
  validPercentileRequest,
4
4
  validPercentileResponse
5
- } from "./chunk-IORCECK2.js";
5
+ } from "./chunk-MD7FPJ6R.js";
6
6
  import "./chunk-Z6B6IQIY.js";
7
7
  export {
8
8
  percentilePayload,
@@ -2,7 +2,7 @@ import {
2
2
  termsByIdsPayload,
3
3
  validTermsByIdsRequest,
4
4
  validTermsByIdsResponse
5
- } from "./chunk-QV7KKZV4.js";
5
+ } from "./chunk-PFG6MDVS.js";
6
6
  import "./chunk-Z6B6IQIY.js";
7
7
  export {
8
8
  termsByIdsPayload,
@@ -2,7 +2,7 @@ import {
2
2
  termdbTopTermsByTypePayload,
3
3
  validTermdbTopTermsByTypeRequest,
4
4
  validTermdbTopTermsByTypeResponse
5
- } from "./chunk-CU5TLT6P.js";
5
+ } from "./chunk-WSXS2FSQ.js";
6
6
  import "./chunk-Z6B6IQIY.js";
7
7
  export {
8
8
  termdbTopTermsByTypePayload,
@@ -2,7 +2,7 @@ import {
2
2
  termdbTopVariablyExpressedGenesPayload,
3
3
  validTermdbTopVariablyExpressedGenesRequest,
4
4
  validTermdbTopVariablyExpressedGenesResponse
5
- } from "./chunk-Y4KYTIK6.js";
5
+ } from "./chunk-MUMDRXDY.js";
6
6
  import "./chunk-Z6B6IQIY.js";
7
7
  export {
8
8
  termdbTopVariablyExpressedGenesPayload,
@@ -2,7 +2,7 @@ import {
2
2
  validViolinRequest,
3
3
  validViolinResponse,
4
4
  violinPayload
5
- } from "./chunk-GQVW2DPA.js";
5
+ } from "./chunk-JGY7OWQH.js";
6
6
  import "./chunk-Z6B6IQIY.js";
7
7
  export {
8
8
  validViolinRequest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.101.0",
3
+ "version": "2.102.0",
4
4
  "type": "module",
5
5
  "description": "Shared type definitions between ProteinPaint server and client code",
6
6
  "main": "src/index.ts",
@@ -1,4 +1,4 @@
1
- import { MinBaseQ, BaseTW, TermValues, BaseTerm } from '../index.ts'
1
+ import type { MinBaseQ, BaseTW, TermValues, BaseTerm } from '../index.ts'
2
2
 
3
3
  export type RawRegularBin = Partial<RegularNumericBinConfig> & { preferredBins?: string }
4
4
 
@@ -38,15 +38,13 @@ export type NumericTerm = BaseTerm & {
38
38
  bins: PresetNumericBins
39
39
  values?: TermValues
40
40
  unit?: string
41
+ /** tailored color scale for this term, so that when the term is used for color gradient in scatter, this set of colors will be used by default */
42
+ continuousColorScale?: { minColor: string; maxColor: string }
41
43
  /*densityNotAvailable?: boolean //Not used?
42
44
  logScale?: string | number
43
45
  max?: number
44
46
  min?: number
45
- name?: string
46
47
  skip0forPercentile?: boolean
47
- tvs?: Tvs
48
- values?: TermValues
49
- unit?: string
50
48
  valueConversion?: ValueConversion*/
51
49
  }
52
50