Added scheduling routes for smart scheduling BOD-4

This commit is contained in:
Patrick Fic
2020-06-03 10:55:13 -07:00
parent d99dd89d67
commit 47f858920b
5 changed files with 115 additions and 8 deletions

View File

@@ -108,3 +108,23 @@ query QUERY_INVOICES_FOR_PAYABLES_EXPORT($invoices: [uuid!]!) {
}
`;
exports.QUERY_UPCOMING_APPOINTMENTS = `
query QUERY_UPCOMING_APPOINTMENTS($now: timestamptz!) {
appointments(where: {start: {_gt: $now}}) {
start
isintake
id
job {
joblines_aggregate {
aggregate {
sum {
mod_lb_hrs
}
}
}
}
}
}
`;