import { controllerProcedure, createTRPCRouter } from "../trpc.js";
import {
  chargeabilityReportDetailInputSchema,
  chargeabilityReportInputSchema,
  getChargeabilityReport,
  getChargeabilityReportDetail,
} from "./chargeability-report-procedure-support.js";

export const chargeabilityReportRouter = createTRPCRouter({
  getReport: controllerProcedure
    .input(chargeabilityReportInputSchema)
    .query(({ ctx, input }) => getChargeabilityReport(ctx, input)),

  getDetail: controllerProcedure
    .input(chargeabilityReportDetailInputSchema)
    .query(({ ctx, input }) => getChargeabilityReportDetail(ctx, input)),
});
