Skip to content

Commit

Permalink
patch(cb2-15031): add month of manufacture to small trailers (#185)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
naathanbrown and github-actions[bot] authored Nov 8, 2024
1 parent 85f3c8a commit 17dd4bb
Show file tree
Hide file tree
Showing 14 changed files with 202 additions and 6 deletions.
10 changes: 10 additions & 0 deletions json-definitions/v3/tech-record/get/small trl/complete/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,16 @@
"null"
]
},
"techRecord_manufactureMonth": {
"anyOf": [
{
"$ref": "../../../enums/manufactureMonth.ignore.json"
},
{
"type": "null"
}
]
},
"techRecord_manufactureYear": {
"type": [
"integer",
Expand Down
10 changes: 10 additions & 0 deletions json-definitions/v3/tech-record/get/small trl/skeleton/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,16 @@
"null"
]
},
"techRecord_manufactureMonth": {
"anyOf": [
{
"$ref": "../../../enums/manufactureMonth.ignore.json"
},
{
"type": "null"
}
]
},
"techRecord_manufactureYear": {
"type": [
"integer",
Expand Down
16 changes: 13 additions & 3 deletions json-definitions/v3/tech-record/put/small trl/complete/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,16 @@
"o2"
]
},
"techRecord_manufactureMonth": {
"anyOf": [
{
"$ref": "../../../enums/manufactureMonth.ignore.json"
},
{
"type": "null"
}
]
},
"techRecord_manufactureYear": {
"type": [
"integer",
Expand Down Expand Up @@ -101,12 +111,12 @@
"techRecord_vehicleSubclass": {
"anyOf": [
{
"type": "null"
"type": "null"
},
{
"$ref": "../../../enums/vehicleSubclass.ignore.json"
"$ref": "../../../enums/vehicleSubclass.ignore.json"
}
]
]
},
"techRecord_vehicleType": {
"const": "trl"
Expand Down
10 changes: 10 additions & 0 deletions json-definitions/v3/tech-record/put/small trl/skeleton/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,16 @@
"o2"
]
},
"techRecord_manufactureMonth": {
"anyOf": [
{
"$ref": "../../../enums/manufactureMonth.ignore.json"
},
{
"type": "null"
}
]
},
"techRecord_manufactureYear": {
"type": [
"integer",
Expand Down
25 changes: 25 additions & 0 deletions json-schemas/v3/tech-record/get/small trl/complete/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,31 @@
"null"
]
},
"techRecord_manufactureMonth": {
"anyOf": [
{
"title": "Months",
"type": "string",
"enum": [
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December"
]
},
{
"type": "null"
}
]
},
"techRecord_manufactureYear": {
"type": [
"integer",
Expand Down
25 changes: 25 additions & 0 deletions json-schemas/v3/tech-record/get/small trl/skeleton/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,31 @@
"null"
]
},
"techRecord_manufactureMonth": {
"anyOf": [
{
"title": "Months",
"type": "string",
"enum": [
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December"
]
},
{
"type": "null"
}
]
},
"techRecord_manufactureYear": {
"type": [
"integer",
Expand Down
25 changes: 25 additions & 0 deletions json-schemas/v3/tech-record/put/small trl/complete/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,31 @@
"o2"
]
},
"techRecord_manufactureMonth": {
"anyOf": [
{
"title": "Months",
"type": "string",
"enum": [
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December"
]
},
{
"type": "null"
}
]
},
"techRecord_manufactureYear": {
"type": [
"integer",
Expand Down
25 changes: 25 additions & 0 deletions json-schemas/v3/tech-record/put/small trl/skeleton/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,31 @@
"o2"
]
},
"techRecord_manufactureMonth": {
"anyOf": [
{
"title": "Months",
"type": "string",
"enum": [
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December"
]
},
{
"type": "null"
}
]
},
"techRecord_manufactureYear": {
"type": [
"integer",
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": "7.6.2",
"version": "7.6.3",
"description": "type definitions for cvs vta and vtm applications",
"main": "index.js",
"repository": {
Expand Down
14 changes: 14 additions & 0 deletions types/v3/tech-record/get/small trl/complete/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@
* and run json-schema-to-typescript to regenerate this file.
*/

export type Months =
| "January"
| "February"
| "March"
| "April"
| "May"
| "June"
| "July"
| "August"
| "September"
| "October"
| "November"
| "December";
export type StatusCode = "provisional" | "current" | "archived";
export type VehicleSubclass = ("n" | "p" | "a" | "s" | "c" | "l" | "t" | "e" | "m" | "r" | "w")[];

Expand All @@ -24,6 +37,7 @@ export interface TechRecordGETSmallTRLComplete {
techRecord_lastUpdatedAt?: string | null;
techRecord_lastUpdatedById?: string | null;
techRecord_lastUpdatedByName?: string | null;
techRecord_manufactureMonth?: Months | null;
techRecord_manufactureYear?: number | null;
techRecord_noOfAxles: number;
techRecord_notes?: string | null;
Expand Down
14 changes: 14 additions & 0 deletions types/v3/tech-record/get/small trl/skeleton/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@
* and run json-schema-to-typescript to regenerate this file.
*/

export type Months =
| "January"
| "February"
| "March"
| "April"
| "May"
| "June"
| "July"
| "August"
| "September"
| "October"
| "November"
| "December";
export type StatusCode = "provisional" | "current" | "archived";
export type VehicleSubclass = ("n" | "p" | "a" | "s" | "c" | "l" | "t" | "e" | "m" | "r" | "w")[];

Expand All @@ -24,6 +37,7 @@ export interface TechRecordGETSmallTRLSkeleton {
techRecord_lastUpdatedAt?: string | null;
techRecord_lastUpdatedById?: string | null;
techRecord_lastUpdatedByName?: string | null;
techRecord_manufactureMonth?: Months | null;
techRecord_manufactureYear?: number | null;
techRecord_noOfAxles?: number | null;
techRecord_notes?: string | null;
Expand Down
14 changes: 14 additions & 0 deletions types/v3/tech-record/put/small trl/complete/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@
* and run json-schema-to-typescript to regenerate this file.
*/

export type Months =
| "January"
| "February"
| "March"
| "April"
| "May"
| "June"
| "July"
| "August"
| "September"
| "October"
| "November"
| "December";
export type StatusCode = "provisional" | "current" | "archived";
export type VehicleSubclass = ("n" | "p" | "a" | "s" | "c" | "l" | "t" | "e" | "m" | "r" | "w")[];

Expand All @@ -18,6 +31,7 @@ export interface TechRecordPUTSmallTRLComplete {
techRecord_applicantDetails_postTown?: string | null;
techRecord_applicantDetails_telephoneNumber?: string | null;
techRecord_euVehicleCategory: "o1" | "o2";
techRecord_manufactureMonth?: Months | null;
techRecord_manufactureYear?: number | null;
techRecord_noOfAxles: number;
techRecord_notes?: string | null;
Expand Down
14 changes: 14 additions & 0 deletions types/v3/tech-record/put/small trl/skeleton/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@
* and run json-schema-to-typescript to regenerate this file.
*/

export type Months =
| "January"
| "February"
| "March"
| "April"
| "May"
| "June"
| "July"
| "August"
| "September"
| "October"
| "November"
| "December";
export type StatusCode = "provisional" | "current" | "archived";
export type VehicleSubclass = ("n" | "p" | "a" | "s" | "c" | "l" | "t" | "e" | "m" | "r" | "w")[];

Expand All @@ -18,6 +31,7 @@ export interface TechRecordPUTSmallTRLSkeleton {
techRecord_applicantDetails_postTown?: string | null;
techRecord_applicantDetails_telephoneNumber?: string | null;
techRecord_euVehicleCategory: "o1" | "o2";
techRecord_manufactureMonth?: Months | null;
techRecord_manufactureYear?: number | null;
techRecord_noOfAxles?: number | null;
techRecord_notes?: string | null;
Expand Down

0 comments on commit 17dd4bb

Please sign in to comment.