@dvsa/cvs-type-definitions 3.0.28 → 3.0.30

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 (29) hide show
  1. package/json-schemas/v3/tech-record/get/car/complete/index.json +17 -31
  2. package/json-schemas/v3/tech-record/get/car/skeleton/index.json +12 -28
  3. package/json-schemas/v3/tech-record/get/hgv/complete/index.json +2 -8
  4. package/json-schemas/v3/tech-record/get/psv/complete/index.json +9 -26
  5. package/json-schemas/v3/tech-record/get/psv/testable/index.json +4 -15
  6. package/json-schemas/v3/tech-record/put/car/complete/index.json +93 -28
  7. package/json-schemas/v3/tech-record/put/car/skeleton/index.json +91 -28
  8. package/json-schemas/v3/tech-record/put/hgv/complete/index.json +2 -8
  9. package/json-schemas/v3/tech-record/put/lgv/complete/index.json +2 -1
  10. package/json-schemas/v3/tech-record/put/lgv/skeleton/index.json +2 -1
  11. package/json-schemas/v3/tech-record/put/motorcycle/complete/index.json +8 -14
  12. package/json-schemas/v3/tech-record/put/motorcycle/skeleton/index.json +8 -14
  13. package/json-schemas/v3/tech-record/put/psv/complete/index.json +8 -22
  14. package/json-schemas/v3/tech-record/put/psv/testable/index.json +3 -10
  15. package/package.json +1 -1
  16. package/types/v3/tech-record/get/car/complete/index.d.ts +8 -8
  17. package/types/v3/tech-record/get/car/skeleton/index.d.ts +6 -6
  18. package/types/v3/tech-record/get/hgv/complete/index.d.ts +2 -2
  19. package/types/v3/tech-record/get/psv/complete/index.d.ts +3 -3
  20. package/types/v3/tech-record/get/psv/testable/index.d.ts +3 -3
  21. package/types/v3/tech-record/put/car/complete/index.d.ts +31 -4
  22. package/types/v3/tech-record/put/car/skeleton/index.d.ts +31 -4
  23. package/types/v3/tech-record/put/hgv/complete/index.d.ts +2 -2
  24. package/types/v3/tech-record/put/lgv/complete/index.d.ts +1 -1
  25. package/types/v3/tech-record/put/lgv/skeleton/index.d.ts +1 -1
  26. package/types/v3/tech-record/put/motorcycle/complete/index.d.ts +1 -1
  27. package/types/v3/tech-record/put/motorcycle/skeleton/index.d.ts +1 -1
  28. package/types/v3/tech-record/put/psv/complete/index.d.ts +2 -2
  29. package/types/v3/tech-record/put/psv/testable/index.d.ts +1 -1
@@ -3,11 +3,18 @@
3
3
  "type": "object",
4
4
  "additionalProperties": false,
5
5
  "required": [
6
- "techRecord_vehicleSubclass",
7
- "createdTimestamp",
8
6
  "systemNumber",
9
7
  "vin",
10
- "techRecord_vehicleType"
8
+ "createdTimestamp",
9
+ "techRecord_vehicleSubclass",
10
+ "techRecord_vehicleType",
11
+ "techRecord_createdAt",
12
+ "techRecord_createdById",
13
+ "techRecord_createdByName",
14
+ "techRecord_reasonForCreation",
15
+ "techRecord_statusCode",
16
+ "techRecord_noOfAxles",
17
+ "primaryVrm"
11
18
  ],
12
19
  "properties": {
13
20
  "techRecord_applicantDetails_name": {
@@ -78,31 +85,19 @@
78
85
  ]
79
86
  },
80
87
  "primaryVrm": {
81
- "type": [
82
- "null",
83
- "string"
84
- ]
88
+ "type": "string"
85
89
  },
86
90
  "systemNumber": {
87
91
  "type": "string"
88
92
  },
89
93
  "techRecord_createdAt": {
90
- "type": [
91
- "null",
92
- "string"
93
- ]
94
+ "type": "string"
94
95
  },
95
96
  "techRecord_createdById": {
96
- "type": [
97
- "null",
98
- "string"
99
- ]
97
+ "type": "string"
100
98
  },
101
99
  "techRecord_createdByName": {
102
- "type": [
103
- "null",
104
- "string"
105
- ]
100
+ "type": "string"
106
101
  },
107
102
  "techRecord_euVehicleCategory": {
108
103
  "anyOf": [
@@ -160,16 +155,10 @@
160
155
  ]
161
156
  },
162
157
  "techRecord_recordCompleteness": {
163
- "type": [
164
- "null",
165
- "string"
166
- ]
158
+ "const": "complete"
167
159
  },
168
160
  "techRecord_noOfAxles": {
169
- "type": [
170
- "null",
171
- "integer"
172
- ]
161
+ "type": "integer"
173
162
  },
174
163
  "techRecord_notes": {
175
164
  "type": [
@@ -178,10 +167,7 @@
178
167
  ]
179
168
  },
180
169
  "techRecord_reasonForCreation": {
181
- "type": [
182
- "null",
183
- "string"
184
- ]
170
+ "type": "string"
185
171
  },
