feat: simplified tx exports
This commit is contained in:
parent
2f6aac8f6d
commit
5826a29c53
4 changed files with 102 additions and 12 deletions
|
|
@ -302,6 +302,7 @@ const typeDefs = gql`
|
|||
deviceId: ID
|
||||
): [Transaction]
|
||||
transactionsCsv(from: Date, until: Date, limit: Int, offset: Int): String
|
||||
simplifiedTransactionsCsv(from: Date, until: Date, limit: Int, offset: Int): String
|
||||
accounts: JSONObject
|
||||
config: JSONObject
|
||||
blacklist: [Blacklist]
|
||||
|
|
@ -399,6 +400,8 @@ const resolvers = {
|
|||
transactions.batch(from, until, limit, offset, deviceId),
|
||||
transactionsCsv: (...[, { from, until, limit, offset }]) =>
|
||||
transactions.batch(from, until, limit, offset).then(parseAsync),
|
||||
simplifiedTransactionsCsv: (...[, { from, until, limit, offset }]) =>
|
||||
transactions.simplifiedBatch(from, until, limit, offset).then(parseAsync),
|
||||
config: () => settingsLoader.loadLatestConfigOrNone(),
|
||||
accounts: () => settingsLoader.showAccounts(),
|
||||
blacklist: () => blacklist.getBlacklist(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue