({
sourceId,
}: {
sourceId?: string;
})
| 1020 | }; |
| 1021 | |
| 1022 | export const squadAgentAnalyticsQueryOptions = ({ |
| 1023 | sourceId, |
| 1024 | }: { |
| 1025 | sourceId?: string; |
| 1026 | }) => { |
| 1027 | return { |
| 1028 | queryKey: [RequestKey.SquadAgentAnalytics, sourceId], |
| 1029 | queryFn: async () => { |
| 1030 | const result = await gqlClient.request<{ |
| 1031 | squadAnalytics: SquadAgentAnalytics | null; |
| 1032 | }>(SQUAD_AGENT_ANALYTICS_QUERY, { sourceId }); |
| 1033 | |
| 1034 | return result.squadAnalytics; |
| 1035 | }, |
| 1036 | enabled: !!sourceId, |
| 1037 | staleTime: StaleTime.Default, |
| 1038 | }; |
| 1039 | }; |
| 1040 | |
| 1041 | export const squadAgentAnalyticsHistoryQueryOptions = ({ |
| 1042 | sourceId, |
no outgoing calls
no test coverage detected