2023-02-28 09:00:39 -08:00
|
|
|
import type { INodeTypeBaseDescription, IVersionedNodeType } from 'n8n-workflow';
|
|
|
|
import { VersionedNodeType } from 'n8n-workflow';
|
|
|
|
|
|
|
|
import { ItemListsV1 } from './V1/ItemListsV1.node';
|
|
|
|
import { ItemListsV2 } from './V2/ItemListsV2.node';
|
2023-07-03 05:01:01 -07:00
|
|
|
import { ItemListsV3 } from './V3/ItemListsV3.node';
|
2023-02-28 09:00:39 -08:00
|
|
|
|
|
|
|
export class ItemLists extends VersionedNodeType {
|
|
|
|
constructor() {
|
|
|
|
const baseDescription: INodeTypeBaseDescription = {
|
|
|
|
displayName: 'Item Lists',
|
|
|
|
name: 'itemLists',
|
|
|
|
icon: 'file:itemLists.svg',
|
|
|
|
group: ['input'],
|
|
|
|
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
|
|
description: 'Helper for working with lists of items and transforming arrays',
|
2023-11-21 04:10:59 -08:00
|
|
|
defaultVersion: 3.1,
|
2023-02-28 09:00:39 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
const nodeVersions: IVersionedNodeType['nodeVersions'] = {
|
|
|
|
1: new ItemListsV1(baseDescription),
|
|
|
|
2: new ItemListsV2(baseDescription),
|
2023-04-28 09:46:59 -07:00
|
|
|
2.1: new ItemListsV2(baseDescription),
|
2023-06-15 06:52:39 -07:00
|
|
|
2.2: new ItemListsV2(baseDescription),
|
2023-07-03 05:01:01 -07:00
|
|
|
3: new ItemListsV3(baseDescription),
|
2023-11-21 04:10:59 -08:00
|
|
|
3.1: new ItemListsV3(baseDescription),
|
2023-02-28 09:00:39 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
super(nodeVersions, baseDescription);
|
2021-09-15 00:55:36 -07:00
|
|
|
}
|
|
|
|
}
|