@milaboratories/pl-model-middle-layer 1.25.0 → 1.26.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.
@@ -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 */
@@ -17,11 +17,11 @@ declare const RemoteRegistryV1Spec: z.ZodObject<{
17
17
  type: z.ZodLiteral<"remote-v1">;
18
18
  url: z.ZodString;
19
19
  }, "strip", z.ZodTypeAny, {
20
- type: "remote-v1";
21
20
  url: string;
22
- }, {
23
21
  type: "remote-v1";
22
+ }, {
24
23
  url: string;
24
+ type: "remote-v1";
25
25
  }>;
26
26
  /** @deprecated don't use */
27
27
  type RemoteRegistryV1Spec = z.infer<typeof RemoteRegistryV1Spec>;
@@ -29,40 +29,40 @@ declare const RemoteRegistryV2Spec: z.ZodObject<{
29
29
  type: z.ZodLiteral<"remote-v2">;
30
30
  url: z.ZodString;
31
31
  }, "strip", z.ZodTypeAny, {
32
- type: "remote-v2";
33
32
  url: string;
34
- }, {
35
33
  type: "remote-v2";
34
+ }, {
36
35
  url: string;
36
+ type: "remote-v2";
37
37
  }>;
38
38
  type RemoteRegistryV2Spec = z.infer<typeof RemoteRegistryV2Spec>;
39
39
  declare const RegistrySpec: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
40
40
  type: z.ZodLiteral<"remote-v1">;
41
41
  url: z.ZodString;
42
42
  }, "strip", z.ZodTypeAny, {
43
- type: "remote-v1";
44
43
  url: string;
45
- }, {
46
44
  type: "remote-v1";
45
+ }, {
47
46
  url: string;
47
+ type: "remote-v1";
48
48
  }>, z.ZodObject<{
49
49
  type: z.ZodLiteral<"remote-v2">;
50
50
  url: z.ZodString;
51
51
  }, "strip", z.ZodTypeAny, {
52
- type: "remote-v2";
53
52
  url: string;
54
- }, {
55
53
  type: "remote-v2";
54
+ }, {
56
55
  url: string;
56
+ type: "remote-v2";
57
57
  }>, 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<{
@@ -72,54 +72,54 @@ declare const RegistryEntry: z.ZodObject<{
72
72
  type: z.ZodLiteral<"remote-v1">;
73
73
  url: z.ZodString;
74
74
  }, "strip", z.ZodTypeAny, {
75
- type: "remote-v1";
76
75
  url: string;
77
- }, {
78
76
  type: "remote-v1";
77
+ }, {
79
78
  url: string;
79
+ type: "remote-v1";
80
80
  }>, z.ZodObject<{
81
81
  type: z.ZodLiteral<"remote-v2">;
82
82
  url: z.ZodString;
83
83
  }, "strip", z.ZodTypeAny, {
84
- type: "remote-v2";
85
84
  url: string;
86
- }, {
87
85
  type: "remote-v2";
86
+ }, {
88
87
  url: string;
88
+ type: "remote-v2";
89
89
  }>, 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: "remote-v1";
103
- url: string;
102
+ path: string;
103
+ type: "local-dev";
104
104
  } | {
105
- type: "remote-v2";
106
105
  url: string;
106
+ type: "remote-v1";
107
107
  } | {
108
- type: "local-dev";
109
- path: string;
108
+ url: string;
109
+ type: "remote-v2";
110
110
  };
111
111
  title?: string | undefined;
112
112
  }, {
113
113
  id: string;
114
114
  spec: {
115
- type: "remote-v1";
116
- url: string;
115
+ path: string;
116
+ type: "local-dev";
117
117
  } | {
118
- type: "remote-v2";
119
118
  url: string;
119
+ type: "remote-v1";
120
120
  } | {
121
- type: "local-dev";
122
- path: string;
121
+ url: string;
122
+ type: "remote-v2";
123
123
  };
124
124
  title?: string | undefined;
125
125
  }>;
@@ -131,54 +131,54 @@ declare const RegistryList: z.ZodArray<z.ZodObject<{
131
131
  type: z.ZodLiteral<"remote-v1">;
132
132
  url: z.ZodString;
133
133
  }, "strip", z.ZodTypeAny, {
134
- type: "remote-v1";
135
134
  url: string;
136
- }, {
137
135
  type: "remote-v1";
136
+ }, {
138
137
  url: string;
138
+ type: "remote-v1";
139
139
  }>, z.ZodObject<{
140
140
  type: z.ZodLiteral<"remote-v2">;
141
141
  url: z.ZodString;
142
142
  }, "strip", z.ZodTypeAny, {
143
- type: "remote-v2";
144
143
  url: string;
145
- }, {
146
144
  type: "remote-v2";
145
+ }, {
147
146
  url: string;
147
+ type: "remote-v2";
148
148
  }>, 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: "remote-v1";
