UNPKG

@xompass/sdk-cloud-api

Version:

Xompass Client for cloud-api

135 lines 4.31 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TrafficFlowAnalysis = void 0; var TrafficFlowAnalysis = /** @class */ (function () { function TrafficFlowAnalysis(data) { this.edges = []; this._kpis = []; this._vertices = []; Object.assign(this, data); } /** * The name of the model represented by this $resource, * i.e. `TrafficFlowAnalysis`. */ TrafficFlowAnalysis.getModelName = function () { return 'TrafficFlowAnalysis'; }; /** * @method factory * @author Jonathan Casarrubias * @license MIT * This method creates an instance of TrafficFlowAnalysis for dynamic purposes. */ TrafficFlowAnalysis.factory = function (data) { return new TrafficFlowAnalysis(data); }; /** * @method getModelDefinition * @author Julien Ledun * @license MIT * This method returns an object that represents some of the model * definitions. */ TrafficFlowAnalysis.getModelDefinition = function () { return { name: 'TrafficFlowAnalysis', plural: 'TrafficFlowAnalysis', path: 'TrafficFlowAnalysis', idName: 'id', properties: { name: { name: 'name', type: 'string' }, description: { name: 'description', type: 'string' }, edges: { name: 'edges', type: 'Array<any>', default: [] }, 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' }, _kpis: { name: '_kpis', type: 'Array<any>', default: [] }, _vertices: { name: '_vertices', type: 'Array<any>', default: [] }, }, 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' }, managers: { name: 'managers', type: 'Manager[]', model: 'Manager', relationType: 'hasMany', modelThrough: 'ManagerTrafficFlowAnalysis', keyThrough: 'managerId', keyFrom: 'id', keyTo: 'trafficFlowAnalysisId' }, kpis: { name: 'kpis', type: 'any[]', model: '', relationType: 'embedsMany', keyFrom: '_kpis', keyTo: 'id' }, vertices: { name: 'vertices', type: 'any[]', model: '', relationType: 'embedsMany', keyFrom: '_vertices', keyTo: 'id' }, } }; }; return TrafficFlowAnalysis; }()); exports.TrafficFlowAnalysis = TrafficFlowAnalysis; //# sourceMappingURL=TrafficFlowAnalysis.js.map