@milaboratories/pl-model-middle-layer 1.7.38 → 1.7.39

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.
@@ -2,29 +2,7 @@ import { FindColumnsRequest, FindColumnsResponse } from './find_columns';
2
2
  import { DeleteColumnFromColumnsRequest, DeleteColumnFromColumnsResponse } from './delete_column';
3
3
  import { PColumnInfo, PColumnSpec, PObjectId, UniqueValuesRequest, UniqueValuesResponse } from '@milaboratories/pl-model-common';
4
4
  import { CreateTableRequestV3 } from './create_table';
5
- import { PTableV4, PTableV5 } from './table';
6
- /** Read interface exposed by PFrames library */
7
- export interface PFrameReadAPIV6 {
8
- /**
9
- * Finds columns given filtering criteria on column name, annotations etc.
10
- * and a set of qualified axes specs to find only columns with compatible
11
- * axes spec.
12
- *
13
- * Only column specs are used, this method will work even for columns
14
- * with no assigned data.
15
- * */
16
- findColumns(request: FindColumnsRequest): Promise<FindColumnsResponse>;
17
- /** To be reviewed in the future */
18
- deleteColumn(request: DeleteColumnFromColumnsRequest): Promise<DeleteColumnFromColumnsResponse>;
19
- /** Retrieve single column spec */
20
- getColumnSpec(columnId: PObjectId): Promise<PColumnSpec>;
21
- /** Retrieve information about all columns currently added to the PFrame */
22
- listColumns(): Promise<PColumnInfo[]>;
23
- /** Calculates data for the table and returns an object to access it */
24
- createTable(request: CreateTableRequestV3, signal?: AbortSignal): Promise<PTableV4>;
25
- /** Calculate set of unique values for a specific axis for the filtered set of records */
26
- getUniqueValues(request: UniqueValuesRequest, signal?: AbortSignal): Promise<UniqueValuesResponse>;
27
- }
5
+ import { PTableV5 } from './table';
28
6
  /** Read interface exposed by PFrames library */
