import { adminRequest } from "@/lib/admin-http";


import type { AdminPlayerTicketItemsData } from "@/types/api/admin-player-tickets";

const A = `/admin`;

export async function getAdminPlayerTicketItems(
  playerId: number,
  params?: {
    page?: number;
    per_page?: number;
    draw_no?: string;
    status?: string[];
    number?: string;
    start_date?: string;
    end_date?: string;
  },
): Promise<AdminPlayerTicketItemsData> {
  return adminRequest.get<AdminPlayerTicketItemsData>(
    `${A}/players/${playerId}/ticket-items`,
    { params },
  );
}
