- Rough in front end / backend

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-01-23 01:37:11 -05:00
parent 52f8eabd2b
commit 09d112350a
6 changed files with 123 additions and 11 deletions

View File

@@ -518,6 +518,20 @@ exports.QUERY_PAYMENTS_FOR_EXPORT = `
}
}`;
exports.QUERY_TRANSITIONS_BY_JOBID = `query QUERY_TRANSITIONS_BY_JOBID($jobid: uuid!) {
transitions(where: {jobid: {_eq: $jobid}}, order_by: {id: asc}) {
start
end
value
prev_value
next_value
duration
type
created_at
updated_at
}
}`;
exports.QUERY_UPCOMING_APPOINTMENTS = `query QUERY_UPCOMING_APPOINTMENTS($now: timestamptz!, $jobId: uuid!) {
jobs_by_pk(id: $jobId) {
bodyshop {