@sjcrh/proteinpaint-types 2.146.1 → 2.146.2

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.
@@ -4140,51 +4140,41 @@ var validDescrStatsRequest = (input) => {
4140
4140
  var validDescrStatsResponse = (input) => {
4141
4141
  const errors = [];
4142
4142
  const __is = (input2) => {
4143
- const $io0 = (input3) => "number" === typeof input3.status && "string" === typeof input3.error;
4144
- const $io1 = (input3) => Array.isArray(input3.values) && input3.values.every((elem) => "object" === typeof elem && null !== elem && $io2(elem));
4145
- const $io2 = (input3) => "string" === typeof input3.id && "string" === typeof input3.label && "number" === typeof input3.value;
4146
- const $iu0 = (input3) => (() => {
4147
- if (void 0 !== input3.status)
4148
- return $io0(input3);
4149
- if (void 0 !== input3.values)
4150
- return $io1(input3);
4151
- return false;
4152
- })();
4153
- return "object" === typeof input2 && null !== input2 && $iu0(input2);
4143
+ const $join = import_typia.createValidate.join;
4144
+ const $io0 = (input3) => Object.keys(input3).every((key) => {
4145
+ const value = input3[key];
4146
+ if (void 0 === value)
4147
+ return true;
4148
+ if (RegExp(/(.*)/).test(key))
4149
+ return "object" === typeof value && null !== value && ("string" === typeof value.key && "string" === typeof value.label && "number" === typeof value.value);
4150
+ return true;
4151
+ });
4152
+ return "object" === typeof input2 && null !== input2 && false === Array.isArray(input2) && $io0(input2);
4154
4153
  };
4155
4154
  if (false === __is(input)) {
4156
4155
  const $report = import_typia.createValidate.report(errors);
4157
4156
  ((input2, _path, _exceptionable = true) => {
4158
- const $vo0 = (input3, _path2, _exceptionable2 = true) => ["number" === typeof input3.status || $report(_exceptionable2, {
4159
- path: _path2 + ".status",
4160
- expected: "number",
4161
- value: input3.status
4162
- }), "string" === typeof input3.error || $report(_exceptionable2, {
4163
- path: _path2 + ".error",
4164
- expected: "string",
4165
- value: input3.error
4166
- })].every((flag) => flag);
4167
- const $vo1 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.values) || $report(_exceptionable2, {
4168
- path: _path2 + ".values",
4169
- expected: "Array<entries>",
4170
- value: input3.values
4171
- })) && input3.values.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
4172
- path: _path2 + ".values[" + _index1 + "]",
4173
- expected: "entries",
4174
- value: elem
4175
- })) && $vo2(elem, _path2 + ".values[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
4176
- path: _path2 + ".values[" + _index1 + "]",
4177
- expected: "entries",
4178
- value: elem
4179
- })).every((flag) => flag) || $report(_exceptionable2, {
4180
- path: _path2 + ".values",
4181
- expected: "Array<entries>",
4182
- value: input3.values
4183
- })].every((flag) => flag);
4184
- const $vo2 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.id || $report(_exceptionable2, {
4185
- path: _path2 + ".id",
4157
+ const $join = import_typia.createValidate.join;
4158
+ const $vo0 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
4159
+ const value = input3[key];
4160
+ if (void 0 === value)
4161
+ return true;
4162
+ if (RegExp(/(.*)/).test(key))
4163
+ return ("object" === typeof value && null !== value || $report(_exceptionable2, {
4164
+ path: _path2 + $join(key),
4165
+ expected: "__type",
4166
+ value
4167
+ })) && $vo1(value, _path2 + $join(key), _exceptionable2) || $report(_exceptionable2, {
4168
+ path: _path2 + $join(key),
4169
+ expected: "__type",
4170
+ value
4171
+ });
4172
+ return true;
4173
+ }).every((flag) => flag)].every((flag) => flag);
4174
+ const $vo1 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.key || $report(_exceptionable2, {
4175
+ path: _path2 + ".key",
4186
4176
  expected: "string",
4187
- value: input3.id
4177
+ value: input3.key
4188
4178
  }), "string" === typeof input3.label || $report(_exceptionable2, {
4189
4179
  path: _path2 + ".label",
4190
4180
  expected: "string",
@@ -4194,24 +4184,13 @@ var validDescrStatsResponse = (input) => {
4194
4184
  expected: "number",
4195
4185
  value: input3.value
4196
4186
  })].every((flag) => flag);
