gps-global-types 1.0.39 → 1.0.41

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.
@@ -12,3 +12,4 @@ export type armordPatientId = RegexMatchedString<'M\d+'>;
12
12
  export type Hex = RegexMatchedString<'#\d{6}'>;
13
13
  export type Rgb = RegexMatchedString<'rgb\([1-256],[1-256],[1-256]\)'>;
14
14
  export type Color = Hex | Rgb | string;
15
+ export type DateType = string | Date;
@@ -22,7 +22,8 @@ export declare const labelFields: readonly ["armordMrsnIdLBL", "mrsnIdLBL", "arm
22
22
  export type colorKey = typeof colorFields[number];
23
23
  export type dateKey = typeof dateFields[number];
24
24
  export type labelKey = typeof labelFields[number];
25
- type CustomDictEntry = Partial<Record<colorKey | dateKey, Color>> & Partial<Record<labelKey, string>>;
25
+ export type ValidCGMLSTSchemes = 'abaumanii_2' | 'cauris' | 'cdifficile' | 'cfreundii' | 'ecloacae' | 'ecoli_achtman_4' | 'efaecalis' | 'efaecium' | 'kaerogenes' | 'klebsiella' | 'paeruginosa' | 'saureus' | 'smarcescens' | 'spneumoniae' | 'spyogenes';
26
+ type CustomDictEntry = Partial<Partial<Record<colorKey | dateKey, Color>> & Partial<Record<labelKey, string>>>;
26
27
  export type CustomDict = Record<ObjectId, CustomDictEntry>;
27
28
  export interface LatestNodes {
28
29
  armordCultureDate: Date | string;
@@ -31,6 +32,7 @@ export interface LatestNodes {
31
32
  }
32
33
  export interface MSTGraph {
33
34
  name?: string;
35
+ scheme: ValidCGMLSTSchemes;
34
36
  colorCalendar: Partial<Record<dateKey, Record<string, Color>>>;
35
37
  snapshotData?: SnapshotType;
36
38
  nodes: any;
@@ -1,5 +1,5 @@
1
1
  import { BaseType, Selection, SimulationNodeDatum } from "d3";
2
- import { ObjectId, Color, RegexMatchedString, mrsnId } from "./global.types";
2
+ import { ObjectId, Color, RegexMatchedString, mrsnId, DateType } from "./global.types";
3
3
  import { colorKey, dateKey, labelKey } from "./mst.types";
4
4
  export interface ColorField {
5
5
  color: string;
@@ -13,7 +13,6 @@ export interface ColorType {
13
13
  latest?: 'latest';
14
14
  }
15
15
  export type LabelType = RegexMatchedString<'(\w&)*'>;
16
- type DateType = string | Date;
17
16
  export interface ExtraNodeTypeFields extends SimulationNodeDatum {
18
17
  id: ObjectId;
19
18
  dateArr: DateType[];
@@ -62,4 +61,3 @@ export type PreNodeInterface = ExtraNodeTypeFields & {
62
61
  } & {
63
62
  tier1: Set<string>;
64
63
  };
65
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gps-global-types",
3
- "version": "1.0.39",
3
+ "version": "1.0.41",
4
4
  "description": "types shared between front-end and back-end",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",