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

Function squadAnalyticsHistoryQueryOptions

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

Source from the content-addressed store, hash-verified

978};
979
980export const squadAnalyticsHistoryQueryOptions = ({
981 sourceId,
982}: {
983 sourceId?: string;
984}) => {
985 return {
986 queryKey: [RequestKey.SquadAnalyticsHistory, sourceId],
987 queryFn: async () => {
988 const result = await gqlClient.request<{
989 squadAnalyticsHistory: SquadAnalyticsHistoryNode[];
990 }>(SQUAD_ANALYTICS_HISTORY_QUERY, { sourceId });
991
992 return result.squadAnalyticsHistory;
993 },
994 enabled: !!sourceId,
995 staleTime: StaleTime.Default,
996 };
997};
998
999export const squadAgentAnalyticsQueryOptions = ({
1000 sourceId,

Callers 2

seedFunction · 0.90
useSquadAnalyticsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected