n8n-nodes-base 1.82.1 → 1.83.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/dist/build.tsbuildinfo +1 -1
- package/dist/nodes/Aws/SES/AwsSes.node.js +10 -10
- package/dist/nodes/Aws/SES/AwsSes.node.js.map +1 -1
- package/dist/nodes/Form/Form.node.js +1 -6
- package/dist/nodes/Form/Form.node.js.map +1 -1
- package/dist/nodes/Form/formNodeUtils.js +0 -5
- package/dist/nodes/Form/formNodeUtils.js.map +1 -1
- package/dist/nodes/Form/utils.d.ts +19 -0
- package/dist/nodes/Form/utils.js +21 -10
- package/dist/nodes/Form/utils.js.map +1 -1
- package/dist/nodes/Google/BigQuery/v2/helpers/utils.d.ts +1 -1
- package/dist/nodes/Google/Gmail/GenericFunctions.d.ts +2 -1
- package/dist/nodes/Google/Gmail/GenericFunctions.js +20 -0
- package/dist/nodes/Google/Gmail/GenericFunctions.js.map +1 -1
- package/dist/nodes/Google/Gmail/test/v1/drafts.workflow.json +446 -0
- package/dist/nodes/Google/Gmail/test/v1/labels.workflow.json +170 -0
- package/dist/nodes/Google/Gmail/test/v1/message-labels.workflow.json +329 -0
- package/dist/nodes/Google/Gmail/test/v1/messages.workflow.json +456 -0
- package/dist/nodes/Google/Gmail/v1/GmailV1.node.d.ts +3 -2
- package/dist/nodes/Google/Gmail/v1/GmailV1.node.js +2 -19
- package/dist/nodes/Google/Gmail/v1/GmailV1.node.js.map +1 -1
- package/dist/nodes/Google/Gmail/v1/loadOptions.d.ts +2 -0
- package/dist/nodes/Google/Gmail/v1/loadOptions.js +6 -0
- package/dist/nodes/Google/Gmail/v1/loadOptions.js.map +1 -0
- package/dist/nodes/Google/Gmail/v2/loadOptions.d.ts +2 -1
- package/dist/nodes/Google/Gmail/v2/loadOptions.js +2 -20
- package/dist/nodes/Google/Gmail/v2/loadOptions.js.map +1 -1
- package/dist/nodes/Linear/GenericFunctions.js +7 -8
- package/dist/nodes/Linear/GenericFunctions.js.map +1 -1
- package/dist/nodes/Merge/Merge.node.js +2 -1
- package/dist/nodes/Merge/Merge.node.js.map +1 -1
- package/dist/nodes/Merge/v3/actions/mode/combineBySql.js +86 -20
- package/dist/nodes/Merge/v3/actions/mode/combineBySql.js.map +1 -1
- package/dist/nodes/Merge/v3/actions/versionDescription.js +1 -1
- package/dist/nodes/Merge/v3/actions/versionDescription.js.map +1 -1
- package/dist/nodes/Merge/v3/helpers/utils.d.ts +2 -0
- package/dist/nodes/Merge/v3/helpers/utils.js +36 -1
- package/dist/nodes/Merge/v3/helpers/utils.js.map +1 -1
- package/dist/nodes/MySql/v1/GenericFunctions.d.ts +1 -1
- package/dist/nodes/MySql/v1/GenericFunctions.js +11 -11
- package/dist/nodes/MySql/v1/GenericFunctions.js.map +1 -1
- package/dist/nodes/Postgres/Postgres.node.js +2 -1
- package/dist/nodes/Postgres/Postgres.node.js.map +1 -1
- package/dist/nodes/Postgres/v2/actions/database/insert.operation.js +3 -0
- package/dist/nodes/Postgres/v2/actions/database/insert.operation.js.map +1 -1
- package/dist/nodes/Postgres/v2/actions/versionDescription.js +1 -1
- package/dist/nodes/Postgres/v2/actions/versionDescription.js.map +1 -1
- package/dist/nodes/Postgres/v2/methods/resourceMapping.js +2 -1
- package/dist/nodes/Postgres/v2/methods/resourceMapping.js.map +1 -1
- package/dist/nodes/WhatsApp/WhatsAppTrigger.node.d.ts +9 -0
- package/dist/nodes/WhatsApp/WhatsAppTrigger.node.js +114 -56
- package/dist/nodes/WhatsApp/WhatsAppTrigger.node.js.map +1 -1
- package/dist/nodes/WhatsApp/types.d.ts +10 -7
- package/dist/types/nodes.json +8 -8
- package/dist/utils/sendAndWait/utils.js +10 -1
- package/dist/utils/sendAndWait/utils.js.map +1 -1
- package/package.json +6 -6
- /package/dist/nodes/Google/Gmail/test/{v2/fixtures → fixtures}/labels.json +0 -0
- /package/dist/nodes/Google/Gmail/test/{v2/fixtures → fixtures}/messages.json +0 -0
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Gmail v1 test - message labels",
|
|
3
|
+
"nodes": [
|
|
4
|
+
{
|
|
5
|
+
"parameters": {},
|
|
6
|
+
"type": "n8n-nodes-base.manualTrigger",
|
|
7
|
+
"typeVersion": 1,
|
|
8
|
+
"position": [1220, 600],
|
|
9
|
+
"id": "84b20fb7-d041-4a49-b7dc-8a09c1ac0071",
|
|
10
|
+
"name": "When clicking ‘Test workflow’"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"parameters": {
|
|
14
|
+
"resource": "messageLabel",
|
|
15
|
+
"messageId": "test",
|
|
16
|
+
"labelIds": "={{ ['label1', 'label2'] }}"
|
|
17
|
+
},
|
|
18
|
+
"type": "n8n-nodes-base.gmail",
|
|
19
|
+
"typeVersion": 1,
|
|
20
|
+
"position": [1440, 500],
|
|
21
|
+
"id": "71a7716d-344b-4050-b2b8-f9f049e46642",
|
|
22
|
+
"name": "Gmail - Message Labels - Add",
|
|
23
|
+
"webhookId": "f3cbddc1-3cfa-4217-aa73-f0e5a9309661",
|
|
24
|
+
"credentials": {
|
|
25
|
+
"gmailOAuth2": {
|
|
26
|
+
"id": "22",
|
|
27
|
+
"name": "Gmail 0auth"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"parameters": {
|
|
33
|
+
"resource": "messageLabel",
|
|
34
|
+
"operation": "remove",
|
|
35
|
+
"messageId": "test",
|
|
36
|
+
"labelIds": "={{ ['label1', 'label2'] }}"
|
|
37
|
+
},
|
|
38
|
+
"type": "n8n-nodes-base.gmail",
|
|
39
|
+
"typeVersion": 1,
|
|
40
|
+
"position": [1440, 700],
|
|
41
|
+
"id": "c92f2d14-f4a3-48d4-b59b-917d4670163d",
|
|
42
|
+
"name": "Gmail - Message Labels - Delete",
|
|
43
|
+
"webhookId": "f3cbddc1-3cfa-4217-aa73-f0e5a9309661",
|
|
44
|
+
"credentials": {
|
|
45
|
+
"gmailOAuth2": {
|
|
46
|
+
"id": "22",
|
|
47
|
+
"name": "Gmail 0auth"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"pinData": {
|
|
53
|
+
"Gmail - Message Labels - Add": [
|
|
54
|
+
{
|
|
55
|
+
"json": {
|
|
56
|
+
"historyId": "54321",
|
|
57
|
+
"id": "a1b2c3d4e5f6g7h8",
|
|
58
|
+
"internalDate": "1733405400000",
|
|
59
|
+
"labelIds": ["UNREAD", "CATEGORY_PROMOTIONS", "INBOX"],
|
|
60
|
+
"payload": {
|
|
61
|
+
"body": {
|
|
62
|
+
"size": 0
|
|
63
|
+
},
|
|
64
|
+
"filename": "",
|
|
65
|
+
"headers": [
|
|
66
|
+
{
|
|
67
|
+
"name": "Delivered-To",
|
|
68
|
+
"value": "exampleuser@gmail.com"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "Received",
|
|
72
|
+
"value": "by 2001:db8::abcd with SMTP id xyz123abc456; Thu, 5 Dec 2024 08:30:00 -0800 (PST)"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "X-Google-Smtp-Source",
|
|
76
|
+
"value": "ABC12345+EXAMPLE123456789"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "X-Received",
|
|
80
|
+
"value": "by 192.0.2.1 with SMTP id 12345abc67890; Thu, 5 Dec 2024 08:30:00 -0800 (PST)"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "ARC-Seal",
|
|
84
|
+
"value": "i=1; a=rsa-sha256; t=1733405400; cv=none; d=example.com; s=arc-20241205; b=ABCDEFG123456="
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "ARC-Message-Signature",
|
|
88
|
+
"value": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=example.com; s=arc-20241205; bh=EXAMPLEHASH12345="
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "ARC-Authentication-Results",
|
|
92
|
+
"value": "i=1; mx.example.com; dkim=pass header.i=@promotion.example.com; spf=pass smtp.mailfrom=promo@promotion.example.com; dmarc=pass header.from=example.com"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "Return-Path",
|
|
96
|
+
"value": "<promo@promotion.example.com>"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "Date",
|
|
100
|
+
"value": "Thu, 5 Dec 2024 08:30:00 -0800"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "From",
|
|
104
|
+
"value": "Holiday Deals <promo@promotion.example.com>"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "To",
|
|
108
|
+
"value": "exampleuser@gmail.com"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "Message-ID",
|
|
112
|
+
"value": "<12345abc67890@promotion.example.com>"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "Subject",
|
|
116
|
+
"value": "Exclusive Holiday Discounts!"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "MIME-Version",
|
|
120
|
+
"value": "1.0"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "Content-Type",
|
|
124
|
+
"value": "multipart/alternative; boundary=\"----=_Part_12345_67890.1733405400000\""
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"mimeType": "multipart/alternative",
|
|
128
|
+
"partId": "",
|
|
129
|
+
"parts": [
|
|
130
|
+
{
|
|
131
|
+
"body": {
|
|
132
|
+
"data": "VGhpcyBpcyBhbiBleGFtcGxlIG1lc3NhZ2UuIFRoYW5rIHlvdSBmb3Igc2hvcHBpbmcgd2l0aCB1cy4=",
|
|
133
|
+
"size": 1234
|
|
134
|
+
},
|
|
135
|
+
"filename": "",
|
|
136
|
+
"headers": [
|
|
137
|
+
{
|
|
138
|
+
"name": "Content-Type",
|
|
139
|
+
"value": "text/plain; charset=utf-8"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "Content-Transfer-Encoding",
|
|
143
|
+
"value": "quoted-printable"
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"mimeType": "text/plain",
|
|
147
|
+
"partId": "0"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"body": {
|
|
151
|
+
"data": "PGRpdiBzdHlsZT0nZm9udC1mYW1pbHk6IEFyaWFsLCBzYW5zLXNlcmlmOyc+VGhpcyBpcyBhbiBleGFtcGxlIGh0bWwgbWVzc2FnZS4gPGI+VGhhbmsgeW91IGZvciBzaG9wcGluZyB3aXRoIHVzLjwvYj48L2Rpdj4=",
|
|
152
|
+
"size": 5678
|
|
153
|
+
},
|
|
154
|
+
"filename": "",
|
|
155
|
+
"headers": [
|
|
156
|
+
{
|
|
157
|
+
"name": "Content-Type",
|
|
158
|
+
"value": "text/html; charset=\"utf-8\""
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "Content-Transfer-Encoding",
|
|
162
|
+
"value": "quoted-printable"
|
|
163
|
+
}
|
|
164
|
+
],
|
|
165
|
+
"mimeType": "text/html",
|
|
166
|
+
"partId": "1"
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
"sizeEstimate": 67890,
|
|
171
|
+
"snippet": "Don't miss our exclusive holiday discounts on all items! Act now before the sale ends.",
|
|
172
|
+
"threadId": "a1b2c3d4e5f6g7h8"
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
],
|
|
176
|
+
"Gmail - Message Labels - Delete": [
|
|
177
|
+
{
|
|
178
|
+
"json": {
|
|
179
|
+
"historyId": "54321",
|
|
180
|
+
"id": "a1b2c3d4e5f6g7h8",
|
|
181
|
+
"internalDate": "1733405400000",
|
|
182
|
+
"labelIds": ["UNREAD", "CATEGORY_PROMOTIONS", "INBOX"],
|
|
183
|
+
"payload": {
|
|
184
|
+
"body": {
|
|
185
|
+
"size": 0
|
|
186
|
+
},
|
|
187
|
+
"filename": "",
|
|
188
|
+
"headers": [
|
|
189
|
+
{
|
|
190
|
+
"name": "Delivered-To",
|
|
191
|
+
"value": "exampleuser@gmail.com"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"name": "Received",
|
|
195
|
+
"value": "by 2001:db8::abcd with SMTP id xyz123abc456; Thu, 5 Dec 2024 08:30:00 -0800 (PST)"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"name": "X-Google-Smtp-Source",
|
|
199
|
+
"value": "ABC12345+EXAMPLE123456789"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"name": "X-Received",
|
|
203
|
+
"value": "by 192.0.2.1 with SMTP id 12345abc67890; Thu, 5 Dec 2024 08:30:00 -0800 (PST)"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"name": "ARC-Seal",
|
|
207
|
+
"value": "i=1; a=rsa-sha256; t=1733405400; cv=none; d=example.com; s=arc-20241205; b=ABCDEFG123456="
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"name": "ARC-Message-Signature",
|
|
211
|
+
"value": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=example.com; s=arc-20241205; bh=EXAMPLEHASH12345="
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"name": "ARC-Authentication-Results",
|
|
215
|
+
"value": "i=1; mx.example.com; dkim=pass header.i=@promotion.example.com; spf=pass smtp.mailfrom=promo@promotion.example.com; dmarc=pass header.from=example.com"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"name": "Return-Path",
|
|
219
|
+
"value": "<promo@promotion.example.com>"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"name": "Date",
|
|
223
|
+
"value": "Thu, 5 Dec 2024 08:30:00 -0800"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"name": "From",
|
|
227
|
+
"value": "Holiday Deals <promo@promotion.example.com>"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"name": "To",
|
|
231
|
+
"value": "exampleuser@gmail.com"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"name": "Message-ID",
|
|
235
|
+
"value": "<12345abc67890@promotion.example.com>"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"name": "Subject",
|
|
239
|
+
"value": "Exclusive Holiday Discounts!"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"name": "MIME-Version",
|
|
243
|
+
"value": "1.0"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"name": "Content-Type",
|
|
247
|
+
"value": "multipart/alternative; boundary=\"----=_Part_12345_67890.1733405400000\""
|
|
248
|
+
}
|
|
249
|
+
],
|
|
250
|
+
"mimeType": "multipart/alternative",
|
|
251
|
+
"partId": "",
|
|
252
|
+
"parts": [
|
|
253
|
+
{
|
|
254
|
+
"body": {
|
|
255
|
+
"data": "VGhpcyBpcyBhbiBleGFtcGxlIG1lc3NhZ2UuIFRoYW5rIHlvdSBmb3Igc2hvcHBpbmcgd2l0aCB1cy4=",
|
|
256
|
+
"size": 1234
|
|
257
|
+
},
|
|
258
|
+
"filename": "",
|
|
259
|
+
"headers": [
|
|
260
|
+
{
|
|
261
|
+
"name": "Content-Type",
|
|
262
|
+
"value": "text/plain; charset=utf-8"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"name": "Content-Transfer-Encoding",
|
|
266
|
+
"value": "quoted-printable"
|
|
267
|
+
}
|
|
268
|
+
],
|
|
269
|
+
"mimeType": "text/plain",
|
|
270
|
+
"partId": "0"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"body": {
|
|
274
|
+
"data": "PGRpdiBzdHlsZT0nZm9udC1mYW1pbHk6IEFyaWFsLCBzYW5zLXNlcmlmOyc+VGhpcyBpcyBhbiBleGFtcGxlIGh0bWwgbWVzc2FnZS4gPGI+VGhhbmsgeW91IGZvciBzaG9wcGluZyB3aXRoIHVzLjwvYj48L2Rpdj4=",
|
|
275
|
+
"size": 5678
|
|
276
|
+
},
|
|
277
|
+
"filename": "",
|
|
278
|
+
"headers": [
|
|
279
|
+
{
|
|
280
|
+
"name": "Content-Type",
|
|
281
|
+
"value": "text/html; charset=\"utf-8\""
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"name": "Content-Transfer-Encoding",
|
|
285
|
+
"value": "quoted-printable"
|
|
286
|
+
}
|
|
287
|
+
],
|
|
288
|
+
"mimeType": "text/html",
|
|
289
|
+
"partId": "1"
|
|
290
|
+
}
|
|
291
|
+
]
|
|
292
|
+
},
|
|
293
|
+
"sizeEstimate": 67890,
|
|
294
|
+
"snippet": "Don't miss our exclusive holiday discounts on all items! Act now before the sale ends.",
|
|
295
|
+
"threadId": "a1b2c3d4e5f6g7h8"
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
]
|
|
299
|
+
},
|
|
300
|
+
"connections": {
|
|
301
|
+
"When clicking ‘Test workflow’": {
|
|
302
|
+
"main": [
|
|
303
|
+
[
|
|
304
|
+
{
|
|
305
|
+
"node": "Gmail - Message Labels - Add",
|
|
306
|
+
"type": "main",
|
|
307
|
+
"index": 0
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"node": "Gmail - Message Labels - Delete",
|
|
311
|
+
"type": "main",
|
|
312
|
+
"index": 0
|
|
313
|
+
}
|
|
314
|
+
]
|
|
315
|
+
]
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
"active": false,
|
|
319
|
+
"settings": {
|
|
320
|
+
"executionOrder": "v1"
|
|
321
|
+
},
|
|
322
|
+
"versionId": "59109e41-be89-484a-b8d0-8f5c8f0407f9",
|
|
323
|
+
"meta": {
|
|
324
|
+
"templateCredsSetupCompleted": true,
|
|
325
|
+
"instanceId": "cb484ba7b742928a2048bf8829668bed5b5ad9787579adea888f05980292a4a7"
|
|
326
|
+
},
|
|
327
|
+
"id": "dbQv4DRzYXIcTNNs",
|
|
328
|
+
"tags": []
|
|
329
|
+
}
|