n8n-nodes-mbkchat 0.1.0

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/README.md ADDED
@@ -0,0 +1,62 @@
1
+ # n8n-nodes-mbkchat
2
+
3
+ This is an n8n node for connecting to WuzAPI (MBKChat).
4
+
5
+ ## Installation
6
+
7
+ To install this node in your n8n installation, verify you have **Node.js** and **npm** installed.
8
+
9
+ 1. **Build the project**:
10
+ Open a terminal in this directory (`n8n-nodes-mbkchat`) and run:
11
+ ```bash
12
+ npm install
13
+ npm run build
14
+ ```
15
+
16
+ 2. **Link the package**:
17
+ Can be linked locally:
18
+ ```bash
19
+ npm link
20
+ ```
21
+
22
+ 3. **Install in n8n**:
23
+ Go to your n8n configuration directory (usually `~/.n8n` or `%USERPROFILE%\.n8n`) and run:
24
+ ```bash
25
+ npm link n8n-nodes-mbkchat
26
+ ```
27
+
28
+ 4. **Restart n8n**:
29
+ Restart your n8n server. You should see "MBKChat (WuzAPI)" in the nodes list.
30
+
31
+ ## Credentials
32
+
33
+ You will need to create a new Credential of type "WuzAPI API" in n8n.
34
+ - **Base URL**: The URL where your WuzAPI is running (e.g. `http://localhost:8080`).
35
+ - **Token**: Your user token or admin token.
36
+
37
+ ## Operations
38
+
39
+ ### Session
40
+ - **Connect**: Connects to WhatsApp (can subscribe to events).
41
+ - **Disconnect**: Disconnects but keeps session.
42
+ - **Logout**: Logs out and deletes session.
43
+ - **Status**: Checks connection status.
44
+ - **Get QR**: Returns QR Code bas64.
45
+
46
+ ### Chat
47
+ - **Send Text**: Sends simple text messages.
48
+ - **Send Image**: Sends image from Base64 string.
49
+ - **Send Video**: Sends video from Base64 string.
50
+ - **Send Audio**: Sends audio from Base64 string.
51
+ - **Send Document**: Sends document from Base64 string.
52
+
53
+ ### User
54
+ - **Check**: Checks if numbers are registered on WhatsApp.
55
+ - **Info**: Gets detailed user info.
56
+
57
+ ### Group
58
+ - **List**: Lists all subscribed groups.
59
+
60
+ ## License
61
+
62
+ MIT
Binary file
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "n8n-nodes-mbkchat",
3
+ "version": "0.1.0",
4
+ "description": "Native n8n node for MBKChat",
5
+ "keywords": [
6
+ "n8n-community-node-package"
7
+ ],
8
+ "license": "MIT",
9
+ "author": {
10
+ "name": "MBKChat user",
11
+ "email": "mbkchat0@gmail.com"
12
+ },
13
+ "main": "index.js",
14
+ "scripts": {
15
+ "build": "gulp",
16
+ "dev": "gulp watch",
17
+ "lint": "echo 'No linting'",
18
+ "prepublishOnly": "npm run build"
19
+ },
20
+ "files": [
21
+ "dist"
22
+ ],
23
+ "n8n": {
24
+ "credentials": [
25
+ "dist/credentials/WuzApi.credentials.js"
26
+ ],
27
+ "nodes": [
28
+ "dist/nodes/WuzApi/WuzApi.node.js"
29
+ ]
30
+ },
31
+ "devDependencies": {
32
+ "@types/express": "^4.17.6",
33
+ "@types/request-promise-native": "^1.0.17",
34
+ "gulp": "^4.0.2",
35
+ "gulp-typescript": "^5.0.1",
36
+ "n8n-core": "^0.1.0",
37
+ "n8n-workflow": "^0.1.0",
38
+ "tslint": "^6.1.2",
39
+ "typescript": "^4.9.5"
40
+ },
41
+ "dependencies": {
42
+ "request": "^2.88.2",
43
+ "request-promise-native": "^1.0.9"
44
+ }
45
+ }