Added temporary document handling IO-69

This commit is contained in:
Patrick Fic
2021-02-12 11:25:34 -08:00
parent 675c38b19a
commit 77a06014cf
44 changed files with 1018 additions and 30 deletions

View File

@@ -45,3 +45,33 @@ export const DELETE_DOCUMENT = gql`
}
}
`;
export const QUERY_TEMPORARY_DOCS = gql`
query QUERY_TEMPORARY_DOCS {
documents(
where: { jobid: { _is_null: true } }
order_by: { updated_at: desc }
) {
id
name
key
type
extension
}
}
`;
export const UPDATE_DOCUMENT = gql`
mutation UPDATE_DOCUMENT($id: uuid!, $document: documents_set_input!) {
update_documents_by_pk(pk_columns: { id: $id }, _set: $document) {
billid
bodyshopid
extension
id
jobid
name
type
key
}
}
`;