@milaboratories/pf-spec 1.0.0 → 1.0.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.
- package/dist/_virtual/_rolldown/runtime.js +13 -0
- package/dist/axes.d.ts +7 -6
- package/dist/axes.d.ts.map +1 -1
- package/dist/build-query.d.ts +5 -4
- package/dist/build-query.d.ts.map +1 -1
- package/dist/generated/pframes_rs_wasip2.core.wasm +0 -0
- package/dist/index.d.ts +12 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/p-frame.d.ts +7 -6
- package/dist/p-frame.d.ts.map +1 -1
- package/dist/rewrite-filters.d.ts +5 -4
- package/dist/rewrite-filters.d.ts.map +1 -1
- package/dist/table.d.ts +5 -4
- package/dist/table.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, no_symbols) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) __defProp(target, name, {
|
|
6
|
+
get: all[name],
|
|
7
|
+
enumerable: true
|
|
8
|
+
});
|
|
9
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
+
return target;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { __exportAll };
|
package/dist/axes.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { AxesId, AxesSpec, SingleAxisSelector } from "@milaboratories/pl-model-common";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare function
|
|
6
|
-
declare function
|
|
2
|
+
declare namespace axes_d_exports {
|
|
3
|
+
export { collapse, expand, find };
|
|
4
|
+
}
|
|
5
|
+
export declare function expand(spec: AxesSpec): AxesId;
|
|
6
|
+
export declare function collapse(ids: AxesId): AxesSpec;
|
|
7
|
+
export declare function find(spec: AxesSpec, selector: SingleAxisSelector): number;
|
|
7
8
|
//#endregion
|
|
8
|
-
export {
|
|
9
|
+
export { axes_d_exports };
|
|
9
10
|
//# sourceMappingURL=axes.d.ts.map
|
package/dist/axes.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axes.d.ts","names":[],"sources":["../src/axes.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"axes.d.ts","names":[],"sources":["../src/axes.ts"],"mappings":";;;;wBAGgB,OAAO,MAAM,WAAW;wBAKxB,SAAS,KAAK,SAAS;wBAIvB,KAAK,MAAM,UAAU,UAAU"}
|
package/dist/build-query.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { BuildQueryInput, SpecQueryJoinEntry } from "@milaboratories/pl-model-common";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
declare namespace build_query_d_exports {
|
|
3
|
+
export { build };
|
|
4
|
+
}
|
|
5
|
+
export declare function build(input: BuildQueryInput): SpecQueryJoinEntry;
|
|
5
6
|
//#endregion
|
|
6
|
-
export {
|
|
7
|
+
export { build_query_d_exports };
|
|
7
8
|
//# sourceMappingURL=build-query.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-query.d.ts","names":[],"sources":["../src/build-query.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"build-query.d.ts","names":[],"sources":["../src/build-query.ts"],"mappings":";;;;wBAGgB,MAAM,OAAO,kBAAkB"}
|
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
import { collapse, expand, find } from "./axes.js";
|
|
2
|
-
import { build } from "./build-query.js";
|
|
1
|
+
import { axes_d_exports, collapse, expand, find } from "./axes.js";
|
|
2
|
+
import { build, build_query_d_exports } from "./build-query.js";
|
|
3
3
|
import { LegacyQuery, PFrame } from "./p-frame.js";
|
|
4
|
-
import { rewriteLegacyFilters as rewriteLegacyFilters$1 } from "./rewrite-filters.js";
|
|
5
|
-
import { findColumn } from "./table.js";
|
|
4
|
+
import { rewriteLegacyFilters as rewriteLegacyFilters$1, rewrite_filters_d_exports } from "./rewrite-filters.js";
|
|
5
|
+
import { findColumn, table_d_exports } from "./table.js";
|
|
6
6
|
import { PColumnSpec } from "@milaboratories/pl-model-common";
|
|
7
|
-
|
|
8
7
|
//#region src/index.d.ts
|
|
9
8
|
/** Creates a {@link PFrame} from a map of column ids to column specifications. */
|
|
10
|
-
declare const createPFrame: (spec: Record<string, PColumnSpec>) => PFrame;
|
|
9
|
+
export declare const createPFrame: (spec: Record<string, PColumnSpec>) => PFrame;
|
|
11
10
|
/** Expands an `AxesSpec` into `AxesId`s and resolves the parent information. */
|
|
12
|
-
declare const expandAxes: typeof expand;
|
|
11
|
+
export declare const expandAxes: typeof expand;
|
|
13
12
|
/** This operation is the inverse of {@link expandAxes}. */
|
|
14
|
-
declare const collapseAxes: typeof collapse;
|
|
13
|
+
export declare const collapseAxes: typeof collapse;
|
|
15
14
|
/** Returns the index of the axis that matches `selector`, or -1 if no axis matches. */
|
|
16
|
-
declare const findAxis: typeof find;
|
|
15
|
+
export declare const findAxis: typeof find;
|
|
17
16
|
/**
|
|
18
17
|
* Returns the index of the table column that matches `selector`. It returns -1 if no
|
|
19
18
|
* column matches. A table spec indexes the axes first and then the columns.
|
|
20
19
|
*/
|
|
21
|
-
declare const findTableColumn: typeof findColumn;
|
|
20
|
+
export declare const findTableColumn: typeof findColumn;
|
|
22
21
|
/**
|
|
23
22
|
* Assembles a `SpecQueryJoinEntry` from a terminal column and an ordered path of
|
|
24
23
|
* steps. The steps are linker hops and filter joins.
|
|
@@ -28,13 +27,13 @@ declare const findTableColumn: typeof findColumn;
|
|
|
28
27
|
* wraps the current subquery as an `innerJoin` with the filter column.
|
|
29
28
|
* `qualifications` annotate only the outermost entry.
|
|
30
29
|
*/
|
|
31
|
-
declare const buildQuery: typeof build;
|
|
30
|
+
export declare const buildQuery: typeof build;
|
|
32
31
|
/**
|
|
33
32
|
* Upgrades the selector-based legacy record filters into index-based boolean
|
|
34
33
|
* expressions for the data layer. It resolves them against the given unified table
|
|
35
34
|
* spec.
|
|
36
35
|
*/
|
|
37
|
-
declare const rewriteLegacyFilters: typeof rewriteLegacyFilters$1;
|
|
36
|
+
export declare const rewriteLegacyFilters: typeof rewriteLegacyFilters$1;
|
|
38
37
|
//#endregion
|
|
39
|
-
export { type LegacyQuery, PFrame
|
|
38
|
+
export { type LegacyQuery, PFrame };
|
|
40
39
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;qBAUa,eAAY,MAAU,eAAe,iBAAe;;qBAGpD,mBAAU;;qBAGV,qBAAY;;qBAGZ,iBAAQ;;;;;qBAMR,wBAAe;;;;;;;;;;qBAWf,mBAAU;;;;;;qBAOV,6BAAoB"}
|
package/dist/p-frame.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { EvaluateQueryResponse, JoinEntry, PColumnIdAndSpec, PColumnSpec, PObjectId, PTableRecordFilter, PTableSorting, SpecQuery } from "@milaboratories/pl-model-common";
|
|
2
2
|
import { PFrameInternal } from "@milaboratories/pl-model-middle-layer";
|
|
3
|
-
|
|
4
3
|
//#region src/p-frame.d.ts
|
|
5
4
|
/** A legacy (V4) query. Code used this type before the unified `SpecQuery`. */
|
|
6
|
-
type LegacyQuery = {
|
|
7
|
-
/** The source join entry. It defines the data sources and the join structure. */
|
|
8
|
-
|
|
5
|
+
export type LegacyQuery = {
|
|
6
|
+
/** The source join entry. It defines the data sources and the join structure. */
|
|
7
|
+
src: JoinEntry<PObjectId>;
|
|
8
|
+
/** Optional record-level filters. The query applies these to its results. */
|
|
9
|
+
filters?: PTableRecordFilter[];
|
|
10
|
+
/** Optional sort specifications. They set the order of the results. */
|
|
9
11
|
sorting?: PTableSorting[];
|
|
10
12
|
};
|
|
11
13
|
/**
|
|
@@ -17,7 +19,7 @@ type LegacyQuery = {
|
|
|
17
19
|
* This class holds a WASM resource. Use a `using` declaration to release it. Garbage
|
|
18
20
|
* collection also releases the resource, but not at a known time.
|
|
19
21
|
*/
|
|
20
|
-
declare class PFrame implements Disposable {
|
|
22
|
+
export declare class PFrame implements Disposable {
|
|
21
23
|
#private;
|
|
22
24
|
constructor(spec: Record<string, PColumnSpec>);
|
|
23
25
|
/** Deletes columns from a columns specification. */
|
|
@@ -44,5 +46,4 @@ declare class PFrame implements Disposable {
|
|
|
44
46
|
[Symbol.dispose](): void;
|
|
45
47
|
}
|
|
46
48
|
//#endregion
|
|
47
|
-
export { LegacyQuery, PFrame };
|
|
48
49
|
//# sourceMappingURL=p-frame.d.ts.map
|
package/dist/p-frame.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"p-frame.d.ts","names":[],"sources":["../src/p-frame.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"p-frame.d.ts","names":[],"sources":["../src/p-frame.ts"],"mappings":";;;;YAeY;;EAEV,KAAK,UAAU;;EAEf,UAAU;;EAEV,UAAU;;;;;;;;;;;qBAYC,kBAAkB;;EAG7B,YAAY,MAAM,eAAe;;EAKjC,cACE,SAAS,eAAe,iCACvB,eAAe;;EAKlB,UAAU,UAAU,YAAY;;EAKhC,eAAe;;;;;;;;;EAaf,gBACE,SAAS,eAAe,2BACvB,eAAe;;EAKlB,YAAY,SAAS,eAAe,qBAAqB,eAAe;;EAKxE,cAAc,SAAS,YAAY;;EAKnC,mBAAmB,SAAS,cAAc;GAKzC,OAAO"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DataQueryBooleanExpression, PTableColumnSpec, PTableRecordFilter } from "@milaboratories/pl-model-common";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
declare namespace rewrite_filters_d_exports {
|
|
3
|
+
export { rewriteLegacyFilters };
|
|
4
|
+
}
|
|
4
5
|
/**
|
|
5
6
|
* Upgrades the selector-based legacy record filters into index-based boolean
|
|
6
7
|
* expressions for the data layer. It resolves them against the given unified
|
|
@@ -11,10 +12,10 @@ import { DataQueryBooleanExpression, PTableColumnSpec, PTableRecordFilter } from
|
|
|
11
12
|
* the single-column table of the source column. The result is also valid when
|
|
12
13
|
* you compose a `filter` over a `table` query node.
|
|
13
14
|
*/
|
|
14
|
-
declare function rewriteLegacyFilters(request: {
|
|
15
|
+
export declare function rewriteLegacyFilters(request: {
|
|
15
16
|
tableSpec: PTableColumnSpec[];
|
|
16
17
|
filters: PTableRecordFilter[];
|
|
17
18
|
}): DataQueryBooleanExpression[];
|
|
18
19
|
//#endregion
|
|
19
|
-
export {
|
|
20
|
+
export { rewrite_filters_d_exports };
|
|
20
21
|
//# sourceMappingURL=rewrite-filters.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rewrite-filters.d.ts","names":[],"sources":["../src/rewrite-filters.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"rewrite-filters.d.ts","names":[],"sources":["../src/rewrite-filters.ts"],"mappings":";;;;;;;;;;;;;;wBAiBgB,qBAAqB;EACnC,WAAW;EACX,SAAS;IACP"}
|
package/dist/table.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { PTableColumnId, PTableColumnSpec } from "@milaboratories/pl-model-common";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
declare namespace table_d_exports {
|
|
3
|
+
export { findColumn };
|
|
4
|
+
}
|
|
5
|
+
export declare function findColumn(tableSpec: PTableColumnSpec[], selector: PTableColumnId): number;
|
|
5
6
|
//#endregion
|
|
6
|
-
export {
|
|
7
|
+
export { table_d_exports };
|
|
7
8
|
//# sourceMappingURL=table.d.ts.map
|
package/dist/table.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","names":[],"sources":["../src/table.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"table.d.ts","names":[],"sources":["../src/table.ts"],"mappings":";;;;wBAGgB,WAAW,WAAW,oBAAoB,UAAU"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@milaboratories/pf-spec",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Spec-plane PFrame operations: bindings to the pframes WASM component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -16,21 +16,21 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@milaboratories/pl-model-
|
|
20
|
-
"@milaboratories/pl-model-
|
|
19
|
+
"@milaboratories/pl-model-middle-layer": "1.32.1",
|
|
20
|
+
"@milaboratories/pl-model-common": "1.49.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@bytecodealliance/jco-transpile": "^0.6.3",
|
|
24
24
|
"@bytecodealliance/preview2-shim": "^0.20.1",
|
|
25
|
-
"@milaboratories/pframes-rs-wasip2": "1.1.
|
|
25
|
+
"@milaboratories/pframes-rs-wasip2": "1.1.60",
|
|
26
26
|
"@types/node": "~24.5.2",
|
|
27
27
|
"@vitest/coverage-istanbul": "^4.1.3",
|
|
28
28
|
"rollup-plugin-copy": "^3.5.0",
|
|
29
|
-
"typescript": "
|
|
29
|
+
"typescript": "7.0.2",
|
|
30
30
|
"vitest": "^4.1.3",
|
|
31
|
-
"@milaboratories/build-configs": "2.0.
|
|
31
|
+
"@milaboratories/build-configs": "2.0.1",
|
|
32
32
|
"@milaboratories/ts-configs": "1.4.0",
|
|
33
|
-
"@milaboratories/ts-builder": "1.
|
|
33
|
+
"@milaboratories/ts-builder": "1.7.2"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@bytecodealliance/preview2-shim": "^0.20.1"
|