UNPKG

n8n-nodes-base

Version:

Base nodes of n8n

30 lines (25 loc) 1.03 kB
/** * n8n Trigger Node - Version 1 * Handle events and perform actions on your n8n instance */ export interface N8nTriggerV1Params { /** * Specifies under which conditions an execution should happen: &lt;ul&gt; &lt;li&gt;&lt;b&gt;Published Workflow Updated&lt;/b&gt;: Triggers when workflow version is published from a published state (workflow was already published)&lt;/li&gt; &lt;li&gt;&lt;b&gt;Instance Started&lt;/b&gt;: Triggers when this n8n instance is started or re-started&lt;/li&gt; &lt;li&gt;&lt;b&gt;Workflow Published&lt;/b&gt;: Triggers when workflow version is published from an unpublished state (workflow was unpublished)&lt;/li&gt; &lt;/ul&gt; * @default [] */ events?: Array<'update' | 'init' | 'activate'>; } interface N8nTriggerV1NodeBase { type: 'n8n-nodes-base.n8nTrigger'; version: 1; isTrigger: true; } export type N8nTriggerV1ParamsNode = N8nTriggerV1NodeBase & { config: NodeConfig<N8nTriggerV1Params>; }; export type N8nTriggerV1Node = N8nTriggerV1ParamsNode;