credentials/BillbeeApi.credentials.ts aktualisiert

This commit is contained in:
2026-09-13 16:22:16 +02:00
parent f2bb08f85c
commit dd041aefde
+20 -9
View File
@@ -7,11 +7,8 @@ import type {
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[] = [
@@ -21,8 +18,6 @@ export class BillbeeApi implements ICredentialType {
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',
@@ -30,9 +25,23 @@ export class BillbeeApi implements ICredentialType {
type: 'string',
typeOptions: { password: true },
default: '',
required: false,
required: true,
},
{
displayName: 'Billbee Benutzername / E-Mail',
name: 'username',
type: 'string',
default: '',
required: true,
},
{
displayName: 'API-Passwort',
name: 'password',
type: 'string',
typeOptions: { password: true },
default: '',
required: true,
},
];
authenticate: IAuthenticateGeneric = {
@@ -41,8 +50,10 @@ export class BillbeeApi implements ICredentialType {
headers: {
'X-Billbee-Api-Key': '={{$credentials.apiKey}}',
},
auth: {
username: '={{$credentials.username}}',
password: '={{$credentials.password}}',
},
},
};
}