n8n-nodes-base 1.20.0 → 1.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/known/nodes.json +24 -0
- package/dist/nodes/Airtable/v2/methods/listSearch.js +1 -1
- package/dist/nodes/Airtable/v2/methods/listSearch.js.map +1 -1
- package/dist/nodes/Airtable/v2/methods/loadOptions.js +2 -2
- package/dist/nodes/Airtable/v2/methods/loadOptions.js.map +1 -1
- package/dist/nodes/Airtable/v2/methods/resourceMapping.js +1 -1
- package/dist/nodes/Airtable/v2/methods/resourceMapping.js.map +1 -1
- package/dist/nodes/Code/Code.node.json +1 -1
- package/dist/nodes/CompareDatasets/CompareDatasets.node.json +1 -1
- package/dist/nodes/CompareDatasets/GenericFunctions.js +6 -5
- package/dist/nodes/CompareDatasets/GenericFunctions.js.map +1 -1
- package/dist/nodes/Crypto/Crypto.node.json +1 -1
- package/dist/nodes/DateTime/DateTime.node.json +1 -1
- package/dist/nodes/DateTime/V2/DateTimeV2.node.js +1 -0
- package/dist/nodes/DateTime/V2/DateTimeV2.node.js.map +1 -1
- package/dist/nodes/EmailReadImap/EmailReadImap.node.json +1 -1
- package/dist/nodes/EmailSend/EmailSend.node.json +0 -3
- package/dist/nodes/ErrorTrigger/ErrorTrigger.node.json +1 -1
- package/dist/nodes/ExecuteWorkflow/ExecuteWorkflow.node.json +1 -1
- package/dist/nodes/Facebook/FacebookTrigger.node.js +1 -1
- package/dist/nodes/Facebook/FacebookTrigger.node.js.map +1 -1
- package/dist/nodes/FacebookLeadAds/FacebookLeadAdsTrigger.node.js +1 -1
- package/dist/nodes/FacebookLeadAds/FacebookLeadAdsTrigger.node.js.map +1 -1
- package/dist/nodes/FileMaker/FileMaker.node.js +2 -0
- package/dist/nodes/FileMaker/FileMaker.node.js.map +1 -1
- package/dist/nodes/Filter/Filter.node.js +1 -1
- package/dist/nodes/Filter/Filter.node.js.map +1 -1
- package/dist/nodes/Filter/Filter.node.json +1 -1
- package/dist/nodes/Form/FormTrigger.node.d.ts +3 -4
- package/dist/nodes/Form/FormTrigger.node.js +9 -247
- package/dist/nodes/Form/FormTrigger.node.js.map +1 -1
- package/dist/nodes/Form/FormTrigger.node.json +1 -1
- package/dist/nodes/Form/common.descriptions.d.ts +18 -0
- package/dist/nodes/Form/common.descriptions.js +237 -0
- package/dist/nodes/Form/common.descriptions.js.map +1 -0
- package/dist/nodes/Form/interfaces.d.ts +2 -0
- package/dist/nodes/Form/utils.d.ts +11 -1
- package/dist/nodes/Form/utils.js +70 -2
- package/dist/nodes/Form/utils.js.map +1 -1
- package/dist/nodes/Form/v1/FormTriggerV1.node.d.ts +14 -0
- package/dist/nodes/Form/v1/FormTriggerV1.node.js +82 -0
- package/dist/nodes/Form/v1/FormTriggerV1.node.js.map +1 -0
- package/dist/nodes/Form/v2/FormTriggerV2.node.d.ts +14 -0
- package/dist/nodes/Form/v2/FormTriggerV2.node.js +84 -0
- package/dist/nodes/Form/v2/FormTriggerV2.node.js.map +1 -0
- package/dist/nodes/Github/GithubTrigger.node.js +2 -2
- package/dist/nodes/Github/GithubTrigger.node.js.map +1 -1
- package/dist/nodes/Google/Ads/CampaignDescription.js +2 -2
- package/dist/nodes/Google/Ads/GoogleAds.node.js +1 -1
- package/dist/nodes/Google/BigQuery/v2/actions/database/insert.operation.js +1 -1
- package/dist/nodes/Google/BigQuery/v2/actions/database/insert.operation.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/actions/sheet/append.operation.js +1 -1
- package/dist/nodes/Google/Sheet/v2/actions/sheet/append.operation.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheet.js +1 -1
- package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheet.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheets.utils.js +1 -1
- package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheets.utils.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/methods/listSearch.js +4 -1
- package/dist/nodes/Google/Sheet/v2/methods/listSearch.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/methods/resourceMapping.js +4 -1
- package/dist/nodes/Google/Sheet/v2/methods/resourceMapping.js.map +1 -1
- package/dist/nodes/Html/Html.node.json +1 -1
- package/dist/nodes/If/If.node.d.ts +3 -4
- package/dist/nodes/If/If.node.js +10 -406
- package/dist/nodes/If/If.node.js.map +1 -1
- package/dist/nodes/If/V1/IfV1.node.d.ts +6 -0
- package/dist/nodes/If/V1/IfV1.node.js +414 -0
- package/dist/nodes/If/V1/IfV1.node.js.map +1 -0
- package/dist/nodes/If/V2/IfV2.node.d.ts +6 -0
- package/dist/nodes/If/V2/IfV2.node.js +101 -0
- package/dist/nodes/If/V2/IfV2.node.js.map +1 -0
- package/dist/nodes/If/test/v2/IfV2.date-time.json +163 -0
- package/dist/nodes/If/test/v2/IfV2.number.json +165 -0
- package/dist/nodes/If/test/v2/IfV2.other.json +182 -0
- package/dist/nodes/If/test/v2/IfV2.string.json +178 -0
- package/dist/nodes/ItemLists/ItemLists.node.js +1 -0
- package/dist/nodes/ItemLists/ItemLists.node.js.map +1 -1
- package/dist/nodes/Kafka/Kafka.node.js +3 -1
- package/dist/nodes/Kafka/Kafka.node.js.map +1 -1
- package/dist/nodes/LocalFileTrigger/LocalFileTrigger.node.js +24 -1
- package/dist/nodes/LocalFileTrigger/LocalFileTrigger.node.js.map +1 -1
- package/dist/nodes/Markdown/Markdown.node.json +1 -1
- package/dist/nodes/Merge/Merge.node.json +1 -1
- package/dist/nodes/Merge/v2/MergeV2.node.js +1 -1
- package/dist/nodes/Merge/v2/MergeV2.node.js.map +1 -1
- package/dist/nodes/MySql/v2/actions/database/insert.operation.js +1 -1
- package/dist/nodes/MySql/v2/actions/database/update.operation.js +1 -1
- package/dist/nodes/MySql/v2/actions/database/upsert.operation.js +1 -1
- package/dist/nodes/N8n/N8n.node.json +1 -1
- package/dist/nodes/NocoDB/OperationDescription.js +1 -1
- package/dist/nodes/NocoDB/OperationDescription.js.map +1 -1
- package/dist/nodes/OpenAi/OpenAi.node.js +6 -0
- package/dist/nodes/OpenAi/OpenAi.node.js.map +1 -1
- package/dist/nodes/Postgres/PostgresTrigger.node.js +1 -1
- package/dist/nodes/Postgres/v2/actions/database/insert.operation.js +1 -1
- package/dist/nodes/Postgres/v2/actions/database/update.operation.js +1 -1
- package/dist/nodes/Postgres/v2/actions/database/upsert.operation.js +1 -1
- package/dist/nodes/Postgres/v2/helpers/utils.d.ts +2 -2
- package/dist/nodes/Postgres/v2/methods/resourceMapping.js +1 -1
- package/dist/nodes/Postgres/v2/methods/resourceMapping.js.map +1 -1
- package/dist/nodes/RenameKeys/RenameKeys.node.js +1 -1
- package/dist/nodes/RenameKeys/RenameKeys.node.js.map +1 -1
- package/dist/nodes/RespondToWebhook/RespondToWebhook.node.js +26 -2
- package/dist/nodes/RespondToWebhook/RespondToWebhook.node.js.map +1 -1
- package/dist/nodes/RespondToWebhook/RespondToWebhook.node.json +1 -1
- package/dist/nodes/RssFeedRead/RssFeedRead.node.json +0 -3
- package/dist/nodes/Schedule/ScheduleTrigger.node.json +1 -4
- package/dist/nodes/Set/v2/SetV2.node.js +1 -1
- package/dist/nodes/Slack/V2/GenericFunctions.js +2 -2
- package/dist/nodes/Slack/V2/GenericFunctions.js.map +1 -1
- package/dist/nodes/SseTrigger/SseTrigger.node.json +1 -1
- package/dist/nodes/StopAndError/StopAndError.node.json +1 -1
- package/dist/nodes/TheHive/GenericFunctions.js +1 -1
- package/dist/nodes/TheHive/GenericFunctions.js.map +1 -1
- package/dist/nodes/Transform/Aggregate/Aggregate.node.d.ts +5 -0
- package/dist/nodes/Transform/Aggregate/Aggregate.node.js +365 -0
- package/dist/nodes/Transform/Aggregate/Aggregate.node.js.map +1 -0
- package/dist/nodes/Transform/Aggregate/Aggregate.node.json +19 -0
- package/dist/nodes/Transform/Aggregate/aggregate.svg +14 -0
- package/dist/nodes/Transform/Aggregate/test/workflow.aggregate.json +207 -0
- package/dist/nodes/Transform/Aggregate/utils.d.ts +2 -0
- package/dist/nodes/Transform/Aggregate/utils.js +48 -0
- package/dist/nodes/Transform/Aggregate/utils.js.map +1 -0
- package/dist/nodes/Transform/Limit/Limit.node.d.ts +5 -0
- package/dist/nodes/Transform/Limit/Limit.node.js +68 -0
- package/dist/nodes/Transform/Limit/Limit.node.js.map +1 -0
- package/dist/nodes/Transform/Limit/Limit.node.json +19 -0
- package/dist/nodes/Transform/Limit/limit.svg +16 -0
- package/dist/nodes/Transform/Limit/test/workflow.limit.json +97 -0
- package/dist/nodes/Transform/RemoveDuplicates/RemoveDuplicates.node.d.ts +5 -0
- package/dist/nodes/Transform/RemoveDuplicates/RemoveDuplicates.node.js +221 -0
- package/dist/nodes/Transform/RemoveDuplicates/RemoveDuplicates.node.js.map +1 -0
- package/dist/nodes/Transform/RemoveDuplicates/RemoveDuplicates.node.json +29 -0
- package/dist/nodes/Transform/RemoveDuplicates/removeDuplicates.svg +15 -0
- package/dist/nodes/Transform/RemoveDuplicates/test/workflow.removeDuplicates.json +325 -0
- package/dist/nodes/Transform/RemoveDuplicates/utils.d.ts +3 -0
- package/dist/nodes/Transform/RemoveDuplicates/utils.js +37 -0
- package/dist/nodes/Transform/RemoveDuplicates/utils.js.map +1 -0
- package/dist/nodes/Transform/Sort/Sort.node.d.ts +5 -0
- package/dist/nodes/Transform/Sort/Sort.node.js +257 -0
- package/dist/nodes/Transform/Sort/Sort.node.js.map +1 -0
- package/dist/nodes/Transform/Sort/Sort.node.json +19 -0
- package/dist/nodes/Transform/Sort/sort.svg +6 -0
- package/dist/nodes/Transform/Sort/test/workflow.sort.json +213 -0
- package/dist/nodes/Transform/Sort/utils.d.ts +3 -0
- package/dist/nodes/Transform/Sort/utils.js +27 -0
- package/dist/nodes/Transform/Sort/utils.js.map +1 -0
- package/dist/nodes/Transform/SplitOut/SplitOut.node.d.ts +5 -0
- package/dist/nodes/Transform/SplitOut/SplitOut.node.js +223 -0
- package/dist/nodes/Transform/SplitOut/SplitOut.node.js.map +1 -0
- package/dist/nodes/Transform/SplitOut/SplitOut.node.json +19 -0
- package/dist/nodes/Transform/SplitOut/splitOut.svg +14 -0
- package/dist/nodes/Transform/SplitOut/test/workflow.splitOut.json +354 -0
- package/dist/nodes/Transform/SplitOut/test/workflow.splitOutObject.json +386 -0
- package/dist/nodes/Transform/Summarize/Summarize.node.d.ts +5 -0
- package/dist/nodes/Transform/Summarize/Summarize.node.js +311 -0
- package/dist/nodes/Transform/Summarize/Summarize.node.js.map +1 -0
- package/dist/nodes/Transform/Summarize/Summarize.node.json +32 -0
- package/dist/nodes/Transform/Summarize/summarize.svg +10 -0
- package/dist/nodes/Transform/Summarize/test/workflow.summarize.json +296 -0
- package/dist/nodes/Transform/Summarize/utils.d.ts +22 -0
- package/dist/nodes/Transform/Summarize/utils.js +206 -0
- package/dist/nodes/Transform/Summarize/utils.js.map +1 -0
- package/dist/nodes/Transform/utils/utils.d.ts +1 -0
- package/dist/nodes/Transform/utils/utils.js +18 -0
- package/dist/nodes/Transform/utils/utils.js.map +1 -0
- package/dist/nodes/Wait/Wait.node.d.ts +3 -2
- package/dist/nodes/Wait/Wait.node.js +199 -129
- package/dist/nodes/Wait/Wait.node.js.map +1 -1
- package/dist/nodes/Wait/Wait.node.json +1 -1
- package/dist/nodes/Webhook/Webhook.node.js +26 -10
- package/dist/nodes/Webhook/Webhook.node.js.map +1 -1
- package/dist/nodes/Webhook/Webhook.node.json +1 -1
- package/dist/nodes/Webhook/description.js +31 -2
- package/dist/nodes/Webhook/description.js.map +1 -1
- package/dist/types/nodes.json +74 -66
- package/package.json +10 -4
- /package/dist/nodes/If/test/{IF.boolean.json → v1/IF.boolean.json} +0 -0
- /package/dist/nodes/If/test/{IF.date-time.json → v1/IF.date-time.json} +0 -0
- /package/dist/nodes/If/test/{IF.number.json → v1/IF.number.json} +0 -0
- /package/dist/nodes/If/test/{IF.string.json → v1/IF.string.json} +0 -0
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.SplitOut = void 0;
|
|
7
|
+
const get_1 = __importDefault(require("lodash/get"));
|
|
8
|
+
const unset_1 = __importDefault(require("lodash/unset"));
|
|
9
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
10
|
+
const utils_1 = require("../utils/utils");
|
|
11
|
+
class SplitOut {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.description = {
|
|
14
|
+
displayName: 'Split Out',
|
|
15
|
+
name: 'splitOut',
|
|
16
|
+
icon: 'file:splitOut.svg',
|
|
17
|
+
group: ['transform'],
|
|
18
|
+
subtitle: '',
|
|
19
|
+
version: 1,
|
|
20
|
+
description: 'Turn a list inside item(s) into separate items',
|
|
21
|
+
defaults: {
|
|
22
|
+
name: 'Split Out',
|
|
23
|
+
},
|
|
24
|
+
inputs: ['main'],
|
|
25
|
+
outputs: ['main'],
|
|
26
|
+
properties: [
|
|
27
|
+
{
|
|
28
|
+
displayName: 'Fields To Split Out',
|
|
29
|
+
name: 'fieldToSplitOut',
|
|
30
|
+
type: 'string',
|
|
31
|
+
default: '',
|
|
32
|
+
required: true,
|
|
33
|
+
placeholder: 'Drag fields from the left or type their names',
|
|
34
|
+
description: 'The name of the input fields to break out into separate items. Separate multiple field names by commas. For binary data, use $binary.',
|
|
35
|
+
requiresDataPath: 'multiple',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
displayName: 'Include',
|
|
39
|
+
name: 'include',
|
|
40
|
+
type: 'options',
|
|
41
|
+
options: [
|
|
42
|
+
{
|
|
43
|
+
name: 'No Other Fields',
|
|
44
|
+
value: 'noOtherFields',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'All Other Fields',
|
|
48
|
+
value: 'allOtherFields',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: 'Selected Other Fields',
|
|
52
|
+
value: 'selectedOtherFields',
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
default: 'noOtherFields',
|
|
56
|
+
description: 'Whether to copy any other fields into the new items',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
displayName: 'Fields To Include',
|
|
60
|
+
name: 'fieldsToInclude',
|
|
61
|
+
type: 'string',
|
|
62
|
+
placeholder: 'e.g. email, name',
|
|
63
|
+
requiresDataPath: 'multiple',
|
|
64
|
+
description: 'Fields in the input items to aggregate together',
|
|
65
|
+
default: '',
|
|
66
|
+
displayOptions: {
|
|
67
|
+
show: {
|
|
68
|
+
include: ['selectedOtherFields'],
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
displayName: 'Options',
|
|
74
|
+
name: 'options',
|
|
75
|
+
type: 'collection',
|
|
76
|
+
placeholder: 'Add Field',
|
|
77
|
+
default: {},
|
|
78
|
+
options: [
|
|
79
|
+
{
|
|
80
|
+
displayName: 'Disable Dot Notation',
|
|
81
|
+
name: 'disableDotNotation',
|
|
82
|
+
type: 'boolean',
|
|
83
|
+
default: false,
|
|
84
|
+
description: 'Whether to disallow referencing child fields using `parent.child` in the field name',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
displayName: 'Destination Field Name',
|
|
88
|
+
name: 'destinationFieldName',
|
|
89
|
+
type: 'string',
|
|
90
|
+
requiresDataPath: 'multiple',
|
|
91
|
+
default: '',
|
|
92
|
+
description: 'The field in the output under which to put the split field contents',
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
displayName: 'Include Binary',
|
|
96
|
+
name: 'includeBinary',
|
|
97
|
+
type: 'boolean',
|
|
98
|
+
default: false,
|
|
99
|
+
description: 'Whether to include the binary data in the new items',
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
},
|
|
103
|
+
],
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
async execute() {
|
|
107
|
+
const returnData = [];
|
|
108
|
+
const items = this.getInputData();
|
|
109
|
+
for (let i = 0; i < items.length; i++) {
|
|
110
|
+
const fieldsToSplitOut = this.getNodeParameter('fieldToSplitOut', i)
|
|
111
|
+
.split(',')
|
|
112
|
+
.map((field) => field.trim().replace(/^\$json\./, ''));
|
|
113
|
+
const options = this.getNodeParameter('options', i, {});
|
|
114
|
+
const disableDotNotation = options.disableDotNotation;
|
|
115
|
+
const destinationFields = (options.destinationFieldName || '')
|
|
116
|
+
.split(',')
|
|
117
|
+
.filter((field) => field.trim() !== '')
|
|
118
|
+
.map((field) => field.trim());
|
|
119
|
+
if (destinationFields.length && destinationFields.length !== fieldsToSplitOut.length) {
|
|
120
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'If multiple fields to split out are given, the same number of destination fields must be given');
|
|
121
|
+
}
|
|
122
|
+
const include = this.getNodeParameter('include', i);
|
|
123
|
+
const multiSplit = fieldsToSplitOut.length > 1;
|
|
124
|
+
const item = { ...items[i].json };
|
|
125
|
+
const splited = [];
|
|
126
|
+
for (const [entryIndex, fieldToSplitOut] of fieldsToSplitOut.entries()) {
|
|
127
|
+
const destinationFieldName = destinationFields[entryIndex] || '';
|
|
128
|
+
let entityToSplit = [];
|
|
129
|
+
if (fieldToSplitOut === '$binary') {
|
|
130
|
+
entityToSplit = Object.entries(items[i].binary || {}).map(([key, value]) => ({
|
|
131
|
+
[key]: value,
|
|
132
|
+
}));
|
|
133
|
+
}
|
|
134
|
+
else {
|
|
135
|
+
if (!disableDotNotation) {
|
|
136
|
+
entityToSplit = (0, get_1.default)(item, fieldToSplitOut);
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
entityToSplit = item[fieldToSplitOut];
|
|
140
|
+
}
|
|
141
|
+
if (entityToSplit === undefined) {
|
|
142
|
+
entityToSplit = [];
|
|
143
|
+
}
|
|
144
|
+
if (typeof entityToSplit !== 'object' || entityToSplit === null) {
|
|
145
|
+
entityToSplit = [entityToSplit];
|
|
146
|
+
}
|
|
147
|
+
if (!Array.isArray(entityToSplit)) {
|
|
148
|
+
entityToSplit = Object.values(entityToSplit);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
for (const [elementIndex, element] of entityToSplit.entries()) {
|
|
152
|
+
if (splited[elementIndex] === undefined) {
|
|
153
|
+
splited[elementIndex] = { json: {}, pairedItem: { item: i } };
|
|
154
|
+
}
|
|
155
|
+
const fieldName = destinationFieldName || fieldToSplitOut;
|
|
156
|
+
if (fieldToSplitOut === '$binary') {
|
|
157
|
+
if (splited[elementIndex].binary === undefined) {
|
|
158
|
+
splited[elementIndex].binary = {};
|
|
159
|
+
}
|
|
160
|
+
splited[elementIndex].binary[Object.keys(element)[0]] = Object.values(element)[0];
|
|
161
|
+
continue;
|
|
162
|
+
}
|
|
163
|
+
if (typeof element === 'object' && element !== null && include === 'noOtherFields') {
|
|
164
|
+
if (destinationFieldName === '' && !multiSplit) {
|
|
165
|
+
splited[elementIndex] = {
|
|
166
|
+
json: { ...splited[elementIndex].json, ...element },
|
|
167
|
+
pairedItem: { item: i },
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
splited[elementIndex].json[fieldName] = element;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
splited[elementIndex].json[fieldName] = element;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
for (const splitEntry of splited) {
|
|
180
|
+
let newItem = splitEntry;
|
|
181
|
+
if (include === 'allOtherFields') {
|
|
182
|
+
const itemCopy = (0, n8n_workflow_1.deepCopy)(item);
|
|
183
|
+
for (const fieldToSplitOut of fieldsToSplitOut) {
|
|
184
|
+
if (!disableDotNotation) {
|
|
185
|
+
(0, unset_1.default)(itemCopy, fieldToSplitOut);
|
|
186
|
+
}
|
|
187
|
+
else {
|
|
188
|
+
delete itemCopy[fieldToSplitOut];
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
newItem.json = { ...itemCopy, ...splitEntry.json };
|
|
192
|
+
}
|
|
193
|
+
if (include === 'selectedOtherFields') {
|
|
194
|
+
const fieldsToInclude = (0, utils_1.prepareFieldsArray)(this.getNodeParameter('fieldsToInclude', i, ''), 'Fields To Include');
|
|
195
|
+
if (!fieldsToInclude.length) {
|
|
196
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'No fields specified', {
|
|
197
|
+
description: 'Please add a field to include',
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
for (const field of fieldsToInclude) {
|
|
201
|
+
if (!disableDotNotation) {
|
|
202
|
+
splitEntry.json[field] = (0, get_1.default)(item, field);
|
|
203
|
+
}
|
|
204
|
+
else {
|
|
205
|
+
splitEntry.json[field] = item[field];
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
newItem = splitEntry;
|
|
209
|
+
}
|
|
210
|
+
const includeBinary = options.includeBinary;
|
|
211
|
+
if (includeBinary) {
|
|
212
|
+
if (items[i].binary && !newItem.binary) {
|
|
213
|
+
newItem.binary = items[i].binary;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
returnData.push(newItem);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
return [returnData];
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
exports.SplitOut = SplitOut;
|
|
223
|
+
//# sourceMappingURL=SplitOut.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SplitOut.node.js","sourceRoot":"","sources":["../../../../nodes/Transform/SplitOut/SplitOut.node.ts"],"names":[],"mappings":";;;;;;AAAA,qDAA6B;AAC7B,yDAAiC;AACjC,+CASsB;AACtB,0CAAoD;AAEpD,MAAa,QAAQ;IAArB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,WAAW;YACxB,IAAI,EAAE,UAAU;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0",
|
|
5
|
+
"details": "",
|
|
6
|
+
"categories": ["Core Nodes"],
|
|
7
|
+
"resources": {
|
|
8
|
+
"primaryDocumentation": [
|
|
9
|
+
{
|
|
10
|
+
"url": "https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.splitout/"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"generic": []
|
|
14
|
+
},
|
|
15
|
+
"alias": ["Split", "Nested", "Transform", "Array", "List", "Item"],
|
|
16
|
+
"subcategories": {
|
|
17
|
+
"Core Nodes": ["Data Transformation"]
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_1147_350)">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M480 148C480 141.373 474.627 136 468 136L322 136C315.373 136 310 141.373 310 148L310 172C310 178.627 315.373 184 322 184L468 184C474.627 184 480 178.627 480 172L480 148Z" fill="#9B6DD5"/>
|
|
4
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M480 244C480 237.373 474.627 232 468 232L322 232C315.373 232 310 237.373 310 244L310 268C310 274.627 315.373 280 322 280L468 280C474.627 280 480 274.627 480 268L480 244Z" fill="#9B6DD5"/>
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M480 340C480 333.373 474.627 328 468 328L322 328C315.373 328 310 333.373 310 340L310 364C310 370.627 315.373 376 322 376L468 376C474.627 376 480 370.627 480 364L480 340Z" fill="#9B6DD5"/>
|
|
6
|
+
<path d="M438 76C438 82.6274 432.627 88 426 88H309.783C292.11 88 277.783 102.327 277.783 120V176C277.783 202.978 267.511 227.557 250.664 246.039C245.609 251.584 245.609 260.416 250.664 265.961C267.511 284.443 277.783 309.022 277.783 336V392C277.783 409.673 292.11 424 309.783 424H426C432.627 424 438 429.373 438 436V460C438 466.627 432.627 472 426 472H309.783C265.6 472 229.783 436.183 229.783 392V336C229.783 305.072 204.711 280 173.783 280V280C170.589 280 168 277.411 168 274.217V237.783C168 234.589 170.589 232 173.783 232V232C204.711 232 229.783 206.928 229.783 176V120C229.783 75.8172 265.6 40 309.783 40H426C432.627 40 438 45.3726 438 52V76Z" fill="#9B6DD5"/>
|
|
7
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M136 244C136 237.373 130.627 232 124 232L12 232C5.37257 232 -8.97182e-06 237.373 -8.39243e-06 244L-6.29428e-06 268C-5.71489e-06 274.627 5.37258 280 12 280L124 280C130.627 280 136 274.627 136 268L136 244Z" fill="#9B6DD5"/>
|
|
8
|
+
</g>
|
|
9
|
+
<defs>
|
|
10
|
+
<clipPath id="clip0_1147_350">
|
|
11
|
+
<rect width="512" height="512" fill="white" transform="matrix(-1 0 0 1 512 0)"/>
|
|
12
|
+
</clipPath>
|
|
13
|
+
</defs>
|
|
14
|
+
</svg>
|
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "splitOut test",
|
|
3
|
+
"nodes": [
|
|
4
|
+
{
|
|
5
|
+
"parameters": {},
|
|
6
|
+
"id": "6c90bf81-0c0e-4c5f-9f0c-297f06d9668a",
|
|
7
|
+
"name": "When clicking \"Execute Workflow\"",
|
|
8
|
+
"type": "n8n-nodes-base.manualTrigger",
|
|
9
|
+
"typeVersion": 1,
|
|
10
|
+
"position": [-400, 400]
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"parameters": {
|
|
14
|
+
"jsCode": "return { \ndata:[\n {id: 3, char: 'c'},\n {id: 4, char: 'd'},\n {id: 5, char: 'e'},\n {id: 1, char: 'a'},\n {id: 2, char: 'b'},\n],\ndata2: [\n {text: 'foo'},\n],\ndata3: [\n {text: 'bar'},\n],\n};"
|
|
15
|
+
},
|
|
16
|
+
"id": "2e0011d5-c6a0-4a40-ab8c-9d011cde40d5",
|
|
17
|
+
"name": "Code",
|
|
18
|
+
"type": "n8n-nodes-base.code",
|
|
19
|
+
"typeVersion": 1,
|
|
20
|
+
"position": [-180, 400]
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"parameters": {
|
|
24
|
+
"fieldToSplitOut": "data",
|
|
25
|
+
"options": {}
|
|
26
|
+
},
|
|
27
|
+
"id": "e7eac465-8fe6-498c-9942-ebd47df537c1",
|
|
28
|
+
"name": "Item Lists",
|
|
29
|
+
"type": "n8n-nodes-base.splitOut",
|
|
30
|
+
"typeVersion": 1,
|
|
31
|
+
"position": [80, 160]
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"parameters": {
|
|
35
|
+
"fieldToSplitOut": "data",
|
|
36
|
+
"include": "allOtherFields",
|
|
37
|
+
"options": {}
|
|
38
|
+
},
|
|
39
|
+
"id": "09b7fe15-dbad-4ca6-bf1e-3093139d14e5",
|
|
40
|
+
"name": "Item Lists1",
|
|
41
|
+
"type": "n8n-nodes-base.splitOut",
|
|
42
|
+
"typeVersion": 1,
|
|
43
|
+
"position": [80, 320]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"parameters": {
|
|
47
|
+
"fieldToSplitOut": "data",
|
|
48
|
+
"include": "selectedOtherFields",
|
|
49
|
+
"fieldsToInclude": ["data3"],
|
|
50
|
+
"options": {}
|
|
51
|
+
},
|
|
52
|
+
"id": "7ea63dc7-8141-4233-af47-9894919c7fe4",
|
|
53
|
+
"name": "Item Lists2",
|
|
54
|
+
"type": "n8n-nodes-base.splitOut",
|
|
55
|
+
"typeVersion": 1,
|
|
56
|
+
"position": [80, 480]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"parameters": {
|
|
60
|
+
"fieldToSplitOut": "data",
|
|
61
|
+
"options": {
|
|
62
|
+
"destinationFieldName": "output"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"id": "89c3c1b4-9577-480a-931f-3b34450b23cb",
|
|
66
|
+
"name": "Item Lists3",
|
|
67
|
+
"type": "n8n-nodes-base.splitOut",
|
|
68
|
+
"typeVersion": 1,
|
|
69
|
+
"position": [80, 660]
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"pinData": {
|
|
73
|
+
"Item Lists": [
|
|
74
|
+
{
|
|
75
|
+
"json": {
|
|
76
|
+
"id": 3,
|
|
77
|
+
"char": "c"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"json": {
|
|
82
|
+
"id": 4,
|
|
83
|
+
"char": "d"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"json": {
|
|
88
|
+
"id": 5,
|
|
89
|
+
"char": "e"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"json": {
|
|
94
|
+
"id": 1,
|
|
95
|
+
"char": "a"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"json": {
|
|
100
|
+
"id": 2,
|
|
101
|
+
"char": "b"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
"Item Lists1": [
|
|
106
|
+
{
|
|
107
|
+
"json": {
|
|
108
|
+
"data2": [
|
|
109
|
+
{
|
|
110
|
+
"text": "foo"
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
"data3": [
|
|
114
|
+
{
|
|
115
|
+
"text": "bar"
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
"data": {
|
|
119
|
+
"id": 3,
|
|
120
|
+
"char": "c"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"json": {
|
|
126
|
+
"data2": [
|
|
127
|
+
{
|
|
128
|
+
"text": "foo"
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
"data3": [
|
|
132
|
+
{
|
|
133
|
+
"text": "bar"
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
"data": {
|
|
137
|
+
"id": 4,
|
|
138
|
+
"char": "d"
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"json": {
|
|
144
|
+
"data2": [
|
|
145
|
+
{
|
|
146
|
+
"text": "foo"
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
"data3": [
|
|
150
|
+
{
|
|
151
|
+
"text": "bar"
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
"data": {
|
|
155
|
+
"id": 5,
|
|
156
|
+
"char": "e"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"json": {
|
|
162
|
+
"data2": [
|
|
163
|
+
{
|
|
164
|
+
"text": "foo"
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
"data3": [
|
|
168
|
+
{
|
|
169
|
+
"text": "bar"
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
"data": {
|
|
173
|
+
"id": 1,
|
|
174
|
+
"char": "a"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"json": {
|
|
180
|
+
"data2": [
|
|
181
|
+
{
|
|
182
|
+
"text": "foo"
|
|
183
|
+
}
|
|
184
|
+
],
|
|
185
|
+
"data3": [
|
|
186
|
+
{
|
|
187
|
+
"text": "bar"
|
|
188
|
+
}
|
|
189
|
+
],
|
|
190
|
+
"data": {
|
|
191
|
+
"id": 2,
|
|
192
|
+
"char": "b"
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
],
|
|
197
|
+
"Item Lists2": [
|
|
198
|
+
{
|
|
199
|
+
"json": {
|
|
200
|
+
"data3": [
|
|
201
|
+
{
|
|
202
|
+
"text": "bar"
|
|
203
|
+
}
|
|
204
|
+
],
|
|
205
|
+
"data": {
|
|
206
|
+
"id": 3,
|
|
207
|
+
"char": "c"
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"json": {
|
|
213
|
+
"data3": [
|
|
214
|
+
{
|
|
215
|
+
"text": "bar"
|
|
216
|
+
}
|
|
217
|
+
],
|
|
218
|
+
"data": {
|
|
219
|
+
"id": 4,
|
|
220
|
+
"char": "d"
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"json": {
|
|
226
|
+
"data3": [
|
|
227
|
+
{
|
|
228
|
+
"text": "bar"
|
|
229
|
+
}
|
|
230
|
+
],
|
|
231
|
+
"data": {
|
|
232
|
+
"id": 5,
|
|
233
|
+
"char": "e"
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"json": {
|
|
239
|
+
"data3": [
|
|
240
|
+
{
|
|
241
|
+
"text": "bar"
|
|
242
|
+
}
|
|
243
|
+
],
|
|
244
|
+
"data": {
|
|
245
|
+
"id": 1,
|
|
246
|
+
"char": "a"
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"json": {
|
|
252
|
+
"data3": [
|
|
253
|
+
{
|
|
254
|
+
"text": "bar"
|
|
255
|
+
}
|
|
256
|
+
],
|
|
257
|
+
"data": {
|
|
258
|
+
"id": 2,
|
|
259
|
+
"char": "b"
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
],
|
|
264
|
+
"Item Lists3": [
|
|
265
|
+
{
|
|
266
|
+
"json": {
|
|
267
|
+
"output": {
|
|
268
|
+
"id": 3,
|
|
269
|
+
"char": "c"
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"json": {
|
|
275
|
+
"output": {
|
|
276
|
+
"id": 4,
|
|
277
|
+
"char": "d"
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"json": {
|
|
283
|
+
"output": {
|
|
284
|
+
"id": 5,
|
|
285
|
+
"char": "e"
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"json": {
|
|
291
|
+
"output": {
|
|
292
|
+
"id": 1,
|
|
293
|
+
"char": "a"
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"json": {
|
|
299
|
+
"output": {
|
|
300
|
+
"id": 2,
|
|
301
|
+
"char": "b"
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
]
|
|
306
|
+
},
|
|
307
|
+
"connections": {
|
|
308
|
+
"When clicking \"Execute Workflow\"": {
|
|
309
|
+
"main": [
|
|
310
|
+
[
|
|
311
|
+
{
|
|
312
|
+
"node": "Code",
|
|
313
|
+
"type": "main",
|
|
314
|
+
"index": 0
|
|
315
|
+
}
|
|
316
|
+
]
|
|
317
|
+
]
|
|
318
|
+
},
|
|
319
|
+
"Code": {
|
|
320
|
+
"main": [
|
|
321
|
+
[
|
|
322
|
+
{
|
|
323
|
+
"node": "Item Lists",
|
|
324
|
+
"type": "main",
|
|
325
|
+
"index": 0
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"node": "Item Lists1",
|
|
329
|
+
"type": "main",
|
|
330
|
+
"index": 0
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"node": "Item Lists2",
|
|
334
|
+
"type": "main",
|
|
335
|
+
"index": 0
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"node": "Item Lists3",
|
|
339
|
+
"type": "main",
|
|
340
|
+
"index": 0
|
|
341
|
+
}
|
|
342
|
+
]
|
|
343
|
+
]
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
"active": false,
|
|
347
|
+
"settings": {},
|
|
348
|
+
"versionId": "9230f580-6f41-47c9-9949-bf258fc3fa47",
|
|
349
|
+
"id": "105",
|
|
350
|
+
"meta": {
|
|
351
|
+
"instanceId": "36203ea1ce3cef713fa25999bd9874ae26b9e4c2c3a90a365f2882a154d031d0"
|
|
352
|
+
},
|
|
353
|
+
"tags": []
|
|
354
|
+
}
|