@datapos/datapos-shared 0.3.490 → 0.3.492

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.
@@ -44,14 +44,14 @@ interface PreviewConfig {
44
44
  quoteMarkId?: string | undefined;
45
45
  quoteMarkOtherCharSeq?: string | undefined;
46
46
  recordDelimiterId: RecordDelimiterId | undefined;
47
- recordDelimiterOtherCharSeq: RecordDelimiterId | undefined;
47
+ recordDelimiterOtherCharSeq?: RecordDelimiterId | undefined;
48
48
  size: number | undefined;
49
49
  skipEmptyLines?: boolean | undefined;
50
50
  skipLinesWithEmptyValues?: boolean | undefined;
51
51
  skipLinesWithErrors?: boolean | undefined;
52
52
  text: string | undefined;
53
53
  valueDelimiterId: ValueDelimiterId | undefined;
54
- valueDelimiterOtherCharSeq: string | undefined;
54
+ valueDelimiterOtherCharSeq?: string | undefined;
55
55
  valueTrimMethodId?: string | undefined;
56
56
  }
57
57
  /**
@@ -148,6 +148,10 @@ interface UnknownInferenceResult {
148
148
  inputValue: string | null | undefined;
149
149
  inferredValue: null;
150
150
  }
151
+ interface TypeResult {
152
+ columnConfigs: ObjectColumnConfig[];
153
+ typedRecords: InferenceRecord[];
154
+ }
151
155
  type DataFormatId = 'dpe' | 'dtv' | 'json' | 'spss' | 'xlsx' | 'xml' | 'unknown';
152
156
  type RecordDelimiterId = '\n' | '\r' | '\r\n';
153
157
  type ValueDelimiterId = '' | ':' | ',' | '!' | '0x1E' | ';' | ' ' | '\t' | '_' | '0x1F' | '|';
@@ -165,4 +169,5 @@ ObjectRecord, NamedValueRecord, StringValueRecord, RecordDelimiterId, ValueDelim
165
169
  NumericInferenceResult, // Numeric.
166
170
  BigIntInferenceResult, NumberInferenceResult, StringInferenceResult, // String.
167
171
  TemporalInferenceResult, // Temporal.
168
- UnknownInferenceResult };
172
+ UnknownInferenceResult, // Unknown.
173
+ TypeResult };
@@ -3,7 +3,7 @@ import { EncodingTypeConfig } from '../encoding';
3
3
  import { ModuleConfig } from '../component/module';
4
4
  import { ToolConfig } from '../component/tool';
5
5
  import { ConnectorOperationOptions, ObjectColumnConfig } from '../component/connector';
6
- import { ContentAuditConfig, InferenceRecord, ParsingRecord, ValueDelimiterId } from '../component/dataView';
6
+ import { ContentAuditConfig, InferenceRecord, ParsingRecord, StringValueRecord, ValueDelimiterId } from '../component/dataView';
7
7
  import { ContextConfig, ContextOperationOptions } from '../component/context';
8
8
  /**
9
9
  * Engine runtime interface.
@@ -44,6 +44,7 @@ interface EngineCallbackData {
44
44
  */
45
45
  interface EngineUtilities {
46
46
  inferValues: (parsingRecord: ParsingRecord, columnConfigs: ObjectColumnConfig[]) => InferenceRecord;
47
+ typeStringValueRecords: (stringValueRecords: StringValueRecord[]) => unknown;
47
48
  }
48
49
  /**
49
50
  * 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.490",
3
+ "version": "0.3.492",
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>",