Registration integration
Synchronous integration - birth & death
/trigger/events/${Event.id}/actions/${ActionType.REGISTER}`export async function onBirthActionHandler(
request: ActionConfirmationRequest,
h: Hapi.ResponseToolkit
) {
const token = request.auth.artifacts.token as string
const event = request.payload
const pendingAction = getPendingAction(event.actions)
const declaration = deepMerge(
aggregateActionDeclarations(event),
pendingAction.declaration
)
/*
declaration['child.dob']
declaration['mother.nid']
declaration['mother.verified'] !== 'authenticated'
*/Aynchronous integration - birth & death

Last updated