@sjcrh/proteinpaint-types 2.89.1-1 → 2.92.1-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 +1 -1
- package/src/dataset.ts +40 -4
package/package.json
CHANGED
package/src/dataset.ts
CHANGED
|
@@ -547,8 +547,7 @@ export type SingleCellDataGdc = {
|
|
|
547
547
|
get?: (q: any) => any
|
|
548
548
|
refName?: string
|
|
549
549
|
plots: GDCSingleCellPlot[]
|
|
550
|
-
|
|
551
|
-
height?: number
|
|
550
|
+
settings?: { [key: string]: string }
|
|
552
551
|
}
|
|
553
552
|
|
|
554
553
|
export type SingleCellDEgeneGdc = {
|
|
@@ -611,8 +610,7 @@ export type SingleCellDataNative = {
|
|
|
611
610
|
get?: (q: any) => any
|
|
612
611
|
/** width and height of the plots */
|
|
613
612
|
|
|
614
|
-
|
|
615
|
-
height?: number
|
|
613
|
+
settings?: { [key: string]: any }
|
|
616
614
|
}
|
|
617
615
|
|
|
618
616
|
export type SingleCellQuery = {
|
|
@@ -1543,19 +1541,56 @@ export type Mds = BaseMds & {
|
|
|
1543
1541
|
}
|
|
1544
1542
|
|
|
1545
1543
|
type PreInitStatus = {
|
|
1544
|
+
/**
|
|
1545
|
+
* status: 'OK' indicates a valid response
|
|
1546
|
+
*
|
|
1547
|
+
* status: 'recoverableError' may cause the server code to retry until the response is healthy,
|
|
1548
|
+
* depending on the server startup code flow
|
|
1549
|
+
*
|
|
1550
|
+
* other status will be considered fatal error
|
|
1551
|
+
* */
|
|
1546
1552
|
status: string
|
|
1553
|
+
/** response message as related to the status */
|
|
1547
1554
|
message?: string
|
|
1555
|
+
/** arbitrary response payload properties that is specific to a dataset */
|
|
1548
1556
|
[props: string]: any
|
|
1549
1557
|
}
|
|
1550
1558
|
|
|
1551
1559
|
export type PreInit = {
|
|
1560
|
+
/**
|
|
1561
|
+
getStatus() is used to make sure that data sources are ready before starting to query data;
|
|
1562
|
+
for example, wait on GDC API server to be healthy before starting to initialize,
|
|
1563
|
+
or wait for intermittent network errors to clear on a network mount;
|
|
1564
|
+
HTTP connection timeout errors or status 5xx are considered recoverable,
|
|
1565
|
+
status 4xx are not considered recoverable (client-related request errors)
|
|
1566
|
+
*/
|
|
1552
1567
|
getStatus: () => Promise<PreInitStatus>
|
|
1568
|
+
/** number of milliseconds to wait before calling th preInit.getStatus() again */
|
|
1553
1569
|
retryDelay?: number
|
|
1570
|
+
/** maximum number of times to call preInit.getStatus() before giving up */
|
|
1554
1571
|
retryMax?: number
|
|
1572
|
+
/**
|
|
1573
|
+
* optional callback to send notifications of pre-init errors
|
|
1574
|
+
* for St. Jude, this may reuse code that post to Slack channel;
|
|
1575
|
+
* in dev and other portals, this may use custom callbacks
|
|
1576
|
+
* */
|
|
1555
1577
|
errorCallback?: (response: PreInitStatus) => void
|
|
1578
|
+
/**
|
|
1579
|
+
* dev only, used to test preInit handling by simulating different
|
|
1580
|
+
* responses in a known sequence of steps that may edit the preInit
|
|
1581
|
+
* response
|
|
1582
|
+
*/
|
|
1556
1583
|
test?: {
|
|
1584
|
+
/** the current number of calls to preInit.getStatus() */
|
|
1557
1585
|
numCalls: number
|
|
1586
|
+
/**
|
|
1587
|
+
* an arbitrary response payload property that is edited in mayEditResponse()
|
|
1588
|
+
* for example, this is used to simulate a stale or current GDC version
|
|
1589
|
+
* */
|
|
1558
1590
|
minor: number
|
|
1591
|
+
/**
|
|
1592
|
+
* a callback to potentially edit the preInit.getStatus() response
|
|
1593
|
+
*/
|
|
1559
1594
|
mayEditResponse: (response: any) => any
|
|
1560
1595
|
}
|
|
1561
1596
|
}
|
|
@@ -1566,6 +1601,7 @@ export type PreInit = {
|
|
|
1566
1601
|
- can supply ()=>false to hide charts that will otherwise shown
|
|
1567
1602
|
- can define arbitrary chart type names for purpose-specific charts
|
|
1568
1603
|
*/
|
|
1604
|
+
|
|
1569
1605
|
export type isSupportedChartCallbacks = {
|
|
1570
1606
|
[chartType: string]: (f: any, auth: any) => boolean | undefined
|
|
1571
1607
|
}
|