/** * Mailchimp Trigger Node - Version 1 * Handle Mailchimp events via webhooks */ export interface MailchimpTriggerV1Params { authentication?: 'apiKey' | 'oAuth2' | Expression; /** * The list that is gonna fire the event. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ list?: string | Expression; /** * The events that can trigger the webhook and whether they are enabled * @default [] */ events?: Array<'campaign' | 'cleaned' | 'upemail' | 'profile' | 'subscribe' | 'unsubscribe'>; /** * The possible sources of any events that can trigger the webhook and whether they are enabled * @default [] */ sources?: Array<'user' | 'admin' | 'api'>; } export interface MailchimpTriggerV1Credentials { mailchimpApi: CredentialReference; mailchimpOAuth2Api: CredentialReference; } interface MailchimpTriggerV1NodeBase { type: 'n8n-nodes-base.mailchimpTrigger'; version: 1; credentials?: MailchimpTriggerV1Credentials; isTrigger: true; } export type MailchimpTriggerV1ParamsNode = MailchimpTriggerV1NodeBase & { config: NodeConfig; }; export type MailchimpTriggerV1Node = MailchimpTriggerV1ParamsNode;