UNPKG

cannoli-interfaces

Version:
29 lines (28 loc) 856 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NotifyEntity = void 0; var cannoli_1 = require("../../cannoli"); var NotifyEntity = /** @class */ (function () { function NotifyEntity(data) { var _this = this; this.active = true; this.companyId = ''; this.containerId = ''; this.createdAt = new Date(); this.data = {}; this.id = ''; this.notified = false; this.notifiedAt = 0; this.topic = cannoli_1.CannoliETopics.orderStatusChanged; this.updatedAt = 0; if (data) { Object.keys(data).forEach(function (key) { if (key in _this) { _this[key] = data[key]; } }); } } return NotifyEntity; }()); exports.NotifyEntity = NotifyEntity;