@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.
- package/README.md +26 -0
- package/dist/credentials/ChatwootApi.credentials.d.ts +10 -0
- package/dist/credentials/ChatwootApi.credentials.js +47 -0
- package/dist/credentials/ChatwootApi.credentials.js.map +1 -0
- package/dist/icons/chatwoot.dark.svg +4 -0
- package/dist/icons/chatwoot.svg +4 -0
- package/dist/nodes/Chatwoot/Chatwoot.node.d.ts +4 -0
- package/dist/nodes/Chatwoot/Chatwoot.node.js +264 -0
- package/dist/nodes/Chatwoot/Chatwoot.node.js.map +1 -0
- package/dist/nodes/Chatwoot/Chatwoot.node.json +20 -0
- package/dist/nodes/Chatwoot/chatwoot.dark.svg +4 -0
- package/dist/nodes/Chatwoot/chatwoot.svg +4 -0
- package/dist/nodes/Chatwoot/resources/account/index.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/account/index.js +370 -0
- package/dist/nodes/Chatwoot/resources/account/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/account-agent-bots/index.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/account-agent-bots/index.js +527 -0
- package/dist/nodes/Chatwoot/resources/account-agent-bots/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/account-users/index.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/account-users/index.js +167 -0
- package/dist/nodes/Chatwoot/resources/account-users/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/accounts/index.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/accounts/index.js +516 -0
- package/dist/nodes/Chatwoot/resources/accounts/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/agent-bots/index.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/agent-bots/index.js +477 -0
- package/dist/nodes/Chatwoot/resources/agent-bots/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/agents/index.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/agents/index.js +434 -0
- package/dist/nodes/Chatwoot/resources/agents/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/audit-logs/index.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/audit-logs/index.js +78 -0
- package/dist/nodes/Chatwoot/resources/audit-logs/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/automation-rule/index.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/automation-rule/index.js +610 -0
- package/dist/nodes/Chatwoot/resources/automation-rule/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/canned-responses/index.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/canned-responses/index.js +282 -0
- package/dist/nodes/Chatwoot/resources/canned-responses/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/contact-labels/index.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/contact-labels/index.js +110 -0
- package/dist/nodes/Chatwoot/resources/contact-labels/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/contacts/index.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/contacts/index.js +1345 -0
- package/dist/nodes/Chatwoot/resources/contacts/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/contacts-api/index.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/contacts-api/index.js +465 -0
- package/dist/nodes/Chatwoot/resources/contacts-api/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/conversation/index.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/conversation/index.js +53 -0
- package/dist/nodes/Chatwoot/resources/conversation/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/conversation-assignments/index.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/conversation-assignments/index.js +103 -0
- package/dist/nodes/Chatwoot/resources/conversation-assignments/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/conversations/index.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/conversations/index.js +1396 -0
- package/dist/nodes/Chatwoot/resources/conversations/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/conversations-api/index.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/conversations-api/index.js +294 -0
- package/dist/nodes/Chatwoot/resources/conversations-api/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/csat-survey-page/index.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/csat-survey-page/index.js +53 -0
- package/dist/nodes/Chatwoot/resources/csat-survey-page/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/custom-attributes/index.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/custom-attributes/index.js +703 -0
- package/dist/nodes/Chatwoot/resources/custom-attributes/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/custom-filters/index.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/custom-filters/index.js +373 -0
- package/dist/nodes/Chatwoot/resources/custom-filters/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/help-center/index.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/help-center/index.js +1156 -0
- package/dist/nodes/Chatwoot/resources/help-center/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/inbox-api/index.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/inbox-api/index.js +53 -0
- package/dist/nodes/Chatwoot/resources/inbox-api/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/inboxes/index.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/inboxes/index.js +1580 -0
- package/dist/nodes/Chatwoot/resources/inboxes/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/index.d.ts +31 -0
- package/dist/nodes/Chatwoot/resources/index.js +66 -0
- package/dist/nodes/Chatwoot/resources/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/integrations/index.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/integrations/index.js +386 -0
- package/dist/nodes/Chatwoot/resources/integrations/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/labels/index.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/labels/index.js +377 -0
- package/dist/nodes/Chatwoot/resources/labels/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/messages/index.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/messages/index.js +377 -0
- package/dist/nodes/Chatwoot/resources/messages/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/messages-api/index.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/messages-api/index.js +190 -0
- package/dist/nodes/Chatwoot/resources/messages-api/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/profile/index.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/profile/index.js +109 -0
- package/dist/nodes/Chatwoot/resources/profile/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/reports/index.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/reports/index.js +588 -0
- package/dist/nodes/Chatwoot/resources/reports/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/teams/index.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/teams/index.js +583 -0
- package/dist/nodes/Chatwoot/resources/teams/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/users/index.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/users/index.js +427 -0
- package/dist/nodes/Chatwoot/resources/users/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/webhooks/index.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/webhooks/index.js +332 -0
- package/dist/nodes/Chatwoot/resources/webhooks/index.js.map +1 -0
- package/dist/package.json +53 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +53 -0
|
@@ -0,0 +1,434 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.agentsDescription = void 0;
|
|
4
|
+
exports.agentsDescription = [
|
|
5
|
+
{
|
|
6
|
+
"displayName": "Operation",
|
|
7
|
+
"name": "operation",
|
|
8
|
+
"type": "options",
|
|
9
|
+
"noDataExpression": true,
|
|
10
|
+
"displayOptions": {
|
|
11
|
+
"show": {
|
|
12
|
+
"resource": [
|
|
13
|
+
"Agents"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"options": [
|
|
18
|
+
{
|
|
19
|
+
"name": "Get Account Agents",
|
|
20
|
+
"value": "Get Account Agents",
|
|
21
|
+
"action": "List Agents in Account",
|
|
22
|
+
"description": "Get Details of Agents in an Account",
|
|
23
|
+
"routing": {
|
|
24
|
+
"request": {
|
|
25
|
+
"method": "GET",
|
|
26
|
+
"url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/agents"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "Add New Agent To Account",
|
|
32
|
+
"value": "Add New Agent To Account",
|
|
33
|
+
"action": "Add a New Agent",
|
|
34
|
+
"description": "Add a new Agent to Account",
|
|
35
|
+
"routing": {
|
|
36
|
+
"request": {
|
|
37
|
+
"method": "POST",
|
|
38
|
+
"url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/agents"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "Update Agent In Account",
|
|
44
|
+
"value": "Update Agent In Account",
|
|
45
|
+
"action": "Update Agent in Account",
|
|
46
|
+
"description": "Update an Agent in Account",
|
|
47
|
+
"routing": {
|
|
48
|
+
"request": {
|
|
49
|
+
"method": "PATCH",
|
|
50
|
+
"url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/agents/{{$parameter[\"id\"]}}"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "Delete Agent From Account",
|
|
56
|
+
"value": "Delete Agent From Account",
|
|
57
|
+
"action": "Remove an Agent from Account",
|
|
58
|
+
"description": "Remove an Agent from Account",
|
|
59
|
+
"routing": {
|
|
60
|
+
"request": {
|
|
61
|
+
"method": "DELETE",
|
|
62
|
+
"url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/agents/{{$parameter[\"id\"]}}"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"default": ""
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"displayName": "GET /api/v1/accounts/{account_id}/agents",
|
|
71
|
+
"name": "operation",
|
|
72
|
+
"type": "notice",
|
|
73
|
+
"typeOptions": {
|
|
74
|
+
"theme": "info"
|
|
75
|
+
},
|
|
76
|
+
"default": "",
|
|
77
|
+
"displayOptions": {
|
|
78
|
+
"show": {
|
|
79
|
+
"resource": [
|
|
80
|
+
"Agents"
|
|
81
|
+
],
|
|
82
|
+
"operation": [
|
|
83
|
+
"Get Account Agents"
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"displayName": "POST /api/v1/accounts/{account_id}/agents",
|
|
90
|
+
"name": "operation",
|
|
91
|
+
"type": "notice",
|
|
92
|
+
"typeOptions": {
|
|
93
|
+
"theme": "info"
|
|
94
|
+
},
|
|
95
|
+
"default": "",
|
|
96
|
+
"displayOptions": {
|
|
97
|
+
"show": {
|
|
98
|
+
"resource": [
|
|
99
|
+
"Agents"
|
|
100
|
+
],
|
|
101
|
+
"operation": [
|
|
102
|
+
"Add New Agent To Account"
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"required": true,
|
|
109
|
+
"displayName": "Name",
|
|
110
|
+
"name": "name",
|
|
111
|
+
"type": "string",
|
|
112
|
+
"default": "John Doe",
|
|
113
|
+
"description": "Full Name of the agent",
|
|
114
|
+
"routing": {
|
|
115
|
+
"send": {
|
|
116
|
+
"property": "name",
|
|
117
|
+
"propertyInDotNotation": false,
|
|
118
|
+
"type": "body",
|
|
119
|
+
"value": "={{ $value }}"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"displayOptions": {
|
|
123
|
+
"show": {
|
|
124
|
+
"resource": [
|
|
125
|
+
"Agents"
|
|
126
|
+
],
|
|
127
|
+
"operation": [
|
|
128
|
+
"Add New Agent To Account"
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"required": true,
|
|
135
|
+
"displayName": "Email",
|
|
136
|
+
"name": "email",
|
|
137
|
+
"type": "string",
|
|
138
|
+
"default": "john.doe@acme.inc",
|
|
139
|
+
"description": "Email of the Agent",
|
|
140
|
+
"routing": {
|
|
141
|
+
"send": {
|
|
142
|
+
"property": "email",
|
|
143
|
+
"propertyInDotNotation": false,
|
|
144
|
+
"type": "body",
|
|
145
|
+
"value": "={{ $value }}"
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"displayOptions": {
|
|
149
|
+
"show": {
|
|
150
|
+
"resource": [
|
|
151
|
+
"Agents"
|
|
152
|
+
],
|
|
153
|
+
"operation": [
|
|
154
|
+
"Add New Agent To Account"
|
|
155
|
+
]
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"required": true,
|
|
161
|
+
"displayName": "Role",
|
|
162
|
+
"name": "role",
|
|
163
|
+
"type": "options",
|
|
164
|
+
"default": "agent",
|
|
165
|
+
"description": "Whether its administrator or agent",
|
|
166
|
+
"options": [
|
|
167
|
+
{
|
|
168
|
+
"name": "Agent",
|
|
169
|
+
"value": "agent"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "Administrator",
|
|
173
|
+
"value": "administrator"
|
|
174
|
+
}
|
|
175
|
+
],
|
|
176
|
+
"routing": {
|
|
177
|
+
"send": {
|
|
178
|
+
"property": "role",
|
|
179
|
+
"propertyInDotNotation": false,
|
|
180
|
+
"type": "body",
|
|
181
|
+
"value": "={{ $value }}"
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"displayOptions": {
|
|
185
|
+
"show": {
|
|
186
|
+
"resource": [
|
|
187
|
+
"Agents"
|
|
188
|
+
],
|
|
189
|
+
"operation": [
|
|
190
|
+
"Add New Agent To Account"
|
|
191
|
+
]
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"displayName": "Availability",
|
|
197
|
+
"name": "availability",
|
|
198
|
+
"type": "options",
|
|
199
|
+
"default": "online",
|
|
200
|
+
"description": "The configured availability of the agent.",
|
|
201
|
+
"options": [
|
|
202
|
+
{
|
|
203
|
+
"name": "Online",
|
|
204
|
+
"value": "online"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"name": "Busy",
|
|
208
|
+
"value": "busy"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"name": "Offline",
|
|
212
|
+
"value": "offline"
|
|
213
|
+
}
|
|
214
|
+
],
|
|
215
|
+
"routing": {
|
|
216
|
+
"send": {
|
|
217
|
+
"property": "availability",
|
|
218
|
+
"propertyInDotNotation": false,
|
|
219
|
+
"type": "body",
|
|
220
|
+
"value": "={{ $value }}"
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"displayOptions": {
|
|
224
|
+
"show": {
|
|
225
|
+
"resource": [
|
|
226
|
+
"Agents"
|
|
227
|
+
],
|
|
228
|
+
"operation": [
|
|
229
|
+
"Add New Agent To Account"
|
|
230
|
+
]
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"displayName": "Auto Offline",
|
|
236
|
+
"name": "auto_offline",
|
|
237
|
+
"type": "boolean",
|
|
238
|
+
"default": true,
|
|
239
|
+
"description": "Whether the agent is automatically marked offline when they are away.",
|
|
240
|
+
"routing": {
|
|
241
|
+
"send": {
|
|
242
|
+
"property": "auto_offline",
|
|
243
|
+
"propertyInDotNotation": false,
|
|
244
|
+
"type": "body",
|
|
245
|
+
"value": "={{ $value }}"
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
"displayOptions": {
|
|
249
|
+
"show": {
|
|
250
|
+
"resource": [
|
|
251
|
+
"Agents"
|
|
252
|
+
],
|
|
253
|
+
"operation": [
|
|
254
|
+
"Add New Agent To Account"
|
|
255
|
+
]
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"displayName": "PATCH /api/v1/accounts/{account_id}/agents/{id}",
|
|
261
|
+
"name": "operation",
|
|
262
|
+
"type": "notice",
|
|
263
|
+
"typeOptions": {
|
|
264
|
+
"theme": "info"
|
|
265
|
+
},
|
|
266
|
+
"default": "",
|
|
267
|
+
"displayOptions": {
|
|
268
|
+
"show": {
|
|
269
|
+
"resource": [
|
|
270
|
+
"Agents"
|
|
271
|
+
],
|
|
272
|
+
"operation": [
|
|
273
|
+
"Update Agent In Account"
|
|
274
|
+
]
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"displayName": "Id",
|
|
280
|
+
"name": "id",
|
|
281
|
+
"required": true,
|
|
282
|
+
"description": "The ID of the agent to be updated.",
|
|
283
|
+
"default": 0,
|
|
284
|
+
"type": "number",
|
|
285
|
+
"displayOptions": {
|
|
286
|
+
"show": {
|
|
287
|
+
"resource": [
|
|
288
|
+
"Agents"
|
|
289
|
+
],
|
|
290
|
+
"operation": [
|
|
291
|
+
"Update Agent In Account"
|
|
292
|
+
]
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"required": true,
|
|
298
|
+
"displayName": "Role",
|
|
299
|
+
"name": "role",
|
|
300
|
+
"type": "options",
|
|
301
|
+
"default": "agent",
|
|
302
|
+
"description": "Whether its administrator or agent",
|
|
303
|
+
"options": [
|
|
304
|
+
{
|
|
305
|
+
"name": "Agent",
|
|
306
|
+
"value": "agent"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"name": "Administrator",
|
|
310
|
+
"value": "administrator"
|
|
311
|
+
}
|
|
312
|
+
],
|
|
313
|
+
"routing": {
|
|
314
|
+
"send": {
|
|
315
|
+
"property": "role",
|
|
316
|
+
"propertyInDotNotation": false,
|
|
317
|
+
"type": "body",
|
|
318
|
+
"value": "={{ $value }}"
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
"displayOptions": {
|
|
322
|
+
"show": {
|
|
323
|
+
"resource": [
|
|
324
|
+
"Agents"
|
|
325
|
+
],
|
|
326
|
+
"operation": [
|
|
327
|
+
"Update Agent In Account"
|
|
328
|
+
]
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"displayName": "Availability",
|
|
334
|
+
"name": "availability",
|
|
335
|
+
"type": "options",
|
|
336
|
+
"default": "online",
|
|
337
|
+
"description": "The configured availability of the agent.",
|
|
338
|
+
"options": [
|
|
339
|
+
{
|
|
340
|
+
"name": "Online",
|
|
341
|
+
"value": "online"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"name": "Busy",
|
|
345
|
+
"value": "busy"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"name": "Offline",
|
|
349
|
+
"value": "offline"
|
|
350
|
+
}
|
|
351
|
+
],
|
|
352
|
+
"routing": {
|
|
353
|
+
"send": {
|
|
354
|
+
"property": "availability",
|
|
355
|
+
"propertyInDotNotation": false,
|
|
356
|
+
"type": "body",
|
|
357
|
+
"value": "={{ $value }}"
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
"displayOptions": {
|
|
361
|
+
"show": {
|
|
362
|
+
"resource": [
|
|
363
|
+
"Agents"
|
|
364
|
+
],
|
|
365
|
+
"operation": [
|
|
366
|
+
"Update Agent In Account"
|
|
367
|
+
]
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"displayName": "Auto Offline",
|
|
373
|
+
"name": "auto_offline",
|
|
374
|
+
"type": "boolean",
|
|
375
|
+
"default": true,
|
|
376
|
+
"description": "Whether the agent is automatically marked offline when they are away.",
|
|
377
|
+
"routing": {
|
|
378
|
+
"send": {
|
|
379
|
+
"property": "auto_offline",
|
|
380
|
+
"propertyInDotNotation": false,
|
|
381
|
+
"type": "body",
|
|
382
|
+
"value": "={{ $value }}"
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
"displayOptions": {
|
|
386
|
+
"show": {
|
|
387
|
+
"resource": [
|
|
388
|
+
"Agents"
|
|
389
|
+
],
|
|
390
|
+
"operation": [
|
|
391
|
+
"Update Agent In Account"
|
|
392
|
+
]
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"displayName": "DELETE /api/v1/accounts/{account_id}/agents/{id}",
|
|
398
|
+
"name": "operation",
|
|
399
|
+
"type": "notice",
|
|
400
|
+
"typeOptions": {
|
|
401
|
+
"theme": "info"
|
|
402
|
+
},
|
|
403
|
+
"default": "",
|
|
404
|
+
"displayOptions": {
|
|
405
|
+
"show": {
|
|
406
|
+
"resource": [
|
|
407
|
+
"Agents"
|
|
408
|
+
],
|
|
409
|
+
"operation": [
|
|
410
|
+
"Delete Agent From Account"
|
|
411
|
+
]
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"displayName": "Id",
|
|
417
|
+
"name": "id",
|
|
418
|
+
"required": true,
|
|
419
|
+
"description": "The ID of the agent to be deleted.",
|
|
420
|
+
"default": 0,
|
|
421
|
+
"type": "number",
|
|
422
|
+
"displayOptions": {
|
|
423
|
+
"show": {
|
|
424
|
+
"resource": [
|
|
425
|
+
"Agents"
|
|
426
|
+
],
|
|
427
|
+
"operation": [
|
|
428
|
+
"Delete Agent From Account"
|
|
429
|
+
]
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
];
|
|
434
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/agents/index.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAsB;IAClD;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,QAAQ;iBACR;aACD;SACD;QACD,SAAS,EAAE;YACV;gBACC,MAAM,EAAE,oBAAoB;gBAC5B,OAAO,EAAE,oBAAoB;gBAC7B,QAAQ,EAAE,wBAAwB;gBAClC,aAAa,EAAE,qCAAqC;gBACpD,SAAS,EAAE;oBACV,SAAS,EAAE;wBACV,QAAQ,EAAE,KAAK;wBACf,KAAK,EAAE,yDAAyD;qBAChE;iBACD;aACD;YACD;gBACC,MAAM,EAAE,0BAA0B;gBAClC,OAAO,EAAE,0BAA0B;gBACnC,QAAQ,EAAE,iBAAiB;gBAC3B,aAAa,EAAE,4BAA4B;gBAC3C,SAAS,EAAE;oBACV,SAAS,EAAE;wBACV,QAAQ,EAAE,MAAM;wBAChB,KAAK,EAAE,yDAAyD;qBAChE;iBACD;aACD;YACD;gBACC,MAAM,EAAE,yBAAyB;gBACjC,OAAO,EAAE,yBAAyB;gBAClC,QAAQ,EAAE,yBAAyB;gBACnC,aAAa,EAAE,4BAA4B;gBAC3C,SAAS,EAAE;oBACV,SAAS,EAAE;wBACV,QAAQ,EAAE,OAAO;wBACjB,KAAK,EAAE,gFAAgF;qBACvF;iBACD;aACD;YACD;gBACC,MAAM,EAAE,2BAA2B;gBACnC,OAAO,EAAE,2BAA2B;gBACpC,QAAQ,EAAE,8BAA8B;gBACxC,aAAa,EAAE,8BAA8B;gBAC7C,SAAS,EAAE;oBACV,SAAS,EAAE;wBACV,QAAQ,EAAE,QAAQ;wBAClB,KAAK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AAE,uEAAuE;QACtF,SAAS,EAAE;YACV,MAAM,EAAE;gBACP,UAAU,EAAE,cAAc;gBAC1B,uBAAuB,EAAE,KAAK;gBAC9B,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,eAAe;aACxB;SACD;QACD,gBAAgB,EAAE;YACjB,MAAM,EAAE;gBACP,UAAU,EAAE;oBACX,QAAQ;iBACR;gBACD,WAAW,EAAE;oBACZ,yBAAyB;iBACzB;aACD;SACD;KACD;IACD;QACC,aAAa,EAAE,kDAAkD;QACjE,MAAM,EAAE,WAAW;QACnB,MAAM,EAAE,QAAQ;QAChB,aAAa,EAAE;YACd,OAAO,EAAE,MAAM;SACf;QACD,SAAS,EAAE,EAAE;QACb,gBAAgB,EAAE;YACjB,MAAM,EAAE;gBACP,UAAU,EAAE;oBACX,QAAQ;iBACR;gBACD,WAAW,EAAE;oBACZ,2BAA2B;iBAC3B;aACD;SACD;KACD;IACD;QACC,aAAa,EAAE,IAAI;QACnB,MAAM,EAAE,IAAI;QACZ,UAAU,EAAE,IAAI;QAChB,aAAa,EAAE,oCAAoC;QACnD,SAAS,EAAE,CAAC;QACZ,MAAM,EAAE,QAAQ;QAChB,gBAAgB,EAAE;YACjB,MAAM,EAAE;gBACP,UAAU,EAAE;oBACX,QAAQ;iBACR;gBACD,WAAW,EAAE;oBACZ,2BAA2B;iBAC3B;aACD;SACD;KACD;CACF,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.auditLogsDescription = void 0;
|
|
4
|
+
exports.auditLogsDescription = [
|
|
5
|
+
{
|
|
6
|
+
"displayName": "Operation",
|
|
7
|
+
"name": "operation",
|
|
8
|
+
"type": "options",
|
|
9
|
+
"noDataExpression": true,
|
|
10
|
+
"displayOptions": {
|
|
11
|
+
"show": {
|
|
12
|
+
"resource": [
|
|
13
|
+
"Audit Logs"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"options": [
|
|
18
|
+
{
|
|
19
|
+
"name": "Get Account Audit Logs",
|
|
20
|
+
"value": "Get Account Audit Logs",
|
|
21
|
+
"action": "List Audit Logs in Account",
|
|
22
|
+
"description": "Get Details of Audit Log entries for an Account. This endpoint is only available in Enterprise editions and requires the audit_logs feature to be enabled.",
|
|
23
|
+
"routing": {
|
|
24
|
+
"request": {
|
|
25
|
+
"method": "GET",
|
|
26
|
+
"url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/audit_logs"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"default": ""
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"displayName": "GET /api/v1/accounts/{account_id}/audit_logs",
|
|
35
|
+
"name": "operation",
|
|
36
|
+
"type": "notice",
|
|
37
|
+
"typeOptions": {
|
|
38
|
+
"theme": "info"
|
|
39
|
+
},
|
|
40
|
+
"default": "",
|
|
41
|
+
"displayOptions": {
|
|
42
|
+
"show": {
|
|
43
|
+
"resource": [
|
|
44
|
+
"Audit Logs"
|
|
45
|
+
],
|
|
46
|
+
"operation": [
|
|
47
|
+
"Get Account Audit Logs"
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"displayName": "Page",
|
|
54
|
+
"name": "page",
|
|
55
|
+
"description": "Page number for pagination",
|
|
56
|
+
"default": 1,
|
|
57
|
+
"type": "number",
|
|
58
|
+
"routing": {
|
|
59
|
+
"send": {
|
|
60
|
+
"type": "query",
|
|
61
|
+
"property": "page",
|
|
62
|
+
"value": "={{ $value }}",
|
|
63
|
+
"propertyInDotNotation": false
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"displayOptions": {
|
|
67
|
+
"show": {
|
|
68
|
+
"resource": [
|
|
69
|
+
"Audit Logs"
|
|
70
|
+
],
|
|
71
|
+
"operation": [
|
|
72
|
+
"Get Account Audit Logs"
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
];
|
|
78
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/audit-logs/index.ts"],"names":[],"mappings":";;;AAEa,QAAA,oBAAoB,GAAsB;IACrD;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,YAAY;iBACZ;aACD;SACD;QACD,SAAS,EAAE;YACV;gBACC,MAAM,EAAE,wBAAwB;gBAChC,OAAO,EAAE,wBAAwB;gBACjC,QAAQ,EAAE,4BAA4B;gBACtC,aAAa,EAAE,4JAA4J;gBAC3K,SAAS,EAAE;oBACV,SAAS,EAAE;wBACV,QAAQ,EAAE,KAAK;wBACf,KAAK,EAAE,6DAA6D;qBACpE;iBACD;aACD;SACD;QACD,SAAS,EAAE,EAAE;KACb;IACD;QACC,aAAa,EAAE,8CAA8C;QAC7D,MAAM,EAAE,WAAW;QACnB,MAAM,EAAE,QAAQ;QAChB,aAAa,EAAE;YACd,OAAO,EAAE,MAAM;SACf;QACD,SAAS,EAAE,EAAE;QACb,gBAAgB,EAAE;YACjB,MAAM,EAAE;gBACP,UAAU,EAAE;oBACX,YAAY;iBACZ;gBACD,WAAW,EAAE;oBACZ,wBAAwB;iBACxB;aACD;SACD;KACD;IACD;QACC,aAAa,EAAE,MAAM;QACrB,MAAM,EAAE,MAAM;QACd,aAAa,EAAE,4BAA4B;QAC3C,SAAS,EAAE,CAAC;QACZ,MAAM,EAAE,QAAQ;QAChB,SAAS,EAAE;YACV,MAAM,EAAE;gBACP,MAAM,EAAE,OAAO;gBACf,UAAU,EAAE,MAAM;g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