UNPKG

@xompass/sdk-cloud-api

Version:

Xompass Client for cloud-api

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