@dpuse/dpuse-shared 1.0.204 → 1.0.206

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.
@@ -78,7 +78,8 @@ export interface ColumnAuditConfig extends ColumnReadingConfig {
78
78
  validValueCount: number | undefined;
79
79
  invalidValueCount: number | undefined;
80
80
  blankValueCount: number | undefined;
81
- missingValueCount: number | undefined;
81
+ emptyValueCount: number | undefined;
82
+ nullValueCount: number | undefined;
82
83
  hasMissingValues: boolean | undefined;
83
84
  validFormats: Record<string, number>;
84
85
  validMinSize: number | undefined;
@@ -113,8 +114,9 @@ export interface DeclaredReadingConfig {
113
114
  hasHeaders: boolean | undefined;
114
115
  valueDelimiterId: ValueDelimiterId | undefined;
115
116
  }
116
- export type NumericReadingConfig = Pick<ColumnAuditConfig, 'dataSubtypeId' | 'validMaxDecimals' | 'validMaxWholeDigits' | 'validMinDecimals' | 'validMinWholeDigits'>;
117
- export type DateReadingConfig = Pick<ColumnAuditConfig, 'validFormats'>;
117
+ export type NumericReadingConfig = Pick<ColumnAuditConfig, 'dataSubtypeId' | 'validMaxDecimals' | 'validMaxWholeDigits' | 'validMinDecimals' | 'validMinWholeDigits'> & ValueDistributionConfig;
118
+ export type DateReadingConfig = Pick<ColumnAuditConfig, 'validFormats'> & ValueDistributionConfig;
119
+ export type ValueDistributionConfig = Pick<ColumnAuditConfig, 'validDistinctValueCount' | 'validFrequentValues' | 'validHighestValues' | 'validIsUnique' | 'validLeastFrequentValues' | 'validLowestValues' | 'validSingleValueCount' | 'validValueBinOutliers' | 'validValueBinScaleId' | 'validValueBins'>;
118
120
  export type FormatIssueId = 'booleanPairMixed' | 'currencyMixed' | 'dateOrderMixed' | 'dateOrderUnproven' | 'decimalSeparatorMixed' | 'decimalSeparatorUnproven' | 'decimalSeparatorWeaklyProven' | 'percentageMixed' | 'scientificNotationMixed';
119
121
  export interface ValueBinConfig {
120
122
  count: number;
@@ -189,7 +189,7 @@ export interface ClassifyPreviewValuesOptions extends EngineConnectorActionOptio
189
189
  columnConfigs: ColumnReadingConfig[];
190
190
  parsedRecords: ParsedRecord[];
191
191
  }
192
- export type PreviewValueStateId = 'blank' | 'invalid' | 'missing' | 'valid';
192
+ export type PreviewValueStateId = 'blank' | 'empty' | 'invalid' | 'null' | 'valid';
193
193
  export interface RemoveRecordsOptions extends EngineConnectorActionOptions {
194
194
  keys: string[];
195
195
  path: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpuse/dpuse-shared",
3
- "version": "1.0.204",
3
+ "version": "1.0.206",
4
4
  "private": false,
5
5
  "description": "Common constants, types and utilities used across DPUse projects.",
6
6
  "license": "MIT",