@datapos/datapos-shared 0.3.472 → 0.3.473

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.
@@ -65,15 +65,17 @@ type NamedValueRecord = Record<string, bigint | boolean | number | string | null
65
65
  type StringValueRecord = (string | null)[];
66
66
  type ValueRecord = (bigint | boolean | number | string | null)[];
67
67
  type DataTypeId = 'boolean' | 'numeric' | 'string' | 'temporal' | 'unknown';
68
- type NumericSignId = 'negative' | 'zero' | 'positive';
69
68
  type NumericSubtypeId = 'bigint' | 'integer' | 'decimal';
69
+ type NumericSignId = 'negative' | 'zero' | 'positive';
70
70
  type NumericUnitsId = 'currency' | 'percentage' | 'plain';
71
71
  type StringSubtypeId = 'email' | 'ipv4' | 'ipv6' | 'ulid' | 'uuid' | 'url' | 'plain';
72
72
  type TemporalSubtypeId = 'date' | 'dateTime' | 'time';
73
+ type ParsingRecord = ParsingResult[];
73
74
  interface ParsingResult {
74
75
  value: string | null;
75
76
  valueWasQuoted: boolean;
76
77
  }
78
+ type InferenceRecord = InferenceResult[];
77
79
  /**
78
80
  * Inferred value.
79
81
  */
@@ -139,10 +141,12 @@ type ValueDelimiterId = '' | ':' | ',' | '!' | '0x1E' | ';' | ' ' | '\t' | '_' |
139
141
  */
140
142
  declare const ORDERED_VALUE_DELIMITER_IDS: ValueDelimiterId[];
141
143
  export { ORDERED_VALUE_DELIMITER_IDS };
142
- export type { DataViewConfig, DataViewContentAuditConfig, DataViewInterface, DataViewLocalisedConfig, DataViewPreviewConfig, DataFormatId, DataTypeId, NumericSubtypeId, // Numeric.
143
- NumericSignId, NumericUnitsId, StringSubtypeId, // String.
144
- TemporalSubtypeId, // Temporal.
145
- ObjectRecord, NamedValueRecord, StringValueRecord, ValueRecord, RecordDelimiterId, ValueDelimiterId, ParsingResult, InferenceResult, BooleanInferenceResult, // Boolean.
144
+ export type { DataViewInterface, DataViewConfig, DataViewContentAuditConfig, DataViewLocalisedConfig, DataViewPreviewConfig, DataFormatId, // Data format.
145
+ DataTypeId, // Data type.
146
+ NumericSubtypeId, // Numeric subtype and characteristics.
147
+ NumericSignId, NumericUnitsId, StringSubtypeId, // String subtype.
148
+ TemporalSubtypeId, // Temporal subtype.
149
+ ObjectRecord, NamedValueRecord, StringValueRecord, ValueRecord, RecordDelimiterId, ValueDelimiterId, ParsingRecord, ParsingResult, InferenceRecord, InferenceResult, BooleanInferenceResult, // Boolean.
146
150
  NumericInferenceResult, // Numeric.
147
151
  BigIntInferenceResult, NumberInferenceResult, StringInferenceResult, // String.
148
152
  TemporalInferenceResult, // Temporal.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-shared",
3
- "version": "0.3.472",
3
+ "version": "0.3.473",
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>",