-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtypes.ts
More file actions
46 lines (43 loc) · 819 Bytes
/
types.ts
File metadata and controls
46 lines (43 loc) · 819 Bytes
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// export interface EmailRequest {
// id: number;
// date: string;
// from: string | undefined;
// fromName: string | undefined;
// to: AddressObject[] | undefined;
// subject: string | undefined;
// body: string | undefined;
// }
export interface EmailRequest {
html: string;
text: string;
subject: string;
date: Date;
to: AddressValue;
cc?: AddressValue;
bcc?: AddressValue;
from: AddressValue;
messageID: string;
attachments?: Array<any>;
}
interface AddressValue {
value: AddressObject[];
html: string;
text: string;
}
interface AddressObject {
address: string;
name: string;
}
export interface Email {
id: number;
date: string;
from: string;
fromName: string;
to: string[];
cc?: string[];
bcc?: string[];
subject: string;
body: string;
text: string;
attachments?: Array<any>;
}