UNPKG

@xompass/sdk-cloud-api

Version:

Xompass Client for cloud-api

117 lines 3.56 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ProcessLayout = void 0; var ProcessLayout = /** @class */ (function () { function ProcessLayout(data) { this.zoom = 1; Object.assign(this, data); } /** * The name of the model represented by this $resource, * i.e. `ProcessLayout`. */ ProcessLayout.getModelName = function () { return 'ProcessLayout'; }; /** * @method factory * @author Jonathan Casarrubias * @license MIT * This method creates an instance of ProcessLayout for dynamic purposes. */ ProcessLayout.factory = function (data) { return new ProcessLayout(data); }; /** * @method getModelDefinition * @author Julien Ledun * @license MIT * This method returns an object that represents some of the model * definitions. */ ProcessLayout.getModelDefinition = function () { return { name: 'ProcessLayout', plural: 'ProcessLayouts', path: 'ProcessLayouts', idName: 'id', properties: { name: { name: 'name', type: 'string' }, zoom: { name: 'zoom', type: 'number', default: 1 }, components: { name: 'components', type: 'Array<any>' }, connectors: { name: 'connectors', type: 'Array<any>' }, controls: { name: 'controls', type: 'Array<any>' }, variables: { name: 'variables', type: 'Array<any>' }, 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' }, container: { name: 'container', type: 'any', model: '', relationType: 'hasOne', keyFrom: 'id', keyTo: 'processLayoutId' }, project: { name: 'project', type: 'Project', model: 'Project', relationType: 'belongsTo', keyFrom: 'projectId', keyTo: 'id' }, } }; }; return ProcessLayout; }()); exports.ProcessLayout = ProcessLayout; //# sourceMappingURL=ProcessLayout.js.map