@dvsa/cvs-type-definitions 3.0.30 → 3.0.32

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.
@@ -7,7 +7,11 @@
7
7
  "createdTimestamp",
8
8
  "systemNumber",
9
9
  "vin",
10
- "techRecord_vehicleType"
10
+ "techRecord_vehicleType",
11
+ "techRecord_createdAt",
12
+ "techRecord_createdById",
13
+ "techRecord_createdByName",
14
+ "techRecord_reasonForCreation"
11
15
  ],
12
16
  "properties": {
13
17
  "techRecord_applicantDetails_name": {
@@ -87,22 +91,13 @@
87
91
  "type": "string"
88
92
  },
89
93
  "techRecord_createdAt": {
90
- "type": [
91
- "null",
92
- "string"
93
- ]
94
+ "type": "string"
94
95
  },
95
96
  "techRecord_createdById": {
96
- "type": [
97
- "null",
98
- "string"
99
- ]
97
+ "type": "string"
100
98
  },
101
99
  "techRecord_createdByName": {
102
- "type": [
103
- "null",
104
- "string"
105
- ]
100
+ "type": "string"
106
101
  },
107
102
  "techRecord_euVehicleCategory": {
108
103
  "anyOf": [
@@ -178,10 +173,7 @@
178
173
  ]
179
174
  },
180
175
  "techRecord_reasonForCreation": {
181
- "type": [
182
- "null",
183
- "string"
184
- ]
176
+ "type": "string"
185
177
  },
186
178
  "techRecord_regnDate": {
187
179
  "type": [
@@ -6,7 +6,11 @@
6
6
  "createdTimestamp",
7
7
  "systemNumber",
8
8
  "vin",
9
- "techRecord_vehicleType"
9
+ "techRecord_vehicleType",
10
+ "techRecord_reasonForCreation",
11
+ "techRecord_createdAt",
12
+ "techRecord_createdById",
13
+ "techRecord_createdByName"
10
14
  ],
11
15
  "properties": {
12
16
  "techRecord_applicantDetails_name": {
@@ -86,22 +90,13 @@
86
90
  "type": "string"
87
91
  },
88
92
  "techRecord_createdAt": {
89
- "type": [
90
- "null",
91
- "string"
92
- ]
93
+ "type": "string"
93
94
  },
94
95
  "techRecord_createdById": {
95
- "type": [
96
- "null",
97
- "string"
98
- ]
96
+ "type": "string"
99
97
  },
100
98
  "techRecord_createdByName": {
101
- "type": [
102
- "null",
103
- "string"
104
- ]
99
+ "type": "string"
105
100
  },
106
101
  "techRecord_euVehicleCategory": {
107
102
  "anyOf": [
@@ -177,10 +172,7 @@
177
172
  ]
178
173
  },
179
174
  "techRecord_reasonForCreation": {
180
- "type": [
181
- "null",
182
- "string"
183
- ]
175
+ "type": "string"
184
176
  },
185
177
  "techRecord_regnDate": {
186
178
  "type": [
@@ -504,42 +504,27 @@
504
504
  "maxLength": 10
505
505
  },
506
506
  "techRecord_couplingCenterToRearAxleMax": {
507
- "type": [
508
- "integer",
509
- "null"
510
- ],
507
+ "type": "integer",
511
508
  "maximum": 99999,
512
509
  "minimum": 0
513
510
  },
514
511
  "techRecord_couplingCenterToRearAxleMin": {
515
- "type": [
516
- "integer",
517
- "null"
518
- ],
512
+ "type": "integer",
519
513
  "maximum": 99999,
520
514
  "minimum": 0
521
515
  },
522
516
  "techRecord_couplingCenterToRearTrlMax": {
523
- "type": [
524
- "integer",
525
- "null"
526
- ],
517
+ "type": "integer",
527
518
  "maximum": 99999,
528
519
  "minimum": 0
529
520
  },
530
521
  "techRecord_couplingCenterToRearTrlMin": {
531
- "type": [
532
- "integer",
533
- "null"
534
- ],
522
+ "type": "integer",
535
523
  "maximum": 99999,
536
524
  "minimum": 0
537
525
  },
538
526
  "techRecord_couplingType": {
539
- "type": [
540
- "string",
541
- "null"
542
- ],
527
+ "type": "string",
543
528
  "maxLength": 1
544
529
  },
545
530
  "techRecord_createdAt": {
@@ -558,18 +543,12 @@
558
543
  ]
559
544
  },
560
545
  "techRecord_dimensions_length": {
561
- "type": [
562
- "integer",
563
- "null"
564
- ],
546
+ "type": "integer",
565
547
  "maximum": 99999,
566
548
  "minimum": 0
567
549
  },
568
550
  "techRecord_dimensions_width": {
569
- "type": [
570
- "integer",
571
- "null"
572
- ],
551
+ "type": "integer",
573
552
  "maximum": 99999,
574
553
  "minimum": 0
575
554
  },
@@ -646,10 +625,7 @@
646
625
  ]
647
626
  },
648
627
  "techRecord_firstUseDate": {
649
- "type": [
650
- "string",
651
- "null"
652
- ]
628
+ "type": "string"
653
629
  },
654
630
  "techRecord_frameDescription": {
655
631
  "anyOf": [
@@ -674,10 +650,7 @@
674
650
  ]
675
651
  },
676
652
  "techRecord_frontAxleToRearAxle": {
677
- "type": [
678
- "integer",
679
- "null"
680
- ],
653
+ "type": "integer",
681
654
  "maximum": 99999,
682
655
  "minimum": 0
683
656
  },
@@ -785,10 +758,7 @@
785
758
  ]
