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

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
- type: "local-dev";
9
8
  path: string;
10
- }, {
11
9
  type: "local-dev";
10
+ }, {
12
11
  path: string;
12
+ type: "local-dev";
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
- type: "local-dev";
62
61
  path: string;
63
- }, {
64
62
  type: "local-dev";
63
+ }, {
65
64
  path: string;
65
+ type: "local-dev";
66
66
  }>]>;
67
67
  type RegistrySpec = z.infer<typeof RegistrySpec>;
68
68
  declare const RegistryEntry: z.ZodObject<{
@@ -90,36 +90,36 @@ declare const RegistryEntry: z.ZodObject<{
90
90
  type: z.ZodLiteral<"local-dev">;
91
91
  path: z.ZodString;
92
92
  }, "strip", z.ZodTypeAny, {
93
- type: "local-dev";
94
93
  path: string;
95
- }, {
96
94
  type: "local-dev";
95
+ }, {
97
96
  path: string;
97
+ type: "local-dev";
98
98
  }>]>;
99
99
  }, "strip", z.ZodTypeAny, {
100
100
  id: string;
101
101
  spec: {
102
- type: "local-dev";
103
- path: string;
104
- } | {
105
102
  type: "remote-v1";
106
103
  url: string;
107
104
  } | {
108
105
  type: "remote-v2";
109
106
  url: string;
107
+ } | {
108
+ path: string;
109
+ type: "local-dev";
110
110
  };
111
111
  title?: string | undefined;
112
112
  }, {
113
113
  id: string;
114
114
  spec: {
115
- type: "local-dev";
116
- path: string;
117
- } | {
118
115
  type: "remote-v1";
119
116
  url: string;
120
117
  } | {
121
118
  type: "remote-v2";
122
119
  url: string;
120
+ } | {
121
+ path: string;
122
+ type: "local-dev";
123
123
  };
124
124
  title?: string | undefined;
125
125
  }>;
@@ -149,36 +149,36 @@ 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
- type: "local-dev";
153
152
  path: string;
154
- }, {
155
153
  type: "local-dev";
154
+ }, {
156
155
  path: string;
156
+ type: "local-dev";
157
157
  }>]>;
158
158
  }, "strip", z.ZodTypeAny, {
159
159
  id: string;
160
160
  spec: {
161
- type: "local-dev";
162
- path: string;
163
- } | {
164
161
  type: "remote-v1";
165
162
  url: string;
166
163
  } | {
167
164
  type: "remote-v2";
168
165
  url: string;
166
+ } | {
167
+ path: string;
168
+ type: "local-dev";
169
169
  };
170
170
  title?: string | undefined;
171
171
  }, {
172
172
  id: string;
173
173
  spec: {
174
- type: "local-dev";
175
- path: string;
176
- } | {
177
174
  type: "remote-v1";
178
175
  url: string;
179
176
  } | {
180
177
  type: "remote-v2";
181
178
  url: string;
179
+ } | {
180
+ path: string;
181
+ type: "local-dev";
182
182
  };
183
183
  title?: string | undefined;
184
184
  }>, "many">;
