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