UNPKG

viam-projectv-scan

Version:

ViaCheck deposit application

195 lines (181 loc) 3.63 kB
import gql from 'graphql-tag'; export const QUERY_AUTHENTICATION = gql` query { authenticationStatus { isAuthenticated token language agency } } `; export const QUERY_VERSION = gql` query { getVersionApi } `; export const GETAUDITREPORT = gql` query getAuditReport($input: auditParams!) { getAuditReport(input: $input) { cdCheque userName makerName valueCheck imgFrontCheck changeDate checkType checkDate account transit clearingDate checkStatus } } `; export const BATCH_QUERY = gql` query getBatchReport( $userParam: String $locationParam: String $fromDateParam: String! $toDateParam: String! ) { getBatchReport( userParam: $userParam locationParam: $locationParam fromDateParam: $fromDateParam toDateParam: $toDateParam ) { items batchID created amount name location userId locationId } } `; export const USERS_QUERY = gql` query getUsers($username: String!) { getUsers(username: $username) { idUser name username } } `; export const LOCATIONS_QUERY = gql` query getLocations($username: String!) { getLocations(username: $username) { idLocation name } } `; export const GET_RETURNED_CHECKS_REPORT = gql` query getReportReturnedChecks($input: ReturnedChecksParams!) { getReportReturnedChecks(input: $input) { check processed_date returned_date account amount transit agent reason ref_image_key fee user_name_agent } } `; export const BUILDFILEAUDITREPORT = gql` query BuildFileAuditReport( $agencyName: String! $headers: [String]! $content: [AuditFile]! $customerEmail: String! $generationDate: String! ) { BuildFileAuditReport( agencyName: $agencyName customerEmail: $customerEmail headers: $headers content: $content generationDate: $generationDate ) } `; export const BATCH_DETAIL_QUERY = gql` query getBatchReportDetail($batchID: Int!) { getBatchReportDetail(batchID: $batchID) { refImageKey account transit check_ checkDate amount checkStatus clearingDate payee message code } } `; export const CHECKDETAIL_REPORT = gql` query getCheckDetailsReport($input: checkDetailsParams!) { getCheckDetailsReport(input: $input) { agentID locationID created micrLine account checK_ amount transit checkStatus checkDate checkBranch cdchecK_PLUS returned reprocesado reprocesar checkID batchID refImageKey agent clearingDate } } `; export const GET_IMAGES = gql` query getImageByRefImageKey($refImageKey: String!) { getImageByRefImageKey(refImageKey: $refImageKey) { frontImg backImg } } `; export const GET_RETURN_CODES = gql` query getReturnCodes { getReturnCodes { returnID detailedReason } } `; export const GET_USERS_AND_LOCATIONS_QUERY = gql` query($username: String!) { getUsers(username: $username) { idUser name username } getLocations(username: $username) { idLocation name } } `;