From 2bd5deca9d84e947bb7f00d5b70c00eecb490ba6 Mon Sep 17 00:00:00 2001 From: "communityaccommodationtypegen[bot]" Date: Thu, 21 Sep 2023 14:07:12 +0000 Subject: [PATCH] Updating hmpps-approved-premises-api models from OpenAPI specification --- server/@types/shared/models/TemporaryAccommodationApplication.ts | 1 + server/@types/shared/models/UpdatePremises.ts | 1 + server/@types/shared/models/UpdateRoom.ts | 1 + server/testutils/factories/application.ts | 1 + 4 files changed, 4 insertions(+) diff --git a/server/@types/shared/models/TemporaryAccommodationApplication.ts b/server/@types/shared/models/TemporaryAccommodationApplication.ts index 23682ed2a..a6035c706 100644 --- a/server/@types/shared/models/TemporaryAccommodationApplication.ts +++ b/server/@types/shared/models/TemporaryAccommodationApplication.ts @@ -18,5 +18,6 @@ export type TemporaryAccommodationApplication = (Application & { risks?: PersonRisks; submittedAt?: string; arrivalDate?: string; + offenceId: string; }); diff --git a/server/@types/shared/models/UpdatePremises.ts b/server/@types/shared/models/UpdatePremises.ts index e6de1a641..bae8c5e96 100644 --- a/server/@types/shared/models/UpdatePremises.ts +++ b/server/@types/shared/models/UpdatePremises.ts @@ -18,5 +18,6 @@ export type UpdatePremises = { pdu?: string; probationDeliveryUnitId?: string; turnaroundWorkingDayCount?: number; + name?: string; }; diff --git a/server/@types/shared/models/UpdateRoom.ts b/server/@types/shared/models/UpdateRoom.ts index ac31d54a2..732bd32a0 100644 --- a/server/@types/shared/models/UpdateRoom.ts +++ b/server/@types/shared/models/UpdateRoom.ts @@ -6,5 +6,6 @@ export type UpdateRoom = { notes?: string; characteristicIds: Array; + name?: string; }; diff --git a/server/testutils/factories/application.ts b/server/testutils/factories/application.ts index 0dfb167ae..fedaeeac4 100644 --- a/server/testutils/factories/application.ts +++ b/server/testutils/factories/application.ts @@ -53,6 +53,7 @@ export default ApplicationFactory.define(() => ({ submittedAt: DateFormats.dateObjToIsoDate(faker.date.past()), data: {}, document: applicationTranslatedDocument, + offenceId: faker.string.uuid(), outdatedSchema: faker.datatype.boolean(), risks: risksFactory.build(), status: 'inProgress' as const,