@xompass/sdk-cloud-api
Version:
Xompass Client for cloud-api
69 lines (68 loc) • 2.02 kB
TypeScript
import { ModelDefinition } from './BaseModels';
import { Asset } from './Asset';
import { Alert } from './Alert';
import { AlertHistory } from './AlertHistory';
import { AssetStateTemplate } from './AssetStateTemplate';
import { EventTriggerAssetState } from './EventTriggerAssetState';
import { Log } from './Log';
import { Sensor } from './Sensor';
import { SensorAssetState } from './SensorAssetState';
export interface AssetStateInterface {
name?: string;
schedulerType: string;
scheduler?: any;
created?: Date;
modified?: Date;
deleted?: Date;
id?: any;
assetId?: any;
templateId?: any;
asset?: Asset;
alerts?: Alert[];
alertHistory?: AlertHistory[];
template?: AssetStateTemplate;
eventTriggerAssetStates?: EventTriggerAssetState[];
trackingLogs?: Log[];
sensors?: Sensor[];
states?: SensorAssetState[];
}
export declare class AssetState implements AssetStateInterface {
name: string;
schedulerType: string;
scheduler: any;
created: Date;
modified: Date;
deleted: Date;
id: any;
assetId: any;
templateId: any;
asset?: Asset;
alerts?: Alert[];
alertHistory?: AlertHistory[];
template?: AssetStateTemplate;
eventTriggerAssetStates?: EventTriggerAssetState[];
trackingLogs?: Log[];
sensors?: Sensor[];
states?: SensorAssetState[];
constructor(data?: AssetStateInterface);
/**
* The name of the model represented by this $resource,
* i.e. `AssetState`.
*/
static getModelName(): string;
/**
* @method factory
* @author Jonathan Casarrubias
* @license MIT
* This method creates an instance of AssetState for dynamic purposes.
*/
static factory(data: AssetStateInterface): AssetState;
/**
* @method getModelDefinition
* @author Julien Ledun
* @license MIT
* This method returns an object that represents some of the model
* definitions.
*/
static getModelDefinition(): ModelDefinition;
}