@dvsa/cvs-type-definitions 3.0.20 → 3.0.22

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 (22) hide show
  1. package/json-schemas/v3/tech-record/get/car/complete/index.json +18 -15
  2. package/json-schemas/v3/tech-record/get/car/skeleton/index.json +23 -0
  3. package/json-schemas/v3/tech-record/get/lgv/complete/index.json +20 -24
  4. package/json-schemas/v3/tech-record/get/lgv/skeleton/index.json +23 -0
  5. package/json-schemas/v3/tech-record/get/motorcycle/complete/index.json +0 -27
  6. package/json-schemas/v3/tech-record/put/car/complete/index.json +18 -15
  7. package/json-schemas/v3/tech-record/put/car/skeleton/index.json +23 -0
  8. package/json-schemas/v3/tech-record/put/lgv/complete/index.json +18 -15
  9. package/json-schemas/v3/tech-record/put/lgv/skeleton/index.json +23 -0
  10. package/json-schemas/v3/tech-record/put/motorcycle/complete/index.json +0 -27
  11. package/json-schemas/v3/tech-record/put/psv/testable/index.json +31 -31
  12. package/package.json +1 -1
  13. package/types/v3/tech-record/get/car/complete/index.d.ts +1 -1
  14. package/types/v3/tech-record/get/car/skeleton/index.d.ts +2 -0
  15. package/types/v3/tech-record/get/lgv/complete/index.d.ts +1 -1
  16. package/types/v3/tech-record/get/lgv/skeleton/index.d.ts +2 -0
  17. package/types/v3/tech-record/get/motorcycle/complete/index.d.ts +0 -2
  18. package/types/v3/tech-record/put/car/complete/index.d.ts +1 -1
  19. package/types/v3/tech-record/put/car/skeleton/index.d.ts +2 -0
  20. package/types/v3/tech-record/put/lgv/complete/index.d.ts +1 -1
  21. package/types/v3/tech-record/put/lgv/skeleton/index.d.ts +2 -0
  22. package/types/v3/tech-record/put/motorcycle/complete/index.d.ts +0 -2
@@ -237,23 +237,26 @@
237
237
  "type": "string"
238
238
  },
239
239
  "techRecord_vehicleSubclass": {
240
- "title": "Vehicle Subclass",
241
240
  "type": "array",
242
241
  "items": {
243
- "type": "string",
244
- "enum": [
245
- "n",
246
- "p",
247
- "a",
248
- "s",
249
- "c",
250
- "l",
251
- "t",
252
- "e",
253
- "m",
254
- "r",
255
- "w"
256
- ]
242
+ "title": "Vehicle Subclass",
243
+ "type": "array",
244
+ "items": {
245
+ "type": "string",
246
+ "enum": [
247
+ "n",
248
+ "p",
249
+ "a",
250
+ "s",
251
+ "c",
252
+ "l",
253
+ "t",
254
+ "e",
255
+ "m",
256
+ "r",
257
+ "w"
258
+ ]
259
+ }
257
260
  }
258
261
  },
259
262
  "techRecord_hiddenInVta": {
@@ -255,6 +255,29 @@
255
255
  "items": {
256
256
  "type": "string"
257
257
  }
258
+ },
259
+ "techRecord_vehicleSubclass": {
260
+ "type": "array",
261
+ "items": {
262
+ "title": "Vehicle Subclass",
263
+ "type": "array",
264
+ "items": {
265
+ "type": "string",
266
+ "enum": [
267
+ "n",
268
+ "p",
269
+ "a",
270
+ "s",
271
+ "c",
272
+ "l",
273
+ "t",
274
+ "e",
275
+ "m",
276
+ "r",
277
+ "w"
278
+ ]
279
+ }
280
+ }
258
281
  }
259
282
  }
260
283
  }
@@ -237,31 +237,27 @@
237
237
  "type": "string"
238
238
  },
