mirror of
https://github.com/xtr-dev/payload-mailing.git
synced 2025-12-10 08:13:23 +00:00
- Remove entire workflows directory and sendEmailWorkflow - Factor out email processing logic into reusable utilities (emailProcessor.ts) - Add processImmediately option to sendEmailTask input schema - Update sendEmailTask to process emails immediately when requested - Update processEmailsTask to use shared processing utilities - Remove workflow-related exports and plugin configuration - Simplify documentation to focus on unified task approach - Export new email processing utilities (processEmailById, processAllEmails) - Bump version to 0.4.0 (breaking change - workflows removed) Migration: Use sendEmailTask with processImmediately: true instead of sendEmailWorkflow
32 lines
1005 B
TypeScript
32 lines
1005 B
TypeScript
// Main plugin export
|
|
export { mailingPlugin, default as mailingPluginDefault } from './plugin.js'
|
|
|
|
// Types
|
|
export * from './types/index.js'
|
|
|
|
// Services
|
|
export { MailingService } from './services/MailingService.js'
|
|
|
|
// Collections
|
|
export { default as EmailTemplates, createEmailTemplatesCollection } from './collections/EmailTemplates.js'
|
|
export { default as Emails } from './collections/Emails.js'
|
|
|
|
// Jobs (includes the send email task)
|
|
export { mailingJobs, sendEmailJob } from './jobs/index.js'
|
|
export type { SendEmailTaskInput } from './jobs/sendEmailTask.js'
|
|
|
|
// Main email sending function
|
|
export { sendEmail, type SendEmailOptions } from './sendEmail.js'
|
|
export { default as sendEmailDefault } from './sendEmail.js'
|
|
|
|
// Utility functions for developers
|
|
export {
|
|
getMailing,
|
|
renderTemplate,
|
|
processEmails,
|
|
retryFailedEmails,
|
|
parseAndValidateEmails,
|
|
} from './utils/helpers.js'
|
|
|
|
// Email processing utilities
|
|
export { processEmailById, processAllEmails } from './utils/emailProcessor.js' |