Source

satellite-summary/satellite-summary-actions.js

import deploymentTasks from './satellite-summary-deployment-tasks-actions';

const LOAD = 'situationalAwareness/LOAD';
const PING = 'situationalAwareness/PING';
const SYNC = 'situationalAwareness/SYNC';
const RESTART = 'situationalAwareness/RESTART';
const TOGGLE_FILTER_VISIBILITY = 'situationalAwareness/TOGGLE_FILTER_VISIBILITY';

/**
 * @module situationalAwareness
 */
export default {
    deploymentTasks,
    /**
     *
     * @param flowId
     * @property {string} type - LOAD
     */
    load: (flowId) => ({flowId, type: LOAD}),
    LOAD,
    /**
     *
     * @param ciId
     * @param flowId
     * @property {string} type - PING
     */
    ping: (ciId, flowId) => ({ciId, flowId, type: PING}),
    PING,
    RESTART,
    /**
     *
     * @param ciId
     * @param flowId
     * @param force
     * @property {string} type - RESTART
     */
    restart: (ciId, flowId, force) => ({ciId, flowId, force, type: RESTART}),
    /**
     *
     * @param ciId
     * @param flowId
     * @property {string} type - SYNC
     */
    sync: (ciId, flowId) => ({ciId, flowId, type: SYNC}),
    SYNC,
    TOGGLE_FILTER_VISIBILITY,
    /**
     *
     * @param flowId
     * @property {string} type - TOGGLE_FILTER_VISIBILITY
     */
    toggleFilterVisibility: (flowId) => ({flowId, type: TOGGLE_FILTER_VISIBILITY})
};