@dvsa/cvs-type-definitions 2.0.12 → 2.0.16

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 (104) hide show
  1. package/README.md +1 -1
  2. package/lib/README.md +48 -0
  3. package/lib/json-schemas/v1/activity/index.json +62 -0
  4. package/lib/json-schemas/v1/defect-category-reference-data/index.json +440 -0
  5. package/lib/json-schemas/v1/defect-details/index.json +265 -0
  6. package/lib/json-schemas/v1/defect-location/index.json +49 -0
  7. package/lib/json-schemas/v1/reason-item/index.json +17 -0
  8. package/lib/json-schemas/v1/tech-record/index.json +639 -0
  9. package/lib/json-schemas/v1/test/index.json +1843 -0
  10. package/lib/json-schemas/v1/test-result/index.json +636 -0
  11. package/lib/json-schemas/v1/test-station/index.json +67 -0
  12. package/lib/json-schemas/v1/test-type/index.json +479 -0
  13. package/lib/json-schemas/v1/vehicle/index.json +1804 -0
  14. package/lib/json-schemas/v1/vehicle-tech-record/index.json +683 -0
  15. package/lib/json-schemas/v1/visit/index.json +1895 -0
  16. package/lib/json-schemas/v3/tech-record/get/car/complete/index.json +216 -0
  17. package/lib/json-schemas/v3/tech-record/get/car/skeleton/index.json +195 -0
  18. package/lib/json-schemas/v3/tech-record/get/hgv/complete/index.json +1051 -0
  19. package/lib/json-schemas/v3/tech-record/get/hgv/skeleton/index.json +1124 -0
  20. package/lib/json-schemas/v3/tech-record/get/hgv/testable/index.json +1119 -0
  21. package/lib/json-schemas/v3/tech-record/get/lgv/complete/index.json +226 -0
  22. package/lib/json-schemas/v3/tech-record/get/lgv/skeleton/index.json +202 -0
  23. package/lib/json-schemas/v3/tech-record/get/motorcycle/complete/index.json +219 -0
  24. package/lib/json-schemas/v3/tech-record/get/motorcycle/skeleton/index.json +202 -0
  25. package/lib/json-schemas/v3/tech-record/get/psv/complete/index.json +1027 -0
  26. package/lib/json-schemas/v3/tech-record/get/psv/skeleton/index.json +1120 -0
  27. package/lib/json-schemas/v3/tech-record/get/psv/testable/index.json +1097 -0
  28. package/lib/json-schemas/v3/tech-record/get/search/complete/index.json +55 -0
  29. package/lib/json-schemas/v3/tech-record/get/search/skeleton/index.json +55 -0
  30. package/lib/json-schemas/v3/tech-record/get/trl/complete/index.json +1307 -0
  31. package/lib/json-schemas/v3/tech-record/get/trl/skeleton/index.json +1002 -0
  32. package/lib/json-schemas/v3/tech-record/get/trl/testable/index.json +1155 -0
  33. package/lib/json-schemas/v3/tech-record/post/psv/complete/index.json +1024 -0
  34. package/lib/json-schemas/v3/tech-record/post/psv/skeleton/index.json +1112 -0
  35. package/lib/json-schemas/v3/tech-record/post/psv/testable/index.json +1092 -0
  36. package/lib/json-schemas/v3/tech-record/put/car/complete/request/index.json +87 -0
  37. package/lib/json-schemas/v3/tech-record/put/car/complete/response/index.json +237 -0
  38. package/lib/json-schemas/v3/tech-record/put/car/skeleton/request/index.json +64 -0
  39. package/lib/json-schemas/v3/tech-record/put/car/skeleton/response/index.json +216 -0
  40. package/lib/json-schemas/v3/tech-record/put/hgv/complete/index.json +1009 -0
  41. package/lib/json-schemas/v3/tech-record/put/hgv/skeleton/index.json +1082 -0
  42. package/lib/json-schemas/v3/tech-record/put/hgv/testable/index.json +1077 -0
  43. package/lib/json-schemas/v3/tech-record/put/lgv/complete/request/index.json +97 -0
  44. package/lib/json-schemas/v3/tech-record/put/lgv/complete/response/index.json +247 -0
  45. package/lib/json-schemas/v3/tech-record/put/lgv/skeleton/request/index.json +71 -0
  46. package/lib/json-schemas/v3/tech-record/put/lgv/skeleton/response/index.json +223 -0
  47. package/lib/json-schemas/v3/tech-record/put/trl/complete/index.json +1265 -0
  48. package/lib/json-schemas/v3/tech-record/put/trl/skeleton/index.json +978 -0
  49. package/lib/json-schemas/v3/tech-record/put/trl/testable/index.json +1115 -0
  50. package/lib/package.json +38 -0
  51. package/lib/schema-validator.d.ts +3 -0
  52. package/lib/schema-validator.js +17 -0
  53. package/lib/schemas.d.ts +1 -0
  54. package/lib/schemas.js +52 -0
  55. package/lib/types/v1/activity/index.d.ts +23 -0
  56. package/lib/types/v1/defect-category-reference-data/index.d.ts +52 -0
  57. package/lib/types/v1/defect-details/index.d.ts +53 -0
  58. package/lib/types/v1/defect-location/index.d.ts +16 -0
  59. package/lib/types/v1/reason-item/index.d.ts +11 -0
  60. package/lib/types/v1/tech-record/index.d.ts +202 -0
  61. package/lib/types/v1/test/index.d.ts +353 -0
  62. package/lib/types/v1/test-result/index.d.ts +136 -0
  63. package/lib/types/v1/test-station/index.d.ts +23 -0
  64. package/lib/types/v1/test-type/index.d.ts +98 -0
  65. package/lib/types/v1/vehicle/index.d.ts +345 -0
  66. package/lib/types/v1/vehicle-tech-record/index.d.ts +212 -0
  67. package/lib/types/v1/visit/index.d.ts +366 -0
  68. package/lib/types/v3/tech-record/get/car/complete/index.d.ts +74 -0
  69. package/lib/types/v3/tech-record/get/car/skeleton/index.d.ts +72 -0
  70. package/lib/types/v3/tech-record/get/hgv/complete/index.d.ts +285 -0
  71. package/lib/types/v3/tech-record/get/hgv/skeleton/index.d.ts +285 -0
  72. package/lib/types/v3/tech-record/get/hgv/testable/index.d.ts +285 -0
  73. package/lib/types/v3/tech-record/get/lgv/complete/index.d.ts +75 -0
  74. package/lib/types/v3/tech-record/get/lgv/skeleton/index.d.ts +73 -0
  75. package/lib/types/v3/tech-record/get/motorcycle/complete/index.d.ts +75 -0
  76. package/lib/types/v3/tech-record/get/motorcycle/skeleton/index.d.ts +73 -0
  77. package/lib/types/v3/tech-record/get/psv/complete/index.d.ts +315 -0
  78. package/lib/types/v3/tech-record/get/psv/skeleton/index.d.ts +313 -0
  79. package/lib/types/v3/tech-record/get/psv/testable/index.d.ts +313 -0
  80. package/lib/types/v3/tech-record/get/search/complete/index.d.ts +20 -0
  81. package/lib/types/v3/tech-record/get/search/skeleton/index.d.ts +19 -0
  82. package/lib/types/v3/tech-record/get/trl/complete/index.d.ts +350 -0
  83. package/lib/types/v3/tech-record/get/trl/skeleton/index.d.ts +256 -0
  84. package/lib/types/v3/tech-record/get/trl/testable/index.d.ts +294 -0
  85. package/lib/types/v3/tech-record/post/psv/complete/index.d.ts +315 -0
  86. package/lib/types/v3/tech-record/post/psv/skeleton/index.d.ts +313 -0
  87. package/lib/types/v3/tech-record/post/psv/testable/index.d.ts +313 -0
  88. package/lib/types/v3/tech-record/put/car/complete/request/index.d.ts +24 -0
  89. package/lib/types/v3/tech-record/put/car/complete/response/index.d.ts +75 -0
  90. package/lib/types/v3/tech-record/put/car/skeleton/request/index.d.ts +22 -0
  91. package/lib/types/v3/tech-record/put/car/skeleton/response/index.d.ts +75 -0
  92. package/lib/types/v3/tech-record/put/hgv/complete/index.d.ts +276 -0
  93. package/lib/types/v3/tech-record/put/hgv/skeleton/index.d.ts +276 -0
  94. package/lib/types/v3/tech-record/put/hgv/testable/index.d.ts +276 -0
  95. package/lib/types/v3/tech-record/put/lgv/complete/request/index.d.ts +25 -0
  96. package/lib/types/v3/tech-record/put/lgv/complete/response/index.d.ts +76 -0
  97. package/lib/types/v3/tech-record/put/lgv/skeleton/request/index.d.ts +23 -0
  98. package/lib/types/v3/tech-record/put/lgv/skeleton/response/index.d.ts +76 -0
  99. package/lib/types/v3/tech-record/put/trl/complete/index.d.ts +341 -0
  100. package/lib/types/v3/tech-record/put/trl/skeleton/index.d.ts +250 -0
  101. package/lib/types/v3/tech-record/put/trl/testable/index.d.ts +285 -0
  102. package/package.json +3 -5
  103. package/schemas.ts +0 -49
  104. package/src/schema-validation/schema-validator.ts +0 -25
