n8n-nodes-imap-ai
Version:
Simplified IMAP node for n8n with AI-agent support. Clean and modular email and mailbox management for automation workflows.
13 lines (12 loc) • 662 B
TypeScript
import { ImapFlow } from 'imapflow';
import { IExecuteFunctions, INodeExecutionData, INodeProperties, INodePropertyOptions, NodeExecutionWithMetadata } from 'n8n-workflow';
export interface IResourceOperationDef {
operation: INodePropertyOptions;
parameters: INodeProperties[];
executeImapAction: (context: IExecuteFunctions, itemIndex: number, client: ImapFlow) => Promise<INodeExecutionData[] | NodeExecutionWithMetadata[] | null>;
}
export interface IResourceDef {
resource: INodePropertyOptions;
operationDefs: IResourceOperationDef[];
}
export declare function getAllResourceNodeParameters(resourceDef: IResourceDef): INodeProperties[];