-
Notifications
You must be signed in to change notification settings - Fork 93
/
EmailCapturePlugin.d.ts
32 lines (30 loc) · 1.24 KB
/
EmailCapturePlugin.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
interface IAddress {
getEmail(): string;
getName(): string;
}
interface IAttachment {
/**
* Object that represents an attachment in an email message sent to an Email Capture plug-in implementation.
* Each Attachment object contains properties for the attachment file name, attachment type, and the value of the attachment file.
*/
getName(): string;
/** Returns the file type of an attachment in an email message as a string. For example, this method returns PLAINTEXT, PDF, and MISCBINARY for text, PDF, and Microsoft Word files, respectively. */
getType(): string;
/**
* Returns a text string for a text file attachment or base-64 encoded string for binary attachment types of an email message.
* You can use getType() to define the behavior of the plug-in implementation depending on the file type of the attachment.
*/
getValue(): string;
}
/** Object that represents an email message sent to the Email Capture plug-in implementation. */
interface IEmail {
getAttachments(): IAttachment[];
getCc(): IAddress;
getFrom(): IAddress[];
getHtmlBody(): string;
getReplyTo(): IAddress;
getSentDate(): Date;
getSubject(): string;
getTextBody(): string;
getTo(): IAddress;
}