239
239
  "techRecord_vehicleSubclass": {
240
- "anyOf": [
241
- {
242
- "type": "null"
243
- },
244
- {
245
- "title": "Vehicle Subclass",
246
- "type": "array",
247
- "items": {
248
- "type": "string",
249
- "enum": [
250
- "n",
251
- "p",
252
- "a",
253
- "s",
254
- "c",
255
- "l",
256
- "t",
257
- "e",
258
- "m",
259
- "r",
260
- "w"
261
- ]
262
- }
240
+ "type": "array",
241
+ "items": {
242
+ "title": "Vehicle Subclass",
243
+ "type": "array",
244
+ "items": {
245
+ "type": "string",
246
+ "enum": [
247
+ "n",
248
+ "p",
249
+ "a",
250
+ "s",
251
+ "c",
252
+ "l",
253
+ "t",
254
+ "e",
255
+ "m",
256
+ "r",
257
+ "w"
258
+ ]
263
259
  }
264
- ]
260
+ }
265
261
  },
266
262
  "techRecord_hiddenInVta": {
267
263
  "type": [
@@ -255,6 +255,29 @@
255
255
  "items": {
256
256
  "type": "string"
257
257
  }
258
+ },
259
+ "techRecord_vehicleSubclass": {
260
+ "type": "array",
261
+ "items": {
262
+ "title": "Vehicle Subclass",
263
+ "type": "array",
264
+ "items": {
265
+ "type": "string",
266
+ "enum": [
267
+ "n",
268
+ "p",
269
+ "a",
270
+ "s",
271
+ "c",
272
+ "l",
273
+ "t",
274
+ "e",
275
+ "m",
276
+ "r",
277
+ "w"
278
+ ]
279
+ }
280
+ }
258
281
  }
259
282
  }
260
283
  }
@@ -238,33 +238,6 @@
238
238
  "vin": {
239
239
  "type": "string"
240
240
  },
241
- "techRecord_vehicleSubclass": {
242
- "anyOf": [
243
- {
244
- "type": "null"
245
- },
246
- {
247
- "title": "Vehicle Subclass",
248
- "type": "array",
249
- "items": {
250
- "type": "string",
251
- "enum": [
252
- "n",
253
- "p",
254
- "a",
255
- "s",
256
- "c",
257
- "l",
258
- "t",
259
- "e",
260
- "m",
261
- "r",
262
- "w"
263
- ]
264
- }
265
- }
266
- ]
267
- },
268
241
  "techRecord_numberOfWheelsDriven": {
269
242
  "type": [
270
243
  "null",
@@ -70,23 +70,26 @@
70
70
  "type": "string"
71
71
  },
72
72
  "techRecord_vehicleSubclass": {
73
- "title": "Vehicle Subclass",
74
73
  "type": "array",
75
74
  "items": {
76
- "type": "string",
77
- "enum": [
78
- "n",
79
- "p",
80
- "a",
81
- "s",
82
- "c",
83
- "l",
84
- "t",
85
- "e",
86
- "m",
87
- "r",
88
- "w"
89
- ]
75
+ "title": "Vehicle Subclass",
76
+ "type": "array",
77
+ "items": {
78
+ "type": "string",
79
+ "enum": [
80
+ "n",
81
+ "p",
82
+ "a",
83
+ "s",
84
+ "c",
85
+ "l",
86
+ "t",
87
+ "e",
88
+ "m",
89
+ "r",
90
+ "w"
91
+ ]
92
+ }
90
93
  }
91
94
  },
92
95
  "techRecord_hiddenInVta": {
@@ -109,6 +109,29 @@
109
109
  "items": {
110
110
  "type": "string"
111
111
  }
112
+ },
113
+ "techRecord_vehicleSubclass": {
114
+ "type": "array",
115
+ "items": {
116
+ "title": "Vehicle Subclass",
117
+ "type": "array",
118
+ "items": {
119
+ "type": "string",
120
+ "enum": [
121
+ "n",
122
+ "p",
123
+ "a",
124
+ "s",
125
+ "c",
126
+ "l",
127
+ "t",
128
+ "e",
129
+ "m",
130
+ "r",
131
+ "w"
132
+ ]
133
+ }
134
+ }
112
135
  }
113
136
  }
114
137
  }
@@ -144,23 +144,26 @@
144
144
  "type": "string"
145
145
  },
146
146
  "techRecord_vehicleSubclass": {
147
- "title": "Vehicle Subclass",
148
147
  "type": "array",
149
148
  "items": {
150
- "type": "string",
151
- "enum": [
152
- "n",
153
- "p",
154
- "a",
155
- "s",
156
- "c",
157
- "l",
158
- "t",
159
- "e",
160
- "m",
161
- "r",
162
- "w"
163
- ]
149
+ "title": "Vehicle Subclass",
150
+ "type": "array",
151
+ "items": {
152
+ "type": "string",
153
+ "enum": [
154
+ "n",
155
+ "p",
156
+ "a",
157
+ "s",
158
+ "c",
159
+ "l",
160
+ "t",
161
+ "e",
162
+ "m",
163
+ "r",
164
+ "w"
165
+ ]
166
+ }
164
167
  }
165
168
  },
