cannoli-interfaces
Version:
Interfaces de Projetos Cannoli
37 lines (36 loc) • 1.12 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.UserEntity = void 0;
var enums_1 = require("../enums");
var UserEntity = /** @class */ (function () {
// #endregion Properties (16)
// #region Constructors (1)
function UserEntity(data) {
// #region Properties (16)
this.accessCount = 0;
this.active = true;
this.code = null;
this.createdAt = new Date();
this.currentCompanyId = null;
this.currentCompanyName = null;
this.email = null;
this.id = '';
this.imageUrl = null;
this.internationalCode = '55';
this.lastAccessAt = new Date();
this.name = '';
this.phoneNumber = '';
this.tags = [];
this.type = enums_1.PayioUserTypeEnum.NONE;
this.updatedAt = new Date();
if (data) {
for (var key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
return UserEntity;
}());
exports.UserEntity = UserEntity;