#import '../fragments/evo_addproduct_types_fields.graphql'

query GetStaticData($statecode: Int, $currentDate: DateTime) {
  evo_impairment_group: evo_impairment_groups(statecode: $statecode) {
    evo_impairment_groupid
    evo_name
  }
  evo_currencychange: evo_currencychanges(
    statecode: $statecode
    evo_coursedate_param: { eq: $currentDate }
  ) {
    evo_currencychange
    evo_ref_transactioncurrency
  }
  evo_coefficient: evo_coefficients(
    statecode: $statecode
    evo_datefrom_param: { lte: $currentDate }
    evo_dateto_param: { gte: $currentDate }
  ) {
    evo_correction_coefficient
    evo_graph_type
    evo_season_type
    evo_job_titleid
    evo_sot_coefficient_typeid
    evo_sot_coefficient
    evo_corfficient_type
    evo_min_period
    evo_max_period
    evo_graph_type
    evo_season_type
    evo_correction_coefficient
    evo_client_riskid
    evo_client_typeid
    evo_risk_delta
    evo_leasingobject_types {
      evo_name
      evo_id
      evo_leasingobject_typeid
    }
    evo_businessunits {
      evo_name
      evo_businessunitid
      evo_sale_businessunitid
    }
    evo_baseproducts {
      evo_id
      evo_baseproductid
    }
  }
  evo_sot_coefficient_type: evo_sot_coefficient_types(statecode: $statecode) {
    evo_id
    evo_name
    evo_sot_coefficient_typeid
  }
  evo_job_title: evo_job_titles(statecode: $statecode) {
    evo_id
    evo_name
    evo_job_titleid
  }
  evo_addproduct_type: evo_addproduct_types(
    statecode: $statecode
    evo_datefrom_param: { lte: $currentDate }
    evo_dateto_param: { gte: $currentDate }
  ) {
    ...evo_addproduct_types_fields
  }
}
