import { adminRequest } from "@/lib/admin-http";
import type {
  AdminAgentLineProvisionPayload,
  AdminAgentLineProvisionResult,
} from "@/types/api/admin-agent-line";

const A = `/admin`;

export async function postAdminAgentLine(
  payload: AdminAgentLineProvisionPayload,
): Promise<AdminAgentLineProvisionResult> {
  return adminRequest.post<AdminAgentLineProvisionResult>(`${A}/agent-lines`, payload);
}
