@milaboratories/pl-model-middle-layer 1.7.45 → 1.7.47

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,31 +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 { PTableV5, PTableV6 } from './table';
6
- /** Read interface exposed by PFrames library */
7
- export interface PFrameReadAPIV7 {
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): PTableV5;
25
- /** Calculate set of unique values for a specific axis for the filtered set of records */
26
- getUniqueValues(request: UniqueValuesRequest, ops?: {
27
- signal?: AbortSignal;
28
- }): Promise<UniqueValuesResponse>;
29
- }
5
+ import { PTableV6 } from './table';
30
6
  /** Read interface exposed by PFrames library */
31
7
  export interface PFrameReadAPIV8 {
32
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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AmB,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 { PFrameReadAPIV7, PFrameReadAPIV8 } from './api_read';
2
+ import { PFrameReadAPIV8 } from './api_read';
3
3
  export type Logger = (level: 'info' | 'warn' | 'error', message: string) => void;
4
- export interface PFrameV7 extends PFrameFactoryAPI, PFrameReadAPIV7 {
5
- }
6
4
  export interface PFrameV8 extends PFrameFactoryAPI, PFrameReadAPIV8 {
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,50 +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 PTableV5 {
9
- /**
10
- * Returns ordered array of table axes specs (primary key "columns" in SQL
11
- * terms) and data column specs (regular "columns" in SQL terms).
12
- *
13
- * Data for a specific table column can be retrieved using unified indexing
14
- * corresponding to elements in this array.
15
- *
16
- * Axes are always listed first.
17
- * */
18
- getSpec(): PTableColumnSpec[];
19
- /** Transforms unified column identifiers into unified indices of columns. */
20
- getColumnIndices(columnIds: PTableColumnId[]): number[];
21
- /**
22
- * Unified table shape
23
- * Warning: This call materializes the join.
24
- */
25
- getShape(ops?: {
26
- signal?: AbortSignal;
27
- }): Promise<PTableShape>;
28
- /**
29
- * Retrieve the data from the table. To retrieve only data required, it can be
30
- * sliced both horizontally ({@link columnIndices}) and vertically
31
- * ({@link range}).
32
- * This call materializes the join.
33
- *
34
- * @param columnIndices unified indices of columns to be retrieved
35
- * @param range optionally limit the range of records to retrieve
36
- * */
37
- getData(columnIndices: number[], ops?: {
38
- range?: TableRange;
39
- signal?: AbortSignal;
40
- }): Promise<PTableVector[]>;
41
- /** Filters the table and returns new PTable instance */
42
- filter(request: PTableRecordFilter[]): PTableV5;
43
- /** Sorts the table and returns new PTable instance. */
44
- sort(request: PTableSorting[]): PTableV5;
45
- /** Deallocates all underlying resources */
46
- dispose(): void;
47
- }
48
2
  /**
49
3
  * Table view returned as a result of create table operation.
50
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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C,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.45",
3
+ "version": "1.7.47",
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",
@@ -20,7 +20,7 @@
20
20
  "remeda": "^2.22.6",
21
21
  "zod": "~3.23.8",
22
22
  "utility-types": "^3.11.0",
23
- "@milaboratories/pl-model-common": "^1.16.0"
23
+ "@milaboratories/pl-model-common": "^1.16.1"
24
24
  },
25
25
  "devDependencies": {
26
26
  "typescript": "~5.6.3",
@@ -8,40 +8,7 @@ import {
8
8
  UniqueValuesResponse
9
9
  } from '@milaboratories/pl-model-common';
10
10
  import { CreateTableRequestV3 } from './create_table';
11
- import { PTableV5, PTableV6 } from './table';
12
-
13
- /** Read interface exposed by PFrames library */
14
- export interface PFrameReadAPIV7 {
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): PTableV5;
36
-
37
- /** Calculate set of unique values for a specific axis for the filtered set of records */
38
- getUniqueValues(
39
- request: UniqueValuesRequest,
40
- ops?: {
41
- signal?: AbortSignal,
42
- }
43
- ): Promise<UniqueValuesResponse>;
44
- }
11
+ import { PTableV6 } from './table';
45
12
 
46
13
  /** Read interface exposed by PFrames library */
47
14
  export interface PFrameReadAPIV8 {
@@ -1,11 +1,9 @@
1
1
  import type { PFrameFactoryAPI } from './api_factory';
2
- import type { PFrameReadAPIV7, PFrameReadAPIV8 } from './api_read';
2
+ import type { PFrameReadAPIV8 } 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 PFrameV7 extends PFrameFactoryAPI, PFrameReadAPIV7 {}
10
-
11
9
  export interface PFrameV8 extends PFrameFactoryAPI, PFrameReadAPIV8 {}
@@ -8,62 +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 PTableV5 {
18
- /**
19
- * Returns ordered array of table axes specs (primary key "columns" in SQL
20
- * terms) and data column specs (regular "columns" in SQL terms).
21
- *
22
- * Data for a specific table column can be retrieved using unified indexing
23
- * corresponding to elements in this array.
24
- *
25
- * Axes are always listed first.
26
- * */
27
- getSpec(): PTableColumnSpec[];
28
-
29
- /** Transforms unified column identifiers into unified indices of columns. */
30
- getColumnIndices(columnIds: PTableColumnId[]): number[];
31
-
32
- /**
33
- * Unified table shape
34
- * Warning: This call materializes the join.
35
- */
36
- getShape(ops?: {
37
- signal?: AbortSignal,
38
- }): Promise<PTableShape>;
39
-
40
- /**
41
- * Retrieve the data from the table. To retrieve only data required, it can be
42
- * sliced both horizontally ({@link columnIndices}) and vertically
43
- * ({@link range}).
44
- * This call materializes the join.
45
- *
46
- * @param columnIndices unified indices of columns to be retrieved
47
- * @param range optionally limit the range of records to retrieve
48
- * */
49
- getData(
50
- columnIndices: number[],
51
- ops?: {
52
- range?: TableRange,
53
- signal?: AbortSignal,
54
- },
55
- ): Promise<PTableVector[]>;
56
-
57
- /** Filters the table and returns new PTable instance */
58
- filter(request: PTableRecordFilter[]): PTableV5;
59
-
60
- /** Sorts the table and returns new PTable instance. */
61
- sort(request: PTableSorting[]): PTableV5;
62
-
63
- /** Deallocates all underlying resources */
64
- dispose(): void;
65
- }
66
-
67
11
  /**
68
12
  * Table view returned as a result of create table operation.
69
13
  *