166
169
  "techRecord_hiddenInVta": {
@@ -162,6 +162,29 @@
162
162
  "items": {
163
163
  "type": "string"
164
164
  }
165
+ },
166
+ "techRecord_vehicleSubclass": {
167
+ "type": "array",
168
+ "items": {
169
+ "title": "Vehicle Subclass",
170
+ "type": "array",
171
+ "items": {
172
+ "type": "string",
173
+ "enum": [
174
+ "n",
175
+ "p",
176
+ "a",
177
+ "s",
178
+ "c",
179
+ "l",
180
+ "t",
181
+ "e",
182
+ "m",
183
+ "r",
184
+ "w"
185
+ ]
186
+ }
187
+ }
165
188
  }
166
189
  }
167
190
  }
@@ -239,33 +239,6 @@
239
239
  "vin": {
240
240
  "type": "string"
241
241
  },
242
- "techRecord_vehicleSubclass": {
243
- "anyOf": [
244
- {
245
- "type": "null"
246
- },
247
- {
248
- "title": "Vehicle Subclass",
249
- "type": "array",
250
- "items": {
251
- "type": "string",
252
- "enum": [
253
- "n",
254
- "p",
255
- "a",
256
- "s",
257
- "c",
258
- "l",
259
- "t",
260
- "e",
261
- "m",
262
- "r",
263
- "w"
264
- ]
265
- }
266
- }
267
- ]
268
- },
269
242
  "techRecord_numberOfWheelsDriven": {
270
243
  "type": "integer"
271
244
  },
@@ -326,7 +326,7 @@
326
326
  "null"
327
327
  ],
328
328
  "maximum": 99999,
329
- "min": 0
329
+ "minimum": 0
330
330
  },
331
331
  "techRecord_createdByName": {
332
332
  "type": [
@@ -369,8 +369,8 @@
369
369
  "integer",
370
370
  "null"
371
371
  ],
372
- "max": 99,
373
- "min": 0
372
+ "maximum": 99,
373
+ "minimum": 0
374
374
  },
375
375
  "techRecord_dda_wheelchairFittings": {
376
376
  "type": [
@@ -410,8 +410,8 @@
410
410
  "integer",
411
411
  "null"
412
412
  ],
413
- "min": 0,
414
- "max": 99
413
+ "minimum": 0,
414
+ "maximum": 99
415
415
  },
416
416
  "techRecord_dda_outswing": {
417
417
  "type": [
@@ -432,8 +432,8 @@
432
432
  "integer",
433
433
  "null"
434
434
  ],
435
- "min": 0,
436
- "max": 999
435
+ "minimum": 0,
436
+ "maximum": 999
437
437
  },
438
438
  "techRecord_dda_ddaNotes": {
439
439
  "type": [
@@ -447,8 +447,8 @@
447
447
  "integer",
448
448
  "null"
449
449
  ],
450
- "min": 0,
451
- "max": 999
450
+ "minimum": 0,
451
+ "maximum": 999
452
452
  },
453
453
  "techRecord_speedLimiterMrk": {
454
454
  "type": [
@@ -511,16 +511,16 @@
511
511
  "null",
512
512
  "integer"
513
513
  ],
514
- "min": 0,
515
- "max": 99
514
+ "minimum": 0,
515
+ "maximum": 99
516
516
  },
517
517
  "techRecord_trainDesignWeight": {
518
518
  "type": [
519
519
  "integer",
520
520
  "null"
521
521
  ],
522
- "min": 0,
523
- "max": 99999
522
+ "minimum": 0,
523
+ "maximum": 99999
524
524
  },
525
525
  "techRecord_numberOfSeatbelts": {
526
526
  "type": [
@@ -607,72 +607,72 @@
607
607
  "number",
608
608
  "null"
609
609
  ],
610
- "max": 99,
611
- "min": 0
610
+ "maximum": 99,
611
+ "minimum": 0
612
612
  },
613
613
  "techRecord_grossKerbWeight": {
614
614
  "type": [
615
615
  "number",
616
616
  "null"
617
617
  ],
618
- "max": 99999,
619
- "min": 0
618
+ "maximum": 99999,
619
+ "minimum": 0
620
620
  },
621
621
  "techRecord_grossLadenWeight": {
622
622
  "type": [
623
623
  "number",
624
624
  "null"
625
625
  ],
626
- "max": 99999,
627
- "min": 0
626
+ "maximum": 99999,
627
+ "minimum": 0
628
628
  },
629
629
  "techRecord_unladenWeight": {
630
630
  "type": [
631
631
  "number",
632
632
  "null"
633
633
  ],
634
- "max": 99999,
635
- "min": 0
634
+ "maximum": 99999,
635
+ "minimum": 0
636
636
  },
