@dvsa/cvs-type-definitions 2.1.21 → 3.0.1

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 (69) hide show
  1. package/json-schemas/v3/tech-record/get/car/complete/index.json +1 -1
  2. package/json-schemas/v3/tech-record/get/car/skeleton/index.json +1 -1
  3. package/json-schemas/v3/tech-record/get/hgv/complete/index.json +1 -1
  4. package/json-schemas/v3/tech-record/get/hgv/skeleton/index.json +1 -1
  5. package/json-schemas/v3/tech-record/get/hgv/testable/index.json +1 -1
  6. package/json-schemas/v3/tech-record/get/lgv/complete/index.json +1 -1
  7. package/json-schemas/v3/tech-record/get/lgv/skeleton/index.json +1 -1
  8. package/json-schemas/v3/tech-record/get/motorcycle/complete/index.json +1 -1
  9. package/json-schemas/v3/tech-record/get/motorcycle/skeleton/index.json +1 -1
  10. package/json-schemas/v3/tech-record/get/psv/complete/index.json +1 -1
  11. package/json-schemas/v3/tech-record/get/psv/skeleton/index.json +1 -1
  12. package/json-schemas/v3/tech-record/get/psv/testable/index.json +1 -1
  13. package/json-schemas/v3/tech-record/get/search/complete/index.json +1 -1
  14. package/json-schemas/v3/tech-record/get/search/skeleton/index.json +1 -1
  15. package/json-schemas/v3/tech-record/get/trl/complete/index.json +1 -1
  16. package/json-schemas/v3/tech-record/get/trl/skeleton/index.json +1 -1
  17. package/json-schemas/v3/tech-record/get/trl/testable/index.json +1 -1
  18. package/json-schemas/v3/tech-record/put/car/complete/index.json +1 -1
  19. package/json-schemas/v3/tech-record/put/car/skeleton/index.json +1 -1
  20. package/json-schemas/v3/tech-record/put/hgv/complete/index.json +1 -1
  21. package/json-schemas/v3/tech-record/put/hgv/skeleton/index.json +1 -1
  22. package/json-schemas/v3/tech-record/put/hgv/testable/index.json +1 -1
  23. package/json-schemas/v3/tech-record/put/lgv/complete/index.json +1 -1
  24. package/json-schemas/v3/tech-record/put/lgv/skeleton/index.json +1 -1
  25. package/json-schemas/v3/tech-record/put/motorcycle/complete/index.json +1 -1
  26. package/json-schemas/v3/tech-record/put/motorcycle/skeleton/index.json +1 -1
  27. package/json-schemas/v3/tech-record/put/psv/complete/index.json +1 -1
  28. package/json-schemas/v3/tech-record/put/psv/skeleton/index.json +1 -1
  29. package/json-schemas/v3/tech-record/put/psv/testable/index.json +1 -1
  30. package/json-schemas/v3/tech-record/put/trl/complete/index.json +1 -1
  31. package/json-schemas/v3/tech-record/put/trl/skeleton/index.json +1 -1
  32. package/json-schemas/v3/tech-record/put/trl/testable/index.json +1 -1
  33. package/package.json +1 -1
  34. package/types/v3/tech-record/get/car/complete/index.d.ts +1 -1
  35. package/types/v3/tech-record/get/car/skeleton/index.d.ts +1 -1
  36. package/types/v3/tech-record/get/hgv/complete/index.d.ts +1 -1
  37. package/types/v3/tech-record/get/hgv/skeleton/index.d.ts +1 -1
  38. package/types/v3/tech-record/get/hgv/testable/index.d.ts +1 -1
  39. package/types/v3/tech-record/get/lgv/complete/index.d.ts +1 -1
  40. package/types/v3/tech-record/get/lgv/skeleton/index.d.ts +1 -1
  41. package/types/v3/tech-record/get/motorcycle/complete/index.d.ts +1 -1
  42. package/types/v3/tech-record/get/motorcycle/skeleton/index.d.ts +1 -1
  43. package/types/v3/tech-record/get/psv/complete/index.d.ts +1 -1
  44. package/types/v3/tech-record/get/psv/skeleton/index.d.ts +1 -1
  45. package/types/v3/tech-record/get/psv/testable/index.d.ts +1 -1
  46. package/types/v3/tech-record/get/search/complete/index.d.ts +1 -1
  47. package/types/v3/tech-record/get/search/skeleton/index.d.ts +1 -1
  48. package/types/v3/tech-record/get/trl/complete/index.d.ts +1 -1
  49. package/types/v3/tech-record/get/trl/skeleton/index.d.ts +1 -1
  50. package/types/v3/tech-record/get/trl/testable/index.d.ts +1 -1
  51. package/types/v3/tech-record/put/car/complete/index.d.ts +1 -1
  52. package/types/v3/tech-record/put/car/skeleton/index.d.ts +1 -1
  53. package/types/v3/tech-record/put/hgv/complete/index.d.ts +1 -1
  54. package/types/v3/tech-record/put/hgv/skeleton/index.d.ts +1 -1
  55. package/types/v3/tech-record/put/hgv/testable/index.d.ts +1 -1
  56. package/types/v3/tech-record/put/lgv/complete/index.d.ts +1 -1
  57. package/types/v3/tech-record/put/lgv/skeleton/index.d.ts +1 -1
  58. package/types/v3/tech-record/put/motorcycle/complete/index.d.ts +1 -1
  59. package/types/v3/tech-record/put/motorcycle/skeleton/index.d.ts +1 -1
  60. package/types/v3/tech-record/put/psv/complete/index.d.ts +1 -1
  61. package/types/v3/tech-record/put/psv/skeleton/index.d.ts +1 -1
  62. package/types/v3/tech-record/put/psv/testable/index.d.ts +1 -1
  63. package/types/v3/tech-record/put/trl/complete/index.d.ts +1 -1
  64. package/types/v3/tech-record/put/trl/skeleton/index.d.ts +1 -1
  65. package/types/v3/tech-record/put/trl/testable/index.d.ts +1 -1
  66. package/types/v3/tech-record/tech-record-status.d.ts +75 -0
  67. package/types/v3/tech-record/tech-record-vehicle-type.d.ts +80 -0
  68. package/types/v3/tech-record/tech-record-verb-vehicle-type.d.ts +112 -0
  69. package/types/v3/tech-record/tech-record-verb.d.ts +32 -0