786
759
  },
787
760
  "techRecord_make": {
788
- "type": [
789
- "string",
790
- "null"
791
- ],
761
+ "type": "string",
792
762
  "maxLength": 50
793
763
  },
794
764
  "techRecord_manufactureYear": {
@@ -828,10 +798,7 @@
828
798
  ]
829
799
  },
830
800
  "techRecord_maxLoadOnCoupling": {
831
- "type": [
832
- "integer",
833
- "null"
834
- ],
801
+ "type": "integer",
835
802
  "minimum": 0,
836
803
  "maximum": 99999
837
804
  },
@@ -924,23 +891,13 @@
924
891
  "maxLength": 4
925
892
  },
926
893
  "techRecord_model": {
927
- "type": [
928
- "string",
929
- "null"
930
- ],
894
+ "type": "string",
931
895
  "maxLength": 30
932
896
  },
933
897
  "techRecord_noOfAxles": {
934
- "anyOf": [
935
- {
936
- "type": "integer",
937
- "minimum": 0,
938
- "maximum": 99
939
- },
940
- {
941
- "type": "null"
942
- }
943
- ]
898
+ "type": "integer",
899
+ "minimum": 0,
900
+ "maximum": 99
944
901
  },
945
902
  "techRecord_notes": {
946
903
  "type": "string"
@@ -1154,10 +1111,7 @@
1154
1111
  ]
1155
1112
  },
1156
1113
  "techRecord_rearAxleToRearTrl": {
1157
- "type": [
1158
- "integer",
1159
- "null"
1160
- ],
1114
+ "type": "integer",
1161
1115
  "maximum": 99999,
1162
1116
  "minimum": 0
1163
1117
  },
@@ -1183,10 +1137,7 @@
1183
1137
  ]
1184
1138
  },
1185
1139
  "techRecord_roadFriendly": {
1186
- "type": [
1187
- "boolean",
1188
- "null"
1189
- ]
1140
+ "type": "boolean"
1190
1141
  },
1191
1142
  "techRecord_speedLimiterMrk": {
1192
1143
  "type": [
@@ -1210,17 +1161,11 @@
1210
1161
  ]
1211
1162
  },
