Skip to content

Commit

Permalink
Merge pull request #648 from ministryofjustice/update-api-types-16953…
Browse files Browse the repository at this point in the history
…05232

API model updates
  • Loading branch information
libuk authored Sep 21, 2023
2 parents efec2bb + 2bd5dec commit 6312b23
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ export type TemporaryAccommodationApplication = (Application & {
risks?: PersonRisks;
submittedAt?: string;
arrivalDate?: string;
offenceId: string;
});

1 change: 1 addition & 0 deletions server/@types/shared/models/UpdatePremises.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ export type UpdatePremises = {
pdu?: string;
probationDeliveryUnitId?: string;
turnaroundWorkingDayCount?: number;
name?: string;
};

1 change: 1 addition & 0 deletions server/@types/shared/models/UpdateRoom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
export type UpdateRoom = {
notes?: string;
characteristicIds: Array<string>;
name?: string;
};

1 change: 1 addition & 0 deletions server/testutils/factories/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6312b23

Please sign in to comment.