@milaboratories/pl-model-middle-layer 1.7.30 → 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 +1 -23
- package/dist/pframe/internal_api/api_read.d.ts.map +1 -1
- package/dist/pframe/internal_api/create_table.d.ts +0 -22
- 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/create_table.ts +0 -33
- 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 { CreateTableRequestV3 } from './create_table';
|
|
5
5
|
import { PTableV4 } from './table';
|
|
6
6
|
/** Read interface exposed by PFrames library */
|
|
7
|
-
export interface PFrameReadAPIV5 {
|
|
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: CreateTableRequestV2, 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
|
-
}
|
|
28
|
-
/** Read interface exposed by PFrames library */
|
|
29
7
|
export interface PFrameReadAPIV6 {
|
|
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,oBAAoB,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"}
|
|
@@ -4,10 +4,6 @@ export interface ColumnJoinEntry {
|
|
|
4
4
|
type: 'column';
|
|
5
5
|
columnId: PObjectId;
|
|
6
6
|
}
|
|
7
|
-
export interface ColumnJoinEntryV2 {
|
|
8
|
-
type: 'column';
|
|
9
|
-
columnId: PObjectId;
|
|
10
|
-
}
|
|
11
7
|
export interface SlicedColumnJoinEntry {
|
|
12
8
|
readonly type: 'slicedColumn';
|
|
13
9
|
readonly columnId: PObjectId;
|
|
@@ -33,25 +29,7 @@ export interface OuterJoinV3 {
|
|
|
33
29
|
primary: JoinEntryV3;
|
|
34
30
|
secondary: JoinEntryV3[];
|
|
35
31
|
}
|
|
36
|
-
export interface InnerJoinV2 {
|
|
37
|
-
type: 'inner';
|
|
38
|
-
entries: JoinEntryV2[];
|
|
39
|
-
}
|
|
40
|
-
export interface FullJoinV2 {
|
|
41
|
-
type: 'full';
|
|
42
|
-
entries: JoinEntryV2[];
|
|
43
|
-
}
|
|
44
|
-
export interface OuterJoinV2 {
|
|
45
|
-
type: 'outer';
|
|
46
|
-
primary: JoinEntryV2;
|
|
47
|
-
secondary: JoinEntryV2[];
|
|
48
|
-
}
|
|
49
32
|
export type JoinEntryV3 = ColumnJoinEntry | SlicedColumnJoinEntry | InlineColumnJoinEntry | InnerJoinV3 | FullJoinV3 | OuterJoinV3;
|
|
50
|
-
export type JoinEntryV2 = ColumnJoinEntryV2 | SlicedColumnJoinEntry | InnerJoinV2 | FullJoinV2 | OuterJoinV2;
|
|
51
|
-
export interface CreateTableRequestV2 {
|
|
52
|
-
src: JoinEntryV2;
|
|
53
|
-
filters: PTableRecordFilter[];
|
|
54
|
-
}
|
|
55
33
|
export interface CreateTableRequestV3 {
|
|
56
34
|
src: JoinEntryV3;
|
|
57
35
|
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,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,
|
|
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,8 +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 PFrameV5 extends PFrameFactoryAPI, PFrameReadAPIV5 {
|
|
5
|
-
}
|
|
6
4
|
export interface PFrameV6 extends PFrameFactoryAPI, PFrameReadAPIV6 {
|
|
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.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,37 +7,9 @@ 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
|
-
/** Read interface exposed by PFrames library */
|
|
14
|
-
export interface PFrameReadAPIV5 {
|
|
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: CreateTableRequestV2, 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
|
-
}
|
|
40
|
-
|
|
41
13
|
/** Read interface exposed by PFrames library */
|
|
42
14
|
export interface PFrameReadAPIV6 {
|
|
43
15
|
/**
|
|
@@ -6,11 +6,6 @@ export interface ColumnJoinEntry {
|
|
|
6
6
|
columnId: PObjectId;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
export interface ColumnJoinEntryV2 {
|
|
10
|
-
type: 'column';
|
|
11
|
-
columnId: PObjectId;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
9
|
export interface SlicedColumnJoinEntry {
|
|
15
10
|
readonly type: 'slicedColumn';
|
|
16
11
|
readonly columnId: PObjectId;
|
|
@@ -41,22 +36,6 @@ export interface OuterJoinV3 {
|
|
|
41
36
|
secondary: JoinEntryV3[];
|
|
42
37
|
}
|
|
43
38
|
|
|
44
|
-
export interface InnerJoinV2 {
|
|
45
|
-
type: 'inner';
|
|
46
|
-
entries: JoinEntryV2[];
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export interface FullJoinV2 {
|
|
50
|
-
type: 'full';
|
|
51
|
-
entries: JoinEntryV2[];
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export interface OuterJoinV2 {
|
|
55
|
-
type: 'outer';
|
|
56
|
-
primary: JoinEntryV2;
|
|
57
|
-
secondary: JoinEntryV2[];
|
|
58
|
-
}
|
|
59
|
-
|
|
60
39
|
export type JoinEntryV3 =
|
|
61
40
|
| ColumnJoinEntry
|
|
62
41
|
| SlicedColumnJoinEntry
|
|
@@ -65,18 +44,6 @@ export type JoinEntryV3 =
|
|
|
65
44
|
| FullJoinV3
|
|
66
45
|
| OuterJoinV3;
|
|
67
46
|
|
|
68
|
-
export type JoinEntryV2 =
|
|
69
|
-
| ColumnJoinEntryV2
|
|
70
|
-
| SlicedColumnJoinEntry
|
|
71
|
-
| InnerJoinV2
|
|
72
|
-
| FullJoinV2
|
|
73
|
-
| OuterJoinV2;
|
|
74
|
-
|
|
75
|
-
export interface CreateTableRequestV2 {
|
|
76
|
-
src: JoinEntryV2;
|
|
77
|
-
filters: PTableRecordFilter[];
|
|
78
|
-
}
|
|
79
|
-
|
|
80
47
|
export interface CreateTableRequestV3 {
|
|
81
48
|
src: JoinEntryV3;
|
|
82
49
|
filters: PTableRecordFilter[];
|
|
@@ -1,11 +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 PFrameV5 extends PFrameFactoryAPI, PFrameReadAPIV5 {}
|
|
10
|
-
|
|
11
9
|
export interface PFrameV6 extends PFrameFactoryAPI, PFrameReadAPIV6 {}
|