49 lines
1.4 KiB
TypeScript
49 lines
1.4 KiB
TypeScript
import { DeesElement, type TemplateResult } from '@design.estate/dees-element';
|
|
declare global {
|
|
interface HTMLElementTagNameMap {
|
|
'sz-domain-detail-view': SzDomainDetailView;
|
|
}
|
|
}
|
|
export interface IDomainDetail {
|
|
id: string;
|
|
name: string;
|
|
status: 'active' | 'pending' | 'error';
|
|
verified: boolean;
|
|
createdAt: string;
|
|
proxyRoutes?: string[];
|
|
}
|
|
export interface ICertificateDetail {
|
|
id: string;
|
|
domain: string;
|
|
issuer: string;
|
|
validFrom: string;
|
|
validUntil: string;
|
|
daysRemaining: number;
|
|
status: 'valid' | 'expiring' | 'expired';
|
|
autoRenew: boolean;
|
|
chain?: string[];
|
|
}
|
|
export interface IDnsRecordDetail {
|
|
id: string;
|
|
type: 'A' | 'AAAA' | 'CNAME' | 'MX' | 'TXT' | 'NS' | 'SRV';
|
|
name: string;
|
|
value: string;
|
|
ttl: number;
|
|
priority?: number;
|
|
}
|
|
export declare class SzDomainDetailView extends DeesElement {
|
|
static demo: () => TemplateResult<1>;
|
|
accessor domain: IDomainDetail | null;
|
|
accessor certificate: ICertificateDetail | null;
|
|
accessor dnsRecords: IDnsRecordDetail[];
|
|
accessor actionLoading: boolean;
|
|
static styles: import("@design.estate/dees-element").CSSResult[];
|
|
render(): TemplateResult;
|
|
private handleVerify;
|
|
private handleDelete;
|
|
private handleRenewCertificate;
|
|
private handleAddDnsRecord;
|
|
private handleEditDnsRecord;
|
|
private handleDeleteDnsRecord;
|
|
}
|