n8n-nodes-helixdb
Version:
n8n community node to integrate with HelixDB - the time-series database for modern applications
107 lines • 3.48 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.HelixDbApi = void 0;
class HelixDbApi {
constructor() {
this.name = 'helixDbApi';
this.displayName = 'HelixDB API';
this.documentationUrl = 'https://docs.helix-db.com';
this.properties = [
{
displayName: 'Host',
name: 'host',
type: 'string',
default: 'localhost',
placeholder: 'localhost',
description: 'The hostname or IP address of your HelixDB server',
},
{
displayName: 'Port',
name: 'port',
type: 'number',
default: 6969,
description: 'The port number for your HelixDB server (default: 6969)',
},
{
displayName: 'Authentication Type',
name: 'authType',
type: 'options',
options: [
{
name: 'None',
value: 'none',
},
{
name: 'Username & Password',
value: 'basic',
},
{
name: 'Bearer Token',
value: 'bearer',
},
],
default: 'none',
description: 'Authentication method to use for connecting to HelixDB',
},
{
displayName: 'Username',
name: 'username',
type: 'string',
default: '',
displayOptions: {
show: {
authType: ['basic'],
},
},
description: 'Username for HelixDB authentication',
},
{
displayName: 'Password',
name: 'password',
type: 'string',
typeOptions: {
password: true,
},
default: '',
displayOptions: {
show: {
authType: ['basic'],
},
},
description: 'Password for HelixDB authentication',
},
{
displayName: 'Bearer Token',
name: 'bearerToken',
type: 'string',
typeOptions: {
password: true,
},
default: '',
displayOptions: {
show: {
authType: ['bearer'],
},
},
description: 'Bearer token for HelixDB authentication',
},
];
this.authenticate = {
type: 'generic',
properties: {
headers: {
Authorization: '={{$credentials.authType === "bearer" ? "Bearer " + $credentials.bearerToken : undefined}}',
},
},
};
this.test = {
request: {
baseURL: 'http://{{$credentials.host}}:{{$credentials.port}}',
url: '/health',
method: 'GET',
},
};
}
}
exports.HelixDbApi = HelixDbApi;
//# sourceMappingURL=HelixDbApi.credentials.js.map