@datapos/datapos-shared 0.3.468 → 0.3.470
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.
|
@@ -132,6 +132,15 @@ interface UnknownInferenceResult {
|
|
|
132
132
|
inputValue: string | null | undefined;
|
|
133
133
|
parsedValue: null;
|
|
134
134
|
}
|
|
135
|
+
/**
|
|
136
|
+
* Schema configuration.
|
|
137
|
+
*/
|
|
138
|
+
interface SchemaConfig {
|
|
139
|
+
columnConfigs: ConnectionColumnConfig[];
|
|
140
|
+
recordDelimiterId: RecordDelimiterId;
|
|
141
|
+
records: InferredResult[][];
|
|
142
|
+
valueDelimiterId: ValueDelimiterId;
|
|
143
|
+
}
|
|
135
144
|
type DataFormatId = 'dpe' | 'dtv' | 'json' | 'spss' | 'xlsx' | 'xml';
|
|
136
145
|
type RecordDelimiterId = '\n' | '\r' | '\r\n';
|
|
137
146
|
type ValueDelimiterId = '' | ':' | ',' | '!' | '0x1E' | ';' | ' ' | '\t' | '_' | '0x1F' | '|';
|
|
@@ -140,4 +149,4 @@ type ValueDelimiterId = '' | ':' | ',' | '!' | '0x1E' | ';' | ' ' | '\t' | '_' |
|
|
|
140
149
|
*/
|
|
141
150
|
declare const ORDERED_VALUE_DELIMITER_IDS: ValueDelimiterId[];
|
|
142
151
|
export { ORDERED_VALUE_DELIMITER_IDS };
|
|
143
|
-
export type { BigIntInferenceResult, BooleanInferenceResult, DataViewConfig, DataViewContentAuditConfig, DataViewInterface, DataViewLocalisedConfig, DataViewPreviewConfig, DataFormatId, InferredResult, NamedValueRecord, NumberInferenceResult, NumericInferenceResult, NumericValueSignId, NumericValueSubtypeId, NumericValueUnitsId, ObjectRecord, ParseField, ParseRecord, RecordDelimiterId, StringInferenceResult, StringValueRecord, StringValueSubtypeId, TemporalInferenceResult, TemporalValueSubtypeId, UnknownInferenceResult, ValueDataTypeId, ValueDelimiterId, ValueRecord };
|
|
152
|
+
export type { BigIntInferenceResult, BooleanInferenceResult, DataViewConfig, DataViewContentAuditConfig, DataViewInterface, DataViewLocalisedConfig, DataViewPreviewConfig, DataFormatId, InferredResult, NamedValueRecord, NumberInferenceResult, NumericInferenceResult, NumericValueSignId, NumericValueSubtypeId, NumericValueUnitsId, ObjectRecord, ParseField, ParseRecord, RecordDelimiterId, SchemaConfig, StringInferenceResult, StringValueRecord, StringValueSubtypeId, TemporalInferenceResult, TemporalValueSubtypeId, UnknownInferenceResult, ValueDataTypeId, ValueDelimiterId, ValueRecord };
|
|
@@ -4,7 +4,7 @@ import { ModuleConfig } from '../component/module';
|
|
|
4
4
|
import { ToolConfig } from '../component/tool';
|
|
5
5
|
import { ConnectionColumnConfig, ConnectorOperationOptions } from '../component/connector';
|
|
6
6
|
import { ContextConfig, ContextOperationOptions } from '../component/context';
|
|
7
|
-
import { DataViewContentAuditConfig,
|
|
7
|
+
import { DataViewContentAuditConfig, InferredResult, ParseField, ValueDelimiterId } from '../component/dataView';
|
|
8
8
|
/**
|
|
9
9
|
* Engine runtime interface.
|
|
10
10
|
*/
|
|
@@ -43,7 +43,7 @@ interface EngineCallbackData {
|
|
|
43
43
|
* Engine utilities.
|
|
44
44
|
*/
|
|
45
45
|
interface EngineUtilities {
|
|
46
|
-
parseRecord: (columnConfigs: ConnectionColumnConfig[], record: ParseField[], isPreview: boolean) =>
|
|
46
|
+
parseRecord: (columnConfigs: ConnectionColumnConfig[], record: ParseField[], isPreview: boolean) => InferredResult[];
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
49
|
* Audit object content options and result.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datapos/datapos-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.470",
|
|
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>",
|