-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.d.ts
42 lines (42 loc) · 1.26 KB
/
types.d.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
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;
}