-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
53 lines (42 loc) · 1.18 KB
/
types.ts
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
import type { actions, appTypes, finds, pleas } from './lookups.js'
/**
* Format: yyyy/mm/dd
*/
export type DocketDateString = `${number}/${number}/${number}`
/**
* Format: hh:mm
*/
export type DocketTimeString = `${number}:${number}`
export interface Docket {
docketDescription: string
pageNumber: number
court: string
room: string
prosecutor: string
courtDate: DocketDateString
courtTime: DocketTimeString
justiceOfThePeace: string
clerk: string
docketItems: DocketItem[]
}
export interface DocketItem {
lineNumber: number
informationNumber: string
defendantBirthDate: DocketDateString | undefined
counts: number
appTypeNumber: string
appTypeDescription: (typeof appTypes)[keyof typeof appTypes] | undefined
compBadgeNumber: string
offenceDate: DocketDateString | undefined
arrestDate: DocketDateString | undefined
defendantName: string
offenceDescription: string
action: string
actionDescription: (typeof actions)[keyof typeof actions] | undefined
crEl: string
plea: string
pleaDescription: (typeof pleas)[keyof typeof pleas] | undefined
find: string
findDescription: (typeof finds)[keyof typeof finds] | undefined
comment: string
}