import { IResponse } from "@/types/response.types";

export type CreateDomainType = {
  name: string;
  notes?: string;
};

export type DnsRecordType = {
  id: string;
  createdAt: string;
  updatedAt: string;
  deletedAt: string | null;
  wildduckId: string | null;
  name: string;
  type: "MX" | "SPF" | "DMARC" | "DKIM" | "TXT" | "A" | "AAAA" | "CNAME";
  value: string;
  ttl: number;
  priority: number | null;
  status: "PENDING" | "VERIFIED" | "FAILED";
  isRequired: boolean;
  isActive: boolean;
  lastVerifiedAt: string | null;
  lastCheckedAt: string | null;
  description: string;
  errorMessage: string | null;
  verificationAttempts: number;
  nextVerificationAt: string | null;
  domain: string;
};

export type DnsRecordResponseType = IResponse<{
  dnsRecords: DnsRecordType[];
}>;
