diff --git a/application/src/types/service.types.ts b/application/src/types/service.types.ts index 6b987cf..a3b810a 100644 --- a/application/src/types/service.types.ts +++ b/application/src/types/service.types.ts @@ -3,6 +3,8 @@ export interface Service { id: string; name: string; url: string; + host?: string; // Add host field for PING and TCP services + port?: number; // Add port field for TCP services type: "HTTP" | "HTTPS" | "TCP" | "DNS" | "PING" | "HTTP" | "http" | "https" | "tcp" | "dns" | "ping" | "smtp" | "icmp"; status: "up" | "down" | "paused" | "pending" | "warning"; responseTime: number; @@ -15,11 +17,15 @@ export interface Service { muteAlerts?: boolean; // Keep this to avoid breaking existing code alerts?: "muted" | "unmuted"; // Make sure alerts is properly typed as union muteChangedAt?: string; + domain?: string; // Add domain field for DNS services } export interface CreateServiceParams { name: string; - url: string; + url?: string; + host?: string; // Add host field for PING and TCP services + port?: number; // Add port field for TCP services + domain?: string; // Add domain field for DNS services type: string; interval: number; retries: number; @@ -35,4 +41,4 @@ export interface UptimeData { timestamp: string; status: "up" | "down" | "paused" | "pending" | "warning"; responseTime: number; -} +} \ No newline at end of file