fleet/frontend/interfaces/vulnerability.ts
Jacob Shandling faa65ac350
UI: Add column for published date to Vulnerabilities table (#10656)
## Addresses #9834 
<img width="1215" alt="added date to vuln table"
src="https://user-images.githubusercontent.com/61553566/226730586-4165f5c9-2a42-4378-b58b-7900838a8707.png">

## Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [x] Changes file added for user-visible changes in `changes/`
- [x] Added/updated tests
- [x] Manual QA for all new/changed functionality

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-03-23 09:32:32 -07:00

21 lines
445 B
TypeScript

import PropTypes from "prop-types";
export default PropTypes.shape({
cve: PropTypes.string,
details_link: PropTypes.string,
});
export interface IHostsAffected {
id: number;
display_name: string;
url: string;
}
export interface IVulnerability {
cve: string;
details_link: string;
cvss_score?: number;
epss_probability?: number;
cisa_known_exploit?: boolean;
cve_published?: string;
hosts_affected?: IHostsAffected[];
}