@@ -1 +1 @@
1
- {"version":3,"file":"api_factory.cjs","names":[],"sources":["../../../src/pframe/internal_api/api_factory.ts"],"sourcesContent":["import type {\n AxisValueType,\n BinaryPartitionedDataInfo,\n Branded,\n ColumnValueType,\n JsonDataInfo,\n JsonPartitionedDataInfo,\n ParquetChunk,\n ParquetPartitionedDataInfo,\n PObjectId,\n} from \"@milaboratories/pl-model-common\";\nimport type { HttpServerInfo } from \"./http_helpers\";\n\n/** PColumn spec file extension */\nexport const SpecExtension = \".spec\" as const;\n\n/** PColumn data info file extension */\nexport const DataInfoExtension = \".datainfo\" as const;\n\n/** Abstract identifier of a data blob that can be requested from the storage backend */\nexport type PFrameBlobId = Branded<string, \"PFrameInternal.PFrameBlobId\">;\n\n/** Path of the file containing requested data (blob). This path is returned by\n * {@link BlobPathResolver} as soon as blob materialized in the file system. */\nexport type FilePath = string;\n\n/** Data source allows PFrame to retrieve the data blobs for columns with assigned data info. */\nexport interface PFrameDataSourceV2 {\n /**\n * PFrame may notify storage backend about its plans to use particular blobs in the future.\n * Storage backend will do its best to preload specified blob so the subsequent\n * {@link resolveBlob} will quickly return preloaded file path.\n */\n preloadBlob(blobIds: PFrameBlobId[]): Promise<void>;\n\n /** Returns raw blob data given the blob id from {@link DataInfo}. */\n resolveBlobContent(blobId: PFrameBlobId): Promise<Uint8Array>;\n\n /**\n * Parquet HTTP(S) server connection settings, {@link HttpHelpers.createHttpServer}\n * When not provided, parquet BlobIds would be treated as local file paths.\n */\n parquetServer?: HttpServerInfo;\n}\n\n/**\n * Structural type information for a single PColumn needed by the data side:\n * the axis value types (in canonical order) and the column value type. Mirrors\n * the on-disk `typeSpec` shape (`{ axes, column }`).\n */\nexport type PColumnValueTypeSpec = {\n readonly axes: AxisValueType[];\n readonly column: ColumnValueType;\n};\n\n/**\n * Union type representing all possible data storage formats for PColumn data.\n * The specific format used depends on data size, access patterns, and performance requirements.\n *\n * @template Blob - Type parameter representing the storage reference type (could be ResourceInfo, PFrameBlobId, etc.)\n */\nexport type DataInfo<Blob> =\n | JsonDataInfo\n | JsonPartitionedDataInfo<Blob>\n | BinaryPartitionedDataInfo<Blob>\n | ParquetPartitionedDataInfo<ParquetChunk<Blob>>;\n\n/**\n * Self-contained data info: a PColumn data storage format with an embedded\n * {@link PColumnValueTypeSpec}, so the data layer can interpret the values\n * without a separate spec. This is the on-disk `.datainfo` shape and the\n * payload accepted by {@link PFrameFactoryAPIV6.addColumns}.\n *\n * Declared independently of {@link DataInfo} (not as an intersection) so the\n * legacy v1 type can be removed without affecting this one.\n *\n * @template Blob - Type parameter representing the storage reference type (could be ResourceInfo, PFrameBlobId, etc.)\n */\nexport type DataInfoV2<Blob> = (\n | JsonDataInfo\n | JsonPartitionedDataInfo<Blob>\n | BinaryPartitionedDataInfo<Blob>\n | ParquetPartitionedDataInfo<ParquetChunk<Blob>>\n) & {\n readonly typeSpec: PColumnValueTypeSpec;\n};\n\n/**\n * Structural type information needed by the data side: axis value\n * types and column value types, in their canonical order. Mirrors\n * the bridge-side `TypeSpec`.\n */\nexport interface ValueTypeSpec {\n readonly axes: AxisValueType[];\n readonly columns: ColumnValueType[];\n}\n\n/** Single column entry for {@link PFrameFactoryAPIV5.addColumns}. */\nexport interface AddColumnEntry {\n /** Unique column identifier within the PFrame. */\n readonly id: PObjectId;\n /** Structural type info (axes / column value types). */\n readonly typeSpec: ValueTypeSpec;\n /** Data info for the column. */\n readonly data: DataInfo<PFrameBlobId>;\n}\n\n/**\n * Single column entry for {@link PFrameFactoryAPIV6.addColumns}. The structural\n * type info is carried inside {@link DataInfoV2.typeSpec} rather than as a\n * separate field, so `data` is self-describing.\n */\nexport interface AddColumnEntryV2 {\n /** Unique column identifier within the PFrame. */\n readonly id: PObjectId;\n /** Self-contained data info (carries its own `typeSpec`). */\n readonly data: DataInfoV2<PFrameBlobId>;\n}\n\n/** API for populating a PFrame with columns and a data source. */\nexport interface PFrameFactoryAPIV5 extends Disposable {\n /** Associates data source with this PFrame. */\n setDataSource(dataSource: PFrameDataSourceV2): void;\n\n /**\n * Registers all PColumns at once: specs are recorded and data info\n * is attached atomically. For parquet data info, schema resolution\n * via network is performed during this call.\n */\n addColumns(\n columns: AddColumnEntry[],\n options?: {\n signal?: AbortSignal;\n },\n ): Promise<void>;\n\n /** Releases all the data previously added to PFrame using methods above,\n * any interactions with disposed PFrame will result in exception */\n dispose(): void;\n}\n\n/**\n * API for populating a PFrame with columns and a data source. Unlike\n * {@link PFrameFactoryAPIV5}, each column's structural type info is embedded in\n * its self-contained {@link AddColumnEntryV2.data} instead of a separate field.\n */\nexport interface PFrameFactoryAPIV6 extends Disposable {\n /** Associates data source with this PFrame. */\n setDataSource(dataSource: PFrameDataSourceV2): void;\n\n /**\n * Registers all PColumns at once: data info (self-contained, carrying its own\n * `typeSpec`) is attached atomically. For parquet data info, schema resolution\n * via network is performed during this call.\n */\n addColumns(\n columns: AddColumnEntryV2[],\n options?: {\n signal?: AbortSignal;\n },\n ): Promise<void>;\n\n /** Releases all the data previously added to PFrame using methods above,\n * any interactions with disposed PFrame will result in exception */\n dispose(): void;\n}\n"],"mappings":";;AAcA,MAAa,gBAAgB;;AAG7B,MAAa,oBAAoB"}
1
+ {"version":3,"file":"api_factory.cjs","names":[],"sources":["../../../src/pframe/internal_api/api_factory.ts"],"sourcesContent":["import type {\n AxisValueType,\n BinaryPartitionedDataInfo,\n Branded,\n ColumnValueType,\n JsonDataInfo,\n JsonPartitionedDataInfo,\n ParquetChunk,\n ParquetPartitionedDataInfo,\n PObjectId,\n} from \"@milaboratories/pl-model-common\";\nimport type { HttpServerInfo } from \"./http_helpers\";\n\n/** PColumn spec file extension */\nexport const SpecExtension = \".spec\" as const;\n\n/** PColumn data info file extension */\nexport const DataInfoExtension = \".datainfo\" as const;\n\n/** Abstract identifier of a data blob that can be requested from the storage backend */\nexport type PFrameBlobId = Branded<string, \"PFrameInternal.PFrameBlobId\">;\n\n/** Path of the file containing requested data (blob). This path is returned by\n * {@link BlobPathResolver} as soon as blob materialized in the file system. */\nexport type FilePath = string;\n\n/** Data source allows PFrame to retrieve the data blobs for columns with assigned data info. */\nexport interface PFrameDataSourceV2 {\n /**\n * PFrame may notify storage backend about its plans to use particular blobs in the future.\n * Storage backend will do its best to preload specified blob so the subsequent\n * {@link resolveBlob} will quickly return preloaded file path.\n */\n preloadBlob(blobIds: PFrameBlobId[]): Promise<void>;\n\n /** Returns raw blob data given the blob id from {@link DataInfo}. */\n resolveBlobContent(blobId: PFrameBlobId): Promise<Uint8Array>;\n\n /**\n * Parquet HTTP(S) server connection settings, {@link HttpHelpers.createHttpServer}\n * When not provided, parquet BlobIds would be treated as local file paths.\n */\n parquetServer?: HttpServerInfo;\n}\n\n/**\n * Structural type information for a single PColumn needed by the data side:\n * the axis value types (in canonical order) and the column value type. Mirrors\n * the on-disk `typeSpec` shape (`{ axes, column }`).\n */\nexport type PColumnValueTypeSpec = {\n readonly axes: AxisValueType[];\n readonly column: ColumnValueType;\n};\n\n/**\n * Union type representing all possible data storage formats for PColumn data.\n * The specific format used depends on data size, access patterns, and performance requirements.\n *\n * @template Blob - Type parameter representing the storage reference type (could be ResourceInfo, PFrameBlobId, etc.)\n */\nexport type DataInfo<Blob> = (\n | JsonDataInfo\n | JsonPartitionedDataInfo<Blob>\n | BinaryPartitionedDataInfo<Blob>\n | ParquetPartitionedDataInfo<ParquetChunk<Blob>>\n) & {\n /**\n * Self-contained structural type info. Present in data info produced by the\n * new converter, absent in data info produced by the old one.\n */\n readonly typeSpec?: PColumnValueTypeSpec;\n};\n\n/**\n * Self-contained data info: {@link DataInfo} with a required\n * {@link PColumnValueTypeSpec}, so the data layer can interpret the values\n * without a separate spec. This is the on-disk `.datainfo` shape and the\n * payload accepted by {@link PFrameFactoryAPIV6.addColumns}.\n *\n * @template Blob - Type parameter representing the storage reference type (could be ResourceInfo, PFrameBlobId, etc.)\n */\nexport type DataInfoV2<Blob> = DataInfo<Blob> & {\n readonly typeSpec: PColumnValueTypeSpec;\n};\n\n/**\n * Single column entry for {@link PFrameFactoryAPIV6.addColumns}. The structural\n * type info is carried inside {@link DataInfoV2.typeSpec} rather than as a\n * separate field, so `data` is self-describing.\n */\nexport interface AddColumnEntryV2 {\n /** Unique column identifier within the PFrame. */\n readonly id: PObjectId;\n /** Self-contained data info (carries its own `typeSpec`). */\n readonly data: DataInfoV2<PFrameBlobId>;\n}\n\n/**\n * API for populating a PFrame with columns and a data source. Each column's\n * structural type info is embedded in its self-contained\n * {@link AddColumnEntryV2.data} instead of a separate field.\n */\nexport interface PFrameFactoryAPIV6 extends Disposable {\n /** Associates data source with this PFrame. */\n setDataSource(dataSource: PFrameDataSourceV2): void;\n\n /**\n * Registers all PColumns at once: data info (self-contained, carrying its own\n * `typeSpec`) is attached atomically. For parquet data info, schema resolution\n * via network is performed during this call.\n */\n addColumns(\n columns: AddColumnEntryV2[],\n options?: {\n signal?: AbortSignal;\n },\n ): Promise<void>;\n\n /** Releases all the data previously added to PFrame using methods above,\n * any interactions with disposed PFrame will result in exception */\n dispose(): void;\n}\n"],"mappings":";;AAcA,MAAa,gBAAgB;;AAG7B,MAAa,oBAAoB"}
@@ -42,39 +42,24 @@ type PColumnValueTypeSpec = {
42
42
  *
43
43
  * @template Blob - Type parameter representing the storage reference type (could be ResourceInfo, PFrameBlobId, etc.)
44
44
  */
45
- type DataInfo<Blob> = JsonDataInfo | JsonPartitionedDataInfo<Blob> | BinaryPartitionedDataInfo<Blob> | ParquetPartitionedDataInfo<ParquetChunk<Blob>>;
45
+ type DataInfo<Blob> = (JsonDataInfo | JsonPartitionedDataInfo<Blob> | BinaryPartitionedDataInfo<Blob> | ParquetPartitionedDataInfo<ParquetChunk<Blob>>) & {
46
+ /**
47
+ * Self-contained structural type info. Present in data info produced by the
48
+ * new converter, absent in data info produced by the old one.
49
+ */
50
+ readonly typeSpec?: PColumnValueTypeSpec;
51
+ };
46
52
  /**
47
- * Self-contained data info: a PColumn data storage format with an embedded
53
+ * Self-contained data info: {@link DataInfo} with a required
48
54
  * {@link PColumnValueTypeSpec}, so the data layer can interpret the values
49
55
  * without a separate spec. This is the on-disk `.datainfo` shape and the
50
56
  * payload accepted by {@link PFrameFactoryAPIV6.addColumns}.
51
57
  *
52
- * Declared independently of {@link DataInfo} (not as an intersection) so the
53
- * legacy v1 type can be removed without affecting this one.
54
- *
55
58
  * @template Blob - Type parameter representing the storage reference type (could be ResourceInfo, PFrameBlobId, etc.)
56
59
  */
57
- type DataInfoV2<Blob> = (JsonDataInfo | JsonPartitionedDataInfo<Blob> | BinaryPartitionedDataInfo<Blob> | ParquetPartitionedDataInfo<ParquetChunk<Blob>>) & {
60
+ type DataInfoV2<Blob> = DataInfo<Blob> & {
58
61
  readonly typeSpec: PColumnValueTypeSpec;
59
62
  };
60
- /**
61
- * Structural type information needed by the data side: axis value
62
- * types and column value types, in their canonical order. Mirrors
63
- * the bridge-side `TypeSpec`.
64
- */
65
- interface ValueTypeSpec {
66
- readonly axes: AxisValueType[];
67
- readonly columns: ColumnValueType[];
68
- }
69
- /** Single column entry for {@link PFrameFactoryAPIV5.addColumns}. */
70
- interface AddColumnEntry {
71
- /** Unique column identifier within the PFrame. */
72
- readonly id: PObjectId;
73
- /** Structural type info (axes / column value types). */
74
- readonly typeSpec: ValueTypeSpec;
75
- /** Data info for the column. */
76
- readonly data: DataInfo<PFrameBlobId>;
77
- }
78
63
  /**
79
64
  * Single column entry for {@link PFrameFactoryAPIV6.addColumns}. The structural
80
65
  * type info is carried inside {@link DataInfoV2.typeSpec} rather than as a
@@ -86,26 +71,10 @@ interface AddColumnEntryV2 {
86
71
  /** Self-contained data info (carries its own `typeSpec`). */
87
72
  readonly data: DataInfoV2<PFrameBlobId>;
88
73
  }
89
- /** API for populating a PFrame with columns and a data source. */
90
- interface PFrameFactoryAPIV5 extends Disposable {
91
- /** Associates data source with this PFrame. */
92
- setDataSource(dataSource: PFrameDataSourceV2): void;
93
- /**
94
- * Registers all PColumns at once: specs are recorded and data info
95
- * is attached atomically. For parquet data info, schema resolution
96
- * via network is performed during this call.
97
- */
98
- addColumns(columns: AddColumnEntry[], options?: {
99
- signal?: AbortSignal;
100
- }): Promise<void>;
101
- /** Releases all the data previously added to PFrame using methods above,
102
- * any interactions with disposed PFrame will result in exception */
103
- dispose(): void;
104
- }
105
74
  /**
106
- * API for populating a PFrame with columns and a data source. Unlike
107
- * {@link PFrameFactoryAPIV5}, each column's structural type info is embedded in
108
- * its self-contained {@link AddColumnEntryV2.data} instead of a separate field.
75
+ * API for populating a PFrame with columns and a data source. Each column's
76
+ * structural type info is embedded in its self-contained
77
+ * {@link AddColumnEntryV2.data} instead of a separate field.
109
78
  */
110
79
  interface PFrameFactoryAPIV6 extends Disposable {
111
80
  /** Associates data source with this PFrame. */
@@ -123,5 +92,5 @@ interface PFrameFactoryAPIV6 extends Disposable {
123
92
  dispose(): void;
124
93
  }
125
94
  //#endregion
126
- export { AddColumnEntry, AddColumnEntryV2, DataInfo, DataInfoExtension, DataInfoV2, FilePath, PColumnValueTypeSpec, PFrameBlobId, PFrameDataSourceV2, PFrameFactoryAPIV5, PFrameFactoryAPIV6, SpecExtension, ValueTypeSpec };
95
+ export { AddColumnEntryV2, DataInfo, DataInfoExtension, DataInfoV2, FilePath, PColumnValueTypeSpec, PFrameBlobId, PFrameDataSourceV2, PFrameFactoryAPIV6, SpecExtension };
127
96
  //# sourceMappingURL=api_factory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api_factory.d.ts","names":[],"sources":["../../../src/pframe/internal_api/api_factory.ts"],"mappings":";;;;;cAca,aAAA;AAAb;AAAA,cAGa,iBAAA;;KAGD,YAAA,GAAe,OAAA;;AAH3B;KAOY,QAAA;;UAGK,kBAAA;EAVoC;AAGrD;;;;EAaE,WAAA,CAAY,OAAA,EAAS,YAAA,KAAiB,OAAA;EAT5B;EAYV,kBAAA,CAAmB,MAAA,EAAQ,YAAA,GAAe,OAAA,CAAQ,UAAA;;;;AATpD;EAeE,aAAA,GAAgB,cAAA;AAAA;;;;;;KAQN,oBAAA;EAAA,SACD,IAAA,EAAM,aAAA;EAAA,SACN,MAAA,EAAQ,eAAA;AAAA;;;;;;;KASP,QAAA,SACR,YAAA,GACA,uBAAA,CAAwB,IAAA,IACxB,yBAAA,CAA0B,IAAA,IAC1B,0BAAA,CAA2B,YAAA,CAAa,IAAA;;;;;;AAf5C;;;;;;KA4BY,UAAA,UACR,YAAA,GACA,uBAAA,CAAwB,IAAA,IACxB,yBAAA,CAA0B,IAAA,IAC1B,0BAAA,CAA2B,YAAA,CAAa,IAAA;EAAA,SAEjC,QAAA,EAAU,oBAAA;AAAA;;AAvBrB;;;;UA+BiB,aAAA;EAAA,SACN,IAAA,EAAM,aAAA;EAAA,SACN,OAAA,EAAS,eAAA;AAAA;;UAIH,cAAA;EAjCb;EAAA,SAmCO,EAAA,EAAI,SAAA;EAnCe;EAAA,SAqCnB,QAAA,EAAU,aAAA;EAxCjB;EAAA,SA0CO,IAAA,EAAM,QAAA,CAAS,YAAA;AAAA;;;;;;UAQT,gBAAA;EA/C+B;EAAA,SAiDrC,EAAA,EAAI,SAAA;EApCO;EAAA,SAsCX,IAAA,EAAM,UAAA,CAAW,YAAA;AAAA;;UAIX,kBAAA,SAA2B,UAAA;EAvCd;EAyC5B,aAAA,CAAc,UAAA,EAAY,kBAAA;EAxCgB;;;;;EA+C1C,UAAA,CACE,OAAA,EAAS,cAAA,IACT,OAAA;IACE,MAAA,GAAS,WAAA;EAAA,IAEV,OAAA;EAtDD;;EA0DF,OAAA;AAAA;;;;;;UAQe,kBAAA,SAA2B,UAAA;EA9DH;EAgEvC,aAAA,CAAc,UAAA,EAAY,kBAAA;EAxDE;;;;;EA+D5B,UAAA,CACE,OAAA,EAAS,gBAAA,IACT,OAAA;IACE,MAAA,GAAS,WAAA;EAAA,IAEV,OAAA;EAlE8B;AAInC;EAkEE,OAAA;AAAA"}
1
+ {"version":3,"file":"api_factory.d.ts","names":[],"sources":["../../../src/pframe/internal_api/api_factory.ts"],"mappings":";;;;;cAca,aAAA;AAAb;AAAA,cAGa,iBAAA;;KAGD,YAAA,GAAe,OAAA;;AAH3B;KAOY,QAAA;;UAGK,kBAAA;EAVoC;AAGrD;;;;EAaE,WAAA,CAAY,OAAA,EAAS,YAAA,KAAiB,OAAA;EAT5B;EAYV,kBAAA,CAAmB,MAAA,EAAQ,YAAA,GAAe,OAAA,CAAQ,UAAA;;;;AATpD;EAeE,aAAA,GAAgB,cAAA;AAAA;;;;;;KAQN,oBAAA;EAAA,SACD,IAAA,EAAM,aAAA;EAAA,SACN,MAAA,EAAQ,eAAA;AAAA;;;;;;;KASP,QAAA,UACR,YAAA,GACA,uBAAA,CAAwB,IAAA,IACxB,yBAAA,CAA0B,IAAA,IAC1B,0BAAA,CAA2B,YAAA,CAAa,IAAA;EA7BQ;;;;EAAA,SAmCzC,QAAA,GAAW,oBAAA;AAAA;;;;;;;;;KAWV,UAAA,SAAmB,QAAA,CAAS,IAAA;EAAA,SAC7B,QAAA,EAAU,oBAAA;AAAA;;;;;;UAQJ,gBAAA;EA1B2B;EAAA,SA4BjC,EAAA,EAAI,SAAA;EA5BX;EAAA,SA8BO,IAAA,EAAM,UAAA,CAAW,YAAA;AAAA;;;;;;UAQX,kBAAA,SAA2B,UAAA;EAvCd;EAyC5B,aAAA,CAAc,UAAA,EAAY,kBAAA;EAxCG;;;;;EA+C7B,UAAA,CACE,OAAA,EAAS,gBAAA,IACT,OAAA;IACE,MAAA,GAAS,WAAA;EAAA,IAEV,OAAA;EAnCiB;;EAuCpB,OAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"api_factory.js","names":[],"sources":["../../../src/pframe/internal_api/api_factory.ts"],"sourcesContent":["import type {\n AxisValueType,\n BinaryPartitionedDataInfo,\n Branded,\n ColumnValueType,\n JsonDataInfo,\n JsonPartitionedDataInfo,\n ParquetChunk,\n ParquetPartitionedDataInfo,\n PObjectId,\n} from \"@milaboratories/pl-model-common\";\nimport type { HttpServerInfo } from \"./http_helpers\";\n\n/** PColumn spec file extension */\nexport const SpecExtension = \".spec\" as const;\n\n/** PColumn data info file extension */\nexport const DataInfoExtension = \".datainfo\" as const;\n\n/** Abstract identifier of a data blob that can be requested from the storage backend */\nexport type PFrameBlobId = Branded<string, \"PFrameInternal.PFrameBlobId\">;\n\n/** Path of the file containing requested data (blob). This path is returned by\n * {@link BlobPathResolver} as soon as blob materialized in the file system. */\nexport type FilePath = string;\n\n/** Data source allows PFrame to retrieve the data blobs for columns with assigned data info. */\nexport interface PFrameDataSourceV2 {\n /**\n * PFrame may notify storage backend about its plans to use particular blobs in the future.\n * Storage backend will do its best to preload specified blob so the subsequent\n * {@link resolveBlob} will quickly return preloaded file path.\n */\n preloadBlob(blobIds: PFrameBlobId[]): Promise<void>;\n\n /** Returns raw blob data given the blob id from {@link DataInfo}. */\n resolveBlobContent(blobId: PFrameBlobId): Promise<Uint8Array>;\n\n /**\n * Parquet HTTP(S) server connection settings, {@link HttpHelpers.createHttpServer}\n * When not provided, parquet BlobIds would be treated as local file paths.\n */\n parquetServer?: HttpServerInfo;\n}\n\n/**\n * Structural type information for a single PColumn needed by the data side:\n * the axis value types (in canonical order) and the column value type. Mirrors\n * the on-disk `typeSpec` shape (`{ axes, column }`).\n */\nexport type PColumnValueTypeSpec = {\n readonly axes: AxisValueType[];\n readonly column: ColumnValueType;\n};\n\n/**\n * Union type representing all possible data storage formats for PColumn data.\n * The specific format used depends on data size, access patterns, and performance requirements.\n *\n * @template Blob - Type parameter representing the storage reference type (could be ResourceInfo, PFrameBlobId, etc.)\n */\nexport type DataInfo<Blob> =\n | JsonDataInfo\n | JsonPartitionedDataInfo<Blob>\n | BinaryPartitionedDataInfo<Blob>\n | ParquetPartitionedDataInfo<ParquetChunk<Blob>>;\n\n/**\n * Self-contained data info: a PColumn data storage format with an embedded\n * {@link PColumnValueTypeSpec}, so the data layer can interpret the values\n * without a separate spec. This is the on-disk `.datainfo` shape and the\n * payload accepted by {@link PFrameFactoryAPIV6.addColumns}.\n *\n * Declared independently of {@link DataInfo} (not as an intersection) so the\n * legacy v1 type can be removed without affecting this one.\n *\n * @template Blob - Type parameter representing the storage reference type (could be ResourceInfo, PFrameBlobId, etc.)\n */\nexport type DataInfoV2<Blob> = (\n | JsonDataInfo\n | JsonPartitionedDataInfo<Blob>\n | BinaryPartitionedDataInfo<Blob>\n | ParquetPartitionedDataInfo<ParquetChunk<Blob>>\n) & {\n readonly typeSpec: PColumnValueTypeSpec;\n};\n\n/**\n * Structural type information needed by the data side: axis value\n * types and column value types, in their canonical order. Mirrors\n * the bridge-side `TypeSpec`.\n */\nexport interface ValueTypeSpec {\n readonly axes: AxisValueType[];\n readonly columns: ColumnValueType[];\n}\n\n/** Single column entry for {@link PFrameFactoryAPIV5.addColumns}. */\nexport interface AddColumnEntry {\n /** Unique column identifier within the PFrame. */\n readonly id: PObjectId;\n /** Structural type info (axes / column value types). */\n readonly typeSpec: ValueTypeSpec;\n /** Data info for the column. */\n readonly data: DataInfo<PFrameBlobId>;\n}\n\n/**\n * Single column entry for {@link PFrameFactoryAPIV6.addColumns}. The structural\n * type info is carried inside {@link DataInfoV2.typeSpec} rather than as a\n * separate field, so `data` is self-describing.\n */\nexport interface AddColumnEntryV2 {\n /** Unique column identifier within the PFrame. */\n readonly id: PObjectId;\n /** Self-contained data info (carries its own `typeSpec`). */\n readonly data: DataInfoV2<PFrameBlobId>;\n}\n\n/** API for populating a PFrame with columns and a data source. */\nexport interface PFrameFactoryAPIV5 extends Disposable {\n /** Associates data source with this PFrame. */\n setDataSource(dataSource: PFrameDataSourceV2): void;\n\n /**\n * Registers all PColumns at once: specs are recorded and data info\n * is attached atomically. For parquet data info, schema resolution\n * via network is performed during this call.\n */\n addColumns(\n columns: AddColumnEntry[],\n options?: {\n signal?: AbortSignal;\n },\n ): Promise<void>;\n\n /** Releases all the data previously added to PFrame using methods above,\n * any interactions with disposed PFrame will result in exception */\n dispose(): void;\n}\n\n/**\n * API for populating a PFrame with columns and a data source. Unlike\n * {@link PFrameFactoryAPIV5}, each column's structural type info is embedded in\n * its self-contained {@link AddColumnEntryV2.data} instead of a separate field.\n */\nexport interface PFrameFactoryAPIV6 extends Disposable {\n /** Associates data source with this PFrame. */\n setDataSource(dataSource: PFrameDataSourceV2): void;\n\n /**\n * Registers all PColumns at once: data info (self-contained, carrying its own\n * `typeSpec`) is attached atomically. For parquet data info, schema resolution\n * via network is performed during this call.\n */\n addColumns(\n columns: AddColumnEntryV2[],\n options?: {\n signal?: AbortSignal;\n },\n ): Promise<void>;\n\n /** Releases all the data previously added to PFrame using methods above,\n * any interactions with disposed PFrame will result in exception */\n dispose(): void;\n}\n"],"mappings":";;AAcA,MAAa,gBAAgB;;AAG7B,MAAa,oBAAoB"}
1
+ {"version":3,"file":"api_factory.js","names":[],"sources":["../../../src/pframe/internal_api/api_factory.ts"],"sourcesContent":["import type {\n AxisValueType,\n BinaryPartitionedDataInfo,\n Branded,\n ColumnValueType,\n JsonDataInfo,\n JsonPartitionedDataInfo,\n ParquetChunk,\n ParquetPartitionedDataInfo,\n PObjectId,\n} from \"@milaboratories/pl-model-common\";\nimport type { HttpServerInfo } from \"./http_helpers\";\n\n/** PColumn spec file extension */\nexport const SpecExtension = \".spec\" as const;\n\n/** PColumn data info file extension */\nexport const DataInfoExtension = \".datainfo\" as const;\n\n/** Abstract identifier of a data blob that can be requested from the storage backend */\nexport type PFrameBlobId = Branded<string, \"PFrameInternal.PFrameBlobId\">;\n\n/** Path of the file containing requested data (blob). This path is returned by\n * {@link BlobPathResolver} as soon as blob materialized in the file system. */\nexport type FilePath = string;\n\n/** Data source allows PFrame to retrieve the data blobs for columns with assigned data info. */\nexport interface PFrameDataSourceV2 {\n /**\n * PFrame may notify storage backend about its plans to use particular blobs in the future.\n * Storage backend will do its best to preload specified blob so the subsequent\n * {@link resolveBlob} will quickly return preloaded file path.\n */\n preloadBlob(blobIds: PFrameBlobId[]): Promise<void>;\n\n /** Returns raw blob data given the blob id from {@link DataInfo}. */\n resolveBlobContent(blobId: PFrameBlobId): Promise<Uint8Array>;\n\n /**\n * Parquet HTTP(S) server connection settings, {@link HttpHelpers.createHttpServer}\n * When not provided, parquet BlobIds would be treated as local file paths.\n */\n parquetServer?: HttpServerInfo;\n}\n\n/**\n * Structural type information for a single PColumn needed by the data side:\n * the axis value types (in canonical order) and the column value type. Mirrors\n * the on-disk `typeSpec` shape (`{ axes, column }`).\n */\nexport type PColumnValueTypeSpec = {\n readonly axes: AxisValueType[];\n readonly column: ColumnValueType;\n};\n\n/**\n * Union type representing all possible data storage formats for PColumn data.\n * The specific format used depends on data size, access patterns, and performance requirements.\n *\n * @template Blob - Type parameter representing the storage reference type (could be ResourceInfo, PFrameBlobId, etc.)\n */\nexport type DataInfo<Blob> = (\n | JsonDataInfo\n | JsonPartitionedDataInfo<Blob>\n | BinaryPartitionedDataInfo<Blob>\n | ParquetPartitionedDataInfo<ParquetChunk<Blob>>\n) & {\n /**\n * Self-contained structural type info. Present in data info produced by the\n * new converter, absent in data info produced by the old one.\n */\n readonly typeSpec?: PColumnValueTypeSpec;\n};\n\n/**\n * Self-contained data info: {@link DataInfo} with a required\n * {@link PColumnValueTypeSpec}, so the data layer can interpret the values\n * without a separate spec. This is the on-disk `.datainfo` shape and the\n * payload accepted by {@link PFrameFactoryAPIV6.addColumns}.\n *\n * @template Blob - Type parameter representing the storage reference type (could be ResourceInfo, PFrameBlobId, etc.)\n */\nexport type DataInfoV2<Blob> = DataInfo<Blob> & {\n readonly typeSpec: PColumnValueTypeSpec;\n};\n\n/**\n * Single column entry for {@link PFrameFactoryAPIV6.addColumns}. The structural\n * type info is carried inside {@link DataInfoV2.typeSpec} rather than as a\n * separate field, so `data` is self-describing.\n */\nexport interface AddColumnEntryV2 {\n /** Unique column identifier within the PFrame. */\n readonly id: PObjectId;\n /** Self-contained data info (carries its own `typeSpec`). */\n readonly data: DataInfoV2<PFrameBlobId>;\n}\n\n/**\n * API for populating a PFrame with columns and a data source. Each column's\n * structural type info is embedded in its self-contained\n * {@link AddColumnEntryV2.data} instead of a separate field.\n */\nexport interface PFrameFactoryAPIV6 extends Disposable {\n /** Associates data source with this PFrame. */\n setDataSource(dataSource: PFrameDataSourceV2): void;\n\n /**\n * Registers all PColumns at once: data info (self-contained, carrying its own\n * `typeSpec`) is attached atomically. For parquet data info, schema resolution\n * via network is performed during this call.\n */\n addColumns(\n columns: AddColumnEntryV2[],\n options?: {\n signal?: AbortSignal;\n },\n ): Promise<void>;\n\n /** Releases all the data previously added to PFrame using methods above,\n * any interactions with disposed PFrame will result in exception */\n dispose(): void;\n}\n"],"mappings":";;AAcA,MAAa,gBAAgB;;AAG7B,MAAa,oBAAoB"}
@@ -2,18 +2,18 @@ import { PTableV11 } from "./table.js";
2
2
  import { AxisQualification, ColumnAxesWithQualifications, ConstantAxisFilter, Logger, PFrameId, PTableId } from "./common.js";
3
3
  import { PFrameReadAPIV14, 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
- import { AddColumnEntry, AddColumnEntryV2, DataInfo, DataInfoExtension, DataInfoV2, FilePath, PColumnValueTypeSpec, PFrameBlobId, PFrameDataSourceV2, PFrameFactoryAPIV5, PFrameFactoryAPIV6, SpecExtension, ValueTypeSpec } from "./api_factory.js";
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
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 { PFrameFactoryV7, PFrameFactoryV8, PFrameOptionsV2, PFrameV16, PFrameV17 } from "./pframe.js";
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 { AddColumnEntry, 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, PFrameFactoryAPIV5, PFrameFactoryAPIV6, PFrameFactoryV7, PFrameFactoryV8, PFrameId, PFrameOptionsV2, PFrameReadAPIV14, PFrameV16, PFrameV17, PFrameWasmAPIV2, PFrameWasmAPIV3, PFrameWasmAPIV4, PFrameWasmV2, PFrameWasmV3, PTableId, PTableV11, ParquetExtension, ParquetFileName, PemCertificate, RequestHandlerOptions, SingleAxisSelector$1 as SingleAxisSelector, SlicedColumnJoinEntry, SpecExtension, StringMatcher, UniqueValuesRequestV2, ValueTypeSpec };
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 };
17
17
  }
