@dvsa/cvs-type-definitions 7.3.0 → 7.5.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.
Files changed (53) hide show
  1. package/json-schemas/v1/activity/index.json +4 -2
  2. package/json-schemas/v1/enums/testStationType.enum.json +4 -2
  3. package/json-schemas/v1/test/index.json +4 -2
  4. package/json-schemas/v1/test-result/index.json +4 -2
  5. package/json-schemas/v1/vehicle/index.json +4 -2
  6. package/json-schemas/v1/visit/index.json +4 -2
  7. package/json-schemas/v3/tech-record/enums/adrBodyDeclarationType.enum.json +14 -0
  8. package/json-schemas/v3/tech-record/get/hgv/complete/index.json +48 -0
  9. package/json-schemas/v3/tech-record/get/hgv/skeleton/index.json +48 -0
  10. package/json-schemas/v3/tech-record/get/hgv/testable/index.json +48 -0
  11. package/json-schemas/v3/tech-record/get/lgv/complete/index.json +48 -0
  12. package/json-schemas/v3/tech-record/get/lgv/skeleton/index.json +48 -0
  13. package/json-schemas/v3/tech-record/get/trl/complete/index.json +48 -0
  14. package/json-schemas/v3/tech-record/get/trl/skeleton/index.json +48 -0
  15. package/json-schemas/v3/tech-record/get/trl/testable/index.json +48 -0
  16. package/json-schemas/v3/tech-record/put/hgv/complete/index.json +48 -0
  17. package/json-schemas/v3/tech-record/put/hgv/skeleton/index.json +48 -0
  18. package/json-schemas/v3/tech-record/put/hgv/testable/index.json +48 -0
  19. package/json-schemas/v3/tech-record/put/lgv/complete/index.json +48 -0
  20. package/json-schemas/v3/tech-record/put/lgv/skeleton/index.json +48 -0
  21. package/json-schemas/v3/tech-record/put/trl/complete/index.json +48 -0
  22. package/json-schemas/v3/tech-record/put/trl/skeleton/index.json +48 -0
  23. package/json-schemas/v3/tech-record/put/trl/testable/index.json +48 -0
  24. package/package.json +1 -1
  25. package/schemas.d.ts +1 -1
  26. package/schemas.js +1 -0
  27. package/types/v1/activity/index.d.ts +2 -1
  28. package/types/v1/enums/testStationType.enum.d.ts +2 -1
  29. package/types/v1/enums/testStationType.enum.js +1 -0
  30. package/types/v1/enums/testStationType.enum.ts +2 -1
  31. package/types/v1/test/index.d.ts +2 -1
  32. package/types/v1/test-result/index.d.ts +2 -1
  33. package/types/v1/vehicle/index.d.ts +2 -1
  34. package/types/v1/visit/index.d.ts +2 -1
  35. package/types/v3/tech-record/enums/adrBodyDeclarationType.enum.d.ts +10 -0
  36. package/types/v3/tech-record/enums/adrBodyDeclarationType.enum.js +15 -0
  37. package/types/v3/tech-record/enums/adrBodyDeclarationType.enum.ts +12 -0
  38. package/types/v3/tech-record/get/hgv/complete/index.d.ts +6 -0
  39. package/types/v3/tech-record/get/hgv/skeleton/index.d.ts +6 -0
  40. package/types/v3/tech-record/get/hgv/testable/index.d.ts +6 -0
  41. package/types/v3/tech-record/get/lgv/complete/index.d.ts +6 -0
  42. package/types/v3/tech-record/get/lgv/skeleton/index.d.ts +6 -0
  43. package/types/v3/tech-record/get/trl/complete/index.d.ts +6 -0
  44. package/types/v3/tech-record/get/trl/skeleton/index.d.ts +6 -0
  45. package/types/v3/tech-record/get/trl/testable/index.d.ts +6 -0
  46. package/types/v3/tech-record/put/hgv/complete/index.d.ts +6 -0
  47. package/types/v3/tech-record/put/hgv/skeleton/index.d.ts +6 -0
  48. package/types/v3/tech-record/put/hgv/testable/index.d.ts +6 -0
  49. package/types/v3/tech-record/put/lgv/complete/index.d.ts +6 -0
  50. package/types/v3/tech-record/put/lgv/skeleton/index.d.ts +6 -0
  51. package/types/v3/tech-record/put/trl/complete/index.d.ts +6 -0
  52. package/types/v3/tech-record/put/trl/skeleton/index.d.ts +6 -0
  53. package/types/v3/tech-record/put/trl/testable/index.d.ts +6 -0
