@dvsa/cvs-type-definitions 2.0.14 → 2.0.18

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 (53) hide show
  1. package/json-schemas/v1/activity/index.json +62 -62
  2. package/json-schemas/v1/defect-category-reference-data/index.json +440 -440
  3. package/json-schemas/v1/defect-details/index.json +265 -265
  4. package/json-schemas/v1/defect-location/index.json +49 -49
  5. package/json-schemas/v1/reason-item/index.json +17 -17
  6. package/json-schemas/v1/tech-record/index.json +639 -639
  7. package/json-schemas/v1/test/index.json +1843 -1843
  8. package/json-schemas/v1/test-result/index.json +636 -636
  9. package/json-schemas/v1/test-station/index.json +67 -67
  10. package/json-schemas/v1/test-type/index.json +479 -479
  11. package/json-schemas/v1/vehicle/index.json +1804 -1804
  12. package/json-schemas/v1/vehicle-tech-record/index.json +683 -683
  13. package/json-schemas/v1/visit/index.json +1895 -1895
  14. package/json-schemas/v3/tech-record/get/car/complete/index.json +216 -216
  15. package/json-schemas/v3/tech-record/get/car/skeleton/index.json +195 -195
  16. package/json-schemas/v3/tech-record/get/hgv/complete/index.json +1051 -1051
  17. package/json-schemas/v3/tech-record/get/hgv/skeleton/index.json +1124 -1124
  18. package/json-schemas/v3/tech-record/get/hgv/testable/index.json +1119 -1119
  19. package/json-schemas/v3/tech-record/get/lgv/complete/index.json +226 -226
  20. package/json-schemas/v3/tech-record/get/lgv/skeleton/index.json +202 -202
  21. package/json-schemas/v3/tech-record/get/motorcycle/complete/index.json +219 -219
  22. package/json-schemas/v3/tech-record/get/motorcycle/skeleton/index.json +202 -202
  23. package/json-schemas/v3/tech-record/get/psv/complete/index.json +1027 -1027
  24. package/json-schemas/v3/tech-record/get/psv/skeleton/index.json +1120 -1120
  25. package/json-schemas/v3/tech-record/get/psv/testable/index.json +1097 -1097
  26. package/json-schemas/v3/tech-record/get/search/complete/index.json +55 -55
  27. package/json-schemas/v3/tech-record/get/search/skeleton/index.json +55 -55
  28. package/json-schemas/v3/tech-record/get/trl/complete/index.json +1307 -1307
  29. package/json-schemas/v3/tech-record/get/trl/skeleton/index.json +1002 -1002
  30. package/json-schemas/v3/tech-record/get/trl/testable/index.json +1155 -1155
  31. package/json-schemas/v3/tech-record/post/psv/complete/index.json +1024 -1024
  32. package/json-schemas/v3/tech-record/post/psv/skeleton/index.json +1112 -1112
  33. package/json-schemas/v3/tech-record/post/psv/testable/index.json +1092 -1092
  34. package/json-schemas/v3/tech-record/put/car/complete/request/index.json +87 -87
  35. package/json-schemas/v3/tech-record/put/car/complete/response/index.json +237 -237
  36. package/json-schemas/v3/tech-record/put/car/skeleton/request/index.json +64 -64
  37. package/json-schemas/v3/tech-record/put/car/skeleton/response/index.json +216 -216
  38. package/json-schemas/v3/tech-record/put/hgv/complete/index.json +1009 -1009
  39. package/json-schemas/v3/tech-record/put/hgv/skeleton/index.json +1082 -1082
  40. package/json-schemas/v3/tech-record/put/hgv/testable/index.json +1077 -1077
  41. package/json-schemas/v3/tech-record/put/lgv/complete/request/index.json +97 -97
  42. package/json-schemas/v3/tech-record/put/lgv/complete/response/index.json +247 -247
  43. package/json-schemas/v3/tech-record/put/lgv/skeleton/request/index.json +71 -71
  44. package/json-schemas/v3/tech-record/put/lgv/skeleton/response/index.json +223 -223
  45. package/json-schemas/v3/tech-record/put/trl/complete/index.json +1265 -1265
  46. package/json-schemas/v3/tech-record/put/trl/skeleton/index.json +978 -978
  47. package/json-schemas/v3/tech-record/put/trl/testable/index.json +1115 -1115
  48. package/package.json +31 -36
  49. package/{lib/src/schema-validation/schema-validator.d.ts → schema-validator.d.ts} +1 -1
  50. package/{lib/src/schema-validation/schema-validator.js → schema-validator.js} +2 -2
  51. package/README.md +0 -48
  52. /package/{lib/schemas.d.ts → schemas.d.ts} +0 -0
  53. /package/{lib/schemas.js → schemas.js} +0 -0
