"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RUNTIME_FIELD_TYPES = exports.PLUGIN_NAME = exports.META_FIELDS = exports.FIELDS_FOR_WILDCARD_PATH = exports.DEFAULT_ASSETS_TO_IGNORE = exports.DATA_VIEW_SAVED_OBJECT_TYPE = void 0; /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0 and the Server Side Public License, v 1; you may not use this file except * in compliance with, at your election, the Elastic License 2.0 or the Server * Side Public License, v 1. */ /** * All runtime field types. * @public */ const RUNTIME_FIELD_TYPES = ['keyword', 'long', 'double', 'date', 'ip', 'boolean', 'geo_point', 'composite']; /** * Used to optimize on-boarding experience to determine if the instance has some user created data views or data indices/streams by filtering data sources * that are created by default by elastic in ese. * We should somehow prevent creating initial data for the users without their explicit action * instead of relying on these hardcoded assets */ exports.RUNTIME_FIELD_TYPES = RUNTIME_FIELD_TYPES; const DEFAULT_ASSETS_TO_IGNORE = { DATA_STREAMS_TO_IGNORE: ['logs-enterprise_search.api-default', // https://github.com/elastic/kibana/issues/134918 `logs-enterprise_search.audit-default` // https://github.com/elastic/kibana/issues/134918 ] }; /** * UiSettings key for metaFields list. * @public */ exports.DEFAULT_ASSETS_TO_IGNORE = DEFAULT_ASSETS_TO_IGNORE; const META_FIELDS = 'metaFields'; /** * Data view saved object type. * @public */ exports.META_FIELDS = META_FIELDS; const DATA_VIEW_SAVED_OBJECT_TYPE = 'index-pattern'; /** * Data views plugin name. * @public */ exports.DATA_VIEW_SAVED_OBJECT_TYPE = DATA_VIEW_SAVED_OBJECT_TYPE; const PLUGIN_NAME = 'DataViews'; /** * Fields for wildcard path. * @public */ exports.PLUGIN_NAME = PLUGIN_NAME; const FIELDS_FOR_WILDCARD_PATH = '/internal/data_views/_fields_for_wildcard'; exports.FIELDS_FOR_WILDCARD_PATH = FIELDS_FOR_WILDCARD_PATH;