diff --git a/src/eol/utils.ts b/src/eol/utils.ts index d16f43e..b50a5da 100644 --- a/src/eol/utils.ts +++ b/src/eol/utils.ts @@ -15,6 +15,10 @@ export function deriveComponentStatus( const eolAt = metadata.eolAt ?? ''; const now = new Date().toISOString(); + if (metadata.isNesPackage) { + return 'NES_PACKAGE'; + } + if (metadata.isEol || (eolAt && eolAt <= now)) { return 'EOL'; } diff --git a/src/types/eol-scan.ts b/src/types/eol-scan.ts index 1150905..a3b013a 100644 --- a/src/types/eol-scan.ts +++ b/src/types/eol-scan.ts @@ -80,5 +80,11 @@ export interface GetEolReportInput { size?: number; } -export const VALID_STATUSES = ['UNKNOWN', 'OK', 'EOL', 'EOL_UPCOMING'] as const; +export const VALID_STATUSES = [ + 'UNKNOWN', + 'OK', + 'EOL', + 'EOL_UPCOMING', + 'NES_PACKAGE', +] as const; export type ComponentStatus = (typeof VALID_STATUSES)[number];