@@ -1,440 +1,440 @@
1
- {
2
- "title": "Defect Category Reference Data Schema",
3
- "type": "object",
4
- "properties": {
5
- "imNumber": {
6
- "type": "integer"
7
- },
8
- "imDescription": {
9
- "type": "string"
10
- },
11
- "forVehicleType": {
12
- "type": "array",
13
- "items": {
14
- "type": "string"
15
- }
16
- },
17
- "additionalInfo": {
18
- "title": "Additional Info Schema",
19
- "type": "object",
20
- "properties": {
21
- "psv": {
22
- "properties": {
23
- "location": {
24
- "title": "Defect Location Metadata Schema",
25
- "type": "object",
26
- "properties": {
27
- "vertical": {
28
- "anyOf": [
29
- {
30
- "type": "array",
31
- "items": {
32
- "type": "string"
33
- }
34
- },
35
- {
36
- "type": "null"
37
- }
38
- ]
39
- },
40
- "horizontal": {
41
- "anyOf": [
42
- {
43
- "type": "array",
44
- "items": {
45
- "type": "string"
46
- }
47
- },
48
- {
49
- "type": "null"
50
- }
51
- ]
52
- },
53
- "lateral": {
54
- "anyOf": [
55
- {
56
- "type": "array",
57
- "items": {
58
- "type": "string"
59
- }
60
- },
61
- {
62
- "type": "null"
63
- }
64
- ]
65
- },
66
- "longitudinal": {
67
- "anyOf": [
68
- {
69
- "type": "array",
70
- "items": {
71
- "type": "string"
72
- }
73
- },
74
- {
75
- "type": "null"
76
- }
77
- ]
78
- },
79
- "rowNumber": {
80
- "anyOf": [
81
- {
82
- "type": "array",
83
- "items": {
84
- "type": "number"
85
- }
86
- },
87
- {
88
- "type": "null"
89
- }
90
- ]
91
- },
92
- "seatNumber": {
93
- "anyOf": [
94
- {
95
- "type": "array",
96
- "items": {
97
- "type": "integer"
98
- }
99
- },
100
- {
101
- "type": "null"
102
- }
103
- ]
104
- },
105
- "axleNumber": {
106
- "anyOf": [
107
- {
108
- "type": "array",
109
- "items": {
110
- "type": "number"
111
- }
112
- },
113
- {
114
- "type": "null"
115
- }
116
- ]
117
- }
118
- },
119
- "additionalProperties": false
120
- },
121
- "notes": {
122
- "type": "boolean"
123
- }
124
- },
125
- "additionalProperties": false
126
- },
127
- "hgv": {
128
- "properties": {
129
- "location": {
130
- "title": "Defect Location Metadata Schema",
131
- "type": "object",
132
- "properties": {
133
- "vertical": {
134
- "anyOf": [
135
- {
136
- "type": "array",
137
- "items": {
138
- "type": "string"
139
- }
140
- },
141
- {
142
- "type": "null"
143
- }
144
- ]
145
- },
146
- "horizontal": {
147
- "anyOf": [
148
- {
149
- "type": "array",
150
- "items": {
151
- "type": "string"
152
- }
153
- },
154
- {
155
- "type": "null"
156
- }
157
- ]
158
- },
159
- "lateral": {
160
- "anyOf": [
161
- {
162
- "type": "array",
163
- "items": {
164
- "type": "string"
165
- }
166
- },
167
- {
168
- "type": "null"
169
- }
170
- ]
171
- },
172
- "longitudinal": {
173
- "anyOf": [
174
- {
175
- "type": "array",
176
- "items": {
177
- "type": "string"
178
- }
179
- },
180
- {
181
- "type": "null"
182
- }
183
- ]
184
- },
185
- "rowNumber": {
186
- "anyOf": [
187
- {
188
- "type": "array",
189
- "items": {
190
- "type": "number"
191
- }
192
- },
193
- {
194
- "type": "null"
195
- }
196
- ]
197
- },
198
- "seatNumber": {
199
- "anyOf": [
200
- {
201
- "type": "array",
202
- "items": {
203
- "type": "integer"
204
- }
205
- },
206
- {
207
- "type": "null"
208
- }
209
- ]
210
- },
211
- "axleNumber": {
212
- "anyOf": [
213
- {
214
- "type": "array",
215
- "items": {
216
- "type": "number"
217
- }
218
- },
219
- {
220
- "type": "null"
221
- }
222
- ]
223
- }
224
- },
225
- "additionalProperties": false
226
- },
227
- "notes": {
228
- "type": "boolean"
229
- }
230
- },
231
- "additionalProperties": false
232
- },
233
- "trl": {
234
- "properties": {
235
- "location": {
236
- "title": "Defect Location Metadata Schema",
237
- "type": "object",
238
- "properties": {
239
- "vertical": {
240
- "anyOf": [
241
- {
242
- "type": "array",
243
- "items": {
244
- "type": "string"
245
- }
246
- },
247
- {
248
- "type": "null"
249
- }
250
- ]
251
- },
252
- "horizontal": {
253
- "anyOf": [
254
- {
255
- "type": "array",
256
- "items": {
257
- "type": "string"
258
- }
259
- },
260
- {
261
- "type": "null"
262
- }
263
- ]
264
- },
265
- "lateral": {
266
- "anyOf": [
267
- {
268
- "type": "array",
269
- "items": {
270
- "type": "string"
271
- }
272
- },
273
- {
274
- "type": "null"
275
- }
276
- ]
277
- },
278
- "longitudinal": {
279
- "anyOf": [
280
- {
281
- "type": "array",
282
- "items": {
283
- "type": "string"
284
- }
285
- },
286
- {
287
- "type": "null"
288
- }
289
- ]
290
- },
291
- "rowNumber": {
292
- "anyOf": [
293
- {
294
- "type": "array",
295
- "items": {
296
- "type": "number"
297
- }
298
- },
299
- {
300
- "type": "null"
301
- }
302
- ]
303
- },
304
- "seatNumber": {
305
- "anyOf": [
306
- {
307
- "type": "array",
308
- "items": {
309
- "type": "integer"
310
- }
311
- },
312
- {
313
- "type": "null"
314
- }
315
- ]
316
- },
317
- "axleNumber": {
318
- "anyOf": [
319
- {
320
- "type": "array",
321
- "items": {
322
- "type": "number"
323
- }
324
- },
325
- {
326
- "type": "null"
327
- }
328
- ]
329
- }
330
- },
331
- "additionalProperties": false
332
- },
333
- "notes": {
334
- "type": "boolean"
335
- }
336
- },
337
- "additionalProperties": false
338
- }
339
- },
340
- "additionalProperties": false,
341
- "required": [
342
- "hgv",
343
- "psv",
344
- "trl"
345
- ]
346
- },
347
- "items": {
348
- "type": "array",
349
- "items": {
350
- "title": "Defect Item Reference Data Schema",
351
- "type": "object",
352
- "properties": {
353
- "itemNumber": {
354
- "type": "integer"
355
- },
356
- "itemDescription": {
357
- "type": "string"
358
- },
359
- "forVehicleType": {
360
- "type": "array",
361
- "items": {
362
- "type": "string"
363
- }
364
- },
365
- "deficiencies": {
366
- "type": "array",
367
- "items": {
368
- "title": "Defect Deficiency Reference Data Schema",
369
- "type": "object",
370
- "properties": {
371
- "ref": {
372
- "type": "string"
373
- },
374
- "deficiencyId": {
375
- "type": [
376
- "string",
377
- "null"
378
- ]
379
- },
380
- "deficiencySubId": {
381
- "type": "string"
382
- },
383
- "deficiencyCategory": {
384
- "type": "string"
385
- },
386
- "deficiencyText": {
387
- "type": "string"
388
- },
389
- "stdForProhibition": {
390
- "type": "boolean"
391
- },
392
- "forVehicleType": {
393
- "anyOf": [
394
- {
395
- "type": "array",
396
- "items": {
397
- "type": "string"
398
- }
399
- },
400
- {
401
- "type": "string",
402
- "enum": [
403
- "psv",
404
- "hgv",
405
- "trl",
406
- "car",
407
- "lgv",
408
- "motorcycle"
409
- ]
410
- }
411
- ]
412
- }
413
- },
414
- "additionalProperties": false,
415
- "required": [
416
- "ref",
417
- "deficiencyId",
418
- "deficiencySubId",
419
- "deficiencyCategory",
420
- "deficiencyText",
421
- "stdForProhibition",
422
- "forVehicleType"
423
- ]
424
- }
425
- }
426
- },
427
- "additionalProperties": false,
428
- "required": []
429
- }
430
- }
431
- },
432
- "additionalProperties": false,
433
- "required": [
434
- "imNumber",
435
- "imDescription",
436
- "forVehicleType",
437
- "additionalInfo",
438
- "items"
439
- ]
440
- }
1
+ {
2
+ "title": "Defect Category Reference Data Schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "imNumber": {
6
+ "type": "integer"
7
+ },
8
+ "imDescription": {
9
+ "type": "string"
10
+ },
11
+ "forVehicleType": {
12
+ "type": "array",
13
+ "items": {
14
+ "type": "string"
15
+ }
16
+ },
17
+ "additionalInfo": {
18
+ "title": "Additional Info Schema",
19
+ "type": "object",
20
+ "properties": {
21
+ "psv": {
22
+ "properties": {
23
+ "location": {
24
+ "title": "Defect Location Metadata Schema",
25
+ "type": "object",
26
+ "properties": {
27
+ "vertical": {
28
+ "anyOf": [
29
+ {
30
+ "type": "array",
31
+ "items": {
32
+ "type": "string"
33
+ }
34
+ },
35
+ {
36
+ "type": "null"
37
+ }
38
+ ]
39
+ },
40
+ "horizontal": {
41
+ "anyOf": [
42
+ {
43
+ "type": "array",
44
+ "items": {
45
+ "type": "string"
46
+ }
47
+ },
48
+ {
49
+ "type": "null"
50
+ }
51
+ ]
52
+ },
53
+ "lateral": {
54
+ "anyOf": [
55
+ {
56
+ "type": "array",
57
+ "items": {
58
+ "type": "string"
59
+ }
60
+ },
61
+ {
62
+ "type": "null"
63
+ }
64
+ ]
65
+ },
66
+ "longitudinal": {
67
+ "anyOf": [
68
+ {
69
+ "type": "array",
70
+ "items": {
71
+ "type": "string"
72
+ }
73
+ },
74
+ {
75
+ "type": "null"
76
+ }
77
+ ]
78
+ },
79
+ "rowNumber": {
80
+ "anyOf": [
81
+ {
82
+ "type": "array",
83
+ "items": {
84
+ "type": "number"
85
+ }
86
+ },
87
+ {
88
+ "type": "null"
89
+ }
90
+ ]
91
+ },
92
+ "seatNumber": {
93
+ "anyOf": [
94
+ {
95
+ "type": "array",
96
+ "items": {
97
+ "type": "integer"
98
+ }
99
+ },
100
+ {
101
+ "type": "null"
102
+ }
103
+ ]
104
+ },
105
+ "axleNumber": {
106
+ "anyOf": [
107
+ {
108
+ "type": "array",
109
+ "items": {
110
+ "type": "number"
111
+ }
112
+ },
113
+ {
114
+ "type": "null"
115
+ }
116
+ ]
117
+ }
118
+ },
119
+ "additionalProperties": false
120
+ },
121
+ "notes": {
122
+ "type": "boolean"
123
+ }
124
+ },
125
+ "additionalProperties": false
126
+ },
127
+ "hgv": {
128
+ "properties": {
129
+ "location": {
130
+ "title": "Defect Location Metadata Schema",
131
+ "type": "object",
132
+ "properties": {
133
+ "vertical": {
134
+ "anyOf": [
135
+ {
136
+ "type": "array",
137
+ "items": {
138
+ "type": "string"
139
+ }
140
+ },
141
+ {
142
+ "type": "null"
143
+ }
144
+ ]
145
+ },
146
+ "horizontal": {
147
+ "anyOf": [
148
+ {
149
+ "type": "array",
150
+ "items": {
151
+ "type": "string"
152
+ }
153
+ },
154
+ {
155
+ "type": "null"
156
+ }
157
+ ]
158
+ },
159
+ "lateral": {
160
+ "anyOf": [
161
+ {
162
+ "type": "array",
163
+ "items": {
164
+ "type": "string"
165
+ }
166
+ },
167
+ {
168
+ "type": "null"
169
+ }
170
+ ]
171
+ },
172
+ "longitudinal": {
173
+ "anyOf": [
174
+ {
175
+ "type": "array",
176
+ "items": {
177
+ "type": "string"
178
+ }
179
+ },
180
+ {
181
+ "type": "null"
182
+ }
183
+ ]
184
+ },
185
+ "rowNumber": {
186
+ "anyOf": [
187
+ {
188
+ "type": "array",
189
+ "items": {
190
+ "type": "number"
191
+ }
192
+ },
193
+ {
194
+ "type": "null"
195
+ }
196
+ ]
197
+ },
198
+ "seatNumber": {
199
+ "anyOf": [
200
+ {
201
+ "type": "array",
202
+ "items": {
203
+ "type": "integer"
204
+ }
205
+ },
206
+ {
207
+ "type": "null"
208
+ }
209
+ ]
210
+ },
211
+ "axleNumber": {
212
+ "anyOf": [
213
+ {
214
+ "type": "array",
215
+ "items": {
216
+ "type": "number"
217
+ }
218
+ },
219
+ {
220
+ "type": "null"
221
+ }
222
+ ]
223
+ }
224
+ },
225
+ "additionalProperties": false
226
+ },
227
+ "notes": {
228
+ "type": "boolean"
229
+ }
230
+ },
231
+ "additionalProperties": false
232
+ },
233
+ "trl": {
234
+ "properties": {
235
+ "location": {
236
+ "title": "Defect Location Metadata Schema",
237
+ "type": "object",
238
+ "properties": {
239
+ "vertical": {
240
+ "anyOf": [
241
+ {
242
+ "type": "array",
243
+ "items": {
244
+ "type": "string"
245
+ }
246
+ },
247
+ {
248
+ "type": "null"
249
+ }
250
+ ]
251
+ },
252
+ "horizontal": {
253
+ "anyOf": [
254
+ {
255
+ "type": "array",
256
+ "items": {
257
+ "type": "string"
258
+ }
259
+ },
260
+ {
261
+ "type": "null"
262
+ }
263
+ ]
264
+ },
265
+ "lateral": {
266
+ "anyOf": [
267
+ {
268
+ "type": "array",
269
+ "items": {
270
+ "type": "string"
271
+ }
272
+ },
273
+ {
274
+ "type": "null"
275
+ }
276
+ ]
277
+ },
278
+ "longitudinal": {
279
+ "anyOf": [
280
+ {
281
+ "type": "array",
282
+ "items": {
283
+ "type": "string"
284
+ }
285
+ },
286
+ {
287
+ "type": "null"
288
+ }
289
+ ]
290
+ },
291
+ "rowNumber": {
292
+ "anyOf": [
293
+ {
294
+ "type": "array",
295
+ "items": {
296
+ "type": "number"
297
+ }
298
+ },
299
+ {
300
+ "type": "null"
301
+ }
302
+ ]
303
+ },
304
+ "seatNumber": {
305
+ "anyOf": [
306
+ {
307
+ "type": "array",
308
+ "items": {
309
+ "type": "integer"
310
+ }
311
+ },
312
+ {
313
+ "type": "null"
314
+ }
315
+ ]
316
+ },
317
+ "axleNumber": {
318
+ "anyOf": [
319
+ {
320
+ "type": "array",
321
+ "items": {
322
+ "type": "number"
323
+ }
324
+ },
325
+ {
326
+ "type": "null"
327
+ }
328
+ ]
329
+ }
330
+ },
331
+ "additionalProperties": false
332
+ },
333
+ "notes": {
334
+ "type": "boolean"
335
+ }
336
+ },
337
+ "additionalProperties": false
338
+ }
339
+ },
340
+ "additionalProperties": false,
341
+ "required": [
342
+ "hgv",
343
+ "psv",
344
+ "trl"
345
+ ]
346
+ },
347
+ "items": {
348
+ "type": "array",
349
+ "items": {
350
+ "title": "Defect Item Reference Data Schema",
351
+ "type": "object",
352
+ "properties": {
353
+ "itemNumber": {
354
+ "type": "integer"
355
+ },
356
+ "itemDescription": {
357
+ "type": "string"
358
+ },
359
+ "forVehicleType": {
360
+ "type": "array",
361
+ "items": {
362
+ "type": "string"
363
+ }
364
+ },
365
+ "deficiencies": {
366
+ "type": "array",
367
+ "items": {
368
+ "title": "Defect Deficiency Reference Data Schema",
369
+ "type": "object",
370
+ "properties": {
371
+ "ref": {
372
+ "type": "string"
373
+ },
374
+ "deficiencyId": {
375
+ "type": [
376
+ "string",
377
+ "null"
378
+ ]
379
+ },
380
+ "deficiencySubId": {
381
+ "type": "string"
382
+ },
383
+ "deficiencyCategory": {
384
+ "type": "string"
385
+ },
386
+ "deficiencyText": {
387
+ "type": "string"
388
+ },
389
+ "stdForProhibition": {
390
+ "type": "boolean"
391
+ },
392
+ "forVehicleType": {
393
+ "anyOf": [
394
+ {
395
+ "type": "array",
396
+ "items": {
397
+ "type": "string"
398
+ }
399
+ },
400
+ {
401
+ "type": "string",
402
+ "enum": [
403
+ "psv",
404
+ "hgv",
405
+ "trl",
406
+ "car",
407
+ "lgv",
408
+ "motorcycle"
409
+ ]
410
+ }
411
+ ]
412
+ }
413
+ },
414
+ "additionalProperties": false,
415
+ "required": [
416
+ "ref",
417
+ "deficiencyId",
418
+ "deficiencySubId",
419
+ "deficiencyCategory",
420
+ "deficiencyText",
421
+ "stdForProhibition",
422
+ "forVehicleType"
423
+ ]
424
+ }
425
+ }
426
+ },
427
+ "additionalProperties": false,
428
+ "required": []
429
+ }
430
+ }
431
+ },
432
+ "additionalProperties": false,
433
+ "required": [
434
+ "imNumber",
435
+ "imDescription",
436
+ "forVehicleType",
437
+ "additionalInfo",
438
+ "items"
439
+ ]
440
+ }