@datapos/datapos-shared 0.3.458 → 0.3.459

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,15 @@ 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 RecordValueDataTypeId = 'boolean' | 'numeric' | 'string' | 'temporal' | 'unknown';
67
+ type NumericValueSignId = 'negative' | 'zero' | 'positive' | 'unknown';
68
+ type NumericValueSubtypeId = 'bigint' | 'integer' | 'decimal' | 'unknown';
69
+ type NumericValueUnitsId = 'currency' | 'percentage' | 'plain' | 'unknown';
70
+ type StringValueSubtypeId = 'email' | 'ipv4' | 'ipv6' | 'ulid' | 'uuid' | 'url' | 'plain' | 'unknown';
71
+ type TemporalValueSubtypeId = 'date' | 'dateTime' | 'time' | 'unknown';
63
72
  type ObjectDataFormatId = 'dpe' | 'dtv' | 'json' | 'spss' | 'xlsx' | 'xml';
64
73
  type ObjectRecordDelimiterId = '\n' | '\r' | '\r\n';
65
74
  type RecordValueDelimiterId = '' | ':' | ',' | '!' | '0x1E' | ';' | ' ' | '\t' | '_' | '0x1F' | '|';
@@ -67,28 +76,5 @@ type RecordValueDelimiterId = '' | ':' | ',' | '!' | '0x1E' | ';' | ' ' | '\t' |
67
76
  *
68
77
  */
69
78
  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
79
  export { ORDERED_VALUE_DELIMITER_IDS };
94
- export type { DataViewConfig, DataViewContentAuditConfig, DataViewInterface, DataViewLocalisedConfig, DataViewPreviewConfig, ObjectDataFormatId, ObjectRecord, ObjectRecordDelimiterId, ParseValueResult, RecordValueDelimiterId, RecordValueDataTypeId, NumericValueSignId, NumericValueSubtypeId, NumericValueUnitsId, StringValueSubtypeId, TemporalValueSubtypeId };
80
+ export type { DataViewConfig, DataViewContentAuditConfig, DataViewInterface, DataViewLocalisedConfig, DataViewPreviewConfig, ObjectDataFormatId, 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.458",
3
+ "version": "0.3.459",
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>",