diff --git a/json-definitions/v3/tech-record/get/small trl/complete/index.json b/json-definitions/v3/tech-record/get/small trl/complete/index.json index 356b37f3..ae8def4a 100644 --- a/json-definitions/v3/tech-record/get/small trl/complete/index.json +++ b/json-definitions/v3/tech-record/get/small trl/complete/index.json @@ -101,6 +101,16 @@ "null" ] }, + "techRecord_manufactureMonth": { + "anyOf": [ + { + "$ref": "../../../enums/manufactureMonth.ignore.json" + }, + { + "type": "null" + } + ] + }, "techRecord_manufactureYear": { "type": [ "integer", diff --git a/json-definitions/v3/tech-record/get/small trl/skeleton/index.json b/json-definitions/v3/tech-record/get/small trl/skeleton/index.json index 10163362..07af04a6 100644 --- a/json-definitions/v3/tech-record/get/small trl/skeleton/index.json +++ b/json-definitions/v3/tech-record/get/small trl/skeleton/index.json @@ -99,6 +99,16 @@ "null" ] }, + "techRecord_manufactureMonth": { + "anyOf": [ + { + "$ref": "../../../enums/manufactureMonth.ignore.json" + }, + { + "type": "null" + } + ] + }, "techRecord_manufactureYear": { "type": [ "integer", diff --git a/json-definitions/v3/tech-record/put/small trl/complete/index.json b/json-definitions/v3/tech-record/put/small trl/complete/index.json index 12cae654..c98f0983 100644 --- a/json-definitions/v3/tech-record/put/small trl/complete/index.json +++ b/json-definitions/v3/tech-record/put/small trl/complete/index.json @@ -68,6 +68,16 @@ "o2" ] }, + "techRecord_manufactureMonth": { + "anyOf": [ + { + "$ref": "../../../enums/manufactureMonth.ignore.json" + }, + { + "type": "null" + } + ] + }, "techRecord_manufactureYear": { "type": [ "integer", @@ -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" diff --git a/json-definitions/v3/tech-record/put/small trl/skeleton/index.json b/json-definitions/v3/tech-record/put/small trl/skeleton/index.json index 5c44c7d6..42afaafa 100644 --- a/json-definitions/v3/tech-record/put/small trl/skeleton/index.json +++ b/json-definitions/v3/tech-record/put/small trl/skeleton/index.json @@ -66,6 +66,16 @@ "o2" ] }, + "techRecord_manufactureMonth": { + "anyOf": [ + { + "$ref": "../../../enums/manufactureMonth.ignore.json" + }, + { + "type": "null" + } + ] + }, "techRecord_manufactureYear": { "type": [ "integer", diff --git a/json-schemas/v3/tech-record/get/small trl/complete/index.json b/json-schemas/v3/tech-record/get/small trl/complete/index.json index bc24ba05..da7a19d0 100644 --- a/json-schemas/v3/tech-record/get/small trl/complete/index.json +++ b/json-schemas/v3/tech-record/get/small trl/complete/index.json @@ -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", diff --git a/json-schemas/v3/tech-record/get/small trl/skeleton/index.json b/json-schemas/v3/tech-record/get/small trl/skeleton/index.json index d2514515..d923482c 100644 --- a/json-schemas/v3/tech-record/get/small trl/skeleton/index.json +++ b/json-schemas/v3/tech-record/get/small trl/skeleton/index.json @@ -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", diff --git a/json-schemas/v3/tech-record/put/small trl/complete/index.json b/json-schemas/v3/tech-record/put/small trl/complete/index.json index 45efb2d8..dc9e26cb 100644 --- a/json-schemas/v3/tech-record/put/small trl/complete/index.json +++ b/json-schemas/v3/tech-record/put/small trl/complete/index.json @@ -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", diff --git a/json-schemas/v3/tech-record/put/small trl/skeleton/index.json b/json-schemas/v3/tech-record/put/small trl/skeleton/index.json index 33397004..e8760e4c 100644 --- a/json-schemas/v3/tech-record/put/small trl/skeleton/index.json +++ b/json-schemas/v3/tech-record/put/small trl/skeleton/index.json @@ -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", diff --git a/package-lock.json b/package-lock.json index 370f4bd5..d7dffe6b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@dvsa/cvs-type-definitions", - "version": "7.6.0", + "version": "7.6.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@dvsa/cvs-type-definitions", - "version": "7.6.0", + "version": "7.6.3", "license": "ISC", "dependencies": { "ajv": "^8.12.0", diff --git a/package.json b/package.json index 03b6b527..deaf14fa 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/types/v3/tech-record/get/small trl/complete/index.d.ts b/types/v3/tech-record/get/small trl/complete/index.d.ts index 0e075ce5..abc0687a 100644 --- a/types/v3/tech-record/get/small trl/complete/index.d.ts +++ b/types/v3/tech-record/get/small trl/complete/index.d.ts @@ -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")[]; @@ -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; diff --git a/types/v3/tech-record/get/small trl/skeleton/index.d.ts b/types/v3/tech-record/get/small trl/skeleton/index.d.ts index 5b36e10a..e3e2bfb6 100644 --- a/types/v3/tech-record/get/small trl/skeleton/index.d.ts +++ b/types/v3/tech-record/get/small trl/skeleton/index.d.ts @@ -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")[]; @@ -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; diff --git a/types/v3/tech-record/put/small trl/complete/index.d.ts b/types/v3/tech-record/put/small trl/complete/index.d.ts index d66d4643..b4908701 100644 --- a/types/v3/tech-record/put/small trl/complete/index.d.ts +++ b/types/v3/tech-record/put/small trl/complete/index.d.ts @@ -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")[]; @@ -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; diff --git a/types/v3/tech-record/put/small trl/skeleton/index.d.ts b/types/v3/tech-record/put/small trl/skeleton/index.d.ts index cab9b94d..7c68105d 100644 --- a/types/v3/tech-record/put/small trl/skeleton/index.d.ts +++ b/types/v3/tech-record/put/small trl/skeleton/index.d.ts @@ -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")[]; @@ -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;