import { createEntityHook } from './useEntityBase';

export type ReconciliationExceptionRead = {
  id: string;
  exception_code: string;
  source: string;
  transaction_ref: string | null;
  internal_value: number | null;
  external_value: number | null;
  difference: number | null;
  severity: string;
  status: string;
  age_hours: number;
  suggested_cause: string | null;
  assigned_to: string | null;
  created_at: string;
};

import { ENDPOINTS } from '@/constants/endpoints';

export const useReconciliation = createEntityHook<ReconciliationExceptionRead, any, any>('RECONCILIATION', ENDPOINTS.RECONCILIATION.LIST);