@@ -0,0 +1,1307 @@
1
+ {
2
+ "title": "GET TRL Technical Record V3 Complete",
3
+ "type": "object",
4
+ "additionalProperties": false,
5
+ "required": [
6
+ "createdTimestamp",
7
+ "partialVin",
8
+ "techRecord_noOfAxles",
9
+ "techRecord_make",
10
+ "techRecord_model",
11
+ "techRecord_firstUseDate",
12
+ "techRecord_maxLoadOnCoupling",
13
+ "techRecord_tyreUseCode",
14
+ "techRecord_suspensionType",
15
+ "techRecord_couplingType",
16
+ "techRecord_dimensions_length",
17
+ "techRecord_dimensions_width",
18
+ "techRecord_frontAxleToRearAxle",
19
+ "techRecord_rearAxleToRearTrl",
20
+ "techRecord_couplingCenterToRearAxleMin",
21
+ "techRecord_couplingCenterToRearAxleMax",
22
+ "techRecord_couplingCenterToRearTrlMax",
23
+ "techRecord_couplingCenterToRearTrlMin",
24
+ "techRecord_notes",
25
+ "techRecord_roadFriendly",
26
+ "systemNumber",
27
+ "trailerId",
28
+ "techRecord_createdAt",
29
+ "techRecord_createdById",
30
+ "techRecord_createdByName",
31
+ "techRecord_reasonForCreation",
32
+ "techRecord_recordCompleteness",
33
+ "techRecord_statusCode",
34
+ "techRecord_vehicleClass_code",
35
+ "techRecord_vehicleClass_description",
36
+ "techRecord_vehicleType",
37
+ "techRecord_bodyType_description",
38
+ "techRecord_bodyType_code",
39
+ "techRecord_vehicleConfiguration",
40
+ "vin"
41
+ ],
42
+ "properties": {
43
+ "createdTimestamp": {
44
+ "type": "string"
45
+ },
46
+ "partialVin": {
47
+ "type": "string"
48
+ },
49
+ "systemNumber": {
50
+ "type": "string"
51
+ },
52
+ "techRecord_adrDetails_vehicleDetails_type": {
53
+ "type": [
54
+ "string",
55
+ "null"
56
+ ]
57
+ },
58
+ "techRecord_adrDetails_vehicleDetails_approvalDate": {
59
+ "type": [
60
+ "string",
61
+ "null"
62
+ ]
63
+ },
64
+ "techRecord_adrDetails_permittedDangerousGoods": {
65
+ "type": [
66
+ "array",
67
+ "null"
68
+ ],
69
+ "items": {
70
+ "type": "string"
71
+ }
72
+ },
73
+ "techRecord_adrDetails_compatibilityGroupJ": {
74
+ "type": [
75
+ "boolean",
76
+ "null"
77
+ ]
78
+ },
79
+ "techRecord_adrDetails_additionalExaminerNotes": {
80
+ "type": [
81
+ "string",
82
+ "null"
83
+ ],
84
+ "maxLength": 1024
85
+ },
86
+ "techRecord_adrDetails_applicantDetails_name": {
87
+ "type": [
88
+ "string",
89
+ "null"
90
+ ],
91
+ "maxLength": 150
92
+ },
93
+ "techRecord_adrDetails_applicantDetails_street": {
94
+ "type": [
95
+ "string",
96
+ "null"
97
+ ],
98
+ "maxLength": 150
99
+ },
100
+ "techRecord_adrDetails_applicantDetails_town": {
101
+ "type": [
102
+ "string",
103
+ "null"
104
+ ],
105
+ "maxLength": 100
106
+ },
107
+ "techRecord_adrDetails_applicantDetails_city": {
108
+ "type": [
109
+ "string",
110
+ "null"
111
+ ],
112
+ "maxLength": 100
113
+ },
114
+ "techRecord_adrDetails_applicantDetails_postcode": {
115
+ "type": [
116
+ "string",
117
+ "null"
118
+ ],
119
+ "maxLength": 25
120
+ },
121
+ "techRecord_adrDetails_memosApply": {
122
+ "type": [
123
+ "array",
124
+ "null"
125
+ ],
126
+ "items": {
127
+ "type": [
128
+ "string"
129
+ ]
130
+ }
131
+ },
132
+ "techRecord_adrDetails_documents": {
133
+ "type": [
134
+ "array",
135
+ "null"
136
+ ],
137
+ "items": {
138
+ "type": [
139
+ "string"
140
+ ]
141
+ }
142
+ },
143
+ "techRecord_adrDetails_listStatementApplicable": {
144
+ "type": [
145
+ "boolean",
146
+ "null"
147
+ ]
148
+ },
149
+ "techRecord_adrDetails_batteryListNumber": {
150
+ "type": [
151
+ "string",
152
+ "null"
153
+ ],
154
+ "maxLength": 8
155
+ },
156
+ "techRecord_adrDetails_brakeDeclarationsSeen": {
157
+ "type": [
158
+ "boolean",
159
+ "null"
160
+ ]
161
+ },
162
+ "techRecord_adrDetails_brakeDeclarationIssuer": {
163
+ "type": [
164
+ "string",
165
+ "null"
166
+ ]
167
+ },
168
+ "techRecord_adrDetails_brakeEndurance": {
169
+ "type": [
170
+ "boolean",
171
+ "null"
172
+ ]
173
+ },
174
+ "techRecord_adrDetails_weight": {
175
+ "type": [
176
+ "string",
177
+ "null"
178
+ ],
179
+ "maxLength": 8
180
+ },
181
+ "techRecord_adrDetails_declarationsSeen": {
182
+ "type": [
183
+ "boolean",
184
+ "null"
185
+ ]
186
+ },
187
+ "techRecord_adrDetails_additionalNotes_guidanceNotes": {
188
+ "type": [
189
+ "array",
190
+ "null"
191
+ ],
192
+ "items": {
193
+ "type": "string"
194
+ }
195
+ },
196
+ "techRecord_adrDetails_additionalNotes_number": {
197
+ "type": [
198
+ "array",
199
+ "null"
200
+ ],
201
+ "items": {
202
+ "type": "string"
203
+ }
204
+ },
205
+ "techRecord_adrDetails_adrTypeApprovalNo": {
206
+ "type": [
207
+ "string",
208
+ "null"
209
+ ]
210
+ },
211
+ "techRecord_adrDetails_adrCertificateNotes": {
212
+ "type": [
213
+ "string",
214
+ "null"
215
+ ],
216
+ "maxLength": 1500
217
+ },
218
+ "techRecord_adrDetails_tank_tankDetails_tankManufacturer": {
219
+ "type": [
220
+ "string",
221
+ "null"
222
+ ],
223
+ "maxLength": 70
224
+ },
225
+ "techRecord_adrDetails_tank_tankDetails_yearOfManufacture": {
226
+ "type": [
227
+ "integer",
228
+ "null"
229
+ ],
230
+ "maximum": 9999
231
+ },
232
+ "techRecord_adrDetails_tank_tankDetails_tankManufacturerSerialNo": {
233
+ "type": [
234
+ "string",
235
+ "null"
236
+ ],
237
+ "maxLength": 50
238
+ },
239
+ "techRecord_adrDetails_tank_tankDetails_tankTypeAppNo": {
240
+ "type": [
241
+ "string",
242
+ "null"
243
+ ],
244
+ "maxLength": 30
245
+ },
246
+ "techRecord_adrDetails_tank_tankDetails_tankCode": {
247
+ "type": [
248
+ "string",
249
+ "null"
250
+ ],
251
+ "maxLength": 30
252
+ },
253
+ "techRecord_adrDetails_tank_tankDetails_specialProvisions": {
254
+ "type": [
255
+ "string",
256
+ "null"
257
+ ],
258
+ "maxLength": 1024
259
+ },
260
+ "techRecord_adrDetails_tank_tankDetails_tc2Details_tc2Type": {
261
+ "anyOf": [
262
+ {
263
+ "type": "null"
264
+ },
265
+ {
266
+ "title": "TC2 Types",
267
+ "type": "string",
268
+ "enum": [
269
+ "initial"
270
+ ]
271
+ }
272
+ ]
273
+ },
274
+ "techRecord_adrDetails_tank_tankDetails_tc2Details_tc2IntermediateApprovalNo": {
275
+ "type": [
276
+ "string",
277
+ "null"
278
+ ],
279
+ "maxLength": 70
280
+ },
281
+ "techRecord_adrDetails_tank_tankDetails_tc2Details_tc2IntermediateExpiryDate": {
282
+ "type": [
283
+ "string",
284
+ "null"
285
+ ]
286
+ },
287
+ "techRecord_adrDetails_tank_tankDetails_tc3Details_tc3Type": {
288
+ "anyOf": [
289
+ {
290
+ "type": "null"
291
+ },
292
+ {
293
+ "title": "TC3 Types",
294
+ "type": "string",
295
+ "enum": [
296
+ "intermediate",
297
+ "periodic",
298
+ "exceptional"
299
+ ]
300
+ }
301
+ ]
302
+ },
303
+ "techRecord_adrDetails_tank_tankDetails_tc3Type_tc3PeriodicNumber": {
304
+ "type": [
305
+ "string",
306
+ "null"
307
+ ],
308
+ "maxLength": 75
309
+ },
310
+ "techRecord_adrDetails_tank_tankDetails_tc3Type_tc3PeriodicExpiryDate": {
311
+ "type": [
312
+ "string",
313
+ "null"
314
+ ]
315
+ },
316
+ "techRecord_adrDetails_tank_tankDetails_tankStatement_substancesPermitted": {
317
+ "type": [
318
+ "string",
319
+ "null"
320
+ ]
321
+ },
322
+ "techRecord_adrDetails_tank_tankDetails_tankStatement_statement": {
323
+ "type": [
324
+ "string",
325
+ "null"
326
+ ],
327
+ "maxLength": 1500
328
+ },
329
+ "techRecord_adrDetails_tank_tankDetails_tankStatement_productListRefNo": {
330
+ "type": [
331
+ "string",
332
+ "null"
333
+ ]
334
+ },
335
+ "techRecord_adrDetails_tank_tankDetails_tankStatement_productListUnNo": {
336
+ "type": [
337
+ "array",
338
+ "null"
339
+ ],
340
+ "items": {
341
+ "type": [
342
+ "string"
343
+ ]
344
+ }
345
+ },
346
+ "techRecord_adrDetails_tank_tankDetails_tankStatement_productList": {
347
+ "type": [
348
+ "string",
349
+ "null"
350
+ ],
351
+ "maxLength": 1500
352
+ },
353
+ "techRecord_alterationMarker": {
354
+ "type": [
355
+ "string",
356
+ "null"
357
+ ]
358
+ },
359
+ "techRecord_applicantDetails_name": {
360
+ "type": [
361
+ "string",
362
+ "null"
363
+ ],
364
+ "maxLength": 150
365
+ },
366
+ "techRecord_applicantDetails_address1": {
367
+ "type": [
368
+ "null",
369
+ "string"
370
+ ],
371
+ "maxLength": 60
372
+ },
373
+ "techRecord_applicantDetails_address2": {
374
+ "type": [
375
+ "null",
376
+ "string"
377
+ ],
378
+ "maxLength": 60
379
+ },
380
+ "techRecord_applicantDetails_postTown": {
381
+ "type": [
382
+ "null",
383
+ "string"
384
+ ],
385
+ "maxLength": 60
386
+ },
387
+ "techRecord_applicantDetails_address3": {
388
+ "type": [
389
+ "null",
390
+ "string"
391
+ ],
392
+ "maxLength": 60
393
+ },
394
+ "techRecord_applicantDetails_postCode": {
395
+ "type": [
396
+ "null",
397
+ "string"
398
+ ],
399
+ "maxLength": 12
400
+ },
401
+ "techRecord_applicantDetails_telephoneNumber": {
402
+ "type": [
403
+ "null",
404
+ "string"
405
+ ],
406
+ "maxLength": 25
407
+ },
408
+ "techRecord_applicantDetails_emailAddress": {
409
+ "type": [
410
+ "null",
411
+ "string"
412
+ ],
413
+ "maxLength": 255
414
+ },
415
+ "techRecord_applicationId": {
416
+ "type": [
417
+ "string",
418
+ "null"
419
+ ]
420
+ },
421
+ "techRecord_approvalType": {
422
+ "anyOf": [
423
+ {
424
+ "title": "Approval Type",
425
+ "type": "string",
426
+ "enum": [
427
+ "NTA",
428
+ "ECTA",
429
+ "IVA",
430
+ "NSSTA",
431
+ "ECSSTA",
432
+ "GB WVTA",
433
+ "UKNI WVTA",
434
+ "EU WVTA Pre 23",
435
+ "EU WVTA 23 on",
436
+ "QNIG",
437
+ "Prov.GB WVTA",
438
+ "Small series",
439
+ "IVA - VCA",
440
+ "IVA - DVSA/NI"
441
+ ]
442
+ },
443
+ {
444
+ "type": "null"
445
+ }
446
+ ]
447
+ },
448
+ "techRecord_approvalTypeNumber": {
449
+ "type": [
450
+ "string",
451
+ "null"
452
+ ],
453
+ "maxLength": 25
454
+ },
455
+ "techRecord_authIntoService": {
456
+ "type": [
457
+ "string",
458
+ "null"
459
+ ]
460
+ },
461
+ "techRecord_batchId": {
462
+ "type": [
463
+ "string",
464
+ "null"
465
+ ]
466
+ },
467
+ "techRecord_bodyType_code": {
468
+ "type": "string"
469
+ },
470
+ "techRecord_bodyType_description": {
471
+ "type": "string"
472
+ },
473
+ "techRecord_brakes_antilockBrakingSystem": {
474
+ "type": [
475
+ "boolean",
476
+ "null"
477
+ ]
478
+ },
479
+ "techRecord_brakes_dtpNumber": {
480
+ "type": [
481
+ "string",
482
+ "null"
483
+ ],
484
+ "maxLength": 6
485
+ },
486
+ "techRecord_brakes_loadSensingValve": {
487
+ "type": [
488
+ "boolean",
489
+ "null"
490
+ ]
491
+ },
492
+ "techRecord_centreOfRearmostAxleToRearOfTrl": {
493
+ "type": [
494
+ "integer",
495
+ "null"
496
+ ]
497
+ },
498
+ "techRecord_conversionRefNo": {
499
+ "type": [
500
+ "string",
501
+ "null"
502
+ ],
503
+ "maxLength": 10
504
+ },
505
+ "techRecord_couplingCenterToRearAxleMax": {
506
+ "type": [
507
+ "integer",
508
+ "null"
509
+ ],
510
+ "maximum": 99999,
511
+ "minimum": 0
512
+ },
513
+ "techRecord_couplingCenterToRearAxleMin": {
514
+ "type": [
515
+ "integer",
516
+ "null"
517
+ ],
518
+ "maximum": 99999,
519
+ "minimum": 0
520
+ },
521
+ "techRecord_couplingCenterToRearTrlMax": {
522
+ "type": [
523
+ "integer",
524
+ "null"
525
+ ],
526
+ "maximum": 99999,
527
+ "minimum": 0
528
+ },
529
+ "techRecord_couplingCenterToRearTrlMin": {
530
+ "type": [
531
+ "integer",
532
+ "null"
533
+ ],
534
+ "maximum": 99999,
535
+ "minimum": 0
536
+ },
537
+ "techRecord_couplingType": {
538
+ "type": [
539
+ "string",
540
+ "null"
541
+ ],
542
+ "maxLength": 1
543
+ },
544
+ "techRecord_createdAt": {
545
+ "type": "string"
546
+ },
547
+ "techRecord_createdById": {
548
+ "type": "string"
549
+ },
550
+ "techRecord_createdByName": {
551
+ "type": "string"
552
+ },
553
+ "techRecord_departmentalVehicleMarker": {
554
+ "type": [
555
+ "boolean",
556
+ "null"
557
+ ]
558
+ },
559
+ "techRecord_dimensions_length": {
560
+ "type": [
561
+ "integer",
562
+ "null"
563
+ ],
564
+ "maximum": 99999,
565
+ "minimum": 0
566
+ },
567
+ "techRecord_dimensions_width": {
568
+ "type": [
569
+ "integer",
570
+ "null"
571
+ ],
572
+ "maximum": 99999,
573
+ "minimum": 0
574
+ },
575
+ "drawbarCouplingFitted": {
576
+ "type": "string"
577
+ },
578
+ "techRecord_emissionsLimit": {
579
+ "type": [
580
+ "null",
581
+ "integer"
582
+ ],
583
+ "minimum": 0,
584
+ "maximum": 99
585
+ },
586
+ "techRecord_euVehicleCategory": {
587
+ "anyOf": [
588
+ {
589
+ "title": "EU vehicle category",
590
+ "type": "string",
591
+ "enum": [
592
+ "m1",
593
+ "m2",
594
+ "m3",
595
+ "n1",
596
+ "n2",
597
+ "n3",
598
+ "o1",
599
+ "o2",
600
+ "o3",
601
+ "o4",
602
+ "l1e-a",
603
+ "l1e",
604
+ "l2e",
605
+ "l3e",
606
+ "l4e",
607
+ "l5e",
608
+ "l6e",
609
+ "l7e"
610
+ ]
611
+ },
612
+ {
613
+ "type": "null"
614
+ }
615
+ ]
616
+ },
617
+ "techRecord_euroStandard": {
618
+ "title": "Euro standard",
619
+ "type": "string",
620
+ "enum": [
621
+ "0.10 g/kWh Euro 3 PM",
622
+ "0.03 g/kWh Euro IV PM",
623
+ "Euro 3",
624
+ "Euro 4",
625
+ "Euro 5",
626
+ "Euro 6",
627
+ "Euro V",
628
+ "Euro VI",
629
+ "Full Electric"
630
+ ]
631
+ },
632
+ "frontAxleTo5thWheelMax": {
633
+ "type": [
634
+ "integer",
635
+ "null"
636
+ ]
637
+ },
638
+ "techRecord_frontAxleTo5thWheelMin": {
639
+ "type": [
640
+ "integer",
641
+ "null"
642
+ ]
643
+ },
644
+ "techRecord_firstUseDate": {
645
+ "type": [
646
+ "string",
647
+ "null"
648
+ ]
649
+ },
650
+ "techRecord_frameDescription": {
651
+ "anyOf": [
652
+ {
653
+ "title": "Frame Description",
654
+ "type": "string",
655
+ "enum": [
656
+ "Channel section",
657
+ "Space frame",
658
+ "I section",
659
+ "Tubular",
660
+ "Frame section",
661
+ "Other",
662
+ "integral",
663
+ "Box section",
664
+ "U section"
665
+ ]
666
+ },
667
+ {
668
+ "type": "null"
669
+ }
670
+ ]
671
+ },
672
+ "techRecord_frontAxleToRearAxle": {
673
+ "type": [
674
+ "integer",
675
+ "null"
676
+ ],
677
+ "maximum": 99999,
678
+ "minimum": 0
679
+ },
680
+ "techRecord_frontVehicleTo5thWheelCouplingMax": {
681
+ "type": [
682
+ "string",
683
+ "null"
684
+ ]
685
+ },
686
+ "techRecord_frontVehicleTo5thWheelCouplingMin": {
687
+ "type": [
688
+ "string",
689
+ "null"
690
+ ]
691
+ },
692
+ "techRecord_fuelPropulsionSystem": {
693
+ "title": "Fuel Propulsion System",
694
+ "type": "string",
695
+ "enum": [
696
+ "DieselPetrol",
697
+ "Diesel",
698
+ "Petrol",
699
+ "Hybrid",
700
+ "Electric",
701
+ "CNG",
702
+ "Fuel cell",
703
+ "LNG",
704
+ "Other"
705
+ ]
706
+ },
707
+ "techRecord_functionCode": {
708
+ "type": [
709
+ "string",
710
+ "null"
711
+ ],
712
+ "maxLength": 1
713
+ },
714
+ "techRecord_grossDesignWeight": {
715
+ "type": [
716
+ "integer",
717
+ "null"
718
+ ],
719
+ "maximum": 99999,
720
+ "minimum": 0
721
+ },
722
+ "techRecord_grossEecWeight": {
723
+ "type": [
724
+ "integer",
725
+ "null"
726
+ ],
727
+ "maximum": 99999,
728
+ "minimum": 0
729
+ },
730
+ "techRecord_grossGbWeight": {
731
+ "type": [
732
+ "integer",
733
+ "null"
734
+ ],
735
+ "maximum": 99999,
736
+ "minimum": 0
737
+ },
738
+ "techRecord_letterOfAuth": {
739
+ "type": [
740
+ "string",
741
+ "null"
742
+ ]
743
+ },
744
+ "techRecord_make": {
745
+ "type": [
746
+ "string",
747
+ "null"
748
+ ],
749
+ "maxLength": 30
750
+ },
751
+ "techRecord_manufactureYear": {
752
+ "anyOf": [
753
+ {
754
+ "type": "integer",
755
+ "minimum": 0,
756
+ "maximum": 9999
757
+ },
758
+ {
759
+ "type": "null"
760
+ }
761
+ ]
762
+ },
763
+ "techRecord_maxTrainDesignWeight": {
764
+ "type": "integer"
765
+ },
766
+ "techRecord_maxTrainEecWeight": {
767
+ "type": "integer"
768
+ },
769
+ "techRecord_maxTrainGbWeight": {
770
+ "type": "integer"
771
+ },
772
+ "techRecord_manufacturerDetails": {
773
+ "type": [
774
+ "string",
775
+ "null"
776
+ ]
777
+ },
778
+ "techRecord_maxLoadOnCoupling": {
779
+ "type": [
780
+ "integer",
781
+ "null"
782
+ ],
783
+ "minimum": 0,
784
+ "maximum": 99999
785
+ },
786
+ "techRecord_microfilm": {
787
+ "type": [
788
+ "string",
789
+ "null"
790
+ ]
791
+ },
792
+ "techRecord_microfilm_microfilmDocumentType": {
793
+ "anyOf": [
794
+ {
795
+ "type": "null"
796
+ },
797
+ {
798
+ "title": "Microfilm Document Types",
799
+ "type": "string",
800
+ "enum": [
801
+ "PSV Miscellaneous",
802
+ "AAT - Trailer Annual Test",
803
+ "AIV - HGV International App",
804
+ "COIF Modification",
805
+ "Trailer COC + Int Plate",
806
+ "RCT - Trailer Test Cert paid",
807
+ "HGV COC + Int Plate",
808
+ "PSV Carry/Auth",
809
+ "OMO Report",
810
+ "AIT - Trailer International App",
811
+ "IPV - HGV EEC Plate/Cert",
812
+ "XCV - HGV Test Cert free",
813
+ "AAV - HGV Annual Test",
814
+ "COIF Master",
815
+ "Tempo 100 Sp Ord",
816
+ "Deleted",
817
+ "PSV N/ALT",
818
+ "XPT - Tr Plating Cert paid",
819
+ "FFV - HGV First Test",
820
+ "Repl Vitesse 100",
821
+ "TCV - HGV Test Cert",
822
+ "ZZZ - Miscellaneous",
823
+ "Test Certificate",
824
+ "XCT - Trailer Test Cert free",
825
+ "C52 - COC and VTG52A",
826
+ "Tempo 100 Report",
827
+ "Main File Amendment",
828
+ "PSV Doc",
829
+ "PSV COC",
830
+ "PSV Repl COC",
831
+ "TAV - COC",
832
+ "NPT - Trailer Alteration",
833
+ "OMO Certificate",
834
+ "PSV Repl COIF",
835
+ "PSV Repl COF",
836
+ "COIF Application",
837
+ "XPV - HGV Plating Cert Free",
838
+ "TCT - Trailer Test Cert",
839
+ "Tempo 100 App",
840
+ "PSV Decision on N/ALT",
841
+ "Special Order PSV",
842
+ "NPV - HGV Alteration",
843
+ "No Description Found",
844
+ "Vitesse 100 Sp Ord",
845
+ "Brake Test Details",
846
+ "COIF Productional",
847
+ "RDT - Test Disc Paid",
848
+ "RCV - HGV Test Cert",
849
+ "FFT - Trailer First Test",
850
+ "IPT - Trailer EEC Plate/Cert",
851
+ "XDT - Test Disc Free",
852
+ "PRV - HGV Plating Cert paid",
853
+ "COF Cert",
854
+ "PRT - Tr Plating Cert paid",
855
+ "Tempo 100 Permit"
856
+ ]
857
+ }
858
+ ]
859
+ },
860
+ "techRecord_microfilm_microfilmRollNumber": {
861
+ "type": [
862
+ "string",
863
+ "null"
864
+ ],
865
+ "maxLength": 5
866
+ },
867
+ "techRecord_microfilm_microfilmSerialNumber": {
868
+ "type": [
869
+ "string",
870
+ "null"
871
+ ],
872
+ "maxLength": 4
873
+ },
874
+ "techRecord_model": {
875
+ "type": [
876
+ "string",
877
+ "null"
878
+ ],
879
+ "maxLength": 30
880
+ },
881
+ "techRecord_noOfAxles": {
882
+ "anyOf": [
883
+ {
884
+ "type": "integer",
885
+ "minimum": 0,
886
+ "maximum": 99
887
+ },
888
+ {
889
+ "type": "null"
890
+ }
891
+ ]
892
+ },
893
+ "techRecord_notes": {
894
+ "type": "string"
895
+ },
896
+ "techRecord_ntaNumber": {
897
+ "type": "string"
898
+ },
899
+ "techRecord_numberOfWheelsDriven": {
900
+ "type": [
901
+ "integer",
902
+ "null"
903
+ ]
904
+ },
905
+ "techRecord_offRoad": {
906
+ "type": "boolean"
907
+ },
908
+ "plates": {
909
+ "type": "array",
910
+ "items": {
911
+ "type": "object",
912
+ "title": "TRL Plates",
913
+ "additionalProperties": false,
914
+ "properties": {
915
+ "techRecord_plateSerialNumber": {
916
+ "type": [
917
+ "string",
918
+ "null"
919
+ ],
920
+ "maxLength": 12
921
+ },
922
+ "techRecord_plateIssueDate": {
923
+ "type": [
924
+ "string",
925
+ "null"
926
+ ]
927
+ },
928
+ "techRecord_reasonForIssue": {
929
+ "anyOf": [
930
+ {
931
+ "type": "null"
932
+ },
933
+ {
934
+ "title": "Plate Reason For Issue",
935
+ "type": "string",
936
+ "enum": [
937
+ "Free replacement",
938
+ "Replacement",
939
+ "Destroyed",
940
+ "Provisional",
941
+ "Original",
942
+ "Manual"
943
+ ]
944
+ }
945
+ ]
946
+ },
947
+ "techRecord_plateIssuer": {
948
+ "type": [
949
+ "string",
950
+ "null"
951
+ ],
952
+ "maxLength": 150
953
+ }
954
+ }
955
+ }
956
+ },
957
+ "techRecord_purchaserDetails_address1": {
958
+ "type": [
959
+ "string",
960
+ "null"
961
+ ]
962
+ },
963
+ "techRecord_purchaserDetails_address2": {
964
+ "type": [
965
+ "string",
966
+ "null"
967
+ ]
968
+ },
969
+ "techRecord_purchaserDetails_address3": {
970
+ "type": [
971
+ "string",
972
+ "null"
973
+ ]
974
+ },
975
+ "techRecord_purchaserDetails_emailAddress": {
976
+ "type": [
977
+ "string",
978
+ "null"
979
+ ]
980
+ },
981
+ "techRecord_purchaserDetails_faxNumber": {
982
+ "type": [
983
+ "string",
984
+ "null"
985
+ ]
986
+ },
987
+ "techRecord_purchaserDetails_name": {
988
+ "type": [
989
+ "string",
990
+ "null"
991
+ ]
992
+ },
993
+ "techRecord_purchaserDetails_postCode": {
994
+ "type": [
995
+ "string",
996
+ "null"
997
+ ]
998
+ },
999
+ "techRecord_purchaserDetails_postTown": {
1000
+ "type": [
1001
+ "string",
1002
+ "null"
1003
+ ]
1004
+ },
1005
+ "techRecord_purchaserDetails_purchaserNotes": {
1006
+ "type": [
1007
+ "string",
1008
+ "null"
1009
+ ]
1010
+ },
1011
+ "techRecord_purchaserDetails_telephoneNumber": {
1012
+ "type": [
1013
+ "string",
1014
+ "null"
1015
+ ]
1016
+ },
1017
+ "techRecord_lastUpdatedAt": {
1018
+ "type": [
1019
+ "string",
1020
+ "null"
1021
+ ]
1022
+ },
1023
+ "techRecord_lastUpdatedByName": {
1024
+ "type": [
1025
+ "string",
1026
+ "null"
1027
+ ]
1028
+ },
1029
+ "techRecord_lastUpdatedById": {
1030
+ "type": [
1031
+ "string",
1032
+ "null"
1033
+ ]
1034
+ },
1035
+ "techRecord_rearAxleToRearTrl": {
1036
+ "type": [
1037
+ "integer",
1038
+ "null"
1039
+ ],
1040
+ "maximum": 99999,
1041
+ "minimum": 0
1042
+ },
1043
+ "techRecord_reasonForCreation": {
1044
+ "type": "string"
1045
+ },
1046
+ "techRecord_recordCompleteness": {
1047
+ "const": "complete"
1048
+ },
1049
+ "techRecord_regnDate": {
1050
+ "anyOf": [
1051
+ {
1052
+ "type": "string",
1053
+ "pattern": "^$"
1054
+ },
1055
+ {
1056
+ "type": "string",
1057
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
1058
+ },
1059
+ {
1060
+ "type": "null"
1061
+ }
1062
+ ]
1063
+ },
1064
+ "techRecord_roadFriendly": {
1065
+ "type": [
1066
+ "boolean",
1067
+ "null"
1068
+ ]
1069
+ },
1070
+ "techRecord_speedLimiterMrk": {
1071
+ "type": "boolean"
1072
+ },
1073
+ "techRecord_statusCode": {
1074
+ "title": "Status Code",
1075
+ "type": "string",
1076
+ "enum": [
1077
+ "provisional",
1078
+ "current",
1079
+ "archived"
1080
+ ]
1081
+ },
1082
+ "techRecord_tachoExemptMrk": {
1083
+ "type": "boolean"
1084
+ },
1085
+ "techRecord_suspensionType": {
1086
+ "type": [
1087
+ "string",
1088
+ "null"
1089
+ ],
1090
+ "maxLength": 1
1091
+ },
1092
+ "techRecord_tyreUseCode": {
1093
+ "type": [
1094
+ "string",
1095
+ "null"
1096
+ ],
1097
+ "maxLength": 2
1098
+ },
1099
+ "techRecord_variantNumber": {
1100
+ "type": "string"
1101
+ },
1102
+ "techRecord_variantVersionNumber": {
1103
+ "type": "string"
1104
+ },
1105
+ "techRecord_vehicleClass_code": {
1106
+ "type": "string"
1107
+ },
1108
+ "techRecord_vehicleClass_description": {
1109
+ "title": "Vehicle Class Description",
1110
+ "type": "string",
1111
+ "enum": [
1112
+ "motorbikes over 200cc or with a sidecar",
1113
+ "not applicable",
1114
+ "small psv (ie: less than or equal to 22 seats)",
1115
+ "motorbikes up to 200cc",
1116
+ "trailer",
1117
+ "large psv(ie: greater than 23 seats)",
1118
+ "3 wheelers",
1119
+ "heavy goods vehicle",
1120
+ "MOT class 4",
1121
+ "MOT class 7",
1122
+ "MOT class 5"
1123
+ ]
1124
+ },
1125
+ "techRecord_vehicleConfiguration": {
1126
+ "anyOf": [
1127
+ {
1128
+ "title": "Vehicle Configuration",
1129
+ "type": "string",
1130
+ "enum": [
1131
+ "rigid",
1132
+ "articulated",
1133
+ "centre axle drawbar",
1134
+ "semi-car transporter",
1135
+ "semi-trailer",
1136
+ "long semi-trailer",
1137
+ "low loader",
1138
+ "other",
1139
+ "drawbar",
1140
+ "four-in-line",
1141
+ "dolly",
1142
+ "full drawbar"
1143
+ ]
1144
+ },
1145
+ {
1146
+ "type": "null"
1147
+ }
1148
+ ]
1149
+ },
1150
+ "techRecord_vehicleType": {
1151
+ "const": "trl"
1152
+ },
1153
+ "trailerId": {
1154
+ "type": "string"
1155
+ },
1156
+ "vin": {
1157
+ "type": "string"
1158
+ },
1159
+ "axles": {
1160
+ "type": "array",
1161
+ "items": {
1162
+ "type": "object",
1163
+ "title": "PSV Axles",
1164
+ "additionalProperties": false,
1165
+ "properties": {
1166
+ "techRecord_parkingBrakeMrk": {
1167
+ "type": [
1168
+ "boolean",
1169
+ "null"
1170
+ ]
1171
+ },
1172
+ "techRecord_axleNumber": {
1173
+ "type": [
1174
+ "integer",
1175
+ "null"
1176
+ ]
1177
+ },
1178
+ "techRecord_brakes": {
1179
+ "type": "array",
1180
+ "items": {
1181
+ "type": "object",
1182
+ "properties": {
1183
+ "brakeActuator": {
1184
+ "type": "integer",
1185
+ "minimum": 0,
1186
+ "maximum": 999
1187
+ },
1188
+ "leverLength": {
1189
+ "type": "integer",
1190
+ "minimum": 0,
1191
+ "maximum": 999
1192
+ },
1193
+ "springBrakeParking": {
1194
+ "type": "boolean"
1195
+ }
1196
+ }
1197
+ }
1198
+ },
1199
+ "techRecord_weights_gbWeight": {
1200
+ "type": [
1201
+ "integer",
1202
+ "null"
1203
+ ],
1204
+ "minimum": 0,
1205
+ "maximum": 99999
1206
+ },
1207
+ "techRecord_weights_designWeight": {
1208
+ "type": [
1209
+ "integer",
1210
+ "null"
1211
+ ],
1212
+ "minimum": 0,
1213
+ "maximum": 99999
1214
+ },
1215
+ "techRecord_weights_ladenWeight": {
1216
+ "type": [
1217
+ "integer",
1218
+ "null"
1219
+ ],
1220
+ "minimum": 0,
1221
+ "maximum": 99999
1222
+ },
1223
+ "techRecord_weights_kerbWeight": {
1224
+ "type": [
1225
+ "integer",
1226
+ "null"
1227
+ ],
1228
+ "minimum": 0,
1229
+ "maximum": 99999
1230
+ },
1231
+ "techRecord_tyres_tyreCode": {
1232
+ "type": [
1233
+ "integer",
1234
+ "null"
1235
+ ],
1236
+ "minimum": 0,
1237
+ "maximum": 99999
1238
+ },
1239
+ "techRecord_tyres_tyreSize": {
1240
+ "type": [
1241
+ "string",
1242
+ "null"
1243
+ ],
1244
+ "maxLength": 12
1245
+ },
1246
+ "techRecord_tyres_plyRating": {
1247
+ "type": [
1248
+ "string",
1249
+ "null"
1250
+ ]
1251
+ },
1252
+ "techRecord_tyres_fitmentCode": {
1253
+ "anyOf": [
1254
+ {
1255
+ "type": "null"
1256
+ },
1257
+ {
1258
+ "title": "Fitment Code",
1259
+ "type": "string",
1260
+ "enum": [
1261
+ "single",
1262
+ "double"
1263
+ ]
1264
+ }
1265
+ ]
1266
+ },
1267
+ "techRecord_tyres_dataTrAxles": {
1268
+ "type": [
1269
+ "null",
1270
+ "integer"
1271
+ ],
1272
+ "minimum": 0,
1273
+ "maximum": 999
1274
+ },
1275
+ "techRecord_tyres_speedCategorySymbol": {
1276
+ "anyOf": [
1277
+ {
1278
+ "title": "Speed Category Symbol",
1279
+ "type": "string",
1280
+ "enum": [
1281
+ "a7",
1282
+ "a8",
1283
+ "b",
1284
+ "c",
1285
+ "d",
1286
+ "e",
1287
+ "f",
1288
+ "g",
1289
+ "j",
1290
+ "k",
1291
+ "l",
1292
+ "m",
1293
+ "n",
1294
+ "p",
1295
+ "q"
1296
+ ]
1297
+ },
1298
+ {
1299
+ "type": "null"
1300
+ }
1301
+ ]
1302
+ }
1303
+ }
1304
+ }
1305
+ }
1306
+ }
1307
+ }