UNPKG

amocrm-client

Version:
22 lines 683 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const class_transformer_1 = require("class-transformer"); class ResourceEntity { constructor(factory, attributes) { Object.assign(this, attributes || {}); this.factory = factory; } getFactory() { return this.factory; } isNew() { return this.id !== undefined; } } tslib_1.__decorate([ (0, class_transformer_1.Exclude)(), tslib_1.__metadata("design:type", Object) ], ResourceEntity.prototype, "factory", void 0); exports.default = ResourceEntity; //# sourceMappingURL=ResourceEntity.js.map