@milaboratories/pl-model-middle-layer 1.30.1 → 1.30.2

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.
@@ -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 */
@@ -58,11 +58,11 @@ declare const RegistrySpec: z.ZodDiscriminatedUnion<"type", [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<{
@@ -90,11 +90,11 @@ declare const RegistryEntry: 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;
@@ -105,8 +105,8 @@ declare const RegistryEntry: z.ZodObject<{
105
105
  type: "remote-v2";
106
106
  url: string;
107
107
  } | {
108
- path: string;
109
108
  type: "local-dev";
109
+ path: string;
110
110
  };
111
111
  title?: string | undefined;
112
112
  }, {
@@ -118,8 +118,8 @@ declare const RegistryEntry: z.ZodObject<{
118
118
  type: "remote-v2";
119
119
  url: string;
120
120
  } | {
121
- path: string;
122
121
  type: "local-dev";
122
+ path: string;
123
123
  };
124
124
  title?: string | undefined;
125
125
  }>;
@@ -149,11 +149,11 @@ declare const RegistryList: z.ZodArray<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;
@@ -164,8 +164,8 @@ declare const RegistryList: z.ZodArray<z.ZodObject<{
164
164
  type: "remote-v2";
165
165
  url: string;
166
166
  } | {
167
- path: string;
168
167
  type: "local-dev";
168
+ path: string;
169
169
  };
170
170
  title?: string | undefined;
171
171
  }, {
@@ -177,8 +177,8 @@ declare const RegistryList: z.ZodArray<z.ZodObject<{
177
177
  type: "remote-v2";
178
178
  url: string;
179
179
  } | {
180
- path: string;
181
180
  type: "local-dev";
181
+ path: string;
182
182
  };
183
183
  title?: string | undefined;
184
184
  }>, "many">;
