We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The text was updated successfully, but these errors were encountered:
Tech design to be refined, but initial idea is that we could allow passing here the custom logic: https://github.com/opencrvs/mosip/blob/34eba001aad46421e5853cd541cbba0180edd4a0/packages/country-config/src/events.ts#L4
Proposed @opencrvs/mosip/events API:
@opencrvs/mosip/events
export const mosipRegistrationHandler = ({ url, enabled = true }: { url: string, enabled: boolean | (record: ValidRecord) => boolean }) => ...
Proposed country-config usage
- handler: eventRegistrationHandler + handler: mosipRegistrationHandler({ + url: 'http://mosip-server:2024', + enabled: (record) => { + const anyCustomLogic = Math.random() > 0.5 + return anyCustomLogic && record.id !== 404 + } + })
Sorry, something went wrong.
No branches or pull requests
Description
Design
Acceptance criteria
The text was updated successfully, but these errors were encountered: