@rxap/plugin-n8n 20.1.3-dev.3 → 20.2.0-dev.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.
- package/CHANGELOG.md +16 -0
- package/README.md +13 -13
- package/package.json +7 -7
- package/src/generators/init/schema.json +10 -5
- package/src/generators/node/create-node-ts.d.ts +1 -1
- package/src/generators/node/create-node-ts.js +1 -1
- package/src/generators/node/create-node-ts.js.map +1 -1
- package/src/generators/node/generator.js +1 -1
- package/src/generators/node/generator.js.map +1 -1
- package/src/generators/node/schema.json +9 -5
- package/src/generators/trigger/create-trigger-ts.d.ts +1 -1
- package/src/generators/trigger/create-trigger-ts.js +1 -1
- package/src/generators/trigger/create-trigger-ts.js.map +1 -1
- package/src/generators/trigger/generator.js +1 -1
- package/src/generators/trigger/generator.js.map +1 -1
- package/src/generators/trigger/schema.json +9 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [20.2.0-dev.2](https://gitlab.com/rxap/packages/compare/@rxap/plugin-n8n@20.2.0-dev.1...@rxap/plugin-n8n@20.2.0-dev.2) (2026-01-13)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @rxap/plugin-n8n
|
|
9
|
+
|
|
10
|
+
# [20.2.0-dev.1](https://gitlab.com/rxap/packages/compare/@rxap/plugin-n8n@20.2.0-dev.0...@rxap/plugin-n8n@20.2.0-dev.1) (2026-01-12)
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- update package groups ([ba8753f](https://gitlab.com/rxap/packages/commit/ba8753f5f34680adc282d84c557fc43385bfa987))
|
|
15
|
+
|
|
16
|
+
# [20.2.0-dev.0](https://gitlab.com/rxap/packages/compare/@rxap/plugin-n8n@20.1.3-dev.3...@rxap/plugin-n8n@20.2.0-dev.0) (2026-01-12)
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
- **schema:** enhance generator schema documentation with descriptions and examples ([0ae4939](https://gitlab.com/rxap/packages/commit/0ae4939d77e3e313ace4a77d8f5dd86c3c918d29))
|
|
21
|
+
|
|
6
22
|
## [20.1.3-dev.3](https://gitlab.com/rxap/packages/compare/@rxap/plugin-n8n@20.1.3-dev.2...@rxap/plugin-n8n@20.1.3-dev.3) (2025-09-18)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @rxap/plugin-n8n
|
package/README.md
CHANGED
|
@@ -72,11 +72,11 @@ nx g @rxap/plugin-n8n:init
|
|
|
72
72
|
|
|
73
73
|
Option | Type | Default | Description
|
|
74
74
|
--- | --- | --- | ---
|
|
75
|
-
project | string | |
|
|
76
|
-
projects | array | |
|
|
77
|
-
skipFormat | boolean | false |
|
|
78
|
-
overwrite | boolean | false | Whether to overwrite existing files
|
|
79
|
-
skipProjects | boolean | false | Whether to skip executing project
|
|
75
|
+
project | string | | The name of the project to initialize with n8n integration.
|
|
76
|
+
projects | array | | The list of projects to initialize with n8n integration.
|
|
77
|
+
skipFormat | boolean | false | Whether to skip formatting files with Prettier after initialization.
|
|
78
|
+
overwrite | boolean | false | Whether to overwrite existing files during initialization.
|
|
79
|
+
skipProjects | boolean | false | Whether to skip executing project-specific initialization logic.
|
|
80
80
|
|
|
81
81
|
## node
|
|
82
82
|
> node generator
|
|
@@ -87,10 +87,10 @@ nx g @rxap/plugin-n8n:node
|
|
|
87
87
|
|
|
88
88
|
Option | Type | Default | Description
|
|
89
89
|
--- | --- | --- | ---
|
|
90
|
-
name | string | |
|
|
91
|
-
project | string | |
|
|
92
|
-
description | string | |
|
|
93
|
-
nodeNamePrefix | string | |
|
|
90
|
+
name | string | | The name of the new n8n node.
|
|
91
|
+
project | string | | The name of the project where the new node should be created.
|
|
92
|
+
description | string | | A brief description of the new n8n node's purpose.
|
|
93
|
+
nodeNamePrefix | string | | An optional prefix to prepend to the node's internal class name.
|
|
94
94
|
|
|
95
95
|
## trigger
|
|
96
96
|
> trigger generator
|
|
@@ -101,7 +101,7 @@ nx g @rxap/plugin-n8n:trigger
|
|
|
101
101
|
|
|
102
102
|
Option | Type | Default | Description
|
|
103
103
|
--- | --- | --- | ---
|
|
104
|
-
name | string | |
|
|
105
|
-
project | string | |
|
|
106
|
-
description | string | |
|
|
107
|
-
nodeNamePrefix | string | |
|
|
104
|
+
name | string | | The name of the new n8n trigger node.
|
|
105
|
+
project | string | | The name of the project where the new trigger node should be created.
|
|
106
|
+
description | string | | A brief description of the new n8n trigger node's purpose.
|
|
107
|
+
nodeNamePrefix | string | | An optional prefix to prepend to the trigger node's internal class name.
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "20.
|
|
2
|
+
"version": "20.2.0-dev.2",
|
|
3
3
|
"name": "@rxap/plugin-n8n",
|
|
4
4
|
"description": "This package provides generators for initializing and creating n8n plugins within an Nx workspace. It includes generators for initializing a workspace or project for n8n development, as well as a generator for creating new n8n nodes. The package also includes utilities for updating project configurations and package.json files to support n8n plugin development.\n",
|
|
5
5
|
"license": "GPL-3.0-or-later",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@nx/devkit": "20.5.0",
|
|
8
|
-
"@rxap/plugin-library": "^20.
|
|
9
|
-
"@rxap/ts-morph": "^1.6.0-dev.
|
|
10
|
-
"@rxap/utilities": "^16.5.0-dev.
|
|
11
|
-
"@rxap/workspace-ts-morph": "^19.1.13-dev.
|
|
12
|
-
"@rxap/workspace-utilities": "^19.8.1-dev.
|
|
8
|
+
"@rxap/plugin-library": "^20.3.0-dev.2",
|
|
9
|
+
"@rxap/ts-morph": "^1.6.0-dev.3",
|
|
10
|
+
"@rxap/utilities": "^16.5.0-dev.1",
|
|
11
|
+
"@rxap/workspace-ts-morph": "^19.1.13-dev.4",
|
|
12
|
+
"@rxap/workspace-utilities": "^19.8.1-dev.3",
|
|
13
13
|
"colors": "1.4.0",
|
|
14
14
|
"nx": "20.5.0",
|
|
15
15
|
"ts-morph": "18.0.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"schematics": "./generators.json",
|
|
47
47
|
"type": "commonjs",
|
|
48
48
|
"typings": "./src/index.d.ts",
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "69d6ee61a20632f52b77de621089334a34f45e03",
|
|
50
50
|
"exports": {
|
|
51
51
|
"./package.json": "./package.json",
|
|
52
52
|
".": {
|
|
@@ -5,27 +5,32 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"project": {
|
|
8
|
-
"type": "string"
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "The name of the project to initialize with n8n integration.",
|
|
10
|
+
"examples": ["my-n8n-lib"]
|
|
9
11
|
},
|
|
10
12
|
"projects": {
|
|
11
13
|
"type": "array",
|
|
12
14
|
"items": {
|
|
13
15
|
"type": "string"
|
|
14
|
-
}
|
|
16
|
+
},
|
|
17
|
+
"description": "The list of projects to initialize with n8n integration.",
|
|
18
|
+
"examples": [["my-n8n-lib", "another-n8n-lib"]]
|
|
15
19
|
},
|
|
16
20
|
"skipFormat": {
|
|
17
21
|
"type": "boolean",
|
|
18
|
-
"default": false
|
|
22
|
+
"default": false,
|
|
23
|
+
"description": "Whether to skip formatting files with Prettier after initialization."
|
|
19
24
|
},
|
|
20
25
|
"overwrite": {
|
|
21
26
|
"type": "boolean",
|
|
22
27
|
"default": false,
|
|
23
|
-
"description": "Whether to overwrite existing files"
|
|
28
|
+
"description": "Whether to overwrite existing files during initialization."
|
|
24
29
|
},
|
|
25
30
|
"skipProjects": {
|
|
26
31
|
"type": "boolean",
|
|
27
32
|
"default": false,
|
|
28
|
-
"description": "Whether to skip executing project
|
|
33
|
+
"description": "Whether to skip executing project-specific initialization logic."
|
|
29
34
|
}
|
|
30
35
|
},
|
|
31
36
|
"required": []
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Tree } from '@nx/devkit';
|
|
2
|
-
export declare function createNodeTs(tree: Tree, projectName: string, nodeName: string, nodeNamePrefix: string, description: string): void
|
|
2
|
+
export declare function createNodeTs(tree: Tree, projectName: string, nodeName: string, nodeNamePrefix: string, description: string): Promise<void>;
|
|
@@ -7,7 +7,7 @@ const workspace_ts_morph_1 = require("@rxap/workspace-ts-morph");
|
|
|
7
7
|
const path_1 = require("path");
|
|
8
8
|
const ts_morph_2 = require("ts-morph");
|
|
9
9
|
function createNodeTs(tree, projectName, nodeName, nodeNamePrefix, description) {
|
|
10
|
-
(0, workspace_ts_morph_1.TsMorphProjectTransform)(tree, {
|
|
10
|
+
return (0, workspace_ts_morph_1.TsMorphProjectTransform)(tree, {
|
|
11
11
|
project: projectName,
|
|
12
12
|
}, (_, sourceFile) => {
|
|
13
13
|
(0, ts_morph_1.CoerceClass)(sourceFile, (0, utilities_1.classify)(nodeName), {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-node-ts.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/n8n/src/generators/node/create-node-ts.ts"],"names":[],"mappings":";;AAUA,oCAoCC;AA7CD,6CAGwB;AACxB,+CAA2C;AAC3C,iEAAmE;AACnE,+BAA4B;AAC5B,uCAAmC;AAEnC,SAAgB,YAAY,CAAC,IAAU,EAAE,WAAmB,EAAE,QAAgB,EAAE,cAAsB,EAAE,WAAmB;IAEzH,IAAA,4CAAuB,EAAC,IAAI,EAAE;
|
|
1
|
+
{"version":3,"file":"create-node-ts.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/n8n/src/generators/node/create-node-ts.ts"],"names":[],"mappings":";;AAUA,oCAoCC;AA7CD,6CAGwB;AACxB,+CAA2C;AAC3C,iEAAmE;AACnE,+BAA4B;AAC5B,uCAAmC;AAEnC,SAAgB,YAAY,CAAC,IAAU,EAAE,WAAmB,EAAE,QAAgB,EAAE,cAAsB,EAAE,WAAmB;I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AAE,IAAA,WAAI,EAAC,KAAK,EAAE,KAAK,EAAE,IAAA,oBAAQ,EAAC,QAAQ,CAAC,EAAE,GAAG,IAAA,oBAAQ,EAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC;AAE/E,CAAC"}
|
|
@@ -8,7 +8,7 @@ const update_package_json_1 = require("./update-package-json");
|
|
|
8
8
|
function nodeGenerator(tree_1, _a) {
|
|
9
9
|
return tslib_1.__awaiter(this, arguments, void 0, function* (tree, { project, name, nodeNamePrefix = 'rxap', description = name }) {
|
|
10
10
|
(0, create_node_json_1.createNodeJson)(tree, project, name, nodeNamePrefix);
|
|
11
|
-
(0, create_node_ts_1.createNodeTs)(tree, project, name, nodeNamePrefix, description);
|
|
11
|
+
yield (0, create_node_ts_1.createNodeTs)(tree, project, name, nodeNamePrefix, description);
|
|
12
12
|
(0, update_package_json_1.updatePackageJson)(tree, project, name);
|
|
13
13
|
});
|
|
14
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/n8n/src/generators/node/generator.ts"],"names":[],"mappings":";;AAMA,sCAIC;;AATD,yDAAoD;AACpD,qDAAgD;AAEhD,+DAA0D;AAE1D,SAAsB,aAAa;iEAAC,IAAU,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,cAAc,GAAG,MAAM,EAAE,WAAW,GAAG,IAAI,EAAuB;QACjI,IAAA,iCAAc,EAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;QACpD,IAAA,6BAAY,EAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,WAAW,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/n8n/src/generators/node/generator.ts"],"names":[],"mappings":";;AAMA,sCAIC;;AATD,yDAAoD;AACpD,qDAAgD;AAEhD,+DAA0D;AAE1D,SAAsB,aAAa;iEAAC,IAAU,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,cAAc,GAAG,MAAM,EAAE,WAAW,GAAG,IAAI,EAAuB;QACjI,IAAA,iCAAc,EAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;QACpD,MAAM,IAAA,6BAAY,EAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,WAAW,CAAC,CAAC;QACrE,IAAA,uCAAiB,EAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;IACzC,CAAC;CAAA;AAED,kBAAe,aAAa,CAAC"}
|
|
@@ -6,24 +6,28 @@
|
|
|
6
6
|
"properties": {
|
|
7
7
|
"name": {
|
|
8
8
|
"type": "string",
|
|
9
|
-
"description": "",
|
|
9
|
+
"description": "The name of the new n8n node.",
|
|
10
10
|
"$default": {
|
|
11
11
|
"$source": "argv",
|
|
12
12
|
"index": 0
|
|
13
13
|
},
|
|
14
|
-
"x-prompt": "What name would you like to use?"
|
|
14
|
+
"x-prompt": "What name would you like to use?",
|
|
15
|
+
"examples": ["my-custom-node"]
|
|
15
16
|
},
|
|
16
17
|
"project": {
|
|
17
18
|
"type": "string",
|
|
18
|
-
"description": ""
|
|
19
|
+
"description": "The name of the project where the new node should be created.",
|
|
20
|
+
"examples": ["my-n8n-lib"]
|
|
19
21
|
},
|
|
20
22
|
"description": {
|
|
21
23
|
"type": "string",
|
|
22
|
-
"description": ""
|
|
24
|
+
"description": "A brief description of the new n8n node's purpose.",
|
|
25
|
+
"examples": ["Perform custom data transformation."]
|
|
23
26
|
},
|
|
24
27
|
"nodeNamePrefix": {
|
|
25
28
|
"type": "string",
|
|
26
|
-
"description": ""
|
|
29
|
+
"description": "An optional prefix to prepend to the node's internal class name.",
|
|
30
|
+
"examples": ["MyCompany"]
|
|
27
31
|
}
|
|
28
32
|
},
|
|
29
33
|
"required": ["name", "project"]
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Tree } from '@nx/devkit';
|
|
2
|
-
export declare function createTriggerTs(tree: Tree, projectName: string, triggerName: string, namePrefix: string, description: string): void
|
|
2
|
+
export declare function createTriggerTs(tree: Tree, projectName: string, triggerName: string, namePrefix: string, description: string): Promise<void>;
|
|
@@ -7,7 +7,7 @@ const workspace_ts_morph_1 = require("@rxap/workspace-ts-morph");
|
|
|
7
7
|
const path_1 = require("path");
|
|
8
8
|
const ts_morph_2 = require("ts-morph");
|
|
9
9
|
function createTriggerTs(tree, projectName, triggerName, namePrefix, description) {
|
|
10
|
-
(0, workspace_ts_morph_1.TsMorphProjectTransform)(tree, {
|
|
10
|
+
return (0, workspace_ts_morph_1.TsMorphProjectTransform)(tree, {
|
|
11
11
|
project: projectName,
|
|
12
12
|
}, (_, sourceFile) => {
|
|
13
13
|
(0, ts_morph_1.CoerceClass)(sourceFile, (0, utilities_1.classify)(triggerName) + 'Trigger', {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-trigger-ts.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/n8n/src/generators/trigger/create-trigger-ts.ts"],"names":[],"mappings":";;AAUA,0CA4CC;AArDD,6CAGwB;AACxB,+CAA2C;AAC3C,iEAAmE;AACnE,+BAA4B;AAC5B,uCAAmC;AAEnC,SAAgB,eAAe,CAAC,IAAU,EAAE,WAAmB,EAAE,WAAmB,EAAE,UAAkB,EAAE,WAAmB;IAE3H,IAAA,4CAAuB,EAAC,IAAI,EAAE;
|
|
1
|
+
{"version":3,"file":"create-trigger-ts.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/n8n/src/generators/trigger/create-trigger-ts.ts"],"names":[],"mappings":";;AAUA,0CA4CC;AArDD,6CAGwB;AACxB,+CAA2C;AAC3C,iEAAmE;AACnE,+BAA4B;AAC5B,uCAAmC;AAEnC,SAAgB,eAAe,CAAC,IAAU,EAAE,WAAmB,EAAE,WAAmB,EAAE,UAAkB,EAAE,WAAmB;IAE3H,OAAO,IAAA,4CAAuB,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BAA6B;wBACtC,WAAW,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,IAAA,oBAAQ,EAAC,WAAW,CAAC,GAAG,SAAS,CAAC;wBAC5D,KAAK,EAAE,aAAa;wBACpB,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,IAAA,oBAAQ,EAAC,WAAW,CAAC,MAAM,CAAC;wBACvD,UAAU,EAAE,IAAI;qBACjB,CAAC;iBACH,CAAC;SACH,CAAC,CAAC;QAEH,IAAA,wBAAa,EAAC,UAAU,EAAE;YACxB;gBACE,YAAY,EAAE,CAAE,WAAW,EAAE,sBAAsB,EAAE,oBAAoB,CAAE;gBAC3E,eAAe,EAAE,cAAc;aAChC;SACF,CAAC,CAAC;IAEL,CAAC,EAAE,IAAA,WAAI,EAAC,KAAK,EAAE,KAAK,EAAE,IAAA,oBAAQ,EAAC,WAAW,CAAC,EAAE,GAAG,IAAA,oBAAQ,EAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC,CAAC;AAE5F,CAAC"}
|
|
@@ -8,7 +8,7 @@ const update_package_json_1 = require("./update-package-json");
|
|
|
8
8
|
function nodeGenerator(tree_1, _a) {
|
|
9
9
|
return tslib_1.__awaiter(this, arguments, void 0, function* (tree, { project, name, nodeNamePrefix = 'rxap', description = name }) {
|
|
10
10
|
(0, create_trigger_json_1.createTriggerJson)(tree, project, name, nodeNamePrefix);
|
|
11
|
-
(0, create_trigger_ts_1.createTriggerTs)(tree, project, name, nodeNamePrefix, description);
|
|
11
|
+
yield (0, create_trigger_ts_1.createTriggerTs)(tree, project, name, nodeNamePrefix, description);
|
|
12
12
|
(0, update_package_json_1.updatePackageJson)(tree, project, name);
|
|
13
13
|
});
|
|
14
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/n8n/src/generators/trigger/generator.ts"],"names":[],"mappings":";;AAMA,sCAIC;;AATD,+DAA0D;AAC1D,2DAAsD;AAEtD,+DAA0D;AAE1D,SAAsB,aAAa;iEAAC,IAAU,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,cAAc,GAAG,MAAM,EAAE,WAAW,GAAG,IAAI,EAA0B;QACpI,IAAA,uCAAiB,EAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;QACvD,IAAA,mCAAe,EAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,WAAW,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/n8n/src/generators/trigger/generator.ts"],"names":[],"mappings":";;AAMA,sCAIC;;AATD,+DAA0D;AAC1D,2DAAsD;AAEtD,+DAA0D;AAE1D,SAAsB,aAAa;iEAAC,IAAU,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,cAAc,GAAG,MAAM,EAAE,WAAW,GAAG,IAAI,EAA0B;QACpI,IAAA,uCAAiB,EAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;QACvD,MAAM,IAAA,mCAAe,EAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,WAAW,CAAC,CAAC;QACxE,IAAA,uCAAiB,EAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;IACzC,CAAC;CAAA;AAED,kBAAe,aAAa,CAAC"}
|
|
@@ -6,24 +6,28 @@
|
|
|
6
6
|
"properties": {
|
|
7
7
|
"name": {
|
|
8
8
|
"type": "string",
|
|
9
|
-
"description": "",
|
|
9
|
+
"description": "The name of the new n8n trigger node.",
|
|
10
10
|
"$default": {
|
|
11
11
|
"$source": "argv",
|
|
12
12
|
"index": 0
|
|
13
13
|
},
|
|
14
|
-
"x-prompt": "What name would you like to use?"
|
|
14
|
+
"x-prompt": "What name would you like to use?",
|
|
15
|
+
"examples": ["my-custom-trigger"]
|
|
15
16
|
},
|
|
16
17
|
"project": {
|
|
17
18
|
"type": "string",
|
|
18
|
-
"description": ""
|
|
19
|
+
"description": "The name of the project where the new trigger node should be created.",
|
|
20
|
+
"examples": ["my-n8n-lib"]
|
|
19
21
|
},
|
|
20
22
|
"description": {
|
|
21
23
|
"type": "string",
|
|
22
|
-
"description": ""
|
|
24
|
+
"description": "A brief description of the new n8n trigger node's purpose.",
|
|
25
|
+
"examples": ["Trigger workflow on custom event."]
|
|
23
26
|
},
|
|
24
27
|
"nodeNamePrefix": {
|
|
25
28
|
"type": "string",
|
|
26
|
-
"description": ""
|
|
29
|
+
"description": "An optional prefix to prepend to the trigger node's internal class name.",
|
|
30
|
+
"examples": ["MyCompany"]
|
|
27
31
|
}
|
|
28
32
|
},
|
|
29
33
|
"required": ["name", "project"]
|