@datapos/datapos-shared 0.3.464 → 0.3.466

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, ParseRecord, ValueDelimiterId } from '../dataView';
8
8
  /**
9
9
  * Connector interface and constructor.
10
10
  */
@@ -59,11 +59,11 @@ interface ConnectorInterface extends Component {
59
59
  /**
60
60
  * Retrieve all chunks from an object for a specified connection.
61
61
  */
62
- retrieveChunks?(options: RetrieveChunksOptions, chunk: (records: ObjectRecord[]) => void, complete: () => void): Promise<void>;
62
+ retrieveChunks?(options: RetrieveChunksOptions, chunk: (records: ParseRecord[]) => void, complete: () => void): Promise<void>;
63
63
  /**
64
64
  * Retrieve all records from an object for a specified connection.
65
65
  */
66
- retrieveRecords?(options: RetrieveRecordsOptions, chunk: (records: ObjectRecord[]) => void, complete: (result: RetrieveRecordsSummary) => void): Promise<void>;
66
+ retrieveRecords?(options: RetrieveRecordsOptions, chunk: (records: ParseRecord[]) => void, complete: (result: RetrieveRecordsSummary) => void): Promise<void>;
67
67
  /**
68
68
  * Upsert one or more records into an object for a specified connection.
69
69
  */
@@ -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, ParseField, 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-shared",
3
- "version": "0.3.464",
3
+ "version": "0.3.466",
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>",