@connectorx/n8n-nodes-cortex 0.1.20 → 0.1.22
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/dist/nodes/Cortex/Cortex.node.js +15 -4
- package/package.json +46 -46
|
@@ -230,7 +230,10 @@ class Cortex {
|
|
|
230
230
|
{
|
|
231
231
|
displayName: 'Sender ID',
|
|
232
232
|
name: 'sender_id',
|
|
233
|
-
type: '
|
|
233
|
+
type: 'options',
|
|
234
|
+
typeOptions: {
|
|
235
|
+
loadOptionsMethod: 'getUsers',
|
|
236
|
+
},
|
|
234
237
|
displayOptions: {
|
|
235
238
|
show: {
|
|
236
239
|
resource: ['message'],
|
|
@@ -479,9 +482,17 @@ class Cortex {
|
|
|
479
482
|
if (operation === 'send') {
|
|
480
483
|
options.uri = `${baseUrl}/messages/send`;
|
|
481
484
|
const msgType = this.getNodeParameter('msg_type', i);
|
|
482
|
-
const senderId = this.getNodeParameter('sender_id', i);
|
|
483
|
-
|
|
484
|
-
|
|
485
|
+
const senderId = this.getNodeParameter('sender_id', i, '');
|
|
486
|
+
let replyTo = '';
|
|
487
|
+
try {
|
|
488
|
+
replyTo = this.getNodeParameter('reply_to_message_id', i, '');
|
|
489
|
+
}
|
|
490
|
+
catch (_e) { }
|
|
491
|
+
let reactTo = '';
|
|
492
|
+
try {
|
|
493
|
+
reactTo = this.getNodeParameter('react_to_message_id', i, '');
|
|
494
|
+
}
|
|
495
|
+
catch (_e) { }
|
|
485
496
|
let content = '';
|
|
486
497
|
let caption = '';
|
|
487
498
|
if (['text', 'internal_note', 'reaction'].includes(msgType)) {
|
package/package.json
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"name": "@connectorx/n8n-nodes-cortex",
|
|
3
|
+
"version": "0.1.22",
|
|
4
|
+
"description": "n8n nodes for Cortex API",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"n8n-community-node-package"
|
|
7
|
+
],
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"author": {
|
|
10
|
+
"name": "Adriano Azevedo",
|
|
11
|
+
"email": "adriano@connectorx.com.br"
|
|
12
|
+
},
|
|
13
|
+
"main": "index.js",
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "node node_modules/typescript/lib/tsc.js && npm run copy-files",
|
|
16
|
+
"copy-files": "node node_modules/copyfiles/index.js -u 1 \"nodes/**/*.svg\" \"nodes/**/*.png\" dist/nodes && node node_modules/copyfiles/index.js -u 1 \"credentials/**/*.svg\" \"credentials/**/*.png\" dist/credentials",
|
|
17
|
+
"dev": "tsc --watch",
|
|
18
|
+
"lint": "eslint nodes credentials --ext .ts",
|
|
19
|
+
"prepublishOnly": "npm run build"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
24
|
+
"n8n": {
|
|
25
|
+
"nodes": [
|
|
26
|
+
"dist/nodes/Cortex/Cortex.node.js",
|
|
27
|
+
"dist/nodes/Cortex/CortexTrigger.node.js"
|
|
7
28
|
],
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
],
|
|
29
|
-
"credentials": [
|
|
30
|
-
"dist/credentials/CortexApi.credentials.js"
|
|
31
|
-
]
|
|
32
|
-
},
|
|
33
|
-
"devDependencies": {
|
|
34
|
-
"@types/express": "^4.17.6",
|
|
35
|
-
"@types/node": "^14.14.41",
|
|
36
|
-
"@types/request-promise-native": "~1.0.15",
|
|
37
|
-
"@typescript-eslint/parser": "~4.22.0",
|
|
38
|
-
"copyfiles": "^2.4.1",
|
|
39
|
-
"eslint": "~7.25.0",
|
|
40
|
-
"n8n-core": "~0.119.0",
|
|
41
|
-
"n8n-workflow": "~0.119.0",
|
|
42
|
-
"prettier": "^2.2.1",
|
|
43
|
-
"typescript": "~4.2.4"
|
|
44
|
-
},
|
|
45
|
-
"peerDependencies": {
|
|
46
|
-
"n8n-workflow": "*"
|
|
47
|
-
}
|
|
48
|
-
}
|
|
29
|
+
"credentials": [
|
|
30
|
+
"dist/credentials/CortexApi.credentials.js"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@types/express": "^4.17.6",
|
|
35
|
+
"@types/node": "^14.14.41",
|
|
36
|
+
"@types/request-promise-native": "~1.0.15",
|
|
37
|
+
"@typescript-eslint/parser": "~4.22.0",
|
|
38
|
+
"copyfiles": "^2.4.1",
|
|
39
|
+
"eslint": "~7.25.0",
|
|
40
|
+
"n8n-core": "~0.119.0",
|
|
41
|
+
"n8n-workflow": "~0.119.0",
|
|
42
|
+
"prettier": "^2.2.1",
|
|
43
|
+
"typescript": "~4.2.4"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"n8n-workflow": "*"
|
|
47
|
+
}
|
|
48
|
+
}
|