@@ -1,4 +1,4 @@
1
- import { PTableV11 } from "./table.js";
1
+ import { PTableV11, 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
 
@@ -22,6 +22,34 @@ interface UniqueValuesRequestV2 {
22
22
  /** Max number of values to return. Overflow is reported in the response. */
23
23
  readonly limit: number;
24
24
  }
25
+ /**
26
+ * Read interface exposed by PFrames library. Returns the {@link PTableV12}
27
+ * table view, whose `export` takes an `ops.headers` list of
28
+ * `[column index, header name]` pairs.
29
+ *
30
+ * Self-contained: does not extend any earlier read interface. Once this
31
+ * version is adopted, every earlier `PFrameReadAPIV*` and per-table
32
+ * `PTableV*` interface is dropped, so this declaration repeats the full
33
+ * method surface rather than referencing the predecessors.
34
+ *
35
+ * Same surface as {@link PFrameReadAPIV14}; the only change is that
36
+ * {@link PFrameReadAPIV15.createTable} returns {@link PTableV12}.
37
+ *
38
+ * Spec-side operations (finding columns, listing columns, retrieving
39
+ * column specs, computing axis integrations) are not part of this
40
+ * surface — callers cache column specs themselves or route through
41
+ * WASM-spec. The data-side `createTable` accepts a pre-lowered
42
+ * `DataQuery`; `getUniqueValues` takes pre-resolved indices via
43
+ * {@link UniqueValuesRequestV2}.
44
+ */
45
+ interface PFrameReadAPIV15 {
46
+ /** Creates table from a pre-lowered data query. */
47
+ createTable(tableId: PTableId, dataQuery: DataQuery): PTableV12;
48
+ /** Calculate set of unique values for a specific axis for the filtered set of records. */
49
+ getUniqueValues(request: UniqueValuesRequestV2, ops?: {
50
+ signal?: AbortSignal;
51
+ }): Promise<UniqueValuesResponse>;
52
+ }
25
53
  /**
26
54
  * Read interface exposed by PFrames library. Returns the {@link PTableV11}
27
55
  * table view, whose `export` takes a column-index → header map.
@@ -42,5 +70,5 @@ interface PFrameReadAPIV14 {
42
70
  }): Promise<UniqueValuesResponse>;
43
71
  }
44
72
  //#endregion
45
- export { PFrameReadAPIV14, UniqueValuesRequestV2 };
73
+ export { PFrameReadAPIV14, PFrameReadAPIV15, UniqueValuesRequestV2 };
46
74
  //# 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;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
+ {"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;EA6BM;EAAA,SA1BN,OAAA,EAAS,0BAAA;;WAGT,KAAA;AAAA;;;;;;;;;;;;;;;;;;;;;UAuBM,gBAAA;EAUgB;EAR/B,WAAA,CAAY,OAAA,EAAS,QAAA,EAAU,SAAA,EAAW,SAAA,GAAY,SAAA;EAsBvC;EAnBf,eAAA,CACE,OAAA,EAAS,qBAAA,EACT,GAAA;IACE,MAAA,GAAS,WAAA;EAAA,IAEV,OAAA,CAAQ,oBAAA;AAAA;;;;;;;;;;;;UAcI,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,9 +1,105 @@
1
1
  import { DeleteColumnFromColumnsRequest, DeleteColumnFromColumnsResponse } from "./delete_column.js";
2
2
  import { DiscoverColumnsRequestV2, DiscoverColumnsResponse } from "./discover_columns.js";
3
3
  import { FindColumnsRequest, FindColumnsResponse } from "./find_columns.js";
4
- import { AxesId, AxesSpec, BuildQueryInput, DataQuery, DataQueryBooleanExpression, JoinEntry, PColumnInfo, PColumnSpec, PObjectId, PTableColumnId, PTableColumnSpec, PTableRecordFilter, PTableSorting, SingleAxisSelector, SpecQuery, SpecQueryJoinEntry } from "@milaboratories/pl-model-common";
4
+ import { AxesId, AxesSpec, BuildQueryInput, DataQuery, DataQueryBooleanExpression, JoinEntry, PColumnIdAndSpec, PColumnSpec, PObjectId, PTableColumnId, PTableColumnSpec, PTableRecordFilter, PTableSorting, SingleAxisSelector, SpecQuery, SpecQueryJoinEntry } from "@milaboratories/pl-model-common";
5
5
 
6
6
  //#region src/pframe/internal_api/api_wasm.d.ts
7
+ /**
8
+ * V5 PFrame API factory — pure spec-layer operations plus frame construction.
9
+ *
10
+ * Self-contained: does not extend any earlier factory interface. Once this
11
+ * version is adopted, every earlier `PFrameWasmAPIV*` and per-frame
12
+ * `PFrameWasmV*` interface is dropped, so this declaration repeats the full
13
+ * method surface rather than referencing the predecessors.
14
+ */
15
+ interface PFrameWasmAPIV5 {
16
+ /**
17
+ * Creates a new PFrame from a map of column IDs to column specifications.
18
+ */
19
+ createPFrame(spec: Record<string, PColumnSpec>): PFrameWasmV4;
20
+ /**
21
+ * Expands an {@link AxesSpec} into {@link AxesId}s with parent information
22
+ * resolved.
23
+ */
24
+ expandAxes(spec: AxesSpec): AxesId;
25
+ /**
26
+ * Collapses {@link AxesId} into {@link AxesSpec}.
27
+ */
28
+ collapseAxes(ids: AxesId): AxesSpec;
29
+ /**
30
+ * Finds the index of an axis matching the given selector.
31
+ * Returns -1 if no matching axis is found.
32
+ */
33
+ findAxis(spec: AxesSpec, selector: SingleAxisSelector): number;
34
+ /**
35
+ * Finds the flat index of a table column matching the given
36
+ * selector within a table spec. Returns -1 if not found.
37
+ */
38
+ findTableColumn(tableSpec: PTableColumnSpec[], selector: PTableColumnId): number;
39
+ /**
40
+ * Assembles a {@link SpecQueryJoinEntry} from a terminal column plus an
41
+ * ordered path of wrapping steps (linker hops, filter joins).
42
+ *
43
+ * Right-fold over `path` starting from `Column(column)`: each `linker` step
44
+ * wraps the current subquery as `linkerJoin`, each `filter` step as
45
+ * `innerJoin` with the filter column. `qualifications` annotate the
46
+ * outermost entry only.
47
+ */
48
+ buildQuery(input: BuildQueryInput): SpecQueryJoinEntry;
49
+ /**
50
+ * Upgrades selector-based legacy record filters into index-based data-layer
51
+ * boolean expressions, resolved against the provided unified table spec
52
+ * (axes first, then columns).
53
+ */
54
+ rewriteLegacyFilters(request: {
55
+ tableSpec: PTableColumnSpec[];
56
+ filters: PTableRecordFilter[];
57
+ }): DataQueryBooleanExpression[];
58
+ }
59
+ /**
60
+ * V4 PFrame interface — per-frame instance operations.
61
+ *
62
+ * Self-contained: does not extend any earlier per-frame interface. Once this
63
+ * version is adopted, every earlier `PFrameWasmV*` interface is dropped, so
64
+ * this declaration repeats the full method surface rather than referencing
65
+ * the predecessors.
66
+ */
67
+ interface PFrameWasmV4 extends Disposable {
68
+ /**
69
+ * Deletes columns from a columns specification.
70
+ */
71
+ deleteColumns(request: DeleteColumnFromColumnsRequest): DeleteColumnFromColumnsResponse;
72
+ /**
73
+ * Returns the id and spec of the single column registered under `columnId`
74
+ * in this PFrame, or `null` if no such column is registered. Same shape as
75
+ * the entries of {@link PFrameWasmV4.listColumns}.
76
+ */
77
+ getColumn(columnId: PObjectId): PColumnIdAndSpec | null;
78
+ /**
79
+ * Lists all columns currently registered in this PFrame, with their ids and specs.
80
+ */
81
+ listColumns(): PColumnIdAndSpec[];
82
+ /**
83
+ * Discovers columns compatible with a given axes integration. Include and
84
+ * exclude filters are applied in order (exclude removes matches from the
85
+ * include set). Each hit carries its traversal `path`; feed the hit's
86
+ * column id and `path` into {@link PFrameWasmAPIV5.buildQuery} to
87
+ * materialize it as a {@link SpecQueryJoinEntry}.
88
+ */
89
+ discoverColumns(request: DiscoverColumnsRequestV2): DiscoverColumnsResponse;
90
+ /**
91
+ * Finds columns in the PFrame matching the given filter criteria.
92
+ */
93
+ findColumns(request: FindColumnsRequest): FindColumnsResponse;
94
+ /**
95
+ * Evaluates a query specification against this PFrame.
96
+ */
97
+ evaluateQuery(request: SpecQuery): EvaluateQueryResponse;
98
+ /**
99
+ * Rewrites a legacy query format (V4) to the current SpecQuery format.
100
+ */
101
+ rewriteLegacyQuery(request: LegacyQuery): SpecQuery;
102
+ }
7
103
  /**
8
104
  * V4 PFrame API factory — pure spec-layer operations plus frame construction.
9
105
  *
@@ -82,7 +178,7 @@ interface PFrameWasmV3 extends Disposable {
82
178
  /**
83
179
  * Lists all columns currently registered in this PFrame, with their ids and specs.
84
180
  */
85
- listColumns(): PColumnInfo[];
181
+ listColumns(): PColumnIdAndSpec[];
86
182
  /**
87
183
  * Discovers columns compatible with a given axes integration. Include and
88
184
  * exclude filters are applied in order (exclude removes matches from the
@@ -210,5 +306,5 @@ type LegacyQuery = {
210
306
  sorting?: PTableSorting[];
211
307
  };
212
308
  //#endregion
213
- export { EvaluateQueryResponse, LegacyQuery, PFrameWasmAPIV2, PFrameWasmAPIV3, PFrameWasmAPIV4, PFrameWasmV2, PFrameWasmV3 };
309
+ export { EvaluateQueryResponse, LegacyQuery, PFrameWasmAPIV2, PFrameWasmAPIV3, PFrameWasmAPIV4, PFrameWasmAPIV5, PFrameWasmV2, PFrameWasmV3, PFrameWasmV4 };
214
310
  //# sourceMappingURL=api_wasm.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api_wasm.d.ts","names":[],"sources":["../../../src/pframe/internal_api/api_wasm.ts"],"mappings":";;;;;;;;AAkCA;;;;;;;UAAiB,eAAA;EAeG;;;EAXlB,YAAA,CAAa,IAAA,EAAM,MAAA,SAAe,WAAA,IAAe,YAAA;EAuBtB;;;;EAjB3B,UAAA,CAAW,IAAA,EAAM,QAAA,GAAW,MAAA;EA+CjB;;;EA1CX,YAAA,CAAa,GAAA,EAAK,MAAA,GAAS,QAAA;EAX3B;;;;EAiBA,QAAA,CAAS,IAAA,EAAM,QAAA,EAAU,QAAA,EAAU,kBAAA;EAXnC;;;;EAiBA,eAAA,CAAgB,SAAA,EAAW,gBAAA,IAAoB,QAAA,EAAU,cAAA;EAZvC;;;;;;;;;;;;;;EA4BlB,UAAA,CAAW,KAAA,EAAO,eAAA,GAAkB,kBAAA;EAAzB;;;;;;;;;;EAYX,oBAAA,CAAqB,OAAA;IACnB,SAAA,EAAW,gBAAA;IACX,OAAA,EAAS,kBAAA;EAAA,IACP,0BAAA;AAAA;;;;;;;;UAUW,YAAA,SAAqB,UAAA;EAiCR;;;EA7B5B,aAAA,CAAc,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BAAA;EAnCG;;;;EAwCd,SAAA,EAAW,SAAA;AAAA;;;AA9Bb;;;;KAuCY,WAAA;EArCuC,0EAuCjD,GAAA,EAAK,SAAA,CAAU,SAAA,GApCa;EAsC5B,OAAA,GAAU,kBAAA,IAnCiB;EAqC3B,OAAA,GAAU,aAAA;AAAA"}
@@ -1,19 +1,19 @@
1
- import { PTableV11 } from "./table.js";
1
+ import { PTableV11, PTableV12 } from "./table.js";
2
2
  import { AxisQualification, ColumnAxesWithQualifications, ConstantAxisFilter, Logger, PFrameId, PTableId } from "./common.js";
3
- import { PFrameReadAPIV14, UniqueValuesRequestV2 } from "./api_read.js";
3
+ import { PFrameReadAPIV14, PFrameReadAPIV15, 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 { AddColumnEntryV2, DataInfo, DataInfoExtension, DataInfoV2, FilePath, PColumnValueTypeSpec, PFrameBlobId, PFrameDataSourceV2, PFrameFactoryAPIV6, SpecExtension } from "./api_factory.js";
6
6
  import { DeleteColumnFromColumnsRequest, DeleteColumnFromColumnsResponse } from "./delete_column.js";
7
7
  import { DiscoverColumnsConstraints, DiscoverColumnsMappingVariant, DiscoverColumnsRequestV2, DiscoverColumnsResponse, DiscoverColumnsResponseHit, DiscoverColumnsResponseQualifications, DiscoverColumnsStepInfo, MatcherMap, MultiAxisSelector, MultiColumnSelector, StringMatcher } from "./discover_columns.js";
8
8
  import { FindColumnResponseQualifications, FindColumnsMappingVariant, FindColumnsRequest, FindColumnsResponse, FindColumnsResponseHit } from "./find_columns.js";
9
- import { EvaluateQueryResponse, LegacyQuery, PFrameWasmAPIV2, PFrameWasmAPIV3, PFrameWasmAPIV4, PFrameWasmV2, PFrameWasmV3 } from "./api_wasm.js";
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
11
  import { PFrameFactoryV8, PFrameOptionsV2, PFrameV17 } 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, 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, PFrameFactoryV8, PFrameId, PFrameOptionsV2, PFrameReadAPIV14, PFrameV17, PFrameWasmAPIV2, PFrameWasmAPIV3, PFrameWasmAPIV4, PFrameWasmV2, PFrameWasmV3, PTableId, PTableV11, ParquetExtension, ParquetFileName, PemCertificate, RequestHandlerOptions, SingleAxisSelector$1 as SingleAxisSelector, SlicedColumnJoinEntry, SpecExtension, StringMatcher, UniqueValuesRequestV2 };
16
+ export { AddColumnEntryV2, ArtificialColumnJoinEntry, AxisQualification, BaseObjectStore, 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, PFrameFactoryV8, PFrameId, PFrameOptionsV2, PFrameReadAPIV14, PFrameReadAPIV15, PFrameV17, PFrameWasmAPIV2, PFrameWasmAPIV3, PFrameWasmAPIV4, PFrameWasmAPIV5, PFrameWasmV2, PFrameWasmV3, PFrameWasmV4, PTableId, PTableV11, PTableV12, ParquetExtension, ParquetFileName, PemCertificate, RequestHandlerOptions, SingleAxisSelector$1 as SingleAxisSelector, SlicedColumnJoinEntry, SpecExtension, StringMatcher, UniqueValuesRequestV2 };
17
17
  }
18
18
  //#endregion
19
19
  export { index_d_exports };
@@ -69,6 +69,82 @@ interface PTableV11 extends Disposable {
69
69
  /** Deallocates all underlying resources */
70
70
  dispose(): void;
71
71
  }
