UNPKG

@xompass/sdk-cloud-api

Version:

Xompass Client for cloud-api

72 lines (71 loc) 2.02 kB
import { ModelDefinition } from './BaseModels'; import { Device } from './Device'; import { DeviceEventComment } from './DeviceEventComment'; import { DeviceEventData } from './DeviceEventData'; import { DeviceEventStateChange } from './DeviceEventStateChange'; import { Log } from './Log'; export interface DeviceEventInterface { id?: string; type: string; hash: string; tags?: Array<any>; muted: boolean; seen: boolean; hidden: boolean; starred: boolean; currentState?: string; created?: Date; modified?: Date; deleted?: Date; deviceId?: string; _comments?: Array<any>; _stateChanges?: Array<any>; device?: Device; comments?: DeviceEventComment[]; data?: DeviceEventData[]; stateChanges?: DeviceEventStateChange[]; trackingLogs?: Log[]; } export declare class DeviceEvent implements DeviceEventInterface { id: string; type: string; hash: string; tags: Array<any>; muted: boolean; seen: boolean; hidden: boolean; starred: boolean; currentState: string; created: Date; modified: Date; deleted: Date; deviceId: string; _comments: Array<any>; _stateChanges: Array<any>; device?: Device; comments?: DeviceEventComment[]; data?: DeviceEventData[]; stateChanges?: DeviceEventStateChange[]; trackingLogs?: Log[]; constructor(data?: DeviceEventInterface); /** * The name of the model represented by this $resource, * i.e. `DeviceEvent`. */ static getModelName(): string; /** * @method factory * @author Jonathan Casarrubias * @license MIT * This method creates an instance of DeviceEvent for dynamic purposes. */ static factory(data: DeviceEventInterface): DeviceEvent; /** * @method getModelDefinition * @author Julien Ledun * @license MIT * This method returns an object that represents some of the model * definitions. */ static getModelDefinition(): ModelDefinition; }