UNPKG

n8n-nodes-livo

Version:

n8n Livo App integration with triggers and actions for orders, products, customers, and repairs

50 lines (49 loc) 1.63 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LivoApi = void 0; class LivoApi { constructor() { this.name = 'livoApi'; this.displayName = 'Livo API'; this.documentationUrl = 'https://docs.livo.app/api'; this.properties = [ { displayName: 'API Key', name: 'apiKey', type: 'string', typeOptions: { password: true, }, default: '', required: true, description: 'The API Key for your Livo account', }, { displayName: 'Base URL', name: 'environment', type: 'string', default: 'https://localhost:7601', required: true, placeholder: 'https://localhost:7601', description: 'The base URL of your Livo API instance (e.g., https://api.livo.app or https://localhost:7601)', }, ]; this.authenticate = { type: 'generic', properties: { headers: { 'X-API-Key': '={{$credentials.apiKey}}', 'Content-Type': 'application/json', }, }, }; this.test = { request: { baseURL: '={{$credentials.environment}}', url: '/api/identity/api-keys/validate', method: 'GET' }, }; } } exports.LivoApi = LivoApi;