@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,1345 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.contactsDescription = void 0;
4
+ exports.contactsDescription = [
5
+ {
6
+ "displayName": "Operation",
7
+ "name": "operation",
8
+ "type": "options",
9
+ "noDataExpression": true,
10
+ "displayOptions": {
11
+ "show": {
12
+ "resource": [
13
+ "Contacts"
14
+ ]
15
+ }
16
+ },
17
+ "options": [
18
+ {
19
+ "name": "Contact List",
20
+ "value": "Contact List",
21
+ "action": "List Contacts",
22
+ "description": "Listing all the resolved contacts with pagination (Page size = 15). Resolved contacts are the ones with a value for identifier, email or phone number",
23
+ "routing": {
24
+ "request": {
25
+ "method": "GET",
26
+ "url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/contacts"
27
+ }
28
+ }
29
+ },
30
+ {
31
+ "name": "Contact Create",
32
+ "value": "Contact Create",
33
+ "action": "Create Contact",
34
+ "description": "Create a new Contact",
35
+ "routing": {
36
+ "request": {
37
+ "method": "POST",
38
+ "url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/contacts"
39
+ }
40
+ }
41
+ },
42
+ {
43
+ "name": "Contact Details",
44
+ "value": "Contact Details",
45
+ "action": "Show Contact",
46
+ "description": "Get a contact belonging to the account using ID",
47
+ "routing": {
48
+ "request": {
49
+ "method": "GET",
50
+ "url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/contacts/{{$parameter[\"id\"]}}"
51
+ }
52
+ }
53
+ },
54
+ {
55
+ "name": "Contact Update",
56
+ "value": "Contact Update",
57
+ "action": "Update Contact",
58
+ "description": "Update a contact belonging to the account using ID",
59
+ "routing": {
60
+ "request": {
61
+ "method": "PUT",
62
+ "url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/contacts/{{$parameter[\"id\"]}}"
63
+ }
64
+ }
65
+ },
66
+ {
67
+ "name": "Contact Delete",
68
+ "value": "Contact Delete",
69
+ "action": "Delete Contact",
70
+ "description": "Delete a contact belonging to the account using ID",
71
+ "routing": {
72
+ "request": {
73
+ "method": "DELETE",
74
+ "url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/contacts/{{$parameter[\"id\"]}}"
75
+ }
76
+ }
77
+ },
78
+ {
79
+ "name": "Contact Conversations",
80
+ "value": "Contact Conversations",
81
+ "action": "Contact Conversations",
82
+ "description": "Get conversations associated with that contact",
83
+ "routing": {
84
+ "request": {
85
+ "method": "GET",
86
+ "url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/contacts/{{$parameter[\"id\"]}}/conversations"
87
+ }
88
+ }
89
+ },
90
+ {
91
+ "name": "Contact Search",
92
+ "value": "Contact Search",
93
+ "action": "Search Contacts",
94
+ "description": "Search the resolved contacts using a search key, currently supports email search (Page size = 15). Resolved contacts are the ones with a value for identifier, email or phone number",
95
+ "routing": {
96
+ "request": {
97
+ "method": "GET",
98
+ "url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/contacts/search"
99
+ }
100
+ }
101
+ },
102
+ {
103
+ "name": "Contact Filter",
104
+ "value": "Contact Filter",
105
+ "action": "Contact Filter",
106
+ "description": "Filter contacts with custom filter options and pagination",
107
+ "routing": {
108
+ "request": {
109
+ "method": "POST",
110
+ "url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/contacts/filter"
111
+ }
112
+ }
113
+ },
114
+ {
115
+ "name": "Contact Inbox Creation",
116
+ "value": "Contact Inbox Creation",
117
+ "action": "Create contact inbox",
118
+ "description": "Create a contact inbox record for an inbox",
119
+ "routing": {
120
+ "request": {
121
+ "method": "POST",
122
+ "url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/contacts/{{$parameter[\"id\"]}}/contact_inboxes"
123
+ }
124
+ }
125
+ },
126
+ {
127
+ "name": "Contactable Inboxes Get",
128
+ "value": "Contactable Inboxes Get",
129
+ "action": "Get Contactable Inboxes",
130
+ "description": "Get List of contactable Inboxes",
131
+ "routing": {
132
+ "request": {
133
+ "method": "GET",
134
+ "url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/contacts/{{$parameter[\"id\"]}}/contactable_inboxes"
135
+ }
136
+ }
137
+ },
138
+ {
139
+ "name": "Contact Merge",
140
+ "value": "Contact Merge",
141
+ "action": "Merge Contacts",
142
+ "description": "Merge two contacts into a single contact. The base contact remains and receives all\ndata from the mergee contact. After the merge, the mergee contact is permanently deleted.\n\nThis action is irreversible. All conversations, labels, and custom attributes from the\nmergee contact will be moved to the base contact.\n",
143
+ "routing": {
144
+ "request": {
145
+ "method": "POST",
146
+ "url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/actions/contact_merge"
147
+ }
148
+ }
149
+ }
150
+ ],
151
+ "default": ""
152
+ },
153
+ {
154
+ "displayName": "GET /api/v1/accounts/{account_id}/contacts",
155
+ "name": "operation",
156
+ "type": "notice",
157
+ "typeOptions": {
158
+ "theme": "info"
159
+ },
160
+ "default": "",
161
+ "displayOptions": {
162
+ "show": {
163
+ "resource": [
164
+ "Contacts"
165
+ ],
166
+ "operation": [
167
+ "Contact List"
168
+ ]
169
+ }
170
+ }
171
+ },
172
+ {
173
+ "displayName": "Account Id",
174
+ "name": "account_id",
175
+ "required": true,
176
+ "description": "The numeric ID of the account",
177
+ "default": 0,
178
+ "type": "number",
179
+ "displayOptions": {
180
+ "show": {
181
+ "resource": [
182
+ "Contacts"
183
+ ],
184
+ "operation": [
185
+ "Contact List"
186
+ ]
187
+ }
188
+ }
189
+ },
190
+ {
191
+ "displayName": "Sort",
192
+ "name": "sort",
193
+ "description": "The attribute by which list should be sorted",
194
+ "default": "name",
195
+ "type": "options",
196
+ "options": [
197
+ {
198
+ "name": "Name",
199
+ "value": "name"
200
+ },
201
+ {
202
+ "name": "Email",
203
+ "value": "email"
204
+ },
205
+ {
206
+ "name": "Phone Number",
207
+ "value": "phone_number"
208
+ },
209
+ {
210
+ "name": "Last Activity At",
211
+ "value": "last_activity_at"
212
+ },
213
+ {
214
+ "name": "Name",
215
+ "value": "-name"
216
+ },
217
+ {
218
+ "name": "Email",
219
+ "value": "-email"
220
+ },
221
+ {
222
+ "name": "Phone Number",
223
+ "value": "-phone_number"
224
+ },
225
+ {
226
+ "name": "Last Activity At",
227
+ "value": "-last_activity_at"
228
+ }
229
+ ],
230
+ "routing": {
231
+ "send": {
232
+ "type": "query",
233
+ "property": "sort",
234
+ "value": "={{ $value }}",
235
+ "propertyInDotNotation": false
236
+ }
237
+ },
238
+ "displayOptions": {
239
+ "show": {
240
+ "resource": [
241
+ "Contacts"
242
+ ],
243
+ "operation": [
244
+ "Contact List"
245
+ ]
246
+ }
247
+ }
248
+ },
249
+ {
250
+ "displayName": "Page",
251
+ "name": "page",
252
+ "description": "The page parameter",
253
+ "default": 1,
254
+ "type": "number",
255
+ "routing": {
256
+ "send": {
257
+ "type": "query",
258
+ "property": "page",
259
+ "value": "={{ $value }}",
260
+ "propertyInDotNotation": false
261
+ }
262
+ },
263
+ "displayOptions": {
264
+ "show": {
265
+ "resource": [
266
+ "Contacts"
267
+ ],
268
+ "operation": [
269
+ "Contact List"
270
+ ]
271
+ }
272
+ }
273
+ },
274
+ {
275
+ "displayName": "POST /api/v1/accounts/{account_id}/contacts",
276
+ "name": "operation",
277
+ "type": "notice",
278
+ "typeOptions": {
279
+ "theme": "info"
280
+ },
281
+ "default": "",
282
+ "displayOptions": {
283
+ "show": {
284
+ "resource": [
285
+ "Contacts"
286
+ ],
287
+ "operation": [
288
+ "Contact Create"
289
+ ]
290
+ }
291
+ }
292
+ },
293
+ {
294
+ "displayName": "Account Id",
295
+ "name": "account_id",
296
+ "required": true,
297
+ "description": "The numeric ID of the account",
298
+ "default": 0,
299
+ "type": "number",
300
+ "displayOptions": {
301
+ "show": {
302
+ "resource": [
303
+ "Contacts"
304
+ ],
305
+ "operation": [
306
+ "Contact Create"
307
+ ]
308
+ }
309
+ }
310
+ },
311
+ {
312
+ "required": true,
313
+ "displayName": "Inbox Id",
314
+ "name": "inbox_id",
315
+ "type": "number",
316
+ "default": 1,
317
+ "description": "ID of the inbox to which the contact belongs",
318
+ "routing": {
319
+ "send": {
320
+ "property": "inbox_id",
321
+ "propertyInDotNotation": false,
322
+ "type": "body",
323
+ "value": "={{ $value }}"
324
+ }
325
+ },
326
+ "displayOptions": {
327
+ "show": {
328
+ "resource": [
329
+ "Contacts"
330
+ ],
331
+ "operation": [
332
+ "Contact Create"
333
+ ]
334
+ }
335
+ }
336
+ },
337
+ {
338
+ "displayName": "Name",
339
+ "name": "name",
340
+ "type": "string",
341
+ "default": "Alice",
342
+ "description": "name of the contact",
343
+ "routing": {
344
+ "send": {
345
+ "property": "name",
346
+ "propertyInDotNotation": false,
347
+ "type": "body",
348
+ "value": "={{ $value }}"
349
+ }
350
+ },
351
+ "displayOptions": {
352
+ "show": {
353
+ "resource": [
354
+ "Contacts"
355
+ ],
356
+ "operation": [
357
+ "Contact Create"
358
+ ]
359
+ }
360
+ }
361
+ },
362
+ {
363
+ "displayName": "Email",
364
+ "name": "email",
365
+ "type": "string",
366
+ "default": "alice@acme.inc",
367
+ "description": "email of the contact",
368
+ "routing": {
369
+ "send": {
370
+ "property": "email",
371
+ "propertyInDotNotation": false,
372
+ "type": "body",
373
+ "value": "={{ $value }}"
374
+ }
375
+ },
376
+ "displayOptions": {
377
+ "show": {
378
+ "resource": [
379
+ "Contacts"
380
+ ],
381
+ "operation": [
382
+ "Contact Create"
383
+ ]
384
+ }
385
+ }
386
+ },
387
+ {
388
+ "displayName": "Blocked",
389
+ "name": "blocked",
390
+ "type": "boolean",
391
+ "default": false,
392
+ "description": "whether the contact is blocked or not",
393
+ "routing": {
394
+ "send": {
395
+ "property": "blocked",
396
+ "propertyInDotNotation": false,
397
+ "type": "body",
398
+ "value": "={{ $value }}"
399
+ }
400
+ },
401
+ "displayOptions": {
402
+ "show": {
403
+ "resource": [
404
+ "Contacts"
405
+ ],
406
+ "operation": [
407
+ "Contact Create"
408
+ ]
409
+ }
410
+ }
411
+ },
412
+ {
413
+ "displayName": "Phone Number",
414
+ "name": "phone_number",
415
+ "type": "string",
416
+ "default": "+123456789",
417
+ "description": "phone number of the contact",
418
+ "routing": {
419
+ "send": {
420
+ "property": "phone_number",
421
+ "propertyInDotNotation": false,
422
+ "type": "body",
423
+ "value": "={{ $value }}"
424
+ }
425
+ },
426
+ "displayOptions": {
427
+ "show": {
428
+ "resource": [
429
+ "Contacts"
430
+ ],
431
+ "operation": [
432
+ "Contact Create"
433
+ ]
434
+ }
435
+ }
436
+ },
437
+ {
438
+ "displayName": "Avatar",
439
+ "name": "avatar",
440
+ "type": "string",
441
+ "default": "",
442
+ "description": "Send the form data with the avatar image binary or use the avatar_url",
443
+ "routing": {
444
+ "send": {
445
+ "property": "avatar",
446
+ "propertyInDotNotation": false,
447
+ "type": "body",
448
+ "value": "={{ $value }}"
449
+ }
450
+ },
451
+ "displayOptions": {
452
+ "show": {
453
+ "resource": [
454
+ "Contacts"
455
+ ],
456
+ "operation": [
457
+ "Contact Create"
458
+ ]
459
+ }
460
+ }
461
+ },
462
+ {
463
+ "displayName": "Avatar Url",
464
+ "name": "avatar_url",
465
+ "type": "string",
466
+ "default": "https://example.com/avatar.png",
467
+ "description": "The url to a jpeg, png file for the contact avatar",
468
+ "routing": {
469
+ "send": {
470
+ "property": "avatar_url",
471
+ "propertyInDotNotation": false,
472
+ "type": "body",
473
+ "value": "={{ $value }}"
474
+ }
475
+ },
476
+ "displayOptions": {
477
+ "show": {
478
+ "resource": [
479
+ "Contacts"
480
+ ],
481
+ "operation": [
482
+ "Contact Create"
483
+ ]
484
+ }
485
+ }
486
+ },
487
+ {
488
+ "displayName": "Identifier",
489
+ "name": "identifier",
490
+ "type": "string",
491
+ "default": "1234567890",
492
+ "description": "A unique identifier for the contact in external system",
493
+ "routing": {
494
+ "send": {
495
+ "property": "identifier",
496
+ "propertyInDotNotation": false,
497
+ "type": "body",
498
+ "value": "={{ $value }}"
499
+ }
500
+ },
501
+ "displayOptions": {
502
+ "show": {
503
+ "resource": [
504
+ "Contacts"
505
+ ],
506
+ "operation": [
507
+ "Contact Create"
508
+ ]
509
+ }
510
+ }
511
+ },
512
+ {
513
+ "displayName": "Additional Attributes",
514
+ "name": "additional_attributes",
515
+ "type": "json",
516
+ "default": "{\n \"type\": \"customer\",\n \"age\": 30\n}",
517
+ "description": "An object where you can store additional attributes for contact. example {\"type\":\"customer\", \"age\":30}",
518
+ "routing": {
519
+ "send": {
520
+ "property": "additional_attributes",
521
+ "propertyInDotNotation": false,
522
+ "type": "body",
523
+ "value": "={{ JSON.parse($value) }}"
524
+ }
525
+ },
526
+ "displayOptions": {
527
+ "show": {
528
+ "resource": [
529
+ "Contacts"
530
+ ],
531
+ "operation": [
532
+ "Contact Create"
533
+ ]
534
+ }
535
+ }
536
+ },
537
+ {
538
+ "displayName": "Custom Attributes",
539
+ "name": "custom_attributes",
540
+ "type": "json",
541
+ "default": "{}",
542
+ "description": "An object where you can store custom attributes for contact. example {\"type\":\"customer\", \"age\":30}, this should have a valid custom attribute definition.",
543
+ "routing": {
544
+ "send": {
545
+ "property": "custom_attributes",
546
+ "propertyInDotNotation": false,
547
+ "type": "body",
548
+ "value": "={{ JSON.parse($value) }}"
549
+ }
550
+ },
551
+ "displayOptions": {
552
+ "show": {
553
+ "resource": [
554
+ "Contacts"
555
+ ],
556
+ "operation": [
557
+ "Contact Create"
558
+ ]
559
+ }
560
+ }
561
+ },
562
+ {
563
+ "displayName": "GET /api/v1/accounts/{account_id}/contacts/{id}",
564
+ "name": "operation",
565
+ "type": "notice",
566
+ "typeOptions": {
567
+ "theme": "info"
568
+ },
569
+ "default": "",
570
+ "displayOptions": {
571
+ "show": {
572
+ "resource": [
573
+ "Contacts"
574
+ ],
575
+ "operation": [
576
+ "Contact Details"
577
+ ]
578
+ }
579
+ }
580
+ },
581
+ {
582
+ "displayName": "PUT /api/v1/accounts/{account_id}/contacts/{id}",
583
+ "name": "operation",
584
+ "type": "notice",
585
+ "typeOptions": {
586
+ "theme": "info"
587
+ },
588
+ "default": "",
589
+ "displayOptions": {
590
+ "show": {
591
+ "resource": [
592
+ "Contacts"
593
+ ],
594
+ "operation": [
595
+ "Contact Update"
596
+ ]
597
+ }
598
+ }
599
+ },
600
+ {
601
+ "displayName": "Name",
602
+ "name": "name",
603
+ "type": "string",
604
+ "default": "Alice",
605
+ "description": "name of the contact",
606
+ "routing": {
607
+ "send": {
608
+ "property": "name",
609
+ "propertyInDotNotation": false,
610
+ "type": "body",
611
+ "value": "={{ $value }}"
612
+ }
613
+ },
614
+ "displayOptions": {
615
+ "show": {
616
+ "resource": [
617
+ "Contacts"
618
+ ],
619
+ "operation": [
620
+ "Contact Update"
621
+ ]
622
+ }
623
+ }
624
+ },
625
+ {
626
+ "displayName": "Email",
627
+ "name": "email",
628
+ "type": "string",
629
+ "default": "alice@acme.inc",
630
+ "description": "email of the contact",
631
+ "routing": {
632
+ "send": {
633
+ "property": "email",
634
+ "propertyInDotNotation": false,
635
+ "type": "body",
636
+ "value": "={{ $value }}"
637
+ }
638
+ },
639
+ "displayOptions": {
640
+ "show": {
641
+ "resource": [
642
+ "Contacts"
643
+ ],
644
+ "operation": [
645
+ "Contact Update"
646
+ ]
647
+ }
648
+ }
649
+ },
650
+ {
651
+ "displayName": "Blocked",
652
+ "name": "blocked",
653
+ "type": "boolean",
654
+ "default": false,
655
+ "description": "whether the contact is blocked or not",
656
+ "routing": {
657
+ "send": {
658
+ "property": "blocked",
659
+ "propertyInDotNotation": false,
660
+ "type": "body",
661
+ "value": "={{ $value }}"
662
+ }
663
+ },
664
+ "displayOptions": {
665
+ "show": {
666
+ "resource": [
667
+ "Contacts"
668
+ ],
669
+ "operation": [
670
+ "Contact Update"
671
+ ]
672
+ }
673
+ }
674
+ },
675
+ {
676
+ "displayName": "Phone Number",
677
+ "name": "phone_number",
678
+ "type": "string",
679
+ "default": "+123456789",
680
+ "description": "phone number of the contact",
681
+ "routing": {
682
+ "send": {
683
+ "property": "phone_number",
684
+ "propertyInDotNotation": false,
685
+ "type": "body",
686
+ "value": "={{ $value }}"
687
+ }
688
+ },
689
+ "displayOptions": {
690
+ "show": {
691
+ "resource": [
692
+ "Contacts"
693
+ ],
694
+ "operation": [
695
+ "Contact Update"
696
+ ]
697
+ }
698
+ }
699
+ },
700
+ {
701
+ "displayName": "Avatar",
702
+ "name": "avatar",
703
+ "type": "string",
704
+ "default": "",
705
+ "description": "Send the form data with the avatar image binary or use the avatar_url",
706
+ "routing": {
707
+ "send": {
708
+ "property": "avatar",
709
+ "propertyInDotNotation": false,
710
+ "type": "body",
711
+ "value": "={{ $value }}"
712
+ }
713
+ },
714
+ "displayOptions": {
715
+ "show": {
716
+ "resource": [
717
+ "Contacts"
718
+ ],
719
+ "operation": [
720
+ "Contact Update"
721
+ ]
722
+ }
723
+ }
724
+ },
725
+ {
726
+ "displayName": "Avatar Url",
727
+ "name": "avatar_url",
728
+ "type": "string",
729
+ "default": "https://example.com/avatar.png",
730
+ "description": "The url to a jpeg, png file for the contact avatar",
731
+ "routing": {
732
+ "send": {
733
+ "property": "avatar_url",
734
+ "propertyInDotNotation": false,
735
+ "type": "body",
736
+ "value": "={{ $value }}"
737
+ }
738
+ },
739
+ "displayOptions": {
740
+ "show": {
741
+ "resource": [
742
+ "Contacts"
743
+ ],
744
+ "operation": [
745
+ "Contact Update"
746
+ ]
747
+ }
748
+ }
749
+ },
750
+ {
751
+ "displayName": "Identifier",
752
+ "name": "identifier",
753
+ "type": "string",
754
+ "default": "1234567890",
755
+ "description": "A unique identifier for the contact in external system",
756
+ "routing": {
757
+ "send": {
758
+ "property": "identifier",
759
+ "propertyInDotNotation": false,
760
+ "type": "body",
761
+ "value": "={{ $value }}"
762
+ }
763
+ },
764
+ "displayOptions": {
765
+ "show": {
766
+ "resource": [
767
+ "Contacts"
768
+ ],
769
+ "operation": [
770
+ "Contact Update"
771
+ ]
772
+ }
773
+ }
774
+ },
775
+ {
776
+ "displayName": "Additional Attributes",
777
+ "name": "additional_attributes",
778
+ "type": "json",
779
+ "default": "{\n \"type\": \"customer\",\n \"age\": 30\n}",
780
+ "description": "An object where you can store additional attributes for contact. example {\"type\":\"customer\", \"age\":30}",
781
+ "routing": {
782
+ "send": {
783
+ "property": "additional_attributes",
784
+ "propertyInDotNotation": false,
785
+ "type": "body",
786
+ "value": "={{ JSON.parse($value) }}"
787
+ }
788
+ },
789
+ "displayOptions": {
790
+ "show": {
791
+ "resource": [
792
+ "Contacts"
793
+ ],
794
+ "operation": [
795
+ "Contact Update"
796
+ ]
797
+ }
798
+ }
799
+ },
800
+ {
801
+ "displayName": "Custom Attributes",
802
+ "name": "custom_attributes",
803
+ "type": "json",
804
+ "default": "{}",
805
+ "description": "An object where you can store custom attributes for contact. example {\"type\":\"customer\", \"age\":30}, this should have a valid custom attribute definition.",
806
+ "routing": {
807
+ "send": {
808
+ "property": "custom_attributes",
809
+ "propertyInDotNotation": false,
810
+ "type": "body",
811
+ "value": "={{ JSON.parse($value) }}"
812
+ }
813
+ },
814
+ "displayOptions": {
815
+ "show": {
816
+ "resource": [
817
+ "Contacts"
818
+ ],
819
+ "operation": [
820
+ "Contact Update"
821
+ ]
822
+ }
823
+ }
824
+ },
825
+ {
826
+ "displayName": "DELETE /api/v1/accounts/{account_id}/contacts/{id}",
827
+ "name": "operation",
828
+ "type": "notice",
829
+ "typeOptions": {
830
+ "theme": "info"
831
+ },
832
+ "default": "",
833
+ "displayOptions": {
834
+ "show": {
835
+ "resource": [
836
+ "Contacts"
837
+ ],
838
+ "operation": [
839
+ "Contact Delete"
840
+ ]
841
+ }
842
+ }
843
+ },
844
+ {
845
+ "displayName": "GET /api/v1/accounts/{account_id}/contacts/{id}/conversations",
846
+ "name": "operation",
847
+ "type": "notice",
848
+ "typeOptions": {
849
+ "theme": "info"
850
+ },
851
+ "default": "",
852
+ "displayOptions": {
853
+ "show": {
854
+ "resource": [
855
+ "Contacts"
856
+ ],
857
+ "operation": [
858
+ "Contact Conversations"
859
+ ]
860
+ }
861
+ }
862
+ },
863
+ {
864
+ "displayName": "Id",
865
+ "name": "id",
866
+ "required": true,
867
+ "description": "ID of the contact",
868
+ "default": 0,
869
+ "type": "number",
870
+ "displayOptions": {
871
+ "show": {
872
+ "resource": [
873
+ "Contacts"
874
+ ],
875
+ "operation": [
876
+ "Contact Conversations"
877
+ ]
878
+ }
879
+ }
880
+ },
881
+ {
882
+ "displayName": "GET /api/v1/accounts/{account_id}/contacts/search",
883
+ "name": "operation",
884
+ "type": "notice",
885
+ "typeOptions": {
886
+ "theme": "info"
887
+ },
888
+ "default": "",
889
+ "displayOptions": {
890
+ "show": {
891
+ "resource": [
892
+ "Contacts"
893
+ ],
894
+ "operation": [
895
+ "Contact Search"
896
+ ]
897
+ }
898
+ }
899
+ },
900
+ {
901
+ "displayName": "Account Id",
902
+ "name": "account_id",
903
+ "required": true,
904
+ "description": "The numeric ID of the account",
905
+ "default": 0,
906
+ "type": "number",
907
+ "displayOptions": {
908
+ "show": {
909
+ "resource": [
910
+ "Contacts"
911
+ ],
912
+ "operation": [
913
+ "Contact Search"
914
+ ]
915
+ }
916
+ }
917
+ },
918
+ {
919
+ "displayName": "Q",
920
+ "name": "q",
921
+ "description": "Search using contact `name`, `identifier`, `email` or `phone number`",
922
+ "default": "",
923
+ "type": "string",
924
+ "routing": {
925
+ "send": {
926
+ "type": "query",
927
+ "property": "q",
928
+ "value": "={{ $value }}",
929
+ "propertyInDotNotation": false
930
+ }
931
+ },
932
+ "displayOptions": {
933
+ "show": {
934
+ "resource": [
935
+ "Contacts"
936
+ ],
937
+ "operation": [
938
+ "Contact Search"
939
+ ]
940
+ }
941
+ }
942
+ },
943
+ {
944
+ "displayName": "Sort",
945
+ "name": "sort",
946
+ "description": "The attribute by which list should be sorted",
947
+ "default": "name",
948
+ "type": "options",
949
+ "options": [
950
+ {
951
+ "name": "Name",
952
+ "value": "name"
953
+ },
954
+ {
955
+ "name": "Email",
956
+ "value": "email"
957
+ },
958
+ {
959
+ "name": "Phone Number",
960
+ "value": "phone_number"
961
+ },
962
+ {
963
+ "name": "Last Activity At",
964
+ "value": "last_activity_at"
965
+ },
966
+ {
967
+ "name": "Name",
968
+ "value": "-name"
969
+ },
970
+ {
971
+ "name": "Email",
972
+ "value": "-email"
973
+ },
974
+ {
975
+ "name": "Phone Number",
976
+ "value": "-phone_number"
977
+ },
978
+ {
979
+ "name": "Last Activity At",
980
+ "value": "-last_activity_at"
981
+ }
982
+ ],
983
+ "routing": {
984
+ "send": {
985
+ "type": "query",
986
+ "property": "sort",
987
+ "value": "={{ $value }}",
988
+ "propertyInDotNotation": false
989
+ }
990
+ },
991
+ "displayOptions": {
992
+ "show": {
993
+ "resource": [
994
+ "Contacts"
995
+ ],
996
+ "operation": [
997
+ "Contact Search"
998
+ ]
999
+ }
1000
+ }
1001
+ },
1002
+ {
1003
+ "displayName": "Page",
1004
+ "name": "page",
1005
+ "description": "The page parameter",
1006
+ "default": 1,
1007
+ "type": "number",
1008
+ "routing": {
1009
+ "send": {
1010
+ "type": "query",
1011
+ "property": "page",
1012
+ "value": "={{ $value }}",
1013
+ "propertyInDotNotation": false
1014
+ }
1015
+ },
1016
+ "displayOptions": {
1017
+ "show": {
1018
+ "resource": [
1019
+ "Contacts"
1020
+ ],
1021
+ "operation": [
1022
+ "Contact Search"
1023
+ ]
1024
+ }
1025
+ }
1026
+ },
1027
+ {
1028
+ "displayName": "POST /api/v1/accounts/{account_id}/contacts/filter",
1029
+ "name": "operation",
1030
+ "type": "notice",
1031
+ "typeOptions": {
1032
+ "theme": "info"
1033
+ },
1034
+ "default": "",
1035
+ "displayOptions": {
1036
+ "show": {
1037
+ "resource": [
1038
+ "Contacts"
1039
+ ],
1040
+ "operation": [
1041
+ "Contact Filter"
1042
+ ]
1043
+ }
1044
+ }
1045
+ },
1046
+ {
1047
+ "displayName": "Account Id",
1048
+ "name": "account_id",
1049
+ "required": true,
1050
+ "description": "The numeric ID of the account",
1051
+ "default": 0,
1052
+ "type": "number",
1053
+ "displayOptions": {
1054
+ "show": {
1055
+ "resource": [
1056
+ "Contacts"
1057
+ ],
1058
+ "operation": [
1059
+ "Contact Filter"
1060
+ ]
1061
+ }
1062
+ }
1063
+ },
1064
+ {
1065
+ "displayName": "Page",
1066
+ "name": "page",
1067
+ "default": 0,
1068
+ "type": "number",
1069
+ "routing": {
1070
+ "send": {
1071
+ "type": "query",
1072
+ "property": "page",
1073
+ "value": "={{ $value }}",
1074
+ "propertyInDotNotation": false
1075
+ }
1076
+ },
1077
+ "displayOptions": {
1078
+ "show": {
1079
+ "resource": [
1080
+ "Contacts"
1081
+ ],
1082
+ "operation": [
1083
+ "Contact Filter"
1084
+ ]
1085
+ }
1086
+ }
1087
+ },
1088
+ {
1089
+ "displayName": "Payload",
1090
+ "name": "payload",
1091
+ "type": "json",
1092
+ "default": "[\n {\n \"attribute_key\": \"name\",\n \"filter_operator\": \"equal_to\",\n \"values\": [\n \"en\"\n ],\n \"query_operator\": \"AND\"\n },\n {\n \"attribute_key\": \"country_code\",\n \"filter_operator\": \"equal_to\",\n \"values\": [\n \"us\"\n ],\n \"query_operator\": null\n }\n]",
1093
+ "routing": {
1094
+ "send": {
1095
+ "property": "payload",
1096
+ "propertyInDotNotation": false,
1097
+ "type": "body",
1098
+ "value": "={{ JSON.parse($value) }}"
1099
+ }
1100
+ },
1101
+ "displayOptions": {
1102
+ "show": {
1103
+ "resource": [
1104
+ "Contacts"
1105
+ ],
1106
+ "operation": [
1107
+ "Contact Filter"
1108
+ ]
1109
+ }
1110
+ }
1111
+ },
1112
+ {
1113
+ "displayName": "POST /api/v1/accounts/{account_id}/contacts/{id}/contact_inboxes",
1114
+ "name": "operation",
1115
+ "type": "notice",
1116
+ "typeOptions": {
1117
+ "theme": "info"
1118
+ },
1119
+ "default": "",
1120
+ "displayOptions": {
1121
+ "show": {
1122
+ "resource": [
1123
+ "Contacts"
1124
+ ],
1125
+ "operation": [
1126
+ "Contact Inbox Creation"
1127
+ ]
1128
+ }
1129
+ }
1130
+ },
1131
+ {
1132
+ "displayName": "Account Id",
1133
+ "name": "account_id",
1134
+ "required": true,
1135
+ "description": "The numeric ID of the account",
1136
+ "default": 0,
1137
+ "type": "number",
1138
+ "displayOptions": {
1139
+ "show": {
1140
+ "resource": [
1141
+ "Contacts"
1142
+ ],
1143
+ "operation": [
1144
+ "Contact Inbox Creation"
1145
+ ]
1146
+ }
1147
+ }
1148
+ },
1149
+ {
1150
+ "displayName": "Id",
1151
+ "name": "id",
1152
+ "required": true,
1153
+ "description": "ID of the contact",
1154
+ "default": 0,
1155
+ "type": "number",
1156
+ "displayOptions": {
1157
+ "show": {
1158
+ "resource": [
1159
+ "Contacts"
1160
+ ],
1161
+ "operation": [
1162
+ "Contact Inbox Creation"
1163
+ ]
1164
+ }
1165
+ }
1166
+ },
1167
+ {
1168
+ "required": true,
1169
+ "displayName": "Inbox Id",
1170
+ "name": "inbox_id",
1171
+ "type": "number",
1172
+ "default": 1,
1173
+ "description": "The ID of the inbox",
1174
+ "routing": {
1175
+ "send": {
1176
+ "property": "inbox_id",
1177
+ "propertyInDotNotation": false,
1178
+ "type": "body",
1179
+ "value": "={{ $value }}"
1180
+ }
1181
+ },
1182
+ "displayOptions": {
1183
+ "show": {
1184
+ "resource": [
1185
+ "Contacts"
1186
+ ],
1187
+ "operation": [
1188
+ "Contact Inbox Creation"
1189
+ ]
1190
+ }
1191
+ }
1192
+ },
1193
+ {
1194
+ "displayName": "Source Id",
1195
+ "name": "source_id",
1196
+ "type": "string",
1197
+ "default": "",
1198
+ "description": "Contact Inbox Source Id",
1199
+ "routing": {
1200
+ "send": {
1201
+ "property": "source_id",
1202
+ "propertyInDotNotation": false,
1203
+ "type": "body",
1204
+ "value": "={{ $value }}"
1205
+ }
1206
+ },
1207
+ "displayOptions": {
1208
+ "show": {
1209
+ "resource": [
1210
+ "Contacts"
1211
+ ],
1212
+ "operation": [
1213
+ "Contact Inbox Creation"
1214
+ ]
1215
+ }
1216
+ }
1217
+ },
1218
+ {
1219
+ "displayName": "GET /api/v1/accounts/{account_id}/contacts/{id}/contactable_inboxes",
1220
+ "name": "operation",
1221
+ "type": "notice",
1222
+ "typeOptions": {
1223
+ "theme": "info"
1224
+ },
1225
+ "default": "",
1226
+ "displayOptions": {
1227
+ "show": {
1228
+ "resource": [
1229
+ "Contacts"
1230
+ ],
1231
+ "operation": [
1232
+ "Contactable Inboxes Get"
1233
+ ]
1234
+ }
1235
+ }
1236
+ },
1237
+ {
1238
+ "displayName": "Account Id",
1239
+ "name": "account_id",
1240
+ "required": true,
1241
+ "description": "The numeric ID of the account",
1242
+ "default": 0,
1243
+ "type": "number",
1244
+ "displayOptions": {
1245
+ "show": {
1246
+ "resource": [
1247
+ "Contacts"
1248
+ ],
1249
+ "operation": [
1250
+ "Contactable Inboxes Get"
1251
+ ]
1252
+ }
1253
+ }
1254
+ },
1255
+ {
1256
+ "displayName": "Id",
1257
+ "name": "id",
1258
+ "required": true,
1259
+ "description": "ID of the contact",
1260
+ "default": 0,
1261
+ "type": "number",
1262
+ "displayOptions": {
1263
+ "show": {
1264
+ "resource": [
1265
+ "Contacts"
1266
+ ],
1267
+ "operation": [
1268
+ "Contactable Inboxes Get"
1269
+ ]
1270
+ }
1271
+ }
1272
+ },
1273
+ {
1274
+ "displayName": "POST /api/v1/accounts/{account_id}/actions/contact_merge",
1275
+ "name": "operation",
1276
+ "type": "notice",
1277
+ "typeOptions": {
1278
+ "theme": "info"
1279
+ },
1280
+ "default": "",
1281
+ "displayOptions": {
1282
+ "show": {
1283
+ "resource": [
1284
+ "Contacts"
1285
+ ],
1286
+ "operation": [
1287
+ "Contact Merge"
1288
+ ]
1289
+ }
1290
+ }
1291
+ },
1292
+ {
1293
+ "required": true,
1294
+ "displayName": "Base Contact Id",
1295
+ "name": "base_contact_id",
1296
+ "type": "number",
1297
+ "default": 1,
1298
+ "description": "ID of the contact that will remain after the merge and receive all data",
1299
+ "routing": {
1300
+ "send": {
1301
+ "property": "base_contact_id",
1302
+ "propertyInDotNotation": false,
1303
+ "type": "body",
1304
+ "value": "={{ $value }}"
1305
+ }
1306
+ },
1307
+ "displayOptions": {
1308
+ "show": {
1309
+ "resource": [
1310
+ "Contacts"
1311
+ ],
1312
+ "operation": [
1313
+ "Contact Merge"
1314
+ ]
1315
+ }
1316
+ }
1317
+ },
1318
+ {
1319
+ "required": true,
1320
+ "displayName": "Mergee Contact Id",
1321
+ "name": "mergee_contact_id",
1322
+ "type": "number",
1323
+ "default": 2,
1324
+ "description": "ID of the contact that will be merged into the base contact and deleted",
1325
+ "routing": {
1326
+ "send": {
1327
+ "property": "mergee_contact_id",
1328
+ "propertyInDotNotation": false,
1329
+ "type": "body",
1330
+ "value": "={{ $value }}"
1331
+ }
1332
+ },
1333
+ "displayOptions": {
1334
+ "show": {
1335
+ "resource": [
1336
+ "Contacts"
1337
+ ],
1338
+ "operation": [
1339
+ "Contact Merge"
1340
+ ]
1341
+ }
1342
+ }
1343
+ },
1344
+ ];
1345
+ //# sourceMappingURL=index.js.map