@dvsa/cvs-type-definitions 7.4.0 → 7.5.1

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 (39) hide show
  1. package/json-schemas/v3/tech-record/enums/adrBodyDeclarationType.enum.json +14 -0
  2. package/json-schemas/v3/tech-record/get/hgv/complete/index.json +66 -0
  3. package/json-schemas/v3/tech-record/get/hgv/skeleton/index.json +66 -0
  4. package/json-schemas/v3/tech-record/get/hgv/testable/index.json +66 -0
  5. package/json-schemas/v3/tech-record/get/lgv/complete/index.json +66 -0
  6. package/json-schemas/v3/tech-record/get/lgv/skeleton/index.json +66 -0
  7. package/json-schemas/v3/tech-record/get/trl/complete/index.json +66 -0
  8. package/json-schemas/v3/tech-record/get/trl/skeleton/index.json +66 -0
  9. package/json-schemas/v3/tech-record/get/trl/testable/index.json +66 -0
  10. package/json-schemas/v3/tech-record/put/hgv/complete/index.json +66 -0
  11. package/json-schemas/v3/tech-record/put/hgv/skeleton/index.json +66 -0
  12. package/json-schemas/v3/tech-record/put/hgv/testable/index.json +66 -0
  13. package/json-schemas/v3/tech-record/put/lgv/complete/index.json +66 -0
  14. package/json-schemas/v3/tech-record/put/lgv/skeleton/index.json +66 -0
  15. package/json-schemas/v3/tech-record/put/trl/complete/index.json +66 -0
  16. package/json-schemas/v3/tech-record/put/trl/skeleton/index.json +66 -0
  17. package/json-schemas/v3/tech-record/put/trl/testable/index.json +66 -0
  18. package/package.json +1 -1
  19. package/schemas.d.ts +1 -1
  20. package/schemas.js +1 -0
  21. package/types/v3/tech-record/enums/adrBodyDeclarationType.enum.d.ts +10 -0
  22. package/types/v3/tech-record/enums/adrBodyDeclarationType.enum.js +15 -0
  23. package/types/v3/tech-record/enums/adrBodyDeclarationType.enum.ts +12 -0
  24. package/types/v3/tech-record/get/hgv/complete/index.d.ts +6 -0
  25. package/types/v3/tech-record/get/hgv/skeleton/index.d.ts +6 -0
  26. package/types/v3/tech-record/get/hgv/testable/index.d.ts +6 -0
  27. package/types/v3/tech-record/get/lgv/complete/index.d.ts +6 -0
  28. package/types/v3/tech-record/get/lgv/skeleton/index.d.ts +6 -0
  29. package/types/v3/tech-record/get/trl/complete/index.d.ts +6 -0
  30. package/types/v3/tech-record/get/trl/skeleton/index.d.ts +6 -0
  31. package/types/v3/tech-record/get/trl/testable/index.d.ts +6 -0
  32. package/types/v3/tech-record/put/hgv/complete/index.d.ts +6 -0
  33. package/types/v3/tech-record/put/hgv/skeleton/index.d.ts +6 -0
  34. package/types/v3/tech-record/put/hgv/testable/index.d.ts +6 -0
  35. package/types/v3/tech-record/put/lgv/complete/index.d.ts +6 -0
  36. package/types/v3/tech-record/put/lgv/skeleton/index.d.ts +6 -0
  37. package/types/v3/tech-record/put/trl/complete/index.d.ts +6 -0
  38. package/types/v3/tech-record/put/trl/skeleton/index.d.ts +6 -0
  39. package/types/v3/tech-record/put/trl/testable/index.d.ts +6 -0
@@ -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,51 @@
1273
1294
  ]
1274
1295
  }
1275
1296
  },
