mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-16 09:34:07 -08:00
52dd2c7619
Some checks are pending
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions
Benchmark Docker Image CI / build (push) Waiting to run
Co-authored-by: Jan Oberhauser <jan@n8n.io> Co-authored-by: Giulio Andreini <g.andreini@gmail.com> Co-authored-by: Tomi Turtiainen <10324676+tomi@users.noreply.github.com> Co-authored-by: Elias Meire <elias@meire.dev>
26 lines
867 B
TypeScript
26 lines
867 B
TypeScript
import type { INodeTypeBaseDescription, IVersionedNodeType } from 'n8n-workflow';
|
|
import { VersionedNodeType } from 'n8n-workflow';
|
|
|
|
import { RemoveDuplicatesV1 } from './v1/RemoveDuplicatesV1.node';
|
|
import { RemoveDuplicatesV2 } from './v2/RemoveDuplicatesV2.node';
|
|
export class RemoveDuplicates extends VersionedNodeType {
|
|
constructor() {
|
|
const baseDescription: INodeTypeBaseDescription = {
|
|
displayName: 'Remove Duplicates',
|
|
name: 'removeDuplicates',
|
|
icon: 'file:removeDuplicates.svg',
|
|
group: ['transform'],
|
|
defaultVersion: 2,
|
|
description: 'Delete items with matching field values',
|
|
};
|
|
|
|
const nodeVersions: IVersionedNodeType['nodeVersions'] = {
|
|
1: new RemoveDuplicatesV1(baseDescription),
|
|
1.1: new RemoveDuplicatesV1(baseDescription),
|
|
2: new RemoveDuplicatesV2(baseDescription),
|
|
};
|
|
|
|
super(nodeVersions, baseDescription);
|
|
}
|
|
}
|