@dvsa/cvs-type-definitions 8.1.0 → 9.0.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/enums/euVehicleCategory.enum.json +44 -0
- package/json-schemas/enums/vehicleSize.enum.json +12 -0
- package/json-schemas/enums/vehicleSubclass.enum.json +26 -0
- package/json-schemas/enums/vehicleType.enum.json +20 -0
- package/json-schemas/required-standards/defects/get/index.json +1 -72
- package/json-schemas/test-type/enums/testTypeClassification.enum.json +14 -0
- package/json-schemas/test-type/get/index.json +572 -0
- package/json-schemas/test-type/nextTestTypesOrCategory.json +416 -0
- package/json-schemas/test-type/testCode.json +266 -0
- package/json-schemas/v1/defect-category-reference-data/index.json +2 -192
- package/json-schemas/v1/tech-record/index.json +1 -19
- package/json-schemas/v1/test/index.json +438 -21
- package/json-schemas/v1/test-result/index.json +1128 -1
- package/json-schemas/v1/{test-type → test-result-test-type}/index.json +1 -1
- package/json-schemas/v1/vehicle/index.json +438 -21
- package/json-schemas/v1/vehicle-tech-record/index.json +1 -19
- package/json-schemas/v1/visit/index.json +438 -21
- package/json-schemas/v3/tech-record/get/psv/complete/index.json +1 -10
- package/json-schemas/v3/tech-record/get/psv/skeleton/index.json +1 -10
- package/json-schemas/v3/tech-record/get/psv/testable/index.json +1 -10
- package/json-schemas/v3/tech-record/put/psv/complete/index.json +1 -10
- package/json-schemas/v3/tech-record/put/psv/skeleton/index.json +1 -10
- package/json-schemas/v3/tech-record/put/psv/testable/index.json +1 -10
- package/package.json +2 -1
- package/schemas.d.ts +1 -1
- package/schemas.js +10 -2
- package/types/enums/euVehicleCategory.enum.d.ts +25 -0
- package/types/enums/euVehicleCategory.enum.js +30 -0
- package/types/enums/euVehicleCategory.enum.ts +27 -0
- package/types/enums/vehicleSize.enum.d.ts +9 -0
- package/types/enums/vehicleSize.enum.js +14 -0
- package/types/enums/vehicleSize.enum.ts +11 -0
- package/types/enums/vehicleSubclass.enum.d.ts +16 -0
- package/types/enums/vehicleSubclass.enum.js +21 -0
- package/types/enums/vehicleSubclass.enum.ts +18 -0
- package/types/enums/vehicleType.enum.d.ts +13 -0
- package/types/enums/vehicleType.enum.js +18 -0
- package/types/enums/vehicleType.enum.ts +15 -0
- package/types/test-type/enums/testTypeClassification.enum.d.ts +10 -0
- package/types/test-type/enums/testTypeClassification.enum.js +15 -0
- package/types/test-type/enums/testTypeClassification.enum.ts +12 -0
- package/types/test-type/get/index.d.ts +128 -0
- package/types/test-type/nextTestTypesOrCategory.d.ts +124 -0
- package/types/test-type/testCode.d.ts +79 -0
- package/types/v1/test/index.d.ts +3 -3
- package/types/v1/test-result/index.d.ts +2 -2
- package/types/v1/{test-type → test-result-test-type}/index.d.ts +1 -1
- package/types/v1/vehicle/index.d.ts +3 -3
- package/types/v1/visit/index.d.ts +3 -3
- /package/json-schemas/{v3/tech-record/enums → enums}/vehicleConfiguration.enum.json +0 -0
- /package/types/{v3/tech-record/enums → enums}/vehicleConfiguration.enum.d.ts +0 -0
- /package/types/{v3/tech-record/enums → enums}/vehicleConfiguration.enum.js +0 -0
- /package/types/{v3/tech-record/enums → enums}/vehicleConfiguration.enum.ts +0 -0
|
@@ -324,25 +324,7 @@
|
|
|
324
324
|
"additionalProperties": false
|
|
325
325
|
},
|
|
326
326
|
"brakeForceWheelsUpToHalfLocked": {
|
|
327
|
-
"
|
|
328
|
-
"type": "object",
|
|
329
|
-
"properties": {
|
|
330
|
-
"serviceBrakeForce": {
|
|
331
|
-
"type": "integer"
|
|
332
|
-
},
|
|
333
|
-
"secondaryBrakeForce": {
|
|
334
|
-
"type": "integer"
|
|
335
|
-
},
|
|
336
|
-
"parkingBrakeForce": {
|
|
337
|
-
"type": "integer"
|
|
338
|
-
}
|
|
339
|
-
},
|
|
340
|
-
"required": [
|
|
341
|
-
"serviceBrakeForce",
|
|
342
|
-
"secondaryBrakeForce",
|
|
343
|
-
"parkingBrakeForce"
|
|
344
|
-
],
|
|
345
|
-
"additionalProperties": false
|
|
327
|
+
"$ref": "#/properties/vehicles/items/properties/techRecord/properties/brakes/properties/brakeForceWheelsNotLocked"
|
|
346
328
|
},
|
|
347
329
|
"dtpNumber": {
|
|
348
330
|
"type": "string"
|
|
@@ -680,7 +662,442 @@
|
|
|
680
662
|
},
|
|
681
663
|
"testResultsHistory": {
|
|
682
664
|
"type": "array",
|
|
683
|
-
"items": {
|
|
665
|
+
"items": {
|
|
666
|
+
"title": "Test Result Schema",
|
|
667
|
+
"type": "object",
|
|
668
|
+
"properties": {
|
|
669
|
+
"testResultId": {
|
|
670
|
+
"type": "string"
|
|
671
|
+
},
|
|
672
|
+
"testStationName": {
|
|
673
|
+
"type": [
|
|
674
|
+
"string",
|
|
675
|
+
"null"
|
|
676
|
+
],
|
|
677
|
+
"maxLength": 999
|
|
678
|
+
},
|
|
679
|
+
"testStationPNumber": {
|
|
680
|
+
"type": [
|
|
681
|
+
"string",
|
|
682
|
+
"null"
|
|
683
|
+
],
|
|
684
|
+
"maxLength": 20
|
|
685
|
+
},
|
|
686
|
+
"testStationType": {
|
|
687
|
+
"anyOf": [
|
|
688
|
+
{
|
|
689
|
+
"title": "Test Station Types",
|
|
690
|
+
"type": "string",
|
|
691
|
+
"tsEnumNames": [
|
|
692
|
+
"ATF",
|
|
693
|
+
"GVTS",
|
|
694
|
+
"HQ",
|
|
695
|
+
"POTF",
|
|
696
|
+
"VEF"
|
|
697
|
+
],
|
|
698
|
+
"enum": [
|
|
699
|
+
"atf",
|
|
700
|
+
"gvts",
|
|
701
|
+
"hq",
|
|
702
|
+
"potf",
|
|
703
|
+
"vef"
|
|
704
|
+
]
|
|
705
|
+
}
|
|
706
|
+
]
|
|
707
|
+
},
|
|
708
|
+
"testerName": {
|
|
709
|
+
"type": [
|
|
710
|
+
"string",
|
|
711
|
+
"null"
|
|
712
|
+
],
|
|
713
|
+
"maxLength": 60
|
|
714
|
+
},
|
|
715
|
+
"testerStaffId": {
|
|
716
|
+
"type": "string",
|
|
717
|
+
"maxLength": 36
|
|
718
|
+
},
|
|
719
|
+
"testerEmailAddress": {
|
|
720
|
+
"type": [
|
|
721
|
+
"string",
|
|
722
|
+
"null"
|
|
723
|
+
],
|
|
724
|
+
"maxLength": 60
|
|
725
|
+
},
|
|
726
|
+
"testStartTimestamp": {
|
|
727
|
+
"type": "string"
|
|
728
|
+
},
|
|
729
|
+
"testEndTimestamp": {
|
|
730
|
+
"type": "string"
|
|
731
|
+
},
|
|
732
|
+
"testStatus": {
|
|
733
|
+
"anyOf": [
|
|
734
|
+
{
|
|
735
|
+
"title": "Test Status",
|
|
736
|
+
"type": "string",
|
|
737
|
+
"tsEnumNames": [
|
|
738
|
+
"SUBMITTED",
|
|
739
|
+
"CANCELLED"
|
|
740
|
+
],
|
|
741
|
+
"enum": [
|
|
742
|
+
"submitted",
|
|
743
|
+
"cancelled"
|
|
744
|
+
]
|
|
745
|
+
}
|
|
746
|
+
]
|
|
747
|
+
},
|
|
748
|
+
"reasonForCancellation": {
|
|
749
|
+
"type": [
|
|
750
|
+
"string",
|
|
751
|
+
"null"
|
|
752
|
+
]
|
|
753
|
+
},
|
|
754
|
+
"systemNumber": {
|
|
755
|
+
"type": "string"
|
|
756
|
+
},
|
|
757
|
+
"vrm": {
|
|
758
|
+
"type": "string",
|
|
759
|
+
"maxLength": 9
|
|
760
|
+
},
|
|
761
|
+
"trailerId": {
|
|
762
|
+
"type": "string"
|
|
763
|
+
},
|
|
764
|
+
"vin": {
|
|
765
|
+
"type": "string",
|
|
766
|
+
"maxLength": 21
|
|
767
|
+
},
|
|
768
|
+
"vehicleClass": {
|
|
769
|
+
"$ref": "#/properties/vehicles/items/properties/techRecord/properties/vehicleClass"
|
|
770
|
+
},
|
|
771
|
+
"vehicleSubclass": {
|
|
772
|
+
"type": "array",
|
|
773
|
+
"items": {
|
|
774
|
+
"type": "string"
|
|
775
|
+
}
|
|
776
|
+
},
|
|
777
|
+
"vehicleType": {
|
|
778
|
+
"anyOf": [
|
|
779
|
+
{
|
|
780
|
+
"title": "Vehicle Type",
|
|
781
|
+
"type": "string",
|
|
782
|
+
"enum": [
|
|
783
|
+
"psv",
|
|
784
|
+
"trl",
|
|
785
|
+
"hgv",
|
|
786
|
+
"car",
|
|
787
|
+
"lgv",
|
|
788
|
+
"motorcycle"
|
|
789
|
+
]
|
|
790
|
+
}
|
|
791
|
+
]
|
|
792
|
+
},
|
|
793
|
+
"vehicleConfiguration": {
|
|
794
|
+
"type": "string"
|
|
795
|
+
},
|
|
796
|
+
"odometerReading": {
|
|
797
|
+
"type": [
|
|
798
|
+
"number",
|
|
799
|
+
"null"
|
|
800
|
+
]
|
|
801
|
+
},
|
|
802
|
+
"odometerReadingUnits": {
|
|
803
|
+
"anyOf": [
|
|
804
|
+
{
|
|
805
|
+
"title": "Odometer Reading Units",
|
|
806
|
+
"type": "string",
|
|
807
|
+
"tsEnumNames": [
|
|
808
|
+
"KILOMETRES",
|
|
809
|
+
"MILES"
|
|
810
|
+
],
|
|
811
|
+
"enum": [
|
|
812
|
+
"kilometres",
|
|
813
|
+
"miles"
|
|
814
|
+
]
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
"type": "null"
|
|
818
|
+
}
|
|
819
|
+
]
|
|
820
|
+
},
|
|
821
|
+
"preparerId": {
|
|
822
|
+
"type": [
|
|
823
|
+
"string",
|
|
824
|
+
"null"
|
|
825
|
+
]
|
|
826
|
+
},
|
|
827
|
+
"preparerName": {
|
|
828
|
+
"type": [
|
|
829
|
+
"string",
|
|
830
|
+
"null"
|
|
831
|
+
]
|
|
832
|
+
},
|
|
833
|
+
"euVehicleCategory": {
|
|
834
|
+
"anyOf": [
|
|
835
|
+
{
|
|
836
|
+
"title": "EU vehicle category",
|
|
837
|
+
"type": "string",
|
|
838
|
+
"tsEnumNames": [
|
|
839
|
+
"M1",
|
|
840
|
+
"M2",
|
|
841
|
+
"M3",
|
|
842
|
+
"N1",
|
|
843
|
+
"N2",
|
|
844
|
+
"N3",
|
|
845
|
+
"O1",
|
|
846
|
+
"O2",
|
|
847
|
+
"O3",
|
|
848
|
+
"O4",
|
|
849
|
+
"L1E_A",
|
|
850
|
+
"l1E",
|
|
851
|
+
"L2e",
|
|
852
|
+
"L3E",
|
|
853
|
+
"L4E",
|
|
854
|
+
"L5E",
|
|
855
|
+
"L6E",
|
|
856
|
+
"L7E"
|
|
857
|
+
],
|
|
858
|
+
"enum": [
|
|
859
|
+
"m1",
|
|
860
|
+
"m2",
|
|
861
|
+
"m3",
|
|
862
|
+
"n1",
|
|
863
|
+
"n2",
|
|
864
|
+
"n3",
|
|
865
|
+
"o1",
|
|
866
|
+
"o2",
|
|
867
|
+
"o3",
|
|
868
|
+
"o4",
|
|
869
|
+
"l1e-a",
|
|
870
|
+
"l1e",
|
|
871
|
+
"l2e",
|
|
872
|
+
"l3e",
|
|
873
|
+
"l4e",
|
|
874
|
+
"l5e",
|
|
875
|
+
"l6e",
|
|
876
|
+
"l7e"
|
|
877
|
+
]
|
|
878
|
+
}
|
|
879
|
+
]
|
|
880
|
+
},
|
|
881
|
+
"countryOfRegistration": {
|
|
882
|
+
"type": [
|
|
883
|
+
"string",
|
|
884
|
+
"null"
|
|
885
|
+
]
|
|
886
|
+
},
|
|
887
|
+
"noOfAxles": {
|
|
888
|
+
"type": "integer",
|
|
889
|
+
"maximum": 99
|
|
890
|
+
},
|
|
891
|
+
"numberOfWheelsDriven": {
|
|
892
|
+
"type": [
|
|
893
|
+
"integer",
|
|
894
|
+
"null"
|
|
895
|
+
]
|
|
896
|
+
},
|
|
897
|
+
"vehicleSize": {
|
|
898
|
+
"type": "string"
|
|
899
|
+
},
|
|
900
|
+
"numberOfSeats": {
|
|
901
|
+
"type": "integer"
|
|
902
|
+
},
|
|
903
|
+
"regnDate": {
|
|
904
|
+
"type": [
|
|
905
|
+
"string",
|
|
906
|
+
"null"
|
|
907
|
+
]
|
|
908
|
+
},
|
|
909
|
+
"firstUseDate": {
|
|
910
|
+
"type": [
|
|
911
|
+
"string",
|
|
912
|
+
"null"
|
|
913
|
+
]
|
|
914
|
+
},
|
|
915
|
+
"testTypes": {
|
|
916
|
+
"type": "array",
|
|
917
|
+
"items": {
|
|
918
|
+
"$ref": "#/properties/vehicles/items/properties/testTypes/items"
|
|
919
|
+
}
|
|
920
|
+
},
|
|
921
|
+
"reasonForCreation": {
|
|
922
|
+
"type": "string",
|
|
923
|
+
"maxLength": 100
|
|
924
|
+
},
|
|
925
|
+
"createdAt": {
|
|
926
|
+
"type": [
|
|
927
|
+
"string",
|
|
928
|
+
"null"
|
|
929
|
+
]
|
|
930
|
+
},
|
|
931
|
+
"createdByEmailAddress": {
|
|
932
|
+
"type": "string"
|
|
933
|
+
},
|
|
934
|
+
"createdByName": {
|
|
935
|
+
"type": "string"
|
|
936
|
+
},
|
|
937
|
+
"createdById": {
|
|
938
|
+
"type": "string"
|
|
939
|
+
},
|
|
940
|
+
"lastUpdatedAt": {
|
|
941
|
+
"type": [
|
|
942
|
+
"string",
|
|
943
|
+
"null"
|
|
944
|
+
]
|
|
945
|
+
},
|
|
946
|
+
"lastUpdatedByEmailAddress": {
|
|
947
|
+
"type": "string"
|
|
948
|
+
},
|
|
949
|
+
"lastUpdatedByName": {
|
|
950
|
+
"type": "string"
|
|
951
|
+
},
|
|
952
|
+
"lastUpdatedById": {
|
|
953
|
+
"type": "string"
|
|
954
|
+
},
|
|
955
|
+
"shouldEmailCertificate": {
|
|
956
|
+
"type": "string"
|
|
957
|
+
},
|
|
958
|
+
"contingencyTestNumber": {
|
|
959
|
+
"type": [
|
|
960
|
+
"string",
|
|
961
|
+
"null"
|
|
962
|
+
],
|
|
963
|
+
"maxLength": 8,
|
|
964
|
+
"minLength": 6
|
|
965
|
+
},
|
|
966
|
+
"typeOfTest": {
|
|
967
|
+
"anyOf": [
|
|
968
|
+
{
|
|
969
|
+
"title": "Type of test",
|
|
970
|
+
"type": "string",
|
|
971
|
+
"tsEnumNames": [
|
|
972
|
+
"CONTINGENCY",
|
|
973
|
+
"DESK_BASED",
|
|
974
|
+
"COMPLETION"
|
|
975
|
+
],
|
|
976
|
+
"enum": [
|
|
977
|
+
"contingency",
|
|
978
|
+
"desk-based",
|
|
979
|
+
"completion"
|
|
980
|
+
]
|
|
981
|
+
}
|
|
982
|
+
]
|
|
983
|
+
},
|
|
984
|
+
"source": {
|
|
985
|
+
"anyOf": [
|
|
986
|
+
{
|
|
987
|
+
"title": "Test Sources",
|
|
988
|
+
"type": "string",
|
|
989
|
+
"tsEnumNames": [
|
|
990
|
+
"VTM",
|
|
991
|
+
"VTA"
|
|
992
|
+
],
|
|
993
|
+
"enum": [
|
|
994
|
+
"vtm",
|
|
995
|
+
"vta"
|
|
996
|
+
]
|
|
997
|
+
}
|
|
998
|
+
]
|
|
999
|
+
},
|
|
1000
|
+
"make": {
|
|
1001
|
+
"type": [
|
|
1002
|
+
"string",
|
|
1003
|
+
"null"
|
|
1004
|
+
]
|
|
1005
|
+
},
|
|
1006
|
+
"model": {
|
|
1007
|
+
"type": [
|
|
1008
|
+
"string",
|
|
1009
|
+
"null"
|
|
1010
|
+
]
|
|
1011
|
+
},
|
|
1012
|
+
"bodyType": {
|
|
1013
|
+
"title": "Body Type Schema",
|
|
1014
|
+
"type": "object",
|
|
1015
|
+
"properties": {
|
|
1016
|
+
"code": {
|
|
1017
|
+
"type": [
|
|
1018
|
+
"string",
|
|
1019
|
+
"null"
|
|
1020
|
+
]
|
|
1021
|
+
},
|
|
1022
|
+
"description": {
|
|
1023
|
+
"type": [
|
|
1024
|
+
"string",
|
|
1025
|
+
"null"
|
|
1026
|
+
]
|
|
1027
|
+
}
|
|
1028
|
+
},
|
|
1029
|
+
"additionalProperties": false
|
|
1030
|
+
},
|
|
1031
|
+
"vehicleId": {
|
|
1032
|
+
"type": [
|
|
1033
|
+
"string",
|
|
1034
|
+
"null"
|
|
1035
|
+
]
|
|
1036
|
+
},
|
|
1037
|
+
"testHistory": {
|
|
1038
|
+
"type": "array",
|
|
1039
|
+
"items": {
|
|
1040
|
+
"$ref": "#/properties/vehicles/items/properties/testResultsHistory/items"
|
|
1041
|
+
}
|
|
1042
|
+
},
|
|
1043
|
+
"testVersion": {
|
|
1044
|
+
"type": "string"
|
|
1045
|
+
},
|
|
1046
|
+
"deletionFlag": {
|
|
1047
|
+
"type": "boolean"
|
|
1048
|
+
},
|
|
1049
|
+
"recalls": {
|
|
1050
|
+
"anyOf": [
|
|
1051
|
+
{
|
|
1052
|
+
"title": "Recalls Schema",
|
|
1053
|
+
"type": "object",
|
|
1054
|
+
"properties": {
|
|
1055
|
+
"hasRecall": {
|
|
1056
|
+
"type": "boolean"
|
|
1057
|
+
},
|
|
1058
|
+
"manufacturer": {
|
|
1059
|
+
"type": [
|
|
1060
|
+
"string",
|
|
1061
|
+
"null"
|
|
1062
|
+
]
|
|
1063
|
+
}
|
|
1064
|
+
},
|
|
1065
|
+
"additionalProperties": false,
|
|
1066
|
+
"required": [
|
|
1067
|
+
"hasRecall",
|
|
1068
|
+
"manufacturer"
|
|
1069
|
+
]
|
|
1070
|
+
}
|
|
1071
|
+
]
|
|
1072
|
+
}
|
|
1073
|
+
},
|
|
1074
|
+
"additionalProperties": false,
|
|
1075
|
+
"required": [
|
|
1076
|
+
"testResultId",
|
|
1077
|
+
"testStationName",
|
|
1078
|
+
"testStationPNumber",
|
|
1079
|
+
"testStationType",
|
|
1080
|
+
"testerName",
|
|
1081
|
+
"testerStaffId",
|
|
1082
|
+
"testerEmailAddress",
|
|
1083
|
+
"testStartTimestamp",
|
|
1084
|
+
"testEndTimestamp",
|
|
1085
|
+
"testStatus",
|
|
1086
|
+
"reasonForCancellation",
|
|
1087
|
+
"systemNumber",
|
|
1088
|
+
"vin",
|
|
1089
|
+
"vehicleClass",
|
|
1090
|
+
"vehicleType",
|
|
1091
|
+
"vehicleConfiguration",
|
|
1092
|
+
"preparerId",
|
|
1093
|
+
"preparerName",
|
|
1094
|
+
"euVehicleCategory",
|
|
1095
|
+
"countryOfRegistration",
|
|
1096
|
+
"noOfAxles",
|
|
1097
|
+
"numberOfWheelsDriven",
|
|
1098
|
+
"testTypes"
|
|
1099
|
+
]
|
|
1100
|
+
}
|
|
684
1101
|
},
|
|
685
1102
|
"countryOfRegistration": {
|
|
686
1103
|
"type": "string"
|
|
@@ -703,7 +1120,7 @@
|
|
|
703
1120
|
"testTypes": {
|
|
704
1121
|
"type": "array",
|
|
705
1122
|
"items": {
|
|
706
|
-
"title": "Test Type Schema",
|
|
1123
|
+
"title": "Test Result Test Type Schema",
|
|
707
1124
|
"type": "object",
|
|
708
1125
|
"properties": {
|
|
709
1126
|
"testTypeName": {
|