import EmailAddress from "./EmailAddress.js"; import DateTime from "@entity-access/entity-access/dist/types/DateTime.js"; import { User } from "./User.js"; import Mailbox from "./Mailbox.js"; import { HostedDomain } from "./HostedDomain.js"; import Domain from "./Domain.js"; import AppFile from "./AppFile.js"; import Tag from "./Tag.js"; import type MailboxContact from "./MailboxContact.js"; import GeoEntity from "./GeoEntity.js"; export default class Contact { contactID: number; /** * This should be used by your other application where you may want to * synchronize this contact. Difference between external ID and synchronization * is, externalID has unique index set on it. You cannot have duplicate * externalID values. */ externalID: string; /** * If set, the owner of the contact is the user, and no one else * can read/write. */ userID: number; /** * If set, the owner of the contact is the mailbox, and anyone * who can access mailbox can read/write. */ mailboxID: number; /** * If set, the owner of the contact is the hosted Domain, and anyone * who can access any mailbox of the domain can read/write. */ domainID: number; name: string; description: string; longDescription: string; summaryDateLabel: string; summaryDate: DateTime; summaryLink: string; companyID: string; salesTaxID: string; gstTaxID: string; vatTaxID: string; incomeTaxID: string; type: string; synchronization: string; dateCreated: DateTime; dateUpdated: DateTime; cityID: number; previewID: number; billingAddressID: number; shippingAddressID: number; emails: ContactEmail[]; phones: ContactPhone[]; domains: ContactDomain[]; items: ContactItem[]; user: User; city: GeoEntity; mailbox: Mailbox; hostedDomain: HostedDomain; preview: AppFile; tags: ContactTag[]; addresses: ContactAddress[]; billingAddress: ContactAddress; shippingAddress: ContactAddress; mailboxContacts: MailboxContact[]; files: ContactFile[]; } export declare class ContactFile { contactID: number; appFileID: number; contact: Contact; appFile: AppFile; } export declare class ContactAddress { addressID: number; contactID: number; title: string; line1: string; line2: string; line3: string; city: string; state: string; countryCode: string; phoneNumber: string; notes: string; contact: Contact; shippingContacts: Contact[]; billingContacts: Contact[]; } export declare class ContactItem { itemID: number; contactID: number; type: string; title: string; valuesJson: string; contact: Contact; } export declare class ContactPhone { contactID: number; phoneNumberE64: string; type: string; notes: string; contact: Contact; } export declare class ContactEmail { /** * Since we will be querying contacts through email address * while displaying emails, it is better to keep email address * as first column in primary key */ emailAddressID: number; contactID: number; type: string; notes: string; blocked: boolean; emailAddressText: string; contact: Contact; emailAddress: EmailAddress; } export declare class ContactDomain { /** * Since we will be querying contacts through domain name * while displaying emails, it is better to keep domain id * as first column in primary key */ domainID: number; contactID: number; blocked: boolean; domain: Domain; contact: Contact; } export declare class ContactTag { contactID: number; tagID: number; contact: Contact; tag: Tag; } //# sourceMappingURL=Contact.d.ts.map