myio-js-library 0.1.168 → 0.1.172
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.
- package/dist/index.cjs +867 -300
- package/dist/index.d.cts +8 -3
- package/dist/index.js +867 -300
- package/dist/myio-js-library.umd.js +869 -304
- package/dist/myio-js-library.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -620,14 +620,16 @@ declare namespace DeviceStatusType {
|
|
|
620
620
|
let MAINTENANCE: string;
|
|
621
621
|
let NO_INFO: string;
|
|
622
622
|
let NOT_INSTALLED: string;
|
|
623
|
+
let OFFLINE: string;
|
|
623
624
|
}
|
|
624
625
|
/**
|
|
625
626
|
* Connection status types enum
|
|
626
627
|
*/
|
|
627
628
|
type ConnectionStatusType = string;
|
|
628
629
|
declare namespace ConnectionStatusType {
|
|
629
|
-
let CONNECTED: string;
|
|
630
|
-
let
|
|
630
|
+
export let CONNECTED: string;
|
|
631
|
+
let OFFLINE_1: string;
|
|
632
|
+
export { OFFLINE_1 as OFFLINE };
|
|
631
633
|
}
|
|
632
634
|
/**
|
|
633
635
|
* Device status icons mapping
|
|
@@ -2181,8 +2183,11 @@ declare function interpolateTemperature(data: TemperatureTelemetry[], options: {
|
|
|
2181
2183
|
declare function aggregateByDay(data: TemperatureTelemetry[], clampRange?: ClampRange): DailyTemperatureStats[];
|
|
2182
2184
|
/**
|
|
2183
2185
|
* Formats temperature value for display
|
|
2186
|
+
* @param value - Temperature value in Celsius
|
|
2187
|
+
* @param decimals - Number of decimal places (default: 1)
|
|
2188
|
+
* @returns Formatted temperature string with °C unit, or '—' if value is invalid
|
|
2184
2189
|
*/
|
|
2185
|
-
declare function formatTemperature(value: number, decimals?: number): string;
|
|
2190
|
+
declare function formatTemperature(value: number | null | undefined, decimals?: number): string;
|
|
2186
2191
|
/**
|
|
2187
2192
|
* Exports temperature data to CSV format
|
|
2188
2193
|
*/
|