import type UserMailbox from "./UserMailbox.js"; import EmailAddress from "./EmailAddress.js"; import type MailboxContact from "./MailboxContact.js"; import type MailboxContactEmail from "./MailboxContactEmail.js"; import type ChannelEmail from "./ChannelEmail.js"; import DateTime from "@entity-access/entity-access/dist/types/DateTime.js"; import type UserPin from "./UserPin.js"; import type Contact from "./Contact.js"; import type MailboxSyncTarget from "./MailboxSyncTarget.js"; import AppFile from "./AppFile.js"; import type SubscriberActivity from "./SubscriberActivity.js"; import type ChannelConfig from "./ChannelConfig.js"; import type { WebSiteChannel } from "./WebSiteChannel.js"; import Domain from "./Domain.js"; import type MailboxFolder from "./MailboxFolder.js"; import type MailboxTag from "./MailboxTag.js"; import type MailboxContactEvent from "./MailboxContactEvent.js"; import type WebHook from "./WebHook.js"; import { subscriptionType } from "./SubscriptionType.js"; import type Signature from "./Signature.js"; /** * MailBox ID is number because foreign key on Email will * require less storage compared to long email addresses. * Average number of bytes used in email address would be * roughly 40 bytes. BTree for 40 bytes would be large * compared to 8 bytes of bigint for MailBoxID. And each * related entities will also require less storage compared to * actual email address, as MailboxThread, MailboxThreadEmail * tables will be frequently accessed and BTree indexes on those * tables will grow exponentially in time. */ export default class Mailbox { mailboxID: number; domainID: number; storage: number; maxStorage: number; /** * Be careful, this will increase the database search size. */ indexAttachments: boolean; /** * Be careful, this will increase the database search size. */ indexImageAttachments: boolean; firstID: number; recentID: number; /** * When set, this will make sure that the address is unique, * this is important when we want to create email address * that are separated by dot and dashes. */ uniqueAddress: string; openThreads: number; totalThreads: number; pendingModerationCount: number; unread: number; logoID: number; isExternal: boolean; maxSendPerSecond: number; description: string; dateCreated: DateTime; dateUpdated: DateTime; isChannel: boolean; isPrivateChannel: boolean; membersCanPostTopLevel: boolean; nonMembersCanPost: boolean; nonMembersCanComment: boolean; nonMembersCanReact: boolean; requiresMembershipApproval: boolean; requiresPostModeration: boolean; requiresCommentModeration: boolean; requiresSignup: boolean; subscriberCount: number; subscriptionType: subscriptionType; channelVideoWatermark: string; /** * Date of recent email published on channel either on private or public */ datePublished: DateTime; /** * Date of recent email engagement on channel either on private or public */ dateEngaged: DateTime; /** Enable Lead Management, opens folder after save and send */ enableLeads: boolean; /** * This is utilized internally to track, some of related actions * such as subscribe/unsubscribe of channel mailbox. */ parentID: number; autoDeleteAfterDays: number; logo: AppFile; /** * Used for creating the mailbox */ username: string; /** * Used for creating external email address, when domainID cannot be created by user */ externalEmailAddress: string; name: string; /** * Used at client end ... */ notify: boolean; deleteVerificationID: string; authorName: string; authorEmail: string; addSubscribers: string; channelConfig: ChannelConfig; domain: Domain; emails: ChannelEmail[]; userMailboxes: UserMailbox[]; emailAddress: EmailAddress; mailboxContacts: MailboxContact[]; threadEmails: MailboxContactEmail[]; userPins: UserPin[]; contacts: Contact[]; syncTargets: MailboxSyncTarget[]; subscriberActivities: SubscriberActivity[]; websiteChannels: WebSiteChannel[]; folders: MailboxFolder[]; tags: MailboxTag[]; mailboxEvents: MailboxContactEvent[]; webHooks: WebHook[]; signatures: Signature[]; } //# sourceMappingURL=Mailbox.d.ts.map