@milaboratories/pl-model-middle-layer 1.27.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.
@@ -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;
@@ -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;
@@ -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<{
@@ -1,4 +1,4 @@
1
- import { PTableV10, PTableV9 } from "./table.js";
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,28 +23,8 @@ interface UniqueValuesRequestV2 {
23
23
  readonly limit: number;
24
24
  }
25
25
  /**
26
- * Read interface exposed by PFrames library.
27
- *
28
- * Spec-side operations (finding columns, listing columns, retrieving
29
- * column specs, computing axis integrations) are not part of this
30
- * surface — callers cache column specs themselves or route through
31
- * WASM-spec. The data-side `createTable` accepts a pre-lowered
32
- * `DataQuery`; `getUniqueValues` takes pre-resolved indices via
33
- * {@link UniqueValuesRequestV2}.
34
- */
35
- interface PFrameReadAPIV12 {
36
- /** Creates table from a pre-lowered data query. */
37
- createTable(tableId: PTableId, dataQuery: DataQuery): PTableV9;
38
- /** Calculate set of unique values for a specific axis for the filtered set of records. */
39
- getUniqueValues(request: UniqueValuesRequestV2, ops?: {
40
- signal?: AbortSignal;
41
- }): Promise<UniqueValuesResponse>;
42
- }
43
- /**
44
- * Read interface exposed by PFrames library.
45
- *
46
- * Identical to {@link PFrameReadAPIV12} but returns the {@link PTableV10}
47
- * table view, which adds the `export` method.
26
+ * Read interface exposed by PFrames library. Returns the {@link PTableV10}
27
+ * table view, which provides the `export` method.
48
28
  *
49
29
  * Spec-side operations (finding columns, listing columns, retrieving
50
30
  * column specs, computing axis integrations) are not part of this
@@ -62,5 +42,5 @@ interface PFrameReadAPIV13 {
62
42
  }): Promise<UniqueValuesResponse>;
63
43
  }
64
44
  //#endregion
65
- export { PFrameReadAPIV12, PFrameReadAPIV13, UniqueValuesRequestV2 };
45
+ export { PFrameReadAPIV13, UniqueValuesRequestV2 };
66
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;EAmBM;EAAA,SAhBN,OAAA,EAAS,0BAAA;;WAGT,KAAA;AAAA;;;;;;;;;;;UAaM,gBAAA;EAEgB;EAA/B,WAAA,CAAY,OAAA,EAAS,QAAA,EAAU,SAAA,EAAW,SAAA,GAAY,QAAA;EAGtD;EAAA,eAAA,CACE,OAAA,EAAS,qBAAA,EACT,GAAA;IACE,MAAA,GAAS,WAAA;EAAA,IAEV,OAAA,CAAQ,oBAAA;AAAA;;;;;;AAgBb;;;;;;;;UAAiB,gBAAA;EAUZ;EARH,WAAA,CAAY,OAAA,EAAS,QAAA,EAAU,SAAA,EAAW,SAAA,GAAY,SAAA;EAQ5C;EALV,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;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 { PTableV10, PTableV9 } from "./table.js";
1
+ import { PTableV10 } from "./table.js";
2
2
  import { AxisQualification, ColumnAxesWithQualifications, ConstantAxisFilter, Logger, PFrameId, PTableId } from "./common.js";
3
- import { PFrameReadAPIV12, PFrameReadAPIV13, UniqueValuesRequestV2 } from "./api_read.js";
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 { PFrameFactoryV5, PFrameFactoryV6, PFrameOptionsV2, PFrameV14, PFrameV15 } from "./pframe.js";
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, PFrameFactoryV5, PFrameFactoryV6, PFrameId, PFrameOptionsV2, PFrameReadAPIV12, PFrameReadAPIV13, PFrameV14, PFrameV15, PFrameWasmAPIV2, PFrameWasmAPIV3, PFrameWasmAPIV4, PFrameWasmV2, PFrameWasmV3, PTableId, PTableV10, PTableV9, ParquetExtension, ParquetFileName, PemCertificate, RequestHandlerOptions, SingleAxisSelector$1 as SingleAxisSelector, SlicedColumnJoinEntry, SpecExtension, StringMatcher, UniqueValuesRequestV2 };
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,15 +1,11 @@
1
1
  import { Logger, PFrameId } from "./common.js";
2
- import { PFrameReadAPIV12, PFrameReadAPIV13 } from "./api_read.js";
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
- /** Full PFrame surface — factory operations plus data-side reads. */
7
- interface PFrameV14 extends PFrameFactoryAPIV5, PFrameReadAPIV12 {}
8
6
  /**
9
- * Full PFrame surface — factory operations plus data-side reads.
10
- *
11
- * Identical to {@link PFrameV14} but exposes {@link PFrameReadAPIV13}, whose
12
- * tables add the `export` method.
7
+ * Full PFrame surface — factory operations plus data-side reads. Exposes
8
+ * {@link PFrameReadAPIV13}, whose tables provide the `export` method.
13
9
  */
14
10
  interface PFrameV15 extends PFrameFactoryAPIV5, PFrameReadAPIV13 {}
15
11
  type PFrameOptionsV2 = {
@@ -17,27 +13,9 @@ type PFrameOptionsV2 = {
17
13
  spillPath: string; /** Logger instance, no logging is performed when not provided */
18
14
  logger?: Logger;
19
15
  };
20
- /** PFrame management functions exposed by the PFrame module. */
21
- interface PFrameFactoryV5 {
22
- /**
23
- * Create a new PFrame instance.
24
- * @warning Use concurrency limiting to avoid OOM crashes when multiple instances are simultaneously in use.
25
- */
26
- createPFrame(options: PFrameOptionsV2): PFrameV14;
27
- /**
28
- * Dump active allocations from all PFrames instances in pprof format.
29
- * The result of this function should be saved as `profile.pb.gz`.
30
- * Use {@link https://pprof.me/} or {@link https://www.speedscope.app/}
31
- * to view the allocation flamechart.
32
- * @warning This method will always reject on Windows!
33
- */
34
- pprofDump: () => Promise<Uint8Array>;
35
- }
36
16
  /**
37
- * PFrame management functions exposed by the PFrame module.
38
- *
39
- * Identical to {@link PFrameFactoryV5} but creates {@link PFrameV15} instances,
40
- * whose tables add the `export` method.
17
+ * PFrame management functions exposed by the PFrame module. Creates
18
+ * {@link PFrameV15} instances, whose tables provide the `export` method.
41
19
  */
42
20
  interface PFrameFactoryV6 {
43
21
  /**
@@ -55,5 +33,5 @@ interface PFrameFactoryV6 {
55
33
  pprofDump: () => Promise<Uint8Array>;
56
34
  }
57
35
  //#endregion
58
- export { PFrameFactoryV5, PFrameFactoryV6, PFrameOptionsV2, PFrameV14, PFrameV15 };
36
+ export { PFrameFactoryV6, PFrameOptionsV2, PFrameV15 };
59
37
  //# sourceMappingURL=pframe.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pframe.d.ts","names":[],"sources":["../../../src/pframe/internal_api/pframe.ts"],"mappings":";;;;;;UAMiB,SAAA,SAAkB,kBAAA,EAAoB,gBAAA;;;;AAQvD;;;UAAiB,SAAA,SAAkB,kBAAA,EAAoB,gBAAA;AAAA,KAE3C,eAAA;EAAe,qCAEzB,OAAA,EAAS,QAAA,EAIM;EAFf,SAAA,UAFS;EAIT,MAAA,GAAS,MAAA;AAAA;;UAIM,eAAA;EAJA;AAIjB;;;EAKE,YAAA,CAAa,OAAA,EAAS,eAAA,GAAkB,SAAA;EAAA;;;;;;;EASxC,SAAA,QAAiB,OAAA,CAAQ,UAAA;AAAA;;;;;;AAS3B;UAAiB,eAAA;;;;;EAKf,YAAA,CAAa,OAAA,EAAS,eAAA,GAAkB,SAAA;EAShB;;;;;;;EAAxB,SAAA,QAAiB,OAAA,CAAQ,UAAA;AAAA"}
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"}
@@ -1,52 +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
- * PTable can be thought as having a composite primary key, consisting
8
- * of axes, and a set of data columns derived from PColumn values.
9
- * The table's column spec is owned by the caller — selector → index
10
- * resolution runs on the caller side via WASM-spec.
11
- */
12
- interface PTableV9 extends Disposable {
13
- /**
14
- * Get PTable disk footprint in bytes.
15
- *
16
- * @param ops.withPredecessors When true, the footprint includes
17
- * every registered predecessor table reachable through the
18
- * query lineage. When false or omitted, only this table's own
19
- * materialised data is counted.
20
- *
21
- * Warning: This call materializes the join.
22
- */
23
- getFootprint(ops?: {
24
- withPredecessors?: boolean;
25
- signal?: AbortSignal;
26
- }): Promise<number>;
27
- /**
28
- * Unified table shape
29
- * Warning: This call materializes the join.
30
- */
31
- getShape(ops?: {
32
- signal?: AbortSignal;
33
- }): Promise<PTableShape>;
34
- /**
35
- * Retrieve the data from the table. To retrieve only data required, it can be
36
- * sliced both horizontally ({@link columnIndices}) and vertically
37
- * ({@link range}).
38
- * This call materializes the join.
39
- *
40
- * @param columnIndices unified indices of columns to be retrieved
41
- * @param range optionally limit the range of records to retrieve
42
- * */
43
- getData(columnIndices: number[], ops?: {
44
- range?: TableRange;
45
- signal?: AbortSignal;
46
- }): Promise<PTableVector[]>;
47
- /** Deallocates all underlying resources */
48
- dispose(): void;
49
- }
50
4
  /**
51
5
  * Table view returned by `createTable`.
52
6
  *
@@ -111,5 +65,5 @@ interface PTableV10 extends Disposable {
111
65
  dispose(): void;
112
66
  }
113
67
  //#endregion
114
- export { PTableV10, PTableV9 };
68
+ export { PTableV10 };
115
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,QAAA,SAAiB,UAAA;EAiBU;;;;;;;;;;EAN1C,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;EAcc;EAXzB,OAAA;AAAA;;;;;;;;;UAWe,SAAA,SAAkB,UAAA;EAwD9B;;;;;;;;;;EA7CH,YAAA,CAAa,GAAA;IAAQ,gBAAA;IAA4B,MAAA,GAAS,WAAA;EAAA,IAAgB,OAAA;EAMjE;;;;EAAT,QAAA,CAAS,GAAA;IAAQ,MAAA,GAAS,WAAA;EAAA,IAAgB,OAAA,CAAQ,WAAA;EAe9C;;;;;;;;;EAJJ,OAAA,CACE,aAAA,YACA,GAAA;IACE,KAAA,GAAQ,UAAA;IACR,MAAA,GAAS,WAAA;EAAA,IAEV,OAAA,CAAQ,YAAA;EAyBJ;;;;;;;;;;;;;;EATP,MAAA,CACE,IAAA,UACA,OAAA,YACA,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":";;;;;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.27.0",
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,14 +21,14 @@
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.43.0"
24
+ "@milaboratories/pl-model-common": "1.44.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/node": "~24.5.2",
28
28
  "typescript": "~5.9.3",
29
+ "@milaboratories/build-configs": "2.0.0",
29
30
  "@milaboratories/ts-builder": "1.5.0",
30
- "@milaboratories/ts-configs": "1.2.3",
31
- "@milaboratories/build-configs": "2.0.0"
31
+ "@milaboratories/ts-configs": "1.2.3"
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 { PTableV9, PTableV10 } from "./table";
7
+ import type { PTableV10 } from "./table";
8
8
  import type { PTableId } from "./common";
9
9
 
10
10
  /**
@@ -31,33 +31,8 @@ export interface UniqueValuesRequestV2 {
31
31
  }
32
32
 
33
33
  /**
34
- * Read interface exposed by PFrames library.
35
- *
36
- * Spec-side operations (finding columns, listing columns, retrieving
37
- * column specs, computing axis integrations) are not part of this
38
- * surface — callers cache column specs themselves or route through
39
- * WASM-spec. The data-side `createTable` accepts a pre-lowered
40
- * `DataQuery`; `getUniqueValues` takes pre-resolved indices via
41
- * {@link UniqueValuesRequestV2}.
42
- */
43
- export interface PFrameReadAPIV12 {
44
- /** Creates table from a pre-lowered data query. */
45
- createTable(tableId: PTableId, dataQuery: DataQuery): PTableV9;
46
-
47
- /** Calculate set of unique values for a specific axis for the filtered set of records. */
48
- getUniqueValues(
49
- request: UniqueValuesRequestV2,
50
- ops?: {
51
- signal?: AbortSignal;
52
- },
53
- ): Promise<UniqueValuesResponse>;
54
- }
55
-
56
- /**
57
- * Read interface exposed by PFrames library.
58
- *
59
- * Identical to {@link PFrameReadAPIV12} but returns the {@link PTableV10}
60
- * table view, which adds the `export` method.
34
+ * Read interface exposed by PFrames library. Returns the {@link PTableV10}
35
+ * table view, which provides the `export` method.
61
36
  *
62
37
  * Spec-side operations (finding columns, listing columns, retrieving
63
38
  * column specs, computing axis integrations) are not part of this
@@ -1,16 +1,11 @@
1
1
  import type { PFrameFactoryAPIV5 } from "./api_factory";
2
- import type { PFrameReadAPIV12, PFrameReadAPIV13 } from "./api_read";
2
+ import type { PFrameReadAPIV13 } from "./api_read";
3
3
  import type { Logger } from "./common";
4
4
  import type { PFrameId } from "./common";
5
5
 
6
- /** Full PFrame surface — factory operations plus data-side reads. */
7
- export interface PFrameV14 extends PFrameFactoryAPIV5, PFrameReadAPIV12 {}
8
-
9
6
  /**
10
- * Full PFrame surface — factory operations plus data-side reads.
11
- *
12
- * Identical to {@link PFrameV14} but exposes {@link PFrameReadAPIV13}, whose
13
- * tables add the `export` method.
7
+ * Full PFrame surface — factory operations plus data-side reads. Exposes
8
+ * {@link PFrameReadAPIV13}, whose tables provide the `export` method.
14
9
  */
15
10
  export interface PFrameV15 extends PFrameFactoryAPIV5, PFrameReadAPIV13 {}
16
11
 
@@ -23,29 +18,9 @@ export type PFrameOptionsV2 = {
23
18
  logger?: Logger;
24
19
  };
25
20
 
26
- /** PFrame management functions exposed by the PFrame module. */
27
- export interface PFrameFactoryV5 {
28
- /**
29
- * Create a new PFrame instance.
30
- * @warning Use concurrency limiting to avoid OOM crashes when multiple instances are simultaneously in use.
31
- */
32
- createPFrame(options: PFrameOptionsV2): PFrameV14;
33
-
34
- /**
35
- * Dump active allocations from all PFrames instances in pprof format.
36
- * The result of this function should be saved as `profile.pb.gz`.
37
- * Use {@link https://pprof.me/} or {@link https://www.speedscope.app/}
38
- * to view the allocation flamechart.
39
- * @warning This method will always reject on Windows!
40
- */
41
- pprofDump: () => Promise<Uint8Array>;
42
- }
43
-
44
21
  /**
45
- * PFrame management functions exposed by the PFrame module.
46
- *
47
- * Identical to {@link PFrameFactoryV5} but creates {@link PFrameV15} instances,
48
- * whose tables add the `export` method.
22
+ * PFrame management functions exposed by the PFrame module. Creates
23
+ * {@link PFrameV15} instances, whose tables provide the `export` method.
49
24
  */
50
25
  export interface PFrameFactoryV6 {
51
26
  /**
@@ -1,53 +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
- * PTable can be thought as having a composite primary key, consisting
7
- * of axes, and a set of data columns derived from PColumn values.
8
- * The table's column spec is owned by the caller — selector → index
9
- * resolution runs on the caller side via WASM-spec.
10
- */
11
- export interface PTableV9 extends Disposable {
12
- /**
13
- * Get PTable disk footprint in bytes.
14
- *
15
- * @param ops.withPredecessors When true, the footprint includes
16
- * every registered predecessor table reachable through the
17
- * query lineage. When false or omitted, only this table's own
18
- * materialised data is counted.
19
- *
20
- * Warning: This call materializes the join.
21
- */
22
- getFootprint(ops?: { withPredecessors?: boolean; signal?: AbortSignal }): Promise<number>;
23
-
24
- /**
25
- * Unified table shape
26
- * Warning: This call materializes the join.
27
- */
28
- getShape(ops?: { signal?: AbortSignal }): Promise<PTableShape>;
29
-
30
- /**
31
- * Retrieve the data from the table. To retrieve only data required, it can be
32
- * sliced both horizontally ({@link columnIndices}) and vertically
33
- * ({@link range}).
34
- * This call materializes the join.
35
- *
36
- * @param columnIndices unified indices of columns to be retrieved
37
- * @param range optionally limit the range of records to retrieve
38
- * */
39
- getData(
40
- columnIndices: number[],
41
- ops?: {
42
- range?: TableRange;
43
- signal?: AbortSignal;
44
- },
45
- ): Promise<PTableVector[]>;
46
-
47
- /** Deallocates all underlying resources */
48
- dispose(): void;
49
- }
50
-
51
3
  /**
52
4
  * Table view returned by `createTable`.
53
5
  *