{"size": 597, "ext": "js", "max_stars_repo_path": "src/actions/listActions.js", "max_stars_repo_name": "rassweiler/krello", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/actions/listActions.js", "max_issues_repo_name": "rassweiler/krello", "max_issues_repo_issues_event_min_datetime": "2019-08-21T23:43:58.000Z", "max_issues_repo_issues_event_max_datetime": "2019-08-22T00:47:13.000Z", "max_forks_repo_path": "src/actions/listActions.js", "max_forks_repo_name": "rassweiler/krello", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 16.1351351351, "max_line_length": 66, "alphanum_fraction": 0.6231155779}
import uuid from "uuidv4";

export const sortList = (
	idStart,
	idEnd,
	indexStart,
	indexEnd,
	boardId,
	type
) => {
	return {
		type: "SORT",
		payload: { idStart, idEnd, indexStart, indexEnd, boardId, type }
	};
};

export const addList = (title, boardId) => {
	return {
		type: "ADDLIST",
		payload: { title, boardId, listId: uuid() }
	};
};

export const removeList = (boardId, listId) => {
	return {
		type: "REMOVELIST",
		payload: { boardId, listId }
	};
};

export const editList = (title, boardId, listId) => {
	return {
		type: "EDITLIST",
		payload: { title, boardId, listId }
	};
};