4197
- const $vu0 = (input3, _path2, _exceptionable2 = true) => (() => {
4198
- if (void 0 !== input3.status)
4199
- return $vo0(input3, _path2, _exceptionable2);
4200
- if (void 0 !== input3.values)
4201
- return $vo1(input3, _path2, _exceptionable2);
4202
- return $report(_exceptionable2, {
4203
- path: _path2,
4204
- expected: "(ErrorResponse | ValidResponse)",
4205
- value: input3
4206
- });
4207
- })();
4208
- return ("object" === typeof input2 && null !== input2 || $report(true, {
4187
+ return ("object" === typeof input2 && null !== input2 && false === Array.isArray(input2) || $report(true, {
4209
4188
  path: _path + "",
4210
- expected: "(ErrorResponse | ValidResponse)",
4189
+ expected: "DescrStats",
4211
4190
  value: input2
4212
- })) && $vu0(input2, _path + "", true) || $report(true, {
4191
+ })) && $vo0(input2, _path + "", true) || $report(true, {
4213
4192
  path: _path + "",
4214
- expected: "(ErrorResponse | ValidResponse)",
4193
+ expected: "DescrStats",
4215
4194
  value: input2
4216
4195
  });
4217
4196
  })(input, "$input", true);
@@ -4176,7 +4176,7 @@ var validBoxPlotResponse = (input) => {
4176
4176
  const errors = [];
4177
4177
  const __is = (input2) => {
4178
4178
  const $join = import_typia.createValidate.join;
4179
- const $io0 = (input3) => (void 0 === input3.absMin || "number" === typeof input3.absMin) && (void 0 === input3.absMax || "number" === typeof input3.absMax) && ("object" === typeof input3.charts && null !== input3.charts && false === Array.isArray(input3.charts) && $io1(input3.charts)) && (null === input3.uncomputableValues || Array.isArray(input3.uncomputableValues) && input3.uncomputableValues.every((elem) => "object" === typeof elem && null !== elem && $io8(elem))) && true && true;
4179
+ const $io0 = (input3) => (void 0 === input3.absMin || "number" === typeof input3.absMin) && (void 0 === input3.absMax || "number" === typeof input3.absMax) && ("object" === typeof input3.charts && null !== input3.charts && false === Array.isArray(input3.charts) && $io1(input3.charts)) && (null === input3.uncomputableValues || Array.isArray(input3.uncomputableValues) && input3.uncomputableValues.every((elem) => "object" === typeof elem && null !== elem && $io9(elem))) && true && ("object" === typeof input3.descrStats && null !== input3.descrStats && false === Array.isArray(input3.descrStats) && $io6(input3.descrStats));
4180
4180
  const $io1 = (input3) => Object.keys(input3).every((key) => {
4181
4181
  const value = input3[key];
4182
4182
  if (void 0 === value)
@@ -4185,13 +4185,20 @@ var validBoxPlotResponse = (input) => {
4185
4185
  return "object" === typeof value && null !== value && $io2(value);
4186
4186
  return true;
4187
4187
  });
4188
- const $io2 = (input3) => "string" === typeof input3.chartId && (Array.isArray(input3.plots) && input3.plots.every((elem) => "object" === typeof elem && null !== elem && $io3(elem))) && true && (void 0 === input3.absMin || "number" === typeof input3.absMin) && (void 0 === input3.absMax || "number" === typeof input3.absMax) && (null === input3.uncomputableValues || void 0 === input3.uncomputableValues || Array.isArray(input3.uncomputableValues) && input3.uncomputableValues.every((elem) => "object" === typeof elem && null !== elem && $io7(elem)));
4189
- const $io3 = (input3) => "object" === typeof input3.boxplot && null !== input3.boxplot && $io4(input3.boxplot) && (void 0 === input3.color || "string" === typeof input3.color) && (Array.isArray(input3.descrStats) && input3.descrStats.every((elem) => "object" === typeof elem && null !== elem && $io6(elem))) && (void 0 === input3.isHidden || "boolean" === typeof input3.isHidden) && "string" === typeof input3.key && true && (void 0 === input3.seriesId || "string" === typeof input3.seriesId);
4188
+ const $io2 = (input3) => "string" === typeof input3.chartId && (Array.isArray(input3.plots) && input3.plots.every((elem) => "object" === typeof elem && null !== elem && $io3(elem))) && true && (void 0 === input3.absMin || "number" === typeof input3.absMin) && (void 0 === input3.absMax || "number" === typeof input3.absMax) && (null === input3.uncomputableValues || void 0 === input3.uncomputableValues || Array.isArray(input3.uncomputableValues) && input3.uncomputableValues.every((elem) => "object" === typeof elem && null !== elem && $io8(elem)));
4189
+ const $io3 = (input3) => "object" === typeof input3.boxplot && null !== input3.boxplot && $io4(input3.boxplot) && (void 0 === input3.color || "string" === typeof input3.color) && ("object" === typeof input3.descrStats && null !== input3.descrStats && false === Array.isArray(input3.descrStats) && $io6(input3.descrStats)) && (void 0 === input3.isHidden || "boolean" === typeof input3.isHidden) && "string" === typeof input3.key && true && (void 0 === input3.seriesId || "string" === typeof input3.seriesId);
4190
4190
  const $io4 = (input3) => (void 0 === input3.w1 || "number" === typeof input3.w1) && (void 0 === input3.w2 || "number" === typeof input3.w2) && "number" === typeof input3.p05 && "number" === typeof input3.p25 && "number" === typeof input3.p50 && "number" === typeof input3.p75 && "number" === typeof input3.p95 && "number" === typeof input3.iqr && (Array.isArray(input3.out) && input3.out.every((elem) => "object" === typeof elem && null !== elem && $io5(elem))) && "string" === typeof input3.label;
4191
4191
  const $io5 = (input3) => "number" === typeof input3.value;
4192
- const $io6 = (input3) => "string" === typeof input3.id && "string" === typeof input3.label && "number" === typeof input3.value;
4193
- const $io7 = (input3) => "string" === typeof input3.label && "number" === typeof input3.value;
4192
+ const $io6 = (input3) => Object.keys(input3).every((key) => {
4193
+ const value = input3[key];
4194
+ if (void 0 === value)
4195
+ return true;
4196
+ if (RegExp(/(.*)/).test(key))
4197
+ return "object" === typeof value && null !== value && ("string" === typeof value.key && "string" === typeof value.label && "number" === typeof value.value);
4198
+ return true;
4199
+ });
4194
4200
  const $io8 = (input3) => "string" === typeof input3.label && "number" === typeof input3.value;
4201
+ const $io9 = (input3) => "string" === typeof input3.label && "number" === typeof input3.value;
4195
4202
  return "object" === typeof input2 && null !== input2 && $io0(input2);
4196
4203
  };
4197
4204
  if (false === __is(input)) {
@@ -4220,17 +4227,25 @@ var validBoxPlotResponse = (input) => {
4220
4227
  value: input3.uncomputableValues
4221
4228
  })) && input3.uncomputableValues.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
4222
4229
  path: _path2 + ".uncomputableValues[" + _index1 + "]",
4223
- expected: "__type.o3",
4230
+ expected: "__type.o4",
4224
4231
  value: elem
4225
- })) && $vo8(elem, _path2 + ".uncomputableValues[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
4232
+ })) && $vo9(elem, _path2 + ".uncomputableValues[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
4226
4233
  path: _path2 + ".uncomputableValues[" + _index1 + "]",
4227
- expected: "__type.o3",
4234
+ expected: "__type.o4",
4228
4235
  value: elem
4229
4236
  })).every((flag) => flag) || $report(_exceptionable2, {
4230
4237
  path: _path2 + ".uncomputableValues",
4231
4238
  expected: "(Array<__type>.o2 | null)",
4232
4239
  value: input3.uncomputableValues
4233
- }), true, true].every((flag) => flag);
4240
+ }), true, ("object" === typeof input3.descrStats && null !== input3.descrStats && false === Array.isArray(input3.descrStats) || $report(_exceptionable2, {
4241
+ path: _path2 + ".descrStats",
4242
+ expected: "DescrStats",
4243
+ value: input3.descrStats
4244
+ })) && $vo6(input3.descrStats, _path2 + ".descrStats", _exceptionable2) || $report(_exceptionable2, {
4245
+ path: _path2 + ".descrStats",
4246
+ expected: "DescrStats",
4247
+ value: input3.descrStats
4248
+ })].every((flag) => flag);
4234
4249
  const $vo1 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
