import { v4 as uuidv4 } from 'uuid' ; import { SavedObject } from '../../types' ; import type { ImportStateMap } from './types' ; param objects export const regenerateIds = ( objects ) => { const importStateMap = new Map ( ) ; for ( const { type , id } of objects ) { importStateMap . set ( `${ type }:${ id }` , { destinationId : uuidv4 ( ) , omitOriginId : true } ) ; } return importStateMap ; } ;