Added colors to appointments BOD-393

This commit is contained in:
Patrick Fic
2020-09-23 11:35:14 -07:00
parent 6c2e0dad45
commit 1a89d683d7
30 changed files with 826 additions and 5 deletions

View File

@@ -19,6 +19,7 @@ export const QUERY_ALL_ACTIVE_APPOINTMENTS = gql`
title
isintake
block
color
job {
ro_number
ownr_ln
@@ -112,6 +113,24 @@ export const QUERY_APPOINTMENT_BY_DATE = gql`
}
`;
export const UPDATE_APPOINTMENT = gql`
mutation UPDATE_APPOINTMENT($appid: uuid!, $app: appointments_set_input) {
update_appointments(where: { id: { _eq: $appid } }, _set: $app) {
returning {
id
start
id
end
arrived
title
isintake
block
color
}
}
}
`;
export const CANCEL_APPOINTMENT_BY_ID = gql`
mutation CANCEL_APPOINTMENT_BY_ID($appid: uuid!) {
update_appointments(

View File

@@ -70,6 +70,7 @@ export const QUERY_BODYSHOP = gql`
md_labor_rates
deliverchecklist
target_touchtime
appt_colors
employees {
id
first_name
@@ -138,6 +139,7 @@ export const UPDATE_SHOP = gql`
md_labor_rates
deliverchecklist
target_touchtime
appt_colors
employees {
id
first_name