import { Hash } from "../client/SupportingTypes"; import { LinkTrackingOptions } from "../message/SupportingTypes"; import * as OutboundMessageEvents from "./OutboundMessageEvents"; export interface Recipient { Email: string; Name: string; } export interface OutboundMessage { MessageID: string; Tag?: string; To: Recipient[]; Cc: Recipient[]; Bcc: Recipient[]; Recipients: string[]; ReceivedAt: string; From: string; Subject: string; Attachments: string[]; Status: string; TrackOpens: boolean; TrackLinks: LinkTrackingOptions; Metadata: Hash; MessageStream: string; Sandboxed: boolean; } export interface OutboundMessageDetails extends OutboundMessage { TextBody?: string; HtmlBody?: string; Body: string; MessageEvents: OutboundMessageEvents.MessageEvent[]; } export interface OutboundMessageDump { Body: string; } export interface OutboundMessages { TotalCount: string; Messages: OutboundMessage[]; }