72
+ /**
73
+ * Table view returned by `createTable`.
74
+ *
75
+ * Self-contained: does not extend any earlier per-table interface. Once this
76
+ * version is adopted, every earlier `PTableV*` interface is dropped, so this
77
+ * declaration repeats the full method surface rather than referencing the
78
+ * predecessors.
79
+ *
80
+ * Same surface as {@link PTableV11} except {@link PTableV12.export} moves
81
+ * `headers` into `ops` and passes them as an ordered list of
82
+ * `[unified column index, header name]` pairs instead of a
83
+ * `Record<number, string>` map.
84
+ *
85
+ * PTable can be thought as having a composite primary key, consisting
86
+ * of axes, and a set of data columns derived from PColumn values.
87
+ * The table's column spec is owned by the caller — selector → index
88
+ * resolution runs on the caller side via WASM-spec.
89
+ */
90
+ interface PTableV12 extends Disposable {
91
+ /**
92
+ * Get PTable disk footprint in bytes.
93
+ *
94
+ * @param ops.withPredecessors When true, the footprint includes
95
+ * every registered predecessor table reachable through the
96
+ * query lineage. When false or omitted, only this table's own
97
+ * materialised data is counted.
98
+ *
99
+ * Warning: This call materializes the join.
100
+ */
101
+ getFootprint(ops?: {
102
+ withPredecessors?: boolean;
103
+ signal?: AbortSignal;
104
+ }): Promise<number>;
105
+ /**
106
+ * Unified table shape
107
+ * Warning: This call materializes the join.
108
+ */
109
+ getShape(ops?: {
110
+ signal?: AbortSignal;
111
+ }): Promise<PTableShape>;
112
+ /**
113
+ * Retrieve the data from the table. To retrieve only data required, it can be
114
+ * sliced both horizontally ({@link columnIndices}) and vertically
115
+ * ({@link range}).
116
+ * This call materializes the join.
117
+ *
118
+ * @param columnIndices unified indices of columns to be retrieved
119
+ * @param range optionally limit the range of records to retrieve
120
+ * */
121
+ getData(columnIndices: number[], ops?: {
122
+ range?: TableRange;
123
+ signal?: AbortSignal;
124
+ }): Promise<PTableVector[]>;
125
+ /**
126
+ * Stream the sorted table to a file at `path`. The output format is
127
+ * selected from the file extension: `csv`, `tsv`, `parquet`, or `xlsx`.
128
+ * Writing is bounded-memory.
129
+ * This call materializes the join.
130
+ *
131
+ * @param path destination file path; its extension selects the format
132
+ * @param ops.headers list of `[unified column index, header name]` pairs
133
+ * (unified index: axes first, then data columns). Only the columns listed
134
+ * are exported, in ascending index order — the list both selects the
135
+ * columns and names them (the data layer is name-independent, so names
136
+ * are supplied by the caller).
137
+ *
138
+ * @remarks For `xlsx` the caller must ensure the row count is below Excel's
139
+ * 1,048,576-row per-sheet limit.
140
+ */
141
+ export(path: string, ops?: {
142
+ headers: [number, string][];
143
+ signal?: AbortSignal;
144
+ }): Promise<void>;
145
+ /** Deallocates all underlying resources */
146
+ dispose(): void;
147
+ }
72
148
  //#endregion
