@sjcrh/proteinpaint-types 2.81.5 → 2.82.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.81.5",
3
+ "version": "2.82.0",
4
4
  "type": "module",
5
5
  "description": "Shared type definitions between ProteinPaint server and client code",
6
6
  "main": "src/index.ts",
package/src/dataset.ts CHANGED
@@ -1509,9 +1509,25 @@ export type Mds = BaseMds & {
1509
1509
  }
1510
1510
  }
1511
1511
 
1512
+ type PreInitStatus = {
1513
+ status: string
1514
+ message?: string
1515
+ [props: string]: any
1516
+ }
1517
+
1518
+ export type PreInit = {
1519
+ getStatus: () => Promise<PreInitStatus>
1520
+ retryDelay?: number
1521
+ retryMax?: number
1522
+ errorCallback?: (response: PreInitStatus) => void
1523
+ }
1524
+
1512
1525
  export type Mds3 = BaseMds & {
1513
1526
  label?: Title
1514
1527
  isMds3: boolean
1528
+ loadWithoutBlocking?: boolean
1529
+ preInit?: PreInit
1530
+ initErrorCallback?: (a: any) => void
1515
1531
  viewModes?: ViewMode[]
1516
1532
  dsinfo?: KeyVal[]
1517
1533
  queries?: Mds3Queries
@@ -1522,7 +1538,7 @@ export type Mds3 = BaseMds & {
1522
1538
  ssm2canonicalisoform?: GdcApi
1523
1539
  variant2samples?: Variant2Samples
1524
1540
  // !!! TODO: improve these type definitions below !!!
1525
- getHostHeaders?: (q: any) => any
1541
+ getHostHeaders?: (q?: any) => any
1526
1542
  serverconfigFeatures?: any
1527
1543
  customTwQByType?: {
1528
1544
  [termType: string]: {
@@ -18,8 +18,10 @@ export type Cell = {
18
18
  export type Plot = {
19
19
  /** name of the plot */
20
20
  name: string
21
- /** List of cells */
22
- cells: Cell[]
21
+ /** List of cells with gene expression */
22
+ expCells?: Cell[]
23
+ /** List of cells with no gene expression, if no gene provided all cells will be here */
24
+ noExpCells?: Cell[]
23
25
  /** Column name to color by, e.g Cell type, CNV, Fusion */
24
26
  colorBy: string
25
27
  colorColumns: string[]