Source

environment-summary/environment-summary-actions.js

import deployedApplicationVersion from '../../components/awareness/environment/deployed-application-version-actions';
import infrastructure from './environment-summary-infrastructure-actions';
import dictionary from './environment-summary-dictionary-actions';

const LOAD = 'situationalAwareness/environmentSummary/LOAD';
const REFRESH = 'situationalAwareness/environmentSummary/REFRESH';

/**
 * Provides a possibility to work with an environment summary screen.
 *
 * @module situationalAwareness/environment
 */
export default {
    deployedApplicationVersion,
    dictionary,
    infrastructure,
    /**
     * Spawn the processes to loads the data for all sections for environment summary screen.
     *
     * @param {string} flowId - The unique Id of opened tab
     * @property {string} type - LOAD
     */
    load: (flowId) => ({
        flowId,
        type: LOAD
    }),
    LOAD,
    REFRESH,
    /**
     * Spawn the processes to refresh the data for all sections for environment summary screen.
     *
     * @param {string} flowId - The unique Id of opened tab
     * @property {string} type - REFRESH
     */
    refresh: (flowId) => ({
        flowId,
        type: REFRESH
    })
};