From c7fd7f4fbef938053de39d97a1b2ed3114a51025 Mon Sep 17 00:00:00 2001 From: Tola Leng Date: Fri, 16 May 2025 22:13:03 +0800 Subject: [PATCH] Updated the SSL detail dialog in `SSLCertificatesTable.tsx` to display data based on the ssl DB structure, including fields like `collectionId`, `collectionName`, and other properties from the PocketBase API response. --- application/src/types/ssl.types.ts | 44 ++++++++++++++++++++++-------- 1 file changed, 32 insertions(+), 12 deletions(-) diff --git a/application/src/types/ssl.types.ts b/application/src/types/ssl.types.ts index 60ac0a4..75fc488 100644 --- a/application/src/types/ssl.types.ts +++ b/application/src/types/ssl.types.ts @@ -1,14 +1,34 @@ export interface SSLCertificate { - id: string; - domain: string; - issuer: string; - expiration_date: string; - status: string; - last_notified: string; - warning_threshold: number; - expiry_threshold: number; - notification_channel: string; - created: string; - updated: string; - } \ No newline at end of file + id: string; + domain: string; + issued_to: string; + issuer_o: string; + status: string; + cert_sans?: string; + cert_alg?: string; + serial_number?: number | string; + valid_from: string; + valid_till: string; + validity_days: number; + days_left: number; + valid_days_to_expire?: number; + warning_threshold: number; + expiry_threshold: number; + notification_channel: string; + last_notified?: string; + created?: string; + updated?: string; + // New fields based on the provided structure + collectionId?: string; + collectionName?: string; + resolved_ip?: string; + issuer_cn?: string; +} + +export interface AddSSLCertificateDto { + domain: string; + warning_threshold: number; + expiry_threshold: number; + notification_channel: string; +} \ No newline at end of file