Skip to content

Commit 3e4a093

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

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/types/eol-scan.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,24 @@ export interface EolScanComponent {
2929
export interface EolReportMetadata {
3030
totalComponentsCount: number;
3131
unknownComponentsCount: number;
32+
totalUniqueComponentsCount: number;
3233
}
3334

3435
export interface EolReport {
3536
id?: string;
3637
createdOn: string;
3738
components: EolScanComponent[];
3839
metadata: EolReportMetadata;
40+
page?: number;
41+
totalRecords?: number;
3942
}
4043

4144
export interface EolReportQueryResponse {
42-
eol: { report: { report: EolReport | null } };
45+
eol: { report: EolReport | null };
4346
}
4447

4548
export interface EolReportMutationResponse {
46-
eol: { createReport: { success: boolean; report: EolReport | null } };
49+
eol: { createReport: { success: boolean; id?: string; totalRecords?: number } };
4750
}
4851

4952
export interface CreateEolReportInputSbom {
@@ -59,5 +62,11 @@ export type CreateEolReportInput =
5962
| CreateEolReportInputSbom
6063
| CreateEolReportInputPurls;
6164

65+
export interface GetEolReportInput {
66+
id: string;
67+
page?: number;
68+
size?: number;
69+
};
70+
6271
export const VALID_STATUSES = ['UNKNOWN', 'OK', 'EOL', 'EOL_UPCOMING'] as const;
6372
export type ComponentStatus = (typeof VALID_STATUSES)[number];

0 commit comments

Comments
 (0)