feat: simplified tx exports

This commit is contained in:
José Oliveira 2021-08-18 13:26:24 +01:00 committed by Josh Harvey
parent 2f6aac8f6d
commit 5826a29c53
4 changed files with 102 additions and 12 deletions

View file

@ -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(),