@dvsa/cvs-type-definitions 9.2.1 → 9.4.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/required-standards/defects/get/index.json +72 -1
- package/json-schemas/test-type/enums/testTypeClassification.enum.json +6 -2
- package/json-schemas/test-type/get/index.json +6 -2
- package/json-schemas/test-type/nextTestTypesOrCategory.json +6 -2
- package/json-schemas/test-type/testCode.json +84 -3
- package/json-schemas/v1/defect-category-reference-data/index.json +192 -2
- package/json-schemas/v1/tech-record/index.json +19 -1
- package/json-schemas/v1/test/index.json +41 -23
- package/json-schemas/v1/test-result/index.json +41 -23
- package/json-schemas/v1/test-result-test-type/index.json +25 -17
- package/json-schemas/v1/vehicle/index.json +41 -23
- package/json-schemas/v1/vehicle-tech-record/index.json +19 -1
- package/json-schemas/v1/visit/index.json +41 -23
- package/json-schemas/v3/tech-record/get/hgv/complete/index.json +1 -1
- package/json-schemas/v3/tech-record/get/hgv/skeleton/index.json +1 -1
- package/json-schemas/v3/tech-record/get/hgv/testable/index.json +1 -1
- package/json-schemas/v3/tech-record/get/psv/complete/index.json +11 -2
- package/json-schemas/v3/tech-record/get/psv/skeleton/index.json +11 -2
- package/json-schemas/v3/tech-record/get/psv/testable/index.json +11 -2
- package/json-schemas/v3/tech-record/put/hgv/complete/index.json +1 -1
- package/json-schemas/v3/tech-record/put/hgv/skeleton/index.json +1 -1
- package/json-schemas/v3/tech-record/put/hgv/testable/index.json +1 -1
- package/json-schemas/v3/tech-record/put/psv/complete/index.json +11 -2
- package/json-schemas/v3/tech-record/put/psv/skeleton/index.json +11 -2
- package/json-schemas/v3/tech-record/put/psv/testable/index.json +11 -2
- package/package.json +2 -2
- package/types/test-type/enums/testTypeClassification.enum.d.ts +3 -1
- package/types/test-type/enums/testTypeClassification.enum.js +2 -0
- package/types/test-type/enums/testTypeClassification.enum.ts +3 -1
- package/types/test-type/get/index.d.ts +3 -1
- package/types/test-type/nextTestTypesOrCategory.d.ts +3 -1
- package/types/v1/test/index.d.ts +5 -27
- package/types/v1/test-result/index.d.ts +5 -27
- package/types/v1/test-result-test-type/index.d.ts +5 -27
- package/types/v1/vehicle/index.d.ts +5 -27
- package/types/v1/visit/index.d.ts +5 -27
|
@@ -234,7 +234,7 @@
|
|
|
234
234
|
"string",
|
|
235
235
|
"null"
|
|
236
236
|
],
|
|
237
|
-
"maxLength":
|
|
237
|
+
"maxLength": 35
|
|
238
238
|
},
|
|
239
239
|
"techRecord_variantVersionNumber": {
|
|
240
240
|
"type": [
|
|
@@ -836,7 +836,16 @@
|
|
|
836
836
|
"techRecord_brakes_retarderBrakeTwo": {
|
|
837
837
|
"anyOf": [
|
|
838
838
|
{
|
|
839
|
-
"
|
|
839
|
+
"title": "Retarder Brake",
|
|
840
|
+
"type": "string",
|
|
841
|
+
"enum": [
|
|
842
|
+
"electric",
|
|
843
|
+
"exhaust",
|
|
844
|
+
"friction",
|
|
845
|
+
"hydraulic",
|
|
846
|
+
"other",
|
|
847
|
+
"none"
|
|
848
|
+
]
|
|
840
849
|
},
|
|
841
850
|
{
|
|
842
851
|
"type": "null"
|
|
@@ -249,7 +249,7 @@
|
|
|
249
249
|
"string",
|
|
250
250
|
"null"
|
|
251
251
|
],
|
|
252
|
-
"maxLength":
|
|
252
|
+
"maxLength": 35
|
|
253
253
|
},
|
|
254
254
|
"techRecord_variantVersionNumber": {
|
|
255
255
|
"type": [
|
|
@@ -890,7 +890,16 @@
|
|
|
890
890
|
"techRecord_brakes_retarderBrakeTwo": {
|
|
891
891
|
"anyOf": [
|
|
892
892
|
{
|
|
893
|
-
"
|
|
893
|
+
"title": "Retarder Brake",
|
|
894
|
+
"type": "string",
|
|
895
|
+
"enum": [
|
|
896
|
+
"electric",
|
|
897
|
+
"exhaust",
|
|
898
|
+
"friction",
|
|
899
|
+
"hydraulic",
|
|
900
|
+
"other",
|
|
901
|
+
"none"
|
|
902
|
+
]
|
|
894
903
|
},
|
|
895
904
|
{
|
|
896
905
|
"type": "null"
|
|
@@ -223,7 +223,7 @@
|
|
|
223
223
|
"string",
|
|
224
224
|
"null"
|
|
225
225
|
],
|
|
226
|
-
"maxLength":
|
|
226
|
+
"maxLength": 35
|
|
227
227
|
},
|
|
228
228
|
"techRecord_variantVersionNumber": {
|
|
229
229
|
"type": [
|
|
@@ -868,7 +868,16 @@
|
|
|
868
868
|
"techRecord_brakes_retarderBrakeTwo": {
|
|
869
869
|
"anyOf": [
|
|
870
870
|
{
|
|
871
|
-
"
|
|
871
|
+
"title": "Retarder Brake",
|
|
872
|
+
"type": "string",
|
|
873
|
+
"enum": [
|
|
874
|
+
"electric",
|
|
875
|
+
"exhaust",
|
|
876
|
+
"friction",
|
|
877
|
+
"hydraulic",
|
|
878
|
+
"other",
|
|
879
|
+
"none"
|
|
880
|
+
]
|
|
872
881
|
},
|
|
873
882
|
{
|
|
874
883
|
"type": "null"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dvsa/cvs-type-definitions",
|
|
3
|
-
"version": "9.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "9.4.0",
|
|
4
|
+
"description": "Type definitions for CVS VTA and VTM applications",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
7
7
|
"url": "git://github.com/dvsa/cvs-type-definitions.git"
|
|
@@ -6,5 +6,7 @@
|
|
|
6
6
|
export declare enum TestTypeClassification {
|
|
7
7
|
ANNUAL_NO_CERTIFICATE = "Annual NO CERTIFICATE",
|
|
8
8
|
ANNUAL_WITH_CERTIFICATE = "Annual With Certificate",
|
|
9
|
-
NON_ANNUAL = "NON ANNUAL"
|
|
9
|
+
NON_ANNUAL = "NON ANNUAL",
|
|
10
|
+
IVA_WITH_CERTIFICATE = "IVA With Certificate",
|
|
11
|
+
MSVA_WITH_CERTIFICATE = "MSVA With Certificate"
|
|
10
12
|
}
|
|
@@ -12,4 +12,6 @@ var TestTypeClassification;
|
|
|
12
12
|
TestTypeClassification["ANNUAL_NO_CERTIFICATE"] = "Annual NO CERTIFICATE";
|
|
13
13
|
TestTypeClassification["ANNUAL_WITH_CERTIFICATE"] = "Annual With Certificate";
|
|
14
14
|
TestTypeClassification["NON_ANNUAL"] = "NON ANNUAL";
|
|
15
|
+
TestTypeClassification["IVA_WITH_CERTIFICATE"] = "IVA With Certificate";
|
|
16
|
+
TestTypeClassification["MSVA_WITH_CERTIFICATE"] = "MSVA With Certificate";
|
|
15
17
|
})(TestTypeClassification = exports.TestTypeClassification || (exports.TestTypeClassification = {}));
|
|
@@ -8,5 +8,7 @@
|
|
|
8
8
|
export enum TestTypeClassification {
|
|
9
9
|
ANNUAL_NO_CERTIFICATE = "Annual NO CERTIFICATE",
|
|
10
10
|
ANNUAL_WITH_CERTIFICATE = "Annual With Certificate",
|
|
11
|
-
NON_ANNUAL = "NON ANNUAL"
|
|
11
|
+
NON_ANNUAL = "NON ANNUAL",
|
|
12
|
+
IVA_WITH_CERTIFICATE = "IVA With Certificate",
|
|
13
|
+
MSVA_WITH_CERTIFICATE = "MSVA With Certificate"
|
|
12
14
|
}
|
|
@@ -124,5 +124,7 @@ export enum VehicleSubclass {
|
|
|
124
124
|
export enum TestTypeClassification {
|
|
125
125
|
ANNUAL_NO_CERTIFICATE = "Annual NO CERTIFICATE",
|
|
126
126
|
ANNUAL_WITH_CERTIFICATE = "Annual With Certificate",
|
|
127
|
-
NON_ANNUAL = "NON ANNUAL"
|
|
127
|
+
NON_ANNUAL = "NON ANNUAL",
|
|
128
|
+
IVA_WITH_CERTIFICATE = "IVA With Certificate",
|
|
129
|
+
MSVA_WITH_CERTIFICATE = "MSVA With Certificate"
|
|
128
130
|
}
|
|
@@ -120,5 +120,7 @@ export enum VehicleSubclass {
|
|
|
120
120
|
export enum TestTypeClassification {
|
|
121
121
|
ANNUAL_NO_CERTIFICATE = "Annual NO CERTIFICATE",
|
|
122
122
|
ANNUAL_WITH_CERTIFICATE = "Annual With Certificate",
|
|
123
|
-
NON_ANNUAL = "NON ANNUAL"
|
|
123
|
+
NON_ANNUAL = "NON ANNUAL",
|
|
124
|
+
IVA_WITH_CERTIFICATE = "IVA With Certificate",
|
|
125
|
+
MSVA_WITH_CERTIFICATE = "MSVA With Certificate"
|
|
124
126
|
}
|
package/types/v1/test/index.d.ts
CHANGED
|
@@ -292,11 +292,7 @@ export interface TestResultTestTypeSchema {
|
|
|
292
292
|
secondaryCertificateNumber: string | null;
|
|
293
293
|
testTypeStartTimestamp: string | null;
|
|
294
294
|
testTypeEndTimestamp: string | null;
|
|
295
|
-
testResult:
|
|
296
|
-
| {
|
|
297
|
-
[k: string]: unknown;
|
|
298
|
-
}
|
|
299
|
-
| TestResults;
|
|
295
|
+
testResult: TestResults | null;
|
|
300
296
|
prohibitionIssued: boolean | null;
|
|
301
297
|
reasonForAbandoning: string | null;
|
|
302
298
|
additionalNotesRecorded: string | null;
|
|
@@ -307,16 +303,8 @@ export interface TestResultTestTypeSchema {
|
|
|
307
303
|
testExpiryDate?: string;
|
|
308
304
|
testAnniversaryDate?: string | null;
|
|
309
305
|
modType?: ModTypeSchema | string | null;
|
|
310
|
-
emissionStandard?:
|
|
311
|
-
|
|
312
|
-
[k: string]: unknown;
|
|
313
|
-
}
|
|
314
|
-
| EmissionStandards;
|
|
315
|
-
fuelType?:
|
|
316
|
-
| {
|
|
317
|
-
[k: string]: unknown;
|
|
318
|
-
}
|
|
319
|
-
| FuelType;
|
|
306
|
+
emissionStandard?: EmissionStandards | null;
|
|
307
|
+
fuelType?: FuelType | null;
|
|
320
308
|
modificationTypeUsed?: string | null;
|
|
321
309
|
smokeTestKLimitApplied?: string | null;
|
|
322
310
|
particulateTrapFitted?: string | null;
|
|
@@ -327,18 +315,8 @@ export interface TestResultTestTypeSchema {
|
|
|
327
315
|
testNumber?: string | null;
|
|
328
316
|
reapplicationDate?: string | null;
|
|
329
317
|
testCode?: string | null;
|
|
330
|
-
lastUpdatedAt?:
|
|
331
|
-
|
|
332
|
-
| {
|
|
333
|
-
[k: string]: unknown;
|
|
334
|
-
}
|
|
335
|
-
| null;
|
|
336
|
-
createdAt?:
|
|
337
|
-
| string
|
|
338
|
-
| {
|
|
339
|
-
[k: string]: unknown;
|
|
340
|
-
}
|
|
341
|
-
| null;
|
|
318
|
+
lastUpdatedAt?: string | null;
|
|
319
|
+
createdAt?: string | null;
|
|
342
320
|
testTypeClassification?: string | null;
|
|
343
321
|
deletionFlag?: string | null;
|
|
344
322
|
centralDocs?: {
|
|
@@ -75,11 +75,7 @@ export interface TestResultTestTypeSchema {
|
|
|
75
75
|
secondaryCertificateNumber: string | null;
|
|
76
76
|
testTypeStartTimestamp: string | null;
|
|
77
77
|
testTypeEndTimestamp: string | null;
|
|
78
|
-
testResult:
|
|
79
|
-
| {
|
|
80
|
-
[k: string]: unknown;
|
|
81
|
-
}
|
|
82
|
-
| TestResults;
|
|
78
|
+
testResult: TestResults | null;
|
|
83
79
|
prohibitionIssued: boolean | null;
|
|
84
80
|
reasonForAbandoning: string | null;
|
|
85
81
|
additionalNotesRecorded: string | null;
|
|
@@ -90,16 +86,8 @@ export interface TestResultTestTypeSchema {
|
|
|
90
86
|
testExpiryDate?: string;
|
|
91
87
|
testAnniversaryDate?: string | null;
|
|
92
88
|
modType?: ModTypeSchema | string | null;
|
|
93
|
-
emissionStandard?:
|
|
94
|
-
|
|
95
|
-
[k: string]: unknown;
|
|
96
|
-
}
|
|
97
|
-
| EmissionStandards;
|
|
98
|
-
fuelType?:
|
|
99
|
-
| {
|
|
100
|
-
[k: string]: unknown;
|
|
101
|
-
}
|
|
102
|
-
| FuelType;
|
|
89
|
+
emissionStandard?: EmissionStandards | null;
|
|
90
|
+
fuelType?: FuelType | null;
|
|
103
91
|
modificationTypeUsed?: string | null;
|
|
104
92
|
smokeTestKLimitApplied?: string | null;
|
|
105
93
|
particulateTrapFitted?: string | null;
|
|
@@ -110,18 +98,8 @@ export interface TestResultTestTypeSchema {
|
|
|
110
98
|
testNumber?: string | null;
|
|
111
99
|
reapplicationDate?: string | null;
|
|
112
100
|
testCode?: string | null;
|
|
113
|
-
lastUpdatedAt?:
|
|
114
|
-
|
|
115
|
-
| {
|
|
116
|
-
[k: string]: unknown;
|
|
117
|
-
}
|
|
118
|
-
| null;
|
|
119
|
-
createdAt?:
|
|
120
|
-
| string
|
|
121
|
-
| {
|
|
122
|
-
[k: string]: unknown;
|
|
123
|
-
}
|
|
124
|
-
| null;
|
|
101
|
+
lastUpdatedAt?: string | null;
|
|
102
|
+
createdAt?: string | null;
|
|
125
103
|
testTypeClassification?: string | null;
|
|
126
104
|
deletionFlag?: string | null;
|
|
127
105
|
centralDocs?: {
|
|
@@ -15,11 +15,7 @@ export interface TestResultTestTypeSchema {
|
|
|
15
15
|
secondaryCertificateNumber: string | null;
|
|
16
16
|
testTypeStartTimestamp: string | null;
|
|
17
17
|
testTypeEndTimestamp: string | null;
|
|
18
|
-
testResult:
|
|
19
|
-
| {
|
|
20
|
-
[k: string]: unknown;
|
|
21
|
-
}
|
|
22
|
-
| TestResults;
|
|
18
|
+
testResult: TestResults | null;
|
|
23
19
|
prohibitionIssued: boolean | null;
|
|
24
20
|
reasonForAbandoning: string | null;
|
|
25
21
|
additionalNotesRecorded: string | null;
|
|
@@ -30,16 +26,8 @@ export interface TestResultTestTypeSchema {
|
|
|
30
26
|
testExpiryDate?: string;
|
|
31
27
|
testAnniversaryDate?: string | null;
|
|
32
28
|
modType?: ModTypeSchema | string | null;
|
|
33
|
-
emissionStandard?:
|
|
34
|
-
|
|
35
|
-
[k: string]: unknown;
|
|
36
|
-
}
|
|
37
|
-
| EmissionStandards;
|
|
38
|
-
fuelType?:
|
|
39
|
-
| {
|
|
40
|
-
[k: string]: unknown;
|
|
41
|
-
}
|
|
42
|
-
| FuelType;
|
|
29
|
+
emissionStandard?: EmissionStandards | null;
|
|
30
|
+
fuelType?: FuelType | null;
|
|
43
31
|
modificationTypeUsed?: string | null;
|
|
44
32
|
smokeTestKLimitApplied?: string | null;
|
|
45
33
|
particulateTrapFitted?: string | null;
|
|
@@ -50,18 +38,8 @@ export interface TestResultTestTypeSchema {
|
|
|
50
38
|
testNumber?: string | null;
|
|
51
39
|
reapplicationDate?: string | null;
|
|
52
40
|
testCode?: string | null;
|
|
53
|
-
lastUpdatedAt?:
|
|
54
|
-
|
|
55
|
-
| {
|
|
56
|
-
[k: string]: unknown;
|
|
57
|
-
}
|
|
58
|
-
| null;
|
|
59
|
-
createdAt?:
|
|
60
|
-
| string
|
|
61
|
-
| {
|
|
62
|
-
[k: string]: unknown;
|
|
63
|
-
}
|
|
64
|
-
| null;
|
|
41
|
+
lastUpdatedAt?: string | null;
|
|
42
|
+
createdAt?: string | null;
|
|
65
43
|
testTypeClassification?: string | null;
|
|
66
44
|
deletionFlag?: string | null;
|
|
67
45
|
centralDocs?: {
|
|
@@ -284,11 +284,7 @@ export interface TestResultTestTypeSchema {
|
|
|
284
284
|
secondaryCertificateNumber: string | null;
|
|
285
285
|
testTypeStartTimestamp: string | null;
|
|
286
286
|
testTypeEndTimestamp: string | null;
|
|
287
|
-
testResult:
|
|
288
|
-
| {
|
|
289
|
-
[k: string]: unknown;
|
|
290
|
-
}
|
|
291
|
-
| TestResults;
|
|
287
|
+
testResult: TestResults | null;
|
|
292
288
|
prohibitionIssued: boolean | null;
|
|
293
289
|
reasonForAbandoning: string | null;
|
|
294
290
|
additionalNotesRecorded: string | null;
|
|
@@ -299,16 +295,8 @@ export interface TestResultTestTypeSchema {
|
|
|
299
295
|
testExpiryDate?: string;
|
|
300
296
|
testAnniversaryDate?: string | null;
|
|
301
297
|
modType?: ModTypeSchema | string | null;
|
|
302
|
-
emissionStandard?:
|
|
303
|
-
|
|
304
|
-
[k: string]: unknown;
|
|
305
|
-
}
|
|
306
|
-
| EmissionStandards;
|
|
307
|
-
fuelType?:
|
|
308
|
-
| {
|
|
309
|
-
[k: string]: unknown;
|
|
310
|
-
}
|
|
311
|
-
| FuelType;
|
|
298
|
+
emissionStandard?: EmissionStandards | null;
|
|
299
|
+
fuelType?: FuelType | null;
|
|
312
300
|
modificationTypeUsed?: string | null;
|
|
313
301
|
smokeTestKLimitApplied?: string | null;
|
|
314
302
|
particulateTrapFitted?: string | null;
|
|
@@ -319,18 +307,8 @@ export interface TestResultTestTypeSchema {
|
|
|
319
307
|
testNumber?: string | null;
|
|
320
308
|
reapplicationDate?: string | null;
|
|
321
309
|
testCode?: string | null;
|
|
322
|
-
lastUpdatedAt?:
|
|
323
|
-
|
|
324
|
-
| {
|
|
325
|
-
[k: string]: unknown;
|
|
326
|
-
}
|
|
327
|
-
| null;
|
|
328
|
-
createdAt?:
|
|
329
|
-
| string
|
|
330
|
-
| {
|
|
331
|
-
[k: string]: unknown;
|
|
332
|
-
}
|
|
333
|
-
| null;
|
|
310
|
+
lastUpdatedAt?: string | null;
|
|
311
|
+
createdAt?: string | null;
|
|
334
312
|
testTypeClassification?: string | null;
|
|
335
313
|
deletionFlag?: string | null;
|
|
336
314
|
centralDocs?: {
|
|
@@ -305,11 +305,7 @@ export interface TestResultTestTypeSchema {
|
|
|
305
305
|
secondaryCertificateNumber: string | null;
|
|
306
306
|
testTypeStartTimestamp: string | null;
|
|
307
307
|
testTypeEndTimestamp: string | null;
|
|
308
|
-
testResult:
|
|
309
|
-
| {
|
|
310
|
-
[k: string]: unknown;
|
|
311
|
-
}
|
|
312
|
-
| TestResults;
|
|
308
|
+
testResult: TestResults | null;
|
|
313
309
|
prohibitionIssued: boolean | null;
|
|
314
310
|
reasonForAbandoning: string | null;
|
|
315
311
|
additionalNotesRecorded: string | null;
|
|
@@ -320,16 +316,8 @@ export interface TestResultTestTypeSchema {
|
|
|
320
316
|
testExpiryDate?: string;
|
|
321
317
|
testAnniversaryDate?: string | null;
|
|
322
318
|
modType?: ModTypeSchema | string | null;
|
|
323
|
-
emissionStandard?:
|
|
324
|
-
|
|
325
|
-
[k: string]: unknown;
|
|
326
|
-
}
|
|
327
|
-
| EmissionStandards;
|
|
328
|
-
fuelType?:
|
|
329
|
-
| {
|
|
330
|
-
[k: string]: unknown;
|
|
331
|
-
}
|
|
332
|
-
| FuelType;
|
|
319
|
+
emissionStandard?: EmissionStandards | null;
|
|
320
|
+
fuelType?: FuelType | null;
|
|
333
321
|
modificationTypeUsed?: string | null;
|
|
334
322
|
smokeTestKLimitApplied?: string | null;
|
|
335
323
|
particulateTrapFitted?: string | null;
|
|
@@ -340,18 +328,8 @@ export interface TestResultTestTypeSchema {
|
|
|
340
328
|
testNumber?: string | null;
|
|
341
329
|
reapplicationDate?: string | null;
|
|
342
330
|
testCode?: string | null;
|
|
343
|
-
lastUpdatedAt?:
|
|
344
|
-
|
|
345
|
-
| {
|
|
346
|
-
[k: string]: unknown;
|
|
347
|
-
}
|
|
348
|
-
| null;
|
|
349
|
-
createdAt?:
|
|
350
|
-
| string
|
|
351
|
-
| {
|
|
352
|
-
[k: string]: unknown;
|
|
353
|
-
}
|
|
354
|
-
| null;
|
|
331
|
+
lastUpdatedAt?: string | null;
|
|
332
|
+
createdAt?: string | null;
|
|
355
333
|
testTypeClassification?: string | null;
|
|
356
334
|
deletionFlag?: string | null;
|
|
357
335
|
centralDocs?: {
|