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,