1297
+ {
1298
+ "if": {
1299
+ "properties": {
1300
+ "techRecord_adrDetails_permittedDangerousGoods": {
1301
+ "type": "array",
1302
+ "contains": {
1303
+ "const": "Explosives (type 3)"
1304
+ }
1305
+ }
1306
+ },
1307
+ "required": [
1308
+ "techRecord_adrDetails_permittedDangerousGoods"
1309
+ ]
1310
+ },
1311
+ "else": {
1312
+ "if": {
1313
+ "properties": {
1314
+ "techRecord_adrDetails_permittedDangerousGoods": {
1315
+ "type": "array",
1316
+ "contains": {
1317
+ "enum": [
1318
+ "FP <61 (FL)",
1319
+ "AT",
1320
+ "Class 5.1 Hydrogen Peroxide (OX)",
1321
+ "MEMU",
1322
+ "Carbon Disulphide",
1323
+ "Hydrogen",
1324
+ "Explosives (type 2)"
1325
+ ]
1326
+ }
1327
+ }
1328
+ },
1329
+ "required": [
1330
+ "techRecord_adrDetails_permittedDangerousGoods"
1331
+ ]
1332
+ },
1333
+ "then": {
1334
+ "not": {
1335
+ "required": [
1336
+ "techRecord_adrDetails_bodyDeclaration_type"
1337
+ ]
1338
+ }
1339
+ }
1340
+ }
1341
+ },
1276
1342
  {
1277
1343
  "if": {
1278
1344
  "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,51 @@
1354
1375
  ]
1355
1376
  }
1356
1377
  },
1378
+ {
1379
+ "if": {
1380
+ "properties": {
1381
+ "techRecord_adrDetails_permittedDangerousGoods": {
1382
+ "type": "array",
1383
+ "contains": {
1384
+ "const": "Explosives (type 3)"
1385
+ }
1386
+ }
1387
+ },
1388
+ "required": [
1389
+ "techRecord_adrDetails_permittedDangerousGoods"
1390
+ ]
1391
+ },
1392
+ "else": {
1393
+ "if": {
1394
+ "properties": {
1395
+ "techRecord_adrDetails_permittedDangerousGoods": {
1396
+ "type": "array",
1397
+ "contains": {
1398
+ "enum": [
1399
+ "FP <61 (FL)",
1400
+ "AT",
1401
+ "Class 5.1 Hydrogen Peroxide (OX)",
1402
+ "MEMU",
1403
+ "Carbon Disulphide",
1404
+ "Hydrogen",
1405
+ "Explosives (type 2)"
1406
+ ]
1407
+ }
1408
+ }
1409
+ },
1410
+ "required": [
1411
+ "techRecord_adrDetails_permittedDangerousGoods"
1412
+ ]
1413
+ },
1414
+ "then": {
1415
+ "not": {
1416
+ "required": [
1417
+ "techRecord_adrDetails_bodyDeclaration_type"
1418
+ ]
1419
+ }
1420
+ }
1421
+ }
1422
+ },
1357
1423
  {
1358
1424
  "if": {
1359
1425
  "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,51 @@
1345
1366
  ]
1346
1367
  }
1347
1368
  },
1369
+ {
1370
+ "if": {
1371
+ "properties": {
1372
+ "techRecord_adrDetails_permittedDangerousGoods": {
1373
+ "type": "array",
1374
+ "contains": {
1375
+ "const": "Explosives (type 3)"
1376
+ }
1377
+ }
1378
+ },
1379
+ "required": [
1380
+ "techRecord_adrDetails_permittedDangerousGoods"
1381
+ ]
1382
+ },
1383
+ "else": {
1384
+ "if": {
1385
+ "properties": {
1386
+ "techRecord_adrDetails_permittedDangerousGoods": {
1387
+ "type": "array",
1388
+ "contains": {
1389
+ "enum": [
1390
+ "FP <61 (FL)",
1391
+ "AT",
1392
+ "Class 5.1 Hydrogen Peroxide (OX)",
1393
+ "MEMU",
1394
+ "Carbon Disulphide",
1395
+ "Hydrogen",
1396
+ "Explosives (type 2)"
1397
+ ]
1398
+ }
1399
+ }
1400
+ },
1401
+ "required": [
1402
+ "techRecord_adrDetails_permittedDangerousGoods"
1403
+ ]
1404
+ },
1405
+ "then": {
1406
+ "not": {
1407
+ "required": [
1408
+ "techRecord_adrDetails_bodyDeclaration_type"
1409
+ ]
1410
+ }
1411
+ }
1412
+ }
1413
+ },
1348
1414
  {
1349
1415
  "if": {
1350
1416
  "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,51 @@
800
821
  ]
801
822
  }
