Bootstrap n8n node

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2025-12-01 14:25:58 +01:00
parent 35b3f0e3e4
commit e99dce6fc5
6 changed files with 2866 additions and 36 deletions

View File

@@ -0,0 +1,57 @@
import {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,
Icon,
INodeProperties,
} from 'n8n-workflow';
export class ProboApi implements ICredentialType {
name = 'proboApi';
displayName = 'Probo API';
icon: Icon = { light: 'file:../icons/probo.svg', dark: 'file:../icons/probo.svg' };
documentationUrl = 'https://www.getprobo.com/docs';
properties: INodeProperties[] = [
{
displayName: 'Probo Server',
name: 'server',
type: 'string',
default: 'https://us.console.getprobo.com',
description: 'The server to connect to.',
},
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
];
authenticate: IAuthenticateGeneric = {
type: 'generic',
properties: {
headers: {
Authorization: '=Bearer {{$credentials?.apiKey}}',
},
},
};
test: ICredentialTestRequest = {
request: {
baseURL: '={{$credentials.server}}',
url: '/api/console/v1/query',
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: {
query: 'query { viewer { id } }',
},
},
};
}