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
52
53
54
55
56
57
58
59type SortOrder = 'asc' | 'desc'
type BlockerStatus = 'active' | 'ignored' | 'equalified'
type Audit = {
id: string
name: string
pages: number
checks: number
progress: number
status: 'pending' | 'running' | 'completed' | 'failed' | 'idle'
created: string
lastRun: string
schedule: 'daily' | 'monthly' | 'quarterly' | 'manually' | string
}
type AuditSearchOptions = {
nameFilter: string
sortBy: keyof Audit
sortDirection: SortOrder
limit: number
}
type Blocker = {
id: string
issue: string
issueTags: string[]
code: string
screenshotUrl: string
pageTitle: string
pageUrl: string
status: BlockerStatus
check: string
auditDate: string
}
type BlockerGroupkey = 'issue' | 'pageUrl' | 'check'
type BlockerSortKey = 'issue' | 'code' | 'auditDate'
type BlockerFilterKey = 'issue' | 'code' | 'issueTags' | 'pageTitle' | 'pageUrl'
type BlockerSearchOptions = {
filterField: BlockerFilterKey
filterString: string
sortBy: BlockerSortKey
sortDirection: SortOrder
groupBy: BlockerGroupkey | 'none'
groupLimit: number
includedTags: string[]
includedStatuses: (BlockerStatus)[]
limit: number;
}
type Labeled<U = string> = {
key: U
label: string
}
interface HasID {
id: string
}