gps-global-types 1.0.19 → 1.0.20

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 CHANGED
@@ -41,6 +41,7 @@ export type CustomDict = Record<ObjectId, CustomDictEntry>
41
41
  export interface LatestNodes { armordCultureDate: Date | string, isos: any[], _id: ObjectId[] }
42
42
  export interface MSTGraph {
43
43
  name?:string,
44
+ colorCalendar:Partial<Record<dateKey, Record<string, Color>>> //correctly color nodes based on dates
44
45
  snapshotData?:SnapshotType
45
46
  nodes: any //todo:temp//NodeType[] // core parameter of d3tree.js . keeps all isolates collection data
46
47
  links: EdgeType[] // core parameter of d3tree.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gps-global-types",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "types shared between front-end and back-end",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/pie.types.tsx CHANGED
@@ -11,7 +11,8 @@ export interface ColorField {//TYPES OF GRAPH FIELDS ColorField datefields becom
11
11
  export type LabelField = string; //if n>1, seperated by '&' which are interpreted as newlines in front-end. var names ends with 'LBL'.
12
12
  export interface ColorType {
13
13
  color: Color, //unique hex of parameter
14
- value: number //count of how many times value will be represented in the pie
14
+ value: number //count of how many times value will be represented in the pie,
15
+ latest?:'latest' //represents if slice belongs to the latest node
15
16
  }
16
17
  export type LabelType = RegexMatchedString<'(\w&)*'> // if many, seperated by '&' qhich are interpreted as newlines in front-end. var names ends with 'LBL'.
17
18
  type DateType = string | Date; // must be able to be interpreted as date type by Date js object