@dvsa/cvs-type-definitions 3.7.0 → 4.0.1

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 (35) hide show
  1. package/json-schemas/iva/defects/get/index.json +15 -21
  2. package/json-schemas/v3/tech-record/get/hgv/complete/index.json +38 -25
  3. package/json-schemas/v3/tech-record/get/hgv/skeleton/index.json +38 -25
  4. package/json-schemas/v3/tech-record/get/hgv/testable/index.json +38 -25
  5. package/json-schemas/v3/tech-record/get/lgv/complete/index.json +38 -25
  6. package/json-schemas/v3/tech-record/get/lgv/skeleton/index.json +38 -25
  7. package/json-schemas/v3/tech-record/get/trl/complete/index.json +38 -25
  8. package/json-schemas/v3/tech-record/get/trl/skeleton/index.json +38 -25
  9. package/json-schemas/v3/tech-record/get/trl/testable/index.json +38 -25
  10. package/json-schemas/v3/tech-record/put/hgv/complete/index.json +38 -25
  11. package/json-schemas/v3/tech-record/put/hgv/skeleton/index.json +38 -25
  12. package/json-schemas/v3/tech-record/put/hgv/testable/index.json +38 -25
  13. package/json-schemas/v3/tech-record/put/lgv/complete/index.json +38 -25
  14. package/json-schemas/v3/tech-record/put/lgv/skeleton/index.json +38 -25
  15. package/json-schemas/v3/tech-record/put/trl/complete/index.json +38 -25
  16. package/json-schemas/v3/tech-record/put/trl/skeleton/index.json +38 -25
  17. package/json-schemas/v3/tech-record/put/trl/testable/index.json +38 -25
  18. package/package.json +1 -1
  19. package/types/iva/defects/get/index.d.ts +4 -3
  20. package/types/v3/tech-record/get/hgv/complete/index.d.ts +6 -3
  21. package/types/v3/tech-record/get/hgv/skeleton/index.d.ts +6 -3
  22. package/types/v3/tech-record/get/hgv/testable/index.d.ts +6 -3
  23. package/types/v3/tech-record/get/lgv/complete/index.d.ts +6 -3
  24. package/types/v3/tech-record/get/lgv/skeleton/index.d.ts +6 -3
  25. package/types/v3/tech-record/get/trl/complete/index.d.ts +6 -3
  26. package/types/v3/tech-record/get/trl/skeleton/index.d.ts +6 -3
  27. package/types/v3/tech-record/get/trl/testable/index.d.ts +6 -3
  28. package/types/v3/tech-record/put/hgv/complete/index.d.ts +6 -3
  29. package/types/v3/tech-record/put/hgv/skeleton/index.d.ts +6 -3
  30. package/types/v3/tech-record/put/hgv/testable/index.d.ts +6 -3
  31. package/types/v3/tech-record/put/lgv/complete/index.d.ts +6 -3
  32. package/types/v3/tech-record/put/lgv/skeleton/index.d.ts +6 -3
  33. package/types/v3/tech-record/put/trl/complete/index.d.ts +6 -3
  34. package/types/v3/tech-record/put/trl/skeleton/index.d.ts +6 -3
  35. package/types/v3/tech-record/put/trl/testable/index.d.ts +6 -3
@@ -309,34 +309,47 @@
309
309
  "null"
310
310
  ]
311
311
  },
