@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,703 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.customAttributesDescription = void 0;
4
+ exports.customAttributesDescription = [
5
+ {
6
+ "displayName": "Operation",
7
+ "name": "operation",
8
+ "type": "options",
9
+ "noDataExpression": true,
10
+ "displayOptions": {
11
+ "show": {
12
+ "resource": [
13
+ "Custom Attributes"
14
+ ]
15
+ }
16
+ },
17
+ "options": [
18
+ {
19
+ "name": "Get Account Custom Attribute",
20
+ "value": "Get Account Custom Attribute",
21
+ "action": "List all custom attributes in an account",
22
+ "description": "Get details of custom attributes in an Account",
23
+ "routing": {
24
+ "request": {
25
+ "method": "GET",
26
+ "url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/custom_attribute_definitions"
27
+ }
28
+ }
29
+ },
30
+ {
31
+ "name": "Add New Custom Attribute To Account",
32
+ "value": "Add New Custom Attribute To Account",
33
+ "action": "Add a new custom attribute",
34
+ "description": "Add a new custom attribute to account",
35
+ "routing": {
36
+ "request": {
37
+ "method": "POST",
38
+ "url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/custom_attribute_definitions"
39
+ }
40
+ }
41
+ },
42
+ {
43
+ "name": "Get Details Of A Single Custom Attribute",
44
+ "value": "Get Details Of A Single Custom Attribute",
45
+ "action": "Get a custom attribute details",
46
+ "description": "Get the details of a custom attribute in the account",
47
+ "routing": {
48
+ "request": {
49
+ "method": "GET",
50
+ "url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/custom_attribute_definitions/{{$parameter[\"id\"]}}"
51
+ }
52
+ }
53
+ },
54
+ {
55
+ "name": "Update Custom Attribute In Account",
56
+ "value": "Update Custom Attribute In Account",
57
+ "action": "Update custom attribute in Account",
58
+ "description": "Update a custom attribute in account",
59
+ "routing": {
60
+ "request": {
61
+ "method": "PATCH",
62
+ "url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/custom_attribute_definitions/{{$parameter[\"id\"]}}"
63
+ }
64
+ }
65
+ },
66
+ {
67
+ "name": "Delete Custom Attribute From Account",
68
+ "value": "Delete Custom Attribute From Account",
69
+ "action": "Remove a custom attribute from account",
70
+ "description": "Remove a custom attribute from account",
71
+ "routing": {
72
+ "request": {
73
+ "method": "DELETE",
74
+ "url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/custom_attribute_definitions/{{$parameter[\"id\"]}}"
75
+ }
76
+ }
77
+ }
78
+ ],
79
+ "default": ""
80
+ },
81
+ {
82
+ "displayName": "GET /api/v1/accounts/{account_id}/custom_attribute_definitions",
83
+ "name": "operation",
84
+ "type": "notice",
85
+ "typeOptions": {
86
+ "theme": "info"
87
+ },
88
+ "default": "",
89
+ "displayOptions": {
90
+ "show": {
91
+ "resource": [
92
+ "Custom Attributes"
93
+ ],
94
+ "operation": [
95
+ "Get Account Custom Attribute"
96
+ ]
97
+ }
98
+ }
99
+ },
100
+ {
101
+ "displayName": "Attribute Model",
102
+ "name": "attribute_model",
103
+ "required": true,
104
+ "description": "conversation_attribute(0)/contact_attribute(1)",
105
+ "default": "0",
106
+ "type": "options",
107
+ "options": [
108
+ {
109
+ "name": "0",
110
+ "value": "0"
111
+ },
112
+ {
113
+ "name": "1",
114
+ "value": "1"
115
+ }
116
+ ],
117
+ "routing": {
118
+ "send": {
119
+ "type": "query",
120
+ "property": "attribute_model",
121
+ "value": "={{ $value }}",
122
+ "propertyInDotNotation": false
123
+ }
124
+ },
125
+ "displayOptions": {
126
+ "show": {
127
+ "resource": [
128
+ "Custom Attributes"
129
+ ],
130
+ "operation": [
131
+ "Get Account Custom Attribute"
132
+ ]
133
+ }
134
+ }
135
+ },
136
+ {
137
+ "displayName": "POST /api/v1/accounts/{account_id}/custom_attribute_definitions",
138
+ "name": "operation",
139
+ "type": "notice",
140
+ "typeOptions": {
141
+ "theme": "info"
142
+ },
143
+ "default": "",
144
+ "displayOptions": {
145
+ "show": {
146
+ "resource": [
147
+ "Custom Attributes"
148
+ ],
149
+ "operation": [
150
+ "Add New Custom Attribute To Account"
151
+ ]
152
+ }
153
+ }
154
+ },
155
+ {
156
+ "displayName": "Attribute Display Name",
157
+ "name": "attribute_display_name",
158
+ "type": "string",
159
+ "default": "Custom Attribute",
160
+ "description": "Attribute display name",
161
+ "routing": {
162
+ "send": {
163
+ "property": "attribute_display_name",
164
+ "propertyInDotNotation": false,
165
+ "type": "body",
166
+ "value": "={{ $value }}"
167
+ }
168
+ },
169
+ "displayOptions": {
170
+ "show": {
171
+ "resource": [
172
+ "Custom Attributes"
173
+ ],
174
+ "operation": [
175
+ "Add New Custom Attribute To Account"
176
+ ]
177
+ }
178
+ }
179
+ },
180
+ {
181
+ "displayName": "Attribute Display Type",
182
+ "name": "attribute_display_type",
183
+ "type": "number",
184
+ "default": 0,
185
+ "description": "Attribute display type (text- 0, number- 1, currency- 2, percent- 3, link- 4, date- 5, list- 6, checkbox- 7)",
186
+ "routing": {
187
+ "send": {
188
+ "property": "attribute_display_type",
189
+ "propertyInDotNotation": false,
190
+ "type": "body",
191
+ "value": "={{ $value }}"
192
+ }
193
+ },
194
+ "displayOptions": {
195
+ "show": {
196
+ "resource": [
197
+ "Custom Attributes"
198
+ ],
199
+ "operation": [
200
+ "Add New Custom Attribute To Account"
201
+ ]
202
+ }
203
+ }
204
+ },
205
+ {
206
+ "displayName": "Attribute Description",
207
+ "name": "attribute_description",
208
+ "type": "string",
209
+ "default": "This is a custom attribute",
210
+ "description": "Attribute description",
211
+ "routing": {
212
+ "send": {
213
+ "property": "attribute_description",
214
+ "propertyInDotNotation": false,
215
+ "type": "body",
216
+ "value": "={{ $value }}"
217
+ }
218
+ },
219
+ "displayOptions": {
220
+ "show": {
221
+ "resource": [
222
+ "Custom Attributes"
223
+ ],
224
+ "operation": [
225
+ "Add New Custom Attribute To Account"
226
+ ]
227
+ }
228
+ }
229
+ },
230
+ {
231
+ "displayName": "Attribute Key",
232
+ "name": "attribute_key",
233
+ "type": "string",
234
+ "default": "custom_attribute",
235
+ "description": "Attribute unique key value",
236
+ "routing": {
237
+ "send": {
238
+ "property": "attribute_key",
239
+ "propertyInDotNotation": false,
240
+ "type": "body",
241
+ "value": "={{ $value }}"
242
+ }
243
+ },
244
+ "displayOptions": {
245
+ "show": {
246
+ "resource": [
247
+ "Custom Attributes"
248
+ ],
249
+ "operation": [
250
+ "Add New Custom Attribute To Account"
251
+ ]
252
+ }
253
+ }
254
+ },
255
+ {
256
+ "displayName": "Attribute Values",
257
+ "name": "attribute_values",
258
+ "type": "json",
259
+ "default": "[\n \"value1\",\n \"value2\"\n]",
260
+ "description": "Attribute values",
261
+ "routing": {
262
+ "send": {
263
+ "property": "attribute_values",
264
+ "propertyInDotNotation": false,
265
+ "type": "body",
266
+ "value": "={{ JSON.parse($value) }}"
267
+ }
268
+ },
269
+ "displayOptions": {
270
+ "show": {
271
+ "resource": [
272
+ "Custom Attributes"
273
+ ],
274
+ "operation": [
275
+ "Add New Custom Attribute To Account"
276
+ ]
277
+ }
278
+ }
279
+ },
280
+ {
281
+ "displayName": "Attribute Model",
282
+ "name": "attribute_model",
283
+ "type": "number",
284
+ "default": 0,
285
+ "description": "Attribute type(conversation_attribute- 0, contact_attribute- 1)",
286
+ "routing": {
287
+ "send": {
288
+ "property": "attribute_model",
289
+ "propertyInDotNotation": false,
290
+ "type": "body",
291
+ "value": "={{ $value }}"
292
+ }
293
+ },
294
+ "displayOptions": {
295
+ "show": {
296
+ "resource": [
297
+ "Custom Attributes"
298
+ ],
299
+ "operation": [
300
+ "Add New Custom Attribute To Account"
301
+ ]
302
+ }
303
+ }
304
+ },
305
+ {
306
+ "displayName": "Regex Pattern",
307
+ "name": "regex_pattern",
308
+ "type": "string",
309
+ "default": "^[a-zA-Z0-9]+$",
310
+ "description": "Regex pattern (Only applicable for type- text). The regex pattern is used to validate the attribute value(s).",
311
+ "routing": {
312
+ "send": {
313
+ "property": "regex_pattern",
314
+ "propertyInDotNotation": false,
315
+ "type": "body",
316
+ "value": "={{ $value }}"
317
+ }
318
+ },
319
+ "displayOptions": {
320
+ "show": {
321
+ "resource": [
322
+ "Custom Attributes"
323
+ ],
324
+ "operation": [
325
+ "Add New Custom Attribute To Account"
326
+ ]
327
+ }
328
+ }
329
+ },
330
+ {
331
+ "displayName": "Regex Cue",
332
+ "name": "regex_cue",
333
+ "type": "string",
334
+ "default": "Please enter a valid value",
335
+ "description": "Regex cue message (Only applicable for type- text). The cue message is shown when the regex pattern is not matched.",
336
+ "routing": {
337
+ "send": {
338
+ "property": "regex_cue",
339
+ "propertyInDotNotation": false,
340
+ "type": "body",
341
+ "value": "={{ $value }}"
342
+ }
343
+ },
344
+ "displayOptions": {
345
+ "show": {
346
+ "resource": [
347
+ "Custom Attributes"
348
+ ],
349
+ "operation": [
350
+ "Add New Custom Attribute To Account"
351
+ ]
352
+ }
353
+ }
354
+ },
355
+ {
356
+ "displayName": "GET /api/v1/accounts/{account_id}/custom_attribute_definitions/{id}",
357
+ "name": "operation",
358
+ "type": "notice",
359
+ "typeOptions": {
360
+ "theme": "info"
361
+ },
362
+ "default": "",
363
+ "displayOptions": {
364
+ "show": {
365
+ "resource": [
366
+ "Custom Attributes"
367
+ ],
368
+ "operation": [
369
+ "Get Details Of A Single Custom Attribute"
370
+ ]
371
+ }
372
+ }
373
+ },
374
+ {
375
+ "displayName": "Account Id",
376
+ "name": "account_id",
377
+ "required": true,
378
+ "description": "The numeric ID of the account",
379
+ "default": 0,
380
+ "type": "number",
381
+ "displayOptions": {
382
+ "show": {
383
+ "resource": [
384
+ "Custom Attributes"
385
+ ],
386
+ "operation": [
387
+ "Get Details Of A Single Custom Attribute"
388
+ ]
389
+ }
390
+ }
391
+ },
392
+ {
393
+ "displayName": "Id",
394
+ "name": "id",
395
+ "required": true,
396
+ "description": "The ID of the custom attribute to be updated.",
397
+ "default": 0,
398
+ "type": "number",
399
+ "displayOptions": {
400
+ "show": {
401
+ "resource": [
402
+ "Custom Attributes"
403
+ ],
404
+ "operation": [
405
+ "Get Details Of A Single Custom Attribute"
406
+ ]
407
+ }
408
+ }
409
+ },
410
+ {
411
+ "displayName": "PATCH /api/v1/accounts/{account_id}/custom_attribute_definitions/{id}",
412
+ "name": "operation",
413
+ "type": "notice",
414
+ "typeOptions": {
415
+ "theme": "info"
416
+ },
417
+ "default": "",
418
+ "displayOptions": {
419
+ "show": {
420
+ "resource": [
421
+ "Custom Attributes"
422
+ ],
423
+ "operation": [
424
+ "Update Custom Attribute In Account"
425
+ ]
426
+ }
427
+ }
428
+ },
429
+ {
430
+ "displayName": "Id",
431
+ "name": "id",
432
+ "required": true,
433
+ "description": "The ID of the custom attribute to be updated.",
434
+ "default": 0,
435
+ "type": "number",
436
+ "displayOptions": {
437
+ "show": {
438
+ "resource": [
439
+ "Custom Attributes"
440
+ ],
441
+ "operation": [
442
+ "Update Custom Attribute In Account"
443
+ ]
444
+ }
445
+ }
446
+ },
447
+ {
448
+ "displayName": "Attribute Display Name",
449
+ "name": "attribute_display_name",
450
+ "type": "string",
451
+ "default": "Custom Attribute",
452
+ "description": "Attribute display name",
453
+ "routing": {
454
+ "send": {
455
+ "property": "attribute_display_name",
456
+ "propertyInDotNotation": false,
457
+ "type": "body",
458
+ "value": "={{ $value }}"
459
+ }
460
+ },
461
+ "displayOptions": {
462
+ "show": {
463
+ "resource": [
464
+ "Custom Attributes"
465
+ ],
466
+ "operation": [
467
+ "Update Custom Attribute In Account"
468
+ ]
469
+ }
470
+ }
471
+ },
472
+ {
473
+ "displayName": "Attribute Display Type",
474
+ "name": "attribute_display_type",
475
+ "type": "number",
476
+ "default": 0,
477
+ "description": "Attribute display type (text- 0, number- 1, currency- 2, percent- 3, link- 4, date- 5, list- 6, checkbox- 7)",
478
+ "routing": {
479
+ "send": {
480
+ "property": "attribute_display_type",
481
+ "propertyInDotNotation": false,
482
+ "type": "body",
483
+ "value": "={{ $value }}"
484
+ }
485
+ },
486
+ "displayOptions": {
487
+ "show": {
488
+ "resource": [
489
+ "Custom Attributes"
490
+ ],
491
+ "operation": [
492
+ "Update Custom Attribute In Account"
493
+ ]
494
+ }
495
+ }
496
+ },
497
+ {
498
+ "displayName": "Attribute Description",
499
+ "name": "attribute_description",
500
+ "type": "string",
501
+ "default": "This is a custom attribute",
502
+ "description": "Attribute description",
503
+ "routing": {
504
+ "send": {
505
+ "property": "attribute_description",
506
+ "propertyInDotNotation": false,
507
+ "type": "body",
508
+ "value": "={{ $value }}"
509
+ }
510
+ },
511
+ "displayOptions": {
512
+ "show": {
513
+ "resource": [
514
+ "Custom Attributes"
515
+ ],
516
+ "operation": [
517
+ "Update Custom Attribute In Account"
518
+ ]
519
+ }
520
+ }
521
+ },
522
+ {
523
+ "displayName": "Attribute Key",
524
+ "name": "attribute_key",
525
+ "type": "string",
526
+ "default": "custom_attribute",
527
+ "description": "Attribute unique key value",
528
+ "routing": {
529
+ "send": {
530
+ "property": "attribute_key",
531
+ "propertyInDotNotation": false,
532
+ "type": "body",
533
+ "value": "={{ $value }}"
534
+ }
535
+ },
536
+ "displayOptions": {
537
+ "show": {
538
+ "resource": [
539
+ "Custom Attributes"
540
+ ],
541
+ "operation": [
542
+ "Update Custom Attribute In Account"
543
+ ]
544
+ }
545
+ }
546
+ },
547
+ {
548
+ "displayName": "Attribute Values",
549
+ "name": "attribute_values",
550
+ "type": "json",
551
+ "default": "[\n \"value1\",\n \"value2\"\n]",
552
+ "description": "Attribute values",
553
+ "routing": {
554
+ "send": {
555
+ "property": "attribute_values",
556
+ "propertyInDotNotation": false,
557
+ "type": "body",
558
+ "value": "={{ JSON.parse($value) }}"
559
+ }
560
+ },
561
+ "displayOptions": {
562
+ "show": {
563
+ "resource": [
564
+ "Custom Attributes"
565
+ ],
566
+ "operation": [
567
+ "Update Custom Attribute In Account"
568
+ ]
569
+ }
570
+ }
571
+ },
572
+ {
573
+ "displayName": "Attribute Model",
574
+ "name": "attribute_model",
575
+ "type": "number",
576
+ "default": 0,
577
+ "description": "Attribute type(conversation_attribute- 0, contact_attribute- 1)",
578
+ "routing": {
579
+ "send": {
580
+ "property": "attribute_model",
581
+ "propertyInDotNotation": false,
582
+ "type": "body",
583
+ "value": "={{ $value }}"
584
+ }
585
+ },
586
+ "displayOptions": {
587
+ "show": {
588
+ "resource": [
589
+ "Custom Attributes"
590
+ ],
591
+ "operation": [
592
+ "Update Custom Attribute In Account"
593
+ ]
594
+ }
595
+ }
596
+ },
597
+ {
598
+ "displayName": "Regex Pattern",
599
+ "name": "regex_pattern",
600
+ "type": "string",
601
+ "default": "^[a-zA-Z0-9]+$",
602
+ "description": "Regex pattern (Only applicable for type- text). The regex pattern is used to validate the attribute value(s).",
603
+ "routing": {
604
+ "send": {
605
+ "property": "regex_pattern",
606
+ "propertyInDotNotation": false,
607
+ "type": "body",
608
+ "value": "={{ $value }}"
609
+ }
610
+ },
611
+ "displayOptions": {
612
+ "show": {
613
+ "resource": [
614
+ "Custom Attributes"
615
+ ],
616
+ "operation": [
617
+ "Update Custom Attribute In Account"
618
+ ]
619
+ }
620
+ }
621
+ },
622
+ {
623
+ "displayName": "Regex Cue",
624
+ "name": "regex_cue",
625
+ "type": "string",
626
+ "default": "Please enter a valid value",
627
+ "description": "Regex cue message (Only applicable for type- text). The cue message is shown when the regex pattern is not matched.",
628
+ "routing": {
629
+ "send": {
630
+ "property": "regex_cue",
631
+ "propertyInDotNotation": false,
632
+ "type": "body",
633
+ "value": "={{ $value }}"
634
+ }
635
+ },
636
+ "displayOptions": {
637
+ "show": {
638
+ "resource": [
639
+ "Custom Attributes"
640
+ ],
641
+ "operation": [
642
+ "Update Custom Attribute In Account"
643
+ ]
644
+ }
645
+ }
646
+ },
647
+ {
648
+ "displayName": "DELETE /api/v1/accounts/{account_id}/custom_attribute_definitions/{id}",
649
+ "name": "operation",
650
+ "type": "notice",
651
+ "typeOptions": {
652
+ "theme": "info"
653
+ },
654
+ "default": "",
655
+ "displayOptions": {
656
+ "show": {
657
+ "resource": [
658
+ "Custom Attributes"
659
+ ],
660
+ "operation": [
661
+ "Delete Custom Attribute From Account"
662
+ ]
663
+ }
664
+ }
665
+ },
666
+ {
667
+ "displayName": "Account Id",
668
+ "name": "account_id",
669
+ "required": true,
670
+ "description": "The numeric ID of the account",
671
+ "default": 0,
672
+ "type": "number",
673
+ "displayOptions": {
674
+ "show": {
675
+ "resource": [
676
+ "Custom Attributes"
677
+ ],
678
+ "operation": [
679
+ "Delete Custom Attribute From Account"
680
+ ]
681
+ }
682
+ }
683
+ },
684
+ {
685
+ "displayName": "Id",
686
+ "name": "id",
687
+ "required": true,
688
+ "description": "The ID of the custom attribute to be deleted",
689
+ "default": 0,
690
+ "type": "number",
691
+ "displayOptions": {
692
+ "show": {
693
+ "resource": [
694
+ "Custom Attributes"
695
+ ],
696
+ "operation": [
697
+ "Delete Custom Attribute From Account"
698
+ ]
699
+ }
700
+ }
701
+ },
702
+ ];
703
+ //# sourceMappingURL=index.js.map