@milaboratories/pl-model-middle-layer 1.7.19 → 1.7.21
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 +1 -23
- package/dist/pframe/internal_api/api_read.d.ts.map +1 -1
- package/dist/pframe/internal_api/common.d.ts +1 -5
- package/dist/pframe/internal_api/common.d.ts.map +1 -1
- package/dist/pframe/internal_api/create_table.d.ts +1 -24
- package/dist/pframe/internal_api/create_table.d.ts.map +1 -1
- package/dist/pframe/internal_api/pframe.d.ts +1 -3
- package/dist/pframe/internal_api/pframe.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/pframe/internal_api/api_read.ts +1 -29
- package/src/pframe/internal_api/common.ts +0 -5
- package/src/pframe/internal_api/create_table.ts +1 -30
- package/src/pframe/internal_api/pframe.ts +1 -3
|
@@ -1,31 +1,9 @@
|
|
|
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 { CreateTableRequestV2 } from './create_table';
|
|
5
5
|
import { PTableV3 } from './table';
|
|
6
6
|
/** Read interface exposed by PFrames library */
|
|
7
|
-
export interface PFrameReadAPIV3 {
|
|
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: CreateTableRequest, signal?: AbortSignal): Promise<PTableV3>;
|
|
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
|
-
}
|
|
28
|
-
/** Read interface exposed by PFrames library */
|
|
29
7
|
export interface PFrameReadAPIV4 {
|
|
30
8
|
/**
|
|
31
9
|
* Finds columns given filtering criteria on column name, annotations etc.
|
|
@@ -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,CAAC;AACzE,OAAO,EAAE,8BAA8B,EAAE,+BAA+B,EAAE,MAAM,iBAAiB,CAAC;AAClG,OAAO,EACL,WAAW,EACX,WAAW,EACX,SAAS,EACT,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,
|
|
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,CAAC;AACzE,OAAO,EAAE,8BAA8B,EAAE,+BAA+B,EAAE,MAAM,iBAAiB,CAAC;AAClG,OAAO,EACL,WAAW,EACX,WAAW,EACX,SAAS,EACT,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,gDAAgD;AAChD,MAAM,WAAW,eAAe;IAC9B;;;;;;;SAOK;IACL,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEvE,mCAAmC;IACnC,YAAY,CAAC,OAAO,EAAE,8BAA8B,GAAG,OAAO,CAAC,+BAA+B,CAAC,CAAC;IAEhG,kCAAkC;IAClC,aAAa,CAAC,QAAQ,EAAE,SAAS,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAEzD,2EAA2E;IAC3E,WAAW,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;IAEtC,uEAAuE;IACvE,WAAW,CAAC,OAAO,EAAE,oBAAoB,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAEpF,yFAAyF;IACzF,eAAe,CAAC,OAAO,EAAE,mBAAmB,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;CACpG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AxisSpec, ValueType } from '@milaboratories/pl-model-common';
|
|
2
2
|
export interface SingleAxisSelector {
|
|
3
3
|
name: string;
|
|
4
4
|
type?: ValueType;
|
|
@@ -8,10 +8,6 @@ export interface AxisQualification {
|
|
|
8
8
|
axis: SingleAxisSelector;
|
|
9
9
|
additionalDomains: Record<string, string>;
|
|
10
10
|
}
|
|
11
|
-
export interface AxisQualificationWithAxisId {
|
|
12
|
-
axis: AxisId;
|
|
13
|
-
additionalDomains: Record<string, string>;
|
|
14
|
-
}
|
|
15
11
|
export interface ColumnAxesWithQualifications {
|
|
16
12
|
axesSpec: AxisSpec[];
|
|
17
13
|
qualifications: AxisQualification[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/pframe/internal_api/common.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/pframe/internal_api/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,QAAQ,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAE9E,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjC;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,kBAAkB,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC3C;AAED,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,EAAE,QAAQ,EAAE,CAAC;IACrB,cAAc,EAAE,iBAAiB,EAAE,CAAC;CACrC;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,UAAU,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B,CAAA"}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ConstantAxisFilter } from './common';
|
|
2
2
|
import { PObjectId, PTableRecordFilter } from '@milaboratories/pl-model-common';
|
|
3
|
-
export interface ColumnJoinEntry {
|
|
4
|
-
type: 'column';
|
|
5
|
-
columnId: PObjectId;
|
|
6
|
-
qualifications: AxisQualificationWithAxisId[];
|
|
7
|
-
}
|
|
8
3
|
export interface ColumnJoinEntryV2 {
|
|
9
4
|
type: 'column';
|
|
10
5
|
columnId: PObjectId;
|
|
@@ -28,25 +23,7 @@ export interface OuterJoinV2 {
|
|
|
28
23
|
primary: JoinEntryV2;
|
|
29
24
|
secondary: JoinEntryV2[];
|
|
30
25
|
}
|
|
31
|
-
export interface InnerJoin {
|
|
32
|
-
type: 'inner';
|
|
33
|
-
entries: JoinEntry[];
|
|
34
|
-
}
|
|
35
|
-
export interface FullJoin {
|
|
36
|
-
type: 'full';
|
|
37
|
-
entries: JoinEntry[];
|
|
38
|
-
}
|
|
39
|
-
export interface OuterJoin {
|
|
40
|
-
type: 'outer';
|
|
41
|
-
primary: JoinEntry;
|
|
42
|
-
secondary: JoinEntry[];
|
|
43
|
-
}
|
|
44
|
-
export type JoinEntry = ColumnJoinEntry | InnerJoin | FullJoin | OuterJoin;
|
|
45
26
|
export type JoinEntryV2 = ColumnJoinEntryV2 | SlicedColumnJoinEntry | InnerJoinV2 | FullJoinV2 | OuterJoinV2;
|
|
46
|
-
export interface CreateTableRequest {
|
|
47
|
-
src: JoinEntry;
|
|
48
|
-
filters: PTableRecordFilter[];
|
|
49
|
-
}
|
|
50
27
|
export interface CreateTableRequestV2 {
|
|
51
28
|
src: JoinEntryV2;
|
|
52
29
|
filters: PTableRecordFilter[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create_table.d.ts","sourceRoot":"","sources":["../../../src/pframe/internal_api/create_table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
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;AAEhF,MAAM,WAAW,iBAAiB;IAChC,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,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,iBAAiB,GACjB,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,8 +1,6 @@
|
|
|
1
1
|
import { PFrameFactoryAPI } from './api_factory';
|
|
2
|
-
import {
|
|
2
|
+
import { PFrameReadAPIV4 } from './api_read';
|
|
3
3
|
export type Logger = (level: 'info' | 'warn' | 'error', message: string) => void;
|
|
4
|
-
export interface PFrameV3 extends PFrameFactoryAPI, PFrameReadAPIV3 {
|
|
5
|
-
}
|
|
6
4
|
export interface PFrameV4 extends PFrameFactoryAPI, PFrameReadAPIV4 {
|
|
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,
|
|
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"}
|
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.21",
|
|
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.13.
|
|
23
|
+
"@milaboratories/pl-model-common": "^1.13.3"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"typescript": "~5.5.4",
|
|
@@ -7,37 +7,9 @@ import {
|
|
|
7
7
|
UniqueValuesRequest,
|
|
8
8
|
UniqueValuesResponse
|
|
9
9
|
} from '@milaboratories/pl-model-common';
|
|
10
|
-
import {
|
|
10
|
+
import { CreateTableRequestV2 } from './create_table';
|
|
11
11
|
import { PTableV3 } from './table';
|
|
12
12
|
|
|
13
|
-
/** Read interface exposed by PFrames library */
|
|
14
|
-
export interface PFrameReadAPIV3 {
|
|
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: CreateTableRequest, signal?: AbortSignal): Promise<PTableV3>;
|
|
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
|
-
}
|
|
40
|
-
|
|
41
13
|
/** Read interface exposed by PFrames library */
|
|
42
14
|
export interface PFrameReadAPIV4 {
|
|
43
15
|
/**
|
|
@@ -11,11 +11,6 @@ export interface AxisQualification {
|
|
|
11
11
|
additionalDomains: Record<string, string>;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export interface AxisQualificationWithAxisId {
|
|
15
|
-
axis: AxisId;
|
|
16
|
-
additionalDomains: Record<string, string>;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
14
|
export interface ColumnAxesWithQualifications {
|
|
20
15
|
axesSpec: AxisSpec[];
|
|
21
16
|
qualifications: AxisQualification[];
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ConstantAxisFilter } from './common';
|
|
2
2
|
import { PObjectId, PTableRecordFilter } from '@milaboratories/pl-model-common';
|
|
3
3
|
|
|
4
|
-
export interface ColumnJoinEntry {
|
|
5
|
-
type: 'column';
|
|
6
|
-
columnId: PObjectId;
|
|
7
|
-
qualifications: AxisQualificationWithAxisId[];
|
|
8
|
-
}
|
|
9
|
-
|
|
10
4
|
export interface ColumnJoinEntryV2 {
|
|
11
5
|
type: 'column';
|
|
12
6
|
columnId: PObjectId;
|
|
@@ -35,24 +29,6 @@ export interface OuterJoinV2 {
|
|
|
35
29
|
secondary: JoinEntryV2[];
|
|
36
30
|
}
|
|
37
31
|
|
|
38
|
-
export interface InnerJoin {
|
|
39
|
-
type: 'inner';
|
|
40
|
-
entries: JoinEntry[];
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export interface FullJoin {
|
|
44
|
-
type: 'full';
|
|
45
|
-
entries: JoinEntry[];
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export interface OuterJoin {
|
|
49
|
-
type: 'outer';
|
|
50
|
-
primary: JoinEntry;
|
|
51
|
-
secondary: JoinEntry[];
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export type JoinEntry = ColumnJoinEntry | InnerJoin | FullJoin | OuterJoin;
|
|
55
|
-
|
|
56
32
|
export type JoinEntryV2 =
|
|
57
33
|
| ColumnJoinEntryV2
|
|
58
34
|
| SlicedColumnJoinEntry
|
|
@@ -60,11 +36,6 @@ export type JoinEntryV2 =
|
|
|
60
36
|
| FullJoinV2
|
|
61
37
|
| OuterJoinV2;
|
|
62
38
|
|
|
63
|
-
export interface CreateTableRequest {
|
|
64
|
-
src: JoinEntry;
|
|
65
|
-
filters: PTableRecordFilter[];
|
|
66
|
-
}
|
|
67
|
-
|
|
68
39
|
export interface CreateTableRequestV2 {
|
|
69
40
|
src: JoinEntryV2;
|
|
70
41
|
filters: PTableRecordFilter[];
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import type { PFrameFactoryAPI } from './api_factory';
|
|
2
|
-
import type {
|
|
2
|
+
import type { PFrameReadAPIV4 } 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 PFrameV3 extends PFrameFactoryAPI, PFrameReadAPIV3 {}
|
|
10
|
-
|
|
11
9
|
export interface PFrameV4 extends PFrameFactoryAPI, PFrameReadAPIV4 {}
|