gps-global-types 1.0.73 → 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;
@@ -127,3 +145,6 @@ export declare const IsolateFields: {
127
145
  mrsnSuperFamily: StringConstructor;
128
146
  expectedPhenotype: StringConstructor;
129
147
  };
148
+ export interface RowDataType extends Record<string, any> {
149
+ _id: string;
150
+ }
@@ -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 } 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,20 +76,10 @@ 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
- missingTabular?: Record<string, any>[];
82
+ missingTabular?: RowDataType[];
93
83
  }
94
84
  export type MSTResult = Record<string, MSTValue>;
95
85
  export interface LegendBullet {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gps-global-types",
3
- "version": "1.0.73",
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",