Skip to content

Commit db61730

Browse files
author
Marko Petzold
committed
chore: regenerate types
1 parent 1feecf3 commit db61730

1 file changed

Lines changed: 37 additions & 10 deletions

File tree

src/definition-schema.d.ts

Lines changed: 37 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,39 +5,48 @@
55
* and run json-schema-to-typescript to regenerate this file.
66
*/
77

8+
/**
9+
* The main heading displayed above the value displays. Use to identify the metric group (e.g., 'Temperature Readings', 'Production Counts').
10+
*/
811
export type Title = string;
12+
/**
13+
* Secondary text displayed below the title. Use for additional context like location, time period, or data source.
14+
*/
915
export type Subtitle = string;
1016
/**
11-
* The label for the value.
17+
* Display text identifying this value. Should clearly describe what the number represents (e.g., 'Current Temperature', 'Total Orders', 'CPU Usage').
1218
*/
1319
export type Label = string;
1420
/**
15-
* The unit of the value. e.g. °C or km/h
21+
* The measurement unit displayed after the value. Examples: '°C', 'km/h', '%', 'kWh', 'pcs'. Can be bound to data for dynamic units.
1622
*/
1723
export type Unit = string;
1824
/**
19-
* Number of digits after the decimal point. (Default 0)
25+
* Number of decimal places to display. Default is 0 (whole numbers). Set to 1-3 for measurements requiring decimal precision (e.g., temperature: 2, percentages: 1).
2026
*/
2127
export type Decimals = number;
2228
/**
23-
* The value of the gauge
29+
* The numeric value to display. Bind to a data source column containing the metric. Only shown when Multi Chart mode is disabled.
2430
*/
2531
export type Value = number;
2632
/**
27-
* Draw multiple Charts based on the split column of a data table.
33+
* Enable to automatically create one value display per distinct pivot value in the data. When enabled, use the data array with pivot column instead of a single value.
2834
*/
2935
export type MultiChart = boolean;
3036
/**
31-
* This should be an ISO String date like 2023-11-04T22:47:52.351152+00:00. Will only be used to detect data age of data.
37+
* ISO 8601 timestamp string (e.g., '2023-11-04T22:47:52.351152+00:00'). Used with Maximum Latency setting to validate data freshness - stale data can be hidden or marked.
3238
*/
3339
export type Timestamp = string;
40+
/**
41+
* The numeric value from this data row. In Multi Chart mode, the latest value per pivot group is displayed.
42+
*/
3443
export type Value1 = number;
3544
/**
36-
* You can specify a column in the input data to autogenerate dataseries for each distinct entry in this column. E.g. if you have a table with columns [city, timestamp, temperature] and specify 'city' as split column, then you will get a value field for each city.
45+
* Column used to group data into separate value displays. Each unique value creates its own display. Example: with columns [city, timestamp, temperature], setting pivot to 'city' shows one temperature value per city.
3746
*/
3847
export type SplitDataBy = string;
3948
/**
40-
* The data used to draw this data series.
49+
* Data array for Multi Chart mode. Each row should contain a value and optionally a timestamp and pivot column for splitting into multiple displays.
4150
*/
4251
export type Data = {
4352
tsp?: Timestamp;
@@ -46,13 +55,16 @@ export type Data = {
4655
[k: string]: unknown;
4756
}[];
4857
/**
49-
* Calculate the average over the given number of newest values. (If you use "Split data by", then per each of the pivot dataseries.) If not specified then the latest value is shown without modification.
58+
* Calculate and display the average of the N most recent values instead of just the latest. Useful for smoothing noisy sensor data. Leave empty to show the raw latest value. When using pivot/split, averaging is applied per group.
5059
*/
5160
export type AverageLatestValues = number;
5261
/**
53-
* If you provide timestamp data, the delivered value is only shown in the gauge when the age of the data is not older than the given maximum Latency in seconds.
62+
* Maximum acceptable age of data in seconds. If the timestamp indicates data older than this threshold, the value may be hidden or marked as stale. Requires timestamp data to be provided. Useful for real-time monitoring where outdated values are misleading.
5463
*/
5564
export type MaximumLatency = number;
65+
/**
66+
* Array of value display configurations. Each entry creates a labeled numeric display with optional unit and styling. Add multiple entries to show several related metrics together.
67+
*/
5668
export type ValueDisplays = {
5769
label?: Label;
5870
unit?: Unit;
@@ -65,23 +77,38 @@ export type ValueDisplays = {
6577
[k: string]: unknown;
6678
}[];
6779

80+
/**
81+
* A simple numeric value display widget for showing key metrics with labels and units. Use this widget to prominently display important numbers like sensor readings, KPIs, counts, or any scalar values. Supports multiple value displays in one widget, each with its own label, unit, and formatting. Features include decimal precision control, data freshness validation via timestamps, averaging over recent values, and automatic pivot/split functionality for showing one value per distinct category. Ideal for dashboard KPI tiles, sensor readouts, counters, or any scenario requiring clean numeric value presentation.
82+
*/
6883
export interface InputData {
6984
title?: Title;
7085
subTitle?: Subtitle;
7186
dataseries?: ValueDisplays;
7287
[k: string]: unknown;
7388
}
89+
/**
90+
* Visual styling options for the label and value text colors.
91+
*/
7492
export interface Styling {
7593
labelColor?: LabelColor;
7694
valueColor?: ValueColor;
7795
[k: string]: unknown;
7896
}
97+
/**
98+
* Color of the label text above or beside the value.
99+
*/
79100
export interface LabelColor {
80101
[k: string]: unknown;
81102
}
103+
/**
104+
* Color of the numeric value and unit text.
105+
*/
82106
export interface ValueColor {
83107
[k: string]: unknown;
84108
}
109+
/**
110+
* Advanced data processing options for averaging and freshness validation.
111+
*/
85112
export interface AdvancedSettings {
86113
averageLatest?: AverageLatestValues;
87114
maxLatency?: MaximumLatency;

0 commit comments

Comments
 (0)