export const addNoteToTimeline = ( note , timelineId ) : Cypress . Chainable < Cypress . Response < unknown > > => cy . request ( { method : 'PATCH' , url : '/api/note' , body : { noteId : null , version : null , note : { note , timelineId } , } , headers : { 'kbn-xsrf' : 'cypress-creds' } , } ) ;