Added job intake and delivery bypass.

This commit is contained in:
Patrick Fic
2024-03-12 08:44:35 -04:00
parent 1ae2133d23
commit 53a55dd1ef
8 changed files with 265 additions and 3 deletions

View File

@@ -1201,6 +1201,21 @@ export const UPDATE_JOB = gql`
}
}
`;
export const JOB_PRODUCTION_TOGGLE = gql`
mutation UPDATE_JOB($jobId: uuid!, $job: jobs_set_input!) {
update_jobs(where: { id: { _eq: $jobId } }, _set: $job) {
returning {
id
status
inproduction
actual_completion
scheduled_delivery
actual_delivery
scheduled_completion
}
}
}
`;
export const UPDATE_JOB_ASSIGNMENTS = gql`
mutation UPDATE_JOB_ASSIGNMENTS($jobId: uuid!, $job: jobs_set_input!) {