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

Function squadAnalyticsHistoryQueryOptions

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

Source from the content-addressed store, hash-verified

992};
993
994export const squadAnalyticsHistoryQueryOptions = ({
995 sourceId,
996}: {
997 sourceId?: string;
998}) => {
999 return {
1000 queryKey: [RequestKey.SquadAnalyticsHistory, sourceId],
1001 queryFn: async () => {
1002 const result = await gqlClient.request<{
1003 squadAnalyticsHistory: SquadAnalyticsHistoryNode[];
1004 }>(SQUAD_ANALYTICS_HISTORY_QUERY, { sourceId });
1005
1006 return result.squadAnalyticsHistory;
1007 },
1008 enabled: !!sourceId,
1009 staleTime: StaleTime.Default,
1010 };
1011};
1012
1013export const squadAgentAnalyticsQueryOptions = ({
1014 sourceId,

Callers 2

seedFunction · 0.90
useSquadAnalyticsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected