Custom dns records

This commit is contained in:
Owen
2026-10-28 11:01:29 -04:00
parent 2298ceb63a
commit cd39f2ecd6
21 changed files with 2146 additions and 9 deletions
+33
View File
@@ -0,0 +1,33 @@
export const CUSTOM_DNS_RECORD_TYPES = [
"A",
"AAAA",
"CNAME",
"MX",
"NS",
"SRV",
"TXT"
] as const;
export type CustomDnsRecordType = (typeof CUSTOM_DNS_RECORD_TYPES)[number];
export type CustomDnsRecordRow = {
customDnsRecordId: number;
domainId: string;
name: string;
fullDomain: string;
type: CustomDnsRecordType;
value: string;
ttl: number;
priority: number | null;
weight: number | null;
port: number | null;
enabled: boolean;
createdAt: number;
updatedAt: number;
};
export type ListCustomDnsRecordsResponse = {
records: CustomDnsRecordRow[];
};
export type CreateOrUpdateCustomDnsRecordResponse = CustomDnsRecordRow;