@xompass/sdk-cloud-api
Version:
Xompass Client for cloud-api
68 lines (67 loc) • 1.74 kB
TypeScript
import { ModelDefinition } from './BaseModels';
import { Log } from './Log';
import { Asset } from './Asset';
import { Sensor } from './Sensor';
import { Dataset } from './Dataset';
import { SummaryForAsset } from './SummaryForAsset';
export interface SummaryInterface {
id?: string;
type: string;
from: Date;
to: Date;
length: number;
detail: any;
updated: boolean;
created?: Date;
modified?: Date;
deleted?: Date;
assetId?: any;
sensorId?: any;
summaryForAssetId?: string;
trackingLogs?: Log[];
asset?: Asset;
sensor?: Sensor;
datasets?: Dataset[];
summaryForAsset?: SummaryForAsset;
}
export declare class Summary implements SummaryInterface {
id: string;
type: string;
from: Date;
to: Date;
length: number;
detail: any;
updated: boolean;
created: Date;
modified: Date;
deleted: Date;
assetId: any;
sensorId: any;
summaryForAssetId: string;
trackingLogs?: Log[];
asset?: Asset;
sensor?: Sensor;
datasets?: Dataset[];
summaryForAsset?: SummaryForAsset;
constructor(data?: SummaryInterface);
/**
* The name of the model represented by this $resource,
* i.e. `Summary`.
*/
static getModelName(): string;
/**
* @method factory
* @author Jonathan Casarrubias
* @license MIT
* This method creates an instance of Summary for dynamic purposes.
*/
static factory(data: SummaryInterface): Summary;
/**
* @method getModelDefinition
* @author Julien Ledun
* @license MIT
* This method returns an object that represents some of the model
* definitions.
*/
static getModelDefinition(): ModelDefinition;
}