@dpuse/dpuse-shared 1.0.178 → 1.0.179
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.
- package/README.md +4 -4
- package/dist/dpuse-shared.es.js +13 -8
- package/dist/dpuse-shared.es.js.map +1 -1
- package/dist/types/src/component/dataView/index.d.ts +2 -1
- package/dist/types/src/component/module/connector/index.d.ts +6 -3
- package/dist/types/src/component/module/connector/objectParsing.d.ts +1 -1
- package/package.json +1 -1
|
@@ -78,12 +78,13 @@ export interface ContentAuditConfig {
|
|
|
78
78
|
emptyLineCount: number | undefined;
|
|
79
79
|
invalidFieldLengthCount: number | undefined;
|
|
80
80
|
duration: number;
|
|
81
|
+
hasHeaders: boolean;
|
|
81
82
|
isComplete: boolean;
|
|
82
83
|
lineCount: number | undefined;
|
|
83
84
|
recordCount: number;
|
|
84
85
|
sourceWaitDuration: number | undefined;
|
|
85
86
|
}
|
|
86
|
-
export type StoredContentAuditConfig = Omit<ContentAuditConfig, 'columns'>;
|
|
87
|
+
export type StoredContentAuditConfig = Omit<ContentAuditConfig, 'columns' | 'hasHeaders'>;
|
|
87
88
|
interface RelationshipsAuditConfig {
|
|
88
89
|
placeholder: string;
|
|
89
90
|
}
|
|
@@ -36,14 +36,17 @@ export interface ConnectorInterface extends Component {
|
|
|
36
36
|
export type ConnectorActionName = InferOutput<typeof connectorActionNameSchema>;
|
|
37
37
|
export type ConnectorConstructor = new (connectorUtilities: ConnectorUtilities, toolConfigs: ToolConfig[]) => ConnectorInterface;
|
|
38
38
|
export interface ConnectorUtilities {
|
|
39
|
-
constructColumnAuditor: (hasHeaders: boolean) => ColumnAuditor;
|
|
39
|
+
constructColumnAuditor: (hasHeaders: boolean | undefined) => ColumnAuditor;
|
|
40
40
|
hasReadableStreamTransferSupport(): boolean;
|
|
41
41
|
inferValues: (parsedRecord: ParsingRecord, columnConfigs: ObjectColumnConfig[], hasLeadingRecord: boolean) => InferenceRecord;
|
|
42
42
|
inferDataTypes: (parsedRecords: ParsingRecord[], hasHeaders?: boolean) => InferenceSummary;
|
|
43
43
|
}
|
|
44
44
|
export interface ColumnAuditor {
|
|
45
45
|
auditRecords: (parsedRecords: ParsingRecord[]) => void;
|
|
46
|
-
completeAudit: () =>
|
|
46
|
+
completeAudit: () => {
|
|
47
|
+
columnConfigs: ObjectColumnConfig[];
|
|
48
|
+
hasHeaders: boolean;
|
|
49
|
+
};
|
|
47
50
|
}
|
|
48
51
|
export type ConnectorConfig = InferOutput<typeof connectorConfigSchema>;
|
|
49
52
|
type ConnectorCategoryConfig = InferOutput<typeof connectorCategoryConfigSchema>;
|
|
@@ -55,7 +58,7 @@ export interface AuditObjectContentOptions extends EngineConnectorActionOptions
|
|
|
55
58
|
chunkSize: number | undefined;
|
|
56
59
|
dataFormatId: DataFormatId;
|
|
57
60
|
encodingId: string;
|
|
58
|
-
hasHeaders: boolean;
|
|
61
|
+
hasHeaders: boolean | undefined;
|
|
59
62
|
parserId: string | undefined;
|
|
60
63
|
path: string;
|
|
61
64
|
stopSignal: AbortSignal | undefined;
|
|
@@ -28,7 +28,7 @@ export declare function retrieveRecordsWithParser(input: {
|
|
|
28
28
|
toolConfigs: ToolConfig[];
|
|
29
29
|
}): Promise<RetrieveRecordsSummary>;
|
|
30
30
|
export declare function auditObjectContentWithParser(input: {
|
|
31
|
-
constructColumnAuditor: (hasHeaders: boolean) => ColumnAuditor;
|
|
31
|
+
constructColumnAuditor: (hasHeaders: boolean | undefined) => ColumnAuditor;
|
|
32
32
|
onProgress: (recordCount: number, byteCount: number) => void;
|
|
33
33
|
options: AuditObjectContentOptions;
|
|
34
34
|
signal: AbortSignal;
|