mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
GmailApp getAttachments() (#30444)
Advanced parameters to get all the attachments for any Gmail message.
This commit is contained in:
committed by
Pranav Senthilnathan
parent
f7b71c452a
commit
208cfa64ac
@@ -187,6 +187,23 @@ declare namespace GoogleAppsScript {
|
||||
replyTo?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Options for a Gmail Attachments.
|
||||
*/
|
||||
export type GmailAttachmentOptions = {
|
||||
/**
|
||||
* If the returned array of Blob attachments should include inline images.
|
||||
*/
|
||||
includeInlineImages?: boolean;
|
||||
/**
|
||||
* If the returned array of Blob attachments should include regular (non-inline) attachments.
|
||||
*/
|
||||
includeAttachments?: boolean;
|
||||
/**
|
||||
* A comma-separated list of email addresses to BCC.
|
||||
*/
|
||||
}
|
||||
|
||||
/**
|
||||
* A user-created label in a user's Gmail account.
|
||||
*/
|
||||
@@ -213,6 +230,7 @@ declare namespace GoogleAppsScript {
|
||||
forward(recipient: string): GmailMessage;
|
||||
forward(recipient: string, options: GmailDraftOptions): GmailMessage;
|
||||
getAttachments(): GmailAttachment[];
|
||||
getAttachments(options: GmailAttachmentOptions): GmailAttachment[];
|
||||
getBcc(): string;
|
||||
getBody(): string;
|
||||
getCc(): string;
|
||||
|
||||
Reference in New Issue
Block a user