@sjcrh/proteinpaint-types 2.128.1 → 2.128.3-bd2a3a1c9.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/dataset.ts +18 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.128.1",
3
+ "version": "2.128.3-bd2a3a1c9.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
@@ -614,6 +614,19 @@ type CnvSegment = {
614
614
  [key: string]: any
615
615
  }
616
616
  }
617
+
618
+ /** in mds3 tk view and gdc cnv tool, when number of segments from view region exceeds this cutoff, it's piled up into density view to speed up
619
+ overrides default 1000
620
+ this cutoff does not apply to other uses beyond mds3 tk, including matrix and geneVariant
621
+ */
622
+ densityViewCutoff?: number
623
+
624
+ /** this cutoff is applied in ds.queries.cnv.get(), in that up to this number of segments will be returned
625
+ overrides default 10k
626
+ this applies to matrix, geneVariant, and mds3 tk
627
+ todo there lacks a way for getter to message downstream code of exceeding limit
628
+ */
629
+ maxReturnCutoff?: number
617
630
  }
618
631
 
619
632
  /*
@@ -1925,10 +1938,6 @@ export type PreInit = {
1925
1938
  status 4xx are not considered recoverable (client-related request errors)
1926
1939
  */
1927
1940
  getStatus: () => Promise<PreInitStatus>
1928
- /** number of milliseconds to wait before calling th preInit.getStatus() again */
1929
- retryDelay?: number
1930
- /** maximum number of times to call preInit.getStatus() before giving up */
1931
- retryMax?: number
1932
1941
  /**
1933
1942
  * dev only, used to test preInit handling by simulating different
1934
1943
  * responses in a known sequence of steps that may edit the preInit
@@ -1963,8 +1972,12 @@ export type Mds3 = BaseMds & {
1963
1972
  init?: {
1964
1973
  /** number of milliseconds to wait before calling th preInit.getStatus() again */
1965
1974
  retryDelay?: number
1966
- /** maximum number of times to call preInit.getStatus() before giving up */
1975
+ /** maximum number of tries to complete initialization, including preInit.getStatus() before validation steps
1976
+ * and the nonblocking steps after validation. Before the retryMax is reached, errors are considered recoverable;
1977
+ * errors when retryMax is reached will be fatal. */
1967
1978
  retryMax?: number
1979
+ /** option to trigger mds3InitNonblocking() on this dataset */
1980
+ hasNonblockingSteps?: boolean
1968
1981
  /** server-computed cumulative count of the attempted init retries */
1969
1982
  currentRetry?: number
1970
1983
  /**