(domain)
return set(q.run().aggregations.modules.case_types.keys) - {''}
Get the case types of modules in applications in the domain.
    :returns: A set of case_types
Get the case types of modules in applications in the domain.
    :returns: A set of case_types
Get the case types of modules in applications in the domain . : returns : A set of case_types
def get_case_types_from_apps(domain):
    """
    Get the case types of modules in applications in the domain.
    :returns: A set of case_types
    """
    case_types_agg = NestedAggregation('modules', 'modules').aggregation(
        TermsAggregation('case_types', 'modules.case_type.exact'))
    q = (AppES()
         .domain(domain)
         .is_build(False)
         .size(0)
         .aggregation(case_types_agg))
    return set(q.run().aggregations.modules.case_types.keys) - {''}
def get_case_types_from_apps ( domain ) : case_types_agg = NestedAggregation ( 'modules' , 'modules' ) . aggregation ( TermsAggregation ( 'case_types' , 'modules.case_type.exact' ) ) q = ( AppES ( ) . domain ( domain ) . is_build ( False ) . size ( 0 ) . aggregation ( case_types_agg ) ) return set ( q . run ( ) . aggregations . modules . case_types . keys ) - { '' }