@datapos/datapos-shared 0.3.460 → 0.3.462
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.
|
@@ -28,18 +28,18 @@ type DataViewLocalisedConfig = Omit<DataViewConfig, 'label' | 'description'> & {
|
|
|
28
28
|
interface DataViewPreviewConfig {
|
|
29
29
|
asAt: number;
|
|
30
30
|
columnConfigs: ConnectionColumnConfig[];
|
|
31
|
-
dataFormatId:
|
|
31
|
+
dataFormatId: DataFormatId | undefined;
|
|
32
32
|
duration: number;
|
|
33
33
|
encodingConfidenceLevel: number | undefined;
|
|
34
34
|
encodingId: string | undefined;
|
|
35
35
|
errorMessage?: string;
|
|
36
36
|
fileType: FileTypeResult | undefined;
|
|
37
37
|
hasHeaders: boolean | undefined;
|
|
38
|
-
recordDelimiterId?:
|
|
38
|
+
recordDelimiterId?: RecordDelimiterId;
|
|
39
39
|
records: ParseResult[][];
|
|
40
40
|
size: number;
|
|
41
41
|
text: string;
|
|
42
|
-
valueDelimiterId?:
|
|
42
|
+
valueDelimiterId?: ValueDelimiterId;
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
45
|
* Data view content audit configuration.
|
|
@@ -60,25 +60,26 @@ interface DataViewContentAuditConfig {
|
|
|
60
60
|
interface DataViewRelationshipsAuditConfig {
|
|
61
61
|
placeholder?: string;
|
|
62
62
|
}
|
|
63
|
-
type ObjectRecord = (
|
|
64
|
-
type
|
|
65
|
-
type
|
|
66
|
-
type
|
|
63
|
+
type ObjectRecord = (StringRecord | PropertyRecord)[];
|
|
64
|
+
type StringRecord = string[];
|
|
65
|
+
type PropertyRecord = Record<string, unknown>;
|
|
66
|
+
type ParseRecord = ParseField[];
|
|
67
|
+
interface ParseField {
|
|
67
68
|
value: string | null;
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
type
|
|
69
|
+
valueWasQuoted: boolean;
|
|
70
|
+
}
|
|
71
|
+
type ValueDataTypeId = 'boolean' | 'numeric' | 'string' | 'temporal' | 'unknown';
|
|
71
72
|
type NumericValueSignId = 'negative' | 'zero' | 'positive' | 'unknown';
|
|
72
73
|
type NumericValueSubtypeId = 'bigint' | 'integer' | 'decimal' | 'unknown';
|
|
73
74
|
type NumericValueUnitsId = 'currency' | 'percentage' | 'plain' | 'unknown';
|
|
74
75
|
type StringValueSubtypeId = 'email' | 'ipv4' | 'ipv6' | 'ulid' | 'uuid' | 'url' | 'plain' | 'unknown';
|
|
75
76
|
type TemporalValueSubtypeId = 'date' | 'dateTime' | 'time' | 'unknown';
|
|
76
|
-
type
|
|
77
|
-
type
|
|
78
|
-
type
|
|
77
|
+
type DataFormatId = 'dpe' | 'dtv' | 'json' | 'spss' | 'xlsx' | 'xml';
|
|
78
|
+
type RecordDelimiterId = '\n' | '\r' | '\r\n';
|
|
79
|
+
type ValueDelimiterId = '' | ':' | ',' | '!' | '0x1E' | ';' | ' ' | '\t' | '_' | '0x1F' | '|';
|
|
79
80
|
/**
|
|
80
81
|
*
|
|
81
82
|
*/
|
|
82
|
-
declare const ORDERED_VALUE_DELIMITER_IDS:
|
|
83
|
+
declare const ORDERED_VALUE_DELIMITER_IDS: ValueDelimiterId[];
|
|
83
84
|
export { ORDERED_VALUE_DELIMITER_IDS };
|
|
84
|
-
export type { DataViewConfig, DataViewContentAuditConfig, DataViewInterface, DataViewLocalisedConfig, DataViewPreviewConfig,
|
|
85
|
+
export type { DataViewConfig, DataViewContentAuditConfig, DataViewInterface, DataViewLocalisedConfig, DataViewPreviewConfig, DataFormatId, NumericValueSignId, NumericValueSubtypeId, NumericValueUnitsId, ObjectRecord, ParseRecord, PropertyRecord, RecordDelimiterId, StringRecord, StringValueSubtypeId, TemporalValueSubtypeId, ValueDataTypeId, ValueDelimiterId };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datapos/datapos-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.462",
|
|
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>",
|