@milaboratories/pl-model-middle-layer 1.26.0 → 1.28.0
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/block_meta/block_description.d.ts +304 -304
- package/dist/block_meta/block_id.d.ts +4 -4
- package/dist/block_meta/block_manifest.d.ts +986 -986
- package/dist/block_meta/block_meta.d.ts +108 -108
- package/dist/block_meta/content_types.d.ts +18 -18
- package/dist/block_registry/block_pack_spec.d.ts +24 -24
- package/dist/block_registry/overview.d.ts +1740 -1740
- package/dist/block_registry/registry_spec.d.ts +44 -44
- package/dist/pframe/internal_api/api_read.d.ts +6 -5
- package/dist/pframe/internal_api/api_read.d.ts.map +1 -1
- package/dist/pframe/internal_api/index.d.ts +4 -4
- package/dist/pframe/internal_api/pframe.d.ts +13 -7
- package/dist/pframe/internal_api/pframe.d.ts.map +1 -1
- package/dist/pframe/internal_api/table.d.ts +19 -2
- package/dist/pframe/internal_api/table.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/pframe/internal_api/api_read.ts +5 -4
- package/src/pframe/internal_api/pframe.ts +12 -6
- package/src/pframe/internal_api/table.ts +23 -1
|
@@ -5,11 +5,11 @@ declare const LocalDevFolder: z.ZodObject<{
|
|
|
5
5
|
type: z.ZodLiteral<"local-dev">;
|
|
6
6
|
path: z.ZodString;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
path: string;
|
|
9
8
|
type: "local-dev";
|
|
10
|
-
}, {
|
|
11
9
|
path: string;
|
|
10
|
+
}, {
|
|
12
11
|
type: "local-dev";
|
|
12
|
+
path: string;
|
|
13
13
|
}>;
|
|
14
14
|
type LocalDevFolder = z.infer<typeof LocalDevFolder>;
|
|
15
15
|
/** @deprecated don't use */
|
|
@@ -17,11 +17,11 @@ declare const RemoteRegistryV1Spec: z.ZodObject<{
|
|
|
17
17
|
type: z.ZodLiteral<"remote-v1">;
|
|
18
18
|
url: z.ZodString;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
url: string;
|
|
21
20
|
type: "remote-v1";
|
|
22
|
-
}, {
|
|
23
21
|
url: string;
|
|
22
|
+
}, {
|
|
24
23
|
type: "remote-v1";
|
|
24
|
+
url: string;
|
|
25
25
|
}>;
|
|
26
26
|
/** @deprecated don't use */
|
|
27
27
|
type RemoteRegistryV1Spec = z.infer<typeof RemoteRegistryV1Spec>;
|
|
@@ -29,40 +29,40 @@ declare const RemoteRegistryV2Spec: z.ZodObject<{
|
|
|
29
29
|
type: z.ZodLiteral<"remote-v2">;
|
|
30
30
|
url: z.ZodString;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
|
-
url: string;
|
|
33
32
|
type: "remote-v2";
|
|
34
|
-
}, {
|
|
35
33
|
url: string;
|
|
34
|
+
}, {
|
|
36
35
|
type: "remote-v2";
|
|
36
|
+
url: string;
|
|
37
37
|
}>;
|
|
38
38
|
type RemoteRegistryV2Spec = z.infer<typeof RemoteRegistryV2Spec>;
|
|
39
39
|
declare const RegistrySpec: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
40
40
|
type: z.ZodLiteral<"remote-v1">;
|
|
41
41
|
url: z.ZodString;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
url: string;
|
|
44
43
|
type: "remote-v1";
|
|
45
|
-
}, {
|
|
46
44
|
url: string;
|
|
45
|
+
}, {
|
|
47
46
|
type: "remote-v1";
|
|
47
|
+
url: string;
|
|
48
48
|
}>, z.ZodObject<{
|
|
49
49
|
type: z.ZodLiteral<"remote-v2">;
|
|
50
50
|
url: z.ZodString;
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
52
|
-
url: string;
|
|
53
52
|
type: "remote-v2";
|
|
54
|
-
}, {
|
|
55
53
|
url: string;
|
|
54
|
+
}, {
|
|
56
55
|
type: "remote-v2";
|
|
56
|
+
url: string;
|
|
57
57
|
}>, z.ZodObject<{
|
|
58
58
|
type: z.ZodLiteral<"local-dev">;
|
|
59
59
|
path: z.ZodString;
|
|
60
60
|
}, "strip", z.ZodTypeAny, {
|
|
61
|
-
path: string;
|
|
62
61
|
type: "local-dev";
|
|
63
|
-
}, {
|
|
64
62
|
path: string;
|
|
63
|
+
}, {
|
|
65
64
|
type: "local-dev";
|
|
65
|
+
path: string;
|
|
66
66
|
}>]>;
|
|
67
67
|
type RegistrySpec = z.infer<typeof RegistrySpec>;
|
|
68
68
|
declare const RegistryEntry: z.ZodObject<{
|
|
@@ -72,54 +72,54 @@ declare const RegistryEntry: z.ZodObject<{
|
|
|
72
72
|
type: z.ZodLiteral<"remote-v1">;
|
|
73
73
|
url: z.ZodString;
|
|
74
74
|
}, "strip", z.ZodTypeAny, {
|
|
75
|
-
url: string;
|
|
76
75
|
type: "remote-v1";
|
|
77
|
-
}, {
|
|
78
76
|
url: string;
|
|
77
|
+
}, {
|
|
79
78
|
type: "remote-v1";
|
|
79
|
+
url: string;
|
|
80
80
|
}>, z.ZodObject<{
|
|
81
81
|
type: z.ZodLiteral<"remote-v2">;
|
|
82
82
|
url: z.ZodString;
|
|
83
83
|
}, "strip", z.ZodTypeAny, {
|
|
84
|
-
url: string;
|
|
85
84
|
type: "remote-v2";
|
|
86
|
-
}, {
|
|
87
85
|
url: string;
|
|
86
|
+
}, {
|
|
88
87
|
type: "remote-v2";
|
|
88
|
+
url: string;
|
|
89
89
|
}>, z.ZodObject<{
|
|
90
90
|
type: z.ZodLiteral<"local-dev">;
|
|
91
91
|
path: z.ZodString;
|
|
92
92
|
}, "strip", z.ZodTypeAny, {
|
|
93
|
-
path: string;
|
|
94
93
|
type: "local-dev";
|
|
95
|
-
}, {
|
|
96
94
|
path: string;
|
|
95
|
+
}, {
|
|
97
96
|
type: "local-dev";
|
|
97
|
+
path: string;
|
|
98
98
|
}>]>;
|
|
99
99
|
}, "strip", z.ZodTypeAny, {
|
|
100
100
|
id: string;
|
|
101
101
|
spec: {
|
|
102
|
-
path: string;
|
|
103
|
-
type: "local-dev";
|
|
104
|
-
} | {
|
|
105
|
-
url: string;
|
|
106
102
|
type: "remote-v1";
|
|
107
|
-
} | {
|
|
108
103
|
url: string;
|
|
104
|
+
} | {
|
|
109
105
|
type: "remote-v2";
|
|
106
|
+
url: string;
|
|
107
|
+
} | {
|
|
108
|
+
type: "local-dev";
|
|
109
|
+
path: string;
|
|
110
110
|
};
|
|
111
111
|
title?: string | undefined;
|
|
112
112
|
}, {
|
|
113
113
|
id: string;
|
|
114
114
|
spec: {
|
|
115
|
-
path: string;
|
|
116
|
-
type: "local-dev";
|
|
117
|
-
} | {
|
|
118
|
-
url: string;
|
|
119
115
|
type: "remote-v1";
|
|
120
|
-
} | {
|
|
121
116
|
url: string;
|
|
117
|
+
} | {
|
|
122
118
|
type: "remote-v2";
|
|
119
|
+
url: string;
|
|
120
|
+
} | {
|
|
121
|
+
type: "local-dev";
|
|
122
|
+
path: string;
|
|
123
123
|
};
|
|
124
124
|
title?: string | undefined;
|
|
125
125
|
}>;
|
|
@@ -131,54 +131,54 @@ declare const RegistryList: z.ZodArray<z.ZodObject<{
|
|
|
131
131
|
type: z.ZodLiteral<"remote-v1">;
|
|
132
132
|
url: z.ZodString;
|
|
133
133
|
}, "strip", z.ZodTypeAny, {
|
|
134
|
-
url: string;
|
|
135
134
|
type: "remote-v1";
|
|
136
|
-
}, {
|
|
137
135
|
url: string;
|
|
136
|
+
}, {
|
|
138
137
|
type: "remote-v1";
|
|
138
|
+
url: string;
|
|
139
139
|
}>, z.ZodObject<{
|
|
140
140
|
type: z.ZodLiteral<"remote-v2">;
|
|
141
141
|
url: z.ZodString;
|
|
142
142
|
}, "strip", z.ZodTypeAny, {
|
|
143
|
-
url: string;
|
|
144
143
|
type: "remote-v2";
|
|
145
|
-
}, {
|
|
146
144
|
url: string;
|
|
145
|
+
}, {
|
|
147
146
|
type: "remote-v2";
|
|
147
|
+
url: string;
|
|
148
148
|
}>, z.ZodObject<{
|
|
149
149
|
type: z.ZodLiteral<"local-dev">;
|
|
150
150
|
path: z.ZodString;
|
|
151
151
|
}, "strip", z.ZodTypeAny, {
|
|
152
|
-
path: string;
|
|
153
152
|
type: "local-dev";
|
|
154
|
-
}, {
|
|
155
153
|
path: string;
|
|
154
|
+
}, {
|
|
156
155
|
type: "local-dev";
|
|
156
|
+
path: string;
|
|
157
157
|
}>]>;
|
|
158
158
|
}, "strip", z.ZodTypeAny, {
|
|
159
159
|
id: string;
|
|
160
160
|
spec: {
|
|
161
|
-
path: string;
|
|
162
|
-
type: "local-dev";
|
|
163
|
-
} | {
|
|
164
|
-
url: string;
|
|
165
161
|
type: "remote-v1";
|
|
166
|
-
} | {
|
|
167
162
|
url: string;
|
|
163
|
+
} | {
|
|
168
164
|
type: "remote-v2";
|
|
165
|
+
url: string;
|
|
166
|
+
} | {
|
|
167
|
+
type: "local-dev";
|
|
168
|
+
path: string;
|
|
169
169
|
};
|
|
170
170
|
title?: string | undefined;
|
|
171
171
|
}, {
|
|
172
172
|
id: string;
|
|
173
173
|
spec: {
|
|
174
|
-
path: string;
|
|
175
|
-
type: "local-dev";
|
|
176
|
-
} | {
|
|
177
|
-
url: string;
|
|
178
174
|
type: "remote-v1";
|
|
179
|
-
} | {
|
|
180
175
|
url: string;
|
|
176
|
+
} | {
|
|
181
177
|
type: "remote-v2";
|
|
178
|
+
url: string;
|
|
179
|
+
} | {
|
|
180
|
+
type: "local-dev";
|
|
181
|
+
path: string;
|
|
182
182
|
};
|
|
183
183
|
title?: string | undefined;
|
|
184
184
|
}>, "many">;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PTableV10 } from "./table.js";
|
|
2
2
|
import { PTableId } from "./common.js";
|
|
3
3
|
import { DataQuery, DataQueryBooleanExpression, PObjectId, UniqueValuesResponse } from "@milaboratories/pl-model-common";
|
|
4
4
|
|
|
@@ -23,7 +23,8 @@ interface UniqueValuesRequestV2 {
|
|
|
23
23
|
readonly limit: number;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
|
-
* Read interface exposed by PFrames library.
|
|
26
|
+
* Read interface exposed by PFrames library. Returns the {@link PTableV10}
|
|
27
|
+
* table view, which provides the `export` method.
|
|
27
28
|
*
|
|
28
29
|
* Spec-side operations (finding columns, listing columns, retrieving
|
|
29
30
|
* column specs, computing axis integrations) are not part of this
|
|
@@ -32,14 +33,14 @@ interface UniqueValuesRequestV2 {
|
|
|
32
33
|
* `DataQuery`; `getUniqueValues` takes pre-resolved indices via
|
|
33
34
|
* {@link UniqueValuesRequestV2}.
|
|
34
35
|
*/
|
|
35
|
-
interface
|
|
36
|
+
interface PFrameReadAPIV13 {
|
|
36
37
|
/** Creates table from a pre-lowered data query. */
|
|
37
|
-
createTable(tableId: PTableId, dataQuery: DataQuery):
|
|
38
|
+
createTable(tableId: PTableId, dataQuery: DataQuery): PTableV10;
|
|
38
39
|
/** Calculate set of unique values for a specific axis for the filtered set of records. */
|
|
39
40
|
getUniqueValues(request: UniqueValuesRequestV2, ops?: {
|
|
40
41
|
signal?: AbortSignal;
|
|
41
42
|
}): Promise<UniqueValuesResponse>;
|
|
42
43
|
}
|
|
43
44
|
//#endregion
|
|
44
|
-
export {
|
|
45
|
+
export { PFrameReadAPIV13, UniqueValuesRequestV2 };
|
|
45
46
|
//# sourceMappingURL=api_read.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api_read.d.ts","names":[],"sources":["../../../src/pframe/internal_api/api_read.ts"],"mappings":";;;;;;;AAeA;;;;UAAiB,qBAAA;EAEI;EAAA,SAAV,QAAA,EAAU,SAAA;EASV;;;;EAAA,SAHA,SAAA;
|
|
1
|
+
{"version":3,"file":"api_read.d.ts","names":[],"sources":["../../../src/pframe/internal_api/api_read.ts"],"mappings":";;;;;;;AAeA;;;;UAAiB,qBAAA;EAEI;EAAA,SAAV,QAAA,EAAU,SAAA;EASV;;;;EAAA,SAHA,SAAA;EAoBM;EAAA,SAjBN,OAAA,EAAS,0BAAA;;WAGT,KAAA;AAAA;;;;;;;;;;;;UAcM,gBAAA;EAEuC;EAAtD,WAAA,CAAY,OAAA,EAAS,QAAA,EAAU,SAAA,EAAW,SAAA,GAAY,SAAA;EAI3C;EADX,eAAA,CACE,OAAA,EAAS,qBAAA,EACT,GAAA;IACE,MAAA,GAAS,WAAA;EAAA,IAEV,OAAA,CAAQ,oBAAA;AAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PTableV10 } from "./table.js";
|
|
2
2
|
import { AxisQualification, ColumnAxesWithQualifications, ConstantAxisFilter, Logger, PFrameId, PTableId } from "./common.js";
|
|
3
|
-
import {
|
|
3
|
+
import { PFrameReadAPIV13, UniqueValuesRequestV2 } from "./api_read.js";
|
|
4
4
|
import { BaseObjectStore, FileRange, FsStoreOptions, HttpAuthorizationToken, HttpHelpers, HttpMethod, HttpRange, HttpServer, HttpServerInfo, HttpServerOptions, ObjectStore, ObjectStoreOptions, ObjectStoreResponse, ObjectStoreUrl, ParquetExtension, ParquetFileName, PemCertificate, RequestHandlerOptions } from "./http_helpers.js";
|
|
5
5
|
import { AddColumnEntry, DataInfo, DataInfoExtension, FilePath, PColumnValueTypeSpec, PFrameBlobId, PFrameDataSourceV2, PFrameFactoryAPIV5, SpecExtension } from "./api_factory.js";
|
|
6
6
|
import { DeleteColumnFromColumnsRequest, DeleteColumnFromColumnsResponse } from "./delete_column.js";
|
|
@@ -8,12 +8,12 @@ import { DiscoverColumnsConstraints, DiscoverColumnsMappingVariant, DiscoverColu
|
|
|
8
8
|
import { FindColumnResponseQualifications, FindColumnsMappingVariant, FindColumnsRequest, FindColumnsResponse, FindColumnsResponseHit } from "./find_columns.js";
|
|
9
9
|
import { EvaluateQueryResponse, LegacyQuery, PFrameWasmAPIV2, PFrameWasmAPIV3, PFrameWasmAPIV4, PFrameWasmV2, PFrameWasmV3 } from "./api_wasm.js";
|
|
10
10
|
import { ArtificialColumnJoinEntry, ColumnJoinEntry, CreateTableRequestV4, FullJoinV4, InlineColumnJoinEntry, InnerJoinV4, JoinEntryV4, OuterJoinV4, SlicedColumnJoinEntry } from "./create_table.js";
|
|
11
|
-
import {
|
|
11
|
+
import { PFrameFactoryV6, PFrameOptionsV2, PFrameV15 } from "./pframe.js";
|
|
12
12
|
import { SingleAxisSelector as SingleAxisSelector$1 } from "@milaboratories/pl-model-common";
|
|
13
13
|
|
|
14
14
|
//#region src/pframe/internal_api/index.d.ts
|
|
15
15
|
declare namespace index_d_exports {
|
|
16
|
-
export { AddColumnEntry, ArtificialColumnJoinEntry, AxisQualification, BaseObjectStore, ColumnAxesWithQualifications, ColumnJoinEntry, ConstantAxisFilter, CreateTableRequestV4, DataInfo, DataInfoExtension, DeleteColumnFromColumnsRequest, DeleteColumnFromColumnsResponse, DiscoverColumnsConstraints, DiscoverColumnsMappingVariant, DiscoverColumnsRequestV2, DiscoverColumnsResponse, DiscoverColumnsResponseHit, DiscoverColumnsResponseQualifications, DiscoverColumnsStepInfo, EvaluateQueryResponse, FilePath, FileRange, FindColumnResponseQualifications, FindColumnsMappingVariant, FindColumnsRequest, FindColumnsResponse, FindColumnsResponseHit, FsStoreOptions, FullJoinV4, HttpAuthorizationToken, HttpHelpers, HttpMethod, HttpRange, HttpServer, HttpServerInfo, HttpServerOptions, InlineColumnJoinEntry, InnerJoinV4, JoinEntryV4, LegacyQuery, Logger, MatcherMap, MultiAxisSelector, MultiColumnSelector, ObjectStore, ObjectStoreOptions, ObjectStoreResponse, ObjectStoreUrl, OuterJoinV4, PColumnValueTypeSpec, PFrameBlobId, PFrameDataSourceV2, PFrameFactoryAPIV5,
|
|
16
|
+
export { AddColumnEntry, ArtificialColumnJoinEntry, AxisQualification, BaseObjectStore, ColumnAxesWithQualifications, ColumnJoinEntry, ConstantAxisFilter, CreateTableRequestV4, DataInfo, DataInfoExtension, DeleteColumnFromColumnsRequest, DeleteColumnFromColumnsResponse, DiscoverColumnsConstraints, DiscoverColumnsMappingVariant, DiscoverColumnsRequestV2, DiscoverColumnsResponse, DiscoverColumnsResponseHit, DiscoverColumnsResponseQualifications, DiscoverColumnsStepInfo, EvaluateQueryResponse, FilePath, FileRange, FindColumnResponseQualifications, FindColumnsMappingVariant, FindColumnsRequest, FindColumnsResponse, FindColumnsResponseHit, FsStoreOptions, FullJoinV4, HttpAuthorizationToken, HttpHelpers, HttpMethod, HttpRange, HttpServer, HttpServerInfo, HttpServerOptions, InlineColumnJoinEntry, InnerJoinV4, JoinEntryV4, LegacyQuery, Logger, MatcherMap, MultiAxisSelector, MultiColumnSelector, ObjectStore, ObjectStoreOptions, ObjectStoreResponse, ObjectStoreUrl, OuterJoinV4, PColumnValueTypeSpec, PFrameBlobId, PFrameDataSourceV2, PFrameFactoryAPIV5, PFrameFactoryV6, PFrameId, PFrameOptionsV2, PFrameReadAPIV13, PFrameV15, PFrameWasmAPIV2, PFrameWasmAPIV3, PFrameWasmAPIV4, PFrameWasmV2, PFrameWasmV3, PTableId, PTableV10, ParquetExtension, ParquetFileName, PemCertificate, RequestHandlerOptions, SingleAxisSelector$1 as SingleAxisSelector, SlicedColumnJoinEntry, SpecExtension, StringMatcher, UniqueValuesRequestV2 };
|
|
17
17
|
}
|
|
18
18
|
//#endregion
|
|
19
19
|
export { index_d_exports };
|
|
@@ -1,22 +1,28 @@
|
|
|
1
1
|
import { Logger, PFrameId } from "./common.js";
|
|
2
|
-
import {
|
|
2
|
+
import { PFrameReadAPIV13 } from "./api_read.js";
|
|
3
3
|
import { PFrameFactoryAPIV5 } from "./api_factory.js";
|
|
4
4
|
|
|
5
5
|
//#region src/pframe/internal_api/pframe.d.ts
|
|
6
|
-
/**
|
|
7
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Full PFrame surface — factory operations plus data-side reads. Exposes
|
|
8
|
+
* {@link PFrameReadAPIV13}, whose tables provide the `export` method.
|
|
9
|
+
*/
|
|
10
|
+
interface PFrameV15 extends PFrameFactoryAPIV5, PFrameReadAPIV13 {}
|
|
8
11
|
type PFrameOptionsV2 = {
|
|
9
12
|
/** PFrame ID for logging purposes */frameId: PFrameId; /** Path to directory where PFrame can create temporary files */
|
|
10
13
|
spillPath: string; /** Logger instance, no logging is performed when not provided */
|
|
11
14
|
logger?: Logger;
|
|
12
15
|
};
|
|
13
|
-
/**
|
|
14
|
-
|
|
16
|
+
/**
|
|
17
|
+
* PFrame management functions exposed by the PFrame module. Creates
|
|
18
|
+
* {@link PFrameV15} instances, whose tables provide the `export` method.
|
|
19
|
+
*/
|
|
20
|
+
interface PFrameFactoryV6 {
|
|
15
21
|
/**
|
|
16
22
|
* Create a new PFrame instance.
|
|
17
23
|
* @warning Use concurrency limiting to avoid OOM crashes when multiple instances are simultaneously in use.
|
|
18
24
|
*/
|
|
19
|
-
createPFrame(options: PFrameOptionsV2):
|
|
25
|
+
createPFrame(options: PFrameOptionsV2): PFrameV15;
|
|
20
26
|
/**
|
|
21
27
|
* Dump active allocations from all PFrames instances in pprof format.
|
|
22
28
|
* The result of this function should be saved as `profile.pb.gz`.
|
|
@@ -27,5 +33,5 @@ interface PFrameFactoryV5 {
|
|
|
27
33
|
pprofDump: () => Promise<Uint8Array>;
|
|
28
34
|
}
|
|
29
35
|
//#endregion
|
|
30
|
-
export {
|
|
36
|
+
export { PFrameFactoryV6, PFrameOptionsV2, PFrameV15 };
|
|
31
37
|
//# sourceMappingURL=pframe.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pframe.d.ts","names":[],"sources":["../../../src/pframe/internal_api/pframe.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"pframe.d.ts","names":[],"sources":["../../../src/pframe/internal_api/pframe.ts"],"mappings":";;;;;;AASA;;;UAAiB,SAAA,SAAkB,kBAAA,EAAoB,gBAAA;AAAA,KAE3C,eAAA;EAAe,qCAEzB,OAAA,EAAS,QAAA,EAIM;EAFf,SAAA,UAFS;EAIT,MAAA,GAAS,MAAA;AAAA;;;;AAOX;UAAiB,eAAA;;;;;EAKf,YAAA,CAAa,OAAA,EAAS,eAAA,GAAkB,SAAA;EAShB;;;;;;;EAAxB,SAAA,QAAiB,OAAA,CAAQ,UAAA;AAAA"}
|
|
@@ -9,7 +9,7 @@ import { PTableShape, PTableVector, TableRange } from "@milaboratories/pl-model-
|
|
|
9
9
|
* The table's column spec is owned by the caller — selector → index
|
|
10
10
|
* resolution runs on the caller side via WASM-spec.
|
|
11
11
|
*/
|
|
12
|
-
interface
|
|
12
|
+
interface PTableV10 extends Disposable {
|
|
13
13
|
/**
|
|
14
14
|
* Get PTable disk footprint in bytes.
|
|
15
15
|
*
|
|
@@ -44,9 +44,26 @@ interface PTableV9 extends Disposable {
|
|
|
44
44
|
range?: TableRange;
|
|
45
45
|
signal?: AbortSignal;
|
|
46
46
|
}): Promise<PTableVector[]>;
|
|
47
|
+
/**
|
|
48
|
+
* Stream the full, sorted table to a file at `path`. The output format is
|
|
49
|
+
* selected from the file extension: `csv`, `tsv`, `parquet`, or `xlsx`.
|
|
50
|
+
* Writing is bounded-memory.
|
|
51
|
+
* This call materializes the join.
|
|
52
|
+
*
|
|
53
|
+
* @param path destination file path; its extension selects the format
|
|
54
|
+
* @param headers column names in unified order (axes first, then data
|
|
55
|
+
* columns). Length must equal the number of table fields — the data layer
|
|
56
|
+
* is name-independent, so names are supplied by the caller.
|
|
57
|
+
*
|
|
58
|
+
* @remarks For `xlsx` the caller must ensure the row count is below Excel's
|
|
59
|
+
* 1,048,576-row per-sheet limit.
|
|
60
|
+
*/
|
|
61
|
+
export(path: string, headers: string[], ops?: {
|
|
62
|
+
signal?: AbortSignal;
|
|
63
|
+
}): Promise<void>;
|
|
47
64
|
/** Deallocates all underlying resources */
|
|
48
65
|
dispose(): void;
|
|
49
66
|
}
|
|
50
67
|
//#endregion
|
|
51
|
-
export {
|
|
68
|
+
export { PTableV10 };
|
|
52
69
|
//# sourceMappingURL=table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","names":[],"sources":["../../../src/pframe/internal_api/table.ts"],"mappings":";;;;;AAUA;;;;;;UAAiB,
|
|
1
|
+
{"version":3,"file":"table.d.ts","names":[],"sources":["../../../src/pframe/internal_api/table.ts"],"mappings":";;;;;AAUA;;;;;;UAAiB,SAAA,SAAkB,UAAA;EAiBS;;;;;;;;;;EAN1C,YAAA,CAAa,GAAA;IAAQ,gBAAA;IAA4B,MAAA,GAAS,WAAA;EAAA,IAAgB,OAAA;EAAhB;;;;EAM1D,QAAA,CAAS,GAAA;IAAQ,MAAA,GAAS,WAAA;EAAA,IAAgB,OAAA,CAAQ,WAAA;EAAR;;;;;;;;;EAW1C,OAAA,CACE,aAAA,YACA,GAAA;IACE,KAAA,GAAQ,UAAA;IACR,MAAA,GAAS,WAAA;EAAA,IAEV,OAAA,CAAQ,YAAA;EAkBT;;;;;;;;;;;;;;EAFF,MAAA,CACE,IAAA,UACA,OAAA,YACA,GAAA;IACE,MAAA,GAAS,WAAA;EAAA,IAEV,OAAA;;EAGH,OAAA;AAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@milaboratories/pl-model-middle-layer",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.28.0",
|
|
4
4
|
"description": "Common model between middle layer and non-block UI code",
|
|
5
5
|
"files": [
|
|
6
6
|
"./dist/**/*",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"utility-types": "^3.11.0",
|
|
22
22
|
"zod": "~3.25.76",
|
|
23
23
|
"@milaboratories/helpers": "1.14.2",
|
|
24
|
-
"@milaboratories/pl-model-common": "1.
|
|
24
|
+
"@milaboratories/pl-model-common": "1.44.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "~24.5.2",
|
|
@@ -4,7 +4,7 @@ import type {
|
|
|
4
4
|
DataQuery,
|
|
5
5
|
DataQueryBooleanExpression,
|
|
6
6
|
} from "@milaboratories/pl-model-common";
|
|
7
|
-
import type {
|
|
7
|
+
import type { PTableV10 } from "./table";
|
|
8
8
|
import type { PTableId } from "./common";
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -31,7 +31,8 @@ export interface UniqueValuesRequestV2 {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
|
-
* Read interface exposed by PFrames library.
|
|
34
|
+
* Read interface exposed by PFrames library. Returns the {@link PTableV10}
|
|
35
|
+
* table view, which provides the `export` method.
|
|
35
36
|
*
|
|
36
37
|
* Spec-side operations (finding columns, listing columns, retrieving
|
|
37
38
|
* column specs, computing axis integrations) are not part of this
|
|
@@ -40,9 +41,9 @@ export interface UniqueValuesRequestV2 {
|
|
|
40
41
|
* `DataQuery`; `getUniqueValues` takes pre-resolved indices via
|
|
41
42
|
* {@link UniqueValuesRequestV2}.
|
|
42
43
|
*/
|
|
43
|
-
export interface
|
|
44
|
+
export interface PFrameReadAPIV13 {
|
|
44
45
|
/** Creates table from a pre-lowered data query. */
|
|
45
|
-
createTable(tableId: PTableId, dataQuery: DataQuery):
|
|
46
|
+
createTable(tableId: PTableId, dataQuery: DataQuery): PTableV10;
|
|
46
47
|
|
|
47
48
|
/** Calculate set of unique values for a specific axis for the filtered set of records. */
|
|
48
49
|
getUniqueValues(
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import type { PFrameFactoryAPIV5 } from "./api_factory";
|
|
2
|
-
import type {
|
|
2
|
+
import type { PFrameReadAPIV13 } from "./api_read";
|
|
3
3
|
import type { Logger } from "./common";
|
|
4
4
|
import type { PFrameId } from "./common";
|
|
5
5
|
|
|
6
|
-
/**
|
|
7
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Full PFrame surface — factory operations plus data-side reads. Exposes
|
|
8
|
+
* {@link PFrameReadAPIV13}, whose tables provide the `export` method.
|
|
9
|
+
*/
|
|
10
|
+
export interface PFrameV15 extends PFrameFactoryAPIV5, PFrameReadAPIV13 {}
|
|
8
11
|
|
|
9
12
|
export type PFrameOptionsV2 = {
|
|
10
13
|
/** PFrame ID for logging purposes */
|
|
@@ -15,13 +18,16 @@ export type PFrameOptionsV2 = {
|
|
|
15
18
|
logger?: Logger;
|
|
16
19
|
};
|
|
17
20
|
|
|
18
|
-
/**
|
|
19
|
-
|
|
21
|
+
/**
|
|
22
|
+
* PFrame management functions exposed by the PFrame module. Creates
|
|
23
|
+
* {@link PFrameV15} instances, whose tables provide the `export` method.
|
|
24
|
+
*/
|
|
25
|
+
export interface PFrameFactoryV6 {
|
|
20
26
|
/**
|
|
21
27
|
* Create a new PFrame instance.
|
|
22
28
|
* @warning Use concurrency limiting to avoid OOM crashes when multiple instances are simultaneously in use.
|
|
23
29
|
*/
|
|
24
|
-
createPFrame(options: PFrameOptionsV2):
|
|
30
|
+
createPFrame(options: PFrameOptionsV2): PFrameV15;
|
|
25
31
|
|
|
26
32
|
/**
|
|
27
33
|
* Dump active allocations from all PFrames instances in pprof format.
|
|
@@ -8,7 +8,7 @@ import type { PTableShape, PTableVector, TableRange } from "@milaboratories/pl-m
|
|
|
8
8
|
* The table's column spec is owned by the caller — selector → index
|
|
9
9
|
* resolution runs on the caller side via WASM-spec.
|
|
10
10
|
*/
|
|
11
|
-
export interface
|
|
11
|
+
export interface PTableV10 extends Disposable {
|
|
12
12
|
/**
|
|
13
13
|
* Get PTable disk footprint in bytes.
|
|
14
14
|
*
|
|
@@ -44,6 +44,28 @@ export interface PTableV9 extends Disposable {
|
|
|
44
44
|
},
|
|
45
45
|
): Promise<PTableVector[]>;
|
|
46
46
|
|
|
47
|
+
/**
|
|
48
|
+
* Stream the full, sorted table to a file at `path`. The output format is
|
|
49
|
+
* selected from the file extension: `csv`, `tsv`, `parquet`, or `xlsx`.
|
|
50
|
+
* Writing is bounded-memory.
|
|
51
|
+
* This call materializes the join.
|
|
52
|
+
*
|
|
53
|
+
* @param path destination file path; its extension selects the format
|
|
54
|
+
* @param headers column names in unified order (axes first, then data
|
|
55
|
+
* columns). Length must equal the number of table fields — the data layer
|
|
56
|
+
* is name-independent, so names are supplied by the caller.
|
|
57
|
+
*
|
|
58
|
+
* @remarks For `xlsx` the caller must ensure the row count is below Excel's
|
|
59
|
+
* 1,048,576-row per-sheet limit.
|
|
60
|
+
*/
|
|
61
|
+
export(
|
|
62
|
+
path: string,
|
|
63
|
+
headers: string[],
|
|
64
|
+
ops?: {
|
|
65
|
+
signal?: AbortSignal;
|
|
66
|
+
},
|
|
67
|
+
): Promise<void>;
|
|
68
|
+
|
|
47
69
|
/** Deallocates all underlying resources */
|
|
48
70
|
dispose(): void;
|
|
49
71
|
}
|