n8n-nodes-chatflow 0.2.1 → 0.2.2
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.
|
@@ -1,27 +1,29 @@
|
|
|
1
1
|
class ChatflowApi {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
2
|
+
constructor() {
|
|
3
|
+
this.name = 'chatflowApi';
|
|
4
|
+
this.displayName = 'Chatflow API';
|
|
5
|
+
this.documentationUrl = 'https://app.chatflow.kz';
|
|
6
|
+
this.properties = [
|
|
7
|
+
{
|
|
8
|
+
displayName: 'Token',
|
|
9
|
+
name: 'token',
|
|
10
|
+
type: 'string',
|
|
11
|
+
typeOptions: { password: true },
|
|
12
|
+
default: '',
|
|
13
|
+
required: true,
|
|
14
|
+
description: 'API token from Chatflow → Settings → API Access',
|
|
15
|
+
},
|
|
16
|
+
];
|
|
16
17
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
// Basic test to ensure base URL is reachable
|
|
19
|
+
this.test = {
|
|
20
|
+
request: {
|
|
21
|
+
baseURL: 'https://app.chatflow.kz/',
|
|
22
|
+
url: 'ping',
|
|
23
|
+
method: 'GET',
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
}
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
module.exports = ChatflowApi;
|
|
@@ -1,27 +1,29 @@
|
|
|
1
1
|
class ChatflowApi {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
2
|
+
constructor() {
|
|
3
|
+
this.name = 'chatflowApi';
|
|
4
|
+
this.displayName = 'Chatflow API';
|
|
5
|
+
this.documentationUrl = 'https://app.chatflow.kz';
|
|
6
|
+
this.properties = [
|
|
7
|
+
{
|
|
8
|
+
displayName: 'Token',
|
|
9
|
+
name: 'token',
|
|
10
|
+
type: 'string',
|
|
11
|
+
typeOptions: { password: true },
|
|
12
|
+
default: '',
|
|
13
|
+
required: true,
|
|
14
|
+
description: 'API token from Chatflow → Settings → API Access',
|
|
15
|
+
},
|
|
16
|
+
];
|
|
16
17
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
// Basic test to ensure base URL is reachable
|
|
19
|
+
this.test = {
|
|
20
|
+
request: {
|
|
21
|
+
baseURL: 'https://app.chatflow.kz/',
|
|
22
|
+
url: 'ping',
|
|
23
|
+
method: 'GET',
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
}
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
module.exports = ChatflowApi;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
class ChatflowMessage {
|
|
2
|
-
|
|
2
|
+
constructor() {
|
|
3
|
+
this.description = {
|
|
3
4
|
displayName: 'Chatflow',
|
|
4
5
|
name: 'chatflowMessage',
|
|
5
6
|
icon: 'file:chatflow.png',
|
|
@@ -50,7 +51,8 @@ class ChatflowMessage {
|
|
|
50
51
|
|
|
51
52
|
{ displayName: 'Continue On Fail', name: 'continueOnFail', type: 'boolean', default: true },
|
|
52
53
|
]
|
|
53
|
-
|
|
54
|
+
};
|
|
55
|
+
}
|
|
54
56
|
|
|
55
57
|
async execute() {
|
|
56
58
|
const items = this.getInputData();
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
class ChatflowMessage {
|
|
2
|
-
|
|
2
|
+
constructor() {
|
|
3
|
+
this.description = {
|
|
3
4
|
displayName: 'Chatflow',
|
|
4
5
|
name: 'chatflowMessage',
|
|
5
6
|
icon: 'file:chatflow.png',
|
|
@@ -50,7 +51,8 @@ class ChatflowMessage {
|
|
|
50
51
|
|
|
51
52
|
{ displayName: 'Continue On Fail', name: 'continueOnFail', type: 'boolean', default: true },
|
|
52
53
|
]
|
|
53
|
-
|
|
54
|
+
};
|
|
55
|
+
}
|
|
54
56
|
|
|
55
57
|
async execute() {
|
|
56
58
|
const items = this.getInputData();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-chatflow",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "n8n community node to send WhatsApp messages via Chatflow API (text, audio, video, document, image)",
|
|
5
5
|
"author": "Chatflow",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"prepublishOnly": "npm run build"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"n8n-core": "^1.
|
|
42
|
-
"n8n-workflow": "^1.
|
|
41
|
+
"n8n-core": "^1.105.0",
|
|
42
|
+
"n8n-workflow": "^1.105.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"cpx": "^1.5.0",
|