@milaboratories/pl-model-middle-layer 1.7.14 → 1.7.16
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.
|
@@ -1,27 +1,6 @@
|
|
|
1
|
-
import { PColumnSpec, PObjectId } from '@milaboratories/pl-model-common';
|
|
1
|
+
import { DataInfo, PColumnSpec, PObjectId } from '@milaboratories/pl-model-common';
|
|
2
2
|
/** Abstract identifier of a data blob that can be requested from the storage backend */
|
|
3
3
|
export type PFrameBlobId = string;
|
|
4
|
-
export type JsonDataValue = string | number | null;
|
|
5
|
-
export type JsonDataInfo = {
|
|
6
|
-
type: 'Json';
|
|
7
|
-
keyLength: number;
|
|
8
|
-
data: Record<string, JsonDataValue>;
|
|
9
|
-
};
|
|
10
|
-
export type JsonPartitionedDataInfo<Blob = PFrameBlobId> = {
|
|
11
|
-
type: 'JsonPartitioned';
|
|
12
|
-
partitionKeyLength: number;
|
|
13
|
-
parts: Record<string, Blob>;
|
|
14
|
-
};
|
|
15
|
-
export type BinaryChunkInfo<Blob = PFrameBlobId> = {
|
|
16
|
-
index: Blob;
|
|
17
|
-
values: Blob;
|
|
18
|
-
};
|
|
19
|
-
export type BinaryPartitionedDataInfo<Blob = PFrameBlobId> = {
|
|
20
|
-
type: 'BinaryPartitioned';
|
|
21
|
-
partitionKeyLength: number;
|
|
22
|
-
parts: Record<string, BinaryChunkInfo<Blob>>;
|
|
23
|
-
};
|
|
24
|
-
export type DataInfo<Blob = PFrameBlobId> = JsonDataInfo | JsonPartitionedDataInfo<Blob> | BinaryPartitionedDataInfo<Blob>;
|
|
25
4
|
/** Path of the file containing requested data (blob). This path is returned by
|
|
26
5
|
* {@link BlobPathResolver} as soon as blob materialized in the file system. */
|
|
27
6
|
export type FilePath = string;
|
|
@@ -44,7 +23,7 @@ export interface PFrameFactoryAPI {
|
|
|
44
23
|
/** Adds PColumn without spec */
|
|
45
24
|
addColumnSpec(columnId: PObjectId, columnSpec: PColumnSpec): void;
|
|
46
25
|
/** Associates data info with cpecific column */
|
|
47
|
-
setColumnData(columnId: PObjectId, dataInfo: DataInfo): void;
|
|
26
|
+
setColumnData(columnId: PObjectId, dataInfo: DataInfo<PFrameBlobId>): void;
|
|
48
27
|
/** Releases all the data previously added to PFrame using methods above,
|
|
49
28
|
* any interactions with disposed PFrame will result in exception */
|
|
50
29
|
dispose(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api_factory.d.ts","sourceRoot":"","sources":["../../../src/pframe/internal_api/api_factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"api_factory.d.ts","sourceRoot":"","sources":["../../../src/pframe/internal_api/api_factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAEnF,wFAAwF;AACxF,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAGlC;+EAC+E;AAC/E,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC;AAE9B,gGAAgG;AAChG,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;;OAIG;IACH,WAAW,CAAC,OAAO,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEpD,qEAAqE;IACrE,kBAAkB,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;CAC/D,CAAC;AAEF;oBACoB;AACpB,MAAM,WAAW,gBAAgB;IAC/B,8CAA8C;IAC9C,aAAa,CAAC,UAAU,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAElD,gCAAgC;IAChC,aAAa,CAAC,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,GAAG,IAAI,CAAC;IAElE,gDAAgD;IAChD,aAAa,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;IAE3E;wEACoE;IACpE,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.
|
|
3
|
+
"version": "1.7.16",
|
|
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.
|
|
23
|
+
"@milaboratories/pl-model-common": "^1.13.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"typescript": "~5.5.4",
|
|
@@ -1,37 +1,8 @@
|
|
|
1
|
-
import { PColumnSpec, PObjectId } from '@milaboratories/pl-model-common';
|
|
1
|
+
import { DataInfo, PColumnSpec, PObjectId } from '@milaboratories/pl-model-common';
|
|
2
2
|
|
|
3
3
|
/** Abstract identifier of a data blob that can be requested from the storage backend */
|
|
4
4
|
export type PFrameBlobId = string;
|
|
5
5
|
|
|
6
|
-
export type JsonDataValue = string | number | null;
|
|
7
|
-
|
|
8
|
-
export type JsonDataInfo = {
|
|
9
|
-
type: 'Json';
|
|
10
|
-
keyLength: number;
|
|
11
|
-
data: Record<string, JsonDataValue>;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export type JsonPartitionedDataInfo<Blob = PFrameBlobId> = {
|
|
15
|
-
type: 'JsonPartitioned';
|
|
16
|
-
partitionKeyLength: number;
|
|
17
|
-
parts: Record<string, Blob>;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export type BinaryChunkInfo<Blob = PFrameBlobId> = {
|
|
21
|
-
index: Blob;
|
|
22
|
-
values: Blob;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export type BinaryPartitionedDataInfo<Blob = PFrameBlobId> = {
|
|
26
|
-
type: 'BinaryPartitioned';
|
|
27
|
-
partitionKeyLength: number;
|
|
28
|
-
parts: Record<string, BinaryChunkInfo<Blob>>;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export type DataInfo<Blob = PFrameBlobId> =
|
|
32
|
-
| JsonDataInfo
|
|
33
|
-
| JsonPartitionedDataInfo<Blob>
|
|
34
|
-
| BinaryPartitionedDataInfo<Blob>;
|
|
35
6
|
|
|
36
7
|
/** Path of the file containing requested data (blob). This path is returned by
|
|
37
8
|
* {@link BlobPathResolver} as soon as blob materialized in the file system. */
|
|
@@ -60,7 +31,7 @@ export interface PFrameFactoryAPI {
|
|
|
60
31
|
addColumnSpec(columnId: PObjectId, columnSpec: PColumnSpec): void;
|
|
61
32
|
|
|
62
33
|
/** Associates data info with cpecific column */
|
|
63
|
-
setColumnData(columnId: PObjectId, dataInfo: DataInfo): void;
|
|
34
|
+
setColumnData(columnId: PObjectId, dataInfo: DataInfo<PFrameBlobId>): void;
|
|
64
35
|
|
|
65
36
|
/** Releases all the data previously added to PFrame using methods above,
|
|
66
37
|
* any interactions with disposed PFrame will result in exception */
|