@datapos/datapos-shared 0.3.495 → 0.3.497

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.
@@ -73,9 +73,6 @@ interface ContentAuditConfig {
73
73
  interface RelationshipsAuditConfig {
74
74
  placeholder?: string;
75
75
  }
76
- type ObjectRecord = (NamedValueRecord | StringValueRecord)[];
77
- type NamedValueRecord = Record<string, bigint | boolean | number | string | null>;
78
- type StringValueRecord = (string | null)[];
79
76
  type DataTypeId = 'boolean' | 'numeric' | 'string' | 'temporal' | 'unknown';
80
77
  type DataSubtypeId = NumericSubtypeId | StringSubtypeId | TemporalSubtypeId;
81
78
  type NumericSubtypeId = 'bigint' | 'integer' | 'decimal';
@@ -148,7 +145,7 @@ interface UnknownInferenceResult {
148
145
  inputValue: string | null | undefined;
149
146
  inferredValue: null;
150
147
  }
151
- interface TypeResult {
148
+ interface TypeParsedRecordsResult {
152
149
  columnConfigs: ObjectColumnConfig[];
153
150
  typedRecords: InferenceRecord[];
154
151
  }
@@ -165,9 +162,9 @@ DataTypeId, // Data type.
165
162
  DataSubtypeId, NumericSubtypeId, // Numeric subtype and characteristics.
166
163
  NumericSignId, NumericUnitsId, StringSubtypeId, // String subtype.
167
164
  TemporalSubtypeId, // Temporal subtype.
168
- ObjectRecord, NamedValueRecord, StringValueRecord, RecordDelimiterId, ValueDelimiterId, ParsingRecord, ParsingResult, InferenceRecord, InferenceResult, BooleanInferenceResult, // Boolean.
165
+ RecordDelimiterId, ValueDelimiterId, ParsingRecord, ParsingResult, InferenceRecord, InferenceResult, BooleanInferenceResult, // Boolean.
169
166
  NumericInferenceResult, // Numeric.
170
167
  BigIntInferenceResult, NumberInferenceResult, StringInferenceResult, // String.
171
168
  TemporalInferenceResult, // Temporal.
172
169
  UnknownInferenceResult, // Unknown.
173
- TypeResult };
170
+ TypeParsedRecordsResult };
@@ -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, TypeParsedRecordsResult, ValueDelimiterId } from '../component/dataView';
7
7
  import { ContextConfig, ContextOperationOptions } from '../component/context';
8
8
  /**
9
9
  * Engine runtime interface.
@@ -44,7 +44,7 @@ interface EngineCallbackData {
44
44
  */
45
45
  interface EngineUtilities {
46
46
  inferValues: (parsingRecord: ParsingRecord, columnConfigs: ObjectColumnConfig[]) => InferenceRecord;
47
- typeParsedRecords: (parsedRecords: ParsingRecord[]) => unknown;
47
+ typeParsedRecords: (parsedRecords: ParsingRecord[]) => TypeParsedRecordsResult;
48
48
  }
49
49
  /**
50
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.495",
3
+ "version": "0.3.497",
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>",