186
172
  "techRecord_regnDate": {
187
173
  "type": [
@@ -6,7 +6,11 @@
6
6
  "createdTimestamp",
7
7
  "systemNumber",
8
8
  "vin",
9
- "techRecord_vehicleType"
9
+ "techRecord_vehicleType",
10
+ "techRecord_createdAt",
11
+ "techRecord_createdById",
12
+ "techRecord_createdByName",
13
+ "primaryVrm"
10
14
  ],
11
15
  "properties": {
12
16
  "techRecord_applicantDetails_name": {
@@ -66,9 +70,7 @@
66
70
  "maxLength": 255
67
71
  },
68
72
  "createdTimestamp": {
69
- "type": [
70
- "string"
71
- ]
73
+ "type": "string"
72
74
  },
73
75
  "partialVin": {
74
76
  "type": [
@@ -77,31 +79,19 @@
77
79
  ]
78
80
  },
79
81
  "primaryVrm": {
80
- "type": [
81
- "null",
82
- "string"
83
- ]
82
+ "type": "string"
84
83
  },
85
84
  "systemNumber": {
86
85
  "type": "string"
87
86
  },
88
87
  "techRecord_createdAt": {
89
- "type": [
90
- "null",
91
- "string"
92
- ]
88
+ "type": "string"
93
89
  },
94
90
  "techRecord_createdById": {
95
- "type": [
96
- "null",
97
- "string"
98
- ]
91
+ "type": "string"
99
92
  },
100
93
  "techRecord_createdByName": {
101
- "type": [
102
- "null",
103
- "string"
104
- ]
94
+ "type": "string"
105
95
  },
106
96
  "techRecord_euVehicleCategory": {
107
97
  "anyOf": [
@@ -159,10 +149,7 @@
159
149
  ]
160
150
  },
161
151
  "techRecord_recordCompleteness": {
162
- "type": [
163
- "null",
164
- "string"
165
- ]
152
+ "const": "skeleton"
166
153
  },
167
154
  "techRecord_noOfAxles": {
168
155
  "type": [
@@ -177,10 +164,7 @@
177
164
  ]
178
165
  },
179
166
  "techRecord_reasonForCreation": {
180
- "type": [
181
- "null",
182
- "string"
183
- ]
167
+ "type": "string"
184
168
  },
185
169
  "techRecord_regnDate": {
186
170
  "type": [
@@ -379,17 +379,11 @@
379
379
  "maxLength": 150
380
380
  },
381
381
  "techRecord_applicantDetails_address1": {
382
- "type": [
383
- "null",
384
- "string"
385
- ],
382
+ "type": "string",
386
383
  "maxLength": 60
387
384
  },
388
385
  "techRecord_applicantDetails_address2": {
389
- "type": [
390
- "null",
391
- "string"
392
- ],
386
+ "type": "string",
393
387
  "maxLength": 60
394
388
  },
395
389
  "techRecord_applicantDetails_postTown": {
@@ -103,18 +103,11 @@
103
103
  ]
104
104
  },
105
105
  "techRecord_vehicleSize": {
106
- "anyOf": [
107
- {
108
- "title": "Vehicle Size",
109
- "type": "string",
110
- "enum": [
111
- "small",
112
- "large"
113
- ]
114
- },
115
- {
116
- "type": "null"
117
- }
106
+ "title": "Vehicle Size",
107
+ "type": "string",
108
+ "enum": [
109
+ "small",
110
+ "large"
118
111
  ]
119
112
  },
120
113
  "techRecord_seatsLowerDeck": {
@@ -212,16 +205,9 @@
212
205
  ]
213
206
  },
214
207
  "techRecord_noOfAxles": {
215
- "anyOf": [
216
- {
217
- "type": "integer",
218
- "minimum": 0,
219
- "maximum": 99
220
- },
221
- {
222
- "type": "null"
223
- }
224
- ]
208
+ "type": "integer",
209
+ "minimum": 0,
210
+ "maximum": 99
225
211
  },
226
212
  "techRecord_departmentalVehicleMarker": {
227
213
  "type": [
@@ -859,10 +845,7 @@
859
845
  "maxLength": 255
860
846
  },
861
847
  "techRecord_brakes_dtpNumber": {
862
- "type": [
863
- "string",
864
- "null"
865
- ],
848
+ "type": "string",
866
849
  "maxLength": 6
867
850
  },
868
851
  "techRecord_brakes_brakeCode": {
@@ -18,7 +18,6 @@
18
18
  "techRecord_reasonForCreation",
19
19
  "techRecord_vehicleClass_code",
20
20
  "techRecord_vehicleClass_description",
21
- "techRecord_createdAt",
22
21
  "techRecord_brakes_dtpNumber"
23
22
  ],
24
23
  "properties": {
@@ -184,16 +183,9 @@
184
183
  ]
185
184
  },
186
185
  "techRecord_noOfAxles": {
187
- "anyOf": [
188
- {
189
- "type": "integer",
190
- "minimum": 0,
191
- "maximum": 99
192
- },
193
- {
194
- "type": "null"
195
- }
196
- ]
186
+ "type": "integer",
187
+ "minimum": 0,
188
+ "maximum": 99
197
189
  },
198
190
  "techRecord_departmentalVehicleMarker": {
199
191
  "type": [
@@ -877,10 +869,7 @@
877
869
  "maxLength": 255
878
870
  },
879
871
  "techRecord_brakes_dtpNumber": {
880
- "type": [
881
- "string",
882
- "null"
883
- ],
872
+ "type": "string",
884
873
  "maxLength": 6
885
874
  },
886
875
  "techRecord_brakes_brakeCode": {
@@ -3,9 +3,12 @@
3
3
  "type": "object",
4
4
  "additionalProperties": false,
5
5
  "required": [
6
+ "vin",
6
7
  "techRecord_vehicleSubclass",
7
8
  "techRecord_vehicleType",
8
- "vin"
9
+ "techRecord_statusCode",
10
+ "techRecord_noOfAxles",
11
+ "techRecord_reasonForCreation"
9
12
  ],
10
13
  "properties": {
11
14
  "vin": {
@@ -17,35 +20,19 @@
17
20
  "string"
18
21
  ]
19
22
  },
20
- "trailerId": {
21
- "type": [
22
- "string",
23
- "null"
24
- ]
25
- },
26
23
  "techRecord_reasonForCreation": {
27
- "type": [
28
- "string",
29
- "null"
30
- ]
24
+ "type": "string"
31
25
  },
32
26
  "techRecord_vehicleType": {
33
27
  "const": "car"
34
28
  },
35
29
  "techRecord_statusCode": {
36
- "anyOf": [
37
- {
38
- "type": "null"
39
- },
40
- {
41
- "title": "Status Code",
42
- "type": "string",
43
- "enum": [
44
- "provisional",
45
- "current",
46
- "archived"
47
- ]
48
- }
30
+ "title": "Status Code",
31
+ "type": "string",
32
+ "enum": [
33
+ "provisional",
34
+ "current",
35
+ "archived"
49
36
  ]
50
37
  },
51
38
  "techRecord_regnDate": {
@@ -61,10 +48,7 @@
61
48
  ]
62
49
  },
63
50
  "techRecord_noOfAxles": {
64
- "type": [
65
- "integer",
66
- "null"
67
- ]
51
+ "type": "integer"
68
52
  },
69
53
  "techRecord_notes": {
70
54
  "type": "string"
@@ -109,6 +93,87 @@
109
93
  "items": {
110
94
  "type": "string"
111
95
  }
96
+ },
97
+ "techRecord_euVehicleCategory": {
98
+ "anyOf": [
99
+ {
100
+ "title": "EU vehicle category",
101
+ "type": "string",
102
+ "enum": [
103
+ "m1",
104
+ "m2",
105
+ "m3",
106
+ "n1",
107
+ "n2",
108
+ "n3",
109
+ "o1",
110
+ "o2",
111
+ "o3",
112
+ "o4",
113
+ "l1e-a",
114
+ "l1e",
115
+ "l2e",
116
+ "l3e",
117
+ "l4e",
118
+ "l5e",
119
+ "l6e",
120
+ "l7e"
121
+ ]
122
+ },
123
+ {
124
+ "type": "null"
125
+ }
126
+ ]
127
+ },
128
+ "techRecord_applicantDetails_name": {
129
+ "type": "string",
130
+ "maxLength": 150
131
+ },
132
+ "techRecord_applicantDetails_address1": {
133
+ "type": [
134
+ "null",
135
+ "string"
136
+ ],
137
+ "maxLength": 60
138
+ },
139
+ "techRecord_applicantDetails_address2": {
140
+ "type": [
141
+ "null",
142
+ "string"
143
+ ],
144
+ "maxLength": 60
145
+ },
146
+ "techRecord_applicantDetails_postTown": {
147
+ "type": "string",
148
+ "maxLength": 60
149
+ },
150
+ "techRecord_applicantDetails_address3": {
151
+ "type": [
152
+ "null",
153
+ "string"
154
+ ],
155
+ "maxLength": 60
156
+ },
157
+ "techRecord_applicantDetails_postCode": {
158
+ "type": [
159
+ "null",
160
+ "string"
161
+ ],
162
+ "maxLength": 12
163
+ },
164
+ "techRecord_applicantDetails_telephoneNumber": {
165
+ "type": [
166
+ "null",
167
+ "string"
168
+ ],
169
+ "maxLength": 25
170
+ },
171
+ "techRecord_applicantDetails_emailAddress": {
172
+ "type": [
173
+ "null",
174
+ "string"
175
+ ],
176
+ "maxLength": 255
112
177
  }
113
178
  }
114
179
  }
@@ -4,47 +4,29 @@
4
4
  "additionalProperties": false,
5
5
  "required": [
6
6
  "vin",
7
- "techRecord_vehicleType"
7
+ "techRecord_vehicleType",
8
+ "techRecord_reasonForCreation"
8
9
  ],
9
10
  "properties": {
10
11
  "vin": {
11
12
  "type": "string"
12
13
  },
13
14
  "primaryVrm": {
14
- "type": [
15
- "null",
16
- "string"
17
- ]
18
- },
19
- "trailerId": {
20
- "type": [
21
- "string",
22
- "null"
23
- ]
15
+ "type": "string"
24
16
  },
25
17
  "techRecord_reasonForCreation": {
26
- "type": [
27
- "string",
28
- "null"
29
- ]
18
+ "type": "string"
30
19
  },
31
20
  "techRecord_vehicleType": {
32
21
  "const": "car"
33
22
  },
34
23
  "techRecord_statusCode": {
35
- "anyOf": [
36
- {
37
- "type": "null"
38
- },
39
- {
40
- "title": "Status Code",
41
- "type": "string",
42
- "enum": [
43
- "provisional",
44
- "current",
45
- "archived"
46
- ]
47
- }
24
+ "title": "Status Code",
25
+ "type": "string",
26
+ "enum": [
27
+ "provisional",
28
+ "current",
29
+ "archived"
48
30
  ]
49
31
  },
50
32
  "techRecord_regnDate": {
@@ -111,6 +93,87 @@
111
93
  "w"
112
94
  ]
113
95
  }
96
+ },
97
+ "techRecord_euVehicleCategory": {
98
+ "anyOf": [
99
+ {
100
+ "title": "EU vehicle category",
101
+ "type": "string",
102
+ "enum": [
103
+ "m1",
104
+ "m2",
105
+ "m3",
106
+ "n1",
107
+ "n2",
108
+ "n3",
109
+ "o1",
110
+ "o2",
111
+ "o3",
112
+ "o4",
113
+ "l1e-a",
114
+ "l1e",
115
+ "l2e",
116
+ "l3e",
117
+ "l4e",
118
+ "l5e",
119
+ "l6e",
120
+ "l7e"
121
+ ]
122
+ },
123
+ {
124
+ "type": "null"
125
+ }
126
+ ]
127
+ },
128
+ "techRecord_applicantDetails_name": {
129
+ "type": "string",
130
+ "maxLength": 150
131
+ },
132
+ "techRecord_applicantDetails_address1": {
133
+ "type": [
134
+ "null",
135
+ "string"
136
+ ],
137
+ "maxLength": 60
138
+ },
139
+ "techRecord_applicantDetails_address2": {
140
+ "type": [
141
+ "null",
142
+ "string"
143
+ ],
144
+ "maxLength": 60
145
+ },
146
+ "techRecord_applicantDetails_postTown": {
147
+ "type": "string",
148
+ "maxLength": 60
149
+ },
150
+ "techRecord_applicantDetails_address3": {
151
+ "type": [
152
+ "null",
153
+ "string"
154
+ ],
155
+ "maxLength": 60
156
+ },
157
+ "techRecord_applicantDetails_postCode": {
158
+ "type": [
159
+ "null",
160
+ "string"
161
+ ],
162
+ "maxLength": 12
163
+ },
164
+ "techRecord_applicantDetails_telephoneNumber": {
165
+ "type": [
166
+ "null",
167
+ "string"
168
+ ],
169
+ "maxLength": 25
170
+ },
171
+ "techRecord_applicantDetails_emailAddress": {
172
+ "type": [
173
+ "null",
174
+ "string"
175
+ ],
176
+ "maxLength": 255
114
177
  }
115
178
  }
116
179
  }
