@renatoascencio/n8n-nodes-chatwoot 0.1.2 → 0.2.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 +314 -80
- package/dist/nodes/Chatwoot/Chatwoot.node.d.ts +9 -0
- package/dist/nodes/Chatwoot/Chatwoot.node.js +383 -77
- package/dist/nodes/Chatwoot/Chatwoot.node.js.map +1 -1
- package/dist/nodes/Chatwoot/Chatwoot.node.json +22 -0
- package/dist/nodes/Chatwoot/ChatwootTrigger.node.d.ts +12 -0
- package/dist/nodes/Chatwoot/ChatwootTrigger.node.js +197 -0
- package/dist/nodes/Chatwoot/ChatwootTrigger.node.js.map +1 -0
- package/dist/nodes/Chatwoot/ChatwootTrigger.node.json +22 -0
- package/dist/nodes/Chatwoot/GenericFunctions.d.ts +5 -1
- package/dist/nodes/Chatwoot/GenericFunctions.js +71 -0
- package/dist/nodes/Chatwoot/GenericFunctions.js.map +1 -1
- package/dist/nodes/Chatwoot/chatwoot.svg +10 -6
- package/dist/nodes/Chatwoot/resources/account/get.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/account/get.operation.js +5 -0
- package/dist/nodes/Chatwoot/resources/account/get.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/account/index.d.ts +3 -0
- package/dist/nodes/Chatwoot/resources/account/index.js +36 -0
- package/dist/nodes/Chatwoot/resources/account/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/account/update.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/account/update.operation.js +75 -0
- package/dist/nodes/Chatwoot/resources/account/update.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/agent/create.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/agent/create.operation.js +95 -0
- package/dist/nodes/Chatwoot/resources/agent/create.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/agent/delete.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/agent/delete.operation.js +23 -0
- package/dist/nodes/Chatwoot/resources/agent/delete.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/agent/getAll.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/agent/getAll.operation.js +5 -0
- package/dist/nodes/Chatwoot/resources/agent/getAll.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/agent/index.d.ts +3 -0
- package/dist/nodes/Chatwoot/resources/agent/index.js +52 -0
- package/dist/nodes/Chatwoot/resources/agent/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/agent/update.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/agent/update.operation.js +75 -0
- package/dist/nodes/Chatwoot/resources/agent/update.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/cannedResponse/create.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/cannedResponse/create.operation.js +38 -0
- package/dist/nodes/Chatwoot/resources/cannedResponse/create.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/cannedResponse/delete.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/cannedResponse/delete.operation.js +20 -0
- package/dist/nodes/Chatwoot/resources/cannedResponse/delete.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/cannedResponse/getAll.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/cannedResponse/getAll.operation.js +28 -0
- package/dist/nodes/Chatwoot/resources/cannedResponse/getAll.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/cannedResponse/index.d.ts +3 -0
- package/dist/nodes/Chatwoot/resources/cannedResponse/index.js +52 -0
- package/dist/nodes/Chatwoot/resources/cannedResponse/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/cannedResponse/update.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/cannedResponse/update.operation.js +52 -0
- package/dist/nodes/Chatwoot/resources/cannedResponse/update.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/contact/getConversations.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/contact/getConversations.operation.js +20 -0
- package/dist/nodes/Chatwoot/resources/contact/getConversations.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/contact/index.js +16 -0
- package/dist/nodes/Chatwoot/resources/contact/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/contact/merge.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/contact/merge.operation.js +34 -0
- package/dist/nodes/Chatwoot/resources/contact/merge.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/conversation/addLabels.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/conversation/addLabels.operation.js +37 -0
- package/dist/nodes/Chatwoot/resources/conversation/addLabels.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/conversation/assign.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/conversation/assign.operation.js +87 -0
- package/dist/nodes/Chatwoot/resources/conversation/assign.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/conversation/index.js +16 -0
- package/dist/nodes/Chatwoot/resources/conversation/index.js.map +1 -1
- package/dist/nodes/Chatwoot/resources/customAttribute/create.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/customAttribute/create.operation.js +122 -0
- package/dist/nodes/Chatwoot/resources/customAttribute/create.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/customAttribute/delete.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/customAttribute/delete.operation.js +20 -0
- package/dist/nodes/Chatwoot/resources/customAttribute/delete.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/customAttribute/get.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/customAttribute/get.operation.js +20 -0
- package/dist/nodes/Chatwoot/resources/customAttribute/get.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/customAttribute/getAll.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/customAttribute/getAll.operation.js +32 -0
- package/dist/nodes/Chatwoot/resources/customAttribute/getAll.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/customAttribute/index.d.ts +3 -0
- package/dist/nodes/Chatwoot/resources/customAttribute/index.js +60 -0
- package/dist/nodes/Chatwoot/resources/customAttribute/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/customAttribute/update.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/customAttribute/update.operation.js +64 -0
- package/dist/nodes/Chatwoot/resources/customAttribute/update.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/inbox/get.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/inbox/get.operation.js +23 -0
- package/dist/nodes/Chatwoot/resources/inbox/get.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/inbox/getAll.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/inbox/getAll.operation.js +5 -0
- package/dist/nodes/Chatwoot/resources/inbox/getAll.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/inbox/index.d.ts +3 -0
- package/dist/nodes/Chatwoot/resources/inbox/index.js +44 -0
- package/dist/nodes/Chatwoot/resources/inbox/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/inbox/update.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/inbox/update.operation.js +143 -0
- package/dist/nodes/Chatwoot/resources/inbox/update.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/label/create.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/label/create.operation.js +56 -0
- package/dist/nodes/Chatwoot/resources/label/create.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/label/delete.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/label/delete.operation.js +23 -0
- package/dist/nodes/Chatwoot/resources/label/delete.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/label/getAll.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/label/getAll.operation.js +5 -0
- package/dist/nodes/Chatwoot/resources/label/getAll.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/label/index.d.ts +3 -0
- package/dist/nodes/Chatwoot/resources/label/index.js +52 -0
- package/dist/nodes/Chatwoot/resources/label/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/label/update.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/label/update.operation.js +66 -0
- package/dist/nodes/Chatwoot/resources/label/update.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/team/create.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/team/create.operation.js +49 -0
- package/dist/nodes/Chatwoot/resources/team/create.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/team/delete.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/team/delete.operation.js +23 -0
- package/dist/nodes/Chatwoot/resources/team/delete.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/team/get.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/team/get.operation.js +23 -0
- package/dist/nodes/Chatwoot/resources/team/get.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/team/getAll.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/team/getAll.operation.js +5 -0
- package/dist/nodes/Chatwoot/resources/team/getAll.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/team/index.d.ts +3 -0
- package/dist/nodes/Chatwoot/resources/team/index.js +60 -0
- package/dist/nodes/Chatwoot/resources/team/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/team/update.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/team/update.operation.js +59 -0
- package/dist/nodes/Chatwoot/resources/team/update.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/webhook/create.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/webhook/create.operation.js +77 -0
- package/dist/nodes/Chatwoot/resources/webhook/create.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/webhook/delete.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/webhook/delete.operation.js +20 -0
- package/dist/nodes/Chatwoot/resources/webhook/delete.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/webhook/getAll.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/webhook/getAll.operation.js +5 -0
- package/dist/nodes/Chatwoot/resources/webhook/getAll.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/webhook/index.d.ts +3 -0
- package/dist/nodes/Chatwoot/resources/webhook/index.js +52 -0
- package/dist/nodes/Chatwoot/resources/webhook/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/webhook/update.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/webhook/update.operation.js +59 -0
- package/dist/nodes/Chatwoot/resources/webhook/update.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/types.d.ts +305 -8
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -3
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.teamFields = exports.teamOperations = void 0;
|
|
4
|
+
const getAll_operation_1 = require("./getAll.operation");
|
|
5
|
+
const get_operation_1 = require("./get.operation");
|
|
6
|
+
const create_operation_1 = require("./create.operation");
|
|
7
|
+
const update_operation_1 = require("./update.operation");
|
|
8
|
+
const delete_operation_1 = require("./delete.operation");
|
|
9
|
+
exports.teamOperations = {
|
|
10
|
+
displayName: 'Operation',
|
|
11
|
+
name: 'operation',
|
|
12
|
+
type: 'options',
|
|
13
|
+
noDataExpression: true,
|
|
14
|
+
displayOptions: {
|
|
15
|
+
show: {
|
|
16
|
+
resource: ['team'],
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
options: [
|
|
20
|
+
{
|
|
21
|
+
name: 'Create',
|
|
22
|
+
value: 'create',
|
|
23
|
+
description: 'Create a new team',
|
|
24
|
+
action: 'Create a team',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'Delete',
|
|
28
|
+
value: 'delete',
|
|
29
|
+
description: 'Delete a team',
|
|
30
|
+
action: 'Delete a team',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: 'Get',
|
|
34
|
+
value: 'get',
|
|
35
|
+
description: 'Get a team by ID',
|
|
36
|
+
action: 'Get a team',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'Get Many',
|
|
40
|
+
value: 'getAll',
|
|
41
|
+
description: 'Get all teams in the account',
|
|
42
|
+
action: 'Get all teams',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: 'Update',
|
|
46
|
+
value: 'update',
|
|
47
|
+
description: 'Update a team',
|
|
48
|
+
action: 'Update a team',
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
default: 'getAll',
|
|
52
|
+
};
|
|
53
|
+
exports.teamFields = [
|
|
54
|
+
...getAll_operation_1.getAllOperation,
|
|
55
|
+
...get_operation_1.getOperation,
|
|
56
|
+
...create_operation_1.createOperation,
|
|
57
|
+
...update_operation_1.updateOperation,
|
|
58
|
+
...delete_operation_1.deleteOperation,
|
|
59
|
+
];
|
|
60
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/team/index.ts"],"names":[],"mappings":";;;AACA,yDAAqD;AACrD,mDAA+C;AAC/C,yDAAqD;AACrD,yDAAqD;AACrD,yDAAqD;AAExC,QAAA,cAAc,GAAoB;IAC7C,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE;QACd,IAAI,EAAE;YACJ,QAAQ,EAAE,CAAC,MAAM,CAAC;SACnB;KACF;IACD,OAAO,EAAE;QACP;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,mBAAmB;YAChC,MAAM,EAAE,eAAe;SACxB;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,eAAe;YAC5B,MAAM,EAAE,eAAe;SACxB;QACD;YACE,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,KAAK;YACZ,WAAW,EAAE,kBAAkB;YAC/B,MAAM,EAAE,YAAY;SACrB;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,8BAA8B;YAC3C,MAAM,EAAE,eAAe;SACxB;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,eAAe;YAC5B,MAAM,EAAE,eAAe;SACxB;KACF;IACD,OAAO,EAAE,QAAQ;CAClB,CAAC;AAEW,QAAA,UAAU,GAAsB;IAC3C,GAAG,kCAAe;IAClB,GAAG,4BAAY;IACf,GAAG,kCAAe;IAClB,GAAG,kCAAe;IAClB,GAAG,kCAAe;CACnB,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateOperation = void 0;
|
|
4
|
+
exports.updateOperation = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Team',
|
|
7
|
+
name: 'teamId',
|
|
8
|
+
type: 'options',
|
|
9
|
+
typeOptions: {
|
|
10
|
+
loadOptionsMethod: 'getTeams',
|
|
11
|
+
},
|
|
12
|
+
required: true,
|
|
13
|
+
default: '',
|
|
14
|
+
displayOptions: {
|
|
15
|
+
show: {
|
|
16
|
+
resource: ['team'],
|
|
17
|
+
operation: ['update'],
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
description: 'Select the team to update. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
displayName: 'Update Fields',
|
|
24
|
+
name: 'updateFields',
|
|
25
|
+
type: 'collection',
|
|
26
|
+
placeholder: 'Add Field',
|
|
27
|
+
default: {},
|
|
28
|
+
displayOptions: {
|
|
29
|
+
show: {
|
|
30
|
+
resource: ['team'],
|
|
31
|
+
operation: ['update'],
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
options: [
|
|
35
|
+
{
|
|
36
|
+
displayName: 'Name',
|
|
37
|
+
name: 'name',
|
|
38
|
+
type: 'string',
|
|
39
|
+
default: '',
|
|
40
|
+
description: 'Name of the team',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
displayName: 'Description',
|
|
44
|
+
name: 'description',
|
|
45
|
+
type: 'string',
|
|
46
|
+
default: '',
|
|
47
|
+
description: 'Description of the team',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
displayName: 'Allow Auto Assign',
|
|
51
|
+
name: 'allow_auto_assign',
|
|
52
|
+
type: 'boolean',
|
|
53
|
+
default: true,
|
|
54
|
+
description: 'Whether conversations can be automatically assigned to team members',
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
];
|
|
59
|
+
//# sourceMappingURL=update.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/team/update.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;QACE,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;YACX,iBAAiB,EAAE,UAAU;SAC9B;QACD,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,4IAA4I;KAC1J;IACD;QACE,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,OAAO,EAAE;YACP;gBACE,WAAW,EAAE,MAAM;gBACnB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,kBAAkB;aAChC;YACD;gBACE,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,yBAAyB;aACvC;YACD;gBACE,WAAW,EAAE,mBAAmB;gBAChC,IAAI,EAAE,mBAAmB;gBACzB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,IAAI;gBACb,WAAW,EAAE,qEAAqE;aACnF;SACF;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createOperation = void 0;
|
|
4
|
+
exports.createOperation = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Webhook URL',
|
|
7
|
+
name: 'url',
|
|
8
|
+
type: 'string',
|
|
9
|
+
required: true,
|
|
10
|
+
default: '',
|
|
11
|
+
placeholder: 'https://your-server.com/webhook',
|
|
12
|
+
displayOptions: {
|
|
13
|
+
show: {
|
|
14
|
+
resource: ['webhook'],
|
|
15
|
+
operation: ['create'],
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
description: 'URL where webhook events will be sent',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
displayName: 'Subscriptions',
|
|
22
|
+
name: 'subscriptions',
|
|
23
|
+
type: 'multiOptions',
|
|
24
|
+
required: true,
|
|
25
|
+
options: [
|
|
26
|
+
{
|
|
27
|
+
name: 'Contact Created',
|
|
28
|
+
value: 'contact_created',
|
|
29
|
+
description: 'Triggered when a new contact is created',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'Contact Updated',
|
|
33
|
+
value: 'contact_updated',
|
|
34
|
+
description: 'Triggered when a contact is updated',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: 'Conversation Created',
|
|
38
|
+
value: 'conversation_created',
|
|
39
|
+
description: 'Triggered when a new conversation is created',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'Conversation Status Changed',
|
|
43
|
+
value: 'conversation_status_changed',
|
|
44
|
+
description: 'Triggered when conversation status changes (open, resolved, pending, snoozed)',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'Conversation Updated',
|
|
48
|
+
value: 'conversation_updated',
|
|
49
|
+
description: 'Triggered when a conversation is updated',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: 'Message Created',
|
|
53
|
+
value: 'message_created',
|
|
54
|
+
description: 'Triggered when a new message is sent',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: 'Message Updated',
|
|
58
|
+
value: 'message_updated',
|
|
59
|
+
description: 'Triggered when a message is updated',
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: 'Webwidget Triggered',
|
|
63
|
+
value: 'webwidget_triggered',
|
|
64
|
+
description: 'Triggered when chat widget is opened',
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
default: ['message_created'],
|
|
68
|
+
displayOptions: {
|
|
69
|
+
show: {
|
|
70
|
+
resource: ['webhook'],
|
|
71
|
+
operation: ['create'],
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
description: 'Events that will trigger this webhook',
|
|
75
|
+
},
|
|
76
|
+
];
|
|
77
|
+
//# sourceMappingURL=create.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/webhook/create.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;QACE,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,iCAAiC;QAC9C,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,uCAAuC;KACrD;IACD;QACE,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,iBAAiB;gBACvB,KAAK,EAAE,iBAAiB;gBACxB,WAAW,EAAE,yCAAyC;aACvD;YACD;gBACE,IAAI,EAAE,iBAAiB;gBACvB,KAAK,EAAE,iBAAiB;gBACxB,WAAW,EAAE,qCAAqC;aACnD;YACD;gBACE,IAAI,EAAE,sBAAsB;gBAC5B,KAAK,EAAE,sBAAsB;gBAC7B,WAAW,EAAE,8CAA8C;aAC5D;YACD;gBACE,IAAI,EAAE,6BAA6B;gBACnC,KAAK,EAAE,6BAA6B;gBACpC,WAAW,EAAE,+EAA+E;aAC7F;YACD;gBACE,IAAI,EAAE,sBAAsB;gBAC5B,KAAK,EAAE,sBAAsB;gBAC7B,WAAW,EAAE,0CAA0C;aACxD;YACD;gBACE,IAAI,EAAE,iBAAiB;gBACvB,KAAK,EAAE,iBAAiB;gBACxB,WAAW,EAAE,sCAAsC;aACpD;YACD;gBACE,IAAI,EAAE,iBAAiB;gBACvB,KAAK,EAAE,iBAAiB;gBACxB,WAAW,EAAE,qCAAqC;aACnD;YACD;gBACE,IAAI,EAAE,qBAAqB;gBAC3B,KAAK,EAAE,qBAAqB;gBAC5B,WAAW,EAAE,sCAAsC;aACpD;SACF;QACD,OAAO,EAAE,CAAC,iBAAiB,CAAC;QAC5B,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,uCAAuC;KACrD;CACF,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deleteOperation = void 0;
|
|
4
|
+
exports.deleteOperation = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Webhook ID',
|
|
7
|
+
name: 'webhookId',
|
|
8
|
+
type: 'number',
|
|
9
|
+
required: true,
|
|
10
|
+
default: 0,
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['webhook'],
|
|
14
|
+
operation: ['delete'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
description: 'ID of the webhook to delete',
|
|
18
|
+
},
|
|
19
|
+
];
|
|
20
|
+
//# sourceMappingURL=delete.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/webhook/delete.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;QACE,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,6BAA6B;KAC3C;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAll.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/webhook/getAll.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB,EAEjD,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.webhookFields = exports.webhookOperations = void 0;
|
|
4
|
+
const getAll_operation_1 = require("./getAll.operation");
|
|
5
|
+
const create_operation_1 = require("./create.operation");
|
|
6
|
+
const update_operation_1 = require("./update.operation");
|
|
7
|
+
const delete_operation_1 = require("./delete.operation");
|
|
8
|
+
exports.webhookOperations = {
|
|
9
|
+
displayName: 'Operation',
|
|
10
|
+
name: 'operation',
|
|
11
|
+
type: 'options',
|
|
12
|
+
noDataExpression: true,
|
|
13
|
+
displayOptions: {
|
|
14
|
+
show: {
|
|
15
|
+
resource: ['webhook'],
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
options: [
|
|
19
|
+
{
|
|
20
|
+
name: 'Create',
|
|
21
|
+
value: 'create',
|
|
22
|
+
description: 'Create a new webhook',
|
|
23
|
+
action: 'Create a webhook',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'Delete',
|
|
27
|
+
value: 'delete',
|
|
28
|
+
description: 'Delete a webhook',
|
|
29
|
+
action: 'Delete a webhook',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'Get Many',
|
|
33
|
+
value: 'getAll',
|
|
34
|
+
description: 'Get all webhooks in the account',
|
|
35
|
+
action: 'Get all webhooks',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'Update',
|
|
39
|
+
value: 'update',
|
|
40
|
+
description: 'Update a webhook',
|
|
41
|
+
action: 'Update a webhook',
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
default: 'getAll',
|
|
45
|
+
};
|
|
46
|
+
exports.webhookFields = [
|
|
47
|
+
...getAll_operation_1.getAllOperation,
|
|
48
|
+
...create_operation_1.createOperation,
|
|
49
|
+
...update_operation_1.updateOperation,
|
|
50
|
+
...delete_operation_1.deleteOperation,
|
|
51
|
+
];
|
|
52
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/webhook/index.ts"],"names":[],"mappings":";;;AACA,yDAAqD;AACrD,yDAAqD;AACrD,yDAAqD;AACrD,yDAAqD;AAExC,QAAA,iBAAiB,GAAoB;IAChD,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE;QACd,IAAI,EAAE;YACJ,QAAQ,EAAE,CAAC,SAAS,CAAC;SACtB;KACF;IACD,OAAO,EAAE;QACP;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,sBAAsB;YACnC,MAAM,EAAE,kBAAkB;SAC3B;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,kBAAkB;YAC/B,MAAM,EAAE,kBAAkB;SAC3B;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,iCAAiC;YAC9C,MAAM,EAAE,kBAAkB;SAC3B;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,kBAAkB;YAC/B,MAAM,EAAE,kBAAkB;SAC3B;KACF;IACD,OAAO,EAAE,QAAQ;CAClB,CAAC;AAEW,QAAA,aAAa,GAAsB;IAC9C,GAAG,kCAAe;IAClB,GAAG,kCAAe;IAClB,GAAG,kCAAe;IAClB,GAAG,kCAAe;CACnB,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateOperation = void 0;
|
|
4
|
+
exports.updateOperation = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Webhook ID',
|
|
7
|
+
name: 'webhookId',
|
|
8
|
+
type: 'number',
|
|
9
|
+
required: true,
|
|
10
|
+
default: 0,
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['webhook'],
|
|
14
|
+
operation: ['update'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
description: 'ID of the webhook to update',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
displayName: 'Update Fields',
|
|
21
|
+
name: 'updateFields',
|
|
22
|
+
type: 'collection',
|
|
23
|
+
placeholder: 'Add Field',
|
|
24
|
+
default: {},
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['webhook'],
|
|
28
|
+
operation: ['update'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
options: [
|
|
32
|
+
{
|
|
33
|
+
displayName: 'Webhook URL',
|
|
34
|
+
name: 'url',
|
|
35
|
+
type: 'string',
|
|
36
|
+
default: '',
|
|
37
|
+
description: 'URL where webhook events will be sent',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
displayName: 'Subscriptions',
|
|
41
|
+
name: 'subscriptions',
|
|
42
|
+
type: 'multiOptions',
|
|
43
|
+
options: [
|
|
44
|
+
{ name: 'Contact Created', value: 'contact_created' },
|
|
45
|
+
{ name: 'Contact Updated', value: 'contact_updated' },
|
|
46
|
+
{ name: 'Conversation Created', value: 'conversation_created' },
|
|
47
|
+
{ name: 'Conversation Status Changed', value: 'conversation_status_changed' },
|
|
48
|
+
{ name: 'Conversation Updated', value: 'conversation_updated' },
|
|
49
|
+
{ name: 'Message Created', value: 'message_created' },
|
|
50
|
+
{ name: 'Message Updated', value: 'message_updated' },
|
|
51
|
+
{ name: 'Webwidget Triggered', value: 'webwidget_triggered' },
|
|
52
|
+
],
|
|
53
|
+
default: [],
|
|
54
|
+
description: 'Events that will trigger this webhook',
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
];
|
|
59
|
+
//# sourceMappingURL=update.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/webhook/update.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;QACE,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,6BAA6B;KAC3C;IACD;QACE,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,OAAO,EAAE;YACP;gBACE,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,uCAAuC;aACrD;YACD;gBACE,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,cAAc;gBACpB,OAAO,EAAE;oBACP,EAAE,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,iBAAiB,EAAE;oBACrD,EAAE,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,iBAAiB,EAAE;oBACrD,EAAE,IAAI,EAAE,sBAAsB,EAAE,KAAK,EAAE,sBAAsB,EAAE;oBAC/D,EAAE,IAAI,EAAE,6BAA6B,EAAE,KAAK,EAAE,6BAA6B,EAAE;oBAC7E,EAAE,IAAI,EAAE,sBAAsB,EAAE,KAAK,EAAE,sBAAsB,EAAE;oBAC/D,EAAE,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,iBAAiB,EAAE;oBACrD,EAAE,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,iBAAiB,EAAE;oBACrD,EAAE,IAAI,EAAE,qBAAqB,EAAE,KAAK,EAAE,qBAAqB,EAAE;iBAC9D;gBACD,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,uCAAuC;aACrD;SACF;KACF;CACF,CAAC"}
|