UNPKG

@mojito-inc/core-service

Version:

Mojito Core API service for auction, payment, token

113 lines (110 loc) 2.14 kB
import { gql } from '@apollo/client'; const createApplicantMutation = gql ` mutation createApplicant($orgID: UUID1!, $input: ApplicantRequest!) { createApplicant(orgID: $orgID, input: $input) { id firstName lastName email dob href idNumbers { type value stateCode } address { flatNumber buildingNumber buildingName street subStreet town postcode country line1 line2 line3 state } } } `; const updateApplicantMutation = gql ` mutation updateApplicant($applicantID: String!, $input: ApplicantRequest!) { updateApplicant(applicantID: $applicantID, input: $input) { id firstName lastName email dob href idNumbers { type value stateCode } address { flatNumber buildingNumber buildingName street subStreet town postcode country line1 line2 line3 state } } } `; const getApplicantQueries = gql ` query getApplicant($organizationID: UUID1!) { getApplicant(organizationID: $organizationID) { id firstName lastName email dob href idNumbers { type value stateCode } address { flatNumber buildingNumber buildingName street subStreet town postcode country line1 line2 line3 state } } } `; const getSDKTokenQueries = gql ` query getSDKToken($applicantID: String!, $referrer: String!) { getSDKToken(applicantID: $applicantID, referrer: $referrer) { token } } `; const createCheckMutation = gql ` mutation createCheckMutation($applicantID: String!) { createCheck(applicantID: $applicantID) { id success } } `; export { createApplicantMutation, createCheckMutation, getApplicantQueries, getSDKTokenQueries, updateApplicantMutation };