@milaboratories/pl-model-middle-layer 1.8.6 → 1.8.7
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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BinaryPartitionedDataInfo, JsonDataInfo, JsonPartitionedDataInfo, ParquetChunk, ParquetPartitionedDataInfo, 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
4
|
/** Path of the file containing requested data (blob). This path is returned by
|
|
@@ -15,6 +15,13 @@ export type PFrameDataSource = {
|
|
|
15
15
|
/** Returns raw blob data given the blob id from {@link DataInfo}. */
|
|
16
16
|
resolveBlobContent(blobId: PFrameBlobId): Promise<Uint8Array>;
|
|
17
17
|
};
|
|
18
|
+
/**
|
|
19
|
+
* Union type representing all possible data storage formats for PColumn data.
|
|
20
|
+
* The specific format used depends on data size, access patterns, and performance requirements.
|
|
21
|
+
*
|
|
22
|
+
* @template Blob - Type parameter representing the storage reference type (could be ResourceInfo, PFrameBlobId, etc.)
|
|
23
|
+
*/
|
|
24
|
+
export type DataInfo<Blob> = JsonDataInfo | JsonPartitionedDataInfo<Blob> | BinaryPartitionedDataInfo<Blob> | ParquetPartitionedDataInfo<ParquetChunk<Blob>>;
|
|
18
25
|
/** API exposed by PFrames library allowing to create and provide data for
|
|
19
26
|
* PFrame objects */
|
|
20
27
|
export interface PFrameFactoryAPIV2 {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api_factory.d.ts","sourceRoot":"","sources":["../../../src/pframe/internal_api/api_factory.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"api_factory.d.ts","sourceRoot":"","sources":["../../../src/pframe/internal_api/api_factory.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,YAAY,EACZ,u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
|
|
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.22.6",
|
|
21
21
|
"zod": "~3.23.8",
|
|
22
22
|
"utility-types": "^3.11.0",
|
|
23
|
-
"@milaboratories/pl-model-common": "^1.19.
|
|
23
|
+
"@milaboratories/pl-model-common": "^1.19.4"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"typescript": "~5.6.3",
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
BinaryPartitionedDataInfo,
|
|
3
|
+
JsonDataInfo,
|
|
4
|
+
JsonPartitionedDataInfo,
|
|
5
|
+
ParquetChunk,
|
|
6
|
+
ParquetPartitionedDataInfo,
|
|
7
|
+
PColumnSpec,
|
|
8
|
+
PObjectId,
|
|
9
|
+
} from '@milaboratories/pl-model-common';
|
|
2
10
|
|
|
3
11
|
/** Abstract identifier of a data blob that can be requested from the storage backend */
|
|
4
12
|
export type PFrameBlobId = string;
|
|
@@ -21,6 +29,18 @@ export type PFrameDataSource = {
|
|
|
21
29
|
resolveBlobContent(blobId: PFrameBlobId): Promise<Uint8Array>;
|
|
22
30
|
};
|
|
23
31
|
|
|
32
|
+
/**
|
|
33
|
+
* Union type representing all possible data storage formats for PColumn data.
|
|
34
|
+
* The specific format used depends on data size, access patterns, and performance requirements.
|
|
35
|
+
*
|
|
36
|
+
* @template Blob - Type parameter representing the storage reference type (could be ResourceInfo, PFrameBlobId, etc.)
|
|
37
|
+
*/
|
|
38
|
+
export type DataInfo<Blob> =
|
|
39
|
+
| JsonDataInfo
|
|
40
|
+
| JsonPartitionedDataInfo<Blob>
|
|
41
|
+
| BinaryPartitionedDataInfo<Blob>
|
|
42
|
+
| ParquetPartitionedDataInfo<ParquetChunk<Blob>>;
|
|
43
|
+
|
|
24
44
|
/** API exposed by PFrames library allowing to create and provide data for
|
|
25
45
|
* PFrame objects */
|
|
26
46
|
export interface PFrameFactoryAPIV2 {
|