import { Setup } from '../../../lib/helpers/setup_request' ; import { AgentConfiguration } from '../../../../common/agent_configuration/configuration_types' ; export async function markAppliedByAgent ( { id , body , setup , } ) { const { internalClient , indices } = setup ; const params = { index : indices . apmAgentConfigurationIndex , id , body : { ... body , applied_by_agent : true , } , } ; return internalClient . index < AgentConfiguration > ( 'mark_configuration_applied_by_agent' , params ) ; }