UNPKG

@arkasuryawan/m2-interfaces

Version:

Squaremetre Data Interfaces

62 lines (61 loc) 1.74 kB
import { AddressInterface, AuditInterface, SourceList } from "./index"; import { AgentInterface } from "./agent.interface"; import mongoose from "mongoose"; export interface AdditionalInformationContact { name: string; value: string; } export interface AdditionalInformationContactServer extends AdditionalInformationContact { } export interface ContactInterfaceServer extends AuditInterface { firstName: string; lastName: string; phoneNumber: string; mobileNumber?: string; email: string; source?: SourceList; address: mongoose.Types.ObjectId; canSeeContactAgentIds?: string[]; canSeeContactAgents?: mongoose.Types.ObjectId[]; belongsToAgentId?: string; belongsToAgent?: mongoose.Types.ObjectId; image: string; subscribed: string[]; status: "Active" | "Archived"; } export interface ContactInterface extends AuditInterface { firstName: string; lastName: string; phoneNumber: string; mobileNumber?: string; email: string; source?: SourceList; address: AddressInterface; canSeeContactAgentIds?: string[]; canSeeContactAgents?: AgentInterface[]; belongsToAgentId?: string; belongsToAgent?: AgentInterface; image: string; subscribed: string[]; status: "Active" | "Archived"; id?: string; dealId?: string; leadsId?: string; pipedrivePersonId?: string; organization?: string; owner?: string; date?: string; country?: string; birthday?: string; jobTitle?: string; postCode?: string; leadSource?: string; campaign?: string; adset?: string; ads?: string; pageUrl?: string; message?: string; note?: string; extras?: object; whiteLabel?: string; }