gps-global-types 1.0.92 → 1.0.93

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,19 +1,12 @@
1
1
  import { ObjectId } from './global.types';
2
- import { KlebTableObj } from './kleb.types';
3
2
  import { DataGridHeaderType } from './mst.types';
4
- export interface TableDataMultiView {
5
- isolate: {
6
- data: typeof IsolateFields[];
7
- headers: DataGridHeaderType[];
8
- };
9
- amr: {
10
- data: RowDataType[];
11
- headers: DataGridHeaderType[];
12
- };
13
- kleborate?: {
14
- data: KlebTableObj[];
15
- headers: DataGridHeaderType[];
16
- };
3
+ type validViews = 'isolate' | 'amr' | 'kleborate';
4
+ interface TableData {
5
+ data: RowDataType[];
6
+ headers: DataGridHeaderType[];
7
+ }
8
+ type TableMultiView = Partial<Record<validViews, TableData>>;
9
+ export interface TableDataMultiView extends TableMultiView {
17
10
  neighbors?: ObjectId[];
18
11
  }
19
12
  export declare const KlebFields: {
@@ -148,3 +141,4 @@ export declare const IsolateFields: {
148
141
  export interface RowDataType extends Record<string, any> {
149
142
  _id: ObjectId;
150
143
  }
144
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gps-global-types",
3
- "version": "1.0.92",
3
+ "version": "1.0.93",
4
4
  "description": "types shared between front-end and back-end",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",