"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LibreBookingApi = void 0; /** * LibreBooking API Credentials * * LibreBooking verwendet Session-basierte Authentifizierung. * Der Node holt bei jeder Ausführung einen neuen Session-Token. */ class LibreBookingApi { constructor() { this.name = 'libreBookingApi'; this.displayName = 'LibreBooking API'; this.documentationUrl = 'https://librebooking.org/docs/api'; this.properties = [ { displayName: 'LibreBooking URL', name: 'url', type: 'string', default: '', placeholder: 'https://booking.example.com', required: true, description: 'Die Basis-URL Ihrer LibreBooking-Installation (ohne /Web/Services)', }, { displayName: 'Benutzername', name: 'username', type: 'string', default: '', required: true, description: 'Ihr LibreBooking-Benutzername oder E-Mail-Adresse', }, { displayName: 'Passwort', name: 'password', type: 'string', typeOptions: { password: true, }, default: '', required: true, description: 'Ihr LibreBooking-Passwort', }, ]; // Test-Request um die Credentials zu validieren this.test = { request: { baseURL: '={{$credentials.url}}', url: '/Web/Services/index.php/Authentication/Authenticate', method: 'POST', headers: { 'Content-Type': 'application/json', }, body: { username: '={{$credentials.username}}', password: '={{$credentials.password}}', }, }, }; } } exports.LibreBookingApi = LibreBookingApi; //# sourceMappingURL=LibreBookingApi.credentials.js.map