import { api } from "@/lib/api-client"; import type { LevelMapping, LevelMappingRow } from "@/types"; import type { ApiSuccessResponse } from "@/types"; export const levelMappingService = { get: (entityId: number) => api.get(`/entity/${entityId}/level-mapping`), update: (entityId: number, mappings: LevelMappingRow[]) => api.put(`/entity/${entityId}/level-mapping`, { mappings }), resetToDefault: (entityId: number) => api.post(`/entity/${entityId}/level-mapping/reset`), };