import { ICall , IMetaStatistics } from '@models' ; import { action } from 'typesafe-actions' ; import * as types from './types' ; export const getCallsByContactFetched = ( contactId ) => action ( types . GET_CALLS_BY_CONTACT_FETCHED , { contactId , } ) ; export const getCallsByContactSuccess = ( contactId , calls , statistics ) => action ( types . GET_CALLS_BY_CONTACT_SUCCESS , { calls , contactId , statistics , } ) ; export const getCallsByContactFailed = ( error ) => action ( types . GET_CALLS_BY_CONTACT_FAILED , { error , } ) ;