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.
@@ -1,29 +1,27 @@
1
1
  class ChatflowApi {
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
- ];
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
- // 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
- }
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.ChatflowApi = ChatflowApi;
27
+ module.exports = ChatflowApi;
@@ -1,29 +1,27 @@
1
1
  class ChatflowApi {
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
- ];
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
- // 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
- }
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.ChatflowApi = ChatflowApi;
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
- constructor() {
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.ChatflowMessage = ChatflowMessage;
120
+ module.exports = ChatflowMessage;
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
- constructor() {
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.ChatflowMessage = ChatflowMessage;
120
+ module.exports = ChatflowMessage;
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-chatflow",
3
- "version": "0.1.7",
3
+ "version": "0.2.1",
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",