import { LEGACY_URL_ALIAS_TYPE } from './constants' ; import { ISavedObjectTypeRegistry , SavedObjectsType , SavedObjectTypeRegistry } from '..' ; const legacyUrlAliasType = { name : LEGACY_URL_ALIAS_TYPE , namespaceType : 'agnostic' , mappings : { dynamic : false , properties : { sourceId : { type : 'keyword' } , targetNamespace : { type : 'keyword' } , targetType : { type : 'keyword' } , targetId : { type : 'keyword' } , resolveCounter : { type : 'long' } , disabled : { type : 'boolean' } , } , } , hidden : false , } ; internal export function registerCoreObjectTypes ( typeRegistry ) { typeRegistry . registerType ( legacyUrlAliasType ) ; }