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

Function squadAgentAnalyticsQueryOptions

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

Source from the content-addressed store, hash-verified

1020};
1021
1022export 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
1041export const squadAgentAnalyticsHistoryQueryOptions = ({
1042 sourceId,

Callers 1

SquadManageAnalyticsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected