@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,583 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.teamsDescription = void 0;
4
+ exports.teamsDescription = [
5
+ {
6
+ "displayName": "Operation",
7
+ "name": "operation",
8
+ "type": "options",
9
+ "noDataExpression": true,
10
+ "displayOptions": {
11
+ "show": {
12
+ "resource": [
13
+ "Teams"
14
+ ]
15
+ }
16
+ },
17
+ "options": [
18
+ {
19
+ "name": "List All Teams",
20
+ "value": "List All Teams",
21
+ "action": "List all teams",
22
+ "description": "List all teams available in the current account",
23
+ "routing": {
24
+ "request": {
25
+ "method": "GET",
26
+ "url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/teams"
27
+ }
28
+ }
29
+ },
30
+ {
31
+ "name": "Create A Team",
32
+ "value": "Create A Team",
33
+ "action": "Create a team",
34
+ "description": "Create a team in the account",
35
+ "routing": {
36
+ "request": {
37
+ "method": "POST",
38
+ "url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/teams"
39
+ }
40
+ }
41
+ },
42
+ {
43
+ "name": "Get Details Of A Single Team",
44
+ "value": "Get Details Of A Single Team",
45
+ "action": "Get a team details",
46
+ "description": "Get the details of a team in the account",
47
+ "routing": {
48
+ "request": {
49
+ "method": "GET",
50
+ "url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/teams/{{$parameter[\"team_id\"]}}"
51
+ }
52
+ }
53
+ },
54
+ {
55
+ "name": "Update A Team",
56
+ "value": "Update A Team",
57
+ "action": "Update a team",
58
+ "description": "Update a team's attributes",
59
+ "routing": {
60
+ "request": {
61
+ "method": "PATCH",
62
+ "url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/teams/{{$parameter[\"team_id\"]}}"
63
+ }
64
+ }
65
+ },
66
+ {
67
+ "name": "Delete A Team",
68
+ "value": "Delete A Team",
69
+ "action": "Delete a team",
70
+ "description": "Delete a team from the account",
71
+ "routing": {
72
+ "request": {
73
+ "method": "DELETE",
74
+ "url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/teams/{{$parameter[\"team_id\"]}}"
75
+ }
76
+ }
77
+ },
78
+ {
79
+ "name": "Get Team Members",
80
+ "value": "Get Team Members",
81
+ "action": "List Agents in Team",
82
+ "description": "Get Details of Agents in an Team",
83
+ "routing": {
84
+ "request": {
85
+ "method": "GET",
86
+ "url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/teams/{{$parameter[\"team_id\"]}}/team_members"
87
+ }
88
+ }
89
+ },
90
+ {
91
+ "name": "Add New Agent To Team",
92
+ "value": "Add New Agent To Team",
93
+ "action": "Add a New Agent",
94
+ "description": "Add a new Agent to Team",
95
+ "routing": {
96
+ "request": {
97
+ "method": "POST",
98
+ "url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/teams/{{$parameter[\"team_id\"]}}/team_members"
99
+ }
100
+ }
101
+ },
102
+ {
103
+ "name": "Update Agents In Team",
104
+ "value": "Update Agents In Team",
105
+ "action": "Update Agents in Team",
106
+ "description": "All agents except the one passed in params will be removed",
107
+ "routing": {
108
+ "request": {
109
+ "method": "PATCH",
110
+ "url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/teams/{{$parameter[\"team_id\"]}}/team_members"
111
+ }
112
+ }
113
+ },
114
+ {
115
+ "name": "Delete Agent In Team",
116
+ "value": "Delete Agent In Team",
117
+ "action": "Remove an Agent from Team",
118
+ "description": "Remove an Agent from Team",
119
+ "routing": {
120
+ "request": {
121
+ "method": "DELETE",
122
+ "url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/teams/{{$parameter[\"team_id\"]}}/team_members"
123
+ }
124
+ }
125
+ }
126
+ ],
127
+ "default": ""
128
+ },
129
+ {
130
+ "displayName": "GET /api/v1/accounts/{account_id}/teams",
131
+ "name": "operation",
132
+ "type": "notice",
133
+ "typeOptions": {
134
+ "theme": "info"
135
+ },
136
+ "default": "",
137
+ "displayOptions": {
138
+ "show": {
139
+ "resource": [
140
+ "Teams"
141
+ ],
142
+ "operation": [
143
+ "List All Teams"
144
+ ]
145
+ }
146
+ }
147
+ },
148
+ {
149
+ "displayName": "POST /api/v1/accounts/{account_id}/teams",
150
+ "name": "operation",
151
+ "type": "notice",
152
+ "typeOptions": {
153
+ "theme": "info"
154
+ },
155
+ "default": "",
156
+ "displayOptions": {
157
+ "show": {
158
+ "resource": [
159
+ "Teams"
160
+ ],
161
+ "operation": [
162
+ "Create A Team"
163
+ ]
164
+ }
165
+ }
166
+ },
167
+ {
168
+ "displayName": "Account Id",
169
+ "name": "account_id",
170
+ "required": true,
171
+ "description": "The numeric ID of the account",
172
+ "default": 0,
173
+ "type": "number",
174
+ "displayOptions": {
175
+ "show": {
176
+ "resource": [
177
+ "Teams"
178
+ ],
179
+ "operation": [
180
+ "Create A Team"
181
+ ]
182
+ }
183
+ }
184
+ },
185
+ {
186
+ "displayName": "Name",
187
+ "name": "name",
188
+ "type": "string",
189
+ "default": "Support Team",
190
+ "description": "The name of the team",
191
+ "routing": {
192
+ "send": {
193
+ "property": "name",
194
+ "propertyInDotNotation": false,
195
+ "type": "body",
196
+ "value": "={{ $value }}"
197
+ }
198
+ },
199
+ "displayOptions": {
200
+ "show": {
201
+ "resource": [
202
+ "Teams"
203
+ ],
204
+ "operation": [
205
+ "Create A Team"
206
+ ]
207
+ }
208
+ }
209
+ },
210
+ {
211
+ "displayName": "Description",
212
+ "name": "description",
213
+ "type": "string",
214
+ "default": "This is a team of support agents",
215
+ "description": "The description of the team",
216
+ "routing": {
217
+ "send": {
218
+ "property": "description",
219
+ "propertyInDotNotation": false,
220
+ "type": "body",
221
+ "value": "={{ $value }}"
222
+ }
223
+ },
224
+ "displayOptions": {
225
+ "show": {
226
+ "resource": [
227
+ "Teams"
228
+ ],
229
+ "operation": [
230
+ "Create A Team"
231
+ ]
232
+ }
233
+ }
234
+ },
235
+ {
236
+ "displayName": "Allow Auto Assign",
237
+ "name": "allow_auto_assign",
238
+ "type": "boolean",
239
+ "default": true,
240
+ "description": "If this setting is turned on, the system would automatically assign the conversation to an agent in the team while assigning the conversation to a team",
241
+ "routing": {
242
+ "send": {
243
+ "property": "allow_auto_assign",
244
+ "propertyInDotNotation": false,
245
+ "type": "body",
246
+ "value": "={{ $value }}"
247
+ }
248
+ },
249
+ "displayOptions": {
250
+ "show": {
251
+ "resource": [
252
+ "Teams"
253
+ ],
254
+ "operation": [
255
+ "Create A Team"
256
+ ]
257
+ }
258
+ }
259
+ },
260
+ {
261
+ "displayName": "GET /api/v1/accounts/{account_id}/teams/{team_id}",
262
+ "name": "operation",
263
+ "type": "notice",
264
+ "typeOptions": {
265
+ "theme": "info"
266
+ },
267
+ "default": "",
268
+ "displayOptions": {
269
+ "show": {
270
+ "resource": [
271
+ "Teams"
272
+ ],
273
+ "operation": [
274
+ "Get Details Of A Single Team"
275
+ ]
276
+ }
277
+ }
278
+ },
279
+ {
280
+ "displayName": "PATCH /api/v1/accounts/{account_id}/teams/{team_id}",
281
+ "name": "operation",
282
+ "type": "notice",
283
+ "typeOptions": {
284
+ "theme": "info"
285
+ },
286
+ "default": "",
287
+ "displayOptions": {
288
+ "show": {
289
+ "resource": [
290
+ "Teams"
291
+ ],
292
+ "operation": [
293
+ "Update A Team"
294
+ ]
295
+ }
296
+ }
297
+ },
298
+ {
299
+ "displayName": "Name",
300
+ "name": "name",
301
+ "type": "string",
302
+ "default": "Support Team",
303
+ "description": "The name of the team",
304
+ "routing": {
305
+ "send": {
306
+ "property": "name",
307
+ "propertyInDotNotation": false,
308
+ "type": "body",
309
+ "value": "={{ $value }}"
310
+ }
311
+ },
312
+ "displayOptions": {
313
+ "show": {
314
+ "resource": [
315
+ "Teams"
316
+ ],
317
+ "operation": [
318
+ "Update A Team"
319
+ ]
320
+ }
321
+ }
322
+ },
323
+ {
324
+ "displayName": "Description",
325
+ "name": "description",
326
+ "type": "string",
327
+ "default": "This is a team of support agents",
328
+ "description": "The description of the team",
329
+ "routing": {
330
+ "send": {
331
+ "property": "description",
332
+ "propertyInDotNotation": false,
333
+ "type": "body",
334
+ "value": "={{ $value }}"
335
+ }
336
+ },
337
+ "displayOptions": {
338
+ "show": {
339
+ "resource": [
340
+ "Teams"
341
+ ],
342
+ "operation": [
343
+ "Update A Team"
344
+ ]
345
+ }
346
+ }
347
+ },
348
+ {
349
+ "displayName": "Allow Auto Assign",
350
+ "name": "allow_auto_assign",
351
+ "type": "boolean",
352
+ "default": true,
353
+ "description": "If this setting is turned on, the system would automatically assign the conversation to an agent in the team while assigning the conversation to a team",
354
+ "routing": {
355
+ "send": {
356
+ "property": "allow_auto_assign",
357
+ "propertyInDotNotation": false,
358
+ "type": "body",
359
+ "value": "={{ $value }}"
360
+ }
361
+ },
362
+ "displayOptions": {
363
+ "show": {
364
+ "resource": [
365
+ "Teams"
366
+ ],
367
+ "operation": [
368
+ "Update A Team"
369
+ ]
370
+ }
371
+ }
372
+ },
373
+ {
374
+ "displayName": "DELETE /api/v1/accounts/{account_id}/teams/{team_id}",
375
+ "name": "operation",
376
+ "type": "notice",
377
+ "typeOptions": {
378
+ "theme": "info"
379
+ },
380
+ "default": "",
381
+ "displayOptions": {
382
+ "show": {
383
+ "resource": [
384
+ "Teams"
385
+ ],
386
+ "operation": [
387
+ "Delete A Team"
388
+ ]
389
+ }
390
+ }
391
+ },
392
+ {
393
+ "displayName": "GET /api/v1/accounts/{account_id}/teams/{team_id}/team_members",
394
+ "name": "operation",
395
+ "type": "notice",
396
+ "typeOptions": {
397
+ "theme": "info"
398
+ },
399
+ "default": "",
400
+ "displayOptions": {
401
+ "show": {
402
+ "resource": [
403
+ "Teams"
404
+ ],
405
+ "operation": [
406
+ "Get Team Members"
407
+ ]
408
+ }
409
+ }
410
+ },
411
+ {
412
+ "displayName": "Account Id",
413
+ "name": "account_id",
414
+ "required": true,
415
+ "description": "The numeric ID of the account",
416
+ "default": 0,
417
+ "type": "number",
418
+ "displayOptions": {
419
+ "show": {
420
+ "resource": [
421
+ "Teams"
422
+ ],
423
+ "operation": [
424
+ "Get Team Members"
425
+ ]
426
+ }
427
+ }
428
+ },
429
+ {
430
+ "displayName": "Team Id",
431
+ "name": "team_id",
432
+ "required": true,
433
+ "description": "The ID of the team to be updated",
434
+ "default": 0,
435
+ "type": "number",
436
+ "displayOptions": {
437
+ "show": {
438
+ "resource": [
439
+ "Teams"
440
+ ],
441
+ "operation": [
442
+ "Get Team Members"
443
+ ]
444
+ }
445
+ }
446
+ },
447
+ {
448
+ "displayName": "POST /api/v1/accounts/{account_id}/teams/{team_id}/team_members",
449
+ "name": "operation",
450
+ "type": "notice",
451
+ "typeOptions": {
452
+ "theme": "info"
453
+ },
454
+ "default": "",
455
+ "displayOptions": {
456
+ "show": {
457
+ "resource": [
458
+ "Teams"
459
+ ],
460
+ "operation": [
461
+ "Add New Agent To Team"
462
+ ]
463
+ }
464
+ }
465
+ },
466
+ {
467
+ "required": true,
468
+ "displayName": "User Ids",
469
+ "name": "user_ids",
470
+ "type": "json",
471
+ "default": "[\n 1\n]",
472
+ "description": "IDs of users to be added to the team",
473
+ "routing": {
474
+ "send": {
475
+ "property": "user_ids",
476
+ "propertyInDotNotation": false,
477
+ "type": "body",
478
+ "value": "={{ JSON.parse($value) }}"
479
+ }
480
+ },
481
+ "displayOptions": {
482
+ "show": {
483
+ "resource": [
484
+ "Teams"
485
+ ],
486
+ "operation": [
487
+ "Add New Agent To Team"
488
+ ]
489
+ }
490
+ }
491
+ },
492
+ {
493
+ "displayName": "PATCH /api/v1/accounts/{account_id}/teams/{team_id}/team_members",
494
+ "name": "operation",
495
+ "type": "notice",
496
+ "typeOptions": {
497
+ "theme": "info"
498
+ },
499
+ "default": "",
500
+ "displayOptions": {
501
+ "show": {
502
+ "resource": [
503
+ "Teams"
504
+ ],
505
+ "operation": [
506
+ "Update Agents In Team"
507
+ ]
508
+ }
509
+ }
510
+ },
511
+ {
512
+ "required": true,
513
+ "displayName": "User Ids",
514
+ "name": "user_ids",
515
+ "type": "json",
516
+ "default": "[\n 1\n]",
517
+ "description": "IDs of users to be added to the team",
518
+ "routing": {
519
+ "send": {
520
+ "property": "user_ids",
521
+ "propertyInDotNotation": false,
522
+ "type": "body",
523
+ "value": "={{ JSON.parse($value) }}"
524
+ }
525
+ },
526
+ "displayOptions": {
527
+ "show": {
528
+ "resource": [
529
+ "Teams"
530
+ ],
531
+ "operation": [
532
+ "Update Agents In Team"
533
+ ]
534
+ }
535
+ }
536
+ },
537
+ {
538
+ "displayName": "DELETE /api/v1/accounts/{account_id}/teams/{team_id}/team_members",
539
+ "name": "operation",
540
+ "type": "notice",
541
+ "typeOptions": {
542
+ "theme": "info"
543
+ },
544
+ "default": "",
545
+ "displayOptions": {
546
+ "show": {
547
+ "resource": [
548
+ "Teams"
549
+ ],
550
+ "operation": [
551
+ "Delete Agent In Team"
552
+ ]
553
+ }
554
+ }
555
+ },
556
+ {
557
+ "required": true,
558
+ "displayName": "User Ids",
559
+ "name": "user_ids",
560
+ "type": "json",
561
+ "default": "[\n null\n]",
562
+ "description": "IDs of users to be deleted from the team",
563
+ "routing": {
564
+ "send": {
565
+ "property": "user_ids",
566
+ "propertyInDotNotation": false,
567
+ "type": "body",
568
+ "value": "={{ JSON.parse($value) }}"
569
+ }
570
+ },
571
+ "displayOptions": {
572
+ "show": {
573
+ "resource": [
574
+ "Teams"
575
+ ],
576
+ "operation": [
577
+ "Delete Agent In Team"
578
+ ]
579
+ }
580
+ }
581
+ },
582
+ ];
583
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/teams/index.ts"],"names":[],"mappings":";;;AAEa,QAAA,gBAAgB,GAAsB;IACjD;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,OAAO;iBACP;aACD;SAC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P;gBACD,WAAW,EAAE;oBACZ,sBAAsB;iBACtB;aACD;SACD;KACD;IACD;QACC,UAAU,EAAE,IAAI;QAChB,aAAa,EAAE,UAAU;QACzB,MAAM,EAAE,UAAU;QAClB,MAAM,EAAE,MAAM;QACd,SAAS,EAAE,cAAc;QACzB,aAAa,EAAE,0CAA0C;QACzD,SAAS,EAAE;YACV,MAAM,EAAE;gBACP,UAAU,EAAE,UAAU;gBACtB,uBAAuB,EAAE,KAAK;gBAC9B,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,2BAA2B;aACpC;SACD;QACD,gBAAgB,EAAE;YACjB,MAAM,EAAE;gBACP,UAAU,EAAE;oBACX,OAAO;iBACP;gBACD,WAAW,EAAE;oBACZ,sBAAsB;iBACtB;aACD;SACD;KACD;CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const usersDescription: INodeProperties[];