gps-global-types 1.0.18 → 1.0.19
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/mst.types.tsx +9 -11
- package/package.json +1 -1
- package/pie.types.tsx +11 -1
package/mst.types.tsx
CHANGED
|
@@ -40,14 +40,14 @@ export type CustomDict = Record<ObjectId, CustomDictEntry>
|
|
|
40
40
|
|
|
41
41
|
export interface LatestNodes { armordCultureDate: Date | string, isos: any[], _id: ObjectId[] }
|
|
42
42
|
export interface MSTGraph {
|
|
43
|
-
name?:
|
|
44
|
-
snapshotData?:
|
|
43
|
+
name?:string,
|
|
44
|
+
snapshotData?:SnapshotType
|
|
45
45
|
nodes: any //todo:temp//NodeType[] // core parameter of d3tree.js . keeps all isolates collection data
|
|
46
46
|
links: EdgeType[] // core parameter of d3tree.js
|
|
47
47
|
latest: LatestNodes // earliest node for easy toggling
|
|
48
48
|
custom: CustomDict // . I KNOW THIS IS DUMB but from user's pov it results in seamless color transitions across pages
|
|
49
49
|
legend: MSTLegend // saves legend configs across all color fields
|
|
50
|
-
missing:
|
|
50
|
+
missing:Record<string,any>[] //todo: isolate.types. global
|
|
51
51
|
}interface FlashTable {
|
|
52
52
|
"_id": ObjectId,
|
|
53
53
|
"MRSN ID¹": mrsnId,
|
|
@@ -97,7 +97,7 @@ export interface LegendBullet { //or custom upload data
|
|
|
97
97
|
label: string
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
export type MSTLegend = Partial<Record<colorKey
|
|
100
|
+
export type MSTLegend = Partial<Record<colorKey|'beforeAndAfter'|'custom color', LegendBullet[]>> & Partial<Record<dateKey, 'date'>>;
|
|
101
101
|
// & { 'beforeAndAfter': [{ color: '#666666', label: 'Before ' }, { color: '#4a64aa', label: 'After ' }] }
|
|
102
102
|
|
|
103
103
|
|
|
@@ -158,12 +158,10 @@ export type QueryFields = keyof typeof IsolateFields | 'cluster' | `cluster.${ke
|
|
|
158
158
|
export interface getAClusterBody {
|
|
159
159
|
//theres 4 ways of calling this function
|
|
160
160
|
//1. through a BAQ involving iso and/or cluster fields
|
|
161
|
-
query?:
|
|
161
|
+
query?:Partial<Record< QueryFields, Object>>,
|
|
162
162
|
// clusterQuery?:Partial<Record<keyof typeof ClusterFields, Object>>, //2. selecting a cluster on /clusters (sending cluster _id)
|
|
163
|
-
fuzzy?:
|
|
164
|
-
neighbors?:
|
|
165
|
-
snapshotData?:
|
|
166
|
-
type: 'clusterId' | 'recalc' | 'BAQ' | 'snapshot' //for backend readability
|
|
163
|
+
fuzzy?:number, //3. by recalculating a previous query
|
|
164
|
+
neighbors?:number, // (fuzzy and neighbors are only available on recalc)
|
|
165
|
+
snapshotData?:SnapshotType //4. uploading a snapshot. (should i extrapolate ),
|
|
167
166
|
|
|
168
|
-
|
|
169
|
-
}
|
|
167
|
+
}
|
package/package.json
CHANGED
package/pie.types.tsx
CHANGED
|
@@ -64,4 +64,14 @@ export interface newLabelProps {
|
|
|
64
64
|
labelField: keyof NodeType,
|
|
65
65
|
svg: ParentSelection,
|
|
66
66
|
slim: boolean
|
|
67
|
-
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
type ColorCountTemp = Record<Color,number>; //| ColorType[]
|
|
70
|
+
|
|
71
|
+
type ExcludeB4A<T> = Omit<T, 'beforeAndAfter'>;
|
|
72
|
+
// type ExcludeB4A<T> = Omit<T, 'beforeAndAfter'>;
|
|
73
|
+
export type PreNodeInterface = ExcludeB4A<ExtraNodeTypeFields> & {
|
|
74
|
+
[K in colorKey | dateKey ]: ColorCountTemp;
|
|
75
|
+
} & {
|
|
76
|
+
[K in labelKey]: LabelType;
|
|
77
|
+
} & {populate :(field:colorKey|dateKey, value:Color)=> void} & {tier1: Set<string>,beforeAndAfter:any}
|