Interface GmailV2NodeParameters

Source
interface GmailV2NodeParameters {
    approvalOptions?: {
        values: {
            approvalType?: "single" | "double";
            approveLabel?: string;
            buttonApprovalStyle?: "primary" | "secondary";
            buttonDisapprovalStyle?: "primary" | "secondary";
            disapproveLabel?: string;
        };
    };
    authentication?: "oAuth2"
    | "serviceAccount";
    defineForm?: "json" | "fields";
    emailType?: "text" | "html";
    filters?:
        | {
            includeSpamTrash?: boolean;
            labelIds?: unknown[];
            q?: string;
            readStatus?: "read"
            | "both"
            | "unread";
            receivedAfter?: string;
            receivedBefore?: string;
            sender?: string;
        }
        | {
            includeSpamTrash?: boolean;
            labelIds?: unknown[];
            q?: string;
            readStatus?: "read"
            | "both"
            | "unread";
            receivedAfter?: string;
            receivedBefore?: string;
        };
    formFields?: {
        values: {
            acceptFileTypes?: string;
            elementName?: string;
            fieldLabel: string;
            fieldName?: string;
            fieldOptions: { values: { option?: string }[] };
            fieldType:
                | "number"
                | "file"
                | "text"
                | "email"
                | "date"
                | "html"
                | "checkbox"
                | "dropdown"
                | "hiddenField"
                | "password"
                | "radio"
                | "textarea";
            fieldValue?: string;
            formatDate?: string;
            html?: string;
            limitSelection?: "exact"
            | "range"
            | "unlimited";
            maxSelections?: number;
            minSelections?: number;
            multipleFiles?: boolean;
            multiselect?: boolean;
            multiselectLegacyNotice?: string;
            numberOfSelections?: number;
            placeholder?: string;
            requiredField?: boolean;
        }[];
    };
    jsonOutput?: string;
    labelId?: string;
    labelIds?: unknown[];
    limit?: number;
    message?: string;
    messageId?: string;
    name?: string;
    operation?: | "create"
    | "get"
    | "getAll"
    | "delete"
    | "send"
    | "sendAndWait"
    | "reply"
    | "addLabels"
    | "markAsRead"
    | "markAsUnread"
    | "removeLabels"
    | "trash"
    | "untrash";
    options?: | {
        attachmentsUi?: {
            attachmentsBinary: { property?: string }[];
        };
        bccList?: string;
        ccList?: string;
        fromAlias?: string;
        replyTo?: string;
        sendTo?: string;
        threadId?: string;
    }
    | {
        dataPropertyAttachmentsPrefixName?: string;
        downloadAttachments?: boolean;
    }
    | {
        dataPropertyAttachmentsPrefixName?: string;
        downloadAttachments?: boolean;
        includeSpamTrash?: boolean;
    }
    | {
        labelListVisibility?: | "labelHide"
        | "labelShow"
        | "labelShowIfUnread";
        messageListVisibility?: "hide"
        | "show";
    }
    | {
        appendAttribution?: boolean;
        attachmentsUi?: {
            attachmentsBinary: { property?: string }[];
        };
        bccList?: string;
        ccList?: string;
        replyTo?: string;
        replyToSenderOnly?: boolean;
        senderName?: string;
    }
    | {
        appendAttribution?: boolean;
        limitWaitTime?: {
            values: {
                limitType?: | "afterTimeInterval"
                | "atSpecifiedTime";
                maxDateAndTime?: string;
                resumeAmount?: number;
                resumeUnit?: "minutes"
                | "hours"
                | "days";
            };
        };
    }
    | {
        appendAttribution?: boolean;
        limitWaitTime?: {
            values: {
                limitType?: | "afterTimeInterval"
                | "atSpecifiedTime";
                maxDateAndTime?: string;
                resumeAmount?: number;
                resumeUnit?: "minutes"
                | "hours"
                | "days";
            };
        };
        messageButtonLabel?: string;
        responseFormButtonLabel?: string;
        responseFormCustomCss?: string;
        responseFormDescription?: string;
        responseFormTitle?: string;
    }
    | {
        attachmentsUi?: {
            attachmentsBinary: { property?: string }[];
        };
        bccList?: string;
        ccList?: string;
        replyToSenderOnly?: boolean;
        senderName?: string;
    }
    | { returnOnlyMessages?: boolean };
    resource?: "message" | "thread" | "draft" | "label";
    responseType?: "approval" | "freeText" | "customForm";
    returnAll?: boolean;
    sendTo?: string;
    simple?: boolean;
    subject?: string;
    threadId?: string;
}

Properties§

Source§

readonly approvalOptions?: {
    values: {
        approvalType?: "single" | "double";
        approveLabel?: string;
        buttonApprovalStyle?: "primary" | "secondary";
        buttonDisapprovalStyle?: "primary" | "secondary";
        disapproveLabel?: string;
    };
}

Default: {}

Source§

readonly authentication?: "oAuth2" | "serviceAccount"

Default: "oAuth2"

Source§

readonly defineForm?: "json" | "fields"

Default: "fields"

Source§

readonly emailType?: "text" | "html"

Default: "text"

Source§

