@bitavu/n8n-nodes-bitavu 0.1.2 → 0.1.4

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.
@@ -0,0 +1,17 @@
1
+ {
2
+ "node": "@bitavu/n8n-nodes-bitavu.bitavuListTemplates",
3
+ "nodeVersion": "1.0",
4
+ "codexVersion": "1.0",
5
+ "alias": ["Bitavu"],
6
+ "categories": [
7
+ "Productivity",
8
+ "Utility"
9
+ ],
10
+ "resources": {
11
+ "primaryDocumentation": [
12
+ {
13
+ "url": "https://bitavu.com/support/n8n"
14
+ }
15
+ ]
16
+ }
17
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BitavuSaveTemplateExample = void 0;
4
+ const BitavuAction_1 = require("../Bitavu/BitavuAction");
5
+ class BitavuSaveTemplateExample {
6
+ constructor() {
7
+ this.description = {
8
+ ...BitavuAction_1.bitavuNodeDefaults,
9
+ displayName: 'Save Template Example',
10
+ icon: { light: 'file:../Bitavu/bitavu.svg', dark: 'file:../Bitavu/bitavu.svg' },
11
+ usableAsTool: undefined,
12
+ subtitle: '',
13
+ name: 'bitavuSaveTemplateExample',
14
+ description: 'Save example JSON as a new Bitavu template version',
15
+ defaults: { name: 'Save Template Example' },
16
+ properties: [
17
+ BitavuAction_1.templatePicker,
18
+ {
19
+ displayName: 'Expected Version',
20
+ name: 'expectedRevision',
21
+ type: 'number',
22
+ required: true,
23
+ default: 1,
24
+ typeOptions: { minValue: 1, numberPrecision: 0 },
25
+ description: 'The latest saved version you reviewed. Bitavu rejects the save if another version has since been created.',
26
+ },
27
+ {
28
+ displayName: 'Example JSON',
29
+ name: 'exampleJson',
30
+ type: 'json',
31
+ required: true,
32
+ default: '={{ $json.data }}',
33
+ description: 'The JSON object to save as example data in a new template version',
34
+ },
35
+ ],
36
+ };
37
+ this.methods = { listSearch: { searchTemplates: BitavuAction_1.bitavuListSearch.searchTemplates } };
38
+ }
39
+ async execute() {
40
+ return await BitavuAction_1.executeBitavu.call(this, 'saveExample');
41
+ }
42
+ }
43
+ exports.BitavuSaveTemplateExample = BitavuSaveTemplateExample;
44
+ //# sourceMappingURL=BitavuSaveTemplateExample.node.js.map
@@ -0,0 +1,17 @@
1
+ {
2
+ "node": "@bitavu/n8n-nodes-bitavu.bitavuSaveTemplateExample",
3
+ "nodeVersion": "1.0",
4
+ "codexVersion": "1.0",
5
+ "alias": ["Bitavu"],
6
+ "categories": [
7
+ "Productivity",
8
+ "Utility"
9
+ ],
10
+ "resources": {
11
+ "primaryDocumentation": [
12
+ {
13
+ "url": "https://bitavu.com/support/n8n"
14
+ }
15
+ ]
16
+ }
17
+ }
@@ -1,130 +1,119 @@
1
- {
2
- "name": "Bitavu - Generate a PDF with the Bitavu node",
3
- "nodes": [
4
- {
5
- "parameters": {},
6
- "id": "manual-trigger",
7
- "name": "Run example",
8
- "type": "n8n-nodes-base.manualTrigger",
9
- "typeVersion": 1,
10
- "position": [
11
- 0,
12
- 0
13
- ]
14
- },
15
- {
16
- "parameters": {
17
- "assignments": {
18
- "assignments": [
19
- {
20
- "id": "template",
21
- "name": "templateId",
22
- "value": "invoice",
23
- "type": "string"
24
- },
25
- {
26
- "id": "revision",
27
- "name": "revision",
28
- "value": 1,
29
- "type": "number"
30
- },
31
- {
32
- "id": "input",
33
- "name": "data",
34
- "value": {
35
- "invoice": {
36
- "number": "N8N-2087",
37
- "date": "2026-11-10",
38
- "due": "2026-11-24"
39
- },
40
- "client": {
41
- "name": "Workflow demo customer",
42
- "address": "Fictional workflow address"
43
- },
44
- "items": [
45
- {
46
- "description": "Workflow setup",
47
- "quantity": 1,
48
- "unitPrice": 240
49
- },
50
- {
51
- "description": "Monthly automation",
52
- "quantity": 2,
53
- "unitPrice": 90
54
- }
55
- ],
56
- "notes": "Generated with data supplied by n8n. Fictional sample data."
57
- },
58
- "type": "object"
59
- },
60
- {
61
- "id": "operation",
62
- "name": "operationId",
63
- "value": "={{ 'bitavu-n8n-operation-' + $execution.id + '-' + $itemIndex }}",
64
- "type": "string"
65
- }
66
- ]
67
- },
68
- "options": {}
69
- },
70
- "id": "sample-data",
71
- "name": "Invoice data",
72
- "type": "n8n-nodes-base.set",
73
- "typeVersion": 3.4,
74
- "position": [
75
- 280,
76
- 0
77
- ]
78
- },
79
- {
80
- "id": "generate-pdf",
81
- "name": "Generate PDF with Bitavu",
82
- "type": "@bitavu/n8n-nodes-bitavu.bitavu",
83
- "typeVersion": 1,
84
- "position": [
85
- 560,
86
- 0
87
- ],
88
- "parameters": {
89
- "resource": "document",
90
- "operation": "generate",
91
- "templateId": "={{ $json.templateId }}",
92
- "revision": "={{ $json.revision }}",
93
- "data": "={{ $json.data }}",
94
- "options": {
95
- "operationId": "={{ $json.operationId }}"
96
- }
97
- }
98
- }
99
- ],
100
- "connections": {
101
- "Run example": {
102
- "main": [
103
- [
104
- {
105
- "node": "Invoice data",
106
- "type": "main",
107
- "index": 0
108
- }
109
- ]
110
- ]
111
- },
112
- "Invoice data": {
113
- "main": [
114
- [
115
- {
116
- "node": "Generate PDF with Bitavu",
117
- "type": "main",
118
- "index": 0
119
- }
120
- ]
121
- ]
122
- }
123
- },
124
- "settings": {
125
- "executionOrder": "v1"
126
- },
127
- "active": false,
128
- "pinData": {},
129
- "tags": []
130
- }
1
+ {
2
+ "name": "Bitavu - Generate a PDF with the Bitavu node",
3
+ "nodes": [
4
+ {
5
+ "parameters": {},
6
+ "id": "manual-trigger",
7
+ "name": "Run example",
8
+ "type": "n8n-nodes-base.manualTrigger",
9
+ "typeVersion": 1,
10
+ "position": [
11
+ 0,
12
+ 0
13
+ ]
14
+ },
15
+ {
16
+ "parameters": {
17
+ "assignments": {
18
+ "assignments": [
19
+ {
20
+ "id": "input",
21
+ "name": "data",
22
+ "value": {
23
+ "invoice": {
24
+ "number": "N8N-2087",
25
+ "date": "2026-11-10",
26
+ "due": "2026-11-24"
27
+ },
28
+ "client": {
29
+ "name": "Workflow demo customer",
30
+ "address": "Fictional workflow address"
31
+ },
32
+ "items": [
33
+ {
34
+ "description": "Workflow setup",
35
+ "quantity": 1,
36
+ "unitPrice": 240
37
+ },
38
+ {
39
+ "description": "Monthly automation",
40
+ "quantity": 2,
41
+ "unitPrice": 90
42
+ }
43
+ ],
44
+ "notes": "Generated with data supplied by n8n. Fictional sample data."
45
+ },
46
+ "type": "object"
47
+ }
48
+ ]
49
+ },
50
+ "options": {}
51
+ },
52
+ "id": "sample-data",
53
+ "name": "Invoice data",
54
+ "type": "n8n-nodes-base.set",
55
+ "typeVersion": 3.4,
56
+ "position": [
57
+ 280,
58
+ 0
59
+ ]
60
+ },
61
+ {
62
+ "id": "generate-pdf",
63
+ "name": "Generate PDF",
64
+ "type": "@bitavu/n8n-nodes-bitavu.bitavu",
65
+ "typeVersion": 1,
66
+ "position": [
67
+ 560,
68
+ 0
69
+ ],
70
+ "parameters": {
71
+ "versionSelection": "pinned",
72
+ "operation": "generate",
73
+ "templateId": {
74
+ "__rl": true,
75
+ "mode": "list",
76
+ "value": "invoice",
77
+ "cachedResultName": "Studio invoice"
78
+ },
79
+ "revision": {
80
+ "__rl": true,
81
+ "mode": "list",
82
+ "value": "1",
83
+ "cachedResultName": "Version 1"
84
+ },
85
+ "data": "={{ $json.data }}"
86
+ }
87
+ }
88
+ ],
89
+ "connections": {
90
+ "Run example": {
91
+ "main": [
92
+ [
93
+ {
94
+ "node": "Invoice data",
95
+ "type": "main",
96
+ "index": 0
97
+ }
98
+ ]
99
+ ]
100
+ },
101
+ "Invoice data": {
102
+ "main": [
103
+ [
104
+ {
105
+ "node": "Generate PDF",
106
+ "type": "main",
107
+ "index": 0
108
+ }
109
+ ]
110
+ ]
111
+ }
112
+ },
113
+ "settings": {
114
+ "executionOrder": "v1"
115
+ },
116
+ "active": false,
117
+ "pinData": {},
118
+ "tags": []
119
+ }
package/package.json CHANGED
@@ -1,77 +1,81 @@
1
- {
2
- "name": "@bitavu/n8n-nodes-bitavu",
3
- "version": "0.1.2",
4
- "description": "Generate PDFs from saved Bitavu visual templates and workflow data",
5
- "license": "MIT",
6
- "homepage": "https://bitavu.com/support/n8n",
7
- "keywords": [
8
- "n8n-community-node-package",
9
- "bitavu",
10
- "pdf",
11
- "pdf-generation",
12
- "invoice",
13
- "templates"
14
- ],
15
- "author": {
16
- "name": "bitavu.com",
17
- "email": "integration+n8n@bitavu.com",
18
- "url": "https://bitavu.com"
19
- },
20
- "repository": {
21
- "type": "git",
22
- "url": "git+https://github.com/bitavu/n8n-nodes-bitavu.git"
23
- },
24
- "scripts": {
25
- "prebuild": "npm rebuild typescript --ignore-scripts --offline --no-audit --no-fund",
26
- "build": "n8n-node build",
27
- "build:watch": "tsc --watch",
28
- "dev": "n8n-node dev",
29
- "lint": "n8n-node lint",
30
- "lint:fix": "n8n-node lint --fix",
31
- "test": "npm run build && node --test tests/*.test.cjs",
32
- "typecheck": "node node_modules/typescript/bin/tsc --noEmit --incremental false",
33
- "pack:check": "node scripts/check-package.mjs",
34
- "vetting:check": "npm run pack:check && node scripts/check-vetting.mjs",
35
- "privacy:check": "node scripts/check-privacy.mjs",
36
- "publish:artifact": "node scripts/publish-package.mjs",
37
- "prepublishOnly": "npm run lint && npm test"
38
- },
39
- "files": [
40
- "dist/credentials/*.js",
41
- "dist/nodes/Bitavu/*.js",
42
- "dist/nodes/Bitavu/*.json",
43
- "dist/nodes/Bitavu/*.svg",
44
- "examples/*.json"
45
- ],
46
- "n8n": {
47
- "n8nNodesApiVersion": 1,
48
- "strict": true,
49
- "credentials": [
50
- "dist/credentials/BitavuApi.credentials.js"
51
- ],
52
- "nodes": [
53
- "dist/nodes/Bitavu/Bitavu.node.js"
54
- ]
55
- },
56
- "devDependencies": {
57
- "@n8n/node-cli": "0.57.0",
58
- "@n8n/scan-community-package": "0.43.0",
59
- "@types/node": "22.19.19",
60
- "eslint": "9.32.0",
61
- "n8n-workflow": "2.46.5",
62
- "prettier": "3.6.2",
63
- "typescript": "5.9.2"
64
- },
65
- "peerDependencies": {
66
- "n8n-workflow": "*"
67
- },
68
- "engines": {
69
- "node": ">=22.16"
70
- },
71
- "publishConfig": {
72
- "access": "public"
73
- },
74
- "bugs": {
75
- "url": "https://github.com/bitavu/n8n-nodes-bitavu/issues"
76
- }
77
- }
1
+ {
2
+ "name": "@bitavu/n8n-nodes-bitavu",
3
+ "version": "0.1.4",
4
+ "description": "Generate PDFs and work with saved Bitavu templates in n8n",
5
+ "license": "MIT",
6
+ "homepage": "https://bitavu.com/support/n8n",
7
+ "keywords": [
8
+ "n8n-community-node-package",
9
+ "bitavu",
10
+ "pdf",
11
+ "pdf-generation",
12
+ "invoice",
13
+ "templates"
14
+ ],
15
+ "author": {
16
+ "name": "bitavu.com",
17
+ "email": "integration+n8n@bitavu.com",
18
+ "url": "https://bitavu.com"
19
+ },
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://github.com/bitavu/n8n-nodes-bitavu.git"
23
+ },
24
+ "scripts": {
25
+ "prebuild": "npm rebuild typescript --ignore-scripts --offline --no-audit --no-fund",
26
+ "build": "n8n-node build",
27
+ "build:watch": "tsc --watch",
28
+ "dev": "n8n-node dev",
29
+ "lint": "n8n-node lint",
30
+ "lint:fix": "n8n-node lint --fix",
31
+ "test": "npm run build && node --test tests/*.test.cjs",
32
+ "typecheck": "node node_modules/typescript/bin/tsc --noEmit --incremental false",
33
+ "pack:check": "node scripts/check-package.mjs",
34
+ "vetting:check": "npm run pack:check && node scripts/check-vetting.mjs",
35
+ "privacy:check": "node scripts/check-privacy.mjs",
36
+ "publish:artifact": "node scripts/publish-package.mjs",
37
+ "prepublishOnly": "npm run lint && npm test"
38
+ },
39
+ "files": [
40
+ "dist/credentials/*.js",
41
+ "dist/nodes/Bitavu*/*.js",
42
+ "dist/nodes/Bitavu*/*.node.json",
43
+ "dist/nodes/Bitavu/*.svg",
44
+ "examples/*.json"
45
+ ],
46
+ "n8n": {
47
+ "n8nNodesApiVersion": 1,
48
+ "strict": true,
49
+ "credentials": [
50
+ "dist/credentials/BitavuApi.credentials.js"
51
+ ],
52
+ "nodes": [
53
+ "dist/nodes/Bitavu/Bitavu.node.js",
54
+ "dist/nodes/BitavuListTemplates/BitavuListTemplates.node.js",
55
+ "dist/nodes/BitavuListTemplateVersions/BitavuListTemplateVersions.node.js",
56
+ "dist/nodes/BitavuGetTemplateVersion/BitavuGetTemplateVersion.node.js",
57
+ "dist/nodes/BitavuSaveTemplateExample/BitavuSaveTemplateExample.node.js"
58
+ ]
59
+ },
60
+ "devDependencies": {
61
+ "@n8n/node-cli": "0.57.0",
62
+ "@n8n/scan-community-package": "0.43.0",
63
+ "@types/node": "22.19.19",
64
+ "eslint": "9.32.0",
65
+ "n8n-workflow": "2.46.5",
66
+ "prettier": "3.6.2",
67
+ "typescript": "5.9.2"
68
+ },
69
+ "peerDependencies": {
70
+ "n8n-workflow": "*"
71
+ },
72
+ "engines": {
73
+ "node": ">=22.16"
74
+ },
75
+ "publishConfig": {
76
+ "access": "public"
77
+ },
78
+ "bugs": {
79
+ "url": "https://github.com/bitavu/n8n-nodes-bitavu/issues"
80
+ }
81
+ }