import { FLOWDESIGNER_LINK_ADD , FLOWDESIGNER_LINK_SET_TARGET , FLOWDESIGNER_LINK_SET_SOURCE , FLOWDESIGNER_LINK_REMOVE , FLOWDESIGNER_LINK_SET_GRAPHICAL_ATTRIBUTES , FLOWDESIGNER_LINK_REMOVE_GRAPHICAL_ATTRIBUTES , FLOWDESIGNER_LINK_SET_DATA , FLOWDESIGNER_LINK_REMOVE_DATA , } from '../constants/flowdesigner.constants' ; param { string } linkId param { string } sourceId param { string } targetId param { Object } attr export const addLink = ( linkId , sourceId , targetId , { data = { } , graphicalAttributes = { } } = { } ) => ( { type : FLOWDESIGNER_LINK_ADD , linkId , sourceId , targetId , data , graphicalAttributes , } ) ; deprecated param { string } linkId param { string } targetId export const setLinkTarget = ( linkId , targetId ) => ( { type : FLOWDESIGNER_LINK_SET_TARGET , linkId , targetId , } ) ; deprecated param { string } linkId param { string } sourceId export const setLinkSource = ( linkId , sourceId ) => ( { type : FLOWDESIGNER_LINK_SET_SOURCE , linkId , sourceId , } ) ; deprecated param { string } linkId param { Object } attr export const setLinkGraphicalAttributes = ( linkId , graphicalAttributes ) => ( { type : FLOWDESIGNER_LINK_SET_GRAPHICAL_ATTRIBUTES , linkId , graphicalAttributes , } ) ; deprecated param { string } linkId param { string } attrKey export const removeLinkGraphicalAttribute = ( linkId , graphicalAttributesKey ) => ( { type : FLOWDESIGNER_LINK_REMOVE_GRAPHICAL_ATTRIBUTES , linkId , graphicalAttributesKey , } ) ; deprecated param { string } linkId param { Object } attr export const setLinkData = ( linkId , data ) => ( { type : FLOWDESIGNER_LINK_SET_DATA , linkId , data , } ) ; deprecated param { string } linkId param { string } attrKey export const removeLinkData = ( linkId , dataKey ) => ( { type : FLOWDESIGNER_LINK_REMOVE_DATA , linkId , dataKey , } ) ; deprecated param { string } linkId export const removeLink = ( linkId ) => ( { type : FLOWDESIGNER_LINK_REMOVE , linkId , } ) ;