gps-global-types 1.0.31 → 1.0.33

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.
@@ -8,4 +8,3 @@ export declare const ClusterFields: {
8
8
  minimumPatientCount: NumberConstructor;
9
9
  distances: MapConstructor;
10
10
  };
11
- //# sourceMappingURL=cluster.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cluster.types.d.ts","sourceRoot":"","sources":["cluster.types.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;CAWzB,CAAA"}
1
+ {"version":3,"file":"cluster.types.d.ts","sourceRoot":"","sources":["../src/cluster.types.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;CAWzB,CAAA"}
@@ -1,4 +1,7 @@
1
- export const ClusterFields = {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ClusterFields = void 0;
4
+ exports.ClusterFields = {
2
5
  // '_id': ObjectId,
3
6
  'threshold': Number,
4
7
  'scheme': String,
@@ -9,6 +12,5 @@ export const ClusterFields = {
9
12
  'minimumPatientCount': Number,
10
13
  // 'isolates': [clusterIsoSchema], //array of ClusterIsolates
11
14
  'distances': Map,
12
- }
13
-
14
- // module.exports = {ClusterFields}
15
+ };
16
+ // module.exports = {ClusterFields}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cluster.types.js","sourceRoot":"","sources":["../src/cluster.types.tsx"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG;IACzB,mBAAmB;IACnB,WAAW,EAAE,MAAM;IACnB,QAAQ,EAAE,MAAM;IAChB,iBAAiB,EAAE,MAAM;IACzB,UAAU,EAAE,OAAO;IACnB,aAAa,EAAE,IAAI;IACnB,cAAc,EAAE,IAAI;IACpB,qBAAqB,EAAE,MAAM;IAC7B,6DAA6D;IAC7D,WAAW,EAAE,GAAG;CACnB,CAAA;AAED,mCAAmC"}
@@ -12,4 +12,3 @@ 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
- //# sourceMappingURL=global.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"global.types.d.ts","sourceRoot":"","sources":["global.types.tsx"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,kBAAkB,CAAC,OAAO,SAAS,MAAM,IACnD,GAAG,MAAM,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,EAAE,CAAC;AAIrC,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAA;AAC1C,MAAM,MAAM,QAAQ,GAAG,kBAAkB,CAAC,iBAAiB,CAAC,CAAA;AAC5D,MAAM,MAAM,YAAY,GAAG,MAAM,CAAA;AACjC,MAAM,MAAM,MAAM,GAAG,MAAM,CAAA;AAC3B,MAAM,MAAM,eAAe,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAA;AACxD,MAAM,MAAM,GAAG,GAAG,kBAAkB,CAAC,QAAQ,CAAC,CAAA;AAC9C,MAAM,MAAM,GAAG,GAAG,kBAAkB,CAAC,gCAAgC,CAAC,CAAA;AACtE,MAAM,MAAM,KAAK,GAAG,GAAG,GAAG,GAAG,GAAG,MAAM,CAAA"}
1
+ {"version":3,"file":"global.types.d.ts","sourceRoot":"","sources":["../src/global.types.tsx"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,kBAAkB,CAAC,OAAO,SAAS,MAAM,IACnD,GAAG,MAAM,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,EAAE,CAAC;AAIrC,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAA;AAC1C,MAAM,MAAM,QAAQ,GAAG,kBAAkB,CAAC,iBAAiB,CAAC,CAAA;AAC5D,MAAM,MAAM,YAAY,GAAG,MAAM,CAAA;AACjC,MAAM,MAAM,MAAM,GAAG,MAAM,CAAA;AAC3B,MAAM,MAAM,eAAe,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAA;AACxD,MAAM,MAAM,GAAG,GAAG,kBAAkB,CAAC,QAAQ,CAAC,CAAA;AAC9C,MAAM,MAAM,GAAG,GAAG,kBAAkB,CAAC,gCAAgC,CAAC,CAAA;AACtE,MAAM,MAAM,KAAK,GAAG,GAAG,GAAG,GAAG,GAAG,MAAM,CAAA"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ {"version":3,"file":"global.types.js","sourceRoot":"","sources":["../src/global.types.tsx"],"names":[],"mappings":""}
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export * from './global.types.tsx';
2
- export * from './link.types.tsx';
3
- export * from './mst.types.tsx';
4
- export * from './pie.types.tsx';
5
- export * from './isolate.types.tsx';
6
- //# sourceMappingURL=index.d.ts.map
1
+ export * from './global.types';
2
+ export * from './link.types';
3
+ export * from './mst.types';
4
+ export * from './pie.types';
5
+ export * from './isolate.types';
6
+ export * from './cluster.types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,qBAAqB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./global.types"), exports);
18
+ __exportStar(require("./link.types"), exports);
19
+ __exportStar(require("./mst.types"), exports);
20
+ __exportStar(require("./pie.types"), exports);
21
+ __exportStar(require("./isolate.types"), exports);
22
+ __exportStar(require("./cluster.types"), exports);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA8B;AAC9B,+CAA4B;AAC5B,8CAA2B;AAC3B,8CAA2B;AAC3B,kDAA+B"}
@@ -127,4 +127,3 @@ export declare const IsolateFields: {
127
127
  mrsnSuperFamily: StringConstructor;
128
128
  expectedPhenotype: StringConstructor;
129
129
  };
130
- //# sourceMappingURL=isolate.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"isolate.types.d.ts","sourceRoot":"","sources":["isolate.types.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;CAetB,CAAA;AAGD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmHzB,CAAA"}
1
+ {"version":3,"file":"isolate.types.d.ts","sourceRoot":"","sources":["../src/isolate.types.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;CAetB,CAAA;AAGD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmHzB,CAAA"}
@@ -1,4 +1,7 @@
1
- export const KlebFields = {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IsolateFields = exports.KlebFields = void 0;
4
+ exports.KlebFields = {
2
5
  'Yersiniabactin': String,
3
6
  'Colibactin': String,
4
7
  'Aerobactin': String,
@@ -12,12 +15,9 @@ export const KlebFields = {
12
15
  "Omp_mutations": String,
13
16
  "Col_mutations": String,
14
17
  "Flq_mutations": String,
15
-
16
- }
17
-
18
-
19
- export const IsolateFields = {
20
- "_id":String,
18
+ };
19
+ exports.IsolateFields = {
20
+ "_id": String,
21
21
  "mrsnId": String,
22
22
  "qcCallFinal": String,
23
23
  "rawOrganismId": String,
@@ -74,7 +74,7 @@ export const IsolateFields = {
74
74
  "armordPatientId": String,
75
75
  "armordRawOrganismId": String,
76
76
  "armordUnit": String,
77
- "submittedOrganismId": String,
77
+ "submittedOrganismId": String,
78
78
  "isManuallyEntered": Boolean,
79
79
  "sampleType": String,
80
80
  "qcPoc": String,
@@ -131,4 +131,4 @@ export const IsolateFields = {
131
131
  "mrsnSuperFamily": String,
132
132
  "expectedPhenotype": String,
133
133
  // "kleborate": [KlebSchema]
134
- }
134
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isolate.types.js","sourceRoot":"","sources":["../src/is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sB,EAAE,MAAM;IAC9B,oBAAoB,EAAE,MAAM;IAC5B,sBAAsB,EAAE,MAAM;IAC9B,oBAAoB,EAAE,MAAM;IAC5B,sBAAsB,EAAE,MAAM;IAC9B,wBAAwB,EAAE,MAAM;IAChC,0BAA0B,EAAE,MAAM;IAClC,wBAAwB,EAAE,MAAM;IAChC,0BAA0B,EAAE,MAAM;IAClC,kBAAkB,EAAE,MAAM;IAC1B,oBAAoB,EAAE,MAAM;IAC5B,kBAAkB,EAAE,MAAM;IAC1B,oBAAoB,EAAE,MAAM;IAC5B,YAAY,EAAE,MAAM;IACpB,cAAc,EAAE,MAAM;IACtB,kBAAkB,EAAE,MAAM;IAC1B,iBAAiB,EAAE,OAAO;IAC1B,iBAAiB,EAAE,MAAM;IACzB,QAAQ,EAAE,MAAM;IAChB,aAAa,EAAE,MAAM;IACrB,oBAAoB,EAAE,MAAM;IAC5B,qBAAqB,EAAE,IAAI;IAC3B,kBAAkB,EAAE,OAAO;IAC3B,UAAU,EAAE,MAAM;IAClB,YAAY,EAAE,IAAI;IAClB,oEAAoE;IACpE,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,MAAM;IAChB,SAAS,EAAE,KAAK;IAChB,aAAa,EAAE,KAAK;IACpB,iBAAiB,EAAE,MAAM;IACzB,mBAAmB,EAAE,MAAM;IAC3B,4BAA4B;CAC/B,CAAA"}
@@ -1,8 +1,7 @@
1
1
  import { SimulationLinkDatum } from 'd3';
2
- import { NodeType } from './pie.types.tsx';
2
+ import { NodeType } from './pie.types';
3
3
  export interface EdgeType extends SimulationLinkDatum<NodeType> {
4
4
  source: NodeType;
5
5
  target: NodeType;
6
6
  value: number;
7
7
  }
8
- //# sourceMappingURL=link.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"link.types.d.ts","sourceRoot":"","sources":["link.types.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,IAAI,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,MAAM,WAAW,QAAS,SAAQ,mBAAmB,CAAC,QAAQ,CAAC;IAC3D,MAAM,EAAE,QAAQ,CAAA;IAChB,MAAM,EAAE,QAAQ,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;CAChB"}
1
+ {"version":3,"file":"link.types.d.ts","sourceRoot":"","sources":["../src/link.types.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,IAAI,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,WAAW,QAAS,SAAQ,mBAAmB,CAAC,QAAQ,CAAC;IAC3D,MAAM,EAAE,QAAQ,CAAA;IAChB,MAAM,EAAE,QAAQ,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;CAChB"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link.types.js","sourceRoot":"","sources":["../src/link.types.tsx"],"names":[],"mappings":""}
@@ -1,7 +1,7 @@
1
- import { ClusterFields } from "./cluster.types.tsx";
2
- import { Color, ObjectId } from "./global.types.tsx";
3
- import { IsolateFields } from "./isolate.types.tsx";
4
- import { EdgeType } from "./link.types.tsx";
1
+ import { ClusterFields } from "./cluster.types";
2
+ import { Color, ObjectId } from "./global.types";
3
+ import { IsolateFields } from "./isolate.types";
4
+ import { EdgeType } from "./link.types";
5
5
  export interface mstGlobalTypes {
6
6
  charge: number;
7
7
  radius: number;
@@ -102,4 +102,3 @@ export interface getAClusterBody {
102
102
  snapshotData?: SnapshotType;
103
103
  }
104
104
  export {};
105
- //# sourceMappingURL=mst.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mst.types.d.ts","sourceRoot":"","sources":["mst.types.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAyB,KAAK,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AKrI,MAAM,WAAW,YAAY;IACzB,GAAG,EAAE,QAAQ,CAAC;IACd,IAAI,EAAE,cAAc,CAAC;IACrB,MAAM,EAAE,YAAY,EAAE,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC,QAAQ,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CACzD;AACD;;;;;;;;;;GAUG;AACH;;;;GAIG;AACH;;;;;;GAMG;AAEH;;;;;;;;;;;;;;EAcE;AAIF,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,aAAa,GAAG,SAAS,GAAG,WAAW,MAAM,OAAO,aAAa,EAAE,GAAG,MAAM,OAAO,aAAa,CAAA;AAGvI,MAAM,WAAW,eAAe;IAG5B,KAAK,CAAC,EAAC,OAAO,CAAC,MAAM,CAAE,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC;IAE7C,KAAK,CAAC,EAAC,MAAM,CAAC;IACd,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,YAAY,CAAC,EAAC,YAAY,CAAA;CAE3B"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.labelFields = exports.dateFields = exports.colorFields = void 0;
4
+ exports.colorFields = ['armordPatientId', 'mlst', 'sampleType', 'armordFacility', 'country', 'custom color']; //no :string[] ! removes 'const'
5
+ exports.dateFields = ['armordCultureDate', 'month', 'quarter', 'year'];
6
+ exports.labelFields = ['armordMrsnIdLBL', 'mrsnIdLBL', 'armordAccessionNumberLBL', 'armordPatientIdLBL', 'custom label'];
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mst.types.js","sourceRoot":"","sources":["../src/mst.types.tsx"],"names":[],"mappings":";;;AAwBa,QAAA,WAAW,GAAG,CAAC,iBAAiB,EAAE,MAAM,EAAE,YAAY,EAAE,gBAAgB,EAAE,SAAS,EAAE,cAAc,CAAU,CAAC,CAAC,gCAAgC;AAC/I,QAAA,UAAU,GAAG,CAAC,mBAAmB,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,CAAU,CAAC;AACxE,QAAA,WAAW,GAAG,CAAC,iBAAiB,EAAE,WAAW,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,cAAc,CAAU,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { BaseType, Selection, SimulationNodeDatum } from "d3";
2
- import { ObjectId, Color, RegexMatchedString, mrsnId } from "./global.types.tsx";
3
- import { colorKey, dateKey, labelKey } from "./mst.types.tsx";
2
+ import { ObjectId, Color, RegexMatchedString, mrsnId } from "./global.types";
3
+ import { colorKey, dateKey, labelKey } from "./mst.types";
4
4
  export interface ColorField {
5
5
  color: string;
6
6
  value: number;
@@ -66,4 +66,3 @@ export type PreNodeInterface = ExcludeB4A<ExtraNodeTypeFields> & {
66
66
  beforeAndAfter: any;
67
67
  };
68
68
  export {};
69
- //# sourceMappingURL=pie.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pie.types.d.ts","sourceRoot":"","sources":["pie.types.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,IAAI,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChF,OAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAE9D,MAAM,WAAW,UAAU;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAChC,MAAM,WAAW,SAAS;IACtB,KAAK,EAAE,KAAK,CAAC;IACb,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Q,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAA;AACzF,MAAM,WAAW,OAAO;IACpB,CAAC,EAAE,eAAe,CAAC;IACnB,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjB,UAAU,EAAE,MAAM,QAAQ,CAAC;CAC9B;AACD,MAAM,WAAW,YAAY;IACzB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,EAAE,OAAO,CAAA;CAClB;AAQD,MAAM,WAAW,cAAc;IAC3B,UAAU,EAAE,MAAM,QAAQ,CAAC;IAC3B,GAAG,EAAE,eAAe,CAAC;IACrB,UAAU,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,aAAa;IAC1B,UAAU,EAAE,MAAM,QAAQ,CAAC;IAC3B,GAAG,EAAE,eAAe,CAAC;IACrB,IAAI,EAAE,OAAO,CAAA;CAChB;AAED,KAAK,cAAc,GAAG,MAAM,CAAC,KAAK,EAAC,MAAM,CAAC,CAAC;AAE3C,KAAK,UAAU,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC;AAE/C,MAAM,MAAM,gBAAgB,GAAI,UAAU,CAAC,mBAAmB,CAAC,GAAG;KAC7D,CAAC,IAAI,QAAQ,GAAG,OAAO,GAAI,cAAc;CAC7C,GAAG;KACC,CAAC,IAAI,QAAQ,GAAG,SAAS;CAC7B,GAAG;IAAC,QAAQ,EAAE,CAAC,KAAK,EAAC,QAAQ,GAAC,OAAO,EAAE,KAAK,EAAC,KAAK,KAAI,IAAI,CAAA;CAAC,GAAG;IAAC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAAA,cAAc,EAAC,GAAG,CAAA;CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pie.types.js","sourceRoot":"","sources":["../src/pie.types.tsx"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "gps-global-types",
3
- "version": "1.0.31",
3
+ "version": "1.0.33",
4
4
  "description": "types shared between front-end and back-end",
5
- "main": "dist/index.tsx",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
6
7
  "files": [
7
8
  "dist"
8
9
  ],
@@ -1,18 +0,0 @@
1
- export type StringDictionary = {
2
- [key: string]: string;
3
- };
4
-
5
- export type RegexMatchedString<Pattern extends string> =
6
- `${string & { __brand: Pattern }}`;
7
- //TYPES OF STRINGS
8
-
9
-
10
- export type armordAccessionNumber = string // who KNOWS the format of these
11
- export type ObjectId = RegexMatchedString<'[a-zA-Z0-9]{12}'> //12 byte string meant to index mongo docs
12
- export type armordMrsnId = string // 6 o/* */r 7 digit number typically, but the bi-db is a cesspool
13
- export type mrsnId = string // ###### ('MRSN' + 6 or 7 digit number) typically, but the bi-db is a cesspool
14
- export type armordPatientId = RegexMatchedString<'M\d+'> // M###### ('M'+6 digit number), but the bi-db is a cesspool
15
- export type Hex = RegexMatchedString<'#\d{6}'> // 6 digit String hexadecimal w/ '#' prepended
16
- export type Rgb = RegexMatchedString<'rgb\([1-256],[1-256],[1-256]\)'> // format rgb(\d[1-256],\d[1-256],\d[1-256])
17
- export type Color = Hex | Rgb | string
18
-
package/dist/index.tsx DELETED
@@ -1,5 +0,0 @@
1
- export * from './global.types.tsx'
2
- export * from './link.types.tsx'
3
- export * from './mst.types.tsx'
4
- export * from './pie.types.tsx'
5
- export * from './isolate.types.tsx'
@@ -1,9 +0,0 @@
1
- import { SimulationLinkDatum } from 'd3';
2
- import { NodeType } from './pie.types.tsx';
3
-
4
- export interface EdgeType extends SimulationLinkDatum<NodeType> { // extends SimulationLinkDatum<NodeType>} anything not defined here was added by d3 (or i fucked up)
5
- source: NodeType // node _id edge to
6
- target: NodeType // node _id edge from
7
- value: number // distance between source and target
8
- }
9
-
@@ -1,169 +0,0 @@
1
- import { ClusterFields } from "./cluster.types.tsx";
2
- import { armordAccessionNumber, Color, mrsnId, ObjectId } from "./global.types.tsx";
3
- import { IsolateFields } from "./isolate.types.tsx";
4
- import { EdgeType } from "./link.types.tsx";
5
-
6
- export interface mstGlobalTypes {
7
- //form values
8
- charge: number, //= -100, // repulsion
9
- radius: number, //= 15, // user adjustment of node radius
10
- cluster: number, //= 0, // less than highlight threshold for links
11
- distance: number //=
12
- linkLabelSize: number, //= 12, // fontSize of link labels
13
- center: [number, number,]//[800,500],// where on the page does the tree spawn (x,y )
14
- fuzzyThreshold: number, //= 0, // nodes outside of requested list that are x alleles away from the original mst
15
- neighbor: number, //= 1, // how many isolate neighbors to return (minimum)
16
- slim?: boolean, //false //are the node labels collapsed or expanded?
17
-
18
- //interactive nodes
19
- checkedNodes:ObjectId[],
20
- highlightedNodes:ObjectId[],
21
- graph?:MSTGraph
22
-
23
- }
24
-
25
- export const colorFields = ['armordPatientId', 'mlst', 'sampleType', 'armordFacility', 'country', 'custom color'] as const; //no :string[] ! removes 'const'
26
- export const dateFields = ['armordCultureDate', 'month', 'quarter', 'year'] as const;
27
- export const labelFields = ['armordMrsnIdLBL', 'mrsnIdLBL', 'armordAccessionNumberLBL', 'armordPatientIdLBL', 'custom label'] as const;
28
-
29
- export type colorKey = typeof colorFields[number];
30
- export type dateKey = typeof dateFields[number];
31
- export type labelKey = typeof labelFields[number];
32
-
33
-
34
-
35
-
36
-
37
-
38
- type CustomDictEntry = Partial<Record<colorKey & dateKey, Color>> | Partial<Record<labelKey, string>>;
39
- export type CustomDict = Record<ObjectId, CustomDictEntry>
40
-
41
-
42
- export interface LatestNodes { armordCultureDate: Date | string, isos: any[], _id: ObjectId[] }
43
- export interface MSTGraph {
44
- name?:string,
45
- colorCalendar:Partial<Record<dateKey, Record<string, Color>>> //correctly color nodes based on dates
46
- snapshotData?:SnapshotType
47
- nodes: any //todo:temp//NodeType[] // core parameter of d3tree.js . keeps all isolates collection data
48
- links: EdgeType[] // core parameter of d3tree.js
49
- latest: LatestNodes // earliest node for easy toggling
50
- custom: CustomDict // . I KNOW THIS IS DUMB but from user's pov it results in seamless color transitions across pages
51
- legend: MSTLegend // saves legend configs across all color fields
52
- missing:Record<string,any>[] //todo: isolate.types. global
53
- }interface FlashTable {
54
- "_id": ObjectId,
55
- "MRSN ID¹": mrsnId,
56
- "Cx Date": Date | string,
57
- "Cx Source": string,
58
- "Wards": string,
59
- "Prev Report #²": string,
60
- "Accession #": armordAccessionNumber,
61
- "Last Name": "...",
62
- "DOD ID": "..."
63
- }
64
-
65
- interface FlashData { //todo: add 'tier1s' here
66
- dateCreated: Date,
67
- first: boolean, //first node added to thec cluster
68
- isolateCount: number,
69
- lastModified: Date,
70
- mostRecent: {
71
- _id: ObjectId[],
72
- armordCultureDate: Date | string,
73
- isos: Record<string, any>[], //todo
74
- }
75
- mostCloselyRelated: {
76
- _id: ObjectId,
77
- armordCultureDate: Date | string,
78
- distance: number
79
- },
80
- patientCount: number,
81
- st: string,
82
- table: FlashTable[],
83
- wardCount: string,
84
- wgsId: string
85
- }
86
-
87
-
88
- interface MSTResult {
89
- flash: FlashData,
90
- graph: MSTGraph,
91
- tabular: {
92
- isolate: Record<string, any>[],
93
- amr: Record<string, any>[]
94
- }
95
- }
96
-
97
- export interface LegendBullet { //or custom upload data
98
- color: Color,
99
- label: string
100
- }
101
-
102
- export type MSTLegend = Partial<Record<colorKey|'beforeAndAfter'|'custom color', LegendBullet[]>> & Partial<Record<dateKey, 'date'>>;
103
- // & { 'beforeAndAfter': [{ color: '#666666', label: 'Before ' }, { color: '#4a64aa', label: 'After ' }] }
104
-
105
-
106
-
107
- export interface SnapshotType {
108
- _id: ObjectId,
109
- form: mstGlobalTypes,
110
- legend: LegendBullet[],
111
- nodes: Record<ObjectId, LegendBullet>,
112
- scheme: string,
113
- transforms: Record<ObjectId, { x: number, y: number }>
114
- }
115
- /** /mst route RESULT
116
-
117
- /**
118
- * @typedef D3treeProps
119
- * @property {MSTGraph} data except it only requires links,nodes,legend, and custom
120
- * @property {ForceObject} form
121
- * @property {String|null} _id cluster _id
122
- * @property {function(Snapshot)} setSnapshot
123
- * @property {function(MSTGraph)} setData trigger parent data state which affects variables in parent
124
- * @property {function([[import('../../typedefs/MSTree').mrsnId[],Boolean ]])} setSelected connects nodes to table rows on click
125
- */
126
- /**force
127
- * @typedef d3Data
128
- * @property {EdgeType[]} links
129
- * @property {NodeType[]} pies
130
- */
131
- /**string
132
- * @typedef ItolProps
133
- * @property {string} scheme
134
- * @property {ObjectId[]} isolates targets centered for analysis
135
- * @property {int} neighbors min # of nearest samples to include (beyond targets)
136
- * @property {int} threshold max allelic distance from the targets to include
137
- */
138
- //IDK WHY THESE EXIST
139
- /**
140
- * @typedef MstFields
141
- * @property {String[]} clusterNickName
142
- * @property {String[]} scheme
143
- * @property {Date} lastModified
144
- * @property {Date} dateModified
145
- *
146
- *
147
- *
148
- *
149
- *
150
- *
151
- * @typedef {{...SplashReq,...MstFields}} MSTreeReq
152
- *
153
- */
154
- // module.exports = { MSTGraph, MSTLegend, NodeType,EdgeType,Hex, ColorField,LabelField}
155
- // exports.unused = {};
156
-
157
- export type QueryFields = keyof typeof IsolateFields | 'cluster' | `cluster.${keyof typeof ClusterFields}` | keyof typeof ClusterFields
158
-
159
-
160
- export interface getAClusterBody {
161
- //theres 4 ways of calling this function
162
- //1. through a BAQ involving iso and/or cluster fields
163
- query?:Partial<Record< QueryFields, Object>>,
164
- // clusterQuery?:Partial<Record<keyof typeof ClusterFields, Object>>, //2. selecting a cluster on /clusters (sending cluster _id)
165
- fuzzy?:number, //3. by recalculating a previous query
166
- neighbors?:number, // (fuzzy and neighbors are only available on recalc)
167
- snapshotData?:SnapshotType //4. uploading a snapshot. (should i extrapolate ),
168
-
169
- }
@@ -1,78 +0,0 @@
1
- import { BaseType, Selection, SimulationNodeDatum } from "d3";
2
- import { ObjectId, Color, RegexMatchedString, mrsnId } from "./global.types.tsx"
3
- import { colorKey, dateKey, labelKey } from "./mst.types.tsx"
4
-
5
- export interface ColorField {//TYPES OF GRAPH FIELDS ColorField datefields become colorFields but require additional processing
6
- color: string, // unique hex or rgb of parameter
7
- value: number, // count of how many times value will be represented in the pie
8
- latest?: string // most recent node designation; diff coloring logic for 'latest' nodes
9
- }
10
-
11
- export type LabelField = string; //if n>1, seperated by '&' which are interpreted as newlines in front-end. var names ends with 'LBL'.
12
- export interface ColorType {
13
- color: Color, //unique hex of parameter
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
16
- }
17
- export type LabelType = RegexMatchedString<'(\w&)*'> // if many, seperated by '&' qhich are interpreted as newlines in front-end. var names ends with 'LBL'.
18
- type DateType = string | Date; // must be able to be interpreted as date type by Date js object
19
-
20
-
21
- export interface ExtraNodeTypeFields extends SimulationNodeDatum {
22
- id: ObjectId,//unique identifier referenced by Graph.links and d3 Force. String but it's a string of a mongo id
23
- beforeAndAfter?: ColorType[], //[=[{color:'#fff',value:1}]] so it doesnt break on recalculation
24
- dateArr: DateType[], // array of armordCultureDates used for beforeAndAfter coloring
25
- hover?: string, // [=""] //unique fieldfields \/ \/ list seperated by ', ' (only tier1 alleles for now)
26
- nodeids: ObjectId[] // for selection logic between table and node=
27
- mrsnIds:mrsnId[],
28
- x?: number,
29
- y?: number,
30
- fx?: number | null,
31
- fy?: number | null,
32
- }
33
-
34
- export type NodeType = ExtraNodeTypeFields & {
35
- [K in colorKey | dateKey]: ColorType[];
36
- } & {
37
- [K in labelKey]: LabelType[];
38
- }; //d3.Selection<SVGGElement, NodeType, d3.BaseType, unknown>
39
- export type ParentSelection = Selection<SVGGElement, NodeType, BaseType, unknown>
40
- export type PieSelection = Selection<SVGCircleElement, NodeType, BaseType, NodeType[]>
41
- export type PieTextSelection = Selection<SVGTextElement, NodeType, SVGGElement, NodeType>
42
- export interface PieType {
43
- g: ParentSelection,
44
- data: NodeType[],
45
- labelField: keyof NodeType, //todo acceptable strings!
46
- }
47
- export interface SelectionObj {
48
- mrsnIds: string[],
49
- active: boolean
50
- }
51
- // export interface InitializeDragProps {
52
- // sticky: boolean,
53
- // sim: RefObject<Simulation<SimulationNodeDatum, any>>,
54
- // setSelected: Dispatch<SetStateAction<SelectionObj>>,
55
- // height: number,
56
- // width: number// todo can this be a global const somewhere instead?
57
- // }
58
- export interface NodeColorProps {
59
- colorField: keyof NodeType,
60
- svg: ParentSelection,
61
- formRadius: number
62
- }
63
-
64
- export interface newLabelProps {
65
- labelField: keyof NodeType,
66
- svg: ParentSelection,
67
- slim: boolean
68
- }
69
-
70
- type ColorCountTemp = Record<Color,number>; //| ColorType[]
71
-
72
- type ExcludeB4A<T> = Omit<T, 'beforeAndAfter'>;
73
- // type ExcludeB4A<T> = Omit<T, 'beforeAndAfter'>;
74
- export type PreNodeInterface = ExcludeB4A<ExtraNodeTypeFields> & {
75
- [K in colorKey | dateKey ]: ColorCountTemp;
76
- } & {
77
- [K in labelKey]: LabelType;
78
- } & {populate :(field:colorKey|dateKey, value:Color)=> void} & {tier1: Set<string>,beforeAndAfter:any}