UNPKG

empiria-trade

Version:

Empiria Trade TypeScript Library

73 lines (71 loc) 2.87 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 empiria_1 = require('empiria'); var Brand = (function (_super) { __extends(Brand, _super); function Brand() { _super.apply(this, arguments); } Brand.parse = function (id) { return ontology_1.BaseObjectFactory.parse(Brand, id); }; Object.defineProperty(Brand, "empty", { get: function () { return ontology_1.BaseObjectFactory.parseEmpty(Brand); }, enumerable: true, configurable: true }); Brand.getList = function (keywords) { if (keywords === void 0) { keywords = ''; } return ontology_1.BaseObjectFactory.parseList(Brand, keywords); }; Brand.getListAsync = function (keywords) { if (keywords === void 0) { keywords = ''; } var empiriaTypeName = ontology_1.EmpiriaType.getTypeName(Brand); var dataOperation = empiria_1.DataOperation.parseForType(empiriaTypeName, 'getList', keywords); return dataOperation.getAsync(); }; Object.defineProperty(Brand.prototype, "name", { get: function () { return this.data.name; }, enumerable: true, configurable: true }); Object.defineProperty(Brand.prototype, "uniqueCode", { get: function () { return this.data.uniqueCode; }, enumerable: true, configurable: true }); Object.defineProperty(Brand.prototype, "status", { get: function () { return this.data.status; }, enumerable: true, configurable: true }); Brand = __decorate([ ontology_1.empiriaType('Empiria.Trade.PDM.Brand'), __metadata('design:paramtypes', []) ], Brand); return Brand; }(ontology_1.BaseObject)); exports.Brand = Brand; //# sourceMappingURL=brand.js.map