@dvsa/cvs-type-definitions 8.0.0 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/json-schemas/enums/euVehicleCategory.enum.json +44 -0
  2. package/json-schemas/enums/vehicleConfiguration.enum.json +32 -0
  3. package/json-schemas/enums/vehicleSize.enum.json +12 -0
  4. package/json-schemas/enums/vehicleSubclass.enum.json +26 -0
  5. package/json-schemas/enums/vehicleType.enum.json +20 -0
  6. package/json-schemas/required-standards/defects/get/index.json +1 -72
  7. package/json-schemas/test-type/enums/testTypeClassification.enum.json +14 -0
  8. package/json-schemas/test-type/get/index.json +572 -0
  9. package/json-schemas/test-type/nextTestTypesOrCategory.json +416 -0
  10. package/json-schemas/test-type/testCode.json +266 -0
  11. package/json-schemas/v1/defect-category-reference-data/index.json +2 -192
  12. package/json-schemas/v1/enums/vehicleType.enum.json +20 -0
  13. package/json-schemas/v1/tech-record/index.json +1 -19
  14. package/json-schemas/v1/test/index.json +438 -21
  15. package/json-schemas/v1/test-result/index.json +1128 -1
  16. package/json-schemas/v1/{test-type → test-result-test-type}/index.json +1 -1
  17. package/json-schemas/v1/vehicle/index.json +438 -21
  18. package/json-schemas/v1/vehicle-tech-record/index.json +1 -19
  19. package/json-schemas/v1/visit/index.json +438 -21
  20. package/json-schemas/v3/tech-record/enums/vehicleSize.enum.json +12 -0
  21. package/json-schemas/v3/tech-record/get/psv/complete/index.json +1 -10
  22. package/json-schemas/v3/tech-record/get/psv/skeleton/index.json +1 -10
  23. package/json-schemas/v3/tech-record/get/psv/testable/index.json +1 -10
  24. package/json-schemas/v3/tech-record/put/psv/complete/index.json +1 -10
  25. package/json-schemas/v3/tech-record/put/psv/skeleton/index.json +1 -10
  26. package/json-schemas/v3/tech-record/put/psv/testable/index.json +1 -10
  27. package/package.json +3 -2
  28. package/schemas.d.ts +1 -1
  29. package/schemas.js +12 -1
  30. package/types/enums/euVehicleCategory.enum.d.ts +25 -0
  31. package/types/enums/euVehicleCategory.enum.js +30 -0
  32. package/types/enums/euVehicleCategory.enum.ts +27 -0
  33. package/types/enums/vehicleConfiguration.enum.d.ts +19 -0
  34. package/types/enums/vehicleConfiguration.enum.js +24 -0
  35. package/types/enums/vehicleConfiguration.enum.ts +21 -0
  36. package/types/enums/vehicleSize.enum.d.ts +9 -0
  37. package/types/enums/vehicleSize.enum.js +14 -0
  38. package/types/enums/vehicleSize.enum.ts +11 -0
  39. package/types/enums/vehicleSubclass.enum.d.ts +16 -0
  40. package/types/enums/vehicleSubclass.enum.js +21 -0
  41. package/types/enums/vehicleSubclass.enum.ts +18 -0
  42. package/types/enums/vehicleType.enum.d.ts +13 -0
  43. package/types/enums/vehicleType.enum.js +18 -0
  44. package/types/enums/vehicleType.enum.ts +15 -0
  45. package/types/test-type/enums/testTypeClassification.enum.d.ts +10 -0
  46. package/types/test-type/enums/testTypeClassification.enum.js +15 -0
  47. package/types/test-type/enums/testTypeClassification.enum.ts +12 -0
  48. package/types/test-type/get/index.d.ts +128 -0
  49. package/types/test-type/nextTestTypesOrCategory.d.ts +124 -0
  50. package/types/test-type/testCode.d.ts +79 -0
  51. package/types/v1/enums/vehicleType.enum.d.ts +13 -0
  52. package/types/v1/enums/vehicleType.enum.js +18 -0
  53. package/types/v1/enums/vehicleType.enum.ts +15 -0
  54. package/types/v1/test/index.d.ts +3 -3
  55. package/types/v1/test-result/index.d.ts +2 -2
  56. package/types/v1/{test-type → test-result-test-type}/index.d.ts +1 -1
  57. package/types/v1/vehicle/index.d.ts +3 -3
  58. package/types/v1/visit/index.d.ts +3 -3
  59. package/types/v3/tech-record/enums/vehicleSize.enum.d.ts +9 -0
  60. package/types/v3/tech-record/enums/vehicleSize.enum.js +14 -0
  61. package/types/v3/tech-record/enums/vehicleSize.enum.ts +11 -0
