IO-710 Export Log Setup. [ci skip]
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -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 } }) {
|
||||
|
||||
Reference in New Issue
Block a user