/** * @fileoverview ThingsBoard Event Types * @description Event and notification type definitions * @author XCON Studio */ import type { DataSourceEvent } from '@xcons/datasource'; /** * Event types for DataSource events */ export declare enum ThingsBoardEventType { LOADING = "loading", LOADED = "loaded", CHANGED = "changed", CONNECTED = "connected", DISCONNECTED = "disconnected", ERROR = "error", TELEMETRY_UPDATE = "telemetryUpdate", ATTRIBUTE_UPDATE = "attributeUpdate", ALARM = "alarm" } /** * Combined event type for compatibility */ export type ThingsBoardEventTypes = DataSourceEvent | ThingsBoardEventType; /** * ThingsBoard DataSource event */ export interface ThingsBoardEvent { /** Event type */ type: ThingsBoardEventType; /** Event data */ data?: T; /** Event timestamp */ timestamp: number; /** Device ID (if applicable) */ deviceId?: string; /** Error information (if error event) */ error?: Error; } //# sourceMappingURL=types.d.ts.map