first commit
This commit is contained in:
42
node_modules/@n8n/node-cli/dist/template/templates/shared/credentials/apiKey.credentials.ts
generated
vendored
Normal file
42
node_modules/@n8n/node-cli/dist/template/templates/shared/credentials/apiKey.credentials.ts
generated
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
import type {
|
||||
IAuthenticateGeneric,
|
||||
ICredentialTestRequest,
|
||||
ICredentialType,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export class ExampleApi implements ICredentialType {
|
||||
name = 'exampleApi';
|
||||
|
||||
displayName = 'Example API';
|
||||
|
||||
// Link to your community node's README
|
||||
documentationUrl = 'https://github.com/org/repo?tab=readme-ov-file#credentials';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API Key',
|
||||
name: 'apiKey',
|
||||
type: 'string',
|
||||
typeOptions: { password: true },
|
||||
required: true,
|
||||
default: '',
|
||||
},
|
||||
];
|
||||
|
||||
authenticate: IAuthenticateGeneric = {
|
||||
type: 'generic',
|
||||
properties: {
|
||||
headers: {
|
||||
'x-api-key': '={{$credentials.apiKey}}',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
test: ICredentialTestRequest = {
|
||||
request: {
|
||||
baseURL: 'https://api.example.com/v2',
|
||||
url: '/v1/user',
|
||||
},
|
||||
};
|
||||
}
|
||||
50
node_modules/@n8n/node-cli/dist/template/templates/shared/credentials/basicAuth.credentials.ts
generated
vendored
Normal file
50
node_modules/@n8n/node-cli/dist/template/templates/shared/credentials/basicAuth.credentials.ts
generated
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
import type {
|
||||
IAuthenticateGeneric,
|
||||
ICredentialTestRequest,
|
||||
ICredentialType,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export class ExampleApi implements ICredentialType {
|
||||
name = 'exampleApi';
|
||||
|
||||
displayName = 'Example API';
|
||||
|
||||
// Link to your community node's README
|
||||
documentationUrl = 'https://github.com/org/repo?tab=readme-ov-file#credentials';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Username',
|
||||
name: 'username',
|
||||
type: 'string',
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Password',
|
||||
name: 'password',
|
||||
type: 'string',
|
||||
typeOptions: {
|
||||
password: true,
|
||||
},
|
||||
default: '',
|
||||
},
|
||||
];
|
||||
|
||||
authenticate: IAuthenticateGeneric = {
|
||||
type: 'generic',
|
||||
properties: {
|
||||
auth: {
|
||||
username: '={{$credentials.username}}',
|
||||
password: '={{$credentials.password}}',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
test: ICredentialTestRequest = {
|
||||
request: {
|
||||
baseURL: 'https://api.example.com/v2',
|
||||
url: '/v1/user',
|
||||
},
|
||||
};
|
||||
}
|
||||
42
node_modules/@n8n/node-cli/dist/template/templates/shared/credentials/bearer.credentials.ts
generated
vendored
Normal file
42
node_modules/@n8n/node-cli/dist/template/templates/shared/credentials/bearer.credentials.ts
generated
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
import type {
|
||||
IAuthenticateGeneric,
|
||||
ICredentialTestRequest,
|
||||
ICredentialType,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export class ExampleApi implements ICredentialType {
|
||||
name = 'exampleApi';
|
||||
|
||||
displayName = 'Example API';
|
||||
|
||||
// Link to your community node's README
|
||||
documentationUrl = 'https://github.com/org/repo?tab=readme-ov-file#credentials';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Access Token',
|
||||
name: 'accessToken',
|
||||
type: 'string',
|
||||
typeOptions: { password: true },
|
||||
required: true,
|
||||
default: '',
|
||||
},
|
||||
];
|
||||
|
||||
authenticate: IAuthenticateGeneric = {
|
||||
type: 'generic',
|
||||
properties: {
|
||||
headers: {
|
||||
Authorization: '=Bearer {{$credentials.accessToken}}',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
test: ICredentialTestRequest = {
|
||||
request: {
|
||||
baseURL: 'https://api.example.com/v2',
|
||||
url: '/v1/user',
|
||||
},
|
||||
};
|
||||
}
|
||||
48
node_modules/@n8n/node-cli/dist/template/templates/shared/credentials/custom.credentials.ts
generated
vendored
Normal file
48
node_modules/@n8n/node-cli/dist/template/templates/shared/credentials/custom.credentials.ts
generated
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
import type {
|
||||
IAuthenticateGeneric,
|
||||
ICredentialTestRequest,
|
||||
ICredentialType,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export class ExampleApi implements ICredentialType {
|
||||
name = 'exampleApi';
|
||||
|
||||
displayName = 'Example API';
|
||||
|
||||
// Link to your community node's README
|
||||
documentationUrl = 'https://github.com/org/repo?tab=readme-ov-file#credentials';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Access Token',
|
||||
name: 'accessToken',
|
||||
type: 'string',
|
||||
typeOptions: { password: true },
|
||||
required: true,
|
||||
default: '',
|
||||
},
|
||||
];
|
||||
|
||||
authenticate: IAuthenticateGeneric = {
|
||||
type: 'generic',
|
||||
properties: {
|
||||
body: {
|
||||
token: '={{$credentials.accessToken}}',
|
||||
},
|
||||
qs: {
|
||||
token: '={{$credentials.accessToken}}',
|
||||
},
|
||||
headers: {
|
||||
Authorization: '=Bearer {{$credentials.accessToken}}',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
test: ICredentialTestRequest = {
|
||||
request: {
|
||||
baseURL: 'https://api.example.com/v2',
|
||||
url: '/v1/user',
|
||||
},
|
||||
};
|
||||
}
|
||||
51
node_modules/@n8n/node-cli/dist/template/templates/shared/credentials/oauth2AuthorizationCode.credentials.ts
generated
vendored
Normal file
51
node_modules/@n8n/node-cli/dist/template/templates/shared/credentials/oauth2AuthorizationCode.credentials.ts
generated
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export class ExampleOAuth2Api implements ICredentialType {
|
||||
name = 'exampleOAuth2Api';
|
||||
|
||||
extends = ['oAuth2Api'];
|
||||
|
||||
displayName = 'Example OAuth2 API';
|
||||
|
||||
// Link to your community node's README
|
||||
documentationUrl = 'https://github.com/org/repo?tab=readme-ov-file#credentials';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Grant Type',
|
||||
name: 'grantType',
|
||||
type: 'hidden',
|
||||
default: 'authorizationCode',
|
||||
},
|
||||
{
|
||||
displayName: 'Authorization URL',
|
||||
name: 'authUrl',
|
||||
type: 'hidden',
|
||||
default: 'https://api.example.com/oauth/authorize',
|
||||
},
|
||||
{
|
||||
displayName: 'Access Token URL',
|
||||
name: 'accessTokenUrl',
|
||||
type: 'hidden',
|
||||
default: 'https://api.example.com/oauth/token',
|
||||
},
|
||||
{
|
||||
displayName: 'Auth URI Query Parameters',
|
||||
name: 'authQueryParameters',
|
||||
type: 'hidden',
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Scope',
|
||||
name: 'scope',
|
||||
type: 'hidden',
|
||||
default: 'users:read users:write companies:read',
|
||||
},
|
||||
{
|
||||
displayName: 'Authentication',
|
||||
name: 'authentication',
|
||||
type: 'hidden',
|
||||
default: 'header',
|
||||
},
|
||||
];
|
||||
}
|
||||
45
node_modules/@n8n/node-cli/dist/template/templates/shared/credentials/oauth2ClientCredentials.credentials.ts
generated
vendored
Normal file
45
node_modules/@n8n/node-cli/dist/template/templates/shared/credentials/oauth2ClientCredentials.credentials.ts
generated
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export class ExampleOAuth2Api implements ICredentialType {
|
||||
name = 'exampleOAuth2Api';
|
||||
|
||||
extends = ['oAuth2Api'];
|
||||
|
||||
displayName = 'Example OAuth2 API';
|
||||
|
||||
// Link to your community node's README
|
||||
documentationUrl = 'https://github.com/org/repo?tab=readme-ov-file#credentials';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Grant Type',
|
||||
name: 'grantType',
|
||||
type: 'hidden',
|
||||
default: 'clientCredentials',
|
||||
},
|
||||
{
|
||||
displayName: 'Access Token URL',
|
||||
name: 'accessTokenUrl',
|
||||
type: 'hidden',
|
||||
default: 'https://api.example.com/oauth/token',
|
||||
},
|
||||
{
|
||||
displayName: 'Auth URI Query Parameters',
|
||||
name: 'authQueryParameters',
|
||||
type: 'hidden',
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Scope',
|
||||
name: 'scope',
|
||||
type: 'hidden',
|
||||
default: 'users:read users:write companies:read',
|
||||
},
|
||||
{
|
||||
displayName: 'Authentication',
|
||||
name: 'authentication',
|
||||
type: 'hidden',
|
||||
default: 'body',
|
||||
},
|
||||
];
|
||||
}
|
||||
28
node_modules/@n8n/node-cli/dist/template/templates/shared/default/.github/workflows/ci.yml
generated
vendored
Normal file
28
node_modules/@n8n/node-cli/dist/template/templates/shared/default/.github/workflows/ci.yml
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '22'
|
||||
|
||||
- name: Install dependencies
|
||||
run: '{{packageManager.name}} {{packageManager.installCommand}}'
|
||||
|
||||
- name: Run lint
|
||||
run: '{{packageManager.name}} run lint'
|
||||
|
||||
- name: Run build
|
||||
run: '{{packageManager.name}} run build'
|
||||
51
node_modules/@n8n/node-cli/dist/template/templates/shared/default/.prettierrc.js
generated
vendored
Normal file
51
node_modules/@n8n/node-cli/dist/template/templates/shared/default/.prettierrc.js
generated
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
module.exports = {
|
||||
/**
|
||||
* https://prettier.io/docs/en/options.html#semicolons
|
||||
*/
|
||||
semi: true,
|
||||
|
||||
/**
|
||||
* https://prettier.io/docs/en/options.html#trailing-commas
|
||||
*/
|
||||
trailingComma: 'all',
|
||||
|
||||
/**
|
||||
* https://prettier.io/docs/en/options.html#bracket-spacing
|
||||
*/
|
||||
bracketSpacing: true,
|
||||
|
||||
/**
|
||||
* https://prettier.io/docs/en/options.html#tabs
|
||||
*/
|
||||
useTabs: true,
|
||||
|
||||
/**
|
||||
* https://prettier.io/docs/en/options.html#tab-width
|
||||
*/
|
||||
tabWidth: 2,
|
||||
|
||||
/**
|
||||
* https://prettier.io/docs/en/options.html#arrow-function-parentheses
|
||||
*/
|
||||
arrowParens: 'always',
|
||||
|
||||
/**
|
||||
* https://prettier.io/docs/en/options.html#quotes
|
||||
*/
|
||||
singleQuote: true,
|
||||
|
||||
/**
|
||||
* https://prettier.io/docs/en/options.html#quote-props
|
||||
*/
|
||||
quoteProps: 'as-needed',
|
||||
|
||||
/**
|
||||
* https://prettier.io/docs/en/options.html#end-of-line
|
||||
*/
|
||||
endOfLine: 'lf',
|
||||
|
||||
/**
|
||||
* https://prettier.io/docs/en/options.html#print-width
|
||||
*/
|
||||
printWidth: 100,
|
||||
};
|
||||
12
node_modules/@n8n/node-cli/dist/template/templates/shared/default/.vscode/launch.json
generated
vendored
Normal file
12
node_modules/@n8n/node-cli/dist/template/templates/shared/default/.vscode/launch.json
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Attach to running n8n",
|
||||
"processId": "${command:PickProcess}",
|
||||
"request": "attach",
|
||||
"skipFiles": ["<node_internals>/**"],
|
||||
"type": "node"
|
||||
}
|
||||
]
|
||||
}
|
||||
0
node_modules/@n8n/node-cli/dist/template/templates/shared/default/CHANGELOG.md
generated
vendored
Normal file
0
node_modules/@n8n/node-cli/dist/template/templates/shared/default/CHANGELOG.md
generated
vendored
Normal file
3
node_modules/@n8n/node-cli/dist/template/templates/shared/default/eslint.config.mjs
generated
vendored
Normal file
3
node_modules/@n8n/node-cli/dist/template/templates/shared/default/eslint.config.mjs
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import { config } from '@n8n/node-cli/eslint';
|
||||
|
||||
export default config;
|
||||
Reference in New Issue
Block a user