@sjcrh/proteinpaint-types 2.137.2-1 → 2.137.2-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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/dataset.ts +9 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.137.2-1",
3
+ "version": "2.137.2-2",
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
@@ -1517,8 +1517,12 @@ keep this setting here for reason of:
1517
1517
  /** colors for a category multivalues */
1518
1518
  [index: string]: { [index: string]: string }
1519
1519
  }
1520
- //terms are shown in the dictionary based on term and user role.
1520
+ /** terms are shown in the dictionary based on term and user role.
1521
+ */
1521
1522
  isTermVisible?: (clientAuthResult: any, id: string) => boolean
1523
+ /** when ds supports chart types e.g. summarizeMutationDiagnosis, this setting is required to supply a dict term to populate the chart ui
1524
+ */
1525
+ defaultTw4correlationPlot?: Tw
1522
1526
  }
1523
1527
 
1524
1528
  type SampleType = {
@@ -1538,8 +1542,10 @@ type PlotConfigByCohort = {
1538
1542
 
1539
1543
  /** modified version of termwrapper*/
1540
1544
  type Tw = {
1541
- id: string
1542
- q: unknown
1545
+ /** short hand for using either id (dict term) or term{} */
1546
+ id?: string
1547
+ term?: object
1548
+ q: object
1543
1549
  /** quick fix for generating URL links in mds3 tk sample table! adhoc design. may move to tw.term.baseURL and not specific to mds3 tk
1544
1550
  */
1545
1551
  baseURL?: string