MCPcopy Create free account
hub / github.com/dailydotdev/apps / squadAgentAnalyticsQueryOptions

Function squadAgentAnalyticsQueryOptions

packages/shared/src/graphql/squads.ts:999–1016  ·  view source on GitHub ↗
({
  sourceId,
}: {
  sourceId?: string;
})

Source from the content-addressed store, hash-verified

997};
998
999export 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
1018export const squadAgentAnalyticsHistoryQueryOptions = ({
1019 sourceId,

Callers 1

SquadManageAnalyticsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected