Add Gmail integration configuration fields to NodeConfiguration

- Introduced detailed configuration fields for Gmail integration, including access token, operation type, recipient, subject, body, message ID, and search query.
- Enhanced user experience by providing tailored input options for various Gmail operations, supporting send, read, reply, forward, draft, label, search, and attachment functionalities.
This commit is contained in:
Nikhil-Doye
2025-10-23 17:00:17 -04:00
parent b6226cb1a8
commit 63de59f957
+56
View File
@@ -335,6 +335,62 @@ const nodeTypeConfigs: Record<
},
],
},
gmail: {
title: "Gmail Integration Configuration",
fields: [
{
key: "accessToken",
label: "Access Token",
type: "text",
placeholder: "your-gmail-access-token",
},
{
key: "operation",
label: "Operation Type",
type: "select",
options: [
"send",
"read",
"reply",
"forward",
"draft",
"label",
"search",
"attachment",
],
},
{
key: "to",
label: "To (for send/forward operations)",
type: "text",
placeholder: "recipient@example.com",
},
{
key: "subject",
label: "Subject",
type: "text",
placeholder: "Email subject",
},
{
key: "body",
label: "Message Body",
type: "textarea",
placeholder: "Email content",
},
{
key: "messageId",
label: "Message ID (for read/reply/forward operations)",
type: "text",
placeholder: "Message ID",
},
{
key: "query",
label: "Search Query (for read/search operations)",
type: "text",
placeholder: "Search query",
},
],
},
};
export const NodeConfiguration: React.FC<NodeConfigurationProps> = ({