feat(external-gateway): add gateway client domain and DNS record support for dcrouter integration
This commit is contained in:
@@ -57,3 +57,40 @@ export interface IDnsRecord {
|
||||
createdAt: number;
|
||||
updatedAt: number;
|
||||
}
|
||||
|
||||
export interface IGatewayDomain {
|
||||
id?: string;
|
||||
name: string;
|
||||
source?: 'dcrouter' | 'provider';
|
||||
authoritative?: boolean;
|
||||
providerId?: string;
|
||||
serviceCount?: number;
|
||||
managePath?: string;
|
||||
manageUrl?: string;
|
||||
capabilities?: {
|
||||
canCreateSubdomains: boolean;
|
||||
canManageDnsRecords: boolean;
|
||||
canIssueCertificates: boolean;
|
||||
canHostEmail: boolean;
|
||||
};
|
||||
}
|
||||
|
||||
export interface IGatewayDnsRecord {
|
||||
id: string;
|
||||
domainId: string;
|
||||
domainName?: string;
|
||||
name: string;
|
||||
type: string;
|
||||
value: string;
|
||||
ttl: number;
|
||||
source: string;
|
||||
status: 'active' | 'missing';
|
||||
gatewayClientType: 'onebox' | 'cloudly' | 'custom';
|
||||
gatewayClientId: string;
|
||||
appId: string;
|
||||
hostname: string;
|
||||
routeId?: string;
|
||||
serviceName?: string;
|
||||
managePath?: string;
|
||||
manageUrl?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user