gps-global-types 1.0.59 → 1.0.60
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/dist/mst.types.d.ts +5 -39
- package/package.json +1 -1
package/dist/mst.types.d.ts
CHANGED
|
@@ -3,6 +3,10 @@ import { armordAccessionNumber, Color, mrsnId, ObjectId } from "./global.types";
|
|
|
3
3
|
import { IsolateFields } from "./isolate.types";
|
|
4
4
|
import { EdgeType } from "./link.types";
|
|
5
5
|
import { NodeType, PreNodeInterface } from "./pie.types";
|
|
6
|
+
export interface ModelSnapshotProps {
|
|
7
|
+
legend: SnapshotType['legend'];
|
|
8
|
+
nodes: SnapshotType['nodes'];
|
|
9
|
+
}
|
|
6
10
|
export interface mstGlobalTypes {
|
|
7
11
|
charge: number;
|
|
8
12
|
radius: number;
|
|
@@ -36,7 +40,7 @@ export interface MSTGraph {
|
|
|
36
40
|
name?: string;
|
|
37
41
|
scheme: ValidCGMLSTSchemes;
|
|
38
42
|
colorCalendar: Partial<Record<dateKey, Record<string, Color>>>;
|
|
39
|
-
snapshotData?:
|
|
43
|
+
snapshotData?: ModelSnapshotProps;
|
|
40
44
|
nodes: NodeType[] | PreNodeInterface[];
|
|
41
45
|
links: EdgeType[];
|
|
42
46
|
latest: LatestNodes;
|
|
@@ -109,44 +113,6 @@ export interface SnapshotType {
|
|
|
109
113
|
nodes: Record<ObjectId, transformBulletExtension>;
|
|
110
114
|
scheme: ValidCGMLSTSchemes;
|
|
111
115
|
}
|
|
112
|
-
/** /mst route RESULT
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* @typedef D3treeProps
|
|
116
|
-
* @property {MSTGraph} data except it only requires links,nodes,legend, and custom
|
|
117
|
-
* @property {ForceObject} form
|
|
118
|
-
* @property {String|null} _id cluster _id
|
|
119
|
-
* @property {function(Snapshot)} setSnapshot
|
|
120
|
-
* @property {function(MSTGraph)} setData trigger parent data state which affects variables in parent
|
|
121
|
-
* @property {function([[import('../../typedefs/MSTree').mrsnId[],Boolean ]])} setSelected connects nodes to table rows on click
|
|
122
|
-
*/
|
|
123
|
-
/**force
|
|
124
|
-
* @typedef d3Data
|
|
125
|
-
* @property {EdgeType[]} links
|
|
126
|
-
* @property {NodeType[]} pies
|
|
127
|
-
*/
|
|
128
|
-
/**string
|
|
129
|
-
* @typedef ItolProps
|
|
130
|
-
* @property {string} scheme
|
|
131
|
-
* @property {ObjectId[]} isolates targets centered for analysis
|
|
132
|
-
* @property {int} neighbors min # of nearest samples to include (beyond targets)
|
|
133
|
-
* @property {int} threshold max allelic distance from the targets to include
|
|
134
|
-
*/
|
|
135
|
-
/**
|
|
136
|
-
* @typedef MstFields
|
|
137
|
-
* @property {String[]} clusterNickName
|
|
138
|
-
* @property {String[]} scheme
|
|
139
|
-
* @property {Date} lastModified
|
|
140
|
-
* @property {Date} dateModified
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
* @typedef {{...SplashReq,...MstFields}} MSTreeReq
|
|
148
|
-
*
|
|
149
|
-
*/
|
|
150
116
|
export type QueryFields = keyof typeof IsolateFields | 'cluster' | `cluster.${keyof typeof ClusterFields}` | keyof typeof ClusterFields;
|
|
151
117
|
export interface getAClusterBody {
|
|
152
118
|
query?: Partial<Record<QueryFields, Object>>;
|