@dvsa/cvs-type-definitions 2.0.14 → 2.0.18

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 (53) hide show
  1. package/json-schemas/v1/activity/index.json +62 -62
  2. package/json-schemas/v1/defect-category-reference-data/index.json +440 -440
  3. package/json-schemas/v1/defect-details/index.json +265 -265
  4. package/json-schemas/v1/defect-location/index.json +49 -49
  5. package/json-schemas/v1/reason-item/index.json +17 -17
  6. package/json-schemas/v1/tech-record/index.json +639 -639
  7. package/json-schemas/v1/test/index.json +1843 -1843
  8. package/json-schemas/v1/test-result/index.json +636 -636
  9. package/json-schemas/v1/test-station/index.json +67 -67
  10. package/json-schemas/v1/test-type/index.json +479 -479
  11. package/json-schemas/v1/vehicle/index.json +1804 -1804
  12. package/json-schemas/v1/vehicle-tech-record/index.json +683 -683
  13. package/json-schemas/v1/visit/index.json +1895 -1895
  14. package/json-schemas/v3/tech-record/get/car/complete/index.json +216 -216
  15. package/json-schemas/v3/tech-record/get/car/skeleton/index.json +195 -195
  16. package/json-schemas/v3/tech-record/get/hgv/complete/index.json +1051 -1051
  17. package/json-schemas/v3/tech-record/get/hgv/skeleton/index.json +1124 -1124
  18. package/json-schemas/v3/tech-record/get/hgv/testable/index.json +1119 -1119
  19. package/json-schemas/v3/tech-record/get/lgv/complete/index.json +226 -226
  20. package/json-schemas/v3/tech-record/get/lgv/skeleton/index.json +202 -202
  21. package/json-schemas/v3/tech-record/get/motorcycle/complete/index.json +219 -219
  22. package/json-schemas/v3/tech-record/get/motorcycle/skeleton/index.json +202 -202
  23. package/json-schemas/v3/tech-record/get/psv/complete/index.json +1027 -1027
  24. package/json-schemas/v3/tech-record/get/psv/skeleton/index.json +1120 -1120
  25. package/json-schemas/v3/tech-record/get/psv/testable/index.json +1097 -1097
  26. package/json-schemas/v3/tech-record/get/search/complete/index.json +55 -55
  27. package/json-schemas/v3/tech-record/get/search/skeleton/index.json +55 -55
  28. package/json-schemas/v3/tech-record/get/trl/complete/index.json +1307 -1307
  29. package/json-schemas/v3/tech-record/get/trl/skeleton/index.json +1002 -1002
  30. package/json-schemas/v3/tech-record/get/trl/testable/index.json +1155 -1155
  31. package/json-schemas/v3/tech-record/post/psv/complete/index.json +1024 -1024
  32. package/json-schemas/v3/tech-record/post/psv/skeleton/index.json +1112 -1112
  33. package/json-schemas/v3/tech-record/post/psv/testable/index.json +1092 -1092
  34. package/json-schemas/v3/tech-record/put/car/complete/request/index.json +87 -87
  35. package/json-schemas/v3/tech-record/put/car/complete/response/index.json +237 -237
  36. package/json-schemas/v3/tech-record/put/car/skeleton/request/index.json +64 -64
  37. package/json-schemas/v3/tech-record/put/car/skeleton/response/index.json +216 -216
  38. package/json-schemas/v3/tech-record/put/hgv/complete/index.json +1009 -1009
  39. package/json-schemas/v3/tech-record/put/hgv/skeleton/index.json +1082 -1082
  40. package/json-schemas/v3/tech-record/put/hgv/testable/index.json +1077 -1077
  41. package/json-schemas/v3/tech-record/put/lgv/complete/request/index.json +97 -97
  42. package/json-schemas/v3/tech-record/put/lgv/complete/response/index.json +247 -247
  43. package/json-schemas/v3/tech-record/put/lgv/skeleton/request/index.json +71 -71
  44. package/json-schemas/v3/tech-record/put/lgv/skeleton/response/index.json +223 -223
  45. package/json-schemas/v3/tech-record/put/trl/complete/index.json +1265 -1265
  46. package/json-schemas/v3/tech-record/put/trl/skeleton/index.json +978 -978
  47. package/json-schemas/v3/tech-record/put/trl/testable/index.json +1115 -1115
  48. package/package.json +31 -36
  49. package/{lib/src/schema-validation/schema-validator.d.ts → schema-validator.d.ts} +1 -1
  50. package/{lib/src/schema-validation/schema-validator.js → schema-validator.js} +2 -2
  51. package/README.md +0 -48
  52. /package/{lib/schemas.d.ts → schemas.d.ts} +0 -0
  53. /package/{lib/schemas.js → schemas.js} +0 -0
