UNPKG

gmail-to-exchange365

Version:

Complete Gmail to Exchange 365 migration tool with UI - Migrate emails, attachments, and folders seamlessly

47 lines (42 loc) 892 B
export interface EmailMessage { id: string; threadId?: string; from: string; to: string[]; cc?: string[]; bcc?: string[]; subject: string; date: string; htmlBody?: string; textBody?: string; attachments: Array<{ filename: string; mimeType: string; data: Buffer; }>; labels?: string[]; } export interface MigrationProgress { current: number; total: number; status: 'idle' | 'running' | 'paused' | 'completed' | 'error'; message?: string; error?: string; } export interface UserSession { google?: { access_token: string; refresh_token?: string; expiry_date?: number; }; ms?: { access_token: string; refresh_token?: string; expires_in?: number; }; } export interface FolderMapping { gmailLabel: string; exchangeFolderId: string; exchangeFolderName: string; }