n8n-nodes-base 1.82.0 → 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 +5 -5
- /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,446 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Gmail v1 test - drafts",
|
|
3
|
+
"nodes": [
|
|
4
|
+
{
|
|
5
|
+
"parameters": {},
|
|
6
|
+
"type": "n8n-nodes-base.manualTrigger",
|
|
7
|
+
"typeVersion": 1,
|
|
8
|
+
"position": [980, 560],
|
|
9
|
+
"id": "388c50bd-918f-48d5-8fa2-eba4d3e36ab6",
|
|
10
|
+
"name": "When clicking ‘Test workflow’"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"parameters": {
|
|
14
|
+
"operation": "toJson",
|
|
15
|
+
"options": {}
|
|
16
|
+
},
|
|
17
|
+
"type": "n8n-nodes-base.convertToFile",
|
|
18
|
+
"typeVersion": 1.1,
|
|
19
|
+
"position": [1420, 860],
|
|
20
|
+
"id": "1c1112be-de7c-441e-865c-48044601cb40",
|
|
21
|
+
"name": "Attachment"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"parameters": {
|
|
25
|
+
"assignments": {
|
|
26
|
+
"assignments": [
|
|
27
|
+
{
|
|
28
|
+
"id": "0a4e38fe-ed38-400e-afb1-9d430f167d54",
|
|
29
|
+
"name": "attachment",
|
|
30
|
+
"value": true,
|
|
31
|
+
"type": "boolean"
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"options": {}
|
|
36
|
+
},
|
|
37
|
+
"type": "n8n-nodes-base.set",
|
|
38
|
+
"typeVersion": 3.4,
|
|
39
|
+
"position": [1200, 860],
|
|
40
|
+
"id": "381ca2b8-026a-487a-9f5f-5ef2edb9aa1d",
|
|
41
|
+
"name": "Edit Fields"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"parameters": {
|
|
45
|
+
"subject": "Test Subject",
|
|
46
|
+
"message": "Test Message",
|
|
47
|
+
"additionalFields": {
|
|
48
|
+
"ccList": ["test_cc@n8n.io"],
|
|
49
|
+
"bccList": ["test_bcc@n8n.io"],
|
|
50
|
+
"attachmentsUi": {
|
|
51
|
+
"attachmentsBinary": [
|
|
52
|
+
{
|
|
53
|
+
"property": "data"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"type": "n8n-nodes-base.gmail",
|
|
60
|
+
"typeVersion": 1,
|
|
61
|
+
"position": [1640, 860],
|
|
62
|
+
"id": "0119d458-2782-4fea-abe9-8ac8cabe77aa",
|
|
63
|
+
"name": "Gmail - Drafts - Create",
|
|
64
|
+
"webhookId": "f3cbddc1-3cfa-4217-aa73-f0e5a9309661",
|
|
65
|
+
"credentials": {
|
|
66
|
+
"gmailOAuth2": {
|
|
67
|
+
"id": "22",
|
|
68
|
+
"name": "Gmail 0auth"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"parameters": {
|
|
74
|
+
"operation": "getAll",
|
|
75
|
+
"limit": 2,
|
|
76
|
+
"additionalFields": {}
|
|
77
|
+
},
|
|
78
|
+
"type": "n8n-nodes-base.gmail",
|
|
79
|
+
"typeVersion": 1,
|
|
80
|
+
"position": [1200, 260],
|
|
81
|
+
"id": "94698cf7-7ce2-4d89-8b04-51c59acf3373",
|
|
82
|
+
"name": "Gmail - Drafts - All",
|
|
83
|
+
"webhookId": "f3cbddc1-3cfa-4217-aa73-f0e5a9309661",
|
|
84
|
+
"credentials": {
|
|
85
|
+
"gmailOAuth2": {
|
|
86
|
+
"id": "22",
|
|
87
|
+
"name": "Gmail 0auth"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"parameters": {
|
|
93
|
+
"operation": "delete",
|
|
94
|
+
"messageId": "test"
|
|
95
|
+
},
|
|
96
|
+
"type": "n8n-nodes-base.gmail",
|
|
97
|
+
"typeVersion": 1,
|
|
98
|
+
"position": [1200, 460],
|
|
99
|
+
"id": "2b518238-3c18-4527-8315-5d2f5d664af7",
|
|
100
|
+
"name": "Gmail - Drafts - Delete",
|
|
101
|
+
"webhookId": "f3cbddc1-3cfa-4217-aa73-f0e5a9309661",
|
|
102
|
+
"credentials": {
|
|
103
|
+
"gmailOAuth2": {
|
|
104
|
+
"id": "22",
|
|
105
|
+
"name": "Gmail 0auth"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"parameters": {
|
|
111
|
+
"operation": "get",
|
|
112
|
+
"messageId": "test",
|
|
113
|
+
"additionalFields": {}
|
|
114
|
+
},
|
|
115
|
+
"type": "n8n-nodes-base.gmail",
|
|
116
|
+
"typeVersion": 1,
|
|
117
|
+
"position": [1200, 660],
|
|
118
|
+
"id": "9d33ea25-6866-4e74-9a53-042fbe70655a",
|
|
119
|
+
"name": "Gmail - Drafts - Get",
|
|
120
|
+
"webhookId": "f3cbddc1-3cfa-4217-aa73-f0e5a9309661",
|
|
121
|
+
"credentials": {
|
|
122
|
+
"gmailOAuth2": {
|
|
123
|
+
"id": "22",
|
|
124
|
+
"name": "Gmail 0auth"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"pinData": {
|
|
130
|
+
"Gmail - Drafts - All": [
|
|
131
|
+
{
|
|
132
|
+
"json": {
|
|
133
|
+
"date": "2024-12-13T10:15:01.000Z",
|
|
134
|
+
"from": {
|
|
135
|
+
"html": "<span class=\"mp_address_group\"><span class=\"mp_address_name\">node qa</span> <<a href=\"mailto:node8qa@gmail.com\" class=\"mp_address_email\">node8qa@gmail.com</a>></span>",
|
|
136
|
+
"text": "\"node qa\" <node8qa@gmail.com>",
|
|
137
|
+
"value": [
|
|
138
|
+
{
|
|
139
|
+
"address": "node8qa@gmail.com",
|
|
140
|
+
"name": "node qa"
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
},
|
|
144
|
+
"headers": {
|
|
145
|
+
"content-type": "Content-Type: multipart/alternative; boundary=\"0000000000009d58b60629241a22\"",
|
|
146
|
+
"date": "Date: Fri, 13 Dec 2024 11:15:01 +0100",
|
|
147
|
+
"from": "From: node qa <node8qa@gmail.com>",
|
|
148
|
+
"message-id": "Message-ID: <CAEGAProwudGnKXxqrhMjOuxamTh7yArjwP7OD9UBq-Jpkb0X9w@mail.gmail.com>",
|
|
149
|
+
"mime-version": "MIME-Version: 1.0",
|
|
150
|
+
"subject": "Subject: Test draft",
|
|
151
|
+
"to": "To: test@gmail.com"
|
|
152
|
+
},
|
|
153
|
+
"html": "<div dir=\"ltr\">draft body<br></div>\n",
|
|
154
|
+
"labelIds": ["UNREAD", "CATEGORY_PROMOTIONS", "INBOX"],
|
|
155
|
+
"messageId": "a1b2c3d4e5f6g7h8",
|
|
156
|
+
"sizeEstimate": 67890,
|
|
157
|
+
"subject": "Test draft",
|
|
158
|
+
"text": "draft body\n",
|
|
159
|
+
"textAsHtml": "<p>draft body</p>",
|
|
160
|
+
"threadId": "a1b2c3d4e5f6g7h8",
|
|
161
|
+
"to": {
|
|
162
|
+
"html": "<span class=\"mp_address_group\"><a href=\"mailto:test@gmail.com\" class=\"mp_address_email\">test@gmail.com</a></span>",
|
|
163
|
+
"text": "test@gmail.com",
|
|
164
|
+
"value": [
|
|
165
|
+
{
|
|
166
|
+
"address": "test@gmail.com",
|
|
167
|
+
"name": ""
|
|
168
|
+
}
|
|
169
|
+
]
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"json": {
|
|
175
|
+
"date": "2024-12-13T10:15:01.000Z",
|
|
176
|
+
"from": {
|
|
177
|
+
"html": "<span class=\"mp_address_group\"><span class=\"mp_address_name\">node qa</span> <<a href=\"mailto:node8qa@gmail.com\" class=\"mp_address_email\">node8qa@gmail.com</a>></span>",
|
|
178
|
+
"text": "\"node qa\" <node8qa@gmail.com>",
|
|
179
|
+
"value": [
|
|
180
|
+
{
|
|
181
|
+
"address": "node8qa@gmail.com",
|
|
182
|
+
"name": "node qa"
|
|
183
|
+
}
|
|
184
|
+
]
|
|
185
|
+
},
|
|
186
|
+
"headers": {
|
|
187
|
+
"content-type": "Content-Type: multipart/alternative; boundary=\"0000000000009d58b60629241a22\"",
|
|
188
|
+
"date": "Date: Fri, 13 Dec 2024 11:15:01 +0100",
|
|
189
|
+
"from": "From: node qa <node8qa@gmail.com>",
|
|
190
|
+
"message-id": "Message-ID: <CAEGAProwudGnKXxqrhMjOuxamTh7yArjwP7OD9UBq-Jpkb0X9w@mail.gmail.com>",
|
|
191
|
+
"mime-version": "MIME-Version: 1.0",
|
|
192
|
+
"subject": "Subject: Test draft",
|
|
193
|
+
"to": "To: test@gmail.com"
|
|
194
|
+
},
|
|
195
|
+
"html": "<div dir=\"ltr\">draft body<br></div>\n",
|
|
196
|
+
"labelIds": ["UNREAD", "CATEGORY_SOCIAL", "INBOX"],
|
|
197
|
+
"messageId": "z9y8x7w6v5u4t3s2",
|
|
198
|
+
"sizeEstimate": 54321,
|
|
199
|
+
"subject": "Test draft",
|
|
200
|
+
"text": "draft body\n",
|
|
201
|
+
"textAsHtml": "<p>draft body</p>",
|
|
202
|
+
"threadId": "z9y8x7w6v5u4t3s2",
|
|
203
|
+
"to": {
|
|
204
|
+
"html": "<span class=\"mp_address_group\"><a href=\"mailto:test@gmail.com\" class=\"mp_address_email\">test@gmail.com</a></span>",
|
|
205
|
+
"text": "test@gmail.com",
|
|
206
|
+
"value": [
|
|
207
|
+
{
|
|
208
|
+
"address": "test@gmail.com",
|
|
209
|
+
"name": ""
|
|
210
|
+
}
|
|
211
|
+
]
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
],
|
|
216
|
+
"Gmail - Drafts - Create": [
|
|
217
|
+
{
|
|
218
|
+
"json": {
|
|
219
|
+
"historyId": "54321",
|
|
220
|
+
"id": "a1b2c3d4e5f6g7h8",
|
|
221
|
+
"internalDate": "1733405400000",
|
|
222
|
+
"labelIds": ["UNREAD", "CATEGORY_PROMOTIONS", "INBOX"],
|
|
223
|
+
"payload": {
|
|
224
|
+
"body": {
|
|
225
|
+
"size": 0
|
|
226
|
+
},
|
|
227
|
+
"filename": "",
|
|
228
|
+
"headers": [
|
|
229
|
+
{
|
|
230
|
+
"name": "Delivered-To",
|
|
231
|
+
"value": "exampleuser@gmail.com"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"name": "Received",
|
|
235
|
+
"value": "by 2001:db8::abcd with SMTP id xyz123abc456; Thu, 5 Dec 2024 08:30:00 -0800 (PST)"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"name": "X-Google-Smtp-Source",
|
|
239
|
+
"value": "ABC12345+EXAMPLE123456789"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"name": "X-Received",
|
|
243
|
+
"value": "by 192.0.2.1 with SMTP id 12345abc67890; Thu, 5 Dec 2024 08:30:00 -0800 (PST)"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"name": "ARC-Seal",
|
|
247
|
+
"value": "i=1; a=rsa-sha256; t=1733405400; cv=none; d=example.com; s=arc-20241205; b=ABCDEFG123456="
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"name": "ARC-Message-Signature",
|
|
251
|
+
"value": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=example.com; s=arc-20241205; bh=EXAMPLEHASH12345="
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"name": "ARC-Authentication-Results",
|
|
255
|
+
"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"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"name": "Return-Path",
|
|
259
|
+
"value": "<promo@promotion.example.com>"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"name": "Date",
|
|
263
|
+
"value": "Thu, 5 Dec 2024 08:30:00 -0800"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"name": "From",
|
|
267
|
+
"value": "Holiday Deals <promo@promotion.example.com>"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"name": "To",
|
|
271
|
+
"value": "exampleuser@gmail.com"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"name": "Message-ID",
|
|
275
|
+
"value": "<12345abc67890@promotion.example.com>"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"name": "Subject",
|
|
279
|
+
"value": "Exclusive Holiday Discounts!"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"name": "MIME-Version",
|
|
283
|
+
"value": "1.0"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"name": "Content-Type",
|
|
287
|
+
"value": "multipart/alternative; boundary=\"----=_Part_12345_67890.1733405400000\""
|
|
288
|
+
}
|
|
289
|
+
],
|
|
290
|
+
"mimeType": "multipart/alternative",
|
|
291
|
+
"partId": "",
|
|
292
|
+
"parts": [
|
|
293
|
+
{
|
|
294
|
+
"body": {
|
|
295
|
+
"data": "VGhpcyBpcyBhbiBleGFtcGxlIG1lc3NhZ2UuIFRoYW5rIHlvdSBmb3Igc2hvcHBpbmcgd2l0aCB1cy4=",
|
|
296
|
+
"size": 1234
|
|
297
|
+
},
|
|
298
|
+
"filename": "",
|
|
299
|
+
"headers": [
|
|
300
|
+
{
|
|
301
|
+
"name": "Content-Type",
|
|
302
|
+
"value": "text/plain; charset=utf-8"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"name": "Content-Transfer-Encoding",
|
|
306
|
+
"value": "quoted-printable"
|
|
307
|
+
}
|
|
308
|
+
],
|
|
309
|
+
"mimeType": "text/plain",
|
|
310
|
+
"partId": "0"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"body": {
|
|
314
|
+
"data": "PGRpdiBzdHlsZT0nZm9udC1mYW1pbHk6IEFyaWFsLCBzYW5zLXNlcmlmOyc+VGhpcyBpcyBhbiBleGFtcGxlIGh0bWwgbWVzc2FnZS4gPGI+VGhhbmsgeW91IGZvciBzaG9wcGluZyB3aXRoIHVzLjwvYj48L2Rpdj4=",
|
|
315
|
+
"size": 5678
|
|
316
|
+
},
|
|
317
|
+
"filename": "",
|
|
318
|
+
"headers": [
|
|
319
|
+
{
|
|
320
|
+
"name": "Content-Type",
|
|
321
|
+
"value": "text/html; charset=\"utf-8\""
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"name": "Content-Transfer-Encoding",
|
|
325
|
+
"value": "quoted-printable"
|
|
326
|
+
}
|
|
327
|
+
],
|
|
328
|
+
"mimeType": "text/html",
|
|
329
|
+
"partId": "1"
|
|
330
|
+
}
|
|
331
|
+
]
|
|
332
|
+
},
|
|
333
|
+
"sizeEstimate": 67890,
|
|
334
|
+
"snippet": "Don't miss our exclusive holiday discounts on all items! Act now before the sale ends.",
|
|
335
|
+
"threadId": "a1b2c3d4e5f6g7h8"
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
],
|
|
339
|
+
"Gmail - Drafts - Delete": [{ "json": { "success": true } }],
|
|
340
|
+
"Gmail - Drafts - Get": [
|
|
341
|
+
{
|
|
342
|
+
"json": {
|
|
343
|
+
"date": "2024-12-13T10:15:01.000Z",
|
|
344
|
+
"from": {
|
|
345
|
+
"html": "<span class=\"mp_address_group\"><span class=\"mp_address_name\">node qa</span> <<a href=\"mailto:node8qa@gmail.com\" class=\"mp_address_email\">node8qa@gmail.com</a>></span>",
|
|
346
|
+
"text": "\"node qa\" <node8qa@gmail.com>",
|
|
347
|
+
"value": [
|
|
348
|
+
{
|
|
349
|
+
"address": "node8qa@gmail.com",
|
|
350
|
+
"name": "node qa"
|
|
351
|
+
}
|
|
352
|
+
]
|
|
353
|
+
},
|
|
354
|
+
"headers": {
|
|
355
|
+
"content-type": "Content-Type: multipart/alternative; boundary=\"0000000000009d58b60629241a22\"",
|
|
356
|
+
"date": "Date: Fri, 13 Dec 2024 11:15:01 +0100",
|
|
357
|
+
"from": "From: node qa <node8qa@gmail.com>",
|
|
358
|
+
"message-id": "Message-ID: <CAEGAProwudGnKXxqrhMjOuxamTh7yArjwP7OD9UBq-Jpkb0X9w@mail.gmail.com>",
|
|
359
|
+
"mime-version": "MIME-Version: 1.0",
|
|
360
|
+
"subject": "Subject: Test draft",
|
|
361
|
+
"to": "To: test@gmail.com"
|
|
362
|
+
},
|
|
363
|
+
"html": "<div dir=\"ltr\">draft body<br></div>\n",
|
|
364
|
+
"labelIds": ["UNREAD", "CATEGORY_PROMOTIONS", "INBOX"],
|
|
365
|
+
"messageId": "a1b2c3d4e5f6g7h8",
|
|
366
|
+
"sizeEstimate": 67890,
|
|
367
|
+
"subject": "Test draft",
|
|
368
|
+
"text": "draft body\n",
|
|
369
|
+
"textAsHtml": "<p>draft body</p>",
|
|
370
|
+
"threadId": "a1b2c3d4e5f6g7h8",
|
|
371
|
+
"to": {
|
|
372
|
+
"html": "<span class=\"mp_address_group\"><a href=\"mailto:test@gmail.com\" class=\"mp_address_email\">test@gmail.com</a></span>",
|
|
373
|
+
"text": "test@gmail.com",
|
|
374
|
+
"value": [
|
|
375
|
+
{
|
|
376
|
+
"address": "test@gmail.com",
|
|
377
|
+
"name": ""
|
|
378
|
+
}
|
|
379
|
+
]
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
]
|
|
384
|
+
},
|
|
385
|
+
"connections": {
|
|
386
|
+
"When clicking ‘Test workflow’": {
|
|
387
|
+
"main": [
|
|
388
|
+
[
|
|
389
|
+
{
|
|
390
|
+
"node": "Gmail - Drafts - All",
|
|
391
|
+
"type": "main",
|
|
392
|
+
"index": 0
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"node": "Gmail - Drafts - Delete",
|
|
396
|
+
"type": "main",
|
|
397
|
+
"index": 0
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"node": "Gmail - Drafts - Get",
|
|
401
|
+
"type": "main",
|
|
402
|
+
"index": 0
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"node": "Edit Fields",
|
|
406
|
+
"type": "main",
|
|
407
|
+
"index": 0
|
|
408
|
+
}
|
|
409
|
+
]
|
|
410
|
+
]
|
|
411
|
+
},
|
|
412
|
+
"Attachment": {
|
|
413
|
+
"main": [
|
|
414
|
+
[
|
|
415
|
+
{
|
|
416
|
+
"node": "Gmail - Drafts - Create",
|
|
417
|
+
"type": "main",
|
|
418
|
+
"index": 0
|
|
419
|
+
}
|
|
420
|
+
]
|
|
421
|
+
]
|
|
422
|
+
},
|
|
423
|
+
"Edit Fields": {
|
|
424
|
+
"main": [
|
|
425
|
+
[
|
|
426
|
+
{
|
|
427
|
+
"node": "Attachment",
|
|
428
|
+
"type": "main",
|
|
429
|
+
"index": 0
|
|
430
|
+
}
|
|
431
|
+
]
|
|
432
|
+
]
|
|
433
|
+
}
|
|
434
|
+
},
|
|
435
|
+
"active": false,
|
|
436
|
+
"settings": {
|
|
437
|
+
"executionOrder": "v1"
|
|
438
|
+
},
|
|
439
|
+
"versionId": "59109e41-be89-484a-b8d0-8f5c8f0407f9",
|
|
440
|
+
"meta": {
|
|
441
|
+
"templateCredsSetupCompleted": true,
|
|
442
|
+
"instanceId": "cb484ba7b742928a2048bf8829668bed5b5ad9787579adea888f05980292a4a7"
|
|
443
|
+
},
|
|
444
|
+
"id": "dbQv4DRzYXIcTNNs",
|
|
445
|
+
"tags": []
|
|
446
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Gmail v1 test - labels",
|
|
3
|
+
"nodes": [
|
|
4
|
+
{
|
|
5
|
+
"parameters": {},
|
|
6
|
+
"type": "n8n-nodes-base.manualTrigger",
|
|
7
|
+
"typeVersion": 1,
|
|
8
|
+
"position": [520, 200],
|
|
9
|
+
"id": "d52d5cac-d1df-4581-bb97-c14d559a93ad",
|
|
10
|
+
"name": "When clicking ‘Test workflow’"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"parameters": {
|
|
14
|
+
"resource": "label",
|
|
15
|
+
"operation": "getAll",
|
|
16
|
+
"limit": 2
|
|
17
|
+
},
|
|
18
|
+
"type": "n8n-nodes-base.gmail",
|
|
19
|
+
"typeVersion": 1,
|
|
20
|
+
"position": [740, -100],
|
|
21
|
+
"id": "48634d96-92f3-430f-9063-2e3784e5ba98",
|
|
22
|
+
"name": "Gmail - Labels - All",
|
|
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": "label",
|
|
34
|
+
"operation": "delete",
|
|
35
|
+
"labelId": "test-label-id"
|
|
36
|
+
},
|
|
37
|
+
"type": "n8n-nodes-base.gmail",
|
|
38
|
+
"typeVersion": 1,
|
|
39
|
+
"position": [740, 100],
|
|
40
|
+
"id": "3ddc7641-ae81-41f1-a987-d7b517f348ea",
|
|
41
|
+
"name": "Gmail - Labels - Delete",
|
|
42
|
+
"webhookId": "f3cbddc1-3cfa-4217-aa73-f0e5a9309661",
|
|
43
|
+
"credentials": {
|
|
44
|
+
"gmailOAuth2": {
|
|
45
|
+
"id": "22",
|
|
46
|
+
"name": "Gmail 0auth"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"parameters": {
|
|
52
|
+
"resource": "label",
|
|
53
|
+
"operation": "get",
|
|
54
|
+
"labelId": "test-label-id"
|
|
55
|
+
},
|
|
56
|
+
"type": "n8n-nodes-base.gmail",
|
|
57
|
+
"typeVersion": 1,
|
|
58
|
+
"position": [740, 300],
|
|
59
|
+
"id": "80443d2e-f1f5-4f30-aeb2-6eea23a7d888",
|
|
60
|
+
"name": "Gmail - Labels - Get",
|
|
61
|
+
"webhookId": "f3cbddc1-3cfa-4217-aa73-f0e5a9309661",
|
|
62
|
+
"credentials": {
|
|
63
|
+
"gmailOAuth2": {
|
|
64
|
+
"id": "22",
|
|
65
|
+
"name": "Gmail 0auth"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"parameters": {
|
|
71
|
+
"resource": "label",
|
|
72
|
+
"name": "Test Label Name"
|
|
73
|
+
},
|
|
74
|
+
"type": "n8n-nodes-base.gmail",
|
|
75
|
+
"typeVersion": 1,
|
|
76
|
+
"position": [740, 500],
|
|
77
|
+
"id": "41efa86b-19f7-4acc-b118-e2f605b81c24",
|
|
78
|
+
"name": "Gmail - Labels - Create",
|
|
79
|
+
"webhookId": "f3cbddc1-3cfa-4217-aa73-f0e5a9309661",
|
|
80
|
+
"credentials": {
|
|
81
|
+
"gmailOAuth2": {
|
|
82
|
+
"id": "22",
|
|
83
|
+
"name": "Gmail 0auth"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"pinData": {
|
|
89
|
+
"Gmail - Labels - All": [
|
|
90
|
+
{
|
|
91
|
+
"json": {
|
|
92
|
+
"id": "CHAT",
|
|
93
|
+
"labelListVisibility": "labelHide",
|
|
94
|
+
"messageListVisibility": "hide",
|
|
95
|
+
"name": "CHAT",
|
|
96
|
+
"type": "system"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"json": {
|
|
101
|
+
"id": "SENT",
|
|
102
|
+
"name": "SENT",
|
|
103
|
+
"type": "system"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
"Gmail - Labels - Get": [
|
|
108
|
+
{
|
|
109
|
+
"json": {
|
|
110
|
+
"id": "CHAT",
|
|
111
|
+
"labelListVisibility": "labelHide",
|
|
112
|
+
"messageListVisibility": "hide",
|
|
113
|
+
"name": "CHAT",
|
|
114
|
+
"type": "system"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
"Gmail - Labels - Delete": [{ "json": { "success": true } }],
|
|
119
|
+
"Gmail - Labels - Create": [
|
|
120
|
+
{
|
|
121
|
+
"json": {
|
|
122
|
+
"id": "CHAT",
|
|
123
|
+
"labelListVisibility": "labelHide",
|
|
124
|
+
"messageListVisibility": "hide",
|
|
125
|
+
"name": "CHAT",
|
|
126
|
+
"type": "system"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
"connections": {
|
|
132
|
+
"When clicking ‘Test workflow’": {
|
|
133
|
+
"main": [
|
|
134
|
+
[
|
|
135
|
+
{
|
|
136
|
+
"node": "Gmail - Labels - All",
|
|
137
|
+
"type": "main",
|
|
138
|
+
"index": 0
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"node": "Gmail - Labels - Delete",
|
|
142
|
+
"type": "main",
|
|
143
|
+
"index": 0
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"node": "Gmail - Labels - Get",
|
|
147
|
+
"type": "main",
|
|
148
|
+
"index": 0
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"node": "Gmail - Labels - Create",
|
|
152
|
+
"type": "main",
|
|
153
|
+
"index": 0
|
|
154
|
+
}
|
|
155
|
+
]
|
|
156
|
+
]
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"active": false,
|
|
160
|
+
"settings": {
|
|
161
|
+
"executionOrder": "v1"
|
|
162
|
+
},
|
|
163
|
+
"versionId": "59109e41-be89-484a-b8d0-8f5c8f0407f9",
|
|
164
|
+
"meta": {
|
|
165
|
+
"templateCredsSetupCompleted": true,
|
|
166
|
+
"instanceId": "cb484ba7b742928a2048bf8829668bed5b5ad9787579adea888f05980292a4a7"
|
|
167
|
+
},
|
|
168
|
+
"id": "dbQv4DRzYXIcTNNs",
|
|
169
|
+
"tags": []
|
|
170
|
+
}
|