IO-710 Export Log page & insert actions on export

This commit is contained in:
Patrick Fic
2021-04-21 14:31:40 -07:00
parent 6d9576b9a4
commit 09e1ab7f83
38 changed files with 653 additions and 180 deletions

View File

@@ -86,11 +86,17 @@ export const INSERT_EXPORT_LOG = gql`
export const QUERY_EXPORT_LOG_PAGINATED = gql`
query QUERY_ALL_EXPORTLOG_PAGINATED(
$search: String
$offset: Int
$limit: Int
$order: [exportlog_order_by!]
) {
exportlog(offset: $offset, limit: $limit, order_by: $order) {
search_exportlog(
offset: $offset
limit: $limit
order_by: $order
args: { search: $search }
) {
id
job {
ro_number
@@ -107,8 +113,9 @@ export const QUERY_EXPORT_LOG_PAGINATED = gql`
successful
message
created_at
useremail
}
exportlog_aggregate {
search_exportlog_aggregate(args: { search: $search }) {
aggregate {
count(distinct: true)
}

View File

@@ -860,6 +860,8 @@ export const UPDATE_JOBS = gql`
update_jobs(where: { id: { _in: $jobIds } }, _set: $fields) {
returning {
id
date_exported
status
}
}
}