mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
refactor(Item Lists Node): Refactoring (#6575)
This commit is contained in:
24
packages/nodes-base/nodes/ItemLists/V3/ItemListsV3.node.ts
Normal file
24
packages/nodes-base/nodes/ItemLists/V3/ItemListsV3.node.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import type {
|
||||
IExecuteFunctions,
|
||||
INodeType,
|
||||
INodeTypeBaseDescription,
|
||||
INodeTypeDescription,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import { versionDescription } from './actions/versionDescription';
|
||||
import { router } from './actions/router';
|
||||
|
||||
export class ItemListsV3 implements INodeType {
|
||||
description: INodeTypeDescription;
|
||||
|
||||
constructor(baseDescription: INodeTypeBaseDescription) {
|
||||
this.description = {
|
||||
...baseDescription,
|
||||
...versionDescription,
|
||||
};
|
||||
}
|
||||
|
||||
async execute(this: IExecuteFunctions) {
|
||||
return router.call(this);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user