@@ -1,5 +1,5 @@
1
1
  {
2
- "title": "Tech Record Complete Car Schema",
2
+ "title": "Tech Record GET Car Complete",
3
3
  "type": "object",
4
4
  "additionalProperties": false,
5
5
  "required": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "title": "Tech Record Skeleton Car Schema",
2
+ "title": "Tech Record GET Car Skeleton",
3
3
  "type": "object",
4
4
  "additionalProperties": false,
5
5
  "required": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "title": "GET HGV Technical Record V3 Complete",
2
+ "title": "Tech Record GET HGV Complete",
3
3
  "type": "object",
4
4
  "additionalProperties": false,
5
5
  "required": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "title": "GET HGV Technical Record V3 Skeleton",
2
+ "title": "Tech Record GET HGV Skeleton",
3
3
  "type": "object",
4
4
  "additionalProperties": false,
5
5
  "required": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "title": "GET HGV Technical Record V3 Testable",
2
+ "title": "Tech Record GET HGV Testable",
3
3
  "type": "object",
4
4
  "additionalProperties": false,
5
5
  "required": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "title": "Tech Record Complete LGV Schema",
2
+ "title": "Tech Record GET LGV Complete",
3
3
  "type": "object",
4
4
  "additionalProperties": false,
5
5
  "required": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "title": "Tech Record Skeleton Car Schema",
2
+ "title": "Tech Record GET LGV Skeleton",
3
3
  "type": "object",
4
4
  "additionalProperties": false,
5
5
  "required": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "title": "Tech Record Complete Motorcycle Schema",
2
+ "title": "Tech Record GET Motorcycle Complete",
3
3
  "type": "object",
4
4
  "additionalProperties": false,
5
5
  "required": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "title": "Tech Record Skeleton Motorcycle Schema",
2
+ "title": "Tech Record GET Motorcycle Skeleton",
3
3
  "type": "object",
4
4
  "additionalProperties": false,
5
5
  "required": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "title": "GET PSV Technical Record V3 Complete",
2
+ "title": "Tech Record GET PSV Complete",
3
3
  "type": "object",
4
4
  "additionalProperties": false,
5
5
  "required": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "title": "GET PSV Technical Record V3 Skeleton",
2
+ "title": "Tech Record GET PSV Skeleton",
3
3
  "type": "object",
4
4
  "additionalProperties": false,
5
5
  "required": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "title": "GET PSV Technical Record V3 Testable",
2
+ "title": "Tech Record GET PSV Testable",
3
3
  "type": "object",
4
4
  "additionalProperties": false,
5
5
  "required": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "title": "Tech Record Search Complete Car Schema",
2
+ "title": "Tech Record Search Complete Schema",
3
3
  "type": "object",
4
4
  "additionalProperties": true,
5
5
  "required": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "title": "Tech Record Search Skeleton Car Schema",
2
+ "title": "Tech Record Search Skeleton Schema",
3
3
  "type": "object",
4
4
  "additionalProperties": false,
5
5
  "required": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "title": "GET TRL Technical Record V3 Complete",
2
+ "title": "Tech Record GET TRL Complete",
3
3
  "type": "object",
4
4
  "additionalProperties": false,
5
5
  "required": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "title": "GET TRL Technical Record V3 Skeleton",
2
+ "title": "Tech Record GET TRL Skeleton",
3
3
  "type": "object",
4
4
  "additionalProperties": false,
5
5
  "required": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "title": "GET TRL Technical Record V3 Testable",
2
+ "title": "Tech Record GET TRL Testable",
3
3
  "type": "object",
4
4
  "additionalProperties": false,
5
5
  "required": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "title": "Tech Record PUT Request Complete Car Schema",
2
+ "title": "Tech Record PUT Car Complete",
3
3
  "type": "object",
4
4
  "additionalProperties": false,
5
5
  "required": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "title": "Tech Record PUT Request Skeleton Car Schema",
2
+ "title": "Tech Record PUT Car Skeleton",
3
3
  "type": "object",
4
4
  "additionalProperties": false,
5
5
  "required": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "title": "PUT HGV Technical Record V3 Complete",
2
+ "title": "Tech Record PUT HGV Complete",
3
3
  "type": "object",
4
4
  "additionalProperties": false,
5
5
  "required": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "title": "PUT HGV Technical Record V3 Skeleton",
2
+ "title": "Tech Record PUT HGV Skeleton",
3
3
  "type": "object",
4
4
  "additionalProperties": false,
5
5
  "required": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "title": "PUT HGV Technical Record V3 Testable",
2
+ "title": "Tech Record PUT HGV Testable",
3
3
  "type": "object",
4
4
  "additionalProperties": false,
5
5
  "required": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "title": "Tech Record Complete LGV Schema",
2
+ "title": "Tech Record PUT LGV Complete",
3
3
  "type": "object",
4
4
  "additionalProperties": false,
5
5
  "required": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "title": "Tech Record Complete Car Schema",
2
+ "title": "Tech Record PUT LGV Skeleton",
3
3
  "type": "object",
4
4
  "additionalProperties": false,
5
5
  "required": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "title": "PUT Tech Record Complete Motorcycle Schema",
2
+ "title": "Tech Record PUT Motorcycle Complete",
3
3
  "type": "object",
4
4
  "additionalProperties": false,
5
5
  "required": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "title": "PUT Tech Record Skeleton Motorcycle Schema",
2
+ "title": "Tech Record PUT Motorcycle Skeleton",
3
3
  "type": "object",
4
4
  "additionalProperties": false,
5
5
  "required": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "title": "PUT PSV Technical Record V3 Complete",
2
+ "title": "Tech Record PUT PSV Complete",
3
3
  "type": "object",
4
4
  "additionalProperties": false,
5
5
  "required": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "title": "PUT PSV Technical Record V3 Skeleton",
2
+ "title": "Tech Record PUT PSV Skeleton",
3
3
  "type": "object",
4
4
  "additionalProperties": false,
5
5
  "required": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "title": "PUT PSV Technical Record V3 Testable",
2
+ "title": "Tech Record PUT PSV Testable",
3
3
  "type": "object",
4
4
  "additionalProperties": false,
5
5
  "required": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "title": "PUT TRL Technical Record V3 Complete",
2
+ "title": "Tech Record PUT TRL Complete",
3
3
  "type": "object",
4
4
  "additionalProperties": false,
5
5
  "required": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "title": "PUT TRL Technical Record V3 Skeleton",
2
+ "title": "Tech Record PUT TRL Skeleton",
3
3
  "type": "object",
4
4
  "additionalProperties": false,
5
5
  "required": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "title": "GET TRL Technical Record V3 Testable",
2
+ "title": "Tech Record PUT TRL Testable",
3
3
  "type": "object",
4
4
  "additionalProperties": false,
5
5
  "required": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dvsa/cvs-type-definitions",
3
- "version": "2.1.21",
3
+ "version": "3.0.1",
4
4
  "description": "type definitions for cvs vta application",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -41,7 +41,7 @@ export type VehicleConfiguration =
41
41
  export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
42
42
  export type VehicleSubclass = ("n" | "p" | "a" | "s" | "c" | "l" | "t" | "e" | "m" | "r" | "w")[];
43
43
 
44
- export interface TechRecordCompleteCarSchema {
44
+ export interface TechRecordGETCarComplete {
45
45
  techRecord_applicantDetails_name?: string | null;
46
46
  techRecord_applicantDetails_address1?: null | string;
47
47
  techRecord_applicantDetails_address2?: null | string;
@@ -40,7 +40,7 @@ export type VehicleConfiguration =
40
40
  | "full drawbar";
41
41
  export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
42
42
 
43
- export interface TechRecordSkeletonCarSchema {
43
+ export interface TechRecordGETCarSkeleton {
44
44
  techRecord_applicantDetails_name?: string | null;
45
45
  techRecord_applicantDetails_address1?: null | string;
46
46
  techRecord_applicantDetails_address2?: null | string;
@@ -142,7 +142,7 @@ export type ApprovalType =
142
142
  | "IVA - VCA"
143
143
  | "IVA - DVSA/NI";
144
144
 
145
- export interface GETHGVTechnicalRecordV3Complete {
145
+ export interface TechRecordGETHGVComplete {
146
146
  secondaryVrms?: string[];
147
147
  createdTimestamp: string;
148
148
  partialVin: string;
@@ -142,7 +142,7 @@ export type ApprovalType =
142
142
  | "IVA - VCA"
143
143
  | "IVA - DVSA/NI";
144
144
 
145
- export interface GETHGVTechnicalRecordV3Skeleton {
145
+ export interface TechRecordGETHGVSkeleton {
146
146
  secondaryVrms?: string[];
147
147
  createdTimestamp: string;
148
148
  partialVin: string;
@@ -142,7 +142,7 @@ export type ApprovalType =
142
142
  | "IVA - VCA"
143
143
  | "IVA - DVSA/NI";
144
144
 
145
- export interface GETHGVTechnicalRecordV3Testable {
145
+ export interface TechRecordGETHGVTestable {
146
146
  secondaryVrms?: string[];
147
147
  createdTimestamp: string;
148
148
  partialVin: string;
@@ -41,7 +41,7 @@ export type VehicleConfiguration =
41
41
  export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
42
42
  export type VehicleSubclass = ("n" | "p" | "a" | "s" | "c" | "l" | "t" | "e" | "m" | "r" | "w")[];
43
43
 
44
- export interface TechRecordCompleteLGVSchema {
44
+ export interface TechRecordGETLGVComplete {
45
45
  techRecord_applicantDetails_name?: string | null;
46
46
  techRecord_applicantDetails_address1?: null | string;
47
47
  techRecord_applicantDetails_address2?: null | string;
@@ -40,7 +40,7 @@ export type VehicleConfiguration =
40
40
  | "full drawbar";
41
41
  export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
42
42
 
43
- export interface TechRecordSkeletonCarSchema {
43
+ export interface TechRecordGETLGVSkeleton {
44
44
  techRecord_applicantDetails_name?: string | null;
45
45
  techRecord_applicantDetails_address1?: null | string;
46
46
  techRecord_applicantDetails_address2?: null | string;
@@ -41,7 +41,7 @@ export type VehicleConfiguration =
41
41
  export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
42
42
  export type VehicleSubclass = ("n" | "p" | "a" | "s" | "c" | "l" | "t" | "e" | "m" | "r" | "w")[];
43
43
 
44
- export interface TechRecordCompleteMotorcycleSchema {
44
+ export interface TechRecordGETMotorcycleComplete {
45
45
  secondaryVrms?: string[];
46
46
  techRecord_applicantDetails_name?: string | null;
47
47
  techRecord_applicantDetails_address1?: null | string;
@@ -40,7 +40,7 @@ export type VehicleConfiguration =
40
40
  | "full drawbar";
41
41
  export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
42
42
 
43
- export interface TechRecordSkeletonMotorcycleSchema {
43
+ export interface TechRecordGETMotorcycleSkeleton {
44
44
  techRecord_applicantDetails_name?: string | null;
45
45
  techRecord_applicantDetails_address1?: null | string;
46
46
  techRecord_applicantDetails_address2?: null | string;
@@ -183,7 +183,7 @@ export type MicrofilmDocumentType =
183
183
  | "PRT - Tr Plating Cert paid"
184
184
  | "Tempo 100 Permit";
185
185
 
186
- export interface GETPSVTechnicalRecordV3Complete {
186
+ export interface TechRecordGETPSVComplete {
187
187
  secondaryVrms?: string[];
188
188
  vin: string;
189
189
  partialVin?: string;
@@ -183,7 +183,7 @@ export type MicrofilmDocumentType =
183
183
  | "PRT - Tr Plating Cert paid"
184
184
  | "Tempo 100 Permit";
185
185
 
186
- export interface GETPSVTechnicalRecordV3Skeleton {
186
+ export interface TechRecordGETPSVSkeleton {
187
187
  vin: string;
188
188
  partialVin: string;
189
189
  systemNumber: string;
@@ -183,7 +183,7 @@ export type MicrofilmDocumentType =
183
183
  | "PRT - Tr Plating Cert paid"
184
184
  | "Tempo 100 Permit";
185
185
 
186
- export interface GETPSVTechnicalRecordV3Testable {
186
+ export interface TechRecordGETPSVTestable {
187
187
  vin: string;
188
188
  partialVin?: string;
189
189
  systemNumber: string;
@@ -8,7 +8,7 @@
8
8
  export type StatusCode = "provisional" | "current" | "archived";
9
9
  export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
10
10
 
11
- export interface TechRecordSearchCompleteCarSchema {
11
+ export interface TechRecordSearchCompleteSchema {
12
12
  techRecord_manufactureYear: number | null;
13
13
  primaryVrm: string;
14
14
  vin: string;
@@ -8,7 +8,7 @@
8
8
  export type StatusCode = "provisional" | "current" | "archived";
9
9
  export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
10
10
 
11
- export interface TechRecordSearchSkeletonCarSchema {
11
+ export interface TechRecordSearchSkeletonSchema {
12
12
  techRecord_manufactureYear: number | null;
13
13
  primaryVrm: string;
14
14
  vin: string;
@@ -180,7 +180,7 @@ export type SpeedCategorySymbol =
180
180
  | "p"
181
181
  | "q";
182
182
 
183
- export interface GETTRLTechnicalRecordV3Complete {
183
+ export interface TechRecordGETTRLComplete {
184
184
  createdTimestamp: string;
185
185
  partialVin: string;
186
186
  systemNumber: string;
@@ -128,7 +128,7 @@ export type VehicleConfiguration =
128
128
  | "dolly"
129
129
  | "full drawbar";
130
130
 
131
- export interface GETTRLTechnicalRecordV3Skeleton {
131
+ export interface TechRecordGETTRLSkeleton {
132
132
  createdTimestamp: string;
133
133
  partialVin: string;
134
134
  systemNumber: string;
@@ -145,7 +145,7 @@ export type SpeedCategorySymbol =
145
145
  | "p"
146
146
  | "q";
147
147
 
148
- export interface GETTRLTechnicalRecordV3Testable {
148
+ export interface TechRecordGETTRLTestable {
149
149
  createdTimestamp: string;
150
150
  partialVin: string;
151
151
  systemNumber: string;
@@ -9,7 +9,7 @@ export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
9
9
  export type StatusCode = "provisional" | "current" | "archived";
10
10
  export type VehicleSubclass = ("n" | "p" | "a" | "s" | "c" | "l" | "t" | "e" | "m" | "r" | "w")[];
11
11
 
12
- export interface TechRecordPUTRequestCompleteCarSchema {
12
+ export interface TechRecordPUTCarComplete {
13
13
  vin: string;
14
14
  primaryVrm?: string;
15
15
  trailerId?: string | null;
@@ -8,7 +8,7 @@
8
8
  export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
9
9
  export type StatusCode = "provisional" | "current" | "archived";
10
10
 
11
- export interface TechRecordPUTRequestSkeletonCarSchema {
11
+ export interface TechRecordPUTCarSkeleton {
12
12
  vin: string;
13
13
  primaryVrm?: string;
14
14
  trailerId?: string | null;
@@ -142,7 +142,7 @@ export type ApprovalType =
142
142
  | "IVA - VCA"
143
143
  | "IVA - DVSA/NI";
144
144
 
145
- export interface PUTHGVTechnicalRecordV3Complete {
145
+ export interface TechRecordPUTHGVComplete {
146
146
  secondaryVrms?: string[];
147
147
  partialVin?: string | null;
148
148
  techRecord_createdAt?: string;
@@ -142,7 +142,7 @@ export type ApprovalType =
142
142
  | "IVA - VCA"
143
143
  | "IVA - DVSA/NI";
144
144
 
145
- export interface PUTHGVTechnicalRecordV3Skeleton {
145
+ export interface TechRecordPUTHGVSkeleton {
146
146
  secondaryVrms?: string[];
147
147
  partialVin?: string | null;
148
148
  techRecord_createdAt?: string;
@@ -142,7 +142,7 @@ export type ApprovalType =
142
142
  | "IVA - VCA"
143
143
  | "IVA - DVSA/NI";
144
144
 
145
- export interface PUTHGVTechnicalRecordV3Testable {
145
+ export interface TechRecordPUTHGVTestable {
146
146
  secondaryVrms?: string[];
147
147
  partialVin?: string | null;
148
148
  techRecord_createdAt?: string;
@@ -28,7 +28,7 @@ export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
28
28
  export type StatusCode = "provisional" | "current" | "archived";
29
29
  export type VehicleSubclass = ("n" | "p" | "a" | "s" | "c" | "l" | "t" | "e" | "m" | "r" | "w")[];
30
30
 
31
- export interface TechRecordCompleteLGVSchema {
31
+ export interface TechRecordPUTLGVComplete {
32
32
  vin: string;
33
33
  primaryVrm?: string;
34
34
  trailerId?: string | null;
@@ -27,7 +27,7 @@ export type EUVehicleCategory =
27
27
  export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
28
28
  export type StatusCode = "provisional" | "current" | "archived";
29
29
 
30
- export interface TechRecordCompleteCarSchema {
30
+ export interface TechRecordPUTLGVSkeleton {
31
31
  vin: string;
32
32
  primaryVrm?: string;
33
33
  trailerId?: string | null;
@@ -41,7 +41,7 @@ export type VehicleConfiguration =
41
41
  export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
42
42
  export type VehicleSubclass = ("n" | "p" | "a" | "s" | "c" | "l" | "t" | "e" | "m" | "r" | "w")[];
43
43
 
44
- export interface PUTTechRecordCompleteMotorcycleSchema {
44
+ export interface TechRecordPUTMotorcycleComplete {
45
45
  secondaryVrms?: string[];
46
46
  techRecord_applicantDetails_name?: string | null;
47
47
  techRecord_applicantDetails_address1?: null | string;
@@ -40,7 +40,7 @@ export type VehicleConfiguration =
40
40
  | "full drawbar";
41
41
  export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
42
42
 
43
- export interface PUTTechRecordSkeletonMotorcycleSchema {
43
+ export interface TechRecordPUTMotorcycleSkeleton {
44
44
  techRecord_applicantDetails_name?: string | null;
45
45
  techRecord_applicantDetails_address1?: null | string;
46
46
  techRecord_applicantDetails_address2?: null | string;
@@ -183,7 +183,7 @@ export type MicrofilmDocumentType =
183
183
  | "PRT - Tr Plating Cert paid"
184
184
  | "Tempo 100 Permit";
185
185
 
186
- export interface PUTPSVTechnicalRecordV3Complete {
186
+ export interface TechRecordPUTPSVComplete {
187
187
  vin: string;
188
188
  partialVin?: string | null;
189
189
  systemNumber: string;
@@ -183,7 +183,7 @@ export type MicrofilmDocumentType =
183
183
  | "PRT - Tr Plating Cert paid"
184
184
  | "Tempo 100 Permit";
185
185
 
186
- export interface PUTPSVTechnicalRecordV3Skeleton {
186
+ export interface TechRecordPUTPSVSkeleton {
187
187
  vin: string;
188
188
  partialVin?: string | null;
189
189
  systemNumber: string;
@@ -183,7 +183,7 @@ export type MicrofilmDocumentType =
183
183
  | "PRT - Tr Plating Cert paid"
184
184
  | "Tempo 100 Permit";
185
185
 
186
- export interface PUTPSVTechnicalRecordV3Testable {
186
+ export interface TechRecordPUTPSVTestable {
187
187
  vin: string;
188
188
  partialVin?: string | null;
189
189
  systemNumber: string;
@@ -180,7 +180,7 @@ export type SpeedCategorySymbol =
180
180
  | "p"
181
181
  | "q";
182
182
 
183
- export interface PUTTRLTechnicalRecordV3Complete {
183
+ export interface TechRecordPUTTRLComplete {
184
184
  partialVin?: string | null;
185
185
  techRecord_createdAt?: string;
186
186
  techRecord_createdById?: string;
@@ -128,7 +128,7 @@ export type VehicleConfiguration =
128
128
  | "dolly"
129
129
  | "full drawbar";
130
130
 
131
- export interface PUTTRLTechnicalRecordV3Skeleton {
131
+ export interface TechRecordPUTTRLSkeleton {
132
132
  partialVin?: string | null;
133
133
  techRecord_createdAt?: string;
134
134
  techRecord_createdById?: string;
@@ -145,7 +145,7 @@ export type SpeedCategorySymbol =
145
145
  | "p"
146
146
  | "q";
147
147
 
148
- export interface GETTRLTechnicalRecordV3Testable {
148
+ export interface TechRecordPUTTRLTestable {
149
149
  partialVin?: string | null;
150
150
  techRecord_createdAt?: string;
151
151
  techRecord_createdById?: string;
@@ -0,0 +1,75 @@
1
+ import { TechRecordGETCarComplete } from "./get/car/complete";
2
+ import { TechRecordGETCarSkeleton } from "./get/car/skeleton";
3
+ import { TechRecordGETHGVComplete } from "./get/hgv/complete";
4
+ import { TechRecordGETHGVSkeleton } from "./get/hgv/skeleton";
5
+ import { TechRecordGETHGVTestable } from "./get/hgv/testable";
6
+ import { TechRecordGETLGVComplete } from "./get/lgv/complete";
7
+ import { TechRecordGETLGVSkeleton } from "./get/lgv/skeleton";
8
+ import { TechRecordGETMotorcycleComplete } from "./get/motorcycle/complete";
9
+ import { TechRecordGETMotorcycleSkeleton } from "./get/motorcycle/skeleton";
10
+ import { TechRecordGETPSVComplete } from "./get/psv/complete";
11
+ import { TechRecordGETPSVSkeleton } from "./get/psv/skeleton";
12
+ import { TechRecordGETPSVTestable } from "./get/psv/testable";
13
+ import { TechRecordGETTRLComplete } from "./get/trl/complete";
14
+ import { TechRecordGETTRLSkeleton } from "./get/trl/skeleton";
15
+ import { TechRecordGETTRLTestable } from "./get/trl/testable";
16
+ import { TechRecordPUTCarComplete } from "./put/car/complete";
17
+ import { TechRecordPUTCarSkeleton } from "./put/car/skeleton";
18
+ import { TechRecordPUTHGVComplete } from "./put/hgv/complete";
19
+ import { TechRecordPUTHGVSkeleton } from "./put/hgv/skeleton";
20
+ import { TechRecordPUTHGVTestable } from "./put/hgv/testable";
21
+ import { TechRecordPUTLGVComplete } from "./put/lgv/complete";
22
+ import { TechRecordPUTLGVSkeleton } from "./put/lgv/skeleton";
23
+ import { TechRecordPUTMotorcycleComplete } from "./put/motorcycle/complete";
24
+ import { TechRecordPUTMotorcycleSkeleton } from "./put/motorcycle/skeleton";
25
+ import { TechRecordPUTPSVComplete } from "./put/psv/complete";
26
+ import { TechRecordPUTPSVSkeleton } from "./put/psv/skeleton";
27
+ import { TechRecordPUTPSVTestable } from "./put/psv/testable";
28
+ import { TechRecordPUTTRLComplete } from "./put/trl/complete";
29
+ import { TechRecordPUTTRLSkeleton } from "./put/trl/skeleton";
30
+ import { TechRecordPUTTRLTestable } from "./put/trl/testable";
31
+
32
+ export type TechRecordSkeleton =
33
+ | TechRecordPUTCarSkeleton
34
+ | TechRecordGETCarSkeleton
35
+ | TechRecordPUTLGVSkeleton
36
+ | TechRecordGETLGVSkeleton
37
+ | TechRecordPUTMotorcycleSkeleton
38
+ | TechRecordGETMotorcycleSkeleton
39
+ | TechRecordPUTHGVSkeleton
40
+ | TechRecordGETHGVSkeleton
41
+ | TechRecordPUTPSVSkeleton
42
+ | TechRecordGETPSVSkeleton
43
+ | TechRecordPUTTRLSkeleton
44
+ | TechRecordGETTRLSkeleton;
45
+
46
+ export type TechRecordComplete =
47
+ | TechRecordPUTCarComplete
48
+ | TechRecordGETCarComplete
49
+ | TechRecordPUTLGVComplete
50
+ | TechRecordGETLGVComplete
51
+ | TechRecordPUTMotorcycleComplete
52
+ | TechRecordGETMotorcycleComplete
53
+ | TechRecordPUTHGVComplete
54
+ | TechRecordGETHGVComplete
55
+ | TechRecordPUTPSVComplete
56
+ | TechRecordGETPSVComplete
57
+ | TechRecordPUTTRLComplete
58
+ | TechRecordGETTRLComplete;
59
+
60
+ export type TechRecordTestable =
61
+ | TechRecordPUTHGVTestable
62
+ | TechRecordGETHGVTestable
63
+ | TechRecordPUTPSVTestable
64
+ | TechRecordGETPSVTestable
65
+ | TechRecordPUTTRLTestable
66
+ | TechRecordGETTRLTestable;
67
+
68
+ export type TechRecordType<T extends "skeleton" | "complete" | "testable"> =
69
+ T extends "skeleton"
70
+ ? TechRecordSkeleton
71
+ : T extends "complete"
72
+ ? TechRecordComplete
73
+ : T extends "testable"
74
+ ? TechRecordTestable
75
+ : never;
@@ -0,0 +1,80 @@
1
+ import { TechRecordGETCarComplete } from "./get/car/complete";
2
+ import { TechRecordGETCarSkeleton } from "./get/car/skeleton";
3
+ import { TechRecordGETHGVComplete } from "./get/hgv/complete";
4
+ import { TechRecordGETHGVSkeleton } from "./get/hgv/skeleton";
5
+ import { TechRecordGETHGVTestable } from "./get/hgv/testable";
6
+ import { TechRecordGETLGVComplete, VehicleType } from "./get/lgv/complete";
7
+ import { TechRecordGETLGVSkeleton } from "./get/lgv/skeleton";
8
+ import { TechRecordGETMotorcycleComplete } from "./get/motorcycle/complete";
9
+ import { TechRecordGETMotorcycleSkeleton } from "./get/motorcycle/skeleton";
10
+ import { TechRecordGETPSVComplete } from "./get/psv/complete";
11
+ import { TechRecordGETPSVSkeleton } from "./get/psv/skeleton";
12
+ import { TechRecordGETPSVTestable } from "./get/psv/testable";
13
+ import { TechRecordGETTRLComplete } from "./get/trl/complete";
14
+ import { TechRecordGETTRLSkeleton } from "./get/trl/skeleton";
15
+ import { TechRecordGETTRLTestable } from "./get/trl/testable";
16
+ import { TechRecordPUTCarComplete } from "./put/car/complete";
17
+ import { TechRecordPUTCarSkeleton } from "./put/car/skeleton";
18
+ import { TechRecordPUTHGVComplete } from "./put/hgv/complete";
19
+ import { TechRecordPUTHGVSkeleton } from "./put/hgv/skeleton";
20
+ import { TechRecordPUTHGVTestable } from "./put/hgv/testable";
21
+ import { TechRecordPUTLGVComplete } from "./put/lgv/complete";
22
+ import { TechRecordPUTLGVSkeleton } from "./put/lgv/skeleton";
23
+ import { TechRecordPUTMotorcycleComplete } from "./put/motorcycle/complete";
24
+ import { TechRecordPUTPSVComplete } from "./put/psv/complete";
25
+ import { TechRecordPUTPSVSkeleton } from "./put/psv/skeleton";
26
+ import { TechRecordPUTPSVTestable } from "./put/psv/testable";
27
+ import { TechRecordPUTTRLComplete } from "./put/trl/complete";
28
+ import { TechRecordPUTTRLSkeleton } from "./put/trl/skeleton";
29
+ import { TechRecordPUTTRLTestable } from "./put/trl/testable";
30
+
31
+ export type TechRecordCar =
32
+ | TechRecordGETCarComplete
33
+ | TechRecordGETCarSkeleton
34
+ | TechRecordPUTCarComplete
35
+ | TechRecordPUTCarSkeleton;
36
+ export type TechRecordLGV =
37
+ | TechRecordGETLGVComplete
38
+ | TechRecordGETLGVSkeleton
39
+ | TechRecordPUTLGVComplete
40
+ | TechRecordPUTLGVSkeleton;
41
+ export type TechRecordMotorcycle =
42
+ | TechRecordGETMotorcycleComplete
43
+ | TechRecordGETMotorcycleSkeleton
44
+ | TechRecordPUTMotorcycleComplete
45
+ | TechRecordPUTCarSkeleton;
46
+ export type TechRecordPSV =
47
+ | TechRecordGETPSVComplete
48
+ | TechRecordGETPSVSkeleton
49
+ | TechRecordGETPSVTestable
50
+ | TechRecordPUTPSVComplete
51
+ | TechRecordPUTPSVSkeleton
52
+ | TechRecordPUTPSVTestable;
53
+ export type TechRecordHGV =
54
+ | TechRecordGETHGVComplete
55
+ | TechRecordGETHGVSkeleton
56
+ | TechRecordGETHGVTestable
57
+ | TechRecordPUTHGVComplete
58
+ | TechRecordPUTHGVSkeleton
59
+ | TechRecordPUTHGVTestable;
60
+ export type TechRecordTRL =
61
+ | TechRecordGETTRLComplete
62
+ | TechRecordGETTRLSkeleton
63
+ | TechRecordGETTRLTestable
64
+ | TechRecordPUTTRLComplete
65
+ | TechRecordPUTTRLSkeleton
66
+ | TechRecordPUTTRLTestable;
67
+
68
+ export type TechRecordType<T extends VehicleType> = T extends "car"
69
+ ? TechRecordCar
70
+ : T extends "lgv"
71
+ ? TechRecordLGV
72
+ : T extends "motorcycle"
73
+ ? TechRecordMotorcycle
74
+ : T extends "psv"
75
+ ? TechRecordPSV
76
+ : T extends "hgv"
77
+ ? TechRecordHGV
78
+ : T extends "trl"
79
+ ? TechRecordTRL
80
+ : never;
@@ -0,0 +1,112 @@
1
+ import { TechRecordGETCarComplete, VehicleType } from "./get/car/complete";
2
+ import { TechRecordGETCarSkeleton } from "./get/car/skeleton";
3
+ import { TechRecordGETHGVComplete } from "./get/hgv/complete";
4
+ import { TechRecordGETHGVSkeleton } from "./get/hgv/skeleton";
5
+ import { TechRecordGETHGVTestable } from "./get/hgv/testable";
6
+ import { TechRecordGETLGVComplete } from "./get/lgv/complete";
7
+ import { TechRecordGETLGVSkeleton } from "./get/lgv/skeleton";
8
+ import { TechRecordGETMotorcycleComplete } from "./get/motorcycle/complete";
9
+ import { TechRecordGETMotorcycleSkeleton } from "./get/motorcycle/skeleton";
10
+ import { TechRecordGETPSVComplete } from "./get/psv/complete";
11
+ import { TechRecordGETPSVSkeleton } from "./get/psv/skeleton";
12
+ import { TechRecordGETPSVTestable } from "./get/psv/testable";
13
+ import { TechRecordGETTRLComplete } from "./get/trl/complete";
14
+ import { TechRecordGETTRLSkeleton } from "./get/trl/skeleton";
15
+ import { TechRecordGETTRLTestable } from "./get/trl/testable";
16
+ import { TechRecordPUTCarComplete } from "./put/car/complete";
17
+ import { TechRecordPUTCarSkeleton } from "./put/car/skeleton";
18
+ import { TechRecordPUTHGVComplete } from "./put/hgv/complete";
19
+ import { TechRecordPUTHGVSkeleton } from "./put/hgv/skeleton";
20
+ import { TechRecordPUTHGVTestable } from "./put/hgv/testable";
21
+ import { TechRecordPUTLGVComplete } from "./put/lgv/complete";
22
+ import { TechRecordPUTLGVSkeleton } from "./put/lgv/skeleton";
23
+ import { TechRecordPUTMotorcycleComplete } from "./put/motorcycle/complete";
24
+ import { TechRecordPUTPSVComplete } from "./put/psv/complete";
25
+ import { TechRecordPUTPSVSkeleton } from "./put/psv/skeleton";
26
+ import { TechRecordPUTPSVTestable } from "./put/psv/testable";
27
+ import { TechRecordPUTTRLComplete } from "./put/trl/complete";
28
+ import { TechRecordPUTTRLSkeleton } from "./put/trl/skeleton";
29
+ import { TechRecordPUTTRLTestable } from "./put/trl/testable";
30
+
31
+ export type TechRecordGETCar =
32
+ | TechRecordGETCarComplete
33
+ | TechRecordGETCarSkeleton;
34
+
35
+ export type TechRecordPUTCar =
36
+ | TechRecordPUTCarComplete
37
+ | TechRecordPUTCarSkeleton;
38
+
39
+ export type TechRecordGETLGV =
40
+ | TechRecordGETLGVComplete
41
+ | TechRecordGETLGVSkeleton;
42
+
43
+ export type TechRecordPUTLGV =
44
+ | TechRecordPUTLGVComplete
45
+ | TechRecordPUTLGVSkeleton;
46
+
47
+ export type TechRecordGETMotorcycle =
48
+ | TechRecordGETMotorcycleComplete
49
+ | TechRecordGETMotorcycleSkeleton;
50
+
51
+ export type TechRecordPUTMotorcycle =
52
+ | TechRecordPUTMotorcycleComplete
53
+ | TechRecordPUTCarSkeleton;
54
+
55
+ export type TechRecordGETPSV =
56
+ | TechRecordGETPSVComplete
57
+ | TechRecordGETPSVSkeleton
58
+ | TechRecordGETPSVTestable;
59
+
60
+ export type TechRecordPUTPSV =
61
+ | TechRecordPUTPSVComplete
62
+ | TechRecordPUTPSVSkeleton
63
+ | TechRecordPUTPSVTestable;
64
+
65
+ export type TechRecordGETHGV =
66
+ | TechRecordGETHGVComplete
67
+ | TechRecordGETHGVSkeleton
68
+ | TechRecordGETHGVTestable;
69
+
70
+ export type TechRecordPUTHGV =
71
+ | TechRecordPUTHGVComplete
72
+ | TechRecordPUTHGVSkeleton
73
+ | TechRecordPUTHGVTestable;
74
+
75
+ export type TechRecordGETTRL =
76
+ | TechRecordGETTRLComplete
77
+ | TechRecordGETTRLSkeleton
78
+ | TechRecordGETTRLTestable;
79
+
80
+ export type TechRecordPUTTRL =
81
+ | TechRecordPUTTRLComplete
82
+ | TechRecordPUTTRLSkeleton
83
+ | TechRecordPUTTRLTestable;
84
+
85
+ export type TechRecordType<
86
+ T extends VehicleType,
87
+ V extends "get" | "put"
88
+ > = T extends "car"
89
+ ? V extends "get"
90
+ ? TechRecordGETCar
91
+ : TechRecordPUTCar
92
+ : T extends "lgv"
93
+ ? V extends "get"
94
+ ? TechRecordGETLGV
95
+ : TechRecordPUTLGV
96
+ : T extends "motorcycle"
97
+ ? V extends "get"
98
+ ? TechRecordGETMotorcycle
99
+ : TechRecordPUTMotorcycle
100
+ : T extends "psv"
101
+ ? V extends "get"
102
+ ? TechRecordGETPSV
103
+ : TechRecordPUTPSV
104
+ : T extends "hgv"
105
+ ? V extends "get"
106
+ ? TechRecordGETHGV
107
+ : TechRecordPUTHGV
108
+ : T extends "trl"
109
+ ? V extends "get"
110
+ ? TechRecordGETTRL
111
+ : TechRecordPUTTRL
112
+ : never;
@@ -0,0 +1,32 @@
1
+ import {
2
+ TechRecordGETCar,
3
+ TechRecordGETHGV,
4
+ TechRecordGETLGV,
5
+ TechRecordGETMotorcycle,
6
+ TechRecordGETPSV,
7
+ TechRecordGETTRL,
8
+ TechRecordPUTCar,
9
+ TechRecordPUTHGV,
10
+ TechRecordPUTLGV,
11
+ TechRecordPUTMotorcycle,
12
+ TechRecordPUTPSV,
13
+ TechRecordPUTTRL,
14
+ } from "./tech-record-verb-vehicle-type";
15
+
16
+ export type TechRecordType<V extends "get" | "put"> = V extends "get"
17
+ ?
18
+ | TechRecordGETCar
19
+ | TechRecordGETLGV
20
+ | TechRecordGETMotorcycle
21
+ | TechRecordGETPSV
22
+ | TechRecordGETHGV
23
+ | TechRecordGETTRL
24
+ : V extends "put"
25
+ ?
26
+ | TechRecordPUTCar
27
+ | TechRecordPUTLGV
28
+ | TechRecordPUTMotorcycle
29
+ | TechRecordPUTPSV
30
+ | TechRecordPUTHGV
31
+ | TechRecordPUTTRL
32
+ : never;