n8n-nodes-base 0.219.0 → 0.220.1
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/dist/build.tsbuildinfo +1 -1
- package/dist/credentials/Aws.credentials.js +10 -5
- package/dist/credentials/Aws.credentials.js.map +1 -1
- package/dist/credentials/GoogleApi.credentials.js +3 -0
- package/dist/credentials/GoogleApi.credentials.js.map +1 -1
- package/dist/credentials/HubspotDeveloperApi.credentials.js +1 -0
- package/dist/credentials/HubspotDeveloperApi.credentials.js.map +1 -1
- package/dist/known/nodes.json +4 -0
- package/dist/nodes/Aws/AwsSns.node.js +2 -2
- package/dist/nodes/Aws/AwsSns.node.js.map +1 -1
- package/dist/nodes/Code/utils.js +17 -7
- package/dist/nodes/Code/utils.js.map +1 -1
- package/dist/nodes/EmailReadImap/v1/EmailReadImapV1.node.js +12 -8
- package/dist/nodes/EmailReadImap/v1/EmailReadImapV1.node.js.map +1 -1
- package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.js +13 -11
- package/dist/nodes/EmailReadImap/v2/EmailReadImapV2.node.js.map +1 -1
- package/dist/nodes/Filter/Filter.node.d.ts +5 -0
- package/dist/nodes/Filter/Filter.node.js +328 -0
- package/dist/nodes/Filter/Filter.node.js.map +1 -0
- package/dist/nodes/Filter/Filter.node.json +19 -0
- package/dist/nodes/Filter/GenericFunctions.d.ts +5 -0
- package/dist/nodes/Filter/GenericFunctions.js +85 -0
- package/dist/nodes/Filter/GenericFunctions.js.map +1 -0
- package/dist/nodes/Filter/test/workflow.json +599 -0
- package/dist/nodes/Ftp/Ftp.node.js +2 -2
- package/dist/nodes/Ftp/Ftp.node.js.map +1 -1
- package/dist/nodes/Google/Gmail/GenericFunctions.d.ts +4 -2
- package/dist/nodes/Google/Gmail/GenericFunctions.js +40 -47
- package/dist/nodes/Google/Gmail/GenericFunctions.js.map +1 -1
- package/dist/nodes/Google/Gmail/GmailTrigger.node.js +2 -3
- package/dist/nodes/Google/Gmail/GmailTrigger.node.js.map +1 -1
- package/dist/nodes/Google/Gmail/v2/GmailV2.node.js +2 -2
- package/dist/nodes/Google/Gmail/v2/GmailV2.node.js.map +1 -1
- package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheet.js +8 -1
- package/dist/nodes/Google/Sheet/v2/helpers/GoogleSheet.js.map +1 -1
- package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js +3 -1
- package/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js.map +1 -1
- package/dist/nodes/RabbitMQ/RabbitMQTrigger.node.js +3 -3
- package/dist/nodes/RabbitMQ/RabbitMQTrigger.node.js.map +1 -1
- package/dist/nodes/Salesforce/GenericFunctions.js +2 -2
- package/dist/nodes/Salesforce/GenericFunctions.js.map +1 -1
- package/dist/nodes/Salesforce/Salesforce.node.js +1 -1
- package/dist/nodes/Salesforce/Salesforce.node.js.map +1 -1
- package/dist/nodes/Set/Set.node.js +7 -1
- package/dist/nodes/Set/Set.node.js.map +1 -1
- package/dist/nodes/Set/test/Set.workflow.number.json +145 -0
- package/dist/nodes/Ssh/Ssh.node.js +1 -1
- package/dist/nodes/Ssh/Ssh.node.js.map +1 -1
- package/dist/nodes/Wait/Wait.node.js +2 -2
- package/dist/nodes/Wait/Wait.node.js.map +1 -1
- package/dist/nodes/Webhook/Webhook.node.js +2 -2
- package/dist/nodes/Webhook/Webhook.node.js.map +1 -1
- package/dist/types/credentials.json +2 -2
- package/dist/types/nodes.json +3 -2
- package/index.js +0 -0
- package/package.json +7 -5
|
@@ -0,0 +1,599 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "filter tests",
|
|
3
|
+
"nodes": [
|
|
4
|
+
{
|
|
5
|
+
"parameters": {},
|
|
6
|
+
"id": "f12d6634-c941-4e1b-837d-5c480678dafa",
|
|
7
|
+
"name": "When clicking \"Execute Workflow\"",
|
|
8
|
+
"type": "n8n-nodes-base.manualTrigger",
|
|
9
|
+
"typeVersion": 1,
|
|
10
|
+
"position": [300, 1000]
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"parameters": {
|
|
14
|
+
"jsCode": "return [\n {\n id: 1,\n name: 'Adam',\n subscribed: false,\n updatedAt: '2011-10-05T14:48:00.000Z',\n notes: null,\n email: 'adam@mail.com',\n },\n {\n id: 2,\n name: 'Victor',\n subscribed: true,\n updatedAt: '2020-10-05T14:48:00.000Z',\n notes: 'some notes',\n email: 'victor@mail.com',\n },\n {\n id: 3,\n name: 'Sam',\n subscribed: true,\n updatedAt: '2021-10-05T14:48:00.000Z',\n notes: 'other notes',\n email: 'sam@mail.com',\n }, \n];"
|
|
15
|
+
},
|
|
16
|
+
"id": "032d6d92-27f4-4b07-b45f-5b79bdea594a",
|
|
17
|
+
"name": "Code",
|
|
18
|
+
"type": "n8n-nodes-base.code",
|
|
19
|
+
"typeVersion": 1,
|
|
20
|
+
"position": [600, 1000]
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"parameters": {
|
|
24
|
+
"conditions": {
|
|
25
|
+
"boolean": [
|
|
26
|
+
{
|
|
27
|
+
"value1": "={{ $json.subscribed }}",
|
|
28
|
+
"value2": true
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"value1": "={{ !$json.notes }}",
|
|
32
|
+
"operation": "notEqual",
|
|
33
|
+
"value2": true
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"id": "b6935975-5ba9-4daf-b240-7883d34e3198",
|
|
39
|
+
"name": "Filter Boolean",
|
|
40
|
+
"type": "n8n-nodes-base.filter",
|
|
41
|
+
"typeVersion": 1,
|
|
42
|
+
"position": [1040, 340]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"parameters": {
|
|
46
|
+
"conditions": {
|
|
47
|
+
"dateTime": [
|
|
48
|
+
{
|
|
49
|
+
"value1": "={{ $json.updatedAt }}",
|
|
50
|
+
"value2": "2018-12-31T22:00:00.000Z"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"value1": "={{ $json.updatedAt }}",
|
|
54
|
+
"operation": "before",
|
|
55
|
+
"value2": "2021-08-03T03:30:08.000Z"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"id": "56f5f03c-2d65-4abe-bbed-0a14cc2bd7c4",
|
|
61
|
+
"name": "Filter Date",
|
|
62
|
+
"type": "n8n-nodes-base.filter",
|
|
63
|
+
"typeVersion": 1,
|
|
64
|
+
"position": [1040, 520]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"parameters": {
|
|
68
|
+
"conditions": {
|
|
69
|
+
"number": [
|
|
70
|
+
{
|
|
71
|
+
"value1": "={{ $json.id }}",
|
|
72
|
+
"operation": "smallerEqual",
|
|
73
|
+
"value2": 5
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"value1": "={{ $json.id }}",
|
|
77
|
+
"value2": 10
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"value1": "={{ $json.id }}",
|
|
81
|
+
"operation": "notEqual",
|
|
82
|
+
"value2": 4
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"value1": "={{ $json.id }}",
|
|
86
|
+
"operation": "larger",
|
|
87
|
+
"value2": 1
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"value1": "={{ $json.id }}",
|
|
91
|
+
"operation": "largerEqual",
|
|
92
|
+
"value2": 2
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"value1": "={{ $json.id }}",
|
|
96
|
+
"operation": "isNotEmpty"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"value1": "={{ $json.id }}",
|
|
100
|
+
"operation": "equal",
|
|
101
|
+
"value2": 3
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"id": "b944927d-070b-4e04-9dc2-1e884e7535ae",
|
|
107
|
+
"name": "Filter Number",
|
|
108
|
+
"type": "n8n-nodes-base.filter",
|
|
109
|
+
"typeVersion": 1,
|
|
110
|
+
"position": [1040, 680]
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"parameters": {
|
|
114
|
+
"conditions": {
|
|
115
|
+
"string": [
|
|
116
|
+
{
|
|
117
|
+
"value1": "={{ $json.notes }}",
|
|
118
|
+
"operation": "contains",
|
|
119
|
+
"value2": "notes"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"value1": "={{ $json.email }}",
|
|
123
|
+
"operation": "endsWith",
|
|
124
|
+
"value2": "com"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"value1": "={{ $json.email }}",
|
|
128
|
+
"operation": "notContains",
|
|
129
|
+
"value2": "foo"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"value1": "={{ $json.email }}",
|
|
133
|
+
"operation": "notEndsWith",
|
|
134
|
+
"value2": "gmail"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"value1": "={{ $json.notes }}",
|
|
138
|
+
"operation": "notContains",
|
|
139
|
+
"value2": "spam"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"value1": "={{ $json.email }}",
|
|
143
|
+
"operation": "notEqual",
|
|
144
|
+
"value2": "={{ null }}"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"value1": "={{ $json.name }}",
|
|
148
|
+
"operation": "regex",
|
|
149
|
+
"value2": "/^[A-Z][a-z]*$/"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"value1": "={{ $json.name }}",
|
|
153
|
+
"operation": "notRegex",
|
|
154
|
+
"value2": "^[A-Z]+$/"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"value1": "={{ $json.email }}",
|
|
158
|
+
"operation": "notStartsWith",
|
|
159
|
+
"value2": "a"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"value1": "={{ $json.email }}",
|
|
163
|
+
"operation": "isNotEmpty"
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"id": "19968f30-116e-441a-8cd7-ea9b55deac27",
|
|
169
|
+
"name": "Filter String",
|
|
170
|
+
"type": "n8n-nodes-base.filter",
|
|
171
|
+
"typeVersion": 1,
|
|
172
|
+
"position": [1040, 820]
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"parameters": {
|
|
176
|
+
"conditions": {
|
|
177
|
+
"boolean": [
|
|
178
|
+
{
|
|
179
|
+
"value1": "={{ $json.subscribed }}",
|
|
180
|
+
"value2": true
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"value1": "={{ !$json.notes }}",
|
|
184
|
+
"operation": "notEqual",
|
|
185
|
+
"value2": true
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"value1": "={{ $json.subscribed }}"
|
|
189
|
+
}
|
|
190
|
+
]
|
|
191
|
+
},
|
|
192
|
+
"combineConditions": "OR"
|
|
193
|
+
},
|
|
194
|
+
"id": "eebb6476-8f80-4d63-ac37-7c7e4b04c2f0",
|
|
195
|
+
"name": "Filter Boolean1",
|
|
196
|
+
"type": "n8n-nodes-base.filter",
|
|
197
|
+
"typeVersion": 1,
|
|
198
|
+
"position": [1040, 1020]
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"parameters": {
|
|
202
|
+
"conditions": {
|
|
203
|
+
"dateTime": [
|
|
204
|
+
{
|
|
205
|
+
"value1": "={{ $json.updatedAt }}",
|
|
206
|
+
"value2": "2018-12-31T22:00:00.000Z"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"value1": "={{ $json.updatedAt }}",
|
|
210
|
+
"operation": "before",
|
|
211
|
+
"value2": "2021-08-03T03:30:08.000Z"
|
|
212
|
+
}
|
|
213
|
+
]
|
|
214
|
+
},
|
|
215
|
+
"combineConditions": "OR"
|
|
216
|
+
},
|
|
217
|
+
"id": "bd6d0ad9-aede-40d5-96b2-3f8ba96e92ab",
|
|
218
|
+
"name": "Filter Date1",
|
|
219
|
+
"type": "n8n-nodes-base.filter",
|
|
220
|
+
"typeVersion": 1,
|
|
221
|
+
"position": [1040, 1200]
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"parameters": {
|
|
225
|
+
"conditions": {
|
|
226
|
+
"number": [
|
|
227
|
+
{
|
|
228
|
+
"value1": "={{ $json.id }}",
|
|
229
|
+
"operation": "smallerEqual",
|
|
230
|
+
"value2": 5
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"value1": "={{ $json.id }}",
|
|
234
|
+
"value2": 10
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"value1": "={{ $json.id }}",
|
|
238
|
+
"operation": "notEqual",
|
|
239
|
+
"value2": 4
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"value1": "={{ $json.id }}",
|
|
243
|
+
"operation": "larger",
|
|
244
|
+
"value2": 1
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"value1": "={{ $json.id }}",
|
|
248
|
+
"operation": "largerEqual",
|
|
249
|
+
"value2": 2
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"value1": "={{ $json.id }}",
|
|
253
|
+
"operation": "isNotEmpty"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"value1": "={{ $json.id }}",
|
|
257
|
+
"operation": "equal",
|
|
258
|
+
"value2": 3
|
|
259
|
+
}
|
|
260
|
+
]
|
|
261
|
+
},
|
|
262
|
+
"combineConditions": "OR"
|
|
263
|
+
},
|
|
264
|
+
"id": "7c93501e-92c1-4b51-823e-3265f9141f3a",
|
|
265
|
+
"name": "Filter Number1",
|
|
266
|
+
"type": "n8n-nodes-base.filter",
|
|
267
|
+
"typeVersion": 1,
|
|
268
|
+
"position": [1040, 1360]
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"parameters": {
|
|
272
|
+
"conditions": {
|
|
273
|
+
"string": [
|
|
274
|
+
{
|
|
275
|
+
"value1": "={{ $json.notes }}",
|
|
276
|
+
"operation": "contains",
|
|
277
|
+
"value2": "notes"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"value1": "={{ $json.email }}",
|
|
281
|
+
"operation": "endsWith",
|
|
282
|
+
"value2": "com"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"value1": "={{ $json.email }}",
|
|
286
|
+
"operation": "notContains",
|
|
287
|
+
"value2": "foo"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"value1": "={{ $json.email }}",
|
|
291
|
+
"operation": "notEndsWith",
|
|
292
|
+
"value2": "gmail"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"value1": "={{ $json.notes }}",
|
|
296
|
+
"operation": "notContains",
|
|
297
|
+
"value2": "spam"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"value1": "={{ $json.email }}",
|
|
301
|
+
"operation": "notEqual",
|
|
302
|
+
"value2": "={{ null }}"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"value1": "={{ $json.name }}",
|
|
306
|
+
"operation": "regex",
|
|
307
|
+
"value2": "/^[A-Z][a-z]*$/"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"value1": "={{ $json.name }}",
|
|
311
|
+
"operation": "notRegex",
|
|
312
|
+
"value2": "^[A-Z]+$/"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"value1": "={{ $json.email }}",
|
|
316
|
+
"operation": "notStartsWith",
|
|
317
|
+
"value2": "a"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"value1": "={{ $json.email }}",
|
|
321
|
+
"operation": "isNotEmpty"
|
|
322
|
+
}
|
|
323
|
+
]
|
|
324
|
+
},
|
|
325
|
+
"combineConditions": "OR"
|
|
326
|
+
},
|
|
327
|
+
"id": "ba84910a-d2c2-4cc6-b0db-9eec2b54da6c",
|
|
328
|
+
"name": "Filter String1",
|
|
329
|
+
"type": "n8n-nodes-base.filter",
|
|
330
|
+
"typeVersion": 1,
|
|
331
|
+
"position": [1040, 1500]
|
|
332
|
+
}
|
|
333
|
+
],
|
|
334
|
+
"pinData": {
|
|
335
|
+
"Filter Boolean": [
|
|
336
|
+
{
|
|
337
|
+
"json": {
|
|
338
|
+
"id": 2,
|
|
339
|
+
"name": "Victor",
|
|
340
|
+
"subscribed": true,
|
|
341
|
+
"updatedAt": "2020-10-05T14:48:00.000Z",
|
|
342
|
+
"notes": "some notes",
|
|
343
|
+
"email": "victor@mail.com"
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"json": {
|
|
348
|
+
"id": 3,
|
|
349
|
+
"name": "Sam",
|
|
350
|
+
"subscribed": true,
|
|
351
|
+
"updatedAt": "2021-10-05T14:48:00.000Z",
|
|
352
|
+
"notes": "other notes",
|
|
353
|
+
"email": "sam@mail.com"
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
],
|
|
357
|
+
"Filter Date": [
|
|
358
|
+
{
|
|
359
|
+
"json": {
|
|
360
|
+
"id": 2,
|
|
361
|
+
"name": "Victor",
|
|
362
|
+
"subscribed": true,
|
|
363
|
+
"updatedAt": "2020-10-05T14:48:00.000Z",
|
|
364
|
+
"notes": "some notes",
|
|
365
|
+
"email": "victor@mail.com"
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
],
|
|
369
|
+
"Filter Number": [
|
|
370
|
+
{
|
|
371
|
+
"json": {
|
|
372
|
+
"id": 3,
|
|
373
|
+
"name": "Sam",
|
|
374
|
+
"subscribed": true,
|
|
375
|
+
"updatedAt": "2021-10-05T14:48:00.000Z",
|
|
376
|
+
"notes": "other notes",
|
|
377
|
+
"email": "sam@mail.com"
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
],
|
|
381
|
+
"Filter String": [
|
|
382
|
+
{
|
|
383
|
+
"json": {
|
|
384
|
+
"id": 2,
|
|
385
|
+
"name": "Victor",
|
|
386
|
+
"subscribed": true,
|
|
387
|
+
"updatedAt": "2020-10-05T14:48:00.000Z",
|
|
388
|
+
"notes": "some notes",
|
|
389
|
+
"email": "victor@mail.com"
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"json": {
|
|
394
|
+
"id": 3,
|
|
395
|
+
"name": "Sam",
|
|
396
|
+
"subscribed": true,
|
|
397
|
+
"updatedAt": "2021-10-05T14:48:00.000Z",
|
|
398
|
+
"notes": "other notes",
|
|
399
|
+
"email": "sam@mail.com"
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
],
|
|
403
|
+
"Filter Boolean1": [
|
|
404
|
+
{
|
|
405
|
+
"json": {
|
|
406
|
+
"id": 1,
|
|
407
|
+
"name": "Adam",
|
|
408
|
+
"subscribed": false,
|
|
409
|
+
"updatedAt": "2011-10-05T14:48:00.000Z",
|
|
410
|
+
"notes": null,
|
|
411
|
+
"email": "adam@mail.com"
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"json": {
|
|
416
|
+
"id": 2,
|
|
417
|
+
"name": "Victor",
|
|
418
|
+
"subscribed": true,
|
|
419
|
+
"updatedAt": "2020-10-05T14:48:00.000Z",
|
|
420
|
+
"notes": "some notes",
|
|
421
|
+
"email": "victor@mail.com"
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"json": {
|
|
426
|
+
"id": 3,
|
|
427
|
+
"name": "Sam",
|
|
428
|
+
"subscribed": true,
|
|
429
|
+
"updatedAt": "2021-10-05T14:48:00.000Z",
|
|
430
|
+
"notes": "other notes",
|
|
431
|
+
"email": "sam@mail.com"
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
],
|
|
435
|
+
"Filter Date1": [
|
|
436
|
+
{
|
|
437
|
+
"json": {
|
|
438
|
+
"id": 1,
|
|
439
|
+
"name": "Adam",
|
|
440
|
+
"subscribed": false,
|
|
441
|
+
"updatedAt": "2011-10-05T14:48:00.000Z",
|
|
442
|
+
"notes": null,
|
|
443
|
+
"email": "adam@mail.com"
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
"json": {
|
|
448
|
+
"id": 2,
|
|
449
|
+
"name": "Victor",
|
|
450
|
+
"subscribed": true,
|
|
451
|
+
"updatedAt": "2020-10-05T14:48:00.000Z",
|
|
452
|
+
"notes": "some notes",
|
|
453
|
+
"email": "victor@mail.com"
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"json": {
|
|
458
|
+
"id": 3,
|
|
459
|
+
"name": "Sam",
|
|
460
|
+
"subscribed": true,
|
|
461
|
+
"updatedAt": "2021-10-05T14:48:00.000Z",
|
|
462
|
+
"notes": "other notes",
|
|
463
|
+
"email": "sam@mail.com"
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
],
|
|
467
|
+
"Filter Number1": [
|
|
468
|
+
{
|
|
469
|
+
"json": {
|
|
470
|
+
"id": 1,
|
|
471
|
+
"name": "Adam",
|
|
472
|
+
"subscribed": false,
|
|
473
|
+
"updatedAt": "2011-10-05T14:48:00.000Z",
|
|
474
|
+
"notes": null,
|
|
475
|
+
"email": "adam@mail.com"
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"json": {
|
|
480
|
+
"id": 2,
|
|
481
|
+
"name": "Victor",
|
|
482
|
+
"subscribed": true,
|
|
483
|
+
"updatedAt": "2020-10-05T14:48:00.000Z",
|
|
484
|
+
"notes": "some notes",
|
|
485
|
+
"email": "victor@mail.com"
|
|
486
|
+
}
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"json": {
|
|
490
|
+
"id": 3,
|
|
491
|
+
"name": "Sam",
|
|
492
|
+
"subscribed": true,
|
|
493
|
+
"updatedAt": "2021-10-05T14:48:00.000Z",
|
|
494
|
+
"notes": "other notes",
|
|
495
|
+
"email": "sam@mail.com"
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
],
|
|
499
|
+
"Filter String1": [
|
|
500
|
+
{
|
|
501
|
+
"json": {
|
|
502
|
+
"id": 1,
|
|
503
|
+
"name": "Adam",
|
|
504
|
+
"subscribed": false,
|
|
505
|
+
"updatedAt": "2011-10-05T14:48:00.000Z",
|
|
506
|
+
"notes": null,
|
|
507
|
+
"email": "adam@mail.com"
|
|
508
|
+
}
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"json": {
|
|
512
|
+
"id": 2,
|
|
513
|
+
"name": "Victor",
|
|
514
|
+
"subscribed": true,
|
|
515
|
+
"updatedAt": "2020-10-05T14:48:00.000Z",
|
|
516
|
+
"notes": "some notes",
|
|
517
|
+
"email": "victor@mail.com"
|
|
518
|
+
}
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
"json": {
|
|
522
|
+
"id": 3,
|
|
523
|
+
"name": "Sam",
|
|
524
|
+
"subscribed": true,
|
|
525
|
+
"updatedAt": "2021-10-05T14:48:00.000Z",
|
|
526
|
+
"notes": "other notes",
|
|
527
|
+
"email": "sam@mail.com"
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
]
|
|
531
|
+
},
|
|
532
|
+
"connections": {
|
|
533
|
+
"When clicking \"Execute Workflow\"": {
|
|
534
|
+
"main": [
|
|
535
|
+
[
|
|
536
|
+
{
|
|
537
|
+
"node": "Code",
|
|
538
|
+
"type": "main",
|
|
539
|
+
"index": 0
|
|
540
|
+
}
|
|
541
|
+
]
|
|
542
|
+
]
|
|
543
|
+
},
|
|
544
|
+
"Code": {
|
|
545
|
+
"main": [
|
|
546
|
+
[
|
|
547
|
+
{
|
|
548
|
+
"node": "Filter Boolean",
|
|
549
|
+
"type": "main",
|
|
550
|
+
"index": 0
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
"node": "Filter Date",
|
|
554
|
+
"type": "main",
|
|
555
|
+
"index": 0
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"node": "Filter Number",
|
|
559
|
+
"type": "main",
|
|
560
|
+
"index": 0
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
"node": "Filter String",
|
|
564
|
+
"type": "main",
|
|
565
|
+
"index": 0
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"node": "Filter Boolean1",
|
|
569
|
+
"type": "main",
|
|
570
|
+
"index": 0
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
"node": "Filter Date1",
|
|
574
|
+
"type": "main",
|
|
575
|
+
"index": 0
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
"node": "Filter Number1",
|
|
579
|
+
"type": "main",
|
|
580
|
+
"index": 0
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
"node": "Filter String1",
|
|
584
|
+
"type": "main",
|
|
585
|
+
"index": 0
|
|
586
|
+
}
|
|
587
|
+
]
|
|
588
|
+
]
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
"active": false,
|
|
592
|
+
"settings": {},
|
|
593
|
+
"versionId": "a4e0701c-9bfd-40aa-b9ec-fc57948d2c0f",
|
|
594
|
+
"id": "136",
|
|
595
|
+
"meta": {
|
|
596
|
+
"instanceId": "36203ea1ce3cef713fa25999bd9874ae26b9e4c2c3a90a365f2882a154d031d0"
|
|
597
|
+
},
|
|
598
|
+
"tags": []
|
|
599
|
+
}
|
|
@@ -492,7 +492,7 @@ class Ftp {
|
|
|
492
492
|
await sftp.get(path, (0, fs_1.createWriteStream)(binaryFile.path));
|
|
493
493
|
const dataPropertyNameDownload = this.getNodeParameter('binaryPropertyName', i);
|
|
494
494
|
const filePathDownload = this.getNodeParameter('path', i);
|
|
495
|
-
items[i].binary[dataPropertyNameDownload] = await this.
|
|
495
|
+
items[i].binary[dataPropertyNameDownload] = await this.nodeHelpers.copyBinaryFile(binaryFile.path, filePathDownload);
|
|
496
496
|
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(items[i]), { itemData: { item: i } });
|
|
497
497
|
returnItems.push(...executionData);
|
|
498
498
|
}
|
|
@@ -559,7 +559,7 @@ class Ftp {
|
|
|
559
559
|
await streamPipeline(stream, (0, fs_1.createWriteStream)(binaryFile.path));
|
|
560
560
|
const dataPropertyNameDownload = this.getNodeParameter('binaryPropertyName', i);
|
|
561
561
|
const filePathDownload = this.getNodeParameter('path', i);
|
|
562
|
-
items[i].binary[dataPropertyNameDownload] = await this.
|
|
562
|
+
items[i].binary[dataPropertyNameDownload] = await this.nodeHelpers.copyBinaryFile(binaryFile.path, filePathDownload);
|
|
563
563
|
const executionData = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(items[i]), { itemData: { item: i } });
|
|
564
564
|
returnItems.push(...executionData);
|
|
565
565
|
}
|