import { client } from '@client/utils/apolloClient' ; import { REGISTRATION_HOME_QUERY } from '@client/views/RegistrationHome/queries' ; export async function syncRegistrarWorkqueue ( locationId , reviewStatuses , inProgressCount , reviewCount , rejectCount , approvalCount , externalValidationCount , printCount , inProgressSkip , reviewSkip , rejectSkip , approvalSkip , externalValidationSkip , printSkip ) { try { const queryResult = await client . query ( { query : REGISTRATION_HOME_QUERY , variables : { locationIds : [ locationId ] , count : 10 , inProgressCount , reviewCount , rejectCount , approvalCount , externalValidationCount , printCount , reviewStatuses : reviewStatuses , inProgressSkip : inProgressSkip , reviewSkip : reviewSkip , rejectSkip : rejectSkip , approvalSkip : approvalSkip , externalValidationSkip : externalValidationSkip , printSkip : printSkip } , fetchPolicy : 'no-cache' } ) ; return queryResult . data ; } catch ( exception ) { return undefined ; } }