Makes it so vendors and invoices respect allowances.

This commit is contained in:
2023-02-03 20:59:52 -08:00
parent 1ecd076ba1
commit afa6b79fcc
7 changed files with 82 additions and 33 deletions

View File

@@ -104,7 +104,8 @@
:account_search_result
{:fields {:name {:type 'String}
:id {:type :id}
:location {:type 'String}}}
:location {:type 'String}
:warning {:type 'String}}}
:yodlee_provider_account
{:fields {:id {:type 'Int}
@@ -361,6 +362,7 @@
:resolve :search-vendor}
:search_account {:type '(list :account_search_result)
:args {:query {:type 'String}
:allowance {:type :account_allowance}
:client_id {:type :id}}
:resolve :search-account}
@@ -518,6 +520,9 @@
{:enum-value :square}
{:enum-value :uber_eats}
{:enum-value :grubhub}]}
:account_allowance {:values [{:enum-value :vendor}
{:enum-value :invoice}]}
:integration_state {:values [{:enum-value :failed}
{:enum-value :success}
{:enum-value :unauthorized}]}