@datapos/datapos-shared 0.3.419 → 0.3.421
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.
|
@@ -18,7 +18,7 @@ interface ConnectorInterface extends Component {
|
|
|
18
18
|
getReadableStream?(connector: ConnectorInterface, options: GetReadableStreamOptions): Promise<ReadableStream<Uint8Array>>;
|
|
19
19
|
getRecord?(connector: ConnectorInterface, options: GetRecordOptions): Promise<GetRecordResult>;
|
|
20
20
|
listNodes?(connector: ConnectorInterface, options: ListNodesOptions): Promise<ListNodesResult>;
|
|
21
|
-
previewObject?(connector: ConnectorInterface, options: PreviewObjectOptions): Promise<PreviewObjectResult>;
|
|
21
|
+
previewObject?(engine: EngineInterface, connector: ConnectorInterface, options: PreviewObjectOptions): Promise<PreviewObjectResult>;
|
|
22
22
|
removeRecords?(connector: ConnectorInterface, options: RemoveRecordsOptions): Promise<void>;
|
|
23
23
|
retrieveChunks?(connector: ConnectorInterface, options: RetrieveChunksOptions, chunk: (records: (string[] | Record<string, unknown>)[]) => void, complete: () => void): Promise<void>;
|
|
24
24
|
retrieveRecords?(connector: ConnectorInterface, options: RetrieveRecordsOptions, chunk: (records: (string[] | Record<string, unknown>)[]) => void, complete: (result: RetrieveRecordsSummary) => void): Promise<void>;
|
|
@@ -5,10 +5,10 @@ import { ModuleConfig } from '../module';
|
|
|
5
5
|
import { Component, ComponentConfig, ComponentReference } from '..';
|
|
6
6
|
export interface Context extends Component {
|
|
7
7
|
readonly config: ContextConfig;
|
|
8
|
-
list?(
|
|
8
|
+
list?(context: Context, options?: ContextListOptions): Promise<ContextListResult>;
|
|
9
9
|
}
|
|
10
10
|
export type ContextOperationOptions = object;
|
|
11
|
-
export type
|
|
11
|
+
export type ContextListOptions = object;
|
|
12
12
|
export interface ContextListResult {
|
|
13
13
|
models: ContextModelGroupConfig[];
|
|
14
14
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ConnectionConfig } from '../component/connector/connection';
|
|
2
|
-
import { ConnectorOperationOptions } from '../component/connector';
|
|
2
|
+
import { ConnectorOperationOptions, PreviewObjectOptions } 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, EncodingConfig, ValueDelimiterId } from '../component/dataView';
|
|
6
|
+
import { DataViewContentAuditConfig, DataViewPreviewConfig, EncodingConfig, ValueDelimiterId } from '../component/dataView';
|
|
7
7
|
/** Engine runtime interface. */
|
|
8
8
|
interface EngineRuntimeInterface {
|
|
9
9
|
getEncodingConfigs: (localeId: string) => EncodingConfig[];
|
|
@@ -21,6 +21,14 @@ interface EngineWorkerInitialiseOptions {
|
|
|
21
21
|
connectorStorageURLPrefix: string;
|
|
22
22
|
toolConfigs: ToolConfig[];
|
|
23
23
|
}
|
|
24
|
+
/** Engine interface. */
|
|
25
|
+
interface EngineInterface {
|
|
26
|
+
previewObject(engine: EngineInterface, connectionConfig: ConnectionConfig, options: PreviewObjectOptions): Promise<{
|
|
27
|
+
error: unknown;
|
|
28
|
+
} | {
|
|
29
|
+
result: DataViewPreviewConfig;
|
|
30
|
+
}>;
|
|
31
|
+
}
|
|
24
32
|
/** Engine configuration. */
|
|
25
33
|
interface EngineConfig extends ModuleConfig {
|
|
26
34
|
typeId: 'engine';
|
|
@@ -48,4 +56,4 @@ interface TestSettings {
|
|
|
48
56
|
readable: ReadableStream<Uint8Array>;
|
|
49
57
|
}
|
|
50
58
|
/** Exports. */
|
|
51
|
-
export type { AuditObjectContentOptions, AuditObjectContentResult, ConnectorCallbackData, EngineConfig, EngineRuntimeInterface, EngineWorkerInitialiseOptions, EngineWorkerInterface, TestSettings };
|
|
59
|
+
export type { AuditObjectContentOptions, AuditObjectContentResult, ConnectorCallbackData, EngineConfig, EngineInterface, 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.421",
|
|
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>",
|