UNPKG

scheunemann-interfaces

Version:
59 lines (58 loc) 2.16 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LeadEntity = void 0; var enums_1 = require("../../general/enums"); var enums_2 = require("../enums"); var LeadEntity = /** @class */ (function () { // #endregion Properties (20) // #region Constructors (1) function LeadEntity(data) { // #region Properties (20) /**Lista de produtos ou serviços de interesse. */ this.activity = []; /**Endereço de e-mail principal para contato. */ this.alternateEmails = []; /**Número de telefone principal. */ this.alternatePhones = []; /**ID do agente ou parceiro que cadastrou o lead. */ this.assignedTo = ''; /**Notas ou observações adicionais. */ this.createdAt = new Date(); /**Tipo de documento (CPF, CNPJ, Passaporte, etc.). */ this.doc = ''; /**Identificador único do lead. */ this.docType = enums_1.EDocType.CNPJ; /**Nome completo ou razão social do lead. */ this.email = ''; this.id = ''; /**Fonte de origem do lead. */ this.interestedIn = []; /**Data e hora de criação. */ this.lastContacted = new Date(); /**Número do documento conforme o tipo. */ this.name = ''; this.note = ''; this.origin = enums_1.ELeadOrigin.OTHERS; /**Status atual. */ this.partnerId = ''; this.internationalCode = '55'; /**Outros endereços de e-mail, se disponíveis. */ this.phoneNumber = ''; /**Outros números de telefone, se disponíveis. */ this.sandbox = false; /**Data e hora do último contato. */ this.status = enums_2.LeadStatusEnum.NEW; /**ID do colaborador responsável pelo lead. */ this.tags = []; this.updatedAt = new Date(); if (data) { for (var key in data) { if (data.hasOwnProperty(key) && key in this) { this[key] = data[key]; } } } } return LeadEntity; }()); exports.LeadEntity = LeadEntity;