import { withHeaders } from "@/record-management/services/api/withHeaders"; import axiosInstance from "@/shared/services/axiosInstance"; import { AxiosResponse } from "axios"; export interface RoleDto { id: string; name: { am: string; en: string }; key: string; } export interface RoleListResponse { count: number; items: RoleDto[]; } export const getRoles = async (): Promise> => axiosInstance.get("/roles", { headers: withHeaders(), params: { take: 100 }, });