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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user