@moj-bichard7-developers/bichard7-next-data 2.0.99 → 2.0.101
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/dist/types/DateCode.d.ts +9 -0
- package/dist/types/DateCode.js +21 -0
- package/dist/types/DateCode.js.map +1 -0
- package/dist/types/Duration.d.ts +10 -0
- package/dist/types/Duration.js +23 -0
- package/dist/types/Duration.js.map +1 -0
- package/dist/types/GenderCode.d.ts +7 -0
- package/dist/types/GenderCode.js +17 -0
- package/dist/types/GenderCode.js.map +1 -0
- package/dist/types/RemandStatusCode.d.ts +10 -0
- package/dist/types/RemandStatusCode.js +23 -0
- package/dist/types/RemandStatusCode.js.map +1 -0
- package/dist/types/types.d.ts +4 -0
- package/package.json +1 -1
- package/types/DateCode.ts +17 -0
- package/types/Duration.ts +19 -0
- package/types/GenderCode.ts +13 -0
- package/types/RemandStatusCode.ts +19 -0
- package/types/types.ts +4 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DateCodes = exports.DateCode = void 0;
|
|
4
|
+
var DateCode;
|
|
5
|
+
(function (DateCode) {
|
|
6
|
+
DateCode[DateCode["ON_OR_IN"] = 1] = "ON_OR_IN";
|
|
7
|
+
DateCode[DateCode["BEFORE"] = 2] = "BEFORE";
|
|
8
|
+
DateCode[DateCode["AFTER"] = 3] = "AFTER";
|
|
9
|
+
DateCode[DateCode["BETWEEN"] = 4] = "BETWEEN";
|
|
10
|
+
DateCode[DateCode["ON_OR_ABOUT"] = 5] = "ON_OR_ABOUT";
|
|
11
|
+
DateCode[DateCode["ON_OR_BEFORE"] = 6] = "ON_OR_BEFORE";
|
|
12
|
+
})(DateCode = exports.DateCode || (exports.DateCode = {}));
|
|
13
|
+
exports.DateCodes = {
|
|
14
|
+
[DateCode.ON_OR_IN]: "on or in",
|
|
15
|
+
[DateCode.BEFORE]: "before",
|
|
16
|
+
[DateCode.AFTER]: "after",
|
|
17
|
+
[DateCode.BETWEEN]: "between",
|
|
18
|
+
[DateCode.ON_OR_ABOUT]: "on or about",
|
|
19
|
+
[DateCode.ON_OR_BEFORE]: "on or before"
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=DateCode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateCode.js","sourceRoot":"","sources":["../../types/DateCode.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAOX;AAPD,WAAY,QAAQ;IAClB,+CAAY,CAAA;IACZ,2CAAU,CAAA;IACV,yCAAS,CAAA;IACT,6CAAW,CAAA;IACX,qDAAe,CAAA;IACf,uDAAgB,CAAA;AAClB,CAAC,EAPW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAOnB;AAEY,QAAA,SAAS,GAA6B;IACjD,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,UAAU;IAC/B,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ;IAC3B,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO;IACzB,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS;IAC7B,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,aAAa;IACrC,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,cAAc;CACxC,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Durations = exports.Duration = void 0;
|
|
4
|
+
var Duration;
|
|
5
|
+
(function (Duration) {
|
|
6
|
+
Duration["DAYS"] = "D";
|
|
7
|
+
Duration["HOURS"] = "H";
|
|
8
|
+
Duration["LIFE"] = "L";
|
|
9
|
+
Duration["MONTHS"] = "M";
|
|
10
|
+
Duration["SESSIONS"] = "S";
|
|
11
|
+
Duration["WEEKS"] = "W";
|
|
12
|
+
Duration["YEARS"] = "Y";
|
|
13
|
+
})(Duration = exports.Duration || (exports.Duration = {}));
|
|
14
|
+
exports.Durations = {
|
|
15
|
+
[Duration.DAYS]: "days",
|
|
16
|
+
[Duration.HOURS]: "hours",
|
|
17
|
+
[Duration.LIFE]: "life",
|
|
18
|
+
[Duration.MONTHS]: "months",
|
|
19
|
+
[Duration.SESSIONS]: "sessions",
|
|
20
|
+
[Duration.WEEKS]: "weeks",
|
|
21
|
+
[Duration.YEARS]: "years"
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=Duration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Duration.js","sourceRoot":"","sources":["../../types/Duration.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAQX;AARD,WAAY,QAAQ;IAClB,sBAAU,CAAA;IACV,uBAAW,CAAA;IACX,sBAAU,CAAA;IACV,wBAAY,CAAA;IACZ,0BAAc,CAAA;IACd,uBAAW,CAAA;IACX,uBAAW,CAAA;AACb,CAAC,EARW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAQnB;AAEY,QAAA,SAAS,GAA6B;IACjD,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM;IACvB,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO;IACzB,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM;IACvB,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ;IAC3B,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,UAAU;IAC/B,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO;IACzB,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO;CAC1B,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GenderCodes = exports.GenderCode = void 0;
|
|
4
|
+
var GenderCode;
|
|
5
|
+
(function (GenderCode) {
|
|
6
|
+
GenderCode[GenderCode["NOT_KNOWN"] = 0] = "NOT_KNOWN";
|
|
7
|
+
GenderCode[GenderCode["MALE"] = 1] = "MALE";
|
|
8
|
+
GenderCode[GenderCode["FEMALE"] = 2] = "FEMALE";
|
|
9
|
+
GenderCode[GenderCode["NOT_SPECIFIED"] = 9] = "NOT_SPECIFIED";
|
|
10
|
+
})(GenderCode = exports.GenderCode || (exports.GenderCode = {}));
|
|
11
|
+
exports.GenderCodes = {
|
|
12
|
+
[GenderCode.NOT_KNOWN]: "not known",
|
|
13
|
+
[GenderCode.MALE]: "male",
|
|
14
|
+
[GenderCode.FEMALE]: "female",
|
|
15
|
+
[GenderCode.NOT_SPECIFIED]: "not specified"
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=GenderCode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GenderCode.js","sourceRoot":"","sources":["../../types/GenderCode.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,qDAAa,CAAA;IACb,2CAAQ,CAAA;IACR,+CAAU,CAAA;IACV,6DAAiB,CAAA;AACnB,CAAC,EALW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAKrB;AAEY,QAAA,WAAW,GAA+B;IACrD,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,WAAW;IACnC,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,MAAM;IACzB,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,QAAQ;IAC7B,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,eAAe;CAC5C,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum RemandStatusCode {
|
|
2
|
+
CONDITIONAL_BAIL = "CB",
|
|
3
|
+
CARE = "LA",
|
|
4
|
+
NOT_APPLICABLE = "NA",
|
|
5
|
+
CUSTODY_PB = "PB",
|
|
6
|
+
CUSTODY_PR = "PR",
|
|
7
|
+
SECURE_CARE = "SA",
|
|
8
|
+
UNCONDITIONAL_BAIL = "UB"
|
|
9
|
+
}
|
|
10
|
+
export declare const RemandStatuses: Record<RemandStatusCode, string>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RemandStatuses = exports.RemandStatusCode = void 0;
|
|
4
|
+
var RemandStatusCode;
|
|
5
|
+
(function (RemandStatusCode) {
|
|
6
|
+
RemandStatusCode["CONDITIONAL_BAIL"] = "CB";
|
|
7
|
+
RemandStatusCode["CARE"] = "LA";
|
|
8
|
+
RemandStatusCode["NOT_APPLICABLE"] = "NA";
|
|
9
|
+
RemandStatusCode["CUSTODY_PB"] = "PB";
|
|
10
|
+
RemandStatusCode["CUSTODY_PR"] = "PR";
|
|
11
|
+
RemandStatusCode["SECURE_CARE"] = "SA";
|
|
12
|
+
RemandStatusCode["UNCONDITIONAL_BAIL"] = "UB";
|
|
13
|
+
})(RemandStatusCode = exports.RemandStatusCode || (exports.RemandStatusCode = {}));
|
|
14
|
+
exports.RemandStatuses = {
|
|
15
|
+
[RemandStatusCode.CONDITIONAL_BAIL]: "conditional bail",
|
|
16
|
+
[RemandStatusCode.CARE]: "care",
|
|
17
|
+
[RemandStatusCode.NOT_APPLICABLE]: "not appliciable",
|
|
18
|
+
[RemandStatusCode.CUSTODY_PB]: "custody",
|
|
19
|
+
[RemandStatusCode.CUSTODY_PR]: "custody",
|
|
20
|
+
[RemandStatusCode.SECURE_CARE]: "secure care",
|
|
21
|
+
[RemandStatusCode.UNCONDITIONAL_BAIL]: "unconditional bail"
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=RemandStatusCode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RemandStatusCode.js","sourceRoot":"","sources":["../../types/RemandStatusCode.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAQX;AARD,WAAY,gBAAgB;IAC1B,2CAAuB,CAAA;IACvB,+BAAW,CAAA;IACX,yCAAqB,CAAA;IACrB,qCAAiB,CAAA;IACjB,qCAAiB,CAAA;IACjB,sCAAkB,CAAA;IAClB,6CAAyB,CAAA;AAC3B,CAAC,EARW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAQ3B;AAEY,QAAA,cAAc,GAAqC;IAC9D,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,EAAE,kBAAkB;IACvD,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,MAAM;IAC/B,CAAC,gBAAgB,CAAC,cAAc,CAAC,EAAE,iBAAiB;IACpD,CAAC,gBAAgB,CAAC,UAAU,CAAC,EAAE,SAAS;IACxC,CAAC,gBAAgB,CAAC,UAAU,CAAC,EAAE,SAAS;IACxC,CAAC,gBAAgB,CAAC,WAAW,CAAC,EAAE,aAAa;IAC7C,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,EAAE,oBAAoB;CAC5D,CAAA"}
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type TriggerCode from "./TriggerCode";
|
|
2
2
|
import type ExceptionCode from "./ExceptionCode";
|
|
3
3
|
export type { default as TriggerCode } from "./TriggerCode";
|
|
4
|
+
export type { DateCode } from "./DateCode";
|
|
5
|
+
export type { GenderCode } from "./GenderCode";
|
|
6
|
+
export type { RemandStatusCode } from "./RemandStatusCode";
|
|
7
|
+
export type { Duration } from "./Duration";
|
|
4
8
|
export declare type CjsCodeAndDescription = {
|
|
5
9
|
cjsCode: string;
|
|
6
10
|
description: string;
|
package/package.json
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export enum DateCode {
|
|
2
|
+
ON_OR_IN = 1,
|
|
3
|
+
BEFORE = 2,
|
|
4
|
+
AFTER = 3,
|
|
5
|
+
BETWEEN = 4,
|
|
6
|
+
ON_OR_ABOUT = 5,
|
|
7
|
+
ON_OR_BEFORE = 6
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export const DateCodes: Record<DateCode, string> = {
|
|
11
|
+
[DateCode.ON_OR_IN]: "on or in",
|
|
12
|
+
[DateCode.BEFORE]: "before",
|
|
13
|
+
[DateCode.AFTER]: "after",
|
|
14
|
+
[DateCode.BETWEEN]: "between",
|
|
15
|
+
[DateCode.ON_OR_ABOUT]: "on or about",
|
|
16
|
+
[DateCode.ON_OR_BEFORE]: "on or before"
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export enum Duration {
|
|
2
|
+
DAYS = "D",
|
|
3
|
+
HOURS = "H",
|
|
4
|
+
LIFE = "L",
|
|
5
|
+
MONTHS = "M",
|
|
6
|
+
SESSIONS = "S",
|
|
7
|
+
WEEKS = "W",
|
|
8
|
+
YEARS = "Y"
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const Durations: Record<Duration, string> = {
|
|
12
|
+
[Duration.DAYS]: "days",
|
|
13
|
+
[Duration.HOURS]: "hours",
|
|
14
|
+
[Duration.LIFE]: "life",
|
|
15
|
+
[Duration.MONTHS]: "months",
|
|
16
|
+
[Duration.SESSIONS]: "sessions",
|
|
17
|
+
[Duration.WEEKS]: "weeks",
|
|
18
|
+
[Duration.YEARS]: "years"
|
|
19
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export enum GenderCode {
|
|
2
|
+
NOT_KNOWN = 0,
|
|
3
|
+
MALE = 1,
|
|
4
|
+
FEMALE = 2,
|
|
5
|
+
NOT_SPECIFIED = 9
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const GenderCodes: Record<GenderCode, string> = {
|
|
9
|
+
[GenderCode.NOT_KNOWN]: "not known",
|
|
10
|
+
[GenderCode.MALE]: "male",
|
|
11
|
+
[GenderCode.FEMALE]: "female",
|
|
12
|
+
[GenderCode.NOT_SPECIFIED]: "not specified"
|
|
13
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export enum RemandStatusCode {
|
|
2
|
+
CONDITIONAL_BAIL = "CB",
|
|
3
|
+
CARE = "LA",
|
|
4
|
+
NOT_APPLICABLE = "NA",
|
|
5
|
+
CUSTODY_PB = "PB",
|
|
6
|
+
CUSTODY_PR = "PR",
|
|
7
|
+
SECURE_CARE = "SA",
|
|
8
|
+
UNCONDITIONAL_BAIL = "UB"
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const RemandStatuses: Record<RemandStatusCode, string> = {
|
|
12
|
+
[RemandStatusCode.CONDITIONAL_BAIL]: "conditional bail",
|
|
13
|
+
[RemandStatusCode.CARE]: "care",
|
|
14
|
+
[RemandStatusCode.NOT_APPLICABLE]: "not appliciable",
|
|
15
|
+
[RemandStatusCode.CUSTODY_PB]: "custody",
|
|
16
|
+
[RemandStatusCode.CUSTODY_PR]: "custody",
|
|
17
|
+
[RemandStatusCode.SECURE_CARE]: "secure care",
|
|
18
|
+
[RemandStatusCode.UNCONDITIONAL_BAIL]: "unconditional bail"
|
|
19
|
+
}
|
package/types/types.ts
CHANGED
|
@@ -2,6 +2,10 @@ import type TriggerCode from "./TriggerCode"
|
|
|
2
2
|
import type ExceptionCode from "./ExceptionCode"
|
|
3
3
|
|
|
4
4
|
export type { default as TriggerCode } from "./TriggerCode"
|
|
5
|
+
export type { DateCode } from "./DateCode"
|
|
6
|
+
export type { GenderCode } from "./GenderCode"
|
|
7
|
+
export type { RemandStatusCode } from "./RemandStatusCode"
|
|
8
|
+
export type { Duration } from "./Duration"
|
|
5
9
|
|
|
6
10
|
export type CjsCodeAndDescription = {
|
|
7
11
|
cjsCode: string
|