@datapos/datapos-shared 0.3.421 → 0.3.423
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { InferOutput } from 'valibot';
|
|
2
2
|
import { Component } from '..';
|
|
3
|
+
import { EngineAPI } from '../../engine';
|
|
3
4
|
import { ToolConfig } from '../tool';
|
|
4
5
|
import { ValueDelimiterId } from '../dataView';
|
|
5
6
|
import { ConnectionDescription, ConnectionNodeConfig } from './connection';
|
|
@@ -18,7 +19,7 @@ interface ConnectorInterface extends Component {
|
|
|
18
19
|
getReadableStream?(connector: ConnectorInterface, options: GetReadableStreamOptions): Promise<ReadableStream<Uint8Array>>;
|
|
19
20
|
getRecord?(connector: ConnectorInterface, options: GetRecordOptions): Promise<GetRecordResult>;
|
|
20
21
|
listNodes?(connector: ConnectorInterface, options: ListNodesOptions): Promise<ListNodesResult>;
|
|
21
|
-
previewObject?(
|
|
22
|
+
previewObject?(engineAPI: EngineAPI, connector: ConnectorInterface, options: PreviewObjectOptions): Promise<PreviewObjectResult>;
|
|
22
23
|
removeRecords?(connector: ConnectorInterface, options: RemoveRecordsOptions): Promise<void>;
|
|
23
24
|
retrieveChunks?(connector: ConnectorInterface, options: RetrieveChunksOptions, chunk: (records: (string[] | Record<string, unknown>)[]) => void, complete: () => void): Promise<void>;
|
|
24
25
|
retrieveRecords?(connector: ConnectorInterface, options: RetrieveRecordsOptions, chunk: (records: (string[] | Record<string, unknown>)[]) => void, complete: (result: RetrieveRecordsSummary) => void): Promise<void>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ConnectionConfig } from '../component/connector/connection';
|
|
2
|
-
import { ConnectorOperationOptions
|
|
2
|
+
import { ConnectorOperationOptions } from '../component/connector';
|
|
3
3
|
import { ModuleConfig } from '../component/module';
|
|
4
4
|
import { ToolConfig } from '../component/tool';
|
|
5
5
|
import { ContextCallbackData, ContextConfig, ContextOperationOptions } from '../component/context';
|
|
6
|
-
import { DataViewContentAuditConfig,
|
|
6
|
+
import { DataViewContentAuditConfig, EncodingConfig, ValueDelimiterId } from '../component/dataView';
|
|
7
7
|
/** Engine runtime interface. */
|
|
8
8
|
interface EngineRuntimeInterface {
|
|
9
9
|
getEncodingConfigs: (localeId: string) => EncodingConfig[];
|
|
@@ -21,13 +21,9 @@ interface EngineWorkerInitialiseOptions {
|
|
|
21
21
|
connectorStorageURLPrefix: string;
|
|
22
22
|
toolConfigs: ToolConfig[];
|
|
23
23
|
}
|
|
24
|
-
/** Engine
|
|
25
|
-
interface
|
|
26
|
-
|
|
27
|
-
error: unknown;
|
|
28
|
-
} | {
|
|
29
|
-
result: DataViewPreviewConfig;
|
|
30
|
-
}>;
|
|
24
|
+
/** Engine API. */
|
|
25
|
+
interface EngineAPI {
|
|
26
|
+
determineFileType: (id: string) => string;
|
|
31
27
|
}
|
|
32
28
|
/** Engine configuration. */
|
|
33
29
|
interface EngineConfig extends ModuleConfig {
|
|
@@ -56,4 +52,4 @@ interface TestSettings {
|
|
|
56
52
|
readable: ReadableStream<Uint8Array>;
|
|
57
53
|
}
|
|
58
54
|
/** Exports. */
|
|
59
|
-
export type { AuditObjectContentOptions, AuditObjectContentResult, ConnectorCallbackData,
|
|
55
|
+
export type { AuditObjectContentOptions, AuditObjectContentResult, ConnectorCallbackData, EngineAPI, EngineConfig, EngineRuntimeInterface, EngineWorkerInitialiseOptions, EngineWorkerInterface, TestSettings };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datapos/datapos-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.423",
|
|
4
4
|
"description": "A library containing common constants, types and utilities used across all Data Positioning projects.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Jonathan Terrell <terrell.jm@gmail.com>",
|