UNPKG

empiria-trade

Version:

Empiria Trade TypeScript Library

70 lines (68 loc) 2.92 kB
"use strict"; var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var ontology_1 = require('empiria/ontology'); var index_1 = require('./index'); var PresentationUnit = (function (_super) { __extends(PresentationUnit, _super); function PresentationUnit() { _super.apply(this, arguments); } PresentationUnit.parse = function (id) { return ontology_1.BaseObjectFactory.parse(PresentationUnit, id); }; Object.defineProperty(PresentationUnit, "empty", { get: function () { return ontology_1.BaseObjectFactory.parseEmpty(PresentationUnit); }, enumerable: true, configurable: true }); PresentationUnit.getList = function (keywords) { if (keywords === void 0) { keywords = ''; } return ontology_1.BaseObjectFactory.parseList(PresentationUnit, keywords); }; Object.defineProperty(PresentationUnit.prototype, "name", { get: function () { return this.data.name; }, enumerable: true, configurable: true }); Object.defineProperty(PresentationUnit.prototype, "pluralName", { get: function () { return this.data.pluralName; }, enumerable: true, configurable: true }); Object.defineProperty(PresentationUnit.prototype, "abbreviation", { get: function () { return this.data.abbreviation; }, enumerable: true, configurable: true }); PresentationUnit.prototype.contentUnits = function () { return this.getLinks(index_1.ContentUnit, 'getContentUnits', this.id.toString()); }; PresentationUnit = __decorate([ ontology_1.empiriaType('Empiria.Trade.PDM.PresentationUnit'), __metadata('design:paramtypes', []) ], PresentationUnit); return PresentationUnit; }(ontology_1.BaseObject)); exports.PresentationUnit = PresentationUnit; //# sourceMappingURL=presentationUnit.js.map