import ApplicationActionTypes from "./application.types";

export const setWatchedPaths = (watchedPaths) => ({
  type: ApplicationActionTypes.SET_WATCHED_PATHS,
  payload: watchedPaths,
});

export const addWatchedPath = (path) => ({
  type: ApplicationActionTypes.ADD_WATCHED_PATH,
  payload: path,
});

export const removeWatchedPath = (path) => ({
  type: ApplicationActionTypes.REMOVE_WATCHED_PATH,
  payload: path,
});

export const setWatcherStatus = (status) => ({
  type: ApplicationActionTypes.SET_WATCHER_STATUS,
  payload: status,
});

export const setWatcherError = (error) => ({
  type: ApplicationActionTypes.SET_WATCHER_ERROR,
  payload: error,
});

export const setSelectedJobId = (jobId) => ({
  type: ApplicationActionTypes.SET_SELECTED_JOB_ID,
  payload: jobId,
});
