UNPKG

1.01 kBTypeScriptView Raw
1import { Hash } from "../client/SupportingTypes";
2import { LinkTrackingOptions } from "../message/SupportingTypes";
3import * as OutboundMessageEvents from "./OutboundMessageEvents";
4export interface Recipient {
5 Email: string;
6 Name: string;
7}
8export interface OutboundMessage {
9 MessageID: string;
10 Tag?: string;
11 To: Recipient[];
12 Cc: Recipient[];
13 Bcc: Recipient[];
14 Recipients: string[];
15 ReceivedAt: string;
16 From: string;
17 Subject: string;
18 Attachments: string[];
19 Status: string;
20 TrackOpens: boolean;
21 TrackLinks: LinkTrackingOptions;
22 Metadata: Hash<string>;
23 MessageStream: string;
24 Sandboxed: boolean;
25}
26export interface OutboundMessageDetails extends OutboundMessage {
27 TextBody?: string;
28 HtmlBody?: string;
29 Body: string;
30 MessageEvents: OutboundMessageEvents.MessageEvent[];
31}
32export interface OutboundMessageDump {
33 Body: string;
34}
35export interface OutboundMessages {
36 TotalCount: string;
37 Messages: OutboundMessage[];
38}