162
- url: string;
161
+ path: string;
162
+ type: "local-dev";
163
163
  } | {
164
- type: "remote-v2";
165
164
  url: string;
165
+ type: "remote-v1";
166
166
  } | {
167
- type: "local-dev";
168
- path: string;
167
+ url: string;
168
+ type: "remote-v2";
169
169
  };
170
170
  title?: string | undefined;
171
171
  }, {
172
172
  id: string;
173
173
  spec: {
174
- type: "remote-v1";
175
- url: string;
174
+ path: string;
175
+ type: "local-dev";
176
176
  } | {
177
- type: "remote-v2";
178
177
  url: string;
178
+ type: "remote-v1";
179
179
  } | {
180
- type: "local-dev";
181
- path: string;
180
+ url: string;
181
+ type: "remote-v2";
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 PColumnSpec,\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 * 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/** API exposed by PFrames library allowing to create and provide data for\n * PFrame objects */\nexport interface PFrameFactoryAPIV4 extends Disposable {\n /** Associates data source with this PFrame */\n setDataSource(dataSource: PFrameDataSourceV2): void;\n\n /** Adds PColumn without data info */\n addColumnSpec(columnId: PObjectId, columnSpec: PColumnSpec): void;\n\n /**\n * Assign data info to the specified PColumn.\n * For parquet data info, schema resolution via network is performed during this call.\n */\n setColumnData(\n columnId: PObjectId,\n dataInfo: DataInfo<PFrameBlobId>,\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 * 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 PColumnValueTypeSpec {\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: PColumnValueTypeSpec;\n /** Data info for the column. */\n readonly data: DataInfo<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"],"mappings":";;AAeA,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 * 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 * 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 PColumnValueTypeSpec {\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: PColumnValueTypeSpec;\n /** Data info for the column. */\n readonly data: DataInfo<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"],"mappings":";;AAcA,MAAa,gBAAgB;;AAG7B,MAAa,oBAAoB"}
@@ -1,5 +1,5 @@
1
1
  import { HttpServerInfo } from "./http_helpers.js";
2
- import { AxisValueType, BinaryPartitionedDataInfo, Branded, ColumnValueType, JsonDataInfo, JsonPartitionedDataInfo, PColumnSpec, PObjectId, ParquetChunk, ParquetPartitionedDataInfo } from "@milaboratories/pl-model-common";
2
+ import { AxisValueType, BinaryPartitionedDataInfo, Branded, ColumnValueType, JsonDataInfo, JsonPartitionedDataInfo, PObjectId, ParquetChunk, ParquetPartitionedDataInfo } from "@milaboratories/pl-model-common";
3
3
 
4
4
  //#region src/pframe/internal_api/api_factory.d.ts
5
5
  /** PColumn spec file extension */
@@ -34,24 +34,6 @@ interface PFrameDataSourceV2 {
34
34
  * @template Blob - Type parameter representing the storage reference type (could be ResourceInfo, PFrameBlobId, etc.)
35
35
  */
36
36
  type DataInfo<Blob> = JsonDataInfo | JsonPartitionedDataInfo<Blob> | BinaryPartitionedDataInfo<Blob> | ParquetPartitionedDataInfo<ParquetChunk<Blob>>;
37
- /** API exposed by PFrames library allowing to create and provide data for
38
- * PFrame objects */
39
- interface PFrameFactoryAPIV4 extends Disposable {
40
- /** Associates data source with this PFrame */
41
- setDataSource(dataSource: PFrameDataSourceV2): void;
42
- /** Adds PColumn without data info */
43
- addColumnSpec(columnId: PObjectId, columnSpec: PColumnSpec): void;
44
- /**
45
- * Assign data info to the specified PColumn.
46
- * For parquet data info, schema resolution via network is performed during this call.
47
- */
48
- setColumnData(columnId: PObjectId, dataInfo: DataInfo<PFrameBlobId>, options?: {
49
- signal?: AbortSignal;
50
- }): Promise<void>;
51
- /** Releases all the data previously added to PFrame using methods above,
52
- * any interactions with disposed PFrame will result in exception */
53
- dispose(): void;
54
- }
55
37
  /**
56
38
  * Structural type information needed by the data side: axis value
57
39
  * types and column value types, in their canonical order. Mirrors
@@ -87,5 +69,5 @@ interface PFrameFactoryAPIV5 extends Disposable {
87
69
  dispose(): void;
88
70
  }
89
71
  //#endregion
90
- export { AddColumnEntry, DataInfo, DataInfoExtension, FilePath, PColumnValueTypeSpec, PFrameBlobId, PFrameDataSourceV2, PFrameFactoryAPIV4, PFrameFactoryAPIV5, SpecExtension };
72
+ export { AddColumnEntry, DataInfo, DataInfoExtension, FilePath, PColumnValueTypeSpec, PFrameBlobId, PFrameDataSourceV2, PFrameFactoryAPIV5, SpecExtension };
91
73
  //# 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":";;;;;cAea,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;;;;;;;KASN,QAAA,SACR,YAAA,GACA,uBAAA,CAAwB,IAAA,IACxB,yBAAA,CAA0B,IAAA,IAC1B,0BAAA,CAA2B,YAAA,CAAa,IAAA;;;UAI3B,kBAAA,SAA2B,UAAA;EA1B9B;EA4BZ,aAAA,CAAc,UAAA,EAAY,kBAAA;EAzB1B;EA4BA,aAAA,CAAc,QAAA,EAAU,SAAA,EAAW,UAAA,EAAY,WAAA;EA5B5B;;;;EAkCnB,aAAA,CACE,QAAA,EAAU,SAAA,EACV,QAAA,EAAU,QAAA,CAAS,YAAA,GACnB,OAAA;IACE,MAAA,GAAS,WAAA;EAAA,IAEV,OAAA;EAzBO;;EA6BV,OAAA;AAAA;;;;;;UAQe,oBAAA;EAAA,SACN,IAAA,EAAM,aAAA;EAAA,SACN,OAAA,EAAS,eAAA;AAAA;;UAIH,cAAA;EAzCb;EAAA,SA2CO,EAAA,EAAI,SAAA;EA1CX;EAAA,SA4CO,QAAA,EAAU,oBAAA;EA3CjB;EAAA,SA6CO,IAAA,EAAM,QAAA,CAAS,YAAA;AAAA;;UAIT,kBAAA,SAA2B,UAAA;EA7C3B;EA+Cf,aAAA,CAAc,UAAA,EAAY,kBAAA;;;;;;EAO1B,UAAA,CACE,OAAA,EAAS,cAAA,IACT,OAAA;IACE,MAAA,GAAS,WAAA;EAAA,IAEV,OAAA;EA1CA;;EA8CH,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;;;;;;;KASN,QAAA,SACR,YAAA,GACA,uBAAA,CAAwB,IAAA,IACxB,yBAAA,CAA0B,IAAA,IAC1B,0BAAA,CAA2B,YAAA,CAAa,IAAA;;;;;;UAO3B,oBAAA;EAAA,SACN,IAAA,EAAM,aAAA;EAAA,SACN,OAAA,EAAS,eAAA;AAAA;;UAIH,cAAA;EA1BC;EAAA,SA4BP,EAAA,EAAI,SAAA;EA5BiB;EAAA,SA8BrB,QAAA,EAAU,oBAAA;EArBD;EAAA,SAuBT,IAAA,EAAM,QAAA,CAAS,YAAA;AAAA;;UAIT,kBAAA,SAA2B,UAAA;EAxBd;EA0B5B,aAAA,CAAc,UAAA,EAAY,kBAAA;EAzBgB;;;;;EAgC1C,UAAA,CACE,OAAA,EAAS,cAAA,IACT,OAAA;IACE,MAAA,GAAS,WAAA;EAAA,IAEV,OAAA;EAvCuB;;EA2C1B,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 PColumnSpec,\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 * 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/** API exposed by PFrames library allowing to create and provide data for\n * PFrame objects */\nexport interface PFrameFactoryAPIV4 extends Disposable {\n /** Associates data source with this PFrame */\n setDataSource(dataSource: PFrameDataSourceV2): void;\n\n /** Adds PColumn without data info */\n addColumnSpec(columnId: PObjectId, columnSpec: PColumnSpec): void;\n\n /**\n * Assign data info to the specified PColumn.\n * For parquet data info, schema resolution via network is performed during this call.\n */\n setColumnData(\n columnId: PObjectId,\n dataInfo: DataInfo<PFrameBlobId>,\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 * 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 PColumnValueTypeSpec {\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: PColumnValueTypeSpec;\n /** Data info for the column. */\n readonly data: DataInfo<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"],"mappings":";;AAeA,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 * 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 * 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 PColumnValueTypeSpec {\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: PColumnValueTypeSpec;\n /** Data info for the column. */\n readonly data: DataInfo<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"],"mappings":";;AAcA,MAAa,gBAAgB;;AAG7B,MAAa,oBAAoB"}
@@ -1,43 +1,8 @@
1
+ import { PTableV9 } from "./table.js";
1
2
  import { PTableId } from "./common.js";
2
- import { FindColumnsRequest, FindColumnsResponse } from "./find_columns.js";
3
- import { DeleteColumnFromColumnsRequest, DeleteColumnFromColumnsResponse } from "./delete_column.js";
4
- import { CreateTableRequestV4 } from "./create_table.js";
5
- import { PTableV8, PTableV9 } from "./table.js";
6
- import { DataQuery, DataQueryBooleanExpression, PColumnInfo, PColumnSpec, PObjectId, PTableColumnSpec, UniqueValuesRequest, UniqueValuesResponse } from "@milaboratories/pl-model-common";
3
+ import { DataQuery, DataQueryBooleanExpression, PObjectId, UniqueValuesResponse } from "@milaboratories/pl-model-common";
7
4
 
8
5
  //#region src/pframe/internal_api/api_read.d.ts
9
- /** Read interface exposed by PFrames library */
10
- interface PFrameReadAPIV11 {
11
- /**
12
- * Finds columns given filtering criteria on column name, annotations etc.
13
- * and a set of qualified axes specs to find only columns with compatible
14
- * axes spec.
15
- *
16
- * Only column specs are used, this method will work even for columns
17
- * with no assigned data.
18
- * */
19
- findColumns(request: FindColumnsRequest): Promise<FindColumnsResponse>;
20
- /**
21
- * Construct new axes integration with some entry removed but integration qualificaitons preserved.
22
- * Removes more then one entry in case the removal will create several disjoint sets of axes.
23
- */
24
- deleteColumn(request: DeleteColumnFromColumnsRequest): Promise<DeleteColumnFromColumnsResponse>;
25
- /** Retrieve single column spec */
26
- getColumnSpec(columnId: PObjectId): Promise<PColumnSpec | null>;
27
- /** Retrieve information about all columns currently added to the PFrame */
28
- listColumns(): Promise<PColumnInfo[]>;
29
- /** Calculates data for the table and returns an object to access it */
30
- createTable(tableId: PTableId, request: CreateTableRequestV4): PTableV8;
31
- /** Creates table from data query and returns an object to access it */
32
- createTableV2(tableId: PTableId, request: {
33
- tableSpec: PTableColumnSpec[];
34
- dataQuery: DataQuery;
35
- }): PTableV8;
36
- /** Calculate set of unique values for a specific axis for the filtered set of records */
37
- getUniqueValues(request: UniqueValuesRequest, ops?: {
38
- signal?: AbortSignal;
39
- }): Promise<UniqueValuesResponse>;
40
- }
41
6
  /**
42
7
  * V2 unique-values request. Axis and filter references are
43
8
  * pre-resolved to numeric indices; no selector ids cross the API
@@ -76,5 +41,5 @@ interface PFrameReadAPIV12 {
76
41
  }): Promise<UniqueValuesResponse>;
77
42
  }
78
43
  //#endregion
79
- export { PFrameReadAPIV11, PFrameReadAPIV12, UniqueValuesRequestV2 };
44
+ export { PFrameReadAPIV12, UniqueValuesRequestV2 };
80
45
  //# 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":";;;;;;;;;UAoBiB,gBAAA;EAAA;;;;;;;;EASf,WAAA,CAAY,OAAA,EAAS,kBAAA,GAAqB,OAAA,CAAQ,mBAAA;EAS1B;;;;EAHxB,YAAA,CAAa,OAAA,EAAS,8BAAA,GAAiC,OAAA,CAAQ,+BAAA;EAS1C;EANrB,aAAA,CAAc,QAAA,EAAU,SAAA,GAAY,OAAA,CAAQ,WAAA;EAMmB;EAH/D,WAAA,IAAe,OAAA,CAAQ,WAAA;EASR;EANf,WAAA,CAAY,OAAA,EAAS,QAAA,EAAU,OAAA,EAAS,oBAAA,GAAuB,QAAA;EAS5D;EANH,aAAA,CACE,OAAA,EAAS,QAAA,EACT,OAAA;IACE,SAAA,EAAW,gBAAA;IACX,SAAA,EAAW,SAAA;EAAA,IAEZ,QAAA;EAQO;EALV,eAAA,CACE,OAAA,EAAS,mBAAA,EACT,GAAA;IACE,MAAA,GAAS,WAAA;EAAA,IAEV,OAAA,CAAQ,oBAAA;AAAA;;;;;;;UASI,qBAAA;EAhCf;EAAA,SAkCS,QAAA,EAAU,SAAA;EAlCL;;;;EAAA,SAwCL,SAAA;EArCc;EAAA,SAwCd,OAAA,EAAS,0BAAA;EArCG;EAAA,SAwCZ,KAAA;AAAA;;;;;;;;;;;UAaM,gBAAA;EAzCf;EA2CA,WAAA,CAAY,OAAA,EAAS,QAAA,EAAU,SAAA,EAAW,SAAA,GAAY,QAAA;EA1CpD;EA6CF,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;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"}
@@ -1,6 +1,6 @@
1
- import { FindColumnsRequest, FindColumnsResponse } from "./find_columns.js";
2
1
  import { DeleteColumnFromColumnsRequest, DeleteColumnFromColumnsResponse } from "./delete_column.js";
3
2
  import { DiscoverColumnsRequestV2, DiscoverColumnsResponse } from "./discover_columns.js";
3
+ import { FindColumnsRequest, FindColumnsResponse } from "./find_columns.js";
4
4
  import { AxesId, AxesSpec, BuildQueryInput, DataQuery, DataQueryBooleanExpression, JoinEntry, PColumnInfo, 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
@@ -1,19 +1,19 @@
1
+ import { PTableV9 } from "./table.js";
1
2
  import { AxisQualification, ColumnAxesWithQualifications, ConstantAxisFilter, Logger, PFrameId, PTableId } from "./common.js";
2
- import { FindColumnResponseQualifications, FindColumnsMappingVariant, FindColumnsRequest, FindColumnsResponse, FindColumnsResponseHit } from "./find_columns.js";
3
- import { DeleteColumnFromColumnsRequest, DeleteColumnFromColumnsResponse } from "./delete_column.js";
4
- import { ArtificialColumnJoinEntry, ColumnJoinEntry, CreateTableRequestV4, FullJoinV4, InlineColumnJoinEntry, InnerJoinV4, JoinEntryV4, OuterJoinV4, SlicedColumnJoinEntry } from "./create_table.js";
5
- import { PTableV8, PTableV9 } from "./table.js";
6
- import { PFrameReadAPIV11, PFrameReadAPIV12, UniqueValuesRequestV2 } from "./api_read.js";
3
+ import { PFrameReadAPIV12, UniqueValuesRequestV2 } from "./api_read.js";
7
4
  import { BaseObjectStore, FileRange, FsStoreOptions, HttpAuthorizationToken, HttpHelpers, HttpMethod, HttpRange, HttpServer, HttpServerInfo, HttpServerOptions, ObjectStore, ObjectStoreOptions, ObjectStoreResponse, ObjectStoreUrl, ParquetExtension, ParquetFileName, PemCertificate, RequestHandlerOptions } from "./http_helpers.js";
8
- import { AddColumnEntry, DataInfo, DataInfoExtension, FilePath, PColumnValueTypeSpec, PFrameBlobId, PFrameDataSourceV2, PFrameFactoryAPIV4, PFrameFactoryAPIV5, SpecExtension } from "./api_factory.js";
5
+ import { AddColumnEntry, DataInfo, DataInfoExtension, FilePath, PColumnValueTypeSpec, PFrameBlobId, PFrameDataSourceV2, PFrameFactoryAPIV5, SpecExtension } from "./api_factory.js";
6
+ import { DeleteColumnFromColumnsRequest, DeleteColumnFromColumnsResponse } from "./delete_column.js";
9
7
  import { DiscoverColumnsConstraints, DiscoverColumnsMappingVariant, DiscoverColumnsRequestV2, DiscoverColumnsResponse, DiscoverColumnsResponseHit, DiscoverColumnsResponseQualifications, DiscoverColumnsStepInfo, MatcherMap, MultiAxisSelector, MultiColumnSelector, StringMatcher } from "./discover_columns.js";
8
+ import { FindColumnResponseQualifications, FindColumnsMappingVariant, FindColumnsRequest, FindColumnsResponse, FindColumnsResponseHit } from "./find_columns.js";
10
9
  import { EvaluateQueryResponse, LegacyQuery, PFrameWasmAPIV2, PFrameWasmAPIV3, PFrameWasmAPIV4, PFrameWasmV2, PFrameWasmV3 } from "./api_wasm.js";
11
- import { PFrameFactoryV4, PFrameFactoryV5, PFrameOptionsV2, PFrameV13, PFrameV14 } from "./pframe.js";
10
+ import { ArtificialColumnJoinEntry, ColumnJoinEntry, CreateTableRequestV4, FullJoinV4, InlineColumnJoinEntry, InnerJoinV4, JoinEntryV4, OuterJoinV4, SlicedColumnJoinEntry } from "./create_table.js";
11
+ import { PFrameFactoryV5, PFrameOptionsV2, PFrameV14 } 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, PFrameFactoryAPIV4, PFrameFactoryAPIV5, PFrameFactoryV4, PFrameFactoryV5, PFrameId, PFrameOptionsV2, PFrameReadAPIV11, PFrameReadAPIV12, PFrameV13, PFrameV14, PFrameWasmAPIV2, PFrameWasmAPIV3, PFrameWasmAPIV4, PFrameWasmV2, PFrameWasmV3, PTableId, PTableV8, 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, PFrameFactoryV5, PFrameId, PFrameOptionsV2, PFrameReadAPIV12, PFrameV14, PFrameWasmAPIV2, PFrameWasmAPIV3, PFrameWasmAPIV4, PFrameWasmV2, PFrameWasmV3, PTableId, PTableV9, ParquetExtension, ParquetFileName, PemCertificate, RequestHandlerOptions, SingleAxisSelector$1 as SingleAxisSelector, SlicedColumnJoinEntry, SpecExtension, StringMatcher, UniqueValuesRequestV2 };
17
17
  }
18
18
  //#endregion
19
19
  export { index_d_exports };
@@ -1,9 +1,8 @@
1
1
  import { Logger, PFrameId } from "./common.js";
2
- import { PFrameReadAPIV11, PFrameReadAPIV12 } from "./api_read.js";
3
- import { PFrameFactoryAPIV4, PFrameFactoryAPIV5 } from "./api_factory.js";
2
+ import { PFrameReadAPIV12 } from "./api_read.js";
3
+ import { PFrameFactoryAPIV5 } from "./api_factory.js";
4
4
 
5
5
  //#region src/pframe/internal_api/pframe.d.ts
6
- interface PFrameV13 extends PFrameFactoryAPIV4, PFrameReadAPIV11 {}
7
6
  /** Full PFrame surface — factory operations plus data-side reads. */
8
7
  interface PFrameV14 extends PFrameFactoryAPIV5, PFrameReadAPIV12 {}
9
8
  type PFrameOptionsV2 = {
@@ -11,22 +10,6 @@ type PFrameOptionsV2 = {
11
10
  spillPath: string; /** Logger instance, no logging is performed when not provided */
12
11
  logger?: Logger;
13
12
  };
14
- /** List of PFrame management functions exposed by PFrame module */
15
- interface PFrameFactoryV4 {
16
- /**
17
- * Create a new PFrame instance.
18
- * @warning Use concurrency limiting to avoid OOM crashes when multiple instances are simultaneously in use.
19
- */
20
- createPFrame(options: PFrameOptionsV2): PFrameV13;
21
- /**
22
- * Dump active allocations from all PFrames instances in pprof format.
23
- * The result of this function should be saved as `profile.pb.gz`.
24
- * Use {@link https://pprof.me/} or {@link https://www.speedscope.app/}
25
- * to view the allocation flamechart.
26
- * @warning This method will always reject on Windows!
27
- */
28
- pprofDump: () => Promise<Uint8Array>;
29
- }
30
13
  /** PFrame management functions exposed by the PFrame module. */
31
14
  interface PFrameFactoryV5 {
32
15
  /**
@@ -44,5 +27,5 @@ interface PFrameFactoryV5 {
44
27
  pprofDump: () => Promise<Uint8Array>;
45
28
  }
46
29
  //#endregion
47
- export { PFrameFactoryV4, PFrameFactoryV5, PFrameOptionsV2, PFrameV13, PFrameV14 };
30
+ export { PFrameFactoryV5, PFrameOptionsV2, PFrameV14 };
48
31
  //# sourceMappingURL=pframe.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pframe.d.ts","names":[],"sources":["../../../src/pframe/internal_api/pframe.ts"],"mappings":";;;;;UAKiB,SAAA,SAAkB,kBAAA,EAAoB,gBAAA;;UAGtC,SAAA,SAAkB,kBAAA,EAAoB,gBAAA;AAAA,KAE3C,eAAA;EAFK,qCAIf,OAAA,EAAS,QAAA;EAET,SAAA,UANqE;EAQrE,MAAA,GAAS,MAAA;AAAA;;UAIM,eAAA;EARf;;;;EAaA,YAAA,CAAa,OAAA,EAAS,eAAA,GAAkB,SAAA;EATzB;;AAIjB;;;;;EAcE,SAAA,QAAiB,OAAA,CAAQ,UAAA;AAAA;;UAIV,eAAA;EAbf;;;;EAkBA,YAAA,CAAa,OAAA,EAAS,eAAA,GAAkB,SAAA;EATvB;;;;AAInB;;;EAcE,SAAA,QAAiB,OAAA,CAAQ,UAAA;AAAA"}
1
+ {"version":3,"file":"pframe.d.ts","names":[],"sources":["../../../src/pframe/internal_api/pframe.ts"],"mappings":";;;;;;UAMiB,SAAA,SAAkB,kBAAA,EAAoB,gBAAA;AAAA,KAE3C,eAAA;EAFuB,qCAIjC,OAAA,EAAS,QAAA,EAFC;EAIV,SAAA;EAEA,MAAA,GAAS,MAAA;AAAA;;UAIM,eAAA;EAJf;;;;EASA,YAAA,CAAa,OAAA,EAAS,eAAA,GAAkB,SAAA;EALV;;;;;;;EAc9B,SAAA,QAAiB,OAAA,CAAQ,UAAA;AAAA"}
@@ -1,60 +1,6 @@
1
- import { PTableId } from "./common.js";
2
- import { PTableColumnId, PTableColumnSpec, PTableRecordFilter, PTableShape, PTableSorting, PTableVector, TableRange } from "@milaboratories/pl-model-common";
1
+ import { PTableShape, PTableVector, TableRange } from "@milaboratories/pl-model-common";
3
2
 
4
3
  //#region src/pframe/internal_api/table.d.ts
5
- /**
6
- * Table view returned as a result of create table operation.
7
- *
8
- * PTable can be thought as having a composite primary key, consisting of axes,
9
- * and a set of data columns derived from PColumn values.
10
- * */
11
- interface PTableV8 extends Disposable {
12
- /**
13
- * Returns ordered array of table axes specs (primary key "columns" in SQL
14
- * terms) and data column specs (regular "columns" in SQL terms).
15
- *
16
- * Data for a specific table column can be retrieved using unified indexing
17
- * corresponding to elements in this array.
18
- *
19
- * Axes are always listed first.
20
- * */
21
- getSpec(): PTableColumnSpec[];
22
- /** Transforms unified column identifiers into unified indices of columns. */
23
- getColumnIndices(columnIds: PTableColumnId[]): number[];
24
- /**
25
- * Get PTable disk footprint in bytes
26
- * Warning: This call materializes the join.
27
- */
28
- getFootprint(ops?: {
29
- signal?: AbortSignal;
30
- }): Promise<number>;
31
- /**
32
- * Unified table shape
33
- * Warning: This call materializes the join.
34
- */
35
- getShape(ops?: {
36
- signal?: AbortSignal;
37
- }): Promise<PTableShape>;
38
- /**
39
- * Retrieve the data from the table. To retrieve only data required, it can be
40
- * sliced both horizontally ({@link columnIndices}) and vertically
41
- * ({@link range}).
42
- * This call materializes the join.
43
- *
44
- * @param columnIndices unified indices of columns to be retrieved
45
- * @param range optionally limit the range of records to retrieve
46
- * */
47
- getData(columnIndices: number[], ops?: {
48
- range?: TableRange;
49
- signal?: AbortSignal;
50
- }): Promise<PTableVector[]>;
51
- /** Filters the table and returns new PTable instance */
52
- filter(tableId: PTableId, request: PTableRecordFilter[]): PTableV8;
53
- /** Sorts the table and returns new PTable instance. */
54
- sort(tableId: PTableId, request: PTableSorting[]): PTableV8;
55
- /** Deallocates all underlying resources */
56
- dispose(): void;
57
- }
58
4
  /**
59
5
  * Table view returned by `createTable`.
60
6
  *
@@ -102,5 +48,5 @@ interface PTableV9 extends Disposable {
102
48
  dispose(): void;
103
49
  }
104
50
  //#endregion
105
- export { PTableV8, PTableV9 };
51
+ export { PTableV9 };
106
52
  //# sourceMappingURL=table.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"table.d.ts","names":[],"sources":["../../../src/pframe/internal_api/table.ts"],"mappings":";;;;;;AAiBA;;;;UAAiB,QAAA,SAAiB,UAAA;EAmBF;;;;;;;;;EAT9B,OAAA,IAAW,gBAAA;EAmCwB;EAhCnC,gBAAA,CAAiB,SAAA,EAAW,cAAA;EAmCd;;;;EA7Bd,YAAA,CAAa,GAAA;IAAQ,MAAA,GAAS,WAAA;EAAA,IAAgB,OAAA;EAT9C;;;;EAeA,QAAA,CAAS,GAAA;IAAQ,MAAA,GAAS,WAAA;EAAA,IAAgB,OAAA,CAAQ,WAAA;EANpB;;;;;;;;;EAiB9B,OAAA,CACE,aAAA,YACA,GAAA;IACE,KAAA,GAAQ,UAAA;IACR,MAAA,GAAS,WAAA;EAAA,IAEV,OAAA,CAAQ,YAAA;EAFP;EAKJ,MAAA,CAAO,OAAA,EAAS,QAAA,EAAU,OAAA,EAAS,kBAAA,KAAuB,QAAA;EAPxD;EAUF,IAAA,CAAK,OAAA,EAAS,QAAA,EAAU,OAAA,EAAS,aAAA,KAAkB,QAAA;EANxC;EASX,OAAA;AAAA;;;;;;;;;UAWe,QAAA,SAAiB,UAAA;EAdmB;;;;AAcrD;;;;;;EAWE,YAAA,CAAa,GAAA;IAAQ,gBAAA;IAA4B,MAAA,GAAS,WAAA;EAAA,IAAgB,OAAA;EAuB/D;;;;EAjBX,QAAA,CAAS,GAAA;IAAQ,MAAA,GAAS,WAAA;EAAA,IAAgB,OAAA,CAAQ,WAAA;EAN7B;;;;;;;;;EAiBrB,OAAA,CACE,aAAA,YACA,GAAA;IACE,KAAA,GAAQ,UAAA;IACR,MAAA,GAAS,WAAA;EAAA,IAEV,OAAA,CAAQ,YAAA;EAHP;EAMJ,OAAA;AAAA"}
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;;EAGX,OAAA;AAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milaboratories/pl-model-middle-layer",
3
- "version": "1.25.0",
3
+ "version": "1.26.0",
4
4
  "description": "Common model between middle layer and non-block UI code",
5
5
  "files": [
6
6
  "./dist/**/*",
@@ -20,8 +20,8 @@
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.42.0",
24
- "@milaboratories/helpers": "1.14.2"
23
+ "@milaboratories/helpers": "1.14.2",
24
+ "@milaboratories/pl-model-common": "1.43.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/node": "~24.5.2",
@@ -7,7 +7,6 @@ import type {
7
7
  JsonPartitionedDataInfo,
8
8
  ParquetChunk,
9
9
  ParquetPartitionedDataInfo,
10
- PColumnSpec,
11
10
  PObjectId,
12
11
  } from "@milaboratories/pl-model-common";
13
12
  import type { HttpServerInfo } from "./http_helpers";
@@ -56,32 +55,6 @@ export type DataInfo<Blob> =
56
55
  | BinaryPartitionedDataInfo<Blob>
57
56
  | ParquetPartitionedDataInfo<ParquetChunk<Blob>>;
58
57
 
59
- /** API exposed by PFrames library allowing to create and provide data for
60
- * PFrame objects */
61
- export interface PFrameFactoryAPIV4 extends Disposable {
62
- /** Associates data source with this PFrame */
63
- setDataSource(dataSource: PFrameDataSourceV2): void;
64
-
65
- /** Adds PColumn without data info */
66
- addColumnSpec(columnId: PObjectId, columnSpec: PColumnSpec): void;
67
-
68
- /**
69
- * Assign data info to the specified PColumn.
70
- * For parquet data info, schema resolution via network is performed during this call.
71
- */
72
- setColumnData(
73
- columnId: PObjectId,
74
- dataInfo: DataInfo<PFrameBlobId>,
75
- options?: {
76
- signal?: AbortSignal;
77
- },
78
- ): Promise<void>;
79
-
80
- /** Releases all the data previously added to PFrame using methods above,
81
- * any interactions with disposed PFrame will result in exception */
82
- dispose(): void;
83
- }
84
-
85
58
  /**
86
59
  * Structural type information needed by the data side: axis value
87
60
  * types and column value types, in their canonical order. Mirrors