UNPKG

cecon-interfaces

Version:
31 lines (30 loc) 912 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UserEntity = void 0; var enums_1 = require("../enums"); var UserEntity = /** @class */ (function () { function UserEntity(data) { this.accessCount = 0; this.active = true; this.createdAt = new Date(); 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;