myio-js-library 0.1.141 → 0.1.142
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 +617 -12
- package/dist/index.d.cts +44 -1
- package/dist/index.js +616 -12
- package/dist/myio-js-library.umd.js +616 -12
- package/dist/myio-js-library.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2205,6 +2205,12 @@ interface TemperatureDevice {
|
|
|
2205
2205
|
label: string;
|
|
2206
2206
|
/** Alternative ThingsBoard ID */
|
|
2207
2207
|
tbId?: string;
|
|
2208
|
+
/** Customer name (for grouping/display) */
|
|
2209
|
+
customerName?: string;
|
|
2210
|
+
/** Minimum threshold for this device's ideal range */
|
|
2211
|
+
temperatureMin?: number;
|
|
2212
|
+
/** Maximum threshold for this device's ideal range */
|
|
2213
|
+
temperatureMax?: number;
|
|
2208
2214
|
}
|
|
2209
2215
|
interface TemperatureComparisonModalParams {
|
|
2210
2216
|
/** JWT token for ThingsBoard API */
|
|
@@ -2227,6 +2233,10 @@ interface TemperatureComparisonModalParams {
|
|
|
2227
2233
|
granularity?: TemperatureGranularity;
|
|
2228
2234
|
/** Initial theme */
|
|
2229
2235
|
theme?: 'dark' | 'light';
|
|
2236
|
+
/** Minimum threshold for ideal range (Y-axis will include this) */
|
|
2237
|
+
temperatureMin?: number;
|
|
2238
|
+
/** Maximum threshold for ideal range (Y-axis will include this) */
|
|
2239
|
+
temperatureMax?: number;
|
|
2230
2240
|
}
|
|
2231
2241
|
interface TemperatureComparisonModalInstance {
|
|
2232
2242
|
/** Destroys the modal */
|
|
@@ -2239,4 +2249,37 @@ interface TemperatureComparisonModalInstance {
|
|
|
2239
2249
|
*/
|
|
2240
2250
|
declare function openTemperatureComparisonModal(params: TemperatureComparisonModalParams): Promise<TemperatureComparisonModalInstance>;
|
|
2241
2251
|
|
|
2242
|
-
|
|
2252
|
+
/**
|
|
2253
|
+
* Temperature Settings Modal Component
|
|
2254
|
+
* RFC-0085: Customer-level temperature threshold configuration
|
|
2255
|
+
*
|
|
2256
|
+
* Allows configuring minTemperature and maxTemperature attributes
|
|
2257
|
+
* for a ThingsBoard customer (SERVER_SCOPE).
|
|
2258
|
+
*/
|
|
2259
|
+
interface TemperatureSettingsParams {
|
|
2260
|
+
/** JWT token for ThingsBoard API */
|
|
2261
|
+
token: string;
|
|
2262
|
+
/** Customer ID (ThingsBoard UUID) */
|
|
2263
|
+
customerId: string;
|
|
2264
|
+
/** Customer name for display */
|
|
2265
|
+
customerName?: string;
|
|
2266
|
+
/** Callback when settings are saved */
|
|
2267
|
+
onSave?: (settings: {
|
|
2268
|
+
minTemperature: number;
|
|
2269
|
+
maxTemperature: number;
|
|
2270
|
+
}) => void;
|
|
2271
|
+
/** Callback when modal closes */
|
|
2272
|
+
onClose?: () => void;
|
|
2273
|
+
/** Initial theme */
|
|
2274
|
+
theme?: 'dark' | 'light';
|
|
2275
|
+
}
|
|
2276
|
+
interface TemperatureSettingsInstance {
|
|
2277
|
+
/** Destroys the modal */
|
|
2278
|
+
destroy: () => void;
|
|
2279
|
+
}
|
|
2280
|
+
/**
|
|
2281
|
+
* Opens the temperature settings modal for a customer
|
|
2282
|
+
*/
|
|
2283
|
+
declare function openTemperatureSettingsModal(params: TemperatureSettingsParams): TemperatureSettingsInstance;
|
|
2284
|
+
|
|
2285
|
+
export { CHART_COLORS, type ClampRange, ConnectionStatusType, type CreateDateRangePickerOptions, type CreateInputDateRangePickerInsideDIVParams, DEFAULT_CLAMP_RANGE, type DateRangeControl, type DateRangeInputController, type DateRangeResult, type DemandModalInstance, type DemandModalParams, type DemandModalPdfConfig, type DemandModalStyles, DeviceStatusType, type EnergyModalContext, type EnergyModalError, type EnergyModalI18n, type EnergyModalStyleOverrides, type MyIOAuthConfig, type MyIOAuthInstance, MyIOChartModal, MyIODraggableCard, MyIOSelectionStore, MyIOSelectionStoreClass, MyIOToast, type OpenDashboardPopupEnergyOptions, type OpenDashboardPopupSettingsParams, type OpenDashboardPopupWaterTankOptions, type PersistResult, type RealTimeTelemetryInstance, type RealTimeTelemetryParams, type SettingsError, type SettingsEvent, type StoreRow, type TbScope, type TelemetryFetcher, type TemperatureComparisonModalInstance, type TemperatureComparisonModalParams, type TemperatureDevice, type TemperatureGranularity, type TemperatureModalInstance, type TemperatureModalParams, type TemperatureSettingsInstance, type TemperatureSettingsParams, type TemperatureStats, type TemperatureTelemetry, type ThingsboardCustomerAttrsConfig, type TimedValue, type WaterRow, type WaterTankDataPoint, type WaterTankModalContext, type WaterTankModalError, type WaterTankModalI18n, type WaterTankModalStyleOverrides, type WaterTankTelemetryData, addDetectionContext, addNamespace, aggregateByDay, averageByDay, buildListItemsThingsboardByUniqueDatasource, buildMyioIngestionAuth, buildWaterReportCSV, buildWaterStoresCSV, calcDeltaPercent, calculateDeviceStatus, calculateDeviceStatusWithRanges, calculateStats, clampTemperature, classify, classifyWaterLabel, classifyWaterLabels, clearAllAuthCaches, connectionStatusIcons, createDateRangePicker, createInputDateRangePickerInsideDIV, decodePayload, decodePayloadBase64Xor, detectDeviceType, determineInterval, deviceStatusIcons, exportTemperatureCSV, exportToCSV, exportToCSVAll, extractMyIOCredentials, fetchTemperatureData, fetchThingsboardCustomerAttrsFromStorage, fetchThingsboardCustomerServerScopeAttrs, findValue, fmtPerc$1 as fmtPerc, fmtPerc as fmtPercLegacy, formatAllInSameUnit, formatAllInSameWaterUnit, formatDateForInput, formatDateToYMD, formatDateWithTimezoneOffset, formatEnergy, formatNumberReadable, formatTankHeadFromCm, formatTemperature, formatWaterByGroup, formatWaterVolumeM3, getAuthCacheStats, getAvailableContexts, getConnectionStatusIcon, getDateRangeArray, getDeviceStatusIcon, getDeviceStatusInfo, getSaoPauloISOString, getSaoPauloISOStringFixed, getValueByDatakey, getValueByDatakeyLegacy, getWaterCategories, groupByDay, interpolateTemperature, isDeviceOffline, isValidConnectionStatus, isValidDeviceStatus, isWaterCategory, mapDeviceStatusToCardStatus, mapDeviceToConnectionStatus, normalizeRecipients, numbers, openDashboardPopup, openDashboardPopupAllReport, openDashboardPopupEnergy, openDashboardPopupReport, openDashboardPopupSettings, openDashboardPopupWaterTank, openDemandModal, openGoalsPanel, openRealTimeTelemetryModal, openTemperatureComparisonModal, openTemperatureModal, openTemperatureSettingsModal, parseInputDateToDate, renderCardComponent$2 as renderCardComponent, renderCardComponent$1 as renderCardComponentEnhanced, renderCardComponentHeadOffice, renderCardComponentLegacy, renderCardComponentV2, renderCardComponent as renderCardComponentV5, renderCardComponentV5 as renderCardV5, shouldFlashIcon, strings, timeWindowFromInputYMD, toCSV, toFixedSafe, waterDeviceStatusIcons };
|