Skip to content

Commit

Permalink
feat(cb2-9601): reverts to version 3 4 0
Browse files Browse the repository at this point in the history
  • Loading branch information
owen committed Nov 1, 2023
1 parent 6e94f2c commit a977a6b
Show file tree
Hide file tree
Showing 15 changed files with 10 additions and 119 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{
"title": "Inspection Type",
"type": "string",
"tsEnumNames":[
"basic",
"normal"
],
"enum":[
"basic",
"normal"
Expand Down
4 changes: 2 additions & 2 deletions json-definitions/iva/defects/get/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"items": {
"anyOf": [
{
"$ref": "../../../v3/tech-record/enums/vehicleType.enum.json"
"$ref": "../../../v3/tech-record/enums/vehicleType.ignore.json"
}
]
}
Expand Down Expand Up @@ -66,7 +66,7 @@
"items": {
"anyOf": [
{
"$ref": "../enums/inspectionType.enum.json"
"$ref": "../enums/inspectionType.ignore.json"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
{
"title": "Vehicle Type",
"type": "string",
"tsEnumNames":[
"psv",
"trl",
"hgv",
"car",
"lgv",
"motorcycle"
],
"enum":[
"psv",
"trl",
Expand Down
2 changes: 1 addition & 1 deletion json-definitions/v3/tech-record/get/search/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"$ref": "../../enums/statusCode.ignore.json"
},
"techRecord_vehicleType": {
"$ref": "../../enums/vehicleType.enum.json"
"$ref": "../../enums/vehicleType.ignore.json"
},
"createdTimestamp": {
"type": "string"
Expand Down
12 changes: 0 additions & 12 deletions json-schemas/iva/defects/enums/inspectionType.enum.json

This file was deleted.

12 changes: 0 additions & 12 deletions json-schemas/iva/defects/get/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,6 @@
{
"title": "Vehicle Type",
"type": "string",
"tsEnumNames": [
"psv",
"trl",
"hgv",
"car",
"lgv",
"motorcycle"
],
"enum": [
"psv",
"trl",
Expand Down Expand Up @@ -138,10 +130,6 @@
{
"title": "Inspection Type",
"type": "string",
"tsEnumNames": [
"basic",
"normal"
],
"enum": [
"basic",
"normal"
Expand Down
20 changes: 0 additions & 20 deletions json-schemas/v3/tech-record/enums/vehicleType.enum.json

This file was deleted.

8 changes: 0 additions & 8 deletions json-schemas/v3/tech-record/get/search/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,6 @@
"techRecord_vehicleType": {
"title": "Vehicle Type",
"type": "string",
"tsEnumNames": [
"psv",
"trl",
"hgv",
"car",
"lgv",
"motorcycle"
],
"enum": [
"psv",
"trl",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dvsa/cvs-type-definitions",
"version": "3.5.0",
"version": "3.4.0",
"description": "type definitions for cvs vta and vtm applications",
"main": "index.js",
"repository": {
Expand Down
2 changes: 0 additions & 2 deletions schemas.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export const schemas = [
"iva/defects/enums/inspectionType.enum.json",
"iva/defects/get/index.json",
"v1/activity/index.json",
"v1/defect-category-reference-data/index.json",
Expand All @@ -26,7 +25,6 @@ export const schemas = [
"v3/tech-record/enums/vehicleConfigurationHgvPsv.enum.json",
"v3/tech-record/enums/vehicleConfigurationLightVehicle.enum.json",
"v3/tech-record/enums/vehicleConfigurationTrl.enum.json",
"v3/tech-record/enums/vehicleType.enum.json",
"v3/tech-record/get/car/complete/index.json",
"v3/tech-record/get/car/skeleton/index.json",
"v3/tech-record/get/hgv/complete/index.json",
Expand Down
11 changes: 0 additions & 11 deletions types/iva/defects/enums/inspectionType.enum.ts

This file was deleted.

15 changes: 3 additions & 12 deletions types/iva/defects/get/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
* and run json-schema-to-typescript to regenerate this file.
*/

export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";
export type InspectionType = "basic" | "normal";

export interface DefectGETIVA {
sectionNumber: string;
sectionDescription: string;
Expand All @@ -19,14 +22,6 @@ export interface DefectGETIVA {
}[];
}

export enum VehicleType {
psv = "psv",
trl = "trl",
hgv = "hgv",
car = "car",
lgv = "lgv",
motorcycle = "motorcycle"
}
export enum EUVehicleCategory {
M1 = "m1",
M2 = "m2",
Expand All @@ -47,7 +42,3 @@ export enum EUVehicleCategory {
L6E = "l6e",
L7E = "l7e"
}
export enum InspectionType {
basic = "basic",
normal = "normal"
}
15 changes: 0 additions & 15 deletions types/v3/tech-record/enums/vehicleType.enum.ts

This file was deleted.

10 changes: 1 addition & 9 deletions types/v3/tech-record/get/search/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/

export type StatusCode = "provisional" | "current" | "archived";
export type VehicleType = "psv" | "trl" | "hgv" | "car" | "lgv" | "motorcycle";

export interface TechRecordSearchSchema {
primaryVrm?: string;
Expand All @@ -23,12 +24,3 @@ export interface TechRecordSearchSchema {
techRecord_reasonForCreation?: string;
techRecord_createdByName?: string;
}

export enum VehicleType {
psv = "psv",
trl = "trl",
hgv = "hgv",
car = "car",
lgv = "lgv",
motorcycle = "motorcycle"
}

0 comments on commit a977a6b

Please sign in to comment.