mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 13:14:07 -08:00
7b773cc5cc
Github issue / Community forum post (link here to close automatically): --------- Co-authored-by: Michael Kret <michael.k@radency.com>
28 lines
866 B
TypeScript
28 lines
866 B
TypeScript
import type { INodeTypeBaseDescription, IVersionedNodeType } from 'n8n-workflow';
|
|
import { VersionedNodeType } from 'n8n-workflow';
|
|
|
|
import { SplitInBatchesV1 } from './v1/SplitInBatchesV1.node';
|
|
import { SplitInBatchesV2 } from './v2/SplitInBatchesV2.node';
|
|
import { SplitInBatchesV3 } from './v3/SplitInBatchesV3.node';
|
|
|
|
export class SplitInBatches extends VersionedNodeType {
|
|
constructor() {
|
|
const baseDescription: INodeTypeBaseDescription = {
|
|
displayName: 'Split In Batches',
|
|
name: 'splitInBatches',
|
|
icon: 'fa:th-large',
|
|
group: ['organization'],
|
|
description: 'Split data into batches and iterate over each batch',
|
|
defaultVersion: 3,
|
|
};
|
|
|
|
const nodeVersions: IVersionedNodeType['nodeVersions'] = {
|
|
1: new SplitInBatchesV1(),
|
|
2: new SplitInBatchesV2(),
|
|
3: new SplitInBatchesV3(),
|
|
};
|
|
|
|
super(nodeVersions, baseDescription);
|
|
}
|
|
}
|