Skip to content

Commit

Permalink
feat(cb2-15031): add month of manufacture to small trailers
Browse files Browse the repository at this point in the history
  • Loading branch information
naathanbrown committed Nov 8, 2024
1 parent 85f3c8a commit f292c22
Show file tree
Hide file tree
Showing 12 changed files with 199 additions and 3 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
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 f292c22

Please sign in to comment.