FPSMS-frontend
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

17 satır
438 B

  1. "use client";
  2. import axiosInstance from "@/app/(main)/axios/axiosInstance";
  3. import { NEXT_PUBLIC_API_URL } from "@/config/api";
  4. export interface BomScoreRecalcResponse {
  5. updatedCount: number;
  6. }
  7. export const recalcBomScoresClient = async (): Promise<BomScoreRecalcResponse> => {
  8. const response = await axiosInstance.post<BomScoreRecalcResponse>(
  9. `${NEXT_PUBLIC_API_URL}/bom/scores/recalculate`,
  10. );
  11. return response.data;
  12. };