@datapos/datapos-shared 0.3.463 → 0.3.465

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.
@@ -4,7 +4,7 @@ import { EngineUtilities } from '../../engine';
4
4
  import { ToolConfig } from '../tool';
5
5
  import { ConnectionDescriptionConfig, ConnectionNodeConfig } from './connection';
6
6
  import { connectorCategoryConfigSchema, connectorConfigSchema, connectorOperationNameSchema, connectorUsageIdSchema } from './connectorConfig.schema';
7
- import { DataViewPreviewConfig, ObjectRecord, RecordValueDelimiterId } from '../dataView';
7
+ import { DataViewPreviewConfig, ObjectRecord, ValueDelimiterId } from '../dataView';
8
8
  /**
9
9
  * Connector interface and constructor.
10
10
  */
@@ -178,7 +178,7 @@ interface RetrieveChunksOptions extends ConnectorOperationOptions {
178
178
  chunkSize?: number;
179
179
  encodingId: string;
180
180
  path: string;
181
- valueDelimiterId: RecordValueDelimiterId;
181
+ valueDelimiterId: ValueDelimiterId;
182
182
  }
183
183
  /**
184
184
  * Retrieve records options and summary.
@@ -187,7 +187,7 @@ interface RetrieveRecordsOptions extends ConnectorOperationOptions {
187
187
  chunkSize?: number;
188
188
  encodingId: string;
189
189
  path: string;
190
- valueDelimiterId: RecordValueDelimiterId;
190
+ valueDelimiterId: ValueDelimiterId;
191
191
  }
192
192
  interface RetrieveRecordsSummary {
193
193
  /**
@@ -60,9 +60,10 @@ interface DataViewContentAuditConfig {
60
60
  interface DataViewRelationshipsAuditConfig {
61
61
  placeholder?: string;
62
62
  }
63
- type ObjectRecord = (StringRecord | PropertyRecord)[];
64
- type StringRecord = string[];
65
- type PropertyRecord = Record<string, unknown>;
63
+ type ObjectRecord = (NamedValueRecord | StringValueRecord | ValueRecord)[];
64
+ type NamedValueRecord = Record<string, bigint | boolean | number | string | null>;
65
+ type StringValueRecord = (string | null)[];
66
+ type ValueRecord = (bigint | boolean | number | string | null)[];
66
67
  type ParseRecord = ParseField[];
67
68
  interface ParseField {
68
69
  value: string | null;
@@ -82,4 +83,4 @@ type ValueDelimiterId = '' | ':' | ',' | '!' | '0x1E' | ';' | ' ' | '\t' | '_' |
82
83
  */
83
84
  declare const ORDERED_VALUE_DELIMITER_IDS: ValueDelimiterId[];
84
85
  export { ORDERED_VALUE_DELIMITER_IDS };
85
- export type { DataViewConfig, DataViewContentAuditConfig, DataViewInterface, DataViewLocalisedConfig, DataViewPreviewConfig, DataFormatId, NumericValueSignId, NumericValueSubtypeId, NumericValueUnitsId, ObjectRecord, ParseRecord, PropertyRecord, RecordDelimiterId, StringRecord, StringValueSubtypeId, TemporalValueSubtypeId, ValueDataTypeId, ValueDelimiterId };
86
+ export type { DataViewConfig, DataViewContentAuditConfig, DataViewInterface, DataViewLocalisedConfig, DataViewPreviewConfig, DataFormatId, NamedValueRecord, NumericValueSignId, NumericValueSubtypeId, NumericValueUnitsId, ObjectRecord, ParseField, ParseRecord, RecordDelimiterId, StringValueRecord, StringValueSubtypeId, TemporalValueSubtypeId, ValueDataTypeId, ValueDelimiterId, ValueRecord };
@@ -4,7 +4,7 @@ import { ModuleConfig } from '../component/module';
4
4
  import { ToolConfig } from '../component/tool';
5
5
  import { ConnectionColumnConfig, ConnectorOperationOptions } from '../component/connector';
6
6
  import { ContextConfig, ContextOperationOptions } from '../component/context';
7
- import { DataViewContentAuditConfig, ParseResult, ValueDelimiterId } from '../component/dataView';
7
+ import { DataViewContentAuditConfig, ParseField, ParseResult, ValueDelimiterId } from '../component/dataView';
8
8
  /**
9
9
  * Engine runtime interface.
10
10
  */
@@ -43,10 +43,7 @@ interface EngineCallbackData {
43
43
  * Engine utilities.
44
44
  */
45
45
  interface EngineUtilities {
46
- parseRecord: (columnConfigs: ConnectionColumnConfig[], record: {
47
- value: string | null | undefined;
48
- valueWasQuoted: boolean;
49
- }[], isPreview: boolean) => ParseResult[];
46
+ parseRecord: (columnConfigs: ConnectionColumnConfig[], record: ParseField[], isPreview: boolean) => ParseResult[];
50
47
  }
51
48
  /**
52
49
  * 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.463",
3
+ "version": "0.3.465",
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>",