From 77698ca843a6f7dafacbf7fb57ddd00f135ad1d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Facundo=20Rodr=C3=ADguez?= Date: Fri, 15 Aug 2025 10:15:08 -0300 Subject: [PATCH] chore: update eol scan models --- src/types/eol-scan.ts | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/src/types/eol-scan.ts b/src/types/eol-scan.ts index 0e6bdcc..0c41ef0 100644 --- a/src/types/eol-scan.ts +++ b/src/types/eol-scan.ts @@ -10,7 +10,19 @@ export interface EolScanComponentMetadata { isEol: boolean; eolAt: string | null; eolReasons: string[]; + ecosystem: string | null; cveStats: CveStats[]; + releasedAt: Date | null; + isNesPackage: boolean; + nextSupportedVersion: EolScanNextSupportedVersion | null; + daysBehindNextSupported: number | null; + majorVersionsFromNextSupported: number | null; +} + +export interface EolScanNextSupportedVersion { + purl: string; + version: string; + releasedAt: Date; } export interface NesRemediation { @@ -29,21 +41,24 @@ export interface EolScanComponent { export interface EolReportMetadata { totalComponentsCount: number; unknownComponentsCount: number; + totalUniqueComponentsCount: number; } export interface EolReport { - id?: string; + id: string; createdOn: string; components: EolScanComponent[]; metadata: EolReportMetadata; + page: number; + totalRecords: number; } export interface EolReportQueryResponse { - eol: { report: { report: EolReport | null } }; + eol: { report: EolReport | null }; } export interface EolReportMutationResponse { - eol: { createReport: { success: boolean; report: EolReport | null } }; + eol: { createReport: { success: boolean; id: string; totalRecords: number } }; } export interface CreateEolReportInputSbom { @@ -59,5 +74,11 @@ export type CreateEolReportInput = | CreateEolReportInputSbom | CreateEolReportInputPurls; +export interface GetEolReportInput { + id: string; + page?: number; + size?: number; +} + export const VALID_STATUSES = ['UNKNOWN', 'OK', 'EOL', 'EOL_UPCOMING'] as const; export type ComponentStatus = (typeof VALID_STATUSES)[number];