@dpuse/dpuse-shared 1.0.195 → 1.0.197
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.
|
@@ -48,6 +48,7 @@ export interface ObjectColumnConfig {
|
|
|
48
48
|
dataTypeId: DataTypeId;
|
|
49
49
|
dataSubtypeId: DataSubtypeId | undefined;
|
|
50
50
|
dateOrderId: DateOrderId | undefined;
|
|
51
|
+
dateReadings?: Partial<Record<DateOrderId, DateReadingConfig>> | undefined;
|
|
51
52
|
decimalSeparatorId: DecimalSeparatorId | undefined;
|
|
52
53
|
derivationId?: ColumnDerivationId | undefined;
|
|
53
54
|
derivedFromColumnIndex?: number | undefined;
|
|
@@ -61,7 +62,7 @@ export interface ObjectColumnConfig {
|
|
|
61
62
|
invalidValues: Record<string, string>;
|
|
62
63
|
isFormatAmbiguous: boolean | undefined;
|
|
63
64
|
isIgnored: boolean | undefined;
|
|
64
|
-
|
|
65
|
+
isComplete: boolean | undefined;
|
|
65
66
|
isUnique: boolean | undefined;
|
|
66
67
|
label: LocaleLabel;
|
|
67
68
|
leadingInferenceCounts: Record<string, number>;
|
|
@@ -80,8 +81,6 @@ export interface ObjectColumnConfig {
|
|
|
80
81
|
nullWordsAreEmpty?: boolean | undefined;
|
|
81
82
|
nullWordValueCount?: number | undefined;
|
|
82
83
|
formats: Record<string, number>;
|
|
83
|
-
paddedValueCount: number | undefined;
|
|
84
|
-
quotedValueCount: number | undefined;
|
|
85
84
|
singleValueCount?: number | undefined;
|
|
86
85
|
storageTypeId: StorageTypeId | undefined;
|
|
87
86
|
validValueCount: number | undefined;
|
|
@@ -104,6 +103,7 @@ export interface ValueBinConfig {
|
|
|
104
103
|
}
|
|
105
104
|
export type ColumnDerivationId = 'currency' | 'unit';
|
|
106
105
|
export type NumericReadingConfig = Pick<ObjectColumnConfig, 'dataSubtypeId' | 'maxDecimals' | 'maxValue' | 'maxWholeDigits' | 'minDecimals' | 'minValue' | 'minWholeDigits' | 'storageTypeId'>;
|
|
106
|
+
export type DateReadingConfig = Pick<ObjectColumnConfig, 'formats' | 'maxValue' | 'minValue'>;
|
|
107
107
|
export type DateOrderId = 'dayFirst' | 'monthFirst';
|
|
108
108
|
export type DecimalSeparatorId = (typeof DECIMAL_SEPARATOR_IDS)[number];
|
|
109
109
|
export type StorageTypeId = 'binary' | 'boolean' | 'byte' | 'date' | 'dateTime' | 'dateTimeOffset' | 'decimal' | 'double' | 'int8' | 'int16' | 'int32' | 'int64' | 'object' | 'single' | 'string' | 'time' | 'unknown';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FileTypeResult } from 'file-type';
|
|
2
2
|
import { ComponentInstanceConfig } from '..';
|
|
3
|
-
import { ConnectionNodeConfig, DecimalSeparatorId, ObjectColumnConfig } from '../connection';
|
|
3
|
+
import { ConnectionNodeConfig, DateOrderId, DecimalSeparatorId, ObjectColumnConfig } from '../connection';
|
|
4
4
|
export interface DataViewConfig extends ComponentInstanceConfig {
|
|
5
5
|
typeId: 'dataView';
|
|
6
6
|
connectionId: string;
|
|
@@ -63,6 +63,7 @@ export type ColumnChoiceConfigs = Partial<Record<string, ColumnChoiceConfig>>;
|
|
|
63
63
|
export interface ColumnChoiceConfig {
|
|
64
64
|
dataTypeId?: DataTypeId | undefined;
|
|
65
65
|
dataSubtypeId?: DataSubtypeId | undefined;
|
|
66
|
+
dateOrderId?: DateOrderId | undefined;
|
|
66
67
|
decimalSeparatorId?: DecimalSeparatorId | undefined;
|
|
67
68
|
nullWordsAreEmpty?: boolean | undefined;
|
|
68
69
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dpuse/dpuse-shared",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.197",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Common constants, types and utilities used across DPUse projects.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"prettier": "^3.9.10",
|
|
77
77
|
"sonda": "^0.14.0",
|
|
78
78
|
"typescript": "^6.0.3",
|
|
79
|
-
"vite": "^8.3.
|
|
79
|
+
"vite": "^8.3.7",
|
|
80
80
|
"vite-plugin-dts": "^5.1.2",
|
|
81
81
|
"vitest": "^5.1.0"
|
|
82
82
|
}
|