({
sourceId,
}: {
sourceId?: string;
})
| 997 | }; |
| 998 | |
| 999 | export const squadAgentAnalyticsQueryOptions = ({ |
| 1000 | sourceId, |
| 1001 | }: { |
| 1002 | sourceId?: string; |
| 1003 | }) => { |
| 1004 | return { |
| 1005 | queryKey: [RequestKey.SquadAgentAnalytics, sourceId], |
| 1006 | queryFn: async () => { |
| 1007 | const result = await gqlClient.request<{ |
| 1008 | squadAnalytics: SquadAgentAnalytics | null; |
| 1009 | }>(SQUAD_AGENT_ANALYTICS_QUERY, { sourceId }); |
| 1010 | |
| 1011 | return result.squadAnalytics; |
| 1012 | }, |
| 1013 | enabled: !!sourceId, |
| 1014 | staleTime: StaleTime.Default, |
| 1015 | }; |
| 1016 | }; |
| 1017 | |
| 1018 | export const squadAgentAnalyticsHistoryQueryOptions = ({ |
| 1019 | sourceId, |
no outgoing calls
no test coverage detected