@sjcrh/proteinpaint-types 2.79.3 → 2.79.5

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 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.79.3",
3
+ "version": "2.79.5",
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
@@ -1006,6 +1006,7 @@ type Termdb = {
1006
1006
  html: string
1007
1007
  }
1008
1008
  hasSampleAncestry?: boolean
1009
+ sampleTypes?: SampleType[]
1009
1010
 
1010
1011
  tracks?: {
1011
1012
  /** allow color or shape changes in the lollipop */
@@ -1013,6 +1014,12 @@ type Termdb = {
1013
1014
  }
1014
1015
  }
1015
1016
 
1017
+ type SampleType = {
1018
+ name: string
1019
+ plural_name: string
1020
+ parent_id: string
1021
+ }
1022
+
1016
1023
  type ChartConfigByType = {
1017
1024
  [index: string]: ChartConfig
1018
1025
  }
@@ -1080,6 +1087,8 @@ type AssayAvailability = {
1080
1087
  //Shared with genome.ts
1081
1088
  export type Cohort = {
1082
1089
  hideGroupsTab?: boolean
1090
+ /** customize the default chart to open on mass ui when there's no charts. if missing it opens dictionary ui */
1091
+ defaultChartType?: string
1083
1092
  allowedChartTypes?: string[]
1084
1093
  hiddenChartTypes?: string[]
1085
1094
  renamedChartTypes?: { singleCellPlot?: string; sampleScatter?: string }