UNPKG

@xompass/sdk-cloud-api

Version:

Xompass Client for cloud-api

135 lines 4.32 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.VirtualVariable = void 0; var VirtualVariable = /** @class */ (function () { function VirtualVariable(data) { this.type = 'null'; Object.assign(this, data); } /** * The name of the model represented by this $resource, * i.e. `VirtualVariable`. */ VirtualVariable.getModelName = function () { return 'VirtualVariable'; }; /** * @method factory * @author Jonathan Casarrubias * @license MIT * This method creates an instance of VirtualVariable for dynamic purposes. */ VirtualVariable.factory = function (data) { return new VirtualVariable(data); }; /** * @method getModelDefinition * @author Julien Ledun * @license MIT * This method returns an object that represents some of the model * definitions. */ VirtualVariable.getModelDefinition = function () { return { name: 'VirtualVariable', plural: 'VirtualVariables', path: 'VirtualVariables', idName: 'id', properties: { type: { name: 'type', type: 'string', default: 'null' }, name: { name: 'name', type: 'string' }, description: { name: 'description', type: 'string' }, value: { name: 'value', type: 'number' }, created: { name: 'created', type: 'Date' }, modified: { name: 'modified', type: 'Date' }, deleted: { name: 'deleted', type: 'Date', default: undefined }, id: { name: 'id', type: 'any' }, projectId: { name: 'projectId', type: 'any' }, sensorId: { name: 'sensorId', type: 'any' }, virtualGroupId: { name: 'virtualGroupId', type: 'any' }, }, relations: { trackingLogs: { name: 'trackingLogs', type: 'Log[]', model: 'Log', relationType: 'hasMany', keyFrom: 'id', keyTo: 'trackingModelId' }, project: { name: 'project', type: 'Project', model: 'Project', relationType: 'belongsTo', keyFrom: 'projectId', keyTo: 'id' }, sensor: { name: 'sensor', type: 'Sensor', model: 'Sensor', relationType: 'belongsTo', keyFrom: 'sensorId', keyTo: 'id' }, virtualGroup: { name: 'virtualGroup', type: 'VirtualGroup', model: 'VirtualGroup', relationType: 'belongsTo', keyFrom: 'virtualGroupId', keyTo: 'id' }, virtualExpressions: { name: 'virtualExpressions', type: 'VirtualExpression[]', model: 'VirtualExpression', relationType: 'hasMany', modelThrough: 'VirtualVariableVirtualExpression', keyThrough: 'virtualExpressionId', keyFrom: 'id', keyTo: 'virtualVariableId' }, } }; }; return VirtualVariable; }()); exports.VirtualVariable = VirtualVariable; //# sourceMappingURL=VirtualVariable.js.map