1212
1163
  "techRecord_suspensionType": {
1213
- "type": [
1214
- "string",
1215
- "null"
1216
- ],
1164
+ "type": "string",
1217
1165
  "maxLength": 1
1218
1166
  },
1219
1167
  "techRecord_tyreUseCode": {
1220
- "type": [
1221
- "string",
1222
- "null"
1223
- ],
1168
+ "type": "string",
1224
1169
  "maxLength": 2
1225
1170
  },
1226
1171
  "techRecord_variantNumber": {
@@ -1256,28 +1201,21 @@
1256
1201
  ]
1257
1202
  },
1258
1203
  "techRecord_vehicleConfiguration": {
1259
- "anyOf": [
1260
- {
1261
- "title": "Vehicle Configuration",
1262
- "type": "string",
1263
- "enum": [
1264
- "rigid",
1265
- "articulated",
1266
- "centre axle drawbar",
1267
- "semi-car transporter",
1268
- "semi-trailer",
1269
- "long semi-trailer",
1270
- "low loader",
1271
- "other",
1272
- "drawbar",
1273
- "four-in-line",
1274
- "dolly",
1275
- "full drawbar"
1276
- ]
1277
- },
1278
- {
1279
- "type": "null"
1280
- }
1204
+ "title": "Vehicle Configuration",
1205
+ "type": "string",
1206
+ "enum": [
1207
+ "rigid",
1208
+ "articulated",
1209
+ "centre axle drawbar",
1210
+ "semi-car transporter",
1211
+ "semi-trailer",
1212
+ "long semi-trailer",
1213
+ "low loader",
1214
+ "other",
1215
+ "drawbar",
1216
+ "four-in-line",
1217
+ "dolly",
1218
+ "full drawbar"
1281
1219
  ]
1282
1220
  },
1283
1221
  "techRecord_vehicleType": {
@@ -850,9 +850,6 @@
850
850
  "type": "integer",
851
851
  "minimum": 0,
852
852
  "maximum": 99
853
- },
854
- {
855
- "type": "null"
856
853
  }
857
854
  ]
858
855
  },
@@ -1143,9 +1140,6 @@
1143
1140
  "dolly",
1144
1141
  "full drawbar"
1145
1142
  ]
1146
- },
1147
- {
1148
- "type": "null"
1149
1143
  }
1150
1144
  ]
1151
1145
  },
@@ -6,7 +6,8 @@
6
6
  "techRecord_vehicleSubclass",
7
7
  "vin",
8
8
  "techRecord_vehicleType",
9
- "techRecord_statusCode"
9
+ "techRecord_statusCode",
10
+ "techRecord_reasonForCreation"
10
11
  ],
11
12
  "properties": {
12
13
  "vin": {
@@ -109,10 +110,7 @@
109
110
  ]
110
111
  },
111
112
  "techRecord_reasonForCreation": {
112
- "type": [
113
- "string",
114
- "null"
115
- ]
113
+ "type": "string"
116
114
  },
