UNPKG

@xompass/sdk-cloud-api

Version:

Xompass Client for cloud-api

67 lines (66 loc) 1.81 kB
import { ModelDefinition } from './BaseModels'; import { Customer } from './Customer'; import { DeviceEvent } from './DeviceEvent'; import { DeviceToken } from './DeviceToken'; import { EdgeAgent } from './EdgeAgent'; import { Log } from './Log'; import { TelegramChat } from './TelegramChat'; export interface DeviceInterface { id?: string; name: string; enabled: boolean; description?: string; requested?: Date; created?: Date; modified?: Date; deleted?: Date; customerId?: any; _config?: any; customer?: Customer; config?: any[]; events?: DeviceEvent[]; token?: DeviceToken; edgeAgents?: EdgeAgent[]; trackingLogs?: Log[]; telegramChats?: TelegramChat[]; } export declare class Device implements DeviceInterface { id: string; name: string; enabled: boolean; description: string; requested: Date; created: Date; modified: Date; deleted: Date; customerId: any; _config: any; customer?: Customer; config?: any[]; events?: DeviceEvent[]; token?: DeviceToken; edgeAgents?: EdgeAgent[]; trackingLogs?: Log[]; telegramChats?: TelegramChat[]; constructor(data?: DeviceInterface); /** * The name of the model represented by this $resource, * i.e. `Device`. */ static getModelName(): string; /** * @method factory * @author Jonathan Casarrubias * @license MIT * This method creates an instance of Device for dynamic purposes. */ static factory(data: DeviceInterface): Device; /** * @method getModelDefinition * @author Julien Ledun * @license MIT * This method returns an object that represents some of the model * definitions. */ static getModelDefinition(): ModelDefinition; }