-
Notifications
You must be signed in to change notification settings - Fork 69
Update declaration payload to match FieldValue
#1138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
8b8dca3
update toolkit
Nil20 15a97de
fix: update test data
Nil20 66d8612
fix: update toolkit
Nil20 981986f
Merge branch 'develop' into ocrvs-10634
Nil20 1f51c05
update toolkit
Nil20 34e4943
update toolkit(#a29215b)
Nil20 7a3a4c0
fix: add admin area in test data address
Nil20 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -136,10 +136,7 @@ const RequestBirthNotificationAction = { | |
| }, | ||
| 'mother.address': { | ||
| country: 'FAR', | ||
| addressType: 'DOMESTIC', | ||
| province: '05cbe3a1-9020-47bd-b558-807607c2f119', | ||
| district: 'afaead2b-7ef5-4adb-b4bf-3d2b8437c284', | ||
| urbanOrRural: 'URBAN' | ||
| addressType: 'DOMESTIC' | ||
| }, | ||
| 'informant.email': '[email protected]', | ||
| 'informant.phoneNo': '0734231245', | ||
|
|
@@ -174,10 +171,7 @@ const RequestBirthDeclarationAction = { | |
| }, | ||
| 'mother.address': { | ||
| country: 'FAR', | ||
| addressType: 'DOMESTIC', | ||
| province: '05cbe3a1-9020-47bd-b558-807607c2f119', | ||
| district: 'afaead2b-7ef5-4adb-b4bf-3d2b8437c284', | ||
| urbanOrRural: 'URBAN' | ||
| addressType: 'DOMESTIC' | ||
| }, | ||
| 'informant.email': '[email protected]', | ||
| 'informant.phoneNo': '0734231245', | ||
|
|
@@ -212,10 +206,7 @@ const BirthDeclarationAction = { | |
| }, | ||
| 'mother.address': { | ||
| country: 'FAR', | ||
| addressType: 'DOMESTIC', | ||
| province: '05cbe3a1-9020-47bd-b558-807607c2f119', | ||
| district: 'afaead2b-7ef5-4adb-b4bf-3d2b8437c284', | ||
| urbanOrRural: 'URBAN' | ||
| addressType: 'DOMESTIC' | ||
| }, | ||
| 'informant.email': '[email protected]', | ||
| 'informant.phoneNo': '0734231245', | ||
|
|
@@ -283,10 +274,7 @@ const RequestDeathNotificationAction = { | |
|
|
||
| 'deceased.address': { | ||
| country: 'FAR', | ||
| addressType: 'DOMESTIC', | ||
| province: '05cbe3a1-9020-47bd-b558-807607c2f119', | ||
| district: 'afaead2b-7ef5-4adb-b4bf-3d2b8437c284', | ||
| urbanOrRural: 'URBAN' | ||
| addressType: 'DOMESTIC' | ||
| }, | ||
| 'informant.relation': 'SPOUSE' | ||
| }, | ||
|
|
@@ -311,13 +299,13 @@ const RequestDeathDeclarationAction = { | |
| createdByRole: 'LOCAL_REGISTRAR', | ||
| createdAtLocation: '9e069dda-0d83-4f67-a4f2-9adbf5658e2e' as unknown as UUID, | ||
| declaration: { | ||
| 'spouse.age': { age: '41', asOfDateRef: 'eventDetails.date' }, | ||
| 'spouse.age': { age: 41, asOfDateRef: 'eventDetails.date' }, | ||
| 'spouse.name': { | ||
| firstname: 'Toki', | ||
| surname: 'Kozuki', | ||
| middlename: '' | ||
| }, | ||
| 'deceased.age': { age: '31', asOfDateRef: 'eventDetails.date' }, | ||
| 'deceased.age': { age: 31, asOfDateRef: 'eventDetails.date' }, | ||
| 'deceased.name': { | ||
| firstname: 'Oden', | ||
| surname: 'Kozuki', | ||
|
|
@@ -331,10 +319,7 @@ const RequestDeathDeclarationAction = { | |
|
|
||
| 'deceased.address': { | ||
| country: 'FAR', | ||
| addressType: 'DOMESTIC', | ||
| province: '05cbe3a1-9020-47bd-b558-807607c2f119', | ||
| district: 'afaead2b-7ef5-4adb-b4bf-3d2b8437c284', | ||
| urbanOrRural: 'URBAN' | ||
| addressType: 'DOMESTIC' | ||
| }, | ||
| 'eventDetails.date': '2025-08-19', | ||
| 'spouse.dobUnknown': true, | ||
|
|
@@ -367,13 +352,13 @@ const DeathDeclarationAction = { | |
| createdByRole: 'LOCAL_REGISTRAR', | ||
| createdAtLocation: '9e069dda-0d83-4f67-a4f2-9adbf5658e2e' as unknown as UUID, | ||
| declaration: { | ||
| 'spouse.age': { age: '41', asOfDateRef: 'eventDetails.date' }, | ||
| 'spouse.age': { age: 41, asOfDateRef: 'eventDetails.date' }, | ||
| 'spouse.name': { | ||
| firstname: 'Toki', | ||
| surname: 'Kozuki', | ||
| middlename: '' | ||
| }, | ||
| 'deceased.age': { age: '31', asOfDateRef: 'eventDetails.date' }, | ||
| 'deceased.age': { age: 31, asOfDateRef: 'eventDetails.date' }, | ||
| 'deceased.name': { | ||
| firstname: 'Oden', | ||
| surname: 'Kozuki', | ||
|
|
@@ -387,10 +372,7 @@ const DeathDeclarationAction = { | |
|
|
||
| 'deceased.address': { | ||
| country: 'FAR', | ||
| addressType: 'DOMESTIC', | ||
| province: '05cbe3a1-9020-47bd-b558-807607c2f119', | ||
| district: 'afaead2b-7ef5-4adb-b4bf-3d2b8437c284', | ||
| urbanOrRural: 'URBAN' | ||
| addressType: 'DOMESTIC' | ||
| }, | ||
| 'eventDetails.date': '2025-08-19', | ||
| 'spouse.dobUnknown': true, | ||
|
|
||
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -834,10 +834,10 @@ | |
| dependencies: | ||
| "@octokit/openapi-types" "^18.0.0" | ||
|
|
||
| "@opencrvs/[email protected].891a767": | ||
| version "1.9.0-rc.891a767" | ||
| resolved "https://registry.yarnpkg.com/@opencrvs/toolkit/-/toolkit-1.9.0-rc.891a767.tgz#fb73a78c6f5f98068f3eb9ef595dec707a92d61e" | ||
| integrity sha512-Qc8K3C5Yppb9gLulMRJ6A6JYno/Br89/13yPN1Yr41DkHvR+tPdpi8fDRtzo6Z1d7Zyab4JbAv9nOgYe1TIk2w== | ||
| "@opencrvs/[email protected].1d60d82": | ||
| version "1.9.0-rc.1d60d82" | ||
| resolved "https://registry.yarnpkg.com/@opencrvs/toolkit/-/toolkit-1.9.0-rc.1d60d82.tgz#60f96ea8edb1cf24aafe3c8296d86103c8e3f553" | ||
| integrity sha512-dEAwFImg5t2GrfJOxaONwkHzMFsWiS6WrhgayHfMwP9qWETtwvlcKRFmNaGBQK6RSg7uvPpTWywWFJHBXJjXCw== | ||
| dependencies: | ||
| "@trpc/client" "11.4.3" | ||
| "@trpc/server" "11.4.3" | ||
|
|
@@ -5166,7 +5166,7 @@ string-argv@^0.0.2: | |
| resolved "https://registry.yarnpkg.com/string-argv/-/string-argv-0.0.2.tgz#dac30408690c21f3c3630a3ff3a05877bdcbd736" | ||
| integrity sha512-p6/Mqq0utTQWUeGMi/m0uBtlLZEwXSY3+mXzeRRqw7fz5ezUb28Wr0R99NlfbWaMmL/jCyT9be4jpn7Yz8IO8w== | ||
|
|
||
| "string-width-cjs@npm:string-width@^4.2.0": | ||
| "string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.3: | ||
| version "4.2.3" | ||
| resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" | ||
| integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== | ||
|
|
@@ -5192,15 +5192,6 @@ string-width@^2.1.1: | |
| is-fullwidth-code-point "^2.0.0" | ||
| strip-ansi "^4.0.0" | ||
|
|
||
| string-width@^4.1.0, string-width@^4.2.3: | ||
| version "4.2.3" | ||
| resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" | ||
| integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== | ||
| dependencies: | ||
| emoji-regex "^8.0.0" | ||
| is-fullwidth-code-point "^3.0.0" | ||
| strip-ansi "^6.0.1" | ||
|
|
||
| string-width@^5.0.1, string-width@^5.1.2: | ||
| version "5.1.2" | ||
| resolved "https://registry.yarnpkg.com/string-width/-/string-width-5.1.2.tgz#14f8daec6d81e7221d2a357e668cab73bdbca794" | ||
|
|
@@ -5226,7 +5217,7 @@ stringify-object@^3.2.2: | |
| is-obj "^1.0.1" | ||
| is-regexp "^1.0.0" | ||
|
|
||
| "strip-ansi-cjs@npm:strip-ansi@^6.0.1": | ||
| "strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1: | ||
| version "6.0.1" | ||
| resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" | ||
| integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== | ||
|
|
@@ -5247,13 +5238,6 @@ strip-ansi@^4.0.0: | |
| dependencies: | ||
| ansi-regex "^3.0.0" | ||
|
|
||
| strip-ansi@^6.0.0, strip-ansi@^6.0.1: | ||
| version "6.0.1" | ||
| resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" | ||
| integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== | ||
| dependencies: | ||
| ansi-regex "^5.0.1" | ||
|
|
||
| strip-ansi@^7.0.1: | ||
| version "7.1.0" | ||
| resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.1.0.tgz#d5b6568ca689d8561370b0707685d22434faff45" | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't the equivalent for this be
administrativeAread: 'afaead2b-7ef5-4adb-b4bf-3d2b8437c284'