@sjcrh/proteinpaint-types 2.118.2 → 2.118.3-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.
@@ -69,7 +69,7 @@ var validTermdbSingleCellSamplesResponse = (input) => {
69
69
  return true;
70
70
  return true;
71
71
  });
72
- const $io3 = (input3) => "string" === typeof input3.experimentID;
72
+ const $io3 = (input3) => void 0 === input3.experimentID || "string" === typeof input3.experimentID;
73
73
  const $iu0 = (input3) => (() => {
74
74
  if (void 0 !== input3.status)
75
75
  return $io0(input3);
@@ -94,19 +94,19 @@ var validTermdbSingleCellSamplesResponse = (input) => {
94
94
  })].every((flag) => flag);
95
95
  const $vo1 = (input3, _path2, _exceptionable2 = true) => [(Array.isArray(input3.samples) || $report(_exceptionable2, {
96
96
  path: _path2 + ".samples",
97
- expected: "Array<Sample>",
97
+ expected: "Array<SingleCellSample>",
98
98
  value: input3.samples
99
99
  })) && input3.samples.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable2, {
100
100
  path: _path2 + ".samples[" + _index1 + "]",
101
- expected: "Sample",
101
+ expected: "SingleCellSample",
102
102
  value: elem
103
103
  })) && $vo2(elem, _path2 + ".samples[" + _index1 + "]", _exceptionable2) || $report(_exceptionable2, {
104
104
  path: _path2 + ".samples[" + _index1 + "]",
105
- expected: "Sample",
105
+ expected: "SingleCellSample",
106
106
  value: elem
107
107
  })).every((flag) => flag) || $report(_exceptionable2, {
108
108
  path: _path2 + ".samples",
109
- expected: "Array<Sample>",
109
+ expected: "Array<SingleCellSample>",
110
110
  value: input3.samples
111
111
  }), (Array.isArray(input3.fields) || $report(_exceptionable2, {
112
112
  path: _path2 + ".fields",
@@ -167,9 +167,9 @@ var validTermdbSingleCellSamplesResponse = (input) => {
167
167
  return true;
168
168
  return true;
169
169
  }).every((flag) => flag)].every((flag) => flag);
170
- const $vo3 = (input3, _path2, _exceptionable2 = true) => ["string" === typeof input3.experimentID || $report(_exceptionable2, {
170
+ const $vo3 = (input3, _path2, _exceptionable2 = true) => [true, void 0 === input3.experimentID || "string" === typeof input3.experimentID || $report(_exceptionable2, {
171
171
  path: _path2 + ".experimentID",
172
- expected: "string",
172
+ expected: "(string | undefined)",
173
173
  value: input3.experimentID
174
174
  })].every((flag) => flag);
175
175
  const $vu0 = (input3, _path2, _exceptionable2 = true) => (() => {
package/dist/index.js CHANGED
@@ -72,7 +72,7 @@ import {
72
72
  termdbSingleCellSamplesPayload,
73
73
  validTermdbSingleCellSamplesRequest,
74
74
  validTermdbSingleCellSamplesResponse
75
- } from "./chunk-GRI3224V.js";
75
+ } from "./chunk-LPBYQJG4.js";
76
76
  import {
77
77
  termChildrenPayload,
78
78
  validTermChildrenRequest,
@@ -2,7 +2,7 @@ import {
2
2
  termdbSingleCellSamplesPayload,
3
3
  validTermdbSingleCellSamplesRequest,
4
4
  validTermdbSingleCellSamplesResponse
5
- } from "./chunk-GRI3224V.js";
5
+ } from "./chunk-LPBYQJG4.js";
6
6
  import "./chunk-CNSSF43V.js";
7
7
  export {
8
8
  termdbSingleCellSamplesPayload,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.118.2",
3
+ "version": "2.118.3-0",
4
4
  "type": "module",
5
5
  "description": "Shared type definitions between ProteinPaint server and client code",
6
6
  "main": "src/index.ts",
@@ -1,7 +1,7 @@
1
1
  import type { RoutePayload } from './routeApi.js'
2
2
  import type { ErrorResponse } from './errorResponse.ts'
3
3
 
4
- export type Sample = {
4
+ export type SingleCellSample = {
5
5
  /** Sample name, required */
6
6
  sample: string
7
7
  /** optional list of sc data files available for this sample, gdc-specific
@@ -13,7 +13,10 @@ export type Sample = {
13
13
  if no exp, then each sample will just have one experiment identifiable by its sample name, and this name is used in request
14
14
  */
15
15
  [key: string]: any //sample column/term value
16
- experiments?: { experimentID: string }[]
16
+ experiments?: {
17
+ sampleName: any
18
+ experimentID?: string
19
+ }[]
17
20
 
18
21
  // a sample may have additional fields that will be displayed in table, see singleCell.samples.sampleColumns[]
19
22
  }
@@ -27,7 +30,7 @@ export type TermdbSingleCellSamplesRequest = {
27
30
  }
28
31
  type ValidResponse = {
29
32
  /** List of sample names with singlecell data */
30
- samples: Sample[]
33
+ samples: SingleCellSample[]
31
34
  fields: string[]
32
35
  columnNames: string[]
33
36
  sameLegend?: boolean