@@ -38,13 +38,15 @@
38
38
  "ATF",
39
39
  "GVTS",
40
40
  "HQ",
41
- "POTF"
41
+ "POTF",
42
+ "VEF"
42
43
  ],
43
44
  "enum": [
44
45
  "atf",
45
46
  "gvts",
46
47
  "hq",
47
- "potf"
48
+ "potf",
49
+ "vef"
48
50
  ]
49
51
  },
50
52
  "testerName": {
@@ -5,12 +5,14 @@
5
5
  "ATF",
6
6
  "GVTS",
7
7
  "HQ",
8
- "POTF"
8
+ "POTF",
9
+ "VEF"
9
10
  ],
10
11
  "enum": [
11
12
  "atf",
12
13
  "gvts",
13
14
  "hq",
14
- "potf"
15
+ "potf",
16
+ "vef"
15
17
  ]
16
18
  }
@@ -710,13 +710,15 @@
710
710
  "ATF",
711
711
  "GVTS",
712
712
  "HQ",
713
- "POTF"
713
+ "POTF",
714
+ "VEF"
714
715
  ],
715
716
  "enum": [
716
717
  "atf",
717
718
  "gvts",
718
719
  "hq",
719
- "potf"
720
+ "potf",
721
+ "vef"
720
722
  ]
721
723
  }
722
724
  ]
@@ -28,13 +28,15 @@
28
28
  "ATF",
29
29
  "GVTS",
30
30
  "HQ",
31
- "POTF"
31
+ "POTF",
32
+ "VEF"
32
33
  ],
33
34
  "enum": [
34
35
  "atf",
35
36
  "gvts",
36
37
  "hq",
37
- "potf"
38
+ "potf",
39
+ "vef"
38
40
  ]
39
41
  }
40
42
  ]
@@ -682,13 +682,15 @@
682
682
  "ATF",
683
683
  "GVTS",
684
684
  "HQ",
685
- "POTF"
685
+ "POTF",
686
+ "VEF"
686
687
  ],
687
688
  "enum": [
688
689
  "atf",
689
690
  "gvts",
690
691
  "hq",
691
- "potf"
692
+ "potf",
693
+ "vef"
692
694
  ]
693
695
  }
694
696
  ]
@@ -743,13 +743,15 @@
743
743
  "ATF",
744
744
  "GVTS",
745
745
  "HQ",
746
- "POTF"
746
+ "POTF",
747
+ "VEF"
747
748
  ],
748
749
  "enum": [
749
750
  "atf",
750
751
  "gvts",
751
752
  "hq",
752
- "potf"
753
+ "potf",
754
+ "vef"
753
755
  ]
754
756
  }
755
757
  ]
@@ -0,0 +1,14 @@
1
+ {
2
+ "title": "ADR Body Declaration Types",
3
+ "type": "string",
4
+ "tsEnumNames": [
5
+ "PRE_1ST_JULY_2005",
6
+ "ON_OR_AFTER_1ST_JULY_2005",
7
+ "UNKNOWN"
8
+ ],
9
+ "enum": [
10
+ "Pre 1st July 2005",
11
+ "On or after 1st July 2005",
12
+ "Unknown"
13
+ ]
14
+ }
@@ -82,6 +82,27 @@
82
82
  "null"
83
83
  ]
84
84
  },
85
+ "techRecord_adrDetails_bodyDeclaration_type": {
86
+ "anyOf": [
87
+ {
88
+ "type": "null"
89
+ },
90
+ {
91
+ "title": "ADR Body Declaration Types",
92
+ "type": "string",
93
+ "tsEnumNames": [
94
+ "PRE_1ST_JULY_2005",
95
+ "ON_OR_AFTER_1ST_JULY_2005",
96
+ "UNKNOWN"
97
+ ],
98
+ "enum": [
99
+ "Pre 1st July 2005",
100
+ "On or after 1st July 2005",
101
+ "Unknown"
102
+ ]
103
+ }
104
+ ]
105
+ },
85
106
  "techRecord_adrDetails_vehicleDetails_usedOnInternationalJourneys": {
86
107
  "anyOf": [
87
108
  {
@@ -1273,6 +1294,33 @@
1273
1294
  ]
1274
1295
  }
1275
1296
  },
