UNPKG

empiria-trade

Version:

Empiria Trade TypeScript Library

62 lines (60 loc) 2.45 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 ContentUnit = (function (_super) { __extends(ContentUnit, _super); function ContentUnit() { _super.apply(this, arguments); } ContentUnit.parse = function (id) { return ontology_1.BaseObjectFactory.parse(ContentUnit, id); }; Object.defineProperty(ContentUnit, "empty", { get: function () { return ontology_1.BaseObjectFactory.parseEmpty(ContentUnit); }, enumerable: true, configurable: true }); Object.defineProperty(ContentUnit.prototype, "name", { get: function () { return this.data.name; }, enumerable: true, configurable: true }); Object.defineProperty(ContentUnit.prototype, "pluralName", { get: function () { return this.data.pluralName; }, enumerable: true, configurable: true }); Object.defineProperty(ContentUnit.prototype, "abbreviation", { get: function () { return this.data.abbreviation; }, enumerable: true, configurable: true }); ContentUnit = __decorate([ ontology_1.empiriaType('Empiria.Trade.PDM.ContentUnit'), __metadata('design:paramtypes', []) ], ContentUnit); return ContentUnit; }(ontology_1.BaseObject)); exports.ContentUnit = ContentUnit; //# sourceMappingURL=contentUnit.js.map