@dpuse/dpuse-shared 1.0.235 → 1.0.238

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.
@@ -99,6 +99,7 @@ export interface ColumnAuditConfig extends ColumnReadingConfig {
99
99
  dateReadings?: Partial<Record<DateOrderId, DateReadingConfig>> | undefined;
100
100
  formatIssueIds: FormatIssueId[] | undefined;
101
101
  nullWordValueCount?: number | undefined;
102
+ unitId?: string | undefined;
102
103
  isCoded?: boolean | undefined;
103
104
  validValueCount: number | undefined;
104
105
  invalidValueCount: number | undefined;
@@ -283,9 +284,6 @@ export declare const VALUE_DELIMITER_CONFIGS: readonly [{
283
284
  }, {
284
285
  readonly id: "0x1F";
285
286
  readonly character: "\u001F";
286
- }, {
287
- readonly id: "0x1E";
288
- readonly character: "\u001E";
289
287
  }];
290
288
  export declare const DATA_TYPE_CONFIGS: readonly [{
291
289
  readonly id: "string";
@@ -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<StoreRecord[]>): Promise<LoadObjectRecordsResult>;
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>;
@@ -38,7 +39,7 @@ export interface ConnectorUtilities {
38
39
  }
39
40
  export interface ColumnAuditor {
40
41
  auditRecords: (parsedRecords: ParsedRecord[]) => void;
41
- completeAudit: () => InferenceSummary;
42
+ completeAudit: (isComplete?: boolean) => InferenceSummary;
42
43
  }
43
44
  export interface InferenceSummary {
44
45
  columnConfigs: ColumnAuditConfig[];
@@ -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.235",
3
+ "version": "1.0.238",
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.155",
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",