802
823
  },
824
+ {
825
+ "if": {
826
+ "properties": {
827
+ "techRecord_adrDetails_permittedDangerousGoods": {
828
+ "type": "array",
829
+ "contains": {
830
+ "const": "Explosives (type 3)"
831
+ }
832
+ }
833
+ },
834
+ "required": [
835
+ "techRecord_adrDetails_permittedDangerousGoods"
836
+ ]
837
+ },
838
+ "else": {
839
+ "if": {
840
+ "properties": {
841
+ "techRecord_adrDetails_permittedDangerousGoods": {
842
+ "type": "array",
843
+ "contains": {
844
+ "enum": [
845
+ "FP <61 (FL)",
846
+ "AT",
847
+ "Class 5.1 Hydrogen Peroxide (OX)",
848
+ "MEMU",
849
+ "Carbon Disulphide",
850
+ "Hydrogen",
851
+ "Explosives (type 2)"
852
+ ]
853
+ }
854
+ }
855
+ },
856
+ "required": [
857
+ "techRecord_adrDetails_permittedDangerousGoods"
858
+ ]
859
+ },
860
+ "then": {
861
+ "not": {
862
+ "required": [
863
+ "techRecord_adrDetails_bodyDeclaration_type"
864
+ ]
865
+ }
866
+ }
867
+ }
868
+ },
803
869
  {
804
870
  "if": {
805
871
  "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,51 @@
807
828
  ]
808
829
  }
809
830
  },
831
+ {
832
+ "if": {
833
+ "properties": {
834
+ "techRecord_adrDetails_permittedDangerousGoods": {
835
+ "type": "array",
836
+ "contains": {
837
+ "const": "Explosives (type 3)"
838
+ }
839
+ }
840
+ },
841
+ "required": [
842
+ "techRecord_adrDetails_permittedDangerousGoods"
843
+ ]
844
+ },
845
+ "else": {
846
+ "if": {
847
+ "properties": {
848
+ "techRecord_adrDetails_permittedDangerousGoods": {
849
+ "type": "array",
850
+ "contains": {
851
+ "enum": [
852
+ "FP <61 (FL)",
853
+ "AT",
854
+ "Class 5.1 Hydrogen Peroxide (OX)",
855
+ "MEMU",
856
+ "Carbon Disulphide",
857
+ "Hydrogen",
858
+ "Explosives (type 2)"
859
+ ]
860
+ }
861
+ }
862
+ },
863
+ "required": [
864
+ "techRecord_adrDetails_permittedDangerousGoods"
865
+ ]
866
+ },
867
+ "then": {
868
+ "not": {
869
+ "required": [
870
+ "techRecord_adrDetails_bodyDeclaration_type"
871
+ ]
872
+ }
873
+ }
874
+ }
875
+ },
810
876
  {
811
877
  "if": {
812
878
  "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,51 @@
1567
1588
  ]
1568
1589
  }
1569
1590
  },
