Added new vehicle groupings RPS-74

This commit is contained in:
Patrick Fic
2021-02-17 14:25:15 -08:00
parent e53d3a2588
commit ddbeb39fe9
27 changed files with 1844 additions and 340 deletions

View File

@@ -91,6 +91,7 @@ export const QUERY_JOB_BY_PK = gql`
ro_number
updated_at
group
group_verified
v_age
v_type
loss_date

View File

@@ -15,6 +15,7 @@ export const REPORTING_GET_JOBS = gql`
ownr_fn
ins_co_nm
group
group_verified
clm_total
clm_no
close_date

View File

@@ -1,15 +1,20 @@
import gql from "graphql-tag";
export const QUERY_GROUPS_BY_MAKE_TYPE = gql`
query QUERY_GROUPS_BY_MAKE_TYPE(
$make: String!
$type: String
$isNull: Boolean
) {
veh_groups(
query QUERY_GROUPS_BY_MAKE_TYPE($make: String!, $type: jsonb, $date: date) {
groupings(
where: {
_and: { make: { _eq: $make } }
type: { _eq: $type, _is_null: $isNull }
_and: [
{ make: { _eq: $make } }
{ type: { _contains: $type } }
{ effective_date: { _lte: $date } }
{
_or: [
{ end_date: { _is_null: true } }
{ end_date: { _gt: $date } }
]
}
]
}
) {
id