@dvsa/cvs-type-definitions 3.0.7 → 3.0.8

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 (27) hide show
  1. package/json-schemas/v3/tech-record/get/car/complete/index.json +1 -10
  2. package/json-schemas/v3/tech-record/get/car/skeleton/index.json +1 -10
  3. package/json-schemas/v3/tech-record/get/lgv/complete/index.json +1 -17
  4. package/json-schemas/v3/tech-record/get/lgv/skeleton/index.json +1 -17
  5. package/json-schemas/v3/tech-record/get/motorcycle/complete/index.json +1 -17
  6. package/json-schemas/v3/tech-record/get/motorcycle/skeleton/index.json +1 -17
  7. package/json-schemas/v3/tech-record/put/car/complete/index.json +1 -10
  8. package/json-schemas/v3/tech-record/put/car/skeleton/index.json +1 -10
  9. package/json-schemas/v3/tech-record/put/lgv/complete/index.json +1 -10
  10. package/json-schemas/v3/tech-record/put/lgv/skeleton/index.json +1 -10
  11. package/json-schemas/v3/tech-record/put/motorcycle/complete/index.json +1 -17
  12. package/json-schemas/v3/tech-record/put/motorcycle/skeleton/index.json +1 -17
  13. package/package.json +1 -1
  14. package/types/v3/tech-record/get/car/complete/index.d.ts +1 -2
  15. package/types/v3/tech-record/get/car/skeleton/index.d.ts +1 -2
  16. package/types/v3/tech-record/get/lgv/complete/index.d.ts +1 -2
  17. package/types/v3/tech-record/get/lgv/skeleton/index.d.ts +1 -2
  18. package/types/v3/tech-record/get/motorcycle/complete/index.d.ts +1 -2
  19. package/types/v3/tech-record/get/motorcycle/skeleton/index.d.ts +1 -2
  20. package/types/v3/tech-record/put/car/complete/index.d.ts +1 -2
  21. package/types/v3/tech-record/put/car/skeleton/index.d.ts +1 -2
  22. package/types/v3/tech-record/put/lgv/complete/index.d.ts +1 -2
  23. package/types/v3/tech-record/put/lgv/skeleton/index.d.ts +1 -2
  24. package/types/v3/tech-record/put/motorcycle/complete/index.d.ts +1 -2
  25. package/types/v3/tech-record/put/motorcycle/skeleton/index.d.ts +1 -2
  26. package/types/v3/tech-record/tech-record-vehicle-type.d.ts +2 -1
  27. package/types/v3/tech-record/tech-record-verb-vehicle-type.d.ts +2 -1
@@ -231,16 +231,7 @@
231
231
  ]
232
232
  },
233
233
  "techRecord_vehicleType": {
234
- "title": "Vehicle Type",
235
- "type": "string",
236
- "enum": [
237
- "psv",
238
- "trl",
239
- "hgv",
240
- "car",
241
- "lgv",
242
- "motorcycle"
243
- ]
234
+ "const": "car"
244
235
  },
245
236
  "vin": {
246
237
  "type": "string"
@@ -230,16 +230,7 @@
230
230
  ]
231
231
  },
232
232
  "techRecord_vehicleType": {
233
- "title": "Vehicle Type",
234
- "type": "string",
235
- "enum": [
236
- "psv",
237
- "trl",
238
- "hgv",
239
- "car",
240
- "lgv",
241
- "motorcycle"
242
- ]
233
+ "const": "car"
243
234
  },
244
235
  "vin": {
245
236
  "type": "string"
@@ -231,23 +231,7 @@
231
231
  ]
232
232
  },
233
233
  "techRecord_vehicleType": {
234
- "anyOf": [
235
- {
236
- "type": "null"
237
- },
238
- {
239
- "title": "Vehicle Type",
240
- "type": "string",
241
- "enum": [
242
- "psv",
243
- "trl",
244
- "hgv",
245
- "car",
246
- "lgv",
247
- "motorcycle"
248
- ]
249
- }
250
- ]
234
+ "const": "lgv"
251
235
  },
252
236
  "vin": {
253
237
  "type": "string"
@@ -230,23 +230,7 @@
230
230
  ]
231
231
  },
232
232
  "techRecord_vehicleType": {
233
- "anyOf": [
234
- {
235
- "type": "null"
236
- },
237
- {
238
- "title": "Vehicle Type",
239
- "type": "string",
240
- "enum": [
241
- "psv",
242
- "trl",
243
- "hgv",
244
- "car",
245
- "lgv",
246
- "motorcycle"
247
- ]
248
- }
249
- ]
233
+ "const": "lgv"
250
234
  },
