@dvsa/cvs-type-definitions 3.7.0 → 4.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.
@@ -20,25 +20,6 @@
20
20
  "string"
21
21
  ]
22
22
  },
23
- "vehicleTypes": {
24
- "type": "array",
25
- "items": {
26
- "anyOf": [
27
- {
28
- "title": "Vehicle Type",
29
- "type": "string",
30
- "enum": [
31
- "psv",
32
- "trl",
33
- "hgv",
34
- "car",
35
- "lgv",
36
- "motorcycle"
37
- ]
38
- }
39
- ]
40
- }
41
- },
42
23
  "euVehicleCategories": {
43
24
  "type": "array",
44
25
  "items": {
@@ -99,8 +80,7 @@
99
80
  "rsNumber",
100
81
  "requiredStandard",
101
82
  "refCalculation",
102
- "additionalInfo",
103
- "inspectionTypes"
83
+ "additionalInfo"
104
84
  ],
105
85
  "properties": {
106
86
  "rsNumber": {
@@ -140,6 +120,20 @@
140
120
  }
141
121
  }
142
122
  }
123
+ },
124
+ "additionalInformation": {
125
+ "type": "object",
126
+ "additionalProperties": false,
127
+ "required": [
128
+ "notes"
129
+ ],
130
+ "properties": {
131
+ "notes": {
132
+ "type": [
133
+ "string"
134
+ ]
135
+ }
136
+ }
143
137
  }
144
138
  }
145
139
  }
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.0",
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 {