From cd2f28df34217e43a915481998f5f3d0fa3273ee Mon Sep 17 00:00:00 2001 From: Paul Payne Date: Fri, 10 Jul 2026 22:48:40 +0000 Subject: [PATCH] Remove dead CentralState types (replaced by resource-specific types) --- web/src/types/index.ts | 54 ------------------------------------------ 1 file changed, 54 deletions(-) diff --git a/web/src/types/index.ts b/web/src/types/index.ts index e46f782..5583bb5 100644 --- a/web/src/types/index.ts +++ b/web/src/types/index.ts @@ -5,60 +5,6 @@ export interface Status { timestamp: string; } -// ======================================== -// Global Config Types (Wild Central level) -// Endpoint: /api/v1/state -// File: {dataDir}/state.yaml -// ======================================== - -export interface HAProxyCustomRoute { - name: string; - port: number; - backend: string; -} - -export interface CentralState { - operator?: { - email?: string; - }; - cloud?: { - central?: { - domain?: string; - }; - dnsmasq?: { - ip?: string; - interface?: string; - dhcp?: { - enabled?: boolean; - rangeStart?: string; - rangeEnd?: string; - leaseTime?: string; - gateway?: string; - }; - }; - haproxy?: { - defaultInstance?: string; - customRoutes?: HAProxyCustomRoute[]; - }; - nftables?: { - enabled?: boolean; - wanInterface?: string; - extraPorts?: Array<{ port: number; protocol?: string; label?: string }>; - }; - ddns?: { - enabled?: boolean; - provider?: string; - intervalMinutes?: number; - }; - }; -} - -export interface CentralStateResponse { - configured: boolean; - state?: CentralState; - message?: string; -} - // ======================================== // Instance Config Types (Wild Cloud instance level) // Endpoint: /api/v1/instances/{name}/config