n8n-nodes-chatflow 0.1.7 → 0.2.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/credentials/ChatflowApi.credentials.js +23 -25
- package/dist/credentials/ChatflowApi.credentials.js +23 -25
- package/dist/index.js +2 -2
- package/dist/nodes/ChatflowMessage.node.js +4 -6
- package/dist/nodes/chatflow.png +0 -0
- package/index.js +2 -2
- package/nodes/ChatflowMessage.node.js +4 -6
- package/nodes/chatflow.png +0 -0
- package/package.json +1 -1
|
@@ -1,29 +1,27 @@
|
|
|
1
1
|
class ChatflowApi {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
];
|
|
2
|
+
static name = 'chatflowApi';
|
|
3
|
+
static displayName = 'Chatflow API';
|
|
4
|
+
static documentationUrl = 'https://app.chatflow.kz';
|
|
5
|
+
static properties = [
|
|
6
|
+
{
|
|
7
|
+
displayName: 'Token',
|
|
8
|
+
name: 'token',
|
|
9
|
+
type: 'string',
|
|
10
|
+
typeOptions: { password: true },
|
|
11
|
+
default: '',
|
|
12
|
+
required: true,
|
|
13
|
+
description: 'API token from Chatflow → Settings → API Access',
|
|
14
|
+
},
|
|
15
|
+
];
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
17
|
+
// Basic test to ensure base URL is reachable
|
|
18
|
+
static test = {
|
|
19
|
+
request: {
|
|
20
|
+
baseURL: 'https://app.chatflow.kz/',
|
|
21
|
+
url: 'ping',
|
|
22
|
+
method: 'GET',
|
|
23
|
+
},
|
|
24
|
+
};
|
|
27
25
|
}
|
|
28
26
|
|
|
29
|
-
exports
|
|
27
|
+
module.exports = ChatflowApi;
|
|
@@ -1,29 +1,27 @@
|
|
|
1
1
|
class ChatflowApi {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
];
|
|
2
|
+
static name = 'chatflowApi';
|
|
3
|
+
static displayName = 'Chatflow API';
|
|
4
|
+
static documentationUrl = 'https://app.chatflow.kz';
|
|
5
|
+
static properties = [
|
|
6
|
+
{
|
|
7
|
+
displayName: 'Token',
|
|
8
|
+
name: 'token',
|
|
9
|
+
type: 'string',
|
|
10
|
+
typeOptions: { password: true },
|
|
11
|
+
default: '',
|
|
12
|
+
required: true,
|
|
13
|
+
description: 'API token from Chatflow → Settings → API Access',
|
|
14
|
+
},
|
|
15
|
+
];
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
17
|
+
// Basic test to ensure base URL is reachable
|
|
18
|
+
static test = {
|
|
19
|
+
request: {
|
|
20
|
+
baseURL: 'https://app.chatflow.kz/',
|
|
21
|
+
url: 'ping',
|
|
22
|
+
method: 'GET',
|
|
23
|
+
},
|
|
24
|
+
};
|
|
27
25
|
}
|
|
28
26
|
|
|
29
|
-
exports
|
|
27
|
+
module.exports = ChatflowApi;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
nodes: ['dist/nodes/ChatflowMessage.node.js'],
|
|
3
|
-
credentials: ['dist/credentials/ChatflowApi.credentials.js']
|
|
2
|
+
nodes: ['n8n-nodes-chatflow/dist/nodes/ChatflowMessage.node.js'],
|
|
3
|
+
credentials: ['n8n-nodes-chatflow/dist/credentials/ChatflowApi.credentials.js']
|
|
4
4
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
class ChatflowMessage {
|
|
2
|
-
|
|
3
|
-
this.description = {
|
|
2
|
+
static description = {
|
|
4
3
|
displayName: 'Chatflow',
|
|
5
4
|
name: 'chatflowMessage',
|
|
6
5
|
icon: 'file:chatflow.png',
|
|
@@ -50,9 +49,8 @@ class ChatflowMessage {
|
|
|
50
49
|
{ displayName: 'Caption', name: 'captionImg', type: 'string', default: '', displayOptions: { show: { operation: ['image'] } } },
|
|
51
50
|
|
|
52
51
|
{ displayName: 'Continue On Fail', name: 'continueOnFail', type: 'boolean', default: true },
|
|
53
|
-
]
|
|
54
|
-
|
|
55
|
-
}
|
|
52
|
+
]
|
|
53
|
+
};
|
|
56
54
|
|
|
57
55
|
async execute() {
|
|
58
56
|
const items = this.getInputData();
|
|
@@ -119,4 +117,4 @@ class ChatflowMessage {
|
|
|
119
117
|
}
|
|
120
118
|
}
|
|
121
119
|
|
|
122
|
-
exports
|
|
120
|
+
module.exports = ChatflowMessage;
|
package/dist/nodes/chatflow.png
CHANGED
|
Binary file
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
nodes: ['dist/nodes/ChatflowMessage.node.js'],
|
|
3
|
-
credentials: ['dist/credentials/ChatflowApi.credentials.js']
|
|
2
|
+
nodes: ['n8n-nodes-chatflow/dist/nodes/ChatflowMessage.node.js'],
|
|
3
|
+
credentials: ['n8n-nodes-chatflow/dist/credentials/ChatflowApi.credentials.js']
|
|
4
4
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
class ChatflowMessage {
|
|
2
|
-
|
|
3
|
-
this.description = {
|
|
2
|
+
static description = {
|
|
4
3
|
displayName: 'Chatflow',
|
|
5
4
|
name: 'chatflowMessage',
|
|
6
5
|
icon: 'file:chatflow.png',
|
|
@@ -50,9 +49,8 @@ class ChatflowMessage {
|
|
|
50
49
|
{ displayName: 'Caption', name: 'captionImg', type: 'string', default: '', displayOptions: { show: { operation: ['image'] } } },
|
|
51
50
|
|
|
52
51
|
{ displayName: 'Continue On Fail', name: 'continueOnFail', type: 'boolean', default: true },
|
|
53
|
-
]
|
|
54
|
-
|
|
55
|
-
}
|
|
52
|
+
]
|
|
53
|
+
};
|
|
56
54
|
|
|
57
55
|
async execute() {
|
|
58
56
|
const items = this.getInputData();
|
|
@@ -119,4 +117,4 @@ class ChatflowMessage {
|
|
|
119
117
|
}
|
|
120
118
|
}
|
|
121
119
|
|
|
122
|
-
exports
|
|
120
|
+
module.exports = ChatflowMessage;
|
package/nodes/chatflow.png
CHANGED
|
Binary file
|
package/package.json
CHANGED