-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from GovTechSG/book-fac-uat-profiles
[MISC][YH] Add new profiles for book facilities uat
- Loading branch information
Showing
10 changed files
with
193 additions
and
4 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import * as _ from "lodash"; | ||
import { MyInfoComponents, MyInfoSexCode } from "../../domain"; | ||
import { FakeProfile, ProfileArchetype } from "./fake-profile"; | ||
import { BaseProfile } from "./sponsored-children/BaseProfile"; | ||
|
||
const id = "S8939392B"; | ||
const name = ProfileArchetype.MR_CCK_RESIDENT_1; | ||
|
||
export const mrCckResident1: FakeProfile = { | ||
id, | ||
name, | ||
generate: (profileName) => { | ||
profileName = _.isEmpty(profileName) ? name : profileName; | ||
const profile: MyInfoComponents.Schemas.Person = BaseProfile.generate(profileName); | ||
|
||
profile.sex.code = MyInfoSexCode.MALE; | ||
profile.sex.desc = MyInfoSexCode.fn.toEnumDesc(MyInfoSexCode.MALE); | ||
|
||
profile.dob = { | ||
lastupdated: "2023-12-20", | ||
source: "1", | ||
classification: "C", | ||
value: "1989-04-24", | ||
}; | ||
|
||
(profile.regadd as MyInfoComponents.Schemas.DataitemAddressSg).unit.value = "32"; | ||
(profile.regadd as MyInfoComponents.Schemas.DataitemAddressSg).floor.value = "07"; | ||
(profile.regadd as MyInfoComponents.Schemas.DataitemAddressSg).block.value = "130"; | ||
(profile.regadd as MyInfoComponents.Schemas.DataitemAddressSg).street.value = "CHOA CHU KANG AVENUE 1"; | ||
(profile.regadd as MyInfoComponents.Schemas.DataitemAddressSg).postal.value = "680130"; | ||
|
||
return profile; | ||
}, | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import * as _ from "lodash"; | ||
import { MyInfoComponents, MyInfoSexCode } from "../../domain"; | ||
import { FakeProfile, ProfileArchetype } from "./fake-profile"; | ||
import { BaseProfile } from "./sponsored-children/BaseProfile"; | ||
|
||
const id = "S7456600F"; | ||
const name = ProfileArchetype.MR_MP_RESIDENT_4; | ||
|
||
export const mrMpResident4: FakeProfile = { | ||
id, | ||
name, | ||
generate: (profileName) => { | ||
profileName = _.isEmpty(profileName) ? name : profileName; | ||
const profile: MyInfoComponents.Schemas.Person = BaseProfile.generate(profileName); | ||
|
||
profile.sex.code = MyInfoSexCode.MALE; | ||
profile.sex.desc = MyInfoSexCode.fn.toEnumDesc(MyInfoSexCode.MALE); | ||
|
||
profile.dob = { | ||
lastupdated: "2023-12-20", | ||
source: "1", | ||
classification: "C", | ||
value: "1974-10-17", | ||
}; | ||
|
||
(profile.regadd as MyInfoComponents.Schemas.DataitemAddressSg).unit.value = "65"; | ||
(profile.regadd as MyInfoComponents.Schemas.DataitemAddressSg).floor.value = "08"; | ||
(profile.regadd as MyInfoComponents.Schemas.DataitemAddressSg).block.value = "58"; | ||
(profile.regadd as MyInfoComponents.Schemas.DataitemAddressSg).street.value = "MARINE TERRACE"; | ||
(profile.regadd as MyInfoComponents.Schemas.DataitemAddressSg).postal.value = "440058"; | ||
|
||
return profile; | ||
}, | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import * as _ from "lodash"; | ||
import { MyInfoComponents, MyInfoSexCode } from "../../domain"; | ||
import { FakeProfile, ProfileArchetype } from "./fake-profile"; | ||
import { BaseProfile } from "./sponsored-children/BaseProfile"; | ||
|
||
const id = "T0871447E"; | ||
const name = ProfileArchetype.MR_NS_RESIDENT_5; | ||
|
||
export const mrNsResident5: FakeProfile = { | ||
id, | ||
name, | ||
generate: (profileName) => { | ||
profileName = _.isEmpty(profileName) ? name : profileName; | ||
const profile: MyInfoComponents.Schemas.Person = BaseProfile.generate(profileName); | ||
|
||
profile.sex.code = MyInfoSexCode.MALE; | ||
profile.sex.desc = MyInfoSexCode.fn.toEnumDesc(MyInfoSexCode.MALE); | ||
|
||
profile.dob = { | ||
lastupdated: "2023-12-20", | ||
source: "1", | ||
classification: "C", | ||
value: "1962-11-24", | ||
}; | ||
|
||
(profile.regadd as MyInfoComponents.Schemas.DataitemAddressSg).unit.value = "77"; | ||
(profile.regadd as MyInfoComponents.Schemas.DataitemAddressSg).floor.value = "10"; | ||
(profile.regadd as MyInfoComponents.Schemas.DataitemAddressSg).block.value = "868"; | ||
(profile.regadd as MyInfoComponents.Schemas.DataitemAddressSg).street.value = "YISHUN STREET 81"; | ||
(profile.regadd as MyInfoComponents.Schemas.DataitemAddressSg).postal.value = "760868"; | ||
|
||
return profile; | ||
}, | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import * as _ from "lodash"; | ||
import { MyInfoComponents, MyInfoSexCode } from "../../domain"; | ||
import { FakeProfile, ProfileArchetype } from "./fake-profile"; | ||
import { BaseProfile } from "./sponsored-children/BaseProfile"; | ||
|
||
const id = "S6217524I"; | ||
const name = ProfileArchetype.MS_HBP_RESIDENT_6; | ||
|
||
export const msHbpResident6: FakeProfile = { | ||
id, | ||
name, | ||
generate: (profileName) => { | ||
profileName = _.isEmpty(profileName) ? name : profileName; | ||
const profile: MyInfoComponents.Schemas.Person = BaseProfile.generate(profileName); | ||
|
||
profile.sex.code = MyInfoSexCode.FEMALE; | ||
profile.sex.desc = MyInfoSexCode.fn.toEnumDesc(MyInfoSexCode.FEMALE); | ||
|
||
profile.dob = { | ||
lastupdated: "2023-12-20", | ||
source: "1", | ||
classification: "C", | ||
value: "1962-11-24", | ||
}; | ||
|
||
(profile.regadd as MyInfoComponents.Schemas.DataitemAddressSg).unit.value = "167"; | ||
(profile.regadd as MyInfoComponents.Schemas.DataitemAddressSg).floor.value = "10"; | ||
(profile.regadd as MyInfoComponents.Schemas.DataitemAddressSg).block.value = "21"; | ||
(profile.regadd as MyInfoComponents.Schemas.DataitemAddressSg).street.value = "GHIM MOH ROAD"; | ||
(profile.regadd as MyInfoComponents.Schemas.DataitemAddressSg).postal.value = "270021"; | ||
|
||
return profile; | ||
}, | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import * as _ from "lodash"; | ||
import { MyInfoComponents, MyInfoSexCode } from "../../domain"; | ||
import { FakeProfile, ProfileArchetype } from "./fake-profile"; | ||
import { BaseProfile } from "./sponsored-children/BaseProfile"; | ||
|
||
const id = "S6003491E"; | ||
const name = ProfileArchetype.MS_PRPG_RESIDENT_1; | ||
|
||
export const msPrpgResident1: FakeProfile = { | ||
id, | ||
name, | ||
generate: (profileName) => { | ||
profileName = _.isEmpty(profileName) ? name : profileName; | ||
const profile: MyInfoComponents.Schemas.Person = BaseProfile.generate(profileName); | ||
|
||
profile.sex.code = MyInfoSexCode.FEMALE; | ||
profile.sex.desc = MyInfoSexCode.fn.toEnumDesc(MyInfoSexCode.FEMALE); | ||
|
||
profile.dob = { | ||
lastupdated: "2023-12-20", | ||
source: "1", | ||
classification: "C", | ||
value: "1960-06-04", | ||
}; | ||
|
||
(profile.regadd as MyInfoComponents.Schemas.DataitemAddressSg).unit.value = "317"; | ||
(profile.regadd as MyInfoComponents.Schemas.DataitemAddressSg).floor.value = "12"; | ||
(profile.regadd as MyInfoComponents.Schemas.DataitemAddressSg).block.value = "458"; | ||
(profile.regadd as MyInfoComponents.Schemas.DataitemAddressSg).street.value = "PASIR RIS DRIVE 4"; | ||
(profile.regadd as MyInfoComponents.Schemas.DataitemAddressSg).postal.value = "510458"; | ||
|
||
return profile; | ||
}, | ||
}; |