@milaboratories/pl-model-middle-layer 1.30.5 → 1.30.6
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 +12 -12
- package/dist/block_registry/overview.d.ts +18 -18
- package/dist/block_registry/registry_spec.d.ts +12 -12
- package/dist/pframe/internal_api/api_read.d.ts +2 -24
- 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 +3 -36
- package/dist/pframe/internal_api/pframe.d.ts.map +1 -1
- package/dist/pframe/internal_api/table.d.ts +4 -73
- package/dist/pframe/internal_api/table.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/pframe/internal_api/api_read.ts +1 -28
- package/src/pframe/internal_api/pframe.ts +2 -38
- package/src/pframe/internal_api/table.ts +3 -79
|
@@ -659,14 +659,6 @@ declare const BlockPackDescriptionFromPackageJsonRaw: z.ZodObject<{
|
|
|
659
659
|
requiredCapabilities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
660
660
|
}, ZodTypeAny, "passthrough">>;
|
|
661
661
|
}, "strip", ZodTypeAny, {
|
|
662
|
-
components: {
|
|
663
|
-
workflow: WorkflowV1<string> | {
|
|
664
|
-
type: "workflow-v1";
|
|
665
|
-
main: string;
|
|
666
|
-
};
|
|
667
|
-
model: string;
|
|
668
|
-
ui: string;
|
|
669
|
-
};
|
|
670
662
|
meta: {
|
|
671
663
|
organization: {
|
|
672
664
|
name: string;
|
|
@@ -687,6 +679,7 @@ declare const BlockPackDescriptionFromPackageJsonRaw: z.ZodObject<{
|
|
|
687
679
|
};
|
|
688
680
|
title: string;
|
|
689
681
|
description: string;
|
|
682
|
+
url?: string | undefined;
|
|
690
683
|
longDescription?: {
|
|
691
684
|
type: "relative";
|
|
692
685
|
path: string;
|
|
@@ -718,7 +711,6 @@ declare const BlockPackDescriptionFromPackageJsonRaw: z.ZodObject<{
|
|
|
718
711
|
type: "absolute-file";
|
|
719
712
|
file: string;
|
|
720
713
|
} | undefined;
|
|
721
|
-
url?: string | undefined;
|
|
722
714
|
docs?: string | undefined;
|
|
723
715
|
support?: string | undefined;
|
|
724
716
|
tags?: string[] | undefined;
|
|
@@ -730,15 +722,15 @@ declare const BlockPackDescriptionFromPackageJsonRaw: z.ZodObject<{
|
|
|
730
722
|
} & {
|
|
731
723
|
[k: string]: unknown;
|
|
732
724
|
};
|
|
733
|
-
}, {
|
|
734
725
|
components: {
|
|
735
|
-
workflow: string | {
|
|
726
|
+
workflow: WorkflowV1<string> | {
|
|
736
727
|
type: "workflow-v1";
|
|
737
728
|
main: string;
|
|
738
729
|
};
|
|
739
730
|
model: string;
|
|
740
731
|
ui: string;
|
|
741
732
|
};
|
|
733
|
+
}, {
|
|
742
734
|
meta: {
|
|
743
735
|
organization: {
|
|
744
736
|
name: string;
|
|
@@ -759,6 +751,7 @@ declare const BlockPackDescriptionFromPackageJsonRaw: z.ZodObject<{
|
|
|
759
751
|
};
|
|
760
752
|
title: string;
|
|
761
753
|
description: string;
|
|
754
|
+
url?: string | undefined;
|
|
762
755
|
longDescription?: string | {
|
|
763
756
|
type: "relative";
|
|
764
757
|
path: string;
|
|
@@ -790,7 +783,6 @@ declare const BlockPackDescriptionFromPackageJsonRaw: z.ZodObject<{
|
|
|
790
783
|
type: "absolute-file";
|
|
791
784
|
file: string;
|
|
792
785
|
} | undefined;
|
|
793
|
-
url?: string | undefined;
|
|
794
786
|
docs?: string | undefined;
|
|
795
787
|
support?: string | undefined;
|
|
796
788
|
tags?: string[] | undefined;
|
|
@@ -802,6 +794,14 @@ declare const BlockPackDescriptionFromPackageJsonRaw: z.ZodObject<{
|
|
|
802
794
|
} & {
|
|
803
795
|
[k: string]: unknown;
|
|
804
796
|
};
|
|
797
|
+
components: {
|
|
798
|
+
workflow: string | {
|
|
799
|
+
type: "workflow-v1";
|
|
800
|
+
main: string;
|
|
801
|
+
};
|
|
802
|
+
model: string;
|
|
803
|
+
ui: string;
|
|
804
|
+
};
|
|
805
805
|
}>;
|
|
806
806
|
declare const FeatureFlags: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodBoolean, z.ZodNumber]>>, BlockCodeKnownFeatureFlags, Record<string, number | boolean>>;
|
|
807
807
|
declare function CreateBlockPackDescriptionSchema<Components extends ZodTypeAny, Meta extends ZodTypeAny>(components: Components, meta: Meta): z.ZodObject<{
|
|
@@ -10006,28 +10006,28 @@ declare const RegistryStatus: z.ZodObject<{
|
|
|
10006
10006
|
status: "online" | "offline";
|
|
10007
10007
|
id: string;
|
|
10008
10008
|
spec: {
|
|
10009
|
+
type: "local-dev";
|
|
10010
|
+
path: string;
|
|
10011
|
+
} | {
|
|
10009
10012
|
type: "remote-v1";
|
|
10010
10013
|
url: string;
|
|
10011
10014
|
} | {
|
|
10012
10015
|
type: "remote-v2";
|
|
10013
10016
|
url: string;
|
|
10014
|
-
} | {
|
|
10015
|
-
type: "local-dev";
|
|
10016
|
-
path: string;
|
|
10017
10017
|
};
|
|
10018
10018
|
title?: string | undefined;
|
|
10019
10019
|
}, {
|
|
10020
10020
|
status: "online" | "offline";
|
|
10021
10021
|
id: string;
|
|
10022
10022
|
spec: {
|
|
10023
|
+
type: "local-dev";
|
|
10024
|
+
path: string;
|
|
10025
|
+
} | {
|
|
10023
10026
|
type: "remote-v1";
|
|
10024
10027
|
url: string;
|
|
10025
10028
|
} | {
|
|
10026
10029
|
type: "remote-v2";
|
|
10027
10030
|
url: string;
|
|
10028
|
-
} | {
|
|
10029
|
-
type: "local-dev";
|
|
10030
|
-
path: string;
|
|
10031
10031
|
};
|
|
10032
10032
|
title?: string | undefined;
|
|
10033
10033
|
}>;
|
|
@@ -10070,28 +10070,28 @@ declare const BlockPackListing: z.ZodObject<{
|
|
|
10070
10070
|
status: "online" | "offline";
|
|
10071
10071
|
id: string;
|
|
10072
10072
|
spec: {
|
|
10073
|
+
type: "local-dev";
|
|
10074
|
+
path: string;
|
|
10075
|
+
} | {
|
|
10073
10076
|
type: "remote-v1";
|
|
10074
10077
|
url: string;
|
|
10075
10078
|
} | {
|
|
10076
10079
|
type: "remote-v2";
|
|
10077
10080
|
url: string;
|
|
10078
|
-
} | {
|
|
10079
|
-
type: "local-dev";
|
|
10080
|
-
path: string;
|
|
10081
10081
|
};
|
|
10082
10082
|
title?: string | undefined;
|
|
10083
10083
|
}, {
|
|
10084
10084
|
status: "online" | "offline";
|
|
10085
10085
|
id: string;
|
|
10086
10086
|
spec: {
|
|
10087
|
+
type: "local-dev";
|
|
10088
|
+
path: string;
|
|
10089
|
+
} | {
|
|
10087
10090
|
type: "remote-v1";
|
|
10088
10091
|
url: string;
|
|
10089
10092
|
} | {
|
|
10090
10093
|
type: "remote-v2";
|
|
10091
10094
|
url: string;
|
|
10092
|
-
} | {
|
|
10093
|
-
type: "local-dev";
|
|
10094
|
-
path: string;
|
|
10095
10095
|
};
|
|
10096
10096
|
title?: string | undefined;
|
|
10097
10097
|
}>, "many">;
|
|
@@ -13197,14 +13197,14 @@ declare const BlockPackListing: z.ZodObject<{
|
|
|
13197
13197
|
status: "online" | "offline";
|
|
13198
13198
|
id: string;
|
|
13199
13199
|
spec: {
|
|
13200
|
+
type: "local-dev";
|
|
13201
|
+
path: string;
|
|
13202
|
+
} | {
|
|
13200
13203
|
type: "remote-v1";
|
|
13201
13204
|
url: string;
|
|
13202
13205
|
} | {
|
|
13203
13206
|
type: "remote-v2";
|
|
13204
13207
|
url: string;
|
|
13205
|
-
} | {
|
|
13206
|
-
type: "local-dev";
|
|
13207
|
-
path: string;
|
|
13208
13208
|
};
|
|
13209
13209
|
title?: string | undefined;
|
|
13210
13210
|
}[];
|
|
@@ -14246,14 +14246,14 @@ declare const BlockPackListing: z.ZodObject<{
|
|
|
14246
14246
|
status: "online" | "offline";
|
|
14247
14247
|
id: string;
|
|
14248
14248
|
spec: {
|
|
14249
|
+
type: "local-dev";
|
|
14250
|
+
path: string;
|
|
14251
|
+
} | {
|
|
14249
14252
|
type: "remote-v1";
|
|
14250
14253
|
url: string;
|
|
14251
14254
|
} | {
|
|
14252
14255
|
type: "remote-v2";
|
|
14253
14256
|
url: string;
|
|
14254
|
-
} | {
|
|
14255
|
-
type: "local-dev";
|
|
14256
|
-
path: string;
|
|
14257
14257
|
};
|
|
14258
14258
|
title?: string | undefined;
|
|
14259
14259
|
}[];
|
|
@@ -99,27 +99,27 @@ declare const RegistryEntry: z.ZodObject<{
|
|
|
99
99
|
}, "strip", z.ZodTypeAny, {
|
|
100
100
|
id: string;
|
|
101
101
|
spec: {
|
|
102
|
+
type: "local-dev";
|
|
103
|
+
path: string;
|
|
104
|
+
} | {
|
|
102
105
|
type: "remote-v1";
|
|
103
106
|
url: string;
|
|
104
107
|
} | {
|
|
105
108
|
type: "remote-v2";
|
|
106
109
|
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
|
+
type: "local-dev";
|
|
116
|
+
path: string;
|
|
117
|
+
} | {
|
|
115
118
|
type: "remote-v1";
|
|
116
119
|
url: string;
|
|
117
120
|
} | {
|
|
118
121
|
type: "remote-v2";
|
|
119
122
|
url: string;
|
|
120
|
-
} | {
|
|
121
|
-
type: "local-dev";
|
|
122
|
-
path: string;
|
|
123
123
|
};
|
|
124
124
|
title?: string | undefined;
|
|
125
125
|
}>;
|
|
@@ -158,27 +158,27 @@ declare const RegistryList: z.ZodArray<z.ZodObject<{
|
|
|
158
158
|
}, "strip", z.ZodTypeAny, {
|
|
159
159
|
id: string;
|
|
160
160
|
spec: {
|
|
161
|
+
type: "local-dev";
|
|
162
|
+
path: string;
|
|
163
|
+
} | {
|
|
161
164
|
type: "remote-v1";
|
|
162
165
|
url: string;
|
|
163
166
|
} | {
|
|
164
167
|
type: "remote-v2";
|
|
165
168
|
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
|
+
type: "local-dev";
|
|
175
|
+
path: string;
|
|
176
|
+
} | {
|
|
174
177
|
type: "remote-v1";
|
|
175
178
|
url: string;
|
|
176
179
|
} | {
|
|
177
180
|
type: "remote-v2";
|
|
178
181
|
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 { PTableV12 } from "./table.js";
|
|
2
2
|
import { PTableId } from "./common.js";
|
|
3
3
|
import { DataQuery, DataQueryBooleanExpression, PObjectId, UniqueValuesResponse } from "@milaboratories/pl-model-common";
|
|
4
4
|
|
|
@@ -32,9 +32,6 @@ interface UniqueValuesRequestV2 {
|
|
|
32
32
|
* `PTableV*` interface is dropped, so this declaration repeats the full
|
|
33
33
|
* method surface rather than referencing the predecessors.
|
|
34
34
|
*
|
|
35
|
-
* Same surface as {@link PFrameReadAPIV14}; the only change is that
|
|
36
|
-
* {@link PFrameReadAPIV15.createTable} returns {@link PTableV12}.
|
|
37
|
-
*
|
|
38
35
|
* Spec-side operations (finding columns, listing columns, retrieving
|
|
39
36
|
* column specs, computing axis integrations) are not part of this
|
|
40
37
|
* surface — callers cache column specs themselves or route through
|
|
@@ -50,25 +47,6 @@ interface PFrameReadAPIV15 {
|
|
|
50
47
|
signal?: AbortSignal;
|
|
51
48
|
}): Promise<UniqueValuesResponse>;
|
|
52
49
|
}
|
|
53
|
-
/**
|
|
54
|
-
* Read interface exposed by PFrames library. Returns the {@link PTableV11}
|
|
55
|
-
* table view, whose `export` takes a column-index → header map.
|
|
56
|
-
*
|
|
57
|
-
* Spec-side operations (finding columns, listing columns, retrieving
|
|
58
|
-
* column specs, computing axis integrations) are not part of this
|
|
59
|
-
* surface — callers cache column specs themselves or route through
|
|
60
|
-
* WASM-spec. The data-side `createTable` accepts a pre-lowered
|
|
61
|
-
* `DataQuery`; `getUniqueValues` takes pre-resolved indices via
|
|
62
|
-
* {@link UniqueValuesRequestV2}.
|
|
63
|
-
*/
|
|
64
|
-
interface PFrameReadAPIV14 {
|
|
65
|
-
/** Creates table from a pre-lowered data query. */
|
|
66
|
-
createTable(tableId: PTableId, dataQuery: DataQuery): PTableV11;
|
|
67
|
-
/** Calculate set of unique values for a specific axis for the filtered set of records. */
|
|
68
|
-
getUniqueValues(request: UniqueValuesRequestV2, ops?: {
|
|
69
|
-
signal?: AbortSignal;
|
|
70
|
-
}): Promise<UniqueValuesResponse>;
|
|
71
|
-
}
|
|
72
50
|
//#endregion
|
|
73
|
-
export {
|
|
51
|
+
export { PFrameReadAPIV15, UniqueValuesRequestV2 };
|
|
74
52
|
//# 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;EA0BM;EAAA,SAvBN,OAAA,EAAS,0BAAA;;WAGT,KAAA;AAAA;;;;;;;;;;;;;;;;;;UAoBM,gBAAA;EAOb;EALF,WAAA,CAAY,OAAA,EAAS,QAAA,EAAU,SAAA,EAAW,SAAA,GAAY,SAAA;EAQ3C;EALX,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 { PTableV12 } from "./table.js";
|
|
2
2
|
import { AxisQualification, ColumnAxesWithQualifications, ConstantAxisFilter, Logger, PFrameId, PTableId } from "./common.js";
|
|
3
|
-
import {
|
|
3
|
+
import { PFrameReadAPIV15, UniqueValuesRequestV2 } from "./api_read.js";
|
|
4
4
|
import { BaseObjectStore, CacheConfig, CacheCounters, CacheMetrics, CachingObjectStore, CachingObjectStoreOptions, FileRange, FsStoreOptions, HttpAuthorizationToken, HttpHelpers, HttpMethod, HttpRange, HttpServer, HttpServerInfo, HttpServerOptions, ObjectStore, ObjectStoreOptions, ObjectStoreResponse, ObjectStoreUrl, ParquetExtension, ParquetFileName, PemCertificate, RequestHandlerOptions } from "./http_helpers.js";
|
|
5
5
|
import { AddColumnEntryV2, DataInfo, DataInfoExtension, DataInfoV2, FilePath, PColumnValueTypeSpec, PFrameBlobId, PFrameDataSourceV2, PFrameFactoryAPIV6, 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, PFrameWasmAPIV5, PFrameWasmV2, PFrameWasmV3, PFrameWasmV4 } from "./api_wasm.js";
|
|
10
10
|
import { ArtificialColumnJoinEntry, ColumnJoinEntry, CreateTableRequestV4, FullJoinV4, InlineColumnJoinEntry, InnerJoinV4, JoinEntryV4, OuterJoinV4, SlicedColumnJoinEntry } from "./create_table.js";
|
|
11
|
-
import {
|
|
11
|
+
import { PFrameFactoryV9, PFrameOptionsV2, PFrameV18 } 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 { AddColumnEntryV2, ArtificialColumnJoinEntry, AxisQualification, BaseObjectStore, CacheConfig, CacheCounters, CacheMetrics, CachingObjectStore, CachingObjectStoreOptions, ColumnAxesWithQualifications, ColumnJoinEntry, ConstantAxisFilter, CreateTableRequestV4, DataInfo, DataInfoExtension, DataInfoV2, 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, PFrameFactoryAPIV6,
|
|
16
|
+
export { AddColumnEntryV2, ArtificialColumnJoinEntry, AxisQualification, BaseObjectStore, CacheConfig, CacheCounters, CacheMetrics, CachingObjectStore, CachingObjectStoreOptions, ColumnAxesWithQualifications, ColumnJoinEntry, ConstantAxisFilter, CreateTableRequestV4, DataInfo, DataInfoExtension, DataInfoV2, 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, PFrameFactoryAPIV6, PFrameFactoryV9, PFrameId, PFrameOptionsV2, PFrameReadAPIV15, PFrameV18, PFrameWasmAPIV2, PFrameWasmAPIV3, PFrameWasmAPIV4, PFrameWasmAPIV5, PFrameWasmV2, PFrameWasmV3, PFrameWasmV4, PTableId, PTableV12, ParquetExtension, ParquetFileName, PemCertificate, RequestHandlerOptions, SingleAxisSelector$1 as SingleAxisSelector, SlicedColumnJoinEntry, SpecExtension, StringMatcher, UniqueValuesRequestV2 };
|
|
17
17
|
}
|
|
18
18
|
//#endregion
|
|
19
19
|
export { index_d_exports };
|
|
@@ -1,24 +1,13 @@
|
|
|
1
1
|
import { Logger, PFrameId } from "./common.js";
|
|
2
|
-
import {
|
|
2
|
+
import { PFrameReadAPIV15 } from "./api_read.js";
|
|
3
3
|
import { PFrameFactoryAPIV6 } from "./api_factory.js";
|
|
4
4
|
|
|
5
5
|
//#region src/pframe/internal_api/pframe.d.ts
|
|
6
|
-
/**
|
|
7
|
-
* Full PFrame surface — factory operations plus data-side reads. Exposes
|
|
8
|
-
* the self-contained {@link PFrameFactoryAPIV6} (column `typeSpec` embedded in
|
|
9
|
-
* `data`) plus {@link PFrameReadAPIV14}, whose tables' `export` takes a
|
|
10
|
-
* column-index → header map.
|
|
11
|
-
*/
|
|
12
|
-
interface PFrameV17 extends PFrameFactoryAPIV6, PFrameReadAPIV14 {}
|
|
13
6
|
/**
|
|
14
7
|
* Full PFrame surface — factory operations plus data-side reads. Exposes
|
|
15
8
|
* the self-contained {@link PFrameFactoryAPIV6} (column `typeSpec` embedded in
|
|
16
9
|
* `data`) plus {@link PFrameReadAPIV15}, whose tables' `export` takes an
|
|
17
10
|
* `ops.headers` list of `[column index, header name]` pairs.
|
|
18
|
-
*
|
|
19
|
-
* Same surface as {@link PFrameV17}; the only change is that the read side is
|
|
20
|
-
* upgraded from {@link PFrameReadAPIV14} to {@link PFrameReadAPIV15}, so
|
|
21
|
-
* {@link PFrameReadAPIV15.createTable} returns {@link PTableV12}.
|
|
22
11
|
*/
|
|
23
12
|
interface PFrameV18 extends PFrameFactoryAPIV6, PFrameReadAPIV15 {}
|
|
24
13
|
type PFrameOptionsV2 = {
|
|
@@ -28,29 +17,7 @@ type PFrameOptionsV2 = {
|
|
|
28
17
|
};
|
|
29
18
|
/**
|
|
30
19
|
* PFrame management functions exposed by the PFrame module. Creates
|
|
31
|
-
* {@link
|
|
32
|
-
*/
|
|
33
|
-
interface PFrameFactoryV8 {
|
|
34
|
-
/**
|
|
35
|
-
* Create a new PFrame instance.
|
|
36
|
-
* @warning Use concurrency limiting to avoid OOM crashes when multiple instances are simultaneously in use.
|
|
37
|
-
*/
|
|
38
|
-
createPFrame(options: PFrameOptionsV2): PFrameV17;
|
|
39
|
-
/**
|
|
40
|
-
* Dump active allocations from all PFrames instances in pprof format.
|
|
41
|
-
* The result of this function should be saved as `profile.pb.gz`.
|
|
42
|
-
* Use {@link https://pprof.me/} or {@link https://www.speedscope.app/}
|
|
43
|
-
* to view the allocation flamechart.
|
|
44
|
-
* @warning This method will always reject on Windows!
|
|
45
|
-
*/
|
|
46
|
-
pprofDump: () => Promise<Uint8Array>;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* PFrame management functions exposed by the PFrame module. Creates
|
|
50
|
-
* {@link PFrameV18} instances (self-contained column data info).
|
|
51
|
-
*
|
|
52
|
-
* Same surface as {@link PFrameFactoryV8}; the only change is that
|
|
53
|
-
* {@link PFrameFactoryV9.createPFrame} returns {@link PFrameV18}, whose tables'
|
|
20
|
+
* {@link PFrameV18} instances (self-contained column data info), whose tables'
|
|
54
21
|
* `export` takes an `ops.headers` list of `[column index, header name]` pairs.
|
|
55
22
|
*/
|
|
56
23
|
interface PFrameFactoryV9 {
|
|
@@ -69,5 +36,5 @@ interface PFrameFactoryV9 {
|
|
|
69
36
|
pprofDump: () => Promise<Uint8Array>;
|
|
70
37
|
}
|
|
71
38
|
//#endregion
|
|
72
|
-
export {
|
|
39
|
+
export { PFrameFactoryV9, PFrameOptionsV2, PFrameV18 };
|
|
73
40
|
//# sourceMappingURL=pframe.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pframe.d.ts","names":[],"sources":["../../../src/pframe/internal_api/pframe.ts"],"mappings":";;;;;;AAWA;;;;;UAAiB,SAAA,SAAkB,kBAAA,EAAoB,gBAAA
|
|
1
|
+
{"version":3,"file":"pframe.d.ts","names":[],"sources":["../../../src/pframe/internal_api/pframe.ts"],"mappings":";;;;;;AAWA;;;;;UAAiB,SAAA,SAAkB,kBAAA,EAAoB,gBAAA;AAAA,KAE3C,eAAA;EAMK,qCAJf,OAAA,EAAS,QAAA,EAAA;EAET,SAAA,UAEA;EAAA,MAAA,GAAS,MAAA;AAAA;;AAQX;;;;UAAiB,eAAA;EAcU;;;;EATzB,YAAA,CAAa,OAAA,EAAS,eAAA,GAAkB,SAAA;EAAlB;;;;;;;EAStB,SAAA,QAAiB,OAAA,CAAQ,UAAA;AAAA"}
|
|
@@ -1,74 +1,6 @@
|
|
|
1
1
|
import { PTableShape, PTableVector, TableRange } from "@milaboratories/pl-model-common";
|
|
2
2
|
|
|
3
3
|
//#region src/pframe/internal_api/table.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Table view returned by `createTable`.
|
|
6
|
-
*
|
|
7
|
-
* {@link PTableV11.export} takes a `headers` map (unified column index →
|
|
8
|
-
* header name) that both selects the columns to export and names them.
|
|
9
|
-
*
|
|
10
|
-
* PTable can be thought as having a composite primary key, consisting
|
|
11
|
-
* of axes, and a set of data columns derived from PColumn values.
|
|
12
|
-
* The table's column spec is owned by the caller — selector → index
|
|
13
|
-
* resolution runs on the caller side via WASM-spec.
|
|
14
|
-
*/
|
|
15
|
-
interface PTableV11 extends Disposable {
|
|
16
|
-
/**
|
|
17
|
-
* Get PTable disk footprint in bytes.
|
|
18
|
-
*
|
|
19
|
-
* @param ops.withPredecessors When true, the footprint includes
|
|
20
|
-
* every registered predecessor table reachable through the
|
|
21
|
-
* query lineage. When false or omitted, only this table's own
|
|
22
|
-
* materialised data is counted.
|
|
23
|
-
*
|
|
24
|
-
* Warning: This call materializes the join.
|
|
25
|
-
*/
|
|
26
|
-
getFootprint(ops?: {
|
|
27
|
-
withPredecessors?: boolean;
|
|
28
|
-
signal?: AbortSignal;
|
|
29
|
-
}): Promise<number>;
|
|
30
|
-
/**
|
|
31
|
-
* Unified table shape
|
|
32
|
-
* Warning: This call materializes the join.
|
|
33
|
-
*/
|
|
34
|
-
getShape(ops?: {
|
|
35
|
-
signal?: AbortSignal;
|
|
36
|
-
}): Promise<PTableShape>;
|
|
37
|
-
/**
|
|
38
|
-
* Retrieve the data from the table. To retrieve only data required, it can be
|
|
39
|
-
* sliced both horizontally ({@link columnIndices}) and vertically
|
|
40
|
-
* ({@link range}).
|
|
41
|
-
* This call materializes the join.
|
|
42
|
-
*
|
|
43
|
-
* @param columnIndices unified indices of columns to be retrieved
|
|
44
|
-
* @param range optionally limit the range of records to retrieve
|
|
45
|
-
* */
|
|
46
|
-
getData(columnIndices: number[], ops?: {
|
|
47
|
-
range?: TableRange;
|
|
48
|
-
signal?: AbortSignal;
|
|
49
|
-
}): Promise<PTableVector[]>;
|
|
50
|
-
/**
|
|
51
|
-
* Stream the sorted table to a file at `path`. The output format is
|
|
52
|
-
* selected from the file extension: `csv`, `tsv`, `parquet`, or `xlsx`.
|
|
53
|
-
* Writing is bounded-memory.
|
|
54
|
-
* This call materializes the join.
|
|
55
|
-
*
|
|
56
|
-
* @param path destination file path; its extension selects the format
|
|
57
|
-
* @param headers map from unified column index (axes first, then data
|
|
58
|
-
* columns) to the header name to use for that column. Only the columns
|
|
59
|
-
* present as keys are exported, in ascending index order — the map both
|
|
60
|
-
* selects the columns and names them (the data layer is name-independent,
|
|
61
|
-
* so names are supplied by the caller).
|
|
62
|
-
*
|
|
63
|
-
* @remarks For `xlsx` the caller must ensure the row count is below Excel's
|
|
64
|
-
* 1,048,576-row per-sheet limit.
|
|
65
|
-
*/
|
|
66
|
-
export(path: string, headers: Record<number, string>, ops?: {
|
|
67
|
-
signal?: AbortSignal;
|
|
68
|
-
}): Promise<void>;
|
|
69
|
-
/** Deallocates all underlying resources */
|
|
70
|
-
dispose(): void;
|
|
71
|
-
}
|
|
72
4
|
/**
|
|
73
5
|
* Table view returned by `createTable`.
|
|
74
6
|
*
|
|
@@ -77,10 +9,9 @@ interface PTableV11 extends Disposable {
|
|
|
77
9
|
* declaration repeats the full method surface rather than referencing the
|
|
78
10
|
* predecessors.
|
|
79
11
|
*
|
|
80
|
-
*
|
|
81
|
-
* `
|
|
82
|
-
*
|
|
83
|
-
* `Record<number, string>` map.
|
|
12
|
+
* {@link PTableV12.export} takes an `ops.headers` list of
|
|
13
|
+
* `[unified column index, header name]` pairs that both selects the columns
|
|
14
|
+
* to export and names them.
|
|
84
15
|
*
|
|
85
16
|
* PTable can be thought as having a composite primary key, consisting
|
|
86
17
|
* of axes, and a set of data columns derived from PColumn values.
|
|
@@ -146,5 +77,5 @@ interface PTableV12 extends Disposable {
|
|
|
146
77
|
dispose(): void;
|
|
147
78
|
}
|
|
148
79
|
//#endregion
|
|
149
|
-
export {
|
|
80
|
+
export { PTableV12 };
|
|
150
81
|
//# sourceMappingURL=table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","names":[],"sources":["../../../src/pframe/internal_api/table.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"table.d.ts","names":[],"sources":["../../../src/pframe/internal_api/table.ts"],"mappings":";;;;;AAmBA;;;;;;;;;;;;;;;UAAiB,SAAA,SAAkB,UAAA;EAAU;;;;;;;;;;EAW3C,YAAA,CAAa,GAAA;IAAQ,gBAAA;IAA4B,MAAA,GAAS,WAAA;EAAA,IAAgB,OAAA;EAiB1E;;;;EAXA,QAAA,CAAS,GAAA;IAAQ,MAAA,GAAS,WAAA;EAAA,IAAgB,OAAA,CAAQ,WAAA;EAiB/C;;;;;;;;;EANH,OAAA,CACE,aAAA,YACA,GAAA;IACE,KAAA,GAAQ,UAAA;IACR,MAAA,GAAS,WAAA;EAAA,IAEV,OAAA,CAAQ,YAAA;;;;;;;;;;;;;;;;;EAkBX,MAAA,CACE,IAAA,UACA,GAAA;IACE,OAAA;IACA,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.30.
|
|
3
|
+
"version": "1.30.6",
|
|
4
4
|
"description": "Common model between middle layer and non-block UI code",
|
|
5
5
|
"files": [
|
|
6
6
|
"./dist/**/*",
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
"es-toolkit": "^1.39.10",
|
|
21
21
|
"utility-types": "^3.11.0",
|
|
22
22
|
"zod": "~3.25.76",
|
|
23
|
-
"@milaboratories/
|
|
24
|
-
"@milaboratories/
|
|
23
|
+
"@milaboratories/helpers": "1.14.2",
|
|
24
|
+
"@milaboratories/pl-model-common": "1.46.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "~24.5.2",
|
|
28
28
|
"typescript": "~5.9.3",
|
|
29
|
-
"@milaboratories/ts-builder": "1.5.0",
|
|
30
29
|
"@milaboratories/build-configs": "2.0.0",
|
|
30
|
+
"@milaboratories/ts-builder": "1.5.0",
|
|
31
31
|
"@milaboratories/ts-configs": "1.2.3"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
@@ -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 { PTableV12 } from "./table";
|
|
8
8
|
import type { PTableId } from "./common";
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -40,9 +40,6 @@ export interface UniqueValuesRequestV2 {
|
|
|
40
40
|
* `PTableV*` interface is dropped, so this declaration repeats the full
|
|
41
41
|
* method surface rather than referencing the predecessors.
|
|
42
42
|
*
|
|
43
|
-
* Same surface as {@link PFrameReadAPIV14}; the only change is that
|
|
44
|
-
* {@link PFrameReadAPIV15.createTable} returns {@link PTableV12}.
|
|
45
|
-
*
|
|
46
43
|
* Spec-side operations (finding columns, listing columns, retrieving
|
|
47
44
|
* column specs, computing axis integrations) are not part of this
|
|
48
45
|
* surface — callers cache column specs themselves or route through
|
|
@@ -62,27 +59,3 @@ export interface PFrameReadAPIV15 {
|
|
|
62
59
|
},
|
|
63
60
|
): Promise<UniqueValuesResponse>;
|
|
64
61
|
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Read interface exposed by PFrames library. Returns the {@link PTableV11}
|
|
68
|
-
* table view, whose `export` takes a column-index → header map.
|
|
69
|
-
*
|
|
70
|
-
* Spec-side operations (finding columns, listing columns, retrieving
|
|
71
|
-
* column specs, computing axis integrations) are not part of this
|
|
72
|
-
* surface — callers cache column specs themselves or route through
|
|
73
|
-
* WASM-spec. The data-side `createTable` accepts a pre-lowered
|
|
74
|
-
* `DataQuery`; `getUniqueValues` takes pre-resolved indices via
|
|
75
|
-
* {@link UniqueValuesRequestV2}.
|
|
76
|
-
*/
|
|
77
|
-
export interface PFrameReadAPIV14 {
|
|
78
|
-
/** Creates table from a pre-lowered data query. */
|
|
79
|
-
createTable(tableId: PTableId, dataQuery: DataQuery): PTableV11;
|
|
80
|
-
|
|
81
|
-
/** Calculate set of unique values for a specific axis for the filtered set of records. */
|
|
82
|
-
getUniqueValues(
|
|
83
|
-
request: UniqueValuesRequestV2,
|
|
84
|
-
ops?: {
|
|
85
|
-
signal?: AbortSignal;
|
|
86
|
-
},
|
|
87
|
-
): Promise<UniqueValuesResponse>;
|
|
88
|
-
}
|
|
@@ -1,25 +1,13 @@
|
|
|
1
1
|
import type { PFrameFactoryAPIV6 } from "./api_factory";
|
|
2
|
-
import type {
|
|
2
|
+
import type { PFrameReadAPIV15 } from "./api_read";
|
|
3
3
|
import type { Logger } from "./common";
|
|
4
4
|
import type { PFrameId } from "./common";
|
|
5
5
|
|
|
6
|
-
/**
|
|
7
|
-
* Full PFrame surface — factory operations plus data-side reads. Exposes
|
|
8
|
-
* the self-contained {@link PFrameFactoryAPIV6} (column `typeSpec` embedded in
|
|
9
|
-
* `data`) plus {@link PFrameReadAPIV14}, whose tables' `export` takes a
|
|
10
|
-
* column-index → header map.
|
|
11
|
-
*/
|
|
12
|
-
export interface PFrameV17 extends PFrameFactoryAPIV6, PFrameReadAPIV14 {}
|
|
13
|
-
|
|
14
6
|
/**
|
|
15
7
|
* Full PFrame surface — factory operations plus data-side reads. Exposes
|
|
16
8
|
* the self-contained {@link PFrameFactoryAPIV6} (column `typeSpec` embedded in
|
|
17
9
|
* `data`) plus {@link PFrameReadAPIV15}, whose tables' `export` takes an
|
|
18
10
|
* `ops.headers` list of `[column index, header name]` pairs.
|
|
19
|
-
*
|
|
20
|
-
* Same surface as {@link PFrameV17}; the only change is that the read side is
|
|
21
|
-
* upgraded from {@link PFrameReadAPIV14} to {@link PFrameReadAPIV15}, so
|
|
22
|
-
* {@link PFrameReadAPIV15.createTable} returns {@link PTableV12}.
|
|
23
11
|
*/
|
|
24
12
|
export interface PFrameV18 extends PFrameFactoryAPIV6, PFrameReadAPIV15 {}
|
|
25
13
|
|
|
@@ -34,31 +22,7 @@ export type PFrameOptionsV2 = {
|
|
|
34
22
|
|
|
35
23
|
/**
|
|
36
24
|
* PFrame management functions exposed by the PFrame module. Creates
|
|
37
|
-
* {@link
|
|
38
|
-
*/
|
|
39
|
-
export interface PFrameFactoryV8 {
|
|
40
|
-
/**
|
|
41
|
-
* Create a new PFrame instance.
|
|
42
|
-
* @warning Use concurrency limiting to avoid OOM crashes when multiple instances are simultaneously in use.
|
|
43
|
-
*/
|
|
44
|
-
createPFrame(options: PFrameOptionsV2): PFrameV17;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Dump active allocations from all PFrames instances in pprof format.
|
|
48
|
-
* The result of this function should be saved as `profile.pb.gz`.
|
|
49
|
-
* Use {@link https://pprof.me/} or {@link https://www.speedscope.app/}
|
|
50
|
-
* to view the allocation flamechart.
|
|
51
|
-
* @warning This method will always reject on Windows!
|
|
52
|
-
*/
|
|
53
|
-
pprofDump: () => Promise<Uint8Array>;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* PFrame management functions exposed by the PFrame module. Creates
|
|
58
|
-
* {@link PFrameV18} instances (self-contained column data info).
|
|
59
|
-
*
|
|
60
|
-
* Same surface as {@link PFrameFactoryV8}; the only change is that
|
|
61
|
-
* {@link PFrameFactoryV9.createPFrame} returns {@link PFrameV18}, whose tables'
|
|
25
|
+
* {@link PFrameV18} instances (self-contained column data info), whose tables'
|
|
62
26
|
* `export` takes an `ops.headers` list of `[column index, header name]` pairs.
|
|
63
27
|
*/
|
|
64
28
|
export interface PFrameFactoryV9 {
|
|
@@ -1,80 +1,5 @@
|
|
|
1
1
|
import type { PTableShape, PTableVector, TableRange } from "@milaboratories/pl-model-common";
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* Table view returned by `createTable`.
|
|
5
|
-
*
|
|
6
|
-
* {@link PTableV11.export} takes a `headers` map (unified column index →
|
|
7
|
-
* header name) that both selects the columns to export and names them.
|
|
8
|
-
*
|
|
9
|
-
* PTable can be thought as having a composite primary key, consisting
|
|
10
|
-
* of axes, and a set of data columns derived from PColumn values.
|
|
11
|
-
* The table's column spec is owned by the caller — selector → index
|
|
12
|
-
* resolution runs on the caller side via WASM-spec.
|
|
13
|
-
*/
|
|
14
|
-
export interface PTableV11 extends Disposable {
|
|
15
|
-
/**
|
|
16
|
-
* Get PTable disk footprint in bytes.
|
|
17
|
-
*
|
|
18
|
-
* @param ops.withPredecessors When true, the footprint includes
|
|
19
|
-
* every registered predecessor table reachable through the
|
|
20
|
-
* query lineage. When false or omitted, only this table's own
|
|
21
|
-
* materialised data is counted.
|
|
22
|
-
*
|
|
23
|
-
* Warning: This call materializes the join.
|
|
24
|
-
*/
|
|
25
|
-
getFootprint(ops?: { withPredecessors?: boolean; signal?: AbortSignal }): Promise<number>;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Unified table shape
|
|
29
|
-
* Warning: This call materializes the join.
|
|
30
|
-
*/
|
|
31
|
-
getShape(ops?: { signal?: AbortSignal }): Promise<PTableShape>;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Retrieve the data from the table. To retrieve only data required, it can be
|
|
35
|
-
* sliced both horizontally ({@link columnIndices}) and vertically
|
|
36
|
-
* ({@link range}).
|
|
37
|
-
* This call materializes the join.
|
|
38
|
-
*
|
|
39
|
-
* @param columnIndices unified indices of columns to be retrieved
|
|
40
|
-
* @param range optionally limit the range of records to retrieve
|
|
41
|
-
* */
|
|
42
|
-
getData(
|
|
43
|
-
columnIndices: number[],
|
|
44
|
-
ops?: {
|
|
45
|
-
range?: TableRange;
|
|
46
|
-
signal?: AbortSignal;
|
|
47
|
-
},
|
|
48
|
-
): Promise<PTableVector[]>;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Stream the sorted table to a file at `path`. The output format is
|
|
52
|
-
* selected from the file extension: `csv`, `tsv`, `parquet`, or `xlsx`.
|
|
53
|
-
* Writing is bounded-memory.
|
|
54
|
-
* This call materializes the join.
|
|
55
|
-
*
|
|
56
|
-
* @param path destination file path; its extension selects the format
|
|
57
|
-
* @param headers map from unified column index (axes first, then data
|
|
58
|
-
* columns) to the header name to use for that column. Only the columns
|
|
59
|
-
* present as keys are exported, in ascending index order — the map both
|
|
60
|
-
* selects the columns and names them (the data layer is name-independent,
|
|
61
|
-
* so names are supplied by the caller).
|
|
62
|
-
*
|
|
63
|
-
* @remarks For `xlsx` the caller must ensure the row count is below Excel's
|
|
64
|
-
* 1,048,576-row per-sheet limit.
|
|
65
|
-
*/
|
|
66
|
-
export(
|
|
67
|
-
path: string,
|
|
68
|
-
headers: Record<number, string>,
|
|
69
|
-
ops?: {
|
|
70
|
-
signal?: AbortSignal;
|
|
71
|
-
},
|
|
72
|
-
): Promise<void>;
|
|
73
|
-
|
|
74
|
-
/** Deallocates all underlying resources */
|
|
75
|
-
dispose(): void;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
3
|
/**
|
|
79
4
|
* Table view returned by `createTable`.
|
|
80
5
|
*
|
|
@@ -83,10 +8,9 @@ export interface PTableV11 extends Disposable {
|
|
|
83
8
|
* declaration repeats the full method surface rather than referencing the
|
|
84
9
|
* predecessors.
|
|
85
10
|
*
|
|
86
|
-
*
|
|
87
|
-
* `
|
|
88
|
-
*
|
|
89
|
-
* `Record<number, string>` map.
|
|
11
|
+
* {@link PTableV12.export} takes an `ops.headers` list of
|
|
12
|
+
* `[unified column index, header name]` pairs that both selects the columns
|
|
13
|
+
* to export and names them.
|
|
90
14
|
*
|
|
91
15
|
* PTable can be thought as having a composite primary key, consisting
|
|
92
16
|
* of axes, and a set of data columns derived from PColumn values.
|