@milaboratories/pl-model-middle-layer 1.7.27 → 1.7.29

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,9 +2,9 @@ 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 { CreateTableRequestV2 } from './create_table';
5
- import { PTableV3 } from './table';
5
+ import { PTableV4 } from './table';
6
6
  /** Read interface exposed by PFrames library */
7
- export interface PFrameReadAPIV4 {
7
+ export interface PFrameReadAPIV5 {
8
8
  /**
9
9
  * Finds columns given filtering criteria on column name, annotations etc.
10
10
  * and a set of qualified axes specs to find only columns with compatible
@@ -21,7 +21,7 @@ export interface PFrameReadAPIV4 {
21
21
  /** Retrieve information about all columns currently added to the PFrame */
22
22
  listColumns(): Promise<PColumnInfo[]>;
23
23
  /** Calculates data for the table and returns an object to access it */
24
- createTable(request: CreateTableRequestV2, signal?: AbortSignal): Promise<PTableV3>;
24
+ createTable(request: CreateTableRequestV2, signal?: AbortSignal): Promise<PTableV4>;
25
25
  /** Calculate set of unique values for a specific axis for the filtered set of records */
26
26
  getUniqueValues(request: UniqueValuesRequest, signal?: AbortSignal): Promise<UniqueValuesResponse>;
27
27
  }
@@ -1,6 +1,6 @@
1
1
  import { PFrameFactoryAPI } from './api_factory';
2
- import { PFrameReadAPIV4 } from './api_read';
2
+ import { PFrameReadAPIV5 } from './api_read';
3
3
  export type Logger = (level: 'info' | 'warn' | 'error', message: string) => void;
4
- export interface PFrameV4 extends PFrameFactoryAPI, PFrameReadAPIV4 {
4
+ export interface PFrameV5 extends PFrameFactoryAPI, PFrameReadAPIV5 {
5
5
  }
6
6
  //# sourceMappingURL=pframe.d.ts.map
@@ -5,7 +5,7 @@ import { PTableColumnId, PTableColumnSpec, PTableRecordFilter, PTableShape, PTab
5
5
  * PTable can be thought as having a composite primary key, consisting of axes,
6
6
  * and a set of data columns derived from PColumn values.
7
7
  * */
8
- export interface PTableV3 {
8
+ export interface PTableV4 {
9
9
  /** Unified table shape */
10
10
  getShape(): PTableShape;
11
11
  /**
@@ -28,11 +28,11 @@ export interface PTableV3 {
28
28
  * @param columnIndices unified indices of columns to be retrieved
29
29
  * @param range optionally limit the range of records to retrieve
30
30
  * */
31
- getData(columnIndices: number[], range?: TableRange): Promise<PTableVector[]>;
31
+ getData(columnIndices: number[], range: TableRange | undefined, signal?: AbortSignal): Promise<PTableVector[]>;
32
32
  /** Filters the table and returns new PTable instance */
33
- filter(request: PTableRecordFilter[], signal?: AbortSignal): Promise<PTableV3>;
33
+ filter(request: PTableRecordFilter[], signal?: AbortSignal): Promise<PTableV4>;
34
34
  /** Sorts the table and returns new PTable instance. */
35
- sort(request: PTableSorting[], signal?: AbortSignal): Promise<PTableV3>;
35
+ sort(request: PTableSorting[], signal?: AbortSignal): Promise<PTableV4>;
36
36
  /** Deallocates all underlying resources */
37
37
  dispose(): void;
38
38
  }
@@ -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,iCAAiC,CAAC;AAEzC;;;;;KAKK;AACL,MAAM,WAAW,QAAQ;IACvB,0BAA0B;IAC1B,QAAQ,IAAI,WAAW,CAAC;IAExB;;;;;;;;SAQK;IACL,OAAO,IAAI,gBAAgB,EAAE,CAAC;IAE9B,6EAA6E;IAC7E,gBAAgB,CAAC,SAAS,EAAE,cAAc,EAAE,GAAG,MAAM,EAAE,CAAC;IAExD;;;;;;;SAOK;IACL,OAAO,CAAC,aAAa,EAAE,MAAM,EAAE,EAAE,KAAK,CAAC,EAAE,UA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,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.27",
3
+ "version": "1.7.29",
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,10 +8,10 @@ import {
8
8
  UniqueValuesResponse
9
9
  } from '@milaboratories/pl-model-common';
10
10
  import { CreateTableRequestV2 } from './create_table';
11
- import { PTableV3 } from './table';
11
+ import { PTableV4 } from './table';
12
12
 
13
13
  /** Read interface exposed by PFrames library */
14
- export interface PFrameReadAPIV4 {
14
+ export interface PFrameReadAPIV5 {
15
15
  /**
16
16
  * Finds columns given filtering criteria on column name, annotations etc.
17
17
  * and a set of qualified axes specs to find only columns with compatible
@@ -32,7 +32,7 @@ export interface PFrameReadAPIV4 {
32
32
  listColumns(): Promise<PColumnInfo[]>;
33
33
 
34
34
  /** Calculates data for the table and returns an object to access it */
35
- createTable(request: CreateTableRequestV2, signal?: AbortSignal): Promise<PTableV3>;
35
+ createTable(request: CreateTableRequestV2, signal?: AbortSignal): Promise<PTableV4>;
36
36
 
37
37
  /** Calculate set of unique values for a specific axis for the filtered set of records */
38
38
  getUniqueValues(request: UniqueValuesRequest, signal?: AbortSignal): Promise<UniqueValuesResponse>;
@@ -1,9 +1,9 @@
1
1
  import type { PFrameFactoryAPI } from './api_factory';
2
- import type { PFrameReadAPIV4 } from './api_read';
2
+ import type { PFrameReadAPIV5 } 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 PFrameV4 extends PFrameFactoryAPI, PFrameReadAPIV4 {}
9
+ export interface PFrameV5 extends PFrameFactoryAPI, PFrameReadAPIV5 {}
@@ -14,7 +14,7 @@ import {
14
14
  * PTable can be thought as having a composite primary key, consisting of axes,
15
15
  * and a set of data columns derived from PColumn values.
16
16
  * */
17
- export interface PTableV3 {
17
+ export interface PTableV4 {
18
18
  /** Unified table shape */
19
19
  getShape(): PTableShape;
20
20
 
@@ -40,13 +40,17 @@ export interface PTableV3 {
40
40
  * @param columnIndices unified indices of columns to be retrieved
41
41
  * @param range optionally limit the range of records to retrieve
42
42
  * */
43
- getData(columnIndices: number[], range?: TableRange): Promise<PTableVector[]>;
43
+ getData(
44
+ columnIndices: number[],
45
+ range: TableRange | undefined,
46
+ signal?: AbortSignal,
47
+ ): Promise<PTableVector[]>;
44
48
 
45
49
  /** Filters the table and returns new PTable instance */
46
- filter(request: PTableRecordFilter[], signal?: AbortSignal): Promise<PTableV3>;
50
+ filter(request: PTableRecordFilter[], signal?: AbortSignal): Promise<PTableV4>;
47
51
 
48
52
  /** Sorts the table and returns new PTable instance. */
49
- sort(request: PTableSorting[], signal?: AbortSignal): Promise<PTableV3>;
53
+ sort(request: PTableSorting[], signal?: AbortSignal): Promise<PTableV4>;
50
54
 
51
55
  /** Deallocates all underlying resources */
52
56
  dispose(): void;