import { gql } from 'graphql-modules';
export default gql `
  extend type Query {
    incomeExpenseChart(filters: IncomeExpenseChartFilters!): IncomeExpenseChart!
      @requiresAuth
      @requiresAnyRole(roles: ["business_owner", "accountant"])
  }

  " income chart information "
  type IncomeExpenseChart {
    fromDate: TimelessDate!
    toDate: TimelessDate!
    currency: Currency!
    monthlyData: [IncomeExpenseChartMonthData!]!
  }

  " income chart month information "
  type IncomeExpenseChartMonthData {
    date: TimelessDate!
    income: FinancialAmount!
    expense: FinancialAmount!
    balance: FinancialAmount!
  }

  " input variables for incomeExpenseChart filters "
  input IncomeExpenseChartFilters {
    fromDate: TimelessDate!
    toDate: TimelessDate!
    currency: Currency
  }
`;
//# sourceMappingURL=charts.graphql.js.map