@dpuse/dpuse-shared 1.0.236 → 1.0.239
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.
|
@@ -21,7 +21,8 @@ export interface ConnectorInterface {
|
|
|
21
21
|
indexObjectStructure?(options: IndexObjectStructureOptions, chunk: (byteCount: number) => void): Promise<StructureIndex>;
|
|
22
22
|
listNodes?(options: ListNodesOptions): Promise<ListNodesResult>;
|
|
23
23
|
listObjectStructureEntries?(options: ListObjectStructureEntriesOptions): Promise<ListStructureEntriesResult>;
|
|
24
|
-
loadObjectRecords?(options: LoadObjectRecordsOptions, chunks: AsyncIterable<
|
|
24
|
+
loadObjectRecords?(options: LoadObjectRecordsOptions, chunks: AsyncIterable<StoreChunk>): Promise<LoadObjectRecordsResult>;
|
|
25
|
+
readonly storeChunkLayoutId?: StoreChunkLayoutId;
|
|
25
26
|
openStore?(options: OpenStoreOptions): Promise<OpenStoreResult>;
|
|
26
27
|
previewObject?(options: PreviewObjectOptions): Promise<PreviewObjectResult>;
|
|
27
28
|
queryRecords?(options: QueryRecordsOptions): Promise<QueryRecordsResult>;
|
|
@@ -166,6 +167,12 @@ export interface LoadTiming {
|
|
|
166
167
|
}
|
|
167
168
|
export type StoreRecord = StoreValue[];
|
|
168
169
|
export type StoreValue = bigint | boolean | Date | number | string | null;
|
|
170
|
+
export type StoreChunk = StoreColumnChunk | StoreRecord[];
|
|
171
|
+
export type StoreChunkLayoutId = 'columns' | 'records';
|
|
172
|
+
export interface StoreColumnChunk {
|
|
173
|
+
columns: StoreValue[][];
|
|
174
|
+
recordCount: number;
|
|
175
|
+
}
|
|
169
176
|
export interface OpenStoreOptions extends EngineConnectorActionOptions {
|
|
170
177
|
takeOver?: boolean;
|
|
171
178
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dpuse/dpuse-shared",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.239",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Common constants, types and utilities used across DPUse projects.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"valibot": "^1.5.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@dpuse/dpuse-development": "^1.0.
|
|
67
|
+
"@dpuse/dpuse-development": "^1.0.156",
|
|
68
68
|
"@dpuse/eslint-config-dpuse": "^1.0.152",
|
|
69
69
|
"@types/node": "^26.6.6",
|
|
70
70
|
"@types/trusted-types": "^2.0.7",
|