@@ -10,7 +10,19 @@ export interface EolScanComponentMetadata {
1010 isEol : boolean ;
1111 eolAt : string | null ;
1212 eolReasons : string [ ] ;
13+ ecosystem : string | null ;
1314 cveStats : CveStats [ ] ;
15+ releasedAt : Date | null ;
16+ isNesPackage : boolean ;
17+ nextSupportedVersion : EolScanNextSupportedVersion | null ;
18+ daysBehindNextSupported : number | null ;
19+ majorVersionsFromNextSupported : number | null ;
20+ }
21+
22+ export interface EolScanNextSupportedVersion {
23+ purl : string ;
24+ version : string ;
25+ releasedAt : Date ;
1426}
1527
1628export interface NesRemediation {
@@ -29,21 +41,24 @@ export interface EolScanComponent {
2941export interface EolReportMetadata {
3042 totalComponentsCount : number ;
3143 unknownComponentsCount : number ;
44+ totalUniqueComponentsCount : number ;
3245}
3346
3447export interface EolReport {
35- id ? : string ;
48+ id : string ;
3649 createdOn : string ;
3750 components : EolScanComponent [ ] ;
3851 metadata : EolReportMetadata ;
52+ page : number ;
53+ totalRecords : number ;
3954}
4055
4156export interface EolReportQueryResponse {
42- eol : { report : { report : EolReport | null } } ;
57+ eol : { report : EolReport | null } ;
4358}
4459
4560export interface EolReportMutationResponse {
46- eol : { createReport : { success : boolean ; report : EolReport | null } } ;
61+ eol : { createReport : { success : boolean ; id : string ; totalRecords : number } } ;
4762}
4863
4964export interface CreateEolReportInputSbom {
@@ -59,5 +74,11 @@ export type CreateEolReportInput =
5974 | CreateEolReportInputSbom
6075 | CreateEolReportInputPurls ;
6176
77+ export interface GetEolReportInput {
78+ id : string ;
79+ page ?: number ;
80+ size ?: number ;
81+ }
82+
6283export const VALID_STATUSES = [ 'UNKNOWN' , 'OK' , 'EOL' , 'EOL_UPCOMING' ] as const ;
6384export type ComponentStatus = ( typeof VALID_STATUSES ) [ number ] ;
0 commit comments