1 | import { Hash } from "../client/SupportingTypes";
|
2 | import { LinkTrackingOptions } from "../message/SupportingTypes";
|
3 | import * as OutboundMessageEvents from "./OutboundMessageEvents";
|
4 | export interface Recipient {
|
5 | Email: string;
|
6 | Name: string;
|
7 | }
|
8 | export 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 | }
|
26 | export interface OutboundMessageDetails extends OutboundMessage {
|
27 | TextBody?: string;
|
28 | HtmlBody?: string;
|
29 | Body: string;
|
30 | MessageEvents: OutboundMessageEvents.MessageEvent[];
|
31 | }
|
32 | export interface OutboundMessageDump {
|
33 | Body: string;
|
34 | }
|
35 | export interface OutboundMessages {
|
36 | TotalCount: string;
|
37 | Messages: OutboundMessage[];
|
38 | }
|