IO-710 Export Log Setup. [ci skip]

This commit is contained in:
Patrick Fic
2021-04-21 12:08:32 -07:00
parent 5f9e813940
commit 6d9576b9a4
26 changed files with 780 additions and 8 deletions

View File

@@ -76,3 +76,42 @@ export const QUERY_PAYMENTS_FOR_EXPORT = gql`
}
}
`;
export const INSERT_EXPORT_LOG = gql`
mutation INSERT_EXPORT_LOG($logs: [exportlog_insert_input!]!) {
insert_exportlog(objects: $logs) {
affected_rows
}
}
`;
export const QUERY_EXPORT_LOG_PAGINATED = gql`
query QUERY_ALL_EXPORTLOG_PAGINATED(
$offset: Int
$limit: Int
$order: [exportlog_order_by!]
) {
exportlog(offset: $offset, limit: $limit, order_by: $order) {
id
job {
ro_number
id
}
payment {
id
paymentnum
}
bill {
invoice_number
id
}
successful
message
created_at
}
exportlog_aggregate {
aggregate {
count(distinct: true)
}
}
}
`;

View File

@@ -108,6 +108,7 @@ export const QUERY_PARTS_QUEUE = gql`
}
}
`;
export const SUBSCRIPTION_JOBS_IN_PRODUCTION = gql`
subscription SUBSCRIPTION_JOBS_IN_PRODUCTION {
jobs(where: { inproduction: { _eq: true } }) {