Merged in feature/IO-2261-opensearch-replacements (pull request #782)
IO-2261 Remove duplicate fields and add created_at into return querys Approved-by: Patrick Fic
This commit is contained in:
@@ -16,19 +16,15 @@ export const QUERY_ALL_PAYMENTS_PAGINATED = gql`
|
|||||||
$limit: Int
|
$limit: Int
|
||||||
$order: [payments_order_by!]!
|
$order: [payments_order_by!]!
|
||||||
) {
|
) {
|
||||||
payments(
|
payments(offset: $offset, limit: $limit, order_by: $order) {
|
||||||
offset: $offset
|
|
||||||
limit: $limit
|
|
||||||
order_by: $order
|
|
||||||
) {
|
|
||||||
id
|
id
|
||||||
|
amount
|
||||||
created_at
|
created_at
|
||||||
jobid
|
|
||||||
paymentnum
|
|
||||||
date
|
date
|
||||||
|
exportedat
|
||||||
|
jobid
|
||||||
job {
|
job {
|
||||||
id
|
id
|
||||||
ro_number
|
|
||||||
ownerid
|
ownerid
|
||||||
ownr_co_nm
|
ownr_co_nm
|
||||||
ownr_fn
|
ownr_fn
|
||||||
@@ -39,15 +35,14 @@ export const QUERY_ALL_PAYMENTS_PAGINATED = gql`
|
|||||||
ownr_fn
|
ownr_fn
|
||||||
ownr_ln
|
ownr_ln
|
||||||
}
|
}
|
||||||
|
ro_number
|
||||||
}
|
}
|
||||||
transactionid
|
|
||||||
memo
|
memo
|
||||||
type
|
|
||||||
amount
|
|
||||||
stripeid
|
|
||||||
exportedat
|
|
||||||
stripeid
|
|
||||||
payer
|
payer
|
||||||
|
paymentnum
|
||||||
|
stripeid
|
||||||
|
transactionid
|
||||||
|
type
|
||||||
}
|
}
|
||||||
payments_aggregate {
|
payments_aggregate {
|
||||||
aggregate {
|
aggregate {
|
||||||
@@ -62,16 +57,16 @@ export const UPDATE_PAYMENT = gql`
|
|||||||
update_payments(where: { id: { _eq: $paymentId } }, _set: $payment) {
|
update_payments(where: { id: { _eq: $paymentId } }, _set: $payment) {
|
||||||
returning {
|
returning {
|
||||||
id
|
id
|
||||||
transactionid
|
|
||||||
memo
|
|
||||||
type
|
|
||||||
amount
|
amount
|
||||||
stripeid
|
created_at
|
||||||
|
date
|
||||||
exportedat
|
exportedat
|
||||||
stripeid
|
memo
|
||||||
payer
|
payer
|
||||||
paymentnum
|
paymentnum
|
||||||
date
|
stripeid
|
||||||
|
transactionid
|
||||||
|
type
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -85,17 +80,16 @@ export const UPDATE_PAYMENTS = gql`
|
|||||||
update_payments(where: { id: { _in: $paymentIdList } }, _set: $payment) {
|
update_payments(where: { id: { _in: $paymentIdList } }, _set: $payment) {
|
||||||
returning {
|
returning {
|
||||||
id
|
id
|
||||||
exportedat
|
|
||||||
transactionid
|
|
||||||
memo
|
|
||||||
type
|
|
||||||
amount
|
amount
|
||||||
stripeid
|
created_at
|
||||||
|
date
|
||||||
exportedat
|
exportedat
|
||||||
stripeid
|
memo
|
||||||
payer
|
payer
|
||||||
paymentnum
|
paymentnum
|
||||||
date
|
stripeid
|
||||||
|
transactionid
|
||||||
|
type
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -115,36 +109,35 @@ export const QUERY_JOB_PAYMENT_TOTALS = gql`
|
|||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
export const QUERY_PAYMENT_BY_ID = gql`
|
||||||
export const QUERY_PAYMENT_BY_ID = gql`query QUERY_PAYMENT_BY_ID($paymentId: uuid!) {
|
query QUERY_PAYMENT_BY_ID($paymentId: uuid!) {
|
||||||
payments_by_pk(id: $paymentId) {
|
payments_by_pk(id: $paymentId) {
|
||||||
id
|
|
||||||
created_at
|
|
||||||
jobid
|
|
||||||
paymentnum
|
|
||||||
date
|
|
||||||
job {
|
|
||||||
id
|
id
|
||||||
ro_number
|
amount
|
||||||
ownerid
|
created_at
|
||||||
ownr_co_nm
|
exportedat
|
||||||
ownr_fn
|
date
|
||||||
ownr_ln
|
jobid
|
||||||
owner {
|
job {
|
||||||
id
|
id
|
||||||
|
ownerid
|
||||||
ownr_co_nm
|
ownr_co_nm
|
||||||
ownr_fn
|
ownr_fn
|
||||||
ownr_ln
|
ownr_ln
|
||||||
|
owner {
|
||||||
|
id
|
||||||
|
ownr_co_nm
|
||||||
|
ownr_fn
|
||||||
|
ownr_ln
|
||||||
|
}
|
||||||
|
ro_number
|
||||||
}
|
}
|
||||||
|
memo
|
||||||
|
payer
|
||||||
|
paymentnum
|
||||||
|
stripeid
|
||||||
|
transactionid
|
||||||
|
type
|
||||||
}
|
}
|
||||||
transactionid
|
|
||||||
memo
|
|
||||||
type
|
|
||||||
amount
|
|
||||||
stripeid
|
|
||||||
exportedat
|
|
||||||
stripeid
|
|
||||||
payer
|
|
||||||
}
|
}
|
||||||
}
|
`;
|
||||||
`
|
|
||||||
|
|||||||
Reference in New Issue
Block a user