forked from canada-ca/tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathseverity.js
More file actions
25 lines (24 loc) · 693 Bytes
/
Copy pathseverity.js
File metadata and controls
25 lines (24 loc) · 693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import {GraphQLEnumType} from 'graphql'
export const SeverityEnum = new GraphQLEnumType({
name: 'SeverityEnum',
values: {
LOW: {
value: 'low',
description: 'If the given CVE is of a low level severity',
},
MEDIUM: {
value: 'medium',
description: 'If the given CVE is of a medium level severity',
},
HIGH: {
value: 'high',
description: 'If the given CVE is of a high level severity',
},
CRITICAL: {
value: 'critical',
description: 'If the given cve is of a critical level severity',
},
},
description:
'Enum used to inform front end of the level of severity of a given vulnerability for a domain',
})