UNPKG

@xompass/sdk-cloud-api

Version:

Xompass Client for cloud-api

117 lines 3.78 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.VirtualExpression = void 0; var VirtualExpression = /** @class */ (function () { function VirtualExpression(data) { Object.assign(this, data); } /** * The name of the model represented by this $resource, * i.e. `VirtualExpression`. */ VirtualExpression.getModelName = function () { return 'VirtualExpression'; }; /** * @method factory * @author Jonathan Casarrubias * @license MIT * This method creates an instance of VirtualExpression for dynamic purposes. */ VirtualExpression.factory = function (data) { return new VirtualExpression(data); }; /** * @method getModelDefinition * @author Julien Ledun * @license MIT * This method returns an object that represents some of the model * definitions. */ VirtualExpression.getModelDefinition = function () { return { name: 'VirtualExpression', plural: 'VirtualExpressions', path: 'VirtualExpressions', idName: 'id', properties: { name: { name: 'name', type: 'string' }, description: { name: 'description', type: 'string' }, expression: { name: 'expression', type: 'string' }, 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' }, 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' }, virtualGroup: { name: 'virtualGroup', type: 'VirtualGroup', model: 'VirtualGroup', relationType: 'belongsTo', keyFrom: 'virtualGroupId', keyTo: 'id' }, virtualVariables: { name: 'virtualVariables', type: 'VirtualVariable[]', model: 'VirtualVariable', relationType: 'hasMany', modelThrough: 'VirtualVariableVirtualExpression', keyThrough: 'virtualVariableId', keyFrom: 'id', keyTo: 'virtualExpressionId' }, } }; }; return VirtualExpression; }()); exports.VirtualExpression = VirtualExpression; //# sourceMappingURL=VirtualExpression.js.map