18
18
  //#endregion
19
19
  export { index_d_exports };
@@ -1,18 +1,13 @@
1
1
  import { Logger, PFrameId } from "./common.js";
2
2
  import { PFrameReadAPIV14 } from "./api_read.js";
3
- import { PFrameFactoryAPIV5, PFrameFactoryAPIV6 } from "./api_factory.js";
3
+ import { PFrameFactoryAPIV6 } from "./api_factory.js";
4
4
 
5
5
  //#region src/pframe/internal_api/pframe.d.ts
6
6
  /**
7
7
  * Full PFrame surface — factory operations plus data-side reads. Exposes
8
- * {@link PFrameReadAPIV14}, whose tables' `export` takes a column-index →
9
- * header map.
10
- */
11
- interface PFrameV16 extends PFrameFactoryAPIV5, PFrameReadAPIV14 {}
12
- /**
13
- * Full PFrame surface — factory operations plus data-side reads. Like
14
- * {@link PFrameV16} but with self-contained {@link PFrameFactoryAPIV6}
15
- * (column `typeSpec` embedded in `data`).
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.
16
11
  */
17
12
  interface PFrameV17 extends PFrameFactoryAPIV6, PFrameReadAPIV14 {}
18
13
  type PFrameOptionsV2 = {
@@ -20,26 +15,6 @@ type PFrameOptionsV2 = {
20
15
  spillPath: string; /** Logger instance, no logging is performed when not provided */
21
16
  logger?: Logger;
22
17
  };
23
- /**
24
- * PFrame management functions exposed by the PFrame module. Creates
25
- * {@link PFrameV16} instances, whose tables' `export` takes a
26
- * column-index → header map.
27
- */
28
- interface PFrameFactoryV7 {
29
- /**
30
- * Create a new PFrame instance.
31
- * @warning Use concurrency limiting to avoid OOM crashes when multiple instances are simultaneously in use.
32
- */
33
- createPFrame(options: PFrameOptionsV2): PFrameV16;
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
18
  /**
44
19
  * PFrame management functions exposed by the PFrame module. Creates
45
20
  * {@link PFrameV17} instances (self-contained column data info).
@@ -60,5 +35,5 @@ interface PFrameFactoryV8 {
60
35
  pprofDump: () => Promise<Uint8Array>;
61
36
  }
62
37
  //#endregion
63
- export { PFrameFactoryV7, PFrameFactoryV8, PFrameOptionsV2, PFrameV16, PFrameV17 };
38
+ export { PFrameFactoryV8, PFrameOptionsV2, PFrameV17 };
64
39
  //# sourceMappingURL=pframe.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pframe.d.ts","names":[],"sources":["../../../src/pframe/internal_api/pframe.ts"],"mappings":";;;;;;AAUA;;;;UAAiB,SAAA,SAAkB,kBAAA,EAAoB,gBAAA;;;;;AASvD;UAFiB,SAAA,SAAkB,kBAAA,EAAoB,gBAAA;AAAA,KAE3C,eAAA;EAEV,qCAAA,OAAA,EAAS,QAAA,EAET;EAAA,SAAA,UAES;EAAT,MAAA,GAAS,MAAA;AAAA;AAQX;;;;;AAAA,UAAiB,eAAA;EAcE;;;;EATjB,YAAA,CAAa,OAAA,EAAS,eAAA,GAAkB,SAAA;EAA3B;;;;;;;EASb,SAAA,QAAiB,OAAA,CAAQ,UAAA;AAAA;;;;;UAOV,eAAA;EAcS;;;;EATxB,YAAA,CAAa,OAAA,EAAS,eAAA,GAAkB,SAAA;EAAA;;;;;;;EASxC,SAAA,QAAiB,OAAA,CAAQ,UAAA;AAAA"}
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;;AAOX;;;UAAiB,eAAA;EAKyB;;;;EAAxC,YAAA,CAAa,OAAA,EAAS,eAAA,GAAkB,SAAA;EAAxC;;;;;;;EASA,SAAA,QAAiB,OAAA,CAAQ,UAAA;AAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milaboratories/pl-model-middle-layer",
3
- "version": "1.30.0",
3
+ "version": "1.30.1",
4
4
  "description": "Common model between middle layer and non-block UI code",
5
5
  "files": [
6
6
  "./dist/**/*",
@@ -20,15 +20,15 @@
20
20
  "es-toolkit": "^1.39.10",
21
21
  "utility-types": "^3.11.0",
22
22
  "zod": "~3.25.76",
23
- "@milaboratories/pl-model-common": "1.46.0",
24
- "@milaboratories/helpers": "1.14.2"
23
+ "@milaboratories/helpers": "1.14.2",
24
+ "@milaboratories/pl-model-common": "1.46.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/node": "~24.5.2",
28
28
  "typescript": "~5.9.3",
29
29
  "@milaboratories/build-configs": "2.0.0",
30
- "@milaboratories/ts-configs": "1.2.3",
31
- "@milaboratories/ts-builder": "1.5.0"
30
+ "@milaboratories/ts-builder": "1.5.0",
31
+ "@milaboratories/ts-configs": "1.2.3"
32
32
  },
33
33
  "scripts": {
34
34
  "build": "ts-builder build --target node",
@@ -59,52 +59,31 @@ export type PColumnValueTypeSpec = {
59
59
  *
60
60
  * @template Blob - Type parameter representing the storage reference type (could be ResourceInfo, PFrameBlobId, etc.)
61
61
  */
62
- export type DataInfo<Blob> =
62
+ export type DataInfo<Blob> = (
63
63
  | JsonDataInfo
64
64
  | JsonPartitionedDataInfo<Blob>
65
65
  | BinaryPartitionedDataInfo<Blob>
66
- | ParquetPartitionedDataInfo<ParquetChunk<Blob>>;
66
+ | ParquetPartitionedDataInfo<ParquetChunk<Blob>>
67
+ ) & {
68
+ /**
69
+ * Self-contained structural type info. Present in data info produced by the
70
+ * new converter, absent in data info produced by the old one.
71
+ */
72
+ readonly typeSpec?: PColumnValueTypeSpec;
73
+ };
67
74
 
68
75
  /**
69
- * Self-contained data info: a PColumn data storage format with an embedded
76
+ * Self-contained data info: {@link DataInfo} with a required
70
77
  * {@link PColumnValueTypeSpec}, so the data layer can interpret the values
71
78
  * without a separate spec. This is the on-disk `.datainfo` shape and the
72
79
  * payload accepted by {@link PFrameFactoryAPIV6.addColumns}.
73
80
  *
74
- * Declared independently of {@link DataInfo} (not as an intersection) so the
75
- * legacy v1 type can be removed without affecting this one.
76
- *
77
81
  * @template Blob - Type parameter representing the storage reference type (could be ResourceInfo, PFrameBlobId, etc.)
78
82
  */
79
- export type DataInfoV2<Blob> = (
80
- | JsonDataInfo
81
- | JsonPartitionedDataInfo<Blob>
82
- | BinaryPartitionedDataInfo<Blob>
83
- | ParquetPartitionedDataInfo<ParquetChunk<Blob>>
84
- ) & {
83
+ export type DataInfoV2<Blob> = DataInfo<Blob> & {
85
84
  readonly typeSpec: PColumnValueTypeSpec;
86
85
  };
87
86
 
88
- /**
89
- * Structural type information needed by the data side: axis value
90
- * types and column value types, in their canonical order. Mirrors
91
- * the bridge-side `TypeSpec`.
92
- */
93
- export interface ValueTypeSpec {
94
- readonly axes: AxisValueType[];
95
- readonly columns: ColumnValueType[];
96
- }
97
-
98
- /** Single column entry for {@link PFrameFactoryAPIV5.addColumns}. */
99
- export interface AddColumnEntry {
100
- /** Unique column identifier within the PFrame. */
101
- readonly id: PObjectId;
102
- /** Structural type info (axes / column value types). */
103
- readonly typeSpec: ValueTypeSpec;
104
- /** Data info for the column. */
105
- readonly data: DataInfo<PFrameBlobId>;
106
- }
107
-
108
87
  /**
109
88
  * Single column entry for {@link PFrameFactoryAPIV6.addColumns}. The structural
110
89
  * type info is carried inside {@link DataInfoV2.typeSpec} rather than as a
@@ -117,32 +96,10 @@ export interface AddColumnEntryV2 {
117
96
  readonly data: DataInfoV2<PFrameBlobId>;
118
97
  }
119
98
 
120
- /** API for populating a PFrame with columns and a data source. */
121
- export interface PFrameFactoryAPIV5 extends Disposable {
122
- /** Associates data source with this PFrame. */
123
- setDataSource(dataSource: PFrameDataSourceV2): void;
124
-
125
- /**
126
- * Registers all PColumns at once: specs are recorded and data info
127
- * is attached atomically. For parquet data info, schema resolution
128
- * via network is performed during this call.
129
- */
130
- addColumns(
131
- columns: AddColumnEntry[],
132
- options?: {
133
- signal?: AbortSignal;
134
- },
135
- ): Promise<void>;
136
-
137
- /** Releases all the data previously added to PFrame using methods above,
138
- * any interactions with disposed PFrame will result in exception */
139
- dispose(): void;
140
- }
141
-
142
99
  /**
143
- * API for populating a PFrame with columns and a data source. Unlike
144
- * {@link PFrameFactoryAPIV5}, each column's structural type info is embedded in
145
- * its self-contained {@link AddColumnEntryV2.data} instead of a separate field.
100
+ * API for populating a PFrame with columns and a data source. Each column's
101
+ * structural type info is embedded in its self-contained
102
+ * {@link AddColumnEntryV2.data} instead of a separate field.
146
103
  */
147
104
  export interface PFrameFactoryAPIV6 extends Disposable {
148
105
  /** Associates data source with this PFrame. */
@@ -1,19 +1,13 @@
1
- import type { PFrameFactoryAPIV5, PFrameFactoryAPIV6 } from "./api_factory";
1
+ import type { PFrameFactoryAPIV6 } from "./api_factory";
2
2
  import type { PFrameReadAPIV14 } from "./api_read";
3
3
  import type { Logger } from "./common";
4
4
  import type { PFrameId } from "./common";
5
5
 
6
6
  /**
7
7
  * Full PFrame surface — factory operations plus data-side reads. Exposes
8
- * {@link PFrameReadAPIV14}, whose tables' `export` takes a column-index →
9
- * header map.
10
- */
11
- export interface PFrameV16 extends PFrameFactoryAPIV5, PFrameReadAPIV14 {}
12
-
13
- /**
14
- * Full PFrame surface — factory operations plus data-side reads. Like
15
- * {@link PFrameV16} but with self-contained {@link PFrameFactoryAPIV6}
16
- * (column `typeSpec` embedded in `data`).
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.
17
11
  */
18
12
  export interface PFrameV17 extends PFrameFactoryAPIV6, PFrameReadAPIV14 {}
19
13
 
@@ -26,28 +20,6 @@ export type PFrameOptionsV2 = {
26
20
  logger?: Logger;
27
21
  };
28
22
 
29
- /**
30
- * PFrame management functions exposed by the PFrame module. Creates
31
- * {@link PFrameV16} instances, whose tables' `export` takes a
32
- * column-index → header map.
33
- */
34
- export interface PFrameFactoryV7 {
35
- /**
36
- * Create a new PFrame instance.
37
- * @warning Use concurrency limiting to avoid OOM crashes when multiple instances are simultaneously in use.
38
- */
39
- createPFrame(options: PFrameOptionsV2): PFrameV16;
40
-
41
- /**
42
- * Dump active allocations from all PFrames instances in pprof format.
43
- * The result of this function should be saved as `profile.pb.gz`.
44
- * Use {@link https://pprof.me/} or {@link https://www.speedscope.app/}
45
- * to view the allocation flamechart.
46
- * @warning This method will always reject on Windows!
47
- */
48
- pprofDump: () => Promise<Uint8Array>;
49
- }
50
-
51
23
  /**
52
24
  * PFrame management functions exposed by the PFrame module. Creates
53
25
  * {@link PFrameV17} instances (self-contained column data info).