@@ -367,17 +367,11 @@
367
367
  "maxLength": 150
368
368
  },
369
369
  "techRecord_applicantDetails_address1": {
370
- "type": [
371
- "null",
372
- "string"
373
- ],
370
+ "type": "string",
374
371
  "maxLength": 60
375
372
  },
376
373
  "techRecord_applicantDetails_address2": {
377
- "type": [
378
- "null",
379
- "string"
380
- ],
374
+ "type": "string",
381
375
  "maxLength": 60
382
376
  },
383
377
  "techRecord_applicantDetails_postTown": {
@@ -5,7 +5,8 @@
5
5
  "required": [
6
6
  "techRecord_vehicleSubclass",
7
7
  "vin",
8
- "techRecord_vehicleType"
8
+ "techRecord_vehicleType",
9
+ "techRecord_statusCode"
9
10
  ],
10
11
  "properties": {
11
12
  "vin": {
@@ -4,7 +4,8 @@
4
4
  "additionalProperties": false,
5
5
  "required": [
6
6
  "vin",
7
- "techRecord_vehicleType"
7
+ "techRecord_vehicleType",
8
+ "techRecord_statusCode"
8
9
  ],
9
10
  "properties": {
10
11
  "vin": {
@@ -6,7 +6,8 @@
6
6
  "techRecord_numberOfWheelsDriven",
7
7
  "techRecord_vehicleClass_description",
8
8
  "techRecord_reasonForCreation",
9
- "vin"
9
+ "vin",
10
+ "techRecord_statusCode"
10
11
  ],
11
12
  "properties": {
12
13
  "secondaryVrms": {
@@ -157,19 +158,12 @@
157
158
  ]
158
159
  },
159
160
  "techRecord_statusCode": {
160
- "anyOf": [
161
- {
162
- "type": "null"
163
- },
164
- {
165
- "title": "Status Code",
166
- "type": "string",
167
- "enum": [
168
- "provisional",
169
- "current",
170
- "archived"
171
- ]
172
- }
161
+ "title": "Status Code",
162
+ "type": "string",
163
+ "enum": [
164
+ "provisional",
165
+ "current",
166
+ "archived"
173
167
  ]
174
168
  },
175
169
  "techRecord_vehicleClass_description": {
@@ -5,7 +5,8 @@
5
5
  "required": [
6
6
  "techRecord_vehicleClass_description",
7
7
  "techRecord_reasonForCreation",
8
- "vin"
8
+ "vin",
9
+ "techRecord_statusCode"
9
10
  ],
10
11
  "properties": {
11
12
  "techRecord_applicantDetails_name": {
@@ -147,19 +148,12 @@
147
148
  ]
148
149
  },
149
150
  "techRecord_statusCode": {
150
- "anyOf": [
151
- {
152
- "type": "null"
153
- },
154
- {
155
- "title": "Status Code",
156
- "type": "string",
157
- "enum": [
158
- "provisional",
159
- "current",
160
- "archived"
161
- ]
162
- }
151
+ "title": "Status Code",
152
+ "type": "string",
153
+ "enum": [
154
+ "provisional",
155
+ "current",
156
+ "archived"
163
157
  ]
164
158
  },
165
159
  "techRecord_vehicleClass_description": {
@@ -97,18 +97,11 @@
97
97
  ]
98
98
  },
99
99
  "techRecord_vehicleSize": {
100
- "anyOf": [
101
- {
102
- "title": "Vehicle Size",
103
- "type": "string",
104
- "enum": [
105
- "small",
106
- "large"
107
- ]
108
- },
109
- {
110
- "type": "null"
111
- }
100
+ "title": "Vehicle Size",
101
+ "type": "string",
102
+ "enum": [
103
+ "small",
104
+ "large"
112
105
  ]
113
106
  },
114
107
  "techRecord_seatsLowerDeck": {
@@ -203,16 +196,9 @@
203
196
  ]
204
197
  },
205
198
  "techRecord_noOfAxles": {
206
- "anyOf": [
207
- {
208
- "type": "integer",
209
- "minimum": 0,
210
- "maximum": 99
211
- },
212
- {
213
- "type": "null"
214
- }
215
- ]
199
+ "type": "integer",
200
+ "minimum": 0,
201
+ "maximum": 99
216
202
  },
217
203
  "techRecord_departmentalVehicleMarker": {
218
204
  "type": [
@@ -184,16 +184,9 @@
184
184
  ]
185
185
  },
186
186
  "techRecord_noOfAxles": {
187
- "anyOf": [
188
- {
189
- "type": "integer",
190
- "minimum": 0,
191
- "maximum": 99
192
- },
193
- {
194
- "type": "null"
195
- }
196
- ]
187
+ "type": "integer",
188
+ "minimum": 0,
189
+ "maximum": 99
197
190
  },
198
191
  "techRecord_departmentalVehicleMarker": {
199
192
  "type": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dvsa/cvs-type-definitions",
3
- "version": "3.0.28",
3
+ "version": "3.0.30",
4
4
  "description": "type definitions for cvs vta application",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -51,22 +51,22 @@ export interface TechRecordGETCarComplete {
51
51
  techRecord_applicantDetails_emailAddress?: null | string;
52
52
  createdTimestamp: string;
53
53
  partialVin?: null | string;
54
- primaryVrm?: null | string;
54
+ primaryVrm: string;
55
55
  systemNumber: string;
56
- techRecord_createdAt?: null | string;
57
- techRecord_createdById?: null | string;
58
- techRecord_createdByName?: null | string;
56
+ techRecord_createdAt: string;
57
+ techRecord_createdById: string;
58
+ techRecord_createdByName: string;
59
59
  techRecord_euVehicleCategory?: null | EUVehicleCategory;
60
60
  techRecord_lastUpdatedAt?: string | null;
61
61
  techRecord_lastUpdatedById?: string | null;
62
62
  techRecord_lastUpdatedByName?: string | null;
63
63
  techRecord_manufactureYear?: number | null;
64
- techRecord_recordCompleteness?: null | string;
65
- techRecord_noOfAxles?: null | number;
64
+ techRecord_recordCompleteness?: "complete";
65
+ techRecord_noOfAxles: number;
66
66
  techRecord_notes?: null | string;
67
- techRecord_reasonForCreation?: null | string;
67
+ techRecord_reasonForCreation: string;
68
68
  techRecord_regnDate?: string | null;
69
- techRecord_statusCode?: null | StatusCode;
69
+ techRecord_statusCode: null | StatusCode;
70
70
  techRecord_vehicleConfiguration?: null | VehicleConfiguration;
71
71
  techRecord_vehicleType: "car";
72
72
  vin: string;
@@ -51,20 +51,20 @@ export interface TechRecordGETCarSkeleton {
51
51
  techRecord_applicantDetails_emailAddress?: null | string;
52
52
  createdTimestamp: string;
53
53
  partialVin?: null | string;
54
- primaryVrm?: null | string;
54
+ primaryVrm: string;
55
55
  systemNumber: string;
56
- techRecord_createdAt?: null | string;
57
- techRecord_createdById?: null | string;
58
- techRecord_createdByName?: null | string;
56
+ techRecord_createdAt: string;
57
+ techRecord_createdById: string;
58
+ techRecord_createdByName: string;
59
59
  techRecord_euVehicleCategory?: null | EUVehicleCategory;
60
60
  techRecord_lastUpdatedAt?: string | null;
61
61
  techRecord_lastUpdatedById?: string | null;
62
62
  techRecord_lastUpdatedByName?: string | null;
63
63
  techRecord_manufactureYear?: number | null;
64
- techRecord_recordCompleteness?: null | string;
64
+ techRecord_recordCompleteness?: "skeleton";
65
65
  techRecord_noOfAxles?: null | number;
66
66
  techRecord_notes?: null | string;
67
- techRecord_reasonForCreation?: null | string;
67
+ techRecord_reasonForCreation?: string;
68
68
  techRecord_regnDate?: string | null;
69
69
  techRecord_statusCode?: null | StatusCode;
70
70
  techRecord_vehicleConfiguration?: null | VehicleConfiguration;
@@ -189,8 +189,8 @@ export interface TechRecordGETHGVComplete {
189
189
  techRecord_adrDetails_tank_tankDetails_tankStatement_productList?: string | null;
190
190
  techRecord_alterationMarker?: boolean | null;
191
191
  techRecord_applicantDetails_name: string;
192
- techRecord_applicantDetails_address1: null | string;
193
- techRecord_applicantDetails_address2: null | string;
192
+ techRecord_applicantDetails_address1: string;
193
+ techRecord_applicantDetails_address2: string;
194
194
  techRecord_applicantDetails_postTown: string;
195
195
  techRecord_applicantDetails_address3?: null | string;
196
196
  techRecord_applicantDetails_postCode?: null | string;
@@ -194,7 +194,7 @@ export interface TechRecordGETPSVComplete {
194
194
  techRecord_reasonForCreation: string;
195
195
  techRecord_createdAt: string;
196
196
  techRecord_vehicleConfiguration: VehicleConfiguration;
197
- techRecord_vehicleSize: VehicleSize | null;
197
+ techRecord_vehicleSize: VehicleSize;
198
198
  techRecord_seatsLowerDeck: number;
199
199
  techRecord_seatsUpperDeck: number;
200
200
  techRecord_numberOfWheelsDriven: number | null;
@@ -205,7 +205,7 @@ export interface TechRecordGETPSVComplete {
205
205
  techRecord_euVehicleCategory?: EUVehicleCategory | null;
206
206
  techRecord_regnDate?: null | string;
207
207
  techRecord_manufactureYear?: number | null;
208
- techRecord_noOfAxles: number | null;
208
+ techRecord_noOfAxles: number;
209
209
  techRecord_departmentalVehicleMarker?: boolean | null;
210
210
  techRecord_alterationMarker?: boolean | null;
211
211
  techRecord_approvalType?: ApprovalType | null;
@@ -278,7 +278,7 @@ export interface TechRecordGETPSVComplete {
278
278
  techRecord_applicantDetails_postCode?: null | string;
279
279
  techRecord_applicantDetails_telephoneNumber?: null | string;
280
280
  techRecord_applicantDetails_emailAddress?: null | string;
281
- techRecord_brakes_dtpNumber: string | null;
281
+ techRecord_brakes_dtpNumber: string;
282
282
  techRecord_brakes_brakeCode: string;
283
283
  techRecord_brakes_brakeCodeOriginal?: string | null;
284
284
  techRecord_brakes_dataTrBrakeOne: string;
@@ -191,7 +191,7 @@ export interface TechRecordGETPSVTestable {
191
191
  techRecord_vehicleType: "psv";
192
192
  techRecord_statusCode: StatusCode;
193
193
  techRecord_reasonForCreation: string;
194
- techRecord_createdAt: string;
194
+ techRecord_createdAt?: string;
195
195
  techRecord_vehicleConfiguration: VehicleConfiguration;
196
196
  techRecord_vehicleSize: VehicleSize;
197
197
  techRecord_seatsLowerDeck: number;
@@ -204,7 +204,7 @@ export interface TechRecordGETPSVTestable {
204
204
  techRecord_euVehicleCategory?: EUVehicleCategory | null;
205
205
  techRecord_regnDate?: string | null;
206
206
  techRecord_manufactureYear?: number | null;
207
- techRecord_noOfAxles: number | null;
207
+ techRecord_noOfAxles: number;
208
208
  techRecord_departmentalVehicleMarker?: boolean | null;
209
209
  techRecord_alterationMarker?: boolean | null;
210
210
  techRecord_approvalType?: ApprovalType | null;
@@ -274,7 +274,7 @@ export interface TechRecordGETPSVTestable {
274
274
  techRecord_applicantDetails_postCode?: null | string;
275
275
  techRecord_applicantDetails_telephoneNumber?: null | string;
276
276
  techRecord_applicantDetails_emailAddress?: null | string;
277
- techRecord_brakes_dtpNumber: string | null;
277
+ techRecord_brakes_dtpNumber: string;
278
278
  techRecord_brakes_brakeCode?: string | null;
279
279
  techRecord_brakes_brakeCodeOriginal?: string | null;
280
280
  techRecord_brakes_dataTrBrakeOne?: string | null;
@@ -7,20 +7,47 @@
7
7
 
8
8
  export type StatusCode = "provisional" | "current" | "archived";
9
9
  export type VehicleSubclass = ("n" | "p" | "a" | "s" | "c" | "l" | "t" | "e" | "m" | "r" | "w")[];
10
+ export type EUVehicleCategory =
11
+ | "m1"
12
+ | "m2"
13
+ | "m3"
14
+ | "n1"
15
+ | "n2"
16
+ | "n3"
17
+ | "o1"
18
+ | "o2"
19
+ | "o3"
20
+ | "o4"
21
+ | "l1e-a"
22
+ | "l1e"
23
+ | "l2e"
24
+ | "l3e"
25
+ | "l4e"
26
+ | "l5e"
27
+ | "l6e"
28
+ | "l7e";
10
29
 
11
30
  export interface TechRecordPUTCarComplete {
12
31
  vin: string;
13
32
  primaryVrm?: null | string;
14
- trailerId?: string | null;
15
- techRecord_reasonForCreation?: string | null;
33
+ techRecord_reasonForCreation: string;
16
34
  techRecord_vehicleType: "car";
17
- techRecord_statusCode?: null | StatusCode;
35
+ techRecord_statusCode: StatusCode;
18
36
  techRecord_regnDate?: string | null;
19
37
  techRecord_manufactureYear?: number | null;
20
- techRecord_noOfAxles?: number | null;
38
+ techRecord_noOfAxles: number;
21
39
  techRecord_notes?: string;
22
40
  techRecord_vehicleSubclass: VehicleSubclass;
23
41
  techRecord_hiddenInVta?: null | boolean;
24
42
  techRecord_updateType?: null | string;
25
43
  secondaryVrms?: null | string[];
44
+ techRecord_euVehicleCategory?: EUVehicleCategory | null;
45
+ techRecord_applicantDetails_name?: string;
46
+ techRecord_applicantDetails_address1?: null | string;
47
+ techRecord_applicantDetails_address2?: null | string;
48
+ techRecord_applicantDetails_postTown?: string;
49
+ techRecord_applicantDetails_address3?: null | string;
50
+ techRecord_applicantDetails_postCode?: null | string;
51
+ techRecord_applicantDetails_telephoneNumber?: null | string;
52
+ techRecord_applicantDetails_emailAddress?: null | string;
26
53
  }
@@ -7,14 +7,32 @@
7
7
 
8
8
  export type StatusCode = "provisional" | "current" | "archived";
9
9
  export type VehicleSubclass = ("n" | "p" | "a" | "s" | "c" | "l" | "t" | "e" | "m" | "r" | "w")[];
10
+ export type EUVehicleCategory =
11
+ | "m1"
12
+ | "m2"
13
+ | "m3"
14
+ | "n1"
15
+ | "n2"
16
+ | "n3"
17
+ | "o1"
18
+ | "o2"
19
+ | "o3"
20
+ | "o4"
21
+ | "l1e-a"
22
+ | "l1e"
23
+ | "l2e"
24
+ | "l3e"
25
+ | "l4e"
26
+ | "l5e"
27
+ | "l6e"
28
+ | "l7e";
10
29
 
11
30
  export interface TechRecordPUTCarSkeleton {
12
31
  vin: string;
13
- primaryVrm?: null | string;
14
- trailerId?: string | null;
15
- techRecord_reasonForCreation?: string | null;
32
+ primaryVrm?: string;
33
+ techRecord_reasonForCreation: string;
16
34
  techRecord_vehicleType: "car";
17
- techRecord_statusCode?: null | StatusCode;
35
+ techRecord_statusCode?: StatusCode;
18
36
  techRecord_regnDate?: string | null;
19
37
  techRecord_manufactureYear?: number | null;
20
38
  techRecord_noOfAxles?: number | null;
@@ -23,4 +41,13 @@ export interface TechRecordPUTCarSkeleton {
23
41
  techRecord_updateType?: null | string;
24
42
  secondaryVrms?: null | string[];
25
43
  techRecord_vehicleSubclass?: VehicleSubclass;
44
+ techRecord_euVehicleCategory?: EUVehicleCategory | null;
45
+ techRecord_applicantDetails_name?: string;
46
+ techRecord_applicantDetails_address1?: null | string;
47
+ techRecord_applicantDetails_address2?: null | string;
48
+ techRecord_applicantDetails_postTown?: string;
49
+ techRecord_applicantDetails_address3?: null | string;
50
+ techRecord_applicantDetails_postCode?: null | string;
51
+ techRecord_applicantDetails_telephoneNumber?: null | string;
52
+ techRecord_applicantDetails_emailAddress?: null | string;
26
53
  }
@@ -187,8 +187,8 @@ export interface TechRecordPUTHGVComplete {
187
187
  techRecord_adrDetails_tank_tankDetails_tankStatement_productList?: string | null;
188
188
  techRecord_alterationMarker?: boolean | null;
189
189
  techRecord_applicantDetails_name: string;
190
- techRecord_applicantDetails_address1: null | string;
191
- techRecord_applicantDetails_address2: null | string;
190
+ techRecord_applicantDetails_address1: string;
191
+ techRecord_applicantDetails_address2: string;
192
192
  techRecord_applicantDetails_postTown: string;
193
193
  techRecord_applicantDetails_address3?: null | string;
194
194
  techRecord_applicantDetails_postCode?: null | string;
@@ -42,7 +42,7 @@ export interface TechRecordPUTLGVComplete {
42
42
  techRecord_euVehicleCategory?: EUVehicleCategory | null;
43
43
  techRecord_reasonForCreation?: string | null;
44
44
  techRecord_vehicleType: "lgv";
45
- techRecord_statusCode?: StatusCode;
45
+ techRecord_statusCode: StatusCode;
46
46
  techRecord_regnDate?: string | null;
47
47
  techRecord_manufactureYear?: number | null;
48
48
  techRecord_noOfAxles?: number | null;
@@ -42,7 +42,7 @@ export interface TechRecordPUTLGVSkeleton {
42
42
  techRecord_euVehicleCategory?: EUVehicleCategory | null;
43
43
  techRecord_reasonForCreation?: string | null;
44
44
  techRecord_vehicleType: "lgv";
45
- techRecord_statusCode?: StatusCode;
45
+ techRecord_statusCode: StatusCode;
46
46
  techRecord_regnDate?: string | null;
47
47
  techRecord_manufactureYear?: number | null;
48
48
  techRecord_noOfAxles?: number | null;
@@ -71,7 +71,7 @@ export interface TechRecordPUTMotorcycleComplete {
71
71
  techRecord_notes?: null | string;
72
72
  techRecord_reasonForCreation: string;
73
73
  techRecord_regnDate?: string | null;
74
- techRecord_statusCode?: null | StatusCode;
74
+ techRecord_statusCode: StatusCode;
75
75
  techRecord_vehicleClass_description: VehicleClassDescription;
76
76
  techRecord_vehicleConfiguration?: null | VehicleConfiguration;
77
77
  techRecord_vehicleType?: "motorcycle";
@@ -70,7 +70,7 @@ export interface TechRecordPUTMotorcycleSkeleton {
70
70
  techRecord_notes?: null | string;
71
71
  techRecord_reasonForCreation: string;
72
72
  techRecord_regnDate?: string | null;
73
- techRecord_statusCode?: null | StatusCode;
73
+ techRecord_statusCode: StatusCode;
74
74
  techRecord_vehicleClass_description: VehicleClassDescription;
75
75
  techRecord_vehicleConfiguration?: null | VehicleConfiguration;
76
76
  techRecord_vehicleType?: "motorcycle";
@@ -193,7 +193,7 @@ export interface TechRecordPUTPSVComplete {
193
193
  techRecord_reasonForCreation: string;
194
194
  techRecord_createdAt?: null | string;
195
195
  techRecord_vehicleConfiguration: VehicleConfiguration;
196
- techRecord_vehicleSize: VehicleSize | null;
196
+ techRecord_vehicleSize: VehicleSize;
197
197
  techRecord_seatsLowerDeck: number;
198
198
  techRecord_seatsUpperDeck: number;
199
199
  techRecord_numberOfWheelsDriven: number | null;
@@ -203,7 +203,7 @@ export interface TechRecordPUTPSVComplete {
203
203
  techRecord_euVehicleCategory?: EUVehicleCategory | null;
204
204
  techRecord_regnDate?: null | string;
205
205
  techRecord_manufactureYear?: number | null;
206
- techRecord_noOfAxles: number | null;
206
+ techRecord_noOfAxles: number;
207
207
  techRecord_departmentalVehicleMarker?: boolean | null;
208
208
  techRecord_alterationMarker?: boolean | null;
209
209
  techRecord_approvalType?: ApprovalType | null;
@@ -203,7 +203,7 @@ export interface TechRecordPUTPSVTestable {
203
203
  techRecord_euVehicleCategory?: EUVehicleCategory | null;
204
204
  techRecord_regnDate?: string | null;
205
205
  techRecord_manufactureYear?: number | null;
206
- techRecord_noOfAxles: number | null;
206
+ techRecord_noOfAxles: number;
207
207
  techRecord_departmentalVehicleMarker?: boolean | null;
208
208
  techRecord_alterationMarker?: boolean | null;
209
209
  techRecord_approvalType?: ApprovalType | null;