UNPKG

1.04 kBTypeScriptView Raw
1import { DefaultResponse } from "../client/DefaultResponse";
2import { Hash } from "../client/SupportingTypes";
3import { Attachment, Header, LinkTrackingOptions } from "../message/SupportingTypes";
4export declare class Message {
5 From: string;
6 To?: string;
7 Cc?: string;
8 Bcc?: string;
9 MessageStream?: string;
10 Subject: string;
11 ReplyTo?: string;
12 HtmlBody?: string;
13 TextBody?: string;
14 Tag?: string;
15 TrackOpens?: boolean;
16 TrackLinks?: LinkTrackingOptions;
17 Headers?: Header[];
18 Attachments?: Attachment[];
19 Metadata?: Hash<string>;
20 constructor(From: string, Subject: string, HtmlBody?: string, TextBody?: string, To?: string, Cc?: string, Bcc?: string, ReplyTo?: string, Tag?: string, TrackOpens?: boolean, TrackLinks?: LinkTrackingOptions, Headers?: Header[], Attachments?: Attachment[], Metadata?: Hash<string>);
21}
22export interface MessageSendingResponse extends DefaultResponse {
23 To?: string;
24 Cc?: string;
25 Bcc?: string;
26 SubmittedAt: string;
27 MessageID: string;
28}