File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed
Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 6363 "@hapi/boom" : " ^9.1.1" ,
6464 "@hapi/hapi" : " ^20.0.1" ,
6565 "@hapi/inert" : " ^6.0.3" ,
66- "@opencrvs/toolkit" : " 1.9.0-rc.8bc97a5 " ,
66+ "@opencrvs/toolkit" : " 1.9.0-rc.8a42cc8 " ,
6767 "@types/chalk" : " ^2.2.0" ,
6868 "@types/csv2json" : " ^1.4.0" ,
6969 "@types/fhir" : " ^0.0.30" ,
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import {
1414 ConditionalType ,
1515 defineConfig ,
1616 field ,
17+ flag ,
1718 not
1819} from '@opencrvs/toolkit/events'
1920import {
@@ -244,12 +245,9 @@ export const birthEvent = defineConfig({
244245 { id : 'approval-required-for-late-registration' , operation : 'remove' }
245246 ] ,
246247 conditionals : [
247- // @TODO : this is a placeholder conditional for testing purposes, which should be replace with a conditional like:
248- // flag('approval-required-for-late-registration')
249- // when that flag() is supported!
250248 {
251249 type : ConditionalType . SHOW ,
252- conditional : field ( 'child.gender' ) . isEqualTo ( 'female ')
250+ conditional : flag ( 'approval-required-for-late-registration ')
253251 }
254252 ] ,
255253 auditHistoryLabel : {
Original file line number Diff line number Diff line change 834834 dependencies :
835835 " @octokit/openapi-types" " ^18.0.0"
836836
837- " @opencrvs/[email protected] .8bc97a5 " :
838- version "1.9.0-rc.8bc97a5 "
839- resolved "https://registry.yarnpkg.com/@opencrvs/toolkit/-/toolkit-1.9.0-rc.8bc97a5 .tgz#aa9efc84945fca9c1b8e0ac5c8e5d20ec1ce6577 "
840- integrity sha512-o9tiQ5sDjlZDcHA8GNLjdr0ummC0Zm0SnOhDV67vplVtKv0hEM8SdIQWP0gahoKdg7ymFxGE5nmK74pY/AMonA ==
837+ " @opencrvs/[email protected] .8a42cc8 " :
838+ version "1.9.0-rc.8a42cc8 "
839+ resolved "https://registry.yarnpkg.com/@opencrvs/toolkit/-/toolkit-1.9.0-rc.8a42cc8 .tgz#29d8299ce1feed7b2d71f6eec1c89d5fb7a0c6dc "
840+ integrity sha512-GCVX2eIHcZdc8GlmQT+RISlJjt0eU0ftld5Nd3lLwsso7lkVNQa7sY/LdbvMZ6dcgx9sdYUr32pgeEwL8iUMYw ==
841841 dependencies :
842842 " @trpc/client" " 11.4.3"
843843 " @trpc/server" " 11.4.3"
You can’t perform that action at this time.
0 commit comments