import { RUN_ACTION_TYPE_PLAY , RUN_ACTION_TYPE_PAUSE , Run , Runs , RunData , } from '@opentrons/api-client' ; export const PROTOCOL_ID = '1' ; export const RUN_ID_1 = '1' ; export const RUN_ID_2 = '2' ; export const mockPausedRun = { id : RUN_ID_1 , createdAt : '2021-10-07T18:44:49.366581+00:00' , status : 'paused' , protocolId : PROTOCOL_ID , actions : [ { id : '1' , createdAt : '2021-10-25T12:54:53.366581+00:00' , actionType : RUN_ACTION_TYPE_PLAY , } , { id : '2' , createdAt : '2021-10-25T13:23:31.366581+00:00' , actionType : RUN_ACTION_TYPE_PAUSE , } , ] , commands : [ ] , errors : [ ] , pipettes : [ ] , labware : [ ] , } ; export const mockRunningRun = { id : RUN_ID_2 , createdAt : '2021-10-07T18:44:49.366581+00:00' , status : 'running' , protocolId : PROTOCOL_ID , actions : [ { id : '1' , createdAt : '2021-10-25T12:54:53.366581+00:00' , actionType : RUN_ACTION_TYPE_PLAY , } , { id : '2' , createdAt : '2021-10-25T13:23:31.366581+00:00' , actionType : RUN_ACTION_TYPE_PAUSE , } , { id : '3' , createdAt : '2021-10-25T13:26:42.366581+00:00' , actionType : RUN_ACTION_TYPE_PLAY , } , ] , commands : [ ] , errors : [ ] , pipettes : [ ] , labware : [ ] , } ; export const mockRunResponse = { data : mockRunningRun , } ; export const mockRunsResponse = { data : [ mockRunningRun , mockPausedRun ] , links : { current : { href : 'runs/1' , meta : null } } , } ;