1297
+ {
1298
+ "if": {
1299
+ "properties": {
1300
+ "techRecord_adrDetails_permittedDangerousGoods": {
1301
+ "type": "array",
1302
+ "contains": {
1303
+ "type": "string",
1304
+ "not": {
1305
+ "enum": [
1306
+ "Explosives (type 3)"
1307
+ ]
1308
+ }
1309
+ }
1310
+ }
1311
+ },
1312
+ "required": [
1313
+ "techRecord_adrDetails_permittedDangerousGoods"
1314
+ ]
1315
+ },
1316
+ "then": {
1317
+ "not": {
1318
+ "required": [
1319
+ "techRecord_adrDetails_bodyDeclaration_type"
1320
+ ]
1321
+ }
1322
+ }
1323
+ },
1276
1324
  {
1277
1325
  "if": {
1278
1326
  "properties": {
@@ -52,6 +52,27 @@
52
52
  "null"
53
53
  ]
54
54
  },
55
+ "techRecord_adrDetails_bodyDeclaration_type": {
56
+ "anyOf": [
57
+ {
58
+ "type": "null"
59
+ },
60
+ {
61
+ "title": "ADR Body Declaration Types",
62
+ "type": "string",
63
+ "tsEnumNames": [
64
+ "PRE_1ST_JULY_2005",
65
+ "ON_OR_AFTER_1ST_JULY_2005",
66
+ "UNKNOWN"
67
+ ],
68
+ "enum": [
69
+ "Pre 1st July 2005",
70
+ "On or after 1st July 2005",
71
+ "Unknown"
72
+ ]
73
+ }
74
+ ]
75
+ },
55
76
  "techRecord_adrDetails_vehicleDetails_usedOnInternationalJourneys": {
56
77
  "anyOf": [
57
78
  {
@@ -1354,6 +1375,33 @@
1354
1375
  ]
1355
1376
  }
1356
1377
  },
1378
+ {
1379
+ "if": {
1380
+ "properties": {
1381
+ "techRecord_adrDetails_permittedDangerousGoods": {
1382
+ "type": "array",
1383
+ "contains": {
1384
+ "type": "string",
1385
+ "not": {
1386
+ "enum": [
1387
+ "Explosives (type 3)"
1388
+ ]
1389
+ }
1390
+ }
1391
+ }
1392
+ },
1393
+ "required": [
1394
+ "techRecord_adrDetails_permittedDangerousGoods"
1395
+ ]
1396
+ },
1397
+ "then": {
1398
+ "not": {
1399
+ "required": [
1400
+ "techRecord_adrDetails_bodyDeclaration_type"
1401
+ ]
1402
+ }
1403
+ }
1404
+ },
1357
1405
  {
1358
1406
  "if": {
1359
1407
  "properties": {
@@ -56,6 +56,27 @@
56
56
  "null"
57
57
  ]
58
58
  },
59
+ "techRecord_adrDetails_bodyDeclaration_type": {
60
+ "anyOf": [
61
+ {
62
+ "type": "null"
63
+ },
64
+ {
65
+ "title": "ADR Body Declaration Types",
66
+ "type": "string",
67
+ "tsEnumNames": [
68
+ "PRE_1ST_JULY_2005",
69
+ "ON_OR_AFTER_1ST_JULY_2005",
70
+ "UNKNOWN"
71
+ ],
72
+ "enum": [
73
+ "Pre 1st July 2005",
74
+ "On or after 1st July 2005",
75
+ "Unknown"
76
+ ]
77
+ }
78
+ ]
79
+ },
59
80
  "techRecord_adrDetails_vehicleDetails_usedOnInternationalJourneys": {
60
81
  "anyOf": [
61
82
  {
@@ -1345,6 +1366,33 @@
1345
1366
  ]
1346
1367
  }
1347
1368
  },
1369
+ {
1370
+ "if": {
1371
+ "properties": {
1372
+ "techRecord_adrDetails_permittedDangerousGoods": {
1373
+ "type": "array",
1374
+ "contains": {
1375
+ "type": "string",
1376
+ "not": {
1377
+ "enum": [
1378
+ "Explosives (type 3)"
1379
+ ]
1380
+ }
1381
+ }
1382
+ }
1383
+ },
1384
+ "required": [
1385
+ "techRecord_adrDetails_permittedDangerousGoods"
1386
+ ]
1387
+ },
1388
+ "then": {
1389
+ "not": {
1390
+ "required": [
1391
+ "techRecord_adrDetails_bodyDeclaration_type"
1392
+ ]
1393
+ }
1394
+ }
1395
+ },
1348
1396
  {
1349
1397
  "if": {
1350
1398
  "properties": {
@@ -87,6 +87,27 @@
87
87
  "null"
88
88
  ]
89
89
  },
90
+ "techRecord_adrDetails_bodyDeclaration_type": {
91
+ "anyOf": [
92
+ {
93
+ "type": "null"
94
+ },
95
+ {
96
+ "title": "ADR Body Declaration Types",
97
+ "type": "string",
98
+ "tsEnumNames": [
99
+ "PRE_1ST_JULY_2005",
100
+ "ON_OR_AFTER_1ST_JULY_2005",
101
+ "UNKNOWN"
102
+ ],
103
+ "enum": [
104
+ "Pre 1st July 2005",
105
+ "On or after 1st July 2005",
106
+ "Unknown"
107
+ ]
108
+ }
109
+ ]
110
+ },
90
111
  "techRecord_adrDetails_vehicleDetails_usedOnInternationalJourneys": {
91
112
  "anyOf": [
92
113
  {
@@ -800,6 +821,33 @@
800
821
  ]
801
822
  }
802
823
  },
824
+ {
825
+ "if": {
826
+ "properties": {
827
+ "techRecord_adrDetails_permittedDangerousGoods": {
828
+ "type": "array",
829
+ "contains": {
830
+ "type": "string",
831
+ "not": {
832
+ "enum": [
833
+ "Explosives (type 3)"
834
+ ]
835
+ }
836
+ }
837
+ }
838
+ },
839
+ "required": [
840
+ "techRecord_adrDetails_permittedDangerousGoods"
841
+ ]
842
+ },
843
+ "then": {
844
+ "not": {
845
+ "required": [
846
+ "techRecord_adrDetails_bodyDeclaration_type"
847
+ ]
848
+ }
849
+ }
850
+ },
803
851
  {
804
852
  "if": {
805
853
  "properties": {
@@ -84,6 +84,27 @@
84
84
  "null"
85
85
  ]
86
86
  },
87
+ "techRecord_adrDetails_bodyDeclaration_type": {
88
+ "anyOf": [
89
+ {
90
+ "type": "null"
91
+ },
92
+ {
93
+ "title": "ADR Body Declaration Types",
94
+ "type": "string",
95
+ "tsEnumNames": [
96
+ "PRE_1ST_JULY_2005",
97
+ "ON_OR_AFTER_1ST_JULY_2005",
98
+ "UNKNOWN"
99
+ ],
100
+ "enum": [
101
+ "Pre 1st July 2005",
102
+ "On or after 1st July 2005",
103
+ "Unknown"
104
+ ]
105
+ }
106
+ ]
107
+ },
87
108
  "techRecord_adrDetails_vehicleDetails_usedOnInternationalJourneys": {
88
109
  "anyOf": [
89
110
  {
@@ -807,6 +828,33 @@
807
828
  ]
808
829
  }
809
830
  },
831
+ {
832
+ "if": {
833
+ "properties": {
834
+ "techRecord_adrDetails_permittedDangerousGoods": {
835
+ "type": "array",
836
+ "contains": {
837
+ "type": "string",
838
+ "not": {
839
+ "enum": [
840
+ "Explosives (type 3)"
841
+ ]
842
+ }
843
+ }
844
+ }
845
+ },
846
+ "required": [
847
+ "techRecord_adrDetails_permittedDangerousGoods"
848
+ ]
849
+ },
850
+ "then": {
851
+ "not": {
852
+ "required": [
853
+ "techRecord_adrDetails_bodyDeclaration_type"
854
+ ]
855
+ }
856
+ }
857
+ },
810
858
  {
811
859
  "if": {
812
860
  "properties": {
@@ -64,6 +64,27 @@
64
64
  "null"
65
65
  ]
66
66
  },
67
+ "techRecord_adrDetails_bodyDeclaration_type": {
68
+ "anyOf": [
69
+ {
70
+ "type": "null"
71
+ },
72
+ {
73
+ "title": "ADR Body Declaration Types",
74
+ "type": "string",
75
+ "tsEnumNames": [
76
+ "PRE_1ST_JULY_2005",
77
+ "ON_OR_AFTER_1ST_JULY_2005",
78
+ "UNKNOWN"
79
+ ],
80
+ "enum": [
81
+ "Pre 1st July 2005",
82
+ "On or after 1st July 2005",
83
+ "Unknown"
84
+ ]
85
+ }
86
+ ]
87
+ },
67
88
  "techRecord_adrDetails_vehicleDetails_usedOnInternationalJourneys": {
68
89
  "anyOf": [
69
90
  {
@@ -1567,6 +1588,33 @@
1567
1588
  ]
1568
1589
  }
1569
1590
  },
1591
+ {
1592
+ "if": {
1593
+ "properties": {
1594
+ "techRecord_adrDetails_permittedDangerousGoods": {
1595
+ "type": "array",
1596
+ "contains": {
1597
+ "type": "string",
1598
+ "not": {
1599
+ "enum": [
1600
+ "Explosives (type 3)"
1601
+ ]
1602
+ }
1603
+ }
1604
+ }
1605
+ },
1606
+ "required": [
1607
+ "techRecord_adrDetails_permittedDangerousGoods"
1608
+ ]
1609
+ },
1610
+ "then": {
1611
+ "not": {
1612
+ "required": [
1613
+ "techRecord_adrDetails_bodyDeclaration_type"
1614
+ ]
1615
+ }
1616
+ }
1617
+ },
1570
1618
  {
1571
1619
  "if": {
1572
1620
  "properties": {
@@ -44,6 +44,27 @@
44
44
  "null"
45
45
  ]
46
46
  },
47
+ "techRecord_adrDetails_bodyDeclaration_type": {
48
+ "anyOf": [
49
+ {
50
+ "type": "null"
51
+ },
52
+ {
53
+ "title": "ADR Body Declaration Types",
54
+ "type": "string",
55
+ "tsEnumNames": [
56
+ "PRE_1ST_JULY_2005",
57
+ "ON_OR_AFTER_1ST_JULY_2005",
58
+ "UNKNOWN"
59
+ ],
60
+ "enum": [
61
+ "Pre 1st July 2005",
62
+ "On or after 1st July 2005",
63
+ "Unknown"
64
+ ]
65
+ }
66
+ ]
67
+ },
47
68
  "techRecord_adrDetails_vehicleDetails_usedOnInternationalJourneys": {
48
69
  "anyOf": [
49
70
  {
@@ -1642,6 +1663,33 @@
1642
1663
  ]
1643
1664
  }
1644
1665
  },
1666
+ {
1667
+ "if": {
1668
+ "properties": {
1669
+ "techRecord_adrDetails_permittedDangerousGoods": {
1670
+ "type": "array",
1671
+ "contains": {
1672
+ "type": "string",
1673
+ "not": {
1674
+ "enum": [
1675
+ "Explosives (type 3)"
1676
+ ]
1677
+ }
1678
+ }
1679
+ }
1680
+ },
1681
+ "required": [
1682
+ "techRecord_adrDetails_permittedDangerousGoods"
1683
+ ]
1684
+ },
1685
+ "then": {
1686
+ "not": {
1687
+ "required": [
1688
+ "techRecord_adrDetails_bodyDeclaration_type"
1689
+ ]
1690
+ }
1691
+ }
1692
+ },
1645
1693
  {
1646
1694
  "if": {
1647
1695
  "properties": {
@@ -46,6 +46,27 @@
46
46
  "null"
47
47
  ]
48
48
  },
49
+ "techRecord_adrDetails_bodyDeclaration_type": {
50
+ "anyOf": [
51
+ {
52
+ "type": "null"
53
+ },
54
+ {
55
+ "title": "ADR Body Declaration Types",
56
+ "type": "string",
57
+ "tsEnumNames": [
58
+ "PRE_1ST_JULY_2005",
59
+ "ON_OR_AFTER_1ST_JULY_2005",
60
+ "UNKNOWN"
61
+ ],
62
+ "enum": [
63
+ "Pre 1st July 2005",
64
+ "On or after 1st July 2005",
65
+ "Unknown"
66
+ ]
67
+ }
68
+ ]
69
+ },
49
70
  "techRecord_adrDetails_vehicleDetails_usedOnInternationalJourneys": {
50
71
  "anyOf": [
51
72
  {
@@ -1632,6 +1653,33 @@
1632
1653
  ]
1633
1654
  }
1634
1655
  },
1656
+ {
1657
+ "if": {
1658
+ "properties": {
1659
+ "techRecord_adrDetails_permittedDangerousGoods": {
1660
+ "type": "array",
1661
+ "contains": {
1662
+ "type": "string",
1663
+ "not": {
1664
+ "enum": [
1665
+ "Explosives (type 3)"
1666
+ ]
1667
+ }
1668
+ }
1669
+ }
1670
+ },
1671
+ "required": [
1672
+ "techRecord_adrDetails_permittedDangerousGoods"
1673
+ ]
1674
+ },
1675
+ "then": {
1676
+ "not": {
1677
+ "required": [
1678
+ "techRecord_adrDetails_bodyDeclaration_type"
1679
+ ]
1680
+ }
1681
+ }
1682
+ },
1635
1683
  {
1636
1684
  "if": {
1637
1685
  "properties": {