251
235
  "vin": {
252
236
  "type": "string"
@@ -233,23 +233,7 @@
233
233
  ]
234
234
  },
235
235
  "techRecord_vehicleType": {
236
- "anyOf": [
237
- {
238
- "type": "null"
239
- },
240
- {
241
- "title": "Vehicle Type",
242
- "type": "string",
243
- "enum": [
244
- "psv",
245
- "trl",
246
- "hgv",
247
- "car",
248
- "lgv",
249
- "motorcycle"
250
- ]
251
- }
252
- ]
236
+ "const": "motorcycle"
253
237
  },
254
238
  "vin": {
255
239
  "type": "string"
@@ -226,23 +226,7 @@
226
226
  ]
227
227
  },
228
228
  "techRecord_vehicleType": {
229
- "anyOf": [
230
- {
231
- "type": "null"
232
- },
233
- {
234
- "title": "Vehicle Type",
235
- "type": "string",
236
- "enum": [
237
- "psv",
238
- "trl",
239
- "hgv",
240
- "car",
241
- "lgv",
242
- "motorcycle"
243
- ]
244
- }
245
- ]
229
+ "const": "motorcycle"
246
230
  },
247
231
  "vin": {
248
232
  "type": "string"
@@ -30,16 +30,7 @@
30
30
  ]
31
31
  },
32
32
  "techRecord_vehicleType": {
33
- "title": "Vehicle Type",
34
- "type": "string",
35
- "enum": [
36
- "psv",
37
- "trl",
38
- "hgv",
39
- "car",
40
- "lgv",
41
- "motorcycle"
42
- ]
33
+ "const": "car"
43
34
  },
44
35
  "techRecord_statusCode": {
45
36
  "anyOf": [
@@ -29,16 +29,7 @@
29
29
  ]
30
30
  },
31
31
  "techRecord_vehicleType": {
32
- "title": "Vehicle Type",
33
- "type": "string",
34
- "enum": [
35
- "psv",
36
- "trl",
37
- "hgv",
38
- "car",
39
- "lgv",
40
- "motorcycle"
41
- ]
32
+ "const": "car"
42
33
  },
43
34
  "techRecord_statusCode": {
44
35
  "anyOf": [
@@ -111,16 +111,7 @@
111
111
  ]
112
112
  },
113
113
  "techRecord_vehicleType": {
114
- "title": "Vehicle Type",
115
- "type": "string",
116
- "enum": [
117
- "psv",
118
- "trl",
119
- "hgv",
120
- "car",
121
- "lgv",
122
- "motorcycle"
123
- ]
114
+ "const": "lgv"
124
115
  },
125
116
  "techRecord_statusCode": {
126
117
  "title": "Status Code",
@@ -110,16 +110,7 @@
110
110
  ]
111
111
  },
112
112
  "techRecord_vehicleType": {
113
- "title": "Vehicle Type",
114
- "type": "string",
115
- "enum": [
116
- "psv",
117
- "trl",
118
- "hgv",
119
- "car",
120
- "lgv",
121
- "motorcycle"
122
- ]
113
+ "const": "lgv"
123
114
  },
124
115
  "techRecord_statusCode": {
125
116
  "title": "Status Code",
@@ -240,23 +240,7 @@
240
240
  ]
241
241
  },
242
242
  "techRecord_vehicleType": {
243
- "anyOf": [
244
- {
245
- "type": "null"
246
- },
247
- {
248
- "title": "Vehicle Type",
249
- "type": "string",
250
- "enum": [
251
- "psv",
252
- "trl",
253
- "hgv",
254
- "car",
255
- "lgv",
256
- "motorcycle"
257
- ]
258
- }
259
- ]
243
+ "const": "motorcycle"
260
244
  },
261
245
  "vin": {
262
246
  "type": "string"
@@ -230,23 +230,7 @@
230
230
  ]
231
231
  },
232
232
  "techRecord_vehicleType": {
233
- "anyOf": [
234
- {
235
- "type": "null"
236
- },
237
- {
238
- "title": "Vehicle Type",
239
- "type": "string",
240
- "enum": [
241
- "psv",
242
- "trl",
243
- "hgv",
244
- "car",
245
- "lgv",
246
- "motorcycle"
247
- ]
248
- }
249
- ]
233
+ "const": "motorcycle"
250
234
  },
