import type { IAuthenticateGeneric, Icon, ICredentialType, INodeProperties, } from 'n8n-workflow'; export class BillbeeApi implements ICredentialType { name = 'N8nDevBillbeeApi'; displayName = 'Billbee API'; icon: Icon = { light: 'file:../nodes/Billbee/billbee.png', dark: 'file:../nodes/Billbee/billbee.dark.png' }; documentationUrl = ''; properties: INodeProperties[] = [ { displayName: 'Base URL', name: 'url', type: 'string', default: 'https://app.billbee.io', required: true, placeholder: 'https://app.billbee.io', description: 'The base URL of your Billbee API server', }, { displayName: 'API Key', name: 'apiKey', type: 'string', typeOptions: { password: true }, default: '', required: false, }, ]; authenticate: IAuthenticateGeneric = { type: 'generic', properties: { headers: { 'X-Billbee-Api-Key': '={{$credentials.apiKey}}', }, }, }; }