mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor: rename NodeVersionedType to VersionedNodeType and move it to the workflow package (#4443)
This commit is contained in:
committed by
GitHub
parent
adef6d7083
commit
5c9b40117a
@@ -1,9 +1,9 @@
|
||||
import { INodeTypeBaseDescription, INodeVersionedType } from 'n8n-workflow';
|
||||
import { NodeVersionedType } from '../../src/NodeVersionedType';
|
||||
import { INodeTypeBaseDescription, IVersionedNodeType, VersionedNodeType } from 'n8n-workflow';
|
||||
|
||||
import { EmailReadImapV1 } from './v1/EmailReadImapV1.node';
|
||||
import { EmailReadImapV2 } from './v2/EmailReadImapV2.node';
|
||||
|
||||
export class EmailReadImap extends NodeVersionedType {
|
||||
export class EmailReadImap extends VersionedNodeType {
|
||||
constructor() {
|
||||
const baseDescription: INodeTypeBaseDescription = {
|
||||
displayName: 'Email Trigger (IMAP)',
|
||||
@@ -14,7 +14,7 @@ export class EmailReadImap extends NodeVersionedType {
|
||||
defaultVersion: 2,
|
||||
};
|
||||
|
||||
const nodeVersions: INodeVersionedType['nodeVersions'] = {
|
||||
const nodeVersions: IVersionedNodeType['nodeVersions'] = {
|
||||
1: new EmailReadImapV1(baseDescription),
|
||||
2: new EmailReadImapV2(baseDescription),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user