Skip to content

Commit b60ad6a

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

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

src/types/eol-scan.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,26 @@ 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: {
50+
createReport: { success: boolean; id?: string; totalRecords?: number };
51+
};
4752
}
4853

4954
export interface CreateEolReportInputSbom {
@@ -59,5 +64,11 @@ export type CreateEolReportInput =
5964
| CreateEolReportInputSbom
6065
| CreateEolReportInputPurls;
6166

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

0 commit comments

Comments
 (0)