251
235
  "vin": {
252
236
  "type": "string"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dvsa/cvs-type-definitions",
3
- "version": "3.0.7",
3
+ "version": "3.0.8",
4
4
  "description": "type definitions for cvs vta application",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -38,7 +38,6 @@ export type VehicleConfiguration =
38
38
  | "four-in-line"
39
39
  | "dolly"
40
40
  | "full drawbar";
41
- export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
42
41
  export type VehicleSubclass = ("n" | "p" | "a" | "s" | "c" | "l" | "t" | "e" | "m" | "r" | "w")[];
43
42
 
44
43
  export interface TechRecordGETCarComplete {
@@ -69,7 +68,7 @@ export interface TechRecordGETCarComplete {
69
68
  techRecord_regnDate?: string | null;
70
69
  techRecord_statusCode?: null | StatusCode;
71
70
  techRecord_vehicleConfiguration?: null | VehicleConfiguration;
72
- techRecord_vehicleType: VehicleType;
71
+ techRecord_vehicleType: "car";
73
72
  vin: string;
74
73
  techRecord_vehicleSubclass: VehicleSubclass;
75
74
  techRecord_hiddenInVta?: null | boolean;
@@ -38,7 +38,6 @@ export type VehicleConfiguration =
38
38
  | "four-in-line"
39
39
  | "dolly"
40
40
  | "full drawbar";
41
- export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
42
41
 
43
42
  export interface TechRecordGETCarSkeleton {
44
43
  techRecord_applicantDetails_name?: string | null;
@@ -68,7 +67,7 @@ export interface TechRecordGETCarSkeleton {
68
67
  techRecord_regnDate?: string | null;
69
68
  techRecord_statusCode?: null | StatusCode;
70
69
  techRecord_vehicleConfiguration?: null | VehicleConfiguration;
71
- techRecord_vehicleType: VehicleType;
70
+ techRecord_vehicleType: "car";
72
71
  vin: string;
73
72
  techRecord_hiddenInVta?: null | boolean;
74
73
  techRecord_updateType?: null | string;
@@ -38,7 +38,6 @@ export type VehicleConfiguration =
38
38
  | "four-in-line"
39
39
  | "dolly"
40
40
  | "full drawbar";
41
- export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
42
41
  export type VehicleSubclass = ("n" | "p" | "a" | "s" | "c" | "l" | "t" | "e" | "m" | "r" | "w")[];
43
42
 
44
43
  export interface TechRecordGETLGVComplete {
@@ -69,7 +68,7 @@ export interface TechRecordGETLGVComplete {
69
68
  techRecord_regnDate?: string | null;
70
69
  techRecord_statusCode?: null | StatusCode;
71
70
  techRecord_vehicleConfiguration?: null | VehicleConfiguration;
72
- techRecord_vehicleType: null | VehicleType;
71
+ techRecord_vehicleType: "lgv";
73
72
  vin: string;
74
73
  techRecord_vehicleSubclass: null | VehicleSubclass;
75
74
  techRecord_hiddenInVta?: null | boolean;
@@ -38,7 +38,6 @@ export type VehicleConfiguration =
38
38
  | "four-in-line"
39
39
  | "dolly"
40
40
  | "full drawbar";
41
- export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
42
41
 
43
42
  export interface TechRecordGETLGVSkeleton {
44
43
  techRecord_applicantDetails_name?: string | null;
@@ -68,7 +67,7 @@ export interface TechRecordGETLGVSkeleton {
68
67
  techRecord_regnDate?: string | null;
69
68
  techRecord_statusCode?: null | StatusCode;
70
69
  techRecord_vehicleConfiguration?: null | VehicleConfiguration;
71
- techRecord_vehicleType: null | VehicleType;
70
+ techRecord_vehicleType: "lgv";
72
71
  vin: string;
73
72
  techRecord_hiddenInVta?: null | boolean;
74
73
  techRecord_updateType?: null | string;
@@ -38,7 +38,6 @@ export type VehicleConfiguration =
38
38
  | "four-in-line"
39
39
  | "dolly"
40
40
  | "full drawbar";
41
- export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
42
41
  export type VehicleSubclass = ("n" | "p" | "a" | "s" | "c" | "l" | "t" | "e" | "m" | "r" | "w")[];
43
42
 
44
43
  export interface TechRecordGETMotorcycleComplete {
@@ -70,7 +69,7 @@ export interface TechRecordGETMotorcycleComplete {
70
69
  techRecord_regnDate?: string | null;
71
70
  techRecord_statusCode?: null | StatusCode;
72
71
  techRecord_vehicleConfiguration?: null | VehicleConfiguration;
73
- techRecord_vehicleType?: null | VehicleType;
72
+ techRecord_vehicleType?: "motorcycle";
74
73
  vin: string;
75
74
  techRecord_vehicleSubclass?: null | VehicleSubclass;
76
75
  techRecord_numberOfWheelsDriven: null | number;
@@ -38,7 +38,6 @@ export type VehicleConfiguration =
38
38
  | "four-in-line"
39
39
  | "dolly"
40
40
  | "full drawbar";
41
- export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
42
41
 
43
42
  export interface TechRecordGETMotorcycleSkeleton {
44
43
  techRecord_applicantDetails_name?: string | null;
@@ -68,7 +67,7 @@ export interface TechRecordGETMotorcycleSkeleton {
68
67
  techRecord_regnDate?: string | null;
69
68
  techRecord_statusCode?: null | StatusCode;
70
69
  techRecord_vehicleConfiguration?: null | VehicleConfiguration;
71
- techRecord_vehicleType?: null | VehicleType;
70
+ techRecord_vehicleType?: "motorcycle";
72
71
  vin: string;
73
72
  techRecord_hiddenInVta?: null | boolean;
74
73
  techRecord_updateType?: null | string;
@@ -5,7 +5,6 @@
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 StatusCode = "provisional" | "current" | "archived";
10
9
  export type VehicleSubclass = ("n" | "p" | "a" | "s" | "c" | "l" | "t" | "e" | "m" | "r" | "w")[];
11
10
 
@@ -14,7 +13,7 @@ export interface TechRecordPUTCarComplete {
14
13
  primaryVrm?: null | string;
15
14
  trailerId?: string | null;
16
15
  techRecord_reasonForCreation?: string | null;
17
- techRecord_vehicleType: VehicleType;
16
+ techRecord_vehicleType: "car";
18
17
  techRecord_statusCode?: null | StatusCode;
19
18
  techRecord_regnDate?: string | null;
20
19
  techRecord_manufactureYear?: number | null;
@@ -5,7 +5,6 @@
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 StatusCode = "provisional" | "current" | "archived";
10
9
 
11
10
  export interface TechRecordPUTCarSkeleton {
@@ -13,7 +12,7 @@ export interface TechRecordPUTCarSkeleton {
13
12
  primaryVrm?: null | string;
14
13
  trailerId?: string | null;
15
14
  techRecord_reasonForCreation?: string | null;
16
- techRecord_vehicleType: VehicleType;
15
+ techRecord_vehicleType: "car";
17
16
  techRecord_statusCode?: null | StatusCode;
18
17
  techRecord_regnDate?: string | null;
19
18
  techRecord_manufactureYear?: number | null;
@@ -24,7 +24,6 @@ export type EUVehicleCategory =
24
24
  | "l5e"
25
25
  | "l6e"
26
26
  | "l7e";
27
- export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
28
27
  export type StatusCode = "provisional" | "current" | "archived";
29
28
  export type VehicleSubclass = ("n" | "p" | "a" | "s" | "c" | "l" | "t" | "e" | "m" | "r" | "w")[];
30
29
 
@@ -42,7 +41,7 @@ export interface TechRecordPUTLGVComplete {
42
41
  techRecord_applicantDetails_emailAddress?: null | string;
43
42
  techRecord_euVehicleCategory?: EUVehicleCategory;
44
43
  techRecord_reasonForCreation?: string | null;
45
- techRecord_vehicleType: VehicleType;
44
+ techRecord_vehicleType: "lgv";
46
45
  techRecord_statusCode?: StatusCode;
47
46
  techRecord_regnDate?: string | null;
48
47
  techRecord_manufactureYear?: number | null;
@@ -24,7 +24,6 @@ export type EUVehicleCategory =
24
24
  | "l5e"
25
25
  | "l6e"
26
26
  | "l7e";
27
- export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
28
27
  export type StatusCode = "provisional" | "current" | "archived";
29
28
 
30
29
  export interface TechRecordPUTLGVSkeleton {
@@ -41,7 +40,7 @@ export interface TechRecordPUTLGVSkeleton {
41
40
  techRecord_applicantDetails_emailAddress?: null | string;
42
41
  techRecord_euVehicleCategory?: EUVehicleCategory;
43
42
  techRecord_reasonForCreation?: string | null;
44
- techRecord_vehicleType: VehicleType;
43
+ techRecord_vehicleType: "lgv";
45
44
  techRecord_statusCode?: StatusCode;
46
45
  techRecord_regnDate?: string | null;
47
46
  techRecord_manufactureYear?: number | null;
@@ -38,7 +38,6 @@ export type VehicleConfiguration =
38
38
  | "four-in-line"
39
39
  | "dolly"
40
40
  | "full drawbar";
41
- export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
42
41
  export type VehicleSubclass = ("n" | "p" | "a" | "s" | "c" | "l" | "t" | "e" | "m" | "r" | "w")[];
43
42
 
44
43
  export interface TechRecordPUTMotorcycleComplete {
@@ -70,7 +69,7 @@ export interface TechRecordPUTMotorcycleComplete {
70
69
  techRecord_regnDate?: string | null;
71
70
  techRecord_statusCode?: null | StatusCode;
72
71
  techRecord_vehicleConfiguration?: null | VehicleConfiguration;
73
- techRecord_vehicleType?: null | VehicleType;
72
+ techRecord_vehicleType?: "motorcycle";
74
73
  vin: string;
75
74
  techRecord_vehicleSubclass?: null | VehicleSubclass;
76
75
  techRecord_numberOfWheelsDriven: number;
@@ -38,7 +38,6 @@ export type VehicleConfiguration =
38
38
  | "four-in-line"
39
39
  | "dolly"
40
40
  | "full drawbar";
41
- export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
42
41
 
43
42
  export interface TechRecordPUTMotorcycleSkeleton {
44
43
  techRecord_applicantDetails_name?: string | null;
@@ -68,7 +67,7 @@ export interface TechRecordPUTMotorcycleSkeleton {
68
67
  techRecord_regnDate?: string | null;
69
68
  techRecord_statusCode?: null | StatusCode;
70
69
  techRecord_vehicleConfiguration?: null | VehicleConfiguration;
71
- techRecord_vehicleType?: null | VehicleType;
70
+ techRecord_vehicleType?: "motorcycle";
72
71
  vin: string;
73
72
  techRecord_hiddenInVta?: null | boolean;
74
73
  techRecord_updateType?: null | string;
@@ -3,13 +3,14 @@ import { TechRecordGETCarSkeleton } from "./get/car/skeleton";
3
3
  import { TechRecordGETHGVComplete } from "./get/hgv/complete";
4
4
  import { TechRecordGETHGVSkeleton } from "./get/hgv/skeleton";
5
5
  import { TechRecordGETHGVTestable } from "./get/hgv/testable";
6
- import { TechRecordGETLGVComplete, VehicleType } from "./get/lgv/complete";
6
+ import { TechRecordGETLGVComplete } from "./get/lgv/complete";
7
7
  import { TechRecordGETLGVSkeleton } from "./get/lgv/skeleton";
8
8
  import { TechRecordGETMotorcycleComplete } from "./get/motorcycle/complete";
9
9
  import { TechRecordGETMotorcycleSkeleton } from "./get/motorcycle/skeleton";
10
10
  import { TechRecordGETPSVComplete } from "./get/psv/complete";
11
11
  import { TechRecordGETPSVSkeleton } from "./get/psv/skeleton";
12
12
  import { TechRecordGETPSVTestable } from "./get/psv/testable";
13
+ import { VehicleType } from "./get/search";
13
14
  import { TechRecordGETTRLComplete } from "./get/trl/complete";
14
15
  import { TechRecordGETTRLSkeleton } from "./get/trl/skeleton";
15
16
  import { TechRecordGETTRLTestable } from "./get/trl/testable";
@@ -1,4 +1,4 @@
1
- import { TechRecordGETCarComplete, VehicleType } from "./get/car/complete";
1
+ import { TechRecordGETCarComplete } from "./get/car/complete";
2
2
  import { TechRecordGETCarSkeleton } from "./get/car/skeleton";
3
3
  import { TechRecordGETHGVComplete } from "./get/hgv/complete";
4
4
  import { TechRecordGETHGVSkeleton } from "./get/hgv/skeleton";
@@ -10,6 +10,7 @@ import { TechRecordGETMotorcycleSkeleton } from "./get/motorcycle/skeleton";
10
10
  import { TechRecordGETPSVComplete } from "./get/psv/complete";
11
11
  import { TechRecordGETPSVSkeleton } from "./get/psv/skeleton";
12
12
  import { TechRecordGETPSVTestable } from "./get/psv/testable";
13
+ import { VehicleType } from "./get/search";
13
14
  import { TechRecordGETTRLComplete } from "./get/trl/complete";
14
15
  import { TechRecordGETTRLSkeleton } from "./get/trl/skeleton";
15
16
  import { TechRecordGETTRLTestable } from "./get/trl/testable";