import type * as Merge from "../../../index"; /** * # The Lead Object * ### Description * The `Lead` object is used to represent an individual who is a potential customer. * ### Usage Example * TODO */ export interface Lead { id?: string; /** The third-party API ID of the matching object. */ remoteId?: string; /** The datetime that this object was created by Merge. */ createdAt?: Date; /** The datetime that this object was modified by Merge. */ modifiedAt?: Date; /** The lead's owner. */ owner?: Merge.crm.LeadOwner; /** The lead's source. */ leadSource?: string; /** The lead's title. */ title?: string; /** The lead's company. */ company?: string; /** The lead's first name. */ firstName?: string; /** The lead's last name. */ lastName?: string; addresses?: Merge.crm.Address[]; emailAddresses?: Merge.crm.EmailAddress[]; phoneNumbers?: Merge.crm.PhoneNumber[]; /** When the third party's lead was updated. */ remoteUpdatedAt?: Date; /** When the third party's lead was created. */ remoteCreatedAt?: Date; /** When the lead was converted. */ convertedDate?: Date; /** The contact of the converted lead. */ convertedContact?: Merge.crm.LeadConvertedContact; /** The account of the converted lead. */ convertedAccount?: Merge.crm.LeadConvertedAccount; /** * The lead's status. * * * `OPEN` - OPEN * * `CLOSED` - CLOSED * * `UNQUALIFIED` - UNQUALIFIED * * `QUALIFIED` - QUALIFIED */ status?: Merge.crm.LeadStatus; /** Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). */ remoteWasDeleted?: boolean; fieldMappings?: Record; remoteData?: Merge.crm.RemoteData[]; remoteFields?: Merge.crm.RemoteField[]; }