Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | 1x 1x 1x 1x 1x 1x 1x 1x | import { SET_INTERACTIONS, SET_INTERACTIONS_LOADING, SET_INTERACTION_DETAIL, SET_INTERACTION_DETAIL_LOADING, SET_FILTER_SELECTED, SET_APPLICANT_FILTER, FETCH_INTERACTION_DETAIL, FETCH_INTERACTIONS, } from './constants'; /** * Set the current "concerned user" (usr switcher filter) * @param {String|Number} applicantFilter (insuredNumber) * @returns {Object} */ export const setApplicantFilter = applicantFilter => ({ type: SET_APPLICANT_FILTER, payload: { applicantFilter }, }); /** * Set interactions in store * @param {Array} interactions * @returns {Object} */ export const setInteractions = interactions => ({ type: SET_INTERACTIONS, payload: { interactions }, }); /** * Set interactions loading flag * @param {Boolean} loading * @returns {Object} */ export const setInteractionsLoading = loading => ({ type: SET_INTERACTIONS_LOADING, payload: { loading }, }); /** * Set interaction detail loading flag * @param {Boolean} loading * @returns {Object} */ export const setInteractionDetailLoading = loading => ({ type: SET_INTERACTION_DETAIL_LOADING, payload: { loading }, }); /** * Set the state of the two filters selected * @param {String} filter * @param {String} insuredNumber * @returns {Object} */ export const setFilterSelected = filter => ({ type: SET_FILTER_SELECTED, payload: { filter }, }); /** * Fetch applicant interactions, ownerId/applicantId is retrieved in saga * @return {Object} */ export const fetchInteractions = () => ({ type: FETCH_INTERACTIONS, }); export const fetchInteractionDetail = idXnet => ({ type: FETCH_INTERACTION_DETAIL, payload: { idXnet }, }); export const setInteractionDetail = detail => ({ type: SET_INTERACTION_DETAIL, payload: { detail }, }); |