/**
 * BFF Invoice Monitoring Types
 *
 * Infrastructure types for monitoring, health checks, and statistics.
 * These are BFF-specific and do not belong in the domain layer.
 */

// Infrastructure monitoring types
export interface InvoiceServiceStats {
  totalInvoicesRetrieved: number;
  totalPaymentLinksCreated: number;
  totalSsoLinksCreated: number;
  averageResponseTime: number;
  lastRequestTime?: Date;
  lastErrorTime?: Date;
}

export interface InvoiceHealthStatus {
  status: "healthy" | "unhealthy";
  details: {
    whmcsApi?: string;
    mappingsService?: string;
    error?: string;
    timestamp: string;
  };
}
