76 lines
2.1 KiB
TypeScript
76 lines
2.1 KiB
TypeScript
import {
|
|
ICredentialType,
|
|
INodeProperties,
|
|
} from 'n8n-workflow';
|
|
|
|
/**
|
|
* LibreBooking Config Credential
|
|
*
|
|
* Ermöglicht die zentrale Konfiguration von Standardwerten,
|
|
* die in allen LibreBooking Nodes verwendet werden können.
|
|
*/
|
|
export class LibreBookingConfig implements ICredentialType {
|
|
name = 'libreBookingConfig';
|
|
displayName = 'LibreBooking Config';
|
|
documentationUrl = 'https://librebooking.org';
|
|
|
|
properties: INodeProperties[] = [
|
|
{
|
|
displayName: 'Hinweis',
|
|
name: 'notice',
|
|
type: 'notice',
|
|
default: '',
|
|
description: 'Dieser Config-Node speichert Standardwerte für LibreBooking Operationen. Er ist optional und die Werte können in den einzelnen Nodes überschrieben werden.',
|
|
},
|
|
{
|
|
displayName: 'Standard Nutzungsbedingungen Akzeptiert',
|
|
name: 'defaultTermsAccepted',
|
|
type: 'boolean',
|
|
default: true,
|
|
description: 'Standardwert für die Akzeptanz der Nutzungsbedingungen bei Reservierungen',
|
|
},
|
|
{
|
|
displayName: 'Standard Teilnahme Erlauben',
|
|
name: 'defaultAllowParticipation',
|
|
type: 'boolean',
|
|
default: false,
|
|
description: 'Standardwert für die Teilnahme-Erlaubnis bei Reservierungen',
|
|
},
|
|
{
|
|
displayName: 'Standard Ressourcen-ID',
|
|
name: 'defaultResourceId',
|
|
type: 'number',
|
|
default: 0,
|
|
description: 'Standard-Ressourcen-ID für Reservierungen (0 = keine Standardressource)',
|
|
},
|
|
{
|
|
displayName: 'Standard Benutzer-ID',
|
|
name: 'defaultUserId',
|
|
type: 'number',
|
|
default: 0,
|
|
description: 'Standard-Benutzer-ID für Reservierungen (0 = angemeldeter Benutzer)',
|
|
},
|
|
{
|
|
displayName: 'Standard Zeitplan-ID',
|
|
name: 'defaultScheduleId',
|
|
type: 'number',
|
|
default: 0,
|
|
description: 'Standard-Zeitplan-ID für Ressourcen-Erstellung (0 = keine Standard-Zeitplan)',
|
|
},
|
|
{
|
|
displayName: 'Standard Zeitzone',
|
|
name: 'defaultTimezone',
|
|
type: 'string',
|
|
default: 'Europe/Berlin',
|
|
description: 'Standard-Zeitzone für neue Benutzer',
|
|
},
|
|
{
|
|
displayName: 'Standard Sprache',
|
|
name: 'defaultLanguage',
|
|
type: 'string',
|
|
default: 'de_de',
|
|
description: 'Standard-Sprache für neue Benutzer',
|
|
},
|
|
];
|
|
}
|