supports filtering down to just duplicates.
This commit is contained in:
@@ -343,24 +343,7 @@
|
||||
|
||||
:forecast_match {:fields {:id {:type :id}
|
||||
:identifier {:type 'String}}}
|
||||
:transaction {:fields {:id {:type :id}
|
||||
:amount {:type 'String}
|
||||
:description_original {:type 'String}
|
||||
:description_simple {:type 'String}
|
||||
:location {:type 'String}
|
||||
:forecast_match {:type :forecast_match}
|
||||
:status {:type 'String}
|
||||
:yodlee_merchant {:type :yodlee_merchant}
|
||||
:client {:type :client}
|
||||
:accounts {:type '(list :invoices_expense_accounts)}
|
||||
:payment {:type :payment}
|
||||
:expected_deposit {:type :expected_deposit}
|
||||
:vendor {:type :vendor}
|
||||
:bank_account {:type :bank_account}
|
||||
:date {:type 'String}
|
||||
:post_date {:type 'String}
|
||||
:approval_status {:type :transaction_approval_status}
|
||||
:matched_rule {:type :transaction_rule}}}
|
||||
|
||||
|
||||
:transaction_rule {:fields {:id {:type :id}
|
||||
:note {:type 'String}
|
||||
@@ -455,11 +438,7 @@
|
||||
:start {:type 'Int}
|
||||
:end {:type 'Int}}}
|
||||
|
||||
:transaction_page {:fields {:data {:type '(list :transaction)}
|
||||
:count {:type 'Int}
|
||||
:total {:type 'Int}
|
||||
:start {:type 'Int}
|
||||
:end {:type 'Int}}}
|
||||
|
||||
|
||||
:transaction_rule_page {:fields {:transaction_rules {:type '(list :transaction_rule)}
|
||||
:count {:type 'Int}
|
||||
@@ -531,6 +510,12 @@
|
||||
{:expense_account_stats {:type '(list :expense_account_stat)
|
||||
:args {:client_id {:type :id}}
|
||||
:resolve :get-expense-account-stats}
|
||||
:potential_transaction_rule_matches {:type '(list :transaction_rule)
|
||||
:args {:transaction_id {:type :id}}
|
||||
:resolve :get-transaction-rule-matches}
|
||||
:potential_payment_matches {:type '(list :payment)
|
||||
:args {:transaction_id {:type :id}}
|
||||
:resolve :get-potential-payments}
|
||||
|
||||
:test_transaction_rule {:type '(list :transaction)
|
||||
:args {:transaction_rule {:type :edit_transaction_rule}}
|
||||
@@ -547,21 +532,6 @@
|
||||
:cash_flow {:type :cash_flow_result
|
||||
:args {:client_id {:type :id}}
|
||||
:resolve :get-cash-flow}
|
||||
|
||||
:potential_payment_matches {:type '(list :payment)
|
||||
:args {:transaction_id {:type :id}}
|
||||
:resolve :get-potential-payments}
|
||||
|
||||
:potential_autopay_invoices_matches {:type '(list (list :invoice))
|
||||
:args {:transaction_id {:type :id}}
|
||||
:resolve :get-potential-autopay-invoices-matches}
|
||||
:potential_unpaid_invoices_matches {:type '(list (list :invoice))
|
||||
:args {:transaction_id {:type :id}}
|
||||
:resolve :get-potential-unpaid-invoices-matches}
|
||||
|
||||
:potential_transaction_rule_matches {:type '(list :transaction_rule)
|
||||
:args {:transaction_id {:type :id}}
|
||||
:resolve :get-transaction-rule-matches}
|
||||
:balance_sheet {:type :balance_sheet
|
||||
:args {:client_id {:type :id}
|
||||
:include_comparison {:type 'Boolean}
|
||||
@@ -637,10 +607,7 @@
|
||||
:args {}
|
||||
:resolve :get-intuit-bank-accounts}
|
||||
|
||||
:transaction_page {:type :transaction_page
|
||||
:args {:filters {:type :transaction_filters}}
|
||||
|
||||
:resolve :get-transaction-page}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -715,23 +682,7 @@
|
||||
:sort_name {:type 'String}
|
||||
:asc {:type 'Boolean}}}
|
||||
|
||||
:transaction_filters {:fields {:client_id {:type :id}
|
||||
:exact_match_id {:type :id}
|
||||
:import_batch_id {:type :id}
|
||||
|
||||
:vendor_id {:type :id}
|
||||
:bank_account_id {:type :id}
|
||||
:account_id {:type :id}
|
||||
:date_range {:type :date_range}
|
||||
:location {:type 'String}
|
||||
:amount_lte {:type :money}
|
||||
:amount_gte {:type :money}
|
||||
:description {:type 'String}
|
||||
:start {:type 'Int}
|
||||
:per_page {:type 'Int}
|
||||
:sort {:type '(list :sort_item)}
|
||||
:approval_status {:type :transaction_approval_status}
|
||||
:unresolved {:type 'Boolean}}}
|
||||
|
||||
|
||||
|
||||
:ledger_filters {:fields {:client_id {:type :id}
|
||||
@@ -902,12 +853,7 @@
|
||||
:scheduled_payment {:type :iso_date}
|
||||
:due {:type :iso_date}
|
||||
:total {:type :money}}}
|
||||
:edit_transaction
|
||||
{:fields {:id {:type :id}
|
||||
:vendor_id {:type :id}
|
||||
:forecast_match {:type :id}
|
||||
:approval_status {:type :transaction_approval_status}
|
||||
:accounts {:type '(list :edit_expense_account)}}}
|
||||
|
||||
|
||||
:edit_percentage_account
|
||||
{:fields {:id {:type :id}
|
||||
@@ -976,11 +922,7 @@
|
||||
{:enum-value :liability}
|
||||
{:enum-value :equity}
|
||||
{:enum-value :revenue}]}
|
||||
:transaction_approval_status {:values [{:enum-value :approved}
|
||||
{:enum-value :unapproved}
|
||||
{:enum-value :suppressed}
|
||||
{:enum-value :requires_feedback}
|
||||
{:enum-value :excluded}]}}
|
||||
}
|
||||
:mutations
|
||||
{:request_import {:type 'String
|
||||
:args {:which {:type 'String}}
|
||||
@@ -994,20 +936,13 @@
|
||||
:args {:invoices {:type '(list :id)}}
|
||||
:resolve :mutation/approve-invoices}
|
||||
|
||||
:bulk_change_transaction_status {:type :message
|
||||
:args {:filters {:type :transaction_filters}
|
||||
:status {:type :transaction_approval_status}
|
||||
:ids {:type '(list :id)}}
|
||||
:resolve :mutation/bulk-change-transaction-status}
|
||||
|
||||
|
||||
:delete_external_ledger {:type :message
|
||||
:args {:filters {:type :ledger_filters}
|
||||
:ids {:type '(list :id)}}
|
||||
:resolve :mutation/delete-external-ledger}
|
||||
:delete_transactions {:type :message
|
||||
:args {:filters {:type :transaction_filters}
|
||||
:ids {:type '(list :id)}}
|
||||
:resolve :mutation/delete-transactions}
|
||||
|
||||
:delete_transaction_rule {:type :id
|
||||
:args {:transaction_rule_id {:type :id}}
|
||||
:resolve :mutation/delete-transaction-rule}
|
||||
@@ -1063,34 +998,7 @@
|
||||
:upsert_account {:type :account
|
||||
:args {:account {:type :edit_account}}
|
||||
:resolve :mutation/upsert-account}
|
||||
:edit_transaction {:type :transaction
|
||||
:args {:transaction {:type :edit_transaction}}
|
||||
:resolve :mutation/edit-transaction}
|
||||
|
||||
:match_transaction {:type :transaction
|
||||
:args {:transaction_id {:type :id}
|
||||
:payment_id {:type :id}}
|
||||
:resolve :mutation/match-transaction}
|
||||
|
||||
:match_transaction_autopay_invoices {:type :transaction
|
||||
:args {:transaction_id {:type :id}
|
||||
:autopay_invoice_ids {:type '(list :id)}}
|
||||
:resolve :mutation/match-transaction-autopay-invoices}
|
||||
|
||||
:match_transaction_unpaid_invoices {:type :transaction
|
||||
:args {:transaction_id {:type :id}
|
||||
:unpaid_invoice_ids {:type '(list :id)}}
|
||||
:resolve :mutation/match-transaction-unpaid-invoices}
|
||||
|
||||
:match_transaction_rules {:type '(list :transaction)
|
||||
:args {:transaction_ids {:type '(list :id)}
|
||||
:all {:type 'Boolean}
|
||||
:transaction_rule_id {:type :id}}
|
||||
:resolve :mutation/match-transaction-rules}
|
||||
|
||||
:unlink_transaction {:type :transaction
|
||||
:args {:transaction_id {:type :id}}
|
||||
:resolve :mutation/unlink-transaction}
|
||||
:void_invoice {:type :invoice
|
||||
:args {:invoice_id {:type :id}}
|
||||
:resolve :mutation/void-invoice}
|
||||
@@ -1346,10 +1254,7 @@
|
||||
:get-all-sales-orders get-all-sales-orders
|
||||
:get-payment-page gq-checks/get-payment-page
|
||||
:get-potential-payments gq-checks/get-potential-payments
|
||||
:get-potential-autopay-invoices-matches gq-transactions/get-potential-autopay-invoices-matches
|
||||
:get-potential-unpaid-invoices-matches gq-transactions/get-potential-unpaid-invoices-matches
|
||||
:get-accounts gq-accounts/get-accounts
|
||||
:get-transaction-page gq-transactions/get-transaction-page
|
||||
:get-ledger-page gq-ledger/get-ledger-page
|
||||
:get-sales-order-page gq-sales-orders/get-sales-orders-page
|
||||
:get-balance-sheet gq-ledger/get-balance-sheet
|
||||
@@ -1372,18 +1277,10 @@
|
||||
:mutation/add-invoice gq-invoices/add-invoice
|
||||
:mutation/add-and-print-invoice gq-invoices/add-and-print-invoice
|
||||
:mutation/edit-invoice gq-invoices/edit-invoice
|
||||
:mutation/edit-transaction gq-transactions/edit-transaction
|
||||
:mutation/unlink-transaction gq-transactions/unlink-transaction
|
||||
:mutation/bulk-change-transaction-status gq-transactions/bulk-change-status
|
||||
:mutation/delete-external-ledger gq-ledger/delete-external-ledger
|
||||
:mutation/delete-transactions gq-transactions/delete-transactions
|
||||
:mutation/upsert-transaction-rule gq-transaction-rules/upsert-transaction-rule
|
||||
:test-transaction-rule gq-transaction-rules/test-transaction-rule
|
||||
:run-transaction-rule gq-transaction-rules/run-transaction-rule
|
||||
:mutation/match-transaction gq-transactions/match-transaction
|
||||
:mutation/match-transaction-autopay-invoices gq-transactions/match-transaction-autopay-invoices
|
||||
:mutation/match-transaction-unpaid-invoices gq-transactions/match-transaction-unpaid-invoices
|
||||
:mutation/match-transaction-rules gq-transactions/match-transaction-rules
|
||||
:mutation/edit-client gq-clients/edit-client
|
||||
:mutation/upsert-vendor gq-vendors/upsert-vendor
|
||||
:mutation/upsert-account gq-accounts/upsert-account
|
||||
@@ -1398,6 +1295,7 @@
|
||||
:get-vendor gq-vendors/get-graphql})
|
||||
gq-plaid/attach
|
||||
gq-import-batches/attach
|
||||
gq-transactions/attach
|
||||
schema/compile))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user