(export_instance)
Return an ESQuery object for the given export instance.
    Includes filters for domain, doc_type, and xmlns/case_type.
Return an ESQuery object for the given export instance.
    Includes filters for domain, doc_type, and xmlns/case_type.
Return an ESQuery object for the given export instance . Includes filters for domain doc_type and xmlns / case_type .
def _get_base_query(export_instance):
    """
    Return an ESQuery object for the given export instance.
    Includes filters for domain, doc_type, and xmlns/case_type.
    """
    if isinstance(export_instance, FormExportInstance):
        return get_form_export_base_query(
            export_instance.domain,
            export_instance.app_id,
            export_instance.xmlns,
            export_instance.include_errors
        )
    if isinstance(export_instance, CaseExportInstance):
        return get_case_export_base_query(
            export_instance.domain, export_instance.case_type
        )
    if isinstance(export_instance, SMSExportInstance):
        return get_sms_export_base_query(export_instance.domain)
    else:
        raise Exception(
            "Unknown base query for export instance type {}".format(type(export_instance))
        )
def _get_base_query ( export_instance ) : if isinstance ( export_instance , FormExportInstance ) : return get_form_export_base_query ( export_instance . domain , export_instance . app_id , export_instance . xmlns , export_instance . include_errors ) if isinstance ( export_instance , CaseExportInstance ) : return get_case_export_base_query ( export_instance . domain , export_instance . case_type ) if isinstance ( export_instance , SMSExportInstance ) : return get_sms_export_base_query ( export_instance . domain ) else : raise Exception ( "Unknown base query for export instance type {}" . format ( type ( export_instance ) ) )