import * as Constants from './constants' ; import * as Types from './types' ; import type { AllPipetteOffsetCalibrations } from '../api-types' ; import type { RobotApiRequestMeta , RobotApiErrorResponse , } from '../../robot-api/types' ; export const fetchPipetteOffsetCalibrations = ( robotName ) : Types . FetchPipetteOffsetCalibrationsAction => ( { type : Constants . FETCH_PIPETTE_OFFSET_CALIBRATIONS , payload : { robotName } , meta : { } , } ) ; export const fetchPipetteOffsetCalibrationsSuccess = ( robotName , pipetteOffsetCalibrations , meta ) : Types . FetchPipetteOffsetCalibrationsSuccessAction => ( { type : Constants . FETCH_PIPETTE_OFFSET_CALIBRATIONS_SUCCESS , payload : { robotName , pipetteOffsetCalibrations } , meta , } ) ; export const fetchPipetteOffsetCalibrationsFailure = ( robotName , error , meta ) : Types . FetchPipetteOffsetCalibrationsFailureAction => ( { type : Constants . FETCH_PIPETTE_OFFSET_CALIBRATIONS_FAILURE , payload : { robotName , error } , meta , } ) ;