@milaboratories/pl-model-middle-layer 1.7.29 → 1.7.31
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.
- package/dist/pframe/internal_api/api_read.d.ts +3 -3
- package/dist/pframe/internal_api/create_table.d.ts +18 -12
- package/dist/pframe/internal_api/create_table.d.ts.map +1 -1
- package/dist/pframe/internal_api/pframe.d.ts +2 -2
- package/package.json +2 -2
- package/src/pframe/internal_api/api_read.ts +3 -3
- package/src/pframe/internal_api/create_table.ts +24 -16
- package/src/pframe/internal_api/pframe.ts +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
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
|
-
import {
|
|
4
|
+
import { CreateTableRequestV3 } from './create_table';
|
|
5
5
|
import { PTableV4 } from './table';
|
|
6
6
|
/** Read interface exposed by PFrames library */
|
|
7
|
-
export interface
|
|
7
|
+
export interface PFrameReadAPIV6 {
|
|
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 PFrameReadAPIV5 {
|
|
|
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:
|
|
24
|
+
createTable(request: CreateTableRequestV3, 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 { ConstantAxisFilter } from './common';
|
|
2
|
-
import { PObjectId, PTableRecordFilter } from '@milaboratories/pl-model-common';
|
|
3
|
-
export interface
|
|
2
|
+
import { JsonDataInfo, PColumnSpec, PObjectId, PTableRecordFilter } from '@milaboratories/pl-model-common';
|
|
3
|
+
export interface ColumnJoinEntry {
|
|
4
4
|
type: 'column';
|
|
5
5
|
columnId: PObjectId;
|
|
6
6
|
}
|
|
@@ -10,22 +10,28 @@ export interface SlicedColumnJoinEntry {
|
|
|
10
10
|
readonly newId: PObjectId;
|
|
11
11
|
readonly axisFilters: ConstantAxisFilter[];
|
|
12
12
|
}
|
|
13
|
-
export interface
|
|
13
|
+
export interface InlineColumnJoinEntry {
|
|
14
|
+
readonly type: 'inlineColumn';
|
|
15
|
+
readonly newId: PObjectId;
|
|
16
|
+
readonly spec: PColumnSpec;
|
|
17
|
+
readonly dataInfo: JsonDataInfo;
|
|
18
|
+
}
|
|
19
|
+
export interface InnerJoinV3 {
|
|
14
20
|
type: 'inner';
|
|
15
|
-
entries:
|
|
21
|
+
entries: JoinEntryV3[];
|
|
16
22
|
}
|
|
17
|
-
export interface
|
|
23
|
+
export interface FullJoinV3 {
|
|
18
24
|
type: 'full';
|
|
19
|
-
entries:
|
|
25
|
+
entries: JoinEntryV3[];
|
|
20
26
|
}
|
|
21
|
-
export interface
|
|
27
|
+
export interface OuterJoinV3 {
|
|
22
28
|
type: 'outer';
|
|
23
|
-
primary:
|
|
24
|
-
secondary:
|
|
29
|
+
primary: JoinEntryV3;
|
|
30
|
+
secondary: JoinEntryV3[];
|
|
25
31
|
}
|
|
26
|
-
export type
|
|
27
|
-
export interface
|
|
28
|
-
src:
|
|
32
|
+
export type JoinEntryV3 = ColumnJoinEntry | SlicedColumnJoinEntry | InlineColumnJoinEntry | InnerJoinV3 | FullJoinV3 | OuterJoinV3;
|
|
33
|
+
export interface CreateTableRequestV3 {
|
|
34
|
+
src: JoinEntryV3;
|
|
29
35
|
filters: PTableRecordFilter[];
|
|
30
36
|
}
|
|
31
37
|
//# sourceMappingURL=create_table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create_table.d.ts","sourceRoot":"","sources":["../../../src/pframe/internal_api/create_table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"create_table.d.ts","sourceRoot":"","sources":["../../../src/pframe/internal_api/create_table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAE3G,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAC9B,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;IAC7B,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,WAAW,EAAE,kBAAkB,EAAE,CAAC;CAC5C;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAC9B,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAC;CACjC;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,WAAW,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,WAAW,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,WAAW,CAAC;IACrB,SAAS,EAAE,WAAW,EAAE,CAAC;CAC1B;AAED,MAAM,MAAM,WAAW,GACnB,eAAe,GACf,qBAAqB,GACrB,qBAAqB,GACrB,WAAW,GACX,UAAU,GACV,WAAW,CAAC;AAEhB,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,WAAW,CAAC;IACjB,OAAO,EAAE,kBAAkB,EAAE,CAAC;CAC/B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PFrameFactoryAPI } from './api_factory';
|
|
2
|
-
import {
|
|
2
|
+
import { PFrameReadAPIV6 } from './api_read';
|
|
3
3
|
export type Logger = (level: 'info' | 'warn' | 'error', message: string) => void;
|
|
4
|
-
export interface
|
|
4
|
+
export interface PFrameV6 extends PFrameFactoryAPI, PFrameReadAPIV6 {
|
|
5
5
|
}
|
|
6
6
|
//# sourceMappingURL=pframe.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@milaboratories/pl-model-middle-layer",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.31",
|
|
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.21.2",
|
|
21
21
|
"zod": "~3.23.8",
|
|
22
22
|
"utility-types": "^3.11.0",
|
|
23
|
-
"@milaboratories/pl-model-common": "^1.14.
|
|
23
|
+
"@milaboratories/pl-model-common": "^1.14.1"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"typescript": "~5.5.4",
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
UniqueValuesRequest,
|
|
8
8
|
UniqueValuesResponse
|
|
9
9
|
} from '@milaboratories/pl-model-common';
|
|
10
|
-
import {
|
|
10
|
+
import { CreateTableRequestV3 } from './create_table';
|
|
11
11
|
import { PTableV4 } from './table';
|
|
12
12
|
|
|
13
13
|
/** Read interface exposed by PFrames library */
|
|
14
|
-
export interface
|
|
14
|
+
export interface PFrameReadAPIV6 {
|
|
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 PFrameReadAPIV5 {
|
|
|
32
32
|
listColumns(): Promise<PColumnInfo[]>;
|
|
33
33
|
|
|
34
34
|
/** Calculates data for the table and returns an object to access it */
|
|
35
|
-
createTable(request:
|
|
35
|
+
createTable(request: CreateTableRequestV3, 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,7 +1,7 @@
|
|
|
1
1
|
import { ConstantAxisFilter } from './common';
|
|
2
|
-
import { PObjectId, PTableRecordFilter } from '@milaboratories/pl-model-common';
|
|
2
|
+
import { JsonDataInfo, PColumnSpec, PObjectId, PTableRecordFilter } from '@milaboratories/pl-model-common';
|
|
3
3
|
|
|
4
|
-
export interface
|
|
4
|
+
export interface ColumnJoinEntry {
|
|
5
5
|
type: 'column';
|
|
6
6
|
columnId: PObjectId;
|
|
7
7
|
}
|
|
@@ -13,30 +13,38 @@ export interface SlicedColumnJoinEntry {
|
|
|
13
13
|
readonly axisFilters: ConstantAxisFilter[];
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
export interface
|
|
16
|
+
export interface InlineColumnJoinEntry {
|
|
17
|
+
readonly type: 'inlineColumn';
|
|
18
|
+
readonly newId: PObjectId;
|
|
19
|
+
readonly spec: PColumnSpec;
|
|
20
|
+
readonly dataInfo: JsonDataInfo;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface InnerJoinV3 {
|
|
17
24
|
type: 'inner';
|
|
18
|
-
entries:
|
|
25
|
+
entries: JoinEntryV3[];
|
|
19
26
|
}
|
|
20
27
|
|
|
21
|
-
export interface
|
|
28
|
+
export interface FullJoinV3 {
|
|
22
29
|
type: 'full';
|
|
23
|
-
entries:
|
|
30
|
+
entries: JoinEntryV3[];
|
|
24
31
|
}
|
|
25
32
|
|
|
26
|
-
export interface
|
|
33
|
+
export interface OuterJoinV3 {
|
|
27
34
|
type: 'outer';
|
|
28
|
-
primary:
|
|
29
|
-
secondary:
|
|
35
|
+
primary: JoinEntryV3;
|
|
36
|
+
secondary: JoinEntryV3[];
|
|
30
37
|
}
|
|
31
38
|
|
|
32
|
-
export type
|
|
33
|
-
|
|
|
39
|
+
export type JoinEntryV3 =
|
|
40
|
+
| ColumnJoinEntry
|
|
34
41
|
| SlicedColumnJoinEntry
|
|
35
|
-
|
|
|
36
|
-
|
|
|
37
|
-
|
|
|
42
|
+
| InlineColumnJoinEntry
|
|
43
|
+
| InnerJoinV3
|
|
44
|
+
| FullJoinV3
|
|
45
|
+
| OuterJoinV3;
|
|
38
46
|
|
|
39
|
-
export interface
|
|
40
|
-
src:
|
|
47
|
+
export interface CreateTableRequestV3 {
|
|
48
|
+
src: JoinEntryV3;
|
|
41
49
|
filters: PTableRecordFilter[];
|
|
42
50
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { PFrameFactoryAPI } from './api_factory';
|
|
2
|
-
import type {
|
|
2
|
+
import type { PFrameReadAPIV6 } 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
|
|
9
|
+
export interface PFrameV6 extends PFrameFactoryAPI, PFrameReadAPIV6 {}
|