import * as Constants from './constants' ; import * as Types from './types' ; import * as APITypes from '../types' ; import type { RobotApiRequestMeta , RobotApiErrorResponse , } from '../../robot-api/types' ; export const fetchLabwareCalibrations = ( robotName ) : Types . FetchLabwareCalibrationsAction => ( { type : Constants . FETCH_LABWARE_CALIBRATIONS , payload : { robotName } , meta : { } , } ) ; export const fetchLabwareCalibrationsSuccess = ( robotName , labwareCalibrations , meta ) : Types . FetchLabwareCalibrationsSuccessAction => ( { type : Constants . FETCH_LABWARE_CALIBRATIONS_SUCCESS , payload : { robotName , labwareCalibrations } , meta , } ) ; export const fetchLabwareCalibrationsFailure = ( robotName , error , meta ) : Types . FetchLabwareCalibrationsFailureAction => ( { type : Constants . FETCH_LABWARE_CALIBRATIONS_FAILURE , payload : { robotName , error } , meta , } ) ;