feat(cert): expose status, last_error, last_attempt_at on Cert type

This commit is contained in:
Hintay
2026-05-23 05:10:49 +09:00
parent 8acffbf078
commit 51c1f6771c
+11
View File
@@ -5,6 +5,14 @@ import type { DnsCredential } from '@/api/dns_credential'
import type { PrivateKeyType } from '@/constants'
import { useCurdApi } from '@uozi-admin/request'
export const CertStatus = {
Pending: 'pending',
Success: 'success',
Failure: 'failure',
} as const
export type CertStatusType = '' | typeof CertStatus[keyof typeof CertStatus]
export interface Cert extends ModelBase {
name: string
domains: string[]
@@ -24,6 +32,9 @@ export interface Cert extends ModelBase {
certificate_info: CertificateInfo
sync_node_ids: number[]
revoke_old: boolean
status: CertStatusType
last_error: string
last_attempt_at: string
}
export interface CertificateInfo {