1591
+ {
1592
+ "if": {
1593
+ "properties": {
1594
+ "techRecord_adrDetails_permittedDangerousGoods": {
1595
+ "type": "array",
1596
+ "contains": {
1597
+ "const": "Explosives (type 3)"
1598
+ }
1599
+ }
1600
+ },
1601
+ "required": [
1602
+ "techRecord_adrDetails_permittedDangerousGoods"
1603
+ ]
1604
+ },
1605
+ "else": {
1606
+ "if": {
1607
+ "properties": {
1608
+ "techRecord_adrDetails_permittedDangerousGoods": {
1609
+ "type": "array",
1610
+ "contains": {
1611
+ "enum": [
1612
+ "FP <61 (FL)",
1613
+ "AT",
1614
+ "Class 5.1 Hydrogen Peroxide (OX)",
1615
+ "MEMU",
1616
+ "Carbon Disulphide",
1617
+ "Hydrogen",
1618
+ "Explosives (type 2)"
1619
+ ]
1620
+ }
1621
+ }
1622
+ },
1623
+ "required": [
1624
+ "techRecord_adrDetails_permittedDangerousGoods"
1625
+ ]
1626
+ },
1627
+ "then": {
1628
+ "not": {
1629
+ "required": [
1630
+ "techRecord_adrDetails_bodyDeclaration_type"
1631
+ ]
1632
+ }
1633
+ }
1634
+ }
1635
+ },
1570
1636
  {
1571
1637
  "if": {
1572
1638
  "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,51 @@
1642
1663
  ]
1643
1664
  }
1644
1665
  },
1666
+ {
1667
+ "if": {
1668
+ "properties": {
1669
+ "techRecord_adrDetails_permittedDangerousGoods": {
1670
+ "type": "array",
1671
+ "contains": {
1672
+ "const": "Explosives (type 3)"
1673
+ }
1674
+ }
1675
+ },
1676
+ "required": [
1677
+ "techRecord_adrDetails_permittedDangerousGoods"
1678
+ ]
1679
+ },
1680
+ "else": {
1681
+ "if": {
1682
+ "properties": {
1683
+ "techRecord_adrDetails_permittedDangerousGoods": {
1684
+ "type": "array",
1685
+ "contains": {
1686
+ "enum": [
1687
+ "FP <61 (FL)",
1688
+ "AT",
1689
+ "Class 5.1 Hydrogen Peroxide (OX)",
1690
+ "MEMU",
1691
+ "Carbon Disulphide",
1692
+ "Hydrogen",
1693
+ "Explosives (type 2)"
1694
+ ]
1695
+ }
1696
+ }
1697
+ },
1698
+ "required": [
1699
+ "techRecord_adrDetails_permittedDangerousGoods"
1700
+ ]
1701
+ },
1702
+ "then": {
1703
+ "not": {
1704
+ "required": [
1705
+ "techRecord_adrDetails_bodyDeclaration_type"
1706
+ ]
1707
+ }
1708
+ }
1709
+ }
1710
+ },
1645
1711
  {
1646
1712
  "if": {
1647
1713
  "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,51 @@
1632
1653
  ]
1633
1654
  }
1634
1655
  },
1656
+ {
1657
+ "if": {
1658
+ "properties": {
1659
+ "techRecord_adrDetails_permittedDangerousGoods": {
1660
+ "type": "array",
1661
+ "contains": {
1662
+ "const": "Explosives (type 3)"
1663
+ }
1664
+ }
1665
+ },
1666
+ "required": [
1667
+ "techRecord_adrDetails_permittedDangerousGoods"
1668
+ ]
1669
+ },
1670
+ "else": {
1671
+ "if": {
1672
+ "properties": {
1673
+ "techRecord_adrDetails_permittedDangerousGoods": {
1674
+ "type": "array",
1675
+ "contains": {
1676
+ "enum": [
1677
+ "FP <61 (FL)",
1678
+ "AT",
1679
+ "Class 5.1 Hydrogen Peroxide (OX)",
1680
+ "MEMU",
1681
+ "Carbon Disulphide",
1682
+ "Hydrogen",
1683
+ "Explosives (type 2)"
1684
+ ]
1685
+ }
1686
+ }
1687
+ },
1688
+ "required": [
1689
+ "techRecord_adrDetails_permittedDangerousGoods"
1690
+ ]
1691
+ },
1692
+ "then": {
1693
+ "not": {
1694
+ "required": [
1695
+ "techRecord_adrDetails_bodyDeclaration_type"
1696
+ ]
1697
+ }
1698
+ }
1699
+ }
1700
+ },
1635
1701
  {
1636
1702
  "if": {
1637
1703
  "properties": {