chore(rsocials): add NewsletterDraft and NewsletterSubscriber types
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
f966f02909
commit
3add66b5ef
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue