@moj-bichard7-developers/bichard7-next-data 2.0.0 → 2.0.3
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/crest-disposal.json +1379 -713
- package/data/excluded-trigger-config.json +588 -0
- package/data/offence-code.json +239 -142
- package/data/result-code.json +638 -1
- package/data/test.triggers.properties +574 -0
- package/data/trigger-definitions.json +138 -0
- package/data/triggers.properties +594 -0
- package/dist/data/crest-disposal.json +1378 -712
- package/dist/data/excluded-trigger-config.json +588 -0
- package/dist/data/offence-code.json +238 -141
- package/dist/data/result-code.json +637 -0
- package/dist/data/trigger-definitions.json +138 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/types/TriggerCode.d.ts +37 -0
- package/dist/types/TriggerCode.js +41 -0
- package/dist/types/TriggerCode.js.map +1 -0
- package/dist/types/types.d.ts +12 -4
- package/index.ts +38 -31
- package/package.json +1 -6
- package/types/TriggerCode.ts +38 -0
- package/types/types.ts +17 -3
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"code": "TRPR0001",
|
|
4
|
+
"description": "Driver Disqualification - Update DD screen."
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"code": "TRPR0002",
|
|
8
|
+
"description": "Warrant issued - Update Wanted/Missing"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"code": "TRPR0003",
|
|
12
|
+
"description": "Order Issues - Update Wanted/Missing, check and amend Disposal"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"code": "TRPR0004",
|
|
16
|
+
"description": "Convicted of Sexual Offence or Sexual Order made - Update Markers and Register(s) as appropriate"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"code": "TRPR0005",
|
|
20
|
+
"description": "Defendant remanded in custody - update custody history"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"code": "TRPR0006",
|
|
24
|
+
"description": "Defendant imprisoned - update custody history"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"code": "TRPR0007",
|
|
28
|
+
"description": "Defendant dead - update death marker"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"code": "TRPR0008",
|
|
32
|
+
"description": "Defendant has breached bail - Update breach of bail marker"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"code": "TRPR0010",
|
|
36
|
+
"description": "Bail conditions imposed/varied/cancelled - update remand screen"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"code": "TRPR0012",
|
|
40
|
+
"description": "Warrant not executed/Withdrawn - update Wanted/Missing screen"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"code": "TRPR0014",
|
|
44
|
+
"description": "Too many offences - manual update"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"code": "TRPR0015",
|
|
48
|
+
"description": "Personal details changed"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"code": "TRPR0016",
|
|
52
|
+
"description": "Forfeiture order made - update records as appropriate"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"code": "TRPR0017",
|
|
56
|
+
"description": "Adjourned Sine Die - update case details"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"code": "TRPR0018",
|
|
60
|
+
"description": "Update offence date(s) on PNC"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"code": "TRPR0019",
|
|
64
|
+
"description": "Remanded in custody with bail direction"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"code": "TRPR0020",
|
|
68
|
+
"description": "Update original case with conviction and sentence details"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"code": "TRPR0021",
|
|
72
|
+
"description": "Disqualification or Revocation Order made (not motoring)"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"code": "TRPR0022",
|
|
76
|
+
"description": "Extradition ordered or Proceedings pending"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"code": "TRPR0023",
|
|
80
|
+
"description": "Domestic Violence Case"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"code": "TRPR0024",
|
|
84
|
+
"description": "Vulnerable or Intimidated victim/witness"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"code": "TRPR0025",
|
|
88
|
+
"description": "Original case has been re-opened/stat dec made - check new sentence details"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"code": "TRPR0026",
|
|
92
|
+
"description": "Driving disqualification suspended"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"code": "TRPR0027",
|
|
96
|
+
"description": "Out of Area case"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"code": "TRPR0028",
|
|
100
|
+
"description": "Trigger only case reallocated from another force"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"code": "TRPR0029",
|
|
104
|
+
"description": "Civil proceedings granted or Order made - update records as appropriate"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"code": "TRPR0030",
|
|
108
|
+
"description": "Pre-charge bail application"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"code": "TRPS0002",
|
|
112
|
+
"description": "Confirm address on PNC"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"code": "TRPS0003",
|
|
116
|
+
"description": "Disposal text was truncated - revise on PNC if wanted"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"code": "TRPS0004",
|
|
120
|
+
"description": "Split Adjournment - manual split required"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"code": "TRPS0008",
|
|
124
|
+
"description": "Enter details of curfew order"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"code": "TRPS0010",
|
|
128
|
+
"description": "Offence added to the PNC - Update MO Screen/Offence Location/Update 3042"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"code": "TRPS0011",
|
|
132
|
+
"description": "Offence added at court - add to PNC"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"code": "TRPS0013",
|
|
136
|
+
"description": "Offences taken into consideration - add to offence"
|
|
137
|
+
}
|
|
138
|
+
]
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AlcoholLevelMethod, CrestDisposal, DurationUnit, ModeOfTrialReason, OffenceCode, OrganisationUnit, PleaStatus, PncCourtMapping, PncDisposal, ResultCode } from "./types/types";
|
|
1
|
+
import { AlcoholLevelMethod, CrestDisposal, DurationUnit, ExcludedTriggerConfig, ModeOfTrialReason, OffenceCode, OrganisationUnit, PleaStatus, PncCourtMapping, PncDisposal, ResultCode, TriggerDefinition } from "./types/types";
|
|
2
2
|
declare const _default: {
|
|
3
3
|
actualOffenceDate: {
|
|
4
4
|
cjsCode: string;
|
|
@@ -27,6 +27,7 @@ declare const _default: {
|
|
|
27
27
|
description: string;
|
|
28
28
|
}[];
|
|
29
29
|
durationUnit: DurationUnit[];
|
|
30
|
+
excludedTriggerConfig: ExcludedTriggerConfig;
|
|
30
31
|
gender: DurationUnit[];
|
|
31
32
|
modeOfTrialReason: ModeOfTrialReason[];
|
|
32
33
|
number: {
|
|
@@ -68,6 +69,7 @@ declare const _default: {
|
|
|
68
69
|
cjsCode: string;
|
|
69
70
|
description: string;
|
|
70
71
|
}[];
|
|
72
|
+
triggerDefinitions: TriggerDefinition[];
|
|
71
73
|
typeOfHearing: {
|
|
72
74
|
cjsCode: string;
|
|
73
75
|
description: string;
|
package/dist/index.js
CHANGED
|
@@ -12,6 +12,7 @@ const crest_disposal_json_1 = __importDefault(require("./data/crest-disposal.jso
|
|
|
12
12
|
const defendant_present_at_hearing_json_1 = __importDefault(require("./data/defendant-present-at-hearing.json"));
|
|
13
13
|
const duration_type_json_1 = __importDefault(require("./data/duration-type.json"));
|
|
14
14
|
const duration_unit_json_1 = __importDefault(require("./data/duration-unit.json"));
|
|
15
|
+
const excluded_trigger_config_json_1 = __importDefault(require("./data/excluded-trigger-config.json"));
|
|
15
16
|
const gender_json_1 = __importDefault(require("./data/gender.json"));
|
|
16
17
|
const mode_of_trial_reason_json_1 = __importDefault(require("./data/mode-of-trial-reason.json"));
|
|
17
18
|
const number_json_1 = __importDefault(require("./data/number.json"));
|
|
@@ -29,6 +30,7 @@ const result_code_json_1 = __importDefault(require("./data/result-code.json"));
|
|
|
29
30
|
const result_qualifier_code_json_1 = __importDefault(require("./data/result-qualifier-code.json"));
|
|
30
31
|
const summons_json_1 = __importDefault(require("./data/summons.json"));
|
|
31
32
|
const target_court_type_json_1 = __importDefault(require("./data/target-court-type.json"));
|
|
33
|
+
const trigger_definitions_json_1 = __importDefault(require("./data/trigger-definitions.json"));
|
|
32
34
|
const type_of_hearing_json_1 = __importDefault(require("./data/type-of-hearing.json"));
|
|
33
35
|
const vehicle_code_json_1 = __importDefault(require("./data/vehicle-code.json"));
|
|
34
36
|
const verdict_json_1 = __importDefault(require("./data/verdict.json"));
|
|
@@ -42,6 +44,7 @@ const crestDisposal = crest_disposal_json_1.default;
|
|
|
42
44
|
const defendantPresentAtHearing = defendant_present_at_hearing_json_1.default;
|
|
43
45
|
const durationType = duration_type_json_1.default;
|
|
44
46
|
const durationUnit = duration_unit_json_1.default;
|
|
47
|
+
const excludedTriggerConfig = excluded_trigger_config_json_1.default;
|
|
45
48
|
const gender = gender_json_1.default;
|
|
46
49
|
const modeOfTrialReason = mode_of_trial_reason_json_1.default;
|
|
47
50
|
const number = number_json_1.default;
|
|
@@ -59,6 +62,7 @@ const resultCode = result_code_json_1.default;
|
|
|
59
62
|
const resultQualifierCode = result_qualifier_code_json_1.default;
|
|
60
63
|
const summons = summons_json_1.default;
|
|
61
64
|
const targetCourtType = target_court_type_json_1.default;
|
|
65
|
+
const triggerDefinitions = trigger_definitions_json_1.default;
|
|
62
66
|
const typeOfHearing = type_of_hearing_json_1.default;
|
|
63
67
|
const vehicleCode = vehicle_code_json_1.default;
|
|
64
68
|
const verdict = verdict_json_1.default;
|
|
@@ -73,6 +77,7 @@ exports.default = {
|
|
|
73
77
|
defendantPresentAtHearing,
|
|
74
78
|
durationType,
|
|
75
79
|
durationUnit,
|
|
80
|
+
excludedTriggerConfig,
|
|
76
81
|
gender,
|
|
77
82
|
modeOfTrialReason,
|
|
78
83
|
number,
|
|
@@ -90,6 +95,7 @@ exports.default = {
|
|
|
90
95
|
resultQualifierCode,
|
|
91
96
|
summons,
|
|
92
97
|
targetCourtType,
|
|
98
|
+
triggerDefinitions,
|
|
93
99
|
typeOfHearing,
|
|
94
100
|
vehicleCode,
|
|
95
101
|
verdict,
|
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":";;;;;AAAA,+FAAmE;AACnE,iGAAqE;AACrE,qEAA2C;AAC3C,uEAA6C;AAC7C,6EAAkD;AAClD,qFAA0D;AAC1D,iHAAoF;AACpF,mFAAwD;AACxD,mFAAwD;AACxD,uGAA0E;AAC1E,qEAA2C;AAC3C,iGAAoE;AACpE,qEAA2C;AAC3C,yFAA8D;AAC9D,iFAAsD;AACtD,6FAAkE;AAClE,2FAAgE;AAChE,+EAAoD;AACpD,2FAA+D;AAC/D,iFAAsD;AACtD,2EAAiD;AACjD,mFAAwD;AACxD,iFAAsD;AACtD,+EAAoD;AACpD,mGAAuE;AACvE,uEAA6C;AAC7C,2FAA+D;AAC/D,+FAAmE;AACnE,uFAA2D;AAC3D,iFAAsD;AACtD,uEAA6C;AAC7C,qEAA0C;AAoC1C,MAAM,iBAAiB,GAAwB,kCAAqB,CAAA;AACpE,MAAM,kBAAkB,GAAyB,mCAAsB,CAAA;AACvE,MAAM,MAAM,GAAa,qBAAU,CAAA;AACnC,MAAM,OAAO,GAAc,sBAAW,CAAA;AACtC,MAAM,SAAS,GAAgB,yBAAa,CAAA;AAC5C,MAAM,aAAa,GAAoB,6BAAiB,CAAA;AACxD,MAAM,yBAAyB,GAAgC,2CAA6B,CAAA;AAC5F,MAAM,YAAY,GAAmB,4BAAgB,CAAA;AACrD,MAAM,YAAY,GAAmB,4BAAgB,CAAA;AACrD,MAAM,qBAAqB,GAAG,sCAAiD,CAAA;AAC/E,MAAM,MAAM,GAAa,qBAAU,CAAA;AACnC,MAAM,iBAAiB,GAAwB,mCAAqB,CAAA;AACpE,MAAM,MAAM,GAAa,qBAAU,CAAA;AACnC,MAAM,eAAe,GAAsB,+BAAmB,CAAA;AAC9D,MAAM,WAAW,GAAkB,2BAAe,CAAA;AAClD,MAAM,iBAAiB,GAAwB,iCAAqB,CAAA;AACpE,MAAM,gBAAgB,GAAuB,gCAAoB,CAAA;AACjE,MAAM,UAAU,GAAiB,0BAAc,CAAA;AAC/C,MAAM,eAAe,GAAsB,gCAAmB,CAAA;AAC9D,MAAM,WAAW,GAAkB,2BAAe,CAAA;AAClD,MAAM,SAAS,GAAgB,wBAAa,CAAA;AAC5C,MAAM,YAAY,GAAmB,4BAAgB,CAAA;AACrD,MAAM,WAAW,GAAkB,2BAAe,CAAA;AAClD,MAAM,UAAU,GAAiB,0BAAc,CAAA;AAC/C,MAAM,mBAAmB,GAA0B,oCAAuB,CAAA;AAC1E,MAAM,OAAO,GAAc,sBAAW,CAAA;AACtC,MAAM,eAAe,GAAsB,gCAAmB,CAAA;AAC9D,MAAM,kBAAkB,GAAG,kCAA4C,CAAA;AACvE,MAAM,aAAa,GAAoB,8BAAiB,CAAA;AACxD,MAAM,WAAW,GAAkB,2BAAe,CAAA;AAClD,MAAM,OAAO,GAAc,sBAAW,CAAA;AACtC,MAAM,KAAK,GAAY,qBAAS,CAAA;AAEhC,kBAAe;IACb,iBAAiB;IACjB,kBAAkB;IAClB,MAAM;IACN,OAAO;IACP,SAAS;IACT,aAAa;IACb,yBAAyB;IACzB,YAAY;IACZ,YAAY;IACZ,qBAAqB;IACrB,MAAM;IACN,iBAAiB;IACjB,MAAM;IACN,eAAe;IACf,WAAW;IACX,iBAAiB;IACjB,gBAAgB;IAChB,UAAU;IACV,eAAe;IACf,WAAW;IACX,SAAS;IACT,YAAY;IACZ,WAAW;IACX,UAAU;IACV,mBAAmB;IACnB,OAAO;IACP,eAAe;IACf,kBAAkB;IAClB,aAAa;IACb,WAAW;IACX,OAAO;IACP,KAAK;CACN,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
declare enum TriggerCode {
|
|
2
|
+
TRPR0001 = "TRPR0001",
|
|
3
|
+
TRPR0002 = "TRPR0002",
|
|
4
|
+
TRPR0003 = "TRPR0003",
|
|
5
|
+
TRPR0004 = "TRPR0004",
|
|
6
|
+
TRPR0005 = "TRPR0005",
|
|
7
|
+
TRPR0006 = "TRPR0006",
|
|
8
|
+
TRPR0007 = "TRPR0007",
|
|
9
|
+
TRPR0008 = "TRPR0008",
|
|
10
|
+
TRPR0010 = "TRPR0010",
|
|
11
|
+
TRPR0012 = "TRPR0012",
|
|
12
|
+
TRPR0014 = "TRPR0014",
|
|
13
|
+
TRPR0015 = "TRPR0015",
|
|
14
|
+
TRPR0016 = "TRPR0016",
|
|
15
|
+
TRPR0017 = "TRPR0017",
|
|
16
|
+
TRPR0018 = "TRPR0018",
|
|
17
|
+
TRPR0019 = "TRPR0019",
|
|
18
|
+
TRPR0020 = "TRPR0020",
|
|
19
|
+
TRPR0021 = "TRPR0021",
|
|
20
|
+
TRPR0022 = "TRPR0022",
|
|
21
|
+
TRPR0023 = "TRPR0023",
|
|
22
|
+
TRPR0024 = "TRPR0024",
|
|
23
|
+
TRPR0025 = "TRPR0025",
|
|
24
|
+
TRPR0026 = "TRPR0026",
|
|
25
|
+
TRPR0027 = "TRPR0027",
|
|
26
|
+
TRPR0028 = "TRPR0028",
|
|
27
|
+
TRPR0029 = "TRPR0029",
|
|
28
|
+
TRPR0030 = "TRPR0030",
|
|
29
|
+
TRPS0002 = "TRPS0002",
|
|
30
|
+
TRPS0003 = "TRPS0003",
|
|
31
|
+
TRPS0004 = "TRPS0004",
|
|
32
|
+
TRPS0008 = "TRPS0008",
|
|
33
|
+
TRPS0010 = "TRPS0010",
|
|
34
|
+
TRPS0011 = "TRPS0011",
|
|
35
|
+
TRPS0013 = "TRPS0013"
|
|
36
|
+
}
|
|
37
|
+
export default TriggerCode;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var TriggerCode;
|
|
4
|
+
(function (TriggerCode) {
|
|
5
|
+
TriggerCode["TRPR0001"] = "TRPR0001";
|
|
6
|
+
TriggerCode["TRPR0002"] = "TRPR0002";
|
|
7
|
+
TriggerCode["TRPR0003"] = "TRPR0003";
|
|
8
|
+
TriggerCode["TRPR0004"] = "TRPR0004";
|
|
9
|
+
TriggerCode["TRPR0005"] = "TRPR0005";
|
|
10
|
+
TriggerCode["TRPR0006"] = "TRPR0006";
|
|
11
|
+
TriggerCode["TRPR0007"] = "TRPR0007";
|
|
12
|
+
TriggerCode["TRPR0008"] = "TRPR0008";
|
|
13
|
+
TriggerCode["TRPR0010"] = "TRPR0010";
|
|
14
|
+
TriggerCode["TRPR0012"] = "TRPR0012";
|
|
15
|
+
TriggerCode["TRPR0014"] = "TRPR0014";
|
|
16
|
+
TriggerCode["TRPR0015"] = "TRPR0015";
|
|
17
|
+
TriggerCode["TRPR0016"] = "TRPR0016";
|
|
18
|
+
TriggerCode["TRPR0017"] = "TRPR0017";
|
|
19
|
+
TriggerCode["TRPR0018"] = "TRPR0018";
|
|
20
|
+
TriggerCode["TRPR0019"] = "TRPR0019";
|
|
21
|
+
TriggerCode["TRPR0020"] = "TRPR0020";
|
|
22
|
+
TriggerCode["TRPR0021"] = "TRPR0021";
|
|
23
|
+
TriggerCode["TRPR0022"] = "TRPR0022";
|
|
24
|
+
TriggerCode["TRPR0023"] = "TRPR0023";
|
|
25
|
+
TriggerCode["TRPR0024"] = "TRPR0024";
|
|
26
|
+
TriggerCode["TRPR0025"] = "TRPR0025";
|
|
27
|
+
TriggerCode["TRPR0026"] = "TRPR0026";
|
|
28
|
+
TriggerCode["TRPR0027"] = "TRPR0027";
|
|
29
|
+
TriggerCode["TRPR0028"] = "TRPR0028";
|
|
30
|
+
TriggerCode["TRPR0029"] = "TRPR0029";
|
|
31
|
+
TriggerCode["TRPR0030"] = "TRPR0030";
|
|
32
|
+
TriggerCode["TRPS0002"] = "TRPS0002";
|
|
33
|
+
TriggerCode["TRPS0003"] = "TRPS0003";
|
|
34
|
+
TriggerCode["TRPS0004"] = "TRPS0004";
|
|
35
|
+
TriggerCode["TRPS0008"] = "TRPS0008";
|
|
36
|
+
TriggerCode["TRPS0010"] = "TRPS0010";
|
|
37
|
+
TriggerCode["TRPS0011"] = "TRPS0011";
|
|
38
|
+
TriggerCode["TRPS0013"] = "TRPS0013";
|
|
39
|
+
})(TriggerCode || (TriggerCode = {}));
|
|
40
|
+
exports.default = TriggerCode;
|
|
41
|
+
//# sourceMappingURL=TriggerCode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TriggerCode.js","sourceRoot":"","sources":["../../types/TriggerCode.ts"],"names":[],"mappings":";;AAAA,IAAK,WAmCJ;AAnCD,WAAK,WAAW;IACd,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;AACvB,CAAC,EAnCI,WAAW,KAAX,WAAW,QAmCf;AAED,kBAAe,WAAW,CAAA"}
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type TriggerCode from "./TriggerCode";
|
|
1
2
|
declare type CjsCodeAndDescription = {
|
|
2
3
|
cjsCode: string;
|
|
3
4
|
description: string;
|
|
@@ -19,11 +20,11 @@ declare type CrestDisposal = {
|
|
|
19
20
|
duration: string;
|
|
20
21
|
durationType: string;
|
|
21
22
|
durationUnit: string;
|
|
22
|
-
exception?:
|
|
23
|
+
exception?: string;
|
|
23
24
|
hoQualifiers: string;
|
|
24
25
|
hoResultCode: string;
|
|
25
26
|
id: string;
|
|
26
|
-
needsMapping:
|
|
27
|
+
needsMapping: string;
|
|
27
28
|
numberInResult: string;
|
|
28
29
|
numberInResultType: string;
|
|
29
30
|
qData: string;
|
|
@@ -95,7 +96,7 @@ declare type ResultClass = CjsCodeAndDescription;
|
|
|
95
96
|
declare type ResultCode = {
|
|
96
97
|
cjsCode: string;
|
|
97
98
|
description: string;
|
|
98
|
-
recordableOnPnc?:
|
|
99
|
+
recordableOnPnc?: string;
|
|
99
100
|
resultCodeQualifiers: string;
|
|
100
101
|
resultHalfLifeHours: string;
|
|
101
102
|
type: string;
|
|
@@ -107,4 +108,11 @@ declare type TypeOfHearing = CjsCodeAndDescription;
|
|
|
107
108
|
declare type VehicleCode = CjsCodeAndDescription;
|
|
108
109
|
declare type Verdict = PleaStatus;
|
|
109
110
|
declare type YesNo = CjsCodeAndDescription;
|
|
110
|
-
|
|
111
|
+
declare type TriggerDefinition = {
|
|
112
|
+
code: TriggerCode;
|
|
113
|
+
description: string;
|
|
114
|
+
};
|
|
115
|
+
declare type ExcludedTriggerConfig = {
|
|
116
|
+
[key: string]: TriggerCode[];
|
|
117
|
+
};
|
|
118
|
+
export { ActualOffenceDate, AlcoholLevelMethod, Amount, Country, CourtType, CrestDisposal, DefendantPresentAtHearing, DurationType, DurationUnit, ExcludedTriggerConfig, Gender, ModeOfTrialReason, Number, OffenceCategory, OffenceCode, OffenceInitiation, OrganisationUnit, PleaStatus, PncCourtMapping, PncDisposal, Qualifier, RemandStatus, ResultClass, ResultCode, ResultQualifierCode, Summons, TargetCourtType, TriggerCode, TriggerDefinition, TypeOfHearing, VehicleCode, Verdict, YesNo };
|
package/index.ts
CHANGED
|
@@ -1,3 +1,35 @@
|
|
|
1
|
+
import actualOffenceDateData from "./data/actual-offence-date.json"
|
|
2
|
+
import alcoholLevelMethodData from "./data/alcohol-level-method.json"
|
|
3
|
+
import amountData from "./data/amount.json"
|
|
4
|
+
import countryData from "./data/country.json"
|
|
5
|
+
import courtTypeData from "./data/court-type.json"
|
|
6
|
+
import crestDisposalData from "./data/crest-disposal.json"
|
|
7
|
+
import defendantPresentAtHearingData from "./data/defendant-present-at-hearing.json"
|
|
8
|
+
import durationTypeData from "./data/duration-type.json"
|
|
9
|
+
import durationUnitData from "./data/duration-unit.json"
|
|
10
|
+
import excudedTriggerConfigData from "./data/excluded-trigger-config.json"
|
|
11
|
+
import genderData from "./data/gender.json"
|
|
12
|
+
import modeOfTrialReasonData from "./data/mode-of-trial-reason.json"
|
|
13
|
+
import numberData from "./data/number.json"
|
|
14
|
+
import offenceCategoryData from "./data/offence-category.json"
|
|
15
|
+
import offenceCodeData from "./data/offence-code.json"
|
|
16
|
+
import offenceInitiationData from "./data/offence-initiation.json"
|
|
17
|
+
import organisationUnitData from "./data/organisation-unit.json"
|
|
18
|
+
import pleaStatusData from "./data/plea-status.json"
|
|
19
|
+
import pncCourtMappingData from "./data/pnc-court-mapping.json"
|
|
20
|
+
import pncDisposalData from "./data/pnc-disposal.json"
|
|
21
|
+
import qualifierData from "./data/qualifier.json"
|
|
22
|
+
import remandStatusData from "./data/remand-status.json"
|
|
23
|
+
import resultClassData from "./data/result-class.json"
|
|
24
|
+
import resultCodeData from "./data/result-code.json"
|
|
25
|
+
import resultQualifierCodeData from "./data/result-qualifier-code.json"
|
|
26
|
+
import summonsData from "./data/summons.json"
|
|
27
|
+
import targetCourtTypeData from "./data/target-court-type.json"
|
|
28
|
+
import triggerDefinitionData from "./data/trigger-definitions.json"
|
|
29
|
+
import typeOfHearingData from "./data/type-of-hearing.json"
|
|
30
|
+
import vehicleCodeData from "./data/vehicle-code.json"
|
|
31
|
+
import verdictData from "./data/verdict.json"
|
|
32
|
+
import yesNoData from "./data/yes-no.json"
|
|
1
33
|
import {
|
|
2
34
|
ActualOffenceDate,
|
|
3
35
|
AlcoholLevelMethod,
|
|
@@ -8,6 +40,7 @@ import {
|
|
|
8
40
|
DefendantPresentAtHearing,
|
|
9
41
|
DurationType,
|
|
10
42
|
DurationUnit,
|
|
43
|
+
ExcludedTriggerConfig,
|
|
11
44
|
Gender,
|
|
12
45
|
ModeOfTrialReason,
|
|
13
46
|
Number,
|
|
@@ -25,43 +58,13 @@ import {
|
|
|
25
58
|
ResultQualifierCode,
|
|
26
59
|
Summons,
|
|
27
60
|
TargetCourtType,
|
|
61
|
+
TriggerDefinition,
|
|
28
62
|
TypeOfHearing,
|
|
29
63
|
VehicleCode,
|
|
30
64
|
Verdict,
|
|
31
65
|
YesNo
|
|
32
66
|
} from "./types/types"
|
|
33
67
|
|
|
34
|
-
import actualOffenceDateData from "./data/actual-offence-date.json"
|
|
35
|
-
import alcoholLevelMethodData from "./data/alcohol-level-method.json"
|
|
36
|
-
import amountData from "./data/amount.json"
|
|
37
|
-
import countryData from "./data/country.json"
|
|
38
|
-
import courtTypeData from "./data/court-type.json"
|
|
39
|
-
import crestDisposalData from "./data/crest-disposal.json"
|
|
40
|
-
import defendantPresentAtHearingData from "./data/defendant-present-at-hearing.json"
|
|
41
|
-
import durationTypeData from "./data/duration-type.json"
|
|
42
|
-
import durationUnitData from "./data/duration-unit.json"
|
|
43
|
-
import genderData from "./data/gender.json"
|
|
44
|
-
import modeOfTrialReasonData from "./data/mode-of-trial-reason.json"
|
|
45
|
-
import numberData from "./data/number.json"
|
|
46
|
-
import offenceCategoryData from "./data/offence-category.json"
|
|
47
|
-
import offenceCodeData from "./data/offence-code.json"
|
|
48
|
-
import offenceInitiationData from "./data/offence-initiation.json"
|
|
49
|
-
import organisationUnitData from "./data/organisation-unit.json"
|
|
50
|
-
import pleaStatusData from "./data/plea-status.json"
|
|
51
|
-
import pncCourtMappingData from "./data/pnc-court-mapping.json"
|
|
52
|
-
import pncDisposalData from "./data/pnc-disposal.json"
|
|
53
|
-
import qualifierData from "./data/qualifier.json"
|
|
54
|
-
import remandStatusData from "./data/remand-status.json"
|
|
55
|
-
import resultClassData from "./data/result-class.json"
|
|
56
|
-
import resultCodeData from "./data/result-code.json"
|
|
57
|
-
import resultQualifierCodeData from "./data/result-qualifier-code.json"
|
|
58
|
-
import summonsData from "./data/summons.json"
|
|
59
|
-
import targetCourtTypeData from "./data/target-court-type.json"
|
|
60
|
-
import typeOfHearingData from "./data/type-of-hearing.json"
|
|
61
|
-
import vehicleCodeData from "./data/vehicle-code.json"
|
|
62
|
-
import verdictData from "./data/verdict.json"
|
|
63
|
-
import yesNoData from "./data/yes-no.json"
|
|
64
|
-
|
|
65
68
|
const actualOffenceDate: ActualOffenceDate[] = actualOffenceDateData
|
|
66
69
|
const alcoholLevelMethod: AlcoholLevelMethod[] = alcoholLevelMethodData
|
|
67
70
|
const amount: Amount[] = amountData
|
|
@@ -71,6 +74,7 @@ const crestDisposal: CrestDisposal[] = crestDisposalData
|
|
|
71
74
|
const defendantPresentAtHearing: DefendantPresentAtHearing[] = defendantPresentAtHearingData
|
|
72
75
|
const durationType: DurationType[] = durationTypeData
|
|
73
76
|
const durationUnit: DurationUnit[] = durationUnitData
|
|
77
|
+
const excludedTriggerConfig = excudedTriggerConfigData as ExcludedTriggerConfig
|
|
74
78
|
const gender: Gender[] = genderData
|
|
75
79
|
const modeOfTrialReason: ModeOfTrialReason[] = modeOfTrialReasonData
|
|
76
80
|
const number: Number[] = numberData
|
|
@@ -88,6 +92,7 @@ const resultCode: ResultCode[] = resultCodeData
|
|
|
88
92
|
const resultQualifierCode: ResultQualifierCode[] = resultQualifierCodeData
|
|
89
93
|
const summons: Summons[] = summonsData
|
|
90
94
|
const targetCourtType: TargetCourtType[] = targetCourtTypeData
|
|
95
|
+
const triggerDefinitions = triggerDefinitionData as TriggerDefinition[]
|
|
91
96
|
const typeOfHearing: TypeOfHearing[] = typeOfHearingData
|
|
92
97
|
const vehicleCode: VehicleCode[] = vehicleCodeData
|
|
93
98
|
const verdict: Verdict[] = verdictData
|
|
@@ -103,6 +108,7 @@ export default {
|
|
|
103
108
|
defendantPresentAtHearing,
|
|
104
109
|
durationType,
|
|
105
110
|
durationUnit,
|
|
111
|
+
excludedTriggerConfig,
|
|
106
112
|
gender,
|
|
107
113
|
modeOfTrialReason,
|
|
108
114
|
number,
|
|
@@ -120,6 +126,7 @@ export default {
|
|
|
120
126
|
resultQualifierCode,
|
|
121
127
|
summons,
|
|
122
128
|
targetCourtType,
|
|
129
|
+
triggerDefinitions,
|
|
123
130
|
typeOfHearing,
|
|
124
131
|
vehicleCode,
|
|
125
132
|
verdict,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moj-bichard7-developers/bichard7-next-data",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "The standing data for Bichard",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -27,11 +27,6 @@
|
|
|
27
27
|
"lint-staged": {
|
|
28
28
|
"*.{js,ts}": "eslint --cache --fix"
|
|
29
29
|
},
|
|
30
|
-
"release": {
|
|
31
|
-
"branches": [
|
|
32
|
-
"main"
|
|
33
|
-
]
|
|
34
|
-
},
|
|
35
30
|
"publishConfig": {
|
|
36
31
|
"access": "public",
|
|
37
32
|
"tag": "latest"
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
enum TriggerCode {
|
|
2
|
+
TRPR0001 = "TRPR0001",
|
|
3
|
+
TRPR0002 = "TRPR0002",
|
|
4
|
+
TRPR0003 = "TRPR0003",
|
|
5
|
+
TRPR0004 = "TRPR0004",
|
|
6
|
+
TRPR0005 = "TRPR0005",
|
|
7
|
+
TRPR0006 = "TRPR0006",
|
|
8
|
+
TRPR0007 = "TRPR0007",
|
|
9
|
+
TRPR0008 = "TRPR0008",
|
|
10
|
+
TRPR0010 = "TRPR0010",
|
|
11
|
+
TRPR0012 = "TRPR0012",
|
|
12
|
+
TRPR0014 = "TRPR0014",
|
|
13
|
+
TRPR0015 = "TRPR0015",
|
|
14
|
+
TRPR0016 = "TRPR0016",
|
|
15
|
+
TRPR0017 = "TRPR0017",
|
|
16
|
+
TRPR0018 = "TRPR0018",
|
|
17
|
+
TRPR0019 = "TRPR0019",
|
|
18
|
+
TRPR0020 = "TRPR0020",
|
|
19
|
+
TRPR0021 = "TRPR0021",
|
|
20
|
+
TRPR0022 = "TRPR0022",
|
|
21
|
+
TRPR0023 = "TRPR0023",
|
|
22
|
+
TRPR0024 = "TRPR0024",
|
|
23
|
+
TRPR0025 = "TRPR0025",
|
|
24
|
+
TRPR0026 = "TRPR0026",
|
|
25
|
+
TRPR0027 = "TRPR0027",
|
|
26
|
+
TRPR0028 = "TRPR0028",
|
|
27
|
+
TRPR0029 = "TRPR0029",
|
|
28
|
+
TRPR0030 = "TRPR0030",
|
|
29
|
+
TRPS0002 = "TRPS0002",
|
|
30
|
+
TRPS0003 = "TRPS0003",
|
|
31
|
+
TRPS0004 = "TRPS0004",
|
|
32
|
+
TRPS0008 = "TRPS0008",
|
|
33
|
+
TRPS0010 = "TRPS0010",
|
|
34
|
+
TRPS0011 = "TRPS0011",
|
|
35
|
+
TRPS0013 = "TRPS0013"
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export default TriggerCode
|
package/types/types.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type TriggerCode from "./TriggerCode"
|
|
2
|
+
|
|
1
3
|
type CjsCodeAndDescription = {
|
|
2
4
|
cjsCode: string
|
|
3
5
|
description: string
|
|
@@ -23,11 +25,11 @@ type CrestDisposal = {
|
|
|
23
25
|
duration: string
|
|
24
26
|
durationType: string
|
|
25
27
|
durationUnit: string
|
|
26
|
-
exception?:
|
|
28
|
+
exception?: string
|
|
27
29
|
hoQualifiers: string
|
|
28
30
|
hoResultCode: string
|
|
29
31
|
id: string
|
|
30
|
-
needsMapping:
|
|
32
|
+
needsMapping: string
|
|
31
33
|
numberInResult: string
|
|
32
34
|
numberInResultType: string
|
|
33
35
|
qData: string
|
|
@@ -112,7 +114,7 @@ type ResultClass = CjsCodeAndDescription
|
|
|
112
114
|
type ResultCode = {
|
|
113
115
|
cjsCode: string
|
|
114
116
|
description: string
|
|
115
|
-
recordableOnPnc?:
|
|
117
|
+
recordableOnPnc?: string
|
|
116
118
|
resultCodeQualifiers: string
|
|
117
119
|
resultHalfLifeHours: string
|
|
118
120
|
type: string
|
|
@@ -126,6 +128,15 @@ type VehicleCode = CjsCodeAndDescription
|
|
|
126
128
|
type Verdict = PleaStatus
|
|
127
129
|
type YesNo = CjsCodeAndDescription
|
|
128
130
|
|
|
131
|
+
type TriggerDefinition = {
|
|
132
|
+
code: TriggerCode
|
|
133
|
+
description: string
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
type ExcludedTriggerConfig = {
|
|
137
|
+
[key: string]: TriggerCode[]
|
|
138
|
+
}
|
|
139
|
+
|
|
129
140
|
export {
|
|
130
141
|
ActualOffenceDate,
|
|
131
142
|
AlcoholLevelMethod,
|
|
@@ -136,6 +147,7 @@ export {
|
|
|
136
147
|
DefendantPresentAtHearing,
|
|
137
148
|
DurationType,
|
|
138
149
|
DurationUnit,
|
|
150
|
+
ExcludedTriggerConfig,
|
|
139
151
|
Gender,
|
|
140
152
|
ModeOfTrialReason,
|
|
141
153
|
Number,
|
|
@@ -153,6 +165,8 @@ export {
|
|
|
153
165
|
ResultQualifierCode,
|
|
154
166
|
Summons,
|
|
155
167
|
TargetCourtType,
|
|
168
|
+
TriggerCode,
|
|
169
|
+
TriggerDefinition,
|
|
156
170
|
TypeOfHearing,
|
|
157
171
|
VehicleCode,
|
|
158
172
|
Verdict,
|