gps-global-types 1.0.74 → 1.0.81

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.
@@ -1,3 +1,21 @@
1
+ import { ObjectId } from './global.types';
2
+ import { KlebTableObj } from './kleb.types';
3
+ import { DataGridHeaderType } from './mst.types';
4
+ export interface TableDataMultiView {
5
+ isolate: {
6
+ data: typeof IsolateFields[];
7
+ headers: DataGridHeaderType[];
8
+ };
9
+ amr: {
10
+ data: typeof IsolateFields.amr[];
11
+ headers: DataGridHeaderType[];
12
+ };
13
+ kleborate?: {
14
+ data: KlebTableObj[];
15
+ headers: DataGridHeaderType[];
16
+ };
17
+ neighbors?: ObjectId[];
18
+ }
1
19
  export declare const KlebFields: {
2
20
  Yersiniabactin: StringConstructor;
3
21
  Colibactin: StringConstructor;
@@ -0,0 +1,4 @@
1
+ import { KlebFields } from "./isolate.types";
2
+ export interface KlebTableObj extends Record<keyof typeof KlebFields, string> {
3
+ mrsnId: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
- import { ClusterFields } from "./cluster.types";
2
1
  import { armordAccessionNumber, Color, mrsnId, ObjectId } from "./global.types";
3
- import { IsolateFields, RowDataType } from "./isolate.types";
2
+ import { ClusterFields } from "./cluster.types";
4
3
  import { EdgeType } from "./link.types";
4
+ import { IsolateFields, RowDataType, TableDataMultiView } from "./isolate.types";
5
5
  import { NodeType, PreNodeInterface } from "./pie.types";
6
6
  export interface ModelSnapshotProps {
7
7
  legend: SnapshotType['legend'];
@@ -76,17 +76,7 @@ export interface DataGridHeaderType {
76
76
  export interface MSTValue {
77
77
  flash?: FlashData;
78
78
  graph: MSTGraph;
79
- tabular: {
80
- isolate: {
81
- data: Record<string, any>[];
82
- headers: DataGridHeaderType[];
83
- };
84
- amr: {
85
- data: Record<string, any>[];
86
- headers: DataGridHeaderType[];
87
- };
88
- neighbors?: ObjectId[];
89
- };
79
+ tabular: TableDataMultiView;
90
80
  ids: string[];
91
81
  editableDict?: Record<ObjectId, Record<string, string>>;
92
82
  missingTabular?: RowDataType[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gps-global-types",
3
- "version": "1.0.74",
3
+ "version": "1.0.81",
4
4
  "description": "types shared between front-end and back-end",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",