UNPKG

n8n-nodes-base

Version:

Base nodes of n8n

41 lines (35 loc) 1.26 kB
/** * Mailchimp Trigger Node - Version 1 * Handle Mailchimp events via webhooks */ export interface MailchimpTriggerV1Params { authentication?: 'apiKey' | 'oAuth2' | Expression<string>; /** * The list that is gonna fire the event. Choose from the list, or specify an ID using an &lt;a href="https://docs.n8n.io/code/expressions/"&gt;expression&lt;/a&gt;. */ list?: string | Expression<string>; /** * 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<MailchimpTriggerV1Params>; }; export type MailchimpTriggerV1Node = MailchimpTriggerV1ParamsNode;