diff --git a/packages/client/src/App.tsx b/packages/client/src/App.tsx index 4ee409d1fe..90240168a7 100644 --- a/packages/client/src/App.tsx +++ b/packages/client/src/App.tsx @@ -71,7 +71,6 @@ import { ReviewCorrection } from './views/ReviewCorrection/ReviewCorrection' import { ReviewCertificate } from './views/PrintCertificate/ReviewCertificateAction' import AllUserEmail from './views/SysAdmin/Communications/AllUserEmail/AllUserEmail' import InformantNotification from './views/SysAdmin/Communications/InformantSMSNotification/InformantSMSNotification' -import { CertificatesConfig } from './views/SysAdmin/Config/Certificates' interface IAppProps { client?: ApolloClient @@ -255,14 +254,6 @@ export function App(props: IAppProps) { } component={OfficeHome} /> - { enableMenuSelection = true, loadWorkqueueStatuses = true, activeMenuItem, - goToCertificateConfigAction, goToVSExportsAction, goToSystemViewAction, goToAdvancedSearchResultAction, @@ -326,12 +323,8 @@ const NavigationView = (props: IFullProps) => { : activeMenuItem ? activeMenuItem : 'review' - const configTab: string[] = [ - WORKQUEUE_TABS.application, - WORKQUEUE_TABS.certificate, - WORKQUEUE_TABS.systems, - WORKQUEUE_TABS.userRoles - ] + + const configTab: string[] = [WORKQUEUE_TABS.systems] const conmmunicationTab: string[] = [ WORKQUEUE_TABS.informantNotification, WORKQUEUE_TABS.emailAllUsers @@ -716,18 +709,6 @@ const NavigationView = (props: IFullProps) => { {(isConfigExpanded || configTab.includes(activeMenuItem)) && ( <> - - (mapStateToProps, { goToHomeTab, - goToCertificateConfigAction: goToCertificateConfig, goToAdvancedSearchResultAction: goToAdvancedSearchResult, goToVSExportsAction: goToVSExport, goToPerformanceViewAction: goToPerformanceView, diff --git a/packages/client/src/navigation/index.ts b/packages/client/src/navigation/index.ts index 78bf44469b..84db3f506d 100644 --- a/packages/client/src/navigation/index.ts +++ b/packages/client/src/navigation/index.ts @@ -36,7 +36,6 @@ import { WORKFLOW_STATUS, TEAM_USER_LIST, USER_PROFILE, - CERTIFICATE_CONFIG, CERTIFICATE_CORRECTION, VERIFY_CORRECTOR, DECLARATION_RECORD_AUDIT, @@ -158,10 +157,6 @@ export function goToHome() { return push(HOME) } -export function goToCertificateConfig() { - return push(CERTIFICATE_CONFIG) -} - export function goToInformantNotification() { return push(INFORMANT_NOTIFICATION) } diff --git a/packages/client/src/navigation/routes.ts b/packages/client/src/navigation/routes.ts index 67b766e775..860cd1bc10 100644 --- a/packages/client/src/navigation/routes.ts +++ b/packages/client/src/navigation/routes.ts @@ -62,7 +62,6 @@ export const REGISTRAR_HOME_TAB_PAGE = '/registration-home/:tabId/:selectorId/:pageId' export const SETTINGS = '/settings' -export const CERTIFICATE_CONFIG = '/config/certificate' export const SYSTEM_LIST = '/config/integration' export const INFORMANT_NOTIFICATION = '/communications/informantnotification' diff --git a/packages/client/src/offline/actions.ts b/packages/client/src/offline/actions.ts index be90045669..c9ac57a36e 100644 --- a/packages/client/src/offline/actions.ts +++ b/packages/client/src/offline/actions.ts @@ -10,7 +10,6 @@ */ import { AdminStructure, - CertificatePayload, CRVSOffice, Facility, ILocation, @@ -23,7 +22,6 @@ import { IContentResponse, IApplicationConfigResponse, IApplicationConfig, - ICertificateTemplateData, IApplicationConfigAnonymous, LoadFormsResponse, LoadValidatorsResponse, @@ -106,30 +104,12 @@ type ApplicationConfigLoadedAction = { payload: IApplicationConfigResponse } -export const CERTIFICATE_LOADED = 'OFFLINE/CERTIFICATE_LOADED' -type CertificateLoadedAction = { - type: typeof CERTIFICATE_LOADED - payload: CertificatePayload -} - const CERTIFICATE_LOAD_FAILED = 'OFFLINE/CERTIFICATE_LOAD_FAILED' type CertificateLoadFailedAction = { type: typeof CERTIFICATE_LOAD_FAILED payload: Error } -export const CERTIFICATES_LOADED = 'OFFLINE/CERTIFICATES_LOADED' -type CertificatesLoadedAction = { - type: typeof CERTIFICATES_LOADED - payload: CertificatePayload[] -} - -export const CERTIFICATES_LOAD_FAILED = 'OFFLINE/CERTIFICATES_LOAD_FAILED' -type CertificatesLoadFailedAction = { - type: typeof CERTIFICATES_LOAD_FAILED - payload: Error -} - export const CERTIFICATE_CONFIGURATION_LOADED = 'OFFLINE/CERTIFICATE_CONFIGURATION_LOADED' type CertificateConfigurationLoadedAction = { @@ -273,13 +253,6 @@ export const configLoaded = ( payload: payload }) -export const certificateLoaded = ( - payload: CertificatePayload -): CertificateLoadedAction => ({ - type: CERTIFICATE_LOADED, - payload -}) - export const certificateLoadFailed = ( payload: CertificateLoadFailedAction['payload'] ): CertificateLoadFailedAction => ({ @@ -287,13 +260,6 @@ export const certificateLoadFailed = ( payload }) -export const certificatesLoaded = ( - payload: CertificatePayload[] -): CertificatesLoadedAction => ({ - type: CERTIFICATES_LOADED, - payload -}) - export const certificateConfigurationLoaded = ( payload: CertificateConfiguration ): CertificateConfigurationLoadedAction => ({ @@ -331,23 +297,6 @@ export const refreshOfflineData = () => ({ type: REFRESH_OFFLINE_DATA }) -export const UPDATE_OFFLINE_CERTIFICATE = 'OFFLINE/UPDATE_CERTIFICATE' -type UpdateOfflineCertificateAction = { - type: typeof UPDATE_OFFLINE_CERTIFICATE - payload: { - certificate: ICertificateTemplateData - } -} - -export const updateOfflineCertificate = ( - certificate: ICertificateTemplateData -): UpdateOfflineCertificateAction => ({ - type: UPDATE_OFFLINE_CERTIFICATE, - payload: { - certificate - } -}) - export const validatorsLoaded = (payload: LoadValidatorsResponse) => ({ type: 'OFFLINE/VALIDATORS_LOADED' as const, payload: payload @@ -397,14 +346,10 @@ export type Action = | ApplicationConfigAnonymousUserAction | ApplicationConfigFailedAction | ApplicationConfigUpdatedAction - | CertificateLoadedAction | CertificateLoadFailedAction - | CertificatesLoadedAction - | CertificatesLoadFailedAction | CertificateConfigurationLoadedAction | CertificateConfigurationLoadFailedAction | UpdateOfflineSystemsAction - | UpdateOfflineCertificateAction | IFilterLocationsAction | ReturnType | ReturnType diff --git a/packages/client/src/offline/reducer.ts b/packages/client/src/offline/reducer.ts index 126c3e00d5..41adfb050c 100644 --- a/packages/client/src/offline/reducer.ts +++ b/packages/client/src/offline/reducer.ts @@ -24,7 +24,6 @@ import { IApplicationConfig, IApplicationConfigAnonymous, ILocationDataResponse, - ICertificateTemplateData, referenceApi, CertificateConfiguration, IFacilitiesDataResponse, @@ -39,7 +38,6 @@ import { ISVGTemplate } from '@client/pdfRenderer' import { merge } from 'lodash' import { isNavigatorOnline } from '@client/utils' import { ISerializedForm } from '@client/forms' -import { getToken } from '@client/utils/authUtils' import { initConditionals } from '@client/forms/conditionals' import { initValidators } from '@client/forms/validators' import { @@ -140,47 +138,9 @@ async function saveOfflineData(offlineData: IOfflineData) { return storage.setItem('offline', JSON.stringify(offlineData)) } -export type CertificatePayload = Awaited> - -async function loadCertificate( - savedCertificate: ISVGTemplate | undefined, - certificate: ICertificateTemplateData -) { - const { svgCode: url, event } = certificate - const res = await fetch(url, { - headers: { - Authorization: getToken(), - 'If-None-Match': savedCertificate?.hash ?? '' - } - }) - if (res.status === 304) { - return { - ...certificate, - svgCode: savedCertificate!.definition, - hash: savedCertificate!.hash! - } - } - if (!res.ok) { - return Promise.reject( - new Error(`Fetching certificate for "${event}" failed`) - ) - } - return res.text().then((svgCode) => ({ - ...certificate, - svgCode, - hash: res.headers.get('etag')! - })) -} - -async function loadCertificates( - savedCertificates: IOfflineData['templates']['certificates'], - fetchedCertificates: ICertificateTemplateData[] -) { - return await Promise.all( - fetchedCertificates.map((cert) => - loadCertificate(savedCertificates?.[cert.event], cert) - ) - ) +export type CertificatePayload = { + svgCode: string + event: Event } function checkIfDone( @@ -376,47 +336,7 @@ function reducer( } return loop(state, dataLoadingCmds) } - case actions.UPDATE_OFFLINE_CERTIFICATE: { - const { templates } = state.offlineData - const { certificate } = action.payload - if (!templates || !templates.certificates) { - return state - } - return loop( - state, - Cmd.run(loadCertificate, { - successActionCreator: actions.certificateLoaded, - failActionCreator: actions.certificateLoadFailed, - args: [templates.certificates[certificate.event], certificate] - }) - ) - } - case actions.CERTIFICATE_LOADED: { - const { templates } = state.offlineData - const certificate = action.payload - if (!templates || !templates.certificates) { - return state - } - return { - ...state, - offlineData: { - ...state.offlineData, - templates: { - ...templates, - certificates: { - ...templates.certificates, - [certificate.event]: { - ...templates.certificates[certificate.event], - definition: certificate.svgCode, - fileName: certificate.svgFilename, - lastModifiedDate: certificate.svgDateUpdated, - hash: certificate.hash - } - } - } - } - } - } + case actions.UPDATE_OFFLINE_CONFIG: { merge(window.config, action.payload.config) const newOfflineData = { @@ -453,38 +373,46 @@ function reducer( case actions.APPLICATION_CONFIG_LOADED: { const { certificates, config, systems } = action.payload merge(window.config, config) - let newOfflineData const birthCertificateTemplate = certificates.find( - ({ event, status }) => event === Event.Birth && status === 'ACTIVE' + ({ event }) => event === Event.Birth ) const deathCertificateTemplate = certificates.find( - ({ event, status }) => event === Event.Death && status === 'ACTIVE' + ({ event }) => event === Event.Death ) const marriageCertificateTemplate = certificates.find( - ({ event, status }) => event === Event.Marriage && status === 'ACTIVE' + ({ event }) => event === Event.Marriage ) + let newOfflineData: Partial + if ( birthCertificateTemplate && deathCertificateTemplate && marriageCertificateTemplate ) { - return loop( - { - ...state, - offlineData: { - ...state.offlineData, - config, - systems - } + const certificatesTemplates = { + birth: { + definition: birthCertificateTemplate.svgCode }, - Cmd.run(loadCertificates, { - successActionCreator: actions.certificatesLoaded, - args: [state.offlineData.templates?.certificates, certificates] - }) - ) + death: { + definition: deathCertificateTemplate.svgCode + }, + marriage: { + definition: marriageCertificateTemplate.svgCode + } + } + + newOfflineData = { + ...state.offlineData, + config, + systems, + templates: { + ...state.offlineData.templates, + certificates: certificatesTemplates + } + } } else { newOfflineData = { ...state.offlineData, @@ -507,66 +435,6 @@ function reducer( } } - case actions.CERTIFICATES_LOADED: { - const certificates = action.payload - const birthCertificateTemplate = certificates.find( - ({ event }) => event === Event.Birth - ) - - const deathCertificateTemplate = certificates.find( - ({ event }) => event === Event.Death - ) - - const marriageCertificateTemplate = certificates.find( - ({ event }) => event === Event.Marriage - ) - - if ( - birthCertificateTemplate && - deathCertificateTemplate && - marriageCertificateTemplate - ) { - const certificatesTemplates = { - birth: { - id: birthCertificateTemplate.id, - definition: birthCertificateTemplate.svgCode, - fileName: birthCertificateTemplate.svgFilename, - lastModifiedDate: birthCertificateTemplate.svgDateUpdated, - hash: birthCertificateTemplate.hash - }, - death: { - id: deathCertificateTemplate.id, - definition: deathCertificateTemplate.svgCode, - fileName: deathCertificateTemplate.svgFilename, - lastModifiedDate: deathCertificateTemplate.svgDateUpdated, - hash: birthCertificateTemplate.hash - }, - marriage: { - id: marriageCertificateTemplate.id, - definition: marriageCertificateTemplate.svgCode, - fileName: marriageCertificateTemplate.svgFilename, - lastModifiedDate: marriageCertificateTemplate.svgDateUpdated, - hash: birthCertificateTemplate.hash - } - } - const newOfflineData = { - ...state.offlineData, - templates: { - ...state.offlineData.templates, - certificates: certificatesTemplates - } - } - - return { - ...state, - offlineDataLoaded: isOfflineDataLoaded(newOfflineData), - offlineData: newOfflineData - } - } - return state - } - - case actions.CERTIFICATES_LOAD_FAILED: case actions.APPLICATION_CONFIG_FAILED: { const payload = action.payload if (payload.cause === 'VALIDATION_ERROR') { diff --git a/packages/client/src/pdfRenderer/index.ts b/packages/client/src/pdfRenderer/index.ts index fd8f2450f4..870b0951ff 100644 --- a/packages/client/src/pdfRenderer/index.ts +++ b/packages/client/src/pdfRenderer/index.ts @@ -18,11 +18,7 @@ export interface IPDFTemplate { } export interface ISVGTemplate { - id: string definition: string - hash?: string - fileName: string - lastModifiedDate: string } export function printPDF(template: IPDFTemplate, declarationId: string) { diff --git a/packages/client/src/utils/referenceApi.test.ts b/packages/client/src/utils/referenceApi.test.ts index deab04e39a..b19385c420 100644 --- a/packages/client/src/utils/referenceApi.test.ts +++ b/packages/client/src/utils/referenceApi.test.ts @@ -549,24 +549,10 @@ const mockFetchConfig = { }, certificates: [ { - _id: '620bdfb896974e7de5a91624', - svgCode: '', - svgFilename: 'oCRVS_DefaultZambia_SingleCharacterSet_Birth_v1.svg', - user: 'jonathan.campbell', - event: 'birth', - status: 'ACTIVE', - svgDateUpdated: 1643292458812, - svgDateCreated: 1640696680593 + svgCode: '' }, { - _id: '620bdfb896974e7de5a91625', - svgCode: '', - svgFilename: 'oCRVS_DefaultZambia_SingleCharacterSet_Death_v1.svg', - user: 'jonathan.campbell', - event: 'death', - status: 'ACTIVE', - svgDateUpdated: 1643292520393, - svgDateCreated: 1640696804785 + svgCode: '' } ], systems: [ @@ -579,24 +565,10 @@ const mockFetchConfig = { const certificates = [ { - id: '620bdfb896974e7de5a91624', - svgCode: '', - svgFilename: 'oCRVS_DefaultZambia_SingleCharacterSet_Birth_v1.svg', - user: 'jonathan.campbell', - event: 'birth', - status: 'ACTIVE', - svgDateUpdated: 1643292458812, - svgDateCreated: 1640696680593 + svgCode: '' }, { - id: '620bdfb896974e7de5a91625', - svgCode: '', - svgFilename: 'oCRVS_DefaultZambia_SingleCharacterSet_Death_v1.svg', - user: 'jonathan.campbell', - event: 'death', - status: 'ACTIVE', - svgDateUpdated: 1643292520393, - svgDateCreated: 1640696804785 + svgCode: '' } ] diff --git a/packages/client/src/utils/referenceApi.ts b/packages/client/src/utils/referenceApi.ts index 6a6fd9845c..8fba400ba8 100644 --- a/packages/client/src/utils/referenceApi.ts +++ b/packages/client/src/utils/referenceApi.ts @@ -68,13 +68,7 @@ interface ILoginBackground { } export interface ICertificateTemplateData { event: Event - status: string svgCode: string - svgDateCreated: string - svgDateUpdated: string - svgFilename: string - user: string - id: string } export interface ICurrency { isoCode: string @@ -161,12 +155,6 @@ async function loadConfig(): Promise { throw Error(res.statusText) } const response = await res.json() - response.certificates = response.certificates.map( - ({ _id, ...rest }: { _id: string }) => { - return { ...rest, id: _id } - } - ) - return response } diff --git a/packages/client/src/views/SysAdmin/Config/Certificates/Certificates.test.tsx b/packages/client/src/views/SysAdmin/Config/Certificates/Certificates.test.tsx deleted file mode 100644 index 5466d2a778..0000000000 --- a/packages/client/src/views/SysAdmin/Config/Certificates/Certificates.test.tsx +++ /dev/null @@ -1,172 +0,0 @@ -/* - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at https://mozilla.org/MPL/2.0/. - * - * OpenCRVS is also distributed under the terms of the Civil Registration - * & Healthcare Disclaimer located at http://opencrvs.org/license. - * - * Copyright (C) The OpenCRVS Authors located at https://github.com/opencrvs/opencrvs-core/blob/master/AUTHORS. - */ -import * as React from 'react' -import { createStore } from '@client/store' -import { createTestComponent, loginAsFieldAgent } from '@client/tests/util' -import { ReactWrapper } from 'enzyme' -import { CertificatesConfig } from './Certificates' -import { waitForElement } from '@client/tests/wait-for-element' -import * as PDFUtils from '@client/views/PrintCertificate/PDFUtils' -import { SpyInstance, vi } from 'vitest' -import * as pdfRender from '@client/pdfRenderer' -import { configApplicationMutations } from '@client/views/SysAdmin/Config/Application/mutations' -import * as imageUtils from '@client/utils/imageUtils' - -enum MENU_ITEM { - DOWNLOAD, - UPLOAD -} - -async function clickOnMenuItem( - testComponent: ReactWrapper, - event: string, - item: MENU_ITEM -) { - await waitForElement( - testComponent, - `#template-${event}-action-menuToggleButton` - ) - testComponent - .find(`#template-${event}-action-menuToggleButton`) - .hostNodes() - .first() - .simulate('click') - testComponent.update() - - testComponent - .find(`#template-birth-action-menuItem${item}`) - .hostNodes() - .simulate('click') - testComponent.update() -} - -describe('ConfigHome page when already has uploaded certificate template', async () => { - const { store, history } = createStore() - loginAsFieldAgent(store) - - let testComponent: ReactWrapper - - beforeAll(() => { - vi.spyOn(imageUtils, 'fetchImageAsBase64').mockImplementation((_: string) => - Promise.resolve('') - ) - - vi.spyOn( - configApplicationMutations, - 'mutateApplicationConfig' - ).mockImplementation(() => - Promise.resolve({ - data: { - updateApplicationConfig: { - BIRTH: { - PRINT_IN_ADVANCE: true - }, - DEATH: { - PRINT_IN_ADVANCE: true - } - } - } - }) - ) - }) - - afterAll(() => { - vi.restoreAllMocks() - }) - - beforeEach(async () => { - testComponent = await createTestComponent( - , - { store, history } - ) - }) - - describe('certificate page test', () => { - it('should show birth, death and marriage tab button', async () => { - expect(testComponent.find('#tab_birth').hostNodes().text()).toBe('Births') - expect(testComponent.find('#tab_death').hostNodes().text()).toBe('Deaths') - expect(testComponent.find('#tab_marriage').hostNodes().text()).toBe( - 'Marriages' - ) - }) - - it('shows default birth certificate template text', () => { - expect( - testComponent.find('#birth_value').hostNodes().first().text() - ).toContain('farajaland-birth-certificate-v3.svg') - }) - - it('shows sub menu link when VerticalThreeDots is clicked', async () => { - await waitForElement( - testComponent, - '#template-birth-action-menuToggleButton' - ) - testComponent - .find('#template-birth-action-menuToggleButton') - .hostNodes() - .first() - .simulate('click') - - testComponent.update() - expect( - testComponent.find('#template-birth-action-menuItem0').hostNodes() - ).toHaveLength(1) - }) - - it('should toggle allow printing for birth', async () => { - testComponent - .find('#allow-printing-toggle') - .hostNodes() - .first() - .simulate('change', { target: { checked: true } }) - - testComponent.update() - - await waitForElement(testComponent, '#allow-printing-notification') - - expect( - testComponent - .find('#allow-printing-notification') - .hostNodes() - .first() - .text() - ).toBe('Allow printing in advance of issuance updated') - }) - }) - - describe('Testing sub menu item on config page', () => { - let printPdfSpy: SpyInstance - let downloadFileSpy: SpyInstance - - beforeAll(() => { - printPdfSpy = vi.spyOn(pdfRender, 'printPDF').mockImplementation(() => {}) - - downloadFileSpy = vi.spyOn(PDFUtils, 'downloadFile') - }) - - afterEach(() => { - printPdfSpy.mockClear() - downloadFileSpy.mockClear() - }) - - it('should show upload modal when clicked on upload', async () => { - await clickOnMenuItem(testComponent, 'birth', MENU_ITEM.UPLOAD) - expect( - testComponent.find('#withoutVerificationPrompt').hostNodes() - ).toHaveLength(1) - }) - - it('should download preview certificate', async () => { - await clickOnMenuItem(testComponent, 'birth', MENU_ITEM.DOWNLOAD) - expect(downloadFileSpy).toBeCalledTimes(1) - }) - }) -}) diff --git a/packages/client/src/views/SysAdmin/Config/Certificates/Certificates.tsx b/packages/client/src/views/SysAdmin/Config/Certificates/Certificates.tsx deleted file mode 100644 index 12ffdc62ea..0000000000 --- a/packages/client/src/views/SysAdmin/Config/Certificates/Certificates.tsx +++ /dev/null @@ -1,715 +0,0 @@ -/* - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at https://mozilla.org/MPL/2.0/. - * - * OpenCRVS is also distributed under the terms of the Civil Registration - * & Healthcare Disclaimer located at http://opencrvs.org/license. - * - * Copyright (C) The OpenCRVS Authors located at https://github.com/opencrvs/opencrvs-core/blob/master/AUTHORS. - */ -import { IOfflineData } from '@client/offline/reducer' -import { getOfflineData } from '@client/offline/selectors' -import { IStoreState } from '@client/store' -import * as React from 'react' -import { - FormattedMessage, - injectIntl, - IntlShape, - WrappedComponentProps -} from 'react-intl' -import { connect } from 'react-redux' -import styled from 'styled-components' -import { SysAdminContentWrapper } from '@client/views/SysAdmin/SysAdminContentWrapper' -import { TertiaryButton } from '@opencrvs/components/lib/buttons' -import { messages } from '@client/i18n/messages/views/config' -import { messages as imageUploadMessages } from '@client/i18n/messages/views/imageUpload' -import { buttonMessages } from '@client/i18n/messages/buttons' -import { - ListViewItemSimplified, - ListViewSimplified -} from '@opencrvs/components/lib/ListViewSimplified' -import { ToggleMenu } from '@opencrvs/components/lib/ToggleMenu' -import { Toast } from '@opencrvs/components/lib/Toast' -import { ResponsiveModal } from '@opencrvs/components/lib/ResponsiveModal' -import { EMPTY_STRING } from '@client/utils/constants' -import { certificateTemplateMutations } from '@client/certificate/mutations' -import { getScope, getUserDetails } from '@client/profile/profileSelectors' -import { Event } from '@client/utils/gateway' -import { IAttachmentValue, IForm } from '@client/forms' -import { getDummyCertificateTemplateData } from './previewDummyData' -import { getRegisterForm } from '@client/forms/register/declaration-selectors' -import { - executeHandlebarsTemplate, - downloadFile -} from '@client/views/PrintCertificate/PDFUtils' -import { Content } from '@opencrvs/components/lib/Content' -import { - updateOfflineCertificate, - updateOfflineConfigData -} from '@client/offline/actions' -import { Icon } from '@opencrvs/components/lib/Icon' - -import { ICertificateTemplateData } from '@client/utils/referenceApi' -import { - ApplyButton, - Field -} from '@client/views/SysAdmin/Config/Application/Components' -import { SimpleDocumentUploader } from '@client/components/form/DocumentUploadField/SimpleDocumentUploader' -import { constantsMessages } from '@client/i18n/messages/constants' -import { FormTabs } from '@opencrvs/components/lib/FormTabs' -import { Text, Toggle } from '@opencrvs/components/lib' -import { NOTIFICATION_STATUS } from '@client/views/SysAdmin/Config/Application/utils' -import { configApplicationMutations } from '@client/views/SysAdmin/Config/Application/mutations' -import { UserDetails } from '@client/utils/userUtils' -import { - bytesToMB, - IMAGE_UPLOAD_MAX_SIZE_IN_BYTES -} from '@client/utils/imageUtils' - -const Value = styled.span` - ${({ theme }) => theme.fonts.reg16}; - margin-top: 15px; - margin-bottom: 8px; - max-width: 340px; - text-overflow: ellipsis; - white-space: nowrap; - overflow: hidden; - @media (max-width: ${({ theme }) => theme.grid.breakpoints.md}px) { - display: block; - } -` - -const ToggleWrapper = styled.div` - margin-left: 24px; -` -const StyledText = styled.h6` - ${({ theme }) => theme.fonts.h4} - color: ${({ theme }) => theme.colors.copy}; - margin-top: 15px; - margin-bottom: 8px; -` -const StyledSubtext = styled(Text)` - flex: none; - color: ${({ theme }) => theme.colors.grey500}; - order: 1; - flex-grow: 0; -` - -const StyledHeader = styled(ListViewItemSimplified)` - color: ${({ theme }) => theme.colors.grey400}; -` - -export type Scope = string[] - -export enum SVGFile { - type = 'image/svg+xml' -} - -type Props = WrappedComponentProps & { - intl: IntlShape - userDetails: UserDetails | null - scope: Scope | null - offlineResources: IOfflineData - registerForm: { - birth: IForm - death: IForm - marriage: IForm - } -} & { - updateOfflineCertificate: typeof updateOfflineCertificate - updateOfflineConfigData: typeof updateOfflineConfigData - state: IStoreState -} - -interface State { - selectedSubMenuItem: string - imageUploading: boolean - imageLoadingError: string - showNotification: boolean - notificationForPrinting: NOTIFICATION_STATUS - showPrompt: boolean - eventName: string - imageFile: IAttachmentValue - activeTabId: Event -} - -interface ICertification { - id: string - label: string - value: string - actionsMenu: JSX.Element -} - -type CertificationProps = { - item: ICertification -} - -class CertificatesConfigComponent extends React.Component { - constructor(props: Props) { - super(props) - this.state = { - activeTabId: Event.Birth, - selectedSubMenuItem: this.SUB_MENU_ID.certificatesConfig, - imageUploading: false, - imageLoadingError: '', - showNotification: false, - notificationForPrinting: NOTIFICATION_STATUS.IDLE, - showPrompt: false, - eventName: '', - imageFile: { - name: EMPTY_STRING, - type: EMPTY_STRING, - data: EMPTY_STRING - } - } - } - - SUB_MENU_ID = { - certificatesConfig: 'Certificates' - } - - handleTabChange = (tab: Event) => { - this.setState({ activeTabId: tab }) - } - getMenuItems( - intl: IntlShape, - event: string, - svgTemplate: string, - svgFilename: string - ) { - const menuItems = [ - { - label: intl.formatMessage(messages.downloadTemplate), - handler: () => { - downloadFile(SVGFile.type, svgTemplate, svgFilename) - } - }, - { - label: intl.formatMessage(buttonMessages.upload), - handler: () => { - this.setState({ - eventName: event - }) - this.togglePrompt() - } - } - ] - return menuItems - } - - handleSelectFile = async (certificateId: string) => { - const status = 'ACTIVE' - const userMgntUserID = this.props.userDetails?.userMgntUserID - this.setState({ - imageUploading: true, - imageLoadingError: '' - }) - this.toggleNotification() - - // Convert base64 data to svg - const svgCode = atob(this.state.imageFile.data.split(',')[1]) - - this.updateCertificateTemplate( - certificateId, - svgCode, - this.state.imageFile.name || '', - userMgntUserID as string, - status, - this.state.eventName - ) - } - - onUploadingStateChanged = (isUploading: boolean) => { - this.setState({ ...this.state, imageUploading: isUploading }) - } - - handleCertificateFile(file: IAttachmentValue) { - this.setState({ - ...this.state, - imageFile: file - }) - } - - toggleNotification = () => { - this.setState((state) => ({ - showNotification: !state.showNotification - })) - } - - togglePrompt = () => { - this.setState((prevState) => ({ showPrompt: !prevState.showPrompt })) - this.setState({ - imageFile: { - name: EMPTY_STRING, - type: EMPTY_STRING, - data: EMPTY_STRING - } - }) - } - - async updateCertificateTemplate( - id: string, - svgCode: string, - svgFilename: string, - user: string, - status: string, - event: string - ) { - try { - const res = await certificateTemplateMutations.updateCertificateTemplate( - id, - svgCode, - svgFilename, - user, - status, - event - ) - if (res && res.createOrUpdateCertificateSVG) { - // Sometimes it takes a second for the Minio URL to be available, otherwise you get a 404. - this.setState({ imageUploading: false }) - this.props.updateOfflineCertificate( - res.createOrUpdateCertificateSVG as ICertificateTemplateData - ) - } - } catch (err) { - this.setState({ - imageLoadingError: this.props.intl.formatMessage( - imageUploadMessages.imageFormat, - { - maxSize: bytesToMB(IMAGE_UPLOAD_MAX_SIZE_IN_BYTES) - } - ) - }) - } - } - - render() { - const { - eventName, - imageUploading, - imageLoadingError, - showNotification, - showPrompt, - activeTabId - } = this.state - - const { intl, offlineResources } = this.props - const tabSections = [ - { - id: Event.Birth, - title: intl.formatMessage(constantsMessages.births) - }, - { - id: Event.Death, - title: intl.formatMessage(constantsMessages.deaths) - }, - { - id: Event.Marriage, - title: intl.formatMessage(constantsMessages.marriages) - } - ] - - const birthCertFileName = - offlineResources.templates.certificates?.birth.fileName - const deathCertFileName = - offlineResources.templates.certificates?.death.fileName - const marriageCertFileName = - offlineResources.templates.certificates?.marriage.fileName - - const birthLastModified = - offlineResources.templates.certificates?.birth.lastModifiedDate - const deathLastModified = - offlineResources.templates.certificates?.death.lastModifiedDate - const marriageLastModified = - offlineResources.templates.certificates?.marriage.lastModifiedDate - const CertificateSection = { - title: intl.formatMessage(messages.listTitle), - items: [ - { - id: 'birth', - label: intl.formatMessage(messages.certificateTemplate), - value: birthLastModified - ? intl.formatMessage(messages.eventUpdatedTempDesc, { - lastModified: birthLastModified - }) - : intl.formatMessage(messages.birthDefaultTempDesc), - actionsMenu: ( - <> - {offlineResources.templates.certificates?.birth && ( - - } - menuItems={this.getMenuItems( - intl, - Event.Birth, - offlineResources.templates.certificates.birth.definition, - offlineResources.templates.certificates.birth.fileName - )} - /> - )} - - ) - }, - { - id: 'death', - label: intl.formatMessage(messages.certificateTemplate), - value: deathLastModified - ? intl.formatMessage(messages.eventUpdatedTempDesc, { - lastModified: deathLastModified - }) - : intl.formatMessage(messages.deathDefaultTempDesc), - actionsMenu: ( - <> - {offlineResources.templates.certificates?.death && ( - - } - menuItems={this.getMenuItems( - intl, - Event.Death, - offlineResources.templates.certificates.death.definition, - offlineResources.templates.certificates.death.fileName - )} - /> - )} - - ) - }, - { - id: 'marriage', - label: intl.formatMessage(messages.certificateTemplate), - value: marriageLastModified - ? intl.formatMessage(messages.eventUpdatedTempDesc, { - lastModified: marriageLastModified - }) - : intl.formatMessage(messages.marriageDefaultTempDesc), - actionsMenu: ( - <> - {offlineResources.templates.certificates?.marriage && ( - - } - menuItems={this.getMenuItems( - intl, - Event.Marriage, - offlineResources.templates.certificates.marriage.definition, - offlineResources.templates.certificates.marriage.fileName - )} - /> - )} - - ) - } - ] - } - - let certificateFileName - - const toggleOnChange = async (event: Event) => { - const upperCaseEvent = event.toUpperCase() as Uppercase - - this.props.updateOfflineConfigData({ - config: { - ...offlineResources.config, - [upperCaseEvent]: { - ...offlineResources.config[upperCaseEvent], - PRINT_IN_ADVANCE: - !offlineResources.config[upperCaseEvent].PRINT_IN_ADVANCE - } - } - }) - try { - await configApplicationMutations.mutateApplicationConfig({ - [upperCaseEvent]: { - PRINT_IN_ADVANCE: - !offlineResources.config[upperCaseEvent].PRINT_IN_ADVANCE - } - }) - this.setState({ - notificationForPrinting: NOTIFICATION_STATUS.SUCCESS - }) - } catch (err) { - this.setState({ - notificationForPrinting: NOTIFICATION_STATUS.ERROR - }) - } - } - - const TabContent = (props: CertificationProps) => { - certificateFileName = - props.item.id === 'birth' - ? birthCertFileName - : props.item.id === 'death' - ? deathCertFileName - : marriageCertFileName - - return ( - <> - - - {intl.formatMessage(messages.template)} - - } - /> - - - {props.item.label} - - } - value={ - - {certificateFileName} - - } - actions={props.item.actionsMenu} - /> - - - {intl.formatMessage(messages.options)} - - } - /> - - - {intl.formatMessage(messages.allowPrinting)} - - - {intl.formatMessage(messages.allowPrintingDescription)} - - - } - actions={ - - { - await toggleOnChange(this.state.activeTabId) - }} - /> - - } - /> - - - ) - } - return ( - <> - - {this.state.selectedSubMenuItem === - this.SUB_MENU_ID.certificatesConfig && ( - this.handleTabChange(id)} - /> - } - > - item.id === activeTabId - ) as ICertification - } - /> - - )} - {showNotification && ( - this.toggleNotification() - } - > - - - )} - - {this.state.notificationForPrinting !== NOTIFICATION_STATUS.IDLE && ( - - this.setState({ - notificationForPrinting: NOTIFICATION_STATUS.IDLE - }) - } - > - {this.state.notificationForPrinting === - NOTIFICATION_STATUS.IN_PROGRESS - ? intl.formatMessage(messages.applicationConfigUpdatingMessage) - : this.state.notificationForPrinting === - NOTIFICATION_STATUS.SUCCESS - ? intl.formatMessage(messages.updateAllowPrintingNotification) - : intl.formatMessage(messages.applicationConfigChangeError)} - - )} - - - {intl.formatMessage(messages.uploadCertificateDialogCancel)} - , - { - this.togglePrompt() - if (eventName === Event.Birth) { - this.handleSelectFile( - `${offlineResources.templates.certificates?.birth.id}` - ) - } else if (eventName === Event.Death) { - this.handleSelectFile( - `${offlineResources.templates.certificates?.death.id}` - ) - } else if (eventName === Event.Marriage) { - this.handleSelectFile( - `${offlineResources.templates.certificates?.marriage.id}` - ) - } - }} - > - {intl.formatMessage(buttonMessages.apply)} - - ]} - > - {intl.formatMessage(messages.uploadCertificateDialogDescription)} - - { - this.handleCertificateFile(file as IAttachmentValue) - }} - files={this.state.imageFile} - onUploadingStateChanged={this.onUploadingStateChanged} - previewTransformer={(file) => { - const dummyTemplateData = getDummyCertificateTemplateData( - this.state.eventName, - this.props.registerForm - ) - let svgCode = atob(file.data.split(',')[1]) - svgCode = executeHandlebarsTemplate( - svgCode, - dummyTemplateData, - this.props.state - ) - const data = `data:${SVGFile.type};base64,${window.btoa( - svgCode - )}` - return { ...file, data } - }} - /> - - - - - ) - } -} - -function mapStateToProps(state: IStoreState) { - return { - offlineResources: getOfflineData(state), - registerForm: getRegisterForm(state), - userDetails: getUserDetails(state), - scope: getScope(state), - state - } -} - -export const CertificatesConfig = connect(mapStateToProps, { - updateOfflineConfigData, - updateOfflineCertificate -})(injectIntl(CertificatesConfigComponent)) diff --git a/packages/client/src/views/SysAdmin/Config/Certificates/index.ts b/packages/client/src/views/SysAdmin/Config/Certificates/index.ts deleted file mode 100644 index 4554993895..0000000000 --- a/packages/client/src/views/SysAdmin/Config/Certificates/index.ts +++ /dev/null @@ -1,11 +0,0 @@ -/* - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at https://mozilla.org/MPL/2.0/. - * - * OpenCRVS is also distributed under the terms of the Civil Registration - * & Healthcare Disclaimer located at http://opencrvs.org/license. - * - * Copyright (C) The OpenCRVS Authors located at https://github.com/opencrvs/opencrvs-core/blob/master/AUTHORS. - */ -export * from './Certificates' diff --git a/packages/client/src/views/SysAdmin/Config/Certificates/previewDummyData.ts b/packages/client/src/views/SysAdmin/Config/Certificates/previewDummyData.ts deleted file mode 100644 index bc0e7d2572..0000000000 --- a/packages/client/src/views/SysAdmin/Config/Certificates/previewDummyData.ts +++ /dev/null @@ -1,2036 +0,0 @@ -/* - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at https://mozilla.org/MPL/2.0/. - * - * OpenCRVS is also distributed under the terms of the Civil Registration - * & Healthcare Disclaimer located at http://opencrvs.org/license. - * - * Copyright (C) The OpenCRVS Authors located at https://github.com/opencrvs/opencrvs-core/blob/master/AUTHORS. - */ -import { gqlToDraftTransformer } from '@client/transformer' -import { IForm } from '@client/forms' -import { IOfflineData } from '@client/offline/reducer' -import { SystemRoleType, Status } from '@client/utils/gateway' -import { UserDetails } from '@client/utils/userUtils' - -const signatureImage = `data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbcAAAC3CAYAAACR4BBfAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH4wgdAzQp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2ab-f24a4b0be20a', - encounter: '65f436b8-562a-4a35-8df9-ff41205a7770', - eventLocation: 'ec396045-3437-4224-8e03-f299e17158e5', - observation: { - birthType: 'ca45479d-365b-4883-9980-e3687f5eafb3', - weightAtBirth: '22c18ced-5fad-4ec4-8dad-29bd05b20fd9', - attendantAtBirth: '302f91de-eeaa-4ef9-a22c-7a488aad19a5', - presentAtBirthRegistration: 'b84da113-f463-4ffd-a7f5-b4055b6275dc' - } - }, - id: '1e09f4b5-43f4-415c-b2ab-f24a4b0be20a', - child: { - id: '21e12ec4-65a3-4f13-ab32-3c8580359c05', - multipleBirth: null, - name: [ - { - use: 'en', - firstNames: 'Jane', - familyName: 'Smith', - __typename: 'HumanName' - } - ], - birthDate: '2021-05-19', - gender: 'male', - __typename: 'Person' - }, - informant: { - id: '0fc8d8e2-5736-4809-8de8-796001c4f983', - relationship: 'MOTHER', - otherRelationship: null, - individual: null, - __typename: 'RelatedPerson' - }, - mother: { - id: 'b7793115-0d7f-44d8-89ba-7051e8d4bc29', - name: [ - { - use: 'en', - firstNames: '', - familyName: 'Will Be Updated', - __typename: 'HumanName' - } - ], - birthDate: null, - maritalStatus: 'MARRIED', - dateOfMarriage: null, - detailsExist: true, - educationalAttainment: null, - nationality: ['FAR'], - occupation: null, - reasonNotApplying: null, - identifier: [ - { - id: '123456879', - type: 'NATIONAL_ID', - otherType: null, - __typename: 'IdentityType' - } - ], - address: [ - { - type: 'PRIMARY_ADDRESS', - line: ['', '', '', '', '', '', 'URBAN'], - district: 'ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - state: 'df669feb-61a3-4984-ab24-4b28511b472a', - city: null, - postalCode: null, - country: 'FAR', - __typename: 'Address' - }, - { - type: 'SECONDARY_ADDRESS', - line: ['', '', '', '', '', '', 'URBAN'], - district: 'ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - state: 'df669feb-61a3-4984-ab24-4b28511b472a', - city: null, - postalCode: null, - country: 'FAR', - __typename: 'Address' - } - ], - telecom: null, - __typename: 'Person' - }, - father: { - id: '51ac52fe-754f-4c91-8e71-c4e5c7252cc1', - name: [ - { - use: 'en', - firstNames: 'Frank', - familyName: 'Styles', - __typename: 'HumanName' - } - ], - birthDate: '1990-12-23', - maritalStatus: 'MARRIED', - occupation: 'Teacher', - detailsExist: true, - reasonNotApplying: null, - dateOfMarriage: null, - educationalAttainment: 'FIRST_STAGE_TERTIARY_ISCED_5', - nationality: ['FAR'], - identifier: [ - { - id: '321654985', - type: 'NATIONAL_ID', - otherType: null, - __typename: 'IdentityType' - } - ], - address: [ - { - type: 'PRIMARY_ADDRESS', - line: ['', '', '', '', 'Mother village', 'RURAL'], - district: '852b103f-2fe0-4871-a323-51e51c6d9198', - state: 'bac22b09-1260-4a59-a5b9-c56c43ae889c', - city: null, - postalCode: null, - country: 'FAR', - __typename: 'Address' - } - ], - telecom: null, - __typename: 'Person' - }, - registration: { - id: 'f2580a50-58d7-4946-b15b-ed638c87bf30', - informantType: 'MOTHER', - otherInformantType: null, - contact: 'MOTHER', - contactRelationship: null, - status: [ - { - comments: null, - type: 'REGISTERED', - timestamp: '2022-03-24T12:16:07.954Z', - location: { - name: 'Ibombo', - alias: ['Ibombo'], - __typename: 'Location' - }, - office: { - name: 'Ibombo District Office', - alias: ['Ibombo District Office'], - address: { - district: 'Ibombo District', - state: 'Central Province', - __typename: 'Address' - }, - partOf: 'Location/ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - __typename: 'Location' - }, - __typename: 'RegWorkflow' - }, - { - comments: null, - type: 'REGISTERED', - timestamp: '2022-03-24T12:16:07.954Z', - location: { - name: 'Ibombo', - alias: ['Ibombo'], - __typename: 'Location' - }, - office: { - name: 'Ibombo District Office', - alias: ['Ibombo District Office'], - address: { - district: 'Ibombo District', - state: 'Central Province', - __typename: 'Address' - }, - partOf: 'Location/ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - __typename: 'Location' - }, - __typename: 'RegWorkflow' - }, - { - comments: null, - type: 'REGISTERED', - timestamp: '2022-03-24T12:16:07.954Z', - location: { - name: 'Ibombo', - alias: ['Ibombo'], - __typename: 'Location' - }, - office: { - name: 'Ibombo District Office', - alias: ['Ibombo District Office'], - address: { - district: 'Ibombo District', - state: 'Central Province', - __typename: 'Address' - }, - partOf: 'Location/ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - __typename: 'Location' - }, - __typename: 'RegWorkflow' - }, - { - comments: null, - type: 'REGISTERED', - timestamp: '2022-03-24T12:16:07.954Z', - location: { - name: 'Ibombo', - alias: ['Ibombo'], - __typename: 'Location' - }, - office: { - name: 'Ibombo District Office', - alias: ['Ibombo District Office'], - address: { - district: 'Ibombo District', - state: 'Central Province', - __typename: 'Address' - }, - partOf: 'Location/ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - __typename: 'Location' - }, - __typename: 'RegWorkflow' - }, - { - comments: null, - type: 'REGISTERED', - timestamp: '2022-03-24T12:16:07.954Z', - location: { - name: 'Ibombo', - alias: ['Ibombo'], - __typename: 'Location' - }, - office: { - name: 'Ibombo District Office', - alias: ['Ibombo District Office'], - address: { - district: 'Ibombo District', - state: 'Central Province', - __typename: 'Address' - }, - partOf: 'Location/ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - __typename: 'Location' - }, - __typename: 'RegWorkflow' - }, - { - comments: null, - type: 'REGISTERED', - timestamp: '2022-03-24T12:16:07.954Z', - location: { - name: 'Ibombo', - alias: ['Ibombo'], - __typename: 'Location' - }, - office: { - name: 'Ibombo District Office', - alias: ['Ibombo District Office'], - address: { - district: 'Ibombo District', - state: 'Central Province', - __typename: 'Address' - }, - partOf: 'Location/ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - __typename: 'Location' - }, - __typename: 'RegWorkflow' - }, - { - comments: null, - type: 'REGISTERED', - timestamp: '2022-03-24T12:16:07.954Z', - location: { - name: 'Ibombo', - alias: ['Ibombo'], - __typename: 'Location' - }, - office: { - name: 'Ibombo District Office', - alias: ['Ibombo District Office'], - address: { - district: 'Ibombo District', - state: 'Central Province', - __typename: 'Address' - }, - partOf: 'Location/ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - __typename: 'Location' - }, - __typename: 'RegWorkflow' - }, - { - comments: null, - type: 'REGISTERED', - timestamp: '2022-03-24T12:16:07.954Z', - location: { - name: 'Ibombo', - alias: ['Ibombo'], - __typename: 'Location' - }, - office: { - name: 'Ibombo District Office', - alias: ['Ibombo District Office'], - address: { - district: 'Ibombo District', - state: 'Central Province', - __typename: 'Address' - }, - partOf: 'Location/ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - __typename: 'Location' - }, - __typename: 'RegWorkflow' - }, - { - comments: null, - type: 'REGISTERED', - timestamp: '2022-03-24T12:16:07.954Z', - location: { - name: 'Ibombo', - alias: ['Ibombo'], - __typename: 'Location' - }, - office: { - name: 'Ibombo District Office', - alias: ['Ibombo District Office'], - address: { - district: 'Ibombo District', - state: 'Central Province', - __typename: 'Address' - }, - partOf: 'Location/ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - __typename: 'Location' - }, - __typename: 'RegWorkflow' - }, - { - comments: null, - type: 'REGISTERED', - timestamp: '2022-03-24T12:16:07.954Z', - location: { - name: 'Ibombo', - alias: ['Ibombo'], - __typename: 'Location' - }, - office: { - name: 'Ibombo District Office', - alias: ['Ibombo District Office'], - address: { - district: 'Ibombo District', - state: 'Central Province', - __typename: 'Address' - }, - partOf: 'Location/ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - __typename: 'Location' - }, - __typename: 'RegWorkflow' - } - ], - trackingId: 'BLOQITK', - registrationNumber: '2022BLOQITK', - __typename: 'Registration' - }, - attendantAtBirth: 'PHYSICIAN', - weightAtBirth: 5, - birthType: 'SINGLE', - questionnaire: null, - eventLocation: { - id: 'f0517084-664e-434c-8ed3-2dc58ceabcfb', - type: 'PRIMARY_ADDRESS', - address: { - type: 'PRIMARY_ADDRESS', - line: ['', '', '', '', '', '', 'URBAN'], - district: 'ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - state: 'df669feb-61a3-4984-ab24-4b28511b472a', - city: null, - postalCode: null, - country: 'FAR', - __typename: 'Address' - }, - __typename: 'Location' - }, - history: [ - { - date: '2022-03-25T12:19:25.860+00:00', - regStatus: 'REGISTERED', - reinstated: false, - location: { - id: 'ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - name: 'Ibombo', - __typename: 'Location' - }, - office: { - id: '4bf3e2ac-99f5-468c-b974-966f725aaab0', - name: 'Ibombo District Office', - address: { - state: 'Central', - district: 'Ibombo' - }, - __typename: 'Location' - }, - user: { - id: '622f81b42cd537bf91daa106', - systemRole: 'LOCAL_REGISTRAR', - role: { - _id: '641179a48f408524083f7622', - labels: [ - { - lang: 'en', - label: 'Local Registrar', - __typename: 'RoleLabel' - }, - { - lang: 'fr', - label: 'Registraire local', - __typename: 'RoleLabel' - } - ], - __typename: 'Role' - }, - name: [ - { - firstNames: 'Kennedy', - familyName: 'Mweene', - use: 'en', - __typename: 'HumanName' - } - ], - avatar: null, - __typename: 'User' - }, - comments: [], - input: [], - output: [], - signature: { - data: signatureImage - }, - certificates: null, - __typename: 'History' - }, - { - date: '2022-03-25T10:07:26.988+00:00', - regStatus: 'REGISTERED', - action: null, - reinstated: false, - location: { - id: 'ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - name: 'Ibombo', - __typename: 'Location' - }, - office: { - id: '4bf3e2ac-99f5-468c-b974-966f725aaab0', - name: 'Ibombo District Office', - __typename: 'Location' - }, - user: { - id: '622f81b42cd537bf91daa106', - systemRole: 'LOCAL_REGISTRAR', - role: { - _id: '641179a48f408524083f7622', - labels: [ - { - lang: 'en', - label: 'Local Registrar', - __typename: 'RoleLabel' - }, - { - lang: 'fr', - label: 'Registraire local', - __typename: 'RoleLabel' - } - ], - __typename: 'Role' - }, - name: [ - { - firstNames: 'Kennedy', - familyName: 'Mweene', - use: 'en', - __typename: 'HumanName' - } - ], - avatar: null, - __typename: 'User' - }, - comments: [], - input: [], - output: [], - signature: { - data: signatureImage - }, - certificates: null, - __typename: 'History' - }, - { - date: '2022-03-25T06:55:46.119+00:00', - action: 'DOWNLOADED', - reinstated: false, - location: { - id: 'ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - name: 'Ibombo', - __typename: 'Location' - }, - office: { - id: '4bf3e2ac-99f5-468c-b974-966f725aaab0', - name: 'Ibombo District Office', - __typename: 'Location' - }, - user: { - id: '622f81b42cd537bf91daa106', - systemRole: 'LOCAL_REGISTRAR', - role: { - _id: '641179a48f408524083f7622', - labels: [ - { - lang: 'en', - label: 'Local Registrar', - __typename: 'RoleLabel' - }, - { - lang: 'fr', - label: 'Registraire local', - __typename: 'RoleLabel' - } - ], - __typename: 'Role' - }, - name: [ - { - firstNames: 'Kennedy', - familyName: 'Mweene', - use: 'en', - __typename: 'HumanName' - } - ], - avatar: null, - __typename: 'User' - }, - comments: [], - input: [], - output: [], - certificates: null, - __typename: 'History' - }, - { - date: '2022-03-25T06:36:17.234+00:00', - action: 'DOWNLOADED', - reinstated: false, - location: { - id: 'ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - name: 'Ibombo', - __typename: 'Location' - }, - office: { - id: '4bf3e2ac-99f5-468c-b974-966f725aaab0', - name: 'Ibombo District Office', - __typename: 'Location' - }, - user: { - id: '622f81b42cd537bf91daa106', - systemRole: 'LOCAL_REGISTRAR', - role: { - _id: '641179a48f408524083f7622', - labels: [ - { - lang: 'en', - label: 'Local Registrar', - __typename: 'RoleLabel' - }, - { - lang: 'fr', - label: 'Registraire local', - __typename: 'RoleLabel' - } - ], - __typename: 'Role' - }, - name: [ - { - firstNames: 'Kennedy', - familyName: 'Mweene', - use: 'en', - __typename: 'HumanName' - } - ], - avatar: null, - __typename: 'User' - }, - comments: [], - input: [], - output: [], - certificates: null, - __typename: 'History' - }, - { - date: '2022-03-25T05:53:43.728+00:00', - action: 'DOWNLOADED', - reinstated: false, - location: { - id: 'ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - name: 'Ibombo', - __typename: 'Location' - }, - office: { - id: '4bf3e2ac-99f5-468c-b974-966f725aaab0', - name: 'Ibombo District Office', - __typename: 'Location' - }, - user: { - id: '622f81b42cd537bf91daa106', - systemRole: 'LOCAL_REGISTRAR', - role: { - _id: '641179a48f408524083f7622', - labels: [ - { - lang: 'en', - label: 'Local Registrar', - __typename: 'RoleLabel' - }, - { - lang: 'fr', - label: 'Registraire local', - __typename: 'RoleLabel' - } - ], - __typename: 'Role' - }, - name: [ - { - firstNames: 'Kennedy', - familyName: 'Mweene', - use: 'en', - __typename: 'HumanName' - } - ], - avatar: null, - __typename: 'User' - }, - comments: [], - input: [], - output: [], - certificates: null, - __typename: 'History' - }, - { - date: '2022-03-25T05:53:07.817+00:00', - action: 'DOWNLOADED', - reinstated: false, - location: { - id: 'ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - name: 'Ibombo', - __typename: 'Location' - }, - office: { - id: '4bf3e2ac-99f5-468c-b974-966f725aaab0', - name: 'Ibombo District Office', - __typename: 'Location' - }, - user: { - id: '622f81b42cd537bf91daa106', - systemRole: 'LOCAL_REGISTRAR', - role: { - _id: '641179a48f408524083f7622', - labels: [ - { - lang: 'en', - label: 'Local Registrar', - __typename: 'RoleLabel' - }, - { - lang: 'fr', - label: 'Registraire local', - __typename: 'RoleLabel' - } - ], - __typename: 'Role' - }, - name: [ - { - firstNames: 'Kennedy', - familyName: 'Mweene', - use: 'en', - __typename: 'HumanName' - } - ], - avatar: null, - __typename: 'User' - }, - comments: [], - input: [], - output: [], - certificates: null, - __typename: 'History' - }, - { - date: '2022-03-24T13:35:14.047+00:00', - action: 'DOWNLOADED', - reinstated: false, - location: { - id: 'ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - name: 'Ibombo', - __typename: 'Location' - }, - office: { - id: '4bf3e2ac-99f5-468c-b974-966f725aaab0', - name: 'Ibombo District Office', - __typename: 'Location' - }, - user: { - id: '622f81b42cd537bf91daa106', - systemRole: 'LOCAL_REGISTRAR', - role: { - _id: '641179a48f408524083f7622', - labels: [ - { - lang: 'en', - label: 'Local Registrar', - __typename: 'RoleLabel' - }, - { - lang: 'fr', - label: 'Registraire local', - __typename: 'RoleLabel' - } - ], - __typename: 'Role' - }, - name: [ - { - firstNames: 'Kennedy', - familyName: 'Mweene', - use: 'en', - __typename: 'HumanName' - } - ], - avatar: null, - __typename: 'User' - }, - comments: [], - input: [], - output: [], - certificates: null, - __typename: 'History' - }, - { - date: '2022-03-24T13:21:06.687+00:00', - action: 'DOWNLOADED', - reinstated: false, - location: { - id: 'ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - name: 'Ibombo', - __typename: 'Location' - }, - office: { - id: '4bf3e2ac-99f5-468c-b974-966f725aaab0', - name: 'Ibombo District Office', - __typename: 'Location' - }, - user: { - id: '622f81b42cd537bf91daa106', - systemRole: 'LOCAL_REGISTRAR', - role: { - _id: '641179a48f408524083f7622', - labels: [ - { - lang: 'en', - label: 'Local Registrar', - __typename: 'RoleLabel' - }, - { - lang: 'fr', - label: 'Registraire local', - __typename: 'RoleLabel' - } - ], - __typename: 'Role' - }, - name: [ - { - firstNames: 'Kennedy', - familyName: 'Mweene', - use: 'en', - __typename: 'HumanName' - } - ], - avatar: null, - __typename: 'User' - }, - comments: [], - input: [], - output: [], - certificates: null, - __typename: 'History' - }, - { - date: '2022-03-24T13:10:36.259+00:00', - action: 'DOWNLOADED', - reinstated: false, - location: { - id: 'ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - name: 'Ibombo', - __typename: 'Location' - }, - office: { - id: '4bf3e2ac-99f5-468c-b974-966f725aaab0', - name: 'Ibombo District Office', - __typename: 'Location' - }, - user: { - id: '622f81b42cd537bf91daa106', - systemRole: 'LOCAL_REGISTRAR', - role: { - _id: '641179a48f408524083f7622', - labels: [ - { - lang: 'en', - label: 'Local Registrar', - __typename: 'RoleLabel' - }, - { - lang: 'fr', - label: 'Registraire local', - __typename: 'RoleLabel' - } - ], - __typename: 'Role' - }, - name: [ - { - firstNames: 'Kennedy', - familyName: 'Mweene', - use: 'en', - __typename: 'HumanName' - } - ], - avatar: null, - __typename: 'User' - }, - comments: [], - input: [], - output: [], - certificates: null, - __typename: 'History' - }, - { - date: '2022-03-24T12:50:10.340+00:00', - action: 'DOWNLOADED', - reinstated: false, - location: { - id: 'ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - name: 'Ibombo', - __typename: 'Location' - }, - office: { - id: '4bf3e2ac-99f5-468c-b974-966f725aaab0', - name: 'Ibombo District Office', - __typename: 'Location' - }, - user: { - id: '622f81b42cd537bf91daa106', - systemRole: 'LOCAL_REGISTRAR', - role: { - _id: '641179a48f408524083f7622', - labels: [ - { - lang: 'en', - label: 'Local Registrar', - __typename: 'RoleLabel' - }, - { - lang: 'fr', - label: 'Registraire local', - __typename: 'RoleLabel' - } - ], - __typename: 'Role' - }, - name: [ - { - firstNames: 'Kennedy', - familyName: 'Mweene', - use: 'en', - __typename: 'HumanName' - } - ], - avatar: null, - __typename: 'User' - }, - comments: [], - input: [], - output: [], - certificates: null, - __typename: 'History' - }, - { - date: '2022-03-24T12:31:50.360+00:00', - action: 'DOWNLOADED', - reinstated: false, - location: { - id: 'ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - name: 'Ibombo', - __typename: 'Location' - }, - office: { - id: '4bf3e2ac-99f5-468c-b974-966f725aaab0', - name: 'Ibombo District Office', - __typename: 'Location' - }, - user: { - id: '622f81b42cd537bf91daa106', - systemRole: 'LOCAL_REGISTRAR', - role: { - _id: '641179a48f408524083f7622', - labels: [ - { - lang: 'en', - label: 'Local Registrar', - __typename: 'RoleLabel' - }, - { - lang: 'fr', - label: 'Registraire local', - __typename: 'RoleLabel' - } - ], - __typename: 'Role' - }, - name: [ - { - firstNames: 'Kennedy', - familyName: 'Mweene', - use: 'en', - __typename: 'HumanName' - } - ], - avatar: null, - __typename: 'User' - }, - comments: [], - input: [], - output: [], - certificates: null, - __typename: 'History' - }, - { - date: '2022-03-24T12:29:48.346+00:00', - action: 'DOWNLOADED', - reinstated: false, - location: { - id: 'ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - name: 'Ibombo', - __typename: 'Location' - }, - office: { - id: '4bf3e2ac-99f5-468c-b974-966f725aaab0', - name: 'Ibombo District Office', - __typename: 'Location' - }, - user: { - id: '622f81b42cd537bf91daa106', - systemRole: 'LOCAL_REGISTRAR', - role: { - _id: '641179a48f408524083f7622', - labels: [ - { - lang: 'en', - label: 'Local Registrar', - __typename: 'RoleLabel' - }, - { - lang: 'fr', - label: 'Registraire local', - __typename: 'RoleLabel' - } - ], - __typename: 'Role' - }, - name: [ - { - firstNames: 'Kennedy', - familyName: 'Mweene', - use: 'en', - __typename: 'HumanName' - } - ], - avatar: null, - __typename: 'User' - }, - comments: [], - input: [], - output: [], - certificates: null, - __typename: 'History' - }, - { - date: '2022-03-24T12:16:13.229+00:00', - action: 'DOWNLOADED', - reinstated: false, - location: { - id: 'ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - name: 'Ibombo', - __typename: 'Location' - }, - office: { - id: '4bf3e2ac-99f5-468c-b974-966f725aaab0', - name: 'Ibombo District Office', - __typename: 'Location' - }, - user: { - id: '622f81b42cd537bf91daa106', - systemRole: 'LOCAL_REGISTRAR', - role: { - _id: '641179a48f408524083f7622', - labels: [ - { - lang: 'en', - label: 'Local Registrar', - __typename: 'RoleLabel' - }, - { - lang: 'fr', - label: 'Registraire local', - __typename: 'RoleLabel' - } - ], - __typename: 'Role' - }, - name: [ - { - firstNames: 'Kennedy', - familyName: 'Mweene', - use: 'en', - __typename: 'HumanName' - } - ], - avatar: null, - __typename: 'User' - }, - comments: [], - input: [], - output: [], - certificates: null, - __typename: 'History' - }, - { - date: '2022-03-24T12:16:08.295+00:00', - action: 'REGISTERED', - reinstated: false, - location: { - id: 'ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - name: 'Ibombo', - __typename: 'Location' - }, - office: { - id: '4bf3e2ac-99f5-468c-b974-966f725aaab0', - name: 'Ibombo District Office', - __typename: 'Location' - }, - user: { - id: '622f81b42cd537bf91daa106', - systemRole: 'LOCAL_REGISTRAR', - role: { - _id: '641179a48f408524083f7622', - labels: [ - { - lang: 'en', - label: 'Local Registrar', - __typename: 'RoleLabel' - }, - { - lang: 'fr', - label: 'Registraire local', - __typename: 'RoleLabel' - } - ], - __typename: 'Role' - }, - name: [ - { - firstNames: 'Kennedy', - familyName: 'Mweene', - use: 'en', - __typename: 'HumanName' - } - ], - avatar: null, - __typename: 'User' - }, - comments: [], - input: [], - output: [], - certificates: null, - __typename: 'History' - }, - { - date: '2022-03-24T12:16:08.173+00:00', - action: 'WAITING_VALIDATION', - reinstated: false, - location: { - id: 'ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - name: 'Ibombo', - __typename: 'Location' - }, - office: { - id: '4bf3e2ac-99f5-468c-b974-966f725aaab0', - name: 'Ibombo District Office', - address: { - state: 'Central', - district: 'Ibombo' - }, - __typename: 'Location' - }, - user: { - id: '622f81b42cd537bf91daa106', - systemRole: 'LOCAL_REGISTRAR', - role: { - _id: '641179a48f408524083f7622', - labels: [ - { - lang: 'en', - label: 'Local Registrar', - __typename: 'RoleLabel' - }, - { - lang: 'fr', - label: 'Registraire local', - __typename: 'RoleLabel' - } - ], - __typename: 'Role' - }, - name: [ - { - firstNames: 'Felix', - familyName: 'Katongo', - use: 'en', - __typename: 'HumanName' - } - ], - avatar: null, - __typename: 'User' - }, - comments: [], - input: [], - output: [], - certificates: null, - __typename: 'History' - } - ], - __typename: 'BirthRegistration' -} - -const dummyDeathRegistrationResponse = { - _fhirIDMap: { - composition: 'b68d5ca8-1b47-479a-a1c0-52ff210a3452', - encounter: '871b7abe-5e4e-4937-b0d1-4680b2dbc330', - eventLocation: 'ec396045-3437-4224-8e03-f299e17158e5', - observation: { - mannerOfDeath: '9603d6d8-80a0-4d1f-8c08-a6f6ae91e56d', - deathDescription: 'beab5f76-c30b-47f6-917f-5dfd3f56e488', - causeOfDeathMethod: 'eee32aa4-ce32-4026-90bb-991dce3deca1', - causeOfDeathEstablished: 'ca6157bc-8282-4f95-98b2-22fedbb6a893' - } - }, - id: '70620dec-57db-4d57-bb54-dbc3a6447fa7', - deceased: { - id: '0673acaa-8843-4d16-b21d-ce8eb95c10c7', - name: [ - { - use: 'en', - firstNames: 'Michael', - familyName: 'Jones', - __typename: 'HumanName' - } - ], - birthDate: '2000-02-19', - age: null, - gender: 'male', - maritalStatus: 'MARRIED', - nationality: ['FAR'], - identifier: [ - { - id: '123456789', - type: 'NATIONAL_ID', - otherType: null, - __typename: 'IdentityType' - } - ], - deceased: { - deathDate: '2020-02-15', - __typename: 'Deceased' - }, - address: [ - { - type: 'PRIMARY_ADDRESS', - line: ['', '', '', '', '', '', 'URBAN'], - district: 'ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - state: 'df669feb-61a3-4984-ab24-4b28511b472a', - city: null, - postalCode: null, - country: 'FAR', - __typename: 'Address' - } - ], - __typename: 'Person' - }, - informant: { - id: '0b057225-a1fd-43a5-868f-5066fb01691c', - relationship: 'SPOUSE', - otherRelationship: null, - individual: { - id: '741f16ac-28fe-4de7-9d3c-dc9e180fa1c8', - identifier: [ - { - id: '123456888', - type: 'NATIONAL_ID', - otherType: null, - __typename: 'IdentityType' - } - ], - name: [ - { - use: 'en', - firstNames: 'Test Application', - familyName: 'Will Be Updated', - __typename: 'HumanName' - } - ], - nationality: ['FAR'], - occupation: null, - birthDate: null, - telecom: null, - address: [ - { - type: 'PRIMARY_ADDRESS', - line: ['', '', '', '', '', '', 'URBAN'], - district: 'ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - state: 'df669feb-61a3-4984-ab24-4b28511b472a', - city: null, - postalCode: null, - country: 'FAR', - __typename: 'Address' - } - ], - __typename: 'Person' - }, - __typename: 'RelatedPerson' - }, - medicalPractitioner: null, - registration: { - id: 'a288f6d2-7aa5-4572-8b1b-af7ca3ce0a78', - contact: 'SPOUSE', - informantType: 'SPOUSE', - otherInformantType: null, - contactRelationship: null, - contactPhoneNumber: '+260787877878', - status: [ - { - comments: null, - type: 'REGISTERED', - timestamp: '2022-03-25T12:30:34.337Z', - location: { - name: 'Ibombo', - alias: ['Ibombo'], - __typename: 'Location' - }, - office: { - name: 'Ibombo District Office', - alias: ['Ibombo District Office'], - address: { - district: 'Ibombo District', - state: 'Central Province', - __typename: 'Address' - }, - partOf: 'Location/ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - __typename: 'Location' - }, - __typename: 'RegWorkflow' - }, - { - comments: null, - type: 'REGISTERED', - timestamp: '2022-03-25T12:30:34.337Z', - location: { - name: 'Ibombo', - alias: ['Ibombo'], - __typename: 'Location' - }, - office: { - name: 'Ibombo District Office', - alias: ['Ibombo District Office'], - address: { - district: 'Ibombo District', - state: 'Central Province', - __typename: 'Address' - }, - partOf: 'Location/ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - __typename: 'Location' - }, - __typename: 'RegWorkflow' - }, - { - comments: null, - type: 'WAITING_VALIDATION', - timestamp: '2022-03-25T12:30:34.337Z', - location: { - name: 'Ibombo', - alias: ['Ibombo'], - __typename: 'Location' - }, - office: { - name: 'Ibombo District Office', - alias: ['Ibombo District Office'], - address: { - district: 'Ibombo District', - state: 'Central Province', - __typename: 'Address' - }, - __typename: 'Location' - }, - partOf: 'Location/ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - __typename: 'RegWorkflow' - } - ], - type: 'DEATH', - trackingId: 'D0FLRZW', - registrationNumber: '2022D0FLRZW', - __typename: 'Registration' - }, - questionnaire: null, - eventLocation: { - id: 'f0517084-664e-434c-8ed3-2dc58ceabcfb', - type: 'PRIMARY_ADDRESS', - address: { - type: 'PRIMARY_ADDRESS', - line: ['', '', '', '', '', '', 'URBAN'], - district: 'ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - state: 'df669feb-61a3-4984-ab24-4b28511b472a', - city: null, - postalCode: null, - country: 'FAR', - __typename: 'Address' - }, - __typename: 'Location' - }, - mannerOfDeath: 'NATURAL_CAUSES', - causeOfDeathEstablished: 'true', - causeOfDeathMethod: 'VERBAL_AUTOPSY', - causeOfDeath: null, - deathDescription: 'Verbal autopsy description', - maleDependentsOfDeceased: null, - femaleDependentsOfDeceased: null, - history: [ - { - date: '2022-03-25T12:30:51.727+00:00', - regStatus: 'REGISTERED', - reinstated: false, - location: { - id: 'ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - name: 'Ibombo', - __typename: 'Location' - }, - office: { - id: '4bf3e2ac-99f5-468c-b974-966f725aaab0', - name: 'Ibombo District Office', - address: { - state: 'Central', - district: 'Ibombo' - }, - __typename: 'Location' - }, - user: { - id: '622f81b42cd537bf91daa106', - systemRole: 'LOCAL_REGISTRAR', - role: { - _id: '641179a48f408524083f7622', - labels: [ - { - lang: 'en', - label: 'Local Registrar', - __typename: 'RoleLabel' - }, - { - lang: 'fr', - label: 'Registraire local', - __typename: 'RoleLabel' - } - ], - __typename: 'Role' - }, - name: [ - { - firstNames: 'Kennedy', - familyName: 'Mweene', - use: 'en', - __typename: 'HumanName' - } - ], - avatar: null, - __typename: 'User' - }, - comments: [], - input: [], - output: [], - signature: { - data: signatureImage - }, - certificates: null, - __typename: 'History' - }, - { - date: '2022-03-25T12:30:34.653+00:00', - action: null, - regStatus: 'REGISTERED', - reinstated: false, - location: { - id: 'ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - name: 'Ibombo', - __typename: 'Location' - }, - office: { - id: '4bf3e2ac-99f5-468c-b974-966f725aaab0', - name: 'Ibombo District Office', - __typename: 'Location' - }, - user: { - id: '622f81b42cd537bf91daa106', - systemRole: 'LOCAL_REGISTRAR', - role: { - _id: '641179a48f408524083f7622', - labels: [ - { - lang: 'en', - label: 'Local Registrar', - __typename: 'RoleLabel' - }, - { - lang: 'fr', - label: 'Registraire local', - __typename: 'RoleLabel' - } - ], - __typename: 'Role' - }, - name: [ - { - firstNames: 'Kennedy', - familyName: 'Mweene', - use: 'en', - __typename: 'HumanName' - } - ], - avatar: null, - __typename: 'User' - }, - comments: [], - input: [], - output: [], - signature: { - data: signatureImage - }, - certificates: null, - __typename: 'History' - }, - { - date: '2022-03-25T12:30:34.597+00:00', - action: 'WAITING_VALIDATION', - reinstated: false, - location: { - id: 'ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - name: 'Ibombo', - __typename: 'Location' - }, - office: { - id: '4bf3e2ac-99f5-468c-b974-966f725aaab0', - name: 'Ibombo District Office', - address: { - state: 'Central', - district: 'Ibombo' - }, - __typename: 'Location' - }, - user: { - id: '622f81b42cd537bf91daa106', - systemRole: 'LOCAL_REGISTRAR', - role: { - _id: '641179a48f408524083f7622', - labels: [ - { - lang: 'en', - label: 'Local Registrar', - __typename: 'RoleLabel' - }, - { - lang: 'fr', - label: 'Registraire local', - __typename: 'RoleLabel' - } - ], - __typename: 'Role' - }, - name: [ - { - firstNames: 'Felix', - familyName: 'Katongo', - use: 'en', - __typename: 'HumanName' - } - ], - avatar: null, - __typename: 'User' - }, - comments: [], - input: [], - output: [], - certificates: null, - __typename: 'History' - } - ], - __typename: 'DeathRegistration' -} - -const dummyMarriageRegistrationResponse = { - _fhirIDMap: { - composition: 'd2de3292-09ac-42e5-97ea-d553578d0f62', - encounter: 'db4b8cc7-d440-40d0-9bb7-f5ccfbe31ab0', - eventLocation: 'fc388391-c8af-43c3-ba23-303735bf9bea', - observation: { - typeOfMarriage: 'fe675615-01bb-4d5b-b31a-09557e609464' - } - }, - id: 'd2de3292-09ac-42e5-97ea-d553578d0f62', - bride: { - id: 'e8efd318-9cc2-4f2d-8be3-50bc058e4bfb', - name: [ - { - use: 'en', - firstNames: 'Santina', - familyName: 'Mownie', - marriedLastName: 'Ginsen', - __typename: 'HumanName' - } - ], - birthDate: '1990-01-01', - maritalStatus: null, - ageOfIndividualInYears: null, - exactDateOfBirthUnknown: null, - dateOfMarriage: '2020-01-01', - nationality: ['FAR'], - identifier: [ - { - id: '1234567899', - type: 'NATIONAL_ID', - otherType: null, - __typename: 'IdentityType' - } - ], - address: [ - { - type: 'PRIMARY_ADDRESS', - line: ['', '', '', '', 'Mother village', 'RURAL'], - district: 'ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - state: 'df669feb-61a3-4984-ab24-4b28511b472a', - city: null, - postalCode: null, - country: 'FAR', - __typename: 'Address' - } - ], - telecom: null, - __typename: 'Person' - }, - groom: { - id: 'a1794572-0001-44d3-9b18-6f519343c849', - name: [ - { - use: 'en', - firstNames: 'Mr.', - familyName: 'Brownie', - marriedLastName: 'Ginsen', - __typename: 'HumanName' - } - ], - birthDate: '1990-01-01', - maritalStatus: null, - ageOfIndividualInYears: null, - exactDateOfBirthUnknown: null, - dateOfMarriage: '2020-01-01', - nationality: ['FAR'], - identifier: [ - { - id: '1234567890', - type: 'NATIONAL_ID', - otherType: null, - __typename: 'IdentityType' - } - ], - address: [ - { - type: 'PRIMARY_ADDRESS', - line: ['', '', '', '', '', 'URBAN', '', '', '', '', '', '', '', '', ''], - district: 'ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - state: 'df669feb-61a3-4984-ab24-4b28511b472a', - city: null, - postalCode: null, - country: 'FAR', - __typename: 'Address' - } - ], - telecom: null, - __typename: 'Person' - }, - witnessOne: { - id: '85e0e437-657e-41bc-81a6-435b578dc6e3', - relationship: 'headOfGroomFamily', - otherRelationship: null, - individual: { - id: '766b3e2f-c6dd-4e47-9642-f2ae43b6fbde', - identifier: null, - name: [ - { - use: 'en', - firstNames: 'Mr.', - familyName: 'Jonas', - __typename: 'HumanName' - } - ], - __typename: 'Person' - }, - __typename: 'RelatedPerson' - }, - witnessTwo: { - id: '596a5c23-1387-41d5-8173-6a4c5b6957c5', - relationship: 'headOfBrideFamily', - otherRelationship: null, - individual: { - id: '1b37736e-3606-4553-9de9-cc7b394260ae', - identifier: null, - name: [ - { - use: 'en', - firstNames: 'Mr.', - familyName: 'Flex', - __typename: 'HumanName' - } - ], - __typename: 'Person' - }, - __typename: 'RelatedPerson' - }, - registration: { - id: '914ae021-ffd4-423d-9d50-2f9af9ca23d8', - informantType: 'GROOM', - otherInformantType: null, - contact: 'GROOM', - contactRelationship: null, - contactPhoneNumber: '+260791111111', - informantsSignature: null, - duplicates: null, - attachments: null, - groomSignature: signatureImage, - brideSignature: signatureImage, - status: [ - { - comments: null, - type: 'REGISTERED', - timestamp: '2023-03-03T10:12:17.879Z', - office: { - name: 'Ibombo District Office', - alias: ['Ibombo District Office'], - address: { - district: 'Ibombo District', - state: 'Central Province', - __typename: 'Address' - }, - partOf: 'Location/ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - __typename: 'Location' - }, - __typename: 'RegWorkflow' - }, - { - comments: null, - type: 'DECLARED', - timestamp: '2023-03-03T09:59:33.849Z', - office: { - name: 'Ibombo District Office', - alias: ['Ibombo District Office'], - address: null, - __typename: 'Location', - partOf: 'Location/ecc5a78b-e7d9-4640-ac65-e591a6a9590f' - }, - __typename: 'RegWorkflow' - }, - { - comments: null, - type: 'DECLARED', - timestamp: '2023-03-03T09:57:16.204Z', - office: { - name: 'Ibombo District Office', - alias: ['Ibombo District Office'], - address: null, - __typename: 'Location', - partOf: 'Location/ecc5a78b-e7d9-4640-ac65-e591a6a9590f' - }, - __typename: 'RegWorkflow' - } - ], - type: 'MARRIAGE', - trackingId: 'MQMITHX', - registrationNumber: '2022MQMITHX', - mosipAid: null, - __typename: 'Registration' - }, - typeOfMarriage: 'MONOGAMY', - eventLocation: { - id: 'fc388391-c8af-43c3-ba23-303735bf9bea', - address: { - line: ['', '', '', '', '', 'URBAN', '', '', '', '', '', '', '', '', ''], - district: 'ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - state: 'df669feb-61a3-4984-ab24-4b28511b472a', - city: '', - postalCode: '', - country: 'FAR', - __typename: 'Address' - }, - __typename: 'Location' - }, - questionnaire: null, - history: [ - { - otherReason: '', - requester: '', - hasShowedVerifiedDocument: false, - date: '2023-03-03T10:12:17.931+00:00', - action: null, - regStatus: 'REGISTERED', - dhis2Notification: false, - statusReason: null, - reason: null, - location: { - id: 'bac22b09-1260-4a59-a5b9-c56c43ae889c', - name: 'Ibombo', - __typename: 'Location' - }, - office: { - id: '230236c1-6cff-4567-a71b-431cc4766f93', - name: 'Ibombo District Office', - __typename: 'Location' - }, - system: null, - user: { - id: '63c7ebee48dc29888b5b0204', - role: { - _id: '6401b9e2e725a5334670c440', - labels: [ - { - lang: 'en', - label: 'Local Registrar', - __typename: 'RoleLabel' - } - ], - __typename: 'Role' - }, - systemRole: 'LOCAL_REGISTRAR', - name: [ - { - firstNames: 'Kennedy', - familyName: 'Mweene', - use: 'en', - __typename: 'HumanName' - } - ], - avatar: null, - __typename: 'User' - }, - signature: { - data: signatureImage - }, - comments: [], - input: [], - output: [], - certificates: null, - __typename: 'History' - }, - { - otherReason: '', - requester: '', - hasShowedVerifiedDocument: false, - date: '2023-03-03T09:59:33.906+00:00', - action: 'DOWNLOADED', - regStatus: 'DECLARED', - dhis2Notification: false, - statusReason: null, - reason: null, - location: { - id: '852b103f-2fe0-4871-a323-51e51c6d9198', - name: 'Ibombo', - __typename: 'Location' - }, - office: { - id: '230236c1-6cff-4567-a71b-431cc4766f93', - name: 'Ibombo District Office', - __typename: 'Location' - }, - system: null, - user: { - id: '63c7ebed48dc29888b5b0202', - role: { - _id: '6401b9e2e725a5334670c43d', - labels: [ - { - lang: 'en', - label: 'Social Worker', - __typename: 'RoleLabel' - } - ], - __typename: 'Role' - }, - systemRole: 'FIELD_AGENT', - name: [ - { - firstNames: 'Kalusha', - familyName: 'Bwalya', - use: 'en', - __typename: 'HumanName' - } - ], - avatar: null, - __typename: 'User' - }, - signature: null, - comments: [], - input: [], - output: [], - certificates: null, - __typename: 'History' - }, - { - otherReason: '', - requester: '', - hasShowedVerifiedDocument: false, - date: '2023-03-03T09:57:16.345+00:00', - action: null, - regStatus: 'DECLARED', - dhis2Notification: false, - statusReason: null, - reason: null, - location: { - id: '852b103f-2fe0-4871-a323-51e51c6d9198', - name: 'Ibombo', - __typename: 'Location' - }, - office: { - id: '230236c1-6cff-4567-a71b-431cc4766f93', - name: 'Ibombo District Office', - __typename: 'Location' - }, - system: null, - user: { - id: '63c7ebed48dc29888b5b0202', - role: { - _id: '6401b9e2e725a5334670c43d', - labels: [ - { - lang: 'en', - label: 'Social Worker', - __typename: 'RoleLabel' - } - ], - __typename: 'Role' - }, - systemRole: 'FIELD_AGENT', - name: [ - { - firstNames: 'Kalusha', - familyName: 'Bwalya', - use: 'en', - __typename: 'HumanName' - } - ], - avatar: null, - __typename: 'User' - }, - signature: null, - comments: [], - input: [], - output: [], - certificates: null, - __typename: 'History' - } - ], - __typename: 'MarriageRegistration' -} - -const mockOfflineData: Partial = { - facilities: { - '5c6abc88-26b8-4834-a1a6-2992807e3a72': { - id: '5c6abc88-26b8-4834-a1a6-2992807e3a72', - name: 'ARK Private Clinic', - alias: 'ARK Private Clinic', - physicalType: 'Building', - statisticalId: '123', - status: 'active', - type: 'HEALTH_FACILITY', - partOf: 'Location/f244b79e-16e7-40b2-834f-c1c57bd7eae8' - } - }, - locations: { - 'f244b79e-16e7-40b2-834f-c1c57bd7eae8': { - id: 'f244b79e-16e7-40b2-834f-c1c57bd7eae8', - name: 'Abwe', - alias: 'Abwe', - physicalType: 'Jurisdiction', - statisticalId: '123', - status: 'active', - jurisdictionType: 'DISTRICT', - type: 'ADMIN_STRUCTURE', - partOf: 'Location/df669feb-61a3-4984-ab24-4b28511b472a' - }, - 'ecc5a78b-e7d9-4640-ac65-e591a6a9590f': { - id: 'ecc5a78b-e7d9-4640-ac65-e591a6a9590f', - name: 'Ibombo', - alias: 'Ibombo', - physicalType: 'Jurisdiction', - statisticalId: '123', - status: 'active', - jurisdictionType: 'DISTRICT', - type: 'ADMIN_STRUCTURE', - partOf: 'Location/df669feb-61a3-4984-ab24-4b28511b472a' - }, - 'df669feb-61a3-4984-ab24-4b28511b472a': { - id: 'df669feb-61a3-4984-ab24-4b28511b472a', - name: 'Central', - alias: 'Central', - physicalType: 'Jurisdiction', - statisticalId: '123', - status: 'active', - jurisdictionType: 'STATE', - type: 'ADMIN_STRUCTURE', - partOf: 'Location/0' - } - } -} -const mockUserDetails: UserDetails = { - id: 'f244b79e-16e7-40b2-834f-c1c57bd7eae8', - creationDate: '2022-03-25T12:30:34.597+00:00', - localRegistrar: { - name: [ - { - use: 'en', - firstNames: 'Kennedy', - familyName: 'Mweene' - // __typename: 'HumanName' - } - ], - role: 'LOCAL_REGISTRAR' as SystemRoleType, - signature: { - type: 'image/png' - // __typename: 'Signature' - } - // __typename: 'LocalRegistrar' - }, - userMgntUserID: '622f81b42cd537bf91daa10b', - practitionerId: '9c8a1a9f-f1d1-47f1-8874-5da5f238effa', - name: [ - { - use: 'en', - firstNames: 'Jonathan', - familyName: 'Campbell' - // __typename: 'HumanName' - } - ], - mobile: '+260921111111', - systemRole: SystemRoleType.NationalSystemAdmin, - role: { - _id: '778464c0-08f8-4fb7-8a37-b86d1efc462a', - labels: [ - { - lang: 'en', - label: 'NATIONAL_SYSTEM_ADMIN' - } - ] - }, - status: Status.Active, - primaryOffice: { - id: '4bf3e2ac-99f5-468c-b974-966f725aaab0', - name: 'Ibombo District Office', - alias: ['Ibombo District Office'], - status: 'active' - } -} - -export const getDummyDeclarationData = ( - event: string, - registerForm: { birth: IForm; death: IForm; marriage: IForm } -) => { - let response: Record, form: IForm - if (event === 'birth') { - response = dummyBirthRegistrationResponse - form = registerForm.birth - } else if (event === 'marriage') { - response = dummyMarriageRegistrationResponse - form = registerForm.marriage - } else { - response = dummyDeathRegistrationResponse - form = registerForm.death - } - return gqlToDraftTransformer( - form, - response, - mockOfflineData as IOfflineData, - mockUserDetails - ) -} - -export const getDummyCertificateTemplateData = ( - event: string, - registerForm: { birth: IForm; death: IForm; marriage: IForm } -) => { - const data = getDummyDeclarationData(event, registerForm) - return data.template -} diff --git a/packages/config/src/handlers/application/applicationConfigHandler.ts b/packages/config/src/handlers/application/applicationConfigHandler.ts index c74321d825..d68406605f 100644 --- a/packages/config/src/handlers/application/applicationConfigHandler.ts +++ b/packages/config/src/handlers/application/applicationConfigHandler.ts @@ -16,11 +16,13 @@ import { logger } from '@opencrvs/commons' import { badData, internal } from '@hapi/boom' import * as Joi from 'joi' import { merge, pick } from 'lodash' -import { getActiveCertificatesHandler } from '@config/handlers/certificate/certificateHandler' import getSystems from '@config/handlers/system/systemHandler' -import { getDocumentUrl } from '@config/services/documents' import { COUNTRY_CONFIG_URL } from '@config/config/constants' import fetch from 'node-fetch' +import { getToken } from '@config/utils/auth' +import { pipe } from 'fp-ts/lib/function' +import { verifyToken } from '@config/utils/verifyToken' +import { RouteScope } from '@config/config/routes' export const SystemRoleType = [ 'FIELD_AGENT', @@ -36,16 +38,7 @@ export default async function configHandler( ) { try { const [certificates, config, systems] = await Promise.all([ - getActiveCertificatesHandler(request, h).then((certs) => - Promise.all( - certs.map(async (cert) => ({ - ...cert, - svgCode: await getDocumentUrl(cert.svgCode, { - Authorization: request.headers.authorization - }) - })) - ) - ), + getCertificates(request, h), getApplicationConfig(request, h), getSystems(request, h) ]) @@ -63,6 +56,29 @@ export default async function configHandler( } } +async function getCertificates(request: Hapi.Request, h: Hapi.ResponseToolkit) { + const authToken = getToken(request) + const decodedOrError = pipe(authToken, verifyToken) + if (decodedOrError._tag === 'Left') { + return [] + } + const { scope } = decodedOrError.right + + if ( + scope && + (scope.includes(RouteScope.CERTIFY) || + scope.includes(RouteScope.VALIDATE) || + scope.includes(RouteScope.NATLSYSADMIN)) + ) { + return Promise.all( + (['birth', 'death', 'marriage'] as const).map(async (event) => { + const response = await getEventCertificate(event, getToken(request)) + return response + }) + ) + } + return [] +} async function getConfigFromCountry(authToken?: string) { const url = new URL('application-config', COUNTRY_CONFIG_URL).toString() @@ -97,6 +113,27 @@ function stripIdFromApplicationConfig(config: Record) { ) } +async function getEventCertificate( + event: 'birth' | 'death' | 'marriage', + authToken: string +) { + const url = new URL( + `/certificates/${event}.svg`, + COUNTRY_CONFIG_URL + ).toString() + + const res = await fetch(url, { + headers: { Authorization: `Bearer ${authToken}` } + }) + + if (!res.ok) { + throw new Error(`Failed to fetch ${event} certificate: ${res.statusText}`) + } + const responseText = await res.text() + + return { svgCode: responseText, event } +} + export async function getApplicationConfig( request?: Hapi.Request, h?: Hapi.ResponseToolkit diff --git a/packages/data-seeder/src/certificates.ts b/packages/data-seeder/src/certificates.ts deleted file mode 100644 index 8c093ede91..0000000000 --- a/packages/data-seeder/src/certificates.ts +++ /dev/null @@ -1,138 +0,0 @@ -/* - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at https://mozilla.org/MPL/2.0/. - * - * OpenCRVS is also distributed under the terms of the Civil Registration - * & Healthcare Disclaimer located at http://opencrvs.org/license. - * - * Copyright (C) The OpenCRVS Authors located at https://github.com/opencrvs/opencrvs-core/blob/master/AUTHORS. - */ - -import { COUNTRY_CONFIG_HOST, GATEWAY_HOST } from './constants' -import fetch from 'node-fetch' -import { parseGQLResponse, raise } from './utils' -import { TypeOf, z } from 'zod' -import { print } from 'graphql' -import gql from 'graphql-tag' -import { inspect } from 'util' - -type CertificateMeta = TypeOf[number] - -const CertificateSchema = z.array( - z.object({ - event: z.enum(['birth', 'death', 'marriage']), - fileName: z.string(), - svgCode: z.string() - }) -) - -async function getCertificate(token: string) { - const url = new URL('certificates', COUNTRY_CONFIG_HOST).toString() - const res = await fetch(url, { - method: 'GET', - headers: { - 'Content-Type': 'application/json', - Authorization: `Bearer ${token}` - } - }) - if (!res.ok) { - raise(`Expected to get the certificates from ${url}`) - } - const parsedCertificates = CertificateSchema.safeParse(await res.json()) - if (!parsedCertificates.success) { - raise( - `Getting certificates from country-config errored with: ${inspect( - parsedCertificates.error.issues - )}` - ) - } - return parsedCertificates.data -} - -const createCertificateQuery = print(gql` - mutation createCertificate($certificate: CertificateSVGInput!) { - createOrUpdateCertificateSVG(certificateSVG: $certificate) { - id - } - } -`) - -type CertificateInput = { - svgCode: string - svgFilename: string - user: string - event: CertificateMeta['event'] - status: 'ACTIVE' | 'INACTIVE' -} - -const getCertificateQuery = print(gql` - query getCertificate($status: CertificateStatus!, $event: Event!) { - getCertificateSVG(status: $status, event: $event) { - id - } - } -`) - -async function certificatesAlreadyExist( - status: 'ACTIVE' | 'INACTIVE', - event: CertificateMeta['event'], - token: string -) { - const res = await fetch(`${GATEWAY_HOST}/graphql`, { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - Authorization: `Bearer ${token}` - }, - body: JSON.stringify({ - query: getCertificateQuery, - variables: { status, event } - }) - }) - const certificate = parseGQLResponse<{ - getCertificateSVG: [{ id: string }] | null - }>(await res.json()) - return Boolean(certificate.getCertificateSVG) -} - -async function uploadCertificate(token: string, certificate: CertificateInput) { - if ( - await certificatesAlreadyExist(certificate.status, certificate.event, token) - ) { - console.log( - `Certificate for "${certificate.event}" event already exists. Skipping` - ) - return - } - const res = await fetch(`${GATEWAY_HOST}/graphql`, { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - Authorization: `Bearer ${token}` - }, - body: JSON.stringify({ - query: createCertificateQuery, - variables: { - certificate - } - }) - }) - parseGQLResponse<{ - createOrUpdateCertificateSVG: [{ id: string }] - }>(await res.json()) -} - -export async function seedCertificate(token: string) { - const certificates = await getCertificate(token) - await Promise.all( - certificates.map(async ({ fileName, ...certificate }) => { - await uploadCertificate(token, { - ...certificate, - svgFilename: fileName, - user: 'o.admin', - status: 'ACTIVE' - }) - }) - ) -} diff --git a/packages/data-seeder/src/index.ts b/packages/data-seeder/src/index.ts index 996f9dfa92..4b2b64a981 100644 --- a/packages/data-seeder/src/index.ts +++ b/packages/data-seeder/src/index.ts @@ -10,7 +10,6 @@ */ import { AUTH_HOST, GATEWAY_HOST, SUPER_USER_PASSWORD } from './constants' import fetch from 'node-fetch' -import { seedCertificate } from './certificates' import { seedLocations } from './locations' import { seedRoles } from './roles' import { seedUsers } from './users' @@ -97,8 +96,6 @@ async function main() { await seedLocations(token) console.log('Seeding users') await seedUsers(token, roleIdMap) - console.log('Seeding certificates') - await seedCertificate(token) await deactivateSuperuser(token) }