-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace booking link with a link to referral
This is because users will find it more useful to view the referral and understand who the overlapping offender is. Not all overlaps will have a referral as when making a booking Assessor users can decide not to link to a referral depending on how their booking system works locally
- Loading branch information
Showing
7 changed files
with
52 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
import { fakerEN_GB as faker } from '@faker-js/faker' | ||
import { Factory } from 'fishery' | ||
import { TemporaryAccommodationBedSearchResultOverlap as Overlap } from '../../@types/shared' | ||
import assessmentFactory from './assessment' | ||
import { fullPersonFactory } from './person' | ||
|
||
export default Factory.define<Overlap>(() => ({ | ||
export default Factory.define<Omit<Overlap, 'bookingId'>>(() => ({ | ||
crn: fullPersonFactory.build().crn, | ||
name: fullPersonFactory.build().name, | ||
sex: fullPersonFactory.build().sex, | ||
roomId: faker.string.uuid(), | ||
personType: fullPersonFactory.build().type, | ||
bookingId: faker.string.uuid(), | ||
assessmentId: assessmentFactory.build().id, | ||
days: faker.number.int({ min: 1, max: 100 }), | ||
})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters