@n8n-dev/n8n-nodes-chatwoot 1.0.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 (111) hide show
  1. package/README.md +26 -0
  2. package/dist/credentials/ChatwootApi.credentials.d.ts +10 -0
  3. package/dist/credentials/ChatwootApi.credentials.js +47 -0
  4. package/dist/credentials/ChatwootApi.credentials.js.map +1 -0
  5. package/dist/icons/chatwoot.dark.svg +4 -0
  6. package/dist/icons/chatwoot.svg +4 -0
  7. package/dist/nodes/Chatwoot/Chatwoot.node.d.ts +4 -0
  8. package/dist/nodes/Chatwoot/Chatwoot.node.js +264 -0
  9. package/dist/nodes/Chatwoot/Chatwoot.node.js.map +1 -0
  10. package/dist/nodes/Chatwoot/Chatwoot.node.json +20 -0
  11. package/dist/nodes/Chatwoot/chatwoot.dark.svg +4 -0
  12. package/dist/nodes/Chatwoot/chatwoot.svg +4 -0
  13. package/dist/nodes/Chatwoot/resources/account/index.d.ts +2 -0
  14. package/dist/nodes/Chatwoot/resources/account/index.js +370 -0
  15. package/dist/nodes/Chatwoot/resources/account/index.js.map +1 -0
  16. package/dist/nodes/Chatwoot/resources/account-agent-bots/index.d.ts +2 -0
  17. package/dist/nodes/Chatwoot/resources/account-agent-bots/index.js +527 -0
  18. package/dist/nodes/Chatwoot/resources/account-agent-bots/index.js.map +1 -0
  19. package/dist/nodes/Chatwoot/resources/account-users/index.d.ts +2 -0
  20. package/dist/nodes/Chatwoot/resources/account-users/index.js +167 -0
  21. package/dist/nodes/Chatwoot/resources/account-users/index.js.map +1 -0
  22. package/dist/nodes/Chatwoot/resources/accounts/index.d.ts +2 -0
  23. package/dist/nodes/Chatwoot/resources/accounts/index.js +516 -0
  24. package/dist/nodes/Chatwoot/resources/accounts/index.js.map +1 -0
  25. package/dist/nodes/Chatwoot/resources/agent-bots/index.d.ts +2 -0
  26. package/dist/nodes/Chatwoot/resources/agent-bots/index.js +477 -0
  27. package/dist/nodes/Chatwoot/resources/agent-bots/index.js.map +1 -0
  28. package/dist/nodes/Chatwoot/resources/agents/index.d.ts +2 -0
  29. package/dist/nodes/Chatwoot/resources/agents/index.js +434 -0
  30. package/dist/nodes/Chatwoot/resources/agents/index.js.map +1 -0
  31. package/dist/nodes/Chatwoot/resources/audit-logs/index.d.ts +2 -0
  32. package/dist/nodes/Chatwoot/resources/audit-logs/index.js +78 -0
  33. package/dist/nodes/Chatwoot/resources/audit-logs/index.js.map +1 -0
  34. package/dist/nodes/Chatwoot/resources/automation-rule/index.d.ts +2 -0
  35. package/dist/nodes/Chatwoot/resources/automation-rule/index.js +610 -0
  36. package/dist/nodes/Chatwoot/resources/automation-rule/index.js.map +1 -0
  37. package/dist/nodes/Chatwoot/resources/canned-responses/index.d.ts +2 -0
  38. package/dist/nodes/Chatwoot/resources/canned-responses/index.js +282 -0
  39. package/dist/nodes/Chatwoot/resources/canned-responses/index.js.map +1 -0
  40. package/dist/nodes/Chatwoot/resources/contact-labels/index.d.ts +2 -0
  41. package/dist/nodes/Chatwoot/resources/contact-labels/index.js +110 -0
  42. package/dist/nodes/Chatwoot/resources/contact-labels/index.js.map +1 -0
  43. package/dist/nodes/Chatwoot/resources/contacts/index.d.ts +2 -0
  44. package/dist/nodes/Chatwoot/resources/contacts/index.js +1345 -0
  45. package/dist/nodes/Chatwoot/resources/contacts/index.js.map +1 -0
  46. package/dist/nodes/Chatwoot/resources/contacts-api/index.d.ts +2 -0
  47. package/dist/nodes/Chatwoot/resources/contacts-api/index.js +465 -0
  48. package/dist/nodes/Chatwoot/resources/contacts-api/index.js.map +1 -0
  49. package/dist/nodes/Chatwoot/resources/conversation/index.d.ts +2 -0
  50. package/dist/nodes/Chatwoot/resources/conversation/index.js +53 -0
  51. package/dist/nodes/Chatwoot/resources/conversation/index.js.map +1 -0
  52. package/dist/nodes/Chatwoot/resources/conversation-assignments/index.d.ts +2 -0
  53. package/dist/nodes/Chatwoot/resources/conversation-assignments/index.js +103 -0
  54. package/dist/nodes/Chatwoot/resources/conversation-assignments/index.js.map +1 -0
  55. package/dist/nodes/Chatwoot/resources/conversations/index.d.ts +2 -0
  56. package/dist/nodes/Chatwoot/resources/conversations/index.js +1396 -0
  57. package/dist/nodes/Chatwoot/resources/conversations/index.js.map +1 -0
  58. package/dist/nodes/Chatwoot/resources/conversations-api/index.d.ts +2 -0
  59. package/dist/nodes/Chatwoot/resources/conversations-api/index.js +294 -0
  60. package/dist/nodes/Chatwoot/resources/conversations-api/index.js.map +1 -0
  61. package/dist/nodes/Chatwoot/resources/csat-survey-page/index.d.ts +2 -0
  62. package/dist/nodes/Chatwoot/resources/csat-survey-page/index.js +53 -0
  63. package/dist/nodes/Chatwoot/resources/csat-survey-page/index.js.map +1 -0
  64. package/dist/nodes/Chatwoot/resources/custom-attributes/index.d.ts +2 -0
  65. package/dist/nodes/Chatwoot/resources/custom-attributes/index.js +703 -0
  66. package/dist/nodes/Chatwoot/resources/custom-attributes/index.js.map +1 -0
  67. package/dist/nodes/Chatwoot/resources/custom-filters/index.d.ts +2 -0
  68. package/dist/nodes/Chatwoot/resources/custom-filters/index.js +373 -0
  69. package/dist/nodes/Chatwoot/resources/custom-filters/index.js.map +1 -0
  70. package/dist/nodes/Chatwoot/resources/help-center/index.d.ts +2 -0
  71. package/dist/nodes/Chatwoot/resources/help-center/index.js +1156 -0
  72. package/dist/nodes/Chatwoot/resources/help-center/index.js.map +1 -0
  73. package/dist/nodes/Chatwoot/resources/inbox-api/index.d.ts +2 -0
  74. package/dist/nodes/Chatwoot/resources/inbox-api/index.js +53 -0
  75. package/dist/nodes/Chatwoot/resources/inbox-api/index.js.map +1 -0
  76. package/dist/nodes/Chatwoot/resources/inboxes/index.d.ts +2 -0
  77. package/dist/nodes/Chatwoot/resources/inboxes/index.js +1580 -0
  78. package/dist/nodes/Chatwoot/resources/inboxes/index.js.map +1 -0
  79. package/dist/nodes/Chatwoot/resources/index.d.ts +31 -0
  80. package/dist/nodes/Chatwoot/resources/index.js +66 -0
  81. package/dist/nodes/Chatwoot/resources/index.js.map +1 -0
  82. package/dist/nodes/Chatwoot/resources/integrations/index.d.ts +2 -0
  83. package/dist/nodes/Chatwoot/resources/integrations/index.js +386 -0
  84. package/dist/nodes/Chatwoot/resources/integrations/index.js.map +1 -0
  85. package/dist/nodes/Chatwoot/resources/labels/index.d.ts +2 -0
  86. package/dist/nodes/Chatwoot/resources/labels/index.js +377 -0
  87. package/dist/nodes/Chatwoot/resources/labels/index.js.map +1 -0
  88. package/dist/nodes/Chatwoot/resources/messages/index.d.ts +2 -0
  89. package/dist/nodes/Chatwoot/resources/messages/index.js +377 -0
  90. package/dist/nodes/Chatwoot/resources/messages/index.js.map +1 -0
  91. package/dist/nodes/Chatwoot/resources/messages-api/index.d.ts +2 -0
  92. package/dist/nodes/Chatwoot/resources/messages-api/index.js +190 -0
  93. package/dist/nodes/Chatwoot/resources/messages-api/index.js.map +1 -0
  94. package/dist/nodes/Chatwoot/resources/profile/index.d.ts +2 -0
  95. package/dist/nodes/Chatwoot/resources/profile/index.js +109 -0
  96. package/dist/nodes/Chatwoot/resources/profile/index.js.map +1 -0
  97. package/dist/nodes/Chatwoot/resources/reports/index.d.ts +2 -0
  98. package/dist/nodes/Chatwoot/resources/reports/index.js +588 -0
  99. package/dist/nodes/Chatwoot/resources/reports/index.js.map +1 -0
  100. package/dist/nodes/Chatwoot/resources/teams/index.d.ts +2 -0
  101. package/dist/nodes/Chatwoot/resources/teams/index.js +583 -0
  102. package/dist/nodes/Chatwoot/resources/teams/index.js.map +1 -0
  103. package/dist/nodes/Chatwoot/resources/users/index.d.ts +2 -0
  104. package/dist/nodes/Chatwoot/resources/users/index.js +427 -0
  105. package/dist/nodes/Chatwoot/resources/users/index.js.map +1 -0
  106. package/dist/nodes/Chatwoot/resources/webhooks/index.d.ts +2 -0
  107. package/dist/nodes/Chatwoot/resources/webhooks/index.js +332 -0
  108. package/dist/nodes/Chatwoot/resources/webhooks/index.js.map +1 -0
  109. package/dist/package.json +53 -0
  110. package/dist/tsconfig.tsbuildinfo +1 -0
  111. package/package.json +53 -0
@@ -0,0 +1,610 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.automationRuleDescription = void 0;
4
+ exports.automationRuleDescription = [
5
+ {
6
+ "displayName": "Operation",
7
+ "name": "operation",
8
+ "type": "options",
9
+ "noDataExpression": true,
10
+ "displayOptions": {
11
+ "show": {
12
+ "resource": [
13
+ "Automation Rule"
14
+ ]
15
+ }
16
+ },
17
+ "options": [
18
+ {
19
+ "name": "Get Account Automation Rule",
20
+ "value": "Get Account Automation Rule",
21
+ "action": "List all automation rules in an account",
22
+ "description": "Get details of automation rules in an Account",
23
+ "routing": {
24
+ "request": {
25
+ "method": "GET",
26
+ "url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/automation_rules"
27
+ }
28
+ }
29
+ },
30
+ {
31
+ "name": "Add New Automation Rule To Account",
32
+ "value": "Add New Automation Rule To Account",
33
+ "action": "Add a new automation rule",
34
+ "description": "Add a new automation rule to account",
35
+ "routing": {
36
+ "request": {
37
+ "method": "POST",
38
+ "url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/automation_rules"
39
+ }
40
+ }
41
+ },
42
+ {
43
+ "name": "Get Details Of A Single Automation Rule",
44
+ "value": "Get Details Of A Single Automation Rule",
45
+ "action": "Get a automation rule details",
46
+ "description": "Get the details of a automation rule in the account",
47
+ "routing": {
48
+ "request": {
49
+ "method": "GET",
50
+ "url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/automation_rules/{{$parameter[\"id\"]}}"
51
+ }
52
+ }
53
+ },
54
+ {
55
+ "name": "Update Automation Rule In Account",
56
+ "value": "Update Automation Rule In Account",
57
+ "action": "Update automation rule in Account",
58
+ "description": "Update a automation rule in account",
59
+ "routing": {
60
+ "request": {
61
+ "method": "PATCH",
62
+ "url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/automation_rules/{{$parameter[\"id\"]}}"
63
+ }
64
+ }
65
+ },
66
+ {
67
+ "name": "Delete Automation Rule From Account",
68
+ "value": "Delete Automation Rule From Account",
69
+ "action": "Remove a automation rule from account",
70
+ "description": "Remove a automation rule from account",
71
+ "routing": {
72
+ "request": {
73
+ "method": "DELETE",
74
+ "url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/automation_rules/{{$parameter[\"id\"]}}"
75
+ }
76
+ }
77
+ }
78
+ ],
79
+ "default": ""
80
+ },
81
+ {
82
+ "displayName": "GET /api/v1/accounts/{account_id}/automation_rules",
83
+ "name": "operation",
84
+ "type": "notice",
85
+ "typeOptions": {
86
+ "theme": "info"
87
+ },
88
+ "default": "",
89
+ "displayOptions": {
90
+ "show": {
91
+ "resource": [
92
+ "Automation Rule"
93
+ ],
94
+ "operation": [
95
+ "Get Account Automation Rule"
96
+ ]
97
+ }
98
+ }
99
+ },
100
+ {
101
+ "displayName": "Account Id",
102
+ "name": "account_id",
103
+ "required": true,
104
+ "description": "The numeric ID of the account",
105
+ "default": 0,
106
+ "type": "number",
107
+ "displayOptions": {
108
+ "show": {
109
+ "resource": [
110
+ "Automation Rule"
111
+ ],
112
+ "operation": [
113
+ "Get Account Automation Rule"
114
+ ]
115
+ }
116
+ }
117
+ },
118
+ {
119
+ "displayName": "Page",
120
+ "name": "page",
121
+ "description": "The page parameter",
122
+ "default": 1,
123
+ "type": "number",
124
+ "routing": {
125
+ "send": {
126
+ "type": "query",
127
+ "property": "page",
128
+ "value": "={{ $value }}",
129
+ "propertyInDotNotation": false
130
+ }
131
+ },
132
+ "displayOptions": {
133
+ "show": {
134
+ "resource": [
135
+ "Automation Rule"
136
+ ],
137
+ "operation": [
138
+ "Get Account Automation Rule"
139
+ ]
140
+ }
141
+ }
142
+ },
143
+ {
144
+ "displayName": "POST /api/v1/accounts/{account_id}/automation_rules",
145
+ "name": "operation",
146
+ "type": "notice",
147
+ "typeOptions": {
148
+ "theme": "info"
149
+ },
150
+ "default": "",
151
+ "displayOptions": {
152
+ "show": {
153
+ "resource": [
154
+ "Automation Rule"
155
+ ],
156
+ "operation": [
157
+ "Add New Automation Rule To Account"
158
+ ]
159
+ }
160
+ }
161
+ },
162
+ {
163
+ "displayName": "Name",
164
+ "name": "name",
165
+ "type": "string",
166
+ "default": "Add label on message create event",
167
+ "description": "Rule name",
168
+ "routing": {
169
+ "send": {
170
+ "property": "name",
171
+ "propertyInDotNotation": false,
172
+ "type": "body",
173
+ "value": "={{ $value }}"
174
+ }
175
+ },
176
+ "displayOptions": {
177
+ "show": {
178
+ "resource": [
179
+ "Automation Rule"
180
+ ],
181
+ "operation": [
182
+ "Add New Automation Rule To Account"
183
+ ]
184
+ }
185
+ }
186
+ },
187
+ {
188
+ "displayName": "Description",
189
+ "name": "description",
190
+ "type": "string",
191
+ "default": "Add label support and sales on message create event if incoming message content contains text help",
192
+ "description": "The description about the automation and actions",
193
+ "routing": {
194
+ "send": {
195
+ "property": "description",
196
+ "propertyInDotNotation": false,
197
+ "type": "body",
198
+ "value": "={{ $value }}"
199
+ }
200
+ },
201
+ "displayOptions": {
202
+ "show": {
203
+ "resource": [
204
+ "Automation Rule"
205
+ ],
206
+ "operation": [
207
+ "Add New Automation Rule To Account"
208
+ ]
209
+ }
210
+ }
211
+ },
212
+ {
213
+ "displayName": "Event Name",
214
+ "name": "event_name",
215
+ "type": "options",
216
+ "default": "message_created",
217
+ "description": "The event when you want to execute the automation actions",
218
+ "options": [
219
+ {
220
+ "name": "Conversation Created",
221
+ "value": "conversation_created"
222
+ },
223
+ {
224
+ "name": "Conversation Updated",
225
+ "value": "conversation_updated"
226
+ },
227
+ {
228
+ "name": "Conversation Resolved",
229
+ "value": "conversation_resolved"
230
+ },
231
+ {
232
+ "name": "Message Created",
233
+ "value": "message_created"
234
+ }
235
+ ],
236
+ "routing": {
237
+ "send": {
238
+ "property": "event_name",
239
+ "propertyInDotNotation": false,
240
+ "type": "body",
241
+ "value": "={{ $value }}"
242
+ }
243
+ },
244
+ "displayOptions": {
245
+ "show": {
246
+ "resource": [
247
+ "Automation Rule"
248
+ ],
249
+ "operation": [
250
+ "Add New Automation Rule To Account"
251
+ ]
252
+ }
253
+ }
254
+ },
255
+ {
256
+ "displayName": "Active",
257
+ "name": "active",
258
+ "type": "boolean",
259
+ "default": true,
260
+ "description": "Enable/disable automation rule",
261
+ "routing": {
262
+ "send": {
263
+ "property": "active",
264
+ "propertyInDotNotation": false,
265
+ "type": "body",
266
+ "value": "={{ $value }}"
267
+ }
268
+ },
269
+ "displayOptions": {
270
+ "show": {
271
+ "resource": [
272
+ "Automation Rule"
273
+ ],
274
+ "operation": [
275
+ "Add New Automation Rule To Account"
276
+ ]
277
+ }
278
+ }
279
+ },
280
+ {
281
+ "displayName": "Actions",
282
+ "name": "actions",
283
+ "type": "json",
284
+ "default": "[\n {\n \"action_name\": \"add_label\",\n \"action_params\": [\n \"support\"\n ]\n }\n]",
285
+ "description": "Array of actions which you want to perform when condition matches, e.g add label support if message contains content help.",
286
+ "routing": {
287
+ "send": {
288
+ "property": "actions",
289
+ "propertyInDotNotation": false,
290
+ "type": "body",
291
+ "value": "={{ JSON.parse($value) }}"
292
+ }
293
+ },
294
+ "displayOptions": {
295
+ "show": {
296
+ "resource": [
297
+ "Automation Rule"
298
+ ],
299
+ "operation": [
300
+ "Add New Automation Rule To Account"
301
+ ]
302
+ }
303
+ }
304
+ },
305
+ {
306
+ "displayName": "Conditions",
307
+ "name": "conditions",
308
+ "type": "json",
309
+ "default": "[\n {\n \"attribute_key\": \"content\",\n \"filter_operator\": \"contains\",\n \"query_operator\": \"OR\",\n \"values\": [\n \"help\"\n ]\n }\n]",
310
+ "description": "Array of conditions on which conversation filter would work, e.g message content contains text help.",
311
+ "routing": {
312
+ "send": {
313
+ "property": "conditions",
314
+ "propertyInDotNotation": false,
315
+ "type": "body",
316
+ "value": "={{ JSON.parse($value) }}"
317
+ }
318
+ },
319
+ "displayOptions": {
320
+ "show": {
321
+ "resource": [
322
+ "Automation Rule"
323
+ ],
324
+ "operation": [
325
+ "Add New Automation Rule To Account"
326
+ ]
327
+ }
328
+ }
329
+ },
330
+ {
331
+ "displayName": "GET /api/v1/accounts/{account_id}/automation_rules/{id}",
332
+ "name": "operation",
333
+ "type": "notice",
334
+ "typeOptions": {
335
+ "theme": "info"
336
+ },
337
+ "default": "",
338
+ "displayOptions": {
339
+ "show": {
340
+ "resource": [
341
+ "Automation Rule"
342
+ ],
343
+ "operation": [
344
+ "Get Details Of A Single Automation Rule"
345
+ ]
346
+ }
347
+ }
348
+ },
349
+ {
350
+ "displayName": "Id",
351
+ "name": "id",
352
+ "required": true,
353
+ "description": "The ID of the automation rule to be updated.",
354
+ "default": 0,
355
+ "type": "number",
356
+ "displayOptions": {
357
+ "show": {
358
+ "resource": [
359
+ "Automation Rule"
360
+ ],
361
+ "operation": [
362
+ "Get Details Of A Single Automation Rule"
363
+ ]
364
+ }
365
+ }
366
+ },
367
+ {
368
+ "displayName": "PATCH /api/v1/accounts/{account_id}/automation_rules/{id}",
369
+ "name": "operation",
370
+ "type": "notice",
371
+ "typeOptions": {
372
+ "theme": "info"
373
+ },
374
+ "default": "",
375
+ "displayOptions": {
376
+ "show": {
377
+ "resource": [
378
+ "Automation Rule"
379
+ ],
380
+ "operation": [
381
+ "Update Automation Rule In Account"
382
+ ]
383
+ }
384
+ }
385
+ },
386
+ {
387
+ "displayName": "Id",
388
+ "name": "id",
389
+ "required": true,
390
+ "description": "The ID of the automation rule to be updated.",
391
+ "default": 0,
392
+ "type": "number",
393
+ "displayOptions": {
394
+ "show": {
395
+ "resource": [
396
+ "Automation Rule"
397
+ ],
398
+ "operation": [
399
+ "Update Automation Rule In Account"
400
+ ]
401
+ }
402
+ }
403
+ },
404
+ {
405
+ "displayName": "Name",
406
+ "name": "name",
407
+ "type": "string",
408
+ "default": "Add label on message create event",
409
+ "description": "Rule name",
410
+ "routing": {
411
+ "send": {
412
+ "property": "name",
413
+ "propertyInDotNotation": false,
414
+ "type": "body",
415
+ "value": "={{ $value }}"
416
+ }
417
+ },
418
+ "displayOptions": {
419
+ "show": {
420
+ "resource": [
421
+ "Automation Rule"
422
+ ],
423
+ "operation": [
424
+ "Update Automation Rule In Account"
425
+ ]
426
+ }
427
+ }
428
+ },
429
+ {
430
+ "displayName": "Description",
431
+ "name": "description",
432
+ "type": "string",
433
+ "default": "Add label support and sales on message create event if incoming message content contains text help",
434
+ "description": "The description about the automation and actions",
435
+ "routing": {
436
+ "send": {
437
+ "property": "description",
438
+ "propertyInDotNotation": false,
439
+ "type": "body",
440
+ "value": "={{ $value }}"
441
+ }
442
+ },
443
+ "displayOptions": {
444
+ "show": {
445
+ "resource": [
446
+ "Automation Rule"
447
+ ],
448
+ "operation": [
449
+ "Update Automation Rule In Account"
450
+ ]
451
+ }
452
+ }
453
+ },
454
+ {
455
+ "displayName": "Event Name",
456
+ "name": "event_name",
457
+ "type": "options",
458
+ "default": "message_created",
459
+ "description": "The event when you want to execute the automation actions",
460
+ "options": [
461
+ {
462
+ "name": "Conversation Created",
463
+ "value": "conversation_created"
464
+ },
465
+ {
466
+ "name": "Conversation Updated",
467
+ "value": "conversation_updated"
468
+ },
469
+ {
470
+ "name": "Conversation Resolved",
471
+ "value": "conversation_resolved"
472
+ },
473
+ {
474
+ "name": "Message Created",
475
+ "value": "message_created"
476
+ }
477
+ ],
478
+ "routing": {
479
+ "send": {
480
+ "property": "event_name",
481
+ "propertyInDotNotation": false,
482
+ "type": "body",
483
+ "value": "={{ $value }}"
484
+ }
485
+ },
486
+ "displayOptions": {
487
+ "show": {
488
+ "resource": [
489
+ "Automation Rule"
490
+ ],
491
+ "operation": [
492
+ "Update Automation Rule In Account"
493
+ ]
494
+ }
495
+ }
496
+ },
497
+ {
498
+ "displayName": "Active",
499
+ "name": "active",
500
+ "type": "boolean",
501
+ "default": true,
502
+ "description": "Enable/disable automation rule",
503
+ "routing": {
504
+ "send": {
505
+ "property": "active",
506
+ "propertyInDotNotation": false,
507
+ "type": "body",
508
+ "value": "={{ $value }}"
509
+ }
510
+ },
511
+ "displayOptions": {
512
+ "show": {
513
+ "resource": [
514
+ "Automation Rule"
515
+ ],
516
+ "operation": [
517
+ "Update Automation Rule In Account"
518
+ ]
519
+ }
520
+ }
521
+ },
522
+ {
523
+ "displayName": "Actions",
524
+ "name": "actions",
525
+ "type": "json",
526
+ "default": "[\n {\n \"action_name\": \"add_label\",\n \"action_params\": [\n \"support\"\n ]\n }\n]",
527
+ "description": "Array of actions which you want to perform when condition matches, e.g add label support if message contains content help.",
528
+ "routing": {
529
+ "send": {
530
+ "property": "actions",
531
+ "propertyInDotNotation": false,
532
+ "type": "body",
533
+ "value": "={{ JSON.parse($value) }}"
534
+ }
535
+ },
536
+ "displayOptions": {
537
+ "show": {
538
+ "resource": [
539
+ "Automation Rule"
540
+ ],
541
+ "operation": [
542
+ "Update Automation Rule In Account"
543
+ ]
544
+ }
545
+ }
546
+ },
547
+ {
548
+ "displayName": "Conditions",
549
+ "name": "conditions",
550
+ "type": "json",
551
+ "default": "[\n {\n \"attribute_key\": \"content\",\n \"filter_operator\": \"contains\",\n \"query_operator\": \"OR\",\n \"values\": [\n \"help\"\n ]\n }\n]",
552
+ "description": "Array of conditions on which conversation filter would work, e.g message content contains text help.",
553
+ "routing": {
554
+ "send": {
555
+ "property": "conditions",
556
+ "propertyInDotNotation": false,
557
+ "type": "body",
558
+ "value": "={{ JSON.parse($value) }}"
559
+ }
560
+ },
561
+ "displayOptions": {
562
+ "show": {
563
+ "resource": [
564
+ "Automation Rule"
565
+ ],
566
+ "operation": [
567
+ "Update Automation Rule In Account"
568
+ ]
569
+ }
570
+ }
571
+ },
572
+ {
573
+ "displayName": "DELETE /api/v1/accounts/{account_id}/automation_rules/{id}",
574
+ "name": "operation",
575
+ "type": "notice",
576
+ "typeOptions": {
577
+ "theme": "info"
578
+ },
579
+ "default": "",
580
+ "displayOptions": {
581
+ "show": {
582
+ "resource": [
583
+ "Automation Rule"
584
+ ],
585
+ "operation": [
586
+ "Delete Automation Rule From Account"
587
+ ]
588
+ }
589
+ }
590
+ },
591
+ {
592
+ "displayName": "Id",
593
+ "name": "id",
594
+ "required": true,
595
+ "description": "The ID of the automation rule to be deleted",
596
+ "default": 0,
597
+ "type": "number",
598
+ "displayOptions": {
599
+ "show": {
600
+ "resource": [
601
+ "Automation Rule"
602
+ ],
603
+ "operation": [
604
+ "Delete Automation Rule From Account"
605
+ ]
606
+ }
607
+ }
608
+ },
609
+ ];
610
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/automation-rule/index.ts"],"names":[],"mappings":";;;AAEa,QAAA,yBAAyB,GAAsB;IAC1D;QACC,aAAa,EAAE,WAAW;QAC1B,MAAM,EAAE,WAAW;QACnB,MAAM,EAAE,SAAS;QACjB,kBAAkB,EAAE,IAAI;QACxB,gBAAgB,EAAE;YACjB,MAAM,EAAE;gBACP,UAAU,EAAE;oBACX,iBAAiB;iBACjB;aACD;SACD;QACD,SAAS,EAAE;YACV;gBACC,MAAM,EAAE,6BAA6B;gBACrC,OAAO,EAAE,6BAA6B;gBACtC,QAAQ,EAAE,yCAAyC;gBACnD,aAAa,EAAE,+CAA+C;gBAC9D,SAAS,EAAE;oBACV,SAAS,EAAE;wBACV,QAAQ,EAAE,KAAK;wBACf,KAAK,EAAE,mEAAmE;qBAC1E;iBACD;aACD;YACD;gBACC,MAAM,EAAE,oCAAoC;gBAC5C,OAAO,EAAE,oCAAoC;gBAC7C,QAAQ,EAAE,2BAA2B;gBACrC,aAAa,EAAE,sCAAsC;gBACrD,SAAS,EAAE;oBACV,SAAS,EAAE;wBACV,QAAQ,EAAE,MAAM;wBAChB,KAAK,EAAE,mEAAmE;qBAC1E;iBACD;aACD;YACD;gBACC,MAAM,EAAE,yCAAyC;gBACjD,OAAO,EAAE,yCAAyC;gBAClD,QAAQ,EAAE,+BAA+B;gBACzC,aAAa,EAAE,qDAAqD;gBACpE,SAAS,EAAE;oBACV,SAAS,EAAE;wBACV,QAAQ,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MAAM,EAAE;gBACP,UAAU,EAAE;oBACX,iBAAiB;iBACjB;gBACD,WAAW,EAAE;oBACZ,qCAAqC;iBACrC;aACD;SACD;KACD;IACD;QACC,aAAa,EAAE,IAAI;QACnB,MAAM,EAAE,IAAI;QACZ,UAAU,EAAE,IAAI;QAChB,aAAa,EAAE,6CAA6C;QAC5D,SAAS,EAAE,CAAC;QACZ,MAAM,EAAE,QAAQ;QAChB,gBAAgB,EAAE;YACjB,MAAM,EAAE;gBACP,UAAU,EAAE;oBACX,iBAAiB;iBACjB;gBACD,WAAW,EAAE;oBACZ,qCAAqC;iBACrC;aACD;SACD;KACD;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const cannedResponsesDescription: INodeProperties[];