cannoli-interfaces
Version:
Interfaces de Projetos Cannoli
45 lines (44 loc) • 1.32 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MemberEntity = void 0;
var enums_1 = require("../enums");
var MemberEntity = /** @class */ (function () {
function MemberEntity(data) {
this.active = true;
this.companyId = '';
this.containerId = '';
this.createdAt = new Date();
this.id = '';
this.updatedAt = new Date();
this.companyName = '';
this.containerName = '';
this.email = '';
this.imageUrl = '';
this.internationalCode = '55';
this.name = '';
this.partnerId = '';
this.phoneNumber = '';
this.phoneNumberVerified = false;
this.phoneNumberVerifiedAt = null;
/**
* @deprecated Use `imageUrl` instead
*/
this.photoUrl = '';
this.rule = enums_1.EMemberRules.USER;
this.tags = [];
this.type = enums_1.EMemberType.CLIENT;
/**
* @deprecated Use `id` instead.
*/
this.uid = '';
if (data) {
for (var key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
return MemberEntity;
}());
exports.MemberEntity = MemberEntity;