feat: Equipment page — KKT hides connection, Windows printer, COM retry; agent update banner

- EquipmentPage: KKT hides USB/COM/Network buttons (DTO handles connection)
- EquipmentPage: Printer adds Windows connection type — lists installed printers from agent
- EquipmentPage: COM port section has retry button (↺)
- api.ts: add listPrinters, extend connection type
- workstations.ts: add /printers endpoint (list_printers command)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-27 18:30:06 +03:00
parent 13dac3f227
commit 1358dda7f9
3 changed files with 116 additions and 17 deletions

View File

@@ -359,6 +359,8 @@ export const api = {
req<{ ok: true; sent: number }>('POST', `/api/hotels/${slug}/workstations/update-all`),
listPorts: (slug: string, wsId: string) =>
req<{ ports: { port: string; description?: string }[] }>('GET', `/api/hotels/${slug}/workstations/${wsId}/ports`),
listPrinters: (slug: string, wsId: string) =>
req<{ printers: { name: string; isDefault: boolean }[] }>('GET', `/api/hotels/${slug}/workstations/${wsId}/printers`),
},
// ── Agents ────────────────────────────────────────────────────────────────
@@ -1001,7 +1003,7 @@ export interface WorkstationDevice {
workstationId: string
type: 'kkt' | 'printer' | 'netup'
name: string
connection: 'usb' | 'network' | 'com'
connection: 'usb' | 'network' | 'com' | 'windows'
networkHost?: string
networkPort?: number
comPort?: string