@dvsa/cvs-type-definitions 2.1.15 → 2.1.17
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/v3/tech-record/get/car/complete/index.json +2 -1
- package/json-schemas/v3/tech-record/get/car/skeleton/index.json +2 -1
- package/json-schemas/v3/tech-record/get/lgv/complete/index.json +2 -1
- package/json-schemas/v3/tech-record/get/lgv/skeleton/index.json +2 -1
- package/json-schemas/v3/tech-record/get/motorcycle/complete/index.json +9 -3
- package/json-schemas/v3/tech-record/get/motorcycle/skeleton/index.json +11 -0
- package/json-schemas/v3/tech-record/put/car/complete/index.json +1 -0
- package/json-schemas/v3/tech-record/put/lgv/complete/index.json +30 -1
- package/json-schemas/v3/tech-record/put/lgv/skeleton/index.json +28 -0
- package/json-schemas/v3/tech-record/put/motorcycle/complete/index.json +235 -0
- package/json-schemas/v3/tech-record/put/motorcycle/skeleton/index.json +211 -0
- package/json-schemas/v3/tech-record/put/psv/complete/index.json +1 -1
- package/json-schemas/v3/tech-record/put/psv/skeleton/index.json +1 -1
- package/json-schemas/v3/tech-record/put/psv/testable/index.json +1 -1
- package/package.json +1 -1
- package/schema-validator.d.ts +8 -0
- package/schemas.d.ts +1 -1
- package/schemas.js +2 -0
- package/types/v3/tech-record/get/car/complete/index.d.ts +1 -1
- package/types/v3/tech-record/get/car/skeleton/index.d.ts +1 -1
- package/types/v3/tech-record/get/lgv/complete/index.d.ts +1 -1
- package/types/v3/tech-record/get/lgv/skeleton/index.d.ts +1 -1
- package/types/v3/tech-record/get/motorcycle/complete/index.d.ts +7 -7
- package/types/v3/tech-record/get/motorcycle/skeleton/index.d.ts +8 -8
- package/types/v3/tech-record/put/car/complete/index.d.ts +1 -1
- package/types/v3/tech-record/put/lgv/complete/index.d.ts +21 -1
- package/types/v3/tech-record/put/lgv/skeleton/index.d.ts +20 -0
- package/types/v3/tech-record/put/motorcycle/complete/index.d.ts +79 -0
- package/types/v3/tech-record/put/motorcycle/skeleton/index.d.ts +76 -0
- package/types/v3/tech-record/put/psv/complete/index.d.ts +1 -1
- package/types/v3/tech-record/put/psv/skeleton/index.d.ts +1 -1
- package/types/v3/tech-record/put/psv/testable/index.d.ts +1 -1
|
@@ -3,9 +3,15 @@
|
|
|
3
3
|
"type": "object",
|
|
4
4
|
"additionalProperties": false,
|
|
5
5
|
"required": [
|
|
6
|
-
"
|
|
7
|
-
"
|
|
6
|
+
"techRecord_numberOfWheelsDriven",
|
|
7
|
+
"techRecord_vehicleClass_description",
|
|
8
8
|
"systemNumber",
|
|
9
|
+
"primaryVrm",
|
|
10
|
+
"techRecord_createdByName",
|
|
11
|
+
"techRecord_createdById",
|
|
12
|
+
"techRecord_reasonForCreation",
|
|
13
|
+
"createdTimestamp",
|
|
14
|
+
"partialVin",
|
|
9
15
|
"vin"
|
|
10
16
|
],
|
|
11
17
|
"properties": {
|
|
@@ -222,7 +228,7 @@
|
|
|
222
228
|
]
|
|
223
229
|
}
|
|
224
230
|
},
|
|
225
|
-
"
|
|
231
|
+
"techRecord_numberOfWheelsDriven": {
|
|
226
232
|
"type": "integer"
|
|
227
233
|
},
|
|
228
234
|
"techRecord_hiddenInVta": {
|
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
"title": "Tech Record Skeleton Motorcycle Schema",
|
|
3
3
|
"type": "object",
|
|
4
4
|
"additionalProperties": false,
|
|
5
|
+
"required": [
|
|
6
|
+
"techRecord_vehicleClass_description",
|
|
7
|
+
"systemNumber",
|
|
8
|
+
"primaryVrm",
|
|
9
|
+
"techRecord_createdByName",
|
|
10
|
+
"techRecord_createdById",
|
|
11
|
+
"techRecord_reasonForCreation",
|
|
12
|
+
"createdTimestamp",
|
|
13
|
+
"partialVin",
|
|
14
|
+
"vin"
|
|
15
|
+
],
|
|
5
16
|
"properties": {
|
|
6
17
|
"techRecord_applicantDetails_name": {
|
|
7
18
|
"type": [
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
"additionalProperties": false,
|
|
5
5
|
"required": [
|
|
6
6
|
"techRecord_vehicleSubclass",
|
|
7
|
-
"vin"
|
|
7
|
+
"vin",
|
|
8
|
+
"techRecord_vehicleType"
|
|
8
9
|
],
|
|
9
10
|
"properties": {
|
|
10
11
|
"vin": {
|
|
@@ -75,6 +76,34 @@
|
|
|
75
76
|
],
|
|
76
77
|
"maxLength": 255
|
|
77
78
|
},
|
|
79
|
+
"techRecord_euVehicleCategory": {
|
|
80
|
+
"anyOf": [
|
|
81
|
+
{
|
|
82
|
+
"title": "EU vehicle category",
|
|
83
|
+
"type": "string",
|
|
84
|
+
"enum": [
|
|
85
|
+
"m1",
|
|
86
|
+
"m2",
|
|
87
|
+
"m3",
|
|
88
|
+
"n1",
|
|
89
|
+
"n2",
|
|
90
|
+
"n3",
|
|
91
|
+
"o1",
|
|
92
|
+
"o2",
|
|
93
|
+
"o3",
|
|
94
|
+
"o4",
|
|
95
|
+
"l1e-a",
|
|
96
|
+
"l1e",
|
|
97
|
+
"l2e",
|
|
98
|
+
"l3e",
|
|
99
|
+
"l4e",
|
|
100
|
+
"l5e",
|
|
101
|
+
"l6e",
|
|
102
|
+
"l7e"
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
},
|
|
78
107
|
"techRecord_reasonForCreation": {
|
|
79
108
|
"type": [
|
|
80
109
|
"string",
|
|
@@ -75,6 +75,34 @@
|
|
|
75
75
|
],
|
|
76
76
|
"maxLength": 255
|
|
77
77
|
},
|
|
78
|
+
"techRecord_euVehicleCategory": {
|
|
79
|
+
"anyOf": [
|
|
80
|
+
{
|
|
81
|
+
"title": "EU vehicle category",
|
|
82
|
+
"type": "string",
|
|
83
|
+
"enum": [
|
|
84
|
+
"m1",
|
|
85
|
+
"m2",
|
|
86
|
+
"m3",
|
|
87
|
+
"n1",
|
|
88
|
+
"n2",
|
|
89
|
+
"n3",
|
|
90
|
+
"o1",
|
|
91
|
+
"o2",
|
|
92
|
+
"o3",
|
|
93
|
+
"o4",
|
|
94
|
+
"l1e-a",
|
|
95
|
+
"l1e",
|
|
96
|
+
"l2e",
|
|
97
|
+
"l3e",
|
|
98
|
+
"l4e",
|
|
99
|
+
"l5e",
|
|
100
|
+
"l6e",
|
|
101
|
+
"l7e"
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
},
|
|
78
106
|
"techRecord_reasonForCreation": {
|
|
79
107
|
"type": [
|
|
80
108
|
"string",
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "PUT Tech Record Complete Motorcycle Schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"additionalProperties": false,
|
|
5
|
+
"required": [
|
|
6
|
+
"techRecord_numberOfWheelsDriven",
|
|
7
|
+
"techRecord_vehicleClass_description",
|
|
8
|
+
"techRecord_reasonForCreation",
|
|
9
|
+
"vin"
|
|
10
|
+
],
|
|
11
|
+
"properties": {
|
|
12
|
+
"secondaryVrms": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"items": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"techRecord_applicantDetails_name": {
|
|
19
|
+
"type": [
|
|
20
|
+
"string",
|
|
21
|
+
"null"
|
|
22
|
+
],
|
|
23
|
+
"maxLength": 150
|
|
24
|
+
},
|
|
25
|
+
"techRecord_applicantDetails_address1": {
|
|
26
|
+
"type": [
|
|
27
|
+
"null",
|
|
28
|
+
"string"
|
|
29
|
+
],
|
|
30
|
+
"maxLength": 60
|
|
31
|
+
},
|
|
32
|
+
"techRecord_applicantDetails_address2": {
|
|
33
|
+
"type": [
|
|
34
|
+
"null",
|
|
35
|
+
"string"
|
|
36
|
+
],
|
|
37
|
+
"maxLength": 60
|
|
38
|
+
},
|
|
39
|
+
"techRecord_applicantDetails_postTown": {
|
|
40
|
+
"type": [
|
|
41
|
+
"null",
|
|
42
|
+
"string"
|
|
43
|
+
],
|
|
44
|
+
"maxLength": 60
|
|
45
|
+
},
|
|
46
|
+
"techRecord_applicantDetails_address3": {
|
|
47
|
+
"type": [
|
|
48
|
+
"null",
|
|
49
|
+
"string"
|
|
50
|
+
],
|
|
51
|
+
"maxLength": 60
|
|
52
|
+
},
|
|
53
|
+
"techRecord_applicantDetails_postCode": {
|
|
54
|
+
"type": [
|
|
55
|
+
"null",
|
|
56
|
+
"string"
|
|
57
|
+
],
|
|
58
|
+
"maxLength": 12
|
|
59
|
+
},
|
|
60
|
+
"techRecord_applicantDetails_telephoneNumber": {
|
|
61
|
+
"type": [
|
|
62
|
+
"null",
|
|
63
|
+
"string"
|
|
64
|
+
],
|
|
65
|
+
"maxLength": 25
|
|
66
|
+
},
|
|
67
|
+
"techRecord_applicantDetails_emailAddress": {
|
|
68
|
+
"type": [
|
|
69
|
+
"null",
|
|
70
|
+
"string"
|
|
71
|
+
],
|
|
72
|
+
"maxLength": 255
|
|
73
|
+
},
|
|
74
|
+
"createdTimestamp": {
|
|
75
|
+
"type": [
|
|
76
|
+
"string"
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
"partialVin": {
|
|
80
|
+
"type": "string"
|
|
81
|
+
},
|
|
82
|
+
"primaryVrm": {
|
|
83
|
+
"type": "string"
|
|
84
|
+
},
|
|
85
|
+
"systemNumber": {
|
|
86
|
+
"type": "string"
|
|
87
|
+
},
|
|
88
|
+
"techRecord_createdAt": {
|
|
89
|
+
"type": "string"
|
|
90
|
+
},
|
|
91
|
+
"techRecord_createdById": {
|
|
92
|
+
"type": "string"
|
|
93
|
+
},
|
|
94
|
+
"techRecord_createdByName": {
|
|
95
|
+
"type": "string"
|
|
96
|
+
},
|
|
97
|
+
"techRecord_euVehicleCategory": {
|
|
98
|
+
"title": "EU vehicle category",
|
|
99
|
+
"type": "string",
|
|
100
|
+
"enum": [
|
|
101
|
+
"m1",
|
|
102
|
+
"m2",
|
|
103
|
+
"m3",
|
|
104
|
+
"n1",
|
|
105
|
+
"n2",
|
|
106
|
+
"n3",
|
|
107
|
+
"o1",
|
|
108
|
+
"o2",
|
|
109
|
+
"o3",
|
|
110
|
+
"o4",
|
|
111
|
+
"l1e-a",
|
|
112
|
+
"l1e",
|
|
113
|
+
"l2e",
|
|
114
|
+
"l3e",
|
|
115
|
+
"l4e",
|
|
116
|
+
"l5e",
|
|
117
|
+
"l6e",
|
|
118
|
+
"l7e"
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
"techRecord_lastUpdatedAt": {
|
|
122
|
+
"type": [
|
|
123
|
+
"string",
|
|
124
|
+
"null"
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
"techRecord_lastUpdatedById": {
|
|
128
|
+
"type": [
|
|
129
|
+
"string",
|
|
130
|
+
"null"
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
"techRecord_lastUpdatedByName": {
|
|
134
|
+
"type": [
|
|
135
|
+
"string",
|
|
136
|
+
"null"
|
|
137
|
+
]
|
|
138
|
+
},
|
|
139
|
+
"techRecord_manufactureYear": {
|
|
140
|
+
"type": [
|
|
141
|
+
"string",
|
|
142
|
+
"null"
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
"techRecord_recordCompleteness": {
|
|
146
|
+
"type": "string"
|
|
147
|
+
},
|
|
148
|
+
"techRecord_noOfAxles": {
|
|
149
|
+
"type": "integer"
|
|
150
|
+
},
|
|
151
|
+
"techRecord_notes": {
|
|
152
|
+
"type": "string"
|
|
153
|
+
},
|
|
154
|
+
"techRecord_reasonForCreation": {
|
|
155
|
+
"type": "string"
|
|
156
|
+
},
|
|
157
|
+
"techRecord_regnDate": {
|
|
158
|
+
"type": [
|
|
159
|
+
"string",
|
|
160
|
+
"null"
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
"techRecord_statusCode": {
|
|
164
|
+
"title": "Status Code",
|
|
165
|
+
"type": "string",
|
|
166
|
+
"enum": [
|
|
167
|
+
"provisional",
|
|
168
|
+
"current",
|
|
169
|
+
"archived"
|
|
170
|
+
]
|
|
171
|
+
},
|
|
172
|
+
"techRecord_vehicleConfiguration": {
|
|
173
|
+
"title": "Vehicle Configuration",
|
|
174
|
+
"type": "string",
|
|
175
|
+
"enum": [
|
|
176
|
+
"rigid",
|
|
177
|
+
"articulated",
|
|
178
|
+
"centre axle drawbar",
|
|
179
|
+
"semi-car transporter",
|
|
180
|
+
"semi-trailer",
|
|
181
|
+
"long semi-trailer",
|
|
182
|
+
"low loader",
|
|
183
|
+
"other",
|
|
184
|
+
"drawbar",
|
|
185
|
+
"four-in-line",
|
|
186
|
+
"dolly",
|
|
187
|
+
"full drawbar"
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
"techRecord_vehicleType": {
|
|
191
|
+
"title": "Vehicle Type",
|
|
192
|
+
"type": "string",
|
|
193
|
+
"enum": [
|
|
194
|
+
"psv",
|
|
195
|
+
"trl",
|
|
196
|
+
"hgv",
|
|
197
|
+
"car",
|
|
198
|
+
"lgv",
|
|
199
|
+
"motorcycle"
|
|
200
|
+
]
|
|
201
|
+
},
|
|
202
|
+
"vin": {
|
|
203
|
+
"type": "string"
|
|
204
|
+
},
|
|
205
|
+
"techRecord_vehicleSubclass": {
|
|
206
|
+
"title": "Vehicle Subclass",
|
|
207
|
+
"type": "array",
|
|
208
|
+
"items": {
|
|
209
|
+
"type": "string",
|
|
210
|
+
"enum": [
|
|
211
|
+
"n",
|
|
212
|
+
"p",
|
|
213
|
+
"a",
|
|
214
|
+
"s",
|
|
215
|
+
"c",
|
|
216
|
+
"l",
|
|
217
|
+
"t",
|
|
218
|
+
"e",
|
|
219
|
+
"m",
|
|
220
|
+
"r",
|
|
221
|
+
"w"
|
|
222
|
+
]
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"techRecord_numberOfWheelsDriven": {
|
|
226
|
+
"type": "integer"
|
|
227
|
+
},
|
|
228
|
+
"techRecord_hiddenInVta": {
|
|
229
|
+
"type": "boolean"
|
|
230
|
+
},
|
|
231
|
+
"techRecord_updateType": {
|
|
232
|
+
"type": "string"
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "PUT Tech Record Skeleton Motorcycle Schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"additionalProperties": false,
|
|
5
|
+
"required": [
|
|
6
|
+
"techRecord_vehicleClass_description",
|
|
7
|
+
"techRecord_reasonForCreation",
|
|
8
|
+
"vin"
|
|
9
|
+
],
|
|
10
|
+
"properties": {
|
|
11
|
+
"techRecord_applicantDetails_name": {
|
|
12
|
+
"type": [
|
|
13
|
+
"string",
|
|
14
|
+
"null"
|
|
15
|
+
],
|
|
16
|
+
"maxLength": 150
|
|
17
|
+
},
|
|
18
|
+
"techRecord_applicantDetails_address1": {
|
|
19
|
+
"type": [
|
|
20
|
+
"null",
|
|
21
|
+
"string"
|
|
22
|
+
],
|
|
23
|
+
"maxLength": 60
|
|
24
|
+
},
|
|
25
|
+
"techRecord_applicantDetails_address2": {
|
|
26
|
+
"type": [
|
|
27
|
+
"null",
|
|
28
|
+
"string"
|
|
29
|
+
],
|
|
30
|
+
"maxLength": 60
|
|
31
|
+
},
|
|
32
|
+
"techRecord_applicantDetails_postTown": {
|
|
33
|
+
"type": [
|
|
34
|
+
"null",
|
|
35
|
+
"string"
|
|
36
|
+
],
|
|
37
|
+
"maxLength": 60
|
|
38
|
+
},
|
|
39
|
+
"techRecord_applicantDetails_address3": {
|
|
40
|
+
"type": [
|
|
41
|
+
"null",
|
|
42
|
+
"string"
|
|
43
|
+
],
|
|
44
|
+
"maxLength": 60
|
|
45
|
+
},
|
|
46
|
+
"techRecord_applicantDetails_postCode": {
|
|
47
|
+
"type": [
|
|
48
|
+
"null",
|
|
49
|
+
"string"
|
|
50
|
+
],
|
|
51
|
+
"maxLength": 12
|
|
52
|
+
},
|
|
53
|
+
"techRecord_applicantDetails_telephoneNumber": {
|
|
54
|
+
"type": [
|
|
55
|
+
"null",
|
|
56
|
+
"string"
|
|
57
|
+
],
|
|
58
|
+
"maxLength": 25
|
|
59
|
+
},
|
|
60
|
+
"techRecord_applicantDetails_emailAddress": {
|
|
61
|
+
"type": [
|
|
62
|
+
"null",
|
|
63
|
+
"string"
|
|
64
|
+
],
|
|
65
|
+
"maxLength": 255
|
|
66
|
+
},
|
|
67
|
+
"createdTimestamp": {
|
|
68
|
+
"type": [
|
|
69
|
+
"string"
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
"partialVin": {
|
|
73
|
+
"type": "string"
|
|
74
|
+
},
|
|
75
|
+
"primaryVrm": {
|
|
76
|
+
"type": "string"
|
|
77
|
+
},
|
|
78
|
+
"systemNumber": {
|
|
79
|
+
"type": "string"
|
|
80
|
+
},
|
|
81
|
+
"techRecord_createdAt": {
|
|
82
|
+
"type": "string"
|
|
83
|
+
},
|
|
84
|
+
"techRecord_createdById": {
|
|
85
|
+
"type": "string"
|
|
86
|
+
},
|
|
87
|
+
"techRecord_createdByName": {
|
|
88
|
+
"type": "string"
|
|
89
|
+
},
|
|
90
|
+
"techRecord_euVehicleCategory": {
|
|
91
|
+
"title": "EU vehicle category",
|
|
92
|
+
"type": "string",
|
|
93
|
+
"enum": [
|
|
94
|
+
"m1",
|
|
95
|
+
"m2",
|
|
96
|
+
"m3",
|
|
97
|
+
"n1",
|
|
98
|
+
"n2",
|
|
99
|
+
"n3",
|
|
100
|
+
"o1",
|
|
101
|
+
"o2",
|
|
102
|
+
"o3",
|
|
103
|
+
"o4",
|
|
104
|
+
"l1e-a",
|
|
105
|
+
"l1e",
|
|
106
|
+
"l2e",
|
|
107
|
+
"l3e",
|
|
108
|
+
"l4e",
|
|
109
|
+
"l5e",
|
|
110
|
+
"l6e",
|
|
111
|
+
"l7e"
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
"techRecord_lastUpdatedAt": {
|
|
115
|
+
"type": [
|
|
116
|
+
"string",
|
|
117
|
+
"null"
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
"techRecord_lastUpdatedById": {
|
|
121
|
+
"type": [
|
|
122
|
+
"string",
|
|
123
|
+
"null"
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
"techRecord_lastUpdatedByName": {
|
|
127
|
+
"type": [
|
|
128
|
+
"string",
|
|
129
|
+
"null"
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
"techRecord_manufactureYear": {
|
|
133
|
+
"type": [
|
|
134
|
+
"string",
|
|
135
|
+
"null"
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
"techRecord_recordCompleteness": {
|
|
139
|
+
"type": "string"
|
|
140
|
+
},
|
|
141
|
+
"techRecord_noOfAxles": {
|
|
142
|
+
"type": "integer"
|
|
143
|
+
},
|
|
144
|
+
"techRecord_notes": {
|
|
145
|
+
"type": "string"
|
|
146
|
+
},
|
|
147
|
+
"techRecord_reasonForCreation": {
|
|
148
|
+
"type": "string"
|
|
149
|
+
},
|
|
150
|
+
"techRecord_regnDate": {
|
|
151
|
+
"type": [
|
|
152
|
+
"string",
|
|
153
|
+
"null"
|
|
154
|
+
]
|
|
155
|
+
},
|
|
156
|
+
"techRecord_statusCode": {
|
|
157
|
+
"title": "Status Code",
|
|
158
|
+
"type": "string",
|
|
159
|
+
"enum": [
|
|
160
|
+
"provisional",
|
|
161
|
+
"current",
|
|
162
|
+
"archived"
|
|
163
|
+
]
|
|
164
|
+
},
|
|
165
|
+
"techRecord_vehicleConfiguration": {
|
|
166
|
+
"title": "Vehicle Configuration",
|
|
167
|
+
"type": "string",
|
|
168
|
+
"enum": [
|
|
169
|
+
"rigid",
|
|
170
|
+
"articulated",
|
|
171
|
+
"centre axle drawbar",
|
|
172
|
+
"semi-car transporter",
|
|
173
|
+
"semi-trailer",
|
|
174
|
+
"long semi-trailer",
|
|
175
|
+
"low loader",
|
|
176
|
+
"other",
|
|
177
|
+
"drawbar",
|
|
178
|
+
"four-in-line",
|
|
179
|
+
"dolly",
|
|
180
|
+
"full drawbar"
|
|
181
|
+
]
|
|
182
|
+
},
|
|
183
|
+
"techRecord_vehicleType": {
|
|
184
|
+
"title": "Vehicle Type",
|
|
185
|
+
"type": "string",
|
|
186
|
+
"enum": [
|
|
187
|
+
"psv",
|
|
188
|
+
"trl",
|
|
189
|
+
"hgv",
|
|
190
|
+
"car",
|
|
191
|
+
"lgv",
|
|
192
|
+
"motorcycle"
|
|
193
|
+
]
|
|
194
|
+
},
|
|
195
|
+
"vin": {
|
|
196
|
+
"type": "string"
|
|
197
|
+
},
|
|
198
|
+
"techRecord_hiddenInVta": {
|
|
199
|
+
"type": "boolean"
|
|
200
|
+
},
|
|
201
|
+
"techRecord_updateType": {
|
|
202
|
+
"type": "string"
|
|
203
|
+
},
|
|
204
|
+
"secondaryVrms": {
|
|
205
|
+
"type": "array",
|
|
206
|
+
"items": {
|
|
207
|
+
"type": "string"
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
package/package.json
CHANGED
package/schema-validator.d.ts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { ErrorObject } from "ajv";
|
|
2
2
|
import { schemas } from "./schemas";
|
|
3
3
|
export declare type Schema = typeof schemas[number];
|
|
4
|
+
/**
|
|
5
|
+
* Validate an object according to a JSON schema
|
|
6
|
+
* @param {Schema} schemaName `enum` - the name of the JSON schema to validate against
|
|
7
|
+
* @param {object} objectToValidate `object` - the object to validate
|
|
8
|
+
* @param {boolean | undefined} returnErrors `boolean` - Optional. Toggles between returning a boolean or the validation errors. Defaults to false.
|
|
9
|
+
* @param {boolean | undefined} logErrors `boolean` - Optional. Toggles the logging of errors to the console. Defaults to false.
|
|
10
|
+
* @returns {boolean | ErrorObject[]}`boolean | validationErrors`, depending on `returnErrors` flag.
|
|
11
|
+
*/
|
|
4
12
|
export declare function isValidObject<B extends boolean | undefined>(schemaName: Schema, objectToValidate: object): boolean;
|
|
5
13
|
export declare function isValidObject<B extends boolean | undefined>(schemaName: Schema, objectToValidate: object, returnErrors: B): B extends false ? boolean : ErrorObject[];
|
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/complete/index.json", "v3/tech-record/get/search/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/psv/complete/index.json", "v3/tech-record/put/psv/skeleton/index.json", "v3/tech-record/put/psv/testable/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 ["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/complete/index.json", "v3/tech-record/get/search/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/trl/complete/index.json", "v3/tech-record/put/trl/skeleton/index.json", "v3/tech-record/put/trl/testable/index.json"];
|
package/schemas.js
CHANGED
|
@@ -39,6 +39,8 @@ exports.schemas = [
|
|
|
39
39
|
"v3/tech-record/put/hgv/testable/index.json",
|
|
40
40
|
"v3/tech-record/put/lgv/complete/index.json",
|
|
41
41
|
"v3/tech-record/put/lgv/skeleton/index.json",
|
|
42
|
+
"v3/tech-record/put/motorcycle/complete/index.json",
|
|
43
|
+
"v3/tech-record/put/motorcycle/skeleton/index.json",
|
|
42
44
|
"v3/tech-record/put/psv/complete/index.json",
|
|
43
45
|
"v3/tech-record/put/psv/skeleton/index.json",
|
|
44
46
|
"v3/tech-record/put/psv/testable/index.json",
|
|
@@ -69,7 +69,7 @@ export interface TechRecordCompleteCarSchema {
|
|
|
69
69
|
techRecord_regnDate?: string | null;
|
|
70
70
|
techRecord_statusCode?: StatusCode;
|
|
71
71
|
techRecord_vehicleConfiguration?: VehicleConfiguration;
|
|
72
|
-
techRecord_vehicleType
|
|
72
|
+
techRecord_vehicleType: VehicleType;
|
|
73
73
|
vin: string;
|
|
74
74
|
techRecord_vehicleSubclass: VehicleSubclass;
|
|
75
75
|
techRecord_hiddenInVta?: boolean;
|
|
@@ -68,7 +68,7 @@ export interface TechRecordSkeletonCarSchema {
|
|
|
68
68
|
techRecord_regnDate?: string | null;
|
|
69
69
|
techRecord_statusCode?: StatusCode;
|
|
70
70
|
techRecord_vehicleConfiguration?: VehicleConfiguration;
|
|
71
|
-
techRecord_vehicleType
|
|
71
|
+
techRecord_vehicleType: VehicleType;
|
|
72
72
|
vin: string;
|
|
73
73
|
techRecord_hiddenInVta?: boolean;
|
|
74
74
|
techRecord_updateType?: string;
|
|
@@ -69,7 +69,7 @@ export interface TechRecordCompleteLGVSchema {
|
|
|
69
69
|
techRecord_regnDate?: string | null;
|
|
70
70
|
techRecord_statusCode?: StatusCode;
|
|
71
71
|
techRecord_vehicleConfiguration?: VehicleConfiguration;
|
|
72
|
-
techRecord_vehicleType
|
|
72
|
+
techRecord_vehicleType: VehicleType;
|
|
73
73
|
vin: string;
|
|
74
74
|
techRecord_vehicleSubclass: VehicleSubclass;
|
|
75
75
|
techRecord_hiddenInVta?: boolean;
|
|
@@ -68,7 +68,7 @@ export interface TechRecordSkeletonCarSchema {
|
|
|
68
68
|
techRecord_regnDate?: string | null;
|
|
69
69
|
techRecord_statusCode?: StatusCode;
|
|
70
70
|
techRecord_vehicleConfiguration?: VehicleConfiguration;
|
|
71
|
-
techRecord_vehicleType
|
|
71
|
+
techRecord_vehicleType: VehicleType;
|
|
72
72
|
vin: string;
|
|
73
73
|
techRecord_hiddenInVta?: boolean;
|
|
74
74
|
techRecord_updateType?: string;
|
|
@@ -52,12 +52,12 @@ export interface TechRecordCompleteMotorcycleSchema {
|
|
|
52
52
|
techRecord_applicantDetails_telephoneNumber?: null | string;
|
|
53
53
|
techRecord_applicantDetails_emailAddress?: null | string;
|
|
54
54
|
createdTimestamp: string;
|
|
55
|
-
partialVin
|
|
56
|
-
primaryVrm
|
|
55
|
+
partialVin: string;
|
|
56
|
+
primaryVrm: string;
|
|
57
57
|
systemNumber: string;
|
|
58
58
|
techRecord_createdAt?: string;
|
|
59
|
-
techRecord_createdById
|
|
60
|
-
techRecord_createdByName
|
|
59
|
+
techRecord_createdById: string;
|
|
60
|
+
techRecord_createdByName: string;
|
|
61
61
|
techRecord_euVehicleCategory?: EUVehicleCategory;
|
|
62
62
|
techRecord_lastUpdatedAt?: string | null;
|
|
63
63
|
techRecord_lastUpdatedById?: string | null;
|
|
@@ -66,14 +66,14 @@ export interface TechRecordCompleteMotorcycleSchema {
|
|
|
66
66
|
techRecord_recordCompleteness?: string;
|
|
67
67
|
techRecord_noOfAxles?: number;
|
|
68
68
|
techRecord_notes?: string;
|
|
69
|
-
techRecord_reasonForCreation
|
|
69
|
+
techRecord_reasonForCreation: string;
|
|
70
70
|
techRecord_regnDate?: string | null;
|
|
71
71
|
techRecord_statusCode?: StatusCode;
|
|
72
72
|
techRecord_vehicleConfiguration?: VehicleConfiguration;
|
|
73
73
|
techRecord_vehicleType?: VehicleType;
|
|
74
74
|
vin: string;
|
|
75
|
-
techRecord_vehicleSubclass
|
|
76
|
-
|
|
75
|
+
techRecord_vehicleSubclass?: VehicleSubclass;
|
|
76
|
+
techRecord_numberOfWheelsDriven: number;
|
|
77
77
|
techRecord_hiddenInVta?: boolean;
|
|
78
78
|
techRecord_updateType?: string;
|
|
79
79
|
}
|
|
@@ -49,13 +49,13 @@ export interface TechRecordSkeletonMotorcycleSchema {
|
|
|
49
49
|
techRecord_applicantDetails_postCode?: null | string;
|
|
50
50
|
techRecord_applicantDetails_telephoneNumber?: null | string;
|
|
51
51
|
techRecord_applicantDetails_emailAddress?: null | string;
|
|
52
|
-
createdTimestamp
|
|
53
|
-
partialVin
|
|
54
|
-
primaryVrm
|
|
55
|
-
systemNumber
|
|
52
|
+
createdTimestamp: string;
|
|
53
|
+
partialVin: string;
|
|
54
|
+
primaryVrm: string;
|
|
55
|
+
systemNumber: string;
|
|
56
56
|
techRecord_createdAt?: string;
|
|
57
|
-
techRecord_createdById
|
|
58
|
-
techRecord_createdByName
|
|
57
|
+
techRecord_createdById: string;
|
|
58
|
+
techRecord_createdByName: string;
|
|
59
59
|
techRecord_euVehicleCategory?: EUVehicleCategory;
|
|
60
60
|
techRecord_lastUpdatedAt?: string | null;
|
|
61
61
|
techRecord_lastUpdatedById?: string | null;
|
|
@@ -64,12 +64,12 @@ export interface TechRecordSkeletonMotorcycleSchema {
|
|
|
64
64
|
techRecord_recordCompleteness?: string;
|
|
65
65
|
techRecord_noOfAxles?: number;
|
|
66
66
|
techRecord_notes?: string;
|
|
67
|
-
techRecord_reasonForCreation
|
|
67
|
+
techRecord_reasonForCreation: string;
|
|
68
68
|
techRecord_regnDate?: string | null;
|
|
69
69
|
techRecord_statusCode?: StatusCode;
|
|
70
70
|
techRecord_vehicleConfiguration?: VehicleConfiguration;
|
|
71
71
|
techRecord_vehicleType?: VehicleType;
|
|
72
|
-
vin
|
|
72
|
+
vin: string;
|
|
73
73
|
techRecord_hiddenInVta?: boolean;
|
|
74
74
|
techRecord_updateType?: string;
|
|
75
75
|
secondaryVrms?: string[];
|
|
@@ -14,7 +14,7 @@ export interface TechRecordPUTRequestCompleteCarSchema {
|
|
|
14
14
|
primaryVrm?: string;
|
|
15
15
|
trailerId?: string | null;
|
|
16
16
|
techRecord_reasonForCreation?: string | null;
|
|
17
|
-
techRecord_vehicleType
|
|
17
|
+
techRecord_vehicleType: VehicleType;
|
|
18
18
|
techRecord_statusCode?: StatusCode;
|
|
19
19
|
techRecord_regnDate?: string | null;
|
|
20
20
|
techRecord_manufactureYear?: string | null;
|
|
@@ -5,6 +5,25 @@
|
|
|
5
5
|
* and run json-schema-to-typescript to regenerate this file.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
export type EUVehicleCategory =
|
|
9
|
+
| "m1"
|
|
10
|
+
| "m2"
|
|
11
|
+
| "m3"
|
|
12
|
+
| "n1"
|
|
13
|
+
| "n2"
|
|
14
|
+
| "n3"
|
|
15
|
+
| "o1"
|
|
16
|
+
| "o2"
|
|
17
|
+
| "o3"
|
|
18
|
+
| "o4"
|
|
19
|
+
| "l1e-a"
|
|
20
|
+
| "l1e"
|
|
21
|
+
| "l2e"
|
|
22
|
+
| "l3e"
|
|
23
|
+
| "l4e"
|
|
24
|
+
| "l5e"
|
|
25
|
+
| "l6e"
|
|
26
|
+
| "l7e";
|
|
8
27
|
export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
|
|
9
28
|
export type StatusCode = "provisional" | "current" | "archived";
|
|
10
29
|
export type VehicleSubclass = ("n" | "p" | "a" | "s" | "c" | "l" | "t" | "e" | "m" | "r" | "w")[];
|
|
@@ -21,8 +40,9 @@ export interface TechRecordCompleteLGVSchema {
|
|
|
21
40
|
techRecord_applicantDetails_postCode?: null | string;
|
|
22
41
|
techRecord_applicantDetails_telephoneNumber?: null | string;
|
|
23
42
|
techRecord_applicantDetails_emailAddress?: null | string;
|
|
43
|
+
techRecord_euVehicleCategory?: EUVehicleCategory;
|
|
24
44
|
techRecord_reasonForCreation?: string | null;
|
|
25
|
-
techRecord_vehicleType
|
|
45
|
+
techRecord_vehicleType: VehicleType;
|
|
26
46
|
techRecord_statusCode?: StatusCode;
|
|
27
47
|
techRecord_regnDate?: string | null;
|
|
28
48
|
techRecord_manufactureYear?: string | null;
|
|
@@ -5,6 +5,25 @@
|
|
|
5
5
|
* and run json-schema-to-typescript to regenerate this file.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
export type EUVehicleCategory =
|
|
9
|
+
| "m1"
|
|
10
|
+
| "m2"
|
|
11
|
+
| "m3"
|
|
12
|
+
| "n1"
|
|
13
|
+
| "n2"
|
|
14
|
+
| "n3"
|
|
15
|
+
| "o1"
|
|
16
|
+
| "o2"
|
|
17
|
+
| "o3"
|
|
18
|
+
| "o4"
|
|
19
|
+
| "l1e-a"
|
|
20
|
+
| "l1e"
|
|
21
|
+
| "l2e"
|
|
22
|
+
| "l3e"
|
|
23
|
+
| "l4e"
|
|
24
|
+
| "l5e"
|
|
25
|
+
| "l6e"
|
|
26
|
+
| "l7e";
|
|
8
27
|
export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
|
|
9
28
|
export type StatusCode = "provisional" | "current" | "archived";
|
|
10
29
|
|
|
@@ -20,6 +39,7 @@ export interface TechRecordCompleteCarSchema {
|
|
|
20
39
|
techRecord_applicantDetails_postCode?: null | string;
|
|
21
40
|
techRecord_applicantDetails_telephoneNumber?: null | string;
|
|
22
41
|
techRecord_applicantDetails_emailAddress?: null | string;
|
|
42
|
+
techRecord_euVehicleCategory?: EUVehicleCategory;
|
|
23
43
|
techRecord_reasonForCreation?: string | null;
|
|
24
44
|
techRecord_vehicleType: VehicleType;
|
|
25
45
|
techRecord_statusCode?: StatusCode;
|
|
@@ -0,0 +1,79 @@
|
|
|
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 EUVehicleCategory =
|
|
9
|
+
| "m1"
|
|
10
|
+
| "m2"
|
|
11
|
+
| "m3"
|
|
12
|
+
| "n1"
|
|
13
|
+
| "n2"
|
|
14
|
+
| "n3"
|
|
15
|
+
| "o1"
|
|
16
|
+
| "o2"
|
|
17
|
+
| "o3"
|
|
18
|
+
| "o4"
|
|
19
|
+
| "l1e-a"
|
|
20
|
+
| "l1e"
|
|
21
|
+
| "l2e"
|
|
22
|
+
| "l3e"
|
|
23
|
+
| "l4e"
|
|
24
|
+
| "l5e"
|
|
25
|
+
| "l6e"
|
|
26
|
+
| "l7e";
|
|
27
|
+
export type StatusCode = "provisional" | "current" | "archived";
|
|
28
|
+
export type VehicleConfiguration =
|
|
29
|
+
| "rigid"
|
|
30
|
+
| "articulated"
|
|
31
|
+
| "centre axle drawbar"
|
|
32
|
+
| "semi-car transporter"
|
|
33
|
+
| "semi-trailer"
|
|
34
|
+
| "long semi-trailer"
|
|
35
|
+
| "low loader"
|
|
36
|
+
| "other"
|
|
37
|
+
| "drawbar"
|
|
38
|
+
| "four-in-line"
|
|
39
|
+
| "dolly"
|
|
40
|
+
| "full drawbar";
|
|
41
|
+
export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
|
|
42
|
+
export type VehicleSubclass = ("n" | "p" | "a" | "s" | "c" | "l" | "t" | "e" | "m" | "r" | "w")[];
|
|
43
|
+
|
|
44
|
+
export interface PUTTechRecordCompleteMotorcycleSchema {
|
|
45
|
+
secondaryVrms?: string[];
|
|
46
|
+
techRecord_applicantDetails_name?: string | null;
|
|
47
|
+
techRecord_applicantDetails_address1?: null | string;
|
|
48
|
+
techRecord_applicantDetails_address2?: null | string;
|
|
49
|
+
techRecord_applicantDetails_postTown?: null | string;
|
|
50
|
+
techRecord_applicantDetails_address3?: null | string;
|
|
51
|
+
techRecord_applicantDetails_postCode?: null | string;
|
|
52
|
+
techRecord_applicantDetails_telephoneNumber?: null | string;
|
|
53
|
+
techRecord_applicantDetails_emailAddress?: null | string;
|
|
54
|
+
createdTimestamp?: string;
|
|
55
|
+
partialVin?: string;
|
|
56
|
+
primaryVrm?: string;
|
|
57
|
+
systemNumber?: string;
|
|
58
|
+
techRecord_createdAt?: string;
|
|
59
|
+
techRecord_createdById?: string;
|
|
60
|
+
techRecord_createdByName?: string;
|
|
61
|
+
techRecord_euVehicleCategory?: EUVehicleCategory;
|
|
62
|
+
techRecord_lastUpdatedAt?: string | null;
|
|
63
|
+
techRecord_lastUpdatedById?: string | null;
|
|
64
|
+
techRecord_lastUpdatedByName?: string | null;
|
|
65
|
+
techRecord_manufactureYear?: string | null;
|
|
66
|
+
techRecord_recordCompleteness?: string;
|
|
67
|
+
techRecord_noOfAxles?: number;
|
|
68
|
+
techRecord_notes?: string;
|
|
69
|
+
techRecord_reasonForCreation: string;
|
|
70
|
+
techRecord_regnDate?: string | null;
|
|
71
|
+
techRecord_statusCode?: StatusCode;
|
|
72
|
+
techRecord_vehicleConfiguration?: VehicleConfiguration;
|
|
73
|
+
techRecord_vehicleType?: VehicleType;
|
|
74
|
+
vin: string;
|
|
75
|
+
techRecord_vehicleSubclass?: VehicleSubclass;
|
|
76
|
+
techRecord_numberOfWheelsDriven: number;
|
|
77
|
+
techRecord_hiddenInVta?: boolean;
|
|
78
|
+
techRecord_updateType?: string;
|
|
79
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
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 EUVehicleCategory =
|
|
9
|
+
| "m1"
|
|
10
|
+
| "m2"
|
|
11
|
+
| "m3"
|
|
12
|
+
| "n1"
|
|
13
|
+
| "n2"
|
|
14
|
+
| "n3"
|
|
15
|
+
| "o1"
|
|
16
|
+
| "o2"
|
|
17
|
+
| "o3"
|
|
18
|
+
| "o4"
|
|
19
|
+
| "l1e-a"
|
|
20
|
+
| "l1e"
|
|
21
|
+
| "l2e"
|
|
22
|
+
| "l3e"
|
|
23
|
+
| "l4e"
|
|
24
|
+
| "l5e"
|
|
25
|
+
| "l6e"
|
|
26
|
+
| "l7e";
|
|
27
|
+
export type StatusCode = "provisional" | "current" | "archived";
|
|
28
|
+
export type VehicleConfiguration =
|
|
29
|
+
| "rigid"
|
|
30
|
+
| "articulated"
|
|
31
|
+
| "centre axle drawbar"
|
|
32
|
+
| "semi-car transporter"
|
|
33
|
+
| "semi-trailer"
|
|
34
|
+
| "long semi-trailer"
|
|
35
|
+
| "low loader"
|
|
36
|
+
| "other"
|
|
37
|
+
| "drawbar"
|
|
38
|
+
| "four-in-line"
|
|
39
|
+
| "dolly"
|
|
40
|
+
| "full drawbar";
|
|
41
|
+
export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
|
|
42
|
+
|
|
43
|
+
export interface PUTTechRecordSkeletonMotorcycleSchema {
|
|
44
|
+
techRecord_applicantDetails_name?: string | null;
|
|
45
|
+
techRecord_applicantDetails_address1?: null | string;
|
|
46
|
+
techRecord_applicantDetails_address2?: null | string;
|
|
47
|
+
techRecord_applicantDetails_postTown?: null | string;
|
|
48
|
+
techRecord_applicantDetails_address3?: null | string;
|
|
49
|
+
techRecord_applicantDetails_postCode?: null | string;
|
|
50
|
+
techRecord_applicantDetails_telephoneNumber?: null | string;
|
|
51
|
+
techRecord_applicantDetails_emailAddress?: null | string;
|
|
52
|
+
createdTimestamp?: string;
|
|
53
|
+
partialVin?: string;
|
|
54
|
+
primaryVrm?: string;
|
|
55
|
+
systemNumber?: string;
|
|
56
|
+
techRecord_createdAt?: string;
|
|
57
|
+
techRecord_createdById?: string;
|
|
58
|
+
techRecord_createdByName?: string;
|
|
59
|
+
techRecord_euVehicleCategory?: EUVehicleCategory;
|
|
60
|
+
techRecord_lastUpdatedAt?: string | null;
|
|
61
|
+
techRecord_lastUpdatedById?: string | null;
|
|
62
|
+
techRecord_lastUpdatedByName?: string | null;
|
|
63
|
+
techRecord_manufactureYear?: string | null;
|
|
64
|
+
techRecord_recordCompleteness?: string;
|
|
65
|
+
techRecord_noOfAxles?: number;
|
|
66
|
+
techRecord_notes?: string;
|
|
67
|
+
techRecord_reasonForCreation: string;
|
|
68
|
+
techRecord_regnDate?: string | null;
|
|
69
|
+
techRecord_statusCode?: StatusCode;
|
|
70
|
+
techRecord_vehicleConfiguration?: VehicleConfiguration;
|
|
71
|
+
techRecord_vehicleType?: VehicleType;
|
|
72
|
+
vin: string;
|
|
73
|
+
techRecord_hiddenInVta?: boolean;
|
|
74
|
+
techRecord_updateType?: string;
|
|
75
|
+
secondaryVrms?: string[];
|
|
76
|
+
}
|
|
@@ -183,7 +183,7 @@ export type MicrofilmDocumentType =
|
|
|
183
183
|
| "PRT - Tr Plating Cert paid"
|
|
184
184
|
| "Tempo 100 Permit";
|
|
185
185
|
|
|
186
|
-
export interface
|
|
186
|
+
export interface PUTPSVTechnicalRecordV3Complete {
|
|
187
187
|
vin: string;
|
|
188
188
|
partialVin?: string | null;
|
|
189
189
|
systemNumber: string;
|
|
@@ -183,7 +183,7 @@ export type MicrofilmDocumentType =
|
|
|
183
183
|
| "PRT - Tr Plating Cert paid"
|
|
184
184
|
| "Tempo 100 Permit";
|
|
185
185
|
|
|
186
|
-
export interface
|
|
186
|
+
export interface PUTPSVTechnicalRecordV3Skeleton {
|
|
187
187
|
vin: string;
|
|
188
188
|
partialVin?: string | null;
|
|
189
189
|
systemNumber: string;
|
|
@@ -183,7 +183,7 @@ export type MicrofilmDocumentType =
|
|
|
183
183
|
| "PRT - Tr Plating Cert paid"
|
|
184
184
|
| "Tempo 100 Permit";
|
|
185
185
|
|
|
186
|
-
export interface
|
|
186
|
+
export interface PUTPSVTechnicalRecordV3Testable {
|
|
187
187
|
vin: string;
|
|
188
188
|
partialVin?: string | null;
|
|
189
189
|
systemNumber: string;
|