@xompass/sdk-cloud-api
Version:
Xompass Client for cloud-api
60 lines (59 loc) • 1.57 kB
TypeScript
import { ModelDefinition } from './BaseModels';
import { Device } from './Device';
import { DeviceEvent } from './DeviceEvent';
import { Log } from './Log';
export interface DeviceEventDataInterface {
id?: string;
type: string;
hash: string;
tags?: Array<any>;
content: any;
meta?: any;
level?: string;
created?: Date;
modified?: Date;
deleted?: Date;
deviceId?: string;
deviceEventId?: string;
device?: Device;
event?: DeviceEvent;
trackingLogs?: Log[];
}
export declare class DeviceEventData implements DeviceEventDataInterface {
id: string;
type: string;
hash: string;
tags: Array<any>;
content: any;
meta: any;
level: string;
created: Date;
modified: Date;
deleted: Date;
deviceId: string;
deviceEventId: string;
device?: Device;
event?: DeviceEvent;
trackingLogs?: Log[];
constructor(data?: DeviceEventDataInterface);
/**
* The name of the model represented by this $resource,
* i.e. `DeviceEventData`.
*/
static getModelName(): string;
/**
* @method factory
* @author Jonathan Casarrubias
* @license MIT
* This method creates an instance of DeviceEventData for dynamic purposes.
*/
static factory(data: DeviceEventDataInterface): DeviceEventData;
/**
* @method getModelDefinition
* @author Julien Ledun
* @license MIT
* This method returns an object that represents some of the model
* definitions.
*/
static getModelDefinition(): ModelDefinition;
}