@moj-bichard7-developers/bichard7-next-data 2.0.6 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/forces.json +206 -0
- package/dist/data/forces.json +206 -0
- package/dist/index.d.ts +51 -69
- package/dist/index.js +67 -64
- package/dist/index.js.map +1 -1
- package/dist/types/types.d.ts +38 -34
- package/index.ts +35 -32
- package/package.json +1 -1
- package/types/types.ts +38 -67
package/data/forces.json
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"code": "01",
|
|
4
|
+
"name": "London Metropolitan Police"
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"code": "02",
|
|
8
|
+
"name": "London Metropolitan Police"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"code": "03",
|
|
12
|
+
"name": "Cumbria"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"code": "04",
|
|
16
|
+
"name": "Lancashire Constabulary"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"code": "05",
|
|
20
|
+
"name": "Merseyside Police"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"code": "06",
|
|
24
|
+
"name": "Greater Manchester Police"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"code": "07",
|
|
28
|
+
"name": "Cheshire"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"code": "10",
|
|
32
|
+
"name": "Northumbria"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"code": "11",
|
|
36
|
+
"name": "Durham"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"code": "12",
|
|
40
|
+
"name": "North Yorkshire Police"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"code": "13",
|
|
44
|
+
"name": "West Yorkshire Police"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"code": "14",
|
|
48
|
+
"name": "South Yorkshire"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"code": "16",
|
|
52
|
+
"name": "Humberside Police"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"code": "17",
|
|
56
|
+
"name": "Cleveland Police"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"code": "20",
|
|
60
|
+
"name": "West Midlands"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"code": "21",
|
|
64
|
+
"name": "Staffordshire"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"code": "22",
|
|
68
|
+
"name": "West Mercia Constabulary"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"code": "23",
|
|
72
|
+
"name": "Warwickshire Police"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"code": "30",
|
|
76
|
+
"name": "Derbyshire Police P1250372"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"code": "31",
|
|
80
|
+
"name": "Nottinghamshire"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"code": "32",
|
|
84
|
+
"name": "Lincolnshire"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"code": "33",
|
|
88
|
+
"name": "Leicestershire"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"code": "34",
|
|
92
|
+
"name": "Northamptonshire"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"code": "35",
|
|
96
|
+
"name": "Cambridgeshire Constabulary"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"code": "36",
|
|
100
|
+
"name": "Norfolk"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"code": "37",
|
|
104
|
+
"name": "Suffolk Constabulary"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"code": "40",
|
|
108
|
+
"name": "Bedfordshire"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"code": "41",
|
|
112
|
+
"name": "Hertfordshire"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"code": "42",
|
|
116
|
+
"name": "Essex"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"code": "43",
|
|
120
|
+
"name": "Thames Valley Police"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"code": "44",
|
|
124
|
+
"name": "Hampshire Constabulary"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"code": "45",
|
|
128
|
+
"name": "Surrey Police"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"code": "46",
|
|
132
|
+
"name": "Kent Police"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"code": "47",
|
|
136
|
+
"name": "Sussex Police"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"code": "50",
|
|
140
|
+
"name": "Devon & Cornwall Constabulary"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"code": "52",
|
|
144
|
+
"name": "Avon & Somerset Police"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"code": "53",
|
|
148
|
+
"name": "Gloucestershire Police"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"code": "54",
|
|
152
|
+
"name": "Wiltshire Police"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"code": "55",
|
|
156
|
+
"name": "Dorset Police"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"code": "60",
|
|
160
|
+
"name": "North Wales"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"code": "61",
|
|
164
|
+
"name": "Gwent"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"code": "62",
|
|
168
|
+
"name": "South Wales"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"code": "63",
|
|
172
|
+
"name": "Dyfed Powys Police"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"code": "93",
|
|
176
|
+
"name": "BTP global include"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"code": "24",
|
|
180
|
+
"name": "MOD Police force global include"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"code": "15",
|
|
184
|
+
"name": "HM Forces and other global include"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"code": "73",
|
|
188
|
+
"name": "HMCS global include"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"code": "88",
|
|
192
|
+
"name": "HMRC force global include : P1331753 +PR2, +PR10, +PR12, +PR19"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"code": "89",
|
|
196
|
+
"name": "UK Central Authority for Exchange of Criminal Records global include"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"code": "91",
|
|
200
|
+
"name": "National Crime Agency"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"code": "B01DU",
|
|
204
|
+
"name": "City of London Police Service"
|
|
205
|
+
}
|
|
206
|
+
]
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"code": "01",
|
|
4
|
+
"name": "London Metropolitan Police"
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"code": "02",
|
|
8
|
+
"name": "London Metropolitan Police"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"code": "03",
|
|
12
|
+
"name": "Cumbria"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"code": "04",
|
|
16
|
+
"name": "Lancashire Constabulary"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"code": "05",
|
|
20
|
+
"name": "Merseyside Police"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"code": "06",
|
|
24
|
+
"name": "Greater Manchester Police"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"code": "07",
|
|
28
|
+
"name": "Cheshire"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"code": "10",
|
|
32
|
+
"name": "Northumbria"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"code": "11",
|
|
36
|
+
"name": "Durham"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"code": "12",
|
|
40
|
+
"name": "North Yorkshire Police"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"code": "13",
|
|
44
|
+
"name": "West Yorkshire Police"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"code": "14",
|
|
48
|
+
"name": "South Yorkshire"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"code": "16",
|
|
52
|
+
"name": "Humberside Police"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"code": "17",
|
|
56
|
+
"name": "Cleveland Police"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"code": "20",
|
|
60
|
+
"name": "West Midlands"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"code": "21",
|
|
64
|
+
"name": "Staffordshire"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"code": "22",
|
|
68
|
+
"name": "West Mercia Constabulary"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"code": "23",
|
|
72
|
+
"name": "Warwickshire Police"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"code": "30",
|
|
76
|
+
"name": "Derbyshire Police P1250372"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"code": "31",
|
|
80
|
+
"name": "Nottinghamshire"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"code": "32",
|
|
84
|
+
"name": "Lincolnshire"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"code": "33",
|
|
88
|
+
"name": "Leicestershire"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"code": "34",
|
|
92
|
+
"name": "Northamptonshire"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"code": "35",
|
|
96
|
+
"name": "Cambridgeshire Constabulary"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"code": "36",
|
|
100
|
+
"name": "Norfolk"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"code": "37",
|
|
104
|
+
"name": "Suffolk Constabulary"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"code": "40",
|
|
108
|
+
"name": "Bedfordshire"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"code": "41",
|
|
112
|
+
"name": "Hertfordshire"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"code": "42",
|
|
116
|
+
"name": "Essex"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"code": "43",
|
|
120
|
+
"name": "Thames Valley Police"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"code": "44",
|
|
124
|
+
"name": "Hampshire Constabulary"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"code": "45",
|
|
128
|
+
"name": "Surrey Police"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"code": "46",
|
|
132
|
+
"name": "Kent Police"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"code": "47",
|
|
136
|
+
"name": "Sussex Police"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"code": "50",
|
|
140
|
+
"name": "Devon & Cornwall Constabulary"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"code": "52",
|
|
144
|
+
"name": "Avon & Somerset Police"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"code": "53",
|
|
148
|
+
"name": "Gloucestershire Police"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"code": "54",
|
|
152
|
+
"name": "Wiltshire Police"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"code": "55",
|
|
156
|
+
"name": "Dorset Police"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"code": "60",
|
|
160
|
+
"name": "North Wales"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"code": "61",
|
|
164
|
+
"name": "Gwent"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"code": "62",
|
|
168
|
+
"name": "South Wales"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"code": "63",
|
|
172
|
+
"name": "Dyfed Powys Police"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"code": "93",
|
|
176
|
+
"name": "BTP global include"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"code": "24",
|
|
180
|
+
"name": "MOD Police force global include"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"code": "15",
|
|
184
|
+
"name": "HM Forces and other global include"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"code": "73",
|
|
188
|
+
"name": "HMCS global include"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"code": "88",
|
|
192
|
+
"name": "HMRC force global include : P1331753 +PR2, +PR10, +PR12, +PR19"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"code": "89",
|
|
196
|
+
"name": "UK Central Authority for Exchange of Criminal Records global include"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"code": "91",
|
|
200
|
+
"name": "National Crime Agency"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"code": "B01DU",
|
|
204
|
+
"name": "City of London Police Service"
|
|
205
|
+
}
|
|
206
|
+
]
|
package/dist/index.d.ts
CHANGED
|
@@ -1,87 +1,69 @@
|
|
|
1
|
-
import { AlcoholLevelMethod, CrestDisposal, DurationUnit, ExcludedTriggerConfig, ModeOfTrialReason, OffenceCode, OrganisationUnit, PleaStatus, PncCourtMapping, PncDisposal, ResultCode, TriggerDefinition } from "./types/types";
|
|
1
|
+
import { ActualOffenceDate, AlcoholLevelMethod, Amount, Country, CourtType, CrestDisposal, DefendantPresentAtHearing, DurationType, DurationUnit, ExcludedTriggerConfig, Force, Gender, ModeOfTrialReason, Number, OffenceCategory, OffenceCode, OffenceInitiation, OrganisationUnit, PleaStatus, PncCourtMapping, PncDisposal, Qualifier, RemandStatus, ResultClass, ResultCode, ResultQualifierCode, Summons, TargetCourtType, TriggerDefinition, TypeOfHearing, VehicleCode, Verdict, YesNo } from "./types/types";
|
|
2
|
+
export declare const actualOffenceDate: ActualOffenceDate[];
|
|
3
|
+
export declare const alcoholLevelMethod: AlcoholLevelMethod[];
|
|
4
|
+
export declare const amount: Amount[];
|
|
5
|
+
export declare const country: Country[];
|
|
6
|
+
export declare const courtType: CourtType[];
|
|
7
|
+
export declare const crestDisposal: CrestDisposal[];
|
|
8
|
+
export declare const defendantPresentAtHearing: DefendantPresentAtHearing[];
|
|
9
|
+
export declare const durationType: DurationType[];
|
|
10
|
+
export declare const durationUnit: DurationUnit[];
|
|
11
|
+
export declare const excludedTriggerConfig: ExcludedTriggerConfig;
|
|
12
|
+
export declare const forces: Force[];
|
|
13
|
+
export declare const gender: Gender[];
|
|
14
|
+
export declare const modeOfTrialReason: ModeOfTrialReason[];
|
|
15
|
+
export declare const number: Number[];
|
|
16
|
+
export declare const offenceCategory: OffenceCategory[];
|
|
17
|
+
export declare const offenceCode: OffenceCode[];
|
|
18
|
+
export declare const offenceInitiation: OffenceInitiation[];
|
|
19
|
+
export declare const organisationUnit: OrganisationUnit[];
|
|
20
|
+
export declare const pleaStatus: PleaStatus[];
|
|
21
|
+
export declare const pncCourtMapping: PncCourtMapping[];
|
|
22
|
+
export declare const pncDisposal: PncDisposal[];
|
|
23
|
+
export declare const qualifier: Qualifier[];
|
|
24
|
+
export declare const remandStatus: RemandStatus[];
|
|
25
|
+
export declare const resultClass: ResultClass[];
|
|
26
|
+
export declare const resultCode: ResultCode[];
|
|
27
|
+
export declare const resultQualifierCode: ResultQualifierCode[];
|
|
28
|
+
export declare const summons: Summons[];
|
|
29
|
+
export declare const targetCourtType: TargetCourtType[];
|
|
30
|
+
export declare const triggerDefinitions: TriggerDefinition[];
|
|
31
|
+
export declare const typeOfHearing: TypeOfHearing[];
|
|
32
|
+
export declare const vehicleCode: VehicleCode[];
|
|
33
|
+
export declare const verdict: Verdict[];
|
|
34
|
+
export declare const yesNo: YesNo[];
|
|
2
35
|
declare const _default: {
|
|
3
|
-
actualOffenceDate:
|
|
4
|
-
cjsCode: string;
|
|
5
|
-
description: string;
|
|
6
|
-
}[];
|
|
36
|
+
actualOffenceDate: import("./types/types").CjsCodeAndDescription[];
|
|
7
37
|
alcoholLevelMethod: AlcoholLevelMethod[];
|
|
8
|
-
amount:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}[];
|
|
12
|
-
country: {
|
|
13
|
-
cjsCode: string;
|
|
14
|
-
description: string;
|
|
15
|
-
}[];
|
|
16
|
-
courtType: {
|
|
17
|
-
cjsCode: string;
|
|
18
|
-
description: string;
|
|
19
|
-
}[];
|
|
38
|
+
amount: import("./types/types").CjsCodeAndDescription[];
|
|
39
|
+
country: import("./types/types").CjsCodeAndDescription[];
|
|
40
|
+
courtType: import("./types/types").CjsCodeAndDescription[];
|
|
20
41
|
crestDisposal: CrestDisposal[];
|
|
21
|
-
defendantPresentAtHearing:
|
|
22
|
-
|
|
23
|
-
description: string;
|
|
24
|
-
}[];
|
|
25
|
-
durationType: {
|
|
26
|
-
cjsCode: string;
|
|
27
|
-
description: string;
|
|
28
|
-
}[];
|
|
42
|
+
defendantPresentAtHearing: import("./types/types").CjsCodeAndDescription[];
|
|
43
|
+
durationType: import("./types/types").CjsCodeAndDescription[];
|
|
29
44
|
durationUnit: DurationUnit[];
|
|
30
45
|
excludedTriggerConfig: ExcludedTriggerConfig;
|
|
31
46
|
gender: DurationUnit[];
|
|
32
47
|
modeOfTrialReason: ModeOfTrialReason[];
|
|
33
|
-
number:
|
|
34
|
-
|
|
35
|
-
description: string;
|
|
36
|
-
}[];
|
|
37
|
-
offenceCategory: {
|
|
38
|
-
cjsCode: string;
|
|
39
|
-
description: string;
|
|
40
|
-
}[];
|
|
48
|
+
number: import("./types/types").CjsCodeAndDescription[];
|
|
49
|
+
offenceCategory: import("./types/types").CjsCodeAndDescription[];
|
|
41
50
|
offenceCode: OffenceCode[];
|
|
42
|
-
offenceInitiation:
|
|
43
|
-
cjsCode: string;
|
|
44
|
-
description: string;
|
|
45
|
-
}[];
|
|
51
|
+
offenceInitiation: import("./types/types").CjsCodeAndDescription[];
|
|
46
52
|
organisationUnit: OrganisationUnit[];
|
|
47
53
|
pleaStatus: PleaStatus[];
|
|
48
54
|
pncCourtMapping: PncCourtMapping[];
|
|
49
55
|
pncDisposal: PncDisposal[];
|
|
50
|
-
qualifier:
|
|
51
|
-
cjsCode: string;
|
|
52
|
-
description: string;
|
|
53
|
-
}[];
|
|
56
|
+
qualifier: import("./types/types").CjsCodeAndDescription[];
|
|
54
57
|
remandStatus: PleaStatus[];
|
|
55
|
-
resultClass:
|
|
56
|
-
cjsCode: string;
|
|
57
|
-
description: string;
|
|
58
|
-
}[];
|
|
58
|
+
resultClass: import("./types/types").CjsCodeAndDescription[];
|
|
59
59
|
resultCode: ResultCode[];
|
|
60
|
-
resultQualifierCode:
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}[];
|
|
64
|
-
summons: {
|
|
65
|
-
cjsCode: string;
|
|
66
|
-
description: string;
|
|
67
|
-
}[];
|
|
68
|
-
targetCourtType: {
|
|
69
|
-
cjsCode: string;
|
|
70
|
-
description: string;
|
|
71
|
-
}[];
|
|
60
|
+
resultQualifierCode: import("./types/types").CjsCodeAndDescription[];
|
|
61
|
+
summons: import("./types/types").CjsCodeAndDescription[];
|
|
62
|
+
targetCourtType: import("./types/types").CjsCodeAndDescription[];
|
|
72
63
|
triggerDefinitions: TriggerDefinition[];
|
|
73
|
-
typeOfHearing:
|
|
74
|
-
|
|
75
|
-
description: string;
|
|
76
|
-
}[];
|
|
77
|
-
vehicleCode: {
|
|
78
|
-
cjsCode: string;
|
|
79
|
-
description: string;
|
|
80
|
-
}[];
|
|
64
|
+
typeOfHearing: import("./types/types").CjsCodeAndDescription[];
|
|
65
|
+
vehicleCode: import("./types/types").CjsCodeAndDescription[];
|
|
81
66
|
verdict: PleaStatus[];
|
|
82
|
-
yesNo:
|
|
83
|
-
cjsCode: string;
|
|
84
|
-
description: string;
|
|
85
|
-
}[];
|
|
67
|
+
yesNo: import("./types/types").CjsCodeAndDescription[];
|
|
86
68
|
};
|
|
87
69
|
export default _default;
|
package/dist/index.js
CHANGED
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.yesNo = exports.verdict = exports.vehicleCode = exports.typeOfHearing = exports.triggerDefinitions = exports.targetCourtType = exports.summons = exports.resultQualifierCode = exports.resultCode = exports.resultClass = exports.remandStatus = exports.qualifier = exports.pncDisposal = exports.pncCourtMapping = exports.pleaStatus = exports.organisationUnit = exports.offenceInitiation = exports.offenceCode = exports.offenceCategory = exports.number = exports.modeOfTrialReason = exports.gender = exports.forces = exports.excludedTriggerConfig = exports.durationUnit = exports.durationType = exports.defendantPresentAtHearing = exports.crestDisposal = exports.courtType = exports.country = exports.amount = exports.alcoholLevelMethod = exports.actualOffenceDate = void 0;
|
|
6
7
|
const actual_offence_date_json_1 = __importDefault(require("./data/actual-offence-date.json"));
|
|
7
8
|
const alcohol_level_method_json_1 = __importDefault(require("./data/alcohol-level-method.json"));
|
|
8
9
|
const amount_json_1 = __importDefault(require("./data/amount.json"));
|
|
@@ -13,6 +14,7 @@ const defendant_present_at_hearing_json_1 = __importDefault(require("./data/defe
|
|
|
13
14
|
const duration_type_json_1 = __importDefault(require("./data/duration-type.json"));
|
|
14
15
|
const duration_unit_json_1 = __importDefault(require("./data/duration-unit.json"));
|
|
15
16
|
const excluded_trigger_config_json_1 = __importDefault(require("./data/excluded-trigger-config.json"));
|
|
17
|
+
const forces_json_1 = __importDefault(require("./data/forces.json"));
|
|
16
18
|
const gender_json_1 = __importDefault(require("./data/gender.json"));
|
|
17
19
|
const mode_of_trial_reason_json_1 = __importDefault(require("./data/mode-of-trial-reason.json"));
|
|
18
20
|
const number_json_1 = __importDefault(require("./data/number.json"));
|
|
@@ -35,70 +37,71 @@ const type_of_hearing_json_1 = __importDefault(require("./data/type-of-hearing.j
|
|
|
35
37
|
const vehicle_code_json_1 = __importDefault(require("./data/vehicle-code.json"));
|
|
36
38
|
const verdict_json_1 = __importDefault(require("./data/verdict.json"));
|
|
37
39
|
const yes_no_json_1 = __importDefault(require("./data/yes-no.json"));
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
40
|
+
exports.actualOffenceDate = actual_offence_date_json_1.default;
|
|
41
|
+
exports.alcoholLevelMethod = alcohol_level_method_json_1.default;
|
|
42
|
+
exports.amount = amount_json_1.default;
|
|
43
|
+
exports.country = country_json_1.default;
|
|
44
|
+
exports.courtType = court_type_json_1.default;
|
|
45
|
+
exports.crestDisposal = crest_disposal_json_1.default;
|
|
46
|
+
exports.defendantPresentAtHearing = defendant_present_at_hearing_json_1.default;
|
|
47
|
+
exports.durationType = duration_type_json_1.default;
|
|
48
|
+
exports.durationUnit = duration_unit_json_1.default;
|
|
49
|
+
exports.excludedTriggerConfig = excluded_trigger_config_json_1.default;
|
|
50
|
+
exports.forces = forces_json_1.default;
|
|
51
|
+
exports.gender = gender_json_1.default;
|
|
52
|
+
exports.modeOfTrialReason = mode_of_trial_reason_json_1.default;
|
|
53
|
+
exports.number = number_json_1.default;
|
|
54
|
+
exports.offenceCategory = offence_category_json_1.default;
|
|
55
|
+
exports.offenceCode = offence_code_json_1.default;
|
|
56
|
+
exports.offenceInitiation = offence_initiation_json_1.default;
|
|
57
|
+
exports.organisationUnit = organisation_unit_json_1.default;
|
|
58
|
+
exports.pleaStatus = plea_status_json_1.default;
|
|
59
|
+
exports.pncCourtMapping = pnc_court_mapping_json_1.default;
|
|
60
|
+
exports.pncDisposal = pnc_disposal_json_1.default;
|
|
61
|
+
exports.qualifier = qualifier_json_1.default;
|
|
62
|
+
exports.remandStatus = remand_status_json_1.default;
|
|
63
|
+
exports.resultClass = result_class_json_1.default;
|
|
64
|
+
exports.resultCode = result_code_json_1.default;
|
|
65
|
+
exports.resultQualifierCode = result_qualifier_code_json_1.default;
|
|
66
|
+
exports.summons = summons_json_1.default;
|
|
67
|
+
exports.targetCourtType = target_court_type_json_1.default;
|
|
68
|
+
exports.triggerDefinitions = trigger_definitions_json_1.default;
|
|
69
|
+
exports.typeOfHearing = type_of_hearing_json_1.default;
|
|
70
|
+
exports.vehicleCode = vehicle_code_json_1.default;
|
|
71
|
+
exports.verdict = verdict_json_1.default;
|
|
72
|
+
exports.yesNo = yes_no_json_1.default;
|
|
70
73
|
exports.default = {
|
|
71
|
-
actualOffenceDate,
|
|
72
|
-
alcoholLevelMethod,
|
|
73
|
-
amount,
|
|
74
|
-
country,
|
|
75
|
-
courtType,
|
|
76
|
-
crestDisposal,
|
|
77
|
-
defendantPresentAtHearing,
|
|
78
|
-
durationType,
|
|
79
|
-
durationUnit,
|
|
80
|
-
excludedTriggerConfig,
|
|
81
|
-
gender,
|
|
82
|
-
modeOfTrialReason,
|
|
83
|
-
number,
|
|
84
|
-
offenceCategory,
|
|
85
|
-
offenceCode,
|
|
86
|
-
offenceInitiation,
|
|
87
|
-
organisationUnit,
|
|
88
|
-
pleaStatus,
|
|
89
|
-
pncCourtMapping,
|
|
90
|
-
pncDisposal,
|
|
91
|
-
qualifier,
|
|
92
|
-
remandStatus,
|
|
93
|
-
resultClass,
|
|
94
|
-
resultCode,
|
|
95
|
-
resultQualifierCode,
|
|
96
|
-
summons,
|
|
97
|
-
targetCourtType,
|
|
98
|
-
triggerDefinitions,
|
|
99
|
-
typeOfHearing,
|
|
100
|
-
vehicleCode,
|
|
101
|
-
verdict,
|
|
102
|
-
yesNo
|
|
74
|
+
actualOffenceDate: exports.actualOffenceDate,
|
|
75
|
+
alcoholLevelMethod: exports.alcoholLevelMethod,
|
|
76
|
+
amount: exports.amount,
|
|
77
|
+
country: exports.country,
|
|
78
|
+
courtType: exports.courtType,
|
|
79
|
+
crestDisposal: exports.crestDisposal,
|
|
80
|
+
defendantPresentAtHearing: exports.defendantPresentAtHearing,
|
|
81
|
+
durationType: exports.durationType,
|
|
82
|
+
durationUnit: exports.durationUnit,
|
|
83
|
+
excludedTriggerConfig: exports.excludedTriggerConfig,
|
|
84
|
+
gender: exports.gender,
|
|
85
|
+
modeOfTrialReason: exports.modeOfTrialReason,
|
|
86
|
+
number: exports.number,
|
|
87
|
+
offenceCategory: exports.offenceCategory,
|
|
88
|
+
offenceCode: exports.offenceCode,
|
|
89
|
+
offenceInitiation: exports.offenceInitiation,
|
|
90
|
+
organisationUnit: exports.organisationUnit,
|
|
91
|
+
pleaStatus: exports.pleaStatus,
|
|
92
|
+
pncCourtMapping: exports.pncCourtMapping,
|
|
93
|
+
pncDisposal: exports.pncDisposal,
|
|
94
|
+
qualifier: exports.qualifier,
|
|
95
|
+
remandStatus: exports.remandStatus,
|
|
96
|
+
resultClass: exports.resultClass,
|
|
97
|
+
resultCode: exports.resultCode,
|
|
98
|
+
resultQualifierCode: exports.resultQualifierCode,
|
|
99
|
+
summons: exports.summons,
|
|
100
|
+
targetCourtType: exports.targetCourtType,
|
|
101
|
+
triggerDefinitions: exports.triggerDefinitions,
|
|
102
|
+
typeOfHearing: exports.typeOfHearing,
|
|
103
|
+
vehicleCode: exports.vehicleCode,
|
|
104
|
+
verdict: exports.verdict,
|
|
105
|
+
yesNo: exports.yesNo
|
|
103
106
|
};
|
|
104
107
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"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"}
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import type TriggerCode from "./TriggerCode";
|
|
2
|
-
|
|
2
|
+
export type { default as TriggerCode } from "./TriggerCode";
|
|
3
|
+
export declare type CjsCodeAndDescription = {
|
|
3
4
|
cjsCode: string;
|
|
4
5
|
description: string;
|
|
5
6
|
};
|
|
6
|
-
declare type ActualOffenceDate = CjsCodeAndDescription;
|
|
7
|
-
declare type Amount = CjsCodeAndDescription;
|
|
8
|
-
declare type AlcoholLevelMethod = {
|
|
7
|
+
export declare type ActualOffenceDate = CjsCodeAndDescription;
|
|
8
|
+
export declare type Amount = CjsCodeAndDescription;
|
|
9
|
+
export declare type AlcoholLevelMethod = {
|
|
9
10
|
cjsCode: string;
|
|
10
11
|
description: string;
|
|
11
12
|
spiCode: string;
|
|
12
13
|
};
|
|
13
|
-
declare type Country = CjsCodeAndDescription;
|
|
14
|
-
declare type CourtType = CjsCodeAndDescription;
|
|
15
|
-
declare type CrestDisposal = {
|
|
14
|
+
export declare type Country = CjsCodeAndDescription;
|
|
15
|
+
export declare type CourtType = CjsCodeAndDescription;
|
|
16
|
+
export declare type CrestDisposal = {
|
|
16
17
|
amountInResult: string;
|
|
17
18
|
amountInResultType: string;
|
|
18
19
|
dateInResult: string;
|
|
@@ -34,24 +35,24 @@ declare type CrestDisposal = {
|
|
|
34
35
|
template: string;
|
|
35
36
|
timeInResult: string;
|
|
36
37
|
};
|
|
37
|
-
declare type DefendantPresentAtHearing = CjsCodeAndDescription;
|
|
38
|
-
declare type DurationType = CjsCodeAndDescription;
|
|
39
|
-
declare type DurationUnit = {
|
|
38
|
+
export declare type DefendantPresentAtHearing = CjsCodeAndDescription;
|
|
39
|
+
export declare type DurationType = CjsCodeAndDescription;
|
|
40
|
+
export declare type DurationUnit = {
|
|
40
41
|
cjsCode: string;
|
|
41
42
|
description: string;
|
|
42
43
|
pncCode: string;
|
|
43
44
|
spiCode: string;
|
|
44
45
|
xhibitCode: string;
|
|
45
46
|
};
|
|
46
|
-
declare type Gender = DurationUnit;
|
|
47
|
-
declare type ModeOfTrialReason = {
|
|
47
|
+
export declare type Gender = DurationUnit;
|
|
48
|
+
export declare type ModeOfTrialReason = {
|
|
48
49
|
cjsCode: string;
|
|
49
50
|
description: string;
|
|
50
51
|
spiCode: string;
|
|
51
52
|
};
|
|
52
|
-
declare type Number = CjsCodeAndDescription;
|
|
53
|
-
declare type OffenceCategory = CjsCodeAndDescription;
|
|
54
|
-
declare type OffenceCode = {
|
|
53
|
+
export declare type Number = CjsCodeAndDescription;
|
|
54
|
+
export declare type OffenceCategory = CjsCodeAndDescription;
|
|
55
|
+
export declare type OffenceCode = {
|
|
55
56
|
cjsCode: string;
|
|
56
57
|
description: string;
|
|
57
58
|
homeOfficeClassification: string;
|
|
@@ -61,8 +62,8 @@ declare type OffenceCode = {
|
|
|
61
62
|
recordableOnPnc?: boolean;
|
|
62
63
|
resultHalfLifeHours?: string | null;
|
|
63
64
|
};
|
|
64
|
-
declare type OffenceInitiation = CjsCodeAndDescription;
|
|
65
|
-
declare type OrganisationUnit = {
|
|
65
|
+
export declare type OffenceInitiation = CjsCodeAndDescription;
|
|
66
|
+
export declare type OrganisationUnit = {
|
|
66
67
|
bottomLevelCode: string;
|
|
67
68
|
bottomLevelName: string;
|
|
68
69
|
secondLevelCode: string;
|
|
@@ -73,27 +74,27 @@ declare type OrganisationUnit = {
|
|
|
73
74
|
topLevelCode: string;
|
|
74
75
|
topLevelName: string;
|
|
75
76
|
};
|
|
76
|
-
declare type PleaStatus = {
|
|
77
|
+
export declare type PleaStatus = {
|
|
77
78
|
cjsCode: string;
|
|
78
79
|
description: string;
|
|
79
80
|
pncCode: string;
|
|
80
81
|
spiCode: string;
|
|
81
82
|
};
|
|
82
|
-
declare type PncCourtMapping = {
|
|
83
|
+
export declare type PncCourtMapping = {
|
|
83
84
|
cjsCode: string;
|
|
84
85
|
description: string;
|
|
85
86
|
pncCode: string;
|
|
86
87
|
};
|
|
87
|
-
declare type PncDisposal = {
|
|
88
|
+
export declare type PncDisposal = {
|
|
88
89
|
cjsCode: string;
|
|
89
90
|
description: string;
|
|
90
91
|
pncAdjudication: string;
|
|
91
92
|
pncNonAdjudication: string;
|
|
92
93
|
};
|
|
93
|
-
declare type Qualifier = CjsCodeAndDescription;
|
|
94
|
-
declare type RemandStatus = PleaStatus;
|
|
95
|
-
declare type ResultClass = CjsCodeAndDescription;
|
|
96
|
-
declare type ResultCode = {
|
|
94
|
+
export declare type Qualifier = CjsCodeAndDescription;
|
|
95
|
+
export declare type RemandStatus = PleaStatus;
|
|
96
|
+
export declare type ResultClass = CjsCodeAndDescription;
|
|
97
|
+
export declare type ResultCode = {
|
|
97
98
|
cjsCode: string;
|
|
98
99
|
description: string;
|
|
99
100
|
recordableOnPnc?: string;
|
|
@@ -101,18 +102,21 @@ declare type ResultCode = {
|
|
|
101
102
|
resultHalfLifeHours: string;
|
|
102
103
|
type: string;
|
|
103
104
|
};
|
|
104
|
-
declare type ResultQualifierCode = CjsCodeAndDescription;
|
|
105
|
-
declare type Summons = CjsCodeAndDescription;
|
|
106
|
-
declare type TargetCourtType = CjsCodeAndDescription;
|
|
107
|
-
declare type TypeOfHearing = CjsCodeAndDescription;
|
|
108
|
-
declare type VehicleCode = CjsCodeAndDescription;
|
|
109
|
-
declare type Verdict = PleaStatus;
|
|
110
|
-
declare type YesNo = CjsCodeAndDescription;
|
|
111
|
-
declare type TriggerDefinition = {
|
|
105
|
+
export declare type ResultQualifierCode = CjsCodeAndDescription;
|
|
106
|
+
export declare type Summons = CjsCodeAndDescription;
|
|
107
|
+
export declare type TargetCourtType = CjsCodeAndDescription;
|
|
108
|
+
export declare type TypeOfHearing = CjsCodeAndDescription;
|
|
109
|
+
export declare type VehicleCode = CjsCodeAndDescription;
|
|
110
|
+
export declare type Verdict = PleaStatus;
|
|
111
|
+
export declare type YesNo = CjsCodeAndDescription;
|
|
112
|
+
export declare type TriggerDefinition = {
|
|
112
113
|
code: TriggerCode;
|
|
113
114
|
description: string;
|
|
114
115
|
};
|
|
115
|
-
declare type ExcludedTriggerConfig = {
|
|
116
|
+
export declare type ExcludedTriggerConfig = {
|
|
116
117
|
[key: string]: TriggerCode[];
|
|
117
118
|
};
|
|
118
|
-
export
|
|
119
|
+
export declare type Force = {
|
|
120
|
+
code: string;
|
|
121
|
+
name: string;
|
|
122
|
+
};
|
package/index.ts
CHANGED
|
@@ -8,6 +8,7 @@ import defendantPresentAtHearingData from "./data/defendant-present-at-hearing.j
|
|
|
8
8
|
import durationTypeData from "./data/duration-type.json"
|
|
9
9
|
import durationUnitData from "./data/duration-unit.json"
|
|
10
10
|
import excudedTriggerConfigData from "./data/excluded-trigger-config.json"
|
|
11
|
+
import forcesData from "./data/forces.json"
|
|
11
12
|
import genderData from "./data/gender.json"
|
|
12
13
|
import modeOfTrialReasonData from "./data/mode-of-trial-reason.json"
|
|
13
14
|
import numberData from "./data/number.json"
|
|
@@ -41,6 +42,7 @@ import {
|
|
|
41
42
|
DurationType,
|
|
42
43
|
DurationUnit,
|
|
43
44
|
ExcludedTriggerConfig,
|
|
45
|
+
Force,
|
|
44
46
|
Gender,
|
|
45
47
|
ModeOfTrialReason,
|
|
46
48
|
Number,
|
|
@@ -65,38 +67,39 @@ import {
|
|
|
65
67
|
YesNo
|
|
66
68
|
} from "./types/types"
|
|
67
69
|
|
|
68
|
-
const actualOffenceDate: ActualOffenceDate[] = actualOffenceDateData
|
|
69
|
-
const alcoholLevelMethod: AlcoholLevelMethod[] = alcoholLevelMethodData
|
|
70
|
-
const amount: Amount[] = amountData
|
|
71
|
-
const country: Country[] = countryData
|
|
72
|
-
const courtType: CourtType[] = courtTypeData
|
|
73
|
-
const crestDisposal: CrestDisposal[] = crestDisposalData
|
|
74
|
-
const defendantPresentAtHearing: DefendantPresentAtHearing[] = defendantPresentAtHearingData
|
|
75
|
-
const durationType: DurationType[] = durationTypeData
|
|
76
|
-
const durationUnit: DurationUnit[] = durationUnitData
|
|
77
|
-
const excludedTriggerConfig = excudedTriggerConfigData as ExcludedTriggerConfig
|
|
78
|
-
const
|
|
79
|
-
const
|
|
80
|
-
const
|
|
81
|
-
const
|
|
82
|
-
const
|
|
83
|
-
const
|
|
84
|
-
const
|
|
85
|
-
const
|
|
86
|
-
const
|
|
87
|
-
const
|
|
88
|
-
const
|
|
89
|
-
const
|
|
90
|
-
const
|
|
91
|
-
const
|
|
92
|
-
const
|
|
93
|
-
const
|
|
94
|
-
const
|
|
95
|
-
const
|
|
96
|
-
const
|
|
97
|
-
const
|
|
98
|
-
const
|
|
99
|
-
const
|
|
70
|
+
export const actualOffenceDate: ActualOffenceDate[] = actualOffenceDateData
|
|
71
|
+
export const alcoholLevelMethod: AlcoholLevelMethod[] = alcoholLevelMethodData
|
|
72
|
+
export const amount: Amount[] = amountData
|
|
73
|
+
export const country: Country[] = countryData
|
|
74
|
+
export const courtType: CourtType[] = courtTypeData
|
|
75
|
+
export const crestDisposal: CrestDisposal[] = crestDisposalData
|
|
76
|
+
export const defendantPresentAtHearing: DefendantPresentAtHearing[] = defendantPresentAtHearingData
|
|
77
|
+
export const durationType: DurationType[] = durationTypeData
|
|
78
|
+
export const durationUnit: DurationUnit[] = durationUnitData
|
|
79
|
+
export const excludedTriggerConfig = excudedTriggerConfigData as ExcludedTriggerConfig
|
|
80
|
+
export const forces = forcesData as Force[]
|
|
81
|
+
export const gender: Gender[] = genderData
|
|
82
|
+
export const modeOfTrialReason: ModeOfTrialReason[] = modeOfTrialReasonData
|
|
83
|
+
export const number: Number[] = numberData
|
|
84
|
+
export const offenceCategory: OffenceCategory[] = offenceCategoryData
|
|
85
|
+
export const offenceCode: OffenceCode[] = offenceCodeData
|
|
86
|
+
export const offenceInitiation: OffenceInitiation[] = offenceInitiationData
|
|
87
|
+
export const organisationUnit: OrganisationUnit[] = organisationUnitData
|
|
88
|
+
export const pleaStatus: PleaStatus[] = pleaStatusData
|
|
89
|
+
export const pncCourtMapping: PncCourtMapping[] = pncCourtMappingData
|
|
90
|
+
export const pncDisposal: PncDisposal[] = pncDisposalData
|
|
91
|
+
export const qualifier: Qualifier[] = qualifierData
|
|
92
|
+
export const remandStatus: RemandStatus[] = remandStatusData
|
|
93
|
+
export const resultClass: ResultClass[] = resultClassData
|
|
94
|
+
export const resultCode: ResultCode[] = resultCodeData
|
|
95
|
+
export const resultQualifierCode: ResultQualifierCode[] = resultQualifierCodeData
|
|
96
|
+
export const summons: Summons[] = summonsData
|
|
97
|
+
export const targetCourtType: TargetCourtType[] = targetCourtTypeData
|
|
98
|
+
export const triggerDefinitions = triggerDefinitionData as TriggerDefinition[]
|
|
99
|
+
export const typeOfHearing: TypeOfHearing[] = typeOfHearingData
|
|
100
|
+
export const vehicleCode: VehicleCode[] = vehicleCodeData
|
|
101
|
+
export const verdict: Verdict[] = verdictData
|
|
102
|
+
export const yesNo: YesNo[] = yesNoData
|
|
100
103
|
|
|
101
104
|
export default {
|
|
102
105
|
actualOffenceDate,
|
package/package.json
CHANGED
package/types/types.ts
CHANGED
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import type TriggerCode from "./TriggerCode"
|
|
2
2
|
|
|
3
|
-
type
|
|
3
|
+
export type { default as TriggerCode } from "./TriggerCode"
|
|
4
|
+
|
|
5
|
+
export type CjsCodeAndDescription = {
|
|
4
6
|
cjsCode: string
|
|
5
7
|
description: string
|
|
6
8
|
}
|
|
7
9
|
|
|
8
|
-
type ActualOffenceDate = CjsCodeAndDescription
|
|
9
|
-
type Amount = CjsCodeAndDescription
|
|
10
|
+
export type ActualOffenceDate = CjsCodeAndDescription
|
|
11
|
+
export type Amount = CjsCodeAndDescription
|
|
10
12
|
|
|
11
|
-
type AlcoholLevelMethod = {
|
|
13
|
+
export type AlcoholLevelMethod = {
|
|
12
14
|
cjsCode: string
|
|
13
15
|
description: string
|
|
14
16
|
spiCode: string
|
|
15
17
|
}
|
|
16
18
|
|
|
17
|
-
type Country = CjsCodeAndDescription
|
|
18
|
-
type CourtType = CjsCodeAndDescription
|
|
19
|
+
export type Country = CjsCodeAndDescription
|
|
20
|
+
export type CourtType = CjsCodeAndDescription
|
|
19
21
|
|
|
20
|
-
type CrestDisposal = {
|
|
22
|
+
export type CrestDisposal = {
|
|
21
23
|
amountInResult: string
|
|
22
24
|
amountInResultType: string
|
|
23
25
|
dateInResult: string
|
|
@@ -40,10 +42,10 @@ type CrestDisposal = {
|
|
|
40
42
|
timeInResult: string
|
|
41
43
|
}
|
|
42
44
|
|
|
43
|
-
type DefendantPresentAtHearing = CjsCodeAndDescription
|
|
44
|
-
type DurationType = CjsCodeAndDescription
|
|
45
|
+
export type DefendantPresentAtHearing = CjsCodeAndDescription
|
|
46
|
+
export type DurationType = CjsCodeAndDescription
|
|
45
47
|
|
|
46
|
-
type DurationUnit = {
|
|
48
|
+
export type DurationUnit = {
|
|
47
49
|
cjsCode: string
|
|
48
50
|
description: string
|
|
49
51
|
pncCode: string
|
|
@@ -51,18 +53,18 @@ type DurationUnit = {
|
|
|
51
53
|
xhibitCode: string
|
|
52
54
|
}
|
|
53
55
|
|
|
54
|
-
type Gender = DurationUnit
|
|
56
|
+
export type Gender = DurationUnit
|
|
55
57
|
|
|
56
|
-
type ModeOfTrialReason = {
|
|
58
|
+
export type ModeOfTrialReason = {
|
|
57
59
|
cjsCode: string
|
|
58
60
|
description: string
|
|
59
61
|
spiCode: string
|
|
60
62
|
}
|
|
61
63
|
|
|
62
|
-
type Number = CjsCodeAndDescription
|
|
63
|
-
type OffenceCategory = CjsCodeAndDescription
|
|
64
|
+
export type Number = CjsCodeAndDescription
|
|
65
|
+
export type OffenceCategory = CjsCodeAndDescription
|
|
64
66
|
|
|
65
|
-
type OffenceCode = {
|
|
67
|
+
export type OffenceCode = {
|
|
66
68
|
cjsCode: string
|
|
67
69
|
description: string
|
|
68
70
|
homeOfficeClassification: string
|
|
@@ -73,9 +75,9 @@ type OffenceCode = {
|
|
|
73
75
|
resultHalfLifeHours?: string | null
|
|
74
76
|
}
|
|
75
77
|
|
|
76
|
-
type OffenceInitiation = CjsCodeAndDescription
|
|
78
|
+
export type OffenceInitiation = CjsCodeAndDescription
|
|
77
79
|
|
|
78
|
-
type OrganisationUnit = {
|
|
80
|
+
export type OrganisationUnit = {
|
|
79
81
|
bottomLevelCode: string
|
|
80
82
|
bottomLevelName: string
|
|
81
83
|
secondLevelCode: string
|
|
@@ -87,31 +89,31 @@ type OrganisationUnit = {
|
|
|
87
89
|
topLevelName: string
|
|
88
90
|
}
|
|
89
91
|
|
|
90
|
-
type PleaStatus = {
|
|
92
|
+
export type PleaStatus = {
|
|
91
93
|
cjsCode: string
|
|
92
94
|
description: string
|
|
93
95
|
pncCode: string
|
|
94
96
|
spiCode: string
|
|
95
97
|
}
|
|
96
98
|
|
|
97
|
-
type PncCourtMapping = {
|
|
99
|
+
export type PncCourtMapping = {
|
|
98
100
|
cjsCode: string
|
|
99
101
|
description: string
|
|
100
102
|
pncCode: string
|
|
101
103
|
}
|
|
102
104
|
|
|
103
|
-
type PncDisposal = {
|
|
105
|
+
export type PncDisposal = {
|
|
104
106
|
cjsCode: string
|
|
105
107
|
description: string
|
|
106
108
|
pncAdjudication: string
|
|
107
109
|
pncNonAdjudication: string
|
|
108
110
|
}
|
|
109
111
|
|
|
110
|
-
type Qualifier = CjsCodeAndDescription
|
|
111
|
-
type RemandStatus = PleaStatus
|
|
112
|
-
type ResultClass = CjsCodeAndDescription
|
|
112
|
+
export type Qualifier = CjsCodeAndDescription
|
|
113
|
+
export type RemandStatus = PleaStatus
|
|
114
|
+
export type ResultClass = CjsCodeAndDescription
|
|
113
115
|
|
|
114
|
-
type ResultCode = {
|
|
116
|
+
export type ResultCode = {
|
|
115
117
|
cjsCode: string
|
|
116
118
|
description: string
|
|
117
119
|
recordableOnPnc?: string
|
|
@@ -120,55 +122,24 @@ type ResultCode = {
|
|
|
120
122
|
type: string
|
|
121
123
|
}
|
|
122
124
|
|
|
123
|
-
type ResultQualifierCode = CjsCodeAndDescription
|
|
124
|
-
type Summons = CjsCodeAndDescription
|
|
125
|
-
type TargetCourtType = CjsCodeAndDescription
|
|
126
|
-
type TypeOfHearing = CjsCodeAndDescription
|
|
127
|
-
type VehicleCode = CjsCodeAndDescription
|
|
128
|
-
type Verdict = PleaStatus
|
|
129
|
-
type YesNo = CjsCodeAndDescription
|
|
125
|
+
export type ResultQualifierCode = CjsCodeAndDescription
|
|
126
|
+
export type Summons = CjsCodeAndDescription
|
|
127
|
+
export type TargetCourtType = CjsCodeAndDescription
|
|
128
|
+
export type TypeOfHearing = CjsCodeAndDescription
|
|
129
|
+
export type VehicleCode = CjsCodeAndDescription
|
|
130
|
+
export type Verdict = PleaStatus
|
|
131
|
+
export type YesNo = CjsCodeAndDescription
|
|
130
132
|
|
|
131
|
-
type TriggerDefinition = {
|
|
133
|
+
export type TriggerDefinition = {
|
|
132
134
|
code: TriggerCode
|
|
133
135
|
description: string
|
|
134
136
|
}
|
|
135
137
|
|
|
136
|
-
type ExcludedTriggerConfig = {
|
|
138
|
+
export type ExcludedTriggerConfig = {
|
|
137
139
|
[key: string]: TriggerCode[]
|
|
138
140
|
}
|
|
139
141
|
|
|
140
|
-
export {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
Amount,
|
|
144
|
-
Country,
|
|
145
|
-
CourtType,
|
|
146
|
-
CrestDisposal,
|
|
147
|
-
DefendantPresentAtHearing,
|
|
148
|
-
DurationType,
|
|
149
|
-
DurationUnit,
|
|
150
|
-
ExcludedTriggerConfig,
|
|
151
|
-
Gender,
|
|
152
|
-
ModeOfTrialReason,
|
|
153
|
-
Number,
|
|
154
|
-
OffenceCategory,
|
|
155
|
-
OffenceCode,
|
|
156
|
-
OffenceInitiation,
|
|
157
|
-
OrganisationUnit,
|
|
158
|
-
PleaStatus,
|
|
159
|
-
PncCourtMapping,
|
|
160
|
-
PncDisposal,
|
|
161
|
-
Qualifier,
|
|
162
|
-
RemandStatus,
|
|
163
|
-
ResultClass,
|
|
164
|
-
ResultCode,
|
|
165
|
-
ResultQualifierCode,
|
|
166
|
-
Summons,
|
|
167
|
-
TargetCourtType,
|
|
168
|
-
TriggerCode,
|
|
169
|
-
TriggerDefinition,
|
|
170
|
-
TypeOfHearing,
|
|
171
|
-
VehicleCode,
|
|
172
|
-
Verdict,
|
|
173
|
-
YesNo
|
|
142
|
+
export type Force = {
|
|
143
|
+
code: string
|
|
144
|
+
name: string
|
|
174
145
|
}
|