generated from nhcarrigan/template
feat: security report generation
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
/* eslint-disable @typescript-eslint/naming-convention -- interface properties match API responses. */
|
||||
/**
|
||||
* @copyright NHCarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
|
||||
interface Product {
|
||||
id: number;
|
||||
name: string;
|
||||
}
|
||||
|
||||
interface Finding extends Record<string, unknown> {
|
||||
id: number;
|
||||
title: string;
|
||||
severity: "Critical" | "High" | "Medium" | "Low" | "Info";
|
||||
active: boolean;
|
||||
verified: boolean;
|
||||
product?: Product;
|
||||
}
|
||||
|
||||
interface DojoResponse {
|
||||
count: number;
|
||||
next: string | null;
|
||||
previous: string | null;
|
||||
results: Array<Finding>;
|
||||
}
|
||||
|
||||
interface ProjectStats {
|
||||
Critical: number;
|
||||
High: number;
|
||||
Medium: number;
|
||||
Low: number;
|
||||
Info: number;
|
||||
}
|
||||
|
||||
export type { Product, Finding, DojoResponse, ProjectStats };
|
||||
Reference in New Issue
Block a user