637
637
  "techRecord_maxTrainGbWeight": {
638
638
  "type": [
639
639
  "number",
640
640
  "null"
641
641
  ],
642
- "max": 99999,
643
- "min": 0
642
+ "maximum": 99999,
643
+ "minimum": 0
644
644
  },
645
645
  "techRecord_dimensions_length": {
646
646
  "type": [
647
647
  "integer",
648
648
  "null"
649
649
  ],
650
- "min": 0,
651
- "max": 99999
650
+ "minimum": 0,
651
+ "maximum": 99999
652
652
  },
653
653
  "techRecord_dimensions_width": {
654
654
  "type": [
655
655
  "integer",
656
656
  "null"
657
657
  ],
658
- "min": 0,
659
- "max": 99999
658
+ "minimum": 0,
659
+ "maximum": 99999
660
660
  },
661
661
  "techRecord_dimensions_height": {
662
662
  "type": [
663
663
  "integer",
664
664
  "null"
665
665
  ],
666
- "min": 0,
667
- "max": 99999
666
+ "minimum": 0,
667
+ "maximum": 99999
668
668
  },
669
669
  "techRecord_frontAxleToRearAxle": {
670
670
  "type": [
671
671
  "integer",
672
672
  "null"
673
673
  ],
674
- "min": 0,
675
- "max": 99999
674
+ "minimum": 0,
675
+ "maximum": 99999
676
676
  },
