Skip to content

Commit

Permalink
feat(cb2-9601): add vehicle configuration to types package
Browse files Browse the repository at this point in the history
  • Loading branch information
owen committed Oct 31, 2023
1 parent 5cbf134 commit 9c599f1
Show file tree
Hide file tree
Showing 113 changed files with 950 additions and 678 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"title": "Vehicle Configuration",
"type": "string",
"tsEnumNames": [
"RIGID",
"ARTICULATED"
],
"enum": [
"rigid",
"articulated"
]
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
{
"title": "Vehicle Configuration",
"type": "string",
"tsEnumNames": [
"RIGID",
"ARTICULATED",
"CENTRE_AXLE_DRAWBAR",
"SEMI_CAR_TRANSPORTER",
"SEMI_TRAILER",
"LONG_SEMI_TRAILER",
"LOW_LOADER",
"OTHER",
"DRAWBAR",
"FOUR_IN_LINE",
"DOLLY",
"FULL_DRAWBAR"
],
"enum": [
"rigid",
"articulated",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"title": "Vehicle Configuration",
"type": "string",
"tsEnumNames": [
"CENTRE_AXLE_DRAWBAR",
"SEMI_CAR_TRANSPORTER",
"SEMI_TRAILER",
"LONG_SEMI_TRAILER",
"LOW_LOADER",
"OTHER",
"DRAWBAR",
"FOUR_IN_LINE",
"DOLLY",
"FULL_DRAWBAR"
],
"enum": [
"centre axle drawbar",
"semi-car transporter",
"semi-trailer",
"long semi-trailer",
"low loader",
"other",
"drawbar",
"four-in-line",
"dolly",
"full drawbar"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
"type": "null"
},
{
"$ref": "../../../enums/vehicleConfiguration.ignore.json"
"$ref": "../../../enums/vehicleConfigurationLightVehicle.enum.json"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
"type": "null"
},
{
"$ref": "../../../enums/vehicleConfiguration.ignore.json"
"$ref": "../../../enums/vehicleConfigurationLightVehicle.enum.json"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@
"techRecord_vehicleConfiguration": {
"anyOf": [
{
"$ref": "../../../enums/vehicleConfiguration.ignore.json"
"$ref": "../../../enums/vehicleConfigurationHgvPsv.enum.json"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@
"techRecord_vehicleConfiguration": {
"anyOf": [
{
"$ref": "../../../enums/vehicleConfiguration.ignore.json"
"$ref": "../../../enums/vehicleConfigurationHgvPsv.enum.json"
},
{
"type": "null"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@
"techRecord_vehicleConfiguration": {
"anyOf": [
{
"$ref": "../../../enums/vehicleConfiguration.ignore.json"
"$ref": "../../../enums/vehicleConfigurationHgvPsv.enum.json"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
]
},
"techRecord_vehicleConfiguration": {
"$ref": "../../../enums/vehicleConfiguration.ignore.json"
"$ref": "../../../enums/vehicleConfigurationLightVehicle.enum.json"
},
"techRecord_vehicleType": {
"const": "lgv"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
"type": "null"
},
{
"$ref": "../../../enums/vehicleConfiguration.ignore.json"
"$ref": "../../../enums/vehicleConfigurationLightVehicle.enum.json"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
"type": "string"
},
"techRecord_vehicleConfiguration": {
"$ref": "../../../enums/vehicleConfiguration.ignore.json"
"$ref": "../../../enums/vehicleConfigurationLightVehicle.enum.json"
},
"techRecord_vehicleType": {
"const": "motorcycle"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
"type": "null"
},
{
"$ref": "../../../enums/vehicleConfiguration.ignore.json"
"$ref": "../../../enums/vehicleConfigurationLightVehicle.enum.json"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"type": "string"
},
"techRecord_vehicleConfiguration": {
"$ref": "../../../enums/vehicleConfiguration.ignore.json"
"$ref": "../../../enums/vehicleConfigurationHgvPsv.enum.json"
},
"techRecord_vehicleSize": {
"$ref": "../../../enums/vehicleSize.ignore.json"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"techRecord_vehicleConfiguration": {
"anyOf": [
{
"$ref": "../../../enums/vehicleConfiguration.ignore.json"
"$ref": "../../../enums/vehicleConfigurationHgvPsv.enum.json"
},
{
"type": "null"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"type": "string"
},
"techRecord_vehicleConfiguration": {
"$ref": "../../../enums/vehicleConfiguration.ignore.json"
"$ref": "../../../enums/vehicleConfigurationHgvPsv.enum.json"
},
"techRecord_vehicleSize": {
"$ref": "../../../enums/vehicleSize.ignore.json"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
"$ref": "../../../enums/vehicleClassDescription.enum.json"
},
"techRecord_vehicleConfiguration": {
"$ref": "../../../enums/vehicleConfiguration.ignore.json"
"$ref": "../../../enums/vehicleConfigurationLightVehicle.enum.json"
},
"techRecord_vehicleSubclass": {
"$ref": "../../../enums/vehicleSubclass.ignore.json"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
"type": "null"
},
{
"$ref": "../../../enums/vehicleConfiguration.ignore.json"
"$ref": "../../../enums/vehicleConfigurationLightVehicle.enum.json"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@
"const": "trailer"
},
"techRecord_vehicleConfiguration": {
"$ref": "../../../enums/vehicleConfiguration.ignore.json"
"$ref": "../../../enums/vehicleConfigurationTrl.enum.json"
},
"techRecord_vehicleType": {
"const": "trl"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,7 @@
"techRecord_vehicleConfiguration": {
"anyOf": [
{
"$ref": "../../../enums/vehicleConfiguration.ignore.json"
"$ref": "../../../enums/vehicleConfigurationTrl.enum.json"
},
{
"type": "null"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@
"techRecord_vehicleConfiguration": {
"anyOf": [
{
"$ref": "../../../enums/vehicleConfiguration.ignore.json"
"$ref": "../../../enums/vehicleConfigurationTrl.enum.json"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
}
},
"techRecord_vehicleConfiguration": {
"$ref": "../../../enums/vehicleConfiguration.ignore.json"
"$ref": "../../../enums/vehicleConfigurationLightVehicle.enum.json"
},
"techRecord_euVehicleCategory": {
"anyOf": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"type": "null"
},
{
"$ref": "../../../enums/vehicleConfiguration.ignore.json"
"$ref": "../../../enums/vehicleConfigurationLightVehicle.enum.json"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@
"techRecord_vehicleConfiguration": {
"anyOf": [
{
"$ref": "../../../enums/vehicleConfiguration.ignore.json"
"$ref": "../../../enums/vehicleConfigurationHgvPsv.enum.json"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@
"techRecord_vehicleConfiguration": {
"anyOf": [
{
"$ref": "../../../enums/vehicleConfiguration.ignore.json"
"$ref": "../../../enums/vehicleConfigurationHgvPsv.enum.json"
},
{
"type": "null"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@
"techRecord_vehicleConfiguration": {
"anyOf": [
{
"$ref": "../../../enums/vehicleConfiguration.ignore.json"
"$ref": "../../../enums/vehicleConfigurationHgvPsv.enum.json"
}
]
},
Expand Down
19 changes: 4 additions & 15 deletions json-definitions/v3/tech-record/put/lgv/complete/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,21 +97,10 @@
}
},
"techRecord_vehicleConfiguration": {
"title": "Vehicle Configuration",
"type": "string",
"enum": [
"rigid",
"articulated",
"centre axle drawbar",
"semi-car transporter",
"semi-trailer",
"long semi-trailer",
"low loader",
"other",
"drawbar",
"four-in-line",
"dolly",
"full drawbar"
"anyOf": [
{
"$ref": "../../../enums/vehicleConfigurationLightVehicle.enum.json"
}
]
}
}
Expand Down
35 changes: 10 additions & 25 deletions json-definitions/v3/tech-record/put/lgv/skeleton/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,29 +129,14 @@
"$ref": "../../../enums/vehicleSubclass.ignore.json"
},
"techRecord_vehicleConfiguration": {
"anyOf": [
{
"type": "null"
},
{
"title": "Vehicle Configuration",
"type": "string",
"enum": [
"rigid",
"articulated",
"centre axle drawbar",
"semi-car transporter",
"semi-trailer",
"long semi-trailer",
"low loader",
"other",
"drawbar",
"four-in-line",
"dolly",
"full drawbar"
]
}
]
}
"anyOf": [
{
"type": "null"
},
{
"$ref": "../../../enums/vehicleConfigurationLightVehicle.enum.json"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
"$ref": "../../../enums/vehicleClassDescription.enum.json"
},
"techRecord_vehicleConfiguration": {
"$ref": "../../../enums/vehicleConfiguration.ignore.json"
"$ref": "../../../enums/vehicleConfigurationLightVehicle.enum.json"
},
"techRecord_vehicleType": {
"const": "motorcycle"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
"type": "null"
},
{
"$ref": "../../../enums/vehicleConfiguration.ignore.json"
"$ref": "../../../enums/vehicleConfigurationLightVehicle.enum.json"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"type": "string"
},
"techRecord_vehicleConfiguration": {
"$ref": "../../../enums/vehicleConfiguration.ignore.json"
"$ref": "../../../enums/vehicleConfigurationHgvPsv.enum.json"
},
"techRecord_vehicleSize": {
"$ref": "../../../enums/vehicleSize.ignore.json"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"techRecord_vehicleConfiguration": {
"anyOf": [
{
"$ref": "../../../enums/vehicleConfiguration.ignore.json"
"$ref": "../../../enums/vehicleConfigurationHgvPsv.enum.json"
},
{
"type": "null"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"type": "string"
},
"techRecord_vehicleConfiguration": {
"$ref": "../../../enums/vehicleConfiguration.ignore.json"
"$ref": "../../../enums/vehicleConfigurationHgvPsv.enum.json"
},
"techRecord_vehicleSize": {
"$ref": "../../../enums/vehicleSize.ignore.json"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"$ref": "../../../enums/vehicleClassDescription.enum.json"
},
"techRecord_vehicleConfiguration": {
"$ref": "../../../enums/vehicleConfiguration.ignore.json"
"$ref": "../../../enums/vehicleConfigurationLightVehicle.enum.json"
},
"techRecord_vehicleSubclass": {
"anyOf": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
"type": "null"
},
{
"$ref": "../../../enums/vehicleConfiguration.ignore.json"
"$ref": "../../../enums/vehicleConfigurationLightVehicle.enum.json"
}
]
},
Expand Down
Loading

0 comments on commit 9c599f1

Please sign in to comment.