2021-04-27 20:55:33 +00:00
|
|
|
import PropTypes from "prop-types";
|
2021-07-15 17:01:52 +00:00
|
|
|
import vulnerabilityInterface, { IVulnerability } from "./vulnerability";
|
2021-04-27 20:55:33 +00:00
|
|
|
|
|
|
|
export default PropTypes.shape({
|
|
|
|
type: PropTypes.string,
|
|
|
|
name: PropTypes.string,
|
|
|
|
version: PropTypes.string,
|
2021-07-15 17:01:52 +00:00
|
|
|
source: PropTypes.string,
|
2021-04-27 20:55:33 +00:00
|
|
|
id: PropTypes.number,
|
2021-07-15 17:01:52 +00:00
|
|
|
vulnerabilities: PropTypes.arrayOf(vulnerabilityInterface),
|
2021-04-27 20:55:33 +00:00
|
|
|
});
|
2021-07-15 17:01:52 +00:00
|
|
|
|
|
|
|
export interface ISoftware {
|
2021-09-29 04:04:58 +00:00
|
|
|
hosts_count?: number;
|
2021-07-15 17:01:52 +00:00
|
|
|
id: number;
|
2021-09-29 04:04:58 +00:00
|
|
|
name: string; // e.g., "Figma.app"
|
|
|
|
version: string; // e.g., "2.1.11"
|
|
|
|
source: string; // e.g., "apps"
|
|
|
|
generated_cpe: string;
|
2021-10-19 18:13:18 +00:00
|
|
|
vulnerabilities: IVulnerability[] | null;
|
2021-09-29 04:04:58 +00:00
|
|
|
last_opened_at?: string | null; // e.g., "2021-08-18T15:11:35Z”
|
|
|
|
bundle_identifier?: string | null; // e.g., "com.figma.Desktop"
|
|
|
|
// type: string;
|
2021-07-15 17:01:52 +00:00
|
|
|
}
|