import type { ITriggerFunctions, INodeType, INodeTypeDescription, ITriggerResponse, } from 'n8n-workflow'; import { NodeConnectionType } from 'n8n-workflow'; type eventType = 'Workflow activated' | 'Workflow updated' | undefined; type activationType = 'activate' | 'update'; export class WorkflowTrigger implements INodeType { description: INodeTypeDescription = { displayName: 'Workflow Trigger', hidden: true, name: 'workflowTrigger', icon: 'fa:network-wired', iconColor: 'orange-red', group: ['trigger'], version: 1, description: 'Triggers based on various lifecycle events, like when a workflow is activated', eventTriggerDescription: '', mockManualExecution: true, activationMessage: 'Your workflow will now trigger executions on the event you have defined.', defaults: { name: 'Workflow Trigger', color: '#ff6d5a', }, inputs: [], outputs: [NodeConnectionType.Main], properties: [ { displayName: "This node is deprecated and would not be updated in the future. Please use 'n8n Trigger' node instead.", name: 'oldVersionNotice', type: 'notice', default: '', }, { displayName: 'Events', name: 'events', type: 'multiOptions', required: true, default: [], description: `Specifies under which conditions an execution should happen: