@dpuse/dpuse-shared 1.0.234 → 1.0.236

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.
@@ -99,6 +99,8 @@ export interface ColumnAuditConfig extends ColumnReadingConfig {
99
99
  dateReadings?: Partial<Record<DateOrderId, DateReadingConfig>> | undefined;
100
100
  formatIssueIds: FormatIssueId[] | undefined;
101
101
  nullWordValueCount?: number | undefined;
102
+ unitId?: string | undefined;
103
+ isCoded?: boolean | undefined;
102
104
  validValueCount: number | undefined;
103
105
  invalidValueCount: number | undefined;
104
106
  blankValueCount: number | undefined;
@@ -112,6 +114,7 @@ export interface ColumnAuditConfig extends ColumnReadingConfig {
112
114
  validMaxWholeDigits: number | undefined;
113
115
  validMinDecimals: number | undefined;
114
116
  validMaxDecimals: number | undefined;
117
+ validCountsAreEstimated?: boolean | undefined;
115
118
  validDistinctValueCount: number | undefined;
116
119
  validSingleValueCount?: number | undefined;
117
120
  invalidDistinctValueCount?: number | undefined;
@@ -140,7 +143,7 @@ export interface DeclaredReadingConfig {
140
143
  }
141
144
  export type NumericReadingConfig = Pick<ColumnAuditConfig, 'dataSubtypeId' | 'validMaxDecimals' | 'validMaxWholeDigits' | 'validMinDecimals' | 'validMinWholeDigits'> & ValueDistributionConfig;
142
145
  export type DateReadingConfig = Pick<ColumnAuditConfig, 'validFormats'> & ValueDistributionConfig;
143
- export type ValueDistributionConfig = Pick<ColumnAuditConfig, 'validDistinctValueCount' | 'validFrequentValues' | 'validHighestValues' | 'validIsUnique' | 'validLeastFrequentValues' | 'validLowestValues' | 'validSingleValueCount' | 'validValueBinOutliers' | 'validValueBinScaleId' | 'validValueBins'>;
146
+ export type ValueDistributionConfig = Pick<ColumnAuditConfig, 'validCountsAreEstimated' | 'validDistinctValueCount' | 'validFrequentValues' | 'validHighestValues' | 'validIsUnique' | 'validLeastFrequentValues' | 'validLowestValues' | 'validSingleValueCount' | 'validValueBinOutliers' | 'validValueBinScaleId' | 'validValueBins'>;
144
147
  export type FormatIssueId = 'booleanPairMixed' | 'currencyMixed' | 'dateOrderMixed' | 'dateOrderUnproven' | 'decimalSeparatorMixed' | 'decimalSeparatorUnproven' | 'decimalSeparatorWeaklyProven' | 'percentageMixed' | 'scientificNotationMixed';
145
148
  export interface ValueBinConfig {
146
149
  count: number;
@@ -281,9 +284,6 @@ export declare const VALUE_DELIMITER_CONFIGS: readonly [{
281
284
  }, {
282
285
  readonly id: "0x1F";
283
286
  readonly character: "\u001F";
284
- }, {
285
- readonly id: "0x1E";
286
- readonly character: "\u001E";
287
287
  }];
288
288
  export declare const DATA_TYPE_CONFIGS: readonly [{
289
289
  readonly id: "string";
@@ -38,7 +38,7 @@ export interface ConnectorUtilities {
38
38
  }
39
39
  export interface ColumnAuditor {
40
40
  auditRecords: (parsedRecords: ParsedRecord[]) => void;
41
- completeAudit: () => InferenceSummary;
41
+ completeAudit: (isComplete?: boolean) => InferenceSummary;
42
42
  }
43
43
  export interface InferenceSummary {
44
44
  columnConfigs: ColumnAuditConfig[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpuse/dpuse-shared",
3
- "version": "1.0.234",
3
+ "version": "1.0.236",
4
4
  "private": false,
5
5
  "description": "Common constants, types and utilities used across DPUse projects.",
6
6
  "license": "MIT",