@dpuse/dpuse-shared 1.0.174 → 1.0.176
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.
|
@@ -59,6 +59,8 @@ export interface ObjectColumnConfig {
|
|
|
59
59
|
dataSubtypeId: DataSubtypeId | undefined;
|
|
60
60
|
dateOrderId: DateOrderId | undefined;
|
|
61
61
|
decimalSeparatorId: DecimalSeparatorId | undefined;
|
|
62
|
+
derivationId?: ColumnDerivationId | undefined;
|
|
63
|
+
derivedFromColumnIndex?: number | undefined;
|
|
62
64
|
distinctValueCount: number | undefined;
|
|
63
65
|
frequentValues: Record<string, number> | undefined;
|
|
64
66
|
inferenceCounts: Record<string, number>;
|
|
@@ -78,6 +80,7 @@ export interface ObjectColumnConfig {
|
|
|
78
80
|
minSize: number | undefined;
|
|
79
81
|
minValue: string | undefined;
|
|
80
82
|
minWholeDigits: number | undefined;
|
|
83
|
+
numericReadings?: Partial<Record<DecimalSeparatorId, NumericReadingConfig>> | undefined;
|
|
81
84
|
missingValueCount: number | undefined;
|
|
82
85
|
formats: Record<string, number>;
|
|
83
86
|
paddedValueCount: number | undefined;
|
|
@@ -87,6 +90,8 @@ export interface ObjectColumnConfig {
|
|
|
87
90
|
validValues: Record<string, string>;
|
|
88
91
|
voidValueCount: number | undefined;
|
|
89
92
|
}
|
|
93
|
+
export type ColumnDerivationId = 'currency' | 'unit';
|
|
94
|
+
export type NumericReadingConfig = Pick<ObjectColumnConfig, 'dataSubtypeId' | 'maxDecimals' | 'maxValue' | 'maxWholeDigits' | 'minDecimals' | 'minValue' | 'minWholeDigits' | 'storageTypeId'>;
|
|
90
95
|
export type DateOrderId = 'dayFirst' | 'monthFirst';
|
|
91
96
|
export type DecimalSeparatorId = ',' | '.';
|
|
92
97
|
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, ObjectColumnConfig } from '../connection';
|
|
3
|
+
import { ConnectionNodeConfig, DecimalSeparatorId, ObjectColumnConfig } from '../connection';
|
|
4
4
|
export interface DataViewConfig extends ComponentInstanceConfig {
|
|
5
5
|
typeId: 'dataView';
|
|
6
6
|
connectionId: string;
|
|
@@ -18,6 +18,7 @@ export interface ColumnSetConfig {
|
|
|
18
18
|
export interface DataViewColumnConfig extends ObjectColumnConfig {
|
|
19
19
|
chosenDataSubtypeId?: DataSubtypeId | undefined;
|
|
20
20
|
chosenDataTypeId?: DataTypeId | undefined;
|
|
21
|
+
chosenDecimalSeparatorId?: DecimalSeparatorId | undefined;
|
|
21
22
|
}
|
|
22
23
|
export interface ReadConfig {
|
|
23
24
|
commentMarkId?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dpuse/dpuse-shared",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.176",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Common constants, types and utilities used across DPUse projects.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@dpuse/dpuse-development": "^1.0.145",
|
|
68
68
|
"@dpuse/eslint-config-dpuse": "^1.0.148",
|
|
69
69
|
"@types/node": "^26.6.6",
|
|
70
|
-
"@vitest/coverage-v8": "^5.0
|
|
70
|
+
"@vitest/coverage-v8": "^5.1.0",
|
|
71
71
|
"eslint": "^10.14.0",
|
|
72
72
|
"fallow": "^3.38.1",
|
|
73
73
|
"fast-check": "^4.10.2",
|
|
@@ -77,6 +77,6 @@
|
|
|
77
77
|
"typescript": "^6.0.3",
|
|
78
78
|
"vite": "^8.3.5",
|
|
79
79
|
"vite-plugin-dts": "^5.1.2",
|
|
80
|
-
"vitest": "^5.0
|
|
80
|
+
"vitest": "^5.1.0"
|
|
81
81
|
}
|
|
82
82
|
}
|