117
115
  "techRecord_vehicleType": {
118
116
  "const": "lgv"
@@ -5,7 +5,8 @@
5
5
  "required": [
6
6
  "vin",
7
7
  "techRecord_vehicleType",
8
- "techRecord_statusCode"
8
+ "techRecord_statusCode",
9
+ "techRecord_reasonForCreation"
9
10
  ],
10
11
  "properties": {
11
12
  "vin": {
@@ -14,12 +15,6 @@
14
15
  "primaryVrm": {
15
16
  "type": "string"
16
17
  },
17
- "trailerId": {
18
- "type": [
19
- "string",
20
- "null"
21
- ]
22
- },
23
18
  "techRecord_applicantDetails_name": {
24
19
  "type": [
25
20
  "string",
@@ -109,8 +104,7 @@
109
104
  },
110
105
  "techRecord_reasonForCreation": {
111
106
  "type": [
112
- "string",
113
- "null"
107
+ "string"
114
108
  ]
115
109
  },
116
110
  "techRecord_vehicleType": {
@@ -152,15 +146,6 @@
152
146
  "techRecord_updateType": {
153
147
  "type": "string"
154
148
  },
155
- "techRecord_createdAt": {
156
- "type": "string"
157
- },
158
- "techRecord_createdById": {
159
- "type": "string"
160
- },
161
- "techRecord_createdByName": {
162
- "type": "string"
163
- },
164
149
  "secondaryVrms": {
165
150
  "type": "array",
166
151
  "items": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dvsa/cvs-type-definitions",
3
- "version": "3.0.30",
3
+ "version": "3.0.32",
4
4
  "description": "type definitions for cvs vta application",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -53,9 +53,9 @@ export interface TechRecordGETLGVComplete {
53
53
  partialVin?: null | string;
54
54
  primaryVrm?: null | string;
55
55
  systemNumber: string;
56
- techRecord_createdAt?: null | string;
57
- techRecord_createdById?: null | string;
58
- techRecord_createdByName?: null | string;
56
+ techRecord_createdAt: string;
57
+ techRecord_createdById: string;
58
+ techRecord_createdByName: string;
59
59
  techRecord_euVehicleCategory?: null | EUVehicleCategory;
60
60
  techRecord_lastUpdatedAt?: string | null;
61
61
  techRecord_lastUpdatedById?: string | null;
@@ -64,7 +64,7 @@ export interface TechRecordGETLGVComplete {
64
64
  techRecord_recordCompleteness?: null | string;
65
65
  techRecord_noOfAxles?: null | number;
66
66
  techRecord_notes?: null | string;
67
- techRecord_reasonForCreation?: null | string;
67
+ techRecord_reasonForCreation: string;
68
68
  techRecord_regnDate?: string | null;
69
69
  techRecord_statusCode?: null | StatusCode;
70
70
  techRecord_vehicleConfiguration?: null | VehicleConfiguration;
@@ -53,9 +53,9 @@ export interface TechRecordGETLGVSkeleton {
53
53
  partialVin?: null | string;
54
54
  primaryVrm?: null | string;
55
55
  systemNumber: string;
56
- techRecord_createdAt?: null | string;
57
- techRecord_createdById?: null | string;
58
- techRecord_createdByName?: null | string;
56
+ techRecord_createdAt: string;
57
+ techRecord_createdById: string;
58
+ techRecord_createdByName: string;
59
59
  techRecord_euVehicleCategory?: null | EUVehicleCategory;
60
60
  techRecord_lastUpdatedAt?: string | null;
61
61
  techRecord_lastUpdatedById?: string | null;
@@ -64,7 +64,7 @@ export interface TechRecordGETLGVSkeleton {
64
64
  techRecord_recordCompleteness?: null | string;
65
65
  techRecord_noOfAxles?: null | number;
66
66
  techRecord_notes?: null | string;
67
- techRecord_reasonForCreation?: null | string;
67
+ techRecord_reasonForCreation: string;
68
68
  techRecord_regnDate?: string | null;
69
69
  techRecord_statusCode?: null | StatusCode;
70
70
  techRecord_vehicleConfiguration?: null | VehicleConfiguration;
@@ -245,26 +245,26 @@ export interface TechRecordGETTRLComplete {
245
245
  techRecord_brakes_loadSensingValve?: boolean | null;
246
246
  techRecord_centreOfRearmostAxleToRearOfTrl?: number | null;
247
247
  techRecord_conversionRefNo?: string | null;
248
- techRecord_couplingCenterToRearAxleMax: number | null;
249
- techRecord_couplingCenterToRearAxleMin: number | null;
250
- techRecord_couplingCenterToRearTrlMax: number | null;
251
- techRecord_couplingCenterToRearTrlMin: number | null;
252
- techRecord_couplingType: string | null;
248
+ techRecord_couplingCenterToRearAxleMax: number;
249
+ techRecord_couplingCenterToRearAxleMin: number;
250
+ techRecord_couplingCenterToRearTrlMax: number;
251
+ techRecord_couplingCenterToRearTrlMin: number;
252
+ techRecord_couplingType: string;
253
253
  techRecord_createdAt: string;
254
254
  techRecord_createdById: string;
255
255
  techRecord_createdByName: string;
256
256
  techRecord_departmentalVehicleMarker?: boolean | null;
257
- techRecord_dimensions_length: number | null;
258
- techRecord_dimensions_width: number | null;
257
+ techRecord_dimensions_length: number;
258
+ techRecord_dimensions_width: number;
259
259
  drawbarCouplingFitted?: null | string;
260
260
  techRecord_emissionsLimit?: null | number;
261
261
  techRecord_euVehicleCategory: EUVehicleCategory;
262
262
  techRecord_euroStandard?: null | EuroStandard;
263
263
  frontAxleTo5thWheelMax?: number | null;
264
264
  techRecord_frontAxleTo5thWheelMin?: number | null;
265
- techRecord_firstUseDate: string | null;
265
+ techRecord_firstUseDate: string;
266
266
  techRecord_frameDescription?: FrameDescription | null;
267
- techRecord_frontAxleToRearAxle: number | null;
267
+ techRecord_frontAxleToRearAxle: number;
268
268
  techRecord_frontVehicleTo5thWheelCouplingMax?: string | null;
269
269
  techRecord_frontVehicleTo5thWheelCouplingMin?: string | null;
270
270
  techRecord_fuelPropulsionSystem?: FuelPropulsionSystem;
@@ -276,19 +276,19 @@ export interface TechRecordGETTRLComplete {
276
276
  techRecord_letterOfAuth_letterDateRequested?: string | null;
277
277
  techRecord_letterOfAuth_paragraphId?: null | ParagraphIds;
278
278
  techRecord_letterOfAuth_letterIssuer?: string | null;
279
- techRecord_make: string | null;
279
+ techRecord_make: string;
280
280
  techRecord_manufactureYear?: number | null;
281
281
  techRecord_maxTrainDesignWeight?: null | number;
282
282
  techRecord_maxTrainEecWeight?: null | number;
283
283
  techRecord_maxTrainGbWeight?: null | number;
284
284
  techRecord_manufacturerDetails?: string | null;
285
- techRecord_maxLoadOnCoupling: number | null;
285
+ techRecord_maxLoadOnCoupling: number;
286
286
  techRecord_microfilm?: string | null;
287
287
  techRecord_microfilm_microfilmDocumentType?: null | MicrofilmDocumentType;
288
288
  techRecord_microfilm_microfilmRollNumber?: string | null;
289
289
  techRecord_microfilm_microfilmSerialNumber?: string | null;
290
- techRecord_model: string | null;
291
- techRecord_noOfAxles: number | null;
290
+ techRecord_model: string;
291
+ techRecord_noOfAxles: number;
292
292
  techRecord_notes: string;
293
293
  techRecord_ntaNumber?: null | string;
294
294
  techRecord_numberOfWheelsDriven?: number | null;
@@ -317,21 +317,21 @@ export interface TechRecordGETTRLComplete {
317
317
  techRecord_lastUpdatedAt?: string | null;
318
318
  techRecord_lastUpdatedByName?: string | null;
319
319
  techRecord_lastUpdatedById?: string | null;
320
- techRecord_rearAxleToRearTrl: number | null;
320
+ techRecord_rearAxleToRearTrl: number;
321
321
  techRecord_reasonForCreation: string;
322
322
  techRecord_recordCompleteness: "complete";
323
323
  techRecord_regnDate?: string | null;
324
- techRecord_roadFriendly: boolean | null;
324
+ techRecord_roadFriendly: boolean;
325
325
  techRecord_speedLimiterMrk?: null | boolean;
326
326
  techRecord_statusCode: StatusCode;
327
327
  techRecord_tachoExemptMrk?: null | boolean;
328
- techRecord_suspensionType: string | null;
329
- techRecord_tyreUseCode: string | null;
328
+ techRecord_suspensionType: string;
329
+ techRecord_tyreUseCode: string;
330
330
  techRecord_variantNumber?: null | string;
331
331
  techRecord_variantVersionNumber?: null | string;
332
332
  techRecord_vehicleClass_code: string;
333
333
  techRecord_vehicleClass_description: VehicleClassDescription;
334
- techRecord_vehicleConfiguration: VehicleConfiguration | null;
334
+ techRecord_vehicleConfiguration: VehicleConfiguration;
335
335
  techRecord_vehicleType: "trl";
336
336
  trailerId: string;
337
337
  vin: string;
@@ -260,7 +260,7 @@ export interface TechRecordGETTRLTestable {
260
260
  techRecord_microfilm_microfilmRollNumber?: string | null;
261
261
  techRecord_microfilm_microfilmSerialNumber?: string | null;
262
262
  techRecord_model?: string | null;
263
- techRecord_noOfAxles: number | null;
263
+ techRecord_noOfAxles: number;
264
264
  techRecord_plates?: null | TRLPlates[];
265
265
  techRecord_purchaserDetails_address1?: string | null;
266
266
  techRecord_purchaserDetails_address2?: string | null;
@@ -295,7 +295,7 @@ export interface TechRecordGETTRLTestable {
295
295
  techRecord_tyreUseCode?: string | null;
296
296
  techRecord_vehicleClass_code: string;
297
297
  techRecord_vehicleClass_description: VehicleClassDescription;
298
- techRecord_vehicleConfiguration: VehicleConfiguration | null;
298
+ techRecord_vehicleConfiguration: VehicleConfiguration;
299
299
  techRecord_vehicleType: "trl";
300
300
  trailerId: string;
301
301
  vin: string;
@@ -40,7 +40,7 @@ export interface TechRecordPUTLGVComplete {
40
40
  techRecord_applicantDetails_telephoneNumber?: null | string;
41
41
  techRecord_applicantDetails_emailAddress?: null | string;
42
42
  techRecord_euVehicleCategory?: EUVehicleCategory | null;
43
- techRecord_reasonForCreation?: string | null;
43
+ techRecord_reasonForCreation: string;
44
44
  techRecord_vehicleType: "lgv";
45
45
  techRecord_statusCode: StatusCode;
46
46
  techRecord_regnDate?: string | null;
@@ -30,7 +30,6 @@ export type VehicleSubclass = ("n" | "p" | "a" | "s" | "c" | "l" | "t" | "e" | "
30
30
  export interface TechRecordPUTLGVSkeleton {
31
31
  vin: string;
32
32
  primaryVrm?: string;
33
- trailerId?: string | null;
34
33
  techRecord_applicantDetails_name?: string | null;
35
34
  techRecord_applicantDetails_address1?: null | string;
36
35
  techRecord_applicantDetails_address2?: null | string;
@@ -40,7 +39,7 @@ export interface TechRecordPUTLGVSkeleton {
40
39
  techRecord_applicantDetails_telephoneNumber?: null | string;
41
40
  techRecord_applicantDetails_emailAddress?: null | string;
42
41
  techRecord_euVehicleCategory?: EUVehicleCategory | null;
43
- techRecord_reasonForCreation?: string | null;
42
+ techRecord_reasonForCreation: string;
44
43
  techRecord_vehicleType: "lgv";
45
44
  techRecord_statusCode: StatusCode;
46
45
  techRecord_regnDate?: string | null;
@@ -49,9 +48,6 @@ export interface TechRecordPUTLGVSkeleton {
49
48
  techRecord_notes?: string;
50
49
  techRecord_hiddenInVta?: boolean;
51
50
  techRecord_updateType?: string;
52
- techRecord_createdAt?: string;
53
- techRecord_createdById?: string;
54
- techRecord_createdByName?: string;
55
51
  secondaryVrms?: string[];
56
52
  techRecord_vehicleSubclass?: VehicleSubclass;
57
53
  }