Source

user-management/active-sessions-actions.js

const FETCH = 'activeSessions/FETCH';
const SET_LAST_UPDATED = 'activeSessions/SET_LAST_UPDATED';
const SET_OVERVIEW = 'activeSessions/SET_OVERVIEW';
const OPEN_TASKS_MONITOR = 'activeSessions/OPEN_TASKS_MONITOR';

/**
 * @module activeSessions
 */
export default {
    FETCH,
    /**
     *
     * @property {string} type - FETCH
     */
    load: () => ({type: FETCH}),
    OPEN_TASKS_MONITOR,
    /**
     *
     * @param taskType
     * @param user
     * @property {string} type - OPEN_TASKS_MONITOR
     */
    openTaskMonitor: (taskType, user) => ({taskType, type: OPEN_TASKS_MONITOR, user}),
    SET_LAST_UPDATED,
    SET_OVERVIEW,
    /**
     *
     * @property {string} type - SET_LAST_UPDATED
     */
    setLastUpdated: () => ({type: SET_LAST_UPDATED}),
    /**
     *
     * @param data
     * @property {string} type - SET_OVERVIEW
     */
    setSessionsOverview: (data) => ({data, type: SET_OVERVIEW})
};