generated from Dicken/dickendock
Commit 8: Plugin-System (Scanner erweitern, Geräte importieren, Icons)
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
* als auch vom Frontend (apps/frontend) verwendet werden.
|
||||
*/
|
||||
|
||||
import { deviceSourceValues } from "./schemas.js";
|
||||
|
||||
export * from "./schemas.js";
|
||||
|
||||
|
||||
@@ -20,7 +22,7 @@ export interface Device {
|
||||
lastScan: string | null; // ISO-8601 Zeitstempel
|
||||
}
|
||||
|
||||
export type DeviceSource = "fritzbox" | "dns" | "http" | "https" | "portscan" | "manual";
|
||||
export type DeviceSource = (typeof deviceSourceValues)[number];
|
||||
|
||||
export interface Service {
|
||||
id: string;
|
||||
@@ -61,6 +63,14 @@ export interface ScanLogEntry {
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
export interface PluginInfo {
|
||||
name: string;
|
||||
version: string;
|
||||
description?: string;
|
||||
/** z. B. "scanner" (registriert Softwareerkennung), "device-import" */
|
||||
capabilities: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
* Ranking-Stufen für die Suche, gemäß Spezifikation:
|
||||
* 1. Displayname beginnt mit Suchtext
|
||||
|
||||
@@ -7,6 +7,7 @@ export const deviceSourceValues = [
|
||||
"https",
|
||||
"portscan",
|
||||
"manual",
|
||||
"plugin",
|
||||
] as const;
|
||||
|
||||
export const DeviceSourceSchema = z.enum(deviceSourceValues);
|
||||
|
||||
Reference in New Issue
Block a user