73
- export { PTableV11 };
149
+ export { PTableV11, PTableV12 };
74
150
  //# sourceMappingURL=table.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"table.d.ts","names":[],"sources":["../../../src/pframe/internal_api/table.ts"],"mappings":";;;;;AAaA;;;;;;;;;UAAiB,SAAA,SAAkB,UAAA;EAkCtB;;;;;;;;;;EAvBX,YAAA,CAAa,GAAA;IAAQ,gBAAA;IAA4B,MAAA,GAAS,WAAA;EAAA,IAAgB,OAAA;EAAA;;;;EAM1E,QAAA,CAAS,GAAA;IAAQ,MAAA,GAAS,WAAA;EAAA,IAAgB,OAAA,CAAQ,WAAA;EAWlD;;;;;;;;;EAAA,OAAA,CACE,aAAA,YACA,GAAA;IACE,KAAA,GAAQ,UAAA;IACR,MAAA,GAAS,WAAA;EAAA,IAEV,OAAA,CAAQ,YAAA;EAsBP;;;;;;;;;;;;;;;;EAJJ,MAAA,CACE,IAAA,UACA,OAAA,EAAS,MAAA,kBACT,GAAA;IACE,MAAA,GAAS,WAAA;EAAA,IAEV,OAAA;;EAGH,OAAA;AAAA"}
