/* istanbul ignore file */
import ACTION_CONSTANTS from "./actionConstants";

export const setFormCheckList = (listData) => (dispatch) => {
  dispatch({
    type: ACTION_CONSTANTS.FORM_CHECK_LIST_UPDATE,
    payload: listData,
  });
};

export const DesignerAccessDenied = (data) => (dispatch) => {
  dispatch({
    type: ACTION_CONSTANTS.DESIGNER_DENIED_ACCESS,
    payload: data,
  });
};

export const setFormUploadList = (listData) => (dispatch) => {
  dispatch({
    type: ACTION_CONSTANTS.FORM_UPLOAD_LIST,
    payload: listData,
  });
};

export const updateFormUploadCounter = () => (dispatch) => {
  dispatch({
    type: ACTION_CONSTANTS.FORM_UPLOAD_COUNTER,
  });
};
export const formUploadFailureCount = () => (dispatch) => {
  dispatch({
    type: ACTION_CONSTANTS.FORM_UPLOAD_FAILURE_COUNTER,
  });
};
export const setFormLoading = (data) => (dispatch) => {
  dispatch({
    type: ACTION_CONSTANTS.IS_FORM_LOADING,
    payload: data,
  });
};
export const setFormSearchLoading = (data) => (dispatch) => {
  dispatch({
    type: ACTION_CONSTANTS.IS_FORM_SEARCH_LOADING,
    payload: data,
  });
};

export const setCustomSubmission = (data) => (dispatch) => {
  dispatch({
    type: ACTION_CONSTANTS.CUSTOM_SUBMISSION,
    payload: data,
  });
};
