Jobs datamodel updates + creation of cards for jobs detail screen.

This commit is contained in:
Patrick Fic
2020-01-09 11:47:18 -08:00
parent 16eceb192f
commit e3357910b9
33 changed files with 907 additions and 22 deletions

View File

@@ -153,6 +153,62 @@ export const GET_JOB_BY_PK = gql`
}
`;
export const QUERY_JOB_CARD_DETAILS = gql`
query QUERY_JOB_CARD_DETAILS($id: uuid!) {
jobs_by_pk(id: $id) {
pit_owner_first_name
pit_owner_last_name
pit_owner_phone
pit_owner_email
owner {
allow_text_message
preferred_contact
}
vehicle {
v_model_yr
v_make_desc
v_model_desc
v_color
plate_no
}
pit_vehicle_plate_no
actual_completion
actual_delivery
actual_in
created_at
est_number
id
local_tax_rate
est_co_nm
est_ph1
est_ea
est_ct_fn
est_ct_ln
regie_number
ro_number
scheduled_completion
scheduled_in
scheduled_delivery
job_status {
name
}
updated_at
claim_total
deductible
vehicle {
id
plate_no
v_vin
v_model_yr
v_model_desc
v_make_desc
v_color
}
}
}
`;
export const UPDATE_JOB = gql`
mutation UPDATE_JOB($jobId: uuid!, $job: jobs_set_input!) {
update_jobs(where: { id: { _eq: $jobId } }, _set: $job) {