readonly filters?:
    | {
        includeSpamTrash?: boolean;
        labelIds?: unknown[];
        q?: string;
        readStatus?: "read"
        | "both"
        | "unread";
        receivedAfter?: string;
        receivedBefore?: string;
        sender?: string;
    }
    | {
        includeSpamTrash?: boolean;
        labelIds?: unknown[];
        q?: string;
        readStatus?: "read"
        | "both"
        | "unread";
        receivedAfter?: string;
        receivedBefore?: string;
    }

Default: {}

Source§

readonly formFields?: {
    values: {
        acceptFileTypes?: string;
        elementName?: string;
        fieldLabel: string;
        fieldName?: string;
        fieldOptions: { values: { option?: string }[] };
        fieldType:
            | "number"
            | "file"
            | "text"
            | "email"
            | "date"
            | "html"
            | "checkbox"
            | "dropdown"
            | "hiddenField"
            | "password"
            | "radio"
            | "textarea";
        fieldValue?: string;
        formatDate?: string;
        html?: string;
        limitSelection?: "exact"
        | "range"
        | "unlimited";
        maxSelections?: number;
        minSelections?: number;
        multipleFiles?: boolean;
        multiselect?: boolean;
        multiselectLegacyNotice?: string;
        numberOfSelections?: number;
        placeholder?: string;
        requiredField?: boolean;
    }[];
}

Default: {} Type options: {"multipleValues":true,"sortable":true}

Source§

readonly jsonOutput?: string

Default: "[\n {\n "fieldLabel":"Name",\n "placeholder":"enter you name",\n "requiredField":true\n },\n {\n "fieldLabel":"Age",\n "fieldType":"number",\n "placeholder":"enter your age"\n },\n {\n "fieldLabel":"Email",\n "fieldType":"email",\n "requiredField":true\n }\n]" Type options: {"rows":5}

Source§

readonly labelId?: string

The ID of the label

Source§

readonly labelIds?: unknown[]

Choose from the list, or specify IDs using an expression Default: [] Type options: {"loadOptionsMethod":"getLabels"}

Source§

readonly limit?: number

Max number of results to return Default: 50 Type options: {"minValue":1,"maxValue":500}

Source§

readonly message?: string

Source§

readonly messageId?: string

Source§

readonly name?: string

Label Name

Source§

readonly operation?:
    | "create"
    | "get"
    | "getAll"
    | "delete"
    | "send"
    | "sendAndWait"
    | "reply"
    | "addLabels"
    | "markAsRead"
    | "markAsUnread"
    | "removeLabels"
    | "trash"
    | "untrash"

Default: "create"

Source§

readonly options?:
    | {
        attachmentsUi?: {
            attachmentsBinary: { property?: string }[];
        };
        bccList?: string;
        ccList?: string;
        fromAlias?: string;
        replyTo?: string;
        sendTo?: string;
        threadId?: string;
    }
    | {
        dataPropertyAttachmentsPrefixName?: string;
        downloadAttachments?: boolean;
    }
    | {
        dataPropertyAttachmentsPrefixName?: string;
        downloadAttachments?: boolean;
        includeSpamTrash?: boolean;
    }
    | {
        labelListVisibility?: | "labelHide"
        | "labelShow"
        | "labelShowIfUnread";
        messageListVisibility?: "hide"
        | "show";
    }
    | {
        appendAttribution?: boolean;
        attachmentsUi?: {
            attachmentsBinary: { property?: string }[];
        };
        bccList?: string;
        ccList?: string;
        replyTo?: string;
        replyToSenderOnly?: boolean;
        senderName?: string;
    }
    | {
        appendAttribution?: boolean;
        limitWaitTime?: {
            values: {
                limitType?: | "afterTimeInterval"
                | "atSpecifiedTime";
                maxDateAndTime?: string;
                resumeAmount?: number;
                resumeUnit?: "minutes"
                | "hours"
                | "days";
            };
        };
    }
    | {
        appendAttribution?: boolean;
        limitWaitTime?: {
            values: {
                limitType?: | "afterTimeInterval"
                | "atSpecifiedTime";
                maxDateAndTime?: string;
                resumeAmount?: number;
                resumeUnit?: "minutes"
                | "hours"
                | "days";
            };
        };
        messageButtonLabel?: string;
        responseFormButtonLabel?: string;
        responseFormCustomCss?: string;
        responseFormDescription?: string;
        responseFormTitle?: string;
    }
    | {
        attachmentsUi?: {
            attachmentsBinary: { property?: string }[];
        };
        bccList?: string;
        ccList?: string;
        replyToSenderOnly?: boolean;
        senderName?: string;
    }
    | { returnOnlyMessages?: boolean }

Default: {}

Source§

readonly resource?: "message" | "thread" | "draft" | "label"

Default: "message"

Source§

readonly responseType?: "approval" | "freeText" | "customForm"

Default: "approval"

Source§

readonly returnAll?: boolean

Whether to return all results or only up to a given limit

Source§

readonly sendTo?: string

The email addresses of the recipients. Multiple addresses can be separated by a comma. e.g. jay@getsby.com, jon@smith.com.

Source§

readonly simple?: boolean

Whether to return a simplified version of the response instead of the raw data Default: true

Source§

readonly subject?: string

Source§

readonly threadId?: string

The ID of the thread you are operating on