import { AutoEncoder } from '@simonbackx/simple-encoding'; import { Replacement } from '../endpoints/EmailRequest.js'; import { EmailRecipientFilterType } from './Email.js'; export declare enum EmailTemplateType { /** * Template created by the user to send manually */ SavedMembersEmail = "SavedMembersEmail", SavedDocumentsEmail = "SavedDocumentsEmail", SavedPaymentsEmail = "SavedPaymentsEmail", /** * Defaults */ DefaultMembersEmail = "DefaultMembersEmail", DefaultReceivableBalancesEmail = "DefaultReceivableBalancesEmail", SavedReceivableBalancesEmail = "SavedReceivableBalancesEmail", DefaultOrdersEmail = "DefaultOrdersEmail", DefaultDocumentsEmail = "DefaultDocumentsEmail", DefaultPaymentsEmail = "DefaultPaymentsEmail", MembersExpirationReminder = "MembersExpirationReminder", WebshopsExpirationReminder = "WebshopsExpirationReminder", SingleWebshopExpirationReminder = "SingleWebshopExpirationReminder", TrialWebshopsExpirationReminder = "TrialWebshopsExpirationReminder", TrialMembersExpirationReminder = "TrialMembersExpirationReminder", OrderNotification = "OrderNotification", RegistrationConfirmation = "RegistrationConfirmation", RegistrationTransferDetails = "RegistrationTransferDetails", OrderConfirmationOnline = "OrderConfirmationOnline", OrderConfirmationTransfer = "OrderConfirmationTransfer", OrderConfirmationPOS = "OrderConfirmationPOS", OrderReceivedTransfer = "OrderReceivedTransfer", OrderOnlinePaymentFailed = "OrderOnlinePaymentFailed", /** * Tickets sent immediately after ordering */ TicketsConfirmation = "TicketsConfirmation", /** * Order received, tickets will follow when we receive your payment */ TicketsConfirmationTransfer = "TicketsConfirmationTransfer", /** * Order received, tickets sent, but need to get paid at entrance */ TicketsConfirmationPOS = "TicketsConfirmationPOS", /** * Tickets sent after payment is received */ TicketsReceivedTransfer = "TicketsReceivedTransfer", /** * Organization emails: */ OrganizationUnstableDNS = "OrganizationUnstableDNS", OrganizationInvalidDNS = "OrganizationInvalidDNS", OrganizationValidDNS = "OrganizationValidDNS", OrganizationStableDNS = "OrganizationStableDNS", OrganizationDNSSetupComplete = "OrganizationDNSSetupComplete", OrganizationDripWelcome = "OrganizationDripWelcome", OrganizationDripWebshopTrialCheckin = "OrganizationDripWebshopTrialCheckin", OrganizationDripMembersTrialCheckin = "OrganizationDripMembersTrialCheckin", OrganizationDripWebshopTrialExpired = "OrganizationDripWebshopTrialExpired", OrganizationDripMembersTrialExpired = "OrganizationDripMembersTrialExpired", OrganizationDripTrialExpiredReminder = "OrganizationDripTrialExpiredReminder", OrganizationDripWebshopNotRenewed = "OrganizationDripWebshopNotRenewed", OrganizationDripMembersNotRenewed = "OrganizationDripMembersNotRenewed", /** * Exports */ ExcelExportSucceeded = "ExcelExportSucceeded", ExcelExportFailed = "ExcelExportFailed", /** * User emails */ ForgotPasswordButNoAccount = "ForgotPasswordButNoAccount", ForgotPassword = "ForgotPassword", SignupAlreadyHasAccount = "SignupAlreadyHasAccount", VerifyEmail = "VerifyEmail", VerifyEmailWithoutCode = "VerifyEmailWithoutCode", AdminInvitation = "AdminInvitation", AdminInvitationNewUser = "AdminInvitationNewUser", DeleteAccountConfirmation = "DeleteAccountConfirmation", /** * Balances */ /** * E-mail sent to the user when their balance went up. * E.g. end of trial, manually added a balance item... */ UserBalanceIncreaseNotification = "UserBalanceIncreaseNotification", OrganizationBalanceIncreaseNotification = "OrganizationBalanceIncreaseNotification", /** * A reminder e-mail to the user that their balance has to be paid. */ UserBalanceReminder = "UserBalanceReminder", OrganizationBalanceReminder = "OrganizationBalanceReminder", /** * Event notifications */ EventNotificationSubmittedCopy = "EventNotificationSubmittedCopy", EventNotificationSubmittedReviewer = "EventNotificationSubmittedReviewer", EventNotificationAccepted = "EventNotificationAccepted", EventNotificationRejected = "EventNotificationRejected", EventNotificationPartiallyAccepted = "EventNotificationPartiallyAccepted" } export declare class EmailTemplate extends AutoEncoder { id: string; organizationId: string | null; subject: string; type: EmailTemplateType; html: string; text: string; json: {}; groupId: string | null; webshopId: string | null; createdAt: Date; updatedAt: Date; static getDefaultForRecipient(type: EmailRecipientFilterType): EmailTemplateType | null; static getSavedForRecipient(type: EmailRecipientFilterType): EmailTemplateType | null; static isSavedEmail(type: EmailTemplateType): boolean; static getTypeTitle(type: EmailTemplateType): string; static getTypeCategory(type: EmailTemplateType): string; static allowPlatformLevel(type: EmailTemplateType): boolean; static allowOrganizationLevel(type: EmailTemplateType): boolean; static getPlatformTypeDescription(type: EmailTemplateType): string | null; /** * Return true if this template type contains recipient types where EmailRecipientFilter.canShowInMemberPortal = true. * This means that you can send an email that will also be visible in the member portal. When this is the case, you should be able to add a block to * an email that is only visible when sent via email. * * Note: please also update EmailRecipientFilter.canShowInMemberPortal * @returns */ static canAddEmailOnlyContent(type: EmailTemplateType): boolean; static getTypeDescription(type: EmailTemplateType): string; static getSupportedReplacementsForType(type: EmailTemplateType): Replacement[]; } //# sourceMappingURL=EmailTemplate.d.ts.map