import { IDebt } from '@models' ; import { action } from 'typesafe-actions' ; import * as types from './types' ; export const getDebtsByContactFetched = ( contactId ) => action ( types . GET_DEBTS_BY_CONTACT_FETCHED , { contactId , } ) ; export const getDebtsByContactSuccess = ( contactId , debts ) => action ( types . GET_DEBTS_BY_CONTACT_SUCCESS , { debts , contactId , } ) ; export const getDebtsByContactFailed = ( error ) => action ( types . GET_DEBTS_BY_CONTACT_FAILED , { error , } ) ;