@datapos/datapos-shared 0.3.458 → 0.3.460
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.
|
@@ -60,6 +60,19 @@ interface DataViewContentAuditConfig {
|
|
|
60
60
|
interface DataViewRelationshipsAuditConfig {
|
|
61
61
|
placeholder?: string;
|
|
62
62
|
}
|
|
63
|
+
type ObjectRecord = (ObjectStringRecord | ObjectPropertyRecord)[];
|
|
64
|
+
type ObjectStringRecord = string[];
|
|
65
|
+
type ObjectPropertyRecord = Record<string, unknown>;
|
|
66
|
+
type ObjectParsedRecord = {
|
|
67
|
+
value: string | null;
|
|
68
|
+
isQuoted: boolean;
|
|
69
|
+
}[];
|
|
70
|
+
type RecordValueDataTypeId = 'boolean' | 'numeric' | 'string' | 'temporal' | 'unknown';
|
|
71
|
+
type NumericValueSignId = 'negative' | 'zero' | 'positive' | 'unknown';
|
|
72
|
+
type NumericValueSubtypeId = 'bigint' | 'integer' | 'decimal' | 'unknown';
|
|
73
|
+
type NumericValueUnitsId = 'currency' | 'percentage' | 'plain' | 'unknown';
|
|
74
|
+
type StringValueSubtypeId = 'email' | 'ipv4' | 'ipv6' | 'ulid' | 'uuid' | 'url' | 'plain' | 'unknown';
|
|
75
|
+
type TemporalValueSubtypeId = 'date' | 'dateTime' | 'time' | 'unknown';
|
|
63
76
|
type ObjectDataFormatId = 'dpe' | 'dtv' | 'json' | 'spss' | 'xlsx' | 'xml';
|
|
64
77
|
type ObjectRecordDelimiterId = '\n' | '\r' | '\r\n';
|
|
65
78
|
type RecordValueDelimiterId = '' | ':' | ',' | '!' | '0x1E' | ';' | ' ' | '\t' | '_' | '0x1F' | '|';
|
|
@@ -67,28 +80,5 @@ type RecordValueDelimiterId = '' | ':' | ',' | '!' | '0x1E' | ';' | ' ' | '\t' |
|
|
|
67
80
|
*
|
|
68
81
|
*/
|
|
69
82
|
declare const ORDERED_VALUE_DELIMITER_IDS: RecordValueDelimiterId[];
|
|
70
|
-
type ObjectRecord = (string[] | Record<string, unknown>)[];
|
|
71
|
-
/**
|
|
72
|
-
* Parse result.
|
|
73
|
-
*/
|
|
74
|
-
interface ParseValueResult {
|
|
75
|
-
dataTypeId: RecordValueDataTypeId;
|
|
76
|
-
dataSubtypeId: NumericValueSubtypeId | StringValueSubtypeId | TemporalValueSubtypeId;
|
|
77
|
-
format: string | undefined;
|
|
78
|
-
inputValue: string;
|
|
79
|
-
parsedValue: ParsedValue;
|
|
80
|
-
isValid: boolean;
|
|
81
|
-
signId: NumericValueSignId;
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Parsed value.
|
|
85
|
-
*/
|
|
86
|
-
type ParsedValue = bigint | boolean | number | string | null;
|
|
87
|
-
type RecordValueDataTypeId = 'boolean' | 'numeric' | 'string' | 'temporal' | 'unknown';
|
|
88
|
-
type NumericValueSignId = 'negative' | 'zero' | 'positive' | 'unknown';
|
|
89
|
-
type NumericValueSubtypeId = 'bigint' | 'integer' | 'decimal' | 'unknown';
|
|
90
|
-
type NumericValueUnitsId = 'currency' | 'percentage' | 'plain' | 'unknown';
|
|
91
|
-
type StringValueSubtypeId = 'email' | 'ipv4' | 'ipv6' | 'ulid' | 'uuid' | 'url' | 'plain' | 'unknown';
|
|
92
|
-
type TemporalValueSubtypeId = 'date' | 'dateTime' | 'time' | 'unknown';
|
|
93
83
|
export { ORDERED_VALUE_DELIMITER_IDS };
|
|
94
|
-
export type { DataViewConfig, DataViewContentAuditConfig, DataViewInterface, DataViewLocalisedConfig, DataViewPreviewConfig, ObjectDataFormatId, ObjectRecord, ObjectRecordDelimiterId,
|
|
84
|
+
export type { DataViewConfig, DataViewContentAuditConfig, DataViewInterface, DataViewLocalisedConfig, DataViewPreviewConfig, ObjectDataFormatId, ObjectParsedRecord, ObjectPropertyRecord, ObjectRecord, ObjectRecordDelimiterId, ObjectStringRecord, RecordValueDelimiterId, RecordValueDataTypeId, NumericValueSignId, NumericValueSubtypeId, NumericValueUnitsId, StringValueSubtypeId, TemporalValueSubtypeId };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datapos/datapos-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.460",
|
|
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>",
|