Skip to content

Commit 3914401

Browse files
Automated pre-commit update
1 parent f386466 commit 3914401

10 files changed

Lines changed: 295 additions & 349 deletions

File tree

n8n-node/LICENSE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
SOFTWARE.
22-

n8n-node/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes
2929
To use this node, you need to create credentials for the Codegen API:
3030

3131
1. Get your API token from [Codegen](https://codegen.com)
32-
2. Use this token in the Codegen API credentials in n8n
32+
1. Use this token in the Codegen API credentials in n8n
3333

3434
## Resources
3535

36-
* [Codegen API Documentation](https://docs.codegen.com/introduction/api)
37-
* [n8n Community Nodes Documentation](https://docs.n8n.io/integrations/community-nodes/)
36+
- [Codegen API Documentation](https://docs.codegen.com/introduction/api)
37+
- [n8n Community Nodes Documentation](https://docs.n8n.io/integrations/community-nodes/)
3838

3939
## Version history
4040

@@ -43,4 +43,3 @@ To use this node, you need to create credentials for the Codegen API:
4343
## License
4444

4545
[MIT](https://github.com/codegen-sh/codegen/blob/main/LICENSE.md)
46-
Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,20 @@
1-
import {
2-
ICredentialType,
3-
INodeProperties,
4-
} from 'n8n-workflow';
1+
import type { ICredentialType, INodeProperties } from "n8n-workflow";
52

63
export class CodegenApi implements ICredentialType {
7-
name = 'codegenApi';
8-
displayName = 'Codegen API';
9-
documentationUrl = 'https://docs.codegen.com/introduction/api';
4+
name = "codegenApi";
5+
displayName = "Codegen API";
6+
documentationUrl = "https://docs.codegen.com/introduction/api";
107
properties: INodeProperties[] = [
118
{
12-
displayName: 'API Token',
13-
name: 'apiToken',
14-
type: 'string',
9+
displayName: "API Token",
10+
name: "apiToken",
11+
type: "string",
1512
typeOptions: {
1613
password: true,
1714
},
18-
default: '',
15+
default: "",
1916
required: true,
20-
description: 'The API token for Codegen API authentication',
17+
description: "The API token for Codegen API authentication",
2118
},
2219
];
2320
}
24-

n8n-node/gulpfile.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
const { src, dest } = require('gulp');
1+
const { src, dest } = require("gulp");
22

33
// Copies the icon files from the nodes source folders to the dist folder
44
function copyIcons() {
5-
return src('./nodes/**/*.svg')
6-
.pipe(dest('./dist/nodes/'));
5+
return src("./nodes/**/*.svg").pipe(dest("./dist/nodes/"));
76
}
87

9-
exports['build:icons'] = copyIcons;
10-
8+
exports["build:icons"] = copyIcons;

n8n-node/index.js

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
module.exports = {
2-
packageName: 'n8n-nodes-codegen',
3-
nodeTypes: {
4-
Codegen: {
5-
sourcePath: './dist/nodes/Codegen/Codegen.node.js',
6-
type: 'Codegen',
7-
},
8-
},
9-
credentialTypes: {
10-
CodegenApi: {
11-
sourcePath: './dist/credentials/CodegenApi.credentials.js',
12-
type: 'CodegenApi',
13-
},
14-
},
2+
packageName: "n8n-nodes-codegen",
3+
nodeTypes: {
4+
Codegen: {
5+
sourcePath: "./dist/nodes/Codegen/Codegen.node.js",
6+
type: "Codegen",
7+
},
8+
},
9+
credentialTypes: {
10+
CodegenApi: {
11+
sourcePath: "./dist/credentials/CodegenApi.credentials.js",
12+
type: "CodegenApi",
13+
},
14+
},
1515
};
16-
Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
11
{
2-
"node": "n8n-nodes-base.codegen",
3-
"nodeVersion": "1.0",
4-
"codexVersion": "1.0",
5-
"categories": [
6-
"Development",
7-
"AI"
8-
],
9-
"resources": {
10-
"credentialDocumentation": [
11-
{
12-
"url": "https://docs.codegen.com/introduction/api"
13-
}
14-
],
15-
"primaryDocumentation": [
16-
{
17-
"url": "https://docs.codegen.com/introduction/api"
18-
}
19-
]
20-
}
2+
"node": "n8n-nodes-base.codegen",
3+
"nodeVersion": "1.0",
4+
"codexVersion": "1.0",
5+
"categories": ["Development", "AI"],
6+
"resources": {
7+
"credentialDocumentation": [
8+
{
9+
"url": "https://docs.codegen.com/introduction/api"
10+
}
11+
],
12+
"primaryDocumentation": [
13+
{
14+
"url": "https://docs.codegen.com/introduction/api"
15+
}
16+
]
17+
}
2118
}
22-

0 commit comments

Comments
 (0)