diff --git a/modules/rsocials/schemas.ts b/modules/rsocials/schemas.ts index bcf278a..fc21c52 100644 --- a/modules/rsocials/schemas.ts +++ b/modules/rsocials/schemas.ts @@ -360,6 +360,26 @@ export const CAMPAIGN_NODE_CATALOG: CampaignWorkflowNodeDef[] = [ }, ]; +// ── Newsletter draft types ── + +export interface NewsletterSubscriber { + email: string; + name?: string; + addedAt: number; +} + +export interface NewsletterDraft { + id: string; + title: string; + subject: string; + body: string; // HTML + status: 'draft' | 'ready' | 'sent'; + subscribers: NewsletterSubscriber[]; + createdAt: number; + updatedAt: number; + createdBy: string; +} + // ── Approval queue types ── export interface PendingApproval {