export const currentViewActionTypes = { GETCURRENTVIEW: "GETCURRENTVIEW", SETCURRENTVIEW: "SETCURRENTVIEW", SETCURRENTREFERENCE: "SETCURRENTREFERENCE", SETREPRESENTATIONCAPACITY: "SETREPRESENTATIONCAPACITY", SETREPRESENTATIONSUBMIT: "SETREPRESENTATIONSUBMIT", SETREPRESENTATIONSUBMITCONFIRMATION: "SETREPRESENTATIONSUBMITCONFIRMATION", SETCURRENTLINKEDCASES: "SETCURRENTLINKEDCASES", }; export const getCurrentViewObj = () => (dispatch) => { return dispatch({ type: currentViewActionTypes.GETCURRENTVIEW, }); }; export const setCurrentView = (currentView) => (dispatch) => { return dispatch({ type: currentViewActionTypes.SETCURRENTVIEW, currentView: currentView, }); }; export const setCurrentReference = (caseReference) => (dispatch) => { return dispatch({ type: currentViewActionTypes.SETCURRENTREFERENCE, caseReference: caseReference, }); }; export const setRepresentationCapacity = (representationCapacity) => (dispatch) => { return dispatch({ type: currentViewActionTypes.SETREPRESENTATIONCAPACITY, representationCapacity: representationCapacity, }); }; export const setRepresentationSubmit = (representationSubmit) => (dispatch) => { return dispatch({ type: currentViewActionTypes.SETREPRESENTATIONSUBMIT, representationSubmit: representationSubmit, }); }; export const setSubmitBack = (representationSubmit) => (dispatch) => { return dispatch({ type: currentViewActionTypes.SETREPRESENTATIONSUBMIT, representationSubmit: representationSubmit, }); }; export const setRepresentationSubmitConfirmation = (representationSubmitConfirmation) => (dispatch) => { return dispatch({ type: currentViewActionTypes.SETREPRESENTATIONSUBMITCONFIRMATION, representationSubmitConfirmation: representationSubmitConfirmation, }); }; export const setCurrentLinkedCases = (linkedCaseReferences) => (dispatch) => { return dispatch({ type: currentViewActionTypes.SETCURRENTLINKEDCASES, linkedCaseReferences: linkedCaseReferences, }); };