@dpuse/dpuse-shared 1.0.187 → 1.0.190

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.
@@ -62,6 +62,7 @@ export interface ObjectColumnConfig {
62
62
  isUnique: boolean | undefined;
63
63
  label: LocaleLabel;
64
64
  leadingInferenceCounts: Record<string, number>;
65
+ leastFrequentValues?: Record<string, number> | undefined;
65
66
  maxDecimals: number | undefined;
66
67
  maxSize: number | undefined;
67
68
  maxValue: string | undefined;
@@ -77,6 +78,7 @@ export interface ObjectColumnConfig {
77
78
  formats: Record<string, number>;
78
79
  paddedValueCount: number | undefined;
79
80
  quotedValueCount: number | undefined;
81
+ singleValueCount?: number | undefined;
80
82
  storageTypeId: StorageTypeId | undefined;
81
83
  validValueCount: number | undefined;
82
84
  validValues: Record<string, string>;
@@ -66,6 +66,7 @@ export interface ColumnChoiceConfig {
66
66
  decimalSeparatorId?: DecimalSeparatorId | undefined;
67
67
  nullWordsAreEmpty?: boolean | undefined;
68
68
  }
69
+ type DataTypeConfig = (typeof DATA_TYPE_CONFIGS)[number];
69
70
  export type DataTypeId = DataTypeConfig['id'];
70
71
  export type DataSubtypeId = DataTypeConfig['subtypeIds'][number];
71
72
  export type NumericSubtypeId = Extract<DataTypeConfig, {
@@ -77,7 +78,6 @@ export type StringSubtypeId = Extract<DataTypeConfig, {
77
78
  export type TemporalSubtypeId = Extract<DataTypeConfig, {
78
79
  id: 'temporal';
79
80
  }>['subtypeIds'][number];
80
- type DataTypeConfig = (typeof DATA_TYPE_CONFIGS)[number];
81
81
  export declare const DATA_FORMAT_CONFIGS: readonly [{
82
82
  readonly id: "arrow";
83
83
  readonly isTable: false;
@@ -179,7 +179,7 @@ export declare const DATA_TYPE_CONFIGS: readonly [{
179
179
  readonly id: "string";
180
180
  readonly defaultSubtypeId: "plain";
181
181
  readonly isChoosable: true;
182
- readonly subtypeIds: readonly ["plain", "email", "url", "uuid", "ulid", "ipv4", "ipv6"];
182
+ readonly subtypeIds: readonly ["plain", "email", "url", "uuid", "ulid", "ipv4", "ipv6", "ipRange", "macAddress", "iban", "isbn", "paymentCard", "hexColor", "json", "countryCode", "currencyCode", "languageCode"];
183
183
  }, {
184
184
  readonly id: "numeric";
185
185
  readonly defaultSubtypeId: "integer";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpuse/dpuse-shared",
3
- "version": "1.0.187",
3
+ "version": "1.0.190",
4
4
  "private": false,
5
5
  "description": "Common constants, types and utilities used across DPUse projects.",
6
6
  "license": "MIT",
@@ -64,12 +64,12 @@
64
64
  "valibot": "^1.5.0"
65
65
  },
66
66
  "devDependencies": {
67
- "@dpuse/dpuse-development": "^1.0.147",
67
+ "@dpuse/dpuse-development": "^1.0.148",
68
68
  "@dpuse/eslint-config-dpuse": "^1.0.149",
69
69
  "@types/node": "^26.6.6",
70
70
  "@vitest/coverage-v8": "^5.1.0",
71
71
  "eslint": "^10.14.0",
72
- "fallow": "^3.40.0",
72
+ "fallow": "^3.41.0",
73
73
  "fast-check": "^4.10.2",
74
74
  "iconv-lite": "^0.7.3",
75
75
  "jschardet": "^4.1.0",