74 lines
2.2 KiB
JavaScript
74 lines
2.2 KiB
JavaScript
export const searchResultsActionTypes = {
|
|
GETSEARCHRESULTS: "GETSEARCHRESULTS",
|
|
SETSEARCHRESULTS: "SETSEARCHRESULTS",
|
|
UPDATESEARCHRESULTS: "UPDATESEARCHRESULTS",
|
|
SETSEARCHDETAILS: "SETSEARCHDETAILS",
|
|
SETDOCUMENTDETAILS: "SETDOCUMENTDETAILS",
|
|
SETDOCUMENTHISTORY: "SETDOCUMENTHISTORY",
|
|
SETREPRESENTATIONS: "SETREPRESENTATIONS",
|
|
SETDNSCOORDS: "SETDNSCOORDS",
|
|
SETEVENTDETAILS: "SETEVENTDETAILS",
|
|
SETMEDIADETAILS: "SETMEDIADETAILS",
|
|
};
|
|
|
|
export const getSearchResultshObj = () => (dispatch) => {
|
|
return dispatch({
|
|
type: searchResultsActionTypes.GETSEARCHRESULTS,
|
|
});
|
|
};
|
|
|
|
export const setSearchResults = (searchResults) => (dispatch) => {
|
|
return dispatch({
|
|
type: searchResultsActionTypes.SETSEARCHRESULTS,
|
|
searchResultsObj: searchResults,
|
|
});
|
|
};
|
|
|
|
export const setSearchDetails = (searchDetails) => (dispatch) => {
|
|
return dispatch({
|
|
type: searchResultsActionTypes.SETSEARCHDETAILS,
|
|
searchDetailsObj: searchDetails,
|
|
});
|
|
};
|
|
export const setDocumentDetails = (documentDetails) => (dispatch) => {
|
|
return dispatch({
|
|
type: searchResultsActionTypes.SETDOCUMENTDETAILS,
|
|
documentDetailsObj: documentDetails,
|
|
});
|
|
};
|
|
|
|
export const setDocumentHistory = (documentHistory) => (dispatch) => {
|
|
return dispatch({
|
|
type: searchResultsActionTypes.SETDOCUMENTHISTORY,
|
|
documentHistoryObj: documentHistory,
|
|
});
|
|
};
|
|
|
|
export const setRepresentations = (representations) => (dispatch) => {
|
|
return dispatch({
|
|
type: searchResultsActionTypes.SETREPRESENTATIONS,
|
|
representationsObj: representations,
|
|
});
|
|
};
|
|
|
|
export const setDNSCoords = (dnsCoords) => (dispatch) => {
|
|
return dispatch({
|
|
type: searchResultsActionTypes.SETDNSCOORDS,
|
|
dnsCoordsObj: dnsCoords,
|
|
});
|
|
};
|
|
|
|
export const setEventDetails = (eventsDetails) => (dispatch) => {
|
|
return dispatch({
|
|
type: searchResultsActionTypes.SETEVENTDETAILS,
|
|
eventDetailsObj: eventsDetails,
|
|
});
|
|
};
|
|
|
|
export const setMediaDetails = (mediaDetails) => (dispatch) => {
|
|
return dispatch({
|
|
type: searchResultsActionTypes.SETMEDIADETAILS,
|
|
mediaDetailsObj: mediaDetails,
|
|
});
|
|
};
|