Skip to content

Commit 77698ca

Browse files
chore: update eol scan models
1 parent a96ebc9 commit 77698ca

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

src/types/eol-scan.ts

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

1628
export interface NesRemediation {
@@ -29,21 +41,24 @@ export interface EolScanComponent {
2941
export interface EolReportMetadata {
3042
totalComponentsCount: number;
3143
unknownComponentsCount: number;
44+
totalUniqueComponentsCount: number;
3245
}
3346

3447
export 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

4156
export interface EolReportQueryResponse {
42-
eol: { report: { report: EolReport | null } };
57+
eol: { report: EolReport | null };
4358
}
4459

4560
export interface EolReportMutationResponse {
46-
eol: { createReport: { success: boolean; report: EolReport | null } };
61+
eol: { createReport: { success: boolean; id: string; totalRecords: number } };
4762
}
4863

4964
export 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+
6283
export const VALID_STATUSES = ['UNKNOWN', 'OK', 'EOL', 'EOL_UPCOMING'] as const;
6384
export type ComponentStatus = (typeof VALID_STATUSES)[number];

0 commit comments

Comments
 (0)