import { http } from "@/shared/api/httpClient";
import { API_ROUTES } from "@/shared/constants/api-routes";

import {
  CompatibilityActionFieldsData,
  CompatibilityActionFieldsSchema,
} from "./types";

export const getCompatibilityActionFields = async (id: string) => {
  return http.get<CompatibilityActionFieldsData>(
    API_ROUTES.compatibilityActionFields(id),
    {
      tags: ["compatibility-action-fields"],
      schema: CompatibilityActionFieldsSchema,
      revalidate: 0,
    }
  );
};
