vendors can be updated through datomic.
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
[auto-ap.datomic.invoices :as d-invoices]
|
||||
[auto-ap.datomic.vendors :as d-vendors]
|
||||
[auto-ap.graphql.users :as gq-users]
|
||||
[auto-ap.graphql.vendors :as gq-vendors]
|
||||
[auto-ap.graphql.checks :as gq-checks]
|
||||
[auto-ap.graphql.expense-accounts :as expense-accounts]
|
||||
[auto-ap.graphql.invoices :as gq-invoices]
|
||||
@@ -257,6 +258,31 @@
|
||||
:role {:type 'String}
|
||||
:clients {:type '(list String)}}}
|
||||
|
||||
:add_contact
|
||||
{:fields {:id {:type 'String}
|
||||
:name {:type 'String}
|
||||
:email {:type 'String}
|
||||
:phone {:type 'String}}}
|
||||
:add_address
|
||||
{:fields {:street1 {:type 'String}
|
||||
:street2 {:type 'String}
|
||||
:city {:type 'String}
|
||||
:state {:type 'String}
|
||||
:zip {:type 'String}}}
|
||||
|
||||
:add_vendor
|
||||
{:fields {:id {:type 'String}
|
||||
:name {:type 'String}
|
||||
:code {:type 'String}
|
||||
|
||||
:print_as {:type 'String}
|
||||
:primary_contact {:type :add_contact}
|
||||
:secondary_contact {:type :add_contact}
|
||||
:address {:type :add_address}
|
||||
|
||||
:default_expense_account {:type 'Int}
|
||||
:invoice_reminder_schedule {:type 'String}}}
|
||||
|
||||
:edit_expense_account
|
||||
{:fields {:id {:type 'String}
|
||||
:expense_account_id {:type 'Int}
|
||||
@@ -303,6 +329,9 @@
|
||||
:args {:edit_user {:type :edit_user}}
|
||||
:resolve :mutation/edit-user}
|
||||
|
||||
:upsert_vendor {:type :vendor
|
||||
:args {:vendor {:type :add_vendor}}
|
||||
:resolve :mutation/upsert-vendor}
|
||||
:add_invoice {:type :invoice
|
||||
:args {:invoice {:type :add_invoice}}
|
||||
:resolve :mutation/add-invoice}
|
||||
@@ -443,6 +472,7 @@
|
||||
:mutation/edit-user gq-users/edit-user
|
||||
:mutation/add-invoice gq-invoices/add-invoice
|
||||
:mutation/edit-invoice gq-invoices/edit-invoice
|
||||
:mutation/upsert-vendor gq-vendors/upsert-vendor
|
||||
:mutation/void-invoice gq-invoices/void-invoice
|
||||
:mutation/void-payment gq-checks/void-check
|
||||
:mutation/edit-expense-accounts gq-invoices/edit-expense-accounts
|
||||
|
||||
Reference in New Issue
Block a user