{"size": 659, "ext": "js", "max_stars_repo_path": "src/redux/actionCreators/winnerActions.js", "max_stars_repo_name": "upshot-hq/upshot-ui", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/redux/actionCreators/winnerActions.js", "max_issues_repo_name": "upshot-hq/upshot-ui", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/redux/actionCreators/winnerActions.js", "max_forks_repo_name": "upshot-hq/upshot-ui", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.59375, "max_line_length": 57, "alphanum_fraction": 0.7056145675}
import * as types from '../constants/actionTypes';

export const generateWinners = (eventId) => ({
  type: types.GENERATE_WINNERS,
  eventId,
});

export const generateWinnersSuccess = (winnersData) => ({
  type: types.GENERATE_WINNERS_SUCCESS,
  winnersData,
});

export const generateWinnersFailure = (error) => ({
  type: types.GENERATE_WINNERS_FAILURE,
  error,
});

export const getWinners = (eventId) => ({
  type: types.GET_WINNERS,
  eventId,
});

export const getWinnersSuccess = (winnersData) => ({
  type: types.GET_WINNERS_SUCCESS,
  winnersData,
});

export const getWinnersFailure = (error) => ({
  type: types.GET_WINNERS_FAILURE,
  error,
});