4235
4250
  const value = input3[key];
4236
4251
  if (void 0 === value)
@@ -4281,11 +4296,11 @@ var validBoxPlotResponse = (input) => {
4281
4296
  value: input3.uncomputableValues
4282
4297
  })) && input3.uncomputableValues.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
4283
4298
  path: _path2 + ".uncomputableValues[" + _index3 + "]",
4284
- expected: "__type.o2",
4299
+ expected: "__type.o3",
4285
4300
  value: elem
4286
- })) && $vo7(elem, _path2 + ".uncomputableValues[" + _index3 + "]", _exceptionable2) || $report(_exceptionable2, {
4301
+ })) && $vo8(elem, _path2 + ".uncomputableValues[" + _index3 + "]", _exceptionable2) || $report(_exceptionable2, {
4287
4302
  path: _path2 + ".uncomputableValues[" + _index3 + "]",
4288
- expected: "__type.o2",
4303
+ expected: "__type.o3",
4289
4304
  value: elem
4290
4305
  })).every((flag) => flag) || $report(_exceptionable2, {
4291
4306
  path: _path2 + ".uncomputableValues",
@@ -4304,21 +4319,13 @@ var validBoxPlotResponse = (input) => {
4304
4319
  path: _path2 + ".color",
4305
4320
  expected: "(string | undefined)",
4306
4321
  value: input3.color
4307
- }), (Array.isArray(input3.descrStats) || $report(_exceptionable2, {
4322
+ }), ("object" === typeof input3.descrStats && null !== input3.descrStats && false === Array.isArray(input3.descrStats) || $report(_exceptionable2, {
4308
4323
  path: _path2 + ".descrStats",
4309
- expected: "Array<BoxPlotDescrStatsEntry>",
4324
+ expected: "DescrStats",
4310
4325
  value: input3.descrStats
4311
- })) && input3.descrStats.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
4312
- path: _path2 + ".descrStats[" + _index4 + "]",
4313
- expected: "BoxPlotDescrStatsEntry",
4314
- value: elem
4315
- })) && $vo6(elem, _path2 + ".descrStats[" + _index4 + "]", _exceptionable2) || $report(_exceptionable2, {
4316
- path: _path2 + ".descrStats[" + _index4 + "]",
4317
- expected: "BoxPlotDescrStatsEntry",
4318
- value: elem
4319
- })).every((flag) => flag) || $report(_exceptionable2, {
4326
+ })) && $vo6(input3.descrStats, _path2 + ".descrStats", _exceptionable2) || $report(_exceptionable2, {
4320
4327
  path: _path2 + ".descrStats",
4321
- expected: "Array<BoxPlotDescrStatsEntry>",
4328
+ expected: "DescrStats",
4322
4329
  value: input3.descrStats
4323
4330
  }), void 0 === input3.isHidden || "boolean" === typeof input3.isHidden || $report(_exceptionable2, {
4324
4331
  path: _path2 + ".isHidden",
@@ -4369,12 +4376,12 @@ var validBoxPlotResponse = (input) => {
4369
4376
  path: _path2 + ".out",
4370
4377
  expected: "Array<__type>",
4371
4378
  value: input3.out
4372
- })) && input3.out.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
4373
- path: _path2 + ".out[" + _index5 + "]",
4379
+ })) && input3.out.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
4380
+ path: _path2 + ".out[" + _index4 + "]",
4374
4381
  expected: "__type.o1",