29
7
  export interface PFrameReadAPIV7 {
30
8
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"api_read.d.ts","sourceRoot":"","sources":["../../../src/pframe/internal_api/api_read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB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OAAO,EAAE,mBAAmB,EAC5B,GAAG,CAAC,EAAE;QACJ,MAAM,CAAC,EAAE,WAAW,CAAC;KACtB,GACA,OAAO,CAAC,oBAAoB,CAAC,CAAC;CAClC"}
@@ -1,8 +1,6 @@
1
1
  import { PFrameFactoryAPI } from './api_factory';
2
- import { PFrameReadAPIV6, PFrameReadAPIV7 } from './api_read';
2
+ import { PFrameReadAPIV7 } from './api_read';
3
3
  export type Logger = (level: 'info' | 'warn' | 'error', message: string) => void;
4
- export interface PFrameV6 extends PFrameFactoryAPI, PFrameReadAPIV6 {
5
- }
6
4
  export interface PFrameV7 extends PFrameFactoryAPI, PFrameReadAPIV7 {
7
5
  }
8
6
  //# sourceMappingURL=pframe.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pframe.d.ts","sourceRoot":"","sources":["../../../src/pframe/internal_api/pframe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAEnE,MAAM,MAAM,MAAM,GAAG,CACnB,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,EAChC,OAAO,EAAE,MAAM,KACZ,IAAI,CAAC;AAEV,MAAM,WAAW,QAAS,SAAQ,gBAAgB,EAAE,eAAe;CAAG;AAEtE,MAAM,WAAW,QAAS,SAAQ,gBAAgB,EAAE,eAAe;CAAG"}
1
+ {"version":3,"file":"pframe.d.ts","sourceRoot":"","sources":["../../../src/pframe/internal_api/pframe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,MAAM,MAAM,MAAM,GAAG,CACnB,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,EAChC,OAAO,EAAE,MAAM,KACZ,IAAI,CAAC;AAEV,MAAM,WAAW,QAAS,SAAQ,gBAAgB,EAAE,eAAe;CAAG"}
@@ -1,41 +1,4 @@
1
1
  import { PTableColumnId, PTableColumnSpec, PTableRecordFilter, PTableShape, PTableSorting, PTableVector, TableRange } from '@milaboratories/pl-model-common';
2
- /**
3
- * Table view returned as a result of create table operation.
4
- *
5
- * PTable can be thought as having a composite primary key, consisting of axes,
6
- * and a set of data columns derived from PColumn values.
7
- * */
8
- export interface PTableV4 {
9
- /** Unified table shape */
10
- getShape(): PTableShape;
11
- /**
12
- * Returns ordered array of table axes specs (primary key "columns" in SQL
13
- * terms) and data column specs (regular "columns" in SQL terms).
14
- *
15
- * Data for a specific table column can be retrieved using unified indexing
16
- * corresponding to elements in this array.
17
- *
18
- * Axes are always listed first.
19
- * */
20
- getSpec(): PTableColumnSpec[];
21
- /** Transforms unified column identifiers into unified indices of columns. */
22
- getColumnIndices(columnIds: PTableColumnId[]): number[];
23
- /**
24
- * Retrieve the data from the table. To retrieve only data required, it can be
25
- * sliced both horizontally ({@link columnIndices}) and vertically
26
- * ({@link range}).
27
- *
28
- * @param columnIndices unified indices of columns to be retrieved
29
- * @param range optionally limit the range of records to retrieve
30
- * */
31
- getData(columnIndices: number[], range: TableRange | undefined, signal?: AbortSignal): Promise<PTableVector[]>;
32
- /** Filters the table and returns new PTable instance */
33
- filter(request: PTableRecordFilter[], signal?: AbortSignal): Promise<PTableV4>;
34
- /** Sorts the table and returns new PTable instance. */
35
- sort(request: PTableSorting[], signal?: AbortSignal): Promise<PTableV4>;
36
- /** Deallocates all underlying resources */
37
- dispose(): void;
38
- }
39
2
  /**
40
3
  * Table view returned as a result of create table operation.
41
4
  *
@@ -1 +1 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/pframe/internal_api/table.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,WAAW,EACX,aAAa,EACb,YAAY,EACZ,UAAU,EACX,MAAM,iCAA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E3B,wDAAwD;IACxD,MAAM,CAAC,OAAO,EAAE,kBAAkB,EAAE,GAAG,QAAQ,CAAC;IAEhD,uDAAuD;IACvD,IAAI,CAAC,OAAO,EAAE,aAAa,EAAE,GAAG,QAAQ,CAAC;IAEzC,2CAA2C;IAC3C,OAAO,IAAI,IAAI,CAAC;CACjB"}
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/pframe/internal_api/table.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,WAAW,EACX,aAAa,EACb,YAAY,EACZ,UAAU,EACX,MAAM,iCAAiC,CAAC;AAEzC;;;;;KAKK;AACL,MAAM,WAAW,QAAQ;IACvB;;;;;;;;SAQK;IACL,OAAO,IAAI,gBAAgB,EAAE,CAAC;IAE9B,6EAA6E;IAC7E,gBAAgB,CAAC,SAAS,EAAE,cAAc,EAAE,GAAG,MAAM,EAAE,CAAC;IAExD;;;OAGG;IACH,QAAQ,CAAC,GAAG,CAAC,EAAE;QACb,MAAM,CAAC,EAAE,WAAW,CAAC;KACtB,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAEzB;;;;;;;;SAQK;IACL,OAAO,CACL,aAAa,EAAE,MAAM,EAAE,EACvB,GAAG,CAAC,EAAE;QACJ,KAAK,CAAC,EAAE,UAAU,CAAC;QACnB,MAAM,CAAC,EAAE,WAAW,CAAC;KACtB,GACA,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;IAE3B,wDAAwD;IACxD,MAAM,CAAC,OAAO,EAAE,kBAAkB,EAAE,GAAG,QAAQ,CAAC;IAEhD,uDAAuD;IACvD,IAAI,CAAC,OAAO,EAAE,aAAa,EAAE,GAAG,QAAQ,CAAC;IAEzC,2CAA2C;IAC3C,OAAO,IAAI,IAAI,CAAC;CACjB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milaboratories/pl-model-middle-layer",
3
- "version": "1.7.38",
3
+ "version": "1.7.39",
4
4
  "description": "Common model between middle layer and non-block UI code",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",
@@ -8,35 +8,7 @@ import {
8
8
  UniqueValuesResponse
9
9
  } from '@milaboratories/pl-model-common';
10
10
  import { CreateTableRequestV3 } from './create_table';
11
- import { PTableV4, PTableV5 } from './table';
12
-
13
- /** Read interface exposed by PFrames library */
14
- export interface PFrameReadAPIV6 {
15
- /**
16
- * Finds columns given filtering criteria on column name, annotations etc.
17
- * and a set of qualified axes specs to find only columns with compatible
18
- * axes spec.
19
- *
20
- * Only column specs are used, this method will work even for columns
21
- * with no assigned data.
22
- * */
23
- findColumns(request: FindColumnsRequest): Promise<FindColumnsResponse>;
24
-
25
- /** To be reviewed in the future */
26
- deleteColumn(request: DeleteColumnFromColumnsRequest): Promise<DeleteColumnFromColumnsResponse>;
27
-
28
- /** Retrieve single column spec */
29
- getColumnSpec(columnId: PObjectId): Promise<PColumnSpec>;
30
-
31
- /** Retrieve information about all columns currently added to the PFrame */
32
- listColumns(): Promise<PColumnInfo[]>;
33
-
34
- /** Calculates data for the table and returns an object to access it */
35
- createTable(request: CreateTableRequestV3, signal?: AbortSignal): Promise<PTableV4>;
36
-
37
- /** Calculate set of unique values for a specific axis for the filtered set of records */
38
- getUniqueValues(request: UniqueValuesRequest, signal?: AbortSignal): Promise<UniqueValuesResponse>;
39
- }
11
+ import { PTableV5 } from './table';
40
12
 
41
13
  /** Read interface exposed by PFrames library */
42
14
  export interface PFrameReadAPIV7 {
@@ -1,11 +1,9 @@
1
1
  import type { PFrameFactoryAPI } from './api_factory';
2
- import type { PFrameReadAPIV6, PFrameReadAPIV7 } from './api_read';
2
+ import type { PFrameReadAPIV7 } from './api_read';
3
3
 
4
4
  export type Logger = (
5
5
  level: 'info' | 'warn' | 'error',
6
6
  message: string
7
7
  ) => void;
8
8
 
9
- export interface PFrameV6 extends PFrameFactoryAPI, PFrameReadAPIV6 {}
10
-
11
9
  export interface PFrameV7 extends PFrameFactoryAPI, PFrameReadAPIV7 {}
@@ -8,54 +8,6 @@ import {
8
8
  TableRange
9
9
  } from '@milaboratories/pl-model-common';
10
10
 
11
- /**
12
- * Table view returned as a result of create table operation.
13
- *
14
- * PTable can be thought as having a composite primary key, consisting of axes,
15
- * and a set of data columns derived from PColumn values.
16
- * */
17
- export interface PTableV4 {
18
- /** Unified table shape */
19
- getShape(): PTableShape;
20
-
21
- /**
22
- * Returns ordered array of table axes specs (primary key "columns" in SQL
23
- * terms) and data column specs (regular "columns" in SQL terms).
24
- *
25
- * Data for a specific table column can be retrieved using unified indexing
26
- * corresponding to elements in this array.
27
- *
28
- * Axes are always listed first.
29
- * */
30
- getSpec(): PTableColumnSpec[];
31
-
32
- /** Transforms unified column identifiers into unified indices of columns. */
33
- getColumnIndices(columnIds: PTableColumnId[]): number[];
34
-
35
- /**
36
- * Retrieve the data from the table. To retrieve only data required, it can be
37
- * sliced both horizontally ({@link columnIndices}) and vertically
38
- * ({@link range}).
39
- *
40
- * @param columnIndices unified indices of columns to be retrieved
41
- * @param range optionally limit the range of records to retrieve
42
- * */
43
- getData(
44
- columnIndices: number[],
45
- range: TableRange | undefined,
46
- signal?: AbortSignal,
47
- ): Promise<PTableVector[]>;
48
-
49
- /** Filters the table and returns new PTable instance */
50
- filter(request: PTableRecordFilter[], signal?: AbortSignal): Promise<PTableV4>;
51
-
52
- /** Sorts the table and returns new PTable instance. */
53
- sort(request: PTableSorting[], signal?: AbortSignal): Promise<PTableV4>;
54
-
55
- /** Deallocates all underlying resources */
56
- dispose(): void;
57
- }
58
-
59
11
  /**
60
12
  * Table view returned as a result of create table operation.
61
13
  *