/** * @fileoverview ThingsBoard Entity Types * @description ThingsBoard entity type definitions (alarms, assets, customers, etc.) * @author XCON Studio */ /** * ThingsBoard alarm information */ export interface ThingsBoardAlarm { /** Alarm ID */ id: string; /** Alarm type */ type: string; /** Originator (device) ID */ originatorId: string; /** Alarm severity */ severity: 'CRITICAL' | 'MAJOR' | 'MINOR' | 'WARNING' | 'INDETERMINATE'; /** Alarm status */ status: 'ACTIVE_UNACK' | 'ACTIVE_ACK' | 'CLEARED_UNACK' | 'CLEARED_ACK'; /** Alarm details */ details?: Record; /** Start timestamp */ startTs: number; /** End timestamp */ endTs?: number; /** Acknowledge timestamp */ ackTs?: number; /** Clear timestamp */ clearTs?: number; } /** * ThingsBoard dashboard information */ export interface ThingsBoardDashboard { /** Dashboard ID */ id: string; /** Dashboard title */ title: string; /** Dashboard description */ description?: string; /** Dashboard configuration */ configuration?: Record; /** Creation timestamp */ createdTime: number; /** Assigned customers */ assignedCustomers?: string[]; } /** * ThingsBoard customer information */ export interface ThingsBoardCustomer { /** Customer ID */ id: string; /** Customer title */ title: string; /** Customer email */ email?: string; /** Customer phone */ phone?: string; /** Customer address */ address?: string; /** Additional info */ additionalInfo?: Record; /** Creation timestamp */ createdTime: number; } /** * ThingsBoard tenant information */ export interface ThingsBoardTenant { /** Tenant ID */ id: string; /** Tenant title */ title: string; /** Tenant email */ email?: string; /** Tenant phone */ phone?: string; /** Tenant address */ address?: string; /** Additional info */ additionalInfo?: Record; /** Creation timestamp */ createdTime: number; } /** * ThingsBoard user information */ export interface ThingsBoardUser { /** User ID */ id: string; /** User email */ email: string; /** First name */ firstName?: string; /** Last name */ lastName?: string; /** User authority */ authority: 'SYS_ADMIN' | 'TENANT_ADMIN' | 'CUSTOMER_USER'; /** Customer ID (if customer user) */ customerId?: string; /** Additional info */ additionalInfo?: Record; /** Creation timestamp */ createdTime: number; } /** * ThingsBoard rule chain information */ export interface ThingsBoardRuleChain { /** Rule chain ID */ id: string; /** Rule chain name */ name: string; /** Root rule chain flag */ root: boolean; /** Debug mode flag */ debugMode: boolean; /** Additional info */ additionalInfo?: Record; /** Creation timestamp */ createdTime: number; } /** * ThingsBoard asset information */ export interface ThingsBoardAsset { /** Asset ID */ id: string; /** Asset name */ name: string; /** Asset type */ type: string; /** Asset label */ label?: string; /** Customer ID */ customerId?: string; /** Additional info */ additionalInfo?: Record; /** Creation timestamp */ createdTime: number; } //# sourceMappingURL=types.d.ts.map