UNPKG

@n8n/n8n-nodes-langchain

Version:

![Banner image](https://user-images.githubusercontent.com/10284570/173569848-c624317f-42b1-45a6-ab09-f0ea3c247648.png)

50 lines 1.49 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.XataApi = void 0; class XataApi { constructor() { this.name = 'xataApi'; this.displayName = 'Xata Api'; this.documentationUrl = 'xata'; this.properties = [ { displayName: 'Database Endpoint', name: 'databaseEndpoint', required: true, type: 'string', default: '', placeholder: 'https://{workspace}.{region}.xata.sh/db/{database}', }, { displayName: 'Branch', name: 'branch', required: true, type: 'string', default: 'main', }, { displayName: 'API Key', name: 'apiKey', type: 'string', typeOptions: { password: true }, required: true, default: '', }, ]; this.authenticate = { type: 'generic', properties: { headers: { Authorization: '=Bearer {{$credentials.apiKey}}', }, }, }; this.test = { request: { baseURL: '={{$credentials.databaseEndpoint}}:{{$credentials.branch}}', }, }; } } exports.XataApi = XataApi; //# sourceMappingURL=XataApi.credentials.js.map