export const PLUGIN_ID = 'reporting' ; export const REPORTING_TRANSACTION_TYPE = PLUGIN_ID ; export const REPORTING_SYSTEM_INDEX = '.reporting' ; export const JOB_COMPLETION_NOTIFICATIONS_SESSION_KEY = 'xpack.reporting.jobCompletionNotifications' ; export const CONTENT_TYPE_CSV = 'text/csv' ; export const CSV_REPORTING_ACTION = 'downloadCsvReport' ; export const CSV_BOM_CHARS = '\ufeff' ; export const CSV_FORMULA_CHARS = [ '=' , '+' , '-' , '@' ] ; export const ALLOWED_JOB_CONTENT_TYPES = [ 'application/json' , 'application/pdf' , CONTENT_TYPE_CSV , 'image/png' , 'text/plain' , ] ; export const KBN_SCREENSHOT_HEADER_BLOCK_LIST = [ 'accept-encoding' , 'connection' , 'content-length' , 'content-type' , 'host' , 'referer' , 'transfer-encoding' , 'trailer' , 'te' , 'upgrade' , 'keep-alive' , ] ; export const KBN_SCREENSHOT_HEADER_BLOCK_LIST_STARTS_WITH_PATTERN = [ 'proxy-' ] ; export const UI_SETTINGS_SEARCH_INCLUDE_FROZEN = 'search:includeFrozen' ; export const UI_SETTINGS_CUSTOM_PDF_LOGO = 'xpackReporting:customPdfLogo' ; export const UI_SETTINGS_CSV_SEPARATOR = 'csv:separator' ; export const UI_SETTINGS_CSV_QUOTE_VALUES = 'csv:quoteValues' ; export const UI_SETTINGS_DATEFORMAT_TZ = 'dateFormat:tz' ; export const CSV_REPORT_TYPE = 'CSV' ; export const CSV_JOB_TYPE = 'csv_searchsource' ; export const PDF_REPORT_TYPE = 'printablePdf' ; export const PDF_REPORT_TYPE_V2 = 'printablePdfV2' ; export const PDF_JOB_TYPE = 'printable_pdf' ; export const PDF_JOB_TYPE_V2 = 'printable_pdf_v2' ; export const PNG_REPORT_TYPE = 'PNG' ; export const PNG_REPORT_TYPE_V2 = 'pngV2' ; export const PNG_JOB_TYPE = 'PNG' ; export const PNG_JOB_TYPE_V2 = 'PNGV2' ; export const CSV_SEARCHSOURCE_IMMEDIATE_TYPE = 'csv_searchsource_immediate' ; export const CSV_REPORT_TYPE_DEPRECATED = 'CSV' ; export const CSV_JOB_TYPE_DEPRECATED = 'csv' ; export const USES_HEADLESS_JOB_TYPES = [ PDF_JOB_TYPE , PNG_JOB_TYPE , PDF_JOB_TYPE_V2 , PNG_JOB_TYPE_V2 , ] ; export const DEPRECATED_JOB_TYPES = [ CSV_JOB_TYPE_DEPRECATED ] ; export const LICENSE_TYPE_TRIAL = 'trial' ; export const LICENSE_TYPE_BASIC = 'basic' ; export const LICENSE_TYPE_STANDARD = 'standard' ; export const LICENSE_TYPE_GOLD = 'gold' ; export const LICENSE_TYPE_PLATINUM = 'platinum' ; export const LICENSE_TYPE_ENTERPRISE = 'enterprise' ; export const API_BASE_URL = '/api/reporting' ; export const API_BASE_GENERATE = `${ API_BASE_URL }/generate` ; export const API_LIST_URL = `${ API_BASE_URL }/jobs` ; export const API_DIAGNOSE_URL = `${ API_BASE_URL }/diagnose` ; export const API_GET_ILM_POLICY_STATUS = `${ API_BASE_URL }/ilm_policy_status` ; export const API_MIGRATE_ILM_POLICY_URL = `${ API_BASE_URL }/deprecations/migrate_ilm_policy` ; export const API_BASE_URL_V1 = '/api/reporting/v1' ; export const ILM_POLICY_NAME = 'kibana-reporting' ; export const REPORTING_MANAGEMENT_HOME = '/app/management/insightsAndAlerting/reporting' ; export const REPORTING_REDIRECT_LOCATOR_STORE_KEY = '__REPORTING_REDIRECT_LOCATOR_STORE_KEY__' ; /**
 * A way to get the client side route for the reporting redirect app.
 *
 * TODO: Add a job ID and a locator to use so that we can redirect without expecting state to
 * be injected to the page
 */ export const getRedirectAppPath = ( ) => { return '/app/reportingRedirect' ; } ; export enum JOB_STATUSES { PENDING = 'pending' , PROCESSING = 'processing' , COMPLETED = 'completed' , FAILED = 'failed' , WARNINGS = 'completed_with_warnings' } export const REPORT_TABLE_ID = 'reportJobListing' ; export const REPORT_TABLE_ROW_ID = 'reportJobRow' ; export const UNVERSIONED_VERSION = '7.14.0' ; export const API_GENERATE_IMMEDIATE = `${ API_BASE_URL_V1 }/generate/immediate/csv_searchsource` ;