import { RegisterSingleton } from "@entity-access/entity-access/dist/di/di.js"; import ContextEvents from "@entity-access/entity-access/dist/model/events/ContextEvents.js"; import UserEvents from "./events/UserEvents.js"; import { User } from "./entities/User.js"; import LoginSession from "./entities/LoginSession.js"; import LoginSessionEvents from "./events/LoginSessionEvents.js"; import AppFile, { AppFileAccess, AppFileVersion } from "./entities/AppFile.js"; import { AppRole } from "./entities/AppRole.js"; import AppRoleEvents from "./events/AppRoleEvents.js"; import Configuration from "./entities/Configuration.js"; import ConfigurationEvents from "./events/ConfigurationEvents.js"; import DomainEvents from "./events/DomainEvents.js"; import DomainUser from "./entities/DomainUser.js"; import DomainUserEvents from "./events/DomainUserEvents.js"; import AppFileEvents from "./events/AppFileEvents.js"; import { Email, EmailLog } from "./entities/Email.js"; import EmailEvents from "./events/EmailEvents.js"; import EmailAddress from "./entities/EmailAddress.js"; import EmailAddressEvents from "./events/EmailAddressEvents.js"; import EmailTagEvents from "./events/EmailTagEvents.js"; import EmailTag from "./entities/EmailTag.js"; import FileContent from "./entities/FileContent.js"; import FileContentEvents from "./events/FileContentEvents.js"; import Mailbox from "./entities/Mailbox.js"; import MailboxEvents from "./events/MailboxEvents.js"; import Tag from "./entities/Tag.js"; import TagEvents from "./events/TagEvents.js"; import { UserRole } from "./entities/UserRole.js"; import UserRoleEvents from "./events/UserRoleEvents.js"; import DomainKey from "./entities/DomainKey.js"; import DomainKeyEvents from "./events/DomainKeyEvents.js"; import Domain from "./entities/Domain.js"; import { HostedDomain } from "./entities/HostedDomain.js"; import HostedDomainEvents from "./events/HostedDomainEvents.js"; import EmailRecipient from "./entities/EmailRecipient.js"; import EmailRecipientEvents from "./events/EmailRecipientEvents.js"; import MailboxContact from "./entities/MailboxContact.js"; import MailboxContactEvents from "./events/MailboxContactEvents.js"; import MailboxContactEmail from "./entities/MailboxContactEmail.js"; import MailboxContactEmailEvents from "./events/MailboxContactEmailEvents.js"; import UserAuthFactor from "./entities/UserAuthFactor.js"; import UserAuthFactorEvents from "./events/UserAuthFactorEvents.js"; import UserMailbox from "./entities/UserMailbox.js"; import UserMailboxEvents from "./events/UserMailboxEvents.js"; import AppFileAccessEvents from "./events/AppFileAccessEvents.js"; import AppFileVersionEvents from "./events/AppFileVersionEvents.js"; import AppFileTag from "./entities/AppFileTag.js"; import AppFileTagEvents from "./events/AppFileTagEvents.js"; import UserPin from "./entities/UserPin.js"; import UserPinEvents from "./events/UserPinEvents.js"; import Contact, { ContactAddress, ContactDomain, ContactEmail, ContactFile, ContactItem, ContactPhone } from "./entities/Contact.js"; import ContactEvent, { ContactAddressEvent, ContactDomainEvent, ContactEmailEvent, ContactFileEvents, ContactItemEvent, ContactPhoneEvent } from "./events/ContactEvents.js"; import MailboxSyncTarget from "./entities/MailboxSyncTarget.js"; import MailboxSyncTargetEvents from "./events/MailboxSyncTargetEvents.js"; import ChannelEmail from "./entities/ChannelEmail.js"; import MailboxEmailEvents from "./events/MailboxEmailEvents.js"; import EmailLogEvents from "./events/EmailLogEvents.js"; import WebSite from "./entities/WebSite.js"; import { WebSiteHost } from "./entities/WebSiteHost.js"; import { WebSiteVersion } from "./entities/WebSiteVersion.js"; import { WebSiteChannel } from "./entities/WebSiteChannel.js"; import WebSiteEvents from "./events/WebSiteEvents.js"; import { WebSiteVersionEvents } from "./events/WebSiteVersionEvents.js"; import MailboxContactTag from "./entities/MailboxContactTag.js"; import MailboxContactTagEvents from "./events/MailboxContactTagEvents.js"; import ChannelConfig from "./entities/ChannelConfig.js"; import ChannelConfigEvents from "./events/ChannelConfigEvents.js"; import UserPushSubscription from "./entities/UserSubscriptions.js"; import UserPushSubscriptionEvents from "./events/UserPushSubscriptionEvents.js"; import EmailEngagement from "./entities/EmailEngagement.js"; import EmailEngagementEvents from "./events/EmailEngagementEvents.js"; import { StoreAccount } from "./entities/StoreAccount.js"; import { StoreItemTag } from "./entities/StoreItemTag.js"; import { StoreItemTax } from "./entities/StoreItemTax.js"; import { StoreInsight } from "./entities/StoreInsight.js"; import { StoreMediaFile } from "./entities/StoreMediaFile.js"; import { StoreItemFolderTag } from "./entities/StoreItemFolderTag.js"; import { StoreItemFolder } from "./entities/StoreItemFolder.js"; import { StoreJournalEntry } from "./entities/StoreJournalEntry.js"; import { StoreJournalLineItem } from "./entities/StoreJournalLineItem.js"; import { StoreTag } from "./entities/StoreTag.js"; import StoreItemEvents from "./events/StoreItemEvents.js"; import StoreItemPriceEvents from "./events/StoreItemPriceEvents.js"; import AccessToken from "./entities/AccessToken.js"; import AccessTokenEvents from "./events/AccessTokenEvents.js"; import StoreItemTagEvents from "./events/StoreItemTagEvents.js"; import StoreInsightEvents from "./events/StoreInsightEvents.js"; import StoreAccountEvents from "./events/StoreAccountEvents.js"; import StoreJournalEvents from "./events/StoreJournalEvents.js"; import StoreJournalEntryEvents from "./events/StoreJournalEntryEvents.js"; import StoreJournalLineItemEvents from "./events/StoreJournalLineItemEvents.js"; import StoreItemFolderEvents from "./events/StoreItemFolderEvents.js"; import StoreMediaFileEvents from "./events/StoreMediaFileEvents.js"; import StoreItemTaxEvents from "./events/StoreItemTaxEvents.js"; import IncomingSmsSource from "./entities/IncomingSmsSource.js"; import IncomingSmsSourceEvents from "./events/IncomingSmsSourceEvents.js"; import VerificationToken, { VerificationTokenAddress } from "./entities/VerificationToken.js"; import VerificationTokenEvents from "./events/VerificationTokenEvents.js"; import StoreTagEvents from "./events/StoreTagEvents.js"; import StoreItemFolderTagEvents from "./events/StoreItemFolderTagEvents.js"; import HostedZone from "./entities/HostedZone.js"; import { HostedZoneUser } from "./entities/HostedZoneUser.js"; import HostedZoneEvents, { HostedZoneUserEvents } from "./events/HostedZoneEvents.js"; import EmailAddressName from "./entities/EmailAddressName.js"; import EmailAddressNameEvents from "./events/EmailAddressNameEvents.js"; import NameToken from "./entities/NameToken.js"; import NameTokenEvents from "./events/NameTokenEvents.js"; import MailboxTag from "./entities/MailboxTag.js"; import MailboxTagEvents from "./events/MailboxTagEvents.js"; import { StoreJournal } from "./entities/StoreJournal.js"; import { StoreItem } from "./entities/StoreItem.js"; import { StoreItemPrice } from "./entities/StoreItemPrice.js"; import MailboxContactEvent from "./entities/MailboxContactEvent.js"; import MailboxContactEventEvents from "./events/MailboxContactEventEvents.js"; import StorePaymentAttempt from "./entities/StorePaymentAttempt.js"; import StorePaymentAttemptEvents from "./events/StorePaymentAttemptEvents.js"; import VerificationTokenAddressEvent from "./events/VerificationTokenAddressEvents.js"; import { StoreAccountAddress } from "./entities/StoreAddress.js"; import StoreAccountAddressEvents from "./events/StoreAccountAddressEvents.js"; import StoreAccountEmail from "./entities/StoreAccountEmail.js"; import StoreAccountEmailEvents from "./events/StoreAccountEmailEvents.js"; import StoreAccountPhone from "./entities/StoreAccountPhone.js"; import StoreAccountPhoneEvents from "./events/StoreAccountPhoneEvents.js"; import StorePaymentGateway from "./entities/StorePaymentGateway.js"; import StorePaymentGatewayEvents from "./events/StorePaymentGatewayEvents.js"; import StoreJournalCoupon from "./entities/StoreJournalCoupon.js"; import StoreJournalCouponEvents from "./events/StoreJournalCouponEvents.js"; import StoreCoupon from "./entities/StoreCoupon.js"; import StoreCouponEvents from "./events/StoreCouponEvents.js"; import WebHook from "./entities/WebHook.js"; import WebHookEvents from "./events/WebHookEvents.js"; import WebHookEvent from "./entities/WebHookEvent.js"; import WebHookEventEvents from "./events/WebHookEventEvents.js"; import ThreadParticipant from "./entities/ThreadParticipant.js"; import ThreadParticipantEvents from "./events/ThreadParticipantEvents.js"; import { WebSiteChannelDomain } from "./entities/WebSiteChannelDomain.js"; import WebSiteChannelDomainEvents from "./events/WebSiteChannelDomainEvents.js"; import { WebSiteHostEvents } from "./events/WebSiteHostEvents.js"; import { WebSiteChannelEvents } from "./events/WebSiteChannelEvents.js"; import CachedItem from "./entities/CachedItem.js"; import CachedItemEvents from "./events/CachedItemEvents.js"; import MailboxFolder from "./entities/MailboxFolder.js"; import MailboxFolderEvents from "./events/MailboxFolderEvents.js"; import WebSiteTag from "./entities/WebSiteTag.js"; import WebSiteTagEvents from "./events/WebSiteTagEvents.js"; import AppPassword from "./entities/AppPassword.js"; import AppPasswordEvents from "./events/AppPasswordEvents.js"; import EmailText from "./entities/EmailText.js"; import EmailTextEvents from "./events/EmailTextEvents.js"; import StoreSubscription from "./entities/StoreSubscription.js"; import StoreSubscriptionEvents from "./events/StoreSubscriptionEvents.js"; import SubscriptionDomain from "./entities/SubscriptionDomain.js"; import SubscriptionDomainEvents from "./events/SubscriptionDomainEvents.js"; import SubscriptionWebSite from "./entities/SubscriptionWebSite.js"; import SubscriptionWebSiteEvents from "./events/SubscriptionWebSiteEvents.js"; import GeoEntity from "./entities/GeoEntity.js"; import GeoEntitiesEvents from "./events/GeoEntityEvents.js"; import Integration from "./entities/Integration.js"; import IntegrationEvents from "./events/IntegrationEvents.js"; import Signature from "./entities/Signature.js"; import SignatureEvents from "./events/SignatureEvents.js"; import { ExternalAttachment } from "./entities/ExternalAttachment.js"; import ExternalAttachmentEvents from "./events/ExternalAttachmentEvents.js"; import { HostedZoneRecordEvents } from "./events/HostedZoneRecordEvents.js"; import { HostedZoneRecord } from "./entities/HostedZoneRecord.js"; import CachedDnsRecord from "./entities/CachedZoneRecord.js"; import CachedDnsRecordEvents from "./events/CachedDnsRecordEvents.js"; import VirtualServer from "./entities/VirtualServer.js"; import VirtualServerEvents from "./events/VirtualServerEvents.js"; @RegisterSingleton export default class SocialMailContextEvents extends ContextEvents { constructor() { super(); this.register(AppFile, AppFileEvents); this.register(AppFileAccess, AppFileAccessEvents); this.register(AppFileVersion, AppFileVersionEvents); this.register(AppFileTag, AppFileTagEvents); this.register(AppPassword, AppPasswordEvents); this.register(AccessToken, AccessTokenEvents); this.register(AppRole, AppRoleEvents); this.register(EmailLog, EmailLogEvents); this.register(CachedItem, CachedItemEvents); this.register(CachedDnsRecord, CachedDnsRecordEvents); this.register(Configuration, ConfigurationEvents); this.register(Contact, ContactEvent); this.register(ContactFile, ContactFileEvents); this.register(ContactItem, ContactItemEvent); this.register(ContactEmail, ContactEmailEvent); this.register(ContactDomain, ContactDomainEvent); this.register(ContactPhone, ContactPhoneEvent); this.register(ContactAddress, ContactAddressEvent); this.register(ChannelConfig, ChannelConfigEvents); this.register(Domain, DomainEvents); this.register(HostedDomain, HostedDomainEvents); this.register(DomainUser, DomainUserEvents); this.register(DomainKey, DomainKeyEvents); this.register(HostedZone, HostedZoneEvents); this.register(HostedZoneRecord, HostedZoneRecordEvents); this.register(HostedZoneUser, HostedZoneUserEvents); this.register(Integration, IntegrationEvents); this.register(Email, EmailEvents); this.register(EmailAddress, EmailAddressEvents); this.register(EmailAddressName, EmailAddressNameEvents); this.register(EmailEngagement, EmailEngagementEvents); this.register(EmailRecipient, EmailRecipientEvents); this.register(EmailTag, EmailTagEvents); this.register(EmailText, EmailTextEvents); this.register(ExternalAttachment, ExternalAttachmentEvents); this.register(GeoEntity, GeoEntitiesEvents); this.register(FileContent, FileContentEvents); this.register(Mailbox, MailboxEvents); this.register(MailboxSyncTarget, MailboxSyncTargetEvents); this.register(MailboxContact, MailboxContactEvents); this.register(MailboxContactEmail, MailboxContactEmailEvents); this.register(MailboxContactEvent, MailboxContactEventEvents); this.register(MailboxContactTag, MailboxContactTagEvents); this.register(MailboxTag, MailboxTagEvents); this.register(MailboxFolder, MailboxFolderEvents); this.register(ChannelEmail, MailboxEmailEvents); this.register(NameToken, NameTokenEvents); this.register(Signature, SignatureEvents); this.register(StoreItem, StoreItemEvents); this.register(StoreItemPrice, StoreItemPriceEvents); this.register(StoreAccount, StoreAccountEvents); this.register(StoreAccountAddress, StoreAccountAddressEvents); this.register(StoreAccountEmail, StoreAccountEmailEvents); this.register(StoreAccountPhone, StoreAccountPhoneEvents); this.register(StoreJournal, StoreJournalEvents); this.register(StoreCoupon, StoreCouponEvents); this.register(StorePaymentGateway, StorePaymentGatewayEvents); this.register(StorePaymentAttempt, StorePaymentAttemptEvents); this.register(StoreJournalCoupon, StoreJournalCouponEvents); this.register(StoreJournalEntry, StoreJournalEntryEvents); this.register(StoreJournalLineItem, StoreJournalLineItemEvents); this.register(StoreItemFolder, StoreItemFolderEvents); this.register(StoreItemFolderTag, StoreItemFolderTagEvents); this.register(StoreMediaFile, StoreMediaFileEvents); this.register(StoreItemTax, StoreItemTaxEvents); this.register(StoreTag, StoreTagEvents); this.register(StoreSubscription, StoreSubscriptionEvents); this.register(SubscriptionWebSite, SubscriptionWebSiteEvents); this.register(SubscriptionDomain, SubscriptionDomainEvents); // this.register(StorePriceAddOn, StorePriceAddOnEvents); // this.register(StoreBill, StoreOrderEvents); // this.register(StoreBillLine, StoreOrderItemEvents); this.register(IncomingSmsSource, IncomingSmsSourceEvents); this.register(StoreItemTag, StoreItemTagEvents); this.register(StoreInsight, StoreInsightEvents); this.register(Tag, TagEvents); this.register(User, UserEvents); this.register(UserPin, UserPinEvents); this.register(UserRole, UserRoleEvents); this.register(UserMailbox, UserMailboxEvents); this.register(UserAuthFactor, UserAuthFactorEvents); this.register(UserPushSubscription, UserPushSubscriptionEvents); this.register(VerificationToken, VerificationTokenEvents); this.register(VerificationTokenAddress, VerificationTokenAddressEvent); this.register(VirtualServer, VirtualServerEvents); this.register(LoginSession, LoginSessionEvents); this.register(WebSite, WebSiteEvents); this.register(WebSiteChannel, WebSiteChannelEvents); this.register(WebSiteHost, WebSiteHostEvents); this.register(WebSiteVersion, WebSiteVersionEvents); this.register(WebSiteChannelDomain, WebSiteChannelDomainEvents); this.register(WebSiteTag, WebSiteTagEvents); this.register(WebHook, WebHookEvents); this.register(WebHookEvent, WebHookEventEvents); this.register(ThreadParticipant, ThreadParticipantEvents); } }