n8n-nodes-base 0.212.1 → 0.213.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.
Files changed (144) hide show
  1. package/dist/nodes/ActiveCampaign/ActiveCampaign.node.js +1 -1
  2. package/dist/nodes/ActiveCampaign/ActiveCampaign.node.js.map +1 -1
  3. package/dist/nodes/Code/test/Code.node.test.d.ts +1 -0
  4. package/dist/nodes/Code/test/Code.node.test.js +6 -0
  5. package/dist/nodes/Code/test/Code.node.test.js.map +1 -0
  6. package/dist/nodes/Code/test/Code.workflow.json +116 -0
  7. package/dist/nodes/CompareDatasets/test/node/CompareDatasets.test.d.ts +1 -0
  8. package/dist/nodes/CompareDatasets/test/node/CompareDatasets.test.js +6 -0
  9. package/dist/nodes/CompareDatasets/test/node/CompareDatasets.test.js.map +1 -0
  10. package/dist/nodes/CompareDatasets/test/node/workflow.compareDatasets.fuzzy.json +1054 -0
  11. package/dist/nodes/CompareDatasets/test/node/workflow.compareDatasets.json +879 -0
  12. package/dist/nodes/Compression/test/node/Compression.test.d.ts +1 -0
  13. package/dist/nodes/Compression/test/node/Compression.test.js +67 -0
  14. package/dist/nodes/Compression/test/node/Compression.test.js.map +1 -0
  15. package/dist/nodes/Compression/test/node/workflow.compression.json +87 -0
  16. package/dist/nodes/Crypto/test/Crypto.test.d.ts +1 -0
  17. package/dist/nodes/Crypto/test/Crypto.test.js +6 -0
  18. package/dist/nodes/Crypto/test/Crypto.test.js.map +1 -0
  19. package/dist/nodes/Crypto/test/CryptoTest.workflow.json +238 -0
  20. package/dist/nodes/DateTime/test/node/DateTime.test.d.ts +1 -0
  21. package/dist/nodes/DateTime/test/node/DateTime.test.js +15 -0
  22. package/dist/nodes/DateTime/test/node/DateTime.test.js.map +1 -0
  23. package/dist/nodes/DateTime/test/node/DateTimeWorklfow.test.json +331 -0
  24. package/dist/nodes/EditImage/EditImage.node.js +4 -0
  25. package/dist/nodes/EditImage/EditImage.node.js.map +1 -1
  26. package/dist/nodes/ExecuteCommand/test/ExecuteCommand.node.test.d.ts +1 -0
  27. package/dist/nodes/ExecuteCommand/test/ExecuteCommand.node.test.js +6 -0
  28. package/dist/nodes/ExecuteCommand/test/ExecuteCommand.node.test.js.map +1 -0
  29. package/dist/nodes/ExecuteCommand/test/workflow.json +142 -0
  30. package/dist/nodes/Google/Sheet/v2/actions/sheet/commonDescription.js +8 -8
  31. package/dist/nodes/Google/Sheet/v2/actions/sheet/commonDescription.js.map +1 -1
  32. package/dist/nodes/HttpRequest/test/node/HttpRequest.test.d.ts +1 -0
  33. package/dist/nodes/HttpRequest/test/node/HttpRequest.test.js +114 -0
  34. package/dist/nodes/HttpRequest/test/node/HttpRequest.test.js.map +1 -0
  35. package/dist/nodes/HttpRequest/test/node/workflow.delete.json +60 -0
  36. package/dist/nodes/HttpRequest/test/node/workflow.get.json +144 -0
  37. package/dist/nodes/HttpRequest/test/node/workflow.patch.json +73 -0
  38. package/dist/nodes/HttpRequest/test/node/workflow.post.json +105 -0
  39. package/dist/nodes/HttpRequest/test/node/workflow.put.json +73 -0
  40. package/dist/nodes/Hubspot/HubspotTrigger.node.js +25 -0
  41. package/dist/nodes/Hubspot/HubspotTrigger.node.js.map +1 -1
  42. package/dist/nodes/ICalendar/test/node/ICalendar.test.d.ts +1 -0
  43. package/dist/nodes/ICalendar/test/node/ICalendar.test.js +54 -0
  44. package/dist/nodes/ICalendar/test/node/ICalendar.test.js.map +1 -0
  45. package/dist/nodes/ICalendar/test/node/workflow.iCalendar.json +59 -0
  46. package/dist/nodes/If/test/IF.boolean.json +306 -0
  47. package/dist/nodes/If/test/IF.date-time.json +221 -0
  48. package/dist/nodes/If/test/IF.number.json +616 -0
  49. package/dist/nodes/If/test/IF.string.json +976 -0
  50. package/dist/nodes/If/test/If.node.test.d.ts +1 -0
  51. package/dist/nodes/If/test/If.node.test.js +6 -0
  52. package/dist/nodes/If/test/If.node.test.js.map +1 -0
  53. package/dist/nodes/ItemLists/test/node/ItemLists.test.d.ts +1 -0
  54. package/dist/nodes/ItemLists/test/node/ItemLists.test.js +6 -0
  55. package/dist/nodes/ItemLists/test/node/ItemLists.test.js.map +1 -0
  56. package/dist/nodes/ItemLists/test/node/workflow.aggregateItems.json +223 -0
  57. package/dist/nodes/ItemLists/test/node/workflow.limit.json +97 -0
  58. package/dist/nodes/ItemLists/test/node/workflow.removeDuplicates.json +177 -0
  59. package/dist/nodes/ItemLists/test/node/workflow.sort.json +216 -0
  60. package/dist/nodes/ItemLists/test/node/workflow.splitOutItems.json +360 -0
  61. package/dist/nodes/ItemLists/test/node/workflow.summarize.json +299 -0
  62. package/dist/nodes/Linear/Linear.node.js +26 -0
  63. package/dist/nodes/Linear/Linear.node.js.map +1 -1
  64. package/dist/nodes/Linear/Queries.d.ts +1 -0
  65. package/dist/nodes/Linear/Queries.js +13 -4
  66. package/dist/nodes/Linear/Queries.js.map +1 -1
  67. package/dist/nodes/Markdown/test/node/Markdown.test.d.ts +1 -0
  68. package/dist/nodes/Markdown/test/node/Markdown.test.js +6 -0
  69. package/dist/nodes/Markdown/test/node/Markdown.test.js.map +1 -0
  70. package/dist/nodes/Markdown/test/node/workflow.markdown.json +181 -0
  71. package/dist/nodes/Merge/test/node/Merge.test.d.ts +1 -0
  72. package/dist/nodes/Merge/test/node/Merge.test.js +6 -0
  73. package/dist/nodes/Merge/test/node/Merge.test.js.map +1 -0
  74. package/dist/nodes/Merge/test/node/workflow.append.json +123 -0
  75. package/dist/nodes/Merge/test/node/workflow.chooseBranch.json +174 -0
  76. package/dist/nodes/Merge/test/node/workflow.combine.mergeByFields.json +486 -0
  77. package/dist/nodes/Merge/test/node/workflow.combine.mergeByPosition.json +219 -0
  78. package/dist/nodes/Merge/test/node/workflow.combine.multiplex.json +259 -0
  79. package/dist/nodes/MoveBinaryData/test/MoveBinaryData.test.d.ts +1 -0
  80. package/dist/nodes/MoveBinaryData/test/MoveBinaryData.test.js +146 -0
  81. package/dist/nodes/MoveBinaryData/test/MoveBinaryData.test.js.map +1 -0
  82. package/dist/nodes/MoveBinaryData/test/MoveBinaryData.workflow.json +171 -0
  83. package/dist/nodes/MoveBinaryData/test/data/sample.json +5 -0
  84. package/dist/nodes/ReadBinaryFile/test/ReadBinaryFile.test.d.ts +1 -0
  85. package/dist/nodes/ReadBinaryFile/test/ReadBinaryFile.test.js +79 -0
  86. package/dist/nodes/ReadBinaryFile/test/ReadBinaryFile.test.js.map +1 -0
  87. package/dist/nodes/ReadBinaryFile/test/ReadBinaryFile.workflow.json +51 -0
  88. package/dist/nodes/ReadPdf/test/ReadPDF.test.d.ts +1 -0
  89. package/dist/nodes/ReadPdf/test/ReadPDF.test.js +79 -0
  90. package/dist/nodes/ReadPdf/test/ReadPDF.test.js.map +1 -0
  91. package/dist/nodes/ReadPdf/test/ReadPDF.workflow.json +64 -0
  92. package/dist/nodes/RenameKeys/test/RenameKeys.test.d.ts +1 -0
  93. package/dist/nodes/RenameKeys/test/RenameKeys.test.js +6 -0
  94. package/dist/nodes/RenameKeys/test/RenameKeys.test.js.map +1 -0
  95. package/dist/nodes/RenameKeys/test/RenameKeys.workflow.json +302 -0
  96. package/dist/nodes/RssFeedRead/test/node/RssFeedRead.test.d.ts +1 -0
  97. package/dist/nodes/RssFeedRead/test/node/RssFeedRead.test.js +24 -0
  98. package/dist/nodes/RssFeedRead/test/node/RssFeedRead.test.js.map +1 -0
  99. package/dist/nodes/RssFeedRead/test/node/workflow.rss.json +87 -0
  100. package/dist/nodes/Set/test/Set.node.test.d.ts +1 -0
  101. package/dist/nodes/Set/test/Set.node.test.js +6 -0
  102. package/dist/nodes/Set/test/Set.node.test.js.map +1 -0
  103. package/dist/nodes/Set/test/Set.workflow.json +320 -0
  104. package/dist/nodes/SplitInBatches/test/SplitInBatches.node.test.d.ts +1 -0
  105. package/dist/nodes/SplitInBatches/test/SplitInBatches.node.test.js +6 -0
  106. package/dist/nodes/SplitInBatches/test/SplitInBatches.node.test.js.map +1 -0
  107. package/dist/nodes/SplitInBatches/test/SplitInBatches.workflow.json +178 -0
  108. package/dist/nodes/SpreadsheetFile/SpreadsheetFile.node.js +1 -1
  109. package/dist/nodes/SpreadsheetFile/SpreadsheetFile.node.js.map +1 -1
  110. package/dist/nodes/SpreadsheetFile/SpreadsheetFile.node.json +1 -1
  111. package/dist/nodes/SpreadsheetFile/test/SpreadsheetFile.test.d.ts +1 -0
  112. package/dist/nodes/SpreadsheetFile/test/SpreadsheetFile.test.js +183 -0
  113. package/dist/nodes/SpreadsheetFile/test/SpreadsheetFile.test.js.map +1 -0
  114. package/dist/nodes/SpreadsheetFile/test/workflow.json +253 -0
  115. package/dist/nodes/StopAndError/test/node/StopAndError.test.d.ts +1 -0
  116. package/dist/nodes/StopAndError/test/node/StopAndError.test.js +111 -0
  117. package/dist/nodes/StopAndError/test/node/StopAndError.test.js.map +1 -0
  118. package/dist/nodes/Switch/test/switch.expression.workflow.json +225 -0
  119. package/dist/nodes/Switch/test/switch.node.test.d.ts +1 -0
  120. package/dist/nodes/Switch/test/switch.node.test.js +6 -0
  121. package/dist/nodes/Switch/test/switch.node.test.js.map +1 -0
  122. package/dist/nodes/Switch/test/switch.rules.workflow.json +242 -0
  123. package/dist/nodes/WriteBinaryFile/test/WriteBinaryFile.test.d.ts +1 -0
  124. package/dist/nodes/WriteBinaryFile/test/WriteBinaryFile.test.js +85 -0
  125. package/dist/nodes/WriteBinaryFile/test/WriteBinaryFile.test.js.map +1 -0
  126. package/dist/nodes/WriteBinaryFile/test/WriteBinaryFile.workflow.json +76 -0
  127. package/dist/nodes/Xml/Xml.node.js.map +1 -1
  128. package/dist/nodes/Xml/test/node/Xml.test.d.ts +1 -0
  129. package/dist/nodes/Xml/test/node/Xml.test.js +6 -0
  130. package/dist/nodes/Xml/test/node/Xml.test.js.map +1 -0
  131. package/dist/nodes/Xml/test/node/workflow.xml.json +148 -0
  132. package/dist/test/nodes/ExecuteWorkflow.d.ts +7 -0
  133. package/dist/test/nodes/ExecuteWorkflow.js +48 -0
  134. package/dist/test/nodes/ExecuteWorkflow.js.map +1 -0
  135. package/dist/test/nodes/Helpers.d.ts +32 -0
  136. package/dist/test/nodes/Helpers.js +234 -0
  137. package/dist/test/nodes/Helpers.js.map +1 -0
  138. package/dist/test/nodes/types.d.ts +16 -0
  139. package/dist/test/nodes/types.js +3 -0
  140. package/dist/test/nodes/types.js.map +1 -0
  141. package/dist/tsconfig.tsbuildinfo +1 -1
  142. package/dist/types/credentials.json +4 -4
  143. package/dist/types/nodes.json +346 -346
  144. package/package.json +7 -7
