Skip to content

Commit c6824f5

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

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

src/types/eol-scan.ts

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ export interface EolScanComponentMetadata {
1111
eolAt: string | null;
1212
eolReasons: string[];
1313
cveStats: CveStats[];
14+
releasedAt: Date | null;
15+
nextSupportedVersion: EolScanNextSupportedVersion | null;
16+
daysFromStableVersion: number | null;
17+
majorVersionsFromNextSupported: number | null;
18+
}
19+
20+
export interface EolScanNextSupportedVersion {
21+
purl: string;
22+
version: string;
23+
releasedAt: Date;
1424
}
1525

1626
export interface NesRemediation {
@@ -29,21 +39,26 @@ export interface EolScanComponent {
2939
export interface EolReportMetadata {
3040
totalComponentsCount: number;
3141
unknownComponentsCount: number;
42+
totalUniqueComponentsCount: number;
3243
}
3344

3445
export interface EolReport {
3546
id?: string;
3647
createdOn: string;
3748
components: EolScanComponent[];
3849
metadata: EolReportMetadata;
50+
page: number;
51+
totalRecords: number;
3952
}
4053

4154
export interface EolReportQueryResponse {
42-
eol: { report: { report: EolReport | null } };
55+
eol: { report: EolReport | null };
4356
}
4457

4558
export interface EolReportMutationResponse {
46-
eol: { createReport: { success: boolean; report: EolReport | null } };
59+
eol: {
60+
createReport: { success: boolean; id: string; totalRecords: number };
61+
};
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)