"use client";

import axiosInstance from "@/app/(main)/axios/axiosInstance";
import { NEXT_PUBLIC_API_URL } from "@/config/api";

export interface BomScoreRecalcResponse {
  updatedCount: number;
}

export const recalcBomScoresClient = async (): Promise<BomScoreRecalcResponse> => {
  const response = await axiosInstance.post<BomScoreRecalcResponse>(
    `${NEXT_PUBLIC_API_URL}/bom/scores/recalculate`,
  );
  return response.data;
};