@@ -0,0 +1,416 @@
1
+ {
2
+ "title": "NextTestTypesOrCategory Schema",
3
+ "type": "object",
4
+ "additionalProperties": false,
5
+ "required": [
6
+ "id",
7
+ "linkedIds",
8
+ "name",
9
+ "forVehicleType",
10
+ "forVehicleSize",
11
+ "forVehicleConfiguration",
12
+ "forVehicleAxles",
13
+ "forEuVehicleCategory",
14
+ "forVehicleClass",
15
+ "forVehicleSubclass",
16
+ "forVehicleWheels"
17
+ ],
18
+ "properties": {
19
+ "typeOfTest": {
20
+ "type": "string"
21
+ },
22
+ "id": {
23
+ "type": "string"
24
+ },
25
+ "linkedIds": {
26
+ "type": [
27
+ "array",
28
+ "null"
29
+ ],
30
+ "items": {
31
+ "type": "string"
32
+ }
33
+ },
34
+ "name": {
35
+ "type": "string"
36
+ },
37
+ "testTypeName": {
38
+ "type": "string"
39
+ },
40
+ "forVehicleType": {
41
+ "anyOf": [
42
+ {
43
+ "title": "Vehicle Type",
44
+ "type": "string",
45
+ "tsEnumNames": [
46
+ "HGV",
47
+ "PSV",
48
+ "TRL",
49
+ "LGV",
50
+ "CAR",
51
+ "MOTORCYCLE"
52
+ ],
53
+ "enum": [
54
+ "hgv",
55
+ "psv",
56
+ "trl",
57
+ "lgv",
58
+ "car",
59
+ "motorcycle"
60
+ ]
61
+ },
62
+ {
63
+ "type": "array",
64
+ "items": {
65
+ "$ref": "#/properties/forVehicleType/anyOf/0"
66
+ }
67
+ }
68
+ ]
69
+ },
70
+ "forProvisionalStatus": {
71
+ "type": "boolean"
72
+ },
73
+ "forProvisionalStatusOnly": {
74
+ "type": "boolean"
75
+ },
76
+ "forVehicleSize": {
77
+ "type": [
78
+ "array",
79
+ "null"
80
+ ],
81
+ "items": {
82
+ "title": "Vehicle Size",
83
+ "type": "string",
84
+ "tsEnumNames": [
85
+ "LARGE",
86
+ "SMALL"
87
+ ],
88
+ "enum": [
89
+ "large",
90
+ "small"
91
+ ]
92
+ }
93
+ },
94
+ "forVehicleConfiguration": {
95
+ "type": [
96
+ "array",
97
+ "null"
98
+ ],
99
+ "items": {
100
+ "title": "Vehicle Configuration",
101
+ "type": "string",
102
+ "tsEnumNames": [
103
+ "RIGID",
104
+ "ARTICULATED",
105
+ "CENTRE_AXLE_DRAWBAR",
106
+ "SEMI_CAR_TRANSPORTER",
107
+ "SEMI_TRAILER",
108
+ "LONG_SEMI_TRAILER",
109
+ "LOW_LOADER",
110
+ "OTHER",
111
+ "DRAWBAR",
112
+ "FOUR_IN_LINE",
113
+ "DOLLY",
114
+ "FULL_DRAWBAR"
115
+ ],
116
+ "enum": [
117
+ "rigid",
118
+ "articulated",
119
+ "centre axle drawbar",
120
+ "semi-car transporter",
121
+ "semi-trailer",
122
+ "long semi-trailer",
123
+ "low loader",
124
+ "other",
125
+ "drawbar",
126
+ "four-in-line",
127
+ "dolly",
128
+ "full drawbar"
129
+ ]
130
+ }
131
+ },
132
+ "forVehicleAxles": {
133
+ "type": [
134
+ "array",
135
+ "null"
136
+ ],
137
+ "items": {
138
+ "type": "integer"
139
+ }
140
+ },
141
+ "forEuVehicleCategory": {
142
+ "type": [
143
+ "array",
144
+ "null"
145
+ ],
146
+ "items": {
147
+ "title": "EU Vehicle Category",
148
+ "type": "string",
149
+ "tsEnumNames": [
150
+ "M1",
151
+ "M2",
152
+ "M3",
153
+ "N1",
154
+ "N2",
155
+ "N3",
156
+ "O1",
157
+ "O2",
158
+ "O3",
159
+ "O4",
160
+ "L1E_A",
161
+ "L1E",
162
+ "L2E",
163
+ "L3E",
164
+ "L4E",
165
+ "L5E",
166
+ "L6E",
167
+ "L7E"
168
+ ],
169
+ "enum": [
170
+ "m1",
171
+ "m2",
172
+ "m3",
173
+ "n1",
174
+ "n2",
175
+ "n3",
176
+ "o1",
177
+ "o2",
178
+ "o3",
179
+ "o4",
180
+ "l1e-a",
181
+ "l1e",
182
+ "l2e",
183
+ "l3e",
184
+ "l4e",
185
+ "l5e",
186
+ "l6e",
187
+ "l7e"
188
+ ]
189
+ }
190
+ },
191
+ "forVehicleClass": {
192
+ "type": [
193
+ "array",
194
+ "null"
195
+ ],
196
+ "items": {
197
+ "type": "string"
198
+ }
199
+ },
200
+ "forVehicleSubclass": {
201
+ "type": [
202
+ "array",
203
+ "null"
204
+ ],
205
+ "items": {
206
+ "title": "Vehicle Subclass",
207
+ "type": "string",
208
+ "tsEnumNames": [
209
+ "A",
210
+ "C",
211
+ "S",
212
+ "L",
213
+ "M",
214
+ "N",
215
+ "P",
216
+ "T",
217
+ "R"
218
+ ],
219
+ "enum": [
220
+ "a",
221
+ "c",
222
+ "s",
223
+ "l",
224
+ "m",
225
+ "n",
226
+ "p",
227
+ "t",
228
+ "r"
229
+ ]
230
+ }
231
+ },
232
+ "forVehicleWheels": {
233
+ "type": [
234
+ "array",
235
+ "null"
236
+ ],
237
+ "items": {
238
+ "type": "integer"
239
+ }
240
+ },
241
+ "testTypeClassification": {
242
+ "anyOf": [
243
+ {
244
+ "title": "Test Type Classification",
245
+ "type": "string",
246
+ "tsEnumNames": [
247
+ "ANNUAL_NO_CERTIFICATE",
248
+ "ANNUAL_WITH_CERTIFICATE",
249
+ "NON_ANNUAL"
250
+ ],
251
+ "enum": [
252
+ "Annual NO CERTIFICATE",
253
+ "Annual With Certificate",
254
+ "NON ANNUAL"
255
+ ]
256
+ }
257
+ ]
258
+ },
259
+ "testCodes": {
260
+ "type": "array",
261
+ "items": {
262
+ "title": "TestCode Schema",
263
+ "type": "object",
264
+ "additionalProperties": false,
265
+ "required": [
266
+ "forVehicleType",
267
+ "forVehicleSize",
268
+ "forVehicleConfiguration",
269
+ "forVehicleAxles",
270
+ "forEuVehicleCategory",
271
+ "forVehicleClass",
272
+ "forVehicleSubclass",
273
+ "forVehicleWheels",
274
+ "defaultTestCode",
275
+ "linkedTestCode"
276
+ ],
277
+ "properties": {
278
+ "forVehicleType": {
279
+ "anyOf": [
280
+ {
281
+ "$ref": "#/properties/forVehicleType/anyOf/0"
282
+ },
283
+ {
284
+ "type": "array",
285
+ "items": {
286
+ "$ref": "#/properties/forVehicleType/anyOf/0"
287
+ }
288
+ }
289
+ ]
290
+ },
291
+ "forVehicleSize": {
292
+ "anyOf": [
293
+ {
294
+ "$ref": "#/properties/forVehicleSize/items"
295
+ },
296
+ {
297
+ "type": "null"
298
+ }
299
+ ]
300
+ },
301
+ "forVehicleConfiguration": {
302
+ "anyOf": [
303
+ {
304
+ "$ref": "#/properties/forVehicleConfiguration/items"
305
+ },
306
+ {
307
+ "type": "null"
308
+ }
309
+ ]
310
+ },
311
+ "forVehicleAxles": {
312
+ "anyOf": [
313
+ {
314
+ "type": "integer"
315
+ },
316
+ {
317
+ "type": "array",
318
+ "items": {
319
+ "type": "integer"
320
+ }
321
+ },
322
+ {
323
+ "type": "null"
324
+ }
325
+ ]
326
+ },
327
+ "forEuVehicleCategory": {
328
+ "anyOf": [
329
+ {
330
+ "$ref": "#/properties/forEuVehicleCategory/items"
331
+ },
332
+ {
333
+ "type": "array",
334
+ "items": {
335
+ "$ref": "#/properties/forEuVehicleCategory/items"
336
+ }
337
+ },
338
+ {
339
+ "type": "null"
340
+ }
341
+ ]
342
+ },
343
+ "forVehicleClass": {
344
+ "anyOf": [
345
+ {
346
+ "type": "string"
347
+ },
348
+ {
349
+ "type": "array",
350
+ "items": {
351
+ "type": "string"
352
+ }
353
+ },
354
+ {
355
+ "type": "null"
356
+ }
357
+ ]
358
+ },
359
+ "forVehicleSubclass": {
360
+ "anyOf": [
361
+ {
362
+ "$ref": "#/properties/forVehicleSubclass/items"
363
+ },
364
+ {
365
+ "type": "array",
366
+ "items": {
367
+ "$ref": "#/properties/forVehicleSubclass/items"
368
+ }
369
+ },
370
+ {
371
+ "type": "null"
372
+ }
373
+ ]
374
+ },
375
+ "forVehicleWheels": {
376
+ "anyOf": [
377
+ {
378
+ "type": "integer"
379
+ },
380
+ {
381
+ "type": "array",
382
+ "items": {
383
+ "type": "integer"
384
+ }
385
+ },
386
+ {
387
+ "type": "null"
388
+ }
389
+ ]
390
+ },
391
+ "defaultTestCode": {
392
+ "type": "string"
393
+ },
394
+ "linkedTestCode": {
395
+ "type": [
396
+ "string",
397
+ "null"
398
+ ]
399
+ },
400
+ "forProvisionalStatus": {
401
+ "type": "boolean"
402
+ },
403
+ "forProvisionalStatusOnly": {
404
+ "type": "boolean"
405
+ }
406
+ }
407
+ }
408
+ },
409
+ "nextTestTypesOrCategories": {
410
+ "type": "array",
411
+ "items": {
412
+ "$ref": "#"
413
+ }
414
+ }
415
+ }
416
+ }
@@ -0,0 +1,266 @@
1
+ {
2
+ "title": "TestCode Schema",
3
+ "type": "object",
4
+ "additionalProperties": false,
5
+ "required": [
6
+ "forVehicleType",
7
+ "forVehicleSize",
8
+ "forVehicleConfiguration",
9
+ "forVehicleAxles",
10
+ "forEuVehicleCategory",
11
+ "forVehicleClass",
12
+ "forVehicleSubclass",
13
+ "forVehicleWheels",
14
+ "defaultTestCode",
15
+ "linkedTestCode"
16
+ ],
17
+ "properties": {
18
+ "forVehicleType": {
19
+ "anyOf": [
20
+ {
21
+ "title": "Vehicle Type",
22
+ "type": "string",
23
+ "tsEnumNames": [
24
+ "HGV",
25
+ "PSV",
26
+ "TRL",
27
+ "LGV",
28
+ "CAR",
29
+ "MOTORCYCLE"
30
+ ],
31
+ "enum": [
32
+ "hgv",
33
+ "psv",
34
+ "trl",
35
+ "lgv",
36
+ "car",
37
+ "motorcycle"
38
+ ]
39
+ },
40
+ {
41
+ "type": "array",
42
+ "items": {
43
+ "$ref": "#/properties/forVehicleType/anyOf/0"
44
+ }
45
+ }
46
+ ]
47
+ },
48
+ "forVehicleSize": {
49
+ "anyOf": [
50
+ {
51
+ "title": "Vehicle Size",
52
+ "type": "string",
53
+ "tsEnumNames": [
54
+ "LARGE",
55
+ "SMALL"
56
+ ],
57
+ "enum": [
58
+ "large",
59
+ "small"
60
+ ]
61
+ },
62
+ {
63
+ "type": "null"
64
+ }
65
+ ]
66
+ },
67
+ "forVehicleConfiguration": {
68
+ "anyOf": [
69
+ {
70
+ "title": "Vehicle Configuration",
71
+ "type": "string",
72
+ "tsEnumNames": [
73
+ "RIGID",
74
+ "ARTICULATED",
75
+ "CENTRE_AXLE_DRAWBAR",
76
+ "SEMI_CAR_TRANSPORTER",
77
+ "SEMI_TRAILER",
78
+ "LONG_SEMI_TRAILER",
79
+ "LOW_LOADER",
80
+ "OTHER",
81
+ "DRAWBAR",
82
+ "FOUR_IN_LINE",
83
+ "DOLLY",
84
+ "FULL_DRAWBAR"
85
+ ],
86
+ "enum": [
87
+ "rigid",
88
+ "articulated",
89
+ "centre axle drawbar",
90
+ "semi-car transporter",
91
+ "semi-trailer",
92
+ "long semi-trailer",
93
+ "low loader",
94
+ "other",
95
+ "drawbar",
96
+ "four-in-line",
97
+ "dolly",
98
+ "full drawbar"
99
+ ]
100
+ },
101
+ {
102
+ "type": "null"
103
+ }
104
+ ]
105
+ },
106
+ "forVehicleAxles": {
107
+ "anyOf": [
108
+ {
109
+ "type": "integer"
110
+ },
111
+ {
112
+ "type": "array",
113
+ "items": {
114
+ "type": "integer"
115
+ }
116
+ },
117
+ {
118
+ "type": "null"
119
+ }
120
+ ]
121
+ },
122
+ "forEuVehicleCategory": {
123
+ "anyOf": [
124
+ {
125
+ "title": "EU Vehicle Category",
126
+ "type": "string",
127
+ "tsEnumNames": [
128
+ "M1",
129
+ "M2",
130
+ "M3",
131
+ "N1",
132
+ "N2",
133
+ "N3",
134
+ "O1",
135
+ "O2",
136
+ "O3",
137
+ "O4",
138
+ "L1E_A",
139
+ "L1E",
140
+ "L2E",
141
+ "L3E",
142
+ "L4E",
143
+ "L5E",
144
+ "L6E",
145
+ "L7E"
146
+ ],
147
+ "enum": [
148
+ "m1",
149
+ "m2",
150
+ "m3",
151
+ "n1",
152
+ "n2",
153
+ "n3",
154
+ "o1",
155
+ "o2",
156
+ "o3",
157
+ "o4",
158
+ "l1e-a",
159
+ "l1e",
160
+ "l2e",
161
+ "l3e",
162
+ "l4e",
163
+ "l5e",
164
+ "l6e",
165
+ "l7e"
166
+ ]
167
+ },
168
+ {
169
+ "type": "array",
170
+ "items": {
171
+ "$ref": "#/properties/forEuVehicleCategory/anyOf/0"
172
+ }
173
+ },
174
+ {
175
+ "type": "null"
176
+ }
177
+ ]
178
+ },
179
+ "forVehicleClass": {
180
+ "anyOf": [
181
+ {
182
+ "type": "string"
183
+ },
184
+ {
185
+ "type": "array",
186
+ "items": {
187
+ "type": "string"
188
+ }
189
+ },
190
+ {
191
+ "type": "null"
192
+ }
193
+ ]
194
+ },
195
+ "forVehicleSubclass": {
196
+ "anyOf": [
197
+ {
198
+ "title": "Vehicle Subclass",
199
+ "type": "string",
200
+ "tsEnumNames": [
201
+ "A",
202
+ "C",
203
+ "S",
204
+ "L",
205
+ "M",
206
+ "N",
207
+ "P",
208
+ "T",
209
+ "R"
210
+ ],
211
+ "enum": [
212
+ "a",
213
+ "c",
214
+ "s",
215
+ "l",
216
+ "m",
217
+ "n",
218
+ "p",
219
+ "t",
220
+ "r"
221
+ ]
222
+ },
223
+ {
224
+ "type": "array",
225
+ "items": {
226
+ "$ref": "#/properties/forVehicleSubclass/anyOf/0"
227
+ }
228
+ },
229
+ {
230
+ "type": "null"
231
+ }
232
+ ]
233
+ },
234
+ "forVehicleWheels": {
235
+ "anyOf": [
236
+ {
237
+ "type": "integer"
238
+ },
239
+ {
240
+ "type": "array",
241
+ "items": {
242
+ "type": "integer"
243
+ }
244
+ },
245
+ {
246
+ "type": "null"
247
+ }
248
+ ]
249
+ },
250
+ "defaultTestCode": {
251
+ "type": "string"
252
+ },
253
+ "linkedTestCode": {
254
+ "type": [
255
+ "string",
256
+ "null"
257
+ ]
258
+ },
259
+ "forProvisionalStatus": {
260
+ "type": "boolean"
261
+ },
262
+ "forProvisionalStatusOnly": {
263
+ "type": "boolean"
264
+ }
265
+ }
266
+ }