26 lines
557 B
TypeScript
26 lines
557 B
TypeScript
import { gql } from '@apollo/client';
|
|
import { IQueryToCRMGQL } from 'core/types/Calculation/Requests';
|
|
|
|
const query = gql`
|
|
query($evo_account_type: [Int!], $statecode: Int) {
|
|
insuranceCompanies: accounts(
|
|
evo_account_type: $evo_account_type
|
|
statecode: $statecode
|
|
) {
|
|
accountid
|
|
name
|
|
evo_type_ins_policy
|
|
evo_id_elt
|
|
}
|
|
}
|
|
`;
|
|
|
|
const variables = { evo_account_type: [100000002], statecode: 0 };
|
|
const toOptions = ['insuranceCompanies'];
|
|
|
|
export default {
|
|
query,
|
|
variables,
|
|
toOptions,
|
|
} as IQueryToCRMGQL;
|