1
+ {"version":3,"file":"table.d.ts","names":[],"sources":["../../../src/pframe/internal_api/table.ts"],"mappings":";;;;;AAaA;;;;;;;;;UAAiB,SAAA,SAAkB,UAAA;EAkCtB;;;;;;;;;;EAvBX,YAAA,CAAa,GAAA;IAAQ,gBAAA;IAA4B,MAAA,GAAS,WAAA;EAAA,IAAgB,OAAA;EAAA;;;;EAM1E,QAAA,CAAS,GAAA;IAAQ,MAAA,GAAS,WAAA;EAAA,IAAgB,OAAA,CAAQ,WAAA;EAWlD;;;;;;;;;EAAA,OAAA,CACE,aAAA,YACA,GAAA;IACE,KAAA,GAAQ,UAAA;IACR,MAAA,GAAS,WAAA;EAAA,IAEV,OAAA,CAAQ,YAAA;EAsBP;;;;;;;AA0BN;;;;;;;;;EA9BE,MAAA,CACE,IAAA,UACA,OAAA,EAAS,MAAA,kBACT,GAAA;IACE,MAAA,GAAS,WAAA;EAAA,IAEV,OAAA;EAgFU;EA7Eb,OAAA;AAAA;;;;;;;;;;;;;;;;;;;UAqBe,SAAA,SAAkB,UAAA;EAgC7B;;;;;;;;;;EArBJ,YAAA,CAAa,GAAA;IAAQ,gBAAA;IAA4B,MAAA,GAAS,WAAA;EAAA,IAAgB,OAAA;EAkDnE;;;;EA5CP,QAAA,CAAS,GAAA;IAAQ,MAAA,GAAS,WAAA;EAAA,IAAgB,OAAA,CAAQ,WAAA;;;;;;;;;;EAWlD,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.1",
3
+ "version": "1.30.2",
4
4
  "description": "Common model between middle layer and non-block UI code",
5
5
  "files": [
6
6
  "./dist/**/*",
@@ -26,9 +26,9 @@
26
26
  "devDependencies": {
27
27
  "@types/node": "~24.5.2",
28
28
  "typescript": "~5.9.3",
29
- "@milaboratories/build-configs": "2.0.0",
30
29
  "@milaboratories/ts-builder": "1.5.0",
31
- "@milaboratories/ts-configs": "1.2.3"
30
+ "@milaboratories/ts-configs": "1.2.3",
31
+ "@milaboratories/build-configs": "2.0.0"
32
32
  },
33
33
  "scripts": {
34
34
  "build": "ts-builder build --target node",
@@ -4,7 +4,7 @@ import type {
4
4
  DataQuery,
5
5
  DataQueryBooleanExpression,
6
6
  } from "@milaboratories/pl-model-common";
7
- import type { PTableV11 } from "./table";
7
+ import type { PTableV11, PTableV12 } from "./table";
8
8
  import type { PTableId } from "./common";
9
9
 
10
10
  /**
@@ -30,6 +30,39 @@ export interface UniqueValuesRequestV2 {
30
30
  readonly limit: number;
31
31
  }
32
32
 
33
+ /**
34
+ * Read interface exposed by PFrames library. Returns the {@link PTableV12}
35
+ * table view, whose `export` takes an `ops.headers` list of
36
+ * `[column index, header name]` pairs.
37
+ *
38
+ * Self-contained: does not extend any earlier read interface. Once this
39
+ * version is adopted, every earlier `PFrameReadAPIV*` and per-table
40
+ * `PTableV*` interface is dropped, so this declaration repeats the full
41
+ * method surface rather than referencing the predecessors.
42
+ *
43
+ * Same surface as {@link PFrameReadAPIV14}; the only change is that
44
+ * {@link PFrameReadAPIV15.createTable} returns {@link PTableV12}.
45
+ *
46
+ * Spec-side operations (finding columns, listing columns, retrieving
47
+ * column specs, computing axis integrations) are not part of this
48
+ * surface — callers cache column specs themselves or route through
49
+ * WASM-spec. The data-side `createTable` accepts a pre-lowered
50
+ * `DataQuery`; `getUniqueValues` takes pre-resolved indices via
51
+ * {@link UniqueValuesRequestV2}.
52
+ */
53
+ export interface PFrameReadAPIV15 {
54
+ /** Creates table from a pre-lowered data query. */
55
+ createTable(tableId: PTableId, dataQuery: DataQuery): PTableV12;
56
+
57
+ /** Calculate set of unique values for a specific axis for the filtered set of records. */
58
+ getUniqueValues(
59
+ request: UniqueValuesRequestV2,
60
+ ops?: {
61
+ signal?: AbortSignal;
62
+ },
63
+ ): Promise<UniqueValuesResponse>;
64
+ }
65
+
33
66
  /**
34
67
  * Read interface exposed by PFrames library. Returns the {@link PTableV11}
35
68
  * table view, whose `export` takes a column-index → header map.
@@ -3,7 +3,7 @@ import type {
3
3
  AxesSpec,
4
4
  BuildQueryInput,
5
5
  JoinEntry,
6
- PColumnInfo,
6
+ PColumnIdAndSpec,
7
7
  PColumnSpec,
8
8
  PObjectId,
9
9
  PTableColumnId,
@@ -23,6 +23,116 @@ import type {
23
23
  import type { DiscoverColumnsRequestV2, DiscoverColumnsResponse } from "./discover_columns";
24
24
  import type { FindColumnsRequest, FindColumnsResponse } from "./find_columns";
25
25
 
26
+ /**
27
+ * V5 PFrame API factory — pure spec-layer operations plus frame construction.
28
+ *
29
+ * Self-contained: does not extend any earlier factory interface. Once this
30
+ * version is adopted, every earlier `PFrameWasmAPIV*` and per-frame
31
+ * `PFrameWasmV*` interface is dropped, so this declaration repeats the full
32
+ * method surface rather than referencing the predecessors.
33
+ */
34
+ export interface PFrameWasmAPIV5 {
35
+ /**
36
+ * Creates a new PFrame from a map of column IDs to column specifications.
37
+ */
38
+ createPFrame(spec: Record<string, PColumnSpec>): PFrameWasmV4;
39
+
40
+ /**
41
+ * Expands an {@link AxesSpec} into {@link AxesId}s with parent information
42
+ * resolved.
43
+ */
44
+ expandAxes(spec: AxesSpec): AxesId;
45
+
46
+ /**
47
+ * Collapses {@link AxesId} into {@link AxesSpec}.
48
+ */
49
+ collapseAxes(ids: AxesId): AxesSpec;
50
+
51
+ /**
52
+ * Finds the index of an axis matching the given selector.
53
+ * Returns -1 if no matching axis is found.
54
+ */
55
+ findAxis(spec: AxesSpec, selector: SingleAxisSelector): number;
56
+
57
+ /**
58
+ * Finds the flat index of a table column matching the given
59
+ * selector within a table spec. Returns -1 if not found.
60
+ */
61
+ findTableColumn(tableSpec: PTableColumnSpec[], selector: PTableColumnId): number;
62
+
63
+ /**
64
+ * Assembles a {@link SpecQueryJoinEntry} from a terminal column plus an
65
+ * ordered path of wrapping steps (linker hops, filter joins).
66
+ *
67
+ * Right-fold over `path` starting from `Column(column)`: each `linker` step
68
+ * wraps the current subquery as `linkerJoin`, each `filter` step as
69
+ * `innerJoin` with the filter column. `qualifications` annotate the
70
+ * outermost entry only.
71
+ */
72
+ buildQuery(input: BuildQueryInput): SpecQueryJoinEntry;
73
+
74
+ /**
75
+ * Upgrades selector-based legacy record filters into index-based data-layer
76
+ * boolean expressions, resolved against the provided unified table spec
77
+ * (axes first, then columns).
78
+ */
79
+ rewriteLegacyFilters(request: {
80
+ tableSpec: PTableColumnSpec[];
81
+ filters: PTableRecordFilter[];
82
+ }): DataQueryBooleanExpression[];
83
+ }
84
+
85
+ /**
86
+ * V4 PFrame interface — per-frame instance operations.
87
+ *
88
+ * Self-contained: does not extend any earlier per-frame interface. Once this
89
+ * version is adopted, every earlier `PFrameWasmV*` interface is dropped, so
90
+ * this declaration repeats the full method surface rather than referencing
91
+ * the predecessors.
92
+ */
93
+ export interface PFrameWasmV4 extends Disposable {
94
+ /**
95
+ * Deletes columns from a columns specification.
96
+ */
97
+ deleteColumns(request: DeleteColumnFromColumnsRequest): DeleteColumnFromColumnsResponse;
98
+
99
+ /**
100
+ * Returns the id and spec of the single column registered under `columnId`
101
+ * in this PFrame, or `null` if no such column is registered. Same shape as
102
+ * the entries of {@link PFrameWasmV4.listColumns}.
103
+ */
104
+ getColumn(columnId: PObjectId): PColumnIdAndSpec | null;
105
+
106
+ /**
107
+ * Lists all columns currently registered in this PFrame, with their ids and specs.
108
+ */
109
+ listColumns(): PColumnIdAndSpec[];
110
+
111
+ /**
112
+ * Discovers columns compatible with a given axes integration. Include and
113
+ * exclude filters are applied in order (exclude removes matches from the
114
+ * include set). Each hit carries its traversal `path`; feed the hit's
115
+ * column id and `path` into {@link PFrameWasmAPIV5.buildQuery} to
116
+ * materialize it as a {@link SpecQueryJoinEntry}.
117
+ */
118
+ discoverColumns(request: DiscoverColumnsRequestV2): DiscoverColumnsResponse;
119
+
120
+ /**
121
+ * Finds columns in the PFrame matching the given filter criteria.
122
+ */
123
+ findColumns(request: FindColumnsRequest): FindColumnsResponse;
124
+
125
+ /**
126
+ * Evaluates a query specification against this PFrame.
127
+ */
128
+ evaluateQuery(request: SpecQuery): EvaluateQueryResponse;
129
+
130
+ /**
131
+ * Rewrites a legacy query format (V4) to the current SpecQuery format.
132
+ */
133
+ rewriteLegacyQuery(request: LegacyQuery): SpecQuery;
134
+ }
135
+
26
136
  /**
27
137
  * V4 PFrame API factory — pure spec-layer operations plus frame construction.
28
138
  *
@@ -109,7 +219,7 @@ export interface PFrameWasmV3 extends Disposable {
109
219
  /**
110
220
  * Lists all columns currently registered in this PFrame, with their ids and specs.
111
221
  */
112
- listColumns(): PColumnInfo[];
222
+ listColumns(): PColumnIdAndSpec[];
113
223
 
114
224
  /**
115
225
  * Discovers columns compatible with a given axes integration. Include and