Added colors to appointments BOD-393
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user