mirror of
https://github.com/tips-of-mine/GLPI-Plugin-CVE-Prototype.git
synced 2025-06-28 07:08:44 +02:00
Start repository
This commit is contained in:
45
src/types/cve.ts
Normal file
45
src/types/cve.ts
Normal file
@ -0,0 +1,45 @@
|
||||
export interface CVE {
|
||||
id: number;
|
||||
cve_id: string;
|
||||
description: string;
|
||||
cvss_score: number;
|
||||
cvss_vector: string;
|
||||
severity: 'LOW' | 'MEDIUM' | 'HIGH' | 'CRITICAL';
|
||||
published_date: string;
|
||||
modified_date: string;
|
||||
status: 'NEW' | 'ANALYZED' | 'ASSIGNED' | 'RESOLVED';
|
||||
references: string[];
|
||||
affected_products: string[];
|
||||
date_creation: string;
|
||||
date_mod: string;
|
||||
}
|
||||
|
||||
export interface CVESource {
|
||||
id: number;
|
||||
name: string;
|
||||
url: string;
|
||||
api_key: string;
|
||||
source_type?: string;
|
||||
data_format?: string;
|
||||
is_active: boolean;
|
||||
sync_frequency: number;
|
||||
last_sync: string;
|
||||
sync_status: 'SUCCESS' | 'FAILED' | 'IN_PROGRESS' | 'PENDING';
|
||||
}
|
||||
|
||||
export interface CVERule {
|
||||
id: number;
|
||||
name: string;
|
||||
criteria: any;
|
||||
actions: any;
|
||||
priority: number;
|
||||
is_active: boolean;
|
||||
}
|
||||
|
||||
export interface CVETicket {
|
||||
id: number;
|
||||
cves_id: number;
|
||||
tickets_id: number;
|
||||
creation_type: 'AUTO' | 'MANUAL';
|
||||
date_creation: string;
|
||||
}
|
Reference in New Issue
Block a user