import { Action } from 'lib/types/interfaces';


export const fetchHumans = (): Action => ({
	type: '@humans:FETCH'
});

export const fetchedHumans = (data?): Action => ({
	type: '@humans:FETCHED',
	...data
});

export const failedFetchHumans = (error?): Action => ({
	type: '@humans:FAILED_FETCH',
	...error
});




export const fetchHuman = (except_url?): Action => ({
	type: '@humans:FETCH_SINGLE',
	except_url
});

export const fetchedHuman = (data?): Action => ({
	type: '@humans:FETCHED_SINGLE',
	...data
});

export const failedFetchHuman = (error?): Action => ({
	type: '@humans:FAILED_FETCH_SINGLE',
	...error
});