4375
4382
  value: elem
4376
- })) && $vo5(elem, _path2 + ".out[" + _index5 + "]", _exceptionable2) || $report(_exceptionable2, {
4377
- path: _path2 + ".out[" + _index5 + "]",
4383
+ })) && $vo5(elem, _path2 + ".out[" + _index4 + "]", _exceptionable2) || $report(_exceptionable2, {
4384
+ path: _path2 + ".out[" + _index4 + "]",
4378
4385
  expected: "__type.o1",
4379
4386
  value: elem
4380
4387
  })).every((flag) => flag) || $report(_exceptionable2, {
@@ -4391,10 +4398,26 @@ var validBoxPlotResponse = (input) => {
4391
4398
  expected: "number",
4392
4399
  value: input3.value
4393
4400
  })].every((flag) => flag);
4394
- const $vo6 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.id || $report(_exceptionable2, {
4395
- path: _path2 + ".id",
4401
+ const $vo6 = (input3, _path2, _exceptionable2 = true) => [false === _exceptionable2 || Object.keys(input3).map((key) => {
4402
+ const value = input3[key];
4403
+ if (void 0 === value)
4404
+ return true;
4405
+ if (RegExp(/(.*)/).test(key))
4406
+ return ("object" === typeof value && null !== value || $report(_exceptionable2, {
4407
+ path: _path2 + $join(key),
4408
+ expected: "__type.o2",
4409
+ value
4410
+ })) && $vo7(value, _path2 + $join(key), _exceptionable2) || $report(_exceptionable2, {
4411
+ path: _path2 + $join(key),
4412
+ expected: "__type.o2",
4413
+ value
4414
+ });
4415
+ return true;
4416
+ }).every((flag) => flag)].every((flag) => flag);
4417
+ const $vo7 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.key || $report(_exceptionable2, {
4418
+ path: _path2 + ".key",
4396
4419
  expected: "string",
4397
- value: input3.id
4420
+ value: input3.key
4398
4421
  }), "string" === typeof input3.label || $report(_exceptionable2, {
4399
4422
  path: _path2 + ".label",
4400
4423
  expected: "string",
@@ -4404,7 +4427,7 @@ var validBoxPlotResponse = (input) => {
4404
4427
  expected: "number",
4405
4428
  value: input3.value
4406
4429
  })].every((flag) => flag);
4407
- const $vo7 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.label || $report(_exceptionable2, {
4430
+ const $vo8 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.label || $report(_exceptionable2, {
4408
4431
  path: _path2 + ".label",
4409
4432
  expected: "string",
4410
4433
  value: input3.label
@@ -4413,7 +4436,7 @@ var validBoxPlotResponse = (input) => {
4413
4436
  expected: "number",
4414
4437
  value: input3.value
4415
4438
  })].every((flag) => flag);
4416
- const $vo8 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.label || $report(_exceptionable2, {
4439
+ const $vo9 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.label || $report(_exceptionable2, {
4417
4440
  path: _path2 + ".label",
4418
4441
  expected: "string",
4419
4442
  value: input3.label
@@ -24,7 +24,7 @@ var validTermdbTopVariablyExpressedGenesRequest = (input) => {
24
24
  const $join = import_typia.createValidate.join;
25
25
  const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && "number" === typeof input3.maxGenes && (void 0 === input3.geneSet || "object" === typeof input3.geneSet && null !== input3.geneSet && $io1(input3.geneSet)) && (void 0 === input3.min_median_log2_uqfpkm || "number" === typeof input3.min_median_log2_uqfpkm) && (void 0 === input3.filter_extreme_values || "number" === typeof input3.filter_extreme_values) && (void 0 === input3.min_count || "number" === typeof input3.min_count) && (void 0 === input3.min_total_count || "number" === typeof input3.min_total_count) && (void 0 === input3.rank_type || "object" === typeof input3.rank_type && null !== input3.rank_type && $io2(input3.rank_type)) && (void 0 === input3.filter || "object" === typeof input3.filter && null !== input3.filter && $io3(input3.filter)) && true;
26
26
  const $io1 = (input3) => ("all" === input3.type || "custom" === input3.type || "msigdb" === input3.type) && (null === input3.geneList || Array.isArray(input3.geneList) && input3.geneList.every((elem) => "string" === typeof elem));
27
- const $io2 = (input3) => "iqr" === input3.type || "var" === input3.type;
27
+ const $io2 = (input3) => "var" === input3.type || "iqr" === input3.type;
28
28
  const $io3 = (input3) => "tvslst" === input3.type && "boolean" === typeof input3["in"] && "string" === typeof input3.join && (void 0 === input3.tag || "string" === typeof input3.tag) && (Array.isArray(input3.lst) && input3.lst.every((elem) => "object" === typeof elem && null !== elem && $iu0(elem)));
29
29
  const $io4 = (input3) => "tvs" === input3.type && ("object" === typeof input3.tvs && null !== input3.tvs && $iu4(input3.tvs));
30
30
  const $io5 = (input3) => (void 0 === input3.join || "string" === typeof input3.join) && (void 0 === input3.isnot || "boolean" === typeof input3.isnot) && ("object" === typeof input3.term && null !== input3.term && $io6(input3.term)) && (void 0 === input3.groupset_label || "string" === typeof input3.groupset_label) && (Array.isArray(input3.values) && input3.values.every((elem) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io8(elem)));
@@ -240,7 +240,7 @@ var validTermdbTopVariablyExpressedGenesRequest = (input) => {
240
240
  expected: "(Array<string> | null)",
241
241
  value: input3.geneList
242
242
  })].every((flag) => flag);
243
- const $vo2 = (input3, _path2, _exceptionable2 = true) => ["iqr" === input3.type || "var" === input3.type || $report(_exceptionable2, {
243
+ const $vo2 = (input3, _path2, _exceptionable2 = true) => ["var" === input3.type || "iqr" === input3.type || $report(_exceptionable2, {
244
244
  path: _path2 + ".type",
245
245
  expected: '("iqr" | "var")',
246
246
  value: input3.type
package/dist/index.js CHANGED
@@ -47,7 +47,7 @@ import {
47
47
  termdbTopVariablyExpressedGenesPayload,
48
48
  validTermdbTopVariablyExpressedGenesRequest,
49
49
  validTermdbTopVariablyExpressedGenesResponse
50
- } from "./chunk-U3AOS5QJ.js";
50
+ } from "./chunk-OZ3CVAFP.js";
51
51
  import {
52
52
  validViolinRequest,
53
53
  validViolinResponse,
@@ -97,7 +97,7 @@ import {
97
97
  boxplotPayload,
98
98
  validBoxPlotRequest,
99
99
  validBoxPlotResponse
100
- } from "./chunk-V2TEJZ2V.js";
100
+ } from "./chunk-NBV7HYBA.js";
101
101
  import {
102
102
  termdbCategoriesPayload,
103
103
  validCategoriesRequest,
@@ -127,7 +127,7 @@ import {
127
127
  descrStatsPayload,
128
128
  validDescrStatsRequest,
129
129
  validDescrStatsResponse
130
- } from "./chunk-FXXE4S7M.js";
130
+ } from "./chunk-G5KSPYQG.js";
131
131
  import {
132
132
  FilterTermValuesPayload,
133
133
  validFilterTermValuesRequest,
@@ -2,7 +2,7 @@ import {
2
2
  boxplotPayload,
3
3
  validBoxPlotRequest,
4
4
  validBoxPlotResponse
5
- } from "./chunk-V2TEJZ2V.js";
5
+ } from "./chunk-NBV7HYBA.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  boxplotPayload,
@@ -2,7 +2,7 @@ import {
2
2
  descrStatsPayload,
3
3
  validDescrStatsRequest,
4
4
  validDescrStatsResponse
5
- } from "./chunk-FXXE4S7M.js";
5
+ } from "./chunk-G5KSPYQG.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  descrStatsPayload,
@@ -2,7 +2,7 @@ import {
2
2
  termdbTopVariablyExpressedGenesPayload,
3
3
  validTermdbTopVariablyExpressedGenesRequest,
4
4
  validTermdbTopVariablyExpressedGenesResponse
5
- } from "./chunk-U3AOS5QJ.js";
5
+ } from "./chunk-OZ3CVAFP.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  termdbTopVariablyExpressedGenesPayload,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.146.1",
3
+ "version": "2.146.2",
4
4
  "type": "module",
5
5
  "description": "Shared type definitions between ProteinPaint server and client code",
6
6
  "main": "src/index.ts",
@@ -1,6 +1,7 @@
1
1
  import type { RoutePayload } from './routeApi.js'
2
2
  import type { TermWrapper } from '../terms/tw.ts'
3
3
  import type { Filter } from '../filter.ts'
4
+ import type { DescrStats } from './termdb.descrstats.ts'
4
5
 
5
6
  /**Args set in Termdb vocab and from mass box plot */
6
7
  export type BoxPlotRequest = {
@@ -35,7 +36,7 @@ export type BoxPlotResponse = {
35
36
  /** Categories not shown in the final plot */
36
37
  uncomputableValues: { label: string; value: number }[] | null
37
38
  error?: any
38
- descrStats: any
39
+ descrStats: DescrStats
39
40
  }
40
41
 
41
42
  // chart containing a set of boxplots
@@ -58,7 +59,7 @@ export type BoxPlotEntry = {
58
59
  boxplot: BoxPlotData & { label: string }
59
60
  /** color matching the value/category color */
60
61
  color?: string
61
- descrStats: BoxPlotDescrStatsEntry[]
62
+ descrStats: DescrStats
62
63
  /** Pertains to an uncomputable term value and
63
64
  * whether or not the plot is hidden by default */
64
65
  isHidden?: boolean
@@ -1,7 +1,6 @@
1
1
  import type { RoutePayload } from './routeApi.js'
2
2
  import type { Filter } from '../filter.ts'
3
3
  import type { TermWrapper } from '../terms/tw.ts'
4
- import type { ErrorResponse } from './errorResponse.ts'
5
4
 
6
5
  export type DescrStatsRequest = {
7
6
  /** genome label in the serverconfig.json */
@@ -20,17 +19,15 @@ export type DescrStatsRequest = {
20
19
  __protected__?: any //reuse definition from termdb.matrix.ts!!!
21
20
  }
22
21
 
23
- interface entries {
24
- id: string
25
- label: string
26
- value: number
22
+ export type DescrStats = {
23
+ [key: string]: {
24
+ key: string
25
+ label: string
26
+ value: number
27
+ }
27
28
  }
28
29
 
29
- type ValidResponse = {
30
- values: entries[]
31
- }
32
-
33
- export type DescrStatsResponse = ValidResponse | ErrorResponse
30
+ export type DescrStatsResponse = DescrStats
34
31
 
35
32
  export const descrStatsPayload: RoutePayload = {
36
33
  request: {