@dpuse/dpuse-shared 1.0.160 → 1.0.162

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.
@@ -69,6 +69,7 @@ export interface ContentAuditConfig {
69
69
  duration: number;
70
70
  lineCount: number | undefined;
71
71
  recordCount: number;
72
+ sourceWaitDuration: number | undefined;
72
73
  }
73
74
  interface RelationshipsAuditConfig {
74
75
  placeholder: string;
@@ -29,7 +29,8 @@ export interface ConnectorInterface extends Component {
29
29
  queryRecords?(options: QueryRecordsOptions): Promise<QueryRecordsResult>;
30
30
  removeRecords?(options: RemoveRecordsOptions): Promise<void>;
31
31
  retrieveChunks?(options: RetrieveChunksOptions, chunk: (data: Uint8Array) => void, complete: () => void): Promise<void>;
32
- retrieveRecords?(options: RetrieveRecordsOptions, chunk: (typeId: RecordRetrievalTypeId, records: Record<string, unknown>[] | ParsingRecord[]) => void, complete: (result: RetrieveRecordsSummary) => void): Promise<void>;
32
+ retrieveRecords?(options: RetrieveRecordsOptions, chunk: (typeId: RecordRetrievalTypeId, records: Record<string, unknown>[] | ParsingRecord[]) => void | Promise<void>, // A returned promise holds the read back until it settles.
33
+ complete: (result: RetrieveRecordsSummary) => void): Promise<void>;
33
34
  upsertRecords?(options: UpsertRecordsOptions): Promise<void>;
34
35
  }
35
36
  export type ConnectorActionName = InferOutput<typeof connectorActionNameSchema>;
@@ -20,7 +20,7 @@ export declare function buildPreviewConfig(input: {
20
20
  toolConfigs: ToolConfig[];
21
21
  }): Promise<PreviewConfig>;
22
22
  export declare function retrieveRecordsWithParser(input: {
23
- chunk: (typeId: RecordRetrievalTypeId, records: ParsingRecord[]) => void;
23
+ chunk: (typeId: RecordRetrievalTypeId, records: ParsingRecord[]) => void | Promise<void>;
24
24
  options: RetrieveRecordsOptions;
25
25
  signal: AbortSignal;
26
26
  stream: ReadableStream<Uint8Array>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpuse/dpuse-shared",
3
- "version": "1.0.160",
3
+ "version": "1.0.162",
4
4
  "private": false,
5
5
  "description": "Common constants, types and utilities used across DPUse projects.",
6
6
  "license": "MIT",
@@ -60,11 +60,11 @@
60
60
  "check:browsers": "node scripts/checkBrowserDecoding.ts"
61
61
  },
62
62
  "dependencies": {
63
- "file-type": "^22.2.0",
63
+ "file-type": "^22.3.0",
64
64
  "valibot": "^1.5.0"
65
65
  },
66
66
  "devDependencies": {
67
- "@dpuse/dpuse-development": "^1.0.140",
67
+ "@dpuse/dpuse-development": "^1.0.141",
68
68
  "@dpuse/eslint-config-dpuse": "^1.0.145",
69
69
  "@types/node": "^26.6.6",
70
70
  "@vitest/coverage-v8": "^5.0.5",