@dpuse/dpuse-shared 1.0.155 → 1.0.157
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.
|
@@ -3,7 +3,7 @@ import { Component } from '../..';
|
|
|
3
3
|
import { EngineConnectorActionOptions } from '../engine';
|
|
4
4
|
import { LocalisedConfig } from '../../../locale';
|
|
5
5
|
import { ToolConfig } from '../tool';
|
|
6
|
-
import {
|
|
6
|
+
import { ConnectionDescriptionConfig, ConnectionNodeConfig, ObjectColumnConfig } from '../../connection';
|
|
7
7
|
import { connectorActionNameSchema, connectorCategoryConfigSchema, connectorConfigSchema, connectorItemTypeConfigSchema, connectorItemTypeIdSchema, connectorUsageConfigSchema, connectorUsageIdSchema } from './connectorConfig.schema';
|
|
8
8
|
import { ContentAuditConfig, DataFormatId, InferenceRecord, InferenceSummary, ParsingRecord, PreviewConfig, ValueDelimiterId } from '../../dataView';
|
|
9
9
|
export { connectorConfigSchema } from './connectorConfig.schema';
|
|
@@ -13,7 +13,7 @@ export interface ConnectorInterface extends Component {
|
|
|
13
13
|
readonly config: ConnectorConfig;
|
|
14
14
|
readonly toolConfigs: ToolConfig[];
|
|
15
15
|
abortOperation?(): void;
|
|
16
|
-
auditObjectContent?(options: AuditObjectContentOptions, chunk: (rowCount: number) => void
|
|
16
|
+
auditObjectContent?(options: AuditObjectContentOptions, chunk: (rowCount: number) => void): Promise<AuditObjectContentResult>;
|
|
17
17
|
createObject?(options: CreateObjectOptions): Promise<void>;
|
|
18
18
|
describeConnection?(options: DescribeConnectionOptions): Promise<DescribeConnectionResult>;
|
|
19
19
|
dropObject?(options: DropObjectOptions): Promise<void>;
|
|
@@ -52,18 +52,12 @@ export interface AuditObjectContentOptions extends EngineConnectorActionOptions
|
|
|
52
52
|
hasHeaders: boolean;
|
|
53
53
|
parserId: string | undefined;
|
|
54
54
|
path: string;
|
|
55
|
-
recordStore?: RecordStoreConfig | undefined;
|
|
56
55
|
supportsTransferableStreams: boolean;
|
|
57
56
|
valueDelimiterId: ValueDelimiterId;
|
|
58
57
|
}
|
|
59
58
|
export interface AuditObjectContentResult {
|
|
60
59
|
contentAuditConfig: ContentAuditConfig;
|
|
61
60
|
}
|
|
62
|
-
export interface RecordStoreConfig {
|
|
63
|
-
connectionConfig: ConnectionConfig;
|
|
64
|
-
nodeId: string;
|
|
65
|
-
storeId: string;
|
|
66
|
-
}
|
|
67
61
|
export interface CreateObjectOptions extends EngineConnectorActionOptions {
|
|
68
62
|
path: string;
|
|
69
63
|
structure: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FileTypeResult } from 'file-type';
|
|
2
2
|
import { AuditObjectContentOptions, ColumnAuditor, ConnectorUtilities, RecordRetrievalTypeId, RetrieveRecordsOptions, RetrieveRecordsSummary } from '.';
|
|
3
|
-
import { ContentAuditConfig, DataFormatId,
|
|
3
|
+
import { ContentAuditConfig, DataFormatId, ParsingRecord, PreviewConfig } from '../../dataView';
|
|
4
4
|
import { ToolConfig } from '../tool';
|
|
5
5
|
export interface ObjectFilePreview {
|
|
6
6
|
bytes: Uint8Array;
|
|
@@ -29,7 +29,6 @@ export declare function retrieveRecordsWithParser(input: {
|
|
|
29
29
|
export declare function auditObjectContentWithParser(input: {
|
|
30
30
|
constructColumnAuditor: (hasHeaders: boolean) => ColumnAuditor;
|
|
31
31
|
onProgress: (recordCount: number) => void;
|
|
32
|
-
onRecords?: ((inferenceRecords: InferenceRecord[]) => Promise<void>) | undefined;
|
|
33
32
|
options: AuditObjectContentOptions;
|
|
34
33
|
signal: AbortSignal;
|
|
35
34
|
stream: ReadableStream<Uint8Array>;
|