UNPKG

n8n-nodes-base

Version:

Base nodes of n8n

80 lines 2.4 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.VerticaApi = void 0; class VerticaApi { name = 'verticaApi'; displayName = 'Vertica API'; documentationUrl = 'vertica'; httpRequestNode = { name: 'Vertica', docsUrl: 'vertica', apiBaseUrlPlaceholder: 'http://<server>:<port>/v1/', }; properties = [ { displayName: 'URL', name: 'url', required: true, type: 'string', default: 'https://localhost:8443', placeholder: 'https://<server>:<port>', }, { displayName: 'Username', name: 'username', type: 'string', default: '', description: 'The username for accessing the Vertica database.', }, { displayName: 'Password', name: 'password', type: 'string', typeOptions: { password: true }, default: '', description: 'The password for accessing the Vertica database.', }, ]; authenticate = { type: 'generic', properties: { auth: { username: '={{$credentials.username}}', password: '={{$credentials.password}}', }, }, }; test = { request: { baseURL: '={{$credentials.url}}'.replace(/\/$/, ''), url: '/v1/health', method: 'GET', skipSslCertificateValidation: true, }, rules: [ { type: 'responseCode', properties: { value: 403, message: 'Connection failed: Invalid credentials or insufficient permissions', }, }, { type: 'responseCode', properties: { value: 503, message: 'Service unavailable: Server is overloaded or under maintenance', }, }, { type: 'responseCode', properties: { value: 504, message: 'Gateway timeout: Upstream server took too long to respond', }, }, ], }; } exports.VerticaApi = VerticaApi; //# sourceMappingURL=VerticaApi.credentials.js.map