@dvsa/cvs-type-definitions 3.1.2 → 3.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/iva/defects/get/index.json +115 -0
- package/package.json +2 -2
- package/schemas.d.ts +1 -1
- package/schemas.js +1 -0
- package/types/iva/defects/get/index.d.ts +43 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Defect GET IVA",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"additionalProperties": false,
|
|
5
|
+
"required": [
|
|
6
|
+
"sectionNumber",
|
|
7
|
+
"sectionDescription",
|
|
8
|
+
"vehicleTypes",
|
|
9
|
+
"euVehicleCategories",
|
|
10
|
+
"requiredStandards"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"sectionNumber": {
|
|
14
|
+
"type": [
|
|
15
|
+
"string"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"sectionDescription": {
|
|
19
|
+
"type": [
|
|
20
|
+
"string"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"vehicleTypes": {
|
|
24
|
+
"anyOf": [
|
|
25
|
+
{
|
|
26
|
+
"title": "Vehicle Type",
|
|
27
|
+
"type": "string",
|
|
28
|
+
"enum": [
|
|
29
|
+
"psv",
|
|
30
|
+
"trl",
|
|
31
|
+
"hgv",
|
|
32
|
+
"car",
|
|
33
|
+
"lgv",
|
|
34
|
+
"motorcycle"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"euVehicleCategories": {
|
|
40
|
+
"anyOf": [
|
|
41
|
+
{
|
|
42
|
+
"title": "EU vehicle category",
|
|
43
|
+
"type": "string",
|
|
44
|
+
"enum": [
|
|
45
|
+
"m1",
|
|
46
|
+
"m2",
|
|
47
|
+
"m3",
|
|
48
|
+
"n1",
|
|
49
|
+
"n2",
|
|
50
|
+
"n3",
|
|
51
|
+
"o1",
|
|
52
|
+
"o2",
|
|
53
|
+
"o3",
|
|
54
|
+
"o4",
|
|
55
|
+
"l1e-a",
|
|
56
|
+
"l1e",
|
|
57
|
+
"l2e",
|
|
58
|
+
"l3e",
|
|
59
|
+
"l4e",
|
|
60
|
+
"l5e",
|
|
61
|
+
"l6e",
|
|
62
|
+
"l7e"
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
"requiredStandards": {
|
|
68
|
+
"type": "array",
|
|
69
|
+
"items": {
|
|
70
|
+
"type": "object",
|
|
71
|
+
"required": [
|
|
72
|
+
"rsNumber",
|
|
73
|
+
"requiredStandard",
|
|
74
|
+
"refCalculation",
|
|
75
|
+
"additionalInfo",
|
|
76
|
+
"inspectionTypes"
|
|
77
|
+
],
|
|
78
|
+
"properties": {
|
|
79
|
+
"rsNumber": {
|
|
80
|
+
"type": [
|
|
81
|
+
"integer"
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
"requiredStandard": {
|
|
85
|
+
"type": [
|
|
86
|
+
"string"
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
"refCalculation": {
|
|
90
|
+
"type": [
|
|
91
|
+
"string"
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
"additionalInfo": {
|
|
95
|
+
"type": [
|
|
96
|
+
"boolean"
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
"inspectionTypes": {
|
|
100
|
+
"anyOf": [
|
|
101
|
+
{
|
|
102
|
+
"title": "Inspection Type",
|
|
103
|
+
"type": "string",
|
|
104
|
+
"enum": [
|
|
105
|
+
"basic",
|
|
106
|
+
"normal"
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dvsa/cvs-type-definitions",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"description": "type definitions for cvs vta
|
|
3
|
+
"version": "3.2.0",
|
|
4
|
+
"description": "type definitions for cvs vta and vtm applications",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
7
7
|
"url": "git://github.com/dvsa/cvs-type-definitions.git"
|
package/schemas.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const schemas: readonly ["v1/activity/index.json", "v1/defect-category-reference-data/index.json", "v1/defect-details/index.json", "v1/defect-location/index.json", "v1/reason-item/index.json", "v1/tech-record/index.json", "v1/test/index.json", "v1/test-result/index.json", "v1/test-station/index.json", "v1/test-type/index.json", "v1/vehicle/index.json", "v1/vehicle-tech-record/index.json", "v1/visit/index.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 ["iva/defects/get/index.json", "v1/activity/index.json", "v1/defect-category-reference-data/index.json", "v1/defect-details/index.json", "v1/defect-location/index.json", "v1/reason-item/index.json", "v1/tech-record/index.json", "v1/test/index.json", "v1/test-result/index.json", "v1/test-station/index.json", "v1/test-type/index.json", "v1/vehicle/index.json", "v1/vehicle-tech-record/index.json", "v1/visit/index.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
|
@@ -0,0 +1,43 @@
|
|
|
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 VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
|
|
9
|
+
export type EUVehicleCategory =
|
|
10
|
+
| "m1"
|
|
11
|
+
| "m2"
|
|
12
|
+
| "m3"
|
|
13
|
+
| "n1"
|
|
14
|
+
| "n2"
|
|
15
|
+
| "n3"
|
|
16
|
+
| "o1"
|
|
17
|
+
| "o2"
|
|
18
|
+
| "o3"
|
|
19
|
+
| "o4"
|
|
20
|
+
| "l1e-a"
|
|
21
|
+
| "l1e"
|
|
22
|
+
| "l2e"
|
|
23
|
+
| "l3e"
|
|
24
|
+
| "l4e"
|
|
25
|
+
| "l5e"
|
|
26
|
+
| "l6e"
|
|
27
|
+
| "l7e";
|
|
28
|
+
export type InspectionType = "basic" | "normal";
|
|
29
|
+
|
|
30
|
+
export interface DefectGETIVA {
|
|
31
|
+
sectionNumber: string;
|
|
32
|
+
sectionDescription: string;
|
|
33
|
+
vehicleTypes: VehicleType;
|
|
34
|
+
euVehicleCategories: EUVehicleCategory;
|
|
35
|
+
requiredStandards: {
|
|
36
|
+
rsNumber: number;
|
|
37
|
+
requiredStandard: string;
|
|
38
|
+
refCalculation: string;
|
|
39
|
+
additionalInfo: boolean;
|
|
40
|
+
inspectionTypes: InspectionType;
|
|
41
|
+
[k: string]: unknown;
|
|
42
|
+
}[];
|
|
43
|
+
}
|