mirror of
https://github.com/fosrl/pangolin.git
synced 2026-10-29 15:09:07 +01:00
Custom dns records
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user