@dvsa/cvs-type-definitions 10.0.0 → 12.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/v1/dynamics-test-station/index.json +20 -5
- package/json-schemas/v1/media/failReason.json +21 -0
- package/json-schemas/v1/media/image.json +17 -0
- package/json-schemas/v1/media/index.json +62 -0
- package/json-schemas/v1/media/video.json +17 -0
- package/json-schemas/v1/test/index.json +65 -0
- package/json-schemas/v1/test-result/index.json +65 -0
- package/json-schemas/v1/vehicle/index.json +65 -0
- package/json-schemas/v1/visit/index.json +65 -0
- package/package.json +1 -1
- package/schemas.d.ts +1 -1
- package/schemas.js +4 -0
- package/types/v1/dynamics-test-station/index.d.ts +5 -5
- package/types/v1/media/failReason.d.ts +12 -0
- package/types/v1/media/image.d.ts +11 -0
- package/types/v1/media/index.d.ts +22 -0
- package/types/v1/media/video.d.ts +11 -0
- package/types/v1/test/index.d.ts +15 -0
- package/types/v1/test-result/index.d.ts +15 -0
- package/types/v1/vehicle/index.d.ts +15 -0
- package/types/v1/visit/index.d.ts +15 -0
|
@@ -15,10 +15,16 @@
|
|
|
15
15
|
"type": "string"
|
|
16
16
|
},
|
|
17
17
|
"testStationAccessNotes": {
|
|
18
|
-
"type":
|
|
18
|
+
"type": [
|
|
19
|
+
"string",
|
|
20
|
+
"null"
|
|
21
|
+
]
|
|
19
22
|
},
|
|
20
23
|
"testStationGeneralNotes": {
|
|
21
|
-
"type":
|
|
24
|
+
"type": [
|
|
25
|
+
"string",
|
|
26
|
+
"null"
|
|
27
|
+
]
|
|
22
28
|
},
|
|
23
29
|
"testStationTown": {
|
|
24
30
|
"type": "string"
|
|
@@ -30,10 +36,16 @@
|
|
|
30
36
|
"type": "string"
|
|
31
37
|
},
|
|
32
38
|
"testStationLongitude": {
|
|
33
|
-
"type":
|
|
39
|
+
"type": [
|
|
40
|
+
"number",
|
|
41
|
+
"null"
|
|
42
|
+
]
|
|
34
43
|
},
|
|
35
44
|
"testStationLatitude": {
|
|
36
|
-
"type":
|
|
45
|
+
"type": [
|
|
46
|
+
"number",
|
|
47
|
+
"null"
|
|
48
|
+
]
|
|
37
49
|
},
|
|
38
50
|
"testStationType": {
|
|
39
51
|
"type": "string"
|
|
@@ -48,7 +60,10 @@
|
|
|
48
60
|
"type": "string"
|
|
49
61
|
},
|
|
50
62
|
"testStationCountry": {
|
|
51
|
-
"type":
|
|
63
|
+
"type": [
|
|
64
|
+
"string",
|
|
65
|
+
"null"
|
|
66
|
+
]
|
|
52
67
|
},
|
|
53
68
|
"testStationStatus": {
|
|
54
69
|
"type": "string"
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Fail Reason Schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"type": {
|
|
6
|
+
"const": "failReason"
|
|
7
|
+
},
|
|
8
|
+
"path": {
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
"reason": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"additionalProperties": false,
|
|
16
|
+
"required": [
|
|
17
|
+
"type",
|
|
18
|
+
"path",
|
|
19
|
+
"reason"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Media Schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"additionalProperties": false,
|
|
5
|
+
"anyOf": [
|
|
6
|
+
{
|
|
7
|
+
"title": "Image Schema",
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"type": {
|
|
11
|
+
"const": "image"
|
|
12
|
+
},
|
|
13
|
+
"path": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"additionalProperties": false,
|
|
18
|
+
"required": [
|
|
19
|
+
"type",
|
|
20
|
+
"path"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"title": "Video Schema",
|
|
25
|
+
"type": "object",
|
|
26
|
+
"properties": {
|
|
27
|
+
"type": {
|
|
28
|
+
"const": "video"
|
|
29
|
+
},
|
|
30
|
+
"path": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"additionalProperties": false,
|
|
35
|
+
"required": [
|
|
36
|
+
"type",
|
|
37
|
+
"path"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"title": "Fail Reason Schema",
|
|
42
|
+
"type": "object",
|
|
43
|
+
"properties": {
|
|
44
|
+
"type": {
|
|
45
|
+
"const": "failReason"
|
|
46
|
+
},
|
|
47
|
+
"path": {
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
"reason": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"additionalProperties": false,
|
|
55
|
+
"required": [
|
|
56
|
+
"type",
|
|
57
|
+
"path",
|
|
58
|
+
"reason"
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
@@ -913,6 +913,71 @@
|
|
|
913
913
|
"null"
|
|
914
914
|
]
|
|
915
915
|
},
|
|
916
|
+
"media": {
|
|
917
|
+
"type": "array",
|
|
918
|
+
"items": {
|
|
919
|
+
"title": "Media Schema",
|
|
920
|
+
"type": "object",
|
|
921
|
+
"additionalProperties": false,
|
|
922
|
+
"anyOf": [
|
|
923
|
+
{
|
|
924
|
+
"title": "Image Schema",
|
|
925
|
+
"type": "object",
|
|
926
|
+
"properties": {
|
|
927
|
+
"type": {
|
|
928
|
+
"const": "image"
|
|
929
|
+
},
|
|
930
|
+
"path": {
|
|
931
|
+
"type": "string"
|
|
932
|
+
}
|
|
933
|
+
},
|
|
934
|
+
"additionalProperties": false,
|
|
935
|
+
"required": [
|
|
936
|
+
"type",
|
|
937
|
+
"path"
|
|
938
|
+
]
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
"title": "Video Schema",
|
|
942
|
+
"type": "object",
|
|
943
|
+
"properties": {
|
|
944
|
+
"type": {
|
|
945
|
+
"const": "video"
|
|
946
|
+
},
|
|
947
|
+
"path": {
|
|
948
|
+
"type": "string"
|
|
949
|
+
}
|
|
950
|
+
},
|
|
951
|
+
"additionalProperties": false,
|
|
952
|
+
"required": [
|
|
953
|
+
"type",
|
|
954
|
+
"path"
|
|
955
|
+
]
|
|
956
|
+
},
|
|
957
|
+
{
|
|
958
|
+
"title": "Fail Reason Schema",
|
|
959
|
+
"type": "object",
|
|
960
|
+
"properties": {
|
|
961
|
+
"type": {
|
|
962
|
+
"const": "failReason"
|
|
963
|
+
},
|
|
964
|
+
"path": {
|
|
965
|
+
"type": "string"
|
|
966
|
+
},
|
|
967
|
+
"reason": {
|
|
968
|
+
"type": "string"
|
|
969
|
+
}
|
|
970
|
+
},
|
|
971
|
+
"additionalProperties": false,
|
|
972
|
+
"required": [
|
|
973
|
+
"type",
|
|
974
|
+
"path",
|
|
975
|
+
"reason"
|
|
976
|
+
]
|
|
977
|
+
}
|
|
978
|
+
]
|
|
979
|
+
}
|
|
980
|
+
},
|
|
916
981
|
"testTypes": {
|
|
917
982
|
"type": "array",
|
|
918
983
|
"items": {
|
|
@@ -262,6 +262,71 @@
|
|
|
262
262
|
"null"
|
|
263
263
|
]
|
|
264
264
|
},
|
|
265
|
+
"media": {
|
|
266
|
+
"type": "array",
|
|
267
|
+
"items": {
|
|
268
|
+
"title": "Media Schema",
|
|
269
|
+
"type": "object",
|
|
270
|
+
"additionalProperties": false,
|
|
271
|
+
"anyOf": [
|
|
272
|
+
{
|
|
273
|
+
"title": "Image Schema",
|
|
274
|
+
"type": "object",
|
|
275
|
+
"properties": {
|
|
276
|
+
"type": {
|
|
277
|
+
"const": "image"
|
|
278
|
+
},
|
|
279
|
+
"path": {
|
|
280
|
+
"type": "string"
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
"additionalProperties": false,
|
|
284
|
+
"required": [
|
|
285
|
+
"type",
|
|
286
|
+
"path"
|
|
287
|
+
]
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"title": "Video Schema",
|
|
291
|
+
"type": "object",
|
|
292
|
+
"properties": {
|
|
293
|
+
"type": {
|
|
294
|
+
"const": "video"
|
|
295
|
+
},
|
|
296
|
+
"path": {
|
|
297
|
+
"type": "string"
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
"additionalProperties": false,
|
|
301
|
+
"required": [
|
|
302
|
+
"type",
|
|
303
|
+
"path"
|
|
304
|
+
]
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"title": "Fail Reason Schema",
|
|
308
|
+
"type": "object",
|
|
309
|
+
"properties": {
|
|
310
|
+
"type": {
|
|
311
|
+
"const": "failReason"
|
|
312
|
+
},
|
|
313
|
+
"path": {
|
|
314
|
+
"type": "string"
|
|
315
|
+
},
|
|
316
|
+
"reason": {
|
|
317
|
+
"type": "string"
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
"additionalProperties": false,
|
|
321
|
+
"required": [
|
|
322
|
+
"type",
|
|
323
|
+
"path",
|
|
324
|
+
"reason"
|
|
325
|
+
]
|
|
326
|
+
}
|
|
327
|
+
]
|
|
328
|
+
}
|
|
329
|
+
},
|
|
265
330
|
"testTypes": {
|
|
266
331
|
"type": "array",
|
|
267
332
|
"items": {
|
|
@@ -885,6 +885,71 @@
|
|
|
885
885
|
"null"
|
|
886
886
|
]
|
|
887
887
|
},
|
|
888
|
+
"media": {
|
|
889
|
+
"type": "array",
|
|
890
|
+
"items": {
|
|
891
|
+
"title": "Media Schema",
|
|
892
|
+
"type": "object",
|
|
893
|
+
"additionalProperties": false,
|
|
894
|
+
"anyOf": [
|
|
895
|
+
{
|
|
896
|
+
"title": "Image Schema",
|
|
897
|
+
"type": "object",
|
|
898
|
+
"properties": {
|
|
899
|
+
"type": {
|
|
900
|
+
"const": "image"
|
|
901
|
+
},
|
|
902
|
+
"path": {
|
|
903
|
+
"type": "string"
|
|
904
|
+
}
|
|
905
|
+
},
|
|
906
|
+
"additionalProperties": false,
|
|
907
|
+
"required": [
|
|
908
|
+
"type",
|
|
909
|
+
"path"
|
|
910
|
+
]
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
"title": "Video Schema",
|
|
914
|
+
"type": "object",
|
|
915
|
+
"properties": {
|
|
916
|
+
"type": {
|
|
917
|
+
"const": "video"
|
|
918
|
+
},
|
|
919
|
+
"path": {
|
|
920
|
+
"type": "string"
|
|
921
|
+
}
|
|
922
|
+
},
|
|
923
|
+
"additionalProperties": false,
|
|
924
|
+
"required": [
|
|
925
|
+
"type",
|
|
926
|
+
"path"
|
|
927
|
+
]
|
|
928
|
+
},
|
|
929
|
+
{
|
|
930
|
+
"title": "Fail Reason Schema",
|
|
931
|
+
"type": "object",
|
|
932
|
+
"properties": {
|
|
933
|
+
"type": {
|
|
934
|
+
"const": "failReason"
|
|
935
|
+
},
|
|
936
|
+
"path": {
|
|
937
|
+
"type": "string"
|
|
938
|
+
},
|
|
939
|
+
"reason": {
|
|
940
|
+
"type": "string"
|
|
941
|
+
}
|
|
942
|
+
},
|
|
943
|
+
"additionalProperties": false,
|
|
944
|
+
"required": [
|
|
945
|
+
"type",
|
|
946
|
+
"path",
|
|
947
|
+
"reason"
|
|
948
|
+
]
|
|
949
|
+
}
|
|
950
|
+
]
|
|
951
|
+
}
|
|
952
|
+
},
|
|
888
953
|
"testTypes": {
|
|
889
954
|
"type": "array",
|
|
890
955
|
"items": {
|
|
@@ -946,6 +946,71 @@
|
|
|
946
946
|
"null"
|
|
947
947
|
]
|
|
948
948
|
},
|
|
949
|
+
"media": {
|
|
950
|
+
"type": "array",
|
|
951
|
+
"items": {
|
|
952
|
+
"title": "Media Schema",
|
|
953
|
+
"type": "object",
|
|
954
|
+
"additionalProperties": false,
|
|
955
|
+
"anyOf": [
|
|
956
|
+
{
|
|
957
|
+
"title": "Image Schema",
|
|
958
|
+
"type": "object",
|
|
959
|
+
"properties": {
|
|
960
|
+
"type": {
|
|
961
|
+
"const": "image"
|
|
962
|
+
},
|
|
963
|
+
"path": {
|
|
964
|
+
"type": "string"
|
|
965
|
+
}
|
|
966
|
+
},
|
|
967
|
+
"additionalProperties": false,
|
|
968
|
+
"required": [
|
|
969
|
+
"type",
|
|
970
|
+
"path"
|
|
971
|
+
]
|
|
972
|
+
},
|
|
973
|
+
{
|
|
974
|
+
"title": "Video Schema",
|
|
975
|
+
"type": "object",
|
|
976
|
+
"properties": {
|
|
977
|
+
"type": {
|
|
978
|
+
"const": "video"
|
|
979
|
+
},
|
|
980
|
+
"path": {
|
|
981
|
+
"type": "string"
|
|
982
|
+
}
|
|
983
|
+
},
|
|
984
|
+
"additionalProperties": false,
|
|
985
|
+
"required": [
|
|
986
|
+
"type",
|
|
987
|
+
"path"
|
|
988
|
+
]
|
|
989
|
+
},
|
|
990
|
+
{
|
|
991
|
+
"title": "Fail Reason Schema",
|
|
992
|
+
"type": "object",
|
|
993
|
+
"properties": {
|
|
994
|
+
"type": {
|
|
995
|
+
"const": "failReason"
|
|
996
|
+
},
|
|
997
|
+
"path": {
|
|
998
|
+
"type": "string"
|
|
999
|
+
},
|
|
1000
|
+
"reason": {
|
|
1001
|
+
"type": "string"
|
|
1002
|
+
}
|
|
1003
|
+
},
|
|
1004
|
+
"additionalProperties": false,
|
|
1005
|
+
"required": [
|
|
1006
|
+
"type",
|
|
1007
|
+
"path",
|
|
1008
|
+
"reason"
|
|
1009
|
+
]
|
|
1010
|
+
}
|
|
1011
|
+
]
|
|
1012
|
+
}
|
|
1013
|
+
},
|
|
949
1014
|
"testTypes": {
|
|
950
1015
|
"type": "array",
|
|
951
1016
|
"items": {
|
package/package.json
CHANGED
package/schemas.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const schemas: readonly ["enums/euVehicleCategory.enum.json", "enums/vehicleConfiguration.enum.json", "enums/vehicleSize.enum.json", "enums/vehicleSubclass.enum.json", "enums/vehicleType.enum.json", "required-standards/defects/enums/euVehicleCategory.enum.json", "required-standards/defects/get/index.json", "required-standards/defects/requiredStandardTaxonomySection.json", "test-type/enums/testTypeClassification.enum.json", "test-type/get/index.json", "test-type/nextTestTypesOrCategory.json", "test-type/testCode.json", "v1/activity/index.json", "v1/defect-category-reference-data/index.json", "v1/defect-details/index.json", "v1/defect-location/index.json", "v1/dynamics-test-station/index.json", "v1/enums/activityType.enum.json", "v1/enums/closureReason.enum.json", "v1/enums/emissionStandard.enum.json", "v1/enums/fuelType.enum.json", "v1/enums/odometerReadingUnits.enum.json", "v1/enums/sources.enum.json", "v1/enums/testResult.enum.json", "v1/enums/testStationType.enum.json", "v1/enums/testStatus.enum.json", "v1/enums/typeOfTest.enum.json", "v1/enums/vehicleType.enum.json", "v1/enums/waitReason.enum.json", "v1/reason-item/index.json", "v1/recalls/index.json", "v1/tech-record/index.json", "v1/test/index.json", "v1/test-result/index.json", "v1/test-result-test-type/index.json", "v1/test-station/index.json", "v1/vehicle/index.json", "v1/vehicle-tech-record/index.json", "v1/visit/index.json", "v3/tech-record/enums/adrAdditionalNotesNumber.enum.json", "v3/tech-record/enums/adrBodyDeclarationType.enum.json", "v3/tech-record/enums/adrBodyType.enum.json", "v3/tech-record/enums/adrCertificateTypes.enum.json", "v3/tech-record/enums/adrCompatibilityGroupJ.enum.json", "v3/tech-record/enums/adrDangerousGood.enum.json", "v3/tech-record/enums/adrTankDetailsTankStatementSelect.enum.json", "v3/tech-record/enums/adrTankStatementSubstancePermitted.json", "v3/tech-record/enums/approvalType.enum.json", "v3/tech-record/enums/approvalTypeHgvOrPsv.enum.json", "v3/tech-record/enums/euVehicleCategory.enum.json", "v3/tech-record/enums/euVehicleCategoryCar.enum.json", "v3/tech-record/enums/euVehicleCategoryHgv.enum.json", "v3/tech-record/enums/euVehicleCategoryLgv.enum.json", "v3/tech-record/enums/euVehicleCategoryPsv.enum.json", "v3/tech-record/enums/euVehicleCategorySmallTrl.enum.json", "v3/tech-record/enums/euVehicleCategoryTrl.enum.json", "v3/tech-record/enums/radioButtonOptions.enum.json", "v3/tech-record/enums/tc3Types.enum.json", "v3/tech-record/enums/tyreUseCodeHgv.enum.json", "v3/tech-record/enums/tyreUseCodeTrl.enum.json", "v3/tech-record/enums/vehicleClassDescription.enum.json", "v3/tech-record/enums/vehicleClassDescriptionPSV.enum.json", "v3/tech-record/enums/vehicleConfigurationHgvPsv.enum.json", "v3/tech-record/enums/vehicleConfigurationLightVehicle.enum.json", "v3/tech-record/enums/vehicleConfigurationTrl.enum.json", "v3/tech-record/enums/vehicleSize.enum.json", "v3/tech-record/get/car/complete/index.json", "v3/tech-record/get/car/skeleton/index.json", "v3/tech-record/get/hgv/complete/index.json", "v3/tech-record/get/hgv/skeleton/index.json", "v3/tech-record/get/hgv/testable/index.json", "v3/tech-record/get/lgv/complete/index.json", "v3/tech-record/get/lgv/skeleton/index.json", "v3/tech-record/get/motorcycle/complete/index.json", "v3/tech-record/get/motorcycle/skeleton/index.json", "v3/tech-record/get/psv/complete/index.json", "v3/tech-record/get/psv/skeleton/index.json", "v3/tech-record/get/psv/testable/index.json", "v3/tech-record/get/search/index.json", "v3/tech-record/get/small trl/complete/index.json", "v3/tech-record/get/small trl/skeleton/index.json", "v3/tech-record/get/trl/complete/index.json", "v3/tech-record/get/trl/skeleton/index.json", "v3/tech-record/get/trl/testable/index.json", "v3/tech-record/put/car/complete/index.json", "v3/tech-record/put/car/skeleton/index.json", "v3/tech-record/put/hgv/complete/index.json", "v3/tech-record/put/hgv/skeleton/index.json", "v3/tech-record/put/hgv/testable/index.json", "v3/tech-record/put/lgv/complete/index.json", "v3/tech-record/put/lgv/skeleton/index.json", "v3/tech-record/put/motorcycle/complete/index.json", "v3/tech-record/put/motorcycle/skeleton/index.json", "v3/tech-record/put/psv/complete/index.json", "v3/tech-record/put/psv/skeleton/index.json", "v3/tech-record/put/psv/testable/index.json", "v3/tech-record/put/small trl/complete/index.json", "v3/tech-record/put/small trl/skeleton/index.json", "v3/tech-record/put/trl/complete/index.json", "v3/tech-record/put/trl/skeleton/index.json", "v3/tech-record/put/trl/testable/index.json"];
|
|
1
|
+
export declare const schemas: readonly ["enums/euVehicleCategory.enum.json", "enums/vehicleConfiguration.enum.json", "enums/vehicleSize.enum.json", "enums/vehicleSubclass.enum.json", "enums/vehicleType.enum.json", "required-standards/defects/enums/euVehicleCategory.enum.json", "required-standards/defects/get/index.json", "required-standards/defects/requiredStandardTaxonomySection.json", "test-type/enums/testTypeClassification.enum.json", "test-type/get/index.json", "test-type/nextTestTypesOrCategory.json", "test-type/testCode.json", "v1/activity/index.json", "v1/defect-category-reference-data/index.json", "v1/defect-details/index.json", "v1/defect-location/index.json", "v1/dynamics-test-station/index.json", "v1/enums/activityType.enum.json", "v1/enums/closureReason.enum.json", "v1/enums/emissionStandard.enum.json", "v1/enums/fuelType.enum.json", "v1/enums/odometerReadingUnits.enum.json", "v1/enums/sources.enum.json", "v1/enums/testResult.enum.json", "v1/enums/testStationType.enum.json", "v1/enums/testStatus.enum.json", "v1/enums/typeOfTest.enum.json", "v1/enums/vehicleType.enum.json", "v1/enums/waitReason.enum.json", "v1/media/failReason.json", "v1/media/image.json", "v1/media/index.json", "v1/media/video.json", "v1/reason-item/index.json", "v1/recalls/index.json", "v1/tech-record/index.json", "v1/test/index.json", "v1/test-result/index.json", "v1/test-result-test-type/index.json", "v1/test-station/index.json", "v1/vehicle/index.json", "v1/vehicle-tech-record/index.json", "v1/visit/index.json", "v3/tech-record/enums/adrAdditionalNotesNumber.enum.json", "v3/tech-record/enums/adrBodyDeclarationType.enum.json", "v3/tech-record/enums/adrBodyType.enum.json", "v3/tech-record/enums/adrCertificateTypes.enum.json", "v3/tech-record/enums/adrCompatibilityGroupJ.enum.json", "v3/tech-record/enums/adrDangerousGood.enum.json", "v3/tech-record/enums/adrTankDetailsTankStatementSelect.enum.json", "v3/tech-record/enums/adrTankStatementSubstancePermitted.json", "v3/tech-record/enums/approvalType.enum.json", "v3/tech-record/enums/approvalTypeHgvOrPsv.enum.json", "v3/tech-record/enums/euVehicleCategory.enum.json", "v3/tech-record/enums/euVehicleCategoryCar.enum.json", "v3/tech-record/enums/euVehicleCategoryHgv.enum.json", "v3/tech-record/enums/euVehicleCategoryLgv.enum.json", "v3/tech-record/enums/euVehicleCategoryPsv.enum.json", "v3/tech-record/enums/euVehicleCategorySmallTrl.enum.json", "v3/tech-record/enums/euVehicleCategoryTrl.enum.json", "v3/tech-record/enums/radioButtonOptions.enum.json", "v3/tech-record/enums/tc3Types.enum.json", "v3/tech-record/enums/tyreUseCodeHgv.enum.json", "v3/tech-record/enums/tyreUseCodeTrl.enum.json", "v3/tech-record/enums/vehicleClassDescription.enum.json", "v3/tech-record/enums/vehicleClassDescriptionPSV.enum.json", "v3/tech-record/enums/vehicleConfigurationHgvPsv.enum.json", "v3/tech-record/enums/vehicleConfigurationLightVehicle.enum.json", "v3/tech-record/enums/vehicleConfigurationTrl.enum.json", "v3/tech-record/enums/vehicleSize.enum.json", "v3/tech-record/get/car/complete/index.json", "v3/tech-record/get/car/skeleton/index.json", "v3/tech-record/get/hgv/complete/index.json", "v3/tech-record/get/hgv/skeleton/index.json", "v3/tech-record/get/hgv/testable/index.json", "v3/tech-record/get/lgv/complete/index.json", "v3/tech-record/get/lgv/skeleton/index.json", "v3/tech-record/get/motorcycle/complete/index.json", "v3/tech-record/get/motorcycle/skeleton/index.json", "v3/tech-record/get/psv/complete/index.json", "v3/tech-record/get/psv/skeleton/index.json", "v3/tech-record/get/psv/testable/index.json", "v3/tech-record/get/search/index.json", "v3/tech-record/get/small trl/complete/index.json", "v3/tech-record/get/small trl/skeleton/index.json", "v3/tech-record/get/trl/complete/index.json", "v3/tech-record/get/trl/skeleton/index.json", "v3/tech-record/get/trl/testable/index.json", "v3/tech-record/put/car/complete/index.json", "v3/tech-record/put/car/skeleton/index.json", "v3/tech-record/put/hgv/complete/index.json", "v3/tech-record/put/hgv/skeleton/index.json", "v3/tech-record/put/hgv/testable/index.json", "v3/tech-record/put/lgv/complete/index.json", "v3/tech-record/put/lgv/skeleton/index.json", "v3/tech-record/put/motorcycle/complete/index.json", "v3/tech-record/put/motorcycle/skeleton/index.json", "v3/tech-record/put/psv/complete/index.json", "v3/tech-record/put/psv/skeleton/index.json", "v3/tech-record/put/psv/testable/index.json", "v3/tech-record/put/small trl/complete/index.json", "v3/tech-record/put/small trl/skeleton/index.json", "v3/tech-record/put/trl/complete/index.json", "v3/tech-record/put/trl/skeleton/index.json", "v3/tech-record/put/trl/testable/index.json"];
|
package/schemas.js
CHANGED
|
@@ -31,6 +31,10 @@ exports.schemas = [
|
|
|
31
31
|
"v1/enums/typeOfTest.enum.json",
|
|
32
32
|
"v1/enums/vehicleType.enum.json",
|
|
33
33
|
"v1/enums/waitReason.enum.json",
|
|
34
|
+
"v1/media/failReason.json",
|
|
35
|
+
"v1/media/image.json",
|
|
36
|
+
"v1/media/index.json",
|
|
37
|
+
"v1/media/video.json",
|
|
34
38
|
"v1/reason-item/index.json",
|
|
35
39
|
"v1/recalls/index.json",
|
|
36
40
|
"v1/tech-record/index.json",
|
|
@@ -10,16 +10,16 @@ export interface DynamicsTestStationSchema {
|
|
|
10
10
|
testStationPNumber: string;
|
|
11
11
|
testStationName: string;
|
|
12
12
|
testStationContactNumber: string;
|
|
13
|
-
testStationAccessNotes?: string;
|
|
14
|
-
testStationGeneralNotes?: string;
|
|
13
|
+
testStationAccessNotes?: string | null;
|
|
14
|
+
testStationGeneralNotes?: string | null;
|
|
15
15
|
testStationTown: string;
|
|
16
16
|
testStationAddress: string;
|
|
17
17
|
testStationPostcode: string;
|
|
18
|
-
testStationLongitude?: number;
|
|
19
|
-
testStationLatitude?: number;
|
|
18
|
+
testStationLongitude?: number | null;
|
|
19
|
+
testStationLatitude?: number | null;
|
|
20
20
|
testStationType: string;
|
|
21
21
|
testStationEmails: string[];
|
|
22
22
|
searchProperty?: string;
|
|
23
|
-
testStationCountry?: string;
|
|
23
|
+
testStationCountry?: string | null;
|
|
24
24
|
testStationStatus: string;
|
|
25
25
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/**
|
|
3
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export interface FailReasonSchema {
|
|
9
|
+
type: "failReason";
|
|
10
|
+
path: string;
|
|
11
|
+
reason: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/**
|
|
3
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export interface ImageSchema {
|
|
9
|
+
type: "image";
|
|
10
|
+
path: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/**
|
|
3
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export type MediaSchema = ImageSchema | VideoSchema | FailReasonSchema;
|
|
9
|
+
|
|
10
|
+
export interface ImageSchema {
|
|
11
|
+
type: "image";
|
|
12
|
+
path: string;
|
|
13
|
+
}
|
|
14
|
+
export interface VideoSchema {
|
|
15
|
+
type: "video";
|
|
16
|
+
path: string;
|
|
17
|
+
}
|
|
18
|
+
export interface FailReasonSchema {
|
|
19
|
+
type: "failReason";
|
|
20
|
+
path: string;
|
|
21
|
+
reason: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/**
|
|
3
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export interface VideoSchema {
|
|
9
|
+
type: "video";
|
|
10
|
+
path: string;
|
|
11
|
+
}
|
package/types/v1/test/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
|
|
9
|
+
export type MediaSchema = ImageSchema | VideoSchema | FailReasonSchema;
|
|
9
10
|
export type InspectionType = "basic" | "normal";
|
|
10
11
|
|
|
11
12
|
export interface CommercialVehicleTestSchema {
|
|
@@ -261,6 +262,7 @@ export interface TestResultSchema {
|
|
|
261
262
|
numberOfSeats?: number;
|
|
262
263
|
regnDate?: string | null;
|
|
263
264
|
firstUseDate?: string | null;
|
|
265
|
+
media?: MediaSchema[];
|
|
264
266
|
testTypes: TestResultTestTypeSchema[];
|
|
265
267
|
reasonForCreation?: string;
|
|
266
268
|
createdAt?: string | null;
|
|
@@ -284,6 +286,19 @@ export interface TestResultSchema {
|
|
|
284
286
|
deletionFlag?: boolean;
|
|
285
287
|
recalls?: RecallsSchema;
|
|
286
288
|
}
|
|
289
|
+
export interface ImageSchema {
|
|
290
|
+
type: "image";
|
|
291
|
+
path: string;
|
|
292
|
+
}
|
|
293
|
+
export interface VideoSchema {
|
|
294
|
+
type: "video";
|
|
295
|
+
path: string;
|
|
296
|
+
}
|
|
297
|
+
export interface FailReasonSchema {
|
|
298
|
+
type: "failReason";
|
|
299
|
+
path: string;
|
|
300
|
+
reason: string;
|
|
301
|
+
}
|
|
287
302
|
export interface TestResultTestTypeSchema {
|
|
288
303
|
testTypeName: string | null;
|
|
289
304
|
name: string;
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
|
|
9
|
+
export type MediaSchema = ImageSchema | VideoSchema | FailReasonSchema;
|
|
9
10
|
export type InspectionType = "basic" | "normal";
|
|
10
11
|
|
|
11
12
|
export interface TestResultSchema {
|
|
@@ -40,6 +41,7 @@ export interface TestResultSchema {
|
|
|
40
41
|
numberOfSeats?: number;
|
|
41
42
|
regnDate?: string | null;
|
|
42
43
|
firstUseDate?: string | null;
|
|
44
|
+
media?: MediaSchema[];
|
|
43
45
|
testTypes: TestResultTestTypeSchema[];
|
|
44
46
|
reasonForCreation?: string;
|
|
45
47
|
createdAt?: string | null;
|
|
@@ -67,6 +69,19 @@ export interface VehicleClassSchema {
|
|
|
67
69
|
code: string;
|
|
68
70
|
description: string;
|
|
69
71
|
}
|
|
72
|
+
export interface ImageSchema {
|
|
73
|
+
type: "image";
|
|
74
|
+
path: string;
|
|
75
|
+
}
|
|
76
|
+
export interface VideoSchema {
|
|
77
|
+
type: "video";
|
|
78
|
+
path: string;
|
|
79
|
+
}
|
|
80
|
+
export interface FailReasonSchema {
|
|
81
|
+
type: "failReason";
|
|
82
|
+
path: string;
|
|
83
|
+
reason: string;
|
|
84
|
+
}
|
|
70
85
|
export interface TestResultTestTypeSchema {
|
|
71
86
|
testTypeName: string | null;
|
|
72
87
|
name: string;
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
|
|
9
|
+
export type MediaSchema = ImageSchema | VideoSchema | FailReasonSchema;
|
|
9
10
|
export type InspectionType = "basic" | "normal";
|
|
10
11
|
|
|
11
12
|
export interface VehicleSchema {
|
|
@@ -253,6 +254,7 @@ export interface TestResultSchema {
|
|
|
253
254
|
numberOfSeats?: number;
|
|
254
255
|
regnDate?: string | null;
|
|
255
256
|
firstUseDate?: string | null;
|
|
257
|
+
media?: MediaSchema[];
|
|
256
258
|
testTypes: TestResultTestTypeSchema[];
|
|
257
259
|
reasonForCreation?: string;
|
|
258
260
|
createdAt?: string | null;
|
|
@@ -276,6 +278,19 @@ export interface TestResultSchema {
|
|
|
276
278
|
deletionFlag?: boolean;
|
|
277
279
|
recalls?: RecallsSchema;
|
|
278
280
|
}
|
|
281
|
+
export interface ImageSchema {
|
|
282
|
+
type: "image";
|
|
283
|
+
path: string;
|
|
284
|
+
}
|
|
285
|
+
export interface VideoSchema {
|
|
286
|
+
type: "video";
|
|
287
|
+
path: string;
|
|
288
|
+
}
|
|
289
|
+
export interface FailReasonSchema {
|
|
290
|
+
type: "failReason";
|
|
291
|
+
path: string;
|
|
292
|
+
reason: string;
|
|
293
|
+
}
|
|
279
294
|
export interface TestResultTestTypeSchema {
|
|
280
295
|
testTypeName: string | null;
|
|
281
296
|
name: string;
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
|
|
9
|
+
export type MediaSchema = ImageSchema | VideoSchema | FailReasonSchema;
|
|
9
10
|
export type InspectionType = "basic" | "normal";
|
|
10
11
|
|
|
11
12
|
export interface VisitSchema {
|
|
@@ -274,6 +275,7 @@ export interface TestResultSchema {
|
|
|
274
275
|
numberOfSeats?: number;
|
|
275
276
|
regnDate?: string | null;
|
|
276
277
|
firstUseDate?: string | null;
|
|
278
|
+
media?: MediaSchema[];
|
|
277
279
|
testTypes: TestResultTestTypeSchema[];
|
|
278
280
|
reasonForCreation?: string;
|
|
279
281
|
createdAt?: string | null;
|
|
@@ -297,6 +299,19 @@ export interface TestResultSchema {
|
|
|
297
299
|
deletionFlag?: boolean;
|
|
298
300
|
recalls?: RecallsSchema;
|
|
299
301
|
}
|
|
302
|
+
export interface ImageSchema {
|
|
303
|
+
type: "image";
|
|
304
|
+
path: string;
|
|
305
|
+
}
|
|
306
|
+
export interface VideoSchema {
|
|
307
|
+
type: "video";
|
|
308
|
+
path: string;
|
|
309
|
+
}
|
|
310
|
+
export interface FailReasonSchema {
|
|
311
|
+
type: "failReason";
|
|
312
|
+
path: string;
|
|
313
|
+
reason: string;
|
|
314
|
+
}
|
|
300
315
|
export interface TestResultTestTypeSchema {
|
|
301
316
|
testTypeName: string | null;
|
|
302
317
|
name: string;
|