UNPKG

@xompass/sdk-cloud-api

Version:

Xompass Client for cloud-api

177 lines 5.58 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Storyline = void 0; var Storyline = /** @class */ (function () { function Storyline(data) { this.assetIds = []; Object.assign(this, data); } /** * The name of the model represented by this $resource, * i.e. `Storyline`. */ Storyline.getModelName = function () { return 'Storyline'; }; /** * @method factory * @author Jonathan Casarrubias * @license MIT * This method creates an instance of Storyline for dynamic purposes. */ Storyline.factory = function (data) { return new Storyline(data); }; /** * @method getModelDefinition * @author Julien Ledun * @license MIT * This method returns an object that represents some of the model * definitions. */ Storyline.getModelDefinition = function () { return { name: 'Storyline', plural: 'Storylines', path: 'Storylines', idName: 'id', properties: { name: { name: 'name', type: 'string' }, status: { name: 'status', type: 'string' }, storylineDate: { name: 'storylineDate', type: 'Date' }, description: { name: 'description', type: 'string' }, placeOfReference: { name: 'placeOfReference', type: 'string' }, storypointsOrder: { name: 'storypointsOrder', type: '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' }, customerId: { name: 'customerId', type: 'any' }, userId: { name: 'userId', type: 'string' }, principalType: { name: 'principalType', type: 'string' }, assetIds: { name: 'assetIds', type: 'Array<any>', default: [] }, storylineCategoryId: { name: 'storylineCategoryId', type: 'string' }, }, 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' }, customer: { name: 'customer', type: 'Customer', model: 'Customer', relationType: 'belongsTo', keyFrom: 'customerId', keyTo: 'id' }, author: { name: 'author', type: 'any', model: '', relationType: 'belongsTo', keyFrom: 'userId', keyTo: 'id' }, assets: { name: 'assets', type: 'Asset[]', model: 'Asset', relationType: 'referencesMany', keyFrom: 'assetIds', keyTo: 'id' }, storylineCategory: { name: 'storylineCategory', type: 'StorylineCategory', model: 'StorylineCategory', relationType: 'belongsTo', keyFrom: 'storylineCategoryId', keyTo: 'id' }, container: { name: 'container', type: 'any', model: '', relationType: 'hasOne', keyFrom: 'id', keyTo: 'storylineId' }, storypoints: { name: 'storypoints', type: 'Storypoint[]', model: 'Storypoint', relationType: 'hasMany', keyFrom: 'id', keyTo: 'storylineId' }, } }; }; return Storyline; }()); exports.Storyline = Storyline; //# sourceMappingURL=Storyline.js.map