n8n/packages/nodes-base/nodes/Splunk/Splunk.node.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
712 B
TypeScript
Raw Normal View History

2024-07-04 06:07:17 -07:00
import type { INodeTypeBaseDescription, IVersionedNodeType } from 'n8n-workflow';
import { VersionedNodeType } from 'n8n-workflow';
import { SplunkV1 } from './v1/SplunkV1.node';
import { SplunkV2 } from './v2/SplunkV2.node';
export class Splunk extends VersionedNodeType {
constructor() {
const baseDescription: INodeTypeBaseDescription = {
displayName: 'Splunk',
name: 'splunk',
icon: 'file:splunk.svg',
group: ['transform'],
description: 'Consume the Splunk Enterprise API',
defaultVersion: 2,
};
const nodeVersions: IVersionedNodeType['nodeVersions'] = {
1: new SplunkV1(baseDescription),
2: new SplunkV2(baseDescription),
};
super(nodeVersions, baseDescription);
}
}