@dvsa/cvs-type-definitions 6.4.0 → 7.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.
- package/json-schemas/v1/activity/index.json +53 -8
- package/json-schemas/v1/enums/activityType.enum.json +14 -0
- package/json-schemas/v1/enums/emissionStandard.enum.json +26 -0
- package/json-schemas/v1/enums/fuelType.enum.json +22 -0
- package/json-schemas/v1/enums/odometerReadingUnits.enum.json +12 -0
- package/json-schemas/v1/enums/sources.enum.json +12 -0
- package/json-schemas/v1/enums/testResult.enum.json +16 -0
- package/json-schemas/v1/enums/testStationType.enum.json +16 -0
- package/json-schemas/v1/enums/testStatus.enum.json +12 -0
- package/json-schemas/v1/enums/typeOfTest.enum.json +14 -0
- package/json-schemas/v1/enums/waitReason.enum.json +18 -0
- package/json-schemas/v1/test/index.json +631 -87
- package/json-schemas/v1/test-result/index.json +448 -53
- package/json-schemas/v1/test-type/index.json +183 -34
- package/json-schemas/v1/vehicle/index.json +631 -87
- package/json-schemas/v1/visit/index.json +631 -87
- package/package.json +1 -1
- package/schemas.d.ts +1 -1
- package/schemas.js +10 -0
- package/types/v1/activity/index.d.ts +26 -6
- package/types/v1/enums/activityType.enum.d.ts +10 -0
- package/types/v1/enums/activityType.enum.js +15 -0
- package/types/v1/enums/activityType.enum.ts +12 -0
- package/types/v1/enums/emissionStandard.enum.d.ts +16 -0
- package/types/v1/enums/emissionStandard.enum.js +21 -0
- package/types/v1/enums/emissionStandard.enum.ts +18 -0
- package/types/v1/enums/fuelType.enum.d.ts +14 -0
- package/types/v1/enums/fuelType.enum.js +19 -0
- package/types/v1/enums/fuelType.enum.ts +16 -0
- package/types/v1/enums/odometerReadingUnits.enum.d.ts +9 -0
- package/types/v1/enums/odometerReadingUnits.enum.js +14 -0
- package/types/v1/enums/odometerReadingUnits.enum.ts +11 -0
- package/types/v1/enums/sources.enum.d.ts +9 -0
- package/types/v1/enums/sources.enum.js +14 -0
- package/types/v1/enums/sources.enum.ts +11 -0
- package/types/v1/enums/testResult.enum.d.ts +11 -0
- package/types/v1/enums/testResult.enum.js +16 -0
- package/types/v1/enums/testResult.enum.ts +13 -0
- package/types/v1/enums/testStationType.enum.d.ts +11 -0
- package/types/v1/enums/testStationType.enum.js +16 -0
- package/types/v1/enums/testStationType.enum.ts +13 -0
- package/types/v1/enums/testStatus.enum.d.ts +9 -0
- package/types/v1/enums/testStatus.enum.js +14 -0
- package/types/v1/enums/testStatus.enum.ts +11 -0
- package/types/v1/enums/typeOfTest.enum.d.ts +10 -0
- package/types/v1/enums/typeOfTest.enum.js +15 -0
- package/types/v1/enums/typeOfTest.enum.ts +12 -0
- package/types/v1/enums/waitReason.enum.d.ts +12 -0
- package/types/v1/enums/waitReason.enum.js +17 -0
- package/types/v1/enums/waitReason.enum.ts +14 -0
- package/types/v1/test/index.d.ts +143 -28
- package/types/v1/test-result/index.d.ts +143 -28
- package/types/v1/test-type/index.d.ts +65 -14
- package/types/v1/vehicle/index.d.ts +143 -28
- package/types/v1/visit/index.d.ts +143 -28
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
"type": "object",
|
|
4
4
|
"properties": {
|
|
5
5
|
"testTypeName": {
|
|
6
|
-
"type":
|
|
6
|
+
"type": [
|
|
7
|
+
"string",
|
|
8
|
+
"null"
|
|
9
|
+
]
|
|
7
10
|
},
|
|
8
11
|
"name": {
|
|
9
12
|
"type": "string"
|
|
@@ -36,9 +39,26 @@
|
|
|
36
39
|
]
|
|
37
40
|
},
|
|
38
41
|
"testResult": {
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
+
"anyOf": [
|
|
43
|
+
{
|
|
44
|
+
"type:": "null"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"title": "Test Results",
|
|
48
|
+
"type": "string",
|
|
49
|
+
"tsEnumNames": [
|
|
50
|
+
"PASS",
|
|
51
|
+
"PRS",
|
|
52
|
+
"FAIL",
|
|
53
|
+
"ABANDONED"
|
|
54
|
+
],
|
|
55
|
+
"enum": [
|
|
56
|
+
"pass",
|
|
57
|
+
"prs",
|
|
58
|
+
"fail",
|
|
59
|
+
"abandoned"
|
|
60
|
+
]
|
|
61
|
+
}
|
|
42
62
|
]
|
|
43
63
|
},
|
|
44
64
|
"prohibitionIssued": {
|
|
@@ -57,13 +77,15 @@
|
|
|
57
77
|
"type": [
|
|
58
78
|
"string",
|
|
59
79
|
"null"
|
|
60
|
-
]
|
|
80
|
+
],
|
|
81
|
+
"maxLength": 500
|
|
61
82
|
},
|
|
62
83
|
"additionalCommentsForAbandon": {
|
|
63
84
|
"type": [
|
|
64
85
|
"string",
|
|
65
86
|
"null"
|
|
66
|
-
]
|
|
87
|
+
],
|
|
88
|
+
"maxLength": 500
|
|
67
89
|
},
|
|
68
90
|
"numberOfSeatbeltsFitted": {
|
|
69
91
|
"type": [
|
|
@@ -86,6 +108,12 @@
|
|
|
86
108
|
"testExpiryDate": {
|
|
87
109
|
"type": "string"
|
|
88
110
|
},
|
|
111
|
+
"testAnniversaryDate": {
|
|
112
|
+
"type": [
|
|
113
|
+
"string",
|
|
114
|
+
"null"
|
|
115
|
+
]
|
|
116
|
+
},
|
|
89
117
|
"modType": {
|
|
90
118
|
"anyOf": [
|
|
91
119
|
{
|
|
@@ -114,22 +142,94 @@
|
|
|
114
142
|
]
|
|
115
143
|
},
|
|
116
144
|
"emissionStandard": {
|
|
117
|
-
"
|
|
145
|
+
"anyOf": [
|
|
146
|
+
{
|
|
147
|
+
"type:": "null"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"title": "Emission Standards",
|
|
151
|
+
"type": "string",
|
|
152
|
+
"tsEnumNames": [
|
|
153
|
+
"EURO3_PM",
|
|
154
|
+
"EURO4_PM",
|
|
155
|
+
"EURO3",
|
|
156
|
+
"EURO4",
|
|
157
|
+
"EURO5",
|
|
158
|
+
"EURO6",
|
|
159
|
+
"EUROV",
|
|
160
|
+
"EUROVI",
|
|
161
|
+
"FULL_ELECTRIC"
|
|
162
|
+
],
|
|
163
|
+
"enum": [
|
|
164
|
+
"0.10 g/kWh Euro 3 PM",
|
|
165
|
+
"0.03 g/kWh Euro IV PM'",
|
|
166
|
+
"Euro 3",
|
|
167
|
+
"Euro 4",
|
|
168
|
+
"Euro 5",
|
|
169
|
+
"Euro 6",
|
|
170
|
+
"Euro V",
|
|
171
|
+
"Euro VI",
|
|
172
|
+
"Full Electric"
|
|
173
|
+
]
|
|
174
|
+
}
|
|
175
|
+
]
|
|
118
176
|
},
|
|
119
177
|
"fuelType": {
|
|
120
|
-
"
|
|
178
|
+
"anyOf": [
|
|
179
|
+
{
|
|
180
|
+
"type:": "null"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"title": "Fuel Type",
|
|
184
|
+
"type": "string",
|
|
185
|
+
"tsEnumNames": [
|
|
186
|
+
"DIESEL",
|
|
187
|
+
"GAS_CNG",
|
|
188
|
+
"GAS_LNG",
|
|
189
|
+
"GAS_LPG",
|
|
190
|
+
"PETROL",
|
|
191
|
+
"FUEL_CELL",
|
|
192
|
+
"FULL_ELECTRIC"
|
|
193
|
+
],
|
|
194
|
+
"enum": [
|
|
195
|
+
"diesel",
|
|
196
|
+
"gas-cng",
|
|
197
|
+
"gas-lng",
|
|
198
|
+
"gas-lpg",
|
|
199
|
+
"petrol",
|
|
200
|
+
"fuel cell",
|
|
201
|
+
"full electric"
|
|
202
|
+
]
|
|
203
|
+
}
|
|
204
|
+
]
|
|
121
205
|
},
|
|
122
206
|
"modificationTypeUsed": {
|
|
123
|
-
"type":
|
|
207
|
+
"type": [
|
|
208
|
+
"string",
|
|
209
|
+
"null"
|
|
210
|
+
],
|
|
211
|
+
"maxLength": 100
|
|
124
212
|
},
|
|
125
213
|
"smokeTestKLimitApplied": {
|
|
126
|
-
"type":
|
|
214
|
+
"type": [
|
|
215
|
+
"string",
|
|
216
|
+
"null"
|
|
217
|
+
],
|
|
218
|
+
"maxLength": 100
|
|
127
219
|
},
|
|
128
220
|
"particulateTrapFitted": {
|
|
129
|
-
"type":
|
|
221
|
+
"type": [
|
|
222
|
+
"string",
|
|
223
|
+
"null"
|
|
224
|
+
],
|
|
225
|
+
"maxLength": 100
|
|
130
226
|
},
|
|
131
227
|
"particulateTrapSerialNumber": {
|
|
132
|
-
"type":
|
|
228
|
+
"type": [
|
|
229
|
+
"string",
|
|
230
|
+
"null"
|
|
231
|
+
],
|
|
232
|
+
"maxLength": 100
|
|
133
233
|
},
|
|
134
234
|
"defects": {
|
|
135
235
|
"type": [
|
|
@@ -403,7 +503,8 @@
|
|
|
403
503
|
},
|
|
404
504
|
"customDefects": {
|
|
405
505
|
"type": [
|
|
406
|
-
"array"
|
|
506
|
+
"array",
|
|
507
|
+
"null"
|
|
407
508
|
],
|
|
408
509
|
"items": {
|
|
409
510
|
"title": "Specialist Custom Defects Schema",
|
|
@@ -431,32 +532,80 @@
|
|
|
431
532
|
]
|
|
432
533
|
}
|
|
433
534
|
},
|
|
434
|
-
"
|
|
435
|
-
"type":
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
"type": "string"
|
|
439
|
-
},
|
|
440
|
-
"reasons": {
|
|
441
|
-
"type": "array",
|
|
535
|
+
"requiredStandards": {
|
|
536
|
+
"type": [
|
|
537
|
+
"array"
|
|
538
|
+
],
|
|
442
539
|
"items": {
|
|
443
|
-
"
|
|
540
|
+
"title": "Specialist Custom Defects Schema Put",
|
|
541
|
+
"type": "object",
|
|
542
|
+
"properties": {
|
|
543
|
+
"sectionNumber": {
|
|
544
|
+
"type": "string"
|
|
545
|
+
},
|
|
546
|
+
"sectionDescription": {
|
|
547
|
+
"type": "string"
|
|
548
|
+
},
|
|
549
|
+
"additionalNotes": {
|
|
550
|
+
"type": [
|
|
551
|
+
"string",
|
|
552
|
+
"null"
|
|
553
|
+
]
|
|
554
|
+
},
|
|
555
|
+
"rsNumber": {
|
|
556
|
+
"type": "integer"
|
|
557
|
+
},
|
|
558
|
+
"requiredStandard": {
|
|
559
|
+
"type": "string"
|
|
560
|
+
},
|
|
561
|
+
"refCalculation": {
|
|
562
|
+
"type": "string"
|
|
563
|
+
},
|
|
564
|
+
"additionalInfo": {
|
|
565
|
+
"type": "boolean"
|
|
566
|
+
},
|
|
567
|
+
"inspectionTypes": {
|
|
568
|
+
"type": "array",
|
|
569
|
+
"items": {
|
|
570
|
+
"anyOf": [
|
|
571
|
+
{
|
|
572
|
+
"title": "Inspection Type",
|
|
573
|
+
"type": "string",
|
|
574
|
+
"enum": [
|
|
575
|
+
"basic",
|
|
576
|
+
"normal"
|
|
577
|
+
]
|
|
578
|
+
}
|
|
579
|
+
]
|
|
580
|
+
}
|
|
581
|
+
},
|
|
582
|
+
"prs": {
|
|
583
|
+
"type": "boolean"
|
|
584
|
+
}
|
|
585
|
+
},
|
|
586
|
+
"additionalProperties": false,
|
|
587
|
+
"required": [
|
|
588
|
+
"sectionNumber",
|
|
589
|
+
"sectionDescription",
|
|
590
|
+
"rsNumber",
|
|
591
|
+
"requiredStandard",
|
|
592
|
+
"refCalculation",
|
|
593
|
+
"additionalInfo",
|
|
594
|
+
"referenceNumber",
|
|
595
|
+
"prs"
|
|
596
|
+
]
|
|
444
597
|
}
|
|
445
598
|
},
|
|
446
599
|
"testNumber": {
|
|
447
|
-
"type":
|
|
600
|
+
"type": [
|
|
601
|
+
"string",
|
|
602
|
+
"null"
|
|
603
|
+
]
|
|
448
604
|
},
|
|
449
|
-
"
|
|
450
|
-
"
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
"items": {
|
|
454
|
-
"type": "string"
|
|
455
|
-
}
|
|
456
|
-
},
|
|
457
|
-
{
|
|
458
|
-
"type": "null"
|
|
459
|
-
}
|
|
605
|
+
"reapplicationDate": {
|
|
606
|
+
"type": [
|
|
607
|
+
"string",
|
|
608
|
+
"null"
|
|
460
609
|
]
|
|
461
610
|
}
|
|
462
611
|
},
|