import type { StartDiscoveryAction , FinishDiscoveryAction , RemoveRobotAction , ClearDiscoveryCacheAction , } from './types' ; export const DISCOVERY_START = 'discovery:START' ; export const DISCOVERY_FINISH = 'discovery:FINISH' ; export const DISCOVERY_UPDATE_LIST = 'discovery:UPDATE_LIST' ; export const DISCOVERY_REMOVE = 'discovery:REMOVE' ; export const CLEAR_CACHE = 'discovery:CLEAR_CACHE' ; export function startDiscovery ( timeout = null ) { return { type : DISCOVERY_START , payload : { timeout } , meta : { shell : true } , } ; } export function finishDiscovery ( ) { return { type : DISCOVERY_FINISH , meta : { shell : true } } ; } export function clearDiscoveryCache ( ) { return { type : CLEAR_CACHE , meta : { shell : true } } ; } export function removeRobot ( robotName ) { return { type : DISCOVERY_REMOVE , payload : { robotName } , meta : { shell : true } , } ; }