@renatoascencio/n8n-nodes-chatwoot 0.1.1
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/LICENSE +21 -0
- package/README.md +186 -0
- package/dist/credentials/ChatwootApi.credentials.d.ts +9 -0
- package/dist/credentials/ChatwootApi.credentials.js +63 -0
- package/dist/credentials/ChatwootApi.credentials.js.map +1 -0
- package/dist/nodes/Chatwoot/Chatwoot.node.d.ts +5 -0
- package/dist/nodes/Chatwoot/Chatwoot.node.js +284 -0
- package/dist/nodes/Chatwoot/Chatwoot.node.js.map +1 -0
- package/dist/nodes/Chatwoot/GenericFunctions.d.ts +6 -0
- package/dist/nodes/Chatwoot/GenericFunctions.js +160 -0
- package/dist/nodes/Chatwoot/GenericFunctions.js.map +1 -0
- package/dist/nodes/Chatwoot/chatwoot.svg +7 -0
- package/dist/nodes/Chatwoot/resources/contact/create.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/contact/create.operation.js +78 -0
- package/dist/nodes/Chatwoot/resources/contact/create.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/contact/delete.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/contact/delete.operation.js +20 -0
- package/dist/nodes/Chatwoot/resources/contact/delete.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/contact/get.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/contact/get.operation.js +20 -0
- package/dist/nodes/Chatwoot/resources/contact/get.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/contact/getAll.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/contact/getAll.operation.js +93 -0
- package/dist/nodes/Chatwoot/resources/contact/getAll.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/contact/index.d.ts +3 -0
- package/dist/nodes/Chatwoot/resources/contact/index.js +68 -0
- package/dist/nodes/Chatwoot/resources/contact/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/contact/search.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/contact/search.operation.js +107 -0
- package/dist/nodes/Chatwoot/resources/contact/search.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/contact/update.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/contact/update.operation.js +86 -0
- package/dist/nodes/Chatwoot/resources/contact/update.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/conversation/get.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/conversation/get.operation.js +20 -0
- package/dist/nodes/Chatwoot/resources/conversation/get.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/conversation/getAll.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/conversation/getAll.operation.js +145 -0
- package/dist/nodes/Chatwoot/resources/conversation/getAll.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/conversation/index.d.ts +3 -0
- package/dist/nodes/Chatwoot/resources/conversation/index.js +44 -0
- package/dist/nodes/Chatwoot/resources/conversation/index.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/conversation/updateStatus.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/conversation/updateStatus.operation.js +70 -0
- package/dist/nodes/Chatwoot/resources/conversation/updateStatus.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/message/create.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/message/create.operation.js +117 -0
- package/dist/nodes/Chatwoot/resources/message/create.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/message/getAll.operation.d.ts +2 -0
- package/dist/nodes/Chatwoot/resources/message/getAll.operation.js +51 -0
- package/dist/nodes/Chatwoot/resources/message/getAll.operation.js.map +1 -0
- package/dist/nodes/Chatwoot/resources/message/index.d.ts +3 -0
- package/dist/nodes/Chatwoot/resources/message/index.js +33 -0
- package/dist/nodes/Chatwoot/resources/message/index.js.map +1 -0
- package/dist/nodes/Chatwoot/types.d.ts +99 -0
- package/dist/nodes/Chatwoot/types.js +3 -0
- package/dist/nodes/Chatwoot/types.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +78 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateOperation = void 0;
|
|
4
|
+
exports.updateOperation = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Contact ID',
|
|
7
|
+
name: 'contactId',
|
|
8
|
+
type: 'number',
|
|
9
|
+
required: true,
|
|
10
|
+
default: 0,
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['contact'],
|
|
14
|
+
operation: ['update'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
description: 'The ID of the contact 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: ['contact'],
|
|
28
|
+
operation: ['update'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
options: [
|
|
32
|
+
{
|
|
33
|
+
displayName: 'Avatar URL',
|
|
34
|
+
name: 'avatar_url',
|
|
35
|
+
type: 'string',
|
|
36
|
+
default: '',
|
|
37
|
+
description: 'URL of the contact avatar image',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
displayName: 'Blocked',
|
|
41
|
+
name: 'blocked',
|
|
42
|
+
type: 'boolean',
|
|
43
|
+
default: false,
|
|
44
|
+
description: 'Whether the contact is blocked',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
displayName: 'Custom Attributes',
|
|
48
|
+
name: 'custom_attributes',
|
|
49
|
+
type: 'json',
|
|
50
|
+
default: '{}',
|
|
51
|
+
description: 'Custom attributes as a JSON object',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
displayName: 'Email',
|
|
55
|
+
name: 'email',
|
|
56
|
+
type: 'string',
|
|
57
|
+
placeholder: 'name@email.com',
|
|
58
|
+
default: '',
|
|
59
|
+
description: 'Email address of the contact',
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
displayName: 'Identifier',
|
|
63
|
+
name: 'identifier',
|
|
64
|
+
type: 'string',
|
|
65
|
+
default: '',
|
|
66
|
+
description: 'External identifier for the contact',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
displayName: 'Name',
|
|
70
|
+
name: 'name',
|
|
71
|
+
type: 'string',
|
|
72
|
+
default: '',
|
|
73
|
+
description: 'Full name of the contact',
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
displayName: 'Phone Number',
|
|
77
|
+
name: 'phone_number',
|
|
78
|
+
type: 'string',
|
|
79
|
+
placeholder: '+1234567890',
|
|
80
|
+
default: '',
|
|
81
|
+
description: 'Phone number with country code',
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
},
|
|
85
|
+
];
|
|
86
|
+
//# sourceMappingURL=update.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/contact/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,iCAAiC;KAC/C;IACD;QACE,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,YAAY;QAClB,WAAW,EA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+1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getOperation = void 0;
|
|
4
|
+
exports.getOperation = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Conversation ID',
|
|
7
|
+
name: 'conversationId',
|
|
8
|
+
type: 'number',
|
|
9
|
+
required: true,
|
|
10
|
+
default: 0,
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['conversation'],
|
|
14
|
+
operation: ['get'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
description: 'The ID of the conversation to retrieve',
|
|
18
|
+
},
|
|
19
|
+
];
|
|
20
|
+
//# sourceMappingURL=get.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/conversation/get.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,YAAY,GAAsB;IAC7C;QACE,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,KAAK,CAAC;aACnB;SACF;QACD,WAAW,EAAE,wCAAwC;KACtD;CACF,CAAC"}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAllOperation = void 0;
|
|
4
|
+
exports.getAllOperation = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Return All',
|
|
7
|
+
name: 'returnAll',
|
|
8
|
+
type: 'boolean',
|
|
9
|
+
default: false,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['conversation'],
|
|
13
|
+
operation: ['getAll'],
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
displayName: 'Limit',
|
|
20
|
+
name: 'limit',
|
|
21
|
+
type: 'number',
|
|
22
|
+
default: 50,
|
|
23
|
+
typeOptions: {
|
|
24
|
+
minValue: 1,
|
|
25
|
+
maxValue: 100,
|
|
26
|
+
},
|
|
27
|
+
displayOptions: {
|
|
28
|
+
show: {
|
|
29
|
+
resource: ['conversation'],
|
|
30
|
+
operation: ['getAll'],
|
|
31
|
+
returnAll: [false],
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
description: 'Max number of results to return',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
displayName: 'Filters',
|
|
38
|
+
name: 'filters',
|
|
39
|
+
type: 'collection',
|
|
40
|
+
placeholder: 'Add Filter',
|
|
41
|
+
default: {},
|
|
42
|
+
displayOptions: {
|
|
43
|
+
show: {
|
|
44
|
+
resource: ['conversation'],
|
|
45
|
+
operation: ['getAll'],
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
options: [
|
|
49
|
+
{
|
|
50
|
+
displayName: 'Assignee Type',
|
|
51
|
+
name: 'assignee_type',
|
|
52
|
+
type: 'options',
|
|
53
|
+
default: 'all',
|
|
54
|
+
options: [
|
|
55
|
+
{
|
|
56
|
+
name: 'All',
|
|
57
|
+
value: 'all',
|
|
58
|
+
description: 'All conversations regardless of assignee',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: 'Assigned',
|
|
62
|
+
value: 'assigned',
|
|
63
|
+
description: 'Conversations assigned to any agent',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: 'Me',
|
|
67
|
+
value: 'me',
|
|
68
|
+
description: 'Conversations assigned to the current user',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: 'Unassigned',
|
|
72
|
+
value: 'unassigned',
|
|
73
|
+
description: 'Conversations without an assignee',
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
description: 'Filter by assignee type',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
displayName: 'Inbox ID',
|
|
80
|
+
name: 'inbox_id',
|
|
81
|
+
type: 'number',
|
|
82
|
+
default: 0,
|
|
83
|
+
description: 'Filter by specific inbox ID',
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
displayName: 'Labels',
|
|
87
|
+
name: 'labels',
|
|
88
|
+
type: 'string',
|
|
89
|
+
default: '',
|
|
90
|
+
placeholder: 'bug, urgent, vip',
|
|
91
|
+
description: 'Comma-separated list of labels to filter by',
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
displayName: 'Search Query',
|
|
95
|
+
name: 'q',
|
|
96
|
+
type: 'string',
|
|
97
|
+
default: '',
|
|
98
|
+
placeholder: 'Search text...',
|
|
99
|
+
description: 'Search conversations by message content',
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
displayName: 'Status',
|
|
103
|
+
name: 'status',
|
|
104
|
+
type: 'options',
|
|
105
|
+
default: 'all',
|
|
106
|
+
options: [
|
|
107
|
+
{
|
|
108
|
+
name: 'All',
|
|
109
|
+
value: 'all',
|
|
110
|
+
description: 'All conversations',
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
name: 'Open',
|
|
114
|
+
value: 'open',
|
|
115
|
+
description: 'Active conversations',
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: 'Pending',
|
|
119
|
+
value: 'pending',
|
|
120
|
+
description: 'Conversations awaiting response',
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
name: 'Resolved',
|
|
124
|
+
value: 'resolved',
|
|
125
|
+
description: 'Completed conversations',
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: 'Snoozed',
|
|
129
|
+
value: 'snoozed',
|
|
130
|
+
description: 'Temporarily hidden conversations',
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
description: 'Filter by conversation status',
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
displayName: 'Team ID',
|
|
137
|
+
name: 'team_id',
|
|
138
|
+
type: 'number',
|
|
139
|
+
default: 0,
|
|
140
|
+
description: 'Filter by specific team ID',
|
|
141
|
+
},
|
|
142
|
+
],
|
|
143
|
+
},
|
|
144
|
+
];
|
|
145
|
+
//# sourceMappingURL=getAll.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAll.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/conversation/getAll.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;QACE,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,2DAA2D;KACzE;IACD;QACE,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE;YACX,QAAQ,EAAE,CAAC;YACX,QAAQ,EAAE,GAAG;SACd;QACD,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,QAAQ,CAAC;gBACrB,SAAS,EAAE,CAAC,KAAK,CAAC;aACnB;SACF;QACD,WAAW,EAAE,iCAAiC;KAC/C;IACD;QACE,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ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,KAAK;wBACX,KAAK,EAAE,KAAK;wBACZ,WAAW,EAAE,mBAAmB;qBACjC;oBACD;wBACE,IAAI,EAAE,MAAM;wBACZ,KAAK,EAAE,MAAM;wBACb,WAAW,EAAE,sBAAsB;qBACpC;oBACD;wBACE,IAAI,EAAE,SAAS;wBACf,KAAK,EAAE,SAAS;wBAChB,WAAW,EAAE,iCAAiC;qBAC/C;oBACD;wBACE,IAAI,EAAE,UAAU;wBAChB,KAAK,EAAE,UAAU;wBACjB,WAAW,EAAE,yBAAyB;qBACvC;oBACD;wBACE,IAAI,EAAE,SAAS;wBACf,KAAK,EAAE,SAAS;wBAChB,WAAW,EAAE,kCAAkC;qBAChD;iBACF;gBACD,WAAW,EAAE,+BAA+B;aAC7C;YACD;gBACE,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC;gBACV,WAAW,EAAE,4BAA4B;aAC1C;SACF;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.conversationFields = exports.conversationOperations = void 0;
|
|
4
|
+
const get_operation_1 = require("./get.operation");
|
|
5
|
+
const getAll_operation_1 = require("./getAll.operation");
|
|
6
|
+
const updateStatus_operation_1 = require("./updateStatus.operation");
|
|
7
|
+
exports.conversationOperations = {
|
|
8
|
+
displayName: 'Operation',
|
|
9
|
+
name: 'operation',
|
|
10
|
+
type: 'options',
|
|
11
|
+
noDataExpression: true,
|
|
12
|
+
displayOptions: {
|
|
13
|
+
show: {
|
|
14
|
+
resource: ['conversation'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
options: [
|
|
18
|
+
{
|
|
19
|
+
name: 'Get',
|
|
20
|
+
value: 'get',
|
|
21
|
+
description: 'Get a conversation by ID',
|
|
22
|
+
action: 'Get a conversation',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: 'Get Many',
|
|
26
|
+
value: 'getAll',
|
|
27
|
+
description: 'Get many conversations with optional filters',
|
|
28
|
+
action: 'Get many conversations',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: 'Update Status',
|
|
32
|
+
value: 'updateStatus',
|
|
33
|
+
description: 'Update conversation status (open, resolved, pending, snoozed)',
|
|
34
|
+
action: 'Update conversation status',
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
default: 'getAll',
|
|
38
|
+
};
|
|
39
|
+
exports.conversationFields = [
|
|
40
|
+
...get_operation_1.getOperation,
|
|
41
|
+
...getAll_operation_1.getAllOperation,
|
|
42
|
+
...updateStatus_operation_1.updateStatusOperation,
|
|
43
|
+
];
|
|
44
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/conversation/index.ts"],"names":[],"mappings":";;;AACA,mDAA+C;AAC/C,yDAAqD;AACrD,qEAAiE;AAEpD,QAAA,sBAAsB,GAAoB;IACrD,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,cAAc,CAAC;SAC3B;KACF;IACD,OAAO,EAAE;QACP;YACE,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,KAAK;YACZ,WAAW,EAAE,0BAA0B;YACvC,MAAM,EAAE,oBAAoB;SAC7B;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,8CAA8C;YAC3D,MAAM,EAAE,wBAAwB;SACjC;QACD;YACE,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,cAAc;YACrB,WAAW,EAAE,+DAA+D;YAC5E,MAAM,EAAE,4BAA4B;SACrC;KACF;IACD,OAAO,EAAE,QAAQ;CAClB,CAAC;AAEW,QAAA,kBAAkB,GAAsB;IACnD,GAAG,4BAAY;IACf,GAAG,kCAAe;IAClB,GAAG,8CAAqB;CACzB,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateStatusOperation = void 0;
|
|
4
|
+
exports.updateStatusOperation = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Conversation ID',
|
|
7
|
+
name: 'conversationId',
|
|
8
|
+
type: 'number',
|
|
9
|
+
required: true,
|
|
10
|
+
default: 0,
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['conversation'],
|
|
14
|
+
operation: ['updateStatus'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
description: 'The ID of the conversation to update',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
displayName: 'Status',
|
|
21
|
+
name: 'status',
|
|
22
|
+
type: 'options',
|
|
23
|
+
required: true,
|
|
24
|
+
default: 'open',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['conversation'],
|
|
28
|
+
operation: ['updateStatus'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
options: [
|
|
32
|
+
{
|
|
33
|
+
name: 'Open',
|
|
34
|
+
value: 'open',
|
|
35
|
+
description: 'Mark conversation as active',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'Pending',
|
|
39
|
+
value: 'pending',
|
|
40
|
+
description: 'Mark conversation as pending response',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'Resolved',
|
|
44
|
+
value: 'resolved',
|
|
45
|
+
description: 'Mark conversation as completed',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: 'Snoozed',
|
|
49
|
+
value: 'snoozed',
|
|
50
|
+
description: 'Temporarily hide the conversation',
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
description: 'The new status for the conversation',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
displayName: 'Snooze Until',
|
|
57
|
+
name: 'snoozed_until',
|
|
58
|
+
type: 'dateTime',
|
|
59
|
+
default: '',
|
|
60
|
+
displayOptions: {
|
|
61
|
+
show: {
|
|
62
|
+
resource: ['conversation'],
|
|
63
|
+
operation: ['updateStatus'],
|
|
64
|
+
status: ['snoozed'],
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
description: 'When to unsnooze the conversation (required when status is snoozed)',
|
|
68
|
+
},
|
|
69
|
+
];
|
|
70
|
+
//# sourceMappingURL=updateStatus.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateStatus.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/conversation/updateStatus.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,qBAAqB,GAAsB;IACtD;QACE,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,CAAC;QACV,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,cAAc,CAAC;aAC5B;SACF;QACD,WAAW,EAAE,sCAAsC;KACpD;IACD;QACE,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,MAAM;QACf,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,cAAc,CAAC;aAC5B;SACF;QACD,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,MAAM;gBACb,WAAW,EAAE,6BAA6B;aAC3C;YACD;gBACE,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,uCAAuC;aACrD;YACD;gBACE,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,UAAU;gBACjB,WAAW,EAAE,gCAAgC;aAC9C;YACD;gBACE,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,mCAAmC;aACjD;SACF;QACD,WAAW,EAAE,qCAAqC;KACnD;IACD;QACE,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,cAAc,CAAC;gBAC1B,SAAS,EAAE,CAAC,cAAc,CAAC;gBAC3B,MAAM,EAAE,CAAC,SAAS,CAAC;aACpB;SACF;QACD,WAAW,EAAE,qEAAqE;KACnF;CACF,CAAC"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createOperation = void 0;
|
|
4
|
+
exports.createOperation = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Conversation ID',
|
|
7
|
+
name: 'conversationId',
|
|
8
|
+
type: 'number',
|
|
9
|
+
required: true,
|
|
10
|
+
default: 0,
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['message'],
|
|
14
|
+
operation: ['create'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
description: 'The ID of the conversation to send the message to',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
displayName: 'Content',
|
|
21
|
+
name: 'content',
|
|
22
|
+
type: 'string',
|
|
23
|
+
required: true,
|
|
24
|
+
default: '',
|
|
25
|
+
typeOptions: {
|
|
26
|
+
rows: 4,
|
|
27
|
+
},
|
|
28
|
+
displayOptions: {
|
|
29
|
+
show: {
|
|
30
|
+
resource: ['message'],
|
|
31
|
+
operation: ['create'],
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
description: 'The message content to send',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
displayName: 'Options',
|
|
38
|
+
name: 'options',
|
|
39
|
+
type: 'collection',
|
|
40
|
+
placeholder: 'Add Option',
|
|
41
|
+
default: {},
|
|
42
|
+
displayOptions: {
|
|
43
|
+
show: {
|
|
44
|
+
resource: ['message'],
|
|
45
|
+
operation: ['create'],
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
options: [
|
|
49
|
+
{
|
|
50
|
+
displayName: 'Content Type',
|
|
51
|
+
name: 'content_type',
|
|
52
|
+
type: 'options',
|
|
53
|
+
default: 'text',
|
|
54
|
+
options: [
|
|
55
|
+
{
|
|
56
|
+
name: 'Text',
|
|
57
|
+
value: 'text',
|
|
58
|
+
description: 'Plain text message',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: 'Article',
|
|
62
|
+
value: 'article',
|
|
63
|
+
description: 'Article/rich content',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: 'Cards',
|
|
67
|
+
value: 'cards',
|
|
68
|
+
description: 'Card-based layout',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: 'Form',
|
|
72
|
+
value: 'form',
|
|
73
|
+
description: 'Form input',
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: 'Input Email',
|
|
77
|
+
value: 'input_email',
|
|
78
|
+
description: 'Email input request',
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: 'Input Select',
|
|
82
|
+
value: 'input_select',
|
|
83
|
+
description: 'Selection input',
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
description: 'The type of content being sent',
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
displayName: 'Message Type',
|
|
90
|
+
name: 'message_type',
|
|
91
|
+
type: 'options',
|
|
92
|
+
default: 'outgoing',
|
|
93
|
+
options: [
|
|
94
|
+
{
|
|
95
|
+
name: 'Outgoing',
|
|
96
|
+
value: 'outgoing',
|
|
97
|
+
description: 'Message sent by agent (default)',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: 'Incoming',
|
|
101
|
+
value: 'incoming',
|
|
102
|
+
description: 'Message received from contact',
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
description: 'The direction of the message',
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
displayName: 'Private Note',
|
|
109
|
+
name: 'private',
|
|
110
|
+
type: 'boolean',
|
|
111
|
+
default: false,
|
|
112
|
+
description: 'Whether to send as a private note (only visible to agents)',
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
},
|
|
116
|
+
];
|
|
117
|
+
//# sourceMappingURL=create.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/message/create.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;QACE,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,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,mDAAmD;KACjE;IACD;QACE,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE;YACX,IAAI,EAAE,CAAC;SACR;QACD,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB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,iCAAiC;qBAC/C;oBACD;wBACE,IAAI,EAAE,UAAU;wBAChB,KAAK,EAAE,UAAU;wBACjB,WAAW,EAAE,+BAA+B;qBAC7C;iBACF;gBACD,WAAW,EAAE,8BAA8B;aAC5C;YACD;gBACE,WAAW,EAAE,cAAc;gBAC3B,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,4DAA4D;aAC1E;SACF;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAllOperation = void 0;
|
|
4
|
+
exports.getAllOperation = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Conversation ID',
|
|
7
|
+
name: 'conversationId',
|
|
8
|
+
type: 'number',
|
|
9
|
+
required: true,
|
|
10
|
+
default: 0,
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['message'],
|
|
14
|
+
operation: ['getAll'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
description: 'The ID of the conversation to get messages from',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
displayName: 'Return All',
|
|
21
|
+
name: 'returnAll',
|
|
22
|
+
type: 'boolean',
|
|
23
|
+
default: false,
|
|
24
|
+
displayOptions: {
|
|
25
|
+
show: {
|
|
26
|
+
resource: ['message'],
|
|
27
|
+
operation: ['getAll'],
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
description: 'Whether to return all messages or only up to a given limit',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
displayName: 'Limit',
|
|
34
|
+
name: 'limit',
|
|
35
|
+
type: 'number',
|
|
36
|
+
default: 50,
|
|
37
|
+
typeOptions: {
|
|
38
|
+
minValue: 1,
|
|
39
|
+
maxValue: 500,
|
|
40
|
+
},
|
|
41
|
+
displayOptions: {
|
|
42
|
+
show: {
|
|
43
|
+
resource: ['message'],
|
|
44
|
+
operation: ['getAll'],
|
|
45
|
+
returnAll: [false],
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
description: 'Max number of messages to return',
|
|
49
|
+
},
|
|
50
|
+
];
|
|
51
|
+
//# sourceMappingURL=getAll.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAll.operation.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/message/getAll.operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAsB;IAChD;QACE,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,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,iDAAiD;KAC/D;IACD;QACE,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,4DAA4D;KAC1E;IACD;QACE,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE;YACX,QAAQ,EAAE,CAAC;YACX,QAAQ,EAAE,GAAG;SACd;QACD,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;gBACrB,SAAS,EAAE,CAAC,KAAK,CAAC;aACnB;SACF;QACD,WAAW,EAAE,kCAAkC;KAChD;CACF,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.messageFields = exports.messageOperations = void 0;
|
|
4
|
+
const create_operation_1 = require("./create.operation");
|
|
5
|
+
const getAll_operation_1 = require("./getAll.operation");
|
|
6
|
+
exports.messageOperations = {
|
|
7
|
+
displayName: 'Operation',
|
|
8
|
+
name: 'operation',
|
|
9
|
+
type: 'options',
|
|
10
|
+
noDataExpression: true,
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['message'],
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
options: [
|
|
17
|
+
{
|
|
18
|
+
name: 'Create',
|
|
19
|
+
value: 'create',
|
|
20
|
+
description: 'Send a message to a conversation',
|
|
21
|
+
action: 'Send a message',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: 'Get Many',
|
|
25
|
+
value: 'getAll',
|
|
26
|
+
description: 'Get messages from a conversation',
|
|
27
|
+
action: 'Get messages from conversation',
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
default: 'create',
|
|
31
|
+
};
|
|
32
|
+
exports.messageFields = [...create_operation_1.createOperation, ...getAll_operation_1.getAllOperation];
|
|
33
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Chatwoot/resources/message/index.ts"],"names":[],"mappings":";;;AACA,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,kCAAkC;YAC/C,MAAM,EAAE,gBAAgB;SACzB;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,kCAAkC;YAC/C,MAAM,EAAE,gCAAgC;SACzC;KACF;IACD,OAAO,EAAE,QAAQ;CAClB,CAAC;AAEW,QAAA,aAAa,GAAsB,CAAC,GAAG,kCAAe,EAAE,GAAG,kCAAe,CAAC,CAAC"}
|