312
- "techRecord_adrDetails_tank_tankDetails_tc3Details_tc3Type": {
313
- "anyOf": [
314
- {
315
- "type": "null"
316
- },
317
- {
318
- "title": "TC3 Types",
319
- "type": "string",
320
- "enum": [
321
- "intermediate",
322
- "periodic",
323
- "exceptional"
324
- ]
325
- }
326
- ]
327
- },
328
- "techRecord_adrDetails_tank_tankDetails_tc3Type_tc3PeriodicNumber": {
312
+ "techRecord_adrDetails_tank_tankDetails_tc3Details": {
329
313
  "type": [
330
- "string",
314
+ "array",
331
315
  "null"
332
316
  ],
333
- "maxLength": 75
334
- },
335
- "techRecord_adrDetails_tank_tankDetails_tc3Type_tc3PeriodicExpiryDate": {
336
- "type": [
337
- "string",
338
- "null"
339
- ]
317
+ "items": {
318
+ "type": "object",
319
+ "title": "TC3 Details",
320
+ "additionalProperties": false,
321
+ "properties": {
322
+ "tc3Type": {
323
+ "anyOf": [
324
+ {
325
+ "type": "null"
326
+ },
327
+ {
328
+ "title": "TC3 Types",
329
+ "type": "string",
330
+ "enum": [
331
+ "intermediate",
332
+ "periodic",
333
+ "exceptional"
334
+ ]
335
+ }
336
+ ]
337
+ },
338
+ "tc3Type_tc3PeriodicNumber": {
339
+ "type": [
340
+ "string",
341
+ "null"
342
+ ],
343
+ "maxLength": 75
344
+ },
345
+ "tc3Type_tc3PeriodicExpiryDate": {
346
+ "type": [
347
+ "string",
348
+ "null"
349
+ ]
350
+ }
351
+ }
352
+ }
340
353
  },
341
354
  "techRecord_adrDetails_tank_tankDetails_tankStatement_substancesPermitted": {
342
355
  "type": [
@@ -277,34 +277,47 @@
277
277
  "null"
278
278
  ]
279
279
  },
280
- "techRecord_adrDetails_tank_tankDetails_tc3Details_tc3Type": {
281
- "anyOf": [
282
- {
283
- "type": "null"
284
- },
285
- {
286
- "title": "TC3 Types",
287
- "type": "string",
288
- "enum": [
289
- "intermediate",
290
- "periodic",
291
- "exceptional"
292
- ]
293
- }
294
- ]
295
- },
296
- "techRecord_adrDetails_tank_tankDetails_tc3Type_tc3PeriodicNumber": {
280
+ "techRecord_adrDetails_tank_tankDetails_tc3Details": {
297
281
  "type": [
298
- "string",
282
+ "array",
299
283
  "null"
300
284
  ],
301
- "maxLength": 75
302
- },
303
- "techRecord_adrDetails_tank_tankDetails_tc3Type_tc3PeriodicExpiryDate": {
304
- "type": [
305
- "string",
306
- "null"
307
- ]
285
+ "items": {
286
+ "type": "object",
287
+ "title": "TC3 Details",
288
+ "additionalProperties": false,
289
+ "properties": {
290
+ "tc3Type": {
291
+ "anyOf": [
292
+ {
293
+ "type": "null"
294
+ },
295
+ {
296
+ "title": "TC3 Types",
297
+ "type": "string",
298
+ "enum": [
299
+ "intermediate",
300
+ "periodic",
301
+ "exceptional"
302
+ ]
303
+ }
304
+ ]
305
+ },
306
+ "tc3Type_tc3PeriodicNumber": {
307
+ "type": [
308
+ "string",
309
+ "null"
310
+ ],
311
+ "maxLength": 75
312
+ },
313
+ "tc3Type_tc3PeriodicExpiryDate": {
314
+ "type": [
315
+ "string",
316
+ "null"
317
+ ]
318
+ }
319
+ }
320
+ }
308
321
  },
309
322
  "techRecord_adrDetails_tank_tankDetails_tankStatement_substancesPermitted": {
310
323
  "type": [
@@ -279,34 +279,47 @@
279
279
  "null"
280
280
  ]
281
281
  },
282
- "techRecord_adrDetails_tank_tankDetails_tc3Details_tc3Type": {
283
- "anyOf": [
284
- {
285
- "type": "null"
286
- },
287
- {
288
- "title": "TC3 Types",
289
- "type": "string",
290
- "enum": [
291
- "intermediate",
292
- "periodic",
293
- "exceptional"
294
- ]
295
- }
296
- ]
297
- },
298
- "techRecord_adrDetails_tank_tankDetails_tc3Type_tc3PeriodicNumber": {
282
+ "techRecord_adrDetails_tank_tankDetails_tc3Details": {
299
283
  "type": [
300
- "string",
284
+ "array",
301
285
  "null"
302
286
  ],
303
- "maxLength": 75
304
- },
305
- "techRecord_adrDetails_tank_tankDetails_tc3Type_tc3PeriodicExpiryDate": {
306
- "type": [
307
- "string",
308
- "null"
309
- ]
287
+ "items": {
288
+ "type": "object",
289
+ "title": "TC3 Details",
290
+ "additionalProperties": false,
291
+ "properties": {
292
+ "tc3Type": {
293
+ "anyOf": [
294
+ {
295
+ "type": "null"
296
+ },
297
+ {
298
+ "title": "TC3 Types",
299
+ "type": "string",
300
+ "enum": [
301
+ "intermediate",
302
+ "periodic",
303
+ "exceptional"
304
+ ]
305
+ }
306
+ ]
307
+ },
308
+ "tc3Type_tc3PeriodicNumber": {
309
+ "type": [
310
+ "string",
311
+ "null"
312
+ ],
313
+ "maxLength": 75
314
+ },
315
+ "tc3Type_tc3PeriodicExpiryDate": {
316
+ "type": [
317
+ "string",
318
+ "null"
319
+ ]
320
+ }
321
+ }
322
+ }
310
323
  },
311
324
  "techRecord_adrDetails_tank_tankDetails_tankStatement_substancesPermitted": {
312
325
  "type": [
@@ -328,34 +328,47 @@
328
328
  "null"
329
329
  ]
330
330
  },
331
- "techRecord_adrDetails_tank_tankDetails_tc3Details_tc3Type": {
332
- "anyOf": [
333
- {
334
- "type": "null"
335
- },
336
- {
337
- "title": "TC3 Types",
338
- "type": "string",
339
- "enum": [
340
- "intermediate",
341
- "periodic",
342
- "exceptional"
343
- ]
344
- }
345
- ]
346
- },
347
- "techRecord_adrDetails_tank_tankDetails_tc3Type_tc3PeriodicNumber": {
331
+ "techRecord_adrDetails_tank_tankDetails_tc3Details": {
348
332
  "type": [
349
- "string",
333
+ "array",
350
334
  "null"
351
335
  ],
352
- "maxLength": 75
353
- },
354
- "techRecord_adrDetails_tank_tankDetails_tc3Type_tc3PeriodicExpiryDate": {
355
- "type": [
356
- "string",
357
- "null"
358
- ]
336
+ "items": {
337
+ "type": "object",
338
+ "title": "TC3 Details",
339
+ "additionalProperties": false,
340
+ "properties": {
341
+ "tc3Type": {
342
+ "anyOf": [
343
+ {
344
+ "type": "null"
345
+ },
346
+ {
347
+ "title": "TC3 Types",
348
+ "type": "string",
349
+ "enum": [
350
+ "intermediate",
351
+ "periodic",
352
+ "exceptional"
353
+ ]
354
+ }
355
+ ]
356
+ },
357
+ "tc3Type_tc3PeriodicNumber": {
358
+ "type": [
359
+ "string",
360
+ "null"
361
+ ],
362
+ "maxLength": 75
363
+ },
364
+ "tc3Type_tc3PeriodicExpiryDate": {
365
+ "type": [
366
+ "string",
367
+ "null"
368
+ ]
369
+ }
370
+ }
371
+ }
359
372
  },
360
373
  "techRecord_adrDetails_tank_tankDetails_tankStatement_substancesPermitted": {
361
374
  "type": [
@@ -325,34 +325,47 @@
325
325
  "null"
326
326
  ]
327
327
  },
328
- "techRecord_adrDetails_tank_tankDetails_tc3Details_tc3Type": {
329
- "anyOf": [
330
- {
331
- "type": "null"
332
- },
333
- {
334
- "title": "TC3 Types",
335
- "type": "string",
336
- "enum": [
337
- "intermediate",
338
- "periodic",
339
- "exceptional"
340
- ]
341
- }
342
- ]
343
- },
344
- "techRecord_adrDetails_tank_tankDetails_tc3Type_tc3PeriodicNumber": {
328
+ "techRecord_adrDetails_tank_tankDetails_tc3Details": {
345
329
  "type": [
346
- "string",
330
+ "array",
347
331
  "null"
348
332
  ],
349
- "maxLength": 75
350
- },
351
- "techRecord_adrDetails_tank_tankDetails_tc3Type_tc3PeriodicExpiryDate": {
352
- "type": [
353
- "string",
354
- "null"
355
- ]
333
+ "items": {
334
+ "type": "object",
335
+ "title": "TC3 Details",
336
+ "additionalProperties": false,
337
+ "properties": {
338
+ "tc3Type": {
339
+ "anyOf": [
340
+ {
341
+ "type": "null"
342
+ },
343
+ {
344
+ "title": "TC3 Types",
345
+ "type": "string",
346
+ "enum": [
347
+ "intermediate",
348
+ "periodic",
349
+ "exceptional"
350
+ ]
351
+ }
352
+ ]
353
+ },
354
+ "tc3Type_tc3PeriodicNumber": {
355
+ "type": [
356
+ "string",
357
+ "null"
358
+ ],
359
+ "maxLength": 75
360
+ },
361
+ "tc3Type_tc3PeriodicExpiryDate": {
362
+ "type": [
363
+ "string",
364
+ "null"
365
+ ]
366
+ }
367
+ }
368
+ }
356
369
  },
357
370
  "techRecord_adrDetails_tank_tankDetails_tankStatement_substancesPermitted": {
358
371
  "type": [
@@ -292,34 +292,47 @@
292
292
  "null"
293
293
  ]
294
294
  },
295
- "techRecord_adrDetails_tank_tankDetails_tc3Details_tc3Type": {
296
- "anyOf": [
297
- {
298
- "type": "null"
299
- },
300
- {
301
- "title": "TC3 Types",
302
- "type": "string",
303
- "enum": [
304
- "intermediate",
305
- "periodic",
306
- "exceptional"
307
- ]
308
- }
309
- ]
310
- },
311
- "techRecord_adrDetails_tank_tankDetails_tc3Type_tc3PeriodicNumber": {
295
+ "techRecord_adrDetails_tank_tankDetails_tc3Details": {
312
296
  "type": [
313
- "string",
297
+ "array",
314
298
  "null"
315
299
  ],
316
- "maxLength": 75
317
- },
318
- "techRecord_adrDetails_tank_tankDetails_tc3Type_tc3PeriodicExpiryDate": {
319
- "type": [
320
- "string",
321
- "null"
322
- ]
300
+ "items": {
301
+ "type": "object",
302
+ "title": "TC3 Details",
303
+ "additionalProperties": false,
304
+ "properties": {
305
+ "tc3Type": {
306
+ "anyOf": [
307
+ {
308
+ "type": "null"
309
+ },
310
+ {
311
+ "title": "TC3 Types",
312
+ "type": "string",
313
+ "enum": [
314
+ "intermediate",
315
+ "periodic",
316
+ "exceptional"
317
+ ]
318
+ }
319
+ ]
320
+ },
321
+ "tc3Type_tc3PeriodicNumber": {
322
+ "type": [
323
+ "string",
324
+ "null"
325
+ ],
326
+ "maxLength": 75
327
+ },
328
+ "tc3Type_tc3PeriodicExpiryDate": {
329
+ "type": [
330
+ "string",
331
+ "null"
332
+ ]
333
+ }
334
+ }
335
+ }
323
336
  },
324
337
  "techRecord_adrDetails_tank_tankDetails_tankStatement_substancesPermitted": {
325
338
  "type": [
@@ -342,34 +342,47 @@
342
342
  "null"
343
343
  ]
344
344
  },
345
- "techRecord_adrDetails_tank_tankDetails_tc3Details_tc3Type": {
346
- "anyOf": [
347
- {
348
- "type": "null"
349
- },
350
- {
351
- "title": "TC3 Types",
352
- "type": "string",
353
- "enum": [
354
- "intermediate",
355
- "periodic",
356
- "exceptional"
357
- ]
358
- }
359
- ]
360
- },
361
- "techRecord_adrDetails_tank_tankDetails_tc3Type_tc3PeriodicNumber": {
345
+ "techRecord_adrDetails_tank_tankDetails_tc3Details": {
362
346
  "type": [
363
- "string",
347
+ "array",
364
348
  "null"
365
349
  ],
366
- "maxLength": 75
367
- },
368
- "techRecord_adrDetails_tank_tankDetails_tc3Type_tc3PeriodicExpiryDate": {
369
- "type": [
370
- "string",
371
- "null"
372
- ]
350
+ "items": {
351
+ "type": "object",
352
+ "title": "TC3 Details",
353
+ "additionalProperties": false,
354
+ "properties": {
355
+ "tc3Type": {
356
+ "anyOf": [
357
+ {
358
+ "type": "null"
359
+ },
360
+ {
361
+ "title": "TC3 Types",
362
+ "type": "string",
363
+ "enum": [
364
+ "intermediate",
365
+ "periodic",
366
+ "exceptional"
367
+ ]
368
+ }
369
+ ]
370
+ },
371
+ "tc3Type_tc3PeriodicNumber": {
372
+ "type": [
373
+ "string",
374
+ "null"
375
+ ],
376
+ "maxLength": 75
377
+ },
378
+ "tc3Type_tc3PeriodicExpiryDate": {
379
+ "type": [
380
+ "string",
381
+ "null"
382
+ ]
383
+ }
384
+ }
385
+ }
373
386
  },
374
387
  "techRecord_adrDetails_tank_tankDetails_tankStatement_substancesPermitted": {
375
388
  "type": [
@@ -344,34 +344,47 @@
344
344
  "null"
345
345
  ]
346
346
  },
347
- "techRecord_adrDetails_tank_tankDetails_tc3Details_tc3Type": {
348
- "anyOf": [
349
- {
350
- "type": "null"
351
- },
352
- {
353
- "title": "TC3 Types",
354
- "type": "string",
355
- "enum": [
356
- "intermediate",
357
- "periodic",
358
- "exceptional"
359
- ]
360
- }
361
- ]
362
- },
363
- "techRecord_adrDetails_tank_tankDetails_tc3Type_tc3PeriodicNumber": {
347
+ "techRecord_adrDetails_tank_tankDetails_tc3Details": {
364
348
  "type": [
365
- "string",
349
+ "array",
366
350
  "null"
367
351
  ],
368
- "maxLength": 75
369
- },
370
- "techRecord_adrDetails_tank_tankDetails_tc3Type_tc3PeriodicExpiryDate": {
371
- "type": [
372
- "string",
373
- "null"
374
- ]
352
+ "items": {
353
+ "type": "object",
354
+ "title": "TC3 Details",
355
+ "additionalProperties": false,
356
+ "properties": {
357
+ "tc3Type": {
358
+ "anyOf": [
359
+ {
360
+ "type": "null"
361
+ },
362
+ {
363
+ "title": "TC3 Types",
364
+ "type": "string",
365
+ "enum": [
366
+ "intermediate",
367
+ "periodic",
368
+ "exceptional"
369
+ ]
370
+ }
371
+ ]
372
+ },
373
+ "tc3Type_tc3PeriodicNumber": {
374
+ "type": [
375
+ "string",
376
+ "null"
377
+ ],
378
+ "maxLength": 75
379
+ },
380
+ "tc3Type_tc3PeriodicExpiryDate": {
381
+ "type": [
382
+ "string",
383
+ "null"
384
+ ]
385
+ }
386
+ }
387
+ }
375
388
  },
376
389
  "techRecord_adrDetails_tank_tankDetails_tankStatement_substancesPermitted": {
377
390
  "type": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dvsa/cvs-type-definitions",
3
- "version": "3.7.0",
3
+ "version": "4.0.1",
4
4
  "description": "type definitions for cvs vta and vtm applications",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -5,21 +5,22 @@
5
5
  * and run json-schema-to-typescript to regenerate this file.
6
6
  */
7
7
 
8
- export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
9
8
  export type InspectionType = "basic" | "normal";
10
9
 
11
10
  export interface DefectGETIVA {
12
11
  sectionNumber: string;
13
12
  sectionDescription: string;
14
- vehicleTypes: VehicleType[];
15
13
  euVehicleCategories: EUVehicleCategory[];
16
14
  requiredStandards: {
17
15
  rsNumber: number;
18
16
  requiredStandard: string;
19
17
  refCalculation: string;
20
18
  additionalInfo: boolean;
21
- inspectionTypes: InspectionType[];
19
+ inspectionTypes?: InspectionType[];
22
20
  }[];
21
+ additionalInformation?: {
22
+ notes: string;
23
+ };
23
24
  }
24
25
 
25
26
  export enum EUVehicleCategory {
@@ -121,9 +121,7 @@ export interface TechRecordGETHGVComplete {
121
121
  techRecord_adrDetails_tank_tankDetails_tc2Details_tc2Type?: null | TC2Types;
122
122
  techRecord_adrDetails_tank_tankDetails_tc2Details_tc2IntermediateApprovalNo?: string | null;
123
123
  techRecord_adrDetails_tank_tankDetails_tc2Details_tc2IntermediateExpiryDate?: string | null;
124
- techRecord_adrDetails_tank_tankDetails_tc3Details_tc3Type?: null | TC3Types;
125
- techRecord_adrDetails_tank_tankDetails_tc3Type_tc3PeriodicNumber?: string | null;
126
- techRecord_adrDetails_tank_tankDetails_tc3Type_tc3PeriodicExpiryDate?: string | null;
124
+ techRecord_adrDetails_tank_tankDetails_tc3Details?: TC3Details[] | null;
127
125
  techRecord_adrDetails_tank_tankDetails_tankStatement_substancesPermitted?: string | null;
128
126
  techRecord_adrDetails_tank_tankDetails_tankStatement_statement?: string | null;
129
127
  techRecord_adrDetails_tank_tankDetails_tankStatement_productListRefNo?: string | null;
@@ -212,6 +210,11 @@ export interface TechRecordGETHGVComplete {
212
210
  techRecord_hiddenInVta?: null | boolean;
213
211
  techRecord_updateType?: null | string;
214
212
  }
213
+ export interface TC3Details {
214
+ tc3Type?: null | TC3Types;
215
+ tc3Type_tc3PeriodicNumber?: string | null;
216
+ tc3Type_tc3PeriodicExpiryDate?: string | null;
217
+ }
215
218
  export interface HGVAxles {
216
219
  parkingBrakeMrk?: boolean;
217
220
  axleNumber?: number;
@@ -121,9 +121,7 @@ export interface TechRecordGETHGVSkeleton {
121
121
  techRecord_adrDetails_tank_tankDetails_tc2Details_tc2Type?: null | TC2Types;
122
122
  techRecord_adrDetails_tank_tankDetails_tc2Details_tc2IntermediateApprovalNo?: string | null;
123
123
  techRecord_adrDetails_tank_tankDetails_tc2Details_tc2IntermediateExpiryDate?: string | null;
124
- techRecord_adrDetails_tank_tankDetails_tc3Details_tc3Type?: null | TC3Types;
125
- techRecord_adrDetails_tank_tankDetails_tc3Type_tc3PeriodicNumber?: string | null;
126
- techRecord_adrDetails_tank_tankDetails_tc3Type_tc3PeriodicExpiryDate?: string | null;
124
+ techRecord_adrDetails_tank_tankDetails_tc3Details?: TC3Details[] | null;
127
125
  techRecord_adrDetails_tank_tankDetails_tankStatement_substancesPermitted?: string | null;
128
126
  techRecord_adrDetails_tank_tankDetails_tankStatement_statement?: string | null;
129
127
  techRecord_adrDetails_tank_tankDetails_tankStatement_productListRefNo?: string | null;
@@ -209,6 +207,11 @@ export interface TechRecordGETHGVSkeleton {
209
207
  techRecord_hiddenInVta?: null | boolean;
210
208
  techRecord_updateType?: null | string;
211
209
  }
210
+ export interface TC3Details {
211
+ tc3Type?: null | TC3Types;
212
+ tc3Type_tc3PeriodicNumber?: string | null;
213
+ tc3Type_tc3PeriodicExpiryDate?: string | null;
214
+ }
212
215
  export interface HGVAxles {
213
216
  parkingBrakeMrk?: boolean | null;
214
217
  axleNumber?: number | null;