mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
25 lines
784 B
TypeScript
25 lines
784 B
TypeScript
import type { INodeTypeBaseDescription, IVersionedNodeType } from 'n8n-workflow';
|
|
import { VersionedNodeType } from 'n8n-workflow';
|
|
import { WebflowTriggerV1 } from './V1/WebflowTriggerV1.node';
|
|
import { WebflowTriggerV2 } from './V2/WebflowTriggerV2.node';
|
|
|
|
export class WebflowTrigger extends VersionedNodeType {
|
|
constructor() {
|
|
const baseDescription: INodeTypeBaseDescription = {
|
|
displayName: 'Webflow Trigger',
|
|
name: 'webflowTrigger',
|
|
icon: 'file:webflow.svg',
|
|
group: ['trigger'],
|
|
description: 'Handle Webflow events via webhooks',
|
|
defaultVersion: 2,
|
|
};
|
|
|
|
const nodeVersions: IVersionedNodeType['nodeVersions'] = {
|
|
1: new WebflowTriggerV1(baseDescription),
|
|
2: new WebflowTriggerV2(baseDescription),
|
|
};
|
|
|
|
super(nodeVersions, baseDescription);
|
|
}
|
|
}
|