Spaces:
Paused
Paused
File size: 447 Bytes
4e7644b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | import { request } from "../request";
import type { AgentStatsSummary } from "../types/agentStats";
export interface GetAgentStatsParams {
start_date: string;
end_date: string;
}
export const agentStatsApi = {
getAgentStats: (params: GetAgentStatsParams) =>
request<AgentStatsSummary>(
`/agent-stats?start_date=${encodeURIComponent(
params.start_date,
)}&end_date=${encodeURIComponent(params.end_date)}`,
),
};
|