@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,282 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.cannedResponsesDescription = void 0;
|
|
4
|
+
exports.cannedResponsesDescription = [
|
|
5
|
+
{
|
|
6
|
+
"displayName": "Operation",
|
|
7
|
+
"name": "operation",
|
|
8
|
+
"type": "options",
|
|
9
|
+
"noDataExpression": true,
|
|
10
|
+
"displayOptions": {
|
|
11
|
+
"show": {
|
|
12
|
+
"resource": [
|
|
13
|
+
"Canned Responses"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"options": [
|
|
18
|
+
{
|
|
19
|
+
"name": "Get Account Canned Response",
|
|
20
|
+
"value": "Get Account Canned Response",
|
|
21
|
+
"action": "List all Canned Responses in an Account",
|
|
22
|
+
"description": "Get Details of Canned Responses in an Account",
|
|
23
|
+
"routing": {
|
|
24
|
+
"request": {
|
|
25
|
+
"method": "GET",
|
|
26
|
+
"url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/canned_responses"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "Add New Canned Response To Account",
|
|
32
|
+
"value": "Add New Canned Response To Account",
|
|
33
|
+
"action": "Add a New Canned Response",
|
|
34
|
+
"description": "Add a new Canned Response to Account",
|
|
35
|
+
"routing": {
|
|
36
|
+
"request": {
|
|
37
|
+
"method": "POST",
|
|
38
|
+
"url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/canned_responses"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "Update Canned Response In Account",
|
|
44
|
+
"value": "Update Canned Response In Account",
|
|
45
|
+
"action": "Update Canned Response in Account",
|
|
46
|
+
"description": "Update a Canned Response in Account",
|
|
47
|
+
"routing": {
|
|
48
|
+
"request": {
|
|
49
|
+
"method": "PATCH",
|
|
50
|
+
"url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/canned_responses/{{$parameter[\"id\"]}}"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "Delete Canned Response From Account",
|
|
56
|
+
"value": "Delete Canned Response From Account",
|
|
57
|
+
"action": "Remove a Canned Response from Account",
|
|
58
|
+
"description": "Remove a Canned Response from Account",
|
|
59
|
+
"routing": {
|
|
60
|
+
"request": {
|
|
61
|
+
"method": "DELETE",
|
|
62
|
+
"url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/canned_responses/{{$parameter[\"id\"]}}"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"default": ""
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"displayName": "GET /api/v1/accounts/{account_id}/canned_responses",
|
|
71
|
+
"name": "operation",
|
|
72
|
+
"type": "notice",
|
|
73
|
+
"typeOptions": {
|
|
74
|
+
"theme": "info"
|
|
75
|
+
},
|
|
76
|
+
"default": "",
|
|
77
|
+
"displayOptions": {
|
|
78
|
+
"show": {
|
|
79
|
+
"resource": [
|
|
80
|
+
"Canned Responses"
|
|
81
|
+
],
|
|
82
|
+
"operation": [
|
|
83
|
+
"Get Account Canned Response"
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"displayName": "POST /api/v1/accounts/{account_id}/canned_responses",
|
|
90
|
+
"name": "operation",
|
|
91
|
+
"type": "notice",
|
|
92
|
+
"typeOptions": {
|
|
93
|
+
"theme": "info"
|
|
94
|
+
},
|
|
95
|
+
"default": "",
|
|
96
|
+
"displayOptions": {
|
|
97
|
+
"show": {
|
|
98
|
+
"resource": [
|
|
99
|
+
"Canned Responses"
|
|
100
|
+
],
|
|
101
|
+
"operation": [
|
|
102
|
+
"Add New Canned Response To Account"
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"displayName": "Content",
|
|
109
|
+
"name": "content",
|
|
110
|
+
"type": "string",
|
|
111
|
+
"default": "Hello, {{contact.name}}! Welcome to our service.",
|
|
112
|
+
"description": "Message content for canned response",
|
|
113
|
+
"routing": {
|
|
114
|
+
"send": {
|
|
115
|
+
"property": "content",
|
|
116
|
+
"propertyInDotNotation": false,
|
|
117
|
+
"type": "body",
|
|
118
|
+
"value": "={{ $value }}"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"displayOptions": {
|
|
122
|
+
"show": {
|
|
123
|
+
"resource": [
|
|
124
|
+
"Canned Responses"
|
|
125
|
+
],
|
|
126
|
+
"operation": [
|
|
127
|
+
"Add New Canned Response To Account"
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"displayName": "Short Code",
|
|
134
|
+
"name": "short_code",
|
|
135
|
+
"type": "string",
|
|
136
|
+
"default": "welcome",
|
|
137
|
+
"description": "Short Code for quick access of the canned response",
|
|
138
|
+
"routing": {
|
|
139
|
+
"send": {
|
|
140
|
+
"property": "short_code",
|
|
141
|
+
"propertyInDotNotation": false,
|
|
142
|
+
"type": "body",
|
|
143
|
+
"value": "={{ $value }}"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"displayOptions": {
|
|
147
|
+
"show": {
|
|
148
|
+
"resource": [
|
|
149
|
+
"Canned Responses"
|
|
150
|
+
],
|
|
151
|
+
"operation": [
|
|
152
|
+
"Add New Canned Response To Account"
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"displayName": "PATCH /api/v1/accounts/{account_id}/canned_responses/{id}",
|
|
159
|
+
"name": "operation",
|
|
160
|
+
"type": "notice",
|
|
161
|
+
"typeOptions": {
|
|
162
|
+
"theme": "info"
|
|
163
|
+
},
|
|
164
|
+
"default": "",
|
|
165
|
+
"displayOptions": {
|
|
166
|
+
"show": {
|
|
167
|
+
"resource": [
|
|
168
|
+
"Canned Responses"
|
|
169
|
+
],
|
|
170
|
+
"operation": [
|
|
171
|
+
"Update Canned Response In Account"
|
|
172
|
+
]
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"displayName": "Id",
|
|
178
|
+
"name": "id",
|
|
179
|
+
"required": true,
|
|
180
|
+
"description": "The ID of the canned response to be updated.",
|
|
181
|
+
"default": 0,
|
|
182
|
+
"type": "number",
|
|
183
|
+
"displayOptions": {
|
|
184
|
+
"show": {
|
|
185
|
+
"resource": [
|
|
186
|
+
"Canned Responses"
|
|
187
|
+
],
|
|
188
|
+
"operation": [
|
|
189
|
+
"Update Canned Response In Account"
|
|
190
|
+
]
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"displayName": "Content",
|
|
196
|
+
"name": "content",
|
|
197
|
+
"type": "string",
|
|
198
|
+
"default": "Hello, {{contact.name}}! Welcome to our service.",
|
|
199
|
+
"description": "Message content for canned response",
|
|
200
|
+
"routing": {
|
|
201
|
+
"send": {
|
|
202
|
+
"property": "content",
|
|
203
|
+
"propertyInDotNotation": false,
|
|
204
|
+
"type": "body",
|
|
205
|
+
"value": "={{ $value }}"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"displayOptions": {
|
|
209
|
+
"show": {
|
|
210
|
+
"resource": [
|
|
211
|
+
"Canned Responses"
|
|
212
|
+
],
|
|
213
|
+
"operation": [
|
|
214
|
+
"Update Canned Response In Account"
|
|
215
|
+
]
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"displayName": "Short Code",
|
|
221
|
+
"name": "short_code",
|
|
222
|
+
"type": "string",
|
|
223
|
+
"default": "welcome",
|
|
224
|
+
"description": "Short Code for quick access of the canned response",
|
|
225
|
+
"routing": {
|
|
226
|
+
"send": {
|
|
227
|
+
"property": "short_code",
|
|
228
|
+
"propertyInDotNotation": false,
|
|
229
|
+
"type": "body",
|
|
230
|
+
"value": "={{ $value }}"
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"displayOptions": {
|
|
234
|
+
"show": {
|
|
235
|
+
"resource": [
|
|
236
|
+
"Canned Responses"
|
|
237
|
+
],
|
|
238
|
+
"operation": [
|
|
239
|
+
"Update Canned Response In Account"
|
|
240
|
+
]
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"displayName": "DELETE /api/v1/accounts/{account_id}/canned_responses/{id}",
|
|
246
|
+
"name": "operation",
|
|
247
|
+
"type": "notice",
|
|
248
|
+
"typeOptions": {
|
|
249
|
+
"theme": "info"
|
|
250
|
+
},
|
|
251
|
+
"default": "",
|
|
252
|
+
"displayOptions": {
|
|
253
|
+
"show": {
|
|
254
|
+
"resource": [
|
|
255
|
+
"Canned Responses"
|
|
256
|
+
],
|
|
257
|
+
"operation": [
|
|
258
|
+
"Delete Canned Response From Account"
|
|
259
|
+
]
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"displayName": "Id",
|
|
265
|
+
"name": "id",
|
|
266
|
+
"required": true,
|
|
267
|
+
"description": "The ID of the canned response to be deleted",
|
|
268
|
+
"default": 0,
|
|
269
|
+
"type": "number",
|
|
270
|
+
"displayOptions": {
|
|
271
|
+
"show": {
|
|
272
|
+
"resource": [
|
|
273
|
+
"Canned Responses"
|
|
274
|
+
],
|
|
275
|
+
"operation": [
|
|
276
|
+
"Delete Canned Response From Account"
|
|
277
|
+
]
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
];
|
|
282
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/canned-responses/index.ts"],"names":[],"mappings":";;;AAEa,QAAA,0BAA0B,GAAsB;IAC3D;QACC,aAAa,EAAE,WAAW;QAC1B,MAAM,EAAE,WAAW;QACnB,MAAM,EAAE,SAAS;QACjB,kBAAkB,EAAE,IAAI;QACxB,gBAAgB,EAAE;YACjB,MAAM,EA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,EAAE;oBACX,kBAAkB;iBAClB;gBACD,WAAW,EAAE;oBACZ,mCAAmC;iBACnC;aACD;SACD;KACD;IACD;QACC,aAAa,EAAE,4DAA4D;QAC3E,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,kBAAkB;iBAClB;gBACD,WAAW,EAAE;oBACZ,qCAAqC;iBACrC;aACD;SACD;KACD;IACD;QACC,aAAa,EAAE,IAAI;QACnB,MAAM,EAAE,IAAI;QACZ,UAAU,EAAE,IAAI;QAChB,aAAa,EAAE,6CAA6C;QAC5D,SAAS,EAAE,CAAC;QACZ,MAAM,EAAE,QAAQ;QAChB,gBAAgB,EAAE;YACjB,MAAM,EAAE;gBACP,UAAU,EAAE;oBACX,kBAAkB;iBAClB;gBACD,WAAW,EAAE;oBACZ,qCAAqC;iBACrC;aACD;SACD;KACD;CACF,CAAC"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.contactLabelsDescription = void 0;
|
|
4
|
+
exports.contactLabelsDescription = [
|
|
5
|
+
{
|
|
6
|
+
"displayName": "Operation",
|
|
7
|
+
"name": "operation",
|
|
8
|
+
"type": "options",
|
|
9
|
+
"noDataExpression": true,
|
|
10
|
+
"displayOptions": {
|
|
11
|
+
"show": {
|
|
12
|
+
"resource": [
|
|
13
|
+
"Contact Labels"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"options": [
|
|
18
|
+
{
|
|
19
|
+
"name": "List All Labels Of A Contact",
|
|
20
|
+
"value": "List All Labels Of A Contact",
|
|
21
|
+
"action": "List Labels",
|
|
22
|
+
"description": "Lists all the labels of a contact",
|
|
23
|
+
"routing": {
|
|
24
|
+
"request": {
|
|
25
|
+
"method": "GET",
|
|
26
|
+
"url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/contacts/{{$parameter[\"id\"]}}/labels"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "Contact Add Labels",
|
|
32
|
+
"value": "Contact Add Labels",
|
|
33
|
+
"action": "Add Labels",
|
|
34
|
+
"description": "Add labels to a contact. Note that this API would overwrite the existing list of labels associated to the conversation.",
|
|
35
|
+
"routing": {
|
|
36
|
+
"request": {
|
|
37
|
+
"method": "POST",
|
|
38
|
+
"url": "=/api/v1/accounts/{{$parameter[\"account_id\"]}}/contacts/{{$parameter[\"id\"]}}/labels"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"default": ""
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"displayName": "GET /api/v1/accounts/{account_id}/contacts/{id}/labels",
|
|
47
|
+
"name": "operation",
|
|
48
|
+
"type": "notice",
|
|
49
|
+
"typeOptions": {
|
|
50
|
+
"theme": "info"
|
|
51
|
+
},
|
|
52
|
+
"default": "",
|
|
53
|
+
"displayOptions": {
|
|
54
|
+
"show": {
|
|
55
|
+
"resource": [
|
|
56
|
+
"Contact Labels"
|
|
57
|
+
],
|
|
58
|
+
"operation": [
|
|
59
|
+
"List All Labels Of A Contact"
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"displayName": "POST /api/v1/accounts/{account_id}/contacts/{id}/labels",
|
|
66
|
+
"name": "operation",
|
|
67
|
+
"type": "notice",
|
|
68
|
+
"typeOptions": {
|
|
69
|
+
"theme": "info"
|
|
70
|
+
},
|
|
71
|
+
"default": "",
|
|
72
|
+
"displayOptions": {
|
|
73
|
+
"show": {
|
|
74
|
+
"resource": [
|
|
75
|
+
"Contact Labels"
|
|
76
|
+
],
|
|
77
|
+
"operation": [
|
|
78
|
+
"Contact Add Labels"
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"required": true,
|
|
85
|
+
"displayName": "Labels",
|
|
86
|
+
"name": "labels",
|
|
87
|
+
"type": "json",
|
|
88
|
+
"default": "[\n \"support\",\n \"billing\"\n]",
|
|
89
|
+
"description": "Array of labels (comma-separated strings)",
|
|
90
|
+
"routing": {
|
|
91
|
+
"send": {
|
|
92
|
+
"property": "labels",
|
|
93
|
+
"propertyInDotNotation": false,
|
|
94
|
+
"type": "body",
|
|
95
|
+
"value": "={{ JSON.parse($value) }}"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"displayOptions": {
|
|
99
|
+
"show": {
|
|
100
|
+
"resource": [
|
|
101
|
+
"Contact Labels"
|
|
102
|
+
],
|
|
103
|
+
"operation": [
|
|
104
|
+
"Contact Add Labels"
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
];
|
|
110
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/contact-labels/index.ts"],"names":[],"mappings":";;;AAEa,QAAA,wBAAwB,GAAsB;IACzD;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,gBAAgB;iBAChB;aACD;SACD;QACD,SAAS,EAAE;YACV;gBACC,MAAM,EAAE,8BAA8B;gBACtC,OAAO,EAAE,8BAA8B;gBACvC,QAAQ,EAAE,aAAa;gBACvB,aAAa,EAAE,mCAAmC;gBAClD,SAAS,EAAE;oBACV,SAAS,EAAE;wBACV,QAAQ,EAAE,KAAK;wB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