forked from canada-ca/tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfull-pass-table.js
More file actions
51 lines (50 loc) · 1.62 KB
/
full-pass-table.js
File metadata and controls
51 lines (50 loc) · 1.62 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import { GraphQLObjectType, GraphQLString, GraphQLInt } from 'graphql'
import { globalIdField } from 'graphql-relay'
export const fullPassTableType = new GraphQLObjectType({
name: 'FullPassTable',
description:
'This table contains the data fields for senders who are in the Full Pass category.',
fields: () => ({
id: globalIdField('fullPass'),
dkimDomains: {
type: GraphQLString,
description: 'Domains used for DKIM validation',
resolve: ({ dkimDomains }) => dkimDomains,
},
dkimSelectors: {
type: GraphQLString,
description: 'Pointer to a DKIM public key record in DNS.',
resolve: ({ dkimSelectors }) => dkimSelectors,
},
dnsHost: {
type: GraphQLString,
description: 'Host from reverse DNS of source IP address.',
resolve: ({ dnsHost }) => dnsHost,
},
envelopeFrom: {
type: GraphQLString,
description: 'Domain from SMTP banner message.',
resolve: ({ envelopeFrom }) => envelopeFrom,
},
headerFrom: {
type: GraphQLString,
description: 'The address/domain used in the "From" field.',
resolve: ({ headerFrom }) => headerFrom,
},
sourceIpAddress: {
type: GraphQLString,
description: 'IP address of sending server.',
resolve: ({ sourceIpAddress }) => sourceIpAddress,
},
spfDomains: {
type: GraphQLString,
description: 'Domains used for SPF validation.',
resolve: ({ spfDomains }) => spfDomains,
},
totalMessages: {
type: GraphQLInt,
description: 'Total messages from this sender.',
resolve: ({ totalMessages }) => totalMessages,
},
}),
})