@@ -1,247 +1,247 @@
1
- {
2
- "title": "Tech Record Complete Car Schema",
3
- "type": "object",
4
- "additionalProperties": false,
5
- "required": [
6
- "vehicleSubclass"
7
- ],
8
- "allOf": [
9
- {
10
- "title": "Tech Record PUT Response Complete Car Schema",
11
- "type": "object",
12
- "additionalProperties": true,
13
- "required": [
14
- "vehicleSubclass",
15
- "createdTimestamp",
16
- "systemNumber"
17
- ],
18
- "properties": {
19
- "techRecord_applicantDetails_name": {
20
- "type": [
21
- "string",
22
- "null"
23
- ],
24
- "maxLength": 150
25
- },
26
- "techRecord_applicantDetails_address1": {
27
- "type": [
28
- "null",
29
- "string"
30
- ],
31
- "maxLength": 60
32
- },
33
- "techRecord_applicantDetails_address2": {
34
- "type": [
35
- "null",
36
- "string"
37
- ],
38
- "maxLength": 60
39
- },
40
- "techRecord_applicantDetails_postTown": {
41
- "type": [
42
- "null",
43
- "string"
44
- ],
45
- "maxLength": 60
46
- },
47
- "techRecord_applicantDetails_address3": {
48
- "type": [
49
- "null",
50
- "string"
51
- ],
52
- "maxLength": 60
53
- },
54
- "techRecord_applicantDetails_postCode": {
55
- "type": [
56
- "null",
57
- "string"
58
- ],
59
- "maxLength": 12
60
- },
61
- "techRecord_applicantDetails_telephoneNumber": {
62
- "type": [
63
- "null",
64
- "string"
65
- ],
66
- "maxLength": 25
67
- },
68
- "techRecord_applicantDetails_emailAddress": {
69
- "type": [
70
- "null",
71
- "string"
72
- ],
73
- "maxLength": 255
74
- },
75
- "vin": {
76
- "type": "string"
77
- },
78
- "systemNumber": {
79
- "type": "string"
80
- },
81
- "createdTimestamp": {
82
- "type": "string"
83
- },
84
- "partialVin": {
85
- "type": "string"
86
- },
87
- "primaryVrm": {
88
- "type": "string"
89
- },
90
- "techRecord_createdAt": {
91
- "type": "string"
92
- },
93
- "techRecord_createdByName": {
94
- "type": [
95
- "string",
96
- "null"
97
- ]
98
- },
99
- "techRecord_createdById": {
100
- "type": [
101
- "string",
102
- "null"
103
- ]
104
- },
105
- "techRecord_euVehicleCategory": {
106
- "title": "EU vehicle category",
107
- "type": "string",
108
- "enum": [
109
- "m1",
110
- "m2",
111
- "m3",
112
- "n1",
113
- "n2",
114
- "n3",
115
- "o1",
116
- "o2",
117
- "o3",
118
- "o4",
119
- "l1e-a",
120
- "l1e",
121
- "l2e",
122
- "l3e",
123
- "l4e",
124
- "l5e",
125
- "l6e",
126
- "l7e"
127
- ]
128
- },
129
- "techRecord_lastUpdatedAt": {
130
- "type": [
131
- "string",
132
- "null"
133
- ]
134
- },
135
- "techRecord_lastUpdatedByName": {
136
- "type": [
137
- "string",
138
- "null"
139
- ]
140
- },
141
- "techRecord_lastUpdatedById": {
142
- "type": [
143
- "string",
144
- "null"
145
- ]
146
- },
147
- "techRecord_recordCompleteness": {
148
- "type": "string",
149
- "enum": [
150
- "complete",
151
- "testable",
152
- "skeleton"
153
- ]
154
- },
155
- "techRecord_vehicleConfiguration": {
156
- "title": "Vehicle Configuration",
157
- "type": "string",
158
- "enum": [
159
- "rigid",
160
- "articulated",
161
- "centre axle drawbar",
162
- "semi-car transporter",
163
- "semi-trailer",
164
- "long semi-trailer",
165
- "low loader",
166
- "other",
167
- "drawbar",
168
- "four-in-line",
169
- "dolly",
170
- "full drawbar"
171
- ]
172
- },
173
- "techRecord_noOfAxles": {
174
- "type": [
175
- "integer",
176
- "null"
177
- ]
178
- },
179
- "techRecord_manufactureYear": {
180
- "type": [
181
- "integer",
182
- "null"
183
- ]
184
- },
185
- "techRecord_regnDate": {
186
- "type": [
187
- "string",
188
- "null"
189
- ]
190
- },
191
- "techRecord_statusCode": {
192
- "title": "Status Code",
193
- "type": "string",
194
- "enum": [
195
- "provisional",
196
- "current",
197
- "archived"
198
- ]
199
- },
200
- "techRecord_vehicleType": {
201
- "title": "Vehicle Type",
202
- "type": "string",
203
- "enum": [
204
- "psv",
205
- "trl",
206
- "hgv",
207
- "car",
208
- "lgv",
209
- "motorcycle"
210
- ]
211
- },
212
- "techRecord_reasonForCreation": {
213
- "type": [
214
- "string",
215
- "null"
216
- ]
217
- },
218
- "techRecord_bodyType_code": {
219
- "type": "string"
220
- },
221
- "techRecord_bodyType_description": {
222
- "type": "string"
223
- }
224
- },
225
- "vehicleSubclass": {
226
- "title": "Vehicle Subclass",
227
- "type": "array",
228
- "items": {
229
- "type": "string",
230
- "enum": [
231
- "n",
232
- "p",
233
- "a",
234
- "s",
235
- "c",
236
- "l",
237
- "t",
238
- "e",
239
- "m",
240
- "r",
241
- "w"
242
- ]
243
- }
244
- }
245
- }
246
- ]
247
- }
1
+ {
2
+ "title": "Tech Record Complete Car Schema",
3
+ "type": "object",
4
+ "additionalProperties": false,
5
+ "required": [
6
+ "vehicleSubclass"
7
+ ],
8
+ "allOf": [
9
+ {
10
+ "title": "Tech Record PUT Response Complete Car Schema",
11
+ "type": "object",
12
+ "additionalProperties": true,
13
+ "required": [
14
+ "vehicleSubclass",
15
+ "createdTimestamp",
16
+ "systemNumber"
17
+ ],
18
+ "properties": {
19
+ "techRecord_applicantDetails_name": {
20
+ "type": [
21
+ "string",
22
+ "null"
23
+ ],
24
+ "maxLength": 150
25
+ },
26
+ "techRecord_applicantDetails_address1": {
27
+ "type": [
28
+ "null",
29
+ "string"
30
+ ],
31
+ "maxLength": 60
32
+ },
33
+ "techRecord_applicantDetails_address2": {
34
+ "type": [
35
+ "null",
36
+ "string"
37
+ ],
38
+ "maxLength": 60
39
+ },
40
+ "techRecord_applicantDetails_postTown": {
41
+ "type": [
42
+ "null",
43
+ "string"
44
+ ],
45
+ "maxLength": 60
46
+ },
47
+ "techRecord_applicantDetails_address3": {
48
+ "type": [
49
+ "null",
50
+ "string"
51
+ ],
52
+ "maxLength": 60
53
+ },
54
+ "techRecord_applicantDetails_postCode": {
55
+ "type": [
56
+ "null",
57
+ "string"
58
+ ],
59
+ "maxLength": 12
60
+ },
61
+ "techRecord_applicantDetails_telephoneNumber": {
62
+ "type": [
63
+ "null",
64
+ "string"
65
+ ],
66
+ "maxLength": 25
67
+ },
68
+ "techRecord_applicantDetails_emailAddress": {
69
+ "type": [
70
+ "null",
71
+ "string"
72
+ ],
73
+ "maxLength": 255
74
+ },
75
+ "vin": {
76
+ "type": "string"
77
+ },
78
+ "systemNumber": {
79
+ "type": "string"
80
+ },
81
+ "createdTimestamp": {
82
+ "type": "string"
83
+ },
84
+ "partialVin": {
85
+ "type": "string"
86
+ },
87
+ "primaryVrm": {
88
+ "type": "string"
89
+ },
90
+ "techRecord_createdAt": {
91
+ "type": "string"
92
+ },
93
+ "techRecord_createdByName": {
94
+ "type": [
95
+ "string",
96
+ "null"
97
+ ]
98
+ },
99
+ "techRecord_createdById": {
100
+ "type": [
101
+ "string",
102
+ "null"
103
+ ]
104
+ },
105
+ "techRecord_euVehicleCategory": {
106
+ "title": "EU vehicle category",
107
+ "type": "string",
108
+ "enum": [
109
+ "m1",
110
+ "m2",
111
+ "m3",
112
+ "n1",
113
+ "n2",
114
+ "n3",
115
+ "o1",
116
+ "o2",
117
+ "o3",
118
+ "o4",
119
+ "l1e-a",
120
+ "l1e",
121
+ "l2e",
122
+ "l3e",
123
+ "l4e",
124
+ "l5e",
125
+ "l6e",
126
+ "l7e"
127
+ ]
128
+ },
129
+ "techRecord_lastUpdatedAt": {
130
+ "type": [
131
+ "string",
132
+ "null"
133
+ ]
134
+ },
135
+ "techRecord_lastUpdatedByName": {
136
+ "type": [
137
+ "string",
138
+ "null"
139
+ ]
140
+ },
141
+ "techRecord_lastUpdatedById": {
142
+ "type": [
143
+ "string",
144
+ "null"
145
+ ]
146
+ },
147
+ "techRecord_recordCompleteness": {
148
+ "type": "string",
149
+ "enum": [
150
+ "complete",
151
+ "testable",
152
+ "skeleton"
153
+ ]
154
+ },
155
+ "techRecord_vehicleConfiguration": {
156
+ "title": "Vehicle Configuration",
157
+ "type": "string",
158
+ "enum": [
159
+ "rigid",
160
+ "articulated",
161
+ "centre axle drawbar",
162
+ "semi-car transporter",
163
+ "semi-trailer",
164
+ "long semi-trailer",
165
+ "low loader",
166
+ "other",
167
+ "drawbar",
168
+ "four-in-line",
169
+ "dolly",
170
+ "full drawbar"
171
+ ]
172
+ },
173
+ "techRecord_noOfAxles": {
174
+ "type": [
175
+ "integer",
176
+ "null"
177
+ ]
178
+ },
179
+ "techRecord_manufactureYear": {
180
+ "type": [
181
+ "integer",
182
+ "null"
183
+ ]
184
+ },
185
+ "techRecord_regnDate": {
186
+ "type": [
187
+ "string",
188
+ "null"
189
+ ]
190
+ },
191
+ "techRecord_statusCode": {
192
+ "title": "Status Code",
193
+ "type": "string",
194
+ "enum": [
195
+ "provisional",
196
+ "current",
197
+ "archived"
198
+ ]
199
+ },
200
+ "techRecord_vehicleType": {
201
+ "title": "Vehicle Type",
202
+ "type": "string",
203
+ "enum": [
204
+ "psv",
205
+ "trl",
206
+ "hgv",
207
+ "car",
208
+ "lgv",
209
+ "motorcycle"
210
+ ]
211
+ },
212
+ "techRecord_reasonForCreation": {
213
+ "type": [
214
+ "string",
215
+ "null"
216
+ ]
217
+ },
218
+ "techRecord_bodyType_code": {
219
+ "type": "string"
220
+ },
221
+ "techRecord_bodyType_description": {
222
+ "type": "string"
223
+ }
224
+ },
225
+ "vehicleSubclass": {
226
+ "title": "Vehicle Subclass",
227
+ "type": "array",
228
+ "items": {
229
+ "type": "string",
230
+ "enum": [
231
+ "n",
232
+ "p",
233
+ "a",
234
+ "s",
235
+ "c",
236
+ "l",
237
+ "t",
238
+ "e",
239
+ "m",
240
+ "r",
241
+ "w"
242
+ ]
243
+ }
244
+ }
245
+ }
246
+ ]
247
+ }
@@ -1,71 +1,71 @@
1
- {
2
- "title": "Tech Record Complete Car Schema",
3
- "type": "object",
4
- "additionalProperties": false,
5
- "allOf": [
6
- {
7
- "title": "Tech Record PUT Request Skeleton Car Schema",
8
- "type": "object",
9
- "additionalProperties": true,
10
- "properties": {
11
- "vin": {
12
- "type": "string"
13
- },
14
- "primaryVrm": {
15
- "type": "string"
16
- },
17
- "trailerId": {
18
- "type": [
19
- "string",
20
- "null"
21
- ]
22
- },
23
- "techRecord_reasonForCreation": {
24
- "type": [
25
- "string",
26
- "null"
27
- ]
28
- },
29
- "techRecord_vehicleType": {
30
- "title": "Vehicle Type",
31
- "type": "string",
32
- "enum": [
33
- "psv",
34
- "trl",
35
- "hgv",
36
- "car",
37
- "lgv",
38
- "motorcycle"
39
- ]
40
- },
41
- "techRecord_statusCode": {
42
- "title": "Status Code",
43
- "type": "string",
44
- "enum": [
45
- "provisional",
46
- "current",
47
- "archived"
48
- ]
49
- },
50
- "techRecord_regnDate": {
51
- "type": [
52
- "string",
53
- "null"
54
- ]
55
- },
56
- "techRecord_manufactureYear": {
57
- "type": [
58
- "string",
59
- "null"
60
- ]
61
- },
62
- "techRecord_noOfAxles": {
63
- "type": [
64
- "integer",
65
- "null"
66
- ]
67
- }
68
- }
69
- }
70
- ]
71
- }
1
+ {
2
+ "title": "Tech Record Complete Car Schema",
3
+ "type": "object",
4
+ "additionalProperties": false,
5
+ "allOf": [
6
+ {
7
+ "title": "Tech Record PUT Request Skeleton Car Schema",
8
+ "type": "object",
9
+ "additionalProperties": true,
10
+ "properties": {
11
+ "vin": {
12
+ "type": "string"
13
+ },
14
+ "primaryVrm": {
15
+ "type": "string"
16
+ },
17
+ "trailerId": {
18
+ "type": [
19
+ "string",
20
+ "null"
21
+ ]
22
+ },
23
+ "techRecord_reasonForCreation": {
24
+ "type": [
25
+ "string",
26
+ "null"
27
+ ]
28
+ },
29
+ "techRecord_vehicleType": {
30
+ "title": "Vehicle Type",
31
+ "type": "string",
32
+ "enum": [
33
+ "psv",
34
+ "trl",
35
+ "hgv",
36
+ "car",
37
+ "lgv",
38
+ "motorcycle"
39
+ ]
40
+ },
41
+ "techRecord_statusCode": {
42
+ "title": "Status Code",
43
+ "type": "string",
44
+ "enum": [
45
+ "provisional",
46
+ "current",
47
+ "archived"
48
+ ]
49
+ },
50
+ "techRecord_regnDate": {
51
+ "type": [
52
+ "string",
53
+ "null"
54
+ ]
55
+ },
56
+ "techRecord_manufactureYear": {
57
+ "type": [
58
+ "string",
59
+ "null"
60
+ ]
61
+ },
62
+ "techRecord_noOfAxles": {
63
+ "type": [
64
+ "integer",
65
+ "null"
66
+ ]
67
+ }
68
+ }
69
+ }
70
+ ]
71
+ }