677
677
  "techRecord_remarks": {
678
678
  "type": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dvsa/cvs-type-definitions",
3
- "version": "3.0.20",
3
+ "version": "3.0.22",
4
4
  "description": "type definitions for cvs vta application",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -70,7 +70,7 @@ export interface TechRecordGETCarComplete {
70
70
  techRecord_vehicleConfiguration?: null | VehicleConfiguration;
71
71
  techRecord_vehicleType: "car";
72
72
  vin: string;
73
- techRecord_vehicleSubclass: VehicleSubclass;
73
+ techRecord_vehicleSubclass: VehicleSubclass[];
74
74
  techRecord_hiddenInVta?: null | boolean;
75
75
  techRecord_updateType?: null | string;
76
76
  secondaryVrms?: null | string[];
@@ -38,6 +38,7 @@ export type VehicleConfiguration =
38
38
  | "four-in-line"
39
39
  | "dolly"
40
40
  | "full drawbar";
41
+ export type VehicleSubclass = ("n" | "p" | "a" | "s" | "c" | "l" | "t" | "e" | "m" | "r" | "w")[];
41
42
 
42
43
  export interface TechRecordGETCarSkeleton {
43
44
  techRecord_applicantDetails_name?: string | null;
@@ -72,4 +73,5 @@ export interface TechRecordGETCarSkeleton {
72
73
  techRecord_hiddenInVta?: null | boolean;
73
74
  techRecord_updateType?: null | string;
74
75
  secondaryVrms?: null | string[];
76
+ techRecord_vehicleSubclass?: VehicleSubclass[];
75
77
  }
@@ -70,7 +70,7 @@ export interface TechRecordGETLGVComplete {
70
70
  techRecord_vehicleConfiguration?: null | VehicleConfiguration;
71
71
  techRecord_vehicleType: "lgv";
72
72
  vin: string;
73
- techRecord_vehicleSubclass: null | VehicleSubclass;
73
+ techRecord_vehicleSubclass: VehicleSubclass[];
74
74
  techRecord_hiddenInVta?: null | boolean;
75
75
  techRecord_updateType?: null | string;
76
76
  secondaryVrms?: null | string[];
@@ -38,6 +38,7 @@ export type VehicleConfiguration =
38
38
  | "four-in-line"
39
39
  | "dolly"
40
40
  | "full drawbar";
41
+ export type VehicleSubclass = ("n" | "p" | "a" | "s" | "c" | "l" | "t" | "e" | "m" | "r" | "w")[];
41
42
 
42
43
  export interface TechRecordGETLGVSkeleton {
43
44
  techRecord_applicantDetails_name?: string | null;
@@ -72,4 +73,5 @@ export interface TechRecordGETLGVSkeleton {
72
73
  techRecord_hiddenInVta?: null | boolean;
73
74
  techRecord_updateType?: null | string;
74
75
  secondaryVrms?: null | string[];
76
+ techRecord_vehicleSubclass?: VehicleSubclass[];
75
77
  }
@@ -38,7 +38,6 @@ export type VehicleConfiguration =
38
38
  | "four-in-line"
39
39
  | "dolly"
40
40
  | "full drawbar";
41
- export type VehicleSubclass = ("n" | "p" | "a" | "s" | "c" | "l" | "t" | "e" | "m" | "r" | "w")[];
42
41
 
43
42
  export interface TechRecordGETMotorcycleComplete {
44
43
  secondaryVrms?: string[];
@@ -71,7 +70,6 @@ export interface TechRecordGETMotorcycleComplete {
71
70
  techRecord_vehicleConfiguration?: null | VehicleConfiguration;
72
71
  techRecord_vehicleType?: "motorcycle";
73
72
  vin: string;
74
- techRecord_vehicleSubclass?: null | VehicleSubclass;
75
73
  techRecord_numberOfWheelsDriven: null | number;
76
74
  techRecord_hiddenInVta?: null | boolean;
77
75
  techRecord_updateType?: null | string;
@@ -19,7 +19,7 @@ export interface TechRecordPUTCarComplete {
19
19
  techRecord_manufactureYear?: number | null;
20
20
  techRecord_noOfAxles?: number | null;
21
21
  techRecord_notes?: string;
22
- techRecord_vehicleSubclass: VehicleSubclass;
22
+ techRecord_vehicleSubclass: VehicleSubclass[];
23
23
  techRecord_hiddenInVta?: null | boolean;
24
24
  techRecord_updateType?: null | string;
25
25
  techRecord_createdAt?: null | string;
@@ -6,6 +6,7 @@
6
6
  */
7
7
 
8
8
  export type StatusCode = "provisional" | "current" | "archived";
9
+ export type VehicleSubclass = ("n" | "p" | "a" | "s" | "c" | "l" | "t" | "e" | "m" | "r" | "w")[];
9
10
 
10
11
  export interface TechRecordPUTCarSkeleton {
11
12
  vin: string;
@@ -24,4 +25,5 @@ export interface TechRecordPUTCarSkeleton {
24
25
  techRecord_createdById?: null | string;
25
26
  techRecord_createdByName?: null | string;
26
27
  secondaryVrms?: null | string[];
28
+ techRecord_vehicleSubclass?: VehicleSubclass[];
27
29
  }
@@ -47,7 +47,7 @@ export interface TechRecordPUTLGVComplete {
47
47
  techRecord_manufactureYear?: number | null;
48
48
  techRecord_noOfAxles?: number | null;
49
49
  techRecord_notes?: string;
50
- techRecord_vehicleSubclass: VehicleSubclass;
50
+ techRecord_vehicleSubclass: VehicleSubclass[];
51
51
  techRecord_hiddenInVta?: boolean;
52
52
  techRecord_updateType?: string;
53
53
  techRecord_createdAt?: string;
@@ -25,6 +25,7 @@ export type EUVehicleCategory =
25
25
  | "l6e"
26
26
  | "l7e";
27
27
  export type StatusCode = "provisional" | "current" | "archived";
28
+ export type VehicleSubclass = ("n" | "p" | "a" | "s" | "c" | "l" | "t" | "e" | "m" | "r" | "w")[];
28
29
 
29
30
  export interface TechRecordPUTLGVSkeleton {
30
31
  vin: string;
@@ -52,4 +53,5 @@ export interface TechRecordPUTLGVSkeleton {
52
53
  techRecord_createdById?: string;
53
54
  techRecord_createdByName?: string;
54
55
  secondaryVrms?: string[];
56
+ techRecord_vehicleSubclass?: VehicleSubclass[];
55
57
  }
@@ -38,7 +38,6 @@ export type VehicleConfiguration =
38
38
  | "four-in-line"
39
39
  | "dolly"
40
40
  | "full drawbar";
41
- export type VehicleSubclass = ("n" | "p" | "a" | "s" | "c" | "l" | "t" | "e" | "m" | "r" | "w")[];
42
41
 
43
42
  export interface TechRecordPUTMotorcycleComplete {
44
43
  secondaryVrms?: null | string[];
@@ -70,7 +69,6 @@ export interface TechRecordPUTMotorcycleComplete {
70
69
  techRecord_vehicleConfiguration?: null | VehicleConfiguration;
71
70
  techRecord_vehicleType?: "motorcycle";
72
71
  vin: string;
73
- techRecord_vehicleSubclass?: null | VehicleSubclass;
74
72
  techRecord_numberOfWheelsDriven: number;
75
73
  techRecord_hiddenInVta?: null | boolean;
76
74
  techRecord_updateType?: null | string;