-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathweb-scan.js
More file actions
27 lines (25 loc) · 857 Bytes
/
web-scan.js
File metadata and controls
27 lines (25 loc) · 857 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
26
27
import { GraphQLBoolean, GraphQLObjectType, GraphQLString } from 'graphql'
import { webScanResultType } from './web-scan-result'
export const webScanType = new GraphQLObjectType({
name: 'WebScan',
fields: () => ({
ipAddress: {
type: GraphQLString,
description: `IP address for scan target.`,
},
status: {
type: GraphQLString,
description: `The status of the scan for the given domain and IP address.`,
},
isPrivateIp: {
type: GraphQLBoolean,
description: `Whether the IP address is a private IP address.`,
},
results: {
type: webScanResultType,
description: `Results of TLS and HTTP connection scans on the given domain.`,
resolve: async ({ results }) => results,
},
}),
description: `Information for the TLS and HTTP connection scans on the given domain.`,
})