Remove dead CentralState types (replaced by resource-specific types)
This commit is contained in:
@@ -5,60 +5,6 @@ export interface Status {
|
|||||||
timestamp: string;
|
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)
|
// Instance Config Types (Wild Cloud instance level)
|
||||||
// Endpoint: /api/v1/instances/{name}/config
|
// Endpoint: /api/v1/instances/{name}/config
|
||||||
|
|||||||
Reference in New Issue
Block a user