n8n-nodes-sqlaccounting 1.1.0 → 1.1.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/LICENSE +21 -21
- package/README.md +52 -0
- package/dist/nodes/SqlAccounting/sqlaccounting.svg +7 -7
- package/package.json +72 -69
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Yew Choong Hau
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Yew Choong Hau
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -90,6 +90,58 @@ Delete returns `{ "success": true, "resource": "...", "deleted": <id> }`.
|
|
|
90
90
|
|
|
91
91
|
---
|
|
92
92
|
|
|
93
|
+
## Example workflows
|
|
94
|
+
|
|
95
|
+
Import with **Workflow menu → Import from URL/File** (or paste into the canvas), then pick your **SQL Accounting API** credential on the node.
|
|
96
|
+
|
|
97
|
+
**1. List every currency**
|
|
98
|
+
|
|
99
|
+
```json
|
|
100
|
+
{
|
|
101
|
+
"nodes": [
|
|
102
|
+
{ "parameters": {}, "name": "Manual Trigger", "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [0, 0] },
|
|
103
|
+
{
|
|
104
|
+
"parameters": { "resource": "currency", "operation": "currency.list", "returnAll": true },
|
|
105
|
+
"name": "List currencies",
|
|
106
|
+
"type": "n8n-nodes-sqlaccounting.sqlAccounting",
|
|
107
|
+
"typeVersion": 1,
|
|
108
|
+
"position": [220, 0],
|
|
109
|
+
"credentials": { "sqlAccountingApi": { "id": "", "name": "SQL Accounting API" } }
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"connections": { "Manual Trigger": { "main": [[{ "node": "List currencies", "type": "main", "index": 0 }]] } }
|
|
113
|
+
}
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
**2. Create a sales quotation with one line**
|
|
117
|
+
|
|
118
|
+
```json
|
|
119
|
+
{
|
|
120
|
+
"nodes": [
|
|
121
|
+
{ "parameters": {}, "name": "Manual Trigger", "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [0, 0] },
|
|
122
|
+
{
|
|
123
|
+
"parameters": {
|
|
124
|
+
"resource": "salesquotation",
|
|
125
|
+
"operation": "salesquotation.create",
|
|
126
|
+
"salesquotation__code": "CUS-01",
|
|
127
|
+
"salesquotation__docdate": "={{ $today.toISODate() }}",
|
|
128
|
+
"salesquotation__lines": { "line": [{ "itemcode": "STK-001", "qty": "1", "unitprice": "100.00" }] }
|
|
129
|
+
},
|
|
130
|
+
"name": "Create quotation",
|
|
131
|
+
"type": "n8n-nodes-sqlaccounting.sqlAccounting",
|
|
132
|
+
"typeVersion": 1,
|
|
133
|
+
"position": [220, 0],
|
|
134
|
+
"credentials": { "sqlAccountingApi": { "id": "", "name": "SQL Accounting API" } }
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
"connections": { "Manual Trigger": { "main": [[{ "node": "Create quotation", "type": "main", "index": 0 }]] } }
|
|
138
|
+
}
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
The customer `CUS-01` and the stock item `STK-001` must already exist in SQL Account.
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
93
145
|
## Troubleshooting
|
|
94
146
|
|
|
95
147
|
| Error code | Meaning | Fix |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60">
|
|
2
|
-
<rect width="60" height="60" rx="10" fill="#1a1a2e"/>
|
|
3
|
-
<text x="50%" y="36" font-family="Arial,sans-serif" font-size="13" font-weight="bold"
|
|
4
|
-
fill="#4fc3f7" text-anchor="middle">SQL</text>
|
|
5
|
-
<rect x="8" y="40" width="44" height="3" rx="1.5" fill="#4fc3f7" opacity="0.6"/>
|
|
6
|
-
<rect x="8" y="46" width="30" height="3" rx="1.5" fill="#4fc3f7" opacity="0.3"/>
|
|
7
|
-
</svg>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60">
|
|
2
|
+
<rect width="60" height="60" rx="10" fill="#1a1a2e"/>
|
|
3
|
+
<text x="50%" y="36" font-family="Arial,sans-serif" font-size="13" font-weight="bold"
|
|
4
|
+
fill="#4fc3f7" text-anchor="middle">SQL</text>
|
|
5
|
+
<rect x="8" y="40" width="44" height="3" rx="1.5" fill="#4fc3f7" opacity="0.6"/>
|
|
6
|
+
<rect x="8" y="46" width="30" height="3" rx="1.5" fill="#4fc3f7" opacity="0.3"/>
|
|
7
|
+
</svg>
|
package/package.json
CHANGED
|
@@ -1,69 +1,72 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "n8n-nodes-sqlaccounting",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"description": "n8n community node for the SQL Accounting REST API (Malaysia), via the SQL Accounting n8n Node subscription service.",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"n8n-community-node-package",
|
|
7
|
-
"sql-accounting",
|
|
8
|
-
"malaysia",
|
|
9
|
-
"accounting",
|
|
10
|
-
"erp",
|
|
11
|
-
"automation"
|
|
12
|
-
],
|
|
13
|
-
"license": "MIT",
|
|
14
|
-
"homepage": "https://github.com/laurentyew/n8n-nodes-sqlaccounting",
|
|
15
|
-
"author": {
|
|
16
|
-
"name": "laurentyew",
|
|
17
|
-
"url": "https://github.com/laurentyew"
|
|
18
|
-
},
|
|
19
|
-
"repository": {
|
|
20
|
-
"type": "git",
|
|
21
|
-
"url": "https://github.com/laurentyew/n8n-nodes-sqlaccounting.git"
|
|
22
|
-
},
|
|
23
|
-
"scripts": {
|
|
24
|
-
"build": "tsc && gulp build:icons",
|
|
25
|
-
"dev": "tsc --watch",
|
|
26
|
-
"format": "prettier nodes credentials --write",
|
|
27
|
-
"lint": "eslint nodes/**/*.ts credentials/**/*.ts",
|
|
28
|
-
"lintfix": "eslint nodes/**/*.ts credentials/**/*.ts --fix",
|
|
29
|
-
"prepublishOnly": "npm run build && npm run lint && npm test",
|
|
30
|
-
"test": "jest",
|
|
31
|
-
"test:cov": "jest --coverage",
|
|
32
|
-
"gen:registry": "node scripts/gen-registry.js",
|
|
33
|
-
"contract:hash": "node scripts/contract-hash.js write",
|
|
34
|
-
"mock-proxy": "ts-node scripts/run-mock-proxy.ts",
|
|
35
|
-
"prebuild": "node scripts/gen-registry.js"
|
|
36
|
-
},
|
|
37
|
-
"files": [
|
|
38
|
-
"dist"
|
|
39
|
-
],
|
|
40
|
-
"n8n": {
|
|
41
|
-
"n8nNodesApiVersion": 1,
|
|
42
|
-
"credentials": [
|
|
43
|
-
"dist/credentials/SqlAccountingApi.credentials.js"
|
|
44
|
-
],
|
|
45
|
-
"nodes": [
|
|
46
|
-
"dist/nodes/SqlAccounting/SqlAccounting.node.js"
|
|
47
|
-
]
|
|
48
|
-
},
|
|
49
|
-
"devDependencies": {
|
|
50
|
-
"@types/jest": "^29.5.14",
|
|
51
|
-
"@types/node": "^18.16.16",
|
|
52
|
-
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
53
|
-
"@typescript-eslint/parser": "^6.0.0",
|
|
54
|
-
"eslint": "^8.0.0",
|
|
55
|
-
"eslint-plugin-n8n-nodes-base": "^1.16.1",
|
|
56
|
-
"gulp": "^4.0.2",
|
|
57
|
-
"jest": "^29.7.0",
|
|
58
|
-
"prettier": "^3.0.0",
|
|
59
|
-
"ts-jest": "^29.4.14",
|
|
60
|
-
"ts-node": "^10.9.2",
|
|
61
|
-
"typescript": "^5.1.3"
|
|
62
|
-
},
|
|
63
|
-
"peerDependencies": {
|
|
64
|
-
"n8n-workflow": "*"
|
|
65
|
-
},
|
|
66
|
-
"engines": {
|
|
67
|
-
"node": ">=18"
|
|
68
|
-
}
|
|
69
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "n8n-nodes-sqlaccounting",
|
|
3
|
+
"version": "1.1.1",
|
|
4
|
+
"description": "n8n community node for the SQL Accounting REST API (Malaysia), via the SQL Accounting n8n Node subscription service.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"n8n-community-node-package",
|
|
7
|
+
"sql-accounting",
|
|
8
|
+
"malaysia",
|
|
9
|
+
"accounting",
|
|
10
|
+
"erp",
|
|
11
|
+
"automation"
|
|
12
|
+
],
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"homepage": "https://github.com/laurentyew/n8n-nodes-sqlaccounting",
|
|
15
|
+
"author": {
|
|
16
|
+
"name": "laurentyew",
|
|
17
|
+
"url": "https://github.com/laurentyew"
|
|
18
|
+
},
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "https://github.com/laurentyew/n8n-nodes-sqlaccounting.git"
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "tsc && gulp build:icons",
|
|
25
|
+
"dev": "tsc --watch",
|
|
26
|
+
"format": "prettier nodes credentials --write",
|
|
27
|
+
"lint": "eslint nodes/**/*.ts credentials/**/*.ts",
|
|
28
|
+
"lintfix": "eslint nodes/**/*.ts credentials/**/*.ts --fix",
|
|
29
|
+
"prepublishOnly": "npm run build && npm run lint && npm test",
|
|
30
|
+
"test": "jest",
|
|
31
|
+
"test:cov": "jest --coverage",
|
|
32
|
+
"gen:registry": "node scripts/gen-registry.js",
|
|
33
|
+
"contract:hash": "node scripts/contract-hash.js write",
|
|
34
|
+
"mock-proxy": "ts-node scripts/run-mock-proxy.ts",
|
|
35
|
+
"prebuild": "node scripts/gen-registry.js"
|
|
36
|
+
},
|
|
37
|
+
"files": [
|
|
38
|
+
"dist"
|
|
39
|
+
],
|
|
40
|
+
"n8n": {
|
|
41
|
+
"n8nNodesApiVersion": 1,
|
|
42
|
+
"credentials": [
|
|
43
|
+
"dist/credentials/SqlAccountingApi.credentials.js"
|
|
44
|
+
],
|
|
45
|
+
"nodes": [
|
|
46
|
+
"dist/nodes/SqlAccounting/SqlAccounting.node.js"
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@types/jest": "^29.5.14",
|
|
51
|
+
"@types/node": "^18.16.16",
|
|
52
|
+
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
53
|
+
"@typescript-eslint/parser": "^6.0.0",
|
|
54
|
+
"eslint": "^8.0.0",
|
|
55
|
+
"eslint-plugin-n8n-nodes-base": "^1.16.1",
|
|
56
|
+
"gulp": "^4.0.2",
|
|
57
|
+
"jest": "^29.7.0",
|
|
58
|
+
"prettier": "^3.0.0",
|
|
59
|
+
"ts-jest": "^29.4.14",
|
|
60
|
+
"ts-node": "^10.9.2",
|
|
61
|
+
"typescript": "^5.1.3"
|
|
62
|
+
},
|
|
63
|
+
"peerDependencies": {
|
|
64
|
+
"n8n-workflow": "*"
|
|
65
|
+
},
|
|
66
|
+
"engines": {
|
|
67
|
+
"node": ">=18"
|
|
68
|
+
},
|
|
69
|
+
"bugs": {
|
|
70
|
+
"url": "https://github.com/laurentyew/n8n-nodes-sqlaccounting/issues"
|
|
71
|
+
}
|
|
72
|
+
}
|