@dvsa/cvs-type-definitions 12.1.0 → 12.2.0
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/json-schemas/v1/defect-details/index.json +65 -0
- package/json-schemas/v1/enums/emissionStandard.enum.json +1 -1
- package/json-schemas/v1/test/index.json +7 -1
- package/json-schemas/v1/test-result/index.json +7 -1
- package/json-schemas/v1/test-result-test-type/index.json +66 -1
- package/json-schemas/v1/vehicle/index.json +7 -1
- package/json-schemas/v1/visit/index.json +7 -1
- package/package.json +3 -3
- package/schema-validator.d.ts +1 -1
- package/schema-validator.js +2 -3
- package/types/enums/euVehicleCategory.enum.js +1 -1
- package/types/enums/vehicleConfiguration.enum.js +1 -1
- package/types/enums/vehicleSize.enum.js +1 -1
- package/types/enums/vehicleSubclass.enum.js +1 -1
- package/types/enums/vehicleType.enum.js +1 -1
- package/types/required-standards/defects/enums/euVehicleCategory.enum.js +1 -1
- package/types/test-type/enums/testTypeClassification.enum.js +1 -1
- package/types/v1/defect-details/index.d.ts +16 -0
- package/types/v1/enums/activityType.enum.js +1 -1
- package/types/v1/enums/closureReason.enum.js +1 -1
- package/types/v1/enums/emissionStandard.enum.d.ts +1 -1
- package/types/v1/enums/emissionStandard.enum.js +2 -2
- package/types/v1/enums/emissionStandard.enum.ts +1 -1
- package/types/v1/enums/fuelType.enum.js +1 -1
- package/types/v1/enums/odometerReadingUnits.enum.js +1 -1
- package/types/v1/enums/sources.enum.js +1 -1
- package/types/v1/enums/testResult.enum.js +1 -1
- package/types/v1/enums/testStationType.enum.js +1 -1
- package/types/v1/enums/testStatus.enum.js +1 -1
- package/types/v1/enums/typeOfTest.enum.js +1 -1
- package/types/v1/enums/vehicleType.enum.js +1 -1
- package/types/v1/enums/waitReason.enum.js +1 -1
- package/types/v1/test/index.d.ts +2 -1
- package/types/v1/test-result/index.d.ts +2 -1
- package/types/v1/test-result-test-type/index.d.ts +16 -1
- package/types/v1/vehicle/index.d.ts +2 -1
- package/types/v1/visit/index.d.ts +2 -1
- package/types/v3/tech-record/enums/adrAdditionalNotesNumber.enum.js +1 -1
- package/types/v3/tech-record/enums/adrBodyDeclarationType.enum.js +1 -1
- package/types/v3/tech-record/enums/adrBodyType.enum.js +1 -1
- package/types/v3/tech-record/enums/adrCertificateTypes.enum.js +1 -1
- package/types/v3/tech-record/enums/adrCompatibilityGroupJ.enum.js +1 -1
- package/types/v3/tech-record/enums/adrDangerousGood.enum.js +1 -1
- package/types/v3/tech-record/enums/adrTankDetailsTankStatementSelect.enum.js +1 -1
- package/types/v3/tech-record/enums/adrTankStatementSubstancePermitted.js +1 -1
- package/types/v3/tech-record/enums/approvalType.enum.js +1 -1
- package/types/v3/tech-record/enums/approvalTypeHgvOrPsv.enum.js +1 -1
- package/types/v3/tech-record/enums/euVehicleCategory.enum.js +1 -1
- package/types/v3/tech-record/enums/euVehicleCategoryCar.enum.js +1 -1
- package/types/v3/tech-record/enums/euVehicleCategoryHgv.enum.js +1 -1
- package/types/v3/tech-record/enums/euVehicleCategoryLgv.enum.js +1 -1
- package/types/v3/tech-record/enums/euVehicleCategoryPsv.enum.js +1 -1
- package/types/v3/tech-record/enums/euVehicleCategorySmallTrl.enum.js +1 -1
- package/types/v3/tech-record/enums/euVehicleCategoryTrl.enum.js +1 -1
- package/types/v3/tech-record/enums/radioButtonOptions.enum.js +1 -1
- package/types/v3/tech-record/enums/tc3Types.enum.js +1 -1
- package/types/v3/tech-record/enums/tyreUseCodeHgv.enum.js +1 -1
- package/types/v3/tech-record/enums/tyreUseCodeTrl.enum.js +1 -1
- package/types/v3/tech-record/enums/vehicleClassDescription.enum.js +1 -1
- package/types/v3/tech-record/enums/vehicleClassDescriptionPSV.enum.js +1 -1
- package/types/v3/tech-record/enums/vehicleConfigurationHgvPsv.enum.js +1 -1
- package/types/v3/tech-record/enums/vehicleConfigurationLightVehicle.enum.js +1 -1
- package/types/v3/tech-record/enums/vehicleConfigurationTrl.enum.js +1 -1
- package/types/v3/tech-record/enums/vehicleSize.enum.js +1 -1
|
@@ -243,6 +243,71 @@
|
|
|
243
243
|
"required": [
|
|
244
244
|
"category"
|
|
245
245
|
]
|
|
246
|
+
},
|
|
247
|
+
"media": {
|
|
248
|
+
"type": "array",
|
|
249
|
+
"items": {
|
|
250
|
+
"title": "Media Schema",
|
|
251
|
+
"type": "object",
|
|
252
|
+
"additionalProperties": false,
|
|
253
|
+
"anyOf": [
|
|
254
|
+
{
|
|
255
|
+
"title": "Image Schema",
|
|
256
|
+
"type": "object",
|
|
257
|
+
"properties": {
|
|
258
|
+
"type": {
|
|
259
|
+
"const": "image"
|
|
260
|
+
},
|
|
261
|
+
"path": {
|
|
262
|
+
"type": "string"
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
"additionalProperties": false,
|
|
266
|
+
"required": [
|
|
267
|
+
"type",
|
|
268
|
+
"path"
|
|
269
|
+
]
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"title": "Video Schema",
|
|
273
|
+
"type": "object",
|
|
274
|
+
"properties": {
|
|
275
|
+
"type": {
|
|
276
|
+
"const": "video"
|
|
277
|
+
},
|
|
278
|
+
"path": {
|
|
279
|
+
"type": "string"
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
"additionalProperties": false,
|
|
283
|
+
"required": [
|
|
284
|
+
"type",
|
|
285
|
+
"path"
|
|
286
|
+
]
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"title": "Fail Reason Schema",
|
|
290
|
+
"type": "object",
|
|
291
|
+
"properties": {
|
|
292
|
+
"type": {
|
|
293
|
+
"const": "failReason"
|
|
294
|
+
},
|
|
295
|
+
"path": {
|
|
296
|
+
"type": "string"
|
|
297
|
+
},
|
|
298
|
+
"reason": {
|
|
299
|
+
"type": "string"
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
"additionalProperties": false,
|
|
303
|
+
"required": [
|
|
304
|
+
"type",
|
|
305
|
+
"path",
|
|
306
|
+
"reason"
|
|
307
|
+
]
|
|
308
|
+
}
|
|
309
|
+
]
|
|
310
|
+
}
|
|
246
311
|
}
|
|
247
312
|
},
|
|
248
313
|
"additionalProperties": false,
|
|
@@ -1356,7 +1356,7 @@
|
|
|
1356
1356
|
],
|
|
1357
1357
|
"enum": [
|
|
1358
1358
|
"0.10 g/kWh Euro 3 PM",
|
|
1359
|
-
"0.03 g/kWh Euro IV PM
|
|
1359
|
+
"0.03 g/kWh Euro IV PM",
|
|
1360
1360
|
"Euro 3",
|
|
1361
1361
|
"Euro 4",
|
|
1362
1362
|
"Euro 5",
|
|
@@ -1677,6 +1677,12 @@
|
|
|
1677
1677
|
"required": [
|
|
1678
1678
|
"category"
|
|
1679
1679
|
]
|
|
1680
|
+
},
|
|
1681
|
+
"media": {
|
|
1682
|
+
"type": "array",
|
|
1683
|
+
"items": {
|
|
1684
|
+
"$ref": "#/properties/vehicles/items/properties/testResultsHistory/items/properties/media/items"
|
|
1685
|
+
}
|
|
1680
1686
|
}
|
|
1681
1687
|
},
|
|
1682
1688
|
"additionalProperties": false,
|
|
@@ -490,7 +490,7 @@
|
|
|
490
490
|
],
|
|
491
491
|
"enum": [
|
|
492
492
|
"0.10 g/kWh Euro 3 PM",
|
|
493
|
-
"0.03 g/kWh Euro IV PM
|
|
493
|
+
"0.03 g/kWh Euro IV PM",
|
|
494
494
|
"Euro 3",
|
|
495
495
|
"Euro 4",
|
|
496
496
|
"Euro 5",
|
|
@@ -811,6 +811,12 @@
|
|
|
811
811
|
"required": [
|
|
812
812
|
"category"
|
|
813
813
|
]
|
|
814
|
+
},
|
|
815
|
+
"media": {
|
|
816
|
+
"type": "array",
|
|
817
|
+
"items": {
|
|
818
|
+
"$ref": "#/properties/media/items"
|
|
819
|
+
}
|
|
814
820
|
}
|
|
815
821
|
},
|
|
816
822
|
"additionalProperties": false,
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
],
|
|
160
160
|
"enum": [
|
|
161
161
|
"0.10 g/kWh Euro 3 PM",
|
|
162
|
-
"0.03 g/kWh Euro IV PM
|
|
162
|
+
"0.03 g/kWh Euro IV PM",
|
|
163
163
|
"Euro 3",
|
|
164
164
|
"Euro 4",
|
|
165
165
|
"Euro 5",
|
|
@@ -480,6 +480,71 @@
|
|
|
480
480
|
"required": [
|
|
481
481
|
"category"
|
|
482
482
|
]
|
|
483
|
+
},
|
|
484
|
+
"media": {
|
|
485
|
+
"type": "array",
|
|
486
|
+
"items": {
|
|
487
|
+
"title": "Media Schema",
|
|
488
|
+
"type": "object",
|
|
489
|
+
"additionalProperties": false,
|
|
490
|
+
"anyOf": [
|
|
491
|
+
{
|
|
492
|
+
"title": "Image Schema",
|
|
493
|
+
"type": "object",
|
|
494
|
+
"properties": {
|
|
495
|
+
"type": {
|
|
496
|
+
"const": "image"
|
|
497
|
+
},
|
|
498
|
+
"path": {
|
|
499
|
+
"type": "string"
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
"additionalProperties": false,
|
|
503
|
+
"required": [
|
|
504
|
+
"type",
|
|
505
|
+
"path"
|
|
506
|
+
]
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"title": "Video Schema",
|
|
510
|
+
"type": "object",
|
|
511
|
+
"properties": {
|
|
512
|
+
"type": {
|
|
513
|
+
"const": "video"
|
|
514
|
+
},
|
|
515
|
+
"path": {
|
|
516
|
+
"type": "string"
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
"additionalProperties": false,
|
|
520
|
+
"required": [
|
|
521
|
+
"type",
|
|
522
|
+
"path"
|
|
523
|
+
]
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"title": "Fail Reason Schema",
|
|
527
|
+
"type": "object",
|
|
528
|
+
"properties": {
|
|
529
|
+
"type": {
|
|
530
|
+
"const": "failReason"
|
|
531
|
+
},
|
|
532
|
+
"path": {
|
|
533
|
+
"type": "string"
|
|
534
|
+
},
|
|
535
|
+
"reason": {
|
|
536
|
+
"type": "string"
|
|
537
|
+
}
|
|
538
|
+
},
|
|
539
|
+
"additionalProperties": false,
|
|
540
|
+
"required": [
|
|
541
|
+
"type",
|
|
542
|
+
"path",
|
|
543
|
+
"reason"
|
|
544
|
+
]
|
|
545
|
+
}
|
|
546
|
+
]
|
|
547
|
+
}
|
|
483
548
|
}
|
|
484
549
|
},
|
|
485
550
|
"additionalProperties": false,
|
|
@@ -1328,7 +1328,7 @@
|
|
|
1328
1328
|
],
|
|
1329
1329
|
"enum": [
|
|
1330
1330
|
"0.10 g/kWh Euro 3 PM",
|
|
1331
|
-
"0.03 g/kWh Euro IV PM
|
|
1331
|
+
"0.03 g/kWh Euro IV PM",
|
|
1332
1332
|
"Euro 3",
|
|
1333
1333
|
"Euro 4",
|
|
1334
1334
|
"Euro 5",
|
|
@@ -1649,6 +1649,12 @@
|
|
|
1649
1649
|
"required": [
|
|
1650
1650
|
"category"
|
|
1651
1651
|
]
|
|
1652
|
+
},
|
|
1653
|
+
"media": {
|
|
1654
|
+
"type": "array",
|
|
1655
|
+
"items": {
|
|
1656
|
+
"$ref": "#/properties/testResultsHistory/items/properties/media/items"
|
|
1657
|
+
}
|
|
1652
1658
|
}
|
|
1653
1659
|
},
|
|
1654
1660
|
"additionalProperties": false,
|
|
@@ -1389,7 +1389,7 @@
|
|
|
1389
1389
|
],
|
|
1390
1390
|
"enum": [
|
|
1391
1391
|
"0.10 g/kWh Euro 3 PM",
|
|
1392
|
-
"0.03 g/kWh Euro IV PM
|
|
1392
|
+
"0.03 g/kWh Euro IV PM",
|
|
1393
1393
|
"Euro 3",
|
|
1394
1394
|
"Euro 4",
|
|
1395
1395
|
"Euro 5",
|
|
@@ -1710,6 +1710,12 @@
|
|
|
1710
1710
|
"required": [
|
|
1711
1711
|
"category"
|
|
1712
1712
|
]
|
|
1713
|
+
},
|
|
1714
|
+
"media": {
|
|
1715
|
+
"type": "array",
|
|
1716
|
+
"items": {
|
|
1717
|
+
"$ref": "#/properties/tests/items/properties/vehicles/items/properties/testResultsHistory/items/properties/media/items"
|
|
1718
|
+
}
|
|
1713
1719
|
}
|
|
1714
1720
|
},
|
|
1715
1721
|
"additionalProperties": false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dvsa/cvs-type-definitions",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.2.0",
|
|
4
4
|
"description": "Type definitions for CVS VTA and VTM applications",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@jest/globals": "^29.5.0",
|
|
18
18
|
"@types/jest": "^29.5.2",
|
|
19
|
-
"@types/node": "^
|
|
19
|
+
"@types/node": "^22.19.3",
|
|
20
20
|
"jest": "^29.5.0",
|
|
21
21
|
"json-schema-to-typescript": "^11.0.2",
|
|
22
22
|
"ts-jest": "^29.1.0",
|
|
23
23
|
"ts-node": "^10.9.1",
|
|
24
24
|
"tsconfig-paths": "^4.2.0",
|
|
25
|
-
"typescript": "^
|
|
25
|
+
"typescript": "^5.9.3"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@apidevtools/json-schema-ref-parser": "^12.0.2",
|
package/schema-validator.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ErrorObject } from "ajv";
|
|
2
2
|
import { schemas } from "./schemas";
|
|
3
|
-
export
|
|
3
|
+
export type Schema = typeof schemas[number];
|
|
4
4
|
/**
|
|
5
5
|
* Validate an object according to a JSON schema
|
|
6
6
|
* @param {Schema} schemaName `enum` - the name of the JSON schema to validate against
|
package/schema-validator.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.isValidObject = isValidObject;
|
|
4
|
+
exports.validate = validate;
|
|
4
5
|
var ajv_1 = require("ajv");
|
|
5
6
|
var ajv_formats_1 = require("ajv-formats");
|
|
6
7
|
var fs_1 = require("fs");
|
|
@@ -21,7 +22,6 @@ function isValidObject(schemaName, objectToValidate, returnErrors, logErrors) {
|
|
|
21
22
|
}
|
|
22
23
|
return isValid;
|
|
23
24
|
}
|
|
24
|
-
exports.isValidObject = isValidObject;
|
|
25
25
|
function validate(schemaObject, objectToValidate, returnErrors, logErrors) {
|
|
26
26
|
var _a;
|
|
27
27
|
if (logErrors === void 0) { logErrors = false; }
|
|
@@ -38,4 +38,3 @@ function validate(schemaObject, objectToValidate, returnErrors, logErrors) {
|
|
|
38
38
|
}
|
|
39
39
|
return isValid;
|
|
40
40
|
}
|
|
41
|
-
exports.validate = validate;
|
|
@@ -27,4 +27,4 @@ var EUVehicleCategory;
|
|
|
27
27
|
EUVehicleCategory["L5E"] = "l5e";
|
|
28
28
|
EUVehicleCategory["L6E"] = "l6e";
|
|
29
29
|
EUVehicleCategory["L7E"] = "l7e";
|
|
30
|
-
})(EUVehicleCategory
|
|
30
|
+
})(EUVehicleCategory || (exports.EUVehicleCategory = EUVehicleCategory = {}));
|
|
@@ -21,4 +21,4 @@ var VehicleConfiguration;
|
|
|
21
21
|
VehicleConfiguration["FOUR_IN_LINE"] = "four-in-line";
|
|
22
22
|
VehicleConfiguration["DOLLY"] = "dolly";
|
|
23
23
|
VehicleConfiguration["FULL_DRAWBAR"] = "full drawbar";
|
|
24
|
-
})(VehicleConfiguration
|
|
24
|
+
})(VehicleConfiguration || (exports.VehicleConfiguration = VehicleConfiguration = {}));
|
|
@@ -18,4 +18,4 @@ var VehicleSubclass;
|
|
|
18
18
|
VehicleSubclass["P"] = "p";
|
|
19
19
|
VehicleSubclass["T"] = "t";
|
|
20
20
|
VehicleSubclass["R"] = "r";
|
|
21
|
-
})(VehicleSubclass
|
|
21
|
+
})(VehicleSubclass || (exports.VehicleSubclass = VehicleSubclass = {}));
|
|
@@ -27,4 +27,4 @@ var EUVehicleCategory;
|
|
|
27
27
|
EUVehicleCategory["L5E"] = "l5e";
|
|
28
28
|
EUVehicleCategory["L6E"] = "l6e";
|
|
29
29
|
EUVehicleCategory["L7E"] = "l7e";
|
|
30
|
-
})(EUVehicleCategory
|
|
30
|
+
})(EUVehicleCategory || (exports.EUVehicleCategory = EUVehicleCategory = {}));
|
|
@@ -14,4 +14,4 @@ var TestTypeClassification;
|
|
|
14
14
|
TestTypeClassification["NON_ANNUAL"] = "NON ANNUAL";
|
|
15
15
|
TestTypeClassification["IVA_WITH_CERTIFICATE"] = "IVA With Certificate";
|
|
16
16
|
TestTypeClassification["MSVA_WITH_CERTIFICATE"] = "MSVA With Certificate";
|
|
17
|
-
})(TestTypeClassification
|
|
17
|
+
})(TestTypeClassification || (exports.TestTypeClassification = TestTypeClassification = {}));
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
* and run json-schema-to-typescript to regenerate this file.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
export type MediaSchema = ImageSchema | VideoSchema | FailReasonSchema;
|
|
9
|
+
|
|
8
10
|
export interface DefectDetailsSchema {
|
|
9
11
|
imNumber: number;
|
|
10
12
|
imDescription: string;
|
|
@@ -23,6 +25,7 @@ export interface DefectDetailsSchema {
|
|
|
23
25
|
prs: boolean | null;
|
|
24
26
|
prohibitionIssued: boolean | null;
|
|
25
27
|
metadata: DefectMetadataSchema;
|
|
28
|
+
media?: MediaSchema[];
|
|
26
29
|
}
|
|
27
30
|
export interface DefectLocationSchema {
|
|
28
31
|
vertical?: string | null;
|
|
@@ -51,3 +54,16 @@ export interface DefectLocationMetadataSchema {
|
|
|
51
54
|
seatNumber?: number[] | null;
|
|
52
55
|
axleNumber?: number[] | null;
|
|
53
56
|
}
|
|
57
|
+
export interface ImageSchema {
|
|
58
|
+
type: "image";
|
|
59
|
+
path: string;
|
|
60
|
+
}
|
|
61
|
+
export interface VideoSchema {
|
|
62
|
+
type: "video";
|
|
63
|
+
path: string;
|
|
64
|
+
}
|
|
65
|
+
export interface FailReasonSchema {
|
|
66
|
+
type: "failReason";
|
|
67
|
+
path: string;
|
|
68
|
+
reason: string;
|
|
69
|
+
}
|
|
@@ -12,4 +12,4 @@ var ActivityType;
|
|
|
12
12
|
ActivityType["VISIT"] = "visit";
|
|
13
13
|
ActivityType["WAIT"] = "wait";
|
|
14
14
|
ActivityType["UNACCOUNTABLE_TIME"] = "unaccountable time";
|
|
15
|
-
})(ActivityType
|
|
15
|
+
})(ActivityType || (exports.ActivityType = ActivityType = {}));
|
|
@@ -12,4 +12,4 @@ var ClosureReasonType;
|
|
|
12
12
|
ClosureReasonType["AUTOCLOSE"] = "Autoclose";
|
|
13
13
|
ClosureReasonType["MANUAL"] = "Manual";
|
|
14
14
|
ClosureReasonType["CLOSE_ALL"] = "Close all";
|
|
15
|
-
})(ClosureReasonType
|
|
15
|
+
})(ClosureReasonType || (exports.ClosureReasonType = ClosureReasonType = {}));
|
|
@@ -10,7 +10,7 @@ exports.EmissionStandards = void 0;
|
|
|
10
10
|
var EmissionStandards;
|
|
11
11
|
(function (EmissionStandards) {
|
|
12
12
|
EmissionStandards["EURO3_PM"] = "0.10 g/kWh Euro 3 PM";
|
|
13
|
-
EmissionStandards["EURO4_PM"] = "0.03 g/kWh Euro IV PM
|
|
13
|
+
EmissionStandards["EURO4_PM"] = "0.03 g/kWh Euro IV PM";
|
|
14
14
|
EmissionStandards["EURO3"] = "Euro 3";
|
|
15
15
|
EmissionStandards["EURO4"] = "Euro 4";
|
|
16
16
|
EmissionStandards["EURO5"] = "Euro 5";
|
|
@@ -18,4 +18,4 @@ var EmissionStandards;
|
|
|
18
18
|
EmissionStandards["EUROV"] = "Euro V";
|
|
19
19
|
EmissionStandards["EUROVI"] = "Euro VI";
|
|
20
20
|
EmissionStandards["FULL_ELECTRIC"] = "Full Electric";
|
|
21
|
-
})(EmissionStandards
|
|
21
|
+
})(EmissionStandards || (exports.EmissionStandards = EmissionStandards = {}));
|
|
@@ -11,4 +11,4 @@ var OdometerReadingUnits;
|
|
|
11
11
|
(function (OdometerReadingUnits) {
|
|
12
12
|
OdometerReadingUnits["KILOMETRES"] = "kilometres";
|
|
13
13
|
OdometerReadingUnits["MILES"] = "miles";
|
|
14
|
-
})(OdometerReadingUnits
|
|
14
|
+
})(OdometerReadingUnits || (exports.OdometerReadingUnits = OdometerReadingUnits = {}));
|
|
@@ -14,4 +14,4 @@ var TestStationTypes;
|
|
|
14
14
|
TestStationTypes["HQ"] = "hq";
|
|
15
15
|
TestStationTypes["POTF"] = "potf";
|
|
16
16
|
TestStationTypes["VEF"] = "vef";
|
|
17
|
-
})(TestStationTypes
|
|
17
|
+
})(TestStationTypes || (exports.TestStationTypes = TestStationTypes = {}));
|
|
@@ -12,4 +12,4 @@ var TypeOfTest;
|
|
|
12
12
|
TypeOfTest["CONTINGENCY"] = "contingency";
|
|
13
13
|
TypeOfTest["DESK_BASED"] = "desk-based";
|
|
14
14
|
TypeOfTest["COMPLETION"] = "completion";
|
|
15
|
-
})(TypeOfTest
|
|
15
|
+
})(TypeOfTest || (exports.TypeOfTest = TypeOfTest = {}));
|
package/types/v1/test/index.d.ts
CHANGED
|
@@ -362,6 +362,7 @@ export interface DefectDetailsSchema {
|
|
|
362
362
|
prs: boolean | null;
|
|
363
363
|
prohibitionIssued: boolean | null;
|
|
364
364
|
metadata: DefectMetadataSchema;
|
|
365
|
+
media?: MediaSchema[];
|
|
365
366
|
}
|
|
366
367
|
export interface DefectLocationSchema {
|
|
367
368
|
vertical?: string | null;
|
|
@@ -462,7 +463,7 @@ export enum TestResults {
|
|
|
462
463
|
}
|
|
463
464
|
export enum EmissionStandards {
|
|
464
465
|
EURO3_PM = "0.10 g/kWh Euro 3 PM",
|
|
465
|
-
EURO4_PM = "0.03 g/kWh Euro IV PM
|
|
466
|
+
EURO4_PM = "0.03 g/kWh Euro IV PM",
|
|
466
467
|
EURO3 = "Euro 3",
|
|
467
468
|
EURO4 = "Euro 4",
|
|
468
469
|
EURO5 = "Euro 5",
|
|
@@ -145,6 +145,7 @@ export interface DefectDetailsSchema {
|
|
|
145
145
|
prs: boolean | null;
|
|
146
146
|
prohibitionIssued: boolean | null;
|
|
147
147
|
metadata: DefectMetadataSchema;
|
|
148
|
+
media?: MediaSchema[];
|
|
148
149
|
}
|
|
149
150
|
export interface DefectLocationSchema {
|
|
150
151
|
vertical?: string | null;
|
|
@@ -245,7 +246,7 @@ export enum TestResults {
|
|
|
245
246
|
}
|
|
246
247
|
export enum EmissionStandards {
|
|
247
248
|
EURO3_PM = "0.10 g/kWh Euro 3 PM",
|
|
248
|
-
EURO4_PM = "0.03 g/kWh Euro IV PM
|
|
249
|
+
EURO4_PM = "0.03 g/kWh Euro IV PM",
|
|
249
250
|
EURO3 = "Euro 3",
|
|
250
251
|
EURO4 = "Euro 4",
|
|
251
252
|
EURO5 = "Euro 5",
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* and run json-schema-to-typescript to regenerate this file.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
export type MediaSchema = ImageSchema | VideoSchema | FailReasonSchema;
|
|
8
9
|
export type InspectionType = "basic" | "normal";
|
|
9
10
|
|
|
10
11
|
export interface TestResultTestTypeSchema {
|
|
@@ -70,6 +71,7 @@ export interface DefectDetailsSchema {
|
|
|
70
71
|
prs: boolean | null;
|
|
71
72
|
prohibitionIssued: boolean | null;
|
|
72
73
|
metadata: DefectMetadataSchema;
|
|
74
|
+
media?: MediaSchema[];
|
|
73
75
|
}
|
|
74
76
|
export interface DefectLocationSchema {
|
|
75
77
|
vertical?: string | null;
|
|
@@ -98,6 +100,19 @@ export interface DefectLocationMetadataSchema {
|
|
|
98
100
|
seatNumber?: number[] | null;
|
|
99
101
|
axleNumber?: number[] | null;
|
|
100
102
|
}
|
|
103
|
+
export interface ImageSchema {
|
|
104
|
+
type: "image";
|
|
105
|
+
path: string;
|
|
106
|
+
}
|
|
107
|
+
export interface VideoSchema {
|
|
108
|
+
type: "video";
|
|
109
|
+
path: string;
|
|
110
|
+
}
|
|
111
|
+
export interface FailReasonSchema {
|
|
112
|
+
type: "failReason";
|
|
113
|
+
path: string;
|
|
114
|
+
reason: string;
|
|
115
|
+
}
|
|
101
116
|
export interface SpecialistCustomDefectsSchema {
|
|
102
117
|
referenceNumber: string;
|
|
103
118
|
defectName: string;
|
|
@@ -127,7 +142,7 @@ export enum TestResults {
|
|
|
127
142
|
}
|
|
128
143
|
export enum EmissionStandards {
|
|
129
144
|
EURO3_PM = "0.10 g/kWh Euro 3 PM",
|
|
130
|
-
EURO4_PM = "0.03 g/kWh Euro IV PM
|
|
145
|
+
EURO4_PM = "0.03 g/kWh Euro IV PM",
|
|
131
146
|
EURO3 = "Euro 3",
|
|
132
147
|
EURO4 = "Euro 4",
|
|
133
148
|
EURO5 = "Euro 5",
|
|
@@ -354,6 +354,7 @@ export interface DefectDetailsSchema {
|
|
|
354
354
|
prs: boolean | null;
|
|
355
355
|
prohibitionIssued: boolean | null;
|
|
356
356
|
metadata: DefectMetadataSchema;
|
|
357
|
+
media?: MediaSchema[];
|
|
357
358
|
}
|
|
358
359
|
export interface DefectLocationSchema {
|
|
359
360
|
vertical?: string | null;
|
|
@@ -454,7 +455,7 @@ export enum TestResults {
|
|
|
454
455
|
}
|
|
455
456
|
export enum EmissionStandards {
|
|
456
457
|
EURO3_PM = "0.10 g/kWh Euro 3 PM",
|
|
457
|
-
EURO4_PM = "0.03 g/kWh Euro IV PM
|
|
458
|
+
EURO4_PM = "0.03 g/kWh Euro IV PM",
|
|
458
459
|
EURO3 = "Euro 3",
|
|
459
460
|
EURO4 = "Euro 4",
|
|
460
461
|
EURO5 = "Euro 5",
|
|
@@ -375,6 +375,7 @@ export interface DefectDetailsSchema {
|
|
|
375
375
|
prs: boolean | null;
|
|
376
376
|
prohibitionIssued: boolean | null;
|
|
377
377
|
metadata: DefectMetadataSchema;
|
|
378
|
+
media?: MediaSchema[];
|
|
378
379
|
}
|
|
379
380
|
export interface DefectLocationSchema {
|
|
380
381
|
vertical?: string | null;
|
|
@@ -475,7 +476,7 @@ export enum TestResults {
|
|
|
475
476
|
}
|
|
476
477
|
export enum EmissionStandards {
|
|
477
478
|
EURO3_PM = "0.10 g/kWh Euro 3 PM",
|
|
478
|
-
EURO4_PM = "0.03 g/kWh Euro IV PM
|
|
479
|
+
EURO4_PM = "0.03 g/kWh Euro IV PM",
|
|
479
480
|
EURO3 = "Euro 3",
|
|
480
481
|
EURO4 = "Euro 4",
|
|
481
482
|
EURO5 = "Euro 5",
|
|
@@ -15,4 +15,4 @@ var ADRAdditionalNotesNumber;
|
|
|
15
15
|
ADRAdditionalNotesNumber["THREE"] = "3";
|
|
16
16
|
ADRAdditionalNotesNumber["V1B"] = "V1B";
|
|
17
17
|
ADRAdditionalNotesNumber["T1B"] = "T1B";
|
|
18
|
-
})(ADRAdditionalNotesNumber
|
|
18
|
+
})(ADRAdditionalNotesNumber || (exports.ADRAdditionalNotesNumber = ADRAdditionalNotesNumber = {}));
|
|
@@ -12,4 +12,4 @@ var ADRBodyDeclarationTypes;
|
|
|
12
12
|
ADRBodyDeclarationTypes["PRE_1ST_JULY_2005"] = "Pre 1st July 2005";
|
|
13
13
|
ADRBodyDeclarationTypes["ON_OR_AFTER_1ST_JULY_2005"] = "On or after 1st July 2005";
|
|
14
14
|
ADRBodyDeclarationTypes["UNKNOWN"] = "Unknown";
|
|
15
|
-
})(ADRBodyDeclarationTypes
|
|
15
|
+
})(ADRBodyDeclarationTypes || (exports.ADRBodyDeclarationTypes = ADRBodyDeclarationTypes = {}));
|
|
@@ -30,4 +30,4 @@ var ADRBodyType;
|
|
|
30
30
|
ADRBodyType["SEMI_TRAILER_TANK"] = "Semi trailer tank";
|
|
31
31
|
ADRBodyType["SEMI_TRAILER_SKELETAL"] = "Semi trailer skeletal";
|
|
32
32
|
ADRBodyType["SEMI_TRAILER_BATTERY"] = "Semi trailer battery";
|
|
33
|
-
})(ADRBodyType
|
|
33
|
+
})(ADRBodyType || (exports.ADRBodyType = ADRBodyType = {}));
|
|
@@ -11,4 +11,4 @@ var ADRCertificateTypes;
|
|
|
11
11
|
(function (ADRCertificateTypes) {
|
|
12
12
|
ADRCertificateTypes["PASS"] = "PASS";
|
|
13
13
|
ADRCertificateTypes["REPLACEMENT"] = "REPLACEMENT";
|
|
14
|
-
})(ADRCertificateTypes
|
|
14
|
+
})(ADRCertificateTypes || (exports.ADRCertificateTypes = ADRCertificateTypes = {}));
|
|
@@ -11,4 +11,4 @@ var ADRCompatibilityGroupJ;
|
|
|
11
11
|
(function (ADRCompatibilityGroupJ) {
|
|
12
12
|
ADRCompatibilityGroupJ["I"] = "I";
|
|
13
13
|
ADRCompatibilityGroupJ["E"] = "E";
|
|
14
|
-
})(ADRCompatibilityGroupJ
|
|
14
|
+
})(ADRCompatibilityGroupJ || (exports.ADRCompatibilityGroupJ = ADRCompatibilityGroupJ = {}));
|
|
@@ -16,4 +16,4 @@ var ADRDangerousGood;
|
|
|
16
16
|
ADRDangerousGood["HYDROGEN"] = "Hydrogen";
|
|
17
17
|
ADRDangerousGood["EXPLOSIVES_TYPE_2"] = "Explosives (type 2)";
|
|
18
18
|
ADRDangerousGood["EXPLOSIVES_TYPE_3"] = "Explosives (type 3)";
|
|
19
|
-
})(ADRDangerousGood
|
|
19
|
+
})(ADRDangerousGood || (exports.ADRDangerousGood = ADRDangerousGood = {}));
|
|
@@ -11,4 +11,4 @@ var ADRTankDetailsTankStatementSelect;
|
|
|
11
11
|
(function (ADRTankDetailsTankStatementSelect) {
|
|
12
12
|
ADRTankDetailsTankStatementSelect["STATEMENT"] = "Statement";
|
|
13
13
|
ADRTankDetailsTankStatementSelect["PRODUCT_LIST"] = "Product list";
|
|
14
|
-
})(ADRTankDetailsTankStatementSelect
|
|
14
|
+
})(ADRTankDetailsTankStatementSelect || (exports.ADRTankDetailsTankStatementSelect = ADRTankDetailsTankStatementSelect = {}));
|
|
@@ -11,4 +11,4 @@ var ADRTankStatementSubstancePermitted;
|
|
|
11
11
|
(function (ADRTankStatementSubstancePermitted) {
|
|
12
12
|
ADRTankStatementSubstancePermitted["UNDER_TANK_CODE"] = "Substances permitted under the tank code and any special provisions specified in 9 may be carried";
|
|
13
13
|
ADRTankStatementSubstancePermitted["UNDER_UN_NUMBER"] = "Substances (Class UN number and if necessary packing group and proper shipping name) may be carried";
|
|
14
|
-
})(ADRTankStatementSubstancePermitted
|
|
14
|
+
})(ADRTankStatementSubstancePermitted || (exports.ADRTankStatementSubstancePermitted = ADRTankStatementSubstancePermitted = {}));
|
|
@@ -24,4 +24,4 @@ var ApprovalType;
|
|
|
24
24
|
ApprovalType["SMALL_SERIES_NKS"] = "Small series NKS";
|
|
25
25
|
ApprovalType["IVA_VCA"] = "IVA - VCA";
|
|
26
26
|
ApprovalType["IVA_DVSA_NI"] = "IVA - DVSA/NI";
|
|
27
|
-
})(ApprovalType
|
|
27
|
+
})(ApprovalType || (exports.ApprovalType = ApprovalType = {}));
|
|
@@ -20,4 +20,4 @@ var ApprovalType;
|
|
|
20
20
|
ApprovalType["SMALL_SERIES_NKS"] = "Small series NKS";
|
|
21
21
|
ApprovalType["IVA_VCA"] = "IVA - VCA";
|
|
22
22
|
ApprovalType["IVA_DVSA_NI"] = "IVA - DVSA/NI";
|
|
23
|
-
})(ApprovalType
|
|
23
|
+
})(ApprovalType || (exports.ApprovalType = ApprovalType = {}));
|
|
@@ -27,4 +27,4 @@ var EUVehicleCategory;
|
|
|
27
27
|
EUVehicleCategory["L5E"] = "l5e";
|
|
28
28
|
EUVehicleCategory["L6E"] = "l6e";
|
|
29
29
|
EUVehicleCategory["L7E"] = "l7e";
|
|
30
|
-
})(EUVehicleCategory
|
|
30
|
+
})(EUVehicleCategory || (exports.EUVehicleCategory = EUVehicleCategory = {}));
|
|
@@ -10,4 +10,4 @@ exports.EUVehicleCategory = void 0;
|
|
|
10
10
|
var EUVehicleCategory;
|
|
11
11
|
(function (EUVehicleCategory) {
|
|
12
12
|
EUVehicleCategory["M1"] = "m1";
|
|
13
|
-
})(EUVehicleCategory
|
|
13
|
+
})(EUVehicleCategory || (exports.EUVehicleCategory = EUVehicleCategory = {}));
|
|
@@ -12,4 +12,4 @@ var EUVehicleCategory;
|
|
|
12
12
|
EUVehicleCategory["N1"] = "n1";
|
|
13
13
|
EUVehicleCategory["N2"] = "n2";
|
|
14
14
|
EUVehicleCategory["N3"] = "n3";
|
|
15
|
-
})(EUVehicleCategory
|
|
15
|
+
})(EUVehicleCategory || (exports.EUVehicleCategory = EUVehicleCategory = {}));
|
|
@@ -10,4 +10,4 @@ exports.EUVehicleCategory = void 0;
|
|
|
10
10
|
var EUVehicleCategory;
|
|
11
11
|
(function (EUVehicleCategory) {
|
|
12
12
|
EUVehicleCategory["N1"] = "n1";
|
|
13
|
-
})(EUVehicleCategory
|
|
13
|
+
})(EUVehicleCategory || (exports.EUVehicleCategory = EUVehicleCategory = {}));
|
|
@@ -12,4 +12,4 @@ var EUVehicleCategory;
|
|
|
12
12
|
EUVehicleCategory["M1"] = "m1";
|
|
13
13
|
EUVehicleCategory["M2"] = "m2";
|
|
14
14
|
EUVehicleCategory["M3"] = "m3";
|
|
15
|
-
})(EUVehicleCategory
|
|
15
|
+
})(EUVehicleCategory || (exports.EUVehicleCategory = EUVehicleCategory = {}));
|
|
@@ -11,4 +11,4 @@ var EUVehicleCategory;
|
|
|
11
11
|
(function (EUVehicleCategory) {
|
|
12
12
|
EUVehicleCategory["O1"] = "o1";
|
|
13
13
|
EUVehicleCategory["O2"] = "o2";
|
|
14
|
-
})(EUVehicleCategory
|
|
14
|
+
})(EUVehicleCategory || (exports.EUVehicleCategory = EUVehicleCategory = {}));
|
|
@@ -13,4 +13,4 @@ var EUVehicleCategory;
|
|
|
13
13
|
EUVehicleCategory["O2"] = "o2";
|
|
14
14
|
EUVehicleCategory["O3"] = "o3";
|
|
15
15
|
EUVehicleCategory["O4"] = "o4";
|
|
16
|
-
})(EUVehicleCategory
|
|
16
|
+
})(EUVehicleCategory || (exports.EUVehicleCategory = EUVehicleCategory = {}));
|
|
@@ -12,4 +12,4 @@ var RadioButtonOptions;
|
|
|
12
12
|
RadioButtonOptions["yes"] = "yes";
|
|
13
13
|
RadioButtonOptions["no"] = "no";
|
|
14
14
|
RadioButtonOptions["not_applicable"] = "n/a";
|
|
15
|
-
})(RadioButtonOptions
|
|
15
|
+
})(RadioButtonOptions || (exports.RadioButtonOptions = RadioButtonOptions = {}));
|
|
@@ -20,4 +20,4 @@ var VehicleClassDescription;
|
|
|
20
20
|
VehicleClassDescription["MOTClass4"] = "MOT class 4";
|
|
21
21
|
VehicleClassDescription["MOTClass7"] = "MOT class 7";
|
|
22
22
|
VehicleClassDescription["MOTClass5"] = "MOT class 5";
|
|
23
|
-
})(VehicleClassDescription
|
|
23
|
+
})(VehicleClassDescription || (exports.VehicleClassDescription = VehicleClassDescription = {}));
|
|
@@ -11,4 +11,4 @@ var VehicleClassDescription;
|
|
|
11
11
|
(function (VehicleClassDescription) {
|
|
12
12
|
VehicleClassDescription["SMALL_PSV"] = "small psv (ie: less than or equal to 22 seats)";
|
|
13
13
|
VehicleClassDescription["LARGE_PSV"] = "large psv(ie: greater than 23 seats)";
|
|
14
|
-
})(VehicleClassDescription
|
|
14
|
+
})(VehicleClassDescription || (exports.VehicleClassDescription = VehicleClassDescription = {}));
|
|
@@ -11,4 +11,4 @@ var VehicleConfiguration;
|
|
|
11
11
|
(function (VehicleConfiguration) {
|
|
12
12
|
VehicleConfiguration["RIGID"] = "rigid";
|
|
13
13
|
VehicleConfiguration["ARTICULATED"] = "articulated";
|
|
14
|
-
})(VehicleConfiguration
|
|
14
|
+
})(VehicleConfiguration || (exports.VehicleConfiguration = VehicleConfiguration = {}));
|
|
@@ -21,4 +21,4 @@ var VehicleConfiguration;
|
|
|
21
21
|
VehicleConfiguration["FOUR_IN_LINE"] = "four-in-line";
|
|
22
22
|
VehicleConfiguration["DOLLY"] = "dolly";
|
|
23
23
|
VehicleConfiguration["FULL_DRAWBAR"] = "full drawbar";
|
|
24
|
-
})(VehicleConfiguration
|
|
24
|
+
})(VehicleConfiguration || (exports.VehicleConfiguration = VehicleConfiguration = {}));
|
|
@@ -19,4 +19,4 @@ var VehicleConfiguration;
|
|
|
19
19
|
VehicleConfiguration["FOUR_IN_LINE"] = "four-in-line";
|
|
20
20
|
VehicleConfiguration["DOLLY"] = "dolly";
|
|
21
21
|
VehicleConfiguration["FULL_DRAWBAR"] = "full drawbar";
|
|
22
|
-
})(VehicleConfiguration
|
|
22
|
+
})(VehicleConfiguration || (exports.VehicleConfiguration = VehicleConfiguration = {}));
|