@@ -0,0 +1,879 @@
1
+ {
2
+ "name": "compare datasets tests",
3
+ "nodes": [
4
+ {
5
+ "parameters": {},
6
+ "id": "c8767bae-66ba-495c-9d2c-4b0cc192ea22",
7
+ "name": "Start",
8
+ "type": "n8n-nodes-base.start",
9
+ "typeVersion": 1,
10
+ "position": [-1020, 1640]
11
+ },
12
+ {
13
+ "parameters": {
14
+ "mergeByFields": {
15
+ "values": [
16
+ {
17
+ "field1": "id",
18
+ "field2": "id"
19
+ },
20
+ {
21
+ "field1": "text",
22
+ "field2": "text"
23
+ }
24
+ ]
25
+ },
26
+ "options": {
27
+ "multipleMatches": "first"
28
+ }
29
+ },
30
+ "id": "80490760-2b76-4e22-977d-6c5142a5ec99",
31
+ "name": "Compare",
32
+ "type": "n8n-nodes-base.compareDatasets",
33
+ "typeVersion": 1,
34
+ "position": [180, 680]
35
+ },
36
+ {
37
+ "parameters": {
38
+ "functionCode": "const data = [\n {\n id: 1,\n text: 'foo',\n data: 'A',\n data2: 555,\n memo: 'test',\n },\n {\n id: 2,\n text: 'bar bar',\n data: 'E',\n },\n {\n id: 3,\n text: 'spam',\n data: 'C',\n },\n {\n id: 4,\n text: 'not matched',\n data: 'Y',\n },\n];\n\nreturn data;"
39
+ },
40
+ "id": "3f4b329b-9d7f-475b-815a-5bb7abfae247",
41
+ "name": "Function",
42
+ "type": "n8n-nodes-base.function",
43
+ "typeVersion": 1,
44
+ "position": [-100, 600]
45
+ },
46
+ {
47
+ "parameters": {
48
+ "functionCode": "const data = [\n {\n id: 1,\n text: 'foo',\n data: 'D',\n data3: 111,\n memo: 'test'\n },\n {\n id: 1,\n text: 'foo',\n data: 'DD',\n },\n {\n id: 2,\n text: 'bar bar',\n data: 'E',\n },\n {\n id: 3,\n text: 'spam',\n data: 'F',\n },\n {\n id: 5,\n text: 'spam',\n data: 'X',\n },\n];\n\nreturn data;"
49
+ },
50
+ "id": "a91e7fe8-b9fb-417f-a434-c15623246c99",
51
+ "name": "Function1",
52
+ "type": "n8n-nodes-base.function",
53
+ "typeVersion": 1,
54
+ "position": [-100, 760]
55
+ },
56
+ {
57
+ "parameters": {
58
+ "functionCode": "if (!(items.length === 2) && items.filter(({json}) => json.text === 'foo' || 'spam').length !== 2) {\n throw new Error('Incorrect data');\n}\n\nreturn {success: true};"
59
+ },
60
+ "id": "bef942a0-21f4-469d-b019-e528140d9686",
61
+ "name": "Function2",
62
+ "type": "n8n-nodes-base.function",
63
+ "typeVersion": 1,
64
+ "position": [440, 900]
65
+ },
66
+ {
67
+ "parameters": {
68
+ "functionCode": "if (!(items.length === 1) && items[0].json.data !== 'Y') {\n throw new Error('Incorrect data');\n}\n\nreturn {success: true};"
69
+ },
70
+ "id": "29b9aa7a-4d1f-442d-9487-7f46e0cba1fe",
71
+ "name": "Function3",
72
+ "type": "n8n-nodes-base.function",
73
+ "typeVersion": 1,
74
+ "position": [440, 440]
75
+ },
76
+ {
77
+ "parameters": {
78
+ "functionCode": "if (!(items.length === 1) && items[0].json.data !== 'E') {\n throw new Error('Incorrect data');\n}\n\nreturn {success: true};"
79
+ },
80
+ "id": "5669e2d2-6cfe-4df2-9513-3871df1fb7f1",
81
+ "name": "Function4",
82
+ "type": "n8n-nodes-base.function",
83
+ "typeVersion": 1,
84
+ "position": [440, 580]
85
+ },
86
+ {
87
+ "parameters": {
88
+ "functionCode": "if (!(items.length === 2) && items.filter(({json}) => json.text === 'foo' || 'spam').length !== 2) {\n throw new Error('Incorrect data');\n}\n\nreturn {success: true};"
89
+ },
90
+ "id": "4f7c534d-da1d-4947-8deb-9736c83e8956",
91
+ "name": "Function5",
92
+ "type": "n8n-nodes-base.function",
93
+ "typeVersion": 1,
94
+ "position": [440, 740]
95
+ },
96
+ {
97
+ "parameters": {},
98
+ "id": "916d4bb7-066f-41cb-9a4b-c4ce34643923",
99
+ "name": "first match only by id and text",
100
+ "type": "n8n-nodes-base.noOp",
101
+ "typeVersion": 1,
102
+ "position": [-340, 680]
103
+ },
104
+ {
105
+ "parameters": {
106
+ "mergeByFields": {
107
+ "values": [
108
+ {
109
+ "field1": "id",
110
+ "field2": "id"
111
+ }
112
+ ]
113
+ },
114
+ "resolve": "includeBoth",
115
+ "options": {
116
+ "multipleMatches": "all"
117
+ }
118
+ },
119
+ "id": "ecb9384d-79b2-4ea8-9a44-a1bb9064311d",
120
+ "name": "Compare1",
121
+ "type": "n8n-nodes-base.compareDatasets",
122
+ "typeVersion": 1,
123
+ "position": [160, 1340]
124
+ },
125
+ {
126
+ "parameters": {
127
+ "functionCode": "const data = [\n {\n id: 1,\n data: 'A',\n },\n {\n id: 2,\n data: 'B',\n },\n {\n id: 3,\n data: 'C',\n },\n];\n\nreturn data;"
128
+ },
129
+ "id": "d218a3b7-1f10-42d8-be27-155f15682855",
130
+ "name": "Function6",
131
+ "type": "n8n-nodes-base.function",
132
+ "typeVersion": 1,
133
+ "position": [-120, 1260]
134
+ },
135
+ {
136
+ "parameters": {
137
+ "functionCode": "const data = [\n {\n id: 1,\n data: 'D',\n },\n {\n id: 1,\n data: 'DD',\n },\n {\n id: 2,\n data: 'E',\n },\n {\n id: 2,\n data: 'EE',\n },\n {\n id: 3,\n data: 'F',\n },\n {\n id: 3,\n data: 'FF',\n },\n {\n id: 5,\n data: 'X',\n },\n];\n\nreturn data;"
138
+ },
139
+ "id": "7d8e9189-b8e7-4893-96ac-05533d846503",
140
+ "name": "Function7",
141
+ "type": "n8n-nodes-base.function",
142
+ "typeVersion": 1,
143
+ "position": [-120, 1420]
144
+ },
145
+ {
146
+ "parameters": {
147
+ "functionCode": "if (\n items.filter(({json}) => json.id === 5).length !== 1 \n) {\n throw new Error('Incorrect data');\n}\n\n\nreturn {success: true};"
148
+ },
149
+ "id": "d030711e-4627-456d-936a-5fa433719b77",
150
+ "name": "Function8",
151
+ "type": "n8n-nodes-base.function",
152
+ "typeVersion": 1,
153
+ "position": [540, 1440]
154
+ },
155
+ {
156
+ "parameters": {
157
+ "functionCode": "if (\n items.filter(({json}) => json.keys.id === 1).length !== 2 &&\n items.filter(({json}) => json.keys.id === 2).length !== 2 &&\n items.filter(({json}) => json.keys.id === 3).length !== 2\n) {\n throw new Error('Incorrect data');\n}\n\nreturn {success: true};"
158
+ },
159
+ "id": "c2033b2a-7046-411a-8a8f-8ed8b46a97e3",
160
+ "name": "Function11",
161
+ "type": "n8n-nodes-base.function",
162
+ "typeVersion": 1,
163
+ "position": [540, 1280]
164
+ },
165
+ {
166
+ "parameters": {},
167
+ "id": "d762ad62-1101-4ef4-912c-d1c6f5dc62fc",
168
+ "name": "all match by id",
169
+ "type": "n8n-nodes-base.noOp",
170
+ "typeVersion": 1,
171
+ "position": [-360, 1340]
172
+ },
173
+ {
174
+ "parameters": {
175
+ "mergeByFields": {
176
+ "values": [
177
+ {
178
+ "field1": "id.code",
179
+ "field2": "id.code"
180
+ }
181
+ ]
182
+ },
183
+ "resolve": "mix",
184
+ "exceptWhenMix": "data",
185
+ "options": {
186
+ "multipleMatches": "all"
187
+ }
188
+ },
189
+ "id": "f9e2ccd7-ca40-400a-85eb-32c75169519c",
190
+ "name": "Compare2",
191
+ "type": "n8n-nodes-base.compareDatasets",
192
+ "typeVersion": 1,
193
+ "position": [160, 1980]
194
+ },
195
+ {
196
+ "parameters": {
197
+ "functionCode": "const data = [\n {\n id: {code: 1},\n data: 'A',\n },\n {\n id: {code: 2},\n data: 'B',\n },\n {\n id: {code: 3},\n data: 'C',\n },\n {\n id: {code: 4},\n data: 'AA',\n },\n];\n\nreturn data;"
198
+ },
199
+ "id": "e70cc695-01f5-456c-bdef-bcd85f4c90db",
200
+ "name": "Function12",
201
+ "type": "n8n-nodes-base.function",
202
+ "typeVersion": 1,
203
+ "position": [-120, 1900]
204
+ },
205
+ {
206
+ "parameters": {
207
+ "functionCode": "const data = [\n {\n id: {code: 1},\n data: 'A',\n },\n {\n id: {code: 2},\n data: 'E',\n },\n {\n id: {code: 3},\n data: 'F',\n },\n {\n id: {code: 5},\n data: 'EE',\n },\n];\n\nreturn data;"
208
+ },
209
+ "id": "ae9aea77-57b4-4b5a-bb1f-cedda223a357",
210
+ "name": "Function13",
211
+ "type": "n8n-nodes-base.function",
212
+ "typeVersion": 1,
213
+ "position": [-120, 2060]
214
+ },
215
+ {
216
+ "parameters": {
217
+ "mergeByFields": {
218
+ "values": [
219
+ {
220
+ "field1": "id.code",
221
+ "field2": "id.code"
222
+ }
223
+ ]
224
+ },
225
+ "resolve": "includeBoth",
226
+ "options": {}
227
+ },
228
+ "id": "83c6ebd3-dbf3-4175-bf04-313ef47b359e",
229
+ "name": "Compare3",
230
+ "type": "n8n-nodes-base.compareDatasets",
231
+ "typeVersion": 1,
232
+ "position": [160, 2480],
233
+ "continueOnFail": true
234
+ },
235
+ {
236
+ "parameters": {
237
+ "functionCode": "const data = [\n {\n id: {code: 1},\n data: 'A',\n },\n {\n id: {code: 2},\n data: 'B',\n },\n {\n id: {code: 3},\n data: 'C',\n },\n {\n 'id.code': 'AAA',\n },\n];\n\nreturn data;"
238
+ },
239
+ "id": "91d3256e-dda8-4d8f-9796-f2ab5c5e6372",
240
+ "name": "Function18",
241
+ "type": "n8n-nodes-base.function",
242
+ "typeVersion": 1,
243
+ "position": [-100, 2400]
244
+ },
245
+ {
246
+ "parameters": {
247
+ "functionCode": "const data = [\n {\n id: {code: 1},\n data: 'D',\n },\n {\n id: {code: 2},\n data: 'E',\n },\n {\n id: {code: 3},\n data: 'F',\n },\n {\n 'id.code': 'AAA',\n },\n];\n\nreturn data;"
248
+ },
249
+ "id": "36651bfd-6835-429a-b6f6-eb2cf4ab0178",
250
+ "name": "Function19",
251
+ "type": "n8n-nodes-base.function",
252
+ "typeVersion": 1,
253
+ "position": [-100, 2560]
254
+ },
255
+ {
256
+ "parameters": {
257
+ "functionCode": "if (items[0].json.data !== 'EE') {\n throw new Error('Incorrect data');\n}\n\nreturn {success: true};"
258
+ },
259
+ "id": "b1929edc-cecb-4e0e-9698-e2210df4d839",
260
+ "name": "Function14",
261
+ "type": "n8n-nodes-base.function",
262
+ "typeVersion": 1,
263
+ "position": [420, 2240]
264
+ },
265
+ {
266
+ "parameters": {
267
+ "functionCode": "if (items[0].json.data !== 'AA') {\n throw new Error('Incorrect data');\n}\n\nreturn {success: true};"
268
+ },
269
+ "id": "ffa2e4be-a352-466d-90fd-6be7be8df2c4",
270
+ "name": "Function15",
271
+ "type": "n8n-nodes-base.function",
272
+ "typeVersion": 1,
273
+ "position": [420, 1780]
274
+ },
275
+ {
276
+ "parameters": {
277
+ "functionCode": "if (items[0].json.data !== 'A') {\n throw new Error('Incorrect data');\n}\n\nreturn {success: true};"
278
+ },
279
+ "id": "3f1d1ed6-06ac-43d8-85f8-e290fd3ffbca",
280
+ "name": "Function16",
281
+ "type": "n8n-nodes-base.function",
282
+ "typeVersion": 1,
283
+ "position": [420, 1920]
284
+ },
285
+ {
286
+ "parameters": {
287
+ "functionCode": "if (items.filter(({json}) => json.data === 'E').length !== 1 && items.filter(({json}) => json.data === 'F').length !== 1) {\n throw new Error('Incorrect data');\n}\n\nreturn {success: true};"
288
+ },
289
+ "id": "6a0501c1-922f-48a4-813b-64106da3c988",
290
+ "name": "Function17",
291
+ "type": "n8n-nodes-base.function",
292
+ "typeVersion": 1,
293
+ "position": [420, 2080]
294
+ },
295
+ {
296
+ "parameters": {
297
+ "functionCode": "if (!(items.length === 3)) {\n throw new Error('Incorrect data');\n}\n\nreturn {success: true};"
298
+ },
299
+ "id": "10ce1673-eb0d-4794-a104-05abf0240a8e",
300
+ "name": "Function20",
301
+ "type": "n8n-nodes-base.function",
302
+ "typeVersion": 1,
303
+ "position": [440, 2560]
304
+ },
305
+ {
306
+ "parameters": {},
307
+ "id": "57138e79-dad4-43c4-b805-9e1cda72cb76",
308
+ "name": "matching by dot notation",
309
+ "type": "n8n-nodes-base.noOp",
310
+ "typeVersion": 1,
311
+ "position": [-340, 2480]
312
+ },
313
+ {
314
+ "parameters": {},
315
+ "id": "ea46b0bd-bd94-453d-b64e-1574c31fdac4",
316
+ "name": "matches mix prefer input 1",
317
+ "type": "n8n-nodes-base.noOp",
318
+ "typeVersion": 1,
319
+ "position": [-360, 1980]
320
+ },
321
+ {
322
+ "parameters": {
323
+ "functionCode": "if (items[0].json['id.code'] !== 'AAA') {\n throw new Error('Incorrect data');\n}\n\nreturn {success: true};"
324
+ },
325
+ "id": "55362767-c887-4f31-9a23-fd171869e19f",
326
+ "name": "Function21",
327
+ "type": "n8n-nodes-base.function",
328
+ "typeVersion": 1,
329
+ "position": [440, 2420]
330
+ },
331
+ {
332
+ "parameters": {
333
+ "mergeByFields": {
334
+ "values": [
335
+ {
336
+ "field1": "id.code",
337
+ "field2": "id.code"
338
+ }
339
+ ]
340
+ },
341
+ "resolve": "includeBoth",
342
+ "options": {
343
+ "disableDotNotation": true
344
+ }
345
+ },
346
+ "id": "542ad5ce-31e7-4a26-b561-757a0fa500c9",
347
+ "name": "Compare4",
348
+ "type": "n8n-nodes-base.compareDatasets",
349
+ "typeVersion": 1,
350
+ "position": [180, 2860],
351
+ "continueOnFail": true
352
+ },
353
+ {
354
+ "parameters": {
355
+ "functionCode": "const data = [\n {\n id: {code: 1},\n data: 'A',\n },\n {\n id: {code: 2},\n data: 'B',\n },\n {\n id: {code: 3},\n data: 'C',\n },\n {\n 'id.code': 'AAA',\n },\n];\n\nreturn data;"
356
+ },
357
+ "id": "8563aa7c-3e6c-47ba-999b-1fee0489a647",
358
+ "name": "Function22",
359
+ "type": "n8n-nodes-base.function",
360
+ "typeVersion": 1,
361
+ "position": [-80, 2780]
362
+ },
363
+ {
364
+ "parameters": {
365
+ "functionCode": "const data = [\n {\n id: {code: 1},\n data: 'D',\n },\n {\n id: {code: 2},\n data: 'E',\n },\n {\n id: {code: 3},\n data: 'F',\n },\n {\n 'id.code': 'AAA',\n },\n];\n\nreturn data;"
366
+ },
367
+ "id": "e5dc38cb-c5c3-4ae2-8bb4-5b1ef74c0a3f",
368
+ "name": "Function23",
369
+ "type": "n8n-nodes-base.function",
370
+ "typeVersion": 1,
371
+ "position": [-80, 2940]
372
+ },
373
+ {
374
+ "parameters": {
375
+ "functionCode": "if (items.length !== 3) {\n throw new Error('Incorrect data');\n}\n\nreturn {success: true};"
376
+ },
377
+ "id": "7739d61b-f62b-47ad-81b5-5fb38b919e01",
378
+ "name": "Function24",
379
+ "type": "n8n-nodes-base.function",
380
+ "typeVersion": 1,
381
+ "position": [460, 3020]
382
+ },
383
+ {
384
+ "parameters": {
385
+ "functionCode": "if (items[0].json['id.code'] !== 'AAA') {\n throw new Error('Incorrect data');\n}\n\nreturn {success: true};"
386
+ },
387
+ "id": "805f2f3d-51e7-45ad-94d3-ebb9a1c47964",
388
+ "name": "Function25",
389
+ "type": "n8n-nodes-base.function",
390
+ "typeVersion": 1,
391
+ "position": [460, 2880]
392
+ },
393
+ {
394
+ "parameters": {
395
+ "functionCode": "if (items.length !== 3) {\n throw new Error('Incorrect data');\n}\n\nreturn {success: true};"
396
+ },
397
+ "id": "b82d6133-783d-4777-818d-dbcbe3a82042",
398
+ "name": "Function26",
399
+ "type": "n8n-nodes-base.function",
400
+ "typeVersion": 1,
401
+ "position": [460, 2740]
402
+ },
403
+ {
404
+ "parameters": {},
405
+ "id": "1ba0048e-e032-4f6a-903c-3aaf0598f191",
406
+ "name": "disabled dot notation1",
407
+ "type": "n8n-nodes-base.noOp",
408
+ "typeVersion": 1,
409
+ "position": [-320, 2860]
410
+ }
411
+ ],
412
+ "pinData": {
413
+ "Function3": [
414
+ {
415
+ "json": {
416
+ "success": true
417
+ }
418
+ }
419
+ ],
420
+ "Function4": [
421
+ {
422
+ "json": {
423
+ "success": true
424
+ }
425
+ }
426
+ ],
427
+ "Function5": [
428
+ {
429
+ "json": {
430
+ "success": true
431
+ }
432
+ }
433
+ ],
434
+ "Function2": [
435
+ {
436
+ "json": {
437
+ "success": true
438
+ }
439
+ }
440
+ ],
441
+ "Function11": [
442
+ {
443
+ "json": {
444
+ "success": true
445
+ }
446
+ }
447
+ ],
448
+ "Function8": [
449
+ {
450
+ "json": {
451
+ "success": true
452
+ }
453
+ }
454
+ ],
455
+ "Function15": [
456
+ {
457
+ "json": {
458
+ "success": true
459
+ }
460
+ }
461
+ ],
462
+ "Function16": [
463
+ {
464
+ "json": {
465
+ "success": true
466
+ }
467
+ }
468
+ ],
469
+ "Function17": [
470
+ {
471
+ "json": {
472
+ "success": true
473
+ }
474
+ }
475
+ ],
476
+ "Function14": [
477
+ {
478
+ "json": {
479
+ "success": true
480
+ }
481
+ }
482
+ ],
483
+ "Function21": [
484
+ {
485
+ "json": {
486
+ "success": true
487
+ }
488
+ }
489
+ ],
490
+ "Function20": [
491
+ {
492
+ "json": {
493
+ "success": true
494
+ }
495
+ }
496
+ ],
497
+ "Function26": [
498
+ {
499
+ "json": {
500
+ "success": true
501
+ }
502
+ }
503
+ ],
504
+ "Function25": [
505
+ {
506
+ "json": {
507
+ "success": true
508
+ }
509
+ }
510
+ ],
511
+ "Function24": [
512
+ {
513
+ "json": {
514
+ "success": true
515
+ }
516
+ }
517
+ ]
518
+ },
519
+ "connections": {
520
+ "Function": {
521
+ "main": [
522
+ [
523
+ {
524
+ "node": "Compare",
525
+ "type": "main",
526
+ "index": 0
527
+ }
528
+ ]
529
+ ]
530
+ },
531
+ "Function1": {
532
+ "main": [
533
+ [
534
+ {
535
+ "node": "Compare",
536
+ "type": "main",
537
+ "index": 1
538
+ }
539
+ ]
540
+ ]
541
+ },
542
+ "Compare": {
543
+ "main": [
544
+ [
545
+ {
546
+ "node": "Function3",
547
+ "type": "main",
548
+ "index": 0
549
+ }
550
+ ],
551
+ [
552
+ {
553
+ "node": "Function4",
554
+ "type": "main",
555
+ "index": 0
556
+ }
557
+ ],
558
+ [
559
+ {
560
+ "node": "Function5",
561
+ "type": "main",
562
+ "index": 0
563
+ }
564
+ ],
565
+ [
566
+ {
567
+ "node": "Function2",
568
+ "type": "main",
569
+ "index": 0
570
+ }
571
+ ]
572
+ ]
573
+ },
574
+ "first match only by id and text": {
575
+ "main": [
576
+ [
577
+ {
578
+ "node": "Function",
579
+ "type": "main",
580
+ "index": 0
581
+ },
582
+ {
583
+ "node": "Function1",
584
+ "type": "main",
585
+ "index": 0
586
+ }
587
+ ]
588
+ ]
589
+ },
590
+ "Compare1": {
591
+ "main": [
592
+ [],
593
+ [],
594
+ [
595
+ {
596
+ "node": "Function11",
597
+ "type": "main",
598
+ "index": 0
599
+ }
600
+ ],
601
+ [
602
+ {
603
+ "node": "Function8",
604
+ "type": "main",
605
+ "index": 0
606
+ }
607
+ ]
608
+ ]
609
+ },
610
+ "Function6": {
611
+ "main": [
612
+ [
613
+ {
614
+ "node": "Compare1",
615
+ "type": "main",
616
+ "index": 0
617
+ }
618
+ ]
619
+ ]
620
+ },
621
+ "Function7": {
622
+ "main": [
623
+ [
624
+ {
625
+ "node": "Compare1",
626
+ "type": "main",
627
+ "index": 1
628
+ }
629
+ ]
630
+ ]
631
+ },
632
+ "all match by id": {
633
+ "main": [
634
+ [
635
+ {
636
+ "node": "Function6",
637
+ "type": "main",
638
+ "index": 0
639
+ },
640
+ {
641
+ "node": "Function7",
642
+ "type": "main",
643
+ "index": 0
644
+ }
645
+ ]
646
+ ]
647
+ },
648
+ "Compare2": {
649
+ "main": [
650
+ [
651
+ {
652
+ "node": "Function15",
653
+ "type": "main",
654
+ "index": 0
655
+ }
656
+ ],
657
+ [
658
+ {
659
+ "node": "Function16",
660
+ "type": "main",
661
+ "index": 0
662
+ }
663
+ ],
664
+ [
665
+ {
666
+ "node": "Function17",
667
+ "type": "main",
668
+ "index": 0
669
+ }
670
+ ],
671
+ [
672
+ {
673
+ "node": "Function14",
674
+ "type": "main",
675
+ "index": 0
676
+ }
677
+ ]
678
+ ]
679
+ },
680
+ "Function12": {
681
+ "main": [
682
+ [
683
+ {
684
+ "node": "Compare2",
685
+ "type": "main",
686
+ "index": 0
687
+ }
688
+ ]
689
+ ]
690
+ },
691
+ "Function13": {
692
+ "main": [
693
+ [
694
+ {
695
+ "node": "Compare2",
696
+ "type": "main",
697
+ "index": 1
698
+ }
699
+ ]
700
+ ]
701
+ },
702
+ "Function18": {
703
+ "main": [
704
+ [
705
+ {
706
+ "node": "Compare3",
707
+ "type": "main",
708
+ "index": 0
709
+ }
710
+ ]
711
+ ]
712
+ },
713
+ "Function19": {
714
+ "main": [
715
+ [
716
+ {
717
+ "node": "Compare3",
718
+ "type": "main",
719
+ "index": 1
720
+ }
721
+ ]
722
+ ]
723
+ },
724
+ "Compare3": {
725
+ "main": [
726
+ [],
727
+ [
728
+ {
729
+ "node": "Function21",
730
+ "type": "main",
731
+ "index": 0
732
+ }
733
+ ],
734
+ [
735
+ {
736
+ "node": "Function20",
737
+ "type": "main",
738
+ "index": 0
739
+ }
740
+ ]
741
+ ]
742
+ },
743
+ "Start": {
744
+ "main": [
745
+ [
746
+ {
747
+ "node": "first match only by id and text",
748
+ "type": "main",
749
+ "index": 0
750
+ },
751
+ {
752
+ "node": "all match by id",
753
+ "type": "main",
754
+ "index": 0
755
+ },
756
+ {
757
+ "node": "matches mix prefer input 1",
758
+ "type": "main",
759
+ "index": 0
760
+ },
761
+ {
762
+ "node": "matching by dot notation",
763
+ "type": "main",
764
+ "index": 0
765
+ },
766
+ {
767
+ "node": "disabled dot notation1",
768
+ "type": "main",
769
+ "index": 0
770
+ }
771
+ ]
772
+ ]
773
+ },
774
+ "matching by dot notation": {
775
+ "main": [
776
+ [
777
+ {
778
+ "node": "Function18",
779
+ "type": "main",
780
+ "index": 0
781
+ },
782
+ {
783
+ "node": "Function19",
784
+ "type": "main",
785
+ "index": 0
786
+ }
787
+ ]
788
+ ]
789
+ },
790
+ "matches mix prefer input 1": {
791
+ "main": [
792
+ [
793
+ {
794
+ "node": "Function12",
795
+ "type": "main",
796
+ "index": 0
797
+ },
798
+ {
799
+ "node": "Function13",
800
+ "type": "main",
801
+ "index": 0
802
+ }
803
+ ]
804
+ ]
805
+ },
806
+ "Compare4": {
807
+ "main": [
808
+ [
809
+ {
810
+ "node": "Function26",
811
+ "type": "main",
812
+ "index": 0
813
+ }
814
+ ],
815
+ [
816
+ {
817
+ "node": "Function25",
818
+ "type": "main",
819
+ "index": 0
820
+ }
821
+ ],
822
+ [],
823
+ [
824
+ {
825
+ "node": "Function24",
826
+ "type": "main",
827
+ "index": 0
828
+ }
829
+ ]
830
+ ]
831
+ },
832
+ "Function22": {
833
+ "main": [
834
+ [
835
+ {
836
+ "node": "Compare4",
837
+ "type": "main",
838
+ "index": 0
839
+ }
840
+ ]
841
+ ]
842
+ },
843
+ "Function23": {
844
+ "main": [
845
+ [
846
+ {
847
+ "node": "Compare4",
848
+ "type": "main",
849
+ "index": 1
850
+ }
851
+ ]
852
+ ]
853
+ },
854
+ "disabled dot notation1": {
855
+ "main": [
856
+ [
857
+ {
858
+ "node": "Function22",
859
+ "type": "main",
860
+ "index": 0
861
+ },
862
+ {
863
+ "node": "Function23",
864
+ "type": "main",
865
+ "index": 0
866
+ }
867
+ ]
868
+ ]
869
+ }
870
+ },
871
+ "active": false,
872
+ "settings": {},
873
+ "versionId": "7169a2ae-a8dd-47a1-8339-8ca7554587a9",
874
+ "id": "114",
875
+ "meta": {
876
+ "instanceId": "36203ea1ce3cef713fa25999bd9874ae26b9e4c2c3a90a365f2882a154d031d0"
877
+ },
878
+ "tags": []
879
+ }