flow-interfaces-google-apps-script
Version:
Flow interface declarations for the Google Apps Script API
24 lines (21 loc) • 661 B
JavaScript
// @flow
// @see https://developers.google.com/apps-script/reference/gmail/gmail-draft
type gas$Gmail$UpdateOption = {
attachments?: gas$BlobSource[],
bcc?: string,
cc?: string,
from?: string,
htmlBody?: string,
inlineImages?: Object,
name?: string,
replyTo?: string
}
interface gas$Gmail$GmailDraft {
deleteDraft(): void;
getId(): string;
getMessage(): gas$Gmail$GmailMessage;
getMessageId(): string;
send(): gas$Gmail$GmailMessage;
update(recipient: string, subject: string, body: string): gas$Gmail$GmailDraft;
update(recipient: string, subject: string, body: string, options: gas$Gmail$UpdateOption): gas$Gmail$GmailDraft;
}